query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns true if field companyUserNamePartical is set (has been assigned a value) and false otherwise
public boolean isSetCompanyUserNamePartical() { return this.companyUserNamePartical != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetCompanyNamePartical() {\n return this.companyNamePartical != null;\n }", "public boolean isSetCompany_name() {\n return this.company_name != null;\n }", "public boolean isSetAccountNamePartical() {\n return this.accountNamePartical != null;\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\n return this.userName != null;\n }", "public boolean isSetUserName() {\n return this.userName != null;\n }", "boolean isSetAuditingCompany();", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetOverrideLoginUserName() {\n return this.overrideLoginUserName != null;\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "boolean isSetHasAuditingCompany();", "public boolean isSetCompanyId() {\n return EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }", "public boolean isSetUsername() {\n\t\treturn this.username != null;\n\t}", "boolean hasCompany();", "protected boolean checkCompanyEmail() {\n\t\tif (this.getForm().getInteractionManager().getModifiedFieldAttributes().contains(CompanyNaming.EMAIL)) {\r\n\t\t\tMessageManager.getMessageManager().showMessage(this.getForm(), \"W_UNSAVED_EMAIL_MANDATORY\", MessageType.WARNING, new Object[] {});\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tString emailValue = (String) this.emailField.getValue();\r\n\t\tif (StringTools.isEmpty(emailValue) || !UEmailDataField.isValidEmail(emailValue)) {\r\n\t\t\tMessageManager.getMessageManager().showMessage(this.getForm(), \"W_INVALID_EMAIL_MANDATORY\", MessageType.WARNING, new Object[] {});\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean hasUsername() {\n return fieldSetFlags()[1];\n }", "public boolean isSetAccountName() {\n return this.accountName != null;\n }", "boolean isSetCompanyBaseData();", "public boolean isSetCompany_logo() {\n return this.company_logo != null;\n }", "public boolean isSetCompany_abbr() {\n return this.company_abbr != null;\n }", "public boolean isSetVendorname() {\n return this.vendorname != null;\n }", "boolean hasUserName();", "public boolean isSetPhasename() {\n return this.phasename != null;\n }", "public boolean isSetRealName() {\n\t\treturn this.realName != null;\n\t}", "public boolean isSetCarprovincename() {\n return this.carprovincename != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_NAME:\n return isSetUserName();\n }\n throw new IllegalStateException();\n }", "public boolean isSetUserEmployeeDOS() {\n return this.userEmployeeDOS != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetLogin() {\n return this.login != null;\n }", "public boolean isSetLogin() {\n return this.login != null;\n }", "public boolean externalFilled() {\n return firstName != null && !firstName.isEmpty()\n || lastName != null && !lastName.isEmpty()\n || email != null && !email.isEmpty();\n }", "public boolean checkPrivateAccountInCompanyDTOInput(RegisterOwnerDTO registerOwnerDTO) {\n\n if (registerOwnerDTO == null) {\n return false;\n }\n if (registerOwnerDTO.getType().equals(\"\") ||\n\n registerOwnerDTO.getRole().equals(\"\") ||\n registerOwnerDTO.getUsername().equals(\"\") ||\n registerOwnerDTO.getPassword().equals(\"\") ||\n registerOwnerDTO.getEmail().equals(\"\") ||\n registerOwnerDTO.getName().equals(\"\") ||\n registerOwnerDTO.getSurname().equals(\"\") ||\n registerOwnerDTO.getBirthDate() == null ||\n registerOwnerDTO.getPhoneNumber().equals(\"\") ||\n registerOwnerDTO.getAddress().equals(\"\") ||\n registerOwnerDTO.getCity().equals(\"\") ||\n registerOwnerDTO.getCountry().equals(\"\") ||\n registerOwnerDTO.getAccountNumber().equals(\"\") ||\n registerOwnerDTO.getImageUrl().equals(\"\")) {\n\n return false;\n } else {\n return true;\n }\n }", "public boolean isSetProduction_companies() {\n return this.production_companies != null;\n }", "public boolean isSetFriendlyName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FRIENDLYNAME$2) != 0;\r\n }\r\n }", "public boolean hasObjUser() {\n return objUser_ != null;\n }", "public boolean visible_SetupNameField() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_SetupName_txtBx);\r\n\t}", "public boolean isSetNumUsername() {\n\t\treturn org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NUMUSERNAME_ISSET_ID);\n\t}", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_NAME_PARTICAL:\n return isSetCompanyNamePartical();\n case COMPANY_USER_NAME_PARTICAL:\n return isSetCompanyUserNamePartical();\n case ORDER_TYPE:\n return isSetOrderType();\n case STATE:\n return isSetState();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n case USER_EMPLOYEE_DOS:\n return isSetUserEmployeeDOS();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSetUserProfileId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __USERPROFILEID_ISSET_ID);\n }", "private boolean checkUserData() {\n UserAccount userAccount = new UserAccount(this);\n customer = userAccount.getCustomer();\n return customer != null;\n }", "public boolean isSetCarcityname() {\n return this.carcityname != null;\n }", "boolean hasBusinessName();", "public boolean nameRequired(){\n return hasBeenSaved() && users != null && users.size() > 1;\n }", "public boolean hasUserName() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean isSetLoginId() {\n return this.loginId != null;\n }", "public boolean hasUserName() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n }", "void xsetHasAuditingCompany(ch.crif_online.www.webservices.crifsoapservice.v1_00.AuditingCompanyStatus hasAuditingCompany);", "public boolean isSetUserid() {\n return this.userid != null;\n }", "public boolean isSetJobtitle() {\n return this.jobtitle != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case COMPANY_ID:\n return isSetCompanyId();\n case USER_ID:\n return isSetUserId();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case COMPANY_ID:\n return isSetCompanyId();\n }\n throw new java.lang.IllegalStateException();\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.AuditingCompanyStatus xgetHasAuditingCompany();", "public boolean isExistingUser() {\r\n return isExistingUser;\r\n }", "boolean isSetDisplayName();", "public boolean isSetCnName() {\n return this.cnName != null;\n }", "boolean hasObjUser();", "public boolean isSetSnsUserName() {\n return this.snsUserName != null;\n }", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "boolean hasUsername();", "public boolean isSetUserInfo() {\n return this.userInfo != null;\n }", "@XmlTransient\n\tpublic boolean isConfirmUserNameAndPassword() {\n\t\treturn (WizardState.confirmUserNameAndPassword.equals(getWizardState()));\n\t}", "public boolean isSetEngName() {\n return this.engName != null;\n }", "public boolean isSetEmail() {\n return this.email != null;\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT_IDS:\n return isSetAccountIds();\n case ACCOUNT_NAME:\n return isSetAccountName();\n case ACCOUNT_NAME_PARTICAL:\n return isSetAccountNamePartical();\n }\n throw new IllegalStateException();\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }" ]
[ "0.7881901", "0.7390036", "0.71642786", "0.6675504", "0.6675504", "0.6675504", "0.6675504", "0.6675504", "0.66601497", "0.66601497", "0.6485038", "0.6472594", "0.64570206", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6441641", "0.6321782", "0.6305786", "0.6253083", "0.6241012", "0.62015873", "0.61986905", "0.6137743", "0.6131585", "0.6103847", "0.60933524", "0.6090765", "0.6060751", "0.60287964", "0.6023601", "0.6001865", "0.5993778", "0.5993778", "0.5988218", "0.5950387", "0.5950387", "0.59354436", "0.59354436", "0.5924726", "0.5875205", "0.5832763", "0.58289593", "0.5807062", "0.5799108", "0.57926816", "0.5787942", "0.5787942", "0.5787942", "0.5787942", "0.5787942", "0.5760679", "0.57358944", "0.5721536", "0.5721247", "0.57110125", "0.56931067", "0.5691469", "0.568969", "0.5689448", "0.5688739", "0.56708235", "0.56703985", "0.5660124", "0.56596494", "0.56554496", "0.5654722", "0.56524354", "0.5651903", "0.564289", "0.56423616", "0.5641836", "0.5630704", "0.56271523", "0.56271523", "0.56271523", "0.56271523", "0.56271523", "0.56271523", "0.56213856", "0.5603075", "0.55999583", "0.55949545", "0.5588753", "0.55843455", "0.55843455", "0.55843455", "0.55843455" ]
0.88109595
0
Returns true if field orderType is set (has been assigned a value) and false otherwise
public boolean isSetOrderType() { return this.orderType != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasORDERTYPE() {\n return fieldSetFlags()[0];\n }", "public boolean hasORDERTYPESID() {\n return fieldSetFlags()[10];\n }", "public boolean isSetOrders() {\n return this.orders != null;\n }", "public boolean isSetOrder() {\n return EncodingUtils.testBit(__isset_bitfield, __ORDER_ISSET_ID);\n }", "public boolean isSetPaymentAmountType() {\r\n return paymentAmountType != null;\r\n }", "public boolean isSetEntity_type() {\n return this.entity_type != null;\n }", "public void setOrderType(String orderType) {\r\n\t\tthis.orderType = orderType;\r\n\t}", "public OrderType getOrderType() {\r\n\t\treturn orderType;\r\n\t}", "public String getOrderType() {\r\n\t\treturn orderType;\r\n\t}", "public boolean hasOrderDate() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasOrderDate() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public void setOrderType(Byte orderType) {\n this.orderType = orderType;\n }", "public boolean hasOrderSize() {\n return ((bitField0_ & 0x00400000) == 0x00400000);\n }", "OrderType getOrderType();", "public boolean hasOrderSize() {\n return ((bitField0_ & 0x00400000) == 0x00400000);\n }", "void setOrderType(OrderType inOrderType);", "public boolean isSetType() {\n return this.type != null;\n }", "public boolean isSetType() {\n return this.type != null;\n }", "public boolean isSetType() {\n return this.type != null;\n }", "public boolean hasVehicleType() {\n return vehicleTypeBuilder_ != null || vehicleType_ != null;\n }", "public boolean isSetType() {\n return this.type != null;\n }", "boolean isSetInstallmentType();", "public boolean isSetTableType() {\n return this.tableType != null;\n }", "public boolean hasVehicleType() {\n return fieldSetFlags()[0];\n }", "public boolean isSetOrderSubmitStatus() {\n return this.orderSubmitStatus != null;\n }", "public String getOrderType() {\n\t\treturn (String) get_Value(\"OrderType\");\n\t}", "public Boolean getOrderStatus() {\n return orderStatus;\n }", "public boolean hasType() {\n return fieldSetFlags()[0];\n }", "public boolean isSetTypes() {\n return this.types != null;\n }", "public boolean isSetOpType() {\n return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);\n }", "public boolean isSetType() {\n return (this.type != null ? this.type.isSetValue() : false);\n }", "public boolean isSetEntityType() {\n return this.entityType != null;\n }", "@java.lang.Override\n public boolean hasVehicleType() {\n return vehicleType_ != null;\n }", "public String\t\tgetOrderType();", "boolean hasStoredType();", "boolean hasOrderDate();", "boolean hasFieldTypeId();", "public boolean isSetDoctor_to_order() {\n return this.doctor_to_order != null;\n }", "boolean hasOrderSize();", "public boolean hasORDERDESCRIPTION() {\n return fieldSetFlags()[1];\n }", "public boolean hasFieldTypeId() {\n return fieldTypeIdBuilder_ != null || fieldTypeId_ != null;\n }", "public boolean isSetCartypeconfig() {\n return this.cartypeconfig != null;\n }", "public boolean hasFieldTypeId() {\n return fieldTypeId_ != null;\n }", "public boolean isSetColType() {\n return this.colType != null;\n }", "public boolean isSetOutOrderID() {\n return this.OutOrderID != null;\n }", "boolean isOrderable();", "io.opencannabis.schema.commerce.CommercialOrder.OrderType getType();", "public boolean isOrderBy() {\n return orderBy;\n }", "public boolean hasOrderId() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }", "public boolean isSetCampaign_type() {\n return EncodingUtils.testBit(__isset_bitfield, __CAMPAIGN_TYPE_ISSET_ID);\n }", "public boolean isSet() {\r\n\t\tboolean isSet = false;\r\n\r\n\t\tif (this.time != null && this.id != null && this.price != null && this.quantity != null && this.type != null) {\r\n\t\t\tisSet = true;\r\n\r\n\t\t}\r\n\r\n\t\treturn isSet;\r\n\t}", "public boolean isSetTypeId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TYPEID$2) != 0;\n }\n }", "public boolean hasOrderId() {\n return ((bitField0_ & 0x00002000) == 0x00002000);\n }", "public boolean isSetVendortype() {\n return __isset_bit_vector.get(__VENDORTYPE_ISSET_ID);\n }", "public static boolean getOrderIsPossible() {\n\t\treturn orderIsPossible;\n\t}", "public boolean getType() {\r\n\t\treturn type;\r\n\t}", "public boolean isSetCartype() {\n return __isset_bit_vector.get(__CARTYPE_ISSET_ID);\n }", "public Boolean getPayType() {\n return payType;\n }", "public void\t\t\tsetOrderStatus(String orderType);", "private boolean isInwardType() {\n\t\tboolean isInward = false;\n\n\t\t//Booking Type\n\t\tif (cbBookingType.getText().equals(INWARD_TYPE))\n\t\t\tisInward = true;\n\n\t\treturn isInward;\n\t}", "public boolean isDeviceTypeFieldPresent() {\r\n\t\treturn isElementPresent(addVehiclesHeader.replace(\"Add Vehicle\", \"Select Device Type\"), SHORTWAIT);\r\n\t}", "public boolean isSetSledOrderId() {\n return this.sledOrderId != null;\n }", "boolean hasGoodsType();", "public boolean isTypeModified() {\n return type_is_modified; \n }", "public boolean isSetBusinessObjectType() {\r\n return businessObjectType != null;\r\n }", "boolean hasOrderId();", "boolean hasOrderId();", "public boolean hasKeyType() {\n return fieldSetFlags()[2];\n }", "private static boolean checkOrderList() {\n if (size != MainGUI.orderList.size()) {\n size = MainGUI.orderList.size();\n return true;\n }\n\n return false;\n }", "boolean isSetControlType();", "public boolean isSetWarrantytypes() {\n return this.warrantytypes != null;\n }", "@Override\n public boolean createOrderForm(OrderFormBean orderform) {\n\n return in_orderformdao.createOrderForm(orderform);\n }", "public boolean isSetType() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TYPE_ISSET_ID);\n }", "public boolean isSetType() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TYPE_ISSET_ID);\n }", "public boolean isSetType() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TYPE_ISSET_ID);\n }", "public boolean isSetType() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TYPE_ISSET_ID);\n }", "public boolean isSetType() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TYPE_ISSET_ID);\n }", "public boolean hasQtype() {\n return fieldSetFlags()[11];\n }", "public org.LNDCDC_NCS_TCS.ORDER_TYPES.apache.nifi.LNDCDC_NCS_TCS_ORDER_TYPES.Builder setORDERTYPE(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.ORDER_TYPE = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "boolean hasCriterionType();", "public boolean isSetExecOrderId() {\n return EncodingUtils.testBit(__isset_bitfield, __EXECORDERID_ISSET_ID);\n }", "public boolean isSetOrderTotalVolume() {\n return EncodingUtils.testBit(__isset_bitfield, __ORDERTOTALVOLUME_ISSET_ID);\n }", "public boolean hasDocumentType() {\n return fieldSetFlags()[11];\n }", "public boolean isSetContructionType()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(CONTRUCTIONTYPE$24) != null;\r\n }\r\n }", "public Byte getOrderType() {\n return orderType;\n }", "boolean getFieldTypeIdNull();", "public boolean isType() {\n return type;\n }", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();" ]
[ "0.7696469", "0.72285366", "0.6779462", "0.668152", "0.6519985", "0.64494914", "0.63792944", "0.6360496", "0.6350931", "0.62834007", "0.62725383", "0.62215704", "0.62057304", "0.61792743", "0.6177097", "0.6161018", "0.61490935", "0.61490935", "0.61490935", "0.6137804", "0.60880893", "0.6070235", "0.60335636", "0.60040164", "0.60037845", "0.5968894", "0.596883", "0.5959569", "0.5958773", "0.59125257", "0.5901145", "0.5892511", "0.5883767", "0.5879512", "0.58580315", "0.58477664", "0.58221895", "0.5820141", "0.58167046", "0.57999504", "0.57995594", "0.5792029", "0.5791409", "0.5779683", "0.57741296", "0.5744447", "0.5734043", "0.57100266", "0.5707596", "0.5706429", "0.5702903", "0.57006204", "0.5696752", "0.56914985", "0.56675893", "0.5654548", "0.56410295", "0.5621688", "0.56163245", "0.5615696", "0.5590676", "0.5579196", "0.5570013", "0.5566188", "0.55454594", "0.55445385", "0.55445385", "0.55436194", "0.5542787", "0.55420727", "0.5541319", "0.55347323", "0.55316216", "0.55316216", "0.55316216", "0.55316216", "0.55316216", "0.5525452", "0.55223566", "0.5521471", "0.5507957", "0.54989517", "0.5491226", "0.5490696", "0.54779565", "0.5475382", "0.5470376", "0.5469432", "0.5469432", "0.5469432", "0.5469432", "0.5469432", "0.5469432", "0.5469432", "0.5469432", "0.5469432", "0.5469432", "0.5469432", "0.5469432", "0.5469432" ]
0.85523486
0
Returns true if field state is set (has been assigned a value) and false otherwise
public boolean isSetState() { return this.state != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return isSetStatus();\n case STATE_MSG:\n return isSetStateMsg();\n case LAST_UPDATE_TIMESTAMP_MS:\n return isSetLastUpdateTimestampMs();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean hasState() {\n return fieldSetFlags()[3];\n }", "public boolean hasState() {\n return fieldSetFlags()[3];\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BEFORE:\n return isSetBefore();\n case AFTER:\n return isSetAfter();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return isSetStatus();\n case DESCRIPTION:\n return isSetDescription();\n case SOURCE_CHARGED:\n return isSetSourceCharged();\n case TARGET_DEPOSIT:\n return isSetTargetDeposit();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PLAYER:\n return isSetPlayer();\n case CREATION_TIME:\n return isSetCreationTime();\n case TYPE:\n return isSetType();\n case CHAT:\n return isSetChat();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case LIMB:\n return isSetLimb();\n case POS:\n return isSetPos();\n case ORI:\n return isSetOri();\n case SPEED:\n return isSetSpeed();\n case ANGLS:\n return isSetAngls();\n case MODE:\n return isSetMode();\n case KIN:\n return isSetKin();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EMAIL_ID:\n return isSetEmailId();\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case COUNTRY:\n return isSetCountry();\n case PHONE:\n return isSetPhone();\n case LAST_LOGGED_IN:\n return isSetLastLoggedIn();\n case ACTIVE:\n return isSetActive();\n case NEWSLETTER:\n return isSetNewsletter();\n case REGISTERED:\n return isSetRegistered();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case STATUS:\n return is_set_status();\n case DATA:\n return is_set_data();\n case SUMMARY:\n return is_set_summary();\n case FEATURE:\n return is_set_feature();\n case PREDICT_RESULT:\n return is_set_predictResult();\n case MSG:\n return is_set_msg();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case CONTRACT_ADDRESS:\n return isSetContractAddress();\n case OBJECT:\n return isSetObject();\n case STATE_CAN_MODIFY:\n return isSetStateCanModify();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n }\n throw new IllegalStateException();\n }" ]
[ "0.80840546", "0.80840546", "0.7597309", "0.7445487", "0.74255484", "0.74255484", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.74242777", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.741018", "0.7398796", "0.7303587", "0.72912854", "0.72779894", "0.72733957", "0.7270606", "0.7268599", "0.7264903", "0.7245181", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864", "0.72441864" ]
0.0
-1
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case COMPANY_NAME_PARTICAL: return isSetCompanyNamePartical(); case COMPANY_USER_NAME_PARTICAL: return isSetCompanyUserNamePartical(); case ORDER_TYPE: return isSetOrderType(); case STATE: return isSetState(); } throw new IllegalStateException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(int fieldID) {\n switch (fieldID) {\n case NAME:\n return isSetName();\n case PASSWORD:\n return isSetPassword();\n case SELECT_PRIV:\n return isSetSelect_priv();\n case INSERT_PRIV:\n return isSetInsert_priv();\n case CREATE_PRIV:\n return isSetCreate_priv();\n case DROP_PRIV:\n return isSetDrop_priv();\n case GRANT_PRIV:\n return isSetGrant_priv();\n case ALTER_PRIV:\n return isSetAlter_priv();\n case CREATE_USER_PRIV:\n return isSetCreate_user_priv();\n case SUPER_PRIV:\n return isSetSuper_priv();\n default:\n throw new IllegalArgumentException(\"Field \" + fieldID + \" doesn't exist!\");\n }\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n case NUM:\n return isSetNum();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case FIELD:\r\n return isSetField();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case PARAMS:\n return isSetParams();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJ_ID:\r\n return isSetObjId();\r\n case SYMBOL:\r\n return isSetSymbol();\r\n case POSITION_X:\r\n return isSetPositionX();\r\n case POSITION_Y:\r\n return isSetPositionY();\r\n }\r\n throw new IllegalStateException();\r\n }", "boolean hasField4();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case OBJECT_ID:\r\n return isSetObjectId();\r\n case SOURCE_ID:\r\n return isSetSourceId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case TYPE:\n return isSetType();\n case POSTSID:\n return isSetPostsid();\n case USERID:\n return isSetUserid();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case POST_ID:\n return isSetPostId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ENTITY_ID:\r\n return isSetEntityId();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }", "boolean hasFieldId();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case NUM:\n return isSetNum();\n }\n throw new java.lang.IllegalStateException();\n }", "boolean hasField0();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PARENT_ID:\n return isSetParentId();\n case TYPE:\n return isSetType();\n case VALUE:\n return isSetValue();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INSTITUTION_ID:\n return isSetInstitutionID();\n case PRODUCTIDS:\n return isSetProductids();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case DATA:\n return isSetData();\n case FILE_ID:\n return isSetFileID();\n case SIZE:\n return isSetSize();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BROKER_ID:\n return isSetBrokerID();\n case ACCOUNT_ID:\n return isSetAccountID();\n case ALGORITHM:\n return isSetAlgorithm();\n case MEMO:\n return isSetMemo();\n case CURRENCY_ID:\n return isSetCurrencyID();\n }\n throw new IllegalStateException();\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RELATED_ID:\n return isSetRelatedId();\n case COMPANY_ID:\n return isSetCompanyId();\n case COMPANY_GROUP_ID:\n return isSetCompanyGroupId();\n case MACHINE_ID:\n return isSetMachineId();\n case ACTIVE_START_TIMESTAMP:\n return isSetActiveStartTimestamp();\n case ACTIVED_END_TIMESTAMP:\n return isSetActivedEndTimestamp();\n case MACHINE_INNER_IP:\n return isSetMachineInnerIP();\n case MACHINE_OUTER_IP:\n return isSetMachineOuterIP();\n case CREATE_TIMESTAMP:\n return isSetCreateTimestamp();\n case LASTMODIFY_TIMESTAMP:\n return isSetLastmodifyTimestamp();\n }\n throw new IllegalStateException();\n }", "boolean hasField1();", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT_IDS:\n return isSetAccountIds();\n case COMMODITY_IDS:\n return isSetCommodityIds();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case TYPE:\n return isSetType();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case X:\n return isSetX();\n case Y:\n return isSetY();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PAGE_NO:\n return isSetPageNo();\n case PAGE_SIZE:\n return isSetPageSize();\n case USER_ID:\n return isSetUserId();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n case STAFF_ID:\n return isSetStaffId();\n case LOGIN_TYPE:\n return isSetLoginType();\n case LOGIN_ID:\n return isSetLoginId();\n case LOGIN_PASS:\n return isSetLoginPass();\n case LOGIN_PASS_ENCRYPT:\n return isSetLoginPassEncrypt();\n case PHONE_NUMBER:\n return isSetPhoneNumber();\n case STAFF_TYPE:\n return isSetStaffType();\n case STATUS:\n return isSetStatus();\n case CERT_STATUS:\n return isSetCertStatus();\n case AVG_SCORE:\n return isSetAvgScore();\n case TAG:\n return isSetTag();\n case FINISH_ORDER_COUNT:\n return isSetFinishOrderCount();\n case ASSIGN_ORDER_COUNT:\n return isSetAssignOrderCount();\n case EXTRA_DATA1:\n return isSetExtraData1();\n case EXTRA_DATA2:\n return isSetExtraData2();\n case CREATE_TIME:\n return isSetCreateTime();\n case UPDATE_TIME:\n return isSetUpdateTime();\n case REGISTER_TIME:\n return isSetRegisterTime();\n case LAST_RECEPTION_TIME:\n return isSetLastReceptionTime();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EXAM_ID:\n return isSetExam_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new java.lang.IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case ID_CURSA:\r\n return isSetIdCursa();\r\n case NR_LOC:\r\n return isSetNrLoc();\r\n case CLIENT:\r\n return isSetClient();\r\n }\r\n throw new java.lang.IllegalStateException();\r\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMB_INSTRUMENT_ID:\n return isSetCombInstrumentID();\n case LEG_ID:\n return isSetLegID();\n case LEG_INSTRUMENT_ID:\n return isSetLegInstrumentID();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PID:\n return isSetPid();\n case EXCEPTION_ID:\n return isSetExceptionId();\n case USER_ID:\n return isSetUserId();\n case REPORT_DATE:\n return isSetReportDate();\n case UN_ASSURE_CONDITION:\n return isSetUnAssureCondition();\n case HOUSE_PROPERY_CONDITION:\n return isSetHouseProperyCondition();\n case REMARK:\n return isSetRemark();\n case CREATE_DATE:\n return isSetCreateDate();\n case CREATE_ID:\n return isSetCreateId();\n case UPDATE_DATE:\n return isSetUpdateDate();\n case UPDATE_ID:\n return isSetUpdateId();\n case PROJECT_ID:\n return isSetProjectId();\n case LEGAL_LIST:\n return isSetLegalList();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PATIENT_ID:\n return isSetPatient_id();\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IS_STAR:\n return isSetIs_star();\n case IS_DISTINCT:\n return isSetIs_distinct();\n case OP:\n return isSetOp();\n }\n throw new IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }", "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new java.lang.IllegalStateException();\n }" ]
[ "0.79057336", "0.79057336", "0.7832483", "0.78039587", "0.77928185", "0.77803034", "0.77803034", "0.77803034", "0.77803034", "0.7646636", "0.75470716", "0.7544675", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.7542323", "0.75238216", "0.752039", "0.7519392", "0.7519392", "0.7516628", "0.7516628", "0.7516628", "0.7516628", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75166214", "0.75069016", "0.74780744", "0.74626166", "0.74500316", "0.7446358", "0.7446358", "0.7434391", "0.7412142", "0.7394416", "0.7393611", "0.73861283", "0.7381268", "0.737965", "0.73738813", "0.73724854", "0.73572797", "0.73530036", "0.73485583", "0.73465604", "0.7344627", "0.7344627", "0.73434305", "0.7337769", "0.7332461", "0.7332265", "0.7324129", "0.7323723", "0.73196316", "0.7318733", "0.73180133", "0.7309111", "0.7309111", "0.7309111", "0.7309111", "0.7309111" ]
0.0
-1
check for required fields check for substruct validity
public void validate() throws org.apache.thrift.TException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() throws org.apache.thrift.TException {\n if (institutionID == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'institutionID' was not present! Struct: \" + toString());\n }\n if (productids == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'productids' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (partition_exprs == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_exprs' was not present! Struct: \" + toString());\n }\n if (partition_infos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'partition_infos' was not present! Struct: \" + toString());\n }\n if (rollup_schemas == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'rollup_schemas' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetResourcePlanName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resourcePlanName' is unset! Struct:\" + toString());\n }\n\n if (!isSetPoolPath()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'poolPath' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'id' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_inputs()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'inputs' is unset! Struct:\" + toString());\n }\n\n if (!is_set_streams()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'streams' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'am_handle' was not present! Struct: \" + toString());\n }\n if (user == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'user' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'gang' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (am_handle != null) {\n am_handle.validate();\n }\n if (reservation_id != null) {\n reservation_id.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (functionName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'functionName' was not present! Struct: \" + toString());\n }\n if (className == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'className' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (emailId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'emailId' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (classification == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'classification' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetColName()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colName' is unset! Struct:\" + toString());\n }\n\n if (!isSetColType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'colType' is unset! Struct:\" + toString());\n }\n\n if (!isSetStatsData()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statsData' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (code == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'code' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (op == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'op' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUserProfileId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'userProfileId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityId()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityId' is unset! Struct:\" + toString());\n }\n\n if (!isSetEntityType()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'entityType' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (limb == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'limb' was not present! Struct: \" + toString());\n }\n if (pos == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'pos' was not present! Struct: \" + toString());\n }\n if (ori == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'ori' was not present! Struct: \" + toString());\n }\n if (speed == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'speed' was not present! Struct: \" + toString());\n }\n if (angls == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'angls' was not present! Struct: \" + toString());\n }\n if (mode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'mode' was not present! Struct: \" + toString());\n }\n if (kin == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'kin' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (pos != null) {\n pos.validate();\n }\n if (ori != null) {\n ori.validate();\n }\n if (speed != null) {\n speed.validate();\n }\n if (angls != null) {\n angls.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!is_set_status()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'status' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n if (!is_set_feature()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'feature' is unset! Struct:\" + toString());\n }\n\n if (!is_set_predictResult()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'predictResult' is unset! Struct:\" + toString());\n }\n\n if (!is_set_msg()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'msg' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (feature != null) {\n feature.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (key_column_name == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_name' was not present! Struct: \" + toString());\n }\n if (key_column_type == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'key_column_type' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'is_preaggregation' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n }", "public void validate() throws org.apache.thrift.TException {\n if (parseId == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'parseId' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'constituentIndex' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (parseId != null) {\n parseId.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (!isSetUuidFicha()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'uuidFicha' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (headerTransport != null) {\n headerTransport.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (statusCode == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'statusCode' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "private void fillMandatoryFields() {\n\n }", "public void checkFields(){\n }", "public void validate() throws org.apache.thrift.TException {\n if (tableType == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableType' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'numCols' because it's a primitive and you chose the non-beans generator.\n // alas, we cannot check 'numClusteringCols' because it's a primitive and you chose the non-beans generator.\n if (tableName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'tableName' was not present! Struct: \" + toString());\n }\n if (dbName == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'dbName' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n if (hdfsTable != null) {\n hdfsTable.validate();\n }\n if (hbaseTable != null) {\n hbaseTable.validate();\n }\n if (dataSourceTable != null) {\n dataSourceTable.validate();\n }\n }", "private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.heightValue, \" Рост: \", b) ||\n !CalendarHelper.isFieldValid(startProgramDateValue, \" Старт программы: \", b) ||\n !new ComboBoxFieldHelper<Client>().isFieldValid(clientFIOValue, \" Клиент: \", b))\n {\n result = false;\n }\n\n return result;\n }", "public static boolean checkMandatoryFields(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private void fillMandatoryFields_custom() {\n\n }", "private void checkRequiredFields() {\n // check the fields which should be non-null\n if (configFileName == null || configFileName.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configFileName' should not be null.\");\n }\n if (configNamespace == null || configNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'configNamespace' should not be null.\");\n }\n if (searchBundleManagerNamespace == null\n || searchBundleManagerNamespace.trim().length() == 0) {\n throw new DAOConfigurationException(\n \"The 'searchBundleManagerNamespace' should not be null.\");\n }\n if (entityManager == null) {\n throw new DAOConfigurationException(\n \"The 'entityManager' should not be null.\");\n }\n }", "public static boolean checkMandatoryFieldsRegistration(Object obj) {\n\n\t\tif (obj instanceof UserDTO) {\n\n\t\t\tUserDTO userDTO = (UserDTO) obj;\n\n\t\t\tif (userDTO.getPasscode().trim().isEmpty()) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }", "private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}", "private void validateData() {\n }", "public interface FieldValidator {\n static boolean validateStringIfPresent(Object o, int len) {\n return o == null || o instanceof String && !((String) o).isEmpty() && ((String) o).length() < len;\n }\n\n static boolean validateString(Object o, int len) {\n return !(o == null || !(o instanceof String) || ((String) o).isEmpty() || (((String) o).length() > len));\n }\n\n static boolean validateInteger(Object o) {\n if (o == null) {\n return false;\n }\n try {\n Integer.valueOf(o.toString());\n } catch (NumberFormatException e) {\n return false;\n }\n return true;\n }\n\n static boolean validateDateWithFormat(Object o, DateTimeFormatter formatter, boolean allowedInPast) {\n if (o == null) {\n return false;\n }\n try {\n LocalDate date = LocalDate.parse(o.toString(), formatter);\n if (!allowedInPast) {\n return date.isAfter(LocalDate.now());\n }\n } catch (DateTimeParseException e) {\n return false;\n }\n return true;\n }\n\n static boolean validateJsonIfPresent(Object o) {\n return o == null || o instanceof JsonObject && !((JsonObject) o).isEmpty();\n }\n\n static boolean validateJson(Object o) {\n return !(o == null || !(o instanceof JsonObject) || ((JsonObject) o).isEmpty());\n }\n\n static boolean validateJsonArrayIfPresent(Object o) {\n return o == null || o instanceof JsonArray && !((JsonArray) o).isEmpty();\n }\n\n static boolean validateJsonArray(Object o) {\n return !(o == null || !(o instanceof JsonArray) || ((JsonArray) o).isEmpty());\n }\n\n static boolean validateDeepJsonArrayIfPresent(Object o, FieldValidator fv) {\n if (o == null) {\n return true;\n } else if (!(o instanceof JsonArray) || ((JsonArray) o).isEmpty()) {\n return false;\n } else {\n JsonArray array = (JsonArray) o;\n for (Object element : array) {\n if (!fv.validateField(element)) {\n return false;\n }\n }\n }\n return true;\n }\n\n static boolean validateDeepJsonArray(Object o, FieldValidator fv) {\n if (o == null || !(o instanceof JsonArray) || ((JsonArray) o).isEmpty()) {\n return false;\n }\n JsonArray array = (JsonArray) o;\n for (Object element : array) {\n if (!fv.validateField(element)) {\n return false;\n }\n }\n return true;\n }\n\n static boolean validateBoolean(Object o) {\n return o != null && o instanceof Boolean;\n }\n\n static boolean validateBooleanIfPresent(Object o) {\n return o == null || o instanceof Boolean;\n }\n\n static boolean validateUuid(Object o) {\n try {\n UUID uuid = UUID.fromString((String) o);\n return true;\n } catch (IllegalArgumentException e) {\n return false;\n }\n }\n\n static boolean validateUuidIfPresent(String o) {\n return o == null || validateUuid(o);\n }\n\n boolean validateField(Object value);\n\n Pattern EMAIL_PATTERN =\n Pattern.compile(\"^[_A-Za-z0-9-\\\\+]+(\\\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\\\.[A-Za-z0-9]+)*(\\\\.[A-Za-z]{2,})$\");\n\n static boolean validateEmail(Object o) {\n Matcher matcher = EMAIL_PATTERN.matcher((String) o);\n return matcher.matches();\n }\n}", "@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean checkDataStructure(Data data) throws ImportitException {\n\t\tdata.setDatabase(39);\n\t\tdata.setGroup(3);\n\t\tboolean validDb = checkDatabaseName(data);\n\t\tboolean validHead = false;\n\t\tboolean validTable = false;\n\t\tboolean existImportantFields = false;\n\t\tif (validDb) {\n\t\t\tList<Field> headerFields = data.getHeaderFields();\n\t\t\tList<Field> tableFields = data.getTableFields();\n\t\t\tvalidHead = false;\n\t\t\tvalidTable = false;\n\t\t\ttry {\n\n\t\t\t\tvalidHead = checkWarehouseGroupProperties(headerFields, data.getOptionCode().useEnglishVariables());\n\t\t\t\tvalidTable = checkFieldList(tableFields, 39, 3, false, data.getOptionCode().useEnglishVariables());\n\t\t\t\tString[] checkDataCustomerPartProperties = checkDataWarehouseGroupProperties(data);\n\t\t\t\texistImportantFields = checkDataCustomerPartProperties.length == 2;\n\n\t\t\t} catch (ImportitException e) {\n\t\t\t\tlogger.error(e);\n\t\t\t\tdata.appendError(Util.getMessage(\"err.structure.check\", e.getMessage()));\n\t\t\t}\n\t\t}\n\t\tif (validTable && validHead && validDb & existImportantFields) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }", "@Override\n\tprotected Boolean isValid(String[] fields) {\n\t\t//check - evnet_id, yes, maybe, invited, no\n return (fields.length > 4);\n\t}", "private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }", "private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}", "@Override\n\tpublic boolean isValid(SchemaField field, Data data) {\n\t\treturn false;\n\t}", "private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }", "private void validateFields () throws ModelValidationException\n\t\t\t{\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tModel model = getModel();\n\t\t\t\t// check for valid typed public non-static fields\n\t\t\t\tList keyClassFieldNames = model.getAllFields(keyClassName);\n\t\t\t\tMap keyFields = getKeyFields();\n\n\t\t\t\tfor (Iterator i = keyClassFieldNames.iterator(); i.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString keyClassFieldName = (String)i.next();\n\t\t\t\t\tObject keyClassField = \n\t\t\t\t\t\tgetKeyClassField(keyClassName, keyClassFieldName);\n\t\t\t\t\tint keyClassFieldModifiers = \n\t\t\t\t\t\tmodel.getModifiers(keyClassField);\n\t\t\t\t\tString keyClassFieldType = model.getType(keyClassField);\n\t\t\t\t\tObject keyField = keyFields.get(keyClassFieldName);\n\n\t\t\t\t\tif (Modifier.isStatic(keyClassFieldModifiers))\n\t\t\t\t\t\t// we are not interested in static fields\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!model.isValidKeyType(keyClassName, keyClassFieldName))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_invalid\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!Modifier.isPublic(keyClassFieldModifiers))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_public\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (keyField == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!keyClassFieldType.equals(model.getType(keyField)))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_mismatch\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName, pcClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\t// remove handled keyField from the list of keyFields\n\t\t\t\t\tkeyFields.remove(keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\t// check whether there are any unhandled key fields\n\t\t\t\tif (!keyFields.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tObject pcClass = model.getClass(pcClassName);\n\t\t\t\t\tString fieldNames = StringHelper.arrayToSeparatedList(\n\t\t\t\t\t\tnew ArrayList(keyFields.keySet()));\n\n\t\t\t\t\tthrow new ModelValidationException(pcClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_field_missing\", //NOI18N\n\t\t\t\t\t\tpcClassName, keyClassName, fieldNames));\n\t\t\t\t}\n\t\t\t}", "@Test\n\tpublic void testCheckForEmptyFields() {\n\t\t\n\t\t// Case 1: when all fields are present\n\t\tRequestData requestDataObj1 = new RequestData();\n\t\trequestDataObj1.setDomain(\"PBTV\");\n\t\trequestDataObj1.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj1.setSourceSystemName(\"CDI\");\n\t\tboolean expectedResponse1 = true;\n\t\tboolean response1 = tokenisationMainObj.checkForEmptyFields(requestDataObj1);\n\t\tassertEquals(response1, expectedResponse1);\n\n\t\t// Case 2: when any of them is empty\n\t\tRequestData requestDataObj2 = new RequestData();\n\t\trequestDataObj2.setDomain(\"PBTV\");\n\t\trequestDataObj2.setOwningBusinessEntity(\"CH\");\n\t\trequestDataObj2.setSourceSystemName(\"\");\n\t\tboolean expectedResponse2 = false;\n\t\tboolean response2 = tokenisationMainObj.checkForEmptyFields(requestDataObj2);\n\t\tassertEquals(response2, expectedResponse2);\n\t}", "public static boolean checkMandatoryFieldsUpdateUser(Object obj) {\n\n\t\tif (obj instanceof UpdateUserDTO) {\n\n\t\t\tUpdateUserDTO updateUserDTO = (UpdateUserDTO) obj;\n\n\t\t\tif (updateUserDTO.getFirstName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getLastName().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getAddress1().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getCity().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getState().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getZipCode().trim().isEmpty()\n\t\t\t\t\t|| updateUserDTO.getNewEmailId().trim().isEmpty()\n\n\t\t\t) {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}", "public abstract List<String> requiredFields();", "public void partValidation () throws ValidationException {\n\n // checks for a name to be entered\n if (getPartName().isEmpty() || !getPartName().matches(\"^[a-zA-Z0-9_ ]*$\")){\n throw new ValidationException(\"Name field is invalid. Can't be blank. Must be alphanumeric\");\n\n // checks that minimum stock isn't less than 0\n }else if (getPartStockMin() < 0) {\n throw new ValidationException(\"Inventory minimum can't be less than 0\");\n\n } else if (getPartStockMax() < 0) {\n throw new ValidationException(\"Inventory max must be greater than 0\");\n\n // checks to make sure max stock is not less than the minimum\n }else if (getPartStockMax() < getPartStockMin()) {\n throw new ValidationException(\"Max inventory can't be less than the minimum\");\n\n // checks that stock on hadn is not less than the minimum\n } else if (getPartStock() < getPartStockMin()){\n throw new ValidationException(\"Part inventory can't be less than the minimum\");\n\n // part price can't be 0 or less\n }else if (getPartPrice() < 0){\n throw new ValidationException(\"Price has to be a positive number\");\n\n // max stock can't be less than what you already have\n }else if (getPartStockMax() < getPartStock()){\n throw new ValidationException(\"Max inventory can't be less than what you have on hand\");\n\n // check stock is between min and max\n } else if (getPartStock() < getPartStockMin() || getPartStock() > getPartStockMax()){\n throw new ValidationException(\"Inventory level must be between min and max\");\n\n }\n }", "private void validateFields() throws InvalidConnectionDataException {\n if (driver == null) throw new InvalidConnectionDataException(\"No driver field\");\n if (address == null) throw new InvalidConnectionDataException(\"No address field\");\n if (username == null) throw new InvalidConnectionDataException(\"No username field\");\n if (password == null) throw new InvalidConnectionDataException(\"No password field\");\n }", "void validateState() throws EPPCodecException {\n // add/chg/rem\n if ((addDsData == null) && (chgDsData == null) && (remKeyTag == null)) {\n throw new EPPCodecException(\"EPPSecDNSExtUpdate required attribute missing\");\n }\n \n // Ensure there is only one non-null add, chg, or rem\n\t\tif (((addDsData != null) && ((chgDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((chgDsData != null) && ((addDsData != null) || (remKeyTag != null)))\n\t\t\t\t|| ((remKeyTag != null) && ((chgDsData != null) || (addDsData != null)))) {\n\t\t\tthrow new EPPCodecException(\"Only one add, chg, or rem is allowed\");\n\t\t}\n }", "protected void doExtraValidation(Properties props) {\n /* nothing by default */\n }", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}", "boolean hasFieldNested();", "private boolean checkFields() {\n boolean test = true;\n if (fname.isEmpty()) {\n test = false;\n }\n if (lname.isEmpty()) {\n test = false;\n }\n if (cin.isEmpty()) {\n test = false;\n }\n if (typeCompte.equals(\"Bancaire\")) {\n if (decouvertNF.isEmpty())\n test = false;\n } else if (typeCompte.equals(\"Epargne\")) {\n if (tauxInteretNF.isEmpty())\n test = false;\n }\n if (s_datePK.getValue() == null) {\n s_datePK.setStyle(\"-fx-border-color:red;-fx-border-radius:3px;-fx-border-size: 1px;\");\n test = false;\n }\n\n return test;\n }", "public void validate() {\n transportStats.validate(this);\n\n for (String unitName : produces) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit name \" + unitName + \" in build unit stats\");\n }\n\n for (Map.Entry<String, String> entry : buildCities.entrySet()) {\n String terrainName = entry.getKey();\n String cityName = entry.getValue();\n Args.validate(!TerrainFactory.hasTerrainForName(terrainName), \"Illegal terrain \" + terrainName + \" in build cities stats\");\n Args.validate(!CityFactory.hasCityForName(cityName), \"Illegal city \" + cityName + \" in build cities stats\");\n }\n\n for (String unitName : supplyUnits) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units stats\");\n }\n\n for (String unitName : supplyUnitsInTransport) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units in transport stats\");\n }\n\n Args.validate(StringUtil.hasContent(primaryWeaponName) && !WeaponFactory.hasWeapon(primaryWeaponName),\n \"Illegal primary weapon \" + primaryWeaponName + \" for unit \" + name);\n Args.validate(StringUtil.hasContent(secondaryWeaponName) && !WeaponFactory.hasWeapon(secondaryWeaponName),\n \"Illegal secondary weapon \" + secondaryWeaponName + \" for unit \" + name);\n }", "@Override\n public boolean validate() throws ValidationException\n {\n boolean isValid = super.validate();\n return checkAAField() && isValid;\n }", "boolean hasNestedField();", "protected abstract List<TemporalField> validFields();", "@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}", "public void validate() {\n if (valid) return;\n \n layer = getAttValue(\"layer\").getString();\n hasFrame = getAttValue(\"hasframe\").getBoolean();\n\n valid = true;\n }", "@Test\n public void testCheckValidity_InvalidFields() throws Exception {\n expectCheckValidityFailure(msg -> msg.setSource(null));\n \n // null protocol\n expectCheckValidityFailure(msg -> msg.setProtocol(null));\n \n // null or empty topic\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setTopic(value));\n \n // null payload\n expectCheckValidityFailure(msg -> msg.setPayload(null));\n \n // empty payload should NOT throw an exception\n Forward forward = makeValidMessage();\n forward.setPayload(\"\");\n forward.checkValidity();\n \n // null or empty requestId\n expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setRequestId(value));\n \n // invalid hop count\n expectCheckValidityFailure(msg -> msg.setNumHops(-1));\n }", "private boolean validateMandatoryParameters(QuotationDetailsDTO detail) {\t\n\n\t\tif(detail.getArticleName() == null || detail.getArticleName().equals(EMPTYSTRING)){\t\t\t\n\t\t\tAdminComposite.display(\"Please Enter Article Name\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}", "boolean hasNestedOuterField();", "private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }", "@Override\n public JsonNode required(String fieldName) {\n return _reportRequiredViolation(\"Node of type %s has no fields\",\n ClassUtil.nameOf(getClass()));\n }", "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "@Override\r\n public void validate() {\r\n }", "public boolean hasFieldErrors();", "private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(category.getSelectedItem().toString().isEmpty())\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.category_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(cost.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.cost_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(dateDue.getText().toString().isEmpty()){\n Toast.makeText(ExpenseCardViewDetails.this, R.string.date_due_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}", "boolean valid() {\n boolean valid = true;\n\n if (!isAgencyLogoPathValid()) {\n valid = false;\n }\n if (!isMemFieldValid()) {\n valid = false;\n }\n if (!isLogNumFieldValid()) {\n valid = false;\n }\n\n return valid;\n }", "private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }", "public void check(ResourceMemberInterface resource) {\n\t\tassert resource.getParent() != null;\r\n\t\tassert resource.getName() != null;\r\n\t\tassert resource.getLabel() != null;\r\n\t\tassert resource.getTLModelObject() != null;\r\n\t\tassert resource.getTLModelObject().getListeners() != null;\r\n\t\tassert !resource.getTLModelObject().getListeners().isEmpty();\r\n\t\tassert Node.GetNode(resource.getTLModelObject()) == resource;\r\n\t\tresource.getFields(); // don't crash\r\n\t}", "protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "@Test (priority = 2)\n\tpublic void TC2_CheckAllFields_Exisit ()\n\n\t{\n\t\tCreateUserPage UserObj = new CreateUserPage (driver);\n\n\t\t// This is to Validate If all fields of create user page are existing\n\t\tUserObj.Validate_AllFields_Exsist();\n\t\n\n\t}", "public void validate () throws ModelValidationException\n\t\t\t{\n\t\t\t\tif (MappingClassElement.VERSION_CONSISTENCY == \n\t\t\t\t\tmappingClass.getConsistencyLevel())\n\t\t\t\t{\n\t\t\t\t\tMappingFieldElement versionField =\n\t\t\t\t\t\t validateVersionFieldExistence();\n\t\t\t\t\tString className = mappingClass.getName();\n\t\t\t\t\tString fieldName = versionField.getName();\n\t\t\t\t\tString columnName = null;\n\t\t\t\t\tColumnElement column = null;\n\n\t\t\t\t\tif (versionField instanceof MappingRelationshipElement)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\"util.validation.version_field_relationship_not_allowed\");//NOI18N\n\t\t\t\t\t}\n\t\t\t\t\telse if (MappingFieldElement.GROUP_DEFAULT != \n\t\t\t\t\t\tversionField.getFetchGroup()) // must be in DFG\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow constructFieldException(fieldName, \n\t\t\t\t\t\t\t\"util.validation.version_field_fetch_group_invalid\");//NOI18N\n\t\t\t\t\t}\n\n\t\t\t\t\tvalidatePersistenceFieldAttributes(className, fieldName);\n\t\t\t\t\tcolumnName = validateVersionFieldMapping(versionField);\n\t\t\t\t\tcolumn = validateTableMatch(className, fieldName, columnName);\n\t\t\t\t\tvalidateColumnAttributes(className, fieldName, column);\n\t\t\t\t}\n\t\t\t}", "private boolean checkIfHasRequiredFields(BoxItem shareItem){\n return shareItem.getSharedLink() != null && shareItem.getAllowedSharedLinkAccessLevels() != null;\n }", "@Override\n\tpublic void validate()\n\t{\n\n\t}", "boolean isValidSubResource(Object fieldValue) {\n return fieldValue != null\n && BaseEntity.class.isAssignableFrom(fieldValue.getClass())\n && fieldValue.getClass().getDeclaredAnnotation(Sensible.class) == null;\n }", "void calculateValidationRequirement() {\n this.elementRequiringJSR303Validation = Util.hasValidation(this.type);\n\n // Check for JSR 303 or @OnValidate annotations in default group\n if (Util.requiresDefaultValidation(this.type)) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any simple index uniqueness constraints\n if (!this.uniqueConstraintFields.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any composite index uniqueness constraints\n if (!this.uniqueConstraintCompositeIndexes.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n }", "protected void validate() {\n // no op\n }", "protected boolean isValidData() {\n return true;\n }", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public boolean isRequired();", "public void validate() throws org.apache.thrift.TException {\n if (levelInfo != null) {\r\n levelInfo.validate();\r\n }\r\n }", "public void validate() {\n\t\tClass<?> clazz = this.getModelObject().getClass();\n\t\tif (!ArenaUtils.isObservable(clazz)) {\n\t\t\tthrow new RuntimeException(\"La clase \" + clazz.getName() + \" no tiene alguna de estas annotations \" + ArenaUtils.getRequiredAnnotationForModels() + \" que son necesarias para ser modelo de una vista en Arena\");\n\t\t}\n\t\t// TODO: Validate children bindings?\n\t}", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void validate() {\n\t}", "void checkValid();", "private void validateInputParameters(){\n\n }", "public boolean validate(Struct data) {\r\n\t\tif (data == null)\r\n\t\t\treturn false;\r\n\t\t\r\n\t\tif (this.options.size() == 0) {\r\n\t\t\tOperationContext.get().errorTr(437, data);\t\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (this.options.size() == 1) \r\n\t\t\treturn this.options.get(0).validate(data);\r\n\t\t\r\n\t\tfor (DataType dt : this.options) {\r\n\t\t\tif (dt.match(data)) \r\n\t\t\t\treturn dt.validate(data);\r\n\t\t}\r\n\t\t\r\n\t\tOperationContext.get().errorTr(438, data);\t\t\t\r\n\t\treturn false;\r\n\t}", "private void validate() throws BaseException\n {\n boolean okay = true;\n\n //TODO: check the bases in seq for validity\n // If the type is RNA, the base T is not allowed\n // If the type is DNA, the base U is not allowed\n // If a disallowed type is present, set okay to false.\n \n if (!okay)\n {\n throw new BaseException();\n }\n }", "@Override\r\n\tprotected void validate() {\n\t}", "public void validateInput(Information information) {\n information.validateFirstName();\n information.validateLastName();\n information.validateZipcode();\n information.validateEmployeeID();\n }", "public boolean validateInputFields(){\n if(titleText.getText().isEmpty() || descriptionText.getText().isEmpty()){\n showError(true, \"All fields are required. Please complete.\");\n return false;\n }\n if(locationCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a location.\");\n return false;\n }\n if(contactCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a contact.\");\n return false;\n }\n if(typeCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select the type.\");\n return false;\n }\n if(customerCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a customer.\");\n return false;\n }\n if(userCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a user.\");\n return false;\n }\n return true;\n }", "public void validate() {}" ]
[ "0.75401354", "0.74719286", "0.7333375", "0.7304861", "0.72982836", "0.729518", "0.72577775", "0.7225706", "0.71371984", "0.7129901", "0.7116786", "0.7092598", "0.70728713", "0.70518136", "0.70367175", "0.70314413", "0.69580764", "0.690188", "0.68602306", "0.6692948", "0.66799486", "0.66016793", "0.6531198", "0.6201798", "0.61862105", "0.6125509", "0.60847056", "0.6062816", "0.6039728", "0.600999", "0.59966576", "0.5976531", "0.59758466", "0.5965871", "0.5947064", "0.59223855", "0.5922278", "0.58906883", "0.58834726", "0.5867908", "0.5825018", "0.58205366", "0.57992554", "0.5780987", "0.57802767", "0.5757422", "0.5754295", "0.5752983", "0.57528615", "0.57414174", "0.5738411", "0.57320136", "0.57320136", "0.57320136", "0.5725357", "0.5719012", "0.5706793", "0.5690102", "0.5678541", "0.5659636", "0.5639797", "0.5627573", "0.56135464", "0.5606204", "0.5589754", "0.55717397", "0.5568869", "0.5565506", "0.55608743", "0.55607665", "0.5547348", "0.5544268", "0.55411816", "0.55269957", "0.5522637", "0.5516646", "0.5516371", "0.55138063", "0.55137813", "0.5500658", "0.5499726", "0.54987335", "0.5498394", "0.5496379", "0.54960924", "0.5473159", "0.54723763", "0.54722196", "0.546883", "0.54670763", "0.54607475", "0.54482555", "0.5445599", "0.5433513", "0.54323035", "0.54323", "0.542701", "0.54248434", "0.54239476", "0.5421569", "0.5419966" ]
0.0
-1
There are no three argument functions provided by java8, if you need that you are expected to create them.
public static void main(String[] args) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n Function<String, String> function1 = (string) -> string +string;\n System.out.println(function1.apply(\"aaa\"));\n\n Function<String,String> function2 =s -> new String(s);\n System.out.println(function2.apply(function2.apply(\"sss\")));\n\n// Function<String, Emp> function = s -> new Emp(s);\n// System.out.println(function.apply(\"yy\"));\n\n Function<String, Emp> function3 = Emp::new;\n System.out.println(function3.apply(\"yy\"));\n }", "public static void main(String[] args) {\n\t\tnew Action() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String content) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(content);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}.execute(\"jdk1.8之前匿名内部类实现方式\");\r\n\t\t\r\n\t\t\r\n\t\t//lambda\r\n\t\tAction login=(String content)->{\r\n\t\t\tSystem.out.println(\"jdk1.8的lambda语法实现\");\r\n\t\t};\r\n\t\tlogin.execute(\"jdk1.8的lambda语法实现\");\r\n\t\t\r\n\t}", "void foo(java.util.function.Consumer<T> c) {}", "public static void main(String[] args) {\n\n Supplier<HashMap<String, String>> mapSupplier = HashMap::new;\n Supplier<HashSet<String>> setSupplier = HashSet::new;\n\n // Array Constructor reference\n ArrayConstruction<String> stringArrayConstruction = String[]::new;\n ArrayConstruction<Integer> integerArrayConstruction = Integer[]::new;\n }", "AstroArg seq(AstroArg first, AstroArg second, AstroArg third);", "@FunctionalInterface\n private interface TwoParameterFunction<T, U, R> {\n R apply(T t, U u);\n }", "public LambdaMART() {}", "@Test\n public void test1() {\n final Car car = Car.create(Car::new);\n final List<Car> cars = Collections.singletonList(car);\n final Car police = Car.create(Car::new);\n cars.forEach(police::follow);\n cars.forEach(c -> police.follow(c)); // 等价于写成lambda表达式的形式\n }", "private FunctionUtils() {\n }", "@FunctionalInterface\npublic interface Convert<S,T> {\n T convert(S arg);\n}", "@FunctionalInterface\npublic interface FoldImplementation {\n void main(String[] args);\n}", "public interface Function<Z, Y> {\n Y _(Z z);\n}", "private Function createLambdaFunction()\n {\n return lambdaFunctionBuilder().build();\n }", "Function createFunction();", "public static void main(String[] args) {\n\n Comparator<Integer> comparator = new Comparator<Integer>() {\n @Override\n public int compare(Integer o1, Integer o2) {\n return o1.compareTo(o2);\n }\n };\n\n System.out.println(\" result of comparator :\" + comparator.compare(3,2));\n\n\n /*\n After java8\n */\n\n Comparator<Integer> comparatorLambda = (a, b)-> a.compareTo(b);\n\n\n System.out.println(\" result of comparator lambda is : \"+ comparatorLambda.compare(3,2));\n\n }", "arrowType(String a, int b)\n {\n }", "AstroArg seq(AstroArg first,\n AstroArg second,\n AstroArg third,\n AstroArg fourth);", "public static void main(String[] args) {\n Foo fooByIC= new Foo() {\n @Override\n public void method(String string) {\n System.out.println(string);\n }\n };\n Foo fooByIc2=new Foo() {\n @Override\n public void method(String string) {\n System.out.println(string+\" \"+string);\n }\n };\n fooByIC.method(\"test\");\n fooByIc2.method(\"test\");\n\n //TODO call testFunctional with fooByIC\n testFunctional(\"test2\",fooByIc2);\n //TODO call testFunctional with a lambda\n testFunctional(\"test3\",s-> System.out.println(s.toUpperCase()+\"lambda\"));\n //TODO call testFunctional with a different lambda\n testFunctional(\"4\",s-> {\n try {\n\n\n Integer number = Integer.parseInt(s);\n System.out.println(number*number);\n }\n catch (NumberFormatException ex)\n {\n System.out.println(\"Not a number\");\n }\n\n });\n testFunctional(2,3,(a,b)->a+b);\n\n\n }", "public static void main(String[] args) {\n\t\tFunctionInterface<?,Integer> imp = (a,b) -> a+b;\n\t\tSystem.out.println(imp.add(3, 5));\n\t\t//使用系统提供的functional interface\n\t\t//BiFunction<Integer,String,Long> sub = (a,b) -> System.out.println(b + a);\n\t}", "@FunctionalInterface\ninterface Functional {\n String goodbye(String arg);\n}", "public static void main(String[] args) {\n\t\tFunction<Integer, Integer> f = (x) -> x+20;\r\n\t\tSystem.out.println(f.apply(20));\r\n\t\tFunction<Integer, Double> f1 = (x) -> x+20.0;\r\n\t\tSystem.out.println(f1.apply(20));\r\n\t\tFunction<String, Integer> f2 = (str) -> str.length();\r\n\t\tSystem.out.println(f2.apply(\"Aditya Mukherjee\"));\r\n\t\r\n\t\r\n//\t Function Chaining\r\n\t\tFunction<Integer, Integer> f3 = (x) -> 2*x;\r\n\t\tFunction<Integer, Integer> f4 = (x) -> x*x*x;\r\n//\t\tAND THEN FUNCTION\r\n\t\tSystem.out.println(\"And Then Output \"+f3.andThen(f4).apply(2));\r\n//\t\tCOMPOSE FUNCTION\r\n\t\tSystem.out.println(\"Compose Output \"+f3.compose(f4).apply(2));\r\n//\tBIFUNCTION\r\n\t\tBiFunction<Integer, Integer, Integer> bf = (x,y) -> x+y;\r\n\t\tSystem.out.println(bf.apply(20, 30));\r\n\t\r\n\t}", "@Test\n public void testLamda(){\n }", "AExpArgs createAExpArgs();", "@FunctionalInterface\npublic interface QuadFunction<P1, P2, P3, P4, R> extends MethodFinder {\n\n R apply(P1 p1, P2 p2, P3 p3, P4 p4);\n\n}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Supplier test\");\n\t\tSupplier<String> stringSupp = () -> \"test\"; \n\t\tSystem.out.println(stringSupp.get());\n\t\t\t\t\n\t\t// used as a factory\n\t\tSupplier<Integer> intSupp5 = () -> {return new Integer(5);};\t\t\t\t\n\t\tSupplier<Map> hashMapSupp = () -> new HashMap<>();\n\t\t// using a Method Reference\n\t\tSupplier<Map> hashMapSuppMF = HashMap::new;\n\t\t\t\t\t\t\t\t\n\t\t// *** consumer --> Consumer<T> cons = t -> {};\n\t\tSystem.out.println(\"\\nConsumer test\");\n\t\tConsumer cons = t -> {};\n\t\tConsumer<String> commaStringOut = s -> System.out.print(s + \", \");\n\t\tcommaStringOut.accept(\"This is a test\");\n\t\tSystem.out.println(\"\");\n\t\t\n\t\t// andThen - returns a composed Consumer\n\t\tConsumer<String> suffixStringOut = s -> System.out.println(\"of lambdas\");\t\t\n\t\tcommaStringOut.andThen(suffixStringOut).accept(\"This is a test\");\t\n\t\t\n//\t\tConsumer<String> fullStringOut = commaStringOut.andThen(suffixStringOut);\n//\t\tfullStringOut.accept(\"This is a test\");\n\n\t\t// *** function --> Function(T,T) func = t -> t;\n\t\tSystem.out.println(\"\\nFunction test\");\n\t\tFunction func = t -> t;\n\t\t\t\t\n\t\tFunction<String, Integer> stringLength = (s) -> s.length();\n\t\tSystem.out.println(stringLength.apply(\"Hello world\"));\n\t\t\n\t\t// andThen\n\t\tSystem.out.println(\"andThen test\");\n\t\tFunction<Integer, Boolean> lowerThanTen = (i) -> i < 10;\t\t\t\t\n\t\tFunction<String, Boolean> function = stringLength.andThen(lowerThanTen);\n\t\t// Will print false\n\t\tSystem.out.println(function.apply(\"Hello world\"));\n\n\t\t// compose \n\t\tSystem.out.println(\"compose test\");\n\t\tFunction<Integer, Integer> times2 = e -> e * 2;\n\t\tFunction<Integer, Integer> squared = e -> e * e;\n\t\t\n\t\t// returns 64\n\t\tSystem.out.println(times2.andThen(squared).apply(4));\t\n\t\t\n\t\t// returns 32\n\t\tSystem.out.println(times2.compose(squared).apply(4));\t\n\t\t\n\t\t// identity \n\t\tFunction<String,String> strIdenityFunc = Function.identity();\n\t\tSystem.out.println(strIdenityFunc.apply(\"Identity Test\"));\t\n\t\t\n\t\t// *** predicate --> Predicate<T> pred = t -> 1 == 1;\n\t\tSystem.out.println(\"\\nPredicate test\");\n\t\tPredicate<String> lengthTest5 = (s)-> s.length() > 5;\n\t\tSystem.out.println(lengthTest5.test(\"longer than 5 test \"));\n\t\t\n\t\t// and\n\t\tSystem.out.println(\"and test\");\n\t\tPredicate<String> startsWith = (s)-> s.startsWith(\"t\");\n\t\tSystem.out.println(lengthTest5.and(startsWith).test(\"longer than 5 test \"));\n\n\t\t// or\n\t\tSystem.out.println(\"or test\");\n\t\tSystem.out.println(lengthTest5.or(startsWith).test(\"longer than 5 test \"));\n\t\t\n\t\t// negate\n\t\tSystem.out.println(\"negate test\");\n\t\tSystem.out.println(startsWith.negate().test(\"longer than 5 test \"));\n\t\t\n\t\t// isEqual\n\t\tSystem.out.println(\"isEquale test\");\n\t Predicate<String> strEqual = Predicate.isEqual(\"asdf\");\n\t \n\t System.out.println(strEqual.test(\"basddfs\"));\n\t System.out.println(strEqual.test(\"asdf\"));\n\t}", "@FunctionalInterface\npublic interface CommonSupplier<T> {\n\n T get() throws InternalSystemException;\n}", "org.globus.swift.language.Function addNewFunction();", "public interface VerticleFactory extends Supplier<Verticle> {\n}", "@Test\n public void test2() {\n Consumer<String> consumer = System.out::println;\n consumer.accept(\"lambda V5!\");\n }", "public static void main(String[] args) {\n\t\t Supplier<Personne> supplier = Personne::new;\n\t\t System.out.println(supplier.get());\n\t\t \n\t\t //constructeur avec plusieur parametre \n\t\t PersonneSupplier supplierP = Personne::new;\n\t\t Personne personne = supplierP.creerInstance(\"nom1\", \"prenom1\");\n\t\t System.out.println(personne);\n\t\t \n\t\t PersonneSupplier supplierP1 = (nom, prenom) -> new Personne(nom, prenom);\n\t\t Personne personneP1 = supplierP1.creerInstance(\"nom1\", \"prenom1\");\n\t\t System.out.println(personneP1);\n\t\t \n\t\t \n\t\t Supplier<Personne> supplier0 = () -> new Personne();\n\t\t Supplier<Personne> supplier1 = () -> new Personne(\"\",\"\");\n\t\t \n\t\t //Supplier<Integer> I0 = Integer::new;\n\t\t Supplier<Integer> I1 = () -> new Integer(0);\n\t\t //Supplier<String> I2 =(String s) -> new Integer(s);\n\t\t \n\t\t Supplier<ArrayList<Personne>> supplier5 = ArrayList<Personne>::new;\n\t\t Supplier<ArrayList<Personne>> supplier6 = () -> new ArrayList<Personne>(); \n\t\t \n\t\t //Supplier<String[]> supplier7 = String[]::new;\n\t\t //Supplier<> supplier8 = (int size) -> new String[size];\n\t\t \n\t\t \n\t\t //generic\n\t\t //MaFabrique<Integer[]> fabrique = Integer[]::new; \n\t\t //Integer[] entiers = fabrique.creerInstance(10);\n\t\t //System.out.println(\"taille = \"+entiers.length);\n\t\t \n\t\t \n\t\t \n\t\t }", "abstract Function get(Object arg);", "@Test\n public void test_singleParametersToArity() throws Exception {\n new Thread(MultiProcessor::processStrings);\n\n // Same but with one value\n ListSequence.fromList(ListSequence.fromList(new ArrayList<String>())).select((values) -> MultiProcessor.processStrings(values));\n\n // Same but with more than one value\n Arrays.sort(new String[]{}, MultiProcessor::processStrings);\n }", "FunctionExtract createFunctionExtract();", "Object[] args();", "@FunctionalInterface\npublic interface FISample {\n\n void toLowerCase(String v);\n\n default String toUpperCase(String value) {\n return value.toUpperCase();\n }\n}", "AstroArg seq(AstroArg first, AstroArg second);", "@FunctionalInterface\npublic interface PentaFunction<T, U, V, W, X, R> {\n\tR apply(T t, U u, V v, W w, X x);\n}", "public interface AnonymousClass1lE {\n void A7X(String str, String str2, String str3);\n\n void A7Z(String str, String str2, @Nullable Map<String, String> map);\n\n void A7b(String str, String str2, Throwable th, @Nullable Map<String, String> map);\n\n void A7d(String str, String str2, @Nullable Map<String, String> map);\n\n void A7f(String str, String str2);\n\n void A8G(String str, String str2, boolean z);\n\n boolean A9J(String str);\n}", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "OpFunctionArg createOpFunctionArg();", "T newInstance(Object... args);", "public static void main(String[] args) {\n\t\t\r\n\t\tnew Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"Before JAVA 8, too much code for too little to do\");\r\n\t\t\t}\r\n\t\t}).start();\r\n\t\t\r\n\t\t// Java 8 way:\r\n\t\t\r\n\t\tnew Thread( () -> System.out.println(\"In Java 8, Lambda Expression rocks !!\") ).start();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------*************************-------------\");\r\n\t\t\r\n\t\t// Iterating Over List Using Lambda Expressions\r\n\t\t\r\n\t\tList features = Arrays.asList(\"Lambdas\",\"Default Method\",\"Stream API\",\"DAte and Time API\");\r\n\t\t\r\n\t\tfeatures.forEach(n -> System.out.println(n));\r\n\r\n\t\tSystem.out.println(\"-----------*************************-------------\");\r\n\t\t\t\t\r\n\t\t// Even better use method reference feature of Java 8\r\n\t\t// method reference is denoted by :: ****double colon***** operator\r\n\t\t// looks similar to scope resolution operator of C++\r\n\t\t\r\n\t\tfeatures.forEach(System.out::println);\r\n\r\n\t}", "public void lambaAsObjectExample() {\n }", "Astro tuple(AstroArg args);", "public static void main(String[] args) {\n Supplier<Person> supplierPerson = () -> new Person();\n Supplier<Person> supplierPersonMR = Person::new;\n\n // 1 - Arity\n Function<String, Person> functionPerson = (string) -> new Person(string);\n Function<String, Person> functionPersonMR = Person::new;\n functionPerson.apply(\"Dennis Ritchie\");\n\n // 2 - Arity\n Person person = supplierPersonMR.get();\n BiConsumer<String, String> biConsumer = (first, last) -> person.tellMyName(first, last);\n BiConsumer<String, String> biConsumerMR = person::tellMyName;\n biConsumerMR.accept(\"Edsger\", \"Dijkstra\");\n\n // Method Reference on class methods\n nameTeller(Person::new);\n nameTeller(Person::firstOfHisName);\n\n // Method Reference on instance methods\n namePrinter(person::sayMyName);\n nameAssigner(person::tellMyName);\n\n // One small consideration of Lambda vs Method Reference\n try {\n String string = null;\n Runnable run1 = () -> string.length();\n Runnable run2 = string::length;\n } catch (NullPointerException npe) { // Catching this NPE for the exercise, don't do this on the wild\n println(\"NPE at \" + npe.getStackTrace()[1]);\n }\n }", "public interface PublisherFactory extends Function<Environment, Publisher> { }", "private interface TriFunction<T1,T2,T3,R>\n {\n public R apply(T1 v1, T2 v2, T3 v3);\n }", "@FunctionalInterface\ninterface ConverterInterface<F, T> {\n T convert(F from);\n}", "public static void main(String[] args) throws IOException {\n\tSample Lambda = String -> System.out.println(String);\n\t// Invocation\n\tLambda.method(\"Hello, World!\"); // Output: Hello, World!\n\n\t// Or, using new Generic Functional Interfaces provided in the new package `java.util.function' bundled with Java 1.8\n\t// (NO custom interface declaration required!):\n\t// More Information: http://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html\n\tConsumer<String> Lambda_2 = String -> System.out.println(String);\n\t// Invocation\n\tLambda_2.accept(\"Hello, World 2!\"); // Output: Hello, World 2!\n\t// A recursive lambda function!\n\t// Relevant: https://pysaumont.github.io/2014/09/01/Recursive-lambdas-in-Java-8.html\n\tfactorial = a -> a > 1 ? a * factorial.apply(a - 1) : a;\n\tSystem.out.println(factorial.apply(10)); // Output: 3628800\n\n\tSystem.out.println(E); // Output: 5\n\t // `E' is a static variable! It can be accessed even when the class has not been instantiated yet!\n\tJava_Experiment_File One = new Java_Experiment_File(3); // Output: Instance variable `F' is set to 3!\n\tSystem.out.println(One); // Output: Package.MyPack.Java_Experiment_File@...\n\t // ... represents the hexadecimal memory address where object is stored\n\tJava_Experiment_File Two = new Java_Experiment_File(4, \"Hi\"); // Output: Instance variable `F' set to 4 and `Q' set to 'Hi'!\n\tTwo.E = 9;\n\tSystem.out.println(One.E + \" \" + Two.E + \" \" + E); // Output: 9 9 9\n\t // Since variable `E' is static, if value associated with one object instance changes, value associated with *all* object instances changes!\n\t\n\t// Two ways to call static generic method `Method'\n\tJava_Experiment_File.<Integer>Method(3); // Output: 3\n Method(\"Hello\"); // This way the method can take an argument of *any* type (e.g. Method(3) also works) unlike previous way\n\t // This is known as `Type Inference' : http://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html\n\t // Output: Hello\n\n\tJava_Experiment_File[] Array = new Java_Experiment_File[3]; // Initializes `Array' as an array of objects of type `Java_Experiment_File'\n\t // Any type referring to a class and declaring an object is called a `reference type'; otherwise a `primitive type'\n\t // Also, any variable which holds an object is known as a `reference'\n // Is the constructor still called? No! Nothing is output! Creates array with 3 uninstantiated references to `Java_Experiment_File'!\n\t // Relevant: http://stackoverflow.com/questions/3426843/what-is-the-default-initialization-of-an-array-in-java\n\t// Java enhanced (`for-each') loops\n\t// Iterates through array `Array' initialized above\n\tfor (Java_Experiment_File U : Array) {\n\t System.out.println(U); // Output: null\n\t // Calling `U(4)' or `new U(4)' or anything along lines causes compile-time error!\n\t}\n\t\n\t// To create object instances in array `Array' do following\n\tfor (int index = 0;index < 3;index++) {\n\t Array[index] = new Java_Experiment_File(5); // Output: Instance variable `F' is set to 5!\n\t System.out.println(Array[index]); // Output: Package.MyPack.Java_Experiment_File@...\n\t}\n\tSystem.out.println(Array[0]); // Output: Package.MyPack.Java_Experiment_File@...\n\n\tScanner in_2 = new Scanner(System.in).useDelimiter(\"\\\\n\"); // Very versatile input reading object; best way to read from STDIN\n System.out.println(in_2.next()); // Read next token of input up to the delimiter provided as argument to `Scanner' method `useDelimiter(...)'; In this case, it reads the first line of the input\n in_2.close(); // Always remember to close streams to avoid memory leaks!\n\n\t// try-catch-[finally] block; Used to handle exceptions; the `finally' block is optional and *always* invoked if present\n\t// Since the `InputStreamReader' class *can* throw an `IOException', it must either be handled in a `try-catch-[finally]' block *or* be declared using the `throws' keyword in the method declaration\n\t// This is true for *all* exceptions!\n\t// More information: http://stackoverflow.com/questions/1989077/the-throws-keyword-for-exceptions-in-java\n\t// More information: http://stackoverflow.com/questions/3794910/difference-between-try-catch-and-throw-in-java\n\ttry {\n\t InputStreamReader in = new InputStreamReader(System.in); // Instantiate object with methods capable of reading from STDIN in reference `in'\n\t // `System.in' is a static field which allows access to STDIN. It is statically defined in the class `java.lang.System'.\n\t\n\t System.out.println((char)in.read()); // Reads single character from STDIN and outputs it. As `in.read()' returns codepoint representing character, return value must be casted to `char'.\n\t // Output: {The first character of input}\n\n\t in.close(); // ALWAYS remember to close streams to free allocated memory! Otherwise, a memory leak could occur (https://en.wikipedia.org/wiki/Memory_leak)!\n\t throw new Exception(); // Manually throw an exception\n\t}\n\tcatch (Exception e) {\n\t // Do something if exception thrown.\n\t}\n\tfinally {\n\t // Do something regardless of whether exception thrown or not.\n\t}\n\n\t// ArrayList: An extensible, dynamic array; Much more versatile than the built-in arrays\n\t// Now, before we move on, notice that `List<E>' is an interface in the `java.util' package. In that case, how can it be a type?\n\t// Well, whenever an interface is used as a type for a reference variable, the variable may only be assigned an object which is an instance of a class which implements that interface!\n\t// For example, the `ArrayList<E>' class implements the `List<E>' interface. Therefore, I can assign a `ArrayList<E>' object to a reference varaible of type `List<E>'.\n\t// However, if I were to assign an instance of the `Java_Experiment_File' class to a reference variable of type `List<E>', since `Java_Experiment_File' does *not* implement `List<E>', a compile-time exception would occur.\n\tList<Integer> arrayList = new ArrayList<Integer>(Arrays.asList(123, 56, 365, 34, -1, -456, 4563));\n\n\t// Lambda expression as an argument to a method which sorts the `ArrayList<E>'\n\t// The lambda experession is outmatically being casted to `Comparator<E>' where type inference based on `ArrayList' type is used to figure out `E'\n\t// The `Comparator<E>' functional interface is apart of the `java.utils' package\n\t// The following utilizes merge sort for sorting purposes\n\tarrayList.sort((a,b) -> a.compareTo(b));\n\n\tSystem.out.println(arrayList); // Output: [-456, -1, 34, 56, 123, 365, 4563]\n\n\tList<Integer> arrayList2 = new ArrayList<Integer>(Arrays.asList(25, 46, 89, 53, 1265, 43, 8234509, -45234895, -322345532));\n\n\t// The following also works and the argument is known as a `method reference'\n\t// The part before the colons is the class containing the method and the part after is the mthod to be referenced\n\t// If the method to be referenced is `new' then the constructor is referenced\n\tarrayList2.sort(Integer::compareTo);\n\n\tSystem.out.println(arrayList2); // Output: [-322345532, -45234895, 25, 43, 46, 53, 89, 1265, 8234509]\n\n\tList<?> array = new ArrayList<Integer>(Arrays.asList(1,2,3,4));\n\n // Anonymous inner classes! The following compiles and works!\n\t// NOTE: Constructors *not* allowed in anonymous inner classes!\n\t// Also, class name must first be declared somewhere else as either interface or class!\n\t// If the predefined class name is an interface, the anonymous inner class is a new class instantiated with the name of the interface which `implements' the interface's abstract methods!\n\t// Therefore, the following `AnonymousClass' must implemement the abstract methods `greet' and `okay' defined in the interface `AnonymousClass'.\n\t// Also, the following creates another class file named `Java_Experiment_File$1.class'\n\tAnonymousClass D = new AnonymousClass() {\n\t\t\n\t\tpublic String greet(String name) {\n\t\t return \"Hi \" + name + \"!\";\n\t\t}\n\n\t\tpublic int okay(int input) {\n\t\t return input * 4;\n\t\t}\n\n\t }; // One way to instantiate an anonymous inner class\n\tSystem.out.println(new AnonymousClass() {\n\n\t\tint i = 4;\n\t\t\n\t\tpublic String greet(String name) {\n\t\t return \"Hello \" + name + \"!\";\n\t\t}\n\n\t\tpublic int okay(int input) {\n\t\t return input + 3;\n\t\t}\n\t\t\n\t }); // Anonymous class as an argument to a method\n\t // Output: Package.MyPack.Java_Experiment_File$1@...\n }", "public interface FunctionProvider {\n\n <T, R> Function<T, R> get(URI identifier, Class<T> inputType, Class<R> returnType) throws FunctionResolutionException;\n\n <T, R> Function<T, R> get(String identifier, Class<T> inputType, Class<R> returnType) throws FunctionResolutionException;\n}", "public static void main(String[] args) {\n Foo foo = new Java8Default();\n foo.sumDefault(2,4);\n\n }", "ArgList createArgList();", "public interface PartialApplication {\n\n /**\n * Binds the provided argument to the function, and returns a Supplier with that argument applied.\n *\n * bind(f, a) is equivalent to () -> f.apply(a)\n */\n static <I, O> Supplier<O> bind(Function<I, O> f, I input) {\n return () -> f.apply(input);\n }\n\n /**\n * Binds the provided argument to the function, and returns a new Function with that argument already applied.\n *\n * bind(f, a) is equivalent to b -> f.apply(a, b)\n */\n static <A, B, R> Function<B, R> bind(BiFunction<A, B, R> f, A firstParam) {\n return secondParam -> f.apply(firstParam, secondParam);\n }\n\n /**\n * Binds the provided arguments to the function, and returns a new Supplier with those arguments already applied.\n *\n * bind(f, a, b) is equivalent to () -> f.apply(a, b)\n */\n static <A, B, R> Supplier<R> bind(BiFunction<A, B, R> f, A firstParam, B secondParam) {\n return () -> f.apply(firstParam, secondParam);\n }\n\n /**\n * Binds the provided argument to the function, and returns a new BiFunction with that argument already applied.\n *\n * bind(f, a) is equivalent to (b, c) -> f.apply(a, b, c)\n */\n static <A, B, C, R> BiFunction<B, C, R> bind(TriFunction<A, B, C, R> f, A firstParam) {\n return (secondParam, thirdParam) -> f.apply(firstParam, secondParam, thirdParam);\n }\n\n /**\n * Binds the provided arguments to the function, and returns a new Function with those arguments already applied.\n *\n * bind(f, a, b) is equivalent to c -> f.apply(a, b, c)\n */\n static <A, B, C, R> Function<C, R> bind(TriFunction<A, B, C, R> f, A firstParam, B secondParam) {\n return thirdParam -> f.apply(firstParam, secondParam, thirdParam);\n }\n}", "public interface Function<T, U> {\n static <X,Y,Z> Function<Y,Z> partialA(X i, Function<X,Function<Y,Z>> l) {\n return l.apply(i);\n }\n\n static <X,Y,Z> Function<X,Z> partialB(Y i, Function<X,Function<Y,Z>> l) {\n return x->l.apply(x).apply(i);\n }\n\n static <X,Y,Z> Function<X,Function<Y,Z>> curry(Function<Tuple<X,Y>,Z> l) {\n return x->y->l.apply(new Tuple<X,Y>(x,y));\n }\n\n static <X,Y,Z> Function<Tuple<X,Y>,Z> unCurry(Function<X,Function<Y,Z>> l) {\n return x->l.apply(x._1).apply(x._2);\n }\n\n static <X,Y,Z> Function<X,Function<Y,Z>> reverseParameter(Function<Y,Function<X,Z>> l) {\n return x->y->l.apply(y).apply(x);\n }\n\n static <U> Function<U,U> composeAll(List<Function<U,U>> list) {\n return list.foldLeft(Function.<U>identity(),x->y->Function.compose(x,y));\n }\n\n U apply(T arg);\n\n\t/**\n\t * It directly return a function which is trivial. It just return whatever input.\n\t * @param <T>\n\t * @return\n\t */\n\tstatic <T> Function<T, T> identity() {\n\t\treturn t -> t;\n\t}\n\n\t/**\n\t * Should be able to higherCompose two function into one function\n\t * @return\n\t */\n\tstatic <X, Y, Z> Function<Function<X, Y>,\n Function<Function<Y, Z>,\n Function<X, Z>>> higherAndThen() {\n return x -> y -> z -> y.apply(x.apply(z));\n }\n\n /**\n * It is similar to {@link #higherCompose}\n * @return\n */\n static <X, Y, Z> Function<Function<Y, Z>,\n Function<Function<X, Y>,\n Function<X, Z>>> higherCompose() {\n return x -> y -> z -> x.apply(y.apply(z));\n }\n\n static <X, Y, Z> Function<X, Z> composeAndThen(Function<X,Y> f1, Function<Y,Z> f2){\n return Function.<X,Y,Z>higherAndThen().apply(f1).apply(f2);\n }\n\n static <X, Y, Z> Function<X, Z> compose(Function<Y,Z> f1, Function<X,Y> f2){\n return Function.<X,Y,Z>higherCompose().apply(f1).apply(f2);\n }\n\n\n}", "@FunctionalInterface\npublic interface MyFunctional01 {\n\tvoid method();\n\t// Error:(7, 1) java: Unexpected @FunctionalInterface annotation\n\t// ru.demi.java_examples.java_8.MyFunctional01 is not a functional interface\n\t// multiple non-overriding abstract methods found in interface ru.demi.java_examples.java_8.MyFunctional01\n\t// void method02();\n}", "@FunctionalInterface\npublic interface BiIntFunction {\n int apply(int var1, int var2);\n}", "@FunctionalInterface\npublic interface MyFunc {\n\n public String getValue(String str);\n}", "public static void main(String[] args){\n SomeFunc<String> reverse = (str) -> new StringBuilder(str).reverse().toString();\n// System.out.println(reverse.func(\"Hello World\"));\n\n // passing lambda expressions as arguments\n// System.out.println(makeHappy((s -> s + \" :)\"), \"Hello Jeff\"));\n\n MyNumberType doubleNum = (nt) -> nt * 2;\n MyNumberType addOneToNum = (nt)-> nt + 1;\n System.out.printf(\"2 doubled is %d, 2 + 1 is %d\", doubleNum.transform(2), addOneToNum.transform(2));\n System.out.printf(\"\\n2 doubled + 1 is %d\", doubleNum.andThen(addOneToNum).transform(2));\n\n// consumerDemo();\n// predicateDemo();\n functionDemo();\n// supplierDemo();\n\n }", "public static void main(String[] args) {\n\t\t//Até o java 7\n\t\tnew Thread(new Runnable() {\n\n\t\t @Override\n\t\t public void run() {\n\t\t System.out.println(\"Executando um Runnable\");\n\t\t }\n\n\t\t}).start();\n\t\t//A partir do java 8\n\t\tnew Thread(() -> System.out.println(\"Executando um Runnable\")).start();\n\t\t\n\t\t//iterando com java 8: classe anonima\n\t\ttexto.forEach(new Consumer<String>() {\n\t\t public void accept(String s) {\n\t\t System.out.println(s);\n\t\t }\n\t\t});\n\t\t//iterando com java 8: lambda\n\t\t//Essa sintaxe funciona para qualquer interface \n\t\t//que tenha apenas um método abstrato\n\t\ttexto.forEach((String s) -> {\n\t\t System.out.println(s);\n\t\t});\n\t\t//ou\n\t\ttexto.forEach((s) -> {\n\t\t System.out.println(s);\n\t\t});\n\t\t//ou\n\t\ttexto.forEach(s -> {\n\t\t System.out.println(s);\n\t\t});\n\t\t//ou\n\t\ttexto.forEach(s -> System.out.println(s));\n\t\t// Uma interface que possui apenas um método abstrato \n\t\t//é agora conhecida como interface funcional e pode ser utilizada dessa forma\n\t\t\n\t\t//Outro exemplo é o próprio Comparator. Se utilizarmos a forma \n\t\t//de classe anônima, teremos essa situação: \n\t\ttexto.sort(new Comparator<String>() {\n\t\t public int compare(String s1, String s2) {\n\t\t if (s1.length() < s2.length())\n\t\t return -1;\n\t\t if (s1.length() > s2.length())\n\t\t return 1;\n\t\t return 0;\n\t\t }\n\t\t});\n\t\t//ou com lambda\n\t\ttexto.sort((s1, s2) -> {\n\t\t if (s1.length() < s2.length())\n\t\t return -1;\n\t\t if (s1.length() > s2.length())\n\t\t return 1;\n\t\t return 0;\n\t\t});\n\t\t//ou\n\t\ttexto.sort((s1, s2) -> {\n\t\t return Integer.compare(s1.length(), s2.length());\n\t\t});\n\t\t//ou como há apenas um único statement, podemos remover as chaves\n\t\ttexto.sort((s1, s2) -> Integer.compare(s1.length(), s2.length()));\n\t}", "@FunctionalInterface\n public interface PReturn {\n\n //functional interfaces: one abstract method, as many instance or static methods as you'd like.\n public int returnInt(int x);\n //public abstract int returnInt2(String x);\n\n //new to java 8: default methods (cannot be used with @FunctionalInterfaces\n //public default int returnInt(int x) { return x; }\n\n //new to java 8: static methods now in interfaces\n public static boolean isIReturn(Object obj) { return obj instanceof IReturn; }\n}", "@FunctionalInterface\npublic interface ThrowableFunction3<T1, T2, T3, TResult> {\n\n TResult apply(T1 item1, T2 item2, T3 item3) throws Throwable;\n}", "public static void main(String[] args) {\n FunctionFactory<Integer, Integer> functionFactory = new FunctionFactory<>();\n // 1. add simple functions \"square\", \"increment\", \"decrement\", \"negative\"\n // 2. get each function by name, and apply to argument 5, print a result (should be 25, 6, 4,-5 accordingly)\n // 3. add simple function \"abs\" using method reference (use class Math)\n // 4. add try/catch block, catch InvalidFunctionNameException and print some error message to the console\n // 5. try to get function with invalid name\n\n functionFactory.addFunction(\"square\", n -> n * n);\n functionFactory.addFunction(\"abs\", Math::abs);\n\n functionFactory.getFunction(\"square\").apply(5);\n try{\n functionFactory.getFunction(\"abs\").apply(5);\n }catch (InvalidFunctionNameException e){\n System.out.println(e.getMessage());\n }\n\n\n\n\n }", "public static void main(String[] args) {\n\n Integer value = Integer.valueOf(\"769\");\n Function<String, Integer> function = Integer::valueOf;\n int result = function.apply(\"890\");\n System.out.println(result);\n\n BiFunction<String, Integer, Character> function1 = String::charAt;\n Character ch = function1.apply(\"All things are difficult before they are easy\", 2);\n System.out.println(ch);\n\n BiFunction<String, Long, Apple> appleBiFunction = Apple::new;//it will automatically locate the right constructor\n Apple apple = appleBiFunction.apply(\"Blue\",784L);\n System.out.println(apple);\n\n TriFunction<String, Long, String, ComplexApple> triFunction = ComplexApple::new;\n ComplexApple complexApple = triFunction.apply(\"Red\", 157L, \"Fushi\");\n System.out.println(complexApple);\n\n List<Apple> list2 = Arrays.asList(new Apple(\"green\", 150),\n new Apple(\"yellow\", 120),\n new Apple(\"purple\", 170));\n System.out.println(list2);\n System.out.println(\"process sorting...\");\n list2.sort(Comparator.comparing(Apple::getColor));// look into the source code if having time\n System.out.println(list2);\n }", "public static void main(String[] args) {\n Function<String, Integer> func = x -> x.length();\n Integer apply = func.apply(\"hello\");\n System.out.println(apply);\n\n // Function (Take Integer argument and return also an Integer argument multiply by 2)\n Function<Integer, Integer> func2 = x -> x * 2;\n System.out.println(func2.apply(25));\n\n // Use andThen 1. call function func 2. then call function func2\n Integer result = func.andThen(func2).apply(\"hello\");\n System.out.println(result);\n\n Integer y = 2;\n Function<Integer, Integer> nf = x -> x * 4;\n System.out.println(nf.apply(y + 5));\n }", "Reproducible newInstance();", "public static void main(String[] args) {\r\n\t\tSomeJava8Features obj = new SomeJava8Features();\r\n\r\n\t\t// StringJoiner\r\n\t\texampleStringJoiner();\r\n\t\t\r\n\t\t// Default\r\n\t\tint ary[] = {3,6,8,9,0};\r\n\t\tSystem.out.println(\"\\nsumOfGivenIntArray ... \" + obj.sumOfGivenIntArray(ary));\r\n\t\tobj.sayMore(\"Hello Rohini\");\r\n\t\t\r\n\t\t// ForEach & Lambda Expression\r\n\t\texampleForEach_FindMaximum(ary);\r\n\t\t\r\n\r\n\t}", "public interface Function7<P1, P2, P3, P4, P5, P6, P7, R> {\n}", "OpFunction createOpFunction();", "private PartitionFunctionFactory() {\n }", "public static void main(String[] args) {\n\t\tFunction<Integer, Integer> f = new Function<Integer, Integer>() {\n\n\t\t\t@Override\n\t\t\tpublic Integer apply(Integer x) {\n\t\t\t\treturn x + 1;\n\t\t\t}\n\t\t};\n\t\tFunction<Integer, Integer> g = new Function<Integer, Integer>() {\n\n\t\t\t@Override\n\t\t\tpublic Integer apply(Integer x) {\n\t\t\t\treturn x * 2;\n\t\t\t}\n\t\t};\n\t\tFunction<Integer, Integer> h = f.compose(g);\n\t\tint result = h.apply(1);\n\t\tSystem.out.println(result);\n\t}", "public interface Function2<T, U, K> {\n\n /**\n * This method is a composition of two functions:\n * it acts as g(f(x, y))) where f is the Function2 class object\n * and g is a Function1 class object.\n * @param g one-argument function,\n * the outer function of the composition\n * @param <V> outer function range type parameter\n * @return function of one argument that represents g(f(x, y))\n */\n default <V> Function2<T, U, V> compose(@NotNull final Function1<? super K, ? extends V> g) {\n return (t, u) -> g.apply(Function2.this.apply(t, u));\n }\n\n /**\n * This method binds the first argument with a provided value.\n * @param newFirstArgument argument to be bound\n * @return new function object with a bound first argument\n */\n default Function1<U, K> bind1(T newFirstArgument) {\n return u -> Function2.this.apply(newFirstArgument, u);\n }\n\n /**\n * This method binds the second argument with a provided value.\n * @param newSecondArgument argument to be bound\n * @return new function object with a bound second argument\n */\n default Function1<T, K> bind2(U newSecondArgument) {\n return t -> Function2.this.apply(t, newSecondArgument);\n }\n\n /**\n * This method implements currying:\n * instead of a two-argument function we get\n * two one-argument functions.\n * @return function g such that g(x)(y) == f.apply(x, y)\n */\n default Function1<T, Function1<U, K>> curry() {\n return this::bind1;\n }\n\n /**\n * This method applies the function to provided arguments.\n * @param arg1 first argument\n * @param arg2 second argument\n * @return result of function application\n */\n K apply(T arg1, U arg2);\n}", "@FunctionalInterface\npublic interface PairingFunction<X> extends Function<X, Pair<X, ? extends Comparable>> {\n Comparator<Pair<?, ? extends Comparable>> COMPARATOR = Comparator.comparing(Pair::getValue);\n\n Pair<X, ? extends Comparable> apply(X obj);\n}", "Argument createArgument();", "@FunctionalInterface\r\ninterface SingleMethod { // functional interface cant have more than one abstract method\r\n\tvoid method();\r\n\t\r\n}", "public interface Function<T, R> {\n\n /**\n * Applies this function to the given argument.\n *\n * @param t the function argument\n * @return the function result\n */\n R apply(T t);\n}", "private Quantify()\n {\n throw new UnsupportedOperationException(\"Instantiation of utility classes is not supported.\");\n }", "T create(R argument);", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }", "public interface Function2<T, U, R> {\n R apply(T t, U u);\n\n /**\n * Method to create composition: after(this(x, y)).\n *\n * @param after function to apply after.\n * @param <V> return type of after.\n * @return composition of functions.\n */\n default <V> Function2<T, U, V> compose(Function1<? super R, ? extends V> after) {\n return (t, u) -> after.apply(this.apply(t, u));\n }\n\n /**\n * Method to bind 1st parameter of function.\n *\n * @param firstParameter value of 1st argument to bind.\n * @return function from 1 arguments that waits for the second argument.\n */\n default Function1<U, R> bind1(T firstParameter) {\n return (u) -> apply(firstParameter, u);\n }\n\n /**\n * Method to bind 2nd parameter of function.\n *\n * @param secondParameter value of 2nd argument to bind.\n * @return function from 1 arguments that waits for the first argument.\n */\n default Function1<T, R> bind2(U secondParameter) {\n return (t) -> apply(t, secondParameter);\n }\n\n /**\n * Method to curry function, second parameter will be bind.\n *\n * @param parameter parameter to set.\n * @return function from 1 argument(1st argument of Function2).\n */\n default Function1<T, R> curry(U parameter) {\n return bind2(parameter);\n }\n}", "public interface Function<IN, OUT> {\n\n /**\n * Compute the result of applying the function to the input argument\n *\n * @param in the input object\n * @return the function result\n */\n OUT apply( IN in );\n\n}", "@Test\r\n\tpublic void testNoArg() {\r\n\t\tAssert.assertEquals(\"test[]\", new FunctionImpl.FunctionBuilderImpl(\"test\").build().toQ());\r\n\t}", "private FuncArgs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "default <V> Fn<V, U> compose(Fn<V, T> before){\n Objects.requireNonNull(before);\n return (V v)-> apply(before.apply(v));\n }", "public interface Functor3<T0,T1,T2,F extends Functor3<?,?,?,F>> {\n <R0,R1,R2> F map(Function<T0,R0> fn0, Function<T1,R1> fn1, Function<T2,R2> fn2);\n <R0,R1,R2> F map(Function<T0,Function<T1, Function<T2, Tuple3<R0,R1,R2>>>> fn);\n}", "private ArrayOps() {\r\n }", "public static void main(String arg[]) {\n\n }", "@FunctionalInterface\npublic interface Consumer<T> {\n\n /**\n * Performs operation on argument.\n *\n * @param value the input argument\n */\n void accept(T value);\n\n class Util {\n\n private Util() { }\n\n /**\n * Composes {@code Consumer} calls.\n *\n * <p>{@code c1.accept(value); c2.accept(value); }\n *\n * @param <T> the type of the input to the operation\n * @param c1 the first {@code Consumer}\n * @param c2 the second {@code Consumer}\n * @return a composed {@code Consumer}\n * @throws NullPointerException if {@code c1} or {@code c2} is null\n */\n public static <T> Consumer<T> andThen(final Consumer<? super T> c1, final Consumer<? super T> c2) {\n return new Consumer<T>() {\n @Override\n public void accept(T value) {\n c1.accept(value);\n c2.accept(value);\n }\n };\n }\n }\n}", "public abstract Object mo26777y();", "@FunctionalInterface\n private interface Consumer<T> {\n void accept(T t);\n }", "private CollectionUtils() {\n\n\t}", "public static void main(String[] args) {\n\n\t\tUnaryOperator<Integer> func=x->x*7;\t\t\n\t\tint num=func.apply(10);\n\t\tSystem.out.println(num);\n\t\t\n\t\tFunction<Integer, Integer> func1=x->x*10;\n\t\tSystem.out.println(func1.apply(10));\n\t\t\n\t\tList<String> langList=new ArrayList<String>();\n\t\tlangList.add(\"Java\");\n\t\tlangList.add(\"Ruby\");\n\t\tlangList.add(\"Python\");\n\t\t\n\t\tSystem.out.println(langList);\n\t\t\n\t\tlangList.replaceAll(ele -> ele +\" Deeps\");\n\t\tSystem.out.println(langList);\n\t}", "public interface DuelCallable<T, E> {\n\n\tvoid run(T one, E two);\n\n}", "uicargs createuicargs();", "public interface IFunctionArgumentsResolver {\r\n\t/**\r\n\t * Finds all function arguments for the given pattern.\r\n\t * @param argumentsPattern pattern that decribes function arguments.\r\n\t * @return list of all resolved arguments.\r\n\t * @throws InvalidArgumentsPatternException the given pattern is not correct according\r\n\t * to used grammar. \r\n\t */\r\n\tpublic List<FunctionArgument> resolveArguments(String argumentsPattern) throws InvalidArgumentsPatternException;\r\n}", "@FunctionalInterface\npublic interface BiFunction<I1,I2,O,E extends Exception> {\n\n\tpublic O apply(I1 first, I2 second) throws E;\n\n}", "public Object[] getConstructorArgs ();", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public void implementFunctionalInterface2() {\n\t\tSystem.out.println(\"\\n\\n************Implement Functional Interfaces - 2**********\");\n\t\t// Functional Interface Implementations:\n\t\tMathOperation addition = (int a, int b) -> a + b;\n\t\t// without type declaration - Type is optional in lambda expression\n\t\tMathOperation subtraction = (a, b) -> a - b;\n\t\t// Curly braces are mandatory when you use the return statement\n\t\tMathOperation multiplication = (int a, int b) -> {\n\t\t\treturn a * b;\n\t\t};\n\t\tMathOperation division = (a, b) -> a / b;\n\n\t\t// Method Calls:\n\t\tSystem.out.println(\"10 + 5 = \" + addition.operation(10, 5));\n\t\tSystem.out.println(\"10 - 5 = \" + subtraction.operation(10, 5));\n\t\tSystem.out.println(\"10 x 5 = \" + multiplication.operation(10, 5));\n\t\tSystem.out.println(\"10 / 5 = \" + division.operation(10, 5));\n\t}", "public void builtInFunctionalInterfaces() {\n\t\tSystem.out.println(\"\\n\\n************Built In Functional Interfaces**********\");\n\t\tList<String> names = Arrays.asList(\"bob\", \"josh\", \"megan\");\n\n\t\tPredicate<String> predicate = s -> s.length() < 5;\n\t\tSystem.out.println(predicate.test(\"Predicate Test\"));\n\t\t// filter uses predicate functional interface\n\t\tList<String> namesWithM = names.stream().filter(name -> name.startsWith(\"m\")).collect(Collectors.toList());\n\n\t\tConsumer<Integer> consumer = a -> System.out.println(\"Print: \" + (a + 10));\n\t\tconsumer.accept(15);\n\t\t// ForEach uses consumer functional interface\n\t\tnames.forEach(name -> System.out.println(\"Hello, \" + name));\n\n\t\tSupplier<String> supplier = () -> \"Print Supplier\";\n\t\tSystem.out.println(supplier.get());\n\n\t\tFunction<String, Integer> function = (s) -> s.length();\n\t\tSystem.out.println(\"String Length: \" + function.apply(\"Function Test\"));\n\n\t\tBinaryOperator<Integer> binaryOperator = (a, b) -> a + b;\n\t\tSystem.out.println(\"Addition: \" + binaryOperator.apply(8, 9));\n\n\t\tUnaryOperator<String> unaryOperator = s -> s.toUpperCase();\n\t\t// ReplaceAll uses unary operator functional interface\n\t\tnames.replaceAll(unaryOperator); // or names.replaceAll(name -> name.toUpperCase());\n\t\tnames.forEach(i -> System.out.print(i + \" \"));\n\n\t\tRunnable runnable = () -> System.out.println(\"Execute Run Method\");\n\t\trunnable.run();\n\n\t\tComparator<Integer> comparator = (a, b) -> b - a;\n\t\tList<Integer> list = Arrays.asList(5, 3, 7, 2, 4);\n\t\tCollections.sort(list, comparator);\n\t\tlist.forEach(i -> System.out.print(i + \" \"));\n\t}", "public static Object PQinit(Object... arg) {\nUNSUPPORTED(\"c01vxogao855zs8fe94tpim9g\"); // void\nUNSUPPORTED(\"3p0cdanvp4f13d8omi42lvjl1\"); // PQinit(void)\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\nUNSUPPORTED(\"akljrpu8bej9lq4rmsktz8u2e\"); // PQcnt = 0;\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\n\nthrow new UnsupportedOperationException();\n}", "public static void main(String[] args) {\n\n List<String> namelist=new ArrayList<>();\n namelist.add(\"Pranta\");\n namelist.add(\"Tandra\");\n namelist.add(\"Prodip\");\n namelist.add(\"Aunidra\");\n\n\n\n\n /**\n * Without lamda\n */\n\n// for (String names:namelist\n// ) {\n// System.out.println(names);\n// }\n /**\n * With lamda\n */\n namelist.forEach(\n (names)-> System.out.println(names)\n );\n }" ]
[ "0.56514883", "0.5536626", "0.5510263", "0.5478847", "0.5453968", "0.54023206", "0.53511757", "0.5347041", "0.534333", "0.5340324", "0.5336745", "0.5325843", "0.531078", "0.5306871", "0.52890384", "0.52797645", "0.52582604", "0.52465713", "0.5243497", "0.5221146", "0.5188879", "0.51706946", "0.51479363", "0.51469064", "0.5138903", "0.5138502", "0.5122422", "0.5119577", "0.5118268", "0.51102793", "0.51085263", "0.5096925", "0.50939035", "0.5085583", "0.5084529", "0.5081125", "0.50714076", "0.50641084", "0.50595164", "0.5055421", "0.5054643", "0.50506335", "0.5045663", "0.5040659", "0.5038486", "0.5032258", "0.50250584", "0.5023575", "0.50203186", "0.50191563", "0.5015102", "0.50058657", "0.49928066", "0.4976616", "0.49355575", "0.49328545", "0.49288285", "0.4926683", "0.49202606", "0.4919088", "0.49158108", "0.49091816", "0.49023384", "0.48979858", "0.48974693", "0.48871562", "0.48718515", "0.48693743", "0.48630774", "0.48568407", "0.48565713", "0.48505193", "0.4839488", "0.4838011", "0.48376784", "0.4834617", "0.48286578", "0.48255122", "0.4824879", "0.4810809", "0.48096", "0.48085982", "0.47996584", "0.47966632", "0.47913328", "0.47890523", "0.47886378", "0.47855154", "0.47781456", "0.47781155", "0.47765535", "0.47733146", "0.47721842", "0.47688016", "0.47660527", "0.47590423", "0.47490156", "0.47464", "0.47437364", "0.4738532", "0.47333166" ]
0.0
-1
This is the main method that the java interpreter looks for
public static void main(String[] args) { // welcome message (call) welcome(); // game call game(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main()\n\t{\n\t}", "public static void main() {\n }", "public static void main(){\n\t}", "public static void main(String[] args) // every Java program starts with a main method or function\r\n\t{\n\t}", "public static void main(String[] args) {}", "public static void main(String[] args) {}", "public static void main(java.\n lang.\n String[] args) {\n \tif (x10.lang.Runtime.runtime == null) {\n \t\tSystem.err.println(\"Please use the 'x10' script to invoke X10 programs, or see the generated\");\n \t\tSystem.err.println(\"Java code for alternate invocation instructions.\");\n \t\tSystem.exit(128);\n \t}\n {\n \n//#line 3\nProgram0.\n runMain();\n }\n }", "public void main(){\n }", "static void main(String[] args)\n {\n }", "static void main(String[] args) {\n }", "public static void main(String[] args) {\t}", "public static void main(String[] args) { }", "public static void main (String []args){\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main() {\n \n }", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main (String[] args) {\n }", "public static void main (String[] args) {\n\n }", "public static void main (String[] args)\r\n {\n }", "public void main(String[] args) {\n\t}", "public static void main(String[] args) { }", "public static void main (String[] args) {\n\t\t\n\t}", "static public void main(String[] args) {\n\t}", "public static void main (String[] args) {\r\n\t\t \r\n\t\t}", "public static void main(String[] args) {\n \n\n }", "public static void main(String[] args) \n {\n\t \n\t \n\t \n}", "public static void main(String[] args)\n {\n\t\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main(String[] args) {\n \n }", "public static void main (String args[]) {\n\t\t\n }", "public static void main(String[] args) {\n\n\n\n }", "public static void main(String[] args) {\n\n\n\n }", "public static void main(String[] args) {\n\n\n\n }", "public static void main (String [] args) {\n }", "public static void main(String[] args) {\n \n\t}", "public static void main(String[] args)\n\t{\n\n\n\n\n\n\n\t}", "public static void main(String[] args) {\r\n }", "public static void main(String[] args) {\r\n }", "public static void main(String []args){\n }", "public static void main(String []args){\n }", "public static void main(String[] args){\n\t\t\n\t\t\n \t}", "public static void main(String[] args) {\n }", "public static void main(String[] args)\n {\n\n }", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args)\r\n {\r\n }", "public static void main(String[] args)\r\n {\r\n }", "public static void main (String [] args){\n\t}", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\t \t\n\t \t\n\t }", "public static void main(String[] args) {\n \n\t}", "public static void main(String[] args) {\n \r\n\t}", "public static void main (String[] args)\r\n{\r\n}", "public static void main(String[] args) {\n\t\r\n}", "public static void main(String[] args)\n {\n\n }", "public static void main(String[] args) {\n \n }", "public static void main (String [] args) {\n\t}", "public static void main(String[] args)\n {\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\n }" ]
[ "0.81235206", "0.80797607", "0.7994337", "0.79625154", "0.79545", "0.79545", "0.78652054", "0.78584725", "0.7831078", "0.7798257", "0.7770116", "0.77643436", "0.77483547", "0.7734296", "0.7734296", "0.7729518", "0.77221364", "0.77221364", "0.77221364", "0.7704481", "0.7697654", "0.7688022", "0.76796085", "0.7678106", "0.76723874", "0.7669982", "0.76680726", "0.7662062", "0.76498264", "0.76382935", "0.7620228", "0.7620228", "0.7618267", "0.7607831", "0.76005596", "0.7598511", "0.7598511", "0.7598511", "0.75982547", "0.7597623", "0.7589703", "0.7584384", "0.7584384", "0.75788206", "0.75788206", "0.7577685", "0.7577599", "0.757748", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.75747985", "0.757279", "0.757279", "0.75693667", "0.75614", "0.75614", "0.75614", "0.75613517", "0.75586", "0.75518394", "0.7550424", "0.7547456", "0.7547201", "0.75451267", "0.754329", "0.75407237", "0.75407237", "0.75407237", "0.75387514", "0.75387514", "0.75387514", "0.75387514", "0.75387514", "0.75387514", "0.75387514", "0.75387514" ]
0.0
-1
This method welcomes the player and explains how to play the game
public static void welcome() { System.out.println("Monty Hall Game"); System.out.println("Pick a door number first. "); System.out.println("You will have a chance to switch "); System.out.println("after a door has been revealed. "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void welcomeToGame() {\r\n System.out.println(\" _____ _____ _ \\n\" +\r\n\" / ____| / ____| | | \\n\" +\r\n\" | (___ _ __ __ _ ___ ___ | | _ __ __ _ __ __ | | ___ _ __ \\n\" +\r\n\" \\\\___ \\\\ | '_ \\\\ / _` | / __| / _ \\\\ | | | '__| / _` | \\\\ \\\\ /\\\\ / / | | / _ \\\\ | '__|\\n\" +\r\n\" ____) | | |_) | | (_| | | (__ | __/ | |____ | | | (_| | \\\\ V V / | | | __/ | | \\n\" +\r\n\" |_____/ | .__/ \\\\__,_| \\\\___| \\\\___| \\\\_____| |_| \\\\__,_| \\\\_/\\\\_/ |_| \\\\___| |_| \\n\" +\r\n\" | | \\n\" +\r\n\" |_| \\n\\n\");\r\n System.out.println(\"=== WELCOME ===\\n\");\r\n System.out.println(\"Welcome to the game\\n\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n System.out.println(\"Intro Blah blah blah\");\r\n }", "public void playGame() {\t\t\r\n\t\tthis.printWelcomeMessage();\r\n\r\n\t\t// While the game hasn't finished yet. \r\n\t\twhile (!board.isGameWon()) {\r\n\t\t\tthis.printMoveText(\"What piece would you like to move: \", \"\\n-- PLEASE ENTER A VALID PIECE --\", true);\r\n\t\t\tthis.printSeparator();\r\n\t\t\tthis.printMoveText(\"Where would you like to move this piece: \", \"\\n-- PLEASE ENTER A VALID LOCATION --\",\r\n\t\t\t\t\tfalse);\r\n\t\t\tthis.printSeparator();\r\n\t\t}\r\n\t\tSystem.out.println(board.toString());\r\n\t\tSystem.out.println(\"Level Complete - Congratulations!\");\r\n\t}", "public final void playGame() {\n\t\tSystem.out.println(\"Welcome to \"+nameOfGame+\"!\");\n\t\tsetup(numberOfPlayers);\n\t\tfor(int i = 0; !isGameOver(); i = (i+1) % numberOfPlayers) {\n\t\t\ttakeTurn(i+1);\n\t\t}\n\t\tfinishGame();\n\t}", "private void printWelcome()\n {\n System.out.println();\n System.out.println(\"Welcome to the World of Zuul!\");\n System.out.println(\"World of Zuul is a new, incredibly boring adventure game.\");\n System.out.println(\"Type 'help' if you need help.\");\n System.out.println();\n player.look();\n }", "public void play() \n { \n printWelcome();\n\n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n\n boolean finished = false;\n while (! finished) {\n Command command = parser.getCommand();\n finished = processCommand(command);\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "protected void printWelcome() {\n System.out.println(\"Slot machine game!\");\n System.out.println(\"- - - - - - - - - -\");\n }", "public void welcome(Player player) {\n\t\tplayer.speak(\"Where am I? Why is a saw in front of me? Why is my left feet handcuffed? What happened! There is a letter. I should read it......\");\n\t\tplayer.addCarried(new Item(\"handcuff\", null, new String[]{\"isWearable\", \"isDressed\", \"isPortable\", \"isImpedient\"}, new boolean[]{false, true, false, true}, new String[]{\"wearTo\"}, new String[]{\"left feet\"}));\n\t}", "public void welcome() {\n System.out.println(\"\\n---------------------------------------------------------------------\" +\n \"\\n\\tBienvenue sur le plateau de Donjon et Dragons !!!\" +\n \"\\n---------------------------------------------------------------------\");\n System.out.println(\"\\nPrêt à en découdre ?\");\n System.out.println(\"\\nNB : tu peux quitter le jeu à tout moment en tapant 'q'.\");\n }", "public void playGame() {\n Command command;\t\t// the last command entered by the user\n\n // some hello words...\n System.out.println();\n printWelcome();\n // repeatedly read commands and execute them until the game is over\n while (!finished) {\n System.out.println();\n System.out.println(currentRoom.longDescription());\n System.out.println();\n command = parser.getCommand();\n processCommand(command);\n }\n // some bye bye words...\n printGoodbye();\n }", "public void play()\n { \n printWelcome();\n\n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n\n boolean finished = false;\n while (! finished) {\n Command command = parser.getCommand();\n //System.out.println(command==null);\n String output = processCommand(command);\n finished = (null == output);\n if (!finished)\n { \n System.out.println(output);\n }\n\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "public void play() {\n\n showIntro();\n startGame();\n\n }", "private void printWelcomeMessage() {\r\n\t\tthis.printSeparator();\r\n\t\tSystem.out.println(\"-- Welcome to the JumpIN game --\\n\");\r\n\t\tSystem.out.println(\"Currently five levels are developed.\");\r\n\t\tSystem.out.println(\"Playing level 2\");\r\n\t\tSystem.out.println(\"To move a piece:\"); \r\n\t\tSystem.out.println(\"-Enter the piece's location\");\r\n\t\tSystem.out.println(\"-Wait for validation\");\r\n\t\tSystem.out.println(\"-Enter the location you want to move the piece to\\n\");\r\n\t\tthis.printSeparator();\r\n\t}", "private void welcome() {\n System.out.println(Strings.MAIN_WELCOME_MESSAGE);\n System.out.println();\n }", "public static void displayWelcomeMessage(Player player) {\r\n\t\t\r\n\t\t//Insert Blank lines to clear previous chat from other servers\r\n\t\t//or the players last session.\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\tplayer.sendMessage(\"\");\r\n\t\t\r\n\t\tString welcomeMessage = \" \\n\" + \" \\n\" + ChatColor.GOLD + \" \" + ChatColor.BOLD \r\n\t\t\t\t+ \"MinePile: \" + ChatColor.WHITE + \"\" + ChatColor.BOLD + \"RPGMMO \" + plugin.getPluginVersion() + \" \\n\" + \r\n\t\t\t\tChatColor.RESET + ChatColor.GRAY + \" http://www.MinePile.com/\" + \" \\n\" + \r\n\t\t\t\t\" \\n\" + \" \\n\";\r\n\t\tplayer.sendMessage(welcomeMessage);\r\n\t}", "private void printWelcome() {\n System.out.println(\"Welcome to the BINFO adventure game!\");\n System.out.println(\"Type 'help' if you need help.\");\n }", "@Override\r\n\tpublic void playGame() {\n\t\tSystem.out.println(\"SmartPhone具有玩游戏的功能\");\r\n\t}", "public static void displayWelcomeMessage() {\n\t\tSystem.out.println(\"Welcome to my program! :D\");\n\t\tSystem.out.println(\" Ryan Shupe \");\n\t\tSystem.out.println(\" CSCI 1250-004 Project 3 \");\n\t}", "public void printVictoryMessage() { //main playing method\r\n System.out.println(\"Congrats \" + name + \" you won!!!\");\r\n }", "public void play() \n { \n printWelcome();\n\n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n \n boolean finished = false;\n while (! finished) {\n Command command = parser.getCommand();\n finished = processCommand(command);\n if(currentRoom == win)\n {\n finished = true;\n }\n if (timer > 10)\n {\n currentRoom = fail;\n System.out.println(currentRoom.getLongDescription());\n finished = true;\n }\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "public void playGame()\r\n\t{\r\n\t\tSystem.out.println(\"Welcome to BlackJack! \\n\");\r\n\t\t\r\n\t\t// Boolean value to tell evaluateWin() method when the final win evaluation must be made\r\n\t\tboolean finalCheck = false;\r\n\t\t\r\n\t\tcardDeck.getDeck();\r\n\t\t\r\n\t\tSystem.out.println(\"Dealing cards...\");\r\n\t\t\r\n\t\t// Each player gets 2 cards to start\r\n\t\tplayer1.hit( cardDeck.draw() );\r\n\t\tplayer1.hit( cardDeck.draw() );\r\n\t\tdealer.hit( cardDeck.draw() );\r\n\t\tdealer.hit( cardDeck.draw() );\r\n\t\t\r\n\t\t// displays current cards\r\n\t\tdisplayPlayerCards(PLAYER1_ID);\r\n\t\tdisplayPlayerCards(DEALER_ID);\r\n\t\t\r\n\t\t// checks for win\r\n\t\tevaluateWin(finalCheck);\r\n\t\t\r\n\t\t// begins player1 turns\r\n\t\tplayerTurns();\r\n\t\t\r\n\t\t// begins dealer turns\r\n\t\tdealerTurns();\r\n\t\t\r\n\t\t// instructs evaluateWin to make final victory check\r\n\t\tfinalCheck = true;\r\n\t\tevaluateWin(finalCheck);\r\n\t\t\r\n\t\t// Cleans up objects\r\n\t\tcardDeck.newDeck();\r\n\t\tplayer1.resetHand();\r\n\t\tdealer.resetHand();\r\n\t}", "public void startGame() {\n\t\tSystem.out.println(\"************************\");\n\t\tSystem.out.println(\"* Medieval Warriors *\\n* the adventure *\");\n\t\tSystem.out.println(\"************************\");\n\t\tSystem.out.print(\"Enter your name: \");\n\n\t\tthis.playern = new Player(sc.nextLine());\n\t\tSystem.out.println(\"************************\");\n\t\tSystem.out.println(\"Welcome \" + playern.getName() + \" The Warrior\\n\");\n\t\t\n\t\tint input = -1;\n\t\twhile (!wonGame && !lostGame) {\n\t\t\tprintMainMenu();\n\t\t\tSystem.out.print(\"> \");\n\t\t\tinput = sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tswitch(input) {\n\t\t\t\tcase 1:\n\t\t\t\t\tgoAdventure();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tgoToTavern();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tgoCharacter();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"Bye!\");\n\t\t\t\t\tlostGame = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (wonGame) {\n\t\t\tSystem.out.println(\"Congratulations! You won The Game!\");\n\t\t}\n\n\t}", "public void play() {\r\n int ii = 0;\r\n\r\n System.out.println(\"****************************************************************\");\r\n System.out.println(\"Play game: a move is expressed as \\\"row#,col#\\\", such as \\\"1,2\\\"\");\r\n System.out.println(\"Computer: X Person: O\");\r\n System.out.println(\"****************************************************************\");\r\n while(!isGameEnded()) {\r\n if (ii >= MAX_MOVE_NUMBER) {\r\n\tbreak;\r\n }\r\n\r\n nextMove();\r\n ii++;\r\n }\r\n\r\n if (isPersonWin()) {\r\n System.out.println(\"Person Wins!\");\r\n saveLoseRecord();\r\n }\r\n else if (isComputerWin()) {\r\n System.out.println(\"Computer Wins!\");\r\n }\r\n else {\r\n System.out.println(\"Tie!\");\r\n }\r\n\r\n }", "@Override\n\tpublic void play() {\n\t\tSystem.out.println(\"We played Snokker today\");\n\t\t\n\t\t\n\t}", "public void playConsole(){\n consoleWelcome();\n \n while (! finished) {\n if (gameOver) {\n Logger.Log(\"Your adventure is over...\");\n break;\n }\n Command command = parser.getCommand();\n finished = processCommand(command); \n }\n if (!gameOver) { \n Logger.Log(\"Thank you for playing. Good bye.\");\n }\n }", "public void howToPlay() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"Step 1: Have no life. \\nStep 2: Deal cards\\nStep 3: Cry yourself to sleep.\");\r\n }", "public String getWelcomeScreen(){\n\treturn \"Welcome to Prisoners Dilemma\\n\" +\n\t \"(1) Choose desired payoffs for each player\\n\" +\n\t \"(2) Choose strategies for each player.\";\n }", "private void printWelcome() {\n System.out.println();\n System.out.println(\"Welcome to the game Stranded!\");\n System.out.println(\"Stranded is an adventure game, where you are to \"\n + \"find out how to escape the island\");\n System.out.println(\"\");\n System.out.println(\"The first step on the journey is to find your lost boardingpass, that has the numeber 126AB, \");\n System.out.println(\"and then board the plane, to get your well deserved long and safe vacation...\");\n System.out.println(\"Good luck\");\n System.out.println(\"Type '\" + CommandWord.HELP + \"' if you need help.\");\n System.out.println();\n System.out.println(currentRoom.getLongDescription());\n }", "private void consoleWelcome()\n {\n welcomePartOne();\n\n Scanner reader = new Scanner(System.in);\n String playerName = reader.nextLine();\n player.playerName = playerName;\n \n welcomePartTwo();\n }", "public void display_game_start_text() {\n\n fill(150, 100);\n rect(0, 0, displayW, displayH);\n\n textFont(myFont);\n textAlign(CENTER);\n textSize(displayH/30);\n fill(255);\n text(\"Get Ready!\", displayW/2, displayH/2);\n\n mySound.play_opening_song();\n\n isKeyInputAllowed = false;\n }", "public void welcomePlayer(Player p);", "public void playGreeting() {\r\n\t\tSystem.out.println(\"Welcome to Daniel's Cinemagraph maker.\");\r\n\t\tSystem.out.println(\"This will only work for uncompressed gifs\");\r\n\t\tplayUsage();\r\n\t\t\r\n\t}", "public void play() \n { \n printWelcome(); \n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n \n boolean finished = false;\n while (! finished && alive == true) {\n checkHealth();\n command = parser.getCommand();\n finished = processCommand(command);\n setPlayerRoom();\n enemyEncounter(); \n checkVictory();\n deathRoom();\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }", "void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }", "@Override\r\n\t\t\tpublic void playGame() {\n\t\t\t\tSystem.out.println(\"调用打游戏的功能\");\r\n\t\t\t}", "public void startProgram() {\n this.displayBanner();\n// prompt the player to enter their name Retrieve the name of the player\n String playersName = this.getPlayersName();\n// create and save the player object\n User user = ProgramControl.createPlayer(playersName);\n// Display a personalized welcome message\n this.displayWelcomeMessage(user);\n// Display the Main menu.\n MainMenuView mainMenu = new MainMenuView();\n mainMenu.display();\n }", "private void printWelcome()\n {\n System.out.println();\n System.out.println(\"Welcome to the World of Zuul!\");\n System.out.println(\"You are invited to a reception at the Taylor’s mansion.\");\n System.out.println(\"However, during the evening the dead body of Mr Taylor is found in the poolroom.\");\n System.out.println(\"You have to solve this investigation.\");\n System.out.println(\"But be careful the case is not simple as it seems to be.\");\n System.out.println();\n System.out.println(\"You are currently in the \" + currentRoom.getDescription());\n System.out.print(\"Let's start your investigation !\");\n printExits();\n \n }", "public void printWelcomeMessage() {\n\t\tprintASCIIArt(\"WELCOME\");\n\t\tString string = \"¯\\\\\\\\_(ツ)_/¯\";\n\t\tCharset.forName(\"UTF-8\").encode(string);\n\t\tSystem.out.println(\"\\t<------------------------- Welcome to the World of Legends and Monsters ---------------------->\");\n\t\tSystem.out.println(\"\\t< >\");\n\t\tSystem.out.println(\"\\t< You mysteriously teleported into the mysterious world where gods and monster lived, >\");\n\t\tSystem.out.println(\"\\t< while coding for your final project that you spent the last 3 weeks procrastinating. >\");\n\t\tSystem.out.println(\"\\t< What better way to procrastinate even more? Control these gods and slay some beasts. >\");\n\t\tSystem.out.println(\"\\t< Don't worry. This is not like sword art online where if you die in the game, you die >\");\n\t\tSystem.out.println(\"\\t< in real life. But if you fail the final project, your parents will disown you.\" + string +\" >\");\n\t\tSystem.out.println(\"\\t< As you read more about this game, you realize you're just wasting time not fighting. >\");\n\t\tSystem.out.println(\"\\t< So fight Champion, live to see tomorrow and for thats when you will start coding again. >\");\n\t\tSystem.out.println(\"\\t< >\");\n\t\tSystem.out.println(\"\\t<--------------------------------------------------------------------------------------------->\");\n\n\t\tSystem.out.println();\n\t\t\n\t}", "private void playGame() {\n\t\t\n\t\t/* take 1$ from the wallet to play game */\n\t\tsetWallet(-1);\n\t\t\n\t\t/* generate 3 random slots */\n\t\tslot1 = getSlot();\n\t\tslot2 = getSlot();\n\t\tslot3 = getSlot();\n\t\tslotBox1 = getSlotBox(slot1);\n\t\tslotBox2 = getSlotBox(slot2);\n\t\tslotBox3 = getSlotBox(slot3);\n\t\t\n\t\t/* draw slots on the screen and compute result*/\n\t\tadd(slotBox1, 100, 100);\n\t\tadd(slotBox2, 250, 100);\n\t\tadd(slotBox3, 400, 100);\n\t\t\n\t\tString result = gameOutcome(slot1, slot2, slot3);\n\t\ttopText = new GLabel(result);\n\t\tmidText = new GLabel(\"You now have \" + getWallet() + \"$.\");\n\t\tbotText = new GLabel(\"Click to play\");\n\t\ttopText.setFont(\"Serif-24\");\n\t\tmidText.setFont(\"Serif-24\");\n\t\tbotText.setFont(\"Serif-24\");\n\t\tadd(topText, 100, 250);\n\t\tadd(midText, 100, 280);\n\t\tadd(botText, 100, 310);\n\n\t}", "public void playHoomans() {\r\n System.out.println(\"Thanks for killing each other, human!\");\r\n }", "private void printWelcome()\n {\n System.out.println();\n System.out.println(\"You are lost in the woods!\");\n System.out.println(\"The sun will go down soon and it is up to you to find your way out!\");\n System.out.println(\"Type '\" + CommandWord.HELP + \"' if you need help.\");\n System.out.println();\n System.out.println(currentRoom.getLongDescription());\n }", "private void printWelcome()\n {\n System.out.println();\n System.out.println(\"Welcome to the World of Zuul!\");\n System.out.println(\"World of Zuul is a new, incredibly boring adventure game.\");\n System.out.println(\"Type '\" + CommandWord.HELP + \"' if you need help.\");\n System.out.println();\n System.out.println(currentRoom.getLongDescription());\n }", "public void startGame() {\n Scanner in = new Scanner(System.in);\n Player player = Player.getInstance();\n setPlayer(player);\n\n try {\n\n System.out.println(\"\\t\\u2680\\t\\u2681\\t\\u2682\\t\\u2683\\t\\u2684\\t\\u2685\" +\n \"\\nWelcome to the World Series of Craps!\\n\" +\n \"Please enter your name\");\n\n player.setName(in.nextLine());\n\n }\n catch(NoSuchElementException e){\n System.out.println(\"Exiting system, thank you for playing\");\n System.exit(0);\n }\n catch (Exception e) {\n e.printStackTrace();\n setExit(true);\n }\n System.out.println(\"Welcome \" + player.getName() + \"\\n\");\n }", "private void printWelcome()\n {\n System.out.println();\n System.out.println(\"Welcome to Hammerfell\");\n System.out.println(\"Hammerfell is an unforgiving, lonely world, brimming with monsters, theieves, and death.\");\n System.out.println(\"For years, Malice has plagued the land. Turning what once was a world gleaming with hope and prosperity into a desolate waste land.\");\n System.out.println(\"You will surely not make it out alive, and your death will most likely end in the brutal whipping and nashing of teeth from your enemies.\");\n System.out.println(\"Good Luck :)\");\n System.out.println(\"Type 'help' if you need help.\");\n System.out.println(\"Name is set to Greggory. If you desire to change it, type name.\");\n System.out.println();\n System.out.println(currentRoom.getLongDescription());\n }", "public static void WelcomeMessage () {\n System.out.println(\"===============================================\");\r\n System.out.println(\" C O M P U T E R\");\r\n System.out.println(\" S C I E N C E\");\r\n System.out.println(\" R O U L E T T E\");\r\n System.out.println(\"====================================== v1.2 ===\");\r\n System.out.println();\r\n }", "public void intro()\n\t{\n\t\tname = \"daryl\";\n\t\tSystem.out.println(\"Welcome to classroom hang man.\");\n\t\tSystem.out.println(\"In this game, you will get to guess 3 letters, while\");\n\t\tSystem.out.println(\"trying to figure out whose name it is in this classroom.\");\n\t\tSystem.out.println(\"After you've guessed 3 letters, you will get 1 guess at\");\n\t\tSystem.out.println(\"whose name it actually is.\");\n\t}", "public void play() {\r\n\r\n gamestate.startGame();\r\n\r\n while (!quit) {\r\n\r\n if (newGame) {\r\n gamestate.startGame();\r\n turn = 0;\r\n finished = true;\r\n newGame = false;\r\n }\r\n\r\n while (!gamestate.gameOver()) {\r\n\r\n if (newGame) {\r\n break;\r\n }\r\n\r\n turn++;\r\n display.displayBoard();\r\n\r\n if (turn % 2 == 1) {\r\n player1.makeMove(gamestate);\r\n } else {\r\n player2.makeMove(gamestate);\r\n }\r\n\r\n }\r\n\r\n if (finished) {\r\n\r\n display.displayBoard();\r\n\r\n switch (gamestate.getWinner()) {\r\n case Connect4GameState.RED:\r\n System.out.println(\"R wins\");\r\n break;\r\n case Connect4GameState.YELLOW:\r\n System.out.println(\"Y wins\");\r\n break;\r\n default:\r\n System.out.println(\"No one wins\");\r\n }\r\n\r\n finished = false;\r\n\r\n }\r\n\r\n if (display instanceof Connect4ConsoleDisplay) {\r\n quit = true;\r\n }\r\n\r\n }\r\n\r\n }", "void chooseStarterPlayer() {\n\t\tSystem.out.println(\"\\nWer beginnt?\");\n\t\tSystem.out.println(\"1 - Computer\");\n\t\tSystem.out.println(\"2 - Human\");\n\t}", "public static void interactivePlay() {\r\n\t\tint[][] board = createBoard();\r\n\t\tshowBoard(board);\r\n\r\n\t\tSystem.out.println(\"Welcome to the interactive Checkers Game !\");\r\n\r\n\t\tint strategy = getStrategyChoice();\r\n\t\tSystem.out.println(\"You are the first player (RED discs)\");\r\n\r\n\t\tboolean oppGameOver = false;\r\n\t\twhile (!gameOver(board, RED) && !oppGameOver) {\r\n\t\t\tboard = getPlayerFullMove(board, RED);\r\n\r\n\t\t\toppGameOver = gameOver(board, BLUE);\r\n\t\t\tif (!oppGameOver) {\r\n\t\t\t\tEnglishCheckersGUI.sleep(200);\r\n\r\n\t\t\t\tboard = getStrategyFullMove(board, BLUE, strategy);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint winner = 0;\r\n\t\tif (playerDiscs(board, RED).length == 0 | playerDiscs(board, BLUE).length == 0){\r\n\t\t\twinner = findTheLeader(board);\r\n\t\t}\r\n\r\n\t\tif (winner == RED) {\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"\\t *************************\");\r\n\t\t\tSystem.out.println(\"\\t * You are the winner !! *\");\r\n\t\t\tSystem.out.println(\"\\t *************************\");\r\n\t\t}\r\n\t\telse if (winner == BLUE) {\r\n\t\t\tSystem.out.println(\"\\n======= You lost :( =======\");\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"\\n======= DRAW =======\");\r\n\t}", "private void printWelcome()//refactored\n {\n System.out.println();\n waitTime(0.5);\n System.out.println(\"Let´s play a game...\");\n waitTime(0.5);\n System.out.println(\"Welcome to the awesome Adventure Game 'Magic Quest'!\");\n waitTime(0.5);\n System.out.println(\"If you want to become a mighty madican - you have to play.\");\n waitTime(0.5);\n System.out.println(\"Type 'help' if you need help.\");\n waitTime(0.5);\n System.out.println();\n waitTime(0.5);\n System.out.println(currentRoom.getDescription() + \"\\n\");//new\n waitTime(0.5);\n System.out.println(currentRoom.getExitDescription() + \"\\n\");//new\n waitTime(0.5);\n System.out.println();\n }", "public void play() \n { \n printWelcome();\n\n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n \n boolean finished = false;\n \n while (! finished) \n {\n Command command = parser.getCommand();\n finished = processCommand(command);\n }\n {\n Command command = parser.getCommand();\n finished = processCommand(command);\n if(p.energy == 0)\n finished = true;\n else if(currentRoom.getShortDescription() == \"outside the main entrance of the university\" && i.item1 == true && i.item2 == true)\n finished = true;\n }\n \n \n //game ending decision (victory, defeat, quit)\n \n if(p.energy == 0)\n { \n \n System.out.println(\"You look exhausted, stop or take a breather! You lost...\");\n }\n else if(currentRoom.getShortDescription() == \"outside the main entrance of the university\" && i.item1 == true && i.item2 == true)\n {\n System.out.println(\"Congratulations you won the game !\");\n }\n else\n {\n System.out.println(\"Thank you for playing. Good bye.\");\n }\n }", "public void play() {\n\t\tSystem.out.println(\"playing \"+title);\r\n\t}", "private void displayWelcome()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\" Welcome to Sunrise/Sunset Power Controller \");\n System.out.println(\" http://www.savagehomeautomation.com \");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "@Override\n\tpublic void playGames(LoginDetails loginDetails) {\n\t\tSystem.out.println(\"Boomer paly games\");\t\n\t\t\n\t}", "public void startProgram()\r\n\t{\r\n\t\tview.displayPlayerNames();\r\n\t\tview.loadGameData();\r\n\t\tview.displayGame();\r\n\t}", "public static void printWelcomeMessage() {\n\n System.out.println(\" Hi! I am easy\");\n printLogo();\n printLine();\n System.out.println(\" What can I do for you?\");\n printLine();\n }", "private void startGame() {\n betOptionPane();\n this.computerPaquetView.setShowJustOneCard(true);\n blackjackController.startNewGame(this);\n }", "public void play() {\n\n init();\n while (isGameNotFinished()) {\n log.info(\"*** Starting next turn\");\n for (Player player : getPlayers()) {\n executeTurn(player);\n }\n }\n log.info(\"*** Game Finished\");\n }", "public static void intro() {\n printHighlighted(\"SECRET SANTA\");\n printHighlighted(\"This program allows you to add the participants of the\");\n printHighlighted(\"game and assign them matches to send and receive gifts.\");\n }", "public void play() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}", "public void play()//Method was given\n { \n createRooms();\n createItems();\n printWelcome();\n \n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n \n finished = false;\n while (! finished)\n {\n Command command = parser.getCommand();\n finished = processCommand(command);\n if (currentRoom == exitRoom)\n {\n finished = true;\n }\n }\n System.out.println(\"Thank you for playing. Goodbye.\");\n }", "public void win() {\n JOptionPane.showConfirmDialog(null, \"You won! You got out with \" + this.player.getGold() + \" gold!\", \"VICTORY!\", JOptionPane.OK_OPTION);\n this.saveScore();\n this.updateScores();\n this.showTitleScreen();\n }", "public void play() {\r\n\t\tSystem.out.println(\"Playing Cricket with ball and bat\");\r\n\t}", "public void play() {\n System.out.println(\"Player \" + this.name + \" started to play...\");\n System.out.println(\"Current balance: \" + getTotalAsset());\n\n // roll a dice to move\n int steps = rollDice();\n System.out.println(\"Player diced \" + steps);\n\n // move\n move(steps);\n Land land = Map.getLandbyIndex(position);\n\n // land triggered purchase or opportunity events\n land.trigger();\n\n System.out.println(\"Player \" + this.name + \"has finished.\");\n }", "private void printWelcome() {\n printChronologerMessage(UiMessageHandler.printGreeting());\n }", "private void displayGameHeader()\n {\n System.out.println(\"########Welcome to Formula 9131 Championship########\");\n }", "private void promptPlayerTurn(Player player) {\r\n JOptionPane.showMessageDialog(\r\n null,\r\n player.getName() + \", it's your turn!\",\r\n \"Player Confirmation\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n }", "private void displayPlayerMenu () {\n System.out.println();\n System.out.println(\"Player Selection Menu:\");\n System.out.println(\n \"Timid player...........\" + TIMID);\n System.out.println(\n \"Greedy player..........\" + GREEDY);\n System.out.println(\n \"Clever player..........\" + CLEVER);\n System.out.println(\n \"Interactive player.....\" + INTERACTIVE);\n }", "public static int welcomeUser(){\n \n int answer;\n JOptionPane.showMessageDialog(null, \"Welcome to Rock, Paper, Scissors, Lizard, Spock!\");\n JOptionPane.showMessageDialog(null, \"In this twist of the popular Rock, Paper, Scissors game a\"+\n \"\\nlizard and Captain Spock join in the epic battle of decision making.\");\n JOptionPane.showMessageDialog(null, \"The rules are as follows: \\nRock beats Scissors. \\nScissors beats Paper.\"+\n \"\\nPaper beats Rock. \\nLizard poisons Spock. \\nSpock vaporizes Rock. \"+\n \"\\nScissors decapitates Lizard. \\nLizard eats Paper. \\nRock smashes Lizard\"+\n \"\\nSpock smashes Scissors.\\nPaper disproves Spock.\");\n JOptionPane.showMessageDialog(null, \"Enter a R for rock,\"+\"\\nEnter a P for paper,\"+ \n \"\\nEnter an S for scissors\"+ \"\\nEnter an L for Lizard,\"+\n \"\\nEnter an X for Capt. Spock.\");\n \n answer = JOptionPane.showConfirmDialog(null,\"\\n Would you like to play now?\", null, JOptionPane.YES_NO_OPTION);\n return answer;\n }", "public String callPlayer() {\n\t\treturn \"OVER HERE!!\";\n\t}", "public void winMessage() {\r\n\t\tSystem.out.print(\"\\n\\nCongratulations! You've won the game! :D\");\r\n\t\tSystem.exit(0);\r\n\t}", "public void start() {\n\t\tinstruct();\n\t\tint pad1 = (26-player1.getName().length())/2;\n\t\tint pad2 = (26-player2.getName().length())/2;\n\t\tString heading = \" \".repeat(pad1) +\n\t\t\t\tplayer1.getName() +\n\t\t\t\t\" \".repeat(26 - player1.getName().length() - pad1) +\n\t\t\t\t\" \".repeat(pad2) +\n\t\t\t\tplayer2.getName() +\n\t\t\t\t'\\n';\n\n\t\tfor (int i = 0; i < rounds; i++) {\n\t\t\tString round = \"Round \"+(i+1);\n\t\t\tSystem.out.println(\" \".repeat(26-round.length()/2) + round + '\\n');\n\t\t\tint choice1 = getChoice(), choice2 = random.nextInt(3);\n\n\t\t\tSystem.out.println(heading);\n\t\t\tdraw(choice1, choice2);\n\t\t\tSystem.out.println('\\n'+remarks(choice1, choice2));\n\t\t\tSystem.out.printf(\"%s - %d\\t\\t%s - %d\\n\\n\", player1.getName(), player1.getPoints(), player2.getName(), player2.getPoints());\n\t\t\tif (!vsComputer) {\n\t\t\t\tSystem.out.print(\"Press enter to continue \");\n\t\t\t\tsc.nextLine();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void displayMenu()\n {\n System.out.println(\"-----------------Welcome to 256 Game------------------\");\n System.out.println(\"press 1 to register a player\");\n System.out.println(\"press 2 to start a new game\");\n System.out.println(\"press 3 to view a help menu\");\n System.out.println(\"press 4 to exist\");\n System.out.println(\"------------------------------------------------------\");\n }", "private void printWelcomeMenu() {\n System.out.println(\"Welcome to Michael's Retail Shop Inventory Management App!\");\n }", "public static void main(String[] args) {\n init();\n\n //take input from the players before starting the game\n input();\n\n //the gameplay begins from here\n System.out.println();\n System.out.println();\n System.out.println(\"***** Game starts *****\");\n play();\n }", "@Override\r\n public void playGame() {\r\n printInvalidCommandMessage();\r\n }", "private void printWelcome()\n {\n System.out.println(\"Welcome to the DodgySoft Technical Support System.\");\n System.out.println();\n System.out.println(\"Please tell us about your problem.\");\n System.out.println(\"We will assist you with any problem you might have.\");\n System.out.println(\"Please type 'bye' to exit our system.\");\n }", "public static void printWelcomeMsg() {\r\n final int WELCOME_PREPEND_SPACING_COUNT = 23;\r\n CmdUx.printHBars(preLaunchMsg);\r\n CmdUx.print(\"\\n\".repeat(WELCOME_PREPEND_SPACING_COUNT));\r\n CmdUx.print(\"\\nHello from\\n\" + LOGO);\r\n CmdUx.printHBars(WELCOME_MSG);\r\n }", "public static void printGameIntro(String name){\n System.out.println(\"Let's play a game, \" + name + \".\");\n System.out.println(\"I'm thinking of a number from 1 to 20.\");\n System.out.println(\"See if you get it in fewer than 5 tries...\");\n }", "public void gameOver() {\n cls();\n displayWord();\n displayGuessedAndRemain();\n printHangman();\n System.out.println(\"Game over!\");\n System.exit(0);\n }", "public void printWelcomeMessage()\n\t{\n\t\tSystem.out.println(\"Hello \"+teacherName+\", Have a Nice time teaching \"+subject+\" ! \");\n\t}", "void next() {\n\tcheckWinCondition();\n\tnew ClientServer(arr);\n\tif (!win) {\n\t\tchangePlayer();\n\t\tP2P.yourTurn = false;\n\t\tP2P.displayTextChanger(Display.txt1, \"Opponents turn!\", Color.lightGray);\n\t} else {\n\t\tgameEnder();\n\t\tEndScreen.showEndGameWindow();\n\tif (curPlayer == 1)\n\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Red player won! </font></b></center></html>\");\n\telse\n\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Black player won! </font></b></center></html>\");\n\t\tP2P.displayTextChanger(Display.txt1, \"Game has ended!\", Color.blue);\n\t\tP2P.yourTurn = false;\n\t}\n}", "public void startGame(){\n\t\tSystem.out.println(\"UNI: nas2180\\n\" +\n\t\t\t\t\"Hello, lets play Rock Paper Scissors Lizard Spock!\\n\");\n\t\tSystem.out.println(\"Rules:\\n Scissors cuts Paper\\n \" +\n\t\t\t\t\"Paper covers Rock\\n \" +\n\t\t\t\t\"Rock crushes Lizard\\n \" +\n\t\t\t\t\"Lizard poisons Spock\\n \" +\n\t\t\t\t\"Spock smashes Scissors\\n \" +\n\t\t\t\t\"Scissors decapitates Lizard\\n \" +\n\t\t\t\t\"Lizard eats Paper\\n \" +\n\t\t\t\t\"Paper disproves Spock\\n \" +\n\t\t\t\t\"Spock vaporizes Rock\\n \" +\n\t\t\t\t\"(and as it always has) Rock crushes Scissors\\n\");\n\t\tthisGame = new GameResult();\n\t\tplayRound();\n\t}", "private void playTurn()\n {\n try\n {\n XMLHandler.saveGame(game, GAME_CLONE_PATH);\n }\n catch(IOException | JAXBException | SAXException ex)\n {\n // TODO... ConsoleUtils.message(\"An internal save error has occured, terminating current game\");\n gameEnded = true;\n return;\n }\n \n moveCycle();\n \n if (!game.validateGame()) \n {\n IllegalBoardPenalty();\n }\n \n String gameOverMessage = game.isGameOver();\n if (gameOverMessage != null) \n {\n //TODO: ConsoleUtils.message(gameOverMessage);\n gameEnded = true;\n }\n \n game.switchPlayer();\n }", "public void runTheGame() {\n\t\txPlayer.setOpponent(oPlayer);\n\t\toPlayer.setOpponent(xPlayer);\n\t\tboard.display();\n\t\txPlayer.play();\n\t}", "private void start(){\r\n while (!playerWins && lives != 0){\r\n System.out.println(\"(Lives: \" + lives + \")\");\r\n printCharArray(hidden);\r\n System.out.println(\"\\nGuesses: \" + Arrays.toString(guesses.toArray()));\r\n if(!checkGuess(playerGuess())){\r\n lives -= 1;\r\n }\r\n if (checkVictory()){\r\n System.out.println(\"You win!\");\r\n printCharArray(hidden);\r\n System.out.println();\r\n replay();\r\n }\r\n }\r\n System.out.println(\"You lose! The word was: \" + word);\r\n replay();\r\n }", "public static void intro() {\n System.out.println(\"HI! Welcome to the virus simulation! This is a placeholder message.\");\r\n\r\n }", "private void welcome() {\n }", "public void showStory() {\r\n\t\tGameEngine.getInstance().getCommandProcessor().clearScreen();\r\n\t\tprintln(\"\");\r\n\t\tprintln(RenderUtil.getWelcomeMessage());\r\n\t\ttry {\r\n\t\t\tfor (String outputString : GamePlayUtil.GAME_STORY) {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tRenderUtil.println(\"\\t\" + outputString);\r\n\t\t\t}\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (Exception e) {\r\n\t\t\tprintln(\"Problem Occured...\");\r\n\t\t}\r\n\t}", "public void play() {\n\t\tSystem.out.println(\"playing \"+title+\" by \" +artist);\n\t}", "private void goCharacter() {\n\t\t// TODO print player\n\t\tSystem.out.println(\"***\");\n\t\tSystem.out.println( \"Warrior: \" + playern.getName());\n\t\tSystem.out.println(\"Level: \" + playern.getLevel());\n\t\tSystem.out.println(\"Experience: \" + playern.getExp());\n\t\tSystem.out.println(\"HP \" + playern.getHp());\n\t\tSystem.out.println(\"***\");\n\t}", "@Override\n\tpublic void show() {\n\t\tsetUpGame();\n\t}", "public static void welcome(){\n\n System.out.print(\"Welcome to the Human Resources Management System.\"+\n \"\\nThis program allows you to add new employees and print all employees.\");\n \n }", "public void playTopHat() {\n\t\tSystem.out.println(\"ding ding da-ding\");\n\t\t\n\t}", "public void GameWin () {\n\t\t\n\t\twordDashes.setText(mysteryWord);\n\t\tguessBttn.setVisible(false);\n\t\tguessFullWord.setVisible(false);\n\t\tAnswerBox.setDisable(true); //can no longer use the text box\n\t\tresultMessage.setText(\" Great Job!!\\nYou Guessed the Word!!\");\n\t\tplayAgain.setVisible(true); \n\t\t\n\t}", "public void drawGameCompleteScreen() {\r\n PennDraw.clear();\r\n\r\n if (didPlayerWin()) {\r\n PennDraw.text(width / 2, height / 2, \"You Win!\");\r\n } else if (didPlayerLose()) {\r\n PennDraw.text(width / 2, height / 2, \"You have lost...\");\r\n }\r\n\r\n PennDraw.advance();\r\n }", "public void quitGame() {\r\n System.out.println(\"Thanks for playing!\");\r\n }", "private void setUpGame() {\n \tresetGame();\n \tprintln(\"Welcome to Hangman!\");\n \tprintln(\"The word now looks like this: \" + currentWord);\n \tprintln(\"You have \" + guessesLeft + \" guesses left.\");\n }", "public void startNewGame()\n {\n // Display the Banner Page.\n \n System.out.println(\"\\nWelcome to the city of Aaron.\");\n \n // Prompt for and get the user’s name.\n String name;\n System.out.println(\"\\nPlease type in your first name: \");\n name = keyboard.next();\n\n // Call the createNewGame() method in the GameControl class\n \n GameControl.createNewGame(name);\n\n // Display a welcome message\n System.out.println(\"Welcome \" + name + \" have fun!!!\");\n \n //Call the GameMenuView\n GameMenuView gmv = new GameMenuView();\n gmv.displayMenu();\n }", "public static void printNormalWelcome() {\n printMessage(NORMAL_WELCOME_LINE);\n }", "public final static void play()\n\t{\n\t\tDatabase.resetForNewGame();\n\n\n\t\tclearConsole();\n\t\tint playerOnePoints = 0, playerTwoPoints = 0, matrixSize=0, userChoise=0;\n\t\tString playerOneName, playerTwoName;\n\t\tchar controller;\n\n\n\t\tSystem.out.println(\"LET THE GAME BEGIN!\");\n\t\tSystem.out.println(\"Please type players' names: \");\n\n\t\t/**\n\t\t * Asks for player's names and Galaxy size.\n\t\t * */\n\t\tdo\n\t\t{\n\t\t\tSystem.out.println(\"Player One: \");\n\t\t\tplayerOneName=Global.sc.next(\"\\\\w+\");\n\t\t\tSystem.out.println(\"Player Two: \");\n\t\t\tplayerTwoName=Global.sc.next(\"\\\\w+\");\n\t\t\tif ((!checkNames(playerOneName, playerTwoName)))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error. Please enter names with no marks and spaces, different first letter or less length.: \");\n\t\t\t}\n\t\t} while(!checkNames(playerOneName, playerTwoName));\n\t\tclearConsole();\n\t\tSystem.out.println(\"Please choose galaxy size: \");\n\t\tSystem.out.println(\"[1] Small\");\n\t\tSystem.out.println(\"[2] Large\");\n\t\tuserChoise=Global.sc.nextInt();\n\t\twhile(userChoise!=1&&userChoise!=2)\n\t\t{\n\t\t\tSystem.out.println(\"Wrong number. Please enter again: \");\n\t\t\tuserChoise=Global.sc.nextInt();\n\t\t}\n\t\tif (userChoise==1) {\n\t\t\tmatrixSize=GameConstants.smallMatrixSize;\n\t\t}\n\t\telse \n\t\t{\n\t\t\tmatrixSize=GameConstants.largeMatrixSize;\n\t\t}\n\n\t\t/**\n\t\t * Creates the Galaxy and player's coordinates.\n\t\t * */\n\t\tGalaxy galaxy = new Galaxy(matrixSize);\n\t\tPlayerOne playerOneCol=new PlayerOne();\n\t\tPlayerOne playerOneRow=new PlayerOne();\n\t\tPlayerTwo playerTwoRow=new PlayerTwo(matrixSize);\n\t\tPlayerTwo playerTwoCol=new PlayerTwo(matrixSize);\n\t\t/**\n\t\t * Creates TemporaryChar which will hold a potential symbol ('8'/'+'/'*') of a question.\n\t\t * */\n\t\tTemporaryChar temp = new TemporaryChar();\n\t\tgalaxy.putStars(matrixSize);\n\t\tgalaxy.putPlayers(playerOneName, playerTwoName, matrixSize);\n\n\n\t\t//GAME BEGINS\n\n\n\n\t\tdo\n\t\t{\n\t\t\t//First player\n\n\n\t\t\tclearConsole();\n\t\t\tdisplayPlayerInfo(playerOneName, playerOnePoints, playerTwoName, playerTwoPoints);\n\t\t\tgalaxy.printMatrix(matrixSize);\n\t\t\tSystem.out.print(playerOneName);\n\t\t\tSystem.out.print(\", please make a move: \");\n\n\t\t\tcontroller=Global.sc.next(\".\").charAt(0);\n\n\t\t\tmovePlayer(galaxy,temp, controller, playerOneRow, playerOneCol);\n\n\t\t\t//Throws exception if player has tried to move on the other player's position.\n\t\t\tif (playerOneRow.coordinate == playerTwoRow.coordinate&&playerOneCol.coordinate ==playerTwoCol.coordinate)\n\t\t\t{\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException();\t\n\t\t\t}\n\t\t\tplayerOnePoints+=pointsToAdd(temp);\n\t\t\tclearConsole();\n\t\t\tdisplayPlayerInfo(playerOneName, playerOnePoints, playerTwoName, playerTwoPoints);\n\t\t\tgalaxy.printMatrix(matrixSize);\n\n\t\t\t//Checks if there are any stars.\n\t\t\tif(!galaxy.checkForRemainingStars(matrixSize)) break;\n\n\n\n\n\n\t\t\t//Second player\n\n\n\t\t\tclearConsole();\n\t\t\tdisplayPlayerInfo(playerOneName, playerOnePoints, playerTwoName, playerTwoPoints);\n\t\t\tgalaxy.printMatrix(matrixSize);\n\t\t\tSystem.out.print(playerTwoName);\n\t\t\tSystem.out.print(\", please make a move: \");\n\n\t\t\tcontroller=Global.sc.next(\".\").charAt(0);\n\n\t\t\tmovePlayer(galaxy,temp, controller, playerTwoRow, playerTwoCol);\n\n\t\t\tif (playerOneRow.coordinate == playerTwoRow.coordinate&&playerOneCol.coordinate ==playerTwoCol.coordinate)\n\t\t\t{\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException();\t\n\t\t\t}\n\t\t\tplayerTwoPoints+=pointsToAdd(temp);\n\t\t\tclearConsole();\n\t\t\tdisplayPlayerInfo(playerOneName, playerOnePoints, playerTwoName, playerTwoPoints);\n\t\t\tgalaxy.printMatrix(matrixSize);\n\t\t} while (galaxy.checkForRemainingStars(matrixSize));\n\n\n\n\n\t\tif (playerOnePoints > playerTwoPoints)\n\t\t{\n\t\t\tSystem.out.print(playerOneName);\n\t\t\tSystem.out.println(\" wins!\");\n\t\t}\n\t\telse if (playerOnePoints < playerTwoPoints)\n\t\t{\n\t\t\tSystem.out.print(playerTwoName);\n\t\t\tSystem.out.println(\" wins!\");\n\t\t}\n\t\telse System.out.println(\"It's a draw!\");\n\n\t\tpressAnyKeyToContinue();\n\t\tshowMenu();\n\n\n\t}" ]
[ "0.79789996", "0.78058964", "0.7673939", "0.7613014", "0.75637525", "0.7557101", "0.7408915", "0.73750883", "0.7371823", "0.7317041", "0.73114836", "0.7299279", "0.7286164", "0.7250511", "0.72142065", "0.7183867", "0.7168826", "0.7157274", "0.7129647", "0.71281713", "0.70565414", "0.70437807", "0.70410967", "0.7036804", "0.7020221", "0.7008301", "0.7001199", "0.6989495", "0.6969766", "0.6957252", "0.6941505", "0.69380695", "0.69374216", "0.69326836", "0.69277555", "0.6922334", "0.69198513", "0.6904788", "0.6902386", "0.68895495", "0.68791896", "0.6868568", "0.6861699", "0.6829031", "0.6825113", "0.68247443", "0.67985886", "0.6798022", "0.67798847", "0.67777365", "0.6775904", "0.6771318", "0.6769728", "0.67493814", "0.6747941", "0.6728776", "0.6724433", "0.6720882", "0.6715806", "0.6703736", "0.66865456", "0.666752", "0.6667367", "0.66581494", "0.6651712", "0.6645147", "0.6639205", "0.6636752", "0.6633184", "0.6621375", "0.6619681", "0.6616244", "0.66143733", "0.65879077", "0.65842164", "0.6583425", "0.6578023", "0.6577268", "0.6574073", "0.65707916", "0.6561884", "0.65543044", "0.6554132", "0.6547852", "0.65322036", "0.65199363", "0.65121776", "0.6511815", "0.65101415", "0.6507292", "0.64986145", "0.6498076", "0.6488678", "0.6487202", "0.64816093", "0.64792746", "0.64752007", "0.6473081", "0.64654636", "0.64620095" ]
0.74979556
6
This method is the game. Asks user to choose door and calls other methods. Provides parameter for other methods Formats the returns of the method into an understandable format
public static void game() { Scanner keyboard = new Scanner(System.in); int car = (int)(Math.random() * 3 + 1); //testing System.out.println("car = " + car); System.out.print("Please choose a door (1, 2, or 3) "); int user_pick = keyboard.nextInt(); // get rid of the newLine from the buffer keyboard.nextLine(); // testing System.out.println("You chose door # " + user_pick); int reveal = doorToReveal(car, user_pick); //testing System.out.println("Open door #: " + reveal); //ask the user if they want to switch System.out.println("Do you want to switch?: "); String answer = keyboard.nextLine(); //testing System.out.println("The user wants to switch " + answer); if(answer.equals("yes")) { user_pick = doorToReveal1(user_pick, reveal); } if ( car == user_pick ) System.out.print("You win!!"); else System.out.println("Sorry! You lose !!!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String execute(){\r\n if(key.isEmpty()){\r\n return \"Open the \" + door + \" with what?\\n\";\r\n }\r\n else if(door.isEmpty()){\r\n return \"Open what with the \" + key + \"?\\n\";\r\n }\r\n\r\n Player adventurer = state.getAdventurer();\r\n Exit lockedDoor;\r\n try{\r\n lockedDoor = adventurer.getCurrentRoom().getExitNamed(door);\r\n }\r\n catch(NoExitException e){\r\n return \"There's no exit named \" + door + \" here.\\n\";\r\n }\r\n\r\n adventurer.passTime();\r\n String healthWarning = state.getAdventurer().checkHealth();\r\n\r\n if(!healthWarning.isEmpty()){\r\n healthWarning += \"\\n\";\r\n }\r\n\r\n try{\r\n adventurer.getItemFromInventoryNamed(key);\r\n }\r\n catch(NoItemException e){\r\n try{\r\n adventurer.getItemInVicinityNamed(key);\r\n }\r\n catch(NoItemException w){\r\n return \"You don't have the \" + key + \".\\n\";\r\n }\r\n }\r\n\r\n if(lockedDoor.keyFits(key)){\r\n lockedDoor.unlock();\r\n return \"Unlocked.\\n\" + healthWarning;\r\n }\r\n\r\n return \"You can't open the \" + door + \" with the \" + key + \".\\n\" + healthWarning;\r\n }", "private void menu(){\n System.out.println(\"\");\n System.out.println(\"Round: \"+round);\n System.out.println(\"Please choose your action: \");\n\n Scanner tokenizer = parser.getCommand(); // prompt the user to put a new command in\n Command command = parser.parseCommand(tokenizer); // send the \"scanner\" result to make it into a command\n processCommand(command); // process the command\n\n }", "static void door2challenge_rightpath() {\n System.out.println(\"You met a creature...\");\n System.out.println(\"Get ready to RIP!!!\");\n player_fights();\n //after you beat the creature...\n System.out.println(\"You killed it!!! \" + username + \"You are on a roll!\");\n enter = next.nextLine();\n System.out.println(\"There is a straight path ahead take the path and continue to survive long enough to escape the creatures\");\n System.out.println(\"grasp...\");\n enter = next.nextLine();\n //when you take that straight path...\n System.out.println(\"It looks safe here... Shall we continue?\");\n answer = responses.nextLine();\n //Choice doesn't matter...you still have to continue\n System.out.println(\"No time to think \" + username + \" the creatures are behind you...run\");\n enter = next.nextLine();\n System.out.println(\"There are two diverging paths. Do you want to take the left or the right path?\");\n answer = next.nextLine();\n if(answer.contains(\"left\")) {\n System.out.println(\"You met a creature!\");\n System.out.println(username + \", prepare yourself...\");\n enter = next.nextLine();\n player_fights();\n //after you beat the monster you will go into another method which is a linked path...\n System.out.println(\"Congratulations you beat the monster\"); {\n door2_linkedpath(); //this is the linked path with the straight path branch.\n }\n }else if (answer.contains(\"right\")) {\n System.out.println(\"OH NO!!!\" + username + \" fell into the hole with razor sharp knives \");\n backtocheckpoint1_version2();\n \n }else{ //in case if the player mistypes the code, they will be punished by getting dragged back to an earlier checkpoint\n System.out.println(username +\" Please retype your response correctly. \");\n System.out.println(\"There is no horse playing at a time like this... \");\n System.out.println(\"The monsters dragged you back...Luckily you escaped\");\n enter = next.nextLine();\n System.out.println(\"Looks like you're back to the place where you just made your decision of taking the right path\");\n door2challenge_rightpath(); \n }\n \n \n }", "default void interactWith(Door door) {\n\t}", "public void bombOutputs(int method_choice, int print_choice, Map attacked_map, Ship attacked_ship, int x, int y) {\n\n switch (method_choice) {\n case 1: //jaws\n if (print_choice == 1) {\n System.out.println(\"The shark can't bite your ship on \" + attacked_map.getName());\n }\n else if (print_choice == 2){\n System.out.println(\"The shark cannot bite you outside of the grid! (Attempted a shark attack at (\" + x + \",\" + y + \")) on \" + attacked_map.getName() + \".\");\n }\n else if (print_choice == 3){\n System.out.println(\"You barely escaped a shark attack on \" + attacked_map.getName() + \"!\");\n }\n else if (print_choice == 4) {\n System.out.println(\"The shark bit one of your captain's quarters...luckily it was armored!\");\n }\n else if (print_choice == 5){\n System.out.println(\"-- But it attacked a captain's quarters! It sunk a \" + attacked_ship.getName() + \"!\");\n }\n else if (print_choice == 6){\n System.out.println(\"The shark hit a captain's quarters on \" + attacked_map.getName() + \"! It sunk a \" + attacked_ship.getName() + \"!\");\n }\n else if (print_choice == 7){\n System.out.println(\"The shark attacked you on the \" + attacked_map.getName() + \" and bit off a part of your ship!\");\n }\n else if (print_choice == 8){\n System.out.println(\"The shark already attacked and bit a ship here.\");\n }\n break;\n case 2: //attack\n if (print_choice == 1) {\n System.out.println(\"You cannot use the bomb on \" + attacked_map.getName());\n }\n else if (print_choice == 2){\n System.out.println(\"You cannot attack outside of the grid! (Attempted an attack at (\" + x + \",\" + y + \")) on \" + attacked_map.getName() + \".\");\n }\n else if (print_choice == 3){\n System.out.println(\"You've attempted an attack on \" + attacked_map.getName() + \", but you've missed!\");\n }\n else if (print_choice == 4){\n System.out.println(\"You've attempted an attack on \" + attacked_map.getName() + \", but you've missed!\");\n }\n else if (print_choice == 5){\n System.out.println(\"You've already attacked there on the \" + attacked_map.getName() + \".\");\n }\n else if (print_choice == 6){\n System.out.println(\"-- But you've hit a captain's quarters! You've sunk a \" + attacked_ship.getName() + \"!\");\n }\n else if (print_choice == 7){\n System.out.println(\"You've hit a captain's quarters on \" + attacked_map.getName() + \"! You've sunk a \" + attacked_ship.getName() + \"!\");\n }\n else if (print_choice == 8){\n System.out.println(\"You've attempted an attack on \" + attacked_map.getName() + \"- it's a hit!\");\n }\n else if (print_choice == 9){\n System.out.println(\"You've already attacked and hit a ship here.\");\n }\n break;\n case 3: //space laser\n if (print_choice == 1) {\n System.out.println(\"You cannot use the space laser on \" + attacked_map.getName());\n }\n else if (print_choice == 2){\n System.out.println(\"You cannot attack outside of the grid! (Attempted an attack at (\" + x + \",\" + y + \")) on \" + attacked_map.getName() + \".\");\n }\n else if (print_choice == 3){\n System.out.println(\"You've attempted an attack on \" + attacked_map.getName() + \", but you've missed!\");\n }\n else if (print_choice == 4){\n System.out.println(\"You've attempted an attack on \" + attacked_map.getName() + \", but you've missed!\");\n }\n else if (print_choice == 5){\n System.out.println(\"You've already attacked there on the \" + attacked_map.getName() + \".\");\n }\n else if (print_choice == 6){\n System.out.println(\"-- But you've hit a captain's quarters! You've sunk a \" + attacked_ship.getName() + \"!\");\n }\n else if (print_choice == 7){\n System.out.println(\"You've hit a captain's quarters on \" + attacked_map.getName() + \"! You've sunk a \" + attacked_ship.getName() + \"!\");\n }\n else if (print_choice == 8){\n System.out.println(\"You've attempted an attack on \" + attacked_map.getName() + \"- it's a hit!\");\n }\n else if (print_choice == 9){\n System.out.println(\"You've already attacked and hit a ship here.\");\n }\n break;\n case 4: //asteroids\n if (print_choice == 1) {\n System.out.println(\"Asteroids cannot attack on \" + attacked_map.getName());\n }\n else if (print_choice == 2){\n System.out.println(\"The asteroids can't fire outside of the grid! (They attempted a hit at (\" + x + \",\" + y + \")) on \" + attacked_map.getName() + \".\");\n }\n else if (print_choice == 3){\n System.out.println(\"The asteroids fired on \" + attacked_map.getName() + \", but luckily missed your ship!\");\n }\n else if (print_choice == 4){\n System.out.println(\"The asteroids fired on \" + attacked_map.getName() + \", but luckily missed your ship!\");\n }\n else if (print_choice == 5){\n System.out.println(\"There had been attack earlier on \" + attacked_map.getName() + \".\");\n }\n else if (print_choice == 6){\n System.out.println(\"-- But the asteroids managed to hit a captain's quarters and sunk a \" + attacked_ship.getName() + \"!\");\n }\n else if (print_choice == 7){\n System.out.println(\"The asteroids hit a captain's quarters on \" + attacked_map.getName() + \"! They sunk a \" + attacked_ship.getName() + \"!\");\n }\n else if (print_choice == 8){\n System.out.println(\"The asteroids fired on \" + attacked_map.getName() + \"- your ships have been hit!\");\n }\n else if (print_choice == 9){\n System.out.println(\"A ship has already been hit here.\");\n }\n break;\n case 5: // Space Laser Debris\n if (print_choice == 6) {\n System.out.println(\"The debris hit a captain's quarters! You've sunk a \" + attacked_ship.getName() + \"!\");\n }\n if (print_choice == 7) {\n System.out.println(\"The debris hit a captain's quarters on \" + attacked_map.getName() + \"! You've sunk a \" + attacked_ship.getName() + \"!\");\n }\n if (print_choice == 8) {\n System.out.println(\"The debris hit a part of a ship!\");\n }\n break;\n case 6: // Asteroid Debris\n if (print_choice == 6) {\n System.out.println(\"The debris hit a captain's quarters! The\" + attacked_ship.getName() + \" sunk!\");\n }\n if (print_choice == 7) {\n System.out.println(\"The debris hit a captain's quarters on \" + attacked_map.getName() + \"! The \" + attacked_ship.getName() + \" sunk!\");\n }\n if (print_choice == 8) {\n System.out.println(\"The debris hit a part of a ship!\");\n }\n break;\n }\n\n }", "public void doOperations(){\n try {\n UtilityMethods.print(\"Let's create some mammals.! Please choose the mammal to create.\\n1. Labrador\\n2. Golden Retriver\\n3. Bat\");\n Scanner reader = new Scanner(System.in);\n String text = reader.nextLine();\n switch (text) {\n case \"1\":\n UtilityMethods.print(\"You can call him \" + createLabrador().getName());\n break;\n case \"2\":\n UtilityMethods.print(\"You can call him \" + createGolderRetriver().getName());\n break;\n case \"3\":\n UtilityMethods.print(\"You can call him \" + createBat().getName());\n break;\n default:\n break;\n }\n reader.close();\n } catch (Exception e) {\n UtilityMethods.print(e.getMessage());\n }\n }", "public void action() \n {\n if (!hasSecondWord()) { // there is no second word\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where? Please be more specific\");\n return; \n } \n String direction = getSecondWord(); //second word found\n\n // Possible room\n Room nextRoom = player.getCurrentRoom().getExit(direction);\n\n if (nextRoom == null) {\n System.out.println(\"There is no door in that direction\");\n }\n else {\n if (!nextRoom.isLocked()) {\n enterRoom(nextRoom);\n }\n //unlock room should now be another action instead\n // else if (nextRoom.isUnlocked(null)) {\n // enterRoom(nextRoom);\n // }\n else {\n System.out.println(\"This door is locked!\");\n }\n } \n }", "static void intro() {\n System.out.println(\"Welcome to ABANDONED SPELLS. What is your name?\");\n Scanner userinputname = new Scanner(System.in);\n username = userinputname.nextLine();\n System.out.println(username + \" here is a reminder...When you don't see text appear, press enter, this game will force you to read \");\n System.out.println(\"\\n\");//this also creates a line spacing\n System.out.println(\"INSTRUCTIONS!!!!\");\n System.out.println(username + \", you had a depressing day today and was seeking refuge in an abandoned house, so you could \");\n System.out.println(\"be alone, comforted by the isolation of the outside world.\");\n System.out.println(\"You had a lot of fun in the house, discovering hidden secrets that was forbidden to know. \");\n System.out.println(\"It turns out that the book lying on the ground is a spell book from the Dark Ages.\");\n System.out.println(\"You were able to cast several spells, an introduction to the world of witchcraft.\");\n System.out.println(\"Thinking that you can bring back knowledge about witchcraft and casting spells.\");\n System.out.println(\"YOU WERE WRONG!!! You now have to deal with the evil spirits that guarded this book.\");\n System.out.println(\"There is no turning back now, use your spells to cast your way out of this mess or at least get out of here alive.\");\n System.out.println(\"GOOD LUCK \" + username );\n System.out.println(\"Press enter to continue.\");\n enter = next.nextLine();\n System.out.println(\"Choose which door you would want to go through. Door 1 or Door 2.\");\n Scanner choose = new Scanner(System.in);\n fdoor = choose.nextLine();\n if(fdoor.contains(\"1\")) {\n door = true;\n }else {\n door = false;\n }\n if(door) {\n Door1intro();\n }else {\n Door2_intro();\n }\n }", "static void door2challenge_straightpath() {\n System.out.println(\"Oh Look! There is a creature charging directly at you\");\n System.out.println(\"Brace Yourself \" + username + \"!!!\");\n enter = next.nextLine();\n player_fights();\n //after you defeat the monster...\n System.out.println(\"Now there is another straight path up ahead take that path now.\");\n enter = next.nextLine();\n System.out.println(\"Do you hear anything? Well, I don't. It must be safe for here...Shall we continue?\");\n answer = responses.nextLine();\n System.out.println(\"WHA HA HA HA!!! VRMMMM!\");\n enter = next.nextLine();\n System.out.println(\"You don't have much time...Hurry up and take the path!\");\n enter = next.nextLine();\n System.out.println(\"Now there are two diverging paths. One leading you straight ahead and the other one \");\n System.out.println(\"curving to the right\");\n System.out.println(\"Which path would you like to take straight or right?\");\n answer = responses.nextLine();\n if(answer.contains(\"straight\")) {\n System.out.println(\"AHHHH!!! The creatures trapped you... \" + username + \"!\");\n System.out.println(username + \" fell into the creatures grasp and was thrown into the molten rocks to burn.\");\n backtocheckpoint1_version2();\n }else if(answer.contains(\"left\")) {\n System.out.println(\"It appears to be safe\");\n enter = next.nextLine();\n System.out.println(\"Let's sit for awhile and relax.\");\n System.out.println(\"GET THAT \" + username + \"!\");\n System.out.println(\"That kid is going to be killed when I come there!\");\n //Here is a brief statement of the main antagonist of the game...More will be revealed as \n //the player advances in the game.\n enter = next.nextLine();\n System.out.println(\"'Who's voice is that'/ Could that voice be the voice you heard as you gain your magic? \");\n enter = next.nextLine(); \n //this hints to the later interaction between the witch and the player\n System.out.println(\"No time to sit...Hurry and move\");\n enter = next.nextLine();\n door2_linkedpath();\n /*this is the path that links both branches the straight and the right branch that the\n player took in the beginning of the challenge.*/\n }\n \n \n }", "public void displayAdmInterface() {\n\t\t// Display menu options\n\t\tSystem.out.println(\n\t\t\t\"\\nAVAILABLE ADMINISTRATOR COMMANDS:\" +\n\t\t\t\"\\n1: Erase the Database\" +\n\t\t\t\"\\n2: Load airline information\" +\n\t\t\t\"\\n3: Load schedule information\" +\n\t\t\t\"\\n4: Load pricing information\" +\n\t\t\t\"\\n5: Load plane information\" +\n\t\t\t\"\\n6: Generate passenger manifest of flight on day\" +\n\t\t\t\"\\n7: Quit\\n\");\n\n\t\t// Get user input\n\t\tSystem.out.print(\"Enter command number: \");\n\t\tinputString = scan.nextLine();\n\t\t// Convert input to integer, if not convertable, set to 0 (invalid)\n\t\ttry { choice = Integer.parseInt(inputString);\n\t\t} catch(NumberFormatException e) {choice = 0;}\n\n\t\t// Handle user choices\n\t\tif(choice == 1) {\n\t\t\t// Get user verification\n\t\t\tSystem.out.print(\"Are you sure you want to delete the database? (Y/N): \");\n\t\t\tinputString = scan.nextLine();\n\t\t\t// If user verifies database deletion\n\t\t\tif(inputString.equals(\"Y\") || inputString.equals(\"y\"))\n\t\t\t\tadm1();\n\t\t\telse System.out.println(\"DATABASE ERASURE CANCELLED\");\n\t\t}\n\t\telse if(choice == 2) {\n\t\t\tSystem.out.print(\"Please enter file name with airline information: \");\n\t\t\tString filename = scan.nextLine();\n\t\t\tadm2(filename);\n\t\t}\n\t\telse if(choice == 3) {\n\t\t\tSystem.out.print(\"Please enter file name with schedule information: \");\n\t\t\tString filename = scan.nextLine();\n\t\t\tadm3(filename);\n\t\t}\n\t\telse if(choice == 4) {\n\t\t\t// Display menu options\n\t\t\tSystem.out.println(\n\t\t\t\t\"WOULD YOU LIKE TO:\\n\" +\n\t\t\t\t\"L: Load pricing information\\n\" +\n\t\t\t\t\"C: Change flight price\\n\");\n\t\t\tSystem.out.print(\"Enter Command: \");\n\t\t\tinputString = scan.nextLine();\n\t\t\t// If load pricing information option was selected (L)\n\t\t\tif(inputString.equals(\"L\") || inputString.equals(\"l\")) {\n\t\t\t\tSystem.out.print(\"Please enter file name with pricing information: \");\n\t\t\t\tString filename = scan.nextLine();\n\t\t\t\tadm4L(filename);\n\t\t\t}\n\t\t\t// If change flight pricing information was selected (C)\n\t\t\telse if(inputString.equals(\"C\") || inputString.equals(\"c\")) {\n\t\t\t\tString dCity, aCity;\n\t\t\t\tSystem.out.println(\"YOU HAVE CHOSEN TO CHANGE A FLIGHT PRICE\");\n\t\t\t\tSystem.out.print(\"What is the departure city of the flight you wish to change?: \");\n\t\t\t\tdCity = scan.nextLine();\n\t\t\t\tSystem.out.print(\"And the arrival city of this flight?: \");\n\t\t\t\taCity = scan.nextLine();\n\t\t\t\tSystem.out.print(\"What is the new high price for this flight?: \");\n\t\t\t\tinputString = scan.nextLine();\n\t\t\t\tint hPrice = 0, lPrice = 0;\n\t\t\t\tboolean invalidPrice = false;\n\t\t\t\ttry { hPrice = Integer.parseInt(inputString);\n\t\t\t\t} catch(NumberFormatException e) {invalidPrice = true;}\n\t\t\t\tSystem.out.print(\"And the low price?: \");\n\t\t\t\tinputString = scan.nextLine();\n\t\t\t\ttry { lPrice = Integer.parseInt(inputString);\n\t\t\t\t} catch(NumberFormatException e) {invalidPrice = true;}\n\t\t\t\tif(!invalidPrice) { // Continue only if price is valid\n\t\t\t\t\tSystem.out.println( // Display entered data for confirmation before execution\n\t\t\t\t\t\t\"\\n You have entered the following information:\" +\n\t\t\t\t\t\t\"\\nDeparture City: \" + dCity +\n\t\t\t\t\t\t\"\\nArrival City: \" + aCity +\n\t\t\t\t\t\t\"\\nHigh Price: \" + hPrice +\n\t\t\t\t\t\t\"\\nLow Price: \" + lPrice +\n\t\t\t\t\t\t\"\\nIs this this correct? (Y/N)\");\n\t\t\t\t\tinputString = scan.nextLine();\n\t\t\t\t\t// If input data is confirmed, execute\n\t\t\t\t\tif(inputString.equals(\"Y\") || inputString.equals(\"y\"))\n\t\t\t\t\t\tadm4C(dCity, aCity, hPrice, lPrice);\n\t\t\t\t\telse System.out.println(\"NOTHING CHANGED\");\n\t\t\t\t} else System.out.println(\"ERROR: Price must be a number!\");\n\t\t\t} else System.out.println(\"INVALID CHOICE\");\n\t\t}\n\t\telse if(choice == 5) {\n\t\t\tSystem.out.print(\"Please enter file name with plane information: \");\n\t\t\tString filename = scan.nextLine();\n\t\t\tadm5(filename);\n\t\t}\n\t\telse if(choice == 6) {\n\t\t\tString flightNum, flightDate;\n\t\t\tSystem.out.print(\"Enter flight number: \");\n\t\t\tflightNum = scan.nextLine();\n\t\t\tSystem.out.print(\"Enter flight date (MM/DD/YYYY): \");\n\t\t\tflightDate = scan.nextLine();\n\t\t\tadm6(flightNum, flightDate);\n\t\t}\n\t\telse if(choice == 7) exit = true;\n\t\telse System.out.println(\"INVALID CHOICE\");\n\n\t\tif(!exit) { // Exiting will ignore loop and drop to main to exit properly\n\t\t\t// Repeat menu after user controlled pause\n\t\t\tSystem.out.print(\"Press Enter to Continue... \");\n\t\t\tscan.nextLine();\n\t\t\tdisplayAdmInterface();\n\t\t}\n\t}", "void hellsKitchen() {\n location = \"hellsKitchen\";\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\n////// HELLS KITCHEN //////\");\n System.out.println(\"\\nYou have entered Hells Kitchen!\");\n System.out.println(\"Hells Kitchen looks dark and gloomy. Dark allys everywhere.\");\n\n System.out.println(\"Please enter [1] if you would like explore | Enter [2] if you would like to go back to base: \");\n userSwings = input.nextInt();\n\n if (userSwings == 1) {\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\nYour spider-sense goes off!!\");\n System.out.println(\"You hear sirens, it sounds like a crime!\");\n\n System.out.println(\"Do you wish to help? Enter 'yes' or 'no\");\n String userChoice = input.nextLine();\n userChoice = input.nextLine();\n\n //If user wishes to fight crime, run a crime method within the crime class\n if (userChoice.equals(\"yes\")) {\n c.carHijack();\n avengersTower();\n } else if (userChoice.equals(\"no\")) {\n avengersTower();\n }\n } else if (userSwings == 2) {\n avengersTower();\n } else {\n System.out.println(\"Please enter either 1 or 2!!\");\n hellsKitchen();\n }\n }", "public void menu(){\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"<=======|\" + name + \"|=======>\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tSystem.out.println(\"1 -> Jouer\");\n\t\tSystem.out.println(\"2 -> Creer votre personnage\");\n\t\tSystem.out.println(\"3 -> Charger\");\n\t\tSystem.out.println(\"4 -> Best Score\");\n\t\tSystem.out.println(\"5 -> Instruction\");\n\t\tSystem.out.println(\"6 -> Quitter\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tint choice = in.nextInt();\n\n\t\t\tswitch (choice){\n\t\t\t\tcase 1:\n\t\t\t\t\tstartPlay();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tcreateChar();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tchargeGame();\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.print(\" NOM -\");\n\t\t\t\t\tSystem.out.print(\" GENRE -\");\n\t\t\t\t\tSystem.out.print(\" SANTEE -\");\n\t\t\t\t\tSystem.out.print(\" FORCE -\");\n\t\t\t\t\tSystem.out.print(\" ARMES -\");\n\t\t\t\t\tSystem.out.println(\" ARGENT -\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tbdd.dbQuery(\"SELECT * FROM score ORDER BY health DESC\");\n\t\t\t\t\tmenu();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\trules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\texit();\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Choix non valide\");\n\t\t\t\t\tmenu();\n\t\t\t}\n\t}", "static void Door2challenge() {\n System.out.println(\"Ready! 3...2...1...GO!\");\n System.out.println(\"Where do you want to go? Left, Right, or Straight\");\n direction = next.nextLine();\n //this is where the player will decide where to go\n //the rest of the maze will branch off from this decision. These choices will have the same outcome.\n \n if(direction.contains(\"left\")) {\n door2challenge_leftpath();\n //player enters the left branch maze\n \n }else if(direction.contains(\"right\")){\n door2challenge_rightpath();\n //player enters the right branch of the maze\n \n }else if(direction.contains(\"straight\")){\n door2challenge_straightpath();\n //player enters the straight branch of the maze\n }else{\n System.out.println(\"I don't understand...type it correctly!!!\");\n Door2challenge();\n }\n \n }", "public void paymentMethod() {\n try {\n System.out.println(\"You can pay in 4 ways\");\n String[] functions = new String[]{\"Cash\", \"Debit / Credit card\", \"Pay to Attender\", \"Use Premium account\", \"Exit\"};\n for (int i = 0; i < functions.length; i++) {\n System.out.println(i + 1 + \": \" + functions[i]);\n }\n int option1 = scanner.nextInt();\n functionInvoker(option1);\n } catch (Exception e) {\n System.out.println(\"Enter Valid input.\");\n e.printStackTrace();\n }\n }", "public static int[] choice(String enemy, int enemyHealth, int enemyDamage, int playerHealth, int playerDamage, int elixirCount, int elixirHealth, int wins, boolean[] items, int itemCount, int level) {\r\n //ASK: Gets user input\r\n Scanner scnr = new Scanner(System.in);\r\n System.out.println(\"What would you like to do?\\n\\t> 1: Fight\\n\\t> 2: Drink elixir\\n\\t> 3: Run\");\r\n String userInput = scnr.next();\r\n //FIGHT\r\n switch (userInput) {\r\n case \"1\": {\r\n int[] returned = fight(enemy, enemyHealth, enemyDamage, playerHealth, playerDamage, elixirCount, elixirHealth, wins, items, itemCount, level);\r\n if (level == 3)\r\n playerHealth = returned[0];\r\n elixirCount = returned[1];\r\n wins = returned[2];\r\n itemCount = returned[3];\r\n return new int[]{playerHealth, elixirCount, wins, itemCount};\r\n }\r\n //ELIXIR\r\n case \"2\": {\r\n int[] returned = elixir(enemy, enemyHealth, enemyDamage, playerHealth, playerDamage, elixirCount, elixirHealth, wins, items, itemCount, level);\r\n if (level == 3)\r\n playerHealth = returned[0];\r\n elixirCount = returned[1];\r\n wins = returned[2];\r\n itemCount = returned[3];\r\n return new int[]{playerHealth, elixirCount, wins, itemCount};\r\n }\r\n //RUN/SKIP\r\n case \"3\":\r\n System.out.println(\"You chose to run.\\nHere comes another enemy!\");\r\n break;\r\n //NOTHING SELECTED\r\n default:\r\n System.out.println(\"What would you like to do?\\n\\t> 1: Fight\\n\\t> 2: Drink elixir\\n\\t> 3: Run\");\r\n userInput = scnr.next();\r\n break;\r\n }\r\n return new int[]{playerHealth, elixirCount, wins, itemCount};\r\n }", "public char showMessage(int room)\n\t{\n\t\tScanner kbAlpha = new Scanner(System.in);\t\t\t//gets input\n\t\t\n\t\tString strInput;\t\t\t\t\t\t//holds player input\n\t\tchar cAction;\t\t\t\t\t\t\t//player choice of action\n\t\t\n\t\tcAction = 'x';\n\t\t\n\t\tswitch (room)\n\t\t{\n\t\t\tcase 1:\n\t\t\t\tif (evaluateInventory(\"Dagger\") && evaluateTravelled(1))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"There is no turning back now. You must proceed through\" +\n\t\t\t\t\t\t\" the door in front\\nof you.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Open the door\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && \n\t\t\t\t\t\tcAction != 'E' && cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"There is no turning back now. You must proceed through\" +\n\t\t\t\t\t\t\t\" the door in front of you.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Open the door\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(2);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if (evaluateTravelled(1))\n\t\t\t\t{\n\t\t\t\t\t//adds \"Dagger\" to inventory\n\t\t\t\t\tthis.inventory.add(\"Dagger\");\n\t\t\t\t\tthis.setEquippedWeapon(\"Dagger\");\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You found an old backpack! This will help you carry \" +\n\t\t\t\t\t\t\"items. Inside the\\nbackpack you find a rusty dagger. Not much, but \" +\n\t\t\t\t\t\t\"better than your fists,\\nright?\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && \n\t\t\t\t\t\tcAction != 'E' && cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You found an old backpack! This will help you carry \" +\n\t\t\t\t\t\t\t\"items. Inside the\\nbackpack you find a rusty dagger. Not much, but \" +\n\t\t\t\t\t\t\t\"better than your fists,\\nright?\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\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\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You find yourself in a dark hallway. Your back is against \" +\n\t\t\t\t\t\t\"the iron door\\nthat you entered. You see something in the floor at the \" +\n\t\t\t\t\t\t\"end of the\\nhallway just before a right turn.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Inspect what is in the floor at the end of the\" +\n\t\t\t\t\t\t\" hallway\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\nHP: \" + getHP() + \n\t\t\t\t\t\t\"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You find yourself in a dark hallway. Your back is against \" +\n\t\t\t\t\t\t\t\"the iron door\\nthat you entered. You see something in the floor at the \" +\n\t\t\t\t\t\t\t\"end of the\\nhallway just before a right turn.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Inspect what is in the floor at the end of\" +\n\t\t\t\t\t\t\t\" the hallway\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\nHP: \" + getHP() + \n\t\t\t\t\t\t\t\"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.hasTravelled.add(1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\t\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\t//if player has visited room 2 before\n\t\t\t\tif (evaluateTravelled(2) && !(evaluateInventory(\"Steampunk 4-Barrel Pistol\"))\n\t\t\t\t\t&& evaluateTravelled(3))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You enter a familiar room... the eastern door is still \"\n\t\t\t\t\t\t+ \"guarded by an alien.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Open north door\\n[B] Fight alien\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You enter a familiar room... the eastern door is still \"\n\t\t\t\t\t\t\t+ \"guarded by an alien.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Open north door\\n[B] Fight alien\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(3);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tfight(\"alien1\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Opens door\n\t\t\t\telse if (evaluateInventory(\"Steampunk 4-Barrel Pistol\")\n\t\t\t\t\t&& evaluateInventory(\"Iron Key\"))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Now that nothing stands in your way... it looks \" +\n\t\t\t\t\t\t\"like that key you found\\nis about to come in handy!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Use Iron Key on the iron door\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && \n\t\t\t\t\t\tcAction != 'E' && cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You enter a familiar room... the eastern door is still \"\n\t\t\t\t\t\t\t+ \"guarded by an alien.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Open north door\\n[B] Fight alien\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(5);\n\t\t\t\t\t\tinventory.remove(new String(\"Iron Key\"));\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//player can't open door without Iron Key\n\t\t\t\telse if (evaluateInventory(\"Steampunk 4-Barrel Pistol\") && \n\t\t\t\t\t!(evaluateInventory(\"Iron Key\")))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"With the alien out of the way, you attempt to open \" +\n\t\t\t\t\t\t\"the door. Locked!\\nThere has to be a key around here somewhere... \" +\n\t\t\t\t\t\t\"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Open north door\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && \n\t\t\t\t\t\tcAction != 'E' && cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"With the alien out of the way, you attempt to open \" +\n\t\t\t\t\t\t\t\"the door. Locked!\\nThere has to be a key around here somewhere... \" +\n\t\t\t\t\t\t\t\"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Open north door\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(3);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//player first time entering\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.hasTravelled.add(2);\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You slowly open the door to a large room. Looking \" +\n\t\t\t\t\t\t\"around, you can see two\\ndoors: one to the north and one to the \" +\n\t\t\t\t\t\t\"east. Guarding the eastern door is\\nan alien!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Open north door\\n[B] Fight alien\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You slowly open the door to a large room. Looking \" +\n\t\t\t\t\t\t\t\"around, you can see two\\ndoors: one to the north and one to the \" +\n\t\t\t\t\t\t\t\"east. Guarding the eastern door is\\nan alien!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Open north door\\n[B] Fight alien\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(3);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tfight(\"alien1\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t//player has been here before\n\t\t\t\tif (evaluateTravelled(3))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You have travelled this hallway before. Which way \" +\n\t\t\t\t\t\t\"would you like to go\\nnext?\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Through the northern door\\n[B] Through the \" +\n\t\t\t\t\t\t\"southern door\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You have travelled this hallway before. Which way \" +\n\t\t\t\t\t\t\t\"would you like to go\\nnext?\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Through the northern door\\n[B] Through the \" +\n\t\t\t\t\t\t\t\"southern door\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(4);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//first time player enters room\n\t\t\t\telse if (!(evaluateTravelled(3)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You walk north and open the door, revealing a hallway.\" +\n\t\t\t\t\t\t\" It does not appear\\nto have anything interesting inside. \" +\n\t\t\t\t\t\t\"There is another door at the end of\\nthe hallway to the north.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue through the door at the end of the \" +\n\t\t\t\t\t\t\"hallway\\n[B] Return to previous room\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You walk north and open the door, revealing a hallway.\" +\n\t\t\t\t\t\t\t\" It does not appear\\nto have anything interesting inside. \" +\n\t\t\t\t\t\t\t\"There is another door at the end of\\nthe hallway to the north.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue through the door at the end of the \" +\n\t\t\t\t\t\t\t\"hallway\\n[B] Return to previous room\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(4);\n\t\t\t\t\t\tthis.hasTravelled.add(3);\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(2);\n\t\t\t\t\t\tthis.hasTravelled.add(3);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t//player has found Iron Key\n\t\t\t\tif (evaluateInventory(\"Iron Key\"))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"There is nothing else interesting in this room.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Exit the way you entered\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && cAction != 'E'\n\t\t\t\t\t\t&& cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"There is nothing else interesting in this room.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Exit the way you entered\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(3);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//player does not have shovel but has searched dirt\n\t\t\t\telse if (!(evaluateInventory(\"Shovel\")) && blnSearchedDirt && \n\t\t\t\t\t!blnSearchedBarrels)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"A mound of dirt. It looks like something was burried, \" +\n\t\t\t\t\t\t\"but you recently\\nreceived a manicure and would prefer not to dig \" +\n\t\t\t\t\t\t\"with your hands.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Inspect dirt mound\\n[B] Search barrels\\n[C] Exit \" +\n\t\t\t\t\t\t\"the way you entered\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'c' && cAction != 'C' && cAction != 'e' && cAction != 'E'\n\t\t\t\t\t\t&& cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"A mound of dirt. It looks like something was burried, \" +\n\t\t\t\t\t\t\t\"but you recently\\nreceived a manicure and would prefer not to dig \" +\n\t\t\t\t\t\t\t\"with your hands.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Inspect dirt mound\\n[B] Search barrels\\n[C] Exit \" +\n\t\t\t\t\t\t\t\"the way you entered\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.inventory.add(\"Shovel\");\n\t\t\t\t\t\tthis.blnSearchedBarrels = 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\tif (cAction == 'c' || cAction == 'C')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(3);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//player has shovel but not iron key\n\t\t\t\telse if (evaluateInventory(\"Shovel\") && !(evaluateInventory(\"Iron Key\"))\n\t\t\t\t\t&& !(evaluateTravelled(4)) && blnSearchedBarrels)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"The barrels contained a shovel. What would you like \"\n\t\t\t\t\t\t+ \"to do now?\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Inspect dirt mound\\n[B] Exit the way you entered\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"The barrels contained a shovel. What would you like \"\n\t\t\t\t\t\t\t+ \"to do now?\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Inspect dirt mound\\n[B] Exit the way you entered\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(3);\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.hasTravelled.add(4);\n\t\t\t\t\t\tthis.blnSearchedDirt = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//player digs dirt to find Iron Key\n\t\t\t\telse if (evaluateInventory(\"Shovel\") && evaluateTravelled(4) && blnSearchedDirt\n\t\t\t\t\t&& !(evaluateInventory(\"Iron Key\")))\n\t\t\t\t{\n\t\t\t\t\tthis.inventory.add(\"Iron Key\");\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You use the shovel to dig into the dirt mound. You \" +\n\t\t\t\t\t\t\"found an iron key!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Exit the way you entered\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && cAction != 'E'\n\t\t\t\t\t\t&& cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You use the shovel to dig into the dirt mound. You \" +\n\t\t\t\t\t\t\t\"found an iron key!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Exit the way you entered\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(3);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//first time player enters\n\t\t\t\telse if (!(evaluateInventory(\"Shovel\")) && !(evaluateTravelled(4)) &&\n\t\t\t\t\t!(evaluateInventory(\"Iron Key\")))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You open the door to another large room. In one \" + \n\t\t\t\t\t\t\"corner you see a few\\nbarrels. There is an odd looking dirt mound \" +\n\t\t\t\t\t\t\"in the center of the room. No\\naliens in sight, phew!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Inspect dirt mound\\n[B] Search barrels\\n[C] Exit \" +\n\t\t\t\t\t\t\"the way you entered\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'c' && cAction != 'C' && cAction != 'e' && cAction != 'E'\n\t\t\t\t\t\t&& cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You open the door to another large room. In one \" + \n\t\t\t\t\t\t\t\"corner you see a few\\nbarrels. There is an odd looking dirt mound \" +\n\t\t\t\t\t\t\t\"in the center of the room. No\\naliens in sight, phew!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Inspect dirt mound\\n[B] Search barrels\\n[C] Exit \" +\n\t\t\t\t\t\t\t\"the way you entered\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.blnSearchedDirt = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'c' || cAction == 'C')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(3);\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.blnSearchedBarrels = true;\n\t\t\t\t\t\tthis.inventory.add(\"Shovel\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\t//player has been in this hallway before\n\t\t\t\tif (evaluateTravelled(5))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You walk back into a hallway. It looks like you have \" +\n\t\t\t\t\t\t\"been here before.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Open northern door\\n[B] Open southern door\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You walk back into a hallway. It looks like you have \" +\n\t\t\t\t\t\t\t\"been here before.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Open northern door\\n[B] Open southern door\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(7);\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(6);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//first time player enters hallway\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You enter a hallway that turns north and reveals another\"\n\t\t\t\t\t\t+ \" door. Just when\\nrounding the corner you see an old door along \" +\n\t\t\t\t\t\t\"the southern wall that is\\ncovered in vines, almost impossible to \" +\n\t\t\t\t\t\t\"spot. \\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Open northern door\\n[B] Open southern door\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You enter a hallway that turns north and reveals another\"\n\t\t\t\t\t\t\t+ \" door. Just when\\nrounding the corner you see an old door along \" +\n\t\t\t\t\t\t\t\"the southern wall that is\\ncovered in vines, almost impossible to \" +\n\t\t\t\t\t\t\t\"spot. \\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Open northern door\\n[B] Open southern door\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(7);\n\t\t\t\t\t\tthis.hasTravelled.add(5);\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(6);\n\t\t\t\t\t\tthis.hasTravelled.add(5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t//player has killed alien\n\t\t\t\tif (evaluateTravelled(6))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"The alien corpse is still fresh... There is nothing \" +\n\t\t\t\t\t\t\"else of interest here.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Return to hallway\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && \n\t\t\t\t\t\tcAction != 'E' && cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"The alien corpse is still fresh... There is nothing \" +\n\t\t\t\t\t\t\t\"else of interest here.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Return to hallway\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//alien is still alive\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You enter a small room. Out of the corner of your eye \" +\n\t\t\t\t\t\t\"you see a slow\\nmovement... an alien has spotted you!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Fight alien\\n[B] Run back through door way\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You enter a small room. Out of the corner of your eye \" +\n\t\t\t\t\t\t\t\"you see a slow\\nmovement... an alien has spotted you!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Fight alien\\n[B] Run back through door way\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tfight(\"alien2\");\n\t\t\t\t\t\tthis.hasTravelled.add(6);\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\t//player enters first time\n\t\t\t\tif (!(evaluateTravelled(7)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"The door opens to large a cavern. You can feel the \" +\n\t\t\t\t\t\t\"ground rumbling and\\nthere is a low mist rising just above the \" +\n\t\t\t\t\t\t\"floor. There are two doors\\nbesides the one you entered through. \" +\n\t\t\t\t\t\t\"There is one on the eastern cavern\\nwall, and you can barely see a \" +\n\t\t\t\t\t\t\"door at the far northern part of the\\ncavern, at the end of steep \" +\n\t\t\t\t\t\t\"decline from your position. Unfortunately,\\nanother alien is guarding \"\n\t\t\t\t\t\t+ \"this door.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Follow the path down to the northern door and \" +\n\t\t\t\t\t\t\"fight the alien\\n[B] Open the eastern door\\n[C] Return to the hallway\"\n\t\t\t\t\t\t+ \" you just came from\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'c' && cAction != 'C' && cAction != 'e' && cAction != 'E'\n\t\t\t\t\t\t&& cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"The door opens to large a cavern. You can feel the \" +\n\t\t\t\t\t\t\t\"ground rumbling and\\nthere is a low mist rising just above the \" +\n\t\t\t\t\t\t\t\"floor. There are two doors\\nbesides the one you entered through. \" +\n\t\t\t\t\t\t\t\"There is one on the eastern cavern\\nwall, and you can barely see a \" +\n\t\t\t\t\t\t\t\"door at the far northern part of the\\ncavern, at the end of steep \" +\n\t\t\t\t\t\t\t\"decline from your position. Unfortunately,\\nanother alien is guarding \"\n\t\t\t\t\t\t\t+ \"this door.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Follow the path down to the northern door and \" +\n\t\t\t\t\t\t\t\"fight the alien\\n[B] Open the eastern door\\n[C] Return to the hallway\"\n\t\t\t\t\t\t\t+ \" you just came from\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.hasTravelled.add(7);\n\t\t\t\t\t\tfight(\"alien3\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.hasTravelled.add(7);\n\t\t\t\t\t\tsetRoom(8);\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'c' || cAction == 'C')\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.hasTravelled.add(7);\n\t\t\t\t\t\tsetRoom(5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//player has been here before but not fought alien\n\t\t\t\telse if (evaluateTravelled(7) && !(evaluateInventory(\"Edison Grenade\")))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You are in a familiar large cavern.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Follow the path down to the northern door and \" +\n\t\t\t\t\t\t\"fight the alien\\n[B] Open the eastern door\\n[C] Return to the hallway\"\n\t\t\t\t\t\t+ \" you just came from\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'c' && cAction != 'C' && cAction != 'e' && cAction != 'E'\n\t\t\t\t\t\t&& cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"The door opens to large a cavern, you can feel the \" +\n\t\t\t\t\t\t\t\"ground rumbling and\\nthere is a low mist rising just above the \" +\n\t\t\t\t\t\t\t\"floor. There are two doors\\nbesides the one you entered through. \" +\n\t\t\t\t\t\t\t\"There is one on the eastern cavern\\nwall, and you can barely see a \" +\n\t\t\t\t\t\t\t\"door at the far northern part of the\\ncavern, at the end of steep \" +\n\t\t\t\t\t\t\t\"decline from your position. Unfortunately,\\nanother alien is guarding \"\n\t\t\t\t\t\t\t+ \"this door.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Follow the path down to the northern door and \" +\n\t\t\t\t\t\t\t\"fight the alien\\n[B] Open the eastern door\\n[C] Return to the hallway\"\n\t\t\t\t\t\t\t+ \" you just came from\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tfight(\"alien3\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(8);\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'c' || cAction == 'C')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//player defeats alien but does not have Steel Key\n\t\t\t\telse if (evaluateTravelled(7) && evaluateInventory(\"Edison Grenade\") &&\n\t\t\t\t\t!(evaluateInventory(\"Steel Key\")))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"The steel door is locked. If I had to guess, there\" +\n\t\t\t\t\t\t\" is probably a key to be\\nfound...\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Open the eastern door\\n[B] Open the southern \" +\n\t\t\t\t\t\t\"door\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'c' && cAction != 'C' && cAction != 'e' && cAction != 'E'\n\t\t\t\t\t\t&& cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"The steel door is locked. If I had to guess, there\" +\n\t\t\t\t\t\t\t\" is probably a key to be\\nfound...\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Open the eastern door\\n[B] Open the southern \" +\n\t\t\t\t\t\t\t\"door\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(8);\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(5);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//player has defeated alien and has Steel Key\n\t\t\t\telse if (evaluateInventory(\"Edison Grenade\") && \n\t\t\t\t\tevaluateInventory(\"Steel Key\") && evaluateTravelled(7))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Since we did away with the alien, it is time to use \"\n\t\t\t\t\t\t+ \"the Steek Key on the\\nsteel door. What could be on the other \" +\n\t\t\t\t\t\t\"side of the door?...\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue through doorway\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && \n\t\t\t\t\t\tcAction != 'E' && cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Since we did away with the alien, it is time to use \"\n\t\t\t\t\t\t\t+ \"the Steek Key on the\\nsteel door. What could be on the other \" +\n\t\t\t\t\t\t\t\"side of the door?...\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue through doorway\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(11);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\t//player enters hallway\n\t\t\t\tthis.hasTravelled.add(8);\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You enter a hallway with a turn in it. You slowly walk\" +\n\t\t\t\t\t\" around the corner\\nand see a door at the end of the hall.\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Open western door back to cavern\\n[B] Open southern \"\n\t\t\t\t\t+ \"door\\n\\n\");\n\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\n\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\tcAction != 'M')\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You enter a hallway with a turn in it. You slowly walk\" +\n\t\t\t\t\t\t\" around the corner\\nand see a door at the end of the hall.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Open western door back to cavern\\n[B] Open southern \"\n\t\t\t\t\t\t+ \"door\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t{\n\t\t\t\t\tsetRoom(7);\n\t\t\t\t}\n\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t{\n\t\t\t\t\tsetRoom(9);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\t//first time player enters\n\t\t\t\tif (!(evaluateTravelled(9)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"When you open the door, you can hear the sound of an \" +\n\t\t\t\t\t\t\"alien standing up!\\nYou lock eyes with it's one eye - no chance of \" +\n\t\t\t\t\t\t\"getting by unnoticed. You\\nsee a door behind the alien.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Fight alien\\n[B] Run back into the hallway\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"When you open the door, you can hear the sound of an \" +\n\t\t\t\t\t\t\t\"alien standing up!\\nYou lock eyes with it's one eye - no chance of \" +\n\t\t\t\t\t\t\t\"getting by unnoticed. You\\nsee a door behind the alien.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Fight alien\\n[B] Run back into the hallway\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.hasTravelled.add(9);\n\t\t\t\t\t\tfight(\"alien4\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(8);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//player defeats alien\n\t\t\t\telse if (evaluateTravelled(9) && \n\t\t\t\t\tevaluateInventory(\"Steampunk Mach. II Riflesword\"))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Where would you like to go next?\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Open door that alien was guarding\\n[B] Exit to \" +\n\t\t\t\t\t\t\"hallway where you came from\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'b' && cAction != 'B'\n\t\t\t\t\t\t&& cAction != 'e' && cAction != 'E' && cAction != 'm' && \n\t\t\t\t\t\tcAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"That was an epic battle! You pick up the alien's \" +\n\t\t\t\t\t\t\t\"weapon. It is a Mach. II\\nRiflesword! This is a lot better than the \" +\n\t\t\t\t\t\t\tgetEquippedWeapon() + \"!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Open door that alien was guarding\\n[B] Exit to \" +\n\t\t\t\t\t\t\t\"hallway where you came from\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(10);\n\t\t\t\t\t}\n\t\t\t\t\telse if (cAction == 'b' || cAction == 'B')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(8);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\t//first time player enters\n\t\t\t\tif (!(evaluateTravelled(10)) && !(evaluateInventory(\"Steel Key\")))\n\t\t\t\t{\n\t\t\t\t\tthis.inventory.add(\"Steel Key\");\n\t\t\t\t\tthis.hasTravelled.add(10);\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"This is a small room, but right in front of you on the\" +\n\t\t\t\t\t\t\" ground is a Steel\\nKey! This probably opens something!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Exit room\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && \n\t\t\t\t\t\tcAction != 'E' && cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"This is a small room, but right in front of you on the\" +\n\t\t\t\t\t\t\t\" ground is a Steel\\nKey! This probably opens something!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Exit room\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(9);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//player has entered before\n\t\t\t\telse if (evaluateInventory(\"Steel Key\") && evaluateTravelled(10))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"This tiny room has been explored already. Nothing to see\"\n\t\t\t\t\t\t+ \" here.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Exit room\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && \n\t\t\t\t\t\tcAction != 'E' && cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"This tiny room has been explored already. Nothing to see\"\n\t\t\t\t\t\t\t+ \" here.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Exit room\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(9);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\t//player enters room\n\t\t\t\tif (!(evaluateTravelled(11)) && !(evaluateInventory(\"Platinum Key\")))\n\t\t\t\t{\n\t\t\t\t\tthis.inventory.remove(\"Steel Key\");\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You enter another large room. The ground is oozing \"\n\t\t\t\t\t\t+ \"lava, adding to lava\\nrunning down the walls. In the center of \"\n\t\t\t\t\t\t+ \"the room... you see the BOSS\\nALIEN! He is guarding a door \"\n\t\t\t\t\t\t+ \"on the eastern wall. This will be your\\nhardest challenge \" +\n\t\t\t\t\t\t\"yet. Good luck!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Fight boss alien\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && \n\t\t\t\t\t\tcAction != 'E' && cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You enter another large room. The ground is oozing \"\n\t\t\t\t\t\t\t+ \"lava, adding to lava\\nrunning down the walls. In the center of \"\n\t\t\t\t\t\t\t+ \"the room... you see the BOSS\\nALIEN! He is guarding a door \"\n\t\t\t\t\t\t\t+ \"on the eastern wall. This will be your\\nhardest challenge \" +\n\t\t\t\t\t\t\t\"yet. Good luck!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Exit room\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tfight(\"boss\");\n\t\t\t\t\t\tthis.hasTravelled.add(11);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//player has defeated the boss\n\t\t\t\telse if (evaluateTravelled(11) && evaluateInventory(\"Platinum Key\"))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Now that you have the Platinum Key, let us try to \"\n\t\t\t\t\t\t+ \"open the door behind the\\nboss alien corpse.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Open eastern door\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAction != 'a' && cAction != 'A' && cAction != 'e' && \n\t\t\t\t\t\tcAction != 'E' && cAction != 'm' && cAction != 'M')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\");\n\t\t\t\t\t\tSystem.out.print(\"\\n________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Now that you have the Platinum Key, let us try to \"\n\t\t\t\t\t\t\t+ \"open the door behind the\\nboss alien corpse.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Open eastern door\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"\\t[M] Map\\n\\t[E] Backpack\\n\\nHP: \" + getHP() + \"\\nWeapon: \" + \n\t\t\t\t\t\t\tgetEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAction = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (cAction == 'a' || cAction == 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tsetRoom(12);\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\tbreak;\n\t\t\tcase 12:\n\t\t\t\t//player wins!\n\t\t\t\tthis.blnPlayerVictory = true;\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have found the obsidite! The CDC evacuates you and \"\n\t\t\t\t\t+ \"the obsidite back\\nto the CDC and production of the vaccine against \"\n\t\t\t\t\t+ \"the pandemic begins. You\\nhave saved the humanity!\");\n\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t}//end switch (room)\n\t\t\n\t\treturn cAction;\n\t\n\t}", "private String goRoom(Command command)//refactored\n {\n if(!command.hasSecondWord()) {\n // if there is no second word, we don't know where to go...\n return \"Go where?\";\n }\n\n String direction = command.getSecondWord();\n\n // Try to leave current room.\n Room nextRoom = currentRoom.getExit(direction);//new\n \n String result = \"\";\n if (nextRoom == null) {\n result += \"There is no door!\";\n }\n else {\n currentRoom = nextRoom;\n result += currentRoom.getDescription()+\"\\n\";//refactored\n \n result += \"Exits: \" + currentRoom.getExitString()+\"\\n\";//taken from class Room \n \n return result;\n }\n result += \"\\n\";\n\n return result;\n }", "public String choiceMenu() {\n\t\tSystem.out.println(\"What would you like to do?\");\n\t\tSystem.out.println(\"Move (W/A/S/D)\");\n\t\tSystem.out.println(\"Check Hero Info (I)\");\n\t\tSystem.out.println(\"Check Inventory (E)\");\n\t\tSystem.out.println(\"Check Map (M)\");\n\t\tSystem.out.println(\"End Turn (T)\");\n\t\tSystem.out.println(\"Quit (Q)\");\n\t\t\n\t\tString s = parseString().toUpperCase();\n\t\tboolean isValidString = false;\n\t\twhile(!isValidString) {\n\t\t\tif(s.equals(\"W\") || s.equals(\"A\") || s.equals(\"S\") || s.equals(\"D\") || s.equals(\"I\") \n\t\t\t\t\t|| s.equals(\"E\") || s.equals(\"M\") || s.equals(\"T\") || s.equals(\"Q\")) {\n\t\t\t\tisValidString = true;\t\n\t\t\t} else {\n\t\t\t\tprintErrorParse();\n\t\t\t\ts = parseString().toUpperCase();\n\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn s;\n\t}", "public void elevatorFloor()\n {\n int c = 0;\n if (currentFloor < e)\n {\n for(c = currentFloor; c <= e; ++c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else if (currentFloor > e)\n {\n for(c = currentFloor; c >= e; --c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n \n currentFloor = e;\n \n //displays a different floor depending on user input\n switch(e)\n {\n case 0:\n getFloors.basement();\n break;\n case 1:\n if(getFloors.secKey == true)\n {\n JOptionPane.showMessageDialog(null,\" you are free to go\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\" you are in the first Floor, you cannot get out without a special key\");\n elevatorLoop();\n }\n break;\n case 2:\n getFirstFloor.livingRoom();\n break;\n case 3:\n getFirstFloor.diningRoom();\n break; \n case 4:\n getFirstFloor.kitchen();\n break;\n case 5:\n getFirstFloor.pantry();\n break;\n case 6:\n getSecondFloor.bedroom1();\n break;\n case 7:\n getSecondFloor.bedroom2();\n break;\n case 8:\n getSecondFloor.masterBedroom();\n break;\n case 9:\n getFloors.attic();\n break;\n \n } \n }", "public static String menuSelection() throws ParseException {\n System.out.print(\"\\nWelcome to Poised!\");\n System.out.print(\"\\n1\\t-\\tAdd a new project\");\n System.out.print(\"\\n2\\t-\\tChange due date of a project\");\n System.out.print(\"\\n3\\t-\\tChange payment on project\");\n System.out.print(\"\\n4\\t-\\tUpdate contact details\");\n System.out.print(\"\\n5\\t-\\tFinalise a project\");\n System.out.print(\"\\nPlease make your selection: \");\n\n // User's selection determine which method should be called\n // If user's selection is '1', then user can create a new project\n int userSelection = input.nextInt();\n input.nextLine();\n if (userSelection == 1) {\n ProjectList.add(createProject());\n }\n\n // If user selection '2', then can amend the due date of the project\n else if (userSelection == 2) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n newDeadline(selectedProj);\n }\n\n // If user selects '3', then user can change the payment on the project\n else if (userSelection == 3) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n makePayment(selectedProj);\n }\n\n // If user selects '4', then user can update the details of either the\n // contractor, client or architect.\n else if (userSelection == 4) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n updateDetails(selectedProj);\n }\n\n // If user selects '5', then user can finalise the project\n else if (userSelection == 5) {\n Project selectedProj = getProject();\n if (selectedProj == null) {\n return menuSelection();\n }\n\n finalisation(selectedProj);\n }\n\n return menuSelection();\n }", "private static void selectActions()\n\t{\n\t\t// One Player\n\t\tif (!isMultiplayer)\n\t\t{\n\t\t\tprintBorder();\n\t\t\tSystem.out.print(\"ROUND NUMBER \" + roundNumber + \"!\\n\" + playerOneName + \" has \" + playerOneHealth + \" health left, and \" + opponentName + \" has \" + opponentHealth + \" health left.\\nEnter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\tfighterInput = input.nextInt();\n\t\t\t\n\t\t\t// Test crashes with floats or letters\n\t\t\twhile (fighterInput < 1 || fighterInput > 3)\n\t\t\t{\n\t\t\t\tprintBorder();\n\t\t\t\tSystem.out.print(\"What are you trying to do???\\nYou can only enter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\t\tfighterInput = input.nextInt();\n\t\t\t}\n\t\t\t// Assigns index value of action array\n\t\t\tfighterAction = actionArray[fighterInput - 1];\n\t\t\n\t\t\t// Opponent rolls action\n\t\t\topponentAction = actionArray[(int) (Math.random() * 3)];\n\t\t\t}\n\t\t\t\t\n\t\t\n\t\t// Two Player\n\t\telse\n\t\t{\n\t\t\t// Player1 picks action and test input\n\t\t\tprintBorder();\n\t\t\tSystem.out.print(\"Round Number \" + roundNumber + \"!\\n\" + playerOneName + \" has \" + playerOneHealth + \" health left, and \" + opponentName + \" has \" + opponentHealth + \" health left.\\n\\n\" + playerOneName + \" enter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\tfighterInput = input.nextInt();\n\t\t\twhile (fighterInput < 1 || fighterInput > 3 )\n\t\t\t{\n\t\t\t\tprintBorder();\n\t\t\t\tSystem.out.print(\"What are you trying to do???\\nYou can only enter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\t\tfighterInput = input.nextInt(); // Throws error if input is not an int\n\t\t\t}\n\t\t\tfighterAction = actionArray[fighterInput - 1];\n\t\t\n\t\t\t// Prints lines to hide player one’s action\n\t\t\tfor(int i = 0; i < 50; i++) System.out.println();\n\t\n\t\t\t// Player2 picks action\n\t\t\tSystem.out.print(opponentName + \" enter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\tfighterInput = input.nextInt();\n\t\t\twhile (fighterInput < 1 || fighterInput > 3 )\n\t\t\t{\n\t\t\t\tprintBorder();\n\t\t\t\tSystem.out.print(\"What are you trying to do???\\nYou can only enter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\t\tfighterInput = input.nextInt();\n\t\t\t}\n\t\t\topponentAction = actionArray[fighterInput - 1];\n\t\t\t}\n\t}", "public void talkToCharacter(Room room)//Made by Lexi\n {\n if (currentRoom.getTitle().equals(\"outside\")) {\n System.out.println(\"All you need to do is unlock the door...\");\n System.out.println(\"Hint: use INSPECT to examine an item in detail.\");\n if (player.inventoryContains(key))\n {\n kitchen.setLocked(false);\n System.out.println(\"The door makes a loud click.\");\n }\n }\n \n \n else if (currentRoom.getTitle().equals(\"kitchen\")) {\n System.out.println(\"In order to move on to the next room, you must first find an item which can be found by solving this riddle: \");\n System.out.println(\"A box without hinges, key, or lid, yet golden treasure inside is hid.\");\n System.out.println(\"The answer is an item in this room that will help you escape and move on to the next room.\");\n if (player.inventoryContains(egg))\n {\n poolRoom.setLocked(false);\n System.out.println(\"The door makes a loud click.\");\n }\n }\n else if (currentRoom.getTitle().equals(\"pool room\")) {\n System.out.println(\"In order to escape this room you must solve this next riddle: \");\n System.out.println(\"Wash me and I am not clean. Don't wash me and then I'm clean. What I Am?\"); //water\n System.out.println(\"The answer to the riddle is where you'll find the object needed to escape this room... \");\n if (player.inventoryContains(snorkel))\n {\n library.setLocked(false);\n System.out.println(\"The door makes a loud click.\");\n }\n }\n else if (currentRoom.getTitle().equals(\"library\")) {\n System.out.println(\"In order to escape this room you must solve this next riddle: \");\n System.out.println(\"The objects, or people, have been removed from their previous localities through the power of a naturally moving phenomenon.\");\n System.out.println(\"Once you have figured out what item belongs to the answer of this riddle you will have escaped the building!\");\n if (player.inventoryContains(blueBook))\n {\n \n exitRoom.setLocked(false);\n System.out.println(\"The door makes a loud click.\");\n }\n }\n else {\n System.out.println(\"There is nobody here, so you talk to yourself...\");\n }\n }", "@Override public void doAction(int option)\n {\n switch(option)\n {\n case 1: // create and start a new game\n // display the Game menu\n startNewGame();\n break;\n case 2: // get and start a saved game\n startSavedGame();\n break;\n case 3: // get help menu\n //runs the help menu\n HelpMenuView hmv = new HelpMenuView();\n hmv.displayMenu();\n break;\n case 4: // save game\n displaySaveGameView();\n break;\n case 5:\n System.out.println(\"Thanks for playing ... goodbye.\");\n break; // Fix Invalid Value. \n }\n }", "private static void command() {\n Scanner reader = new Scanner(System.in);\n System.out.print(\"Write action (buy, fill, take):\\n> \");\n String input = reader.next();\n\n switch (input) {\n case \"buy\" :\n buy();\n break;\n case \"fill\" :\n fill();\n break;\n case \"take\" :\n take();\n break;\n default:\n System.out.println(\"not accepted command\");\n }\n }", "public void round(){\n if (player2.getName().equals(\"Computer\")) {\n battle(JOptionPane.showInputDialog(\"Player 1 enter: paper; rock; or scissors\"),\n new Computer().choice());\n } else {\n battle(JOptionPane.showInputDialog(\"Player 1 enter: paper; rock; or scissors\"),\n JOptionPane.showInputDialog(\"Player 2 enter: paper; rock; or scissors\"));\n }\n }", "public static void main(String[] args) {\n char option;\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Welcome to MG's adventure world. Now your journey begins. Good luck!\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n String input = getInput(scan, \"Cc\");\n System.out.println(\"You are in a dead valley.\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"You walked and walked and walked and you saw a cave!\");\n cave();\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"You entered a cave!\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"Unfortunately, you ran into a GIANT!\");\n giant();\n System.out.println(\"Enter 'A' or 'a' to Attack, 'E' or 'E' to Escape, ANYTHING else is to YIELD\");\n input = getInput(scan, \"AaEe\", 10);\n System.out.println(\"Congratulations! You SURVIVED! Get your REWARD!\");\n System.out.println(\"There are three 3 tressure box in front of you! Enter the box number you want to open!\");\n box();\n input = getInput(scan);\n System.out.println(\"Hero! Have a good day!\");\n }", "public void CCTAirMenu(int option, Pilot[] pilots, AirPlane[] airplanes, ArrayList<Flight> allFlights, Flight flight) {\n\n switch (option) {\n\n case 1:\n //Calling the method from logic class\n logic.allFlights(allFlights);\n\n break;\n\n case 2:\n //Calling the method from logic class\n logic.particularFlight(allFlights);\n\n break;\n case 3:\n //Calling the method from logic class\n logic.allAirplanes(airplanes);\n\n break;\n\n case 4:\n //Calling the method from logic class\n logic.particularAirplane(airplanes);\n\n break;\n\n case 5:\n //Calling the method from logic class\n logic.allPilots(pilots);\n\n break;\n\n case 6:\n //Calling the method from logic class\n logic.particularPiolot(pilots);\n\n break;\n\n case 7:\n //Calling the method from logic class\n logic.userCreateFlight(allFlights, airplanes);\n\n break;\n\n case 8:\n System.exit(0);\n\n default:\n System.out.println(\"--------------------------------------------\");\n\n System.out.println(\"Invalid option, please chose another option\");\n System.out.println(\"--------------------------------------------\");\n\n }\n\n }", "private String getPromptStrings(int choice) {\n //negative numbers correspond with the very first screen (not really anymore)\n //then the positive numbers go based on the choice the user makes\n switch (choice) {\n case 0: return \"\";\n //this is for the introductory screen\n case -1: return \"There is an enemy Ship! Looks like an Inter Planetary Pirate ship.\";\n case -2: return \"What would you like to do? Looks like is has a similar layout to our ship.\";\n case -3: return \"this is a dummy line for the status bar... health for you: 20, shields 1, enemy health: 20, shields 1\";\n case -4: return \"Now What?\";\n case -5: return \"Well that didn't work...\";\n case -6: return \"You are out of missiles.\";\n case -7: return \"All systems operational, and shields are up.\";\n case -8: return \"They are out of missiles...\";\n case -9: return \"Your Laser gun system is damaged, you can't shoot!\";\n case -10: return \"Your Missile system is damaged, you can't shoot!\";\n case -11: return \"Their Laser gun system is damaged, they can't shoot!\";\n case -12: return \"Their Missile system is damaged, they can't shoot!\";\n //this is for what you choose to do\n case 1: return \"You want to shot your laser gun at the enemy ship.\";\n case 2: return \"You want to shot a missile at the enemy ship.\";\n case 3: return \"You decided to wait and let your shields recharge.\";\n\n case 4: return \"Where do you want to shoot?\";\n case 5: return \"Where do you want to shoot?\";\n case 6: return \"\";\n\n case 45: return \"You damaged their Engine system!\";\n case 46: return \"You damaged their Shield system!\";\n case 47: return \"You damaged their Missile system!\";\n case 48: return \"You damaged their Laser Gun system!\";\n case 49: return \"You damaged their Piloting system!\";\n case 51: return \"You shoot at their Piloting system!\";\n case 52: return \"You shoot at their Laser gun system!\";\n case 53: return \"You shoot at their Missile system!\";\n case 54: return \"You shoot at their Shield system!\";\n case 55: return \"You shoot at their Engine system!\";\n\n case -45: return \"They damaged your Engine system!\";\n case -46: return \"They damaged your Shield system!\";\n case -47: return \"They damaged your Missile system!\";\n case -48: return \"They damaged your Laser Gun system!\";\n case -49: return \"They damaged your Piloting system!\";\n case -51: return \"They shoot at your Piloting system!\";\n case -52: return \"They shoot at your Laser gun system!\";\n case -53: return \"They shoot at your Missile system!\";\n case -54: return \"They shoot at your Shield system!\";\n case -55: return \"They shoot at your Engine system!\";\n\n case 80: return \"You decide to wait...\";\n case 81: return \"Your shields recharge and your systems are fixed.\";\n case -80: return \"They decide to wait..\";\n case -81: return \"Their shields recharge, and systems get repaired.\";\n\n case 97: return \"Their shield is down!\";\n case 98: return \"Their shield is up, your laser can't penetrate!\";\n case -98: return \"Your shields are up, their lasers can't penetrate!\";\n case 99: return \"It hit!\";\n case -99: return \"They landed the shot!\";\n case 100: return \"It missed!\";\n case -100: return \"They missed!\";\n\n case -101: return \"The laser hit!\";\n case -102: return \"The missile hit!\";\n case -103: return \"The laser missed.\";\n case -104: return \"The missile missed.\";\n }\n //if the input given is not one of the above\n return \"Error\";\n }", "private String printMainMenu() {\n System.out.println(\"Please make a selection:\");\n System.out.println(\"1: List all tools\");\n System.out.println(\"2: Search for tool by toolName\");\n System.out.println(\"3: Search for tool by toolID\");\n System.out.println(\"4: Check item quantity\");\n System.out.println(\"5: Decrease item quantity\");\n System.out.println(\"6: Make New Order/Append Today's Order\");\n System.out.println(\"7: View Current Orders\");\n System.out.println(\"8: View Supplier List\");\n System.out.println(\"9: Quit\");\n String selection = this.userInput.nextLine();\n return selection;\n }", "public void run() \n\t\t{\n\t\t\tboolean exitMenu = false;\n\t\t\tdo \n\t\t\t{\t\t\t\t\t\n\t\t\t\tmenu.display();\n\t\t\t\tint choice = menu.getUserSelection();\n\t\t\t\t// the above method call will return 0 if the user did not\n\t\t\t\t// entered a valid selection in the opportunities given...\n\t\t\t\t// Otherwise, it is valid...\n\t\t\t\tif (choice == 0)\n\t\t\t\t{\n\t\t\t\t\t// here the user can be informed that fail to enter a\n\t\t\t\t\t// valid input after all the opportunities given....\n\t\t\t\t\t// for the moment, just exit....\n\t\t\t\t\texitMenu = true;\n\t\t\t\t}\n\t\t\t\telse if (choice == 1) \n\t\t\t\t{\n\t\t\t\t\t// here goes your code to initiate action associated to\n\t\t\t\t\t// menu option 1....\n\t\t\t\t\tProjectUtils.operationsOnNumbers();\n\t\t\t\t}\n\t\t\t\telse if (choice == 2)\n\t\t\t\t{\n\t\t\t\t\tProjectUtils.operationsOnStrings();\n\t\t\t\t}\n\t\t\t\telse if (choice == 3) \n\t\t\t\t{\n\t\t\t\t\tProjectUtils.showStatistics();\n\t\t\t\t}\n\t\t\t\telse if (choice == 4)\n\t\t\t\t{\n\t\t\t\t\texitMenu = true; \n\t\t\t\t\tProjectUtils.println(\"Exiting now... \\nGoodbye!\");\n\t\t\t\t}\n\t\t\t} while (!exitMenu);\n\t\t}", "private void processChoice() {\n switch (this.choice) {\n case 0:\n System.out.println(\"Log Out\");\n break;\n case 1:\n System.out.println(\"Open New Account\");\n break;\n case 2:\n System.out.println(\"View All Accounts\");\n break;\n case 3:\n System.out.println(\"View Transactions\");\n break;\n case 4:\n System.out.println(\"Transfer Funds\");\n break;\n default:\n System.out.println(\"Error! Invalid menu option\");\n break;\n }\n }", "public String execute(){\n\t\tGameState g = GameState.instance();\n Dungeon d = g.getDungeon();\n NPC npc = d.getNPC(npcName);\n\t\tString advValue = \"\";\n\t\tString npcValue = \"\";\n\t\tif(npc.getType().equals(\"Friendly\")){\n if(g.getInventory().isEmpty() || npc.getInventory().isEmpty()){\n\t\t\t\treturn \"You cannot trade with \" + npc.getProperName() + \"!\";\n\t\t\t}\n\t\t\tif(!g.getInventory().isEmpty()){\n\t\t\t\tfor(Item i : g.getInventory()){\n\t\t\t\t\tadvValue += \"name: \" + i.getPrimaryName() + \" weight: \" + i.getWeight() + \" value: \" + i.getValue() + \"\\n\";\n\t\t\t\t}\n\t\t\tSystem.out.println(\"\\033[4mAdventurer's Inventory:\\033[0m\\n\" + advValue);\n\t\t\t\n\t\t\t}\n\t\t\tif(!npc.getInventory().isEmpty()){\n for(Item i : npc.getInventory()){\n npcValue += \"name: \" + i.getPrimaryName() + \" weight: \" + i.getWeight() + \" value: \" + i.getValue() + \"\\n\";\n }\n System.out.println(\"\\033[4mNPC's Inventory:\\033[0m\\n\" + npcValue);\n\n\t\t\t}\n\t\t\tSystem.out.println(\"If you would like to swap items, then type 'swap 'your item' 'npc item''\");\n\t\t\tSystem.out.println(\"If you don't want to swap items, then type 'stop'\");\n\t\t\tSystem.out.print(\"> \");\n\t\t\tString answer;\n\t\t\tString advItem = \"\";\n\t\t\tString npcItem = \"\";\n\t\t\tString[] answerSplit;\n\t\t\tanswer = s.nextLine();\n\t\t\twhile(!answer.equals(\"stop\")){\n\t\t\t\tif(!answer.startsWith(\"swap\")){\n\t\t\t\t\tSystem.out.println(\"incorrect format\");\n\t\t\t\t}\n\t\t\t\telse if(answer.split(\" \").length != 3){\n\t\t\t\t\tSystem.out.println(\"incorrect format\");\n\t\t\t\t}\n\t\t\t\telse if(answer.split(\" \").length == 3){\n\t\t\t\t\tanswerSplit = answer.split(\" \");\n\t\t\t\t\tif(d.getItem(answerSplit[1]) == null || !g.getInventory().contains(d.getItem(answerSplit[1]))){\n\t\t\t\t\t\tSystem.out.println(\"trade what?\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(d.getItem(answerSplit[2]) == null || !npc.getInventory().contains(d.getItem(answerSplit[2]))){\n System.out.println(\"trade for what?\");\n }\n\t\t\t\t\telse{\n\t\t\t\t\t\tif(((g.getWeight() - d.getItem(answerSplit[1]).getWeight())+ d.getItem(answerSplit[2]).getWeight()) > 40){\n\t\t\t\t\t\t\tSystem.out.println(\"this will put you over the weight limit\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tif((d.getItem(answerSplit[2]).getValue() - d.getItem(answerSplit[1]).getValue()) > 10){\n\t\t\t\t\t\t\t\tSystem.out.println(npc.getProperName() + \" doesn't want to trade this.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tg.getInventory().remove(d.getItem(answerSplit[1]));\n\t\t\t\t\t\t\t\tnpc.getInventory().add(d.getItem(answerSplit[1]));\n\t\t\t\t\t\t\t\tnpc.getInventory().remove(d.getItem(answerSplit[2]));\n\t\t\t\t\t\t\t\tg.getInventory().add(d.getItem(answerSplit[2]));\n\t\t\t\t\t\t\t\treturn \"you have swapped \" + answerSplit[1] + \" for \" + answerSplit[2];\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\tSystem.out.print(\"> \");\n\t\t\t\tanswer = s.nextLine();\n\t\t\t}\n\t\t}\n\t\treturn \"you have stopped trading\";\n\t\t\t\n\t}", "void timeSquare() {\n location = \"timeSquare\";\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\n////// TIME SQUARE //////\");\n System.out.println(\"\\nYou have entered Time Square!\");\n System.out.println(\"The billboards are lit, the sun glistens off the bright lights.\");\n\n System.out.println(\"Please enter [1] if you would like explore | Enter [2] if you would like to go back to base: \");\n int userSwings = input.nextInt();\n\n if (userSwings == 1) {\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\nYour spider-sense goes off!!\");\n System.out.println(\"You're in the center of time square. The place is covered in red smoke..\");\n System.out.println(\"There is something strange going on..\");\n\n System.out.println(\"\\nWould you like to explore further or go back?\");\n System.out.println(\"Enter [1] to explore | Enter [2] to go back\");\n int userChoice = input.nextInt();\n\n //Run story method in story class\n if (userChoice == 1) {\n s.story();\n } else if (userChoice == 2) {\n timeSquare();\n }\n } else if (userSwings == 2) {\n avengersTower();\n } else {\n System.out.println(\"Please enter either 1 or 2!!\");\n timeSquare();\n }\n }", "public static String round() {\n\t\t\n\t\t// Check if inputs are valid, provides a random input if not.\n\t\tif (PlayerBean.PLAYERONE < 1 || PlayerBean.PLAYERONE > 3) {\n\t\t\thandleInput(String.valueOf(PlayerBean.PLAYERONE), \"playerOne\");\n\t\t}\n\t\tif (PlayerBean.PLAYERTWO < 1 || PlayerBean.PLAYERTWO > 3) {\n\t\t\thandleInput(String.valueOf(PlayerBean.PLAYERTWO), \"playerTwo\");\n\t\t}\n\t\t\n\t\t// See if i is a tie or which player wins.\n\t\tif (PlayerBean.PLAYERONE == PlayerBean.PLAYERTWO) {\n\t\t\tScoreBean.addTie();\n\t\t\tresult = \"tie\";\n\t\t} else {\n\t\t\tcheckResult();\n\t\t}\n\t\t\n\t\t// return JSON response.\n\t\tString pattern\t= \"{\\\"Player1\\\":\\\"%s\\\",\\\"Player2\\\":\\\"%s\\\",\\\"Result\\\":\\\"%s\\\"}\";\n\t\treturn String.format(pattern, printChoice[PlayerBean.PLAYERONE-1], printChoice[PlayerBean.PLAYERTWO-1], result);\n\t\t\n\t}", "public void go() { \n\n Scanner scan = new Scanner(System.in); // reading keaboard input\n\n String input = \"\";\n int flightNumber = 0;\n \n \n \n System.out.println(\"\\n SY Catering-Management (Version 1.0 (C) 2020 by Group 26)\");\n System.out.println(\"1: Create a Flight\");\n System.out.println(\"2: Update a Flight\");\n System.out.println(\"3: Delete a Flight\");\n System.out.println(\"4: Show All flights\");\n System.out.println(\"0: Return to Main Menu\");\n\n System.out.print(\"Please enter your choice: \");\n input = scan.nextLine();\n\n try {\n int flightManagerNumber = Integer.parseInt(input);\n if (flightManagerNumber == 1) {\n createAFlight();\n System.exit(0);\n }\n if (flightManagerNumber == 2) {\n updateAFlight();\n System.exit(0);\n }\n if (flightManagerNumber == 3) {\n deleteAFlight();\n System.exit(0);\n }\n if (flightManagerNumber == 4) {\n showAllFlights();\n System.exit(0);\n }\n if (flightManagerNumber == 0) {\n mainMenu();\n\n } else {\n flightManager();\n\n }\n } catch (NumberFormatException e) {\n flightManager();\n System.exit(0);\n }\n }", "void financialDistrict() {\n location = \"financialDistrict\";\n\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\n////// FINANCIAL DISTRICT //////\");\n System.out.println(\"\\nYou have entered the Financial District!\");\n System.out.println(\"People are everywhere, traffic is busy. The buildings are high, great for swinging!\");\n\n //Ask user if they want to explore financial district or go back to base\n System.out.println(\"Please enter [1] if you would like explore | Enter [2] if you would like to go back to base: \");\n userSwings = input.nextInt();\n\n if (userSwings == 1) {\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\nYour spider-sense goes off!!\");\n System.out.println(\"You hear sirens, it sounds like a crime!\");\n\n System.out.println(\"Do you wish to help? Enter 'yes' or 'no\");\n String userChoice = input.nextLine();\n userChoice = input.nextLine();\n\n //If user wishes to fight crime, run a crime method within the crime class\n if (userChoice.equals(\"yes\")) {\n c.kidnap();\n avengersTower();\n } else if (userChoice.equals(\"no\")) {\n avengersTower();\n }\n } else if (userSwings == 2) {\n avengersTower();\n } else {\n System.out.println(\"Please enter either 1 or 2!!\");\n financialDistrict();\n }\n }", "private static void menuSelector(){\r\n\t\tint answer= getNumberAnswer();\r\n\t\tswitch (answer) {\r\n\t\tcase 0:\r\n\t\t\tshowShapeInfo(shapes[0]);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tcreateShape();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Its Perimeter is equal to: \" +calcShapePerimeter(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Its Area is equal to: \" +calcShapeArea(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"Provide integer to use for scaling shape: \");\r\n\t\t\tscaleShape(shapes[0], getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"That's not actually an option.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private void goRoom(Command command)//Method was given\n {\n if(!command.hasSecondWord())\n {\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where?\");\n return;\n }\n String direction = command.getSecondWord();\n if (direction.equals(\"back\"))\n {\n roomTemp = currentRoom;\n currentRoom = previousRoom;\n previousRoom = roomTemp;\n //roomTemp = null;\n System.out.println(currentRoom.longDescription());\n }\n else\n {\n // Try to leave current room.\n \n if (currentRoom.nextRoom(direction) == null)\n System.out.println(\"There is no door!\");\n else \n {\n Room nextRoom = currentRoom.nextRoom(direction);\n if (nextRoom.getLocked())\n {\n System.out.println(\"The door is locked!\");\n }\n else\n { \n previousRoom = currentRoom;\n currentRoom = nextRoom;\n System.out.println(currentRoom.longDescription());\n }\n }\n }\n }", "public void chooseFunction(){\n\t\t\n\t\tString commands=keyBoard.nextLine();\n\t\t\n\t\tswitch(interp.getFunctionName(commands)){\n\t\t\tcase \"addplayer\":\n\t\t\t\tplayerMgr.addPlayer(interp.getParameter(commands));\n\t\t\t\tbreak;\n\t\t\tcase \"removeplayer\":\n\t\t\t\tif(interp.getParameter(commands)==null){\n\t\t\t\t\tplayerMgr.removePlayer();\n\t\t\t\t}else{\n\t\t\t\t\tplayerMgr.removePlayer(interp.getParameter(commands));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"editplayer\":\n\t\t\t\tplayerMgr.editPlayer(interp.getParameter(commands));\n\t\t\t\tbreak;\n\t\t\tcase \"resetstats\":\n\t\t\t\tif(interp.getParameter(commands)==null){\n\t\t\t\t\tplayerMgr.resetStats();\n\t\t\t\t}else{\n\t\t\t\t\tplayerMgr.resetStats(interp.getParameter(commands));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"displayplayer\":\n\t\t\t\tif(interp.getParameter(commands)==null){\n\t\t\t\t\tplayerMgr.displayPlayer();\n\t\t\t\t}else{\n\t\t\t\t\tplayerMgr.displayPlayer(interp.getParameter(commands));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"rankings\":\n\t\t\t\tplayerMgr.displayRanking();\n\t\t\t\tbreak;\n\t\t\tcase \"playgame\":\n\t\t\t\tplayerMgr.assignPlayerToGM(interp.getParameter(commands),gameMgr);\n\t\t\t\tgameMgr.playGame();\n\t\t\t\tbreak;\n\t\t\tcase \"exit\":\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.exit(0);\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "static void consoleMenu() throws BidException {\r\n assert isRunning == true;\r\n Scanner menuScanner = new Scanner(System.in);\r\n System.out.println(\"\"\"\r\n \r\n Select a Menu Option below:\r\n (1) New Sedan\r\n (2) New Truck\r\n (3) Add Buyer\r\n (4) Add Bid\r\n (5) Display Fleet\r\n (6) Display Buyers\r\n (7) Delete Bid\r\n (8) Display Highest Bid\r\n (9) Display Lowest Bid\r\n (10) Sell Vehicle\r\n (11) Display Sold Vehicles\r\n (12) Exit\r\n \"\"\");\r\n System.out.print(\"Enter option number: \");\r\n int selection = menuScanner.nextInt();\r\n switch (selection) {\r\n case 1 -> showroom.createSedan();\r\n case 2 -> showroom.createTruck();\r\n case 3 -> showroom.createBuyer();\r\n case 4 -> showroom.createBid();\r\n case 5 -> showroom.displayFleet();\r\n case 6 -> showroom.displayBuyers();\r\n case 7 -> showroom.deleteBid();\r\n case 8 -> showroom.displayBid(\"Highest\");\r\n case 9 -> showroom.displayBid(\"Lowest\");\r\n case 10 -> showroom.sellVehicle();\r\n case 11 -> showroom.displaySoldVehicles();\r\n case 12 -> isRunning = false;\r\n default -> System.out.println(\"Invalid option, try again...\");\r\n }\r\n }", "public void employeeMenu(String activeId) {\n try {\n do {\n System.out.println(EOL + \" ---------------------------------------------------\");\n System.out.println(\"| Employee Screen - Type one of the options below: |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 1. Register a game |\");\n System.out.println(\"| 2. Remove a game |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 3. Register an album |\");\n System.out.println(\"| 4. Remove an album |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 5. Register a customer |\");\n System.out.println(\"| 6. Upgrade a customer |\");\n System.out.println(\"| 7. Remove a customer |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 8. Return rented item |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 9. View all games and albums (sorted) |\");\n System.out.println(\"| 10. View all customers |\");\n System.out.println(\"| 11. View all rentals and history |\");\n System.out.println(\"| 12. View total rent profit |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 13. Send message to customer |\");\n System.out.println(\"| 14. Send message to employee |\");\n System.out.println(\"| 15. Read my messages \" + messageController.checkNewMsg(activeId, \"Employee\") + \" |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 16. Return to Main Menu |\");\n System.out.println(\" ---------------------------------------------------\");\n String[] menuAcceptSet = new String[]{\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\"}; // Accepted responses for menu options\n String userInput = getInput.getMenuInput(\"menuOptionPrompt\", menuAcceptSet); // Calling Helper method\n switch (userInput.toLowerCase()) {\n case \"1\" -> dartController.addGame();\n case \"2\" -> dartController.deleteProduct(\"Game\");\n case \"3\" -> dartController.addAlbum();\n case \"4\" -> dartController.deleteProduct(\"Album\");\n case \"5\" -> userController.addCustomer();\n case \"6\" -> userController.upgradeCustomerView(null);\n case \"7\" -> userController.deleteCustomer();\n case \"8\" -> dartController.returnRental();\n case \"9\" -> productSortView(activeId);\n case \"10\" -> userController.displayCustomers(false);\n case \"11\" -> dartController.viewCurrentRentals();\n case \"12\" -> dartController.viewRentalTotalProfit();\n case \"13\" -> messageController.buildMessage(activeId, \"Employee\", \"Customer\", null, \"message\", null);\n case \"14\" -> messageController.buildMessage(activeId, \"Employee\", \"Employee\", null, \"message\", null);\n case \"15\" -> messageController.openInbox(activeId, \"Employee\");\n case \"16\" -> mainMenu();\n default -> printlnInterfaceLabels(\"menuOptionNoMatch\");\n }\n } while (session);\n } catch (Exception e) {\n printlnInterfaceLabels(\"errorExceptionMenu\", String.valueOf(e));\n }\n }", "public static String showMenu() {\n System.out.println(\"-------------------\");\n System.out.println(\"(1) - ADD A CARD\");\n System.out.println(\"(2) - REMOVE A CARD\");\n System.out.println(\"(3) - UPDATE A CARD\");\n System.out.println(\"(4) - SHOW THE COLLECTION\");\n System.out.println(\"(5) - SEARCH\");\n System.out.println(\"-------------------\");\n System.out.println(\"(C) - CHANGING PLAYER\");\n System.out.println(\"(A) - ADD TO DECK \");\n System.out.println(\"(X) - SHOW DECK\");\n System.out.println(\"-------------------\");\n\n return keyboardChoice.nextLine();\n }", "public void executeChoice(int choice) {\n\t\tSystem.out.println();\n\t\tswitch (choice) {\n\t\t\tcase View.NO_CHOICE:{\n\t\t\t\tbreak;}\n\n\t\t\tcase View.ADDCUS:{\n\t\t\t\tLong cusId = view.readIDWithPrompt(\"Enter Customer ID: \");\n\t\t\t\tString name = view.readLineWithPrompt(\"Enter Name: \");\n\t\t\t\tString address = view.readLineWithPrompt(\"Enter Address: \");\n\t\t\t\t\n\t\t\t\tatMyService.addCustomer(cusId, name, address);\n\t\t\t\tbreak;}\n\t\t\tcase View.ADDITEM:{\n\t\t\t\tLong itemId = view.readIDWithPrompt(\"Enter Item ID: \");\n\t\t\t\tString description = view.readLineWithPrompt(\"Enter Description: \");\n\t\t\t\tatMyService.addItem(itemId, description);\n\t\t\t\tbreak;}\n\t\t\tcase View.ADDSTOCK:{\n\t\t\t\tLong id = view.readIDWithPrompt(\"Enter Target Item ID: \");\n\t\t\t\tif (id == null) {\n\t\t\t\t\tSystem.out.println(\"Item Not Found.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint amt = view.readIntWithPrompt(\"Enter Amount(negative to subtract): \");\n\t\t\t\tatMyService.addStock(id, amt);\n\t\t\t\tbreak;}\n\t\t\tcase View.PLACEORD:{\n\t\t\t\tprovideOrderAccess();\n\t\t\t\tbreak;}\n\t\t\tcase View.DISPLAYORD:{\n\t\t\t\tLong cusId = view.readIDWithPrompt(\"Enter Customer ID: \");\n\t\t\t\tDate begin = view.readDateWithPrompt(\"Enter Begin Date(yyyy-MM-dd) for range: \");\n\t\t\t\tDate end = view.readDateWithPrompt(\"Enter End Date(yyyy-MM-dd) for range: \");\t\t\t\n\n\t\t\t\tArrayList<Order> orders = atMyService.displayOrders(cusId, begin, end);\n\t\t\t\t// check to see if orders is valid\n\t\t\t\tif (!(orders.isEmpty())) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"Customer Name: \" + atMyService.findCustomer(cusId).getName());\n\t\t\t\t\tSystem.out.println(\"Orders:\");\n\t\t\t\t\tfor(Order ord : orders) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"Order ID: \" + ord.getID());\n\t\t\t\t\t\tSystem.out.println(\" Date Placed: \" + ord.getDate());\n\t\t\t\t\t\tSystem.out.printf(\" Items Ordered(amt): \");\n\t\t\t\t\t\tLong[][] items = ord.getItems();\n\t\t\t\t\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\t\t\t\t\t// print item, amount ordered, and commas if necessary\n\t\t\t\t\t\t\tif (!(i == items.length - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.printf(items[i][0] + \"(\" + items[i][1] + \")\" + \", \");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.printf(items[i][0] + \"(\" + items[i][1] + \")\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"There are no orders for this customer.\");\n\t\t\t\t}\n\t\t\t\tbreak;}\n\t\t\tcase View.DISPLAYINV:{\n\t\t\t\tList<Item> items = atMyService.displayInventory();\n\t\t\t\tSystem.out.println(\"Current Inventory:\");\n\n\t\t\t\t//iterate through and display\n\t\t\t\tfor (Item item : items) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"Item ID: \" + item.getID());\n\t\t\t\t\tSystem.out.println(\" Description: \" + item.getDescription());\n\t\t\t\t\tSystem.out.println(\" Stock: \" + item.getStock());\n\t\t\t\t}\n\t\t\t\tbreak;}\n\t\t\tcase View.DISPLAYCUS:{\n\t\t\t\tList<Customer> customers = atMyService.displayCustomers();\n\t\t\t\tSystem.out.println(\"Customers:\");\n\n\t\t\t\t//iterate through and display\n\t\t\t\tfor (Customer customer : customers) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"Customer ID: \" + customer.getID());\n\t\t\t\t\tSystem.out.println(\" Name: \" + customer.getName());\n\t\t\t\t\tSystem.out.println(\" Address: \" + customer.getAddress());\n\t\t\t\t\tSystem.out.printf(\" Orders: \");\n\t\t\t\t\tLong[] orders = customer.getOrders();\n\t\t\t\t\tfor (int i = 0; i < orders.length; i++) {\n\t\t\t\t\t\tif (!(i == orders.length -1)) {\n\t\t\t\t\t\t\tSystem.out.printf(orders[i] + \", \");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.printf(\"%d\", orders[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;}\n\t\t\tcase View.EXIT:{\n\t\t\t\tSystem.out.println(\"Goodbye\");\n\t\t\t\tbreak;}\n\t\t}\n\t}", "private static void chooseMethod(int choice, Data data) {\n\t\taddToLog(\"user chose option #\" + choice);\n\t\tif (choice == 1) {\n\t\t\tmethodOne(data);\n\t\t} else if (choice == 2) {\n\t\t\tmethodTwo(data);\n\t\t} else if (choice == 3) {\n\t\t\tmethodThree(data);\n\t\t} else {\n\t\t\tSystem.out.println(\"Exiting...\");\n\t\t\taddToLog(\"program ended\");\n\t\t\ttry {\n\t\t\t\tlog.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Error closing the Log File\");\n\t\t\t\tSystem.err.println(\"Exiting...\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public abstract String chooseAnswer();", "public void customerMenu(String activeId) {\n try {\n do {\n System.out.println(EOL + \" ---------------------------------------------------\");\n System.out.println(\"| Customer Screen - Type one of the options below: |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 1. View games and albums |\");\n System.out.println(\"| - Sorted by Ratings (Best to worst) |\");\n System.out.println(\"| - Sorted by Album Year (Most recent) |\");\n System.out.println(\"| - Sorted by Title (A-Z) |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 2. Search game by Genre |\");\n System.out.println(\"| 3. Search album by Year |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 4. Rent a game |\");\n System.out.println(\"| 5. Rent an album |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 6. Send message to customer |\");\n System.out.println(\"| 7. Send message to employee |\");\n System.out.println(\"| 8. Read my messages \" + messageController.checkNewMsg(activeId, \"Customer\") + \" |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 9. Request membership upgrade |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 10. Return to Main Menu |\");\n System.out.println(\" ---------------------------------------------------\");\n\n String[] menuAcceptSet = new String[]{\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\"}; // Accepted responses for menu options\n String userInput = getInput.getMenuInput(\"menuOptionPrompt\", menuAcceptSet); // Calling Helper method\n switch (userInput.toLowerCase()) {\n case \"1\" -> productSortView(activeId);\n case \"2\" -> dartController.searchProduct(\"Game\");\n case \"3\" -> dartController.searchProduct(\"Album\");\n case \"4\" -> dartController.checkRental(activeId, \"Game\");\n case \"5\" -> dartController.checkRental(activeId, \"Album\");\n case \"6\" -> messageController.buildMessage(activeId, \"Customer\", \"Customer\", null, \"message\", null);\n case \"7\" -> messageController.buildMessage(activeId, \"Customer\", \"Employee\", null, \"message\", null);\n case \"8\" -> messageController.openInbox(activeId, \"Customer\");\n case \"9\" -> userController.customerUpgradeRequest(activeId);\n case \"10\" -> mainMenu();\n default -> printlnInterfaceLabels(\"menuOptionNoMatch\");\n }\n } while (session);\n } catch (Exception e) {\n printlnInterfaceLabels(\"errorExceptionMenu\", String.valueOf(e));\n }\n }", "public void showMenu(){\n\t\tSystem.out.println(\"******************************************************\");\n\t\tSystem.out.println(\"************Welcome to the holding program************\");\n\t\tSystem.out.println(\"******************************************************\");\n\t\tint option = -1;\n\t\twhile(option != 0){\n\t\t\tSystem.out.println(\"******************************************************\");\n\t\t\tSystem.out.println(\"***************Please, select an option***************\");\n\t\t\tSystem.out.println(\"******************************************************\");\n\t\t\tSystem.out.println(\"0. To exit of the program\");\n\t\t\tSystem.out.println(\"1. To add a public service company\");\n\t\t\tSystem.out.println(\"2. To add an university company\");\n\t\t\tSystem.out.println(\"3. To add a high school company\");\n\t\t\tSystem.out.println(\"4. To add a technological company\");\n\t\t\tSystem.out.println(\"5. To add a food company\");\n\t\t\tSystem.out.println(\"6. To add a medicine company\");\n\t\t\tSystem.out.println(\"7. Show the information of the holding\");\n\t\t\tSystem.out.println(\"8. Register a poll\");\n\t\t\tSystem.out.println(\"9. To add a employee\");\n\t\t\tSystem.out.println(\"10. Find the extension of a employee\");\n\t\t\tSystem.out.println(\"11. Find the mails of all the employees that are occupied a position\");\n\t\t\tSystem.out.println(\"12. To add a product\");\n\t\t\toption = reader.nextInt();\n\t\t\treader.nextLine();\n\t\t\tswitch(option){\n\t\t\t\tcase 0:\n\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\tpublicService();\n\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tuniversity();\n\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\thighSchool();\n\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\ttechnological();\n\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\tfood();\n\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\tmedicine();\n\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\tSystem.out.println(theHolding.wholeInformation());\n\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\tregisterPoll();\n\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\taddEmployee();\n\t\t\t\tbreak;\n\t\t\t\tcase 10:\n\t\t\t\textensionEmployee();\n\t\t\t\tbreak;\n\t\t\t\tcase 11:\n\t\t\t\tmailsPosition();\n\t\t\t\tbreak;\n\t\t\t\tcase 12:\n\t\t\t\taddProduct();\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Select a correct option\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "void centralPark() {\n location = \"centralPark\";\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\n////// CENTRAL PARK //////\");\n System.out.println(\"\\nYou have entered Central Park!\");\n System.out.println(\"The park is busy, birds are tweeting, families are having picnic's. The trees are low, swinging is not great here!\");\n\n System.out.println(\"Please enter [1] if you would like explore | Enter [2] if you would like to go back to base: \");\n userSwings = input.nextInt();\n\n if (userSwings == 1) {\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\nYour spider-sense goes off!!\");\n System.out.println(\"You hear sirens, it sounds like a crime!\");\n\n System.out.println(\"Do you wish to help? Enter 'yes' or 'no\");\n String userChoice = input.nextLine();\n userChoice = input.nextLine();\n\n //If user wishes to fight crime, run a crime method within the crime class\n if (userChoice.equals(\"yes\")) {\n c.burgulary();\n avengersTower();\n } else if (userChoice.equals(\"no\")) {\n avengersTower();\n }\n } else if (userSwings == 2) {\n avengersTower();\n } else {\n System.out.println(\"Please enter either 1 or 2!!\");\n centralPark();\n }\n }", "public String run() {\r\n // Check if ironCurtain is available to use and GreedyIronCurtain is available\r\n if (myself.ironCurtainAvailable && myself.energy >= 120 && checkGreedyIronCurtain()) {\r\n return buildIC();\r\n } else if (myself.isIronCurtainActive && canBuy(ATTACK)) {\r\n return buildTurret();\r\n } else {\r\n // Check if GreedyWinRate is available\r\n if (checkGreedyWinRate() && checkGreedyEnergy() && canBuy(ENERGY)) {\r\n return buildEnergy();\r\n }\r\n // Check if there is an attack..\r\n else if (myTotal.get(3) > 0 || myTotal.get(0) > 0) {\r\n // Check if GreedyDefense is available\r\n if (canBuy(DEFENSE) && checkGreedyDefense()) \r\n return defendRow();\r\n else if (canBuy(ATTACK)) return buildTurret();\r\n return doNothingCommand();\r\n } \r\n // Check if GreedyEnergy is available\r\n else if (checkGreedyEnergy() && canBuy(ENERGY)) {\r\n return buildEnergy();\r\n } \r\n // Just Attack if there is no greedy or do nothing if there is no energy\r\n else if (canBuy(ATTACK)) {\r\n return buildTurret();\r\n } else {\r\n return doNothingCommand();\r\n }\r\n }\r\n }", "private void changeGame() {\n switch (input) {\n case \"1\":\n new Lotto().generate();\n break;\n case \"2\":\n new SmallLotto().generate();\n break;\n case \"3\":\n System.out.println(\"Good bye\");\n System.exit(0);\n break;\n default:\n startGame();\n }\n continueGame();\n }", "public interface Dialog {\n\t/**\n\t * Wartet auf eingabe durch den Benutzer.\n\t * Liest Eingabe ein und returnd den Wert.\n\t * @return int Wert den Benutzer eingegeben hat\n\t * @param playerA ist es playerA\n\t * @param playerChoice moegliche auswahl des Spielers\n\t * @throws IOException Einlesen nicht moeglich\n\t */\n\tint getNumber(boolean playerA, String playerChoice) throws IOException;\n\t\n\t/**\n\t * Fordert den Spieler auf eine Eingabe zu machen. \n\t * Mit welcher Zahl der Benutzer die Runde spielen moechte.\n\t * \n\t * @param spieler Spieler a oder b\n\t * @param playerChoices string Auswahl die an den Spiler gesendet wird\n\t * @throws IOException Exception\n\t */\n\tvoid askForNumber(String spieler,String playerChoices) throws IOException;\n\t\n\t/**\n\t * Zeigt beiden Spielern an, dass die Runde zu ende ist.\n\t * Sendet Info an beide Spieler, mit der akutellen Rundenzahl und Punktestatus\n\t * @param roundsPlayed Welche runde wurde soeben bendet\n\t * @param playerAScore Punkte von Spieler A\n\t * @param playerBScore Punkte von Spieler B\n\t * @throws IOException Exception\n\t */\n\tvoid endOfRound(int roundsPlayed, int playerAScore, int playerBScore) throws IOException;\n\t\n\t/**\n\t * Zeigt beiden Spielern an, dass die Runde zu Ende ist.\n\t * Sende Nachricht wer gewonnen bzw. unentschieden gespielt wurde.\n\t * \n\t * @param winner Wer das Spiel gewonnen hat\n\t * @throws IOException \n\t */\n\tvoid printWinner(String winner) throws IOException;\n\t\n\t/**\n\t * Erstellt und startet runde.\n\t * @return int[] arry\n\t * @param playerAChoice was playerA eintippen darf\n\t * @param playerBChoice was playerB einttippen darf\n\t * @throws IOException weil halt.\n\t */\n\tdefault int[] runAll(String playerAChoice, String playerBChoice) throws IOException{\n\t\tfinal int[] result = new int[2];\n\t\tresult[0] = getNumber(true, playerAChoice);\n\t\tresult[1] = getNumber(false, playerBChoice);\n\t\treturn result;\n\t}\n}", "public void doAction()\n {\n if (app.getBuilderEditorPanel().getBoardViewPanel().getBoard().willPopulate())\n {\n app.getBuilderEditorPanel().getBoardViewPanel().getBoard().setPopulate(false);\n app.getBuilderEditorPanel().getBoardViewPanel().getBoard().resetBoard();\n app.getBuilderEditorPanel().getBoardViewPanel().refresh();\n }\n String levelType = app.getBuilderEditorPanel().getLevelTypeSelector().getSelectedItem().toString();\n int timeLimit = 0;\n if (!app.getBuilderEditorPanel().getTimeLimitSelector().getText().equals(\"\"))\n {\n timeLimit = Integer.parseInt(app.getBuilderEditorPanel().getTimeLimitSelector().getText());\n }\n int moveLimit = 0;\n if (!app.getBuilderEditorPanel().getMoveLimitSelector().getText().equals(\"\"))\n {\n moveLimit = Integer.parseInt(app.getBuilderEditorPanel().getMoveLimitSelector().getText());\n }\n boolean specialMoves = app.getBuilderEditorPanel().getSpecialMovesAllowedSelector().isSelected();\n int threeStar = Integer.parseInt(app.getBuilderEditorPanel().getThreeStarSelector().getText());\n int twoStar = Integer.parseInt(app.getBuilderEditorPanel().getTwoStarSelector().getText());\n int freq1 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"1\");\n int freq2 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"2\");\n int freq3 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"3\");\n int freq4 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"4\");\n int freq5 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"5\");\n int freq6 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"6\");\n int freqx1 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"x1\");\n int freqx2 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"x2\");\n int freqx3 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"x3\");\n SquareFactory sf1 = new SquareFactory(freq1, freq2, freq3, freq4, freq5, freq6, freqx1, freqx2, freqx3);\n if (app.getBuilderEditorPanel().getCurrentLevel() != null)\n {\n if (levelType.equals(app.getBuilderEditorPanel().getCurrentLevel().getType()))\n {\n Board board = app.getBuilderEditorPanel().getBoardViewPanel().getBoard();\n board.setSquareFactory(new SquareFactory(freq1, freq2, freq3, freq4, freq5,\n freq6, freqx1, freqx2, freqx3));\n String bd = board.getBoardData();\n app.getBuilderEditorPanel().getCurrentLevel().setBoardData(bd);\n app.getBuilderEditorPanel().getCurrentLevel().saveLevel();\n } else {\n Board board = app.getBuilderEditorPanel().getBoardViewPanel().getBoard();\n board.setSquareFactory(new SquareFactory(freq1, freq2, freq3, freq4, freq5,\n freq6, freqx1, freqx2, freqx3));\n String bd = board.getBoardData();\n Level oldLevel = app.getBuilderEditorPanel().getCurrentLevel();\n int idx = game.getLevels().indexOf(oldLevel);\n if (levelType.equals(\"Release\"))\n {\n ReleaseLevel nl = new ReleaseLevel(oldLevel.getBasicLevel());\n game.replaceLevel(nl, idx);\n } else if (levelType.equals(\"Lightning\"))\n {\n LightningLevel nl = new LightningLevel(oldLevel.getBasicLevel());\n nl.setTimeLimit(timeLimit);\n game.replaceLevel(nl, idx);\n } else if (levelType.equals(\"Elimination\"))\n {\n EliminationLevel nl = new EliminationLevel(oldLevel.getBasicLevel());\n game.replaceLevel(nl, idx);\n } else if (levelType.equals(\"Puzzle\"))\n {\n PuzzleLevel nl = new PuzzleLevel(oldLevel.getBasicLevel());\n nl.setMoveLimit(moveLimit);\n game.replaceLevel(nl, idx);\n }\n app.getBuilderEditorPanel().setCurrentLevel(game.getLevels().get(idx));\n app.getBuilderEditorPanel().getCurrentLevel().setBoardData(bd);\n app.getBuilderEditorPanel().getCurrentLevel().saveLevel();\n }\n } else\n {\n Level l = null;\n File outFile = null;\n try\n {\n outFile = new File(getClass().getClassLoader().getResource(\"levels\").toURI().getPath(),\n \"level\" + (game.getLevels().size() + 1) + \".txt\");\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n\n SquareFactory sf = new SquareFactory(freq1, freq2, freq3, freq4, freq5, freq6, freqx1, freqx2, freqx3);\n app.getBuilderEditorPanel().getBoardViewPanel().getBoard().setSquareFactory(sf);\n\n if (levelType.equals(\"Puzzle\"))\n {\n l = new PuzzleLevel(\"NewLevel\", game.getLevels().size() + 1, 0, twoStar,\n threeStar, \"\", true, moveLimit, specialMoves, outFile);\n } else if (levelType.equals(\"Elimination\"))\n {\n l = new EliminationLevel(\"NewLevel\", game.getLevels().size() + 1, 0, twoStar,\n threeStar, \"\", true, specialMoves, outFile);\n } else if (levelType.equals(\"Lightning\"))\n {\n l = new LightningLevel(\"NewLevel\", game.getLevels().size() + 1, 0, twoStar,\n threeStar, \"\", true, timeLimit, specialMoves, outFile);\n } else if (levelType.equals(\"Release\"))\n {\n l = new ReleaseLevel(\"NewLevel\", game.getLevels().size() + 1, 0, twoStar,\n threeStar, \"\", true, specialMoves, outFile);\n }\n app.getBuilderEditorPanel().getBoardViewPanel().getBoard().setLevel(l);\n assert l != null;\n l.setBoardData(app.getBuilderEditorPanel().getBoardViewPanel().getBoard().getBoardData());\n l.saveLevel();\n }\n game.reloadFromDisk();\n app.getBuilderLevelSelectPanel().updateLevelList(game);\n }", "public void method(int choice) {\n switch(choice) {\n case 1:\n method1();\n break;\n case 2:\n method2();\n break;\n default:\n System.out.println(\"Choice not available. Default choice:\");\n method1();\n\n }\n }", "void dailyLife() {\n\t\tString action = inputPrompt.dailyOptions(dailyTime).toLowerCase();\r\n\t\tswitch(action) {\r\n\t\tcase \"exercise\":\tthis.exercise();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\tcase \"study\":\t\tthis.study();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\tcase \"rocket\":\t\tthis.buildRocket();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\tcase \"eat\":\t\t\tthis.eat();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\tcase \"meds\":\t\tthis.getEnergised();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\tcase \"fun\":\t\t\tthis.haveFun();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\tdefault:\t\t\tdailyLife();\r\n\t\t}\t\r\n\t}", "public static void commissionerTools(League theLeague, Scanner keyboard) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"---Commissioner Tools---\");\r\n\t\tSystem.out.println(\"1 - Edit Scores\");\r\n\t\tSystem.out.println(\"2 - Edit Standings\");\r\n\t\tSystem.out.println(\"3 - Review Accepted Trade\");\r\n\t\tSystem.out.println(\"0 - Return to Team Menu\");\r\n\r\n\t\tswitch (Input.validInt(0, 3, keyboard)) {\r\n\t\tcase 1:\r\n\t\t\teditScores(theLeague, keyboard);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\teditStandings(theLeague, keyboard);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tif (theLeague.getPendingTrade().isEmpty()) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tSystem.out.println(\"--There are no accepted trades pending--\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treviewAcceptedTrade(theLeague, keyboard);\r\n\t\t\tbreak;\r\n\t\tcase 0:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void run()\n {\n this.currentArea = map[xPosition][yPosition];\n this.choices = currentArea.getAreaChoices();\n this.enemy = currentArea.getEnemy();\n this.combat = new Combat(this);\n \n Choice option = PlayerInputHelper.getOption(currentArea.getOpeningLine(), choices);\n choice = option;\n \n try\n {\n Method action = option.getAction();\n if(option.isMovement())\n {\n currentArea = (IArea)action.invoke(mover,option.getDirection());\n run();\n }\n \n else if (!option.isMovement())\n {\n try\n {\n if(option.getInvokeOn().equals(\"c\"))\n {\n action.invoke(combat);\n }\n else\n {\n action.invoke(this);\n }\n }\n catch(NullPointerException e)\n {\n action.invoke(this);\n }\n \n }\n \n else\n {\n System.out.println(option.toString());\n }\n }\n \n catch(Exception e)\n {\n e.printStackTrace();\n }\n \n \n }", "private void ex03(){\n final int building;\n building = 99;\n\n //The number of floors of a tall building under construction\n //Data type: integer\n int buc; // buc stands for building under construction\n buc = 20;\n\n //A distance between two buildings\n //Data type: int\n int distance;\n distance = 3984;\n\n //The state of a door lock\n //Data type: boolean\n boolean locked = false;\n boolean unlocked = true;\n\n\n //Your telephone number\n //Data type: string\n String number;\n number = \"12345678\";\n\n //The percentage of students enrolled in FIT1051 this semester to all other units\n //Data type:double + char\n double percentage;\n percentage = 50.0;\n char per='%';\n\n //Your weight in kilos\n //Data type: double\n double weight;\n weight = 44.0;\n\n //The weight of a litre of water in kilos\n //Data type: double\n double kilo;\n kilo = 0.001;\n\n //The state of coin tossing\n //Data type: boolean\n boolean head = true;\n boolean tail = false;\n\n //The state of dice rolling\n //Data type: integer\n int roll1=1;\n int roll2=2;\n int roll3=3;\n int roll4=4;\n int roll5=5;\n int roll6=6;\n\n //Whether the stock market was \"bear\" or \"bull\" or flat today\n //Data type: boolean\n boolean bear = false;\n boolean bull = true;\n boolean flat = Boolean.parseBoolean(null);\n\n myWindow.clearOut();\n myWindow.writeOutLine(\"The number of floors of a tall building: \"+building+\" floors\");\n myWindow.writeOutLine(\"The number of floors of a tall building under construction: \" +buc+\" floors\");\n myWindow.writeOutLine(\"The distance between two buildings: \"+distance+\" meters\");\n myWindow.writeOutLine(\"The door is unlocked: \"+locked);\n myWindow.writeOutLine(\"Your telephone number: \"+number);\n myWindow.writeOutLine(\"The percentage of students enrolled in FIT1051 this semester to all other units: \"+percentage+per);\n myWindow.writeOutLine(\"Your weight in kilos: \"+weight+\" kg\");\n myWindow.writeOutLine(\"The weight of 1 litre of water in kilos: \"+kilo+\" kL\");\n myWindow.writeOutLine(\"The state of coin tossing is head: \"+head);\n myWindow.writeOutLine(\"The state of dice rolling: \"+roll2);\n myWindow.writeOutLine(\"The stock market was bull today: \"+bull);\n //YOUR CODE ABOVE HERE\n }", "public void getAccess() {\n\t\t// Display menu options\n\t\tSystem.out.println(\n\t\t\t\"\\nWelcome to PittTours are you a:\" +\n\t\t\t\"\\n1: Administrator\" +\n\t\t\t\"\\n2: Customer\" +\n\t\t\t\"\\n3: Neither, Quit\\n\");\n\n\t\t// Get user input\n\t\tSystem.out.print(\"Enter menu choice: \");\n\t\tinputString = scan.nextLine();\n\t\t// Convert input to integer, if not convertable, set to 0 (invalid)\n\t\ttry { choice = Integer.parseInt(inputString);\n\t\t} catch(NumberFormatException e) {choice = 0;}\n\n\t\t// Handle user choices\n\t\tif(choice == 1)\n\t\t\tdisplayAdmInterface();\n\t\telse if(choice == 2)\n\t\t\tdisplayCusInterface();\n\t\telse if(choice == 3) {} // Simply drops back to main to properly exit\n\t\telse { // If invalid choice, recall method\n\t\t\tSystem.out.println(\"INVALID CHOICE\");\n\t\t\tgetAccess();\n\t\t}\n\t}", "public static void getBattleChoice() {\n \t\tMainGame.display.disp(\"What do you want to do?:\");\r\n \t\tMainGame.display.Enable(MainGame.display.attack, MainGame.display.defend, MainGame.display.heal);\r\n \t}", "public void callHelp() {\n System.out.println(\"Enter emergency number: \");\n String emergencyNeed = input.nextLine();\n this.emergencyNeed = emergencyNeed;\n if (emergencyNeed.equals(police)) {\n System.out.println(\"Calling for police!\");\n }\n else if (emergencyNeed.equals(fire)) {\n System.out.println(\"Calling for fire department!\");\n }\n else if (emergencyNeed.equals(emt)) {\n System.out.println(\"Calling for emt!\");\n }\n else {\n System.out.println(\"Invalid emergency number.\");\n }\n }", "public int performAction()\n {\n if(stunCountdown > 0) \n {\n ERROR_LOG.writeToLog(\"The saboteur is not supposed to call performAction() while stuunned. Remaining time stunned: \" + stunCountdown + '.');\n \n chasingPlayer = false;\n return stunCountdown;\n }\n \n if(chasingPlayer)\n {\n setRoom(Game.getInstance().getPlayer().getCurrentRoom());\n }\n else\n {\n if(((getCurrentRoom().isOperating() && getCurrentRoom() instanceof ItemRoom) || Game.getInstance().getGameInfo().getHackedExit() == null) && Math.random() < chanceOfSabotage)\n {\n if(!getCurrentRoom().isOperating() || !(getCurrentRoom() instanceof ItemRoom))\n {\n int sabotageExit = (int) Math.floor(Math.random() * getCurrentRoom().getCollectionOfExits().size());\n getCurrentRoom().getCollectionOfExits().get(sabotageExit).setOperating(false);\n Game.getInstance().getGameInfo().setHackedExit(getCurrentRoom().getCollectionOfExits().get(sabotageExit));\n ACTION_LOG.writeToLog(\"Sabotaged the exit between \\\"the \" + getCurrentRoom().getName() + \"\\\" and \\\"the \" + getCurrentRoom().getExit(getCurrentRoom().getCollectionOfExits().get(sabotageExit)).getName() + \"\\\".\");\n }\n else if(Game.getInstance().getGameInfo().getHackedExit() != null)\n {\n getCurrentRoom().setOperating(false);\n ACTION_LOG.writeToLog(\"Sabotaged the room: \\\"\" + getCurrentRoom().getName() + \"\\\".\");\n }\n else if(Math.random() < CHANCE_OF_DOOR_SABOTAGE)\n {\n int sabotageExit = (int) Math.floor(Math.random() * getCurrentRoom().getCollectionOfExits().size());\n getCurrentRoom().getCollectionOfExits().get(sabotageExit).setOperating(false);\n Game.getInstance().getGameInfo().setHackedExit(getCurrentRoom().getCollectionOfExits().get(sabotageExit));\n ACTION_LOG.writeToLog(\"Sabotaged the exit between \\\"the \" + getCurrentRoom().getName() + \"\\\" and \\\"the \" + getCurrentRoom().getExit(getCurrentRoom().getCollectionOfExits().get(sabotageExit)).getName() + \"\\\".\");\n }\n else\n {\n getCurrentRoom().setOperating(false);\n ACTION_LOG.writeToLog(\"Sabotaged the room: \\\"\" + getCurrentRoom().getName() + \"\\\".\");\n }\n \n chanceOfSabotage = DEFAULT_CHANCE_OF_SABOTAGE;\n }\n else\n {\n List<Exit> neighbors = getCurrentRoom().getCollectionOfExits();\n \n for(int i = neighbors.size() - 1; i >= 0; i--)\n if(getCurrentRoom().getExit(neighbors.get(i)).isControlRoom() || !neighbors.get(i).isOperating())\n neighbors.remove(i);\n \n if (neighbors.isEmpty())\n {\n ACTION_LOG.writeToLog(\"Saboteur tried to move, but all exits where removed. Current room: \\\"\" + getCurrentRoom().getName() + \"\\\".\");\n return -1;\n }\n \n int exitIndex = (int) (Math.floor(Math.random() * neighbors.size()));\n \n setRoom(getCurrentRoom().getExit(neighbors.get(exitIndex)));\n \n chanceOfSabotage += CHANCE_OF_SABOTAGE_GROWTH;\n \n //ACTION_LOG.writeToLog(\"Moved to \\\"the \" + getCurrentRoom().getName() + \"\\\".\");\n \n checkChasingPlayer();\n }\n }\n \n return(5 + (int) Math.floor(Math.random() * 6));\n }", "public String doWhatWithFlights();", "public String dialogTree(Player player,Item keyForestW,Item keyPick, Item keyJail,Item keyForestS,NpcDialog npcdial)\r\n\t{\r\n\t\tString selecteddialogline = \"\";\r\n\t\tif (npcdial!=null){ //if there is a npc dialog\r\n\t\t\tif (npcdial.getJobnpc()== job.prisoner){ //if the npc is a prisoner\r\n\t\t\t\tselecteddialogline = \"I hide a key in the wall ... but i'm too weak to escape\" ;\r\n\t\t\t}\r\n\t\t\telse if (npcdial.getJobnpc()== job.citizen){ //if the npc is a citizen\r\n\r\n\t\t\t\tif (player.searchInventory(keyJail)) { //if the player is escaped\r\n\t\t\t\t\tselecteddialogline = \"Guards !!!! seize that rogue !!!\";\r\n\t\t\t\t}\r\n\t\t\t\telse if (!player.searchInventory(keyJail)) { //if the player is not escaped\r\n\t\t\t\t\tselecteddialogline = \"We don't take kindly your types in here!\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\telse if (npcdial.getJobnpc()== job.shaman) { //if the npc is the chaman\r\n\r\n\t\t\tif (player.searchInventory(keyPick)) {//if the player has the pick key\r\n\t\t\t\tselecteddialogline = \"If you find all the ship parts it's time for you to leave\";\r\n\t\t\t}\r\n\t\t\telse if (player.searchInventory(keyJail)) {//if the player has the jail key\r\n\t\t\t\tselecteddialogline = \"In the mountain, you will have to climb to the peak to find the last part of the ship\";\r\n\t\t\t}\r\n\t\t\telse if (player.searchInventory(keyForestW)) {//if the player has the forest west key\r\n\t\t\t\tselecteddialogline = \"You must go to the city and find the next part of your starship\";\r\n\t\t\t}\r\n\t\t\telse if (player.searchInventory(keyForestS)) {//if the player has the forest west key\r\n\t\t\t\tselecteddialogline = \"You must build a bridge using the nature force if you want to proceed to the city\";\r\n\t\t\t}\r\n\t\t\telse if (!player.searchInventory(keyForestS)) {//if the player has the forest south key\r\n\t\t\t\tselecteddialogline = \"Hello stranger that fell from the stars, first find the machete to clear your path\";\r\n\t\t\t}\r\n\t\t\telse { selecteddialogline =\"??? ??? ??? You just can't understand this alien language ... if only you had a traductor\";}\r\n\r\n\t\t\t}\r\n\t\t} return selecteddialogline;\r\n\t\r\n\t}", "public boolean whatNow (String action, player friday, player you){ // Method which will allow the ia to choose his action\n\t\tString testAction = \"Tank\"; // Create a String we will use a lot to test other string\n\t\tint actionIa; // If the ia is a Tank, forbid him to use his special attack. The purpose is to prevent him from useless turns\n\t\tif (friday.getName().equals(testAction)){ // If the name of the ia's class is Tank\n\t\t\t actionIa = (int)(Math.random() * 2); // His random will be between 0 or 1\n\t\t}\n\t\t\n\t\telse {\n\t\t\t actionIa = (int)(Math.random() * 3); // Else, his random will be between 0, 1 and 2\n\t\t}\n\t\t\n\t\ttestAction = \"attack\"; // Will be use to test if you attacked\n\t\t\n\t\t\n\t\tswitch (actionIa){ // Test ia's action\n\t\t\tcase 0: // 0, the enemy attack\n\t\t\t\tfriday.setSprite(\"attack\");\n\t\t\t\tSystem.out.println(\"The enemy attack\\n\"); // Warns the user\n\t\t\t\ttestAction = \"block\"; // Will be use to test if you block\n\t\t\t\tif (action.equals(testAction)){ // If you block\n\t\t\t\t\tSystem.out.println(\"You blocked the enemy's attack.\"); // Warns the user\n\t\t\t\t\tyou.setHp(you.getHp() - you.getDp()); // You loose as much hp as your dp\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tyou.setHp(you.getHp() - friday.getAp()); // Else, you loose as much hp as your enemy's ap\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 1: // 1, the enemy block\n\t\t\t\tfriday.setSprite(\"block\");\n\t\t\t\tif (action.equals(testAction)){ // If you attacked\n\t\t\t\t\tfriday.setHp(friday.getHp() - friday.getDp()); // The enemy loose as much hp as his dp\n\t\t\t\t\taction = \"\"; // Prevent you from attack a second time\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The enemy blocked your attack\\n\"); // Warns the user\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2: // 2, the enemy use his special power if he isn't a tank\n\t\t\t\tfriday.setSprite(\"special\");\n\t\t\t\tSystem.out.println(\"The enemy uses his special power.\"); // Warns the user\n\t\t\t\tfriday.special(); // Execute ia's special attack\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\t\n\t\ttestAction = \"attack\"; // Reset testAction\n\t\t\n\t\tif (action.equals(testAction)){ // If you attacked\n\t\t\tfriday.setHp(friday.getHp() - you.getAp()); // The enemy loose as much hp as your ap\n\t\t} // Nota Bene : if the enemy blocked your attack, this won't be executed because 'action = \"\";'\n\t\t\n\t\tSystem.out.println(\"You have \" + you.getHp() + \" HP left.\"); // Warns the user\n\t\tSystem.out.println(\"The ennemy have \" + friday.getHp() + \" HP left.\\n\"); // Warns the user\n\t\t\n\t\tif(you.getHp() <= 0){ // If you or the ia has no hp left, warn the system that the fight is over by setting 'end' on true and tell who died\n\t\t\tend = true;\n\t\t\tSystem.out.println(\"You died!\");\n\t\t\tyou.setSprite(\"dead\");\n\t\t}\n\t\t\n\t\telse if(friday.getHp() <= 0){\n\t\t\tend = true;\n\t\t\tSystem.out.println(\"You killed the ennemy!\");\n\t\t\tfriday.setSprite(\"dead\");\n\t\t}\n\t\t\n\t\telse { // Else, it just asks you what you want to do\n\t\t\tSystem.out.println(\"What do you want to do, attack, block or use your special power ?\"); // Asks what you want to do\n\t\t}\n\t\treturn end;\n\t}", "public void PrintMenu() throws IOException {\r\n\t\t//loop the menu until the user chooses to quit\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.println(\"Welcome to the EnigmaMachine command interface!\");\r\n\t\t\tSystem.out.println(\"Enter 1 to add the plugs\");\r\n\t\t\tSystem.out.println(\"Enter 2 to add the rotors\");\r\n\t\t\tSystem.out.println(\"Enter 3 to add the reflector\");\r\n\t\t\tSystem.out.println(\"Enter 4 to enter the message\");\r\n\t\t\tSystem.out.println(\"Enter 5 to quit the menu and start the machine\");\r\n\t\t\t\r\n\t\t\tint option = this.readIntegerFromCmd();\r\n\t\t\t//jump to different method according to the input of the user\r\n\t\t\tif (option == 1) {\r\n\t\t\t\tthis.addPlug();\r\n\t\t\t}else if (option == 2) {\r\n\t\t\t\tthis.addRotors();\r\n\t\t\t}else if (option == 3) {\r\n\t\t\t\tthis.addReflector();\r\n\t\t\t}else if (option == 4) {\r\n\t\t\t\tthis.addMessage();\r\n\t\t\t}else if (option == 5) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void managerMenu() {\n try {\n do {\n System.out.println(EOL + \" ---------------------------------------------------\");\n System.out.println(\"| Manager Screen - Type one of the options below: |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 1. Add an employee |\");\n System.out.println(\"| 2. Remove an employee |\");\n System.out.println(\"| 3. View all employees |\");\n System.out.println(\"| 4. View employees' total salary cost |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 5. View total rent profit |\");\n System.out.println(\"| 6. View most profitable item |\");\n System.out.println(\"| 7. View most frequent rented item |\");\n System.out.println(\"| 8. View best customer |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 9. Load user, product data file |\");\n System.out.println(\"| 10. Load rental history file |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 11. Save DART data file |\");\n System.out.println(\"| 12. Save Rental history file |\");\n System.out.println(\"|---------------------------------------------------|\");\n System.out.println(\"| 13. Return to Main Menu |\");\n System.out.println(\" ---------------------------------------------------\");\n String[] menuAcceptSet = new String[]{\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\"}; // Accepted responses for menu options\n String userInput = getInput.getMenuInput(\"menuOptionPrompt\", menuAcceptSet); // Calling Helper method\n\n DartController dart = new DartController();\n\n switch (userInput.toLowerCase()) {\n case \"1\" -> userController.addEmployee();\n case \"2\" -> userController.deleteEmployee();\n case \"3\" -> userController.displayEmployees(false);\n case \"4\" -> userController.calculateSalary();\n case \"5\" -> dart.viewRentalTotalProfit();\n case \"6\" -> dart.viewRentalProfitable();\n case \"7\" -> dart.viewRentalFrequency();\n case \"8\" -> dart.viewRentalBestCustomer();\n case \"9\" -> dart.loadProductData();\n case \"10\" -> dart.loadRentalData();\n case \"11\" -> dart.saveProductData();\n case \"12\" -> dart.saveRentalData();\n case \"13\" -> mainMenu();\n\n default -> printlnInterfaceLabels(\"menuOptionNoMatch\");\n }\n } while (session);\n } catch (Exception e) {\n printlnInterfaceLabels(\"errorExceptionMainMenu\", String.valueOf(e));\n }\n }", "public void chooseAction(Match match, String nickname) {\n try {\n int choice;\n Boolean ok = true;\n System.out.println(\"Digita: \\n- 1 se vuoi posizionare un dado sul tuo schema; \\n- 2 se vuoi utilizzare una carta utensile; \\n- 3 se vuoi visualizzare le informazioni degli altri giocatori; \\n- 4 se vuoi terminare il tuo turno; \\n- 5 se vuoi uscire dalla partita.\");\n\n do {\n choice = scanner.nextInt();\n\n switch (choice) {\n\n case 5: {\n System.out.println(\"Sei sicuro che vuoi uscire dalla partita? Digita 0 se sei sicuro.\");\n choice = scanner.nextInt();\n if (choice==0) {\n System.out.println(\"Uscendo dalla partita...\");\n controller.stopPlayer();\n }\n break;\n }\n\n case 1: {\n handleUseDice(match, false);\n break;\n }\n\n case 2: {\n handleUseToolCard(match); //TODO: metodi per le carte utensili\n break;\n }\n\n case 3: {\n printOtherPlayersInfo(match, nickname);\n break;\n }\n\n case 4: {\n endTurn();\n break;\n }\n\n default: {\n ok = false;\n System.out.println(\"Scelta non valida\");\n break;\n }\n }\n } while (!ok);\n } catch (NullPointerException e) {\n } catch (NumberFormatException e) {\n System.out.println(\"Digita un carattere valido\");\n } catch (IndexOutOfBoundsException e) {\n } catch (InputMismatchException e) {\n }\n }", "private void gameMenu(String name) {\r\n System.out.println(\"Hello \" + name + \". Please choose a game, or -1 to quit: \");\r\n System.out.println(\"1: Lottery\");\r\n System.out.println(\"2: Coin flip\");\r\n System.out.println(\"3: Rock Paper Scissors\");\r\n }", "@Override public void doAction(int option)\r\n{\r\n switch(option)\r\n {\r\n case 1: //view the map\r\n viewMap();\r\n break;\r\n case 2: //view/print a list\r\n viewList();\r\n break;\r\n case 3: // Move to a new location\r\n moveToNewLocation();\r\n break;\r\n case 4: // Manage the crops\r\n manageCrops();\r\n break;\r\n case 5: // Return to Main Menu\r\n System.out.println(\"You will return to the Main Menu now\");\r\n \r\n }\r\n}", "@Override\n public void interactWith(Door door) {\n if(door instanceof CastleDoor){ //CASTLE DOOR\n if(door.isOpen()){\n setIsPassingADoor(door);\n ((CastleDoor) door).close();\n } else {\n if(possess(ARPGItem.CASTLEKEY)){\n ((CastleDoor) door).open();\n }\n }\n } else { //SIMPLE DOOR\n setIsPassingADoor(door);\n }\n }", "public boolean mainMenu() {\n System.out.println(\"Welcome to the Card Game game\");\r\n System.out.println(\"You have \" + scoreboard.getTokens() + \" tokens\");\r\n System.out.println(\"What do you want to do?\");\r\n System.out.println(\"1. Play a game\");\r\n System.out.println(\"2. Buy Tokens\");\r\n System.out.println(\"3. View Scores\");\r\n System.out.println(\"0. Quit\");\r\n String input = sc.nextLine();\r\n\r\n //Calls different methods depending on user input\r\n if (input.equals(\"1\") || input.equalsIgnoreCase(\"p\") || input.toLowerCase().contains(\"play\") || input.toLowerCase().contains(\"game\")) {\r\n if (scoreboard.getTokens() == 0) {\r\n System.out.println(\"You don't have any tokens!\");\r\n }\r\n else {\r\n gameSelection();\r\n }\r\n }\r\n \r\n else if ((input.equals(\"2\") || input.equalsIgnoreCase(\"b\") || input.equalsIgnoreCase(\"t\") || input.toLowerCase().contains(\"buy\") || input.toLowerCase().contains(\"token\"))) {\r\n scoreboard.addTokens(buyTokens());\r\n }\r\n \r\n else if (input.equals(\"3\") || input.equalsIgnoreCase(\"v\") || input.equalsIgnoreCase(\"s\") || input.toLowerCase().contains(\"view\") || input.toLowerCase().contains(\"scores\")) {\r\n System.out.println(scoreboard.showAllScores());\r\n }\r\n else if (input.equals(\"0\") || input.equalsIgnoreCase(\"q\") || input.equalsIgnoreCase(\"quit\")) {\r\n System.out.println(\"You ended up with \" + scoreboard.getTokens() + \" tokens (\" + (scoreboard.getTokenValue()) + \"kr)\");\r\n System.out.println(\"We hope to see you again!\");\r\n return false;\r\n }\r\n else {\r\n System.out.println(\"Invalid input\\n\");\r\n }\r\n return true;\r\n }", "public void playRollingADie() {\n\t\tSystem.out.print(\"The pirates ask you to play 'Rolling a Die'. You have to predict what is the outcome. \" + \"\\n\" + \"You can choose between: \");\n\t\tArrayList<String> gameElements2 = new ArrayList<String>(3);\n\t\tgameElements2.add(\"Even\");\n\t\tgameElements2.add(\"Odd\");\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"(1) Even\");\n\t\t\tSystem.out.println(\"(2) Odd\");\n\t\t\ttry { \n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction <= 2 && selectedAction > 0) {\n\t\t\t\tint decision = game.determineWinnningRollingADie();\n\t\t\t\tint piratesThrows = game.getWhatPiratesThrowRD(decision, gameElements2.get(selectedAction-1));\n\t\t\t\tSystem.out.println(\"The die is showing \" + piratesThrows);\n\t\t\t\tif (decision == 0) {\n\t\t\t\t\tstate = true;\n\t\t\t\t\tint piratesDemand = game.getPiratesDemand();\n\t\t\t\t\tSystem.out.println(\"You lose! Pirates demands: \" + piratesDemand + \" coins\");\n\t\t\t\t\tif (game.checkPirateSatisfaction()) {\n\t\t\t\t\t\tgame.removeAllGoods();\n\t\t\t\t\t\tgame.backToMain();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tgame.removeAllGoods();\n\t\t\t\t\t\tint money = game.getMoney();\n\t\t\t\t\t\tgame.updateMoney(money * -1);\n\t\t\t\t\t\tgame.gameOver(\"You lose play rock paper scissor game! \\nthe pirate took all of your money and your items in your ship!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tstate = true;\n\t\t\t\t\tSystem.out.println(\"You Win!! You can Continue your journey to your destination!\");\n\t\t\t\t\tgame.backToMain();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public static void turnoJugador(){\n //variables locales\n int opcionBatalla;\n Scanner scannerDos=new Scanner(System.in);//nuevo scanner vara no recargar al anterior\n //menu de opciones para el turno del jugador\n System.out.println(\"\\nturno de:\"+nombrePersonaje);\n\tSystem.out.println(\"\\n1.Atacar\\t\\t\\t\\t\\tnombre:\\t\\t\\t\"+nombrePersonaje);\n\tSystem.out.println(\"2.Curar\\t\\t\\t\\t\\t\\tPuntos De Vida (HP):\\t\"+puntosDeVida);\n\tSystem.out.println(\"3.Item\\t\\t\\t\\t\\t\\tPuntos De mana (MP):\\t\"+puntosDeMana);\n\tSystem.out.println(\"4.Tengo Miedo\\t\\t\\t\\t\\tOro: \\t\\t\"+oro);\n System.out.println(\"\\t\\t\\t\\t\\t\\tVida del enemigo:\\t\"+puntosDeVidaEnemigo);\n\n do{//validando la opcion seleccionada\n System.out.println(\"Numero de opcion:\");\n opcionBatalla= scannerDos.nextInt();\n \n }while(opcionBatalla<1||opcionBatalla>4);\n //comparacion de la opcion seleccionada\n switch(opcionBatalla){\n case 1:{\n atacar();//llamando funcion atacar\n break;\n }\n case 2:{\n curar();//llamando funcion curar\n break;\n }\n case 3:{\n item();//llamando funcion item\n break;\n }\n \tdefault:{\n miedo();//llamando funcion miedo\n break;\n } \n }\n }", "private String getResponse()\n {\n System.out.println();\n System.out.println(\"Enter id number to look up, 'd' to display list, 'q' to quit\");\n System.out.print(\"Your choice: \");\n return scanner.nextLine();\n }", "public static void driveMode(){\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Intake Disabled:\", Intake.intakeDisabled);\n\t\tSmartDashboard.putNumber(\"motorSpeed\", Intake.intakeMotorSpeed);\n\t\tSmartDashboard.putNumber(\"conveyorMotorSpeed\", Score.conveyorMotorSpeed);\n\t\tSmartDashboard.putBoolean(\"Intake Motor Inverted?:\", Actuators.getFuelIntakeMotor().getInverted());\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\n\t\t\n\n\t\tSmartDashboard.putBoolean(\"Is Climbing:\", TalonDio.climbEncodDio(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Driving:\", TalonDio.driveEncodDio(Actuators.getLeftDriveMotor(), Actuators.getRightDriveMotor()));\n\t\tSmartDashboard.putBoolean(\"Is Climbing Motor Stalling:\", TalonDio.CIMStall(Actuators.getClimbMotor()));\n\t\tSmartDashboard.putNumber(\"Total Current Draw:\", SensorsDio.PDPCurrent(Sensors.getPowerDistro()));\n\n\t\n\t//TODO: Add Gear Vibrations for both controllers\n\t//Vibration Feedback\n\t\t//Sets the Secondary to vibrate if climbing motor is going to stall\n\t\tVibrations.climbStallVibrate(Constants.MAX_RUMBLE);\t\n\t\t//If within the second of TIME_RUMBLE then both controllers are set to HALF_RUMBLE\n\t\tVibrations.timeLeftVibrate(Constants.HALF_RUMBLE, Constants.TIME_RUMBLE);\t\n\t\t\n\t}", "protected void executeCommand() {\n // build the type string\n StringBuilder stateString = new StringBuilder();\n StringBuilder moveNamesString = new StringBuilder();\n StringBuilder basicPieceString = new StringBuilder();\n StringBuilder factionRingString = new StringBuilder();\n\n // start the state string\n stateString.append(\"emb2;Activate;2;;;2;;;2;;;;1;false;0;-24;,\");\n basicPieceString.append(\"emb2;;2;;;2;;;2;;;;;false;0;0;\");\n\n String moveImage;\n String move = newMoveList.get(0);\n String moveWithoutSpeed = move.substring(1);\n moveImage = dialHeadingImages.get(moveWithoutSpeed);\n\n String speed = move.substring(0,1);\n String moveCode = move.substring(1,2);\n String moveName = maneuverNames.get(moveCode);\n\n basicPieceString.append(\"D2e_\" + xwsShipName + \".png\");\n basicPieceString.append(\";;false;Front Plate;;;false;;1;1;true;;;\");\n\n moveNamesString.append(moveName).append(\" \").append(speed);\n // add in move names\n stateString.append(moveImage);\n stateString.append(\";empty,\"+moveNamesString);\n\n // finish the type string\n stateString.append(\";false;Chosen Move;;;false;;1;1;true;65,130\");\n Embellishment chosenMoveEmb = (Embellishment)Util.getEmbellishment(piece,\"Layer - Chosen Move\");\n Embellishment chosenSpeedEmb = (Embellishment)Util.getEmbellishment(piece, \"Layer - Chosen Speed\");\n Embellishment fullDialEmb = (Embellishment)Util.getEmbellishment(piece, \"Layer - Front Plate\");\n Embellishment ringEmb = (Embellishment)Util.getEmbellishment(piece, \"Layer - Faction Ring\");\n\n factionRingString.append(\"emb2;;2;;;2;;;2;;;;;false;0;0;DialSelect_\");\n factionRingString.append(faction);\n factionRingString.append(\".png;;false;Faction Ring;;;false;;1;1;true;;;\");\n chosenSpeedEmb.setValue(Integer.parseInt(speed)+1);\n\n String injectDialString = \"\";\n int count=0;\n for(String moveItem : newMoveList) {\n count++;\n injectDialString+= moveItem;\n if(count!=newMoveList.size()) injectDialString+=\",\";\n }\n piece.setProperty(\"dialstring\",injectDialString);\n piece.setProperty(\"shipID\", associatedShipID);\n\n // chosen move embellishment looks like: emb2;Activate;2;;;2;;;2;;;;1;false;0;-24;,mFW.png;empty,move;false;Chosen Move;;;false;;1;1;true;65,130;;\n // chosen speed embell looks like: emb2;;2;;;2;;;2;;;;1;false;0;24;kimb5.png,,kimb0.png,kimb1.png,kimb2.png,kimb3.png,kimb4.png;5,empty,0,1,2,3,4;false;Chosen Speed;;;false;;1;1;true;;;\n // basic piece face plate looks like: emb2;;2;;;2;;;2;;;;;false;0;0;D2e_arc170starfighter.png;;false;Front Plate;;;false;;1;1;true;;;\n // faction ring looks like: emb2;;2;;;2;;;2;;;;;false;0;-6;DialSelect_rebelalliance.png;;false;Faction Ring;;;false;;1;1;true;;;\n\n chosenMoveEmb.mySetType(stateString.toString());\n chosenMoveEmb.setValue(1);\n\n fullDialEmb.mySetType(basicPieceString.toString());\n ringEmb.mySetType(factionRingString.toString());\n }", "public static void main(String[] args){\n boolean allGood;\n //create a new logic object so we can get the user information properly\n Logic logic = new Logic();\n //create a new menu object so we can display the correct options\n Menu menu = new Menu();\n\n //load the json information so we can use it later in the program\n allGood = logic.loadData();\n if(allGood){\n //ask the user for their information so we can use it later\n logic.Intro();\n\n\n do{\n //print the first menu and ask the user what they want to do\n menu.printMenu1();\n menu.askForOption();\n\n //if the user does not input a valid option\n while(!menu.validOption1()){\n System.out.println(\"Please Insert a valid option\");\n //re-print the menu and ask again\n menu.printMenu1();\n menu.askForOption();\n }\n\n //choose which function to run depending on what option the user chose\n logic.whichOptionM1(menu.getOption1());\n\n //if the user chose option 1, display the second menu\n if(menu.getOption1() == 1) {\n do {\n //display menu 2 and ask the user for their option\n menu.printMenu2();\n menu.askForOptionString();\n\n //if the user enters an invalid option\n while (!menu.validOption2()){\n //print an error message and ask for the option again\n System.out.println(\"Please Insert a valid option\");\n menu.printMenu2();\n menu.askForOptionString();\n }\n\n //choose which function to run depending on what the user inputs\n logic.whichOptionM2(menu.getOption2());\n\n }while (!menu.getOption2().equalsIgnoreCase(\"f\"));\n }\n }while(!menu.exitMenu1());\n\n }\n }", "static void mainMenu()\n {\n clrscr();\n System.out.print(\"\\n\"\n + title()\n + \"Go on, \" + Player.current.name + \", choose away ...\\n\"\n + \"1. Match time!\\n\"\n + \"2. Pokedex pls\\n\"\n + \"3. Show me my stats\\n\"\n + \"4. I suck at life and want to quit\\n\"\n + \"(1/2/3/4): \");\n\n // checks for int input, or routes back to mainMenu()\n int option = input.hasNextInt()? input.nextInt() : mainCallbacks.length - 1;\n\n // just defaults to quit if options > length of array of callbacks (here 5)\n mainCallbacks[Math.min(option, mainCallbacks.length - 1)].call();\n mainMenu();\n }", "static void portal_denied() {\n System.out.println(\"Ok...let's turn left and go to the living room\");\n enter = next.nextLine();\n System.out.println(\"Wait!\");\n enter = next.nextLine();\n System.out.println(\"What is that noice?\");\n enter = next.nextLine();\n System.out.println(\"Creak...Creak...Creak...\");\n System.out.println(username + \" sees a thousand of creatures surrounding the living room.\");\n System.out.println(\"I don't think it is a very good idea to take them on at once. They might look small,\");\n System.out.println(\"but are extremely ferocious...I suggest you turn back\");\n enter = next.nextLine();\n System.out.println( username + \" returns to the portals\");\n enter = next.nextLine();\n portal_introduction(); //this will take the player back to the portals that the player first had a choice to decide\n //whether or not he/she wanted to open the massive gate\n }", "private void mainMenuDetails() {\n try {\n System.out.println(\"Enter your choice:\");\n final int menuOption = option.nextInt();\n switch (menuOption) {\n case 1:\n showFullMenu();\n break;\n case 2:\n acceptRejectResponse();\n break;\n case 3:\n placeOrder();\n break;\n case 4:\n showFullOrder();\n break;\n case 5:\n Runtime.getRuntime().halt(0);\n default:\n System.out.println(\"Choose either 1 or 2\");\n }\n } catch (final Exception e) {\n e.printStackTrace();\n System.out.println(\"enter a valid value\");\n }\n option.nextLine();\n mainMenu();\n }", "private void printGoalOptions() {\n System.out.println(ANSI_PURPLE + \"CHOOSE YOUR GOALS: \" + ANSI_RESET);\n System.out.println(\"----------------------------------------------------------------------------------------------------------------\");\n System.out.println(\"1. I can be poor - I don't care about the money but I want to be as\" + ANSI_BLUE + \" happy and\" + ANSI_RESET + \" as\" + ANSI_BLUE + \" educated\" + ANSI_RESET + \" as possible.\");\n System.out.println(\"2. I want to be \" + ANSI_BLUE + \"rich and happy!\" + ANSI_RESET + \" I don't have to be educated at all.\");\n System.out.println(\"3. I want to be well \" + ANSI_BLUE + \"educated and \" + ANSI_RESET + \"I don't want be hungry ever again. Always \" + ANSI_BLUE + \"full!\" + ANSI_RESET + \" ;) \");\n System.out.println(\"4. I want to have the \" + ANSI_BLUE + \"best job\" + ANSI_RESET + \" possible and make\" + ANSI_BLUE + \" lots of money\" + ANSI_RESET + \" even if it will make me unhappy.\");\n System.out.println(\"----------------------------------------------------------------------------------------------------------------\");\n }", "public char userChoice ()\n {\n\tspeed (45, 500, \"\\nFire, Water or Grass?\");\n\t//ask for user's choice. will need to store in String\n\tString choice = IBIO.inputString (\"\\nChoose either Fire, Water or Grass: \");\n\n\t//Loop: if invalid input, ask again\n\twhile (!isValid (choice))\n\t{\n\t speed (45, 500, \"\\nInvalid choice! Please input again.\");\n\t choice = IBIO.inputString (\"\\nChoose either Fire, Water or Grass: \");\n\n\t}\n\t//stopping condition is the isValid method!!\n\t//something like: while(!isValid(choice))\n\n\t//If: to standardize values\n\t//if you've got one of Rock, ROCK, rock, r, R, then return 'r'.\n\t//else if you've got one of Paper, PAPER, paper, p, P, then return 'p'.\n\t//else return 's';\n\tif (choice.equals (\"fire\") || choice.equals (\"Fire\") || choice.equals (\"f\") || choice.equals (\"F\") || choice.equals (\"FIRE\"))\n\t return 'F';\n\telse if (choice.equals (\"w\") || choice.equals (\"W\") || choice.equals (\"Water\") || choice.equals (\"WATER\") || choice.equals (\"water\"))\n\t return 'W';\n\telse\n\t return 'G';\n }", "public static void userSelection(){\n\t\tint selection;\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Which program would you like to run?\");\n\t\tselection=input.nextInt();\n\n\t\tif(selection == 1)\n\t\t\tmazeUnion();\n\t\tif(selection == 2)\n\t\t\tunionPathCompression();\n\t\tif(selection == 3)\n\t\t\tmazeHeight();\n\t\tif(selection == 4)\n\t\t\tmazeSize();\n\t\tif(selection == 5)\n\t\t\tsizePathCompression();\n\t}", "private void showMenu() {\n\t Scanner sc = new Scanner(System.in);\n\t Arguments argument = Arguments.INVALID;\n\t System.out.println(\"Enter command of your choice in the correct format\");\n\t do\n\t {\n\t \tString command = sc.nextLine();\n\t \tString[] arguments = command.split(\" +\");\n\t \targument = validateAndReturnType(arguments);\n\t \tswitch(argument) {\n\t\t \tcase INCREASE:\n\t\t \t\tincrease(arguments);\n\t\t \t\tbreak;\n\t\t \tcase REDUCE:\n\t\t \t\treduce(arguments);\n\t\t \t\tbreak;\n\t\t\t\tcase COUNT:\n\t\t\t\t\tcount(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INRANGE:\n\t\t\t\t\tinRange(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase NEXT:\n\t\t\t\t\tnext(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PREVIOUS:\n\t\t\t\t\tprevious(arguments);\n\t\t\t\t\tbreak;\n\t\t\t\tcase QUIT:\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\tcase INVALID:\n\t\t\t\t\tSystem.out.println(\"Please enter a valid command\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Invalid command. Enter a command in the correct format\");\n\t \t}\n\t } while(argument != Arguments.QUIT);\n\t}", "public void controllerMenu(){\n\t\tint option=1;\n\t\t\n\t\twhile(option!=0){ \n\t\t\tSystem.out.println(\"You are in the air controller menu\");\n\t\t\tSystem.out.println(\"Write the number corresponding to the action you quant to perform:\");\n\t\t\tSystem.out.println(\"1. Add plane (basic info)\");\n\t\t\tSystem.out.println(\"2. Add detailed information of a plane\");\n\t\t\tSystem.out.println(\"3. Show airspace\");\n\t\t\tSystem.out.println(\"4. Encrypt plane\");\n\t\t\tSystem.out.println(\"5. Decrypt plane\");\n\t\t\tSystem.out.println(\"Press 0 to exit\");\n\t\t\t\n\t\t\toption = entry.nextInt();\n\t\t\t\n\t\t\tswitch(option){\t// switch with a method for each operation\n\t\t\t\tcase 1: \n\t\t\t\t\taddPlane();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: \n\t\t\t\t\tafegirInfo();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: \n\t\t\t\t\tdisplayInfo();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: \n\t\t\t\t\tencrypt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tdesencriptar();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void gameHelper(int ranNum){\n\t\tif(questionAnsweredCount>=25){\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"It is \" + teams[ranNum].getName() + \"'s turn to choose a question\");\n\t\t//find category\n\t\tSystem.out.println(\"Please choose a category you would like to answer: \");\n\t\tint categoryIdx = getCategory();\n\t\t//find points\n\t\tSystem.out.println(\"Please enter the dollar value of the question you wish to answer\");\n\t\tint pointIdx = getPointsIndex();\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t//now check if the question is answer knowing dollar and cat is valid\n\t\tboolean answered = board[categoryIdx][pointIdx].answeredYet();\n\t\tif(!answered){\n\t\t\tint point = points[pointIdx];\n\t\t\tSystem.out.println(board[categoryIdx][pointIdx].getQeustion());\n\t\t\tSystem.out.println(\"Enter your answer. Remember to pose it as a question.\");\n\t\t\tString ans = sc.nextLine();\n\t\t\treadExitCommand(ans); // check if the user wants to exit any point\n\t\t\treadReplayCommand(ans);\n\t\t\tboard[categoryIdx][pointIdx].answerQuestion(ans); //ask Q\n\t\t\tif(!board[categoryIdx][pointIdx].getRight()&&board[categoryIdx][pointIdx].getWarned()){\n\t\t\t\t//not in question format. give one more chance\n\t\t\t\tans = sc.nextLine();\n\t\t\t\treadExitCommand(ans);\n\t\t\t\treadReplayCommand(ans);\n\t\t\t\tboard[categoryIdx][pointIdx].answerQuestion(ans);\n\t\t\t}\n\t\t\tif(board[categoryIdx][pointIdx].getRight()){\n\t\t\t\tSystem.out.println(\"You answered it right! \" + point + \" will be added to your total\");\n\t\t\t\tquestionAnsweredCount+= 10;\n\t\t\t\tteams[ranNum].addDollars(point);\n\t\t\t\tprintDollars();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Wrong Answer!\");\n\t\t\t\tquestionAnsweredCount++; \n\t\t\t\tteams[ranNum].minusDollars(point);\n\t\t\t\tprintDollars();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Question already answered. Choose it again\");\n\t\t\tgameHelper(ranNum); //same team choose a question again\n\t\t}\n\t\tint nextIdx = (ranNum+1)%(teams.length);\n\t\tgameHelper(nextIdx);\n\t}", "public void displayMenu() {\n\t\tSystem.out.println(\"\\n1 to see vehicles in a date interval\");\n\t\tSystem.out.println(\"2 to see a specific reservation\");\n\t\tSystem.out.println(\"3 to see all reservations\");\n\t\tSystem.out.println(\"9 to exit\\n\");\n\t\ttry {\n\t\t\tString in = reader.readLine();\n\t\t\tswitch (in) {\n\t\t\tcase \"1\":\n\t\t\t\tdisplayCarsInInterval();\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tdisplaySpecificBooking();\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tdisplayBookings();\n\t\t\t\tbreak;\n\t\t\tcase \"9\":\n\t\t\t\tSystem.out.println(\"Client application terminated\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Please insert a valid number\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unexpected problem with reading your input, please try again.\");\n\t\t}\n\t\tdisplayMenu();\n\t}", "public void helpMenu()\n {\n System.out.println(\"*********************************************Help Menue**************************************************************\");\n System.out.println(\"Each player starts the game with zero points.\");\n System.out.println(\"Each player is given the following set of five tiles. Each tile has a value and an associated score\");\n System.out.println(\"For each round, each player will play ONE tile, with the tile value adding to the game total for that round.\"); \n System.out.println(\"Provided the game total is less than or equal to 21, the player will get the score for using that tile.\");\n System.out.println(\"If the game total is greater than 21\");\n System.out.println(\"no score is allocated to the player who played the last tile causing the score to become greater than 21.\");\n System.out.println(\"Once the round ends, Each player will get their score based on the total of the tiles they have used during the round.\");\n System.out.println(\"Any player who has NOT used the tile with the value of 5, will get a penalty of -3 points.\");\n System.out.println(\"The player who, after all deductions, has the highest score, will be the winner of that round and will get 5 points.\"); \n System.out.println(\"At the end of all the rounds, the player who has won the most rounds is declared the winner of the game.\");\n System.out.println(\"**********************************************************************************************************************\");\n getUserStringInput(\"Please enter continue\");\n }", "public void startMenu(){\n System.out.println(\"\" +\n \"\\nWelcome to the video game library (NUMBER OF GAMES: \"+Library.games.size()+\") what would you like to do? \\n\" +\n \"1. Add a game to the library \\n\" +\n \"2. Remove a game from the library \\n\" +\n \"3. View what is currently in the library \\n\" +\n \"4. Check a game out \\n\" +\n \"5. Check a game in \\n\" +\n \"6. View checked out games \\n\" +\n \"7. Exit the program\");\n\n try{\n switch (input.nextInt()){\n\n case 1:\n // Add a game\n library.addGame();\n startMenu();\n break;\n case 2:\n // Remove a game\n library.removeGame();\n startMenu();\n break;\n case 3:\n // View the game library\n library.viewGameLibrary();\n startMenu();\n break;\n case 4:\n // Check out a game\n library.checkOut();\n startMenu();\n break;\n case 5:\n library.checkIn();\n startMenu();\n // Check in game\n break;\n case 6:\n // View checked out games\n library.viewCheckedOutGames();\n startMenu();\n break;\n case 7:\n // Exit program\n System.exit(0);\n break;\n default:\n // prompt the user to pick a correct number, loop back to menu\n System.out.println(\"\\nSelect a number from 1 - 7\");\n startMenu();\n break;\n }\n\n }catch (InputMismatchException ime){\n input.nextLine();\n System.out.println(\"\\nSelect a number from 1 - 7\");\n startMenu();\n\n }\n\n }", "static private void TalkTo() {\n if (BSChristiansen.getCurrentRoom() == currentRoom) {\n System.out.println(BSChristiansen.getDescription() + \", yet he still gives you good advice:\\n\");\n System.out.println(BSChristiansen.getDialog(0));\n System.out.println(\"\");\n woundedSurvivor();\n } else if (mysteriousCrab.getCurrentRoom() == currentRoom && inventory.getInventory().containsKey(\"Shroom\")) {\n System.out.println(mysteriousCrab.getDescription() + \"\\n\" + mysteriousCrab.getDialog(0));\n } else {\n System.out.println(\"There is nobody to communicate with in this Room\");\n }\n\n }", "private static void menu(char choice) {\n do {\n System.out.println();\n System.out.println(\"CHOOSE THE SCHEDULING ALGORITHM\");\n System.out.println(\"-------------------------------\");\n System.out.println(\"( 1 ) First Come First Serve (FCFS)\");\n System.out.println(\"( 2 ) Shortest Job First (SJF)\");\n System.out.println(\"( 3 ) Shortest Remaining Time (SRT)\");\n System.out.println(\"( 4 ) Priority Scheduling\");\n System.out.println(\"( 5 ) Round-Robin (RR)\");\n System.out.println(\"( 6 ) Multi-level Queue Scheduling\");\n System.out.println(\"( 0 ) EXIT\");\n System.out.print(\"CHOICE: \");\n\n choice = scanner.next().charAt(0);\n\n if (choice == '1') {\n System.out.println();\n System.out.println(\"FIRST COME FIRST SERVE ALGORITHM\");\n System.out.println(\"--------------------------------\");\n\n firstComeFirstServe();\n\n } else if (choice == '2') {\n System.out.println();\n System.out.println(\"SHORTEST JOB FIRST ALGORITHM\");\n System.out.println(\"--------------------------------\");\n\n shortestJobFirst();\n\n } else if (choice == '3') {\n System.out.println();\n System.out.println(\"SHORTEST REMAINING TIME ALGORITHM\");\n System.out.println(\"--------------------------------\");\n\n shortestRemainingTime();\n\n } else if (choice == '4') {\n System.out.println();\n System.out.println(\"PRIORITY SCHEDULING ALGORITHM\");\n System.out.println(\"--------------------------------\");\n\n priorityScheduling();\n\n } else if (choice == '5') {\n System.out.println();\n System.out.println(\"ROUND-ROBIN ALGORITHM\");\n System.out.println(\"--------------------------------\");\n\n roundRobin();\n\n } else if (choice == '6') {\n System.out.println();\n System.out.println(\"MULTI-LEVEL QUEUE ALGORITHM\");\n System.out.println(\"--------------------------------\");\n\n multilevelQueue();\n\n } else if (choice == '0') {\n System.exit(0);\n } else {\n System.out.println(\"\\t ________________________________________________\");\n System.out.println(\"\\t|| ||\");\n System.out.println(\"\\t|| > INVALID INPUT ||\");\n System.out.println(\"\\t||________________________________________________||\");\n }\n System.out.println(); // new line after sub-menu\n } while (choice != '0');\n }", "private void setResultText(){\r\n\r\n\t double gravity = 0,initialSpeed = 0,maxHeight = 0,maxHeightTime =0,reach = 0;\r\n\t int angle = 0;\r\n \r\n\t switch (this.situation){\r\n\t\t//########################## First Situation ##########################\r\n\t\t case 0:{\r\n\t\t\t\t if (speedField.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor da velocidade inicial deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t }else\r\n\t\t\t\t if (angleSlider.text.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor do ângulo deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t }else\r\n\t\t\t\t if (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t } else {\r\n\t\t\t\t \r\n\t \t\t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n \t\t\t\t\tinitialSpeed = Double.parseDouble(speedField.getText());\r\n \t\t\t\t\tangle = Integer.parseInt(angleSlider.text.getText());\r\n\r\n \t\t\t \t\tthis.setObliqueLaunchValues(initialSpeed, angle, gravity);\r\n \r\n \t\t\t\t\tmaxHeight = this.world.getMaxHeight(this.cannon, this.ball);\r\n \t\t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n \t\t\t\t\treach = this.world.getReach(this.cannon, this.ball);\r\n\t\t\t\t }\r\n\t\t\t\t\t \r\n\t\t} break;\r\n\t\t\r\n\t\t//########################## Second Situation ##########################\r\n\t\tcase 1:{\r\n\t\t\t\tif (speedField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da velocidade inicial deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (reachField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor do alcance deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n\t\t\t\t\tinitialSpeed = Double.parseDouble(speedField.getText());\r\n\t\t\t\t\treach = Double.parseDouble(reachField.getText());\r\n\t\t\t\r\n\t\t\t\t\tthis.setObliqueLaunchValues(initialSpeed,gravity,reach);\r\n\t\t\t\t\tangle = this.ball.getAngle(reach);\r\n\t\t\t\r\n\t\t\t\t\tthis.angleSlider.text.setText(String.valueOf(angle));\r\n \r\n\t\t \t\tmaxHeight = this.world.getMaxHeight(this.ball);\r\n \t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n\t\t\t\t}\r\n\t\t} break;\r\n\t\t\r\n\t\t//########################## Second Situation ##########################\r\n\t\tcase 2:{\r\n\t\t\t\tif (angleSlider.text.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor do ângulo deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (reachField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor do alcance deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\r\n\t \t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n \t\t\t\treach = Double.parseDouble(reachField.getText());\r\n \t\t\t\tangle = Integer.parseInt(angleSlider.text.getText());\r\n\t\t\t\r\n\t\t\t\t\tinitialSpeed = this.ball.getInitialSpeed(angle,reach,gravity);\r\n \t\t\r\n\t\t\t\t\tthis.setObliqueLaunchValues(initialSpeed, angle, gravity);\r\n \r\n \t\t\t\tmaxHeight = this.world.getMaxHeight(this.cannon, this.ball);\r\n \t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n \t\t\t\t//reach = this.world.getReach(this.cannon, this.ball);\r\n\t\t\t\t}\r\n\t\t} break;\r\n\t\t\r\n\t\t//########################## Fourth Situation ##########################\r\n\t\tcase 3:{\r\n\t\t\t\tif (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (reachField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor do alcance deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (mHeightField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da altura máxima deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\r\n\t \t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n \t\t\t\tmaxHeight = Double.parseDouble(mHeightField.getText());\r\n \t\t\t\treach = Double.parseDouble(reachField.getText());\r\n\t\t\t\r\n\t\t\t\t\tangle = this.ball.getAngle(reach,maxHeight);\r\n\t\t\t\t\tinitialSpeed = this.ball.getInitialSpeed(angle,reach,gravity);\r\n \t\t\r\n\t\t\t\t\tthis.setObliqueLaunchValues(initialSpeed, angle, gravity);\r\n \t\t\r\n \t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n\t\t\t\t}\r\n\t\t} break;\r\n\t }\r\n\t if (!this.errorOccorred){\r\n\t \tthis.completeSimulation(gravity,initialSpeed,angle,maxHeight,maxHeightTime,reach);\r\n\t } else {\r\n\t\tthis.errorOccorred = false;\r\n\t }\r\n }", "public void getInput() {\r\n System.out.print(\"Is the car silent when you turn the key? \");\r\n setAnswer1(in.nextLine());\r\n if(getAnswer1().equals(YES)) {\r\n System.out.print(\"Are the battery terminals corroded? \");\r\n setAnswer2(in.nextLine());\r\n if(getAnswer2().equals(YES)){\r\n printString(\"Clean the terminals and try again\");\r\n }\r\n else {\r\n printString(\"The battery may be damaged.\\nReplace the cables and try again\");\r\n }\r\n\r\n }\r\n else {\r\n System.out.print(\"Does the car make a slicking noise? \");\r\n setAnswer3(in.nextLine());\r\n if(getAnswer3().equals(YES)) {\r\n printString(\"Replace the battery\");\r\n }\r\n else {\r\n System.out.print(\"Does the car crank up but fail to start? \");\r\n setAnswer4(in.nextLine());\r\n if(getAnswer4().equals(YES)) {\r\n printString(\"Check spark plug connections.\");\r\n }\r\n else{\r\n System.out.print(\"Does the engine start and then die? \");\r\n setAnswer5(in.nextLine());\r\n if(getAnswer5().equals(YES)){\r\n System.out.print(\"Does your care have fuel injection? \");\r\n setAnswer6(in.nextLine());\r\n if(getAnswer6().equals(YES)){\r\n printString(\"Get it in for service\");\r\n }\r\n else{\r\n printString(\"Check to insure the chock is opening and closing\");\r\n }\r\n }\r\n else {\r\n printString(\"This should be impossible\");\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n }", "@Override\n public boolean doAction(String inputs) {\n Random rand = new Random();\n\n // Game variables\n String[] animals = {\"Elk\", \"Bear\", \"Buffalo\"};\n int maxAnimalAlertness = 75;\n int huntEnergyDrain = 35;\n\n // Player variables\n int energy = 100;\n int alertnessDamage = 50;\n int numDryBread = 2;\n int dryBreadHealAmount = 30;\n int energizedByHunt = 35; // Percentage\n\n boolean running = true;\n\n this.console.println(\"Welcome to the hunt!\");\n\n GAME:\n while (running) {\n this.console.println(\"----------------------------------------------\");\n\n int animalAlertness = rand.nextInt(maxAnimalAlertness);\n String animal = animals[rand.nextInt(animals.length)];\n this.console.println(\"\\t# \" + animal + \" has been spotted! #\\n\");\n\n OUTER:\n while (animalAlertness > 0) {\n this.console.println(\"\\tYour energy level: \" + energy);\n this.console.println(\"\\t\" + animal + \"'s alertness: \" + animalAlertness);\n this.console.println(\"\\n\\tWhat would you like to do?\");\n this.console.println(\"\\t1. Shoot\");\n this.console.println(\"\\t2. Eat some dry bread\");\n this.console.println(\"\\t3. Run!\");\n String input = null;\n try {\n input = this.keyboard.readLine();\n } catch (IOException ex) {\n ErrorView.display(this.getClass().getName(), ex.getMessage());\n }\n switch (input) {\n case \"1\":\n int shotDealt = rand.nextInt(alertnessDamage);\n int damageEnergy = rand.nextInt(huntEnergyDrain);\n animalAlertness -= shotDealt;\n energy -= damageEnergy;\n this.console.println(\"\\t> You hit the \" + animal + \" with \" + shotDealt + \"% damage.\");\n this.console.println(\"\\t> You used \" + damageEnergy + \"% of your energy!\");\n if (energy < 1) {\n this.console.println(\"\\t> You have used all your energy reserves.\");\n break OUTER;\n }\n break;\n case \"2\":\n if (numDryBread > 0) {\n energy += dryBreadHealAmount;\n numDryBread--;\n this.console.println(\"\\t> You ate some dry bread, rejuvinating yourself by \" + dryBreadHealAmount + \"%.\"\n + \"\\n\\t> You now have \" + energy + \" % energy.\"\n + \"\\n\\t> You have \" + numDryBread + \" dry bread left.\\n\");\n } else {\n this.console.println(\"\\t> You have no Dry Bread left! Shoot well so you can get some meat!\\n\");\n }\n break;\n case \"3\":\n this.console.println(\"\\tYou run away from the \" + animal + \"!\");\n continue GAME;\n default:\n this.console.println(\"\\tInvalid command!\");\n break;\n }\n }\n\n if (energy < 1) {\n this.console.println(\"You limp away from the hunt, too weak to carry any meat.\");\n break;\n }\n\n this.console.println(\"----------------------------------------------\");\n this.console.println(\" # \" + animal + \" was shot! # \");\n this.console.println(\" # You now have \" + energy + \"% of your energy left. # \");\n if (rand.nextInt(100) < energizedByHunt) {\n numDryBread++;\n this.console.println(\" # You could return to camp. # \");\n\n }\n this.console.println(\"----------------------------------------------\");\n this.console.println(\"What would you like to do now?\");\n this.console.println(\"1. Continue hunting\");\n this.console.println(\"2. Leave the hunt\");\n\n String input = null;\n try {\n input = this.keyboard.readLine();\n } catch (IOException ex) {\n ErrorView.display(this.getClass().getName(), ex.getMessage());\n }\n\n while (!input.equals(\"1\") && !input.equals(\"2\")) {\n this.console.println(\"Invalid command!\");\n try {\n input = this.keyboard.readLine();\n } catch (IOException ex) {\n ErrorView.display(this.getClass().getName(), ex.getMessage());\n }\n }\n\n if (input.equals(\"1\")) {\n this.console.println(\"You continue on your adventure!\");\n } else if (input.equals(\"2\")) {\n this.console.println(\"You return to the wagon train laden with meat for all!\");\n break;\n }\n }\n this.console.println(\"########################\");\n this.console.println(\"# Thanks for hunting #\");\n this.console.println(\"########################\");\n return false;\n }", "static void mainmenu() {\n\t\t\n\t\tSystem.out.println(\"Welcome. This is a rogue-like text-based RPG game.\");\n\t\tEngine.sleep(1);\n\t\tSystem.out.println(\"You control your character by entering your desired action when prompted.\");\n\t\tEngine.sleep(1);\n\t\tSystem.out.println(\"Do you want to start your journey?\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" y: yes \t\tn: no\t\t\");\n\t\tresponse = Engine.request();\n\t\tif(response == false) {\n\t\t\tSystem.out.println(\"W-What are you doing here then? If you're not here to play the game then what do you even want to do?\");\n\t\t\tSystem.out.println(\"To start, write \\\"Y\\\" or \\\"y\\\" in the console \");\n\t\t\tSystem.out.println(\"I won't ask again. Do you want to start your journey?\");\n\t\t\tresponse = Engine.request();\n\t\t\tif(response == false) {\n\t\t\t\tSystem.out.println(\"I am not here to judge your decision. Farewell.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Glad you came to your senses.\");\t\t\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Very well.\");\n\t\t}\n\t\tSystem.out.println();\t\t\n\t\tif(Engine.devmode == true) System.out.println(\"\tDebug: StartMenu passed\");\n\t\t\n\t\t\t// Cadet dungeon check\n\t\tif(Progresslog.cadetplaytime < 3) {\n\t\t\tSystem.out.println(\"You seem to be new at the game. Would you like to play through a more tailored experience,\\n\"\n\t\t\t\t\t+ \"which is designed for inexperienced players and introduces you to the game's mechanics?\");\n\t\t\tif(Engine.devmode == true) System.out.println(\"Cadet playtime: \" + Progresslog.cadetplaytime);\n\t\t\tresponse = Engine.request();\n\t\t\tif(response == true) {\n\t\t\t\tSystem.out.println(\"Alright then.\");\n\t\t\t\tDungeoncadet();\n\t\t\t} else DungeonGen();\t\t\t\n\t\t} else DungeonGen();\t\t\n\t}", "@SuppressWarnings(\"deprecation\")\n\tprivate static void Menu(String ruta, String base, \n\t\t\tlong tiempoInicial, long tiempoActual) {\n\t\tLocale.setDefault(Locale.UK);\n\t\tDecimalFormat df = new DecimalFormat(\"00\");\t\t\n\t\ttry {\n\t\t\tif (esDirectorio(ruta)) {\n\t\t\t\t// Lee la orden introducida por el operador\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\ttiempoActual = System.currentTimeMillis();\n\t\t\t\tDate t = new Date(tiempoActual - tiempoInicial);\n\t\t\t\tString PROMPT = df.format(t.getMinutes()) + \":\"\n\t\t\t\t\t\t+ df.format(t.getSeconds()) + \"> \";\n\t\t\t\tSystem.out.printf(\"%s\", PROMPT);\n\t\t\t\tScanner entrada = new Scanner(System.in);\n\t\t\t\tScanner orden = new Scanner(entrada.nextLine());\n\t\t\t\tString codigo = orden.next();\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Procesa ordenes hasta que el operador escribe la \n\t\t\t\t//orden END\n\t\t\t\twhile (!codigo.equalsIgnoreCase(\"END\")) {\n\t\t\t\t\t// Identifica la orden y la ejecuta\n\t\t\t\t\t\n\t\t\t\t\tif (codigo.equalsIgnoreCase(\"HELP\")) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Muestra por pantalla el menu\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (!orden.hasNext()) {\n\t\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t\t\tmostrarMenu();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"--> Incorrect \" +\n\t\t\t\t\t\t\t\t\t\t\t\"order. You can write\" +\n\t\t\t\t\t\t\t\t\t\t\t\" HELP\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}// Fin Help\n\n\t\t\t\t\telse if (codigo.equalsIgnoreCase(\"DIR\")) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Lista por pantalla el contenido del \n\t\t\t\t\t\t * directorio actual\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (!orden.hasNext()) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlistarDirectorio(ruta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"--> Incorrect \" +\n\t\t\t\t\t\t\t\t\t\t\t\"order. You can write \" +\n\t\t\t\t\t\t\t\t\t\t\t\"HELP\");\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}// Fin DIR\n\t\t\t\t\t\n\t\t\t\t\telse if (codigo.equalsIgnoreCase(\"DIRALL\")) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Lista por pantalla el contenido del \n\t\t\t\t\t\t * directorio actual con todos los subdirectorios\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (!orden.hasNext()) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlistarDirectorio2(ruta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"--> Incorrect \" +\n\t\t\t\t\t\t\t\t\t\t\t\"order. You can write \" +\n\t\t\t\t\t\t\t\t\t\t\t\"HELP\");\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}// Fin DIR\n\n\t\t\t\t\telse if (codigo.equalsIgnoreCase(\"CD\")) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Cambia de directorio\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (orden.hasNext()) {\n\t\t\t\t\t\t\tString texto = orden.next();\n\t\t\t\t\t\t\tif (texto.equalsIgnoreCase(\"..\")) {\n\t\t\t\t\t\t\t\t// comprueba que no es el directorio \n\t\t\t\t\t\t\t\t// base\n\t\t\t\t\t\t\t\tif (!ruta.equalsIgnoreCase(base)) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tFile f = new File(ruta);\n\t\t\t\t\t\t\t\t\tMenu(f.getParent(), base, \n\t\t\t\t\t\t\t\t\t\t\ttiempoInicial, \n\t\t\t\t\t\t\t\t\t\t\ttiempoActual);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"--> Name of \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"directory \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"unknown\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// cambio de directorio\n\t\t\t\t\t\t\t\tif (esDirectorio(texto)) {\n\t\t\t\t\t\t\t\t\tif(!texto.\n\t\t\t\t\t\t\t\t\t\t\tequalsIgnoreCase(ruta)) {\n\t\t\t\t\t\t\t\t\t\tMenu(texto, base, \n\t\t\t\t\t\t\t\t\t\t\t\ttiempoInicial, \n\t\t\t\t\t\t\t\t\t\t\t\ttiempoActual);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t// el usuario ya esta en ese \n\t\t\t\t\t\t\t\t\t\t// directorio\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"--> \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\"You are already \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\"in that directory\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"--> Name of \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"directory \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"unknown\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"--> Incorrect order.\" +\n\t\t\t\t\t\t\t\t\t\t\t\" You can write HELP\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}// Fin CD\n\n\t\t\t\t\telse if (codigo.equalsIgnoreCase(\"WHERE\")) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Muestra por pantalla la ruta del \n\t\t\t\t\t\t * directorio actual\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (!orden.hasNext()) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.printf(\"%s%n\", ruta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"--> Incorrect order.\" +\n\t\t\t\t\t\t\t\t\t\t\t\" You can write HELP\");\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}// Fin WHERE\n\n\t\t\t\t\telse if (codigo.equalsIgnoreCase(\"FIND\")) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Muestra por pantalla las imagenes cuyo \n\t\t\t\t\t\t * nombre coincida con una cadena de \n\t\t\t\t\t\t * caracteres determinada\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (orden.hasNext()) {\n\t\t\t\t\t\t\tString texto = \n\t\t\t\t\t\t\t\t(String) orden.next().toLowerCase();\n\t\t\t\t\t\t\t// crea el vector\n\t\t\t\t\t\t\tv = new Vector<ImageIcon>();\n\t\t\t\t\t\t\tFile f = new File(ruta);\n\t\t\t\t\t\t\tFile[] ficheros = f.listFiles();\n\t\t\t\t\t\t\trecorrerFicheros(ficheros, 0, texto);\n\t\t\t\t\t\t\trecorrerDirectorios(ficheros, 0, texto);\n\t\t\t\t\t\t\tmostrarVector(v);\n\t\t\t\t\t\t\t// si no ha encontrado imagenes\n\t\t\t\t\t\t\tif (v.size() == 0) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"0 images found\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.printf(\"%d images found%n\", \n\t\t\t\t\t\t\t\t\t\t\t\tv.size());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// vacia el vector\n\t\t\t\t\t\t\tv.clear();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"--> Incorrect order.\" +\n\t\t\t\t\t\t\t\t\t\t\t\" You can write HELP\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}// Fin FIND\n\n\t\t\t\t\telse if (codigo.equalsIgnoreCase(\"DEL\")) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Muestra la informacion de una imagen \n\t\t\t\t\t\t * determinada del directorio actual y ofrece \n\t\t\t\t\t\t * la posibilidad de eliminarla\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (orden.hasNext()) {\n\t\t\t\t\t\t\tString texto = (String) orden.next();\n\t\t\t\t\t\t\tFile f = new File(ruta);\n\t\t\t\t\t\t\tFile[] ficheros = f.listFiles();\n\t\t\t\t\t\t\tString nombre = sacarRuta(ficheros, 0, \n\t\t\t\t\t\t\t\t\ttexto);\n\t\t\t\t\t\t\tif (nombre == null) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"0 images found\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tFile fich = new File(nombre);\n\t\t\t\t\t\t\t\t// muestra la informacion de la \n\t\t\t\t\t\t\t\t// imagen\n\t\t\t\t\t\t\t\tinformacionImagen(fich);\n\t\t\t\t\t\t\t\tScanner s = new Scanner(System.in);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.printf(\"Do you want to \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\"delete the \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\"selected image? \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\"(Y/N): \");\n\t\t\t\t\t\t\t\tString respuesta = s.next();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (respuesta.\n\t\t\t\t\t\t\t\t\t\tequalsIgnoreCase(\"y\")) {\n\t\t\t\t\t\t\t\t\tfich.delete();\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Image \" +\n\t\t\t\t\t\t\t\t\t\t\t\"deleted\");\n\t\t\t\t\t\t\t\t} else if (respuesta.\n\t\t\t\t\t\t\t\t\t\tequalsIgnoreCase(\"n\")) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"--> \" +\n\t\t\t\t\t\t\t\t\t\t\t\"Incorrect order, \" +\n\t\t\t\t\t\t\t\t\t\t\t\"please Y/N\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"--> Incorrect \" +\n\t\t\t\t\t\t\t\t\t\"order. You can write HELP\");\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}// Fin DEL\n\n\t\t\t\t\telse if (codigo.equalsIgnoreCase(\"MOVE\")) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Mueve una imagen determinada a otro \n\t\t\t\t\t\t * directorio\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (orden.hasNext()) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString texto = (String) orden.next();\n\t\t\t\t\t\t\tFile f = new File(ruta);\n\t\t\t\t\t\t\tFile[] ficheros = f.listFiles();\n\t\t\t\t\t\t\tString nombre = sacarRuta(ficheros, 0, \n\t\t\t\t\t\t\t\t\ttexto);\n\t\t\t\t\t\t\t//no se ha encontrado la imagen\n\t\t\t\t\t\t\tif (nombre == null) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"0 images found\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tScanner s = new Scanner(System.in);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.printf(\"Where do you want\" +\n\t\t\t\t\t\t\t\t\t\t\t\t\" to move the \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\"file?: \");\n\t\t\t\t\t\t\t\tString directorio = s.next();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tFile fil = new File(directorio);\n\t\t\t\t\t\t\t\tif (fil.isDirectory()) {\n\t\t\t\t\t\t\t\t\tmover(nombre, directorio);\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"Image moved\");\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"--> Name of \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"directory \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"unknown\");\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}// Fin MOVE\n\n\t\t\t\t\telse if (codigo.equalsIgnoreCase(\"IMG\")) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Muestra por pantalla todas todas las \n\t\t\t\t\t\t * imagenes del directorio actual sin entrar\n\t\t\t\t\t\t * en subdirectorios\n\t\t\t\t\t\t */\t\t\t\t\t\t\n\t\t\t\t\t\tif (orden.hasNext()) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (orden.hasNextDouble()) {\n\t\t\t\t\t\t\t\tDouble tiempo = orden.nextDouble();\n\t\t\t\t\t\t\t\tFile f = new File(ruta);\n\t\t\t\t\t\t\t\tpractica6.Trabajo1.carrusel(f, \n\t\t\t\t\t\t\t\t\t\ttiempo);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"--> Incorrect \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\"order. You can \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\"write HELP\");\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tFile f = new File(ruta);\n\t\t\t\t\t\t\tpractica6.Trabajo1.carrusel(f, 2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}// Fin IMG\n\n\t\t\t\t\telse if (codigo.equalsIgnoreCase(\"IMGALL\")) {\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Muestra por pantalla todas todas las \n\t\t\t\t\t\t * imagenes del directorio actual entrando \n\t\t\t\t\t\t * en subdirectorios\n\t\t\t\t\t\t */\t\t\t\t\t\t\n\t\t\t\t\t\tif (orden.hasNext()) {\n\t\t\t\t\t\t\tif (orden.hasNextDouble()) {\n\t\t\t\t\t\t\t\tDouble tiempo = orden.nextDouble();\n\t\t\t\t\t\t\t\tFile f = new File(ruta);\n\t\t\t\t\t\t\t\tpractica6.Trabajo2.carruselTodas(f, \n\t\t\t\t\t\t\t\t\t\ttiempo);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"--> Incorrect \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\"order. You can \" +\n\t\t\t\t\t\t\t\t\t\t\t\t\"write HELP\");\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tFile f = new File(ruta);\n\t\t\t\t\t\t\tpractica6.Trabajo2.carruselTodas(f, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}// Fin IMGALL\n\t\t\t\t\t\n\t\t\t\t\telse if (codigo.equalsIgnoreCase(\"BIGIMG\")) {\n\t\t\t\t\t\tif (!orden.hasNext()) {\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tFile f = new File(ruta);\n\t\t\t\t\t\t\tFile[] ficheros = f.listFiles();\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsacarGrande(ficheros,\"\",0);\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"--> Incorrect order.\"\n\t\t\t\t\t\t\t\t\t+ \" You can write HELP\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}// Fin BIGIMG\n\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Orden desconocida\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"--> Incorrect order. You\" +\n\t\t\t\t\t\t\t\t\t\t\" can write HELP\");\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Pide al operador una nueva orden y la lee\t\t\t\t\t\n\t\t\t\t\ttiempoActual = System.currentTimeMillis();\n\t\t\t\t\tt = new Date(tiempoActual - tiempoInicial);\n\t\t\t\t\tPROMPT = df.format(t.getMinutes()) + \":\"\n\t\t\t\t\t\t\t+ df.format(t.getSeconds()) + \"> \";\n\t\t\t\t\tSystem.out.printf(\"%n%s\", PROMPT);\n\t\t\t\t\tentrada = new Scanner(System.in);\n\t\t\t\t\torden = new Scanner(entrada.nextLine());\n\t\t\t\t\tcodigo = orden.next();\t\t\t\t\n\t\t\t\t}// Fin while\n\t\t\t\t\n // la orden del operador ha sido END\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\ttiempoActual = System.currentTimeMillis();\n\t\t\t\tt = new Date(tiempoActual - tiempoInicial);\n\t\t\t\tString ff = \"End of the program execution. \" +\n\t\t\t\t\t\t\"Running rime \"\n\t\t\t\t\t\t+ df.format(t.getMinutes()) + \" min and \"\n\t\t\t\t\t\t+ df.format(t.getSeconds()) + \"sec.\";\n\t\t\t\tSystem.out.println(ff);\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"*** Error.\");\n\t\t}\n\t}", "static void portal_introduction() {\n System.out.println(\"There are two portals that obviously lead to different paths.\");\n enter = next.nextLine();\n System.out.println(\"You learned that in order to be teleported you must repeat a line and jump into the portal\");\n System.out.println(\"Are you ready?\");\n answer = next.nextLine();\n if(answer.contains(\"no\")) {\n System.out.println(\"There's no turning back, you must go now!\");\n }else if(answer.contains(\"yes\")) {\n System.out.println(\"Alright...Which portal would you like to go through?\");\n System.out.println(\"The Yellow or Red one\");\n answer = responses.nextLine();\n //this is used to record the player's responses\n if(answer.contains(\"y\")) { //this will lead player to yellow portal storyline\n System.out.println(\"alright...say 'portal open for your master commands you' and then jump in\");\n //these are the lines that the protagonist will say and do to go to the next challenge\n enter = next.nextLine();\n System.out.println(username + \" said \");\n System.out.println(\" 'portal open for your master commands you' \");\n enter = next.nextLine();\n System.out.println(username + \" then jumps into the yellow portal.\");\n enter = next.nextLine();\n yellowportal(); //this is where the player will be teleported into the Yellow River of China \n }else if (answer.contains(\"r\")) { // in the case if the player wants to chose the red portal\n System.out.println(\"alright...say 'portal open for your master commands you' and then jump in\");\n //these are the lines that the protagonist will say and do to go to the next challenge\n enter = next.nextLine();\n System.out.println(username + \" said \");\n System.out.println(\" 'portal open for your master commands you' \");\n enter = next.nextLine();\n System.out.println(username + \" then jumps into the red portal.\");\n enter = next.nextLine();\n redportal(); //this is where the player will be transported into the Amazon rainforest\n }\n }else{\n portal_introduction();\n }\n }", "@Override\n\tpublic void performActions() throws IOException\n\t{\n\t\tSystem.out.println(\"these are the moviegoer actions\");\n\t\tboolean loggedIn = true;\n\t\twhile(loggedIn)\n\t\t{\n\t\t\tSystem.out.println(\"\\n=========== MovieGoer MENU ===========\");\n\t\t\tSystem.out.println(\"1: Rate a movie\");\n\t\t\tSystem.out.println(\"2: Display available movies in all Cineplexes\");\n\t\t\tSystem.out.println(\"3: Book a movie\");\n\t\t\tSystem.out.println(\"4: Retrieve booking history\");\n\t\t\tSystem.out.println(\"5: List movies ordered by sold tickets\");\n\t\t\tSystem.out.println(\"6: List movies by ratings\");\n\t\t\tSystem.out.println(\"8: Logout\");\n\t\t\tSystem.out.println(\"\\n=============================================\");\n\n\n\t\t\t\n\t\t\tint actionChoice = UserInputs.getValidIntegerInput();\n\t\t\t\n\t\t\tswitch(actionChoice)\n\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\tgiveRating();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tpage.listMovies();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.bookMovie();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tBooking.retrieveHistory(userLogedIn.getUsername());\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tpage.listTicketOrderMovies();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tpage.listRatingOrderMovies();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tloggedIn = false;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please enter one of the valid options\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public static void menu() {\n\t\tRaton ratones[] = new Raton[3];\n\t\tTeclado teclados[] = new Teclado[3];\n\t\tMonitor monitores[] = new Monitor[3];\n\t\tString[] computadoras = {\"Windows\",\"Linux\",\"Mac\"};\n\t\t\n\t\t// Cargamos los arrays mediante metodos\n\t\tratones = cargaRatones();\n\t\tteclados = cargaTeclados();\n\t\tmonitores = cargaMonitores();\n\t\t\n\t\t// Creamos variables para las opciones seleccionadas\n\t\tOrden orden = new Orden();\n\t\tint opRaton = 1;\n\t\tint opTeclado = 1;\n\t\tint opMonitor = 1;\n\t\tint opComputadora = 1;\n\t\tint opcion = 1;\n\t\tboolean repetir = true; // Variable para repetir la seleccion en caso de excepcion\n\t\t\n\t\t// Bucle menu\n\t\tdo {\n\t\t\tSystem.out.println(\"---- Carga de datos de Computadora ----\");\n\t\t\t// SELECCION DE RATON\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Raton: \");\n\t\t\t\tfor(int i=0; i<ratones.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+ratones[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topRaton = input.nextInt();\n\t\t\t\t\tif(opRaton>0 && opRaton<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE TECLADO\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Teclado: \");\n\t\t\t\tfor(int i=0; i<teclados.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+teclados[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topTeclado = input.nextInt();\n\t\t\t\t\tif(opTeclado>0 && opTeclado<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE MONITOR\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Monitor: \");\n\t\t\t\tfor(int i=0; i<monitores.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+monitores[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topMonitor = input.nextInt();\n\t\t\t\t\tif(opMonitor>0 && opMonitor<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE COMPUTADORA\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione una computadora:\");\n\t\t\t\tfor(int i=0 ; i<computadoras.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+computadoras[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topComputadora = input.nextInt();\n\t\t\t\t\tif(opComputadora>0 && opComputadora<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Se crea la computadora y se agrega a la orden\n\t\t\tComputadora computadora = new Computadora(computadoras[opComputadora-1], monitores[opMonitor-1], teclados[opTeclado-1], ratones[opRaton-1]);\n\t\t\torden.agregarComputadora(computadora);\n\t\t\tSystem.out.println(\"Computadora agregada a la orden!!\");\n\t\t\t\n\t\t\t// OPCIONES PARA SEGUIR AGREGANDO COMPUTADORAS\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Desea agregar otra computadora?: [1. Si] - [2. No]\");\n\t\t\t\ttry {\n\t\t\t\t\topcion = input.nextInt();\n\t\t\t\t\tif(opcion == 1 || opcion == 2) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\\n\");\n\t\t\t\t\t\n\t\t}while(opcion == 1);\n\t\t\n\t\t// Muestra todas las computadoras de la orden\n\t\tSystem.out.println(\"====== Datos de la orden ======\");\n\t\torden.mostrarOrden();\n\t\t\n\t}", "private void goAdventure() {\n\n\t\tint experience = playern.getExp();\n\t\tint random = randomHelper.randomten();\n\n\t\t/**\n\t\t * Random part that starts with 10% occurance when user chooses goAdventuring()\n\t\t */\n\t\tif (random == 0) {\n\t\t\tSystem.out.println(\"You see nothing but unicorns running in the swaying grass..\");\n\t\t\tSystem.out.println(\"[press enter to continue]\");\n\t\t\tsc.nextLine();\n\t\t}\n\n\t\t/**\n\t\t * Chooses storyboard and battle depending on experience level\n\t\t */\n\t\tif (experience >= 40) {\n\t\t\tStoryboardTwo.leveltwo();\n\t\t\tbattleSpider();\n\t\t}else {\n\t\t\tStoryboard.intro();\n\t\t\tbattleVampire();\n\t\t}\n\t\t}" ]
[ "0.6596663", "0.6156504", "0.61284184", "0.605365", "0.6013005", "0.5908672", "0.5897418", "0.5848223", "0.5847745", "0.5782629", "0.57817525", "0.5774782", "0.5735366", "0.5715652", "0.5708174", "0.5697749", "0.567968", "0.5634954", "0.56305337", "0.56262463", "0.5625059", "0.56036824", "0.5584612", "0.55786794", "0.5569891", "0.5566878", "0.5556775", "0.55463094", "0.55356985", "0.55231", "0.5500732", "0.5482835", "0.5467195", "0.54467016", "0.54451746", "0.54100513", "0.54084456", "0.5407213", "0.5389179", "0.53814435", "0.537654", "0.53764546", "0.5371664", "0.5371569", "0.5371138", "0.5367402", "0.53625405", "0.5359288", "0.5357729", "0.53452057", "0.53405637", "0.5337058", "0.53359777", "0.53314334", "0.5330893", "0.53274393", "0.5327411", "0.53232735", "0.5315908", "0.53080636", "0.5299917", "0.52999043", "0.52958566", "0.5295206", "0.52917737", "0.5291357", "0.5281999", "0.52752864", "0.5271863", "0.5269583", "0.5253171", "0.52517855", "0.524501", "0.5241721", "0.52416855", "0.5239222", "0.5213791", "0.5211957", "0.5207453", "0.52046925", "0.52046114", "0.52045864", "0.5202875", "0.52023065", "0.51914173", "0.5189825", "0.51879495", "0.518542", "0.51835406", "0.51801014", "0.5178805", "0.5175248", "0.5170797", "0.5168028", "0.51662636", "0.51645464", "0.5160233", "0.514799", "0.5143099", "0.51418436" ]
0.64309835
1
This method reveals the door that is neither the one with the car or the one that the user chose. use a for loop to go through every door and compared whether or not if the car door number equals to the number that the user chose. If so, it continues in the for loop. It also compares if the
public static int doorToReveal(int c, int u) { for(int i = 1; i < 4; i ++) { if (i != c && i != u) { return i; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDoorSelected(int i) {\n return chosen_door == doors.get(i);\n }", "public static void game()\n\t{\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tint car = (int)(Math.random() * 3 + 1);\n\t\t\n\t\t//testing\n\t\tSystem.out.println(\"car = \" + car); \n\t\t\n\t\tSystem.out.print(\"Please choose a door (1, 2, or 3) \");\n\t\tint user_pick = keyboard.nextInt();\n\t\t// get rid of the newLine from the buffer\n\t\tkeyboard.nextLine();\n\t\t\n\t\t// testing\n\t\tSystem.out.println(\"You chose door # \" + user_pick);\n\t\t\n\t\tint reveal = doorToReveal(car, user_pick);\n\t\t\n\t\t//testing\n\t\tSystem.out.println(\"Open door #: \" + reveal);\n\t\t\n\t\t//ask the user if they want to switch\n\t\tSystem.out.println(\"Do you want to switch?: \");\n\t\tString answer = keyboard.nextLine();\n\t\t\n\t\t//testing \n\t\tSystem.out.println(\"The user wants to switch \" + answer);\n\t\t\n\t\tif(answer.equals(\"yes\"))\n\t\t{\n\t\t\tuser_pick = doorToReveal1(user_pick, reveal);\n\t\t\n\t\t}\n\t\t\n\t\tif ( car == user_pick )\n\t\t\tSystem.out.print(\"You win!!\");\n\t\telse\n\t\t\tSystem.out.println(\"Sorry! You lose !!!\");\n\t\n\t}", "public void selectedDoor(int i) {\n if (stage != Stage.BEGINNING) {\n throw new RuntimeException(\"Invalid Stage\");\n }\n chosen_door = doors.get(i);\n if (doors.get(i).getContains() == Contains.CAR) {\n if (chosen_door == doors.get(2)) {\n doors.get(i - 1).open();\n } else {\n doors.get(i + 1).open();\n }\n } else {\n for (Door extraDoor : doors) {\n if (extraDoor == chosen_door) {\n continue;\n }\n if (extraDoor.getContains() == Contains.CAR) {\n continue;\n }\n extraDoor.open();\n }\n }\n for (\n Door door : doors)\n\n {\n if (door == chosen_door) {\n continue;\n\n }\n if (door.getState() == State.OPEN) {\n continue;\n }\n\n switch_door = door;\n }\n\n stage = Stage.DOOR_CHOSEN;\n }", "private void checkIfWon() {\r\n\r\n Car temp;\r\n int carInList;\r\n input = new Scanner(System.in);\r\n\r\n System.out.println(\"Which vehicle did you bid on?\");\r\n cars.getListings();\r\n\r\n double winningBid = rng(1, 5000);\r\n\r\n carInList = input.nextInt();\r\n temp = cars.getCar(carInList);\r\n\r\n if (winningBid <= 1000) {\r\n System.out.println(\"You have won the bid! Congratulations!\");\r\n } else {\r\n System.out.println(\"I'm sorry, the selling price was $\" + (int) winningBid + \" above your bid\");\r\n }\r\n removeYourCar(temp);\r\n\r\n }", "public void stayDoor() {\n if (stage != Stage.DOOR_CHOSEN) {\n throw new RuntimeException(\"Invalid Stage\");\n }\n\n stage = Stage.END;\n for (Door door : doors) {\n if (door.getState() == State.CLOSED) {\n door.open();\n }\n continue;\n }\n total_stayed++;\n if (chosen_door.getContains() == Contains.CAR) {\n won_stayed++;\n }\n }", "public void switchDoors() {\n if (stage != Stage.DOOR_CHOSEN) {\n throw new RuntimeException(\"Invalid Stage\");\n\n }\n chosen_door = switch_door;\n stage = stage.END;\n for (Door door : doors) {\n if (door.getState() == State.CLOSED) {\n door.open();\n }\n continue;\n }\n total_switched++;\n if (chosen_door.getContains() == Contains.CAR) {\n won_switched++;\n }\n }", "public boolean isWin() {\n if (chosen_door.getContains() == Contains.CAR) {\n return true;\n }\n return false;\n }", "public static void inspectDoors(Player player) {\n System.out.println(\"You look for doors.\");\n System.out.println(\"You see:\");\n ArrayList<Door> doors = player.getCurrentRoom().getDoors();\n for (int i = 0; i < doors.size(); i++) {\n System.out.print(\"\\t(\" + i + \") \");\n doors.get(i).inspect();\n }\n System.out.println(\"Which door will you take? (-1 to stay)\");\n }", "private Car identifyCarWinner(Collection<Car> cars) {\n\t\tOptional<Car> winner = cars.stream()\n\t\t\t.max((x, y) -> Comparator.<Double>naturalOrder()\n\t\t\t.compare(x.getDistance(), y.getDistance()));\n\t\t\n\t\treturn winner.get();\n\t}", "public boolean onDoor(){\n\t\tint yp = 0; int xp = 0;//coordinates to hold player position\n\t\tint yd = 1; int xd = 1;//coordinates to hold door position\n\t\tfor(int i = 0; i < this.position.length; i ++){//looks though arrays to gather position\n\t\t\tfor(int p = 0 ; p < this.position.length; p++){\n\t\t\t\tif(this.position[i][p] == 1 && this.Door[i][p] == 1){\n\t\t\t\t\typ = i; xp = p;\n\t\t\t\t\tyd = i; xd = p;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\tif(yp==yd && xp==xd){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;//if they are not in the same location, return false\n\t}", "private boolean checkDoor(Door door){\n\n\t \treturn(door.getStatus().equalsIgnoreCase(\"Unlocked\"));\n\t \t\t//return true;//returns the value true\n\t //else\n\t \t //return false;//returns the value false\n\t }", "private void ex03(){\n final int building;\n building = 99;\n\n //The number of floors of a tall building under construction\n //Data type: integer\n int buc; // buc stands for building under construction\n buc = 20;\n\n //A distance between two buildings\n //Data type: int\n int distance;\n distance = 3984;\n\n //The state of a door lock\n //Data type: boolean\n boolean locked = false;\n boolean unlocked = true;\n\n\n //Your telephone number\n //Data type: string\n String number;\n number = \"12345678\";\n\n //The percentage of students enrolled in FIT1051 this semester to all other units\n //Data type:double + char\n double percentage;\n percentage = 50.0;\n char per='%';\n\n //Your weight in kilos\n //Data type: double\n double weight;\n weight = 44.0;\n\n //The weight of a litre of water in kilos\n //Data type: double\n double kilo;\n kilo = 0.001;\n\n //The state of coin tossing\n //Data type: boolean\n boolean head = true;\n boolean tail = false;\n\n //The state of dice rolling\n //Data type: integer\n int roll1=1;\n int roll2=2;\n int roll3=3;\n int roll4=4;\n int roll5=5;\n int roll6=6;\n\n //Whether the stock market was \"bear\" or \"bull\" or flat today\n //Data type: boolean\n boolean bear = false;\n boolean bull = true;\n boolean flat = Boolean.parseBoolean(null);\n\n myWindow.clearOut();\n myWindow.writeOutLine(\"The number of floors of a tall building: \"+building+\" floors\");\n myWindow.writeOutLine(\"The number of floors of a tall building under construction: \" +buc+\" floors\");\n myWindow.writeOutLine(\"The distance between two buildings: \"+distance+\" meters\");\n myWindow.writeOutLine(\"The door is unlocked: \"+locked);\n myWindow.writeOutLine(\"Your telephone number: \"+number);\n myWindow.writeOutLine(\"The percentage of students enrolled in FIT1051 this semester to all other units: \"+percentage+per);\n myWindow.writeOutLine(\"Your weight in kilos: \"+weight+\" kg\");\n myWindow.writeOutLine(\"The weight of 1 litre of water in kilos: \"+kilo+\" kL\");\n myWindow.writeOutLine(\"The state of coin tossing is head: \"+head);\n myWindow.writeOutLine(\"The state of dice rolling: \"+roll2);\n myWindow.writeOutLine(\"The stock market was bull today: \"+bull);\n //YOUR CODE ABOVE HERE\n }", "public boolean doorTicker()\n\t{\n\t\tif(!isDoor)\n\t\t\treturn false;\n\t\tif(stateOfDoor!=this.DOOR_STATE_OPENING)\n\t\t\treturn false;\n\t\t\n\t\t//Now, find angle to (x2,y2) (which is the moving end of the wall)\n\t\t//to (x1,y2) relative to (originalX,originalY) which is a copy of x2,y2\n\t\t//set x2,y2 so that the angle is now a little larger, if that angle is now\n\t\t//greater than PI/2, set the stateOfDoor as OPEN\n\t\t\n\t\tdouble angleTo2 = this.angleToSide2(x1,y1);\n\t\t\n\t\tdouble newAngle;\n\t\t\n\t\tif(swingingWay1)\n\t\t{\n\t\t\tnewAngle= angleTo2 + ANGLE_CHANGE;\n\t\t\tticks++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewAngle= angleTo2 - ANGLE_CHANGE;\n\t\t\tticks--;\n\t\t}\n\t\t\n\t\t//distance from pivot\n\t\tdouble dx = this.length()*Math.cos(newAngle);\n\t\tdouble dy = this.length()*Math.sin(newAngle);\n\t\t\n\t\tx2 = x1+dx;\n\t\ty2 = y1+dy;\n\n\t\t//BECAUSE X2 and Y2 have changed, certain values need to be recalculated so that it paints ok\n\t\tmx = (x1+x2)/2;\n\t\tmy = (y1+y2)/2;\n\t\tif(x1!=x2)\n\t\t{\n\t\t\tm = (this.y1-this.y2)/(this.x1-this.x2);\n\t\t\tb = y1-m*this.x1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm = 0;\n\t\t\tb = 0;\n\t\t}\n\t\t\n\t\t\n\t\t//now check if the door is all the way open\n\t\tdouble angleToOriginal = this.angleToOriginal(x1,y1);\n\t\t\n\t\t//if((newAngle-angleToOriginal>Math.PI/2)||(newAngle-angleToOriginal<-Math.PI/2))\n\t\t//if(ArtWork.isBetween(angleToOriginal-3*Math.PI/4, ArtWork.normalizeAngle(angleToOriginal+3*Math.PI/4), newAngle))\n\t\tif((ticks*ANGLE_CHANGE>Math.PI/2)||(ticks*ANGLE_CHANGE<-Math.PI/2))\n\t\t\tstateOfDoor=this.DOOR_STATE_OPEN;//stop!\n\t\t\n\t\treturn true;\n\t}", "public static void main(String [] args){\n int intChoice1,intChoice2,intChoice3,intChoice4;\r\n int intNumRight = 0;\r\n \r\n //Create scanner\r\n Scanner sc = new Scanner(System.in);\r\n \r\n //clear the screen\r\n CLS();\r\n \r\n // Get user input \r\n System.out.println(\"\\n\\n Pick 4 lotter numbers between 0 and 9\\n\");\r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice1 = sc.nextInt(); \r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice2 = sc.nextInt(); \r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice3 = sc.nextInt(); \r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice4 = sc.nextInt(); \r\n \r\n //clear the screen\r\n CLS();\r\n \r\n //array to hold lottery numbers\r\n int [] intLotteryNumbers = new int[4]; \r\n \r\n //fill lottery number array\r\n Random rand = new Random();\r\n for(int x = 0; x < intLotteryNumbers.length; x++){\r\n intLotteryNumbers[x] = rand.nextInt(9);\r\n for (int y = 0; y < x; y++){\r\n if(intLotteryNumbers[x] == intLotteryNumbers[y]){\r\n x--;\r\n break;\r\n } \r\n }//if statement checks if duplicate value and resets the outer loop \r\n \r\n }\r\n System.out.println(\"\\n\\n The winning Numbers are >\\n\");\r\n for(int z = 0;z < intLotteryNumbers.length;z++ ){\r\n System.out.println(\"\\t\" + intLotteryNumbers[z]);\r\n }\r\n \r\n for(int a = 0;a < intLotteryNumbers.length;a++ ){\r\n if(intChoice1 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n else if(intChoice2 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n else if(intChoice3 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n else if(intChoice4 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n }\r\n System.out.println(\"\\n\\n The numbers you chose are \" + intChoice1 + \", \" + intChoice2 + \", \" + intChoice3 + \", \" + intChoice4 + \"\\n\");\r\n \r\n switch(intNumRight){\r\n case 0: //No matches\t0 points\r\n System.out.println(\" Sorry you didn't get any numbers right 0 points\");\r\n break;\r\n case 1://Any one digit matching\t5 points\r\n System.out.println(\" You got 1 number right and earned 5 points\");\r\n break;\r\n case 2://Any two digits matching\t100 points\r\n System.out.println(\" You got 2 number right and earned 100 points\");\r\n break;\r\n case 3://Any three digits matching\t2,000 points\r\n System.out.println(\" You got 3 number right and earned 2,000 points\");\r\n break;\r\n case 4://All four digits matching\t1,000,000 points\r\n System.out.println(\" You got all numbers right and earned 1,000,000 points\");\r\n break;\r\n }\r\n \r\n }", "public static void RGB7170(int floor, int doors, int toFind){\n int JohnFloor = toFind / doors;\n if(toFind % doors != 0){\n JohnFloor++;\n }\n\n int thDoor = toFind%doors;\n if(toFind%doors == 0){\n thDoor = doors;\n }\n System.out.println(JohnFloor + \" \" + thDoor);\n }", "public void effetDeCarte(int idEffet, Joueur joueurQuiJoueLaCarte, Plateau plateau) {\n switch (idEffet) {\n case 0:\n joueurQuiJoueLaCarte.deck.piocher(1);\n break;\n case 1:\n joueurQuiJoueLaCarte.deck.piocher(2);\n break;\n case 2:\n joueurQuiJoueLaCarte.deck.piocher(3);\n break;\n case 3:\n joueurQuiJoueLaCarte.gagnerDegats(1);\n break;\n case 4:\n joueurQuiJoueLaCarte.gagnerDegats(2);\n break;\n case 5:\n joueurQuiJoueLaCarte.gagnerDegats(3);\n\n break;\n case 6:\n joueurQuiJoueLaCarte.gagnerDegats(4);\n break;\n case 7:\n joueurQuiJoueLaCarte.gagnerRunes(1);\n break;\n case 8:\n gagnerDesRunes(joueurQuiJoueLaCarte,2);\n break;\n case 9:\n gagnerDesRunes(joueurQuiJoueLaCarte,3);\n break;\n case 11:\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n gagnerDesDegats(joueurQuiJoueLaCarte,1);\n break;\n case 12:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(1);\n break;\n case 14:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n joueurQuiJoueLaCarte.piocher(1);\n break;\n case 15:\n joueurQuiJoueLaCarte.tuerUneCarteAvecDeLattaqueGratuitement(plateau);\n System.out.println(\"DEfeat a monster that has 4 D or less without paying it cost\");\n break;\n case 16:\n System.out.println(\"DEfeat a monster that has 6 D or less without paying it cost\");\n break;\n case 17:\n //joueurQuiJoueLaCarte.deck.piocher(1);\n System.out.println(\" You may banish a card in the center row\");\n break;\n case 18:\n System.out.println(\"Discard a card, if you do, draw two cards\");\n break;\n case 19:\n System.out.println(\"Copy l'effet d'un Héros joué ce tour-ci\");\n break;\n case 20:\n System.out.println(\"Once per turn you may draw a card\");\n break;\n case 21:\n System.out.println(\"You may banish this Construct to take an additional turn after this one.\");\n break;\n case 22:\n System.out.println(\"Acquire a Hero without paying its cost. Place in on top of your deck.\");\n break;\n case 23:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(1);\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n break;\n case 24:\n gagnerDesRunes(joueurQuiJoueLaCarte,2);\n verifLifebound(joueurQuiJoueLaCarte);\n break;\n case 25:\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n joueurQuiJoueLaCarte.deck.piocher(1);\n break;\n case 26:\n System.out.println(\"Once per turn, gain 1 runes, the first time you play a lifebound hero, each turn gain 1 recompense\");\n break;\n case 27:\n System.out.println(\"Once per turn , gain 1d\" +\n \"Once per turn, you may spend 4r to gain 3 recompense\");\n break;\n case 28:\n gagnerDesDegats(joueurQuiJoueLaCarte,2);\n plusDeDeuxConstructeur(joueurQuiJoueLaCarte);\n System.out.println(\"Draw a card if you control 2 or moreConstrcut\");\n break;\n case 29:\n System.out.println(\"Gain 1d or 1r\");\n break;\n case 30:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Gain 2r You pay 1R less the next time you acquire a Construc this turn\");\n break;\n case 31:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Once per turn, when you put a Mechana Construc into play (including this one) , draw a card\");\n break;\n case 32:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Once per turn, gain 2d.You may spend it only to acquire Mechana Construct\");\n break;\n case 33:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\" Once per turn\");\n gagner1DParTourPourChaqueMechaConstruct(joueurQuiJoueLaCarte);\n\n break;\n case 34:\n System.out.println(\"You may treat all Construcs as Mechana Construcs\");\n break;\n case 35:\n System.out.println(\"Once per turn, when you acquire another Mechana Construc, you may put it directly into play\");\n break;\n case 36:\n System.out.println(\"Once per turn ,gain 1 r . you may spend it only to acquire Mechana Construc\");\n break;\n case 37:\n joueurQuiJoueLaCarte.deck.piocher(2);\n System.out.println(\"Banish a card in you hand\");\n break;\n case 38:\n gagnerDesDegats(joueurQuiJoueLaCarte,2);\n System.out.println(\"Banish a card in you hand or discard pile\");\n break;\n case 39:\n gagnerDesDegats(joueurQuiJoueLaCarte,1);\n System.out.println(\"Banish a card in you hand or discard pile\");\n break;\n case 40:\n System.out.println(\"Once per turn, gain 3d\");\n break;\n case 41:\n System.out.println(\"Once per turn, gain 1d\");\n break;\n case 42:\n System.out.println(\"Once per turn gain 1 The first time you deafeat a monster in the center row each turn, gain 1 R\");\n break;\n case 43:\n System.out.println(\"Unbanishable You may acquire or defeat any car in the center row without paying its cost\");\n break;\n case 44:\n System.out.println(\"Each opponent must destryo a Construc he controls\");\n break;\n case 45:\n System.out.println(\"Banish a card un the center row and/or in you discard pile\");\n break;\n case 46:\n System.out.println(\"Banish a card un the center row\");\n break;\n case 47:\n System.out.println(\"If an opponent has more than one construct, that player must destroy all but one Construct he controls\");\n break;\n case 48:\n System.out.println(\"Take a card at random from each oppenent's hand and add that card to your hands\");\n break;\n }\n\n }", "private boolean _checkDoors(int x, int y) {\n\t\t\n\t\tfor(Door door : DKObject.level.getDoors()) {\n\t\t\t\n\t\t\tif(door.equalPosition(x, y) && !door.isOpen())\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private void checkTurns(int i) {\n Random r = new Random();\n Road road = roads.get(i);\n if (road.vehiclesOffRoad.size() > 0) {\n for (int n = 0; n < road.vehiclesOffRoad.size(); n++) {\n int ref;\n int speed = road.vehiclesOffRoad.get(n).getSpeed();\n String type = road.vehiclesOffRoad.get(n).getType();\n\n if (road.connectedRoads.size() == 3) {\n int j = r.nextInt(3);\n if (isEmpty(road.connectedRoads.get(j),\n road.vehiclesOffRoad.get(n).getLength())) {\n ref = road.connectedRoads.get(j);\n addVehicle(type, speed, ref);\n road.vehicles.remove(n);\n\n } else road.vehicles.get(n).setPos(road.getRoadEnd());\n\n } else if (road.connectedRoads.size() == 2) {\n int j = r.nextInt(2);\n if (isEmpty(road.connectedRoads.get(j),\n road.vehiclesOffRoad.get(n).getLength())) {\n ref = road.connectedRoads.get(j);\n addVehicle(type, speed, ref);\n road.vehicles.remove(n);\n } else road.vehicles.get(0).setPos(road.getRoadEnd());\n\n } else if (road.connectedRoads.size() == 1) {\n if (isEmpty(road.connectedRoads.get(0),\n road.vehiclesOffRoad.get(n).getLength())) {\n\n ref = road.connectedRoads.get(n);\n addVehicle(type, speed, ref);\n road.vehicles.remove(n);\n } else road.vehicles.get(0).setPos(road.getRoadEnd());\n } else if (road.connectedRoads.size() == 0) {\n road.vehicles.remove(n);\n road.reset_offRoad();\n }\n\n\n }\n }\n road.reset_offRoad();\n\n }", "private static void purchaseCar(Scanner scan, List<UsedCar> carList, int menuChoice, int numCars) {\n String input = \"\";\n\n if (menuChoice == numCars) { // if user chooses to quit then jump out of the loop. this ensures we won't get\n // an out of bounds exception\n return;\n }\n do { // prints menu choice and queries user + code for validiation of input\n \n System.out.printf(\"%-10s \\t\", carList.get(menuChoice).makeGet());\n System.out.printf(\"%-10s \\t\", carList.get(menuChoice).modelGet());\n System.out.printf(\"%-7d \\t\", carList.get(menuChoice).yearGet());\n \n if (carList.get(menuChoice).mileGet() != 0.0) { //if the car has greater than 0.0 miles it is used so we change output to reflect additional field \n System.out.printf(\"$%-6.2f \\t\", carList.get(menuChoice).priceGet());\n System.out.printf(\" (Used) Mileage: %-6.1f \\n\", carList.get(menuChoice).mileGet());\n } else { //if it's a new car then no need to print mileage\n System.out.printf(\"$%-6.2f \\n\", carList.get(menuChoice).priceGet());\n }\n // System.out.println(carList.get(menuChoice));\n \n scan.nextLine(); //consume the carriage return\n System.out.println(\"Would you like to buy this car?\");\n input = scan.nextLine();\n\n if (!(input.equalsIgnoreCase(\"y\")) && (!(input.equalsIgnoreCase(\"n\")))) {\n System.out.println(\"Invalid input. Please enter y or n\");\n }\n } while (!(input.equalsIgnoreCase(\"y\")) && (!(input.equalsIgnoreCase(\"n\"))));\n\n if (input.equalsIgnoreCase(\"y\")) {\n System.out.println(\"Excellent! Our finance department will be in touch shortly.\");\n carList.remove(menuChoice);\n }\n }", "public boolean getDoor( int d){\n\t\tswitch( d){\n\t\t\tcase CONST.NORTH:\n\t\t\t\treturn doorN;\n\t\t\tcase CONST.EAST:\n\t\t\t\treturn doorE;\n\t\t\tcase CONST.SOUTH:\n\t\t\t\treturn doorS;\n\t\t\tcase CONST.WEST:\n\t\t\t\treturn doorW;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}", "public boolean humanPlayerTypeSelectionMenu(Scanner keyboardIn) {\n boolean selectedOdds = true;\n\n keyboardIn = new Scanner(System.in);\n int selection = 0;\n\n do{\n System.out.println(\"Would you like to play Odds or Even? Please select\");\n System.out.println(\"1. Odds\");\n System.out.println(\"2. Even\");\n selection = keyboardIn.nextInt();\n } while (selection != 1 && selection != 2);\n \n if (selection == 1){\n selectedOdds = true;\n }\n else selectedOdds = false;\n\n return selectedOdds;\n }", "public void setIsdoor(Integer isdoor) {\n this.isdoor = isdoor;\n }", "@Override\n public void interactWith(Door door) {\n if(door instanceof CastleDoor){ //CASTLE DOOR\n if(door.isOpen()){\n setIsPassingADoor(door);\n ((CastleDoor) door).close();\n } else {\n if(possess(ARPGItem.CASTLEKEY)){\n ((CastleDoor) door).open();\n }\n }\n } else { //SIMPLE DOOR\n setIsPassingADoor(door);\n }\n }", "public void iDoor(){ // is it because of void we don't need return method\n\t\tint numDoor=4;\n\t}", "public boolean showCars(){\n if (carRentalFileDB.getAvailableCars().isEmpty()){\n System.out.println(\"\\nWe are sorry, no cars available at the moment. \\nPlease come back later.\");\n return false;\n\n } else{\n System.out.println(\"\\nHere are our available cars, please enter car ID from the following list\\n\");\n\n for(Car car : carRentalFileDB.getAvailableCars()){\n System.out.println(\"Car ID:\" + car.getCarID() + \" Model:\"+ car.getMake() + \" Renting Price:\" + car.getPrice());\n }\n\n return true;\n }\n\n }", "public static void secondOne() {\n\t\tObject[] option = { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"reset\" };\n\t\telipse = JOptionPane.showOptionDialog(frame, \"are these doors to a farm? or are you just high?\", \"be prepared\",\n\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, icon, option, option[9]);\n\t\thighDoors();\n\t}", "public void getAllDoors() {\n //System.out.println();\n System.out.println(\"\\nDOOR/ARCHWAY DESCRIPTION\");\n System.out.println(\"----------------------------------------------------------------\\n\");\n //System.out.println();\n if (doorDescription.contains(\"archway\")) {\n System.out.println(\"ARCHWAY DESCRIPTION: \" + doorDescription);\n } else {\n System.out.println(\"DOOR DESCRIPTION: \" + doorDescription);\n }\n //System.out.println();\n System.out.println(\"\\n----------------------------------------------------------------\");\n }", "public static void checkForAgentsWithPeopleInCar() {\n\t\tfor(int i=0; i<numOfAgents; i++) {\n\t\t\tagents[i].peopleInCar += peopleToSave[agents[i].position];\n\t\t\tpeopleToSave[agents[i].position]=0;\n\t\t}\n\t}", "public int pickDoorSpot() {\n\t\tint doorSpot = ThreadLocalRandom.current().nextInt(1, ((getRoomWidth() * 2) + ((getRoomLength() - 1) * 2)));\r\n\t\treturn doorSpot;\r\n\t}", "private void searchSpecificCar() {\n\t\tSystem.out.print(\"Enter Registration Number: \");\n\t\tSystem.out.println(application.displaySpecificCar(console.nextLine()));\n\t}", "public boolean isDoor() {\n return this.type == Type.DOOR;\n }", "private void computeWinLose() {\n\n if (!id11.getText().isEmpty()) {\n if ((id11.getText().equals(id00.getText()) && id11.getText().equals(id22.getText())) ||\n (id11.getText().equals(id02.getText()) && id11.getText().equals(id20.getText())) ||\n (id11.getText().equals(id10.getText()) && id11.getText().equals(id12.getText())) ||\n (id11.getText().equals(id01.getText()) && id11.getText().equals(id21.getText()))) {\n winner = id11.getText();\n }\n }\n\n if (!id00.getText().isEmpty()) {\n if ((id00.getText().equals(id01.getText()) && id00.getText().equals(id02.getText())) ||\n id00.getText().equals(id10.getText()) && id00.getText().equals(id20.getText())) {\n winner = id00.getText();\n }\n }\n\n if (!id22.getText().isEmpty()) {\n if ((id22.getText().equals(id21.getText()) && id22.getText().equals(id20.getText())) ||\n id22.getText().equals(id12.getText()) && id22.getText().equals(id02.getText())) {\n winner = id22.getText();\n }\n }\n\n // If all the grid entries are filled, it is a draw\n if (!id00.getText().isEmpty() && !id01.getText().isEmpty() && !id02.getText().isEmpty() && !id10.getText().isEmpty() && !id11.getText().isEmpty() && !id12.getText().isEmpty() && !id20.getText().isEmpty() && !id21.getText().isEmpty() && !id22.getText().isEmpty()) {\n winner = \"Draw\";\n }\n\n if (winner != null) {\n if (\"X\".equals(winner)) {\n winner = playerX;\n } else if (\"O\".equals(winner)) {\n winner = playerO;\n } else {\n winner = \"Draw\";\n }\n showWindow(winner);\n }\n }", "public static void main(String[] args){\n Scanner na = new Scanner (System.in);\n boolean salir = false;\n //varianble para el switch\n int option;\n\n//ciclo while\n while(!salir){\n\n //menu\n System.out.println(\"=======OPERACIONES CON CADENAS=======\"+\"\\n\");\n System.out.println(\"1. Tamaño de cadena ingresada \");\n System.out.println(\"2. Subcadena \");\n System.out.println(\"3. Comparación de cadenas\");\n System.out.println(\"4. comparación de tamaño\");\n System.out.println(\"0. salir\"+ \"\\n\" + \"\\n\");\n\n\n try{\n System.out.println(\" Seleccione una opción \");\n option = na.nextInt();\n //scaner para variables de los case\n Scanner no = new Scanner (System.in);\n //variables\n String cadena;\n String cadena1;\n int subcad;\n int lon;\n int alm;\n\n //opciones\n switch (option) {\n\n case 1://encontrar el tamaño de una cadena\n System.out.println(\"AL INGRESAR UNA CADENA DE CARACTERES CONOCERA SU TAMAÑO\"+\"\\n\");\n System.out.println(\"Ingrese cadena para saber su tamaño\");\n cadena = no.nextLine();\n System.out.println(\"\\n\"+\"Cadena Ingresada - \" + cadena + \" -\");\n System.out.println(\"El tamaño de la cadena ingresada es: \" + cadena.length() + \"\\n\" + \"\\n\");\n break;\n\n case 2: // subcadenas\n System.out.println(\"=======SUBCADENAS=======\"+\"\\n\");\n System.out.println(\"Ingrese cadena: \");\n cadena = no.nextLine();\n System.out.println(\"Ingrese indice inicial de la cadena: \");\n subcad = no.nextInt();\n System.out.println(\"Ingrese el tamaño de la cadena que desea mostrar: \");\n lon=no.nextInt();\n alm = cadena.length();\n if (subcad+lon>alm){\n System.out.println(\"los indices son mas grandes que la cadena ingresada\"+ \"\\n\" + \"\\n\");\n }\n else{\n cadena1 = cadena.substring(subcad,subcad+lon);\n System.out.println(\"La subcadena es: - \" + cadena1 + \" -\"+ \"\\n\" + \"\\n\");\n }\n break;\n\n case 3://comparacion de palabras\n System.out.println(\"=======COMPARACION DE CADENAS=======\"+\"\\n\");\n\n System.out.println(\"Ingrese primera cadena \");\n cadena = no.nextLine();\n System.out.println(\"Ingrese segunda cadena \");\n cadena1 = no.nextLine();\n System.out.println(\"\\n\"+\" Desea Ignorar Mayusculas? \");\n System.out.println(\"1. Sí\");\n System.out.println(\"2. No\");\n System.out.println(\"0. volver\"+\"\\n\");\n subcad = no.nextInt();\n //------------------------validar no IMPORTAN LAS MAYUSCULAS------------------------\n if (subcad==1){\n\n if(cadena.equalsIgnoreCase(cadena1)){\n System.out.println(cadena +\" y \"+ cadena1+\" son iguales \"+ \"\\n\" + \"\\n\");\n }else{\n System.out.println(cadena +\" y \"+ cadena1+\" No son iguales \"+ \"\\n\" + \"\\n\");\n }\n }\n //----------------------------validar si importan las mayusculas------------------------------\n else if(subcad==2){\n if(cadena.equals(cadena1)){\n System.out.println(cadena +\" y \"+ cadena1+\" son iguales \"+ \"\\n\" + \"\\n\");\n }else{\n System.out.println(cadena +\" y \"+ cadena1+\" NO son iguales \"+ \"\\n\" + \"\\n\");\n }\n }\n else{\n System.out.println(\"volver\"+ \"\\n\" + \"\\n\");\n }\n break;\n\n\n case 4: // comparar tamaños de cadenas\n System.out.println(\"=======COMPARAR TAMAÑO DE CADENAS=======\"+\"\\n\");\n System.out.println(\"Ingrese primera cadena \");\n cadena = no.nextLine();\n System.out.println(\"Ingrese segunda cadena \");\n cadena1 = no.nextLine();\n System.out.println(\"\\n\"+\" ¿Desea Ignorar los espacios en blanco? \");\n System.out.println(\"1. Sí\");\n System.out.println(\"2. No\");\n System.out.println(\"0. volver\"+\"\\n\");\n subcad = no.nextInt();\n //----------------mostrara las cadenas sin espacios------------------------\n if (subcad==1){\n lon=cadena.replace(\" \",\"\").length();\n alm=cadena1.replace(\" \",\"\").length();\n if(lon==alm){\n System.out.println(cadena +\" (\"+ lon+\") \"+\" y \"+ cadena1+\" (\"+ alm +\") \"+\" Tienen la misma cantidad de caracteres sin espacios\"+ \"\\n\" + \"\\n\");\n }else{\n System.out.println(cadena +\" (\"+ lon+\") \"+\" y \"+ cadena1+\" (\"+alm+\") \"+\" No tienen la misma cantidad de caracteres sin espacios\"+ \"\\n\" + \"\\n\");\n }\n }\n //--------------------mostrara las cadenas con espacios------------------------------\n else if(subcad==2){\n\n if(cadena.length()==cadena1.length()){\n System.out.println(cadena +\" (\"+ cadena.length() +\") \" +\" y \"+ cadena1+\" (\"+ cadena1.length() +\") \" +\" Tienen la misma cantidad de caracteres con espacios\"+ \"\\n\" + \"\\n\");\n }else{\n System.out.println(cadena + \" (\" + cadena.length() + \") \" + \" y \"+ cadena1+\" (\"+ cadena1.length() +\") \" +\" NO Tienen la misma cantidad de caracteres con espacios\"+ \"\\n\" + \"\\n\");\n }\n }\n else{\n System.out.println(\"volver\"+ \"\\n\" + \"\\n\");\n }\n break;\n\n case 0://salir\n System.out.println(\"created by: \"+ \"\\n\"+ \"LILY\");\n salir = true;\n break;\n default:\n\n System.out.println(\"\\n\"+\"Números validos 1 - 4 (0 para salir)\");\n }\n\n }catch (InputMismatchException e) {\n System.out.println(\"\\n\"+\"Debes insertar un Número\"+\"\\n\");\n na.next();\n }\n }\n }", "static void Door2challenge() {\n System.out.println(\"Ready! 3...2...1...GO!\");\n System.out.println(\"Where do you want to go? Left, Right, or Straight\");\n direction = next.nextLine();\n //this is where the player will decide where to go\n //the rest of the maze will branch off from this decision. These choices will have the same outcome.\n \n if(direction.contains(\"left\")) {\n door2challenge_leftpath();\n //player enters the left branch maze\n \n }else if(direction.contains(\"right\")){\n door2challenge_rightpath();\n //player enters the right branch of the maze\n \n }else if(direction.contains(\"straight\")){\n door2challenge_straightpath();\n //player enters the straight branch of the maze\n }else{\n System.out.println(\"I don't understand...type it correctly!!!\");\n Door2challenge();\n }\n \n }", "public int chooseDirection(){\n int direction;\n do{\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Choose a transfer method.\\n(1) from saving to checking.\\n(2) from checking to saving.\");\n direction = scanner.nextInt();\n } while(!(direction !=1 || direction !=2));\n return direction;\n }", "public void check4winner(){\n String winner = \"\";\n //checking different combinations\n if((circle1 && circle2 && circle3) ||\n (circle4 && circle5 && circle6) ||\n (circle7 && circle8 && circle9) ||\n (circle1 && circle4 && circle7) ||\n (circle2 && circle5 && circle8) ||\n (circle3 && circle6 && circle9) ||\n (circle1 && circle5 && circle9) ||\n (circle3 && circle5 && circle7)){\n //highlighting the winning combination\n if((circle1 && circle2 && circle3)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle4 && circle5 && circle6)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle7 && circle8 && circle9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle1 && circle4 && circle7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle2 && circle5 && circle8)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle3 && circle6 && circle9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle1 && circle5 && circle9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle3 && circle5 && circle7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n\n winner = \"circlewins\";\n winner(winner);\n } else if((cross1 && cross2 && cross3) ||\n (cross4 && cross5 && cross6) ||\n (cross7 && cross8 && cross9) ||\n (cross1 && cross4 && cross7) ||\n (cross2 && cross5 && cross8) ||\n (cross3 && cross6 && cross9) ||\n (cross1 && cross5 && cross9) ||\n (cross3 && cross5 && cross7)){\n\n if((cross1 && cross2 && cross3)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross4 && cross5 && cross6)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross7 && cross8 && cross9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross1 && cross4 && cross7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross2 && cross5 && cross8)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross3 && cross6 && cross9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross1 && cross5 && cross9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross3 && cross5 && cross7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n\n winner = \"crosswins\";\n winner(winner);\n } else {\n return;\n }\n }", "public void clickSurCarte(CarteModel carteJouer) throws IOException{\n\t\tif (ajm.estJoueurCourant() && !platMod.retourneFinDeManche())\n\t\t{\n\t\t\t//Si le joueur doit piocher une carte chez le joueur précédent\n\t\t\tif (platMod.retournePiocheChezJoueur())\n\t \t{\n\t\t\t\tSystem.out.println(\"Vous piochez chez un joueur\");\n\t\t\t\tnew DialogVuePiocheChezJoueur(jv, platMod); \n\t\t\t\tjv.validate();\n\t\t\t//sinon, c'est qu'il peut jouer une carte de son choix, a condition qu'elle soit valide et qu'il n'est pas à piocher\n\t \t}else if (platMod.peutJouerCarte(carteJouer)){\n\t \t//Si le joueur joue une carte alors qu'il aurait du prévenir \"Carte !\", il pioche deux cartes\n\t \t\tif(((JoueurHumain)ajm).retourneDerCarte())\n\t \t\t{\n\t \t\t\tSystem.out.println(\"Vous piochez deux cartes car vous n'avez pas cliquer sur Carte ! avant de jouer votre avans dernière carte\");\n\t \t\t\tajm.piocherCarteMultiple(platMod.retourneModelPioche(), 2);\n\t \t\t\tplatMod.roulementJoueurCourant();\n\t \t\t//Sinon, sa carte est prit en compte et est joué\n\t \t\t}else{\n\t \t\t\tSystem.out.println(\"Vous jouez la carte : \"+carteJouer.toString());\n\t\t\t\t\tArrayList<CarteModel> listCarteJouable = new ArrayList<CarteModel>(); //La liste ne contient que la carte cliqué valide\n\t\t\t\t\tlistCarteJouable.add(carteJouer);\n\t\t\t\t\tajm.jouer(platMod, listCarteJouable);\n\t\t\t\t\t\n\t\t\t\t\t//Pour le huit et le 15, le passage au joueur suivant se fera après un clic sur l'IHM\n\t\t\t\t\tif (carteJouer.retourneTaille() == 8 || carteJouer.retourneTaille() == 15) \n\t\t\t\t\t\tnew DialogVueChoixCouleur(jv, platMod);\n\t\t\t\t\telse \n\t\t\t\t\t\tplatMod.roulementJoueurCourant();\n\t \t\t}\n\t \t}\n\t\t}\n\t}", "@Test\r\n\tpublic void testChooseResultWithUnChangeCarPositionSecond() {\r\n\t\tMontyHall monty = new MontyHall();\r\n\t\tmonty.setTheDoorWithCar(1);\r\n\t\tmonty.setChanged(false);\r\n\t\tmonty.setUserChoosedDoor(0);\r\n\t\tassertEquals(2, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(1);\r\n\t\tassertNotEquals(1, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(true, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(2);\r\n\t\tassertEquals(0, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\t}", "@Test\r\n public void testPlayer_getDumbStrategyCard_differentWinners() {\r\n player2 = new Player(\"\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n boolean differentLegalCardFound = false;\r\n Card firstDiscard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n for(int i = 0; i < 25; i++) {\r\n Card loopCard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n if(!loopCard.equals(firstDiscard)) {\r\n differentLegalCardFound = true;\r\n }\r\n }\r\n assertTrue(differentLegalCardFound);\r\n }", "private void drink()\n { \n if(i.item3 == true && i.used == false)\n {\n p.energy += 70;\n i.item3 = false;\n i.used = true;\n System.out.println(\"Energy: \" + p.energy);\n }\n else if(i.used == true && i.item3 == false) \n {\n System.out.println(\"You already drank a redbull!\"); \n }\n else if(i.item3 == false && i.used == false)\n {\n System.out.println(\"no more drinks left!\");\n }\n }", "public static void OrdenarNumeros(){\n\t\t//Variables\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tString tomar;\n\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese tres numeros numero\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tc=reader.nextInt();\n\t\tif(a>b && b>c){\n\t\t\tTexto=a+\",\"+b+\",\"+c;\n\t\t}else if(a>c && c>b){\n\t\t\tTexto=a+\",\"+c+\",\"+b;\n\t\t}else if(b>a && a>c){\n\t\t\tTexto=b+\",\"+a+\",\"+c;\n\t\t}else if(b>c && c>a){\n\t\t\tTexto=b+\",\"+c+\",\"+a;\n\t\t}else if(c>a && a>b){\n\t\t\tTexto=c+\",\"+a+\",\"+b;\n\t\t}else if(c>b && b>a ){\n\t\t\tTexto=c+\",\"+b+\",\"+a;\n\t\t}\n\t\tSystem.out.println(Texto);\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "public void setDoor() {\n\t\tisaDoor = true;\n\t}", "public void determinarGanador() {\n\t\t\n\t\t if(valorManos[3]>21) {\n\n\t\t\t for(int i=0;i<3;i++) {\n\t\t\t\t if(valorManos[i]<=21) {\n\t\t\t\t\t ganador.add(idJugadores[i]);\n\t\t\t\t }\n\t\t\t }\n\t\t }else if(((valorManos[0] <= valorManos[3]) && (valorManos[1] <= valorManos[3]) &&( valorManos[2] <= valorManos[3]))\n\t\t\t\t && valorManos[3] <= 21){\n\n\t\t\t ganador.add(\"dealer\");\n\n\t\t\t// numGanadores ++;\n\t\t }else if(valorManos[0]>21 && valorManos[1] >21 && valorManos[2]>21 && valorManos[3] <= 21) {\n\n\t\t\t ganador.add(\"dealer\");\n\n\t\t }\n\t\t else { \n\t\t\t for(int i=0;i<3;i++) {\n\t\t\t\t if(valorManos[i]>valorManos[3] && valorManos[i]<=21) {\n\t\t\t\t\t ganador.add(idJugadores[i]);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t \n\t\t if(valorManos[0] > 21 && valorManos[1] > 21 && valorManos[2] > 21 && \n\t\t\t\t valorManos[3] > 21){\n\t\t\t\n\t\t }else if(valorManos[3]<21 && ganador.size()==0){\n\t\t\t ganador.add(\"dealer\");\n\t\t }\n\t }", "@Override\n public void onClick(View view) {\n\n if (door2button.isEnabled() || door2_tf) {\n door2button.setImageResource(R.drawable.closed_door);\n }\n if (door3button.isEnabled() || door3_tf){\n door3button.setImageResource(R.drawable.closed_door);\n }\n\n door1button.setImageResource(R.drawable.closed_door_chosen);\n door1button.setEnabled(false);\n door1_tf = true;\n door1_clicked = true;\n\n if (door2_clicked) {\n door2button.setEnabled(false);\n }\n if (door3_clicked) {\n door3button.setEnabled(false);\n }\n\n\n if (door1_tf && !door2_tf && !door3_tf) {\n Runnable run1 = new Runnable() {\n @Override\n public void run() {\n // Get random number\n int ran1 = random_number.nextInt(2) + 1;\n\n // Play Goat sound\n mpGoat.start();\n\n // If r = 1, change 2nd door\n if (ran1 == 1) {\n door2button.setImageResource(R.drawable.goat);\n door2button.setEnabled(false);\n\n prompt.setText(\"3 Seconds To Pick Again.\\n Choose New or Do Nothing.\");\n\n Runnable run2 = new Runnable() {\n @Override\n public void run() {\n // Player Switches Pick from door 1 to door 3\n if (door3_tf) {\n door1_tf = false;\n door3button.setEnabled(false);\n door1button.setImageResource(R.drawable.closed_door);\n\n\n\n doorCountDown(door3button);\n\n Runnable doorDelay1 = new Runnable() {\n @Override\n public void run() {\n // Correct door was chosen (door 3)\n int ran2 = random_number.nextInt(2) + 1;\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door3button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n\n }\n };Handler d1 = new Handler();\n d1.postDelayed(doorDelay1, 3000);\n\n\n }\n // Player keeps choice\n else {\n\n doorCountDown(door1button);\n\n Runnable doorDelay2 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 3)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door1button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d2 = new Handler();\n d2.postDelayed(doorDelay2, 3000);\n }\n }\n };\n Handler h2 = new Handler();\n h2.postDelayed(run2, 3000);\n }\n // If r = 2, change 3rd door\n else {\n door3button.setImageResource(R.drawable.goat);\n door3button.setEnabled(false);\n prompt.setText(\"3 Seconds To Pick Again.\\n Choose New or Do Nothing.\");\n\n Runnable run2 = new Runnable() {\n @Override\n public void run() {\n // Player Switches Pick from door 1 to door 2\n if (door2_tf) {\n door1_tf = false;\n door2button.setEnabled(false);\n door1button.setImageResource(R.drawable.closed_door);\n\n doorCountDown(door2button);\n\n Runnable doorDelay3 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 2)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door2button.setImageResource(R.drawable.car);\n door3button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d3 = new Handler();\n d3.postDelayed(doorDelay3, 3000);\n }\n // Player keeps choice\n else {\n\n doorCountDown(door1button);\n\n Runnable doorDelay4 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 2)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d4 = new Handler();\n d4.postDelayed(doorDelay4, 3000);\n }\n }\n };\n Handler h2 = new Handler();\n h2.postDelayed(run2, 3000);\n }\n }\n };\n Handler h = new Handler();\n h.postDelayed(run1, 500);\n }\n }", "public static void main(String[] args) {\n\t\tScanner a=new Scanner(System.in);\r\n\t\t/*System.out.println(\"Enter the number\");\r\n\t\tSystem.out.println(\"1.Micro\");\r\n\t\tSystem.out.println(\"2.Prime\");\r\n\t\t\r\n\t\tint cab=a.nextInt();\r\n\t\tSystem.out.println(\"Enter the KM\");\r\n\t\tint Km=a.nextInt();\r\n\t\tif(cab==1) {\r\n\t\t\tint price=10;\r\n\t\t\tSystem.out.println(\"Drop Charge =\"+(price*Km));\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(cab==2){\r\n\t\t\tint price=20;\r\n\t\t\tSystem.out.println(\"Drop Charge =\"+(price*Km));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Invalid\");\r\n\t\t}*/\r\n\tSystem.out.println(\"enter your choice\");\r\n\tSystem.out.println(\"bike\");\r\n\tSystem.out.println(\"car\");\r\n\tString vehicle=a.next();\r\n\t\r\n\tif(vehicle.equals(\"bike\")) {\r\n\t\trateforbike(vehicle);\r\n\t}\r\n\telse if(vehicle.equals(\"car\")) {\r\n\t\trateforcar(vehicle);\r\n\t}\r\n\t\r\n\r\n}", "public static void GiveRentalProperty(ArrayList<Apartment> apartments, ArrayList<House> houses, ArrayList<Villa> villas)\n {\n //Generate visualisation\n JFrame frame = new JFrame();\n\n //The label for displaying PropertyID\n final JLabel propertyID_label = new JLabel(\"PropertyID\");\n\n //Text for PropertyID\n JTextField propertyID_text = new JTextField();\n propertyID_text.setColumns(5);\n\n //The label for displaying Rental Days\n final JLabel rental_days_label = new JLabel(\"Rental Days\");\n\n //Text for Rental Days\n JTextField rental_days_text = new JTextField();\n rental_days_text.setColumns(5);\n\n //The button to trigger the ok\n JButton ok_button = new JButton(\"OK\");\n\n //The button to trigger the cancel\n JButton cancel_button = new JButton(\"Cancel\");\n\n //The panel that holds the user interface components\n JPanel panel = new JPanel();\n panel.add(propertyID_label);\n panel.add(propertyID_text);\n panel.add(rental_days_label);\n panel.add(rental_days_text);\n panel.add(ok_button);\n panel.add(cancel_button);\n frame.add(panel);\n\n frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setVisible(true);\n\n // search propertyID in three ArrayList, if exist, do something. if not exit, return error information\n class AddOKListener implements ActionListener\n {\n public void actionPerformed(ActionEvent event) {\n String pro_id = propertyID_text.getText();\n String days = rental_days_text.getText();\n\n // To check whether user has already input propertyID and rental days\n if (\"\".equals(pro_id) && \"\".equals(days)|| \"\".equals(pro_id) || \"\".equals(days)) {\n System.out.println(\"Attention: you must input PropertyID and Rental Days\");\n }\n else {\n int pro_id_con = Integer.parseInt(pro_id);\n int days_con = Integer.parseInt(days);\n\n //check apartment list\n for (int i = 0; i < apartments.size(); i++) {\n if (pro_id_con == apartments.get(i).getPropertyID()) {\n System.out.println(\"This apartment ID is \" + pro_id_con);\n apartments.get(i).RentAnItem(days_con);\n System.out.println(\"The Total day you want to rent this apartment is \" + apartments.get(i).getTotal_rental_days() + \" days\");\n break;\n }\n else {\n System.out.println(\"This property is not in apartment list......\");\n break;\n }\n }\n\n //check house list\n for (int j = 0; j < houses.size(); j++) {\n if (pro_id_con == houses.get(j).getPropertyID()) {\n System.out.println(\"This house ID is \" + pro_id_con);\n houses.get(j).RentAnItem(days_con);\n System.out.println(\"The Total day you want to rent this house is \" + houses.get(j).getTotal_rental_days() + \" days\");\n break;\n }\n else {\n System.out.println(\"This property is not in house list......\");\n break;\n }\n }\n\n //check villa list\n for (int k = 0; k < villas.size(); k++) {\n if (pro_id_con == villas.get(k).getPropertyID()) {\n System.out.println(\"This house ID is \" + pro_id_con);\n villas.get(k).RentAnItem(days_con);\n System.out.println(\"The Total day you want to rent this villa is \" + villas.get(k).getTotal_rental_days() + \" days\");\n break;\n }\n else {\n System.out.println(\"This property is not in villa list......\");\n break;\n }\n }\n\n }\n }\n }\n\n ActionListener ok_listener = new AddOKListener();\n ok_button.addActionListener(ok_listener);\n\n // When click cancel button, the frame will be closed\n class AddCancelListener implements ActionListener{\n public void actionPerformed(ActionEvent event){\n frame.getDefaultCloseOperation();\n frame.dispose();\n }\n }\n\n ActionListener cancel_listener = new AddCancelListener();\n cancel_button.addActionListener(cancel_listener);\n }", "public void selectDualExciters(){\r\n if(checkDualExciters())\r\n System.out.println(\"Dual Exciters Checked\");\r\n else\r\n System.out.println(\"Dual Exciters Unchecked\");\r\n }", "public static void main(String[] args) {\n System.out.println(\"Witam w grze papier kamień nożyce.\");\n // tworzymy obiekt scanera\n Scanner scanner = new Scanner(System.in);\n\n\n // tworzymy obiekt random\n Random generator = new Random();\n // tworzymy pętle while\n\n\n while (true) {\n System.out.println(\"Wybierz ruch: \" + \"P = papier || \" + \"K = kamień || \"\n + \"N = nożyce || \" + \"W = wyjście\");\n // pobieramy ruch od użytkownika\n String ruchUżytkownika = scanner.nextLine();\n ruchUżytkownika = ruchUżytkownika.toUpperCase();\n // tworzymy ruch komputera\n int intKomputera = generator.nextInt(3);\n String ruchKomputera = \"\";\n if (intKomputera == 0) {\n ruchKomputera = \"P\";\n } else if ( intKomputera== 1) {\n ruchKomputera = \"K\";\n } else if ( intKomputera== 2) {\n ruchKomputera = \"N\";\n }\n drukowanieruchu(ruchUżytkownika, ruchKomputera);\n if (ruchUżytkownika.equals(ruchKomputera)) {\n\n System.out.println(\"Wynik: Remis\");\n\n } else if (ruchUżytkownika.equals(\"K\")) {\n if (ruchKomputera.equals(\"N\"))\n System.out.println(\"Wygrałeś!\");\n else if (ruchKomputera.equals(\"P\"))\n System.out.println(\"Przegrałeś!\");\n } else if (ruchUżytkownika.equals(\"P\")) {\n if (ruchKomputera.equals(\"N\"))\n System.out.println(\"Przegrałeś!\");\n else if (ruchKomputera.equals(\"K\"))\n System.out.println(\"Wygrałeś!\");\n } else if (ruchUżytkownika.equals(\"N\")) {\n if (ruchKomputera.equals(\"P\"))\n System.out.println(\"Wygrałeś\");\n else if (ruchKomputera.equals(\"K\"))\n System.out.println(\"Przegrałeś\");\n } else {\n System.out.println(\"Dzięki za gre !\");\n break;\n }\n }\n\n\n }", "private int determineWinning(GamePlayerInterface player, GamePlayerInterface dealer)\n {\n \n int playerValue = player.getTotalCardsValue();\n int dealerValue = dealer.getTotalCardsValue();\n int result = 0;\n \n if(dealerValue > playerValue)\n {\n \t view.print(\"Dealer Wins\");\n \t view.printLine();\n \t result = 1;\n }\n \n else if(dealerValue < playerValue)\n {\n \t view.print(\"Player Wins\");\n \t view.printLine();\n \t result = 2;\n }\n \n else{\n \t view.print(\"Match Draw!\");\n \t view.printLine();\n }\n \n return result;\n }", "public static boolean dcheck() {\n if ((card[0][0] == 0 && card[1][1] == 0 && card[2][2] == 0 && card[3][3] == 0 && card[4][4] == 0) || (card[0][4] == 0 && card[1][3] == 0 && card[2][2] == 0 && card[3][1] == 0 && card[4][0] == 0)) {\n System.out.println(\"BINGO\");\n System.out.println(\"The numbers called is \" + called);\n return true;\n } else {\n return false;\n }\n }", "@Override\n\tpublic void showBeveragesMenu(int selectedPerson) {\n\t\ttry{\n System.out.println(\"Please place your order\");\n randomNum=transactionService.createRandomOrderNumber();\n OrderNum=initialOrderNum+randomNum;\n do {\n \t\n showCoffeeType();\n showCoffeeSize();\n System.out.println(\"Do you want Add-ons?\");\n subChoice=input.next();\n if(subChoice.equalsIgnoreCase(\"yes\"))\n {\n showCoffeeAddon();\n \n }\n else\n {\n \ttransactionService.createCoffeeOrder(selectedPerson,OrderNum,selectedCoffeeType,selectedCoffeeSize,selectedAddon);\n }\n System.out.println(\"Do you want to order more coffee?\");\n subChoice = input.next();\n \n \n\n }while(subChoice.equalsIgnoreCase(\"yes\"));\n showVoucher();\n\n printBill(selectedPerson,OrderNum,selectedVoucher);\n System.out.println(\"Happy Drink! Have a good day.\");\n System.out.println(\"================================\");\n\n\n\n }\n \n catch (InputMismatchException e)\n {\n System.out.println(\"Please provide a correct input\");\n }\n catch (NullPointerException en)\n {\n System.out.println(en.getMessage());\n }\n\t\t\n\t}", "public static void main(String[] args) {\r\n \r\n // declare some cars\r\n Car randomCar, coolCar, neatoCar;\r\n \r\n // make a scanner to get input\r\n Scanner sc = new Scanner(System.in);\r\n \r\n // make some variables to store the first car's values\r\n String coolCarMake, coolCarModel;\r\n int coolCarYear;\r\n double coolCarPrice, coolCarLength, coolCarWidth;\r\n \r\n // Get the user's input\r\n System.out.println(\"Please enter the make:\");\r\n coolCarMake = sc.nextLine();\r\n System.out.println(\"Please enter the model:\");\r\n coolCarModel = sc.nextLine();\r\n System.out.println(\"Please enter the year:\");\r\n coolCarYear = sc.nextInt();\r\n System.out.println(\"Please enter the price:\");\r\n coolCarPrice = sc.nextDouble();\r\n System.out.println(\"Please enter the length:\");\r\n coolCarLength = sc.nextDouble();\r\n System.out.println(\"Please enter the width:\");\r\n coolCarWidth = sc.nextDouble();\r\n sc.close();\r\n \r\n // print out the information about the cars\r\n randomCar = new Car();\r\n coolCar = new Car(coolCarMake, coolCarModel, coolCarYear, coolCarPrice, coolCarLength, coolCarWidth);\r\n neatoCar = new Car(\"Land Rover\", \"LR4\", 2016, 59990.0, 4.829, 2.053);\r\n System.out.println(randomCar);\r\n System.out.println(coolCar);\r\n System.out.println(neatoCar);\r\n randomCar.honk();\r\n }", "public boolean isDoorway() {\n\t\tif(doorDirection != DoorDirection.NONE) {\t\t\t\t\t\t\t\t// catches if there is a door direction, indicating that the cell is a door\n\t\t\treturn true;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// return true, indicating that the cell is a door\n\t\t}\n\t\telse {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is no door direction\n\t\t\treturn false;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// return false, indicating that the cell is not a door\n\t\t}\n\t}", "@Test\r\n\tpublic void testChooseResultWithUnChangeCarPositionFrist() {\r\n\t\tMontyHall monty = new MontyHall();\r\n\t\tmonty.setChanged(false);\r\n\t\tmonty.setTheDoorWithCar(0);\r\n\t\tmonty.setUserChoosedDoor(0);\r\n\t\tassertNotEquals(0, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(true, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(1);\r\n\t\tassertEquals(2, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(2);\r\n\t\tassertEquals(1, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\t}", "static public void checkAndPrintIfLostDrone(Drone drone) {\n\n if (drone.isReturningToHome() && drone.getDistanceSource() == 0) {\n System.out.println(\"Drone[\" + drone.getLabel() + \"] \" + \"Return to home completed successfully\");\n LoggerController.getInstance().print(\"Drone[\" + drone.getLabel() + \"] \" + \"Return to home completed successfully\");\n return;\n }\n if (drone.getDistanceDestiny() == 0) {\n System.out.println(\"Drone[\" + drone.getLabel() + \"] \" + \"Arrived at destination\");\n LoggerController.getInstance().print(\"Drone[\" + drone.getLabel() + \"]\" + \"Arrived at destination\");\n return;\n }\n\n /* if(drone.isGoingManualToDestiny()){\n System.out.println(\"Drone[\"+getDroneLabel()+\"] \"+\"Arrived at destination\");\n loggerController.print(\"Drone[\"+getDroneLabel()+\"] \"+\"Arrived at destination\");\n return;\n }*/\n\n if (drone.isOnWater()) {\n System.out.println(\"Drone[\" + drone.getLabel() + \"] \" + \"Drone landed on water\");\n LoggerController.getInstance().print(\"Drone[\" + drone.getLabel() + \"] \" + \"Drone landed on water\");\n } else {\n System.out.println(\"Drone[\" + drone.getLabel() + \"] \" + \"Drone landed successfully\");\n LoggerController.getInstance().print(\"Drone[\" + drone.getLabel() + \"] \" + \"Drone landed successfully\");\n }\n\n\n }", "public static void main(String[] args) throws Exception {\n\t\tboolean keepCreating= true;\n\t\twhile(keepCreating) {\n\t\t\tPeople_Controller.createVehicleOwner();\n\t\t\tString choiceToCreate= JOptionPane.showInputDialog(null, \"¿Which vehicle would you like to create? (Car/Bike/Truck)\");\t\n\t\t\t\tif(choiceToCreate.matches(\"Car\")) {\n\t\t\t\t\tcontroller.createCar();\n\t\t\t\t\tcontroller.createWheelsForCar();\n\t\t\t}\telse if (choiceToCreate.matches(\"Bike\")) {\n\t\t\t\t\tcontroller.createBike();\n\t\t\t\t\tcontroller.createWheelsForBike();\n\t\t\t} \telse if (choiceToCreate.matches(\"Truck\")) {\n\t\t\t\t\tcontroller.createTruck();\n\t\t\t\t\tcontroller.createWheelsForCar();\n\t\t\t} \t\n\t\t\t\t\n\t\t\tpeopleController.ownerIsDriver();\n\t\t\t\n\t\t\tfor(Vehicle e:VehicleController.vehicles) {\n\t\t\t\tSystem.out.println(\"Vehículo: \"+e.getBrand()+\" \"+ e.getColor()+\" \" +e.plate+\" \\nDueño del vehículo: \" +e.owner.getName()+\" \"+e.owner.getLastName());\n\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"-------------------------\\nConductores: \\n-------------------------\");\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\n\t\t\t\tfor(int i=0; i<Vehicle.drivers.size();i++) {\n\t\t\t\t\tif(Vehicle.drivers.get(i+1).getName()==Vehicle.drivers.get(i).getName()) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(Vehicle.drivers.get(i).getName()+\" \"+ Vehicle.drivers.get(i).getLastName()+ \" \" + Vehicle.drivers.get(i).getBirthDate());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\tcatch (java.lang.IndexOutOfBoundsException e) {\n\t\t\t\t\tSystem.out.println(\"Hay un error en la lectura del array\");\n\t\t\t\t}\n\t\t\tVehicle.drivers.clear();\n\t\t\tVehicleController.backWheels.clear();\n\t\t\tVehicleController.frontWheels.clear();\n\t\t\tVehicleController.vehicles.clear();\n\t\t\tString ask = JOptionPane.showInputDialog(null, \"¿Would you like to add new owners and vehicles? (Yes/No)\");\n\t\t\t\tif(!ask.equalsIgnoreCase(\"Yes\")) {\n\t\t\t\t\tbreak;\n\t\t\t }\n\t\t}\n\t}", "public void LabelingCandiesToDestroy() {\n int i;\n int j;\n int checkIfSame = 1;\n int NumOfSame = 1;\n System.out.println(\" \");\n //the two sets of nested for loops are used to check for combinations in different directions (top-bottom, left-right)\n for (i = 0; i < 9; i++) {\n for (j = 0; j < 9; j++) {\n NumOfSame = 1;\n checkIfSame = 1;\n while (checkIfSame < (9 - j)) { //when there is a valid combination, it labels the candies as 9\n if (pictures[i][j] == pictures[i][j + checkIfSame]) {\n checkIfSame++;\n NumOfSame++;\n } else {\n break;\n }\n }\n if (NumOfSame > 2) {\n for (int k = 0; k < NumOfSame; k++) {\n pictures2[i][j + k] = 9; //9 is set to candies that have a 3 or more combinations\n }\n }\n\n }\n }\n //this is the second set for the other direction\n for (j = 0; j < 9; j++) {\n for (i = 0; i < 9; i++) {\n NumOfSame = 1;\n checkIfSame = 1;\n while (checkIfSame < (9 - i)) {\n if (pictures[i][j] == pictures[i + checkIfSame][j]) {\n checkIfSame++;\n NumOfSame++;\n } else {\n break;\n }\n }\n if (NumOfSame > 2) {\n for (int k = 0; k < NumOfSame; k++) {\n pictures2[i + k][j] = 9;\n }\n }\n\n }\n }\n\n for (j = 0; j < 9; j++) {\n for (i = 0; i < 9; i++) {\n System.out.print(pictures2[i][j] + \" \");\n }\n System.out.println();\n }\n DestroyCandies();\n }", "@Test\r\n\tpublic void testChooseResultWithChangeCarPositionSecond() {\r\n\t\tMontyHall monty = new MontyHall();\r\n\t\tmonty.setTheDoorWithCar(1);\r\n\t\tmonty.setChanged(true);\r\n\t\tmonty.setUserChoosedDoor(0);\r\n\t\tassertEquals(2, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(true, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(1);\r\n\t\tassertNotEquals(1, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(2);\r\n\t\tassertEquals(0, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(true, monty.winThePrize());\r\n\t}", "public static String subwayFare(int age, Scanner console){\r\n String charlie;\r\n \r\n if(18 < age && age < 65){ // if the rider is aged 19-64, ask for a charlie card\r\n System.out.print(\"Is the rider using a Charlie Card?(y/n): \");\r\n charlie = console.next();\r\n console.nextLine(); // Consume rest of line\r\n }\r\n else {\r\n charlie = \"n\";\r\n }\r\n \r\n String fare;\r\n \r\n if (age <= 11){\r\n fare = \"free\";\r\n }\r\n else if (age >= 12 && age <= 18){\r\n fare = \"$0.85\";\r\n }\r\n else if (age >= 65){\r\n fare = \"$0.60\";\r\n }\r\n else{\r\n if(charlie.equalsIgnoreCase(\"y\")){ //if a charlie card is used\r\n fare = \"$1.70\";\r\n }\r\n else{\r\n fare = \"$2.00\";\r\n } \r\n }\r\n return fare;\r\n }", "public void identificacion(){\n System.out.println(\"¡Bienvenido gamer!\\nSe te solcitaran algunos datos con el fin de personalizar tu experiencia :)\");\n System.out.println(\"Porfavor, ingresa tu nombre\");\n nombre = entrada.nextLine();\n System.out.println(\"Bien, ahora, ingresa tu gamertag\");\n gamertag = entrada.nextLine();\n System.out.println(\"Ese es un gran gamertag, ahora, diseña tu id, recuerda que tiene que ser un numero entero\");\n id = entrada.nextInt();\n //se le pide al usuario que elija la dificultad del juego, cada dificultad invocara a un metodo distinto\n System.out.println(\"Instrucciones:\\nTienes un numero limitado de intentos, tendras que encontrar las minas para asi desactivarlas\\n¿Quien no queria ser un Desactivador de minas de niño?\");\n System.out.println(\"Selecciona la dificultad\\n1. Facil\\n2. Intermedia\\n3 .Dificil\\n4. Imposible\");\n decision = entrada.nextInt();\n //creo el objeto que me llevara al juego, mandandolo con mis variables recopiladas\n Buscaminas dear = new Buscaminas(nombre, gamertag, id);\n if (decision==1){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Facil\");\n //vamos para el juego\n dear.juego();\n }else if(decision==2){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Intermedia\");\n dear.juego1();\n\n }else if(decision==3){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Dificil\");\n dear.juego2();\n\n }else if(decision==4){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Imposible\");\n dear.juego3();\n\n }\n\n\n\n }", "public static void editcar(String ref) {\n\n Scanner sc = new Scanner(System.in);\n Cars xx = new Cars();\n System.out.println(\"edit car\");\n String target = ref.toUpperCase();\n int gotit = 0;\n for (int i = 0; i < listcars.size(); i++) {\n\n xx = listcars.get(i);\n String record = xx.getReference().toUpperCase();\n if (record.equals(target)) {\n System.out.println(\" Car found !\");\n System.out.println(\" reference: \" + xx.getReference());\n System.out.println(\"please select enter to continue or write a new reference\");\n ref = sc.nextLine();\n if (!ref.equals(\"\")) {xx.SetRef(ref);}\n\n System.out.println(\"Brand: \" + xx.getBrand());\n String brand = sc.nextLine();\n if (!brand.equals(\"\")) {xx.SetBrand(brand);}\n String mo;\n System.out.println(\"Model: \" + xx.getModel());\n mo = sc.nextLine();\n if (!mo.equals(\"\")) { xx.SetModel(mo); }\n\n String ye;\n System.out.println(\" Year: \" + String.valueOf(xx.getYear()));\n ye = sc.nextLine();\n if (!ye.equals(\"\")) { xx.SetYear(Integer.valueOf(sc.nextLine())); }\n\n System.out.println(\"car's information successfully updated \");\n ye = String.valueOf(xx.getYear());\n\n System.out.println(\"Brand: \"+ xx.getBrand()+ \",Model:\"+ xx.getModel()+ \", Reference:\"+ xx.getReference()+ \", Year: \" + ye);\n gotit = 1;\n\n }\n }\n if (gotit == 0) {\n System.out.println(\"user not found !\");\n }\n\n\n }", "public void elevatorFloor()\n {\n int c = 0;\n if (currentFloor < e)\n {\n for(c = currentFloor; c <= e; ++c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else if (currentFloor > e)\n {\n for(c = currentFloor; c >= e; --c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n \n currentFloor = e;\n \n //displays a different floor depending on user input\n switch(e)\n {\n case 0:\n getFloors.basement();\n break;\n case 1:\n if(getFloors.secKey == true)\n {\n JOptionPane.showMessageDialog(null,\" you are free to go\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\" you are in the first Floor, you cannot get out without a special key\");\n elevatorLoop();\n }\n break;\n case 2:\n getFirstFloor.livingRoom();\n break;\n case 3:\n getFirstFloor.diningRoom();\n break; \n case 4:\n getFirstFloor.kitchen();\n break;\n case 5:\n getFirstFloor.pantry();\n break;\n case 6:\n getSecondFloor.bedroom1();\n break;\n case 7:\n getSecondFloor.bedroom2();\n break;\n case 8:\n getSecondFloor.masterBedroom();\n break;\n case 9:\n getFloors.attic();\n break;\n \n } \n }", "private void chooseBreedToBeIdentified() {\n Random r = new Random();\n int questionBreedIndex = r.nextInt(3);\n\n questionCarMake = displayingCarMakes.get(questionBreedIndex);\n carMakeNameTitle.setText(questionCarMake);\n }", "public boolean roadBlocked(Player player)\n {\n int num = 0;\n int num2 = 0;\n int num3 = 0;\n if (person_to_play == 1)\n {\n num = check4CollisionWithRed(player);\n num2 = check4CollisionWithGreen(player);\n num3 = check4CollisionWithYellow(player);\n }\n else if (person_to_play == 2)\n {\n //println(\"inside road block\");\n num = check4CollisionWithBlue(player);\n num2 = check4CollisionWithGreen(player);\n num3 = check4CollisionWithYellow(player);\n //println(\"num=\"+num);\n }\n else if (person_to_play == 3)\n {\n num = check4CollisionWithBlue(player);\n num2 = check4CollisionWithRed(player);\n num3 = check4CollisionWithYellow(player);\n }\n else if (person_to_play == 4)\n {\n num = check4CollisionWithBlue(player);\n num2 = check4CollisionWithRed(player);\n num3 = check4CollisionWithGreen(player);\n }\n if (num > 1 || num2 > 1 || num3 > 1)\n {\n return true;\n }\n return false;\n }", "public static void menu() {\n\t\tRaton ratones[] = new Raton[3];\n\t\tTeclado teclados[] = new Teclado[3];\n\t\tMonitor monitores[] = new Monitor[3];\n\t\tString[] computadoras = {\"Windows\",\"Linux\",\"Mac\"};\n\t\t\n\t\t// Cargamos los arrays mediante metodos\n\t\tratones = cargaRatones();\n\t\tteclados = cargaTeclados();\n\t\tmonitores = cargaMonitores();\n\t\t\n\t\t// Creamos variables para las opciones seleccionadas\n\t\tOrden orden = new Orden();\n\t\tint opRaton = 1;\n\t\tint opTeclado = 1;\n\t\tint opMonitor = 1;\n\t\tint opComputadora = 1;\n\t\tint opcion = 1;\n\t\tboolean repetir = true; // Variable para repetir la seleccion en caso de excepcion\n\t\t\n\t\t// Bucle menu\n\t\tdo {\n\t\t\tSystem.out.println(\"---- Carga de datos de Computadora ----\");\n\t\t\t// SELECCION DE RATON\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Raton: \");\n\t\t\t\tfor(int i=0; i<ratones.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+ratones[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topRaton = input.nextInt();\n\t\t\t\t\tif(opRaton>0 && opRaton<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE TECLADO\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Teclado: \");\n\t\t\t\tfor(int i=0; i<teclados.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+teclados[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topTeclado = input.nextInt();\n\t\t\t\t\tif(opTeclado>0 && opTeclado<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE MONITOR\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Monitor: \");\n\t\t\t\tfor(int i=0; i<monitores.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+monitores[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topMonitor = input.nextInt();\n\t\t\t\t\tif(opMonitor>0 && opMonitor<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE COMPUTADORA\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione una computadora:\");\n\t\t\t\tfor(int i=0 ; i<computadoras.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+computadoras[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topComputadora = input.nextInt();\n\t\t\t\t\tif(opComputadora>0 && opComputadora<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Se crea la computadora y se agrega a la orden\n\t\t\tComputadora computadora = new Computadora(computadoras[opComputadora-1], monitores[opMonitor-1], teclados[opTeclado-1], ratones[opRaton-1]);\n\t\t\torden.agregarComputadora(computadora);\n\t\t\tSystem.out.println(\"Computadora agregada a la orden!!\");\n\t\t\t\n\t\t\t// OPCIONES PARA SEGUIR AGREGANDO COMPUTADORAS\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Desea agregar otra computadora?: [1. Si] - [2. No]\");\n\t\t\t\ttry {\n\t\t\t\t\topcion = input.nextInt();\n\t\t\t\t\tif(opcion == 1 || opcion == 2) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\\n\");\n\t\t\t\t\t\n\t\t}while(opcion == 1);\n\t\t\n\t\t// Muestra todas las computadoras de la orden\n\t\tSystem.out.println(\"====== Datos de la orden ======\");\n\t\torden.mostrarOrden();\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n activedicenumberselected = 0;\n if (listenfordicenumber) {\n activedicenumberselected = setdicenumber;\n listenfordicenumber = false;\n }\n\n if (activedicenumberselected != 0) {\n if (Dice.doesFrozenDiceListContainValue(activedicenumberselected) == false) {\n currentplayeractions.performFreezeDice(activedicenumberselected);\n if (Dice.getActiveDiceListSize() > 0) {\n currentplayeractions.setDiceRollAvailable(true);\n }\n TakeWormFromPlayerAvailable = true;\n TakeWormFromGrillAvailable = true;\n ActiveDiceButtonsAreGreen = false;\n } else if (Dice.doesFrozenDiceListContainValue(activedicenumberselected)) {\n JOptionPane.showMessageDialog(null, \"You already froze that number, pick another number!\");\n listenfordicenumber = true;\n }\n }\n performGamePanelUpdate();\n }", "private boolean checkDoors(ArrayList<Door> doors, int direction) {\n\t\tboolean stopSeaching = false;\n\t\tboolean found = false;\n\t\tfor (int i = 0; i < doors.size() && !stopSeaching; i++) {\n\t\t\tstopSeaching = doors.get(i).isInRange(player.pos);\n\t\t\tif (stopSeaching) {\n\t\t\t\tfound = checkDoor(doors.get(i), direction);\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}", "public static void item(){\n int opcionItem; //variables locales a utilizar\n Scanner scannerDos=new Scanner(System.in);\n //imprimiendo posibles Items y su cantidad\n System.out.println(\"\\nArticulos Disponibles:\");\n\tSystem.out.println(\"\\n1.Potion, Cura 25HP:\\t\"+articulo1);\n\tSystem.out.println(\"2.Hi-Potion,Cura 75HP:\\t\"+articulo2);\n\tSystem.out.println(\"3.M-Potion, Recupera 10MP:\\t\"+articulo3);\n\t\n do{//validacion de la opcion\n System.out.println(\"\\nNumero de opcion:\");\n opcionItem= scannerDos.nextInt();\n \n }while(opcionItem<1||opcionItem>4);\n //comparador para ver si es posibles utilizar un Item\n switch(opcionItem){\n case 1:{\n if(articulo1>0){//condicion de Item 1 y sus acciones\n puntosDeVida=puntosDeVida+25;\n articulo1=articulo1-1;\n }\n else{\n System.out.println(\"no hay Disponible\");\n }\n break;\n }\n case 2:{\n if(articulo2>0){//condicion de Item 2 y sus acciones\n puntosDeVida=puntosDeVida+75;\n articulo2=articulo2-1;\n }\n else{\n System.out.println(\"no hay Disponible\");\n }\n break;\n }\n default:{\n if(articulo3>0){ //condicion de Item 3 y sus acciones\n puntosDeVida=puntosDeVida+75;\n articulo3=articulo3-1;\n }\n else{\n System.out.println(\"no hay Disponible\");\n }\n break;\n } \n } \n }", "public static void gameOn() {\n String player1 = \"Odd number player\", player2 = \"Even number player\";\n int numberOfPlayer;\n\n System.out.print(\"\\n\\t Start!\\n\");\n\n //Print the board that is initialized by clearBoard(); in main function\n printBoard();\n\n System.out.print(\"\\nHow many players?: \");\n numberOfPlayer = input.nextInt();\n // If the user enters number other than 1 and 2, this while loop will ask the user to input just 1 or 2\n while (numberOfPlayer < 1 || numberOfPlayer > 2) {\n System.out.print(\"Invalid amount of players. Please enter 1 or 2: \");\n numberOfPlayer = input.nextInt();\n }\n\n // If 1 is entered, the user will be playing with the computer\n if (numberOfPlayer == 1) {\n do {\n turnOfComp();\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" The Computer has WON!\");\n break;\n } else if (isFull()) {\n System.out.print(\"\\nIt's a DRAW! Game Over!\");\n break;\n }\n\n turnOfEven(player2);\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" You have WON!\");\n break;\n }\n } while (isBingo() == false);\n } // If 2 is entered, there will be two players\n else if (numberOfPlayer == 2) {\n do {\n turnOfOdd(player1);\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" \" + player1 + \" has WON!\");\n break;\n } else if (isFull()) {\n System.out.print(\"\\nIt's a DRAW! Game Over!\");\n break;\n }\n\n turnOfEven(player2);\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" \" + player2 + \" has WON!\");\n break;\n }\n } while (isBingo() == false);\n }\n }", "public static int seleccionarCarro(Mano[] jug){//error no vio la 0,0\n int numeroDoble=6;\n int toret=0;\n while(numeroDoble>=0){\n int n=0;\n while(n<jug.length){\n int f=0;\n while( f<jug[n].getNPiezas() && \n (jug[n].getUnaPieza(f).getN1()!=numeroDoble || jug[n].getUnaPieza(f).getN2()!=numeroDoble))\n f++;\n \n if(f<jug[n].getNPiezas()){\n System.out.println(\"Encontrada la \"+numeroDoble+\",\"+numeroDoble\n +\", la tiene él jugador \"+(n+1)+\" y el tiene \"\n + \"el primer turno\");\n toret=n;\n numeroDoble=-10;\n \n }\n n++;\n }\n numeroDoble-=1;\n }\n if(numeroDoble==-1){\n toret=(int) (Math.random()*jug.length);\n System.out.println(\"No se ha encontrado ningun jugador con alguna pieza doble.\\n\"\n + \"Empieza el jugador \"+toret);\n }\n return toret;\n }", "private void chooseDifficulty(){\n\t\tint dif = -1;\n\t\tdo {\n\t\t\tprintSeparation();\n\t\t\tSystem.out.println(\"Elegeix una dificultat entre 1 i 3.\");\n\t\t\tdif = readInt();\n\t\t} while (dif <= 0 || dif >= 4);\n\t\tdifficulty = dif - 1;\n\t\tprintSeparation();\n\t\tSystem.out.println(\"S'ha elegit la dificultat \" + dif + \".\");\n\t}", "public void actionPerformed(ActionEvent event){\n String sourceDirection = sourceText.getText();\n String destDirection = destText.getText();\n\n // If input is invalid, return\n if(!sourceDirection.equals(\"N\") && !sourceDirection.equals(\"E\") && !sourceDirection.equals(\"W\") && !sourceDirection.equals(\"S\")){\n return;\n }\n if(!destDirection.equals(\"N\") && !destDirection.equals(\"E\") && !destDirection.equals(\"W\") && !destDirection.equals(\"S\")){\n return;\n }\n // Clear input fields\n // sourceText.setText(\"\");\n // destText.setText(\"\");\n int currentTime = 0;\n\n // If simulation not running currently\n if(!isClicked) {\n currentTime = Integer.parseInt(arrivalTime.getText());\n if(currentTime < 0) System.out.println(\"Invalid Input! Arrival time should be greater than zero.\");\n // arrivalTime.setText(\"\");\n }\n\n //Initialize new Car object\n Car car = null;\n \n // If simulation has not begun yet\n if(!isClicked){\n // Create a car object and associate traffic light with its travel directions\n if(sourceDirection.equals(\"S\") && destDirection.equals(\"E\")){\n car = new Car(lightSE, sourceDirection, destDirection, currentTime);\n }\n\n else if(sourceDirection.equals(\"W\") && destDirection.equals(\"S\")){\n car = new Car(lightWS, sourceDirection, destDirection, currentTime);\n }\n\n else if(sourceDirection.equals(\"E\") && destDirection.equals(\"W\")){\n car = new Car(lightEW, sourceDirection, destDirection, currentTime);\n }\n\n else{\n car = new Car(null, sourceDirection, destDirection, currentTime);\n car.departureTime = 0;\n }\n // Update array of all cars arrived till now\n Cars.add(car);\n\n }\n // If simulation is running\n else{\n // Create a car object and associate traffic light with its travel directions\n if(sourceDirection.equals(\"S\") && destDirection.equals(\"E\")){\n car = new Car(lightSE, sourceDirection, destDirection, 0);\n }\n\n else if(sourceDirection.equals(\"W\") && destDirection.equals(\"S\")){\n car = new Car(lightWS, sourceDirection, destDirection, 0);\n }\n\n else if(sourceDirection.equals(\"E\") && destDirection.equals(\"W\")){\n car = new Car(lightEW, sourceDirection, destDirection, 0);\n }\n\n else{\n car = new Car(null, sourceDirection, destDirection, 0);\n car.departureTime = 0;\n }\n\n // Acquire lock to ensure synchronization while updating the queue shared by the Main thread and the TimerThread\n lock.lock(); \n try{ \n // Add new car to queue\n new_cars.add(car); \n } \n catch(Exception e){ \n e.printStackTrace(); \n } \n finally{\n // Release lock\n lock.unlock(); \n } \n } \n }", "public Integer getIsdoor() {\n return isdoor;\n }", "public boolean bookDrawers(Order order, Map map) {\n\t// System.out.println(\"Booking Drawer !\");\n\tint nbDrawersToBook = order.getProductsName().size();\n\t// int nbDrawersDec = order.getProductsName().size();\n\tint nbDrawersBooked = 0; // Simulation\n\tColumn firstColumn = null, secondColumn = null, thirdColumn = null; // 20 objets par commande ne peut pas être dans plus de 3 colonnes !\n\t/*******************************************************/\n\t/* Début de la simulation des réservations des drawers */\n\t/*******************************************************/\n\tfor (Column column : map.getColumns()) {\n\t if (column.getAvailableDrawer() != null) {\n\t\tif (nbDrawersBooked == nbDrawersToBook) {\n\t\t // System.out.println(\"BREAK !\");\n\t\t break;\n\t\t}\n\t\tif (nbDrawersBooked > 0 && nbDrawersBooked < nbDrawersToBook) { // Tkt pas ça marche ici & Première colonne rempli, on rentre ici dans la deuxième colonne\n\t\t if (nbDrawersToBook - nbDrawersBooked >= 10 && nbDrawersToBook > nbDrawersBooked && column.getNbAvailableDrawers() != 10 && firstColumn != null) { // pas assez de place dans la seconde colonne car <10\n\t\t\tnbDrawersBooked = 0;\n\t\t\tfirstColumn = null;\n\t\t\tsecondColumn = null;\n\t\t\tthirdColumn = null;\n\t\t\t// System.out.println(\"BREAK 2nd COL > 10 Order ID \"+order.getIdOrder()+\" book 1st column | nb drawer booked = \"+nbDrawersBooked+\"/\"+nbDrawersToBook);\n\t\t } else if (nbDrawersToBook - nbDrawersBooked < 10 && nbDrawersToBook > nbDrawersBooked && firstColumn != null && nbDrawersToBook - nbDrawersBooked > column.getNbAvailableDrawers()) { // pas assez de place dans la seconde colonne\n\t\t\tnbDrawersBooked = 0;\n\t\t\tfirstColumn = null;\n\t\t\tsecondColumn = null;\n\t\t\tthirdColumn = null;\n\t\t\t// System.out.println(\"BREAK 2nd COL < 10 Order ID \"+order.getIdOrder()+\" book 1st column | nb drawer booked = \"+nbDrawersBooked+\"/\"+nbDrawersToBook);\n\t\t } else if (nbDrawersToBook - nbDrawersBooked < 10 && nbDrawersToBook > nbDrawersBooked && firstColumn != null && secondColumn != null && nbDrawersToBook - nbDrawersBooked > column.getNbAvailableDrawers()) { // Pas assez de place dans la troisième colonne\n\t\t\tnbDrawersBooked = 0;\n\t\t\tfirstColumn = null;\n\t\t\tsecondColumn = null;\n\t\t\tthirdColumn = null;\n\t\t\t// System.out.println(\"BREAK 3rd COL Order ID \"+order.getIdOrder()+\" book 1st column | nb drawer booked = \"+nbDrawersBooked+\"/\"+nbDrawersToBook);\n\t\t } else {\n\t\t\t// Book drawers\n\t\t\tif (column.getNbAvailableDrawers() == 10) { // Si colonne peut se remplir entièrement\n\t\t\t if (firstColumn == null) {\n\t\t\t\t// System.out.println(\"First column = \"+column);\n\t\t\t\tfirstColumn = column;\n\t\t\t } else if (secondColumn == null) {\n\t\t\t\t// System.out.println(\"Second column = \"+column);\n\t\t\t\tsecondColumn = column;\n\t\t\t } else if (thirdColumn == null) {\n\t\t\t\t// System.out.println(\"Third column = \"+column);\n\t\t\t\tthirdColumn = column;\n\t\t\t }\n\t\t\t // Maj nbDrawersBooked\n\t\t\t if (nbDrawersToBook - nbDrawersBooked < 10) { // Voilà\n\t\t\t\tnbDrawersBooked += nbDrawersToBook - nbDrawersBooked; // = nbDrawersBooked=nbDrawersToBook;\n\t\t\t } else if (nbDrawersToBook - nbDrawersBooked >= 10) {\n\t\t\t\tnbDrawersBooked += 10;\n\t\t\t }\n\t\t\t} else if (nbDrawersToBook - nbDrawersBooked > column.getNbAvailableDrawers()) { // On remplit la première colonne ou la dernière\n\t\t\t if (firstColumn == null) {\n\t\t\t\tfirstColumn = column;\n\t\t\t } else if (secondColumn == null) {\n\t\t\t\tsecondColumn = column;\n\t\t\t } else if (thirdColumn == null) {\n\t\t\t\tthirdColumn = column;\n\t\t\t }\n\t\t\t // Maj nbDrawersBooked\n\t\t\t nbDrawersBooked += nbDrawersToBook - nbDrawersBooked; // = nbDrawersBooked=nbDrawersToBook; // Voilà\n\t\t\t}\n\t\t }\n\t\t} else if (nbDrawersBooked == 0) { // Réservation première colonne\n\t\t // System.out.println(\"Book 1st column \"+column);\n\t\t if (column.getNbAvailableDrawers() > nbDrawersToBook) {\n\t\t\tnbDrawersBooked = nbDrawersToBook;\n\t\t } else {\n\t\t\tnbDrawersBooked = column.getNbAvailableDrawers();\n\t\t }\n\t\t firstColumn = column;\n\t\t // System.out.println(\"Order ID \"+order.getIdOrder()+\" book 1st column | nb drawers booked = \"+nbDrawersBooked+\"/\"+nbDrawersToBook);\n\t\t}\n\t }\n\t}\n\t// System.out.println(\"END simulation : Order ID \"+order.getIdOrder()+\" | nb drawers booked = \"+nbDrawersBooked+\"/\"+nbDrawersToBook);\n\t/*******************************************************/\n\t/** Fin de la simulation des réservations des drawers **/\n\t/*******************************************************/\n\t/*******************************************************/\n\t/****** Début de la vraie réservation des drawers ******/\n\t/*******************************************************/\n\tif (nbDrawersBooked != nbDrawersToBook) {\n\t // System.out.println(\"Return false\");\n\t return false;\n\t} else {\n\t // System.out.println(\"Begin to Book really !\");\n\t // Book Drawers really here !\n\t int nbDrawersBookedReally = 0; // Reality\n\t int nbDrawersToBookForColumn = 0;\n\t int nbDrawersAvailable;\n\t if (firstColumn != null) {\n\t\tnbDrawersAvailable = firstColumn.getNbAvailableDrawers();\n\t\tif (nbDrawersToBook - nbDrawersBookedReally < nbDrawersAvailable) { // Voilà\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersToBook - nbDrawersBookedReally; // = nbDrawersBooked=nbDrawersToBook;\n\t\t} else if (nbDrawersToBook - nbDrawersBookedReally >= nbDrawersAvailable) {\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersAvailable;\n\t\t}\n\t\tfirstColumn.bookNDrawersOrder(order, nbDrawersToBookForColumn);\n\t }\n\t if (secondColumn != null) {\n\t\tnbDrawersAvailable = secondColumn.getNbAvailableDrawers();\n\t\tif (nbDrawersToBook - nbDrawersBookedReally < nbDrawersAvailable) { // Voilà\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersToBook - nbDrawersBookedReally; // = nbDrawersBooked=nbDrawersToBook;\n\t\t} else if (nbDrawersToBook - nbDrawersBookedReally >= nbDrawersAvailable) {\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersAvailable;\n\t\t}\n\t\tsecondColumn.bookNDrawersOrder(order, nbDrawersToBookForColumn);\n\t }\n\t if (thirdColumn != null) {\n\t\tnbDrawersAvailable = thirdColumn.getNbAvailableDrawers();\n\t\tif (nbDrawersToBook - nbDrawersBookedReally < nbDrawersAvailable) { // Voilà\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersToBook - nbDrawersBookedReally; // = nbDrawersBooked=nbDrawersToBook;\n\t\t} else if (nbDrawersToBook - nbDrawersBookedReally >= nbDrawersAvailable) {\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersAvailable;\n\t\t}\n\t\tthirdColumn.bookNDrawersOrder(order, nbDrawersToBookForColumn);\n\t }\n\t return true;\n\t}\n\t/*******************************************************/\n\t/******* Fin de la vraie réservation des drawers *******/\n\t/*******************************************************/\n }", "private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }", "private void listYourCar() {\r\n\r\n int year;\r\n String brand;\r\n String model;\r\n int mileage;\r\n int bidPrice;\r\n\r\n System.out.println(\"Please enter the following details:\\nYear of car:\");\r\n\r\n year = input.nextInt();\r\n System.out.println(\"Brand of car:\");\r\n brand = input.next();\r\n System.out.println(\"Model of car:\");\r\n model = input.next();\r\n System.out.println(\"Mileage of car:\");\r\n mileage = input.nextInt();\r\n System.out.println(\"Starting bid price of car\");\r\n bidPrice = input.nextInt();\r\n\r\n user = createListings(year, brand, model, mileage, bidPrice);\r\n checkCarIsListed(user);\r\n }", "public void carInput()\n\t{\n\t\tSystem.out.println(\"Enter passenger number of car:\");\n\t\tobjCar.setCarPassengerNumber(sc.nextInt());\n\t}", "public static int doorToReveal1(int c, int u)\n\t{\n\t\tint r = (int) (Math.random() * 3 + 1);\n\t\twhile (r == c || r == u)\n\t\t{\n\t\t\tr = (int) (Math.random() * 3 + 1);\n\t\t\n\t\t}\n\t\treturn r;\n\t\n\t\n\t}", "public static void VerificarPar(){\n\t\tint numero;\n\t\tint resultado;\n\t\tString tomar;\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese un numero\");\n\t\tnumero=reader.nextInt();\n\t\tresultado=(numero%2);\n\t\tif(resultado==0){\n\t\t\tSystem.out.println(\"Numero Par: \"+(numero*2));\n\t\t}else{\n\t\t\tSystem.out.println(\"Numero Impar: \"+(numero*3));\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "private void refreshRightDoors(){\n\n if (this.selectedTrain.getRightDoor() == 1){ this.rightDoorsOpenRadioButton.setSelected(true); }\n else if (this.selectedTrain.getRightDoor() == 0){ this.rightDoorsCloseRadioButton.setSelected(true); }\n else if (this.selectedTrain.getRightDoor() == -1) {this.rightDoorsFailureRadioButton.setSelected(true); }\n }", "private boolean identify(BaseNumber randomDoubleNumber, BaseNumber userDoubleNumber) {\n\n int compare = randomDoubleNumber.compareTo(userDoubleNumber);\n\n switch (compare) {\n case -1:\n System.out.println(\"Your number is to high.\");\n return false;\n case 0:\n System.out.println(\"Winner\");\n return true;\n default:\n System.out.println(\"to small\");\n return false;\n }\n }", "@Test\n\tpublic void testNumberOfDoorways() \n\t{\n\t\tint numDoors = 0;\n\t\tfor (int row=0; row<board.getNumRows(); row++)\n\t\t\tfor (int col=0; col<board.getNumColumns(); col++) {\n\t\t\t\tBoardCell cell = board.getCellAt(row, col);\n\t\t\t\tif (cell.isDoorway())\n\t\t\t\t\tnumDoors++;\n\t\t\t}\n\t\tAssert.assertEquals(14, numDoors);\n\t}", "public static void main(String[] args)\n\t\t\t{\n\t\t\t\tScanner enter = new Scanner(System.in);\n\t\t\t\tSystem.out.println(\"Please enter your condominium selection:\\n1 - Park View\\n2 - Golf \" +\n\t\t\t\t \"Course View\\n3 - Lake View\");\n\t\t\t\tcondoSelection = enter.nextInt();\n\t\t\t\tboolean invalidResponse = (condoSelection > 3 || condoSelection < 0);\n \n \n\t\t\t\tif (condoSelection == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tsalesPrice = PARKVIEW_PRICE;\n\t\t\t\t\t\tSystem.out.println(park + String.format( \"%.2f\", salesPrice ));\n\t\t\t\t\t}\n\t\t\t\telse if (condoSelection == 2)\n\t\t\t\t\t{\n\t\t\t\t\t\tsalesPrice = GOLFVIEW_PRICE;\n\t\t\t\t\t\tSystem.out.println(golf + String.format( \"%.2f\", salesPrice ));\n\t\t\t\t\t}\n\t\t\t\telse if (condoSelection == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tsalesPrice = LAKEVIEW_PRICE;\n\t\t\t\t\t\tSystem.out.println(lake + String.format( \"%.2f\", salesPrice ));\n\t\t\t\t\t}\n\t\t\t\telse if (invalidResponse)\n\t\t\t\t\t{\n\t\t\t\t\t\tsalesPrice = 0;\n\t\t\t\t\t\tSystem.out.println(invalidSelection + String.format( \"%.2f\", salesPrice ));\n\t\t\t\t\t}\n\t\t\t}", "private void customerMenu(Connection connection, int chosenCustomer) {\n\n try (Statement statement = connection.createStatement()) {\n\n while (true) {\n\n // check whether customer has rented a car\n boolean hasRentedCar = false;\n int carId = -1;\n try (ResultSet cus = statement.executeQuery(\"SELECT * FROM CUSTOMER WHERE id = \" + chosenCustomer)) {\n cus.next();\n carId = cus.getInt(\"rented_car_id\");\n if (carId != 0) {\n hasRentedCar = true;\n }\n }\n\n System.out.println(\"\\n1. Rent a car \\n2. Return a rented car \\n3. My rented car \\n0. Back\");\n int choice = Integer.parseInt(scanner.nextLine());\n\n if (choice == 0) {\n break;\n\n } else if (choice == 3) {\n\n // check whether customer has rented a car\n if (!hasRentedCar) {\n System.out.println(\"You didn't rent a car!\");\n } else {\n\n // if customer has already rented a car\n\n try (ResultSet rentedCar = statement.executeQuery(\"SELECT * FROM CAR WHERE id = \" + carId)) {\n // retrieve column values\n System.out.println(\"You rented a car:\");\n\n rentedCar.next();\n String name = rentedCar.getString(\"name\");\n System.out.println(name);\n\n int compId = rentedCar.getInt(\"company_id\");\n\n try (ResultSet belongToComp = statement.executeQuery(\"SELECT * FROM COMPANY WHERE id = '\" + compId + \"'\")) {\n // retrieve column values\n System.out.println(\"Company:\");\n\n belongToComp.next();\n String compName = belongToComp.getString(\"name\");\n System.out.println(compName);\n }\n }\n }\n\n } else if (choice == 1) {\n // Rent a car\n // List all companies\n\n if (hasRentedCar) {\n System.out.println(\"You've already rented a car!\");\n } else {\n int neededCarId = listAllCompanies(connection, \"customer\");\n\n if (neededCarId != 0) {\n statement.executeUpdate(\"UPDATE CUSTOMER SET rented_car_id = \" + neededCarId +\n \" WHERE id = \" + chosenCustomer);\n\n try (ResultSet car = statement.executeQuery(\"SELECT * FROM CAR WHERE id = \" + neededCarId)) {\n\n car.next();\n String carName = car.getString(\"name\");\n System.out.println(\"You rented '\" + carName + \"'\");\n\n }\n }\n\n }\n\n } else if (choice == 2) {\n // Return a car\n if (!hasRentedCar) {\n System.out.println(\"You didn't rent a car!\");\n } else {\n statement.executeUpdate(\"UPDATE CUSTOMER SET rented_car_id = NULL \" +\n \"WHERE id = \" + chosenCustomer);\n\n System.out.println(\"You've returned a rented car!\");\n }\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void makePayment(double roomPrice, Room room, int counter) {\n\t\tif(counter < 3) {\t\t\t\t\t\t\t\t\t\t\t//A payment can be attempted 3 times. User enters the amount\n\t\tSystem.out.println(\"\\nPlease enter outstanding balance being payed by customer.\"); //received from guests for Room\n\t\tSystem.out.println(\"DUE: €\"+roomPrice+\"0\");\n\t\tdouble moneyPayed = keyboard.nextDouble();\t\t\t\t\t\t\t\t\t\t\t//amount is entered to the screen\n \n\t\t\tif((roomPrice - moneyPayed) <= 0) {\t\t\t\t\t\t\t\t\t\t\t//if guests have give the value of the bill\n\t\t\t\tSystem.out.println(\"\\n GUESTS CHECKED-OUT \");\t\t\n\t\t\t\troom.removeAllGuestsFromRoom(room);\t\t\t\t\t\t\t\t\t\t//guests of that room are checked out\n\t\t\t\tSystem.out.println(\"******* THANK YOU FOR YOUR PAYMENT *********\");\t\t\t\t\n\t\t\t\tdayEarnings += moneyPayed; \t\t\t\t\t\t\t\t\t\t\t\t//money received is added to the earnings\n\t\t\t\tif(moneyPayed - roomPrice > 0) {\t\t\t\t\t\t\t\t\t\t//if they payed more than required\n\t\t\t\t\tSystem.out.println(\"\\tCHANGE DUE TO CUSTOMER : €\"+(moneyPayed-roomPrice)+\"0\"); //amount of change due is displayed\n\t\t\t\t\tdayEarnings = dayEarnings - (moneyPayed - roomPrice);\t\t\t\t//change given back is removed from earnings\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"**********************************************\\n\");\n\t\t\t}\n\t\t\telse {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//guests have not handed over enough money\t\n\t\t\t\tif(counter < 2 )\n\t\t\t\tSystem.out.println(\"\\n******* YOU HAVE NOT PAYED ENOUGH **********\");\n\t\t\t\tSystem.out.println(\"**********************************************\\n\");\n\t\t\t\tcounter++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//when counter reaches 3 Payment is not\n\t\t\t\troomPrice = roomPrice - moneyPayed;\t\t\t\t\t\t\t\t\t\t//accepted and you are put back to mainMenu\n\t\t\t\tmakePayment(roomPrice, room , counter);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"******* UNSUCCESSFULL PAYMENT **********\");\t\t\t//if the guests did not pay correctly 3\n\t\t\tSystem.out.println(\"******* NO MONEY TAKEN **********\");\t\t\t//times then they are not checked-out\n\t\t\tSystem.out.println(\"******************************************\\n\");\t\t\t//and their bill is still due\n\t\t\tSystem.out.println(\"**** PLEASE TRY TO CHECK-OUT AGAIN *****\");\n\t\t}\n\t}", "private int getOtherTower(int tower1, int tower2) {\n\t\tswitch(tower1) {\n\t\t\tcase 1:\n\t\t\t\tif(tower2 == 2) return 3;\n\t\t\t\telse return 2;\n\t\t\tcase 2:\n\t\t\t\tif(tower2 == 1) return 3;\n\t\t\t\telse return 1;\n\t\t\tcase 3:\n\t\t\t\tif(tower2 == 1) return 2;\n\t\t\t\telse return 1;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"The tower to choose must be 1, 2, or 3. Given: \" \n\t\t\t\t\t+ tower1 \n\t\t\t\t\t+ \" and \" \n\t\t\t\t\t+ tower2);\n\t\t}\n\t}", "public Door getDoor() {\n\t\treturn door;\n\t}", "public void elevatorLoop()\n{\n \n e = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the floor number you would like to go: 0-9\"));\n while((e > 9) || (e < 0))\n {\n JOptionPane.showMessageDialog(null, \"not in the range of floors\");\n e = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the floor number you would like to go: 0-9\"));\n }\n elevatorFloor();\n}", "public static void main(String[] args) {\n\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString input1 = \"\";\r\n\t\tString input2 = \"\";\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.println(\"is the item an animal, vegetable, or mineral?\");\r\n\t\t\tinput1 = scan.next();\r\n\t\t\tif (input1.equals(\"animal\") || input1.equals(\"vegetable\") || input1.equals(\"mineral\")) {\r\n\t\t\t\tSystem.out.println(\"is the \" + input1 + \" bigger or smaller than your laptop?\");\r\n\t\t\t\tinput2 = scan.next();\r\n\t\t\t\tif (input2.equals(\"bigger\") || input2.equals(\"smaller\")) {\r\n\t\t\t\t\tSystem.out.println(\"is your \" + input1 + \" a...\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Enter bigger or smaller\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Enter animal, vegetable, or mineral\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (input1.equals(\"animal\") && input2.equals(\"bigger\"))\r\n\t\t\tSystem.out.println(\"horse?\");\r\n\t\tif (input1.equals(\"animal\") && input2.equals(\"smaller\"))\r\n\t\t\tSystem.out.println(\"rabbit?\");\r\n\t\tif (input1.equals(\"vegetable\") && input2.equals(\"bigger\"))\r\n\t\t\tSystem.out.println(\"cabbage?\");\r\n\t\tif (input1.equals(\"vegetable\") && input2.equals(\"smaller\"))\r\n\t\t\tSystem.out.println(\"potato?\");\r\n\t\tif (input1.equals(\"mineral\") && input2.equals(\"bigger\"))\r\n\t\t\tSystem.out.println(\"car?\");\r\n\t\tif (input1.equals(\"mineral\") && input2.equals(\"smaller\"))\r\n\t\t\tSystem.out.println(\"phone?\");\r\n\r\n\t}", "public void orderChecker()\n {\n System.out.print( \"Number of bolts: \" );\n int bolts = scan.nextInt();\n System.out.print( \"Number of nuts: \" );\n int nuts = scan.nextInt();\n System.out.print( \"Number of washers: \" );\n int washers = scan.nextInt();\n if ( nuts >= bolts )\n {\n if ( washers >= 2 * bolts )\n {\n System.out.println( \"Check the Order: Order is OK.\" );\n }\n else\n {\n System.out.println( \"Check the Order: Too few washers.\" );\n }\n }\n else\n {\n System.out.println( \"Check the Order: Too few nuts.\" );\n if ( ( washers < 2 * bolts ) )\n {\n System.out.println( \"Check the Order: Too few washers.\" );\n }\n }\n\n final int boltPrice = 5;\n final int nutPrice = 3;\n final int washerPrice = 1;\n int cost = boltPrice * bolts + nutPrice * nuts + washerPrice * washers;\n System.out.println( \"Total cost: \" + cost );\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\t\n\t\t{\n\t\t\t\n\t\t\tSystem.out.print(\"Enter the amount of oil ordered, in gallons: \"); //output to ask user test oil\n\t\t\tdouble oil = in.nextDouble(); //program waits and asks user for input\n\t\t\n\n\t\t\n\t\tif (oil >= 100) //if statement for oil greater than equal to 100\n\t\t{\n\t\t\tint discount = 1; //Displays prompt if user enters a value 100 or greater\n\t\t\tdouble pricePerGallon = 325.00;\n\t\t\tdouble pricePerGallon2 = 3.25;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 200) //if statement for oil greater than or equal to 200\n\t\t{\n\t\t int discount2 = 2; //Displays prompt if user enters a value of 200 or greater\n\t\t\tdouble pricePerGallon = 650.00;\n\t\t\tdouble pricePerGallon2 = 6.50;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount2 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 300) //if statement for oil greater than or equal to 300\n\t\t{\n\t\t\tint discount3 = 3; //Displays prompt if user enters a value 300 or greater\n\t\t\tdouble pricePerGallon = 975.00;\n\t\t\tdouble pricePerGallon2 = 9.75;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount3 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 400) //if statement for oil greater than or equal to 400\n\t\t{\n\t\t\tint discount4 = 4; //Displays prompt if user enters a value 400 or greater\n\t\t\tdouble pricePerGallon = 1300.00;\n\t\t\tdouble pricePerGallon2 = 13;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount4 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 500) //if statement for oil greater than or equal to 500\n\t\t{\n\t\t\tint discount5 = 5; //Displays prompt if user enters a value 500 or greater\n\t\t\tdouble pricePerGallon = 1625.00;\n\t\t\tdouble pricePerGallon2 = 16.25;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount5 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.print(\"Have a great day\"); //Displays message if the input of oil is less than 100 \n\t\t}\n\t\t\n\t\t}\n\t\t}", "public void productAnalysis()\n {\n Scanner scan = new Scanner (System.in);\n String ans;\n\n do \n {\n System.out.println(\"Are you doing product analysis for a carseat [C] or a buggy [B]\");\n ans=scan.nextLine();\n if(!(ans.equalsIgnoreCase(\"B\")||ans.equalsIgnoreCase(\"C\")))\n {\n System.out.println(\"Error, Enter [B] for Buggy or [C] for Carseat\");\n }\n } while (!(ans.equalsIgnoreCase(\"B\")||ans.equalsIgnoreCase(\"C\")));\n\n if (ans.equalsIgnoreCase(\"B\"))\n {\n for (Hardware aHardware : list)\n {\n if (aHardware instanceof Buggy)\n {\n Buggy b = (Buggy) aHardware;\n\n if (b.getSales()>0)\n {\n System.out.println(\"Displaying the buggies with the most units sold\");\n System.out.println(\"Brand: \" + b.getBrand() + \" \" + \"Number of units sold: \" + b.getSales());\n }\n\n if (b.getSales() == 0)\n {\n System.out.println(\"Displaying the buggies with no sales\");\n System.out.println(\"Brand: \"+ b.getBrand());\n }\n }\n }\n }\n\n if (ans.equalsIgnoreCase(\"C\"))\n {\n for (Hardware aHardware : list)\n {\n if (aHardware instanceof Carseat)\n {\n Carseat c = (Carseat) aHardware;\n if (c.getSales()>0)\n {\n System.out.println(\"Displaying the carseats with the most units sold\");\n System.out.println(\"Brand: \" + c.getBrand() + \"Number of units sold\" + c.getSales());\n }\n\n if (c.getSales() == 0)\n {\n System.out.println(\"Displaying the carseats with no sales\");\n System.out.println(\"Brand: \"+ c.getBrand());\n } \n }\n }\n }\n\n }", "public void checkAiCarCollision(UserCar userCar, int numberOfAiCars) {\n if (aiCar.collidesWith(userCar.getCollisionRectangle()) && numberOfAiCars >= 1) {\n aiCar.fullStop();\n userCar.setX(aiCar.getX() + userCar.getX()-aiCar.getX());\n userCar.setY(userCar.getY() + userCar.getY()-aiCar.getY());\n }\n if (aiCar2.collidesWith(userCar.getCollisionRectangle())&& numberOfAiCars >= 2) {\n aiCar2.fullStop();\n userCar.setX(aiCar2.getX() + userCar.getX()-aiCar2.getX());\n userCar.setY(userCar.getY() + userCar.getY()-aiCar2.getY());\n }\n if (userCar.collidesWith(aiCar3.getCollisionRectangle())&& numberOfAiCars >= 3) {\n userCar.fullStop();\n aiCar3.setX(aiCar3.getX() + aiCar3.getX()-userCar.getX());\n aiCar3.setY(aiCar3.getY() + aiCar3.getY()-userCar.getY());\n }\n }", "public int getDoor(int i){\n\treturn ((Integer) synDoors.get(i)).intValue();\n }", "@Override\n public boolean checkBuilding(Integer recherche, Integer money) {\n if (money <= Constantes.IMPROVE_HOUSE){\n System.out.println(\"Vous n'avez pas les fonds suffisants pour acheter une nouvelle maison.\");\n return false;\n }\n else {\n return true;\n }\n }", "public void popier() {\n Scanner input1 = new Scanner(System.in);\n //Ivedame vaiku skaiciu\n Scanner input2 = new Scanner(System.in);\n //Idame tevu skaiciu\n Scanner input3 = new Scanner(System.in);\n\n System.out.println(\"Iveskite atlyginimą ant popieriaus: \");\n double atlyginimas = input1.nextDouble();\n\n System.out.println(\"Iveskite turimų vaikų iki 18 metų skaičių.\");\n int vaikai = input2.nextInt();\n if (vaikai == 0) {\n\n //Apskaiciuojame NPD\n double npd = 310 - 0.5 * (atlyginimas - 380);\n if (npd >= 0)\n System.out.println(\"NPD: \" + npd);\n else\n System.out.println(\"NPD: \" + 0);\n\n //Bendras NPD\n double bnpd = npd;\n System.out.println(\"Bendras NPD: \" + bnpd);\n\n //Darbuotojo mokesciai\n System.out.println(\"\\nDarboutojo mokesčiai:\");\n\n //Apskaiciuojame GPM\n //Gauname neapmokestinama dali\n double nep = atlyginimas - bnpd;\n\n //GPM 15%\n double gpm = nep * 1.15 - nep;\n System.out.printf(\"Pajamu mokestis (GPM): %.2f %n\", gpm);\n\n //Apskaiciuojame PSD 6%\n double psd = atlyginimas * 1.06 - atlyginimas;\n System.out.printf(\"Sveikatos draudimas (PSD): %.2f %n\", psd);\n\n //Apskaiciuojame pensija ir soc draudima 3%\n double soc = atlyginimas * 1.03 - atlyginimas;\n System.out.printf(\"Pensijų ir soc. Draudimas: %.2f %n\", soc);\n\n\n //Darbdavio mokesciai\n System.out.println(\"\\nDabdavio mokami mokesčiai:\");\n\n //Sodros imoka 30.98%\n double sod = atlyginimas * 1.3098 - atlyginimas;\n System.out.printf(\"Sodros įmoka (VSD): %.2f %n\", sod);\n\n // Imoka i garantini fonda 0.2%\n double gar = atlyginimas * 1.002 - atlyginimas;\n System.out.printf(\"Įmokos į Garantinį fondą: %.2f %n\", gar);\n\n //Uzmokestis i rankas\n double rank = atlyginimas - gpm - psd - soc;\n System.out.printf(\"%nUžmokestis gaunamas į rankas: %.2f %n\", rank);\n\n //Darbo vietos kaina\n double viet = atlyginimas + sod + gar;\n System.out.printf(\"Darbo vietos kaina darbdaviui: %.2f\", viet);\n\n\n } else {\n\n System.out.println(\"Keliese auginate vaikus?\");\n int tevai = input3.nextInt();\n\n\n //Apskaiciuojame NPD\n double npd = 310 - 0.5 * (atlyginimas - 380);\n if (npd >= 0)\n System.out.println(\"NPD: \" + npd);\n else\n System.out.println(\"NPD: \" + 0);\n\n //Apskaiciuojame PNPD\n double pnpd = (200 * vaikai) / tevai;\n System.out.println(\"PNPD: \" + pnpd);\n\n //Bendras NPD\n double bnpd = npd + pnpd;\n System.out.println(\"Bendras NPD: \" + bnpd);\n\n //Darbuotojo mokesciai\n System.out.println(\"\\nDarboutojo mokesčiai:\");\n\n //Apskaiciuojame GPM\n //Gauname neapmokestinama dali\n double nep = atlyginimas - bnpd;\n\n //GPM 15%\n double gpm = nep * 1.15 - nep;\n System.out.printf(\"Pajamu mokestis (GPM): %.2f %n\", gpm);\n\n //Apskaiciuojame PSD 6%\n double psd = atlyginimas * 1.06 - atlyginimas;\n System.out.printf(\"Sveikatos draudimas (PSD): %.2f %n\", psd);\n\n //Apskaiciuojame pensija ir soc draudima 3%\n double soc = atlyginimas * 1.03 - atlyginimas;\n System.out.printf(\"Pensijų ir soc. Draudimas: %.2f %n\", soc);\n\n\n //Darbdavio mokesciai\n System.out.println(\"\\nDabdavio mokami mokesčiai:\");\n\n //Sodros imoka 30.98%\n double sod = atlyginimas * 1.3098 - atlyginimas;\n System.out.printf(\"Sodros įmoka (VSD): %.2f %n\", sod);\n\n // Imoka i garantini fonda 0.2%\n double gar = atlyginimas * 1.002 - atlyginimas;\n System.out.printf(\"Įmokos į Garantinį fondą: %.2f %n\", gar);\n\n //Uzmokestis i rankas\n double rank = atlyginimas - gpm - psd - soc;\n System.out.printf(\"%nUžmokestis gaunamas į rankas: %.2f %n\", rank);\n\n //Darbo vietos kaina\n double viet = atlyginimas + sod + gar;\n System.out.printf(\"Darbo vietos kaina darbdaviui: %.2f\", viet);\n\n }\n\n\n\n }", "boolean potvrdiUnos(){\r\n\t\tboolean odluka = false;\r\n\t\tboolean test = true;\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\t//trazenje od korisnika da odabere opciju\r\n\t\tdo{\r\n\t\t\tSystem.out.println(\"Izvrsiti?(DA/NE)\");\r\n\t\t\tString karakter = in.next();\r\n\t\t\tif(karakter.equals(\"DA\") || karakter.equals(\"da\")){\r\n\t\t\t\todluka = true;\r\n\t\t\t\ttest = false;\r\n\t\t\t}\r\n\t\t\tif(karakter.equals(\"NE\") || karakter.equals(\"ne\")){\r\n\t\t\t\ttest = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}while(test);\r\n\t\treturn odluka;\r\n\t}", "public static void main(String args[]){\n\n EasyReader e = new EasyReader();\n \n System.out.println(\"Type in a number between 1 and 20\");\n int x = e.readInt(); // (int)(Math.random()*20+1);\n \n if (x<20 && x >1){\n int computer = 7;// (int)(Math.random()*20+1);\n \n System.out.println(\"The number the computer generated is \" + computer);\n if (x == computer)\n System.out.println(\"You've won $10!\");\n else if (computer - 2 == x || computer + 2 ==x || computer -1 == x || computer +1 == x)\n System.out.println(\"You've won $5!\");\n else \n System.out.println(\"You've won nothing and you lost.\");\n }\n else \n System.out.println(\"The number is outside the range.\");\n \n }", "public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }", "private void BostonCarRentalActionPerformed(ActionEvent evt) {\n // TODO add your handling code here:\n createConnection();\n try {\n Statement bostonCarButton = connectionTRA.createStatement();\n ResultSet bostonCarResult = bostonCarButton.executeQuery(\"SELECT * FROM Domestic_Car WHERE DomesticCarID = 1\");\n while (bostonCarResult.next()) {\n String carFromQ = bostonCarResult.getString(\"DomesticCar\");\n String addressFromQ = bostonCarResult.getString(\"DomesticCarAddress\");\n String phoneFromQ = bostonCarResult.getString(\"DomesticCarPhone\");\n carRentalSummaryEquals(carFromQ, addressFromQ, phoneFromQ);\n }\n } catch (SQLException carE1) {\n carE1.printStackTrace();\n }\n try {\n connectionTRA.close();\n } catch (SQLException carE2) {\n carE2.printStackTrace();\n }\n }" ]
[ "0.6254225", "0.6183788", "0.5796441", "0.5671101", "0.56296253", "0.55934954", "0.553109", "0.5525523", "0.54849136", "0.545331", "0.5217026", "0.51737744", "0.51517344", "0.5136198", "0.5134719", "0.51330656", "0.51188797", "0.5107325", "0.50921077", "0.5090146", "0.50597525", "0.50515544", "0.5030184", "0.4993896", "0.4978672", "0.4943653", "0.49423715", "0.4934053", "0.49289304", "0.49169856", "0.49139598", "0.4910005", "0.49074718", "0.49071148", "0.48942694", "0.488782", "0.48822626", "0.4876607", "0.48610514", "0.48544347", "0.48478323", "0.4846677", "0.48379737", "0.48361287", "0.48332462", "0.48213086", "0.48137748", "0.4813497", "0.4800042", "0.47996795", "0.47957167", "0.47932458", "0.4791081", "0.47905895", "0.47884494", "0.47690818", "0.47600287", "0.47421113", "0.4741123", "0.47401324", "0.47357038", "0.473151", "0.47219914", "0.4720069", "0.47151214", "0.471412", "0.4709185", "0.47090158", "0.47032377", "0.46942142", "0.4692188", "0.468854", "0.46879423", "0.46775737", "0.4676164", "0.4669359", "0.46674296", "0.46654478", "0.4664362", "0.46626437", "0.4661837", "0.46577537", "0.46569875", "0.46553612", "0.46536392", "0.4645454", "0.4644964", "0.46440306", "0.46364602", "0.46362367", "0.46355858", "0.46331435", "0.46278012", "0.46273932", "0.4624217", "0.46214247", "0.46144333", "0.46143806", "0.4613736", "0.46133304" ]
0.49742445
25
This method reveals the door that is neither the one with the car or the one that the user chose. use a while loop to go through every door and compared whether or not if the car door number equals to the number that the user chose. If so, it continues in the for loop. It also compares if the
public static int doorToReveal1(int c, int u) { int r = (int) (Math.random() * 3 + 1); while (r == c || r == u) { r = (int) (Math.random() * 3 + 1); } return r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void game()\n\t{\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tint car = (int)(Math.random() * 3 + 1);\n\t\t\n\t\t//testing\n\t\tSystem.out.println(\"car = \" + car); \n\t\t\n\t\tSystem.out.print(\"Please choose a door (1, 2, or 3) \");\n\t\tint user_pick = keyboard.nextInt();\n\t\t// get rid of the newLine from the buffer\n\t\tkeyboard.nextLine();\n\t\t\n\t\t// testing\n\t\tSystem.out.println(\"You chose door # \" + user_pick);\n\t\t\n\t\tint reveal = doorToReveal(car, user_pick);\n\t\t\n\t\t//testing\n\t\tSystem.out.println(\"Open door #: \" + reveal);\n\t\t\n\t\t//ask the user if they want to switch\n\t\tSystem.out.println(\"Do you want to switch?: \");\n\t\tString answer = keyboard.nextLine();\n\t\t\n\t\t//testing \n\t\tSystem.out.println(\"The user wants to switch \" + answer);\n\t\t\n\t\tif(answer.equals(\"yes\"))\n\t\t{\n\t\t\tuser_pick = doorToReveal1(user_pick, reveal);\n\t\t\n\t\t}\n\t\t\n\t\tif ( car == user_pick )\n\t\t\tSystem.out.print(\"You win!!\");\n\t\telse\n\t\t\tSystem.out.println(\"Sorry! You lose !!!\");\n\t\n\t}", "public boolean isDoorSelected(int i) {\n return chosen_door == doors.get(i);\n }", "public void selectedDoor(int i) {\n if (stage != Stage.BEGINNING) {\n throw new RuntimeException(\"Invalid Stage\");\n }\n chosen_door = doors.get(i);\n if (doors.get(i).getContains() == Contains.CAR) {\n if (chosen_door == doors.get(2)) {\n doors.get(i - 1).open();\n } else {\n doors.get(i + 1).open();\n }\n } else {\n for (Door extraDoor : doors) {\n if (extraDoor == chosen_door) {\n continue;\n }\n if (extraDoor.getContains() == Contains.CAR) {\n continue;\n }\n extraDoor.open();\n }\n }\n for (\n Door door : doors)\n\n {\n if (door == chosen_door) {\n continue;\n\n }\n if (door.getState() == State.OPEN) {\n continue;\n }\n\n switch_door = door;\n }\n\n stage = Stage.DOOR_CHOSEN;\n }", "public void stayDoor() {\n if (stage != Stage.DOOR_CHOSEN) {\n throw new RuntimeException(\"Invalid Stage\");\n }\n\n stage = Stage.END;\n for (Door door : doors) {\n if (door.getState() == State.CLOSED) {\n door.open();\n }\n continue;\n }\n total_stayed++;\n if (chosen_door.getContains() == Contains.CAR) {\n won_stayed++;\n }\n }", "private void checkIfWon() {\r\n\r\n Car temp;\r\n int carInList;\r\n input = new Scanner(System.in);\r\n\r\n System.out.println(\"Which vehicle did you bid on?\");\r\n cars.getListings();\r\n\r\n double winningBid = rng(1, 5000);\r\n\r\n carInList = input.nextInt();\r\n temp = cars.getCar(carInList);\r\n\r\n if (winningBid <= 1000) {\r\n System.out.println(\"You have won the bid! Congratulations!\");\r\n } else {\r\n System.out.println(\"I'm sorry, the selling price was $\" + (int) winningBid + \" above your bid\");\r\n }\r\n removeYourCar(temp);\r\n\r\n }", "public void switchDoors() {\n if (stage != Stage.DOOR_CHOSEN) {\n throw new RuntimeException(\"Invalid Stage\");\n\n }\n chosen_door = switch_door;\n stage = stage.END;\n for (Door door : doors) {\n if (door.getState() == State.CLOSED) {\n door.open();\n }\n continue;\n }\n total_switched++;\n if (chosen_door.getContains() == Contains.CAR) {\n won_switched++;\n }\n }", "public static void inspectDoors(Player player) {\n System.out.println(\"You look for doors.\");\n System.out.println(\"You see:\");\n ArrayList<Door> doors = player.getCurrentRoom().getDoors();\n for (int i = 0; i < doors.size(); i++) {\n System.out.print(\"\\t(\" + i + \") \");\n doors.get(i).inspect();\n }\n System.out.println(\"Which door will you take? (-1 to stay)\");\n }", "public boolean isWin() {\n if (chosen_door.getContains() == Contains.CAR) {\n return true;\n }\n return false;\n }", "public boolean onDoor(){\n\t\tint yp = 0; int xp = 0;//coordinates to hold player position\n\t\tint yd = 1; int xd = 1;//coordinates to hold door position\n\t\tfor(int i = 0; i < this.position.length; i ++){//looks though arrays to gather position\n\t\t\tfor(int p = 0 ; p < this.position.length; p++){\n\t\t\t\tif(this.position[i][p] == 1 && this.Door[i][p] == 1){\n\t\t\t\t\typ = i; xp = p;\n\t\t\t\t\tyd = i; xd = p;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\tif(yp==yd && xp==xd){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;//if they are not in the same location, return false\n\t}", "private Car identifyCarWinner(Collection<Car> cars) {\n\t\tOptional<Car> winner = cars.stream()\n\t\t\t.max((x, y) -> Comparator.<Double>naturalOrder()\n\t\t\t.compare(x.getDistance(), y.getDistance()));\n\t\t\n\t\treturn winner.get();\n\t}", "private void ex03(){\n final int building;\n building = 99;\n\n //The number of floors of a tall building under construction\n //Data type: integer\n int buc; // buc stands for building under construction\n buc = 20;\n\n //A distance between two buildings\n //Data type: int\n int distance;\n distance = 3984;\n\n //The state of a door lock\n //Data type: boolean\n boolean locked = false;\n boolean unlocked = true;\n\n\n //Your telephone number\n //Data type: string\n String number;\n number = \"12345678\";\n\n //The percentage of students enrolled in FIT1051 this semester to all other units\n //Data type:double + char\n double percentage;\n percentage = 50.0;\n char per='%';\n\n //Your weight in kilos\n //Data type: double\n double weight;\n weight = 44.0;\n\n //The weight of a litre of water in kilos\n //Data type: double\n double kilo;\n kilo = 0.001;\n\n //The state of coin tossing\n //Data type: boolean\n boolean head = true;\n boolean tail = false;\n\n //The state of dice rolling\n //Data type: integer\n int roll1=1;\n int roll2=2;\n int roll3=3;\n int roll4=4;\n int roll5=5;\n int roll6=6;\n\n //Whether the stock market was \"bear\" or \"bull\" or flat today\n //Data type: boolean\n boolean bear = false;\n boolean bull = true;\n boolean flat = Boolean.parseBoolean(null);\n\n myWindow.clearOut();\n myWindow.writeOutLine(\"The number of floors of a tall building: \"+building+\" floors\");\n myWindow.writeOutLine(\"The number of floors of a tall building under construction: \" +buc+\" floors\");\n myWindow.writeOutLine(\"The distance between two buildings: \"+distance+\" meters\");\n myWindow.writeOutLine(\"The door is unlocked: \"+locked);\n myWindow.writeOutLine(\"Your telephone number: \"+number);\n myWindow.writeOutLine(\"The percentage of students enrolled in FIT1051 this semester to all other units: \"+percentage+per);\n myWindow.writeOutLine(\"Your weight in kilos: \"+weight+\" kg\");\n myWindow.writeOutLine(\"The weight of 1 litre of water in kilos: \"+kilo+\" kL\");\n myWindow.writeOutLine(\"The state of coin tossing is head: \"+head);\n myWindow.writeOutLine(\"The state of dice rolling: \"+roll2);\n myWindow.writeOutLine(\"The stock market was bull today: \"+bull);\n //YOUR CODE ABOVE HERE\n }", "public static void main(String [] args){\n int intChoice1,intChoice2,intChoice3,intChoice4;\r\n int intNumRight = 0;\r\n \r\n //Create scanner\r\n Scanner sc = new Scanner(System.in);\r\n \r\n //clear the screen\r\n CLS();\r\n \r\n // Get user input \r\n System.out.println(\"\\n\\n Pick 4 lotter numbers between 0 and 9\\n\");\r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice1 = sc.nextInt(); \r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice2 = sc.nextInt(); \r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice3 = sc.nextInt(); \r\n System.out.print(\" Choose a Lottery Number > \");\r\n intChoice4 = sc.nextInt(); \r\n \r\n //clear the screen\r\n CLS();\r\n \r\n //array to hold lottery numbers\r\n int [] intLotteryNumbers = new int[4]; \r\n \r\n //fill lottery number array\r\n Random rand = new Random();\r\n for(int x = 0; x < intLotteryNumbers.length; x++){\r\n intLotteryNumbers[x] = rand.nextInt(9);\r\n for (int y = 0; y < x; y++){\r\n if(intLotteryNumbers[x] == intLotteryNumbers[y]){\r\n x--;\r\n break;\r\n } \r\n }//if statement checks if duplicate value and resets the outer loop \r\n \r\n }\r\n System.out.println(\"\\n\\n The winning Numbers are >\\n\");\r\n for(int z = 0;z < intLotteryNumbers.length;z++ ){\r\n System.out.println(\"\\t\" + intLotteryNumbers[z]);\r\n }\r\n \r\n for(int a = 0;a < intLotteryNumbers.length;a++ ){\r\n if(intChoice1 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n else if(intChoice2 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n else if(intChoice3 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n else if(intChoice4 == intLotteryNumbers[a]){\r\n intNumRight+=1;\r\n }\r\n }\r\n System.out.println(\"\\n\\n The numbers you chose are \" + intChoice1 + \", \" + intChoice2 + \", \" + intChoice3 + \", \" + intChoice4 + \"\\n\");\r\n \r\n switch(intNumRight){\r\n case 0: //No matches\t0 points\r\n System.out.println(\" Sorry you didn't get any numbers right 0 points\");\r\n break;\r\n case 1://Any one digit matching\t5 points\r\n System.out.println(\" You got 1 number right and earned 5 points\");\r\n break;\r\n case 2://Any two digits matching\t100 points\r\n System.out.println(\" You got 2 number right and earned 100 points\");\r\n break;\r\n case 3://Any three digits matching\t2,000 points\r\n System.out.println(\" You got 3 number right and earned 2,000 points\");\r\n break;\r\n case 4://All four digits matching\t1,000,000 points\r\n System.out.println(\" You got all numbers right and earned 1,000,000 points\");\r\n break;\r\n }\r\n \r\n }", "public boolean humanPlayerTypeSelectionMenu(Scanner keyboardIn) {\n boolean selectedOdds = true;\n\n keyboardIn = new Scanner(System.in);\n int selection = 0;\n\n do{\n System.out.println(\"Would you like to play Odds or Even? Please select\");\n System.out.println(\"1. Odds\");\n System.out.println(\"2. Even\");\n selection = keyboardIn.nextInt();\n } while (selection != 1 && selection != 2);\n \n if (selection == 1){\n selectedOdds = true;\n }\n else selectedOdds = false;\n\n return selectedOdds;\n }", "private static void purchaseCar(Scanner scan, List<UsedCar> carList, int menuChoice, int numCars) {\n String input = \"\";\n\n if (menuChoice == numCars) { // if user chooses to quit then jump out of the loop. this ensures we won't get\n // an out of bounds exception\n return;\n }\n do { // prints menu choice and queries user + code for validiation of input\n \n System.out.printf(\"%-10s \\t\", carList.get(menuChoice).makeGet());\n System.out.printf(\"%-10s \\t\", carList.get(menuChoice).modelGet());\n System.out.printf(\"%-7d \\t\", carList.get(menuChoice).yearGet());\n \n if (carList.get(menuChoice).mileGet() != 0.0) { //if the car has greater than 0.0 miles it is used so we change output to reflect additional field \n System.out.printf(\"$%-6.2f \\t\", carList.get(menuChoice).priceGet());\n System.out.printf(\" (Used) Mileage: %-6.1f \\n\", carList.get(menuChoice).mileGet());\n } else { //if it's a new car then no need to print mileage\n System.out.printf(\"$%-6.2f \\n\", carList.get(menuChoice).priceGet());\n }\n // System.out.println(carList.get(menuChoice));\n \n scan.nextLine(); //consume the carriage return\n System.out.println(\"Would you like to buy this car?\");\n input = scan.nextLine();\n\n if (!(input.equalsIgnoreCase(\"y\")) && (!(input.equalsIgnoreCase(\"n\")))) {\n System.out.println(\"Invalid input. Please enter y or n\");\n }\n } while (!(input.equalsIgnoreCase(\"y\")) && (!(input.equalsIgnoreCase(\"n\"))));\n\n if (input.equalsIgnoreCase(\"y\")) {\n System.out.println(\"Excellent! Our finance department will be in touch shortly.\");\n carList.remove(menuChoice);\n }\n }", "public boolean doorTicker()\n\t{\n\t\tif(!isDoor)\n\t\t\treturn false;\n\t\tif(stateOfDoor!=this.DOOR_STATE_OPENING)\n\t\t\treturn false;\n\t\t\n\t\t//Now, find angle to (x2,y2) (which is the moving end of the wall)\n\t\t//to (x1,y2) relative to (originalX,originalY) which is a copy of x2,y2\n\t\t//set x2,y2 so that the angle is now a little larger, if that angle is now\n\t\t//greater than PI/2, set the stateOfDoor as OPEN\n\t\t\n\t\tdouble angleTo2 = this.angleToSide2(x1,y1);\n\t\t\n\t\tdouble newAngle;\n\t\t\n\t\tif(swingingWay1)\n\t\t{\n\t\t\tnewAngle= angleTo2 + ANGLE_CHANGE;\n\t\t\tticks++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewAngle= angleTo2 - ANGLE_CHANGE;\n\t\t\tticks--;\n\t\t}\n\t\t\n\t\t//distance from pivot\n\t\tdouble dx = this.length()*Math.cos(newAngle);\n\t\tdouble dy = this.length()*Math.sin(newAngle);\n\t\t\n\t\tx2 = x1+dx;\n\t\ty2 = y1+dy;\n\n\t\t//BECAUSE X2 and Y2 have changed, certain values need to be recalculated so that it paints ok\n\t\tmx = (x1+x2)/2;\n\t\tmy = (y1+y2)/2;\n\t\tif(x1!=x2)\n\t\t{\n\t\t\tm = (this.y1-this.y2)/(this.x1-this.x2);\n\t\t\tb = y1-m*this.x1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm = 0;\n\t\t\tb = 0;\n\t\t}\n\t\t\n\t\t\n\t\t//now check if the door is all the way open\n\t\tdouble angleToOriginal = this.angleToOriginal(x1,y1);\n\t\t\n\t\t//if((newAngle-angleToOriginal>Math.PI/2)||(newAngle-angleToOriginal<-Math.PI/2))\n\t\t//if(ArtWork.isBetween(angleToOriginal-3*Math.PI/4, ArtWork.normalizeAngle(angleToOriginal+3*Math.PI/4), newAngle))\n\t\tif((ticks*ANGLE_CHANGE>Math.PI/2)||(ticks*ANGLE_CHANGE<-Math.PI/2))\n\t\t\tstateOfDoor=this.DOOR_STATE_OPEN;//stop!\n\t\t\n\t\treturn true;\n\t}", "private void checkTurns(int i) {\n Random r = new Random();\n Road road = roads.get(i);\n if (road.vehiclesOffRoad.size() > 0) {\n for (int n = 0; n < road.vehiclesOffRoad.size(); n++) {\n int ref;\n int speed = road.vehiclesOffRoad.get(n).getSpeed();\n String type = road.vehiclesOffRoad.get(n).getType();\n\n if (road.connectedRoads.size() == 3) {\n int j = r.nextInt(3);\n if (isEmpty(road.connectedRoads.get(j),\n road.vehiclesOffRoad.get(n).getLength())) {\n ref = road.connectedRoads.get(j);\n addVehicle(type, speed, ref);\n road.vehicles.remove(n);\n\n } else road.vehicles.get(n).setPos(road.getRoadEnd());\n\n } else if (road.connectedRoads.size() == 2) {\n int j = r.nextInt(2);\n if (isEmpty(road.connectedRoads.get(j),\n road.vehiclesOffRoad.get(n).getLength())) {\n ref = road.connectedRoads.get(j);\n addVehicle(type, speed, ref);\n road.vehicles.remove(n);\n } else road.vehicles.get(0).setPos(road.getRoadEnd());\n\n } else if (road.connectedRoads.size() == 1) {\n if (isEmpty(road.connectedRoads.get(0),\n road.vehiclesOffRoad.get(n).getLength())) {\n\n ref = road.connectedRoads.get(n);\n addVehicle(type, speed, ref);\n road.vehicles.remove(n);\n } else road.vehicles.get(0).setPos(road.getRoadEnd());\n } else if (road.connectedRoads.size() == 0) {\n road.vehicles.remove(n);\n road.reset_offRoad();\n }\n\n\n }\n }\n road.reset_offRoad();\n\n }", "public static void RGB7170(int floor, int doors, int toFind){\n int JohnFloor = toFind / doors;\n if(toFind % doors != 0){\n JohnFloor++;\n }\n\n int thDoor = toFind%doors;\n if(toFind%doors == 0){\n thDoor = doors;\n }\n System.out.println(JohnFloor + \" \" + thDoor);\n }", "private boolean checkDoor(Door door){\n\n\t \treturn(door.getStatus().equalsIgnoreCase(\"Unlocked\"));\n\t \t\t//return true;//returns the value true\n\t //else\n\t \t //return false;//returns the value false\n\t }", "private boolean _checkDoors(int x, int y) {\n\t\t\n\t\tfor(Door door : DKObject.level.getDoors()) {\n\t\t\t\n\t\t\tif(door.equalPosition(x, y) && !door.isOpen())\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public void effetDeCarte(int idEffet, Joueur joueurQuiJoueLaCarte, Plateau plateau) {\n switch (idEffet) {\n case 0:\n joueurQuiJoueLaCarte.deck.piocher(1);\n break;\n case 1:\n joueurQuiJoueLaCarte.deck.piocher(2);\n break;\n case 2:\n joueurQuiJoueLaCarte.deck.piocher(3);\n break;\n case 3:\n joueurQuiJoueLaCarte.gagnerDegats(1);\n break;\n case 4:\n joueurQuiJoueLaCarte.gagnerDegats(2);\n break;\n case 5:\n joueurQuiJoueLaCarte.gagnerDegats(3);\n\n break;\n case 6:\n joueurQuiJoueLaCarte.gagnerDegats(4);\n break;\n case 7:\n joueurQuiJoueLaCarte.gagnerRunes(1);\n break;\n case 8:\n gagnerDesRunes(joueurQuiJoueLaCarte,2);\n break;\n case 9:\n gagnerDesRunes(joueurQuiJoueLaCarte,3);\n break;\n case 11:\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n gagnerDesDegats(joueurQuiJoueLaCarte,1);\n break;\n case 12:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(1);\n break;\n case 14:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n joueurQuiJoueLaCarte.piocher(1);\n break;\n case 15:\n joueurQuiJoueLaCarte.tuerUneCarteAvecDeLattaqueGratuitement(plateau);\n System.out.println(\"DEfeat a monster that has 4 D or less without paying it cost\");\n break;\n case 16:\n System.out.println(\"DEfeat a monster that has 6 D or less without paying it cost\");\n break;\n case 17:\n //joueurQuiJoueLaCarte.deck.piocher(1);\n System.out.println(\" You may banish a card in the center row\");\n break;\n case 18:\n System.out.println(\"Discard a card, if you do, draw two cards\");\n break;\n case 19:\n System.out.println(\"Copy l'effet d'un Héros joué ce tour-ci\");\n break;\n case 20:\n System.out.println(\"Once per turn you may draw a card\");\n break;\n case 21:\n System.out.println(\"You may banish this Construct to take an additional turn after this one.\");\n break;\n case 22:\n System.out.println(\"Acquire a Hero without paying its cost. Place in on top of your deck.\");\n break;\n case 23:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(1);\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n break;\n case 24:\n gagnerDesRunes(joueurQuiJoueLaCarte,2);\n verifLifebound(joueurQuiJoueLaCarte);\n break;\n case 25:\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n joueurQuiJoueLaCarte.deck.piocher(1);\n break;\n case 26:\n System.out.println(\"Once per turn, gain 1 runes, the first time you play a lifebound hero, each turn gain 1 recompense\");\n break;\n case 27:\n System.out.println(\"Once per turn , gain 1d\" +\n \"Once per turn, you may spend 4r to gain 3 recompense\");\n break;\n case 28:\n gagnerDesDegats(joueurQuiJoueLaCarte,2);\n plusDeDeuxConstructeur(joueurQuiJoueLaCarte);\n System.out.println(\"Draw a card if you control 2 or moreConstrcut\");\n break;\n case 29:\n System.out.println(\"Gain 1d or 1r\");\n break;\n case 30:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Gain 2r You pay 1R less the next time you acquire a Construc this turn\");\n break;\n case 31:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Once per turn, when you put a Mechana Construc into play (including this one) , draw a card\");\n break;\n case 32:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Once per turn, gain 2d.You may spend it only to acquire Mechana Construct\");\n break;\n case 33:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\" Once per turn\");\n gagner1DParTourPourChaqueMechaConstruct(joueurQuiJoueLaCarte);\n\n break;\n case 34:\n System.out.println(\"You may treat all Construcs as Mechana Construcs\");\n break;\n case 35:\n System.out.println(\"Once per turn, when you acquire another Mechana Construc, you may put it directly into play\");\n break;\n case 36:\n System.out.println(\"Once per turn ,gain 1 r . you may spend it only to acquire Mechana Construc\");\n break;\n case 37:\n joueurQuiJoueLaCarte.deck.piocher(2);\n System.out.println(\"Banish a card in you hand\");\n break;\n case 38:\n gagnerDesDegats(joueurQuiJoueLaCarte,2);\n System.out.println(\"Banish a card in you hand or discard pile\");\n break;\n case 39:\n gagnerDesDegats(joueurQuiJoueLaCarte,1);\n System.out.println(\"Banish a card in you hand or discard pile\");\n break;\n case 40:\n System.out.println(\"Once per turn, gain 3d\");\n break;\n case 41:\n System.out.println(\"Once per turn, gain 1d\");\n break;\n case 42:\n System.out.println(\"Once per turn gain 1 The first time you deafeat a monster in the center row each turn, gain 1 R\");\n break;\n case 43:\n System.out.println(\"Unbanishable You may acquire or defeat any car in the center row without paying its cost\");\n break;\n case 44:\n System.out.println(\"Each opponent must destryo a Construc he controls\");\n break;\n case 45:\n System.out.println(\"Banish a card un the center row and/or in you discard pile\");\n break;\n case 46:\n System.out.println(\"Banish a card un the center row\");\n break;\n case 47:\n System.out.println(\"If an opponent has more than one construct, that player must destroy all but one Construct he controls\");\n break;\n case 48:\n System.out.println(\"Take a card at random from each oppenent's hand and add that card to your hands\");\n break;\n }\n\n }", "public void iDoor(){ // is it because of void we don't need return method\n\t\tint numDoor=4;\n\t}", "public static int doorToReveal(int c, int u)\n\t{\n\t\tfor(int i = 1; i < 4; i ++)\n\t\t{\n\t\t\tif (i != c && i != u)\n\t\t\t{\n\t\t\t\treturn i;\n\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t\n\t}", "public void setIsdoor(Integer isdoor) {\n this.isdoor = isdoor;\n }", "public static void main(String[] args){\n Scanner na = new Scanner (System.in);\n boolean salir = false;\n //varianble para el switch\n int option;\n\n//ciclo while\n while(!salir){\n\n //menu\n System.out.println(\"=======OPERACIONES CON CADENAS=======\"+\"\\n\");\n System.out.println(\"1. Tamaño de cadena ingresada \");\n System.out.println(\"2. Subcadena \");\n System.out.println(\"3. Comparación de cadenas\");\n System.out.println(\"4. comparación de tamaño\");\n System.out.println(\"0. salir\"+ \"\\n\" + \"\\n\");\n\n\n try{\n System.out.println(\" Seleccione una opción \");\n option = na.nextInt();\n //scaner para variables de los case\n Scanner no = new Scanner (System.in);\n //variables\n String cadena;\n String cadena1;\n int subcad;\n int lon;\n int alm;\n\n //opciones\n switch (option) {\n\n case 1://encontrar el tamaño de una cadena\n System.out.println(\"AL INGRESAR UNA CADENA DE CARACTERES CONOCERA SU TAMAÑO\"+\"\\n\");\n System.out.println(\"Ingrese cadena para saber su tamaño\");\n cadena = no.nextLine();\n System.out.println(\"\\n\"+\"Cadena Ingresada - \" + cadena + \" -\");\n System.out.println(\"El tamaño de la cadena ingresada es: \" + cadena.length() + \"\\n\" + \"\\n\");\n break;\n\n case 2: // subcadenas\n System.out.println(\"=======SUBCADENAS=======\"+\"\\n\");\n System.out.println(\"Ingrese cadena: \");\n cadena = no.nextLine();\n System.out.println(\"Ingrese indice inicial de la cadena: \");\n subcad = no.nextInt();\n System.out.println(\"Ingrese el tamaño de la cadena que desea mostrar: \");\n lon=no.nextInt();\n alm = cadena.length();\n if (subcad+lon>alm){\n System.out.println(\"los indices son mas grandes que la cadena ingresada\"+ \"\\n\" + \"\\n\");\n }\n else{\n cadena1 = cadena.substring(subcad,subcad+lon);\n System.out.println(\"La subcadena es: - \" + cadena1 + \" -\"+ \"\\n\" + \"\\n\");\n }\n break;\n\n case 3://comparacion de palabras\n System.out.println(\"=======COMPARACION DE CADENAS=======\"+\"\\n\");\n\n System.out.println(\"Ingrese primera cadena \");\n cadena = no.nextLine();\n System.out.println(\"Ingrese segunda cadena \");\n cadena1 = no.nextLine();\n System.out.println(\"\\n\"+\" Desea Ignorar Mayusculas? \");\n System.out.println(\"1. Sí\");\n System.out.println(\"2. No\");\n System.out.println(\"0. volver\"+\"\\n\");\n subcad = no.nextInt();\n //------------------------validar no IMPORTAN LAS MAYUSCULAS------------------------\n if (subcad==1){\n\n if(cadena.equalsIgnoreCase(cadena1)){\n System.out.println(cadena +\" y \"+ cadena1+\" son iguales \"+ \"\\n\" + \"\\n\");\n }else{\n System.out.println(cadena +\" y \"+ cadena1+\" No son iguales \"+ \"\\n\" + \"\\n\");\n }\n }\n //----------------------------validar si importan las mayusculas------------------------------\n else if(subcad==2){\n if(cadena.equals(cadena1)){\n System.out.println(cadena +\" y \"+ cadena1+\" son iguales \"+ \"\\n\" + \"\\n\");\n }else{\n System.out.println(cadena +\" y \"+ cadena1+\" NO son iguales \"+ \"\\n\" + \"\\n\");\n }\n }\n else{\n System.out.println(\"volver\"+ \"\\n\" + \"\\n\");\n }\n break;\n\n\n case 4: // comparar tamaños de cadenas\n System.out.println(\"=======COMPARAR TAMAÑO DE CADENAS=======\"+\"\\n\");\n System.out.println(\"Ingrese primera cadena \");\n cadena = no.nextLine();\n System.out.println(\"Ingrese segunda cadena \");\n cadena1 = no.nextLine();\n System.out.println(\"\\n\"+\" ¿Desea Ignorar los espacios en blanco? \");\n System.out.println(\"1. Sí\");\n System.out.println(\"2. No\");\n System.out.println(\"0. volver\"+\"\\n\");\n subcad = no.nextInt();\n //----------------mostrara las cadenas sin espacios------------------------\n if (subcad==1){\n lon=cadena.replace(\" \",\"\").length();\n alm=cadena1.replace(\" \",\"\").length();\n if(lon==alm){\n System.out.println(cadena +\" (\"+ lon+\") \"+\" y \"+ cadena1+\" (\"+ alm +\") \"+\" Tienen la misma cantidad de caracteres sin espacios\"+ \"\\n\" + \"\\n\");\n }else{\n System.out.println(cadena +\" (\"+ lon+\") \"+\" y \"+ cadena1+\" (\"+alm+\") \"+\" No tienen la misma cantidad de caracteres sin espacios\"+ \"\\n\" + \"\\n\");\n }\n }\n //--------------------mostrara las cadenas con espacios------------------------------\n else if(subcad==2){\n\n if(cadena.length()==cadena1.length()){\n System.out.println(cadena +\" (\"+ cadena.length() +\") \" +\" y \"+ cadena1+\" (\"+ cadena1.length() +\") \" +\" Tienen la misma cantidad de caracteres con espacios\"+ \"\\n\" + \"\\n\");\n }else{\n System.out.println(cadena + \" (\" + cadena.length() + \") \" + \" y \"+ cadena1+\" (\"+ cadena1.length() +\") \" +\" NO Tienen la misma cantidad de caracteres con espacios\"+ \"\\n\" + \"\\n\");\n }\n }\n else{\n System.out.println(\"volver\"+ \"\\n\" + \"\\n\");\n }\n break;\n\n case 0://salir\n System.out.println(\"created by: \"+ \"\\n\"+ \"LILY\");\n salir = true;\n break;\n default:\n\n System.out.println(\"\\n\"+\"Números validos 1 - 4 (0 para salir)\");\n }\n\n }catch (InputMismatchException e) {\n System.out.println(\"\\n\"+\"Debes insertar un Número\"+\"\\n\");\n na.next();\n }\n }\n }", "public static void secondOne() {\n\t\tObject[] option = { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"reset\" };\n\t\telipse = JOptionPane.showOptionDialog(frame, \"are these doors to a farm? or are you just high?\", \"be prepared\",\n\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, icon, option, option[9]);\n\t\thighDoors();\n\t}", "public boolean getDoor( int d){\n\t\tswitch( d){\n\t\t\tcase CONST.NORTH:\n\t\t\t\treturn doorN;\n\t\t\tcase CONST.EAST:\n\t\t\t\treturn doorE;\n\t\t\tcase CONST.SOUTH:\n\t\t\t\treturn doorS;\n\t\t\tcase CONST.WEST:\n\t\t\t\treturn doorW;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public void interactWith(Door door) {\n if(door instanceof CastleDoor){ //CASTLE DOOR\n if(door.isOpen()){\n setIsPassingADoor(door);\n ((CastleDoor) door).close();\n } else {\n if(possess(ARPGItem.CASTLEKEY)){\n ((CastleDoor) door).open();\n }\n }\n } else { //SIMPLE DOOR\n setIsPassingADoor(door);\n }\n }", "public boolean showCars(){\n if (carRentalFileDB.getAvailableCars().isEmpty()){\n System.out.println(\"\\nWe are sorry, no cars available at the moment. \\nPlease come back later.\");\n return false;\n\n } else{\n System.out.println(\"\\nHere are our available cars, please enter car ID from the following list\\n\");\n\n for(Car car : carRentalFileDB.getAvailableCars()){\n System.out.println(\"Car ID:\" + car.getCarID() + \" Model:\"+ car.getMake() + \" Renting Price:\" + car.getPrice());\n }\n\n return true;\n }\n\n }", "public int chooseDirection(){\n int direction;\n do{\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Choose a transfer method.\\n(1) from saving to checking.\\n(2) from checking to saving.\");\n direction = scanner.nextInt();\n } while(!(direction !=1 || direction !=2));\n return direction;\n }", "public static void main(String[] args) throws Exception {\n\t\tboolean keepCreating= true;\n\t\twhile(keepCreating) {\n\t\t\tPeople_Controller.createVehicleOwner();\n\t\t\tString choiceToCreate= JOptionPane.showInputDialog(null, \"¿Which vehicle would you like to create? (Car/Bike/Truck)\");\t\n\t\t\t\tif(choiceToCreate.matches(\"Car\")) {\n\t\t\t\t\tcontroller.createCar();\n\t\t\t\t\tcontroller.createWheelsForCar();\n\t\t\t}\telse if (choiceToCreate.matches(\"Bike\")) {\n\t\t\t\t\tcontroller.createBike();\n\t\t\t\t\tcontroller.createWheelsForBike();\n\t\t\t} \telse if (choiceToCreate.matches(\"Truck\")) {\n\t\t\t\t\tcontroller.createTruck();\n\t\t\t\t\tcontroller.createWheelsForCar();\n\t\t\t} \t\n\t\t\t\t\n\t\t\tpeopleController.ownerIsDriver();\n\t\t\t\n\t\t\tfor(Vehicle e:VehicleController.vehicles) {\n\t\t\t\tSystem.out.println(\"Vehículo: \"+e.getBrand()+\" \"+ e.getColor()+\" \" +e.plate+\" \\nDueño del vehículo: \" +e.owner.getName()+\" \"+e.owner.getLastName());\n\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"-------------------------\\nConductores: \\n-------------------------\");\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\n\t\t\t\tfor(int i=0; i<Vehicle.drivers.size();i++) {\n\t\t\t\t\tif(Vehicle.drivers.get(i+1).getName()==Vehicle.drivers.get(i).getName()) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(Vehicle.drivers.get(i).getName()+\" \"+ Vehicle.drivers.get(i).getLastName()+ \" \" + Vehicle.drivers.get(i).getBirthDate());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\tcatch (java.lang.IndexOutOfBoundsException e) {\n\t\t\t\t\tSystem.out.println(\"Hay un error en la lectura del array\");\n\t\t\t\t}\n\t\t\tVehicle.drivers.clear();\n\t\t\tVehicleController.backWheels.clear();\n\t\t\tVehicleController.frontWheels.clear();\n\t\t\tVehicleController.vehicles.clear();\n\t\t\tString ask = JOptionPane.showInputDialog(null, \"¿Would you like to add new owners and vehicles? (Yes/No)\");\n\t\t\t\tif(!ask.equalsIgnoreCase(\"Yes\")) {\n\t\t\t\t\tbreak;\n\t\t\t }\n\t\t}\n\t}", "public static void main(String[] args) {\n System.out.println(\"Witam w grze papier kamień nożyce.\");\n // tworzymy obiekt scanera\n Scanner scanner = new Scanner(System.in);\n\n\n // tworzymy obiekt random\n Random generator = new Random();\n // tworzymy pętle while\n\n\n while (true) {\n System.out.println(\"Wybierz ruch: \" + \"P = papier || \" + \"K = kamień || \"\n + \"N = nożyce || \" + \"W = wyjście\");\n // pobieramy ruch od użytkownika\n String ruchUżytkownika = scanner.nextLine();\n ruchUżytkownika = ruchUżytkownika.toUpperCase();\n // tworzymy ruch komputera\n int intKomputera = generator.nextInt(3);\n String ruchKomputera = \"\";\n if (intKomputera == 0) {\n ruchKomputera = \"P\";\n } else if ( intKomputera== 1) {\n ruchKomputera = \"K\";\n } else if ( intKomputera== 2) {\n ruchKomputera = \"N\";\n }\n drukowanieruchu(ruchUżytkownika, ruchKomputera);\n if (ruchUżytkownika.equals(ruchKomputera)) {\n\n System.out.println(\"Wynik: Remis\");\n\n } else if (ruchUżytkownika.equals(\"K\")) {\n if (ruchKomputera.equals(\"N\"))\n System.out.println(\"Wygrałeś!\");\n else if (ruchKomputera.equals(\"P\"))\n System.out.println(\"Przegrałeś!\");\n } else if (ruchUżytkownika.equals(\"P\")) {\n if (ruchKomputera.equals(\"N\"))\n System.out.println(\"Przegrałeś!\");\n else if (ruchKomputera.equals(\"K\"))\n System.out.println(\"Wygrałeś!\");\n } else if (ruchUżytkownika.equals(\"N\")) {\n if (ruchKomputera.equals(\"P\"))\n System.out.println(\"Wygrałeś\");\n else if (ruchKomputera.equals(\"K\"))\n System.out.println(\"Przegrałeś\");\n } else {\n System.out.println(\"Dzięki za gre !\");\n break;\n }\n }\n\n\n }", "public void getAllDoors() {\n //System.out.println();\n System.out.println(\"\\nDOOR/ARCHWAY DESCRIPTION\");\n System.out.println(\"----------------------------------------------------------------\\n\");\n //System.out.println();\n if (doorDescription.contains(\"archway\")) {\n System.out.println(\"ARCHWAY DESCRIPTION: \" + doorDescription);\n } else {\n System.out.println(\"DOOR DESCRIPTION: \" + doorDescription);\n }\n //System.out.println();\n System.out.println(\"\\n----------------------------------------------------------------\");\n }", "public static void checkForAgentsWithPeopleInCar() {\n\t\tfor(int i=0; i<numOfAgents; i++) {\n\t\t\tagents[i].peopleInCar += peopleToSave[agents[i].position];\n\t\t\tpeopleToSave[agents[i].position]=0;\n\t\t}\n\t}", "private void searchSpecificCar() {\n\t\tSystem.out.print(\"Enter Registration Number: \");\n\t\tSystem.out.println(application.displaySpecificCar(console.nextLine()));\n\t}", "static void Door2challenge() {\n System.out.println(\"Ready! 3...2...1...GO!\");\n System.out.println(\"Where do you want to go? Left, Right, or Straight\");\n direction = next.nextLine();\n //this is where the player will decide where to go\n //the rest of the maze will branch off from this decision. These choices will have the same outcome.\n \n if(direction.contains(\"left\")) {\n door2challenge_leftpath();\n //player enters the left branch maze\n \n }else if(direction.contains(\"right\")){\n door2challenge_rightpath();\n //player enters the right branch of the maze\n \n }else if(direction.contains(\"straight\")){\n door2challenge_straightpath();\n //player enters the straight branch of the maze\n }else{\n System.out.println(\"I don't understand...type it correctly!!!\");\n Door2challenge();\n }\n \n }", "public void elevatorLoop()\n{\n \n e = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the floor number you would like to go: 0-9\"));\n while((e > 9) || (e < 0))\n {\n JOptionPane.showMessageDialog(null, \"not in the range of floors\");\n e = Integer.parseInt(JOptionPane.showInputDialog(\"Enter the floor number you would like to go: 0-9\"));\n }\n elevatorFloor();\n}", "@Override\n\tpublic void showBeveragesMenu(int selectedPerson) {\n\t\ttry{\n System.out.println(\"Please place your order\");\n randomNum=transactionService.createRandomOrderNumber();\n OrderNum=initialOrderNum+randomNum;\n do {\n \t\n showCoffeeType();\n showCoffeeSize();\n System.out.println(\"Do you want Add-ons?\");\n subChoice=input.next();\n if(subChoice.equalsIgnoreCase(\"yes\"))\n {\n showCoffeeAddon();\n \n }\n else\n {\n \ttransactionService.createCoffeeOrder(selectedPerson,OrderNum,selectedCoffeeType,selectedCoffeeSize,selectedAddon);\n }\n System.out.println(\"Do you want to order more coffee?\");\n subChoice = input.next();\n \n \n\n }while(subChoice.equalsIgnoreCase(\"yes\"));\n showVoucher();\n\n printBill(selectedPerson,OrderNum,selectedVoucher);\n System.out.println(\"Happy Drink! Have a good day.\");\n System.out.println(\"================================\");\n\n\n\n }\n \n catch (InputMismatchException e)\n {\n System.out.println(\"Please provide a correct input\");\n }\n catch (NullPointerException en)\n {\n System.out.println(en.getMessage());\n }\n\t\t\n\t}", "public int pickDoorSpot() {\n\t\tint doorSpot = ThreadLocalRandom.current().nextInt(1, ((getRoomWidth() * 2) + ((getRoomLength() - 1) * 2)));\r\n\t\treturn doorSpot;\r\n\t}", "@Override\n public void onClick(View view) {\n\n if (door2button.isEnabled() || door2_tf) {\n door2button.setImageResource(R.drawable.closed_door);\n }\n if (door3button.isEnabled() || door3_tf){\n door3button.setImageResource(R.drawable.closed_door);\n }\n\n door1button.setImageResource(R.drawable.closed_door_chosen);\n door1button.setEnabled(false);\n door1_tf = true;\n door1_clicked = true;\n\n if (door2_clicked) {\n door2button.setEnabled(false);\n }\n if (door3_clicked) {\n door3button.setEnabled(false);\n }\n\n\n if (door1_tf && !door2_tf && !door3_tf) {\n Runnable run1 = new Runnable() {\n @Override\n public void run() {\n // Get random number\n int ran1 = random_number.nextInt(2) + 1;\n\n // Play Goat sound\n mpGoat.start();\n\n // If r = 1, change 2nd door\n if (ran1 == 1) {\n door2button.setImageResource(R.drawable.goat);\n door2button.setEnabled(false);\n\n prompt.setText(\"3 Seconds To Pick Again.\\n Choose New or Do Nothing.\");\n\n Runnable run2 = new Runnable() {\n @Override\n public void run() {\n // Player Switches Pick from door 1 to door 3\n if (door3_tf) {\n door1_tf = false;\n door3button.setEnabled(false);\n door1button.setImageResource(R.drawable.closed_door);\n\n\n\n doorCountDown(door3button);\n\n Runnable doorDelay1 = new Runnable() {\n @Override\n public void run() {\n // Correct door was chosen (door 3)\n int ran2 = random_number.nextInt(2) + 1;\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door3button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n\n }\n };Handler d1 = new Handler();\n d1.postDelayed(doorDelay1, 3000);\n\n\n }\n // Player keeps choice\n else {\n\n doorCountDown(door1button);\n\n Runnable doorDelay2 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 3)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door1button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d2 = new Handler();\n d2.postDelayed(doorDelay2, 3000);\n }\n }\n };\n Handler h2 = new Handler();\n h2.postDelayed(run2, 3000);\n }\n // If r = 2, change 3rd door\n else {\n door3button.setImageResource(R.drawable.goat);\n door3button.setEnabled(false);\n prompt.setText(\"3 Seconds To Pick Again.\\n Choose New or Do Nothing.\");\n\n Runnable run2 = new Runnable() {\n @Override\n public void run() {\n // Player Switches Pick from door 1 to door 2\n if (door2_tf) {\n door1_tf = false;\n door2button.setEnabled(false);\n door1button.setImageResource(R.drawable.closed_door);\n\n doorCountDown(door2button);\n\n Runnable doorDelay3 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 2)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door2button.setImageResource(R.drawable.car);\n door3button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d3 = new Handler();\n d3.postDelayed(doorDelay3, 3000);\n }\n // Player keeps choice\n else {\n\n doorCountDown(door1button);\n\n Runnable doorDelay4 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door2button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 2)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d4 = new Handler();\n d4.postDelayed(doorDelay4, 3000);\n }\n }\n };\n Handler h2 = new Handler();\n h2.postDelayed(run2, 3000);\n }\n }\n };\n Handler h = new Handler();\n h.postDelayed(run1, 500);\n }\n }", "private void computeWinLose() {\n\n if (!id11.getText().isEmpty()) {\n if ((id11.getText().equals(id00.getText()) && id11.getText().equals(id22.getText())) ||\n (id11.getText().equals(id02.getText()) && id11.getText().equals(id20.getText())) ||\n (id11.getText().equals(id10.getText()) && id11.getText().equals(id12.getText())) ||\n (id11.getText().equals(id01.getText()) && id11.getText().equals(id21.getText()))) {\n winner = id11.getText();\n }\n }\n\n if (!id00.getText().isEmpty()) {\n if ((id00.getText().equals(id01.getText()) && id00.getText().equals(id02.getText())) ||\n id00.getText().equals(id10.getText()) && id00.getText().equals(id20.getText())) {\n winner = id00.getText();\n }\n }\n\n if (!id22.getText().isEmpty()) {\n if ((id22.getText().equals(id21.getText()) && id22.getText().equals(id20.getText())) ||\n id22.getText().equals(id12.getText()) && id22.getText().equals(id02.getText())) {\n winner = id22.getText();\n }\n }\n\n // If all the grid entries are filled, it is a draw\n if (!id00.getText().isEmpty() && !id01.getText().isEmpty() && !id02.getText().isEmpty() && !id10.getText().isEmpty() && !id11.getText().isEmpty() && !id12.getText().isEmpty() && !id20.getText().isEmpty() && !id21.getText().isEmpty() && !id22.getText().isEmpty()) {\n winner = \"Draw\";\n }\n\n if (winner != null) {\n if (\"X\".equals(winner)) {\n winner = playerX;\n } else if (\"O\".equals(winner)) {\n winner = playerO;\n } else {\n winner = \"Draw\";\n }\n showWindow(winner);\n }\n }", "private void customerMenu(Connection connection, int chosenCustomer) {\n\n try (Statement statement = connection.createStatement()) {\n\n while (true) {\n\n // check whether customer has rented a car\n boolean hasRentedCar = false;\n int carId = -1;\n try (ResultSet cus = statement.executeQuery(\"SELECT * FROM CUSTOMER WHERE id = \" + chosenCustomer)) {\n cus.next();\n carId = cus.getInt(\"rented_car_id\");\n if (carId != 0) {\n hasRentedCar = true;\n }\n }\n\n System.out.println(\"\\n1. Rent a car \\n2. Return a rented car \\n3. My rented car \\n0. Back\");\n int choice = Integer.parseInt(scanner.nextLine());\n\n if (choice == 0) {\n break;\n\n } else if (choice == 3) {\n\n // check whether customer has rented a car\n if (!hasRentedCar) {\n System.out.println(\"You didn't rent a car!\");\n } else {\n\n // if customer has already rented a car\n\n try (ResultSet rentedCar = statement.executeQuery(\"SELECT * FROM CAR WHERE id = \" + carId)) {\n // retrieve column values\n System.out.println(\"You rented a car:\");\n\n rentedCar.next();\n String name = rentedCar.getString(\"name\");\n System.out.println(name);\n\n int compId = rentedCar.getInt(\"company_id\");\n\n try (ResultSet belongToComp = statement.executeQuery(\"SELECT * FROM COMPANY WHERE id = '\" + compId + \"'\")) {\n // retrieve column values\n System.out.println(\"Company:\");\n\n belongToComp.next();\n String compName = belongToComp.getString(\"name\");\n System.out.println(compName);\n }\n }\n }\n\n } else if (choice == 1) {\n // Rent a car\n // List all companies\n\n if (hasRentedCar) {\n System.out.println(\"You've already rented a car!\");\n } else {\n int neededCarId = listAllCompanies(connection, \"customer\");\n\n if (neededCarId != 0) {\n statement.executeUpdate(\"UPDATE CUSTOMER SET rented_car_id = \" + neededCarId +\n \" WHERE id = \" + chosenCustomer);\n\n try (ResultSet car = statement.executeQuery(\"SELECT * FROM CAR WHERE id = \" + neededCarId)) {\n\n car.next();\n String carName = car.getString(\"name\");\n System.out.println(\"You rented '\" + carName + \"'\");\n\n }\n }\n\n }\n\n } else if (choice == 2) {\n // Return a car\n if (!hasRentedCar) {\n System.out.println(\"You didn't rent a car!\");\n } else {\n statement.executeUpdate(\"UPDATE CUSTOMER SET rented_car_id = NULL \" +\n \"WHERE id = \" + chosenCustomer);\n\n System.out.println(\"You've returned a rented car!\");\n }\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public boolean isDoor() {\n return this.type == Type.DOOR;\n }", "private void drink()\n { \n if(i.item3 == true && i.used == false)\n {\n p.energy += 70;\n i.item3 = false;\n i.used = true;\n System.out.println(\"Energy: \" + p.energy);\n }\n else if(i.used == true && i.item3 == false) \n {\n System.out.println(\"You already drank a redbull!\"); \n }\n else if(i.item3 == false && i.used == false)\n {\n System.out.println(\"no more drinks left!\");\n }\n }", "public void determinarGanador() {\n\t\t\n\t\t if(valorManos[3]>21) {\n\n\t\t\t for(int i=0;i<3;i++) {\n\t\t\t\t if(valorManos[i]<=21) {\n\t\t\t\t\t ganador.add(idJugadores[i]);\n\t\t\t\t }\n\t\t\t }\n\t\t }else if(((valorManos[0] <= valorManos[3]) && (valorManos[1] <= valorManos[3]) &&( valorManos[2] <= valorManos[3]))\n\t\t\t\t && valorManos[3] <= 21){\n\n\t\t\t ganador.add(\"dealer\");\n\n\t\t\t// numGanadores ++;\n\t\t }else if(valorManos[0]>21 && valorManos[1] >21 && valorManos[2]>21 && valorManos[3] <= 21) {\n\n\t\t\t ganador.add(\"dealer\");\n\n\t\t }\n\t\t else { \n\t\t\t for(int i=0;i<3;i++) {\n\t\t\t\t if(valorManos[i]>valorManos[3] && valorManos[i]<=21) {\n\t\t\t\t\t ganador.add(idJugadores[i]);\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t \n\t\t if(valorManos[0] > 21 && valorManos[1] > 21 && valorManos[2] > 21 && \n\t\t\t\t valorManos[3] > 21){\n\t\t\t\n\t\t }else if(valorManos[3]<21 && ganador.size()==0){\n\t\t\t ganador.add(\"dealer\");\n\t\t }\n\t }", "public void clickSurCarte(CarteModel carteJouer) throws IOException{\n\t\tif (ajm.estJoueurCourant() && !platMod.retourneFinDeManche())\n\t\t{\n\t\t\t//Si le joueur doit piocher une carte chez le joueur précédent\n\t\t\tif (platMod.retournePiocheChezJoueur())\n\t \t{\n\t\t\t\tSystem.out.println(\"Vous piochez chez un joueur\");\n\t\t\t\tnew DialogVuePiocheChezJoueur(jv, platMod); \n\t\t\t\tjv.validate();\n\t\t\t//sinon, c'est qu'il peut jouer une carte de son choix, a condition qu'elle soit valide et qu'il n'est pas à piocher\n\t \t}else if (platMod.peutJouerCarte(carteJouer)){\n\t \t//Si le joueur joue une carte alors qu'il aurait du prévenir \"Carte !\", il pioche deux cartes\n\t \t\tif(((JoueurHumain)ajm).retourneDerCarte())\n\t \t\t{\n\t \t\t\tSystem.out.println(\"Vous piochez deux cartes car vous n'avez pas cliquer sur Carte ! avant de jouer votre avans dernière carte\");\n\t \t\t\tajm.piocherCarteMultiple(platMod.retourneModelPioche(), 2);\n\t \t\t\tplatMod.roulementJoueurCourant();\n\t \t\t//Sinon, sa carte est prit en compte et est joué\n\t \t\t}else{\n\t \t\t\tSystem.out.println(\"Vous jouez la carte : \"+carteJouer.toString());\n\t\t\t\t\tArrayList<CarteModel> listCarteJouable = new ArrayList<CarteModel>(); //La liste ne contient que la carte cliqué valide\n\t\t\t\t\tlistCarteJouable.add(carteJouer);\n\t\t\t\t\tajm.jouer(platMod, listCarteJouable);\n\t\t\t\t\t\n\t\t\t\t\t//Pour le huit et le 15, le passage au joueur suivant se fera après un clic sur l'IHM\n\t\t\t\t\tif (carteJouer.retourneTaille() == 8 || carteJouer.retourneTaille() == 15) \n\t\t\t\t\t\tnew DialogVueChoixCouleur(jv, platMod);\n\t\t\t\t\telse \n\t\t\t\t\t\tplatMod.roulementJoueurCourant();\n\t \t\t}\n\t \t}\n\t\t}\n\t}", "public void elevatorFloor()\n {\n int c = 0;\n if (currentFloor < e)\n {\n for(c = currentFloor; c <= e; ++c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else if (currentFloor > e)\n {\n for(c = currentFloor; c >= e; --c)\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n }\n else\n {\n JOptionPane.showMessageDialog(null, \"Now at floor \" + c);\n }\n \n currentFloor = e;\n \n //displays a different floor depending on user input\n switch(e)\n {\n case 0:\n getFloors.basement();\n break;\n case 1:\n if(getFloors.secKey == true)\n {\n JOptionPane.showMessageDialog(null,\" you are free to go\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\" you are in the first Floor, you cannot get out without a special key\");\n elevatorLoop();\n }\n break;\n case 2:\n getFirstFloor.livingRoom();\n break;\n case 3:\n getFirstFloor.diningRoom();\n break; \n case 4:\n getFirstFloor.kitchen();\n break;\n case 5:\n getFirstFloor.pantry();\n break;\n case 6:\n getSecondFloor.bedroom1();\n break;\n case 7:\n getSecondFloor.bedroom2();\n break;\n case 8:\n getSecondFloor.masterBedroom();\n break;\n case 9:\n getFloors.attic();\n break;\n \n } \n }", "public void latte(){\n while(infiniteLoop){\n System.out.println(\"How many shots of expresso would you like?\");\n int x = keyboard.nextInt();\n if(x >= 0 && x <= 10){\n if(x == 0){\n Coffee = Coffee + \"with no shot of expresso, \";\n break;\n }\n else{\n Coffee = Coffee + x + \" shots of expresso, \";\n break;\n }\n }\n System.out.println(\"Please enter realistic amount\");\n }\n while(infiniteLoop){\n System.out.println(\"Foam or no foam\");\n System.out.println(\"Press 1 - foam\");\n System.out.println(\"Press 2 - no foam\");\n int y = keyboard.nextInt();\n if(y == 1){\n Coffee = Coffee + \"with foam, \";\n break;\n }\n else if(y == 2){\n Coffee = Coffee + \"with no foam, \";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n }", "@Test\r\n public void testPlayer_getDumbStrategyCard_differentWinners() {\r\n player2 = new Player(\"\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n boolean differentLegalCardFound = false;\r\n Card firstDiscard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n for(int i = 0; i < 25; i++) {\r\n Card loopCard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n if(!loopCard.equals(firstDiscard)) {\r\n differentLegalCardFound = true;\r\n }\r\n }\r\n assertTrue(differentLegalCardFound);\r\n }", "public void check4winner(){\n String winner = \"\";\n //checking different combinations\n if((circle1 && circle2 && circle3) ||\n (circle4 && circle5 && circle6) ||\n (circle7 && circle8 && circle9) ||\n (circle1 && circle4 && circle7) ||\n (circle2 && circle5 && circle8) ||\n (circle3 && circle6 && circle9) ||\n (circle1 && circle5 && circle9) ||\n (circle3 && circle5 && circle7)){\n //highlighting the winning combination\n if((circle1 && circle2 && circle3)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle4 && circle5 && circle6)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle7 && circle8 && circle9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle1 && circle4 && circle7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle2 && circle5 && circle8)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle3 && circle6 && circle9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle1 && circle5 && circle9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle3 && circle5 && circle7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n\n winner = \"circlewins\";\n winner(winner);\n } else if((cross1 && cross2 && cross3) ||\n (cross4 && cross5 && cross6) ||\n (cross7 && cross8 && cross9) ||\n (cross1 && cross4 && cross7) ||\n (cross2 && cross5 && cross8) ||\n (cross3 && cross6 && cross9) ||\n (cross1 && cross5 && cross9) ||\n (cross3 && cross5 && cross7)){\n\n if((cross1 && cross2 && cross3)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross4 && cross5 && cross6)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross7 && cross8 && cross9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross1 && cross4 && cross7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross2 && cross5 && cross8)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross3 && cross6 && cross9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross1 && cross5 && cross9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross3 && cross5 && cross7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n\n winner = \"crosswins\";\n winner(winner);\n } else {\n return;\n }\n }", "public void setDoor() {\n\t\tisaDoor = true;\n\t}", "public void LabelingCandiesToDestroy() {\n int i;\n int j;\n int checkIfSame = 1;\n int NumOfSame = 1;\n System.out.println(\" \");\n //the two sets of nested for loops are used to check for combinations in different directions (top-bottom, left-right)\n for (i = 0; i < 9; i++) {\n for (j = 0; j < 9; j++) {\n NumOfSame = 1;\n checkIfSame = 1;\n while (checkIfSame < (9 - j)) { //when there is a valid combination, it labels the candies as 9\n if (pictures[i][j] == pictures[i][j + checkIfSame]) {\n checkIfSame++;\n NumOfSame++;\n } else {\n break;\n }\n }\n if (NumOfSame > 2) {\n for (int k = 0; k < NumOfSame; k++) {\n pictures2[i][j + k] = 9; //9 is set to candies that have a 3 or more combinations\n }\n }\n\n }\n }\n //this is the second set for the other direction\n for (j = 0; j < 9; j++) {\n for (i = 0; i < 9; i++) {\n NumOfSame = 1;\n checkIfSame = 1;\n while (checkIfSame < (9 - i)) {\n if (pictures[i][j] == pictures[i + checkIfSame][j]) {\n checkIfSame++;\n NumOfSame++;\n } else {\n break;\n }\n }\n if (NumOfSame > 2) {\n for (int k = 0; k < NumOfSame; k++) {\n pictures2[i + k][j] = 9;\n }\n }\n\n }\n }\n\n for (j = 0; j < 9; j++) {\n for (i = 0; i < 9; i++) {\n System.out.print(pictures2[i][j] + \" \");\n }\n System.out.println();\n }\n DestroyCandies();\n }", "public static void item(){\n int opcionItem; //variables locales a utilizar\n Scanner scannerDos=new Scanner(System.in);\n //imprimiendo posibles Items y su cantidad\n System.out.println(\"\\nArticulos Disponibles:\");\n\tSystem.out.println(\"\\n1.Potion, Cura 25HP:\\t\"+articulo1);\n\tSystem.out.println(\"2.Hi-Potion,Cura 75HP:\\t\"+articulo2);\n\tSystem.out.println(\"3.M-Potion, Recupera 10MP:\\t\"+articulo3);\n\t\n do{//validacion de la opcion\n System.out.println(\"\\nNumero de opcion:\");\n opcionItem= scannerDos.nextInt();\n \n }while(opcionItem<1||opcionItem>4);\n //comparador para ver si es posibles utilizar un Item\n switch(opcionItem){\n case 1:{\n if(articulo1>0){//condicion de Item 1 y sus acciones\n puntosDeVida=puntosDeVida+25;\n articulo1=articulo1-1;\n }\n else{\n System.out.println(\"no hay Disponible\");\n }\n break;\n }\n case 2:{\n if(articulo2>0){//condicion de Item 2 y sus acciones\n puntosDeVida=puntosDeVida+75;\n articulo2=articulo2-1;\n }\n else{\n System.out.println(\"no hay Disponible\");\n }\n break;\n }\n default:{\n if(articulo3>0){ //condicion de Item 3 y sus acciones\n puntosDeVida=puntosDeVida+75;\n articulo3=articulo3-1;\n }\n else{\n System.out.println(\"no hay Disponible\");\n }\n break;\n } \n } \n }", "public static void main(String[] args) {\r\n \r\n // declare some cars\r\n Car randomCar, coolCar, neatoCar;\r\n \r\n // make a scanner to get input\r\n Scanner sc = new Scanner(System.in);\r\n \r\n // make some variables to store the first car's values\r\n String coolCarMake, coolCarModel;\r\n int coolCarYear;\r\n double coolCarPrice, coolCarLength, coolCarWidth;\r\n \r\n // Get the user's input\r\n System.out.println(\"Please enter the make:\");\r\n coolCarMake = sc.nextLine();\r\n System.out.println(\"Please enter the model:\");\r\n coolCarModel = sc.nextLine();\r\n System.out.println(\"Please enter the year:\");\r\n coolCarYear = sc.nextInt();\r\n System.out.println(\"Please enter the price:\");\r\n coolCarPrice = sc.nextDouble();\r\n System.out.println(\"Please enter the length:\");\r\n coolCarLength = sc.nextDouble();\r\n System.out.println(\"Please enter the width:\");\r\n coolCarWidth = sc.nextDouble();\r\n sc.close();\r\n \r\n // print out the information about the cars\r\n randomCar = new Car();\r\n coolCar = new Car(coolCarMake, coolCarModel, coolCarYear, coolCarPrice, coolCarLength, coolCarWidth);\r\n neatoCar = new Car(\"Land Rover\", \"LR4\", 2016, 59990.0, 4.829, 2.053);\r\n System.out.println(randomCar);\r\n System.out.println(coolCar);\r\n System.out.println(neatoCar);\r\n randomCar.honk();\r\n }", "public static void gameOn() {\n String player1 = \"Odd number player\", player2 = \"Even number player\";\n int numberOfPlayer;\n\n System.out.print(\"\\n\\t Start!\\n\");\n\n //Print the board that is initialized by clearBoard(); in main function\n printBoard();\n\n System.out.print(\"\\nHow many players?: \");\n numberOfPlayer = input.nextInt();\n // If the user enters number other than 1 and 2, this while loop will ask the user to input just 1 or 2\n while (numberOfPlayer < 1 || numberOfPlayer > 2) {\n System.out.print(\"Invalid amount of players. Please enter 1 or 2: \");\n numberOfPlayer = input.nextInt();\n }\n\n // If 1 is entered, the user will be playing with the computer\n if (numberOfPlayer == 1) {\n do {\n turnOfComp();\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" The Computer has WON!\");\n break;\n } else if (isFull()) {\n System.out.print(\"\\nIt's a DRAW! Game Over!\");\n break;\n }\n\n turnOfEven(player2);\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" You have WON!\");\n break;\n }\n } while (isBingo() == false);\n } // If 2 is entered, there will be two players\n else if (numberOfPlayer == 2) {\n do {\n turnOfOdd(player1);\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" \" + player1 + \" has WON!\");\n break;\n } else if (isFull()) {\n System.out.print(\"\\nIt's a DRAW! Game Over!\");\n break;\n }\n\n turnOfEven(player2);\n if (isBingo()) {\n printLineBingo();\n System.out.print(\" \" + player2 + \" has WON!\");\n break;\n }\n } while (isBingo() == false);\n }\n }", "public static void OrdenarNumeros(){\n\t\t//Variables\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tString tomar;\n\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese tres numeros numero\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tc=reader.nextInt();\n\t\tif(a>b && b>c){\n\t\t\tTexto=a+\",\"+b+\",\"+c;\n\t\t}else if(a>c && c>b){\n\t\t\tTexto=a+\",\"+c+\",\"+b;\n\t\t}else if(b>a && a>c){\n\t\t\tTexto=b+\",\"+a+\",\"+c;\n\t\t}else if(b>c && c>a){\n\t\t\tTexto=b+\",\"+c+\",\"+a;\n\t\t}else if(c>a && a>b){\n\t\t\tTexto=c+\",\"+a+\",\"+b;\n\t\t}else if(c>b && b>a ){\n\t\t\tTexto=c+\",\"+b+\",\"+a;\n\t\t}\n\t\tSystem.out.println(Texto);\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n activedicenumberselected = 0;\n if (listenfordicenumber) {\n activedicenumberselected = setdicenumber;\n listenfordicenumber = false;\n }\n\n if (activedicenumberselected != 0) {\n if (Dice.doesFrozenDiceListContainValue(activedicenumberselected) == false) {\n currentplayeractions.performFreezeDice(activedicenumberselected);\n if (Dice.getActiveDiceListSize() > 0) {\n currentplayeractions.setDiceRollAvailable(true);\n }\n TakeWormFromPlayerAvailable = true;\n TakeWormFromGrillAvailable = true;\n ActiveDiceButtonsAreGreen = false;\n } else if (Dice.doesFrozenDiceListContainValue(activedicenumberselected)) {\n JOptionPane.showMessageDialog(null, \"You already froze that number, pick another number!\");\n listenfordicenumber = true;\n }\n }\n performGamePanelUpdate();\n }", "public static void GiveRentalProperty(ArrayList<Apartment> apartments, ArrayList<House> houses, ArrayList<Villa> villas)\n {\n //Generate visualisation\n JFrame frame = new JFrame();\n\n //The label for displaying PropertyID\n final JLabel propertyID_label = new JLabel(\"PropertyID\");\n\n //Text for PropertyID\n JTextField propertyID_text = new JTextField();\n propertyID_text.setColumns(5);\n\n //The label for displaying Rental Days\n final JLabel rental_days_label = new JLabel(\"Rental Days\");\n\n //Text for Rental Days\n JTextField rental_days_text = new JTextField();\n rental_days_text.setColumns(5);\n\n //The button to trigger the ok\n JButton ok_button = new JButton(\"OK\");\n\n //The button to trigger the cancel\n JButton cancel_button = new JButton(\"Cancel\");\n\n //The panel that holds the user interface components\n JPanel panel = new JPanel();\n panel.add(propertyID_label);\n panel.add(propertyID_text);\n panel.add(rental_days_label);\n panel.add(rental_days_text);\n panel.add(ok_button);\n panel.add(cancel_button);\n frame.add(panel);\n\n frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setVisible(true);\n\n // search propertyID in three ArrayList, if exist, do something. if not exit, return error information\n class AddOKListener implements ActionListener\n {\n public void actionPerformed(ActionEvent event) {\n String pro_id = propertyID_text.getText();\n String days = rental_days_text.getText();\n\n // To check whether user has already input propertyID and rental days\n if (\"\".equals(pro_id) && \"\".equals(days)|| \"\".equals(pro_id) || \"\".equals(days)) {\n System.out.println(\"Attention: you must input PropertyID and Rental Days\");\n }\n else {\n int pro_id_con = Integer.parseInt(pro_id);\n int days_con = Integer.parseInt(days);\n\n //check apartment list\n for (int i = 0; i < apartments.size(); i++) {\n if (pro_id_con == apartments.get(i).getPropertyID()) {\n System.out.println(\"This apartment ID is \" + pro_id_con);\n apartments.get(i).RentAnItem(days_con);\n System.out.println(\"The Total day you want to rent this apartment is \" + apartments.get(i).getTotal_rental_days() + \" days\");\n break;\n }\n else {\n System.out.println(\"This property is not in apartment list......\");\n break;\n }\n }\n\n //check house list\n for (int j = 0; j < houses.size(); j++) {\n if (pro_id_con == houses.get(j).getPropertyID()) {\n System.out.println(\"This house ID is \" + pro_id_con);\n houses.get(j).RentAnItem(days_con);\n System.out.println(\"The Total day you want to rent this house is \" + houses.get(j).getTotal_rental_days() + \" days\");\n break;\n }\n else {\n System.out.println(\"This property is not in house list......\");\n break;\n }\n }\n\n //check villa list\n for (int k = 0; k < villas.size(); k++) {\n if (pro_id_con == villas.get(k).getPropertyID()) {\n System.out.println(\"This house ID is \" + pro_id_con);\n villas.get(k).RentAnItem(days_con);\n System.out.println(\"The Total day you want to rent this villa is \" + villas.get(k).getTotal_rental_days() + \" days\");\n break;\n }\n else {\n System.out.println(\"This property is not in villa list......\");\n break;\n }\n }\n\n }\n }\n }\n\n ActionListener ok_listener = new AddOKListener();\n ok_button.addActionListener(ok_listener);\n\n // When click cancel button, the frame will be closed\n class AddCancelListener implements ActionListener{\n public void actionPerformed(ActionEvent event){\n frame.getDefaultCloseOperation();\n frame.dispose();\n }\n }\n\n ActionListener cancel_listener = new AddCancelListener();\n cancel_button.addActionListener(cancel_listener);\n }", "public void identificacion(){\n System.out.println(\"¡Bienvenido gamer!\\nSe te solcitaran algunos datos con el fin de personalizar tu experiencia :)\");\n System.out.println(\"Porfavor, ingresa tu nombre\");\n nombre = entrada.nextLine();\n System.out.println(\"Bien, ahora, ingresa tu gamertag\");\n gamertag = entrada.nextLine();\n System.out.println(\"Ese es un gran gamertag, ahora, diseña tu id, recuerda que tiene que ser un numero entero\");\n id = entrada.nextInt();\n //se le pide al usuario que elija la dificultad del juego, cada dificultad invocara a un metodo distinto\n System.out.println(\"Instrucciones:\\nTienes un numero limitado de intentos, tendras que encontrar las minas para asi desactivarlas\\n¿Quien no queria ser un Desactivador de minas de niño?\");\n System.out.println(\"Selecciona la dificultad\\n1. Facil\\n2. Intermedia\\n3 .Dificil\\n4. Imposible\");\n decision = entrada.nextInt();\n //creo el objeto que me llevara al juego, mandandolo con mis variables recopiladas\n Buscaminas dear = new Buscaminas(nombre, gamertag, id);\n if (decision==1){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Facil\");\n //vamos para el juego\n dear.juego();\n }else if(decision==2){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Intermedia\");\n dear.juego1();\n\n }else if(decision==3){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Dificil\");\n dear.juego2();\n\n }else if(decision==4){\n System.out.println(\"Estamos listos para empezar :), La dificultad que has elegido es Imposible\");\n dear.juego3();\n\n }\n\n\n\n }", "@Test\r\n\tpublic void testChooseResultWithUnChangeCarPositionSecond() {\r\n\t\tMontyHall monty = new MontyHall();\r\n\t\tmonty.setTheDoorWithCar(1);\r\n\t\tmonty.setChanged(false);\r\n\t\tmonty.setUserChoosedDoor(0);\r\n\t\tassertEquals(2, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(1);\r\n\t\tassertNotEquals(1, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(true, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(2);\r\n\t\tassertEquals(0, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\t}", "public static void main(String[] args) {\n\t\tScanner a=new Scanner(System.in);\r\n\t\t/*System.out.println(\"Enter the number\");\r\n\t\tSystem.out.println(\"1.Micro\");\r\n\t\tSystem.out.println(\"2.Prime\");\r\n\t\t\r\n\t\tint cab=a.nextInt();\r\n\t\tSystem.out.println(\"Enter the KM\");\r\n\t\tint Km=a.nextInt();\r\n\t\tif(cab==1) {\r\n\t\t\tint price=10;\r\n\t\t\tSystem.out.println(\"Drop Charge =\"+(price*Km));\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(cab==2){\r\n\t\t\tint price=20;\r\n\t\t\tSystem.out.println(\"Drop Charge =\"+(price*Km));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Invalid\");\r\n\t\t}*/\r\n\tSystem.out.println(\"enter your choice\");\r\n\tSystem.out.println(\"bike\");\r\n\tSystem.out.println(\"car\");\r\n\tString vehicle=a.next();\r\n\t\r\n\tif(vehicle.equals(\"bike\")) {\r\n\t\trateforbike(vehicle);\r\n\t}\r\n\telse if(vehicle.equals(\"car\")) {\r\n\t\trateforcar(vehicle);\r\n\t}\r\n\t\r\n\r\n}", "public static void menu() {\n\t\tRaton ratones[] = new Raton[3];\n\t\tTeclado teclados[] = new Teclado[3];\n\t\tMonitor monitores[] = new Monitor[3];\n\t\tString[] computadoras = {\"Windows\",\"Linux\",\"Mac\"};\n\t\t\n\t\t// Cargamos los arrays mediante metodos\n\t\tratones = cargaRatones();\n\t\tteclados = cargaTeclados();\n\t\tmonitores = cargaMonitores();\n\t\t\n\t\t// Creamos variables para las opciones seleccionadas\n\t\tOrden orden = new Orden();\n\t\tint opRaton = 1;\n\t\tint opTeclado = 1;\n\t\tint opMonitor = 1;\n\t\tint opComputadora = 1;\n\t\tint opcion = 1;\n\t\tboolean repetir = true; // Variable para repetir la seleccion en caso de excepcion\n\t\t\n\t\t// Bucle menu\n\t\tdo {\n\t\t\tSystem.out.println(\"---- Carga de datos de Computadora ----\");\n\t\t\t// SELECCION DE RATON\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Raton: \");\n\t\t\t\tfor(int i=0; i<ratones.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+ratones[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topRaton = input.nextInt();\n\t\t\t\t\tif(opRaton>0 && opRaton<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE TECLADO\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Teclado: \");\n\t\t\t\tfor(int i=0; i<teclados.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+teclados[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topTeclado = input.nextInt();\n\t\t\t\t\tif(opTeclado>0 && opTeclado<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE MONITOR\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Monitor: \");\n\t\t\t\tfor(int i=0; i<monitores.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+monitores[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topMonitor = input.nextInt();\n\t\t\t\t\tif(opMonitor>0 && opMonitor<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE COMPUTADORA\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione una computadora:\");\n\t\t\t\tfor(int i=0 ; i<computadoras.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+computadoras[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topComputadora = input.nextInt();\n\t\t\t\t\tif(opComputadora>0 && opComputadora<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Se crea la computadora y se agrega a la orden\n\t\t\tComputadora computadora = new Computadora(computadoras[opComputadora-1], monitores[opMonitor-1], teclados[opTeclado-1], ratones[opRaton-1]);\n\t\t\torden.agregarComputadora(computadora);\n\t\t\tSystem.out.println(\"Computadora agregada a la orden!!\");\n\t\t\t\n\t\t\t// OPCIONES PARA SEGUIR AGREGANDO COMPUTADORAS\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Desea agregar otra computadora?: [1. Si] - [2. No]\");\n\t\t\t\ttry {\n\t\t\t\t\topcion = input.nextInt();\n\t\t\t\t\tif(opcion == 1 || opcion == 2) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\\n\");\n\t\t\t\t\t\n\t\t}while(opcion == 1);\n\t\t\n\t\t// Muestra todas las computadoras de la orden\n\t\tSystem.out.println(\"====== Datos de la orden ======\");\n\t\torden.mostrarOrden();\n\t\t\n\t}", "public static void editcar(String ref) {\n\n Scanner sc = new Scanner(System.in);\n Cars xx = new Cars();\n System.out.println(\"edit car\");\n String target = ref.toUpperCase();\n int gotit = 0;\n for (int i = 0; i < listcars.size(); i++) {\n\n xx = listcars.get(i);\n String record = xx.getReference().toUpperCase();\n if (record.equals(target)) {\n System.out.println(\" Car found !\");\n System.out.println(\" reference: \" + xx.getReference());\n System.out.println(\"please select enter to continue or write a new reference\");\n ref = sc.nextLine();\n if (!ref.equals(\"\")) {xx.SetRef(ref);}\n\n System.out.println(\"Brand: \" + xx.getBrand());\n String brand = sc.nextLine();\n if (!brand.equals(\"\")) {xx.SetBrand(brand);}\n String mo;\n System.out.println(\"Model: \" + xx.getModel());\n mo = sc.nextLine();\n if (!mo.equals(\"\")) { xx.SetModel(mo); }\n\n String ye;\n System.out.println(\" Year: \" + String.valueOf(xx.getYear()));\n ye = sc.nextLine();\n if (!ye.equals(\"\")) { xx.SetYear(Integer.valueOf(sc.nextLine())); }\n\n System.out.println(\"car's information successfully updated \");\n ye = String.valueOf(xx.getYear());\n\n System.out.println(\"Brand: \"+ xx.getBrand()+ \",Model:\"+ xx.getModel()+ \", Reference:\"+ xx.getReference()+ \", Year: \" + ye);\n gotit = 1;\n\n }\n }\n if (gotit == 0) {\n System.out.println(\"user not found !\");\n }\n\n\n }", "private boolean checkDoors(ArrayList<Door> doors, int direction) {\n\t\tboolean stopSeaching = false;\n\t\tboolean found = false;\n\t\tfor (int i = 0; i < doors.size() && !stopSeaching; i++) {\n\t\t\tstopSeaching = doors.get(i).isInRange(player.pos);\n\t\t\tif (stopSeaching) {\n\t\t\t\tfound = checkDoor(doors.get(i), direction);\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}", "public void makePayment(double roomPrice, Room room, int counter) {\n\t\tif(counter < 3) {\t\t\t\t\t\t\t\t\t\t\t//A payment can be attempted 3 times. User enters the amount\n\t\tSystem.out.println(\"\\nPlease enter outstanding balance being payed by customer.\"); //received from guests for Room\n\t\tSystem.out.println(\"DUE: €\"+roomPrice+\"0\");\n\t\tdouble moneyPayed = keyboard.nextDouble();\t\t\t\t\t\t\t\t\t\t\t//amount is entered to the screen\n \n\t\t\tif((roomPrice - moneyPayed) <= 0) {\t\t\t\t\t\t\t\t\t\t\t//if guests have give the value of the bill\n\t\t\t\tSystem.out.println(\"\\n GUESTS CHECKED-OUT \");\t\t\n\t\t\t\troom.removeAllGuestsFromRoom(room);\t\t\t\t\t\t\t\t\t\t//guests of that room are checked out\n\t\t\t\tSystem.out.println(\"******* THANK YOU FOR YOUR PAYMENT *********\");\t\t\t\t\n\t\t\t\tdayEarnings += moneyPayed; \t\t\t\t\t\t\t\t\t\t\t\t//money received is added to the earnings\n\t\t\t\tif(moneyPayed - roomPrice > 0) {\t\t\t\t\t\t\t\t\t\t//if they payed more than required\n\t\t\t\t\tSystem.out.println(\"\\tCHANGE DUE TO CUSTOMER : €\"+(moneyPayed-roomPrice)+\"0\"); //amount of change due is displayed\n\t\t\t\t\tdayEarnings = dayEarnings - (moneyPayed - roomPrice);\t\t\t\t//change given back is removed from earnings\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"**********************************************\\n\");\n\t\t\t}\n\t\t\telse {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//guests have not handed over enough money\t\n\t\t\t\tif(counter < 2 )\n\t\t\t\tSystem.out.println(\"\\n******* YOU HAVE NOT PAYED ENOUGH **********\");\n\t\t\t\tSystem.out.println(\"**********************************************\\n\");\n\t\t\t\tcounter++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//when counter reaches 3 Payment is not\n\t\t\t\troomPrice = roomPrice - moneyPayed;\t\t\t\t\t\t\t\t\t\t//accepted and you are put back to mainMenu\n\t\t\t\tmakePayment(roomPrice, room , counter);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"******* UNSUCCESSFULL PAYMENT **********\");\t\t\t//if the guests did not pay correctly 3\n\t\t\tSystem.out.println(\"******* NO MONEY TAKEN **********\");\t\t\t//times then they are not checked-out\n\t\t\tSystem.out.println(\"******************************************\\n\");\t\t\t//and their bill is still due\n\t\t\tSystem.out.println(\"**** PLEASE TRY TO CHECK-OUT AGAIN *****\");\n\t\t}\n\t}", "private int determineWinning(GamePlayerInterface player, GamePlayerInterface dealer)\n {\n \n int playerValue = player.getTotalCardsValue();\n int dealerValue = dealer.getTotalCardsValue();\n int result = 0;\n \n if(dealerValue > playerValue)\n {\n \t view.print(\"Dealer Wins\");\n \t view.printLine();\n \t result = 1;\n }\n \n else if(dealerValue < playerValue)\n {\n \t view.print(\"Player Wins\");\n \t view.printLine();\n \t result = 2;\n }\n \n else{\n \t view.print(\"Match Draw!\");\n \t view.printLine();\n }\n \n return result;\n }", "public static void main(String[] args) {\n \n//declare an instance of the Scanner object and call the Scanner constructor \nScanner myScanner = new Scanner (System.in);\n\n//computer generates random number\nint random = (int)(Math.random()*101);\nSystem.out.println(\"Random number generated: \" + random);\n\n//do-while loop to use conditionals to determine what to print out\ndo{\n if(random%2==0 && random!=0){ //if even print out *\n System.out.print(\"**\");\n }\n else if(random == 1){ //if 1 only print out one &\n System.out.print(\"&\");\n }\n else if(random == 0){ // if zero dont print out anything\n System.out.print(\"\");\n }\n else{ //if odd print out &\n System.out.print(\"&&\");\n }\n random -= 2; //do loop by increments of 2 in order to keep odd numbers odd and even numbers even\n} while(random > 0); //run loop as long as random number is greater than 0\n\n\n}", "public static int seleccionarCarro(Mano[] jug){//error no vio la 0,0\n int numeroDoble=6;\n int toret=0;\n while(numeroDoble>=0){\n int n=0;\n while(n<jug.length){\n int f=0;\n while( f<jug[n].getNPiezas() && \n (jug[n].getUnaPieza(f).getN1()!=numeroDoble || jug[n].getUnaPieza(f).getN2()!=numeroDoble))\n f++;\n \n if(f<jug[n].getNPiezas()){\n System.out.println(\"Encontrada la \"+numeroDoble+\",\"+numeroDoble\n +\", la tiene él jugador \"+(n+1)+\" y el tiene \"\n + \"el primer turno\");\n toret=n;\n numeroDoble=-10;\n \n }\n n++;\n }\n numeroDoble-=1;\n }\n if(numeroDoble==-1){\n toret=(int) (Math.random()*jug.length);\n System.out.println(\"No se ha encontrado ningun jugador con alguna pieza doble.\\n\"\n + \"Empieza el jugador \"+toret);\n }\n return toret;\n }", "public void productAnalysis()\n {\n Scanner scan = new Scanner (System.in);\n String ans;\n\n do \n {\n System.out.println(\"Are you doing product analysis for a carseat [C] or a buggy [B]\");\n ans=scan.nextLine();\n if(!(ans.equalsIgnoreCase(\"B\")||ans.equalsIgnoreCase(\"C\")))\n {\n System.out.println(\"Error, Enter [B] for Buggy or [C] for Carseat\");\n }\n } while (!(ans.equalsIgnoreCase(\"B\")||ans.equalsIgnoreCase(\"C\")));\n\n if (ans.equalsIgnoreCase(\"B\"))\n {\n for (Hardware aHardware : list)\n {\n if (aHardware instanceof Buggy)\n {\n Buggy b = (Buggy) aHardware;\n\n if (b.getSales()>0)\n {\n System.out.println(\"Displaying the buggies with the most units sold\");\n System.out.println(\"Brand: \" + b.getBrand() + \" \" + \"Number of units sold: \" + b.getSales());\n }\n\n if (b.getSales() == 0)\n {\n System.out.println(\"Displaying the buggies with no sales\");\n System.out.println(\"Brand: \"+ b.getBrand());\n }\n }\n }\n }\n\n if (ans.equalsIgnoreCase(\"C\"))\n {\n for (Hardware aHardware : list)\n {\n if (aHardware instanceof Carseat)\n {\n Carseat c = (Carseat) aHardware;\n if (c.getSales()>0)\n {\n System.out.println(\"Displaying the carseats with the most units sold\");\n System.out.println(\"Brand: \" + c.getBrand() + \"Number of units sold\" + c.getSales());\n }\n\n if (c.getSales() == 0)\n {\n System.out.println(\"Displaying the carseats with no sales\");\n System.out.println(\"Brand: \"+ c.getBrand());\n } \n }\n }\n }\n\n }", "private void listYourCar() {\r\n\r\n int year;\r\n String brand;\r\n String model;\r\n int mileage;\r\n int bidPrice;\r\n\r\n System.out.println(\"Please enter the following details:\\nYear of car:\");\r\n\r\n year = input.nextInt();\r\n System.out.println(\"Brand of car:\");\r\n brand = input.next();\r\n System.out.println(\"Model of car:\");\r\n model = input.next();\r\n System.out.println(\"Mileage of car:\");\r\n mileage = input.nextInt();\r\n System.out.println(\"Starting bid price of car\");\r\n bidPrice = input.nextInt();\r\n\r\n user = createListings(year, brand, model, mileage, bidPrice);\r\n checkCarIsListed(user);\r\n }", "static public void checkAndPrintIfLostDrone(Drone drone) {\n\n if (drone.isReturningToHome() && drone.getDistanceSource() == 0) {\n System.out.println(\"Drone[\" + drone.getLabel() + \"] \" + \"Return to home completed successfully\");\n LoggerController.getInstance().print(\"Drone[\" + drone.getLabel() + \"] \" + \"Return to home completed successfully\");\n return;\n }\n if (drone.getDistanceDestiny() == 0) {\n System.out.println(\"Drone[\" + drone.getLabel() + \"] \" + \"Arrived at destination\");\n LoggerController.getInstance().print(\"Drone[\" + drone.getLabel() + \"]\" + \"Arrived at destination\");\n return;\n }\n\n /* if(drone.isGoingManualToDestiny()){\n System.out.println(\"Drone[\"+getDroneLabel()+\"] \"+\"Arrived at destination\");\n loggerController.print(\"Drone[\"+getDroneLabel()+\"] \"+\"Arrived at destination\");\n return;\n }*/\n\n if (drone.isOnWater()) {\n System.out.println(\"Drone[\" + drone.getLabel() + \"] \" + \"Drone landed on water\");\n LoggerController.getInstance().print(\"Drone[\" + drone.getLabel() + \"] \" + \"Drone landed on water\");\n } else {\n System.out.println(\"Drone[\" + drone.getLabel() + \"] \" + \"Drone landed successfully\");\n LoggerController.getInstance().print(\"Drone[\" + drone.getLabel() + \"] \" + \"Drone landed successfully\");\n }\n\n\n }", "public synchronized int getPassengers(int mcar) throws InterruptedException {\n\n\t while ((!((mcar > 0) && (count >= mcar))) && (!((mcar > 0) && (count > 0) && (count < mcar) && (buttonPressed == true)))) {\n\t\t waitingCarSize = mcar; //So that the goNow button only registers when under the right conditions.\n\t\t wait();\n\t }\n\t if ((count < mcar) && (buttonPressed == true)) {\n\t\t mcar = count;\n\t }\n\t count = count - mcar;\n waitingCarSize = 0;\n\t buttonPressed = false; //So that the press is not remembered between cars\n // use \"passengers.setValue(integer value)\" to update display\n passengers.setValue(count);\n notifyAll();\n return mcar;\n }", "public static boolean dcheck() {\n if ((card[0][0] == 0 && card[1][1] == 0 && card[2][2] == 0 && card[3][3] == 0 && card[4][4] == 0) || (card[0][4] == 0 && card[1][3] == 0 && card[2][2] == 0 && card[3][1] == 0 && card[4][0] == 0)) {\n System.out.println(\"BINGO\");\n System.out.println(\"The numbers called is \" + called);\n return true;\n } else {\n return false;\n }\n }", "public static String subwayFare(int age, Scanner console){\r\n String charlie;\r\n \r\n if(18 < age && age < 65){ // if the rider is aged 19-64, ask for a charlie card\r\n System.out.print(\"Is the rider using a Charlie Card?(y/n): \");\r\n charlie = console.next();\r\n console.nextLine(); // Consume rest of line\r\n }\r\n else {\r\n charlie = \"n\";\r\n }\r\n \r\n String fare;\r\n \r\n if (age <= 11){\r\n fare = \"free\";\r\n }\r\n else if (age >= 12 && age <= 18){\r\n fare = \"$0.85\";\r\n }\r\n else if (age >= 65){\r\n fare = \"$0.60\";\r\n }\r\n else{\r\n if(charlie.equalsIgnoreCase(\"y\")){ //if a charlie card is used\r\n fare = \"$1.70\";\r\n }\r\n else{\r\n fare = \"$2.00\";\r\n } \r\n }\r\n return fare;\r\n }", "public void actionPerformed(ActionEvent event){\n String sourceDirection = sourceText.getText();\n String destDirection = destText.getText();\n\n // If input is invalid, return\n if(!sourceDirection.equals(\"N\") && !sourceDirection.equals(\"E\") && !sourceDirection.equals(\"W\") && !sourceDirection.equals(\"S\")){\n return;\n }\n if(!destDirection.equals(\"N\") && !destDirection.equals(\"E\") && !destDirection.equals(\"W\") && !destDirection.equals(\"S\")){\n return;\n }\n // Clear input fields\n // sourceText.setText(\"\");\n // destText.setText(\"\");\n int currentTime = 0;\n\n // If simulation not running currently\n if(!isClicked) {\n currentTime = Integer.parseInt(arrivalTime.getText());\n if(currentTime < 0) System.out.println(\"Invalid Input! Arrival time should be greater than zero.\");\n // arrivalTime.setText(\"\");\n }\n\n //Initialize new Car object\n Car car = null;\n \n // If simulation has not begun yet\n if(!isClicked){\n // Create a car object and associate traffic light with its travel directions\n if(sourceDirection.equals(\"S\") && destDirection.equals(\"E\")){\n car = new Car(lightSE, sourceDirection, destDirection, currentTime);\n }\n\n else if(sourceDirection.equals(\"W\") && destDirection.equals(\"S\")){\n car = new Car(lightWS, sourceDirection, destDirection, currentTime);\n }\n\n else if(sourceDirection.equals(\"E\") && destDirection.equals(\"W\")){\n car = new Car(lightEW, sourceDirection, destDirection, currentTime);\n }\n\n else{\n car = new Car(null, sourceDirection, destDirection, currentTime);\n car.departureTime = 0;\n }\n // Update array of all cars arrived till now\n Cars.add(car);\n\n }\n // If simulation is running\n else{\n // Create a car object and associate traffic light with its travel directions\n if(sourceDirection.equals(\"S\") && destDirection.equals(\"E\")){\n car = new Car(lightSE, sourceDirection, destDirection, 0);\n }\n\n else if(sourceDirection.equals(\"W\") && destDirection.equals(\"S\")){\n car = new Car(lightWS, sourceDirection, destDirection, 0);\n }\n\n else if(sourceDirection.equals(\"E\") && destDirection.equals(\"W\")){\n car = new Car(lightEW, sourceDirection, destDirection, 0);\n }\n\n else{\n car = new Car(null, sourceDirection, destDirection, 0);\n car.departureTime = 0;\n }\n\n // Acquire lock to ensure synchronization while updating the queue shared by the Main thread and the TimerThread\n lock.lock(); \n try{ \n // Add new car to queue\n new_cars.add(car); \n } \n catch(Exception e){ \n e.printStackTrace(); \n } \n finally{\n // Release lock\n lock.unlock(); \n } \n } \n }", "public static int ContShoppingOrCheckout(){\r\n int input = 0;\r\n boolean wrongNumber = false;//Boolean for error handling\r\n //Menu\r\n System.out.println(\"\\n1 Continue shopping\\n2 Check-out to collect items\");\r\n //Loop\r\n do { \r\n if(wrongNumber)System.out.println(\"Enter CORRECT number.\"); //Error if not a valid number or Exception\r\n wrongNumber = false;\r\n try {\r\n System.out.print(\"Make your choice: \");\r\n input = Vending_Machine.GetInput();\r\n System.out.println(\"\");\r\n if(1 > input || input > 2)wrongNumber = true;//Error handling nummeric input value\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Enter a numeric value, try again\"); \r\n wrongNumber = true;//Error handling exception\r\n } \r\n } while (wrongNumber);//Will loop if wrong numeric value or exception on input\r\n return input;\r\n }", "public static void main(String[] args) {\n \n int op = -1;\n \n while(op != 0){ \n System.out.println(\" >> Digite a opção desejada! << \");\n System.out.println(\" >> 1 << - Preencher vetor automaticamente\");\n System.out.println(\" >> 2 << - Imprimir vetor\");\n System.out.println(\" >> 3 << - Trocando os valores do vetor de posição\");\n System.out.println(\" >> 4 << - Buscar valor do vetor\");\n System.out.println(\" >> 5 << - Apagar valor do vetor\");\n System.out.println(\" >> 0 << - Sair\");\n try{\n System.out.print(\"Opção: \");\n op = scanf.nextInt();\n scanf.nextLine();\n }\n catch (Exception ex){\n System.out.println(\"Erro: \" + ex.getMessage());\n scanf.nextLine();\n }\n switch(op){\n case 1:\n Preencher_vetor();\n System.out.println(\"Vetor preenchido!\");\n System.out.println(\"\");\n break;\n case 2:\n Imprimir_vetor(vet_n); \n break;\n case 3:\n System.out.println(\"Vamos trocar os valores de posição!\");\n System.out.println(\"Valores do vetor atuais: \");\n Imprimir_vetor(vet_n);\n Invertendo_vetor();\n System.out.println(\"Valores do depois da troca: \");\n Imprimir_vetor(vet_n2); \n break;\n case 4:\n int valor_buscar;\n System.out.print(\"Informe o valor que pretende buscar: \");\n valor_buscar = scanf.nextInt();\n System.out.println(\"Valor encontrado na posição: \" + Buscar(valor_buscar));\n break;\n case 5:\n int valor_remover;\n System.out.print(\"Informe o valor que pretende remover: \");\n valor_remover = scanf.nextInt();\n System.out.println(\"Valor a ser removido = \"+ Remover(valor_remover));\n break;\n case 0:\n System.out.println(\"Até mais!!!\");\n break;\n default:\n System.out.println(\"Opção não existente, por favor informe outra opção\");\n break; \n }\n }\n }", "@Test\r\n\tpublic void testChooseResultWithUnChangeCarPositionFrist() {\r\n\t\tMontyHall monty = new MontyHall();\r\n\t\tmonty.setChanged(false);\r\n\t\tmonty.setTheDoorWithCar(0);\r\n\t\tmonty.setUserChoosedDoor(0);\r\n\t\tassertNotEquals(0, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(true, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(1);\r\n\t\tassertEquals(2, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\r\n\t\tmonty.setUserChoosedDoor(2);\r\n\t\tassertEquals(1, monty.getTheDoorChoosedBycompere());\r\n\t\tassertEquals(false, monty.winThePrize());\r\n\t}", "public void carInput()\n\t{\n\t\tSystem.out.println(\"Enter passenger number of car:\");\n\t\tobjCar.setCarPassengerNumber(sc.nextInt());\n\t}", "public void cappuccino(){\n while(infiniteLoop){\n System.out.println(\"Hot milk or no milk\");\n System.out.println(\"Press 1 - hot milk\");\n System.out.println(\"Press 2 - no milk\");\n int x = keyboard.nextInt();\n if(x == 1){\n Coffee = Coffee + \"hot milk, \";\n break;\n }\n else if(x == 2){\n Coffee = Coffee + \"no milk, \";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n while(infiniteLoop){\n System.out.println(\"Foam or no foam\");\n System.out.println(\"Press 1 - foam\");\n System.out.println(\"Press 2 - no foam\");\n int y = keyboard.nextInt();\n if(y == 1){\n Coffee = Coffee + \"with foam, \";\n break;\n }\n else if(y == 2){\n Coffee = Coffee + \"no foam, \";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n }", "public static void main(String[] args) {\r\n\t\ttry{\r\n\t\tboolean x = true;\r\n\t\tString loop = \"\";\r\n\t\tString b = \"\";\r\n\t String v = \"\";\r\n\t int bearing = 0;\r\n\t int vor = 0;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\r\n\t\twhile(!(loop.equals(\"n\"))){\t\r\n\t\t\twhile(x){\r\n\t\t\t\t//Scanner\r\n\t\t\t\tscan = new Scanner(System.in);\r\n\t\t System.out.println(\"Enter in your OBS (On Board Setting) Must be a # 0-359\");\r\n\t\t b = scan.nextLine();\r\n\t\t System.out.println(\"Enter in your VOR Radial : Must be a # 0-359\");\r\n\t\t v = scan.nextLine();\r\n\t\t //System.out.println(\"Enter if the signal is good or bad\");\r\n\t\t //s = scan.nextLine();\r\n\t\t \r\n\t\t\t\t//parsing deflection and radial into an int\r\n\t\t\t\tbearing = Integer.parseInt(b);\r\n\t\t\t\tvor = Integer.parseInt(v);\r\n\t\t\t\r\n\t\t\t\tif(bearing < 0 || bearing > 359 || vor < 0 || vor > 359){\r\n\t\t\t\tSystem.out.println(\"Please try again\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tx = false;\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * VOR() requires 2 params\r\n\t\t\t * rad = radial which will be generated\r\n\t\t\t * fromOrTo = direction of plane ex. TO or FROM\r\n\t\t\t * deflection = how much the needle will deflect ex. \r\n\t\t\t * -10 which is all to the left, 0 which is center, 10 which is all to the right\r\n\t\t\t */\r\n\t\r\n\t\t\tVOR gui = new VOR(bearing, vor);\r\n\t\t\tSystem.out.println(\"Enter 'n' to close or any key to continue\");\r\n\t\t\tloop = scan.nextLine();\r\n\t\t\tloop.trim();\r\n\t\t\tgui.kill();\r\n\t\t\tx = true;\r\n\t\t}\r\n\t\t}catch(NumberFormatException e){\r\n\t\t\tSystem.out.println(\"You didn't enter any number\");\r\n\t\t}\r\n\t}", "private void chooseBreedToBeIdentified() {\n Random r = new Random();\n int questionBreedIndex = r.nextInt(3);\n\n questionCarMake = displayingCarMakes.get(questionBreedIndex);\n carMakeNameTitle.setText(questionCarMake);\n }", "public static void main(String[] args) {\n\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString input1 = \"\";\r\n\t\tString input2 = \"\";\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.println(\"is the item an animal, vegetable, or mineral?\");\r\n\t\t\tinput1 = scan.next();\r\n\t\t\tif (input1.equals(\"animal\") || input1.equals(\"vegetable\") || input1.equals(\"mineral\")) {\r\n\t\t\t\tSystem.out.println(\"is the \" + input1 + \" bigger or smaller than your laptop?\");\r\n\t\t\t\tinput2 = scan.next();\r\n\t\t\t\tif (input2.equals(\"bigger\") || input2.equals(\"smaller\")) {\r\n\t\t\t\t\tSystem.out.println(\"is your \" + input1 + \" a...\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Enter bigger or smaller\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Enter animal, vegetable, or mineral\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (input1.equals(\"animal\") && input2.equals(\"bigger\"))\r\n\t\t\tSystem.out.println(\"horse?\");\r\n\t\tif (input1.equals(\"animal\") && input2.equals(\"smaller\"))\r\n\t\t\tSystem.out.println(\"rabbit?\");\r\n\t\tif (input1.equals(\"vegetable\") && input2.equals(\"bigger\"))\r\n\t\t\tSystem.out.println(\"cabbage?\");\r\n\t\tif (input1.equals(\"vegetable\") && input2.equals(\"smaller\"))\r\n\t\t\tSystem.out.println(\"potato?\");\r\n\t\tif (input1.equals(\"mineral\") && input2.equals(\"bigger\"))\r\n\t\t\tSystem.out.println(\"car?\");\r\n\t\tif (input1.equals(\"mineral\") && input2.equals(\"smaller\"))\r\n\t\t\tSystem.out.println(\"phone?\");\r\n\r\n\t}", "public boolean isDoorway() {\n\t\tif(doorDirection != DoorDirection.NONE) {\t\t\t\t\t\t\t\t// catches if there is a door direction, indicating that the cell is a door\n\t\t\treturn true;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// return true, indicating that the cell is a door\n\t\t}\n\t\telse {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is no door direction\n\t\t\treturn false;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// return false, indicating that the cell is not a door\n\t\t}\n\t}", "public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }", "private void BostonCarRentalActionPerformed(ActionEvent evt) {\n // TODO add your handling code here:\n createConnection();\n try {\n Statement bostonCarButton = connectionTRA.createStatement();\n ResultSet bostonCarResult = bostonCarButton.executeQuery(\"SELECT * FROM Domestic_Car WHERE DomesticCarID = 1\");\n while (bostonCarResult.next()) {\n String carFromQ = bostonCarResult.getString(\"DomesticCar\");\n String addressFromQ = bostonCarResult.getString(\"DomesticCarAddress\");\n String phoneFromQ = bostonCarResult.getString(\"DomesticCarPhone\");\n carRentalSummaryEquals(carFromQ, addressFromQ, phoneFromQ);\n }\n } catch (SQLException carE1) {\n carE1.printStackTrace();\n }\n try {\n connectionTRA.close();\n } catch (SQLException carE2) {\n carE2.printStackTrace();\n }\n }", "public boolean roadBlocked(Player player)\n {\n int num = 0;\n int num2 = 0;\n int num3 = 0;\n if (person_to_play == 1)\n {\n num = check4CollisionWithRed(player);\n num2 = check4CollisionWithGreen(player);\n num3 = check4CollisionWithYellow(player);\n }\n else if (person_to_play == 2)\n {\n //println(\"inside road block\");\n num = check4CollisionWithBlue(player);\n num2 = check4CollisionWithGreen(player);\n num3 = check4CollisionWithYellow(player);\n //println(\"num=\"+num);\n }\n else if (person_to_play == 3)\n {\n num = check4CollisionWithBlue(player);\n num2 = check4CollisionWithRed(player);\n num3 = check4CollisionWithYellow(player);\n }\n else if (person_to_play == 4)\n {\n num = check4CollisionWithBlue(player);\n num2 = check4CollisionWithRed(player);\n num3 = check4CollisionWithGreen(player);\n }\n if (num > 1 || num2 > 1 || num3 > 1)\n {\n return true;\n }\n return false;\n }", "public void selectDualExciters(){\r\n if(checkDualExciters())\r\n System.out.println(\"Dual Exciters Checked\");\r\n else\r\n System.out.println(\"Dual Exciters Unchecked\");\r\n }", "private void chooseDifficulty(){\n\t\tint dif = -1;\n\t\tdo {\n\t\t\tprintSeparation();\n\t\t\tSystem.out.println(\"Elegeix una dificultat entre 1 i 3.\");\n\t\t\tdif = readInt();\n\t\t} while (dif <= 0 || dif >= 4);\n\t\tdifficulty = dif - 1;\n\t\tprintSeparation();\n\t\tSystem.out.println(\"S'ha elegit la dificultat \" + dif + \".\");\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\t\n\t\t{\n\t\t\t\n\t\t\tSystem.out.print(\"Enter the amount of oil ordered, in gallons: \"); //output to ask user test oil\n\t\t\tdouble oil = in.nextDouble(); //program waits and asks user for input\n\t\t\n\n\t\t\n\t\tif (oil >= 100) //if statement for oil greater than equal to 100\n\t\t{\n\t\t\tint discount = 1; //Displays prompt if user enters a value 100 or greater\n\t\t\tdouble pricePerGallon = 325.00;\n\t\t\tdouble pricePerGallon2 = 3.25;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 200) //if statement for oil greater than or equal to 200\n\t\t{\n\t\t int discount2 = 2; //Displays prompt if user enters a value of 200 or greater\n\t\t\tdouble pricePerGallon = 650.00;\n\t\t\tdouble pricePerGallon2 = 6.50;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount2 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 300) //if statement for oil greater than or equal to 300\n\t\t{\n\t\t\tint discount3 = 3; //Displays prompt if user enters a value 300 or greater\n\t\t\tdouble pricePerGallon = 975.00;\n\t\t\tdouble pricePerGallon2 = 9.75;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount3 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 400) //if statement for oil greater than or equal to 400\n\t\t{\n\t\t\tint discount4 = 4; //Displays prompt if user enters a value 400 or greater\n\t\t\tdouble pricePerGallon = 1300.00;\n\t\t\tdouble pricePerGallon2 = 13;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount4 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 500) //if statement for oil greater than or equal to 500\n\t\t{\n\t\t\tint discount5 = 5; //Displays prompt if user enters a value 500 or greater\n\t\t\tdouble pricePerGallon = 1625.00;\n\t\t\tdouble pricePerGallon2 = 16.25;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount5 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.print(\"Have a great day\"); //Displays message if the input of oil is less than 100 \n\t\t}\n\t\t\n\t\t}\n\t\t}", "public void jouerUnTour(Personnage personnage) throws PersonnageHorsPlateauException, JoueurMortException {\n System.out.println(\"\\u001B[33mNouveau jeu!\");\n Random rand = new Random();\n int tour = 0;\n\n // size() permet d'obtenir le nombre d'éléments dans une liste\n\n while (position_personnage < plateau.size()) {\n tour++;\n //à chaque tour on lance le dés et on avance vers la case correspondante\n System.out.println(\"Tour: \" + tour + \": Position personnage: \" + position_personnage);\n int des = rand.nextInt(5) + 1; // simulation des\n System.out.println(\"Jeté de dés: \" + des);\n\n if (position_personnage + des <= plateau.size()) {\n //on choisit l'action à faire suivant l'instance que l'on trouve sur la case ou on est allé\n position_personnage += des;\n Case current_case = plateau.get(position_personnage - 1);\n if (current_case != null)\n {\n int new_position_personnage=current_case.interaction(personnage, position_personnage);\n if (new_position_personnage!=position_personnage) {\n position_personnage = new_position_personnage;\n System.out.println(\"Nouvelle position personnage: \"+position_personnage);\n }\n }\n else System.out.println(\"Case vide...\");\n\n } else throw new PersonnageHorsPlateauException();\n }\n\n }", "public boolean bookDrawers(Order order, Map map) {\n\t// System.out.println(\"Booking Drawer !\");\n\tint nbDrawersToBook = order.getProductsName().size();\n\t// int nbDrawersDec = order.getProductsName().size();\n\tint nbDrawersBooked = 0; // Simulation\n\tColumn firstColumn = null, secondColumn = null, thirdColumn = null; // 20 objets par commande ne peut pas être dans plus de 3 colonnes !\n\t/*******************************************************/\n\t/* Début de la simulation des réservations des drawers */\n\t/*******************************************************/\n\tfor (Column column : map.getColumns()) {\n\t if (column.getAvailableDrawer() != null) {\n\t\tif (nbDrawersBooked == nbDrawersToBook) {\n\t\t // System.out.println(\"BREAK !\");\n\t\t break;\n\t\t}\n\t\tif (nbDrawersBooked > 0 && nbDrawersBooked < nbDrawersToBook) { // Tkt pas ça marche ici & Première colonne rempli, on rentre ici dans la deuxième colonne\n\t\t if (nbDrawersToBook - nbDrawersBooked >= 10 && nbDrawersToBook > nbDrawersBooked && column.getNbAvailableDrawers() != 10 && firstColumn != null) { // pas assez de place dans la seconde colonne car <10\n\t\t\tnbDrawersBooked = 0;\n\t\t\tfirstColumn = null;\n\t\t\tsecondColumn = null;\n\t\t\tthirdColumn = null;\n\t\t\t// System.out.println(\"BREAK 2nd COL > 10 Order ID \"+order.getIdOrder()+\" book 1st column | nb drawer booked = \"+nbDrawersBooked+\"/\"+nbDrawersToBook);\n\t\t } else if (nbDrawersToBook - nbDrawersBooked < 10 && nbDrawersToBook > nbDrawersBooked && firstColumn != null && nbDrawersToBook - nbDrawersBooked > column.getNbAvailableDrawers()) { // pas assez de place dans la seconde colonne\n\t\t\tnbDrawersBooked = 0;\n\t\t\tfirstColumn = null;\n\t\t\tsecondColumn = null;\n\t\t\tthirdColumn = null;\n\t\t\t// System.out.println(\"BREAK 2nd COL < 10 Order ID \"+order.getIdOrder()+\" book 1st column | nb drawer booked = \"+nbDrawersBooked+\"/\"+nbDrawersToBook);\n\t\t } else if (nbDrawersToBook - nbDrawersBooked < 10 && nbDrawersToBook > nbDrawersBooked && firstColumn != null && secondColumn != null && nbDrawersToBook - nbDrawersBooked > column.getNbAvailableDrawers()) { // Pas assez de place dans la troisième colonne\n\t\t\tnbDrawersBooked = 0;\n\t\t\tfirstColumn = null;\n\t\t\tsecondColumn = null;\n\t\t\tthirdColumn = null;\n\t\t\t// System.out.println(\"BREAK 3rd COL Order ID \"+order.getIdOrder()+\" book 1st column | nb drawer booked = \"+nbDrawersBooked+\"/\"+nbDrawersToBook);\n\t\t } else {\n\t\t\t// Book drawers\n\t\t\tif (column.getNbAvailableDrawers() == 10) { // Si colonne peut se remplir entièrement\n\t\t\t if (firstColumn == null) {\n\t\t\t\t// System.out.println(\"First column = \"+column);\n\t\t\t\tfirstColumn = column;\n\t\t\t } else if (secondColumn == null) {\n\t\t\t\t// System.out.println(\"Second column = \"+column);\n\t\t\t\tsecondColumn = column;\n\t\t\t } else if (thirdColumn == null) {\n\t\t\t\t// System.out.println(\"Third column = \"+column);\n\t\t\t\tthirdColumn = column;\n\t\t\t }\n\t\t\t // Maj nbDrawersBooked\n\t\t\t if (nbDrawersToBook - nbDrawersBooked < 10) { // Voilà\n\t\t\t\tnbDrawersBooked += nbDrawersToBook - nbDrawersBooked; // = nbDrawersBooked=nbDrawersToBook;\n\t\t\t } else if (nbDrawersToBook - nbDrawersBooked >= 10) {\n\t\t\t\tnbDrawersBooked += 10;\n\t\t\t }\n\t\t\t} else if (nbDrawersToBook - nbDrawersBooked > column.getNbAvailableDrawers()) { // On remplit la première colonne ou la dernière\n\t\t\t if (firstColumn == null) {\n\t\t\t\tfirstColumn = column;\n\t\t\t } else if (secondColumn == null) {\n\t\t\t\tsecondColumn = column;\n\t\t\t } else if (thirdColumn == null) {\n\t\t\t\tthirdColumn = column;\n\t\t\t }\n\t\t\t // Maj nbDrawersBooked\n\t\t\t nbDrawersBooked += nbDrawersToBook - nbDrawersBooked; // = nbDrawersBooked=nbDrawersToBook; // Voilà\n\t\t\t}\n\t\t }\n\t\t} else if (nbDrawersBooked == 0) { // Réservation première colonne\n\t\t // System.out.println(\"Book 1st column \"+column);\n\t\t if (column.getNbAvailableDrawers() > nbDrawersToBook) {\n\t\t\tnbDrawersBooked = nbDrawersToBook;\n\t\t } else {\n\t\t\tnbDrawersBooked = column.getNbAvailableDrawers();\n\t\t }\n\t\t firstColumn = column;\n\t\t // System.out.println(\"Order ID \"+order.getIdOrder()+\" book 1st column | nb drawers booked = \"+nbDrawersBooked+\"/\"+nbDrawersToBook);\n\t\t}\n\t }\n\t}\n\t// System.out.println(\"END simulation : Order ID \"+order.getIdOrder()+\" | nb drawers booked = \"+nbDrawersBooked+\"/\"+nbDrawersToBook);\n\t/*******************************************************/\n\t/** Fin de la simulation des réservations des drawers **/\n\t/*******************************************************/\n\t/*******************************************************/\n\t/****** Début de la vraie réservation des drawers ******/\n\t/*******************************************************/\n\tif (nbDrawersBooked != nbDrawersToBook) {\n\t // System.out.println(\"Return false\");\n\t return false;\n\t} else {\n\t // System.out.println(\"Begin to Book really !\");\n\t // Book Drawers really here !\n\t int nbDrawersBookedReally = 0; // Reality\n\t int nbDrawersToBookForColumn = 0;\n\t int nbDrawersAvailable;\n\t if (firstColumn != null) {\n\t\tnbDrawersAvailable = firstColumn.getNbAvailableDrawers();\n\t\tif (nbDrawersToBook - nbDrawersBookedReally < nbDrawersAvailable) { // Voilà\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersToBook - nbDrawersBookedReally; // = nbDrawersBooked=nbDrawersToBook;\n\t\t} else if (nbDrawersToBook - nbDrawersBookedReally >= nbDrawersAvailable) {\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersAvailable;\n\t\t}\n\t\tfirstColumn.bookNDrawersOrder(order, nbDrawersToBookForColumn);\n\t }\n\t if (secondColumn != null) {\n\t\tnbDrawersAvailable = secondColumn.getNbAvailableDrawers();\n\t\tif (nbDrawersToBook - nbDrawersBookedReally < nbDrawersAvailable) { // Voilà\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersToBook - nbDrawersBookedReally; // = nbDrawersBooked=nbDrawersToBook;\n\t\t} else if (nbDrawersToBook - nbDrawersBookedReally >= nbDrawersAvailable) {\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersAvailable;\n\t\t}\n\t\tsecondColumn.bookNDrawersOrder(order, nbDrawersToBookForColumn);\n\t }\n\t if (thirdColumn != null) {\n\t\tnbDrawersAvailable = thirdColumn.getNbAvailableDrawers();\n\t\tif (nbDrawersToBook - nbDrawersBookedReally < nbDrawersAvailable) { // Voilà\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersToBook - nbDrawersBookedReally; // = nbDrawersBooked=nbDrawersToBook;\n\t\t} else if (nbDrawersToBook - nbDrawersBookedReally >= nbDrawersAvailable) {\n\t\t nbDrawersBookedReally += nbDrawersToBookForColumn = nbDrawersAvailable;\n\t\t}\n\t\tthirdColumn.bookNDrawersOrder(order, nbDrawersToBookForColumn);\n\t }\n\t return true;\n\t}\n\t/*******************************************************/\n\t/******* Fin de la vraie réservation des drawers *******/\n\t/*******************************************************/\n }", "private void openDoor(int floor){\r\n\t\tfor(int i = 0; i <1000; i++){\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Elevator no. \"+ id+ \" Door opened at floor \"+ floor);\r\n\t}", "private static void DelRoom (){\n boolean DelRoomLoop = true;\n //loop for delete room process\n while (DelRoomLoop) {\n //checking if there are rooms to delete\n if (HotelRoom.roomList.isEmpty() || HotelRoom.AllRoomsOccupied() == true) {\n System.out.println(\"Apologies, there are no available rooms!\");\n break;\n } \n else {\n System.out.println(\"Here is a list of rooms:\");\n //call the method for showing a list of all rooms\n HotelRoom.DisplayAllRooms();\n System.out.println(\"-----------------------------\");\n System.out.print(\"Room number: \");\n //try/catch for delete room input\n try {\n //get the user's input\n int delRoomNumber = RecInput.nextInt();\n //loop through the room list to find whether the room number matches one of the rooms\n //and delete the one asked by the user\n boolean roomNumberExist = false;\n for (int i = 0; i < HotelRoom.roomList.size(); i++){\n\n if (delRoomNumber == HotelRoom.roomList.get(i).roomNumber && HotelRoom.roomList.get(i).occupied == false){\n roomNumberExist = true;\n //room is deleted\n HotelRoom.roomList.remove(i);\n System.out.println(\"The room number \" + delRoomNumber + \" is deleted\");\n System.out.println(\"-----------------------------\");\n //breaking loop to exit process\n DelRoomLoop = false;\n } \n\n }\n if(roomNumberExist == false) {\n //handling if user inputs incorrect room number\n System.out.println(\"The room number you entered is invalid\");\n System.out.println(\"-----------------------------\");\n }\n }\n catch (Exception InputMismatchException) {\n //handling if user input is not integer\n System.out.println(\"Please enter a number\");\n System.out.println(\"-----------------------------\");\n\n //Cleaning scanner\n RecInput.next();\n }\n }\n }\n }", "@Test\n\tpublic void testNumberOfDoorways() \n\t{\n\t\tint numDoors = 0;\n\t\tfor (int row=0; row<board.getNumRows(); row++)\n\t\t\tfor (int col=0; col<board.getNumColumns(); col++) {\n\t\t\t\tBoardCell cell = board.getCellAt(row, col);\n\t\t\t\tif (cell.isDoorway())\n\t\t\t\t\tnumDoors++;\n\t\t\t}\n\t\tAssert.assertEquals(14, numDoors);\n\t}", "public void ingresarDinero() {\n\t\tString codigo=\"\";\n\t\tint din=1;\n\t\tint saldo=0;\n\t\tint cambio=0;\n\t\t\n\t\tArrayList<Integer> dinero = new ArrayList<Integer>();\n\t\t\n\t\tSystem.out.println(\"digite el codigo del producto\");\n\t\tcodigo=leer.dato();\n\t\t\n\t\tif(cU.buscarProducto(codigo)!=null){\n\t\t\tproducto=cU.buscarProducto(codigo);\n\t\t\tSystem.out.println(\"el producto encontrado fue\"+producto);\n\t\t\n\t\t\n\t\twhile(din!=0){\n\t\t\t\n\t\t\tSystem.out.println(\"digite la denominacion o 0 si ya completo el dinero\");\n\t\t\tdin=leer.datoInt();\n\t\t\t\n\t\t\tif(din!=0){\n\t\t\t\tdinero.add(din);\n\t\t\t\tsaldo=saldo+din;\n\t\t\t}\n\t\t\tSystem.out.println(\"saldo\"+saldo);\n\t\t\t\n\t\t}\n\t\t\n\t\tcambio=cU.ingresarSaldo(dinero, codigo);\n\t\tif(cambio>=0){\n\t\tSystem.out.println(\"el valor del producto es: \"+producto.getValor());\n\t\tSystem.out.println(\"su saldo era de: \"+saldo);\n\t\tSystem.out.println(\"el cambio es: \"+cambio);\n\t\t}else{\n\t\t\tSystem.out.println(\"el valor del producto es: \"+producto.getValor());\n\t\t\tSystem.out.println(\"saldo\"+saldo);\n\t\t\tSystem.out.println(\"fondos insufucientes para comprar el producto\");\n\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"producto no encontrado\");\n\t\t}\n\t\tif(cambio==saldo){\n\t\t\tSystem.out.println(\"denominacion ingresada no valida\");\n\t\t}\n\t}", "private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }", "@Override\n public void run() {\n if (door1_tf) {\n door2_tf = false;\n door1button.setEnabled(false);\n door2button.setImageResource(R.drawable.closed_door);\n\n doorCountDown(door1button);\n\n Runnable doorDelay7 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n // Correct door was chosen (door 1)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door1button.setImageResource(R.drawable.car);\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 2)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d7 = new Handler();\n d7.postDelayed(doorDelay7, 3000);\n }\n // Player keeps choice\n else {\n doorCountDown(door2button);\n\n Runnable doorDelay8 = new Runnable() {\n @Override\n public void run() {\n int ran2 = random_number.nextInt(2) + 1;\n // Correct door was chosen (door 2)\n if (ran2 == 1) {\n //Play Win Sound\n mpWin.start();\n\n door2button.setImageResource(R.drawable.car);\n door1button.setImageResource(R.drawable.goat);\n door3button.setImageResource(R.drawable.goat);\n\n incrementWinCounter();\n }\n // Wrong door was chosen (door 1)\n else {\n //Play Loss Sound\n mpLoss.start();\n\n door3button.setImageResource(R.drawable.goat);\n door2button.setImageResource(R.drawable.goat);\n door1button.setImageResource(R.drawable.car);\n\n incrementLossCounter();\n }\n }\n };\n Handler d8 = new Handler();\n d8.postDelayed(doorDelay8, 3000);\n }\n }", "private void refreshRightDoors(){\n\n if (this.selectedTrain.getRightDoor() == 1){ this.rightDoorsOpenRadioButton.setSelected(true); }\n else if (this.selectedTrain.getRightDoor() == 0){ this.rightDoorsCloseRadioButton.setSelected(true); }\n else if (this.selectedTrain.getRightDoor() == -1) {this.rightDoorsFailureRadioButton.setSelected(true); }\n }", "public static void VerificarPar(){\n\t\tint numero;\n\t\tint resultado;\n\t\tString tomar;\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese un numero\");\n\t\tnumero=reader.nextInt();\n\t\tresultado=(numero%2);\n\t\tif(resultado==0){\n\t\t\tSystem.out.println(\"Numero Par: \"+(numero*2));\n\t\t}else{\n\t\t\tSystem.out.println(\"Numero Impar: \"+(numero*3));\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}", "public static void main(String args[]){\n\n EasyReader e = new EasyReader();\n \n System.out.println(\"Type in a number between 1 and 20\");\n int x = e.readInt(); // (int)(Math.random()*20+1);\n \n if (x<20 && x >1){\n int computer = 7;// (int)(Math.random()*20+1);\n \n System.out.println(\"The number the computer generated is \" + computer);\n if (x == computer)\n System.out.println(\"You've won $10!\");\n else if (computer - 2 == x || computer + 2 ==x || computer -1 == x || computer +1 == x)\n System.out.println(\"You've won $5!\");\n else \n System.out.println(\"You've won nothing and you lost.\");\n }\n else \n System.out.println(\"The number is outside the range.\");\n \n }" ]
[ "0.628878", "0.62249833", "0.587005", "0.5722781", "0.5718919", "0.5631259", "0.5540543", "0.54691833", "0.5440021", "0.54080415", "0.52408177", "0.5226583", "0.5184699", "0.5183347", "0.51771575", "0.5157085", "0.513537", "0.5111215", "0.5109864", "0.5089212", "0.5060797", "0.5025608", "0.5014207", "0.5008923", "0.49934363", "0.49845085", "0.49692532", "0.49690104", "0.49558553", "0.49521464", "0.49475926", "0.4945816", "0.4936302", "0.49323988", "0.49285412", "0.4927232", "0.49162766", "0.49074045", "0.48887616", "0.48862293", "0.48584616", "0.48569643", "0.4854834", "0.48370865", "0.48332167", "0.48288518", "0.4827131", "0.48256385", "0.48200998", "0.4817808", "0.48170337", "0.48129812", "0.481274", "0.48080775", "0.48047188", "0.47980487", "0.478341", "0.47748685", "0.4774766", "0.47721565", "0.47699362", "0.47598422", "0.4758051", "0.47578856", "0.47480917", "0.4742793", "0.4739573", "0.47388294", "0.47374588", "0.4735755", "0.47333455", "0.4732422", "0.4728512", "0.47274023", "0.47271007", "0.4726084", "0.47210258", "0.47144783", "0.47096226", "0.47077855", "0.47006252", "0.4698857", "0.46973553", "0.4697234", "0.46957582", "0.46880782", "0.46866176", "0.46861514", "0.4680247", "0.46761924", "0.46747673", "0.4674089", "0.46705857", "0.46702176", "0.4669796", "0.46685058", "0.46617708", "0.4661343", "0.4653021", "0.465263" ]
0.47456115
65
Override to provide custom model element description.
protected String getSelectionTitle() { return Messages.ModelElementSelectionPageMessage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected String getDescription() {\n return DESCRIPTION;\n }", "@Override\n\tpublic String getDescription();", "@Override\n public String getDescription() {\n return description;\n }", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "@Override\n public String getDescription() {\n return description;\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn description;\r\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn description;\n\t}", "@Override\n public String getDescription() {\n return descriptionText;\n }", "@Override\n public String getDescription() {\n return this.description;\n }", "@Override\n public String getDescription()\n {\n return m_description;\n }", "public abstract Element getDescription();", "@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}", "@Override\r\n\tpublic String getDescription() {\n\t\treturn \"\";\r\n\t}", "public String description(){\n return this.DESCRIPTION;\n }", "public abstract String description();", "public abstract String description();", "public String getDescription(){return description;}", "public String getDescription(){return description;}", "public String getDescription() { return description; }", "@Override\n public String getDescription() {\n return name;\n }", "public String getDescription(){ return description; }", "public String description();", "public String getDescription() {\n return description;\n }", "public String getDescription() {\r\n return Description; \r\n }", "public String getDescription(){\n return description;\n }", "public String getDescription(){\n return description;\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getDescription() {\n\t\treturn null;\r\n\t}", "public String getDescription() {\r\n return DESCRIPTION;\r\n }", "public String getDescription() {\n return description; \n }", "public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}", "public String getDescription() { \n\t\treturn getDescriptionElement().getValue();\n\t}", "@Override\n public String getDescription() {\n return getClass().getName();\n }", "public String getDescription() {\n return DESCRIPTION;\n }", "public String getDescription()\n {\n return description;\n }", "@AutoEscape\n\tpublic String getDescription();", "@AutoEscape\n\tpublic String getDescription();", "@AutoEscape\n\tpublic String getDescription();", "@AutoEscape\n\tpublic String getDescription();", "public String getDesc()\r\n {\r\n return description;\r\n }", "@Override\n public String toString() {\n return description;\n }", "@Override\n protected String getDescription() {\n return null;\n }", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "public abstract String getDescription();", "@Override\n\tpublic String getXMLDescription() {\n\t\treturn \"<node>\" + getDescription() + \"</node>\";\n\t}", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "protected String getDescription()\n {\n return description;\n }", "public CharSequence getDescription() {\n return description;\n }", "@Override\n\tpublic String getDescription() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getDescripcion() {\n\t\treturn model.getDescripcion();\n\t}", "public String getDescription() {\n return desc;\n }", "@JsonIgnore\n @Override\n public String getDescription()\n {\n return description;\n }", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription () {\n return description;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }", "public CharSequence getDescription() {\n return description;\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription() {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription()\n {\n return description;\n }" ]
[ "0.73426366", "0.73396444", "0.7312438", "0.729735", "0.7290467", "0.7254382", "0.7240116", "0.7218866", "0.72136194", "0.7186937", "0.71719897", "0.7104501", "0.7000913", "0.6971258", "0.695642", "0.695642", "0.694738", "0.694738", "0.6945396", "0.6930481", "0.6917609", "0.690501", "0.6901426", "0.68833464", "0.68298995", "0.68298995", "0.68169", "0.68169", "0.6808041", "0.6797573", "0.6797192", "0.6797192", "0.6791003", "0.67879415", "0.67854524", "0.67803377", "0.67803377", "0.67803377", "0.67803377", "0.677876", "0.6773677", "0.67662144", "0.67660666", "0.67660666", "0.67660666", "0.67660666", "0.67660666", "0.67660666", "0.67660666", "0.67660666", "0.6762249", "0.67594165", "0.67579246", "0.67429495", "0.67385215", "0.67385215", "0.67385215", "0.67385215", "0.67385215", "0.67385215", "0.67359877", "0.67335624", "0.6732604", "0.6727816", "0.67277324", "0.67277324", "0.67277324", "0.67249346", "0.671888", "0.6718687", "0.6718268", "0.6718268", "0.6718268", "0.6718268", "0.6718268", "0.6718268", "0.6718268", "0.6718268", "0.6718268", "0.6718268", "0.67164123", "0.67164123", "0.67164123", "0.67164123", "0.67164123", "0.67164123", "0.67164123", "0.67164123", "0.67164123", "0.6712665", "0.6712665", "0.6712665", "0.6712665", "0.6712665", "0.6712665", "0.6712665", "0.6712665", "0.6712665", "0.6712665", "0.6712665", "0.6712665" ]
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static SingleCardFragment newInstance() { SingleCardFragment fragment = new SingleCardFragment(); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public FragmentMy() {\n }", "public LogFragment() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public HeaderFragment() {}", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public PeersFragment() {\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public PersonDetailFragment() {\r\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.6646188", "0.66410166", "0.6640725", "0.6634425", "0.66188246", "0.66140765", "0.6608169", "0.66045964", "0.65977716", "0.6592119", "0.659137", "0.65910816", "0.65830594", "0.65786606", "0.6562876", "0.65607685", "0.6557126", "0.65513307", "0.65510213", "0.65431285", "0.6540448", "0.65336084", "0.6532555", "0.6528302", "0.6524409", "0.652328", "0.6523149", "0.6516528", "0.65049976", "0.6497274", "0.6497235", "0.64949715", "0.64944136", "0.6484968", "0.6484214", "0.64805835", "0.64784926", "0.64755154", "0.64710265", "0.6466466", "0.6457089", "0.645606", "0.6454554", "0.6452161", "0.64520335", "0.6450325", "0.64488834", "0.6446765", "0.64430225", "0.64430225", "0.64430225", "0.64420956", "0.6441306", "0.64411277", "0.6438451", "0.64345145", "0.64289486", "0.64287597", "0.6423755", "0.64193285", "0.6418699", "0.6414679", "0.6412867", "0.6402168", "0.6400724", "0.6395624", "0.6395109", "0.6391252", "0.63891554", "0.63835025", "0.63788056", "0.63751805", "0.63751805", "0.63751805", "0.6374796", "0.63653135", "0.6364529", "0.6360922", "0.63538784", "0.6351111", "0.635067" ]
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "public abstract void update(UIReader event);", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "@Override\n\tpublic void update(Event e) {\n\t}", "public abstract void onInvoked(CommandSender sender, String[] args);", "@Override\r\n public void updateUI() {\r\n }", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "public void updateUI(){}", "private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void updateObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "Event () {\n // Nothing to do here.\n }", "void onArgumentsChanged();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "void eventChanged();", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }", "@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n }", "public abstract void onCommand(MessageEvent context) throws Exception;", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "private void addParameterEventHandler(){\n\t\t\n\t\tgetParameterNameListBox().addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\tparameterAceEditor.clearAnnotations();\n\t\t\t\tparameterAceEditor.removeAllMarkers();\n\t\t\t\tparameterAceEditor.redisplay();\n\t\t\t\tSystem.out.println(\"In addParameterEventHandler on DoubleClick isPageDirty = \" + getIsPageDirty() + \" selectedIndex = \" + getParameterNameListBox().getSelectedIndex());\n\t\t\t\tsetIsDoubleClick(true);\n\t\t\t\tsetIsNavBarClick(false);\n\t\t\t\tif (getIsPageDirty()) {\n\t\t\t\t\tshowUnsavedChangesWarning();\n\t\t\t\t} else {\n\t\t\t\t\tint selectedIndex = getParameterNameListBox().getSelectedIndex();\n\t\t\t\t\tif (selectedIndex != -1) {\n\t\t\t\t\t\tfinal String selectedParamID = getParameterNameListBox().getValue(selectedIndex);\n\t\t\t\t\t\tcurrentSelectedParamerterObjId = selectedParamID;\n\t\t\t\t\t\tif(getParameterMap().get(selectedParamID) != null){\n\t\t\t\t\t\t\tgetParameterNameTxtArea().setText(getParameterMap().get(selectedParamID).getParameterName());\n\t\t\t\t\t\t\tgetParameterAceEditor().setText(getParameterMap().get(selectedParamID).getParameterLogic());\n\t\t\t\t\t\t\tSystem.out.println(\"In Parameter DoubleClickHandler, doing setText()\");\n\t\t\t\t\t\t\t//disable parameterName and Logic fields for Default Parameter\n\t\t\t\t\t\t\tboolean isReadOnly = getParameterMap().get(selectedParamID).isReadOnly();\n\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setTitle(\"Delete\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(MatContext.get().getMeasureLockService()\n\t\t\t\t\t\t\t\t\t.checkForEditPermission()){\n\t\t\t\t\t\t\t\tsetParameterWidgetReadOnly(!isReadOnly);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// load most recent used cql artifacts\n\t\t\t\t\t\t\tMatContext.get().getMeasureService().getUsedCQLArtifacts(MatContext.get().getCurrentMeasureId(), new AsyncCallback<GetUsedCQLArtifactsResult>() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\t\t\t\tWindow.alert(MatContext.get().getMessageDelegate().getGenericErrorMessage());\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(GetUsedCQLArtifactsResult result) {\n\t\t\t\t\t\t\t\t\tif(result.getUsedCQLParameters().contains(getParameterMap().get(selectedParamID).getParameterName())) {\n\t\t\t\t\t\t\t\t\t\tgetParameterButtonBar().getDeleteButton().setEnabled(false);\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tsuccessMessageAlert.clearAlert();\n\t\t\t\t\terrorMessageAlert.clearAlert();\n\t\t\t\t\twarningMessageAlert.clearAlert();\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void handle(Event event) {\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void actionPerformed(AnActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void ImageView(ActionEvent event) {\n\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "public void runInUi(ElexisEvent ev){}", "@Override\n public void delta() {\n \n }", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent ev) {\n }", "@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void update(Observable o, Object arg)\n {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "@Override\r\n public void processEvent(IAEvent e) {\n\r\n }" ]
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037", "0.59848183", "0.59776366", "0.59587413", "0.5940049", "0.5925668", "0.5925668", "0.59208333", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915737", "0.5915554", "0.5909643", "0.5895144", "0.58947057", "0.589277", "0.58885247", "0.58885247", "0.58885247", "0.58671176", "0.58671176", "0.58671176", "0.58636886", "0.5862447", "0.5862447", "0.58613557", "0.5855828", "0.5846504", "0.5846504", "0.5846504", "0.5846504", "0.5837475", "0.58366984", "0.5820788", "0.58068436", "0.58022934", "0.5772422", "0.57714665", "0.5770862", "0.5765655", "0.5763872", "0.57544947", "0.57542855", "0.57542855", "0.57450074", "0.57441026", "0.57441026", "0.57441026", "0.5741053", "0.574037", "0.5739314", "0.57367086", "0.57367086", "0.57367086", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57322264", "0.57235956", "0.57232994", "0.5721006", "0.571978", "0.571978", "0.57187414", "0.57177836", "0.57133436", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.57110935", "0.5707859", "0.5707546", "0.5704973", "0.57016516" ]
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name public void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public interface IFragmentView {\n public Activity getActivity();\n public void onItemClick(int position);\n}", "public interface OnFragmentInteractionListener {\n void onMainFragmentInteraction(String string);\n }", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n if (context instanceof RequestFragmentInterface) {\n mInterface = (RequestFragmentInterface) context;\n } else {\n throw new RuntimeException(context.toString()\n + \" must implement OnFragmentInteractionListener\");\n }\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onCallBellPressed(MessageReason reason);\n }", "void onFragmentInteraction();", "void onFragmentInteraction();", "void onFragmentInteraction();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n\n void onFragmentInteraction(String mId, String mProductName, String mItemRate, int minteger, int update);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onComidaSelected(int comidaId);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Qualification q);\n }", "public interface OnFragmentInteractionListener {\n void onReceiverAcceptRequest(int nextState, String requestId);\n }", "public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}", "public interface OnFragmentListener {\n\n void onAction(Intent intent);\n}", "public interface IBaseFragmentActivity {\n void onFragmentExit(BaseFragment fragment);\n\n void onFragmentStartLoading(BaseFragment fragment);\n\n void onFragmentFinishLoad(BaseFragment fragment);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String string);\n }", "void onFragmentInteraction(Object ref);", "public interface OnParametersFragmentInteractionListener {\n public void startTask();\n }", "public interface OnFragmentInteractionListener {\n // Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Parcelable selectedItem);\n }", "public interface FragmentInterface {\r\n void fragmentBecameVisible();\r\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(String key);\n }", "public interface OnFragmentInteractionListener {\n void newList();\n\n void searchList();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void pasarALista();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n\n /**\n * This interface's single method. The hosting Activity must implement this interface and\n * provide an implementation of this method so that this Fragment can communicate with the\n * Activity.\n *\n * @param spotId\n */\n// void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(int spotId);\n// void onFragmentInteraction(LatLng spotPosition);\n\n }", "public interface MainGameActivityCallBacks {\n public void onMsgFromFragmentToMainGame(String sender, String strValue);\n}", "public interface IFragment {\n void onFragmentRefresh();\n\n void onMenuClick();\n}", "public interface FragmentInterface {\n\n void onCreate();\n\n void initLayout();\n\n void updateLayout();\n\n void sendInitialRequest();\n}", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(String accessToken, String network);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(View v);\n }", "public interface OnFragmentInteractionListener {\n void swapFragments(SetupActivity.SetupActivityFragmentType type);\n\n void addServer(String name, String ipAddress, String port);\n }", "public interface OnFragmentInteractionListener {\n\t\tvoid restUp(IGameState gameState);\n\t\tvoid restartGame();\n\t}", "public interface OnFragmentInteractionListener\n {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface PersonalFragmentView extends BaseMvpView {\n\n}", "public interface OnFragmentInteractionListener {\n void onFinishCreatingRequest();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void onFragmentInteraction(String id);\n }", "void onFragmentInteraction(View v);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList<Recepie> recepieList);\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(String id);\n }", "void onFragmentInteractionMain();", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n public void showRestaurantDetail(Map<String, Object> objectMap);\n\n public void showAddRestaurantFragment(String location);\n }", "public interface FragmentNavigator {\n\n void SwitchFragment(Fragment fragment);\n}", "public interface FragmentModellnt {\n void FragmentM(OnFinishListener onFinishListener,String dataId);\n}", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n //void onFragmentInteraction(Uri uri);\n }", "void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction(ArrayList naleznosci, String KLUCZ);\n }", "public interface OnFragmentInteractionListener {\r\n // TODO: Update argument type and name\r\n void onEditFragmentInteraction(Student student);\r\n }", "public interface OnFragmentInteractionListener {\n void onStartFragmentStarted();\n\n void onStartFragmentStartTracking();\n\n void onStartFragmentStopTracking();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n Long onFragmentInteraction();\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n void onFragmentInteraction(String id);\n}", "public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public void onFragmentInteraction(String id);", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onSocialLoginInteraction();\n }", "public interface OnFragmentInteractionListener {\n /**\n * On fragment interaction.\n *\n * @param uri the uri\n */\n// TODO: Update argument type and name\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentListener {\n void onClick(Fragment fragment);\n}", "public interface OnFragmentInteractionListener {\n void playGame(Uri location);\n }", "public interface LoginFragmentListener {\n public void OnRegisterClicked();\n public void OnLoginClicked(String User, String Pass);\n}", "public interface MoveFragment {\n\n\n public void moveFragment(Fragment selectedFragment);\n\n}", "public interface ChangeFragmentListener {\n void changeFragment();\n}", "public interface OnProductItemFragmentInteraction{\r\n public void itemSelected(Producto product);\r\n }", "public interface FragmentInterface {\n public void fragmentResult(Fragment fragment, String title);\n}", "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n //this registers this fragment to recieve any EventBus\n EventBus.getDefault().register(this);\n }", "void onFragmentInteraction(int position);", "public interface AddFarmFragmentView extends BaseView {\n\n\n}", "void OpenFragmentInteraction();", "public interface OnFragmentInteractionListener {\n\t\t// TODO: Update argument type and name\n\t\tpublic void onFragmentInteraction(Uri uri);\n\t}", "public interface FragmentDataObserver {\n void getDataFromActivity(String data);\n\n}", "public interface OnFragInteractionListener {\n\n // replace top fragment with this fragment\n interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }\n\n // interface for WifiPresenterFragment\n interface OnWifiScanFragInteractionListener {\n void onGetDataAfterScanWifi(ArrayList<WifiLocationModel> list);\n void onAllowToSaveWifiHotspotToDb(String ssid, String pass, String encryption, String bssid);\n }\n\n // interface for HistoryPresenterFragment\n interface OnHistoryFragInteractionListener {\n // get wifi info\n void onGetWifiHistoryCursor(Cursor cursor);\n // get mobile network generation\n void onGetMobileHistoryCursor(Cursor cursor);\n // get wifi state and date\n void onGetWifiStateAndDateCursor(Cursor cursor);\n }\n\n interface OnMapFragInteractionListerer {\n void onGetWifiLocationCursor(Cursor cursor);\n }\n}", "public interface PesonageFragmentView extends MvpView {\n\n}", "public interface OnUsersFragmentInteractionListener {\n void onListFragmentInteraction(User item);\n }", "public interface MainScreeInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteractionMain();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onClickNextTurn();\n }", "public interface OnFragmentInteractionListener {\n // TODO: Update argument type and name\n void onFragmentInteraction();\n\n void changeBottomNavSelection(int menuItem);\n }", "public interface OnFragmentInteractionListener {\n void onFragmentInteraction(Uri uri);\n}", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n public void onFragmentInteraction(Uri uri);\n }", "public interface OnFragmentInteractionListener {\n void onSignoutClicked();\n\n void onExtraScopeRequested();\n }", "public interface OnListFragmentInteractionListener {\n void onListFragmentInteraction(Note note);\n}", "interface OnMainFragInteractionListener {\n void onWifiFragReplace();\n void onHistoryFragReplace();\n void onHistoryWithOsmMapFragReplace();\n void onMainFragReplace();\n }" ]
[ "0.7323901", "0.720826", "0.71346456", "0.712432", "0.71223646", "0.7014406", "0.6975986", "0.6975986", "0.6975986", "0.6973731", "0.69676983", "0.69656146", "0.6960717", "0.69542384", "0.6943149", "0.6933716", "0.69288176", "0.69264686", "0.6922715", "0.6909953", "0.6902666", "0.68968815", "0.6894074", "0.68821484", "0.68811965", "0.6875028", "0.686441", "0.686059", "0.68592566", "0.68580437", "0.68551767", "0.6844014", "0.6839444", "0.68299013", "0.681755", "0.68166876", "0.680979", "0.6785827", "0.6769247", "0.6769247", "0.6769247", "0.6769247", "0.6769247", "0.6769247", "0.6769247", "0.6769247", "0.6769247", "0.6768809", "0.6765993", "0.67613", "0.675552", "0.6753091", "0.6698583", "0.66805714", "0.6673642", "0.6670421", "0.66695374", "0.66619104", "0.6660703", "0.66551346", "0.665202", "0.6643579", "0.6643505", "0.6643505", "0.6643505", "0.6643505", "0.6643505", "0.6643505", "0.6643505", "0.6643505", "0.6643505", "0.6643505", "0.6643505", "0.6638241", "0.66361165", "0.66311413", "0.662524", "0.66250277", "0.6618358", "0.6609611", "0.66091406", "0.6608578", "0.66044116", "0.6596916", "0.65967715", "0.65872806", "0.6572124", "0.6567792", "0.65597993", "0.65597713", "0.6555063", "0.6550386", "0.65484476", "0.65428716", "0.6538933", "0.65341264", "0.65341264", "0.65341264", "0.6519295", "0.65169215", "0.65164673" ]
0.0
-1
TODO: Update argument type and name
public void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "Object[] getArguments();", "Object[] getArguments();", "String getArguments();", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "ArgList createArgList();", "public Object[] getArguments() { return args;}", "@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }", "@Override\n protected String getName() {return _parms.name;}", "private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }", "uicargs createuicargs();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "public getType_args(getType_args other) {\n }", "Object[] args();", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "@Test\n void getArgString() {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "int getArgIndex();", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "@Override\n public Object[] getArguments() {\n return null;\n }", "public login_1_argument() {\n }", "Optional<String[]> arguments();", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}", "protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "void setArguments(String arguments);", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void visitArgument(Argument argument);", "public Thaw_args(Thaw_args other) {\r\n }", "@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "public abstract ValidationResults validArguments(String[] arguments);", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public String getArgumentString() {\n\t\treturn null;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}", "void onArgumentsChanged();", "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "MyArg(int value){\n this.value = value;\n }", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }", "public Clear_args(Clear_args other) {\r\n }", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}", "@Override\n public int getArgent() {\n return _argent;\n }", "private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }", "private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}", "PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }", "public String argTypes() {\n return \"I\";//NOI18N\n }", "public Type getArgumentDirection() {\n return direction;\n }", "public static void main(String arg[]) {\n\n }", "godot.wire.Wire.Value getArgs(int index);", "@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }", "private Argument(Builder builder) {\n super(builder);\n }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "@Override\n public void execute(String[] args) {\n\n }", "@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}", "UUID createArgument(ArgumentCreateRequest request);", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "protected abstract void parseArgs() throws IOException;" ]
[ "0.71620077", "0.69440025", "0.6711487", "0.6510869", "0.6395964", "0.637318", "0.6347982", "0.63172585", "0.626037", "0.6206126", "0.6206126", "0.6204428", "0.6196331", "0.61786395", "0.617723", "0.61509335", "0.614605", "0.61263025", "0.6074019", "0.6056265", "0.59894925", "0.59894925", "0.5982372", "0.59784126", "0.5976578", "0.59514225", "0.5946062", "0.5945854", "0.59451884", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.59345317", "0.5907128", "0.58901805", "0.58811074", "0.5870056", "0.5866255", "0.5857818", "0.58502215", "0.58372456", "0.58065504", "0.5803388", "0.5794962", "0.57822233", "0.57652336", "0.57551724", "0.5747548", "0.5740826", "0.5729332", "0.57288444", "0.5715425", "0.57104665", "0.5696492", "0.5675817", "0.56724477", "0.5665729", "0.5661573", "0.5659701", "0.5652922", "0.5648713", "0.564161", "0.56359", "0.5633436", "0.56217945", "0.5620876", "0.5615735", "0.5612703", "0.5604706", "0.5604706", "0.56031877", "0.56012666", "0.5597895", "0.5589867", "0.5587258", "0.5582892", "0.5581103", "0.5567564", "0.55617505", "0.55564237", "0.55520123", "0.55498207", "0.5538131", "0.5536699", "0.5526077", "0.55113447", "0.5509267", "0.550175" ]
0.0
-1
Created by mezsolt on 2018.04.21..
@Service public interface ClientService { List<ClientEntity> getClients(); void addClient(ClientEntity clientEntity); List<ClientEntity> getClientsById(String id); boolean ipAllowed(String ip,LocalDateTime date); List<ClientEntity> deleteClient(String ip,String date); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "private void init() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "public final void mo51373a() {\n }", "@Override\n void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "private void m50366E() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo4359a() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void gored() {\n\t\t\n\t}", "private void init() {\n\n\n\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void initialize() { \n }", "private void init() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo6081a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n public void init() {\n }", "@Override\n public int getOrder() {\n return 4;\n }" ]
[ "0.5746575", "0.56523967", "0.5525595", "0.5519928", "0.55117065", "0.5489063", "0.5464676", "0.5442488", "0.5438564", "0.5438564", "0.5402104", "0.5341821", "0.5337196", "0.5327518", "0.53260094", "0.5325272", "0.5324493", "0.5320848", "0.5317834", "0.53154176", "0.53146416", "0.528731", "0.52778816", "0.52770185", "0.5271979", "0.5270203", "0.52661234", "0.52661234", "0.52661234", "0.52661234", "0.52661234", "0.5258844", "0.52547467", "0.52489847", "0.5230444", "0.5230444", "0.5230444", "0.5230444", "0.5230444", "0.5230444", "0.52252924", "0.51867557", "0.5184345", "0.5184345", "0.5184345", "0.5184116", "0.5173114", "0.51674014", "0.5163246", "0.5163246", "0.5163002", "0.5163002", "0.5163002", "0.51625025", "0.51618016", "0.51598805", "0.51598805", "0.51495385", "0.5141566", "0.5141566", "0.5137106", "0.5137106", "0.5137106", "0.51359034", "0.5126405", "0.51220286", "0.5121887", "0.5120933", "0.51160777", "0.51070756", "0.50904274", "0.5080846", "0.5075927", "0.50724256", "0.5071161", "0.50674", "0.50673133", "0.50670373", "0.50662655", "0.5058362", "0.5057244", "0.5042949", "0.5038871", "0.50332475", "0.5018481", "0.50157344", "0.50157344", "0.50157344", "0.50157344", "0.50157344", "0.50157344", "0.50157344", "0.500727", "0.50065154", "0.5000992", "0.49975348", "0.49910256", "0.49903426", "0.49896598", "0.49859437", "0.49808818" ]
0.0
-1
get the dijikstra hop
private List<routerNode> getPathVertexList(routerNode beginNode, routerNode endNode) { Transformer<routerLink, Integer> wtTransformer; // transformer for getting edge weight wtTransformer = new Transformer<routerLink, Integer>() { public Integer transform(routerLink link) { return link.getWeight(); } }; List<routerNode> vlist; DijkstraShortestPath<routerNode, routerLink> DSPath = new DijkstraShortestPath<routerNode, routerLink>(gGraph, wtTransformer); // get the shortest path in the form of edge list List<routerLink> elist = DSPath.getPath(beginNode, endNode); // get the node list form the shortest path Iterator<routerLink> ebIter = elist.iterator(); vlist = new ArrayList<routerNode>(elist.size() + 1); vlist.add(0, beginNode); for(int i=0; i<elist.size(); i++){ routerLink aLink = ebIter.next(); // get the nodes corresponding to the edge Pair<routerNode> endpoints = gGraph.getEndpoints(aLink); routerNode V1 = endpoints.getFirst(); routerNode V2 = endpoints.getSecond(); if(vlist.get(i) == V1) vlist.add(i+1, V2); else vlist.add(i+1, V1); } return vlist; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getDestination();", "public int getPreviousHop() {\n return previousHop;\n }", "public V getDestination() {\r\n\r\n\t\tV result = null;\r\n\t\tif ((counter <= links.size()) && (counter > 0)) {\r\n\t\t\tresult = succNodes.get(counter - 1);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public void setHop(int hopID){\n hop = hopID;\n }", "public static int offset_hop() {\n return (48 / 8);\n }", "public short get_hop() {\n return (short)getUIntElement(offsetBits_hop(), 8);\n }", "private ListNode<E> hop(int i) {\n\t\tListNode<E> current = this.head;\n\t\tfor (int j = 0; j < i; j++) {\n\t\t\tcurrent = current.next;\n\t\t}\n\n\t\treturn current;\n\t}", "public Address getNextHop()\n {\n return (Address)route.get(getHopCount()+1);\n }", "public IpAddress nextHop() {\n return nextHop;\n }", "public int getHopSize()\n {\n return hopSize;\n }", "public InetAddress getNextHop() {\n return nextHop;\n }", "@Override\r\n\tpublic Graph getGrph() {\n\t\tList<Routes> routeList = storeRouteRepos();\r\n\t\tGraph.Edge[] GRAPH = new Graph.Edge[routeList.size()];\r\n\t\tRoutes route = new Routes();\r\n\r\n\t\tfor (int i = 0; i <= routeList.size() - 1; i++) {\r\n\t\t\troute = routeList.get(i);\r\n\t\t\tif ((route.getPlanetOrigin() != null) && (route.getPlanetDestination() != null)) {\r\n\t\t\t\tGRAPH[i] = new Graph.Edge(route.getPlanetOrigin(), route.getPlanetDestination(), route.getDistance());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tGraph g = new Graph(GRAPH);\r\n\t\t// g.dijkstra(START);\r\n\t\treturn g;\r\n\r\n\t}", "public List<Node> getShortestPathToDestination(Node destination) {\n List<Node> path = new ArrayList<Node>();\n\n\n\n for (Node node = destination; node != null; node = node.previous){\n Log.i(\"bbb\", \"get path \"+node._waypointName);\n path.add(node);\n }\n\n // reverse path to get correct order\n Collections.reverse(path);\n return path;\n }", "java.lang.String getNextHopRegion();", "public List<GeographicPoint> dijkstra(GeographicPoint start, GeographicPoint goal) {\n\t\t// Dummy variable for calling the search algorithms\n\t\t// You do not need to change this method.\n Consumer<GeographicPoint> temp = (x) -> {};\n return dijkstra(start, goal, temp);\n\t}", "public IPv4Address nextHop(IPv4Address ip){\n\t\tIterator<RouteEntry> it = routeTable.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tRouteEntry r = it.next();\n\t\t\tSubnetUtils.SubnetInfo si = new SubnetUtils(r.dstNet.toString()).getInfo();\n\t\t\tif(si.isInRange(ip.toString()))\n\t\t\t\treturn r.nextHop;\n\t\t}\n\t\treturn null;\n\t}", "int getHopCount() {\n return hopCount;\n }", "public List<node_info> shortestPath(int src, int dest);", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tthis.shortestPathDist(src, dest);\n\t\tif(this.GA.getNode(src).getWeight() == Integer.MAX_VALUE || this.GA.getNode(dest).getWeight() == Integer.MAX_VALUE){\n\t\t\tSystem.out.print(\"There is not a path between the nodes.\");\n\t\t\treturn null;\n\t\t}\n\t\tgraph copied = this.copy();\n\t\ttransPose(copied);\n\t\tnode_data first = copied.getNode(dest);\n\t\tans.add(first);\n\t\twhile (first.getKey() != src) {\n\t\t\tCollection<edge_data> temp = copied.getE(first.getKey());\n\t\t\tdouble check= first.getWeight();\n\t\t\tif(temp!=null) {\n\t\t\t\tfor (edge_data edge : temp) {\n\t\t\t\t\tif (copied.getNode(edge.getDest()).getWeight() + edge.getWeight() == check) {\n\t\t\t\t\t\tfirst = copied.getNode(edge.getDest());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tans.add(first);\n\t\t}\n\t\tList<node_data> ans2 = new ArrayList<>();\n\t\tfor (int i = ans.size()-1;i>=0;i--){\n\t\t\tans2.add(ans.get(i));\n\t\t}\n\t\treturn ans2;\n\t}", "public Directions getDirectionsOfHits() {\n\t\tList<Coordinate> woundPositions = getWoundPositions();\n\t\tif (woundPositions.get(0).getxPosition() == woundPositions.get(1).getxPosition())\n\t\t\treturn Directions.NORTH;\n\t\telse\n\t\t\treturn Directions.WEST;\n\t}", "private static int getDestination(int startStation, List<Integer> path) {\n\t\t\n\t\tint curStation = startStation;\n\t\tint[] availableLines = subway[curStation];\n\t\tint pathListIndx = 0;\n\t\t\n\t\tMyCustomKey potential = new MyCustomKey(startStation, path.subList(0, path.size()-1), closed);\n\t\tif(cache.containsKey(potential)) {\n\t\t\tcurStation = cache.get(potential);\n\t\t\tavailableLines = subway[curStation];\n\t\t\tpathListIndx = path.size() - 1;\n\t\t}\n\t\t\n\t\tfor(int indx = pathListIndx ; indx < path.size() ; indx++) {\n\t\t\tint nextLine = path.get(indx);\n\t\t\tcurStation = goToNextStation(curStation, availableLines, nextLine);\n\t\t\tavailableLines = subway[curStation];\n\t\t}\n\t\t\n\t\tMyCustomKey newKey = new MyCustomKey(startStation, Collections.unmodifiableList(path), closed);\n\t\tcache.put(newKey, curStation);\n\t\treturn curStation;\n\t}", "private int shortestDistance(Vertex dest) {\n Integer d = distance.get(dest);\n if (d==null)\n return Integer.MAX_VALUE;\n return d;\n }", "public List<Node> computeDijkstraShortestPath(Node source, Node destination) {\n\n source.minDistance = 0.;\n PriorityQueue<Node> nodeQueue = new PriorityQueue<Node>();\n nodeQueue.add(source);\n\n int destinationGroup = destination._groupID;\n\n while (!nodeQueue.isEmpty()) {\n Node v = nodeQueue.poll();\n\n Log.i(\"bbb\", \"In dijsk node name \"+ v._waypointName);\n //Stop searching when reach the destination node\n\n\n if(destinationGroup!=0){\n\n if(v._groupID==destinationGroup){\n destination = navigationGraph.get(navigationGraph.size()-1).nodesInSubgraph.get(v._waypointID);\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n break;\n }\n\n }\n\n if (v._waypointID.equals(destination._waypointID))\n break;\n\n\n // Visit each edge that is adjacent to v\n for (Edge e : v._edges) {\n Node a = e.target;\n Log.i(\"bbb\", \"node a \"+a._waypointName);\n double weight = e.weight;\n double distanceThroughU = v.minDistance + weight;\n if (distanceThroughU < a.minDistance) {\n nodeQueue.remove(a);\n a.minDistance = distanceThroughU;\n a.previous = v;\n Log.i(\"bbb\", \"set previous\");\n nodeQueue.add(a);\n }\n }\n }\n\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n return getShortestPathToDestination(destination);\n }", "public Vertex getDestination() {\n return destination;\n }", "public double shortestPathDist(int src, int dest);", "@Override\n public List<node_data> shortestPath(int src, int dest) {\n reset();\n for (node_data node : G.getV()) {\n node.setWeight(Double.POSITIVE_INFINITY);\n }\n\n DWGraph_DS.Node currentNode = (DWGraph_DS.Node) G.getNode(src);\n currentNode.setWeight(0);\n PriorityQueue<node_data> unvisitedNodes = new PriorityQueue(G.nodeSize(), weightComperator);\n unvisitedNodes.addAll(G.getV());\n HashMap<Integer, node_data> parent = new HashMap<>();\n parent.put(src, null);\n\n while (currentNode.getWeight() != Double.POSITIVE_INFINITY) {\n if (G.getNode(dest).getTag() == 1) {\n break;\n }\n for (edge_data edge : G.getE(currentNode.getKey())) {\n DWGraph_DS.Node neighbor = (DWGraph_DS.Node) G.getNode(edge.getDest());\n double tmpWeight = currentNode.getWeight() + edge.getWeight();\n if (tmpWeight < neighbor.getWeight()) {\n neighbor.setWeight(tmpWeight);\n unvisitedNodes.remove(neighbor);\n unvisitedNodes.add(neighbor);\n parent.put(neighbor.getKey(), currentNode);\n }\n }\n currentNode.setTag(1);\n if(currentNode.getKey()==dest) break;\n unvisitedNodes.remove(currentNode);\n currentNode = (DWGraph_DS.Node) unvisitedNodes.poll();\n }\n /*\n Rebuild the path list\n */\n if (!parent.keySet().contains(dest)) return null;\n List<node_data> pathList = new ArrayList<>();\n currentNode = (DWGraph_DS.Node) G.getNode(dest);\n while (parent.get(currentNode.getKey()) != null) {\n pathList.add(currentNode);\n currentNode = (DWGraph_DS.Node) parent.get(currentNode.getKey());\n }\n Collections.reverse(pathList);\n return pathList;\n }", "public Location to_the(Direction d) {\n return destinations.get(d);\n }", "@Override\n public List<node_info> shortestPath(int src, int dest) {\n int counter=0;//counter for index of listPath\n List<node_info> listPath=new ArrayList<node_info>();//The reverse list that is returned\n List<node_info> listResult=new ArrayList<node_info>();//the returned list\n if(!DijkstraHelp(src,dest)) return null;//if there is no path from src to dest\n if(src==dest) {\n listPath.add(this.ga.getNode(src));\n return listPath;\n }\n //the other case:\n node_info d=this.ga.getNode(dest);\n listPath.add(counter,d);//insert the dest in order to go from destination to source\n //counter++;\n weighted_graph gCopy=copy();\n Iterator<node_info> it=gCopy.getV().iterator();//run on the whole graph\n while(it.hasNext()){\n if(listPath.get(counter).getKey()==src) break;//if we finished\n if(gCopy.getV(listPath.get(counter).getKey()).contains(it.next())) {//remove the nodes that we were already checked if\n //they need to be insert to listPath\n continue;\n }\n Iterator<node_info> currentIt=gCopy.getV(listPath.get(counter).getKey()).iterator();//iterator on the ni-list of the\n //last node were insert to the listPath\n if(currentIt!=null) {\n node_info min=null;\n while (currentIt.hasNext()){\n node_info currentLoop=currentIt.next();\n if(currentLoop.getTag()+gCopy.getEdge(listPath.get(counter).getKey(),currentLoop.getKey())==\n listPath.get(counter).getTag()){//check if this is the node that appropriate to the shortest path\n min=currentLoop;\n }\n }\n listPath.add(min);//insert to listPath\n counter++;\n }\n }\n for(int i=listPath.size()-1;i>=0;i--){\n listResult.add(listPath.size()-i-1,listPath.get(i));//reverse the list\n }\n return listResult;\n }", "public int[] djekstra(Router root, Router destination){\n //if router and destination same\n if (root.getID() == destination.getID()){\n int[] result = new int[2];\n result[0] = root.getID();\n result[1] = 0;\n hops.add(0);\n return result;\n }\n\n //Storing shortest path currently known\n int[] shortestPath = new int[size];\n //Storing the weights of the current router's connection to neighbors\n int[] currentNeighborConnectionWeight = new int[size];\n\n //First set all of the positions to 9999 (pseudo infinity)\n for (int i = 0; i < shortestPath.length;i++){\n shortestPath[i] = 9999;\n }\n\n // Set the distance to itself as 0, mark as visited\n shortestPath[root.getID()-1] = 0;\n root.visit();\n\n //For each connection the root has, set the shortestPath available to the weight to the neighbor\n for (Connection c : root.getConnections()){\n shortestPath[c.getDestination().getID()-1] = c.getWeight();\n }\n\n //Find the smallest router to start the algorithm\n //ID of smallest router, start the value with the first available option\n int smallestRouterID = 0;\n int smallestRouterWeight = 9999;\n //Router used for iterating\n Router current = null;\n //Storing path length\n int totalPathLength = 0;\n\n\n //Find the shortest available path link to start with\n for (int k = 0; k < shortestPath.length; k++){\n if ((shortestPath[k] < smallestRouterWeight) && (shortestPath[k] != 0)){\n // Check to see if dead end\n if (routers.get(k).getConnections().size() > 1){\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n } else if (routers.get(k).getID() == destination.getID()){ //edge case\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n }\n }\n }\n // add its weight\n totalPathLength += smallestRouterWeight;\n\n //This is where we start our first step\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n //System.out.println(\"First step--> Router:\" + smallestRouterID + \" Weight to router from root:\" + smallestRouterWeight);\n //Now we loop\n Router firstRouter = current;\n boolean done = false;\n while (done == false){\n //Break case 1, we found the router\n if (current.getID() == destination.getID()){\n // check if root has available connections\n\n // set current to root and store totalPathLength to new variable && store hops in new array ArrayList\n // compare totals and store the one that's lower ++ hops list too\n // could we recursively call djekstra?\n done = true;\n // System.out.println(\"Router found\");\n break;\n }\n\n //Break case 2, all of the connections have been visited already\n boolean destinationAvailable = hasAvailableConnections(current);\n if (destinationAvailable == false){\n if(hasAvailableConnections(root)){\n current = root;\n hops.clear();\n totalPathLength= 0;\n } else {\n done = true;\n // System.out.println(\"v-- No more routers available\");\n break;\n }\n }\n\n //set all to 9999 to assume we cant see\n for (int a = 0; a < currentNeighborConnectionWeight.length; a++){\n currentNeighborConnectionWeight[a] = 9999;\n }\n\n //Recalculate for new path lengths\n for (Connection c : current.getConnections()){\n //Only calculate path for routers that havent been visited\n if (c.getDestination().getVisit() == false){\n currentNeighborConnectionWeight[c.getDestination().getID()-1] = c.getWeight();\n }\n }\n\n //Find the next step to take\n //Find the shortest available path link to start with\n smallestRouterID = 0;\n smallestRouterWeight = 9999;\n for (int b = 0; b < currentNeighborConnectionWeight.length; b++){\n if ((currentNeighborConnectionWeight[b] < smallestRouterWeight)){\n // id is pos+1\n smallestRouterID = b + 1;\n smallestRouterWeight = currentNeighborConnectionWeight[b];\n }\n }\n\n // add its weight\n totalPathLength += smallestRouterWeight;\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n // System.out.println(\"Next shortest path--> Router: \" + current.getID() + \" Length from root:\" + totalPathLength);\n\n\n } // <--------------------------------------------------------------------------------End of while loop\n\n // returns <lasthop, pathcost>\n int[] result = new int[2];\n //Check and see if the path length is smaller then the original\n if (totalPathLength <= shortestPath[destination.getID()-1]){\n //System.out.println(\"Case new \" + firstRouter.getID());\n shortestPath[destination.getID()-1] = totalPathLength;\n result[0] = firstRouter.getID();\n result[1] = shortestPath[destination.getID()-1];\n } else {\n //root was shorter\n //System.out.println(\"Case old \" + root.getID());\n result[0] = root.getID();\n result[1] = shortestPath[destination.getID()-1];\n }\n // System.out.println(\"Next hop:\" + current.getID() + \" Total Distance:\" + shortestPath[destination.getID()-1]);\n\n //reset the visited list\n for (Router r: routers){\n r.unvisit();\n }\n return result;\n }", "@Override\n public double shortestPathDist(int src, int dest) {\n if(shortestPath(src,dest)==null) return -1;\n double sum=0;\n return shortestPath(src,dest).get(shortestPath(src,dest).size()-1).getTag();\n }", "private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }", "public Trip getShortestRoute(Station src, Station dst)\n {\n if (src.equals(dst)) return new Trip(); // no self loops\n\n String key = src.getId() + \"-\" + dst.getId();\n\n if (tripDict.containsKey(key))\n {\n TreeSet<Trip> trips = (TreeSet<Trip>) this.tripDict.get(key);\n\n return trips.first();\n }\n\n return null;\n }", "private String getShortestPath(final Pair<Long, Long> src, final Pair<Long, Long> dst,\n final String passCode, final boolean first) {\n final var queue = new LinkedList<Node>();\n final var seen = new HashSet<Node>();\n //start from source\n final var srcNode = new Node( src, \"\" );\n queue.add( srcNode );\n seen.add( srcNode );\n\n int max = 0;\n while ( !queue.isEmpty() ) {\n final var curr = queue.remove();\n if ( curr.pos.equals( dst ) ) {\n if ( first ) {\n //shortest path\n return curr.path;\n } else {\n //store path length\n max = curr.path.length();\n //stop this path\n }\n } else {\n for ( final var neighbour : getNeighbours( curr, passCode ) ) {\n //unseen neighbour\n if ( seen.add( neighbour ) ) {\n //add to the queue\n queue.add( neighbour );\n }\n }\n }\n }\n\n return itoa( max );\n }", "public Tunnel getTunnel();", "@Override\r\n\tpublic E getVertexAtGivenDistance(E src, int distance) {\r\n\t\treturn graphForWarshall.getVertexAtGivenDistance(src, distance);\r\n\t}", "@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}", "Destination getDestination();", "public com.hps.july.trailcom.beans.HopAccessBean getHopid() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.trailcom.beans.Hop localEJBRef = ejbRef().getHopid();\n if ( localEJBRef != null )\n return new com.hps.july.trailcom.beans.HopAccessBean(localEJBRef);\n else\n return null;\n }", "private int relayPayloadDestination(OverlayNodeSendsData event) {\n\t\tint destination = event.getDestID();\n\t\tif (nodesToSendTo.getConnections().containsKey(destination))\n\t\t\treturn destination;\n\t\telse { // determine which routing entry to send it to\n\t\t\tint bestHopLen = 128;\n\t\t\tint bestHop = 0;\n\t\t\tboolean increasedHopDist = false;\n\t\t\tboolean finalFlag = false;\n\t\t\tif (event.getDestID() < myAssignedID)\n\t\t\t\tdestination += 128; // previously 127\n\t\t\tfor (Map.Entry<Integer, TCPConnection> entry : nodesToSendTo.getConnections()\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tint possibleHop = entry.getKey();\n\t\t\t\tif (possibleHop < myAssignedID) {\n\t\t\t\t\tpossibleHop += 128;\n\t\t\t\t\tincreasedHopDist = true;\n\t\t\t\t} else {\n\t\t\t\t\tincreasedHopDist = false;\n\t\t\t\t}\n\t\t\t\tif (possibleHop < destination\n\t\t\t\t\t\t&& ((destination - possibleHop) < bestHopLen)) {\n\t\t\t\t\tbestHopLen = destination - possibleHop;\n\t\t\t\t\tbestHop = possibleHop;\n\t\t\t\t\tfinalFlag = increasedHopDist;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (finalFlag)\n\t\t\t\tbestHop -= 128;\n\t\t\treturn bestHop;\n\t\t}\n\t}", "public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}", "public HashMap<String, DjikstraPair> djikstra(String src) {\r\n\t\tHashMap<String, DjikstraPair> map = new HashMap<>();\r\n\t\tGenericHeap<DjikstraPair> heap = new GenericHeap<>(DjikstraPair.Ctor);\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tDjikstraPair pair = new DjikstraPair(vname, \"\", Integer.MAX_VALUE);\r\n\r\n\t\t\tif (vname.equals(src)) {\r\n\t\t\t\tpair.csf = 0;\r\n\t\t\t\tpair.psf = vname;\r\n\t\t\t}\r\n\r\n\t\t\tmap.put(vname, pair);\r\n\t\t\theap.add(pair);\r\n\t\t}\r\n\r\n\t\twhile (heap.size() != 0) {\r\n\t\t\tDjikstraPair rp = heap.removeHP();\r\n\t\t\t\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vces.get(rp.vname).nbrs.keySet());\r\n\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\tDjikstraPair np = map.get(nbrname);\r\n\r\n\t\t\t\tint ocfn = np.csf;\r\n\t\t\t\tint ncfn = rp.csf + vces.get(rp.vname).nbrs.get(np.vname);\r\n\r\n\t\t\t\tif (ncfn < ocfn) {\r\n\t\t\t\t\tnp.csf = ncfn;\r\n\t\t\t\t\tnp.psf = rp.psf + np.vname;\r\n\r\n\t\t\t\t\theap.updatePriority(np);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn map;\r\n\t}", "public int getDestination() {\r\n\t\treturn destination;\r\n\t}", "public int getHopCount()\r\n/* */ {\r\n/* 168 */ return this.nHops;\r\n/* */ }", "public static List<Cell> dijkstra(Cell origin, Cell destination, Board board){\n\n // TODO : see http://rosettacode.org/wiki/Dijkstra%27s_algorithm#Java\n\n return null;\n }", "GraphNode firstEndpoint() \n\t{\n\t\treturn this.firstEndpoint;\n\t\t\n\t}", "@Override\r\n\tpublic List<Integer> getShortestPath(int source, int destination, GraphStructure graph) {\r\n\t\tshortestPathList = new ArrayList<Integer>();\r\n\t\tisVisited = new boolean[graph.getNumberOfVertices()];\r\n\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\tdistanceArray[source]=0;\r\n\t\tcalculateShortestDistances(graph, source, destination);\r\n\t\tfor(Integer value : shortestPathList) {\r\n\t\t\tSystem.out.println(value+\" \");\r\n\t\t}\r\n\t\treturn shortestPathList;\r\n\t}", "public interface AllPairsShortestPathAlgo\n{\n long[][]getDistances(Graph g);\n}", "int getNextHopPort(Message next) {\n\t\tif (next instanceof ExchangeMessage) {\n\t\t\tExchange destinationExchange = ((ExchangeMessage)next).getDestination();\n\t\t\treturn getExchangeNextPort(destinationExchange);\n\t\t}\n\t\telse {\n\t\t\tContinent destinationContinent = ((SuperPeerMessage) next).getDestination();\n\t\t\tif (destinationContinent == null) {\n\t\t\t\tSystem.out.println(\"no destination?\");\n\t\t\t\tnext.print();\n\t\t\t}\n\n\t\t\treturn getContinentNextPort(destinationContinent);\n\t\t}\n\t}", "public boolean DijkstraHelp(int src, int dest) {\n PriorityQueue<Entry>queue=new PriorityQueue();//queue storages the nodes that we will visit by the minimum tag\n //WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n initializeTag();\n initializeInfo();\n node_info first=this.ga.getNode(src);\n first.setTag(0);//distance from itself=0\n queue.add(new Entry(first,first.getTag()));\n while(!queue.isEmpty()) {\n Entry pair=queue.poll();\n node_info current= pair.node;\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n Collection<node_info> listNeighbors = this.ga.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for(node_info n:Neighbors) {\n\n if(n.getTag()>ga.getEdge(n.getKey(),current.getKey())+current.getTag())\n {\n n.setTag(current.getTag() + ga.getEdge(n.getKey(), current.getKey()));//compute the new tag\n }\n queue.add(new Entry(n,n.getTag()));\n }\n }\n Iterator<node_info> it=this.ga.getV().iterator();\n while(it.hasNext()){\n if(it.next().getInfo()==null) return false;\n }\n return true;\n }", "public Pair<Integer, Map<Vertex, Vertex>> ShortestDistance(Vertex source, Vertex zink) {\n Map<Vertex, Vertex> PredecessorMap = new HashMap<>();\n Map<Vertex, Integer> DistanceMap = new HashMap<>();\n Vertex a;\n // initialize arrays\n for (Vertex v : Vertices) {\n DistanceMap.put(v, 1000); //We initialize the array in infinite\n PredecessorMap.put(v, null);\n }\n DistanceMap.put(source, 0); //We put the source in 0\n for (Vertex v : Vertices) {\n while (!DistanceMap.isEmpty()) { //And we iterate until the distance map is empty\n a = getmin(DistanceMap); //we get the minimum vertex\n if(a==null) {\n return (new Pair<Integer, Map<Vertex, Vertex>>(DistanceMap.get(zink), PredecessorMap));\n }\n\n ArrayList<Edge> edges = a.getOutEdges(); //we get de edges connected to this vertex\n for (Edge e : edges) { //we iterate getting the vertex of each edge\n if (DistanceMap.containsKey(e.tovertex)) { //if the vertex is in the distance map:\n Integer alt = DistanceMap.get(a) + e.distance; //we get it value and plus the distance of the edge\n\n System.out.println(\"This is the distance going out from that Vertex: \" + alt + \", with previous distance: \" + DistanceMap.get(e.tovertex));\n if (alt < DistanceMap.get(e.tovertex)) { //if it is less, we put it in the arrays\n DistanceMap.put(e.tovertex, alt);\n PredecessorMap.put(e.tovertex, a);\n\n }\n }\n }\n DistanceMap.remove(a); //and we remove it of the array\n }\n }\n return (new Pair<Integer, Map<Vertex, Vertex>>(DistanceMap.get(zink), PredecessorMap));\n }", "public static VCAgent getNextHopUsingDVCR(VCAgent current, VCAgent destination, VCAgent prevAgent, VCContext context){\r\n\t\tHashMap<VCAgent, Double> neighborDistances = new HashMap<>();\r\n\t\t\r\n\t\tVCAgent mostUpdatedAgent = current;\r\n\t\tfor(VCAgent neighbor : current.getNeighbors()){\r\n\t\t\tif(neighbor.getVcLocalTable().getUpdateTime() > mostUpdatedAgent.getVcLocalTable().getUpdateTime())\r\n\t\t\t\tmostUpdatedAgent = neighbor;\r\n\t\t}\r\n\t\tdouble minDistance = Double.valueOf(Double.POSITIVE_INFINITY );\r\n\t\tdouble maxDistance = Double.valueOf(Double.NEGATIVE_INFINITY );\r\n\t\tfor(VCAgent neighbor : current.getNeighbors()){\r\n\t\t\tif(neighbor.equals(destination))\r\n\t\t\t\treturn neighbor;\r\n\t\t\tif(neighbor.equals(prevAgent))\r\n\t\t\t\tcontinue;\r\n\t\t\tdouble distToDestination = getL2NormDistance(mostUpdatedAgent, neighbor, destination, context);\r\n\t\t\tneighborDistances.put(neighbor, distToDestination);\r\n\t\t\tif(distToDestination < minDistance) {\r\n\t\t\t\tminDistance = distToDestination;\r\n\t\t\t} \r\n\t\t\tif(distToDestination > maxDistance) {\r\n\t\t\t\tmaxDistance = distToDestination;\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble currentDistance = getL2NormDistance(mostUpdatedAgent, current, destination, context);\r\n\t\tif(minDistance <= maxDistance) {\r\n\t\t\tif(minDistance !=0 && ( minDistance < currentDistance)) { // next hop found\r\n\t\t\t\tArrayList<VCAgent> minNeighborDistances = new ArrayList<>();\r\n\t\t\t\tfor(VCAgent neighbor: neighborDistances.keySet())\r\n\t\t\t\t\tif(neighborDistances.get(neighbor) == minDistance)\r\n\t\t\t\t\t\tminNeighborDistances.add(neighbor);\r\n\t\t\t\treturn minNeighborDistances.get(context.getRandom().nextInt(minNeighborDistances.size()));\r\n\t\t\t}\r\n\t\t} \r\n\t\tif(current.getNeighbors().size() == 0)\r\n\t\t\treturn null;\r\n\t\tVCAgent minHopAgent = current.getNeighbors().get(0);\r\n\t\tList<VCAgent> anchorAgents = VCMessageHelper.getAnchorAgents(\r\n\t\t\t\tcontext.getWorld(), ForwarderSensorAgent.class);\r\n//\t\tList<List<VCAgent>> powersetofAnchors = powerSet(anchorAgents);\r\n//\t\tpowersetofAnchors.toArray();\r\n//\t\tfor(int i = powersetofAnchors.size()-1; i >= 0; i--) {\r\n//\t\t\tif(powersetofAnchors.get(i).size() != 4)\r\n//\t\t\t\tcontinue;\r\n\t\t\tminDistance = Double.valueOf(Double.POSITIVE_INFINITY );\r\n\t\t\ttry {\r\n\t\t\t\tfor(VCAgent neighbor : current.getNeighbors()){\r\n\t\t\t\t\tif(neighbor.equals(prevAgent))\r\n\t\t\t\t\t\tcontinue;\r\n//\t\t\t\t\tdouble distToDestination = getApproximatedHopsToDest(\r\n//\t\t\t\t\t\t\tneighbor, destination, powersetofAnchors.get(i), context);\r\n\t\t\t\t\tdouble distToDestination = getApproximatedHopsToDest(\r\n\t\t\t\t\t\t\tneighbor, destination, anchorAgents.subList(0, 4), context);\r\n\t\t\t\t\tif(distToDestination < minDistance) {\r\n\t\t\t\t\t\tminDistance = distToDestination;\r\n\t\t\t\t\t\tminHopAgent = neighbor;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn minHopAgent;\r\n//\t\t\t\tcurrentDistance = getApproximatedHopsToDest(\r\n//\t\t\t\t\t\tcurrent, destination, powersetofAnchors.get(i), context);\r\n\t\t\t} catch (RuntimeException e) {\r\n\t\t\t\tsolveEquationFails++;\r\n//\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t}\r\n\t\treturn null;\r\n\t}", "T getDestination(T nodeOrigin, F flow);", "public static int offsetBits_hop() {\n return 48;\n }", "public Hoppy getHoppyByHoppyId(Long hoppyId) throws DataAccessException;", "public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}", "@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }", "private double getDistance(Vector2i tile, Vector2i goal) {\n\t\t double dx = tile.getX() - goal.getX();\n\t\t double dy = tile.getY() - goal.getY();\n\t\t return Math.sqrt(dx * dx + dy *dy); //distance \n\t }", "public Object getDestination() {\n/* 339 */ return this.peer.getTarget();\n/* */ }", "static long dijkstras(State start, State goal) {\n\t\tPriorityQueue<State> pq = new PriorityQueue<State>(\n\t\t\tnew Comparator<State>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(State a, State b) {\n\t\t\t\t\treturn Long.compare(a.dist, b.dist);\n\t\t\t\t}\n\t\t\t});\n\n\t\tHashMap<State, Long> dist = new HashMap<>(); \n\n\t\tpq.offer(start);\n\t\tdist.put(start, start.dist);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\tState cur = pq.poll();\n\n\t\t\tif (cur.isDestination(goal)) // abort if target is reached\n\t\t\t\treturn cur.dist;\n\n\t\t\t// avoid relaxation if a shorter path to 'cur' is pending in queue\n\t\t\tif (Long.compare(dist.get(cur), cur.dist) < 0)\n\t\t\t\tcontinue;\n\n\t\t\tfor (State adj : cur.adj()) {\n\t\t\t\tLong bestSoFar = dist.get(adj);\n\t\t\t\tif (bestSoFar == null || Long.compare(adj.dist, bestSoFar) < 0) {\n\t\t\t\t\tpq.offer(adj);\n\t\t\t\t\tdist.put(adj, adj.dist);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// no path to target\n\t\treturn -1;\n\t}", "public int distTo(Site s) {\n\t\treturn distTo[s.getX()][s.getY()];\n\t}", "private static int arrayDpHopper(int[] array) {\n\t\tint[] jumps = new int[array.length];\n\t\tif(array[0]==0||array.length==0){\n\t\t\treturn Integer.MAX_VALUE;\n\t\t}\n\t\tjumps[0]=0;\n\t\tfor(int i=1;i<array.length;i++){\n\t\t\tjumps[i]=Integer.MAX_VALUE;\n\t\t\tfor(int j=0;j<i;j++){\n\t\t\t\tif(i<=j + array[j] && jumps[j]!=Integer.MAX_VALUE){\n\t\t\t\t\tjumps[i] = arrayHopper.getMin(jumps[i],jumps[j]+1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn jumps[array.length-1];\n\t}", "public static int size_hop() {\n return (8 / 8);\n }", "@Override\r\n\tpublic int getDistance(E src, E dst) {\r\n\t\treturn graphForWarshall.getDistance(src, dst);\r\n\t}", "public static HashMap<Integer,Nodo> Dijkstra(Grafo g,int origen){\n\t\t// Inicialmente S contendrá el vértice origen\n\t\tArrayList<Integer> s = new ArrayList<Integer>();\n \tHashMap<Integer,Integer> costo = new HashMap<Integer,Integer>();\n \tHashMap<Integer,Nodo> padre = new HashMap<Integer,Nodo>();\n\t\ts.add(origen);\n\t\tcosto.put(origen,-100000000);\t\n\t\t// Para cada v en el grafo: \n\t\tfor( Map.Entry<Integer, Nodo> v : g.nodos.entrySet() ){\n\t\t\t// si v no es el origen:\n\t\t\tif( v.getKey() != origen ){\n\t\t\t\tcosto.put(v.getKey(),g.valorArista(v.getKey(),origen));\n\t\t\t\t// Inicialmente, el predecesor de v en el camino mínimo construido hasta el momento es origen\n\t\t\t\tpadre.put(v.getKey(),g.nodos.get(origen));\n\t\t\t} // fin if\n\t\t} // fin for\n\n\t\t// Mientras existan vértices para los cuales no se ha determinado el camino mínimo\n\t\twhile( g.nodos.size() - s.size() > 0 ){\n\t\t\t//\tElegir un vértice w en (V-S) tal que su costo sea el mayor.\n\t\t\tfor(Map.Entry<Integer, Nodo> w : g.nodos.entrySet()){\n\t\t\t\tint mayor = -10000000;\n\t\t\t\tif(!s.contains(w.getKey())){\n\t\t\t\t\tif( mayor < costo.get(w.getKey()) ){\n\t\t\t\t\t\t// Se agrega w al conjunto S\n\t\t\t\t\t\ts.add(w.getKey());\n\t\t\t\t\t\tmayor = costo.get(w.getKey());\n\t\t\t\t\t} // fin if mayor\n\t\t\t\t} // fin if contains\n\t\t\t\t\t\n\t\t\t\t\t//\tPara cada v en (V-S):\n\t\t\t\t\tfor(Map.Entry<Integer, Nodo> v : g.nodos.entrySet()){\n\t\t\t\t\t\tif(!s.contains(v.getKey())){\n\t\t\t\t\t\t\t// Se escoge, entre \n\t\t\t\t\t\t\t// el camino mayor hacia v que se tiene hasta el momento, \n\t\t\t\t\t\t\tint dv = costo.get(v.getKey());\n\t\t\t\t\t\t\tint dw = costo.get(w.getKey());\n\t\t\t\t\t\t\t//y el camino hacia v pasando por w mediante su camino mayor, \n\t\t\t\t\t\t\tint cwv = g.valorArista(w.getKey(),v.getKey());\n\t\t\t\t\t\t\t//el de mayor costo.\n\t\t\t\t\t\t\tint max = Math.max( dv , dw + cwv );\n\t\t\t\t\t\t\tcosto.put(v.getKey(),max);\t\n\n\t\t\t\t\t\t\t// Si max(D[v],D[w]+C[w,v]) = D[w]+C[w,v] entonces P[v] ← w \n\t\t\t\t\t\t\tif( max == dw + cwv ){\n\t\t\t\t\t\t\t\tpadre.put(v.getKey(),w.getValue());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // fin if contains\n\t\t\t\t\t} // fin for map\n\t\t\t} //fin for map\n\t\t} // fin while\n\t\treturn padre;\n\t}", "public Integer getDestination() {\n\t\treturn new Integer(destination);\n\t}", "private static ArrayList<Connection> pathFindDijkstra(Graph graph, int start, int goal) {\n\t\tNodeRecord startRecord = new NodeRecord();\r\n\t\tstartRecord.setNode(start);\r\n\t\tstartRecord.setConnection(null);\r\n\t\tstartRecord.setCostSoFar(0);\r\n\t\tstartRecord.setCategory(OPEN);\r\n\t\t\r\n\t\tArrayList<NodeRecord> open = new ArrayList<NodeRecord>();\r\n\t\tArrayList<NodeRecord> close = new ArrayList<NodeRecord>();\r\n\t\topen.add(startRecord);\r\n\t\tNodeRecord current = null;\r\n\t\tdouble endNodeCost = 0;\r\n\t\twhile(open.size() > 0){\r\n\t\t\tcurrent = getSmallestCSFElementFromList(open);\r\n\t\t\tif(current.getNode() == goal){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tGraphNode node = graph.getNodeById(current.getNode());\r\n\t\t\tArrayList<Connection> connections = node.getConnection();\r\n\t\t\tfor( Connection connection :connections){\r\n\t\t\t\t// get the cost estimate for end node\r\n\t\t\t\tint endNode = connection.getToNode();\r\n\t\t\t\tendNodeCost = current.getCostSoFar() + connection.getCost();\r\n\t\t\t\tNodeRecord endNodeRecord = new NodeRecord();\r\n\t\t\t\t// if node is closed skip it\r\n\t\t\t\tif(listContains(close, endNode))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t// or if the node is in open list\r\n\t\t\t\telse if (listContains(open,endNode)){\r\n\t\t\t\t\tendNodeRecord = findInList(open, endNode);\r\n\t\t\t\t\t// print\r\n\t\t\t\t\t// if we didn't get shorter route then skip\r\n\t\t\t\t\tif(endNodeRecord.getCostSoFar() <= endNodeCost) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// else node is not visited yet\r\n\t\t\t\telse {\r\n\t\t\t\t\tendNodeRecord = new NodeRecord();\r\n\t\t\t\t\tendNodeRecord.setNode(endNode);\r\n\t\t\t\t}\r\n\t\t\t\t//update the node\r\n\t\t\t\tendNodeRecord.setCostSoFar(endNodeCost);\r\n\t\t\t\tendNodeRecord.setConnection(connection);\r\n\t\t\t\t// add it to open list\r\n\t\t\t\tif(!listContains(open, endNode)){\r\n\t\t\t\t\topen.add(endNodeRecord);\r\n\t\t\t\t}\r\n\t\t\t}// end of for loop for connection\r\n\t\t\topen.remove(current);\r\n\t\t\tclose.add(current);\r\n\t\t}// end of while loop for open list\r\n\t\tif(current.getNode() != goal)\r\n\t\t\treturn null;\r\n\t\telse { //get the path\r\n\t\t\tArrayList<Connection> path = new ArrayList<>();\r\n\t\t\twhile(current.getNode() != start){\r\n\t\t\t\tpath.add(current.getConnection());\r\n\t\t\t\tint newNode = current.getConnection().getFromNode();\r\n\t\t\t\tcurrent = findInList(close, newNode);\r\n\t\t\t}\r\n\t\t\tCollections.reverse(path);\r\n\t\t\treturn path;\r\n\t\t}\r\n\t}", "public List<GeographicPoint> dijkstra(GeographicPoint start, \n\t\t\t\t\t\t\t\t\t\t GeographicPoint goal, Consumer<GeographicPoint> nodeSearched)\n\t{\n\t\t// TODO: Implement this method in WEEK 4\n\n\t\t// Hook for visualization. See writeup.\n\t\t//nodeSearched.accept(next.getLocation());\n\t\t\n\t\t//initialize distance of each MapNode from start to infinity\n\t\t\n\t\tSet<GeographicPoint> visited = new HashSet<GeographicPoint>();\n\t\tPriorityQueue<MapNode> queue = new PriorityQueue<MapNode>();\n\t\tHashMap<GeographicPoint, List<GeographicPoint>> path = new HashMap<GeographicPoint, List<GeographicPoint>>();\n\t\tint count = 0;\n\t\t\n\t\tif (!map.containsKey(start) || !map.containsKey(goal))\n\t\t\treturn null;\n\t\t\n\t\tfor (GeographicPoint temp : map.keySet())\n\t\t\tpath.put(temp, new ArrayList<GeographicPoint>());\n\t\t\n\t\tMapNode startNode = map.get(start);\n\t\tstartNode.setTimeToStart(0.0);\n\t\tstartNode.setDistanceToStart(0.0);\n\t\tqueue.add(startNode);\n\t\t\n\t\twhile (!queue.isEmpty()) {\n\t\t\tMapNode currNode = queue.poll();\n\t\t\tnodeSearched.accept(currNode.getLocation());\n\t\t\t\n\t\t\tif (!visited.contains(currNode.getLocation())) {\n\t\t\t\tvisited.add(currNode.getLocation());\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tif (currNode.getLocation().equals(goal))\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tHashMap<MapEdge, GeographicPoint> neighbours = currNode.getNeighbours();\n\t\t\t\tfor (MapEdge edge : neighbours.keySet()) {\n\t\t\t\t\t\n\t\t\t\t\tif (!visited.contains(edge.getEnd())) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tMapNode addNode = map.get(neighbours.get(edge));\n\t\t\t\t\t\tdouble tempTime = currNode.getTimeToStart() + ((edge.getDistance())/(edge.getSpeedLimit()));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tempTime < addNode.getTimeToStart()) {\n\t\t\t\t\t\t\taddNode.setTimeToStart(tempTime);\n\t\t\t\t\t\t\tqueue.add(addNode);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tList<GeographicPoint> temp = path.get(neighbours.get(edge));\n\t\t\t\t\t\t\ttemp.add(currNode.getLocation());\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\tSystem.out.println(\"Dijkstra: \" + count);\n\t\treturn backTrack(path,goal);\n\t}", "public static LinkedList<Direction> dijkstra(Simulateur simul, Robot rob, Case dest){\n\t\t//init graph\n\t\tCasePourDijkstra[][] graph= new CasePourDijkstra[simul.data.map.getNbLignes()][simul.data.map.getNbColonnes()];\n\t\tfor (int i=0; i<simul.data.map.getNbLignes(); i++){\n\t\t\tfor (int j=0; j<simul.data.map.getNbColonnes(); j++){\n\t\t\t\tgraph[i][j]=new CasePourDijkstra(i,j);\n\t\t\t}\n\t\t}\n\t\tboolean trouve=false;\n\t\t//init file de prio\n\t\tPriorityQueue<CasePourDijkstra> aTraiter=new PriorityQueue<CasePourDijkstra>(1,new priodjkstra());\n\t\t//init case depart + sauvegarde case arrivee\n\t\tgraph[rob.getPosition().getLigne()][rob.getPosition().getColonne()].longueurTrajet=0;\n\t\taTraiter.add(graph[rob.getPosition().getLigne()][rob.getPosition().getColonne()]);\n\t\tCasePourDijkstra arrivee=graph[dest.getLigne()][dest.getColonne()];\n\t\t\n\t\t//calcul iteratif des plus courts chemins\n\t\tCasePourDijkstra courant=null;\n\t\twhile(aTraiter.size()!=0 && !trouve){\n\t\t\tcourant=aTraiter.poll();\n\t\t\tif(courant.equals(arrivee)){\n\t\t\t\ttrouve=true;\n\t\t\t}\n\t\t\tif (courant.l>0){\n\t\t\t\tif (!graph[courant.l-1][courant.c].traite){\n\t\t\t\t\tgraph[courant.l-1][courant.c].longueurTrajet=(int) (courant.longueurTrajet+\n\t\t\t\t\t\t\trob.getTempsDeplacement(simul.data.map.getCase(courant.l, courant.c),\n\t\t\t\t\t\t\t\t\tsimul.data.map.getCase(courant.l-1, courant.c),\n\t\t\t\t\t\t\t\t\tsimul.data.map.getTailleCases()));\n\t\t\t\t\tgraph[courant.l-1][courant.c].incidente=courant;\n\t\t\t\t\taTraiter.add(graph[courant.l-1][courant.c]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (courant.l<simul.data.map.getNbLignes()-1){\n\t\t\t\tif (!graph[courant.l+1][courant.c].traite){\n\t\t\t\t\tgraph[courant.l+1][courant.c].longueurTrajet=(int) (courant.longueurTrajet+\n\t\t\t\t\t\t\trob.getTempsDeplacement(simul.data.map.getCase(courant.l, courant.c),\n\t\t\t\t\t\t\t\t\tsimul.data.map.getCase(courant.l+1, courant.c),\n\t\t\t\t\t\t\t\t\tsimul.data.map.getTailleCases()));\n\t\t\t\t\tgraph[courant.l+1][courant.c].incidente=courant;\n\t\t\t\t\taTraiter.add(graph[courant.l+1][courant.c]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (courant.c>0){\n\t\t\t\tif (!graph[courant.l][courant.c-1].traite){\n\t\t\t\t\tgraph[courant.l][courant.c-1].longueurTrajet=(int) (courant.longueurTrajet+\n\t\t\t\t\t\t\trob.getTempsDeplacement(simul.data.map.getCase(courant.l, courant.c),\n\t\t\t\t\t\t\t\t\tsimul.data.map.getCase(courant.l, courant.c-1),\n\t\t\t\t\t\t\t\t\tsimul.data.map.getTailleCases()));\n\t\t\t\t\tgraph[courant.l][courant.c-1].incidente=courant;\n\t\t\t\t\taTraiter.add(graph[courant.l][courant.c-1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (courant.c<simul.data.map.getNbColonnes()-1){\n\t\t\t\tif (!graph[courant.l][courant.c+1].traite){\n\t\t\t\t\tgraph[courant.l][courant.c+1].longueurTrajet=(int) (courant.longueurTrajet+\n\t\t\t\t\t\t\trob.getTempsDeplacement(simul.data.map.getCase(courant.l, courant.c),\n\t\t\t\t\t\t\t\t\tsimul.data.map.getCase(courant.l, courant.c+1),\n\t\t\t\t\t\t\t\t\tsimul.data.map.getTailleCases()));\n\t\t\t\t\tgraph[courant.l][courant.c+1].incidente=courant;\n\t\t\t\t\taTraiter.add(graph[courant.l][courant.c+1]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcourant.traite=true;\n\t\t}\n\t\t\n\t\tif (courant!=arrivee || courant.longueurTrajet==Integer.MAX_VALUE){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//Remontee du graphe et generation de la liste resultat;\n\t\tLinkedList<Direction> resultat=new LinkedList<Direction>();\n\t\twhile (courant.incidente!=null){\n\t\t\tresultat.addFirst(case2Dir(courant.incidente,courant));\n\t\t\tcourant=courant.incidente;\n\t\t}\n\t\treturn resultat;\n\t\t\n\t}", "public TCSObjectReference<Point> getDestinationPoint() {\n if (hops.isEmpty()) {\n return null;\n }\n else {\n return hops.get(hops.size() - 1);\n }\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n private OptimizedItinerary doDijkstra(HipsterDirectedGraph<String,Long> graph, String origin, String destination) {\r\n log.info(String.format(\"----- Doing Dijkstra for origen: %s, and destination: %s -----\", origin, destination));\r\n SearchResult res = null;\r\n SearchProblem p = GraphSearchProblem\r\n .startingFrom(origin)\r\n .in(graph)\r\n .takeCostsFromEdges()\r\n .build();\r\n\r\n res= Hipster.createDijkstra(p).search(destination);\r\n WeightedNode node = (WeightedNode)res.getGoalNode();\r\n log.info(String.format(\"Best itineraries: %s, cost final: %s\", res.getOptimalPaths(), node.getCost()));\r\n \r\n return new OptimizedItinerary.Builder(res.getOptimalPaths())\r\n .setCost( Double.parseDouble(node.getCost().toString()))\r\n .from(origin)\r\n .to(destination)\r\n .build();\r\n }", "@Override\r\n public List<node_info> shortestPath(int src, int dest) {\r\n double i = shortestPathDist(src, dest);\r\n double j, k, s, mark = 1;\r\n ArrayList<node_info> Rlist = new ArrayList<>();\r\n ArrayList<node_info> Llist = new ArrayList<>();\r\n Rlist.clear();\r\n Llist.clear();\r\n j = i;\r\n for (node_info curr : this.Graph.getV()) {\r\n curr.setInfo(\"clear\");\r\n }\r\n this.Graph.getNode(src).setInfo(\"tmp\");\r\n Rlist.add(this.Graph.getNode(dest));\r\n node_info nd = this.Graph.getNode(dest);\r\n node_info temp = this.Graph.getNode(dest);\r\n while (j != 0 && j > 0) {\r\n for (node_info curr0 : this.Graph.getV(nd.getKey())) {\r\n if (curr0.getInfo() != null) {\r\n temp = curr0;\r\n k = this.Graph.getEdge(nd.getKey(), curr0.getKey());\r\n s = j - k;\r\n if ((s - curr0.getTag() < 0.001 && s - curr0.getTag() > -0.001) && nd.getInfo() != null) {\r\n Rlist.add(curr0);\r\n j = curr0.getTag();\r\n curr0.setInfo(\"tmp\");\r\n mark = 1;\r\n nd = curr0;\r\n }\r\n }\r\n }\r\n if (mark == 0) {\r\n i = j;\r\n temp.setInfo(null);\r\n Rlist.clear();\r\n Rlist.add(this.Graph.getNode(dest));\r\n mark = 1;\r\n }\r\n mark = 0;\r\n }\r\n for (int t = (Rlist.size() - 1); t >= 0; t--) {\r\n Llist.add(Rlist.get(t));\r\n }\r\n return Llist;\r\n }", "public Shard getLowerNeighbor() {\r\n double middleLat = south + Math.abs(north - south) / 2;\r\n double nextLat = middleLat - Math.abs(north - south);\r\n\r\n return new Shard(new Coordinates(nextLat, coordinates.getLon()), zoom);\r\n }", "public int queryDistance(int destination){\n\t\treturn distances[destination];\n\t}", "public synchronized LinkedList[] getKHopNeighbors()\r\n {\r\n return kHopNeighbors;\r\n }", "public HashMap<Nodo, Integer> dijkstra() {\r\n\r\n\t\tPriorityQueue<NodoDijkstra> aVisitar = new PriorityQueue<NodoDijkstra>();\r\n\t\tHashMap<Nodo, Integer> distancias = new HashMap<Nodo, Integer>();\r\n\t\tHashMap<Nodo, Integer> retorno = new HashMap<Nodo, Integer>();\r\n\t\tHashSet<Nodo> visitados = new HashSet<Nodo>();\r\n\r\n\t\tNodoDijkstra nodoOrigen = new NodoDijkstra(this, 0);\r\n\t\tnodoOrigen.setCamino(new Camino(this));\r\n\t\taVisitar.add(nodoOrigen);\r\n\t\tdistancias.put(this, new Integer(0));\r\n\t\tretorno.put(this, new Integer(0));\r\n\r\n\t\twhile (!aVisitar.isEmpty()) {\r\n\t\t\tNodoDijkstra dNodo = aVisitar.poll();\r\n\t\t\tNodo actual = dNodo.getNodo();\r\n\t\t\tCamino camino = dNodo.getCamino();\r\n\r\n\t\t\tif (visitados.contains(actual))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tvisitados.add(actual);\r\n\r\n\t\t\tfor (CanalOptico canal : actual.canales) {\r\n\t\t\t\tNodo vecino = canal.getOtroExtremo(actual);\r\n\t\t\t\tint costo = canal.getCosto();\r\n\r\n\t\t\t\t/* Restriccion del Dijkstra */\r\n\t\t\t\tif (visitados.contains(vecino))\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (canal.estaBloqueado())\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (vecino.estaBloqueado())\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (distancias.containsKey(vecino)) {\r\n\t\t\t\t\tint dActual = distancias.get(vecino);\r\n\r\n\t\t\t\t\tif (dActual <= dNodo.getDistancia() + costo)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\taVisitar.remove(vecino);\r\n\t\t\t\t\t\tdistancias.remove(vecino);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tNodoDijkstra nuevoNodo = new NodoDijkstra(vecino,\r\n\t\t\t\t\t\tdNodo.getDistancia() + costo);\r\n\t\t\t\tCamino caminoNuevo = new Camino(camino);\r\n\t\t\t\tcaminoNuevo.addSalto(new Salto(camino.getSaltos().size() + 1,\r\n\t\t\t\t\t\tcanal));\r\n\t\t\t\tnuevoNodo.setCamino(caminoNuevo);\r\n\t\t\t\taVisitar.add(nuevoNodo);\r\n\t\t\t\tdistancias.put(nuevoNodo.getNodo(), nuevoNodo.getDistancia());\r\n\t\t\t\tretorno.put(nuevoNodo.getNodo(), nuevoNodo.getDistancia());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public ETLHop getETLHopWithStartStep(ETLStep etlStep) {\r\n\t\tETLHop etlHopFound = null;\r\n\t\tfor (ETLHop etlHop : etlHops) {\r\n\t\t\tif (etlStep.getStepName().equals(etlHop.getFromStepName())) {\r\n\t\t\t\t// We found the hop that starts at etlStep\r\n//\t\t\t\tetlHopFound = new ETLHop(etlHop);\r\n\t\t\t\tetlHopFound = etlHop;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn etlHopFound;\r\n\t}", "public int destination(){\n\t\treturn this.des;\n\t}", "public static void main(String[] args) {\n\t\tint[] array = {1, 2, 5, 8, 9, 2, 6, 7, 6, 8, 9};\n\t\t//System.out.println(arrayRecHopper(array,0,array.length));\n\t\tSystem.out.println(arrayDpHopper(array));\n\t}", "public void testGraphhopper(){\n GraphHopper hopper = new GraphHopperOSM().forServer();\n hopper.setDataReaderFile(GraphhopperProperties.getString(\"OSMFile\"));\n // where to store graphhopper files?\n hopper.setGraphHopperLocation(GraphhopperProperties.getString(\"LocationHopperData\"));\n hopper.setEncodingManager(new EncodingManager(GraphhopperProperties.getString(\"EncodingManager\")));\n\n // now this can take minutes if it imports or a few seconds for loading\n // of course this is dependent on the area you import\n hopper.importOrLoad();\n\n List<GHPoint> points = new ArrayList<>();\n points.add(new GHPoint(-17.7580821, -63.1746598));\n points.add(new GHPoint(-17.7584948, -63.1749769));\n points.add(new GHPoint(-17.7600252, -63.1712026));\n \n // simple configuration of the request object, see the GraphHopperServlet classs for more possibilities.\n GHRequest req = new GHRequest(points).\n setWeighting(GraphhopperProperties.getString(\"Weighting\")).\n setVehicle(GraphhopperProperties.getString(\"Vehicule\")).\n setLocale(Locale.US);\n GHResponse rsp = hopper.route(req);\n\n // first check for errors\n if(rsp.hasErrors()) {\n // handle them!\n // rsp.getErrors()\n System.out.println(\"ocurrio un error\");\n System.out.println(rsp.toString());\n return;\n }\n\n // use the best path, see the GHResponse class for more possibilities.\n PathWrapper path = rsp.getBest();\n\n // points, distance in meters and time in millis of the full path\n PointList pointList = path.getPoints();\n double distance = path.getDistance();\n long timeInMs = path.getTime();\n \n System.out.println(\"Distancia total--\"+distance);\n\n InstructionList il = path.getInstructions();\n // iterate over every turn instruction\n for(Instruction instruction : il) {\n System.out.println(instruction.getDistance());\n }\n\n // or get the json\n List<Map<String, Object>> iList = il.createJson();\n\n // or get the result as gpx entries:\n List<GPXEntry> list = il.createGPXList();\n }", "private Node closestUnvisitedNeighbour(HashMap <Node, Integer > shortestPathMap){\n int shortestDistance = Integer.MAX_VALUE;\n Node closestReachableNode = null;\n for (Node node : getNodes()) {\n if (node.isVisited())\n continue;\n\n int currentDistance = shortestPathMap.get(node);\n if (currentDistance == Integer.MAX_VALUE)\n continue;\n\n if (currentDistance < shortestDistance) {\n shortestDistance = currentDistance;\n closestReachableNode = node;\n }\n }\n return closestReachableNode;\n }", "private void source_to_dest_path(int source, int dest, int[] forward_dist_tab, int[] list_Prevoius_Node, ArrayList<Integer> del_router)\n\t{\n\t\tif(del_router != null && del_router.contains(dest))\n\t\t\tSystem.out.println(\"Router \"+ (dest+1) +\" is deleted\");\n\t\telse if(del_router != null && del_router.contains(source))\n\t\t\tSystem.out.println(\"Router \"+ (source+1) +\" is deleted\");\n\t\telse\n\t\t{\n\t\t\tint[] prevNodes_List = list_Prevoius_Node;\n\t\t\tint k = dest;\n\t\t\tString path = \"\" + (dest+1);\n\t\t\t\n\t\t\t//Check if node is reachable that if it is connected in the graph then only proceed further\n\t\t\tif(forward_dist_tab[dest] != INFINITE_DIST)\n\t\t\t{\n\t\t\t\twhile(prevNodes_List[k] != source)\n\t\t\t\t{\n\t\t\t\t\tpath += \" >- \" + (prevNodes_List[k] + 1);\n\t\t\t\t\tk = prevNodes_List[k];\n\t\t\t\t}\n\t\t\t\t//for source node\n\t\t\t\tpath += \" >- \" + (source+1);\n\t\t\t\t\n\t\t\t\t//Back traversal is done using the previous node list\n\t\t\t\tString disp_path= new StringBuilder(path).reverse().toString();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nShortest distance from \"+ (source+1) +\" to \"+ (dest+1) +\":\");\n\t\t\t\tSystem.out.println(\"PATH: \"+ disp_path);\n\t\t\t\tSystem.out.println(\"COST: \" + forward_dist_tab[dest]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\nRouter \"+ (dest+1) +\" is dead or unreachable.\");\n\t\t\t}\n\t\t}\n\t}", "private HashMap<String, Integer> getShortestPath(Node start, Node end){\n if(start.equals(end)) {\n return getShortestPath(start);\n }\n return getShortestPathBetweenDifferentNodes(start,end);\n }", "private double getDistance(Vector2i tile, Vector2i goal) {\r\n\t\tdouble dx = tile.getX() - goal.getX();\r\n\t\tdouble dy = tile.getY() - goal.getY();\r\n\t\treturn Math.sqrt((dx * dx) + (dy * dy));\r\n\t}", "public void findDestination() {\n\t\t\n\t}", "private void goKnight(Board B, Graph G) {\n\n int start = B.knight;\n int end = B.gold;\n\n Queue<Integer> q = new Queue<Integer>();\n for (int v = 0; v < G.V(); v++)\n distTo[v] = INFINITY;\n\n int v = -1;\n distTo[start] = 0;\n marked[start] = true;\n q.enqueue(start);\n\n while (!q.isEmpty() && end != v) {\n v = q.dequeue();\n\n\n int tl_dest_R = (v / B.width);\n int tl_dest_C = (v % B.width);\n\n ArrayList<Integer> destinations = new ArrayList<Integer>();\n\n for (Move M : G.moves) {\n\n\n if (validateMove(M, v, G, B)) {\n\n if (true) {\n\n //System.out.println(thereispath(M, B.a.get(tl_dest_R).get(tl_dest_C), newDestination(M, v, G, B), G, B));\n\n if (!marked[newDestination(M, v, G, B)]) {\n\n\n q.enqueue(newDestination(M, v, G, B));\n marked[newDestination(M, v, G, B)] = true;\n edgeTo[newDestination(M, v, G, B)] = v;\n distTo[newDestination(M, v, G, B)] = distTo[v] + 1;\n\n // System.out.println(newDestination(M, v, G, B) + \" \" + edgeTo[newDestination(M, v, G, B)]);\n\n }\n\n\n }\n\n // System.out.println();\n\n }\n\n }\n\n\n //break;\n }\n\n System.out.println();\n\n Stack<Integer> reverse = new Stack<Integer>();\n\n\n int temp = end;\n reverse.push(temp);\n\n while (true) {\n\n\n temp = edgeTo[temp];\n reverse.push(temp);\n\n if (temp == start)\n break;\n }\n\n int last = 0;\n\n int temp_row = 0, temp_column = 0;\n\n String te = \"\";\n\n while (!reverse.isEmpty()) {\n\n if (last != 0) {\n te += \" -> \";\n }\n\n\n last = reverse.pop();\n\n\n temp_row = last / B.width;\n temp_column = last % B.width;\n\n\n te += B.a.get(temp_row).get(temp_column).toT();\n\n\n }\n\n if (distTo[last] == INFINITY) {\n System.out.println(\"No path to the target.\");\n } else {\n\n int a = 0, b = 0;\n\n a = B.gold / B.width;\n b = B.gold % B.width;\n int c = 0, d = 0;\n\n c = B.knight / B.width;\n d = B.knight % B.width;\n\n System.out.println(distTo[last] + \" steps\");\n System.out.println(B.a.get(c).get(d).toT() + \" to \" + B.a.get(a).get(b).toT() + \": \" + te);\n\n }\n\n\n }", "public String getShortestPath(int goal) throws Throwable {\n if (goal < 0) {\n return \"There is no path\";\n }\n Queue<Integer> stack = new Queue<>(new Integer[10]); \n int previous = path[goal];\n if (previous == -1) {\n return \"There is no path\";\n }\n while (previous != 0) {\n stack.push(previous);\n previous = path[previous];\n }\n String ret = \"0 > \";\n while (!stack.isEmpty()) {\n ret = ret + (stack.poll() + \" > \");\n }\n return \"\" + ret + goal;\n }", "private static void shortestPath(Map<Integer, DistanceInfo> distanceTable,\n int source, int destination)\n {\n // Backtrack using a stack, using the destination node\n Stack<Integer> stack = new Stack<>();\n stack.push(destination);\n\n // Backtrack by getting the previous node of every node and putting it on the stack.\n // Start at the destination.\n int previousVertex = distanceTable.get(destination).getLastVertex();\n while (previousVertex != -1 && previousVertex != source)\n {\n stack.push(previousVertex);\n previousVertex = distanceTable.get(previousVertex).getLastVertex();\n }\n\n if (previousVertex ==-1)\n {\n System.err.println(\"No path\");\n }\n else\n {\n System.err.println(\"Shortest path: \");\n while (! stack.isEmpty())\n {\n System.err.println(stack.pop());\n }\n }\n }", "public com.hps.july.trailcom.beans.OpticalHopAccessBean findOpticalHopByHopid(com.hps.july.trailcom.beans.HopKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n com.hps.july.trailcom.beans.OpticalHopHome localHome = ejbHome();\n com.hps.july.trailcom.beans.OpticalHop ejbs = localHome.findOpticalHopByHopid(arg0);\n return (com.hps.july.trailcom.beans.OpticalHopAccessBean) createAccessBeans(ejbs);\n }", "public void shortestRouteDijkstra(){\n int landmark1 = l1.getSelectionModel().getSelectedIndex();\n int landmark2 = l2.getSelectionModel().getSelectedIndex();\n GraphNodeAL<MapPoint> lm1 = landmarkList.get(landmark1);\n GraphNodeAL<MapPoint> lm2 = landmarkList.get(landmark2);\n\n shortestRouteDij(lm1, lm2);\n }", "public String getRoutingNo();", "@Override\r\n\tpublic int getLinkDestinationId() {\n\t\treturn destination.getNodeId();\r\n\t}", "public AGateway getGateway()\r\n/* 16: */ {\r\n/* 17:36 */ return this.gateway;\r\n/* 18: */ }", "public GraphNode firstEndpoint(){\r\n return first;\r\n }", "public void testGraphhopper2(List<PointDto> puntos){\n \n CmdArgs args = new CmdArgs().put(\"config\", GraphhopperProperties.getString(\"Config\"))\n .put(\"datareader.file\",GraphhopperProperties.getString(\"OSMFile\"))\n .put(\"graph.location\", GraphhopperProperties.getString(\"LocationHopperData\"));\n GraphHopper hopper = new GraphHopperOSM().init(args).importOrLoad();\n \n List<GHPoint> points = new ArrayList<>();\n points.add(new GHPoint(-17.7580821, -63.1746598));\n points.add(new GHPoint(-17.7584948, -63.1749769));\n points.add(new GHPoint(-17.7600252, -63.1712026));\n \n // simple configuration of the request object, see the GraphHopperServlet classs for more possibilities.\n GHRequest req = new GHRequest(points).\n setWeighting(GraphhopperProperties.getString(\"Weighting\")).\n setVehicle(GraphhopperProperties.getString(\"Vehicule\")).\n setLocale(Locale.US);\n GHResponse rsp = hopper.route(req);\n\n // first check for errors\n if(rsp.hasErrors()) {\n // handle them!\n // rsp.getErrors()\n System.out.println(\"ocurrio un error\");\n System.out.println(rsp.toString());\n return;\n }\n\n // use the best path, see the GHResponse class for more possibilities.\n PathWrapper path = rsp.getBest();\n\n // points, distance in meters and time in millis of the full path\n PointList pointList = path.getPoints();\n double distance = path.getDistance();\n long timeInMs = path.getTime();\n \n System.out.println(\"Distancia total--\"+distance);\n\n InstructionList il = path.getInstructions();\n // iterate over every turn instruction\n for(Instruction instruction : il) {\n System.out.println(instruction.getDistance());\n }\n\n // or get the json\n List<Map<String, Object>> iList = il.createJson();\n\n // or get the result as gpx entries:\n List<GPXEntry> list = il.createGPXList();\n }", "public com.hps.july.trailcom.beans.HopKey getHopidKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((com.hps.july.trailcom.beans.HopKey) __getCache(\"hopidKey\")));\n }", "public List<Node> findPath(Vector2i start, Vector2i goal) {\n\t\tList<Node> openList = new ArrayList<Node>(); //All possible Nodes(tiles) that could be shortest path\n\t\tList<Node> closedList = new ArrayList<Node>(); //All no longer considered Nodes(tiles)\n\t\tNode current = new Node(start,null, 0, getDistance(start, goal)); //Current Node that is being considered(first tile)\n\t\topenList.add(current);\n\t\twhile(openList.size() > 0) {\n\t\t\tCollections.sort(openList, nodeSorter); // will sort open list based on what's specified in the comparator\n\t\t\tcurrent = openList.get(0); // sets current Node to first possible element in openList\n\t\t\tif(current.tile.equals(goal)) {\n\t\t\t\tList<Node> path = new ArrayList<Node>(); //adds the nodes that make the path \n\t\t\t\twhile(current.parent != null) { //retraces steps from finish back to start\n\t\t\t\t\tpath.add(current); // add current node to list\n\t\t\t\t\tcurrent = current.parent; //sets current node to previous node to strace path back to start\n\t\t\t\t}\n\t\t\t\topenList.clear(); //erases from memory since algorithm is finished, ensures performance is not affected since garbage collection may not be called\n\t\t\t\tclosedList.clear();\n\t\t\t\treturn path; //returns the desired result shortest/quickest path\n\t\t\t}\n\t\t\topenList.remove(current); //if current Node is not part of path to goal remove\n\t\t\tclosedList.add(current); //and puts it in closedList, because it's not used\n\t\t\tfor(int i = 0; i < 9; i++ ) { //8-adjacent tile possibilities\n\t\t\t\tif(i == 4) continue; //index 4 is the middle tile (tile player currently stands on), no reason to check it\n\t\t\t\tint x = (int)current.tile.getX();\n\t\t\t\tint y = (int)current.tile.getY();\n\t\t\t\tint xi = (i % 3) - 1; //will be either -1, 0 or 1\n\t\t\t\tint yi = (i / 3) - 1; // sets up a coordinate position for Nodes (tiles)\n\t\t\t\tTile at = getTile(x + xi, y + yi); // at tile be all surrounding tiles when iteration is run\n\t\t\t\tif(at == null) continue; //if empty tile skip it\n\t\t\t\tif(at.solid()) continue; //if solid cant pass through so skip/ don't consider this tile\n\t\t\t\tVector2i a = new Vector2i(x + xi, y + yi); //Same thing as node(tile), but changed to a vector\n\t\t\t\tdouble gCost = current.gCost + (getDistance(current.tile, a) == 1 ? 1 : 0.95); //*calculates only adjacent nodes* current tile (initial start is 0) plus distance between current tile to tile being considered (a)\n\t\t\t\tdouble hCost = getDistance(a, goal);\t\t\t\t\t\t\t\t// conditional piece above for gCost makes a more realist chasing, because without it mob will NOT use diagonals because higher gCost\n\t\t\t\tNode node = new Node(a, current, gCost, hCost);\n\t\t\t\tif(vecInList(closedList, a) && gCost >= node.gCost) continue; //is node has already been checked \n\t\t\t\tif(!vecInList(openList, a) || gCost < node.gCost) openList.add(node);\n\t\t\t}\n\t\t}\n\t\tclosedList.clear(); //clear the list, openList will have already been clear if no path was found\n\t\treturn null; //a default return if no possible path was found\n\t}", "Dijk(){\n grp = new HashMap<>();\n seen = new HashSet<>();\n dlist = new HashMap<>();\n id = new HashMap<>();\n lowlink = new HashMap<>();\n orid = 0;\n }", "private void dijkstra(final NavigableSet<Node> queue) {\n Node firstNode, neighbor;\n while (!queue.isEmpty()) {\n // vertex with shortest distance (first iteration will return source)\n firstNode = queue.pollFirst();\n assert firstNode != null;\n if (!explored.contains(firstNode.coordinate)) {\n explored.add(firstNode.coordinate);\n }\n if (firstNode.dist == Integer.MAX_VALUE)\n // we can ignore u (and any other remaining vertices) since they are unreachable\n break;\n //look at distances to each neighbour\n for (Map.Entry<Node, Integer> temp : firstNode.neighbours.entrySet()) {\n neighbor = temp.getKey(); //the neighbour in this iteration\n if (!explored.contains(neighbor.coordinate)) {\n explored.add(neighbor.coordinate);\n }\n final int alternateDist = firstNode.dist + temp.getValue();\n if (alternateDist < neighbor.dist) { // shorter path to neighbour found\n queue.remove(neighbor);\n neighbor.dist = alternateDist;\n neighbor.previous = firstNode;\n queue.add(neighbor);\n }\n }\n }\n }", "public int getChnlWalkway(){\n return this.mFarm.getChnlWalkway();\n }", "public int calculateH(Node destination){\n\t\tint tempH;\n\t\tint xDistance = Math.abs(x-destination.getX());\n\t\tint yDistance = Math.abs(y-destination.getY());\n\t\tif(xDistance>yDistance){\n\t\t\ttempH=14*yDistance + 10*(xDistance-yDistance);\n\t\t}\n\t\telse\n\t\t\ttempH=14*xDistance + 10*(yDistance - xDistance);\n\t\treturn tempH;\n\t}", "public static int Dij(int s , int g){\n PriorityQueue<Edge> pq = new PriorityQueue<>();\n HashSet<Integer> hs = new HashSet<>();\n distance[s]=0;\n pq.add(new Edge(s,0));\n while (!pq.isEmpty()){\n Edge curr = pq.remove();\n if(curr.getto()==g)return distance[g];\n if(!hs.contains(curr.getto())){\n hs.add(curr.getto());\n List<Edge> ll = getNei(curr.getto()) ;\n for(Edge e :ll ){\n if(!hs.contains(e.getto())){\n\n if(distance[e.getto()]>(distance[curr.getto()] +e.getweight())){\n\n distance[e.getto()] = distance[curr.getto()] +e.getweight() ;\n pq.add(new Edge(e.getto(),distance[e.getto()]));\n\n }\n }\n }\n }\n\n }\n return distance[g] ;\n }" ]
[ "0.621497", "0.61146945", "0.601749", "0.59986335", "0.5979763", "0.59701943", "0.5937194", "0.59290075", "0.5919973", "0.5893844", "0.5822363", "0.5796017", "0.57857347", "0.5782737", "0.57723415", "0.5761561", "0.57490915", "0.57284415", "0.5672853", "0.5665749", "0.56521577", "0.5633858", "0.5616731", "0.56053954", "0.5562391", "0.55510145", "0.55467373", "0.55230033", "0.5491884", "0.54838765", "0.5449073", "0.54462737", "0.5440144", "0.5437504", "0.5434621", "0.5424823", "0.5416188", "0.54082406", "0.539881", "0.5398383", "0.53949136", "0.53816426", "0.5370237", "0.53654593", "0.5361139", "0.5359243", "0.5357901", "0.53563076", "0.5348375", "0.534087", "0.533281", "0.53299737", "0.53292346", "0.53259563", "0.53176683", "0.53104866", "0.5309119", "0.5304856", "0.53040075", "0.5283969", "0.52838284", "0.52782595", "0.52690166", "0.52642477", "0.52515554", "0.52481097", "0.52445203", "0.5242166", "0.52411765", "0.52350104", "0.5228117", "0.52266204", "0.52241594", "0.52240616", "0.5223263", "0.5222087", "0.52183723", "0.5212855", "0.52126837", "0.5210385", "0.52057153", "0.52048284", "0.52019984", "0.52012473", "0.51954776", "0.51949143", "0.5187887", "0.5181433", "0.5177115", "0.51751894", "0.5174439", "0.51692945", "0.5167847", "0.5151754", "0.51502526", "0.51491165", "0.51441485", "0.5141617", "0.51357746", "0.51253176", "0.51212806" ]
0.0
-1
DO something with exception
private void sendOldError(Exception e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void doException() {\n\r\n\t}", "void mo57276a(Exception exc);", "void failed (Exception e);", "public void toss(Exception e);", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}", "private void throwsError() throws OBException {\n }", "static void doStuff() {\n try {\n throw new Error();\n } catch (Error me) {\n throw me; // We catch but then rethrow it.\n }\n }", "protected void connectionException(Exception exception) {}", "public void error(Exception e);", "@Override\n\t\t\tpublic void onException(Exception arg0) {\n\n\t\t\t}", "void handleError(Exception ex);", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "void dispatchException(Throwable exception);", "public abstract void onException(Exception e);", "protected abstract void onException(final Exception exception);", "public void falschesSpiel(SpielException e);", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "public interface RoutineException {}", "public void maybeThrow() {\n if (exception != null)\n throw this.exception;\n }", "private static void throwException() throws Exception {\n\t\tthrow new Exception();\r\n\t}", "protected abstract void exceptionsCatching( ExceptionType exceptionType );", "Throwable cause();", "public void exceptionEncountered(IOException ioe) {}", "@Override\n public void onException(Exception arg0) {\n }", "protected void failed()\r\n {\r\n //overwrite\r\n }", "void onException(Exception e);", "public void onException(Exception ex) {\n \t\t\t}", "void mo1031a(Throwable th);", "private void failWithExceptionOnExecutor(CronetException e) {\n mException = e;\n // Do not call into mCallback if request is complete.\n synchronized (mNativeStreamLock) {\n if (isDoneLocked()) {\n return;\n }\n mReadState = mWriteState = State.ERROR;\n destroyNativeStreamLocked(false);\n }\n try {\n mCallback.onFailed(this, mResponseInfo, e);\n } catch (Exception failException) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception notifying of failed request\",\n failException);\n }\n mInflightDoneCallbackCount.decrement();\n }", "@Override\n\tpublic void onException(Exception e) {\n\n\t}", "@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}", "public static void test() throws Exception {\n\t}", "void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "private void inizia() throws Exception {\n }", "public void throwException()\n\t{\n\t\tthrow new RuntimeException(\"Dummy RUNTIME Exception\");\n\t}", "@Override\n\t\tpublic boolean onException(Exception arg0, T arg1,\n\t\t\t\tTarget<GlideDrawable> arg2, boolean arg3) {\n\t\t\treturn false;\n\t\t}", "public void excavate();", "void exceptionCaught(Throwable cause) throws Exception;", "void exceptionCaught(Throwable cause) throws Exception;", "public void execute()\n/* */ throws Pausable, Exception\n/* */ {\n/* 378 */ errNotWoven(this);\n/* */ }", "protected void runTest() throws Throwable {\n\t\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t\t}", "void Crash(T ex) throws T;", "public void inquiryError() {\n\t\t\n\t}", "@Override\n\tprotected Respond exceptHandle(Exception e) {\n\t\treturn SqlTool.normalExceptionDeal(new RspSingleRow(), e);\n\t}", "public void handleNetworkException(WorkerChore chore, CallNetworkException e);", "@Override\n protected void onExceptionSwallowed(RuntimeException exception) {\n throw exception;\n }", "public final void mo60610a(Exception exc) {\n FeedImageViewHolder.this.mLineProgressBar.mo74362b();\n }", "public void testGetException() {\r\n Exception exception = null;\r\n try {\r\n list.get(-1);\r\n } \r\n catch (Exception e) {\r\n exception = e;\r\n }\r\n assertTrue(exception instanceof IndexOutOfBoundsException);\r\n exception = null;\r\n list.add(\"A\");\r\n try {\r\n list.get(1);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue(exception instanceof IndexOutOfBoundsException);\r\n }", "public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }", "@Override\n public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) {\n\n return false;\n }", "private void log(IndexObjectException e) {\n\t\t\r\n\t}", "void throwEvents();", "@Override\n protected boolean shouldSendThrowException() {\n return false;\n }", "String getException();", "String getException();", "private void doCatch() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\twaitTilHalted();\n\n String typeToCatch = null;\n\n\t\t/* currentXXX may NOT be invalid! */\n\t\tif (!hasMoreTokens())\n\t\t{\n\t\t\terr(\"Catch requires an exception name.\");\n\t\t\treturn;\n\t\t}\n\n typeToCatch = nextToken();\n if (typeToCatch == null || typeToCatch.length() == 0)\n {\n \terr(\"Illegal argument\");\n \treturn;\n }\n\n Value type = null;\n if (typeToCatch.equals(\"*\")) //$NON-NLS-1$\n {\n \ttypeToCatch = null;\n }\n else\n {\n\t type = getSession().getGlobal(typeToCatch);\n\t if (type == null)\n\t {\n\t \terr(\"Type not found.\");\n\t \treturn;\n\t }\n\n\t String typeName = type.getTypeName();\n\t int at = typeName.indexOf('@');\n\t if (at != -1)\n\t \ttypeName = typeName.substring(0, at);\n\t if (!typeName.endsWith(\"$\"))\n\t {\n\t \terr(\"Not a type: \" + type);\n\t \treturn;\n\t }\n }\n\n CatchAction c;\n\t\ttry {\n\t\t\tc = addCatch(typeToCatch);\n\t\t} catch (NotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n \tMap<String, Object> args = new HashMap<String, Object>();\n \targs.put(\"id\", c.getId()); //$NON-NLS-1$\n \tc.getId();\n\t}", "@Override\r\n public void onException(Exception arg0) {\n\r\n }", "void execute() throws Exception;", "Result(Exception e) {\n empty = false;\n this.e = e;\n status = 1;\n }", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "public void doSomething(String input) throws MyBusinessException {\n // code ...\n }", "public void error(Throwable e);", "@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}", "protected void handleProcessingException(Exception e) throws NbaBaseException {\n unLockItems();\n if (e instanceof NbaBaseException) {\n NbaBaseException eb = (NbaBaseException) e;\n if (eb.isFatal() || eb instanceof NbaLockedException) {\n throw eb;\n }\n }\n if (result == null) {\n setWork(getOrigWorkItem());\n addComment(e.getMessage());\n changeStatus(getHostErrorStatus());\n setResult(new NbaAutomatedProcessResult(NbaAutomatedProcessResult.FAILED, getHostErrorStatus(), getHostErrorStatus()));\n }\n try {\n doUpdateWorkItem();\n } catch (NbaBaseException e1) {\n e1.forceFatalExceptionType();\n throw e1;\n }\n }", "void apply() throws Exception;", "@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}", "void doCatch(Throwable t) throws Throwable;", "@Override\r\n\tpublic void onWeiboException(WeiboException arg0) {\n\t\t\r\n\t}", "private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }", "@Override\n\tpublic void catching(Throwable t) {\n\n\t}", "void innerError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "void innerError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "private void handleInvokeException(Exception e) {\n log.warn(\"invoke()\", e);\n // Removed reset of setLegDetail - as a performance tuning we are\n // not returning leg details from train route api for the moment - SM (10/2009)\n // setLegDetail(null);\n }", "@Override\n\tpublic void exucute() {\n\t\t\n\t}", "public void doMore(){\n\t/**\n\t * ArithmeticExceptiont this exception occurs when an integer is \n\t * divided by zero.\n\t * \n\t * */\t\n\t\tint number=500/0;\n\t\t\n\t}", "private void manejaExcepcion(HibernateException he) throws HibernateException\r\n\t{\n\t tx.rollback();\r\n\t throw new HibernateException(\"Ocurrió un error en la capa de acceso a datos\", he);\r\n\t}", "void markFailed(Execution execution, Throwable cause);", "void checked(){\n \n try {\n \n throw new CheckedException();\n } catch (CheckedException e) {\n e.printStackTrace();\n }\n\n }", "public void doTheFaultyThing();", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "@Test\n void testDothrow() {\n Examen examen = Datos.EXAMEN;\n doThrow(IllegalArgumentException.class).when(preguntaRepository).guardarVarias(anyList());\n\n examen.setPreguntas(Datos.PREGUNTAS);\n assertThrows(IllegalArgumentException.class, () -> {\n service.guardar(examen);\n });\n }", "public void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\t\n\t\t\t}", "public void Excepti() throws Exception{ \n throw new Exception(\"El dato especificado NO existe en la lista!!!\"); \n }", "void afterThrow(T resource, Exception exception);", "public void addException(Exception exception);", "public RedoException(){\r\n\t\tsuper();\r\n\t}", "public void setException(Exception e)\n {\n this.exception = e;\n }", "void L3() throws Exception{\n\t\tSystem.out.println(\"1\");\n\t\tthrow e;\n\t}", "private static Exception method_7085(Exception var0) {\r\n return var0;\r\n }", "private void sendInvocationException(HttpRequest request,\n\t\t\tHttpResponse response, ServiceInvocationException e) {\n\t\t// internal exception in service method\n\t\tresponse.clearContent();\n\t\tresponse.setStatus( HttpResponse.STATUS_INTERNAL_SERVER_ERROR );\n\t\tresponse.setContentType( \"text/xml\" );\n\t\tconnector.logError(\"Exception while processing RMI: \" + request.getPath());\n\t\t\n\t\tObject[] ret = new Object[4];\n\t\tret[0] = \"Exception during RMI invocation!\";\n\t\t\n\t\tret[1] = e.getCause().getCause().getClass().getCanonicalName();\n\t\tret[2] = e.getCause().getCause().getMessage();\n\t\tret[3] = e.getCause().getCause();\n\t\tString code = ret[0]+\"\\n\"+ret[1]+\"\\n\"+ret[2]+\"\\n\"+ret[3];\n\t\tresponse.println ( code );\n\t}", "private void failWithException(final CronetException exception) {\n postTaskToExecutor(new Runnable() {\n @Override\n public void run() {\n failWithExceptionOnExecutor(exception);\n }\n });\n }", "public void socketException(PacketChannel pc, Exception ex);" ]
[ "0.78830117", "0.7233785", "0.7023482", "0.6883689", "0.6826322", "0.6784946", "0.67609805", "0.6660712", "0.6656893", "0.66362864", "0.66275954", "0.65988743", "0.6557755", "0.65569186", "0.65561604", "0.65486586", "0.6545038", "0.6502131", "0.6502131", "0.6502131", "0.6502131", "0.6502131", "0.64493793", "0.64392", "0.64107", "0.6395709", "0.6389912", "0.6388788", "0.63799345", "0.6364002", "0.63616425", "0.63509136", "0.632911", "0.6324427", "0.6284353", "0.6277271", "0.6273858", "0.62624454", "0.6259876", "0.6253549", "0.6242192", "0.62342644", "0.6233432", "0.6233432", "0.62304", "0.6224381", "0.62225395", "0.620974", "0.6196817", "0.61899024", "0.61884254", "0.6173579", "0.6167946", "0.61621714", "0.6153491", "0.6146237", "0.6145768", "0.6144268", "0.61440355", "0.61440355", "0.61399865", "0.6133149", "0.6132117", "0.61256325", "0.6124241", "0.6107081", "0.60986835", "0.6094694", "0.6093649", "0.60845417", "0.607788", "0.60748124", "0.60694027", "0.60665816", "0.6064106", "0.60625553", "0.60571307", "0.60571307", "0.60526365", "0.6042065", "0.60388047", "0.6032789", "0.60309345", "0.603042", "0.60282236", "0.60256827", "0.60256827", "0.601345", "0.60053563", "0.6002799", "0.5995697", "0.59927875", "0.59891814", "0.59819895", "0.5958972", "0.5957457", "0.5956417", "0.5952423", "0.5949353", "0.5948247" ]
0.6390511
26
Constructor builds boundaries for resetting condition
public TrackBoundariesReset(RaceTrack raceTrack, XYPair reset) { this.trackTemplate = raceTrack; this.reset = reset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public baseRunnableCondition() {\r\n }", "public BranchAndBound() {\n this.timeFi = Long.parseLong(\"2000000000000\");;\n this.numSoluciones = 0;\n }", "public Condition() {\n _rawProperties = new HashSet<>();\n _usedLookupIds = new HashSet<>();\n _potentialContextEntries = new HashSet<>();\n }", "public AirCondition(){}", "public TriggerCondition() {\n this(METRIC_HEAPUSG, 95);\n }", "Condition createCondition();", "public SimpleCondition() {\n\n\t}", "public SeqConditionSet() {\n\t}", "MFCAccessConditions()\r\n {\r\n }", "LogicCondition createLogicCondition();", "public Condition(ConditionManager condition)\r\n\t{\r\n\t\tthis.condition = condition;\r\n\t\tinit();\r\n\t}", "public SearchConditionSB() {\r\n }", "public BTGConditionDTO()\n\t{\n\t\tsuper();\n\t}", "BaseCondition createBaseCondition();", "public Logic() {\n }", "public Intervals() {\n }", "public PickBounds() {\n\tbounds = null;\n }", "public StatCollectorCondCSAMMVar() {\n }", "private void ensureConditionContinuity( )\n {\n /* If the operators are not valid, then do not move the conditions */\n if ( checkOperators() )\n {\n /*\n * When Left Hand Side, Operator and Right Hand Side for a Condition\n * are empty then infer the default value, i.e., set Operator to\n * CVL_WF_OPRSImpl.EQUAL. Left Hand Side and Right Hand Side will continue\n * to remain empty.\n */\n defaultForEmptyConditions();\n\n int liCount = 0;\n int liNumber = 0 ;\n int liCurrentRow = 0;\n Data loNewData = null ;\n Data loOldData = null ;\n\n /* Cycle through the conditions. Make sure the conditions in front */\n /* of current condition are not blank, if so, move current condition up */\n\n for (liCount = 2; liCount < 6; liCount++ )\n {\n liNumber = liCount ;\n while (liNumber > 1)\n {\n liCurrentRow = liCount - ( liNumber - 1 );\n if (getAND_COND_LHS(liCurrentRow) == null)\n {\n /*\n * copy old condition to new condition, or condition 2 to 1 ...\n * first get data from new left hand side, and get data from\n * old left hand side, and copy new to old. Repeat for right\n * hand side , operator and Condition Type.\n */\n\n loNewData = getData(\"AND_COND_LHS_\" + liCount ) ;\n loOldData = getData(\"AND_COND_LHS_\" + liCurrentRow ) ;\n loOldData.setString(loNewData.getString() );\n loNewData = getData(\"AND_COND_RHS_\" + liCount ) ;\n loOldData = getData(\"AND_COND_RHS_\" + liCurrentRow ) ;\n loOldData.setString(loNewData.getString() );\n loNewData = getData(\"AND_COND_RHS_FLD_\" + liCount ) ;\n loOldData = getData(\"AND_COND_RHS_FLD_\" + liCurrentRow ) ;\n loOldData.setString(loNewData.getString() );\n loNewData = getData(\"AND_COND_OPR_\" + liCount ) ;\n loOldData = getData(\"AND_COND_OPR_\" + liCurrentRow ) ;\n loOldData.setbyte(loNewData.getbyte() );\n loNewData = getData(\"AND_COND_TYP_\" + liCount ) ;\n loOldData = getData(\"AND_COND_TYP_\" + liCurrentRow ) ;\n loOldData.setint(loNewData.getint() );\n /*\n * reset the old condition back to null ,operator to default 3\n * and Condition type to 1 (i.e. Actual Value)\n */\n loNewData = getData(\"AND_COND_LHS_\" + liCount ) ;\n loNewData.setString(null);\n loNewData = getData(\"AND_COND_RHS_\" + liCount ) ;\n loNewData.setString(null);\n loNewData = getData(\"AND_COND_RHS_FLD_\" + liCount ) ;\n loNewData.setString(null);\n loNewData = getData(\"AND_COND_OPR_\" + liCount ) ;\n loNewData.setbyte((byte)3);\n loNewData = getData(\"AND_COND_TYP_\" + liCount ) ;\n loNewData.setint(CVL_WF_COND_TYPImpl.ACTUAL_VAL);\n\n } /* end if (getAND_COND_LHS(liCurrentRow) == null) */\n\n liNumber-- ;\n\n } /* end while (liNumber > 1) */\n } /* end for (liCount = 2; liCount < 6; liCount++ ) */\n } /* end if ( checkOperators() ) */\n }", "public NotCondition() {\r\n\t\tsuper();\r\n\t}", "public AirConditioner()\n\t{\n\t\tinit();\n\t}", "protected void initialize() {\n \tisAtLimit = Robot.clawElevator.getLowerSwitch();\n \t\n \tif (isAtLimit) {\n \t\tcancel();\n \t} else {\n \t\tRobot.clawElevator.resetEncoder();\n \t}\n \t\n// \tif (Robot.clawElevator.getContainerHeight() == 0) {\n \t\tRobot.clawElevator.decrementContainerHeight();\n// \t}\n }", "public void buildInitialBand()\r\n\t{\n\t\r\n\tint bl = boundary.size();\r\n\tfor(int i=0; i<bl; i++) \r\n\t\t{\r\n\t\tInt2d bCur = boundary.get(i);\r\n\t\t//System.out.println(bCur.x + \", \" + bCur.y + \": size = \" + heap.size());\r\n\t\t\r\n\t\ttestPointsAround(bCur.x,bCur.y);\r\n\t\t}\r\n\t\r\n\t}", "condition getConditionAllocution();", "public Builder clearInitCond() {\n\n initCond_ = getDefaultInstance().getInitCond();\n onChanged();\n return this;\n }", "private CollisionLogic() {}", "public ModuleConditions(String source) {\n this.source = source;\n onsetConditions = new ConcurrentHashMap<String, OnsetCondition>();\n state2conditionMapping = new ConcurrentHashMap<String, String>();\n }", "@Override\n\tpublic void reset() {\n\t\tthis.currentConditionIndex = 0;\n\t\t\n\t\tfor(Cond cond:this.conditions)\n\t\t{\n\t\t\tfor(Param param:cond.params)\n\t\t\t{\n\t\t\t\tparam.reset();\n\t\t\t}\n\t\t}\n\t}", "public final void setUnbounded() {_occ.setUnbounded();}", "protected void initialize() {\n\t\tright = left = throttle = turn = forward = 0;\n\t}", "public final void initBody() {\n m_body = new ArrayList<Condition>();\n m_stats = new TwoClassConfusionMatrix();\n m_val = Double.NEGATIVE_INFINITY;\n resetTieBreaker();\n }", "public Rule(List<ICondition> conditions)\r\n\t{\r\n\t\tif (conditions != null)\r\n\t\t{\r\n\t\t\tthis.conditions = conditions;\r\n\t\t}\r\n\t}", "public ContextConditionImpl() {\n\t\tsuper();\n\t}", "public TempElementRestriction() {\n }", "void resetControlVariables() {\n a1_cnt_ = 0;\n b1_cnt_ = 0;\n x1_cnt_ = 0;\n y1_cnt_ = 0;\n lb1_cnt_ = 0;\n rb1_cnt_ = 0;\n lsb1_cnt_ = 0;\n rsb1_cnt_ = 0;\n lt1_left_cnt_ = 0;\n lt1_right_cnt_ = 0;\n\n a2_cnt_ = 0;\n b2_cnt_ = 0;\n x2_cnt_ = 0;\n y2_cnt_ = 0;\n lb2_cnt_ = 0;\n rb2_cnt_ = 0;\n lsb2_cnt_ = 0;\n rsb2_cnt_ = 0;\n\n curr_time_ = 0.0;\n loop_cnt_ = 0;\n last_imu_read_loop_id_ = -1;\n last_motor_read_loop_id_ = -1;\n last_rgb_range_stone_read_loop_id_ = -1;\n last_range_stone_read_loop_id_ = -1;\n last_range_right_read_loop_id_ = -1;\n last_range_left_read_loop_id_ = -1;\n last_range_stone_read_time_ = 0;\n last_range_right_read_time_ = 0;\n last_range_left_read_time_ = 0;\n range_stone_dist_init_min_ = 0;\n range_right_dist_init_min_ = 0;\n range_left_dist_init_min_ = 0;\n range_stone_error_detected_ = false;\n range_right_error_detected_ = false;\n range_left_error_detected_ = false;\n battery_voltage_ = 0.0;\n\n last_button_time_ = 0.0;\n last_button_a1_time_ = 0.0;\n last_button_b1_time_ = 0.0;\n last_button_rb1_time_ = 0.0;\n last_button_time2_ = 0.0;\n last_double_stone_time_ = 0.0;\n }", "private void initExplorationBounds() {\n switch (configuration.getCoverageCriteria()) {\n case GOAL_COVERAGE:\n case BRANCH_COVERAGE:\n configuration.setObjectScope(configuration.isIncrementalLoopUnroll() ?\n FajitaConfiguration.INITIAL_INCREMENTAL_OBJECT_SCOPE :\n configuration.getMaximumObjectScope()\n );\n configuration.setLoopUnroll(configuration.isIncrementalLoopUnroll() ?\n FajitaConfiguration.INITIAL_INCREMENAL_LOOP_UNROLL :\n configuration.getMaximumLoopUnroll()\n );\n break;\n case CLASS_COVERAGE:\n case DUAL_CLASS_BRANCH_COVERAGE:\n configuration.setObjectScope(configuration.getMaximumObjectScope());\n configuration.setLoopUnroll(configuration.getMaximumLoopUnroll());\n break;\n }\n }", "@Override\n\tprotected void setLowerBound() {\n\t\t\n\t}", "private void defaultForEmptyConditions()\n {\n /*\n * When any of the Conditions has all Left Hand Side, Operator and\n * Right Hand Side as empty then set Operator to default value of\n * CVL_WF_OPRSImpl.EQUAL(mimic default situation).\n * Note if this is not done then the condition will store null value\n * for Left Hand Side, Operator and Right Hand Side, and the whole condition\n * record will not be displayed on \"Manage Approval Conditions\" page\n * because the page selection query uses an equal join with R_WF_APRV_COND\n * and CVL_WF_OPRS tables.\n */\n for ( int liCtr = 1 ; liCtr <= 5 ; liCtr++ )\n {\n if( isNull(\"AND_COND_LHS_\" + liCtr) && isNull(\"AND_COND_OPR_\" + liCtr)\n && isNull(\"AND_COND_RHS_\" + liCtr) )\n {\n getData(\"AND_COND_OPR_\" + liCtr).setbyte((byte)3);\n }\n }//end for\n }", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "private void resetParams() {\n lowerYear = 1999;\n upperYear = 2020;\n yearRestriction = false;\n\n lowerProblem = 1;\n upperProblem = 60;\n problemRestriction = false;\n partTwo = false;\n }", "public SCondition(Node node) {\n super(node);\n }", "protected void initialize() {\n \ttarget = (int) SmartDashboard.getNumber(\"target\", 120);\n \ttarget = (int) (target * Constants.TICKS_TO_INCHES);\n\t\tRobot.drive.stop();\n\t\tmaxCount = (int) SmartDashboard.getNumber(\"max count\", 0);\n\t\ttolerance = (int) SmartDashboard.getNumber(\"tolerance\", 0);\n\t\tRobot.drive.left.motor1.setSelectedSensorPosition(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n\t\tRobot.drive.right.motor1.setSelectedSensorPosition(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n }", "protected void initSpecSpecificConditions() {\r\n // THESE ARE ALL FOR MAF SPEC 1.0 ONLY\r\n\r\n //If variant_Type is \"ins\" Reference_Allele should always be \"-\",\r\n conditions.add(new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_REFERENCE_ALLELE, Pattern.compile(\"[^\\\\-]\"), \"contain anything but '-' characters\", true));\r\n // and either of Tumor_Seq_Allele1 and Tumor_Seq_Allele2 should have \"-\".\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_TUMOR_SEQ_ALLELE1, Pattern.compile(\"-\"), \"contain at least one '-'\", false),\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_TUMOR_SEQ_ALLELE2, Pattern.compile(\"-\"), \"contain at least one '-'\", false)));\r\n //If variant_Type is \"del\", then Reference_Allele can't contain \"-\",\r\n conditions.add(new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_REFERENCE_ALLELE, Pattern.compile(\"-\"), \"contain any '-' characters\", true));\r\n // and either Tumor_Seq_Allele1 or Tumor_Seq_Allele2 should contain \"-\".\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_TUMOR_SEQ_ALLELE1, Pattern.compile(\"-\"), \"contain at least one '-'\", false),\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_TUMOR_SEQ_ALLELE2, Pattern.compile(\"-\"), \"contain at least one '-'\", false)));\r\n\r\n //If validation_status is \"wildtype\", then Tumor_Seq_Allele1=Tumor_Seq_Allele2\r\n //and Tumor_Seq_Allele1=Reference_Allele)\r\n conditions.add(new ConditionalRequirement(FIELD_VALIDATION_STATUS, VALIDATION_STATUS_WILDTYPE, FIELD_TUMOR_SEQ_ALLELE1, FIELD_TUMOR_SEQ_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(FIELD_VALIDATION_STATUS, VALIDATION_STATUS_WILDTYPE, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, false));\r\n\r\n // if mutation_status is germline, tumor_seql_allele1 must be equal to match_norm_seq_allele1\r\n conditions.add(new ConditionalRequirement(FIELD_MUTATION_STATUS, MUTATION_STATUS_GERMLINE, FIELD_TUMOR_SEQ_ALLELE1,\r\n FIELD_MATCH_NORM_SEQ_ALLELE1, false));\r\n conditions.add(new ConditionalRequirement(FIELD_MUTATION_STATUS, MUTATION_STATUS_GERMLINE, FIELD_TUMOR_SEQ_ALLELE2,\r\n FIELD_MATCH_NORM_SEQ_ALLELE2, false));\r\n // if mutation_status is somatic and validation status is valid, then Match_Norm_Validation_Allele1 should equal Reference_Allele\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE1,\r\n FIELD_REFERENCE_ALLELE, false));\r\n // if mutation_status is somatic and validation status is valid, then Match_Norm_Validation_Allele2 should equal Reference_Allele\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE2,\r\n FIELD_REFERENCE_ALLELE, false));\r\n // if mutation_status is somatic and validation status is valid, then either Tumor_Seq_Allele1 or Tumor_Seq_Allele2 should NOT match Reference_Allele\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, true), // not\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_TUMOR_SEQ_ALLELE2, FIELD_REFERENCE_ALLELE, true))); // not\r\n\r\n //If Mutation_Status == LOH AND Validation_Status==Unknown, then\r\n //Tumor_Seq_Allele1 == Tumor_Seq_Allele2 and\r\n //Match_Norm_Seq_Allele1 != Match_Norm_Seq_Allele2 and\r\n //Tumor_Seq_Allele1 = (Match_Norm_Seq_Allele1 or Match_Norm_Seq_Allele2)\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_TUMOR_SEQ_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_MATCH_NORM_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE2, true)); // not\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE1, false),\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE2, false)));\r\n //If Mutation_Status == LOH AND Validation_Status==Valid, then\r\n //Tumor_Validation_Allele1 == Tumor_Validation_Allele2 and\r\n //Match_Norm_Validation_Allele1 != Match_Norm_Validation_Allele2 and\r\n //Tumor_Validation_Allele1 == (Match_Norm_Validation_Allele1 or Match_Norm_Validation_Allele2).\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_TUMOR_VALIDATION_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE2, true)); // not\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE1, false),\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE2, false)));\r\n // Tumor_Seq_Allele1 != Reference_Allele OR Tumor_Seq_Allele2 != Reference_Allele\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{}, new String[]{}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, true),\r\n new ConditionalRequirement(new String[]{}, new String[]{}, FIELD_TUMOR_SEQ_ALLELE2, FIELD_REFERENCE_ALLELE, true)));\r\n\r\n }", "private Range() {\n this.length = 0;\n this.first = 0;\n this.last = -1;\n this.stride = 1;\n this.name = \"EMPTY\";\n }", "protected FilterCondition(final FilterCondition rhs) {\n }", "private void init(){\n \tdimension.set(0.5f, 0.5f);\n \tsetAnimation(Assets.instance.goldCoin.animGoldCoin);\n \tstateTime = MathUtils.random(0.0f,1.0f);\n \t\n \t//regGoldCoin = Assets.instance.goldCoin.goldCoin;\n \t // Set bounding box for collision detection\n \tbounds.set(0,0,dimension.x, dimension.y);\n \tcollected = false;\n }", "@Override\n protected void initialize() {\n if(inc){\n Robot.m_elevator.incrementPos();\n }else{\n Robot.m_elevator.decrementPos();\n }\n }", "@Override\n protected void initialize() {\n isStarted = false;\n setTimeout(12);\n isDone = false;\n // Start the climb\n Robot.climber.frontDown();\n Robot.climber.rearDown();\n\n }", "public IfCondition() {\r\n super();\r\n }", "private void setDefaultValidRange ()\r\n\t{\r\n\t\tm_lowerBounds = Integer.MIN_VALUE;\r\n\t\tm_upperBounds = Integer.MAX_VALUE;\r\n\t}", "public void setConditions(Condition [] Conditions) {\n this.Conditions = Conditions;\n }", "private Range() {}", "void setInConditionsAsTables() {\n\n for (int i = rangeVariables.length - 1; i >= 0; i--) {\n RangeVariable rangeVar = rangeVariables[i];\n Expression in = inExpressions[i];\n\n if (in != null) {\n Index index = rangeVar.rangeTable.getIndexForColumn(\n in.getLeftNode().nodes[0].getColumnIndex());\n RangeVariable newRangeVar =\n new RangeVariable(in.getRightNode().subQuery.getTable(),\n null, null, null, compileContext);\n RangeVariable[] newList =\n new RangeVariable[rangeVariables.length + 1];\n\n ArrayUtil.copyAdjustArray(rangeVariables, newList,\n newRangeVar, i, 1);\n\n rangeVariables = newList;\n\n // make two columns as arg\n ColumnSchema left = rangeVar.rangeTable.getColumn(\n in.getLeftNode().nodes[0].getColumnIndex());\n ColumnSchema right = newRangeVar.rangeTable.getColumn(0);\n Expression e = new ExpressionLogical(rangeVar, left,\n newRangeVar, right);\n\n rangeVar.addIndexCondition(e, index, flags[i]);\n\n rangeVar.addCondition(in, true);\n }\n }\n }", "public static native void OpenMM_AmoebaOutOfPlaneBendForce_setUsesPeriodicBoundaryConditions(PointerByReference target, int periodic);", "public Regulations (boolean status, int Y){\n this.status = status;\n this.Y = Y;\n }", "public static ContainerBoundary prepare() {\n return new ContainerBoundary();\n }", "public static native int OpenMM_AmoebaOutOfPlaneBendForce_usesPeriodicBoundaryConditions(PointerByReference target);", "public EventBarrier() {\n // empty\n }", "private void initialize() {\n\t\tthis.setSize(152, 506);\n\t\tthis.setLayout(new GridLayout(22, 2));\n\t\tthis.setBackground(Color.LIGHT_GRAY);\n\t\tDirection = Still;\n\t\tNext_Direction = Still;\n\t\tbutton = new JButton[floorCnt];\n\t\tButton = new JButton[floorCnt];\n\t\tstate = new boolean[floorCnt];\n\t\tthread = new Thread(this);\n\t\tjlabel.setText(\"STILL\");\n\t\tjlabel.setFont(new Font(\"Consolas\", Font.BOLD, 20));\n\t\tjlabel.setForeground(Color.blue);\n\t\tjlabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tjlabel1.setText(\"1\");\n\t\tjlabel1.setFont(new Font(\"Consolas\", Font.BOLD, 20));\n\t\tjlabel1.setForeground(Color.blue);\n\t\tjlabel1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tthis.add(jlabel);\n\t\tthis.add(jlabel1);\n\t\tfor (int i = floorCnt-1; i >= 0; i--) {\n\t\t\tstate[i] = false;\n\t\t\tbutton[i] = new JButton();\n\t\t\tButton[i] = new JButton();\n\t\t\tbutton[i].setText(String.valueOf(i + 1));\n\t\t\tButton[i].setText(String.valueOf(i + 1));\n\t\t\tButton[i].setBackground(Color.lightGray);\n\t\t\tButton[i].addActionListener(new Action());\n\t\t\tbutton[i].setBorder(javax.swing.BorderFactory.createLineBorder(Color.blue, 4));\n\t\t\tbutton[i].setEnabled(false);\n\t\t\tbutton[i].setBackground(Color.black);\n\t\t\tthis.add(button[i]);\n\t\t\tthis.add(Button[i]);\n\t\t}\n\t\tbutton[0].setBackground(Color.red);\n\t}", "public Condition(Compendium compendium) {\n\t\tgrn_ = compendium.getGrn();\n\t\tcompendium_ = compendium;\n\t}", "public Builder clearConditionListNull() {\n \n conditionListNull_ = false;\n onChanged();\n return this;\n }", "public void setStartConditions() {\r\n\t\tplayer1.relocate(0, 0);\r\n\t\tgamemap.setPlayerLocation(1, 1);\r\n\t\tgamemap.setEnemyLocation(20, 10);\r\n\t\tenemy1.relocate(19*46, 9*85);\r\n\t\tportal1.relocate(9*46, 9*85);\r\n\t\tportal2.relocate(9*46, 0*85);\r\n\t\tspikes1.relocate(5*46,0*85);\r\n\t\tspikes2.relocate(5*46,1*85);\r\n\t\tspikes3.relocate(5*46,2*85);\r\n\t\tspikes4.relocate(5*46,7*85);\r\n\t\tspikes5.relocate(5*46,8*85);\r\n\t\tspikes6.relocate(5*46,9*85);\r\n\t\tspikes7.relocate(10*46,2*85);\r\n\t\tspikes8.relocate(10*46,3*85);\r\n\t\tspikes9.relocate(10*46,4*85);\r\n\t\tspikes10.relocate(10*46,5*85);\r\n\t\tspikes11.relocate(10*46,6*85);\r\n\t\tspikes12.relocate(10*46,7*85);\r\n\t\tspikes13.relocate(15*46,0*85);\r\n\t\tspikes14.relocate(15*46,1*85);\r\n\t\tspikes15.relocate(15*46,2*85);\r\n\t\tspikes16.relocate(15*46,7*85);\r\n\t\tspikes16.relocate(15*46,8*85);\r\n\t\tspikes17.relocate(15*46,9*85);\r\n\t\tRandom randomObj = new Random();\r\n\t\tint randomX = randomObj.nextInt(20);\r\n\t\tint randomY = randomObj.nextInt(10);\r\n\t\tcoins1.relocate(randomX*46, randomY*85);\r\n\t\tgamemap.setLootLocation(randomX + 1, randomY + 1);\r\n\t\t//coins1.relocate(10*46,5*85);\r\n\t\t//gamemap.setLootLocation(11, 6);\r\n\t}", "private Cell()\n\t{\n\t\tsupplied = false;\n\t\tconnections = new boolean[4];\n\t\t\n\t\tfor(int i = 0; i < 4; ++i)\n\t\t\tconnections[i] = false;\n\t}", "Set<Condition> getInstanceInvariantConditions();", "public EventCondition(EventCondition source) {\n if (source.AlarmNotifyPeriod != null) {\n this.AlarmNotifyPeriod = new String(source.AlarmNotifyPeriod);\n }\n if (source.AlarmNotifyType != null) {\n this.AlarmNotifyType = new String(source.AlarmNotifyType);\n }\n if (source.EventID != null) {\n this.EventID = new String(source.EventID);\n }\n if (source.EventDisplayName != null) {\n this.EventDisplayName = new String(source.EventDisplayName);\n }\n if (source.RuleID != null) {\n this.RuleID = new String(source.RuleID);\n }\n }", "public void reset() {\r\n minX = null;\r\n maxX = null;\r\n minY = null;\r\n maxY = null;\r\n\r\n minIn = null;\r\n maxIn = null;\r\n\r\n inverted = false;\r\n }", "public void setValidRange (int lowerBounds, int upperBounds)\r\n\t{\r\n\t\tm_lowerBounds = lowerBounds;\r\n\t\tm_upperBounds = upperBounds;\r\n\t}", "protected void initialize() {\n encoder = winchAndLatchSS.getWinchEncoder();\n counter = 0;\n Robot3663.updateCommandStatus(\"C_WindWinch\", \"initialize \"+targetTicks);\n tightening = winchAndLatchSS.getWinchEncoder() > targetTicks;\n \n if (tightening){\n direction = speed = -1;\n }\n else{\n direction = speed = 1;\n }\n kill = false;\n if((encoder > targetTicks - LEWAY) && (encoder < targetTicks + LEWAY))\n {\n kill = true;\n speed = 0;\n }\n }", "public Builder clearConditionList() {\n if (conditionListBuilder_ == null) {\n conditionList_ = null;\n onChanged();\n } else {\n conditionList_ = null;\n conditionListBuilder_ = null;\n }\n\n return this;\n }", "protected void clearConditions()\n\t{\n\t\tint i ;\n\n\t\tfor (i = 0; i < _searchKeyList.size(); i++)\n\t\t{\n\t\t\tKey ky = (Key)_searchKeyList.get(i) ;\n\t\t\tif (ky.getTableValue() != null)\n\t\t\t\tbreak ;\n\t\t\t//#CM708981\n\t\t\t// Clear the order of sorting beginning\n\t\t\tky.setTableOrder(0) ;\n\t\t\tky.setTableDesc(true) ;\n\t\t\tsetSortKey(ky) ;\n\t\t\t//#CM708982\n\t\t\t// Clear the order of group beginning\n\t\t\tky.setTableGroup(0) ;\n\t\t\tsetGroupKey(ky) ;\n\t\t\t//#CM708983\n\t\t\t// Clear Acquisition Condition\n\t\t\tky.setTableCollect(\"NULL\") ;\n\t\t\tsetCollectKey(ky) ;\n\t\t}\n\n\t\tfor (int j = i; j < _searchKeyList.size();)\n\t\t{\n\t\t\t_searchKeyList.removeElementAt(j) ;\n\t\t}\n\t\t\n\t}", "public void reinitiallizeDistanceFunctionInside() {\n\t\tint i, j;\r\n\t\tfor (i = 0; i < _levelSet.length; i++) {\r\n\t\t\tfor (j = 0; j < _levelSet[i].length; j++) {\r\n\t\t\t\tint iPlus = imposeBorder(i + 1, _iSize);\r\n\t\t\t\tint iMinus = imposeBorder(i - 1, _iSize);\r\n\t\t\t\tint jPlus = imposeBorder(j + 1, _iSize);\r\n\t\t\t\tint jMinus = imposeBorder(j - 1, _iSize);\r\n\t\t\t\tif (_levelSet[i][j] <= 0) // // the check for points in region\r\n\t\t\t\t\t// // the check for points in border\r\n\t\t\t\t\tif (MatrixMath.anyNeighborIsOutside(_levelSet, i, j, iPlus,\r\n\t\t\t\t\t\t\tiMinus, jPlus, jMinus)) {\r\n\t\t\t\t\t\t// points in border are placed in narrowband\r\n\t\t\t\t\t\t// _narrowBandInside.add(new Location(i, j));\r\n\t\t\t\t\t\t_narrowBandInside.add(new Location(i, j));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// and location in distance matrix is set to infinite\r\n\t\t\t\t\t\t_levelSet[i][j] = Double.NEGATIVE_INFINITY;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// iterate until narrow band is empty\r\n\t\t// OrderByLevelSetValue comparator = new OrderByLevelSetValue();\r\n\t\t// while (_narrowBandInside.size() > 0) {\r\n\t\twhile (_narrowBandInside.size() > 0) {\r\n\t\t\t// get the maximum value\r\n\t\t\t// Location maxVal = _narrowBandInside.last();\r\n\t\t\tLocation maxVal = _narrowBandInside.last();\r\n\t\t\t// System.out.println(\"maxVal \" + maxVal);\r\n\t\t\t// System.out.println(\"_narrowBandInside.contains(maxVal) \"\r\n\t\t\t// + _narrowBandInside.contains(maxVal));\r\n\t\t\t// System.out.println(\"maxVal.compareTo(maxVal) \"\r\n\t\t\t// + maxVal.compareTo(maxVal));\r\n\r\n\t\t\t// get the neighbors that are still in _faraway\r\n\t\t\tint iPlus = imposeBorder(maxVal.i + 1, _iSize);\r\n\t\t\tint iMinus = imposeBorder(maxVal.i - 1, _iSize);\r\n\t\t\tint jPlus = imposeBorder(maxVal.j + 1, _iSize);\r\n\t\t\tint jMinus = imposeBorder(maxVal.j - 1, _iSize);\r\n\t\t\ttransferNeighborInside(iPlus, maxVal.j);\r\n\t\t\ttransferNeighborInside(iMinus, maxVal.j);\r\n\t\t\ttransferNeighborInside(maxVal.i, jPlus);\r\n\t\t\ttransferNeighborInside(maxVal.i, jMinus);\r\n\t\t\t// remove the value from the narrowband\r\n\t\t\t// _narrowBandInside.remove(maxVal);\r\n\t\t\t_narrowBandInside.remove(maxVal);\r\n\t\t}\r\n\t\t// done\r\n\t}", "@Override\n\tprotected void resetFalseClause() {\n\t\t\n\t}", "public Branch() { }", "protected IntervalNode() {\n\tthis.low = -1;\n\tthis.high = -1;\n\tthis.max = -1;\n\tthis.min = -1;\n\tthis.right = this;\n\tthis.left = this;\n\tthis.p = this;\n }", "public void initialise() {\n number_of_rays = 4; // how many rays are fired from the boat\n ray_angle_range = 145; // the range of the angles that the boat will fire rays out at\n ray_range = 30; // the range of each ray\n ray_step_size = (float) 10;\n regen = false;\n }", "void assignToRangeVariables() {\n\n for (int i = 0; i < rangeVariables.length; i++) {\n boolean isOuter = rangeVariables[i].isLeftJoin\n || rangeVariables[i].isRightJoin;\n\n if (isOuter) {\n assignToRangeVariable(rangeVariables[i], i,\n joinExpressions[i], true);\n assignToRangeVariable(rangeVariables[i], i,\n whereExpressions[i], false);\n } else {\n joinExpressions[i].addAll(whereExpressions[i]);\n assignToRangeVariable(rangeVariables[i], i,\n joinExpressions[i], true);\n }\n\n if (rangeVariables[i].hasIndexCondition()\n && inExpressions[i] != null) {\n if (!flags[i] && isOuter) {\n rangeVariables[i].addWhereCondition(inExpressions[i]);\n } else {\n rangeVariables[i].addJoinCondition(inExpressions[i]);\n }\n\n inExpressions[i] = null;\n\n inExpressionCount--;\n }\n }\n\n if (inExpressionCount != 0) {\n setInConditionsAsTables();\n }\n }", "public BoardLogic(double _startX, double _startY, double _sideLength,\n double _pieceMargin, int sideCount, int startCount) {\n // simple copying\n startX = _startX;\n startY = _startY;\n sideLength = _sideLength;\n pieceMargin = _pieceMargin;\n // calculating single unit's side length in pixels for further use\n unitLength = _sideLength / sideCount;\n // board configuration & initial logic initialization\n board = new Board(sideCount, startCount);\n legalPos = new ArrayList<>();\n lastColor = true;\n gameOver = false;\n opponentSet = false;\n }", "public void removeAllConditions()\r\n\t{\r\n\t\tconditions.clear();\r\n\t}", "public void initializeBoundary() {\n\n\t\tthis.subNetGenes = getSubNetGenes(species, xmlFile);\n\t\tthis.subNetwork = getSubNetwork(subNetGenes, oriGraphFile);\n\t\t\n\t\tSet<String> comSubNetGenes = Sets.newHashSet();\n\t\tcomSubNetGenes.addAll(this.subNetwork.keySet());\n\t\tcomSubNetGenes.addAll(this.subNetwork.values());\n\t\t\n\t\ttotalSubGeneCount = comSubNetGenes.size();\n\t\t\n\t\tcountBoundaryEdges(comSubNetGenes, oriGraphFile);\n\t\t\n\t\t\n\n\t}", "public Guard(int x, int y) {\n\t\tsuper(x, y, 'G');\n\t\t_nextMove = 0;\n\t\t_reverse = false;\n\t\t_harmless = false;\n\t}", "protected void initialize() {\n \t_finalTickTargetLeft = _ticksToTravel + Robot.driveTrain.getEncoderLeft();\n \t_finalTickTargetRight = _ticksToTravel + Robot.driveTrain.getEncoderRight();\n \t\n }", "@Override \n public void init() {\n intakeLeft = hardwareMap.crservo.get(\"intakeLeft\");\n intakeRight = hardwareMap.crservo.get(\"intakeRight\");\n topLeft = hardwareMap.servo.get(\"topLeft\");\n bottomLeft = hardwareMap.servo.get(\"bottomRight\");\n topRight = hardwareMap.servo.get(\"topRight\");\n bottomRight = hardwareMap.servo.get(\"bottomRight\");\n lift = hardwareMap.dcMotor.get(\"lift\");\n }", "private void setZeroPowerBrakes() {\n //Initialize Mecanum Wheel DC Motor Behavior\n robot2.DriveRightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n robot2.DriveRightRear.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n robot2.DriveLeftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n robot2.DriveLeftRear.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n }", "public Logic() {\n\t\tarr = new int [8][8];\n\t\tcreateNewGame();\n\t}", "public static void variableReset() {\n\t\tLogic.pieceJumped = 0;\n\t\tLogic.bool = false;\n\t\tLogic.curComp = null;\n\t\tLogic.prevComp = null;\n\t\tLogic.jumpedComp = null;\n\t\tLogic.ydiff = 0;\n\t\tLogic.xdiff = 0;\n\t\tLogic.jumping = false;\n\t\tmultipleJump = false;\n\t\t\n\t}", "@Override\n public Wrapper<Brand> buildConditions() {\n return null;\n }", "public IndicatorExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n\tprotected void initialize() {\n\t\t//hookMotor1.configPeakCurrentDuration(9000, 10000);\n\t\t//hookMotor1.configPeakCurrentLimit(40, 10000);\n\t\t//hookMotor2.configPeakCurrentDuration(9000, 10000);\n\t\t//hookMotor2.configPeakCurrentLimit(40, 10000);\n\t\thookMotor1.enableCurrentLimit(false);\n\t\thookMotor2.enableCurrentLimit(false);\n\n\t\t//first move joint2 forward to release hook\n//\t\tRobot.joint2Cmd = new Joint2Cmd(RobotMap.jointEncoder2.getRaw(), -1647, 1000);\n//\t\tRobot.joint2Cmd.start();\n\t\t\n\t\thookMotor1.set(ControlMode.PercentOutput, -1.0);\n\t\thookMotor2.set(ControlMode.PercentOutput, -1.0);\n\t\tstepCnt = 0;\n\t\tSystem.out.println(\"start climbing\");\n\t}", "@Override\n protected void initialize() {\n ramper.reset();\n Robot.toteLifterSubsystem.setGateState(GateState.OPEN);\n }", "@Override\n protected void initialize() {\n m_oldTime = Timer.getFPGATimestamp();\n m_oldError= m_desiredDistance;\n }", "private RegressionPrior() { \n /* empty constructor */\n }", "public void opInitFrom(LogicalOp logicalOperator) {\n \twindowAttribute = ((Bucket) logicalOperator).getWindowAttr();\n \twindowType = ((Bucket) logicalOperator).getWindowType();\t\t\n \trange = ((Bucket) logicalOperator).getWindowRange();\n \tslide = ((Bucket) logicalOperator).getWindowSlide();\n \twidName = ((Bucket) logicalOperator).getWid();\n \tstart = ((Bucket) logicalOperator).getStarttime();\n \tae = new AtomicEvaluator (windowAttribute.getName());\n \t\n }", "@Override\n protected void initialize() {\n if(sClimber.PreparedToClimb == true){\n sClimber.StageOneStart();\n sClimber.StageTwoStart();\n } else {\n end();\n }\n //sIntake.WristMove(mWristAngle);\n //sElevator.setHighGear(false);\n //sElevator.setPositionLowGear(mElevatorHieght);\n }", "protected void initialize() {\n Timer.delay(7);\n ballIntake.turnOnHorizontalConveyor();\n ballIntake.verticalConveyor.set(-.3);\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Range range0 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range0.getBegin(range_CoordinateSystem0);\n Range range1 = Range.of(0L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 0L, 0L);\n Object object0 = new Object();\n range2.equals(object0);\n range2.complement(range1);\n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.ZERO_BASED;\n Range range3 = Range.of(range_CoordinateSystem2, 1L, 1L);\n Range.Builder range_Builder0 = new Range.Builder(range3);\n // Undeclared exception!\n try { \n range_Builder0.contractEnd(977L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n }", "@Override\n\tpublic void CheckBounds() {\n\t\t\n\t}", "public void reset() {\n xmin = Float.MAX_VALUE;\n xmax = -Float.MAX_VALUE;\n ymin = Float.MAX_VALUE;\n ymax = -Float.MAX_VALUE;\n zmin = Float.MAX_VALUE;\n zmax = -Float.MAX_VALUE;\n }", "public void initialize() {\n if (coverage == 0 || coverage == 1) {\n pAttemptMovement = 1;\n pAttemptTransition = 1;\n } else {\n pAttemptTransition = 1.0f;\n pAttemptMovement = pmove * (1-coverage) / coverage;\n if (pAttemptMovement > 1.0f) {\n pAttemptTransition = 1 / pAttemptMovement;\n pAttemptMovement = 1.0f;\n }\n }\n // System.out.println(\"pAttemptMovement = \"+pAttemptMovement+\", pAttemptTransition = \"+pAttemptTransition);\n // accept - memoize the return values of exp for accept, because there are only a handful that get used\n map = new ExpMap(1024);\n }" ]
[ "0.6288822", "0.6071461", "0.6016731", "0.5982176", "0.5978703", "0.585407", "0.58350515", "0.5814667", "0.5698935", "0.5658062", "0.5657643", "0.56562257", "0.5654555", "0.5647472", "0.5592064", "0.5555337", "0.55353695", "0.55229867", "0.5521724", "0.5498617", "0.5483018", "0.5476629", "0.54662365", "0.5423797", "0.5414283", "0.5413765", "0.54097146", "0.5405134", "0.539906", "0.5361388", "0.5321761", "0.5313206", "0.5310266", "0.52982473", "0.52729386", "0.52605563", "0.5259535", "0.5248306", "0.5241789", "0.5241789", "0.5231421", "0.52251154", "0.52075976", "0.5205352", "0.52042925", "0.520033", "0.51417285", "0.51230437", "0.51051384", "0.5093587", "0.50816125", "0.5081503", "0.50613576", "0.5055789", "0.50541943", "0.50521874", "0.5047611", "0.50350577", "0.5034491", "0.5026204", "0.502497", "0.50243634", "0.502353", "0.502258", "0.5017304", "0.5013174", "0.50074184", "0.5006024", "0.50036556", "0.50016844", "0.4990302", "0.49899814", "0.4989977", "0.49875045", "0.49866676", "0.4983046", "0.49816722", "0.4976281", "0.49738678", "0.49701533", "0.496987", "0.4969433", "0.49684355", "0.49646524", "0.4964023", "0.49612463", "0.49584013", "0.4955808", "0.49528664", "0.49511442", "0.4949208", "0.49470413", "0.49465886", "0.49464196", "0.49437186", "0.49428403", "0.49420083", "0.49400786", "0.49344835", "0.49315795" ]
0.5091272
50
System.out.println("FIXUP: " + z.word);
public void fixup(RBTNode z){ if (z.parent == nil){ z.color = 'B'; // System.out.println("Root"); } else if (z.parent.color == 'B'); // System.out.println("NIC SIĘ NIE DZIEJE"); else if (z.parent.parent.left == z.parent) fixupL(z); else fixupR(z); // System.out.println("——————————————————— koniec fixup: " + z.word); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getWord() {\n\t\t\n\t}", "public String getWord(){\n return this.word;\n }", "public String toString()\n\t{\n\t\treturn word;\n\t}", "public String getWord(){\r\n\t\treturn word;\r\n\t}", "public String getWord(){\r\n\t\t return word;\r\n\t }", "public int zzz() {\n int i = 0;\n int zzz = super.zzz();\n if (!Arrays.equals(this.zzbuO, zzsx.zzbuD)) {\n zzz += zzsn.zzb(1, this.zzbuO);\n }\n if (this.zzbuP != null && this.zzbuP.length > 0) {\n int i2 = 0;\n int i3 = 0;\n while (i < this.zzbuP.length) {\n byte[] bArr = this.zzbuP[i];\n if (bArr != null) {\n i3++;\n i2 += zzsn.zzG(bArr);\n }\n i++;\n }\n zzz = (zzz + i2) + (i3 * 1);\n }\n return this.zzbuQ ? zzz + zzsn.zzf(3, this.zzbuQ) : zzz;\n }", "public String getWord(){\n\t\treturn word;\n\t}", "public void displayWord() {\n System.out.println(String.valueOf(display));\n }", "public String getWord()\n\t{\n\t\treturn word;\n\t}", "public String getWord()\r\n\t\t{\r\n\t\t\treturn word;\r\n\t\t}", "public String getWord() {\n return this.word;\n }", "public int getWordOffset() {\n\t\treturn wordOffset;\n\t}", "public String getz()\n\t{\n\t\treturn z.getText();\n\t}", "public String getWord() {\n\t\treturn word;\r\n\t}", "public Word getWord() {\n return word;\n }", "public String getWord() {\n return word;\n }", "public int getZ() {\r\n return z;\r\n }", "public final int zzb() {\n return this.zzx;\n }", "public int getZ() {\n return z;\n }", "public String toString(){\n\t\treturn (word + \" \" + wordCount);\n\t}", "public String getZcdw() {\n return zcdw;\n }", "public int zzu() {\n int zzu = super.zzu();\n if (this.zzcwX) {\n zzu += zzbyc.zzh(1, this.zzcwX);\n }\n if (this.score != 0) {\n zzu += zzbyc.zzL(2, this.score);\n }\n return (this.zzcwY == null || this.zzcwY.equals(\"\")) ? zzu : zzu + zzbyc.zzr(3, this.zzcwY);\n }", "public int getZ() {\n\t\treturn z;\n\t}", "double getZ() { return pos[2]; }", "@ReflectiveMethod(name = \"z\", types = {})\n public String z(){\n return (String) NMSWrapper.getInstance().exec(nmsObject);\n }", "public int zzz() {\n int i;\n int i2 = 0;\n int zzz = super.zzz();\n if (this.zzbuR != 0) {\n zzz += zzsn.zzd(1, this.zzbuR);\n }\n if (!this.tag.equals(\"\")) {\n zzz += zzsn.zzo(2, this.tag);\n }\n if (this.zzbuW != null && this.zzbuW.length > 0) {\n i = zzz;\n for (zzsu zzsu : this.zzbuW) {\n if (zzsu != null) {\n i += zzsn.zzc(3, zzsu);\n }\n }\n zzz = i;\n }\n if (!Arrays.equals(this.zzbuY, zzsx.zzbuD)) {\n zzz += zzsn.zzb(6, this.zzbuY);\n }\n if (this.zzbvb != null) {\n zzz += zzsn.zzc(7, this.zzbvb);\n }\n if (!Arrays.equals(this.zzbuZ, zzsx.zzbuD)) {\n zzz += zzsn.zzb(8, this.zzbuZ);\n }\n if (this.zzbuX != null) {\n zzz += zzsn.zzc(9, this.zzbuX);\n }\n if (this.zzbuV) {\n zzz += zzsn.zzf(10, this.zzbuV);\n }\n if (this.zzbuU != 0) {\n zzz += zzsn.zzC(11, this.zzbuU);\n }\n if (this.zzob != 0) {\n zzz += zzsn.zzC(12, this.zzob);\n }\n if (!Arrays.equals(this.zzbva, zzsx.zzbuD)) {\n zzz += zzsn.zzb(13, this.zzbva);\n }\n if (!this.zzbvc.equals(\"\")) {\n zzz += zzsn.zzo(14, this.zzbvc);\n }\n if (this.zzbvd != 180000) {\n zzz += zzsn.zze(15, this.zzbvd);\n }\n if (this.zzbve != null) {\n zzz += zzsn.zzc(16, this.zzbve);\n }\n if (this.zzbuS != 0) {\n zzz += zzsn.zzd(17, this.zzbuS);\n }\n if (!Arrays.equals(this.zzbvf, zzsx.zzbuD)) {\n zzz += zzsn.zzb(18, this.zzbvf);\n }\n if (this.zzbvg != 0) {\n zzz += zzsn.zzC(19, this.zzbvg);\n }\n if (this.zzbvh != null && this.zzbvh.length > 0) {\n i = 0;\n while (i2 < this.zzbvh.length) {\n i += zzsn.zzmx(this.zzbvh[i2]);\n i2++;\n }\n zzz = (zzz + i) + (this.zzbvh.length * 2);\n }\n if (this.zzbuT != 0) {\n zzz += zzsn.zzd(21, this.zzbuT);\n }\n return this.zzbvi != 0 ? zzz + zzsn.zzd(22, this.zzbvi) : zzz;\n }", "public int getZwid() {\n return zwid;\n }", "public int zzz() {\n int i;\n int i2;\n int i3;\n int i4 = 0;\n int zzz = super.zzz();\n if (this.zzbuI == null || this.zzbuI.length <= 0) {\n i = zzz;\n } else {\n i2 = 0;\n i3 = 0;\n for (String str : this.zzbuI) {\n if (str != null) {\n i3++;\n i2 += zzsn.zzgO(str);\n }\n }\n i = (zzz + i2) + (i3 * 1);\n }\n if (this.zzbuJ != null && this.zzbuJ.length > 0) {\n i3 = 0;\n zzz = 0;\n for (String str2 : this.zzbuJ) {\n if (str2 != null) {\n zzz++;\n i3 += zzsn.zzgO(str2);\n }\n }\n i = (i + i3) + (zzz * 1);\n }\n if (this.zzbuK != null && this.zzbuK.length > 0) {\n i3 = 0;\n for (int zzz2 : this.zzbuK) {\n i3 += zzsn.zzmx(zzz2);\n }\n i = (i + i3) + (this.zzbuK.length * 1);\n }\n if (this.zzbuL == null || this.zzbuL.length <= 0) {\n return i;\n }\n i2 = 0;\n while (i4 < this.zzbuL.length) {\n i2 += zzsn.zzas(this.zzbuL[i4]);\n i4++;\n }\n return (i + i2) + (this.zzbuL.length * 1);\n }", "@Override\n public String getWord(){\n return word;\n }", "public final int zzc() {\n return this.zzz;\n }", "public DoubleWord(){\n\t\tsuper();\n\t}", "public double getZ(){\n\t\treturn z;\n\t}", "public double getZ() {\r\n\t\treturn z;\t\r\n\t\t}", "int getWord( int pos){\n\t\treturn data[pos] + (data[pos+1] << 8);\n\t}", "public int getZ() {\n return Z;\n }", "public int getWordPosition() {\n return wordPosition;\n }", "private static HashMap<String, Integer> getWordIndex()\n\t{\n\t\treturn aWordIndex;\n\t}", "public int calWord() {\n for(int i = 0; i < newWord.length(); i++) {\n for (String c : keySetPoint) {\n if(String.valueOf(newWord.charAt(i)).equals(c)) {\n point += mapPoint.get(c);\n }\n }\n }\n\n return point;\n }", "java.lang.String getWord();", "public int zzz() {\n int zzz = super.zzz();\n if (this.zzbuM != 0) {\n zzz += zzsn.zzC(1, this.zzbuM);\n }\n if (!this.zzbuN.equals(\"\")) {\n zzz += zzsn.zzo(2, this.zzbuN);\n }\n return !this.version.equals(\"\") ? zzz + zzsn.zzo(3, this.version) : zzz;\n }", "public String getWzwd() {\r\n return wzwd;\r\n }", "public void debug(String word)\n\t{\n\t\tif(debug)\n\t\tSystem.out.println(word);\n\t}", "public double getZ() {\r\n return z;\r\n }", "public String getZyfl() {\n return zyfl;\n }", "public String getWord()\n\t{\n\t\treturn word.get(matcher());\n\t}", "public int getZ() {\n return Z;\n }", "double getz() {\nreturn this.z;\n }", "public double getZ() {\n\t\treturn z;\n\t}", "public double getZ() {\n\t\treturn z;\n\t}", "public Double z() {\n return z;\n }", "public final int zzb() {\n return this.zzc.zzc() + this.zza + this.zzb;\n }", "public final /* synthetic */ void zzx() {\n zzbu zzw = zzw();\n if (zzw != null) {\n this.zzbb.add(zzw);\n }\n }", "public n baw() {\n return this.ewZ;\n }", "public String getZpdz() {\n return zpdz;\n }", "String getLocation() {\n return super.getLocation()+ \", z : \" + z;\n }", "public final int zzbel() {\n return this.zzidx;\n }", "public static asw m47155c() {\n return zzfkz;\n }", "public void printWord(){\n\t\tint length = word.length;\n\t\tfor(int i = 0; i < length; i++){\n\t\t\tSystem.out.print(word[i]);\n\t\t}\n\t}", "public String getBzdw() {\n return bzdw;\n }", "void mo28307a(zzgd zzgd);", "@Override\n\tpublic double getZ() {\n\t\treturn z;\n\t}", "public int getZ()\n {\n return zaxis;\n }", "@NonNull\n @Override\n public String toString() {\n return word;\n }", "public int getZY() {\n\t\treturn zY;\n\t}", "public int mo33391b(boolean z) {\n mo33388a(true, (String) null);\n return 0;\n }", "public void printWordContentDetailed()\n\t{\n\t\tthis.removeDuplicateAffixes();\n\n\n\t\tprintln(\"Printing contents of the Word object/class.\");\n\t\tif( word.finalContentsReady(true) == true)\n\t\t{\n\t\t\tprintln(\"Original: \" + word.getOriginalWord() + \"| Root: \" + this.rootWord);\n\t\t\tprintln(\"Number of Affixes in the original word: \" + word.getAffixCount());\n\t\t\tprintln(\"Prefixes: \" + this.prefixes.size() + \" | Infixes: \" + this.infixes.size() + \" | Suffixes: \" + this.suffixes.size());\n\t\t\tprintln(\"Printing Prefixes:\");\n\t\t\tfor(int i = 0; i < this.prefixes.size(); i++)\n\t\t\t{\n\t\t\t\tprintln( \"PFX: \" + this.prefixes.get(i).getAffix() );\n\t\t\t}\n\n\t\t\tprintln(\"Printing Infixes:\");\n\t\t\tfor(int i = 1; i < this.infixes.size(); i++)\n\t\t\t{\n\t\t\t\tprintln( \"IFX: \" + this.infixes.get(i).getAffix() );\n\t\t\t}\n\n\t\t\tprintln(\"Printing Suffixes:\");\n\t\t\tfor(int i = 0; i < this.suffixes.size(); i++)\n\t\t\t{\n\t\t\t\tprintln( \"SFX: \" + this.suffixes.get(i).getAffix() );\n\t\t\t}\n\t\t}\n\t}", "public String englishWord() {\n\t\treturn \"Debug\";\n\t}", "public int getZ() {\n\t\treturn -150;\n\t}", "public float getZ()\n {\n return fz;\n }", "public float getZ() {\r\n return z;\r\n }", "public final /* synthetic */ void zzy() {\n zzbu zzw = zzw();\n if (zzw != null) {\n this.zzbb.add(zzw);\n }\n }", "int getZ();", "int getZ();", "int getZ();", "public int zzz() {\n int zzz = super.zzz();\n if (!this.key.equals(\"\")) {\n zzz += zzsn.zzo(1, this.key);\n }\n return !this.value.equals(\"\") ? zzz + zzsn.zzo(2, this.value) : zzz;\n }", "public String getNzbz() {\n return nzbz;\n }", "@Override\n\tpublic int getZ() {\n\t\treturn 1000;\n\t}", "public final Field zze() {\n int i = this.zzaa << 1;\n Object obj = this.zzb[i];\n if (obj instanceof Field) {\n return (Field) obj;\n }\n Field zza2 = zza(this.zzc, (String) obj);\n this.zzb[i] = zza2;\n return zza2;\n }", "public int zzB() {\n return 0;\n }", "void dump() {\n\t\tSystem.out.print(\"I am: \" + (territoryID));\n\t\tSystem.out.print(\"\\tNeighbour of:\");\n\n\t}", "public String getZhuanjiaxingming() {\n return zhuanjiaxingming;\n }", "public final int zzj() {\n return this.zzab % 32;\n }", "public double getHiZ() {\r\n\treturn fieldHiZ;\r\n}", "protected abstract String getZ();", "public double getLoZ() {\r\n\treturn fieldLoZ;\r\n}", "public int getzPos() {\n return zPos;\n }", "@Override\n\tpublic void girth() {\n\t\tSystem.out.println(this.name+\"的周长:\"+ (land1+land2+land3));\n\t}", "static void printWord(String propozitie) {\n System.out.println(propozitie);\n\n\n }", "public final int mo13053s() {\n return this.zzb;\n }", "public final int zzc() {\n return this.zzc.zzc() + this.zza;\n }", "public static void show() {\r\n\t\t int[] forword=new int[6];\r\n\t\t int[] temp;\r\n\t\t for(int i=1;i<7;i++){\r\n\t\t\t temp=Arrays.copyOf(forword, 6);\r\n\t\t\t for(int j=0;j<i;j++){\r\n\t\t\t\t if(j==0){\r\n\t\t\t\t\t forword[0]=i;\r\n\t\t\t\t\t System.out.print(forword[0]+\" \");\r\n\t\t\t\t }else{\r\n\t\t\t\t\t forword[j]=forword[j-1]+temp[j-1];\r\n\t\t\t\t\t System.out.print(forword[j]+\" \");\t\t \r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t System.out.println();\r\n\t\t }\r\n\t\t //0-9:48-57 ; A-Z:65-90 ; a-z:97-122 \r\n\t\t\r\n\t}", "int getNNZ(){\n return this.nnz;\n }", "com.google.protobuf.ByteString\n getWordBytes();", "@Override\n public String toString() {\n \treturn title + \":\" + word ;\n }", "public double getWordSpace(\n )\n {return wordSpace;}", "public void setZ(int z) {\r\n this.z = (short) z;\r\n }", "void mo28717a(zzc zzc);", "public DerivedWord getData() {\n \treturn this.data;\n }", "public void Print_place()\n {\n\n System.out.println(\"Place: \" + place);\n }", "public void printWord(String generatedWord) {\n System.out.printf(COMPARATOR_PRINT, generatedWord);\n System.out.println();\n }", "public int getZX() {\n\t\treturn zX;\n\t}" ]
[ "0.6466484", "0.5947127", "0.58845824", "0.5843988", "0.58402914", "0.58362", "0.5829699", "0.58196616", "0.5793876", "0.5781786", "0.576998", "0.57616556", "0.5744443", "0.57400304", "0.5700578", "0.56791526", "0.56706834", "0.566797", "0.562798", "0.5606965", "0.56029916", "0.5601834", "0.55816317", "0.5580129", "0.55427027", "0.55414903", "0.55146986", "0.5514008", "0.55119073", "0.5500192", "0.5490915", "0.5486777", "0.54789716", "0.54759604", "0.5472373", "0.5463264", "0.5455872", "0.5451169", "0.545093", "0.5423629", "0.5393377", "0.5386913", "0.5379647", "0.5367794", "0.5341588", "0.5341152", "0.53160846", "0.53126717", "0.53126717", "0.5311319", "0.5303589", "0.5277224", "0.5276705", "0.5275056", "0.52717483", "0.5270844", "0.52414304", "0.52407247", "0.5235132", "0.5231626", "0.5227088", "0.5226328", "0.5214216", "0.5209553", "0.51868653", "0.51858354", "0.5181476", "0.51808256", "0.51800746", "0.517044", "0.5168278", "0.5165375", "0.5165375", "0.5165375", "0.5162731", "0.51609796", "0.51545143", "0.51543343", "0.51505905", "0.51462436", "0.513854", "0.5126148", "0.5124109", "0.51155823", "0.5110988", "0.5109678", "0.5108699", "0.50974625", "0.50969815", "0.5096966", "0.50947565", "0.50938255", "0.5087002", "0.50814384", "0.5068596", "0.50684863", "0.5067977", "0.50659096", "0.5065145", "0.5063931", "0.50614536" ]
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(ManuDisplayPart.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "public Result get(Get get) throws IOException;", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }", "@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}", "public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }", "@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}" ]
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234", "0.6754993", "0.6754993", "0.67394847", "0.6719924", "0.6716244", "0.67054695", "0.67054695", "0.67012346", "0.6684415", "0.6676695", "0.6675696", "0.6675696", "0.66747975", "0.66747975", "0.6669016", "0.66621476", "0.66621476", "0.66476154", "0.66365504", "0.6615004", "0.66130257", "0.6604073", "0.6570195", "0.6551141", "0.65378064", "0.6536579", "0.65357745", "0.64957607", "0.64672184", "0.6453189", "0.6450501", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.6411481", "0.64067316", "0.6395873", "0.6379907", "0.63737476", "0.636021", "0.6356937", "0.63410467", "0.6309468", "0.630619", "0.630263", "0.63014317", "0.6283933", "0.62738425", "0.62680805", "0.62585783", "0.62553537", "0.6249043", "0.62457556", "0.6239428", "0.6239428", "0.62376446", "0.62359244", "0.6215947", "0.62125194", "0.6207376", "0.62067443", "0.6204527", "0.6200444", "0.6199078", "0.61876005", "0.6182614", "0.61762017", "0.61755335", "0.61716276", "0.6170575", "0.6170397", "0.616901" ]
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(ManuDisplayPart.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException 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\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197", "0.6515622", "0.6513045", "0.6512626", "0.6492367", "0.64817846", "0.6477479", "0.64725804", "0.6472099", "0.6469389", "0.6456206", "0.6452577", "0.6452577", "0.6452577", "0.6450273", "0.6450273", "0.6438126", "0.6437522", "0.64339423", "0.64253825", "0.6422238", "0.6420897", "0.6420897", "0.6420897", "0.6407662", "0.64041835", "0.64041835", "0.639631", "0.6395677", "0.6354875", "0.63334197", "0.6324263", "0.62959254", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6280875", "0.6272104", "0.6272104", "0.62711537", "0.62616795", "0.62544584", "0.6251865", "0.62274224", "0.6214439", "0.62137586", "0.621211", "0.620854", "0.62023044", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61638993", "0.61603814", "0.6148914", "0.61465937", "0.61465937", "0.614548", "0.6141879", "0.6136717", "0.61313903", "0.61300284", "0.6124381", "0.6118381", "0.6118128", "0.61063534", "0.60992104", "0.6098801", "0.6096766" ]
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }", "@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n return \"Short description\";\n }" ]
[ "0.8763708", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.86993164", "0.86993164", "0.86993164", "0.86993164", "0.86993164", "0.86993164", "0.85319316", "0.85319316", "0.85287464", "0.85287464", "0.85287464", "0.85282564", "0.85282564", "0.85282564", "0.85282564", "0.85282564", "0.85282564", "0.85176504", "0.8512932", "0.85120165", "0.85110646", "0.8497134" ]
0.0
-1
Vraca ukupan broj NEOBRISANIH setaca.
@Override public Long getNumberOfWalkers() { return walkerRepo.countById(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void asetaTeksti(){\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void zpracujObjednavky()\n\t{\n\t\tint idtmp = 0;\n\t\tfloat delkaCesty = 0;\n\t\t\n\t\tif (this.objednavky.isEmpty())\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tNakladak nakl = (Nakladak) getVolneAuto();\n\t\t\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\tObjednavka ob = this.objednavky.remove();\n\n\t\t/*System.out.println();\n\t\tSystem.out.println(\"Objednavka hospody:\" + ob.id + \" se zpracuje pres trasu: \");\n\t\t */\n\t\tdelkaCesty += vyberCestu(this.id, ob.id, nakl);\n\t\t\n\t\twhile(nakl.pridejObjednavku(ob))\n\t\t{\n\t\t\tidtmp = ob.id;\n\t\t\t\n\t\t\tob = vyberObjednavku(ob.id);\n\t\t\tif (ob == null)\n\t\t\t{\n\t\t\t\tob=nakl.objednavky.getLast();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobjednavky.remove(ob);\n\t\t\t\n\t\t\tdelkaCesty += vyberCestu(idtmp, ob.id, nakl);\n\t\t\t\n\t\t\tif((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t/*\n\t\t\tif((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}*/\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//cesta zpatky\n\t\tvyberCestu(ob.id, this.id, nakl);\n\t\tif (nakl.objem >= 1)\n\t\t{\n\t\t\tnakl.kDispozici = false;\n\t\t\tnakl.jede = true;\n\t\t\t//vytvoreni nove polozky seznamu pro statistiku\n\t\t\tnakl.novaStatCesta();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnakl.resetCesta();\n\t\t}\n\t}", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }", "public void przestaw(int ktoraRamkaKurwa){ //0 nic, 1 korwin, 2 nosacz\n\n\t\tthis.ktoraRamkaKurwa = ktoraRamkaKurwa;\n\t\tktoraRamka++; \n\t}", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public void bayar() {\n transaksi.setStatus(\"lunas\");\n setLunas(true);\n }", "public abstract String dohvatiKontakt();", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "public void pretraziPoslovneKorisnike() throws BazaPodatakaException {\r\n\t\tString naziv = nazivTF.getText().toLowerCase();\r\n\t\tString web = webTF.getText().toLowerCase();\r\n\t\tString email = emailTF.getText().toLowerCase();\r\n\t\tString telefon = telefonTF.getText();\r\n\r\n\t\tList<PoslovniKorisnik> listaKorisnika = BazaPodataka.dohvatiPoslovnogKorisnikaPremaKriterijima(email, telefon,\r\n\t\t\t\tnaziv, web);\r\n\t\ttablicaPoslovnihKorisnika.setItems(FXCollections.observableArrayList(listaKorisnika));\r\n\r\n\t}", "public static void proveraServisa() {\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje racunate vreme sledeceg servisa:\");\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tUtillMethod.proveraServisaVozila(Main.getVozilaAll().get(redniBroj));\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "private void iniciarNovaVez() {\n this.terminouVez = false;\n }", "private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}", "public static void brisanjeVozila() {\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tSystem.out.println(i + \"-Vrsta Vozila|\" + v.getVrstaVozila() + \" Registarski broj|\" + v.getRegBR()\n\t\t\t\t\t+ \" Status izbrisanosti vozila|\" + v.isVozObrisano());\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"----------------------------------------\");\n\t\tSystem.out.println(\"Unesite redni broj vozila koje zelite da izbrisete ili vratite u neobrisano stanje\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tVozilo temp = Main.getVozilaAll().get(redniBroj);\n\t\t\tif (UtillMethod.voziloImaRezervacije(temp)) {\n\t\t\t\tSystem.out.println(\"Ovo vozilo ima aktivne rezervacije i ne moze biti obrisano!\");\n\t\t\t} else {\n\t\t\t\tif (temp.isVozObrisano()) {\n\t\t\t\t\ttemp.setVozObrisano(false);\n\t\t\t\t\tSystem.out.println(\"Vozilo je vraceno u sistem(neobrisano stanje)\");\n\t\t\t\t} else {\n\t\t\t\t\ttemp.setVozObrisano(true);\n\t\t\t\t\tSystem.out.println(\"Vozilo je uspesno izbrisano!\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji vozilo sa tim brojem!\");\n\t\t}\n\t}", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedist = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "public void testAuta()\n\t{\n\t\tNakladak nakl = new Nakladak(Simulator.getCas());\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\t//cesta po prekladistich\n\t\tfor(int i=4001;i<4009;i++)\n\t\t{\n\t\t\tnakl.cesta.add(i);\n\t\t}\n\t\tnakl.kDispozici = false;\n\t\tnakl.jede = true;\n\t\tsim.addObserver(nakl);\n\t\t\n\t\tthis.vozy.add(nakl);\n\t\t\n\t}", "private void poczatkowe_zmienne()\n {\n konfiguracja.loadProperties();\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(\"predkosc_wroga\"));\n czas_watku=Integer.parseInt(konfiguracja.properties.getProperty(\"czas_watku\"));\n punkty_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(\"punkty_poziomu\"));\n zmienne_poziomu(poziom);\n }", "public void vlozNaUcet(int ciastka, TerminovanyUcet terminovanyUcet) {\r\n\t\tcislo += ciastka;\r\n\t\tterminovanyUcet.setVklad(ciastka);\r\n\t\tSporiaciUcet.super.setVyber(ciastka);\r\n\t}", "public static void korisnikNijeUneoIspravnuSifru() {\r\n\t\tJOptionPane.showMessageDialog(teretanaGui.getContentPane(), \"Niste uneli ispravnu sifru!\", \"Obavestenje\",\r\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void vlozNaUcet(int ciastka, BeznyUcet beznyUcet) {\r\n\r\n\t\tcislo += ciastka;\r\n\t\tbeznyUcet.setVklad(ciastka);\r\n\t\tsetVyber(ciastka);\r\n\r\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}", "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public doimatkhau() {\n initComponents();\n setLocationRelativeTo(null);\n txtTendangnhap.setText(sharehelper.user.getMaNV());\n }", "public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\n }", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }", "public void setBunga(int tipeBunga){\n }", "public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}", "public Tura() {\n\t\tLicznikTur = 0;\n\t}", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "@Test\n public void testSetSiirSuunta() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n try {\n k.setSiirSuunta(-1);\n } catch (Exception e) {\n assertTrue(\"Sirtymissuunnan muutos aiheuttaa virheen\", true);\n }\n }", "public void uruchomGre()\n\t{\n\t\tustawPojazdNaPoczatek();\n\t\tplanszaWidokHND.repaint();\n\t\twToku = true;\n\t\tzegar.start();\n\t\tpauza = false;\n\t}", "public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void vaaraSyote() {\n System.out.println(\"En ymmärtänyt\");\n kierros();\n }", "private void inizia() throws Exception {\n this.setNomeChiave(CHIAVE_NAV);\n this.setUsaNuovo(false);\n this.setUsaElimina(false);\n this.setUsaRicerca(true);\n this.setUsaSelezione(true);\n this.setUsaStampaLista(false);\n this.setUsaProietta(false);\n this.setAggiornamentoTotaliContinuo(true);\n }", "public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public void eisagwgiAstheni() {\n\t\t// Elegxw o arithmos twn asthenwn na mhn ypervei ton megisto dynato\n\t\tif(numOfPatient < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tpatient[numOfPatient] = new Asthenis();\n\t\t\tpatient[numOfPatient].setFname(sir.readString(\"DWSTE TO ONOMA TOU ASTHENH: \")); // Pairnei to onoma tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU ASTHENH: \")); // Pairnei to epitheto tou asthenh apo ton xrhsth\n\t\t\tpatient[numOfPatient].setAMKA(rnd.nextInt(1000000)); // To sistima dinei automata ton amka tou asthenous\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t//Elegxos monadikotitas tou amka tou astheni\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tif(patient[i].getAMKA() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfPatient++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS ASTHENEIS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "void tampilKarakterA();", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }", "public static void dodavanjeTeretnogVozila() {\n\t\tString vrstaVozila = \"Teretno Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 20000;\n\t\tdouble cenaServisa = 10000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedista = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tSystem.out.println(\"Unesite maximalnu masu koje vozilo moze da prenosi u KG !!\");\n\t\tint maxMasauKg = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite maximalnu visinu u m:\");\n\t\tdouble visinauM = UtillMethod.unesiteBroj();\n\t\tTeretnaVozila vozilo = new TeretnaVozila(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedista, brVrata, vozObrisano, servisiNadVozilom, maxMasauKg, visinauM);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}", "Karyawan(String n)\n {\n this.nama = n;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}", "public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "private void ustvariOknoInPlosco(final int wOkno, final int hOkno) {\n\n // Swingove komponente lahko izdelujemo in posodabljamo samo takrat,\n // ko te\"ce dogodkovna nit (EDT). Metoda invokeLater po\"caka, da ta\n // nit pride na vrsto. Ko se to zgodi, izvede metodo run objekta tipa\n // Runnable, ki ga prejme kot parameter.\n\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n // izdelaj okno\n JFrame okno = new JFrame(\"Piramida\");\n okno.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n // okno postavi na sredino zaslona\n Dimension dZaslon = Toolkit.getDefaultToolkit().getScreenSize();\n int xOkno = (dZaslon.width - wOkno) / 2;\n int yOkno = (dZaslon.height - hOkno) / 2;\n okno.setBounds(xOkno, yOkno, wOkno, hOkno);\n\n // izdelaj plo\"s\"co in jo poka\"zi na okno\n okno.setLayout(new BorderLayout());\n JPanel risalnaPlosca = OsnovaZaRisanje.this.new RisalnaPlosca();\n okno.add(risalnaPlosca, BorderLayout.CENTER);\n\n // prika\"zi okno\n okno.setVisible(true);\n }\n });\n }", "public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }", "public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}", "public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "private static void cajas() {\n\t\t\n\t}", "public RekapKamar() {\n Koneksi DB = new Koneksi();\n DB.koneksi();\n con = DB.conn;\n stat = DB.stmn;\n initComponents();\n loadTabel();\n }", "public void Ordenamiento() {\n\n\t}", "public void inicjalizujRynek()\n\t{\n\t\tif (!Stale.cenyZGeneratora)\n\t\t{\n\t\t\tlistaCenWczytanaZPliku=loader.loadPrices();\n\t\t}\n\t}", "public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public void ukloniHranu() {\n\t\tthis.tabla[iHrana][jHrana] = '.';\t\t\n\t}", "public void testBirikimliIstatistikCercevesiEkle() {\n System.out.println(\"birikimliIstatistikCercevesiEkle\");\n IstatistikAlici istatistikAlici = null;\n Yakalayici instance = new Yakalayici();\n instance.birikimliIstatistikCercevesiEkle(istatistikAlici);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "public void choixduJeu() {\n afficheMessage(\"*- Choisissez le jeu auquel vous voulez jouer : \\n- R pour Recherche +/-\\n- M pour Mastermind\");\n choixJeu = Console.saisieListeDeChoix(\"R|M\");\n afficheMessage(\"*- Choisissez le mode de jeu auquel vous voulez jouer :\\n- C pour Challenger,\\n- U pour Duel\\n- D pour Defense\");\n choixModeJeu = Console.saisieListeDeChoix(\"C|U|D\");\n }", "public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}", "public boolean iliskiMutfakEkleme(int kullanici_no, int urun_kodu) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n String sorgu3 = \"insert into iliski_mutfak (kullanici_no, urun_kodu) values (\" + kullanici_no + \", \" + urun_kodu + \")\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n vb.con.close();\r\n ps.close();\r\n return true;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return false;\r\n }\r\n }", "public void somaVezes(){\n qtVezes++;\n }", "void hienThi() {\n LoaiVT.Open();\n ArrayList<LoaiVT> DSSP = LoaiVT.DSLOAIVT;\n VatTu PX = VatTu.getPX();\n \n try {\n txtMaVT.setText(PX.getMaVT());\n txtTenVT.setText(PX.getTenVT());\n txtDonVi.setText(PX.getDVT());\n DefaultComboBoxModel cb = new DefaultComboBoxModel();\n for(LoaiVT SP: DSSP){ \n cb.addElement(SP.getMaLoai());\n if(SP.getMaLoai().equals(PX.getMaLoai())){\n cb.setSelectedItem(SP.getMaLoai());\n }\n }\n cbMaloai.setModel(cb);\n } catch (Exception ex) {\n txtMaVT.setText(\"\");\n txtTenVT.setText(\"\");\n txtDonVi.setText(\"\");\n DefaultComboBoxModel cb = new DefaultComboBoxModel();\n cb.setSelectedItem(\"\");\n cbMaloai.setModel(cb);\n }\n \n \n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}" ]
[ "0.6790409", "0.677101", "0.6756174", "0.67432356", "0.6739967", "0.6730448", "0.6699783", "0.6699144", "0.6692039", "0.667255", "0.6671742", "0.6664167", "0.6595577", "0.65620923", "0.65423715", "0.65195644", "0.65175414", "0.6507694", "0.6503789", "0.6499806", "0.6464859", "0.6457125", "0.6451342", "0.6449295", "0.64483386", "0.64460284", "0.6429323", "0.64282966", "0.64268684", "0.6423418", "0.6418471", "0.6414513", "0.64134896", "0.6404833", "0.6404728", "0.64029104", "0.6392528", "0.6373154", "0.6372471", "0.6365782", "0.6364322", "0.6362328", "0.6355171", "0.6354854", "0.6350062", "0.63317704", "0.6331541", "0.63177145", "0.6317462", "0.63142496", "0.6289126", "0.62847674", "0.6280345", "0.6276058", "0.62574905", "0.6254033", "0.62490505", "0.624473", "0.624382", "0.6239951", "0.62305266", "0.62187743", "0.62169313", "0.6216058", "0.620098", "0.6199819", "0.6198418", "0.61960053", "0.6191984", "0.6185734", "0.6181093", "0.61715454", "0.61712277", "0.61604935", "0.61561215", "0.61543596", "0.6153831", "0.6153351", "0.61490774", "0.61406255", "0.6123298", "0.61170256", "0.611555", "0.61112666", "0.6109777", "0.61065763", "0.6105318", "0.609974", "0.6099071", "0.60969234", "0.6093176", "0.60893595", "0.60892284", "0.608649", "0.6086395", "0.6085471", "0.60844535", "0.608043", "0.60800385", "0.60772836", "0.607561" ]
0.0
-1
Promjena osnovnih informacija profila setaca.
@Override public WalkerDetails editWalkerProfile(WalkerEdit walkerEdit) { Assert.notNull(walkerEdit, "Walker object must be given"); Optional<Walker> walkerOpt = walkerRepo.findById(walkerEdit.getId()); Optional<WalkerLogin> walkerLoginOpt = walkerLoginRepo.findById(walkerEdit.getId()); if (walkerOpt.isEmpty()){ throw new RequestDeniedException("Walker with ID " + Long.toString(walkerEdit.getId()) + " doesn't exist!"); } if(walkerLoginOpt.isEmpty()) { throw new RequestDeniedException("Error while fetching user with ID " + Long.toString(walkerEdit.getId())); } Walker walker = walkerOpt.get(); WalkerLogin walkerLogin = walkerLoginOpt.get(); Assert.notNull(walkerEdit.getFirstName(), "First name must not be null"); Assert.notNull(walkerEdit.getLastName(), "Last name must not be null"); Assert.notNull(walkerEdit.getEmail(), "Email must not be null"); if((!walker.getEmail().equals(walkerEdit.getEmail())) && (!emailAvailable(walkerEdit.getEmail()))) { throw new RequestDeniedException("User with email "+ walkerEdit.getEmail() + " already exists."); } walker.setFirstName(walkerEdit.getFirstName()); walker.setLastName(walkerEdit.getLastName()); walker.setEmail(walkerEdit.getEmail()); walker.setPhoneNumber(walkerEdit.getPhoneNumber()); walker.setPublicStats(walkerEdit.isPublicStats()); if((!walkerLogin.getUsername().equals(walkerEdit.getUsername())) && (!usernameAvailable(walkerEdit.getUsername()))) { throw new RequestDeniedException("User with username "+ walkerEdit.getUsername() + " already exists."); } walkerLogin.setUsername(walkerEdit.getUsername()); walkerRepo.save(walker); walkerLoginRepo.save(walkerLogin); return this.getWalkerDetailsById(walkerEdit.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void mostrarInformacionP(){\n System.out.println(\"Nombre: \"+this.nombre);\n System.out.println(\"Sexo: \"+ this.sexo);\n System.out.println(\"Edad: \" + edad);\n\n }", "private void carregaInformacoes() {\n Pessoa pessoa = (Pessoa) getIntent().getExtras().getSerializable(\"pessoa\");\n edtNome.setText(pessoa.getNome());\n edtEmail.setText(pessoa.getEmail());\n edtTelefone.setText(pessoa.getTelefone());\n edtIdade.setText(pessoa.getIdade());\n edtCPF.setText(pessoa.getCpf());\n }", "public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }", "public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }", "public static void proveraServisa() {\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje racunate vreme sledeceg servisa:\");\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tUtillMethod.proveraServisaVozila(Main.getVozilaAll().get(redniBroj));\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public void mostrarFatura() {\n\n int i;\n System.err.println(\"Fatura do contrato:\\n\");\n\n if (hospedesCadastrados.isEmpty()) {//caso nao existam hospedes\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n\n } else {\n System.err.println(\"Digite o cpf do hospede:\\n\");\n\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {//roda os hospedes cadastrados\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o hospede pelo cpf\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//caso a situacao do contrato ainda estaja ativa\n\n System.err.println(\"Nome do hospede:\" + hospedesCadastrados.get(i).getNome());\n System.err.println(\"CPF:\" + hospedesCadastrados.get(i).getCpf() + \"\\n\");\n System.err.println(\"Servicos pedidos:\\nCarros:\");\n if (!(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().toString());\n System.err.println(\"Total do serviço de aluguel de carros R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalCarros() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui carros cadastrados!\\n\");\n }\n System.err.println(\"Quartos:\");\n if (!(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().toString());\n System.err.println(\"Total do servico de quartos R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalQuartos() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui Quartos cadastrados!\\n\");\n }\n System.err.println(\"Restaurante:\");\n System.err.println(\"Total do servico de restaurante R$: \" + hospedesCadastrados.get(i).getContrato().getValorRestaurante() + \"\\n\");\n System.err.println(\"Total de horas de BabySitter contratatas:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() / 45 + \"\\n\"\n + \"Total do servico de BabySitter R$:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() + \"\\n\");\n System.err.println(\"Total Fatura final: R$\" + hospedesCadastrados.get(i).getContrato().getContaFinal());\n //para limpar as disponibilidades dos servicos\n //carros, quarto, contrato e hospede\n //é necessario remover o hospede?\n// \n\n } else {//caso o contrato esteja fechado\n System.err.println(\"O hospede encontra-se com o contrato fechado!\");\n }\n }\n\n }\n }\n }", "public void mostrarInformacion(){\n mostrarInformacionP();\n }", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "public void publicarPropuestas() {\n try {\n //SISTEMA VERIFICA QUE LOS COMPROMISOS PARA EL PERIODO HAYAN SIDO INGRESADO\n if (this.listaCompromiso == null || this.listaCompromiso.isEmpty()) {\n //MUESTRA MENSAJE: 'DEBE INGRESAR LOS COMPROMISOS PARA PODER PUBLICAR ', NO ES POSIBLE PUBLICAR LOS RESULTADOS \n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_add_comprimiso_faltantes\"));\n return;\n }\n String mensajeValidacion = validarCompromisosPeriodoByPropuestaNacesidad(this.propuestaSeleccionada);\n if (mensajeValidacion != null) {\n addErrorMessage(keyPropertiesFactory.value(mensajeValidacion));\n return;\n }\n if (IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA.compareTo(this.propuestaSeleccionada.getConstantes().getIdConstantes()) != 0) {\n addErrorMessage(\"La propuesta debe estar en estado Pre-Aprobado\");\n return;\n }\n /*byte[] bitesPdf;\n //GENERAMOS EL REPORTE - CREADOR DE REPORTES\n try {\n HashMap mapa = new HashMap();\n mapa.put(\"p_id_periodo\", periodoSeleccionado.getIdPeriodo().intValue());\n bitesPdf = GeneradorReportesServicio.getInstancia().generarReporte(mapa, \"reporte15.jasper\");\n } catch (Exception e) {\n adicionaMensajeError(\"ERROR, Se presentaron errores al general el reporte JASPER\");\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, \"CU-NE-06(publicarPropuestas)\", e);\n return;\n }*/\n String iniciaCodigoVic = keyPropertiesFactory.value(\"cu_ne_6_codigo_proyecto_inicia_generacion\");\n if (iniciaCodigoVic.contains(\"-----NOT FOUND-----\")) {\n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_error_no_existe_codigo_proyecto_inicia_generacion\"));\n return;\n }\n //EL SISTEMA CAMBIA EL ESTADO DE TODAS LAS PROPUESTAS DEL LISTADO DE ''PRE-APROBADA ' A 'APROBADA' \n //Y LOS DE ESTADO 'REVISADA' A 'NO APROBADA' \n List<SieduPropuestaAsignada> lstPropuestaasignada = this.servicePropuestaAsignada.findByVigencia(this.propuestaSeleccionada);\n List<Long> lstLong = new ArrayList<>();\n for (SieduPropuestaAsignada s : lstPropuestaasignada) {\n lstLong.add(s.getPropuestaNecesidad().getIdPropuestaNecesidad());\n }\n Proyecto proyecto = new Proyecto();\n int contarProyecto = iProyectoLocal.contarProyectoByVigencia(lstLong);\n Constantes constantes = iConstantesLocal.getConstantesPorIdConstante(IConstantes.DURACION_PROYECTOS_INSTITUCIONALES);\n int numeroMesesEstimacionProyecto = Integer.parseInt(constantes.getValor());\n UsuarioRol usuarioRol = new UsuarioRol(loginFaces.getPerfilUsuarioDTO().getRolUsuarioPorIdRolDTO(IConstantesRole.EVALUADOR_DE_PROPUESTAS_DE_NECESIDADES_EN_LA_VICIN).getIdUsuarioRol());\n if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA)) {\n EjecutorNecesidad ejecutorNecesidadResponsable = iEjecutorNecesidadLocal.getEjecutorNecesidadPorPropuestaNecesidadYRolResponsable(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n if (ejecutorNecesidadResponsable == null || ejecutorNecesidadResponsable.getUnidadPolicial() == null || ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica() == null) {\n addErrorMessage(\"Error, Verifique la sigla física de la Unidad Policial asociada a la propuesta: \" + this.propuestaSeleccionada.getTema());\n return;\n }\n\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_APROBADA));\n //POR CADA PROPROPUESTA APROBADA SE CREA UN PROYECTO\n //CREA UN PROYECTO DE INVESTIGACIÓN POR CADA PROPUESTA CON EL ESTADO 'APROBADA', \n //ASIGNÁNDOLE EL CÓDIGO DE INVESTIGACIÓN DE ACUERDO AL MÉTODO ESTABLECIDO(VER REQUERIMIENTOS ESPECIALES), \n //ASIGNÁNDOLE EL ÁREA Y LA LÍNEA DE INVESTIGACIÓN Y EL TEMA PROPUESTO COMO TITULO PROPUESTO\n //VIC - [Consecutivo de proyectos en el periodo][Año]- [Código interno de la Unidad Policial o Escuela]\n String codigoInternoUnidad = ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica();\n String codigoProyecto = iniciaCodigoVic.concat(\"-\");//VIC \n contarProyecto += 1;\n codigoProyecto = codigoProyecto.concat(String.valueOf(contarProyecto));//[Consecutivo de proyectos en el periodo]\n codigoProyecto = codigoProyecto.concat(String.valueOf(lstPropuestaasignada.get(0).getSieduPropuestaAsignadaPK().getVigencia()));//[Año]\n codigoProyecto = codigoProyecto.concat(\"-\");\n codigoProyecto = codigoProyecto.concat(codigoInternoUnidad);//[Código interno de la Unidad Policial o Escuela]\n Date fechaHoy = new Date();\n proyecto.setCodigoProyecto(codigoProyecto);\n proyecto.setLinea(this.propuestaSeleccionada.getLinea());\n proyecto.setTituloPropuesto(this.propuestaSeleccionada.getTema());\n proyecto.setTema(this.propuestaSeleccionada.getTema());\n proyecto.setPeriodo(this.propuestaSeleccionada.getPeriodo());\n proyecto.setUsuarioRol(usuarioRol);\n proyecto.setEstado(new Constantes(IConstantes.TIPO_ESTADO_PROYECTO_EN_EJECUCION));\n proyecto.setUnidadPolicial(ejecutorNecesidadResponsable.getUnidadPolicial());\n proyecto.setPropuestaNecesidad(this.propuestaSeleccionada);\n proyecto.setFechaEstimadaInicio(fechaHoy);\n Calendar fechaFinalEstimadaProyecto = Calendar.getInstance();\n fechaFinalEstimadaProyecto.setTime(fechaHoy);\n fechaFinalEstimadaProyecto.add(Calendar.MONTH, numeroMesesEstimacionProyecto);\n proyecto.setFechaEstimadaFinalizacion(fechaFinalEstimadaProyecto.getTime());\n proyecto.setFechaActualizacion(fechaHoy);\n //CREAMOS LOS COMPROMISOS PROYECTOS\n List<CompromisoProyecto> listaCompromisosProyecto = new ArrayList<CompromisoProyecto>();\n //CONSULTAMOS LOS COMPROMISOS DE ESTE PERIODO\n List<CompromisoPeriodo> listaComprimiso = iCompromisoPeriodoLocal.buscarCompromisoPeriodoByIdPropuestaNecesidad(this.propuestaSeleccionada);\n for (CompromisoPeriodo unCompromisoPeriodo : listaComprimiso) {\n CompromisoProyecto compromisoProyecto = new CompromisoProyecto();\n compromisoProyecto.setCompromisoPeriodo(unCompromisoPeriodo);\n compromisoProyecto.setProyecto(proyecto);\n compromisoProyecto.setEstado(new Constantes(IConstantes.ESTADO_COMPROMISO_PROYECTO_PENDIENTE));\n compromisoProyecto.setFechaCreacion(new Date());\n compromisoProyecto.setMaquina(loginFaces.getPerfilUsuarioDTO().getMaquinaDTO().getIpLoginRemotoUsuario());\n compromisoProyecto.setUsuarioRegistro(loginFaces.getPerfilUsuarioDTO().getIdentificacion());\n compromisoProyecto.setUsuarioRolRegistra(usuarioRol);\n listaCompromisosProyecto.add(compromisoProyecto);\n }\n //CREAMOS LAS UNIDADES EJECUTORAS PARA EL PROYECTO\n List<EjecutorNecesidadDTO> listadoEjecutorNecesidadDTOPropuesta = iEjecutorNecesidadLocal.getEjecutorNecesidadDTOPorPropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n List<EjecutorNecesidad> listaEjecutorNecesidadProyecto = new ArrayList<EjecutorNecesidad>();\n for (EjecutorNecesidadDTO unaEjecutorNecesidadDTO : listadoEjecutorNecesidadDTOPropuesta) {\n EjecutorNecesidad ejecutorNecesidadLocal = new EjecutorNecesidad();\n ejecutorNecesidadLocal.setPropuestaNecesidad(new PropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad()));\n ejecutorNecesidadLocal.setProyecto(proyecto);\n ejecutorNecesidadLocal.setRol(new Constantes(unaEjecutorNecesidadDTO.getIdRol()));\n ejecutorNecesidadLocal.setUnidadPolicial(this.iUnidadPolicialLocal.obtenerUnidadPolicialPorId(unaEjecutorNecesidadDTO.getIdUnidadPolicial()));\n listaEjecutorNecesidadProyecto.add(ejecutorNecesidadLocal);\n }\n proyecto.setEjecutorNecesidadList(listaEjecutorNecesidadProyecto);\n proyecto.setCompromisoProyectoList(listaCompromisosProyecto);\n\n } else if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(\n IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_REVISADA)) {\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_NO_APROBADA));\n }\n\n //ACTUALIZAMOS EL CAMPO ROL_ACTUAL\n //CON EL OBJETIVO SE SABER EN DONDE SE ENCUENTRA LA PROPUESTA\n //ESTO SE REALIZA PARA CORREGIR \n //LA INCIDENCIA #0002754: Mientras no se publiquen los resultados de las necesidades, el estado debe ser 'Enviada a VICIN'.\n this.propuestaSeleccionada.setRolActual(IConstantes.PROPUESTA_NECESIDAD_PUBLICADA_JEFE_UNIDAD);\n /* \n\n //GENERAMOS EL NOMBRE DEL ARCHIVO DEL REPORTE\n String nombreReporteUnico = \"PROP_NECES_PERIODO\".concat(\"_\").concat(String.valueOf(System.currentTimeMillis())).concat(\".pdf\");\n String nombreReporte = \"PROP_NECES_PERIODO_\" + (periodoSeleccionado.getAnio() == null ? periodoSeleccionado.getIdPeriodo().toString() : periodoSeleccionado.getAnio().toString()) + \".pdf\";\n */\n //SE ACTUALIZAN LAS PROPUESTAS DE NECESIDAD\n servicePropuestaNecesidad.guardarPropuestaYgenerarProyecto(\n this.propuestaSeleccionada,\n proyecto);\n\n addInfoMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_propuestas_actualizadas_ok_publicar\"));\n\n navigationFaces.redirectFacesCuNe01();\n\n } catch (Exception e) {\n\n addErrorMessage(keyPropertiesFactory.value(\"general_mensaje_error_exception\"));\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE,\n \"CU-NE-06 Evaluar propuestas de necesidades de investigación - (publicarPropuestas)\", e);\n\n }\n\n }", "@Override\n public String getInformacionInstruccion() {\n\treturn \"comando desconocido\";\n }", "public void RealizarDiagnostico() {\n\t\tSystem.out.println(\"realizar dicho diagnostico con los sintomas presentados por el paciente\");\r\n\t}", "private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "public void getProdotti() {\r\n\t\tprodotti = ac.getProdotti();\r\n\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaProdotti != null) {\r\n\t\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codiceInteger\"));\r\n\t prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n\t descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n\t prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzoFloat\"));\r\n\t disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilitaInteger\"));\r\n\t \r\n\t Collections.sort(prodotti);\r\n\t tabellaProdotti.getItems().setAll(prodotti);\t \r\n\t tabellaProdotti.setOnMouseClicked(e -> {\r\n\t \tif(tabellaProdotti.getSelectionModel().getSelectedItem() != null)\r\n\t \t\taggiornaQuantita(tabellaProdotti.getSelectionModel().getSelectedItem().getDisponibilita());\r\n\t });\r\n\t\t}\r\n\t}", "public String verDatos(){\n return \"Ataque: \"+ataque+\"\\nDefensa: \"+defensa+\"\\nPunteria: \"+punteria;\n }", "public void status() {\n System.out.println(\"Nome: \" + this.getNome());\n System.out.println(\"Data de Nascimento: \" + this.getDataNasc());\n System.out.println(\"Peso: \" + this.getPeso());\n System.out.println(\"Altura: \" + this.getAltura());\n }", "@Override\r\n\tpublic Map<String, Object> namaProdi(Integer id_univ, Integer id_fakultas, Integer id_prodi) {\n\t\treturn fakultas.namaProdi(id_univ, id_fakultas, id_prodi);\r\n\t}", "public String estadisticasProveedoresMasSolicitados() {\n String html = \"\";\n DefaultTableModel dtm = proveedor.estadisticaProveedoresMasSolicitados();\n html = Utils.dibujarGraficasHTMLBarras(dtm, \"TOP PROVEEDORES MAS SOLICITADOS\", \"Proveedor\");\n return html;\n }", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"Pasos dados por \" + a.nombre + \" \" + a.distancia + \" m = \" + pasosActividad + \" / Pasos en total = \" + pasosTotal);\n\t}", "public void acutualizarInfo(){\n String pibId = String.valueOf(comentario.getId());\n labelId.setText(\"#\" + pibId);\n\n String autor = comentario.getAutor().toString();\n labelAutor.setText(autor);\n\n String fecha = comentario.getFechaCreacion().toString();\n labelFecha.setText(fecha);\n \n String contenido = comentario.getContenido();\n textAreaContenido.setText(contenido);\n \n String likes = ((Integer)comentario.totalLikes()).toString();\n labelLikes.setText(likes);\n \n Collection<Comentario> comments = socialNetwork.searchSubComentarios(comentario);\n panelSubComentarios.loadItems(comments, 15);\n \n if(comentario.isSubcomentario()){\n jButton4.setEnabled(true);\n }\n else{\n jButton4.setEnabled(false);\n }\n }", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "public void mostrarConsola() {\n\t\tProceso aux = this.raiz;\n\t\t// int i=this.numProcesos;\n\t\twhile (aux.sig != this.raiz /* i>0 */) {\n\t\t\t// i--;\n\t\t\taux = aux.sig;\n\t\t\tSystem.out.println(aux.toString());\n\t\t}\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}", "public String showInfoMedi(){\n\t\tString msg = \"\";\n\n\t\tmsg += \"NOMBRE DE LA MEDICINA: \"+name+\"\\n\";\n\t\tmsg += \"LA DOSIS: \"+dose+\"\\n\";\n\t\tmsg += \"COSTO POR DOSIS: \"+doseCost+\"\\n\";\n\t\tmsg += \"FRECUENCIA QUE ESTA DEBE SER APLICADA: \"+frecuency+\"\\n\";\n\n\t\treturn msg;\n\t}", "public ProveedorInfo() {\n\t\tnombre = EMPTY_STRING;\n\t\tdescripcion = EMPTY_STRING;\n\t\tcaHash = new Hashtable<String, String>();\n\t\tservidores = new Vector<ServidorOcsp>();\n\n\t}", "public String getProfi() {\r\n\t\treturn profi;\r\n\t}", "public String toString(){\n return \"Codigo Produto: \"+this.idProduto+\n \"\\nNome do Produto \"+this.nomePro+\n \"\\nDescrição \"+this.descricao+\n \"\\nPreço: \"+this.preco;\n }", "public void SolicitarDatos() {\n\t\t\r\n\t\tSystem.out.println(\"nombre:\");\r\n\t\tSystem.out.println(\"apellido\");\r\n\t\tSystem.out.println(\"numCedula\");\r\n\t\t\r\n\t}", "private void gravarPromocao() {\n\t\tString nome = textFieldNome.getText();\n\t\tString descricao = textFieldDescricao.getText();\n\t\tboolean ativo = true;\n\n\t\tPromocao promocao = null;\n\n\t\tif (modoEditar) {\n\t\t\tpromocao = promocaoAntiga;\n\n\t\t\tpromocao.setNome(nome);\n\t\t\tpromocao.setDescricao(descricao);\t\t\t\n\t\t\tpromocao.setAtiva(ativo);\n\n\t\t} else {\n\t\t\tpromocao = new Promocao( nome, descricao, ativo);\n\t\t}\n\n\t\ttry {\n\t\t\tif (modoEditar) {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().editarPromocao(promocao);\n\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção editada com sucesso!\", \"Promoção Editada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t} else {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().criarPromocao(promocao);\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção criada com sucesso!\", \"Promoção Criada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\n\t\t\tsetVisible(false);\n\t\t\tdispose();\n\n\n\t\t} catch (Exception exc) {\n\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\"Error a criar a Promoção \" + exc.getMessage(), \"Error\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t}", "@Override\n public String descripcion() {\n return \"Viaje incentivo que te envia la empresa \" + empresa;\n }", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public void aumentarReproducciones() {\n\t\treproducciones++;\n\t}", "public void srediFormu() throws Exception {\n KlijentTransferObjekat kto = new KlijentTransferObjekat();\n kto.setOperacija(Konstante.VRATI_PROIZVODJACE);\n Komunikacija.getInstance().posaljiZahtev(kto);\n ServerTransferObjekat sto = Komunikacija.getInstance().procitajOdgovor();\n if (sto.getRezultat() == Konstante.REZULTAT_NOK) {\n throw new Exception(sto.getIzuzetak());\n }\n List<OpstiDomenskiObjekat> lp = (List<OpstiDomenskiObjekat>) sto.getOdgovor();\n\n ProizvodjacTableModel model = new ProizvodjacTableModel(lp);\n jTable1.setModel(model);\n }", "public void verProcedimientos(JTable tabla) {\n System.out.println(\"controladores.ProcedimientoController.verProcedimientos()\");\n ResultSet procedimientos = null;\n IProcedimientoDao dao = new ProcedimientoDaoImpl();\n procedimientos = dao.obtenerProcedimientos();\n vista.verProcedimientos(procedimientos, tabla);\n }", "public static void pesquisarTest() {\n\t\t\n\t\tlistaProfissional = profissionalDAO.lista();\n\n\t\t//user.setReceitas(new ArrayList<Receita>());\n\t\t\n\t\t\n\t\tSystem.out.println(\"Entrou PEsquisar ====\");\n\t\tSystem.out.println(listaProfissional);\n\n\t}", "@Test\n\tpublic void testIrParaCarrinho_InformacoesPersistidas() {\n\t\ttestIncluirProdutoNoCarrinho_ProdutoIncluidoComSucesso();\n\t\tcarrinhoPage = modalProdutoPage.clicarBotaoProceedToCheckout();\n\t\t\t\n\t\tassertEquals(esperado_nomeDoProduto, carrinhoPage.obter_nomeDoProduto());\n\t\tassertEquals(esperado_precoDoProduto, Funcoes.removeCifraoDevolveDouble(carrinhoPage.obter_precoDoProduto()));\n\t\tassertEquals(esperado_tamanhoDoProduto, carrinhoPage.obter_tamanhoDoProduto());\n\t\tassertEquals(esperado_corDoProduto, carrinhoPage.obter_corDoProduto());\n\t\tassertEquals(esperado_inputQuantidadeDoProduto, Integer.parseInt(carrinhoPage.obter_inputQuantidadeDoProduto()));\n\t\tassertEquals(esperado_subTotalDoProduto, Funcoes.removeCifraoDevolveDouble(carrinhoPage.obter_subTotalDoProduto()));\n\t\t\n\t\tassertEquals(esperado_numeroItensTotal, Funcoes.removeTextoItemsDevolveInt(carrinhoPage.obter_numeroItensTotal()));\n\t\tassertEquals(esperado_subtotalTotal, Funcoes.removeCifraoDevolveDouble(carrinhoPage.obter_subtotalTotal()));\n\t\tassertEquals(esperado_shippingTotal, Funcoes.removeCifraoDevolveDouble(carrinhoPage.obter_shippingTotal()));\n\t\tassertEquals(esperado_totalTaxExclTotal, Funcoes.removeCifraoDevolveDouble(carrinhoPage.obter_totalTaxExclTotal()));\n\t\tassertEquals(esperado_totalTaxInclTotal, Funcoes.removeCifraoDevolveDouble(carrinhoPage.obter_totalTaxInclTotal()));\n\t\tassertEquals(esperado_taxesTotal, Funcoes.removeCifraoDevolveDouble(carrinhoPage.obter_taxesTotal()));\n\t\t\n\t}", "private void pokupiIzPoljaIKreirajServisera() {\n\t\tServiser noviServiser;\n\t\tif(izmena == false) {\n\t\t\tString ime = rssv.getTfIme().getText();\n\t\t\tString prezime = rssv.getTfPrezime().getText();\n\t\t\tString JMBG = rssv.getTfJMBG().getText();\n\t\t\tPol pol = rssv.getPolBox().getSelectionModel().getSelectedItem();\n\t\t\tString adresa = rssv.getTfAdresa().getText();\n\t\t\tString brojTelefona = rssv.getTfBrojTelefona().getText();\n\t\t\tString korisnickoIme = rssv.getTfKorisnickoIme().getText();\n\t\t\tString lozinka = rssv.getTfLozinka().getText();\n\t\t\tSpecijalizacija specijalizacija = rssv.getSpecijalizacijaBox().getSelectionModel().getSelectedItem();\n\t\t\t\t\n\t\t\ttry {\n\t\t\t\tdouble plata = Double.valueOf(rssv.getTfPlata().getText());\n\t\t\t\tnoviServiser = new Serviser(ime, prezime, JMBG, pol, adresa, brojTelefona, korisnickoIme, lozinka, specijalizacija, plata);\n\t\t\t\trssv.getTabela().getItems().add(noviServiser);\n\t\t\t\tServiserController.upisiServiseraUFajl(noviServiser);\n\t\t\t\trssv.resetujPolja();\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\trssv.izbaciPorukuOGresci(e.getMessage());\n\t\t\t} catch (Exception e) {\n\t\t\t\trssv.izbaciPorukuOGresci(e.getMessage());\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tString ime = rssv.getTfIme().getText();\n\t\t\tString prezime = rssv.getTfPrezime().getText();\n\t\t\tString JMBG = rssv.getTfJMBG().getText();\n\t\t\tPol pol = rssv.getPolBox().getSelectionModel().getSelectedItem();\n\t\t\tString adresa = rssv.getTfAdresa().getText();\n\t\t\tString brojTelefona = rssv.getTfBrojTelefona().getText();\n\t\t\tString korisnickoIme = rssv.getTfKorisnickoIme().getText();\n\t\t\tString lozinka = rssv.getTfLozinka().getText();\n\t\t\tSpecijalizacija specijalizacija = rssv.getSpecijalizacijaBox().getSelectionModel().getSelectedItem();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tdouble plata = Double.valueOf(rssv.getTfPlata().getText());\n\t\t\t\tnoviServiser = new Serviser(tempServiser.getOznaka(), ime, prezime, JMBG, pol, adresa, brojTelefona, korisnickoIme, lozinka, false, specijalizacija, plata);\n\t\t\t\tServiserController.izbrisiIzUcitanihServiseraSaOznakom(tempServiser.getOznaka());\n\t\t\t\trssv.getTabela().getItems().add(noviServiser);\n\t\t\t\tServiserController.upisiServiseraUFajl(noviServiser);\n\t\t\t\trssv.getTabela().getItems().remove(tempServiser);\n\t\t\t\tServiserController.sacuvajIzmeneUFajl();\n\t\t\t\trssv.resetujPolja();\n\t\t\t\t\n\t\t\t\tizmena = false;\n\t\t\t\ttempServiser = null;\n\t\t\t\t\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void remplirPrestaraireData() {\n\t}", "public void AfficherListProspect() throws Exception{\n laListeProspeect = Prospect_Db_Connect.tousLesProspects();\n laListeProspeect.forEach((p) -> {\n modelProspect.addRow(new Object[]{ p.getIdent(),\n p.getRaison(),\n p.getTypeSo(),\n p.getDomaine(),\n p.getAdresse(),\n p.getTel(),\n p.getCa(),\n p.getComment(),\n p.getNbrEmp(),\n p.getDateProspetc(),\n p.getInteretPropspect()});\n });\n }", "public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n while (rs.next()) {//C.P.M recorremos el resultado para obtener los datos\r\n vista.jTNombreempresa.setText(rs.getString(1));//C.P.M los datos los enviamos a la vista de la interface\r\n vista.jTDireccion.setText(rs.getString(2));\r\n vista.jTTelefono.setText(rs.getString(3));\r\n vista.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n if (llamado.equals(\"factura\")) {//C.P.M de lo contrario es llamado de factura y los valores se van a la vista de vactura \r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n vistafactura.jTNombreempresa.setText(rs.getString(1));//C.P.M enviamos los datos a la vista de factura\r\n vistafactura.jTDireccion.setText(rs.getString(2));\r\n vistafactura.jTTelefono.setText(rs.getString(3));\r\n vistafactura.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n } catch (SQLException ex) {//C.P.M Notificamos a el usuario si ocurre algun error\r\n JOptionPane.showMessageDialog(null,\"Ocurio un error al intentar consultar la informacion del negocio\");\r\n }\r\n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public void consultaDinero(){\r\n System.out.println(this.getMonto());\r\n }", "private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }", "public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "@Override\n public void afficher() {\n super.afficher();\n System.out.println(\"Sexe : \" + getSexe());\n System.out.println(\"Numéro de sécurité sociale : \" + getNumeroSecuriteSociale());\n System.out.println(\"Date de naissance : \" + getDateDeNaissance().format(DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG)));\n System.out.println(\"Commentaires : \" + getCommentaires());\n this.adresse.afficher();\n }", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "public static void calcularPromedioSemanal() {\n }", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "public void summary() {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur));\r\n }", "private void mandaInfoIPP(Interfaz_Principal vtn){\n vtn.Actual_Nombre_Usuario=Actual_Nombre_Usuario;\n vtn.Actual_Apellido_Usuario=Actual_Apellido_Usuario;\n vtn.Actual_Telefono=Actual_Telefono;\n vtn.Actual_U=Actual_U;\n vtn.Actual_C=Actual_C;\n vtn.Actual_Correo=Actual_Correo;\n vtn.Actual_Direccion=Actual_Direccion;\n vtn.Actual_Cargo=Actual_Cargo;\n vtn.Actual_Fecha=Actual_Fecha;\n vtn.Actual_Status=Actual_Status;\n this.dispose();\n vtn.setVisible(true);\n }", "private static void saluti() {\n\t\tUtilityIO.header(MSG_CHIUSURA, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t}", "public String dajPopis() {\n return super.dajPopis() + \"KUZLO \\nJedna tebou vybrata jednotka ziska 3-nasobnu silu\";\n }", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "public void alertasexistencia() {\r\n try {\r\n rs = modelo.alertaexistenciapro();//C.P.M consultamos los producto con alerta en existencia\r\n DefaultTableModel tabla = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.Talertas.setModel(tabla);//C.P.M le mandamos el modelo\r\n modelo.estructuraAlrta(tabla);//C.P.M obtenemos la estructura de la tabla \"los encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de las columnas de la consulta\r\n while (rs.next()) {\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con la cantidad de columnas \r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1);//C.P.M y agregamos la informacion de la consulta\r\n }\r\n tabla.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio algun error al consultar las alertas\");\r\n }\r\n }", "public String getInfoTitulos(){\r\n String infoTitulos = \"\";\r\n \r\n if(this.propriedadesDoJogador.size() > 0 || this.companhiasDoJogador.size() > 0){\r\n for(int i = 0; i < this.propriedadesDoJogador.size(); i++){\r\n infoTitulos += propriedadesDoJogador.get(i).getDescricao()+\"\\n\";\r\n }\r\n for(int i = 0; i < this.companhiasDoJogador.size(); i++){\r\n infoTitulos += companhiasDoJogador.get(i).getDescricao()+\"\\n\";\r\n }\r\n return infoTitulos;\r\n \r\n }else{\r\n return \"Você não possui títulos\";\r\n }\r\n }", "@Override\n\tpublic void cargarInformacion_paciente() {\n\t\tinfoPacientes.cargarInformacion(admision, this,\n\t\t\t\tnew InformacionPacienteIMG() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void ejecutarProceso() {\n\t\t\t\t\t\tif (tbxAccion.getValue().equalsIgnoreCase(\"registrar\")) {\n\n\t\t\t\t\t\t\t// Map<String, Object> parametros = new\n\t\t\t\t\t\t\t// HashMap<String, Object>();\n\t\t\t\t\t\t\t// parametros.put(\"codigo_empresa\", codigo_empresa);\n\t\t\t\t\t\t\t// parametros.put(\"codigo_sucursal\",\n\t\t\t\t\t\t\t// codigo_sucursal);\n\t\t\t\t\t\t\t// parametros.put(\"identificacion\",\n\t\t\t\t\t\t\t// admision.getNro_identificacion());\n\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\ttoolbarbuttonTipo_historia\n\t\t\t\t\t\t\t\t\t.setLabel(\"Creando historia de Urgencia Odontologica\");\n\t\t\t\t\t\t\tadmision.setPrimera_vez(\"S\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void MostrarValores() {\r\n Nodo recorrido = UltimoValorIngresado;\r\n\r\n while (recorrido != null) {\r\n Lista += recorrido.informacion + \"\\n\";\r\n recorrido = recorrido.siguiente;\r\n }\r\n\r\n JOptionPane.showMessageDialog(null, Lista);\r\n Lista = \"\";\r\n }", "public void summary(int tambahanProyek) {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur + tambahanProyek));\r\n }", "private void accederpro() {\n\t\tVprosesor prof= new Vprosesor ();\n\t\t\n\t\tControladorprofesor b = new Controladorprofesor(prof);\n\t\tprof.setControladorprofesor(b);\n\t\tprof.setVisible(true);\n\t\tvb.dispose();\n\t\t\n\t}", "public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }", "@Override\n\tpublic void mostrarinfo(String nombreclase) {\n\t\tsuper.mostrarinfo(nombreclase);\n\t\tSystem.out.println(\"Corte : \" + corte);\n\t\tSystem.out.println(\"Sexo :\" + sexo);\n\t}", "public void verificaAlteracao() {\r\n if (produto != null) {\r\n dialog.getTfNome().setText(produto.getNome());\r\n dialog.getTfCodigoBarra().setText(produto.getCodigoBarra());\r\n dialog.getTfPrecoCompra().setText(produto.getPrecoCompra().toString());\r\n dialog.getTfPrecoVenda().setText(produto.getPrecoVenda().toString());\r\n dialog.getCbCategoria().setSelectedItem(produto.getCategoriaId());\r\n dialog.getCbFornecedor().setSelectedItem(produto.getFornecedorId());\r\n }\r\n }", "public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }", "public void getPropuestasOrdenadas(int confirm) throws ParseException{\n System.out.println(\"\\nSe imprimirán las propuestas de la Sala \"+getNombreSala()+\":\");\n if (propuestas.size() == 0){\n System.out.println(\"No hay reservas para esta Sala\");\n }\n else{\n for (Propuesta propuestaF : propuestas) {\n String nombreReservador = propuestaF.getReservador().getNombreCompleto();\n if (confirm == 0){\n if (propuestaF.isForAllSem()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else{\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n else if (confirm == 1){\n if (propuestaF.isForAllSem() && propuestaF.isConfirmada()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else if (propuestaF.isConfirmada()){\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n }\n }\n }", "@Override\n\tpublic Produto pesquisar(Produto entidade) {\n\t\treturn null;\n\t}", "public void ReportarUnDiario(){\n f.registrarReporteDiario(new ReporteDiario(descripcionReporteDiario,prob));\n }", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "public String getInformacion() {\n\t\treturn informacion;\n\t}", "@Override\n\tpublic String exibirDados() {\n\t\ttoString();\n\t\tString message = toString() + \"\\nimc: \" + calculaImc();\n\t\treturn message;\n\t}", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }", "private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public void stampajSpisak() {\n\t\t\n\t\tif (prviFilm != null) {\n\t\t\t\n\t\t\tFilm tekuciFilm = prviFilm;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tSystem.out.println(\"Filmovi: \");\n\t\t\t\n\t\t\twhile (tekuciFilm != null) {\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\"Film #\" + count + \": '\" + tekuciFilm.naziv + \"'\");\n\t\t\t\t\n\t\t\t\tif (tekuciFilm.sadrzaj == null) {\n\t\t\t\t\tSystem.out.println(\"\\tNema unetih glumaca.\");\n\t\t\t\t} else {\n\t\t\t\t\tGlumac tekuciGlumac = tekuciFilm.sadrzaj;\n\t\t\t\t\t\n\t\t\t\t\twhile (tekuciGlumac != null) {\n\t\t\t\t\t\tSystem.out.println(\"\\t\" + tekuciGlumac);\n\t\t\t\t\t\ttekuciGlumac = tekuciGlumac.veza;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttekuciFilm = tekuciFilm.veza;\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"Spisak je prazan.\");\n\t\t}\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn denominacion + \" [prop: \" + propietario + \", sup: \" + superficie + \"]\";\r\n\t}", "@Override\n public String toString() {\n return \"Id del Libro: \"+id+\" Nombre del Libro: \"+nombre+\" Disponibilidad: \"+disponibilidad;\n }", "public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "private void listadoTipos() {\r\n sessionProyecto.getTipos().clear();\r\n sessionProyecto.setTipos(itemService.buscarPorCatalogo(CatalogoEnum.TIPOPROYECTO.getTipo()));\r\n }", "public String toString(){\r\n\t\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}", "public static void menuPrincicipal() {\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| Elige una opcion |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 1-Modificar Orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 2-Eliminar orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 3-Ver todas las ordenes |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 0-Salir |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t}", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}", "public VerInfoProd(Producto prod) {\n initComponents();\n \n Fabrica fabrica = Fabrica.getInstance();\n ICP = fabrica.getICtrlProducto();\n modelo = (DefaultTableModel) jTabla.getModel();\n this.txtNomProd.setText(prod.getNombre());\n this.txtDescProd.setText(prod.getDescripcion());\n String precio = Double.toString(prod.getPrecio());\n this.txtPrecioProd.setText(precio);\n p = prod;\n Promocional prom = (Promocional)p;\n if(prom.isActiva())\n this.txtEstadoPromo.setText(\"ACTIVA\");\n else\n this.txtEstadoPromo.setText(\"INACTIVA\");\n cargartabla();\n }", "public String toString() {\n\t\treturn \"CURSO=\" + idC + \" ASISTEN un TOTAL de: \" +dniE+\" estudiantes\\n\";\n\t}", "private Map<String,Double> getPromedioHabilidades(Cuadrilla cuadrilla){\n\t\tSystem.out.println(\"#### getPromedioHabilidades ######\");\n\t\tdouble proprod= 0, protrae= 0, prodorm = 0, prodcaa = 0;\n\t\tint cantper = 0;\n\t\tfor (CuadrillasDetalle cd : cuadrilla.getCuadrillasDetalles()) {\n\t\t\t\n\t\t\tList<TecnicoCompetenciaDetalle> tcds = \tcd.getTecnico().getTecnicoCompetenciaDetalles();\n\t\t\tfor (TecnicoCompetenciaDetalle tcd : tcds) {\n\t\t\t\tInteger codigoComp = tcd.getCompetencia().getCodigoCompetencia();\n\t\t\t\tswitch(codigoComp){\n\t\t\t\t\tcase COMPETENCIA_PRODUCTIVIDAD:\n\t\t\t\t\t\tproprod = proprod+ tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_TRABAJO_EQUIPO:\n\t\t\t\t\t\tprotrae = protrae + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_ORIENTACION_METAS:\n\t\t\t\t\t\tprodorm = prodorm + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_CALIDAD_ATENCION:\n\t\t\t\t\t\tprodcaa = prodcaa +tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcantper++;\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\t// promedio de las competencias de los tenicos de cada cuadrilla\n\t\tproprod = proprod/cantper; \n\t\tprotrae = protrae/cantper;\n\t\tprodorm = prodorm/cantper;\n\t\tprodcaa = prodcaa/cantper;\n\n\t\tMap<String, Double> mpproms = new LinkedHashMap<String,Double>();\n\t\tmpproms.put(\"proprod\", proprod);\n\t\tmpproms.put(\"protrae\", protrae);\n\t\tmpproms.put(\"prodorm\", prodorm);\n\t\tmpproms.put(\"prodcaa\", prodcaa);\n\t\n\t\treturn mpproms;\n\t\t\n\t}", "public void ImprimirDatos(){\n\t\tSystem.out.println(\"Número de elises: \"+NoElises);\n\t\tSystem.out.println(\"Número de alas: \"+NoAlas);\n\t\tSystem.out.println(\"Número de pasajeros: \"+NoPasajeros);\n\t}", "private void getEncuestaSatisfaccions(){\n mEncuestaSatisfaccions = estudioAdapter.getEncuestaSatisfaccionSinEnviar();\n //ca.close();\n }", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "@Override\n\tpublic String toString(){\n\t\treturn \"Inf carta:\\n\"+numero+\"de \"+palo+\"\\nValor: \"+valor;\n\t}", "public void reestablecerInfo(){\n panelIngresoControlador.getPanelIngreso().reestablecerInfo();\n }", "public void preencherDisponibilidadesOferta() {\n\n //List<Disponibilidade> disponibilidades;\n List<Disp> disponibilidades;\n \n if (oferta != null) {\n //disponibilidades = new ArrayList<>(oferta.getDisponibilidades());\n disponibilidades = new ArrayList<>(oferta.getDispo());\n } else {\n disponibilidades = new ArrayList<>();\n }\n //dispDataModel = new DisponibilidadeDataModel(disponibilidades);\n dispDataModel = new DispDataModel(disponibilidades);\n }", "@Override\r\n\tpublic void inicializar() {\n\t\tproveedorDatamanager.setProveedorSearch(new Tcxpproveedor());\r\n\t\tproveedorDatamanager.getProveedorSearch().setTsyspersona(new Tsyspersona());\r\n\t\tproveedorDatamanager.setTipoIdColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_tipoid_persona\")));\r\n\t\tproveedorDatamanager.setGrupoProvColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_grupo_prov\")));\r\n\t\tproveedorDatamanager.setEstadoProvColl(bunsysService.buscarObtenerCatalogos(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania(), ContenidoMessages.getInteger(\"cod_catalogo_estado_persona\")));\r\n\t\tproveedorDatamanager.setProveedorComponente(new ProveedorComponent(proveedorDatamanager.getLoginDatamanager().getLogin().getPk().getCodigocompania()));\r\n\t}", "public void desplegarInformacion() { //\n\n System.out.println(nombre);\n System.out.println(apellido);\n\n }" ]
[ "0.68030626", "0.65151304", "0.6416791", "0.63045144", "0.63029647", "0.6242653", "0.61785966", "0.6171173", "0.61609966", "0.6136482", "0.6122863", "0.61172146", "0.61108464", "0.6099514", "0.60939294", "0.607528", "0.60447603", "0.60361546", "0.60224867", "0.6019686", "0.5984586", "0.59809476", "0.5966907", "0.5964272", "0.59523046", "0.59394914", "0.5930181", "0.5923147", "0.5910317", "0.5908078", "0.59066045", "0.590619", "0.5905165", "0.58860314", "0.58844686", "0.5880684", "0.5876137", "0.58641005", "0.58611166", "0.5853348", "0.58444214", "0.5832865", "0.583026", "0.58159715", "0.58150095", "0.58139765", "0.58094054", "0.5809069", "0.5788146", "0.5784046", "0.57821596", "0.57795405", "0.57782096", "0.5763399", "0.5748544", "0.5743519", "0.5742845", "0.57426053", "0.57393587", "0.57364064", "0.57281756", "0.57266843", "0.57244563", "0.5720573", "0.57149005", "0.56981975", "0.5698046", "0.56979924", "0.5690776", "0.56901383", "0.56863105", "0.5684908", "0.56843704", "0.567963", "0.56789404", "0.5669993", "0.56637025", "0.5661919", "0.56578326", "0.5657499", "0.5655741", "0.56544167", "0.56534326", "0.5650813", "0.56493276", "0.5649264", "0.5647062", "0.5642469", "0.56415695", "0.5641234", "0.5638816", "0.563871", "0.56314445", "0.5629546", "0.5623098", "0.5619163", "0.5619029", "0.5618083", "0.5615039", "0.5612462", "0.561201" ]
0.0
-1
Mijenja lozinku setaca ako se posalje dobra stara lozinka.
@Override public WalkerDetails editWalkerPassword(EditPassword walkerEditPassword) { Assert.notNull(walkerEditPassword, "EditPassword object must be given."); Assert.notNull(walkerEditPassword.getId(), "Id must be given"); Optional<WalkerLogin> walkerLoginOpt = walkerLoginRepo.findById(walkerEditPassword.getId()); if(walkerLoginOpt.isEmpty()) { throw new RequestDeniedException("User with ID " + Long.toString(walkerEditPassword.getId()) + " doesn't exist."); } WalkerLogin walkerLogin = walkerLoginOpt.get(); Assert.notNull(walkerEditPassword.getOldPassword(), "Old password must be given."); if(!passwordEncoder.matches(walkerEditPassword.getOldPassword(), walkerLogin.getPassword())) { throw new RequestDeniedException("Old password is incorrect."); } Assert.notNull(walkerEditPassword.getNewPassword(), "New password must be given."); if(walkerEditPassword.getNewPassword().length() < 6 || walkerEditPassword.getNewPassword().length() > 20) { throw new RequestDeniedException("Password must be between 6 and 20 characters."); } walkerLogin.setPassword(this.encodePass(walkerEditPassword.getNewPassword())); walkerLoginRepo.save(walkerLogin); return new WalkerDetails(walkerLogin.getWalker()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPolaznik(Polaznik polaznik) {\n this.polaznik = polaznik;\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void AwansSpoleczny() {\n\t\tSystem.out.println(\"AwansSpoleczny\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getNiewolnikNaPLanszy() instanceof Niewolnicy) {\n\t\t\tPlansza.setNiewolnikNaPlanszy(new Mieszczanie(Plansza.getNiewolnikNaPLanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getRzemieslnikNaPlanszy() instanceof Rzemieslnicy) {\n\t\t\tPlansza.setRzemieslnikNaPlanszy(new Handlarze(Plansza.getRzemieslnikNaPlanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getArystokrataNaPlanszy() instanceof Arystokracja) {\n\t\t\tPlansza.setArystokrataNaPlanszy(new Szlachta(Plansza.getArystokrataNaPlanszy()));\n\t\t}\n\t}", "private void poczatkowe_zmienne()\n {\n konfiguracja.loadProperties();\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(\"predkosc_wroga\"));\n czas_watku=Integer.parseInt(konfiguracja.properties.getProperty(\"czas_watku\"));\n punkty_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(\"punkty_poziomu\"));\n zmienne_poziomu(poziom);\n }", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "public void AktualizacjaPopulacjiKlas() {\n\t\tSystem.out.println(\"AktualizacjaPopulacjiKlas\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getJedzenie() >= Plansza.getNiewolnikNaPLanszy().getUbrania()) {\n\t\t\tPlansza.getNiewolnikNaPLanszy().setPopulacja(Plansza.getNiewolnikNaPLanszy().getUbrania());\n\t\t}\n\t\telse {\n\t\t\tPlansza.getNiewolnikNaPLanszy().setPopulacja(Plansza.getNiewolnikNaPLanszy().getJedzenie());\n\t\t}\n\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= Plansza.getRzemieslnikNaPlanszy().getMaterialy()) {\n\t\t\tPlansza.getRzemieslnikNaPlanszy().setPopulacja(Plansza.getRzemieslnikNaPlanszy().getMaterialy());\n\t\t}\n\t\telse {\n\t\t\tPlansza.getRzemieslnikNaPlanszy().setPopulacja(Plansza.getRzemieslnikNaPlanszy().getNarzedzia());\n\t\t}\n\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= Plansza.getArystokrataNaPlanszy().getZloto()) {\n\t\t\tPlansza.getArystokrataNaPlanszy().setPopulacja(Plansza.getArystokrataNaPlanszy().getZloto());\n\t\t}\n\t\telse {\n\t\t\tPlansza.getArystokrataNaPlanszy().setPopulacja(Plansza.getArystokrataNaPlanszy().getTowary());\n\t\t}\n\t}", "public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}", "public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}", "public void obliczSzanseWykolejenia(Tramwaj tramwaj, Pogoda pogoda, Motorniczy motorniczy, Przystanek przystanek){\r\n RegulyWykolejen regulyWykolejen= new RegulyWykolejen();\r\n this.szansaWykolejenia = pogoda.getRyzyko() + przystanek.getStanTechnicznyPrzystanku() + tramwaj.getStanTechTramwaju() + regulyWykolejen.regulaWiek(motorniczy.getWiek()) + regulyWykolejen.regulaDoswiadczenie(motorniczy.getDoswiadczenie());\r\n }", "public void DaneStartowe() {\n\t\tSystem.out.println(\"DaneStartowe\");\n\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getArystokrataNaPlanszy().setZloto((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t\tPlansza.getArystokrataNaPlanszy().setTowary((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t}", "public void setPozycja(PozycjaZamowienia pozycja){\n\t\tthis.pozycja = pozycja;\n\t}", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }", "public void nastav() {\n\t\ttabulkaZiak.setMaxWidth(velkostPolickaX * 3 + 2);\n\t\ttabulkaZiak.setPlaceholder(new Label(\"Žiadne známky.\"));\n\n\t}", "public void setKelas(String sekolah){\n\t\ttempat = sekolah;\n\t}", "public void stworzWrogow() {\n\t\tfor(; aktualnaLiczbaWrogow < MAX_LICZBA_WROGOW; aktualnaLiczbaWrogow++) {\n\t\t\tdouble x = (generatorWspolrzednych.nextInt(550)) + 20 ;\n\t\t\tdouble y = ((generatorWspolrzednych.nextInt(750)) + 20);\n\t\t\tx = x < 0 ? -x : x; \n\t\t\ty = y < 0 ? y : -y;\n\t\t\tStatekWroga statekWroga = new StatekWroga(new Wspolrzedne(x, y));\n\t\t\t\n\t\t\tstatekWroga.setDol(DLUGOSC_RUCHU);\n\t\t\t\n\t\t\tstatkiWroga.add(statekWroga);\n\t\t}\n\t}", "public void przestaw(int ktoraRamkaKurwa){ //0 nic, 1 korwin, 2 nosacz\n\n\t\tthis.ktoraRamkaKurwa = ktoraRamkaKurwa;\n\t\tktoraRamka++; \n\t}", "private void resetLexeme(){\n\t\tcola = \"\";\n\t}", "public void setLaji(String laji) {\n this.laji = laji; \n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public void uruchomGre()\n\t{\n\t\tustawPojazdNaPoczatek();\n\t\tplanszaWidokHND.repaint();\n\t\twToku = true;\n\t\tzegar.start();\n\t\tpauza = false;\n\t}", "public void limpar() {\n\t\talunosMilitarPraca.setId(null);\n\t\talunosMilitarPraca.setMasculino(null);\n\t\talunosMilitarPraca.setFeminino(null);\n\t\t\n\t\talunosMilitarOficial.setId(null);\n\t\talunosMilitarOficial.setMasculino(null);\n\t\talunosMilitarOficial.setFeminino(null);\n\t}", "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void inicjalizujRynek()\n\t{\n\t\tif (!Stale.cenyZGeneratora)\n\t\t{\n\t\t\tlistaCenWczytanaZPliku=loader.loadPrices();\n\t\t}\n\t}", "public void bayar() {\n transaksi.setStatus(\"lunas\");\n setLunas(true);\n }", "public void pretraziPoslovneKorisnike() throws BazaPodatakaException {\r\n\t\tString naziv = nazivTF.getText().toLowerCase();\r\n\t\tString web = webTF.getText().toLowerCase();\r\n\t\tString email = emailTF.getText().toLowerCase();\r\n\t\tString telefon = telefonTF.getText();\r\n\r\n\t\tList<PoslovniKorisnik> listaKorisnika = BazaPodataka.dohvatiPoslovnogKorisnikaPremaKriterijima(email, telefon,\r\n\t\t\t\tnaziv, web);\r\n\t\ttablicaPoslovnihKorisnika.setItems(FXCollections.observableArrayList(listaKorisnika));\r\n\r\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void VaciarPila()\n {\n this.tope = 0;\n }", "public void zpracujObjednavky()\n\t{\n\t\tint idtmp = 0;\n\t\tfloat delkaCesty = 0;\n\t\t\n\t\tif (this.objednavky.isEmpty())\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tNakladak nakl = (Nakladak) getVolneAuto();\n\t\t\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\tObjednavka ob = this.objednavky.remove();\n\n\t\t/*System.out.println();\n\t\tSystem.out.println(\"Objednavka hospody:\" + ob.id + \" se zpracuje pres trasu: \");\n\t\t */\n\t\tdelkaCesty += vyberCestu(this.id, ob.id, nakl);\n\t\t\n\t\twhile(nakl.pridejObjednavku(ob))\n\t\t{\n\t\t\tidtmp = ob.id;\n\t\t\t\n\t\t\tob = vyberObjednavku(ob.id);\n\t\t\tif (ob == null)\n\t\t\t{\n\t\t\t\tob=nakl.objednavky.getLast();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobjednavky.remove(ob);\n\t\t\t\n\t\t\tdelkaCesty += vyberCestu(idtmp, ob.id, nakl);\n\t\t\t\n\t\t\tif((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t/*\n\t\t\tif((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}*/\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//cesta zpatky\n\t\tvyberCestu(ob.id, this.id, nakl);\n\t\tif (nakl.objem >= 1)\n\t\t{\n\t\t\tnakl.kDispozici = false;\n\t\t\tnakl.jede = true;\n\t\t\t//vytvoreni nove polozky seznamu pro statistiku\n\t\t\tnakl.novaStatCesta();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnakl.resetCesta();\n\t\t}\n\t}", "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "public void cambioLigas(){\n\t\ttry{\n\t\t\tmodelo.updatePartidosEmaitzak(ligasel.getSelectionModel().getSelectedItem().getIdLiga());\n\t\t}catch(ManteniException e){\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public void setzeNurLinkePunkteanzeigeSichtbar() \n {\n anzeige.punkteLinksSichtbarSetzen( true );\n anzeige.punkteRechtsSichtbarSetzen( false );\n }", "public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tSystem.out.println(\"Unesite broj kilometara koje ste presli sa odgovarajucim vozilom\");\n\t\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\t\tVozilo v = Main.getVozilaAll().get(redniBroj);\n\t\t\t\tdouble rezultat;\n\t\t\t\tif(v.getGorivaVozila().size()>1) {\n\t\t\t\t\tGorivo g = UtillMethod.izabirGoriva();\n\t\t\t\t\trezultat = cenaTroskaVoz(v,km,g);\n\t\t\t\t}else {\n\t\t\t\t\t rezultat = cenaTroskaVoz(v,km,v.getGorivaVozila().get(0));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Cena troskova za predjeni put je \" + rezultat + \"Dinara!\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}", "public boolean potezLijevo() {\n\t\t//koordinate glave\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\t\n\t\tthis.smjer='a';\n\t\t\n\t\tif (j-1 >= 0) {\n\t\t\tif ((this.tabla[i][j-1] == '#')||(this.tabla[i][j-1] == 'o'))\n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[i][j-1] == '*') \n\t\t\t\tthis.pojedi(i, j-1);\n\t\t\telse \n\t\t\t\tthis.pomjeri(i, j-1);\n\t\t}\n\t\telse if (j-1 < 0 ) {\n\t\t\tif ((this.tabla[i][this.sirinaTable-1] == '#')||(this.tabla[i][this.sirinaTable-1] == 'o')) \n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[i][this.sirinaTable-1] == '*') \n\t\t\t\tthis.pojedi(i, this.sirinaTable-1);\n\t\t\telse \n\t\t\t\tthis.pomjeri(i, this.sirinaTable-1);\n\t\t}\n\t\treturn true;\n\t}", "public void spojElementeNaizmenicno(ListaBrojeva novaLista) {\n if (novaLista.prvi == null)\n return;\n else if (jePrazna())\n prvi = novaLista.prvi;\n else {\n Element tek = prvi.veza;\n Element novaListaTek = novaLista.prvi;\n Element pomocni = prvi;\n while (tek != null && novaListaTek != null) {\n pomocni.veza = novaListaTek;\n pomocni = pomocni.veza;\n novaListaTek = novaListaTek.veza;\n \n pomocni.veza = tek;\n pomocni = pomocni.veza;\n tek = tek.veza;\n \n }\n if (novaListaTek != null)\n pomocni.veza = novaListaTek;\n }\n }", "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}", "public void asetaTeksti(){\n }", "public void stupenVrcholu(String klic){\n\t\tint indexKlic = index(klic);\n\t\tfor(int i = 0; i < matice.length;i++){\n\t\t\tif(matice[i][indexKlic] == 1 )\n\t\t\t\tvrchP[indexKlic].stupenVstup++;\n\t\t\t\n\t\t\tif(matice[indexKlic][i] == 1)\n\t\t\t\t\tvrchP[indexKlic].stupenVystup++;\n\t\t\t}\n\t\t\t\t\n\t\t\n\t}", "protected boolean strzalSasiadujacy(StatekIterator oStatkiPrzeciwnika)\n\t\t{\n\t\t//przygotowanie kontenera przechowujacego do 4 sasiednich pol, ktore nadaja sie do kolejnego strzalu\n\t\tArrayList<Pozycja> oSasiedniePola = new ArrayList<Pozycja>(4);\n\t\t//petla wyszukujaca we wczesniejszych trafieniach pola do oddania kolejnego strzalu\n\t\twhile (oUzyteczneTrafienia.size() > 0)\n\t\t\t{\n\t\t\t//wylosowanie pola do przetestowania\n\t\t\tint iLosowanePole = oRand.nextInt(oUzyteczneTrafienia.size());\n\t\t\tPozycja oWybranePole = oUzyteczneTrafienia.get(iLosowanePole);\n\t\t\t\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\t//wczytanie wspolrzednych 4 sasiadow i sprawdzenie, czy sa to pola puste, lub zawierajace statek\n\t\t\t\tfor (int i = -1; i <= 1; ++i)\n\t\t\t\t\tfor (int j = -1; j <= 1; ++j)\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\toWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()\n\t\t\t\t\t\t\t&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()\n\t\t\t\t\t\t\t&& (i + j == -1 || i + j == 1)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_POLE_PUSTE\n\t\t\t\t\t\t\t\t|| oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STATEK\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tPozycja oPrawidlowe = new Pozycja(2);\n\t\t\t\t\t\t\t\toPrawidlowe.setX(oWybranePole.getX() + i);\n\t\t\t\t\t\t\t\toPrawidlowe.setY(oWybranePole.getY() + j);\n\t\t\t\t\t\t\t\toSasiedniePola.add(oPrawidlowe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (bProsteLinie == true)\n\t\t\t\t\t{\n\t\t\t\t\tboolean bPionowy = false;\n\t\t\t\t\tboolean bPoziomy = false;\n\t\t\t\t\tfor (int i = -1; i <= 1; ++i)\n\t\t\t\t\t\tfor (int j = -1; j <= 1; ++j)\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\toWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()\n\t\t\t\t\t\t\t\t&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()\n\t\t\t\t\t\t\t\t&& (i + j == -1 || i + j == 1)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STRZAL_CELNY)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\t\t\t\t\tbPionowy = true;\n\t\t\t\t\t\t\t\t\tif (j == 0)\n\t\t\t\t\t\t\t\t\t\tbPoziomy = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\tif (bPionowy == true && bPoziomy == true)\n\t\t\t\t\t\tthrow new ProgramistaException();\n\t\t\t\t\tif (bPionowy == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = oSasiedniePola.size() - 1; i >= 0; --i)\n\t\t\t\t\t\t\tif (oSasiedniePola.get(i).getX() != oWybranePole.getX())\n\t\t\t\t\t\t\t\toSasiedniePola.remove(i);\n\t\t\t\t\t\t}\n\t\t\t\t\tif (bPoziomy == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = oSasiedniePola.size() - 1; i >= 0; --i)\n\t\t\t\t\t\t\tif (oSasiedniePola.get(i).getY() != oWybranePole.getY())\n\t\t\t\t\t\t\t\toSasiedniePola.remove(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (oSasiedniePola.size() > 0)\n\t\t\t\t\t{\n\t\t\t\t\t//sa pola prawidlowe do oddania kolejnego strzalu\n\t\t\t\t\tint iWylosowanySasiad = oRand.nextInt(oSasiedniePola.size());\n\t\t\t\t\t//oddanie strzalu na wspolrzedne weybranego pola\n\t\t\t\t\tboolean bStrzal;\n\t\t\t\t\tbStrzal = oStatkiPrzeciwnika.strzal(oSasiedniePola.get(iWylosowanySasiad).getX(), oSasiedniePola.get(iWylosowanySasiad).getY());\n\t\t\t\t\tif (bStrzal == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t//zapisanie celnego strzalu w tablicy trafien\n\t\t\t\t\t\tPozycja oTrafienie = new Pozycja(2);\n\t\t\t\t\t\toTrafienie.setX( oSasiedniePola.get(iWylosowanySasiad).getX() );\n\t\t\t\t\t\toTrafienie.setY( oSasiedniePola.get(iWylosowanySasiad).getY() );\n\t\t\t\t\t\toUzyteczneTrafienia.add(oTrafienie);\n\t\t\t\t\t\t}\n\t\t\t\t\treturn bStrzal;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t//brak prawidlowych pol. usuniecie trafienia z listy i przejscie do kolejnej iteracji petli wyszukujacej\n\t\t\t\t\toUzyteczneTrafienia.remove(iLosowanePole);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tcatch (ParametrException e)\n\t\t\t\t{\n\t\t\t\tthrow new ProgramistaException(e);\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\treturn strzalLosowy(oStatkiPrzeciwnika);\n\t\t}", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}", "public void setProsteLinie(boolean bWartosc)\n\t\t{\n\t\tbProsteLinie = bWartosc;\n\t\t}", "public void RuchyKlas() {\n\t\tSystem.out.println(\"RuchyKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Ruch();\n\t\tPlansza.getRzemieslnikNaPlanszy().Ruch();\n\t\tPlansza.getArystokrataNaPlanszy().Ruch();\n\t}", "private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }", "public void setKlinik(Klinik klinik) {\r\n // variabel klinik sama dengan variabel lokal klinik\r\n this.klinik = klinik;\r\n }", "private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }", "public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }", "public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }", "public MaschinenVerwaltung() {\r\n setMaschinenListe();\r\n setEinKopfMaschinenListe();\r\n setZweiBisAchtKopfMaschine();\r\n setZehnUndMehrKopfMaschine();\r\n }", "public void reset()\n\t{\n\t\tprint (\"Rynek reset\");\n\t\t//this line is for debug purposes only\n\t\t\n\t\titeracja =0;\n\t\t\n\t\tlistaFunkcjiUzytecznosci = new ArrayList<ArrayList<Point>>();\n\n\t\t//dla scenariuszy nie psoiadajacych EV \n\t\tint liczbaHandlowcow=obliczLiczbaKont();\n\t\n\t\t\n\t\tint a=0;\n\t\twhile (a<liczbaHandlowcow)\n\t\t{\n\t\t\tlistaFunkcjiUzytecznosci.add(new ArrayList<Point>());\n\t\t\ta++;\n\t\t}\n\t\t\n\t\tpriceVectorsList = new ArrayList<ArrayList<Float>>();\n\t\t\n\t\trynekHistory.reset(liczbaHandlowcow);\n\t\t\n\t}", "public void setLivello(String l){\n \n this.livello = l;\n \n }", "private void zmienne_poziomu(int poziom)\n {\n liczba_zyc =Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc\"));\n liczba_naboi=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_naboi\"));\n liczba_zyc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc_wroga\"));\n liczba_pilek=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_pilek\"));\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_predkosc_wroga\"));\n bonusy_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_bonusy_poziomu\"));\n rozmiar_pilki=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_rozmiar_pilki\"));\n zmiana_ruchu_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_zmiana_ruchu_wroga\"));\n czas_gry=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_czas_gry\"));\n }", "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "private void lisaaMiinaVasemmalle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i - 1 >= 0) {\n lista = this.ruudukko[i - 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "public JLabel etykietaWyswietlaniaPunktow()\n\t{\n\t\treturn wyswietleniePunktow;\n\t}", "@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }", "public ArrayList<ArrayList<Float>> predykcjaCenNaRynkuLokalnym()\n\t{\n\t\tfloat cenaMinimalnaNaRynkuLokalnym= Stale.cenaMinimalnaNaRynkuLokalnym;\n\t\tfloat cenaMaksymalnaNaRynkuLokalnym = Stale.cenaDystrybutoraZewnetrznego;\n\t\t\n\t\t//tu siedzi to rozroznienie czy z generatora czy predykcja z poprzendiej symualcji\n\t\tArrayList<Float> normalnaPredykcja = pierwszaPredykcja();\n\t\tpriceVectorsList.add(normalnaPredykcja);\n\t\t\n\t\tArrayList<ArrayList<Float>> listaPredykcjiCen= new ArrayList<ArrayList<Float>>();\n\t\t\n\t\t\n\t\t//nizsza \n\t\tArrayList<Float> predykcjaZNizszaCena=new ArrayList<Float>(normalnaPredykcja);\t\t\n\t\tArrayList<Float> predykcjaZWyzszaCena=new ArrayList<Float>(normalnaPredykcja);\n\t\t\n\t\tfloat nizszaCena =(normalnaPredykcja.get(0)+cenaMinimalnaNaRynkuLokalnym)/2 ;\n\t\tfloat wyzszaCena=(normalnaPredykcja.get(0)+cenaMaksymalnaNaRynkuLokalnym)/2;\n\t\t\n\t\tpredykcjaZNizszaCena.set(0, nizszaCena);\n\t\tpredykcjaZWyzszaCena.set(0, wyzszaCena);\n\t\t\n\t\tlistaPredykcjiCen.add(predykcjaZNizszaCena);\n\t\tlistaPredykcjiCen.add(normalnaPredykcja);\n\t\tlistaPredykcjiCen.add(predykcjaZWyzszaCena);\n\t\t\n\t\t//reporting - zapisz zadeklarowan cene\n\t\trynekHistory.dodajZadeklarowanaCene(normalnaPredykcja.get(0));\n\t\t\n\t\t\n\t\treturn listaPredykcjiCen;\t\n\t}", "public void setOnline(int pos){\n }", "public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }", "public void setNrLoja(int nrLoja) {\n this.nrLoja = nrLoja;\n }", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}", "public v_pembelian() {\n initComponents();\n disable_info();\n setTabel();\n initFaktur();\n }", "@Test\n public void testSetSiirSuunta() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n try {\n k.setSiirSuunta(-1);\n } catch (Exception e) {\n assertTrue(\"Sirtymissuunnan muutos aiheuttaa virheen\", true);\n }\n }", "void novyVrchol(String klic){\n\t\tVrchol pom = new Vrchol(klic,'B');\n\t\t\n\t\tvrchP[pocet] = pom;\n\t\tpocet++;\n\t\n\t}", "public void sprawdzBonusy()\n\t{\n\t\tif(aktualnyNumerSciezki != -1)\n\t\t{\n\t\t\tpojazd.sprawdzBonus(droga.get(aktualnyNumerSciezki));\n\t\t\twyswietleniePunktow.setText(\"\" + pojazd.pobierzPunkty());\n\t\t}\n\t}", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}", "public void coMina(){\n espM=true;\r\n }", "public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void resetKassa() {\n aantalklanten = 0;\n aantalartikelen = 0;\n geld = 0;\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }", "public void moverArriba() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, 1));\n }", "public void podstawZapiszDaneWielePlikow() throws IOException {\r\n\t\tBufferedWriter bw = null; // tutaj zaSztywno\r\n\t\tString[] wektorDanych;\r\n\t\tString nazwaPlikuWynikowego = null;\r\n\t\tint licznik = 0;\r\n\t\twhile ((wektorDanych = daneEgzemplarza.getNextCorrectData()) != null) {\r\n\t\t\t++licznik;\r\n\t\t\tnazwaPlikuWynikowego = \"./wynik/wynik\" + Integer.toString(licznik)\r\n\t\t\t\t\t+ \".\" + rozszerzenieSzablonu;\r\n\t\t\tbw = new BufferedWriter(new FileWriter(nazwaPlikuWynikowego));\r\n\t\t\tfor (String[] s : calaZawartoscRozsep) {\r\n\t\t\t\tfor (String wyraz : s) {\r\n\t\t\t\t\tif (wyraz.equals(interpretujWyraz(wyraz)))\r\n\t\t\t\t\t\tfor (int i = 0; i < zmienne.length; ++i) {\r\n\t\t\t\t\t\t\tif (wyraz.equals(zmienne[i])) {\r\n\t\t\t\t\t\t\t\twyraz = wektorDanych[i];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\twyraz = interpretujWyraz(wyraz);\r\n\r\n\t\t\t\t\tbw.write(wyraz);\r\n\t\t\t\t}\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tbw.close();\r\n\t\t}\r\n\t}", "protected boolean strzalLosowy(StatekIterator oStatkiPrzeciwnika)\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tPozycja oWylosowanePole = losujPole(oStatkiPrzeciwnika.getPlansza());\n\t\t\tboolean bTrafienie = oStatkiPrzeciwnika.strzal(oWylosowanePole.getX(), oWylosowanePole.getY());\n\t\t\tif (bTrafienie == true)\n\t\t\t\t{\n\t\t\t\t//zapisanie celnego strzalu w tablicy trafien\n\t\t\t\tPozycja oTrafienie = new Pozycja(2);\n\t\t\t\toTrafienie.setX(oWylosowanePole.getX());\n\t\t\t\toTrafienie.setY(oWylosowanePole.getY());\n\t\t\t\toUzyteczneTrafienia.add(oTrafienie);\n\t\t\t\t}\n\t\t\treturn bTrafienie;\n\t\t\t}\n\t\tcatch (ParametrException e)\n\t\t\t{\n\t\t\tthrow new ProgramistaException(e);\n\t\t\t}\n\t\t}", "public Tura() {\n\t\tLicznikTur = 0;\n\t}", "public Leiho4ZerbitzuGehigarriak(Ostatua hartutakoOstatua, double prezioTot, Date dataSartze, Date dataIrtetze,\r\n\t\t\tint logelaTot, int pertsonaKop) {\r\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\".\\\\Argazkiak\\\\logoa.png\"));\r\n\t\tgetContentPane().setLayout(null);\r\n\t\tthis.setBounds(350, 50, 600, 600);\r\n\t\tthis.setResizable(false); // neurketak ez aldatzeko\r\n\t\tthis.setSize(new Dimension(600, 600));\r\n\t\tthis.setTitle(\"Airour ostatu bilatzailea\");\r\n\t\tprezioTot2 = prezioTot;\r\n\t\t// botoiak\r\n\t\tbtn_next.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tMetodoakLeihoAldaketa.bostgarrenLeihoa(hartutakoOstatua, prezioTot2, dataSartze, dataIrtetze, logelaTot,\r\n\t\t\t\t\t\tpertsonaKop, cboxPentsioa.getSelectedItem() + \"\", zerbitzuArray, gosaria);\r\n\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_next.setBounds(423, 508, 122, 32);\r\n\t\tbtn_next.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_next.setBackground(Color.LIGHT_GRAY);\r\n\t\tbtn_next.setForeground(Color.RED);\r\n\t\tgetContentPane().add(btn_next);\r\n\r\n\t\tbtn_prev.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// System.out.println(hartutakoOstatua.getOstatuMota());\r\n\t\t\t\tif (hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaHotelak(hartutakoOstatua, dataSartze, dataIrtetze);\r\n\t\t\t\telse\r\n\t\t\t\t\tMetodoakLeihoAldaketa.hirugarrenLeihoaEtxeak(hartutakoOstatua, prezioTot, dataIrtetze, dataIrtetze);\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_prev.setBounds(38, 508, 107, 32);\r\n\t\tbtn_prev.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tbtn_prev.setForeground(Color.RED);\r\n\t\tbtn_prev.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(btn_prev);\r\n\r\n\t\trestart.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tMetodoakLeihoAldaketa.lehenengoLeihoa();\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\trestart.setBounds(245, 508, 72, 32);\r\n\t\trestart.setForeground(Color.RED);\r\n\t\trestart.setBackground(Color.LIGHT_GRAY);\r\n\t\tgetContentPane().add(restart);\r\n\r\n\t\t// panela\r\n\t\tlblIzena.setText(hartutakoOstatua.getIzena());\r\n\t\tlblIzena.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblIzena.setFont(new Font(\"Verdana\", Font.BOLD | Font.ITALIC, 21));\r\n\t\tlblIzena.setBounds(0, 13, 594, 32);\r\n\t\tgetContentPane().add(lblIzena);\r\n\r\n\t\tlblLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblLogelak.setBounds(210, 114, 72, 25);\r\n\t\tgetContentPane().add(lblLogelak);\r\n\r\n\t\ttxtLogelak = new JTextField();\r\n\t\ttxtLogelak.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtLogelak.setEditable(false);\r\n\t\ttxtLogelak.setText(logelaTot + \"\");\r\n\t\ttxtLogelak.setBounds(285, 116, 32, 20);\r\n\t\ttxtLogelak.setColumns(10);\r\n\t\tgetContentPane().add(txtLogelak);\r\n\r\n\t\tlblPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblPentsioa.setBounds(210, 165, 72, 14);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tlblPentsioa.setVisible(false);\r\n\t\tgetContentPane().add(lblPentsioa);\r\n\r\n\t\tcboxPentsioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tcboxPentsioa.addItem(\"Pentsiorik ez\");\r\n\t\tcboxPentsioa.addItem(\"Erdia\");\r\n\t\tcboxPentsioa.addItem(\"Osoa\");\r\n\t\tcboxPentsioa.setBounds(285, 162, 111, 20);\r\n\t\tgetContentPane().add(cboxPentsioa);\r\n\t\tif (!hartutakoOstatua.getOstatuMota().equals(\"H\"))\r\n\t\t\tcboxPentsioa.setVisible(false);\r\n\r\n\t\tcboxPentsioa.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\r\n\t\t\t\tif (cboxPentsioa.getSelectedItem().equals(\"Pentsiorik ez\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 0;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Erdia\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 5 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t} else if (cboxPentsioa.getSelectedItem().equals(\"Osoa\")) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - pentsioPrez;\r\n\t\t\t\t\tpentsioPrez = 10 * gauak;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + pentsioPrez;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tchckbxGosaria.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tchckbxGosaria.setBounds(245, 201, 97, 23);\r\n\t\tchckbxGosaria.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tint gauak = (int) ((dataIrtetze.getTime() - dataSartze.getTime()) / 86400000);\r\n\t\t\t\tdouble gosariPrezioa = 3 * gauak;\r\n\t\t\t\tif (chckbxGosaria.isSelected()) {\r\n\t\t\t\t\tprezioTot2 = prezioTot2 + gosariPrezioa;\r\n\t\t\t\t\tgosaria = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgosaria = false;\r\n\t\t\t\t\tprezioTot2 = prezioTot2 - gosariPrezioa;\r\n\t\t\t\t}\r\n\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tgetContentPane().add(chckbxGosaria);\r\n\r\n\t\tlblZerbitzuak.setFont(new Font(\"Verdana\", Font.BOLD, 16));\r\n\t\tlblZerbitzuak.setBounds(51, 244, 230, 25);\r\n\t\tgetContentPane().add(lblZerbitzuak);\r\n\r\n\t\t// gehigarriak\r\n\t\tzerbitzuArray = MetodoakKontsultak.zerbitzuakOstatuanMet(hartutakoOstatua);\r\n\r\n\t\tmodelo.addColumn(\"Izena:\");\r\n\t\tmodelo.addColumn(\"Prezio gehigarria:\");\r\n\t\tmodelo.addColumn(\"Hartuta:\");\r\n\r\n\t\t// tabla datuak\r\n\t\ttable = new JTable(modelo);\r\n\t\ttable.setShowVerticalLines(false);\r\n\t\ttable.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\ttable.setFont(new Font(\"Verdana\", Font.PLAIN, 14));\r\n\r\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(150);\r\n\r\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\ttable.getTableHeader().setResizingAllowed(false);\r\n\t\ttable.setRowHeight(32);\r\n\t\ttable.setBackground(Color.LIGHT_GRAY);\r\n\t\ttable.setBounds(24, 152, 544, 42);\r\n\t\ttable.getTableHeader().setFont(new Font(\"Verdana\", Font.BOLD, 15));\r\n\t\ttable.getTableHeader().setReorderingAllowed(false);\r\n\t\tgetContentPane().add(table);\r\n\r\n\t\ttable.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mousePressed(MouseEvent me) {\r\n\t\t\t\tif (me.getClickCount() == 1) {\r\n\t\t\t\t\ti = 1;\r\n\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\tif (table.getValueAt(table.getSelectedRow(), 2).equals(\"Ez\"))\r\n\t\t\t\t\t\t\ti = 1;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\ti = 2;\r\n\t\t\t\t\t\tif (i == 1) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Bai\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 + zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Bai\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (i == 2) {\r\n\t\t\t\t\t\t\ttable.setValueAt(\"Ez\", table.getSelectedRow(), 2);\r\n\t\t\t\t\t\t\tprezioTot2 = prezioTot2 - zerbitzuArray.get(table.getSelectedRow()).getPrezioa();\r\n\t\t\t\t\t\t\tzerbitzuArray.get(table.getSelectedRow()).setHartuta(\"Ez\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tscrollPane = new JScrollPane(table);\r\n\t\tscrollPane.setViewportBorder(null);\r\n\t\tscrollPane.setBounds(20, 282, 562, 188);\r\n\r\n\t\tgetContentPane().add(scrollPane);\r\n\r\n\t\tfor (HartutakoOstatuarenZerbitzuak zerb : zerbitzuArray) {\r\n\t\t\tarray[0] = zerb.getIzena();\r\n\t\t\tarray[1] = zerb.getPrezioa() + \" €\";\r\n\t\t\tarray[2] = \"Ez\";\r\n\t\t\tmodelo.addRow(array);\r\n\t\t}\r\n\t\ttable.setModel(modelo);\r\n\r\n\t\tlblPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblPrezioa.setBounds(210, 72, 63, 14);\r\n\t\tgetContentPane().add(lblPrezioa);\r\n\r\n\t\ttxtPrezioa = new JTextField();\r\n\t\ttxtPrezioa.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\ttxtPrezioa.setText(prezioTot2 + \" €\");\r\n\t\ttxtPrezioa.setEditable(false);\r\n\t\ttxtPrezioa.setBounds(274, 70, 136, 20);\r\n\t\ttxtPrezioa.setColumns(10);\r\n\t\tgetContentPane().add(txtPrezioa);\r\n\r\n\t}", "private void setzeBeschriftungen(){ \t\t\t\n\t\tif (jRBtnLinie.isSelected()) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn linie gewählt ist: ..\n\t\t\tjLPositionX1.setText(\"Startpunkt x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// .. verschiedene labels für die textfelder anpassen für parameter-werte (x1,y1,x2,y2) [y1 bleibt immer gleich]\n\t\t\tjLPositionX2.setText(\"Endpunkt x:\");\n\t\t\tjLPositionY2.setText(\" y:\");\n\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// wenn rechteck, oval, kreis:..\n\t\t\tjLPositionX1.setText(\"Position x:\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ... labels anpassen auf parameter-werte (x1, y1, breite, höhe) [y1 bleibt immer gleich]\t\t\t\t\n\t\t\tjLPositionX2.setText(\"Breite:\");\n\t\t\tjLPositionY2.setText(\"Höhe:\");\n\t\t}\n\t}", "public void setMotivoLlamadoAtencion(MotivoLlamadoAtencion motivoLlamadoAtencion)\r\n/* 119: */ {\r\n/* 120:127 */ this.motivoLlamadoAtencion = motivoLlamadoAtencion;\r\n/* 121: */ }", "public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "public void srediFormuPremaSK(){\n int aktivanSK = Komunikacija.getInstance().getAktivan_sk();\n \n if(aktivanSK == Konstante.SK_DODAVANJE){\n srediFormu();\n this.setTitle(\"Unos nove vezbe\");\n }\n if(aktivanSK == Konstante.SK_IZMENA){\n srediFormu();\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Izmena vezbe\");\n } \n \n if(aktivanSK == Konstante.SK_PRIKAZ){\n jTextFieldNaziv.setEnabled(false);\n jTextFieldFokus.setEnabled(false);\n jTextFieldVremeTrajanja.setEnabled(false);\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Detalji vezbe\");\n }\n}", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "private void atualizarPalitos() {\n Jogador jogador = servidor.getJogador(nomeJogador);\n LugarModelo lugarModelo = listaLugares.get(jogador.lugar - 1);\n lugarModelo.getMao().setText(jogador.quantidadePalitosApostados + \" Palitos\");\n lugarModelo.getQuantidadePalitosRestantes().setText(\"Palitos Restante: \" + jogador.quantidadePalitosRestantes + \"\");\n }", "private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }", "private void vuoronKolmasHeitto() {\n while (heittojaJaljella == 1) {\n if (tulosLaitettu) {\n break;\n }\n try {\n Thread.sleep(100);\n } catch (InterruptedException ex) {\n System.out.println(\"Ei ole heitetty tai laitettu tulosta\");\n }\n }\n }" ]
[ "0.68349564", "0.6713326", "0.65996957", "0.6580603", "0.65619504", "0.65397686", "0.64532775", "0.6419699", "0.6402106", "0.6386509", "0.6359215", "0.6356729", "0.63486505", "0.63441074", "0.6222354", "0.61913794", "0.61871", "0.6177765", "0.61775964", "0.6156958", "0.61382526", "0.61339974", "0.6131116", "0.61193925", "0.6111208", "0.6102955", "0.6101496", "0.6089921", "0.6089126", "0.6071011", "0.60707897", "0.6067192", "0.6049437", "0.60429895", "0.6040184", "0.6033044", "0.6031733", "0.60220546", "0.60211664", "0.6015546", "0.6003415", "0.5993196", "0.5987816", "0.5987191", "0.5978791", "0.59511685", "0.5949415", "0.5947998", "0.5936972", "0.59353787", "0.59304535", "0.59299755", "0.59160477", "0.59144855", "0.5913858", "0.5911484", "0.5905113", "0.59031385", "0.5901169", "0.59008926", "0.5899328", "0.58966035", "0.58925796", "0.58881897", "0.58866733", "0.5886549", "0.5883408", "0.5869876", "0.58650166", "0.58597773", "0.5859294", "0.58565044", "0.58521545", "0.5846897", "0.58452547", "0.58445764", "0.5843259", "0.5838776", "0.58381456", "0.5830324", "0.5828385", "0.58280885", "0.5823768", "0.5823353", "0.58228505", "0.5815242", "0.58125055", "0.5812403", "0.58113676", "0.58094335", "0.58036643", "0.5797865", "0.57978153", "0.57896864", "0.5789359", "0.5783413", "0.5782295", "0.57820857", "0.5779841", "0.57785773", "0.5766602" ]
0.0
-1
Brise setaca po idu (odnosno oznacava deleted = true). Njegov pripadni Login se pak u potpunosti brise u bazi.
@Override public WalkerDetails deleteWalker(Long id) { Optional<Walker> walker = walkerRepo.findById(id); if(!walker.isPresent()){ throw new RequestDeniedException("Walker with ID " + Long.toString(id) + " doesn't exsist!"); } Set<Reservation> reservations = walker.get().getReservations(); for (Reservation r : reservations) { if(r.getDate().compareTo(Date.valueOf(LocalDate.now())) >= 0) { r.setCancelled(true); } } WalkerDetails walkerDetails = this.getWalkerDetailsById(id); Optional<WalkerLogin> walkerLogin = walkerLoginRepo.findById(id); walkerRepo.deleteWalkerById(id); walkerLoginRepo.delete(walkerLogin.get()); return walkerDetails; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int delete(int id) {\n\t\tString SQL=\" update user set estado = 0 where idUsuario = ?\";\n\t\treturn jdbc.update(SQL, id);\n\t}", "@Override\n public void delete(int id) {\n Connection connection = createConnection();\n try {\n PreparedStatement preparedStatement = connection.prepareStatement(\"UPDATE gebruiker set isActief = FALSE WHERE ID = ?\");\n preparedStatement.setInt(1,id);\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n closeConnection( connection);\n }", "void DeleteCompteUser(int id);", "public void deleteUsuario (int id);", "@Override\n\t\tpublic boolean delete(int id) {\n\t\t\t\treturn false;\n\t\t}", "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "@Override\r\n public boolean delete(String id) {\r\n try {\r\n String query = \"DELETE FROM Anggota Where kd_anggota=?\";\r\n PreparedStatement preparedStatement = connection.prepareStatement(query);\r\n preparedStatement.setString(1, id);\r\n preparedStatement.executeUpdate();\r\n return true;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AnggotaDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return false;\r\n }", "@Override\n\tpublic void deleteUsuario(Long id) {\n\t\t\n\t}", "@Override\r\n\t@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\r\n\tvoid delete(Long id);", "public void setUsua_id(java.lang.Long newUsua_id);", "@Override\n public boolean delete(Integer id) {\n return false;\n }", "@Override\r\n public void damdelete(Integer[] da_id) {\n userMapper.damdelete(da_id);\r\n }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setId_anneeScolaire(int id_anneeScolaire) {this.id_anneeScolaire = id_anneeScolaire;}", "void deleteAveria(Long idAveria) throws BusinessException;", "@Override\n public Header delete(Long id) {\n Optional<User> optionalUser = baseRepository.findById(id);\n\n // respository -> delete\n return optionalUser\n .map(user -> {\n baseRepository.delete(user);\n\n return Header.OK();\n })\n .orElseGet(() -> Header.ERROR(\"데이터가 없습니다.\"));\n //response return\n }", "public void setIdUsuario(int value) {\n this.idUsuario = value;\n }", "public void setIdCliente(Integer id_cliente){\n this.id_cliente=id_cliente;\n }", "@Override\n\tpublic User delete(int id) {\n\t\tSystem.out.println(\"OracleDao is delete\");\n\t\treturn null;\n\t}", "void deleteMataKuliah (int id);", "@Override\r\n\tpublic boolean delete(int id) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean delete(int id) {\n\t\treturn false;\r\n\t}", "public static void retrocedi_admin(int id) {\r\n\t\ttry {\r\n\t\tDatabase.connect();\r\n\t\tDatabase.updateRecord(\"utente\", \"utente.ruolo=2\", \"utente.id=\"+id); \t\t\r\n\t\tDatabase.close();\r\n\t\t}catch(NamingException e) {\r\n \t\tSystem.out.println(e);\r\n }catch (SQLException e) {\r\n \tSystem.out.println(e);\r\n }catch (Exception e) {\r\n \tSystem.out.println(e); \r\n }\r\n\t}", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "@Override\n public boolean delete(String idTransaksi) {\n try {\n String query = \"DELETE FROM transaksi WHERE id = ?\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ps.setString(1, idTransaksi);\n\n if (ps.executeUpdate() > 0) {\n return true;\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return false;\n }", "@Override\n\tpublic boolean delete(long id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean delete(long id) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void delete() {\n\t\tString delete=\"DELETE FROM members WHERE id =?\";\r\n\t\t try(Connection connection=db.getConnection();) {\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(delete);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t \tpreparedStatement.executeUpdate();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction successful\");\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t}\r\n\t}", "@Override\r\n\tpublic boolean delete(int id) {\r\n\t\tboolean res=false;\r\n\t\ttry {\r\n\t\t\tPreparedStatement prep_stmt = conn.prepareStatement(MssqlViaggioDAO.delete);\r\n\t\t\tprep_stmt.setInt(1,id);\r\n\t\t\tprep_stmt.executeUpdate();\r\n\t\t\tres = true;\r\n\t\t\tprep_stmt.close();\t\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "@Override\n\tpublic boolean delete(int id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean delete(long id) {\n\t\treturn true;\n\t}", "@Override\n\t/**\n\t * Elimino un empleado.\n\t */\n\tpublic boolean delete(Object Id) {\n\t\treturn false;\n\t}", "public void setIsdeleted(Integer isdeleted) {\n this.isdeleted = isdeleted;\n }", "public static void delete(int id) {\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"DELETE FROM polovni WHERE id = ?\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ps.setInt(1, id);\n ps.execute();\n System.out.println(\"Uspesno brisanje iz baze.\");\n }\n } catch (SQLException ex) {\n Logger.getLogger(PolovniFunctions.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic boolean delete(Long id) {\n\t\treturn false;\n\t}", "public void ponerUsuarioInactivo(String idUsuario);", "@RequestMapping(value = \"/delete\", method = RequestMethod.GET) \n public RedirectView deleteBuku(@RequestParam(required = true) Long id){ //Pake RequestParam klo ada kirim/minta data, disini kita tulis name dri inputannnya dan type datanya apa.\n this.bukuService.delete(new Buku (id));\n //this.bukuService.delete(id);\n return new RedirectView(\"/admin/buku/list\", true); \n }", "public void setIsdelete(Integer isdelete) {\r\n this.isdelete = isdelete;\r\n }", "@Override\n\tpublic void delete(long id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(long id) {\n\t\t\n\t}", "@Override\r\npublic int delete(int id) {\n\treturn detalle_pedidoDao.delete(id);\r\n}", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void delete(Long id) {\n\r\n\t}", "public void setIsdelete(Integer isdelete) {\n this.isdelete = isdelete;\n }", "public void setIdacesso(int pIdacesso){\n this.idacesso = pIdacesso;\n }", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int Rejuser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from login where login_id=\"+id+\"\");\r\n\treturn i;\r\n\t\r\n}", "public void setId(Long id){\n this.id = id;\n }", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "public void setId( Long id ) {\n this.id = id ;\n }", "@Delete({\n \"delete from A_USER_ROLE\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);", "public void delete(int id) {\n\n\t}", "public void setId(int id){ this.id = id; }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Override\r\n\tpublic boolean delete(int id) {\r\n\t\treturn executeAndIsModified(DELETE_USER, id);\r\n\t}", "public void setIdcliente(java.lang.String idcliente) {\n this.idcliente = idcliente;\n }", "public void setIdUsuario(Integer idUsuario) {\n this.idUsuario = idUsuario;\n }", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "public void delete(Long id){\n try {\n categoriaUsuarioRepository.deleteById(id);\n }catch (Exception e){\n System.out.println(e);\n }\n }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n public int delete( J34SiscomexMercadoriaAdi j34SiscomexMercadoriaAdi ) {\n return super.doDelete(j34SiscomexMercadoriaAdi);\n }", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "private void buttonToDeleteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonToDeleteMouseClicked\n ActivityService activityService = new ActivityService();\n activityService\n .setId(this.id)\n .setUser(this.dashboard.user);\n try {\n activityService.delete();\n this.setVisible(false);\n this.dashboard.refreshUI();\n }catch (Exception err) {\n this.alert.showMessageDialog(null, \"gagal menghapus data\");\n }\n }", "public DeleteUser(int id) {\n\t\tsuper();\n\t\tthis.id = id;\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "public void setId_usuario(String usuario) {\n this.id_usuario = usuario;\n }", "public Boolean delete(Long id) {\r\n\t\t\tlogger.debug(\"Deleting codigo with id: \" + id);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t/*for (Paciente codigo:codigos) {\r\n\t\t\t\t\tif (codigo.getId().longValue() == id.longValue()) {\r\n\t\t\t\t\t\tlogger.debug(\"Found record\");\r\n\t\t\t\t\t\tcodigos.remove(codigo);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}*/\r\n\t\t\t\t\r\n\t\t\t\tlogger.debug(\"No records found\");\r\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(e);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\tpublic Result delete(int id) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void Delete(long id) {\n\t\t\r\n\t}", "public int deleteUser(int id) {\n\t\t\t String deleteQuery=\"delete from registration_customer_data where id='\"+id+\"' \";\n\t\t\t return template.update(deleteQuery); \n\t\t\n\t\t}", "@Override\r\n\tpublic User deleteRcord(int id) {\n\t\treturn null;\r\n\t}", "@Override\n\t\tpublic boolean delete(AccountTransaction t, int id) {\n\t\t\treturn false;\n\t\t}", "public void deleteAngkot(long id)\n {\n String strFilter = \"id=\" + id;\n database.delete(HelperAngkot.TABLE_NAME, strFilter, null);\n }", "public void setIsdeleted( Boolean isdeleted )\n {\n this.isdeleted = isdeleted;\n }", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "public void setIsdelete(Integer isdelete) {\n\t\tthis.isdelete = isdelete;\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Ordre : {}\", id); ordreRepository.deleteById(id);\n }", "@Override\n\tpublic void delete(Serializable id) {\n\n\t}", "public void setId(int id)\n {\n this.id=id;\n }", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "private void verificaIdade() {\r\n\t\thasErroIdade(idade.getText());\r\n\t\tisCanSave();\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Permiso : {}\", id);\n permisoRepository.delete(id);\n }", "@Override\n\tpublic JSONObject delete(long id) {\n\t\treturn null;\n\t}", "public void setId(long id) {\n id_ = id;\n }", "public void setIdCliente(int value) {\n this.idCliente = value;\n }", "public void setEstadoEleicaoEncerrada(int idEleicao){\n this.eleicaoDB.setEstadoEleicaoEncerrada(idEleicao);\n }", "public void setIdVenta(String idVenta) {\n this.idVenta = idVenta;\n }", "public void deleteUsuario(int id){\r\n try{\r\n PreparedStatement ps = bd.prepareStatement(SQLD);\r\n ps.setInt(1, id);\r\n ps.executeUpdate();\r\n \r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro no deletedUsuario no DAO: \" + sqle.getMessage());\r\n }\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString id = UserID.getText();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint check = db.idcheck(id);\r\n\r\n\t\t\t\t\tif (check == 1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"삭제되었습니다.\");\r\n\t\t\t\t\t\tdb.delete(id);\r\n\t\t\t\t\t\t로그인창 login = new 로그인창();\r\n\t\t\t\t\t\tlogin.loginpage();\r\n\t\t\t\t\t\tj.dispose();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"해당 아이디가 존재하지않습니다.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "public String elimiinaClienteId(Long id){\n\t\tOptional <Cliente> optCliente = clienteRepository.findById(id);\n\t\tif(optCliente.isEmpty()){\n\t\t\tthrow new IllegalArgumentException(\"No se encontró el id del usuario\");\n\t\t}\n\t\tCliente cliente = optCliente.get();\n\t\t// Elimina sus tickets\n\t\tticketRepository.deleteAll(ticketRepository.findByClienteId(cliente.getId()));\n\t\t// Elimina el cliente\n\t\tcliente.setNegocio(null);\n\t\tclienteRepository.save(cliente);\n\t\tclienteRepository.delete(cliente);\n\t\t\n\t\treturn \"Se elimino el cliente con el id : \" + id;\n\t}", "@Override\n\tpublic void delete(int id) {\n\t}", "public void setIdPreventivo(int idPreventivo) {\n this.idPreventivo = idPreventivo;\n }", "@Override\n\tpublic boolean deleteUser(Integer id) {\n\t\treturn false;\n\t}" ]
[ "0.67947865", "0.6635174", "0.6338808", "0.6321663", "0.6309995", "0.6297988", "0.62603515", "0.62463737", "0.62316513", "0.61659485", "0.6131348", "0.6116299", "0.6105846", "0.6105846", "0.6089744", "0.6080746", "0.6079355", "0.60607475", "0.60586095", "0.6056554", "0.60530704", "0.6045401", "0.6045401", "0.60435766", "0.6034306", "0.6034306", "0.6022561", "0.6021199", "0.6021199", "0.6014234", "0.5994198", "0.5986923", "0.5985873", "0.5985747", "0.5984136", "0.59826624", "0.5976766", "0.5961968", "0.5957893", "0.59537405", "0.59499043", "0.59499043", "0.5949306", "0.5947691", "0.5947691", "0.5944093", "0.594011", "0.59329087", "0.5930878", "0.5930878", "0.59284055", "0.5921423", "0.59191114", "0.5916555", "0.59139717", "0.59119135", "0.59114635", "0.59088314", "0.58994955", "0.5896574", "0.5896563", "0.58943886", "0.58943886", "0.58943886", "0.58943886", "0.58895296", "0.5888938", "0.5887378", "0.5881901", "0.5880484", "0.58781576", "0.5877252", "0.5877252", "0.5872439", "0.58684456", "0.5864797", "0.5864121", "0.5862199", "0.5860146", "0.5858422", "0.5854425", "0.585421", "0.585413", "0.58528686", "0.58519137", "0.58511245", "0.5850767", "0.58483267", "0.58478737", "0.58436036", "0.5841801", "0.5837051", "0.5829499", "0.58258325", "0.58245355", "0.58225316", "0.5821435", "0.5820408", "0.5819543", "0.5818785", "0.58120626" ]
0.0
-1
Ranking po idu setaca, bez obzira je li obrisan
@Override public WalkerRanking getRankingById(Long walkerId) { Optional<Walker> walkerOpt = walkerRepo.findById(walkerId); if(walkerOpt.isEmpty()) { return null; } else { Walker walker = walkerOpt.get(); //neotkazane setnje: var reservations = walker.getReservations().stream().filter( (r) -> !r.isCancelled() && r.getDate().before( new Date(System.currentTimeMillis()))) .collect(Collectors.toSet()); List<Time> durations = new ArrayList<>(); Set<Dog> dogs = new HashSet<>(); for(Reservation r : reservations) { Set<Dog> walkedDogs = r.getDogs(); dogs.addAll(walkedDogs); var start = r.getStartTime().getTime(); var end = r.getReturnTime().getTime(); Time duration = new Time(end - start); durations.add(duration); } Long totalTimeMili = (long) 0; for(Time duration : durations) { totalTimeMili += duration.getTime(); } double hours = (double) totalTimeMili / 1000 / 60 / 60; return new WalkerRanking(walker.getId(), walker.getFirstName(), walker.getLastName(), reservations.size(), dogs.size(), hours); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getRanking();", "@Override\r\n\tpublic int calcRankByID(String id) {\n\t\tint rank = 0;\r\n\r\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"select * from member order by score desc\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\trank++;\r\n\t\t\t\tif(rs.getString(\"id\").equals(id))\r\n\t\t\t\t\treturn rank;\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tps.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn rank;\r\n\t\t}\r\n\r\n\t\treturn rank;\r\n\t}", "long getRank();", "public int Rank();", "public int getRank();", "public int getRank();", "long getToRank();", "public void ordenarRanking(){\n for(int i = 0; i < clasificacion.length; i++) {\n boolean flag = false;\n for(int j = 0; j < clasificacion.length-1; j++) {\n\n /*Si el elemento de la posicion j+1 es mayor que el anterior se intercambian\n los valores de esas posiciones*/\n if((clasificacion[j].getMediana())<(clasificacion[j+1].getMediana())) {\n Ranking k = new Ranking();\n k=clasificacion[j];\n clasificacion[j] = clasificacion[i];\n clasificacion[i] = k;\n flag=true; //Se pone a true para indicar que se ha hecho un cambio\n }//END_IF\n }//END_FOR\n\n if(!flag) break; //Si flag es igual a falso quiere decir que en la ultima iteracion\n //no hubo ningun intercambio y por lo tanto el metodo puede terminar\n //ya que el vector esta ordenado\n }//END_FOR\n\n }", "@Override\n\tpublic VisualizarR listarRanking() throws RemoteException {\n\t\treturn null;\n\t}", "public int getRanking() {\n return ranking_;\n }", "public int getRank(){\n\t\tswitch(getTkn()){\n\t\t\tcase Not:\n\t\t\treturn 7;\n\t\t\t\n\t\t\tcase Kali:\n\t\t\tcase Bagi:\n\t\t\tcase Mod:\n\t\t\tcase Div:\n\t\t\treturn 6;\n\t\t\t\n\t\t\tcase Tambah:\n\t\t\tcase Kurang:\n\t\t\treturn 5;\n\t\t\t\n\t\t\tcase KurangDari:\n\t\t\tcase LebihDari:\n\t\t\tcase KurangDariSamaDengan:\n\t\t\tcase LebihDariSamaDengan:\n\t\t\treturn 4;\n\t\t\t\t\t\t\n\t\t\tcase SamaDengan:\n\t\t\tcase TidakSamaDengan:\n\t\t\treturn 3;\n\t\t\t\n\t\t\tcase And:\n\t\t\treturn 2;\n\t\t\t\n\t\t\tcase Xor:\n\t\t\treturn 1;\n\t\t\t\n\t\t\tcase Or:\n\t\t\treturn 0;\n\n\t\t\tdefault:\n\t\t\treturn -999;\n\t\t}\n\t}", "public int getRank(){\r\n return this.rank;\r\n }", "public abstract void modRanking(ParamRanking pr);", "public void rank(){\n\n\t}", "public int rank() { return this.rank; }", "public int getRank ()\n {\n return this.ranks; \n }", "public int getRank(){\n return rank;\n }", "public int getRank(){\n return this.rank;\n }", "public int getRanking() {\n return ranking_;\n }", "private void iniciarRanking() {\n\t\tif(!usouIa) {\r\n\t\t\tswitch (this.dificuldade) {\r\n\t\t\tcase FACIL:\r\n\t\t\t\trank = new RankingFacil();\r\n\t\t\t\tbreak;\r\n\t\t\tcase MEDIO:\r\n\t\t\t\trank = new RankingMedio();\r\n\t\t\t\tbreak;\r\n\t\t\tcase DIFICIL:\r\n\t\t\t\trank = new RankingDificil();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trank.iniciarRanking(new Jogador(this.nomeJogador, timer.getTempo(), timer.getTempoTotal()));//MANDA O NOME DO JOGADOR, O TEMPO FORMATADO E O TEMPO TOTAL PRO RANKING\r\n\t\t}\r\n\t}", "boolean hasRanking();", "public int[] get_ranking() {\n\t\treturn null;\r\n\t}", "public int getRank()\n {\n return rank;\n }", "public int getRank(){\n return Value;\n }", "public void actualizarRanking(String login, int mediana){\n \n int temp=0;\n for(int i=0;i<10;i++){\n if((clasificacion[i].getLogin()).equals(login)){ //si el jugador ya esta en los 10 mejores jugadores actualizo su punctuacion\n temp=(clasificacion[i].getMediana()) + mediana;\n clasificacion[i].setMediana(temp);\n ordenarRanking(); //ordeno el ranking con la puntuacion del jugador actualizada\n return;\n }//END_IF\n }//END_FOR\n\n \n for(int j=0;j<10;j++){\n \n if((clasificacion[j].getMediana()) < mediana){//si existe en el ranking una puntuacion menor de la que se passa a la funcion por parametro\n System.arraycopy(clasificacion, j, clasificacion, j+1, clasificacion.length-j-1);//reordena las puntuaciones menores que mediana\n Ranking aux=new Ranking();\n aux.setLogin(login);\n aux.setMediana(mediana);\n clasificacion[j]=aux;\n return;\n }//END_IF\n }//END_FOR\n }", "public int getRank()\n {\n return rank;\n }", "public int getRank()\r\n {\r\n return this.rank;\r\n }", "public LSPRanking getRanking () {\r\n return ranking;\r\n }", "long getFromRank();", "public int getRank() {\r\n return rank;\r\n }", "public Builder setRanking(int value) {\n bitField0_ |= 0x00000010;\n ranking_ = value;\n onChanged();\n return this;\n }", "public void setRank(int value);", "public Integer getRank(){\r\n\t\treturn rank;\r\n\t}", "private int setRank() {\n this.rank = 0;\n for(int row = 0; row < SIZE; row++){\n for(int col = 0; col < SIZE; col++){\n int currentBoardNumber = row * 3 + col + 1;\n if(row == 2 && col == 2) {\n currentBoardNumber = 0;\n }\n if(this.board[row][col] != currentBoardNumber) {\n this.rank += 1;\n }\n }\n }\n this.rank += this.prevMoves.length();\n return this.rank;\n }", "public Ranking getRanking() {\n return ranking;\n }", "public int getRank() {\n return rank;\n }", "public int getRank() {\n return rank;\n }", "public int getRank() {\n return rank;\n }", "public int rank(K key);", "void showRanking(String winner, String rank);", "public Ranking[] mostrarRanking(){\n return clasificacion;\n }", "public int getRanking(){\n int spelerID = Integer.valueOf(spelerIDField.getText());\n int ranking=0;\n try {\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT ranking FROM Spelers WHERE idcode = ?\");\n st.setInt(1, spelerID);\n ResultSet rs= st.executeQuery();\n if(rs.next()) {\n return rs.getInt(\"ranking\");\n }\n }catch(Exception e) {\n System.out.println(e);\n }\n return ranking;\n }", "public int getRank()\n\t{\n\t\treturn rank;\n\t}", "@Override\n\tpublic int compareTo(Object o) {\n\t\tMateriaPrima mp = (MateriaPrima)o; \n\t\treturn this.id - mp.id;\n\t}", "public List<RankingDTO> getRanking() {\n\t\treturn this.ranking;\n\t}", "public static int rank(int key, int[] a) {\n int lo = 0;\n int hi = a.length - 1;\n while (lo <= hi) { // Key is in a[lo..hi] or not present.\n int mid = lo + (hi - lo) / 2;\n if\n (key < a[mid]) hi = mid - 1;\n else if (key > a[mid]) lo = mid + 1;\n else\n return mid;\n }\n return -1;\n }", "public static int rank(int key, int[] a){\n\t\tint lo = 0;\n\t\tint hi = a.length - 1;\n\t\twhile(lo <= hi){\n\t\t\t//Key is in a[lo..hi or not present\n\t\t\tint mid = lo + (hi - lo)/2;\n\t\t\tif(key < a[mid] ){\n\t\t\t\thi = mid - 1;\n\t\t\t}\n\t\t\telse if(key < a[mid]){\n\t\t\t\tlo = mid + 1;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn mid;\n\t\t}\n\t\treturn -1;\n\t}", "@Override\n public int getRank() {\n return rank;\n }", "public void rankMatches();", "protected int maakTrein(int positie){\r\n for (int i = 0; i <= treinaantal; i++){\r\n if (treinlijst[i] == null){\r\n treinlijst[i] = new Trein(positie, treinaantal++);\r\n baan.addTrein(treinlijst[i].getId());\r\n //update naar gui\r\n int trein[] = new int[1];\r\n trein[0] = treinlijst[i].getId();\r\n int[] arg = new int[1];\r\n arg[0] = positie;\r\n main.updateGui(\"trein\", trein, arg);\r\n return treinlijst[i].getId();\r\n }\r\n }\r\n return 0;\r\n }", "public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;", "public void setRank(int aRank)\n {\n this.ranks = aRank;\n }", "public Integer getRank() {\n return this.rank;\n }", "public int rank() throws MPJException {\n\n IbisIdentifier id = MPJ.getMyId();\n if (this.table != null) {\n for (int i = 0; i < this.table.size(); i++) {\n IbisIdentifier a = this.table.elementAt(i);\n if (a.equals(id)) {\n return (i);\n }\n }\n }\n\n return (MPJ.UNDEFINED);\n }", "Rank(int points){\r\n\t\tthis.points = points;\r\n\t}", "private int getRank(DiceModel playerToRank) {\n\t\tint rank = 1;\n\t\tint ph; // placeholder\n\t\tint d1 = playerToRank.getDie1();\n\t\tint d2 = playerToRank.getDie2();\n\t\tint d3 = playerToRank.getDie3();\n\t\t\n\t\t// sorting them in ascending order\n\t\t// switch the 2nd number into first position if it is bigger\n\t\tif (d2 > d1) {\n\t\t\tph = d1;\n\t\t\td1 = d2;\n\t\t\td2 = ph;\n\t\t} // switch the 3rd number into second position if it is bigger\n\t\tif (d3 > d2) {\n\t\t\tph = d2;\n\t\t\td2 = d3;\n\t\t\td3 = ph;\n\t\t} // switch the 2nd number into first position if it is bigger\n\t\tif (d2 > d1) {\n\t\t\tph = d1;\n\t\t\td1 = d2;\n\t\t\td2 = ph;\n\t\t}\n\t\t\n\t\t// now to get their ranking\n\t\t// check for 4,2,1\n\t\tif (d1 == 4 && d2 == 2 && d3 == 1) {\n\t\t\trank = 4;\n\t\t} else if (d1 == d2 && d1 == d3) { // checks for triples\n\t\t\trank = 3;\n\t\t} else if ((d1 == d2 && d1 != d3) || d2 == d3) { // pairs\n\t\t\trank = 2;\n\t\t} else {\n\t\t\trank = 1;\n\t\t}\n\t\t\n\t\treturn rank;\n\t}", "private int rankMethod()\r\n {\r\n\treturn spinTheWheel();\r\n }", "public int rekisteroi() {\r\n alId = seuraavaNro;\r\n seuraavaNro++;\r\n\r\n return seuraavaNro;\r\n }", "public int getRank(int score) {\n int i = 0;\n for (i = 0; i < scoreInfoList.size(); i++) {\n if (score > scoreInfoList.get(i).getScore()) {\n break;\n }\n }\n System.out.println(\"rank \" + (i + 1));\n return i + 1;\n }", "public String getRank()\n {\n return _rank;\n }", "public int rank(final Key key){\n int lo = 0;\n int hi = size - 1;\n while (lo <= hi) {\n int mid = lo + (hi - lo) / 2;\n int comp = key.compareTo(keys[mid]);\n if (comp < 0) {\n hi = mid - 1;\n } else if (comp > 0) {\n lo = mid + 1;\n } else {\n return mid;\n }\n }\n return lo;\n }", "public Rank getRank()\n {\n return rank;\n }", "private static void printRanking(List<Instruction> list,final String settlementType) {\n\t\tfinal Map<String, Double> entityMap = new HashMap<>();\n\t\tfor(Instruction instruction : list) {\n\t\t\tif(entityMap.get(instruction.getEntity())!=null) {\n\t\t\t\t//if multiple trades happened for same entity \n\t\t\t\tentityMap.put(instruction.getEntity(),(entityMap.get(instruction.getEntity()) + instruction.getTotalAmount()));\n\t\t\t}else {\n\t\t\t\tentityMap.put(instruction.getEntity(), instruction.getTotalAmount());\n\t\t\t}\n\t\t}\n\t\t// sort entity map based on TotoalAmount\n\t\tfinal Map<String, Double> sortedMap = entityMap.entrySet().stream()\n\t\t.sorted(Map.Entry.<String,Double>comparingByValue().reversed())\n\t\t.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, HashMap<String,Double>::new));\n\t\t\n\t\tSystem.out.println(settlementType +\" Ranking :\\n\");\n\t\tSet<String> keySet = sortedMap.keySet();\n\t\tint rank = 1;\n\t\tfor(String key : keySet) {\n\t\t\tSystem.out.println(key +\" - \"+ rank++);\n\t\t}\n\t}", "@Test\n public void testGetMyBestRank() {\n int result1 = this.scoreBoard.getMyBestRank(new Record(4, 5, \"@u1\", \"ST\"));\n assertEquals(1, result1);\n int result2 = this.scoreBoard.getMyBestRank(new Record(3, 15, \"@u3\", \"ST\"));\n assertEquals(3, result2);\n\n }", "public short getRank(){\n\t\treturn srtRank;\r\n\t\t\r\n\t}", "public String rank() {\r\n return rank;\r\n }", "public void setearTablaRanking(DefaultTableModel model) {\r\n\t\tthis.tablaRanking = null;\r\n\t\tthis.tablaRanking = new JTable(model);\r\n\t\tthis.contentPane.add(this.tablaRanking);\r\n\t}", "public void guardarRanking() throws FileNotFoundException, IOException{\n gest.guardarRanking(clasificacion);\n }", "public int getRank() {\n\t\treturn rank;\n\t}", "public int getRank() {\n\t\treturn rank;\n\t}", "public int getRank() {\n\t\treturn rank;\n\t}", "public int getRank() {\n\t\treturn rank;\n\t}", "private int getGlobalRanking() {\n\t\tint globalRanking = 0;\n\t\ttry{\n\t\t\t//Retrieve list of all players and order them by global score\n\t\t\tArrayList<Player> allPlayers = dc.getAllPlayerObjects();\n\t\t\tCollections.sort(allPlayers, new Comparator<Player>(){\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(Player p1, Player p2) {\n\t\t\t\t\treturn p2.getGlobalScore() - p1.getGlobalScore();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\n\t\t\t//Search for the user in the ordered list\n\t\t\tglobalRanking = allPlayers.indexOf(dc.getCurrentPlayer()) +1;\n\n\t\t} catch(DatabaseException e) {\n\t\t\tactivity.showNegativeDialog(\"Error\", e.prettyPrint(), \"OK\");\n\t\t}\n\t\treturn globalRanking;\n\t}", "public void setRank(Integer rank){\r\n\t\tthis.rank = rank;\r\n\t}", "@Override\n\tpublic List<WalkerRanking> listRanking() {\n\t\tList<Walker> all = walkerRepo.findAllPublic();\n\t\tList<WalkerRanking> allRank = new ArrayList<>();\n\t\t\n\t\tfor(Walker walker : all) {\n\t\t\tallRank.add(getRankingById(walker.getId()));\n\t\t}\n\t\t\n\t\treturn allRank;\n\t}", "public Integer rank() {\n return data.getInt(FhirPropertyNames.PROPERTY_RANK);\n }", "private void setRank(int rank) {\r\n\r\n this.rank = rank;\r\n }", "GameLevel listLevelRanking(Integer levelId) throws LevelNotFoundException;", "public Integer getRank() {\r\n\t\treturn this.rank;\r\n\t}", "public void setRank(Integer rank) {\n this.rank = rank;\n }", "int funkcjaRynkuGetIndex(float cena)\n\t{\n\t\tArrayList<Point> L1 =listaFunkcjiUzytecznosci.get(0);\n\n\t\tint a=0;\n\t\twhile (cena>L1.get(a).getPrice())\n\t\t{\n\t\t\ta++;\n\t\t}\n\t\t\n\t\tif(a>0)\n\t\t{\n\t\t\ta--;\n\t\t}\n\t\t\n\t\tif (a==L1.size())\n\t\t{\n\t\t\ta--;\t\n\t\t}\n\t\t\n\t\t\n\t\t//getInput(\"funkcjaRynkuGetIndex \"+a+\" cena \"+ cena);\n\t\t\t\n\t\treturn a;\n\t}", "public byte getRank() {\n return rank;\n }", "public int getRank(int score) {\n if (this.highScores.isEmpty()) { //no scores in the table.\n return 1;\n } else {\n if (score > highScores.get(0).getScore()) {\n return 1;\n }\n int i = 1;\n while (i < highScores.size() && score < highScores.get(i).getScore()) {\n i++;\n }\n if (i == highScores.size()) { //score is the lowest.\n if (i < this.size()) { //there is room for score- it will be last in the table.\n return this.size();\n } else { //i >= this.size(), there is no room for score.\n return (i + 1);\n }\n }\n return 0;\n }\n }", "public int rank(K key) {\n \n int lo = 0, hi = N - 1;\n K loK = nvps[lo].getKey(), hiK = nvps[hi].getKey();\n \n if (compare(key, loK) <= 0)\n return 0;\n \n while (lo <= hi) {\n int mid = lo + (hi - lo)\n * (int) ((key.doubleValue() - loK.doubleValue()) / (hiK.doubleValue() - loK.doubleValue()));\n int cmp = compare(key, nvps[mid].getKey());\n if (cmp < 0) {\n hi = mid - 1;\n hiK = nvps[hi].getKey();\n } else if (cmp > 0) {\n lo = mid + 1;\n loK = nvps[lo].getKey();\n } else\n return mid;\n }\n return lo;\n \n /*\n int lo = 0, hi = N - 1;\n while (lo <= hi) {\n int mid = lo + (hi - lo) / 2;\n int cmp = compare(key, nvps[mid].getKey());\n if (cmp < 0)\n hi = mid - 1;\n else if (cmp > 0)\n lo = mid + 1;\n else\n return mid;\n }\n return lo;\n */\n }", "public int rank(Key key) \n {\n return rank(key, root);\n }", "public int getIdeaRanked(int rank) {\n\t\tif (rank < 1 || rank > NUM_RANKED)\n\t\t\tthrow new IllegalArgumentException(\"Invalid idea rank: \" + rank);\n\t\treturn topIdeas[rank - 1];\n\t}", "public long getRank() {\n return rank_;\n }", "public int getrank() {\n\t\treturn this.rank;\n\t}", "public String getRank() {\r\n return rank;\r\n }", "public String getRank()\r\n\t{\r\n\t\treturn rank;\r\n\t}", "public void setRanking (LSPRanking ranking) {\r\n this.ranking = ranking;\r\n }", "public int compare(RankSorter rs1, RankSorter rs2) {\n if (rs1.y < rs2.y)\n return -1;\n if (rs1.y > rs2.y)\n return 1;\n if (rs1.id < rs2.id)\n return -1;\n if (rs1.id > rs2.id)\n return 1;\n return 0;\n }", "public void determineRank(){\r\n //ranks highcard 0, pair 1, twopair 2, three of a kind 3, straight 4, flush 5,\r\n //full house 6, four of a kind 7 , straight flush 8, royal flush 9\r\n //I should start top down.\r\n\r\n //Royal Flush\r\n if(isRoyalFlush())\r\n setRank(9);\r\n //Straight flush\r\n else if(isFlush() && isStraight())\r\n setRank(8);\r\n //four of a kind\r\n else if(isFourOfAKind())\r\n setRank(7);\r\n //full house\r\n else if( isFullHouse())\r\n setRank(6);\r\n //flush\r\n else if(isFlush())\r\n setRank(5);\r\n //straight\r\n else if(isStraight())\r\n setRank(4);\r\n //three of a kind\r\n else if(isThreeOfAKind())\r\n setRank(3);\r\n //twoPair\r\n else if(isTwoPair())\r\n setRank(2);\r\n //pair\r\n else if(isPair())\r\n setRank(1);\r\n //highcard\r\n else\r\n setRank(0);\r\n\r\n }", "public Rank getRank()\n\t{\n\t\treturn rank;\n\t}", "public void updateRankingValue(double delta) {\n sortingValues.rankingValue += delta;\n }", "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n /*\n * Write your code here.\n */\n List<Integer> ranks = new ArrayList<>();\n int i=0;\n while(i<scores.length-1) {\n ranks.add(scores[i]);\n int j=i+1;\n while(j<scores.length && scores[i]==scores[j]) {\n j+=1;\n }\n i=j;\n }\n ranks.add(scores[scores.length-1]);\n int[] aliceRank = new int[alice.length];\n for (int j=0; j< alice.length; j++) {\n int index = Collections.binarySearch(ranks, alice[j],Comparator.reverseOrder());\n aliceRank[j] = index > 0 ? index + 1 : index == 0 ? 1 : Math.abs(index);\n }\n return aliceRank;\n }", "public void setRank(String value)\n {\n _rank = value;\n }", "public int rank(Key key)\n\t{\n\t\treturn rank(root,key);\n\t}", "public String getRank() {\n return rank;\n }", "public void setRank(int rank) {\n this.rank = rank;\n }", "public int getPointsJuggernaut(){\n\treturn scores.get(juggernaut);\n }" ]
[ "0.75936294", "0.7000901", "0.6775418", "0.6718302", "0.6608259", "0.6608259", "0.65857005", "0.6518892", "0.6512867", "0.6501877", "0.6493698", "0.6450928", "0.6449272", "0.6423434", "0.64039016", "0.6401499", "0.6351264", "0.6344092", "0.6344001", "0.6342639", "0.6312375", "0.62974983", "0.62684894", "0.624838", "0.6247235", "0.6242573", "0.62268996", "0.6214019", "0.620947", "0.6198849", "0.61933696", "0.6192246", "0.61681414", "0.616493", "0.6164494", "0.6146015", "0.6146015", "0.6146015", "0.61349666", "0.6133621", "0.61067873", "0.6088761", "0.5997065", "0.5996492", "0.5995532", "0.5979371", "0.5974209", "0.5973978", "0.5954766", "0.5946856", "0.5944568", "0.59330034", "0.59194374", "0.5908157", "0.5899849", "0.58868355", "0.58848906", "0.58591", "0.5828768", "0.5828344", "0.58214587", "0.5814098", "0.5796045", "0.5785946", "0.57857615", "0.577627", "0.57697815", "0.5765361", "0.5760879", "0.5760879", "0.5760879", "0.5760879", "0.57539725", "0.57526374", "0.5748049", "0.57248944", "0.5721834", "0.5717165", "0.5716787", "0.570763", "0.5705863", "0.56862366", "0.5685123", "0.5682602", "0.5674114", "0.56627107", "0.56567794", "0.564869", "0.5637602", "0.56366265", "0.56184006", "0.56160986", "0.56149775", "0.56148875", "0.56102026", "0.5602147", "0.56006", "0.55968046", "0.55763614", "0.5574976", "0.55656517" ]
0.0
-1
Ranking svih NEOBRISANIH setaca
@Override public List<WalkerRanking> listRanking() { List<Walker> all = walkerRepo.findAllPublic(); List<WalkerRanking> allRank = new ArrayList<>(); for(Walker walker : all) { allRank.add(getRankingById(walker.getId())); } return allRank; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getRanking();", "private void iniciarRanking() {\n\t\tif(!usouIa) {\r\n\t\t\tswitch (this.dificuldade) {\r\n\t\t\tcase FACIL:\r\n\t\t\t\trank = new RankingFacil();\r\n\t\t\t\tbreak;\r\n\t\t\tcase MEDIO:\r\n\t\t\t\trank = new RankingMedio();\r\n\t\t\t\tbreak;\r\n\t\t\tcase DIFICIL:\r\n\t\t\t\trank = new RankingDificil();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trank.iniciarRanking(new Jogador(this.nomeJogador, timer.getTempo(), timer.getTempoTotal()));//MANDA O NOME DO JOGADOR, O TEMPO FORMATADO E O TEMPO TOTAL PRO RANKING\r\n\t\t}\r\n\t}", "public void ordenarRanking(){\n for(int i = 0; i < clasificacion.length; i++) {\n boolean flag = false;\n for(int j = 0; j < clasificacion.length-1; j++) {\n\n /*Si el elemento de la posicion j+1 es mayor que el anterior se intercambian\n los valores de esas posiciones*/\n if((clasificacion[j].getMediana())<(clasificacion[j+1].getMediana())) {\n Ranking k = new Ranking();\n k=clasificacion[j];\n clasificacion[j] = clasificacion[i];\n clasificacion[i] = k;\n flag=true; //Se pone a true para indicar que se ha hecho un cambio\n }//END_IF\n }//END_FOR\n\n if(!flag) break; //Si flag es igual a falso quiere decir que en la ultima iteracion\n //no hubo ningun intercambio y por lo tanto el metodo puede terminar\n //ya que el vector esta ordenado\n }//END_FOR\n\n }", "public int getRank(){\n\t\tswitch(getTkn()){\n\t\t\tcase Not:\n\t\t\treturn 7;\n\t\t\t\n\t\t\tcase Kali:\n\t\t\tcase Bagi:\n\t\t\tcase Mod:\n\t\t\tcase Div:\n\t\t\treturn 6;\n\t\t\t\n\t\t\tcase Tambah:\n\t\t\tcase Kurang:\n\t\t\treturn 5;\n\t\t\t\n\t\t\tcase KurangDari:\n\t\t\tcase LebihDari:\n\t\t\tcase KurangDariSamaDengan:\n\t\t\tcase LebihDariSamaDengan:\n\t\t\treturn 4;\n\t\t\t\t\t\t\n\t\t\tcase SamaDengan:\n\t\t\tcase TidakSamaDengan:\n\t\t\treturn 3;\n\t\t\t\n\t\t\tcase And:\n\t\t\treturn 2;\n\t\t\t\n\t\t\tcase Xor:\n\t\t\treturn 1;\n\t\t\t\n\t\t\tcase Or:\n\t\t\treturn 0;\n\n\t\t\tdefault:\n\t\t\treturn -999;\n\t\t}\n\t}", "public void rank(){\n\n\t}", "public void actualizarRanking(String login, int mediana){\n \n int temp=0;\n for(int i=0;i<10;i++){\n if((clasificacion[i].getLogin()).equals(login)){ //si el jugador ya esta en los 10 mejores jugadores actualizo su punctuacion\n temp=(clasificacion[i].getMediana()) + mediana;\n clasificacion[i].setMediana(temp);\n ordenarRanking(); //ordeno el ranking con la puntuacion del jugador actualizada\n return;\n }//END_IF\n }//END_FOR\n\n \n for(int j=0;j<10;j++){\n \n if((clasificacion[j].getMediana()) < mediana){//si existe en el ranking una puntuacion menor de la que se passa a la funcion por parametro\n System.arraycopy(clasificacion, j, clasificacion, j+1, clasificacion.length-j-1);//reordena las puntuaciones menores que mediana\n Ranking aux=new Ranking();\n aux.setLogin(login);\n aux.setMediana(mediana);\n clasificacion[j]=aux;\n return;\n }//END_IF\n }//END_FOR\n }", "public Ranking[] mostrarRanking(){\n return clasificacion;\n }", "@Override\n\tpublic VisualizarR listarRanking() throws RemoteException {\n\t\treturn null;\n\t}", "void showRanking(String winner, String rank);", "long getRank();", "public int Rank();", "public int[] get_ranking() {\n\t\treturn null;\r\n\t}", "public int getRank();", "public int getRank();", "public abstract void modRanking(ParamRanking pr);", "public LSPRanking getRanking () {\r\n return ranking;\r\n }", "private int setRank() {\n this.rank = 0;\n for(int row = 0; row < SIZE; row++){\n for(int col = 0; col < SIZE; col++){\n int currentBoardNumber = row * 3 + col + 1;\n if(row == 2 && col == 2) {\n currentBoardNumber = 0;\n }\n if(this.board[row][col] != currentBoardNumber) {\n this.rank += 1;\n }\n }\n }\n this.rank += this.prevMoves.length();\n return this.rank;\n }", "public Ranking[] vaciarRanking()\n {\n for(int i=0;i<10;i++){\n clasificacion[i].setLogin(\" \");\n clasificacion[i].setMediana(0);\n }//END_FOR\n return clasificacion;\n }", "boolean hasRanking();", "public int getRank ()\n {\n return this.ranks; \n }", "public void rankMatches();", "public int getRank(){\n return Value;\n }", "public int getRank(){\r\n return this.rank;\r\n }", "public int rank() { return this.rank; }", "public int getRanking() {\n return ranking_;\n }", "long getToRank();", "public int getRank(){\n return this.rank;\n }", "public int getRank(){\n return rank;\n }", "public void setRank(int value);", "private static void printRanking(List<Instruction> list,final String settlementType) {\n\t\tfinal Map<String, Double> entityMap = new HashMap<>();\n\t\tfor(Instruction instruction : list) {\n\t\t\tif(entityMap.get(instruction.getEntity())!=null) {\n\t\t\t\t//if multiple trades happened for same entity \n\t\t\t\tentityMap.put(instruction.getEntity(),(entityMap.get(instruction.getEntity()) + instruction.getTotalAmount()));\n\t\t\t}else {\n\t\t\t\tentityMap.put(instruction.getEntity(), instruction.getTotalAmount());\n\t\t\t}\n\t\t}\n\t\t// sort entity map based on TotoalAmount\n\t\tfinal Map<String, Double> sortedMap = entityMap.entrySet().stream()\n\t\t.sorted(Map.Entry.<String,Double>comparingByValue().reversed())\n\t\t.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, HashMap<String,Double>::new));\n\t\t\n\t\tSystem.out.println(settlementType +\" Ranking :\\n\");\n\t\tSet<String> keySet = sortedMap.keySet();\n\t\tint rank = 1;\n\t\tfor(String key : keySet) {\n\t\t\tSystem.out.println(key +\" - \"+ rank++);\n\t\t}\n\t}", "private int rankMethod()\r\n {\r\n\treturn spinTheWheel();\r\n }", "public short getRank(){\n\t\treturn srtRank;\r\n\t\t\r\n\t}", "public int getRank()\n {\n return rank;\n }", "Rank(int points){\r\n\t\tthis.points = points;\r\n\t}", "public int getRanking() {\n return ranking_;\n }", "public int getRank()\n {\n return rank;\n }", "public void setRank(int aRank)\n {\n this.ranks = aRank;\n }", "public Ranking getRanking() {\n return ranking;\n }", "public int getRank()\r\n {\r\n return this.rank;\r\n }", "public void guardarRanking() throws FileNotFoundException, IOException{\n gest.guardarRanking(clasificacion);\n }", "public Builder setRanking(int value) {\n bitField0_ |= 0x00000010;\n ranking_ = value;\n onChanged();\n return this;\n }", "public Integer getRank(){\r\n\t\treturn rank;\r\n\t}", "@Override\n\tpublic String StatistiqueNbrRisuqe(){\n float m= accountRepository.NbrStatus(\"a risque\");\n float s=accountRepository.NbrStatus(\"Stable\");\n float res =( m / s)*100;\n return res+\"%\";\n\n\t}", "public int getRank() {\r\n return rank;\r\n }", "public void createRanking() {\n Question q = new Ranking(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Ranking question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many items need to be ranked?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n this.o.setDisplay(\"Enter correct answer(s):\\n\");\n this.o.getDisplay();\n for (int j=0; j < q.getMaxResponses(); j++){\n\n ans = this.in.getUserInput();\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n this.survey.addQuestion(q);\n }", "public void determineRank(){\r\n //ranks highcard 0, pair 1, twopair 2, three of a kind 3, straight 4, flush 5,\r\n //full house 6, four of a kind 7 , straight flush 8, royal flush 9\r\n //I should start top down.\r\n\r\n //Royal Flush\r\n if(isRoyalFlush())\r\n setRank(9);\r\n //Straight flush\r\n else if(isFlush() && isStraight())\r\n setRank(8);\r\n //four of a kind\r\n else if(isFourOfAKind())\r\n setRank(7);\r\n //full house\r\n else if( isFullHouse())\r\n setRank(6);\r\n //flush\r\n else if(isFlush())\r\n setRank(5);\r\n //straight\r\n else if(isStraight())\r\n setRank(4);\r\n //three of a kind\r\n else if(isThreeOfAKind())\r\n setRank(3);\r\n //twoPair\r\n else if(isTwoPair())\r\n setRank(2);\r\n //pair\r\n else if(isPair())\r\n setRank(1);\r\n //highcard\r\n else\r\n setRank(0);\r\n\r\n }", "public int AmbosHijosR() { //Hecho por mi\n return AmbosHijosR(raiz);\n }", "@Test\n public void testGetMyBestRank() {\n int result1 = this.scoreBoard.getMyBestRank(new Record(4, 5, \"@u1\", \"ST\"));\n assertEquals(1, result1);\n int result2 = this.scoreBoard.getMyBestRank(new Record(3, 15, \"@u3\", \"ST\"));\n assertEquals(3, result2);\n\n }", "protected void podesiRaspUlaznice(String nazivPredstave) {\n\t\tfor (Predstave p:Kontroler.getInstanca().vratiRepertoar())\r\n\t\t\tif(p.getNazivPredstave().equals(nazivPredstave))\r\n\t\t\t\tnoviBrRasUl=p.getBrojRaspolozivihUlaznica();\r\n\t}", "public String getRank()\n {\n return _rank;\n }", "public int getRank() {\n return rank;\n }", "public int getRank() {\n return rank;\n }", "public int getRank() {\n return rank;\n }", "public String rank() {\r\n return rank;\r\n }", "public void setRank(String value)\n {\n _rank = value;\n }", "public static int GetRankNumber(RankingSystem rank) {\n\t\tif (rank == RankingSystem.Strong) {\n\t\t\treturn 5;\n\t\t}\n\t\telse if (rank == RankingSystem.AboveAverage) {\n\t\t\treturn 4;\n\t\t}\n\t\telse if (rank == RankingSystem.Average) {\n\t\t\treturn 3;\n\t\t}\n\t\telse if (rank == RankingSystem.BelowAverage) {\n\t\t\treturn 2;\n\t\t}\n\t\treturn 1;\n\t}", "private void setRank(int rank) {\r\n\r\n this.rank = rank;\r\n }", "public int getPointsJuggernaut(){\n\treturn scores.get(juggernaut);\n }", "int funkcjaRynkuGetIndex(float cena)\n\t{\n\t\tArrayList<Point> L1 =listaFunkcjiUzytecznosci.get(0);\n\n\t\tint a=0;\n\t\twhile (cena>L1.get(a).getPrice())\n\t\t{\n\t\t\ta++;\n\t\t}\n\t\t\n\t\tif(a>0)\n\t\t{\n\t\t\ta--;\n\t\t}\n\t\t\n\t\tif (a==L1.size())\n\t\t{\n\t\t\ta--;\t\n\t\t}\n\t\t\n\t\t\n\t\t//getInput(\"funkcjaRynkuGetIndex \"+a+\" cena \"+ cena);\n\t\t\t\n\t\treturn a;\n\t}", "public void rank(String testFile, String indriRanking) {\n/* 1295 */ List<RankList> test = readInput(testFile);\n/* */ \n/* */ try {\n/* 1298 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indriRanking), \"UTF-8\"));\n/* 1299 */ for (RankList l : test) {\n/* 1300 */ for (int j = 0; j < l.size(); j++) {\n/* */ \n/* 1302 */ String str = l.getID() + \" Q0 \" + l.get(j).getDescription().replace(\"#\", \"\").trim() + \" \" + (j + 1) + \" \" + SimpleMath.round(1.0D - 1.0E-4D * j, 5) + \" indri\";\n/* 1303 */ out.write(str);\n/* 1304 */ out.newLine();\n/* */ } \n/* */ } \n/* 1307 */ out.close();\n/* */ }\n/* 1309 */ catch (IOException ex) {\n/* */ \n/* 1311 */ throw RankLibError.create(\"Error in Evaluator::rank(): \", ex);\n/* */ } \n/* */ }", "public ControladorRanking(){\n clasificacion = new Ranking[10];\n for(int i=0;i<10;i++){\n clasificacion[i]=new Ranking();\n clasificacion[i].setLogin(\" \");\n clasificacion[i].setMediana(0);\n }//END_FOR\n }", "public void cargarRanking() throws ClassNotFoundException, FileNotFoundException, IOException, RankingNotFoundException {\n \n try{\n clasificacion=gest.cargarRanking();\n }//END_TRY\n catch (RankingNotFoundException e){\n \n }//END_CATCH\n\n }", "public void rank(List<String> modelFiles, String testFile, String indriRanking) {\n/* 1325 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 1326 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* 1329 */ int nFold = modelFiles.size();\n/* */ \n/* 1331 */ List<RankList> samples = readInput(testFile);\n/* 1332 */ System.out.print(\"Preparing \" + nFold + \"-fold test data... \");\n/* 1333 */ FeatureManager.prepareCV(samples, nFold, trainingData, testData);\n/* 1334 */ System.out.println(\"[Done.]\");\n/* */ \n/* */ try {\n/* 1337 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indriRanking), \"UTF-8\"));\n/* 1338 */ for (int f = 0; f < nFold; f++) {\n/* */ \n/* 1340 */ List<RankList> test = testData.get(f);\n/* 1341 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFiles.get(f));\n/* 1342 */ int[] features = ranker.getFeatures();\n/* 1343 */ if (normalize) {\n/* 1344 */ normalize(test, features);\n/* */ }\n/* 1346 */ for (RankList l : test) {\n/* 1347 */ double[] scores = new double[l.size()];\n/* 1348 */ for (int j = 0; j < l.size(); j++)\n/* 1349 */ scores[j] = ranker.eval(l.get(j)); \n/* 1350 */ int[] idx = MergeSorter.sort(scores, false);\n/* 1351 */ for (int i = 0; i < idx.length; i++) {\n/* 1352 */ int k = idx[i];\n/* */ \n/* 1354 */ String str = l.getID() + \" Q0 \" + l.get(k).getDescription().replace(\"#\", \"\").trim() + \" \" + (i + 1) + \" \" + SimpleMath.round(scores[k], 5) + \" indri\";\n/* 1355 */ out.write(str);\n/* 1356 */ out.newLine();\n/* */ } \n/* */ } \n/* */ } \n/* 1360 */ out.close();\n/* */ }\n/* 1362 */ catch (Exception ex) {\n/* */ \n/* 1364 */ throw RankLibError.create(\"Error in Evaluator::rank(): \", ex);\n/* */ } \n/* */ }", "public void setRank(Integer rank){\r\n\t\tthis.rank = rank;\r\n\t}", "public String getRankString(){ return this.rank; }", "public void rank(String modelFile, String testFile, String indriRanking) {\n/* 1258 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFile);\n/* 1259 */ int[] features = ranker.getFeatures();\n/* 1260 */ List<RankList> test = readInput(testFile);\n/* */ \n/* 1262 */ if (normalize)\n/* 1263 */ normalize(test, features); \n/* */ try {\n/* 1265 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indriRanking), \"UTF-8\"));\n/* 1266 */ for (RankList l : test) {\n/* 1267 */ double[] scores = new double[l.size()];\n/* 1268 */ for (int j = 0; j < l.size(); j++)\n/* 1269 */ scores[j] = ranker.eval(l.get(j)); \n/* 1270 */ int[] idx = MergeSorter.sort(scores, false);\n/* 1271 */ for (int i = 0; i < idx.length; i++) {\n/* 1272 */ int k = idx[i];\n/* */ \n/* 1274 */ String str = l.getID() + \" Q0 \" + l.get(k).getDescription().replace(\"#\", \"\").trim() + \" \" + (i + 1) + \" \" + SimpleMath.round(scores[k], 5) + \" indri\";\n/* 1275 */ out.write(str);\n/* 1276 */ out.newLine();\n/* */ } \n/* */ } \n/* 1279 */ out.close();\n/* */ }\n/* 1281 */ catch (IOException ex) {\n/* */ \n/* 1283 */ throw RankLibError.create(\"Error in Evaluator::rank(): \", ex);\n/* */ } \n/* */ }", "public void setearTablaRanking(DefaultTableModel model) {\r\n\t\tthis.tablaRanking = null;\r\n\t\tthis.tablaRanking = new JTable(model);\r\n\t\tthis.contentPane.add(this.tablaRanking);\r\n\t}", "public void setRanking (LSPRanking ranking) {\r\n this.ranking = ranking;\r\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public int getRank()\n\t{\n\t\treturn rank;\n\t}", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "private int getGlobalRanking() {\n\t\tint globalRanking = 0;\n\t\ttry{\n\t\t\t//Retrieve list of all players and order them by global score\n\t\t\tArrayList<Player> allPlayers = dc.getAllPlayerObjects();\n\t\t\tCollections.sort(allPlayers, new Comparator<Player>(){\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(Player p1, Player p2) {\n\t\t\t\t\treturn p2.getGlobalScore() - p1.getGlobalScore();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\n\t\t\t//Search for the user in the ordered list\n\t\t\tglobalRanking = allPlayers.indexOf(dc.getCurrentPlayer()) +1;\n\n\t\t} catch(DatabaseException e) {\n\t\t\tactivity.showNegativeDialog(\"Error\", e.prettyPrint(), \"OK\");\n\t\t}\n\t\treturn globalRanking;\n\t}", "public List<RankingDTO> getRanking() {\n\t\treturn this.ranking;\n\t}", "@Test\n\tpublic void testRankingSortedByName() throws BattleshipException {\n\t\t\n\t\t//Play Julia\n\t\tinitScores(playerJulia);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Raul\n\t\tinitScores(playerRaul);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Laura\n\t\tinitScores(playerLaura);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Simon\n\t\tinitScores(playerSimon);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareRankings(SRANKING5, rankingsToString());\n\t}", "public void updateRankingValue(double delta) {\n sortingValues.rankingValue += delta;\n }", "public List<Integer> findTopGenesByRanking( Integer n ) throws DAOException;", "protected int maakTrein(int positie){\r\n for (int i = 0; i <= treinaantal; i++){\r\n if (treinlijst[i] == null){\r\n treinlijst[i] = new Trein(positie, treinaantal++);\r\n baan.addTrein(treinlijst[i].getId());\r\n //update naar gui\r\n int trein[] = new int[1];\r\n trein[0] = treinlijst[i].getId();\r\n int[] arg = new int[1];\r\n arg[0] = positie;\r\n main.updateGui(\"trein\", trein, arg);\r\n return treinlijst[i].getId();\r\n }\r\n }\r\n return 0;\r\n }", "private int getRank(DiceModel playerToRank) {\n\t\tint rank = 1;\n\t\tint ph; // placeholder\n\t\tint d1 = playerToRank.getDie1();\n\t\tint d2 = playerToRank.getDie2();\n\t\tint d3 = playerToRank.getDie3();\n\t\t\n\t\t// sorting them in ascending order\n\t\t// switch the 2nd number into first position if it is bigger\n\t\tif (d2 > d1) {\n\t\t\tph = d1;\n\t\t\td1 = d2;\n\t\t\td2 = ph;\n\t\t} // switch the 3rd number into second position if it is bigger\n\t\tif (d3 > d2) {\n\t\t\tph = d2;\n\t\t\td2 = d3;\n\t\t\td3 = ph;\n\t\t} // switch the 2nd number into first position if it is bigger\n\t\tif (d2 > d1) {\n\t\t\tph = d1;\n\t\t\td1 = d2;\n\t\t\td2 = ph;\n\t\t}\n\t\t\n\t\t// now to get their ranking\n\t\t// check for 4,2,1\n\t\tif (d1 == 4 && d2 == 2 && d3 == 1) {\n\t\t\trank = 4;\n\t\t} else if (d1 == d2 && d1 == d3) { // checks for triples\n\t\t\trank = 3;\n\t\t} else if ((d1 == d2 && d1 != d3) || d2 == d3) { // pairs\n\t\t\trank = 2;\n\t\t} else {\n\t\t\trank = 1;\n\t\t}\n\t\t\n\t\treturn rank;\n\t}", "public static double[][] calculate_rank(double accuracyTst[][]){\r\n MatchedData array_acc = new MatchedData(accuracyTst);\r\n //test = new FriedmanTest(array_acc, 0.015,true);\r\n FriedmanTest test = new FriedmanTest(array_acc);\r\n MatchedData ranks = test.getRanks();\r\n \r\n return ranks.getData(); \r\n }", "public final EObject ruleRanking() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_isMandatory_1_0=null;\n Token otherlv_3=null;\n Token otherlv_4=null;\n Token otherlv_5=null;\n AntlrDatatypeRuleToken lv_questionText_2_0 = null;\n\n EObject lv_answers_6_0 = null;\n\n EObject lv_answers_7_0 = null;\n\n\n enterRule(); \n \n try {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:845:28: ( (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:1: (otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )* )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:846:3: otherlv_0= 'Q' ( (lv_isMandatory_1_0= '*' ) )? ( (lv_questionText_2_0= ruleEString ) ) otherlv_3= '[' otherlv_4= 'rank' otherlv_5= ']' ( (lv_answers_6_0= ruleAnswer ) ) ( (lv_answers_7_0= ruleAnswer ) )*\n {\n otherlv_0=(Token)match(input,25,FollowSets000.FOLLOW_25_in_ruleRanking1698); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getRankingAccess().getQKeyword_0());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:850:1: ( (lv_isMandatory_1_0= '*' ) )?\n int alt17=2;\n int LA17_0 = input.LA(1);\n\n if ( (LA17_0==26) ) {\n alt17=1;\n }\n switch (alt17) {\n case 1 :\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:851:1: (lv_isMandatory_1_0= '*' )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:851:1: (lv_isMandatory_1_0= '*' )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:852:3: lv_isMandatory_1_0= '*'\n {\n lv_isMandatory_1_0=(Token)match(input,26,FollowSets000.FOLLOW_26_in_ruleRanking1716); \n\n newLeafNode(lv_isMandatory_1_0, grammarAccess.getRankingAccess().getIsMandatoryAsteriskKeyword_1_0());\n \n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getRankingRule());\n \t }\n \t\tsetWithLastConsumed(current, \"isMandatory\", true, \"*\");\n \t \n\n }\n\n\n }\n break;\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:865:3: ( (lv_questionText_2_0= ruleEString ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:866:1: (lv_questionText_2_0= ruleEString )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:866:1: (lv_questionText_2_0= ruleEString )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:867:3: lv_questionText_2_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getRankingAccess().getQuestionTextEStringParserRuleCall_2_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleRanking1751);\n lv_questionText_2_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getRankingRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"questionText\",\n \t\tlv_questionText_2_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,20,FollowSets000.FOLLOW_20_in_ruleRanking1763); \n\n \tnewLeafNode(otherlv_3, grammarAccess.getRankingAccess().getLeftSquareBracketKeyword_3());\n \n otherlv_4=(Token)match(input,28,FollowSets000.FOLLOW_28_in_ruleRanking1775); \n\n \tnewLeafNode(otherlv_4, grammarAccess.getRankingAccess().getRankKeyword_4());\n \n otherlv_5=(Token)match(input,22,FollowSets000.FOLLOW_22_in_ruleRanking1787); \n\n \tnewLeafNode(otherlv_5, grammarAccess.getRankingAccess().getRightSquareBracketKeyword_5());\n \n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:895:1: ( (lv_answers_6_0= ruleAnswer ) )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:896:1: (lv_answers_6_0= ruleAnswer )\n {\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:896:1: (lv_answers_6_0= ruleAnswer )\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:897:3: lv_answers_6_0= ruleAnswer\n {\n \n \t newCompositeNode(grammarAccess.getRankingAccess().getAnswersAnswerParserRuleCall_6_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleRanking1808);\n lv_answers_6_0=ruleAnswer();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getRankingRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"answers\",\n \t\tlv_answers_6_0, \n \t\t\"Answer\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:913:2: ( (lv_answers_7_0= ruleAnswer ) )*\n loop18:\n do {\n int alt18=2;\n int LA18_0 = input.LA(1);\n\n if ( (LA18_0==19) ) {\n alt18=1;\n }\n\n\n switch (alt18) {\n \tcase 1 :\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:914:1: (lv_answers_7_0= ruleAnswer )\n \t {\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:914:1: (lv_answers_7_0= ruleAnswer )\n \t // ../dk.itu.smdp.survey.xtext/src-gen/dk/itu/smdp/survey/xtext/parser/antlr/internal/InternalTaco.g:915:3: lv_answers_7_0= ruleAnswer\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getRankingAccess().getAnswersAnswerParserRuleCall_7_0()); \n \t \t \n \t pushFollow(FollowSets000.FOLLOW_ruleAnswer_in_ruleRanking1829);\n \t lv_answers_7_0=ruleAnswer();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getRankingRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"answers\",\n \t \t\tlv_answers_7_0, \n \t \t\t\"Answer\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop18;\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 }", "public void setRank(Integer rank) {\n this.rank = rank;\n }", "@Override\n public int getRank() {\n return rank;\n }", "public Rank getRank()\n {\n return rank;\n }", "public int getRanking(){\n int spelerID = Integer.valueOf(spelerIDField.getText());\n int ranking=0;\n try {\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT ranking FROM Spelers WHERE idcode = ?\");\n st.setInt(1, spelerID);\n ResultSet rs= st.executeQuery();\n if(rs.next()) {\n return rs.getInt(\"ranking\");\n }\n }catch(Exception e) {\n System.out.println(e);\n }\n return ranking;\n }", "public int rank(K key) {\n \n int lo = 0, hi = N - 1;\n K loK = nvps[lo].getKey(), hiK = nvps[hi].getKey();\n \n if (compare(key, loK) <= 0)\n return 0;\n \n while (lo <= hi) {\n int mid = lo + (hi - lo)\n * (int) ((key.doubleValue() - loK.doubleValue()) / (hiK.doubleValue() - loK.doubleValue()));\n int cmp = compare(key, nvps[mid].getKey());\n if (cmp < 0) {\n hi = mid - 1;\n hiK = nvps[hi].getKey();\n } else if (cmp > 0) {\n lo = mid + 1;\n loK = nvps[lo].getKey();\n } else\n return mid;\n }\n return lo;\n \n /*\n int lo = 0, hi = N - 1;\n while (lo <= hi) {\n int mid = lo + (hi - lo) / 2;\n int cmp = compare(key, nvps[mid].getKey());\n if (cmp < 0)\n hi = mid - 1;\n else if (cmp > 0)\n lo = mid + 1;\n else\n return mid;\n }\n return lo;\n */\n }", "public void getRankingData(ArrayList<RankingItem> arrayList,int persusernr){\n int persRank = 0;\n for(int i=0;i<arrayList.size();i++){\n if(persusernr == arrayList.get(i).getUsernr()){\n persRank = arrayList.get(i).getRank();\n }\n }\n rankingData.clear();\n if(persRank>3){\n rankingData.add(arrayList.get(0));\n rankingData.add(arrayList.get(1));\n rankingData.add(arrayList.get(2));\n rankingData.add(arrayList.get(persRank-2));\n rankingData.add(arrayList.get(persRank-1));\n if(persRank != arrayList.size()){\n rankingData.add(arrayList.get(persRank));\n }\n\n }else{\n for(int i=0;i<6;i++){\n rankingData.add(arrayList.get(0));\n }\n }\n }", "public void setRank(int rank) {\n this.rank = rank;\n }", "public String getRank()\r\n\t{\r\n\t\treturn rank;\r\n\t}", "private int[] sauvegarde_scores() {\r\n\t\tint n = moteur_joueur.getJoueurs().length;\r\n\t\tint[] scores_precedents = new int[n];\r\n\t\t\t\t\r\n\t\tfor(int i = 0 ; i < n ; i++) {\r\n\t\t\tscores_precedents[i] = (int)moteur_joueur.getJoueurs()[i].getScore();\r\n\t\t}\r\n\t\t\r\n\t\treturn scores_precedents;\r\n\t}", "public int rekisteroi() {\n this.tunnusNro = seuraavaNro;\n Tuote.seuraavaNro++;\n return tunnusNro;\n }", "public String getRank() {\r\n return rank;\r\n }", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public byte getRank() {\n return rank;\n }", "protected void jouerOrdinateur() {\n Random rdmPropoOrdi = new Random();\n\n for (int i = 0; i < nbrPosition; i++) {\n int min = 0;\n int max = propositionHaute[i];\n if (propositionBasse[i] != 0) {\n min = propositionBasse[i] + 1;\n }\n\n if (propositionOrdinateur[i] != combinaisonJoueur[i]) {\n int propoOrdi = min + rdmPropoOrdi.nextInt(max - min);\n propositionOrdinateur[i] = (byte) (propoOrdi);\n\n if (propositionOrdinateur[i] < combinaisonJoueur[i]) {\n propositionBasse[i] = propositionOrdinateur[i];\n } else {\n propositionHaute[i] = propositionOrdinateur[i];\n }\n }\n }\n }", "public int getRank(int score) {\n int i = 0;\n for (i = 0; i < scoreInfoList.size(); i++) {\n if (score > scoreInfoList.get(i).getScore()) {\n break;\n }\n }\n System.out.println(\"rank \" + (i + 1));\n return i + 1;\n }", "public Integer getRank() {\n return this.rank;\n }", "public void rank(List<String> modelFiles, List<String> testFiles, String indriRanking) {\n/* 1377 */ int nFold = modelFiles.size();\n/* */ \n/* */ try {\n/* 1380 */ BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indriRanking), \"UTF-8\"));\n/* */ \n/* 1382 */ for (int f = 0; f < nFold; f++) {\n/* */ \n/* */ \n/* 1385 */ List<RankList> test = readInput(testFiles.get(f));\n/* 1386 */ Ranker ranker = this.rFact.loadRankerFromFile(modelFiles.get(f));\n/* 1387 */ int[] features = ranker.getFeatures();\n/* */ \n/* 1389 */ if (normalize) {\n/* 1390 */ normalize(test, features);\n/* */ }\n/* 1392 */ for (RankList l : test) {\n/* 1393 */ double[] scores = new double[l.size()];\n/* */ \n/* 1395 */ for (int j = 0; j < l.size(); j++) {\n/* 1396 */ scores[j] = ranker.eval(l.get(j));\n/* */ }\n/* 1398 */ int[] idx = MergeSorter.sort(scores, false);\n/* */ \n/* 1400 */ for (int i = 0; i < idx.length; i++) {\n/* 1401 */ int k = idx[i];\n/* 1402 */ String str = l.getID() + \" Q0 \" + l.get(k).getDescription().replace(\"#\", \"\").trim() + \" \" + (i + 1) + \" \" + SimpleMath.round(scores[k], 5) + \" indri\";\n/* 1403 */ out.write(str);\n/* 1404 */ out.newLine();\n/* */ } \n/* */ } \n/* */ } \n/* 1408 */ out.close();\n/* */ }\n/* 1410 */ catch (IOException ex) {\n/* */ \n/* 1412 */ throw RankLibError.create(\"Error in Evaluator::rank(): \", ex);\n/* */ } \n/* */ }", "long getFromRank();", "public int rank(K key);", "private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }", "public void setRank(byte value) {\n this.rank = value;\n }" ]
[ "0.7562329", "0.70862514", "0.7034983", "0.68703425", "0.6827353", "0.6823964", "0.6787367", "0.67303824", "0.65916026", "0.65847313", "0.65663445", "0.65118545", "0.64682084", "0.64682084", "0.6457771", "0.64076275", "0.63921636", "0.638058", "0.6374988", "0.6370493", "0.63649815", "0.63636565", "0.6358777", "0.6319971", "0.628736", "0.62807196", "0.62015516", "0.6199999", "0.617766", "0.6158109", "0.6154398", "0.61518514", "0.61370134", "0.6130796", "0.61208177", "0.611022", "0.6108518", "0.6105699", "0.60969085", "0.6076977", "0.6076621", "0.6075438", "0.6056829", "0.6056614", "0.60517913", "0.6034294", "0.6034052", "0.60332304", "0.60053486", "0.5993527", "0.59890276", "0.59890276", "0.59890276", "0.59767896", "0.5964847", "0.596083", "0.59571743", "0.5951694", "0.5942632", "0.59373206", "0.593573", "0.5929543", "0.5926067", "0.59256655", "0.59243613", "0.59205604", "0.5910021", "0.59028465", "0.5899763", "0.5899458", "0.5893952", "0.5891237", "0.5888469", "0.5882456", "0.5876828", "0.5875674", "0.58643943", "0.5855801", "0.5851823", "0.5851413", "0.58455807", "0.5834965", "0.58298635", "0.5829686", "0.58182085", "0.5808059", "0.58071697", "0.5806505", "0.58021754", "0.57968694", "0.57917905", "0.5791377", "0.5790422", "0.57867646", "0.57833886", "0.5779118", "0.5778869", "0.5778755", "0.57775724", "0.57772547", "0.5770259" ]
0.0
-1
Devuelve el arma del Jugador.
public Arma obtenerArma() { return arma; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void montarArma(ArmaDeAsedio arma) {\n this.esUnidadPropia(arma);\n arma.montarArma();\n }", "@Override\n public void buildArma() {\n this.personaje.setArma(new Arma(\"Lanza\", 'A', 9));\n }", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public Arquero(Jugador jugador){\n this.propietario = jugador;\n this.vida = 75;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "public void meter (Arma nuevaArma) {\n\t\tthis.add(nuevaArma);\n\t}", "private void generarMarca() {\r\n\t\tthis.marca = MARCAS[(int) (Math.random() * MARCAS.length)];\r\n\t}", "public void usar(Jugador jugador){\n System.out.println(\"\\n\" + jugador.masHambreIVitales(this.calorias) + \"\\n\");\n }", "public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }", "public MiAlmacenN(int tamaño) {\n\t\tproductos = new Producto[tamaño];\n\t\tthis.tamaño = tamaño;\n\t\tthis.inserted = 0;\n\t\tthis.extracted = 0;\n\t\tthis.insertIn = 0;\n\t\tthis.extractFrom = 0;\n\t}", "@Override\r\n\tpublic void acelerar() {\n\t\tSystem.out.println(\"Acelerar motor electrico adaptador\");\r\n\t\tthis.motorElectrico.moverMasRapido();\r\n\t}", "public Jugador(String nombreJugador)\n {\n this.nombreJugador = nombreJugador;\n cartasQueTieneEnLaMano = new Carta[5];\n numeroCartasEnLaMano = 0;\n }", "private Celda rastrearAPacman() {\n // TODO implement here\n return null;\n }", "public void jugar(){\r\n System.out.println(\"\\n\\n\\n\");\r\n // reiniciar llena el array de gato des espacios en blanco para que el tablero este en blanco\r\n reiniciar(); \r\n //pedir nombres de los jugadores\r\n System.out.println(\"Para tirar solo escribe las coordenadas (x,y) de la casilla que quieres\"); \r\n System.out.println(\"(o) Nombre de Jugador 1: \");\r\n nom1=entrada.nextLine();\r\n System.out.println(\"(x) Nombre de Jugador 2: \");\r\n nom2=entrada.nextLine();\r\n System.out.println(\"\\n\\n\\n\");\r\n //imprime el tablero\r\n tablero(); \r\n //deja que los jugadores tiren\r\n tirar(); \r\n //confirma victorias o empates \r\n if(ganador=='o'){\r\n System.out.println(\"\\n\\n\");\r\n System.out.println(\"GANA \"+ nom1);\r\n System.out.println(\"\\n\\n\");\r\n }\r\n if(ganador=='x'){\r\n System.out.println(\"\\n\\n\");\r\n System.out.println(\"GANA \"+ nom2);\r\n System.out.println(\"\\n\\n\");\r\n }\r\n if(contador==9){\r\n System.out.println(\"\\n\\n\");\r\n System.out.println(\"EMPATE, sean panas \"+nom1+\" y \"+nom2+\" :)\");\r\n System.out.println(\"\\n\\n\");\r\n }\r\n\r\n }", "private void inicializaQuadricula(EstadoAmbiente estado) {\n\t\tfor(int i = 0 ; i < this.quadricula.length ; i++) {\n\t\t\tfor (int j = 0 ; j < this.quadricula[0].length ; j++) {\n\t\t\t\tthis.quadricula[i][j] = estado;\n\t\t\t}\n\t\t}\t\t\n\t}", "public void matarAPacman() {\n // TODO implement here\n }", "public void sacar (Arma arma) {\n\t\tthis.remove(arma);\n\t}", "private void generarAno() {\r\n\t\tthis.ano = ANOS[(int) (Math.random() * ANOS.length)];\r\n\t}", "public Asiakas(){\n\t\tid++;\n\t\tbussiNumero = new Random().nextInt(OmaMoottori.bussienMaara);\n\t\tsaapumisaika = Kello.getInstance().getAika();\n\t}", "private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}", "public Arquero(){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}", "public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }", "public Automato(TabelaDeTransicao _tabela) {\n tabela = _tabela;\n estadosDeterminizados = (Vector) _tabela.getEstados().clone();\n }", "public void incrementarArreglo() {\n int tamanio_actual = top + 1; // variable tamaño actual le asignamos el valor de la cima + 1\r\n int[] new_array = new int[tamanio_actual * 2]; // al nuevo arreglo le asignamos el tamaño actual multiplicado por 2\r\n for(int i=0; i<tamanio_actual; i++){ \r\n new_array[i] = array[i]; // ciclo para ir asignando los valores existentes al nuevo arreglo\r\n }\r\n array = new_array; //referenciamos al nuevo arreglo\r\n capacidad = new_array.length; // variable capacidad le damos el valor de la longitud del nuevo arreglo\r\n }", "public Object am() {\n Object[] objArr = this.aq;\n int i = this.ar - 2081709061;\n this.ar = i;\n return objArr[i * 1523192013];\n }", "public MLMOEA_Ang(Problem problem) {\r\n\t\tsuper(problem);\r\n\t\tzideal_ = new double[problem.getNumberOfObjectives()];\r\n\t\tznadir_ = new double[problem.getNumberOfObjectives()];\r\n\t}", "public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }", "public void art() {\n arJ();\n }", "public java.lang.Long getJamMulai() {\n return jam_mulai;\n }", "@Override\n\tpublic List<Arco> obtenerArcos() {\n\t\treturn arcos;\n\t}", "public void matrizAdjunta (){\n float tablaA[][]= getMatriz();\n setMatrizAdjunta(new float[3][3]);\n getMatrizAdjunta()[0][0]=(tablaA[1][1]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][1]);\n getMatrizAdjunta()[0][1]=-((tablaA[0][1]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][1]));\n getMatrizAdjunta()[0][2]=(tablaA[0][1]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][1]);\n \n getMatrizAdjunta()[1][0]=-((tablaA[1][0]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][0]));\n getMatrizAdjunta()[1][2]=-((tablaA[0][0]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][0]));\n getMatrizAdjunta()[1][1]=(tablaA[0][0]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][0]);\n \n getMatrizAdjunta()[2][0]=(tablaA[1][0]*tablaA[2][1]) - (tablaA[1][1]*tablaA[2][0]);\n getMatrizAdjunta()[2][1]=-((tablaA[0][0]*tablaA[2][1]) - (tablaA[0][1]*tablaA[2][0]));\n getMatrizAdjunta()[2][2]=(tablaA[0][0]*tablaA[1][1]) - (tablaA[0][1]*tablaA[1][0]);\n mostrarMatriz(getMatrizAdjunta(),\"Matriz adjunta\");\n }", "public MangKaib(Main game){\n super(game);\n taust = new Taust(0,0,600,400);\n taust.checkLevel();// checkime, mis areaga tegu on peale uue tausta loomist\n mobSpawner.lisaMobInfo(); // laeme mob info.\n //game, width height draw x draw y, elud, damage, nimi, exp\n mangija = new Player(game, 97,174,50,370,100,10);\n mspawner = new mobSpawner(game, Mobid[13].getWidth(), Mobid[13].getHeight(), 450, 370, km[13].elud, km[13].dpsMin, km[13].dpsMax, km[13].mobSpeed, km[13].nimi, km[13].mobXp, km[13].mobGold,km[13].mobGold);\n magicAttack = new magicAttack(game,(mangija.x+mangija.width-15),(mangija.y-(mangija.height/2)),40,20,1,mangija.damage);\n kLiides = new uiBox(0,400,600,200);\n kLiides2 = new uiSide(600,0,200,600);\n uusRida = new Tekstid(0,420);//420 v 590\n }", "public Piirrettava arvoKulma() {\n if (!kulmat.isEmpty()) {\n return kulmat.get(new Random().nextInt(kulmat.size()));\n }\n return null;\n }", "public int[][] turfu() {\r\n\t\tint[][] tab = new int[matrice[0].length][matrice.length]; \r\n\t\tint n =0; \r\n\t\tfor(int i=0; i<tab.length; i++) {\r\n\t\t\tfor(int j=0; j< tab[0].length; j++) {\r\n\t\t\t\ttab[i][j] = matrice[j][n]; \r\n\t\t\t}\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn tab; \r\n\t}", "public Celda getArriba(){\r\n\t\treturn mapa.getCelda((fila+1)*Logica.CHEIGHT, columna*Logica.CWIDTH);\r\n\t}", "static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n Aleatorio[i] = i ; // preenche o vetor\n }\n \n for (int i = 0; i < 1000; i++) //Quantidade de vezes que as perguntas serão embaralhadas \n {\n pos1 = gerar.nextInt(Aleatorio.length);\n pos2 = gerar.nextInt(Aleatorio.length);\n //troca \n auxilio = Aleatorio[pos1]; //guarda o valor da posição 1\n \n Aleatorio [pos1] = Aleatorio[pos2]; //troca o valor de 1 para 2\n Aleatorio[pos2] = auxilio; //troca o valor de 2 para o valor que estava na 1\n }\n \n \n return Aleatorio; \n }", "private void _jogaEstado_mesa(Player playerMain, Player playerInimigo) {\n Carta cartaP1;\n CartaMonstro cartaMon;\n CartaMagica cartaMag;\n\n boolean cartasQueAtacaram[] = new boolean[playerMain.mesa.MESA_SIZE];\n int cartaIndex;\n\n Arrays.fill(cartasQueAtacaram, false);\n\n /* o jogador ainda quiser atacar (se possivel) ou mudar a carta para modo defesa-ataque */\n while (true) {\n System.out.println(\"Jogador \" + playerMain.nickName + \", Escolha uma carta da sua mesa que deseja usar ( -1 para finalizar o turno )\");\n for (int i = 0; i < Mesa.MESA_SIZE; i++) {\n cartaMon = playerMain.mesa.cartasMonstros[i];\n\n if (cartaMon != null) {\n System.out.print(\" \" + i + \". \" + cartaMon.getNome() + \" \" + cartaMon.getATK() + \"/\" + cartaMon.getDEF());\n if (cartaMon.getModoCarta().isAtaqueBaixo() || cartaMon.getModoCarta().isAtaqueCima()) {\n System.out.print(\" - A\");\n } else {\n System.out.print(\" - D\");\n }\n if (cartasQueAtacaram[i]) {\n System.out.print(\" - X\");\n }\n\n System.out.println(\"\");\n } else {\n System.out.println(\" \" + i + \". ...\");\n }\n }\n for (int i = 0; i < Mesa.MESA_SIZE; i++) {\n cartaMag = playerMain.mesa.cartasMagicas[i];\n if (cartaMag != null) {\n System.out.println(\" \" + (i + Mesa.MESA_SIZE) + \". \" + cartaMag.getNome() + \" \" + cartaMag.getTipoEfeitoMagico());\n } else {\n System.out.println(\" \" + (i + Mesa.MESA_SIZE) + \" . ...\");\n }\n }\n\n cartaIndex = scanner.nextInt();\n if (cartaIndex == -1) {\n break;\n }\n\n //usando as cartas magicas\n if (cartaIndex >= Mesa.MESA_SIZE) {\n cartaIndex -= Mesa.MESA_SIZE;\n cartaMag = playerMain.mesa.cartasMagicas[cartaIndex];\n if (cartaMag.getTipoEfeitoMagico() == CartaMagica.TipoEfeitoMagico.CAMPO) {\n cartaMag.aplicarEfeito(this, playerMain, -1);\n playerMain.mesa.removeMagica(cartaIndex);\n } else {\n System.out.println(\"Essa carta Magica não é ativavel manualmente!\");\n }\n continue;\n }\n\n if (cartasQueAtacaram[cartaIndex] == false) {\n cartaMon = playerMain.mesa.cartasMonstros[cartaIndex];\n System.out.println(\"Digite 1 para usa-la para atacar e 0 para mudar seu modo defesa-ataque\");\n if (scanner.nextInt() == 1) {\n if (cartaMon.getModoCarta().isAtaqueBaixo() || cartaMon.getModoCarta().isAtaqueCima()) {\n _jogaEstado_atacaMesaInimiga(playerMain, playerInimigo, cartaIndex);\n cartasQueAtacaram[cartaIndex] = true;\n if (playerMain.perdeu() || playerInimigo.perdeu()) {\n break;\n }\n } else {\n System.out.println(\"A carta deve estar em modo de ataque para atacar!\");\n }\n } else {\n giraCarta(cartaMon);\n }\n } else {\n System.out.println(\"Carta já atacou! escolha outra ou finalize o turno.\");\n }\n\n }\n\n }", "public void mo3609a() {\n this.f18079a.m14050a();\n }", "public java.lang.Long getJamMulai() {\n return jam_mulai;\n }", "public BurbujaInmaculada(){\n\t\tthis.afectador = new AfectadorPorTurnos(2, new EfectoBurbujaInmaculada());\n\t}", "public void rozmiarTablicy()\n {\n iloscWierszy = tabelaDanych.getRowCount();\n iloscKolumn = tabelaDanych.getColumnCount();\n tablica = new int[iloscWierszy][iloscKolumn];\n // wypelnienie tablicy pomocniczej z wartościami tabeli\n for (int i = 0; i < iloscWierszy ; i++)\n {\n for (int j = 0; j < iloscKolumn; j++)\n {\n tablica [i][j] = (int) tabelaDanych.getValueAt(i,j);\n }\n }\n }", "public String getaar() {\n\t return aar;\n\t }", "public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }", "public Sorpresa_SalirCarcel(MazoSorpresas _mazo) {\n texto = \"El jugador puede salir de la carcel si cae en ella\";\n mazo = _mazo;\n }", "private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}", "String getCADENA_TRAMA();", "public long getMatricula() {\r\n return matricula;\r\n }", "public java.lang.String getAUART() {\n return AUART;\n }", "private void aretes_aG(){\n\t\tthis.cube[31] = this.cube[14]; \n\t\tthis.cube[14] = this.cube[5];\n\t\tthis.cube[5] = this.cube[41];\n\t\tthis.cube[41] = this.cube[50];\n\t\tthis.cube[50] = this.cube[31];\n\t}", "public void limpiarMemoria();", "public Celula() { // Sentinela\n\t\tthis.item = new Jogador();\n\t\tproximo = null;\n\t}", "private void pasar_a_matriz_adyacencia() {\n table_panel1.eliminar_All();//elimino todo los elemento de la matrices\n Grafo g = panel.getGrafo();//saco el grafo del panel\n data_fila[] dato = new data_fila[g.size_vertice()];//hago de una arreglo de vectores \n for (int i = 0; i < g.size_vertice(); i++) {//estructuras de datos\n dato[i] = new data_fila();\n }\n\n for (int i = 0; i < g.size_vertice(); i++) {\n Vertices A = g.get_vertices(i);\n dato[i].setNombre(A.getNombre());\n for (int j = 0; j < g.size_vertice(); j++) {\n if (j != i) {\n Vertices B = g.get_vertices(j);\n int peso =A.adyacencia(B);\n if (peso != Integer.MIN_VALUE) {\n dato[i].setArry(j, peso);\n }\n\n }\n }\n table_panel1.add(dato[i]);\n }\n }", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "public void mostrarGrafo() {\n\t\tmatriz.mostrarMatriz();\n\t}", "public void acelera(double aceleracion){\n\t\tsuVelocidad += aceleracion;\n\t}", "protected void calculerAire() {\r\n\t\taire = Math.PI * rayonV * rayonH;\r\n\t\t\r\n\t}", "public static void establecerMano(Monton todas,Mano[] jugadores){\n int pos;\n Pieza pieza;\n for (int i = 0; i < jugadores.length; i++) {\n for (int j = 0; j < Ajustes.PIEZAS_MANO; j++) {\n if(todas.getNPiezasMonton()>0){\n pos=(int) (Math.random()*todas.getNPiezasMonton());\n pieza=todas.getUnaPieza(pos);\n jugadores[i].setUnaPieza(pieza);\n todas.eliminarPiezaMonton(pieza); \n }\n \n }\n }\n System.out.println(\"\\nCada jugador tiene \"+jugadores[0].getNPiezas()+\" piezas.\");\n if(todas.getNPiezasMonton()!=0)\n System.out.println(\"Y en el monton quedan \"+todas.getNPiezasMonton());\n else\n System.out.println(\"No quedan piezas en el monton\");\n }", "public void mostrarAyuda() {\r\n\t\t\r\n\t\tEnum_Instrucciones[] arrayEnumerado;\r\n\t\t\r\n\t\tarrayEnumerado = Enum_Instrucciones.getArrayEnumerados();\r\n\t\t\r\n\t\t// El tamano del array de enumerados es 8.\r\n\t\tfor(int i = 0; i < Enum_Instrucciones.tamanoArrayEnumerados(); i++) {\r\n\t\t\tSystem.out.println(arrayEnumerado[i].getDescripcionOrden());\r\n\t\t}\r\n\t}", "public Articulo(){\r\n\t\t\r\n\t}", "EcirdelAubrac(Machecoulais machecoulais) {\n super(1);\n this.f16565a = machecoulais;\n }", "public Marca[] getMarca(){\n return this.marca;\n }", "@Override\r\n\tpublic void arrancar() {\n\t\tSystem.out.println(\"Arrancar motor electrico adaptador\");\r\n\t\tthis.motorElectrico.conectar();\r\n\t\tthis.motorElectrico.activar();\r\n\t}", "public void abrirManoMaximo()\n {\n brazo.manoAbrirMaximo();\n }", "public DefaultTableModel armarModelo() {\r\n\t\tString columnNames[] = {\"Posici\\u00F3n\", \"Jugador\", \"Puntaje Total\", \"Partidas Jugadas\", \"Partidas Ganadas\", \"Prom. PPP\"};\r\n\t\t@SuppressWarnings(\"serial\")\r\n\t\tDefaultTableModel model = new DefaultTableModel(columnNames, 0) {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean isCellEditable(int row, int column) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t};\r\n\t\tint pos = 0;\r\n\t\tfor(Jugador jugador : this.ranking.getListaJugadores()) {\r\n\t\t\tpos++;\r\n\t\t\tif(!jugador.getUsuario().equals(this.principal.getCliente().getUsuario()))\r\n\t\t\t\tmodel.addRow(new Object[]{pos, jugador.getUsuario(), jugador.getpuntajeTotal(), jugador.getJugados(), jugador.getGanados(), jugador.getPromPPP()});\r\n\t\t\telse\r\n\t\t\t\tmodel.addRow(new Object[]{this.principal.getMiPosicionRanking(), jugador.getUsuario(), jugador.getpuntajeTotal(), jugador.getJugados(), jugador.getGanados(), jugador.getPromPPP()});\r\n\t\t}\r\n\t\treturn model;\r\n\t}", "public int obtenirArmure() {\n\t\treturn this.armure;\n\t}", "public void limpiarMesa() {\n for (int i = 0; i < mesa.length; i++) {\n mesa[i][1] = 0;\n }\n }", "private void inicializarTablero() {\n for (int i = 0; i < casillas.length; i++) {\n for (int j = 0; j < casillas[i].length; j++) {\n casillas[i][j] = new Casilla();\n }\n }\n }", "public void arbolize() {\n //generando arbol desde nodos\n while (this.size > 1) {\n NodoCaracter smallest, smaller, ncAux;\n int aux;\n smallest = new NodoCaracter(inicio);\n smaller = new NodoCaracter(inicio.siguiente);\n aux = smallest.getFreq() + smaller.getFreq();\n this.eliminaInicio();\n this.eliminaInicio();\n ncAux = new NodoCaracter(aux, smallest, smaller);\n insertaOrdenado(ncAux);\n }\n \n //transferencia de nodo(s) a arbol\n System.out.println(\"Arbol generado\");\n System.out.println(inicio.getFreq() + \" es la frecuencia total sumada\");\n }", "public static void alturaArbol() {\n int angulo = 35;\n\n double anguloConvert = Math.toRadians(angulo);\n int x = 20;\n int y;\n y = (int) Math.round(x * Math.tan(anguloConvert));\n System.out.println(\"Altura del arbol: \" + y);\n }", "public EstadoSimulacao[][] alvoSimulacao() {\n\t\treturn this.ambiente.alvoSimulacao();\n\t}", "private void kasvata() {\n T[] uusi = (T[]) new Object[this.arvot.length * 3 / 2 + 1];\n for (int i = 0; i < this.arvot.length; i++) {\n uusi[i] = this.arvot[i];\n }\n this.arvot = uusi;\n }", "public int mo23308la() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13716Kb)).intValue();\n }", "public Double getAmmonia() {\n return ammonia;\n }", "T mo16685a();", "private void moverCarroLujo() {\n for (Auto auto : arrEnemigosAuto) {\n auto.render(batch);\n\n auto.moverIzquierda();\n }\n }", "private static void printMas(int[] mas){\n for(int i = 0; i < mas.length; i++){\n System.out.println(\"mas[\"+i+\"] yra >>\" + mas[i]);\n }\n\n }", "public double darVelocidadMedia( )\n {\n return velocidadOrbitalMedia;\n }", "private static String representacaoAM(Graph grafo) {\r\n\t\tfloat[][] matriz = new float[grafo.getVertexNumber()][grafo.getVertexNumber()];\r\n\r\n\t\tfor (Aresta aresta : grafo.getArestas()) {\r\n\t\t\tint valorA = aresta.getV1().getValor();\r\n\t\t\tint valorB = aresta.getV2().getValor();\r\n\r\n\t\t\tmatriz[valorA][valorB] = aresta.getPeso(); // vale nos dois sentidos\r\n\t\t\tmatriz[valorB][valorA] = aresta.getPeso(); // vale nos dois sentidos\r\n\t\t}\r\n\r\n\t\tStringBuilder result = new StringBuilder();\r\n\r\n\t\tfor (int i = 0; i < matriz.length; i++) {\r\n\t\t\tfor (int j = 0; j < matriz.length; j++) {\r\n\t\t\t\tresult.append(matriz[i][j] + \" \");\r\n\t\t\t}\r\n\t\t\tresult.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\treturn result.toString();\r\n\t}", "@Override\n public String obtenerAyuda() {\n\treturn null;\n }", "public int darTamano() {\n\t\treturn tamano;\n\t}", "public GuaraKinematics() {\n\t\t// TODO Auto-generated constructor stub\n\t\trob = new GuaraRobot();\n\t\ta2 = rob.a2();\n\t\ta3 = rob.a3();\n\t\ta4 = rob.a4();\n\n\t}", "public int getFatorAceleracao() {\n return fatorAceleracao;\n }", "public String getMarca() {\n return Marca;\n }", "public DarAyudaAcceso() {\r\n }", "public BigInteger atas(){\n if(atas!=null)\n \n return atas.data;\n \n else {\n return null; \n }\n }", "public void sumar() {\n Acumula.acumulador++;\n }", "public double darCapacidadKilometrosPorGalon() {\n\t\treturn capacidadKilometrosPorGalon;\n\t}", "public Object ak() {\n Object[] objArr = this.aq;\n int i = this.ar + 715964991;\n this.ar = i;\n return objArr[i * 1523192013];\n }", "private void setupEscenario3( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,3,7,9\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"2,4,6,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"5\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }", "public Queue mejoresPromediosMes(int TamañoArreglo, int mes )\n\t{\n\t\tQueue Respuesta = null;\n\n\t\t//Pasa los arreglos de queue mes a un arreglo temporal \n\t\tQueue f = queueMonthly;\n\t\tQueue pre = null;\n\t\tfor(int i = 0; i< (queueMonthly.darNumeroElementos()-1); i++)\n\t\t{\n\t\t\tdouble[] dato= (double[]) queueMonthly.dequeue();\n\t\t\tUBERTrip datof = new UBERTrip((short)dato[0],(short)dato[1], (short)dato[2],(float) dato[3],(float) dato[4], (float)dato[5],(float) dato[6]);\n\t\t\t\n\t\t\tpre.enqueue(datof);\n\t\t}\n\n\t\tUBERTrip[] arreglo = new UBERTrip[pre.darNumeroElementos()]; \n\n\t\tfor(int z= 0; z< pre.darNumeroElementos(); z ++)\n\t\t{\n\t\t\tUBERTrip y = (UBERTrip) pre.dequeue();\n\t\t\tarreglo[z] = y;\n\t\t}\n\n\t\t//Separo el arreglo por los datos del mes solicitado \n\t\tUBERTrip[] arregloMes= new UBERTrip[pre.darNumeroElementos()];\n\n\t\tint posicion = 0;\n\n\t\tfor(int j = 0; j< arreglo.length; j++)\n\t\t{\n\t\t\tdouble[] x = arreglo[j].darDatosViaje();\n\n\t\t\tif(x[2] == mes)\n\t\t\t{\n\t\t\t\tarregloMes[posicion] = arreglo[j]; \n\t\t\t\tposicion ++;\n\t\t\t}\n\t\t}\n\n\t\t// Ordenamiento por insercion\n\t\tfor (int i=1; i < arregloMes.length; i++) \n\t\t{\n\t\t\tUBERTrip aux = arregloMes[i];\n\n\t\t\tint j = 0;\n\n\t\t\tdouble datosArreglomes[] = arregloMes[j].darDatosViaje();\n\t\t\tdouble datosAux[] = aux.darDatosViaje();\n\n\t\t\tfor (j=i-1; j >= 0 && datosArreglomes[3] > datosAux[3]; j--)\n\t\t\t{\n\t\t\t\tarregloMes[j+1] = arregloMes[j];\n\t\t\t}\n\t\t\tarregloMes[j+1] = aux;\n\t\t}\n\n\t\t// Retorna los N elementos \n\t\tfor(int i =0; i< TamañoArreglo; i++)\n\t\t{\n\t\t\tRespuesta.enqueue(arregloMes[i]);\n\t\t}\n\n\t\treturn Respuesta;\n\t}", "public String darMarca( )\n\t{\n\t\treturn marca;\n\t}", "public final void mo60991a() {\n super.mo60991a();\n mo66288a(new C25257a().mo65856a(\"click\").mo65858b(\"card\").mo65855a(this.f67267c).mo65857a());\n C42961az.m136380a(new C24565f(this.f67267c, 17));\n }", "private void aretes_aO(){\n\t\tthis.cube[40] = this.cube[7]; \n\t\tthis.cube[7] = this.cube[25];\n\t\tthis.cube[25] = this.cube[46];\n\t\tthis.cube[46] = this.cube[34];\n\t\tthis.cube[34] = this.cube[40];\n\t}", "public RamasserArtefact(Joueur j) {\r\n\t\tsuper(j);\r\n\t}", "public final void mo9778A() {\n long j = this.f9090h + ((long) this.f9093k);\n this.f9090h = j;\n int i = (int) (j - this.f9092j);\n int i2 = this.f9095m;\n if (i > i2) {\n int i3 = i - i2;\n this.f9093k = i3;\n this.f9090h = j - ((long) i3);\n return;\n }\n this.f9093k = 0;\n }", "public NodoCaracter getArbolRaiz() {\n return inicio;\n }", "public int mo23310ma() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13711Jb)).intValue();\n }", "public EstadoSimulacao[][] alvoSimulacao() {\n\n\t\tEstadoSimulacao[][] result = new EstadoSimulacao\n\t\t\t\t[this.quadricula.length][this.quadricula[0].length];\n\t\tfor (int i = 0 ; i < this.quadricula.length ; i++) {\n\t\t\tfor (int j = 0 ; j < this.quadricula[0].length ; j++) {\n\t\t\t\tswitch(this.quadricula[i][j]) {\n\t\t\t\tcase ESTRADA: case AGUA : case ARDIDO : \n\t\t\t\t\tresult[i][j] = EstadoSimulacao.OBSTACULO;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CASA: case TERRENO : \n\t\t\t\t\tresult[i][j] = EstadoSimulacao.LIVRE;\n\t\t\t\t\tbreak;\t\t\t\t \n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "public Jugador jugador() {\r\n\treturn jugador;\r\n }" ]
[ "0.6711004", "0.5935807", "0.583211", "0.5676796", "0.56715715", "0.5556448", "0.5519696", "0.54877406", "0.54801595", "0.5389557", "0.5375389", "0.53750616", "0.5373902", "0.5363108", "0.5339049", "0.5335894", "0.53330725", "0.5265536", "0.5262378", "0.5251932", "0.52391165", "0.52364355", "0.5216326", "0.52145964", "0.520412", "0.51999354", "0.5163043", "0.5162513", "0.51608723", "0.51511854", "0.5140014", "0.51306856", "0.51163006", "0.5115752", "0.5113191", "0.5108078", "0.5096562", "0.5096042", "0.5090839", "0.5078605", "0.50690943", "0.50640947", "0.50551534", "0.5046312", "0.5046189", "0.5040842", "0.5036018", "0.5034134", "0.5026748", "0.50247085", "0.5023753", "0.50099057", "0.50095886", "0.500953", "0.50094", "0.4993261", "0.49789584", "0.49741277", "0.49676052", "0.495957", "0.4957539", "0.49532932", "0.49455678", "0.4931141", "0.4929605", "0.49197647", "0.49105656", "0.49031144", "0.49018836", "0.48977628", "0.48956203", "0.48826563", "0.48785976", "0.4875802", "0.48725745", "0.4866463", "0.48655295", "0.48632714", "0.48616484", "0.4860988", "0.48587057", "0.48565817", "0.4836019", "0.4833287", "0.48311654", "0.48276174", "0.48228475", "0.48225614", "0.48216057", "0.48194012", "0.48188248", "0.48159215", "0.48153147", "0.4808244", "0.48076358", "0.48070052", "0.4805882", "0.48037735", "0.4795579", "0.47927722" ]
0.73396903
0
Activa o desactiva el escudo del jugador.
public void activarEscudo() { if(escudo) { width = 40; height = 40; escudo = false; setGrafico(0); } else { escudo = true; width = 50; height = 50; setGrafico(1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void activarAceptar() {\n aceptar = false;\n }", "private void ctrlPuasar() {\n btnIniciar.setEnabled(true);\n btnPausar.setEnabled(false);\n\n }", "private void ctrlIniciar() {\n btnPausar.setEnabled(true);\n btnParar.setEnabled(true);\n btnIniciar.setEnabled(false);\n btnIniciar.setText(\"Reanudar\");\n\n }", "public void acivatePlayer() {\n\t\tthis.setEnabled(true);\n\t}", "public void botoiaDesaktibatu() {\r\n\t\tordaindu_Botoia.setEnabled(false);\r\n\t}", "public void botoiaDesaktibatu2() {\r\n\t\tbtnAurrera.setEnabled(true);\r\n\t}", "public void activarNuevoAlmacen() {\n\t\ttxtId.setVisible(false);\n\t\tpnAlmacen.setVisible(true);\n\t\tsetTxtUbicacion(\"\");\n\t\tgetPnTabla().setVisible(false);\n\t\tadd(pnAlmacen,BorderLayout.CENTER);\n\t \n\t}", "public void activar(){\n\n }", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "private void activarControles(boolean estado) {\n this.panPrincipioActivo.setEnabled(estado);\n this.lblNombre.setEnabled(estado);\n this.txtNombre.setEditable(estado);\n this.lblDescripcion.setEnabled(estado);\n this.txtDescripcion.setEditable(estado);\n this.chkVigente.setEnabled(estado);\n this.btnAceptar.setEnabled(estado);\n this.btnCancelar.setEnabled(estado);\n \n this.panListadoPA.setEnabled(! estado);\n this.tblListadoPA.setEnabled(! estado);\n this.btnNuevo.setEnabled(! estado);\n this.btnModificar.setEnabled(! estado);\n \n if(estado == true){\n this.txtNombre.requestFocusInWindow();\n }else{\n this.tblListadoPA.requestFocusInWindow();\n }\n }", "private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}", "private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }", "protected void botonAceptarPulsado() {\n\t\tString pass = this.vista.getClave();\n\t\tchar[] arrayC = campoClave.getPassword();\n\t\tString clave = new String(arrayC);\n\t\tclave = Vista.md5(clave);\n\t\t\n\t\tif (pass.equals(clave)) {\n\t\t\tarrayC = campoClaveNueva.getPassword();\n\t\t\tString pass1 = new String(arrayC);\n\t\t\t\n\t\t\tarrayC = campoClaveRepita.getPassword();\n\t\t\tString pass2 = new String(arrayC);\n\t\t\t\n\t\t\tif (pass1.equals(pass2)) {\n\t\t\t\tif (this.vista.cambiarClave(pass1)) {\n\t\t\t\t\tthis.vista.msg(this, \"Contraseña maestra cambiada con éxito\");\n\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.vista.error(this, \"Error al cambiar la contraseña maestra\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.vista.error(this, \"Las contraseñas no coinciden\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.vista.error(this, \"Contraseña incorrecta\");\n\t\t}\n\t}", "@Override\n public void setEscrowAction(boolean isAction) {\n cpiDeviceCom.setEscrowAction(isAction);\n }", "public void activateShield() {\n shield.activate();\n }", "@Override\r\n\tpublic boolean reActivateIt() {\n\t\treturn false;\r\n\t}", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "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 }", "public void desactivarControles(){\n txtCodigoPlato.setEditable(false);\n txtDescripcionTipoPlato.setEditable(false);\n }", "private void resignBActionPerformed(java.awt.event.ActionEvent evt) {\n controller.resign();\n }", "public void clicarAlterarDadosCadastrais() {\n\t\thomePage.getButtonMenu().click();\n\t\thomePage.getButtonAlterarDadosCadastrais().click();\t\t\n\t}", "public static void ulogujSeKaoAdmin() {\r\n\t\tprikazIProveraSifre(-2, 'a');\r\n\t}", "@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\tactivarBoton();\r\n\t}", "public void activate() {\n\t\t// set cooldown counter\n\t}", "void passivate();", "@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getActionCommand() == \"Iniciar sesión\" ){\n this.mostrarDatosUsuario();\n this.entrar();\n }\n if(e.getActionCommand() == \"Registrate\" ){\n JOptionPane.showMessageDialog(null, \"Oprimió botón registrarse\" , \"Advertencia\", 1);\n }\n if(e.getActionCommand() == \"¿Olvidaste tu contraseña?\" ){\n JOptionPane.showMessageDialog(null, \"Oprimió botón recuperar contraseña\" , \"Advertencia\", 1);\n }\n if(e.getSource() == logintemplate.getBVerContraseña()){\n JOptionPane.showMessageDialog(null, \"Oprimido botón ver contraseña\" , \"Advertencia\", 1);\n }\n if(e.getSource() == logintemplate.getBVerMas()){\n JOptionPane.showMessageDialog(null, \"Oprimido botón ver mas\" , \"Advertencia\", 1);\n }\n }", "public void changerJoueur() {\r\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\tString cmd=e.getActionCommand().toString();\n\t\tif(cmd.equals(ControladorAdmin.OFF)){\n\t\t\tif(aux1!=null)\n\t\t\t\taux1.dispose();\n\t\t\tif(help!=null)\n\t\t\t\thelp.dispose();\n\t\t\ta.dispose();\n\t\t\tVentanaLogin ven=new VentanaLogin();\n\t\t\tControladorLogin con=new ControladorLogin(ven);\n\t\t\tven.asignarControlador(con);\n\t\t\tven.ver();\n\t\t} else if(cmd.equals(ControladorAdmin.HELP)){\n\t\t\tif(help!=null)\n\t\t\t\thelp.dispose();\n\t\t\tif(aux1!=null)\n\t\t\t\taux1.dispose();\n\t\t\t\n\t\t\t File fileH = new File(\"Resource/Usuarios/3.txt\");\n\t\t\t help=new VentanaHelp(3);\n\t\t\t help.setAlwaysOnTop(true);\n\t\t try(BufferedReader read = new BufferedReader(new FileReader(fileH))) {\n\t\t \n\t\t String line = read.readLine();\n\t\t \n\t\t while(line !=null){\n\t\t help.getText().append(line+\" \"+\"\\n\");\n\t\t line =read.readLine();\n\t\t }\n\t\t \n\t\t } catch (Exception ex) {\n\t\t \n\t\t }\n\t\t} else if(cmd.equals(CREARME)){\n\t\t\tif(aux1!=null)\n\t\t\t\taux1.dispose();\n\t\t\tif(help!=null)\n\t\t\t\thelp.dispose();\n\t\t\taux1=new Formulario();\n\t\t\taux1.medico(this);\n\t\t\taux1.ver();\n\t\t} else if(cmd.equals(CREARTEC)){\n\t\t\tif(aux1!=null)\n\t\t\t\taux1.dispose();\n\t\t\tif(help!=null)\n\t\t\t\thelp.dispose();\n\t\t\t aux1=new Formulario();\n\t\t\t aux1.tecnico(this);\n\t\t\t aux1.ver();\n\t\t} else if(cmd.equals(CANCEL)){\n\t\t\tif(aux1!=null)\n\t\t\t\taux1.dispose();\n\t\t} else if(cmd.equals(ENVIARME)){\n\t\t\tboolean bien=true;\n\t\t\tboolean dni=true;\n\t\t\tboolean comprobar = Conexion.dniMedico(aux1);\n\t\t\tif(aux1.getNombre().getText().isEmpty()){\n\t\t\t\taux1.getNombre().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getNombre().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getApellido1().getText().isEmpty()){\n\t\t\t\taux1.getApellido1().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getApellido1().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getApellido2().getText().isEmpty()){\n\t\t\t\taux1.getApellido2().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getApellido2().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getDni().getText().isEmpty()){\n\t\t\t\taux1.getDni().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\tif(!aux1.getLetra().getSelectedItem().toString().toLowerCase().equals(Utilidades.letraDNI(Integer.parseInt(aux1.getDni().getText())).toLowerCase())) {\n\t\t\t\t\taux1.getDni().setBackground(Color.red);\n\t\t\t\t\taux1.getLetra().setBackground(Color.RED);\n\t\t\t\t\tdni=false;\n\t\t\t\t} else {\n\t\t\t\t\taux1.getDni().setBackground(Color.WHITE);\n\t\t\t\t\taux1.getLetra().setBackground(Color.WHITE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(aux1.getLugar().getText().isEmpty()){\n\t\t\t\taux1.getLugar().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getLugar().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getTelefono().getText().isEmpty()){\n\t\t\t\taux1.getTelefono().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getTelefono().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getNumero().getText().isEmpty()){\n\t\t\t\taux1.getNumero().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getNumero().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tString pss=\"\";\n\t\t\tfor(int i=0;i<aux1.getContrasena1().getPassword().length;i++) {\n\t\t\t\tpss=pss+aux1.getContrasena1().getPassword()[i];\n\t\t\t}\n\t\t\tString pss2=\"\";\n\t\t\tfor(int i=0;i<aux1.getContrasena2().getPassword().length;i++) {\n\t\t\t\tpss2=pss2+aux1.getContrasena2().getPassword()[i];\n\t\t\t}\n\t\t\tif(pss.equals(\"\")){\n\t\t\t\taux1.getContrasena1().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getContrasena1().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(pss.equals(\"\")){\n\t\t\t\taux1.getContrasena2().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getContrasena2().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(comprobar == false){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ya existe un mecnico con dni \" + aux1.getDni().getText()\n\t\t\t\t\t\t+ \". Porfavor introduzca el dni correcto\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tbien = false;\n\t\t\t}\n\t\t\t\n\t\t\tif(bien==true){\n\t\t\t\tif(!dni) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El dni es erroneo\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else\n\t\t\t\t\n\t\t\t\tif(!(pss.equals(pss2))){\n\t\t\t\t\taux1.getContrasena2().setBackground(Color.RED);\n\t\t\t\t\taux1.getContrasena1().setBackground(Color.RED);\n\t\t\t\t\tJOptionPane.showMessageDialog(aux1, \"Las passwords no coinciden\", \"error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tint i=0;\n\t\t\t\t\telimi=new Vector<Usuario>();\n\t\t\t\t\tusuario=Conexion.consultarUsuarios();\n\t\t\t\t\tString st=aux1.getNombre().getText()+aux1.getApellido1().getText();\n\t\t\t\t\tVector<String> aux=new Vector<String>();\n\t\t\t\t\tfor(int j=0;j<usuario.size();j++) {\n\t\t\t\t\t\taux.add(usuario.get(i).getUser().toLowerCase());\n\t\t\t\t\t}\n\t\t\t\t\tif(aux.contains(st.toLowerCase())){\n\t\t\t\t\t\twhile(aux.contains(st.toLowerCase()+i)){\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tst=st+i;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//escribirMedico(st,con1, aux1.getNombre().getText(), aux1.getApellido1().getText(), aux1.getApellido2().getText(), aux1.getDni().getText(), aux1.getTelefono().getText(), aux1.getLugar().getText(), aux1.getNumero().getText());\n\t\t\t\t\tString sentencia=\" insert into Medico ( dni, nColegiado, nTelefono) values (\"+aux1.getDni().getText()+\",\"+aux1.getNumero().getText()+\",\"+aux1.getTelefono().getText()+\");\";\n\t\t\t\t\tConexion.sentenciaSQL(sentencia);\n\t\t\t\t\tsentencia=\" insert into Usuario(dni, rol, apellido, nombre, nick, contrasena, ubicacion) values (\"+aux1.getDni().getText()+\",\"+Constantes.MEDICO+\",'\"+aux1.getApellido1().getText()+\" \"+aux1.getApellido2().getText()+\"','\"+aux1.getNombre().getText()+\"','\"+st+\"','\"+pss+\"','\"+aux1.getLugar().getText()+\"');\";\n\t\t\t\t\tConexion.sentenciaSQL(sentencia);\n\t\t\t\t\tusuario.add(new Usuario(st,\"medico\",pss,Integer.parseInt(aux1.getDni().getText())));\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Medico creado con usuario: \"+st, \"Creado\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\taux1.dispose();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(dni) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Por favor, rellene todos los campos\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El DNI es erronea y por favor, rellene todos los campos\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if(cmd.equals(ENVIARTEC)){\n\t\t\tboolean bien=true;\n\t\t\tboolean dni=true;\n\t\t\tboolean comprobar = Conexion.dniTecnico(aux1);\n\t\t\tif(aux1.getNombre().getText().isEmpty()){\n\t\t\t\taux1.getNombre().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getNombre().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getApellido1().getText().isEmpty()){\n\t\t\t\taux1.getApellido1().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getApellido1().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getApellido2().getText().isEmpty()){\n\t\t\t\taux1.getApellido2().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getApellido2().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(aux1.getDni().getText().isEmpty()){\n\t\t\t\taux1.getDni().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\tif(!aux1.getLetra().getSelectedItem().toString().toLowerCase().equals(Utilidades.letraDNI(Integer.parseInt(aux1.getDni().getText())).toLowerCase())) {\n\t\t\t\t\taux1.getDni().setBackground(Color.red);\n\t\t\t\t\taux1.getLetra().setBackground(Color.RED);\n\t\t\t\t\tdni=false;\n\t\t\t\t} else {\n\t\t\t\t\taux1.getDni().setBackground(Color.WHITE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(aux1.getLugar().getText().isEmpty()){\n\t\t\t\taux1.getLugar().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getLugar().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tString pss=\"\";\n\t\t\tfor(int i=0;i<aux1.getContrasena1().getPassword().length;i++) {\n\t\t\t\tpss=pss+aux1.getContrasena1().getPassword()[i];\n\t\t\t}\n\t\t\tString pss2=\"\";\n\t\t\tfor(int i=0;i<aux1.getContrasena2().getPassword().length;i++) {\n\t\t\t\tpss2=pss2+aux1.getContrasena2().getPassword()[i];\n\t\t\t}\n\t\t\tif(pss.equals(\"\")){\n\t\t\t\taux1.getContrasena1().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getContrasena1().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(pss.equals(\"\")){\n\t\t\t\taux1.getContrasena2().setBackground(Color.RED);\n\t\t\t\tbien=false;\n\t\t\t} else {\n\t\t\t\taux1.getContrasena2().setBackground(Color.WHITE);\n\t\t\t}\n\t\t\tif(comprobar == false){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ya existe un tecnico con dni \" + aux1.getDni().getText()\n\t\t\t\t\t\t+ \". Porfavor introduzca el dni correcto\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tbien = false;\n\t\t\t}\n\t\t\tif(bien==true){\n\t\t\t\tif(!dni) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El dni es erroneo\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else\n\t\t\t\t\n\t\t\t\tif(!(pss.equals(pss2))){\n\t\t\t\taux1.getContrasena2().setBackground(Color.RED);\n\t\t\t\taux1.getContrasena1().setBackground(Color.RED);\n\t\t\t\tJOptionPane.showMessageDialog(aux1, \"Las passwords no coinciden\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t} else{\n\t\t\t\telimi=new Vector<Usuario>();\n\t\t\t\tusuario=Conexion.consultarUsuarios();\n\t\t\t\tint i=0;\n\t\t\t\tString st=aux1.getNombre().getText()+aux1.getApellido1().getText();\n\t\t\t\tVector<String> aux=new Vector<String>();\n\t\t\t\tfor(int j=0;j<usuario.size();j++) {\n\t\t\t\t\taux.add(usuario.get(i).getUser().toLowerCase());\n\t\t\t\t}\n\t\t\t\tif(aux.contains(st.toLowerCase())){\n\t\t\t\t\twhile(aux.contains(st.toLowerCase()+i)){\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tst=st+i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//sql\n\t\t\t\t//escribirTecnico(st,con1, aux1.getNombre().getText(), aux1.getApellido1().getText(), aux1.getApellido2().getText(), aux1.getDni().getText(), aux1.getLugar().getText());\n\t\t\t\tString sentencia=\" insert into Tecnico ( dni, turno) values (\"+aux1.getDni().getText()+\",\"+Constantes.turno+\");\";\n\t\t\t\tConexion.sentenciaSQL(sentencia);\n\t\t\t\tsentencia=\" insert into Usuario(dni, rol, apellido, nombre, nick, contrasena, ubicacion) values (\"+aux1.getDni().getText()+\",\"+Constantes.TECNICO+\",'\"+aux1.getApellido1().getText()+\" \"+aux1.getApellido2().getText()+\"','\"+aux1.getNombre().getText()+\"','\"+st+\"','\"+pss+\"','\"+aux1.getLugar().getText()+\"');\";\n\t\t\t\tConexion.sentenciaSQL(sentencia);\n\t\t\t\tusuario.add(new Usuario(st,\"tecnico\",pss,Integer.parseInt(aux1.getDni().getText())));\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Tecnico creado con usuario: \"+st, \"Creado\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\taux1.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(dni) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Por favor, rellene todos los campos\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El DNI es erronea y por favor, rellene todos los campos\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} else if(cmd.equals(USUARIOS)){\n\t\t\telimi=new Vector<Usuario>();\n\t\t\tusuario=Conexion.consultarUsuarios();\n\t\t\taux=a.getCentro().getComponents();\n\t\t\ta.getCentro().setVisible(false);\n\t\t\ta.getCentro().removeAll();\n\t\t\t//usuario=this.obtenerUsuarios();\n\t\t\tVector<Usuario>medi=new Vector<Usuario>();\n\t\t\tVector<Usuario>tec=new Vector<Usuario>();\n\t\t\t\n\t\t\tfor(int i=0;i<usuario.size();i++){\n\t\t\t\tif(usuario.get(i).getRol().equals(\"medico\")){\n\t\t\t\t\tmedi.add(usuario.get(i));\n\t\t\t\t} else {\n\t\t\t\t\ttec.add(usuario.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//drop usuario\n\t\t\ta.getCentro().add(a.paneldeusuarios(this,medi,tec,elimi),BorderLayout.CENTER);\n\t\t\t\n\t\t\ta.getCentro().setVisible(true);\n\n\t\t} else if(cmd.equals(BACK)){\n\t\t\tif(!elimi.isEmpty()) {\n\t\t\t\tint resp = JOptionPane.showConfirmDialog(a, \"Seguro que desea mantener los cambios? Serán permanentes\", \"Guardar cambios\",JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(resp==JOptionPane.NO_OPTION) {\n\t\t\t\t\telimi.removeAllElements();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < querys.size();i++){\n\t\t\t\tConexion.sentenciaSQL(querys.get(i));\n\t\t\t\tSystem.out.println(querys.get(i));\n\t\t\t}\n\t\t\tquerys.clear();\n\t\t\twhile(!elimi.isEmpty()) {\n\t\t\t\tif(elimi.get(0).getRol().equals(\"medico\")) {\n//\t\t\t\t\tConexion.sentenciaSQL(\"delete from Medico where dni=\"+elimi.get(0).getDni());\n\t\t\t\t\t\n\t\t\t\t} else if(elimi.get(0).getRol().equals(\"tecnico\")){\n//\t\t\t\t\tConexion.sentenciaSQL(\"delete from tecnico where dni=\"+elimi.get(0).getDni());\n\t\t\t\t} else {\n//\t\t\t\t\tConexion.sentenciaSQL(\"delete from administrador where dni=\"+elimi.get(0).getDni());\n\t\t\t\t}\n//\t\t\t\tConexion.sentenciaSQL(\"delete from Usuario where dni=\"+elimi.get(0).getDni());\n\t\t\t\tusuario.remove(elimi.get(0));\n\t\t\t\telimi.remove(0);\n\t\t\t}\n\t\t\ta.getCentro().setVisible(false);\n\t\t\ta.getCentro().removeAll();\n\t\t\tfor(int i=0;i<aux.length;i++){\n\t\t\t\ta.getCentro().add(aux[i]);\t\n\t\t\t}\n\t\t\t\n\t\t\ta.getCentro().setVisible(true);\n//\t\t\tString sentencia=\" insert into Tecnico ( dni, turno) values (\"+aux1.getDni().getText()+\",\"+Constantes.turno+\");\";\n//\t\t\tString sentencia = \"drop turno from Tecnico where Tecnico.dni = 98;\";\n//\t\t\tConexion.sentenciaSQL(sentencia);\n\t\t}\n\t}", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareChangePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // looking for the command object\n Command command = software.getCommand( event.getActionCommand() );\n if ( command == null )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"command.notfound\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // change the state and add an event\n if ( command.isActive() )\n {\n command.setActive( false );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Disable software \" + name + \" command \" + command.getName() );\n }\n else\n {\n command.setActive( true );\n parent.getEnvironmentWindow().getChangeEvents().add(\n \"Enable software \" + name + \" command \" + command.getName() );\n }\n // change the update flag\n parent.getEnvironmentWindow().setUpdated( true );\n // update the journal pane\n parent.getEnvironmentWindow().updateJournalPane();\n // update the pane\n update();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdesencriptar();\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\tcontroleur.switchToExplications();\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n try {\n Runtime.getRuntime()\n .exec(new String[]{\"su\", \"-c\", \"am restart\"});\n } catch (IOException e) {\n e.printStackTrace();\n }\n dialog.dismiss();\n }", "@Override\n public void actionPerformed(ActionEvent arg0) {\n if (zalozenaHra == false) {\n gameConnectButton.setEnabled(false);\n newGameButton.setText(\"Zrus zalozeni\");\n zalozenaHra = true;\n komunikace.CreateGame();\n } else {\n gameConnectButton.setEnabled(true);\n newGameButton.setText(\"Zaloz hru\");\n zalozenaHra = false;\n komunikace.cancelGame();\n }\n\n }", "public void activate()\n {\n }", "public void activate(){\r\n\r\n\t}", "public void entityDeactivating() {}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog((Component)e.getSource(), \"Cliente modificado\");\n\t\t\t\t\ttextFieldDNI_CUIT.setText(\"\");\n\t\t\t\t\ttextFieldDNI_CUIT.setEnabled(true);\n\t\t\t\t\ttextNombre_razonSocial.setText(\"\");\n\t\t\t\t\ttextNombre_razonSocial.setEnabled(false);\n\t\t\t\t\ttextDomicilio.setText(\"\");\n\t\t\t\t\ttextDomicilio.setEnabled(false);\n\t\t\t\t\ttextTelefono.setText(\"\");\n\t\t\t\t\ttextTelefono.setEnabled(false);\n\t\t\t\t\tbtnBuscar.setEnabled(true);\n\t\t\t\t\tbtnModificar.setEnabled(false);\n\t\t\t\t}", "public void botonHabilitar(JButton boton, boolean estado){\n boton.setEnabled(estado);\n }", "public void contartiempo() {\r\n\r\n\t\tif (activarContador) {\r\n\t\t//\tSystem.out.println(\"CONTADOR \" + activarContador);\r\n\t\t\tif (app.frameCount % 60 == 0) {\r\n\t\t\t\tcontador--;\r\n\t\t\t//\tSystem.out.println(\"EMPEZO CONTADOR\");\r\n\t\t\t//\tSystem.out.println(\"CONTADOR \" + contador);\r\n\t\t\t\tif (contador == 0) {\r\n\t\t\t\t\tcontador = 0;\r\n\t\t\t\t\tactivado = false;\r\n\t\t\t\t\tactivarContador = false;\r\n\t\t\t\t//\tSystem.out.println(\"CONTADOR \" + activarContador);\r\n\t\t\t\t//\tSystem.out.println(\"EFECTO \" + activado);\r\n\t\t\t\t\tplayer.setBoost(0);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public void desactivatePlayer() {\n\t\tthis.setEnabled(false);\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). saisirExemplaire() ;}", "public void desactivarRecursos() {\n\r\n\t}", "@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t\tactivarBoton();\r\n\t}", "public void DeActivate() {\n\t\t\n\t}", "@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}", "public void ejecutarComando() {\r\n\t\tsetVisible(true);\r\n\t}", "private void activationOFF() {\n switch (afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.desactivatedContents();\n break;\n case AFFICHE_USER :\n ecranUser.desactivatedContents();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.desactivatedContents();\n break;\n default: break;\n }\n }", "public void ejbActivate() {\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\t ctrl.setJogadores(2);\r\n\t\t\t\t\t t.criaPinos();\r\n\t\t\t\t\t m.atualizaBotoess(ctrl,t,men);\r\n\t\t\t\t }", "public void activate() {\n\t\tactivated = true;\n\t}", "void omoguciIzmenu() {\n this.setEnabled(true);\n }", "public void activate(){\n active = true;\n state = State.cleaving;\n }", "void deactivate();", "public void setActivo(Boolean activo) {\n this.activo = activo;\n }", "public EditarVenda() {\n initComponents();\n URL caminhoIcone = getClass().getResource(\"/mklivre/icone/icone2.png\");\n Image iconeTitulo = Toolkit.getDefaultToolkit().getImage(caminhoIcone);\n this.setIconImage(iconeTitulo);\n conexao = ModuloConexao.conector();\n codigoCliente.setEnabled(false);\n lucro.setEnabled(false);\n valorLiquidoML.setEnabled(false);\n }", "public String desactivarEditarLicencia() {\r\n\r\n this.bandMod = true;\r\n if (puntAnt.compareTo(\"2\") == 0) {\r\n this.activeTabIndex = Constantes.TAB_BUSQUEDA;\r\n } else {\r\n\r\n if (puntAnt.compareTo(\"1\") == 0) {\r\n\r\n this.activeTabIndex = Constantes.TAB_MODIFICAR;\r\n \r\n }\r\n }\r\n\r\n Mensaje.guardarMensajeExito(\"Cancelar, Editar Licencia !!!\", \"Licencias\");\r\n\r\n return null;\r\n }", "public void activate();", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tVariables.editorselete = 10;\r\n\t\t\t\tnew Login();\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t}", "@Override\r\n\tpublic void executableTask() {\n\t\tsuper.executableTask();\r\n\t\ttry {\r\n\t\t\tThread.sleep(1500);\r\n\t\t\treleaseKey();\r\n\t\t\tstop();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "public boolean activate();", "public synchronized boolean desactivarPerfil(String nombreUsuario) throws ExceptionViajesCompartidos{\n \tthis.limpiarTransacciones();\n Usuario u = this.buscarUsuarioPorNombre(nombreUsuario);\n\t\tif (u == null){\n\t\t\tthrow new ExceptionViajesCompartidos(\"El usuario ha desactivar no se encuentra registrado en el sistema\");\n\t\t}\n\t\tif (!this.isUsuarioActivo(nombreUsuario)){\n\t\t\tthrow new ExceptionViajesCompartidos(\"El usuario ya se encuentra desactivado\");\n\t\t}\n\t\t\n\t\tthis.iniciarTransaccion();\n\t\tCharacter inactivo = \"B\".charAt(0);\n\t\tu.setEstado(inactivo);\n\t\ttry{\n\t\t \tentitymanager.getTransaction( ).commit( );\t\n\t\t}catch(RollbackException e){\n\t\t \tString error= ManejadorErrores.parsearRollback(e);\n\t\t \tthrow new ExceptionViajesCompartidos(\"ERROR: \"+error);\n\t\t}\n\t\t\n\t\treturn true;\n }", "public void enfocar()\n {\n \tif(!activarAutoEnfoque())\n \t\tUtils.crearToast(getString(R.string.toast_enfoque_manual_fallo), this);\n \t// Desactivamos el enfoque automático continuo \n \tmContinuoAutoenfoque = false;\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t\tString comando=e.getActionCommand();\r\n\t\t\r\n\t\tswitch(comando){\r\n\t\tcase \"LOGIN\":\r\n\t\t\t\tloginBD();\r\n\t\t\tbreak;\r\n\t\tcase \"SALIR\":\r\n\t\t\tSystem.exit(0);\r\n\t\tbreak;\r\n\t\tcase \"BD_CONFIG\":\r\n\t\t\tBdConfig viewBdConfig=new BdConfig(view);\r\n\t\t\tCtlBdConfig ctlBdConfig=new CtlBdConfig(viewBdConfig);\r\n\t\t\t\r\n\t\t\tviewBdConfig.dispose();\r\n\t\t\tviewBdConfig=null;\r\n\t\t\tctlBdConfig=null;\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private void gameAdmin() {\n\t\tgamePause();\n\t\tsnakeFrame.snakePanel.player.close();\n\t\t try {\n\t\t\t\tRuntime.getRuntime().exec(\n\t\t\t\t\t\t \"cmd /c start http://localhost/snakegame/welcome.html \");\n\t\t\t} catch (IOException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\n\t}", "public void deactivate();", "public void setActive(){\n paycheckController.setActive();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tVariables.editorselete = 5;\r\n\t\t\t\tnew Login();\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t}", "void suspend() {\n\t\tisSuspended = true;\n\t\tSystem.out.println(\"Suspend account successfully.\");\n\t}", "@Override\n\tpublic void ejecutar() {\n\t\tcontrolador.resetPartida();\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString str = e.getActionCommand();\n\t\tif (str.equals(\"ENCRYPTION\")) {\n\t\t\tf.dispose();\n\t\t\tEncryptionGui eg = new EncryptionGui();\n\t\t\teg.main(null);\n\t\t\tencryption.setEnabled(false);\n\t\t\tdecryption.setEnabled(true);\n\n\t\t}\n\t\tif (str.equals(\"DECRYPTION\")) {\n\t\t\tf.dispose();\n\t\t\tDecryptionGui eg = new DecryptionGui();\n\t\t\teg.main(null);\n\t\t\tencryption.setEnabled(true);\n\t\t\tdecryption.setEnabled(false);\n\t\t}\n\t}", "public static void odjaviSe() {\r\n\t\tteretanaGui.getBtnAdministrator().setVisible(true);\r\n\t\tteretanaGui.getBtnOdjaviteSe().setVisible(false);\r\n\t\tsakrijEastPanel();\r\n\t}", "protected void execute()\n\t{\n\t\tif(enable)\n\t\tRobot.winch.respoolWinch();\n\t}", "private void activationON() {\n\n switch(afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.activatedContents();\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.activatedContents();\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.activatedContents();\n shell.layout();\n break;\n default: break;\n }\n\n }", "private void iniciarRondaJuego() {\n\n\t\tthis.mostrarMensaje(\"bloqueando al servidor para despertar al jugador 1\");\n\t\tbloqueoJuego.lock();\n\n\t\t// despertar al jugador 1 porque es su turno\n\t\ttry {\n\t\t\tthis.mostrarMensaje(\"Despertando al jugador 1 para que inicie el juego\");\n\t\t\tjugadores[0].setSuspendido(false);\n\t\t\tjugadores[1].setSuspendido(false);\n\t\t\tesperarInicio.signalAll();\n\t\t} catch (Exception e) {\n\n\t\t} finally {\n\t\t\tthis.mostrarMensaje(\"Desbloqueando al servidor luego de despertar al jugador 1 para que inicie el juego\");\n\t\t\tbloqueoJuego.unlock();\n\t\t}\n\t}", "public void activeRegraJogadaDupla() {\n this.RegraJogadaDupla = true;\n }", "public void salir() {\n\t\tgetUi().salir();\r\n\t}", "public void passivate()\n {\n }", "public void active(View v){\n Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN);\n\n ComponentName mDeviceAdminSample = new ComponentName(this,MyDeviceAdminReceiver.class);\n intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN,mDeviceAdminSample );\n intent.putExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION,\n \"hello,kitty\");\n startActivityForResult(intent, 100);\n\n }", "public void activatePowerup(Powerup p)\r\n\t{\r\n\t\thasPowerup = true;\r\n\t\tcurrentPowerup = p;\r\n\t}", "void activate();", "void activate();", "private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}", "@Override\n\tpublic void actionPerformed(ActionEvent ae)\n\t{\n\t\tString command = ae.getActionCommand();\n\n\t\tif (command == \"Resign\")\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tclient.sendToServer(new Move(-1, -1));\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tresign = true;\n\t\t}\n\t\telse if (command == \"Exit\")\n\t\t{\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void permisoEscribir(int idEscritor) throws InterruptedException;", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "@Override\r\n\tprotected void onBoEdit() throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoEdit();\r\n\t}", "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "public void actionPerformed(ActionEvent e) {\r\n\r\n\t\tif(e.getActionCommand().equals(\"Menu\")){\r\n\t\t\t\r\n\t\t\tventanaConsultaJuegos.dispose(); //Se cierra la clase VentanaConsultaJuegos\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tControllerVentanaPrincipal controladorVentanaPrincipal=new ControllerVentanaPrincipal(); //Hace visible la ventanaPrincipal\r\n\t\t}\r\n\t\t\r\n\t}", "public void ejbActivate() {\n\t\tSystem.out.println(\"ejbActivate\");\n\t}", "private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}", "public abstract void deactivate();", "public synchronized void abilitarAbordaje() {\n abordar = true;\r\n notifyAll();\r\n while(pedidoAbordaje != 0){//Mientras los pasajeros esten abordando\r\n try {\r\n wait();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Vuelo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n //Cuando los pasajeros hayan abordado el vuelo sale\r\n salio = true;\r\n System.out.println(\"El vuelo \" + nro + \" de \" + aerolinea + \" ha despegado\");\r\n }", "public void setChacelEnabel(final boolean enabel) {\n\t\tif (getShell() != null) {\n\t\t\tgetShell().getDisplay().asyncExec(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tsetOperationCancelButtonEnabled(enabel);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "@Override\n\tpublic void exec() {\n\t\tauto.changerEtat(\"trS\");\n\t}", "@Override\r\n public void activate() {\r\n super.getShell().setActive();\r\n }", "@FXML\n public void stopRightThere(ActionEvent event){\n resumeBtn.setVisible(true);\n statusTxt.setText(\"Paused\");\n tc.k.suspend();\n\n }", "public void registraControlador(ActionListener controller) { //Registro els botons\n jbReserva.addActionListener(controller);\n jbDemanar.addActionListener(controller);\n jbReserva.setActionCommand(\"RESERVAR\");\n jbDemanar.setActionCommand(\"DEMANAR\");\n }", "void btn_Exit_actionPerformed(ActionEvent e) {\n\t\t// TODO : changer le behaviour oneshot ? le remplacer par le notre ?\n m_owner.addBehaviour( new OneShotBehaviour() {\n public void action() {\n ((TinderSupervisorAgent) myAgent).terminateHost();\n }\n } );\n }" ]
[ "0.5933461", "0.59205097", "0.57273066", "0.5639767", "0.55920374", "0.55842453", "0.5581104", "0.5564769", "0.5521624", "0.55094343", "0.54922026", "0.54854345", "0.5478149", "0.5448421", "0.5406731", "0.5400587", "0.5390573", "0.538169", "0.5371003", "0.5353725", "0.5351044", "0.53410363", "0.53367144", "0.5332431", "0.53272355", "0.53068316", "0.53043497", "0.5302121", "0.5301183", "0.5285662", "0.5282246", "0.52791226", "0.52702624", "0.52644616", "0.52575195", "0.5253374", "0.52423704", "0.52408636", "0.5232832", "0.52326596", "0.52195126", "0.52152455", "0.5212794", "0.52118087", "0.5209413", "0.52083325", "0.5185192", "0.51849854", "0.5183984", "0.5183947", "0.5175337", "0.51740307", "0.51693434", "0.5168376", "0.51668644", "0.5164972", "0.5163721", "0.51592904", "0.5153548", "0.51449007", "0.5136281", "0.51331955", "0.5129756", "0.5128128", "0.51216865", "0.5118888", "0.5118621", "0.51168185", "0.51032394", "0.510002", "0.5099958", "0.5098689", "0.50930035", "0.5091716", "0.50870895", "0.5076671", "0.50765055", "0.50613946", "0.5059389", "0.50561905", "0.50496244", "0.5048603", "0.5048603", "0.50478333", "0.50425464", "0.50340724", "0.50324434", "0.5023703", "0.5021583", "0.5020836", "0.5017459", "0.5016801", "0.5016045", "0.50149965", "0.50140524", "0.5012025", "0.5008328", "0.49989313", "0.49951857", "0.49930412" ]
0.71327394
0
Establece que el jugador no pueda disparar.
public void pausarDisparos() { pausarDisparo = !pausarDisparo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public void disparar(){}", "public void preguntarDespegue(){\n String respuesta = this.mediador.preguntarDespegue(this);\n System.out.println(respuesta);\n if (respuesta==\"SI\"){\n this.setPosicion(1);\n this.indicarEstado(\"Preparando para el despegue\");\n }\n }", "private static void eliminarJugador() {\n\t\ttry {\n\t\t\tSystem.out.println(jugadores.toString());\n\t\t\tjugadores.borrar(Teclado.leerCadena(\"Nombre:\"));//indica el nombre del jugador que se desea borrar\n\t\t} catch (JugadorNoExisteException | NombreNoValidoException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "public static boolean sePuedeSeguir(Mano [] jugadores){\n boolean toret;\n int n=0;\n while(n<jugadores.length && !jugadores[n].getPuedeJugar())\n n++;\n \n return !(n==jugadores.length);\n }", "private void disparaUfo()\n {\n // Solo dispara si no hay disparo activo\n if (!disparoUfo.getVisible()) {\n // Generamos un número aleatorio para obtener el Ufo que va a disparar\n Random aleatorio = new Random();\n int ufoAleatorio;\n ufoAleatorio = aleatorio.nextInt(NUMEROUFOS);\n\n // Si el Ufo aleatorio NO está muerto dispara\n if (ufos.get(ufoAleatorio).getVisible()) {\n disparoUfo.setPosicion(ufos.get(ufoAleatorio).getPosicionX() + ((ufos.get(ufoAleatorio).getAncho() - disparoUfo.getAncho()) / 2), ufos.get(ufoAleatorio).getPosicionY() + ufos.get(ufoAleatorio).getAlto());\n disparoUfo.setVisible(true);\n }\n }\n }", "public void despegar(){\n if(this.posicion == 1){\n this.setPosicion(2);\n this.indicarEstado(\"Volando\");\n } else{\n System.out.println(\"No estoy preparado para el despegue\");\n }\n }", "private static void eleccionJugadores() throws ListaVaciaException{\n\t\tif(jugadores.sizeJugadores()>=2){//la lista de jugadores debe ser superior a 1 para poder añadirlos a la lista de participantes\n\t\t\tdo{\n\t\t\t\t\n\t\t\t\tSystem.out.println(jugadores.toString()+\"\\n\"+\"---MAS DE 1 JUGADOR---\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjugadorAJugar(Teclado.leerCadena(\"Nombre:\"));//nombre de los jugadores que jugaran en la partida\n\t\t\t\t\t} catch (NombreNoValidoException | JugadorYaExisteException | JugadorNoExisteException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t}while(DeseaContinuar.deseaContinuar(\"¿Otro Jugador?(s/n)\") || jugadores.sizeJugadores()<2);\n\t\t}else\n\t\t\tthrow new ListaVaciaException(\"La lista debe contener > 1 jugadores\");\n\t}", "@Override\n\tpublic boolean eliminaDipendente() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void visit(DisparoJugadorMaximo disparoJugadorMaximo) {\n\t\t\n\t}", "public void terminarAVez() {\n\n\n if (!this.jogadorTerminouAVez() && this.repete == false) {\n do {\n this.PrepareNextJogada();\n this.terminouVez = true;\n\n } while (this.listaJogadoresFalidos.contains(listaJogadores.get(vez).getNome()));\n\n }\n\n\n print(\"\\t AGora vez eh \" + this.vez);\n\n\n }", "protected boolean puedeDisparar(int tamanoBala) {\n return municion >= tamanoBala;\n }", "public void pagarSaidaDaPrisao() throws Exception {\n if (listaJogadoresNaPrisao.contains(listaJogadores.get(jogadorAtual()).getNome())) {\n listaJogadoresNaPrisao.remove(listaJogadores.get(jogadorAtual()).getNome());\n listaJogadores.get(jogadorAtual()).setTentativasSairDaPrisao(0);\n listaJogadores.get(jogadorAtual()).retirarDinheiro(50);\n\n } else {\n print(\"\\tTentou tirar \" + listaJogadores.get(jogadorAtual()).getNome());\n throw new Exception(\"player is not on jail\");\n }\n\n this.pagouPrisaoRecentemente = false;\n }", "public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }", "private void verificarMuerte() {\n if(vidas==0){\n if(estadoJuego==EstadoJuego.JUGANDO){\n estadoJuego=EstadoJuego.PIERDE;\n //Crear escena Pausa\n if(escenaMuerte==null){\n escenaMuerte=new EscenaMuerte(vistaHUD,batch);\n }\n Gdx.input.setInputProcessor(escenaMuerte);\n efectoGameOver.play();\n if(music){\n musicaFondo.pause();\n }\n }\n guardarPuntos();\n }\n }", "public void disconnetti() {\n\t\tconnesso = false;\n\t}", "public final void nonRedefinissableParEnfant(){\n\n }", "private boolean isContieneLotesDetallePedidos(){\n String pResultado = \"N\";\n try {\n log.info(\"VariablesDelivery.vNumeroPedido_bk:\"+VariablesDelivery.vNumeroPedido_bk);\n log.info(\"VariablesDelivery.vCodLocal_bk:\"+VariablesDelivery.vCodLocal_bk);\n pResultado = DBDelivery.isContienLotesProductos(VariablesDelivery.vCodLocal_bk,\n VariablesDelivery.vNumeroPedido_bk);\n \n log.info(\"isContieneLotesDetallePedidos():\"+pResultado);\n } catch (Exception e) {\n pResultado = \"N\"; \n log.info(\"Error al obtener ind Productos x Lote del Pedido:\"+e.getMessage());\n }\n \n if(pResultado.trim().equalsIgnoreCase(\"N\")){\n return false;\n }\n else{\n FarmaUtility.showMessage(this,\"El pedido ya tiene los Lotes Ingresados\\n\" +\n \"Se procederá a generar el pedido.\\n\" +\n \"Gracias.\" ,tblListaDetallePedido);\n \n return true;\n }\n }", "@Override\r\n\tpublic boolean cadastrar(Loja loja) {\n\t\treturn false;\r\n\t}", "public String retirarJugador(Jugador jugadorParaRetirar) {\n\n\t\tboolean retirado = false;\n\n\t\tfor (int i = 0; !retirado && i < this.jugadoresEnMesa.size(); i++) {\n\t\t\tif (this.jugadoresEnMesa.get(i).getId() == jugadorParaRetirar.getId()) {\n\n\t\t\t\tListaJugadores.jugadoresRetirados.add(jugadorParaRetirar);\n\n\t\t\t\tthis.jugadoresEnMesa.remove(i);\n\t\t\t\ti--;\n\t\t\t\tretirado = true;\n\n\t\t\t}\n\t\t}\n\n\t\tString mensajeRetirada;\n\t\tif (retirado) {\n\t\t\tmensajeRetirada = \"%s ha sido retirado.%s\";\n\t\t\tif (jugadorParaRetirar.getCredito() < 0)\n\t\t\t\tEasterEgg.huevoDePascua(jugadorParaRetirar.getNombre());\n\n\t\t\telse {\n\n\t\t\t\tif (jugadorParaRetirar.getCredito() == 0)\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(),\n\t\t\t\t\t\t\t\" Se le ha agotado el crédito.\");\n\n\t\t\t\telse if (jugadorParaRetirar.getCredito() >= jugadorParaRetirar.getCreditoObjetivo())\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(),\n\t\t\t\t\t\t\t\" Ha alcanzado su crédito objetivo\");\n\n\t\t\t\telse if (jugadorParaRetirar.getRondas() >= jugadorParaRetirar.getRondasMaximas())\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(),\n\t\t\t\t\t\t\t\" Ha alcanzado sus rondas máximas\");\n\n\t\t\t\telse\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(), \"\");\n\n\t\t\t}\n\n\t\t} else {\n\t\t\tmensajeRetirada = \"No se ha podido retirar al jugador.\";\n\t\t}\n\n\t\treturn mensajeRetirada;\n\n\t}", "@Override\n\tpublic void checkBotonEliminar() {\n\n\t}", "public boolean wasPageDismissed() {\n return getNextSubPageIdx() == null;\n }", "@Test\n\tpublic void testEliminarJugadores() {\n\t\tSalaDeJuego sala = new SalaDeJuego(\"sala1\");\n\t\tassertEquals(0, sala.getCantJugadores());\n\t\t//Crea un jugador y lo admite. Consulta por cantidad de jugadores = 1\n\t\tJugador jugador1 = new Jugador(\"Maikcrosoft\", 1);\n\t\tsala.admitirJugador(jugador1);\n\t\tassertEquals(1, sala.getCantJugadores());\n\t\t//Crea un jugador y lo admite. Consulta por cantidad de jugadores = 2\n\t\tJugador jugador2 = new Jugador(\"crosoft\", 2);\n\t\tsala.admitirJugador(jugador2);\n\t\tassertEquals(2, sala.getCantJugadores());\n\t\t//Elimina al primer jugador, verifica que la cantidad de jugadores = 1\n\t\tsala.eliminarJugador(jugador1);\n\t\tassertEquals(1, sala.getCantJugadores());\n\t\t//Elimina al primer jugador, verifica que la cantidad de jugadores = 0\n\t\tsala.eliminarJugador(jugador2);\n\t\tassertEquals(0, sala.getCantJugadores());\n\t}", "public void PrepareNextJogada() {\n if (vez == listaJogadores.size() - 1) {\n vez = 0;\n\n } else {\n vez++;\n }\n }", "public void pierdeUnaVida() {\n numeroDeVidas--;\n }", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}", "@Override\r\n\tpublic boolean deletar(String nomeEmpresa) {\n\t\treturn false;\r\n\t}", "private void iniciarRondaJuego() {\n\n\t\tthis.mostrarMensaje(\"bloqueando al servidor para despertar al jugador 1\");\n\t\tbloqueoJuego.lock();\n\n\t\t// despertar al jugador 1 porque es su turno\n\t\ttry {\n\t\t\tthis.mostrarMensaje(\"Despertando al jugador 1 para que inicie el juego\");\n\t\t\tjugadores[0].setSuspendido(false);\n\t\t\tjugadores[1].setSuspendido(false);\n\t\t\tesperarInicio.signalAll();\n\t\t} catch (Exception e) {\n\n\t\t} finally {\n\t\t\tthis.mostrarMensaje(\"Desbloqueando al servidor luego de despertar al jugador 1 para que inicie el juego\");\n\t\t\tbloqueoJuego.unlock();\n\t\t}\n\t}", "private boolean noMessage() {\n\t\treturn nbmsg==0;\n\t}", "public void VaciarPila() {\r\n while (!PilaVacia()) {\r\n EliminarNodo();\r\n }\r\n }", "public boolean eliminateLoop(){ return false; }", "protected boolean isDiscarded()\n {\n return m_cUnits == -1;\n }", "public void sonidoDisparar() {\n\t\ttry {\n\t\t\t\n\t\t\tClip disparo = AudioSystem.getClip();\n\t\t\tdisparo.open(AudioSystem\n\t\t\t\t\t.getAudioInputStream(getClass().getResource(\"/RercursosWAV/disparo_normal.wav\")));\n\t\t\tdisparo.start();\n\n\t\t} catch (LineUnavailableException | IOException | UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t\te.getMessage();\n\t\t\tSystem.out.println(\"error audio\");\n\t\t}\n\t}", "public boolean pobjeda() {\r\n\t\treturn !igrajPoslijePobjede && pobjeda;\t\r\n\t}", "public boolean potezDesno() {\n\t\t//koordinate glave\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\t\n\t\tthis.smjer ='d';\n\t\t\n\t\tif (j+1 < this.sirinaTable) {\n\t\t\tif ((this.tabla[i][j+1] == '#')||(this.tabla[i][j+1] == 'o')) \n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[i][j+1] == '*') \n\t\t\t\tthis.pojedi(i, j+1);\n\t\t\telse \n\t\t\t\tthis.pomjeri(i, j+1);\n\t\n\t\t}\n\t\telse if (j+1 == this.sirinaTable) {\n\t\t\tif ((this.tabla[i][0] == '#')||(this.tabla[i][0] == 'o')) \n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[i][0] == '*') \n\t\t\t\tthis.pojedi(i, 0);\n\t\t\telse \n\t\t\t\tthis.pomjeri(i, 0);\n\t\t}\n\t\treturn true;\n\t\t\t\n\t}", "private void matar() {\n dead = true;\n tareaRestar.cancel();\n ventana.matar();\n\n juego.getFabricaE().seguir();\n\n ventana.dispose();\n }", "public boolean perdu() {\r\n return this.robots.isEmpty();\r\n }", "public void desactiveRegraJogadaDupla() {\n this.RegraJogadaDupla = true;\n }", "public void processEliminar() {\n }", "private boolean soyYo(Jugador jugador){\r\n return this.jugador==jugador;\r\n }", "public void removerDeContenedor() {\n\t\tthrow new NotImplementedException();\r\n\t}", "private void nullstillFordeling(){\n int i = indeks;\n politi = -1;\n mafiaer = -1;\n venner = -1;\n mafia.nullstillSpesialister();\n spillere.tømTommeRoller();\n for (indeks = 0; roller[indeks] == null; indeks++) ;\n fordeling = null;\n }", "public void sairdaPrisao(Jogador jogador) {\n print(\"\\tA prisao tinha \" + listaJogadoresNaPrisao);\n listaJogadoresNaPrisao.remove(jogador.getNome());\n\n print(\"\\tmas saiu prisioneiro e prisao agora tem \" + listaJogadoresNaPrisao);\n }", "boolean esMovimientoLegal(Jugada jugada) throws CeldasFueraTableroException;", "@Override\n\tpublic void eliminar() {\n\t\t\n\t}", "public boolean restarUno(){\n\t\tif (numero>0){\n\t\t\tnumero--;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean paie() {\n\t\treturn false;\n\t}", "public void darBaja() {\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n if (coleccion.get(i).getUnidades() == 0) {\r\n String resumen = (\"Se ha dado de baja: \\n\" + coleccion.get(i).getTitulo() + \"\\npor falta de ejemplares\");\r\n JOptionPane.showMessageDialog(null, resumen);\r\n coleccion.remove(i);\r\n }\r\n\r\n }\r\n }", "public boolean eliminar() {\r\n if (colaVacia()) {\r\n return false;\r\n }\r\n\r\n if (ini == fin) {\r\n ini = fin = -1;\r\n } else {\r\n ini++;\r\n }\r\n\r\n return true;\r\n }", "private Boolean esMejor() {\n if(debug) {\n System.out.println(\"**********************esMejor\");\n }\n \n if(this.solOptima == null || (this.sol.pesoEmparejamiento < this.solOptima.pesoEmparejamiento)) return true;\n else return false;\n }", "public void diminuiInSitu(){\n if(quantidade_in_situ>0)\n quantidade_in_situ--;\n else\n return;\n }", "private static void eligeJugadores() {\r\n\t\tint eleccion;\r\n\t\tdo {\r\n\t\t\tSystem.out.print(\"Elige el numero de jugadores [2,6]: \");\r\n\t\t\teleccion = Teclado.leerInt();\r\n\t\t} while (eleccion < 2 || eleccion > 6);\r\n\t\tnJugadores = eleccion;\r\n\t\tjugadores = new JugadorM[nJugadores];\r\n\t\tjugadores[0] = new JugadorM(\"Jugador\", true);\r\n\t\tfor (int i = 1; i < jugadores.length; i++)\r\n\t\t\tjugadores[i] = new JugadorM(\"Maquina\" + i, false);\r\n\t}", "private boolean jogadorTerminouAVez() {\n return this.terminouVez;\n }", "private void disparaGuardian()\n {\n // Solo dispara si no hay disparo activo\n if (!disparoGuardian.getVisible()) {\n disparoGuardian.setPosicion(guardian.getPosicionX() + ((guardian.getAncho() - disparoGuardian.getAncho()) / 2), guardian.getPosicionY() - guardian.getAlto());\n disparoGuardian.setVisible(true);\n }\n }", "private static void menuManejoJugadores() {\n\t\tint opcion;\n\t\tdo{\n\t\t\topcion=menuManejoJugadores.gestionar();\n\t\t\tgestionarMenuManejoJugador(opcion);\n\t\t}while(opcion!=menuManejoJugadores.getSALIR());\n\t}", "@Override\r\n\tpublic String takeOff() {\n\t\tString despegar = \"Puede despegar\";\r\n\t\treturn despegar;\r\n\t}", "public void removerInicio() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n this.primeiro = this.primeiro.irParaProximo();\n this.total--;\n break;\n }\n }", "public void disparar(int tamanoBala, Juego juego) {\n if (puedeDisparar(tamanoBala) && TimeUtils.millis() - momentoUltimoDisparo >= ConstantesJuego.CADENCIA_DISPAROS_MILIS) {\n juego.reproducirSonido(juego.manager.managerJuego.get(ConstantesJuego.ARRAY_SONIDOS_DISPARO.get(numeroSonidoDisparo), Sound.class));\n momentoUltimoDisparo = TimeUtils.millis();\n municion -= tamanoBala;\n Vector2 posicionBala = new Vector2(posicion.x + anchoRelativoAspecto / 2f, posicion.y + altoRelativoAspecto);\n Bala bala = tipoBala(this.idPj, posicionBala, tamanoBala);\n balas.add(bala);\n }\n }", "@Override\n public boolean collided() {\n return false;\n }", "private boolean revisar(DigrafoAristaPonderada G) {\n\n // edge-weighted digraph is cyclic\n if (tieneCiclo()) {\n // verify ciclo\n AristaDirigida primero = null, ultimo = null;\n for (AristaDirigida a : ciclo()) {\n if (primero == null) primero = a;\n if (ultimo != null) {\n if (ultimo.hacia() != a.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\",\n ultimo, a);\n return false;\n }\n }\n ultimo = a;\n }\n\n if (ultimo.hacia() != primero.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\", \n ultimo, primero);\n return false;\n }\n }\n\n\n return true;\n }", "@Override\n\tpublic void eliminar() {\n\n\t}", "public boolean dispense(){\n boolean wasDispensed = false;\n if (!isEmpty()){\n mPezCount--;\n //return true if it is not empty.\n wasDispensed = true;\n }\n return wasDispensed;\n }", "private static boolean juega() {\r\n\t\tv.setMensaje( \"Empieza el nivel \" + nivel + \". Puntuación = \" + puntuacion + \r\n\t\t\t\". Dejar menos de \" + (tamanyoTablero-2) + \" pelotas de cada color. \" + (tamanyoTablero-1) + \" o más seguidas se quitan.\" );\r\n\t\t// v.setDibujadoInmediato( false ); // Notar la mejoría de \"vibración\" si se hace esto y (2)\r\n\t\twhile (!v.estaCerrada() && !juegoAcabado()) {\r\n\t\t\tPoint puls = v.getRatonPulsado();\r\n\t\t\tif (puls!=null) {\r\n\t\t\t\t// Pelota pelotaPulsada = hayPelotaPulsadaEn( puls, tablero ); // Sustituido por el objeto:\r\n\t\t\t\tPelota pelotaPulsada = tablero.hayPelotaPulsadaEn( puls );\r\n\t\t\t\tif (pelotaPulsada!=null) {\r\n\t\t\t\t\tdouble coordInicialX = pelotaPulsada.getX();\r\n\t\t\t\t\tdouble coordInicialY = pelotaPulsada.getY();\r\n\t\t\t\t\tv.espera(20); // Espera un poquito (si no pasa todo demasiado rápido)\r\n\t\t\t\t\t// Hacer movimiento hasta que se suelte el ratón\r\n\t\t\t\t\tPoint drag = v.getRatonPulsado();\r\n\t\t\t\t\twhile (drag!=null && drag.x>0 && drag.y>0 && drag.x<v.getAnchura() && drag.y<v.getAltura()) { // EN CORTOCIRCUITO - no se sale de los bordes\r\n\t\t\t\t\t\tpelotaPulsada.borra( v );\r\n\t\t\t\t\t\tpelotaPulsada.incXY( drag.x - puls.x, drag.y - puls.y );\r\n\t\t\t\t\t\tpelotaPulsada.dibuja( v );\r\n\t\t\t\t\t\trepintarTodas(); // Notar la diferencia si no se hace esto (se van borrando las pelotas al pintar otras que pasan por encima)\r\n\t\t\t\t\t\t// v.repaint(); // (2)\r\n\t\t\t\t\t\tpuls = drag;\r\n\t\t\t\t\t\tdrag = v.getRatonPulsado();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Recolocar pelota en un sitio válido\r\n\t\t\t\t\trecolocar( pelotaPulsada, coordInicialX, coordInicialY );\r\n\t\t\t\t\tquitaPelotasSiLineas( true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tpuntuacion -= (numMovimientos*PUNTOS_POR_MOVIMIENTO); // Se penaliza por el número de movimientos\r\n\t\tif (v.estaCerrada()) return false; // Se acaba el juego cerrando la ventana\r\n\t\tif (nivelPasado()) return true; // Se ha pasado el nivel\r\n\t\treturn false; // No se ha pasado el nivel\r\n\t}", "public boolean PilaVacia() {\r\n return UltimoValorIngresado == null;\r\n }", "public boolean perdeu() {\n\t\tif(tabuleiro.getAtiradores().length==0)\n\t\t{\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\r\n\tprotected boolean beforeDelete() {\r\n\t\t\r\n\t\tString valida = DB.getSQLValueString(null,\"SELECT DocStatus FROM C_Hes WHERE C_Hes_ID=\" + getC_Hes_ID());\r\n if (!valida.contains(\"DR\")){\r\n \t\r\n \tthrow new AdempiereException(\"No se puede Eliminar este documento por motivos de Auditoria\");\r\n\r\n }\r\n\t\t\r\n\t\treturn true;\r\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "@Override\n\tprotected boolean isFinishedNR() {\n return false;\n }", "public void esperarRecogidaIngrediente(){\n enter();\n if ( ingredienteact != -1 )\n estanquero.await();\n leave();\n }", "public void restarPunto ( ) {\n\t\tif ( vida > 0 )\n\t\t\tvida--;\n\t}", "public void removeDeadVampires() {\n\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n if (lista[i].getVida() <= 0)\n delVampire(i);\n }\n }", "public boolean hayPadre() {\n return this.padre != null;\n }", "public void dessiner() {\n\t\tthis.panel.dessinerJeu();\t\n\t}", "boolean canBeSkipped();", "private Jugador oponente(Jugador jugador,Jugador[] jugadores){\r\n for (Jugador jugador1 : jugadores) {\r\n if (jugador1!=jugador){\r\n return jugador1;\r\n }\r\n }\r\n return null;\r\n }", "public void repartirGananciasDealer() {\n\t\t if(contieneJugador(ganador,\"dealer\")) {\n\t\t\t if(verificarJugadaBJ(manosJugadores.get(3))) {\n\t\t\t\t System.out.println(\"Pareja nombre agregado dealer\");\n\t\t\t\t int cantidadGanancia = verificarCantidadGanadores() + 15;\n\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"dealer\", cantidadGanancia));\n\t\t\t }else {\n\t\t\t\t System.out.println(\"Pareja nombre agregado --> dealer\");\n\t\t\t\t int cantidadGanancia = verificarCantidadGanadores()+10;\n\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"dealer\",cantidadGanancia));\n\t\t\t }\n\t\t }else {\n\t\t\t int cantidadGanancia = verificarCantidadGanadores();\n\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"dealer\",cantidadGanancia));\n\t\t }\n\t\t \n\t }", "@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}", "public boolean d() {\n if (!b()) {\n return false;\n }\n this.p = false;\n this.s.removeMessages(2);\n this.s.removeMessages(1);\n if (this.b != null) {\n this.b.unregister();\n this.b = null;\n }\n return true;\n }", "boolean hasSkipMessage();", "public void supprimerParcelle() {\n\t\tboolean isEmpty=false;\n\t\tint nbParcelleSup=0;\n\t\tList<String> nomParcellesNonSupprimees = new ArrayList<>();\n\t\tList<String> nomParcellesSupprimees = new ArrayList<>();\n\n\t\tfor (String emplacement : emplacementsSelectionneesFromJS.split(\"-\")) {\n\t\t\tnbParcelleSup++;\n\n\t\t\tif (!isEmpty(emplacement)){\n\t\t\t\tString[] refEmplacement= emplacement.split(\"_\");\n\t\t\t\tint numLigne = Integer.parseInt(refEmplacement[0]);\n\t\t\t\tint numColonne = Integer.parseInt(refEmplacement[1]);\n\t\t\t\tEmplacement e = obtenirEmplacement(numLigne,numColonne);\n\n\t\t\t\tif(e != null && notHaveTachePlanified(parcelle).equals(\"true\") ) {\n\t\t\t\t\t// Suppression de la parcelle \n\t\t\t\t\tthis.parcelle = e.getParcelle();\n\t\t\t\t\taffecterDateRetraitPuisMAJParcelleEnBase(parcelle);\n\t\t\t\t\tnomParcellesSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t\tSystem.out.println(\"Supprimer Parcelle OK \");\n\t\t\t\t}else {\n\t\t\t\t\tnomParcellesNonSupprimees.add(parcelle.getLibelleParcelle());\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t//Probleme de selection d'emplacement\n\t\t\t\tisEmpty=true;\n\t\t\t}\n\t\t}\n\n\t\tif(isEmpty&&nbParcelleSup==1) {\n\t\t\tmsgInfoActionGrilleJS=\"Erreur : La selection ne correspond à aucune parcelle !\";\n\t\t\tetatMsgInfoGrilleJS=\"color:red;\";\n\t\t\tSystem.out.println(\"Supprimer Parcelle KO : L'emplacement selectionnee n'est pas affecté à une parcelle \");\n\t\t}else {\n\t\t\tif(nbParcelleSup>1) {\n\t\t\t\tString listeLibelleParcellesSupprimees=\"\";\n\t\t\t\tString listeLibelleParcellesNonSupprimees=\"\";\n\n\t\t\t\tfor (String string : nomParcellesSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tfor (String string : nomParcellesNonSupprimees) {\n\t\t\t\t\tlisteLibelleParcellesNonSupprimees+=string+\", \";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesSupprimees.length()>0) {\n\t\t\t\t\tint i = listeLibelleParcellesSupprimees.length()-2;\n\t\t\t\t\tmsgInfoActionGrilleJS=\"Les parcelles ' \"+listeLibelleParcellesSupprimees.substring(0, i)+\" ' ont bien été retirées !\";\n\t\t\t\t}\n\t\t\t\tif(listeLibelleParcellesNonSupprimees.length()>0) {\n\t\t\t\t\tint j = listeLibelleParcellesNonSupprimees.length()-2;\n\n\t\t\t\t\tmsgInfoActionGrilleJS=\"\\n Attention : Les parcelles ' \"+listeLibelleParcellesNonSupprimees.substring(0, j)+\" ' n'ont pas pu être supprimées (Taches en cours ou emplamcement vide)!\";\n\t\t\t\t}\n\n\t\t\t}else {\n\t\t\t\tmsgInfoActionGrilleJS=\"La parcelle '\"+parcelle.getLibelleParcelle()+\"'a bien été retirée !\";\n\t\t\t}\n\t\t\tetatMsgInfoGrilleJS=\"color:green;\";\n\t\t}\n\t\tthis.clearForm();\n\t}", "private void compruebaColisiones()\n {\n // Comprobamos las colisiones con los Ufo\n for (Ufo ufo : ufos) {\n // Las naves Ufo chocan con la nave Guardian\n if (ufo.colisionaCon(guardian) && ufo.getVisible()) {\n mensajeDialogo(0);\n juego = false;\n }\n // Las naves Ufo llegan abajo de la pantalla\n if ((ufo.getPosicionY() - ufo.getAlto() > altoVentana)) {\n mensajeDialogo(0);\n juego = false;\n }\n // El disparo de la nave Guardian mata a una nave Ufo\n if (ufo.colisionaCon(disparoGuardian) && ufo.getVisible()) {\n ufo.setVisible(false);\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n ufosMuertos++;\n }\n }\n\n // El disparo de las naves Ufo mata a la nave Guardian\n if (guardian.colisionaCon(disparoUfo)) {\n disparoUfo.setVisible(false);\n mensajeDialogo(0);\n juego = false;\n }\n\n // Si el disparo Guardian colisiona con el disparo de los Ufo, se\n // eliminan ambos\n if (disparoGuardian.colisionaCon(disparoUfo)) {\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n disparoUfo.setVisible(false);\n }\n }", "private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}", "boolean isDeletable() {\n return life == 0;\n }", "private void unDeleteValoresPago() {\n CQChangeStateVP( MVALORPAGO.ANULADO,MVALORPAGO.EMITIDO);\n }", "public boolean tienePrepaga() {\r\n\t\treturn obraSocial != null;\r\n\t}", "public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }", "public void isDeceased(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "public boolean vacia()\n {\n return this.repositorio.isEmpty();\n \n }", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public void desligar() {\n\r\n\t}", "public void primerTicketDisponibleEncontrado() {\n\t\tprimerTicketDisponible();\n\t\tint f; int c;\n\t\tString ticket = primerTicketDisponible();\n\t\tString[] dividir = ticket.split(\" \");\n\t\tString fila = dividir[0];\n\t\tString columna = dividir[1];\n\t\tSystem.out.println(fila);\n\t\tSystem.out.println(columna);\n\t\tf = Integer.parseInt(fila);\n\t\tc = Integer.parseInt(columna);\n\t\tactualizarPlazas(f, c);\n\t}", "public int eliminarJugador(String nombreJugador) {\n\n Log.d(\"DATABASE\", \"Eliminando Partida\");\n\n return getWritableDatabase().delete(\n JugadorEntry.TABLE_NAME,\n JugadorEntry.NOMBRE + \" LIKE ?\",\n new String[]{nombreJugador});\n }", "public boolean vacio() {\n return inicio == null;\n }", "@Override\n\tpublic void darMasaje() {\n\t\t\n\t}", "@Override\n\tpublic boolean preDelete() {\n\t\teliminarCuentasHijas(instance);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic int contarPasajeros() {\n\t\treturn 0;\r\n\t}", "public void validarVidas(){\n if(validarChoque(lbl_enemigo,lbl_nave1)){\n vidas_n1--;\n System.out.println(\"Vidas nave1 \"+vidas_n1);\n if(vidas_n1 == 0){\n //cuando borro la nave la mando fuera de la pantalla\n this.lbl_nave1.setLocation(posX, 950);\n this.panel.remove(this.lbl_nave1);\n this.panel.repaint();\n \n }\n this.panel.remove(this.lbl_enemigo);\n this.panel.repaint();\n stop();\n }\n \n //validando choque de enemigos con naves amigas nave 2\n if(validarChoque(lbl_enemigo,lbl_nave2)){\n vidas_n2--;\n System.out.println(\"Vidas nave2 \"+vidas_n2);\n if(vidas_n2==0){\n //cuando borro la nave la mando fuera de la pantalla\n this.lbl_nave2.setLocation(posX, 950);\n this.panel.remove(this.lbl_nave2);\n this.panel.repaint();\n \n }\n this.panel.remove(this.lbl_enemigo);\n this.panel.repaint();\n stop();\n }\n \n //valido que ninguna nave enemiga haya escapado\n Point posEnemigo=this.lbl_enemigo.getLocation();\n if(posEnemigo.y == 480){// si pasa esta posicion ya F\n vidas_n1--;\n vidas_n2--;\n this.panel.remove(this.lbl_enemigo);\n this.panel.repaint();\n stop();\n if(vidas_n1 == 0){\n this.panel.remove(this.lbl_nave1);\n this.panel.repaint();\n }else if(vidas_n2 == 0){\n this.panel.remove(this.lbl_nave2);\n this.panel.repaint();\n }\n }\n \n if(vidas_n1 <= 0 && vidas_n2 <= 0){\n finalizarPartida();\n }\n }", "private void quitarCorazones(){\n if(ramiro.estadoItem== Ramiro.EstadoItem.NORMAL){\n efectoDamage.play();\n vidas--;\n }\n }" ]
[ "0.65487456", "0.6391546", "0.6361996", "0.62530476", "0.6088187", "0.6045391", "0.5949227", "0.5934517", "0.58521456", "0.5835858", "0.5776812", "0.5749618", "0.5692446", "0.568991", "0.5682665", "0.566389", "0.56548953", "0.5654552", "0.5649584", "0.5635173", "0.563176", "0.5616184", "0.56104034", "0.56093717", "0.55952054", "0.55929613", "0.55808806", "0.5558081", "0.5550255", "0.5546606", "0.5540201", "0.5529806", "0.5526388", "0.5522067", "0.551598", "0.55051005", "0.54997677", "0.5494419", "0.5487221", "0.54719174", "0.54703695", "0.5465873", "0.54596186", "0.5442234", "0.54351884", "0.54268", "0.5422791", "0.5407323", "0.5396612", "0.53846973", "0.5381362", "0.5380833", "0.5375562", "0.5373674", "0.5365863", "0.5364118", "0.5361114", "0.5360086", "0.53562415", "0.53487986", "0.5342924", "0.53425246", "0.53393066", "0.5328487", "0.53219205", "0.53210026", "0.5318374", "0.5314992", "0.5313261", "0.5311607", "0.5307607", "0.52977693", "0.5297329", "0.5296033", "0.5289775", "0.52884966", "0.5285745", "0.5283132", "0.5280714", "0.52788115", "0.52730095", "0.5271434", "0.527074", "0.52696776", "0.526949", "0.52658707", "0.5263743", "0.5261316", "0.5260561", "0.5257812", "0.52509", "0.5246541", "0.5239791", "0.5235776", "0.5235663", "0.5234558", "0.5232366", "0.52320766", "0.52310205", "0.522796" ]
0.62521994
4
Devuelve verdadero si el jugador posee escudo, caso contrario falso.
public boolean tengoProteccion() { return escudo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean jogadorTerminouAVez() {\n return this.terminouVez;\n }", "boolean esMovimientoLegal(Jugada jugada) throws CeldasFueraTableroException;", "private boolean poseeSaldoAnterior() {\n boolean retorno = false;\n if(saldoAnterior !=null){\n retorno = true;\n }\n return retorno;\n }", "private boolean entrarSala() throws Exception {\n // Recebe ID do jogo, caso disponível\n this.idJogo = remoteApi.entrarSala(this.idJogador,jTextNome.toString());\n // Caso sala seja criada com sucesso, seta O para as jogadas\n if(this.idJogo!=-1) {\n this.marcador = marc_o;\n return true;\n }\n return false;\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public static boolean sePuedeSeguir(Mano [] jugadores){\n boolean toret;\n int n=0;\n while(n<jugadores.length && !jugadores[n].getPuedeJugar())\n n++;\n \n return !(n==jugadores.length);\n }", "private boolean soyYo(Jugador jugador){\r\n return this.jugador==jugador;\r\n }", "public boolean esmenor(){\n //este metodo no aplica en la resolución del caso de uso planteado\n //sólo sirve para determinar si el participante es menor de edad para \n //poner como obligatorio el campo nombreTutor de acuerdo a las reglas\n //del negocio.\n return false;\n }", "public void encerrarJogo(){\n if (isAndamento()) {\n situacao = SituacaoJogoEnum.ENCERRADO;\n }\n }", "private void acabarJogo() {\n\t\tif (mapa.isFimDeJogo() || mapa.isGanhouJogo()) {\r\n\r\n\t\t\tthis.timer.paraRelogio();\r\n\r\n\t\t\tif (mapa.isFimDeJogo()) {//SE PERDEU\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"VOCÊ PERDEU\", \"FIM DE JOGO\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t} else {//SE GANHOU\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\t\"PARABÉNS \" + this.nomeJogador + \"! \" + \"TODAS AS BOMBAS FORAM ENCONTRADAS\", \"VOCÊ GANHOU\",\r\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tiniciarRanking();//SE VENCEU MANDA O JOGADOR PRO RANKING\r\n\t\t\t}\r\n\t\t\tthis.voltarMenu();//VOLTA PRO MENU\r\n\r\n\t\t}\r\n\t}", "private boolean realizarCompra(int jogador, Lugar lugar) throws Exception {\n\n\n if (this.posicaoCompravel(this.posicoes[jogador])) {\n this.print(\"\\tO lugar \" + lugar.getNome() + \" está à venda!\");\n this.print(\"\\tAtual dinheiro:\" + this.listaJogadores.get(jogador).getDinheiro());\n this.print(\"\\tTenta realizar a compra\");\n if (this.efetuarCompra(this.posicoes[jogador], this.listaJogadores.get(jogador))) {\n this.print(\"\\tJogador compra \" + lugar.getNome());\n return true;\n\n } else {\n this.print(\"\\tCompra não realizada!\");\n return false;\n }\n\n }\n\n return false;\n }", "private void accionIngresar() {\n\n\t\tString fieldCodigo = this.textCodigo.getText();\n\t\tString fieldNombre = this.textNombre.getText();\n\t\tString fieldDescripcion = this.textDescripcion.getText();\n\t\tString fieldTelefono = this.textTelefono.getText();\n\n\t\t// Si alguno es vacío, mostramos una ventana de mensaje\n\t\tif (fieldNombre.equals(\"\") || fieldCodigo.equals(\"\") || fieldDescripcion.equals(\"\") || fieldTelefono.equals(\"\")) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Debe completar todos los datos marcados con (*).\", \"Datos incompletos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\n\t\t\treturn; }\n\t\t\n\t\t// Controlo el maximo de caracteres\n\t\tif (fieldCodigo.length() > 5) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El código puede contener máximo 5 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t} else if (fieldNombre.length() > 20) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El nombre puede contener máximo 20 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t} else if (fieldDescripcion.length() > 100) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"La descripción puede contener máximo 100 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t} else if (fieldTelefono.length() > 20) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El teléfono puede contener máximo 20 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Controlo que el fenomeno no exista ya\n\t\t\n\t\tboolean existe;\n\t\t\n\t\ttry{\n\t\t\texiste = ClienteGeoPosUy.ExisteFenomeno(fieldNombre);\n\t\t} catch (Exception e){\n\t\t\tJOptionPane.showMessageDialog(frame, \"Error de conexión con el servidor. Intente más tarde.\",\n\t\t\t\t\t\"Error de conexión!\", JOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (existe) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Ya existe un fenómeno con ese nombre\",\n\t\t\t\t\t\"Fenómeno existente!\", JOptionPane.WARNING_MESSAGE);\n\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Si todo va bien lo doy de alta\n\t\t\n\t\tboolean almacenado = false;\n\t\ttry {\n\t\t\talmacenado = ClienteGeoPosUy.crearFenomeno(fieldCodigo, fieldNombre, fieldDescripcion, fieldTelefono);\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\tif (almacenado) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El fenómeno ha sido registrado con éxito.\",\n\t\t\t\t\t\"Cliente Registrado!\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t\t// cerramos la ventanta\n\t\t\tthis.frame.dispose();\n\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tJOptionPane.showMessageDialog(frame, \"Hubo un error al almacenar. Intente nuevamente más tarde\",\n\t\t\t\t\t\"Error al registrar!\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t\t\n\t\t\n}", "private void verificarMuerte() {\n if(vidas==0){\n if(estadoJuego==EstadoJuego.JUGANDO){\n estadoJuego=EstadoJuego.PIERDE;\n //Crear escena Pausa\n if(escenaMuerte==null){\n escenaMuerte=new EscenaMuerte(vistaHUD,batch);\n }\n Gdx.input.setInputProcessor(escenaMuerte);\n efectoGameOver.play();\n if(music){\n musicaFondo.pause();\n }\n }\n guardarPuntos();\n }\n }", "public static Juego validarIngresoJugador(String usuario)\n {\n Juego juego;\n String rutaPuntaje = \"src/recursos/puntaje.txt\";\n try \n {\n File archivo = new File(rutaPuntaje);\n if(!archivo.exists())\n archivo.createNewFile();\n juego = obtenerUsuarioJuego(usuario, rutaPuntaje); \n return juego; \n }\n catch(Exception ex)\n {\n System.out.println(\"error de exception=\"+ex.getLocalizedMessage());\n return null;\n } \n }", "private void usuario(){\r\n int x=0,y=0,car=0;\r\n boolean aceptar=false, exc=false;\r\n System.out.println(\"Jugador:\"+pj+\" Puntos\");\r\n try{\r\n do{\r\n try{\r\n Scanner leer = new Scanner(System.in);\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de renglon:\");\r\n try{\r\n x=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de columna:\");\r\n try{\r\n y=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n try{\r\n if(compmov(x,y)==true){\r\n aceptar=true;\r\n }\r\n else{\r\n aceptar=false;\r\n System.out.println(\"Movimiento no Valido, Escoga Otra Vez\");\r\n }\r\n }catch(ArrayIndexOutOfBoundsException a){\r\n aceptar=false;\r\n System.out.println(\"Posicion No Valida\");\r\n }\r\n \r\n }catch(ExcepcionGame a){\r\n if(exc==false){\r\n aceptar=false;\r\n a.mensaje();\r\n }else{\r\n exc=false;\r\n throw new TimeOut(\"Has Rebasado tu Tiempo Limite\",\"Modo Contrareloj\");\r\n }\r\n }\r\n \r\n }while(aceptar==false); \r\n\r\n car=1;\r\n car=jugada(x,y,car,\"Jugador\");\r\n aceptar=false;\r\n do{\r\n try{\r\n Scanner leer = new Scanner(System.in);\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de renglon:\");\r\n try{\r\n x=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de columna:\");\r\n try{\r\n y=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n try{\r\n if(compmov(x,y)==true){\r\n aceptar=true;\r\n }\r\n else{\r\n aceptar=false;\r\n System.out.println(\"Movimiento no Valido, Escoga Otra Vez\");\r\n }\r\n }catch(ArrayIndexOutOfBoundsException ss){\r\n aceptar=false;\r\n System.out.println(\"Posicion no Valida\");\r\n }\r\n \r\n }catch(ExcepcionGame b){\r\n if(exc==false){\r\n aceptar=false;\r\n b.mensaje();\r\n }\r\n else{\r\n exc=false;\r\n throw new TimeOut(\"Has Rebasado tu Tiempo Limite\",\"Modo Contrareloj\");\r\n }\r\n \r\n }\r\n }while(aceptar==false);\r\n jugada(x,y,car,\"Jugador\");\r\n }catch(TimeOut c){\r\n c.mensaje();\r\n }\r\n }", "private static boolean juega() {\r\n\t\tv.setMensaje( \"Empieza el nivel \" + nivel + \". Puntuación = \" + puntuacion + \r\n\t\t\t\". Dejar menos de \" + (tamanyoTablero-2) + \" pelotas de cada color. \" + (tamanyoTablero-1) + \" o más seguidas se quitan.\" );\r\n\t\t// v.setDibujadoInmediato( false ); // Notar la mejoría de \"vibración\" si se hace esto y (2)\r\n\t\twhile (!v.estaCerrada() && !juegoAcabado()) {\r\n\t\t\tPoint puls = v.getRatonPulsado();\r\n\t\t\tif (puls!=null) {\r\n\t\t\t\t// Pelota pelotaPulsada = hayPelotaPulsadaEn( puls, tablero ); // Sustituido por el objeto:\r\n\t\t\t\tPelota pelotaPulsada = tablero.hayPelotaPulsadaEn( puls );\r\n\t\t\t\tif (pelotaPulsada!=null) {\r\n\t\t\t\t\tdouble coordInicialX = pelotaPulsada.getX();\r\n\t\t\t\t\tdouble coordInicialY = pelotaPulsada.getY();\r\n\t\t\t\t\tv.espera(20); // Espera un poquito (si no pasa todo demasiado rápido)\r\n\t\t\t\t\t// Hacer movimiento hasta que se suelte el ratón\r\n\t\t\t\t\tPoint drag = v.getRatonPulsado();\r\n\t\t\t\t\twhile (drag!=null && drag.x>0 && drag.y>0 && drag.x<v.getAnchura() && drag.y<v.getAltura()) { // EN CORTOCIRCUITO - no se sale de los bordes\r\n\t\t\t\t\t\tpelotaPulsada.borra( v );\r\n\t\t\t\t\t\tpelotaPulsada.incXY( drag.x - puls.x, drag.y - puls.y );\r\n\t\t\t\t\t\tpelotaPulsada.dibuja( v );\r\n\t\t\t\t\t\trepintarTodas(); // Notar la diferencia si no se hace esto (se van borrando las pelotas al pintar otras que pasan por encima)\r\n\t\t\t\t\t\t// v.repaint(); // (2)\r\n\t\t\t\t\t\tpuls = drag;\r\n\t\t\t\t\t\tdrag = v.getRatonPulsado();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Recolocar pelota en un sitio válido\r\n\t\t\t\t\trecolocar( pelotaPulsada, coordInicialX, coordInicialY );\r\n\t\t\t\t\tquitaPelotasSiLineas( true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tpuntuacion -= (numMovimientos*PUNTOS_POR_MOVIMIENTO); // Se penaliza por el número de movimientos\r\n\t\tif (v.estaCerrada()) return false; // Se acaba el juego cerrando la ventana\r\n\t\tif (nivelPasado()) return true; // Se ha pasado el nivel\r\n\t\treturn false; // No se ha pasado el nivel\r\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "private boolean jaTemDono(int posicao) {\n String nomeDono = Donos.get(posicao).toString();\n return (this.isUmJogador(nomeDono));\n\n }", "@Override\r\n\tpublic boolean cadastrar(Loja loja) {\n\t\treturn false;\r\n\t}", "public void jugar(){\n\t\tdo {\n\t\t\t\n\t\t\tSystem.out.printf(\"\\n-------- HANGMAN --------\\n\");\n\t\t\tdibujar();\n\t\t\tSystem.out.printf(\"\\n Errores: %d \\n\\n\", partida.getErrores());\n\t\t\tescribir();\n\t\t\tSystem.out.printf(\"Ingrese una letra: \\n\");\n\t\t\tlectura = entrada.nextLine();\n\t\t\tletra = lectura.charAt(0);\n\t\t\tpartida.accionar(letra);\n\t\t\t\n\t\t} while(!partida.parada());\n\t\t\n\t\t//Aquí se dibuja el estado final del juego.\n\t\t\n\t\tSystem.out.printf(\"\\n-------- HANGMAN --------\\n\");\n\t\tdibujar();\n\t\tSystem.out.printf(\"\\n Errores: %d \\n\\n\", partida.getErrores());\n\t\tescribir();\n\t\tSystem.out.printf(\"\\nTerminó el juego!!\\n\");\n\t\tif(partida.getErrores() == 10){\n\t\t\tSystem.out.printf(\"\\nPerdiste!!\\n\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.printf(\"\\nGanaste!!\\n\");\n\t\t}\n\t}", "public boolean validarFichaEpidemiologia() {\n\n\t\tdtbxFecha_ficha.setStyle(\"background-color:white\");\n\t\t// tbxNombres_y_apellidos.setStyle(\"text-transform:uppercase;background-color:white\");\n\t\ttbxNro_identificacion.setStyle(\"background-color:white\");\n\n\t\tboolean valida = true;\n\n\t\tif (dtbxFecha_ficha.getText().trim().equals(\"\")) {\n\t\t\tdtbxFecha_ficha.setStyle(\"background-color:#F6BBBE\");\n\t\t\tvalida = false;\n\t\t}\n\t\t// if(tbxNombres_y_apellidos.getText().trim().equals(\"\")){\n\t\t// tbxNombres_y_apellidos.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\n\t\t// valida = false;\n\t\t// }\n\t\tif (tbxNro_identificacion.getText().trim().equals(\"\")) {\n\t\t\ttbxNro_identificacion.setStyle(\"background-color:#F6BBBE\");\n\t\t\tvalida = false;\n\t\t}\n\n\t\tif (!valida) {\n\t\t\tMensajesUtil.mensajeAlerta(usuarios.getNombres()\n\t\t\t\t\t+ \" recuerde que...\",\n\t\t\t\t\t\"Los campos marcados con (*) son obligatorios\");\n\t\t}\n\n\t\treturn valida;\n\t}", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "public static void darMasaje() {\n\n\t}", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "private boolean controlarDatos() {\n\t\t\n\t\tif(textNombre.getText().equals(\"\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"El nombre no debe estar vacio\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "private void actualizaUsuario() {\n\t\t\n\t\tInteger edad=miCoordinador.validarEdad(campoEdad.getText().trim());\n\t\t\n\t\tif (edad!=null) {\n\t\t\t\n\t\t\tUsuarioVo miUsuarioVo=new UsuarioVo();\n\t\t\t//se asigna cada dato... el metodo trim() del final, permite eliminar espacios al inicio y al final, en caso de que se ingresen datos con espacio\n\t\t\tmiUsuarioVo.setDocumento(campoDocumento.getText().trim());\n\t\t\tmiUsuarioVo.setNombre(campoNombre.getText().trim());\n\t\t\tmiUsuarioVo.setEdad(Integer.parseInt(campoEdad.getText().trim()));\n\t\t\tmiUsuarioVo.setProfesion(campoProfesion.getText().trim());\n\t\t\tmiUsuarioVo.setTelefono(campoTelefono.getText().trim());\n\t\t\tmiUsuarioVo.setDireccion(campoDireccion.getText().trim());\n\t\t\t\n\t\t\tString actualiza=\"\";\n\t\t\t//se llama al metodo validarCampos(), este retorna true o false, dependiendo de eso ingresa a una de las opciones\n\t\t\tif (miCoordinador.validarCampos(miUsuarioVo)) {\n\t\t\t\t//si se retornó true es porque todo está correcto y se llama a actualizar\n\t\t\t\tactualiza=miCoordinador.actualizaUsuario(miUsuarioVo);//en registro se almacena ok o error, dependiendo de lo que retorne el metodo\n\t\t\t}else{\n\t\t\t\tactualiza=\"mas_datos\";//si validarCampos() retorna false, entonces se guarda la palabra mas_datos para indicar que hace falta diligenciar los campos obligatorios\n\t\t\t}\n\t\t\t\n\t\t\t//si el registro es exitoso muestra un mensaje en pantalla, sino, se valida si necesita mas datos o hay algun error\n\t\t\tif (actualiza.equals(\"ok\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Se ha Modificado Correctamente \",\"Confirmación\",JOptionPane.INFORMATION_MESSAGE);\t\t\t\n\t\t\t}else{\n\t\t\t\tif (actualiza.equals(\"mas_datos\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Debe Ingresar los campos obligatorios\",\"Faltan Datos\",JOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t\t\t}else{\n\t\t JOptionPane.showMessageDialog(null, \"Error al Modificar\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Debe ingresar una edad Valida!!!\",\"Advertencia\",JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\t\t\t\n\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public boolean esHoja() {\n\t\treturn (izquierdo==null && derecho==null);\n\t}", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "private boolean validarDatos() {\r\n\t\tboolean _esValido = true;\r\n\r\n\t\tif (txField_lugar.getText() == null || txField_lugar.getText().isEmpty())\r\n\t\t\t_esValido = false;\r\n\t\treturn _esValido;\r\n\t}", "private void iniciarRondaJuego() {\n\n\t\tthis.mostrarMensaje(\"bloqueando al servidor para despertar al jugador 1\");\n\t\tbloqueoJuego.lock();\n\n\t\t// despertar al jugador 1 porque es su turno\n\t\ttry {\n\t\t\tthis.mostrarMensaje(\"Despertando al jugador 1 para que inicie el juego\");\n\t\t\tjugadores[0].setSuspendido(false);\n\t\t\tjugadores[1].setSuspendido(false);\n\t\t\tesperarInicio.signalAll();\n\t\t} catch (Exception e) {\n\n\t\t} finally {\n\t\t\tthis.mostrarMensaje(\"Desbloqueando al servidor luego de despertar al jugador 1 para que inicie el juego\");\n\t\t\tbloqueoJuego.unlock();\n\t\t}\n\t}", "private Boolean esMejor() {\n if(debug) {\n System.out.println(\"**********************esMejor\");\n }\n \n if(this.solOptima == null || (this.sol.pesoEmparejamiento < this.solOptima.pesoEmparejamiento)) return true;\n else return false;\n }", "public boolean potezDesno() {\n\t\t//koordinate glave\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\t\n\t\tthis.smjer ='d';\n\t\t\n\t\tif (j+1 < this.sirinaTable) {\n\t\t\tif ((this.tabla[i][j+1] == '#')||(this.tabla[i][j+1] == 'o')) \n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[i][j+1] == '*') \n\t\t\t\tthis.pojedi(i, j+1);\n\t\t\telse \n\t\t\t\tthis.pomjeri(i, j+1);\n\t\n\t\t}\n\t\telse if (j+1 == this.sirinaTable) {\n\t\t\tif ((this.tabla[i][0] == '#')||(this.tabla[i][0] == 'o')) \n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[i][0] == '*') \n\t\t\t\tthis.pojedi(i, 0);\n\t\t\telse \n\t\t\t\tthis.pomjeri(i, 0);\n\t\t}\n\t\treturn true;\n\t\t\t\n\t}", "public boolean potezDole() {\n\t\t//koordinate glave\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\t\n\t\tthis.smjer ='s';\n\t\t\n\t\tif (i+1 < this.visinaTable) {\n\t\t\tif ((this.tabla[i+1][j] == '#')||(this.tabla[i+1][j] == 'o')) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse if (this.tabla[i+1][j] == '*') {\n\t\t\t\t\n\t\t\t\tthis.pojedi(i+1, j);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tthis.pomjeri(i+1, j);\n\n\t\t\t}\n\t\t}\n\t\telse if (i+1 == this.visinaTable) {\n\t\t\tif ((this.tabla[0][j] == '#')||(this.tabla[0][j] == 'o'))\n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[0][j] == '*')\n\t\t\t\tthis.pojedi(0, j);\n\t\t\telse\n\t\t\t\tthis.pomjeri(0, j);\n\t\t}\t\n\t\treturn true;\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "public void validarPostagem() {\n\t\t// validando se o nome motorista ou carona foram preenchidos\n\t\tint verif = 0;\n\t\ttry {\n\t\t\tif (txtCarona.getText() == null\n\t\t\t\t\t|| txtCarona.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (txtMotorista.getText() == null\n\t\t\t\t\t|| txtMotorista.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (verif == 2) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t\tif (txtDestino.getText() == null\n\t\t\t\t\t|| txtDestino.getText().trim().equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\"Para postar no quadro é necessário informar nome (motorista ou passageiro) \"\n\t\t\t\t\t\t\t\t\t+ \"\t\t\t\t\t\t\te local. \\n Por favor certifique se os campos foram preenchidos e tente novamente.\");\n\t\t}\n\n\t}", "private boolean comprobarUsuario(String nombre, String contrasenia, String grupo) {\n\n return true;\n }", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "public boolean insertarNuevoJuego(Juegos juego) {\n\n String metodo=\"insertarNuevoJuego\";\n boolean res = false;\n\n Session session = null;\n Transaction tx = null;\n\n try {\n session = HibernateUtil.currentSession();\n tx = session.beginTransaction();\n\n //guardamos\n session.save(juego);\n\n session.flush();\n tx.commit();\n\n log.info(\"DAOJuegos: \"+metodo+\": Juego \" + juego.getNombre() + \" INSERTADO OK\");\n res = true;\n\n } catch (org.hibernate.HibernateException he) {\n tx.rollback();\n log.error(\"DAOJuegos: \"+metodo+\": Error de Hibernate: \" + he.getMessage());\n } catch (SQLException sqle) {\n tx.rollback();\n log.error(\"DAOJuegos: \"+metodo+\": Error SQLException: \" + sqle.getMessage());\n } catch (Exception e) {\n tx.rollback();\n log.error(\"DAOJuegos: \"+metodo+\": Error Exception: \" + e.getMessage());\n } finally {\n // Liberamos sesión\n HibernateUtil.closeSession();\n log.info(\"DAOJuegos: \"+metodo+\": Sesion liberada. Finished\");\n }\n\n return res;\n }", "public boolean terminoujogo(){\n\t\t\t\n\t\t\tif(combinacaoDiagonal()){\n\t\t\t\tSystem.out.println(\" Combinacao vencedora: DIAGONAL PRINCIPAL!\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif(combinacaoDiagonalSecundaria()){\n\t\t\t\tSystem.out.println(\" Combinacao vencedora: DIAGONAL SECUNDARIA!\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif(combinacaoVertical()){\n\t\t\t\tSystem.out.println(\" Combinacao vencedora: VERTICAL!\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif(combinacaoHorizontal()){\n\t\t\t\tSystem.out.println(\" Combinacao vencedora: HORIZONTAL!\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "private boolean correctUser() {\n // TODO mirar si l'usuari es unic a la base de dades\n return true;\n }", "public boolean turno(Jugador jugador, int numJugador) {\n\n int colIn = 0, filaIn = 0, colFn = 0, filaFn = 0;\n boolean movimientoValido = false;\n\n do {\n System.out.println(\"\\n Turno de \" + jugador.getNombre() + \":\");\n\n System.out.println(\"\\n (Si quieres salir escribe 'no')\");\n String ficha = LecturaDatos.leerTexto(\" Elige la ficha a mover (a1): \");\n\n if (ficha.equals(\"no\")) {\n return true;\n }\n colIn = tablero.buscarIndiceLetras(ficha.charAt(0));\n filaIn = Character.getNumericValue(ficha.charAt(1)) - 1;\n\n ficha = LecturaDatos.leerTexto(\" Elige la casilla a la que moveras: \");\n colFn = tablero.buscarIndiceLetras(ficha.charAt(0));\n filaFn = Character.getNumericValue(ficha.charAt(1)) - 1;\n\n boolean sePuede = rectificarCeldas(filaIn, colIn, filaFn, colFn, jugador);\n\n if (sePuede) {\n movimientoValido = comprobarMovimiento(filaIn, colIn, filaFn, colFn, jugador, numJugador);\n if (movimientoValido) {\n realizarMovimiento(tableroPartida[filaIn][colIn], tableroPartida[filaFn][colFn]);\n tablero.mostrarTablero();\n } else {\n System.out.println(\"\\n Movimiento no valido11\");\n }\n } else {\n System.out.println(\"\\n Movimiento no valido12\");\n }\n\n } while (movimientoValido == false);\n\n // realizarMovimiento(tableroPartida[filaIn][colIn],\n // tableroPartida[filaFn][colFn]);\n // tablero.mostrarTablero();\n\n // revisar si la casilla inicial tiene letra\n\n // revisar si es x ^ o\n\n // revisar si la casilla final está vacia\n\n // comprobar si se puede hacer el movimiento\n return false;\n }", "public void cambiarIdioma(Jugador jugador, Button btnNoExit, Button btnSiExit,\n TextView logoBocadilloIntroExit) {\n\n int idioma = jugador.getIdioma();\n\n if (idioma == 0) { //CAT\n btnNoExit.setText(\"No\");\n btnSiExit.setText(\"Si\");\n logoBocadilloIntroExit.setText(R.string.exitCAT);\n } else if (idioma == 1) { //ESP\n btnNoExit.setText(\"No\");\n btnSiExit.setText(\"Si\");\n logoBocadilloIntroExit.setText(R.string.exitESP);\n } else { //ENG\n btnNoExit.setText(\"No\");\n btnSiExit.setText(\"Yes\");\n logoBocadilloIntroExit.setText(R.string.exitENG);\n }\n }", "private String pedirCasilla(String mensaje) {\n char columna;\n int fila;\n String casilla;\n do {\n casilla = ManejoInfo.getTextoSimple(\"la casilla \" + mensaje);\n columna = casilla.charAt(0);\n fila = Character.getNumericValue(casilla.charAt(1));\n if (!validarColum(columna) && fila >= 9) {\n System.out.println(\"\\nIngrese una casilla valida!\\n\");\n }\n } while (!validarColum(columna) && fila >= 9);\n return casilla;\n }", "public boolean validarFichaEpidemiologia() {\n\t\t\n\t\tboolean valida = true;\n\t\t\n\t\tif(!valida){\n\t\t\tMensajesUtil.mensajeAlerta(usuarios.getNombres()+\" recuerde que...\",\"Los campos marcados con (*) son obligatorios\");\n\t\t}\n\t\t\n\t\treturn valida;\n\t}", "public boolean logInDatosCorrectos(){\n if (txtNombreUsuario.getText().equals(\"\") || txtContraseña.getText().equals(\"\")){\n return false;\n }\n return true;\n }", "boolean puedoEdificarCasa(Casilla casilla){\n boolean puedoEdificar = false;\n \n //Se comprueba si el jugador es propietario de la casilla.\n boolean esMia = this.esDeMipropiedad(casilla);\n \n if(esMia){\n //Se obtiene el precio de edificación.\n int costeEdificarCasa = casilla.getPrecioEdificar();\n \n //Se comprueba que el jugador tiene saldo para llevar a cabo la edificación.\n boolean tengoSaldo = this.tengoSaldo(costeEdificarCasa);\n \n if(tengoSaldo){\n puedoEdificar = true;\n } \n }\n return puedoEdificar; \n }", "public String retirarJugador(Jugador jugadorParaRetirar) {\n\n\t\tboolean retirado = false;\n\n\t\tfor (int i = 0; !retirado && i < this.jugadoresEnMesa.size(); i++) {\n\t\t\tif (this.jugadoresEnMesa.get(i).getId() == jugadorParaRetirar.getId()) {\n\n\t\t\t\tListaJugadores.jugadoresRetirados.add(jugadorParaRetirar);\n\n\t\t\t\tthis.jugadoresEnMesa.remove(i);\n\t\t\t\ti--;\n\t\t\t\tretirado = true;\n\n\t\t\t}\n\t\t}\n\n\t\tString mensajeRetirada;\n\t\tif (retirado) {\n\t\t\tmensajeRetirada = \"%s ha sido retirado.%s\";\n\t\t\tif (jugadorParaRetirar.getCredito() < 0)\n\t\t\t\tEasterEgg.huevoDePascua(jugadorParaRetirar.getNombre());\n\n\t\t\telse {\n\n\t\t\t\tif (jugadorParaRetirar.getCredito() == 0)\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(),\n\t\t\t\t\t\t\t\" Se le ha agotado el crédito.\");\n\n\t\t\t\telse if (jugadorParaRetirar.getCredito() >= jugadorParaRetirar.getCreditoObjetivo())\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(),\n\t\t\t\t\t\t\t\" Ha alcanzado su crédito objetivo\");\n\n\t\t\t\telse if (jugadorParaRetirar.getRondas() >= jugadorParaRetirar.getRondasMaximas())\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(),\n\t\t\t\t\t\t\t\" Ha alcanzado sus rondas máximas\");\n\n\t\t\t\telse\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(), \"\");\n\n\t\t\t}\n\n\t\t} else {\n\t\t\tmensajeRetirada = \"No se ha podido retirar al jugador.\";\n\t\t}\n\n\t\treturn mensajeRetirada;\n\n\t}", "@Test\n\tpublic void CT04UC01CadastrarLivro_com_autor_invalido() {\n\t\ttry {\n\t\t\tlivro.setAutor(\"\");\n\t\t\tfail(\"deveria lançar uma exceção\");\n\t\t} catch (RuntimeException e) {\n\t\t\tassertEquals(\"Autor invalido\", e.getMessage());\n\t\t}\n\t}", "public void preguntarDespegue(){\n String respuesta = this.mediador.preguntarDespegue(this);\n System.out.println(respuesta);\n if (respuesta==\"SI\"){\n this.setPosicion(1);\n this.indicarEstado(\"Preparando para el despegue\");\n }\n }", "public boolean voikoSulkea() {\n handleTallenna();\n return true;\n }", "private boolean validarEntradaDeDados() {\n String errorMessage = \"\";\n\n if (txtFieldHistorico.getText() == null || txtFieldHistorico.getText().length() == 0) {\n errorMessage += \"Nome inválido!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Mostrando a mensagem de erro\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erro no cadastro\");\n alert.setHeaderText(\"Campos inválidos, por favor, corrija...\");\n alert.setContentText(errorMessage);\n alert.show();\n return false;\n }\n }", "private static void eliminarJugador() {\n\t\ttry {\n\t\t\tSystem.out.println(jugadores.toString());\n\t\t\tjugadores.borrar(Teclado.leerCadena(\"Nombre:\"));//indica el nombre del jugador que se desea borrar\n\t\t} catch (JugadorNoExisteException | NombreNoValidoException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "public Boolean validarRegistro(Usuario u) {\r\n\t\tif(!this.modoAdmin) return false ;\r\n\t\tu.aprobar();\r\n\t\treturn true;\r\n\t}", "public void MoverPieza(CuadroPieza cuadroActual, CuadroPieza cuadroDestino) {\n try {\n if (suspenderJuego) {//Si el juego no esta suspendido\n return;\n }\n if (cuadroActual.getPieza().MoverPieza(cuadroDestino, this)) {//Si el movimiento es valido\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n tablero[x][y].opacarPieza();//Regreso todos los cuadros a su estado inicial, para que no esten resaltados.\n }\n }\n setTurno(getTurno() * -1);//Cambio de turno.\n if (getRey(getTurno()).isInJacke(this)) {//Pregunto si el rey del turno actual, o sea al que le toca mover despues de este metodo, esta en jacke\n if (Pieza.isJugadorAhogado(getTurno(), this)) {//Si esta en jacke, pregunto si esta ahogado(Quiere decir que no tiene opcion.)\n //Si esta en jacke y esta ahogado a la vez, quiere decir que esta en jacke mate.\n JOptionPane.showMessageDialog(null, \"Hacke Mate!!!\\nComputadora: Parece que me ganaste=(\");\n if (JOptionPane.showConfirmDialog(null, \"Computadora: Te reto a que lo vuelvas a hacer, Otra¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n JOptionPane.showMessageDialog(null, \"Computadora: Cobarde ¬¬\");\n suspenderJuego = true;\n }\n return;\n } else {\n //Si no esta ahogado, simplemente es un jacke.\n JOptionPane.showMessageDialog(null, \"Rey en Hacke \\nComputadora: Y ahora que hago¿? =(\");\n }\n } else {\n if (Pieza.isJugadorAhogado(getTurno(), this)) {\n //Si solo esta ahogado, es un empate.\n JOptionPane.showMessageDialog(null, \"Empate!!!\\nComputadora: Vamos que andamos parchis, me has ahogado!!!\");\n\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n if (Pieza.getCantMovimientosSinCambios() >= 50) {\n //Si han pasado 50 movimientos sin ningun cambio, tambien se considera empate.\n JOptionPane.showMessageDialog(null, \"Empate!!! \\nComputadora: Vaya, han pasado 50 turnos sin comernos jeje!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Otra Partida Amistosa¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n }\n }\n\n if (getTurno() == turnoComputadora) {//Si le toca a la computadora, le toca jugar a ella.\n jugarMaquinaSola(getTurno());\n }\n } else {\n if (getRey(getTurno()).isInJacke(this)) {//Si el movimiento es invalido, y encima el rey esta en jacke, pues es un movimiento invalido, el rey tiene que librarse del jacke\n JOptionPane.showMessageDialog(null, \"Movimiento invalido\");\n }\n }\n } catch (Exception e) {\n System.out.print(\"Error: \" + e.getMessage());\n }\n }", "@Override\r\n\tpublic boolean lancar(Combativel origem, Combativel alvo) {\r\n DadoVermelho dado = new DadoVermelho();\r\n int valor = dado.jogar();\r\n if(valor < origem.getInteligencia()) {\r\n alvo.defesaMagica(dano);\r\n return true;\r\n }\r\n else {\r\n \tSystem.out.println(\"Voce nao conseguiu usar a magia\");\r\n }\r\n return false;\r\n }", "@Override\n\tpublic boolean puedoPasar(ElementoFuego a) {\n\t\treturn false;\n\t}", "protected boolean puedeDisparar(int tamanoBala) {\n return municion >= tamanoBala;\n }", "public void carroAgregado(){\n System.out.println(\"Su carro fue agregado con exito al sistema\");\n }", "public void exibirJogo() {\n super.exibirJogo();\n System.out.println(\"Codigo do Jogo Digital: \" + codigo);\n }", "@Override\n\t/*Método que se va a utilizar cuando el usuario inicie sesión, para ver si los datos son o no correctos*/\n\tpublic String comprobarinicio(String nombreusuario, String clave) {\n\t\tDBConnection con = new DBConnection();\n\t\tString sql=\"Select * from usuarios where nombreusuario='\"+nombreusuario+\"'and clave='\"+clave+\"'\"; //búsqueda del usuario en la BD\n\t\tBoolean encontrado=false; //Booleano que indicará si el usuario está o no en la BD\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement(); \n\t\t\tResultSet rs = st.executeQuery(sql);\n\t\t\t/*De lo que devuelve la consulta, se va a coger el nombre de usuario y la clave (aunque no haya datos en ellos lo devuelve pero vacio)*/\n\t\t\twhile(rs.next()) {\n\t\t\tString nombre_usu= rs.getString(\"nombreusuario\");\n\t\t\tString pass= rs.getString(\"clave\");\n\t\t\t/*En caso de que los datos coincidan con los que se han pasado como parámetros desde el inicio de sesión, significará que los datos son correctos\n\t\t\t * y la variable encontrado cambia su valor para dejar constancia de que el usuario es correcto*/\n\t\t\tif(nombre_usu.equals(nombreusuario) && pass.equals(clave)) {\n\t\t\t\tencontrado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tst.close();\n\t\t\t//En caso del valor de encontrado, se devolverá ok (si se encuentra) o not ok (\"si no se encuentra\")\n\t\t\tif(encontrado) {\n\t\t\t\treturn \"ok\";\n\t\t\t}else {\n\t\t\t\treturn \"not ok\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n return(e.getMessage());\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t}\n\t\t\n\t\t\n\t}", "public boolean ocupadoDcha(Pieza [] pieza) {\n boolean comprobar = false;\r\n for (int i = 0; i < 4; i++) { //borra la pieza para que al comprobar no se encuentre con una celda de la propia pieza\r\n tablero.setTipoPieza(pieza[i].x, pieza[i].y, 0);\r\n }\r\n for (int i = 0; i < 4; i++) {\r\n if (tablero.getTipoPieza()[pieza[i].x][(pieza[i].y) + 1] == 0 && !(pieza[i].y == 9)) { //comprueba si la celda de la derecha está ocupada o es la última\r\n comprobar = false;\r\n } else {\r\n comprobar = true;\r\n dibujarPieza(canvas, pieza); //si está ocupado vuelve a pintar la pieza y devuelve true\r\n return comprobar;\r\n }\r\n }\r\n dibujarPieza(canvas, pieza);//si no está ocupado también vuelve a pintar la pieza\r\n return comprobar;\r\n }", "private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}", "@Override\n\tpublic void darMasaje() {\n\t\t\n\t}", "public void ingresar() \r\n\t{\r\n\r\n\t\tString numeroCasilla = JOptionPane.showInputDialog(this, \"Ingresar numero en la casilla \" + sudoku.darFilaActual() + \",\" +sudoku.darColumnaActual());\r\n\t\tif (numeroCasilla == null || numeroCasilla ==\"\")\r\n\t\t{}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\tint numeroCasillaInt = Integer.parseInt(numeroCasilla);\r\n\t\t\t\tif(numeroCasillaInt > sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona() || numeroCasillaInt < 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog( this, \"El numero ingresado no es valido. Debe ser un valor entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog( this, \"Debe ingresar un valor numerico entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void adicionaJogo(String nome, Usuario usuario) throws UsuarioException {\r\n\t\tif (preco < usuario.getDinheiro()) {\r\n\t\t\tvalorTotal += preco;\r\n\t\t\tusuario.compraJogo(jogo);\r\n\t\t\t\r\n\t\t}\r\n\t}", "private boolean isUmJogador(String nome) {\n for (int i = 0; i < listaJogadores.size(); i++) {\n Jogador jogador = listaJogadores.get(i);\n\n if (jogador.getNome().equals(nome)) {\n return true;\n }\n\n }\n\n return false;\n }", "@Test\r\n\tpublic void CT05CadastrarUsuarioComNomeNulo() {\r\n\t\t// cenario\r\n\t\tUsuario usuario = new Usuario();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comNomeNulo();\r\n\t\t\tfail(\"deveria lançar uma exceção\");\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"Nome invalido\", e.getMessage());\r\n\t\t}\r\n\t}", "private boolean verificaDados() {\n if (!txtNome.getText().equals(\"\") && !txtProprietario.getText().equals(\"\")) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"Falta campos a ser preenchido\", \"Informação\", 2);\n return false;\n }\n }", "private static void eleccionJugadores() throws ListaVaciaException{\n\t\tif(jugadores.sizeJugadores()>=2){//la lista de jugadores debe ser superior a 1 para poder añadirlos a la lista de participantes\n\t\t\tdo{\n\t\t\t\t\n\t\t\t\tSystem.out.println(jugadores.toString()+\"\\n\"+\"---MAS DE 1 JUGADOR---\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjugadorAJugar(Teclado.leerCadena(\"Nombre:\"));//nombre de los jugadores que jugaran en la partida\n\t\t\t\t\t} catch (NombreNoValidoException | JugadorYaExisteException | JugadorNoExisteException e) {\n\t\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t}while(DeseaContinuar.deseaContinuar(\"¿Otro Jugador?(s/n)\") || jugadores.sizeJugadores()<2);\n\t\t}else\n\t\t\tthrow new ListaVaciaException(\"La lista debe contener > 1 jugadores\");\n\t}", "public void comprobarEstado() {\n if (ganarJugadorUno = true) {\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (ganarJugadorDos = true) {\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tirar == 9 && !ganarJugadorUno && !ganarJugadorDos) {\n Toast.makeText(this, \"Empate\", Toast.LENGTH_SHORT).show();\n }\n }", "static void jugadorAJugar(String nombre) throws NombreNoValidoException, JugadorYaExisteException, JugadorNoExisteException{\n\t\tif(jugadores.contains(nombre)&&!participantes.contains(nombre))\n\t\t\tparticipantes.volcarJugadorALista(jugadores.get(jugadores.indexOf(nombre)));\n\t\telse if(!jugadores.contains(nombre))\n\t\t\tthrow new JugadorNoExisteException(\"Jugador no existe en la lista.\");\n\t\telse\n\t\t\tthrow new JugadorYaExisteException(\"Jugador ya existe.\");\n\t\t\t\n\t}", "public void ingresarCliente() {\n\tint cambio=0;\n\t\t\t\n\tsetNombre(JOptionPane.showInputDialog(\"Introduce el nombre\"));\n\tdo {\n\t\t\n\t\tsetDni(JOptionPane.showInputDialog(\"Introduce el DNI de \" + getNombre()+\".\"));\n\t\tif(getDni().length()<7||getDni().length()>7) {\n\t\t\tJOptionPane.showMessageDialog(null, \"El DNI debe contener 7 numeros!\");\n\t\t}else {\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}while(getDni().length()<7||getDni().length()>7);\n\t\n\t\n\tdo {\n\t\ttry {\n\t\t\tsetSalario(Double.parseDouble(JOptionPane.showInputDialog(\"Introduce el salario en � correspondiente a \" + getNombre()+\".\")));\n\t\t\tcambio=1;\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Ingrese unicamente numeros\");\n\t\t\tcambio=0;\n\t\t}\n\t} while (cambio==0);\n\t\n}", "public boolean potezLijevo() {\n\t\t//koordinate glave\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\t\n\t\tthis.smjer='a';\n\t\t\n\t\tif (j-1 >= 0) {\n\t\t\tif ((this.tabla[i][j-1] == '#')||(this.tabla[i][j-1] == 'o'))\n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[i][j-1] == '*') \n\t\t\t\tthis.pojedi(i, j-1);\n\t\t\telse \n\t\t\t\tthis.pomjeri(i, j-1);\n\t\t}\n\t\telse if (j-1 < 0 ) {\n\t\t\tif ((this.tabla[i][this.sirinaTable-1] == '#')||(this.tabla[i][this.sirinaTable-1] == 'o')) \n\t\t\t\treturn false;\n\t\t\telse if (this.tabla[i][this.sirinaTable-1] == '*') \n\t\t\t\tthis.pojedi(i, this.sirinaTable-1);\n\t\t\telse \n\t\t\t\tthis.pomjeri(i, this.sirinaTable-1);\n\t\t}\n\t\treturn true;\n\t}", "public void terminarAVez() {\n\n\n if (!this.jogadorTerminouAVez() && this.repete == false) {\n do {\n this.PrepareNextJogada();\n this.terminouVez = true;\n\n } while (this.listaJogadoresFalidos.contains(listaJogadores.get(vez).getNome()));\n\n }\n\n\n print(\"\\t AGora vez eh \" + this.vez);\n\n\n }", "private void codigoTxtKeyReleased(java.awt.event.KeyEvent evt) {\n try {\n if(Integer.parseInt(codigoTxt.getText()) > 0) {\n destinoRota(Integer.parseInt(codigoTxt.getText()));\n }\n }catch(Exception e) {\n \n }\n }", "public boolean isAluno() {\n\t\treturn aluno != null;\n\t}", "private boolean alteraDadosLoja() throws IOException {\n boolean r = false;\n System.out.println(\"Que dados pretende alterar?\");\n System.out.println(\"1 -> Nome\\n2 -> Localizacao\\n3 -> Informacao sobre os dados da fila\" +\n \"\\n4 -> Tempo medio de atendimento\\n5 -> Apagar a Conta\");\n int dados = Input.lerInt();\n switch (dados) {\n case 1:\n System.out.println(\"Para que nome deseja alterar?\");\n String nome = Input.lerString();\n this.controller.setNomeLoja(nome);\n this.controller.gravar();\n break;\n case 2:\n float lon = this.getLongitude();\n float lat = this.getLatitude();\n this.controller.setLocLoja(lat, lon);\n this.controller.gravar();\n break;\n case 3:\n System.out.println(\"Pretende fornecer dados sobre a fila? (true para sim, false para nao)\");\n boolean dadosFila = Input.lerBoolean();\n this.controller.setDFilaControl(dadosFila);\n this.controller.gravar();\n break;\n case 4:\n float tempA = 0;\n System.out.println(\"Qual é o novo tempo de atendimento medio?\");\n while(tempA <= 0) {\n tempA = Input.lerFloat();\n if( tempA <= 0) System.out.println(\"O tempo médio nao pode ser \" + tempA + \"\\nInsira um valor válido:\");\n }\n this.controller.setTempMedControl(tempA);\n this.controller.gravar();\n break;\n case 5:\n System.out.println(\"Tem a certeza que deseja apagar a conta? (true para sim, false para nao)\");\n r = Input.lerBoolean();\n if(r) {\n this.controller.removeConta();\n System.out.println(\"Conta apagada com sucesso!\");\n }\n this.controller.gravar();\n break;\n default:\n System.out.println(\"Opcao inválida!\");\n break;\n }\n if(!r) {\n System.out.println(\"Pretende alterar mais algum dado? (true caso sim, false caso não)\");\n boolean changeAgain = Input.lerBoolean();\n if (changeAgain) alteraDadosLoja();\n }\n return r;\n }", "private boolean completouVolta(int jogador, int valorDados) {\n\n if ((this.posicoes[jogador] + valorDados) >= 40 && this.posicoes[jogador] != 40) {\n this.listaJogadores.get(jogador).addDinheiro(200);\n this.print(\"\\tGanha $200 por passar pela casa 40.\");\n return true;\n }\n return false;\n\n }", "public boolean podeAtuar() {\n\t\treturn this.ambiente.podeAtuar();\n\t}", "public boolean efetuarCompra(int posicaoTabuleiro, Jogador jogador) throws Exception {\n if (this.posicaoCompravel(posicaoTabuleiro) && posicaoTabuleiro != 12 && posicaoTabuleiro != 28) {\n int preco = this.tabuleiro.getLugarPrecoCompra(posicaoTabuleiro);\n if (preco <= jogador.getDinheiro()) {\n this.print(\"\\tPossui dinheiro para a compra!\");\n jogador.retirarDinheiro(preco);\n this.Donos.put(posicaoTabuleiro, jogador.getNome());\n\n String nomeLugar = this.tabuleiro.getPlaceName(posicaoTabuleiro);\n jogador.addPropriedade(nomeLugar);\n if (nomeLugar.equals(\"Reading Railroad\") || nomeLugar.equals(\"Pennsylvania Railroad\") ||\n nomeLugar.equals(\"B & O Railroad\") || nomeLugar.equals(\"Short Line Railroad\")) {\n DonosFerrovias[jogadorAtual()]++;\n }\n return true;\n } else {\n this.print(\"\\tNão possui dinheiro para realizar a compra!\");\n return false;\n }\n\n }\n return false;\n\n }", "protected void botonAceptarPulsado() {\n\t\tString pass = this.vista.getClave();\n\t\tchar[] arrayC = campoClave.getPassword();\n\t\tString clave = new String(arrayC);\n\t\tclave = Vista.md5(clave);\n\t\t\n\t\tif (pass.equals(clave)) {\n\t\t\tarrayC = campoClaveNueva.getPassword();\n\t\t\tString pass1 = new String(arrayC);\n\t\t\t\n\t\t\tarrayC = campoClaveRepita.getPassword();\n\t\t\tString pass2 = new String(arrayC);\n\t\t\t\n\t\t\tif (pass1.equals(pass2)) {\n\t\t\t\tif (this.vista.cambiarClave(pass1)) {\n\t\t\t\t\tthis.vista.msg(this, \"Contraseña maestra cambiada con éxito\");\n\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.vista.error(this, \"Error al cambiar la contraseña maestra\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.vista.error(this, \"Las contraseñas no coinciden\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.vista.error(this, \"Contraseña incorrecta\");\n\t\t}\n\t}", "private void verificarCodigoErro() {\n\t\ttry {\n\t\t\tif (resultado.getStatus().isCodigoErro() && emailReplicacaoServico != null) {\n\t\t\t\tExecucaoReplicacaoUtil.log(\"Enviando e-mail de erro.\");\n\t\t\t\tenviarEmailErro();\n\t\t\t}\n\t\t} catch (BancoobException e) {\n\t\t\tExecucaoReplicacaoUtil.log(e.getMessage());\n\t\t}\n\t}", "private boolean validarDados(String dados) throws ParseException, SQLException {\n\t\ttry {\r\n\t\t\tString licencaFull = SystemManager.getProperty(\"licenca.sistema\");\r\n\t\t\tlicencaFull = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).decripto(licencaFull);\r\n\t\t\tif (licencaFull != null && licencaFull.equals(\"ENTERPRISE EDITION\")) {\r\n\t\t\t\twrite(\"ok\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tCalendar dataAtual = Calendar.getInstance();\r\n\t\t\r\n\t\t// Checa os dados\r\n\t\tString dataStr = dados.substring(0, 10);\r\n\t\tCalendar data = Calendar.getInstance(); \r\n\t\tdata.setTime(sdf.parse(dataStr));\r\n\t\t\r\n\t\t// Verifica se já está vencido...\r\n\t\tif (data.before(dataAtual)) {\r\n\t\t\t// o campo fieldname indica se podera ou nao fechar a janela\r\n\t\t\tint diasAtual = (dataAtual.get(Calendar.YEAR) * 365) + dataAtual.get(Calendar.DAY_OF_YEAR); \r\n\t\t\tint dias = (data.get(Calendar.YEAR) * 365) + data.get(Calendar.DAY_OF_YEAR);\r\n\t\t\tint diferenca = diasAtual - dias;\r\n\t\t\twriteErrorMessage(\"Sistema vencido à \" + diferenca + \" dias!\", diferenca>30?\"N\":\"S\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Verifica o CNPJ da loja\r\n\t\tString cnpj = dados.substring(11, 25);\r\n\t\tif (!cnpj.equals(lojasessao.getCNPJLoja())) {\r\n\t\t\twriteErrorMessage(\"Cnpj da licença difere do Cnpj desta loja!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tint quantidadeUsuariosLicenca = Integer.parseInt(dados.substring(26, 31));\r\n\t\t\r\n\t\t// Verifica numero de usuarios\r\n\t\tUsuarioDAO usuDao = new UsuarioDAO();\r\n\t\tList<UsuarioVO> list = usuDao.getList();\r\n\t\t\r\n\t\t// Verifica quantos estao ativos\r\n\t\tint quantidadeAtivos = 0;\r\n\t\tfor (UsuarioVO usuario : list) {\r\n\t\t\tif (usuario.isAtivo()) {\r\n\t\t\t\tquantidadeAtivos++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (quantidadeUsuariosLicenca < quantidadeAtivos) {\r\n\t\t\twriteErrorMessage(\"Licença inválida para a quantidade de usuários ativos no sistema!\", \"N\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Salva a data de hoje\r\n\t\tParametroLojaVO parmData = new ParametroLojaVO();\r\n\t\tparmData.setChaveParametro(Constants.Parameters.Licenca.DATA_SISTEMA);\r\n\t\tparmData.setCodigoEmpresa(empresasessao.getCodigoEmpresa());\r\n\t\tparmData.setCodigoLoja(lojasessao.getCodigoLoja());\r\n\t\t\r\n\t\tParametroLojaDAO dao = new ParametroLojaDAO();\r\n\t\tparmData = dao .get(parmData);\r\n\t\t\r\n\t\tif (parmData == null) {\r\n\t\t\tparmData = new ParametroLojaVO();\r\n\t\t\tparmData.setChaveParametro(Constants.Parameters.Licenca.DATA_SISTEMA);\r\n\t\t\tparmData.setCodigoEmpresa(empresasessao.getCodigoEmpresa());\r\n\t\t\tparmData.setCodigoLoja(lojasessao.getCodigoLoja());\r\n\t\t\tparmData.setNewRecord(true);\r\n\t\t}\r\n\t\t\r\n\t\tString dataHojeStr = sdf.format(Utils.getToday());\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdataHojeStr = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).cripto(dataHojeStr);\r\n\t\t} catch (Exception e) { }\r\n\t\t\r\n\t\tparmData.setValorParametro(dataHojeStr);\r\n\t\tdao.persist(parmData);\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private void enviarRequisicaoPerguntarNome() {\n try {\n String nome = NomeDialogo.nomeDialogo(null, \"Informe o nome do jogador\", \"Digite o nome do jogador:\", true);\n if (servidor.verificarNomeJogador(nome)) {\n nomeJogador = nome;\n comunicacaoServico.criandoNome(this, nome, \"text\");\n servidor.adicionarJogador(nome);\n servidor.atualizarLugares();\n } else {\n JanelaAlerta.janelaAlerta(null, \"Este nome já existe/inválido!\", null);\n enviarRequisicaoPerguntarNome();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void ingresaAdministrativo() {\n\tEstableceDatosAdministrativos();\n\tint cambio=0;\n\tdo {\n\t\t\n\t\ttry {\n\t\t\tsetMontoCredito(Double.parseDouble(JOptionPane.showInputDialog(\"Ingrese el monto del credito (�3 600 000 maximo)\")));\n\t\t\tcambio=1;\n\t\t\tif(getMontoCredito()<0||getMontoCredito()>3600000) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"El monto debe ir de �0 a �3600000\");\n\t\t\t}\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Ingrese solo numeros\");\n\t\t}\n\t}while(getMontoCredito()<0||getMontoCredito()>3600000||cambio==0);\n\tsetInteres(12);\n\tsetPlazo(60);\n\tsetCuotaPagar(calculoCuotaEspecialOrdinario());\n\testableceEquipoComputo();\n}", "public void activarEscudo() {\n\t\tif(escudo) {\n\t\t\twidth = 40;\n\t\t\theight = 40;\n\t\t\tescudo = false;\n\t\t\tsetGrafico(0);\n\t\t}\n\t\telse {\n\t\t\tescudo = true;\n\t\t\twidth = 50;\n\t\t\theight = 50;\n\t\t\tsetGrafico(1);\n\t\t}\n\t}", "public boolean estaVacia() {\n if (pieza == null)\n return true;\n else\n return false;\n }", "public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }", "private boolean temNoScript() {\r\n\t\tif (!procurouNoScript) {\r\n\t\t\ttemnoscript = regras.verificaNoscript(codHTML);\r\n\t\t\tprocurouNoScript = true;\r\n\t\t}\r\n\t\treturn temnoscript;\r\n\t}", "private void jBGuardarActionPerformed(java.awt.event.ActionEvent evt) {\n if(tNombre.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar el Nombre\");\n return;\n }\n if(tDireccion.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar la Direccion\");\n return;\n }\n if(tTelefono.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar el Telefono\");\n return;\n }\n if(tCedula.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar la Cedula\");\n return;\n }\n else if(!CedulaIsValid(tCedula.getText()))\n {\n JOptionPane.showMessageDialog(this, \"Favor ingresar una Cedula Valida\");\n return;\n }\n if(validarIntegerTexto(jFSueldo) <= 0){\n JOptionPane.showMessageDialog(this, \"Favor ingresar un sueldo mayor que cero\");\n return;\n \n }\n \n setEmpleado();\n if(dbe.setInsertarEmpleado(e) > 0)\n JOptionPane.showMessageDialog(this, \"El Empleado ha sido Insrtado Correctamente\");;\n \n return;\n }", "private boolean verificarCliente(int cedulaCliente) {\n for (int i = 0; i < posicionActual; i++) { //Recorre hasta la posicon actual en la que se estan agregando datos, osea en la ultima en que se registro.\n if (getCedulaCliente(i) == cedulaCliente) { //Pregunta si la cedula pasada por parametro exite en la posicon que va recorriendo el for actualmente\n return true; //Si la condicion se da, retorna verdadero para informar que si el cliente si se encuentra\n }\n }\n return false; //si al final no encontro ninguna coincidencia retorna falso para avisar que el cliente no se encuentra registrado\n }", "@Test\n\tpublic void testDarMotivoIngreso()\n\t{\n\t\tassertEquals(\"El motivo de ingreso esperado es: Accidente\", Motivo.ACCIDENTE, paciente.darMotivoIngreso());\n\t}", "public void afectarEnemigoArmado(EnemigoArmado e) {\n\t\te.daņar(daņo);\n\t\tif (e.getVida() <= 0) {\n\t\t\te.eliminar();\n\t\t}\n\t}", "private void btnAgregarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {\n String v_nombre=\" \";\n\n if(txtNombreAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Digite un nombre, por favor\", \"Informacion\");\n return;\n }\n v_nombre=txtNombreAU.getText(); \n //Valido la contrasenia\n if(txtContraseniaAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar una contraseña\", \"Informacion\");\n return;\n }\n if(!validarContraseniaUsuario(txtContraseniaAU.getText())){\n return;\n }\n String v_contrasenia=txtContraseniaAU.getText();\n //Valido nombre completo\n if(txtNombreCompletoAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar el nombre completo\", \"Informacion\");\n return;\n }\n String v_nombreCompleto=txtNombreCompletoAU.getText();\n \n //Valido que se escogio un valor para el cargo\n int v_cargo=0;\n //10 = Administrador, 20=Funcionario\n if(rbtnAdministradorAU.isSelected()){\n v_cargo=10;\n }else if(rbtnFuncionarioAU.isSelected()){\n v_cargo=20;\n }else{\n Utilidades.mensajeInformacion(\"Escoga un cargo\", \"Informacion\");\n return;\n }\n \n //Creo y agreggo un usuario dependiendo del cargo escogido (Administrador o funcionario)\n try{\n boolean agregado=false;\n if(v_cargo==10){\n Administrador nuevoUsuario=new Administrador(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n\n } \n if(v_cargo==20){\n Funcionario nuevoUsuario=new Funcionario(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n }\n\n\n if(agregado){\n Utilidades.mensajeExito(\"Se agrego el Usuario\", \"Agregacion Exitosa\");\n limpiarCamposAgregarUsuario();\n }else{\n Utilidades.mensajeError(\"El Usuario a agregar ya existe\", \"Error\");\n }\n\n }catch (IOException ex) {\n Logger.getLogger(Funcionario.class.getName()).log(Level.SEVERE, null, ex);\n Utilidades.mensajeAdvertencia(\"Se ha interrumpido la conexion con el servidor\", \"Error\");\n }\n \n }", "public Boolean rechazarRegistro(Usuario u,String motivo) {\r\n\t\tif(!this.modoAdmin) return false;\r\n\t\tu.rechazar(motivo);\r\n\t\tthis.proponentes.remove(u);\r\n\t\treturn true;\r\n\t}", "public void usar(Jugador jugador){\n System.out.println(\"\\n\" + jugador.masHambreIVitales(this.calorias) + \"\\n\");\n }", "public static boolean jogarNovamente(Scanner sc) {\n String resposta;\n do {\n System.out.print(\"\\nDeseja jogar novamente [S/N]? \");\n resposta = sc.nextLine();\n if (!resposta.equalsIgnoreCase(\"S\") && !resposta.equalsIgnoreCase(\"N\"))\n System.out.println(\"Resposta inválida.\");\n } while (!resposta.equalsIgnoreCase(\"S\") && !resposta.equalsIgnoreCase(\"N\"));\n\n return resposta.equalsIgnoreCase(\"S\") ? true : false;\n }", "@Override\n\tpublic boolean podeReceber(Fornecivel e) {\n\t\treturn (e instanceof Agua || e instanceof Cereal) ? true : false;\n\t}" ]
[ "0.6501115", "0.63741875", "0.6331827", "0.6281507", "0.6219811", "0.6146513", "0.61337525", "0.61100554", "0.6083202", "0.60808516", "0.6062354", "0.6037022", "0.60285217", "0.6015617", "0.601048", "0.59984934", "0.5998206", "0.5993579", "0.5965854", "0.596583", "0.5959602", "0.59527016", "0.5941455", "0.59048116", "0.5896488", "0.58864284", "0.58555204", "0.584239", "0.58405054", "0.5837849", "0.5815534", "0.5812416", "0.5806879", "0.58048886", "0.5797977", "0.5788467", "0.57871014", "0.5787014", "0.57820904", "0.57813156", "0.57794625", "0.57782066", "0.5772845", "0.5771968", "0.5752548", "0.5746013", "0.57189226", "0.57118183", "0.5710448", "0.571041", "0.5702496", "0.5701129", "0.5699181", "0.56938076", "0.5684588", "0.5684233", "0.56663543", "0.5665663", "0.566266", "0.5659896", "0.56554145", "0.56546617", "0.5653755", "0.5653108", "0.56500804", "0.5634676", "0.5623107", "0.56195235", "0.56189346", "0.56165147", "0.56165045", "0.5614437", "0.5608507", "0.56081074", "0.560675", "0.5599533", "0.5598757", "0.5596906", "0.55948746", "0.5589378", "0.5587828", "0.5585887", "0.55791783", "0.557399", "0.5573912", "0.55726147", "0.55724555", "0.5571631", "0.55711365", "0.5570429", "0.5568179", "0.55661947", "0.55640346", "0.55620325", "0.5560088", "0.55595964", "0.5555756", "0.5553302", "0.5544092", "0.55400974" ]
0.6021776
13
Solo me muevo si me lo indica un ser vivo, no una maquina.
public void mover() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "public boolean verificaTrasicaoVazia(){\n\n //verifica se dentro das transicoes tem alguma saindo com valor vazio;\n for (int i = 0; i < this.transicoes.size(); i++) {\n if(this.transicoes.get(i).simbolo.equals(Automato_Servico.valorVazio)){\n return true;\n }\n }\n return false;\n }", "public void vivir(){\r\n\t\r\n\tAtacable algo42tmp;\r\n\t\r\n\tif (!(this.muerto)){\r\n\t\tfor(int i = 0; i <= this.velY; i++){\r\n\t\t\tthis.mover();\r\n\t\t}\r\n\t\t\r\n\t\talgo42tmp = zonaDeCombate.comprobarColisionAlgo42(this);\r\n\t\tif (algo42tmp != null){\r\n\t\t\talgo42tmp.recibirDanio(20); /**hacer q se muera*/\r\n\t\t\tthis.muerto = true;\r\n\t\t}\r\n\t\t\r\n\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean estaVivo() {\n\t\treturn estadoVida;\t\t\n\t}", "private void verificarMuerte() {\n if(vidas==0){\n if(estadoJuego==EstadoJuego.JUGANDO){\n estadoJuego=EstadoJuego.PIERDE;\n //Crear escena Pausa\n if(escenaMuerte==null){\n escenaMuerte=new EscenaMuerte(vistaHUD,batch);\n }\n Gdx.input.setInputProcessor(escenaMuerte);\n efectoGameOver.play();\n if(music){\n musicaFondo.pause();\n }\n }\n guardarPuntos();\n }\n }", "private void iniciarNovaVez() {\n this.terminouVez = false;\n }", "public boolean Vacia (){\n return cima==-1;\n \n }", "public void inativarMovimentacoes() {\n\n\t\ttry {\n\n\t\t\tif (((auxMovimentacao.getDataMovimentacao())\n\t\t\t\t\t.before(permitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao()))\n\t\t\t\t\t|| (auxMovimentacao.getDataMovimentacao()).equals(\n\t\t\t\t\t\t\tpermitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao())\n\t\t\t\t\t) {\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.MOVIMENTACOES_ANTERIORES);\n\t\t\t} else {\n\n\t\t\t\tDate dataFinal = auxMovimentacao.getDataMovimentacao();\n\t\t\t\tCalendar calendarData = Calendar.getInstance();\n\t\t\t\tcalendarData.setTime(dataFinal);\n\t\t\t\tcalendarData.add(Calendar.DATE, -1);\n\t\t\t\tDate dataInicial = calendarData.getTime();\n\n\t\t\t\tMovimentacao mov = new Movimentacao();\n\t\t\t\tmov = (Movimentacao) movimentacaoAlunoDAO.listarTodos(Movimentacao.class,\n\t\t\t\t\t\t\" a.dataMovimentacao = (select max(b.dataMovimentacao) \"\n\t\t\t\t\t\t\t\t+ \" from Movimentacao b where b.alunoTurma = a.alunoTurma) \"\n\t\t\t\t\t\t\t\t+ \" and a.status is true and a.alunoTurma.status = true and dataMovimentacaoFim = null and a.alunoTurma = \"\n\t\t\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId())\n\t\t\t\t\t\t.get(0);\n\n\t\t\t\tmov.setControle(false);\n\t\t\t\tmov.setDataMovimentacaoFim(dataInicial);\n\t\t\t\tmovimentacaoService.inserirAlterar(mov);\n\n\t\t\t\tAlunoTurma aluno = new AlunoTurma();\n\t\t\t\taluno = daoAlunoTurma.buscarPorId(AlunoTurma.class, movimentacao.getAlunoTurma().getId());\n\t\t\t\taluno.setControle(0);\n\t\t\t\t\n\n\t\t\t\tauxMovimentacao.setAlunoTurma(movimentacao.getAlunoTurma());\n\t\t\t\tauxMovimentacao.setStatus(true);\n\t\t\t\tauxMovimentacao.setControle(false);\n\n\t\t\t\tmovimentacaoService.inserirAlterar(auxMovimentacao);\n\t\t\t\t\n\t\t\t\tif(auxMovimentacao.getSituacao()==5){\n//\t\t\t\t\t\n//\t\t\t\t\tCurso cursoAluno = new Curso();\n//\t\t\t\t\tcursoAluno = daoCurso.buscarPorId(Curso.class, auxMovimentacao.getAlunoTurma().getTurma().getCurso().getId());\n\t\t\t\t\t\n\t\t\t\t\taluno.setSituacao(5);\n\t\t\t\t\taluno.setLiberado(false);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t\t\n\t\t\t\t\t//liberar para responder o questionário\n\t\t\t\t\tAluno alunoResponde = new Aluno(); \n\t\t\t\t\talunoResponde = daoAluno.buscarPorId(Aluno.class, aluno.getAluno().getId());\n\t\t\t\t\t \n\t\t\t\t // email.setCursos(auxMovimentacao.getAlunoTurma().getTurma().getCurso());\n\t\t\t\t\t//email.setTurma(auxMovimentacao.getAlunoTurma().getTurma());\n\t\t\t\t\temail.setEnviado(false);\n\t\t\t\t\temail.setStatus(true);\n\t\t\t\t\temail.setAlunoTurma(auxMovimentacao.getAlunoTurma());\n\t\t\t\t\t\n\t\t\t\t\t//email.setAluno(alunoResponde);\n\t\t\t\t\temailService.inserirAlterar(email);\n\t\t\t\t\t//enviar o email para responder \n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\taluno.setSituacao(0);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t}\n\t\t\t\taluno = new AlunoTurma();\n\t\t\t\temail = new Email();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFecharDialog.fecharDialogAlunoCursoEditar();\n\t\t\t\tFecharDialog.fecharDialogAlunoEditarCurso();\n\t\t\t\tFecharDialog.fecharDialogAlunoTrancamento();\n\t\t\t\talterar(movimentacao);\n\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\t\t\tauxMovimentacao = new Movimentacao();\n\n\t\t\t\talunoTurmaService.update(\" AlunoTurma set permiteCadastroCertificado = 2 where id = \"\n\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId());\n\n\t\t\t\n\t\t\t\tcriarNovoObjetoAluno();\n\t\t\t\tatualizarListas();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tExibirMensagem.exibirMensagem(Mensagem.ERRO);\n\t\t}\n\n\t}", "public boolean PilaVacia()\n {\n if(tope == 0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public boolean vacio() {\r\n return (tamaño == 0);\r\n }", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public void comprobarMov() {\r\n for (int i = 1; i < movimientos.length; i++) {\r\n if (movimientos[i]) {\r\n movimientos[i] = sePuedeMover(i);\r\n }\r\n }\r\n }", "public boolean PilaVacia() {\r\n return UltimoValorIngresado == null;\r\n }", "public boolean esVacia(){\r\n return inicio == null;\r\n }", "public void ativa()\n\t{\n\t\tativado = true;\n\t}", "public boolean vacio(){\n\t\treturn esVacio;\n\t}", "public void decida(){\n int vecinasVivas=vecinos();\n if(vecinasVivas==3 && estadoActual=='m'){\n estadoSiguiente='v';\n }else if((estadoActual=='v' && vecinasVivas==2) || (estadoActual=='v' && vecinasVivas==3)){\n estadoSiguiente='v';\n }else if(vecinasVivas<2 || vecinasVivas>3){\n estadoSiguiente='m';\n }\n }", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "public boolean sePuedeMover(int ficha) {\r\n boolean ret = false;\r\n int sentido = 1;\r\n if (isTurnoRojo()) {\r\n sentido = -1;\r\n }\r\n int[] aux = encontrarPosicion(ficha);\r\n int fila = aux[0];\r\n int columna = aux[1];\r\n\r\n if (movimientos[ficha] && (tablero[fila + sentido][columna].getTipo().equals(\"Vacio\") || tablero[fila + sentido][columna - 1].getTipo().equals(\"Vacio\") || tablero[fila + sentido][columna + 1].getTipo().equals(\"Vacio\"))) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n\r\n }", "@Override\n\tpublic void morir() {\n\t\tthis.estadoVida = false;\n\t}", "public void comprobarEstado() {\n if (ganarJugadorUno = true) {\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (ganarJugadorDos = true) {\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tirar == 9 && !ganarJugadorUno && !ganarJugadorDos) {\n Toast.makeText(this, \"Empate\", Toast.LENGTH_SHORT).show();\n }\n }", "public boolean estaVacia() {\n if (pieza == null)\n return true;\n else\n return false;\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public void pierdeUnaVida() {\n numeroDeVidas--;\n }", "public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}", "public void SiguienteCancion(View view){\n //Verificamos si nuestro indice esta en la posicion 0\n if(posicion < vector_mp.length -1){//-1 evita el desbordamiento de memoria\n // Si nuestro indice es menor al ancho de nuestro vector, permite que nuestro indice siga recorriendo el vector\n //Verifica que nuestro vector en tal posicion este reprodcuiendo una cancion\n if(vector_mp[posicion].isPlaying()){\n //Detiene la pista que se esta reproduciendo para poder reproducir la siguiente\n vector_mp[posicion].stop();\n //Ayudamos a nuestro indice a recorrer el vector\n posicion++;\n //La siguiente posicion/cancion debe empezar a reproducirse\n vector_mp[posicion].start();\n\n //cambio de portada\n if(posicion == 0){\n iv.setImageResource(R.drawable.portada1);;\n } else if(posicion == 1){\n iv.setImageResource(R.drawable.portada2);\n } else if(posicion == 2){\n iv.setImageResource(R.drawable.portada3);\n }\n\n } else {\n //Solo incrementa la posicion ya que al no estar reproduciendo no tiene caso detener\n posicion++;\n\n //cambio de portada\n if(posicion == 0){\n iv.setImageResource(R.drawable.portada1);;\n } else if(posicion == 1){\n iv.setImageResource(R.drawable.portada2);\n } else if(posicion == 2){\n iv.setImageResource(R.drawable.portada3);\n }\n\n }\n\n } else{\n //Si nuestro inidice posicion ya recorrio el vector indicara que no hay mas canciones y asi evitar un desbordamiento de memoria\n Toast.makeText(this, \"No hay mas canciones\", Toast.LENGTH_SHORT).show();\n }\n }", "public boolean estaVacia(){\n return inicio == null;\n }", "public boolean estaVacia() {\n return (top == -1); // regresa verdadero si la cima es igual a -1 \r\n }", "public boolean estaSola(){\n ArrayList<Elemento> adjointPositions = getPosicionesAdyacentes();\n \n for(Elemento e: adjointPositions){\n if(e.isVivo()){\n return false;\n }\n }\n \n return true;\n }", "public void controllore() {\n if (puntiVita > maxPunti) puntiVita = maxPunti;\n if (puntiFame > maxPunti) puntiFame = maxPunti;\n if (puntiFelicita > maxPunti) puntiFelicita = maxPunti;\n if (soldiTam < 1) {\n System.out.println(\"Hai finito i soldi\");\n System.exit(3);\n }\n //controlla che la creatura non sia morta, se lo è mette sonoVivo a false\n if (puntiVita <= minPunti && puntiFame <= minPunti && puntiFelicita <= minPunti) sonoVivo = false;\n }", "public boolean esPositivo() {\n\t\treturn !esNegativo();\n\t}", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public boolean estaVacia(){\n if(inicio==null){\n return true;\n }else{\n return false;\n }\n }", "public void asignarVida();", "public void somaVezes(){\n qtVezes++;\n }", "public boolean estVacia(){\n return inicio==null;\n }", "public void verEstadoAmarres() {\n System.out.println(\"****************************************************\");\n for(int posicion = 0; posicion<NUMERO_AMARRES; posicion++) {\n int i = 0;\n boolean posicionEncontrada = false;\n while(!posicionEncontrada && i<alquileres.size()) {\n if(alquileres.get(i)!=null) {\n if(alquileres.get(i).getPosicion()==posicion) {\n System.out.println(\"Amarre [\"+posicion+\"] está ocupado\");\n System.out.println(\"Precio: \" + alquileres.get(i).getCosteAlquiler());\n posicionEncontrada = true;\n }\n }\n i++;\n }\n if(!posicionEncontrada) {\n System.out.println(\"Amarre [\"+posicion+\"] No está ocupado\");\n }\n }\n System.out.println(\"****************************************************\");\n }", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "public boolean vacio() {\n return inicio == null;\n }", "@Override\n public boolean esArbolVacio() {\n return NodoBinario.esNodoVacio(raiz);\n }", "private void quitarCorazones(){\n if(ramiro.estadoItem== Ramiro.EstadoItem.NORMAL){\n efectoDamage.play();\n vidas--;\n }\n }", "public void backTrack (){\n LinkedList<Integer> v = new LinkedList<> (); //Lista de vecinos.\n boolean mover = false;\n int r = 0;\n while (!mover && v.size () < 4){\n r = rnd.nextInt (4);\n\t\t//Hay un vecino disponible.\n\t\t//Nos podemos mover.\n if (vecinoDisponible (r))\n\t\t mover = true;\n if (!v.contains (r))\n v.add (r);\n\t }\n\t if (mover){\n\t\t//Nos movemos a la siguiente dirección.\n\t\ttumbaMuros (r);\n\t\tmoverLaberinto (r);\n\t }else if (!p.empty ()){\n\t\t//Nos movemos a la celda previa\n\t\t//pues no hay vecnos a los que movernos\n\t\tCelda a = p.pop ();\n\t\tt.posY = a.celdaY;\n\t\tt.posX = a.celdaX; \n\t }\n \n terminado = p.isEmpty();\n\t}", "public void atrapar() {\n if( una == false) {\n\t\tif ((app.mouseX > 377 && app.mouseX < 591) && (app.mouseY > 336 && app.mouseY < 382)) {\n\t\t\tint aleotoridad = (int) app.random(0, 4);\n\n\t\t\tif (aleotoridad == 3) {\n\n\t\t\t\tSystem.out.print(\"Lo atrapaste\");\n\t\t\t\tcambioEnemigo = 3;\n\t\t\t\tsuerte = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\t\t\tif (aleotoridad == 1 || aleotoridad == 2 || aleotoridad == 0) {\n\n\t\t\t\tSystem.out.print(\"Mala Suerte\");\n\t\t\t\tcambioEnemigo = 4;\n\t\t\t\tmal = true;\n\t\t\t\tuna = true;\n\t\t\t}\n\n\t\t}\n }\n\t}", "private boolean jogadorTerminouAVez() {\n return this.terminouVez;\n }", "public boolean getEstaVivo() {\r\n\t\treturn EstaVivo;\r\n\t}", "@Override\n public boolean esVacio(){\n return(super.esVacio());\n }", "public static void proveraServisa() {\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje racunate vreme sledeceg servisa:\");\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(redniBroj).isVozObrisano()) {\n\t\t\t\tUtillMethod.proveraServisaVozila(Main.getVozilaAll().get(redniBroj));\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Ovo vozilo je obrisano i ne moze da se koristi!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t}\n\t}", "public void pausarDisparos() {\n\t\tpausarDisparo = !pausarDisparo;\n\t}", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "private void volverValoresADefault( )\n {\n if( sensorManag != null )\n sensorManag.unregisterListener(sensorListener);\n gameOn=false;\n getWindow().getDecorView().setBackgroundColor(Color.WHITE);\n pantallaEstabaTapada=false;\n ((TextView)findViewById(R.id.txtPredSeg)).setText(\"\");\n segundosTranscurridos=0;\n }", "private void moverJogadorDaVez(int dado1, int dado2) throws Exception {\n // System.out.println(\"moverJogadorDaVez\" + dado1 + \" , \" + dado2);\n\n print(\"\\ttirou nos dados: \" + dado1 + \" , \" + dado2);\n int valorDados = dado1 + dado2;\n\n int jogador = this.jogadorAtual();\n\n boolean ValoresIguais = false;\n\n\n //preciso saber se o jogador vai passar pela posição 40, o que significa\n //ganhar dinheiro\n this.completouVolta(jogador, valorDados);\n\n if (dado1 == dado2) {\n ValoresIguais = true;\n } else {\n ValoresIguais = false;\n }\n\n //movendo à posição\n this.moverJogadorAPosicao(jogador, valorDados, ValoresIguais);\n this.print(\"\\tAtual dinheiro antes de ver a compra:\" + this.listaJogadores.get(jogador).getDinheiro());\n this.print(\"\\tVai até a posição \" + this.posicoes[jogador]);\n\n //vendo se caiu na prisao\n if (this.posicoes[this.jogadorAtual()] == 30 && this.prisao == true) {\n adicionaNaPrisao(listaJogadores.get(jogadorAtual()));\n DeslocarJogador(jogador, 10);\n listaJogadores.get(jogadorAtual()).adicionarComandoPay();\n }\n\n\n\n Lugar lugar = this.tabuleiro.get(this.posicoes[jogador] - 1);//busca em -1, pois eh um vetor\n\n\n if (this.isCompraAutomatica()) {\n this.realizarCompra(jogador, lugar);\n }\n\n if (!this.posicaoCompravel(this.posicoes[jogador])) {\n this.print(\"\\t\" + lugar.getNome() + \" não está à venda!\");\n\n\n String nomeDono = (String) Donos.get(this.posicoes[jogador]);\n //não cobrar aluguel de si mesmo\n if (!nomeDono.equals(this.listaJogadores.get(this.jogadorAtual()).getNome())) {\n\n if (this.isUmJogador(nomeDono)) {\n Jogador possivelDono = this.getJogadorByName(nomeDono);\n\n if (this.isPosicaoFerrovia(this.posicoes[jogador])) {\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n if (!lugar.estaHipotecada()) {\n this.pagarFerrovia(possivelDono.getId(), jogador, 25, lugar.getNome());\n }\n } else {\n\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n int valorAluguel = 0;\n if (this.posicoes[this.jogadorAtual()] != 12 && this.posicoes[this.jogadorAtual()] != 28) {\n valorAluguel = this.tabuleiro.getLugarPrecoAluguel(this.posicoes[jogador]);\n\n } else {\n if (possivelDono.getQuantidadeCompanhias() == 1) {\n valorAluguel = 4 * valorDados;\n\n }\n if (possivelDono.getQuantidadeCompanhias() == 2) {\n valorAluguel = 10 * valorDados;\n\n }\n }\n if (!lugar.estaHipotecada()) {\n this.pagarAluguel(possivelDono.getId(), jogador, valorAluguel, lugar.getNome());\n }\n\n }\n\n }\n }\n\n }\n\n\n this.pagarEventuaisTaxas(jogador);\n\n if ((this.posicoes[this.jogadorAtual()] == 2 || this.posicoes[jogadorAtual()] == 17 || this.posicoes[jogadorAtual()] == 33) && cards == true) {\n realizaProcessamentoCartaoChest();\n }\n\n if ((this.posicoes[this.jogadorAtual()] == 7 || this.posicoes[jogadorAtual()] == 22 || this.posicoes[jogadorAtual()] == 36) && cards == true) {\n realizaProcessamentoCartaoChance();\n }\n\n\n\n\n this.print(\"\\tAtual dinheiro depois:\" + this.listaJogadores.get(jogador).getDinheiro());\n\n\n\n }", "public void cambiarEstado(){\n\r\n revelado=true;\r\n }", "public boolean foiChecado(Vertice v){\n int i = v.label;\n return vertices[i];\n }", "public void contartiempo() {\r\n\r\n\t\tif (activarContador) {\r\n\t\t//\tSystem.out.println(\"CONTADOR \" + activarContador);\r\n\t\t\tif (app.frameCount % 60 == 0) {\r\n\t\t\t\tcontador--;\r\n\t\t\t//\tSystem.out.println(\"EMPEZO CONTADOR\");\r\n\t\t\t//\tSystem.out.println(\"CONTADOR \" + contador);\r\n\t\t\t\tif (contador == 0) {\r\n\t\t\t\t\tcontador = 0;\r\n\t\t\t\t\tactivado = false;\r\n\t\t\t\t\tactivarContador = false;\r\n\t\t\t\t//\tSystem.out.println(\"CONTADOR \" + activarContador);\r\n\t\t\t\t//\tSystem.out.println(\"EFECTO \" + activado);\r\n\t\t\t\t\tplayer.setBoost(0);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public void VaciarPila()\n {\n this.tope = 0;\n }", "private static boolean juega() {\r\n\t\tv.setMensaje( \"Empieza el nivel \" + nivel + \". Puntuación = \" + puntuacion + \r\n\t\t\t\". Dejar menos de \" + (tamanyoTablero-2) + \" pelotas de cada color. \" + (tamanyoTablero-1) + \" o más seguidas se quitan.\" );\r\n\t\t// v.setDibujadoInmediato( false ); // Notar la mejoría de \"vibración\" si se hace esto y (2)\r\n\t\twhile (!v.estaCerrada() && !juegoAcabado()) {\r\n\t\t\tPoint puls = v.getRatonPulsado();\r\n\t\t\tif (puls!=null) {\r\n\t\t\t\t// Pelota pelotaPulsada = hayPelotaPulsadaEn( puls, tablero ); // Sustituido por el objeto:\r\n\t\t\t\tPelota pelotaPulsada = tablero.hayPelotaPulsadaEn( puls );\r\n\t\t\t\tif (pelotaPulsada!=null) {\r\n\t\t\t\t\tdouble coordInicialX = pelotaPulsada.getX();\r\n\t\t\t\t\tdouble coordInicialY = pelotaPulsada.getY();\r\n\t\t\t\t\tv.espera(20); // Espera un poquito (si no pasa todo demasiado rápido)\r\n\t\t\t\t\t// Hacer movimiento hasta que se suelte el ratón\r\n\t\t\t\t\tPoint drag = v.getRatonPulsado();\r\n\t\t\t\t\twhile (drag!=null && drag.x>0 && drag.y>0 && drag.x<v.getAnchura() && drag.y<v.getAltura()) { // EN CORTOCIRCUITO - no se sale de los bordes\r\n\t\t\t\t\t\tpelotaPulsada.borra( v );\r\n\t\t\t\t\t\tpelotaPulsada.incXY( drag.x - puls.x, drag.y - puls.y );\r\n\t\t\t\t\t\tpelotaPulsada.dibuja( v );\r\n\t\t\t\t\t\trepintarTodas(); // Notar la diferencia si no se hace esto (se van borrando las pelotas al pintar otras que pasan por encima)\r\n\t\t\t\t\t\t// v.repaint(); // (2)\r\n\t\t\t\t\t\tpuls = drag;\r\n\t\t\t\t\t\tdrag = v.getRatonPulsado();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Recolocar pelota en un sitio válido\r\n\t\t\t\t\trecolocar( pelotaPulsada, coordInicialX, coordInicialY );\r\n\t\t\t\t\tquitaPelotasSiLineas( true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tpuntuacion -= (numMovimientos*PUNTOS_POR_MOVIMIENTO); // Se penaliza por el número de movimientos\r\n\t\tif (v.estaCerrada()) return false; // Se acaba el juego cerrando la ventana\r\n\t\tif (nivelPasado()) return true; // Se ha pasado el nivel\r\n\t\treturn false; // No se ha pasado el nivel\r\n\t}", "public void confirmar(){\r\n if((gato[0][0]==gato[0][1])&&(gato[0][0]==gato[0][2])&&(gato[0][0]!=' ')){\r\n //si encuentra alguna victoria la variable ganador agarra el simbolo del ganador 'o' o 'x'\r\n //para confirmar quien gano\r\n ganador=gato[0][0];\r\n //es lo que tomara tirar para salir del while si hay una victoria\r\n victoria=1; \r\n \r\n }\r\n\r\n if((gato[1][0]==gato[1][1])&&(gato[1][0]==gato[1][2])&&(gato[1][0]!=' ')){\r\n ganador=gato[1][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[2][0]==gato[2][1])&&(gato[2][0]==gato[2][2])&&(gato[2][0]!=' ')){\r\n ganador=gato[2][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][0]==gato[1][0])&&(gato[0][0]==gato[2][0])&&(gato[0][0]!=' ')){\r\n ganador=gato[0][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][1]==gato[1][1])&&(gato[0][1]==gato[2][1])&&(gato[0][1]!=' ')){\r\n ganador=gato[0][1];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][2]==gato[1][2])&&(gato[0][2]==gato[2][2])&&(gato[0][2]!=' ')){\r\n ganador=gato[0][2];\r\n victoria=1;\r\n }\r\n\r\n if((gato[0][0]==gato[1][1])&&(gato[0][0]==gato[2][2])&&(gato[0][0]!=' ')){\r\n ganador=gato[0][0];\r\n victoria=1;\r\n }\r\n\r\n if((gato[2][0]==gato[1][1])&&(gato[2][0]==gato[0][2])&&(gato[2][0]!=' ')){\r\n ganador=gato[2][0];\r\n victoria=1;\r\n }\r\n }", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "public synchronized void mudarEstadoPistaDisponivel() {\n temPistaDisponivel = !temPistaDisponivel;\n System.out.println(nomeAeroporto + \" tem pista disponível: \" + \n (temPistaDisponivel == true ? \"Sim\" : \"Não\"));\n // Notifica a mudanca de estado para quem estiver esperando.\n if(temPistaDisponivel) this.notify();\n }", "public boolean verRevelado(){\n\r\n return revelado;\r\n }", "private void asignarVelocidad(Ball b, int[] contadores){\r\n\t\tif(this.x <= b.x && this.y <= b.y){\r\n\t\t\txa = -mov;\r\n\t\t\tya = -mov;\r\n\t\t\tcontadores[0]++;\r\n\t\t\tif(contadores[0] > 2)\r\n\t\t\t\tdo{\r\n\t\t\t\t\txa = (0.5 > Math.random()) ? mov : -mov;\r\n\t\t\t\t\tya = (0.5 > Math.random()) ? mov : -mov;\r\n\t\t\t\t}while(xa == mov && ya == mov);\t// No puede ser lo contrario de arriba\r\n\t\t\tcontadores[1] = contadores[2] = contadores[3] = 0;\r\n\t\t}\r\n\t\telse if(this.x <= b.x && this.y >= b.y){\r\n\t\t\txa = -mov;\r\n\t\t\tya = mov;\r\n\t\t\tcontadores[1]++;\r\n\t\t\tif(contadores[1] > 2)\r\n\t\t\t\tdo{\r\n\t\t\t\t\txa = (0.5 > Math.random()) ? mov : -mov;\r\n\t\t\t\t\tya = (0.5 > Math.random()) ? mov : -mov;\r\n\t\t\t\t}while(xa == mov && ya == -mov);\r\n\t\t\tcontadores[0] = contadores[2] = contadores[3] = 0;\r\n\t\t}\r\n\t\telse if(this.x >= b.x && this.y >= b.y){\r\n\t\t\txa = mov;\r\n\t\t\tya = mov;\r\n\t\t\tcontadores[2]++;\r\n\t\t\tif(contadores[2] > 2)\r\n\t\t\t\tdo{\r\n\t\t\t\t\txa = (0.5 > Math.random()) ? mov : -mov;\r\n\t\t\t\t\tya = (0.5 > Math.random()) ? mov : -mov;\r\n\t\t\t\t}while(xa == -mov && ya == -mov);\r\n\t\t\tcontadores[0] = contadores[1] = contadores[3] = 0;\r\n\t\t}\r\n\t\telse{\r\n\t\t\txa = mov;\r\n\t\t\tya = -mov;\r\n\t\t\tcontadores[3]++;\r\n\t\t\tif(contadores[3] > 2)\r\n\t\t\t\tdo{\r\n\t\t\t\t\txa = (0.5 > Math.random()) ? mov : -mov;\r\n\t\t\t\t\tya = (0.5 > Math.random()) ? mov : -mov;\r\n\t\t\t\t}while(xa == -mov && ya == mov);\r\n\t\t\tcontadores[0] = contadores[1] = contadores[2] = 0;\r\n\t\t}\r\n\t}", "public void jugarMaquinaSola(int turno) {\n if (suspenderJuego) {\n return;\n }\n CuadroPieza cuadroActual;\n CuadroPieza cuadroDestino;\n CuadroPieza MovDestino = null;\n CuadroPieza MovActual = null;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n cuadroActual = tablero[x][y];\n if (cuadroActual.getPieza() != null) {\n if (cuadroActual.getPieza().getColor() == turno) {\n for (int x1 = 0; x1 < 8; x1++) {\n for (int y1 = 0; y1 < 8; y1++) {\n cuadroDestino = tablero[x1][y1];\n if (cuadroDestino.getPieza() != null) {\n if (cuadroActual.getPieza().validarMovimiento(cuadroDestino, this)) {\n if (MovDestino == null) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n } else {\n if (cuadroDestino.getPieza().getPeso() > MovDestino.getPieza().getPeso()) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n if (cuadroDestino.getPieza().getPeso() == MovDestino.getPieza().getPeso()) {\n //Si es el mismo, elijo al azar si moverlo o no\n if (((int) (Math.random() * 3) == 1)) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n }\n }\n }\n\n }\n }\n }\n }\n }\n }\n }\n if (MovActual == null) {\n boolean b = true;\n do {//Si no hay mov recomendado, entonces genero uno al azar\n int x = (int) (Math.random() * 8);\n int y = (int) (Math.random() * 8);\n tablero[x][y].getPieza();\n int x1 = (int) (Math.random() * 8);\n int y1 = (int) (Math.random() * 8);\n\n MovActual = tablero[x][y];\n MovDestino = tablero[x1][y1];\n if (MovActual.getPieza() != null) {\n if (MovActual.getPieza().getColor() == turno) {\n b = !MovActual.getPieza().validarMovimiento(MovDestino, this);\n //Si mueve la pieza, sale del while.\n }\n }\n } while (b);\n }\n if (MovActual.getPieza().MoverPieza(MovDestino, this)) {\n this.setTurno(this.getTurno() * -1);\n if (getRey(this.getTurno()).isInJacke(this)) {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Hacke Mate!!! - te lo dije xD\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n } else {\n JOptionPane.showMessageDialog(null, \"Rey en Hacke - ya t kgste\");\n }\n } else {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Empate!!!\\nComputadora: Solo por que te ahogaste...!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n if (Pieza.getCantMovimientosSinCambios() >= 50) {\n JOptionPane.showMessageDialog(null, \"Empate!!! \\nComputadora: Vaya, han pasado 50 turnos sin comernos jeje!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Otra Partida Amistosa¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n }\n }\n if (this.getTurno() == turnoComputadora) {\n jugarMaquinaSola(this.getTurno());\n }\n }", "public boolean isIndicadorNuevo()\r\n/* 210: */ {\r\n/* 211:218 */ return this.indicadorNuevo;\r\n/* 212: */ }", "@Then(\"^obtener el vuelo mas barato$\")\n public void obtenerElVueloMasBarato() {\n theActorInTheSpotlight().attemptsTo(new ObtenerVuelo());\n }", "public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==0 && columna==15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==15 && columna==0){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if(fila==15 && columna==15){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n }\n return v;\n }", "public void btn_actualizar(View v) {\n String conteo1 = cap_1.getText().toString();\n String conteo2 = cap_2.getText().toString();\n\n if (conteo1.isEmpty()) {\n tostada(\"No haz seleccionado un registro para actualizar\").show();\n } else if (conteo2.isEmpty()) {\n tostada(\"No haz seleccionado un registro para actualizar\").show();\n } else {\n String msj = \"Seguro que deseas actualizar este registro\";\n String tipo = \"btn_actualizar\";\n DialogConfirm(msj, tipo);\n }\n }", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "private void ruotaNuovoStatoPaziente() {\r\n\t\tif(nuovoStatoPaziente==StatoPaziente.WAITING_WHITE)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_YELLOW;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_YELLOW)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_RED;\r\n\t\telse if(nuovoStatoPaziente==StatoPaziente.WAITING_RED)\r\n\t\t\tnuovoStatoPaziente = StatoPaziente.WAITING_WHITE;\r\n\t\t\r\n\t}", "public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }", "public boolean prestamo(){\n boolean prestado = true;\n if (cantPres < cantLibro) {\n cantPres++;\n } else {\n prestado = false;\n }\n return prestado;\n }", "public void VaciarPila() {\r\n while (!PilaVacia()) {\r\n EliminarNodo();\r\n }\r\n }", "public void decida(){\r\n int f=this.getFila();\r\n int c=this.getColumna();\r\n int cont=alRededor(f,c);\r\n if(this.isVivo()){\r\n if(cont==2 || cont==3){\r\n estadoSiguiente=VIVA;\r\n }else/* if(cont==1 || cont>3)*/{\r\n estadoSiguiente=MUERTA;\r\n }\r\n }else{\r\n if(cont==3){\r\n estadoSiguiente=VIVA;\r\n }else if(cont==1 || cont>3){\r\n estadoSiguiente=MUERTA;\r\n }\r\n }\r\n }", "@Override\n\tpublic String frenar(int velocidad) {\n\t\tthis.velocidad-=velocidad;\n\t\tif (this.velocidad<0) {\n\t\t\tthis.velocidad=0;\n\t\t}\n\t\t\n\t\tString mensaje = \"Moto con velocidad actual de \"+this.velocidad;\n\t\tif (this.velocidad > VELOCIDAD_MAXIMA) {\n\t\t\tmensaje += \" y sigues superando la velocidad maxima\";\n\t\t}\n\t\treturn mensaje;\n\t}", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public void restarPunto ( ) {\n\t\tif ( vida > 0 )\n\t\t\tvida--;\n\t}", "public boolean actualizar(Voto voto) {\n\t\ttry{\n\t\t\tem.merge(voto);\n\t\t\treturn true;\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean estaVacio(){\n\t\treturn raiz==null;\n\t}", "public void vaciar() {\n\t\tprimero = ultimo = null;\n\t\ttotal = 0;\n\t}", "@Override\n\tpublic void verVehiculosDisponibles() {\n\t\tif(getCapacidad() > 0) {\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 1 \" + \" Carro disponible, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(\"Plazas disponibles : \" + getCapacidad() + \" plazas, peso disponible : \" + getPeso() + \" kg, Carros disponibles: \" + \" 0 \" + \" Carro disponibles, Capacidad de Personas : 4 personas, Peso maximo : 500 kg\");\n\t\t}\n\t\t\n\t}", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public void carroRemovido(){\n System.out.println(\"Su carro fue removido exitosamente\");\n }", "@Override\r\n\tpublic boolean lancar(Combativel origem, Combativel alvo) {\r\n DadoVermelho dado = new DadoVermelho();\r\n int valor = dado.jogar();\r\n if(valor < origem.getInteligencia()) {\r\n alvo.defesaMagica(dano);\r\n return true;\r\n }\r\n else {\r\n \tSystem.out.println(\"Voce nao conseguiu usar a magia\");\r\n }\r\n return false;\r\n }", "private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "public synchronized void abilitarAbordaje() {\n abordar = true;\r\n notifyAll();\r\n while(pedidoAbordaje != 0){//Mientras los pasajeros esten abordando\r\n try {\r\n wait();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Vuelo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n //Cuando los pasajeros hayan abordado el vuelo sale\r\n salio = true;\r\n System.out.println(\"El vuelo \" + nro + \" de \" + aerolinea + \" ha despegado\");\r\n }", "public boolean voikoSulkea() {\n handleTallenna();\n return true;\n }", "@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}", "public void contarPosiciones() {\n if (tablero[0] == 1 && tablero[1] == 1 && tablero[2] == 1) {\n ganarJugadorUno = true;\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[3] == 1 && tablero[4] == 1 && tablero[5] == 1) {\n ganarJugadorUno = true;\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[6] == 1 && tablero[7] == 1 && tablero[8] == 1) {\n ganarJugadorUno = true;\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[0] == 1 && tablero[3] == 1 && tablero[6] == 1) {\n ganarJugadorUno = true;\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[1] == 1 && tablero[4] == 1 && tablero[7] == 1) {\n ganarJugadorUno = true;\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[2] == 1 && tablero[5] == 1 && tablero[8] == 1) {\n ganarJugadorUno = true;\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[0] == 1 && tablero[4] == 1 && tablero[8] == 1) {\n ganarJugadorUno = true;\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[2] == 1 && tablero[4] == 1 && tablero[6] == 1) {\n ganarJugadorUno = true;\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n // posibilidades jugados dos\n if (tablero[0] == 2 && tablero[1] == 2 && tablero[2] == 2) {\n ganarJugadorDos = true;\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[3] == 2 && tablero[4] == 2 && tablero[5] == 2) {\n ganarJugadorDos = true;\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[6] == 2 && tablero[7] == 2 && tablero[8] == 2) {\n ganarJugadorDos = true;\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[0] == 2 && tablero[3] == 2 && tablero[6] == 2) {\n ganarJugadorDos = true;\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[1] == 2 && tablero[4] == 2 && tablero[7] == 2) {\n ganarJugadorDos = true;\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[2] == 2 && tablero[5] == 2 && tablero[8] == 2) {\n ganarJugadorDos = true;\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[0] == 2 && tablero[4] == 2 && tablero[8] == 2) {\n ganarJugadorDos = true;\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (tablero[2] == 2 && tablero[4] == 2 && tablero[6] == 2) {\n ganarJugadorDos = true;\n Toast.makeText(this, jugadorDos + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if(tirar == 18 && !ganarJugadorUno && !ganarJugadorDos ){\n Toast.makeText(this, \"Empate\", Toast.LENGTH_SHORT).show();\n }\n }", "private void ReiniciarSeleccion()\n {\n if(Estado!=TURNOENEMIGO && Estado!=HUYENDO && Estado!=FINTURNO)\n {\n if(input.isKeyPressed(Input.KEY_ESCAPE))\n {\n estadoAnterior=OPCIONESBASE;\n Estado=OPCIONESBASE;\n sonidoSelect.play(1, 0.2f);\n }/**/\n }/*if(Estado!=TURNOENEMIGO && Estado!=HUYENDO && Estado!=FINTURNO)*/\n }", "private void acabarJogo() {\n\t\tif (mapa.isFimDeJogo() || mapa.isGanhouJogo()) {\r\n\r\n\t\t\tthis.timer.paraRelogio();\r\n\r\n\t\t\tif (mapa.isFimDeJogo()) {//SE PERDEU\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"VOCÊ PERDEU\", \"FIM DE JOGO\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t} else {//SE GANHOU\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\t\t\"PARABÉNS \" + this.nomeJogador + \"! \" + \"TODAS AS BOMBAS FORAM ENCONTRADAS\", \"VOCÊ GANHOU\",\r\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\tiniciarRanking();//SE VENCEU MANDA O JOGADOR PRO RANKING\r\n\t\t\t}\r\n\t\t\tthis.voltarMenu();//VOLTA PRO MENU\r\n\r\n\t\t}\r\n\t}", "private void cazaFantasma(Vertice<T> v){\n\tif(v.padre == null){\n\t if(v == this.raiz){\n\t\tthis.raiz = null;\n\t\treturn;\n\t }\n\t return;\n\t}else{\n\t Vertice<T> padre = v.padre;\n\t if(v == padre.izquierdo){\n\t\tif(v.hayIzquierdo()){\n\t\t padre.izquierdo = v.izquierdo;\n\t\t v.izquierdo.padre = padre;\n\t\t}else if(v.hayDerecho()){\n\t\t padre.izquierdo = v.derecho;\n\t\t v.derecho.padre = padre;\n\t\t}else{\n\t\t padre.izquierdo = null;\n\t\t}\t\t\n\t }else{\n\t\tif(v.hayIzquierdo()){\n\t\t padre.derecho = v.izquierdo;\n\t\t v.izquierdo.padre = padre;\n\t\t}else if(v.hayDerecho()){\n\t\t padre.derecho = v.derecho;\n\t\t v.derecho.padre = padre;\n\t\t}else{\n\t\t padre.derecho = null;\n\t\t}\n\t }\n\t}\n }", "public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }", "public void checarColision()\n\t{\n\t\tListIterator <Entidad> iterator = handler.listaEntidades.listIterator();\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\tEntidad aux = iterator.next();\n\t\t\t\n\n\t\t\t//Colision con un Enemigo\n\t\t\tif (aux instanceof Bala)\n\t\t\t{\n\t\t\t\tif (chocandoEn(x, y, aux))\n\t\t\t\t{\t\n\n\n\t\t\t\t\t\n\t\t\t\t\t//Si choca con bala eliminar bala y cambiar posicion de enemigo\n\t\t\t\t\tvelX = aux.getVelX();\n\t\t\t\t\tvelY = aux.getVelY();\n\t\t\t\t\thandler.quitarObjeto(aux);\n\t\t\t\t\tthis.vida -= 5;\n\t\t\t\t\t\n\t\t\t\t\tif(this.vida == 0)\n\t\t\t\t\t\thandler.quitarObjeto(this);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\t\n\t}", "public boolean SiguienteBodega(){\n if(!lista_inicializada){\n Nodo_bodega_actual = Nodo_bodega_inicial;\n lista_inicializada = true;\n if(Size>0){\n return true;\n }\n }\n \n if(Size > 1 ){\n if(Nodo_bodega_actual.obtenerSiguiente()!= null){\n Nodo_bodega_actual = Nodo_bodega_actual.obtenerSiguiente();\n return true;\n } \n }\n return false;\n }", "public boolean marcarMensajeVisto(Mensaje mensaje) {\r\n\t\tmodifyCache(mensaje, \"MensajeLeido\");\r\n\t\treturn true;\r\n\t}", "public void ativa() {\n this.ativada = true;\n }", "public void verificaJogo(){\n\t\t\t\tif(jogo.verificaPerdeu()) {\n\t \t\tJOptionPane dialogo = new JOptionPane();\n\t \t\t\n\t \t\tint opcao = dialogo.showConfirmDialog(this, \"Voce Perdeu!!\\nDeseja jogar novamente?\", \"mensagem\", JOptionPane.YES_NO_OPTION);\n\t \t\t\n\t \t\tif(opcao == JOptionPane.YES_OPTION) {\n\t \t\t\tMatriz novamente = new Matriz();\n\t \t\t}\n\t \t\tsetVisible(false);\n\t \t\tdispose();\n\t \t}\n\t\t\t\t\n\t\t\t\tif(jogo.verificaGanhou()) {\n\t\t\t\t\tJOptionPane dialogo = new JOptionPane();\n\t \t\t\n\t \t\tint opcao = dialogo.showConfirmDialog(this, \"Voce GANHOOOOO!!\\nDeseja jogar novamente?\", \"mensagem\", JOptionPane.YES_NO_OPTION);\n\t \t\t\n\t \t\tif(opcao == JOptionPane.YES_OPTION) {\n\t \t\t\tMatriz novamente = new Matriz();\n\t \t\t}\n\t \t\tsetVisible(false);\n\t \t\tdispose();\n\t \t}\n\t\t\t\t\n\t\t\t}", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "public void riconnetti() {\n\t\tconnesso = true;\n\t}" ]
[ "0.7239252", "0.69533795", "0.6865769", "0.6843655", "0.6813251", "0.677452", "0.67399204", "0.6588253", "0.6553848", "0.6544097", "0.65330327", "0.6504001", "0.6499872", "0.64934355", "0.64367115", "0.63970554", "0.63892066", "0.63808805", "0.6370113", "0.63639975", "0.63478976", "0.6342108", "0.63310874", "0.63235974", "0.63113344", "0.6288871", "0.6283552", "0.6282623", "0.62242556", "0.62235093", "0.6215964", "0.62055564", "0.6197216", "0.6185266", "0.61792046", "0.61694694", "0.61548173", "0.6147628", "0.61449003", "0.61356163", "0.6134458", "0.6134357", "0.6126352", "0.61021316", "0.6084475", "0.6065471", "0.60652983", "0.60562724", "0.6055343", "0.6054773", "0.6036984", "0.60365486", "0.6036055", "0.6033035", "0.6031095", "0.6025898", "0.6022276", "0.60145557", "0.60020417", "0.5989303", "0.5986931", "0.59866863", "0.598327", "0.5976656", "0.5975511", "0.5966901", "0.59659624", "0.596099", "0.5949589", "0.59405184", "0.5937542", "0.5925886", "0.5922606", "0.591971", "0.59162056", "0.5915428", "0.5912586", "0.59067774", "0.5906486", "0.5904501", "0.5901383", "0.5899371", "0.5899081", "0.5890402", "0.5887777", "0.5885645", "0.58754486", "0.5863839", "0.5852599", "0.5850777", "0.58368796", "0.5828346", "0.5824445", "0.58194405", "0.5818086", "0.5817354", "0.5814246", "0.58083147", "0.58069813", "0.58067006", "0.5805892" ]
0.0
-1
/ renamed from: Ca
IObjectWrapper mo29837Ca() throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void toca();", "String getCaption();", "public String getName()\r\n {\n return \"arctan\";\r\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "public String CaToHa(double ca) {\n // ha = ca/10000\n double ha = ca/10000;\n return check_after_decimal_point(ha);\n }", "public String CaToA(double ca) {\n // a = ca/100\n double a = ca/100;\n return check_after_decimal_point(a);\n }", "public void setCaption(String cap) {\n\t\tcaption = cap;\n\t}", "public String getCaption(){\n return this.caption;\n }", "public String HaToCa(double ha) {\n // ca = 10000*ha\n double ca = ha*10000;\n return check_after_decimal_point(ca);\n }", "private static void cajas() {\n\t\t\n\t}", "AlphabetNameReference createAlphabetNameReference();", "String getOriginalName();", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(new c4().capitalize(\"aAC!00xsAAa\"));\r\n\t}", "@Transient\n\tpublic String getCaption(){\n\t return \"[\" + getCode() + \"] \" + getName();\n\t}", "public TextConstruct(String prefix, String name)\n\t{\n\t super(prefix, name); \n\t}", "public void setCaption(String caption) {\n this.caption = caption;\n }", "private static String capName(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1); }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public String getRootCa();", "private String preprocessName(String original){\n\t\t// Remove non-alphabetical characters from the name\n\t\toriginal = original.replaceAll( \"[^A-Za-z]\", \"\" );\n\t\t\t\t\n\t\t// Convert to uppercase to help us ignore case-sensitivity\n\t\toriginal = original.toUpperCase();\n\t\t\n\t\t// Remove all occurences of the letters outlined in step 3\n\t\toriginal = original.substring(0,1) + original.substring(1).replaceAll(\"[AEIHOUWY]\",\"\");\n\t\t\n\t\t// Return the result\n\t\treturn original;\n\t}", "public String getName()\r\n {\n return \"arctan2\";\r\n }", "public abstract CharSequence mo2160e();", "private static String expandUmlauts(String name) {\n return name.toLowerCase().replace(\"ä\", \"ae\").replace(\"ö\", \"oe\").replace(\"ü\", \"ue\");\n }", "@Override \r\n\tpublic String getName() {\r\n\t\treturn \"Bazooka\";\r\n\t}", "public String acronym(String phrase) {\n String accrStr = phrase.replaceAll(\"\\\\B.|\\\\P{L}\", \"\").toUpperCase();\n return accrStr;\n }", "@Override\r\n\tpublic void getname() {\n\t\tSystem.out.println(\"中文名\");\r\n\t}", "public void remCamelCaseName(){\n ((MvwDefinitionDMO) core).remCamelCaseName();\n }", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "protected String subtitle () { return null; }", "public abstract String getCvName();", "public void extracAcronyms() {\n\t\tExtractAbbrev extractAbbrv = new ExtractAbbrev();\n\t\tthis.abbreviations = extractAbbrv.extractAbbrPairs(this.supportDocument);\t\t\t\n\t\t\n\t\tboolean acronym = true;\n\t\t\n\t\tfor (int j = 0; j < this.name.length(); j++) {\n\t\t\tif (Character.isLowerCase(this.name.charAt(j))) {\n\t\t\t\tacronym = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (acronym) {\n\t\t\t for (Abbreviations abbreviation : this.abbreviations) {\t\t\t\t\t\n\t\t\t\tif (abbreviation.getShortForm().equalsIgnoreCase(this.name)) {\n\t\t\t\t\tthis.alternative_names.add(abbreviation.getLongForm());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public String CaToDa(double ca) {\n // da = ca/10\n double da = ca/10;\n return check_after_decimal_point(da);\n }", "public String CaToMa(double ca) {\n // ma = 10*ca\n double ma = ca*10;\n return check_after_decimal_point(ma);\n }", "@Override\n public String getCosmetics() {\n return \"Jeans\" + avatar.getCosmetics();\n }", "public String chName(String address) {\n\n if (Locale.getDefault().getLanguage() == \"en\") {//Check System Language\n\n if (address.contains(\"Hang Hau\")) {\n newName = \"HangHau\";\n } else if (address.contains(\"Po Lam\")) {\n newName = \"PoLam\";\n } else {\n newName = \"HangHau\";\n }//default, prevent error\n\n } else if (Locale.getDefault().getLanguage() == \"zh\") {\n\n\n if (address.contains(\"坑口\")) {\n newName = \"HangHau_ZH\";\n } else if (address.contains(\"寶琳\")) {\n newName = \"PoLam_ZH\";\n } else {\n newName = \"HangHau_ZH\";\n }//default, prevent error\n }\n return newName;\n }", "private static String convertDescription(final String src) {\n String s = src;\n for (Map.Entry<String, String> entry: DESC_HTML_CONVERSIONS.entrySet()) s = s.replace(entry.getKey(), entry.getValue());\n return s;\n }", "public static String capitalize(String name) {\n/* 72 */ if (name == null || name.length() == 0) {\n/* 73 */ return name;\n/* */ }\n/* 75 */ char[] chars = name.toCharArray();\n/* 76 */ chars[0] = Character.toUpperCase(chars[0]);\n/* 77 */ return new String(chars);\n/* */ }", "private String translateCodebase() {\n if(codebase==null)\n return(codebase);\n if(System.getProperty(\"os.name\").startsWith(\"Win\") && codebase.startsWith(\"file://\")) {\n codebase = \"file:/\"+codebase.substring(7);\n }\n return(codebase);\n }", "String siToCcsdsName(String siName);", "String nombreDeClase(String s) {\n return s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase();\n }", "private static String getAdImmd(String compon){\n\t\tcompon = compon.substring(0,compon.indexOf(\"(\"));\n\t\treturn compon;\n\t}", "public void drawCaption(String caption)\r\n\t{\r\n\t\tFont previousFont = g.getFont();\r\n\t\tColor previousColor = g.getColor();\r\n\t\tg.setFont(NumerateGame.CAPTION_FONT);\r\n\t\tg.setColor(NumerateGame.CAPTION_COLOR);\r\n\t\tg.drawString(caption,NumerateGame.CAPTION_PADDING_X,NumerateGame.WINDOW_Y-g.getFont().getSize()/2-NumerateGame.CAPTION_PADDING_Y);\r\n\t\tg.setFont(previousFont); // revert the font\r\n\t\tg.setColor(previousColor); // revert the color\r\n\t}", "public static String createRenamedConstructor(Constructor c, String name, String code) {\n Class[] pta = c.getParameterTypes();\n String fpl = formalParametersToString(pta);\n String apl = actualParametersToString(pta);\n Class[] eTypes = c.getExceptionTypes();\n String result = name + \"(\" + fpl + \")\\n\";\n if (eTypes.length != 0)\n result += \" throws \"\n + classArrayToString(eTypes)\n + \"\\n\";\n result += \"{\\n super(\" + apl + \");\\n\" + code + \"}\\n\";\n return result;\n }", "public java.lang.String getCA() {\n return CA;\n }", "@Override public String getCarne(){\n return \"salchicha y jamón \";\n }", "public Caption (ElectronicComponent CompToCopy, int xo, int yo) {\n super (CompToCopy, xo, yo);\n }", "static String toMixedCase(String name) {\r\n\t\tStringBuilder sb = new StringBuilder(name.toLowerCase());\r\n\t\tsb.replace(0, 1, sb.substring(0, 1).toUpperCase());\r\n\t\treturn sb.toString();\r\n\r\n\t}", "String getCName() {\n return nameTF.getText();\n }", "public abstract void ataca(String inamic);", "public String MaToCa(double ma) {\n // ca = ma/10\n double ca = ma/10;\n return check_after_decimal_point(ca);\n }", "private MakeACaptain() {\n }", "public String AToCa(double a) {\n // ca = 100*a\n double ca = a*100;\n return check_after_decimal_point(ca);\n }", "@Override\n\tpublic String desc() {\n\t\treturn \"我是一个煎饼 \";\n\t}", "public void setCname(String cname) {\n this.cname = cname;\n }", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "B itemCaption(ITEM item, Localizable caption);", "protected void setupCaption(View rootView) {\n mCaption = (EditText) rootView.findViewById(R.id.caption);\n mCaption.setText(mOriginalLabel.getCaptionText());\n mCaption.setImeOptions(EditorInfo.IME_ACTION_DONE);\n mCaption.setRawInputType(InputType.TYPE_CLASS_TEXT);\n mCaption.setOnEditorActionListener((textView, i, keyEvent) -> {\n if (i == EditorInfo.IME_ACTION_DONE) {\n mCaption.clearFocus();\n mCaption.setFocusable(false);\n }\n return false;\n });\n mCaption.setOnTouchListener((v, motionEvent) -> {\n mCaption.setFocusableInTouchMode(true);\n mCaption.requestFocus();\n return false;\n });\n\n mCaption.setEnabled(false);\n mExperiment.firstElement().subscribe(experiment -> {\n mCaption.setEnabled(true);\n // Move the cursor to the end\n mCaption.post(() -> mCaption.setSelection(mCaption.getText().toString().length()));\n\n RxTextView.afterTextChangeEvents(mCaption)\n .subscribe(event -> saveCaptionChanges(experiment,\n mCaption.getText().toString()));\n });\n }", "public static String fixAuthor(String in) {\n return(fixAuthor(in, true));\n }", "public final String aCK() {\n return NAME;\n }", "public void firstToUpperCase() {\n \n }", "public void setCA(java.lang.String CA) {\n this.CA = CA;\n }", "public SecName(FrillLoc loc) {\n MyLocation = loc;\n NameFont = new FontFinder(FontList.FONT_LABEL);\n }", "public String getCoverArtName();", "public String getCname() {\r\n return cname;\r\n }", "default B itemCaption(ITEM item, String caption) {\n\t\treturn itemCaption(item, Localizable.builder().message(caption).build());\n\t}", "public String KaToCa(double ka) {\n // ca = 100000*ka\n double ca = 100000*ka;\n return check_after_decimal_point(ca);\n }", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "public String CaToKa(double ca) {\n // ka = ca/100000\n double ka = ca/100000;\n return check_after_decimal_point(ka);\n }", "private String getCweName(String cweId)\n {\n CweToName cweToNameUtil = new CweToName();\n return cweToNameUtil.getCweName(cweId);\n }", "default B itemCaption(ITEM item, String caption, String messageCode) {\n\t\treturn itemCaption(item, Localizable.builder().message(caption).messageCode(messageCode).build());\n\t}", "String getAbbr();", "public String getName ( ) {\r\n\t\treturn \"MSX Infrared Astrometric Catalog\";\r\n\t}", "synchronized String getOriginalName(String fixedName) {\r\n return fixedNamesToOriginalNames.get(fixedName);\r\n }", "public void setCaption(String caption) {\n this.caption = caption;\n }", "public String CaToDaa(double ca) {\n // daa = ca/1000\n double daa = ca/1000;\n return check_after_decimal_point(daa);\n }", "public String DaToCa(double da) {\n // ca = 10*da\n double ca = da*10;\n return check_after_decimal_point(ca);\n }", "public TextConstruct(String name)\n\t{\n super(name);\n this.type = ContentType.TEXT;\n\t}", "@Override\r\n\t\tpublic String nazivLika() {\r\n\t\t\treturn \"ELIPSA\";\r\n\t\t}", "public abstract CharSequence mo2161g();", "@Test\n\tpublic void testCaptionSetter() {\n\t\tPicture picture = new MutablePixelArrayPicture(new Pixel[][] {{new ColorPixel(0,0,0)}}, \"Angela\");\n\t\tpicture.setCaption(\"Angela\");\n\t\tassertEquals(\"Angela\", picture.getCaption());\n\t\n\t}", "public abstract java.lang.String getAcma_descripcion();", "public String getAcronym();", "private String getCasTypeName(String aTagName) {\n if (aTagName.indexOf(':') == -1 && aTagName.indexOf('-') == -1) {\n return aTagName;\n } else {\n // Note: This is really slow so we avoid if possible. -- RJB\n return StringUtils.replaceAll(StringUtils.replaceAll(aTagName, \":\", \"_colon_\"), \"-\",\n \"_dash_\");\n }\n }", "@Override\n public String getDescription() {\n return \"Alias buy\";\n }", "@Override\n protected String elaboraFooterCorrelate() {\n String text = CostBio.VUOTO;\n\n if (usaFooterCorrelate) {\n text += \"==Voci correlate==\";\n text += A_CAPO;\n text += LibWiki.setRigaQuadre(LibText.levaCoda(PATH_ANTRO, \"/\"));\n text += LibWiki.setRigaQuadre(PATH_ANTRO + \"Cognomi\");\n text += LibWiki.setRigaQuadre(PATH_ANTRO + \"Didascalie\");\n }// end of if cycle\n\n return text;\n }", "public String getCname() {\n return cname;\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "private String capitalize(String title) {\n return title.substring(0, 1).toUpperCase() + title.substring(1);\n }", "MnemonicNameReference createMnemonicNameReference();", "String getShortName();", "public void setCaption(String caption) {\n mCaption = caption;\n }", "public static void transform() {\n String input = BinaryStdIn.readString();\n CircularSuffixArray csa = new CircularSuffixArray(input);\n int first = 0;\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n first = i;\n break;\n }\n }\n BinaryStdOut.write(first);\n\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n BinaryStdOut.write(input.charAt(csa.length() - 1));\n }\n else BinaryStdOut.write(input.charAt(csa.index(i) - 1));\n }\n BinaryStdOut.close();\n }", "@NotNull\n private static String normalize(@NotNull String displayName) {\n int angleIndex = displayName.indexOf('<');\n return angleIndex != -1 ? displayName.substring(0, angleIndex) : displayName;\n }", "public String DaaToCa(double daa) {\n // ca = 1000*daa\n double ca = daa*1000;\n return check_after_decimal_point(ca);\n }", "public abstract String getShortName();", "public abstract String getShortName();", "public abstract String getShortName();", "private void setTranslationKey(String name) {\n\t\t\r\n\t}", "static String m33126a(String name, String separator) {\n StringBuilder translation = new StringBuilder();\n int length = name.length();\n for (int i = 0; i < length; i++) {\n char character = name.charAt(i);\n if (Character.isUpperCase(character) && translation.length() != 0) {\n translation.append(separator);\n }\n translation.append(character);\n }\n return translation.toString();\n }", "public static void main(String[] args){\r\n String first = \"jin\";\r\n String last = \"jung\";\r\n String ay = \"ay\";\r\n/*\r\n use substring() and toUpperCase methods to reorder and capitalize\r\n*/\r\n\r\n String letFirst = first.substring(0,1);\r\n String capFirst = letFirst.toUpperCase();\r\n String letLast = last.substring(0,1);\r\n String capLast = letLast.toUpperCase();\r\n\r\n String nameInPigLatin = first.substring(1,3) + capFirst + ay + \" \" + last.substring(1,4) + capLast + ay;\r\n\r\n/*\r\n output resultant string to console\r\n*/\r\n\r\n System.out.println(nameInPigLatin);\r\n\r\n }" ]
[ "0.58283085", "0.5691606", "0.5578757", "0.54927856", "0.54532766", "0.5428252", "0.54281664", "0.5426256", "0.54230005", "0.541553", "0.5404604", "0.5362644", "0.5335127", "0.5306478", "0.53018683", "0.5285117", "0.52732915", "0.52663183", "0.52603054", "0.5251374", "0.5244765", "0.52412236", "0.5226973", "0.51958144", "0.5170151", "0.51627463", "0.51511216", "0.51324856", "0.5125921", "0.5110173", "0.5108782", "0.5092587", "0.5073331", "0.5066263", "0.50637895", "0.50611806", "0.50605375", "0.50568503", "0.50547194", "0.5053411", "0.50488913", "0.5042574", "0.50303304", "0.5022577", "0.5021718", "0.5021122", "0.50138634", "0.5001288", "0.49885747", "0.49877903", "0.49853882", "0.4983694", "0.49822554", "0.49775007", "0.49754438", "0.49730426", "0.496922", "0.49648923", "0.49560854", "0.49514917", "0.49481547", "0.49474284", "0.4946371", "0.4945959", "0.4937109", "0.49338847", "0.49332103", "0.493021", "0.49286923", "0.49268153", "0.49266675", "0.49195525", "0.49172583", "0.4909384", "0.49072483", "0.49070844", "0.49065578", "0.49056813", "0.4901642", "0.4899551", "0.4895596", "0.489369", "0.48911232", "0.4882443", "0.48745686", "0.48623192", "0.48597646", "0.4858866", "0.4856921", "0.48567328", "0.4850808", "0.48489958", "0.48485127", "0.48431897", "0.48417842", "0.48395452", "0.48395452", "0.48395452", "0.4832112", "0.48319128", "0.48305923" ]
0.0
-1
/ renamed from: Oa
Bundle mo29838Oa() throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo5382o() {\n }", "public void mo38117a() {\n }", "public abstract Object mo1771a();", "public void mo4359a() {\n }", "public void mo1531a() {\n }", "public abstract void mo20899UO();", "public void mo12930a() {\n }", "public void mo6081a() {\n }", "private static void cajas() {\n\t\t\n\t}", "public abstract void mo2150a();", "void mo41083a();", "public Aso() {\n\t\tName = \"Aso\";\n\t\ttartossag = 3;\n\t}", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo2740a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public abstract void mo70713b();", "protected void mo6255a() {\n }", "public void mo44053a() {\n }", "void mo80452a();", "public void mo55254a() {\n }", "void mo88521a();", "public abstract void mo1184a(Object obj);", "void mo28306a();", "public java.lang.String getOA(){\r\n return localOA;\r\n }", "void mo57275a();", "public abstract Object mo1185b();", "public void leerAlimentos();", "public void mo115188a() {\n }", "public void mo21800a() {\n }", "public void mo9848a() {\n }", "public abstract void mo30696a();", "void mo27575a();", "public void mo21782G() {\n }", "public abstract String mo83558a(Object obj);", "public void mo21879u() {\n }", "void mo57277b();", "public abstract Object mo26777y();", "void mo54405a();", "public abstract void mo3994a();", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public abstract String mo118046b();", "public abstract C14408a mo11607a();", "private void poetries() {\n\n\t}", "public abstract void mo27464a();", "void mo57278c();", "void mo1637a();", "public void mo21825b() {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void m20445OooO00o() {\n OooO0OO();\n }", "public void mo6944a() {\n }", "public final void mo92083O() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract String mo8770a();", "Oracion createOracion();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo5248a() {\n }", "void mo21072c();", "public abstract String mo11611b();", "public void ovr() {\n\n\t}", "public abstract void mo4359a();", "public abstract void mo27385c();", "public void mo21787L() {\n }", "public abstract String mo9091a();", "void mo5017a();", "public abstract ZALogDao mo87644a();", "void mo28194a();", "void mo38026a();", "OL createOL();", "public void mo21877s() {\n }", "private void kk12() {\n\n\t}", "public void mo21779D() {\n }", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public abstract String mo10149a();", "void mo72113b();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo1972o() throws cf {\r\n }", "void mo1639a(ayl ayl);", "protected OpinionFinding() {/* intentionally empty block */}", "public void mo21794S() {\n }", "public abstract void mo53562a(C18796a c18796a);", "public void mo21781F() {\n }", "void mo17021c();", "public abstract void mo90486a(C9515Ad ad);", "public abstract String mo9238av();", "public abstract String mo9239aw();", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public void mo21791P() {\n }", "void mo21070b();", "void mo20141a();", "@Override\n public void func_104112_b() {\n \n }" ]
[ "0.62455845", "0.6221028", "0.62197393", "0.6076365", "0.60705686", "0.6048101", "0.601371", "0.60050315", "0.5945348", "0.5931543", "0.58914065", "0.5885771", "0.58722514", "0.58645374", "0.58587074", "0.5833811", "0.58262885", "0.58113563", "0.58113563", "0.58113563", "0.58113563", "0.58113563", "0.58113563", "0.58113563", "0.58094716", "0.57929057", "0.5778708", "0.57477325", "0.5744488", "0.5742996", "0.57406914", "0.57307386", "0.57296157", "0.5725682", "0.57231486", "0.5719932", "0.5716164", "0.5715884", "0.57118446", "0.57094926", "0.5693943", "0.56847894", "0.56775016", "0.56717694", "0.5660081", "0.5652287", "0.564797", "0.56460613", "0.5645128", "0.56442076", "0.5642904", "0.56415594", "0.56335074", "0.56302935", "0.5618341", "0.56175673", "0.5616697", "0.5609817", "0.5607363", "0.56020164", "0.5600273", "0.5592315", "0.55870116", "0.55853426", "0.55796146", "0.55788785", "0.5572036", "0.55714804", "0.5571435", "0.5571292", "0.556894", "0.5565664", "0.55619246", "0.5556676", "0.5556544", "0.555566", "0.5554366", "0.554227", "0.55395675", "0.5538761", "0.55382323", "0.55380404", "0.553566", "0.55353546", "0.5534956", "0.5533037", "0.5530323", "0.5529787", "0.5525195", "0.5515953", "0.55154186", "0.5513458", "0.5510853", "0.5506662", "0.5506575", "0.5505865", "0.5505455", "0.55030924", "0.5500142", "0.54995465", "0.54961723" ]
0.0
-1
/ renamed from: S
zzang mo29839S() throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getS();", "java.lang.String getS2();", "String getSFunc();", "java.lang.String getS1();", "private void ss(){\n }", "public String toString() {\n\t\treturn \"S\";\n\t}", "private void strin() {\n\n\t}", "private String S() throws SyntaxException, ParserException {\n\t\tswitch (current) {\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\tcase '(':\n\t\t\t\t// S -> ERS\n\t\t\t\tString er = E();\n\t\t\t\tint r = R();\n\t\t\t\tString e=\"\";\n\t\t\t\tfor (int i=0; i<r; i++){\n\t\t\t\t\te += er;\n\t\t\t\t}\n\t\t\t\te+= S();\n\t\t\t\treturn (e);\n\t\t\tcase ')':\n\t\t\tcase END_MARKER:\n\t\t\t\t// S -> epsilon\n\t\t\t\treturn \"\";\n\t\t\tdefault:\n\t\t\t\tthrow new SyntaxException(ErrorType.NO_RULE,current);\n\t\t}\n\t}", "java.lang.String getS9();", "public String mangle(String sName);", "public BIG getS(){return S;}", "public void sinyal();", "private void sout() {\n\t\t\n\t}", "public void skystonePos4() {\n }", "public void stg() {\n\n\t}", "java.lang.String getS4();", "public void skystonePos6() {\n }", "int getSs();", "public void skystonePos5() {\n }", "public void mo21794S() {\n }", "java.lang.String getS5();", "public void setS(String s);", "<S extends C0218dl> S mo283b();", "public void skystonePos2() {\n }", "public void mo21877s() {\n }", "static void sm() {\n }", "public double getS() { return s; }", "public String getS() {\r\n return s;\r\n }", "java.lang.String getScStr();", "public abstract String mo13682d();", "private void Trans(String s) {\n }", "java.lang.String getS8();", "T convert(S e);", "public void skystonePos3() {\n }", "abstract String mo1747a(String str);", "@Override\r\n\tpublic int getSS() {\n\t\treturn SS;\r\n\t}", "public int s() {\r\n/* 247 */ return this.k;\r\n/* */ }", "private final void r(String s) { if (m() > 0) setto(s); }", "void mo7357e(C1655s sVar);", "java.lang.String getSsn();", "abstract String mo1748c();", "void mo7356d(C1655s sVar);", "public abstract String mo9239aw();", "public String getStCodeSpS() {\n return stCodeSpS;\n }", "public SintaxAnalysis(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "@Override\n public String toString()\n {\n return s;\n }", "public abstract String mo41079d();", "static String changeStr(StringFunc sf, String s){\n return sf.func(s);\n }", "void mo7355c(C1655s sVar);", "protected abstract void setSpl();", "public void mo21779D() {\n }", "public void mo38117a() {\n }", "private stendhal() {\n\t}", "public interface C0219dm {\n /* renamed from: b */\n <S extends C0218dl> S mo283b();\n}", "public void mo21787L() {\n }", "public String getStCodeStS() {\n return stCodeStS;\n }", "T convert(S s) throws UnconvertableException;", "String invade(short s) {\n\t\treturn \"a few\";\n\t}", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "void mo7351a(C1655s sVar);", "public abstract String mo11611b();", "@Override\r\n\tpublic void zjedz(Seno s) {\n\t}", "public abstract String mo118046b();", "public char show() {\n\t\treturn 'S';\n\t}", "void mo57277b();", "public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public abstract String mo24851a(String str);", "public analisis_sintactico_re(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public SintaxAnalysis(java_cup.runtime.Scanner s) {super(s);}", "public String toString() {\n\t\treturn \"I = \" + i + \" S = \" + s;\n\t}", "public void sendeSpielfeld();", "public static void ssn(String val) {\n\t\t\n\t}", "public float getFirstSSN(){\n\t\t return FirstSSN;\n\t\t }", "public void method_4270() {}", "public void mo21785J() {\n }", "public void mo9233aH() {\n }", "private void compile(SSAProgram prog, String methodName, SSAStatement s) {\n // recommended for debuggability:\n sb.append(\" # \");\n if (s.getRegister() >= 0)\n sb.append(reg(s));\n sb.append(\": \");\n sb.append(s.toString());\n sb.append(\"\\n\");\n\n SSAStatement left, right;\n String special;\n StringBuilder built = new StringBuilder();\n\n left = s.getLeft();\n right = s.getRight();\n\n switch (s.getOp()) {\n // FILLIN (this is the actual code generator!)\n case Unify:\n case Alias:\n break; // Do nothing\n case Parameter:\n int paramPos = (Integer)s.getSpecial();\n if(paramPos > 3) {\n built.append(\" lw $\" + reg(s) + \", \" + (paramPos-3)*wordSize + \"($fp)\\n\"); \n }\n break; \n case Int:\n int intValue = (Integer)s.getSpecial();\n built.append(\" li $\" + reg(s) + \", \" + intValue + \"\\n\");\n break;\n case Print:\n callerSave(-1);\n built.append(crstores);\n built.append(moveRegister(\"a0\", reg(left)));\n built.append(\" jal minijavaPrint\\n\");\n built.append(crloads);\n break;\n case Boolean:\n boolean boolValue = (Boolean)s.getSpecial();\n if(boolValue) {\n built.append(\" li $\" + reg(s) + \", \" + 1 + \"\\n\");\n } else {\n built.append(\" move $\" + reg(s) + \", $zero\\n\");\n }\n break;\n case This:\n built.append(\" move $\" + reg(s) + \", $v0\\n\");\n break;\n case Arg:\n int argPos = (Integer)s.getSpecial();\n if(argPos > 3) {\n built.append(\" sw $\" + reg(left) + \", \" + (argPos-4)*wordSize + \"($sp)\\n\"); \n } else {\n built.append(moveRegister(reg(s) ,reg(left)));\n }\n break;\n case Null:\n built.append(\" move $\" + reg(s) + \", $zero\\n\");\n break;\n case NewObj:\n callerSave(freeReg(s));\n built.append(crstores);\n special = (String)s.getSpecial();\n built.append(\" la $a0, mj__v_\" + special + \"\\n\");\n built.append(\" li $a1, \" + objectSize(prog, prog.getClass(special)) + \"\\n\");\n built.append(\" jal minijavaNew\\n\");\n built.append(\" move $\" + reg(s) + \", $v0\\n\");\n built.append(crloads);\n break;\n case NewIntArray:\n callerSave(freeReg(s));\n built.append(crstores);\n built.append(moveRegister(\"a0\", reg(left)));\n built.append(\" jal minijavaNewArray\\n\");\n built.append(\" move $\" + reg(s) + \", $v0\\n\");\n built.append(crloads);\n break;\n case Label:\n special = (String)s.getSpecial();\n built.append(\" .\" + special + \":\\n\");\n break;\n case Goto:\n special = (String)s.getSpecial();\n built.append(\" j .\" + special + \"\\n\");\n break;\n case Branch:\n special = (String)s.getSpecial();\n built.append(\" bne $\" + reg(left) + \", $zero .\" + special +\"\\n\");\n break;\n case NBranch:\n // could change to beqz\n special = (String)s.getSpecial();\n built.append(\" beq $\" + reg(left) + \", $zero, .\" + special +\"\\n\");\n break;\n case Call:\n String clasName = left.getType().toString();\n SSACall call = (SSACall)s.getSpecial();\n String funcName = call.getMethod();\n Vtable vtab = getVtable(prog, prog.getClass(clasName));\n int methodOffset = vtab.methodOffsets.get(funcName);\n callerSave(freeReg(s));\n built.append(crstores);\n built.append(\" move $v0, $\" + reg(left) + \"\\n\");\n built.append(\" lw $v1, ($v0)\\n\");\n built.append(\" lw $v1, \" + (methodOffset*wordSize) + \"($v1)\\n\");\n built.append(\" jal $v1\\n\");\n built.append(\" move $\" + reg(s) + \", $v0\\n\");\n built.append(crloads);\n break;\n case Return:\n built.append(\" move $v0, $\" + reg(left) + \"\\n\");\n built.append(\" j .ret_\" + methodName + \"\\n\");\n break;\n case Member:\n special = (String)s.getSpecial();\n String clname = left.getType().toString();\n int memOffset;\n if(clname.equals(\"int[]\")) {\n memOffset = 0;\n } else {\n memOffset = fieldOffset(prog, prog.getClass(clname), special);\n }\n if(memOffset == 0) {\n built.append(\" lw $\" + reg(s) + \", ($\" + reg(left) + \")\\n\");\n } else {\n built.append(\" lw $\" + reg(s) + \", \" + (wordSize*memOffset) + \"($\" + reg(left) + \")\\n\");\n }\n break;\n case Index:\n built.append(\" mul $v1, $\" + reg(right) + \", 4\\n\");\n built.append(\" add $v1, $v1, 4\\n\");\n built.append(\" add $v1, $v1, $\" + reg(left) + \"\\n\");\n built.append(\" lw $\" + reg(s) + \", ($v1)\\n\");\n break;\n case VarAssg:\n built.append(moveRegister(reg(s), reg(left)));\n break;\n case MemberAssg:\n special = (String)s.getSpecial();\n String className = left.getType().toString();\n int memSOffset = fieldOffset(prog, prog.getClass(className), special);\n built.append(\" sw $\" + reg(right) + \", \" + (memSOffset*wordSize) + \"($\" + reg(left) + \")\\n\");\n built.append(moveRegister(reg(s), reg(right)));\n break;\n case IndexAssg:\n SSAStatement index = (SSAStatement)s.getSpecial();\n built.append(\" mul $v1, $\" + reg(index) + \", 4\\n\");\n built.append(\" add $v1, $v1, 4\\n\");\n built.append(\" add $v1, $v1, $\" + reg(left) + \"\\n\");\n built.append(\" sw $\" + reg(right) + \", ($v1)\\n\");\n built.append(moveRegister(reg(s), reg(right)));\n break;\n case Not:\n built.append(\" seq $\" + reg(s) + \", $zero , $\" + reg(left) + \"\\n\");\n break;\n case Eq:\n built.append(\" seq $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break; \n case Ne:\n built.append(\" sne $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break;\n case Lt:\n built.append(\" slt $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break;\n case Le:\n built.append(\" sle $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break; \n case Gt:\n built.append(\" sgt $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break;\n case Ge:\n built.append(\" sge $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break;\n case And:\n built.append(\" add $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n built.append(\" seq $\" + reg(s) + \", $\" + reg(s) + \", 2\\n\");\n break;\n case Or:\n built.append(\" add $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n built.append(\" sgt $\" + reg(s) + \", $\" + reg(s) + \", 0\\n\");\n break;\n case Plus:\n built.append(\" add $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break; \n case Minus:\n built.append(\" sub $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break; \n case Mul:\n built.append(\" mul $\" + reg(s) + \", $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n break; \n case Div: \n // can change this to one liner after verifying it works\n built.append(\" div $\" + reg(s) + \", $\"+ reg(left) + \", $\" + reg(right) + \"\\n\");\n //built.append(\" mflo $\" + reg(s) + \"\\n\");\n break; \n case Mod:\n // can change to one liner\n //built.append(\" div $\" + reg(left) + \", $\" + reg(right) + \"\\n\");\n //built.append(\" mfhi $\" + reg(s) + \"\\n\");\n built.append(\" rem $\" + reg(s) + \", $\"+ reg(left) + \", $\" + reg(right) + \"\\n\");\n \n break;\n case Store:\n int storeVal = (Integer)s.getSpecial();\n built.append(\" sw $\" + reg(left) + \", -\" + (storeVal+1)*wordSize + \"($fp)\\n\");\n break;\n case Load:\n int loadVal = (Integer)s.getSpecial();\n built.append(\" lw $\" + reg(s) + \", -\" + (loadVal+1)*wordSize + \"($fp)\\n\");\n break;\n default:\n throw new Error(\"Implement MIPS compiler for \" + s.getOp() + \"!\");\n }\n\n sb.append(built);\n }", "private void m50366E() {\n }", "public void mo21879u() {\n }", "private final void setto(String s)\n\t { int l = s.length();\n\t int o = j+1;\n\t for (int i = 0; i < l; i++) b[o+i] = s.charAt(i);\n\t k = j+l;\n\t }", "public void mo21781F() {\n }", "public void mo21782G() {\n }", "public abstract String mo9238av();", "public void mo21793R() {\n }", "void mo7354b(C1655s sVar);", "protected final void parseS() {\n current = read();\n skipSpaces();\n\n for (;;) {\n switch (current) {\n default:\n return;\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n }\n \n float x2 = parseNumber();\n skipCommaSpaces();\n float y2 = parseNumber();\n skipCommaSpaces();\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n\n float smoothX = currentX * 2 - smoothCCenterX;\n float smoothY = currentY * 2 - smoothCCenterY;\n currentX = x;\n currentY = y;\n p.curveTo(smoothX, smoothY,\n x2, y2,\n currentX, currentY);\n smoothCCenterX = x2;\n smoothCCenterY = y2;\n smoothQCenterX = currentX;\n smoothQCenterY = currentY;\n\n skipCommaSpaces();\n }\n }", "public final void mo7596sH(String str) {\n }", "public void mo21789N() {\n }", "interface C1403bj {\n /* renamed from: iS */\n C1458cs mo7613iS();\n\n /* renamed from: jh */\n C1436ck mo7614jh();\n}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private int get_sreg() { return get_ioreg(SREG); }", "public static String cS2CSInternal( org.opencds.vmr.v1_0.schema.CS cs )\n\t{\n\t\ttry {\n\t\t\tString st = cs.getCode();\n\t\t\treturn st;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(); \n\t\t\tthrow new RuntimeException( \"cS2Code(\" + cs.toString() + \") had errors: \" + e.getMessage() );\n\t\t}\n\t}", "java.lang.String getS6();", "public Square4(int s)\n {\n // call superclass\n super(s, s);\n }", "public void mo21878t() {\n }", "protected String dalsiSlovo() {\n\t\treturn parser.nextWord();\n\t}", "private String reg(SSAStatement s) {\n return registers[freeRegisters[s.getRegister()]];\n }", "public void mo3749d() {\n }", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "public interface SRSTet extends Tetromino {\r\n @Override\r\n default String getName() {\r\n return \"SRS \" + getType();\r\n }\r\n}" ]
[ "0.6920871", "0.6789517", "0.6382164", "0.6379661", "0.6239218", "0.62382483", "0.6209864", "0.61003375", "0.60553706", "0.6032477", "0.60298085", "0.6024871", "0.60228866", "0.6014343", "0.5881938", "0.58726686", "0.58377177", "0.5813221", "0.5812141", "0.57935256", "0.57892257", "0.5773301", "0.5758357", "0.5748959", "0.57353956", "0.5657719", "0.56516385", "0.563125", "0.56139326", "0.5605631", "0.5602323", "0.559606", "0.55803293", "0.5539341", "0.55105966", "0.5507516", "0.54982555", "0.5491412", "0.546298", "0.5456273", "0.54490876", "0.5447523", "0.54236627", "0.5420742", "0.541261", "0.54118216", "0.5408518", "0.54084516", "0.5406776", "0.5398325", "0.53914374", "0.5390066", "0.5385596", "0.5384166", "0.5374992", "0.5373649", "0.53672504", "0.5361112", "0.53592", "0.5350853", "0.534226", "0.53241247", "0.53170115", "0.5311798", "0.5309302", "0.5294176", "0.528925", "0.5287292", "0.52836937", "0.527874", "0.52763796", "0.5275295", "0.52722925", "0.5268867", "0.52685094", "0.526793", "0.5265131", "0.526413", "0.5259961", "0.5257011", "0.52509034", "0.5249774", "0.52459466", "0.5243082", "0.52372307", "0.52330095", "0.5231986", "0.52294976", "0.5225179", "0.52248436", "0.5217504", "0.5212882", "0.5197854", "0.5183715", "0.5182204", "0.5180914", "0.5177119", "0.51745856", "0.51722187", "0.5161254", "0.5161165" ]
0.0
-1
/ renamed from: Y
zzafe mo29840Y() throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface C11601a {\n /* renamed from: tY */\n void mo23327tY(int i);\n }", "@Override\n\tpublic String toString () {\n\t\treturn \"Y\";\n\t}", "private void yy() {\n\n\t}", "@Override // com.fasterxml.jackson.p519b.p520a.ParserMinimalBase\n /* renamed from: Y */\n public void mo29259Y() throws JsonParseException {\n mo29312an();\n }", "java.lang.String getY();", "public void m6608Y() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"1\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "public void setY(boolean y) {\n\tthis.y = y;\n }", "private String AccelYConversion() {\n int reading = (((raw[17] & 0xFC) >> 2) + ((raw[18] & 0x0F) << 6));\n\n\n int y[] = fixBinaryString(Integer.toBinaryString(reading));\n return myUnsignedToSigned(y) + \"\";\n\n //System.out.println(\"Y \" + unsignedToSigned(reading ,10) * 0.1533);\n //return (reading * 0.1533) + \"\";\n }", "public void setY(double newY) {\r\n y = newY;\r\n }", "public void setY(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.renderscript.AllocationAdapter.setY(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.renderscript.AllocationAdapter.setY(int):void\");\n }", "public void setY(int theY)\r\n {\r\n y = theY;\r\n }", "void setY(double y){\r\n\t\tthis.y=y;\r\n\t}", "public void NewY(double y){\n\t\tthis.y = y;\n\t}", "private BsTestY createY(String yAttr) {\n TestYDelegate delegate = Memcached_testDelegateFactory.getTestYDelegate();\n BigInteger testYId = null;\n BsTestY y = delegate.createTestY(testYId, yAttr);\n List<BsTestY> list = new ArrayList<BsTestY>(1);\n list.add(y);\n delegate.insert(list);\n return y;\n }", "@Override\n\tpublic void setY(int y) {\n\t\t\n\t}", "private int getY() {\n\t\treturn 0;\r\n\t}", "public void setY( double Y)\r\n {\r\n curY = Y;\r\n }", "@java.lang.Override\n public boolean hasY() {\n return instance.hasY();\n }", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "boolean hasY();", "public double y() { return _y; }", "public int getY() { return (int)y; }", "public void setY(int y) {\r\n this.y = (short) y;\r\n }", "private int convertY(float y) {\n\t\treturn (int) (axis.getY() - y*pointsParY);\n\t}", "public static int getNewY() {\n\t\treturn newY;\n\t}", "@Override\n\tpublic void setY(int y) {\n\n\t}", "private void setY(long value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n }", "public int getY()\n {\n return rettangoloY; \n }", "public interface C3963a {\n /* renamed from: Ly */\n int mo23521Ly();\n }", "public abstract C7982k4<E> m39518y();", "private void kk12() {\n\n\t}", "void setY(float y) {\n _y = y;\n }", "@Override\r\n\tpublic void setY(float y) {\n\t\t\r\n\t}", "@Override\n\tpublic void setY(float y) {\n\n\t}", "public String getParameterFromY();", "@Override\n \t\t\t\tpublic void doRotateY() {\n \n \t\t\t\t}", "long getY();", "@java.lang.Override\n public java.lang.String getY() {\n java.lang.Object ref = y_;\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 y_ = s;\n return s;\n }\n }", "public void setY(byte[] value) {\n this.y = ((byte[]) value);\n }", "public void setY(double y){\n this.y = y;\n }", "public void setY(double y){\n this.y = y;\n }", "public abstract ParamNumber getParamY();", "void setY(int y) {\n this.y = y;\n }", "public static int getOrigY() {\n return 5;\n }", "public void setY(int y) {\n\t\tthis.Y = y;\n\t}", "public void setY(double y)\n\t{\n\t\tthis.y = y;\n\t}", "abstract double getDirY();", "public void setY(int newY)\r\n {\r\n yCoord = newY;\r\n }", "public final boolean isY2()\n {\n return m_jso.isY2();\n }", "public void setY(double y)\n {\n this.y = y;\n }", "public void yBindTranslateY(String bind_name, ObservableValue<? extends Number> Y, double pivo);", "public void setY(int y) { this.y=y; }", "public int y() {\n\t\treturn y;\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getYBytes() {\n java.lang.Object ref = y_;\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 y_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getY() { return y; }", "public int getY() { return y; }", "abstract double getOrgY();", "public void setY(double y) {\n this.y = y;\r\n }", "public void reverseDirectionY()\n\t{\n\t\t\n\t\tvy = -vy;\n\t}", "public void setYCoordinates(double newY) { this.yCoordinates = newY; }", "public void setYLabel(String _label);", "public int y()\r\n {\r\n return y;\r\n }", "private void set_y(int RHS)\n {\n try\n {\n set_reg(28,Utils.get_lobyte(RHS));\n set_reg(29,Utils.get_hibyte(RHS));\n }\n catch(RuntimeException e) { }\n }", "public void setY(long y){\n this.y = y;\n }", "public void setY(int nuovo_rettangoloY)\n {\n \tboolean bo = informaPreUpdate();\n rettangoloY = nuovo_rettangoloY;\n\t\tinformaPostUpdate(bo);\n }", "public int getY() { return y;}", "public int getY() { return y;}", "public int getY() {return y;}", "public double getY() { return y; }", "private final List<State> PreA(List<State> y) {\r\n // pre(Y ) = pre\u0003y \u0012 pre\u0003(S \u0012 Y)\r\n List<State> PreEY = this.PreE(y);\r\n List<State> S_Minus_Y = new ArrayList<State>();\r\n for(State state:this._kripke.States)\r\n {\r\n \tS_Minus_Y.add(state);\r\n }\r\n for (State state : y) {\r\n if (S_Minus_Y.contains(state)) {\r\n S_Minus_Y.remove(state);\r\n }\r\n \r\n }\r\n \r\n List<State> PreE_S_Minus_Y = this.PreE(S_Minus_Y);\r\n // PreEY - PreE(S-Y)\r\n for (State state : PreE_S_Minus_Y) {\r\n if (PreEY.contains(state)) {\r\n PreEY.remove(state);\r\n }\r\n \r\n }\r\n \r\n return PreEY;\r\n }", "@SuppressLint(\"NewApi\")\n\tpublic S<T> Y(int y){\n\t\t((View)t).setY(y);\n\t\treturn this;\n\t}", "public int y(){\n return y;\n }", "@Override\r\n\tpublic double getY1() {\n\t\treturn 0;\r\n\t}", "public void setY(double y) {\n\t\tthis.y = y;\n\t}", "public final int getY()\n{\n\treturn _y;\n}", "public void setEgY(int y) {\n\t\tthis.egY = y;\n\t}", "@Override\r\n\tpublic double getY2() {\n\t\treturn 0;\r\n\t}", "@Deprecated\n public final void setY(int y){\n this.y = y;\n }", "public boolean toY(double Y) {\n boolean change = (lowerVertex != null) && (lowerVertex.getY() == Y);\n \n if(change) {\n next();\n }\n \n return change;\n }", "com.google.protobuf.ByteString\n getYBytes();", "public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}", "public int getY()\n {\n \t return _y;\n }", "public void mo21787L() {\n }", "public void setY(double y)\n\t\t{\n\t\t this.y[0] = y;\n\t\t}", "public void setY(int y){\n this.y = y;\n }" ]
[ "0.6038146", "0.6002482", "0.5944966", "0.5758724", "0.5672488", "0.5620798", "0.5602696", "0.55760014", "0.5568876", "0.55274814", "0.55219287", "0.55141634", "0.5484175", "0.5476473", "0.5458953", "0.5422521", "0.5408136", "0.5375128", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5368421", "0.5365349", "0.5362385", "0.5361427", "0.53472793", "0.53432846", "0.53363574", "0.53165686", "0.530415", "0.529651", "0.529454", "0.5294242", "0.5281875", "0.52805215", "0.5279556", "0.52718186", "0.52657306", "0.5265204", "0.5263408", "0.5256807", "0.5256148", "0.5256148", "0.5253581", "0.5252063", "0.52483165", "0.52409196", "0.52406305", "0.5227046", "0.5224103", "0.5218457", "0.521659", "0.5212929", "0.52095467", "0.5209281", "0.5209166", "0.52017516", "0.52017516", "0.51962835", "0.51935863", "0.5186872", "0.5185294", "0.5183376", "0.518226", "0.518154", "0.51815283", "0.51758254", "0.51756126", "0.51756126", "0.5175481", "0.51681954", "0.5165697", "0.51632506", "0.51620686", "0.51613504", "0.51535565", "0.5148927", "0.51474196", "0.5146199", "0.5144433", "0.5136441", "0.51335937", "0.51332456", "0.512847", "0.5126734", "0.5121708", "0.51216453" ]
0.0
-1
/ renamed from: a
void mo29841a(IObjectWrapper iObjectWrapper, zzaiq zzaiq, List<zzaiw> list) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
/ renamed from: a
void mo29842a(IObjectWrapper iObjectWrapper, zzatk zzatk, List<String> list) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
void mo29843a(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, zzamv zzamv) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
void mo29844a(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, zzatk zzatk, String str2) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
void mo29845a(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, String str2, zzamv zzamv) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
/ renamed from: a
void mo29846a(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, String str2, zzamv zzamv, zzady zzady, List<String> list) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
void mo29847a(IObjectWrapper iObjectWrapper, zzyd zzyd, zzxz zzxz, String str, zzamv zzamv) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
void mo29848a(IObjectWrapper iObjectWrapper, zzyd zzyd, zzxz zzxz, String str, String str2, zzamv zzamv) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
void mo29849a(zzxz zzxz, String str) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
/ renamed from: a
void mo29850a(zzxz zzxz, String str, String str2) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: b
void mo29851b(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, zzamv zzamv) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ renamed from: bb
zzand mo29852bb() throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "private final zzgy zzgb() {\n }", "void mo2508a(bxb bxb);", "public void cases(BareBones bb, String str){\r\n\r\n if(str.indexOf(\"clear\") != -1){\r\n bb.clearParser(str);\r\n }\r\n else{\r\n if(str.indexOf(\"incr\") != -1){\r\n bb.incrParser(str);\r\n }\r\n else{\r\n if(str.indexOf(\"decr\") != -1){\r\n bb.decrParser(str);\r\n }\r\n }\r\n }\r\n }", "public static BB transformbBB(Transform t, BB bb) {\n\t\tVector2f center = bb.getCenter();\n\t\tfloat hw = (bb.r - bb.l) * 0.5f;\n\t\tfloat hh = (bb.t - bb.b) * 0.5f;\n\n\t\tfloat a = t.a * hw, b = t.c * hh, d = t.b * hw, e = t.d * hh;\n\t\tfloat hw_max = cpfmax(cpfabs(a + b), cpfabs(a - b));\n\t\tfloat hh_max = cpfmax(cpfabs(d + e), cpfabs(d - e));\n\t\treturn BB.forExtents(t.transformPoint(center), hw_max, hh_max);\n\t}", "static void perform_sbb(String passed){\n\t\tint type = type_of_sbb(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tsbb_with_reg(passed);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tsbb_with_mem(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public void baocun() {\n\t\t\n\t}", "public abstract void b(StringBuilder sb);", "public Arbol_BB( String raiz ) {\r\n this.raiz = ( raiz ); \r\n subABizq = null;\r\n subABder = null;\r\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "void bc(String message);", "BOp createBOp();", "private void kk12() {\n\n\t}", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public static void main(String[] args) {\n\t\tSystem.out.println(bb(\"{{}\"));\n\t\tSystem.out.println(bb(\"[[]\"));\n\t\tSystem.out.println(bb(\"({}[])\"));\n\t}", "public bb b() {\n return a(this.a);\n }", "public void m21425b(as asVar, bc bcVar) throws bv {\n int i = 0;\n asVar = (ax) asVar;\n ar arVar = new ar(Ascii.VT, Ascii.FF, asVar.mo7199s());\n bcVar.f18795a = new HashMap(arVar.f18601c * 2);\n for (int i2 = 0; i2 < arVar.f18601c; i2++) {\n String v = asVar.mo7202v();\n bb bbVar = new bb();\n bbVar.mo7211a(asVar);\n bcVar.f18795a.put(v, bbVar);\n }\n bcVar.m21448a(true);\n BitSet b = asVar.mo7205b(2);\n if (b.get(0)) {\n aq aqVar = new aq(Ascii.FF, asVar.mo7199s());\n bcVar.f18796b = new ArrayList(aqVar.f18598b);\n while (i < aqVar.f18598b) {\n ba baVar = new ba();\n baVar.mo7211a(asVar);\n bcVar.f18796b.add(baVar);\n i++;\n }\n bcVar.m21452b(true);\n }\n if (b.get(1)) {\n bcVar.f18797c = asVar.mo7202v();\n bcVar.m21454c(true);\n }\n }", "void mo46242a(bmc bmc);", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "public Arbol_BB() {\r\n raiz = \"\";\r\n subABizq = null;\r\n subABder = null;\r\n }", "static void sbb_with_reg(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint mult = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tmult++;\n\t\tmult%=256;\n\t\tmult = 256-mult;\n\t\tmult%=256;\n\t\tsubt+=mult;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "public static void bi() {\n\t}", "@Override\n\tvoid parseBranch(int index, boolean branched) {\n\t\t\n\t}", "protected abstract void a(bru parambru);", "public void m21419b(as asVar, bc bcVar) throws bv {\n bcVar.m21466o();\n asVar.mo7181a(bc.f18790e);\n if (bcVar.f18795a != null) {\n asVar.mo7178a(bc.f18791f);\n asVar.mo7180a(new ar(Ascii.VT, Ascii.FF, bcVar.f18795a.size()));\n for (Entry entry : bcVar.f18795a.entrySet()) {\n asVar.mo7176a((String) entry.getKey());\n ((bb) entry.getValue()).mo7214b(asVar);\n }\n asVar.mo7184d();\n asVar.mo7182b();\n }\n if (bcVar.f18796b != null && bcVar.m21462k()) {\n asVar.mo7178a(bc.f18792g);\n asVar.mo7179a(new aq(Ascii.FF, bcVar.f18796b.size()));\n for (ba b : bcVar.f18796b) {\n b.mo7214b(asVar);\n }\n asVar.mo7185e();\n asVar.mo7182b();\n }\n if (bcVar.f18797c != null && bcVar.m21465n()) {\n asVar.mo7178a(bc.f18793h);\n asVar.mo7176a(bcVar.f18797c);\n asVar.mo7182b();\n }\n asVar.mo7183c();\n asVar.mo7173a();\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public void setBbGuid(String bbGuid) {\r\n\t\tthis.bbGuid = bbGuid;\r\n\t}", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "@Override\n\tpublic void b() {\n\n\t}", "void mo41086b();", "public void applyBrake() {\n\t\t\r\n\t}", "public void mo115190b() {\n }", "@Override\n public void b() {\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "private JBurgPatternMatcher()\n\t{\n\t}", "void mo80455b();", "public void mo21825b() {\n }", "public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }", "void mo72113b();", "void mo88523b();", "void mo57277b();", "public /* synthetic */ void mo7209b(as asVar, bp bpVar) throws bv {\n m21417a(asVar, (bc) bpVar);\n }", "public abstract void mo9244b(C0620bi biVar);", "public abstract void mo70713b();", "public void mergeBlock(BasicBlock bb){\n this.tail.remove();\n if(bb.getParent().getExitBB() == bb){\n bb.getParent().setExitBB(this);\n }\n\n Instruction ptr = bb.getHead();\n while(ptr != null){\n if(ptr instanceof Phi){\n Instruction nct = ptr.getNxt();\n ((Phi) ptr).getRes().replaceUser(((Phi) ptr).getBranches().iterator().next().getFirst());\n ptr.remove();\n ptr = nct;\n } else {\n ptr.setBasicBlock(this);\n ptr.setPrev(tail);\n if(this.head == null)\n head = ptr;\n else tail.setNxt(ptr);\n\n tail = ptr;\n ptr = ptr.getNxt();\n }\n }\n\n for(BasicBlock succ: bb.getSuccessors()){\n this.successors.add(succ);\n succ.getPredecessorBB().add(this);\n }\n bb.setHead(null);\n bb.setTail(null);\n bb.replaceUser(this);\n bb.deleteItself();\n\n }", "public abstract C0631bt mo9227aB();", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public static void main(String[] bb)\n\t{\n\t\tnew Frame1().setVisible(true);\n\t}", "public interface C3301bl {\n /* renamed from: ǃ reason: contains not printable characters */\n void m1820(C3299bj bjVar);\n\n /* renamed from: ι reason: contains not printable characters */\n C3298bi m1821(C3302bm bmVar, String str);\n\n /* renamed from: ι reason: contains not printable characters */\n C3298bi m1822(C3302bm bmVar, String str, Map<String, String> map);\n}", "protected int b(i var1_1, y.c.q var2_2, y.c.q var3_3, h var4_4, h var5_5, int var6_6, ArrayList var7_7, ArrayList var8_8, h var9_9, h var10_10) {\n block26 : {\n block25 : {\n var24_11 = o.p;\n this.c = var6_6;\n this.d = var2_2;\n this.e = var3_3;\n this.n = var1_1.h();\n this.o = var1_1.f();\n this.h = var1_1;\n this.i = new int[this.n];\n this.j = new int[this.n];\n this.k = new int[this.o];\n this.l = new int[this.o];\n this.m = new int[this.n];\n this.b = new Object[this.o];\n this.t = new int[this.n];\n this.r = new d[this.n];\n this.s = new d[this.n];\n this.f = var4_4;\n this.a = new a[this.n];\n this.q = new ArrayList<E>(var1_1.f());\n this.p = new I(this.o);\n var11_12 = 0;\n block0 : do {\n v0 = var11_12;\n block1 : while (v0 < var7_7.size()) {\n var12_15 = (a)var7_7.get(var11_12);\n v1 /* !! */ = var12_15.b();\n if (var24_11) break block25;\n var13_17 = v1 /* !! */ ;\n while (var13_17.f()) {\n var14_20 = var13_17.a();\n var15_23 = var14_20.b();\n this.a[var14_20.b()] = var12_15;\n this.i[var15_23] = var12_15.a();\n v0 = this.i[var15_23];\n if (var24_11) continue block1;\n if (v0 < 0) {\n throw new B(\"found negative capacity\");\n }\n var13_17.g();\n if (!var24_11) continue;\n }\n ++var11_12;\n if (!var24_11) continue block0;\n }\n break block0;\n break;\n } while (true);\n v1 /* !! */ = var11_13 = this.h.p();\n }\n while (var11_13.f()) {\n var12_15 = var11_13.a();\n this.r[var12_15.b()] = (d)var10_10.b(var12_15);\n this.s[var12_15.b()] = (d)var9_9.b(var12_15);\n var11_13.g();\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block26;\n }\n this.g = new u[this.o];\n }\n var11_13 = var1_1.o();\n while (var11_13.f()) {\n var12_15 = var11_13.e();\n v2 = this;\n if (!var24_11) {\n v2.g[var12_15.d()] = new u((y.c.q)var12_15, var12_15.d());\n var11_13.g();\n if (!var24_11) continue;\n }\n ** GOTO lbl65\n }\n block5 : do {\n v2 = this;\nlbl65: // 2 sources:\n var11_14 = var13_18 = v2.a();\n var12_16 = 0;\n var14_21 = 0;\n block6 : do {\n v3 = var14_21;\n v4 = var8_8.size();\n block7 : while (v3 < v4) {\n v5 = var8_8.get(var14_21);\n do {\n var15_24 = (ArrayList)v5;\n var16_26 = false;\n var17_27 = 0;\n var18_28 = 0;\n v6 = 0;\n if (!var24_11) {\n for (var19_29 = v1574606; var19_29 < var15_24.size(); ++var19_29) {\n block28 : {\n block27 : {\n var20_30 = (a)var15_24.get(var19_29);\n v3 = this.m[var20_30.b[0].b()];\n v4 = 1;\n if (var24_11) continue block7;\n if (v3 != v4 || this.m[var20_30.b[1].b()] != 1) continue;\n ++var12_16;\n var21_31 = this.s[var20_30.b[0].b()];\n var22_32 = 0;\n while (this.m[var21_31.b()] == 1) {\n var22_32 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n var21_31 = this.s[var21_31.b()];\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block27;\n }\n var22_32 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n }\n var23_33 = 0;\n var21_31 = this.s[var20_30.b[1].b()];\n while (this.m[var21_31.b()] == 1) {\n var23_33 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n var21_31 = this.s[var21_31.b()];\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block28;\n }\n var23_33 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n }\n if (var23_33 > 400 || var22_32 > 400) {\n block29 : {\n if (var23_33 < var22_32) {\n this.a(var20_30);\n if (!var24_11) break block29;\n }\n this.b(var20_30);\n }\n var16_26 = true;\n }\n var18_28 += var23_33;\n var17_27 += var22_32;\n if (!var24_11) continue;\n }\n if (!var16_26) {\n for (var19_29 = 0; var19_29 < var15_24.size(); ++var19_29) {\n var20_30 = (a)var15_24.get(var19_29);\n v3 = this.m[var20_30.b[0].b()];\n v4 = 1;\n if (var24_11) continue block7;\n if (v3 != v4 || this.m[var20_30.b[1].b()] != 1) continue;\n if (var18_28 < var17_27) {\n this.a(var20_30);\n if (!var24_11) continue;\n }\n this.b(var20_30);\n if (!var24_11) continue;\n }\n }\n ++var14_21;\n if (!var24_11) continue block6;\n }\n ** GOTO lbl133\n v6 = var12_16;\nlbl133: // 2 sources:\n if (v6 > 0) continue block5;\n v5 = this.h.p();\n } while (var24_11);\n }\n break;\n } while (true);\n break;\n } while (true);\n var13_19 = v5;\n while (var13_19.f()) {\n var14_22 = var13_19.a();\n v7 = var14_22.b();\n if (var24_11 != false) return v7;\n var15_25 = v7;\n var5_5.a((Object)var14_22, this.m[var15_25]);\n var13_19.g();\n if (!var24_11) continue;\n }\n v7 = var11_14;\n return v7;\n }", "private static void registerBlock(Block b)\n\t{\n\t}", "@Override\r\n\tpublic void visit(ParkB parkB) {\n\t\t\r\n\t}", "public interface bv extends bp, bq, bw {\n String A();\n\n String getUrl();\n\n boolean y();\n\n String z();\n}", "static int size_of_sbb(String passed){\n\t\treturn 1;\n\t}", "private void yy() {\n\n\t}", "static void sbb_with_mem(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint mult = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tmult++;\n\t\tmult%=256;\n\t\tmult = 256-mult;\n\t\tsubt+=mult;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "public void zzbr() {\n /*\n r8 = this;\n r0 = 0;\n r2 = r8.zzF;\n L_0x0003:\n r1 = 10;\n if (r0 >= r1) goto L_0x0119;\n L_0x0007:\n r4 = r0 + 1;\n r0 = new java.net.URL;\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r0.<init>(r2);\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = \"play.google.com\";\n r3 = r0.getHost();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = r1.equalsIgnoreCase(r3);\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n if (r1 == 0) goto L_0x002d;\n L_0x001a:\n r0 = r2;\n L_0x001b:\n r0 = r8.zzT(r0);\n r1 = com.google.android.gms.ads.internal.zzr.zzbC();\n r2 = r8.zzpD;\n r2 = r2.getContext();\n r1.zzb(r2, r0);\n return;\n L_0x002d:\n r1 = \"market\";\n r3 = r0.getProtocol();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = r1.equalsIgnoreCase(r3);\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n if (r1 == 0) goto L_0x003b;\n L_0x0039:\n r0 = r2;\n goto L_0x001b;\n L_0x003b:\n r0 = r0.openConnection();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r0 = (java.net.HttpURLConnection) r0;\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = com.google.android.gms.ads.internal.zzr.zzbC();\t Catch:{ all -> 0x00b1 }\n r3 = r8.zzpD;\t Catch:{ all -> 0x00b1 }\n r3 = r3.getContext();\t Catch:{ all -> 0x00b1 }\n r5 = r8.zzpD;\t Catch:{ all -> 0x00b1 }\n r5 = r5.zzhX();\t Catch:{ all -> 0x00b1 }\n r5 = r5.afmaVersion;\t Catch:{ all -> 0x00b1 }\n r6 = 0;\n r1.zza(r3, r5, r6, r0);\t Catch:{ all -> 0x00b1 }\n r1 = r0.getResponseCode();\t Catch:{ all -> 0x00b1 }\n r5 = r0.getHeaderFields();\t Catch:{ all -> 0x00b1 }\n r3 = \"\";\n r6 = 300; // 0x12c float:4.2E-43 double:1.48E-321;\n if (r1 < r6) goto L_0x0116;\n L_0x0065:\n r6 = 399; // 0x18f float:5.59E-43 double:1.97E-321;\n if (r1 > r6) goto L_0x0116;\n L_0x0069:\n r1 = 0;\n r6 = \"Location\";\n r6 = r5.containsKey(r6);\t Catch:{ all -> 0x00b1 }\n if (r6 == 0) goto L_0x0099;\n L_0x0072:\n r1 = \"Location\";\n r1 = r5.get(r1);\t Catch:{ all -> 0x00b1 }\n r1 = (java.util.List) r1;\t Catch:{ all -> 0x00b1 }\n L_0x007a:\n if (r1 == 0) goto L_0x0116;\n L_0x007c:\n r5 = r1.size();\t Catch:{ all -> 0x00b1 }\n if (r5 <= 0) goto L_0x0116;\n L_0x0082:\n r3 = 0;\n r1 = r1.get(r3);\t Catch:{ all -> 0x00b1 }\n r1 = (java.lang.String) r1;\t Catch:{ all -> 0x00b1 }\n L_0x0089:\n r3 = android.text.TextUtils.isEmpty(r1);\t Catch:{ all -> 0x00b1 }\n if (r3 == 0) goto L_0x00aa;\n L_0x008f:\n r1 = \"Arrived at landing page, this ideally should not happen. Will open it in browser.\";\n com.google.android.gms.ads.internal.util.client.zzb.zzaK(r1);\t Catch:{ all -> 0x00b1 }\n r0.disconnect();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r0 = r2;\n goto L_0x001b;\n L_0x0099:\n r6 = \"location\";\n r6 = r5.containsKey(r6);\t Catch:{ all -> 0x00b1 }\n if (r6 == 0) goto L_0x007a;\n L_0x00a1:\n r1 = \"location\";\n r1 = r5.get(r1);\t Catch:{ all -> 0x00b1 }\n r1 = (java.util.List) r1;\t Catch:{ all -> 0x00b1 }\n goto L_0x007a;\n L_0x00aa:\n r0.disconnect();\t Catch:{ IndexOutOfBoundsException -> 0x0111, IOException -> 0x010c, RuntimeException -> 0x0107 }\n r0 = r4;\n r2 = r1;\n goto L_0x0003;\n L_0x00b1:\n r1 = move-exception;\n r0.disconnect();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n throw r1;\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n L_0x00b6:\n r0 = move-exception;\n r1 = r0;\n r0 = r2;\n L_0x00b9:\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Error while parsing ping URL: \";\n r2 = r2.append(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n com.google.android.gms.ads.internal.util.client.zzb.zzd(r2, r1);\n goto L_0x001b;\n L_0x00d1:\n r0 = move-exception;\n r1 = r0;\n r0 = r2;\n L_0x00d4:\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Error while pinging URL: \";\n r2 = r2.append(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n com.google.android.gms.ads.internal.util.client.zzb.zzd(r2, r1);\n goto L_0x001b;\n L_0x00ec:\n r0 = move-exception;\n r1 = r0;\n r0 = r2;\n L_0x00ef:\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Error while pinging URL: \";\n r2 = r2.append(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n com.google.android.gms.ads.internal.util.client.zzb.zzd(r2, r1);\n goto L_0x001b;\n L_0x0107:\n r0 = move-exception;\n r7 = r0;\n r0 = r1;\n r1 = r7;\n goto L_0x00ef;\n L_0x010c:\n r0 = move-exception;\n r7 = r0;\n r0 = r1;\n r1 = r7;\n goto L_0x00d4;\n L_0x0111:\n r0 = move-exception;\n r7 = r0;\n r0 = r1;\n r1 = r7;\n goto L_0x00b9;\n L_0x0116:\n r1 = r3;\n goto L_0x0089;\n L_0x0119:\n r0 = r2;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzdm.zza.zzbr():void\");\n }", "public final void mo1285b() {\n }", "public void mo23981a(C4321b bVar) {\n }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(']');\n }", "private void bid() {\n\t\t\t\n\t\t}", "BAnyBlock createBAnyBlock();", "public abstract void zzc(B b, int i, int i2);", "zzbe(zzbc zzbc, Handler handler) {\n super((Handler) null);\n this.zzcp = zzbc;\n }", "public void sbbActivate() {\n\t}", "BOpMethod createBOpMethod();", "@Override\n public void bfs() {\n\n }", "public abstract void mo6549b();", "void mo30633b(int i, String str, byte[] bArr);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 51: */ {\r\n/* 52:67 */ return ItemList.ap;\r\n/* 53: */ }", "private BaleElement.Branch createOuterBranch(BaleAstNode sn)\n{\n switch (sn.getNodeType()) {\n case FILE :\n\t return new BaleElement.CompilationUnitNode(for_document,cur_parent);\n case CLASS :\n\t return new BaleElement.ClassNode(for_document,cur_parent);\n case METHOD :\n\t return new BaleElement.MethodNode(for_document,cur_parent);\n case FIELD :\n\t return new BaleElement.FieldNode(for_document,cur_parent);\n case ANNOTATION :\n\t return new BaleElement.AnnotationNode(for_document,cur_parent);\n case STATEMENT :\n\t return new BaleElement.SplitStatementNode(for_document,cur_parent);\n case EXPRESSION :\n\t return new BaleElement.SplitExpressionNode(for_document,cur_parent);\n case BLOCK :\n\t return new BaleElement.BlockNode(for_document,cur_parent);\n case SWITCH_BLOCK :\n\t return new BaleElement.SwitchBlockNode(for_document,cur_parent);\n case INITIALIZER :\n\t return new BaleElement.InitializerNode(for_document,cur_parent);\n case SET :\n\t // return new BaleElement.DeclSet(for_document,cur_parent);\n\t break;\n default:\n\t break;\n }\n return null;\n}", "biker(int n,String ss)\r\n\t{\r\n\t\tbikeid=n;\r\n\t\tbikename=ss;\r\n\t\t\r\n\t}", "void mo60893b();", "public /* synthetic */ void mo1929b(cy cyVar, bz bzVar) throws cf {\r\n m9702a(cyVar, (be) bzVar);\r\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public BF() {\n\t\tsuper(\"Body Fat\", \"%\");\n\t}", "private static String mapAb(String version)\n {\n return \"ab\".equals(version) ? \"ba\" : version;\n }", "private static void cajas() {\n\t\t\n\t}", "private SBomCombiner()\n\t{}", "@Test\n public void testAddCase2b()\n {\n RedBlackTree<Integer> tree = new RedBlackTree<Integer>();\n tree.add(1);\n tree.add(2);\n assert(\"[b:1]\\n[r:2]\\n\".equals(tree.toString()));\n }", "public abstract int compile(byte bc[], int index);", "public static void testNewBBFArchitecture(){\n\t\t\n\t\tString outputDir = \"E:\\\\testing\\\\Java Backbone Fitting\\\\test orientation fix\\\\\";\n\t\tString inputFileName = outputDir+\"Berlin@Berlin_2NDs_B_Square_SW_96-160_201411201541.prejav\";\n\t\t\t\n\t\tExperiment ex = new Experiment(inputFileName);\n\t\t\n\t\t\n\t\tBackboneFitter bbf = new BackboneFitter(ex.getTrackFromInd(50));\n\t\tbbf.fitTrack();\n\t\t\n\t\tBackboneFitter bbfOld = new BackboneFitter();\n\t\t///method no longer exists\n\t\t//bbfOld.fitTrack(ex.getTrackFromInd(50));\n\t\t///\n\t\t\n\t\tSystem.out.println(\"Done\");\n\t}", "public void makeCFG() {\n\t\tArrayList<Integer> entryToBB1 = new ArrayList<>();\n\t\tentryToBB1.add(1);\n\t\tCFG.put(0, entryToBB1);\n\t\tfor (int i = 1; i <= BasicBlocks.size(); i++) {\n\t\t\tArrayList<Integer> targetBBList = new ArrayList<>();\n\t\t\tArrayList<String> BB = BasicBlocks.get(i);\n\t\t\tString lastCode = BB.get(BB.size() - 1);\n\t\t\tString label = lastCode;\n\t\t\tint targetBB;\n\n\t\t\t// Branch (1): fjp\n\t\t\tif (lastCode.charAt(0) == 'f' && lastCode.charAt(1) == 'j') {\n\t\t\t\tif (i != BasicBlocks.size()) {\n\t\t\t\t\ttargetBBList.add(i + 1);\n\t\t\t\t} else {\n\t\t\t\t\ttargetBBList.add(-1);\n\t\t\t\t}\n\t\t\t\tlabel = label.substring(4, label.length());\n\t\t\t\ttargetBB = findTargetBB(label);\n\t\t\t\ttargetBBList.add(targetBB);\n\n\t\t\t}\n\t\t\t// Branch (2): ujp\n\t\t\telse if (lastCode.charAt(0) == 'u' && lastCode.charAt(1) == 'j') {\n\t\t\t\tlabel = label.substring(4, label.length());\n\t\t\t\ttargetBB = findTargetBB(label);\n\t\t\t\ttargetBBList.add(targetBB);\n\t\t\t}\n\t\t\t// Normal Code & 'Exit'\n\t\t\telse {\n\t\t\t\tif (i != BasicBlocks.size()) {\n\t\t\t\t\ttargetBBList.add(i + 1);\n\t\t\t\t} else {\n\t\t\t\t\ttargetBBList.add(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tCFG.put(i, targetBBList);\n\t\t}\n\t}", "public bwq(String paramString1, String paramString2)\r\n/* 10: */ {\r\n/* 11: 9 */ this.a = paramString1;\r\n/* 12:10 */ this.f = paramString2;\r\n/* 13: */ }", "void mo50321b(C18924b bVar);", "public /* synthetic */ void mo1929b(cy cyVar, bz bzVar) throws cf {\r\n m9079a(cyVar, (aq) bzVar);\r\n }", "protected cxl a(Block parambec)\r\n/* 11: */ {\r\n/* 12:237 */ LinkedHashMap localLinkedHashMap = Maps.newLinkedHashMap(parambec.b());\r\n/* 13: */ \r\n/* 14:239 */ String str1 = bbf.M.toString((Comparable)localLinkedHashMap.remove(bbf.M));\r\n/* 15:240 */ localLinkedHashMap.remove(bbf.b);\r\n/* 16: */ \r\n/* 17:242 */ String str2 = ((Boolean)parambec.getData(bbf.b)).booleanValue() ? \"all\" : \"normal\";\r\n/* 18:243 */ return new cxl(str1 + \"_double_slab\", str2);\r\n/* 19: */ }", "void mo119582b();", "public ArrayList<Byte> generateConditionBlockCode(ConditionBlock cb) {\n if ((cb.getActions().getChildren().size() == 0) || (cb.getCondition().getChildren().size() == 0)) {\n return null;\n }\n\n Block acBlock = (Block) cb.getActions().getChildren().get(0);\n Block conBlock = (Block) cb.getCondition().getChildren().get(0);\n\n ArrayList<Byte> cmdArr1 = new ArrayList<>();\n ArrayList<Byte> cmdArr2 = new ArrayList<>();\n ArrayList<Byte> cmdArr3 = new ArrayList<>();\n\n //starting action\n char instruction = 'b';\n int address = acBlock.getCapability().getDevice().getAddress();\n char cmdChar = acBlock.getCapability().getExeCommand().charAt(0);\n char cmdChar1 = acBlock.getCapability().getExeCommand().charAt(1);\n\n cmdArr1.add((byte) instruction);\n cmdArr1.add((byte) address);\n cmdArr1.add((byte) cmdChar);\n cmdArr1.add((byte) cmdChar1);\n //prepending command length parameter\n cmdArr1.add(0, (byte) (cmdArr1.size() + 1));\n\n //checking condition or sense\n instruction = 'c';\n address = conBlock.getCapability().getDevice().getAddress();\n cmdChar = conBlock.getCapability().getExeCommand().charAt(0);\n cmdChar1 = conBlock.getCapability().getExeCommand().charAt(1);\n char compType = conBlock.getCapability().getCompType().charAt(0);\n\n cmdArr2.add((byte) instruction);\n cmdArr2.add((byte) address);\n cmdArr2.add((byte) compType);\n short jumpAdd = 0;\n byte[] jumpArr = shortToByteArray(jumpAdd);\n for (byte b : jumpArr) {\n cmdArr2.add(b);\n }\n short respSize = Short.parseShort(conBlock.getCapability().getRespSize());\n byte[] respArr = shortToByteArray(respSize);\n cmdArr2.add(respArr[0]);\n// for(byte b:respArr){\n// cmdArr2.add(b);\n// }\n int refVal = Integer.parseInt(conBlock.getCapability().getRefValue());\n if (conBlock.getCapability().getType().equals(Capability.CAP_CONDITION)) {\n refVal = Integer.parseInt(conBlock.getTextField().getText());\n }\n byte[] refArr = intToByteArray(refVal);\n for (int i = 0; i < respSize; i++) {\n cmdArr2.add(refArr[i]);\n }\n cmdArr2.add((byte) cmdChar);\n cmdArr2.add((byte) cmdChar1);\n //prepending command length parameter\n cmdArr2.add(0, (byte) (cmdArr2.size() + 1));\n\n //terminating action\n instruction = 'b';\n address = acBlock.getCapability().getDevice().getAddress();\n cmdChar = acBlock.getCapability().getStopCommand().charAt(0);\n cmdChar1 = acBlock.getCapability().getStopCommand().charAt(1);\n cmdArr3.add((byte) instruction);\n cmdArr3.add((byte) address);\n cmdArr3.add((byte) cmdChar);\n cmdArr3.add((byte) cmdChar1);\n //prepending command length parameter\n cmdArr3.add(0, (byte) (cmdArr3.size() + 1));\n\n //merging lists together\n cmdArr1.addAll(cmdArr2);\n cmdArr1.addAll(cmdArr3);\n return cmdArr1;\n }", "void mo21070b();", "public void b(ahd paramahd) {}", "public void mo9137b() {\n }", "private static ByteBuffer fill(ByteBuffer bb) {\n final int limit = bb.limit();\n bb.limit(bb.capacity());\n for (int i=0;i<bb.capacity();i++) {\n bb.put(i,(byte)i);\n }\n bb.limit(limit);\n return bb;\n }", "public void b(bq nbttagcompound)\r\n/* 250: */ {\r\n/* 251:204 */ super.b(nbttagcompound);\r\n/* 252: */ \r\n/* 253:206 */ nbttagcompound.a(\"cvm\", this.CoverSides);\r\n/* 254:207 */ byte[] cov = new byte[Integer.bitCount(this.CoverSides) * 2];\r\n/* 255:208 */ int dp = 0;\r\n/* 256:209 */ for (int i = 0; i < 6; i++) {\r\n/* 257:210 */ if ((this.CoverSides & 1 << i) != 0)\r\n/* 258: */ {\r\n/* 259:211 */ cov[dp] = ((byte)(this.Covers[i] & 0xFF));\r\n/* 260:212 */ cov[(dp + 1)] = ((byte)(this.Covers[i] >> 8));\r\n/* 261:213 */ dp += 2;\r\n/* 262: */ }\r\n/* 263: */ }\r\n/* 264:215 */ nbttagcompound.a(\"cvs\", cov);\r\n/* 265: */ }", "public static String find_b(String question)\n\t{\n\t\tint first_par = 0;\n\t\tint second_par = 0;\n\t\tint third_par = 0;\n\t\tint fourth_par = 0;\n\t\tString b = \"\";\n\t\t\n\t\tfirst_par = question.indexOf(\"(\");\n\t\tsecond_par = question.indexOf(\")\");\n\t\t\n\t\t\n\t\tthird_par = question.indexOf(\"(\", second_par+1);\n\t\tfourth_par = question.indexOf(\")\", second_par+1);\n\t\t\n\t\tb = question.substring(third_par + 1,fourth_par);\n\t\t\n\t\treturn b;\n\t}", "public bty(bto parambto, oa paramoa, cug paramcug, boolean paramBoolean)\r\n/* 40: */ {\r\n/* 41: 55 */ this.g = paramoa;\r\n/* 42: 56 */ this.h = paramcug;\r\n/* 43: 57 */ this.k = paramBoolean;\r\n/* 44: */ \r\n/* 45: 59 */ paramcug.a(this.g);\r\n/* 46: 62 */ for (int i1 = 0; i1 < 32; i1++)\r\n/* 47: */ {\r\n/* 48: 63 */ int i2 = (i1 >> 3 & 0x1) * 85;\r\n/* 49: 64 */ int i3 = (i1 >> 2 & 0x1) * 170 + i2;\r\n/* 50: 65 */ int i4 = (i1 >> 1 & 0x1) * 170 + i2;\r\n/* 51: 66 */ int i5 = (i1 >> 0 & 0x1) * 170 + i2;\r\n/* 52: 68 */ if (i1 == 6) {\r\n/* 53: 69 */ i3 += 85;\r\n/* 54: */ }\r\n/* 55: 72 */ if (parambto.e)\r\n/* 56: */ {\r\n/* 57: 73 */ int i6 = (i3 * 30 + i4 * 59 + i5 * 11) / 100;\r\n/* 58: 74 */ int i7 = (i3 * 30 + i4 * 70) / 100;\r\n/* 59: 75 */ int i8 = (i3 * 30 + i5 * 70) / 100;\r\n/* 60: 76 */ i3 = i6;\r\n/* 61: 77 */ i4 = i7;\r\n/* 62: 78 */ i5 = i8;\r\n/* 63: */ }\r\n/* 64: 81 */ if (i1 >= 16)\r\n/* 65: */ {\r\n/* 66: 82 */ i3 /= 4;\r\n/* 67: 83 */ i4 /= 4;\r\n/* 68: 84 */ i5 /= 4;\r\n/* 69: */ }\r\n/* 70: 87 */ this.f[i1] = ((i3 & 0xFF) << 16 | (i4 & 0xFF) << 8 | i5 & 0xFF);\r\n/* 71: */ }\r\n/* 72: 90 */ d();\r\n/* 73: */ }" ]
[ "0.71712565", "0.62798494", "0.62451756", "0.60167205", "0.59546036", "0.59516126", "0.57929903", "0.57711285", "0.5770484", "0.5727716", "0.5725379", "0.57016677", "0.5689231", "0.5689231", "0.5665263", "0.5664648", "0.5631893", "0.56231856", "0.56097585", "0.56067973", "0.5589212", "0.5588692", "0.5583263", "0.5540669", "0.552566", "0.5513128", "0.54828215", "0.5480528", "0.5480039", "0.54786813", "0.5452223", "0.54423106", "0.54406804", "0.54386526", "0.54315037", "0.5424222", "0.54118", "0.54069304", "0.53853345", "0.5377069", "0.5345983", "0.5345007", "0.53400177", "0.5323722", "0.53212994", "0.53212655", "0.5315004", "0.5311777", "0.5309536", "0.53082454", "0.53016376", "0.5292809", "0.5281777", "0.52806", "0.5276245", "0.5267913", "0.5246744", "0.5246534", "0.5246514", "0.5241015", "0.52349836", "0.52171403", "0.5216451", "0.52146256", "0.5199499", "0.5196018", "0.5193287", "0.5191342", "0.51846653", "0.5170384", "0.5167822", "0.5166889", "0.5149046", "0.51328707", "0.51254123", "0.5117269", "0.5116699", "0.5116203", "0.51147294", "0.5113038", "0.5110516", "0.5109019", "0.51086646", "0.5103433", "0.51015943", "0.50996166", "0.5097166", "0.50893754", "0.50858027", "0.5084074", "0.50821656", "0.5081723", "0.5078114", "0.50728405", "0.5068661", "0.50661325", "0.50592643", "0.5058979", "0.5056758", "0.5056352", "0.50558144" ]
0.0
-1
/ renamed from: da
boolean mo29853da() throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void nodata();", "private void limpiarDatos() {\n\t\t\n\t}", "DataList createDataList();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "void mo24178a(ResultData resultdata);", "public abstract ZALogDao mo87644a();", "public String getDA() {\n\t\treturn da;\r\n\t}", "DataFactory getDataFactory();", "void loadData();", "void loadData();", "int getDatenvolumen();", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "static void feladat4() {\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "public void setdat()\n {\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "String getDataSet();", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "public interface DataSourceFromParallelCollection extends DataSource{\n\n public static final String SPLITABLE_ITERATOR = Constants.DATA_SOURCE_FROM_PARALLEL_COLLECTION_SPLIT_ITERATOR;\n\n public static final String CLASS = Constants.DATA_SOURCE_FROM_PARALLEL_COLLECTION_CLASS;\n\n\n}", "public interface DNSDao {\n public List<DNS> getDNS() throws DataAccessException;\n public DNS getDNS(String dominio) throws DataAccessException;\n public void insertDNS(DNS dns);\n public void setTime(DNS dns);\n public void updateTime(DNS dns);\n public void remove(DNS dns);\n public boolean getRobots(String dominio);\n public List<DNS> getRobots() throws DataAccessException;\n}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private void InitData() {\n\t}", "public interface IFileDataTypeReader {\n\t\n\t Map<String, String> getColumnAndDataType(String fileName, ExtendedDetails dbDetails) throws ZeasException;\n\t\n\t List<List<String>> getColumnValues() throws ZeasException;\n}", "@Override\n\tvoid geraDados() {\n\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "protected void loadData()\n {\n }", "public Dataset openTDB(String directory){\n Dataset dataset = TDBFactory.createDataset(directory);\n return dataset;\n}", "DataStore getDataStore ();", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "private void initData() {\n\t}", "private void initData() {\n\n }", "protected abstract void retrievedata();", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "public abstract IMEmoticonRecordDao mo122978a();", "public interface SdaDao extends GenericDao<Sda, Long> {\n}", "String afficherDataSource();", "private DAOLogger() {\n\t}", "public interface DraculaCollection$0$Dracula {\n DraculaArray mo587d();\n}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "B database(S database);", "ConjuntoTDA claves();", "public interface IDataset extends Serializable{\n\t\n\t/**\n\t * Retrieve the data of the data set.\n\t * \n\t * @return an iterator over all data set items in the data set.\n\t */\n\tpublic Iterator<IDatasetItem> iterateOverDatasetItems();\n\t\n\t/**\n\t * Gets a normalizer for the data set.\n\t * \n\t * @return the corresponding normalizer.\n\t */\n\tpublic INormalizer getNormalizer();\n\t\n\t/**\n\t * Gets a immutable map that indicates for each attribute (-tag) if it should be used for clustering.\n\t * @return map of attribute-tags to boolean values \n\t */\n\tpublic ImmutableMap<String, Boolean> getAttributeClusteringConfig();\n\t\n\t/**\n\t * Scales the passed value to the range defined in the data set property files.\n\t * @param value a normalized value\n\t * @param attributeTag the identifier of the attribute\n\t * @return the attribute value in the original scale\n\t */\n\tpublic double denormalize(double value, String attributeTag);\n\t\n}", "public interface DataSourceIterator extends Iterator<Data> {\n\n}", "private void parseData() {\n\t\t\r\n\t}", "static void feladat7() {\n\t}", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "static void feladat9() {\n\t}", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "private Connection dbacademia() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void initData(){\n\n }", "public void GetDataBaseData() {\n }", "protected abstract D createData();", "public abstract void getDataFromDataLogger();", "@Override\n\tpublic void setDataSet(IDataSet ds) {\n\t\t\n\t}", "public void otherRead(IDataHolder dc);", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "public void listar() {\n\t\t\n\t}", "private void initDataLoader() {\n\t}", "private ProcessedDynamicData( ) {\r\n super();\r\n }", "static void perform_adi(String passed){\n\t\tint type = type_of_adi(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tadi_data_with_acc(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "private void verificaData() {\n\t\t\n\t}", "public abstract void loadData();", "public abstract void loadData();", "public interface DataAccessor {\n}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public DataIteratorBuilder createImportDIB(User user, Container container, final DataIteratorBuilder data, DataIteratorContext context)\n {\n final ColumnInfo objectUriColumn = getQueryTable().getObjectUriColumn();\n final Domain domain = getQueryTable().getDomain();\n\n DataIteratorBuilder ret = data;\n if (objectUriColumn != null && domain != null && domain.getProperties().size() > 0)\n {\n ret = new DataIteratorBuilder()\n {\n @Override\n public DataIterator getDataIterator(DataIteratorContext context)\n {\n DataIterator it = data.getDataIterator(context);\n\n Map<String,Integer> colMap = DataIteratorUtil.createColumnNameMap(it);\n Integer objectUriIndex = colMap.get(objectUriColumn.getName());\n SimpleTranslator out = new SimpleTranslator(it, context);\n for (int i=1 ; i<=it.getColumnCount() ; i++)\n {\n if (null != objectUriIndex && i == objectUriIndex)\n out.addCoaleseColumn(objectUriColumn.getName(), i, ()->getQueryTable().createObjectURI());\n else\n out.addColumn(i);\n }\n if (null == objectUriIndex)\n out.addColumn(objectUriColumn, (Supplier)()->getQueryTable().createObjectURI());\n return LoggingDataIterator.wrap(out);\n }\n };\n }\n\n return super.createImportDIB(user, container, ret, context);\n }", "public static void main(String[] args) {\n IAcessoDatos datos = new ImplementacionMySql();\n //datos.listar();\n imprimir(datos);\n \n datos = new ImplementacionOracle();\n //datos.listar();\n imprimir(datos);\n }", "protected abstract void loadData();", "TraceDataView data();", "void populateData();", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public abstract String apachedb(int size);", "Datty getDatty();", "@Override\n\tprotected void initDataSource() {\n\t}", "public void setDA(String da) {\n\t\tthis.da = da;\r\n\t\tfirePropertyChange(ConstantResourceFactory.P_DA,null,da);\r\n\t}", "private void ini_SelectDB()\r\n\t{\r\n\r\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "DataSet toDataSet(Object adaptee);", "private void agregarCelda(Celda celda) {\n // TODO implement here\n }", "@Override\n public void getData(int a, int b) {\n\n }", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "private void initData() {\n }", "private DatarouterStoragePlugin(DatarouterStorageDaosModule daosModule){\n\t\tthis(null, null, null, null, null, null, null, daosModule, null, null, null, null);\n\t}" ]
[ "0.597555", "0.5812203", "0.5685537", "0.5668948", "0.5667987", "0.5667987", "0.5554432", "0.54434186", "0.54307324", "0.53855175", "0.5362441", "0.5334172", "0.5322736", "0.5304629", "0.53026456", "0.5301112", "0.5301112", "0.5298197", "0.52932364", "0.5289486", "0.5279012", "0.5268271", "0.5246886", "0.5236646", "0.5231403", "0.52233917", "0.52080274", "0.5206944", "0.5201233", "0.51867115", "0.5185286", "0.5167813", "0.5163544", "0.516313", "0.51618695", "0.51534784", "0.5151896", "0.5138426", "0.51331973", "0.51266736", "0.5121749", "0.5121749", "0.5121343", "0.5121343", "0.5121343", "0.5121343", "0.5121343", "0.5121343", "0.51203406", "0.5119871", "0.51160234", "0.51123303", "0.51041585", "0.5096939", "0.5096868", "0.5091374", "0.5084981", "0.5083174", "0.5082028", "0.5080116", "0.5075633", "0.5075381", "0.50648963", "0.5058579", "0.50580907", "0.50524634", "0.50500345", "0.5048665", "0.50419563", "0.5039345", "0.5033173", "0.5024816", "0.50216746", "0.50154227", "0.50145805", "0.50135756", "0.5013132", "0.5013132", "0.50118774", "0.5007828", "0.5007754", "0.5005201", "0.500269", "0.50021565", "0.49990606", "0.49919954", "0.49863425", "0.4982502", "0.49810368", "0.4979278", "0.49763155", "0.49747264", "0.49747264", "0.49697858", "0.49633858", "0.49617457", "0.4961496", "0.4961496", "0.4961496", "0.49585444", "0.49571815" ]
0.0
-1
/ renamed from: eb
zzana mo29855eb() throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void initForInspect(AWRequestContext requestContext) {\n\n\t}", "@Override \r\n\tpublic String getName() {\r\n\t\treturn \"Bazooka\";\r\n\t}", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "@Override\n\tprotected void configure() {\n\n\t}", "@Override\n\tpublic void e() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void configure() {\n\t\t\n\t}", "@Override\n\tprotected void initForEdit(AWRequestContext requestContext) {\n\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "@Override\n protected void configure() {\n }", "SqlElasticPoolOperations.DefinitionStages.WithEdition define(String elasticPoolName);", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "BSQLMachine createBSQLMachine();", "public void startAmazonClone() {\n System.err.println(\"Not implemented\");\n }", "protected String xabCB() { return EnterpriseOfferCB.class.getName(); }", "@Override\r\n\tprotected void configure() {\n\t\t\r\n\t}", "private static int toAmazonCode( String cloudState )\r\n \t{\r\n \t\tif (null == cloudState) return 48;\r\n \t\t\r\n \t\t if (cloudState.equalsIgnoreCase( \"Destroyed\" )) return 48;\r\n \t\telse if (cloudState.equalsIgnoreCase( \"Stopped\" )) return 80;\r\n \t\telse if (cloudState.equalsIgnoreCase( \"Running\" )) return 16;\r\n \t\telse if (cloudState.equalsIgnoreCase( \"Starting\" )) return 0;\r\n \t\telse if (cloudState.equalsIgnoreCase( \"Stopping\" )) return 64;\r\n \t\telse return 16;\r\n \t}", "@Override\n\tpublic void configure() {\n\n\t}", "Rack.DefinitionStages.Blank define(String name);", "@Override\n\t\t\t\t\t\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private static final class <init> extends com.ebay.nautilus.kernel.content.\n{\n\n public EbayAppInfo create(EbayContext ebaycontext)\n {\n return new EbayAppInfoImpl(\"com.ebay.mobile\", \"4.1.5.22\", false);\n }", "public BbsOperation () {\r\n\t\tsuper();\r\n\t}", "zzand mo29852bb() throws RemoteException;", "@Override\n public void configure() {\n }", "private String mapToAmazonVolState(String state) {\n if (state.equalsIgnoreCase(\"Allocated\") || state.equalsIgnoreCase(\"Creating\") || state.equalsIgnoreCase(\"Ready\"))\n return \"available\";\n\n if (state.equalsIgnoreCase(\"Destroy\"))\n return \"deleting\";\n\n return \"error\";\n }", "@Override\npublic void processAttributes() {\n\t\n}", "private void config() {\n\t}", "private Aliyun() {\n\t\tsuper();\n\t}", "private HSBC() {\n\t\t\n\t\t\n\t}", "private JacobUtils() {}", "private void registerToEventBusForUpdates(final EventBus eb) {\n eb\n .<JsonObject>consumer(Constants.CACHE_REDIS_EVENTBUS_ADDRESS)\n .handler(message -> {\n LOGGER.fine(\"I have received a message: \" + message.body());\n LOGGER.fine(\"Message type: \" + message.body().getClass().getName());\n writeDataToCache(message);\n });\n }", "public void setBeanstalk(String newValue);", "interface EnvironmentSearchCommandDriver extends SimpleBeanEditorDriver<ClientEnvironmentSearchCommand, EnvironmentManagementPanel> {\n\t}", "@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}", "@Override\n\tpublic void configure(Context arg0) {\n\t\t\n\t}", "zzang mo29839S() throws RemoteException;", "@Override\n protected void startUp() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\t public String getFunctionName() {\r\n\t return \"ExampleAwsLambda\";\r\n\t }", "@Override\n\tprotected void initializeRegionAndEndpoint(ProcessContext context) {\n\t}", "@Override\n public String getName() {\n return \"Service Stability\";\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n public void execute(IEnvironment env)\n {\n \n }", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "@Override\n\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\tLog.d(\"arvi\", \"arvi2222\");\n\t\t}", "public void backEndProcesses() {\n\n }", "@Override\n\tpublic void editExchange() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void configure() throws Exception {\n\t\t\r\n\t}", "@Override public String brokerAddress() { return brokerAddress; }", "@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}", "@Override\n\tpublic void init(EndpointConfig arg0) {\n\t\t\n\t}", "public Object getSBBResourceAdaptorInterface(String str) {\r\n \t\t// currently HttpServlet RA does not have a provider\r\n \t\treturn httpRaSbbinterface;\r\n \t}", "@Override\n protected void prot() {\n }", "private UsingSwig() {\n\t}", "private SpringBoHelper() {\n\n\t}", "private EventProcessorBuilder baseConfig(MockEventSender es) {\n return sendEvents().eventSender(senderFactory(es));\n }", "private static void editPackageExamples(CmsBean cmsBean) throws Exception {\n }", "@Override\n public void feedingHerb() {\n\n }", "private CloudEndpointBuilderHelper() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "private void initialDeploy() {\n }", "@Override\n\tpublic void configure(Context arg0) {\n\n\t}", "CdapDeployAppStep createCdapDeployAppStep();", "private final zzgy zzgb() {\n }", "public NameAndVersionRangeSupport()\n {\n }", "public envio() {\r\n }", "private OwBootstrapToIdMapping()\r\n {\r\n\r\n }", "protected String xinCB() { return EnterpriseCB.class.getName(); }", "protected abstract String getBaseEndpoint();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "OBCArgs createOBCArgs();", "zzafe mo29840Y() throws RemoteException;", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\n public Event initialise(Ec2LaunchConfiguration newResource) {\n return null;\n }", "public void mo21825b() {\n }", "public void sbbActivate() {\n\t}", "@Override\n public void describeTo(Description arg0) {\n \n }", "public String getETag()\r\n/* 219: */ {\r\n/* 220:329 */ return getFirst(\"ETag\");\r\n/* 221: */ }", "@Override\n public void e(String TAG, String msg) {\n }", "public void mo5251b() {\n }", "interface Definition extends DefinitionStages.Blank, DefinitionStages.WithVault, DefinitionStages.WithProperties, DefinitionStages.WithCreate {\n }", "public abstract Address getBootImageStart();", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void gitThis(){\n\t}", "DeployShard() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "String backend();", "private FlyWithWings(){\n\t\t\n\t}", "@FeignClient(name = \"gallery-service\", url = \"http://localhost:8081/\", fallback = StatisticFallbackFactory.class)\npublic interface ServiceFeignClient {\n\n\n // Request. contain way that identical in gallery-service (same signature)\n @RequestLine(\"GET /show\")\n List<Bucket> getAllEmployeesList();\n\n}", "@Override\r\n\t\tpublic void onIOException(IOException e, Object state) {\n\t\t\t\r\n\t\t}", "public void setETag(String eTag) {\n this.eTag = eTag;\n }", "@Override\n protected void appStart() {\n }" ]
[ "0.5039987", "0.5019988", "0.49697474", "0.49548933", "0.49201941", "0.49100652", "0.48835245", "0.48763248", "0.48552603", "0.48527384", "0.482934", "0.48256248", "0.4801418", "0.4801418", "0.4790346", "0.47701338", "0.47695813", "0.47693563", "0.4762543", "0.47582528", "0.47394577", "0.47296536", "0.47283873", "0.47243676", "0.47218385", "0.47073674", "0.47012195", "0.4698688", "0.46981847", "0.46860835", "0.46825248", "0.46662155", "0.46658725", "0.4665072", "0.46610358", "0.4648325", "0.4648325", "0.46444473", "0.46351635", "0.46335965", "0.4627028", "0.46241045", "0.46214405", "0.46113345", "0.4611173", "0.4611173", "0.46105528", "0.46048218", "0.4603859", "0.45970407", "0.45945537", "0.4587771", "0.45836416", "0.4580018", "0.4579671", "0.4579671", "0.4579326", "0.4577679", "0.4574101", "0.4561696", "0.4561521", "0.45510533", "0.4549524", "0.4548286", "0.454542", "0.4542702", "0.45425767", "0.45422137", "0.45379353", "0.4536751", "0.45282555", "0.45277607", "0.45272684", "0.45254937", "0.4525", "0.45233", "0.45208958", "0.45198396", "0.45190364", "0.45140612", "0.45116454", "0.4507149", "0.4499151", "0.44895715", "0.4487513", "0.44774836", "0.44734678", "0.44707748", "0.44668722", "0.44630653", "0.44628528", "0.44601405", "0.44587153", "0.44570985", "0.4453173", "0.44518602", "0.44487852", "0.44452354", "0.44450295", "0.4439624" ]
0.55621266
0
/ renamed from: l
void mo29859l(IObjectWrapper iObjectWrapper) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update(L l);", "@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}", "Link getL();", "public ListVisualiser(SLList l) { \n // Assign SLList pum with argument SLList l\n pum = l;\n }", "void mo1638a(long j, long j2, List list, ayp ayp);", "public double getL() {\n return l;\n }", "protected final void parsel() {\n if (current == 'l') {\n current = read();\n }\n skipSpaces();\n for (;;) {\n switch (current) {\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n\n currentX += x;\n smoothQCenterX = currentX;\n smoothCCenterX = currentX;\n\n currentY += y;\n smoothQCenterY = currentY;\n smoothCCenterY = currentY;\n p.lineTo(smoothCCenterX, smoothCCenterY);\n break;\n default:\n return;\n }\n skipCommaSpaces();\n }\n }", "public void setL(boolean l) {\n\tthis.l = l;\n }", "int mo1635a(long j, List list);", "public void insert(L l);", "private String L() throws SyntaxException, ParserException {\n\t\tswitch (current) {\n\t\t\tcase 'a':\n\t\t\t\t// L -> a\n\t\t\t\teat('a');\n\t\t\t\treturn \"a\";\n\t\t\tcase 'b':\n\t\t\t\t// L -> b\n\t\t\t\teat('b');\n\t\t\t\treturn \"b\";\n\t\t\tcase 'c':\n\t\t\t\t// L -> c\n\t\t\t\teat('c');\n\t\t\t\treturn \"c\";\n\t\t\tdefault:\n\t\t\t\tthrow new SyntaxException(ErrorType.NO_RULE,current);\n\t\t}\n\t}", "public String toString()\n {\n return ll.toString();\n }", "private void m19310n(Long l) {\n if (l.longValue() > 0) {\n String by = C8759b.m25586by(l.longValue());\n if (!TextUtils.isEmpty(by)) {\n ((C6637c) getMvpView()).mo29960i(mo30015io(by));\n }\n }\n }", "void mo54447l(int i);", "private static String lIllIlIlll(int lIlIllllIlIlIIl, float lIllllllIlIlIIl) {\n }", "public static void createListFromLong(ArrayList<Integer> list, long l) {\n\n\t\tint individualNum = 0;\n\t\n\t\twhile(l > 0) {\n\t\t\tindividualNum = (int) (l % 10);\n\t\t\tl /= 10;\n\t\t\t\n\t\t\tlist.add(individualNum);\n\t\t}\n\t\t\n\t\tCollections.reverse(list);\n\t}", "protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }", "public void m() {\n for (Map.Entry key : this.f80656a.a().entrySet()) {\n List list = (List) key.getKey();\n if (!this.l.contains(list)) {\n this.l.add(d.a(list));\n }\n }\n if (this.l.size() > 0) {\n this.f80657b.a(new f(), this.l);\n }\n }", "void setLsPersonne(ArrayList<Personne> l) {\n this.lsPersonne = l;\n }", "public void listar() {\n\t\t\n\t}", "public LinearList(Location bl, Location tr)\r\n {\r\n super(bl, tr);\r\n }", "int mo13159a(List<Log> list);", "public LinearList(Location tr)\r\n {\r\n super(tr);\r\n }", "Lifeline getLifeline();", "public Vertex(L l) {\n\t\tlabel = l;\n\t}", "private static String lIlIIllIl(double lllIllIllllIIll, char IlIlllIllllIIll) {\n }", "public abstract void mo9247b(String str, long j, List<String> list);", "public static <C> C LELT(LIST<C> L, int i) {\n C x = null;\n if ( ! isNull( L ) ) {\n x = L.list.get(i);\n }\n return x;\n }", "public static <C> LIST<C> RED(LIST<C> L) {\n if ( isNull( L ) ) {\n return L;\n }\n LIST<C> LP = L;\n // ok: LP = new LIST<C>( L.list.subList(1,L.list.size()) );\n if ( L.iter == null ) {\n LP = new LIST<C>( L.list );\n LP.iter = LP.list.iterator();\n C x = LP.iter.next();\n //System.out.println(\"x = \" + x);\n } // else noop\n return LP;\n }", "public DistinctLDiversity(String attribute, int l){\n super(attribute, l, true, true);\n }", "protected final void parseL() {\n if (current == 'L') {\n current = read();\n }\n skipSpaces();\n for (;;) {\n switch (current) {\n case '+': case '-': case '.':\n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n float x = parseNumber();\n skipCommaSpaces();\n float y = parseNumber();\n\n currentX = x;\n smoothQCenterX = x;\n smoothCCenterX = x;\n\n currentY = y;\n smoothQCenterY = y;\n smoothCCenterY = y;\n\n p.lineTo(smoothCCenterX, smoothCCenterY);\n break;\n default:\n return;\n }\n skipCommaSpaces();\n }\n }", "public String toStringPrologFormatListLo()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Location lo : this.listLocation)\r\n\t\t{\r\n\t\t\toutput += lo.LocationToStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\treturn output;\t\r\n\t}", "public static <C> LIST<C> RED4(LIST<C> L, int i) {\n LIST<C> LP = null;\n if ( ! isNull( L ) ) {\n LP = new LIST<C>( L.list.subList(42,L.list.size()) );\n }\n return LP;\n }", "private int ls(final int x) {\n assert(! leaf(x));\n return 2*x+1;\n }", "static void visit (Node node, int[] lev, Node[] list) {\n\t\t\n\t}", "private static interface T {@Symbolic Term.List t();}", "public Set<V> getL() {\n\t\treturn L;\n\t}", "public ElementIterator (PositionList<E> l) {\n\t\tlist = l;\t//Guardo la referencia a la lista a iterar\n\t\tif(list.isEmpty()) cursor = null; //Si la lista esta vacia la posicion corriente es nula\n\t\telse\n\t\t\ttry {\n\t\t\t\tcursor = list.first();//sino la posicion corriente es la primerea de la lista\n\t\t\t} catch (EmptyListException e) {e.printStackTrace();}\n\t}", "public final void mL() throws RecognitionException {\n try {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:538:11: ( ( 'l' | 'L' ) )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:538:13: ( 'l' | 'L' )\n {\n if ( input.LA(1)=='L'||input.LA(1)=='l' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n }\n finally {\n }\n }", "private static String lllIIllIl(short IIIlIIlllllIIll, String IIIIlIlllllIIll) {\n }", "public void addLVA(LV l) {\r\n ZugewieseneLV.add(l);\r\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "LList2(int size) {\r\n\t\tthis();\r\n\t}", "public ElementIterator(List l) {\n\t myList = l;\n\t }", "public LinearList(Location bl, Location br, Location tl, Location tr)\r\n {\r\n super(bl, br, tl, tr);\r\n }", "public List<BlockPosition> e()\r\n/* 228: */ {\r\n/* 229:238 */ return this.j;\r\n/* 230: */ }", "public void setL(double value) {\n this.l = value;\n }", "private void addNodes(TreeNode root, int l, List<Integer> res) {\r\n if (l < 0 || root == null) return;\r\n\r\n if (l == 0) {\r\n res.add(root.val);\r\n return;\r\n }\r\n\r\n // l > 0\r\n addNodes(root.left, l - 1, res);\r\n addNodes(root.right, l - 1, res);\r\n return;\r\n }", "@ReflectiveMethod(name = \"l\", types = {})\n public void l(){\n NMSWrapper.getInstance().exec(nmsObject);\n }", "private void log(String l) {\n if (LOG) {\n System.out.println(\"RotationMatrixTest.\" + l);\n }\n }", "private byte l() {\r\n\t\treturn left_map;\r\n\t}", "public void l()\r\n/* 190: */ {\r\n/* 191:221 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 192:222 */ this.a[i] = null;\r\n/* 193: */ }\r\n/* 194: */ }", "public void printLongBinary(long l) {\n\t}", "private void c()\r\n/* 91: */ {\r\n/* 92:103 */ for (cvl localcvl : this.d) {\r\n/* 93:104 */ localcvl.a(this);\r\n/* 94: */ }\r\n/* 95: */ }", "public void appendInPlace (List l) {\n\t\tif (this.isEmpty()) {\n\t\t\tmyHead = l.myHead;\n\t\t\tmySize = l.mySize;\n\t\t\tmyTail = l.myTail;\n\t\t}\n\t\telse if (l.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tmyTail.myNext = l.myHead;\n\t\t\tmyTail = l.myTail;\n\t\t\tmySize += l.mySize;\n\t\t}\n\t}", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Listed p, A arg)\n {\n\n for (Expression x : p.listexpression_) {\n }\n\n return null;\n }", "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public static void drawLString(String l) {\n\t\tdouble move = computeScale(l);\n\n\t\tdouble xpos = 0.5;\n\t\tdouble ypos = 0.5;\n\t\tdouble xdir = 1*move;\n\t\tdouble ydir = 0*move;\n\n\t\tfor (int i = 0; i < l.length(); i++) {\n\t\t\tif (l.charAt(i) == 'F' || l.charAt(i) == 'H') {\n\n\t\t\t\tStdDraw.line(xpos, ypos, xpos+xdir, ypos+ydir);\n\t\t\t\txpos = xpos+xdir;\n\t\t\t\typos = ypos+ydir;\n\t\t\t}\n\t\t\tif (l.charAt(i) == '+') {\n\t\t\t\tdouble temp = 0;\n\t\t\t\ttemp = xdir;\n\t\t\t\txdir = ydir;\n\t\t\t\tydir = -temp;\n\n\t\t\t}\n\t\t\tif (l.charAt(i) == '-') {\n\t\t\t\tdouble temp = 0;\n\t\t\t\ttemp = xdir;\n\t\t\t\txdir = -ydir;\n\t\t\t\tydir = temp;\n\n\t\t\t}\n\t\t}\n\t}", "public String getLcode()\n/* */ {\n/* 47 */ return this.lcode;\n/* */ }", "public static <C> LIST<C> RED2(LIST<C> L, int i) {\n LIST<C> LP = null;\n if ( ! isNull( L ) ) {\n LP = new LIST<C>( L.list.subList(2,L.list.size()) );\n }\n return LP;\n }", "void mo1943l();", "public void mo24953c(Long l) {\n if (C6638d.this.dcI.contains(l)) {\n C6638d.this.m19312t(l);\n }\n }", "@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.List, java.util.AbstractList\n public final /* synthetic */ void add(int i, Long l) {\n zzk(i, l.longValue());\n }", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "public static void bi_vl() {\n\t}", "Order(int t, int l) {\n this.t = t;\n this.l = l;\n }", "public String resolveLineNumber(int l) {\n \t\treturn null;\n \t}", "public static void c1_vl() {\n\t}", "@java.lang.Override\n public java.lang.String getL() {\n java.lang.Object ref = l_;\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 l_ = s;\n return s;\n }\n }", "public Collection<V> l_() {\n return new d(this);\n }", "public Left(L left) {\n x = left;\n }", "public static String getLocalLabel() {\r\n\t\treturn \"l\" + SEQ_LOCAL_LABEL++;\r\n\t}", "void mo100444b(List<C40429b> list);", "public int getSecondL() {\n/* 54 */ return this.secondL;\n/* */ }", "public final void accept(List<l> list) {\n com.iqoption.core.data.b.c a = this.dlr.dlm;\n kotlin.jvm.internal.h.d(list, \"it\");\n a.setValue(list);\n }", "public void mo27390p(Long l) {\n if (C6638d.this.dcI.contains(l)) {\n C6638d.this.mo30003aH(l.longValue());\n }\n }", "public LA glb(LA[] list) {\n LA result = this.top();\n for (int i = 0; i < list.length; i++) {\n result = this.meet(result, list[i]);\n }\n return result;\n }", "public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }", "public static void printList(List l)\r\n\t{\r\n\t\tSystem.out.print(\"[\");\r\n\t\tif(l.size()>0)\r\n\t\t{\r\n\t\t\tfor(int i = 0; i < l.size()-1; i++)\r\n\t\t\t\tSystem.out.print(l.get(i) + \", \");\r\n\t\t\tSystem.out.print(l.get(l.size()-1));\r\n\t\t}\r\n\t\tSystem.out.print(\"]\\n\");\r\n\t\t\r\n\t}", "List<Log> mo13160a(String str, int i);", "public void genLists() {\n\t}", "public void iterateAll(LinkedList<Point> l) {\n if (_subdivided) {\n _northEast.iterateAll(l);\n _northWest.iterateAll(l);\n _southWest.iterateAll(l);\n _southEast.iterateAll(l);\n } else {\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n l.add(it.next());\n }\n }\n }", "public void asignar_Lista(Lista<Lado> l) {\n\t\tthis.list = l;\n\t}", "public QueryCore(String query,List<Object> l)\n {\n this.query = query;\n this.l = l;\n }", "@Override\n public Vector getL(Point3D point) {\n // the L vector is same as the point light L vector\n return super.getL(point);\n }", "private void greenstype(String l) {\n\t\t\n\t\tSystem.out.println(\"Course type is\"+l);\n\n\t}", "public void setLongueur(int l) {\n\t\tthis.longueur = l;\n\t}", "public static List<RDFNode> asJavaList(Resource l) {\n List<RDFNode> result = new ArrayList<RDFNode>();\n Model m = l.getModel();\n while (!l.equals(RDF.nil)) {\n Statement first = l.getProperty(RDF.first);\n Statement rest = l.getProperty(RDF.rest);\n if (first == null) {\n result.add(Vocab.missingListElement.inModel(m));\n } else {\n result.add(first.getObject());\n }\n if (rest == null) {\n result.add(Vocab.missingListTail.inModel(m));\n break;\n }\n l = rest.getResource();\n }\n return result;\n }", "public static <C> void SRED(LIST<C> L, LIST<C> LP) {\n if ( ! isNull( L ) ) {\n L.list.subList(1,L.list.size()).clear(); \n if ( ! isEmpty( LP ) ) {\n L.list.addAll( LP.list );\n }\n }\n\n }", "public T(Object o){\r\n\t\tl = o;\r\n\t}", "public static LuaNumber valueOf(long l) {\n int i = (int) l;\n if (i == l) {\n return valueOf(i);\n } else {\n return LuaDouble.valueOf(l);\n }\n }", "public abstract void mo56923b(List<C4122e> list);", "public void mo21787L() {\n }", "private Label removeLabel(Label l) {\n \t\tLabel ret = (Label) l.next;\n \t\tmLabels = (Label) mPool.release(mLabels, l);\n \n \t\treturn ret;\n \t}", "static void opration(){ \n System.out.println(\"Final veriable value l:\"+l+\"\\nj:\"+j);\n // l=l+2; erorr it can't change it's value\n \n }", "private static String llllIlIlll(String IlIllIllIlIlIIl, byte IIIllIllIlIlIIl) {\n }", "static void perform_lhld(String passed){\n\t\tint type = type_of_lhld(passed);\n\t\tif(type==1)\n\t\t\tlhld_from_mem(passed);\n\t}", "private List<View> m9533a(List<View> list, List<View> list2) {\n LinkedList linkedList = new LinkedList();\n if (list != null && !list.isEmpty()) {\n int size = list.size();\n for (int i = 0; i < size; i++) {\n linkedList.add(list.get(i));\n }\n }\n if (list2 != null && !list2.isEmpty()) {\n int size2 = list2.size();\n for (int i2 = 0; i2 < size2; i2++) {\n linkedList.add(list2.get(i2));\n }\n }\n return linkedList;\n }", "public void a(cvl paramcvl)\r\n/* 84: */ {\r\n/* 85: 97 */ this.d.add(paramcvl);\r\n/* 86: */ \r\n/* 87: 99 */ paramcvl.a(this);\r\n/* 88: */ }", "@Override // com.google.android.gms.internal.firebase_ml.zzsq, java.util.List, java.util.AbstractList\n public final /* synthetic */ Long set(int i, Long l) {\n long longValue = l.longValue();\n zzpu();\n zzci(i);\n long[] jArr = this.zzbqi;\n long j = jArr[i];\n jArr[i] = longValue;\n return Long.valueOf(j);\n }", "boolean m6609a(List<Log> list);" ]
[ "0.62813175", "0.61551964", "0.602221", "0.6017407", "0.5790485", "0.5774596", "0.5752419", "0.5747054", "0.57128656", "0.57127124", "0.5709756", "0.5706841", "0.56941026", "0.56859946", "0.567848", "0.562596", "0.5616853", "0.56087995", "0.56049234", "0.5599611", "0.55777794", "0.55719775", "0.5538432", "0.55322593", "0.5527334", "0.5513721", "0.5507753", "0.5497762", "0.5496287", "0.5494667", "0.5483236", "0.54817593", "0.54484206", "0.54444534", "0.5440681", "0.5426555", "0.54221815", "0.5422046", "0.5417693", "0.54164296", "0.5414952", "0.5405853", "0.5393479", "0.5388298", "0.5387013", "0.5382374", "0.53783125", "0.53649724", "0.5324572", "0.5317305", "0.53132445", "0.5312278", "0.53016573", "0.52951735", "0.52891785", "0.52757007", "0.526529", "0.526485", "0.5256512", "0.52508354", "0.52457845", "0.52448016", "0.52027684", "0.51913184", "0.519021", "0.5184662", "0.51805586", "0.5179166", "0.51731116", "0.51721525", "0.51719797", "0.5169991", "0.51679873", "0.5167065", "0.51628715", "0.5157698", "0.51553917", "0.51548314", "0.51542556", "0.5151149", "0.51417583", "0.51390827", "0.51380855", "0.51351017", "0.51284575", "0.51276684", "0.5122393", "0.51222694", "0.5120725", "0.51166373", "0.51139235", "0.51127094", "0.5112327", "0.5099055", "0.5098096", "0.5094878", "0.5088205", "0.5085277", "0.50837266", "0.5081087", "0.5078956" ]
0.0
-1
/ renamed from: m
void mo29860m(IObjectWrapper iObjectWrapper) throws RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m2() {\n\n\t}", "void mo1506m();", "int getM();", "private void m50366E() {\n }", "@Override\n\tpublic void m2() {\n\t\t\n\t}", "void m2();", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public void int1_m() {\n\t\t\n\t}", "@Override\n\tpublic void m1() {\n\t\t\n\t}", "protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }", "public void mo21788M() {\n }", "void m21();", "public void int2_m() {\n\t\t\n\t}", "public int GetM()\r\n\t{\r\n\t\treturn M;\r\n\t}", "@Override\n\tpublic void m3() {\n\t\t\n\t}", "void m1();", "void m1();", "void m() {\n\t\ti = 0;\r\n\t\tthis.m(\"\");\r\n\t}", "public void m23075a() {\n }", "public final void m2() {\n\r\n }", "public int getM () {\n\t\treturn M;\n\t}", "public int getM() {\n return m_;\n }", "void m(int i) {\r\n\t}", "private void m50367F() {\n }", "static void m2(){\n\t}", "void m22();", "void m1864a() {\r\n }", "public int getM() {\n return m_;\n }", "public abstract Member mo23408O();", "public void mo21877s() {\n }", "static public double m2yard(double m){\n\t\treturn m*1.0936;\n\t}", "public double getM() {\r\n return m;\r\n }", "void mo46242a(bmc bmc);", "public void mo4359a() {\n }", "@Override\n\tpublic void m() {\n\t\tSystem.out.println(\"m\");\n\t\t\n\t}", "public void mo21787L() {\n }", "@ReflectiveMethod(name = \"m\", types = {})\n public void m(){\n NMSWrapper.getInstance().exec(nmsObject);\n }", "abstract void m1();", "@Override\n\tpublic void m2() {\n\t\t\n\t\tSystem.out.println(\"m2\");\n\t\t\n\t}", "public abstract Integer mo36210m();", "@Override\n\tpublic void m4() {\n\t\t\n\t\tSystem.out.println(\"m4\");\n\t\t\n\t}", "public void mo21779D() {\n }", "public MMAge(){\n\t\t\n\t}", "static void vecToM(Vec a, DMatrixRMaj m) {\n for (int i=0; i<a.N; ++i) {\n m.unsafe_set(i, 0, a.v[i]);\n }\n }", "public abstract void m15813a();", "public void mo21782G() {\n }", "public abstract void mo2624j();", "interface M1 {\n\t\t void s1();\n\t\t void s2();\n\t}", "public void mo3376r() {\n }", "public void mo12930a() {\n }", "public void mo21825b() {\n }", "public void mo21793R() {\n }", "@Override\r\n\t\tvoid m() {\n\t\t\tSystem.out.println(\"m\");\r\n\t\t}", "public abstract C7034m mo24416a();", "public void mo23813b() {\n }", "B setM1(M1 m1);", "B setM1(M1 m1);", "public void mo12628c() {\n }", "public void mo21785J() {\n }", "public abstract C0270jy mo5354b();", "public void method_4270() {}", "public TransformationMatrix(TransformationMatrix m) {\n\t\ta11 = m.a11; a12 = m.a12; a13 = m.a13; a14 = m.a14;\n\t\ta21 = m.a21; a22 = m.a22; a23 = m.a23; a24 = m.a24;\n\t\ta31 = m.a31; a32 = m.a32; a33 = m.a33; a34 = m.a34;\n\t}", "@Override\n\tpublic void m1() {\n\t\tSystem.out.println(\"m1--------A1\");\n\t\t\n\t}", "public abstract String mo13682d();", "public void mo38117a() {\n }", "public void mo1403c() {\n }", "public void mo1405e() {\n }", "public abstract Object mo26777y();", "public void mo3749d() {\n }", "public int m()\r\n/* 485: */ {\r\n/* 486:497 */ int i = 0;\r\n/* 487:498 */ for (int j = 0; j < this.b.length; j++) {\r\n/* 488:499 */ if ((this.b[j] != null) && ((this.b[j].b() instanceof ajn)))\r\n/* 489: */ {\r\n/* 490:500 */ int k = ((ajn)this.b[j].b()).c;\r\n/* 491:501 */ i += k;\r\n/* 492: */ }\r\n/* 493: */ }\r\n/* 494:504 */ return i;\r\n/* 495: */ }", "public abstract void mo70713b();", "public void mo21794S() {\n }", "void mo57277b();", "public void mo3370l() {\n }", "public abstract int mo9754s();", "public abstract void mo27385c();", "public abstract C14408a mo11607a();", "@Override\n\tpublic void abs2_m1() {\n\t\t\n\t}", "default void m2() {\n System.out.println(\"I4.m2()\");\n }", "public abstract Object mo1771a();", "public void mo21878t() {\n }", "void m(String s) {\n\t\tthis.m(getter(), 1);\r\n\t}", "public void mo2471e() {\n }", "C7562b<C10403b, C10328a> mo25041a();", "public abstract String mo118046b();", "public abstract String mo9751p();", "public abstract AnnotationMap mo30683d();", "@Override\r\n\t\t\tpublic void m1() {\n\t\t\t\tSystem.out.println(\"We are in method m1\");\r\n\t\t\t}", "public abstract void mo42331g();", "public abstract Object mo1185b();", "public void mo21789N() {\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public void mo1531a() {\n }", "public void mo9137b() {\n }", "public static void mult(TransformationMatrix l, TransformationMatrix r, TransformationMatrix m) {\n\t\tm.a11 = l.a11*r.a11 + l.a12*r.a21 + l.a13*r.a31;\n\t\tm.a12 = l.a11*r.a12 + l.a12*r.a22 + l.a13*r.a32;\n\t\tm.a13 = l.a11*r.a13 + l.a12*r.a23 + l.a13*r.a33;\n\t\tm.a14 = l.a11*r.a14 + l.a12*r.a24 + l.a13*r.a34 + l.a14;\n\t\tm.a21 = l.a21*r.a11 + l.a22*r.a21 + l.a23*r.a31;\n\t\tm.a22 = l.a21*r.a12 + l.a22*r.a22 + l.a23*r.a32;\n\t\tm.a23 = l.a21*r.a13 + l.a22*r.a23 + l.a23*r.a33;\n\t\tm.a24 = l.a21*r.a14 + l.a22*r.a24 + l.a23*r.a34 + l.a24;\n\t\tm.a31 = l.a31*r.a11 + l.a32*r.a21 + l.a33*r.a31;\n\t\tm.a32 = l.a31*r.a12 + l.a32*r.a22 + l.a33*r.a32;\n\t\tm.a33 = l.a31*r.a13 + l.a32*r.a23 + l.a33*r.a33;\n\t\tm.a34 = l.a31*r.a14 + l.a32*r.a24 + l.a33*r.a34 + l.a34;\n\t}", "public void mo5382o() {\n }", "public void mo56167c() {\n }", "void mo6247nm(int i);", "public void mo21791P() {\n }", "public abstract void mo6549b();", "public void mo97908d() {\n }" ]
[ "0.641838", "0.63440764", "0.6297184", "0.62653667", "0.6201911", "0.61844677", "0.6178624", "0.616821", "0.61472493", "0.61229753", "0.6061683", "0.60435426", "0.6030375", "0.60294557", "0.59688187", "0.5936638", "0.5936638", "0.59331846", "0.59072757", "0.5895345", "0.58943033", "0.5883072", "0.5862826", "0.58542365", "0.5811219", "0.5799635", "0.5738901", "0.5733714", "0.57235366", "0.5720218", "0.57151616", "0.56752557", "0.56621397", "0.5660599", "0.5646128", "0.56291807", "0.56094736", "0.5607657", "0.55856925", "0.55803186", "0.55737275", "0.55717444", "0.5567145", "0.5564673", "0.5560888", "0.55426735", "0.5534135", "0.5532894", "0.55317247", "0.55306995", "0.55274236", "0.55251706", "0.55251473", "0.5523313", "0.5520782", "0.5514389", "0.5514389", "0.55135417", "0.5510743", "0.55071783", "0.5505314", "0.5505209", "0.5504585", "0.5502411", "0.5500329", "0.54996526", "0.5497185", "0.5492703", "0.5490061", "0.54881793", "0.54851705", "0.548505", "0.548268", "0.54685223", "0.54610795", "0.54597807", "0.54563046", "0.54461473", "0.543648", "0.5434772", "0.5434755", "0.5434685", "0.5430827", "0.5430558", "0.54302937", "0.54300046", "0.5421456", "0.54192257", "0.54178536", "0.54163253", "0.54140675", "0.54102623", "0.54101557", "0.5408024", "0.539493", "0.53893507", "0.5388938", "0.5388713", "0.538782", "0.5386722", "0.53858155" ]
0.0
-1
Send the data to php
public void senddata(View g) { new CreateUsers().execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void postData() {\n\n\t}", "public void sendData(String data, int numCapteur);", "@Override\n\tpublic void sendPacket() {\n\t\t\n\t\tStringBuilder theURL = new StringBuilder();\n\t\t\n\t\ttheURL.append(core.modelCore.targetURL);\n\t\ttheURL.append(\"michael/updateevent.php?\");\n\t\ttheURL.append(\"page=\" + \"eleven\" +\"&\"); //page = \"three\"&\n\t\ttheURL.append(\"name=\" + core.modelCore.selectedEvent.eventName +\"&\");\n\t\ttheURL.append(\"answer=\" + yesBox.isChecked() +\"&\");\n\t\ttheURL.append(\"user=\" + core.modelCore.username);\n\t\t\n\t\tSystem.out.println( theURL.toString() );\n\t\t\n\t\tLogic_PHP.getResponseFromURL(core, theURL.toString());\n\t}", "public void sendData(String data) {// send data\n\t\tthis.data = data;\n\t\tthis.start();// spin up a new thread to send data\n\t}", "private void sendData() {\r\n //PACK DATA IN A BUNDLE\r\n Bundle bundle = new Bundle();\r\n bundle.putString(\"FACY\", shopN);\r\n //PASS OVER THE BUNDLE TO OUR FRAGMENT\r\n CustomerReview myFragment1 = new CustomerReview();\r\n myFragment1.setArguments(bundle);\r\n\r\n }", "private void sendData() {\n String Own_Easting = OEast.getText().toString();\n String Own_Northing = ONorth.getText().toString();\n String En_Easting = EEast.getText().toString();\n String En_nothing = ENorth.getText().toString();\n String OTbg = OTBG.getText().toString();\n String rt=Rt.getText().toString();\n String add=Add.getText().toString();\n\n DB bg = new DB(this);\n bg.execute(Own_Easting,Own_Northing,En_Easting,En_nothing\n ,OTbg,rt,add);\n\n }", "private void EnviarDatos(String data) \n {\n\n try \n {\n Output.write(data.getBytes());\n\n } catch (IOException e) {\n\n System.exit(ERROR);\n }\n }", "private void sendLocalParamData(){\n String json = gson.toJson(parameters);\n getJSON(hostUrl + sendLocalParamScript.getFilename() + \"?matchId=\" + matchId + \"&param=\" + json, 2000);\n }", "public void sendData(byte[] data) {\r\n\t\t//send packet\r\n\t\ttry {\r\n\t\t\tout.write(data);\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void sendPacket() {\n\t\t\n\t\tAbstract_StepPage currentPage = (Abstract_StepPage) core.currentScreen;\n\t\t\n\t\tStringBuilder theURL = new StringBuilder();\n\t\t\n\t\ttheURL.append(core.modelCore.targetURL);\n\t\ttheURL.append(\"michael/updateevent.php?\");\n\t\ttheURL.append(\"page=\" + \"four\" +\"&\"); //page = \"three\"&\n\t\ttheURL.append(\"name=\" + core.modelCore.selectedEvent.eventName +\"&\");\n\t\ttheURL.append(\"answer=\" + yesBox.isChecked() +\"&\");\n\t\ttheURL.append(\"user=\" + core.modelCore.username);\n\t\t\n\t\tSystem.out.println( theURL.toString() );\n\t\t\n\t\tLogic_PHP.getResponseFromURL(core, theURL.toString());\n\t}", "protected final boolean send(final Object data) {\n\t\t// enviamos los datos\n\t\treturn this.send(data, null);\n\t}", "public void sendDataToESP(String data){\n\n\n URL remoteurl = null;\n String baseurl = \"http://\"+IpAddress+\"/\";\n String urlString = baseurl + data;\n System.out.println(urlString);\n try {\n remoteurl = new URL(urlString);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n new AutoActivity.pingit().execute(remoteurl);\n }", "public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "void sendData(String msg) throws IOException\n {\n if ( msg.length() == 0 ) return;\n//\n msg += \"\\n\";\n// Log.d(msg, msg);\n if (outputStream != null)\n outputStream.write(msg.getBytes());\n// myLabel.setText(\"Data Sent\");\n// myTextbox.setText(\" \");\n }", "@Override\n\tpublic void sendData(CharSequence data) {\n\t\t\n\t}", "public void postData()\n\t{\n\t\tnew NetworkingTask().execute(message);\n\t}", "private void erweimaHttpPost() {\n\t\tHttpUtils httpUtils = new HttpUtils();\n\t\tUtils utils = new Utils();\n\t\tString[] verstring = utils.getVersionInfo(getActivity());\n\t\tRequestParams params = new RequestParams();\n\t\tparams.addHeader(\"ccq\", utils.getSystemVersion()+\",\"+ verstring[0]+\",\"+verstring[2]);\n\t\tparams.addBodyParameter(\"token\",\n\t\t\t\tnew DButil().gettoken(getActivity()));\n\t\tparams.addBodyParameter(\"member_id\",\n\t\t\t\tnew DButil().getMember_id(getActivity()));\n\t\thttpUtils.send(HttpMethod.POST, JiekouUtils.TUIGUANGERWEIMA, params,\n\t\t\t\tnew RequestCallBack<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t\t// handler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\terweimaJsonInfo(arg0.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n\tpublic void sendData(int type, byte[] data) {\n\t\t\n\t}", "protected void sendDataToRobot(byte[] data) {\n\t\thandler.sendData(data);\n\t}", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }", "private void sendData(String message) {\n\t\t\ttry {\n\t\t\t\toutput.writeObject(message);\n\t\t\t\toutput.flush(); // flush output to client\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"\\nError writing object\");\n\t\t\t}\n\t\t}", "public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}", "private void sendData(String data) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending data: '\" + data + \"'\");\n\n\t\t\t\t// open the streams and send the \"y\" character\n\t\t\t\toutput = serialPort.getOutputStream();\n\t\t\t\toutput.write(data.getBytes());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}", "private void postData() {\n\n\t\tString result = \"\";\n\t\ttry {\n\t\t\tLog.d(\"LOgg\", \"INpost\");\n\t\t\tJSONObject json = new JSONObject();\n\t\t\tjson.put(\"firstname\", fname);\n\t\t\tjson.put(\"lastname\", lname);\n\t\t\tjson.put(\"phone\", contactno);\n\t\t\tjson.put(\"password\", password);\n\t\t\tjson.put(\"email\", email);\n\t\t\tjson.put(\"longitude\", longitude);\n\t\t\tjson.put(\"latitude\", latitude);\n\n\t\t\tHttpParams httpParams = new BasicHttpParams();\n\t\t\tHttpConnectionParams.setConnectionTimeout(httpParams, 1000000);\n\t\t\tHttpConnectionParams.setSoTimeout(httpParams, 1000000);\n\t\t\tHttpClient client = new DefaultHttpClient(httpParams);\n\t\t\tString link = StaticData.SERVER_URL;\n\t\t\tString url = link + \"register.php\";\n\n\t\t\tHttpPost request = new HttpPost(url);\n\t\t\trequest.setEntity(new ByteArrayEntity(json.toString().getBytes(\n\t\t\t\t\t\"UTF8\")));\n\n\t\t\trequest.setHeader(\"Accept\", \"application/json\");\n\t\t\trequest.setHeader(\"Content-type\", \"application/json\");\n\n\t\t\trequest.setHeader(\"json\", json.toString());\n\n\t\t\tHttpResponse response = client.execute(request);\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\t// If the response does not enclose an entity, there is no need\n\n\t\t\tif (entity != null) {\n\t\t\t\tInputStream instream = entity.getContent();\n\n\t\t\t\tresult = RestClient.convertStreamToString(instream);\n\t\t\t\tLog.i(\"Read from server\", result);\n\t\t\t}\n\n\t\t} catch (Exception t) {\n\t\t\tLog.e(\"postData\", t.toString());\n\t\t}\n\n\t\ttry {\n\t\t\tLog.i(\"result\", result);\n\t\t\tResponse_code = result;\n\t\t\tLog.e(\"Result....\", \"....\" + Response_code);\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tLog.e(\"Result\", \"....\" + e.toString());\n\t\t}\n\n\t\ttry {\n\t\t\tjobj = new JSONObject(Response_code);\n\t\t\tlogin_result = jobj.getString(\"ResponseCode\");\n\t\t\t// Response_msg = jobj.getString(\"ResponseMsg\");\n\t\t\tLog.e(\"Result\", \"....\" + login_result);\n\t\t\t// JSONObject jobj1 = new JSONObject(\"userdetail\");\n\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.w(\"JSONException\", e.toString());\n\t\t} catch (NullPointerException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.w(\"null\", e.toString());\n\t\t}\n\n\t}", "public void onClickSend(View view) {\n //String string = editText.getText().toString();\n //serialPort.write(string.getBytes());\n //tvAppend(txtResponse, \"\\nData Sent : \" + string + \"\\n\");\n }", "public void doPost() throws IOException {\n\n String otherContent = \".\";\n\n int contentLength = 0;\n\n while (!otherContent.equals(\"\")) {\n otherContent = in.readLine();\n if (otherContent.startsWith(\"Content-Length\")) {\n contentLength = Integer.parseInt(otherContent.split(\" \")[1]);\n }\n }\n\n char[] buffer = new char[contentLength];\n this.in.read(buffer, 0, contentLength); // read parameter\n\n String parameters = decodeValue(new String(buffer));\n\n // traiter le buffer\n\n String[] fileType = this.url.split(\".\");\n\n\n// if (fileType[1].equals(\"php\")) {\n\n String path = RESOURCE_DIRECTORY + this.url;\n String output = this.execPHP(path, parameters);\n this.statusCode = OK;\n sendHeader(statusCode, \"text/html\", output.length());\n sendBodyByte(output.getBytes());\n// } else {\n//\n// byte[] contentByte = null;\n//\n// try {\n// contentByte = ToolBox.readFileByte(RESSOURCE_DIRECTORY, this.url);\n// this.statusCode = OK;\n// ContentType contentType = new ContentType(this.extension);\n// sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n// } catch (IOException e) {\n// System.out.println(\"Ressource non trouvé\");\n// statusCode = NOT_FOUND;\n// contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n// sendHeader(statusCode, \"text/html\", contentByte.length);\n// }\n// sendBodyByte(contentByte);\n// }\n }", "private void sendData(String name, String xCor, String yCor) {\n\t\tint priority = _priorityCh.getSelectedIndex() + 1;\n\t\tdouble xCorD = Double.parseDouble(xCor);\n\t\tdouble yCorD = Double.parseDouble(yCor);\n\n\t\tif (!_clientControl.ifConnect()) {\n\t\t\t_missionTa.append(\"Server not found\\n\\n\");\n\t\t\t_ls.writeLog(\"Server not found\\n\\n\");\n\t\t} else {// Write data to server\n\t\t\t_clientControl.writeToServer(Status.cordinates, priority, xCorD, yCorD);\n\t\t\t// Display to the text area\n\t\t\tif (_clientControl.readIntFromServer() == 1) {\n\t\t\t\t_missionTa.append(\"Id Code: \" + _clientControl.readIntFromServer() + \"\\n\");\n\t\t\t\t_missionTa.append(\"Mission nearest coordinates: \" + _clientControl.readDblFromServer() + \", \"\n\t\t\t\t\t\t+ _clientControl.readDblFromServer() + \"\\n\");\n\n\t\t\t\t_missionTa.append(name + \" have suucssed \\n\");\n\t\t\t\t_ls.writeLog(\"You have suucssed \\n\");\n\t\t\t} else {\n\t\t\t\t_missionTa.append(\"SQL Server or Server not found\\n\\n\");\n\t\t\t\t_ls.writeLog(\"SQL Server or Server not found\\n\\n\");\n\t\t\t}\n\t\t\t//_clientControl.disconnect();\n\t\t}\n\t}", "void getDataFromServer();", "private void sendData(String data) {\n\n if (!socket.isConnected() || socket.isClosed()) {\n Toast.makeText(getApplicationContext(), \"Joystick is disconnected...\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n\t\ttry {\n\t\t\tOutputStream outputStream = socket.getOutputStream();\n\n byte [] arr = data.getBytes();\n byte [] cpy = ByteBuffer.allocate(arr.length+1).array();\n\n for (int i = 0; i < arr.length; i++) {\n cpy[i] = arr[i];\n }\n\n //Terminating the string with null character\n cpy[arr.length] = 0;\n\n outputStream.write(cpy);\n\t\t\toutputStream.flush();\n\n Log.d(TAG, \"Sending data \" + data);\n\t\t} catch (IOException e) {\n Log.e(TAG, \"IOException while sending data \"\n + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (NullPointerException e) {\n Log.e(TAG, \"NullPointerException while sending data \"\n + e.getMessage());\n\t\t}\n\t}", "void sendJson(Object data);", "private void SendToServer(Photo ph2) throws UnsupportedEncodingException {\n\t\t\t HttpPost httpPost = new HttpPost(SERVICE_URI+\"LoadPhoto\");\n\t\t\t\t\n\t\t \n\t\t\t httpPost.setHeader(\"Content-Type\", \"application/json; charset=UTF-8\"); \n\t\t\t HttpClient httpClient = new DefaultHttpClient(getHttpParameterObj(17000,17000));\n\t\t\t // Building the JSON object.\n\t\t\t\n\t\t\t com.google.gson.Gson gson = new GsonBuilder().disableHtmlEscaping().create();\n\t\t\t String json = gson.toJson(ph2);\n\n\t\t\t StringEntity entity = new StringEntity(json, HTTP.UTF_8);\n\t\t\t Log.d(\"WebInvoke\", \"data : \" + json.toString());\n\t\t\t\n\t\t\t \n\t\t\t httpPost.setEntity(entity);\n\t\t\t // Making the call.\n\t\t\t HttpResponse response = null;\n\t\t\ttry {\n\t\t\t\tresponse = httpClient.execute(httpPost);\n\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t \n\t\t\t \n\t\t\t // Getting data from the response to see if it was a success.\n\t\t\t BufferedReader reader = null;\n\t\t\ttry {\n\t\t\t\treader = new BufferedReader(new InputStreamReader(response.getEntity().getContent(),\n\t\t\t\t\t\t \"UTF-8\"));\n\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t String jsonResultStr = null;\n\t\t\ttry {\n\t\t\t\tjsonResultStr = reader.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t \n\t\t\t Log.d(\"WebInvoke\", \"donnen deger : \" + jsonResultStr);\n\t\t}", "void sendData(String request) throws IOException {\n if (mmDevice == null) {\n Log.d(TAG, \"No device set\");\n }\n\n Log.d(TAG, \"Request is \" + request);\n if (mmOutputStream != null){\n mmOutputStream.write(request.getBytes(Charset.forName(\"UTF-8\")));\n }\n\n if (false && request.contains(\"travel\")) {\n closeBT();\n openBT();\n }\n }", "private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }", "public void sendRemainData();", "public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }", "private void sendData() {\n\n Thread update = new Thread() {\n public void run() {\n while (opModeIsActive() && (tfod != null)) {\n path.updateTFODData(recognize());\n path.updateHeading();\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n }\n if (isStopRequested() && tfod != null)\n tfod.shutdown();\n }\n }\n };\n update.start();\n }", "public void sendData() {\r\n\t\t// HoverBot specific implementation of sendData method\r\n\t\tSystem.out.println(\"Sending location information...\");\r\n\t}", "public Boolean sendData() {\n\t\tHttpClient httpClient = new DefaultHttpClient();\n\t\tBoolean ret = true;\n\t\ttry {\n\t\t\tbyte[] data = getAvroData();\n\n\t\t\tHttpPost httppost = new HttpPost(getUrl());\n\t\t\tInputStreamEntity reqEntity = new InputStreamEntity(new ByteArrayInputStream(data), -1);\n\t\t\treqEntity.setContentType(\"binary/octet-stream\");\n\t\t\treqEntity.setChunked(true);\n\n\t\t\thttppost.setEntity(reqEntity);\n\t\t\tHttpResponse response = httpClient.execute(httppost);\n\t\t\tSystem.out.println(response.getStatusLine());\n\t\t\thttppost.releaseConnection();\n\t\t} catch (Exception ex) {\n\t\t\tret = false;\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\thttpClient.getConnectionManager().shutdown();\n\t\t}\n\n\t\treturn ret;\n\t\t// long endTime = System.currentTimeMillis();\n\t\t// System.out.println(\"use \" + (endTime - startTime) + \" ms \");\n\t}", "public void postData(String p) {\n\t\tHttpClient httpclient = new DefaultHttpClient();\n\t\tHttpPost httppost = new HttpPost(\n\t\t\t\t\"http://www.webaraza.com/webaraza2/collector.php\");\n\n\t\ttry {\n\t\t\t// Add your data\n\t\t\tList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);\n\t\t\tnameValuePairs.add(new BasicNameValuePair(\"p\", p));\n\t\t\thttppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n\t\t\t// Execute HTTP Post Request\n\t\t\tHttpResponse response = httpclient.execute(httppost);\n\n\t\t\tJSONObject parentobJsonObject = new JSONObject(\n\t\t\t\t\tEntityUtils.toString(response.getEntity()));\n\t\t\tJSONArray childarr = parentobJsonObject.getJSONArray(\"dety\");\n\t\t\tJSONObject childobj = childarr.getJSONObject(0).getJSONObject(\n\t\t\t\t\t\"post\");\n\t\t\tname = childobj.getString(\"name\");\n\t\t\tc1 = childobj.getString(\"c1\");\n\t\t\tc2 = childobj.getString(\"c2\");\n\n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void handleSendBtn(ActionEvent actionEvent) throws IOException {\n Socket socket = ConnSocket.getInstance();\n InputStream inputStream = socket.getInputStream();\n OutputStream outputStream = socket.getOutputStream();\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream, true);\n //String [] userInfo = {textField.getText(), nameLabel.getText()};\n out.println(textField.getText());\n\n }", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException 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\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "public void sendInformation() throws IOException {\n\t\tURL url = new URL(\"http://localhost:8082/EmergencyWebService/addAlert/\" + this.localisation.x + \"/\" + this.localisation.y + \"/\" + this.range); \n\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection(); \n\t\tconnection.setRequestMethod(\"POST\"); \n\t\tconnection.setRequestProperty(\"Content-Type\", \"application/json; charset=UTF-8\"); \n\t\tconnection.setDoOutput(true); \n\t\t\n\t\tOutputStream os = connection.getOutputStream(); \n\t\tOutputStreamWriter osw = new OutputStreamWriter(os, \"UTF-8\"); \n\t\tosw.write(Tools.toJsonString(this.alerte)); \n\t\tosw.flush(); \n\t\tosw.close();\n\t\t\n\t\tconnection.getInputStream();\n\t\t\n\t\tBufferedReader in = new BufferedReader( new InputStreamReader(connection.getInputStream()));\n\t\tString inputLine;\n\t\tStringBuffer response = new StringBuffer(); \n\t\twhile ((inputLine = in.readLine()) != null) { \n\t\t\tresponse.append(inputLine); \n\t\t} \n\t\tin .close();\n\t\t\n\n\n\t}", "private void data(Messenger replyTo, int encoderId, Bundle data) {\n\n // obtain new message\n Message message = obtainMessage(Geotracer.MESSAGE_TYPE_DATA, encoderId, 0);\n message.setData(data);\n\n // send response\n send(replyTo, message);\n }", "@TargetApi(Build.VERSION_CODES.KITKAT)\n public String sendPost1() throws Exception {\n String urlParameters=parameter;\n byte[] postData = urlParameters.getBytes(\"UTF-8\");\n int postDataLength = postData.length;\n URL url;\n HttpURLConnection urlConn;\n DataOutputStream printout;\n DataInputStream input;\n url = new URL(\"http://203.151.92.175:8080/\"+method);\n urlConn = (HttpURLConnection) url.openConnection();\n urlConn.setDoInput(true);\n urlConn.setDoOutput(true);\n urlConn.setUseCaches(false);\n urlConn.setInstanceFollowRedirects(false);\n urlConn.setRequestMethod(\"POST\");\n urlConn.setRequestProperty(\"charset\", \"utf-8\");\n urlConn.setRequestProperty(\"Content-Length\", Integer.toString(postDataLength));\n urlConn.setRequestProperty(\"User-Agent\", USER_AGENT);\n urlConn.connect();\n DataOutputStream wr = new DataOutputStream(urlConn.getOutputStream());\n wr.write(postData);\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(urlConn.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n urlConn.disconnect();\n return response.toString();\n\n }", "@Override\r\n\t public void run() {\n\r\n\t\ttry {\r\n\t\t URL uri = new URL(url);\r\n\t\t String newParams = URLEncoder.encode(params, \"utf-8\");\r\n\t\t HttpURLConnection conn = (HttpURLConnection) uri\r\n\t\t\t .openConnection();\r\n\t\t conn.setRequestMethod(\"POST\");\r\n\t\t // 设置请求的参数\r\n\t\t conn.setDoInput(true);\r\n\t\t conn.setDoOutput(true);\r\n\r\n\t\t conn.getOutputStream().write(newParams.getBytes());\r\n\r\n\t\t if (conn.getResponseCode() == 200) {\r\n\t\t\tInputStream is = conn.getInputStream();\r\n\t\t\tString result = convertInputStreamToString(is);\r\n\t\t\t// 通过handler发送消息\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.what = 1;\r\n\t\t\tmsg.obj = result;\r\n\t\t\thandler.sendMessage(msg);\r\n\t\t }\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t e.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t }", "@Override\n protected String doInBackground(Void... params) {\n Connector con = new Connector();\n return con.send(urlAddress, data);\n }", "public boolean send(NetData data)\n {\n writer.println(data.toString());\n xMessenger.miniMessege(\">>>\"+ data.toString());\n return true;\n }", "@Override\n\t\t\tprotected String doInBackground(String... arg0) {\n\t\t\t\tHttpClient httpclient=new DefaultHttpClient();\n\t\t\t\tHttpPost httppost=new HttpPost(\"http://192.168.170.15/57983/phptut/Addmat.php\");\n\t\t\t\t\n\t\t\t\t//add my data\n\t\t\t\t try {\n\t\t\t // Add your data\n\t\t\t List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n\t\t\t nameValuePairs.add(new BasicNameValuePair(\"Matatu_regno\", mrg));\n\t\t\t nameValuePairs.add(new BasicNameValuePair(\"Route_no\", mrn));\n\t\t\t nameValuePairs.add(new BasicNameValuePair(\"Matatu_driver\", md));\n\t\t\t nameValuePairs.add(new BasicNameValuePair(\"Phone\", mp));\n\t\t\t \n\t\t\t \n\t\t\t httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n\t\t\t //Execute HTTP Post Request\n\t\t\t HttpResponse response = httpclient.execute(httppost);\n\t\t\t \n\t\t\t \n\t\t\t \n\n\t\t\t } catch (ClientProtocolException e) {\n\t\t\t // TODO Auto-generated catch block\n\t\t\t } catch (IOException e) {\n\t\t\t // TODO Auto-generated catch block\n\t\t\t }\n\t\t\t\t\n\t\t\t\t\n\t\t\treturn null;\n\t\t\t}", "public synchronized void sendData(PrintWriter stream){\r\n\t\t\tstream.println(\"3\");\r\n\t\t\tstream.println(Integer.toString(x));\r\n\t\t\tstream.println(Integer.toString(y));\r\n\t\t\tstream.println(Integer.toString(health));\r\n\t\t\tstream.println(Integer.toString(level));\r\n\t\t}", "public void send_data(int curr_portNo, String data_send) {\n\t\ttry {\n\t\t\tSocket baseSocket = new Socket(Content_Provider.ipAdd, curr_portNo);\n\t\t\tPrintWriter toPeer = new PrintWriter(new BufferedWriter(\n\t\t\t\t\tnew OutputStreamWriter(baseSocket.getOutputStream())), true);\n\t\t\ttoPeer.println(data_send);\n\t\t\tbaseSocket.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void postData(String quote, String name, String project) {\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(\"http://10.16.4.16:8765/quote\");\n\n try {\n // Add your data\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(3);\n nameValuePairs.add(new BasicNameValuePair(\"project\", project));\n nameValuePairs.add(new BasicNameValuePair(\"by_name\", name));\n nameValuePairs.add(new BasicNameValuePair(\"quote\",quote));\n httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n } catch (IOException e) {\n // TODO Auto-generated catch block\n }\n }", "public boolean sendData(String data) throws IOException;", "public static void sendData(String message) {\n try // send object to server\n {\n output.writeObject(message);\n output.flush(); // flush data to output\n displayMessage(\"\\nSend to Server:\");\n displayMessage(\"\\n\" + message);\n } // end try\n catch (IOException ioException) {\n displayArea.append(\"\\nError writing object\");\n } // end catch\n }", "@Override\n\t\tprotected String doInBackground(Void... params) {\n\t\t\tArrayList<NameValuePair> nameValuePairs =new ArrayList<NameValuePair>();\n\t\t\tnameValuePairs.add(new BasicNameValuePair(\"SerialNumbers\",Type2MainActivity.SerialNumbers));\n\t\t\tString result=connect_to_server(\"project/store/Type2/EndBusiness.php\",nameValuePairs);\n\t\t\treturn result;\n\t\t\t\n\t\t}", "private static void sendData(Plugin plugin, JsonObject data) throws Exception {\n if (data == null) {\n throw new IllegalArgumentException(\"Data cannot be null!\");\n }\n if (Server.getInstance().isPrimaryThread()) {\n throw new IllegalAccessException(\"This method must not be called from the main thread!\");\n }\n if (logSentData) {\n plugin.getLogger().info(\"Sending data to bStats: \" + data);\n }\n HttpsURLConnection connection = (HttpsURLConnection) new URL(URL).openConnection();\n \n // Compress the data to save bandwidth\n byte[] compressedData = compress(data.toString());\n \n // Add headers\n connection.setRequestMethod(\"POST\");\n connection.addRequestProperty(\"Accept\", \"application/json\");\n connection.addRequestProperty(\"Connection\", \"close\");\n connection.addRequestProperty(\"Content-Encoding\", \"gzip\"); // We gzip our request\n connection.addRequestProperty(\"Content-Length\", String.valueOf(compressedData.length));\n connection.setRequestProperty(\"Content-Type\", \"application/json\"); // We send our data in JSON format\n connection.setRequestProperty(\"User-Agent\", \"MC-Server/\" + B_STATS_VERSION);\n \n // Send data\n connection.setDoOutput(true);\n try (DataOutputStream outputStream = new DataOutputStream(connection.getOutputStream())) {\n outputStream.write(compressedData);\n }\n \n StringBuilder builder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()))) {\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n builder.append(line);\n }\n }\n \n if (logResponseStatusText) {\n plugin.getLogger().info(\"Sent data to bStats and received response: \" + builder);\n }\n }", "public static boolean sendDatatoServer(WSSessionData[] sessData) {\r\n\r\n\t\tString resp = \"Default result\";\r\n\t\tString content = \"false\";\r\n\t\tint responseCode = 0;\r\n\r\n\t\ttry {\r\n\t\t\t// 1.\r\n\t\t\tHttpClient httpclient = new DefaultHttpClient();\r\n\t\t\tHttpConnectionParams.setConnectionTimeout(httpclient.getParams(),\r\n\t\t\t\t\t2000); // Timeout limit\r\n\t\t\tHttpPost request = new HttpPost(CCServices.getServiceURL());\r\n\t\t\tInternalLog.d(TAG, \"Send data to URI \" + request.getURI());\r\n\t\t\t// 2.\r\n\t\t\tJSONObject jsonToSend = new JSONObject();\r\n\t\t\tbuildJsonObject(sessData, jsonToSend);\r\n\r\n\t\t\tString sessionJsonString = jsonToSend.toString();\r\n//was val\r\n\t\t/*\tJSONStringer data = new JSONStringer().object().key(\"data\")\r\n\t\t\t\t\t.value(sessionJsonString).endObject();*/\r\n\t\t\t// 3.\r\n\t\t\tByteArrayEntity bEntity = new ByteArrayEntity(sessionJsonString\r\n\t\t\t\t\t.getBytes());\r\n\t\t\t// text/plain;charset=UTF-8\r\n\t\t\tbEntity.setContentType(\"application/json;charset=UTF-8\");\r\n\t\t\tbEntity.setContentEncoding(new BasicHeader(HTTP.CONTENT_TYPE,\r\n\t\t\t\t\t\"application/json;charset=UTF-8\"));\r\n\t\t\trequest.setEntity(bEntity);\r\n\t\t\t// 4.\r\n\t\t\tHttpResponse httpResponse = httpclient.execute(request);\r\n\t\t\t// 5.\r\n\t\t\tresponseCode = httpResponse.getStatusLine().getStatusCode();\r\n\t\t\tString message = httpResponse.getStatusLine().getReasonPhrase();\r\n\t\t\tHttpEntity entity = httpResponse.getEntity();\r\n\t\t\t// 6.\r\n\t\t\tif (entity != null) {\r\n\t\t\t\tInputStream instream = entity.getContent();\r\n\t\t\t\tcontent = CCServices.convertStreamToString(instream);\r\n\t\t\t\t// Closing the input stream will trigger connection release\r\n\t\t\t\tinstream.close();\r\n\t\t\t\tresp = \"Response Code : \" + responseCode + \" Message \"\r\n\t\t\t\t\t\t+ message + \" response \" + content;\r\n\t\t\t}\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t// Problem with with Package/Object\r\n\t\t\te.printStackTrace();\r\n\t\t\tresp = \"Exception - setEntity() is not working\";\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\t// Problem with HttpClient (service is not working)\r\n\t\t\te.printStackTrace();\r\n\t\t\tresp = \"Exception - httpClient is not working\";\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tresp = \"Exception - IOException \";\r\n\t\t} catch (JSONException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tresp = \"Exception - JSONException \";\r\n\t\t}\r\n\r\n\t\tInternalLog.d(TAG, resp);\r\n\t\t//If the response is 200 - server got the message and now it his responsibility \r\n\t\treturn responseCode == HttpStatus.SC_OK;\r\n\r\n\t}", "@Override\n protected StringBuilder doInBackground(String... params) {\n return postData(params[0],params[1],params[2],params[3]);\n }", "public static void main(String[] args) throws Exception {\n\n CloseableHttpClient aDefault = HttpClients.createDefault();\n\n\n /* HttpPost httpPost = new HttpPost(\"http://172.16.18.88:8080/toLogin.do\");\n List<NameValuePair> paramList = new ArrayList<>();\n paramList.add(new BasicNameValuePair(\"email\", \"hf\"));\n paramList.add(new BasicNameValuePair(\"pwd\", \"1234\"));\n paramList.add(new BasicNameValuePair(\"url\", \"\"));\n UrlEncodedFormEntity postEntity = new UrlEncodedFormEntity(paramList, \"UTF-8\");\n httpPost.setEntity(postEntity);\n HttpEntity entity = aDefault.execute(httpPost).getEntity();\n System.out.println(EntityUtils.toString(entity,DEFAULT_CHARSET));*/\n\n\n HttpGet httpGet = new HttpGet(\"http://e-hentai.org\");\n httpGet.setHeader(\"User-Agent\", DEFAULT_USER_AGENT);\n CloseableHttpResponse execute = aDefault.execute(httpGet);\n System.out.println(EntityUtils.toString(execute.getEntity(), DEFAULT_CHARSET));\n\n\n String phone = \"13920266937\";\n String code = \"北京,邢台,上海。\";\n String tplId = \"39638\";\n String url = \"http://v.juhe.cn/sms/send?mobile=\" + phone + \"&tpl_id=\" + tplId + \"&tpl_value=%23code%23%3D\" + code + \"&key=e3d4c483e58d86102bce4e05dcf071c1\";\n String s = httpPost(url);\n System.out.println(s);\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSendToServer(ph);\n\t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private void sendData() throws DataProcessingException, IOException {\n Data cepstrum = null;\n do {\n cepstrum = frontend.getData();\n if (cepstrum != null) {\n if (!inUtterance) {\n if (cepstrum instanceof DataStartSignal) {\n inUtterance = true;\n dataWriter.writeDouble(Double.MAX_VALUE);\n dataWriter.flush();\n } else {\n throw new IllegalStateException\n (\"No DataStartSignal read\");\n }\n } else {\n if (cepstrum instanceof DoubleData) {\n // send the cepstrum data\n double[] data = ((DoubleData) cepstrum).getValues();\n for (double val : data) {\n dataWriter.writeDouble(val);\n }\n } else if (cepstrum instanceof DataEndSignal) {\n // send a DataEndSignal\n dataWriter.writeDouble(Double.MIN_VALUE);\n inUtterance = false;\n } else if (cepstrum instanceof DataStartSignal) {\n throw new IllegalStateException\n (\"Too many DataStartSignals.\");\n }\n dataWriter.flush();\n }\n }\n } while (cepstrum != null);\n }", "public void send(Object data) {\n\t\t//do nothing - override to do something\n\t}", "@Override\n public void run() {\n try {\n int PORT = 10002; //서버에서 설정한 PORT 번호\n String ip=\"192.168.0.45\"; //서버 단말기의 IP주소..\n //본 예제는 Genymotion 에뮬레이터 2대로 테스한 예제입니다.\n //Genymotion을 실행하면 각 에뮬레이터의 IP를 확인할 수 있습니다.\n\n Socket socket; //클라이언트의 소켓\n DataInputStream is;\n DataOutputStream os;\n\n //서버와 연결하는 소켓 생성..\n socket = new Socket(InetAddress.getByName(ip), PORT);\n\n //여기까지 왔다는 것을 예외가 발생하지 않았다는 것이므로 소켓 연결 성공..\n //서버와 메세지를 주고받을 통로 구축\n is = new DataInputStream(socket.getInputStream());\n os = new DataOutputStream(socket.getOutputStream());\n\n Gson gson = new Gson();\n ArrayList<SendCommunication> communications = new ArrayList<SendCommunication>();\n communications.add(new SendCommunication(insertOrderMenu, insertOrderGoods));\n\n String json = gson.toJson(communications);\n\n os.writeUTF(json); //서버로 메세지 보내기.UTF 방식으로(한글 전송가능...)\n os.flush(); //다음 메세지 전송을 위해 연결통로의 버퍼를 지워주는 메소드..\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n public void run() {\n try {\n int PORT = 10002; //서버에서 설정한 PORT 번호\n String ip=\"192.168.0.46\"; //서버 단말기의 IP주소..\n //본 예제는 Genymotion 에뮬레이터 2대로 테스한 예제입니다.\n //Genymotion을 실행하면 각 에뮬레이터의 IP를 확인할 수 있습니다.\n\n Socket socket; //클라이언트의 소켓\n DataInputStream is;\n DataOutputStream os;\n\n //서버와 연결하는 소켓 생성..\n socket = new Socket(InetAddress.getByName(ip), PORT);\n\n //여기까지 왔다는 것을 예외가 발생하지 않았다는 것이므로 소켓 연결 성공..\n //서버와 메세지를 주고받을 통로 구축\n is = new DataInputStream(socket.getInputStream());\n os = new DataOutputStream(socket.getOutputStream());\n\n Gson gson = new Gson();\n ArrayList<SendCommunication> communications = new ArrayList<SendCommunication>();\n communications.add(new SendCommunication(insertOrderMenu, insertOrderGoods));\n\n String json = gson.toJson(communications);\n\n os.writeUTF(json); //서버로 메세지 보내기.UTF 방식으로(한글 전송가능...)\n os.flush(); //다음 메세지 전송을 위해 연결통로의 버퍼를 지워주는 메소드..\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\n\t\t\t\tURL url = new URL(\"http://ecshopxax.sinaapp.com/js/index.js\");\n\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\tInputStream is = connection.getInputStream();\n\t\t\t\tbyte[] bs = new byte[1024];\n\t\t\t\tint len = 0;\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\twhile ((len = is.read(bs)) != -1) {\n\t\t\t\t\tString str = new String(bs, 0, len);\n\t\t\t\t\tsb.append(str);\n\t\t\t\t}\n\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = 0x15;\n\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.clear();\n\n\t\t\t\t// bundle.putString(\"recv_server\", new String(buffer));\n\t\t\t\tbundle.putString(\"text1\", sb.toString());\n\n\t\t\t\tmsg.setData(bundle);\n\n\t\t\t\tmyHandler.sendMessage(msg);\n\n\t\t\t\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public static void doConnection(String text){\r\n URL targetURL = null;\r\n\ttry {\r\n\t\ttargetURL = new URL(\"http://ircsmibot.byethost18.com/writeLogToText.php\");\r\n\t} catch (MalformedURLException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n HttpURLConnection conn = null;\r\n\ttry {\r\n\t\tconn = (HttpURLConnection)targetURL.openConnection();\r\n\t} catch (IOException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n //data send via POST request\r\n String data = \"test=\"+text;\r\n conn.setDoOutput(true);\r\n conn.setInstanceFollowRedirects(true);\r\n try {\r\n\t\tconn.setRequestMethod(\"POST\");\r\n\t} catch (ProtocolException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n //conn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n ((HttpURLConnection) conn).setFixedLengthStreamingMode(data.length());\r\n conn.setRequestProperty(\"charset\", \"UTF-8\");\r\n conn.setRequestProperty(\"Content-Length\", Integer.toString(\r\n data.length()));\r\n\r\n conn.setUseCaches(false);\r\n for(int i=0;i<5;i++){\r\n \t \r\n try(OutputStreamWriter out = new OutputStreamWriter(\r\n conn.getOutputStream()))\r\n {\r\n out.write(data);\r\n break;\r\n } catch (IOException e) {\r\n\t\t//e.printStackTrace();\r\n\t\ttry {\r\n\t\t\tThread.sleep(200);\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n } \r\n }\r\n\r\n //reading code after POST request (here I want to have value from \"test\" field\r\n /* try(BufferedReader in = new BufferedReader(new InputStreamReader( \r\n conn.getInputStream())))\r\n {\r\n String currentLine;\r\n while((currentLine = in.readLine()) != null)\r\n {\r\n System.out.println(currentLine);\r\n }\r\n }\r\n ( */\r\n\r\n\r\n }", "@Override\n protected String doInBackground(String... params) {\n\n String data = \"\";\n\n HttpURLConnection httpURLConnection = null;\n try {\n\n httpURLConnection = (HttpURLConnection) new URL(params[0]).openConnection();\n httpURLConnection.setRequestMethod(\"POST\");\n\n httpURLConnection.setDoOutput(true);\n\n DataOutputStream wr = new DataOutputStream(httpURLConnection.getOutputStream());\n wr.writeBytes(\"PostData=\" + params[1]);\n wr.flush();\n wr.close();\n\n InputStream in = httpURLConnection.getInputStream();\n InputStreamReader inputStreamReader = new InputStreamReader(in);\n\n int inputStreamData = inputStreamReader.read();\n while (inputStreamData != -1) {\n char current = (char) inputStreamData;\n inputStreamData = inputStreamReader.read();\n data += current;\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (httpURLConnection != null) {\n httpURLConnection.disconnect();\n }\n }\n return data;\n }", "public void sendData(String data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.getBytes().length + 10);\n\t\tbuf.put(data.getBytes());\n\t\tbuf.put((byte)0x00);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}", "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\r\n\t\t\t\tPrintWriter printWriter = null;\r\n\t\t\t\tBufferedReader bufferedReader = null;\r\n\r\n\t\t\t\tStringBuffer response = new StringBuffer();\r\n\t\t\t\tStringBuffer request = new StringBuffer();\r\n\r\n\t\t\t\t// 组织请求参数\r\n\t\t\t\tif (null != params && !params.isEmpty()){\r\n\t\t\t\t\tfor (Map.Entry<String, String> entry : params.entrySet()){\r\n\t\t\t\t\t\trequest.append(entry.getKey()).append(\"=\").append(entry.getValue()).append(\"&\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//< 删除多余的&\r\n\t\t\t\t\trequest.deleteCharAt(request.length() - 1);\r\n\t\t\t\t}\r\n\t\t\t\tLog.d(\"HttpUtil\", request.toString());\r\n\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"POST\");\r\n\t\t\t\t\tconnection.setRequestProperty(\"Content-Length\", String.valueOf(request.length()));\r\n\t\t\t\t\tconnection.setDoInput(true);\r\n\t\t\t\t\tconnection.setDoOutput(true);\r\n\t\t\t\t\tprintWriter = new PrintWriter(connection.getOutputStream());\r\n\t\t\t\t\tprintWriter.write(request.toString());\r\n\t\t\t\t\tprintWriter.flush();\r\n\r\n\t\t\t\t\tint responseCode = connection.getResponseCode();\r\n\t\t\t\t\tif(responseCode != 200){\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Post Fail\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Post Success\");\r\n\t\t\t\t\t\tbufferedReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\r\n\t\t\t\t\t\tString line;\r\n\t\t\t\t\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\t\t\t\t\t\t\tresponse.append(line);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onFinish(response.toString());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onError(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tif(connection != null){\r\n\t\t\t\t\t\tconnection.disconnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (printWriter != null) {\r\n\t\t\t\t\t\t\tprintWriter.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (bufferedReader != null) {\r\n\t\t\t\t\t\t\tbufferedReader.close();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "default void sendBinary(byte[] data) {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n sendBinary(buffer);\n }", "public static String sendPostRequest(String urlString,String body,String[] head,boolean dom)\n\t{\n InputStream instream;\n BufferedReader bfreader = null;\n String response = null;\n \n \n \n \n \n try \n {\n java.net.URL url = new java.net.URL(urlString);\n java.net.HttpURLConnection connection = (java.net.HttpURLConnection)url.openConnection(); // have to cast connection\n connection.setRequestMethod(\"POST\");\n connection.setDoOutput(true);\n connection.setReadTimeout(60000);\n \n \n \n if(head!=null)\n {\n\t for(int i=0;i<head.length;i=i+2)\n\t {\n\t \tconnection.setRequestProperty(head[i], head[i+1]);\n\t \t\n\t }\n }\n \n String utf8body= new String(body.getBytes(\"UTF-8\"));\n \n //writeFile(utf8body,\"01aft\");\n //writeFile(body,\"01bef\");\n \n OutputStream os = connection.getOutputStream();\n \n BufferedWriter osw = new BufferedWriter(new OutputStreamWriter(os));\n if(dom)\n {\n\t osw.write(0x0A);\n\t osw.write(0x09);\n\t }\n osw.write(utf8body);\n osw.flush();\n osw.close();\n \n \n connection.connect();\n instream=connection.getInputStream();\n bfreader=new BufferedReader(new InputStreamReader(instream,\"UTF-8\"));\n response=bfreader.readLine();\n //writeFile(response,\"instr\");\n \n connection.disconnect();\n \n \n } \n \n \n catch (Exception e) {\n \n \n // get stack trace as a String to return as document data\n java.io.StringWriter stringWriter = new java.io.StringWriter();\n e.printStackTrace( new java.io.PrintWriter( stringWriter ) );\n //result.setResponseData( stringWriter.toString() );\n //System.out.println(stringWriter);\n response = stringWriter.toString();\n \n \n }\n\t\t\n \n \n return response;\n\t\t\n\t\t\n\t}", "protected void sendResultMessage(Object data) {\n EventBus.getDefault().post(data);\n }", "Map<String, Object> send();", "void sendData() throws IOException\n\t{\n\t}", "void send();", "public String getData(){\r\n\t\t// Creating register message\r\n\t\tmessageToServer = GET_DATA_KEYWORD \r\n\t\t\t\t+ SEPARATOR + controller.getModel().getAuthUser().getToken();\r\n\r\n\t\t// Sending message\t\t\t\t\r\n\t\tpw.println(messageToServer);\r\n\t\tpw.flush();\r\n\t\tSystem.out.println(\"Message sent to server: \" + messageToServer);\r\n\r\n\t\t// Reading the answer from server, processing the answer\r\n\t\tString data = null;\r\n\t\ttry {\r\n\r\n\t\t\tdata = br.readLine();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e.toString(), \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\r\n\t\treturn data;\r\n\t}", "@ReactMethod\n public void send(ReadableArray data) {\n byte[] payload = new byte[data.size()];\n for (int i = 0; i < data.size(); i++) {\n payload[i] = (byte)data.getInt(i);\n }\n\n long maxSize = chirpConnect.maxPayloadLength();\n if (maxSize < payload.length) {\n onError(context, \"Invalid payload\");\n return;\n }\n ChirpError error = chirpConnect.send(payload);\n if (error.getCode() > 0) {\n onError(context, error.getMessage());\n }\n }", "private void dataSubmission() {\n getPreferences(); // reload all the data\n\n String jsonObjectString = createJsonObject();\n StringBuilder url = new StringBuilder();\n url.append(serverUrl);\n\n if (vslaName == null || numberOfCycles == null || representativeName == null || representativePost == null\n || repPhoneNumber == null || grpBankAccount == null || physAddress == null\n || grpPhoneNumber == null || grpSupportType == null) {\n flashMessage(\"Please Fill all Fields\");\n\n } else if (IsEditing.equalsIgnoreCase(\"1\")) {\n url.append(\"editVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n\n } else { // Creating a new VSLA\n url.append(\"addNewVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n }\n }", "public void sendDataToDB() throws JSONException, InstantiationException, IllegalAccessException, ClassNotFoundException, UnirestException, ParseException {\r\n\t\t\r\n\t\tArrayList<HashMap<String, String>> dataSet = new ArrayList<>();\r\n\t\t\r\n\t\tfor (int i = 0; i < dataArray.length(); i++) {\r\n\t\t\tHashMap<String, String> jsonObject = new HashMap<String, String>();\r\n\t\t\tjsonObject.put(\"id\" ,dataArray.getJSONObject(i).get(\"id\").toString());\r\n\t\t\tjsonObject.put(\"name\", dataArray.getJSONObject(i).get(\"name\").toString());\r\n\t\t\tjsonObject.put(\"free_bikes\", dataArray.getJSONObject(i).get(\"free_bikes\").toString());\r\n\t\t\tjsonObject.put(\"timestamp\", changeTimeStamptoUnixTimeString(dataArray.getJSONObject(i).get(\"timestamp\").toString()));\r\n\t\t\tjsonObject.put(\"latitude\", dataArray.getJSONObject(i).get(\"latitude\").toString());\r\n\t\t\tjsonObject.put(\"longitude\", dataArray.getJSONObject(i).get(\"longitude\").toString());\r\n\r\n\t\t\tdataSet.add(jsonObject);\r\n\t\t}\r\n\t\t\r\n\t\t// Send whole data to DBService\r\n\t\tUnirest.post(\"http://stadtraddbservice:6000/newData\")\r\n\t\t//Unirest.post(\"http://localhost:6000/newData\") // Fuer lokalen Test\r\n\t\t .body(new Gson().toJson(dataSet))\r\n\t\t .asString();\r\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "public void sendData(IoBuffer outData) {\n\t\ttry {\n\t\t\tsession.write(outData);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sendData(byte[] data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.length + 10);\n\t\tbuf.put(data);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}", "void beginSendData(){\n stopSendThread = false;\n final Thread thread = new Thread(new Runnable() {\n\n public void run() {\n while(!Thread.currentThread().isInterrupted() && !stopSendThread){\n try{\n try {\n Thread.currentThread().sleep(100);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String string = \":1\" + (char)speedLeft + (char)speedRight + \"@\";\n try {\n os.write(string.getBytes());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } catch (Exception e){\n e.printStackTrace();\n stopSendThread = true;\n }\n\n\n }\n\n }\n });\n thread.start();\n System.out.println(\"koniec funkcji startsend\");\n }", "public void sendDataOnServer()\n {\n\n SimpleDateFormat dateFormate = new SimpleDateFormat(\"yyyy-MM-dd\");\n SimpleDateFormat timeFormate = new SimpleDateFormat(\"HH:mm\");\n\n\n HashMap<String , Object> param = new HashMap<>();\n param.put(\"class_uid\" , SessionManager.getUser_id(getActivity()));\n param.put(\"class_club_id\" , SessionManager.getUser_Club_id(getActivity()));\n param.put(\"class_name\" , classTitleEditView.getText().toString());\n param.put(\"class_startDate\" , Utill.formattedDateFromString(\"d-MMM-yyyy\" , \"yyyy-MM-dd\" , enterStartDateBtn.getText().toString()));\n\n\n\n param.put(\"class_days\" , weekStr);\n\n param.put(\"class_duration\" ,classDurationSpinner.durationItem.get(selectDurationSpinner.getSelectedItemPosition()) );\n param.put(\"class_startTime\" , timeFormate.format(startTimeCalender.getTime()));\n param.put(\"class_endTime\" , timeFormate.format(endTimeCalender.getTime()));\n param.put(\"class_cost\" , costEditTv.getText().toString());\n param.put(\"class_color\" , recursiveBookingCourtColourArrayList.get(colorCodeSpinner.getSelectedItemPosition()).getCat_color());\n param.put(\"class_noOfParticipents\" , participantEditTv.getText().toString());\n\n httpRequest.getResponse(activity, WebService.createCclassLink, param, new OnServerRespondingListener(activity) {\n @Override\n public void onSuccess(JSONObject jsonObject) {\n\n Log.e(\"jsonObject\",jsonObject+\"\");\n //{\"status\":\"true\",\"message\":\"Class created successfully\",\"class_id\":4}\n\n try\n {\n Utill.hideKeybord(getActivity());\n if (jsonObject.getBoolean(\"status\"))\n {\n\n getActivity().getSupportFragmentManager().popBackStack();\n getActivity().getSupportFragmentManager().popBackStack();\n //updateclassListListener.onBackFragment();\n }\n else\n {\n Utill.showDialg(jsonObject.getString(\"message\") , getActivity());\n }\n\n }\n catch (Exception e)\n {\n Utill.showToast(getActivity() , e.getMessage());\n }\n }\n });\n\n }", "public abstract void sendData(Float data, int dataType);", "public abstract boolean send(byte[] data);", "void sendTransactionToServer()\n \t{\n \t\t//json + sql magic\n \t}", "public void send( String data ) {\n SendRunnable sendRunnable = new SendRunnable( data );\n Thread sendThread = new Thread( sendRunnable );\n sendThread.start();\n }", "private void sendDataToQueue(byte[] data){\n\t\t//*****************************************\n\t\t//Se possuir o Prefixo de Comando Interno, então envia o Comando para a Fila de Comandos Internos do Core\n\t\t// Do contrário envia o Comando para a Fila de Dados a Serem enviados pelo BluetootSenderWorker ao Carro\n\t\tif(new String(data).contains(SystemProperties.COMANDO_INTERNO_PREFIXO)){\n\t\t\tthis.systemCore.addDataToInternalCommandQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Comando enviado a Fila de comandos Internos do Dispositivo Android...\");\n\t\t}else{\n\t\t\tthis.systemCore.addDataToCarControlQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Controle enviado a Fila de dados a serem enviados ao Carro...\");\n\t\t}\n\t}", "public void send(byte[] data) {\n final Payload payload = new Payload(OPCODE_BINARY, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n }).start();\n }", "public static void startHttpsPost() {\n String reqUrl=\"https://222.221.16.170:80/coupon/webserver/get\";\n//\t\tString strRequest1=\"{\\\"phoneNo\\\":\\\"18088262389\\\",\\\"message\\\":\\\"测试一下\\\",\\\"act_code\\\":\\\"6\\\"}\";\n String strRequest2=\"{\\\"pay_user\\\":\\\"15393944645\\\",\\\"act_code\\\":\\\"2\\\"}\";\n // 红包充值\n String strRequest4=\"{'pay_user':'17787019595','act_code':'4','efCampaignId':'1305','packetId':'192374332','packetValue':'550','seqCode':'27364326432943947'}\";\n try{\n String strParm=TydicDES.encodeValue(strRequest4);\n String resultStr = sendHtpps(strParm,reqUrl);\n System.out.println(\"--------------返回密文:\"+resultStr);\n System.out.println(\"----解密后的结果:\"+TydicDES.decodedecodeValue(resultStr));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n System.out.println();\n }", "@Override\n public void run() {\n byte[] response = Util.sendPost(readUrl, null);\n StringBuffer stringBuffer = new StringBuffer();\n Log.d(\"TEST\", response.length + \"\");\n for (int i = response.length - 1; i >= 0; i--) {\n String s = Integer.toString(response[i]);\n if (s.length() == 1) {\n s = '0' + s;\n }\n Log.d(\"TEST\", s + \"\");\n stringBuffer.append(s + \"\\n\");\n }\n Message message = Message.obtain();\n message.what = 1;\n message.obj = stringBuffer.toString();\n mHandler.sendMessage(message);\n }", "public void onClickSend(View view) {\n String string = editText.getText().toString();\n serialPort.write(string.getBytes());\n tvAppend(textView, \"\\nData Sent : \" + string + \"\\n\");\n\n }", "public boolean sendToServer()\n {\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(\"http://mew-staging.herokuapp.com/glucose_levels\");\n\n try {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n \tString currentDateandTime = sdf.format(new Date());\n \tString readDateandTime = sdf.format(mRead_at);\n \t\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);\n nameValuePairs.add(new BasicNameValuePair(\"serial_number\", mSerialNumber));\n nameValuePairs.add(new BasicNameValuePair(\"glucose_value\", \"\"+mGlucose_value));\n \n \n String _type = \"\";\n switch (mType) {\n\t case 0: _type = \"Normal\";\n\t break;\n\t case 1: _type = \"Before Meal(AC)\";\n\t break;\n\t case 2: _type = \"Before Meal(PC)\";\n\t break;\n\t case 3: _type = \"CTL Mode(QC)\";\n\t break;\n\t default: _type = \"Invalid Type\";\n\t break;\n }\n nameValuePairs.add(new BasicNameValuePair(\"reading_type\", \"\"+_type));\n \n nameValuePairs.add(new BasicNameValuePair(\"retrieved_at\", currentDateandTime));\n nameValuePairs.add(new BasicNameValuePair(\"code_number\", \"\"+mCode_no));\n nameValuePairs.add(new BasicNameValuePair(\"measured_at\", readDateandTime));\n nameValuePairs.add(new BasicNameValuePair(\"format\", \"json\"));\n \n httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n \n } catch (ClientProtocolException e) {\n \tLog.d(TAG, \"ClientProtocolException...\", e);\n } catch (IOException e) {\n \tLog.d(TAG, \"IOException...\", e);\n }\n return true;\n }", "void send(SftpDatagram head,byte[] data){\r\n\t\tdata_send = data;\r\n\t\t//first send the first one\r\n\t\ttotal_datagrams = 1;\r\n\t\tcovered_datagrams++;\r\n\t\thead.send_datagram();\r\n\t\tput_and_set_timer(head);\r\n\t\t//sending\r\n\t\tif(data_send != null){\r\n\t\t\tlong size = data_send.length;\r\n\t\t\tif(size != 0)\r\n\t\t\t\ttotal_datagrams = (int)((size+BLOCK_SIZE-1) / BLOCK_SIZE);\r\n\t\t}\r\n\t\t//check sendings(if not small mode)\r\n\t\tcheck_and_send();\r\n\t}", "private void send(final String data) {\n\t\tif (null != PinPadController) {\n\t\t\tnew Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tPinPadController.PINPad_sendToPinPad(data);\n\t\t\t\t};\n\t\t\t}.start();\n\t\t\tToast.makeText(this, \"send\", Toast.LENGTH_SHORT).show();\n\t\t}\n\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tsuper.run();\r\n\t\t\t\t\t\tMap<String, String> params = new HashMap<String, String>();\r\n\t\t\t\t\t\tparams.put(\"des\", mEdit.getText().toString());\r\n\t\t\t\t\t\tparams.put(\"pwd\", \"0\");\r\n\t\t\t\t\t\tparams.put(\"isPwd\", \"0\");\r\n\t\t\t\t\t\tFile uploadFile = new File(filepath);\r\n\t\t\t\t\t\tFormFile formfile = new FormFile(filename, uploadFile,\r\n\t\t\t\t\t\t\t\t\"file\", \"audio/mpeg\");\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tif (SocketHttpRequester.post(\r\n\t\t\t\t\t\t\t\t\t\"http://shengbo.sinaapp.com/update.php\",\r\n\t\t\t\t\t\t\t\t\tparams, formfile)) {\r\n\t\t\t\t\t\t\t\t// ok\r\n\t\t\t\t\t\t\t\tMessage message = new Message();\r\n\t\t\t\t\t\t\t\tmessage.what = 0;\r\n\t\t\t\t\t\t\t\tmHandler.sendMessage(message);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t// error\r\n\t\t\t\t\t\t\t\tMessage message = new Message();\r\n\t\t\t\t\t\t\t\tmessage.what = 1;\r\n\t\t\t\t\t\t\t\tmHandler.sendMessage(message);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t// error\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void send() {\n\t}", "protected void doPost(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\n\t\tPrintWriter out = response.getWriter();\n\n\t\tString flag = request.getParameter(\"flag\").toString();\n\t\tSystem.out.println(flag);\n\n\t\tint flag_value = Integer.parseInt(flag);\n\t\t\n\t\t\n\t\tif(flag.equals(\"15\"))\n\t\t{\n\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"15.Getting All Details Try:::\");\n\t\t\t\t\n\t\t\t\n\t\t\t\t System.out.println(\"1five\");\n\t\t\t UpdateDB db=new UpdateDB();\n\t\t\t\t\t\n\t\t\t\t\tString data=db.activities();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"the json data is :\"+data);\n\t\t\t\t\tresponse.getWriter().write(data);\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//flag_value\n\t\tif (flag_value == 8) \n\t\t{\n\t\t\tSystem.out.println(\"Welcome to Location sending !!!\");\n\t\t\t\n\t\t\tSystem.out.println(\"latitude is\"+request.getParameter(\"latitude\").toString());\n\t\t\tString latitude = request.getParameter(\"latitude\").toString();\n\t\tSystem.out.println(\"longitude is \"+request.getParameter(\"longitude\").toString());\n\t\t\tString longitude = request.getParameter(\"longitude\").toString();\n//\t\t\tSystem.out.println(\"dept is \"+request.getParameter(\"dept\").toString());\n//\t\t\tString dept = request.getParameter(\"dept\").toString();\n//\t\t\tSystem.out.println(request.getParameter(\"caste\").toString());\n//\t\t\tString caste = request.getParameter(\"caste\").toString();\n//\t\t\tSystem.out.println(request.getParameter(\"collegename\").toString());\n//\t\t\tString collegename = request.getParameter(\"collegename\").toString();\n\t\t\tupdb.location(latitude,longitude);\n\t\t\t\n\t\t}\n\t\t\n\t\tif (flag_value == 5) \n\t\t{\n\t\t\tSystem.out.println(\"Welcome to Ack sending !!!\");\n\t\t\t\n\t\t\tSystem.out.println(\"name is\"+request.getParameter(\"name\").toString());\n\t\t\tString name = request.getParameter(\"name\").toString();\n\t\tSystem.out.println(\"ack is \"+request.getParameter(\"ack\").toString());\n\t\t\tString ack = request.getParameter(\"ack\").toString();\n\t\t\tSystem.out.println(\"stmt is \"+request.getParameter(\"stmt\").toString());\n\t\t\tString stmt = request.getParameter(\"stmt\").toString();\n\t\t\tupdb.ack(name,ack,stmt);\n\t\t\t\n\t\t}\n\t\tif (flag_value == 7)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"7.Query Connecting Try:::\");\n\t\t\t\tSystem.out.println(request.getParameter(\"query\").toString());\n\t\t\t\tString query = request.getParameter(\"query\").toString();\n\t\t\t\tStatement st = con.createStatement();\n\t\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM counsellingalldetails where collegename='\"+query+\"';\");\n\t\t\t\t\n\t\t\t\tJSONArray jsonArray = new JSONArray();\n\t\t\t\tJSONObject obj = null ;\n\t\t\t\twhile (rs.next()) \n\t\t\t\t{\n\t\t\t\t\t obj = new JSONObject();\n\t\t\t\t\tobj.put(\"collegename\", rs.getString(\"collegename\"));\n\t\t\t\t\tobj.put(\"cutoffmark\", rs.getString(\"cutoffmark\"));\n\t\t\t\t\tobj.put(\"totalseats\", rs.getString(\"totalseats\"));\n\t\t\t\t\tobj.put(\"cse\", rs.getString(\"cse\"));\n\t\t\t\t\tobj.put(\"it\", rs.getString(\"it\"));\n\t\t\t\t\tobj.put(\"eee\", rs.getString(\"eee\"));\n\t\t\t\t\tobj.put(\"ece\", rs.getString(\"ece\"));\n\t\t\t\t\t\n\t\t\t\t\tobj.put(\"othersdept\", rs.getString(\"othersdept\"));\n\t\t\t\t\tobj.put(\"bc\", rs.getString(\"bc\"));\n\t\t\t\t\tobj.put(\"oc\", rs.getString(\"oc\"));\n\t\t\t\t\tobj.put(\"mbc\", rs.getString(\"mbc\"));\n\t\t\t\t\tobj.put(\"otherscaste\", rs.getString(\"otherscaste\"));\n\t\t\t\t\t\n\t\t\t\t\tobj.put(\"vacancyseats\", rs.getString(\"vacancyseats\"));\n\t\t\t\t\tobj.put(\"fillingseats\", rs.getString(\"fillingseats\"));\n\t\t\t\t\tjsonArray.put(obj);\n\t\t\t} \n\t\t\t\tSystem.out.println(\"Saravana effect\"+jsonArray);\n\t\t\t\tString jsonString = jsonArray.toString();\n\t\t\t\tSystem.out.println(jsonString);\n\n\t\t\t\tresponse.setContentType(\"application/json\");\n\t\t\t\tresponse.getWriter().write(jsonString.toString());\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch (Exception jse) \n\t\t\t{\n\t\t\t\tjse.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (flag_value == 4)\n\t\t{\n\t\t\tSystem.out.println(\"Welcome to Report sending !!!\");\n\n\t\t\tSystem.out.println(request.getParameter(\"fname\").toString());\n\t\t\tString fname = request.getParameter(\"fname\").toString();\n\t\t\tSystem.out.println(request.getParameter(\"lname\").toString());\n\t\t\tString lname = request.getParameter(\"lname\").toString();\n\t\t\tSystem.out.println(request.getParameter(\"sage\").toString());\n\t\t\tString sage= request.getParameter(\"sage\").toString();\n\t\t\t\n\t\t\tSystem.out.println(request.getParameter(\"sgender\").toString());\n\t\t\tString sgender= request.getParameter(\"sgender\").toString();\n\t\t\tSystem.out.println(request.getParameter(\"saddress\").toString());\n\t\t\t\n\t\t\tString saddress= request.getParameter(\"saddress\").toString();\n\t\t\t\n\t\t\tSystem.out.println(request.getParameter(\"sproblem\").toString());\n\t\t\t\n\t\t\tString sproblem= request.getParameter(\"sproblem\").toString();\n\t\t\t\n updb.report(fname,lname,sage,sgender,saddress,sproblem);\n \n\t\t}\n\t\tif (flag_value == 6)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"6.Location Retriving Latitude:::\");\n\t\t\t\tStatement st = con.createStatement();\n\t\t\t\tResultSet rs = st.executeQuery(\"SELECT latitude FROM location ORDER BY latitude DESC LIMIT 1\");\n\n\t\t\t\tJSONArray arr = new JSONArray();\n\n\t\t\t\twhile (rs.next()) \n\t\t\t\t{\n\t\t\t\t\tarr.put(rs.getString(\"latitude\"));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Json Result \"+arr);\n\t\t\t\tJSONObject a=new JSONObject();\n\t\t\t\ta.put(\"receive\",arr);\n\t\t\t\tresponse.setContentType(\"application/json\");\n\t\t\t\tresponse.getWriter().write(a.toString());\n\t\t\t\t\n\t\t\t} \n\t\t\tcatch (Exception jse) \n\t\t\t{\n\t\t\t\tjse.printStackTrace();\n\t\t\t}\n\t\t}\n\t\n\t\tif (flag_value == 16)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"16.Location Retriving Longtitude:::\");\n\t\t\t\tStatement st = con.createStatement();\n\t\t\t\tResultSet rs = st.executeQuery(\"SELECT longitude FROM location ORDER BY longitude DESC LIMIT 1\");\n\n\t\t\t\t\n\t\t\t\tJSONArray arr = new JSONArray();\n\n\t\t\t\twhile (rs.next()) \n\t\t\t\t{\n\t\t\t\t\tarr.put(rs.getString(\"longitude\"));\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Json Result \"+arr);\n\t\t\t\tJSONObject a=new JSONObject();\n\t\t\t\ta.put(\"receive\",arr);\n\t\t\t\tresponse.setContentType(\"application/json\");\n\t\t\t\tresponse.getWriter().write(a.toString());\t\t\n\t\t\t\t\n\t\t\t} \n\t\t\tcatch (Exception jse) \n\t\t\t{\n\t\t\t\tjse.printStackTrace();\n\t\t\t}\n\t\t}\n\t\n\t\n\t}", "public void send(String result) {\n streamOut.println(result);\n //streamOut.flush();\n\n }", "@Override\n\tpublic void send(OutputStream stream) throws IOException {\n\t\tstream.write(this.data);\n\t}", "public HttpResponse postData(String url) {\n\t HttpClient httpclient = new DefaultHttpClient();\n\t HttpPost httppost = new HttpPost(url);\n\n\t try {\n\t // Add your data\n\t \n\n\t // Execute HTTP Post Request\n\t HttpResponse response = httpclient.execute(httppost);\n\t return response;\n\t \n\t } catch (ClientProtocolException e) {\n\t \t\n\t // TODO Auto-generated catch block\n\t } catch (IOException e) {\n\t // TODO Auto-generated catch block\n\t }\n\t return null;\n\t }" ]
[ "0.63690686", "0.63497627", "0.63454705", "0.62001216", "0.6154368", "0.61469996", "0.6114784", "0.61118597", "0.61036605", "0.6092448", "0.6090524", "0.60836816", "0.6075195", "0.60438836", "0.6037948", "0.60339886", "0.6029667", "0.6021372", "0.59874463", "0.59854335", "0.59805554", "0.59771323", "0.59572875", "0.5934412", "0.5932173", "0.59197885", "0.59160185", "0.59030867", "0.58933264", "0.58779335", "0.58519787", "0.5847276", "0.5842025", "0.583739", "0.5831209", "0.58246285", "0.582033", "0.5815052", "0.58076596", "0.5805795", "0.58025026", "0.57882047", "0.57721925", "0.57659024", "0.57498705", "0.5748514", "0.5742965", "0.57290053", "0.5702609", "0.5696612", "0.5694624", "0.5691692", "0.56908226", "0.5682016", "0.56756276", "0.5673686", "0.5664235", "0.56525874", "0.56515247", "0.56500876", "0.56488675", "0.56433487", "0.5641525", "0.56265473", "0.56200033", "0.5618833", "0.56046057", "0.56010926", "0.55974543", "0.55924153", "0.55852324", "0.55735713", "0.55694574", "0.5567489", "0.55622745", "0.5561389", "0.55607945", "0.55596685", "0.5557822", "0.55511045", "0.554647", "0.55462915", "0.5546124", "0.55405545", "0.5537385", "0.5536288", "0.5535176", "0.55338144", "0.5530506", "0.55304223", "0.5528674", "0.5526731", "0.55264807", "0.5525563", "0.55224586", "0.55222476", "0.55066025", "0.550542", "0.55000013", "0.5497367", "0.54910153" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onPreExecute() { super.onPreExecute(); dialog=new ProgressDialog(MainActivity.this); dialog.setMessage("Creating..."); dialog.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected JSONObject doInBackground(String... params) { try { jobj=new MyJSON(); myvalues=new ArrayList<NameValuePair>() ; myvalues.add(new BasicNameValuePair("muser", etuser.getText().toString())); myvalues.add(new BasicNameValuePair("mpass", etpass.getText().toString())); returnobj=jobj.makeHttpRequest(url, "POST", myvalues); return returnobj; } catch(Exception e) { Log.d("EO Error", "Error Occured"+e.getMessage()); } return returnobj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by dmitrykholodok on 5/13/18
@Mapper(componentModel = "spring", uses = ValidatedSubjectMapper.class) public interface ValidatedCertificateMapper { Certificate toCertificate(ValidatedCertificate validatedCertificate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "protected boolean func_70814_o() { return true; }", "private void m50366E() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void mo4359a() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void init() {}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void init() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {}", "@Override\n void init() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void method_4270() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo12628c() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void init() {\n\t}", "protected void mo6255a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void mo6081a() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "protected abstract Set method_1559();", "@Override public int describeContents() { return 0; }" ]
[ "0.5808049", "0.5722373", "0.5661884", "0.56295127", "0.5619977", "0.55913144", "0.55913144", "0.55580133", "0.5554548", "0.554541", "0.5503527", "0.54972893", "0.54609936", "0.5449544", "0.54082984", "0.5404841", "0.54009795", "0.5394489", "0.5378561", "0.53590053", "0.5354917", "0.53489566", "0.5348066", "0.53352594", "0.5331349", "0.53210837", "0.5315026", "0.5305607", "0.5302008", "0.5302008", "0.5302008", "0.5302008", "0.5302008", "0.5288431", "0.52842194", "0.5264681", "0.5264452", "0.5251463", "0.5242961", "0.5242961", "0.5238928", "0.5237172", "0.52347445", "0.5224272", "0.52215296", "0.52215296", "0.52215296", "0.52215296", "0.52215296", "0.52215296", "0.5214558", "0.5212794", "0.5212794", "0.5212794", "0.5212794", "0.5212794", "0.5212794", "0.5212794", "0.519052", "0.51897925", "0.51897925", "0.51897925", "0.51883906", "0.51819515", "0.51811504", "0.51738733", "0.51738733", "0.51738733", "0.51731867", "0.5171465", "0.5164001", "0.5162267", "0.5159594", "0.5159229", "0.5157379", "0.5157263", "0.51355726", "0.51355726", "0.5133974", "0.51317894", "0.51276934", "0.5121472", "0.5120733", "0.51197195", "0.5116153", "0.51129204", "0.51129204", "0.51129204", "0.51127946", "0.51117563", "0.5105788", "0.51004535", "0.5095606", "0.5094883", "0.50919646", "0.50919646", "0.5090494", "0.508964", "0.5085221", "0.50828105", "0.5080829" ]
0.0
-1
set up a fake game to test the decorator
@Before public void setUp() throws NotEnoughResourcesException{ testDecorator.setGameHandler(testGameHandler); testGameHandler.setPeriod(1); testGameHandler.setRound(1); testGameHandler.initializeTheGame(); testPlayer.playerColor = "black"; testPlayer.resources.setCoins(5); testPlayer.resources.setWoods(1); testPlayer.resources.setStones(3); testBonus = 1; testResourcesDecorator = new CardCoinDiscountDecorator(testDecorator,testBonus); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void botPlay() {\n Bot.randomBot(0);\n }", "@Before\n\tpublic void Contractor() {\n\t\tminiGame = new MiniGame();\n\n\t}", "@Test\r\n public void ss(){\r\n playGame.play();\r\n }", "public void startDummyGame()\n\t{\n\t\t//game.dummyGame();\n\t}", "@Test\n public void winGame() {\n }", "public void createGame();", "@Test\n void test() {\n Game g = init(\"gen_2p_02\");\n List<Player> players = g.getData().getPlayers();\n wrappedIllegalCommand(g, players.get(0), \"tool 6\");\n wrappedLegalCommand(g, players.get(0), \"pick 1\");\n assertTrue(g.isUndoAvailable());\n wrappedLegalCommand(g, players.get(0), \"tool 6\");\n assertFalse(g.isUndoAvailable());\n lightestShade(g, players);\n notLightestShade(g, players);\n }", "private void setUpGame() {\n\t\tsetUpBlocks();\n\t\tsetUpBall();\n\t\tsetUpPaddle();\n\t\taddMouseListeners();\n\t}", "@Before\r\n\tpublic void setup()\r\n\t{\n\t\tgame = factory.makeHantoGame(HantoGameID.EPSILON_HANTO, BLUE);\r\n\t}", "@Test\n void doEffectrocketlauncher() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"rocket launcher\");\n Weapon w19 = new Weapon(\"rocket launcher\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w19);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w19.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n ArrayList<GenericSquare> s = new ArrayList<>();\n players.add(victim);\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPlayerPosition() == Board.getSquare(10));\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPlayerPosition() == Board.getSquare(10) && p.getPlayerPosition() == Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('y'));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(10) && p.getPlayerPosition() == Board.getSquare(7) && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('y'));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(10));\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w19.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(10) && p.getPlayerPosition() == Board.getSquare(7) && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n }", "@Test\r\n void testSpitefulAlwaysDefect() {\r\n AlwaysDefect testStrat = new AlwaysDefect();\r\n Spiteful testStrat2 = new Spiteful();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n Game game = new Game(testStrat, testStrat2, 3, payoffs);\r\n game.playGame();\r\n assertEquals(testStrat2.getPoints(), 2, \"Spiteful strategy not functioning correctly\");\r\n }", "public GameServiceTest() {\r\n\t\tsetupRequestContext();\r\n\t}", "public Game createGame();", "@Test\n void doEffectgrenadelauncher() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"grenade launcher\");\n Weapon w18 = new Weapon(\"grenade launcher\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w18);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w18.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w18.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim.getPlayerPosition() == Board.getSquare(10));\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w18.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim.getPlayerPosition() == Board.getSpawnpoint('y'));\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w18.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(10));\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w18.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n victim2 = new RealPlayer('v', \"ciccia1\");\n victim2.setPlayerPosition(Board.getSquare(10));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(10));\n s.add(Board.getSpawnpoint('y'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w18.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { System.out.println(\"ERROR\");}\n\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPlayerPosition() == Board.getSpawnpoint('y') && victim2.getPb().countDamages() == 1);\n }", "public void load_game() {\n testing();\n}", "@BeforeEach\n void init() {\n player = Mockito.mock(Player.class);\n level = Mockito.mock(Level.class);\n pointCalculator = Mockito.mock(PointCalculator.class);\n game = new SinglePlayerGame(player, level, pointCalculator);\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tscrabbleSystem = new ScrabbleSystem();\n\t\tgameListener = new GameListener() {\n\n\t\t\t@Override\n\t\t\tpublic void tileRackChange() {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void squareChanged() {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void specialRackChange() {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void scoreChanged() {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void gameEnded(List<Player> winner) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void currentplayerScoreChange() {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void currentPlayerChange() {\n\t\t\t}\n\t\t};\n\t}", "@Override\n public void newGame(ICrossingStrategy gameStrategy) {\n\n }", "public void newGame();", "public void newGame();", "public void newGame();", "private Game() {}", "@BeforeClass\n\tpublic static void setup() {\n\t\tbaseWorld = new BaseWorld(1000 ,1500);\n \tGameManager.get().setWorld(new BaseWorld(1000, 1500));\n\t}", "public Game startGame(Game game);", "@Test\n void doEffectlockrifle() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl, false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"lock rifle\");\n Weapon w = new Weapon(\"lock rifle\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n RealPlayer victim1 = new RealPlayer('y', \"ciccia1\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n victim1.setPlayerPosition(Board.getSpawnpoint('b'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim1);\n try{\n p.getPh().getWeaponDeck().getWeapon(w.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPb().getMarkedDamages('b') == 1 && victim1.getPb().countDamages() == 0 && victim1.getPb().getMarkedDamages('b') == 1 );\n }", "@Test\n void doEffectpowerglove() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"power glove\");\n Weapon w10 = new Weapon(\"power glove\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w10);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w10.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try {\n p.getPh().getWeaponDeck().getWeapon(w10.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(p.getPlayerPosition() == Board.getSquare(1) && victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b') == 2);\n\n p.setPlayerPosition(Board.getSquare(0));\n s.add(Board.getSquare(1));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n players.clear();\n players.add(victim);\n s.add(Board.getSpawnpoint('b'));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('b'));\n players.add(victim2);\n try{\n p.getPh().getWeaponDeck().getWeapon(w10.getName()).doEffect(\"alt\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(p.getPlayerPosition() == Board.getSpawnpoint('b') && victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 2);\n\n p.setPlayerPosition(Board.getSquare(0));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(1));\n s.add(Board.getSpawnpoint('b'));\n try{\n p.getPh().getWeaponDeck().getWeapon(w10.getName()).doEffect(\"alt\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { System.out.println(\"ERROR\");}\n\n assertTrue(p.getPlayerPosition() == Board.getSpawnpoint('b') && victim.getPb().countDamages() == 2);\n }", "public GameTypeWrapper playGame();", "@Test\n void doEffectmachinegun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"machine gun\");\n Weapon w14 = new Weapon(\"machine gun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w14);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w14.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia1\");\n victim2.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia2\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w14.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) {\n System.out.println(\"ERROR\");\n }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1);\n\n players.clear();\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.add(victim);\n players.add(victim2);\n players.add(victim);\n players.add(victim3);\n try {\n p.getPh().getWeaponDeck().getWeapon(w14.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n }", "@Before\n public void setUp(){\n choose = new ChooseDieModifier(new DieReducer());\n }", "public GameOfLifeTest()\n {\n }", "@Test\n void doEffectshotgun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"shotgun\");\n Weapon w9 = new Weapon(\"shotgun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w9);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w9.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(0));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(0));\n\n s.add(Board.getSquare(1));\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 6 && victim.getPlayerPosition() == Board.getSquare(1));\n\n s.clear();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, s); //A choice of yours is yours\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n players.clear();\n players.add(victim);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n players.clear();\n players.add(victim);\n s.clear();\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"alt\", null, null, p, players, null); //A choice of yours is wrong\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n }", "public void setGame() {\n }", "@Test\n void doEffectfurnace() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"furnace\");\n Weapon w3 = new Weapon(\"furnace\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w3);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w3.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('r'));\n Terminator t = new Terminator('g', Board.getSquare(5));\n t.setOwnerColor(victim.getColor());\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(victim.getPlayerPosition());\n try{\n p.getPh().getWeaponDeck().getWeapon(w3.getName()).doEffect(\"base\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n p.setPlayerPosition(Board.getSquare(0));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('r'));\n t = new Terminator('g', Board.getSpawnpoint('r'));\n t.setOwnerColor(victim.getColor());\n s.clear();\n s.add(Board.getSpawnpoint('r'));\n try{\n p.getPh().getWeaponDeck().getWeapon(w3.getName()).doEffect(\"alt\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b')==1 && t.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b')==1);\n\n }", "@Test\n public void alienAttacksDefendedHuman() throws FileNotFoundException,\n URISyntaxException, DisconnectedException {\n // preparo il terreno\n MatchController matchController = new MatchController() {\n @Override\n public void initMatch(PartyController partyController)\n throws FileNotFoundException, URISyntaxException {\n this.partyController = partyController;\n this.match = new Match();\n this.turnController = new TurnController(this);\n ZoneFactory zf = new TemplateZoneFactory(\n EftaiosGame.DEFAULT_MAP);\n this.zoneController = new ZoneController(zf);\n }\n\n @Override\n public void checkEndGame() {\n }\n\n @Override\n protected void notifyAPlayerAbout(Player player, String about) {\n }\n\n @Override\n protected void showCardToParty(Card card) {\n }\n\n @Override\n protected void updateDeckView(Player player) {\n }\n\n @Override\n protected void sendMapVariationToPlayer(Player player, Sector sec,\n SectorHighlight highlight) {\n }\n\n @Override\n protected void sendViewModelToAPlayer(Player p, ViewModel content) {\n }\n };\n\n PlayerCard alien = new PlayerCard(PlayerRace.ALIEN, null);\n PlayerCard human = new PlayerCard(PlayerRace.HUMAN, null);\n Party party = new Party(\"test\", new EftaiosGame(), false);\n PartyController partyController = PartyController.createNewParty(party);\n party.addToParty(UUID.randomUUID(), \"player1\");\n party.addToParty(UUID.randomUUID(), \"player2\");\n List<Player> players = new ArrayList<Player>(party.getMembers()\n .keySet());\n Player player1 = players.get(0);\n Player player2 = players.get(1);\n player1.setIdentity(alien);\n player2.setIdentity(human);\n ItemCard defenseCard = new ItemCard(Item.DEFENSE);\n player2.getItemsDeck().getCards().add(defenseCard);\n\n matchController.initMatch(partyController);\n\n Turn turn = new Turn(player1, matchController.getMatch().getTurnCount());\n matchController.getTurnController().setTurn(turn);\n matchController.getTurnController().getTurn().setMustMove(false);\n HexPoint point = HexPoint.fromOffset(1, 1);\n Sector sec = new Sector(null, point);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player1, sec);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player2, sec);\n matchController.getTurnController().getTurn().setCanAttack(true);\n ActionRequest action = new ActionRequest(ActionType.ATTACK, null, null);\n // eseguo l'azione\n Attack atk = new Attack() {\n @Override\n protected void notifyInChatByCurrentPlayer(String what) {\n }\n\n @Override\n protected void notifyCurrentPlayerByServer(String what) {\n }\n };\n atk.initAction(matchController, action);\n if (atk.isValid())\n atk.processAction();\n // verifico gli esiti\n assertTrue(player1.getKillsCount() == 0);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player1).equals(sec));\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player2).equals(sec));\n assertFalse(matchController.getMatch().getDeadPlayer()\n .contains(player2));\n assertTrue(matchController.getMatch().getDeadPlayer().size() == 0);\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(defenseCard));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket().size() == 1);\n assertFalse(player2.getItemsDeck().getCards().contains(defenseCard));\n\n }", "@Test\n void doEffectPlasmaGun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"plasma gun\");\n Weapon w17 = new Weapon(\"plasma gun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w17);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w17.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n p.setPlayerPosition(Board.getSpawnpoint(2));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(6));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p.getPlayerPosition() == Board.getSquare(6));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(1));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p.getPlayerPosition() == Board.getSquare(1));\n\n p.setPlayerPosition(Board.getSpawnpoint(2));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(6));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && p.getPlayerPosition() == Board.getSquare(6));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w17.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && p.getPlayerPosition() == Board.getSpawnpoint('b'));\n }", "@BeforeClass\n public static void setUp() throws Exception {\n game = ((StonePits) Gdx.app.getApplicationListener());\n soundMan = game.getSoundManager();\n assetMan = game.getAssetManager();\n }", "@Before\n\tpublic void setUp(){\n\t\tnames =new ArrayList<String>();\n\t\tnames.add(\"Chao\");\n\t\tnames.add(\"Shuchang\");\n\t\tnames.add(\"Xiangyu\");\n\t\tnames.add(\"Siyu\");\n\t\tgame = new ScrabbleGame(names);\n\t\t\n\t}", "@Test\r\n void testSpitefulAlwaysCooperate() {\r\n AlwaysCooperate testStrat = new AlwaysCooperate();\r\n Spiteful testStrat2 = new Spiteful();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n Game game = new Game(testStrat, testStrat2, 3, payoffs);\r\n game.playGame();\r\n assertEquals(testStrat2.getPoints(), 9, \"Spiteful strategy not functioning correctly\");\r\n }", "public void setupGame() {\n\t\t// Re-spawn the appropriate number of sheep\n\t\tint numSheep = 31;\n\t\t\n\t\tif (!SheepPhysicsState.PRODUCTION) {\n\t\t\tnumSheep = 1;\n\t\t}\n\t\t\n\t\t// It takes half the sheep to win.\n\t\t_scoreToWin = numSheep / 2;\n\t\tp(\"It takes \" + _scoreToWin + \" sheep to win.\");\n\t\t\n\t\t_hasBeenWon = false;\n\t\t\n\t\t// Non-infrastructural entities.\n\t\t//////////////////////////\n\t\t\n\t\t// Don't create this stuff if I'm replaying.\n\t\tint mod = 1;\n\t\tfor (int i = 0; i < numSheep; i++) {\n\t\t\t//int x = _generator.nextInt(40) - 20;\n\t\t\t//int z = _generator.nextInt(80) - 40;\n\t\t\tmod *= -1;\n\t\t\tint x = i/2 * mod;\n\t\t\tint z = 0;\n\n\t\t\tSheep s = new Sheep(\"sheep-\" + i + \"[\" + _sheepID + \"]\", x, 2, z);\n\t\t\t\n\t\t\tif (!SheepPhysicsState.PRODUCTION) {\n\t\t\t\ts.setBehaviorActive(false);\n\t\t\t}\n\t\t\t\n\t\t\t_sheepID++;\n\t\t}\n\t\t\n\t\t// Add a wubble for testing.\n\t\tif (!_isJimboSpawned && !SheepPhysicsState.PRODUCTION) {\n\t\t\tSystem.out.println(\"Adding Jimbo.\");\n\t\t\t_isJimboSpawned = true;\n\t\t\taddWubble(\"Jimbo\", (short)100, (Integer)1);\n\t\t\taddSidekick(\"Jimbo\");\n\t\t\t//addWubble(\"Bimbo\", (short)101, (Integer)0);\n\t\t}\n\t\t\n\t\t//////////////////////////\n\n\t\t// Add some wrenches in the appropriate spots.\n\t\tnew Wrench(\"blueWrench1\", -8, 5, -20);\n\t\tnew Wrench(\"blueWrench2\", 8, 5, -20);\n\t\tnew Wrench(\"redWrench1\", -8, 5, 20);\n\t\tnew Wrench(\"redWrench2\", 8, 5, 20);\n\t\t\n\t\t// Save the start of the me.\n\t\t_gameStart = System.currentTimeMillis();\n\t\tSystem.out.println(\"Started game at \" + _gameStart);\n\t\t\n\t\t// Make some predicates.\n\t\t//Predicate p = new Predicate(\"baseClassPred\");\n\t\t//GoPred g = new GoPred(\"derivedGoClass\", 1);\n\t\t\n\t\t//new PowerUp(\"PowerUpS\", -1, PowerUpInfo.PowerUpType.SPEEDY, new Vector3f(0, 0.4f, 0));\n\t\t//new PowerUp(\"PowerUpE\", -1, PowerUpInfo.PowerUpType.EATER, new Vector3f(2, 0.4f, 0));\n\t\t//new PowerUp(\"PowerUpS\", -1, PowerUpInfo.PowerUpType.STICKY, new Vector3f(2, 0.4f, 2));\n\t}", "@Before\n\tpublic void setUp() throws Exception\n\t{\n\n\t\tPlayer currentPlayer = new Player(\"joe\");\n\t\tcurrentPlayer.getInventory().add(new Crack(0,\"itemName\", \"description\", 100));\n\t\tDWD content = new DWD(currentPlayer);\n\t\tScanner scanner = new Scanner(System.in);\n\t\tgls = new GameLogicService(content, scanner);\n\t\tgls.init(currentPlayer.getName());\n\n\t}", "@Test\n void doEffectsledgehammer() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"sledgehammer\");\n Weapon w13 = new Weapon(\"sledgehammer\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w13);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w13.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"alt\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(10));\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w13.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(6));\n }", "@Test\n void doEffecttractorbeam() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"tractor beam\");\n Weapon w2 = new Weapon(\"tractor beam\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w2);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w2.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(players.get(0).getPb().countDamages() == 1 && players.get(0).getPlayerPosition() == Board.getSpawnpoint('b'));\n\n players.get(0).setPlayerPosition(Board.getSquare(1));\n s.clear();\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(players.get(0).getPb().countDamages() == 4 && players.get(0).getPlayerPosition() == p.getPlayerPosition());\n }", "@Test\n void doEffecthellion() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"hellion\");\n Weapon w5 = new Weapon(\"hellion\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w5);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w5);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w5.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w5.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b') == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n players.clear();\n players.add(victim);\n players.add(t);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w5.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 2 && victim.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b') == 2);\n }", "@Test\n void doEffectcyberblade(){\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"cyberblade\");\n Weapon w20 = new Weapon(\"cyberblade\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w20);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w20.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n }", "private void createGame(String name){\n\n }", "@Test\n void doEffectflamethrower() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"flamethrower\");\n Weapon w7 = new Weapon(\"flamethrower\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w7);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w7.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n players.get(1).setPlayerPosition(Board.getSquare(5));\n try{\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null); //\"A choice of yours is wrong\"\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n players.remove(1);\n\n try {\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n RealPlayer p2 = new RealPlayer('v', \"ciccia\");\n p2.setPlayerPosition(Board.getSquare(1));\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.clear();\n s.add(victim.getPlayerPosition());\n s.add(t.getPlayerPosition());\n\n try {\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"alt\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p2.getPb().countDamages() == 2 && t.getPb().countDamages() == 1);\n }", "@Test\n void doEffectheatseeker() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"heatseeker\");\n Weapon w4 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w4);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w4);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w4.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w4.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n }", "@Before\n public void setUp() {\n IGameFactory factory = new DefaultGameFactory();\n parser = new MapParser(factory);\n }", "@Test\n\tpublic void testInitialTurn() {\n\t\tStrategy2 testPlayer = new Strategy2();\n\t\tMeld testMeld = new Meld(new Tile(new Colour(\"Red\", \"r\"), new Number(\"Ten\", \"10\"), new Image(\"10r.gif\")));\n\t\ttestMeld.addToMeld(new Tile(new Colour(\"Blue\", \"g\"), new Number(\"Ten\", \"10\"), new Image(\"10g.gif\")));\n\t\ttestMeld.addToMeld(new Tile(new Colour(\"Yellow\", \"y\"), new Number(\"Ten\", \"10\"), new Image(\"10y.gif\")));\n\t\ttestPlayer.melds.add(testMeld);\n\t\tassertEquals(\"This should play\", true, testPlayer.initialTurnPlay());\n\t\ttestPlayer.melds.clear();\n\t\t\n\t\ttestMeld = new Meld(new Tile(new Colour(\"Red\", \"r\"), new Number(\"Five\", \"5\"), new Image(\"5r.gif\")));\n\t\ttestMeld.addToMeld(new Tile(new Colour(\"Blue\", \"g\"), new Number(\"Five\", \"5\"), new Image(\"5g.gif\")));\n\t\ttestMeld.addToMeld(new Tile(new Colour(\"Yellow\", \"y\"), new Number(\"Five\", \"5\"), new Image(\"5y.gif\")));\n\t\ttestPlayer.melds.add(testMeld);\n\t\tassertEquals(\"This should not play\", false, testPlayer.initialTurnPlay());\n\t\ttestPlayer.melds.clear();\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\t\t f=new crazyfail(this);\n\t cfg=new crazyFirstGame(this);\n\t \n\t \t setScreen(cfg);\n\t \n\t\t\n\t}", "public GameLuncher(GameGUI gameGUI) {\n this.gameGUI = gameGUI;\n createGame();\n }", "@Test\n public void testTakeTurn() {\n// System.out.println(\"takeTurn\");\n// GameSession instance = null;\n// instance.takeTurn();\n// // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "@Test\r\n void testMistrustAlwaysDefect() {\r\n AlwaysDefect testStrat = new AlwaysDefect();\r\n Mistrust testStrat2 = new Mistrust();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n Game game = new Game(testStrat, testStrat2, 3, payoffs);\r\n game.playGame();\r\n assertEquals(testStrat2.getPoints(), 3, \"Mistrust strategy not functioning correctly\");\r\n }", "SpaceInvaderTest createSpaceInvaderTest();", "@Test\n void doEffectthor() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"t.h.o.r.\");\n Weapon w15 = new Weapon(\"t.h.o.r.\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w15);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w15.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n try {\n p.getPh().getWeaponDeck().getWeapon(w15.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n players.add(victim2);\n players.add(victim3);\n try {\n p.getPh().getWeaponDeck().getWeapon(w15.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 2);\n }", "public void defaultGame() {\n //CREATE A BOARD\n Board board = new Board(10, 10, 0);\n ArrayList<Boat> boats = createDefaultBoatArray();\n //CREATE A GAME\n GameData game = new GameData(board, boats, false);\n //POSITION BOATS\n randomPosBoats(game);\n\n //!!tile matrix is empty\n Game.getInstance().setGameData(game);\n Game.getInstance().setEnded(false);\n }", "@Test\n public void testIsGamePlayable() throws AuthenticationException {\n Map<String, String> data = gameInitializationService.createGame();\n Integer gameId = Integer.parseInt(data.get(GAME_ID));\n String tokenPlayerO = gameInitializationService.joinGame(gameId);\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"A1\", tokenPlayerO), \"Test game is playable.\");\n }", "void gameTie();", "@Test\n void doEffectrailgun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"railgun\");\n Weapon w11 = new Weapon(\"railgun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w11);\n p.setPlayerPosition(Board.getSpawnpoint('r'));\n p.getPh().drawWeapon(wd, w11.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try {\n p.getPh().getWeaponDeck().getWeapon(w11.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w11.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w11.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 2);\n }", "public void startGame() {\r\n this.setupGame();\r\n }", "void createNewGame(Player player);", "public void preGame() {\n\n\t}", "@Test\n public void fightShredderTest() {\n }", "@Test\r\n void testProberFirst() {\r\n Prober testStrat = new Prober();\r\n AlwaysCooperate testStrat2 = new AlwaysCooperate();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n ArrayList<Character> expected = new ArrayList<>(Arrays.asList('d', 'c', 'c', 'd', 'd'));\r\n Game game = new Game(testStrat, testStrat2, 5, payoffs);\r\n game.playGame();\r\n assertEquals(game.historyStrategy1, expected, \"Prober strategy not functioning correctly\");\r\n }", "@Test\n void doEffectwhisper() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"whisper\");\n Weapon w6 = new Weapon(\"whisper\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w6);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSpawnpoint(2));\n p.getPh().drawWeapon(wd, w6.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w6.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim.getPb().countDamages() == 3);\n\n players.get(0).setPlayerPosition(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w6.getName()).doEffect(\"base\", null, null, p, players, null); //\"A choice of yours is wrong\"\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n }", "@Test\n public void alienAttacksUndefendedHuman() throws FileNotFoundException,\n URISyntaxException, DisconnectedException {\n // preparo il terreno\n MatchController matchController = new MatchController() {\n @Override\n public void initMatch(PartyController partyController)\n throws FileNotFoundException, URISyntaxException {\n this.partyController = partyController;\n this.match = new Match();\n this.turnController = new TurnController(this);\n ZoneFactory zf = new TemplateZoneFactory(\n EftaiosGame.DEFAULT_MAP);\n this.zoneController = new ZoneController(zf);\n }\n\n @Override\n public void checkEndGame() {\n }\n\n @Override\n protected void notifyAPlayerAbout(Player player, String about) {\n }\n\n @Override\n protected void showCardToParty(Card card) {\n }\n\n @Override\n protected void updateDeckView(Player player) {\n }\n\n @Override\n protected void sendMapVariationToPlayer(Player player, Sector sec,\n SectorHighlight highlight) {\n }\n\n @Override\n protected void sendViewModelToAPlayer(Player p, ViewModel content) {\n }\n };\n\n PlayerCard alien = new PlayerCard(PlayerRace.ALIEN, null);\n PlayerCard human = new PlayerCard(PlayerRace.HUMAN, null);\n Party party = new Party(\"test\", new EftaiosGame(), false);\n PartyController partyController = PartyController.createNewParty(party);\n party.addToParty(UUID.randomUUID(), \"player1\");\n party.addToParty(UUID.randomUUID(), \"player2\");\n List<Player> players = new ArrayList<Player>(party.getMembers()\n .keySet());\n Player player1 = players.get(0);\n Player player2 = players.get(1);\n player1.setIdentity(alien);\n player2.setIdentity(human);\n\n matchController.initMatch(partyController);\n\n Turn turn = new Turn(player1, matchController.getMatch().getTurnCount());\n matchController.getTurnController().setTurn(turn);\n matchController.getTurnController().getTurn().setMustMove(false);\n HexPoint point = HexPoint.fromOffset(1, 1);\n Sector sec = new Sector(null, point);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player1, sec);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player2, sec);\n matchController.getTurnController().getTurn().setCanAttack(true);\n ActionRequest action = new ActionRequest(ActionType.ATTACK, null, null);\n // eseguo l'azione\n Attack atk = new Attack() {\n @Override\n protected void notifyInChatByCurrentPlayer(String what) {\n }\n\n @Override\n protected void notifyCurrentPlayerByServer(String what) {\n }\n };\n atk.initAction(matchController, action);\n if (atk.isValid())\n atk.processAction();\n // verifico gli esiti\n assertTrue(player1.getKillsCount() == 1);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player1).equals(sec));\n assertTrue(matchController.getTurnController().getTurn().getCanAttack() == false);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player2) == matchController.endingSector);\n assertTrue(matchController.getMatch().getDeadPlayer().contains(player2));\n assertTrue(matchController.getMatch().getDeadPlayer().size() == 1);\n }", "@BeforeEach\n void setUp() {\n MockitoAnnotations.initMocks(this);\n Launcher launch = (new Launcher()).withMapFile(mapFile);\n game = launch.makeGame();\n game.getLevel().addObserver(observer);\n }", "@Test\n public void testFullGameOwinMinor() throws AuthenticationException {\n Map<String, String> data = gameInitializationService.createGame();\n Integer gameId = Integer.parseInt(data.get(GAME_ID));\n final String tokenPlayerX = data.get(TOKEN);\n final String tokenPlayerO = gameInitializationService.joinGame(gameId);\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"A1\", tokenPlayerO), \"Test game - O is playing A1.\");\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"B1\", tokenPlayerX), \"Test game - X is playing B1.\");\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"B2\", tokenPlayerO), \"Test game - O is playing B2.\");\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"A2\", tokenPlayerX), \"Test game - X is playing A2.\");\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"C3\", tokenPlayerO), \"Test game - O is playing C3.\");\n }", "public FakePlayer() {\n this(Minecraft.getMinecraft().thePlayer.worldObj);\n }", "@Override\n\tpublic void create() {\n\t\tthis.playScreen = new PlayScreen<EntityUnknownGame>(this);\n\t\tsetScreen(this.playScreen);\n\t\t\n\t\t//this.shadowMapTest = new ShadowMappingTest<EntityUnknownGame>(this);\n\t\t//setScreen(this.shadowMapTest);\n\t\t\n\t\t//this.StillModelTest = new StillModelTest<EntityUnknownGame>(this);\n\t\t//setScreen(this.StillModelTest);\n\t\t\n//\t\tthis.keyframedModelTest = new KeyframedModelTest<EntityUnknownGame>(this);\n//\t\tsetScreen(this.keyframedModelTest);\n\t}", "@Before\n public void setUp() {\n \n hawthorn1 = new HawthornWandBehavior();\n }", "@Test\n public void partyTour() throws FileNotFoundException, URISyntaxException,\n DisconnectedException {\n MatchController matchController = new MatchController() {\n @Override\n public void initMatch(PartyController partyController)\n throws FileNotFoundException, URISyntaxException {\n this.partyController = partyController;\n this.match = new Match();\n this.turnController = new TurnController(this) {\n @Override\n protected boolean isPlayerOffline(Player player) {\n return false;\n }\n\n @Override\n protected void notify(Player nextPlayer) {\n }\n\n };\n ZoneFactory zf = new TemplateZoneFactory(\n EftaiosGame.DEFAULT_MAP);\n this.zoneController = new ZoneController(zf);\n }\n\n @Override\n public void checkEndGame() {\n }\n\n };\n PlayerCard alien = new PlayerCard(PlayerRace.ALIEN, null);\n PlayerCard human = new PlayerCard(PlayerRace.HUMAN, null);\n Party party = new Party(\"test\", new EftaiosGame(), false);\n PartyController partyController = PartyController.createNewParty(party);\n party.addToParty(UUID.randomUUID(), \"player1\");\n party.addToParty(UUID.randomUUID(), \"player2\");\n party.addToParty(UUID.randomUUID(), \"player3\");\n party.addToParty(UUID.randomUUID(), \"player4\");\n party.addToParty(UUID.randomUUID(), \"player5\");\n party.addToParty(UUID.randomUUID(), \"player6\");\n party.addToParty(UUID.randomUUID(), \"player7\");\n List<Player> players = new ArrayList<Player>(party.getMembers()\n .keySet());\n Player player1 = players.get(0);\n Player player2 = players.get(1);\n Player player3 = players.get(2);\n Player player4 = players.get(3);\n Player player5 = players.get(4);\n Player player6 = players.get(5);\n Player player7 = players.get(6);\n player1.setIdentity(alien);\n player2.setIdentity(alien);\n player3.setIdentity(alien);\n player4.setIdentity(alien);\n player5.setIdentity(human);\n player6.setIdentity(human);\n player7.setIdentity(human);\n matchController.initMatch(partyController);\n\n // turno di partenza\n Player startPlayer = new Player(\"\", 9);\n for (Player nextPlayer : players) {\n if (nextPlayer.getIndex() == 7) {\n startPlayer = nextPlayer;\n }\n }\n Turn turn = new Turn(startPlayer, matchController.getMatch()\n .getTurnCount());\n matchController.getTurnController().setTurn(turn);\n assertTrue(matchController.getTurnController().getTurn()\n .getCurrentPlayer().equals(startPlayer));\n int num = matchController.getMatch().getTurnCount();\n\n // cerco il player successivo\n Player endPlayer = new Player(\"\", 9);\n for (Player nextPlayer : players) {\n if (nextPlayer.getIndex() == 1) {\n endPlayer = nextPlayer;\n }\n }\n\n // eseguo\n matchController.getTurnController().nextTurn();\n\n // verifico\n assertTrue(matchController.getTurnController().getTurn()\n .getCurrentPlayer().equals(endPlayer));\n assertTrue(matchController.getMatch().getTurnCount() == num + 1);\n }", "@BeforeTest\n\tpublic void setUp() {\n\t\tthis.lawn = new Lawn(4, 5);\n\t}", "public abstract void RunOnGameOpen();", "public GameGenerator() {\r\n\t\tthis.actionsCommand = new ArrayList<ICommand>();\r\n\t\tthis.invokerCommands = new ArrayList<InvokerCommand>();\r\n\t}", "@BeforeEach\n void setUp() {\n time_out = 5;\n//// red goalie in center of field\n goalie = new Goalie(300, 360, true);\n ball = new Ball();\n }", "@Override\n protected void initGame() {\n getGameWorld().setEntityFactory(new PlatformerFactory());\n getGameWorld().setLevelFromMap(\"Platformergame1.json\");\n\n // Sets spawnloction of the player\n player = getGameWorld().spawn(\"player\", 50, 50);\n }", "public GenGameOver() { \n prepare();\n }", "@Test\n void doEffectzx2() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"zx-2\");\n Weapon w8 = new Weapon(\"zx-2\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w8);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w8.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b') == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('r'));\n players.clear();\n players.add(victim);\n players.add(t);\n players.add(victim2);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim2.getPb().getMarkedDamages('b') == 1 && t.getPb().getMarkedDamages('b') == 1);\n\n players.remove(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 2 && victim2.getPb().getMarkedDamages('b') == 2);\n }", "public abstract void setGame(Gyges game);", "@Test\n void doEffectshockwave() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n RealPlayer b = new RealPlayer('b', \"blue\");\n RealPlayer e = new RealPlayer('e', \"emerald\");\n RealPlayer gr = new RealPlayer('g', \"grey\");\n RealPlayer v = new RealPlayer('v', \"violet\");\n RealPlayer y = new RealPlayer('y', \"yellow\");\n AlphaGame.getPlayers().add(b);\n AlphaGame.getPlayers().add(e);\n AlphaGame.getPlayers().add(gr);\n AlphaGame.getPlayers().add(v);\n AlphaGame.getPlayers().add(y);\n WeaponFactory wf = new WeaponFactory(\"shockwave\");\n Weapon w12 = new Weapon(\"shockwave\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w12);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w12.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(5));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n players.add(victim3);\n try{\n p.getPh().getWeaponDeck().getWeapon(w12.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException ex) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(5));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n players.clear();\n players.add(victim2);\n players.add(victim3);\n try{\n p.getPh().getWeaponDeck().getWeapon(w12.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException ex) { }\n\n assertTrue(victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(5));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim4 = new RealPlayer('b', \"ciccia\");\n RealPlayer victim5 = new RealPlayer('p', \"ciccia\");\n victim4.setPlayerPosition(Board.getSquare(1));\n victim5.setPlayerPosition(Board.getSquare(0));\n players.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w12.getName()).doEffect(\"alt\", null, null, p, null, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException ex) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1 && victim4.getPb().countDamages() == 0 && victim5.getPb().countDamages() == 0);\n }", "@Override\n public void newGame() {\n //TODO Implement this method\n }", "public void startNewGame();", "@Test\n public void alienAttacksMultipleTargets() throws FileNotFoundException,\n URISyntaxException, DisconnectedException {\n // preparo il terreno\n MatchController matchController = new MatchController() {\n @Override\n public void initMatch(PartyController partyController)\n throws FileNotFoundException, URISyntaxException {\n this.partyController = partyController;\n this.match = new Match();\n this.turnController = new TurnController(this);\n ZoneFactory zf = new TemplateZoneFactory(\n EftaiosGame.DEFAULT_MAP);\n this.zoneController = new ZoneController(zf);\n\n }\n\n @Override\n public void checkEndGame() {\n }\n\n @Override\n protected void notifyAPlayerAbout(Player player, String about) {\n }\n\n @Override\n protected void showCardToParty(Card card) {\n }\n\n @Override\n protected void updateDeckView(Player player) {\n }\n\n @Override\n protected void sendMapVariationToPlayer(Player player, Sector sec,\n SectorHighlight highlight) {\n }\n\n @Override\n protected void sendViewModelToAPlayer(Player p, ViewModel content) {\n }\n };\n\n PlayerCard alien = new PlayerCard(PlayerRace.ALIEN, null);\n PlayerCard human = new PlayerCard(PlayerRace.HUMAN, null);\n Party party = new Party(\"test\", new EftaiosGame(), false);\n PartyController partyController = PartyController.createNewParty(party);\n party.addToParty(UUID.randomUUID(), \"player1\");\n party.addToParty(UUID.randomUUID(), \"player2\");\n party.addToParty(UUID.randomUUID(), \"player3\");\n party.addToParty(UUID.randomUUID(), \"player4\");\n party.addToParty(UUID.randomUUID(), \"player5\");\n party.addToParty(UUID.randomUUID(), \"player6\");\n List<Player> players = new ArrayList<Player>(party.getMembers()\n .keySet());\n Player player1 = players.get(0);\n Player player2 = players.get(1);\n Player player3 = players.get(2);\n Player player4 = players.get(3);\n Player player5 = players.get(4);\n Player player6 = players.get(5);\n player1.setIdentity(alien);// attaccante\n player2.setIdentity(alien);// alieno in loco\n player3.setIdentity(alien);// alieno difeso\n player4.setIdentity(human);// umano indifeso\n player5.setIdentity(human);// umano altrove\n player6.setIdentity(human);// umano difeso\n ItemCard defenseCard1 = new ItemCard(Item.DEFENSE);\n ItemCard defenseCard2 = new ItemCard(Item.DEFENSE);\n ItemCard spotlightCard = new ItemCard(Item.SPOTLIGHT);\n ItemCard card2 = new ItemCard(Item.SEDATIVES);\n ItemCard card3 = new ItemCard(Item.ATTACK);\n player3.getItemsDeck().getCards().add(defenseCard1);\n player4.getItemsDeck().getCards().add(spotlightCard);\n player4.getItemsDeck().getCards().add(card2);\n player4.getItemsDeck().getCards().add(card3);\n player6.getItemsDeck().getCards().add(defenseCard2);\n\n matchController.initMatch(partyController);\n\n Turn turn = new Turn(player1, matchController.getMatch().getTurnCount());\n matchController.getTurnController().setTurn(turn);\n matchController.getTurnController().getTurn().setMustMove(false);\n HexPoint point = HexPoint.fromOffset(1, 1);\n Sector sec = new Sector(null, point);\n HexPoint point2 = HexPoint.fromOffset(2, 3);\n Sector sec2 = new Sector(null, point2);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player1, sec);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player2, sec);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player3, sec);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player4, sec);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player5, sec2);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player6, sec);\n matchController.getTurnController().getTurn().setCanAttack(true);\n ActionRequest action = new ActionRequest(ActionType.ATTACK, null, null);\n // eseguo l'azione\n Attack atk = new Attack() {\n @Override\n protected void notifyInChatByCurrentPlayer(String what) {\n }\n\n @Override\n protected void notifyCurrentPlayerByServer(String what) {\n }\n };\n atk.initAction(matchController, action);\n if (atk.isValid())\n atk.processAction();\n // verifico gli esiti\n assertTrue(player1.getKillsCount() == 1);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player1).equals(sec));\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player2) == matchController.endingSector);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player3) == matchController.endingSector);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player4) == matchController.endingSector);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player5).equals(sec2));\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player6).equals(sec));\n assertFalse(matchController.getMatch().getDeadPlayer()\n .contains(player1));\n assertTrue(matchController.getMatch().getDeadPlayer().contains(player2));\n assertTrue(matchController.getMatch().getDeadPlayer().contains(player3));\n assertTrue(matchController.getMatch().getDeadPlayer().contains(player4));\n assertFalse(matchController.getMatch().getDeadPlayer()\n .contains(player5));\n assertFalse(matchController.getMatch().getDeadPlayer()\n .contains(player6));\n assertTrue(matchController.getMatch().getDeadPlayer().size() == 3);\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(defenseCard1));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(defenseCard2));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(spotlightCard));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(card2));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket()\n .contains(card3));\n assertTrue(matchController.getMatch().getItemsDeck().getBucket().size() == 5);\n assertFalse(player3.getItemsDeck().getCards().contains(defenseCard1));\n assertFalse(player4.getItemsDeck().getCards().contains(spotlightCard));\n assertFalse(player4.getItemsDeck().getCards().contains(card2));\n assertFalse(player4.getItemsDeck().getCards().contains(card3));\n assertFalse(player6.getItemsDeck().getCards().contains(defenseCard2));\n }", "public void letSmartComputerSetup() {\n //generates a random spot for the flag\n int randomRow = (int)(Math.random() * 2);\n int randomCol = (int)(Math.random() * 10);\n\n //adjusts the flag for the proper team\n if(state.getCurrentTeamsTurn().getTEAMNUMBER() == 0) {\n randomRow += 8;\n }\n\n //adds the flag to the board\n state.setLastTappedPieceButton(Rank.FLAG);\n state.tapOnSquare(randomRow, randomCol);\n state.tapOnSquare(randomRow, randomCol);\n\n //places bombs around the flag if possible\n state.setLastTappedPieceButton(Rank.BOMB);\n if(randomRow != 0) {\n state.tapOnSquare(randomRow - 1, randomCol);\n state.tapOnSquare(randomRow - 1, randomCol);\n }\n if(randomRow != 9) {\n state.tapOnSquare(randomRow + 1, randomCol);\n state.tapOnSquare(randomRow + 1, randomCol);\n }\n if(randomCol != 0) {\n state.tapOnSquare(randomRow, randomCol -1);\n state.tapOnSquare(randomRow, randomCol -1);\n }\n if(randomCol != 9) {\n state.tapOnSquare(randomRow, randomCol + 1);\n state.tapOnSquare(randomRow, randomCol + 1);\n }\n\n //transitions the player to play phase\n state.transitionPhases();\n }", "@Test\n void doEffectelectroscythe() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"electroscythe\");\n Weapon w1 = new Weapon(\"electroscythe\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.getWeapons().add(w1);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w1.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(0));\n Terminator t = new Terminator('y', Board.getSquare(0));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w1.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && t.getPb().countDamages() == 2);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w1.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && t.getPb().countDamages() == 3);\n }", "public void initGame() {\n this.game = new Game();\n }", "public void testLizard(){\n }", "@Test\n void testFirstPlayer() {\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n \n ArrayList<Card> heartCards, diamondCards, clubCards, spadeCards;\n\n spadeCards = new ArrayList <Card>();\n heartCards = new ArrayList <Card>();\n diamondCards = new ArrayList <Card>();\n clubCards = new ArrayList <Card>();\n\n for (Rank rank : Rank.values()) {\n heartCards.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeCards.add(new Card(Suit.SPADES, rank, true));\n }\n for (Rank rank : Rank.values()) {\n diamondCards.add(new Card(Suit.DIAMONDS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubCards.add(new Card(Suit.CLUBS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartCards);\n testDealer.getBotB().fillHandCards(spadeCards);\n testDealer.getBotC().fillHandCards(diamondCards);\n testDealer.getUser().fillHandCards(clubCards);\n\n testDealer.setPlayerStarter();\n\n \n assertEquals(testDealer.getUser().getId(), testDealer.getNextPlayer());\n }", "@Before\n public void setUp()\n {\n game = new Game(456);\n // Create countries\n country1 = new Country(\"Country 1\");\n country2 = new Country(\"Country 2\");\n\n country1.setGame(game);\n country2.setGame(game);\n\n // Create cities\n cityA = new City(\"City A\", 80, country1);\n cityB = new City(\"City B\", 60, country1);\n cityC = new City(\"City C\", 40, country1);\n cityD = new CapitalCity(\"City D\", 100, country1);\n cityE = new CapitalCity(\"City E\", 50, country2);\n cityF = new City(\"City F\", 90, country2);\n cityG = new City(\"City G\", 70, country2);\n\n // Connect cities to countries\n country1.addCity(cityA);\n country1.addCity(cityB);\n country1.addCity(cityC);\n country1.addCity(cityD);\n\n country2.addCity(cityE);\n country2.addCity(cityF);\n country2.addCity(cityG);\n\n // Create roads\n country1.addRoads(cityA, cityB, 4);\n country1.addRoads(cityA, cityC, 3);\n country1.addRoads(cityA, cityD, 5);\n country1.addRoads(cityB, cityD, 2);\n country1.addRoads(cityC, cityD, 2);\n country1.addRoads(cityC, cityE, 4);\n country1.addRoads(cityD, cityF, 3);\n country2.addRoads(cityE, cityC, 4);\n country2.addRoads(cityE, cityF, 2);\n country2.addRoads(cityE, cityG, 5);\n country2.addRoads(cityF, cityD, 3);\n country2.addRoads(cityF, cityG, 6);\n }", "private void initGame() {\r\n \t//body of snake 3\r\n \t\tdots = 3;\r\n \t\t//position the body of snake behind each other initially\r\n \t\tfor(int i = 0; i < dots; i++) {\r\n \t\t\tx[i] = 50 - i * 10;\r\n \t\t\ty[i] = 50;\r\n \t\t}\r\n \t\t//call random apple\r\n \t\trandomApple();\r\n \t\t//start the timer class\r\n \t\ttimer = new Timer(DELAY, this);\r\n \t\ttimer.start();\r\n }", "Games game();", "void create(GameLogic gameLogic);", "@Test\n public void alienAttacksNoone() throws FileNotFoundException,\n URISyntaxException, DisconnectedException {\n MatchController matchController = new MatchController() {\n @Override\n public void initMatch(PartyController partyController)\n throws FileNotFoundException, URISyntaxException {\n this.partyController = partyController;\n this.match = new Match();\n this.turnController = new TurnController(this);\n ZoneFactory zf = new TemplateZoneFactory(\n EftaiosGame.DEFAULT_MAP);\n this.zoneController = new ZoneController(zf);\n }\n\n @Override\n public void checkEndGame() {\n }\n\n @Override\n protected void sendTurnViewModel() {\n }\n\n };\n\n PlayerCard alien = new PlayerCard(PlayerRace.ALIEN, null);\n Party party = new Party(\"test\", new EftaiosGame(), false);\n PartyController partyController = PartyController.createNewParty(party);\n party.addToParty(UUID.randomUUID(), \"player1\");\n List<Player> players = new ArrayList<Player>(party.getMembers()\n .keySet());\n Player player1 = players.get(0);\n player1.setIdentity(alien);\n\n matchController.initMatch(partyController);\n Turn turn = new Turn(player1, matchController.getMatch().getTurnCount());\n matchController.getTurnController().setTurn(turn);\n matchController.getTurnController().getTurn().setMustMove(false);\n HexPoint point = HexPoint.fromOffset(1, 1);\n Sector sec = new Sector(null, point);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player1, sec);\n matchController.getTurnController().getTurn().setCanAttack(true);\n ActionRequest action = new ActionRequest(ActionType.ATTACK, null, null);\n // eseguo l'azione\n Attack atk = new Attack() {\n @Override\n protected void notifyInChatByCurrentPlayer(String what) {\n }\n\n @Override\n protected void notifyCurrentPlayerByServer(String what) {\n }\n };\n atk.initAction(matchController, action);\n if (atk.isValid())\n atk.processAction();\n // verifico gli esiti\n assertTrue(player1.getKillsCount() == 0);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player1).equals(sec));\n assertTrue(matchController.getMatch().getDeadPlayer().size() == 0);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tGameLauncher gameLauncher = new GameLauncher();\n\t\t\t}", "@Test\n void grab() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n Square s = new Square(0, 4, false, true, false, true, false, 'b');\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(s);\n p.getPh().getPowerupDeck().getPowerups().clear();\n p.setTurn(true);\n AmmoTile a = new AmmoTile();\n PowerupDeck pud = new PowerupDeck();\n int[] cubes = new int[3];\n cubes[0] = 2;\n cubes[2] = 1;\n char[] c1 = {'b', 'b', 'b'};\n char[] c2 = {'r', 'r', 'r'};\n char[] c3 = {'y', 'y', 'y'};\n p.getPb().payAmmo(c1);\n p.getPb().payAmmo(c2);\n p.getPb().payAmmo(c3);\n a.setCubes(cubes);\n a.setPowerup(false);\n s.setAmmo(a);\n try{\n p.grab(p.getPlayerPosition(), pud);\n }catch (WrongSquareException e){}\n }", "public PlayableGame() {\r\n\r\n }", "@Test\n public void testFullGameOwin() throws AuthenticationException {\n Map<String, String> data = gameInitializationService.createGame();\n Integer gameId = Integer.parseInt(data.get(GAME_ID));\n final String tokenPlayerX = data.get(TOKEN);\n Assertions.assertEquals(\"AWAITING_OTHER_PLAYER\", gamePlayService.obtainGameStatus(gameId, tokenPlayerX));\n final String tokenPlayerO = gameInitializationService.joinGame(gameId);\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"A1\", tokenPlayerO), \"Test game - O is playing A1.\");\n Assertions.assertEquals(\"OTHER_PLAYER_TURN\", gamePlayService.obtainGameStatus(gameId, tokenPlayerO));\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"B1\", tokenPlayerX), \"Test game - X is playing B1.\");\n Assertions.assertEquals(\"YOUR_TURN\", gamePlayService.obtainGameStatus(gameId, tokenPlayerO));\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"A2\", tokenPlayerO), \"Test game - O is playing A2.\");\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"B2\", tokenPlayerX), \"Test game - X is playing B2.\");\n Assertions.assertFalse(gamePlayService.playGame(gameId, \"B2\", tokenPlayerO), \"Test game - O is playing B2.\");\n Assertions.assertTrue(gamePlayService.playGame(gameId, \"A3\", tokenPlayerO), \"Test game - O is playing C1.\");\n }", "private void setUpGame() {\n DotCom one = new DotCom();\n one.setName(\"Pets.com\");\n DotCom two = new DotCom();\n two.setName(\"eToys.com\");\n DotCom three = new DotCom();\n three.setName(\"Go2.com\");\n dotComList.add(one);\n dotComList.add(two);\n dotComList.add(three);\n\n //display brief instructions for the user//Выводим краткие инструкции для пользователя\n System.out.println(\"Ваша цель - потопить 3 сайта\");\n System.out.println(\"Pets.com, eToys.com,Go2.com\");\n System.out.println(\"Потытайтесь потопить их за минимальное количество ходов\");\n\n for (DotCom dotComToSet : dotComList) {// Повторяем с каждым объектом DotCom в списке\n ArrayList<String> newLocation = helper.placeDotCom(3);//Запрашиваем у вспомогательного объекта адрес \"сайта\"\n dotComToSet.setLocationCells(newLocation); // Вызываем сеттре из объекта DotCom чтобы передать ему\n // местоположение которое только что получилии от вспомогательного объекта\n }\n }", "@Test\n public void isGameOver()\n {\n // Setup.\n final CheckersGameInjector injector = new CheckersGameInjector();\n final List<Agent> agents = createAgents(injector);\n final CheckersEnvironment environment = createEnvironment(injector, agents);\n final CheckersAdjudicator adjudicator = injector.injectAdjudicator();\n\n // Run / Verify.\n assertFalse(adjudicator.isGameOver(environment));\n }" ]
[ "0.6734879", "0.65178186", "0.6505356", "0.64617616", "0.6339557", "0.63273895", "0.62777936", "0.62664104", "0.6237881", "0.6234433", "0.61812973", "0.6141374", "0.61350334", "0.61332047", "0.6131928", "0.6094212", "0.6092977", "0.6084664", "0.6052129", "0.6052129", "0.6052129", "0.6051008", "0.6033725", "0.60194", "0.601747", "0.60029614", "0.5980497", "0.5975672", "0.5966133", "0.59627515", "0.5947477", "0.5939725", "0.59282887", "0.5923414", "0.59138715", "0.59115875", "0.59087116", "0.59038347", "0.58966964", "0.5889883", "0.5882585", "0.5874506", "0.58670235", "0.5855341", "0.58526796", "0.5843757", "0.58338225", "0.5820448", "0.5819959", "0.58196473", "0.5805285", "0.5800964", "0.57860845", "0.5782085", "0.5778315", "0.57738245", "0.5766242", "0.57584673", "0.5751306", "0.57511634", "0.5739595", "0.5737514", "0.57242984", "0.57100695", "0.5709232", "0.57073957", "0.5706277", "0.56881714", "0.56855565", "0.5683255", "0.56759137", "0.56756526", "0.5675567", "0.5671743", "0.56543946", "0.56462115", "0.5642942", "0.56380004", "0.5635345", "0.56320584", "0.5625898", "0.5624525", "0.5618429", "0.56109804", "0.56012344", "0.5600266", "0.5598938", "0.559766", "0.5597599", "0.55971915", "0.55941385", "0.55937976", "0.5590641", "0.55900556", "0.5587475", "0.5584002", "0.55823606", "0.5580226", "0.5579655", "0.5574422" ]
0.5839608
46
try to get a building, a character and a venture with the decorator discount on coins
@Test public void testCardCoinDiscount() throws NotEnoughResourcesException, NotEnoughPointsException{ // bonus is 1 coin Integer expectedCoins = 3; // card 3 is Triumphal Arch (cost: 2 stones and 2 coins) testResourcesDecorator.resourcesForBuilding(testPlayer,testGameHandler.mainBoard.buildingMap.get(3)); // card 1 is Preacher (cost: 2 coins) testResourcesDecorator.coinsForCharacter(testPlayer,testGameHandler.mainBoard.characterMap.get(1)); // card 3 is Repairing the Church (cost: 1 wood, 1 stone, 1 coin) testResourcesDecorator.resourcesForVenture(testPlayer,testGameHandler.mainBoard.ventureMap.get(3)); assertEquals(expectedCoins,testPlayer.resources.getCoins()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }", "public static void main(String[] args) throws InterruptedException {\n Item item1 = new Item(\"Coca-cola\", 200);\n System.out.println(\"Price before discount: \" + item1.getPrice());\n System.out.println(\"Price after discount: \" + item1.calculateDiscount()); //should be same price, 200, there's no doscount for this type\n\n ItemWithDiscount item2 = new ItemWithDiscount(\"Coca-cola Zero\", 2.0);\n System.out.println(\"\\nPrice before discount: \" + item2.getPrice());\n item2.setDiscount(10);\n System.out.println(\"Price after discount: \" + item2.calculateDiscount()); // 2 - 0.2 = 1.8\n\n\n //CHECK BUY PAY DISCOUNT\n BuyMorePayLess item04 = new BuyMorePayLess(\"Milk\", 10);\n BuyMorePayLess item05 = new BuyMorePayLess(\"Milk\", 10);\n BuyMorePayLess item06 = new BuyMorePayLess(\"Milk\", 1);\n item04.setBuyPayOffer(3,2);\n item04.calculateDiscount();\n\n //Check TakeItAll discount\n ItemTakeItAll item07 = new ItemTakeItAll(\"Tuna\",5.00);\n ItemTakeItAll item08 = new ItemTakeItAll(\"Tuna\",5.00);\n\n// item07.setDiscount(10);\n item07.setMinimumNumber(1);\n System.out.println(\"##################\" + item07.calculateDiscount());\n\n // USERS\n LoyalCustomer customer01 = new LoyalCustomer(\"Giorgi Tsipuria\", \"giobaski\", \"123\",\n \"Gonsiori 33\",\"55945239\");\n\n //B A S K E T S\n Basket basket01 = new Basket(\"Tartu 46\", \"Kairi\", customer01);\n basket01.insertItem(item1); //200 -> 200\n basket01.insertItem(item2); // 2.0 -> 1.8\n System.out.println(\"Total payment in basket: \" + basket01.caclulatePayment()); //201.8 + 201.8 * 0.1 = 221.98\n\n\n\n\n\n //1. Create Store\n Store store = new Store(\"Raua 16\");\n\n //2. sign into store\n Cashier currentCashier = store.cashierAuthentication();\n\n //3.\n Menu currentMenu = store.openMenu();\n\n //4. new basket\n currentMenu.openNewBasket(customer01);\n\n\n //5.Cashier starts adding items into new basket\n System.out.println(currentMenu.getBasket());\n currentMenu.getBasket().insertItem(item1);\n currentMenu.getBasket().insertItem(item2);\n\n\n System.out.println(\"######Basket By ID:\");\n currentMenu.printBasketInfoById(2);\n System.out.println(\"########\");\n\n\n //6. Calculate total price for the current basket\n currentMenu.getBasket().caclulatePayment();\n System.out.println(currentMenu.getBasket());\n System.out.println(\"currents items: \");\n System.out.println(currentMenu.getBasket().getItems());\n\n //7. Logout cashier\n Thread.sleep(10000);\n currentMenu.exit();\n\n\n // Additional features\n System.out.println(\"points of the loyal customer: \" + customer01.getPoints());\n\n System.out.println(\"Bonus for cashier: \" + currentCashier.calculateBonus() + \" Euros\");\n\n\n\n\n\n\n }", "public double getCost(StringBuffer detail, boolean ignoreAmmo) {\n double[] costs = new double[15];\n int i = 0;\n\n double cockpitCost = 0;\n if (getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED) {\n cockpitCost = 750000;\n } else if (getCockpitType() == Mech.COCKPIT_DUAL) {\n // FIXME\n cockpitCost = 0;\n } else if (getCockpitType() == Mech.COCKPIT_COMMAND_CONSOLE) {\n // Command Consoles are listed as a cost of 500,000.\n // That appears to be in addition to the primary cockpit.\n cockpitCost = 700000;\n } else if (getCockpitType() == Mech.COCKPIT_SMALL) {\n cockpitCost = 175000;\n } else if (getCockpitType() == Mech.COCKPIT_INDUSTRIAL) {\n cockpitCost = 100000;\n } else {\n cockpitCost = 200000;\n }\n if (hasEiCockpit() && getCrew().getOptions().booleanOption(\"ei_implant\")) {\n cockpitCost = 400000;\n }\n costs[i++] = cockpitCost;\n costs[i++] = 50000;// life support\n costs[i++] = weight * 2000;// sensors\n int muscCost = hasTSM() ? 16000 : 2000;\n costs[i++] = muscCost * weight;// musculature\n costs[i++] = EquipmentType.getStructureCost(structureType) * weight;// IS\n costs[i++] = getActuatorCost();// arm and/or leg actuators\n Engine engine = getEngine();\n costs[i++] = engine.getBaseCost() * engine.getRating() * weight / 75.0;\n if (getGyroType() == Mech.GYRO_XL) {\n costs[i++] = 750000 * (int) Math.ceil(getOriginalWalkMP() * weight / 100f) * 0.5;\n } else if (getGyroType() == Mech.GYRO_COMPACT) {\n costs[i++] = 400000 * (int) Math.ceil(getOriginalWalkMP() * weight / 100f) * 1.5;\n } else if (getGyroType() == Mech.GYRO_HEAVY_DUTY) {\n costs[i++] = 500000 * (int) Math.ceil(getOriginalWalkMP() * weight / 100f) * 2;\n } else {\n costs[i++] = 300000 * (int) Math.ceil(getOriginalWalkMP() * weight / 100f);\n }\n double jumpBaseCost = 200;\n // You cannot have JJ's and UMU's on the same unit.\n if (hasUMU()) {\n costs[i++] = Math.pow(getAllUMUCount(), 2.0) * weight * jumpBaseCost;\n } else {\n if (getJumpType() == Mech.JUMP_BOOSTER) {\n jumpBaseCost = 150;\n } else if (getJumpType() == Mech.JUMP_IMPROVED) {\n jumpBaseCost = 500;\n }\n costs[i++] = Math.pow(getOriginalJumpMP(), 2.0) * weight * jumpBaseCost;\n }\n // num of sinks we don't pay for\n int freeSinks = hasDoubleHeatSinks() ? 0 : 10;\n int sinkCost = hasDoubleHeatSinks() ? 6000 : 2000;\n // cost of sinks\n costs[i++] = sinkCost * (heatSinks() - freeSinks);\n costs[i++] = hasFullHeadEject()?1725000:0;\n costs[i++] = getArmorWeight() * EquipmentType.getArmorCost(armorType);\n costs[i++] = getWeaponsAndEquipmentCost(ignoreAmmo);\n\n double cost = 0; // calculate the total\n for (int x = 0; x < i; x++) {\n cost += costs[x];\n }\n\n double omniMultiplier = 0;\n if (isOmni()) {\n omniMultiplier = 1.25f;\n cost *= omniMultiplier;\n }\n costs[i++] = -omniMultiplier; // negative just marks it as multiplier\n\n double weightMultiplier = 1 + (weight / 100f);\n costs[i++] = -weightMultiplier; // negative just marks it as multiplier\n cost = Math.round(cost * weightMultiplier);\n if (detail != null) {\n addCostDetails(cost, detail, costs);\n }\n return cost;\n }", "private void calcCoins() {\n\t\tint changeDueRemaining = (int) Math.round((this.changeDue - (int) this.changeDue) * 100);\n\n\t\tif (changeDueRemaining >= 25) {\n\t\t\tthis.quarter += changeDueRemaining / 25;\n\t\t\tchangeDueRemaining = changeDueRemaining % 25;\n\t\t}\n\t\tif (changeDueRemaining >= 10) {\n\t\t\tthis.dime += changeDueRemaining / 10;\n\t\t\tchangeDueRemaining = changeDueRemaining % 10;\n\t\t}\n\t\tif (changeDueRemaining >= 5) {\n\t\t\tthis.nickel += changeDueRemaining / 5;\n\t\t\tchangeDueRemaining = changeDueRemaining % 5;\n\t\t}\n\t\tif (changeDueRemaining >= 1) {\n\t\t\tthis.penny += changeDueRemaining / 1;\n\t\t}\n\t}", "public void Reinforcements()\n{\n\tSystem.out.println(\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\");\n\tSystem.out.println(\"$$$$$$$$$$$$$ REINFORCEMENTS $$$$$$$$$$$$$$$$$\\n\\n\");\n\t int answer=1;\n do\n {\n\t System.out.println(name+\", you have \"+wealth+\" gold coins.\\n\" );\n\t System.out.println(\"$$$$$$$$ RATES $$$$$$$$\");\n\t System.out.println(\"1 health potions for 1 gold coin\");\n\t System.out.println(\"An improved weapon for 150 gold coins\");\n\t System.out.println(\"Non-refundable :)\");\n\t System.out.println(\"$$$$$$$$$$$$$$$$$$$$$$$$$\\n\");\n\t\tScanner scan=new Scanner(System.in);\n\n\n\t do\n\t{\n\t if(answer!=0&&answer!=1&&answer!=2)\n\t \tSystem.out.print(\"Error in Input! \");\n\t \tSystem.out.println(\"What would you like to buy (0=nothing/done, 1=health potions, 2=better weapon)?\");\n\t answer=scan.nextInt();\n }while(answer!=0&&answer!=1&&answer!=2);\n\n\n\tif (answer==1)\n\t{\n\t\tint exchange=0;\n\t\t\tdo\n\t\t{\n\t\t\tif(exchange<0||exchange>wealth)\n\t\t\t\tSystem.out.print(\"Error in Input! \");\n\n\t\t\tSystem.out.println(\"How many health potions would you like?(cannot be negative or more than your gold coins)\");\n\t exchange=scan.nextInt();\n\t\t}while(exchange<0||exchange>wealth);\n\n\t\t\twealth-=exchange;\n\t\t\thealth+=exchange;\n\t\t\tSystem.out.println(name+\" increases health by \"+exchange+\" potions.\");\n\t\t\tSystem.out.println(name+\" decreases wealth by \"+exchange+\" gold coins.\\n\");\n\n\t}\n\telse if(answer==2)\n\t{\n\t\tif(weapon<8)\n\t {\n\n\t\t\t weapon++;\n\n\n\t\tif(wealth>=150)\n\t\t{\n\t\t\twealth-=150;\n\n\t\t\tSystem.out.println(name+\"\\'s weapon has been improved to \"+WeaponName(weapon)+\".\");\n\t\t\tSystem.out.println(name+\" decreases wealth by 150 gold coins.\\n\" );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint temp=wealth;\n\t\t\thealth+=temp-150;\n\t\t\twealth=0;\n\n\t\tSystem.out.println(name+\"\\'s weapon has been improved to \"+WeaponName(weapon));\n\t\tSystem.out.println(name+\" decreases wealth by \"+temp+\" gold coins.\" );\n\t\tSystem.out.println(name+\" decreases health by \"+(150-temp)+\" portions.\\n\");\n\t\t}\n\t }\n\t \telse\n\t {\n\t \t\tweapon=8;\n\t \t\tSystem.out.println(\"You have updated to the most powerful weapon!!!-----\"+WeaponName(weapon)+\".\\n\" );\n\t }\n\n\t }\n\t else\n\t \tanswer=0;\n\n } while(answer!=0);\n}", "public void buyhouse(int cost){\n\t\n}", "public void returncoins(){\r\n\t\tDS1 d= (DS1) ds;\r\n\t\tSystem.out.println(\"Coins returned : \" + d.cp + \"\\n\");\r\n\t\td.cp=0;\r\n\t}", "public int getJackpot(){ return amount; }", "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "public void giveAndTake(Player a){\n\t\tString type = typetoString();\r\n\t\tint totalDice = a.getDice1() + a.getDice2(), purpleRent = owner.numPurple(), lightGreenRent = owner.numLightGreen(), violetRent = owner.numViolet(), orangeRent = owner.numOrange(), redRent = owner.numRed(), yellowRent = owner.numYellow(), darkGreenRent = owner.numDarkGreen(), darkBlueRent = owner.numDarkBlue(), utilitiesRent = owner.numUtilities(), railRent = owner.numRails(), modRent = 0;\r\n\t\tif(type.equals(\"PURPLE\")){\r\n\t\t\tif(purpleRent == 1){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(purpleRent == 2){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"LIGHTGREEN\")){\r\n\t\t\tif(lightGreenRent == 1 || lightGreenRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(lightGreenRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"VIOLET\")){\r\n\t\t\tif(violetRent == 1 || violetRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(violetRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"ORANGE\")){\r\n\t\t\tif(orangeRent == 1 || orangeRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(orangeRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"RED\")){\r\n\t\t\tif(redRent == 1 || redRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(redRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"YELLOW\")){\r\n\t\t\tif(yellowRent == 1 || yellowRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(yellowRent == 3){\r\n\t\t\t\t\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"DARKGREEN\")){\r\n\t\t\tif(darkGreenRent == 1 || darkGreenRent == 2){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(darkGreenRent == 3){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"DARKBLUE\")){\r\n\t\t\tif(darkBlueRent == 1){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(darkBlueRent == 2){\r\n\t\t\t\t\tmodRent = (rent * 2) + houseRent;\r\n\t\t\t\t\t\tif(numHouses == -1)\r\n\t\t\t\t\t\t\tmodRent = rent * 2;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tmodRent = (houses[numHouses].getRent());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"UTILITIES\")){\r\n\t\t\tif(utilitiesRent == 1){\r\n\t\t\t\tmodRent = 4 * totalDice;\r\n\t\t\t}else if(utilitiesRent == 2){\r\n\t\t\t\tmodRent = 10 * totalDice;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(type.equals(\"RAILROAD\")){\r\n\t\t\tif(railRent == 1){\r\n\t\t\t\tmodRent = rent;\r\n\t\t\t}else if(railRent == 2){\r\n\t\t\t\tmodRent = rent * 2;\r\n\t\t\t}else if(railRent == 3){\r\n\t\t\t\tmodRent = rent * 4;\r\n\t\t\t}else if(railRent == 4){\r\n\t\t\t\tmodRent = rent * 8;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(a.returnName()+\" has paid $\"+modRent+\" to \"+owner.returnName());\r\n\t\ta.subtractMoney(modRent);\r\n\t\towner.addMoney(modRent);\r\n\t}", "@Override\n public Double buyDevice(String name, String type) {\n Cash c = null;\n Cheque ch = null;\n Card cd = null;\n \n Date d = new Date();\n \n switch (type) {\n case \"c1\":\n c = new Cash.Builder(d.toString())\n .build();\n break;\n case \"c2\":\n ch = new Cheque.Builder(d.toString())\n .build();\n break;\n case \"c3\":\n cd = new Card.Builder(d.toString())\n .build();\n break;\n }\n \n \n PurchaseVinyl v = new PurchaseVinyl.Builder()\n .setName(\"Let The Good Times Role\")\n .setPrice(3.99)\n .build();\n \n PurchaseVinyl v1 = new PurchaseVinyl.Builder()\n .setName(\"Thanks For The Meomories\")\n .setPrice(3.99)\n .build();\n \n List<PurchaseVinyl> vinylList = new ArrayList();\n vinylList.add(v);\n vinylList.add(v1);\n \n \n ProductPurchase pc = new ProductPurchase.Builder(d)\n .setVinylPurchases(vinylList)\n .setCardPurchases(cd)\n .setCashPurchases(c)\n .setChequePurchases(ch)\n .build();\n \n repo.save(pc);\n id = pc.getID();\n \n ProductPurchase pc2 = repo.findOne(id);\n for(int x = 0; pc2.getVinylPurchases().size() > x; x++){\n if(pc2.getVinylPurchases().get(x).getName().equals(name)){\n return pc2.getVinylPurchases().get(x).getPrice();\n }\n }\n return null; \n }", "private static int playerTotalDefense(String [] helmetEquip, String [] chestPlateEquip, String [] bootsEquip, String [] glovesEquip, int playerDefense){\r\n int totalDefense;\r\n int bootsDefense = 0;\r\n int chestDefense = 0;\r\n int glovesDefense = 0;\r\n int helmetDefense = 0;\r\n leatherHelmet LeatherHelmet = new leatherHelmet();\r\n leatherBoots LeatherBoots = new leatherBoots();\r\n leatherGloves LeatherGloves = new leatherGloves();\r\n leatherChestPlate LeatherChestPlate = new leatherChestPlate();\r\n ironHelmet IronHelmet = new ironHelmet();\r\n ironChestPlate IronChestPlate = new ironChestPlate();\r\n ironBoots IronBoots = new ironBoots();\r\n ironGloves IronGloves = new ironGloves();\r\n switch(helmetEquip[0]){\r\n case \"Leather Helmet\":\r\n helmetDefense = LeatherHelmet.getDefense();\r\n break;\r\n case \"Iron Helmet\":\r\n helmetDefense = IronHelmet.getDefense();\r\n break;\r\n }\r\n switch(bootsEquip[0]){\r\n case \"Leather Boots\":\r\n bootsDefense = LeatherBoots.getDefense();\r\n break;\r\n case \"Iron Boots\":\r\n bootsDefense = IronBoots.getDefense();\r\n break;\r\n }\r\n switch(chestPlateEquip[0]){\r\n case \"Leather Chest Plate\":\r\n chestDefense = LeatherChestPlate.getDefense();\r\n break;\r\n case \"Iron Chest Plate\":\r\n chestDefense = IronChestPlate.getDefense();\r\n break;\r\n }\r\n switch(glovesEquip[0]){\r\n case \"Leather Gloves\":\r\n glovesDefense = LeatherGloves.getDefense();\r\n break;\r\n case \"Iron Gloves\":\r\n glovesDefense = IronGloves.getDefense();\r\n break;\r\n }\r\n totalDefense = playerDefense + helmetDefense + chestDefense + glovesDefense + bootsDefense;\r\n return totalDefense;\r\n }", "public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }", "public int getCoinsNum();", "@Override\n\tpublic void getCosts() {\n\t\tString renterIDString = String.valueOf(this.renter.getRenterID());\n\t\tString damageChargeString = String.valueOf(this.damageCharge);\n\t\tSystem.out.print(\"The amount owed in damages for renter with ID of: \" + renterIDString + \" is: \" + damageChargeString+\"\\n\");\n\t}", "public void effetDeCarte(int idEffet, Joueur joueurQuiJoueLaCarte, Plateau plateau) {\n switch (idEffet) {\n case 0:\n joueurQuiJoueLaCarte.deck.piocher(1);\n break;\n case 1:\n joueurQuiJoueLaCarte.deck.piocher(2);\n break;\n case 2:\n joueurQuiJoueLaCarte.deck.piocher(3);\n break;\n case 3:\n joueurQuiJoueLaCarte.gagnerDegats(1);\n break;\n case 4:\n joueurQuiJoueLaCarte.gagnerDegats(2);\n break;\n case 5:\n joueurQuiJoueLaCarte.gagnerDegats(3);\n\n break;\n case 6:\n joueurQuiJoueLaCarte.gagnerDegats(4);\n break;\n case 7:\n joueurQuiJoueLaCarte.gagnerRunes(1);\n break;\n case 8:\n gagnerDesRunes(joueurQuiJoueLaCarte,2);\n break;\n case 9:\n gagnerDesRunes(joueurQuiJoueLaCarte,3);\n break;\n case 11:\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n gagnerDesDegats(joueurQuiJoueLaCarte,1);\n break;\n case 12:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(1);\n break;\n case 14:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n joueurQuiJoueLaCarte.piocher(1);\n break;\n case 15:\n joueurQuiJoueLaCarte.tuerUneCarteAvecDeLattaqueGratuitement(plateau);\n System.out.println(\"DEfeat a monster that has 4 D or less without paying it cost\");\n break;\n case 16:\n System.out.println(\"DEfeat a monster that has 6 D or less without paying it cost\");\n break;\n case 17:\n //joueurQuiJoueLaCarte.deck.piocher(1);\n System.out.println(\" You may banish a card in the center row\");\n break;\n case 18:\n System.out.println(\"Discard a card, if you do, draw two cards\");\n break;\n case 19:\n System.out.println(\"Copy l'effet d'un Héros joué ce tour-ci\");\n break;\n case 20:\n System.out.println(\"Once per turn you may draw a card\");\n break;\n case 21:\n System.out.println(\"You may banish this Construct to take an additional turn after this one.\");\n break;\n case 22:\n System.out.println(\"Acquire a Hero without paying its cost. Place in on top of your deck.\");\n break;\n case 23:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(1);\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n break;\n case 24:\n gagnerDesRunes(joueurQuiJoueLaCarte,2);\n verifLifebound(joueurQuiJoueLaCarte);\n break;\n case 25:\n gagnerDesRunes(joueurQuiJoueLaCarte,1);\n joueurQuiJoueLaCarte.deck.piocher(1);\n break;\n case 26:\n System.out.println(\"Once per turn, gain 1 runes, the first time you play a lifebound hero, each turn gain 1 recompense\");\n break;\n case 27:\n System.out.println(\"Once per turn , gain 1d\" +\n \"Once per turn, you may spend 4r to gain 3 recompense\");\n break;\n case 28:\n gagnerDesDegats(joueurQuiJoueLaCarte,2);\n plusDeDeuxConstructeur(joueurQuiJoueLaCarte);\n System.out.println(\"Draw a card if you control 2 or moreConstrcut\");\n break;\n case 29:\n System.out.println(\"Gain 1d or 1r\");\n break;\n case 30:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Gain 2r You pay 1R less the next time you acquire a Construc this turn\");\n break;\n case 31:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Once per turn, when you put a Mechana Construc into play (including this one) , draw a card\");\n break;\n case 32:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\"Once per turn, gain 2d.You may spend it only to acquire Mechana Construct\");\n break;\n case 33:\n joueurQuiJoueLaCarte.gagnerPointsHonneur(2);\n System.out.println(\" Once per turn\");\n gagner1DParTourPourChaqueMechaConstruct(joueurQuiJoueLaCarte);\n\n break;\n case 34:\n System.out.println(\"You may treat all Construcs as Mechana Construcs\");\n break;\n case 35:\n System.out.println(\"Once per turn, when you acquire another Mechana Construc, you may put it directly into play\");\n break;\n case 36:\n System.out.println(\"Once per turn ,gain 1 r . you may spend it only to acquire Mechana Construc\");\n break;\n case 37:\n joueurQuiJoueLaCarte.deck.piocher(2);\n System.out.println(\"Banish a card in you hand\");\n break;\n case 38:\n gagnerDesDegats(joueurQuiJoueLaCarte,2);\n System.out.println(\"Banish a card in you hand or discard pile\");\n break;\n case 39:\n gagnerDesDegats(joueurQuiJoueLaCarte,1);\n System.out.println(\"Banish a card in you hand or discard pile\");\n break;\n case 40:\n System.out.println(\"Once per turn, gain 3d\");\n break;\n case 41:\n System.out.println(\"Once per turn, gain 1d\");\n break;\n case 42:\n System.out.println(\"Once per turn gain 1 The first time you deafeat a monster in the center row each turn, gain 1 R\");\n break;\n case 43:\n System.out.println(\"Unbanishable You may acquire or defeat any car in the center row without paying its cost\");\n break;\n case 44:\n System.out.println(\"Each opponent must destryo a Construc he controls\");\n break;\n case 45:\n System.out.println(\"Banish a card un the center row and/or in you discard pile\");\n break;\n case 46:\n System.out.println(\"Banish a card un the center row\");\n break;\n case 47:\n System.out.println(\"If an opponent has more than one construct, that player must destroy all but one Construct he controls\");\n break;\n case 48:\n System.out.println(\"Take a card at random from each oppenent's hand and add that card to your hands\");\n break;\n }\n\n }", "private void getCostAndEta() {\n\n GetVehiclesData vehiclesData = RetrofitClientInstance.getRetrofitInstance().create(GetVehiclesData.class);\n getVehicles.getVehiclesData(vehiclesData);\n setCostToLabel(getVehicles.getCost());\n setETAToLabel(getVehicles.getETA());\n\n }", "public static double calcularCosto(String tipoLicencia, int vigencia) {\n float monto = 0;\n switch(tipoLicencia){\n case \"Clase A\": \n switch(vigencia){\n case 1: monto = 20;\n break;\n case 3: monto = 25;\n break;\n case 4: monto = 30;\n break;\n case 5: monto = 40;\n break;\n }\n break;\n case \"Clase B\": switch(vigencia){\n case 1: monto = 20;\n break;\n case 3: monto = 25;\n break;\n case 4: monto = 30;\n break;\n case 5: monto = 40;\n break;\n }\n break;\n case \"Clase C\": switch(vigencia){\n case 1: monto = 23;\n break;\n case 3: monto = 30;\n break;\n case 4: monto = 35;\n break;\n case 5: monto = 47;\n break;\n }\n break;\n case \"Clase D\": switch(vigencia){\n case 1: monto = 20;\n break;\n case 3: monto = 25;\n break;\n case 4: monto = 30;\n break;\n case 5: monto = 40;\n break;\n }\n break;\n case \"Clase E\": switch(vigencia){\n case 1: monto = 29;\n break;\n case 3: monto = 39;\n break;\n case 4: monto = 44;\n break;\n case 5: monto = 59;\n break;\n }\n break;\n case \"Clase F\": switch(vigencia){\n case 1: monto = 20;\n break;\n case 3: monto = 25;\n break;\n case 4: monto = 30;\n break;\n case 5: monto = 40;\n break;\n }\n break;\n case \"Clase G\": switch(vigencia){\n case 1: monto = 20;\n break;\n case 3: monto = 25;\n break;\n case 4: monto = 30;\n break;\n case 5: monto = 40;\n break;\n }\n break;\n } \n return monto;\n }", "private void communityChest(Player currentPlayer){\n Random rand = new Random();\n int randomNum = rand.nextInt((3 - 1) + 1) + 1;\n int nextPlayer;\n if(m_currentTurn >= m_numPlayers){\n nextPlayer = 0;\n } else {\n nextPlayer = m_currentTurn+1;\n }\n\n if(randomNum == 1){\n convertTextToSpeech(\"Your new business takes off, collect 200\");\n if(m_manageFunds) {\n Log.d(\"chance add 200\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(200);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 200\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n }\n }\n if(randomNum == 2){\n convertTextToSpeech(\"Your friend hires your villa for a week, \" +\n \"collect 100 off the next player\");\n if(m_manageFunds) {\n Log.d(\"chance add 100\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(100);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 100\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n\n Log.d(\"chance subtract 100\", players.get(nextPlayer).getName() +\n String.valueOf(players.get(nextPlayer).getMoney()));\n players.get(nextPlayer).subtractMoney(100);\n Log.d(\"chance subtract 100\", players.get(nextPlayer).getName() +\n String.valueOf(players.get(nextPlayer).getMoney()));\n }\n }\n if(randomNum == 3){\n convertTextToSpeech(\"You receive a tax rebate, collect 300\");\n if(m_manageFunds) {\n Log.d(\"chance add 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(300);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n }\n }\n }", "@Test\n public void whenComputingBillForPeopleOver70WithDiagnosisXRayAndECG() {\n double result = billingService.computeBill(1);\n // 90% discount on Diagnosis (60£) = 6\n // 90% discount on X-RAY (150£) = 15\n // 90% discount on ECG (200.40£) = 20.04\n Assert.assertEquals(41.04, result, 0);\n }", "public void enterPayment(int coinCount, Coin coinType)\n {\n balance = balance + coinType.getValue() * coinCount;\n // your code here\n \n }", "public static void main(String[] args)\n {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Your name please\");\n String name = input.nextLine();\n\n // get a number from the user\n System.out.println(\"Give me the amount of money in cents please, \" + name);\n int money = input.nextInt();\n \n // limit the size of the number\n while(money>100000000)\n {\n\tSystem.out.println(\"This number is too big.\");\n\tSystem.out.println(\"Please enter something smaller\");\n\tmoney = input.nextInt();\n }\n \n // do the calculations\n\n int hundreds = money / 10000;\n int leftover = money % 10000;\n\n int fifties = leftover / 5000;\n leftover = leftover % 5000;\n\n int twenties = leftover / 2000;\n leftover = leftover % 2000;\n\n int tens = leftover / 1000;\n leftover = leftover % 1000;\n\n int fives = leftover / 500;\n leftover = leftover % 500;\n\n int ones = leftover / 100;\n leftover = leftover % 100;\n\n int quarters = leftover / 25;\n leftover = leftover % 25;\n\n int dimes = leftover / 10;\n leftover = leftover % 10;\n\n int nickels = leftover / 5;\n leftover = leftover % 5;\n\n int pennies = leftover / 1;\n\n // print the results\n System.out.println(\"\"); System.out.println(\"\"); //formating for results\n\n System.out.println(\"******Dollar Bills******\"); //This is printout of dollar bills \n System.out.print(hundreds + \" Hundred dollar bill(s), \");\n System.out.print(fifties + \" Fifty dollar bill(s), \");\n System.out.print(twenties + \" Twenty dollar bill(s), \"); \n System.out.print(tens + \" Ten dollar bill(s), \");\n System.out.print(fives + \" Five dollar bill(s), \");\n System.out.print(ones + \" One dollar bill(s)\");\n \n System.out.println(\"\"); System.out.println(\"\"); \n\n System.out.println(\"******Coins******\"); //This will printout coins \n System.out.print(quarters + \" Quarter(s), \");\n System.out.print(dimes + \" Dime(s), \");\n System.out.print(nickels + \" Nickel(s), \");\n System.out.print(pennies + \" Penny(s)\");\n\n System.out.println(\"\"); //formating for results2\n\n }", "@Override \r\npublic double earnings() { \r\n\t return getWage() * getPieces(); \r\n}", "public double calculatedConsuption(){\nint tressToSow=0;\n\nif (getKiloWatts() >=1 && getKiloWatts() <= 1000){\n\ttressToSow = 8;\n}\nelse if (getKiloWatts() >=1001 && getKiloWatts ()<=3000){\n\ttressToSow = 35;\n}\nelse if (getKiloWatts() > 3000){\n\ttressToSow=500;\n}\nreturn tressToSow;\n}", "void u1 (){\n\n\tint rose,sunflower,jasmin,tulip;\n\tdouble money,sale,total,profit,cost;\n\tScanner sc = new Scanner(System.in);\n\tSystem.out.println(\"--------Flower List----------\\n\");\n\tSystem.out.println(\"1.Rose\\t\\t15 Baht\\n2.Sun flower\\t23 Baht\\n3.Jasmin\\t8 Baht\\n4.Tulip\\t\\t20 Baht\\n\");\n\tSystem.out.println(\"-----------------------------\\n\");\n\n\tSystem.out.println(\"Put number flower\\n\");\n\tSystem.out.print(\"Rose --> \");rose = sc.nextInt();\n\tSystem.out.print(\"Sun flower --> \");sunflower = sc.nextInt();\n\tSystem.out.print(\"Jasmin --> \");jasmin = sc.nextInt();\n\tSystem.out.print(\"Tulip --> \");tulip = sc.nextInt();\n\tSystem.out.println(\"\\n-----------------------------\\n\");\n\tmoney = (15*rose)+(23*sunflower)+(8*jasmin)+(20*tulip);\n\tSystem.out.println(\"Money --> \"+money+\"\\tBaht\\n\");\n\n\tif (money>200)\n\t{\n\t\tsale = money*3/100;\n\t\tSystem.out.println(\"Discount --> \"+sale+\"\\tBaht\");\n\t\ttotal = money-sale;\n\t\tSystem.out.println(\"Total Money --> \"+total+\"\\tBaht\");\n\t\t\n\t\tcost = (9*rose)+(13*sunflower)+(4*jasmin)+(8*tulip);\n\t\tprofit =(money-cost)-sale;\n\t\tSystem.out.println(\"Owner get profit --> \"+profit+\"\\tBaht\");\n\n\t}\n\t\telse if (money>500)\n\t\t{\n\t\tsale = money*5/100;\n\t\tSystem.out.println(\"Discount --> \"+sale+\"\\tBaht\");\n\t\ttotal = money-sale;\n\t\tSystem.out.println(\"Total Money --> \"+total+\"\\tBaht\");\n\n\t\tcost = (9*rose)+(13*sunflower)+(4*jasmin)+(8*tulip);\n\t\tprofit =(money-cost)-sale;\n\t\tSystem.out.println(\"Owner get profit --> \"+profit+\"\\tBaht\");\n\t\t}\n\n\t\telse if (money>700)\n\t\t{\n\t\tsale = money*10/100;\n\t\tSystem.out.println(\"Discount --> \"+sale+\"\\tBaht\");\n\t\ttotal = money-sale;\n\t\tSystem.out.println(\"Total Money --> \"+total+\"\\tBaht\");\n\n\t\tcost = (9*rose)+(13*sunflower)+(4*jasmin)+(8*tulip);\n\t\tprofit =(money-cost)-sale;\n\t\tSystem.out.println(\"Owner get profit --> \"+profit+\"\\tBaht\");\n\t\t}\n\t\n\t System.out.println(\"\\n---------Thank You-----------\");\n\n\t\n}", "public void getDiscount(){\n System.out.println(\"10% off, final price: \" + price * 0.9);\n }", "public void realizaProcessamentoCartaoChance() throws Exception {\n if (indiceChance == 1) {\n DeslocarJogador(jogadorAtual(), 40);\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n\n } else if (indiceChance == 2) {\n DeslocarJogador(jogadorAtual(), 24);\n } else if (indiceChance == 3) {\n if (this.posicoes[this.jogadorAtual()] == 40 || this.posicoes[this.jogadorAtual()] > 11) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n }\n DeslocarJogador(jogadorAtual(), 11);\n\n\n } else if (indiceChance == 4) {\n if (this.posicoes[this.jogadorAtual()] < 12 || this.posicoes[this.jogadorAtual()] > 28) {\n DeslocarJogador(jogadorAtual(), 12);\n } else {\n DeslocarJogador(jogadorAtual(), 28);\n }\n } else if (indiceChance == 5 || indiceChance == 16) {\n if (this.posicoes[jogadorAtual()] < 5 || this.posicoes[jogadorAtual()] > 35) {\n DeslocarJogador(jogadorAtual(), 5);\n } else if (this.posicoes[jogadorAtual()] < 15) {\n DeslocarJogador(jogadorAtual(), 15);\n } else if (this.posicoes[jogadorAtual()] < 25) {\n DeslocarJogador(jogadorAtual(), 25);\n } else if (this.posicoes[jogadorAtual()] < 35) {\n DeslocarJogador(jogadorAtual(), 35);\n }\n\n int jogador = this.jogadorAtual();\n Lugar lugar = this.tabuleiro.get(this.posicoes[jogador] - 1);\n String nomeDono = (String) Donos.get(this.posicoes[jogador]);\n if (this.isUmJogador(nomeDono)) {\n Jogador possivelDono = this.getJogadorByName(nomeDono);\n if (this.isPosicaoFerrovia(this.posicoes[jogador])) {\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n }\n this.pagarFerrovia(possivelDono.getId(), jogador, 50, lugar.getNome());\n }\n\n } else if (indiceChance == 6) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(50);\n } else if (indiceChance == 7) {\n DeslocarJogador(jogadorAtual(), this.posicoes[jogadorAtual()] - 3);\n this.pagarEventuaisTaxas(jogadorAtual());\n } else if (indiceChance == 8) {\n DeslocarJogador(jogadorAtual(), 10);\n adicionaNaPrisao(listaJogadores.get(jogadorAtual()));\n\n } else if (indiceChance == 9) {\n int GastosRua = this.listaJogadores.get(jogadorAtual()).getQuantidadeDeCasas() * 25;\n GastosRua = GastosRua + this.listaJogadores.get(jogadorAtual()).getQuantidadeDeHoteis() * 10;\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(GastosRua);\n } else if (indiceChance == 10) {\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(15);\n } else if (indiceChance == 11) {\n\n this.listaJogadores.get(jogadorAtual()).ganharCartaoSaidaDePrisao(\"chance\");\n this.cardChancePrisaoEmPosse = true;\n } else if (indiceChance == 12) {\n if (this.posicoes[this.jogadorAtual()] > 5) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n }\n DeslocarJogador(jogadorAtual(), 5);\n if (this.posicoes[this.jogadorAtual()] > 5) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(200);\n }\n } else if (indiceChance == 13) {\n DeslocarJogador(jogadorAtual(), 39);\n } else if (indiceChance == 14) {\n int debito = numeroDeJogadores * 50 - 50;\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(debito);\n for (int i = 0; i < numeroDeJogadores; i++) {\n if (i != jogadorAtual()) {\n this.listaJogadores.get(i).addDinheiro(50);\n }\n }\n } else if (indiceChance == 15) {\n this.listaJogadores.get(jogadorAtual()).addDinheiro(150);\n }\n\n\n\n if (indiceChance < 16) {\n indiceChance++;\n } else {\n indiceChance = 1;\n }\n }", "public int getCents()\r\n {\r\n return cents;\r\n }", "public void createGoldReward() {\n try {\n int gold = RandomBenefitModel.getGoldReward(encounter, characterVM.getDistance());\n if (gold > 0) characterVM.goldChange(gold);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public double getCash()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to getCash : \" + \"Agent\");\r\n/* 219 */ return this.cash;\r\n/* */ }", "public static void main(String[] args) {\n int moneyAmount = 10;\n\n int capuccinoPrice = 180;\n int lattePrice = 120;\n int espressoPrice = 80;\n int pureWaterPrise = 20;\n\n var canBuyAnything = false;\n var isMilkEnough = true;\n\n if(moneyAmount >= capuccinoPrice && isMilkEnough) {\n System.out.println(\"Вы можете купить капуччино\");\n canBuyAnything = true;\n }\n\n if(moneyAmount >= lattePrice && isMilkEnough) {\n System.out.println(\"Вы можете купить латте\");\n canBuyAnything = true;\n }\n\n if(moneyAmount >= espressoPrice) {\n System.out.println(\"Вы можете купить еспрессо\");\n canBuyAnything = true;\n }\n\n if(moneyAmount >= pureWaterPrise) {\n System.out.println(\"Вы можете купить воду\");\n canBuyAnything = true;\n }\n\n if(canBuyAnything == false) {\n System.out.println(\"Недостаточно денег\");\n }\n }", "int getBonusMoney();", "@Test\n\tpublic void testCharge() throws Exception {\n\t\tfor (int i = 0; i <= 500; i += 25) {\n\t\t\tint expense = d.dispense(50 + i, 2);\n\t\t\tassertEquals(50, expense);\n\t\t}\n\t}", "int getDefense();", "int getDefense();", "int getDefense();", "int getDefense();", "int getDefense();", "int getDefense();", "@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\t\ttry {\n\t\t\tprice = 0;\n\n\t\t\tCampaign c = Crosstalk.getInstance().getKnownCampaign(campaign);\n\t\t\tif (c == null) {\n\t\t\t\terror = true;\n\t\t\t\tmessage = \"No campaign defined: \" + campaign;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (tokenData.isAuthorized(c.customer_id) == false) {\n\t\t\t\terror = true;\n\t\t\t\tmessage = \"No such campaign\";\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tCreative cr = c.getCreativeById(this.creative);\n\t\t\tif (cr == null) {\n\t\t\t\terror = true;\n\t\t\t\tmessage = \"No creative defined: \" + creative + \" in \" + campaign;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tprice = cr.price;\n\t\t\tif (cr.deals != null) {\n\t\t\t\tdeals = new ArrayList();\n\t\t\t\tfor (Deal d : cr.deals) {\n\t\t\t\t\tMap<String, Double> m = new HashMap();\n\t\t\t\t\tm.put(d.id, d.price);\n\t\t\t\t\tdeals.add(m);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\terror = true;\n\t\t\tmessage = e.getMessage();\n\t\t\treturn;\n\t\t}\n\t}", "void calculateShopsAndCoin(String characterName) throws InvalidAttributeValueException {\n\t\tPoint theo = findImageLocation(characterName); // (2900, 890)\n\t\tPoint arr = findImageLocation(Pictures.leftArrow); // (3090, 720)\n\t\tPoint sp = findImageLocation(Pictures.singlePlayer); // (2450, 380)\n\n\t\tcoin = calcCoord(theo, arr, sp, \"Coins\"); // (2700, 800)\n\t\tshop1 = calcCoord(theo, arr, sp, \"Shop1\"); // (2150, 500)\n\t\tshop2 = calcCoord(theo, arr, sp, \"Shop2\"); // (2150, 650)\n\t\tshop3 = calcCoord(theo, arr, sp, \"Shop3\"); // (2150, 800)\n\t\tshop4 = calcCoord(theo, arr, sp, \"Shop4\"); // (2150, 950)\n\n\t\tcoinTimes = Pictures.coinNumber(characterName);\n\t}", "public static double getWeaponDamage(Item weapon, Skill attStrength) {\n/* 2348 */ if (weapon.isBodyPart() && weapon.getAuxData() != 100) {\n/* */ \n/* */ try {\n/* */ \n/* 2352 */ float f = Server.getInstance().getCreature(weapon.getOwnerId()).getCombatDamage(weapon);\n/* */ \n/* 2354 */ return (f + Server.rand.nextFloat() * f * 2.0F);\n/* */ }\n/* 2356 */ catch (NoSuchCreatureException nsc) {\n/* */ \n/* 2358 */ logger.log(Level.WARNING, \"Could not find Creature owner of weapon: \" + weapon + \" due to \" + nsc.getMessage(), (Throwable)nsc);\n/* */ \n/* */ }\n/* 2361 */ catch (NoSuchPlayerException nsp) {\n/* */ \n/* 2363 */ logger.log(Level.WARNING, \"Could not find Player owner of weapon: \" + weapon + \" due to \" + nsp.getMessage(), (Throwable)nsp);\n/* */ } \n/* */ }\n/* */ \n/* */ \n/* 2368 */ float base = 6.0F;\n/* 2369 */ if (weapon.isWeaponSword()) {\n/* */ \n/* 2371 */ base = 24.0F;\n/* */ }\n/* 2373 */ else if (weapon.isWeaponAxe()) {\n/* 2374 */ base = 30.0F;\n/* 2375 */ } else if (weapon.isWeaponPierce()) {\n/* 2376 */ base = 12.0F;\n/* 2377 */ } else if (weapon.isWeaponSlash()) {\n/* 2378 */ base = 18.0F;\n/* 2379 */ } else if (weapon.isWeaponCrush()) {\n/* 2380 */ base = 36.0F;\n/* 2381 */ } else if (weapon.isBodyPart() && weapon.getAuxData() == 100) {\n/* */ \n/* 2383 */ base = 6.0F;\n/* */ } \n/* 2385 */ if (weapon.isWood()) {\n/* 2386 */ base *= 0.1F;\n/* 2387 */ } else if (weapon.isTool()) {\n/* 2388 */ base *= 0.3F;\n/* */ } \n/* 2390 */ base = (float)(base * (1.0D + attStrength.getKnowledge(0.0D) / 100.0D));\n/* */ \n/* 2392 */ float randomizer = (50.0F + Server.rand.nextFloat() * 50.0F) / 100.0F;\n/* */ \n/* 2394 */ return base + (randomizer * base * 4.0F * weapon.getQualityLevel() * weapon.getDamagePercent()) / 10000.0D;\n/* */ }", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "public void coinDisbursed() {\r\n float coinsHandOut = this.balance; // coinsHandOut ---> balance to get the number of coins while keeping the amount entered\r\n // 100 Namibian Dollar\r\n int hundredDollar = (int)(coinsHandOut / 100.0F);\r\n float remainder = coinsHandOut % 100.0F;\r\n // 50 Namibian Dollar\r\n int fiftyDollar = (int)(remainder / 50.0F);\r\n remainder %= 50.0F;\r\n // 20 Namibian Dollar //\r\n int twentyDollar = (int)(remainder / 20.0F);\r\n remainder %= 20.0F;\r\n // 10 Namibian Dollar //\r\n int tenDollar = (int)(remainder / 10.0F);\r\n remainder %= 10.0F;\r\n // 5 Namibian Dollar //\r\n int fiveDollar = (int)(remainder / 5.0F);\r\n remainder %= 5.0F;\r\n // 1 Namibian Dollar //\r\n int oneDollar = (int)remainder;\r\n remainder %= 1.0F;\r\n // 50 cent --> 50 /100 //\r\n int fiftyCents = (int)((double)remainder / 0.5D);\r\n remainder = (float)((double)remainder % 0.5D);\r\n // 10 cent --> 10 /100\r\n int tenCents = (int)((double)remainder / 0.1D);\r\n remainder = (float)((double)remainder % 0.1D);\r\n // 5 cent --> 5 /100 //\r\n int fiveCents = (int)((double)remainder / 0.05D);\r\n System.out.println(\"\\nDisbursed :\\n\" + hundredDollar + \" x N$100\\n\" + fiftyDollar + \" x N$50\\n\" + twentyDollar + \" x N$20\\n\" + tenDollar + \" x N$10\\n\" + fiveDollar + \" x N$5\\n\" + oneDollar + \" x N$1\\n\" + fiftyCents + \" x 50c\\n\" + tenCents + \" x 10c\\n\" + fiveCents + \" x 5c\");\r\n }", "@Test\n public void test_BoostOnDies() {\n addCard(Zone.HAND, playerA, \"Silumgar Scavenger\", 1); // {4}{B}\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 5);\n //\n addCard(Zone.BATTLEFIELD, playerA, \"Balduvian Bears\", 1);\n\n // cast and exploit\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Silumgar Scavenger\");\n setChoice(playerA, true); // yes, exploit\n addTarget(playerA, \"Balduvian Bears\");\n\n checkPermanentCounters(\"boost\", 1, PhaseStep.BEGIN_COMBAT, playerA, \"Silumgar Scavenger\", CounterType.P1P1, 1);\n checkAbility(\"boost\", 1, PhaseStep.BEGIN_COMBAT, playerA, \"Silumgar Scavenger\", HasteAbility.class, true);\n\n setStopAt(1, PhaseStep.END_TURN);\n setStrictChooseMode(true);\n execute();\n }", "public static int boatFare(int age, Scanner console){\r\n int cents=0;\r\n String boatType;\r\n \r\n System.out.print(\"Enter the type of boat (I for Inner Harbor, B for Boston, L for Logan): \");\r\n boatType = console.next();\r\n console.nextLine(); // Consume the rest of the line\r\n \r\n if (boatType.equalsIgnoreCase(\"i\")){\r\n cents = 170;\r\n if((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off\r\n cents = cents / 2;\r\n }\r\n }\r\n else if (boatType.equalsIgnoreCase(\"b\")){\r\n cents = 600;\r\n if((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off\r\n cents = cents / 2;\r\n }\r\n }\r\n else if (boatType.equalsIgnoreCase(\"l\")){\r\n cents = 1200;\r\n if(age >= 12 && age <= 18){ // Students get 50% off\r\n cents = cents / 2;\r\n }\r\n else if(age >= 65){\r\n cents = cents - 1000; // Seniors get $10 off\r\n }\r\n }\r\n return cents;\r\n }", "public double damageCalculation(Player player, NPC mob) {\r\n double weapon = player.getWeapon().getDamage();\r\n double attack = player.getStats().getAttack();\r\n double defence = mob.getStats().getDefence();\r\n double critMulti = 1;\r\n\r\n// Chance chance = new Chance(player.getLevel(), player.getStats().getDexterity(), player.getCharacterClass());\r\n Chance chance = new Chance(player.getStats().getCritChance());\r\n boolean crit = chance.getSuccess();\r\n\r\n if (crit) {\r\n critMulti = 2;\r\n System.out.println(\"CRIT!\");\r\n } else {\r\n// System.out.println(\"No crit\");\r\n }\r\n\r\n return ((weapon + attack) * 2 - defence) * critMulti;\r\n }", "public TransactionResponse buyEnchant() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\tCalculation calc = hc.getCalculation();\r\n \t\tAccount acc = hc.getAccount();\r\n \t\tLog log = hc.getLog();\r\n \t\tNotification not = hc.getNotify();\r\n \t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\ttry {\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tPlayer p = hp.getPlayer();\r\n \t\t\tString nenchant = hyperObject.getMaterial();\r\n \t\t\tEnchantment ench = Enchantment.getByName(nenchant);\r\n \t\t\tint shopstock = 0;\r\n \t\t\tshopstock = (int) hyperObject.getStock();\r\n \t\t\tif (shopstock >= 1) {\r\n \t\t\t\tString mater = p.getItemInHand().getType().toString();\r\n \t\t\t\tdouble price = hyperObject.getCost(EnchantmentClass.fromString(mater));\r\n \t\t\t\tprice = price + hyperObject.getPurchaseTax(price);\r\n \t\t\t\tif (price != 123456789) {\r\n \t\t\t\t\tif (!im.containsEnchantment(p.getItemInHand(), ench)) {\r\n \t\t\t\t\t\tif (acc.checkFunds(price, p)) {\r\n \t\t\t\t\t\t\tif (im.canAcceptEnchantment(p.getItemInHand(), ench) && p.getItemInHand().getAmount() == 1) {\r\n \t\t\t\t\t\t\t\thyperObject.setStock(shopstock - 1);\r\n \t\t\t\t\t\t\t\tacc.withdraw(price, p);\r\n \t\t\t\t\t\t\t\tacc.depositShop(price);\r\n \t\t\t\t\t\t\t\tif (hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\")) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint l = hyperObject.getName().length();\r\n \t\t\t\t\t\t\t\tString lev = hyperObject.getName().substring(l - 1, l);\r\n \t\t\t\t\t\t\t\tint level = Integer.parseInt(lev);\r\n \t\t\t\t\t\t\t\tim.addEnchantment(p.getItemInHand(), ench, level);\r\n \t\t\t\t\t\t\t\tboolean stax;\r\n \t\t\t\t\t\t\t\tstax = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\t\tdouble taxrate;\r\n \t\t\t\t\t\t\t\tif (!stax) {\r\n \t\t\t\t\t\t\t\t\ttaxrate = hc.getYaml().getConfig().getDouble(\"config.enchanttaxpercent\");\r\n \t\t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\t\ttaxrate = hc.getYaml().getConfig().getDouble(\"config.statictaxpercent\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble taxpaid = price - (price / (1 + taxrate / 100));\r\n \t\t\t\t\t\t\t\ttaxpaid = calc.twoDecimals(taxpaid);\r\n \t\t\t\t\t\t\t\tprice = calc.twoDecimals(price);\r\n \t\t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"ENCHANTMENT_PURCHASE_MESSAGE\"), 1, price, hyperObject.getName(), calc.twoDecimals(taxpaid)), calc.twoDecimals(price), hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(p.getName(), \"purchase\", hyperObject.getName(), 1.0, price, taxpaid, playerecon, type);\r\n \r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(hyperObject.getName(), mater, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.get(\"INSUFFICIENT_FUNDS\"), hyperObject);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.get(\"ITEM_ALREADY_HAS_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.get(\"ITEM_CANT_ACCEPT_ENCHANTMENT\"), hyperObject);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"THE_SHOP_DOESNT_HAVE_ENOUGH\"), hyperObject.getName()), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"ETransaction buyEnchant() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public String run() {\r\n // Check if ironCurtain is available to use and GreedyIronCurtain is available\r\n if (myself.ironCurtainAvailable && myself.energy >= 120 && checkGreedyIronCurtain()) {\r\n return buildIC();\r\n } else if (myself.isIronCurtainActive && canBuy(ATTACK)) {\r\n return buildTurret();\r\n } else {\r\n // Check if GreedyWinRate is available\r\n if (checkGreedyWinRate() && checkGreedyEnergy() && canBuy(ENERGY)) {\r\n return buildEnergy();\r\n }\r\n // Check if there is an attack..\r\n else if (myTotal.get(3) > 0 || myTotal.get(0) > 0) {\r\n // Check if GreedyDefense is available\r\n if (canBuy(DEFENSE) && checkGreedyDefense()) \r\n return defendRow();\r\n else if (canBuy(ATTACK)) return buildTurret();\r\n return doNothingCommand();\r\n } \r\n // Check if GreedyEnergy is available\r\n else if (checkGreedyEnergy() && canBuy(ENERGY)) {\r\n return buildEnergy();\r\n } \r\n // Just Attack if there is no greedy or do nothing if there is no energy\r\n else if (canBuy(ATTACK)) {\r\n return buildTurret();\r\n } else {\r\n return doNothingCommand();\r\n }\r\n }\r\n }", "public static void main(String[]args){\n\t\n\tdouble budget =500;\n\t\n\tdouble phone =250.0;\n\tdouble watch =105.5;\n\tdouble bag = 80.00;\n\t\n\t\n\tif(budget< 80.0) {\n\t\tSystem.out.println(\"Cannot buy anything\");\n\t\t\n\t}if (budget >=435.5) {\n\t\tSystem.out.println(\"You can buy all items\");\n\t\n\t\t\n\t} else if (budget >= phone + watch) {\n\t\tSystem.out.println(\"You can buy Phone +Watch OR Phone + Bag OR watch + Bag\");\n\t\t\n\t} else if (budget >= phone +bag); {\n\t\tSystem.out.println(\"You can buy Phone OR watch + bag\");\n\t\t\t\t\n\t if (budget >= watch) {\n\t\tSystem.out.println(\"You can buy a watch or a bag\");\n\t\t\n\t} else {\n\t\tSystem.out.println(\"You can buy a bag\");}\n\t\n\t}\n\t}", "Coin()//method to initialize the coin with a side\r\n {//opening code for the coin method\r\n toss();//statement of using the later toss method to initialize the coin\r\n }", "float getDiscount();", "@Test(expected=NoCoinsException.class)\n\tpublic void testNoCoin() throws Exception {\n\t\td.dispense(0, 10);\n\t}", "public boolean getDonation(BoutiqueSign bs, Player p)\n\t{\n\t\t\n\t\tString signOwner = bs.getOwnerString();\n\t\t\n\t\t//Teste donation item ou thunes ?\n\t\t\n\t\t//Don d'item\n\t\tif(bs.getItemFrom() != null)\n\t\t{\n\t\t\tInteger qty = bs.getQtyFrom();\n\t\t\tInteger id = bs.getItemFrom().itemId;\n\t\t\tInteger damage = bs.getItemFrom().itemDamage;\n\t\t\t\n\t\t\tif (!PlayerOperator.playerHasEnough( qty, id, damage, p))\n\t\t\t{\n\t\t\t\tp.sendMessage(plugin.chatPrefix + PlayerOperator.playerStockErr);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tif (bs.isSignServer())\n\t\t\t{\n\t\t\t\t//Enleve le propriétaire du panneau pour les logs (car panneau serveur) !\n\t\t\t\tsignOwner = \"\"; //$NON-NLS-1$\n\t\t\t}\n\t\t\telse if (bs.isSignWebAuction())\n\t\t\t{\n\t\t\t\t// Panneau \"webauctions\"\n\t\t\t\t// Ajoute les objets au stock WebAuctions\n\t\t\t\tif(!plugin.db.wa_AddToStock(p.getName(), id, damage, qty))\n\t\t\t\t{\n\t\t\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.UNABLETOADDINWEBSTOCKS\") + signOwner + Messages.getString(\"Sign.SMILEYSAD\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\telse if (bs.isSignChest())\n\t\t\t{\n\t\t\t\t//p.sendMessage(\"dbg0: debut signchest\");\n\t\t\t\t\n\t\t\t\t// Cherche le coffre relié au panneau\n\t\t\t\tChest chest = bs.getChest();\n\t\t\t\tif(chest==null)\t\n\t\t\t\t{\n\t\t\t\t\t//p.sendMessage(\"dbg1: coffre introuvable\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t// Vérifie qu'il reste de la place dans le coffre pour stocker les objets à acheter\n\t\t\t\tif (!ChestOperator.hasEnoughSpace(qty,id,damage, chest))\n\t\t\t\t{\n\t\t\t\t\tp.sendMessage(plugin.chatPrefix + ChestOperator.notEnoughSpaceErr);\n\t\t\t\t\treturn false;\n\t\t\t\t}\t\t\t\n\n\t\t\t\t// Credite le coffre de l'acheteur\n\t\t\t\tChestOperator.addToChestStock(qty, id, damage, chest);\n\t\t\t}\n\t\t\t\n\t\t\t// Retire les objets au donneur\n\t\t\tPlayerOperator.removeFromPlayer(qty, id, damage, p);\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.YOUGIVE\") + qty + Messages.getString(\"Sign.QTY1\") + bs.getItemFrom().itemName + \" \" + (bs.isSignServer() ? Messages.getString(\"Sign.TOSERVER\"): Messages.getString(\"Sign.TO\") + signOwner + \".\")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$\n\t\t\t\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tBoutique.getInstance().db.logTransaction(p.getLocation(), p.getName(), signOwner, id , damage, qty , 0.0 ,\"toto\",\"titi\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t}\n\t\t\tcatch (Exception e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(bs.getMoneyFrom() != null)\n\t\t{\n\t\t\t\n\t\t\t//Don d'argent\n\t\t\t\n\t\t\t\n\t\t\t//Verif money doneur\n\t\t\tif (EconomyHandler.hasEnough(p.getName(), bs.getMoneyFrom())!=1)\n\t\t\t{\n\t\t\t\tp.sendMessage(plugin.chatPrefix + EconomyHandler.noFundsErr);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t//Crédite le receveur (sauf si serveur)\n\t\t\tif(!bs.isSignServer())\n\t\t\t{\n\t\t\t\tEconomyHandler.modifyMoney(bs.getOwnerString(), bs.getMoneyFrom());\n\t\t\t}\n\t\t\t\n\t\t\t//Débite le doneur\n\t\t\tEconomyHandler.modifyMoney(p.getName(), -bs.getMoneyFrom());\n\t\t\t\n\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.YOUGIVE\") + EconomyHandler.formatMoney(bs.getMoneyFrom()) + \" \" + EconomyHandler.formatCurrency(bs.getMoneyFrom()) + \" \" + (bs.isSignServer() ? Messages.getString(\"Sign.TOSERVER\"): Messages.getString(\"Sign.TO\") + signOwner));\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.MONEYREMAINING\") + EconomyHandler.playerHave(p.getName())); //$NON-NLS-1$\n\t\t\t\n\t\t\t\n\t\t\ttry \n\t\t\t{\n\t\t\t\tBoutique.getInstance().db.logTransaction(p.getLocation(), p.getName(), signOwner, 0, 0, 0, bs.getMoneyFrom() ,\"toto\",\"titi\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t}\n\t\t\tcatch (Exception e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.VROUMVROUMERR\"));\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean buy() throws Exception {\n\n int jogador = this.jogadorAtual();\n\n String lugar = this.tabuleiro.getPlaceName(posicoes[jogador]);\n // System.out.println(\"lugar[jogador]\" + lugar);\n boolean posicaoCompravel = this.posicaoCompravel(posicoes[jogador]);\n boolean isEstatal = this.isPosicaoEstatal(this.posicoes[jogador]);\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true && verificaSeServicoPublicoFoiComprado(this.posicoes[jogador]))) {\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true)) {\n this.listaJogadores.get(jogadorAtual()).addQuantidadeCompanhias();\n\n }\n int posicaoTabuleiro = posicoes[jogador];\n int preco = this.tabuleiro.getLugarPrecoCompra(posicaoTabuleiro);\n Jogador j = listaJogadores.get(jogador);\n this.terminarAVez();\n if (preco <= j.getDinheiro()) {\n this.print(\"\\tPossui dinheiro para a compra!\");\n j.retirarDinheiro(preco);\n this.Donos.put(posicaoTabuleiro, j.getNome());\n\n String nomeLugar = this.tabuleiro.getPlaceName(posicaoTabuleiro);\n j.addPropriedade(nomeLugar);\n if (nomeLugar.equals(\"Reading Railroad\") || nomeLugar.equals(\"Pennsylvania Railroad\") ||\n nomeLugar.equals(\"B & O Railroad\") || nomeLugar.equals(\"Short Line Railroad\")) {\n DonosFerrovias[jogador]++;\n }\n this.print(\"\\tVocê adquiriu \" + nomeLugar + \" por \" + preco);\n this.print(\"\\tAtual dinheiro: \" + j.getDinheiro());\n if (j.temPropriedades() && hipotecaAtiva) {\n j.adicionarComandoHipotecar();\n }\n if (j.verificaSeTemGrupo(posicaoTabuleiro)) {\n if (this.build == true) {\n j.adicionarComandoBuild();\n }\n\n this.tabuleiro.duplicarAluguelGrupo(posicaoTabuleiro);\n\n }\n } else {\n this.print(\"\\tNão possui dinheiro para realizar a compra!\");\n throw new Exception(\"Not enough money\");\n }\n\n } else {\n\n if (this.jaTemDono(posicoes[jogador])) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n\n if (isEstatal && this.publicServices == false) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n if (!posicaoCompravel) {\n throw new Exception(\"Place doesn't have a deed to be bought\");\n }\n }\n\n\n\n return false;\n\n\n\n }", "public static void main(String[] args) {\n Scanner myScanner = new Scanner(System.in); //allows to prompt user for input\n System.out.print(\"Enter the original cost of the check in the form xx.xx \");\n //using method within Scanner class\n double checkCost = myScanner.nextDouble();\n System.out.print(\"Enter the percentage tip that you wish to pay as\"+\n \"a whole number (in the form xx): \" ); \n double tipPercent = myScanner.nextDouble(); //promt user to enter tip perecentage\n tipPercent /= 100; //We want to convert the percentage into a decimal value\n System.out.print(\"Enter the number of people who went out to dinner: \"); \n int numPeople = myScanner.nextInt(); //promt user to enter number of people\n double totalCost; \n double costPerPerson;\n int dollars, //whole dollar amount of cost \n dimes, pennies; //for storing digits\n //to the right of the decimal point \n //for the cost$ \n totalCost = checkCost * (1 + tipPercent);\n costPerPerson = totalCost / numPeople;\n //get the whole amount, dropping decimal fraction\n dollars=(int)costPerPerson;\n //get dimes amount, e.g., \n // (int)(6.73 * 10) % 10 -> 67 % 10 -> 7\n // where the % (mod) operator returns the remainder\n // after the division: 583%100 -> 83, 27%5 -> 2 \n dimes=(int)(costPerPerson * 10) % 10;\n pennies=(int)(costPerPerson / 100);\n System.out.println(\"Each person in the group owes $\" + dollars + \".\" + dimes + pennies);\n \n \n }", "Money getDiscountValue();", "private void calculateCrit(Monster target, MonsterParts part, Weapon weapon, double motionValue) throws InvalidPartException {\n \n if (target.isWeakness(part)) {\n if (Math.random() < (Math.abs((weapon.getAffinity() + weaknessExploit)/100.0)) && (weapon.getAffinity() + weaknessExploit) < 0) {\n critDamage -= weapon.getAttack()/weapon.getInflation() * 0.25 * weapon.getRawSharpness() * target.getPartMultiplierRaw(part, weapon) * motionValue;\n }\n if (Math.random() < ((weapon.getAffinity() + weaknessExploit)/100.0) && (weapon.getAffinity() + weaknessExploit) > 0) {\n critDamage += weapon.getAttack()/weapon.getInflation() * (0.25 + critBoost/100.0) * weapon.getRawSharpness() *target.getPartMultiplierRaw(part, weapon) * motionValue;\n if (criticalElement) {\n elementalCritDamage += weapon.getElementStatusDmg()/10 * 0.25 * weapon.getElementalSharpness() * target.getPartMultiplierElemental(part, weapon);\n }\n }\n } else {\n if (Math.random() < (Math.abs(weapon.getAffinity()/100.0)) && weapon.getAffinity() < 0) {\n critDamage -= weapon.getAttack()/weapon.getInflation() * 0.25 * weapon.getRawSharpness() * target.getPartMultiplierRaw(part, weapon) * motionValue;\n }\n if (Math.random() < (weapon.getAffinity()/100.0) && weapon.getAffinity() > 0) {\n critDamage += weapon.getAttack()/weapon.getInflation() * (0.25 + critBoost/100.0) * weapon.getRawSharpness() * target.getPartMultiplierRaw(part, weapon) * motionValue;\n if (criticalElement) {\n elementalCritDamage += weapon.getElementStatusDmg()/10 * 0.25 * weapon.getElementalSharpness() * target.getPartMultiplierElemental(part, weapon);\n }\n }\n }\n\n }", "private void computeCoffeeMaker(){\n HashMap<String,String> notAvailableBeverages = coffeeMakerService.getNotAvailableBeverages();\n ArrayList<String> beverageNames = coffeeMakerService.getBeveragesName();\n for (String beverage: beverageNames) {\n if(notAvailableBeverages.containsKey(beverage)){\n System.out.println(notAvailableBeverages.get(beverage));\n }else{\n if(coffeeMakerService.canPrepareBeverage(beverage)){\n coffeeMakerService.prepareBeverage(beverage);\n System.out.println(beverage+\" is prepared\");\n }else{\n System.out.println(coffeeMakerService.getReasonForNotPreparation(beverage));\n }\n }\n }\n }", "public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }", "public int getCoins() {\n return coins; //XXX-CHANGE-XXX\n }", "public CheeseConnoisseur(String name, double money, Cheese hold) {\n this.name = name;\n this.money = money;\n this.hold = hold;\n }", "int getRent(Player owner, int tenantDiceRoll);", "void mining() {\n //COMPUTE ALL DATA HERE\n if (random.nextBoolean()) {\n black_toner = black_toner + random.nextInt(variation);\n black_drum = black_drum + random.nextInt(variation / 2);\n total_printed_black = total_printed_black + random.nextInt(variation);\n } else {\n black_toner = black_toner - random.nextInt(variation);\n black_drum = black_drum - random.nextInt(variation / 2);\n total_printed_black = total_printed_black - random.nextInt(variation);\n }\n\n if (black_toner <= 0) {\n black_toner = 100;\n }\n if (black_drum <= 0) {\n black_drum = 100;\n }\n if (total_printed_black <= 0) {\n total_printed_black = 100;\n }\n }", "public int getCoin() {\n return getStat(coin);\n }", "public int getGold();", "@Override\n public int calculateBattleValue(boolean ignoreC3, boolean ignorePilot) {\n\n bvText = new StringBuffer(\"<HTML><BODY><CENTER><b>Battle Value Calculations For \");\n\n bvText.append(getChassis());\n bvText.append(\" \");\n bvText.append(getModel());\n bvText.append(\"</b></CENTER>\");\n bvText.append(nl);\n\n bvText.append(\"<b>Defensive Battle Rating Calculation:</b>\");\n bvText.append(nl);\n\n double dbv = 0; // defensive battle value\n double obv = 0; // offensive bv\n\n // total armor points\n double armorMultiplier = 1.0;\n\n switch (getArmorType()) {\n case EquipmentType.T_ARMOR_COMMERCIAL:\n armorMultiplier = 0.5;\n break;\n case EquipmentType.T_ARMOR_HARDENED:\n armorMultiplier = 2.0;\n break;\n case EquipmentType.T_ARMOR_REACTIVE:\n case EquipmentType.T_ARMOR_REFLECTIVE:\n armorMultiplier = 1.5;\n break;\n case EquipmentType.T_ARMOR_LAMELLOR_FERRO_CARBIDE:\n armorMultiplier = 1.2;\n break;\n default:\n armorMultiplier = 1.0;\n break;\n }\n\n if (hasWorkingMisc(MiscType.F_BLUE_SHIELD)) {\n armorMultiplier += 0.2;\n }\n\n bvText.append(startTable);\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Total Armor Factor x \");\n bvText.append(armorMultiplier);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n // BV for torso mounted cockpit.\n if (getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED) {\n dbv += this.getArmor(Mech.LOC_CT);\n dbv += this.getArmor(Mech.LOC_CT, true);\n }\n int modularArmor = 0;\n for (Mounted mounted : getMisc()) {\n if (mounted.getType().hasFlag(MiscType.F_MODULAR_ARMOR)) {\n modularArmor += mounted.getBaseDamageCapacity() - mounted.getDamageTaken();\n }\n }\n\n dbv += (getTotalArmor() + modularArmor);\n\n bvText.append(dbv);\n bvText.append(\" x 2.5 x \");\n bvText.append(armorMultiplier);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\"= \");\n\n dbv *= 2.5 * armorMultiplier;\n\n bvText.append(dbv);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // total internal structure\n double internalMultiplier = 1.0;\n if (getStructureType() == EquipmentType.T_STRUCTURE_INDUSTRIAL) {\n internalMultiplier = 0.5;\n } else if (getStructureType() == EquipmentType.T_STRUCTURE_REINFORCED) {\n internalMultiplier = 2.0;\n }\n if (hasWorkingMisc(MiscType.F_BLUE_SHIELD)) {\n internalMultiplier += 0.2;\n }\n\n dbv += getTotalInternal() * internalMultiplier * 1.5 * getEngine().getBVMultiplier();\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Total I.S. Points x IS Multipler x 1.5 x Engine Multipler\");\n\n bvText.append(endColumn + startColumn);\n bvText.append(getTotalInternal());\n bvText.append(\" x \");\n bvText.append(internalMultiplier);\n bvText.append(\" x \");\n bvText.append(\"1.5 x \");\n bvText.append(getEngine().getBVMultiplier());\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= \");\n bvText.append(getTotalInternal() * internalMultiplier * 1.5 * getEngine().getBVMultiplier());\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // add gyro\n dbv += getWeight() * getGyroMultiplier();\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Weight x Gyro Multipler \");\n bvText.append(endColumn + startColumn);\n bvText.append(getWeight());\n bvText.append(\" x \");\n bvText.append(getGyroMultiplier());\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= \");\n bvText.append(getWeight() * getGyroMultiplier());\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Defensive Equipment:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(endColumn);\n bvText.append(endRow);\n // add defensive equipment\n double dEquipmentBV = 0;\n for (Mounted mounted : getEquipment()) {\n EquipmentType etype = mounted.getType();\n\n // don't count destroyed equipment\n if (mounted.isDestroyed()) {\n continue;\n }\n\n if (((etype instanceof WeaponType) && (etype.hasFlag(WeaponType.F_AMS) || etype.hasFlag(WeaponType.F_B_POD))) || ((etype instanceof AmmoType) && (((AmmoType) etype).getAmmoType() == AmmoType.T_AMS)) || ((etype instanceof MiscType) && (etype.hasFlag(MiscType.F_ECM) || etype.hasFlag(MiscType.F_AP_POD)\n // not yet coded: ||\n // etype.hasFlag(MiscType.F_BRIDGE_LAYING)\n || etype.hasFlag(MiscType.F_MASS) || etype.hasFlag(MiscType.F_BAP) || etype.hasFlag(MiscType.F_SPIKES) || (etype.hasFlag(MiscType.F_CLUB) && (etype.hasSubType(MiscType.S_SHIELD_LARGE) || etype.hasSubType(MiscType.S_SHIELD_MEDIUM) || etype.hasSubType(MiscType.S_SHIELD_SMALL)))))) {\n double bv = etype.getBV(this);\n dEquipmentBV += bv;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(etype.getName());\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"+\");\n bvText.append(bv);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n }\n dbv += dEquipmentBV;\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n double armoredBVCal = getArmoredComponentBV();\n\n if (armoredBVCal > 0) {\n bvText.append(\"Armored Components BV Modification\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"+\");\n bvText.append(armoredBVCal);\n bvText.append(endColumn);\n bvText.append(endRow);\n dbv += armoredBVCal;\n }\n\n bvText.append(\"Total BV of all Defensive Equipment \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= \");\n bvText.append(dEquipmentBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // subtract for explosive ammo\n double ammoPenalty = 0;\n for (Mounted mounted : getEquipment()) {\n int loc = mounted.getLocation();\n int toSubtract = 15;\n EquipmentType etype = mounted.getType();\n\n // only count explosive ammo\n if (!etype.isExplosive()) {\n continue;\n }\n\n // don't count oneshot ammo\n if (loc == LOC_NONE) {\n continue;\n }\n\n // CASE II means no subtraction\n if (hasCASEII(loc)) {\n continue;\n }\n\n if (isClan()) {\n // Clan mechs only count ammo in ct, legs or head (per BMRr).\n // Also count ammo in side torsos if mech has xxl engine\n // (extrapolated from rule intent - not covered in rules)\n if (((loc != LOC_CT) && (loc != LOC_RLEG) && (loc != LOC_LLEG) && (loc != LOC_HEAD)) && !(((loc == LOC_RT) || (loc == LOC_LT)) && (getEngine().getSideTorsoCriticalSlots().length > 2))) {\n continue;\n }\n } else {\n // inner sphere with XL or XXL counts everywhere\n if (getEngine().getSideTorsoCriticalSlots().length <= 2) {\n // without XL or XXL, only count torsos if not CASEed,\n // and arms if arm & torso not CASEed\n if (((loc == LOC_RT) || (loc == LOC_LT)) && locationHasCase(loc)) {\n continue;\n } else if ((loc == LOC_LARM) && (locationHasCase(loc) || locationHasCase(LOC_LT) || hasCASEII(LOC_LT))) {\n continue;\n } else if ((loc == LOC_RARM) && (locationHasCase(loc) || locationHasCase(LOC_RT) || hasCASEII(LOC_RT))) {\n continue;\n }\n }\n }\n\n // gauss rifles only subtract 1 point per slot\n if (etype instanceof GaussWeapon) {\n toSubtract = 1;\n }\n // tasers also get only 1 point per slot\n if (etype instanceof ISMekTaser) {\n toSubtract = 1;\n }\n if ((etype instanceof MiscType) && etype.hasFlag(MiscType.F_BLUE_SHIELD)) {\n // blue shield needs to be special cased, because it's one\n // mounted with lots of locations,\n // and some of those could be proteced by cas\n toSubtract = 0;\n }\n\n // RACs don't really count\n if ((etype instanceof WeaponType) && (((WeaponType) etype).getAmmoType() == AmmoType.T_AC_ROTARY)) {\n toSubtract = 0;\n }\n\n // empty ammo shouldn't count\n if ((etype instanceof AmmoType) && (mounted.getShotsLeft() == 0)) {\n continue;\n }\n // normal ACs only marked as explosive because they are when they\n // just\n // fired incendiary ammo, therefore they don't count for explosive\n // BV\n if ((etype instanceof WeaponType) && ((((WeaponType) etype).getAmmoType() == AmmoType.T_AC) || (((WeaponType) etype).getAmmoType() == AmmoType.T_LAC))) {\n toSubtract = 0;\n }\n\n // B- and M-Pods shouldn't subtract\n if ((etype instanceof WeaponType) && (etype.hasFlag(WeaponType.F_B_POD) || etype.hasFlag(WeaponType.F_M_POD))) {\n toSubtract = 0;\n }\n\n // coolant pods subtract 1 each\n if ((etype instanceof AmmoType) && (((AmmoType) etype).getAmmoType() == AmmoType.T_COOLANT_POD)) {\n toSubtract = 1;\n }\n\n // PPC capacitors shouldn't count\n if ((etype instanceof MiscType) && etype.hasFlag(MiscType.F_PPC_CAPACITOR) && (mounted.getLinked() != null)) {\n toSubtract = 0;\n }\n // we subtract per critical slot\n toSubtract *= etype.getCriticals(this);\n ammoPenalty += toSubtract;\n }\n // special case for blueshield, need to check each non-head location\n // seperately for CASE\n if (hasWorkingMisc(MiscType.F_BLUE_SHIELD)) {\n int unProtectedCrits = 0;\n for (int loc = LOC_CT; loc <= LOC_LLEG; loc++) {\n if (isClan()) {\n // Clan mechs only count ammo in ct, legs or head (per\n // BMRr).\n // Also count ammo in side torsos if mech has xxl engine\n // (extrapolated from rule intent - not covered in rules)\n if (((loc != LOC_CT) && (loc != LOC_RLEG) && (loc != LOC_LLEG) && (loc != LOC_HEAD)) && !(((loc == LOC_RT) || (loc == LOC_LT)) && (getEngine().getSideTorsoCriticalSlots().length > 2))) {\n continue;\n }\n } else {\n // inner sphere with XL or XXL counts everywhere\n if (getEngine().getSideTorsoCriticalSlots().length <= 2) {\n // without XL or XXL, only count torsos if not CASEed,\n // and arms if arm & torso not CASEed\n if (((loc == LOC_RT) || (loc == LOC_LT)) && locationHasCase(loc)) {\n continue;\n } else if ((loc == LOC_LARM) && (locationHasCase(loc) || locationHasCase(LOC_LT))) {\n continue;\n } else if ((loc == LOC_RARM) && (locationHasCase(loc) || locationHasCase(LOC_RT))) {\n continue;\n }\n }\n }\n unProtectedCrits++;\n }\n ammoPenalty += unProtectedCrits;\n }\n dbv = Math.max(1, dbv - ammoPenalty);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Explosive Weapons/Equipment Penalty \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= -\");\n bvText.append(ammoPenalty);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(dbv);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // adjust for target movement modifier\n // we use full possible movement, ignoring gravity and heat\n // but taking into account hit actuators\n int walkMP = getWalkMP(false, true);\n int runMP;\n if (hasTSM()) {\n walkMP++;\n }\n if (hasMASCAndSuperCharger()) {\n runMP = (int) Math.ceil(walkMP * 2.5);\n } else if (hasMASC()) {\n runMP = walkMP * 2;\n } else {\n runMP = (int) Math.ceil(walkMP * 1.5);\n }\n if (getArmorType() == EquipmentType.T_ARMOR_HARDENED) {\n runMP--;\n }\n int tmmRan = Compute.getTargetMovementModifier(runMP, false, false).getValue();\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Run MP\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(runMP);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Target Movement Modifer For Run\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(tmmRan);\n bvText.append(endColumn);\n bvText.append(endRow);\n // use UMU for JJ, unless we have more jump MP than UMU (then we have\n // mechanical jumpboosters\n int jumpMP = Math.max(getActiveUMUCount(), getJumpMP(false));\n int tmmJumped = Compute.getTargetMovementModifier(jumpMP, true, false).getValue();\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Target Movement Modifer For Jumping\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(tmmJumped);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n double targetMovementModifier = Math.max(tmmRan, tmmJumped);\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Target Movement Modifer\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(targetMovementModifier);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // Try to find a Mek Stealth or similar system.\n if (hasStealth() || hasNullSig()) {\n targetMovementModifier += 2;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Stealth +2\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"+2\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n }\n if (hasChameleonShield()) {\n targetMovementModifier += 2;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Chameleon +2\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"+2\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n }\n if (hasVoidSig()) {\n targetMovementModifier += 3;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Void Sig +3\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"+3\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n }\n double tmmFactor = 1 + (targetMovementModifier / 10);\n dbv *= tmmFactor;\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Multiply by Defensive Movement Factor of \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(tmmFactor);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\" x \");\n bvText.append(tmmFactor);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Defensive Battle Value\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= \");\n bvText.append(dbv);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"<b>Offensive Battle Rating Calculation:</b>\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n // calculate heat efficiency\n int mechHeatEfficiency = 6 + getHeatCapacity();\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Base Heat Efficiency \");\n\n double coolantPods = 0;\n for (Mounted ammo : getAmmo()) {\n if (((AmmoType) ammo.getType()).getAmmoType() == AmmoType.T_COOLANT_POD) {\n coolantPods++;\n }\n }\n\n // account for coolant pods\n if (coolantPods > 0) {\n mechHeatEfficiency += Math.ceil(getNumberOfSinks() * coolantPods / 5);\n bvText.append(\" + Coolant Pods \");\n }\n\n if (getJumpMP() > 0) {\n mechHeatEfficiency -= getJumpHeat(getJumpMP());\n bvText.append(\" - Jump Heat \");\n } else {\n mechHeatEfficiency -= getRunHeat();\n bvText.append(\" - Run Heat \");\n }\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(6 + getHeatCapacity());\n\n if (coolantPods > 0) {\n bvText.append(\" + \");\n bvText.append(Math.ceil((getNumberOfSinks() * coolantPods) / 5));\n }\n\n bvText.append(\" - \");\n if (getJumpMP() > 0) {\n bvText.append(getJumpHeat(getJumpMP()));\n } else {\n bvText.append(getRunHeat());\n }\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"= \");\n bvText.append(mechHeatEfficiency);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Unmodified Weapon BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n double weaponBV = 0;\n boolean hasTargComp = hasTargComp();\n // first, add up front-faced and rear-faced unmodified BV,\n // to know wether front- or rear faced BV should be halved\n double bvFront = 0, bvRear = 0, nonArmFront = 0, nonArmRear = 0, bvTurret = 0;\n ArrayList<Mounted> weapons = getWeaponList();\n for (Mounted weapon : weapons) {\n WeaponType wtype = (WeaponType) weapon.getType();\n if (wtype.hasFlag(WeaponType.F_B_POD)) {\n continue;\n }\n double dBV = wtype.getBV(this);\n\n // don't count destroyed equipment\n if (weapon.isDestroyed()) {\n continue;\n }\n // don't count AMS, it's defensive\n if (wtype.hasFlag(WeaponType.F_AMS)) {\n continue;\n }\n // calc MG Array here:\n if (wtype.hasFlag(WeaponType.F_MGA)) {\n double mgaBV = 0;\n for (Mounted possibleMG : getWeaponList()) {\n if (possibleMG.getType().hasFlag(WeaponType.F_MG) && (possibleMG.getLocation() == weapon.getLocation())) {\n mgaBV += possibleMG.getType().getBV(this);\n }\n }\n dBV = mgaBV * 0.67;\n }\n String name = wtype.getName();\n // check to see if the weapon is a PPC and has a Capacitor attached\n // to it\n if (wtype.hasFlag(WeaponType.F_PPC) && (weapon.getLinkedBy() != null)) {\n dBV += ((MiscType) weapon.getLinkedBy().getType()).getBV(this, weapon);\n name = name.concat(\" with Capacitor\");\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(name);\n if (weapon.isTurretMounted()) {\n bvTurret += dBV;\n bvText.append(\" (T)\");\n } else if (weapon.isRearMounted()) {\n bvRear += dBV;\n bvText.append(\" (R)\");\n } else {\n bvFront += dBV;\n }\n if (!isArm(weapon.getLocation()) && !weapon.isTurretMounted()) {\n if (weapon.isRearMounted()) {\n nonArmRear += dBV;\n } else {\n nonArmFront += dBV;\n }\n }\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(dBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Unmodified Front BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(bvFront);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Unmodfied Rear BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(bvRear);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Unmodfied Turret BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(bvTurret);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Total Unmodfied BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(bvRear + bvFront + bvTurret);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(\"Unmodified Front non-arm BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(nonArmFront);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Unmodfied Rear non-arm BV:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(nonArmRear);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n boolean halveRear = true;\n boolean turretFront = true;\n if (nonArmFront <= nonArmRear) {\n halveRear = false;\n turretFront = false;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"halving front instead of rear weapon BVs\");\n bvText.append(endColumn);\n bvText.append(endRow);\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"turret mounted weapon BVs count as rear firing\");\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Weapon Heat:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // here we store the modified BV and heat of all heat-using weapons,\n // to later be sorted by BV\n ArrayList<ArrayList<Object>> heatBVs = new ArrayList<ArrayList<Object>>();\n // BVs of non-heat-using weapons\n ArrayList<ArrayList<Object>> nonHeatBVs = new ArrayList<ArrayList<Object>>();\n // total up maximum heat generated\n // and add up BVs for ammo-using weapon types for excessive ammo rule\n Map<String, Double> weaponsForExcessiveAmmo = new HashMap<String, Double>();\n double maximumHeat = 0;\n for (Mounted mounted : getWeaponList()) {\n WeaponType wtype = (WeaponType) mounted.getType();\n if (wtype.hasFlag(WeaponType.F_B_POD)) {\n continue;\n }\n double weaponHeat = wtype.getHeat();\n\n // only count non-damaged equipment\n if (mounted.isMissing() || mounted.isHit() || mounted.isDestroyed() || mounted.isBreached()) {\n continue;\n }\n\n // one shot weapons count 1/4\n if ((wtype.getAmmoType() == AmmoType.T_ROCKET_LAUNCHER) || wtype.hasFlag(WeaponType.F_ONESHOT)) {\n weaponHeat *= 0.25;\n }\n\n // double heat for ultras\n if ((wtype.getAmmoType() == AmmoType.T_AC_ULTRA) || (wtype.getAmmoType() == AmmoType.T_AC_ULTRA_THB)) {\n weaponHeat *= 2;\n }\n\n // Six times heat for RAC\n if (wtype.getAmmoType() == AmmoType.T_AC_ROTARY) {\n weaponHeat *= 6;\n }\n\n // laser insulator reduce heat by 1, to a minimum of 1\n if (wtype.hasFlag(WeaponType.F_LASER) && (mounted.getLinkedBy() != null)\n && !mounted.getLinkedBy().isInoperable()\n && mounted.getLinkedBy().getType().hasFlag(MiscType.F_LASER_INSULATOR)) {\n weaponHeat -= 1;\n if (weaponHeat == 0) {\n weaponHeat++;\n }\n }\n\n // half heat for streaks\n if ((wtype.getAmmoType() == AmmoType.T_SRM_STREAK) || (wtype.getAmmoType() == AmmoType.T_MRM_STREAK) || (wtype.getAmmoType() == AmmoType.T_LRM_STREAK)) {\n weaponHeat *= 0.5;\n }\n\n String name = wtype.getName();\n\n // check to see if the weapon is a PPC and has a Capacitor attached\n // to it\n if (wtype.hasFlag(WeaponType.F_PPC) && (mounted.getLinkedBy() != null)) {\n name = name.concat(\" with Capacitor\");\n weaponHeat += 5;\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(name);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\"+ \");\n bvText.append(weaponHeat);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n double dBV = wtype.getBV(this);\n String weaponName = mounted.getName() + (mounted.isRearMounted() ? \"(R)\" : \"\");\n\n // don't count AMS, it's defensive\n if (wtype.hasFlag(WeaponType.F_AMS)) {\n continue;\n }\n // calc MG Array here:\n if (wtype.hasFlag(WeaponType.F_MGA)) {\n double mgaBV = 0;\n for (Mounted possibleMG : getWeaponList()) {\n if (possibleMG.getType().hasFlag(WeaponType.F_MG) && (possibleMG.getLocation() == mounted.getLocation())) {\n mgaBV += possibleMG.getType().getBV(this);\n }\n }\n dBV = mgaBV * 0.67;\n }\n\n // if linked to AES, multiply by 1.5\n if (hasFunctionalArmAES(mounted.getLocation())) {\n dBV *= 1.5;\n }\n // and we'll add the tcomp here too\n if (wtype.hasFlag(WeaponType.F_DIRECT_FIRE) && hasTargComp) {\n dBV *= 1.25;\n }\n // artemis bumps up the value\n // PPC caps do, too\n if (mounted.getLinkedBy() != null) {\n // check to see if the weapon is a PPC and has a Capacitor\n // attached to it\n if (wtype.hasFlag(WeaponType.F_PPC)) {\n dBV += ((MiscType) mounted.getLinkedBy().getType()).getBV(this, mounted);\n weaponName = weaponName.concat(\" with Capacitor\");\n }\n Mounted mLinker = mounted.getLinkedBy();\n if ((mLinker.getType() instanceof MiscType) && mLinker.getType().hasFlag(MiscType.F_ARTEMIS)) {\n dBV *= 1.2;\n weaponName = weaponName.concat(\" with Artemis IV\");\n }\n if ((mLinker.getType() instanceof MiscType) && mLinker.getType().hasFlag(MiscType.F_ARTEMIS_V)) {\n dBV *= 1.3;\n weaponName = weaponName.concat(\" with Artemis V\");\n }\n if ((mLinker.getType() instanceof MiscType) && mLinker.getType().hasFlag(MiscType.F_APOLLO)) {\n dBV *= 1.15;\n weaponName = weaponName.concat(\" with Apollo\");\n }\n }\n // half for being rear mounted (or front mounted, when more rear-\n // than front-mounted un-modded BV\n // or for being turret mounted, when more rear-mounted BV than front mounted BV\n if ((!isArm(mounted.getLocation()) && !mounted.isTurretMounted() && ((mounted.isRearMounted() && halveRear) || (!mounted.isRearMounted() && !halveRear))) || (mounted.isTurretMounted() && ((!turretFront && halveRear) || (turretFront && !halveRear)))) {\n dBV /= 2;\n }\n\n // ArrayList that stores weapon values\n // stores a double first (BV), then an Integer (heat),\n // then a String (weapon name)\n // for 0 heat weapons, just stores BV and name\n ArrayList<Object> weaponValues = new ArrayList<Object>();\n if (weaponHeat > 0) {\n // store heat and BV, for sorting a few lines down;\n weaponValues.add(dBV);\n weaponValues.add(weaponHeat);\n weaponValues.add(weaponName);\n heatBVs.add(weaponValues);\n } else {\n weaponValues.add(dBV);\n weaponValues.add(weaponName);\n nonHeatBVs.add(weaponValues);\n }\n\n maximumHeat += weaponHeat;\n // add up BV of ammo-using weapons for each type of weapon,\n // to compare with ammo BV later for excessive ammo BV rule\n if (!((wtype.hasFlag(WeaponType.F_ENERGY) && !(wtype.getAmmoType() == AmmoType.T_PLASMA)) || wtype.hasFlag(WeaponType.F_ONESHOT) || wtype.hasFlag(WeaponType.F_INFANTRY) || (wtype.getAmmoType() == AmmoType.T_NA))) {\n String key = wtype.getAmmoType() + \":\" + wtype.getRackSize();\n if (!weaponsForExcessiveAmmo.containsKey(key)) {\n weaponsForExcessiveAmmo.put(key, wtype.getBV(this));\n } else {\n weaponsForExcessiveAmmo.put(key, wtype.getBV(this) + weaponsForExcessiveAmmo.get(key));\n }\n }\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Total Heat:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\"= \");\n bvText.append(maximumHeat);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Weapons with no heat at full BV:\");\n bvText.append(endColumn);\n bvText.append(endRow);\n // count heat-free weapons always at full modified BV\n for (ArrayList<Object> nonHeatWeapon : nonHeatBVs) {\n weaponBV += (Double) nonHeatWeapon.get(0);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(nonHeatWeapon.get(1));\n if (nonHeatWeapon.get(1).toString().length() < 8) {\n bvText.append(\"\\t\");\n }\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(nonHeatWeapon.get(0));\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Heat Modified Weapons BV: \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n if (maximumHeat > mechHeatEfficiency) {\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"(Heat Exceeds Mech Heat Efficiency) \");\n\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n if (maximumHeat <= mechHeatEfficiency) {\n\n // count all weapons equal\n for (ArrayList<Object> weaponValues : heatBVs) {\n // name\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(weaponValues.get(2));\n weaponBV += (Double) weaponValues.get(0);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weaponValues.get(0));\n bvText.append(endColumn);\n bvText.append(endRow);\n\n }\n } else {\n // this will count heat-generating weapons at full modified BV until\n // heatefficiency is reached or passed with one weapon\n\n // sort the heat-using weapons by modified BV\n Collections.sort(heatBVs, new Comparator<ArrayList<Object>>() {\n public int compare(ArrayList<Object> obj1, ArrayList<Object> obj2) {\n // first element in the the ArrayList is BV, second is heat\n // if same BV, lower heat first\n if (obj1.get(0).equals(obj2.get(0))) {\n return (int) Math.ceil((Double) obj1.get(1) - (Double) obj2.get(1));\n }\n // higher BV first\n return (int) Math.ceil((Double) obj2.get(0) - (Double) obj1.get(0));\n }\n });\n // count heat-generating weapons at full modified BV until\n // heatefficiency is reached or\n // passed with one weapon\n double heatAdded = 0;\n for (ArrayList<Object> weaponValues : heatBVs) {\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(weaponValues.get(2));\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n double dBV = (Double) weaponValues.get(0);\n if (heatAdded >= mechHeatEfficiency) {\n dBV /= 2;\n }\n if (heatAdded >= mechHeatEfficiency) {\n bvText.append(\"Heat efficiency reached, half BV\");\n }\n heatAdded += (Double) weaponValues.get(1);\n weaponBV += dBV;\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(dBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Heat count: \" + heatAdded);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n }\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Total Weapons BV Adjusted For Heat:\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(weaponBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Misc Offensive Equipment: \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // add offensive misc. equipment BV (everything except AMS, A-Pod, ECM -\n // BMR p152)\n double oEquipmentBV = 0;\n for (Mounted mounted : getMisc()) {\n MiscType mtype = (MiscType) mounted.getType();\n\n // don't count destroyed equipment\n if (mounted.isDestroyed()) {\n continue;\n }\n\n if (mtype.hasFlag(MiscType.F_ECM) || mtype.hasFlag(MiscType.F_BAP) || mtype.hasFlag(MiscType.F_AP_POD)\n // not yet coded: || etype.hasFlag(MiscType.F_BRIDGE_LAYING)\n || mtype.hasFlag(MiscType.F_TARGCOMP) || mtype.hasFlag(MiscType.F_SPIKES) || (mtype.hasFlag(MiscType.F_CLUB) && (mtype.hasSubType(MiscType.S_SHIELD_LARGE) || mtype.hasSubType(MiscType.S_SHIELD_MEDIUM) || mtype.hasSubType(MiscType.S_SHIELD_SMALL)))) {\n continue;\n }\n double bv = mtype.getBV(this);\n // if physical weapon linked to AES, multiply by 1.5\n if ((mtype.hasFlag(MiscType.F_CLUB) || mtype.hasFlag(MiscType.F_HAND_WEAPON)) && hasFunctionalArmAES(mounted.getLocation())) {\n bv *= 1.5;\n }\n\n if (bv > 0) {\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(mtype.getName());\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(bv);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n oEquipmentBV += bv;\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Total Misc Offensive Equipment BV: \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(oEquipmentBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n weaponBV += oEquipmentBV;\n\n // add ammo bv\n double ammoBV = 0;\n // extra BV for when we have semiguided LRMs and someone else has TAG on\n // our team\n double tagBV = 0;\n Map<String, Double> ammo = new HashMap<String, Double>();\n ArrayList<String> keys = new ArrayList<String>();\n for (Mounted mounted : getAmmo()) {\n AmmoType atype = (AmmoType) mounted.getType();\n\n // don't count depleted ammo\n if (mounted.getShotsLeft() == 0) {\n continue;\n }\n\n // don't count AMS, it's defensive\n if (atype.getAmmoType() == AmmoType.T_AMS) {\n continue;\n }\n\n // don't count oneshot ammo, it's considered part of the launcher.\n if (mounted.getLocation() == Entity.LOC_NONE) {\n // assumption: ammo without a location is for a oneshot weapon\n continue;\n }\n // semiguided or homing ammo might count double\n if ((atype.getMunitionType() == AmmoType.M_SEMIGUIDED) || (atype.getMunitionType() == AmmoType.M_HOMING)) {\n Player tmpP = getOwner();\n\n if (tmpP != null) {\n // Okay, actually check for friendly TAG.\n if (tmpP.hasTAG()) {\n tagBV += atype.getBV(this);\n } else if ((tmpP.getTeam() != Player.TEAM_NONE) && (game != null)) {\n for (Enumeration<Team> e = game.getTeams(); e.hasMoreElements();) {\n Team m = e.nextElement();\n if (m.getId() == tmpP.getTeam()) {\n if (m.hasTAG(game)) {\n tagBV += atype.getBV(this);\n }\n // A player can't be on two teams.\n // If we check his team and don't give the\n // penalty, that's it.\n break;\n }\n }\n }\n }\n }\n String key = atype.getAmmoType() + \":\" + atype.getRackSize();\n if (!keys.contains(key)) {\n keys.add(key);\n }\n if (!ammo.containsKey(key)) {\n ammo.put(key, atype.getBV(this));\n } else {\n ammo.put(key, atype.getBV(this) + ammo.get(key));\n }\n }\n\n // Excessive ammo rule:\n // Only count BV for ammo for a weapontype until the BV of all weapons\n // of that\n // type on the mech is reached.\n for (String key : keys) {\n\n if (weaponsForExcessiveAmmo.get(key) != null) {\n if (ammo.get(key) > weaponsForExcessiveAmmo.get(key)) {\n ammoBV += weaponsForExcessiveAmmo.get(key);\n } else {\n ammoBV += ammo.get(key);\n }\n } else {\n // Ammo with no matching weapons counts 0, unless it's a coolant\n // pod\n // because coolant pods have no matching weapon\n if (key.equals(new Integer(AmmoType.T_COOLANT_POD).toString() + \"1\")) {\n ammoBV += ammo.get(key);\n }\n }\n }\n weaponBV += ammoBV;\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Toal Ammo BV: \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(ammoBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n double weight = getWeight();\n double aesMultiplier = 1;\n if (hasFunctionalArmAES(Mech.LOC_LARM)) {\n aesMultiplier += 0.1;\n }\n if (hasFunctionalArmAES(Mech.LOC_RARM)) {\n aesMultiplier += 0.1;\n }\n if (hasFunctionalLegAES()) {\n if (this instanceof BipedMech) {\n aesMultiplier += 0.2;\n } else if (this instanceof QuadMech) {\n aesMultiplier += 0.4;\n }\n }\n\n weight *= aesMultiplier;\n\n if (aesMultiplier > 1) {\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Weight x AES Multiplier \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weight);\n bvText.append(\" x \");\n bvText.append(aesMultiplier);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\" = \");\n bvText.append(weight);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n // add tonnage, adjusted for TSM\n if (hasTSM()) {\n weaponBV += weight * 1.5;\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Add weight + TSM Modifier\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weight);\n bvText.append(\" * 1.5\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weight * 1.5);\n bvText.append(endColumn);\n bvText.append(endRow);\n } else if (hasIndustrialTSM()) {\n weaponBV += weight * 1.15;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Add weight + Industrial TSM Modifier\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weight);\n bvText.append(\" * 1.115\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weight * 1.15);\n bvText.append(endColumn);\n bvText.append(endRow);\n } else {\n weaponBV += weight;\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Add weight\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\"+\");\n bvText.append(weight);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n double speedFactor = Math.pow(1 + (((double) runMP + (Math.round((double) jumpMP / 2)) - 5) / 10), 1.2);\n speedFactor = Math.round(speedFactor * 100) / 100.0;\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Final Speed Factor: \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(speedFactor);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n obv = weaponBV * speedFactor;\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Weapons BV * Speed Factor \");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(weaponBV);\n bvText.append(\" * \");\n bvText.append(speedFactor);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\" = \");\n bvText.append(obv);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n // industrial without advanced firing control get's 0.9 mod to obv\n if (getCockpitType() == Mech.COCKPIT_INDUSTRIAL) {\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Offensive BV * 0.9 for Industrial 'Mech without advanced targeting system\");\n bvText.append(endColumn);\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(obv);\n bvText.append(\" * 0.9 = \");\n obv *= 0.9;\n bvText.append(obv);\n bvText.append(endColumn);\n bvText.append(endRow);\n }\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n bvText.append(\"Offensive BV + Defensive BV\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n double finalBV = obv + dbv;\n\n bvText.append(dbv);\n bvText.append(\" + \");\n bvText.append(obv);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\" = \");\n bvText.append(finalBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n\n double cockpitMod = 1;\n if ((getCockpitType() == Mech.COCKPIT_SMALL) || (getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED)) {\n cockpitMod = 0.95;\n finalBV *= cockpitMod;\n }\n finalBV = Math.round(finalBV);\n bvText.append(\"Total BV * Cockpit Modifier\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(obv + dbv);\n bvText.append(\" * \");\n bvText.append(cockpitMod);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(\" = \");\n bvText.append(finalBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(\"-------------\");\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(startRow);\n bvText.append(startColumn);\n bvText.append(\"Final BV\");\n bvText.append(endColumn);\n bvText.append(startColumn);\n bvText.append(endColumn);\n bvText.append(startColumn);\n\n bvText.append(finalBV);\n bvText.append(endColumn);\n bvText.append(endRow);\n\n bvText.append(endTable);\n bvText.append(\"</BODY></HTML>\");\n\n // we get extra bv from some stuff\n double xbv = 0.0;\n // extra BV for semi-guided lrm when TAG in our team\n xbv += tagBV;\n // extra from c3 networks. a valid network requires at least 2 members\n // some hackery and magic numbers here. could be better\n // also, each 'has' loops through all equipment. inefficient to do it 3\n // times\n if (((hasC3MM() && (calculateFreeC3MNodes() < 2)) || (hasC3M() && (calculateFreeC3Nodes() < 3)) || (hasC3S() && (c3Master > NONE)) || (hasC3i() && (calculateFreeC3Nodes() < 5))) && !ignoreC3 && (game != null)) {\n int totalForceBV = 0;\n totalForceBV += this.calculateBattleValue(true, true);\n for (Entity e : game.getC3NetworkMembers(this)) {\n if (!equals(e) && onSameC3NetworkAs(e)) {\n totalForceBV += e.calculateBattleValue(true, true);\n }\n }\n xbv += totalForceBV *= 0.05;\n }\n\n finalBV = (int) Math.round(finalBV + xbv);\n\n // and then factor in pilot\n double pilotFactor = 1;\n if (!ignorePilot) {\n pilotFactor = crew.getBVSkillMultiplier();\n }\n\n int retVal = (int) Math.round((finalBV) * pilotFactor);\n\n // don't factor pilot in if we are just calculating BV for C3 extra BV\n if (ignoreC3) {\n return (int) finalBV;\n }\n return retVal;\n }", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "public double calculatedConsuption(){\n\tint tressToSow=0;\n\n\tif (kiloWatts >=1 && kiloWatts <= 1000){\n\t\ttressToSow = 8;\n\t}\n\telse if (kiloWatts >=1001 && kiloWatts <=3000){\n\t\ttressToSow = 35;\n\t}\n\telse if (kiloWatts > 3000){\n\t\ttressToSow=500;\n\t}\n\treturn tressToSow;\n\t}", "public double calculateCost(Purchase purchase);", "double getMoney();", "public void cheat() {\r\n\t\t\t\tnourriture += population*10;\r\n\t\t\t\tarmee += population/2;\r\n\t\t\t\tpopulation += armee*tailleArmee;\r\n\t\t\t}", "public void ventaBilleteMaquina2()\n {\n maquina2.insertMoney(600);\n maquina1.printTicket();\n }", "public static PaymentChoiceInfo askPayment(int[] costToPay, int[] ammoInAmmoBox, List<PowerUpLM> ammoInPowerUp){\n boolean checkResult;\n possibleChoice = new ArrayList<>();\n paymentSB = new StringBuilder();\n responeForAmmo = new ArrayList<>();\n responseForPowerUp = new ArrayList<>();\n tmpAmmoInAmmoBox = new int[ammoInAmmoBox.length];\n ammoChosen = new int[ammoInAmmoBox.length];\n powerUpIdChosenList = new ArrayList<>();\n tmpCostToPay = new int[costToPay.length];\n tmpAmmoInPowerUp = new ArrayList<>();\n\n //Creazione liste temporanee per tenere traccia quantità \"utilizzate\" e del costo rimanente\n for(i = 0; i < costToPay.length; i++){\n tmpCostToPay[i] = costToPay[i];\n }\n\n for(i = 0; i < ammoInAmmoBox.length; i++){\n tmpAmmoInAmmoBox[i] = ammoInAmmoBox[i];\n }\n\n tmpAmmoInPowerUp.addAll(ammoInPowerUp);\n\n //Costruzione interazione utente\n msg = \"You need to pay with ammo to proceed with this action. \\n\" +\n \"You can use ammo from you ammo box or your powerups.\\n\\n\" +\n \"This is the cost you need to pay: \";\n paymentSB.append(msg);\n\n msg = ToolsView.costToString(tmpCostToPay) + \"\\n\\n\";\n paymentSB.append(msg);\n checkResult = checkIfNeedMore(tmpCostToPay);\n while(checkResult) {\n messageConstructor();\n System.out.print(paymentSB);\n\n String userChoice = ToolsView.readUserChoice(possibleChoice, false);\n\n if (userChoice != null) {\n if (responeForAmmo.contains(userChoice)) {\n switch (userChoice) {\n case red:\n tmpCostToPay[GeneralInfo.RED_ROOM_ID]--;\n tmpAmmoInAmmoBox[GeneralInfo.RED_ROOM_ID]--;\n ammoChosen[GeneralInfo.RED_ROOM_ID]++;\n break;\n case blue:\n tmpCostToPay[GeneralInfo.BLUE_ROOM_ID]--;\n tmpAmmoInAmmoBox[GeneralInfo.BLUE_ROOM_ID]--;\n ammoChosen[GeneralInfo.BLUE_ROOM_ID]++;\n break;\n case yellow:\n tmpCostToPay[GeneralInfo.YELLOW_ROOM_ID]--;\n tmpAmmoInAmmoBox[GeneralInfo.YELLOW_ROOM_ID]--;\n ammoChosen[GeneralInfo.YELLOW_ROOM_ID]++;\n break;\n }\n checkResult = checkIfNeedMore(tmpCostToPay);\n } else if (responseForPowerUp.contains(userChoice)) {\n PowerUpLM powerToDiscard = tmpAmmoInPowerUp.get(Integer.parseInt(userChoice) - 1);\n powerUpIdChosenList.add(powerToDiscard.getIdPowerUp());\n tmpAmmoInPowerUp.remove(Integer.parseInt(userChoice) - 1);\n\n if(powerToDiscard.getGainAmmoColor().equals(AmmoType.RED))\n tmpCostToPay[GeneralInfo.RED_ROOM_ID]--;\n else if(powerToDiscard.getGainAmmoColor().equals(AmmoType.BLUE))\n tmpCostToPay[GeneralInfo.BLUE_ROOM_ID]--;\n else if(powerToDiscard.getGainAmmoColor().equals(AmmoType.YELLOW))\n tmpCostToPay[GeneralInfo.YELLOW_ROOM_ID]--;\n\n //tmpAmmoInPowerUp.remove(Integer.parseInt(userChoice) - 1);\n checkResult = checkIfNeedMore(tmpCostToPay);\n\n if(checkResult){\n paymentSB = new StringBuilder();\n msg = \"This is the cost left to pay: \";\n paymentSB.append(msg);\n\n msg = ToolsView.costToString(tmpCostToPay) + \"\\n\\n\";\n paymentSB.append(msg);\n }\n }\n }\n else\n return null;\n }\n return new PaymentChoiceInfo(ammoChosen, powerUpIdChosenList);\n }", "public void calcTroops() {\r\n\t\t//Based on how many troops the player owns this will add to their spendage with a minimum of 2\r\n\t\ttroopSpendage = (players.get(turnCounter).getCountries().size()) / 3;\r\n\t\tif (troopSpendage < 3) {\r\n\t\t\ttroopSpendage = 3;\r\n\t\t}\r\n\t\t//If a player owns an entire continent, they will get a continent bonus to their spendage\r\n\t\t//these counters record how much of a continent the player owns\r\n\t\tint Kjersia = 0;\r\n\t\tint Estoveria = 0;\r\n\t\tint Moa = 0;\r\n\t\tint Shilov = 0;\r\n\t\tint Tormudd = 0;\r\n\t\tint Eschilles = 0;\r\n\t\t\r\n\t\t//increment the corresponding continent counter based on the continent value stored in the country objects the player owns\r\n\t\tfor (Country c:players.get(turnCounter).getCountries()) {\r\n\t\t\tswitch (c.getContinent()) {\r\n\t\t\tcase \"Kjersia\": Kjersia++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Estoveria\": Estoveria++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Moa\": Moa++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Shilov\": Shilov ++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Tormudd\": Tormudd++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Eschilles\": Eschilles++;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If the player owns all countries in a continent (each continent has different numbers of countries), give them a corresponding troop bonus as decided by the rules of the game\r\n\t\tif (Kjersia == 4) {\r\n\t\t\ttroopSpendage += 2;\r\n\t\t}\r\n\t\tif (Estoveria == 8) {\r\n\t\t\ttroopSpendage += 5;\r\n\t\t}\r\n\t\tif (Moa == 9) {\r\n\t\t\ttroopSpendage += 6;\r\n\t\t}\r\n\t\tif (Shilov == 4) {\r\n\t\t\ttroopSpendage += 3;\r\n\t\t}\r\n\t\tif (Tormudd == 5) {\r\n\t\t\ttroopSpendage += 3;\r\n\t\t}\r\n\t\tif (Eschilles == 12) {\r\n\t\t\ttroopSpendage += 7;\r\n\t\t}\r\n\r\n\t\t//If a player owns the card and owns the coresponding country on that card they get one extra troop\r\n\t\tfor(Card C: players.get(turnCounter).getCards()) \r\n\t\t\tfor(Country co: players.get(turnCounter).getCountries())\r\n\t\t\t\tif (C.getCountry().equals(co.getName()))\r\n\t\t\t\t\ttroopSpendage++;\t\t\r\n\t\t\r\n\t\t//Updates the display of how many troops the player has to deploy\r\n\t\ttroopsToDeploy.setText(\"Troops to Deploy: \" + troopSpendage);\r\n\t}", "public String clerkReturnVehicle(ReturnsModel model) throws SQLException{\n\t\tString receipt = \"\";\n\t\tint rentalID = model.getRid();\n\t\ttry{\n\t\t\tStatement stmt = connection.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT COUNT(*) FROM rentals WHERE rid = \" + rentalID);\n\t\t\tif (rs == null) {\n\t\t\t\tthrow new SQLException();\n\t\t\t}\n\n\t\t\tPreparedStatement ps = connection.prepareStatement(\"INSERT INTO rentals VALUES (?,?,?,?,?,?)\");\n\n\t\t\t//VERY NOT SURE WHICH ONES ARE AVAIBLE ATM ESPECIALLY ODOMETER\n\t\t\tps.setInt(1,model.getRid());\n\t\t\tps.setDate(2, model.getDate());\n\t\t\tps.setTime(3, model.getTime());\n\t\t\tps.setInt(4, model.getOdometer());\n\t\t\tps.setInt(5, model.getFulltank());\n\t\t\tps.setFloat(6, model.getValue());\n\n\t\t\tps.executeUpdate();\n\n\t\t\t/*TODO Maybe do a delete somewhere\n\t\t\t *\n\t\t\t *\n\t\t\t *\n\t\t\t */\n\t\t\tconnection.commit();\n\n\t\t\tps.close();\n\n\t\t\t//builds receipt string\n\t\t\treceipt = receipt + \"Confirmation Number: \" + \"\"//TODO\n\t\t\t\t\t+ \"\\nDate returned: \" + java.time.LocalDateTime.now()\n\t\t\t\t\t+ \"\\nAt: \" + \"/TODO some kind of location????\" //TODO\n\t\t\t\t\t+ \"\\nTotal Cost: \" + model.getValue();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(EXCEPTION_TAG + \" \" + e.getMessage());\n\t\t\trollbackConnection();\n\t\t}\n\n\t\treturn receipt;\n\t}", "public static void main(String[] args) {\n double strike = 1060.00;\n double price = 978.70;\n double timeToExp = (17.00/365.00);\n //double timeToExp = .383562;\n double stDev = 0.3172;\n double interest = 0.073521;\n char call = 'c';\n Boolean callOption = true;\n\n BlackScholes_abbreviated bsShort = new BlackScholes_abbreviated();\n Double price1 = bsShort.blackScholesCall(price, strike, stDev, timeToExp, interest);\n\n System.out.println(\" price3 = [\" + price1.toString() + \"]\");\n\n OptionDetails od = new OptionDetails(true,price,strike,interest,timeToExp,stDev);\n OptionGreeks og = BlackScholesGreeks.calculate(od);\n\n System.out.println(od.toString());\n System.out.println(og.toString());\n// System.out.println(\"Delta: \" + og.delta + \"Gamma: \" + og.gamma);\n//\n//\n// Black_76 bs76 = new Black_76();\n// Double price2 = bs76.Black76(call, price, strike, timeToExp, interest, stDev);\n// System.out.println(\" price2 = [\" + price2.toString() + \"]\");\n//\n// BlackScholesFormula bsFormula = new BlackScholesFormula();\n// Double price3 = bsFormula.calculate(callOption, price, strike, interest, timeToExp, stDev);\n// System.out.println(\" price3 = [\" + price3.toString() + \"]\");\n//\n// System.out.println();\n//\n// // TEST DATA -- trade 104335\n// strike = 18.25;\n// price = 13.10;\n// //timeToExp = 2.13035;\n// timeToExp = 2.134247;\n// stDev = 0.21;\n// interest = 0.002541;\n// call = 'c';\n// callOption = true;\n//\n// price1 = bsShort.blackScholesCall(price, strike, stDev, timeToExp, interest);\n// System.out.println(\" price1 = [\" + price1.toString() + \"]\");\n//\n// price2 = bs76.Black76(call, price, strike, timeToExp, interest, stDev);\n// System.out.println(\" price2 = [\" + price2.toString() + \"]\");\n//\n// price3 = bsFormula.calculate(callOption, price, strike, interest, timeToExp, stDev);\n// System.out.println(\" price3 = [\" + price3.toString() + \"]\");\n }", "public static void main(String[] args) {\n\t\tMealBuilder mealBuilder = new MealBuilder();\r\n\r\n\t\tMeal vegMeal = mealBuilder.prepareVegMeal();\r\n\t\tSystem.out.println(\"Veg Meal\");\r\n\t\tvegMeal.showItems();\r\n\t\tSystem.out.println(\"Total Cost: \" + vegMeal.getCost());\r\n\r\n\t\tMeal nonVegMeal = mealBuilder.prepareNonVegMeal();\r\n\t\tSystem.out.println(\"\\n\\nNon-Veg Meal\");\r\n\t\tnonVegMeal.showItems();\r\n\t\tSystem.out.println(\"Total Cost: \" + nonVegMeal.getCost());\r\n\r\n\t\tOrderBuilder orderBuilder = new OrderBuilder();\r\n\t\torderBuilder.burger(new VegBurger(), 1);\r\n\t\torderBuilder.burger(new ChickenBurger(), 2);\r\n\t\torderBuilder.suit(mealBuilder.prepareVegMeal(), 1);\r\n\t\torderBuilder.suit(mealBuilder.prepareNonVegMeal(), 2);\r\n\t\tOrder order = orderBuilder.build();\r\n\r\n\t\tSystem.out.println(\"\\n\\nMeal--µã²Í£¨µ¥µã¡¢Ìײͣ©\");\r\n\t\tfloat cost = 0.0f, cost1 = 0.0f, cost2 = 0.0f;\r\n\t\tMeal meal = new Meal();\r\n\t\tfor (Item item : order.getBurger()) {\r\n\t\t\tmeal.addItem(item);\r\n\t\t}\r\n\t\tmeal.showItems();\r\n\t\tcost1 = meal.getCost();\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tSystem.out.println(\"Burger subtotal Cost: \" + cost1);\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tfor (Meal meal1 : order.getSuit()) {\r\n\t\t\tmeal1.showItems();\r\n\t\t\tcost2 += meal1.getCost();\r\n\t\t}\r\n\t\tcost = cost1 + cost2;\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tSystem.out.println(\"Meal subtotal Cost: \" + cost2);\r\n\t\tSystem.out.println(\"====================================\");\r\n\t\tSystem.out.println(\"Total Cost: \" + cost);\r\n\t}", "@Override\n public boolean checkBuilding(Integer recherche, Integer money) {\n if (money <= Constantes.IMPROVE_HOUSE){\n System.out.println(\"Vous n'avez pas les fonds suffisants pour acheter une nouvelle maison.\");\n return false;\n }\n else {\n return true;\n }\n }", "public void lastChanceGas()\n {\n System.out.print( \"Tank capacity: \" );\n int capacity = scan.nextInt();\n System.out.print( \"Gage reading: \" );\n int gage = scan.nextInt();\n System.out.print( \"Miles per gallon: \" );\n int mpg = scan.nextInt();\n double gasLeft = capacity * ( gage * 0.01 );\n double milesDriveable = gasLeft * mpg;\n if ( milesDriveable >= 200 )\n {\n System.out.println( \"Safe to Proceed!\" );\n }\n else\n {\n System.out.println( \"Get Gas!\" );\n }\n\n }", "public void ventaBilleteMaquina1()\n {\n maquina1.insertMoney(500);\n maquina1.printTicket();\n }", "public double getDiscount();", "@Test\n public void notSell() {\n Game game = Game.getInstance();\n Player player = new Player(\"ED\", 4, 4, 4,\n 4, SolarSystems.GHAVI);\n game.setPlayer(player);\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(2, Goods.Water));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Food));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(0, Goods.Furs));\n CargoItem good = game.getPlayer().getShip().getShipCargo().get(2);\n \n int oldCredits = game.getPlayer().getCredits();\n good.getGood().sell(good.getGood(), 1);\n \n CargoItem water = game.getPlayer().getShip().getShipCargo().get(0);\n CargoItem food = game.getPlayer().getShip().getShipCargo().get(1);\n water.setQuantity(2);\n food.setQuantity(1);\n good.setQuantity(0);\n //int P = good.getGood().getPrice(1);\n int curr = game.getPlayer().getCredits();\n //boolean qn = water.getQuantity() == 2 && food.getQuantity() == 1 && good.getQuantity() == 0;\n boolean check = water.getQuantity() == 2;\n System.out.print(curr);\n assertEquals(curr, oldCredits);\n }", "public static void calcCoffee(int guests) {\r\n double coffeAmount;\r\n coffeAmount = ((double) guests * 2) / 32;\r\n System.out.println(\"For \" + guests + \" guests you will need \" + (guests * 32)\r\n + \" cups and \" + coffeAmount + \" pounds of coffee\");\r\n }", "int getIndividualDefense();", "public static Character newPlayer(int nbPlayer) {\n\n\n\n int characterClass, level, strength, agility, intelligence, health;\n System.out.println(\"Création du personnage du Joueur \" + nbPlayer);\n characterClass = Character.askAction(\"Veuillez choisir la classe de votre personnage (1 : Guerrier, 2 : Rôdeur, 3 : Mage)\", 1, 3);\n\n do {\n level = Character.askAction(\"Niveau du personnage ?\", 1, 100);\n health = 5 * level;\n System.out.println(\"Votre personnage possède \" + health + \" points de vie\");\n System.out.println(\"Il vous reste \" + level + \" point(s) restant à allouer aux caractéristiques de votre personnage\");\n strength = Character.askAction(\"Force du personnage ?\", 0);\n\n while (level <= 0 || level > 100){\n System.out.println(\"Recommencez : Votre choix n'est pas bon!\");\n level = Character.askAction(\"Niveau du personnage ?\", 0);\n }\n while (strength < 0 || strength > level) {\n System.out.println(\"Recommencez : Votre choix n'est pas bon!\");\n strength = Character.askAction(\"Force du personnage ?\", 0);\n }\n\n int levelMinusStrength = level - strength;\n System.out.println(\"Il vous reste \" + levelMinusStrength + \" point(s) restant à allouer aux caractéristiques de votre personnage\");\n agility = Character.askAction(\"Agilité du personnage ?\", 0);\n while (agility <0 || agility > level - strength) {\n System.out.println(\"Recommencez : Votre choix n'est pas bon!\");\n strength = Character.askAction(\"Agilité du personnage ?\", 0);\n }\n\n\n\n int levelMinusStrengthMinusAgility = level - strength - agility;\n System.out.println(\"Il vous reste \" + levelMinusStrengthMinusAgility + \" point(s) restant à allouer aux caractéristiques de votre personnage\");\n intelligence = Character.askAction(\"Intelligence du personnage ?\", 0);\n while (intelligence <0 || intelligence > level - strength - agility) {\n System.out.println(\"Recommencez : Votre choix n'est pas bon!\");\n strength = Character.askAction(\"Intelligence du personnage ?\", 0);\n }\n\n\n if (strength + agility + intelligence != level) {\n System.out.println(\"Attention le total 'force + agilité + intelligence' doit être égal au niveau du joueur !\");\n }\n }while (strength + agility + intelligence != level);\n\n Character player;\n switch (characterClass) {\n case 1:\n player = new Warrior(nbPlayer, strength, agility, intelligence);\n break;\n case 2:\n player = new Prowler(nbPlayer, strength, agility, intelligence);\n break;\n default:\n player = new Wizard(nbPlayer, strength, agility, intelligence);\n break;\n }\n return player;\n }", "private static double getBonus(double unitsMade,double workAmount) {\n\n if (workAmount == 1) {\n\n if (unitsMade > 250) {\n\n return unitsMade * 0.10;\n }\n return 0;\n }\n else if (workAmount == 2) {\n\n if (unitsMade > 700) {\n\n return unitsMade * 0.10;\n }\n return 0;\n }\n\n return 0;\n }", "public double cost()\n\t{\n\t\t//initiates the price variable\n\t\tdouble price = 0;\n\t\t\n\t\t//if the customer is aged between 18 and 64 years and is not a student\n\t\tif (this.age >= 18 && this.age <= 64 && !this.isStudent)\n\t\t{\n\t\t\t//the price is $10\n\t\t\tprice = 10;\n\t\t}\n\t\t\n\t\t//if not, but it has less than 18 years\n\t\telse if (this.age < 18)\n\t\t{\n\t\t\t//the price is 7\n\t\t\tprice = 7;\n\t\t}\n\t\t\n\t\t//why between 10 and 25 if people aged less than 18 pay 7 dollars?\n\t\t//it would not make sense someone aged 17 and is not a student pay $7\n\t\t//if someone aged 17 and is a student pay $8.50\n\t\t\n\t\t//if not, but the age is bigger than 10 and less than 25 and is a student\n\t\telse if (this.age >= 10 && this.age <= 25 && this.isStudent)\n\t\t{\n\t\t\t//give 15% of discount\n\t\t\tprice = 0.85f * 10;\n\t\t}\n\t\t\n\t\t//if not, but the age is bigger than 25 and is a students\n\t\telse if (this.age > 25 && this.isStudent)\n\t\t{\n\t\t\t//give 10% of discount\n\t\t\tprice = 0.90f * 10;\n\t\t}\n\t\t\n\t\t//if not, but the age is bigger than 64 and is not a student\n\t\telse if (this.age > 64 && !this.isStudent)\n\t\t{\n\t\t\t//give 7% of discount\n\t\t\tprice = 0.93f * 10;\n\t\t}\n //returns the price \n\t\treturn price;\n\t}", "private String buildEnergy() {\r\n List<Integer> emptyCellsPos0 = new ArrayList<Integer>();\r\n List<Integer> emptyCellsPos1 = new ArrayList<Integer>();\r\n for(int i = 0; i < gameHeight; i++) {\r\n if (myLaneInfo.get(i).get(4).isEmpty()) {\r\n if (myLaneInfo.get(i).get(3).contains(0)) {\r\n emptyCellsPos0.add(i);\r\n }\r\n if (myLaneInfo.get(i).get(3).contains(1)) {\r\n emptyCellsPos1.add(i);\r\n }\r\n }\r\n }\r\n if (!emptyCellsPos0.isEmpty()) {\r\n return ENERGY.buildCommand(0,getRandomElementOfList(emptyCellsPos0));\r\n } else if (!emptyCellsPos1.isEmpty()) {\r\n return ENERGY.buildCommand(1,getRandomElementOfList(emptyCellsPos1));\r\n } else if (canBuy(ATTACK)) {\r\n return buildTurret();\r\n } else {\r\n return doNothingCommand();\r\n }\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\t\n\t\t{\n\t\t\t\n\t\t\tSystem.out.print(\"Enter the amount of oil ordered, in gallons: \"); //output to ask user test oil\n\t\t\tdouble oil = in.nextDouble(); //program waits and asks user for input\n\t\t\n\n\t\t\n\t\tif (oil >= 100) //if statement for oil greater than equal to 100\n\t\t{\n\t\t\tint discount = 1; //Displays prompt if user enters a value 100 or greater\n\t\t\tdouble pricePerGallon = 325.00;\n\t\t\tdouble pricePerGallon2 = 3.25;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 200) //if statement for oil greater than or equal to 200\n\t\t{\n\t\t int discount2 = 2; //Displays prompt if user enters a value of 200 or greater\n\t\t\tdouble pricePerGallon = 650.00;\n\t\t\tdouble pricePerGallon2 = 6.50;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount2 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 300) //if statement for oil greater than or equal to 300\n\t\t{\n\t\t\tint discount3 = 3; //Displays prompt if user enters a value 300 or greater\n\t\t\tdouble pricePerGallon = 975.00;\n\t\t\tdouble pricePerGallon2 = 9.75;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount3 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 400) //if statement for oil greater than or equal to 400\n\t\t{\n\t\t\tint discount4 = 4; //Displays prompt if user enters a value 400 or greater\n\t\t\tdouble pricePerGallon = 1300.00;\n\t\t\tdouble pricePerGallon2 = 13;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount4 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse if (oil >= 500) //if statement for oil greater than or equal to 500\n\t\t{\n\t\t\tint discount5 = 5; //Displays prompt if user enters a value 500 or greater\n\t\t\tdouble pricePerGallon = 1625.00;\n\t\t\tdouble pricePerGallon2 = 16.25;\n\t\t\tSystem.out.println(\"Number of gallons ordered: \" + oil + \" - $\" + pricePerGallon);\n\t\t\tSystem.out.println(\"Discount: \" + discount5 + \"% - $\" + pricePerGallon2);\n\t\t\tdouble total = pricePerGallon - pricePerGallon2;\n\t\t\tSystem.out.println(\"Your total charge is: $\" + total);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.print(\"Have a great day\"); //Displays message if the input of oil is less than 100 \n\t\t}\n\t\t\n\t\t}\n\t\t}", "private void makeBag(final HashMap<Integer, Integer> legalGoods,\n final HashMap<Integer, Integer> illegalGoods) {\n if (!legalGoods.isEmpty()) {\n this.putLegalGoods(legalGoods);\n } else {\n this.putIllegalGood(illegalGoods);\n this.setDeclaredGood(0);\n }\n }", "public void calculateKnockback(Entity ent, ArrayList<WeaponEffect> effects) {\n }", "private final void d(com.iqoption.core.microservices.billing.response.deposit.d r21) {\n /*\n r20 = this;\n r0 = r20;\n r1 = r20.asp();\n r1 = r1.cCg;\n r2 = \"binding.depositAmountEdit\";\n kotlin.jvm.internal.i.e(r1, r2);\n if (r21 == 0) goto L_0x0158;\n L_0x000f:\n r2 = r0.cFG;\n r3 = 1;\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r2 = r1.getText();\n r2 = r2.toString();\n r4 = r0.cFG;\n r2 = kotlin.jvm.internal.i.y(r2, r4);\n r2 = r2 ^ r3;\n if (r2 == 0) goto L_0x0027;\n L_0x0025:\n goto L_0x0158;\n L_0x0027:\n r2 = r20.ass();\n r4 = 0;\n if (r2 == 0) goto L_0x0068;\n L_0x002e:\n r2 = (java.lang.Iterable) r2;\n r2 = r2.iterator();\n L_0x0034:\n r5 = r2.hasNext();\n if (r5 == 0) goto L_0x0050;\n L_0x003a:\n r5 = r2.next();\n r6 = r5;\n r6 = (com.iqoption.core.features.c.a) r6;\n r6 = r6.getName();\n r7 = r21.getName();\n r6 = kotlin.jvm.internal.i.y(r6, r7);\n if (r6 == 0) goto L_0x0034;\n L_0x004f:\n goto L_0x0051;\n L_0x0050:\n r5 = r4;\n L_0x0051:\n r5 = (com.iqoption.core.features.c.a) r5;\n if (r5 == 0) goto L_0x0068;\n L_0x0055:\n r6 = r5.Xy();\n if (r6 == 0) goto L_0x0068;\n L_0x005b:\n r7 = 0;\n r8 = 0;\n r9 = 1;\n r10 = 0;\n r11 = 0;\n r12 = 19;\n r13 = 0;\n r2 = com.iqoption.core.util.e.a(r6, r7, r8, r9, r10, r11, r12, r13);\n goto L_0x0069;\n L_0x0068:\n r2 = r4;\n L_0x0069:\n r5 = r0.ayL;\n if (r5 == 0) goto L_0x0084;\n L_0x006d:\n r5 = r5.Km();\n if (r5 == 0) goto L_0x0084;\n L_0x0073:\n r5 = r5.aar();\n if (r5 == 0) goto L_0x0084;\n L_0x0079:\n r6 = r21.getName();\n r5 = r5.get(r6);\n r5 = (java.util.ArrayList) r5;\n goto L_0x0085;\n L_0x0084:\n r5 = r4;\n L_0x0085:\n if (r2 != 0) goto L_0x00a5;\n L_0x0087:\n if (r5 == 0) goto L_0x00a5;\n L_0x0089:\n r2 = r20.asr();\n r2 = r2.getItems();\n r2 = kotlin.collections.u.bV(r2);\n r2 = (com.iqoption.deposit.light.d.b) r2;\n if (r2 == 0) goto L_0x00a4;\n L_0x0099:\n r2 = r2.asL();\n if (r2 == 0) goto L_0x00a4;\n L_0x009f:\n r2 = com.iqoption.deposit.f.a(r2);\n goto L_0x00a5;\n L_0x00a4:\n r2 = r4;\n L_0x00a5:\n r6 = r0.cxs;\n r7 = r0.cFE;\n r8 = r4;\n r8 = (java.lang.Double) r8;\n if (r2 != 0) goto L_0x00f4;\n L_0x00ae:\n r9 = r6 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n if (r9 == 0) goto L_0x00f4;\n L_0x00b2:\n if (r7 == 0) goto L_0x00f4;\n L_0x00b4:\n r6 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r6;\n r6 = r6.aaI();\n if (r6 == 0) goto L_0x00cd;\n L_0x00bc:\n r7 = r7.getName();\n r6 = r6.get(r7);\n r6 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d.b) r6;\n if (r6 == 0) goto L_0x00cd;\n L_0x00c8:\n r6 = r6.OL();\n goto L_0x00ce;\n L_0x00cd:\n r6 = r4;\n L_0x00ce:\n if (r6 == 0) goto L_0x00f5;\n L_0x00d0:\n r7 = r0.f(r6);\n if (r7 != 0) goto L_0x00f5;\n L_0x00d6:\n r8 = r6.doubleValue();\n r10 = 0;\n r11 = 0;\n r12 = 1;\n r13 = 0;\n r14 = 0;\n r15 = 0;\n r16 = 0;\n r2 = java.util.Locale.US;\n r7 = \"Locale.US\";\n kotlin.jvm.internal.i.e(r2, r7);\n r18 = 115; // 0x73 float:1.61E-43 double:5.7E-322;\n r19 = 0;\n r17 = r2;\n r2 = com.iqoption.core.util.e.a(r8, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19);\n goto L_0x00f5;\n L_0x00f4:\n r6 = r8;\n L_0x00f5:\n if (r2 == 0) goto L_0x00f8;\n L_0x00f7:\n goto L_0x00fa;\n L_0x00f8:\n r2 = \"\";\n L_0x00fa:\n r0.cFG = r2;\n r2 = (java.lang.CharSequence) r2;\n r1.setText(r2);\n r1 = r2.length();\n r2 = 0;\n if (r1 != 0) goto L_0x010a;\n L_0x0108:\n r1 = 1;\n goto L_0x010b;\n L_0x010a:\n r1 = 0;\n L_0x010b:\n if (r1 == 0) goto L_0x0155;\n L_0x010d:\n r1 = r0.cxs;\n r7 = r1 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n if (r7 != 0) goto L_0x0114;\n L_0x0113:\n r1 = r4;\n L_0x0114:\n r1 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r1;\n if (r1 == 0) goto L_0x011e;\n L_0x0118:\n r1 = r1.aaE();\n if (r1 == r3) goto L_0x0155;\n L_0x011e:\n if (r6 == 0) goto L_0x0122;\n L_0x0120:\n r1 = r6;\n goto L_0x0138;\n L_0x0122:\n if (r5 == 0) goto L_0x0137;\n L_0x0124:\n r5 = (java.util.List) r5;\n r1 = kotlin.collections.u.bV(r5);\n r1 = (com.iqoption.core.microservices.billing.response.deposit.e) r1;\n if (r1 == 0) goto L_0x0137;\n L_0x012e:\n r5 = r1.ZC();\n r1 = java.lang.Double.valueOf(r5);\n goto L_0x0138;\n L_0x0137:\n r1 = r4;\n L_0x0138:\n if (r1 == 0) goto L_0x013b;\n L_0x013a:\n goto L_0x0141;\n L_0x013b:\n r5 = 0;\n r1 = java.lang.Double.valueOf(r5);\n L_0x0141:\n r1 = r0.f(r1);\n if (r1 == 0) goto L_0x014b;\n L_0x0147:\n r4 = r1.getErrorMessage();\n L_0x014b:\n if (r1 == 0) goto L_0x0151;\n L_0x014d:\n r2 = r1.aso();\n L_0x0151:\n r0.u(r4, r2);\n goto L_0x0158;\n L_0x0155:\n r0.u(r4, r2);\n L_0x0158:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.d(com.iqoption.core.microservices.billing.response.deposit.d):void\");\n }", "int getMoney();", "public static void main(String[] args) {\n Addition onion = new Addition(\"Onion\", 1.5);\n Addition potato = new Addition(\"Potato\", 1.5);\n Addition lettuce = new Addition(\"Lettuce\", 0.5);\n Addition ketchup = new Addition(\"Ketchup\", 0.5);\n Addition chips = new Addition(\"Ketchup\", 1.5);\n Addition drink = new Addition(\"Ketchup\", 1.5);\n\n System.out.println(\"---------------Basic------------------\");\n Basic basic = new Basic(\"Basic\", \"Sesame\", \"Beaf\", 12.00,\n onion, potato, lettuce);\n System.out.println(basic.getName() + \" with \" + basic.getBreadRoll() + \" - Total \" + basic.getTotalPrice() + \"\\n\" +\n \" Base Price \" + basic.getBasePrice() + \"$\\n\" + basic.getAdditions() + \"Additions Total \" +\n basic.getAdditionsPrice());\n\n System.out.println(\"---------------Deluxe------------------\");\n Deluxe deluxe = new Deluxe(\"Deluxe\", \"Sumac\", \"Fish\", 8.5);\n System.out.println(deluxe.getName() + \" with \" + deluxe.getBreadRoll() + \"- Total \" + deluxe.getTotalPrice() + \"\\n\" +\n \" Base Price \" + deluxe.getBasePrice() + \"$\\n\" + deluxe.getAdditions()+ \"Additions Total \" +\n deluxe.getAdditionsPrice());\n\n System.out.println(\"---------------Healthy------------------\");\n Healthy healthy = new Healthy(\"Healthy\", \"Chicken\", 10.0, lettuce, onion);\n System.out.println(healthy.getName() + \" with \" + healthy.getBreadRoll() + \"- Total \" + healthy.getTotalPrice() + \"\\n\" +\n \" Base Price \" + healthy.getBasePrice() + \"$\\n\" + healthy.getAdditions()+ \"Additions Total \" +\n healthy.getAdditionsPrice());\n }", "public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }", "public void calculateBonuses(){\n\n\n }", "private String money() {\r\n\t\tint[] m =tile.getAgentMoney();\r\n\t\tString out =\"Agent Money: \\n\";\r\n\t\tint total=0;\r\n\t\tint square=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]+\"\"));\r\n\t\t\t\t\ttotal=total+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Agent Total: \"+total);\r\n\t\tint companyTotal=0;\r\n\t\tout=out.concat(\"\\n\\nCompany Money: \\n\");\r\n\t\tm=tile.getCompanyMoney();\r\n\t\tsquare=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]));\r\n\t\t\t\t\tcompanyTotal=companyTotal+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Company Total: \"+companyTotal);\r\n\t\tout=out.concat(\"\\nTotal total: \"+(total+companyTotal));\r\n\t\tif(total+companyTotal!=tile.getPeopleSize()*tile.getAverageMoney()) {\r\n\t\t\tSTART=false;\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "@Override\n public int howManyCoins() {\n return 7;\n }", "public static void bullyAttack(){\n int punch = player.getHealth() - bullyHitPoints ;\n player.setHealth(punch);\n //Step 2: Conditional dialogue\n if(bullyHitPoints > 50) {\n System.out.println(textparser.getMassiveDamage() + bullyHitPoints + textparser.getToYou());\n }else if(bullyHitPoints > 25){\n System.out.println(textparser.getPunch() + bullyHitPoints + textparser.getToYou());\n }else{\n System.out.println(textparser.getDidntHurtMuch() + bullyHitPoints + textparser.getToYou());\n }\n }" ]
[ "0.56290996", "0.56135327", "0.5549759", "0.5527802", "0.5500315", "0.5497727", "0.54728574", "0.54592055", "0.54582345", "0.54574305", "0.5454178", "0.5446401", "0.5383133", "0.5381383", "0.5365513", "0.5358021", "0.53519654", "0.5323904", "0.53193814", "0.529683", "0.5278408", "0.52541417", "0.5248197", "0.52473986", "0.52424306", "0.52366626", "0.52311146", "0.5221385", "0.52029765", "0.52015775", "0.5199224", "0.51976943", "0.51946104", "0.5193189", "0.5193189", "0.5193189", "0.5193189", "0.5193189", "0.5193189", "0.51930904", "0.51911163", "0.5190547", "0.51869947", "0.5178588", "0.5178345", "0.5158606", "0.51407033", "0.51394755", "0.51386976", "0.513086", "0.5129298", "0.5118955", "0.51149094", "0.5113511", "0.5107872", "0.5103646", "0.5102071", "0.5101315", "0.50972426", "0.5096041", "0.50950205", "0.50896233", "0.508747", "0.5086623", "0.5085178", "0.50844014", "0.50764525", "0.5073809", "0.5067998", "0.50667167", "0.50614095", "0.5061016", "0.50604343", "0.5057534", "0.5053539", "0.5050686", "0.5049423", "0.50365454", "0.50349724", "0.5031557", "0.50307935", "0.5030274", "0.5028501", "0.5026542", "0.5025445", "0.5024144", "0.50171685", "0.50118554", "0.50081724", "0.50074583", "0.500127", "0.4999884", "0.49951988", "0.49943253", "0.49856108", "0.49793744", "0.49785617", "0.49772346", "0.4976505", "0.49685654" ]
0.5371277
14
Reset button event > return all values to their defaults...
public void onSelectedFromReset() { filterName = null; filterState = null; filterVariant = null; filterAcquisition = null; filterLiquidation = null; filterLocation = null; filterComment = null; ledger.reset(); // ... then just fall through to the success action. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void btnResetActionPerformed(java.awt.event.ActionEvent evt) {\n reset(); \n }", "@FXML\n\tprivate void onResetBtn() {\n\t\truleBox.setValue(\"Standard\");\n\t\twallBox.setValue(10);\n\t\tboardBox.setValue(\"9x9\");\n\t\ttileBox.setValue(50);\n\t\tindicateLabel.setSelected(true);\n\t\t//ghostTrail.setSelected(false);\n\t\tSettings.getSingleton().reset();\n\t}", "private void resetBtn1ActionPerformed(java.awt.event.ActionEvent evt) {\n resetBtnActionPerformed();\n }", "private void initializeResetButton()\r\n {\r\n resetButton = new JButton(\"RESET\");\r\n resetButton.addActionListener(new ActionListener()\r\n {\r\n @Override\r\n public void actionPerformed(ActionEvent e)\r\n {\r\n numMoves = 0;\r\n // implementation of multi-problem choices\r\n ProblemChooser pc = null;\r\n if (problem.isMultiProblem())\r\n {\r\n if (problem.hasCanvas())\r\n {\r\n pc = new ProblemChooser(problem.getInitialStatesList(),\r\n problem.getFinalStatesList(),\r\n problem.getMoveCounts(),\r\n problem.getInitialCanvasList(),\r\n problem.getFinalCanvasList()\r\n );\r\n } else\r\n {\r\n pc = new ProblemChooser(problem.getInitialStatesList(),\r\n problem.getFinalStatesList(), problem.getMoveCounts());\r\n }\r\n\r\n initialState = pc.getStart();\r\n }\r\n problem.setCurrentState(initialState);\r\n if (pc != null) {\r\n problem.setFinalState(pc.getFinal());}\r\n problemState.setText(initialState.toString());\r\n if (canvas != null)\r\n {\r\n canvas.setCurrentState(initialState);\r\n if (problem.isMultiProblem() && pc != null)\r\n {\r\n finalStateCanvas.setCurrentState(pc.getFinal());\r\n } else\r\n {\r\n finalStateCanvas.setCurrentState(problem.getFinalState());\r\n }\r\n canvas.render();\r\n finalStateCanvas.render();\r\n }\r\n problem.resetCounters();\r\n setStats();\r\n toggleButtons(true);\r\n }\r\n });\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == resetButton)\n reset();\n }", "private void onClickReset(ActionEvent e) {\n\n }", "public void resetButton()\n {\n for(int row = 0; row<TicTacToe.SIDE; row++)\n for(int col= 0; col<TicTacToe.SIDE;col++)\n buttons[row][col].setText(\"\");\n }", "private void resetButtonActionPerformed(java.awt.event.ActionEvent evt) {\r\n\t\t\tinitializeGrid(false);\r\n\t\t}", "private void resetButtonPress(ActionEvent event){\n initLevel();\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n adaptee.btnReset_actionPerformed(e);\r\n\t}", "private void jbtn_resetActionPerformed(ActionEvent evt) {\n\t\t\t\ttxtblank();\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent ae){\n\t\treset();\n\t}", "public void reset()\n {\n Action = new boolean[Environment.numberOfButtons];\n }", "@Override\n\tpublic void reset(){\n\t\tstate.reset();\n\t\toldState.reset();\n\t\treturnAction = new boolean[Environment.numberOfButtons]; \n\t\trewardSoFar = 0;\n\t\tcurrentReward = 0;\n\t}", "public void reset(){\r\n\t\tdialogToDisplay=0;\r\n\t\tqueuedDialog=0;\r\n\t\toptionSelection=null;\r\n\t\tdone=false;\r\n\t}", "public void reset() {\nsuper.reset();\nsetIncrease_( \"no\" );\nsetSwap_( \"tbr\" );\nsetMultrees_( \"no\" );\nsetRatchetreps_(\"200\");\nsetRatchetprop_(\"0.2\");\nsetRatchetseed_(\"0\");\n}", "protected void reset()\n\t{\n\t\tretcode = JOptionPane.CANCEL_OPTION;\n\t\tfiles = null;\n\t\taliases = null;\n\t\tjPathPanel.setText(\"\");\n\t\trpFilesTextArea.setText(\"\");\n\t\tsupTextField.setText(\"\");\n\t\tconfTextField.setText(\"\");\n\t}", "private void resetGame() {\n game.resetScores();\n this.dialogFlag = false;\n rollButton.setDisable(false);\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n setDefault(\"player\");\n setDefault(\"computer\");\n }", "public void resetButtons() {\n\t\t group.clearSelection();\n\t }", "protected void resetValue(ActionEvent e) {\n\t\toldPasswordTextField.setText(\"\");\r\n\t\tnewPasswordTextField.setText(\"\");\r\n\t\tconfirmPasswordTextField.setText(\"\");\r\n\t}", "@Override\r\n\tpublic void resetObjectListener(ActionEvent e) {\n\t\t\r\n\t}", "public void onResetClicked(View view) {\n // Hide the soft keyboard if it is present\n InputMethodManager m = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n m.hideSoftInputFromWindow(mBind.formContainer.getWindowToken(), 0);\n // Remove focus from all text fields by setting focus to the enclosing layout. This is to\n // prevent automatic scrolling to the focused text field.\n mBind.formContainer.requestFocus();\n // Load default values into text fields\n loadDefaultValues();\n // Scroll to top\n mBind.scrollView.smoothScrollTo(0, 0);\n // Remove invalid input error icon from the fields in which it was set\n for (Map.Entry<EditText, Validator> e : mValidators.entrySet()) {\n if (e.getKey().getError() != null) e.getKey().setError(null);\n }\n showToast(R.string.toast_reset_defaults);\n }", "public void reset()\n {\n m_fCorrectEvent = false;\n }", "public void resetBoardOnRestartClick()//when restart game\n {\n JOptionPane.showMessageDialog(view.getParent(),\"PLAYER \"+playerSymbol+\" HAS REQUESTED GAME RESET\");\n currentPlayer=1;\n playerSymbol=\"O\";\n JButton[][] board=view.getGameBoard();\n for(int i=0;i<dim;i++)\n {\n for(int j=0;j<dim;j++)\n {\n board[i][j].setText(\"\");\n }\n }\n }", "public void reset() {\r\n\r\n b1.setText(\"\");\r\n b1.setEnabled(true);\r\n\r\n b2.setText(\"\");\r\n b2.setEnabled(true);\r\n\r\n b3.setText(\"\");\r\n b3.setEnabled(true);\r\n\r\n b4.setText(\"\");\r\n b4.setEnabled(true);\r\n\r\n b5.setText(\"\");\r\n b5.setEnabled(true);\r\n\r\n b6.setText(\"\");\r\n b6.setEnabled(true);\r\n\r\n b7.setText(\"\");\r\n b7.setEnabled(true);\r\n\r\n b8.setText(\"\");\r\n b8.setEnabled(true);\r\n\r\n b9.setText(\"\");\r\n b9.setEnabled(true);\r\n\r\n win = false;\r\n count = 0;\r\n }", "protected void actionPerformedReset ()\n {\n try\n {\n OpenMarkovPreferences.setDefaultPreferences ();\n this.jTableEdition.repaint ();\n this.jTreePreferences.repaint ();\n this.repaint ();\n }\n catch (Exception ex)\n {\n // ExceptionsHandler.handleException(\n // ex, \"Error reseting Preferences\", false );\n logger.error (\"Error reseting Preferences\");\n }\n }", "public void resetState() {\n events.clear();\n justPressedKeys.clear();\n justReleasedKeys.clear();\n\n setAxisValue(InputAxis.MOUSE_X, 0);\n setAxisValue(InputAxis.MOUSE_Y, 0);\n setAxisValue(InputAxis.MOUSE_WHEEL_Y, 0);\n }", "public void reset() {\n\t\t// set any default values\n\t\t// setDefaultController() ???\n\t}", "private JButton createResetButton() {\r\n reset = new JButton();\r\n reset.setBounds(110, 260, 100, 25);\r\n\r\n add(new SComponent(reset,\r\n new String[] {\"Reset\", \"Reset\"},\r\n new String[] {\"Stellt die Farbeinstellungen \"\r\n + \"wieder her, die beim Öffnen des \"\r\n + \"Fensters ausgewählt waren.\",\r\n \"Reloads the color settings that\"\r\n + \" was used when opening the\"\r\n + \" dialog.\"}));\r\n\r\n reset.addActionListener(new ActionListener() {\r\n\r\n /** Lädt die gesicherten Einstellungen in das Panel\r\n * und zeichnet den Graphen wieder mit den ursprünglichen\r\n * Einstellungen.\r\n *\r\n * @param e ActionEvent\r\n */\r\n public void actionPerformed(final ActionEvent e) {\r\n drawer.setColorSettings(colors);\r\n setColorSelection();\r\n\r\n /*GAModel gam = mainclass.getModel();\r\n if (gam.getGraphComponentState()\r\n == GAModel.COMPONENT_VALID) {\r\n gam.setGraphComponentState(GAModel.COMPONENT_OUTDATED);\r\n }*/\r\n mainclass.repaint();\r\n }\r\n });\r\n\r\n return reset;\r\n }", "public void resetClick() {\n timeline.stop();\n startButton.setText(\"Start\");\n isRunning = false;\n isMovable = false;\n gOL.resetGenCounter();\n generationLabel.setText(Integer.toString(gOL.getGenCounter()));\n board.resetBoard();\n if (board instanceof DynamicBoard) {\n ((DynamicBoard)board).setGridSize(50);\n canvasDrawer.resetCellSize();\n }\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n fileHandler.resetMetaData();\n canvasDrawer.resetOffset(board, canvasArea);\n draw();\n }", "public void reset() {\n price = 0;\n itemNumbers.clear();\n selectedOptions.clear();\n setupGUI();\n }", "public void resetState();", "public void reset() {\n\t\ttfLogradouro.setText(\"\");\n\t\ttfCidade.setText(\"\");\n\t\ttfBairro.setText(\"\");\n\t\ttfEmail.setText(\"\");\n\t\tftfRg.setText(\"\");\n\t\ttfEmitente.setText(\"\");\n\t\tftfCpf.setText(\"\");\n\t\tftfTipo.setText(\"\");\n\t\tdateChooser.setCalendar(null);\n\t\tftfNumero.setText(\"\");\n\t\tftfTelResidencial.setText(\"\");\n\t\tftfCep.setText(\"\");\n\t\tftfTelCelular.setText(\"\");\n\t\tftfDataCadastro.setText(getDataAtual());\n\t\ttfComplemento.setText(\"\");\n\t\ttfEmitente.requestFocus();\n\t\t\n\t}", "public void reset(){\n }", "public void resetValor();", "void onReset()\n {\n }", "public void resetOvladani() {\n this.setEnabled(true);\n gameConnectButton.setEnabled(true);\n gameConnectButton.setText(\"Pripoj ke hre\");\n\n newGameButton.setEnabled(true);\n newGameButton.setText(\"Zaloz hru\");\n\n zalozenaHra = false;\n\n }", "void reset()\n {\n\n }", "private void resetButtonHandler(java.awt.event.MouseEvent evt)//GEN-FIRST:event_resetButtonHandler\n {//GEN-HEADEREND:event_resetButtonHandler\n this.moveTimer.stop();\n this.youWinLabel.setVisible(false);\n this.gameOverLabel.setVisible(false);\n for (int i = 0; i < numFigs; i++)\n {\n figures[i].hide();\n figures[i] = null;\n }\n this.lives = 0;\n this.time = 0;\n this.timeTextField.setText(\"\" + time);\n this.livesTextField.setText(\"\" + lives);\n this.startButton.setVisible(true);\n \n }", "@Override\n public void resetAllValues() {\n }", "public void reset() {\n JRadioButton resetButton = (JRadioButton) getComponent(selected);\n resetButton.setSelected(true);\n }", "public void reset() {\n JRadioButton resetButton = (JRadioButton) getComponent(selected);\n resetButton.setSelected(true);\n }", "@Override\n public void reset()\n {\n state = \"initial state\";\n nbChanges = 0;\n nbResets++;\n }", "public void handleReset(View view) {\n\t\t// TODO: Reset tampilan\n\t\trtReset.setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tinitRandomNumber();\n\t\t\t\tetAngka.setText(\"\");\n\t\t\t}\n\t\t});\n\t}", "void reset() ;", "public void setResetButton(JButton reset) {\n if (resetButton != null) {\n ActionListener[] listeners = resetButton.getActionListeners();\n for (ActionListener lis : listeners) {\n resetButton.removeActionListener(lis);\n }\n }\n resetButton = reset;\n resetButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n resetCommand();\n }\n });\n }", "public void reset()\n\t{\n\t}", "public void reset()\n\t{\n\t}", "private void resetActionPerformed(ActionEvent evt) {\n\t\t//if the reels are nor spinning perform the the action\n\t\tif (!isSpining) {\n\t\t\tint betAm = obj.getBet();\n\t\t\t//reset the bet amount and return the credit amount and update the labels and buttons\n\t\t\tobj.setCredit(obj.getCredit() + betAm);\n\t\t\tobj.setBet(0);\n\t\t\tupdateLabels();\n\t\t\tupdateDisabledButtons();\n\t\t}\n\t\t//restart\n//\t\tobj.setBet(0);\n//\t\tobj.setWin(0);\n//\t\tobj.setLoses(0);\n//\t\tobj.setCredit(10);\n//\t\tdispose();\n//\t\tstart();\n\t}", "Form reset();", "public void resetButtonsMode() {\n host.getMidiOutPort(0).sendMidi(0xB0, 34, 1);\n }", "public void reset () {}", "private void bResetActionPerformed(final ActionEvent evt) {\n\t\tfor (QuestionJPanel panel : panelList) {\n\t\t\tpanel.reset();\n\t\t}\n\t\tinformation.setText(\"\");\n\t}", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset(){\r\n \tdefaultFlag = false;\r\n }", "private void reset() {\n }", "public abstract void onReset();", "public void reset(){\n value = 0;\n }", "public void reset() {\n\n }", "public void reset() {\n\t\tmCycleFlip = false;\n\t\tmRepeated = 0;\n\t\tmMore = true;\n //mOneMoreTime = true;\n \n\t\t// 추가\n\t\tmStarted = mEnded = false;\n\t\tmCanceled = false;\n }", "public void resetParameters() {\n if (!mBeacon.isConnected()) {\n return;\n }\n\n mDownloadButton.setEnabled(false);\n HashMap<String, Object> cmdPara = new HashMap<>(5);\n cmdPara.put(\"msg\", \"reset\");\n mRingButton.setEnabled(false);\n mBeacon.sendCommand(cmdPara, new KBeacon.ActionCallback() {\n @Override\n public void onActionComplete(boolean bConfigSuccess, KBException error) {\n mRingButton.setEnabled(true);\n if (bConfigSuccess)\n {\n //disconnect with device to make sure the new parameters take effect\n mBeacon.disconnect();\n toastShow(\"send reset command to beacon success\");\n }\n else\n {\n toastShow(\"send reset command to beacon error:\" + error.errorCode);\n }\n }\n });\n }", "public void resetButtonAndText() {\n currentText = colorTxtArr[(int) (Math.random() * 5)];\n buttonColor = colorArr[(int) (Math.random() * 5)];\n colorText.setForeground(buttonColor);\n colorText.setText(currentText);\n }", "public void unsetReset() {\n\t\twasReset=false;\n\t}", "public void reset() {\n\n\t}", "public void resetCValue();", "@Override\n\tpublic void reset() {\n\t\tthis.result = 0;\n\t\tthis.operande = \"0\";\n\t\tthis.operateur = \"\";\n\t\tnotifyObserver(String.valueOf(this.result));\n\t}", "private void onClickResetBtn() throws IOException {\n // Send a packet of byte[3,0] to indicate the Client is done playing, and going to quit the game\n client.sendOnly(client.getSocket(), serverPackage, 3, 0);\n isRed = true;\n turnCircle.setFill(Paint.valueOf(\"Red\"));\n turnDisplay.setText(humanTurn);\n winDisplay.setText(\"\");\n // Set all the circle in the Grid's color back to black\n resetGrid();\n\n client.restartClient();\n // Re-enable the Grid\n grid.setDisable(false);\n System.out.println(\"Client has restarted...Initialize new Game\\n\");\n }" ]
[ "0.8004877", "0.7586673", "0.7571915", "0.75347817", "0.7382127", "0.7339216", "0.7286964", "0.7263865", "0.72553736", "0.71298945", "0.7097689", "0.7073543", "0.6990632", "0.69712865", "0.6969914", "0.69080245", "0.6880633", "0.6866683", "0.68612677", "0.6839366", "0.6829283", "0.6810619", "0.6803576", "0.6796866", "0.6773733", "0.6770703", "0.6728116", "0.67238164", "0.67092705", "0.67067385", "0.67057914", "0.66860265", "0.6673417", "0.6665845", "0.66619503", "0.66563857", "0.6648564", "0.66470635", "0.66462153", "0.66443783", "0.66411775", "0.66411775", "0.6623166", "0.6614469", "0.66112936", "0.66110617", "0.6606904", "0.6606904", "0.66012895", "0.660014", "0.6589758", "0.6583496", "0.65797937", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.65708566", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6565571", "0.6564218", "0.65635586", "0.6561782", "0.6557835", "0.65545034", "0.6554323", "0.6530434", "0.6529624", "0.6514005", "0.6507061", "0.65027064", "0.6499928", "0.6489588" ]
0.0
-1
TODO Autogenerated method stub Instantiate a Browser Chrome
public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver","E:\\Installation Stuff\\Exe Files\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("https://www.facebook.com/"); driver.findElement(By.xpath("//*[@id='email']")).sendKeys("Priya"); /* driver.findElement(By.id("u_0_d")).sendKeys("Priya"); driver.findElement(By.name("lastname")).sendKeys("Singh"); driver.findElement(By.className("inputtext _58mg _5dba _2ph-")).sendKeys("1234567890"); driver.findElement(By.linkText("Forgot account?")).click(); driver.navigate().back(); driver.findElement(By.partialLinkText("Forgot")).click(); Thread.sleep(3000); driver.findElement(By.cssSelector("#u_0_a")).click(); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static WebDriver startChrome() {\n\t\treturn new ChromeDriver();\n\t}", "public static WebDriver chrome()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\Chrome\\\\chromedriver.exe\");\r\n\t\tgk = new ChromeDriver();\r\n\t\treturn gk;\r\n\t}", "public WebDriver LaunchChromeBrowserReturnIt() {\n\t\ttry {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\"/TestSuit/lib/chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver(); // Launch chrome\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn driver;\n\n\t}", "@Given(\"^Initialize the browser with Chrome$\")\r\n\tpublic void initialize_the_browser_with_Chrome() throws Throwable {\n\t\tdriver = DriverManager.getDriverInstance(\"chrome\", 20);\r\n\t\tSystem.out.println(\"Launched Chrome\");\r\n\t}", "public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}", "private WebDriver createChromeDriver() {\n\t\tsetDriverPropertyIfRequired(\"webdriver.chrome.driver\", \"chromedriver.exe\");\n\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"disable-plugins\");\n\t\toptions.addArguments(\"disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\n\t\t\n\t\t_driver = new ChromeDriver(options);\n\t\treturn _driver;\n\t}", "public static void openBrowser() {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n // === Google Chrome Browsers === //\n CHOSEN_BROWSER = CHROME;\n driver.manage().window().maximize();\n }", "@Given(\"^the user launch the chrome application$\")\r\n\tpublic void the_user_launch_the_chrome_application() throws Throwable {\n\t\tlaunchBrowser(\"chrome\");\r\n\t\t register= new Para_Registartion_page(driver);\r\n\t}", "public static void setBrowser() {\n\t\t browser=\"Chrome\";\n\t }", "public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}", "@Given(\"^launch an chrome browser$\")\r\n\tpublic void launch_an_chrome_browser() throws Throwable {\n\t sign.url();\r\n\t\t\r\n\t}", "private static WebDriver launchChrome()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\tURL chromeDriverURL = BrowserDriver.class.getResource(\"/drivers/chromedriver.exe\");\n\t\tFile file = new File(chromeDriverURL.getFile()); \n\t\tSystem.setProperty(ChromeDriverService.CHROME_DRIVER_EXE_PROPERTY, file.getAbsolutePath());\n\t\t\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\toptions.addArguments(\"--ignore-certificate-errors\");\n\t\t\n\t\treturn new ChromeDriver(options);\n\t\t}\n\t}", "public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n// driver.get(config.getString(\"URL\"));\n driver.manage().window().maximize();\n }", "public static ChromeDriver intiChrome() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/ChromeServer/chromedriver.exe\");\n\t\t// WebDriver driver = new ChromeDriver();\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t// 设置为 headless 模式 (必须)\n\t\t// chromeOptions.addArguments(\"--headless\");\n\t\t// 设置浏览器窗口打开大小 (非必须)\n\t\t// chromeOptions.addArguments(\"--window-size=1980,1068\");\n\t\tChromeDriver driver = new ChromeDriver(chromeOptions);\n\t\treturn driver;\n\t}", "private WebDriver getDriver() {\n return new ChromeDriver();\n }", "public static WebDriver init_driver_crome(String browser) {\n\t\t\tif(browser.equals(\"chrome\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\software\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Browser is initialised\" +browser);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Browser is not initialised\" +browser);\n\t\t\t}\n\t\t\treturn getDriverChrome();\n\t\t}", "public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }", "@Before\r\n\tpublic void OpenChrome() {\n\t\tconfig = new ConfigReader();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",config.getChromePath());\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\texPages = new ExpediaPages(driver);\r\n\t}", "@Given(\"^Open URL in chrome browser$\")\r\n\tpublic void open_URL_in_chrome_browser() {\n\t nop.Launch(\"chrome\", \"http://automationpractice.com/index.php\");\r\n\t}", "public ChromeDriver build()\n\t{\n\t\ttry\n\t\t{\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\t\tURL url = ClassLoader.getSystemResource( metadata.getBinary() );\n\t\t\tSystem.setProperty( \"webdriver.chrome.driver\", new File( url.toURI() ).getAbsolutePath() );\n\t\t\tChromeOptions co = new ChromeOptions();\n\t\t\t//Map<String, Object> preferences = Maps.newHashMap();\n\t\t\t//preferences.put( \"browser.startup.homepage\", configuration.baseUrl().toString() );\n\t\t\t//preferences.put( \"browser.startup.page\", START_WITH_HOME_PAGE );\n\t\t\t//capabilities.setCapability( ChromeOptions.CAPABILITY, preferences );\n\t\t\tChromeDriver driver = new ChromeDriver( capabilities );\n\t\t\tdriver.get( configuration.baseUrl().toString() );\n\t\t\treturn driver;\n\t\t}\n\t\tcatch ( Exception e )\n\t\t{\n\t\t\tlogger.error( e.getMessage() );\n\t\t\tthrow new WebDriverException( e );\n\t\t}\n\t}", "public static WebDriver getLocalChromeDriver() {\n WebDriverManager.chromedriver().setup();\n return new ChromeDriver();\n }", "@Given(\"^the user launch chrome application$\")\r\n\tpublic void the_user_launch_chrome_application() throws Throwable {\n\t w.browser();\r\n\t}", "public void browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/Driver/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();// maximize the window\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\n\t}", "@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }", "public static void startChromeDriver() {\r\n\t\tswitch (operatingSystem.toLowerCase().split(\" \")[0]) {\r\n\t\tcase \"windows\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriver.exe\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"linux\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriverLinux\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mac\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriverMac\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Operating system not supported.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void chromeLaunch() {\n\t\tSystem.setProperty(key, value);\n\t\ts=new ChromeDriver();\n\t\ts.manage().window().maximize();\n\t\ts.navigate().to(url);\n\t}", "@Given(\"I set up my Chrome Driver\")\n\tpublic void i_am_on_Magalu_HomePage() {\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:/Users/gocruz/eclipse-workspace/portal.compras/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(options);\n\n\t}", "@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }", "public Selenium(String chromePath) {\n this.browserDriverPath = chromePath; \n }", "public void getDriver() {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t}", "public static WebDriver getChromeWebDriver(String webDriverHomePath, String baseUrl) {\n\t\tSystem.setProperty(CHROME_WEB_DRIVER_NAME, webDriverHomePath);\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(baseUrl);\n\t\tdriver.manage().window().maximize();\n\t\treturn driver;\n\t}", "private void initChromeDriver(String appUrl) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"Drivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(appUrl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t}", "public static boolean isBrowserChrome() {\r\n\t\treturn ConfigProperties.BROWSER.equalsIgnoreCase(CHROME);\r\n\t}", "public GoogleAutomation() {\n\t\t\n\t\t//The setProperty() method of Java system class sets the property of the system which is indicated by a key.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"driver//chromedriver.exe\");\n\t\t\n\t\t//initilize webDriver \n\t\twebDriver = new ChromeDriver();\n\t}", "public void initiateBrowser(String browser) {\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\t\tString current_dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(os);\n\t\tSystem.out.println(current_dir);\n\t\tswitch (browser) {\n\t\tcase \"ie\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", current_dir + \"/drivers/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tif (os.contains(\"linux\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/linuxdrivers/chromedriver\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\n\t\t\t\toptions.setBinary(\"/usr/bin/google-chrome\");\n\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t} else if (os.contains(\"windows\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/chromedriver.exe\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\t\t\t}\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"disable-popup-blocking\");\n\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\tdriver.manage().window().maximize();\n\t\t\tbreak;\n\t\tcase \"firefox\":\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}", "public static void openBrowser(String browserType) {\n\t\t\tif (\"chrome\".equals(browserType.toLowerCase())) {\n\t\t\t\tsetChromeDriverProperty();\n\t\t\t\tChromeOptions options = setChromeOptions();\n\t\t\t\twebdriver = new ChromeDriver(options);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Browser type \" + browserType + \" hasn't been handled yet.\");\n\t\t\t\tReports.logAMessage(LogStatus.ERROR, \"Browser type \" + browserType + \" hasn't been handled yet.\");\n\t\t\t}\n\t\t}", "@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}", "private void setChromeDriver() throws Exception {\n\t\t// boolean headless = false;\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\tchromePrefs.put(\"download.default_directory\", BasePage.myTempDownloadsFolder);\n\t\tchromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\n\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\tchromeOptions.addArguments(\"--disable-extensions\");\n\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t/*\n\t\t * To set headless mode for chrome. Would need to make it conditional\n\t\t * from browser parameter Does not currently work for all tests.\n\t\t */\n\t\t// chromeOptions.setHeadless(true);\n\n\t\tif (runLocation.toLowerCase().equals(\"smartbear\")) {\n\t\t\tReporter.log(\"-- SMARTBEAR: standard capabilities. Not ChromeOptions\", true);\n\t\t\tcapabilities = new DesiredCapabilities();\n\t\t} else {\n\t\t\tcapabilities = DesiredCapabilities.chrome();\n\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\t\t}\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t \n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" Chrome-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "@BeforeClass(description = \"Before class: start the Chrome browser\")\n public void setUpBrowser()\n {\n reports = new ExtentReports(\"C:\\\\Dev\\\\ToDoMVCTEST\\\\HTML_Report\\\\Report.html\", true);\n HTMLReport htmlReport = new HTMLReport();\n htmlReport.log(\"STARTING BeforeClass\");\n htmlReport.logINFO(\"Initialization of browser's driver\");\n driver = getDriver();\n htmlReport.logINFO(\"Maximize the window of browser\");\n driver.manage().window().maximize();\n htmlReport.logINFO(\"Setting timeouts in seconds\");\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n }", "public static WebDriver initializeChromeDriver() throws Exception {\n\n\t\tFile file = null;\n\t\tChromeDriverService chromeService = null;\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\n\t\tif (os.contains(\"win\")){\n\t\t\t//Operating system is based on Windows\n\t\t\tfile = new File(Constants.CHROMEDRIVER_EXE);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new Exception(\"Erro ao localizar o driver\");\n\t\t\t}\n\t\t\tchromeService = new ChromeDriverService.Builder()\n\t\t\t\t\t.usingDriverExecutable(new File(Constants.CHROMEDRIVER_EXE))\n\t\t\t\t\t.usingAnyFreePort().build();\n\n\t\t} else if (os.contains(\"x\") || os.contains(\"mac\") || os.contains(\"osx\")){\n\t\t\t//Operating system is Apple OSX based\n\t\t\tfile = new File(Constants.CHROMEDRIVER_MAC);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new Exception(\"Erro ao localizar o driver\");\n\t\t\t}\n\t\t\tchromeService = new ChromeDriverService.Builder()\n\t\t\t\t\t.usingDriverExecutable(new File(Constants.CHROMEDRIVER_MAC))\n\t\t\t\t\t.usingAnyFreePort().build();\n\n\t\t} else if (os.contains(\"nix\") || os.contains(\"aix\") || os.contains(\"nux\")){\n\t\t\t//Operating system is based on Linux/Unix/*AIX\n\t\t\tfile = new File(Constants.CHROMEDRIVER_LINUX);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new Exception(\"Erro ao localizar o driver\");\n\t\t\t}\n\t\t\tchromeService = new ChromeDriverService.Builder()\n\t\t\t\t\t.usingDriverExecutable(new File(Constants.CHROMEDRIVER_LINUX))\n\t\t\t\t\t.usingAnyFreePort().build();\n\t\t}\n\n\t\tchromeService.start();\n\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\tcapabilities.setCapability(InternetExplorerDriver.INITIAL_BROWSER_URL, \"about:blank\");\n\n\t\tRemoteWebDriver driver = new RemoteWebDriver(chromeService.getUrl(), capabilities);\n\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\n\t\treturn driver;\n\t}", "@BeforeMethod\n\tpublic void registerChromeDriver() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"/Users/shwetasharma/Documents/softwares/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tutil = new Utils(driver);\n\t\t// Put a Implicit wait, this means that any search for elements on the\n\t\t// page\n\t\t// could take the time the implicit wait is set for before throwing\n\t\t// exception\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t// Launch the Applitools hackathon Website\n\t\tdriver.get(\"https://demo.applitools.com/hackathon.html\");\n\t\tdriver.manage().window().maximize();\n\n\t}", "public static void openBrowser() {\r\n\t\tString browser = prop.getProperty(\"browserType\").toLowerCase();\r\n\r\n\t\ttry {\r\n\t\t\tif (browser.equals(\"chrome\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"chromeName\"), prop.getProperty(\"chromePath\"));\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ff\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"FFName\"), prop.getProperty(\"FFPath\"));\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ie\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"IEName\"), prop.getProperty(\"IEPath\"));\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t}\r\n\t}", "public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}", "@BeforeTest //special type of testng method which alway run before.\r\n\t\t\tpublic void openBrowser() {\r\n\t\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://locator.chase.com/\");\r\n\t\t\t}", "@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}", "public static ChromeDriver LaunchPage(String url) {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\tChromeDriver driver = new ChromeDriver();\n\t\ttry {\n\t\t\tdriver.get(url);\n\t\t} catch (WebDriverException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn driver;\n\t}", "@Test\r\n\tpublic void f()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Data_Program//Selenium_Dependencies//chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t}", "public void getBrowser(String browser, String url) {\n\n\n if (browser.equalsIgnoreCase(\"chrome\")) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n } else if (browser.equalsIgnoreCase(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n }\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.get(url);\n\n }", "public static String getBrowser() {\n if (System.getProperty(\"browser\") == null) {\n return \"chrome\";\n } else {\n return System.getProperty(\"browser\").toLowerCase();\n }\n }", "@Given(\"^Open the Chrome and open google site$\")\t\t\t\t\n public void Open_the_Chrome_and_open_google_site() throws Throwable\t\t\t\t\t\t\t\n {\t\t\n \tdriver = new ChromeDriver();\n \tdriver.get(\"https://accounts.google.com/SignUp\");\n }", "public WebDriver initializeDriver() {\n System.setProperty(\"webdriver.chrome.driver\", projectPath + \"//src//main//resources//chromedriver\");\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n }", "public void setup(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"//Users//bpat12//Downloads//chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tSystem.out.println(\"launch browser\");\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.get(url);\n\t}", "@Override\n\tpublic EmbeddedBrowser get() {\n\t\tLOGGER.debug(\"Setting up a Browser\");\n\t\t// Retrieve the config values used\n\t\tImmutableSortedSet<String> filterAttributes =\n\t\t configuration.getCrawlRules().getPreCrawlConfig().getFilterAttributeNames();\n\t\tlong crawlWaitReload = configuration.getCrawlRules().getWaitAfterReloadUrl();\n\t\tlong crawlWaitEvent = configuration.getCrawlRules().getWaitAfterEvent();\n\n\t\t// Determine the requested browser type\n\t\tEmbeddedBrowser browser = null;\n\t\tEmbeddedBrowser.BrowserType browserType = configuration.getBrowserConfig().getBrowsertype();\n\t\ttry {\n\t\t\tswitch (browserType) {\n\t\t\t\tcase FIREFOX:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newFireFoxBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INTERNET_EXPLORER:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withDriver(\n\t\t\t\t\t new InternetExplorerDriver(),\n\t\t\t\t\t filterAttributes, crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase CHROME:\n\t\t\t\t\tbrowser = newChromeBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase REMOTE:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withRemoteDriver(configuration\n\t\t\t\t\t .getBrowserConfig().getRemoteHubUrl(), filterAttributes,\n\t\t\t\t\t crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PHANTOMJS:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newPhantomJSDriver(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"Unrecognized browsertype \"\n\t\t\t\t\t + configuration.getBrowserConfig().getBrowsertype());\n\t\t\t}\n\t\t} catch (IllegalStateException e) {\n\t\t\tLOGGER.error(\"Crawling with {} failed: {}\", browserType.toString(), e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tplugins.runOnBrowserCreatedPlugins(browser);\n\t\treturn browser;\n\t}", "public static void main(String[] args) {\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"D:/workspace/chromedriver\");\r\n\t\t //System.setProperty(\"webdriver.chrome.driver\", ...);\r\n\t\t \r\n\t\t System.setProperty(\"selenide.browser\", \"Chrome\");\r\n\t\t Configuration.browser=\"chrome\";\r\n\t\t open(\"http://google.com\");\r\n\t\t //$(By.id(\"registerLink\")).pressEnter();\r\n\t\t }", "public static void main(String[] args) {\n\t\t\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\r\n\t\tWebDriver driver =new ChromeDriver();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void setChromeDriverProperty() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\automation_new_code\\\\onfs.alip.accounting\\\\BrowserDriver/chromedriver.exe\");\n\t\t}", "@BeforeMethod(alwaysRun = true)\n public void browserSetup(){\n driver = new ChromeDriver();\n }", "public static void main(String[] args) {\n WebDriver driver = WebDriverFactory.getDriver(\"chrome\");\n driver.manage().window().maximize();\n\n\n }", "public WebDriver launchBrowser(String browserName) {\n\n\t\tif (browserName.equals(\"chrome\")) {\n\t\t\t//System.setProperty(\"webdriver.chrome.driver\", \"/Users/naveenautomationlabs/Downloads/chromedriver\");\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tdriver = new ChromeDriver();\n\t\t} else if (browserName.equals(\"firefox\")) {\n\t\t\t//System.setProperty(\"webdriver.gecko.driver\", \"/Users/naveenautomationlabs/Downloads/geckodriver\");\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (browserName.equals(\"safari\")) {\n\t\t\tdriver = new SafariDriver();\n\t\t} else {\n\t\t\tSystem.out.println(\"please pass the correct browser....\");\n\t\t}\n\n\t\treturn driver;\n\t}", "public WebDriver createWebDriverInstance(String Browser) throws MalformedURLException\n\t{\n\t\tif(d==null && Browser.equals(\"Firefox\"))\n\t\t{\n\n\t\t\td = new FirefoxDriver();\n\t\t\tlogger.info(\"--FireFox Browser has opened \");\n\t\t}\n\n\t\telse if(d==null && Browser.equals(\"Chrome\"))\n\t\t{\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities(DesiredCapabilities.chrome());\n\t\t\tcapabilities.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcapabilities.setCapability (ChromeOptions.CAPABILITY,options);\n\t\t\tChromeDriverManager.getInstance().setup();\n\t\t\t\n\t\t\t//Don't Remember Passwords by default\n\t\t\tMap<String, Object> prefs = new HashMap<String, Object>();\n\t\t\tprefs.put(\"credentials_enable_service\", false);\n\t\t\tprefs.put(\"profile.password_manager_enabled\", false);\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\t/*\n\t\t\tString path =System.getProperty(\"user.dir\")+File.separator+\"chromedriver.exe\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();*/\n\t\t\td = new ChromeDriver(capabilities);\n\t\t\tlogger.info(\"--Chrome Browser has opened \");\n\t\t}\n\n\t\telse if (d==null && Browser.equals(\"IE\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", true);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\telse if (d==null && Browser.equals(\"IE32bit\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer_32bit.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(\n\t\t\t\t\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\ttrue);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", false);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\treturn d;\n\n\n\t}", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"./browser/chromedriver.exe\");\r\n\t\t//DesiredCapabilities cap=new DesiredCapabilities();\r\n\t\t\r\n\t\tChromeOptions co=new ChromeOptions();\r\n\t\tco.addArguments(\"--disable-infobars\");\r\n\t\t//co.addArguments(\"--headless\");\r\n\t\tWebDriver driver=new ChromeDriver(co);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.close();\r\n\r\n\t}", "public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // create object for using selenium driver;\n WebDriver driver=new ChromeDriver();\n\n //open browser\n driver.get(\"http://amazon.com\");// bumu exlaydu\n //driver.get(\"http://google.com\");\n // open website\n System.out.println(driver.getTitle());\n\n\n\n\n }", "public static void initializer() \n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\HP-PC\\\\Downloads\\\\Kahoot\\\\chromedriver.exe\" );\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://www.sathya.in/\");\n\t}", "public static void main(String[] args) {\n String str = getDriver(\"chrome\");\n System.out.println(str);\n\n }", "public static void main(String[] args) throws MalformedURLException {\n\t\t\n\t\tDesiredCapabilities objRc=new DesiredCapabilities();\n\t\tobjRc.setBrowserName(\"chrome\");\n\t\tobjRc.setPlatform(Platform.WINDOWS);\n\t\tWebDriver driver=new RemoteWebDriver(new URL(\"http://localhost:4546/wd/hub\"),objRc);\n\t}", "public static WebDriver getDriver(String testName) {\n WebDriver driver = getLocalChromeDriver();\n /* * * * * * * * * * * * * * * * * * * * * * * * */\n\n driver.manage().window().maximize();\n return driver;\n }", "@Override\n public RemoteWebDriver getDriver() {\n\n File chromeFile = new File(Config.getProperty(Config.CHROME_PATH));\n System.setProperty(\"webdriver.chrome.driver\", chromeFile.getAbsolutePath());\n\n ChromeDriverService service = new ChromeDriverService.Builder()\n .usingDriverExecutable(chromeFile)\n .usingAnyFreePort().build();\n Driver.chromeService.set(service);\n try {\n service.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"--no-sandbox\");\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\n return new ChromeDriver(capabilities);\n }", "public static WebDriver getDriver(String browsername)\n\t{\n\t\t\n\t\tWebDriver dri;\n\t\t\n\t\t\n\t\tif(browsername.equalsIgnoreCase(\"chrome\")) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Chrome_Driver\\\\chromedriver.exe\"); \n\t\tdri = new ChromeDriver();\n\t\t}\n\t\t\n\t\telse{\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\",\"C:\\\\Edge_Driver\\\\msedgedriver.exe\"); \n\t\t\tdri = new ChromeDriver(); //replace else if loop with switch\n\t\t\t\n\t\t}\n\t\t\n//\t\telse{\n//\t\t\t\n//\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Chrome_Driver\\\\chromedriver.exe\"); \n//\t\t\tdri = new ChromeDriver();\n//\t\t\t\n//\t\t}\n\t\t\n\t\treturn dri;\n\t\t\n\t}", "private DesiredCapabilities getChromeCapabilities(DesiredCapabilities chromeCapabilities) {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\workspace\\\\Jarvis\\\\src\\\\test\\\\resources\\\\lib\\\\chromedriver.exe\");\n\t\t\n\t\tchromeCapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\tchromeCapabilities.setCapability(CapabilityType.SUPPORTS_ALERTS, true);\n\t\tchromeCapabilities.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.ACCEPT);\n\t\treturn chromeCapabilities;\n\t}", "Browser create(ConnectionFactory connectionFactory) {\n return new BrowserImpl(connectionFactory);\n }", "public static void openBrowser(String browserType) {\n if(browserType.equalsIgnoreCase(CHROME)) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n CHOSEN_BROWSER = CHROME;\n }\n else if(browserType.equalsIgnoreCase(EDGE)) {\n WebDriverManager.edgedriver().setup();\n driver = new EdgeDriver();\n CHOSEN_BROWSER = EDGE;\n }\n else if(browserType.equalsIgnoreCase(FIREFOX)) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n CHOSEN_BROWSER = FIREFOX;\n }\n }", "@Test\n public void test() throws MalformedURLException {\n System.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver.exe\"); \n WebDriver driver=new ChromeDriver();\n // WebDriver driver=new RemoteWebDriver(url,cap);\n driver.manage().window().maximize(); \n driver.get(\"https://curiedoctorapp.firebaseapp.com\");\n System.out.println(\"The title is\"+ driver.getTitle());\n driver.quit();\n \n }", "public static void InvokeBrowser() {\n\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(\"Current Directory \"+currentDir);\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--incognito\");\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir+\"/lib/chromedriver/36/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(capabilities);\n\t\tdriver.manage().window().maximize();\n\t\t//driver.navigate().to(URL);\n\t\t//logger.info(\"URL to proceed with transaction --> \"+URL);\n\t\t/*BestBuyAddCart.addToCart();\n\t\tdriver.close();\n\t\tdriver.quit();*/\n\t}", "public static WebDriver setUp() {\n\t\n \t\n \tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\"); //if it doesn't work we can check with user.dir...\n \tdriver = new ChromeDriver(); //launch the Browser it opens empty page\n \tdriver.manage().window().maximize();\n \tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); //to wait globally\n \tdriver.get(\"http://166.62.36.207/humanresources/symfony/web/index.php/auth/login\");\n \t \n \treturn driver; //return object of the driver \t\n}", "public GAfterSearch(WebDriver chromeDriver) {\n super.chromeDriver = chromeDriver;\n }", "public static void openBrowser()\n\t{\n\t\tdriver = DriverSetup.getWebDriver(ReadPropertiesFile.getBrowser());\n\t\tdriver.get(ReadPropertiesFile.getURL());\n\t\tlog.info(\"Opening Browser\");\n\t\tlog.info(\"Practo website is launched \");\n\t}", "private WebDriver startWebDriver(String browser) {\n\t\tString msg = \">>> DRIVER : %s TestCase %s\";\n\t\tif (driver == null) {\n\t\t\t// driver is not started so we start it\n\t\t\tdriver = BrowserFactory.create(BROWSERS.valueOf(browser));\n\n\t\t\tif (driver != null)\n\t\t\t\tSystem.out.println(String.format(msg, driver.getWindowHandle(), this));\n\t\t}\n\t\treturn driver;\n\t}", "public static ChromeOptions setChromeOptions() {\n\t\t\tChromeOptions cOptions = new ChromeOptions();\n\t\t\tcOptions.addArguments(\"disable-infobars\");\n\t\t\t//cOptions.addArguments(\"--headless\", \"window-size=1920,1080\");\n\t\t\tcOptions.addArguments(\"--disable-notifications\");\n\t\t\treturn cOptions;\n\t\t}", "@Override\n @SuppressFBWarnings(\"DM_EXIT\")\n protected void initializeBrowserProcess() {\n try {\n LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER)\n .ensureInitialized(getApplicationContext());\n } catch (ProcessInitException e) {\n Log.e(TAG, \"Cannot load content_browsertests.\", e);\n System.exit(-1);\n }\n BrowserStartupController.get(getApplicationContext(), LibraryProcessType.PROCESS_BROWSER)\n .initChromiumBrowserProcessForTests();\n\n setContentView(getTestActivityViewId());\n mShellManager = (ShellManager) findViewById(getShellManagerViewId());\n mWindowAndroid = new ActivityWindowAndroid(this);\n mShellManager.setWindow(mWindowAndroid);\n\n Window wind = this.getWindow();\n wind.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);\n wind.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);\n wind.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);\n }", "public BromiumFactoryImpl()\n {\n super();\n }", "private void createNewDriverInstance() {\n String browser = props.getProperty(\"browser\");\n if (browser.equals(\"firefox\")) {\n FirefoxProfile profile = new FirefoxProfile();\n profile.setPreference(\"intl.accept_languages\", language);\n driver = new FirefoxDriver();\n } else if (browser.equals(\"chrome\")) {\n ChromeOptions options = new ChromeOptions();\n options.setBinary(new File(chromeBinary));\n options.addArguments(\"--lang=\" + language);\n driver = new ChromeDriver(options);\n } else {\n System.out.println(\"can't read browser type\");\n }\n }", "@Given(\"browser is open\")\n\tpublic void browser_is_open() {\n\t\tSystem.out.println(\"browseris open\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/home/rahul/Desktop\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(40,TimeUnit.SECONDS);\n\t\t\n\t}", "@Override\n public List<BrowserDescriptor> getBrowserSafeListForBroker() {\n List<BrowserDescriptor> browserDescriptors = new ArrayList<>();\n final HashSet<String> signatureHashes = new HashSet<String>();\n signatureHashes.add(\"7fmduHKTdHHrlMvldlEqAIlSfii1tl35bxj1OXN5Ve8c4lU6URVu4xtSHc3BVZxS6WWJnxMDhIfQN0N0K2NDJg==\");\n final BrowserDescriptor chrome = new BrowserDescriptor(\n \"com.android.chrome\",\n signatureHashes,\n null,\n null\n );\n browserDescriptors.add(chrome);\n\n return browserDescriptors;\n }", "public Browser getBrowser() {\n return browser;\n }", "@Test\n @Given(\"I launch browser\")\n public void s01_BrowserMaximizeLaunch() {\n System.setProperty(\"webdriver.chrome.driver\", \"src/ChromeDriver.exe\");\n// Init new instance of ChromeDriver.\n driver = new ChromeDriver();\n// Maximise browser window\n driver.manage().window().maximize();\n System.out.println(\"Step01 PASSED\");\n }", "@BeforeMethod\n\tpublic void setUp() {\n\t\tString driverByOS = \"\";\n\t\tif (System.getProperty(\"os.name\").equals(\"Windows 10\")) {\n\t\t\tdriverByOS = \"Drivers/chromedriver.exe\";\n\t\t} \n\t\telse {\n\t\t\tdriverByOS = \"Drivers/chromedriver\";\n\t\t}\n\t\t//para saber en qué sistema Operativo estamos corriendo el proyecto.\n\t\tSystem.out.println(System.getProperty(\"os.name\"));\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverByOS);\n\t\t//Utilizando headless browser HB\n\t\t/*-HB\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\tchromeOptions.addArguments(\"--headless\");\n\t\tdriver = new ChromeDriver(chromeOptions);\n\t\tHB-*/\n\t\tdriver = new ChromeDriver();\n\t\t//driver.manage().window().maximize(); //esto es para maximizar la ventana del navegador\n\t\t//driver.manage().window().fullscreen(); //esto es para poner en fullscreen la ventana del navegador\n\t\t/*driver.manage().window().setSize(new Dimension(200,200));\n\t\tfor (int i = 0; i <= 800; i++) {\n\t\t\tdriver.manage().window().setPosition(new Point(i,i));\n\t\t}*/\n\t\t//driver.manage().window().setPosition(new Point(800,200)); //posicionando la ventana del navegador\n\t\tdriver.navigate().to(\"http://newtours.demoaut.com/\");\n\t\t//Este codigo de abajo permite abrir otra ventana en el navegador\n\t\t//JavascriptExecutor javaScriptExecutor = (JavascriptExecutor)driver;\n\t\t//String googleWindow = \"window.open('http://www.google.com')\";\n\t\t//javaScriptExecutor.executeScript(googleWindow);\n\t\t//tabs = new ArrayList<String> (driver.getWindowHandles());\n\t\t/*try {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//Helpers helper = new Helpers();\n\t\t//helper.sleepSeconds(4);\n\t}", "public BrowserPresenter create() {\n return new BrowserPresenter(context);\n }", "public int getChromeColor() {\n return chromeColor;\n }", "@BeforeClass\n public static void instanceDriver() {\n ChromeOptions options = ConfigUtil.chromeOptions();\n driver = new ChromeDriver(options);\n wait = new WebDriverWait(driver, WEB_DRIVER_TIMEOUT);\n }", "public RemoteWebDriver startApp(String url) {\n\t\treturn startApp(\"chrome\", url);\r\n\t}", "public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public ChromeDriver(TestBed testBed)\r\n\t\t\tthrows DriverException {\r\n\t\tsuper(testBed);\r\n\t\t//buildDriver();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public static void ChromeExePathSetUp() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \r\n\t\t\t\t\"D:\\\\VisionITWorkspace\\\\dependencies\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tReporter.log(\"Chrome Exe path Set up\", true);\r\n\t}", "public void initialization()\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Mrunal\\\\chromedriver.exe\");\n\t\n\t\tif(prop.getProperty(\"browser\").contains(\"chrome\"))\n\t\t driver = new ChromeDriver();\n\t\t \n\t\t driver.manage().deleteAllCookies();\n\t\t driver.manage().timeouts().pageLoadTimeout(2000, TimeUnit.MILLISECONDS);\n\t\t driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n\n\t\t driver.get(prop.getProperty(\"url\"));\n\t\t driver.manage().window().maximize();\n\t\t driver.manage().timeouts().implicitlyWait(8, TimeUnit.SECONDS);\n\t\t \n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tWebDriver driver = new browser_methods().getDriver(\"chrome\");\r\n\t\tdriver.get(\"http://newtours.demoaut.com/\");\r\n\r\n\t}", "@BeforeTest\n\tpublic void LaunchBrowser() {\n\t\t driver = init(\"URL_JQuery\");\n\t\t// driver.get(\"https://jqueryui.com/autocomplete/\");\n\t\t driver.switchTo().frame(0);\n\t\t jq = new JQueryAutocompletePage(driver);\n\t\t \n\t}", "public void openBrowser(String url) {\n System.setProperty(\"webdriver.chrome.driver\", \"c:\\\\webdriver\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n// int timeout = Integer.parseInt(ApplicationConfig.readConfigProperties(\"config-week17project.properties\", \"timeout\"));\n int timeout = Integer.parseInt(testData.timeout);\n driver.manage().timeouts().pageLoadTimeout(timeout, TimeUnit.SECONDS);\n driver.get(url);\n }", "@BeforeTest\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PSQA\\\\Desktop\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.booking.com/\");\n\t\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(100);\n\t\t\n}", "public static WebDriver getDriver(String browser)\n {\n return createInstance(browser);\n }", "public static void initialization() {\n\t\tSystem.out.println(\"**Open initialization**\");\r\n\t\tString browserName = props.getProperty(\"browser\");\r\n\t\tSystem.out.println(\"Browser User = \" + browserName + \" URL = \" + props.getProperty(\"url\"));\r\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/Selenium Automation/chromedriver/chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\r\n\t\tdriver.get(props.getProperty(\"url\"));\r\n\t\tSystem.out.println(\"**Close initialization**\");\r\n\t}", "@BeforeClass\n public void BeforeTest(){\n Configuration.browser = \"Chrome\";\n\n }" ]
[ "0.7692468", "0.7635991", "0.72385854", "0.71059066", "0.69088835", "0.68681705", "0.68610376", "0.6837257", "0.6812035", "0.6805443", "0.6798219", "0.67747015", "0.67472893", "0.67289096", "0.6694886", "0.66930044", "0.66384923", "0.6627892", "0.6602783", "0.64886236", "0.648687", "0.6433765", "0.64108", "0.63872474", "0.6386498", "0.63693905", "0.63678014", "0.63325256", "0.631939", "0.6276687", "0.62392735", "0.61692953", "0.6142104", "0.6139456", "0.6096623", "0.60352373", "0.60237706", "0.5974963", "0.59676194", "0.596116", "0.5907702", "0.59053206", "0.5897953", "0.58945507", "0.5863529", "0.58411294", "0.5825777", "0.58184886", "0.5809842", "0.5804509", "0.5795274", "0.5777879", "0.5777139", "0.57722217", "0.5771202", "0.57697165", "0.5757975", "0.57578325", "0.5704536", "0.56873065", "0.56767446", "0.5646638", "0.56423855", "0.5638029", "0.55882967", "0.55648017", "0.55210173", "0.55115795", "0.5506519", "0.5503758", "0.5499087", "0.5480579", "0.54782486", "0.5470439", "0.5468666", "0.54617107", "0.54511386", "0.5448755", "0.5438917", "0.54341644", "0.542658", "0.5419919", "0.5418499", "0.54130924", "0.5410879", "0.54087704", "0.5400136", "0.53919166", "0.5387636", "0.53841424", "0.5378029", "0.5377009", "0.536915", "0.5362129", "0.5343874", "0.5339004", "0.53386384", "0.5334266", "0.5334139", "0.5326444", "0.53248876" ]
0.0
-1
Constructor that initializes the jDelayed measurements.
public Detector(Lane lane, double x, double period, String id) { super(lane, x, period, true, false); this.id = id; q = new Delayed<Integer>(lane.model.settings.getDouble("detectorDelay"), lane.model.dt); v = new Delayed<Double>(lane.model.settings.getDouble("detectorDelay"), lane.model.dt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Delay(int sd){\n super(\"delay\");\n delay = sd;\n\n }", "public Delay(float delay)\n\t{\n\t\tthis(delay,0);\n\t}", "public UpdateTimer()\n\t\t{\n\t\t\tsuper(delayTime, null);\n\t\t\t\n\t\t\taddActionListener(this);\n\t\t}", "protected void initialize() {\n setTimeout(duration);\n }", "@Override\n protected void initialize() {\n startT = Timer.getFPGATimestamp();\n }", "public void setDelay(long d){delay = d;}", "public Scheduling(Runnable runnable, long delay) {\n this.runnable = runnable;\n this.delay = delay;\n }", "public Timer()\n {\n // initialise instance variables\n startTime = 0;\n bonusTime = 0;\n }", "protected void initialize() {\n \t\n \tstart_time = System.currentTimeMillis();\n \t\n \tgoal = start_time + duration;\n }", "public Delay(float delay, int repeat)\n\t{\n\t\tsetDelay(delay);\n\t\tdelayCount=0f;\n\t\trepeatMax=repeat;\n\t\trepeatCount=0;\n\t}", "public Timer() {\n\t\tthis.start = 0L;\n\t\tthis.end = 0L;\n\t}", "public AutonDelay(double timeout) {\n super(\"autonDelay\");\n setTimeout(timeout);\n }", "public NaughtyModule(int period)\n\t{\n\t\tdelay = 2 * period;\n\t}", "@Override\n protected void initialize() {\n m_oldTime = Timer.getFPGATimestamp();\n m_oldError= m_desiredDistance;\n }", "public Timer() {}", "protected void initialize() {\n \tsetTimeout(timeInSeconds);\n }", "public void setDelay(long delay) {\n this.delay = delay;\n }", "public Duration() {\n this(0, 0, 0, 0, 0, 0.0);\n }", "public Ani(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd) {\n\t\tsuper(papplet(), defaultAutostartMode, theTarget, theDuration, theDelay, theFieldName, theEnd, defaultEasing, defaultTimeMode, theTarget, defaultCallback);\n\t}", "private Flusher(final int delay) {\r\n\t\t\tthis.delay = Checks.assertPositive(delay) * MILLISECONDS_PER_SECOND;\r\n\t\t}", "public Simulator(Garden garden) {\n this.garden = garden;\n timer = new Timer();\n days = 0;\n }", "public GameTimer()\n \t{\n \t\tsuper();\n \t\tt = new Task();\n \t\tscheduleAtFixedRate( t, 0, 1000 );\n \t\tstartTime = System.currentTimeMillis();\n \t}", "public void setDelay(BigDecimal delay) {\r\n this.delay = delay;\r\n }", "private void init(long checkInterval)\r\n/* 140: */ {\r\n/* 141:299 */ this.lastCumulativeTime = System.currentTimeMillis();\r\n/* 142:300 */ this.writingTime = milliSecondFromNano();\r\n/* 143:301 */ this.readingTime = this.writingTime;\r\n/* 144:302 */ this.lastWritingTime = this.writingTime;\r\n/* 145:303 */ this.lastReadingTime = this.writingTime;\r\n/* 146:304 */ configure(checkInterval);\r\n/* 147: */ }", "public DotsPanel() {\n\n\t\ttimer = new Timer(10, new DotsListener());\n\n\t\tthis.setLayout(new BorderLayout());\n\n\t\t// -----------------------------------------------------------------\n\t\t// Fills the arrays with a number from -min to max, but\n\t\t// not including 0\n\t\t// -----------------------------------------------------------------\n\t\tfor (int i = 0; i < ARRAY_SIZE; i++) {\n\n\t\t\tfor (int ii = 0; ii < axis; ii++) {\n\n\t\t\t\trandomXY[i][ii] = gen.nextInt(max + 1 + min) - min;\n\n\t\t\t\twhile (randomXY[i][ii] == 0)\n\t\t\t\t\trandomXY[i][ii] = gen.nextInt(max + 1 + min) - min;\n\t\t\t}\n\n\t\t\tfor (int ii = 0; ii < colorRange; ii++) { // fills the 2D array with random values\n\n\t\t\t\trandomRGB[i][ii] = gen.nextInt(256); // for RGB values\n\t\t\t}\n\t\t}\n\n\t\tpointList = new ArrayList<Point>();\n\n\t\taddMouseListener(new DotsListener());\n\t\taddMouseMotionListener(new DotsListener());\n\t\taddMouseWheelListener(new DotsListener());\n\n\t\tdotSpeedSlider = new JSlider(JSlider.HORIZONTAL, 0, 10, 0);\n\t\tdotSpeedSlider.setMajorTickSpacing(1);\n\t\tdotSpeedSlider.setPaintTicks(true);\n\t\tdotSpeedSlider.setPaintLabels(true);\n\t\tdotSpeedSlider.setSnapToTicks(true);\n\n\t\tSlideListener listener = new SlideListener();\n\t\tdotSpeedSlider.addChangeListener(listener);\n\n\t\tdotSpeedLabel = new JLabel(\"Speed Of Dots: \" + 0);\n\t\tdotSpeedLabel.setAlignmentX(Component.LEFT_ALIGNMENT);\n\n\t\tdotSpeedPanel = new JPanel();\n\t\tdotSpeedPanel.add(dotSpeedSlider);\n\t\tdotSpeedPanel.add(dotSpeedLabel);\n\n\t\tadd(dotSpeedPanel, BorderLayout.SOUTH);\n\n\t\tsetBackground(Color.black);\n\t\tsetPreferredSize(new Dimension(WIDTH, HEIGHT));\n\n\t\ttimer.start();\n\t}", "public void setDelay(double clock);", "private void initializeTimer(){\n logger.trace(\"Sensor/\" + getModel().getId() + \" initialising timer\");\n //create timer\n newTimer = new Timer(true);\n }", "public Timer(long millisecond) {\r\n this.period = millisecond;\r\n reset();\r\n }", "public void init() {\r\n\r\n\t\t// dater collectors\r\n\t\t//trucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\t//trucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\twaitTimeHistogram = new Histogram(this, \"Truck Wait Times\", 0, 16, 10, true, false);\r\n\r\n\t\t// distributions DEFAULT\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.0, 7.0, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 3.0, true, false);\r\n\r\n\t\t// distributions PROBLEM DESCRIPTION\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.5,6.5, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\t\tserviceTime = new ContDistExponential(this, \"ServiceTimeStream\", 4.0, true, false);\r\n\t\ttruckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\r\n\t\t// queues\r\n\t\ttruckQueue = new ProcessQueue<Truck>(this, \"Truck Queue\", true, false);\r\n\t\tidleVCQueue = new ProcessQueue<VC>(this, \"idle VC Queue\", true, false);\r\n\t}", "protected void initialize() {\n \ttimer.start();\n }", "public DisgustingMoebiusTranslator()\r\n/* 47: */ {\r\n/* 48: */ try\r\n/* 49: */ {\r\n/* 50: 61 */ this.startTime = this.format.parse(\"2000-1-1T00:00:00.000\").getTime();\r\n/* 51: */ }\r\n/* 52: */ catch (ParseException e)\r\n/* 53: */ {\r\n/* 54: 64 */ Mark.say(new Object[] {\"Could not comptute start time in DisgustingMoebiusTranslator constructor\" });\r\n/* 55: 65 */ e.printStackTrace();\r\n/* 56: */ }\r\n/* 57: 67 */ this.significantEvents.addAll(Arrays.asList(this.significantEventArray));\r\n/* 58: 68 */ Connections.getPorts(this).addSignalProcessor(FROM_IMPACT, \"processImpactResults\");\r\n/* 59: 69 */ Connections.getPorts(this).addSignalProcessor(TIME, \"commentOnAction\");\r\n/* 60: 70 */ Connections.getPorts(this).addSignalProcessor(SHOW_ALL_COMMENTS, \"showAllComments\");\r\n/* 61: */ }", "protected void initialize() {\n \ttarget = (int) SmartDashboard.getNumber(\"target\", 120);\n \ttarget = (int) (target * Constants.TICKS_TO_INCHES);\n\t\tRobot.drive.stop();\n\t\tmaxCount = (int) SmartDashboard.getNumber(\"max count\", 0);\n\t\ttolerance = (int) SmartDashboard.getNumber(\"tolerance\", 0);\n\t\tRobot.drive.left.motor1.setSelectedSensorPosition(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n\t\tRobot.drive.right.motor1.setSelectedSensorPosition(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n }", "public Measurement(Handler handler)\n\t{\n\t\tmHandler = handler;\n\t\tmeasurementArray = new AnalogMeasurement[MAX_MEASUREMENTS];\n\t}", "public void setDelay(int delay)\n {\n this.delay = delay;\n }", "public Duration()\n\t{\n\t}", "protected void initialize() {\n this.setTimeout(timeoutTime);\n }", "public Time(){\r\n Seconds = 0; \r\n }", "@Override\n\tprotected void init() {\n\t\t//Set movementSpeed in px/s\n\t\tmovementSpeed = 100;\n\t\t//Set previousTime to start at the \n\t}", "public TopListTimer() {\r\n\t\tsuper(-1, 1000 * 30);\r\n\t}", "public Ani(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing, String theCallback) {\n\t\tsuper(papplet(), defaultAutostartMode, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, theCallback);\n\t}", "public Timer()\r\n\t{\r\n\t\tcurrentstate = TIMER_STOP;\r\n\t}", "public Simulation() {\n ecosystem = new Ecosystem();\n weeksElapsed = 0;\n }", "public void setStartDelay(long delay){\n if(delay < 0){\n delay = 0;\n }\n this.mStartDelay = delay;\n }", "public Intervals() {\n }", "public void setUp()\n {\n mTimer = new SudokuTimer();\n }", "private SleeperTask()\r\n\t{\r\n\t\ttimer = new Timer();\r\n\t\tprovider = null;\r\n\t\taction = \"\";\r\n\t\tverbose = false;\r\n\t\tsetRepeat(5);\r\n\t}", "public StopWatch() {\n }", "Timer(int tempTotalTime) {\n totalTime = tempTotalTime;\n }", "public static void init() \r\n {\r\n currentTime = getTime(); \r\n lastTime = getTime(); \r\n }", "public void setDelay(int delay) {\n this.delay = delay;\n }", "@Override\n public void initialize() {\n conveyor.setBallCount(0);\n conveyor.startTime(); \n }", "@Override\n protected void initialize() {\n desiredTime = System.currentTimeMillis() + (long) (seconds * 1000);\n Robot.driveTrain.configForTeleopMode();\n }", "@Override\n\tpublic void setTimer(Double d) {\n\t\t\n\t}", "private Simulator(final int duration) {\n this(duration, duration);\n }", "public SimpleSandTimer(final TemporalAmount duration, final Supplier<Instant> now) {\n this(now.get().plus(duration), now);\n }", "private void init() {\n setMinutes(new int[] {});\n setHours(new int[] {});\n setDaysOfMonth(new int[] {});\n setMonths(new int[] {});\n setDaysOfWeek(new int[] {});\n }", "MarkOccurrencesSupport() {\n\t\tthis(DEFAULT_DELAY_MS);\n\t}", "protected void initialize() {\r\n\t\tsubscribeBroadcast(TerminateBroadcast.class, terminate->{\r\n\t\t\tfTimer.cancel();\r\n\t\t\tthis.terminate();\r\n\t\t});\r\n\t\ttry {\r\n\t\t\tfCount.await();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t}\r\n\t\tfTimer.schedule(new TimerTask(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tif(fTick < fDuration){\r\n\t\t\t\t\tfTick++;\r\n\t\t\t\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++ \"+\"Tick \"+fTick +\" ++++++++++++++++++++++++++++++++++++++\");\r\n\t\t\t\t\tsendBroadcast((Broadcast) new TickBroadcast(fTick));\r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tsendBroadcast((Broadcast) new TerminateBroadcast());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}, 0, fSpeed);\r\n\t}", "protected AnimationSuite() {\n loop = false;\n started = false;\n finished = false;\n doReset = false;\n setStopAfterMilliseconds(-1);\n }", "public Ani(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing, Object theCallbackObject, String theCallback) {\n\t\tsuper(papplet(), defaultAutostartMode, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theCallbackObject, theCallback);\n\t}", "public NewtonRaphsonCalibrator()\r\n\t{\r\n\t}", "public Ani(Object theTarget, float theDuration, float theDelay, String theFieldName, float theEnd, Easing theEasing) {\n\t\tsuper(papplet(), defaultAutostartMode, theTarget, theDuration, theDelay, theFieldName, theEnd, theEasing, defaultTimeMode, theTarget, defaultCallback);\n\t}", "public static void setup() {\n\n timers = new LinkedList<>();\n }", "public Interval(){\r\n firstExtreme = 0.0d;\r\n secondExtreme = 0.0d;\r\n feIncluded = '(';\r\n seIncluded = ')';\r\n }", "public void initializeInstance() {\n instanceLife = new Timer();\n }", "public DelayData(AudioContext context, double delay,\r\n\t\t\tDataBeadReceiver receiver, DataBead db) {\r\n\t\tsuper(context, delay);\r\n\t\tthis.receiver = receiver;\r\n\t\tthis.dataBead = db;\r\n\t}", "public UhrImpl() {\n super();\n timer = new Timer(1000,new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n zeitGeber();\n }\n });\n timer.start();\n }", "public double getDelay();", "private void init() {\n\t\ttimer.schedule(new TimerTask() {\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMessage msg=new Message();\n\t\t\t\tBundle bundle=new Bundle();\n\t\t\t\tbundle.putInt(\"percent\",(int) (100*downLoadFileSize/totalsize));\n\t\t\t\tmsg.setData(bundle);\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t\n\t\t\t}\n\t\t}, 0, 500);\n\t\t \n\t}", "public void setInterval(int anInterval)\n{\n // Set interval\n _interval = anInterval;\n \n // If timer present, change interval\n if(_timer!=null)\n _timer.setDelay(_interval);\n}", "@Override\n\tpublic double timeToInitialize() {\n\t\treturn 0;\n\t}", "public SleepObject() {\n date = new Date();\n }", "public void setDelayedTimeout(int seconds);", "public void start(){\n\t\ttimer = new Timer();\n\t\ttimer.schedule(this, 0, (long)66.6);\n\t}", "@Override\r\n\tprotected void initEvent() {\n\t\ttimer = new Timer(1000, new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\ttimer_tick(e);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "public Timer (String name, int duration, boolean starttimer, boolean loop)\n {\n Name = name;\n Timer = duration;\n TimerMax = duration;\n Loop = loop;\n isRunning = starttimer;\n \n }", "@Override\n protected void initialize() {\n System.out.println(\"CargoWheelSuckOrSpitCommand init\");\n _timer.reset();\n _timer.start();\n }", "private void doInitialization() {\r\n\r\n\t\t// See if we have the necessary data to initialize delay\r\n\t\tif ((sampleRate != 0) && (numberOfChannels != 0) &&\r\n (!initializationComplete)) {\r\n\r\n\t\t\t// Allocate delay buffer for the fixed delay time\r\n\t\t\tnumberOfDelaySamples = \r\n\t\t\t\t(FIXEDDELAYINMS * sampleRate * numberOfChannels) / 1000;\r\n\r\n\t\t\t// Total buffer size\r\n\t\t\tdelayBufferSize = AudioConstants.SAMPLEBUFFERSIZE + numberOfDelaySamples;\r\n \r\n\t\t\t// Allocate new delay buffer\r\n\t\t\tdelayBuffer = new long[delayBufferSize];\r\n\r\n // Initialize indices in the delay buffer\r\n\t\t setIndices();\r\n\r\n\t\t\t// Calculate the number of cross fade samples\r\n\t\t\tnumberOfCrossFadeSamples = \r\n\t\t\t\t(CROSSFADETIMEINMS * sampleRate) / 1000;\r\n\t\t\t\r\n\t\t\t// Allocate arrays for cross fade coefficients\r\n\t\t\tfadeIn = new double[numberOfCrossFadeSamples];\r\n\t\t\tfadeOut = new double[numberOfCrossFadeSamples];\r\n\t\t\t\r\n\t\t\t// Fill in the arrays with fade in/out values. Sin and Cos\r\n\t\t\t// values are used for smooth results.\r\n\t\t\tfor (int i=0; i < numberOfCrossFadeSamples; i++) {\r\n\t\t\t\tdouble angle = (i * Math.PI) / (2.0 * numberOfCrossFadeSamples);\r\n\t\t\t\tfadeIn[i] = Math.cos(angle);\r\n\t\t\t\tfadeOut[i] = Math.sin(angle);\r\n\t\t\t}\r\n // Indicate initialization is complete\r\n\t\t\tinitializationComplete = true;\r\n\t\t}\r\n\t}", "public Timer(CallasValue module, String functionName, CallasValue every, CallasValue... values) {\n\t\tsuper();\n\t\tthis.module = module;\n\t\tthis.functionName = Symbol.symbol(functionName);\n\t\tthis.arguments = Collections.unmodifiableList(Arrays.asList(values));\n\t\tthis.every = every;\n\t}", "protected void initialize() {\n \tstartTime = System.currentTimeMillis();\n \tintake.setLeftPower(power);\n \tintake.setRightPower(power);\n }", "public Sleep() {\n\n\t}", "public void setAudioJittcomp(int milliseconds);", "public void init() {\n delayingTimer = new ElapsedTime();\n\n // Define and Initialize Motors and Servos: //\n tailMover = hwMap.dcMotor.get(\"tail_lift\");\n grabberServo = hwMap.servo.get(\"grabber_servo\");\n openGrabber();\n\n // Set Motor and Servo Directions: //\n tailMover.setDirection(DcMotorSimple.Direction.FORWARD);\n\n tailMover.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n tailMover.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n int prevEncoder = tailMover.getCurrentPosition();\n tailMover.setPower(-0.15);\n mainHW.opMode.sleep (300);\n Log.d(\"catbot\", String.format(\"tail lift power %.2f current position %2d prev %2d\", tailMover.getPower(), tailMover.getCurrentPosition(),prevEncoder));\n runtime.reset();\n while((Math.abs(prevEncoder - tailMover.getCurrentPosition()) > 10)&& (runtime.seconds()<3.0)){\n prevEncoder = tailMover.getCurrentPosition();\n mainHW.opMode.sleep(300);\n Log.d(\"catbot\", String.format(\"tail lift power %.2f current position %2d prev %2d\", tailMover.getPower(), tailMover.getCurrentPosition(),prevEncoder));\n }\n tailMover.setPower(0.0);\n // Set Motor and Servo Modes: //\n tailMover.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n tailMover.setTargetPosition(0);\n tailMover.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n closeGrabber();\n }", "public GridLayoutAnimationController(Animation animation, float columnDelay, float rowDelay) {\n/* 82 */ super((Animation)null); throw new RuntimeException(\"Stub!\");\n/* */ }", "public SimpleSandTimer(final TemporalAmount duration) {\n this(duration, Instant::now);\n }", "public void setDroneDelay(int delay)\r\n {\r\n droneDelay=delay;\r\n }", "public void setDelay(int delay) {\n\t\ttimer.setInitialDelay(delay);\n\t}", "long getInitialDelayInSeconds();", "public Sliding()\n {\n }", "private SpeedSliderListener()\n {\n }", "public void setTimer() {\n\t\t\n\t}", "public long getDelay() {\n return this.delay;\n }", "protected void initialize() {\n Timer.delay(7);\n ballIntake.turnOnHorizontalConveyor();\n ballIntake.verticalConveyor.set(-.3);\n }", "public TimingJPanel() {\n\t\tinitComponents();\n\t\tjAnytimeRadioButton.setSelected(true);\n\t}", "public HitCounter() {\n q = new ArrayDeque();\n PERIOD = 300;\n }", "@Override\n public void initialize() {\n\n distanceTraveled = 0.0;\n timer.start();\n startTime = timer.get();\n\n leftEncoderStart = drivetrain.getMasterLeftEncoderPosition();\n rightEncoderStart = drivetrain.getMasterRightEncoderPosition();\n\n angleCorrection = 0;\n angleError = 0;\n speedCorrection = 1;\n\n shifter.shiftUp();\n\n }", "protected void initialize() {\n \t\n \n \t\n \tRobotMap.motorLeftTwo.setSelectedSensorPosition(0,0,0);\n\t\tRobotMap.motorRightTwo.setSelectedSensorPosition(0,0,0);\n \t\n \torientation.setSetPoint(desiredAngle);\n \tstartTime = Timer.getFPGATimestamp();\n }", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "public void initialize() {\n final Double optimismRate = new Double(0.0);\n _counts.clear();\n _values.clear();\n\n for (Integer index : Range.closed(0, _armsNo - 1).asSet(DiscreteDomains.integers())) {\n _counts.add(index, optimismRate.intValue());\n _values.add(index, optimismRate);\n }\n }", "public Timer(TimeSpan tickperiod)\r\n\t{\r\n\t\tcurrentstate = TIMER_STOP;\r\n\t\ttickPeriod = tickperiod.Ticks();\r\n\t}", "public TimedEvent() {\n this(DEFAULT_LABEL + nextTaskID, DEFAULT_DATE, DEFAULT_TIME); // assigning default values\n }" ]
[ "0.6542578", "0.6208359", "0.60961217", "0.5947642", "0.5936504", "0.59364724", "0.5916264", "0.58436155", "0.5816485", "0.58058745", "0.5788447", "0.57744336", "0.5741948", "0.57181275", "0.5706714", "0.56454813", "0.5641888", "0.5589946", "0.5571734", "0.5541092", "0.552366", "0.5512504", "0.5510695", "0.54771936", "0.5468797", "0.5454065", "0.54482406", "0.54323024", "0.5423129", "0.54155135", "0.54024506", "0.53790116", "0.53580827", "0.5340288", "0.53385234", "0.5337864", "0.5332208", "0.5326199", "0.5303807", "0.5296037", "0.5284359", "0.52704704", "0.52696", "0.5269254", "0.52465427", "0.5245803", "0.52422374", "0.52348953", "0.52243835", "0.5219557", "0.5201853", "0.520026", "0.519835", "0.5192763", "0.5191718", "0.5189433", "0.51853335", "0.516687", "0.51536226", "0.5143069", "0.5138713", "0.5128909", "0.5126877", "0.512658", "0.5120165", "0.5117166", "0.51116544", "0.51107395", "0.5109431", "0.5104542", "0.5100331", "0.5099267", "0.50979745", "0.50924855", "0.50797904", "0.5075588", "0.50751346", "0.5074974", "0.50746286", "0.50740016", "0.5057143", "0.50556356", "0.50539994", "0.5050183", "0.50485694", "0.50328195", "0.50321174", "0.5030621", "0.5027984", "0.5017443", "0.50173163", "0.5010663", "0.5010214", "0.50003624", "0.499811", "0.4994343", "0.49783206", "0.4977355", "0.49769157", "0.49765486", "0.49736503" ]
0.0
-1
Empty, needs to be implemented.
@Override public void init() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isEmpty() { return true; }", "@Override\n public boolean isEmpty() {\n return false;\n }", "@Override\n public boolean isEmpty()\n {\n return false;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\n\tpublic boolean isEmpty ()\n\t{\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}", "public abstract void makeEmpty();", "public boolean isEmpty() { return true; }", "@Override\npublic boolean isEmpty() {\n\treturn false;\n}", "@Override\n public boolean isEmpty() {\n return size()==0;\n }", "@Override\r\n public boolean isEmpty() {\n return size == 0;\r\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "public void makeEmpty();", "public void makeEmpty();", "@Override\npublic Boolean isEmpty() {\n\treturn null;\n}", "@Override\n\tpublic void setEmpty() {\n\t\t\n\t}", "default Empty getEmptyObject() {\n return null;\n }", "public boolean isEmpty()\n {\n return false;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn size() == 0;\r\n\t}", "public boolean isEmpty () {\n return false;\n }", "@Override\n public boolean isEmpty() {\n return _size == 0;\n }", "@Override\r\n public boolean isEmpty() {\r\n return size == 0;\r\n }", "public boolean isEmpty() {\n return false;\n }", "public boolean isEmpty() {\n return false;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public boolean is_empty() {\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n\t\treturn false;\r\n\t}", "public boolean isEmpty () {\n return true;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "public boolean isEmpty() {\n return true;\n }", "@Override\n public boolean isEmpty()\n {\n return size == 0;\n }", "private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean isEmpty() {\n return false;\n }", "public boolean isEmpty() {\n return false;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn(size() == 0);\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean empty();", "public boolean isEmpty() {\n\t\treturn super.isEmpty();\n\t}", "void empty();", "public boolean isEmpty(){\n\t\treturn super.isEmpty();\n\t}", "@Override\n public boolean isEmpty() {\n return this.size==0;\n }", "public boolean isEmptyHuh() {\n return true; \n }", "public boolean empty() {\r\n\t\treturn empty;\r\n\t}", "@Override\n public boolean isEmpty() {\n return this.size == 0;\n }", "private boolean isEmpty() { return getSize() == 0; }", "public static DefaultExpression empty() { throw Extensions.todo(); }", "@Override\n public boolean isEmpty(){\n return itemCount == 0;\n }", "@Override\n public boolean isEmpty() {\n if (size == 0) {\n return true;\n }\n return false;\n }", "private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "public boolean isEmpty() ;", "@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn count == 0;\r\n\t}", "public boolean empty() { \t \n\t\t return size <= 0;\t \n }", "public boolean isEmpty() {\r\n return empty;\r\n }", "public boolean empty() {\r\n return size == 0;\r\n }", "@Override\n public boolean isEmpty() {\n if (size == 0) {\n return true;\n } else {\n return false;\n }\n }", "public synchronized boolean isEmpty() {\r\n return super.isEmpty();\r\n }", "public boolean empty() \r\n\t{\r\n\t\tif(size == 0)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn this.size == 0;\r\n\t}", "public abstract boolean isEmpty();", "public abstract boolean isEmpty();", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn (t==1);\r\n\t}", "@Override\n public int size() {\n return 0;\n }", "public boolean isEmpty(){ return Objects.isNull(this.begin ); }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn (getSize() == 0);\n\t}", "public boolean isEmpty(){\n return this.size()==0;\n }", "public boolean isEmpty() {\n \t return size == 0;\n }", "@Override\r\n\tpublic boolean isEmpty(){\r\n\t\tif(size == 0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean isEmpty() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif (this.size() == 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}", "public boolean is_empty () {\n return is_empty;\r\n }", "@Override\n public boolean isEmpty() {\n if (size == 0) {\n return true;\n }\n return false;\n }", "public boolean empty() {\n return size == 0;\n }", "public boolean empty()\n {\n return isEmpty();\n }", "public boolean isEmpty() {\n \treturn size == 0;\n }", "public boolean isEmpty() {\n \t\treturn size == 0;\n \n \t}", "@Override\n public boolean isEmpty() {\n return this.count() == 0;\n }", "public boolean isEmpty(){ return size==0;}", "public boolean isEmpty(){\r\n\t\treturn size() == 0;\r\n\t}", "public boolean isEmpty( )\r\n\t{\r\n\t\tif (this.size == 0)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean isEmpty(){\n return size == 0;\n }" ]
[ "0.8278996", "0.7961583", "0.79589576", "0.79017615", "0.79017615", "0.79017615", "0.79017615", "0.79017615", "0.79017615", "0.79017615", "0.78858685", "0.78858685", "0.78797346", "0.7875892", "0.7857546", "0.78329855", "0.7816121", "0.78045166", "0.774677", "0.77409625", "0.77409625", "0.77409625", "0.77409625", "0.77409625", "0.7719956", "0.7719956", "0.77112454", "0.7687604", "0.76858103", "0.7674837", "0.7653395", "0.7642376", "0.7637984", "0.7633028", "0.7625566", "0.7625566", "0.76009154", "0.7585735", "0.75817186", "0.7579911", "0.7578926", "0.7578926", "0.7578926", "0.7578926", "0.7578926", "0.75661534", "0.75651556", "0.7552288", "0.75377196", "0.75377196", "0.7506803", "0.7486413", "0.7486413", "0.7482739", "0.7447585", "0.74439794", "0.74333346", "0.7421345", "0.7419086", "0.741143", "0.7408033", "0.73772347", "0.7374408", "0.7355813", "0.7342098", "0.73280704", "0.731424", "0.73107797", "0.73088163", "0.73035294", "0.7299699", "0.7292307", "0.7289237", "0.7288563", "0.7285477", "0.7274411", "0.7263438", "0.7263438", "0.72595525", "0.7257967", "0.72561336", "0.7252447", "0.7252447", "0.7252447", "0.72501016", "0.72480464", "0.72372717", "0.7233427", "0.7232404", "0.72297734", "0.7226956", "0.7225589", "0.72250694", "0.72242564", "0.72225213", "0.7216384", "0.72119844", "0.7209475", "0.7207841", "0.7206348", "0.7180776" ]
0.0
-1
Performs the detector task. At the end of each aggregation period, a flow count and average speed is added.
@Override public void control() { // data is aggregated this time step q.put(qCur); v.put(vCur); if (lane.model.settings.getBoolean("storeDetectorData")) { qHist.add(qCur); vHist.add(vCur); tHist.add(lane.model.t); } // reset count qCur = 0; vCur = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void postRun() {\r\n\t\tthis.calculateFlowBandwidthHops();\r\n\t\tdouble abt = this.ABT();\r\n\t\tdouble agt = this.AGT();\r\n\t\tthis.metrics.add(new ResultMetric(\"ABT\", abt));\r\n\t\tthis.metrics.add(new ResultMetric(\"AGT\", agt));\r\n\t\tthis.metrics.add(new ResultMetric(\"Hops\", this.Hops()));\r\n\t\tthis.metrics.add(new ResultMetric(\"AveHops\", this.Hops()\r\n\t\t\t\t/ this.flows.size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"SuccCount\", this.successfulCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"FailCount\", this.failedCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"ServerNum\", this.dcn\r\n\t\t\t\t.getServerUUIDs().size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"ThroughputPerLink\", abt\r\n\t\t\t\t/ this.dcn.linkCount()));\r\n\t}", "public void run() {\n\t\tSystem.out.println(\"fuseAvg\");\n\t\tAverageConcurrent1 averager = new AverageConcurrent1();\n\t\tValidateFusion validator = new ValidateFusion();\n\t\tfloat avg = averager.averageConcurrent1(sortedSnapshot);\t\t\t \n\t\tvalidator.validate(avg, 0);\n\t\tGlobalInfo.completeThreads++;\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void runAlgorithm() {\r\n if (srcImage == null) {\r\n MipavUtil.displayError(\"AlgorithmRegularizedIsotropicDiffusion.run() Source Image is null\");\r\n return;\r\n }\r\n\r\n if (srcImage.getNDims() == 2 || do25D) {\r\n timeStep = 0.2f;\r\n }\r\n else {\r\n timeStep = 0.15f;\r\n }\r\n\r\n if (srcImage.isColorImage()) {\r\n if (srcImage.getNDims() == 2) {run2DC(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2DC(srcImage.getExtents()[2]); }\r\n else run3DC();\r\n }\r\n else {\r\n if (srcImage.getNDims() == 2) { run2D(1); }\r\n else if (srcImage.getNDims() == 3 && do25D == true) { run2D(srcImage.getExtents()[2]); }\r\n else run3D();\r\n }\r\n }", "public void cycle() {\r\n processTask(); // tune relative frequency?\r\n processConcept(); // use this order to check the new result\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}", "void analysisPostponed();", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "public void run() {\n\t\tboolean flag = true;\n\t\t\n\t\t//Testing if all the threads are initialized with some random value.\n\t\twhile(flag) {\n\t\t\tflag = false;\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tif(GlobalInfo.inputs[i]==-1)\n\t\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint[] snapshot = new int[10];\n\t\tint[] sortedSnapshot;\n\t\t\t\t\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\t//Checking if queue is empty or not\n\t\t\tif(GlobalInfo.pipeLine.peek() != null)\n\t\t\t{\n\t\t\t\tsnapshot = GlobalInfo.pipeLine.poll();\n\t\t\t\t\n\t\t\t\t//printing snapshot\n\t\t\t\tSystem.out.format(\"The snapshot is: \");\n\t\t\t\tfor (int i = 0; i < snapshot.length; i++) {\n\t\t\t\t\tSystem.out.format(\"%d,\", snapshot[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tsortedSnapshot = Arrays.copyOf(snapshot, snapshot.length);\n\t\t\t\t\n\t\t\t\tSortHelper.sortForkAndJoin(sortedSnapshot);\n\t\t\t\t\n\t\t\t\t//printing sorted snapshot\n\t\t\t\tSystem.out.format(\"The sorted snapshot is: \");\n\t\t\t\tfor (int i = 0; i < sortedSnapshot.length; i++) {\n\t\t\t\t\tSystem.out.format(\"%d,\", sortedSnapshot[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tGlobalInfo.completeThreads=0;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Performing fusion of data and validating results\n\t\t\t\tfuseAdd1 adder = new fuseAdd1(sortedSnapshot);\n\t\t\t\tThread adderThread = new Thread(adder);\n\t\t\t\tadderThread.start();\n\t\t\t\t\n\t\t\t\tfuseMultiply1 multiplier = new fuseMultiply1(sortedSnapshot);\n\t\t\t\tThread multiplierThread = new Thread(multiplier);\n\t\t\t\tmultiplierThread.start();\n\t\t\t\t\n\t\t\t\tfuseAverage1 averager = new fuseAverage1(sortedSnapshot);\n\t\t\t\tThread averagerThread = new Thread(averager);\n\t\t\t\taveragerThread.start();\n\t\t\t\t\n\t\t\t\twhile(GlobalInfo.completeThreads < 3){\n\t\t\t\t\t//wait for all three fusions to take place.\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "private void handleAnalysis()\n {\n try {\n InstanceInfo instances = scaler.getInstanceInfo(serviceRef);\n if (handleMemoryLoadIssues(instances)) {\n return;\n }\n governor.recordInstances(serviceRef, instances);\n ScalingAction action;\n if (firstRun) {\n LOG.info(\"Performing initial scaling checks for service {}\", serviceRef);\n action = handleFirstRun(instances);\n firstRun = false;\n } else {\n LOG.debug(\"Scaling checks for service {}\", serviceRef);\n action = analyser.analyseWorkload(instances);\n }\n\n action = governor.govern(serviceRef, action);\n\n switch (action.getOperation()) {\n case SCALE_UP:\n scaleUp(instances, action.getAmount());\n break;\n case SCALE_DOWN:\n scaleDown(instances, action.getAmount());\n break;\n case NONE:\n default:\n break;\n }\n } catch (ScalerException e) {\n LOG.warn(\"Failed analysis run for service {}\", serviceRef, e);\n }\n }", "public void run() {\r\n setStartTime();\r\n ///if ( this instanceof AlgorithmHistoryInterface ) {\r\n /// constructLog();\r\n ///}\r\n\r\n runAlgorithm();\r\n\r\n // write out anything that the algorithm put into the (history) logging string(s)\r\n writeLog();\r\n\r\n computeElapsedTime();\r\n\r\n if (Preferences.debugLevel(Preferences.DEBUG_ALGORITHM)) {\r\n logElapsedTime();\r\n }\r\n\r\n notifyListeners(this);\r\n\r\n /// finalize();\r\n }", "public void aggregateResults()\n\t{\n\t\ttry {\n\t\t\tAggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));\n\t\t\tAggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));\n\t\t\tAggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(15));\n\t\t\tAggregateableEvaluation aggDonaSMO = new AggregateableEvaluation(this.evalSMOList.get(15));\n\t\t\tAggregateableEvaluation aggOffiNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(30));\n\t\t\tAggregateableEvaluation aggOffiSMO = new AggregateableEvaluation(this.evalSMOList.get(30));\n\t\t\tAggregateableEvaluation aggAdviNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(45));\n\t\t\tAggregateableEvaluation aggAdviSMO = new AggregateableEvaluation(this.evalSMOList.get(45));\n\t\t\tAggregateableEvaluation aggMultNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(60));\n\t\t\tAggregateableEvaluation aggMultSMO = new AggregateableEvaluation(this.evalSMOList.get(60));\n\t\t\tAggregateableEvaluation aggGoodNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(75));\n\t\t\tAggregateableEvaluation aggGoodSMO = new AggregateableEvaluation(this.evalSMOList.get(75));\n\t\t\t\n\n\t\t\tfor (int i = 1; i < 15; i++)\n\t\t\t{\n\t\t\t\taggContNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggContSMO.aggregate(this.evalSMOList.get(i));\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 16; i < 30; i++)\n\t\t\t{\n\t\t\t\taggDonaNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggDonaSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 31; i < 45; i++)\n\t\t\t{\n\t\t\t\taggOffiNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggOffiSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 46; i < 60; i++)\n\t\t\t{\n\t\t\t\taggAdviNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggAdviSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 61; i < 75; i++)\n\t\t\t{\n\t\t\t\taggMultNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggMultSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 76; i < 90; i++)\n\t\t\t{\n\t\t\t\taggGoodNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggGoodSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int a = 0; a < 6; a++)\n\t\t\t{\n\t\t\t\tString aggregateText;\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0: aggregateText = \"ContinuingNewsAggregateResults.txt\"; break;\n\t\t\t\tcase 1: aggregateText = \"DonationsAggregateResults.txt\"; break;\n\t\t\t\tcase 2: aggregateText = \"OfficialAggregateResults.txt\"; break;\n\t\t\t\tcase 3: aggregateText = \"AdviceAggregateResults.txt\"; break;\n\t\t\t\tcase 4: aggregateText = \"MultimediaAggregateResults.txt\"; break;\n\t\t\t\tcase 5: aggregateText = \"GoodsAggregateResults.txt\"; break;\n\t\t\t\tdefault: aggregateText = \"CompleteAggregateResults.txt\";\n\t\t\t\t}\n\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(aggregateText));\n\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContNaive.toSummaryString());\n\t\t\t\tbw.write(aggContNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggContNaive.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaNaive.toSummaryString());\n\t\t\t\tbw.write(aggDonaNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaNaive.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiNaive.toSummaryString());\n\t\t\t\tbw.write(aggOffiNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiNaive.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviNaive.toSummaryString());\n\t\t\t\tbw.write(aggAdviNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviNaive.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultNaive.toSummaryString());\n\t\t\t\tbw.write(aggMultNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggMultNaive.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodNaive.toSummaryString());\n\t\t\t\tbw.write(aggGoodNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodNaive.toMatrixString()); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContSMO.toSummaryString());\n\t\t\t\tbw.write(aggContSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggContSMO.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaSMO.toSummaryString());\n\t\t\t\tbw.write(aggDonaSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaSMO.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiSMO.toSummaryString());\n\t\t\t\tbw.write(aggOffiSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiSMO.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviSMO.toSummaryString());\n\t\t\t\tbw.write(aggAdviSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviSMO.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultSMO.toSummaryString());\n\t\t\t\tbw.write(aggMultSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggMultSMO.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodSMO.toSummaryString());\n\t\t\t\tbw.write(aggGoodSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodSMO.toMatrixString()); \t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.close();\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void results() {\n Time t = new Time(System.currentTimeMillis());\n endTime = t;\n\n float t1gpslog, t2gpslog, t3gpslog, bhgpslog, mhgpslog, fhgpslog, nfgpslog,\n t1dtnlog, t2dtnlog, t3dtnlog, bhdtnlog, mhdtnlog, fhdtnlog, nfdtnlog;\n float t1logpercentage, t2logpercentage, t3logpercentage, bhlogpercentage,\n mhlogpercentage, fhlogpercentage, nflogpercentage;\n\n t1gpslog = t2gpslog = t3gpslog = bhgpslog = mhgpslog = fhgpslog = nfgpslog\n = t1dtnlog = t2dtnlog = t3dtnlog = bhdtnlog = mhdtnlog = fhdtnlog = nfdtnlog = 0;\n int xval, yval;\n\n for (int rbucklocationx = 0; rbucklocationx < MAX_X_GRID; rbucklocationx++) {\n for (int rbucklocationy = 0; rbucklocationy < MAX_Y_GRID; rbucklocationy++) {\n if (t1_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n t1GPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n t1gpslog++;\n }\n\n if (t2_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n t2GPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n t2gpslog++;\n }\n\n if (t3_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n t3GPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n t3gpslog++;\n }\n if (bh_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n bhGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n bhgpslog++;\n }\n if (mh_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n mhGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n mhgpslog++;\n }\n if (fh_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n fhGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n fhgpslog++;\n }\n if (nf_grazecoordinate[rbucklocationx][rbucklocationy] == 1) {\n nfgGPSLog.add(new GPSLog(rbucklocationx, rbucklocationy));\n nfgpslog++;\n }\n }\n }\n\n for (int resultloop = 0; resultloop < DATA_MAX_PACKETS; resultloop++)\n {\n if (d1_message[resultloop] != 0) {\n if ((d1_message[resultloop] >> 11) == t1_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n t1DTNLog.add(new GPSLog(xval, yval));\n t1dtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == t2_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n t2DTNLog.add(new GPSLog(xval, yval));\n t2dtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == t3_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n t3DTNLog.add(new GPSLog(xval, yval));\n t3dtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == bh_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n bhDTNLog.add(new GPSLog(xval, yval));\n bhdtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == mh_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n mhDTNLog.add(new GPSLog(xval, yval));\n mhdtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == fh_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n fhDTNLog.add(new GPSLog(xval, yval));\n fhdtnlog++;\n }\n if ((d1_message[resultloop] >> 11) == nf_agentid) {\n xval = ((d1_message[resultloop] >> 6) & 31);\n yval = (d1_message[resultloop] & 63);\n nfgDTNLog.add(new GPSLog(xval, yval));\n nfdtnlog++;\n }\n }\n }\n\n if (t1gpslog != 0) {\n t1logpercentage = (t1dtnlog / t1gpslog) * 100;\n percentageLog.add(\"t1percentage is \" + t1logpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"T1\", t1logpercentage));\n tpslc.getData().add(new XYChart.Data(\"T1\", t1logpercentage));\n });\n t1tp = t1logpercentage;\n }\n\n if (t2gpslog != 0) {\n t2logpercentage = (t2dtnlog / t2gpslog) * 100;\n percentageLog.add(\"t2percentage is \" + t2logpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"T2\", t2logpercentage));\n tpslc.getData().add(new XYChart.Data(\"T2\", t2logpercentage));\n });\n t2tp = t2logpercentage;\n }\n\n if (t3gpslog != 0) {\n t3logpercentage = (t3dtnlog / t3gpslog) * 100;\n percentageLog.add(\"t3percentage is \" + t3logpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"T3\", t3logpercentage));\n tpslc.getData().add(new XYChart.Data(\"T3\", t3logpercentage));\n });\n t3tp = t3logpercentage;\n }\n\n if (bhgpslog != 0) {\n bhlogpercentage = (bhdtnlog / bhgpslog) * 100;\n percentageLog.add(\"bhpercentage is \" + bhlogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"BH\", bhlogpercentage));\n tpslc.getData().add(new XYChart.Data(\"BH\", bhlogpercentage));\n });\n bhtp = bhlogpercentage;\n }\n\n if (mhgpslog != 0) {\n mhlogpercentage = (mhdtnlog / mhgpslog) * 100;\n percentageLog.add(\"mhpercentage is \" + mhlogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"MH\", mhlogpercentage));\n tpslc.getData().add(new XYChart.Data(\"MH\", mhlogpercentage));\n });\n mhtp = mhlogpercentage;\n }\n\n if (fhgpslog != 0) {\n fhlogpercentage = (fhdtnlog / fhgpslog) * 100;\n percentageLog.add(\"fhpercentage is \" + fhlogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"FH\", fhlogpercentage));\n tpslc.getData().add(new XYChart.Data(\"FH\", fhlogpercentage));\n });\n fhtp = fhlogpercentage;\n }\n\n if (nfgpslog != 0) {\n nflogpercentage = (nfdtnlog / nfgpslog) * 100;\n percentageLog.add(\"nfpercentage is \" + nflogpercentage);\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"NF\", nflogpercentage));\n tpslc.getData().add(new XYChart.Data(\"NF\", nflogpercentage));\n });\n nftp = nflogpercentage;\n }\n\n float gpslogSum = t1gpslog + t2gpslog + t3gpslog + bhgpslog + mhgpslog + fhgpslog + nfgpslog;\n float dtnlogSum = t1dtnlog + t2dtnlog + t3dtnlog + bhdtnlog + mhdtnlog + fhdtnlog + nfdtnlog;\n\n \n if (gpslogSum > 0)\n {\n float collectiveThroughput = ((dtnlogSum) / (gpslogSum)) * 100;\n Platform.runLater(()-> {\n tps.getData().add(new XYChart.Data(\"CT\", collectiveThroughput));\n tpslc.getData().add(new XYChart.Data(\"CT\", collectiveThroughput));\n });\n ct = collectiveThroughput;\n }\n\n //Add the Radio Contact Ratio value to the series\n \n if (dtnlogSum > 0)\n {\n rcratio = radioContactLog.size()/dtnlogSum;\n }\n else\n {\n rcratio = 0;\n }\n Platform.runLater(()-> {\n rcrSeries.setYValue(rcratio);\n });\n updateGPSLogSeries();\n updateDataCenterSeries();\n\n //Update the binding properties \n Platform.runLater(()-> {\n simStarted.set(false);\n simInProgress.set(false);\n simCompleted.set(true);\n simNotInProgress.set(true);\n simPaused.set(false);\n simNotStarted.set(true);\n });\n packetModels.clear();\n packetModels.add(new PacktTallyModel(t1gpslog));\n packetModels.add(new PacktTallyModel(t2gpslog));\n packetModels.add(new PacktTallyModel(t3gpslog));\n packetModels.add(new PacktTallyModel(bhgpslog));\n packetModels.add(new PacktTallyModel(mhgpslog));\n packetModels.add(new PacktTallyModel(fhgpslog));\n packetModels.add(new PacktTallyModel(nfgpslog));\n packetModels.add(new PacktTallyModel(gpslogSum));\n packetModels.add(new PacktTallyModel(t1dtnlog));\n packetModels.add(new PacktTallyModel(t2dtnlog));\n packetModels.add(new PacktTallyModel(t3dtnlog));\n packetModels.add(new PacktTallyModel(bhdtnlog));\n packetModels.add(new PacktTallyModel(mhdtnlog));\n packetModels.add(new PacktTallyModel(fhdtnlog));\n packetModels.add(new PacktTallyModel(nfdtnlog));\n packetModels.add(new PacktTallyModel(dtnlogSum));\n packetModels.add(new PacktTallyModel(ct));\n packetModels.add(new PacktTallyModel(radioContactLog.size()));\n packetModels.add(new PacktTallyModel(rcratio));\n \n }", "public void calculate(){\n double totalFlow = this.mFarm.getCompFlow() * this.mFarm.getNumComps();\n double activeOutlets = this.mFarm.getChanPerPen() * this.mFarm.getActivePens()\n + this.mFarm.getActiveChnlWalk();\n double flowPerChnl = totalFlow / activeOutlets;\n double calcPressure = calculateCalcPressure();\n double pressCorr = Math.sqrt((this.mFarm.getReadPressure() + 14.7)/(calcPressure + 14.7));\n double stdCorr = Math.sqrt((this.mFarm.getReadPressure() + 14.7)/(0.0 + 14.7));\n double targetReadingFlow = flowPerChnl / pressCorr;\n double stdReading = flowPerChnl / stdCorr;\n final double MAXSTANDARDFLOW = 16;\n double maxFlowRate = MAXSTANDARDFLOW * pressCorr;\n double targetReadingPercent = Math.round(100 * flowPerChnl / maxFlowRate);\n\n this.mFarm.setTargetFlowDisplay((this.mFarm.getPanelGen() == 4) ? targetReadingPercent : targetReadingFlow);\n\n this.mFarm.setStdReading(stdReading);\n\n }", "private static void runCalculations()\n {\n // TODO Create two different empty concurrent histograms\n\n // Create a sleep time simulator, it will sleep for 10 milliseconds in each call\n BaseSyncOpSimulator syncOpSimulator = new SyncOpSimulSleep(10);\n\n // List of threads\n List<Runner> runners = new LinkedList<>();\n\n // Create the threads and start them\n for (int i = 0; i < NUM_THREADS; i ++)\n {\n // TODO Pass the proper histograms\n final Runner runner = new Runner(syncOpSimulator, null, null);\n runners.add(runner);\n new Thread(runner).start();\n }\n\n // Wait for runners to finish\n runners.forEach(Runner::waitToFinish);\n\n // TODO Show the percentile distribution of the latency calculation of each executeOp call for all threads\n }", "@Override\n public void onStarting(Flow flow) {\n //init flow\n List<BaseFlowStep> steps = flow.getFlowSteps();\n totalNumberOfJobs = steps.size();\n runnigJobs = 0;\n currentFlowId = flow.getID();\n\n // convert the graph generated by cascading toDAGNodes Graph to be sent to ambrose\n AmbroseCascadingGraphConverter convertor = new AmbroseCascadingGraphConverter((SimpleDirectedGraph) Flows.getStepGraphFrom(flow), dagNodeNameMap);\n convertor.convert();\n try {\n statsWriteService.sendDagNodeNameMap(null, this.dagNodeNameMap);\n } catch (IOException e) {\n log.error(\"Couldn't send dag to StatsWriteService\", e);\n }\n Workflow workflow = new Workflow(currentFlowId, currentFlowId, jobs);\n try {\n outputStatsData(workflow);\n } catch (IOException e) {\n log.error(\"Exception outputting workflow\", e);\n }\n }", "public void post(){\n\t\tString stmp = \"graphs/graph_1510816061185\";\n\t\tapkConstruct(); // fills apkinfo\n//\t\tEmulator em = new Emulator(\"Nexus5X\");\n//\t\tem.start();\n\t\tAndroidEmulatorInstrumentator aei = null;\n//\t\tAndroidEmulatorInstrumentator aei = em.getInstrumentator();\n\t\t\n\t\tResultProcessor rp = new ResultProcessor(stmp, aei, this.apkInfo);\n\t\t\n\t\trp.run();\n\t\trp.print();\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tmCpuinfo = ShellHelper.getProc(CPU_INFO_PROC);\n\t\t\t\tupdateCpuStats();\n\t\t\t\tfor (LogicalCpu c : mLogicalCpus) {\n\t\t\t\t\tc.updateFrequency();\n\t\t\t\t\tc.updateGovernor();\n\t\t\t\t\tc.updateTimeInFrequency();\n\t\t\t\t\tc.updateTotalTransitions();\n\t\t\t\t}\n\t\t\t}", "@Override\n public void runTask() {\n final String aid = agencyId();\n // Make API call\n final Value payload = NextBusApi.getVehiclesForAgency(Assets.httpClient(), aid, this.lastTime);\n // Extract information for all vehicles and the payload's timestamp\n final List<Value> vehicleInfos = new ArrayList<>(payload.length());\n for (Item i : payload) {\n if (i.head() instanceof Attr) {\n final String label = i.head().key().stringValue(null);\n if (\"vehicle\".equals(label)) {\n vehicleInfos.add(i.head().toValue());\n } else if (\"lastTime\".equals(label)) {\n this.lastTime = i.head().toValue().get(\"time\").longValue();\n }\n }\n }\n // Relay each vehicleInfo to the appropriate VehicleAgent\n int i = 0;\n for (Value vehicleInfo : vehicleInfos) {\n command(\"/vehicle/\" + aid + \"/\" + vehicleInfo.get(\"id\").stringValue(),\n \"addMessage\",\n // lastTime came separately, manually add it to each vehicleInfo\n vehicleInfo.updatedSlot(\"timestamp\", this.lastTime));\n i++;\n }\n System.out.println(nodeUri() + \": relayed info for \" + i + \" vehicles\");\n }", "public void process( List<Point2D_F64> detectedDots ) {\n\t\t// Reset the tracker\n\t\tcurrentTracks.reset();\n\t\tglobalId_to_track.clear();\n\n\t\tdouble nano0 = System.nanoTime();\n\t\tperformTracking(detectedDots);\n\t\tdouble nano1 = System.nanoTime();\n\t\tperformDetection(detectedDots);\n\t\tdouble nano2 = System.nanoTime();\n\t\tsetTrackDescriptionsAndID();\n\t\tdouble nano3 = System.nanoTime();\n\n\t\tthis.timeTrack = (nano1 - nano0)*1e-6;\n\t\tthis.timeDetect = (nano2 - nano1)*1e-6;\n\t\tthis.timeUpdate = (nano3 - nano2)*1e-6;\n\t}", "public void run() {\n\t\tfor (int x = 0; x < taskNum-1; x++) {\n\t\t\ttasks[x] = taskManager.getTaskSize();\n\t\t}\n\t\tArrays.sort(tasks);\n\n\t\t// process each job\n\t\tfor (int i = taskNum-1; i > 0; i--) {\n\t\t\tcount = taskNum - i;\n\t\t\tint p = tasks[i];\n\t\t\tdelay += p;\n\t\t\ttaskDurations[i] = delay;\n\t\t\tSystem.out.println(\"Experiment: \"+count+\" Task Size: \"+tasks[i]+\" Duration: \"+taskDurations[i]);\n\t\t}\n\t\trunEndTime = System.currentTimeMillis();\n\t}", "public void process(){\n\n for(int i = 0; i < STEP_SIZE; i++){\n String tmp = \"\" + accData[i][0] + \",\" + accData[i][1] + \",\"+accData[i][2] +\n \",\" + gyData[i][0] + \",\" + gyData[i][1] + \",\" + gyData[i][2] + \"\\n\";\n try{\n stream.write(tmp.getBytes());\n }catch(Exception e){\n //Log.d(TAG,\"!!!\");\n }\n\n }\n\n /**\n * currently we don't apply zero-mean, unit-variance operation\n * to the data\n */\n // only accelerator's data is using, currently 200 * 3 floats\n // parse the 1D-array to 2D\n\n if(recognizer.isInRecognitionState() &&\n recognizer.getGlobalRecognitionTimes() >= Constants.MAX_GLOBAL_RECOGNITIOME_TIMES){\n recognizer.resetRecognitionState();\n }\n if(recognizer.isInRecognitionState()){\n recognizer.removeOutliers(accData);\n recognizer.removeOutliers(gyData);\n\n double [] feature = new double [FEATURE_SIZE];\n recognizer.extractFeatures(feature, accData, gyData);\n\n int result = recognizer.runModel(feature);\n String ret = \"@@@\";\n if(result != Constants.UNDEF_RET){\n if(result == Constants.FINISH_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(Constants.FINISH_INFO);\n waitForPlayout(1);\n recognizer.resetLastGesutre();\n recognizer.resetRecognitionState();\n ret += \"1\";\n }else if(result == Constants.RIGHT_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(\"Now please do Step \" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n ret += \"1\";\n }else if(result == Constants.ERROR_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getExpectedGesture());\n waitForPlayout(1);\n ret += \"0\";\n }else if(result == Constants.ERROR_AND_FORWARD_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getLastGesture());\n waitForPlayout(1);\n if(recognizer.getExpectedGesture() <= Constants.STATE_SPACE){\n mUserWarningService.playSpeech(\n \"Step \" + recognizer.getLastGesture() + \"missing \" +\n \". Now please do Step\" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n }else{\n recognizer.resetRecognitionState();\n mUserWarningService.playSpeech(\"Recognition finished.\");\n waitForPlayout(1);\n }\n\n\n ret += \"0\";\n }\n ret += \",\" + Integer.toString(result) + \"@@@\";\n\n Log.d(TAG, ret);\n Message msg = new Message();\n msg.obj = ret;\n mWriteThread.writeHandler.sendMessage(msg);\n }\n }\n\n }", "static void aggregate(String workingDir) {\n String inputPath = workingDir + \"/processed\";\n String outputPath = workingDir + \"/aggregated\";\n\n File input = new File(inputPath);\n File output = new File(outputPath);\n\n System.out.format(\"Process %s to %s\\n\", inputPath, outputPath);\n \n\n AggregatorStrategy[] strategies = new AggregatorStrategy[] {\n new DomainCountCSVAggregatorStrategy(new TruncateDay()),\n new DomainCountCSVAggregatorStrategy(new TruncateMonth()),\n new FullDomainCountCSVAggregatorStrategy(new TruncateMonth()),\n new CodeCountCSVAggregatorStrategy(new TruncateMonth()),\n new CodeCountCSVAggregatorStrategy(new TruncateDay()),\n\n new GroupedFullDomainsAggregatorStrategy(),\n new DOICountCSVAggregatorStrategy(),\n\n new AllCountCSVAggregatorStrategy(new TruncateDay()),\n new AllCountCSVAggregatorStrategy(new TruncateMonth())\n };\n\n \n try {\n List<Thread> threads = new ArrayList<>();\n for (AggregatorStrategy strategy: strategies) {\n System.out.format(\"Aggregate with strategy: %s \\n\", strategy.toString());\n Aggregator aggregator = new Aggregator(input, output, strategy);\n Thread thread = new Thread(aggregator);\n threads.add(thread);\n thread.start(); \n System.out.format(\"Finished aggregate with strategy: %s \\n\", strategy.toString());\n }\n\n for (Thread thread: threads) {\n synchronized(thread) {\n System.out.println(\"Wait...\" + thread.toString());\n thread.join();\n System.out.println(\"Done \" + thread.toString());\n }\n }\n } catch (Exception e) {\n System.err.println(\"Error:\");\n e.printStackTrace();\n System.exit(1);\n }\n }", "@Override\n protected final void process() throws OutOfMemoryError {\n if(!caching()) return;\n \n // get station density\n Vector<EvaluationResult> stationSpeed = Evaluation.getResult(StationSpeed.class, this.opts); \n \n // get section that selected from TICAS GUI\n Section section = this.opts.getSection();\n \n // get stations including the section\n Station[] stations = section.getStations(this.detectorChecker); \n \n Period[] periods = this.opts.getPeriods();\n \n int idx = 0; \n int startIdx = 0;\n if(stationSpeed.size() > 1) startIdx = 1;\n for(int i=startIdx; i<stationSpeed.size(); i++)\n {\n if(printDebug && idx < periods.length) System.out.println(\" - \" + periods[idx++].getPeriodString()); \n \n EvaluationResult res = EvaluationResult.copy(stationSpeed.get(i));\n res = this.removeVirtualStationFromResult(res);\n EvaluationResult accelRes = EvaluationResult.copy(stationSpeed.get(i));\n accelRes = this.removeVirtualStationFromResult(accelRes);\n \n // add first station data (all of data are 0)\n for(int r=accelRes.ROW_DATA_START(); r<res.getRowSize(0); r++) {\n accelRes.set(accelRes.COL_DATA_START(), r, 0D);\n }\n \n for(int c=res.COL_DATA_START()+1; c<res.getColumnSize(); c++)\n {\n int stationIdx = c-res.COL_DATA_START();\n for(int r=res.ROW_DATA_START(); r<res.getRowSize(c); r++)\n {\n double u1 = Double.parseDouble(res.get(c-1, r).toString());\n double u2 = Double.parseDouble(res.get(c, r).toString());\n double distance = TMO.getDistanceInMile(stations[stationIdx-1], stations[stationIdx]);\n double accel = getAcceleration(u1, u2, distance);\n accelRes.set(c, r, accel);\n }\n }\n this.results.add(accelRes);\n } \n hasResult = true;\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\t// create array of values to add, before we start the timer\n\t\tBigDecimal[] values = new BigDecimal[ARRAY_SIZE];\n\t\tfor(int i=0; i<ARRAY_SIZE; i++) values[i] = new BigDecimal(i+1);\n\n\t\tsum = new BigDecimal(0.0);\n\t\tfor(int count=0, i=0; count<this.count; count++, i++) {\n\t\t\tif (i >= values.length) i = 0;\n\t\t\tsum = sum.add( values[i] );\n\t\t}\n\t\t\n\t\n\t}", "private AggResult parse(MeasuredData measuredData, AggResult dest) {\n measuredData.data.computeIfPresent(MetricNames.SEND_QUEUE, (comp, data) -> {\n parseQueueResult((Map<String, Number>) data, dest.getSendQueueResult());\n return data;\n });\n measuredData.data.computeIfPresent(MetricNames.RECV_QUEUE, (comp, data) -> {\n parseQueueResult((Map<String, Number>) data, dest.getRecvQueueResult());\n return data;\n });\n if (firstTasks.contains(measuredData.task)) {\n measuredData.data.computeIfPresent(MetricNames.DURATION, (comp, data) -> {\n dest.addDuration(((Number) data).longValue());\n return data;\n });\n }\n if (rawTopo.get_spouts().containsKey(measuredData.component)) {\n Map<String, Object> data = (Map<String, Object>) measuredData.data.get(MetricNames.COMPLETE_LATENCY);\n if (data != null) {\n data.forEach((stream, elementStr) -> {\n String[] elements = ((String) elementStr).split(\",\");\n int cnt = Integer.valueOf(elements[0]);\n if (cnt > 0) {\n double val = Double.valueOf(elements[1]);\n double val_2 = Double.valueOf(elements[2]);\n ((SpoutAggResult) dest).getCompletedLatency().computeIfAbsent(stream, (k) -> new CntMeanVar())\n .addAggWin(cnt, val, val_2);\n }\n });\n }\n } else {\n Map<String, Object> data = (Map<String, Object>) measuredData.data.get(MetricNames.TASK_EXECUTE);\n if (data != null) {\n data.forEach((stream, elementStr) -> {\n String[] elements = ((String) elementStr).split(\",\");\n int cnt = Integer.valueOf(elements[0]);\n if (cnt > 0) {\n double val = Double.valueOf(elements[1]);\n double val_2 = Double.valueOf(elements[2]);\n ((BoltAggResult) dest).getTupleProcess().computeIfAbsent(stream, (k) -> new CntMeanVar())\n .addAggWin(cnt, val, val_2);\n }\n });\n }\n }\n return dest;\n }", "private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}", "private void run() {\n\t\tfor (int i = 0; i < 1000; i++){\n\t\t\t\n\t\t\tdouble sample = Math.random()*2.0;\n\t\t\tdataset.addObservation(sample);\n\t\t\t\n\t\t\t// stats\n\t\t\tsum += sample;\n\t\t\tn++;\n\t\t\tav = sum/n;\n\n\t\t\t// create new xy dataset\n\t\t\n\t\t\ttry {Thread.sleep(1000L);} catch (Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\t \n\t}", "@Override\n public void onStart() {\n this.dataGenerator = new DataGenerator(this.dataSize, this.dataValues, this.dataValuesBalancing);\n this.dataStream = new DataStream();\n if (this.flowRate != 0)\n this.sleepTime = dataStream.convertToInterval(this.flowRate);\n this.count = 0L;\n// this.me = this.me + \"_\" + getRuntimeContext().getIndexOfThisSubtask();\n new Thread(this::receive).start();\n }", "@Override\n protected void run() {\n for (long number : numbers){\n addTask(new FindFactorsTask(new FindFactorsTask.SearchOptions(number)));\n }\n executeTasks();\n\n //Find common factors\n final Set<Long> set = new HashSet<>(((FindFactorsTask) getTasks().get(0)).getFactors());\n for (int i = 1; i < getTasks().size(); ++i){\n set.retainAll(((FindFactorsTask) getTasks().get(i)).getFactors());\n }\n\n //Find largest factor\n gcf = Collections.max(set);\n }", "private void computePerformance(int ticks) {\n System.out.println(\"Avergae number of packets in queue: \" + (_cumulativePacketsInQueue / (double)ticks));\n \n // Average time spent in queue per packet\n System.out.println(\"Average sojurn time: \" + (_totalSojurnTime / (double)_numPacketsProcessed));\n\n // Percentage idle time\n System.out.println(\"Percentage idle time: \" + ((_totalIdleTime / (double)ticks) * 100) + \"%\");\n\n // Packet loss probability\n System.out.println(\"Packet loss proability: \" + ((_numPacketsDropped / (double)(_numPacketsDropped + _numPacketsProcessed)) * 100) + \"%\");\n }", "public void step() {\n stats.record();\n updateGraph();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\n\t\t\t\ttry{\n\t\t\t\t\n\t\t\t\t\tint staging_status = 1;\n\t\t\t\t\tboolean hasFailed = false;\n\t\t\t\t\t\n\t\t\t\t\tLong id;\n\t\t\t\t\t\n\t\t\t\t\t//Annoying Bug\n\t\t\t\t\tif(arg0.getParameter(\"app_inst_id\") instanceof String)\n\t\t\t\t\t\tid = Long.valueOf((String) arg0.getParameter(\"app_inst_id\"));\n\t\t\t\t\telse\n\t\t\t\t\t\tid = (Long) arg0.getParameter(\"app_inst_id\");\n\t\t\t\t\t\n\t\t\t\t\t//AppInstance inst = AHEEngine.getAppInstanceEntity(id);\n\t\t\t\t\tFileStaging[] in = AHEEngine.getFileStageInByAppInstId(id);\n\t\t\t\t\t\n\t\t\t\t\t//Update AppInstance Status\n\t\t\t\t\tAHEEngine.setCurrentAppInstanceState(id, AppInstanceStates.Data_Staging.toString(),\"Staging Data\");\n\t\t\t\t\t\n\t\t\t\t\t//Sort FileStaging into groups\n\t\t\t\t\tHashMap<String, ArrayList<FileStaging>> map = new HashMap<String, ArrayList<FileStaging>>();\n\t\t\t\t\t\n\t\t\t\t\tfor(int i=0; i < in.length; i++){\n\t\t\t\t\t\t\n\t\t\t\t\t\tURI uri = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\turi = new URI(in[i].getTarget());\n\t\t\t\t\t\t} catch (URISyntaxException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t\tlogger.error(\"Data Staging failed\",e);\n//\t\t\t\t\t\t\tstaging_status = -1;\n//\t\t\t\t\t\t\thasFailed = true;\n\t\t\t\t\t\t\tfailed(id, arg0, \"Data Staging failed\", e);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tResource res = ResourceRegisterAPI.getResourceByBestMatch(uri);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(map.containsKey(res.getResource_interface())){\n\t\t\t\t\t\t\tmap.get(res.getResource_interface()).add(in[i]);\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tArrayList<FileStaging> array = new ArrayList<FileStaging>();\n\t\t\t\t\t\t\tarray.add(in[i]);\n\t\t\t\t\t\t\tmap.put(res.getResource_interface(), array);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\tString[] keyset = map.keySet().toArray(new String[map.size()]);\n\t\t\t\t\t\n\t\t\t\t\tString err = \"\";\n\t\t\t\t\t\n\t\t\t\t\tfor(int i=0; i < keyset.length; i++){\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\tArrayList<FileStaging> temp = map.get(keyset[i]);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tAHEMessage msg = TransferHandler.transfer(temp.toArray(new FileStaging[temp.size()]));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(AHEMessageUtility.hasException(msg)){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString er1 = \"\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(msg.getException() != null){\n\t\t\t\t\t\t\t\t\ter1 = msg.getException()[0];\n\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\tstaging_status = -1;\n//\t\t\t\t\t\t\t\thasFailed = true;\n//\t\t\t\t\t\t\t\tlogger.error(\"Data Staging failed. Transfer Module has returned an exception msg : \" + er1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfailed(id, arg0, \"Data Staging failed. Transfer Module has returned an exception msg : \" + er1,null);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse{\n//\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\tif(msg.getInformation().length > 0){\n//\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t//Update FileStaging with uid\n//\t\t\t\t\t\t\t\t\tfor(int j=0; j < temp.size(); j++){\n//\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t\ttemp.get(j).setIdentifier(msg.getInformation()[0]);\n//\t\t\t\t\t\t\t\t\t\tHibernateUtil.SaveOrUpdate(temp.get(j));\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t}catch(Exception e){\n//\t\t\t\t\t\t\tlogger.error(\"Data Staging failed\",e);\n//\t\t\t\t\t\t\tstaging_status = -1;\n//\t\t\t\t\t\t\thasFailed = true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfailed(id, arg0, \"Data Staging failed\",e);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\n\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(hasFailed) {\n\t\t\t\t\t\tAHEEngine.setCurrentAppInstanceState(id, AppInstanceStates.Error_DataStaging.toString(),\"Data Staging Information Error : \" + err);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tAHEEngine.setCurrentAppInstanceState(id, AppInstanceStates.Workflow_Running.toString(),\"Data Staging Information Submitted\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> result = new HashMap<String, Object>();\n\t\t\t\t\t\n\t\t\t\t\tif(hasFailed){\n\t\t\t\t\t\tstaging_status = -1;\n\t\t\t\t\t\tresult.put(notification_code, \"Data Staging failed for AppInst : \" + id);\n\t\t\t\t\t}\n\t\t\t\t\tresult.put(staging_status_code, staging_status);\n\t\t\n\t\t\t\t\tAHERuntime.getAHERuntime().getAhe_engine().getWorkflowHandler().getStatefulKnowledgeSession().getWorkItemManager().completeWorkItem(arg0.getId(), result);\n\t\t\t\t\t\n\t\t\t\t\t//arg1.completeWorkItem(arg0.getId(), result);\n\t\t\n\t\t\t\t\treturn;\n\t\t\t\t\t\n\t\t\n\t\t\t\t\t\n\t\t\t\t}catch(AHEException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tfailed(arg0, e.getMessage());\n\t\t\t\t}\n\n\t\t\t}", "public void run(){\n\n for (int locIdx = begN; locIdx < endN; locIdx++) {\n\n // do mean-shift for profiles at these locations\n\n for (int profileIdx=0; profileIdx<profiles.get(locIdx).size(); profileIdx++) {\n\n // access the detection\n// int profileLength = profiles.get(locIdx).get(profileIdx).length;\n\n // calculate peaks for the ring 'profileIdx'\n ArrayList<Float> currPeaks = extractPeakIdxsList(profiles.get(locIdx).get(profileIdx), startIdx.get(profileIdx), finishIdx.get(locIdx).get(profileIdx));\n\n //if (currPeaks.size()<3) {\n // // it is not a bifurcation according to MS for this ring, don't calculate further, leave empty fields of peakIdx at this location\n // break;\n //}\n //else {\n // add those points\n for (int pp=0; pp<currPeaks.size(); pp++){\n peakIdx.get(locIdx).get(profileIdx).add(pp, currPeaks.get(pp));\n }\n //}\n\n/*\n\t\t\t\tfor (int k=0; k<nrPoints; k++) {\n start[k] = ((float) k / nrPoints) * profileLength;\n }\n\n\t\t\t\tTools.runMS( \tstart,\n \tprofiles.get(locIdx).get(profileIdx),\n \tmaxIter,\n \tepsilon,\n \th,\n\t\t\t\t\t\t\t\tmsFinish);\n*/\n\n /*\n for (int i1=0; i1<nrPoints; i1++) {\n convIdx.get(locIdx).get(profileIdx)[i1] = (float) msFinish[i1];\n }\n*/\n/*\n int inputProfileLength = profiles.get(locIdx).get(profileIdx).length;\n Vector<float[]> cls = Tools.extractClusters1(msFinish, minD, M, inputProfileLength);\n\t\t\t\textractPeakIdx(cls, locIdx, profileIdx); // to extract 3 major ones (if there are three)\n*/\n\n }\n\n }\n\n }", "public void runAlgorithm() {\r\n \r\n // Algorithm to determine the outer abdominal and inner subcutaneous boundary \r\n if (!initializedFlag) {\r\n init();\r\n }\r\n if (!initializedFlag) {\r\n return;\r\n }\r\n \r\n if (srcImage.getNDims() == 2) {\r\n calc2D();\r\n \r\n } else if (srcImage.getNDims() == 3) {\r\n calc25D();\r\n \r\n }\r\n\r\n ViewUserInterface.getReference().getMessageFrame().append(\"directory: \" +imageDir+\"\\n\", ViewJFrameMessage.DEBUG);\r\n \r\n \tViewJFrameImage frame = new ViewJFrameImage(srcImage);\r\n \tsrcImage.unregisterAllVOIs();\r\n \tsrcImage.registerVOI(abdomenVOI);\r\n \tsrcImage.registerVOI(subcutaneousVOI);\r\n \tframe.saveAllVOIsTo(imageDir);\r\n \t\r\n \tframe.dispose();\r\n \r\n }", "public static void main(String[] args) throws java.lang.Exception {\n double []averageTime = new double[3]; //double array to get average time\n MaxFlow m = new MaxFlow();\n Stopwatch stopwatch = new Stopwatch();\n\n getDataset();\n try{\n System.out.println(\"\\n\"+\"The maximum possible flow is \" + m.fordFulkerson(graph.getAddMatrix(), 0, graph.getNumOfNode()-1));\n for(int i =1; i<=3;i++){\n System.out.println(\"Time \"+i+\" : \"+stopwatch.elapsedTime());\n averageTime[i-1]= stopwatch.elapsedTime();\n }\n\n\n double a = averageTime[0]; //calculate the average time\n double b = averageTime[1];\n double c = averageTime[2];\n double average = (a+b+c)/3;\n System.out.println(\"\\nAverage Time: \"+average);\n\n graph.printArray();\n\n }catch (NullPointerException e){\n System.out.println(\"\");\n }\n }", "@Override\n\tpublic void pollCycle()\n\t{\n\t\tint successfulExecutions = 0;\n\t\tint unsuccessfulExecutions = 0;\n\t\tlong totalResponseTime = 0, AVGResponseTime;\n\t\tlong respTime;\n\t\tfor (Script s : scripts)\n\t\t{\n\t\t\trespTime = System.currentTimeMillis();\n\t\t\tList<SimpleAgentMetric> metrics = s.runScript();\n\t\t\trespTime = System.currentTimeMillis() - respTime;\n\t\t\ttotalResponseTime += respTime;\n\t\t\tif(metrics == null || metrics.size()==0)\n\t\t\t{\n\t\t\t\tlogger.debug(\"Script failed: \" + s);\n\t\t\t\tunsuccessfulExecutions++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlogger.debug(\"Ran script: \" + s + \", Resp time: \" + (respTime) + \"ms\");\n\t\t\t\tsuccessfulExecutions++;\n\t\t\t\tfor (SimpleAgentMetric m : metrics)\n\t\t\t\t{\n\t\t\t\t\treportMetric(m);\n\t\t\t\t\tlogger.debug(\"Reported metric: \" + m);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tAVGResponseTime = totalResponseTime/(successfulExecutions+unsuccessfulExecutions);\n\t\tlogger.debug(\"Successful executions: \" + successfulExecutions + \", Unsuccessful executions: \" + unsuccessfulExecutions + \", AVG resp time per script execution: \" + AVGResponseTime + \"ms\");\n\t\treportMetric(HEALTH_METRIC_PREFIX + \"/SuccessfulExecutions\", \"Integer\", successfulExecutions);\n\t\treportMetric(HEALTH_METRIC_PREFIX + \"/UnsuccessfulExecutions\", \"Integer\", unsuccessfulExecutions);\n\t\treportMetric(HEALTH_METRIC_PREFIX + \"/TotalResponseTime\", \"milliseconds\", totalResponseTime);\n\t\treportMetric(HEALTH_METRIC_PREFIX + \"/AveragePerScriptResponseTime\", \"milliseconds\", AVGResponseTime);\n\t}", "public void calculations(){\n\n int temp_size1 = fight_list.get(0).t1.members.size();\n int[] t1_counter = new int[temp_size1 + 1]; //counter for deaths: 0, 1, 2..., party size.\n float t1_avg = 0; //Average number of deaths.\n\n //We don't need to calculate for t2 right now, because t2 is just monsters.\n //temp_size = fight_list.get(0).t2.members.size();\n //int[] t2_counter = new int[temp_size + 1];\n\n for(FightResult fig : this.fight_list){\n int i = 0;\n while(i != fig.t1_deaths){\n i++;\n }\n t1_counter[i]++;\n t1_avg += fig.t1_deaths;\n }//end for\n\n System.out.println(t1_avg);\n System.out.println(Float.toString(t1_avg/fight_list.size()) + \" / \" + Integer.toString(temp_size1));\n\n String axis = \"# of deaths: \\t\";\n int axis_int = 0;\n String t1_results = \"Happened: \\t\";\n for(int i : t1_counter){\n axis += Integer.toString(axis_int++) + \"\\t\";\n t1_results += Integer.toString(i) + \"\\t\";\n }//end for\n System.out.println(axis);\n System.out.println(t1_results);\n\n float tpk_amount = t1_counter[temp_size1]; //by taking the size, we take the item at the end of the array. In this case, the number where everyone dies.\n tpk_amount = (tpk_amount/fight_list.size())*100;\n System.out.println(\"Probability of TPK: \" + Float.toString(tpk_amount) + \" %.\");\n\n System.out.println(\"\\n--------\\n\");\n }", "private void test() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tBpmnModelInstance modelInstance = Bpmn.readModelFromFile(loadedFile);\n\t\tJsonEncoder jsonEncoder = new JsonEncoder(loadedFile.getName());\n\t\tBpmnBasicMetricsExtractor basicExtractor = new BpmnBasicMetricsExtractor(modelInstance, jsonEncoder);\n\t\tBpmnAdvancedMetricsExtractor advExtractor = new BpmnAdvancedMetricsExtractor(basicExtractor, jsonEncoder);\n\t\tlong loadTime = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(\"Tempo load del file: \" + loadTime + \"ms\");\n\t\tbasicExtractor.runMetrics();\n\t\tlong basicTime = System.currentTimeMillis() - loadTime - startTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche di base: \" + basicTime + \"ms\");\n\t\tadvExtractor.runMetrics();\n\t\tlong advTime = System.currentTimeMillis() - basicTime - startTime - loadTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche avanzate: \" + advTime + \"ms\");\n\t\tjsonEncoder.exportJson();\n\t\tMySqlInterface db = new MySqlInterface();\n\t\tdb.connect();\n//\t\tdb.createTables(jsonEncoder);\n//\t\tdb.createAndInsertMetricsInfosTable();\n//\t\tdb.saveMetrics(jsonEncoder);\n//\t\tdb.closeConnection();\n\t}", "void postProcessData(){\n collectData = false;\n blueNumSteps = 0;\n List<double[]> inputListBlue = new ArrayList<>();\n List<double[]> outputListBlue = new ArrayList<>();\n for(int i = 0; i < blueList.size();i++){\n inputListBlue.add(new double[]{blueList.get(i).getYPos(), blueList.get(i).frame});\n }\n //Reset to zero\n while(blueList.size()>0){\n blueList.remove(0);\n }\n //Reset to zero\n for (int i = 0; i < outputListBlue.size(); i++) {\n outputListBlue.remove(0);\n }\n\n\n outputListBlue = cmwa(inputListBlue);\n outputListBlue = cmwa(outputListBlue);\n outputListBlue = cmwa(outputListBlue);\n outputListBlue = cmwa(outputListBlue);\n outputListBlue = cmwa(outputListBlue);\n\n\n blueNumSteps = findMax(outputListBlue);\n\n //Reset to zero\n for (int i = 0; i < inputListBlue.size(); i++) {\n inputListBlue.remove(0);\n }\n\n //Process red steps\n redNumSteps = 0;\n List<double[]> outputListRed = new ArrayList<>();\n List<double[]> inputListRed = new ArrayList<>();\n\n for(int i = 0; i < redList.size();i++){\n inputListRed.add(new double[]{redList.get(i).getYPos(), redList.get(i).frame});\n }\n //Reset to zero\n while(redList.size()>0){\n redList.remove(0);\n }\n //Reset to zero\n for (int i = 0; i < outputListRed.size(); i++) {\n outputListRed.remove(0);\n }\n\n outputListRed = cmwa(inputListRed);\n outputListRed = cmwa(outputListRed);\n outputListRed = cmwa(outputListRed);\n outputListRed = cmwa(outputListRed);\n outputListRed = cmwa(outputListRed);\n\n redNumSteps = findMax(outputListRed);\n\n //Reset to zero\n for (int i = 0; i < inputListRed.size(); i++) {\n inputListRed.remove(0);\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n enableVideo = false;\n System.out.println(\"RED STEPS:\"+ redNumSteps);\n System.out.println(\"BLUE STEPS:\"+ blueNumSteps);\n if(Math.abs(blueNumSteps - redNumSteps) < 2 && Math.abs(stepCount - (blueNumSteps + redNumSteps))<2) {\n stepText.setText(USER_NAME + \"'s step length: \" + String.format(\"%.3f\", STEP_LENGTH) + \"m\" + \"\\n\" + \"Number of Steps: \" + totalNumSteps + \"\\n\" + \"Collection Complete!\");\n saveData();\n }\n else{\n stepText.setText(USER_NAME + \"'s step length: \" + String.format(\"%.3f\", STEP_LENGTH) + \"m\"+\"\\n\" + \"Data Collection Error: Steps do not Match\");\n }\n }\n });\n }", "@Override\n\tpublic void run() {\n\t\ttry{\n\t\tfor(String anchor: records){\n\t\t\tString []stationData = anchor.split(\",\");\n\t\t\tif(stationData[2].equals(\"TMAX\")){\n\t\t\t\tString stationId = stationData[0];\n\t\t\t\tString temp = stationData[3];\n\t\t\t\tif(AverageTMAXNoLock.stations.containsKey(stationId)){\n\t\t\t\t\tStation entry = AverageTMAXNoLock.stations.get(stationId);\n\t\t\t\t\tentry.setListRecords(entry.getListRecords()+1);\n\t\t\t\t\tentry.setTmax(entry.getTmax()+Double.parseDouble(temp));\n\t\t\t\t\tAverageTMAXNoLock.stations.put(stationId,entry);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tStation entry = new Station(stationId,Double.parseDouble(temp),(double) 1,0.0);\n\t\t\t\t\tAverageTMAXNoLock.stations.put(stationId,entry);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t}catch(Exception e){}\n\t}", "public void performAnalysis (Launcher launcher) {\n //Iterates through each class and method the program was supplied with\n for (CtClass<?> classObject : Query.getElements(launcher.getFactory(), new TypeFilter<CtClass<?>>(CtClass.class))) {\n for (CtMethod<?> methodObject : Query.getElements(classObject, new TypeFilter<CtMethod<?>>(CtMethod.class))) {\n //Counts the number of various types of decision points that calculate cyclomatic complexity\n int ifCount = 0, conditionCount = 0, forCount = 0, whileCount = 0, caseCount = 0;\n ifCount = countIfs(methodObject);\n conditionCount = countConditions(methodObject);\n forCount = countFors(methodObject);\n whileCount = countWhiles(methodObject);\n caseCount = countCases(methodObject);\n localresults.put(\"IF\", ifCount);\n localresults.put(\"CONDITIONS\", conditionCount);\n localresults.put(\"FOR\", forCount);\n localresults.put(\"WHILE\", whileCount);\n localresults.put(\"CASE\", caseCount);\n //Totals the values per method and adds them to the hashmap\n int total = ifCount + conditionCount + forCount + whileCount + caseCount;\n total += 1;\n totalCMCValue += total;\n classCMCScores.put(classObject.getQualifiedName()+\".\"+methodObject.getSimpleName(), total);\n }\n }\n }", "@Override\n public void run() {\n if (checkFailure()) {\n throw new InvalidInputException(\"任务结果计算器暂时无法工作,因为未满足条件\");\n } else {\n analysisDistribution();\n File file = writeFile();\n task.setResult(OSSWriter.upload(file));\n task.setHasResult(true);\n taskController.update(task);\n }\n }", "public void run()\n {\n //while (still executing jobs on grid)\n // attempt to sample data\n while (processingJobs)\n {\n //if (not paused)\n // sample data\n if (!paused)\n {\n //get the storage element object appropriate for this thread\n int ind = nodeChoice.indexOf('e');\n String siteno = nodeChoice.substring(ind+1);\n int siteID = Integer.parseInt(siteno);\n site = _gc.findGridSiteByID(siteID);\n StorageElement se = site.getSE();\n //sample time\n long timeMillis = time.getRunningTimeMillis();\n timeSecs = (int)(timeMillis/1000);\n //sample capacity\n capacity = se.getCapacity();\n float usage = (capacity - se.getAvailableSpace())/100;\n /* if (range values identical for last three readings)\n * remove intermediate statistic\n */\n if (usage==prevUsage&&usage==prevPrevUsage)\n { \n int itemCount = seriesSEUVTime.getItemCount();\n if (itemCount>2)\n seriesSEUVTime.remove(itemCount-1);\n } \n prevPrevUsage = prevUsage;\n prevUsage = usage;\n seriesSEUVTime.add(timeSecs, usage);\n pieDataset.setValue(\"Used Storage (GB)\", new Integer((int)((capacity - se.getAvailableSpace())/100)));\n pieDataset.setValue(\"Free Storage (GB)\", new Integer((int)((se.getAvailableSpace())/100)));\n //if (not saving all graphs)\n // try to refresh statistics\n if(!printingAll)\n this.sendDatatoGUI();\n }\n \n //delay next sample by short time\n try\n {\n if (paused)\n sleep(Integer.MAX_VALUE);\n else\n sleep(samplingDelay);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n } \n }\n \n //out here only when all jobs have finished.\n //thread shall sleep for long time but can be \n //re-awakened if user wants to see statistics \n //from this object when run is complete.\n while (true)\n {\n try\n {\n sleep(Integer.MAX_VALUE);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n }\n }\n }", "private void evaluateData () {\n long rows = DatabaseUtils.longForQuery(sqliteDBHelper.openSqlDatabaseReadable(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME, null);\r\n // calculate the amount of tasks (thread) depending on the MaxBatchSize\r\n tasks = rows >= MaxBatchSize? (int)(rows/MaxBatchSize + 1):1;\r\n // set the amount of finished tasks to 0\r\n finished = 0;\r\n // send the amount of task to the main activity so it can be displayed in the progress dialog\r\n sendTaskAmount(tasks + 1);\r\n // create a thread pool with tasks amount of threads\r\n final ExecutorService executorService = Executors.newFixedThreadPool(tasks);\r\n // create a list which holds all the tasks to be executed\r\n final List<ProcessingDataHandler> taskList = new LinkedList<>();\r\n // for each task create a batch of MaxBatchSize rows to evaluate\r\n for (int i = 0; i < tasks; i++) {\r\n // pass the offset (where to start) and the limit (how many rows)\r\n taskList.add(new ProcessingDataHandler(i*MaxBatchSize, MaxBatchSize));\r\n }\r\n // invoke all the task at once\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n executorService.invokeAll(taskList);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }).start();\r\n\r\n updateProgressDialog();\r\n }", "@Override\n\tprotected void startEverything() {\n\t\ttracker.dropAllTracks();\n\t\tcreateAssistedTracker(maxIterations,4);\n\t\tdistortAlg = new MotionMosaicPointKey<I,T>(trackerModel,fitModel,40,0.3,pruneThreshold,0.8);\n\t\tT initTran = ConvertTransform_F64.convert(createInitialTransform(), fitModel.createInstance());\n\t\tdistortAlg.setInitialTransform(initTran);\n\t\ttotalKeyFrames = 0;\n\t\tmotionRender.clear();\n\n\t\tstartWorkerThread();\n\t}", "@Override\n\tpublic void run() {\n\n\t\t// create array of values to add, before we start the timer\n\t\tDouble[] values = new Double[ARRAY_SIZE];\n\t\tfor (int i = 0; i < ARRAY_SIZE; i++)\n\t\t\tvalues[i] = new Double(i + 1);\n\n\t\tsum = new Double(0.0);\n\t\t// count = loop counter, i = array index\n\t\tfor (int count = 0, i = 0; count < counter; count++, i++) {\n\t\t\tif (i >= values.length)\n\t\t\t\ti = 0;\n\t\t\tsum = sum + values[i];\n\t\t}\n\n\t}", "public final void process() {\n parseReport();\n checkThreshold();\n updateQualityXML();\n }", "private void exportData() throws Exception{\n logger.info(\"Beginning export task...\");\n // Set up some maps to hold summary data\n Map<String, Integer> mostCommonCodeFirst = new HashMap<>();\n Map<String, Integer> mostCommonCodeSecond= new HashMap<>();\n Map<String, Integer> mostCommonCodeThird = new HashMap<>();\n\n // Get the delimiters\n StillFaceCode delim1 = null;\n StillFaceCode delim2 = null;\n\n for(StillFaceCode c : StillFaceModel.getCodeList()){\n if(c.getDelimiterIndex() == 1){\n delim1 = c;\n }\n else if(c.getDelimiterIndex() == 2){\n delim2 = c;\n }\n }\n\n // Collect the summary data\n int delimiterIndex = 0;\n for(StillFaceData data : StillFaceModel.getInstance().getVisibleDataList()){\n // Code stats\n String codeName = data.getCode().getName();\n if(data.getCode().getDelimiterIndex() > delimiterIndex){\n delimiterIndex = data.getCode().getDelimiterIndex();\n }\n // Get the common code counts for each video segment\n switch(delimiterIndex){\n case 0:\n if(mostCommonCodeFirst.containsKey(codeName)){\n int count = mostCommonCodeFirst.get(codeName);\n mostCommonCodeFirst.put(codeName, count + 1);\n }\n else{\n mostCommonCodeFirst.put(codeName, 1);\n }\n break;\n\n case 1:\n if(mostCommonCodeSecond.containsKey(codeName)){\n int count = mostCommonCodeSecond.get(codeName);\n mostCommonCodeSecond.put(codeName, count + 1);\n }\n else{\n mostCommonCodeSecond.put(codeName, 1);\n }\n break;\n\n case 2:\n if(mostCommonCodeThird.containsKey(codeName)){\n int count = mostCommonCodeThird.get(codeName);\n mostCommonCodeThird.put(codeName, count + 1);\n }\n else{\n mostCommonCodeThird.put(codeName, 1);\n }\n break;\n\n\n }\n\n }\n // Count everything up\n List<StillFaceCodeCount> firstCounts = new ArrayList<>();\n List<StillFaceCodeCount> secondCounts = new ArrayList<>();\n List<StillFaceCodeCount> thirdCounts = new ArrayList<>();\n for(Map.Entry<String, Integer> entry : mostCommonCodeFirst.entrySet()){\n firstCounts.add(new StillFaceCodeCount(entry.getKey(), entry.getValue()));\n }\n for(Map.Entry<String, Integer> entry : mostCommonCodeSecond.entrySet()){\n secondCounts.add(new StillFaceCodeCount(entry.getKey(), entry.getValue()));\n }\n for(Map.Entry<String, Integer> entry : mostCommonCodeThird.entrySet()){\n thirdCounts.add(new StillFaceCodeCount(entry.getKey(), entry.getValue()));\n }\n // Sort the counts\n Collections.sort(firstCounts);\n Collections.sort(secondCounts);\n Collections.sort(thirdCounts);\n // Write them to a file\n StillFaceCSVParser parser = new StillFaceCSVParser();\n List<List<StillFaceCodeCount>> summaryList = new ArrayList<>();\n summaryList.add(firstCounts);\n summaryList.add(secondCounts);\n summaryList.add(thirdCounts);\n boolean success = parser.serializeToCSVFromCodedVideoData(\n new StillFaceVideoData(StillFaceModel.getInstance().getVisibleDataList()), this.filepath)\n && parser.serializeSummaryToCSVFromLists(delim1, delim2, summaryList, this.summaryFilepath);\n if(!success){\n logger.warning(\"Export failed\");\n throw new Exception(\"Failed to export data. See log for more information.\");\n }\n }", "private void processData() {\n\t\tfloat S, M, VPR, VM;\n\t\tgetCal();\n\t\tgetTimestamps();\n\t\t\n \n\t\tfor(int i = 0; i < r.length; i++) {\n\t\t\t//get lux\n\t\t\tlux[i] = RGBcal[0]*vlam[0]*r[i] + RGBcal[1]*vlam[1]*g[i] + RGBcal[2]*vlam[2]*b[i];\n \n\t\t\t//get CLA\n\t\t\tS = RGBcal[0]*smac[0]*r[i] + RGBcal[1]*smac[1]*g[i] + RGBcal[2]*smac[2]*b[i];\n\t\t\tM = RGBcal[0]*mel[0]*r[i] + RGBcal[1]*mel[1]*g[i] + RGBcal[2]*mel[2]*b[i];\n\t\t\tVPR = RGBcal[0]*vp[0]*r[i] + RGBcal[1]*vp[1]*g[i] + RGBcal[2]*vp[2]*b[i];\n\t\t\tVM = RGBcal[0]*vmac[0]*r[i] + RGBcal[1]*vmac[1]*g[i] + RGBcal[2]*vmac[2]*b[i];\n \n\t\t\tif(S > CLAcal[2]*VM) {\n\t\t\t\tCLA[i] = M + CLAcal[0]*(S - CLAcal[2]*VM) - CLAcal[1]*683*(1 - pow((float)2.71, (float)(-VPR/4439.5)));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCLA[i] = M;\n\t\t\t}\n\t\t\tCLA[i] = CLA[i]*CLAcal[3];\n\t\t\tif(CLA[i] < 0) {\n\t\t\t\tCLA[i] = 0;\n\t\t\t}\n \n\t\t\t//get CS\n\t\t\tCS[i] = (float) (.7*(1 - (1/(1 + pow((float)(CLA[i]/355.7), (float)1.1026)))));\n \n\t\t\t//get activity\n\t\t\ta[i] = (float) (pow(a[i], (float).5) * .0039 * 4);\n\t\t}\n\t}", "protected void execute() {\n\t\t\r\n\t\tParticleAnalysisReport[] reports = simpleVision.getFrame();\r\n\t\t for (int i = 0; i < reports.length; i++) { // print results\r\n ParticleAnalysisReport r = reports[i];\r\n SmartDashboard.putString(\"Particle\" + i, r.center_mass_x + \", \" + r.center_mass_y);\r\n\t\t }\r\n\t\t\r\n\t}", "protected void execute() {\n \t\n \tdouble angleDifference;\n \t\n \tif (useTargetAngle) {\n \t\tangleDifference = Math.abs(Gyroscope.simplifyAngle(Robot.gyroscope.getGlobalRotation()) - Gyroscope.simplifyAngle(targetAngle));\n \t}\n \telse {\n \t\tangleDifference = Math.abs(Robot.gyroscope.getRotation());\n \t}\n \t\n \tif (angleDifference > ROTATION_THRESHOLD) {\n \t\tif (Robot.gyroscope.getRotation() > 0) {\n \t\t\tadjustPercentRight = ROTATION_PERCENT;\n \t\t\tadjustPercentLeft = 1;\n \t\t}\n \t\telse {\n \t\t\tadjustPercentRight = 1;\n \t\t\tadjustPercentLeft = ROTATION_PERCENT;\n \t\t}\n \t}\n \t\n \trightEncoderPID.setSetpoint(getVelocity() * adjustPercentRight);\n \tleftEncoderPID.setSetpoint(getVelocity() * adjustPercentLeft);\n \t\n \t//print out debug data to smartdash\n \tSmartDashboard.putNumber(\"Left Encoder Vel:\", Robot.drive.leftEncoder.getRate());\n \tSmartDashboard.putNumber(\"Right Encoder Vel\", Robot.drive.rightEncoder.getRate());\n \t\n \tSmartDashboard.putNumber(\"Left Encoder Dist\", Robot.drive.leftEncoder.getDistance());\n \tSmartDashboard.putNumber(\"Right Encoder Dist\", Robot.drive.leftEncoder.getDistance());\n \t\n \tupdateState();\n \t\n \t//keep at low speed if decelerating period is up\n \tif (currentState == DriveState.decelerating && (timer.get() > tAccelerating)) {\n \trightEncoderPID.setSetpoint(FINAL_ADJUST_SPEED);\n \tleftEncoderPID.setSetpoint(FINAL_ADJUST_SPEED);\n \t}\n }", "@Override\n\t\tprotected Void doInBackground(Void... arg0) {\n\t\t\tInstance inst = new DenseInstance(mFeatLen);\n\t\t\tinst.setDataset(mtestSet);\n\t\t\tint blockSize = 0;\n\t\t\tFFT fft = new FFT(Globals.ACCELEROMETER_BLOCK_CAPACITY);\n\t\t\t\n\t\t\tdouble[] accBlock = new double[Globals.ACCELEROMETER_BLOCK_CAPACITY];\n\t\t\tdouble[] re = accBlock;\n\t\t\tdouble[] im = new double[Globals.ACCELEROMETER_BLOCK_CAPACITY];\n\n\t\t\tdouble max = Double.MIN_VALUE;\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\t// need to check if the AsyncTask is cancelled or not in the while loop\n\t\t\t\t\tif (isCancelled () == true)\n\t\t\t\t {\n\t\t\t\t return null;\n\t\t\t\t }\n\t\t\t\t\t\n\t\t\t\t\taccBlock[blockSize++] = mAccBuffer.take().doubleValue();\n\t\t\t\t\tif (blockSize == Globals.ACCELEROMETER_BLOCK_CAPACITY) {\n\t\t\t\t\t\tblockSize = 0;\n\t\t\t\t\t\tmax = .0;\n\t\t\t\t\t\tfor (double val : accBlock) {\n\t\t\t\t\t\t\tif (max < val) {\n\t\t\t\t\t\t\t\tmax = val;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfft.fft(re, im);\n\n\t\t\t\t\t\tfor (int i = 0; i < re.length; i++) {\n\t\t\t\t\t\t\tdouble mag = Math.sqrt(re[i] * re[i] + im[i]\n\t\t\t\t\t\t\t\t\t* im[i]);\n\t\t\t\t\t\t\tinst.setValue(i, mag);\n\t\t\t\t\t\t\tim[i] = .0; // Clear the field\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinst.setValue(Globals.ACCELEROMETER_BLOCK_CAPACITY, max);\n\t\t\t\t\t\tinst.setValue(mClassAttribute, Globals.CLASS_LABEL_STANDING);\n\t\t\t\t\t\tmtestSet.add(inst);\n\t\t\t\t\t\tLog.i(\"new instance\", mtestSet.size() + \"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(mtestSet.numInstances() == 64){\n\t\t\t\t\t\t\tfor(int i =0; i < mtestSet.numInstances(); i++){\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tdouble clsLabel = mtreeClassifier.classifyInstance(mtestSet.instance(i));\n\t\t\t\t\t\t\t\t\tpublishProgress(clsLabel);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n//\t\t\t\ttry {\n//\t\t\t\t\tmEval.evaluateModel(mtreeClassifier, mtestSet);\n//\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\te.printStackTrace();\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println(mEval.toSummaryString(\"\\nResults\\n======\\n\", false));\n\t\t\t}", "public void runAnalysis ()\n\t{\n\t\tif (isBatchFile()) { runBatch(false); return; }\n\n\t\tfinal String modelText = editor.getText();\n\t\tString iterations = toolbar.getIterations();\n\t\tmodel = Model.compile (modelText, frame);\n\t\tif (model == null) return;\n\t\tTask task = model.getTask();\n\t\tfinal int n = (iterations.equals(\"\")) ? task.analysisIterations()\n\t\t\t\t: Integer.valueOf(iterations);\n\t\t(new SwingWorker<Object,Object>() {\n\t\t\tpublic Object doInBackground() {\n\t\t\t\tif (!core.acquireLock(frame)) return null;\n\t\t\t\tstop = false;\n\t\t\t\tupdate();\n\t\t\t\tclearOutput();\n\t\t\t\toutput (\"> (run-analysis \" + n + \")\\n\");\n\t\t\t\tif (model != null && model.getTask() != null) \n\t\t\t\t{\n\t\t\t\t\tTask[] tasks = new Task[n];\n\t\t\t\t\tfor (int i=0 ; !stop && i<n ; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tmodel = Model.compile (modelText, frame);\n\t\t\t\t\t\t//brainPanel.setVisible (false);\n\t\t\t\t\t\tshowTask (model.getTask());\n\t\t\t\t\t\tmodel.setParameter (\":real-time\", \"nil\");\n\t\t\t\t\t\tmodel.run();\n\t\t\t\t\t\tmodel.getTask().finish();\n\t\t\t\t\t\ttasks[i] = model.getTask();\n\t\t\t\t\t}\n\t\t\t\t\tif (!stop && model!=null)\n\t\t\t\t\t\tmodel.getTask().analyze (tasks, true);\n\t\t\t\t\t//model = null;\n\t\t\t\t\thideTask();\n\t\t\t\t}\n\t\t\t\tcore.releaseLock (frame);\n\t\t\t\tupdate();\n\t\t\t\treturn null;\n\t\t\t}\n }).execute();\n\t}", "public void submitCollectAllTrafficTask() {\n\t\tL.i(this.getClass(), \"CollectSysTrafficTask()...\");\n\t\tsubmitCollectAppsTrafficTask();\n\t\taddTask(new CollectSysTrafficTask());\n\t\tsubmitMonitorDeviceTrafficTask();\n\t\tthis.runTask();\n\t}", "@Override\n\tpublic void run() {\n\t\tif(algoRuning==1){\n\t\t\tspDist.runAlgDist();\n\t\t}else{\n\t\t\tspTime.runAlgTime();\n\t\t}\n\t}", "@Override\r\n\tpublic void doWorkFlowAnalysis() {\n\t\t\r\n\t}", "protected void execute() {\n\t\tdouble error = -1;\n\t\tdouble proportion = 1;\n\t\tdouble coefficient = 1;\n\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartDepth)) { error = Robot.depth_.get_degrees_x(); }\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartCubeSearch)) { error = Robot.cube_.get_degrees_x(); }\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.StartRFT)) { error = Robot.rft_.get_degrees_x(); }\n\t\tif(vision.equalsIgnoreCase(SocketVisionSender.PlatformBlueSearch) || \n\t\t\t\tvision.equalsIgnoreCase(SocketVisionSender.PlatformRedSearch)) { error = Robot.platform_.get_degrees_x(); }\n\t\t\n\t\tif(error == -1) {\n\t\t\tproportion = Drivetrain.kPGyroConstant * (Robot.drivetrain.getGyroHeading() - initHeading);\n\n\t\t} else {\n\t\t\tproportion = error * kP;\n\t\t\t//drive vision\n\t\t\tif(error == 0) initHeading = Robot.drivetrain.getGyroHeading();\n\t\t}\n\n\t\tcoefficient = (initDistance - Robot.drivetrain.getRightEncoderPos(0)) / initDistance;\n\t\tcoefficient = Robot.drivetrain.thresholdVBus(coefficient);\n\n\t\tRobot.drivetrain.tankDrive(coefficient * (vBus - proportion), -coefficient * (vBus + proportion));\n\n\t}", "public void processTasks (List tasks) {\n if (!allNecessaryAssetsReported()) { // if need subordinates aren't there yet, way 10 seconds\n getAllAssets ();\n delayedTasks.addAll (tasks);\n\n if (logger.isInfoEnabled()) {\n\tlogger.info (getName() + \" - necessary subords have not reported, so waiting \" + waitTime + \n\t\t \" millis to process \" + delayedTasks.size () + \n\t\t \" tasks.\");\n\treportMissingAssets ();\n }\n\n examineBufferAgainIn (waitTime); // wait 10 seconds and check again\n }\n else { // ok, all subords are here, lets go!\n if (logger.isInfoEnabled()) {\n\tlogger.info (getName() + \" - all necessary subords have reported, so processing \" + tasks.size() + \n\t\t \" tasks.\");\n }\n\n tasks.addAll (delayedTasks);\n delayedTasks.clear();\n super.processTasks (tasks);\n }\n }", "public void run() {\n\t\tcurrentTime = 0;\n\t\twhile (currentTime < timeLimit) {\n\t\t\t// add chosen task(s) to the scheduler\n\t\t\taddTaskToServer();\n\t\t\t// calculate the peak hour in every step and empty queue time\n\t\t\tcalculatePeakHour();\n\t\t\tcalculateEmptyQueueTime();\n\t\t\t// show the evolution of the queues\n\t\t\tframe.displayData(getTasks(), generatedTasks, currentTime);\n\t\t\tcurrentTime++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(simulationSpeed);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// the time is over, stop other threads from running\n\t\tframe.displayData(getTasks(), generatedTasks, currentTime);\n\t\tthis.scheduler.stopServers();\n\t\t// wait one more second before showing statistics\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tframe.dispayStatistics();\n\n\t\twriter.close();\n\t}", "public void runExploration() {\n List<Queue<String>> smallSkierQueues = partitionQueue(skierQueue);\n List<Queue<String>> smallLiftQueues = partitionQueue(liftQueue);\n List<Queue<String>> smallhourQueues = partitionQueue(hourQueue);\n\n // run threads here\n long startTime = System.nanoTime();\n for(int i = 0; i < 8; i++) {\n SmallSkierThread runSmallSkier = new SmallSkierThread(smallSkierQueues.get(i));\n SmallLiftThread runSmallLift = new SmallLiftThread(smallLiftQueues.get(i));\n SmallHourThread runSmallHour = new SmallHourThread(smallhourQueues.get(i));\n runSmallSkier.start();\n runSmallHour.start();\n runSmallLift.start();\n }\n // -> Aggregate results here\n // ...\n // ...\n // ...\n // <- End aggregation\n long endTime = System.nanoTime();\n long duration = endTime - startTime;\n System.out.println(\"Concurrent Solution Runtime: \" + duration/1000f + \" microseconds\");\n }", "public void storeStats() throws Exception {\n logger.info(\"[WORKER-MONITOR] - Start store stats into file. TopologyId: \" + topologyId);\n\n logger.debug(\"------------------WORKER MONITOR SNAPSHOT START------------------\");\n logger.debug(\"Current InterNode Traffic is: \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n logger.debug(\"This Topology current total load is: \" + DataManager.getInstance().getTotalLoad(topologyId));\n // 2018-07-23 add for simple logs\n /*\n if (taskMonitorList.size() != 0) {\n FileUtils.writeToFile(trafficFilename, taskMonitorList.get(0).getTaskId() + \" : \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n }\n */\n FileUtils.writeToFile(Constants.TRAFFIC_DATA_FILE, taskMonitorList.get(0).getTaskId() + \" : \" + DataManager.getInstance().getCurrentInterNodeTraffic());\n\n // Output the threadToTaskMap\n logger.debug(\"Threads to Tasks association is: \");\n for (long threadId : threadToTaskMap.keySet()) {\n logger.debug(\" - \" + threadId + \": \" + threadToTaskMap.get(threadId));\n }\n\n logger.debug(\"Inter-Task Traffic Stats (tuples sent per time slot): \");\n for (TaskPair pair : trafficStats.keySet()) {\n logger.debug(\" - \" + pair.getSourceTaskId() + \" -> \" + pair.getDestinationTaskId() + \": \" + getTraffic(pair) + \" tuple/s [\" + Utils.collectionToString(trafficStats.get(pair)) + \"]\");\n // invoke DataManager function to store Traffic info. 2018-05-08\n DataManager.getInstance().storeTraffic(topologyId, pair.getSourceTaskId(), pair.getDestinationTaskId(), getTraffic(pair));\n }\n\n logger.debug(\"Load stats (CPU cycles consumed per time slot): \");\n long totalCPUCyclesPerSecond = 0;\n for (long threadId : loadStats.keySet()) {\n List<Long> threadLoadInfo = loadStats.get(threadId);\n totalCPUCyclesPerSecond += threadLoadInfo.get(threadLoadInfo.size() - 1) / timeWindowLength;\n logger.debug(\" - thread \" + threadId + \": \" + getLoad(threadId) + \" cycle/s [\" + Utils.collectionToString(threadLoadInfo) + \"]\");\n\n Executor executor = threadToTaskMap.get(threadId);\n // invoke DataMananger to store load info. 2018-05-08\n DataManager.getInstance().storeCpuLoad(topologyId, executor.getBeginTask(), executor.getEndTask(), getLoad(threadId));\n\n }\n long totalCPUCyclesAvailable = CPUInfo.getInstance().getTotalSpeed();\n double usage = ((double) totalCPUCyclesPerSecond / totalCPUCyclesAvailable) * 100; // int -> double\n logger.debug(\"Total CPU cycles consumed per second: \" + totalCPUCyclesPerSecond + \", Total available: \" + totalCPUCyclesAvailable + \", Usage: \" + usage + \"%\");\n\n // add from yitian 2018-04-29\n logger.debug(\"Output the TaskMonitorList: \");\n for (TaskMonitor monitor : taskMonitorList) {\n logger.debug(\"- ProcessId: \" + monitor.getProcessId() + \" -> threadId: \" + monitor.getThreadId() + \" -> taskId: \" + monitor.getTaskId());\n }\n\n // 2018-09-27 add load usage of each host(worker node)\n /*\n Map<String, String> hostCpuUsageList = DataManager.getInstance().getCpuUsageOfHost();\n for (String hostname : hostCpuUsageList.keySet()) {\n FileUtils.writeToFile(cpuUsageFilename, hostname + \" : \" + hostCpuUsageList.get(hostname));\n }\n */\n logger.debug(\"------------------WORKER MONITOR SNAPSHOT END------------------\");\n }", "@Override\n public void runTasks() {\n BukkitTask task1 = new BukkitRunnable() {\n long start = 0;\n long now = 0;\n\n @Override\n public void run() {\n start = now;\n now = System.currentTimeMillis();\n long tdiff = now - start;\n\n if (tdiff > 0) {\n instTps = (float) (1000 / tdiff);\n }\n }\n }.runTaskTimer(Aurora.getInstance(), 0, 1);\n\n //Task to populate avgTps\n BukkitTask task2 = new BukkitRunnable() {\n ArrayList<Float> tpsList = new ArrayList<>();\n\n @Override\n public void run() {\n Float totalTps = 0f;\n\n tpsList.add(instTps);\n //Remove old tps after 15s\n if (tpsList.size() >= 15) {\n tpsList.remove(0);\n }\n for (Float f : tpsList) {\n totalTps += f;\n }\n avgTps = totalTps / tpsList.size();\n }\n }.runTaskTimerAsynchronously(Aurora.getInstance(), 20, 20);\n\n //Add to runnables[]\n runnables = new BukkitTask[]{task1, task2};\n }", "protected static void runPipelines() {\n for (String cameraId : trackerAPIMap.keySet()) {\n runHALTrackerAPI(cameraId, Objects.requireNonNull(trackerAPIMap.get(cameraId)));\n }\n }", "private void run() {\n log.log(Level.INFO, \"Starting multiple evaluation of {0} tasks\", tasks.size());\n boolean done = tasks.isEmpty();\n while (!done) {\n boolean hasFreeTasks = true;\n while (hasCapacity() && hasFreeTasks) {\n File task = getFreeTask();\n if (task == null) {\n hasFreeTasks = false;\n } else {\n EvaluatorHandle handle = new EvaluatorHandle();\n if (handle.createEvaluator(task, log, isResume)) {\n log.fine(\"Created new evaluation handler\");\n evaluations.add(handle);\n }\n }\n }\n\n log.log(Level.INFO, \"Tasks in progress: {0}, Unfinished tasks: {1}\", new Object[]{evaluations.size(), tasks.size()});\n try {\n Thread.sleep(5000);\n } catch (InterruptedException ex) {\n //Bla bla\n }\n checkRunningEvaluations();\n done = tasks.isEmpty();\n }\n\n }", "public void run() {\n\t\tdouble t0 = System.nanoTime()/sec;\n\t\tnow = 0;\n\t\tdouble helloTime, pvSendTime;\n\t\thelloTime = pvSendTime = now;\n\t\twhile (!quit) {\n\t\t\tnow = System.nanoTime()/sec - t0;\n\t\t\t// if it's time to send hello packets, do it\n\t\t\tif(helloTime + 1 < now){//send once every second\n\t\t\t\thelloTime = now;\n\t\t\t\tsendHellos();\n\t\t\t}\n\t\t\t// else if it's time to send advertisements, do it\n\t\t\telse if(pvSendTime + 10 < now){//once every 10 seconds\n\t\t\t\tpvSendTime = now;\n\t\t\t\tsendAdverts();\n\t\t\t}\n\n\t\t\t// else if the forwarder has an incoming packet\n\t\t\t// to be processed, retrieve it and process it\n\t\t\telse if(fwdr.incomingPkt()){\n\t\t\t\thandleIncoming();\n\t\t\t}\n\n\t\t\t// else nothing to do, so take a nap\n\t\t\telse{\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(1);\n\t\t\t\t}\n\t\t\t\tcatch(InterruptedException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tString s = String.format(\"Router link cost statistics\\n\" + \n\t\t\t\t\"%8s %8s %8s %8s %8s\\n\",\"peerIp\",\"count\",\"avgCost\",\n\t\t\t\t\"minCost\",\"maxCost\");\n\t\tfor (LinkInfo lnk : lnkVec) {\n\t\t\tif (lnk.count == 0) continue;\n\t\t\ts += String.format(\"%8s %8d %8.3f %8.3f %8.3f\\n\",\n\t\t\t\t\tUtil.ip2string(lnk.peerIp), lnk.count,\n\t\t\t\t\tlnk.totalCost/lnk.count,\n\t\t\t\t\tlnk.minCost, lnk.maxCost);\n\t\t}\n\t\tSystem.out.println(s);\n\t}", "@Override\r\n\tpublic Double aggregate(List<? extends Serializable> results) {\r\n\t\t\r\n\t\tsw.stop();\r\n\t\t\r\n\t\t// Total execution time\r\n\t\tdouble timeSecs = sw.getTotalTimeSeconds();\r\n\t\t\r\n\t\tint cycleCount = 0;\r\n\t\t\r\n\t\tfor (Serializable r : results) {\r\n\t\t\tif (r instanceof LinPackResult) {\r\n\t\t\t\t\r\n\t\t\t\t// We do not check for any value from result\r\n\t\t\t\t// as the number of floating point operations\r\n\t\t\t\t// are constant for each task\r\n\t\t\t\t\r\n\t\t\t\t// A better solution is to check the normRes\r\n\t\t\t\t// for extreme conditions and ignore\r\n\t\t\t\t// such results\r\n\t\t\t\t\r\n\t\t\t\tcycleCount+=cycles;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Calculate final MFLOPs for Grid\r\n\t\treturn Linpack.calculateMFLOPS(cycleCount, timeSecs);\r\n\t}", "private void perform() {\r\n\r\n final double TWO_PI = 2 * java.lang.Math.PI;\r\n double wt1Imag, wt1Real;\r\n double angle, delta;\r\n double imag, real, fTemp, fReal, fImag;\r\n int i, j, k, m, index1, index2, index3;\r\n int j1, j2, j3;\r\n int k1, k1Double;\r\n int iSwap, i1Swap, i2Swap, index, dim;\r\n int direction;\r\n int dimNumber;\r\n int newLength;\r\n int originalSliceSize;\r\n int newSliceSize = 1;\r\n int originalVolumeSize;\r\n int newVolumeSize;\r\n\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n direction = 1;\r\n } else {\r\n direction = -1;\r\n }\r\n\r\n if (image25D) {\r\n dimNumber = 2;\r\n } else {\r\n dimNumber = ndim;\r\n }\r\n newLength = newArrayLength;\r\n\r\n if (transformDir == AlgorithmFFT2.FORWARD) {\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( -1, null, \"Centering data after FFT algorithm ...\");\r\n }\r\n center(realData, imagData);\r\n }\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( -1, null, \"Running FFT algorithm ...\");\r\n }\r\n\r\n j1 = 1;\r\n dim = 1;\r\n for (i = 0; (i < dimNumber) && !threadStopped; i++) {\r\n j1 *= dim;\r\n dim = newDimLengths[i];\r\n j2 = j1 * dim;\r\n j3 = j2 * (newLength / (dim * j1));\r\n\r\n i1Swap = 0;\r\n\r\n for (index1 = 0; (index1 < j2) && !threadStopped; index1 += j1) {\r\n\r\n for (index2 = index1; (index2 < (index1 + j1)) && (index1 < i1Swap); index2++) {\r\n\r\n for (index3 = index2; index3 < j3; index3 += j2) {\r\n i2Swap = -index1 + index3 + i1Swap;\r\n\r\n fTemp = imagData[index3];\r\n imagData[index3] = imagData[i2Swap];\r\n imagData[i2Swap] = fTemp;\r\n\r\n fTemp = realData[index3];\r\n realData[index3] = realData[i2Swap];\r\n realData[i2Swap] = fTemp;\r\n }\r\n }\r\n\r\n for (iSwap = j2 / 2; (iSwap >= j1) && (iSwap < (i1Swap + 1)); iSwap >>= 1) {\r\n i1Swap = i1Swap - iSwap;\r\n }\r\n\r\n i1Swap = i1Swap + iSwap;\r\n }\r\n for (k1 = j1; (k1 < j2) && !threadStopped; k1 <<= 1) {\r\n delta = TWO_PI / (k1 << 1) * direction * j1;\r\n angle = 0;\r\n for (index1 = 0, angle = 0; index1 < k1; index1 += j1) {\r\n wt1Imag = java.lang.Math.sin(angle);\r\n wt1Real = java.lang.Math.cos(angle);\r\n angle += delta;\r\n for (index2 = index1; index2 < (index1 + j1); index2++) {\r\n k1Double = k1 << 1;\r\n for (index3 = index2; index3 < j3; index3 += k1Double) {\r\n index = index3 + k1;\r\n fReal = realData[index];\r\n fImag = imagData[index];\r\n imag = ( (fImag * wt1Real) - (fReal * wt1Imag));\r\n real = ( (fReal * wt1Real) + (fImag * wt1Imag));\r\n imagData[index] = imagData[index3] - imag;\r\n realData[index] = realData[index3] - real;\r\n imagData[index3] = imagData[index3] + imag;\r\n realData[index3] = realData[index3] + real;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( (Math.round(10 + ((i + 1) / ndim * 80))), null, null);\r\n }\r\n }\r\n\r\n if (threadStopped) {\r\n return;\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n\r\n if ( !image25D) {\r\n fireProgressStateChanged( -1, null, \"Centering data before inverse FFT ...\");\r\n }\r\n\r\n center(realData, imagData);\r\n }\r\n\r\n if (transformDir == AlgorithmFFT2.INVERSE) {\r\n \tif (ndim >= 2) {\r\n \t\tnewSliceSize = newDimLengths[0]*newDimLengths[1];\r\n \t}\r\n \tif (complexInverse) {\r\n \t\tfor (i = 0; i < newLength; i++) {\r\n \t\t\tif (image25D) {\r\n \t\t\t\trealData[i] = realData[i] / newSliceSize;\r\n \t\t\t\timagData[i] = imagData[i] / newSliceSize;\r\n \t\t\t}\r\n \t\t\telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t imagData[i] = imagData[i] / newLength;\r\n \t\t\t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[2 * AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t for (i = 0; i < originalDimLengths[0]; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t } else if (ndim == 2) {\r\n\t for (i = 0; i < originalDimLengths[1]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[0]; j++) {\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)] = realData[i*newDimLengths[0] + j];\r\n\t \t\tfinalData[2*(i*originalDimLengths[0] + j)+1] = imagData[i*newDimLengths[0] + j];\r\n\t \t}\r\n\t }\r\n\t } else if (ndim == 3) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t for (i = 0; i < originalDimLengths[2]; i++) {\r\n\t for (j = 0; j < originalDimLengths[1]; j++) {\r\n\t for (k = 0; k < originalDimLengths[0]; k++) {\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)] =\r\n\t realData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t \tfinalData[2*(i*originalSliceSize + j*originalDimLengths[0] + k)+1] =\r\n\t\t imagData[i*newSliceSize + j*newDimLengths[0] + k];\r\n\t }\r\n\t }\r\n\t }\r\n\t } else if (ndim == 4) {\r\n\t originalSliceSize = originalDimLengths[0]*originalDimLengths[1];\r\n\t originalVolumeSize = originalSliceSize * originalDimLengths[2];\r\n\t newVolumeSize = newSliceSize * newDimLengths[2];\r\n\t for (i = 0; i < originalDimLengths[3]; i++) {\r\n\t \tfor (j = 0; j < originalDimLengths[2]; j++) {\r\n\t \t\tfor (k = 0; k < originalDimLengths[1]; k++) {\r\n\t \t\t\tfor (m = 0; m < originalDimLengths[0]; m++) {\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)] =\r\n\t realData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t\tfinalData[2*(i*originalVolumeSize + j*originalSliceSize + \r\n\t \t\t\t\t\t\t k*originalDimLengths[0] + m)+1] =\r\n\t imagData[i*newVolumeSize + j*newSliceSize + k*newDimLengths[0] + m];\r\n\t \t\t\t}\r\n\t \t\t}\r\n\t \t}\r\n\t }\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tfinalData[2*i] = realData[i];\r\n\t \tfinalData[2*i+1] = imagData[i];\r\n\t }\r\n\t\t }\t\r\n \t} // if (complexInverse)\r\n \telse { // !complexInverse\r\n\t imagData = null;\r\n\t for (i = 0; i < newLength; i++) {\r\n\t \tif (image25D) {\r\n\t \t realData[i] = realData[i] / newSliceSize;\t\r\n\t \t}\r\n\t \telse {\r\n\t realData[i] = realData[i] / newLength;\r\n\t // imagData[i] = imagData[i] / newLength;\r\n\t \t}\r\n\t }\r\n\t\r\n\t originalDimLengths = srcImage.getOriginalExtents();\r\n\t finalData = new double[AlgorithmBase.calculateImageSize(originalDimLengths)];\r\n\t if ( !hasSameDimension(newDimLengths, originalDimLengths)) {\r\n\t if (ndim == 1) {\r\n\t System.arraycopy(realData, 0, finalData, 0, originalDimLengths[0]);\r\n\t } else if (ndim == 2) {\r\n\t ArrayUtil.copy2D(realData, 0, newDimLengths[0], newDimLengths[1], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], false);\r\n\t } else if (ndim == 3) {\r\n\t ArrayUtil.copy3D(realData, 0, newDimLengths[0], newDimLengths[1], newDimLengths[2], finalData, 0,\r\n\t originalDimLengths[0], originalDimLengths[1], originalDimLengths[2], false);\r\n\t } else if (ndim == 4) {\r\n\t ArrayUtil.copy4D(realData, newDimLengths[0], newDimLengths[1], newDimLengths[2], dimLengths[3],\r\n\t finalData, originalDimLengths[0], originalDimLengths[1], originalDimLengths[2],\r\n\t originalDimLengths[3], false);\r\n\t }\r\n\t } else {\r\n\t System.arraycopy(realData, 0, finalData, 0, newLength);\r\n\t\t }\r\n \t} // else !complexInverse\r\n } // if (transformDir == AlgorithmFFT2.INVERSE)\r\n\r\n }", "public void run() {\n\t\tSystem.out.println(\"fuseAdd\");\n\t\tAddConcurrent1 adder = new AddConcurrent1();\n\t\tValidateFusion validator = new ValidateFusion();\n\t\tint sum = adder.addConcurrent1(sortedSnapshot);\t\t\t \n\t\tvalidator.validate(sum, 2);\n\t\tGlobalInfo.completeThreads++;\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void calculatePID(float LoopTime){\n\n\n\t\t// Append to our data sets.\n\t\tdata.PID.integralData.add(data.PID.computedTarget - data.PID.target);\n\t\tdata.PID.derivativeData.add(data.PID.computedTarget);\n\n\t\t// Keep integralData and derivativeData from having an exceeding number of entries.\n\t\tif (data.PID.integralData.size() > data.PID.INTEGRAL_DATA_MAX_SIZE){\n\t\t\tdata.PID.integralData.remove(0);\n\t\t}\n\n\t\tif(data.PID.derivativeData.size() > data.PID.DERIVATIVE_DATA_MAX_SIZE){\n\t\t\tdata.PID.derivativeData.remove(0);\n\t\t}\n\n\t\t// Set our P, I, and D values.\n\t\t// `P` will be the computedTarget - target\n\t\tdata.PID.P = data.PID.computedTarget - data.PID.target;\n\n\t\t// `I` will be the average of the integralData (Cries softly at the lack of Java8 streams)\n\t\tfloat IntegralAverage = 0;\n\t\tfor(float value : data.PID.integralData){\n\t\t\tIntegralAverage += value;\n\t\t}\n\t\tdata.PID.I = IntegralAverage / data.PID.integralData.size();\n\n\t\t// `D` will be the difference of the computedTarget and the Derivative average divided by\n\t\t// the time since the last loop in seconds multiplied by one plus half of the size of\n\t\t// the Derivative data set size.\n\t\tfloat DerivativeAverage = 0;\n\t\tfor(float value : data.PID.derivativeData){\n\t\t\tDerivativeAverage += value;\n\t\t}\n\t\tDerivativeAverage /= data.PID.derivativeData.size();\n\n\t\tdata.PID.D = (data.PID.computedTarget - DerivativeAverage) / ((LoopTime/1000) * (1 + (data.PID.derivativeData.size() / 2)));\n\t}", "protected abstract void analyzeSystem(PipelineData data) throws Exception;", "public void run() {\n\t \t\t\tfinal Processor mProcessor = new Processor(ScanUtils.appFolder);\n\t \t\t\t\n\t \t\t\ttry {\n\t\t\t\t\t\tif( mProcessor.loadFormImage(inputPath, calibrationPath) ) {\n\t\t\t\t\t\t\tint formIdx = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i = 0; i < templatePaths.length; i++){ \n\t\t\t\t\t\t\t\tLog.i(LOG_TAG, \"loadingFD: \" + templatePaths[i]);\n\t\t\t\t\t\t\t\tif(!mProcessor.loadFeatureData(templatePaths[i])){\n\t\t\t\t\t\t\t\t\tthrow new Exception(\"Could not load feature data from: \" + templatePaths[i]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(templatePaths.length > 1) {\n\t\t\t\t\t\t\t\tformIdx = mProcessor.detectForm();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(formIdx >= 0) {\n\t\t\t\t\t\t\t\tif(mProcessor.setTemplate(templatePaths[formIdx])) {\n\t\t\t\t\t\t\t\t\tLog.i(LOG_TAG,\"template loaded\");\n\t\t\t\t\t\t\t\t\tif( mProcessor.alignForm(outputPath, formIdx) ) {\n\t\t\t\t\t\t\t\t\t\tLog.i(LOG_TAG,\"aligned\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tthrow new Exception(\"Failed to align form.\");\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\telse {\n\t\t\t\t\t\t\t\t\tthrow new Exception(\"Failed to set template.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tthrow new Exception(\"Failed to detect form.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthrow new Exception(\"Failed to load image: \" + inputPath);\n\t\t\t\t\t\t}\n\t \t\t\t} catch (Exception e) {\n\t \t\t\t\toutputData.putString(\"errorMessage\", e.toString());\n\t \t\t\t}\n\t \t\t\tMessage msg = new Message();\n\t \t\t\tmsg.setData(outputData);\n\t \t\t\thandler.sendMessage(msg);\n\t \t\t}", "public void run() throws FileNotFoundException, UnsupportedEncodingException {\n double averageError=1;\n int index=0;\n while(averageError> errorTreshold ||index<7) {\n trainPerceptrons();\n\n averageError= classifyPerformanceImages(asciiReader\n .getPerformanceImages());\n\n asciiReader.shuffleImages();\n index++;\n }\n \n System.out.println(\"# Average Error: \"+averageError);\n System.out.println(\"# Number of calibration rounds: \"+index);\n\n classifyTestImages();\n }", "void analyze(int nthread,boolean update,ReportOption opt);", "private void detectSpeeds(ArrayList<FileEntry> batch) {\n SpeedDetectorImpl sd = SpeedDetectorImpl.getInstance();\n\n for (FileEntry entry : batch) {\n Double d = sd.detectSpeed(entry.getCarImages());\n\n entry.getCarData().setSpeed(new Speed(d));\n }\n }", "protected void execute ()\n\t{\n\t\t//Take and process new image every .5 seconds\n\t\tif (System.currentTimeMillis() % 500 == 0)\n\t\t{\n\t\t\tSubsystems.goalVision.processNewImage();\n\t\t}\n\n\t\tif (Subsystems.goalVision.getProportionalGoalX() < X_OFFSET\n\t\t - DEADBAND)\n\t\t//the goal is to the left\n\t\t{\n\t\t\t//turn left\n\t\t\tSubsystems.transmission.drive(motorRatio, -motorRatio);\n\t\t}\n\t\t//the goal is to the right\n\t\telse if (Subsystems.goalVision.getProportionalGoalX() > X_OFFSET\n\t\t + DEADBAND)\n\t\t{\n\t\t\t//turn right\n\t\t\tSubsystems.transmission.drive(-motorRatio, motorRatio);\n\t\t}\n\t}", "@Override\n\tprotected void saveResults(){\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"_yyyy_MM_dd_HH:mm:ss\");\n\t\tDate date = new Date();\n\t\ttry(BufferedWriter bw=new BufferedWriter(new FileWriter(\"/home/daniel/results/\"+this.mAffinityType+\"/\"+this.getClass().getSimpleName()+\"/\"+MAX_TASK_AGE+\"/\"+mOutputFileName+dateFormat.format(date)))){\n\t\t\tbw.write(this.getClass().getSimpleName()+\" with max age=\"+MAX_TASK_AGE+\"\\n\");\n\t\t\tbw.write(\"Total processing time: \"+cycles+\" TU\\n\");\n\t\t\tint count=0;\n\t\t\tfor(Task t : mTasks){\n\t\t\t\tbw.write(++count + \":\");\n\t\t\t\tif(t.getmAge()>=MAX_TASK_AGE){\n\t\t\t\t\tbw.write(\"Aging used\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tbw.write(\"Aging not used\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t DecimalFormat df = new DecimalFormat(\"0.0\");\n\t\t\t\t\t\tbw.write(\"[\"+df.format(AFFINITY3[i][j][k])+\"]\");\n\t\t\t\t\t}\n\t\t\t\t\tbw.write(\"\\n\");\n\t\t\t\t}\n\t\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void run() {\n /* Set running flag to true. */\n synchronized (this) { this.running = true; }\n\n /* Process SegmentContainers in Queue: For each Extractor in list dispatch an extraction task. */\n while (this.isRunning() || !this.segmentQueue.isEmpty()) {\n if(!this.isRunning()){\n LOGGER.debug(\"Received stop signal, still {} elements left\", this.segmentQueue.size());\n }\n try {\n SegmentContainer s = this.segmentQueue.poll(500, TimeUnit.MILLISECONDS);\n if (s != null) {\n LOGGER.debug(\"Segment {} is being handed to the extraction pipeline.\", s.getId());\n for (Extractor f : extractors) {\n try {\n this.executorService.execute(new ExtractionTask(f, s, this));\n LOGGER.debug(\"Submitted segment {} for feature {}\", s.getId(), f.getClass().getSimpleName());\n } catch (RejectedExecutionException e) {\n this.segmentQueue.clear();\n LOGGER.fatal(\"Failed to submit segment {} for feature {}. Aborting...\\n{}\", s.getId(), f.getClass().getSimpleName(), LogHelper.getStackTrace(e));\n break;\n }\n }\n\n /* Sort list of extractors by execution time. */\n (this.extractors).sort((o1,o2) -> Long.compare(getAverageExecutionTime(o2.getClass().getSimpleName()), getAverageExecutionTime(o1.getClass().getSimpleName())));\n }\n } catch (InterruptedException e) {\n LOGGER.warn(\"ShotDispatcher was interrupted: {}\", LogHelper.getStackTrace(e));\n } \n }\n\n this.shutdown();\n\n synchronized (this) { this.running = false; }\n }", "@Override\n\tpublic void run() {\n\t\tBS.approach(AV);\n\t}", "private void calculations() {\n\t\tSystem.out.println(\"Starting calculations\\n\");\n\t\tcalcMedian(myProt.getChain(requestedChain));\n\t\tcalcZvalue(myProt.getChain(requestedChain));\n\t\tcalcSVMweightedZvalue(myProt.getChain(requestedChain));\n\t}", "protected void execute() {\n\t\tif (joystickControl) {\n\t\t\tdouble spitPower = Robot.oi.driverController.triggers.getLeft();\n\t\t\ttargetSpeed = -(spitPower * spitPower);\n\t\t\tRobot.cubeCollector.setCubeCollector(ControlMode.PercentOutput, targetSpeed);\n\t\t} else {\n\t\t\tRobot.cubeCollector.setCubeCollector(ControlMode.PercentOutput, targetSpeed);\n\t\t}\n\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\nfor (double b = 0.5; b < 0.51; b+=0.1) {\n for (double k = 4.40; k < 4.5; k+=0.5) {\n Machine.b = 0.5; //0.2 - ATCnon-delay\n Machine.k = 1.5; //1.4 - ATCnon delay\n int hits = 0;\n engineJob = new cern.jet.random.engine.MersenneTwister(99999);\n noise = new cern.jet.random.Normal(0, 1, engineJob);\n SmallStatistics[] result = new SmallStatistics[5];\n result[0] = new SmallStatistics();\n result[1] = new SmallStatistics();\n for (int ds = 0; ds < 2; ds++) {\n JSPFramework[] jspTesting = new JSPFramework[105];\n for (int i = 0; i < jspTesting.length; i++) {\n jspTesting[i] = new JSPFramework();\n jspTesting[i].getJSPdata(i*2 + 1);\n }\n //DMU - instances (1-80)//la - instances (81-120)\n //mt - instances (121/-123)//orb - instances (124-133)//ta -instances (134-173)\n //////////////////////////////////////////////\n for (int i = 0; i < jspTesting.length; i++) {\n double countEval = 0;\n double tempObj = Double.POSITIVE_INFINITY;\n double globalBest = Double.POSITIVE_INFINITY;\n boolean[] isApplied_Nk = new boolean[2]; //Arrays.fill(isApplied_Nk, Boolean.TRUE);\n int Nk = 0; // index of the Iterative dispatching rule to be used\n jspTesting[i].resetALL();\n boolean firstIteration = true;\n double countLargeStep = 0;\n do{\n countEval++;\n //start evaluate schedule\n jspTesting[i].reset();\n int N = jspTesting[i].getNumberofOperations();\n jspTesting[i].initilizeSchedule();\n int nScheduledOp = 0;\n\n //choose the next machine to be schedule\n while (nScheduledOp<N){\n\n Machine M = jspTesting[i].Machines[jspTesting[i].nextMachine()];\n\n jspTesting[i].setScheduleStrategy(Machine.scheduleStrategy.HYBRID );\n jspTesting[i].setPriorityType(Machine.priorityType.ATC);\n jspTesting[i].setNonDelayFactor(0.3);\n //*\n jspTesting[i].setInitalPriority(M);\n for (Job J:M.getQueue()) {\n double RJ = J.getReadyTime();\n double RO = J.getNumberRemainingOperations();\n double RT = J.getRemainingProcessingTime();\n double PR = J.getCurrentOperationProcessingTime();\n double W = J.getWeight();\n double DD = J.getDuedate();\n double RM = M.getReadyTime();\n double RWT = J.getCurrentOperationWaitingTime();\n double RFT = J.getFinishTime();\n double RNWT = J.getNextOperationWaitingTime();\n int nextMachine = J.getNextMachine();\n\n if (nextMachine==-1){\n RNWT=0;\n } else {\n RNWT = J.getNextOperationWaitingTime();\n if (RNWT == -1){\n RNWT = jspTesting[i].getMachines()[nextMachine].getQueueWorkload()/2.0;\n }\n }\n if (RWT == -1){\n RWT = M.getQueueWorkload()/2.0;\n }\n //J.addPriority((W/PR)*Math.exp(-maxPlus((DD-RM-PR-(RT-PR+J.getRemainingWaitingTime(M)))/(3*M.getQueueWorkload()/M.getNumberofJobInQueue())))); //iATC\n //J.addPriority((PR*PR*0.614577*(-RM-RM/W)-RT*PR*RT/W)\n // -(RT*PR/(W-0.5214191)-RM/W*PR*0.614577+RT*PR/(W-0.5214191)*2*RM/W));\n //J.addPriority(((W/PR)*((W/PR)/(RFT*RFT)))/(max(div((RFT-RT),(RWT/W)),IF(RFT/W-max(RFT-RT,DD),DD,RFT))+DD/RFT+RFT/W-max(RFT-RFT/W,DD))); //best TWT priorityIterative\n if (Nk==0)\n //J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((min(RT,RNWT-RFT)/(RJ-min(RWT,RFT*0.067633785)))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((div(min(RT,RNWT-RFT),(RJ-min(RWT,RFT*0.067633785))))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n else\n J.addPriority(min((((W/PR)/RFT)/(2*RNWT+max(RO,RFT)))/(PR+RNWT+max(RO,RFT)),((W/PR)/RFT)/PR)/RFT);\n }\n //jspTesting[i].calculatePriority(M);\n jspTesting[i].sortJobInQueue(M);\n Job J = M.completeJob();\n if (!J.isCompleted()) jspTesting[i].Machines[J.getCurrentMachine()].joinQueue(J);\n nScheduledOp++;\n }\n double currentObj = -100;\n currentObj = jspTesting[i].getTotalWeightedTardiness();\n if (tempObj > currentObj){\n tempObj = currentObj;\n jspTesting[i].recordSchedule();\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n //System.out.println(\"Improved!!!\");\n }\n else {\n isApplied_Nk[Nk] = true;\n if (!isNextApplied(Nk, isApplied_Nk)) Nk = circleShift(Nk, isApplied_Nk.length);\n else {\n if (globalBest>tempObj) {\n globalBest = tempObj;\n jspTesting[i].storeBestRecordSchedule();\n } jspTesting[i].restoreBestRecordSchedule();\n if (countLargeStep<1) {\n tempObj = Double.POSITIVE_INFINITY;\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n jspTesting[i].shakeRecordSchedule(noise, engineJob, globalBest);\n countLargeStep++;\n }\n else break;\n }\n }\n firstIteration = false;\n \n } while(true);\n result[ds].add(jspTesting[i].getDevREFTotalWeightedTardiness(globalBest));\n if (jspTesting[i].getDevLBCmax()==0) hits++;\n System.out.println(jspTesting[i].instanceName + \" & \"+ globalBest + \" & \" + countEval);\n }\n }\n //jsp.schedule();\n //*\n System.out.println(\"*************************************************************************\");\n System.out.println(\"[ & \" + formatter.format(result[0].getMin()) + \" & \"\n + formatter.format(result[0].getAverage()) + \" & \" + formatter.format(result[0].getMax()) +\n \" & \" + formatter.format(result[1].getMin()) + \" & \"\n + formatter.format(result[1].getAverage()) + \" & \" + formatter.format(result[1].getMax()) + \"]\");\n //*/\n System.out.print(\"\"+formatter.format(result[0].getAverage()) + \" \");\n }\n System.out.println(\"\");\n}\n }", "public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}", "@Override\r\n protected Comparable<?> _update(IAlgorithmContext state, IDataElement[] measurementList) throws AlgorithmExecutionException {\n \tdouble avValue = 0.0;\r\n \tint inputs = measurementList.length; \r\n \tboolean rightInputs = true;\r\n \tString type = (String)state.getContextParameter(\"type\"); //Retrieve algorithm's type\r\n \t\r\n \t//Check values that come inside the formatter\r\n \tfor(int i=0; i<measurementList.length ; i++) {\r\n \t\tif(measurementList[i] == null || measurementList[i].getValue() == null) {\r\n \t\t\trightInputs = false; //If one input is empty\r\n \t\t\t\r\n \t\t\tif(type.equalsIgnoreCase(\"hard\"))\r\n \t\t\t\tbreak;\r\n \t\t}\r\n \t}\r\n \t\r\n \tif(type.equalsIgnoreCase(\"hard\")) { //All input streams must give a value\r\n \t\tif(!rightInputs) {\r\n \t\t\t//throw new AlgorithmExecutionException(getType() +\" algorithm in \"+type+\" mode--> All input streams must be present and valid\");\r\n \t\t\tSystem.out.println(\"[AV] WARNING: Algorithm in \"+type+\" mode--> All input streams must be present and not \\\"null\\\"\");\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\t//Input streams must be more than 1 in \"hard\" mode of MultiMean algorithm\r\n \tif(inputs < 2) {\r\n \t\t//throw new AlgorithmExecutionException(\"Algorithm \"+getType()+\" must have 2 or more input streams in \"+type+\" mode\");\t\r\n \t\tSystem.out.println(\"[AV] WARNING: Algorithm must have 2 or more input streams in \"+type+\" mode\");\r\n \t\t\treturn null;\r\n \t}\r\n \t\r\n \t//If all input streams have a value, check if they are all numbers\r\n \t\tfor (IDataElement d : measurementList) {\r\n\t\t\t\tComparable<?> value=d.getValue();\r\n\r\n\t\t\t\tif (value instanceof Number) {\r\n\t\t\t\t\tavValue = avValue + (Double)value;\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//throw new AlgorithmExecutionException(getType() +\" algorithm in \"+type+\" mode--> Invalid data value detected(\"+value+\"). Value must be Double\");\r\n\t\t\t\t\tSystem.out.println(\"[AV] WARNING: Algorithm in \"+type+\" mode--> Invalid data value detected(\"+value+\"). Value must be Double\");\r\n\t \t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t} else { //Take into consideration only the available (not null) input streams as long as they are more than 0\r\n \t\tif(inputs == 0) { //If there is no input in current condition\r\n \t\t\t//throw new AlgorithmExecutionException(getType() +\" algorithm in \"+type+\" mode--> We must have at least 1 input stream\");\r\n \t\t\tSystem.out.println(\"[AV] WARNING: Algorithm in \"+type+\" mode--> At least 1 input stream must have a not \\\"null\\\" value\");\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\t\r\n \t\t//If some input streams have a value, check if they are all numbers\r\n \t\tfor (IDataElement d : measurementList) {\r\n\t\t\t\t\r\n \t\t\tif(d!=null && d.getValue()!=null) { //Do not take into account \"null\" input streams\r\n \t\t\t\tComparable<?> value=d.getValue();\r\n\r\n \t\t\t\tif (value instanceof Number) {\r\n \t\t\t\t\tavValue = avValue + (Double)value;\t\t\r\n \t\t\t\t} else {\r\n \t\t\t\t\t//throw new AlgorithmExecutionException(getType() +\" algorithm in \"+type+\" mode--> Invalid data value detected(\"+value+\"). Value must be Double\");\r\n \t\t\t\t\tSystem.out.println(\"[AV] WARNING: Algorithm in \"+type+\" mode--> Invalid data value detected(\"+value+\"). Value must be Double\");\r\n \t \t\t\treturn null;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \tavValue = avValue * (1.0 / (double) inputs);\r\n \t\r\n \t//System.out.println(\"[AV] OUTPUT: \"+avValue);\r\n\t\treturn avValue;\r\n }", "@Override\n public void execute() {\n double forwardSpeed;\n double rotationSpeed;\n\n // Vision-alignment mode\n // Query the latest result from PhotonVision\n double target = RobotContainer.m_Drive.Get_tv();\n\n if (target != 0.0f) {\n // First calculate range\n double range =\n PhotonUtils.calculateDistanceToTargetMeters(\n CAMERA_HEIGHT_METERS,\n TARGET_HEIGHT_METERS,\n CAMERA_PITCH_RADIANS,\n Units.degreesToRadians(RobotContainer.m_Drive.Get_ty()));\n SmartDashboard.putNumber(\"range\", range);\n // Use this range as the measurement we give to the PID controller.\n // -1.0 required to ensure positive PID controller effort _increases_ range\n if(RobotContainer.m_Drive.Get_ty()<-1){\n forwardSpeed = 1.0 * forwardController.calculate(range, GOAL_RANGE_METERS);;\n }\n else if(RobotContainer.m_Drive.Get_ty() > 1){\n forwardSpeed = -1.0 * forwardController.calculate(range, GOAL_RANGE_METERS);\n }\n else{\n forwardSpeed = 0;\n }\n\n\n // Also calculate angular power\n // -1.0 required to ensure positive PID controller effort _increases_ yaw\n rotationSpeed = -1.0 * turnController.calculate(RobotContainer.m_Drive.Get_tx(), 0);\n } else {\n // If we have no targets, stay still.\n forwardSpeed = 0;\n rotationSpeed = 0;\n } \n // Use our forward/turn speeds to control the drivetrain\n Robot.hardware.m_diffDrive.arcadeDrive(forwardSpeed,rotationSpeed);\n }", "@Override\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\tint entropyAccuracy = SensorDescInformation.entropyAccuracy;\n\t\t\tSensorQueriesAccelerometer accQuery = new SensorQueriesAccelerometer(SensorDescInformation.earliest, SensorDescInformation.latest, context.getFilesDir());\n\t\t\tint count = accQuery.getCount();\n\t\t\tif (accQuery.containsReadings()){\n\t\t\t\tfloat min = accQuery.getMinValue().getAccX();\n\t\t\t\tfloat max = accQuery.getMaxValue().getAccX();\n\t\t\t\tfloat interval = max-min;\n\t\t\t\tList<SensorData> data = accQuery.list;\n\t\t\t\tint [][] counter = new int [entropyAccuracy][3];\n\t\t\t\tfor (SensorData temp : data) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tint joX = (int) ((temp.getValueFloat(0)-min)*entropyAccuracy/interval);\n\t\t\t\t\t\tint joY = (int) ((temp.getValueFloat(1)-min)*entropyAccuracy/interval);\n\t\t\t\t\t\tint joZ = (int) ((temp.getValueFloat(2)-min)*entropyAccuracy/interval);\n\t\t\t\t\t\tcounter [joX][0]++;\n\t\t\t\t\t\tcounter [joY][1]++;\n\t\t\t\t\t\tcounter [joZ][2]++;\n\t\t\t\t}\n\t\t\t\tfloat entroX = 0, entroY = 0, entroZ = 0;\n\t\t\t\tfor (int i = 0; i < entropyAccuracy; i++ ){\n\t\t\t\t\tentroX += (counter[i][0]/count)*Math.log10(counter[i][0]/count);\n\t\t\t\t\tentroY += (counter[i][1]/count)*Math.log10(counter[i][1]/count);\n\t\t\t\t\tentroZ += (counter[i][2]/count)*Math.log10(counter[i][2]/count);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfloat changeRateX = 0, changeRateY = 0, changeRateZ = 0;\n\t\t\t\n\t\t\t\tfor (int i = 0; i< data.size(); i++){\n\t\t\t\t\tchangeRateX += (data.get(i+1).getValueFloat(0) - data.get(i).getValueFloat(0))/(data.get(i+1).getRecordTime()-data.get(i).getRecordTime());\n\t\t\t\t\tchangeRateY += (data.get(i+1).getValueFloat(1) - data.get(i).getValueFloat(1))/(data.get(i+1).getRecordTime()-data.get(i).getRecordTime());\n\t\t\t\t\tchangeRateZ += (data.get(i+1).getValueFloat(2) - data.get(i).getValueFloat(2))/(data.get(i+1).getRecordTime()-data.get(i).getRecordTime());\n\t\t\t\t}\n\t\t\t\tchangeRateX /= data.size();\n\t\t\t\tchangeRateY /= data.size();\n\t\t\t\tchangeRateZ /= data.size();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfinal SharedPreferences settings = context.getSharedPreferences(NervousStatics.SENSOR_PREFS, 0);\n\t\t\t\t\n\t\t\t\tfloat freq = (int)context.getSharedPreferences(NervousStatics.SENSOR_FREQ, 0).getInt(Long.toHexString(SensorDescInformation.targetSENSOR_ID) + \"_freqValue\", 30) * 1000;\n\t\t\t\tboolean isLo = settings.getBoolean(Long.toHexString(SensorDescInformation.targetSENSOR_ID) + \"_doMeasure\", true);\n\t\t\t\tboolean isSh = settings.getBoolean(Long.toHexString(SensorDescInformation.targetSENSOR_ID) + \"_doShare\", true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tdataReady(System.currentTimeMillis(), entroX, entroY, entroZ, freq, changeRateX, changeRateY, changeRateZ, isLo, isSh);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\n\t\t\t\tfinal SharedPreferences settings = context.getSharedPreferences(NervousStatics.SENSOR_PREFS, 0);\n\t\t\t\t\n\t\t\t\tfloat freq = (int)context.getSharedPreferences(NervousStatics.SENSOR_FREQ, 0).getInt(Long.toHexString(SensorDescInformation.targetSENSOR_ID) + \"_freqValue\", 30) * 1000;\n\t\t\t\tboolean isLo = settings.getBoolean(Long.toHexString(SensorDescInformation.targetSENSOR_ID) + \"_doMeasure\", true);\n\t\t\t\tboolean isSh = settings.getBoolean(Long.toHexString(SensorDescInformation.targetSENSOR_ID) + \"_doShare\", true);\n\t\t\t\tdataReady(System.currentTimeMillis(), 0, 0, 0, freq, 0, 0, 0, isLo, isSh);\n\t\t\t};\n\t\t\treturn null;\n\t\t}", "protected void execute() {\n \tRobot.drive.driveWithTarget(target);\n \tSmartDashboard.putNumber(\"Desired target\", target);\n \tSmartDashboard.putNumber(\"current left position\", Robot.drive.left.motor1.getSelectedSensorPosition(0));\n \tSmartDashboard.putNumber(\"current right position\", Robot.drive.right.motor1.getSelectedSensorPosition(0));\n \tSmartDashboard.putNumber(\"Left sped\", Robot.drive.left.motor1.getSelectedSensorVelocity(0));\n \tSmartDashboard.putNumber(\"count\", count);\n \tif (Math.abs(target - Robot.drive.left.getEncoderTicks()) < tolerance) {\n \t\tcount++;\n \t}\n }", "private void calculateAverages(){\n for (int i=0; i<40; i=i+4){\n totalGoalsScored1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored1 = totalGoalsScored1/numberItems;\n //Total and average scored goals of team 2\n for (int i=2; i<40; i=i+4){\n totalGoalsScored2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsScored2 = totalGoalsScored2/numberItems;\n //Total and average received goals of team 1\n for (int i=1; i<40; i=i+4){\n totalGoalsReceived1 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived1 = totalGoalsReceived1/numberItems;\n //Total and average received goals of team 2\n for (int i=3; i<40; i=i+4){\n totalGoalsReceived2 += Integer.parseInt(vectorResults[i]);\n }\n averageGoalsReceived2 = totalGoalsReceived2/numberItems;\n }", "private void execute(List<Pair<Integer, Stream<byte[], GenericRecord>>> streams) throws Exception {\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n isDone.set(true);\n printAggregatedStats(cumulativeRecorder);\n }));\n\n ExecutorService executor = Executors.newFixedThreadPool(flags.numThreads);\n try {\n final long numRecordsForThisThread = flags.numEvents / flags.numThreads;\n final long numBytesForThisThread = flags.numBytes / flags.numThreads;\n final double writeRateForThisThread = flags.writeRate / flags.numThreads;\n for (int i = 0; i < flags.numThreads; i++) {\n final int idx = i;\n final List<Stream<byte[], GenericRecord>> logsThisThread = streams\n .stream()\n .filter(pair -> pair.getLeft() % flags.numThreads == idx)\n .map(pair -> pair.getRight())\n .collect(Collectors.toList());\n executor.submit(() -> {\n try {\n if (flags.prometheusEnable) {\n writeWithPrometheusMonitor(\n logsThisThread,\n writeRateForThisThread,\n numRecordsForThisThread,\n numBytesForThisThread);\n } else {\n write(\n logsThisThread,\n writeRateForThisThread,\n numRecordsForThisThread,\n numBytesForThisThread);\n }\n } catch (Exception e) {\n log.error(\"Encountered error at writing records\", e);\n isDone.set(true);\n System.exit(-1);\n }\n });\n }\n log.info(\"Started {} write threads\", flags.numThreads);\n startTime = System.currentTimeMillis();\n reportStats();\n } finally {\n executor.shutdown();\n if (!executor.awaitTermination(5, TimeUnit.SECONDS)) {\n executor.shutdownNow();\n }\n streams.forEach(streamPair -> streamPair.getRight().closeAsync());\n }\n }", "protected void execute() {\r\n timespan = date.getTime() - lastTime;\r\n allaxes = accelerometer.GetAcceleration();\r\n velocityX = velocityX + allaxes.XAxis * timespan;\r\n velocityY = velocityY + allaxes.YAxis * timespan;\r\n theDash.log(velocityX,\"X\");\r\n }", "private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}", "public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }", "void print_statistics(long tot_arrived, long tot_processed, Double end_time){\n\n CloudEvent cloudEvent = new CloudEvent();\n CloudletEvent cletEvent = new CloudletEvent();\n PrintFile print = new PrintFile();\n\n\n // System response time & throughput\n\n float system_response_time = (float)(sum_service_times1_clet+ sum_service_times1_cloud + sum_service_times2_clet+ sum_service_times2_cloud)/ tot_processed;\n float response_time_class1 = (float) ((sum_service_times1_clet+ sum_service_times1_cloud)/ (completition_clet_type1 + completition_cloud_type1));\n float response_time_class2 = (float) ((sum_service_times2_clet+ sum_service_times2_cloud)/ (completition_clet_type2 + completition_cloud_type2));\n\n float lambda_tot = (float) (tot_arrived/end_time);\n float lambda_1 = (float)((arrival_type1_clet+arrival_type1_cloud)/end_time);\n float lambda_2 = (float)((arrival_type2_clet+arrival_type2_cloud)/end_time);\n\n\n // per-class effective cloudlet throughput\n\n float task_rate_clet1 = (float) ((float)completition_clet_type1 / end_time);\n float task_rate_clet2 = (float) ((float)completition_clet_type2 / end_time);\n\n\n // per-class cloud throughput\n\n float lambda_cloud1 = (float) ((arrival_type1_cloud)/end_time);\n float lambda_cloud2 = (float) ((arrival_type2_cloud)/end_time);\n\n\n // class response time and mean population\n\n float response_time_cloudlet = (float) (sum_service_times1_clet+ sum_service_times2_clet)/ (completition_clet_type1 + completition_clet_type2);\n float response_time_cloudlet1 = (float) sum_service_times1_clet/ completition_clet_type1;\n float response_time_cloudlet2 = (float) (sum_service_times2_clet/ completition_clet_type2);\n\n float response_time_cloud = (float) ((sum_service_times1_cloud+ sum_service_times2_cloud)/ (completition_cloud_type1 + completition_cloud_type2));\n float response_time_cloud1 = (float) (sum_service_times1_cloud/ completition_cloud_type1);\n float response_time_cloud2 = (float) (sum_service_times2_cloud/ completition_cloud_type2);\n\n // E[N] cloudlet\n float mean_cloudlet_jobs = cletEvent.mean_cloudlet_jobs_number();\n // E[N] class 1 cloudlet\n float mean_cloudlet_jobs1 = cletEvent.mean_cloudlet_jobs_number1();\n // E[N] class 2 cloudlet\n float mean_cloudlet_jobs2 = cletEvent.mean_cloudlet_jobs_number2();\n\n // E[N] cloud\n float mean_cloud_jobs = cloudEvent.mean_cloud_jobs_number();\n // E[N] class 1 cloud\n float mean_cloud_jobs1 = cloudEvent.mean_cloud_jobs_number1();\n // E[N] class 2 cloud\n float mean_cloud_jobs2 = cloudEvent.mean_cloud_jobs_number2();\n\n\n // Altre statistiche di interesse\n\n float lambda_clet = (float) ((arrival_type1_clet+ arrival_type2_clet)/end_time);\n float lambda_clet1 = (float) ((arrival_type1_clet)/end_time);\n float lambda_clet2 = (float) ((arrival_type2_clet)/end_time);\n float lambda_cloud = (float) ((arrival_type1_cloud+ arrival_type2_cloud)/end_time);\n\n double rate1_clet = mean_cloudlet_jobs1*0.45;\n double rate2_clet = mean_cloudlet_jobs2*0.27;\n\n\n\n NumberFormat numForm = NumberFormat.getInstance();\n numForm.setMinimumFractionDigits(6);\n numForm.setMaximumFractionDigits(6);\n numForm.setRoundingMode(RoundingMode.HALF_EVEN);\n\n\n System.out.println(\"\\n\\n\\n 1) SYSTEM RESPONSE TIME & THROUGHPUT \" + \"(GLOBAL & PER-CLASS)\");\n\n System.out.println(\"\\n Global System response time ...... = \" + numForm.format( system_response_time));\n System.out.println(\" Response time class 1 ...... = \" + numForm.format( response_time_class1));\n System.out.println(\" Response time class 2 ...... = \" + numForm.format( response_time_class2));\n\n System.out.println(\"\\n Global System throughput ...... = \" + numForm.format( lambda_tot));\n System.out.println(\" Throughput class 1 ...... = \" + numForm.format( lambda_1));\n System.out.println(\" Throughput class 2 ...... = \" + numForm.format( lambda_2));\n\n\n System.out.println(\"\\n\\n\\n 2) PER_CLASS EFFECTIVE CLOUDLET THROUGHPUT \");\n System.out.println(\" Task-rate cloudlet class 1 ...... = \" + numForm.format( rate1_clet));\n System.out.println(\" Task-rate cloudlet class 2 ...... = \" + numForm.format( rate2_clet));\n\n\n System.out.println(\"\\n\\n\\n 3) PER_CLASS CLOUD THROUGHPUT \");\n System.out.println(\" Throughput cloud class 1 ...... = \" + numForm.format( lambda_cloud1));\n System.out.println(\" Throughput cloud class 2 ...... = \" + numForm.format( lambda_cloud2));\n\n\n System.out.println(\"\\n\\n\\n 4) CLASS RESPONSE TIME & MEAN POPULATION \" + \"(CLOUDLET & CLOUD)\");\n\n System.out.println(\"\\n Response Time class 1 cloudlet ...... = \" + numForm.format( response_time_cloudlet1));\n System.out.println(\" Response Time class 2 cloudlet ...... = \" + numForm.format(response_time_cloudlet2));\n System.out.println(\" Response Time class 1 cloud ...... = \" + numForm.format( response_time_cloud1));\n System.out.println(\" Response Time class 2 cloud ...... = \" + numForm.format( response_time_cloud2));\n\n System.out.println(\"\\n Mean Population class 1 cloudlet ...... = \" + numForm.format( mean_cloudlet_jobs1));\n System.out.println(\" Mean Population class 2 cloudlet ...... = \" + numForm.format( mean_cloudlet_jobs2));\n System.out.println(\" Mean Population class 1 cloud ...... = \" + numForm.format( mean_cloud_jobs1));\n System.out.println(\" Mean Population class 2 cloud ...... = \" + numForm.format( mean_cloud_jobs2));\n\n }", "public void run () {\n generalFeatureExtraction();\n\n //\n // 2 - Traverse the Call Graph and propagate call stack counter\n propagateFeatures();\n }", "public void execute() {\r\n\r\n\t\t// Fetch the 10 records from DB\r\n\t\t// Iterate over them\r\n\t\t// Fetch the ImageActionObject\r\n\t\t// Get the first task to work on\r\n\t\t// Inastantiate the task by ImageActionTaskFactory.getImageActionTask\r\n\t\t// Set the ImageActionObject\r\n\t\t// Submit the task to the executor\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\r\n\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\r\n\t\tlog.info(\"*** Executing poller at : \" + dateFormat.format(new Date()));\r\n\t\tList<ImageActionObject> incompleteImageActionObjects = new ArrayList<ImageActionObject>();\r\n\t\t// Fetching the 10 records from DB\r\n\t\ttry {\r\n\t\t\tincompleteImageActionObjects = imageActionImpl\r\n\t\t\t\t\t.searchIncompleteImageAction(5);\r\n\t\t\tlog.debug(\"*** Got \" + incompleteImageActionObjects.size()\r\n\t\t\t\t\t+ \" to process\");\r\n\t\t} catch (DbException e) {\r\n\t\t\t// TODO Handle Error\r\n\t\t\tlog.error(\"searchIncompleteImageAction failed\", e);\r\n\t\t}\r\n\t\t// iterate over list of image action objects\r\n\t\tlog.debug(\"incompleteImageActionObjects::\"\r\n\t\t\t\t+ incompleteImageActionObjects);\r\n\r\n\t\tfor (ImageActionObject imageActionObj : incompleteImageActionObjects) {\r\n\t\t\tlog.info(\"ImageAction Object in poller (\" + imageActionObj.getId()\r\n\t\t\t\t\t+ \"): Number of tasks: \"\r\n\t\t\t\t\t+ imageActionObj.getActions().size());\r\n\t\t\tlog.info(\"Current status of image action object:\"\r\n\t\t\t\t\t+ imageActionObj.getCurrent_task_status());\r\n\t\t\t\r\n\t\t\tif(imageActionToRunCountMap.containsKey(imageActionObj.getId())){\r\n\t\t\t\tInteger currentCount = imageActionToRunCountMap.get(imageActionObj.getId());\r\n\t\t\t\tif(currentCount < 10){\r\n\t\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), ++currentCount);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//mark error\r\n\t\t\t\t\tlog.info(\"mark image action {} to error after 10 tries\", imageActionObj.getId());\r\n\t\t\t\t\timageIdsInProcess.remove(imageActionObj.getImage_id());\r\n\t\t\t\t\timageActionObj.setCurrent_task_status(Constants.ERROR);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpersistService.updateImageAction(imageActionObj);\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} catch (DbException e) {\r\n\t\t\t\t\t\tlog.error(\"Error in Poller\",e);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\tfinally{\r\n\t\t\t\t\t\tremoveEntryFromImageActionCountMap(imageActionObj.getId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\t\t\t\t\r\n\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (imageIdsInProcess.contains(imageActionObj.getImage_id())) {\r\n\t\t\t\tlog.info(\"Image already in process. Skipping\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\timageIdsInProcess.add(imageActionObj.getImage_id());\r\n\r\n\t\t\tif (imageActionObj.getCurrent_task_status() != null\r\n\t\t\t\t\t&& imageActionObj.getCurrent_task_status().equals(\r\n\t\t\t\t\t\t\tConstants.INCOMPLETE)) {\r\n\t\t\t\tExecuteActions task = new ExecuteActions(imageActionObj);\r\n\t\t\t\tImageActionExecutor.submitTask(task);\r\n\t\t\t\tlog.info(\"Submitted task for ExecuteActions for id: \"\r\n\t\t\t\t\t\t+ imageActionObj.getId());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "private void process () {\r\n\r\n ArrayList<String> anomaly;\r\n ArrayList<DataInfo> tmp = new ArrayList<>();\r\n int appState, screenState, screenOrientation, closeToObject, opID;\r\n long permissionCount;\r\n double scanDuration;\r\n String packageName, permission, accessTime;\r\n\r\n // get the data in the given scope (from offset, limit rows)\r\n Cursor cursor = sqliteDBHelper.get_data(\"SELECT \" + SqliteDBStructure.PACKAGE_NAME + \", \"\r\n + SqliteDBStructure.PERMISSION + \", \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \", \"\r\n + SqliteDBStructure.APP_STATE + \", \"\r\n + SqliteDBStructure.SCREEN_STATE + \", \"\r\n + SqliteDBStructure.SCREEN_ORIENTATION + \", \"\r\n + SqliteDBStructure.CLOSE_TO_OBJECT\r\n + \" FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME\r\n + \" LIMIT \" + limit + \" OFFSET \" + offset);\r\n\r\n try {\r\n if (cursor != null) {\r\n cursor.moveToFirst();\r\n\r\n while (!cursor.isAfterLast()) {\r\n packageName = cursor.getString(cursor.getColumnIndexOrThrow(SqliteDBStructure.PACKAGE_NAME));\r\n opID = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.PERMISSION));\r\n permission = Permission.opIDToName(opID);\r\n accessTime = cursor.getString(cursor.getColumnIndexOrThrow(SqliteDBStructure.ACCESS_TIME));\r\n appState = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.APP_STATE));\r\n screenState = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.SCREEN_STATE));\r\n screenOrientation = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.SCREEN_ORIENTATION));\r\n closeToObject = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.CLOSE_TO_OBJECT));\r\n\r\n permissionCount = DatabaseUtils.longForQuery(sqliteDBHelper.getReadableDatabase(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE + \" WHERE \" + SqliteDBStructure.PACKAGE_NAME + \" = '\" + packageName + \"' \" + \" AND \" + SqliteDBStructure.PERMISSION + \" = '\" + opID + \"';\", null);\r\n\r\n //Scan duration in Minutes\r\n scanDuration = (((double) stop_scan_time.getTime() + (double) start_scan_time.getTime()) / 1000 )/ 60;\r\n //check for anomaly by ruleset class\r\n anomaly = RuleSet.checkForAnomaly(packageName, permission, permissionCount, appState, screenState, screenOrientation, closeToObject, scanDuration, context);\r\n\r\n //Send data to server or save it locally, if no valid internet connection is available\r\n if (networking) {\r\n sendRawData(packageName, permission, accessTime, appState, screenState, screenOrientation, closeToObject);\r\n if (anomaly.get(0).equals(\"1\"))\r\n MyClient.POST_Anomaly(packageName, permission, anomaly.get(1), \"0\");\r\n } else {\r\n saveRawData(packageName, permission, accessTime, appState, screenState, screenOrientation, closeToObject);\r\n if (anomaly.get(0).equals(\"1\"))\r\n saveAnomaliesImage(packageName, permission, anomaly.get(1), 0);\r\n }\r\n\r\n // create a info object which holds all the necessary information about that data block and store it temporarily in a list\r\n DataInfo info = new DataInfo(packageName, Permission.opIDToDescription(opID), accessTime, permissionCount, anomaly.get(0), anomaly.get(1), scanTime, 0);\r\n tmp.add(info);\r\n\r\n // should the size of the temporary list exceeds MaxBatchSize, write list to the local DB and clear the temp list afterwards \r\n // technically this cannot happen but we are working with threads here so better be safe than sorry\r\n // temp list should not be to big, because we have have to hold task amount of temp list, with each containing around MaxBatchSize entries, in memory at the same time\r\n if (tmp.size() > MaxBatchSize) {\r\n bulkInsertIntoDataAnalyzing(tmp);\r\n tmp.clear();\r\n }\r\n\r\n cursor.moveToNext();\r\n }\r\n\r\n }\r\n } finally {\r\n if (cursor != null) {\r\n cursor.close();\r\n }\r\n }\r\n\r\n // write the data stored in the temp list to the local DB \r\n if (tmp.size() > 0) {\r\n bulkInsertIntoDataAnalyzing(tmp);\r\n tmp.clear();\r\n }\r\n // inform the progress dialog that a task has been finished\r\n updateProgressDialog();\r\n // decrease the amount of ongoing tasks by 1\r\n decreaseTasks();\r\n }", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "public void run() {\n\t\t\t\t\tfor (int i = 0; i < times; i++) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlogger.info(String.format(\"线程-%s:总数%d,第%d次\", name, times, i));\n\t\t\t\t\t\t\tThread.sleep(divide);\n\t\t\t\t\t\t} catch (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}", "@Override\r\n public void run() {\n int nchannels = parentFeature.getNchannels();\r\n\r\n ArrayList<Feature> set1, set2;\r\n String nameSet1, nameSet2;\r\n double dThresh = threshdist;\r\n double[] getMeanMedStdSet1, histo;\r\n String setPairNameCentroidNND, setPairNameEdgeNND;\r\n\r\n // compute the histograms \r\n computeHistogramBins();\r\n\r\n // first compute the distances between the features in each of the channels. \r\n for (int c1 = 0; c1 < nchannels; c1++) {\r\n // get the features we are going to compute the distances between. \r\n set1 = parentFeature.getFeatures(c1, featureName1);\r\n for (int c2 = 0; c2 < nchannels; c2++) {\r\n if (c1 == c2) {\r\n continue;\r\n }\r\n // the set we will compute the distance from. \r\n set2 = parentFeature.getFeatures(c2, featureName2);\r\n // The names used as keys within the Features numerical property may for the channel to channel distance. \r\n// nameSet1 = (C_EXT + (c1 + 1));\r\n// nameSet2 = (C_EXT + (c2 + 1));\r\n nameSet1 = (\"\" + (c1 + 1));\r\n nameSet2 = (\"\" + (c2 + 1));\r\n setPairNameCentroidNND = D_NN_CENT + C_EXT + \"_\" + nameSet1 + \"-\" + nameSet2;\r\n setPairNameEdgeNND = D_NN_EDGE + C_EXT + \"_\" + nameSet1 + \"-\" + nameSet2;\r\n\r\n // Compute the nearest neighbour distances between the sets. \r\n computePairedDistances(set1, set2, nameSet1, nameSet2);\r\n\r\n // some global NND stats \r\n getMeanMedStdSet1 = getMeanMedStd(set1, setPairNameCentroidNND, dThresh);\r\n parentFeature.addNumericProperty(setPairNameCentroidNND + MEAN_EXT, getMeanMedStdSet1[0]);\r\n parentFeature.addNumericProperty(setPairNameCentroidNND + MED_EXT, getMeanMedStdSet1[1]);\r\n parentFeature.addNumericProperty(setPairNameCentroidNND + STD_EXT, getMeanMedStdSet1[2]);\r\n parentFeature.addNumericProperty(setPairNameCentroidNND + FRAC_NN, getMeanMedStdSet1[3]);\r\n\r\n // now compute the histogram of the nearest neighbours\r\n histo = computeHistrogram(set1, setPairNameCentroidNND);\r\n\r\n // save the histogram as well\r\n parentFeature.addObjectProperty(setPairNameCentroidNND + HIST, Arrays.copyOf(histo, histoBins.length));\r\n parentFeature.addObjectProperty(setPairNameCentroidNND + HISTBINS, Arrays.copyOf(histoBins, histoBins.length));\r\n\r\n if (doPFA) {\r\n // proximal feature analysis. \r\n HashMap<String, Double> pfa;\r\n pfa = doPFAsetPair(set1, setPairNameCentroidNND, pfaFeatureNames); \r\n // store in the parent feature for saving later. \r\n parentFeature.addObjectProperty(setPairNameCentroidNND + \"_\" + PFA_EXT, pfa);\r\n //\r\n if(edgeDistance){\r\n // store in the parent feature for saving later. \r\n parentFeature.addObjectProperty(setPairNameEdgeNND + \"_\" + PFA_EXT, pfa);\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n // stop here \r\n if (nRandomisations == 0) {\r\n return;\r\n }\r\n\r\n //System.out.println(\" started randomisations \");\r\n HashMap<String, ArrayList<Double>> statMap = new HashMap<String, ArrayList<Double>>();\r\n HashMap<String, double[][]> histogramValuesMap = new HashMap<String, double[][]>();\r\n\r\n long rand_seed;\r\n // Perform the same analysis but randomise the features of each set. \r\n for (int i = 0; i < nRandomisations; i++) {\r\n // get all of the feature sets for each channel. \r\n for (int c1 = 0; c1 < nchannels; c1++) {\r\n // the set we will keep fixed. \r\n set1 = FeatureOps.duplicateFeatureSet(parentFeature.getFeatures(c1, featureName1));\r\n // compute distance to features in the other sets. \r\n for (int c2 = 0; c2 < nchannels; c2++) {\r\n if (c1 == c2) {\r\n continue;\r\n }\r\n // random seed number for the random number generation. \r\n rand_seed = System.currentTimeMillis();\r\n set2 = FeatureOps.randomizeFeaturePositions(parentFeature, parentFeature.getFeatures(c2, featureName2), rand_seed);\r\n\r\n // The names used as keys within the Features numerical property may for the channel to channel distance. \r\n// nameSet1 = (C_EXT + (c1 + 1));\r\n// nameSet2 = (C_EXT + (c2 + 1));\r\n nameSet1 = (\"\" + (c1 + 1));\r\n nameSet2 = (\"\" + (c2 + 1));\r\n setPairNameCentroidNND = D_NN_CENT + C_EXT + \"_\" + nameSet1 + \"-\" + nameSet2;\r\n setPairNameEdgeNND = D_NN_EDGE + C_EXT + \"_\" + nameSet1 + \"-\" + nameSet2;\r\n \r\n // compute the distance between the \r\n computePairedDistances(set1, set2, nameSet1, nameSet2);\r\n\r\n // now compute the histogram of the nearest neighbours\r\n histo = computeHistrogram(set1, setPairNameCentroidNND);\r\n // save the histogram for this current iteration. \r\n addHistogram2map(histogramValuesMap, histo, setPairNameCentroidNND, i);\r\n\r\n // Do some NND global stats\r\n getMeanMedStdSet1 = getMeanMedStd(set1, setPairNameCentroidNND, dThresh);\r\n addValueToStatMap(statMap, setPairNameCentroidNND + MEAN_EXT, getMeanMedStdSet1[0]);\r\n addValueToStatMap(statMap, setPairNameCentroidNND + MED_EXT, getMeanMedStdSet1[1]);\r\n addValueToStatMap(statMap, setPairNameCentroidNND + STD_EXT, getMeanMedStdSet1[2]);\r\n addValueToStatMap(statMap, setPairNameCentroidNND + FRAC_NN, getMeanMedStdSet1[3]);\r\n }\r\n }\r\n }\r\n\r\n // now compute some stats for the randomised values\r\n Set<String> keys = statMap.keySet();\r\n double meanMean, pMean;\r\n double[] values;\r\n ArrayList<Double> vs;\r\n\r\n //System.out.println(\" sitsize \" + keys.size());\r\n for (String s : keys) {\r\n // walues for this \r\n vs = statMap.get(s);\r\n // extract the values \r\n values = List2Prims.doubleFromDouble(vs);\r\n meanMean = StatUtils.mean(values);\r\n pMean = TestUtils.tTest(parentFeature.getNumericPropertyValue(s), values);\r\n // store the values\r\n parentFeature.addNumericProperty(s + RAND_EXT, meanMean);\r\n parentFeature.addNumericProperty(s + RAND_EXT + PV, pMean);\r\n }\r\n\r\n // Compute the mean and standard deviation of the randomised histograms\r\n // and save in the parent features object map for saving later on. \r\n Set<String> histoKeys = histogramValuesMap.keySet();\r\n double[][] binsMeanStdevs;\r\n for (String s : histoKeys) {\r\n // histograms for this\r\n double[][] histos = histogramValuesMap.get(s);\r\n binsMeanStdevs = computeMeanAndStdevHistogram(histos);\r\n // save the values \r\n parentFeature.addObjectProperty(s + HIST + MEAN_EXT + RAND_EXT, Arrays.copyOf(binsMeanStdevs[1], binsMeanStdevs[1].length));\r\n parentFeature.addObjectProperty(s + HIST + STD_EXT + RAND_EXT, Arrays.copyOf(binsMeanStdevs[2], binsMeanStdevs[2].length));\r\n }\r\n\r\n }", "private synchronized void syncTypeChefAnalyzes() {\r\n\t\tif (threadInExecId.isEmpty()) {\r\n\t\t\tProjectConfigurationErrorLogger.getInstance().clearLogList();\r\n\t\t\trunTypeChefAnalyzes(featureProject.getSourceFolder());\r\n\t\t}\r\n\t\tthreadInExecId.add(Thread.currentThread().getId());\r\n\t}", "@Override\n public void run() {\n ElapsedTime time = new ElapsedTime();\n time.reset();\n while (!sh.liftReady && time.milliseconds() < 1500) {\n }\n //\n sh.pivotPID(650, true, .07/650, .01, .01/650, 2);\n sh.pivotPID(640, false, .07/640, .01, .01/640, 2);\n\n\n\n }" ]
[ "0.6456477", "0.6218579", "0.5847717", "0.5847479", "0.5847009", "0.58309335", "0.57936084", "0.57228994", "0.5702368", "0.56869", "0.56277823", "0.5603051", "0.559181", "0.5577318", "0.55488014", "0.5531719", "0.55228597", "0.55075127", "0.54925984", "0.54903793", "0.5486555", "0.54854447", "0.54675084", "0.54165953", "0.539061", "0.5388748", "0.5362688", "0.53579044", "0.53516287", "0.53501093", "0.53384835", "0.5338103", "0.5327678", "0.53268623", "0.5318615", "0.5315615", "0.52911913", "0.52795845", "0.5275691", "0.52736014", "0.5249448", "0.5231417", "0.5230163", "0.5229293", "0.52258414", "0.5215562", "0.51899874", "0.51807916", "0.5174483", "0.51668364", "0.51618975", "0.51609933", "0.5158747", "0.5151871", "0.51388144", "0.5128172", "0.5127932", "0.5127663", "0.5125038", "0.51086026", "0.5105369", "0.510228", "0.51015836", "0.5101246", "0.50961506", "0.509068", "0.5085089", "0.50845635", "0.50834674", "0.50764203", "0.5073754", "0.50680155", "0.5067469", "0.5063583", "0.5062341", "0.5062185", "0.5061474", "0.50613254", "0.5059864", "0.5058609", "0.5056253", "0.50527155", "0.50523746", "0.50523597", "0.5039311", "0.5030972", "0.50304824", "0.50284994", "0.50200254", "0.50194603", "0.5017025", "0.5009364", "0.49982995", "0.4997937", "0.49848083", "0.49841055", "0.49829358", "0.4978775", "0.49676505", "0.49644783" ]
0.53266466
34
No control puts 'null' into the jDelayed flow counts and speeds.
@Override public void noControl() { q.put(null); v.put(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo64176d() {\n if (this.f41223d != null) {\n this.f41223d.sendEmptyMessageDelayed(1, this.f41224e);\n }\n }", "public void reset() {\n\t\tthis.flow = 0;\n\t}", "public void flowAbrupted() {\n prevInstruction = null;\n }", "public void zero()\n {\n Runnable zeroRunnable = new Runnable() {\n @Override\n public void run()\n {\n {\n boolean liftLimit;\n boolean extendLimit;\n\n\n\n do\n {\n liftLimit = liftLimitSwitch.getState();\n extendLimit = extendLimitSwitch.getState();\n\n if (!liftLimit)\n {\n lift.setPower(-0.5);\n }\n else\n {\n lift.setPower(0);\n }\n\n if (extendLimit)\n {\n extend.setPower(-0.5);\n }\n else\n {\n extend.setPower(0);\n }\n\n if (cancel)\n {\n break;\n }\n } while (!liftLimit || !extendLimit);\n\n if (!cancel)\n {\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n extend.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n extend.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n isZeroed = true;\n }\n }\n }\n };\n\n zeroThread = new Thread(zeroRunnable);\n zeroThread.start();\n }", "public void zeroSpeed() {\n controlRotator.proportionalSpeedSetter(0.0);\n }", "public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }", "public void reset()\n\t{\n\t\tdelayCount = 0f;\n\t\trepeatCount = 0;\n\t\tenabled = true;\n\t}", "private SleeperTask()\r\n\t{\r\n\t\ttimer = new Timer();\r\n\t\tprovider = null;\r\n\t\taction = \"\";\r\n\t\tverbose = false;\r\n\t\tsetRepeat(5);\r\n\t}", "protected void Simulation_done()\n {\n \t//System.out.println(\"total lost:\");\n \tdouble time=getTime();\n \twhile(!a_buffer.isEmpty()){\n \t\ts.delay[s_index]+=time-a_buffer.remove().time;\n \t}\n \ts.delay[s_index]=math_yt.Divide(s.delay[s_index],numM);\n \tif(s.performance[s_index]==0)\n \t\ts.performance[s_index]=Double.POSITIVE_INFINITY;\n \telse\n \t\ts.performance[s_index]=math_yt.Divide(s.performance[s_index],s.firstacked);\n \tif(s.rtt[s_index]==0)\n \t\ts.rtt[s_index]=Double.POSITIVE_INFINITY;\n \telse\n \t\ts.rtt[s_index]=math_yt.Divide(s.rtt[s_index],s.nore);\n \ts.tput[s_index]=math_yt.Divide(math_yt.Multiply(s.t,256),time);\n \t/*if(s.firstacked==0)\n \t\ts.goodput[s_index]=Double.POSITIVE_INFINITY;\n \telse\n \t\ts.goodput[s_index]=math_yt.Divide(math_yt.Multiply(s.firstacked,160),time);*/\n \ts.goodput[s_index]=math_yt.Divide(math_yt.Multiply(s.firstacked,160),time);\n \tSystem.out.println(\"****************************8\");\n \tSystem.out.println(\"time:\"+getTime());\n \tSystem.out.println(\"simulation_done:\"+fa+\", average performance:\"+math_yt.Divide(perf, fa));\n }", "public void setSpeed() {\n if (this.equals(null)) {\n this.speedValue=-5;\n }\n }", "public void stoptimertask() {\n if (timer != null) {\r\n timer.cancel();\r\n timer = null;\r\n }}", "public void mo42335f() {\n Object andSet = getAndSet(null);\n if (andSet == null) {\n return;\n }\n if (this.f36202N.get() != 0) {\n this.f36205a.mo41789a(andSet);\n C13747d.m58699c(this.f36202N, 1);\n return;\n }\n cancel();\n this.f36205a.onError(new MissingBackpressureException(\"Couldn't emit value due to lack of requests!\"));\n }", "@Override\n\tprotected ProducedData performs() {\n\t\treturn null;\n\t}", "protected void execute() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n \tshooterWheel.shooterWheelSpeedControllerFwd.Pause();\n \t\n }", "private void reset () {\n this.logic = null;\n this.lastPulse = 0;\n this.pulseDelta = 0;\n }", "public void setDelay(long d){delay = d;}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "@Override\n protected void execute() {\n //Activate both lifters, throttled by height\n if (Robot.myLifter.getLeftEncoder() > 75) {\n Robot.myLifter.setLeftSpeed(-0.3);\n Robot.myLifter.setRightSpeed(-0.3);\n } else {\n Robot.myLifter.setLeftSpeed(-0.5);\n Robot.myLifter.setRightSpeed(-0.5);\n }\n \n }", "public void stoptimertask() {\n if (timer != null) {\n timer.cancel();\n timer = null;\n }\n }", "public void stoptimertask() {\n if (timer != null) {\n timer.cancel();\n timer = null;\n }\n }", "public void stoptimertask() {\n if (timer != null) {\n timer.cancel();\n timer = null;\n }\n }", "public void stoptimertask() {\n if (timer != null) {\n timer.cancel();\n timer = null;\n }\n }", "@Override\n\tpublic Double getTimer() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void control() {\r\n // data is aggregated this time step\r\n q.put(qCur);\r\n v.put(vCur);\r\n if (lane.model.settings.getBoolean(\"storeDetectorData\")) {\r\n qHist.add(qCur);\r\n vHist.add(vCur);\r\n tHist.add(lane.model.t);\r\n }\r\n // reset count\r\n qCur = 0;\r\n vCur = 0;\r\n }", "private void driveForwardTimer()\r\n\t{\r\n\t\tif(timer.get() < Config.Auto.timeDriveForward){\r\n\t\t\tdrive.setSpeed(0, 0, Config.Auto.driveForwardSpeed, Config.Auto.driveForwardSpeed);\r\n\t\t\tSystem.out.println(timer.get());}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tdrive.setSpeed(0, 0, 0, 0);\r\n\t\t\tautoStep++;\r\n\t\t}\r\n\t}", "public LoopController()\r\n\t{\r\n\t\tregulate = true;\r\n\t\tsmooth = true;\r\n\t\tresolution = 10000;\r\n\t\tfps = 60;\r\n\t\tlastCall = Sys.getTime();\r\n\t\tduration = 0;\r\n\t}", "@Override\n public native int getAutoDelay();", "public void h() {\n long currentTimeMillis = System.currentTimeMillis();\n this.m.sendEmptyMessageDelayed(48, q.c(currentTimeMillis));\n this.m.sendEmptyMessageDelayed(49, q.d(currentTimeMillis));\n }", "public long a(long j) {\n b bVar = this.f31759b;\n if (bVar != null) {\n bVar.b(this.f31760c);\n }\n TXCLog.w(\"TXCMultiStreamDownloader\", \" stream_switch delay stop begin from \" + this.f31760c);\n return this.f31760c;\n }", "private void decWaiters()\r\n/* 451: */ {\r\n/* 452:537 */ this.waiters = ((short)(this.waiters - 1));\r\n/* 453: */ }", "public void autoStopForwardDelayTime(int delay) throws JposException;", "public void mo42332a() {\n this.f36204P.cancel();\n mo42330e();\n }", "protected OpenLoopSpeedController()\r\n\t{\r\n\t\t\r\n\t}", "public void stoptimertask() {\n\t\tif (timer != null) {\n\t\t\ttimer.cancel();\n\t\t\ttimer = null;\n\t\t}\n\t}", "public void resetTask() {\n/* 128 */ this.field_190859_a.func_190709_dP();\n/* 129 */ this.field_190860_b = 2.1D;\n/* */ }", "public void completeStop(){\n motorFrontLeft.setPower(0);\n motorFrontRight.setPower(0);\n motorBackLeft.setPower(0);\n motorBackRight.setPower(0);\n }", "@Override\n public native void setAutoDelay(int ms);", "public void pleaseStop()\n {\n\t this.doorgaan_thread = false;\n\t this.doorgaan_wheel = true;\n draad = null; // waarom? \n }", "@Override\n\tpublic void drive() {\n\t\tif (gasoline > 0) {\n\t\t\tsetAccelerate(true);\n\t\t}\n\t}", "public SynchronousTimeLimitedTask() {\n _steps = new ArrayDeque<BooleanSupplier>();\n }", "public void planted(){\r\n\t\tenable = false; \r\n\t\tcount = 0; \r\n\t}", "public void reset()\r\n\t{\r\n\t\ttimer.stop();\r\n\t\ttimer.reset();\r\n\t\tautoStep = 0;\r\n\t}", "public void init() {\n delayingTimer = new ElapsedTime();\n\n // Define and Initialize Motors and Servos: //\n tailMover = hwMap.dcMotor.get(\"tail_lift\");\n grabberServo = hwMap.servo.get(\"grabber_servo\");\n openGrabber();\n\n // Set Motor and Servo Directions: //\n tailMover.setDirection(DcMotorSimple.Direction.FORWARD);\n\n tailMover.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n tailMover.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n int prevEncoder = tailMover.getCurrentPosition();\n tailMover.setPower(-0.15);\n mainHW.opMode.sleep (300);\n Log.d(\"catbot\", String.format(\"tail lift power %.2f current position %2d prev %2d\", tailMover.getPower(), tailMover.getCurrentPosition(),prevEncoder));\n runtime.reset();\n while((Math.abs(prevEncoder - tailMover.getCurrentPosition()) > 10)&& (runtime.seconds()<3.0)){\n prevEncoder = tailMover.getCurrentPosition();\n mainHW.opMode.sleep(300);\n Log.d(\"catbot\", String.format(\"tail lift power %.2f current position %2d prev %2d\", tailMover.getPower(), tailMover.getCurrentPosition(),prevEncoder));\n }\n tailMover.setPower(0.0);\n // Set Motor and Servo Modes: //\n tailMover.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n tailMover.setTargetPosition(0);\n tailMover.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n closeGrabber();\n }", "@Override\r\n\tpublic void freezeTimer() {\n\t\t\r\n\t}", "private void cancelHeavyLifting()\n {\n }", "protected void execute() {\n \tclimber.setCLimberSpeed(0);\n }", "public void g() {\n this.f29279g.sendEmptyMessageDelayed(10, 1000);\n }", "public void stoperJeux() {\n\t\t\n\t\tliaison.stopper();\n\t}", "@Override\n\tpublic double getSpeed() {\n\t\treturn 0;\n\t}", "void resetLoop () {\n try {\n timer.cancel();\n timer.purge();\n } catch (Exception e) {\n\n }\n timer = new Timer();\n timer.schedule(new LoopTask(), stepDelay, stepDelay);\n }", "public void mo130020b() {\n if (getAndIncrement() == 0) {\n AbstractC32175x<? super R> xVar = this.f109109a;\n ErrorMode iVar = this.f109114f;\n SimplePlainQueue<T> iVar2 = this.f109113e;\n AtomicThrowable cVar = this.f109111c;\n int i = 1;\n while (true) {\n if (this.f109117i) {\n iVar2.clear();\n this.f109118j = null;\n } else {\n int i2 = this.f109119k;\n if (cVar.get() == null || !(iVar == ErrorMode.IMMEDIATE || (iVar == ErrorMode.BOUNDARY && i2 == 0))) {\n boolean z = false;\n if (i2 == 0) {\n boolean z2 = this.f109116h;\n T poll = iVar2.poll();\n if (poll == null) {\n z = true;\n }\n if (z2 && z) {\n Throwable a = cVar.mo130469a();\n if (a == null) {\n xVar.onComplete();\n return;\n } else {\n xVar.onError(a);\n return;\n }\n } else if (!z) {\n try {\n MaybeSource oVar = (MaybeSource) ObjectHelper.m147684a(this.f109110b.apply(poll), \"The mapper returned a null MaybeSource\");\n this.f109119k = 1;\n oVar.mo130568a(this.f109112d);\n } catch (Throwable th) {\n C31732b.m147608b(th);\n this.f109115g.dispose();\n iVar2.clear();\n cVar.mo130470a(th);\n xVar.onError(cVar.mo130469a());\n return;\n }\n }\n } else if (i2 == 2) {\n R r = this.f109118j;\n this.f109118j = null;\n xVar.onNext(r);\n this.f109119k = 0;\n }\n }\n }\n i = addAndGet(-i);\n if (i == 0) {\n return;\n }\n }\n iVar2.clear();\n this.f109118j = null;\n xVar.onError(cVar.mo130469a());\n }\n }", "@Override\n\tpublic int getYWait() {\n\t\treturn 0;\n\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmVideoContrl.maltiSpeedPlayPrevious();\r\n\r\n\t\t\t\t\t}", "static void setTiming(){\n killTime=(Pars.txType!=0) ? Pars.txSt+Pars.txDur+60 : Pars.collectTimesB[2]+Pars.dataTime[1]+60;//time to kill simulation\n tracksTime=(Pars.tracks && Pars.txType==0) ? Pars.collectTimesI[1]:(Pars.tracks)? Pars.collectTimesBTx[1]:100*24*60;//time to record tracks\n }", "public void stopFeeding() {\n motor.set(0);\n }", "public void setDelay(long delay) {\n this.delay = delay;\n }", "public String mayStop() {\n\t return null;\n\t}", "private void m36480q() {\n this.f33867h.postDelayed(new Runnable() {\n public void run() {\n C11089h hVar;\n try {\n if (C11089h.this.f33869j.get() == null || C11089h.this.mo36201k()) {\n hVar = C11089h.this;\n } else if (Boolean.valueOf(C11089h.this.mo36213p()).booleanValue()) {\n C11089h.this.f33867h.postDelayed(this, 200);\n return;\n } else {\n hVar = C11089h.this;\n }\n hVar.mo36200j();\n } catch (Exception e) {\n C11089h.this.mo36200j();\n C11102m.m36543a(e);\n }\n }\n }, 200);\n }", "void setNormalSpeed () {\n if (stepDelay == normalSpeed)\n return;\n stepDelay = normalSpeed;\n resetLoop();\n }", "public double getDelay();", "public void control() {\n\r\n\t}", "public void mo9261j() {\n this.f1300c = null;\n }", "protected Sampler nextIsNull() throws NextIsNullException {\n reInitialize();\n return null;\n }", "void driveStop() {\n flMotor.setPower(0);\n frMotor.setPower(0);\n blMotor.setPower(0);\n brMotor.setPower(0);\n }", "public abstract int delay();", "public final void cpN() {\n AppMethodBeat.m2504i(37317);\n C4990ab.m7410d(\"MicroMsg.Sns.AdLandingPageStreamVideoPlayerComponent\", \"pause play\");\n this.fbD.post(new C134562());\n if (this.oKj != 0) {\n this.rbe = (int) (((long) this.rbe) + (System.currentTimeMillis() - this.oKj));\n this.oKj = 0;\n }\n AppMethodBeat.m2505o(37317);\n }", "private void nullstillFordeling(){\n int i = indeks;\n politi = -1;\n mafiaer = -1;\n venner = -1;\n mafia.nullstillSpesialister();\n spillere.tømTommeRoller();\n for (indeks = 0; roller[indeks] == null; indeks++) ;\n fordeling = null;\n }", "private void halt() {\n robot.leftFront.setPower(0);\n robot.leftBack.setPower(0);\n robot.rightFront.setPower(0);\n robot.rightBack.setPower(0);\n }", "public void mo42595b() {\n if (getAndIncrement() == 0) {\n Observer<? super R> a = this.f41312b;\n int missing = 1;\n while (!this.f41318h) {\n if (this.f41317g) {\n boolean empty = this.f41320j.get() == null;\n if (this.f41315e) {\n if (empty) {\n Throwable ex = (Throwable) this.f41316f.get();\n if (ex != null) {\n a.onError(ex);\n } else {\n a.onComplete();\n }\n return;\n }\n } else if (((Throwable) this.f41316f.get()) != null) {\n a.onError(this.f41316f.mo42732a());\n return;\n } else if (empty) {\n a.onComplete();\n return;\n }\n }\n SwitchMapInnerObserver<T, R> inner = (C13573a) this.f41320j.get();\n if (inner != null) {\n SpscLinkedArrayQueue<R> q = inner.f41309c;\n if (inner.f41310d) {\n boolean empty2 = q.isEmpty();\n if (this.f41315e) {\n if (empty2) {\n this.f41320j.compareAndSet(inner, null);\n }\n } else if (((Throwable) this.f41316f.get()) != null) {\n a.onError(this.f41316f.mo42732a());\n return;\n } else if (empty2) {\n this.f41320j.compareAndSet(inner, null);\n }\n }\n boolean retry = false;\n while (!this.f41318h) {\n if (inner != this.f41320j.get()) {\n retry = true;\n } else if (this.f41315e || ((Throwable) this.f41316f.get()) == null) {\n boolean d = inner.f41310d;\n R v = q.poll();\n boolean empty3 = v == null;\n if (d && empty3) {\n this.f41320j.compareAndSet(inner, null);\n retry = true;\n } else if (!empty3) {\n a.onNext(v);\n }\n } else {\n a.onError(this.f41316f.mo42732a());\n return;\n }\n if (retry) {\n continue;\n }\n }\n return;\n }\n missing = addAndGet(-missing);\n if (missing == 0) {\n return;\n }\n }\n }\n }", "public void strafeLeftTimer()\r\n\t{\r\n\t\tif(timer.get() < Config.Auto.timeStrafe)\r\n\t\t{\r\n\t\t\tdrive.setSpeed(0, 0, Config.Auto.strafeSpeed, Config.Auto.strafeSpeed);\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeDriveTowardTote)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in second else if\");\r\n\t\t\tdrive.setSpeed(-Config.Auto.driveTowardToteSpeed, -Config.Auto.driveTowardToteSpeed, 0, 0);\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeStrafeBackwards)\r\n\t\t\tdrive.setSpeed(0, 0, -Config.Auto.strafeSpeed, -Config.Auto.strafeSpeed);\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}", "public long getDelay() {\n return this.delay;\n }", "public int getPauseBetweenHillClimbPlays()\n {\n return 0;\n }", "void drainFused() {\n int n;\n int n2 = 1;\n Subscriber<T> subscriber = this.actual;\n SimpleQueueWithConsumerIndex<Object> simpleQueueWithConsumerIndex = this.queue;\n do {\n if (this.cancelled) {\n simpleQueueWithConsumerIndex.clear();\n return;\n }\n Throwable throwable = (Throwable)this.error.get();\n if (throwable != null) {\n simpleQueueWithConsumerIndex.clear();\n subscriber.onError(throwable);\n return;\n }\n n = simpleQueueWithConsumerIndex.producerIndex() == this.sourceCount ? 1 : 0;\n if (!simpleQueueWithConsumerIndex.isEmpty()) {\n subscriber.onNext(null);\n }\n if (n != 0) {\n subscriber.onComplete();\n return;\n }\n n2 = n = this.addAndGet(-n2);\n } while (n != 0);\n }", "@Override\n public void execute() {\n if (shooter.getShooterVelocity() < THRESHOLD) {\n shooter.setShooter(accel);\n if (delivery.getBreakbeams()[3]) {\n delivery.setDeliveryBelt(backdrive);\n } else {\n delivery.stopDeliveryBelt();\n }\n } else if (shooter.getShooterVelocity() < TARGET) {\n shooter.setShooter(shoot);\n } else {\n shooter.setShooter(shoot);\n delivery.setDeliveryBelt(feed);\n }\n\n\n ShuffleboardHelpers.setWidgetValue(\"Shooter\", \"Shooter Velocity\", shooter.getShooterVelocity());\n\n boolean change = true;\n boolean[] breakbeams = delivery.getBreakbeams();\n for (boolean beam : breakbeams)\n if (beam)\n change = false;\n if (change) {\n counter++;\n } else {\n counter = 0;\n }\n }", "public void mo33816a() {\n this.f15330j = null;\n }", "@Override\n public void stop() {\n if (FLM != null) FLM.setPower(0);\n if (FRM != null) FRM.setPower(0);\n if (BLM != null) BLM.setPower(0);\n if (BRM != null) BRM.setPower(0);\n if (BigSuck != null) BigSuck.setPower(0);\n if (SmallSuck != null) SmallSuck.setPower(0);\n if (UpLift != null) UpLift.setPower(0);\n if (DragArm != null) DragArm.setPosition(DragArmRestPosition);\n if (LiftGrab != null) LiftGrab.setPosition(LiftGrabRestPosition);\n if (LiftSwivel != null) LiftSwivel.setPosition(LiftSwivelRestPosition);\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tRobot.intakeSubsystem._getSpeed();\n\n\t\tRobot.driveSubsystem.operatorOverride();\n\t\tScheduler.getInstance().run();\n\n\t\tTargetRegion boilerTarget = Robot.navigator.getBoilerTarget();\n\t\tif (boilerTarget != null) {\n\t\t\tSmartDashboard.putNumber(\"Target Center X\", boilerTarget.m_centerTop);\n\t\t\tSmartDashboard.putNumber(\"Target Center Y\", boilerTarget.m_bounds.m_top);\n\t\t} else {\n\t\t\tSmartDashboard.putNumber(\"Target Center X\", -1);\n\t\t\tSmartDashboard.putNumber(\"Target Center Y\", -1);\n\t\t}\n\t}", "private static void processGroundCal()\n\t{\n\t\tif (testMotor != null) {\n\t\t\tSystem.out.println(\"Calibrating arm to floor position\");\n\t\t\ttestMotor.setPosition(SOFT_ENCODER_LIMIT_FLOOR);\n\t\t}\n\t}", "@Override\n\tprotected void controlUpdate(float tpf) {\n\t\t\n\t}", "public void liftUp(){\n set(m_defaultLiftSpeedUp);\n }", "public static void delay(){\n System.out.print(\"\");\r\n System.out.print(\"\");\r\n }", "public void nullstill();", "public void think()\r\n/* 32: */ {\r\n/* 33: 29 */ think_blocking();\r\n/* 34: */ }", "private void resetCooldown() {\n nextAttack = tower.getFireFrequency();\n }", "public void puke(){\r\n top = null;\r\n size = 0;\r\n \r\n }", "void setZeroStart();", "public void fltMotors(){\n\t\tsynchStop(MMXCOMMAND_FLOAT);\n\t}", "@Override\n public void periodic()\n {\n if(AutoIntake)\n intake(-0.2f, -0.5f);\n }", "public void drain() {\n int missed;\n if (getAndIncrement() == 0) {\n SpscLinkedArrayQueue<Object> q = this.queue;\n Subscriber<? super R> a = this.actual;\n int missed2 = 1;\n while (this.cancelled == 0) {\n if (this.error.get() != null) {\n q.clear();\n cancelAll();\n errorAll(a);\n return;\n }\n boolean d = this.active.get() == 0;\n Integer mode = (Integer) q.poll();\n boolean empty = mode == null;\n if (d && empty) {\n this.lefts.clear();\n this.rights.clear();\n this.disposables.dispose();\n a.onComplete();\n return;\n } else if (empty) {\n missed2 = addAndGet(-missed2);\n if (missed2 == 0) {\n return;\n }\n } else {\n TRight val = q.poll();\n if (mode == LEFT_VALUE) {\n TRight tright = val;\n int i = this.leftIndex;\n this.leftIndex = i + 1;\n int idx = i;\n this.lefts.put(Integer.valueOf(idx), tright);\n try {\n Publisher publisher = (Publisher) ObjectHelper.requireNonNull(this.leftEnd.apply(tright), \"The leftEnd returned a null Publisher\");\n TRight right = new FlowableGroupJoin.LeftRightEndSubscriber(this, true, idx);\n this.disposables.add(right);\n publisher.subscribe(right);\n Throwable ex = this.error.get();\n if (ex != null) {\n q.clear();\n cancelAll();\n errorAll(a);\n return;\n }\n long r = this.requested.get();\n Iterator<TRight> it = this.rights.values().iterator();\n missed = missed2;\n Throwable th = ex;\n long e = 0;\n while (it.hasNext()) {\n TRight end = right;\n Iterator<TRight> it2 = it;\n try {\n R w = ObjectHelper.requireNonNull(this.resultSelector.apply(tright, it.next()), \"The resultSelector returned a null value\");\n if (e != r) {\n a.onNext(w);\n e++;\n right = end;\n it = it2;\n } else {\n R r2 = w;\n ExceptionHelper.addThrowable(this.error, new MissingBackpressureException(\"Could not emit value due to lack of requests\"));\n q.clear();\n cancelAll();\n errorAll(a);\n return;\n }\n } catch (Throwable exc) {\n fail(exc, a, q);\n return;\n }\n }\n TRight end2 = right;\n if (e != 0) {\n BackpressureHelper.produced(this.requested, e);\n }\n } catch (Throwable exc2) {\n int i2 = missed2;\n fail(exc2, a, q);\n return;\n }\n } else {\n missed = missed2;\n if (mode == RIGHT_VALUE) {\n TRight right2 = val;\n int i3 = this.rightIndex;\n this.rightIndex = i3 + 1;\n int idx2 = i3;\n this.rights.put(Integer.valueOf(idx2), right2);\n try {\n Publisher publisher2 = (Publisher) ObjectHelper.requireNonNull(this.rightEnd.apply(right2), \"The rightEnd returned a null Publisher\");\n FlowableGroupJoin.LeftRightEndSubscriber end3 = new FlowableGroupJoin.LeftRightEndSubscriber(this, false, idx2);\n this.disposables.add(end3);\n publisher2.subscribe(end3);\n Throwable ex2 = this.error.get();\n if (ex2 != null) {\n q.clear();\n cancelAll();\n errorAll(a);\n return;\n }\n long r3 = this.requested.get();\n Iterator<TLeft> it3 = this.lefts.values().iterator();\n Throwable th2 = ex2;\n FlowableGroupJoin.LeftRightEndSubscriber leftRightEndSubscriber = end3;\n long e2 = 0;\n while (it3.hasNext()) {\n int idx3 = idx2;\n Iterator<TLeft> it4 = it3;\n try {\n R w2 = ObjectHelper.requireNonNull(this.resultSelector.apply(it3.next(), right2), \"The resultSelector returned a null value\");\n if (e2 != r3) {\n a.onNext(w2);\n e2++;\n idx2 = idx3;\n it3 = it4;\n } else {\n R r4 = w2;\n ExceptionHelper.addThrowable(this.error, new MissingBackpressureException(\"Could not emit value due to lack of requests\"));\n q.clear();\n cancelAll();\n errorAll(a);\n return;\n }\n } catch (Throwable exc3) {\n fail(exc3, a, q);\n return;\n }\n }\n if (e2 != 0) {\n BackpressureHelper.produced(this.requested, e2);\n }\n } catch (Throwable exc4) {\n int i4 = idx2;\n fail(exc4, a, q);\n return;\n }\n } else if (mode == LEFT_CLOSE) {\n FlowableGroupJoin.LeftRightEndSubscriber end4 = (FlowableGroupJoin.LeftRightEndSubscriber) val;\n this.lefts.remove(Integer.valueOf(end4.index));\n this.disposables.remove(end4);\n } else if (mode == RIGHT_CLOSE) {\n FlowableGroupJoin.LeftRightEndSubscriber end5 = (FlowableGroupJoin.LeftRightEndSubscriber) val;\n this.rights.remove(Integer.valueOf(end5.index));\n this.disposables.remove(end5);\n }\n }\n missed2 = missed;\n }\n }\n q.clear();\n }\n }", "public void run() {\n int tempRate;\n long frameTimeNanos = OppoRampAnimator.this.mChoreographer.getFrameTimeNanos();\n float timeDelta = ((float) (frameTimeNanos - OppoRampAnimator.this.mLastFrameTimeNanos)) * 1.0E-9f;\n OppoRampAnimator.this.mLastFrameTimeNanos = frameTimeNanos;\n OppoRampAnimator.access$208();\n if (OppoRampAnimator.this.mTargetValue > OppoRampAnimator.this.mCurrentValue) {\n int i = 300;\n if (4 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i2 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i2 + i;\n } else if (3 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i3 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i3 + i;\n } else if (2 == OppoBrightUtils.mBrightnessBitsConfig) {\n int i4 = OppoRampAnimator.this.mRate;\n if (OppoRampAnimator.mAnimationFrameCount <= 300) {\n i = OppoRampAnimator.mAnimationFrameCount;\n }\n tempRate = i4 + i;\n } else {\n tempRate = OppoRampAnimator.this.mRate;\n }\n } else {\n tempRate = OppoRampAnimator.this.mRate;\n }\n OppoBrightUtils unused = OppoRampAnimator.this.mOppoBrightUtils;\n float scale = OppoBrightUtils.mBrightnessNoAnimation ? 0.0f : ValueAnimator.getDurationScale();\n if (scale == OppoBrightUtils.MIN_LUX_LIMITI) {\n OppoRampAnimator oppoRampAnimator = OppoRampAnimator.this;\n oppoRampAnimator.mAnimatedValue = (float) oppoRampAnimator.mTargetValue;\n } else {\n float amount = OppoRampAnimator.this.caculateAmount((((float) tempRate) * timeDelta) / scale);\n float amountScaleFor4096 = 1.0f;\n OppoBrightUtils unused2 = OppoRampAnimator.this.mOppoBrightUtils;\n int i5 = OppoBrightUtils.mBrightnessBitsConfig;\n OppoBrightUtils unused3 = OppoRampAnimator.this.mOppoBrightUtils;\n if (i5 == 4) {\n amountScaleFor4096 = 2.0f;\n }\n if (OppoRampAnimator.this.mOppoBrightUtils.isAIBrightnessOpen()) {\n OppoBrightUtils unused4 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mManualSetAutoBrightness && OppoRampAnimator.this.mRate != OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST && !DisplayPowerController.mScreenDimQuicklyDark) {\n OppoBrightUtils unused5 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mReduceBrightnessAnimating) {\n amount = amountScaleFor4096 * OppoRampAnimator.this.mOppoBrightUtils.getAIBrightnessHelper().getNextChange(OppoRampAnimator.this.mTargetValue, OppoRampAnimator.this.mAnimatedValue, timeDelta);\n }\n }\n }\n if (OppoRampAnimator.this.mTargetValue > OppoRampAnimator.this.mCurrentValue) {\n OppoRampAnimator oppoRampAnimator2 = OppoRampAnimator.this;\n oppoRampAnimator2.mAnimatedValue = Math.min(oppoRampAnimator2.mAnimatedValue + amount, (float) OppoRampAnimator.this.mTargetValue);\n } else {\n OppoBrightUtils unused6 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseAutoBrightness && amount < 10.0f) {\n amount = (float) (OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST / 60);\n }\n OppoRampAnimator oppoRampAnimator3 = OppoRampAnimator.this;\n oppoRampAnimator3.mAnimatedValue = Math.max(oppoRampAnimator3.mAnimatedValue - amount, (float) OppoRampAnimator.this.mTargetValue);\n }\n }\n int oldCurrentValue = OppoRampAnimator.this.mCurrentValue;\n OppoRampAnimator oppoRampAnimator4 = OppoRampAnimator.this;\n oppoRampAnimator4.mCurrentValue = Math.round(oppoRampAnimator4.mAnimatedValue);\n if (oldCurrentValue != OppoRampAnimator.this.mCurrentValue) {\n OppoRampAnimator.this.mProperty.setValue(OppoRampAnimator.this.mObject, OppoRampAnimator.this.mCurrentValue);\n }\n if (OppoRampAnimator.this.mOppoBrightUtils.isSunnyBrightnessSupport()) {\n OppoRampAnimator.this.mOppoBrightUtils.setCurrentBrightnessRealValue(OppoRampAnimator.this.mCurrentValue);\n }\n if ((OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue >= OppoRampAnimator.this.mCurrentValue || OppoAutomaticBrightnessController.mProximityNear) && ((OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue <= OppoRampAnimator.this.mCurrentValue) && (!OppoBrightUtils.DEBUG_PRETEND_PROX_SENSOR_ABSENT || OppoRampAnimator.this.mTargetValue == OppoRampAnimator.this.mCurrentValue))) {\n OppoBrightUtils unused7 = OppoRampAnimator.this.mOppoBrightUtils;\n if (!OppoBrightUtils.mManualSetAutoBrightness || OppoRampAnimator.this.mTargetValue == OppoRampAnimator.this.mCurrentValue) {\n int unused8 = OppoRampAnimator.mAnimationFrameCount = 0;\n OppoRampAnimator.this.mAnimating = false;\n if (OppoRampAnimator.this.mListener != null) {\n OppoRampAnimator.this.mListener.onAnimationEnd();\n OppoBrightUtils unused9 = OppoRampAnimator.this.mOppoBrightUtils;\n OppoBrightUtils.mUseWindowBrightness = false;\n OppoBrightUtils unused10 = OppoRampAnimator.this.mOppoBrightUtils;\n OppoBrightUtils.mCameraUseAdjustmentSetting = false;\n return;\n }\n return;\n }\n }\n OppoRampAnimator.this.postAnimationCallback();\n }", "@Override\n protected void execute() {\n if(!Robot.SCISSOR.getFloorSensor() && speed < 0) {\n Robot.SCISSOR.liftRobotPnumatic(false);\n }\n }", "public void teleopPeriodic() {\n\n \t//NetworkCommAssembly.updateValues();\n \t\n\t\t// both buttons pressed simultaneously, time to cal to ground\n\t\tif (gamepad.getRawButton(FRONT_ARM_GROUND_CAL_BUTTON1) && gamepad.getRawButton(FRONT_ARM_GROUND_CAL_BUTTON2)) {\n\t\t\tprocessGroundCal();\n\t\t}\n\n\t\t// PID CONTROL ONLY\n\t\tdouble armDeltaPos = gamepad.getRawAxis(1);\n\t\tif (Math.abs(armDeltaPos) < ARM_DEADZONE) {\n\t\t\tarmDeltaPos = 0.0f;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tarmDeltaPos *= ARM_POS_MULTIPLIER;\n\t\t\tdouble currPos = testMotor.getPosition();\n\t\t\t\n\t\t\tif (((currPos > SOFT_ENCODER_LIMIT_MAX) && armDeltaPos > 0.0) || ((currPos < SOFT_ENCODER_LIMIT_FLOOR) && armDeltaPos < 0.0)) {\n\t\t\t\tSystem.out.println(\"SOFT ARM LIMIT HIT! Setting armDeltaPos to zero\");\n\t\t\t\tarmDeltaPos = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdouble newPos = currPos + armDeltaPos;\n\t\t\ttestMotor.set(newPos);\n\t\t\tSystem.out.println(\"Setting new front arm pos = \" + newPos);\t\n\t\t}\t\t\n\n \t/*\n\t\tdouble newArmPos = gamepad.getRawAxis(1);\n\t\tif(Math.abs(newArmPos) <= ARM_DEADZONE) {\n\t\t\tnewArmPos = 0.0;\n\t\t}\n\t\tdouble newMotorPos = (newArmPos * ARM_SPEED_MULTIPLIER) + testMotor.getPosition();\n\t\tpositionMoveByCount(newMotorPos);\n\t\tSystem.out.println(\"input = \" + newArmPos + \" target pos = \" + newMotorPos + \" enc pos = \" + testMotor.getPosition());\n \t*/\n \t\n\t\t// PercentVbus test ONLY!!\n \t/*\n\t\tdouble armSpeed = gamepad.getRawAxis(1);\n\t\tif (Math.abs(armSpeed) < ARM_DEADZONE) {\n\t\t\tarmSpeed = 0.0f;\n\t\t}\t\n\t\tarmSpeed *= ARM_MULTIPLIER;\n\t\t\n\t\tdouble pos= testMotor.getPosition();\n\t\tif (((pos > SOFT_ENCODER_LIMIT_1) && armSpeed < 0.0) || ((pos < SOFT_ENCODER_LIMIT_2) && armSpeed > 0.0))\n\t\t\tarmSpeed = 0.0;\n\t\ttestMotor.set(armSpeed);\n\t\t\n\t\tSystem.out.println(\"armSpeed = \" + armSpeed + \" enc pos = \" + testMotor.getPosition());\n\t\t */ \n }", "@Override\n public StopOperator getStopOperator() {\n return null;\n }", "public void setDelay(double clock);", "public void reset(){\n ioTime=0;\n waitingTime=0;\n state=\"unstarted\";\n rem=total_CPU_time;\n ioBurstTime=0;\n cpuBurstTime=0;\n remainingCPUBurstTime=null;\n }", "public void startExecuting()\n {\n super.startExecuting();\n this.breakingTime = 0;\n }", "public void resetTimeLimitAction();", "public void brake() {\n\t\tsetPower(Motor.STOP);\r\n\t}", "@Override\n protected void end() {\n Robot.myLifter.setLeftSpeed(0);\n Robot.myLifter.setRightSpeed(0);\n }", "public void setRemainingFireTicks(int debug1) {\n/* 2105 */ super.setRemainingFireTicks(this.abilities.invulnerable ? Math.min(debug1, 1) : debug1);\n/* */ }" ]
[ "0.5600891", "0.5595392", "0.55848217", "0.55327165", "0.5447133", "0.54334724", "0.54110867", "0.53368604", "0.5293916", "0.5287343", "0.5284816", "0.5229615", "0.52287024", "0.5218779", "0.52076256", "0.5205854", "0.5201232", "0.51999855", "0.5193212", "0.5193212", "0.5193212", "0.5193212", "0.5182068", "0.51782686", "0.5166409", "0.5159818", "0.51508254", "0.51487374", "0.51445705", "0.5140842", "0.51366276", "0.5130882", "0.5124903", "0.5120349", "0.5108291", "0.51046216", "0.51030624", "0.50906396", "0.5087308", "0.5083444", "0.5081791", "0.50714856", "0.506579", "0.5062034", "0.5060278", "0.50598884", "0.5047678", "0.50412303", "0.50396365", "0.5039493", "0.50394183", "0.50260866", "0.5015473", "0.50095594", "0.50089", "0.5003283", "0.5000907", "0.4997821", "0.4994644", "0.49939477", "0.49887225", "0.4984671", "0.49803114", "0.49769044", "0.49721125", "0.49701566", "0.49632105", "0.4959891", "0.4953743", "0.49505925", "0.49457955", "0.4943937", "0.49411878", "0.49389243", "0.49341166", "0.49316698", "0.49316052", "0.49285695", "0.4927297", "0.49252033", "0.4918939", "0.4911398", "0.49101892", "0.49090096", "0.4907089", "0.49066406", "0.49034566", "0.49018955", "0.4901314", "0.48973712", "0.4894958", "0.48947537", "0.48943156", "0.4888201", "0.4886846", "0.4886446", "0.48859474", "0.48850128", "0.48747706", "0.48727667" ]
0.5420173
6
Updates the current measurement with an additional vehicle.
@Override public void pass(Vehicle veh) { if (qCur == 0) vCur = veh.v; else vCur = ((vCur*qCur)+veh.v)/(qCur+1); // add velocity to average qCur++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void update(Vehicle vehicle) {\n }", "@Update\n void update(Measurement measurement);", "private void updateVehicles() {\n OffloaderSyncAdapter.syncImmediately(getContext());\n Log.w(LOG_TAG, \"updateVehicles: \");\n }", "public void update(LocationStructure vehicleLocation, Date recordedAtTime) {\n\t\tif(locations.size()>1) {\n\t\t\tLocationStructure tail = locations.peekLast(); \n\t\t\ttraveledSoFar += calculateDistance(vehicleLocation.getLatitude().doubleValue(), vehicleLocation.getLongitude().doubleValue(), tail.getLatitude().doubleValue(), tail.getLongitude().doubleValue());\n\t\t}\n\t\tlocations.addLast(vehicleLocation);\n\t\ttimes.addLast(recordedAtTime);\n\t\tif(times.size()>K) {\n\t\t\tlocations.removeFirst();\n\t\t\ttimes.removeFirst();\t\t\n\t\t\taverageSpeed.removeFirst();\n\t\t}\n\t\tupdatePointSpeeds();\n\t\tcalculateAvgSpeed();\t \n\t}", "@Override\n public long updateVehcile(com.woc.dto.Vehicle v) {\n return 0;\n }", "public void addFuel(double fuelToAdd){\n\n fuelRemaining = fuelRemaining + fuelToAdd;\n }", "private void determinationVATRate(Vehicle vehicle) {\n if (vehicle.getEngineType().name().equals(\"electric\")) {\n vehicle.setVATRate(0);\n } else {\n vehicle.setVATRate(20);\n }\n }", "public void update() {\n\t\tif (!uiDone)\n\t\t\tinitializeUI();\n\t\t\n Vehicle vehicle = (Vehicle) unit;\n\n // Update driver button if necessary.\n boolean driverChange = false;\n if (driverCache == null) {\n if (vehicle.getOperator() != null) driverChange = true;\n }\n else if (!driverCache.equals(vehicle.getOperator())) driverChange = true;\n if (driverChange) {\n driverCache = vehicle.getOperator();\n if (driverCache == null) {\n driverButton.setVisible(false);\n }\n else {\n driverButton.setVisible(true);\n driverButton.setText(driverCache.getOperatorName());\n }\n }\n\n // Update status label\n if (!vehicle.sameStatusTypes(statusCache, vehicle.getStatusTypes())) {\n statusCache = vehicle.getStatusTypes();\n statusLabel.setText(vehicle.printStatusTypes());\n }\n\n // Update beacon label\n if (beaconCache != vehicle.isBeaconOn()) {\n \tbeaconCache = vehicle.isBeaconOn();\n \tif (beaconCache) beaconLabel.setText(\"On\");\n \telse beaconLabel.setText(\"Off\");\n }\n\n // Update speed label\n if (speedCache != vehicle.getSpeed()) {\n speedCache = vehicle.getSpeed();\n speedLabel.setText(\"\" + formatter.format(speedCache) + \" km/h\");\n }\n\n // Update elevation label if ground vehicle.\n if (vehicle instanceof GroundVehicle) {\n GroundVehicle gVehicle = (GroundVehicle) vehicle;\n double currentElevation = gVehicle.getElevation();\n if (elevationCache != currentElevation) {\n elevationCache = currentElevation;\n elevationLabel.setText(formatter.format(elevationCache) + \" km\");\n }\n }\n\n Mission mission = missionManager.getMissionForVehicle(vehicle);\n \n boolean hasDestination = false;\n \t\t\n if ((mission != null) && (mission instanceof VehicleMission)\n && ((VehicleMission) mission).getTravelStatus().equals(TravelMission.TRAVEL_TO_NAVPOINT)) {\n \tNavPoint destinationPoint = ((VehicleMission) mission).getNextNavpoint();\n \t\n \thasDestination = true;\n \t\n \tif (destinationPoint.isSettlementAtNavpoint()) {\n \t\t// If destination is settlement, update destination button.\n \t\tif (destinationSettlementCache != destinationPoint.getSettlement()) {\n \t\t\tdestinationSettlementCache = destinationPoint.getSettlement();\n \t\t\tdestinationButton.setText(destinationSettlementCache.getName());\n \t\t\taddDestinationButton();\n \t\t\tdestinationTextCache = \"\";\n \t\t}\n \t}\n \telse {\n// \t\tif (destinationTextCache != \"\") {\n \t\t\t// If destination is coordinates, update destination text label.\n \t\t\tdestinationTextCache = Conversion.capitalize(destinationPoint.getDescription());//\"A Navpoint\";\n \t\t\tdestinationTextLabel.setText(destinationTextCache);\n \t\t\taddDestinationTextLabel();\n destinationSettlementCache = null;\n// \t\t}\n \t}\n }\n \n if (!hasDestination) {\n \t// If destination is none, update destination text label.\n \tif (destinationTextCache != \"\") {\n \t\tdestinationTextCache = \"\";\n \t\tdestinationTextLabel.setText(destinationTextCache);\n \t\taddDestinationTextLabel();\n \t\tdestinationSettlementCache = null;\n \t}\n }\n \n\n // Update latitude and longitude panels if necessary.\n if ((mission != null) && (mission instanceof VehicleMission)\n && ((VehicleMission) mission).getTravelStatus().equals(TravelMission.TRAVEL_TO_NAVPOINT)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n \tif (destinationLocationCache == null)\n \t\tdestinationLocationCache = new Coordinates(vehicleMission.getNextNavpoint().getLocation());\n \telse \n \t\tdestinationLocationCache.setCoords(vehicleMission.getNextNavpoint().getLocation());\n destinationLatitudeLabel.setText(\"\" +\n destinationLocationCache.getFormattedLatitudeString());\n destinationLongitudeLabel.setText(\"\" +\n destinationLocationCache.getFormattedLongitudeString());\n }\n else {\n \tif (destinationLocationCache != null) {\n \t\tdestinationLocationCache = null;\n destinationLatitudeLabel.setText(\"\");\n destinationLongitudeLabel.setText(\"\");\n \t}\n }\n\n // Update distance to destination if necessary.\n if ((mission != null) && (mission instanceof VehicleMission)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n \ttry {\n \t\tif (distanceCache != vehicleMission.getCurrentLegRemainingDistance()) {\n \t\t\tdistanceCache = vehicleMission.getCurrentLegRemainingDistance();\n \t\t\tdistanceLabel.setText(\"\" + formatter.format(distanceCache) + \" km\");\n \t\t}\n \t}\n \tcatch (Exception e) {\n \t\tlogger.log(Level.SEVERE,\"Error getting current leg remaining distance.\");\n \t\t\te.printStackTrace(System.err);\n \t}\n }\n else {\n \tdistanceCache = 0D;\n \tdistanceLabel.setText(\"\");\n }\n\n // Update ETA if necessary\n if ((mission != null) && (mission instanceof VehicleMission)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n if (vehicleMission.getLegETA() != null) {\n if (!etaCache.equals(vehicleMission.getLegETA().toString())) {\n etaCache = vehicleMission.getLegETA().toString();\n etaLabel.setText(\"\" + etaCache);\n }\n }\n }\n else {\n \tetaCache = \"\";\n \tetaLabel.setText(\"\");\n }\n\n // Update direction display\n directionDisplay.update();\n\n // Update terrain display\n terrainDisplay.update();\n }", "private void calculationAndAddAgeCoefficient(Vehicle vehicle) {\n Calendar calendar = Calendar.getInstance();\n int nowYear = calendar.get(Calendar.YEAR);\n int yearOfManufacture;\n int differenceOfYears;\n\n if (vehicle.getYearOfManufacture() != null) {\n // Get year of manufacture\n if (vehicle.getYearOfManufacture().getDescription().equals(\"2003 і раніше\")) { // Change data at the beginning of the year!!!\n yearOfManufacture = 2003; // Change data at the beginning of the year!!!\n } else {\n yearOfManufacture = Integer.parseInt(vehicle.getYearOfManufacture().getDescription());\n }\n\n differenceOfYears = nowYear - yearOfManufacture;\n\n if (differenceOfYears <= 2) {\n vehicle.setAgeCoefficient(1);\n } else {\n vehicle.setAgeCoefficient(differenceOfYears - 1);\n }\n }\n }", "public void updateVehicle(Vehicle vehicle) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_VEHICLE_NAME, vehicle.getName());\n values.put(COLUMN_VEHICLE_NUMBER, vehicle.getNumber());\n values.put(COLUMN_VEHICLE_CC, vehicle.getCc());\n values.put(COLUMN_VEHICLE_YEAR, vehicle.getYear());\n values.put(COLUMN_VEHICLE_TYPE, vehicle.getType());\n values.put(COLUMN_VEHICLE_FUEL, vehicle.getFuel());\n values.put(COLUMN_VEHICLE_CATEGORY, vehicle.getCategory());\n values.put(COLUMN_VEHICLE_DATE, vehicle.getDate());\n // updating row\n db.update(TABLE_VEHICLE, values, COLUMN_VEHICLE_NUMBER + \" = ?\",\n new String[]{vehicle.getNumber()});\n db.close();\n }", "public void update(Vehicle v, float dt) {\nPoint2D.Float p = v.getPosition();\r\nPoint2D.Float tp = target.getPosition();\r\nPoint2D.Float desired_velocity = new Point2D.Float(tp.x - p.x , tp.y - p.y);\r\nVehicle.scale(desired_velocity, v.getMaxSpeed());\r\nv.updateSteering(desired_velocity.x, desired_velocity.y);\r\n}", "@Override\n public void updateDispatcher(int newDistance) {\n dispatcher.updateVehicleDistance(this, newDistance);\n }", "public void updateNumberOfVehicles() {\r\n numberOfVehicles = getVehicles().size();\r\n }", "public final void modifyMotorcycle(){\r\n \tgetOffer();\r\n \tgetExhaustSystem();\r\n \tgetTires();\r\n getWindshield();\r\n getLED();\r\n getEngineGuards();\r\n /* Note that any of this methods \r\n \t * could provide a default implementation \r\n \t * by being concretely defined\r\n \t */\r\n }", "@Override\n\tpublic void notifyAfterMobsim(AfterMobsimEvent event) {\n\t\tOperatorData data = fleetListener.getData(OperatorConfig.DEFAULT_OPERATOR_ID);\n\n\t\tdouble vehicleDistance_km = data.emptyDistance_m + data.occupiedDistance_m;\n\t\tdouble passengerDistance_km = data.passengerDistance_m;\n\n\t\tdouble fleetCost_MU = 0.0;\n\t\tfleetCost_MU += vehicleDistance_km * parameters.distanceCost_MU_km;\n\t\tfleetCost_MU += numberOfVehicles * parameters.vehicleCost_MU;\n\n\t\t// Second, obtain price per passenger kilometer\n\t\tobservedPrice_MU_km = fleetCost_MU / passengerDistance_km;\n\t\tobservedPrice_MU_km *= parameters.priceFactor;\n\n\t\t// Third, interpolate\n\t\tif (Double.isFinite(observedPrice_MU_km)) {\n\t\t\tactivePrice_MU_km = activePrice_MU_km * (1.0 - parameters.alpha) + parameters.alpha * observedPrice_MU_km;\n\t\t}\n\t}", "public void updateDrive () {\n leftCurrSpeed = scale (leftCurrSpeed, leftTargetSpeed, Constants.Drivetrain.ACCELERATION_SCALING, Constants.Drivetrain.ACCELERATION_THRESHOLD);\n rightCurrSpeed = scale (rightCurrSpeed, rightTargetSpeed, Constants.Drivetrain.ACCELERATION_SCALING, Constants.Drivetrain.ACCELERATION_THRESHOLD);\n driveRaw (leftCurrSpeed, rightCurrSpeed);\n }", "public void updateVoltage(double newVoltage) {\r\n\t\toutString = \"V\" + newVoltage + \"\\n\";\r\n\t\tmyPort.write(outString);\r\n\t\tmyPort.write('\\n');\r\n\t\tSystem.out.println(outString);\r\n\t}", "private void addVehicle(Vehicle v){\n\t\tthis.putResource(v);\n\t}", "private synchronized void updateBattery(){\n \tdouble battery = MathUtils.round(Battery.getVoltage(),1);\n \tstore(new DisplayableData(\"battery\", battery+\"V\", battery));\n }", "@Override\n\t\tpublic void updateVariables(){\n\t\t\tthis.currentX = odometer.getCurrentX();\n\t\t\tthis.currentY = odometer.getCurrentY();\n\t\t\tthis.currentAngle = odometer.getHeadingAngle();\n\t\t\tthis.currentAverageVelocity = odometer.getCurrentAverageVelocity();\n\t\t}", "public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }", "public void setVehicle(VehicleAgent vehicle) {\n\t\tthis.vehicle = vehicle;\n\t}", "private void save() {\n // Get the current measurement\n final LiveData<Measurement> ldm = mViewModel.getMeasurementById(mMeasurementId);\n ldm.observe(getViewLifecycleOwner(), new Observer<Measurement>() {\n @Override\n public void onChanged(final Measurement measurement) {\n ldm.removeObserver(this);\n updateMeasurement(measurement);\n snackBar(\"Measurement updated!\");\n }\n });\n }", "public void addVehicle(Vehicle vehicle) {\n this.vehicles.add(vehicle);\n }", "private void setDataToTreatment(Treatment treatment, Vital vitalToSync, List<Measurement> measurements) {\n final VitalsSynchronization vitalsSynchronization = getVitalsSynchronization(treatment);\n final VitalMeasurement vitalMeasurement = getVitalMeasurement(vitalToSync, vitalsSynchronization);\n measurements.forEach(measurement -> measurement.setVitalMeasurement(vitalMeasurement));\n Optional<List<Measurement>> measurementsOpt = Optional.ofNullable(vitalMeasurement.getMeasurements());\n if (measurementsOpt.isPresent()) {\n vitalMeasurement.getMeasurements().addAll(measurements);\n } else {\n final List<Measurement> measurementList = new ArrayList<>();\n measurementList.addAll(measurements);\n vitalMeasurement.setMeasurements(measurementList);\n }\n setVitalMeasurementToVitalsSynchronization(vitalsSynchronization, vitalMeasurement);\n treatment.setVitalsSynchronization(vitalsSynchronization);\n vitalsSynchronization.setLastSuccessfulSync(getCurrentDateTime());\n }", "@Override\n public synchronized void add(VehicleData vehicleData){\n slotFor(vehicleData).add(vehicleData);\n }", "Vehicle getVehicle() {\n\t\t\treturn currentVehicle;\n\t\t}", "public void updateFuelUsed(double fuel) {\r\n\t\tfuelUsed.setText(\"Fuel Used (L): \" + BigDecimal.valueOf(fuel).setScale(2, RoundingMode.HALF_UP));\r\n\t\t\r\n\t}", "public void addVehicle(Vehicle vehicle) {\n\t\tvehicleList.add(vehicle);\n\t\tSystem.out.println(vehicle.getMake() + \" added to garage!\");\n\t}", "public void update()\n {\n if (frames_since_update++ < UPDATE_AFTER_FRAMES)\n return;\n frames_since_update = 0;\n\n //For each vehicle in the world, determine which station is the closest.\n Actor[] actors = world.getActors();\n for (Actor actor: actors)\n {\n if (!(actor instanceof Vehicle))\n continue;\n Vehicle vehicle = (Vehicle) actor;\n\n //Iterate over each station until the closest one is found.\n Station closest_station = null;\n float closest_station_distance = Float.MAX_VALUE;\n for (Station station : stations)\n {\n if (station == null)\n continue;\n\n float new_distance = vehicle.distance(station);\n if (new_distance < closest_station_distance)\n {\n closest_station = station;\n closest_station_distance = new_distance;\n }\n }\n\n vehicle.setClosestStation(closest_station);\n }\n }", "public void addVehicle(Vehicle vehicle) {\n\t\tvehicles.add(vehicle);\n\t}", "public void setVehicleSpeed(float value) {\n this.vehicleSpeed = value;\n }", "private void update(IApproximator approx) {\r\n approx.update(param, value, measured);\r\n }", "public void drive(double distance)\n {\n fuelInTank -= distance / fuelEfficiency; \n }", "private void setVitalMeasurementToVitalsSynchronization(VitalsSynchronization vitalsSynchronization, VitalMeasurement vitalMeasurement) {\n if (vitalMeasurement.getId() == 0) {\n if (vitalsSynchronization.getVitalsMeasurements() != null) {\n vitalsSynchronization.getVitalsMeasurements().add(vitalMeasurement);\n } else {\n List<VitalMeasurement> vitalMeasurements = new ArrayList<>();\n vitalMeasurements.add(vitalMeasurement);\n vitalsSynchronization.setVitalsMeasurements(vitalMeasurements);\n }\n }\n }", "public void addVehicle(Vehicle vehicle) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_VEHICLE_NAME, vehicle.getName());\n values.put(COLUMN_VEHICLE_NUMBER, vehicle.getNumber());\n values.put(COLUMN_VEHICLE_CC, vehicle.getCc());\n values.put(COLUMN_VEHICLE_YEAR, vehicle.getYear());\n values.put(COLUMN_VEHICLE_TYPE, vehicle.getType());\n values.put(COLUMN_VEHICLE_FUEL, vehicle.getFuel());\n values.put(COLUMN_VEHICLE_CATEGORY, vehicle.getCategory());\n values.put(COLUMN_VEHICLE_DATE, vehicle.getDate());\n\n // Inserting Row\n db.insert(TABLE_VEHICLE, null, values);\n db.close();\n }", "public void addVehicleFirst(Vehicle vehicle){\n\t\tvehicles.addFirst(vehicle);\n\t}", "public void update() {\n\t\tfinal StarSystem oldLocation = getPlayer().getLocation();\n\t\tfinal StarSystem newLocation = getChart().getSelected();\n\t\tgetPlayer().setLocation(newLocation);\n\t\tgetPlayer().setFuel(-oldLocation.distanceToStarSystem(newLocation));\n\t\tgetChart().setSelected(null);\n\t\tgetChart().repaint();\n\t\tplanetLbl.setText(\"Current Location: \" + player.getLocation().getName()\n\t\t\t\t+ \"....Tech Level: \" + player.getLocation().getTechLevel());\n\n\t}", "public void addVehicle(Vehicle v) {\n\t\tvehicles.add(v); \n\t}", "public void updateMaltForABV(double abv) {\n\t\t//TODO update to handle added complexities after updating elsewhere to handle different malt types\n\t\tRecipeIngredient ri = getBaseMalt();\n\t\tMalt m = (Malt) ri.getIngredient();\n\t\tdouble bs = m_batchSize;\n\t\tdouble og = 1000 * (getOriginalGravity() - 1) ;\n\t\tdouble ng = 7.46 * (abv + 0.5) + (1000 * (getFinalGravity() - 1));\n\t\tdouble maltGravity = 1000 * (m.getGravity() - 1);\n\t\t\n\t\t//TODO explain crazy algebra\n\t\tdouble newAmt = (ng * bs - (og * bs - (maltGravity * ri.getAmount()))) / maltGravity;\n\t\t//TODO loop through malts or update slider underneath user. Could use bool return value for updating sliders.\n\t\tif (newAmt < 0) {newAmt = 0;} //No negative amounts.\n\t\tri.setAmount(newAmt);\n\t\t\n\t}", "protected void updateAltitude() {\n Altitude droneAltitude = this.drone.getAttribute(AttributeType.ALTITUDE);\n\n\n\n alt.setText(String.format(\"%3.1f\", droneAltitude.getAltitude()) + \"m\");\n // altitudeTextView.setText(String.format(\"%3.1f\", droneAltitude.getAltitude()) + \"m\");\n }", "void updateTransmission(Transmission transmission);", "void park(Vehicle v) {\n\t\t\tcurrentVehicle = v;\n\t\t}", "void addFuel ( double mmbtu_input) {\n fuel += mmbtu_input;\r\n }", "private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}", "public void getUpdatedVehicleDetails(final int locationId, final int vehicleId,\n final MapPresenterCallback mapPresenterCallback) {\n final String url = buildUpdateVehicleUrl(vehicleId);\n\n\n GsonRequest<VehicleResponse> req = new GsonRequest<>(url, VehicleResponse.class, null, new Response.Listener<VehicleResponse>() {\n @Override\n public void onResponse(VehicleResponse response) {\n getEstimatedVehicleArrivalTime(locationId,\n getVehicleViaId(response.getVehicleResult().getVehicleDataList(), vehicleId), mapPresenterCallback);\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(TAG, \"An error occured when the getting the bus Stop ID.\", error);\n }\n });\n\n mDataRequestQueue.addToRequestQueue(req);\n }", "public void update() {\n if (!hasStarted) {\n //drive.setAutonStraightDrive();\n hasStarted = true;\n } else {\n if (Math.abs((Math.abs(rotations) - (Math.abs(drive.getRightSensorValue() / 4096)))) <= TOLERANCE) {\n drive.setBrakeMode(true);\n setFinished(true);\n }\n }\n\n }", "private void updateSpeed(CLocation location) {\n try {\n\n i = i + 1;\n Log.i(\"111\", \"====updateSpeed=====i===\" + i);\n // Log.i(\"111\",\"====location=====getLongitude===\"+location.getLongitude());\n // Log.i(\"111\",\"====location=====getLatitude===\"+location.getLatitude());\n\n\n float nCurrentSpeed = 0;\n\n if (location != null) {\n location.setUseMetricunits(true);\n nCurrentSpeed = location.getSpeed();\n }\n\n Formatter fmt = new Formatter(new StringBuilder());\n fmt.format(Locale.US, \"%5.1f\", nCurrentSpeed);\n String strCurrentSpeed = fmt.toString();\n strCurrentSpeed = strCurrentSpeed.replace(' ', '0');\n\n String strUnits = \"miles/hour\";\n\n\n strLog = strLog +\n \"\\n--------------\\n \" +\n strCurrentSpeed + \" \" + strUnits +\n \"\\n--------------\\n \";\n\n tvData.append(\"\\n Speed2 = \" + strCurrentSpeed + \" \" + strUnits);\n\n /* float speed = Float.parseFloat(strCurrentSpeed);\n if(speed<100)\n mGaugeView.setTargetValue(speed);\n else\n {\n tvLog.setText(\"out of speed\"+strLog);\n }*/\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public Vehicle updateVehicleDetails(Vehicle model, Integer id){\n VehicleDetails domain = throwIfNotFound(repo.findById(id));\n domain = validateAndPatchRequest(domain, model);\n domain = repo.saveAndFlush(domain);\n return mapper.map(domain, Vehicle.class);\n }", "@Override\n public void onChanged(Measurement measurement) {\n updateTextViews(measurement.getTimeStamp(),\n measurement.isGi(), measurement.getAmount(),\n measurement.getStress(), measurement.getTired(), measurement.isPhysicallyActivity(),\n measurement.isAlcoholConsumed(), measurement.isIll(), measurement.isMedication(),\n measurement.isPeriod(), measurement.getGlucoseStart(), measurement.getGlucose15(),\n measurement.getGlucose30(), measurement.getGlucose45(), measurement.getGlucose60(),\n measurement.getGlucose75(), measurement.getGlucose90(), measurement.getGlucose105(),\n measurement.getGlucose120()\n );\n }", "public void addCar(Vehicle v) {\n\t\tif (this.mVehicles.size() < this.mCapacity) {\n\t\t\tCarAndTime carA = new CarAndTime(v, mTravelingTime);\n\t\t\tmVehicles.addFirst(carA);\n\t\t}\n\t}", "@Test\n public void editMeasurementUsingPUTTest() throws ApiException {\n MeasurementDTO measurementDTO = null;\n api.editMeasurementUsingPUT(measurementDTO);\n\n // TODO: test validations\n }", "@Override\r\n\tpublic void updateforSTA(ManufacturersVO ManufacturersVO) {\n\t\t\r\n\t}", "protected void overwriteFlightDirectorWithCurrent() {\r\n int current = (int) Vehicle.get().getAttitude().getYawInDegrees();\r\n if (current < FlightDirector.FD_MIN_HEADING)\r\n // Do not allow to copy value less then minimum specified for FD\r\n current = FlightDirector.FD_MIN_HEADING;\r\n Mission.get().getFlightDirector().setHeading(current);\r\n mHeadingTextView.setText(String.valueOf(current));\r\n\r\n current = (int) Vehicle.get().getAltitude().getAltitude();\r\n if (current < FlightDirector.FD_MIN_ALTITUDE)\r\n // Do not allow to copy value less then minimum specified for FD\r\n current = FlightDirector.FD_MIN_ALTITUDE;\r\n Mission.get().getFlightDirector().setAltitude(current);\r\n mAltitudeTextView.setText(String.valueOf(current));\r\n\r\n current = (int) Vehicle.get().getSpeed().getAirspeed();\r\n if (current < FlightDirector.FD_MIN_AIRSPEED)\r\n // Do not allow to copy value less then minimum specified for FD\r\n current = FlightDirector.FD_MIN_AIRSPEED;\r\n Mission.get().getFlightDirector().setAirspeed(current);\r\n mAirspeedTextView.setText(String.valueOf(current));\r\n\r\n current = (int) Math.abs(Vehicle.get().getSpeed().getVerticalSpeed());\r\n if (current < FlightDirector.FD_MIN_VERT_SPEED)\r\n // Do not allow to copy value less then minimum specified for FD\r\n current = FlightDirector.FD_MIN_VERT_SPEED;\r\n Mission.get().getFlightDirector().setVertSpeed(current);\r\n mVertSpeedTextView.setText(String.valueOf(current));\r\n }", "protected void updateTelemetry(){\n telemetry.addData(\"Runtime\", this.getRuntime());\n Robot.outputToTelemetry(this);\n telemetry.update();\n }", "public void setVoltage(double voltage) {\n\t\tthis.voltage = voltage;\n\t}", "public void loadVehicle(Vehicle vehicle) {\n storage.addVehicle(vehicle);\n }", "public void refuel() {\n fuelAmount = type.fuelCapacity;\n }", "public void add(Vehicle vehicle) {\n\t\tvehicles.add(vehicle);\n\t}", "public void updateVectorModel()\n\t{\n\t\t\n\t\tdouble [] newVectorModel = new double[this.rewardList.size()];\n\t\tfor(int i = 0;i < this.rewardList.size();i++)\n\t\t{\n\t\t\tdouble[] rewards = this.rewardList.get(i);\n\t\t\tif (rewards.length > 1)\n\t\t\t{\n\t\t\t\tdouble average = 0;\n\t\t\t\tfor(int j = 0; j< rewards.length;j++)\n\t\t\t\t{\n\t\t\t\t\taverage += rewards[j];\n\t\t\t\t}\n\t\t\t\taverage /= rewards.length;\n\t\t\t\tnewVectorModel[i] = average;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tnewVectorModel[i] = rewards[0];\n\t\t\t}\n\t\t}\n\t\tthis.vectorModel = newVectorModel;\n\t}", "public synchronized void follow(Vehicle vehicle){\n \n distance = distance - (float)((float)vehicle.getCurrentSpeed()*1000f/3600f)/100f;\n \n //System.out.println(\"Distance to drive: \" + distance);\n if (distance <= 0){\n \n Settings.messageLog.AddMessage(\"Reached end of path\");\n //System.out.println(\"weg.size() == \" + weg.size());\n try{\n vehicle.setPosition(weg.get(weg.size()-1));\n }\n catch(Exception e){vehicle.setPosition(new Vector3f(10.3f, 5.5f, 156.2f));}\n vehicle.stopDriving();\n if (destinationPlatform == null && destinationParkingSpot == null){}\n else if (destinationParkingSpot == null){\n //motionpath from waypoint to platform\n //platform sign in\n vehicle.setCurrentPlatform(destinationPlatform);\n \n } //meldt aan voor platform nieuwe route\n else {\n \n //motionpath from waypoint to parkingspot\n if (destinationPlatform == null)\n {\n try\n {\n this.destinationParkingSpot.ParkVehicle(vehicle);\n vehicle.setPosition(this.destinationParkingSpot.getPosition());\n Settings.messageLog.AddMessage(\"Park vehicle\");\n }\n catch(Exception e)\n {\n \n ErrorLog.logMsg(e.getMessage());\n }\n \n }\n \n //hier kraan geparkeerd ... ga unload\n try\n {\n this.destinationParkingSpot.ParkVehicle(vehicle);\n vehicle.setPosition(this.destinationParkingSpot.getPosition());\n }\n catch(InvalidVehicleException ie)\n {\n System.out.println(ie.getMessage());\n \n }\n\n }\n \n }\n }", "public CarAndTime(Vehicle v, int traveltime) {\n\t\t\tcar = v;\n\t\t\ttime = traveltime;\n\t\t}", "public void onLivingUpdate()\n {\n this.updateArmSwingProgress();\n float var1 = this.getBrightness(1.0F);\n\n if (var1 > 0.5F)\n {\n this.entityAge += 2;\n }\n\n super.onLivingUpdate();\n }", "private void updateLinearDrive() {\n// double rotations = (getLeftRotations() + getRightRotations()) / 2;\n// linearDriveDistance = Conversion.rotationsToInches(rotations, Constants.driveWheelDiameter);\n// double angleController = turnControl.getOutput(linearDriveMultiplier * (navX.getAngle() - linearDriveTargetAngle));\n// double driveController = driveControl.getOutput(linearDriveTargetDistance - linearDriveDistance);\n// setOutput(driveController + angleController, driveController - angleController);\n }", "public void setVehiclePerformance(int vehiclePerformance) {\n this.itemAttribute = vehiclePerformance;\n }", "public void drive( Vehicle vehicle ) {\n\t\t\tvehicle.run();\n\t}", "private void notifyMeasurementVersionUpdated(String measurement, int version) {\n Logger.info(LOG_TAG, \"Measurement \" + measurement + \" now at \" + version);\n \n final SQLiteDatabase db = this.helper.getWritableDatabase();\n final ContentValues values = new ContentValues();\n values.put(\"name\", measurement);\n values.put(\"version\", version);\n \n synchronized (measurementVersions) {\n measurementVersions.put(measurement, version);\n }\n \n db.insertWithOnConflict(\"measurements\", null, values, SQLiteDatabase.CONFLICT_IGNORE);\n }", "public void update(Avion avion)\n\t{\n\t}", "public void addToEstimate(double CO2Addition) {\n this.CO2 += CO2Addition;\n }", "public void setAddSpeed(float addSpeed)\n {\n this.addSpeed = addSpeed;\n setChanged();\n notifyObservers();\n }", "@Test\n public void testUpdateVehicleSold() {\n //Arrange\n Vehicle vehicle = new Vehicle();\n Model model = new Model();\n Make make = new Make();\n \n make.setMakeName(\"Ford\");\n \n Make createdMake = makeDao.addMake(make);\n \n model.setModelName(\"Explorer\");\n model.setMake(createdMake);\n \n Model createdModel = modelDao.addModel(model);\n \n vehicle.setYear(2018);\n vehicle.setTransmission(\"Automatic\");\n vehicle.setMileage(1000);\n vehicle.setColor(\"Blue\");\n vehicle.setInterior(\"Leather\");\n vehicle.setBodyType(\"SUV\");\n vehicle.setVin(\"W9D81KQ93N8Z0KS7\");\n vehicle.setSalesPrice(new BigDecimal(\"35000.00\"));\n vehicle.setMsrp(new BigDecimal(\"40000.00\"));\n vehicle.setDescription(\"A practical vehicle\");\n vehicle.setPicURL(\"http://www.sampleurl.com/samplepic\");\n vehicle.setModel(createdModel);\n\n Vehicle createdVehicle = vehicleDao.addVehicle(vehicle);\n\n createdVehicle.setSalesPrice(new BigDecimal (\"30000.00\"));\n createdVehicle.setInStock(false);\n \n //Act \n vehicleDao.updateVehicle(createdVehicle);\n \n //Assert\n Vehicle fetchedVehicle = vehicleDao.getVehicleById(createdVehicle.getVehicleId());\n \n assertEquals(vehicle.getSalesPrice(), fetchedVehicle.getSalesPrice());\n assertFalse(fetchedVehicle.isInStock());\n \n }", "@Override\n\tpublic void update(float temp, float humidity, float pressure) {\n\n\t}", "public void updateDisplayFields(Booking b){\n Vehicle v = b.getVehicle();\n CustomerAccount ca = v.getCustomer(); \n \n \n createCustomerName.setText(ca.getFirstName());\n createCustomerSurname.setText(ca.getLastName());\n createCustomerNumber.setText(ca.getPhoneNumber());\n createCustomerAddress1.setText(ca.getAddressLine1());\n createCustomerAddress2.setText(ca.getAddressLine2());\n createCustomerCounty.setText(ca.getCounty());\n createCustomerPostal.setText(ca.getPostCode());\n createCustomerCompany.setText(ca.getCompanyName());\n //VEHICLES\n createVehicleMake.setText(v.getMake());\n createVehicleModel.setText(v.getModel());\n createVehicleReg.setText(v.getRegistration());\n createVehicleMileage.setText(Integer.toString(v.getMileage()));\n createVehicleEngine.setText(v.getEngineSize());\n createVehicleColour.setText(v.getColour());\n createVehicleFuel.setText(v.getFuelType());\n String MOTexpire = \"\";\n if (v.getMOTExpire() == null)\n MOTexpire = \"N/A\";\n else\n MOTexpire = v.getMOTExpire().getTime().toString();\n \n createVehicleMOT.setText(MOTexpire);\n \n String ServiceDate = \"\";\n if (v.getLastService() == null)\n ServiceDate = \"N/A\";\n else\n ServiceDate = v.getLastService().getTime().toString();\n \n createVehicleService.setText(ServiceDate);\n createVehicleWarranty.setText(v.getWarrantyCompany());\n\n }", "public void updateDeviceAir(){\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.add(Calendar.DATE, -1);\n\t\tDate date = calendar.getTime();\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tString time = df.format(date);\n\t\t\n\t\tHashMap<String, Integer> insideMap = deviceStatusDao.getAverageInside(time + \"%\");\n\t\tHashMap<String, Integer> outsideMap = deviceStatusDao.getAverageOutside(time + \"%\");\n\t\t//pair device air & city air\n\t\tfor(String device_id : insideMap.keySet()){\n\t\t\tDeviceAir deviceAir = new DeviceAir();\n\t\t\tdeviceAir.setDeviceID(device_id);\n\t\t\tdeviceAir.setInsideAir(insideMap.get(device_id));\n\t\t\tif(!outsideMap.containsKey(device_id)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdeviceAir.setOutsideAir(outsideMap.get(device_id));\n\t\t\tdeviceAir.setDate(time);\n\t\t\tdeviceStatusDao.insertDeviceAir(deviceAir);\n\t\t}\n\t}", "public synchronized void addBeacon(Vehicle vehicle, long ID, long x, long y, double speed, boolean isEncrypted, boolean isForwared){\r\n\t\tbeaconInfoText_.append(\"\\n\\nVehicle (forwarded by RSU) \\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(Renderer.getInstance().getTimePassed());\r\n\t\tbeaconInfoText_.append(\"ms\\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(Long.toHexString(ID));\r\n\t\tbeaconInfoText_.append(\",\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(speed);\r\n\t\tbeaconInfoText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(x);\r\n\t\tbeaconInfoText_.append(\",\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(y);\r\n\t\tbeaconInfoText_.append(\", encrypted:\"); //$NON-NLS-1$\r\n\t\tbeaconInfoText_.append(isEncrypted);\r\n\t}", "public Vector2d calculate(Vehicle veh)\r\n\t{ \r\n\t\treturn new Vector2d(0,0); \r\n\t}", "public void update() {\n // gear shift\n gear = simConnection.stringValueOf(gearid, \"P\");\n }", "@Override\n\tpublic void setVehicleCost(double van, double railway, double airplane) {\n\t\tconstantPO.setVanCost(van);\n\t\tconstantPO.setRailwayCost(railway);\n\t\tconstantPO.setAirplaneCost(airplane);\n\t}", "public float getVehicleSpeed() {\n return vehicleSpeed;\n }", "public Object addVelocity2Chromosome(Object chromosome, Object velocity, HashMap params) throws OptimizerException;", "public Vehicle updateAttributes(Vehicle vehicle, VehicleDto vehicleDto) {\n\t\tvehicle.setIdDto(vehicleDto.getId());\n\t\tvehicle.setLon(vehicleDto.getLon());\n\t\tvehicle.setLat(vehicleDto.getLat());\n\t\tvehicle.setType(vehicleDto.getType());\n\t\tvehicle.setEfficiency(vehicleDto.getEfficiency());\n\t\tvehicle.setLiquidType(vehicleDto.getLiquidType());\n\t\tvehicle.setLiquidQuantity(vehicleDto.getLiquidQuantity());\n\t\tvehicle.setLiquidConsumption(vehicleDto.getLiquidConsumption());\n\t\tvehicle.setFuel(vehicleDto.getFuel());\n\t\tvehicle.setFuelConsumption(vehicleDto.getFuelConsumption());\n\t\tvehicle.setCrewMember(vehicleDto.getCrewMember());\n\t\tvehicle.setCrewMemberCapacity(vehicleDto.getCrewMemberCapacity());\n\t\tvehicle.setFacilityRefID(vehicleDto.getFacilityRefID());\n\t\treturn vehicle;\n\t}", "private Measurement getMeasurements(){\n Measurement measurement = new Measurement();\n\n //set to date of measurement added\n measurement.setDate(new Date());\n\n //retrieve measurement data from edit texts. if edit text is empty make measurement 0;\n String neckString = neckEditText.getText().toString();\n double neck = (!neckString.equals(\"\")) ? Double.parseDouble(neckString) : 0;\n measurement.setNeck(neck);\n\n String chestString = chestEditText.getText().toString();\n double chest = (!chestString.equals(\"\")) ? Double.parseDouble(chestString) : 0;\n measurement.setChest(chest);\n\n String shoulderString = shoulderEditText.getText().toString();\n double shoulders = (!shoulderString.equals(\"\")) ? Double.parseDouble(shoulderString) : 0;\n measurement.setShoulders(shoulders);\n\n String leftArmString = leftArmEditText.getText().toString();\n double leftArm = (!leftArmString.equals(\"\")) ? Double.parseDouble(leftArmString) : 0;\n measurement.setLeftArm(leftArm);\n\n String rightArmString = rightArmEditText.getText().toString();\n double rightArm = (!rightArmString.equals(\"\")) ? Double.parseDouble(rightArmString) : 0;\n measurement.setRightArm(rightArm);\n\n String leftForearmString = leftForearmEditText.getText().toString();\n double leftForearm = (!leftForearmString.equals(\"\")) ? Double.parseDouble(leftForearmString) : 0;\n measurement.setLeftForearm(leftForearm);\n\n String rightForearmString = rightForearmEditText.getText().toString();\n double rightForearm = (!rightForearmString.equals(\"\")) ? Double.parseDouble(rightForearmString) : 0;\n measurement.setRightForearm(rightForearm);\n\n String waistString = waistEditText.getText().toString();\n double waist = (!waistString.equals(\"\")) ? Double.parseDouble(waistString) : 0;\n measurement.setWaist(waist);\n\n String hipsString = hipsEditText.getText().toString();\n double hips = (!hipsString.equals(\"\")) ? Double.parseDouble(hipsString) : 0;\n measurement.setHips(hips);\n\n String leftLegString = leftLegEditText.getText().toString();\n double leftLeg = (!leftLegString.equals(\"\")) ? Double.parseDouble(leftLegString) : 0;\n measurement.setLeftLeg(leftLeg);\n\n String rightLegString = rightLegEditText.getText().toString();\n double rightLeg = (!rightLegString.equals(\"\")) ? Double.parseDouble(rightLegString) : 0;\n measurement.setRightLeg(rightLeg);\n\n String leftCalfString = leftCalfEditText.getText().toString();\n double leftCalf = (!leftCalfString.equals(\"\")) ? Double.parseDouble(leftCalfString) : 0;\n measurement.setLeftCalf(leftCalf);\n\n String rightCalfString = rightCalfEditText.getText().toString();\n double rightCalf = (!rightCalfString.equals(\"\")) ? Double.parseDouble(rightCalfString) : 0;\n measurement.setRightCalf(rightCalf);\n\n String weightString = weightEditText.getText().toString();\n double weight = (!weightString.equals(\"\")) ? Double.parseDouble(weightString) : 0;\n measurement.setWeight(weight);\n\n String bodyFatString = bodyFatEditText.getText().toString();\n double bodyFat = (!bodyFatString.equals(\"\")) ? Double.parseDouble(bodyFatString) : 0;\n measurement.setBodyFat(bodyFat);\n\n //below variables are should be retrieved from the Shared Preferences.\n int age = mSharedPreferences.getInt(Constants.AGE, 0);\n measurement.setAge(age);\n boolean male = mSharedPreferences.getBoolean(Constants.SEX, true);\n measurement.setMale(male);\n String activityLevel = mSharedPreferences.getString(Constants.ACTIVITY, \"\");\n\n if(activityLevel.equals(getString(R.string.sedentary))){\n measurement.setActivityLevel(Calculators.SEDENTERAY);\n } else if(activityLevel.equals(getString(R.string.light))){\n measurement.setActivityLevel(Calculators.LIGHT);\n }else if(activityLevel.equals(getString(R.string.moderate))){\n measurement.setActivityLevel(Calculators.MODERATE);\n }else if(activityLevel.equals(getString(R.string.very_active))){\n measurement.setActivityLevel(Calculators.VERY_ACTIVE);\n }else if(activityLevel.equals(getString(R.string.extremely_active))){\n measurement.setActivityLevel(Calculators.EXTREMELY_ACTIVE);\n }\n\n double height = mSharedPreferences.getFloat(Constants.HEIGHT,0);\n measurement.setHeight(height);\n\n //if weight is more than 0 use the Calculators class to calculate the rest of the measurement variables\n if(weight > 0){\n measurement.setRestingEnergyExpenditure(Calculators.getRestingEnergyExpenditure(weight, height, age, male));\n measurement.setTotalDailyEnergyExpenditure(Calculators.getTotalDailyEnergyExpenditure(measurement.getRestingEnergyExpenditure(), measurement.getActivityLevel()));\n measurement.setProteinAmount(Calculators.getProteinAmount(weight));\n measurement.setFatAmount(Calculators.getFatAmount(measurement.getTotalDailyEnergyExpenditure()));\n measurement.setCarbAmount(Calculators.getCarbAmount(measurement.getProteinAmount(), measurement.getFatAmount(), measurement.getTotalDailyEnergyExpenditure()));\n measurement.setBMI(Calculators.getBMI(height, weight, true));\n measurement.setBMICategory(Calculators.getBMICatagory(measurement.getBMI()));\n measurement.setWaistToHeightRatio(Calculators.waistToHeightRatio(waist, height));\n measurement.setWITHCategory(Calculators.getWTHCatagory(measurement.getWaistToHeightRatio(), male));\n }\n return measurement;\n }", "public void update() {\n vel.add(acc);\n vel.limit(max_vel);\n loc.add(vel);\n acc.mult(0);\n }", "@Override\n\tpublic void update()\n\t{\n\t\tsuper.update();\n\n\t\tcalcAcceleration();\n\t\tsetVelocity(Vector2D.add(getVelocity(), getAcceleration()));\n\n\t\tcalcVelocity();\n\t\tsetPosition(Vector2D.add(getPosition(), getVelocity()));\n\n\t\tbm.update(getPosition(), getWidth(), getHeight());\n\t}", "void update(float temp, float humidity, float pressure);", "public void helper2(Automobile car, String newData) {\n\t\tcar.updateOptionSet(0, newData);\n\t}", "private void updateMotors() {\n\t\t//Pass filtered values to ChopperStatus.\n\t\tmStatus.setMotorFields(mMotorSpeed);\n\t\tString logline = Long.toString(System.currentTimeMillis()) + \" \" + mMotorSpeed[0] + \" \" + mMotorSpeed[1] + \" \" + mMotorSpeed[2] + \" \" + mMotorSpeed[3] + \"\\n\";\n\t\ttry {\n\t\t\tif (logfile != null) {\n\t\t\t\tlogfile.write(logline);\n\t\t\t\tlogfile.flush();\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\t//Log.e(TAG, \"Cannot write to logfile\");\n\t\t}\n\t\t//Pass motor values to motor controller!\n\t\tMessage msg = Message.obtain();\n\t\tmsg.what = SEND_MOTOR_SPEEDS;\n\t\tmsg.obj = mMotorSpeed;\n\t\tmBt.sendMessageToHandler(msg);\n\t\t//Log.i(TAG, \"Guidance sending message.\");\n\t\t\n\t}", "int updateByExampleSelective(TVmManufacturer record, TVmManufacturerExample example);", "public void update() {\n Dashboard.sendToDash(\"/update Servo \" + id + \" \" + servo.getPosition());\n }", "void setSpeed(RobotSpeedValue newSpeed);", "int updateByExample(TVmManufacturer record, TVmManufacturerExample example);", "public UpdateVehicleCharges() {\n initComponents();\n view();\n \n \n }", "public void addVehicle(String registragtionNumber, Vehicle newVehicle )\n\t{\n\t\tgarageMap.put(newVehicle.getRegistrationNumber(), newVehicle);\n\t\tSystem.out.println(\"\\n\" + \"Vehicle parked! \\n \");\n\t}", "public void updateBaddie(double deltaTime) {\n\n if (traveled >= distToTravel) {\n // change move direction (unitVector)\n //System.out.println(\"this= \"+ this);\n currentPatrolPosition = nextPatrolIndex();\n //System.out.println(\"Want to travel to x=\" + patrolPositions.get(currentPatrolPosition).getX() + \", y=\" +\n // patrolPositions.get(currentPatrolPosition).getY());\n\n double deltaX = patrolPositions.get(currentPatrolPosition).getX() - positionX ;\n double deltaY = patrolPositions.get(currentPatrolPosition).getY() - positionY;\n\n this.distToTravel = Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));\n this.traveled = 0;\n //System.out.println(\"DIST TO TRAVEL = \" + distToTravel);\n // Vector of length 1 pointing towards the patrol point to move to.\n this.unitVector = new Point2D.Double(deltaX / distToTravel, deltaY / distToTravel);\n //System.out.println(\"Travel by x=\" + unitVector.getX() + \", y=\" + unitVector.getY());\n\n } else {\n this.positionX += deltaTime * speed * unitVector.getX();\n this.positionY += deltaTime * speed * unitVector.getY();\n moveWallsToBaddiePos();\n\n// System.out.println(\"T=\" + traveled);\n //if (Math.random() > 0.99)\n //System.out.println(\"x=\"+this.positionX +\"\\nt=\"+traveled+\"\\n\\n\");\n traveled += speed * deltaTime;\n }\n }", "private void updateTurnRoadCharacteristic() {\n String editTextValue = ((EditText) view.findViewById(R.id.turnRoadEditText)).getText().toString();\n byte[] turnRoad = editTextValue.getBytes();\n\n //Check if the entered distance is too long or too short -> modify it\n if (turnRoad.length > 32) {\n turnRoad = Arrays.copyOfRange(turnRoad, 0, 31);\n turnRoad[29] = Byte.parseByte(\".\");\n turnRoad[30] = Byte.parseByte(\".\");\n turnRoad[31] = Byte.parseByte(\".\");\n }\n if (turnRoad.length < 32) {\n byte[] turnRoad_new = new byte[32];\n\n for (int i = 0; i < turnRoad.length; i++) {\n turnRoad_new[i] = turnRoad[i];\n }\n\n for (int i = turnRoad.length; i < 32; i++) {\n turnRoad_new[i] = 0;\n }\n\n turnRoad = turnRoad_new;\n }\n\n //Fill the characteristic array with the 8 bytes (from 17 to 48)\n int i1 = 0;\n for (int i2 = 17; i2 <= 48; i2++) {\n turnRoadCharacteristic_value[i2] = turnRoad[i1];\n i1++;\n }\n\n //Set the visibility (byte 17) and set the value\n turnRoadCharacteristic_value[16] = visibility;\n turnRoadCharacteristic.setValue(turnRoadCharacteristic_value);\n }", "private void updateGUIcoordinates(int latitude, int longitude) {\n\t\tGson gson = new Gson();\r\n\t\t// gera as coordenadas\r\n\t\tCoordinates coords = new Coordinates(latitude, longitude);\r\n\t\tMessage message = new Message(MessageType.UPDATEVEHICLE);\r\n\t\tParty p;\r\n\t\tDouble gas = (Double) getBeliefbase().getBelief(\"gas\").getFact();\r\n\t\tVehicle v = new Vehicle(getScope().getAgentName(),(ComponentIdentifier)(getScope().getComponentIdentifier()),gas,coords);\r\n\t\tif((p=(Party)getBeliefbase().getBelief(\"customerAccepted\").getFact())!=null) {\r\n\t\t\tv.setNparties(p.getSize());\r\n\t\t}\r\n\t\t\r\n\t\tString newcontent = gson.toJson(v,Vehicle.class);\r\n\r\n\t\tmessage.setContent(newcontent);\r\n \r\n\t\tCommunicator.sendMessage(\"192.168.1.84\", 8002, message);\r\n\r\n\t}", "Flight updateFlight(Flight flight);", "private void updateEstArrivalTimeCharacteristic() {\n String editTextValue = ((EditText) view.findViewById(R.id.estArrivalTimeEditText)).getText().toString();\n byte[] estArrivalTime = editTextValue.getBytes();\n\n //Check if the entered distance is too long or too short -> modify it\n if (estArrivalTime.length > 8) {\n estArrivalTime = Arrays.copyOfRange(estArrivalTime, 0, 7);\n }\n if (estArrivalTime.length < 8) {\n byte[] estArrivalTime_new = new byte[8];\n\n for (int i = 0; i < estArrivalTime.length; i++) {\n estArrivalTime_new[i] = estArrivalTime[i];\n }\n\n for (int i = estArrivalTime.length; i < 8; i++) {\n estArrivalTime_new[i] = 0;\n }\n\n estArrivalTime = estArrivalTime_new;\n }\n\n //Fill the characteristic array with the 8 bytes (from 17 to 24)\n int i1 = 0;\n for (int i2 = 17; i2 <= 24; i2++) {\n estArrivalTimeCharacteristic_value[i2] = estArrivalTime[i1];\n i1++;\n }\n\n //Set the visibility (byte 17) and set the value\n estArrivalTimeCharacteristic_value[16] = visibility;\n estArrivalTimeCharacteristic.setValue(estArrivalTimeCharacteristic_value);\n }", "@Override\r\n public void update() {\r\n this.highestRevenueRestaurant = findHighestRevenueRestaurant();\r\n this.total = calculateTotal();\r\n }", "public void setAdditionalDistance(int additionalDistance) {\n this.additionalDistance = additionalDistance;\n }" ]
[ "0.6941576", "0.6226833", "0.60028285", "0.5940105", "0.5889235", "0.5774129", "0.5709099", "0.5675711", "0.56415236", "0.56322116", "0.56289256", "0.5609516", "0.555337", "0.55387914", "0.5537676", "0.54780674", "0.54435205", "0.5442663", "0.5441857", "0.54049003", "0.5383853", "0.5356557", "0.5347862", "0.53385526", "0.53346217", "0.5328368", "0.5327016", "0.53068", "0.52773803", "0.527081", "0.5261672", "0.5243972", "0.52351624", "0.5232116", "0.5212413", "0.52109545", "0.5207387", "0.519188", "0.51791406", "0.5166504", "0.5152008", "0.5139403", "0.5137812", "0.51326746", "0.5107013", "0.51052564", "0.5102032", "0.5083228", "0.5062159", "0.5054029", "0.50449455", "0.5042021", "0.5033363", "0.50248426", "0.50229436", "0.5011577", "0.50015247", "0.4998923", "0.49959713", "0.4982505", "0.49810833", "0.4978309", "0.49779305", "0.49775016", "0.49735892", "0.49707046", "0.49628055", "0.49583572", "0.4955672", "0.49530923", "0.49457985", "0.49441555", "0.49424678", "0.49409124", "0.49371785", "0.4932781", "0.49293697", "0.49260888", "0.49180654", "0.48899484", "0.48897508", "0.4888515", "0.48852986", "0.48849532", "0.4882206", "0.48709926", "0.48652342", "0.486448", "0.48609024", "0.48559526", "0.48557124", "0.48537078", "0.48507717", "0.48470265", "0.48444882", "0.48438105", "0.4838096", "0.4833831", "0.48310673", "0.48160332" ]
0.57583976
6
Empty; needs to implement abstract method from jRSU.
public void isNoticed(Driver driver) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isEmpty() { return true; }", "@Override\n public boolean isEmpty() {\n return false;\n }", "public abstract void makeEmpty();", "@Override\n\tpublic boolean isEmpty ()\n\t{\n\t\treturn false;\n\t}", "@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public boolean isEmpty()\n {\n return false;\n }", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\npublic Boolean isEmpty() {\n\treturn null;\n}", "@Override\npublic boolean isEmpty() {\n\treturn false;\n}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "default Empty getEmptyObject() {\n return null;\n }", "@Override\n\tpublic void setEmpty() {\n\t\t\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n public boolean isEmpty() {\n return size()==0;\n }", "public boolean isEmpty(){\n\t\treturn super.isEmpty();\n\t}", "@Override\n\t\t\tpublic void clear() {\n\t\t\t\t\n\t\t\t}", "public boolean isEmpty() { return true; }", "public abstract boolean isEmpty();", "public abstract boolean isEmpty();", "@Override\n\tvoid clear() {\n\n\t}", "@Override\r\n public boolean isEmpty() {\n return size == 0;\r\n }", "@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}", "public None()\n {\n \n }", "@Override\n\tpublic void clear() {\n\n\t}", "private static native ProxyJsoImpl createEmpty() /*-{\n return {};\n }-*/;", "@Override\n public int size() {\n return 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t}", "@Override\n\tpublic String monHoc() {\n\t\treturn null;\n\t}", "public boolean isEmpty() {\n\t\treturn super.isEmpty();\n\t}", "public void makeEmpty();", "public void makeEmpty();", "public boolean isEmpty () {\n return false;\n }", "abstract public E addEmpty();", "public boolean isEmpty()\n {\n return false;\n }", "public boolean isEmpty() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn size() == 0;\r\n\t}", "public String method_211() {\r\n return null;\r\n }", "public interface EmptyInterface {}", "@Override\r\n\tpublic void clear() {\n\t\t\r\n\t}", "@Override\n public boolean isEmpty() {\n return _size == 0;\n }", "void empty();", "public boolean isEmpty() {\n return false;\n }", "public boolean isEmpty() {\n return false;\n }", "@Override\n public void clear() {\n \n }", "@Override\r\n public boolean isEmpty() {\r\n return size == 0;\r\n }", "@Override\n protected void clear() {\n\n }", "Result() {\n empty = true;\n }", "public boolean isEmpty () {\n return true;\n }", "@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}", "public boolean is_empty() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic String b() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "public boolean isEmpty() {\n return false;\n }", "public boolean isEmpty() {\n return false;\n }", "private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "@Override\n\tpublic String init() throws Exception {\n\t\treturn null;\n\t}", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn(size() == 0);\n\t}", "public boolean isEmptyHuh() {\n return true; \n }", "@Override\n public int getSize() {return 0;}", "@Override public int describeContents() { return 0; }", "@Override\n public boolean isEmpty()\n {\n return size == 0;\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override public void clear() {\n }", "@Override\r\n\tpublic void clear() {\n\r\n\t}", "@Override\n\tpublic String answer() {\n\t\treturn null;\n\t}", "@Override\n public String toString() {\n return \"\";\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn null;\n\t}", "O() { super(null); }", "@Override\n public void clear()\n {\n }", "@Override\n public void clear() {\n super.clear();\n }", "@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}" ]
[ "0.69733673", "0.6750358", "0.6742918", "0.6665843", "0.66637075", "0.6647495", "0.66305953", "0.66305953", "0.66265464", "0.6615321", "0.66065764", "0.66065764", "0.66065764", "0.66065764", "0.66065764", "0.66065764", "0.66065764", "0.6603997", "0.65456134", "0.64092964", "0.6272627", "0.6261682", "0.62556314", "0.62461257", "0.623881", "0.623881", "0.62291586", "0.621298", "0.62051165", "0.62051165", "0.6199853", "0.61983854", "0.61958283", "0.6175945", "0.61669546", "0.61669546", "0.61669546", "0.61669546", "0.61669546", "0.6163223", "0.6163223", "0.6163223", "0.6163223", "0.6163223", "0.6163223", "0.6163223", "0.61629605", "0.6156892", "0.61531657", "0.61515087", "0.61515087", "0.6146486", "0.6136251", "0.61171794", "0.6108843", "0.6102567", "0.60986537", "0.60815156", "0.6076255", "0.60721713", "0.607157", "0.60603034", "0.60603034", "0.60381246", "0.6030957", "0.601322", "0.60131365", "0.6011151", "0.60052216", "0.6004847", "0.5997326", "0.5993082", "0.5991166", "0.5991166", "0.59885085", "0.5984841", "0.5983196", "0.5983196", "0.5983196", "0.5983196", "0.5983196", "0.59777117", "0.5975312", "0.59748346", "0.5974038", "0.59659696", "0.5965115", "0.5961128", "0.59609145", "0.59543055", "0.5953618", "0.59517294", "0.595143", "0.5950393", "0.5942003", "0.5939559", "0.5934408", "0.5934408", "0.5934408", "0.5934408", "0.5934408" ]
0.0
-1
Returns the ID of this detector.
public String id() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public final String getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public int getId() {\n\t\t\treturn id_;\n\t\t}", "public int getId() {\n\t\t\treturn id_;\n\t\t}", "public long getId() {\n\t\t\treturn id;\n\t\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public static String id()\n {\n return _id;\n }", "public final long getId() {\r\n return id;\r\n }", "public String getId() {\n\t\treturn this.token.get(\"id\").toString();\n\t}", "public int getId() {\n\t\t\t\treturn id_;\n\t\t\t}", "public int getId() {\n\t\t\t\treturn id_;\n\t\t\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }", "public int getId() {\n return id_;\n }" ]
[ "0.691286", "0.691286", "0.691286", "0.691286", "0.691286", "0.691286", "0.691286", "0.6875478", "0.6872318", "0.6872318", "0.6872318", "0.6872318", "0.68721503", "0.68721503", "0.6872132", "0.68703586", "0.68703586", "0.68703586", "0.68703586", "0.68703586", "0.68703586", "0.68703586", "0.68703586", "0.6860688", "0.6841415", "0.6828542", "0.68272907", "0.68272907", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6776186", "0.6769106", "0.6769106", "0.6769106", "0.6769106", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.6768685", "0.67683864", "0.67683864", "0.6751506", "0.6751506", "0.6751506", "0.6751506", "0.6751506", "0.6751506", "0.67514193", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846", "0.67183846" ]
0.0
-1
noargument constructor wanted by JAXB
@SuppressWarnings("unused") private GranteeChooser() { this(null, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JAXBConverter() {\n\t}", "public XmlElement() {\n }", "private XmlFactory() {\r\n /* no-op */\r\n }", "public XmlAdaptedPerson() {}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private XmlHelper() {}", "public GenericElement() {\n\t}", "public XMLElement(String fullName)\n/* */ {\n/* 101 */ this(fullName, null, null, -1);\n/* */ }", "public XMLBuilder()\n\t{\n\t\tthis(\"\");\n\t}", "private XMLUtil()\n {\n }", "public XMLElement() {\n this(new Properties(), false, true, true);\n }", "defaultConstructor(){}", "private XmlUtil() {\n }", "private XmlStreamFactory()\n {\n /*\n * nothing to do\n */\n }", "public Pojo1110110(){\r\n\t}", "void DefaultConstructor(){}", "private XMLUtil() {\n\t}", "public XObject(){\r\n }", "public BaseElement() {\n }", "public AbstractElement() {\n }", "public XObject(){\n }", "public XsdTreeStructImpl() {\n\t\tsuper(false, false);\n\t}", "public XMLModel002Builder() {\n }", "private XMLUtils()\r\n\t{\r\n\t}", "public XMLUtils() {\r\n\t\tsuper();\r\n\t}", "MyEncodeableWithoutPublicNoArgConstructor() {}", "O() { super(null); }", "private NaturePackage() {}", "public WSDL() {\r\n\t\tthis(\"\", \"\");\r\n\t}", "DOMType() {\n // Constructs an empty type node\n }", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "protected abstract T _createEmpty(DeserializationContext ctxt);", "private WebXmlIo()\n {\n // Voluntarily empty constructor as utility classes should not have a public or default\n // constructor\n }", "public AnXmlTransform() {\n super();\n }", "public StreetAddress() {}", "public Address() {}", "public QBXMLRequest() {\n }", "public ObjectSchema() {\n }", "public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}", "public CAccountElement() {\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "private Node() {\n\n }", "public JaxelValidator() {\n\t\tsuper();\n\t}", "public Customer(){}", "private DefaultSchema() {\n super(\"\", null);\n }", "Element() {\n\t}", "protected SAXParser() {\n // Does nothing.\n }", "public AbsSchema() {\n this(null, null);\n }", "public Unknown2XML() {\n reflectUtil = new ReflectUtil();\n// mappers = new HashMap<Class<?>, XMLMapper>();\n }", "private static Constructor getZeroArgumentConstructor(Class cls) {\n \t\treturn ClassUtils.getConstructor(cls, new Class[] { }, zeroArgumentConstructors);\n \t}", "public XmlAdaptedReminder() {}", "public XmlAdaptedDistributor() {}", "public Person() {}", "private SerializerFactory() {\n // do nothing\n }", "public Node() {\n\t}", "private SingleObject(){}", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "public Address() {\n\t}", "private VarietyPackage() {}", "public Customer() { }", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "@Override\n\tpublic Object fromXMLString(String arg0) {\n\t\treturn null;\n\t}", "public MyDocument() {\r\n }", "public AvroPerson() {}", "public Generic(){\n\t\tthis(null);\n\t}", "public RelationshipElement ()\n\t{\n\t\tthis(null, null);\n\t}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic InventoryServiceBean() {\n }", "private SingleObject()\r\n {\r\n }", "public Node(){}", "public Customer() {\n\t}", "public Customer() {\n\t}", "public XmlDocumentDefinition() {\n }", "public Member() {}", "public BasicElementList() {\n\t}", "public Constructor(){\n\t\t\n\t}", "public Member() {\n //Empty constructor!\n }", "private XMLUtils() {\n }", "public Attributes2Impl() {\n /*\n // Can't load method instructions: Load method exception: null in method: org.xml.sax.ext.Attributes2Impl.<init>():void, dex: in method: org.xml.sax.ext.Attributes2Impl.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.<init>():void\");\n }", "public BinaryTree() {\n\t}", "public Person()\n {\n //intentionally left empty\n }", "DefaultAttribute()\n {\n }", "public MetaDataContract()\n {\n }", "public Node(){\n }", "public WebElement() {}", "@Override\n public String visit(ExplicitConstructorInvocationStmt n, Object arg) {\n return null;\n }", "public SchemaDto() {\n }", "public PersonBean() {\n\t}", "DefaultConstructor(int a){}", "public Pasien() {\r\n }", "public DevicesStAXBuilder() {\n super();\n inputFactory = XMLInputFactory.newInstance();\n }", "public CWLNodeFactory() {\n super(true);\n }", "protected XMLRepositoryImpl() {\n }", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "public Bean() {\n\t}", "public AttributeDescriptorDTO()\n\t{\n\t\tsuper();\n\t}", "private BookContract() {}" ]
[ "0.7471592", "0.69858015", "0.68330145", "0.68263763", "0.6603136", "0.66004", "0.6510992", "0.64588606", "0.64271504", "0.6374772", "0.6323432", "0.62458575", "0.62399966", "0.62071484", "0.61951166", "0.61821026", "0.6180827", "0.61707973", "0.6148128", "0.6146263", "0.61345816", "0.6073174", "0.6054178", "0.60453063", "0.6006998", "0.5998213", "0.59771734", "0.5953495", "0.5936254", "0.5896088", "0.5875589", "0.5873179", "0.587107", "0.58593994", "0.5840534", "0.5832023", "0.5785", "0.57740813", "0.5768192", "0.57647234", "0.5759167", "0.5756663", "0.574442", "0.57409847", "0.5728008", "0.5717175", "0.57109326", "0.5709108", "0.57026386", "0.5701245", "0.5698897", "0.5694251", "0.5692116", "0.56783533", "0.5676438", "0.56683326", "0.56658995", "0.56658995", "0.565824", "0.56548786", "0.56460017", "0.5645642", "0.5645642", "0.5645642", "0.5645642", "0.5644784", "0.5644428", "0.5638439", "0.5635034", "0.56340253", "0.5631568", "0.5630373", "0.5615792", "0.5614967", "0.5612184", "0.5612184", "0.5602522", "0.55988073", "0.55981994", "0.55938596", "0.55935335", "0.55895656", "0.55844724", "0.55821484", "0.55801064", "0.557728", "0.55759424", "0.5563317", "0.55609745", "0.55592436", "0.55578375", "0.55559695", "0.554961", "0.55495656", "0.55474436", "0.55450445", "0.5543945", "0.5543095", "0.55393744", "0.55351096", "0.5534604" ]
0.0
-1
A Functional Interface can't have more than 1 abstract method Please uncomment the below code and check the compilation error
public void method2();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FunctionalInterface\npublic interface MyFunctional01 {\n\tvoid method();\n\t// Error:(7, 1) java: Unexpected @FunctionalInterface annotation\n\t// ru.demi.java_examples.java_8.MyFunctional01 is not a functional interface\n\t// multiple non-overriding abstract methods found in interface ru.demi.java_examples.java_8.MyFunctional01\n\t// void method02();\n}", "@FunctionalInterface\r\ninterface SingleMethod { // functional interface cant have more than one abstract method\r\n\tvoid method();\r\n\t\r\n}", "@FunctionalInterface\ninterface Foo {\n //TODO try to comment the next line\n void method(String string);\n\n //TODO try to create another abstract method\n// void method2(String string);\n //TODO try to create a default method\n default void method3(String string)\n {\n System.out.println(string);\n }\n //TODO create another functional interface and try to extend this one\n\n //TODO create an empty interface and extend this one\n}", "@FunctionalInterface\npublic interface MyFunctionalInterface {\n\n // abstract method\n int addMethod(int val1, int val2);\n\n}", "@FunctionalInterface\npublic interface Functional_Interface {\n\t\n\tpublic void printMessage(String message);\n\t\n\tdefault void printDefaultMessage(String defaultMessage)\n\t{\n\t\tSystem.out.println(\"This is default message\"+\" \"+defaultMessage);\n\t}\n\t\n\tstatic void printStaticMessage(String staticMessage)\n\t{\n\t\tSystem.out.println(\"This is static message\"+\" \"+staticMessage);\n\t}\n\t\n\n}", "public interface IFunctionService extends IBaseService<Function, Long> {\r\n\r\n\r\n}", "public void implementFunctionalInterface1() {\n\t\tSystem.out.println(\"\\n\\n************Implement Functional Interfaces - 1**********\");\n\t\tMyFunctionalInterface lambda = () -> System.out.println(\"Executing...\");\n\t\tlambda.execute();\n\t}", "@FunctionalInterface // or we can call it SAM\r\n interface ShowMe{\r\n\t\r\n\t void showOk();\r\n\t \r\n\tpublic default void one()\r\n\t {\r\n\t System.out.println(\"method one \");\r\n };\r\n \r\n public static void one1()\r\n {\r\n System.out.println(\"method one 1 \");\r\n };\r\n \r\n public default void one2()\r\n \t {\r\n \t System.out.println(\"method one2 \");\r\n };\r\n \r\n }", "@FunctionalInterface\npublic interface Line {\n\n int line(int m, int x, int c);\n\n default void eq() {\n\n }\n}", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "public void implementFunctionalInterface2() {\n\t\tSystem.out.println(\"\\n\\n************Implement Functional Interfaces - 2**********\");\n\t\t// Functional Interface Implementations:\n\t\tMathOperation addition = (int a, int b) -> a + b;\n\t\t// without type declaration - Type is optional in lambda expression\n\t\tMathOperation subtraction = (a, b) -> a - b;\n\t\t// Curly braces are mandatory when you use the return statement\n\t\tMathOperation multiplication = (int a, int b) -> {\n\t\t\treturn a * b;\n\t\t};\n\t\tMathOperation division = (a, b) -> a / b;\n\n\t\t// Method Calls:\n\t\tSystem.out.println(\"10 + 5 = \" + addition.operation(10, 5));\n\t\tSystem.out.println(\"10 - 5 = \" + subtraction.operation(10, 5));\n\t\tSystem.out.println(\"10 x 5 = \" + multiplication.operation(10, 5));\n\t\tSystem.out.println(\"10 / 5 = \" + division.operation(10, 5));\n\t}", "public interface AbstractC01264e {\n void ABn(AnonymousClass4X v, @Nullable AnonymousClass4A v2, AnonymousClass4A v3);\n\n void ABp(AnonymousClass4X v, @NonNull AnonymousClass4A v2, @Nullable AnonymousClass4A v3);\n\n void ABr(AnonymousClass4X v, @NonNull AnonymousClass4A v2, @NonNull AnonymousClass4A v3);\n\n void ADd(AnonymousClass4X v);\n}", "public interface IFaci {\n}", "public interface AbstractC2883ha {\n boolean a();\n}", "public interface C22486a {\n void bGQ();\n\n void cMy();\n }", "@FunctionalInterface\ninterface Payment{\n\tvoid pay(int amount);\n}", "private interface IPsi {\n public double f(int n);\n }", "public interface AbstractC7729o0ooOoo {\n void OooO00o();\n}", "public interface i\n{\n\n public abstract void a(long l, a a1);\n}", "public interface AbstractC1509Ys0 extends Q31 {\n Object g(Callback callback);\n}", "public interface AbstractC00591m {\n void A9X(C0495Jm jm);\n\n void AAI(List<RG> list);\n}", "public interface se {\n void a(List<POI> list);\n\n boolean a();\n\n void b();\n\n boolean c();\n\n List<POI> d();\n\n POI e();\n\n POI f();\n}", "public interface AbstractC2726a {\n /* renamed from: a */\n void mo36480a(int i, int i2, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36481a(int i, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36482a(ImageView imageView, Uri uri);\n\n /* renamed from: b */\n void mo36483b(int i, ImageView imageView, Uri uri);\n}", "public interface U {\n void f1();\n void f2();\n void f3();\n}", "interface C34503a {\n void bMl();\n }", "@FunctionalInterface\ninterface FuncInterface {\n\n\tabstract void printName(String name);\n\n\tdefault void printCity(String city) {\n\t\tSystem.out.println(city);\n\t}\n\n\tstatic void printAge(int age) {\n\t\tSystem.out.println(age);\n\t}\n}", "public interface AbstractC3386kV0 {\n boolean b();\n\n void d();\n\n void dismiss();\n\n ListView f();\n}", "public static interface _cls9\n{\n\n public abstract void onEbayError(List list);\n\n public abstract void onRemindersError();\n\n public abstract void updateMsgRemindersCounts(UserActivitySummary useractivitysummary);\n}", "public interface SystemFunctionalInterfaceRequirement extends Requirement {\n}", "interface MyFirstVoidFunctionalInterface {\n\n public void methodOne();\n\n}", "public interface afj {\n afh a();\n\n afi b();\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@FunctionalInterface\npublic interface ReaderInterface {\n //void read(Book b);\n\n //default void unread(Book b) {}\n\n void unread(Book b);\n default void read(Book b) {}\n\n}", "public interface Test171Outputs {\n\t\n\t//double firstNumber=100.00;\n //double SecondNumber=20.00;\nstatic double add(double a, double b){\nreturn a+b;\n}\nstatic double sub(double a, double b) {\nreturn a-b;\t\n}\nstatic double mul(double a, double b) {\nreturn a*b;\t\t\n}\nstatic double dev(double a, double b) {\nreturn a-b;\t\t\n}\n\nabstract class Function {\n}\n\t//private static double SecondNumder;\n\t //void add(double firstNumber, double SecondNumber) {\n\t//return(a+b)\t;\n //}\n\t//@Override\n\t//public default void sub(double firstNumber, double SecondNumder) {\n\t//System.out.println(\"Result is ::: \"+ (firstNumber - SecondNumder));\t\t\n\t//}\n\t//@Override\n\t//public default void mult(double firstNumber, double SecondNumder) {\n\t//System.out.println(\"Result is ::: \"+ (firstNumber * SecondNumder));\t\n\t//}\n\t//@Override\n\t//public default void dev(double firstNumber, double SecondNumder) {\n\t//System.out.println(\"Result is ::: \"+ (firstNumber / SecondNumder));\t\n\t//}\n\t//abstract class Test171Outputs {\n\t\t\n //(double a, double b);\n\t\t//(double firstNumber, double SecondNumder);\n\t\t//public abstract void multMethod(double firstNumber, double SecondNumder);\n\t\t//public abstract void devMethod(double firstNumber, double SecondNumder);\t\n\t\n\n\npublic static void main(String[] args, double a, double b) {\n\t\n\n\t\n\n\tdouble firstNumber=100.00;\n\tdouble SecondNumber=20.00;\n\tAny fun=new Any();\n\t\n\t//public add (double a,double b) {\n\t//return a+b;\n\t//}\n\t//public void subMethod(double a,double b) {\t\n\t//}\n\t//public void mulMethod(double a,double b) {\t\n\t//}\n\t//public void devMethod(double a,double b) {\n\t\t\n\tSystem.out.println(\"Result is ::: \"+ (a + b));\t\n\tSystem.out.println(\"Result is ::: \"+ (a - b));\t\n\tSystem.out.println(\"Result is ::: \"+ (a * b));\t\n\tSystem.out.println(\"Result is ::: \"+ (a / b));\n\t\n\t\n}\n\t //@Override\n}", "public interface AbstractC0211Dj0 {\n void a(int i);\n}", "public interface AbstractC2930hp1 {\n void a(String str, boolean z);\n\n void b(String str, long j);\n\n void c(String str, int i, int i2, int i3, int i4);\n\n void d(String str, int i);\n\n void e(String str, int i, int i2, int i3, int i4);\n}", "@FunctionalInterface\n public interface PReturn {\n\n //functional interfaces: one abstract method, as many instance or static methods as you'd like.\n public int returnInt(int x);\n //public abstract int returnInt2(String x);\n\n //new to java 8: default methods (cannot be used with @FunctionalInterfaces\n //public default int returnInt(int x) { return x; }\n\n //new to java 8: static methods now in interfaces\n public static boolean isIReturn(Object obj) { return obj instanceof IReturn; }\n}", "public interface zze\n extends IInterface\n{\n\n public abstract void zza(zzd zzd, GoogleSignInConfig googlesigninconfig);\n\n public abstract void zza(zzd zzd, SignInConfiguration signinconfiguration);\n\n public abstract void zzb(zzd zzd, GoogleSignInConfig googlesigninconfig);\n\n public abstract void zzb(zzd zzd, SignInConfiguration signinconfiguration);\n\n public abstract void zzc(zzd zzd, GoogleSignInConfig googlesigninconfig);\n}", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "@OOPMultipleInterface\npublic interface I7D {\n @OOPMultipleMethod\n default String f(Object p1, Object p2, Object p3) throws OOPMultipleException {return \"\";}\n @OOPMultipleMethod\n default String f(Integer p1, Object p2, E p3) throws OOPMultipleException {return \"\";}\n}", "public static void main(String[] args) {\n\n CompareInterface compareInterface = (i1,i2)->{\n if(i1>i2)\n return true;\n else\n return false;\n\n };\n System.out.println(compareInterface.iCompare(10,20));\n\n//(2) Increment the number by 1 and return incremented value Parameter (int) Return int\n IncrementInterface incrementInterface =(i1)->{\n return i1+=1;\n };\n System.out.println(\"Incremented Value : \"+incrementInterface.increament( 10));\n\n//(3) Concatination of 2 string Parameter (String , String ) Return (String)\n ConcatInterface concatInterface = (String::concat);\n System.out.println(\"Concatinated String : \"+ concatInterface.concat(\"Helo \", \"World\"));\n\n//(4) Convert a string to uppercase and return . Parameter (String) Return (String)\n ToUpperCaseInterface toUpperCaseInterface = (String::toUpperCase);\n System.out.println(toUpperCaseInterface.toUpperCase(\"aakash sinha\"));\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "public interface AbstractC0273Ek {\n void e();\n}", "public interface AbstractC2502fH1 extends IInterface {\n}", "public interface AbstractC1008ba extends JQ {\n void AA9();\n}", "abstract interface I1 {\n public abstract void m1();\n}", "public interface a {\n void a();\n }", "public interface a {\n void a();\n }", "public interface AbstractC1815a {\n void onFail();\n\n void onSuccess();\n }", "public interface FlyBehavior {\n public abstract void fly();\n// public abstract void\n}", "public interface f {\n void a();\n}", "interface U {\n public void A() ;\n public void B() ;\n public void C() ;\n}", "public interface AbstractC0647Pn {\n void A9C(AbstractC0645Pl pl);\n\n void A9Y(Exception exc);\n}", "private interface FilterFunction\n\t{\n\t\tpublic Boolean filter(Review review);\n\t}", "public interface ITeslaProduct extends IProduct {\n //@Override\n public abstract void makeProduct();\n}", "public interface A {\n void f();\n}", "public interface AbstractC03680oI {\n}", "public interface FlyBehevour {\n void fly();\n}", "public interface IFlyAminal {\n void fly();\n}", "public interface AbstractC1953c50 {\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "@FunctionalInterface\npublic interface FISample {\n\n void toLowerCase(String v);\n\n default String toUpperCase(String value) {\n return value.toUpperCase();\n }\n}", "@FunctionalInterface\ninterface Functional {\n String goodbye(String arg);\n}", "@FunctionalInterface\npublic interface FunctionalListPage {\n\n List<PageData> getListPage(Page p) throws Exception;\n}", "public interface AbstractC14990nD {\n void ACi(View view);\n\n void ACk(View view);\n\n void ACo(View view);\n}", "public interface AbstractC61422t9 {\n void AJZ(C61072sS v);\n}", "interface IFly {\n void fly();\n}", "public interface GameMovesLogic extends Function<InputState, Output>, CustomizedValidators<InputState> {\r\n\r\n}", "public interface C3803p {\n void mo4312a(C3922o c3922o);\n}", "public interface C11859a {\n void bvs();\n }", "public interface aqi {\n void a(int i, int i2, PhoneFavoriteSquareTileView phoneFavoriteSquareTileView);\n\n void b(int i, int i2, PhoneFavoriteSquareTileView phoneFavoriteSquareTileView);\n\n void q();\n\n void r();\n}", "public abstract void mo42331g();", "public abstract void afvuren();", "@FunctionalInterface\npublic interface DogQuerier {\n public boolean test(Dog dog);\n}", "public static interface _cls9\n{\n\n public abstract void userCancelledSignIn();\n\n public abstract void userSuccessfullySignedIn();\n}", "public abstract void mo27464a();", "public interface C19490tZ {\n boolean AiL(C17090pf r1);\n\n void BfK(C17090pf r1, C06270Ok r2, C73233Ja r3);\n}", "public abstract void mo70713b();", "@Override\n public void visitFunction(Function function) {\n }", "public interface C2541a {\n /* renamed from: O */\n boolean mo6498O(C41531v c41531v);\n\n /* renamed from: P */\n boolean mo6499P(C41531v c41531v);\n\n /* renamed from: a */\n void mo6500a(int i, int i2, Object obj, boolean z);\n\n /* renamed from: a */\n void mo6501a(C41531v c41531v, View view, Object obj, int i);\n\n /* renamed from: a */\n boolean mo6502a(C41531v c41531v, Object obj);\n\n /* renamed from: b */\n View mo6503b(RecyclerView recyclerView, C41531v c41531v);\n\n /* renamed from: by */\n void mo6504by(Object obj);\n\n /* renamed from: cu */\n void mo6505cu(View view);\n}", "public interface AbstractC7617o0oOO {\n void OooO00o(View view);\n\n void OooO0O0(View view);\n\n void OooO0OO(View view);\n}", "@Override\n\tpublic void visit(Function arg0) {\n\n\t}", "public static interface .cart.interfaces.a.k\n extends b\n{\n\n public abstract void a();\n\n public abstract void a(CartProductShippingModeDetails cartproductshippingmodedetails);\n\n public abstract void a(k k);\n\n public abstract void b();\n}", "public interface ch\n{\n\n public abstract void a(bv bv, p p, h h, long l, int i, int j, \n IMediaItem imediaitem);\n}", "public interface AbstractC0341Df {\n void A49(IQ iq, boolean z) throws AN;\n\n void A7S(C0462Ic ic, CM cm, C0340De de);\n\n void ACi();\n}", "@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}", "public interface IBiz{\n\tpublic void BizCallBack(Action action);//biz层接口\n}", "public abstract void mo102899a();", "public interface g {\n void a(int i, String str, boolean z);\n\n boolean a();\n\n void b();\n}", "interface Workshop{\n\tabstract public void work();\n}", "public abstract void mo30696a();", "public interface AbstractC0386gl {\n}", "public interface Citizen {\n public abstract void sayHello();\n}", "public interface C11922a {\n void bvR();\n }", "static interface kk$a\n{\n\n\tpublic abstract void a(kk kk1);\n\n\tpublic abstract void b(kk kk1);\n\n\tpublic abstract void c(kk kk1);\n}", "public interface FitnessCalc1 {\n public double utilityFunction(Individual X);\n public double function(double x, Individual X);\n}", "public interface Function7<P1, P2, P3, P4, P5, P6, P7, R> {\n}", "public interface A {\n default void oi(){\n System.out.println(\"Dentro do oi de A\");\n }\n}", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface Implementor {\n // 实现抽象部分需要的某些具体功能\n void operationImpl();\n}", "public interface C1061nc extends IInterface {\n /* renamed from: a */\n String mo2800a();\n\n /* renamed from: a */\n String mo2801a(String str);\n\n /* renamed from: a */\n void mo2802a(String str, boolean z);\n\n /* renamed from: a */\n boolean mo2803a(boolean z);\n}" ]
[ "0.7353681", "0.72831476", "0.705464", "0.6740185", "0.66214937", "0.66132236", "0.6610731", "0.65931755", "0.65691864", "0.6529936", "0.65265733", "0.6487993", "0.6486316", "0.64819103", "0.64467824", "0.64097685", "0.6400512", "0.63994926", "0.636605", "0.6356925", "0.6349725", "0.63223743", "0.6317457", "0.63144314", "0.63118184", "0.6311089", "0.630623", "0.6296342", "0.62912196", "0.62864065", "0.628373", "0.6271373", "0.6260766", "0.62592936", "0.62479633", "0.6244628", "0.62200505", "0.62195855", "0.6219352", "0.62104774", "0.6210091", "0.62082005", "0.6201611", "0.6200851", "0.61888427", "0.61866397", "0.6179919", "0.6179919", "0.6179561", "0.61681575", "0.6161161", "0.615665", "0.6156283", "0.61464", "0.61402667", "0.61254376", "0.6118376", "0.61180013", "0.6105392", "0.6104665", "0.6103809", "0.61025465", "0.60880643", "0.60835713", "0.6070361", "0.60628986", "0.605493", "0.6049817", "0.6045446", "0.60426384", "0.6039443", "0.60354644", "0.6031704", "0.60293347", "0.6026549", "0.6020633", "0.60168135", "0.60151666", "0.6014668", "0.6012565", "0.6011556", "0.600895", "0.60034525", "0.6000757", "0.59992963", "0.5990874", "0.5987051", "0.5980533", "0.5974609", "0.5974419", "0.5971431", "0.5967982", "0.59675807", "0.59647685", "0.59636515", "0.5962922", "0.59628356", "0.59614223", "0.594818", "0.59467894", "0.5940334" ]
0.0
-1
test the dedup w/ ArrayLists and LinkedLists
private <T> void assertDeduped(List<T> array, Comparator<T> cmp, int expectedLength) { List<List<T>> types = List.of(new ArrayList<T>(array), new LinkedList<>(array)); for (List<T> clone : types) { // dedup the list CollectionUtils.sortAndDedup(clone, cmp); // verify unique elements for (int i = 0; i < clone.size() - 1; ++i) { assertNotEquals(cmp.compare(clone.get(i), clone.get(i + 1)), 0); } assertEquals(expectedLength, clone.size()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void testDedupe(){\n LinkedList<String> list = new LinkedList<String>();\n \n for(int i = 0; i < 10; i++)\n list.add(\"Number \" + i);\n for(int j = 0; j < 5; j++)\n list.add(\"Number \" + j);\n \n //print test list\n for (String num : list)\n System.out.print(num + \" \");\n \n //Call deDupe and reprint list\n LinkedLists.deDupe(list);\n System.out.println(\"List after removing dupes: \" + '\\n');\n for (String num : list)\n System.out.print(num + \" \");\n }", "static void deleteDup(Linkedlists list){\r\n\tif(list.head==null){\r\n\t\tSystem.out.println(\"enmpty list\");\r\n\t\treturn;\r\n\t}\r\n\telse{\r\n\t\tNode current=list.head;\r\n\t\twhile(current != null){\r\n\t\t\tNode runner=current;\r\n\t\twhile(runner.next != null){\r\n\t\t\tif(runner.next.data==current.data){\r\n\t\t\t\trunner.next=runner.next.next;\r\n\t\t\t\tlist.removeNode(current.data);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\trunner=runner.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcurrent=current.next;\r\n\t\t}\r\n\t}\r\n\r\n\tSystem.out.println(\"list after duplicate removal\");\r\n\tlist.printList();\r\n}", "public static void removeDuplicateSample() {\n Node ll1 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll2 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(4, null)))));\n Node ll3 = new Node(1, new Node(1, new Node(3, new Node(4, new Node(5, null)))));\n Node ll4 = new Node(1, new Node(1, new Node(1, new Node(4, new Node(5, null)))));\n\n System.out.println(\"1===\");\n ll1.printList();\n ll1 = ll1.removeDuplicate();\n ll1.printList();\n\n System.out.println(\"2===\");\n ll2.printList();\n ll2 = ll2.removeDuplicate();\n ll2.printList();\n\n System.out.println(\"3===\");\n ll3.printList();\n ll3 = ll3.removeDuplicate();\n ll3.printList();\n\n System.out.println(\"4===\");\n ll4.printList();\n ll4 = ll4.removeDuplicate();\n ll4.printList();\n\n }", "@Test\n public void testRemoveDuplicates() {\n System.out.println(\"removeDuplicates\");\n ArrayList<String> array = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"C.EXAMPLE.COM,1.1.1.3,no,12.1,\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"c.example.com,1.1.1.5,no,12,Case a bit loose\",\n \"e.example.com,1.1.1.6,no,12.3,\",\n \"f.example.com,1.1.1.7,No,12.200,\",\n \"g.example.com,1.1.1.6,no,15.0,Guarded by sharks with lasers on their heads\"\n ));\n ArrayList<String> expResult = new ArrayList<>(Arrays.asList(\n \"A.example.COM,1.1.1.1,NO,11,Faulty fans\",\n \"b.example.com,1.1.1.2,no,13,Behind the other routers so no one sees it\",\n \"d.example.com,1.1.1.4,yes,14,\",\n \"f.example.com,1.1.1.7,No,12.200,\"\n ));\n ArrayList<String> result = BTRouterPatch.removeDuplicates(array);\n assertEquals(expResult, result);\n }", "private void removeDuplicates() {\n ListNode current = head;\n while (current != null && current.next != null) {\n if (current.data == current.next.data) {\n current.next = current.next.next;\n } else {\n current = current.next;\n }\n }\n }", "public static void main(String[] args) {\n LinkRemoveDuplicates2 ll=new LinkRemoveDuplicates2();\r\n\r\n ll.insertFirst(40);\r\n\r\n ll.insertFirst(30);\r\n \r\n ll.insertFirst(20);\r\n ll.insertFirst(20);\r\n ll.insertFirst(10);\r\n ll.insertFirst(10);\r\n System.out.println(\"Initial List->\");\r\n ll.printList();\r\n ll.head=ll.remove(ll.head);\r\n System.out.println(\"\\n\\nAfter removing duplicates->\");\r\n ll.printList();\r\n\t}", "private static boolean deduplica(Session ses, IstanzeAbbonamenti ia, List<EvasioniArticoli> eaList) \n\t\t\tthrows HibernateException {\n\t\tList<EvasioniArticoli> filteredList = new ArrayList<EvasioniArticoli>();\n\t\tfor (EvasioniArticoli ea:eaList) {\n\t\t\tif (ea.getDataInvio() == null) filteredList.add(ea);\n\t\t}\n\t\tif (filteredList.size() > 0) {\n\t\t\t//Elimina i duplicati non spediti\n\t\t\tEvasioniArticoli eaExtra = null;\n\t\t\tfor (EvasioniArticoli ea:filteredList) {\n\t\t\t\tif (eaExtra == null) eaExtra=ea;\n\t\t\t}\n\t\t\tLOG.info(ia.getAbbonamento().getCodiceAbbonamento()+\" deduplica di \"+eaExtra.getArticolo().getCodiceMeccanografico()+\" del \"+eaExtra.getDataCreazione());\n\t\t\tGenericDao.deleteGeneric(ses, eaExtra.getId(), eaExtra);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public ArrayList<Person> builtinSortDeduplication(){\n\t//copy data from list to array arr\n\tPerson[] arr = new Person[this.lst.size()];\n\tfor(int i=0; i< lst.size();i++){\n\t arr[i] = this.lst.get(i);\n\t}\n\t// use java's built-in sort\n\tArrays.sort(arr);\n\t//create list to store singular data\n\tArrayList<Person> unduplicated3 = new ArrayList<>();\n\t//compare successive elements of array to find duplicates\n\tint limit =0;\n\tif (arr.length ==0 || arr.length==1) limit =arr.length;\n\tint j=0;\n\t//store only singular data in the beginning of the array\n\tfor (int i = 0; i < arr.length-1; i++) \n if (arr[i].compareTo( arr[i+1]) != 0) \n arr[j++] = arr[i]; \n\t// add last element to array\n\tarr[j++] = arr[arr.length-1];\n\t//record last index of singular element\n\tlimit =j;\n\t//copy elements up to the singularity index to the list\n\tfor(int k=0; k< limit; k++){\n\t unduplicated3.add(arr[k]);\n\t}\n\treturn unduplicated3;\n }", "public static ListNode deleteDuplicates(ListNode head) {\n\n if(head == null || head.next == null)\n return head;\n\n ListNode fakehead = new ListNode(0);\n fakehead.next = head;\n ListNode p1 = fakehead;\n ListNode p2 = head;\n\n while(p2 != null && p2.next != null){\n if(p2.val != p2.next.val){\n p1 = p1.next;\n p2 = p2.next;\n }\n else{\n while(p2 != null && p2.next != null && p2.val == p2.next.val){\n p2 = p2.next;\n }\n p2 = p2.next;\n p1.next = p2;\n }\n }\n\n return fakehead.next;\n }", "public void removeDupsMtd2() {\n Node curr = head;\n Node prev = head;\n while (curr != null) {\n Node runner = curr.getNext();\n while(runner != null) {\n if (runner.getValue() == curr.getValue()) {\n curr.setNext(runner.getNext());\n }\n runner = runner.getNext();\n }\n curr = curr.getNext();\n }\n }", "public ListNode LCdeleteDuplicates(ListNode head) {\n // use two pointers, slow - track the node before the dup nodes,\n \t// fast - to find the last node of dups.\n\n // Raz:\n // the idea is really hard to think of\n // just add the fast.next to slow first.\n // if the fast is duplicate, then remove it, change the slow.next to now fast.next\n // not easy enough as the solution above I think.\n\n ListNode dummy = new ListNode(0), fast = head, slow = dummy;\n slow.next = fast;\n while(fast != null) {\n \twhile (fast.next != null && fast.val == fast.next.val) {\n \t\tfast = fast.next; //while loop to find the last node of the dups.\n \t}\n \tif (slow.next != fast) { //duplicates detected.\n \t\tslow.next = fast.next; //remove the dups.\n \t\tfast = fast.next; //reposition the fast pointer.\n \t} else { //no dup, move down both pointer.\n \t\tslow = slow.next;\n \t\tfast = fast.next;\n \t}\n }\n return dummy.next;\n }", "@Test\n public void testVirtualLists() throws Exception {\n assertReducesTo(\"2 dup 1 at.\", \"2 dup\");\n }", "static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\tSystem.out.println(oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>();\n\t\t\t\n\t\t\tString s = \"\";\n\t\t\tfor(int i=0;i<oList.size();i++)\n\t\t\t{\n\t\t\t\tif((oSet.add(oList.get(i))==false) && (!s.contains(oList.get(i))))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Duplicate: \"+oList.get(i));\n\t\t\t\t\ts+=oList.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toList = null;\n\t\t\toSet = null;\n\t\t}\n\t}", "public void deleteDuplicates() {\n if (head == null)\n throw new RuntimeException(\"List is empty\");\n Node<Integer> previous = head;\n Node<Integer> current = previous.getNextNode();\n while (current != null) {\n Node<Integer> temp = head;\n while (temp != current) { //skips if its the current and node is same\n if (temp.getData() == current.getData()) {\n previous.setNextNode(current.getNextNode());\n current = current.getNextNode();\n break;\n }\n temp = temp.getNextNode();\n }\n if (temp == current) { // move the node pointer\n previous = current;\n current = current.getNextNode();\n }\n }\n }", "public ArrayList<Person> quicksortDeduplication(){\n\t//copy data from list to array arr\n\tPerson[] arr = new Person[this.lst.size()];\n\tfor(int i=0; i< lst.size();i++){\n\t arr[i] = this.lst.get(i);\n\t}\n\t//sort array => see QuickSort class\n\tQuickSort.sort(arr,0,arr.length-1);\n\t//create list to store singular data\n\tArrayList<Person> unduplicated2 = new ArrayList<>();\n\t//compare successive elements of array to find duplicates\n\tint limit =0;\n\tif (arr.length ==0 || arr.length==1) limit =arr.length;\n\tint j=0;\n\t//store only singular data in the beginning of the array\n\tfor (int i = 0; i < arr.length-1; i++) \n if (arr[i].compareTo( arr[i+1]) != 0) \n arr[j++] = arr[i]; \n\t// add last element to array\n arr[j++] = arr[arr.length-1];\n\t//record last index of singular element\n\tlimit =j;\n\t//copy elements up to the singularity index to the list\n\tfor(int k=0; k< limit; k++){\n\t unduplicated2.add(arr[k]);\n\t}\n\treturn unduplicated2;\n }", "public ArrayList<Person> allPairsDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tfor (int i=0;i<this.lst.size();i++){\n\t int dup =0;\n\t //compare each element to elements after it in the list\n\t for(int j=i+1; j< this.lst.size();j++){\n\t\tif (lst.get(i).compareTo(lst.get(j)) == 0 ) dup++;\n\t }\n\t if (dup == 0) unduplicated.add(lst.get(i));\n\t}\n\treturn unduplicated;\n }", "@Test\n public void testEquals(){\n DoubleLinkedList<Integer> list1 = new DoubleLinkedList<Integer>();\n DoubleLinkedList<Integer> list2 = new DoubleLinkedList<Integer>();\n DoubleLinkedList<Integer> list3 = new DoubleLinkedList<Integer>();\n //builing of lists\n list1.addToFront(1);\n list1.addToFront(2);\n list1.addToFront(3);\n list2.addToFront(1);\n list2.addToFront(2);\n list2.addToFront(3);\n list3.addToFront(3);\n list3.addToFront(2);\n list3.addToFront(1);\n assertTrue(\"testing with two equal lists\", list2.equals(list1));\n assertFalse(\"testing with two unequal lists\", list2.equals(list3));\n assertFalse(\"testing with one list and one string\", list1.equals(\"Hello\"));\n }", "public static void main(String[] args) {\n ArrayList<Integer> nums = new ArrayList<>();\n nums.addAll( Arrays.asList(100, 2000, 50, 50, 100, 200, 300, 50));\n nums=new ArrayList<>(new TreeSet<>(nums));\n System.out.println(nums);\n\n String str1 = \"babababC\";\n str1 = new TreeSet<>( Arrays.asList(str1.split(\"\")) ).toString();\n System.out.println(str1);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - 2. Write a program that can REMOVE THE DUPLICATES from an ArrayList. DO NOT change the ORDER\n * -> LinkedHashSet -> Remove Duplicates and Keeps the Insertion Order\n */\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(6,6,6,6,5,5,5,4,4,4,4));\n list=new ArrayList<>(new LinkedHashSet<>(list));\n System.out.println(list);\n\n\n /**\n * - 1. Write a program that can remove the duplicated characters from String and store them into variable\n */\n String str = \"ABABABCDEF\";\n String[] arr = str.split(\"\");\n str = new LinkedHashSet<>(Arrays.asList(arr)).toString().replace(\", \", \"\");\n System.out.println(str);\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * -> Does not accept duplicates, and sort the objects\n * -> HashSet accepts null\n * -> HashSet is faster than TreeSet\n */\n HashSet<Integer> numbers = new HashSet<>(Arrays.asList(10,9,10, 9, 8, 7, 8, 7, 6, 5, 6, 1));\n System.out.println(numbers ); // -> [1, 5, 6, 7, 8, 9, 10]\n\n\n System.out.println(\"=========================================================================================\");\n\n /**\n * - ITERATOR: -> is the only way to remove duplicates from collection\n * - removeIf -> removes numbers because it is uses the iterator interface internally. Iterator implicitly\n *\n * - hasNext() method only can go forward cant go backward. it stars from next index\n * - when we use it our loop hasNext() iterates from the next index\n * - iterator(); - hasNext(); - next(); - remove();\n */\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n list2.removeIf( p -> p < 4 );\n System.out.println(list2);\n\n\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,1,2,2,3,3,4,4,5,5));\n Iterator<Integer> it =list3.iterator(); // - this method will return iterator\n while( it.hasNext() ){ // - iterator explicitly. While loop only accept boolean\n if( it.next() < 4 ){\n it.remove();\n }\n }\n System.out.println(list3);\n\n\n ArrayList<Integer> list4 = new ArrayList<>(Arrays.asList(1,1,2,3,3,4,4,5,5));\n // - hasNext(); will iterate all the indexes. We do not need extra iterator in the loop\n for(Iterator<Integer> I = list4.iterator(); I.hasNext(); ){\n if( I.next() < 4) {\n I.remove();\n }\n }\n System.out.println(list4);\n\n\n\n LinkedHashSet<String> names = new LinkedHashSet<>();\n names.addAll(Arrays.asList( \"Mehmet\",\"Mohammed\",\"Yucel\",\"Sha\",\"Ozgur\", \"Ahmet\",\"Osmanj\",\"Ozgur\",\"Ozgur\",\"Irina\"));\n System.out.println(names);\n Iterator<String> it3 = names.iterator();\n while( it3.hasNext() ){\n String s = it3.next();\n if(s.contains(\"m\") || s.contains(\"M\")){ // - s.toLowerCase.contains(\"m\")\n it3.remove();\n }\n }\n System.out.println(names);\n\n /*\n ===============================================================\n for(Iterator<String> it3 = names.iterator(); it3.hasNext() ; ){\n String s = it3.next();\n if(s.toLowerCase().contains(\"m\")){\n it3.remove();\n }\n }\n ================================================================\n names.removeIf( s -> s.contains(\"m\") || s.contains(\"M\") );\n ================================================================\n names.removeAll( Arrays.asList( \"Mehmet\", \"Ozgur\", \"Mohammed\" ));\n ================================================================\n names.retainAll( Arrays.asList( \"Yucel\", \"Sha\", \"Ahmet\" ) );\n ================================================================\n boolean result = list.containsAll( Arrays.asList(5, 6, 9, 8, 11 ));\n */\n\n\n\n\n\n\n\n System.out.println(\"=========================================================================================\");\n\n\n\n\n\n }", "public static void removeDuplicatesWithoutBuffer(LinkedList list)\n\t{\n\t\t//**Needs only two pointers**//\n\t\tNode current = list.getHead();\n\t\twhile(current != null && current.getNext() != null)\n\t\t{\n\t\t\tNode temp = current;\n\t\t\twhile(temp.getNext() != null)\n\t\t\t{\n\t\t\t\tif(current.getData() == temp.getNext().getData())\n\t\t\t\t{\n\t\t\t\t\ttemp.setNext(temp.getNext());\n\t\t\t\t\ttemp.setNext(temp.getNext().getNext());;\n\t\t\t\t} \n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttemp = temp.getNext();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t}", "public ListNode deleteDuplicates(ListNode head) {\n\t\tif(head == null)\n\t\t\treturn null;\n\t\tListNode res = head;\n\t\tSet<Integer> dedupSet = new HashSet<Integer>();\n\t\tListNode pre = head;\n\t\tdedupSet.add(head.val);\n\t\thead = head.next;\n\t\twhile(head != null){\n\t\t\tif(!dedupSet.contains(head.val)){\n\t\t\t\tdedupSet.add(head.val);\n\t\t\t\tpre = head;\n\t\t\t}else{\n\t\t\t\tpre.next = head.next;\n\t\t\t}\n\t\t\thead = head.next;\n\t\t}\n return res;\n }", "public static void main(String[] args) {\n\n ListNode head = new ListNode(1);\n ListNode node2 = new ListNode(1);\n ListNode node3 = new ListNode(1);\n ListNode node4 = new ListNode(1);\n ListNode node5 = new ListNode(1);\n ListNode node6 = new ListNode(2);\n\n node5.next = node6;\n node4.next = node5;\n node3.next = node4;\n node2.next = node3;\n head.next = node2;\n\n removeDuplicateNodes(head);\n\n return;\n }", "public ListNode deleteDuplicates2(ListNode head) {\n if (head == null || head.next == null) {\n return head;\n }\n // 0 - 1 - 2 - 3 - 3 - null\n // s\n //. 2 - 3 - 3 - null\n // f\n ListNode slow = head;\n ListNode fast = slow.next;\n while (fast != null) {\n if (slow.val != fast.val) {\n slow = slow.next;\n } else {\n slow.next = fast.next;\n }\n fast = fast.next;\n }\n return head;\n }", "public static boolean isDuplicate(List list, int id)\r\n {\r\n for (int i = 0; i < list.size(); i++)\r\n {\r\n int dupID = ((Integer) list.get(i)).intValue();\r\n\r\n if (dupID == id)\r\n {\r\n //slist.remove(list.get(i));\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "public void testSortAndDedup() {\n assertDeduped(List.<String>of(), Comparator.naturalOrder(), 0);\n // test no elements in an integer array\n assertDeduped(List.<Integer>of(), Comparator.naturalOrder(), 0);\n // test unsorted array\n assertDeduped(List.of(-1, 0, 2, 1, -1, 19, -1), Comparator.naturalOrder(), 5);\n // test sorted array\n assertDeduped(List.of(-1, 0, 1, 2, 19, 19), Comparator.naturalOrder(), 5);\n // test sorted\n }", "@SuppressWarnings(\"unused\")\n private List<DetailedData> removeDuplicates(List<DetailedData> detailedDatas)\n {\n List<DetailedData> detailedDatasNoDuplicates = new ArrayList<DetailedData>();\n long previousTuId = -1;\n String previousTarget = null;\n for (int i = detailedDatas.size() - 1; i >= 0; i--)\n {\n DetailedData data = detailedDatas.get(i);\n if (data.getTuId() != previousTuId || !data.getTarget().equals(previousTarget)\n || !TuvState.OUT_OF_DATE.getName().equalsIgnoreCase(data.getState()))\n {\n detailedDatasNoDuplicates.add(0, data);\n }\n\n previousTuId = data.getTuId();\n previousTarget = data.getTarget();\n }\n\n return detailedDatasNoDuplicates;\n }", "public ListNode deleteDuplicates(ListNode head) {\n if (head == null || head.next == null) {\n return head;\n }\n ListNode pointer1 = head;\n ListNode pointer2 = head.next;\n while (pointer2 != null) {\n while (pointer2 != null && pointer2.val == pointer1.val) {\n pointer2 = pointer2.next;\n }\n pointer1.next = pointer2;\n pointer1 = pointer2;\n if (pointer2 != null) {\n pointer2 = pointer2.next;\n }\n }\n return head;\n }", "private static ListNode removeDuplicates(ListNode head) {\n\n if (head == null)\n return head;\n\n // Initialize result node\n ListNode result = new ListNode(0);\n\n // Assuming that, if LinkedList has no duplicates\n result.next = head;\n\n //Iterate curr and next values.\n ListNode curr = result;\n ListNode next = result.next;\n\n boolean isDupFound = false;\n while (next != null) {\n\n //if next value is same as curr value. don't update current\n if (next.next != null && next.val == next.next.val) {\n isDupFound = true;\n }\n else if(isDupFound){\n curr.next = next.next;\n isDupFound = false;\n }\n else {\n curr = curr.next;\n }\n next = next.next;\n\n }\n return result.next;\n }", "public void testFindDuplicates() {\r\n System.out.println(\"findDuplicates\");\r\n \r\n List<String> elements = new ArrayList<>();\r\n elements.add(\"foo\");\r\n elements.add(\"bar\");\r\n elements.add(\"abc\");\r\n elements.add(\"foo\");\r\n elements.add(\"cde\");\r\n elements.add(\"cde\");\r\n elements.add(\"efg\");\r\n elements.add(\"cde\");\r\n \r\n Set<String> expResult = new LinkedHashSet<>();\r\n expResult.add(\"foo\");\r\n \r\n LexicalChecker instance = new LexicalChecker();\r\n Set<String> result = instance.findDuplicates(elements);\r\n \r\n assertNotSame(expResult, result);\r\n \r\n expResult.add(\"cde\");\r\n assertEquals(expResult, result);\r\n }", "private ListNode deleteReplicateNode(ListNode head) {\n\n if (head == null || head.next == null) {\n System.out.println(\"Head is null or there is only one node\");\n return head;\n }\n\n ListNode preNode = null;\n ListNode node = head;\n while (node != null) {\n\n ListNode nextNode = node.next;\n boolean deleteFlag = false;\n if (nextNode != null && node.val == nextNode.val) {\n deleteFlag = true;\n }\n\n if (!deleteFlag) {\n preNode = node;\n } else {\n int value = node.val;\n ListNode toBeDeleted = node;\n\n while (toBeDeleted != null && toBeDeleted.val == value) {\n nextNode = toBeDeleted.next;\n\n toBeDeleted.next = null;\n\n toBeDeleted = nextNode;\n }\n\n // when old head node is duplicated, we need to assign the new head.\n if (preNode == null) {\n head = nextNode;\n } else {\n // use preNode to connect these non-duplicate nodes.\n preNode.next = nextNode;\n }\n }\n\n node = nextNode;\n }\n\n return head;\n }", "public static void removeDups (Node head){\n\n Node i = head;\n Node j;\n Node previous;\n\n while (i != null) {\n previous = i;\n j = i.next;\n while (j != null) {\n if (i.val == j.val){\n previous.next = j.next;\n } else {\n previous = j;\n }\n j = j.next;\n }\n\n i = i.next;\n }\n }", "public void removeDuplicate(Node head){\r\n\t\tMap<Integer, Boolean> buffer = new HashMap<Integer, Boolean>();\r\n\t\tNode previous = null;\r\n\t\twhile(head != null){\r\n\t\t\tif(buffer.get(head.data)){\r\n\t\t\t\tprevious.next = head.next;\r\n\t\t\t}else{\r\n\t\t\t\tprevious = head;\r\n\t\t\t\tbuffer.put(head.data, true);\r\n\t\t\t}\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\t}", "private static void testDeepCopyValidity(Node start, Node clonedList) {\n System.out.println(\"Address of original head: \" + start );\n System.out.println(\"Address of cloned head: \" + clonedList);\n System.out.println(\"Data of original head: \" + start.data);\n System.out.println(\"Data of cloned head: \" + clonedList.data);\n\n// Test address and data of next\n System.out.println(\"Address of original head: \" + start.next );\n System.out.println(\"Address of cloned head: \" + clonedList.next);\n System.out.println(\"Data of original head: \" + start.next.data);\n System.out.println(\"Data of cloned head: \" + clonedList.next.data);\n\n// Test address and data of next.next\n System.out.println(\"Address of original head: \" + start.next.next );\n System.out.println(\"Address of cloned head: \" + clonedList.next.next);\n System.out.println(\"Data of original head: \" + start.next.next.data);\n System.out.println(\"Data of cloned head: \" + clonedList.next.next.data);\n\n System.out.println(\"------------------------------------------------------------\");\n\n// Test address and of arbitrary data of head\n System.out.println(\"Address of original head: \" + start.arbitrary );\n System.out.println(\"Address of cloned head: \" + clonedList.arbitrary);\n System.out.println(\"Data of original head: \" + start.arbitrary.data);\n System.out.println(\"Data of cloned head: \" + clonedList.arbitrary.data);\n\n // Test address and of arbitrary data of next.next\n System.out.println(\"Address of original head: \" + start.next.next.arbitrary );\n System.out.println(\"Address of cloned head: \" + clonedList.next.next.arbitrary);\n System.out.println(\"Data of original head: \" + start.next.next.arbitrary.data);\n System.out.println(\"Data of cloned head: \" + clonedList.next.next.arbitrary.data);\n\n\n }", "@Test\n public void givenFirstElementWhenDeletedShouldPassLinkedListResult() {\n MyNode<Integer> myFirstNode = new MyNode<>(56);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(70);\n MyLinkedList myLinkedList = new MyLinkedList();\n myLinkedList.append(myFirstNode);\n myLinkedList.append(mySecondNode);\n myLinkedList.append(myThirdNode);\n myLinkedList.printMyNodes();\n myLinkedList.pop();\n myLinkedList.printMyNodes();\n boolean result = myLinkedList.head.equals(mySecondNode) &&\n myLinkedList.tail.equals(myThirdNode);\n Assertions.assertTrue(result);\n }", "static void UseArrayList(ArrayList<Integer> myList2){\r\n\t\tLong start = System.currentTimeMillis();\r\n\t\tfor (int n=0; n<myList2.size();n++)\r\n\t\t{\r\n\t\t\tfor (int m=n+1; m<myList2.size();m++){\r\n\t\t\t\tif( myList2.get(n)== myList2.get(m) ) {System.out.println(\"Duplicate found \"+myList2.get(n));}\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong End = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Total time taken for executing this code is: \" + (End-start));\r\n\t}", "public static void removeDuplicatesInPlace(LinkedList linkedList) {\r\n\t\tif (linkedList == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tIntegerNode toMatch = linkedList.getHead();\r\n\r\n\t\twhile (toMatch != null) {\r\n\t\t\tIntegerNode current = toMatch;\r\n\t\t\twhile (current.getNext() != null) {\r\n\t\t\t\tif (current.getNext().equals(toMatch)) {\r\n\t\t\t\t\tIntegerNode matchedNode = current.getNext();\r\n\t\t\t\t\tcurrent.setNext(matchedNode.getNext());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcurrent = current.getNext();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\ttoMatch = toMatch.getNext();\r\n\t\t}\r\n\t}", "public static void deleteDuplicatesNoBuffer(LinkedListNode head){\n LinkedListNode current = head;\n\n while ( current != null ) {\n LinkedListNode runner = current;\n\n while ( runner.next != null ) {\n if ( current.data == runner.next.data ) {\n // skip the runner's next node\n runner.next = runner.next.next;\n } else {\n runner = runner.next;\n }\n }\n\n current = current.next;\n }\n }", "public static ListNode deleteDuplicates(ListNode head) {\n HashSet<Integer> allVals = new HashSet<Integer>();\n \tListNode temp = head;\n \tListNode before = head;\n \tListNode next = head;\n \twhile(temp!=null){\n \t\tif(allVals.contains(temp.val)){\n \t\t\tbefore.next = next; // delete current node \n \t\t\tif(next == null ) return head;\n \t\t\ttemp = next;\n \t\t\tnext = temp.next;\n \t\t}else{\n \t\t\t\n \t\t\tallVals.add(temp.val);\n \t\t\tbefore = temp;\n \t\ttemp = next;\n \t\tif(temp == null ) return head;\n \t\tnext =next.next;\n \t\t}\n\n \t\t\n \t}\n \treturn head;\n }", "ArrayList deepCopyShapeList(List aShapeList){\n ArrayList newList = new ArrayList();\r\n\r\n if (aShapeList.size() > 0) {\r\n Iterator iter = aShapeList.iterator();\r\n\r\n while (iter.hasNext())\r\n newList.add(((TShape)iter.next()).copy());\r\n }\r\n return\r\n newList;\r\n}", "public static void main(String args[]) {\n IsIdenticalLists llist1 = new IsIdenticalLists();\n IsIdenticalLists llist2 = new IsIdenticalLists();\n\n /* The constructed linked lists are :\n llist1: 3->2->1\n llist2: 3->2->1 */\n\n llist1.push(1);\n llist1.push(2);\n llist1.push(3);\n\n llist2.push(1);\n llist2.push(2);\n llist2.push(3);\n\n if (llist1.areIdentical(llist2) == true)\n System.out.println(\"Identical \");\n else\n System.out.println(\"Not identical \");\n\n }", "public static ListNode deleteDuplicates(ListNode head) {\n if(head == null || head.next == null) return head;\n boolean flag = false;\n if(head.next!=null && head.val == head.next.val) flag = true;\n int ahead = head.val;\n ListNode ptr = head.next;\n ListNode new_head = new ListNode(head.val);\n ListNode cur = new_head;\n while(ptr != null) {\n if(ptr.val != ahead) {\n if(ptr.next == null || ptr.next.val != ptr.val) {\n cur.next = new ListNode(ptr.val);\n cur = cur.next;\n }\n ahead = ptr.val;\n }\n ptr = ptr.next;\n }\n if(flag) return new_head.next;\n return new_head;\n }", "public ListNode deleteDuplicates(ListNode head) {\n ListNode newhead = new ListNode(0);\n ListNode curr=head;\n ListNode prev = newhead;\n newhead.next = curr;\n if(curr==null) return null;\n while(curr!=null && curr.next!=null){\n ListNode next = curr.next;\n if(next.val == curr.val){\n while(next!=null && next.val == curr.val){\n next = next.next;\n }\n prev.next = next;\n }\n else{\n prev = curr;\n }\n curr = next;\n \n }\n return newhead.next;\n }", "public Node removeDups(Node head) {\n if (head != null) {\n Node current = head;\n Set<Integer> set = new HashSet<>();\n set.add(current.data);//IMP step\n\n while (current.next != null) {\n if (set.contains(current.next.data)) {\n //found the dup, leave it out\n current.next = current.next.next;\n } else {\n set.add(current.data);\n current = current.next;\n }\n }\n }\n return head;\n }", "public void removeDuplicates(){\n HashSet<Object> elements = new HashSet<>();\n Node n = head;\n int i=0;\n while(n!=null){\n if(elements.contains(n.getData())){\n if (size == 1) {\n this.head.setData(null);\n } else {\n if (n == this.head) {\n this.head = n.next;\n this.head.prev = this.head;\n } else if (n == this.tail) {\n this.tail = n.prev;\n this.tail.next = this.tail;\n } else {\n n.prev.next = n.next;\n n.next.prev = n.prev;\n }\n }\n size--;\n }else{\n elements.add(n.getData());\n }\n n=n.next;\n }\n }", "public static void main(String[] args) {\n\t\tNode n = new Node(0);\r\n\t\tNode dummy = n;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tfor (int i = 1; i < 10; i ++) {\r\n\t\t\tn.next = new Node(i);\r\n\t\t\tn = n.next;\r\n\t\t}\r\n\t\tremoveDuplicate(dummy);\r\n\t\twhile(dummy != null) {\r\n\t\t\tSystem.out.println(dummy.val);\r\n\t\t\tdummy = dummy.next;\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean isDupe(T element);", "public static void removeDuplicate(ArrayList<Integer>list) {\n \n //create a temporary arraylist\n ArrayList<Integer> tempList = new ArrayList<>();\n \n //loop thru the list and check if list contains the same integer/number/value as tempList\n for (int i = 0; i < list.size(); i++) {\n if (!tempList.contains(list.get(i))) {\n tempList.add(list.get(i));\n }\n }\n \n //clear the list\n list.clear();\n \n //add all integers/numbers/value from tempList into list\n list.addAll(tempList);\n \n }", "@Override\n public LinkedList removeDuplicates() {\n ArrayList<String> itemList = new ArrayList(Arrays.asList(\"\"));\n LinkedList newLinkedList = new LinkedList();\n Node currNode = this.head;\n while(true){\n if(!itemList.contains(currNode.getItem())){\n itemList.add(currNode.getItem());\n newLinkedList.addNode(currNode.getItem());\n }\n if(currNode.getNextNode() == null){\n break;\n }\n currNode = currNode.getNextNode();\n }\n return newLinkedList;\n }", "@Test\n public void testConcat() {\n// System.out.println(\"---concat---\");\n// //Test1: concatenating two empty lists returns an empty list\n// ADTList instance = ADTList.create();\n// ADTList list = ADTList.create();\n// ADTList expResult = ADTList.create();\n// ADTList result = instance.concat(list);\n// assertEquals(expResult, result);\n// System.out.println(\"Test1 OK\");\n// \n// //Test2.1: concatenating an empty list with a non-empty list returns the non-empty list\n// ADTList instance2 = ADTList.create();\n// ADTList list2 = createTestADTListIns(6);\n// ADTList expResult2 = list2;\n// ADTList result2 = instance2.concat(list2);\n// assertEquals(expResult2, result2);\n// System.out.println(\"Test2.1 OK\");\n// \n// //Test2.2: concatenating a non-empty list with an empty list returns the non-empty list\n// ADTList instance3 = createTestADTListIns(6);\n// ADTList list3 = ADTList.create();\n// ADTList expResult3 = instance3;\n// ADTList result3 = instance3.concat(list3);\n// assertEquals(expResult3, result3);\n// System.out.println(\"Test2.2 OK\");\n// \n// //Test3: concatenating two non-empty lists returns a new list in the form [list1 list2].\n// ADTList instance4 = createTestADTList(1,1,2,2,3,3);\n// ADTList list4 = createTestADTList(4,1,5,2,6,3);\n// ADTList expResult4 = createTestADTListIns(6);\n// ADTList result4 = instance4.concat(list4);\n// assertEquals(expResult4, result4);\n// System.out.println(\"Test3 OK\");\n \n }", "public static void removeDuplicatesWithBuffer(LinkedList list)\n\t{\n\t\tHashSet<Integer> unique = new HashSet<Integer>();\n\t\tNode current = list.getHead(), prev = null;\n\t\twhile(current != null)\n\t\t{\n\t\t\tif(!unique.add(current.getData()))\n\t\t\t{\n\t\t\t\t//**Do not move the previous node to current if there is a duplicate**//\n\t\t\t\tprev.setNext(current.getNext());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprev = current;\n\t\t\t}\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t}", "public ArrayList<Affix> removeDuplicateAffix(ArrayList<Affix> affix)\n\t{\n\t\tArrayList<Affix> tempAffix = affix;\n\t\tArrayList<Affix> resultAffix = new ArrayList<Affix>();\n\t\tboolean skip = false;\n\t\tint appearances = 0;\n\n//\t\tfor( int i = 0; i < affix.size(); i++)\n//\t\t{\n//\t\t\tskip = false;\n//\t\t\tfor(int j = 0; j < affix.size(); j++)\n//\t\t\t{\n//\t\t\t\tprintln(\" Comparing \" + tempAffix.get(i).getAffix() + \" and \" + affix.get(j).getAffix() );\n//\t\t\t\tif( skip == true )\n//\t\t\t\t{\n//\t\t\t\t\tbreak;\n//\t\t\t\t}\n//\t\t\t\tif( tempAffix.get(i).getAffix().equalsIgnoreCase(\"\") )\n//\t\t\t\t{\n//\t\t\t\t\tskip = true;\n//\t\t\t\t}\n//\t\t\t\tif( tempAffix.get(i).getAffix().compareTo( affix.get(j).getAffix() ) != 0 && !skip)\n//\t\t\t\t{\n//\t\t\t\t\tprintln(\" Adding2 \" + tempAffix.get(i).getAffix() + \" and \" + affix.get(j).getAffix() );\n//\t\t\t\t\tskip = true;\n//\t\t\t\t\tresultAffix.add(tempAffix.get(i));\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\n\n\n\t\tfor ( int i = 0; i < affix.size(); i++ )\n\t\t{\n\t\t\tskip = false;\n\t\t\tfor( int j = 0; j < tempAffix.size(); j++ )\n\t\t\t{\n\t\t\t\tif( skip == true ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if( tempAffix.get(i).getAffix().equalsIgnoreCase(\"\") && !skip )\n\t\t\t\t{\n\t\t\t\t\tskip = true;\n\t\t\t\t}\n\t\t\t\tif( tempAffix.get(i).getAffix().equalsIgnoreCase( affix.get(j).getAffix() ) && !skip)\n\t\t\t\t{\n\t\t\t\t\tskip = true;\n\t\t\t\t\tappearances++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif( appearances == 1) {\n\t\t\t\tresultAffix.add( tempAffix.get(i) );\n\t\t\t}\n\t\t}\n\n\t\treturn resultAffix;\n\t}", "@Test\n\tpublic void test1() {\n\t\t// toArray()\n\t\tDoubleLinkedList dll = new DoubleLinkedList(getList(10));\n\t\tObject[] a = new Object[] {21, 22, 23, 24, 25};\n\t\tassertArrayEquals(dll.toArray(a), getList(10).toArray());\n\t\t\n\t\tdll = new DoubleLinkedList(getList(4));\n\t\tassertEquals(dll.toArray(a)[4], null);\n\t\t\n\t\t// addBefore()\n\t\tdll.addBefore(101, dll.header);\n\t\t\n\t\t// remove()\n\t\ttry{\n\t\t\tdll.remove(dll.header);\n\t\t}catch(NoSuchElementException e){\n\t\t\tassertEquals(e.getMessage(), null);\n\t\t}\n\t\t\n\t\tdll.remove(dll.header.next);\n\t\t\n\t\t\n\t}", "protected void removeDuplicates() {\n log.trace(\"Removing duplicated\");\n long startTime = System.currentTimeMillis();\n int initial = size();\n E last = null;\n int index = 0;\n while (index < size()) {\n E current = get(index);\n if (last != null && last.equals(current)) {\n if (log.isTraceEnabled()) {\n log.trace(\"Removing duplicate '\" + current + \"'\");\n }\n remove(index);\n } else {\n index++;\n }\n last = current;\n }\n log.debug(String.format(\"Removed %d duplicates from a total of %d values in %dms\",\n initial - size(), initial, System.currentTimeMillis() - startTime));\n }", "public void removeDuplicates() {\n if (head == null) {\n return;\n }\n Node currentNode = this.head;\n Node nextNode = this.head.next;\n while (nextNode != null) {\n if (currentNode.data == nextNode.data) {\n currentNode.next = nextNode.next;\n nextNode = nextNode.next;\n } else {\n currentNode = nextNode;\n nextNode = nextNode.next;\n }\n }\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tRemoveDuplicates r=new RemoveDuplicates();\r\n\t\tNode4 n1=new Node4(3);\r\n\t\tn1.next=null;\r\n\t\t//n1.next.next=new Node4(7);\r\n\t//\tn1.next.next.next=new Node4(6);\r\n\t\t//n1.next.next.next.next=new Node4(7);\r\n\t n1=r.removingDuplicates(n1);\r\n\twhile(n1!=null)\r\n\t\t{\tSystem.out.print(n1.val+\"->\");\r\n\t\t\tn1=n1.next;}\r\n\t\r\n\t\t\r\n\t}", "public void removeDuplication() {\r\n\t\t//checks if the array contains any elements\r\n\t\tif (!isEmpty()) {\t//contains elements\r\n\t\t\t//loop to execute for every element in the array\r\n\t\t\tfor (int i=0;i<size-1;i++) {\r\n\t\t\t\tObject element=list[i];\t//to store value of element in array\r\n\t\t\t\t//loop to execute for every element after the current element in the list\r\n\t\t\t\tfor (int j=i+1;j<size;j++) {\r\n\t\t\t\t\t//checks if there is are 2 elements in the list with the same value\r\n\t\t\t\t\tif (element==list[j]) {\r\n\t\t\t\t\t\tremove(j);\t//calls function to remove that element from array\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\telse {\t//contains 0 elements\r\n\t\t\tSystem.out.println(\"List is empty!\");\r\n\t\t}\r\n\t}", "void setDupOfSeqObj(List<SeqInfo> seqObjList) {\n\t\tboolean desc=false;\n\t\tCollections.sort(seqObjList, new SeqInfo.CompSeqEncode(desc));\n\t\t//System.out.println(\"Sorted reads: \"+seqObjList.size());\n\t\t//timeStamp=new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\t//System.out.println(\"time: \"+timeStamp);\n\t \n\t\tSeqInfo seqObj;\n\t\tSeqInfo seqObj_r0 = null;\n\t\tSeqInfo currSeqObj;\n\t\tSeqInfo currSeqObj2; \n\t List<SeqInfo> querySeqObjList; \n\t\t\n\t int i=0; \n\t int r=0;\n\t //int m=1;\n\t\tfor(int s=0;s<seqObjList.size();s++){\n\t\t currSeqObj=seqObjList.get(s);\t\n\t\t if(!currSeqObj.isDup && currSeqObj.dupNum<0){\n\t\t\t /*\n\t\t\t if((s+1)/500000==m) {\n\t\t\t\ttimeStamp=new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\t\t\tSystem.out.println((s+1)+\" time: \"+timeStamp);\n\t\t\t\tm++;\n\t\t\t }\t\n\t\t\t */\n\t\t\t querySeqObjList=SeqOperation.findSeqObjOfSameEncode(seqObjList,currSeqObj);\n\t\t\t if(querySeqObjList.size()==1) {\n\t\t\t\tcurrSeqObj.isDup=false;\n\t\t\t\tcurrSeqObj.dupNum=0; \n\t\t\t }else if(querySeqObjList.size()>1){\n\t\t\t currSeqObj2=currSeqObj;\n\t\t\t while(currSeqObj2!=null){\t\t \n\t\t\t currSeqObj2=null;\n\t\t\t\t r=0;\n\t\t\t\t i=0;\n\t\t\t\t while(i<querySeqObjList.size()) {\t\n\t\t\t\t seqObj=querySeqObjList.get(i);\t\t \n\t\t\t\t if(seqObj.seq.equalsIgnoreCase(currSeqObj.seq)){\t\t\t\t\n\t\t\t\t\t if(r==0) { \t\t\t\n\t\t\t\t\t seqObj_r0=seqObj;\n\t\t\t\t\t seqObj_r0.isDup=false;\n\t\t\t\t\t }if(r>0) {\t\t\t\t \n\t\t\t\t\t seqObj.isDup=true;\n\t\t\t\t\t seqObj.dupNum=r;\t\n\t\t\t\t\t }\n\t\t\t\t\t seqObj_r0.dupNum=r;\n\t\t\t\t\t querySeqObjList.remove(seqObj);\n\t\t\t\t\t r++;\n\t\t\t\t }else{\n\t\t\t\t\t currSeqObj2=seqObj;\t\n\t\t\t\t\t i++;\t\t\n\t\t\t\t } \t\t \n\t\t\t\t }// while query\n\t\t\t\t if(currSeqObj2!=null) currSeqObj=currSeqObj2;\n\t\t\t }\n\t\t\t }\n\t\t\t querySeqObjList=null;\t \n\t\t }\t \n\t\t}\n\t\t\n\t Collections.sort(seqObjList, new SeqInfo.CompSeqID(desc));\t\n }", "@Test\n void givenLastElementWhenDeletedShouldPassLinkedListResult() {\n MyNode<Integer> myFirstNode = new MyNode<>(56);\n MyNode<Integer> mySecondNode = new MyNode<>(30);\n MyNode<Integer> myThirdNode = new MyNode<>(70);\n MyLinkedList myLinkedList = new MyLinkedList();\n myLinkedList.append(myFirstNode);\n myLinkedList.append(mySecondNode);\n myLinkedList.append(myThirdNode);\n myLinkedList.printMyNodes();\n myLinkedList.popLast();\n myLinkedList.printMyNodes();\n boolean result = myLinkedList.head.equals(myFirstNode) &&\n myLinkedList.head.getNext().equals(mySecondNode) &&\n myLinkedList.tail.equals(mySecondNode);\n Assertions.assertTrue(result);\n }", "public static void collapseDuplicates( ArrayList<Integer> L ) { \n\tfor (int i = 1; i < L.size();) {\n\t if (L.get(i).equals(L.get(i - 1))) {\n\t\tL.remove(i - 1);\n\t } else {\n\t\ti++;\n\t }\n\t}\n }", "public ListNode deleteDuplicates(ListNode head) {\r\n\t\tListNode node = head;\r\n\t\twhile (node != null) {\r\n\t\t\tListNode next = node.next;\r\n\t\t\tif (next != null && node.val == next.val) {\r\n\t\t\t\tnode.next = next.next;\r\n\t\t\t} else {\r\n\t\t\t\tnode = next;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn head;\r\n\t}", "private static void removeDuplicates(Node head) {\n if (head == null)\n return;\n\n Node current = head;\n while (current != null) {\n Node runner = current;\n while (runner.next != null) {\n if (runner.next.value == current.value)\n runner.next = runner.next.next;\n else\n runner = runner.next;\n }\n current = current.next;\n }\n }", "private static boolean compareList(List<Object> l1, List<Object> l2)\n {\n int count=0;\n for (Object o : l1)\n {\n Object temp = o;\n for (Object otemp : l2)\n {\n if (EqualsBuilder.reflectionEquals(temp, otemp))\n {\n count++;\n }\n }\n\n }\n\n if(count == l1.size()) return true;\n return false;\n\n }", "public ArrayList<Person> hashDoubleDeduplication(){\n\tArrayList<Person> unduplicated1 = new ArrayList<>();\n\tDoubleHashMap<String, Person> map = new DoubleHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t // and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\t//The following lines of codes were commented after usage in the first part of the assignment:\n\t//System.out.println (\"Average number of probes: \"+ average/insertCount );\n\t//System.out.println(\"Max number of probes: \"+ max);\n\t//System.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n\tIterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated1.add(suspect);\n\t}\n\treturn unduplicated1;\n }", "public static ListNode deleteDuplicates(ListNode head) {\n \tif(head == null) return null;\n ListNode nd = head;\n HashSet hs = new HashSet();\n hs.add(nd.val);\n while(nd.next!=null){\n \tif(! hs.add(nd.next.val)){\n \t\tnd.next = nd.next.next;\n \t}\n \telse\n \t\tnd = nd.next;\n }\n return head;\n \n }", "public static void main(String[] args) {\n\t\tArrayList<String> arrayListWithDups = new ArrayList<String>();\n\n\t\tarrayListWithDups.add(\"nonie\");\n\t\tarrayListWithDups.add(\"test\");\n\t\tarrayListWithDups.add(\"中中中\");\n\t\tarrayListWithDups.add(\"test\");\n\t\tarrayListWithDups.add(\"nonie\");\n\t\tarrayListWithDups.add(null);\n\t\tarrayListWithDups.add(\"中中中\");\n\t\tarrayListWithDups.add(\"homework\");\n\t\tarrayListWithDups.add(null);\n\n\t\t// Printing listWithDuplicateElements\n\t\tSystem.out.print(\"Input:\");\n\t\tSystem.out.println(arrayListWithDups);\n\n\t\t// Constructing HashSet using listWithDuplicateElements\n\t\tHashSet<String> removeDups = new HashSet<String>(arrayListWithDups);\n\n\t\t// Constructing listWithoutDuplicateElements using set\n\t\tArrayList<String> arrayListNoDups = new ArrayList<String>(removeDups);\n\n\t\t// Printing listWithoutDuplicateElements\n\t\tSystem.out.print(\"Ouput: \");\n\t\tSystem.out.println(arrayListNoDups);\n\t}", "@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}", "public static boolean duplicateCheck(ArrayList<Integer> aList) {\n\t\tBoolean duplicates = false;\n\t\tint elementIndex = 0;\n\t\twhile (duplicates == false && elementIndex < aList.size()-1) {\n\t\t\tint compareIndex = elementIndex + 1;\n\t\t\twhile (duplicates == false && compareIndex < aList.size()) {\n\t\t\t\t//System.out.println(aList.get(elementIndex));\n\t\t\t\t//System.out.println(aList.get(compareIndex));\n\t\t\t\tif (aList.get(elementIndex) == aList.get(compareIndex)) {\n\t\t\t\t\t//System.out.println(\"duplicate is true\");\n\t\t\t\t\tduplicates = true;\n\t\t\t\t}\n\t\t\t\tcompareIndex++;\n\t\t\t}\n\t\t\telementIndex++;\n\t\t}\n\t\tif (duplicates == true) {\n\t\t\t//System.out.println(\"final return for duplicate is true\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//System.out.println(\"final return for duplicate is false\");\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n void twoEntryAreNotSame(){\n ToDo t1 = new ToDo(\"1\");\n t1.setInhalt(\"Inhalt\");\n ToDo t2 = new ToDo(\"2\");\n t2.setInhalt(\"Inhalt\");\n ToDoList list = new ToDoList();\n list.add(t1);\n list.add(t2);\n\n assertEquals(-1, list.get(0).compareTo(list.get(1)));\n }", "public static void main(String[] args) {\n\t\tListNode head = ListNode.getAnExampleList();\n\t\tListNode.printList(head); \n\t\tdeleteDuplicates(head);\n\t\tSystem.out.println();\n\t\tListNode.printList(head);\n\t}", "public ListNode deleteDuplicates(ListNode head) {\n ListNode curr=head;\n if(curr==null) return null;\n while(curr!=null && curr.next!=null){\n ListNode next = curr.next;\n if(curr.next.val == curr.val){\n curr.next = curr.next.next;\n continue;\n }\n curr = next;\n }\n return head;\n }", "@Test\n\tpublic void createListFromList() {\n\t\tList<String> list = new ArrayList<>();\n\t\tlist.add(\"AAPL\");\n\t\tlist.add(\"MSFT\");\n\n\t\t// Create a copy using constructor of ArrayList\n\t\tList<String> copy = new ArrayList<>(list);\n\n\t\tassertTrue(list.equals(copy));\n\t}", "public static boolean isDapartmentNameDuplicated(ObservableList<Department> deList, String name, int size) {\n\n for (int i = 0; i < size; i++) {\n if (deList.get(i).getName().equals(name)) {\n\n return true;\n }\n }\n return false;\n }", "public static void main(String[] args) {\n List<String> stringList = new ArrayList<String>();\n List<Integer> intList = new LinkedList<Integer>();\n /*\n List <data-type> list1= new ArrayList();\n List <data-type> list2 = new LinkedList();\n List <data-type> list3 = new Vector();\n List <data-type> list4 = new Stack();\n\n */\n\n // add values to List\n stringList.add(\"Random\");\n stringList.add(\"values\");\n stringList.add(\"added\");\n stringList.add(\"in\");\n stringList.add(\"arraylist\");\n stringList.add(\"with\");\n stringList.add(\"with\");\n stringList.add(\"duplicates\");\n stringList.add(\"duplicates\");\n stringList.add(\"duplicates\");\n stringList.add(\"duplicates\");\n\n // Iterate over List\n //Traversing list through Iterator in forward direction\n Iterator itr=stringList.iterator();\n while(itr.hasNext()){\n System.out.println(itr.next());\n }\n\n intList.add(10);\n intList.add(10);\n intList.add(100);\n intList.add(200);\n intList.add(200);\n intList.add(50);\n intList.add(3);\n intList.add(3);\n intList.add(3);\n System.out.println(\"Traverse in reverse direction\");\n // listIterator only available for lists\n ListIterator irt2 =intList.listIterator(intList.size());\n while(irt2.hasPrevious()){\n\n System.out.println(irt2.previous());\n }\n\n\n\n //remove single element from ArrayList of Strings\n System.out.println(\"After removal of random from StringList\");\n stringList.remove(\"random\"); // dosent remove anything as no matching element\n stringList.remove(\"Random\");\n for(String val : stringList){\n System.out.println(val);\n\n }\n\n //remove duplicate element from ArrayList of Strings\n System.out.println(\"After removal of duplicates from StringList\");\n stringList.remove(\"duplicates\"); // only removes a single matching element i.e first matched\n for(String val : stringList){\n System.out.println(val);\n }\n\n System.out.println(intList.contains(10));\n System.out.println(intList.contains(1001));\n\n System.out.println(intList.size());\n\n System.out.println(intList.subList(0,3));\n\n System.out.println(intList.get(6));\n\n System.out.println(intList.indexOf(3));\n System.out.println(intList.lastIndexOf(3));\n\n System.out.println(intList);\n System.out.println(stringList);\n\n Collections.sort(intList);\n System.out.println(intList);\n\n Collections.reverse(stringList);\n System.out.println(stringList);\n\n\n\n\n\n\n }", "public ListNode deleteDuplicates(ListNode head) {\n if (head == null)\n return null;\n ListNode itr = head;\n while (itr != null && itr.next != null) {\n ListNode ahead = itr;\n while (ahead.next != null && ahead.next.val == ahead.val)\n ahead = ahead.next;\n itr.next = ahead.next;\n itr = itr.next;\n }\n return head;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static void main(String[] args) {\n\r\n\t\tLinkedList<String> ll = new LinkedList<String>();\r\n\t\tll.add(\"My\");\r\n\t\tll.add(\"name\");\r\n\t\tll.add(\"is\");\r\n\t\tll.add(\"Sumit\");\r\n\t\r\n\t\tSystem.out.println(\"fisrt List:\"+ll);\r\n\t\t\r\n\t\tLinkedList<String> ll_sec = new LinkedList<String>();\r\n\t\tll_sec = (LinkedList<String>) ll.clone();\r\n\t\tSystem.out.println(\"Second List After cloning:\"+ll_sec);\r\n\t}", "private Node removeDuplicate() {\n ArrayList<Integer> values = new ArrayList<Integer>();\n int len = this.getlength();\n Node result = this;\n\n if (len == 1) {\n System.out.println(\"only one element can't duplicate\");\n return result;\n } else {\n Node current = result;\n\n for (int i = 0; i < len; i++) {\n if (values.contains(current.value)) {\n result = result.remove(i);\n len = result.getlength();\n i--; // reset the loop back\n current = current.nextNode;\n } else {\n values.add(current.value);\n current = current.nextNode;\n }\n }\n return result;\n }\n }", "Node removeDuplicates(Node head)\n {\n \tNode cur = head;\n \tNode next = null;\n \twhile(cur.next!=null ){\n \t if(cur.data == cur.next.data){\n \t next = cur.next.next;\n \t cur.next = next;\n \t }else cur = cur.next;\n \t}return head;\n }", "public void testCopyList_copyValidList()\n\t{\n\t\t// Arrange\n\t\tlong listId = addListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.copyList(listId, \"testList2\");\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testList2\");\n\n\t\t// Assert\n\t\tassertNotNull(newList);\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertNotNull(newCategory1);\n\t\tassertNotNull(newCategory2);\n\t\tassertNotNull(newCategory1.getEntry(\"item1\"));\n\t\tassertNotNull(newCategory1.getEntry(\"item2\"));\n\t\tassertNotNull(newCategory1.getEntry(\"item3\"));\n\t\tassertNotNull(newCategory2.getEntry(\"item4\"));\n\t\tassertNotNull(newCategory2.getEntry(\"item5\"));\n\t\tassertNotNull(newCategory2.getEntry(\"item6\"));\n\t}", "public ListNode deleteDuplicates(ListNode head) {\n if(head==null) return null;\n ListNode p=head,q=head.next,r=new ListNode(-1);\n r.next=head;\n head=r;\n int count=1;\n while(q!=null)\n {\n if(p.val==q.val){\n q=q.next;\n count++;\n }\n else{\n if(count>=2){\n r.next=q;\n p=q;\n q=q.next;\n count=1;\n }\n else{\n r=r.next;\n p=q;\n q=q.next;\n }\n }\n }\n if(count>=2) r.next=q;\n return head.next;\n }", "public ListNode deleteDuplicates(ListNode head) {\n\n if (head == null || head.next == null) {\n return head;\n }\n\n ListNode prev = head;\n ListNode node = head;\n\n while (node.next != null) {\n node = node.next;\n if (prev.val == node.val) {\n prev.next = node.next;\n }\n else {\n prev = node;\n }\n }\n\n return head;\n }", "public ListNode deleteDuplicates(ListNode head) {\n if (head == null || head.next == null)\n return head;\n Set<Integer> hs = new HashSet();\n ListNode temp = head;\n ListNode prev = head;\n \n while (temp != null) {\n if (!hs.contains(temp.val)) {\n hs.add(temp.val);\n prev = temp;\n } else {\n prev.next = temp.next;\n }\n temp = temp.next;\n }\n return head;\n }", "public static void main(String[] args) {\n\t\tListNode head = new ListNode(1);\n\t\tListNode nodeA = new ListNode(2);\n\t\tListNode nodeB = new ListNode(2);\n\t\tListNode nodeC = new ListNode(3);\n\t\t\n\t\thead.next = nodeA;\n\t\tnodeA.next = nodeB;\n\t\tnodeB.next = nodeC;\n\t\t\n\t\tDeleteDuplicates instance = new DeleteDuplicates();\n\t\thead = instance.solution(head);\n\t\twhile(head != null)\n\t\t{\n\t\t\tSystem.out.println(head.val);\n\t\t\thead = head.next;\n\t\t}\n\t}", "public boolean equals(DoublyLinkedList<Element> list) {\n if(super.equals(list)) return true;\n else {\n if(this.size != list.size) return false;\n else {\n Node<Element> temp = header.getNextNode();\n Node<Element> other_temp = list.header.getNextNode();\n while (temp != last() && other_temp != list.last()) {\n if(!temp.getPreNode().equals(other_temp.getPreNode())\n || !temp.getContent().equals(other_temp.getContent())\n || !temp.getNextNode().equals(other_temp.getNextNode()))\n return false;\n temp = temp.getNextNode();\n other_temp = other_temp.getNextNode();\n }\n return true;\n }\n }\n }", "public List removeDuplicate() throws ComputationException {\n log.debug(\"Removing duplicate using List......\");\n List<Integer> uniqueList = new ArrayList();\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n log.debug(Arrays.toString(intArray));\n for (int i = 0; i < intArray.length; i++) {\n if (!isAdded(uniqueList, intArray[i])) {\n uniqueList.add(intArray[i]);\n }\n\n }\n log.debug(\"refined size of int array: \" + uniqueList.size());\n log.debug(uniqueList.toString());\n return uniqueList;\n\n }", "public static Node removeDuplicates(Node head) {\n\tif(head == null){\n\t return null;\n\t}\n Node traverser = head;\n while(traverser != null && traverser.next != null) { // While not reached end of list\n if(traverser.data == traverser.next.data) { // If current node = next node\n Node secondNode = traverser.next; \n if(secondNode.next != null) { // If next node is not the tail\n traverser.next = secondNode.next; // Connect current node to the next next\n }\n else { // If it was the tail\n traverser.next = null; // Just remove the tail\n }\n }\n\t if(traverser.next != null && traverser.data != traverser.next.data) { // If the new next is also repeated, dont advance the traverser\n traverser = traverser.next;\n\t }\n }\n return head;\n }", "public static void main(String[] args){\n \t\t\r\n \r\n \t\tArrayList<Phonebook> list = new ArrayList<Phonebook>();\r\n \t\t\r\n \t\tSystem.out.println(\"Original List\");\r\n \t\tlist.add(new Phonebook(1234567, \"person0@gmail.com\", 1987654, \"123 qwerty lane\"));\r\n \t\tlist.add(new Phonebook(1987654, \"person1@gmail.com\", 1994560, \"098 qwerty lane\"));\r\n \t\t\r\n \t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNew List\");\r\n\t\tlist.add(new Phonebook(2341234, \"person2@gmail.com\", 3241563, \"122 qwerty lane\"));\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNewer List \");\r\n\t\tlist.remove(1);\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tSystem.out.println(list.get(i).getNumber() + \", \" + list.get(i).getEmail() + \", \" + list.get(i).getCell() + \", \" + list.get(i).getAddress());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n \t}", "private List<CustStmtRecord> validateDuplicate (final List<CustStmtRecord> custStmtRecords) {\n\t\tlog.info(\"Entering {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\tfinal List<CustStmtRecord> duplicateReference = custStmtRecords\n\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(e -> Collections.frequency(custStmtRecords, e) > 1)\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\t\t;\n\t\t\t\n\t\tlog.info(\"duplicateReference {}\", duplicateReference);\n\t\t\t\n\t\tlog.info(\"Exiting {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\treturn duplicateReference;\n\t}", "protected boolean isDuplicate(ELesxUseCase useCase) {\n return false;\n }", "public static boolean CheckDirectlySuperList(List<Integer> list1, List<Integer> list2){\n\n Set<Integer> hashSet1 = new HashSet<>(list1);\n Set<Integer> hashSet2 = new HashSet<>(list2);\n\n boolean contain = false;\n\n if (list1.size()-list2.size()==1){\n contain = true;\n for (Integer i: hashSet2){\n if (!hashSet1.contains(i)){\n contain = false;\n break;\n }\n }\n }\n return contain;\n }", "public ListNode deleteDuplicates(ListNode head) {\n HashSet<Integer> set = new HashSet<>();\n ListNode node = head;\n ListNode before = null;\n while (head != null) {\n if (set.contains(head.val)) {\n if (head.next != null) {\n head.next = head.next.next;\n } else {\n before.next = null;\n head = null;\n }\n } else {\n set.add(head.val);\n before = head;\n head = head.next;\n }\n }\n return node;\n }", "@Test\r\n\tpublic void test1() {\r\n\t\tint[] nums = {1,2,3,1,4};\r\n\t\tAssert.assertEquals(true, containsDuplicate(nums));\r\n\t}", "@Test\n void twoEntryAreSame(){\n ToDo t1 = new ToDo(\"1\");\n t1.setInhalt(\"Inhalt\");\n ToDo t2 = new ToDo(\"1\");\n t2.setInhalt(\"Inhalt\");\n ToDoList list = new ToDoList();\n list.add(t1);\n list.add(t2);\n\n assertEquals(0, list.get(0).compareTo(list.get(1)));\n }", "public static void main(String[] args)\n {\n LinkedIntList LL = new LinkedIntList();\n LL.add(1);\n LL.add(2);\n LL.add(3);\n\n LinkedIntList LI = new LinkedIntList();\n LI.add(1);\n LI.add(2);\n LI.add(3);\n\n System.out.println(notEquals(LL, LI));\n\n }", "private boolean isSameList(CardList l1, CardList l2){\r\n\t\tif (l1.size()!=l2.size())\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tIterator<Card> i1 = l1.iterator();\r\n\t\tIterator<Card> i2 = l2.iterator();\r\n\t\twhile(i1.hasNext()){\r\n\t\t\tif (!i1.next().equals(i2.next()))\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static void main(String[] args) {\n\t\tList<String> list = new LinkedList<>(); //ArrayList\r\n\t\tList<String> test = new ArrayList<>();\r\n\t\tList<String> test2 = Arrays.asList(\"Toy\",\"Car\",\"Robot\");\r\n\t\ttest2 = new ArrayList<>(list);\r\n\t\t// 한번에 초기화... immutable 인스턴스임 고정이라... ㄷㄷ->\r\n\t\t// 다시만듬.\r\n\t\tlist.add(\"Toy\");\r\n\t\tlist.add(\"Hello\");\r\n\t\tlist.add(\"Box\");\r\n\t\tlist.add(\"Robot\");\r\n\t\tfor(String s : list)\r\n\t\t\tSystem.out.println(s+\"\\t\");\r\n\t\tString str;\r\n\t\tIterator<String> itr = list.iterator(); // 반복자\r\n\t\twhile(itr.hasNext()) \r\n\t\t{\t\r\n\t\t\tstr= itr.next();\r\n\t\t\tif(str.equals(\"Box\"))\r\n\t\t\t\titr.remove();\r\n\t\t//System.out.println(itr);\r\n\t\t\t// 컬렉션 프레임웤은 반복자를 통해 이렇게 참조가 가능하구나~ 더미노드가 존재한다 // \r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tfor(String s : list) // for each , iterator 기반.\r\n\t\t\tSystem.out.println(s+\"\\t\");\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t\t// 양방향 반복자 //\r\n\t\tList<String> dList = Arrays.asList(\"Toy\",\"Box\",\"Robot\",\"Box\");\r\n\t\tdList = new ArrayList<>(dList);\r\n\t\t\r\n\t\tListIterator<String> dIter = dList.listIterator();\r\n\t\twhile(dIter.hasNext()) {\r\n\t\t\tstr = dIter.next();\r\n\t\t\tSystem.out.print(str + \"\\t\");\r\n\t\t\tif(str.equals(\"Toy\"))\r\n\t\t\t\tdIter.add(\"Toy2\");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\twhile(dIter.hasPrevious()) {\r\n\t\t\tstr = dIter.previous();\r\n\t\t\tSystem.out.print(str + \"\\t\");\r\n\t\t\tif(str.equals(\"Robot\"))\r\n\t\t\t\tdIter.add(\"Robot2\");\r\n\t\t}\r\n\t}", "public ArrayList<Person> hashLinearDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tProbeHashMap<String, Person> map = new ProbeHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t// and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\tSystem.out.println (\"Average number of probes: \"+ average/insertCount );\n\tSystem.out.println(\"Max number of probes: \"+ max);\n\tSystem.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n Iterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated.add(suspect);\n\t}\n\treturn unduplicated;\n }", "public Node removeDuplicates(Node head) {\n Node S = head;\n Node P = head.next;\n while (P != null) {\n if (S.data == P.data) {\n P = P.next;\n } else {\n S.next = P;\n S = S.next;\n P = P.next;\n }\n }\n S.next = P;\n return S;\n }", "private static void shuffleJoinSwapAndcloneLinkedList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\n\t\tLinkedList<Integer> list1 = new LinkedList<Integer>();\n\t\tlist.add(60);\n\t\tlist.add(70);\n\t\tlist.add(80);\n\t\tlist.add(90);\n\t\tlist.add(100);\n\t\tSystem.out.println(\"LinkedList is : \" + list1);\n\n\t\t// clone the LinkedList\n\t\tSystem.out.println(\"shuffle the element in the LinkedList \" + list);\n\n\t\t// Shuffle all numbers in LinkedList\n\t\tCollections.shuffle(list);\n\t\tSystem.out.println(\"shuffle the element in the LinkedList \" + list);\n\n\t\t// swap two numbers in LinkedList\n\t\tCollections.swap(list, 01, 04);\n\t\tSystem.out.println(\"Swapping the element in the LinkedList \" + list);\n\n\t}", "public VNode duplicate() throws VlException\n\t{\n\t\tthrow new nl.uva.vlet.exception.NotImplementedException(\"Duplicate method not implemented\"); \n\t}", "public static void main(String[] args) {\n boolean found = false;\r\n \r\n\t\t\r\n\t\tLinkedList<Integer> ll = new LinkedList<>(new ArrayList<Integer>(Arrays.asList(34,90,56,12)));\r\n\t\tLinkedList<Integer> ll2 = new LinkedList<>(new ArrayList<Integer>(Arrays.asList(34,91)));\r\n\t\tfor(int i=0;i<=ll2.size()-1;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=ll.size()-1;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(ll2.get(i));\r\n\t\t\t\tSystem.out.println(ll.get(j));\r\n\t\t\t\tif(ll2.get(i)==ll.get(j))\r\n\t\t\t\t{\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tfound = false;\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(found)\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"here\");\r\n\t\t\t\tfound = false;\r\n\t\t\t\tSystem.out.println(\"Not sublist\");\r\n\t\t\t\tbreak;\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}\r\n\t\tif(found)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"sublist\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private void helper(List<Integer> tempList,ArrayList<Integer> list) {\n //stopping condition\n if(list.size()==0) {\n ans.add(new ArrayList<>(tempList)); // add a copy of tempList\n }\n else {\n for(int i=0;i<list.size();i++) {\n if(i==0 || list.get(i-1) != list.get(i)) // avoid duplication\n {\n ArrayList<Integer> newlist = new ArrayList<>(list);\n tempList.add(list.get(i));\n newlist.remove(i);\n helper(tempList,newlist);\n tempList.remove(tempList.size()-1);\n }\n\n }\n }\n }" ]
[ "0.7243732", "0.681935", "0.64994323", "0.6429908", "0.6238688", "0.61937875", "0.60988647", "0.6032995", "0.6027194", "0.59497195", "0.59269017", "0.5898948", "0.5888992", "0.58811665", "0.58780324", "0.5863616", "0.5859891", "0.5835066", "0.5816165", "0.5811927", "0.57844985", "0.5759902", "0.5750916", "0.5746326", "0.5740443", "0.57318", "0.57119524", "0.56892717", "0.5679286", "0.56677383", "0.56572735", "0.5611566", "0.56065035", "0.5599595", "0.55949235", "0.5588894", "0.55860305", "0.55852294", "0.5583372", "0.5583205", "0.5582258", "0.5579058", "0.55685645", "0.5549209", "0.55281633", "0.5520006", "0.5487634", "0.54862374", "0.54831", "0.54714614", "0.5463148", "0.5462286", "0.5453042", "0.5452374", "0.54485613", "0.5448474", "0.54466325", "0.54379654", "0.5430039", "0.5428913", "0.5426288", "0.5402435", "0.54007155", "0.54002035", "0.5393956", "0.53932583", "0.53880847", "0.53608745", "0.5349093", "0.5345412", "0.5341602", "0.53350955", "0.533309", "0.5315721", "0.5313086", "0.5310626", "0.5302388", "0.5298943", "0.5288704", "0.5288138", "0.528668", "0.52764505", "0.52732867", "0.52680075", "0.52659273", "0.5261072", "0.52566886", "0.5253536", "0.5251389", "0.524339", "0.5230398", "0.5217019", "0.52138066", "0.5212891", "0.5203206", "0.5183839", "0.5181967", "0.5175179", "0.5170754", "0.5162223" ]
0.6455722
3
test no elements in a string array
public void testSortAndDedup() { assertDeduped(List.<String>of(), Comparator.naturalOrder(), 0); // test no elements in an integer array assertDeduped(List.<Integer>of(), Comparator.naturalOrder(), 0); // test unsorted array assertDeduped(List.of(-1, 0, 2, 1, -1, 19, -1), Comparator.naturalOrder(), 5); // test sorted array assertDeduped(List.of(-1, 0, 1, 2, 19, 19), Comparator.naturalOrder(), 5); // test sorted }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean emptyArray(String[] x) {\n for (String entry : x) {\n if (entry.trim().length() > 0) {\n return false;\n }\n }\n\n return true;\n }", "@Test\r\n void not_matches() {\n assertMatcherFalse(asList(\"1\", \"2\"), size(3));\r\n }", "public static boolean arrayEmpty(String[] a) {\n return a == null || a.length == 0;\n }", "public static boolean arrayNotEmpty(String[] a) {\n return a != null && a.length > 0;\n }", "public static boolean check(String[] i) {\r\n\t\tboolean result = false;\r\n\t\tif (i != null && i.length != 0) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public static boolean m133558a(String[] strArr) {\n if (strArr == null || strArr.length == 0) {\n return false;\n }\n for (String str : strArr) {\n if (!TextUtils.isEmpty(str) && str.trim().length() > 0) {\n return true;\n }\n }\n return false;\n }", "@Test\n public void validateArrayIndexIsNull(){\n String[] a = new String[2];\n Validate.validIndex(a,20);\n }", "public static List<String> filter_empty(String[] arr){\n\t\tboolean contient_added = false;\n\t\tList<String> out = new ArrayList<String>();\n\t\tfor(String s : arr) {\n\t\t\tif(s.trim().length() > 0){\n\t\t\t\tif(s.equals(\"CONTIENT\")){\n\t\t\t\t\tif(contient_added){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tcontient_added = true;\n\t\t\t\t}\n\t\t\t\tout.add(s);\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}", "public static boolean isArray_estLength() {\n return false;\n }", "boolean hasArray();", "public void testCheckArray() {\n Object[] objects = new Object[] {\"one\"};\n Util.checkArray(objects, \"test\");\n }", "@Test\n public void testNonEmptyResponse(){\n Assert.assertTrue(respArray.length() != 0, \"Empty response\");\n }", "@Test\r\n public void test_containEmpty_False1() {\r\n Collection<?> collection = Arrays.asList(new Object[] {1, TestsHelper.EMPTY_STRING});\r\n boolean trimStrings = false;\r\n\r\n boolean res = Helper.containEmpty(collection, trimStrings);\r\n\r\n assertFalse(\"'containEmpty' should be correct.\", res);\r\n }", "@Test\n public void testWithNonEmptyJsonArrayAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"[\\\"test\\\"]\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "@Test\n public void testEmptyArrayCreation() {\n final String[] array = ArrayUtils.<String>toArray();\n assertEquals(0, array.length);\n }", "public static boolean isArrayEmpty(Player[] array) {\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (array[i] != Player.EMPTY) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Test\r\n\tpublic void testIsEmpty() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertTrue(testArray.isEmpty());\r\n\t\ttestArray.add(\"hi\");\r\n\t\tassertTrue(!testArray.isEmpty());\r\n\t}", "protected boolean checkEmptyList(){\n boolean emptyArray = true;\n String empty= alertList.get(AppCSTR.FIRST_ELEMENT).get(AppCSTR.NAME);\n if(!empty.equals(\"null\") && !empty.equals(\"\")) {\n emptyArray = false;\n }\n return emptyArray;\n }", "boolean isNoChar() {\n return array[0] == -1;\n }", "@Test\n public void testWithEmptyJsonArrayAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"[]\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "public boolean hasArray()\r\n/* 122: */ {\r\n/* 123:151 */ return true;\r\n/* 124: */ }", "public boolean isEmpty() {\n return strings.isEmpty();\n }", "protected boolean arrayIsEmpty(Object arr[]) {\n boolean empty = true;\n \n for (Object obj : arr) {\n \tif (obj != null) {\n \t\tempty = false;\n \t\tbreak;\n \t}\n }\n \treturn empty;\n }", "@Test\n public void shouldGiveTwoElementEmptyStringArrayOnOnlyColon() {\n String decodeString = \"Og==\";\n assertThat(\"Two elements is present\", BasicAuth.decode(decodeString), is(arrayWithSize(2)));\n assertThat(\"First element is emptyString\", BasicAuth.decode(decodeString)[0], isEmptyString());\n assertThat(\"Second element is emptyString\", BasicAuth.decode(decodeString)[1], isEmptyString());\n }", "public boolean isEmpty( Object[] array ){\n if( array == null || array.length == 0 ){\n return true;\n }\n return false;\n }", "public static boolean uniqueStringUsingArray(String str) {\n boolean[] boolArray = new boolean[256];\n for (int i = 0; i < str.length(); i++) {\n int val = str.charAt(i);\n if (boolArray[val]) {\n return false;\n }\n boolArray[val] = true;\n }\n return true;\n }", "public void fixmetestPositiveStringArray() {\n\n fail(\"Array conversions not implemented yet.\");\n\n Object value;\n final String[] stringArray = {};\n final String[] stringArray1 = { \"abc\" };\n final String[] stringArray2 = { \"abc\", \"de,f\" };\n\n value = LocaleConvertUtils.convert(\"\", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\" \", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\"{}\", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\"{ }\", stringArray.getClass());\n checkStringArray(value, stringArray);\n\n value = LocaleConvertUtils.convert(\"abc\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{abc}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"\\\"abc\\\"\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{\\\"abc\\\"}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"'abc'\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{'abc'}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n\n value = LocaleConvertUtils.convert(\"abc 'de,f'\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{abc, 'de,f'}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"\\\"abc\\\",\\\"de,f\\\"\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{\\\"abc\\\" 'de,f'}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"'abc' 'de,f'\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{'abc', \\\"de,f\\\"}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n\n }", "@Test\n public void shouldGiveSingleElementArrayOnNoColonString() {\n String decodeString = \"QnVybWEh\";\n assertThat(\"Only one element is present\", BasicAuth.decode(decodeString), is(arrayWithSize(1)));\n assertThat(\"Input string is contained\", BasicAuth.decode(decodeString), is(hasItemInArray(\"Burma!\")));\n }", "@Test\r\n public void test_containEmpty_False2() {\r\n List<Object> list = new ArrayList<Object>();\r\n list.add(new Object());\r\n Map<Object, Object> map = new HashMap<Object, Object>();\r\n map.put(new Object(), new Object());\r\n Collection<?> collection = Arrays.asList(new Object[] {1, list, map});\r\n boolean trimStrings = true;\r\n\r\n boolean res = Helper.containEmpty(collection, trimStrings);\r\n\r\n assertFalse(\"'containEmpty' should be correct.\", res);\r\n }", "public boolean isEmpty() {\n\t\treturn array.isEmpty();\n\t}", "boolean isNilScansArray(int i);", "private static boolean m879a(Set<String> set) {\n return set.isEmpty() || (set.size() == 1 && set.contains(\"\"));\n }", "@Test\r\n public void test_containEmpty_True2() {\r\n Collection<?> collection = Arrays.asList(new Object[] {1, TestsHelper.EMPTY_STRING});\r\n boolean trimStrings = true;\r\n\r\n boolean res = Helper.containEmpty(collection, trimStrings);\r\n\r\n assertTrue(\"'containEmpty' should be correct.\", res);\r\n }", "boolean isNilArrayOfFaultTypeArray(int i);", "private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}", "public static boolean isAllNotEqual(String str, String... strs) {\n\treturn null != str && null != strs && !Arrays.asList(strs).contains(str);\n }", "protected boolean checkEmpty(String[] parameters) {\n return parameters == null || parameters.length == 0;\n }", "@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}", "public void fixmetestNegativeStringArray() {\n\n fail(\"Array conversions not implemented yet.\");\n\n Object value;\n final String[] stringArray = {};\n\n value = LocaleConvertUtils.convert((String) null, stringArray.getClass());\n checkStringArray(value, stringArray);\n }", "boolean canMatchEmptyString() {\n return false;\n }", "public static boolean isArray_length() {\n return false;\n }", "@Test\r\n public void test_containEmpty_True1() {\r\n Collection<?> collection = Arrays.asList(new Object[] {1, \"\"});\r\n boolean trimStrings = false;\r\n\r\n boolean res = Helper.containEmpty(collection, trimStrings);\r\n\r\n assertTrue(\"'containEmpty' should be correct.\", res);\r\n }", "public static boolean isNotEmpty(byte... array) {\r\n\t\treturn array != null && array.length > 0;\r\n\t}", "@Test\r\n public void test_containEmpty_True3() {\r\n Collection<?> collection = Arrays.asList(new Object[] {1, new ArrayList<Object>()});\r\n boolean trimStrings = false;\r\n\r\n boolean res = Helper.containEmpty(collection, trimStrings);\r\n\r\n assertTrue(\"'containEmpty' should be correct.\", res);\r\n }", "@Test\n public void testGetCountNonEmpty() {\n ArrayList<String> testArray;\n testArray =\n new ArrayList<String>(Arrays.asList(\"one\", \"two\", \"two\", \"three\", \"three\", \"three\"));\n\n fixture.countWords(testArray.iterator());\n\n assertEquals(fixture.getCount(\"one\"), 1);\n assertEquals(fixture.getCount(\"two\"), 2);\n assertEquals(fixture.getCount(\"three\"), 3);\n assertEquals(fixture.getCount(\"aRandomWord\"), -1);\n assertEquals(fixture.getCount(\"notEvenAWord\"), -1);\n assertEquals(fixture.getCount(\"password\"), -1);\n assertEquals(fixture.getCount(\"Habibi\"), -1);\n }", "@Test\n\tpublic void testIsUniqueOnUniqueString() {\n\t\tassertTrue(ArraysAndStrings.isUnique(UNIQUE_CHARACTERS));\n\t}", "@Test\n public void test025() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ArrayStringFilter.Mode arrayStringFilter_Mode0 = ArrayStringFilter.Mode.EXACT;\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"iul \";\n stringArray0[1] = \"iul \";\n stringArray0[2] = \"iul \";\n ArrayStringFilter arrayStringFilter0 = new ArrayStringFilter(arrayStringFilter_Mode0, stringArray0);\n String string0 = arrayStringFilter0.toString();\n Any any0 = new Any((Component) errorPage0, (CharSequence) \"EXACT:iul ,iul ,iul ,null,null,null\");\n }", "private boolean isParamsEmpty(String... params){\n for (String param : params) {\n if (param.isEmpty())\n return true;\n }\n return false;\n }", "@Test\r\n\tpublic void getNativeFieldsArrayEmpty() {\r\n\t\tassertEquals(\"nativeFields should be empty\", 0, testObj.getNativeFieldsArray().length);\r\n\t}", "public static void testIsEmpty(LetterRecord[] records, Scanner input, String[] strings) {\n\t\tSystem.out.println(\"Testing isEmpty...\");\n\t\tfor (int i = 0; i < strings.length; i++) {\n\t\t\tSystem.out.print(\" testing \\\"\" + strings[i] + \"\\\"\");\n\t\t\tboolean correct = input.nextBoolean();\n\t\t\tboolean test = false;\n\t\t\ttry {\n\t\t\t\ttest = records[i].isEmpty();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"...failed\");\n\t\t\t\tSystem.out.println(\" threw exception: \" + e);\n\t\t\t\tint line = e.getStackTrace()[0].getLineNumber();\n\t\t\t\tSystem.out.println(\" in LetterRecord line#\" + line);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tif (correct == test) {\n\t\t\t\tSystem.out.println(\"...passed\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"...failed\");\n\t\t\t\tSystem.out.println(\" correct isEmpty = \" + correct);\n\t\t\t\tSystem.out.println(\" your isEmpty = \" + test);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"passed\");\n\t\tSystem.out.println();\n\t}", "boolean isEmpty() \r\n { \r\n //Write your code here \r\n if(a.length == 0) \r\n return true;\r\n return false;\r\n }", "public static String[] setStringArrayToEmpty(String[] arr) {\n for (int i = 0; i < arr.length; i++) {\n arr[i] = \"empty\";\n }\n return arr;\n }", "public abstract boolean canMatchEmpty();", "public static boolean stringArrayContains(String[] arr, String testStr) {\n\t\tif (arr == null || arr.length == 0) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < arr.length; ++i) {\n\t\t\t//test whether testStr is null\n\t\t\tif(testStr == null) {\n\t\t\t\tif(arr[i]==null) return true;\n\t\t\t}\n\t\t\telse if (testStr.equals(arr[i])) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean isEmpty(int[] array) {\n return array.length == 0;\n }", "static boolean containsNoData(String str) {\n return \"\".equals(str) || \"-\".equals(str);\n }", "private boolean checkParams(String[] params){\r\n\t\tfor(String param:params){\r\n\t\t\tif(param == \"\" || param == null || param.isEmpty()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean matchAnyString() { return false; }", "public static boolean isNotNullOrEmpty(Object[] array) {\n return array != null && array.length > 0;\n }", "public static boolean isArray_count() {\n return false;\n }", "public boolean isEmpty() {\r\n\t\treturn this.strings != null ? this.strings.isEmpty() : true;\r\n\t}", "public boolean isEmpty(){\n\t\treturn (howMany==0);\n\t}", "@Test\n\tpublic void whenListHaveTwoEmptyStringThenReturnTwo(){\n\t\tassertEquals(s1.getEmptyElementCount(data), 2);\n\t}", "public static void main(String[] args) {\n String[] strings = new String[100];\n for (int i = 0; i < strings.length; i++) {\n strings[i] = randomStrings(2);\n }\n// for (String s : strings) {\n// System.out.println(s);\n// }\n ArrayList<String> appeared = new ArrayList<>();\n for (String s : strings) {\n if (!appeared.contains(s)) {\n appeared.add(s);\n }\n }\n System.out.println(appeared.size());\n\n }", "public boolean isEmpty() {\n return elements == 0;\n }", "public boolean isEmpty() {\n\t\treturn elements == 0;\n\t}", "public boolean isEmpty()\n\t{\n\t\treturn arraySize == 0;\n\t}", "private static boolean checkZero(int[] count) {\n\t\tfor (int i = 0; i < count.length; i++) {\n\t\t\tif (count[i] != 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isArray_counter() {\n return false;\n }", "@Test\r\n public void test_containEmpty_True4() {\r\n Collection<?> collection = Arrays.asList(new Object[] {1, new HashMap<Object, Object>()});\r\n boolean trimStrings = false;\r\n\r\n boolean res = Helper.containEmpty(collection, trimStrings);\r\n\r\n assertTrue(\"'containEmpty' should be correct.\", res);\r\n }", "@Test\n public void getExtracpy() {\n String input = \"A303:C203:\";\n boolean expected = true;\n boolean output = true;\n String[] input1 = input.split(\":\");\n String[] expectedarray = {\"A303\",\"C203\"};\n\n for (int i = 0; i < input1.length; i++) {\n if(!input1[i].equals(expectedarray[i]))\n {\n output = false;\n break;\n }\n }\n assertEquals(expected,output);\n\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn count == 0;\r\n\t}", "private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}", "@Test \n\tpublic void testIfNumberisNotInArray()\n\t{\n \tData d = new Data();\n\t\tassertFalse(d.isMember(1)); // 1 is the value not in the array. \n\t}", "public static int gemstones(List<String> arr) {\n // Write your code here\n boolean[][] found = new boolean[arr.size()][27];\n \n for (int i = 0; i < arr.size(); i++) {\n String str = arr.get(i);\n \n for (int j = 0; j < str.length(); j++) {\n found[i][str.charAt(j) - 'a'] = true;\n }\n }\n \n int result = 0;\n for (int j = 0; j < found[0].length; j++) {\n boolean allFound = true;\n \n for (int i = 0; i < found.length; i++) {\n if (!found[i][j]) {\n allFound = false;\n break;\n }\n }\n \n if (allFound) {\n result++;\n }\n }\n \n return result;\n }", "public boolean isEmpty(){\n return (length == 0);\n }", "public void isNotEmpty() {\n if (Iterables.isEmpty(getSubject())) {\n // TODO(user): \"Not true that <[]> is not empty\" doesn't really need the <[]>,\n // since it's empty. But would the bulkier \"the subject\" really be better?\n // At best, we could *replace* <[]> with a given label (rather than supplementing it).\n // Perhaps the right failure message is just \"<[]> should not have been empty\"\n fail(\"is not empty\");\n }\n }", "abstract boolean canMatchEmptyString();", "public boolean isEmpty() { return count == 0; }", "@Test\n public void testIndirectEmptyArrayCreation() {\n final String[] array = ArrayUtilsTest.<String>toArrayPropagatingType();\n assertEquals(0, array.length);\n }", "private static boolean m45182a(String[] strArr, String str) {\n for (String str2 : strArr) {\n if (str.equals(str2)) {\n return true;\n }\n }\n return false;\n }", "@Test\n public void testWithEmptyJsonArray() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new JSONArray());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "private boolean hasValue (String s) { return s != null && s.length() != 0; }", "@Override\r\n public boolean isEmpty() {\n return size == 0;\r\n }", "public boolean isEmpty() {\n //if the array length is 0, then the array is empty\n if (this.array.length < 1) {\n return true;\n }\n \n //return false if the length is greater than 0\n return false;\n }", "@Test\r\n public void test_containNull_False() {\r\n Collection<?> collection = Arrays.asList(new Object[] {1, TestsHelper.EMPTY_STRING});\r\n\r\n boolean res = Helper.containNull(collection);\r\n\r\n assertFalse(\"'containNull' should be correct.\", res);\r\n }", "@Test\n public void whenNotStartWithPrefixThenFalse() {\n ArrayChar word = new ArrayChar(\"Hello\");\n boolean result = word.startWith(\"Hi\");\n assertThat(result, is(false));\n }", "public boolean isEmpty() {\r\n\tfor (int i = 0; i < this.size; i++) {\r\n\t if (this.territory[0][i] != 0 || this.territory[1][i] != 0) {\r\n\t\treturn false;\r\n\t }\r\n\t}\r\n\r\n\treturn true;\r\n }", "protected boolean validateData(String [] data) {\n return true;\n }", "public static boolean isEmpty(Object[] array) {\n if (array == null || array.length == 0) {\n return true;\n }\n return false;\n }", "public void testCheckArray_NullInArg() {\n Object[] objects = new Object[] {\"one\", null};\n try {\n Util.checkArray(objects, \"test\");\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\r\n\tpublic void getRelatedFieldsArrayEmpty() {\r\n\t\tassertEquals(\"relatedFields should be empty\", 0, testObj.getRelatedFieldsArray().length);\r\n\t}", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "public boolean isEmpty() { return size == 0; }", "static boolean AnyArrayTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AnyArrayTest\")) return false;\n if (!nextTokenIs(b, K_ARRAY)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeTokens(b, 3, K_ARRAY, L_PAR, STAR_SIGN, R_PAR);\n p = r; // pin = 3\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public boolean isEmpty() {\n return elements.isEmpty();\n }", "public boolean isEmpty(){\n for(int i = 0; i < arrayList.length; i++) {\n if (arrayList[i] != null)\n return false;\n }\n return true;\n }", "private static boolean checkPermutationCountingArray(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) {\n return false;\n }\n\n int[] characterCount = new int[128];\n for (int i = 0; i < s1.length(); i++) {\n characterCount[s1.charAt(i)]++;\n characterCount[s2.charAt(i)]--;\n }\n for (int i = 0; i < characterCount.length; i++) {\n if (characterCount[i] != 0) return false;\n }\n return true;\n }", "public boolean isEmpty() {\n return len == 0;\n }", "@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn (this.current<StringArray.this.max);\n\t\t\t}" ]
[ "0.721561", "0.68253", "0.6577195", "0.655829", "0.6475844", "0.6398221", "0.63854015", "0.6289466", "0.6206477", "0.6205952", "0.61750704", "0.61735773", "0.612901", "0.61090463", "0.60827667", "0.60570747", "0.60239846", "0.6018644", "0.59943306", "0.59933215", "0.59659106", "0.5908568", "0.58777183", "0.58743745", "0.58526266", "0.5845505", "0.5844315", "0.5831332", "0.58285785", "0.58228815", "0.58190423", "0.58148026", "0.5811542", "0.58067715", "0.5806326", "0.57900846", "0.5776135", "0.57664365", "0.57584727", "0.57567745", "0.57521725", "0.5732821", "0.5731338", "0.5729227", "0.5711335", "0.57066095", "0.570464", "0.5697767", "0.5696792", "0.5687913", "0.5687782", "0.5663219", "0.56558216", "0.5636642", "0.5632408", "0.5619154", "0.56017405", "0.5597835", "0.5591385", "0.55906755", "0.558661", "0.5580281", "0.55802214", "0.55492395", "0.55350137", "0.5533562", "0.5532861", "0.55232406", "0.55219805", "0.5506181", "0.5481227", "0.54733914", "0.5469681", "0.5469013", "0.54629", "0.54570603", "0.54541004", "0.54472256", "0.54462653", "0.5444531", "0.54441", "0.5437172", "0.54370916", "0.5436328", "0.5435916", "0.54343224", "0.5431523", "0.54313487", "0.5430985", "0.5430735", "0.5419589", "0.54176754", "0.54107934", "0.54107934", "0.54107934", "0.5402432", "0.5395484", "0.5381858", "0.5379027", "0.5374599", "0.53703326" ]
0.0
-1
TODO Autogenerated method stub
public void tableChanged(TableModelEvent e) { int row = e.getFirstRow(); int column = e.getColumn(); if(column == -1){ return; } String value_in_table = String.valueOf(newModel.getValueAt(row, column)); //System.out.println(value_in_table); if(column == 1){ columns_view.get(row).x = Integer.valueOf(value_in_table); } else if(column ==2){ columns_view.get(row).y = Integer.valueOf(value_in_table); } else if(column ==3){ columns_view.get(row).width = Integer.valueOf(value_in_table); } else if(column ==4){ columns_view.get(row).height = Integer.valueOf(value_in_table); } else{ System.out.println("out of column range"); } //System.out.println(columns_view.size()); (model.views).get(1).updateView(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub updatetable(); model add view 1 called updateview once it will call this first time then add view2 called updateview twice it will call this second time
public void updateView() { if(columns_view != null){ int rowCount = newModel.getRowCount(); for (int i = rowCount - 1; i >= 0; i--) { newModel.removeRow(i); } int columns_size = columns_view.size(); for(int i =0 ; i < columns_size;i++){ String index = Integer.toString(i); String name = "Obs " + index; if(columns_view.get(i) == model.bird){ name = "Bird"; } String obstacle_x = Integer.toString(columns_view.get(i).x); String obstacle_y = Integer.toString(columns_view.get(i).y); String obstacle_width = Integer.toString(columns_view.get(i).width); String obstacle_height = Integer.toString(columns_view.get(i).height); newModel.addRow(new Object[]{name,obstacle_x,obstacle_y,obstacle_width,obstacle_height}); } //System.out.println("this is view1 updateview"); //System.out.println("columns size" + columns_view.size()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateViewFromModel();", "private void UpdateTable() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void updateView(List<Pays> models) {\n\t}", "void updateModelFromView();", "public void update() {\n tableChanged(new TableModelEvent(this));\n }", "@Override\r\n\tpublic String update() {\n\t\tSystem.out.println(\"updateView.\");\r\n\t\t\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\t\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\t\r\n\t\t\t\trequest.put(\"Id\", bean.getId());\r\n\t\t\t\trequest.put(\"lineName\", bean.getLineName());\r\n\t\t\t\trequest.put(\"lineLink\", bean.getLineLink());\r\n\t\t\t\t//request.put(\"lineImg\", bean.getLineImg());\r\n\t\t\t\treturn \"update\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn \"go_preload\";\r\n\t}", "public void updateViewRs(){\n try{\n this.viewrs= viewstmt.executeQuery \n (\"SELECT * FROM JEREMY.TICKET ORDER BY ID\"); \n// viewrs.beforeFirst();\n// viewrs.next();\n }catch (Exception e ){\n System.out.println(\"sql exception at updateViewRs\" + e);\n }\n }", "private void Update_table() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void updateViews() {\n updateViews(null);\n }", "public WHOperationView() {\n initComponents();\n this.setResizable(false);\n this.setLocationRelativeTo(null);\n\n ///ilyen modellu lesz a jtable////\n TableModel model = (new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Id\", \"Name\", \"Type\", \"Amount\", \"Comment\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false\n };\n\n @Override\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n \n });\n \n TableModel model2 = (new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Id\", \"Name\", \"Type\", \"Amount\", \"Comment\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false\n };\n\n @Override\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n \n });\n \n TableModel usersmodel = (new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Id\", \"User Name\", \"Full Name\", \"Email Address\", \"Date of Birth\", \"Role\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false\n };\n\n @Override\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n \n });\n\n\n ProductListTable.setModel((DefaultTableModel)model);\n AddProductListTable.setModel((DefaultTableModel)model);\n AdminFunctionsUsersTable.setModel((DefaultTableModel)usersmodel);\n AdminFunctionsUsersProductsTable.setModel((DefaultTableModel)model2);\n \n TableRowSorter<TableModel> sorter1 = new TableRowSorter<TableModel>(model);\n viewsorter = sorter1;\n sorter1.setSortsOnUpdates(true);\n sorter1.setRowFilter(null);\n \n TableRowSorter<TableModel> sorter2 = new TableRowSorter<TableModel>(model);\n viewsorter2 = sorter2;\n sorter2.setSortsOnUpdates(true);\n sorter2.setRowFilter(null);\n \n TableRowSorter<TableModel> sorter3 = new TableRowSorter<TableModel>(usersmodel);\n viewsorter3 = sorter3;\n sorter3.setSortsOnUpdates(true);\n sorter3.setRowFilter(null);\n \n ProductListTable.setRowSorter(sorter1);\n AddProductListTable.setRowSorter(sorter2);\n AdminFunctionsUsersTable.setRowSorter(sorter3);\n \n ProductListTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n AddProductListTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n AdminFunctionsUsersTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n AdminFunctionsUsersProductsTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \n ProductListTable.getTableHeader().setReorderingAllowed(false);\n AddProductListTable.getTableHeader().setReorderingAllowed(false);\n AdminFunctionsUsersTable.getTableHeader().setReorderingAllowed(false);\n AdminFunctionsUsersProductsTable.getTableHeader().setReorderingAllowed(false);\n \n deftablemodel = (DefaultTableModel)ProductListTable.getModel();\n userstablemodel = (DefaultTableModel)AdminFunctionsUsersTable.getModel();\n usersproductstablemodel = (DefaultTableModel)AdminFunctionsUsersProductsTable.getModel();\n \n\n }", "void updateView();", "void updateView();", "public void AdminUI(Stage stage) {\n\n Button Update_button = new Button( \"Update\" );\n Button Reg = new Button( \"Register\" );\n Button Log_Out = new Button( \"Log Out\" );\n\n TableView<AdminTablrView> Admin_table = new TableView<AdminTablrView>();\n\n\n TableColumn Student_ID = new TableColumn( \"ID\" );\n TableColumn Student_Name = new TableColumn( \"Name\" );\n TableColumn Student_Year = new TableColumn( \"Level\" );\n Student_ID.setCellValueFactory( new PropertyValueFactory<AdminTablrView, String>( \"Id\" ) );\n Student_Name.setCellValueFactory( new PropertyValueFactory<AdminTablrView, String>( \"Name\" ) );\n Student_Year.setCellValueFactory( new PropertyValueFactory<AdminTablrView, String>( \"Year\" ) );\n Student_ID.setMinWidth( 210 );\n Student_Name.setMinWidth( 210 );\n Student_Year.setMinWidth( 210 );\n\n\n GridPane Admin_Pane = new GridPane();\n\n\n Admin_table.getColumns().addAll( Student_ID, Student_Name, Student_Year );\n ObservableList<AdminTablrView> obj = FXCollections.observableArrayList();\n try {\n ResultSet rs = db.getStudentData();\n // int count = 1;\n\n while (rs.next()) {\n AdminTablrView t = new AdminTablrView();\n t.Id = rs.getString( 1 );\n t.name = rs.getString( 2 );\n t.Year = rs.getString( 3 );\n obj.add( t );\n\n }\n Admin_table.setItems( obj );\n } catch (SQLException e) {\n e.getNextException();\n String s = e.getMessage();\n messagebox( s + \"Test : D\" );\n }\n\n TextField Update_box = new TextField();\n Admin_Pane.add( Admin_table, 0, 0 );\n Admin_Pane.add( Update_button, 0, 3 );\n Admin_Pane.add( Update_box, 0, 2 );\n Admin_Pane.add( Reg, 0, 1 );\n Admin_Pane.add( Log_Out, 4, 3 );\n\n\n Admin_Pane.setPadding( new Insets( 10, -100, 10, 10 ) );\n\n //Simple Designing the UI\n Admin_Pane.setStyle( \"-fx-background-color: WHITE;\" );\n Update_button.setStyle( \"-fx-background-color: darkslateblue; -fx-text-fill: white; -fx-border-radius: 5;\" );\n Reg.setStyle( \"-fx-background-color: darkslateblue; -fx-text-fill: white; -fx-border-radius: 5;\" );\n Log_Out.setStyle( \"-fx-background-color: red; -fx-text-fill: white; -fx-border-radius: 5;\" );\n\n Log_Out.setMinWidth( 100 );\n Log_Out.setMinHeight( 35 );\n\n Update_button.setMinWidth( 80 );\n Update_button.setMinHeight( 30 );\n\n Reg.setMinWidth( 80 );\n Reg.setMinHeight( 30 );\n\n\n Admin_Pane.setVgap( 5 );\n Admin_Pane.setHgap( 5 );\n Admin_Pane.setMinSize( 900, 600 );\n stage.setTitle( \"Admin Control\" );\n\n Admin_Pane.setAlignment( Pos.CENTER );\n Scene sc = new Scene( Admin_Pane );\n stage.setScene( sc );\n stage.show();\n\n Log_Out.setOnAction( new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n loginUI( stage );\n }\n } );\n\n Reg.setOnAction( new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n RegisterUI( stage );\n\n }\n } );\n Update_button.setOnAction( new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n String id = Update_box.getText();\n moduleUI( stage, id );\n\n }\n\n } );\n\n }", "public void updatedTable() {\r\n\t\tfireTableDataChanged();\r\n\t}", "public void updateTable() {\n tabelModel.setRowCount(0);\n Link current = result.first;\n for (int i = 0; current != null; i++) {\n Object[] row = {current.getMasjid(), current.getAlamat()};\n tabelModel.addRow(row);\n current = current.next;\n }\n }", "public void updateAllViews()\r\n { for (IView view : this.views)\r\n { view.updateView();\r\n }\r\n }", "public void doUpdateTable() {\r\n\t\tlogger.info(\"Actualizando tabla books\");\r\n\t\tlazyModel = new LazyBookDataModel();\r\n\t}", "private void btnUpdateActionPerformed(java.awt.event.ActionEvent evt) {\n Tables tables = new Tables();\n try{\n int id = Integer.parseInt(lblID.getText().trim());\n String tableNumber = txtUpdateTable.getText().trim();\n \n int asAvailable = 1 ;\n \n tables.setTableId(id);\n tables.setTableNumber(tableNumber);\n tables.setAsAvailable(asAvailable);\n \n tableService.updateTableNumber(tables);\n }catch(Exception e){\n JOptionPane.showMessageDialog(null, \"Please Fill TextField\");\n }\n \n vectorTablesNumber = commonService.getVectorTables();\n\n TablesTableModel tableTableModel = new TablesTableModel(vectorTablesNumber);\n tblTablesNumber.setModel(tableTableModel);\n \n \n txtUpdateTable.setText(\"\");\n \n }", "void editTable(ModelView view, TableWidget oldwidget) {\n\t\tif (oldwidget != null) {\n\t\t\tTableMetaData tmd = oldwidget.getTableMetaData();\n\t\t\tTableSelectorModel tm = m_frame.getTableSelector();\n\n\t\t\tTableEditorDialog dlg = new TableEditorDialog(m_frame.getParentFrame(), (TableMetaData) tmd.clone(),\n\t\t\t\t\tm_connection, getModeler());\n\n\t\t\tTSGuiToolbox.setReasonableWindowSize(dlg, dlg.getPreferredSize());\n\t\t\tdlg.showCenter();\n\t\t\tif (dlg.isOk()) {\n\t\t\t\t// to effect new changes, let's just remove the old widget and\n\t\t\t\t// create a new one\n\t\t\t\t// the view will automatically create the links (also, we don't\n\t\t\t\t// allow user defined links\n\t\t\t\t// on non-saved tables )\n\t\t\t\ttmd = dlg.createTableMetaData();\n\n\t\t\t\tTableId newid = tmd.getTableId();\n\t\t\t\tTableId oldid = oldwidget.getTableId();\n\n\t\t\t\t// modeler will fire table_changed event\n\t\t\t\ttmd.setTableId(oldid);\n\t\t\t\tgetModeler().tableChanged(tmd);\n\n\t\t\t\tif (!newid.equals(oldid)) {\n\t\t\t\t\ttmd.setTableId(newid);\n\t\t\t\t\t// modeler will fire table_renamed event\n\t\t\t\t\tgetModeler().tableRenamed(newid, oldid);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void updateTable()\n {\n tableModelPain = new DefaultTableModel(new String [] {\"Date\", \"Pain Average\", \"Accepted by\"},0);\n tableModelVisit = new DefaultTableModel(new String [] {\"Date\", \"Hospital Name\", \"Doctor\"},0);\n ArrayList<PainEntry> painList = patient.getPainHistory();\n ArrayList<Visit> visitList = patient.getVisitHistory();\n painData = new String[3];\n visitData = new String[3];\n for (PainEntry p : painList) {\n painData[0] = new SimpleDateFormat(\"MM/dd/yyyy\").format(p.getDate());\n painData[1] = p.getAvePain()+\"\";\n if(!\"\".equals(p.getDocName())) painData[2] = p.getDocName();\n else painData[2] = \"not treated yet\";\n \n tableModelPain.addRow(painData);\n }\n for (Visit v : visitList) {\n visitData[0] = new SimpleDateFormat(\"MM/dd/yyyy\").format(v.getDate());\n visitData[1] = v.getHospital();\n visitData[2] = v.getDocName();\n tableModelVisit.addRow(visitData);\n }\n jTablePain.setModel(tableModelPain);\n jTableVisit.setModel(tableModelVisit);\n }", "public void updateTripSheetView(){\n TripsheetsList currentTripSheetDetails = mDBHelper.fetchTripSheetDetails(mTripSheetId);\n if (currentTripSheetDetails != null) {\n ts_ob_amount.setText(Utility.getFormattedCurrency(Double.parseDouble(currentTripSheetDetails.getmTripshhetOBAmount().replace(\",\", \"\"))));\n\n\n // ts_order_value.setText(Utility.getFormattedCurrency(Double.parseDouble(currentTripSheetDetails.getmTripshhetOrderedAmount().replace(\",\", \"\"))));\n ts_total_received.setText(Utility.getFormattedCurrency(Double.parseDouble(currentTripSheetDetails.getmTripshhetReceivedAmount().replace(\",\", \"\"))));\n ts_total_due.setText(Utility.getFormattedCurrency(Double.parseDouble(currentTripSheetDetails.getmTripshhetDueAmount().replace(\",\", \"\"))));\n }\n\n tripSheetSOList = mDBHelper.getTripSheetSaleOrderDetails(mTripSheetId);\n for (int i = 0; i < tripSheetSOList.size(); i++) {\n\n orderTotal += Double.parseDouble(tripSheetSOList.get(i).getmTripshetSOValue());\n ts_order_value.setText(Utility.getFormattedCurrency(orderTotal));\n }\n\n\n isTripSheetClosed = mDBHelper.isTripSheetClosed(mTripSheetId);\n\n Log.i(\"SoListArray\",tripSheetSOList+\"\");\n\n mTripsheetSOAdapter = new TripsheetsSOListAdapter(this, TripSheetView.this, tripSheetSOList, mTakeOrderPrivilege, isTripSheetClosed, mhidePrevilige,status);\n mTripsheetsSOListView.setAdapter(mTripsheetSOAdapter);\n tripSheetSOList = mDBHelper.getTripSheetSaleOrderDetails(mTripSheetId);\n if (networkConnectionDetector.isNetworkConnected()) {\n if (tripSheetSOList.size() > 0) {\n loadTripSheetSaleOrderData();\n } else {\n mTripsheetsModel.getTripsheetsSoList(mTripSheetId);\n }\n } else {\n loadTripSheetSaleOrderData();\n }\n }", "public void updateBook(View view){\n update();\n }", "public void updateTable() {\n\t\ttable.getSelectionModel().removeListSelectionListener(lsl);\n\t\tdtm = new DefaultTableModel();\n\t\td = new Diet();\n\t\tdtm.addColumn(\"Id\");\n\t\tdtm.addColumn(\"Meal Id\");\n\t\tdtm.addColumn(\"Meal Type\");\n\t\tdtm.addColumn(\"Food Name\");\n\t\tdtm.addColumn(\"Food Type\");\n\t\tdtm.addColumn(\"Food Category\");\n\t\tdtm.addColumn(\"Ready Time\");\n\t\tdtm.addColumn(\"Calories (g)\");\t\t\n\t\tdtm.addColumn(\"Protein (g)\");\n\t\tdtm.addColumn(\"Fat (g)\");\n\t\tdtm.addColumn(\"Carbohydrates\");\n\t\tdtm.addColumn(\"VitaminA\");\n\t\tdtm.addColumn(\"VitaminC\");\n\t\tdtm.addColumn(\"Calcium\");\n\t\tdtm.addColumn(\"Iron\");\n\t\tdtm.addColumn(\"Author\");\n\t\tArrayList<Diet> dietList = dI.getDietList();\n\t\tif(isOrder && orderby!=\"\")\n\t\t{\t\t\t\n\t\t\tSystem.out.println(\"entering ----------------\"+orderby);\n\t\t\tdietList=dI.getDietOrderedList(type,orderby);\n\t\t\tfor (Diet d : dietList) {\t\n\t\t\t\tSystem.out.println(d.getId()+\" ------ \"+d.getCalories());\n\t\t\t}\n\t\t}\n\t\tif(isFiltered)\n\t\t{\n\t\t\tif(mealtypeSel!=\"\")\n\t\t\tdietList=dI.getFilteredMealTypeList(mealtypeSel);\n\t\t\tif(foodtypeSel!=\"\")\n\t\t\t\tdietList=dI.getFilteredFoodTypeList(foodtypeSel);\n\t\t\tif(authorSel!=\"\")\n\t\t\t\tdietList=dI.getFilteredauthorList(authorSel);\n\t\t\tif(foodCategorySel!=\"\")\n\t\t\t\tdietList=dI.getFilterFoodCategoryList(foodCategorySel);\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (Diet d : dietList) {\t\n\t\t\tdtm.addRow(d.getVector());\n\t\t}\n\t\ttable.setModel(dtm);\n\n\t\ttable.getSelectionModel().addListSelectionListener(lsl);\n\n\t}", "@Override\r\n\tpublic boolean updateTable() {\r\n\t\t/*\r\n\t\t * VERSION 1\r\n\t\t *\r\n\t\tobjectCollection.clear();\r\n\t\tobjectCollection.addAll(retrieveObjects());\r\n\t\trefreshTable();*/\r\n\t\tlong size=objectCollection.size();\r\n\t\tobjectCollection.clear();\r\n\t\tint index=getSelectionIndex();\r\n\t\tupdateTable(SWT.DEFAULT);\r\n\t\tselectElement(index);\r\n\t\treturn objectCollection.size()!=size;\r\n\t}", "public void UpdateItem(View view) {\n /*update a friend record given the id*/\n updateFriend(friendsDatabaseReference);\n /*the alternative*/\n// updateFriend_updateChildren(friendsDatabaseReference);\n }", "@Override\n public void updateView() throws Exception{\n Connection conn = null;\n PreparedStatement pr = null;\n ResultSet rs = null;\n try {\n String query = \"Update [view] set viewed = viewed + 1\";\n conn = getConnection();\n pr = conn.prepareStatement(query);\n pr.executeUpdate();\n } catch (Exception ex) {\n throw ex;\n } finally {\n closeResultSet(rs);\n closePreparedStatement(pr);\n closeConnection(conn);\n }\n }", "public void updateView(ClientView view);", "public static void viewtable() {\r\n\t\tt.dibuixa(table);\r\n\t}", "private void updateViews() {\n\t\tList<Task> list = null;\n\t\tDBHelper db = new DBHelper();\n\t\ttry {\n\t\t\tlist = db.getTaskList(this, Task.COLUMN_ID, taskID);\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(\"Could not get Single Task\", \"Bam\", e);\n\t\t}\n\n\t\ttask = list.get(0);\n\n\t\tint prioPos = 0;\n\n\t\tfor (int i = 0; i < prioList.size(); i++) {\n\n\t\t\tif (prioList.get(i).getId() == task.getPriority().getId()) {\n\t\t\t\tprioPos = i;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tprioSpinner.setSelection(prioPos);\n\n\t\tint catPos = 0;\n\n\t\tfor (int i = 0; i < categoryList.size(); i++) {\n\n\t\t\tif (categoryList.get(i).getId() == task.getCategory().getId()) {\n\t\t\t\tcatPos = i;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tcategorySpinner.setSelection(catPos);\n\n\t\ttitle.setText(task.getTitle());\n\t\tdescription.setText(task.getDescription());\n\t\tdatePicker.updateDate(task.getAblaufJahr(), task.getAblaufMonat(),\n\t\t\t\ttask.getAblaufTag());\n\t}", "public void updateSelectedTable() {\n if (this.getSelectedTable().getTbl_name() != null) {\n //TableList temp = new TableList();\n \n fetchLoginDetails();\n this.setMsg(\"Created !! \");\n //this.getColumnList().clear();\n System.out.println(\"net.colstore.web.mbeans.TableManagerBean.createNewTable().selectedTbUpdated :: \" + this.getColumnList().size());\n TblListDAO tbdao = new TblListDAO();\n this.setSelectedTable(tbdao.getTblDetails(selectedTable.getTbl_name()));\n //temp.setDb_id(this.getSelectedDb().getId());\n //temp.setTbl_name(this.getNewTable().getTbl_name().replaceAll(\" \", \"\"));\n //temp.setNo_of_col(0);\n //DBHandler dbHandler = new DBHandler();\n /*if (dbHandler.createTable(this.getUserId(), this.getSelectedDb().getDb_name(), temp.getTbl_name())) {\n TblListDAO tbldao = new TblListDAO();\n boolean flag = tbldao.createNewTable(temp);\n TableList temp2=tbldao.getTblDetails(temp.getTbl_name());\n for (ColList c : this.getColumnList()) {\n ColListDAO coldao=new ColListDAO();\n c.setTbl_id(temp2.getId());\n coldao.createNewColumn(c);\n dbHandler.createColumn(this.getUserId(), this.getSelectedDb().getDb_name(), temp.getTbl_name(), c.getCol_name());\n System.out.println(\"net.colstore.web.mbeans.TableManagerBean.createNewTable() :: \" + c.toString());\n }\n boolean s_flag=dbHandler.buildSchema(this.getUserId(), this.getSelectedDb().getDb_name(), temp.getTbl_name(),this.getColumnList());\n System.out.println(\"net.colstore.web.mbeans.TableManagerBean.createNewTable() :: Schema Creation Status :: \"+s_flag);\n this.getNewTable().setTbl_name(\"\");\n this.setMsg(\"Created !! \" + flag);\n } else {\n this.getNewTable().setTbl_name(\"\");\n this.setMsg(\"Table Creation failed.\");\n }*/\n\n //this.getNewTable().setTbl_name(\"\");\n //this.getColumnList().clear();\n\n } else {\n //this.setMsg(\"Select Database\");\n //this.getNewTable().setTbl_name(\"\");\n //this.getColumnList().clear();\n }\n\n }", "public void toggleTable(View view) {\n\t\tagentsArray.notifyDataSetChanged();\n\t}", "@SuppressWarnings(\"unchecked\")\n public void table_update(){\n int c;\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n con=DriverManager.getConnection(\"jdbc:mysql://localhost/footballdb\",\"root\",\"\");\n pst=con.prepareStatement(\"Select * from manager\");\n ResultSet Rs=pst.executeQuery();\n ResultSetMetaData rd=Rs.getMetaData();\n c=rd.getColumnCount();\n DefaultTableModel df=(DefaultTableModel)jTable1.getModel();\n df.setRowCount(0);\n while(Rs.next()){\n Vector v2=new Vector();\n for(int i=1;i<=c;i++){\n \n v2.add(Rs.getString(\"managerid\"));\n v2.add(Rs.getString(\"mname\"));\n v2.add(Rs.getString(\"teamid\"));\n \n }\n df.addRow(v2);\n \n }\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(manager.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void updateView() {\n if (mData.isEmpty()) {\n Logger.d(TAG, \"The mData is empty\");\n return;\n }\n Set<View> viewSet = mData.keySet(); // keySet() returns [] if map is\n // empty\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"The viewIterator is null\");\n return;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n updateChats(view, chatStruct);\n } else if (obj instanceof InvitationStruct) {\n InvitationStruct inviteStruct = (InvitationStruct) obj;\n updateInvitations(view, inviteStruct);\n } else {\n Logger.d(TAG, \"Unknown view type\");\n }\n }\n }\n }\n }", "public void updateTableView() {\n\n\t\t// label as \"July 2016\"\n\t\tlabel.setText(month + \"/\" + year);\n\n\t\t// reset the model\n\t\tmodel.setRowCount(0);\n\t\tmodel.setRowCount(numberOfWeeks);\n\n\t\t// set value in the DefaultTableModel\n\t\tint i = firstDayOfWeek - 1;\n\t\tfor (int d = 1; d <= numberOfDays; d++) {\n\t\t\tint row = i / 7;\n\t\t\tint col = i % 7;\n\t\t\tmodel.setValueAt(d, row, col);\n\t\t\tif (d == day) {\n\t\t\t\ttable.changeSelection(row, col, false, false);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }", "public void updateTable()\r\n {\r\n ((JarModel) table.getModel()).fireTableDataChanged();\r\n }", "public void updateView() {\n// LocalDate startDate = LocalDate.of(2017, Month.SEPTEMBER, 1);\n// LocalDate endDate = LocalDate.of(2017, Month.SEPTEMBER, 6);\n// getRecords(startDate, endDate);\n }", "private void fillPoDet(String[][] oldItmList, String[][] newItmList){\n \tpoDet=new inventorycontroller.function.PurchaseOrderProcessor(dbInterface1)\n \t .preparePO(oldItmList, newItmList);\n \t\n \tjTable3.setModel(new javax.swing.table.DefaultTableModel(\n poDet,\n new String [] {\n \"Sl No.\", \"Item\", \"Qty.\", \"Rate\", \"Amount\", \n \"Discount (Rs.)\", \"Discount (%)\", \n \"Surcharge (Rs.)\", \"Surcharge (%)\", \n \"Excise Duty (Rs.)\", \"Excise Duty (%)\", \n \"VAT (Rs.)\", \"VAT (%)\", \"CST (Rs.)\", \"CST (%)\", \n \"Freight / Insurance (Rs.)\", \"Freight / Insurance (%)\", \n \"Net Amount\"\n }\n ) {\n public Class getColumnClass(int columnIndex) {\n //return poDetType[columnIndex];\n return java.lang.String.class;\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return poDetEditable[columnIndex];\n }\n });\n jTable3.getModel().addTableModelListener(new javax.swing.event.TableModelListener(){\n \tpublic void tableChanged(javax.swing.event.TableModelEvent evt){\n \t\tjTable3.getModel().removeTableModelListener(this);\n \t\tpoTableEdited(evt);\n \t\tjTable3.getModel().addTableModelListener(this);\n \t}\n });\n for (int i = 0; i<oldItmList.length; i++){\n \tjTable3.getModel().setValueAt(new String(oldItmList[i][2]), i, 3);\n \tjTable3.getModel().setValueAt(new String(oldItmList[i][3]), i, 5);\n \tjTable3.getModel().setValueAt(new String(oldItmList[i][4]), i, 7);\n \tjTable3.getModel().setValueAt(new String(oldItmList[i][5]), i, 9);\n \tjTable3.getModel().setValueAt(new String(oldItmList[i][6]), i, 11);\n \tjTable3.getModel().setValueAt(new String(oldItmList[i][7]), i, 13);\n \tjTable3.getModel().setValueAt(new String(oldItmList[i][8]), i, 15);\n \t\n }\n }", "private int singleUpdateView(GenericEntity entity, ModelViewEntity modelViewEntity, List<ModelField> fieldsToSave, Connection connection) throws GenericEntityException {\n GenericDelegator delegator = entity.getDelegator();\n\n int retVal = 0;\n ModelEntity memberModelEntity = null;\n\n // Construct insert/update for each model entity\n Iterator<? extends Map.Entry<?, ModelViewEntity.ModelMemberEntity>> meIter = modelViewEntity.getMemberModelMemberEntities().entrySet().iterator();\n\n while (meIter != null && meIter.hasNext()) {\n Map.Entry<?, ModelViewEntity.ModelMemberEntity> meMapEntry = meIter.next();\n ModelViewEntity.ModelMemberEntity modelMemberEntity = meMapEntry.getValue();\n String meName = modelMemberEntity.getEntityName();\n String meAlias = modelMemberEntity.getEntityAlias();\n\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: Processing MemberEntity \" + meName + \" with Alias \" + meAlias);\n try {\n memberModelEntity = delegator.getModelReader().getModelEntity(meName);\n } catch (GenericEntityException e) {\n throw new GenericEntityException(\"Failed to get model entity for \" + meName, e);\n }\n\n Map<String, Object> findByMap = new Hashtable<String, Object>();\n\n // Now iterate the ModelViewLinks to construct the \"WHERE\" part for update/insert\n Iterator<ModelViewEntity.ModelViewLink> linkIter = modelViewEntity.getViewLinksIterator();\n\n while (linkIter != null && linkIter.hasNext()) {\n ModelViewEntity.ModelViewLink modelViewLink = linkIter.next();\n\n if (modelViewLink.getEntityAlias().equals(meAlias) || modelViewLink.getRelEntityAlias().equals(meAlias)) {\n\n Iterator<ModelKeyMap> kmIter = modelViewLink.getKeyMapsIterator();\n\n while (kmIter != null && kmIter.hasNext()) {\n ModelKeyMap keyMap = kmIter.next();\n\n String fieldName = \"\";\n\n if (modelViewLink.getEntityAlias().equals(meAlias)) {\n fieldName = keyMap.getFieldName();\n } else {\n fieldName = keyMap.getRelFieldName();\n }\n\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: --- Found field to set: \" + meAlias + \".\" + fieldName);\n Object value = null;\n\n if (modelViewEntity.isField(keyMap.getFieldName())) {\n value = entity.get(keyMap.getFieldName());\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: --- Found map value: \" + value.toString());\n } else if (modelViewEntity.isField(keyMap.getRelFieldName())) {\n value = entity.get(keyMap.getRelFieldName());\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: --- Found map value: \" + value.toString());\n } else {\n throw new GenericNotImplementedException(\"Update on view entities: no direct link found, unable to update\");\n }\n\n findByMap.put(fieldName, value);\n }\n }\n }\n\n // Look what there already is in the database\n List<GenericValue> meResult = null;\n\n try {\n meResult = delegator.findByAnd(meName, findByMap);\n } catch (GenericEntityException e) {\n throw new GenericEntityException(\"Error while retrieving partial results for entity member: \" + meName, e);\n }\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: --- Found \" + meResult.size() + \" results for entity member \" + meName);\n\n // Got results 0 -> INSERT, 1 -> UPDATE, >1 -> View is nor updatable\n GenericValue meGenericValue = null;\n\n if (meResult.size() == 0) {\n // Create new value to insert\n try {\n // Create new value to store\n meGenericValue = delegator.makeValue(meName, findByMap);\n } catch (Exception e) {\n throw new GenericEntityException(\"Could not create new value for member entity\" + meName + \" of view \" + modelViewEntity.getEntityName(), e);\n }\n } else if (meResult.size() == 1) {\n // Update existing value\n meGenericValue = meResult.iterator().next();\n } else {\n throw new GenericEntityException(\"Found more than one result for member entity \" + meName + \" in view \" + modelViewEntity.getEntityName() + \" - this is no updatable view\");\n }\n\n // Construct fieldsToSave list for this member entity\n List<ModelField> meFieldsToSave = new Vector<ModelField>();\n Iterator<ModelField> fieldIter = fieldsToSave.iterator();\n\n while (fieldIter != null && fieldIter.hasNext()) {\n ModelField modelField = fieldIter.next();\n\n if (memberModelEntity.isField(modelField.getName())) {\n ModelField meModelField = memberModelEntity.getField(modelField.getName());\n\n if (meModelField != null) {\n meGenericValue.set(meModelField.getName(), entity.get(modelField.getName()));\n meFieldsToSave.add(meModelField);\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: --- Added field to save: \" + meModelField.getName() + \" with value \" + meGenericValue.get(meModelField.getName()));\n } else {\n throw new GenericEntityException(\"Could not get field \" + modelField.getName() + \" from model entity \" + memberModelEntity.getEntityName());\n }\n }\n }\n\n /*\n * Finally, do the insert/update\n * TODO:\n * Do the real inserts/updates outside the memberEntity-loop,\n * only if all of the found member entities are updatable.\n * This avoids partial creation of member entities, which would mean data inconsistency:\n * If not all member entities can be updated, then none should be updated\n */\n if (meResult.size() == 0) {\n retVal += singleInsert(meGenericValue, memberModelEntity, memberModelEntity.getFieldsCopy(), connection);\n } else {\n if (meFieldsToSave.size() > 0) {\n retVal += singleUpdate(meGenericValue, memberModelEntity, meFieldsToSave, connection, null);\n } else {\n if (Debug.verboseOn())\n Debug.logVerbose(\"[singleUpdateView]: No update on member entity \" + memberModelEntity.getEntityName() + \" needed\");\n }\n }\n }\n\n return retVal;\n }", "@Override\r\n\tpublic void updateView(int parseInt, int parseInt2, String string) {\n\r\n\t}", "public void updateUserSelTable() {\n\t\n\t\tUserSelDietTable.getSelectionModel().removeListSelectionListener(lsl_userT);\n\t\tdtm = new DefaultTableModel();\n\t\tudI=new UserDietDAOImpl();\n\t\tdtm.addColumn(\"Id\");\t\t\n\t\tdtm.addColumn(\"Diet Id\");\n\t\tdtm.addColumn(\"Meal Type\");\n\t\tdtm.addColumn(\"Food Name\");\n\t\tdtm.addColumn(\"Calories (g)\");\n\t\tdtm.addColumn(\"Date\");\n\t\tdtm.addColumn(\"Author\");\n\t\tArrayList<UserDiet> dietList=new ArrayList<UserDiet>();\n\t\tif(currentUEmail.length>0)\n\t\t{\n\t\t\tString currDate=(String) comboBoxDate.getSelectedItem();\t\t\t\n\t\t\tSystem.out.println(currDate+\" item count \"+comboBoxDate.getItemCount());\n\t\tdietList =udI.getUserDietList(currentUEmail[0],currDate);\n\t\t}\n\t\tfor (UserDiet ud : dietList) {\t\n\t\t\tdtm.addRow(ud.getVector());\n\t\t}\n\t\tUserSelDietTable.setModel(dtm);\n\n\t\tUserSelDietTable.getSelectionModel().addListSelectionListener(lsl_userT);\n\n\n\t}", "@Override\n\tprotected void refreshView() {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\tprotected void updateItem(Object arg0, boolean arg1) {\n\t\t\t\t\t\tsuper.updateItem(arg0, arg1);\r\n\t\t\t\t\t\tif (arg1) {\r\n\t\t\t\t\t\t\tsetGraphic(null);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbtn.setOnAction(new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\tsetGraphic(btn);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void atualizarTabelaRespostas(){\n resposta = new Resposta(); \n\n try{\n if(txtIdPergunta.getText().isEmpty()){\n listaRespostas = respostaDao.ListaResposta(0);\n \n }else{\n listaRespostas = respostaDao.ListaResposta(Integer.parseInt(txtIdPergunta.getText()));\n \n }\n }catch (SQLException ex){\n Logger.getLogger(PerguntaView.class.getName()).log(Level.SEVERE, null, ex);\n } \nString dados [][] = new String[listaRespostas.size()][0];\nint i = 0;\nfor(Resposta resposta : listaRespostas){\n dados[i][0] = String.valueOf(resposta.getId());\n dados[i][1] = resposta.getDescricao();\n \n i++;\n}\nString tituloColuna[] ={\"ID Resposta\", \"Resposta\"};\nDefaultTableModel tabelaresposta = new DefaultTableModel();\ntabelaresposta.setDataVector(dados, tituloColuna);\n \n\n tabela_respostas.setModel(new DefaultTableModel(dados, tituloColuna){\n boolean[] canEdit = new boolean[]{\n false, false};\n \n public boolean isCellEditable(int rowIndex, int columnIndex){\n return canEdit[columnIndex];\n }\n \n\n });\ntabela_respostas.getColumnModel().getColumn(0).setPreferredWidth(100);\ntabela_respostas.getColumnModel().getColumn(1).setPreferredWidth(400);\n\nDefaultTableCellRenderer alinhamentoCentro = new DefaultTableCellRenderer();\nalinhamentoCentro.setHorizontalAlignment(SwingConstants.CENTER);\n\n\ntabela_respostas.getColumnModel().getColumn(0).setCellRenderer(alinhamentoCentro);\n\n\ntabela_respostas.setRowHeight(25);\ntabela_respostas.updateUI();\n }", "protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}", "public void setEditable(){\r\n treatmentTabletv.setEditable(true);\r\n //treatment id editable\r\n treatmentIDColumn.setEditable(true);\r\n treatmentIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n treatmentIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment ID\")\r\n .text(\"Treatment ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n //if Treatment ID is a duplicate, show error\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n //else update treatment ID\r\n else {\r\n String dataUpdate = \"update treatment set treatmentID = ? where treatmentName = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getTreatmentNameProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setIdProperty(t.getNewValue());\r\n }\r\n }\r\n\r\n });\r\n //treatmentName editable\r\n treatmentNameColumn.setEditable(true);\r\n treatmentNameColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n treatmentNameColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment Name\")\r\n .text(\"Treatment Name text field is empty. Text fields may not be left empty. Please insert a valid Treatment Name!\")\r\n .showError();\r\n }\r\n else {\r\n String dataUpdate = \"update treatment set treatmentName = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setTreatmentNameProperty(t.getNewValue());\r\n }\r\n }\r\n });\r\n //medicine id editable\r\n medicineIDColumn.setEditable(true);\r\n medicineIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n medicineIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Medicine ID\")\r\n .text(\"Treatment's Medicine ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment's Medicine ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update medicine id\r\n else {\r\n String dataUpdate = \"update treatment set medicineID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setMedicineIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n\r\n //department id editable\r\n departmentIDColumn.setEditable(true);\r\n departmentIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n departmentIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Department ID\")\r\n .text(\"Treatment's Department ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment Department ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment's ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update department ID\r\n else {\r\n String dataUpdate = \"update treatment set departmentID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setDepartmentIDProperty(t.getNewValue());\r\n }\r\n\r\n }\r\n });\r\n //disease id editable\r\n diseaseIDColumn.setEditable(true);\r\n diseaseIDColumn.setCellFactory(TextFieldTableCell.forTableColumn());\r\n diseaseIDColumn.setOnEditCommit(new EventHandler<TableColumn.CellEditEvent<treatment, String>>() {\r\n\r\n @Override\r\n public void handle(TableColumn.CellEditEvent<treatment, String> t){\r\n treatment tm = ((treatment) t.getTableView().getItems().get(t.getTablePosition().getRow()));\r\n //if text field is left empty, show error\r\n if (t.getNewValue().length() == 0){\r\n dataRefresh();\r\n Notifications.create().title(\"Error Updating Treatment's Disease ID\")\r\n .text(\"Treatment's Disease ID text field is empty. Text fields may not be left empty. Please insert a valid Treatment Disease ID!\")\r\n .showError();\r\n }\r\n /*\r\n else if (checkDuplicate(t.getNewValue())){\r\n dataRefresh();\r\n Notifications.create().title(\"Duplicate Error Updating Treatment ID\")\r\n .text(\"Treatment ID already exists. Please insert a valid Treatment ID that does not already exist!!\")\r\n .showError();\r\n }\r\n */\r\n //else update disease ID\r\n else {\r\n String dataUpdate = \"update treatment set diseaseID = ? where treatmentID = ? \";\r\n try {\r\n ps = mysql.prepareStatement(dataUpdate);\r\n ps.setString(1, t.getNewValue());\r\n ps.setString(2, tm.getIdProperty());\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe add an exception code here\r\n }\r\n tm.setDiseaseIDProperty(t.getNewValue());\r\n }\r\n }\r\n });\r\n }", "private void updateTable() {\n updateTableData();\n TableModelEvent e = new TableModelEvent(articleTableModel);\n\n articleTable.tableChanged(e);\n }", "private void refreshTableForEdit()\n {\n BadBudgetData bbd = ((BadBudgetApplication) this.getApplication()).getBadBudgetUserData();\n for (MoneyLoss loss : bbd.getLosses())\n {\n TextView valueView = valueViews.get(loss.expenseDescription());\n TextView frequencyView = frequencyViews.get(loss.expenseDescription());\n TextView nextLossView = nextLossViews.get(loss.expenseDescription());\n\n valueView.setText(BadBudgetApplication.roundedDoubleBB(loss.lossAmount()));\n frequencyView.setText(BadBudgetApplication.shortHandFreq(loss.lossFrequency()));\n nextLossView.setText(BadBudgetApplication.dateString(loss.nextLoss()));\n }\n\n double total = getLossTotal(BadBudgetApplication.DEFAULT_TOTAL_FREQUENCY);\n this.totalAmountView.setText(BadBudgetApplication.roundedDoubleBB(total));\n this.totalFreqView.setText(BadBudgetApplication.shortHandFreq(BadBudgetApplication.DEFAULT_TOTAL_FREQUENCY));\n\n //Should also reset the budget row to the default freq\n double budgetTotal = BudgetSetActivity.getBudgetItemTotal(this, BadBudgetApplication.DEFAULT_TOTAL_FREQUENCY);\n this.budgetAmountView.setText(BadBudgetApplication.roundedDoubleBB(budgetTotal));\n this.budgetFreqView.setText(BadBudgetApplication.shortHandFreq(BadBudgetApplication.DEFAULT_TOTAL_FREQUENCY));\n }", "public void updateTeamTables() {\n ArrayList<Player> tempTeam = new ArrayList<>();\n ArrayList<Player> tempTaxi = new ArrayList<>();\n teamTable.getItems().clear();\n for (Team tt : dataManager.getDraft().getFantasyTeams()) {\n if (tt.getTeamName().equals(selectTeam.getSelectionModel().getSelectedItem())) {\n tempTeam = tt.getTeamList();\n tempTaxi = tt.getTaxiList();\n }\n }\n teamTable = resetTeamTable(tempTeam);\n teamTaxiTable = resetTaxiTable(tempTaxi);\n \n teamTable.getSortOrder().add(posCol);\n posCol.setComparator(positionCompare);\n posCol.setSortType(SortType.ASCENDING);\n posCol.setSortable(true);\n posCol.setSortable(false);\n }", "@Override\n\tpublic void refreshView() {\n\n\t}", "public static void refresh_Admin_Table()\n {\n try\n {\n DefaultTableModel dfm=(DefaultTableModel) jTableOrderSend.getModel();\n ((DefaultTableModel)jTableOrderSend.getModel()).setNumRows(0);\n jTableOrderSend.setModel(dfm);\n\n Class.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\");\n Connection connect = DriverManager\n .getConnection(\n\n \"jdbc:odbc:Restaurent_dsn\");\n String query = \"select * from Order_Send\";\n\n if (connect!=null)\n {\n Statement stmt = connect.createStatement();\n ResultSet rs;\n rs= stmt.executeQuery(query);\n\n while(rs.next())\n {\n Vector v=new Vector();\n v.addElement(rs.getString(1));\n v.addElement(rs.getString(2));\n v.addElement(rs.getString(3));\n v.addElement(rs.getString(4));\n v.addElement(rs.getString(5));\n v.addElement(rs.getString(6));\n v.addElement(rs.getString(7));\n\n dfm.addRow(v);\n\n //System.out.println(jTable1.getSelectedRow());\n // System.out.println( JTable1.getModel().getValueAt(1, 1));\n }\n }\n }\n catch(Exception ex)\n {\n ex.printStackTrace();\n }\n\n try\n {\n DefaultTableModel dfm=(DefaultTableModel) jTable1.getModel();\n ((DefaultTableModel)jTable1.getModel()).setNumRows(0);\n jTable1.setModel(dfm);\n\n Class.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\");\n Connection connect = DriverManager\n .getConnection(\n\n \"jdbc:odbc:Restaurent_dsn\");\n String query = \"select * from order_final\";\n\n if (connect!=null)\n {\n Statement stmt = connect.createStatement();\n ResultSet rs;\n rs= stmt.executeQuery(query);\n\n while(rs.next())\n {\n Vector v=new Vector();\n v.addElement(rs.getString(1));\n v.addElement(rs.getString(2));\n v.addElement(rs.getString(3));\n v.addElement(rs.getString(4));\n v.addElement(rs.getString(5));\n v.addElement(rs.getString(6));\n v.addElement(rs.getString(7));\n\n dfm.addRow(v);\n\n //System.out.println(jTable1.getSelectedRow());\n // System.out.println( JTable1.getModel().getValueAt(1, 1));\n }\n }\n\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }", "public static void refreshTable() {\n tableView.setItems(FXCollections.observableArrayList(customerVehicleIssueTable.getAllOpenCustomerVehicleIssues()));\n tableView.refresh();\n }", "public void update_teacherIssuedDetailTable(){ \r\n teacher_columnID.setCellValueFactory(new PropertyValueFactory<>(\"teacherID\"));\r\n teacher_columnName.setCellValueFactory(new PropertyValueFactory<>(\"teacherName\"));\r\n teacher_columnDepart.setCellValueFactory(new PropertyValueFactory<>(\"teacherDepart\"));\r\n teacher_columnQuantity.setCellValueFactory(new PropertyValueFactory<>(\"bookQuantity\"));\r\n teacher_columnBookTitle.setCellValueFactory(new PropertyValueFactory<>(\"bookTitle\"));\r\n teacher_columnBookClass.setCellValueFactory(new PropertyValueFactory<>(\"bookClass\"));\r\n teacher_columnDateIssued.setCellValueFactory(new PropertyValueFactory<>(\"dateIssued\"));\r\n try { \r\n String sql = \"SELECT * FROM teacherissued\";\r\n pstmt = con.prepareStatement(sql);\r\n rs = pstmt.executeQuery();\r\n while(rs.next()){\r\n teacherBooksData.add( new TeacherBookIssue(\r\n rs.getString(\"teacher_ID\"),\r\n rs.getString(\"teacher_name\"),\r\n rs.getString(\"teacher_depart\"),\r\n rs.getString(\"quantity_issued\"), \r\n rs.getString(\"book_title\"),\r\n rs.getString(\"book_class\"),\r\n rs.getString(\"date_issued\") \r\n )); \r\n }\r\n //load items to the table\r\n teachserIssuedTable.setItems(teacherBooksData);\r\n pstmt.close();\r\n rs.close();\r\n } catch (SQLException e) {\r\n } finally {\r\n try {\r\n rs.close();\r\n pstmt.close();\r\n } catch (Exception e) {\r\n } \r\n }\r\n }", "public void updateDisplayBoardTable(){\n try{\n // Connect to db\n Class.forName(\"com.mysql.jdbc.Driver\");\n Connection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/nfqdb\", \"root\", \"\");\n \n Statement st = con.createStatement();\n // MySQL Query\n String sql = \"select * from visit\";\n ResultSet rs = st.executeQuery(sql);\n \n // Delete old data from the table\n DefaultTableModel dm = (DefaultTableModel) DisplayBoard.screenTable.getModel();\n int rowCount = dm.getRowCount();\n //Remove rows one by one from the end of the table\n for (int i = rowCount - 1; i >= 0; i--) {\n dm.removeRow(i);\n }\n \n // Add new data in table\n while(rs.next()){\n // data will be added until finish\n String id = \"000\" + String.valueOf(rs.getInt(\"id_visit\")); //conversion due to int value\n String specid = String.valueOf(rs.getInt(\"spec_id\")); //conversion due to int value\n String date = String.valueOf(rs.getTimestamp(\"datetime\"));\n String spcnam = rs.getString(\"spec_name\");\n String cusnam = rs.getString(\"customer_name\");\n String status = rs.getString(\"status\");\n \n // String array for store data into jtable\n \n String tbData[] = {id, specid, date, spcnam, cusnam, status};\n DefaultTableModel tblModel = (DefaultTableModel)DisplayBoard.screenTable.getModel();\n tblModel.addRow(tbData);\n }\n con.close();\n }\n catch(Exception e){\n JOptionPane.showMessageDialog(null, e);\n }\n }", "@Override\n public void updateView(Message msg)\n {\n \n }", "@Override\r\n\tpublic void setDocTitleStatus(Object view) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(this.ds.getValue()==0)\r\n\t\t{\r\n\t\t\thql=\"select isnull(max(docNum),0) from Ordr\";\r\n\t\t\tInteger Ndoce= (Integer) appMain.lt.clob(hql, 0, 1)[0][0]+1;\r\n\t\t\r\n\t\t\t((OrdrView)view).getTxt_docn().setText(Ndoce.toString());\t\r\n\t\t\t\r\n\t\t\t((JTextField)((OrdrView)view).getTxt_cus().getEditor().getEditorComponent()).setText(\"\");\r\n\t\t ((JTextField)((OrdrView)view).getTxt_cuslxr().getEditor().getEditorComponent()).setText(\"\");\r\n\t\t ((OrdrView)view).getTxt_date().setDate(new Date());\r\n\t\t ((OrdrView)view).getTxt_delidate().setDate(new Date());\r\n\t\t ((OrdrView)view).getTxt_duedate().setDate(new Date());\r\n\t\t ((OrdrView)view).getJta_memo().setText(\"\");\r\n\t\t ((OrdrView)view).getTxt_ter().setText(\"\");\r\n\t\t ((OrdrView)view).getTxt_cusn().setText(\"\");\r\n\t\t\t((OrdrView)view).getTxt_cus().setEditable(true);\r\n\t\t\t((OrdrView)view).getTxt_cuslxr().setEditable(true);\r\n\t\t\t((OrdrView)view).getTxt_date().setEditorable(true);\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEditorable(true);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEditorable(true);\r\n\t\t\t\r\n\t\t\t((OrdrView)view).getTxt_cus().setEnabled(true);\r\n\t\t\t((OrdrView)view).getTxt_cuslxr().setEnabled(true);\r\n\t\t\t((OrdrView)view).getTxt_date().setEnabled(true);\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEnabled(true);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEnabled(true);\r\n\t\t\t((OrdrView)view).getCom_sales().setEnabled(false);\r\n\t\t\t((OrdrView)view).getCom_sales().setEditable(false);\r\n\t\t\t((OrdrView)view).getCom_sales1().setEnabled(false);\t\r\n\t\t\t((OrdrView)view).getCom_sales1().setEditable(false);\r\n\t\t}\r\n\t\telse if(this.ds.getValue()==1)\r\n\t\t{\r\n\t\t\t((OrdrView)view).getTxt_cus().setEditable(false);\r\n\t\t\t((OrdrView)view).getTxt_cuslxr().setEditable(false);\r\n\t\t\t((OrdrView)view).getTxt_date().setEditorable(true);\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEditorable(true);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEditorable(true);\r\n\t\t\t((OrdrView)view).getCom_sales().setEnabled(false);\r\n\t\t\t((OrdrView)view).getCom_sales().setEditable(false);\r\n\t\t\t((OrdrView)view).getCom_sales1().setEnabled(false);\t\r\n\t\t\t((OrdrView)view).getCom_sales1().setEditable(false);\r\n\t\t\t((OrdrView)view).getTxt_cus().setEnabled(false);\r\n\t\t\t((OrdrView)view).getTxt_cuslxr().setEnabled(false);\r\n\t\t\t((OrdrView)view).getTxt_date().setEnabled(true);\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEnabled(true);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEnabled(true);\r\n\t\t\r\n\t\t}\r\n\t\telse if(this.ds.getValue()==2)\r\n\t\t{\r\n\t\t\t((OrdrView)view).getTxt_cus().setEditable(true);\r\n\t\t\t((OrdrView)view).getTxt_cuslxr().setEditable(true);\r\n\t\t\t((OrdrView)view).getTxt_date().setEditorable(true);\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEditorable(true);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEditorable(true);\r\n\t\t\t((OrdrView)view).getCom_sales().setEnabled(false);\r\n\t\t\t((OrdrView)view).getCom_sales().setEditable(false);\r\n\t\t\t((OrdrView)view).getCom_sales1().setEnabled(false);\t\r\n\t\t\t((OrdrView)view).getCom_sales1().setEditable(false);\r\n\t\t\t((OrdrView)view).getTxt_cus().setEnabled(true);\r\n\t\t\t((OrdrView)view).getTxt_cuslxr().setEnabled(true);\r\n\t\t\t((OrdrView)view).getTxt_date().setEnabled(true);\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEnabled(true);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEnabled(true);\r\n\t\t\r\n\t\t}\r\n\t\telse if(this.ds.getValue()==3)\r\n\t\t{\r\n\t\t\t((OrdrView)view).getTxt_cus().setEditable(false);\r\n\t\t\t((OrdrView)view).getTxt_cuslxr().setEditable(false);\r\n\t\t\t((OrdrView)view).getTxt_date().setEditorable(false);\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEditorable(false);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEditorable(false);\r\n\t\t\t((OrdrView)view).getCom_sales().setEnabled(false);\r\n\t\t\t((OrdrView)view).getCom_sales().setEditable(false);\r\n\t\t\t((OrdrView)view).getCom_sales1().setEnabled(false);\r\n\t\t\t((OrdrView)view).getCom_sales1().setEditable(false);\r\n\t\t\r\n\t\t\t((OrdrView)view).getTxt_cus().setEnabled(false);\r\n\t\t\t((OrdrView)view).getTxt_cuslxr().setEnabled(false);\r\n\t\t\t((OrdrView)view).getTxt_date().setEnabled(false);\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEnabled(false);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEnabled(false);\r\n\t\t}\r\n\t\telse if(this.ds.getValue()==4)\r\n\t\t{\r\n\t\t\t((OrdrView)view).getTxt_cus().setEditable(false);\r\n\t\t\t((OrdrView)view).getTxt_cuslxr().setEditable(false);\r\n\t\t\t((OrdrView)view).getTxt_date().setEditorable(false);\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEditorable(false);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEditorable(false);\r\n\t\t\t\r\n\t\t\t((OrdrView)view).getTxt_cus().setEnabled(false);\r\n\t\t\t((OrdrView)view).getTxt_cuslxr().setEnabled(false);\r\n\t\t\t((OrdrView)view).getTxt_date().setEnabled(false);\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEnabled(false);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEnabled(false);\r\n\t\t\t\r\n\t\t\t((OrdrView)view).getTxt_delidate().setEditorable(false);\r\n\t\t\t((OrdrView)view).getTxt_duedate().setEditorable(false);\r\n\t\t\t\r\n\t\t\t((OrdrView)view).getCom_sales().setEnabled(false);\r\n\t\t\t((OrdrView)view).getCom_sales().setEditable(false);\r\n\t\t\t((OrdrView)view).getCom_sales1().setEnabled(false);\r\n\t\t\t((OrdrView)view).getCom_sales1().setEditable(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\t\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void refreashTableView() {\n this.scoreboard.refresh();\n sortScoreboard();\n }", "public void setUpdateData() {\n if (updateTypestr.equalsIgnoreCase(\"Family\")) {\n addStudentScreenBinding.familyNameLinear.setVisibility(View.GONE);\n addStudentScreenBinding.addStudentTxt.setText(\"Update Family\");\n addStudentScreenBinding.classTypeGroup.setVisibility(View.GONE);\n addStudentScreenBinding.emailEdt.setVisibility(View.VISIBLE);\n addStudentScreenBinding.emailEdt.setText(eAstr);\n addStudentScreenBinding.emailEdt.setEnabled(false);\n addStudentScreenBinding.phoneNoEdt.setVisibility(View.VISIBLE);\n addStudentScreenBinding.phoneNoEdt.setText(pNstr);\n\n } else {\n addStudentScreenBinding.addStudentTxt.setText(\"Update Contact\");\n addStudentScreenBinding.firstNameEdt.setText(fNstr);\n addStudentScreenBinding.lastNameEdt.setText(lNstr);\n addStudentScreenBinding.familynameTxt.setText(familyNameStr);\n addStudentScreenBinding.dateOfBirthEdt.setText(dobstr);\n if (cnIdstr.equalsIgnoreCase(\"Child\")) {\n addStudentScreenBinding.childChk.setChecked(true);\n } else if (cnIdstr.equalsIgnoreCase(\"Spouse\")) {\n addStudentScreenBinding.spouseChk.setChecked(true);\n }\n addStudentScreenBinding.lastNameEdt.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\n if (i == EditorInfo.IME_ACTION_NEXT) {\n InputMethodManager imm = (InputMethodManager) textView.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(textView.getWindowToken(), 0);\n\n addStudentScreenBinding.dateOfBirthEdt.requestFocus();\n }\n return false;\n }\n });\n }\n addStudentScreenBinding.registerBtn.setText(\"Update\");\n addStudentScreenBinding.firstNameEdt.setText(fNstr);\n addStudentScreenBinding.lastNameEdt.setText(lNstr);\n String[] splitdate = dobstr.split(\"\\\\s+\");\n addStudentScreenBinding.dateOfBirthEdt.setText(splitdate[0]);\n\n if (gIdstr.equalsIgnoreCase(\"1\")) {\n addStudentScreenBinding.maleChk.setChecked(true);\n } else {\n addStudentScreenBinding.femaleChk.setChecked(true);\n }\n }", "public void refresh() {\n calcDataInTable();\n fireTableDataChanged();\n\n}", "public static void updateTable()\r\n\t{\r\n\t\tfor (int i = 0; i < DataHandler.getClassesSize(); i++)\r\n\t\t{\r\n\t\t\ttable.getModel().setValueAt(\r\n\t\t\t\t\tString.valueOf(LogicHandler.getRelativeOccurences(DataHandler.getList(), DataHandler.getSampleSize())[i]),\r\n\t\t\t\t\ti, 3);\r\n\t\t}\r\n\t}", "public void updateEventsView(ViewRender eventsRender) {\n\t\tDefaultTableModel eventsTableModel = eventsRender.getTableModel(eventsData);\n\t\teventsTable.setModel(eventsTableModel);\n\t\teventsRender.setTableFormate(eventsTable);\n\t}", "private void refreshTableForUpdate()\n {\n //Was updating the values but don't believe this is necessary, as like budget items\n //a loss amount will stay the same unless changed by the user (later on it might be the\n //case that it can increase/decrease by a percentage but not now...)\n /*\n BadBudgetData bbd = ((BadBudgetApplication) this.getApplication()).getBadBudgetUserData();\n for (MoneyLoss loss : bbd.getLosses())\n {\n TextView valueView = valueViews.get(loss.expenseDescription());\n valueView.setText(BadBudgetApplication.roundedDoubleBB(loss.lossAmount()));\n }\n */\n }", "public void updateTable() {\n ((AbstractTableModel) table.getModel()).fireTableDataChanged();\n }", "public void onClick(View v) {\n final ContentValues data = new ContentValues();\n final ContentValues data2 = new ContentValues();\n\n Intent intent_main_return = this.getIntent();\n final String table_name = intent_main_return.getExtras().getString(\"table\");\n final String table_date = intent_main_return.getExtras().getString(\"table_date\");\n bbb = intent_main_return.getExtras().getString(\"amount_column\");\n String s_r= null;\n String p=\"Present\";\n String a=\"Absent\";\n s=e1.getText().toString();\n\n assert table_date != null;\n s_r = table_date.replace(\"/\",\"_\");\n int date_col_index = Integer.parseInt(bbb);\n String where2 = \"id ='\"+s+\"' \" ;\n String where = \"name ='\"+s+\"' AND date ='\"+table_date+\"'\" ;\n\n int id=v.getId();\n\n switch(id) {\n case R.id.button22:\n\n if(e1 != null && s.length()>0){\n data.put(\"address\",p);\n dbx.update(table_name,data, where, null);\n\n for(int ll=1;ll<=date_col_index;ll++){\n String sss= s_r+\"__\"+ll;\n data2.put(\"'\"+sss+\"'\",p);\n db_net.update(table_name,data2, where2, null);\n }\n\n Toast.makeText(getBaseContext(),\"Roll no. \"+s+\" set to be Present\", Toast.LENGTH_LONG).show();\n }\n\n else\n {\n Toast.makeText(Edit_records.this,\"Please type roll no.\", Toast.LENGTH_SHORT).show();\n }\n\n break;\n\n case R.id.button23:\n\n if(e1 != null && s.length()>0){\n data.put(\"address\",a);\n dbx.update(table_name,data, where, null);\n\n for(int ll=1;ll<=date_col_index;ll++){\n String sss= s_r+\"__\"+ll;\n data2.put(\"'\"+sss+\"'\",a);\n db_net.update(table_name,data2, where2, null);\n }\n\n Toast.makeText(getBaseContext(),\"Roll no. \"+s+\" set to be Absent\", Toast.LENGTH_LONG).show();\n }\n\n else\n {\n Toast.makeText(Edit_records.this,\"Please type roll no.\", Toast.LENGTH_SHORT).show();\n }\n\n break;\n }\n\n }", "@Transactional(readOnly = true)\n\tpublic void refresh() {\n\t\tswitch (actualView) {\n\t\tcase LIST:\n\t\t\trefreshList();\n\t\t\tbreak;\n\t\tcase EDIT:\n\t\t\t// refreshForm(); // TODO\n\t\t\tbreak;\n\t\t}\n\t}", "public void OnSaveChanges (View View)\n {\n \t\t\n }", "@Override\n\tprotected void RefreshView() {\n\t\t\n\t}", "private void updateAll() {\n updateAction();\n updateQueryViews();\n }", "public void tableViewChanged(ObjectViewModelEvent pEvent);", "public void updateTable(int keycode) {\r\n\t\tlong size=objectCollection.size();\r\n\t\tlong objectsToLoad=getObjectsToLoad(keycode);\r\n\t\tif (objectsToLoad!=0) objectCollection.addAll(retrieveObjects(size, size+objectsToLoad));\r\n\t\trefreshViewer(keycode==SWT.DEFAULT);\r\n\t}", "@Override\n\tpublic void updatePanel() {\n\t\tstatTable.setStatTable(getModel().getRowCount(),\n\t\t\t\tgetModel().getRowNames(), getModel().getColumnCount(),\n\t\t\t\tgetModel().getColumnNames());\n\t\tgetModel().updatePanel();\n\t}", "private void refreshTable(){\n DefaultTableModel dm = (DefaultTableModel)table.getModel();\r\n dm.getDataVector().removeAllElements();\r\n System.out.println(\"Refresh Table\");\r\n\r\n //calling method addRows\r\n addRows();\r\n }", "public void updateResidencias() {\n\n\t\tArrayList<Residencias> list = (ArrayList<Residencias>) hibernateController.selectResidencias();\n\t\tArrayList<ResidenciaBean> listBean = new ArrayList<ResidenciaBean>();\n\n\t\tfor (Residencias r : list) {\n\t\t\tlistBean.add(new ResidenciaBean(r));\n\t\t}\n\n\t\tObservableList<ResidenciaBean> ObsUniversidades = FXCollections.observableArrayList(listBean);\n\t\ttable.setItems(ObsUniversidades);\t\t\n\n\t}", "@Override\n public void updateView(Intent intent)\n {\n \n }", "private void referenceAllViews() {\n\ttblMembership = (TableLayout) findViewById(R.id.tlMembership);\n\ttrHeading = (TableRow) findViewById(R.id.trHeading);\n\tllMembershipSetup = (LinearLayout) findViewById(R.id.llMembershipSetup);\n\tsvMembership = (ScrollView) findViewById(R.id.svMembership);\n\tif (TrenchFitnessApp.createCustomer) {\n\t svMembership.setVisibility(View.INVISIBLE);\n\t}\n\ttvCustomerHeader = (TextView) findViewById(R.id.tvCustomerHeader);\n\ttvMembershipHeader = (TextView) findViewById(R.id.tvMembershipHeader);\n\tivMemberPicture = (ImageView) findViewById(R.id.ivMemberPicture);\n\tivMemberPicture.setOnClickListener(this);\n\n\tetfName = (EditText) findViewById(R.id.etfName);\n\tetfName.addTextChangedListener(new NullVaidator(etfName));\n\tetlName = (EditText) findViewById(R.id.etlName);\n\tetlName.addTextChangedListener(new NullVaidator(etlName));\n\tetPhoneNumber = (EditText) findViewById(R.id.etPhoneNumber);\n\tetPhoneNumber.addTextChangedListener(new NullVaidator(etPhoneNumber));\n\tetEmergencyNumber = (EditText) findViewById(R.id.etEmergencyNumber);\n\tetEmergencyNumber.addTextChangedListener(new NullVaidator(\n\t\tetEmergencyNumber));\n\tetAddress = (EditText) findViewById(R.id.etAddress);\n\tetAddress.addTextChangedListener(new NullVaidator(etAddress));\n\tetPostCode = (EditText) findViewById(R.id.etPostCode);\n\tetPostCode.addTextChangedListener(new NullVaidator(etPostCode));\n\tetMedicalConditions = (EditText) findViewById(R.id.etMedicalConditions);\n\tetMedicalConditions.addTextChangedListener(new NullVaidator(\n\t\tetMedicalConditions));\n\tetArray = new EditText[] { etfName, etlName, etPhoneNumber,\n\t\tetEmergencyNumber, etAddress, etPostCode, etMedicalConditions };\n\n\tbSaveMember = (Button) findViewById(R.id.bSaveMember);\n\tbSaveMember.setOnClickListener(this);\n\tbCancelMember = (Button) findViewById(R.id.bCancelMember);\n\tbCancelMember.setOnClickListener(this);\n\tbSetDob = (Button) findViewById(R.id.bSetDob);\n\tbSetDob.setOnClickListener(this);\n\tbAddMembership = (Button) findViewById(R.id.bAddMembership);\n\tbAddMembership.setOnClickListener(this);\n\tbSetMembershipStartDate = (Button) findViewById(R.id.bSetStartDate);\n\tbSetMembershipStartDate.setOnClickListener(this);\n\tsetMembershipDuration = (Spinner) findViewById(R.id.sSetDuration);\n\n }", "public UpdateRecordListener(MainView view) {\n\t\t// TODO Auto-generated constructor stub\n\t\tthis.view = view;\n\t}", "public void updateModel()\n {\n if (beanModel instanceof EnterTillPayrollPayOutBeanModel)\n {\n EnterTillPayrollPayOutBeanModel model = (EnterTillPayrollPayOutBeanModel) beanModel;\n model.setAmount(amountField.getText());\n model.setSelectedReasonCode(reasonCodeField.getSelectedIndex());\n model.setPaidTo(paidToField.getText());\n model.setEmployeeID(employeeIDField.getText());\n model.setAddressLine(0, addressLine1Field.getText());\n model.setAddressLine(1, addressLine2Field.getText());\n model.setAddressLine(2, addressLine3Field.getText());\n model.setSelectedApprovalCodeIndex(approvalCodeField.getSelectedIndex());\n model.setComment(commentField.getText());\n }\n }", "@Override\n protected void commitView(ViewImpl view)\n {\n boolean oldValue = view.setAllowHiddenEntities( true );\n\n ObjectInstance oi = view.getObjectInstance();\n\n // TODO: implement optimistic locking check.\n\n EntityInstanceImpl lastEntityInstance = oi.getLastEntityInstance();\n\n commitExcludes( view, oi, lastEntityInstance );\n commitDeletes( view, oi, lastEntityInstance );\n commitIncludes( view, oi );\n commitUpdates( view, oi );\n\n view.setAllowHiddenEntities( oldValue );\n }", "public void updateModeloPagoLaboratorio() throws Exception{\n ArrayList<Pago> pgAbono = PagoDB.listarPagosDePlanTratamientoLab(tratamientotoSelected.getIdPlanTratamiento());\n \n \n int m = this.columnasNombrePagoLab.length;\n ArrayList<Object []> objetos = new ArrayList<Object []>();\n String aux = this.costoAbono.getText();\n int total = Integer.parseInt(aux.substring(1, aux.length()));\n for(Pago pagAbn : pgAbono){\n\n String tipoPago = pagAbn.getTipoPago();\n String detalle = pagAbn.getDetalle();\n String fecha = girarFecha(pagAbn.getFecha());\n String valor = pagAbn.getAbono()+\"\";\n int numBoleta = pagAbn.getNumBoleta();\n total = total + pagAbn.getAbono();\n Object [] fila = new Object [] {new Item (tipoPago,pagAbn.getIdPago()), detalle, fecha, \"$\"+valor, numBoleta+\"\"};\n objetos.add(fila);\n \n }\n costoAbono.setText(\"$\"+total);\n int id = tratamientotoSelected.getIdPlanTratamiento();\n PlanTratamiento planTrat = PlanTratamientoDB.getPlanTratamiento(id);\n planTrat.setTotalAbonos(total);\n //calculando el porcentaje de abance\n int cosTotal=tratamientotoSelected.getCostoTotal();\n int avance= total*100/cosTotal;\n planTrat.setAvance(avance);\n \n PlanTratamientoDB.editarPlanTratamiento(planTrat);\n //System.out.println(\"total 1:\"+total+\"id:\"+id);\n \n this.filasPagoLab = new Object [objetos.size()][m];\n int i = 0;\n for(Object [] o : objetos){\n this.filasPagoLab[i] = o;\n i++;\n }\n \n this.modeloPagoLab = new DefaultTableModel(this.filasPagoLab, this.columnasNombrePagoLab) {\n Class[] types = new Class [] {\n String.class, Item.class, String.class, String.class, String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n };\n \n this.tablaPagoLaboratorio.setModel(modeloPagoLab);\n \n this.iniciarTablaPlanesTratamientos();\n //habilitarBoton();\n }", "public void update() {\n int id = this.id;\n String name = person_name.getText().toString().trim();\n if (name.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Name\", Toast.LENGTH_LONG).show();\n return;\n }\n String no = contact_no.getText().toString().trim();\n if (no.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Contact No.\", Toast.LENGTH_LONG).show();\n return;\n }\n String nickname = nickName.getText().toString().trim();\n if (nickname.equals(\"\")) {\n nickname = \"N/A\";\n }\n String Custno = rootNo.getText().toString().trim();\n if (Custno.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Customer No.\", Toast.LENGTH_LONG).show();\n return;\n }\n float custNo = Float.parseFloat(Custno);\n\n String Fees = monthly_fees.getText().toString().trim();\n if (Fees.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the monthly fees\", Toast.LENGTH_LONG).show();\n return;\n }\n int fees = Integer.parseInt(Fees);\n\n String Balance = balance_.getText().toString().trim();\n if (Balance.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the balance\", Toast.LENGTH_LONG).show();\n return;\n }\n int balance = Integer.parseInt(Balance);\n String date = startdate.getText().toString().trim();\n if (startdate.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"Enter the Start Date\", Toast.LENGTH_LONG).show();\n return;\n }\n\n\n dbHendler.updateInfo(new PersonInfo(id, name, no, custNo, fees, balance, areaId, date, nickname));\n person_name.setText(\"\");\n contact_no.setText(\"\");\n rootNo.setText(\"\");\n monthly_fees.setText(\"\");\n balance_.setText(\"\");\n nickName.setText(\"\");\n //changeButton.setEnabled(false);\n finish();\n viewAll();\n\n }", "@Override\r\n\tpublic void increaseViewCnt(int no) {\n\t\tsqlSession.update(namespace + \".increaseViewCnt\", no);\r\n\t}", "private void updateTabela() {\n\n if (txBuscar.getText().isEmpty()) {\n ListaEmprestimosBEANs = new ControlerEmprestimos().listaEmprestimoss();\n } else {\n try {\n Integer buscar = Integer.parseInt(txBuscar.getText());\n ListaEmprestimosBEANs = new ArrayList<>();\n ListaEmprestimosBEANs.add(new ControlerEmprestimos().findEmprestimos(buscar));\n } catch (Exception e) {\n\n }\n }\n DefaultTableModel model = new DefaultTableModel(null, new String[]{\"ID\", \"Data de Saida\", \"Data Estimada do Retorno\", \"Data do Retorno\"});\n try {\n jTable1.setModel(model);\n String[] dados = new String[9];\n for (EmprestimosBEAN a : ListaEmprestimosBEANs) {\n dados[0] = String.valueOf(a.getId_emprestimo());\n dados[1] = a.getDtSaida().toString();\n dados[2] = a.getDtVolta().toString();\n dados[3] = a.getDtRetorno() == null ? \"\" : a.getDtRetorno().toString();\n model.addRow(dados);\n }\n } catch (Exception ex) {\n\n }\n\n }", "public AdminUpdate(Goods goods,DefaultTableModel dtm,JTable table) {\n\t\tthis.au=this;\n\t\tsetTitle(\"修改商品\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 450, 405);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\ttextField = new JTextField();\n\t\tJLabel label = new JLabel(\"商品名称:\");\n\t\ttextField.setText(goods.getGName());\n\t\tlabel.setBounds(23, 57, 66, 15);\n\t\tcontentPane.add(label);\n\t\t\n\t\ttextField.setBounds(99, 54, 269, 21);\n\t\tcontentPane.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\tJLabel label_1 = new JLabel(\"单价:\");\n\t\ttextField_1.setText(goods.getGPrice());\n\t\tlabel_1.setBounds(35, 100, 54, 15);\n\t\tcontentPane.add(label_1);\n\t\t\n\t\t\n\t\ttextField_1.setBounds(99, 97, 212, 21);\n\t\tcontentPane.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"单位:元\");\n\t\tlabel_2.setBounds(321, 100, 54, 15);\n\t\tcontentPane.add(label_2);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\tJLabel label_3 = new JLabel(\"数量:\");\n\t\ttextField_2.setText(goods.getGCount());\n\t\tlabel_3.setBounds(35, 143, 54, 15);\n\t\tcontentPane.add(label_3);\n\t\t\n\t\t\n\t\ttextField_2.setBounds(99, 140, 212, 21);\n\t\tcontentPane.add(textField_2);\n\t\ttextField_2.setColumns(10);\n\t\t\n\t\tJLabel label_4 = new JLabel(\"简介:\");\n\t\tlabel_4.setBounds(35, 188, 54, 15);\n\t\tcontentPane.add(label_4);\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setText(goods.getGIntroduce());\n\t\ttextArea.setBounds(99, 184, 269, 103);\n\t\tcontentPane.add(textArea);\n\t\t\n\t\tJButton button = new JButton(\"确定修改\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif( textField.getText().equals(\"\") ){\n\t\t\t\t\tJOptionPane joption = new JOptionPane();\n\t\t\t\t\tjoption.showMessageDialog(null, \"商品名称不能为空\");\n\t\t\t\t}else if( textField_1.getText().equals(\"\")){\n\t\t\t\t\tJOptionPane joption = new JOptionPane();\n\t\t\t\t\tjoption.showMessageDialog(null, \"单价不能为空\");\n\t\t\t\t}else if( textField_2.getText().equals(\"\") ){\n\t\t\t\t\tJOptionPane joption = new JOptionPane();\n\t\t\t\t\tjoption.showMessageDialog(null, \"数量不能为空\");\n\t\t\t\t}else{\n\t\t\t\t\tList list1=new ArrayList();\n\t\t\t\t\tGoods goods1=new Goods(goods.getGId(),textField.getText(),textField_1.getText(),textField_2.getText(),textArea.getText());\n\t\t\t\t\t//应先删除原来文件,再把新文件进行序列化(写入操作)\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"修改商品信息成功!\");\n\t\t\t\t\tFile file = new File(\"d:/store/goods/\" +goods.getGName()+\".txt\");\n\t\t\t\t\tfile.delete();\n\t\t\t\t\t//清除表格数据\n\t\t\t\t\tdtm.getDataVector().clear(); //清除表格数据\n\t\t\t\t\tdtm.fireTableDataChanged();//通知模型更新\n\t\t\t\t\ttable.updateUI();\n\t\t\t\t\tObjectStream.write(\"/goods/\"+textField.getText()+\".txt\", goods1);\n\t\t\t\t\t//遍历并显示删除更新后的内容\n\t\t\t\t\tFile f=new File(\"d:/store/goods/\");\n\t\t\t\t\tString[] s=f.list();\n\t\t\t\t\tfor(int i=0;i<s.length;i++){\n\t\t\t\t\t\tGoods goods=ObjectStream.read(Goods.class,\"/goods/\"+s[i] );\n\t\t\t\t\t\tdtm.addRow(new String[]{Integer.toString(goods.getGId()),goods.getGName(),goods.getGPrice(),goods.getGCount()});\n\t\t\t\t\t}\n\t\t\t\t\tlist1.add(new String(new String(getGoodsPath2(textField.getText()))));\n\t\t\t\t\t/*for(Iterator i=list1.iterator();i.hasNext();){\n\t\t\t\t\t\tString s1=(String)i.next();\n\t\t\t\t\t\tGoods goods2=ObjectStream.read(Goods.class, s1);\n\t\t\t\t\t\tdtm.addRow(new String[]{Integer.toString(goods2.getGId()),goods2.getGName(),goods2.getGPrice(),goods2.getGCount()});\n\t\t\t\t\t\tAdminStore as = new AdminStore(au);\n\t\t\t\t\t\tas.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n\t\t\t\t\t\tas.setVisible(false);\n\t\t\t\t\t}*/\n\t\t\t\t\tAdminStore as = new AdminStore(au);\n\t\t\t\t\tas.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n\t\t\t\t\tas.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbutton.setBounds(275, 310, 93, 23);\n\t\tcontentPane.add(button);\n\t\t\n\t\tJLabel label_5 = new JLabel(\">=0\");\n\t\tlabel_5.setBounds(321, 143, 43, 15);\n\t\tcontentPane.add(label_5);\n\t\t\n\t\tthis.addWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t((AdminUpdate)e.getSource()).setVisible(false);\n\t\t\t}\n\t\t});\n\t}", "private void updateTable(){\n try{\n String query = \" select id,name as Name,address as Address,description as Description, capacity as Capacity from public_spaces where category = 'accomodation' \";\n PreparedStatement pst = connect.prepareStatement(query);\n ResultSet rs = pst.executeQuery();\n users_table.setModel(DbUtils.resultSetToTableModel(rs));\n }\n catch(Exception e){\n System.out.println(e);\n }\n }", "public void updateTable(){\n this.tableModel = (DefaultTableModel) sitesTable.getModel();\n while( this.tableModel.getRowCount() != 0 ){\n this.tableModel.removeRow(0);\n }\n \n if( Console.isAdmin ){\n for( int i = 0 ; i < this.websites.size() ; i++ ){\n Website website = this.websites.get(i);\n this.tableModel.addRow(new Object[]{ website.name , website.IP , website.isRouted() , website.Description });\n }\n }else{\n for( int i = 0 ; i < this.websites.size() ; i++ ){\n Website website = this.websites.get(i);\n this.tableModel.addRow(new Object[]{ website.name , website.IP , website.wasRerouted , website.Description });\n }\n }\n\n sitesTable.setModel(this.tableModel);\n }", "@Override\n\tpublic int update(Object model) {\n\t\treturn 0;\n\t}", "public void tableChanged(TableModelEvent e) {\n\t\t\t\tint row = e.getFirstRow();\n\t\t\t\tint column = e.getColumn();\n\t\t\t\tif(column == -1){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString value_in_table = String.valueOf(newModel.getValueAt(row, column));\n\t\t\t\t//System.out.println(value_in_table);\n\t\t\t\tif(column == 1){\n\t\t\t\t\tcolumns_view.get(row).x = Integer.valueOf(value_in_table);\n\t\t\t\t}\n\t\t\t\telse if(column ==2){\n\t\t\t\t\tcolumns_view.get(row).y = Integer.valueOf(value_in_table);\n\t\t\t\t}\n\t\t\t\telse if(column ==3){\n\t\t\t\t\tcolumns_view.get(row).width = Integer.valueOf(value_in_table);\n\t\t\t\t}\n\t\t\t\telse if(column ==4){\n\t\t\t\t\tcolumns_view.get(row).height = Integer.valueOf(value_in_table);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"out of column range\");\n\t\t\t\t}\n\t\t\t\t//System.out.println(columns_view.size());\n\t\t\t\t(model.views).get(1).updateView();\n\t\t\t}", "public void emitChangeView() {\n \n int view = getCurrentViewNumber();\n Object lpid = getLocalServerID();\n \n JDSUtility.debug(\"[emitChangeView()] s\" + lpid + \", at time \" + getClockValue() + \", is going to emit a change view message for (v + 1 = \" + (view + 1) + \")\");\n\n /* the replica makes sure that no timer is currently working. If the view change was trigged by a suspect of failure of the primary then probably it's \n been already true. */\n revokeSendBatch();\n revokeViewChange();\n\n /* an exponetial timeout has to be considered to guarantee liveness when the end-to-end delay is too long (it's prevent uncessary view-changes)*/\n PBFTTimeoutDetector ttask = (PBFTTimeoutDetector) getViewTimer().getTask();\n long timeout = (Long) ttask.get(\"TIMEOUT\");\n ttask.put(\"TIMEOUT\", 2 * timeout);\n\n /* the replica moves to the next view. After that, this replica isn't accepting any message from view v < v+1. */\n setCurrentViewNumber(view +1);\n \n /* clean-up the sets P (prepare set) and Q (pre-prepare set)*/\n preprepareset.clear();\n prepareset.clear();\n\n long lcwm = getLCWM();\n long hcwm = getHCWM();\n\n /* compute Q (pre-prepare set) and P (prepare set) */\n for(long seqn = lcwm + 1; seqn <=hcwm; seqn++){\n /*If I have a prepare then its digests will be added to pre-prepared and prepared sets */\n PBFTPrepare pr = getPrepareInfo().get(lpid, seqn);\n if(pr != null){\n PBFTPrePrepare pp = new PBFTPrePrepare(view, pr.getSequenceNumber(), null);\n pp.getDigests().addAll(pr.getDigests());\n preprepareset.add(pp);\n \n prepareset.add(new PBFTPrepare(pp, null));\n\n for(String digest: pp.getDigests()){\n getRequestInfo().assign(digest, RequestState.WAITING);\n getRequestInfo().assign(digest, (Long)null);\n }\n\n continue;\n }\n\n /*If I have a pre-prepare then its digests will be added to pre-prepared set*/\n PBFTPrePrepare ppr = getPrePrepareInfo().get(seqn);\n if(ppr != null){\n PBFTPrePrepare pp = new PBFTPrePrepare(view, ppr.getSequenceNumber(), null);\n pp.getDigests().addAll(ppr.getDigests());\n preprepareset.add(pp);\n \n for(String digest: pp.getDigests()){\n getRequestInfo().assign(digest, RequestState.WAITING);\n getRequestInfo().assign(digest, (Long)null);\n }\n } \n }\n\n \n try{\n doRollback();\n }catch(Exception e){\n e.printStackTrace();\n }\n\n /* update the controls for sequence number execution */\n getStateLog().setNextPrePrepareSEQ(lcwm + 1);\n getStateLog().setNextExecuteSEQ (lcwm + 1);\n\n PBFTChangeView cv = createChangeViewMessage();\n \n try {\n /* gets the root of the checkpoint partition tree */\n PartEntry centry = rStateManager.getPart(0, 0);\n\n /* adds the pair (last stable sequence number and state digest) to compose checkpoint set C */\n if(centry != null){\n cv.addCheckpoint(centry.getPartCheckpoint(), centry.getDigest());\n }else{\n cv.addCheckpoint(lcwm, \"\");\n }\n } catch (Exception ex) {\n Logger.getLogger(PBFTServer.class.getName()).log(Level.SEVERE, null, ex);\n cv.getCheckpointSet().clear();\n cv.addCheckpoint(lcwm, \"\");\n }\n\n /* add the pre-prepare set to current change-view message*/\n cv.getPrePrepareSet().clear();\n cv.getPrePrepareSet().addAll(preprepareset);\n\n /* add the prepare set to current change-view message*/\n cv.getPrepareSet().clear();\n cv.getPrepareSet().addAll(prepareset);\n\n /*emit the change view message to group of replicas */\n emit(cv, getLocalGroup().minus(getLocalProcess()));\n\n getChangeViewInfo().setMinimumViewNumber(view);\n getChangeViewInfo().put(cv);\n\n if(isPrimary()){\n getNewViewConstructor().addChangeView(cv);\n }else{\n finalizeNewViewConstructor();\n }\n\n getChangeViewInfo().gc(view);\n getChangeViewACKInfo().gc(view);\n getNewViewConstructor().gc(view);\n getNewViewInfo().gc(view);\n getPrePrepareInfo().gc(view);\n getPrepareInfo().gc(view);\n getPrePreparebackupInfo().gc(view);\n getCommitInfo().gc(view);\n\n\n emitChangeViewACK();\n\n\n uncertanty = true; \n }", "public void update()\n\t{\n\t\t//update the view's list of movies...\n\t\tthis.getRemoveButton().setEnabled((this.database.getNumberOfMovies()>0));\n\t\tthis.movieList.setListData(this.database.toList());\n\t}", "@FXML\n void edit_button1(ActionEvent event) {\n\n String visitType = returnVisitType();\n String attended = returnAttended();\n String attendType = returnAttendType();\n\n Queries q = table_view_in_edit.getSelectionModel().getSelectedItem();\n\n // check for required fields\n if (reserveDate_picker_In_edit.getValue() == null || reserveTime_picker_In_edit.getValue() == null\n || attendDate_picker_In_edit.getValue() == null || attendTime_picker_In_edit.getValue() == null || visitType.isEmpty()){\n\n error1.setVisible(true);\n\n }else {\n\n // confirmation message\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"تأكيد\");\n alert.setHeaderText(\"تاكيد التعديل\");\n\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK) {\n\n try {\n\n //TODO needs to be handled in the server\n messageToServer = \"edit1ES;\" + reserveDate_picker_In_edit.getValue().toString() + \",\"\n + reserveTime_picker_In_edit.getValue().toString() + \",\"\n + attendDate_picker_In_edit.getValue().toString() + \",\"\n + attendTime_picker_In_edit.getValue().toString() + \",\"\n + visitType + \",\"\n + attended + \",\"\n + attendType + \",\"\n + q.getId() + \"\";\n n.output(messageToServer);\n\n // original code\n// ps = con.prepareStatement(\"update visitInfo set reserve_date = ?,\" +\n// \" reserve_time= ?,\" +\n// \" attend_date = ?,\" +\n// \" attend_time = ?,\" +\n// \" visit_type = ?,\" +\n// \" attend = ?,\" +\n// \" attend_type = ?\" +\n// \" where id = ? \");\n// ps.setString(1, reserveDate_picker_In_edit.getValue().toString());\n// ps.setString(2, reserveTime_picker_In_edit.getValue().toString());\n// ps.setString(3, attendDate_picker_In_edit.getValue().toString());\n// ps.setString(4, attendTime_picker_In_edit.getValue().toString());\n// ps.setString(5, visitType);\n// ps.setString(6, attended);\n// ps.setString(7, attendType);\n// ps.setString(8, q.getId());\n//\n// ps.executeUpdate();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else {\n alert.close();\n }\n\n error1.setVisible(false);\n clearfields1();\n\n }\n\n }", "public void updateTable() throws SQLException {\n //query for retrieving all records\n String query1=\"Select * from savingstable\";\n\n //fetching results\n PreparedStatement query=connObj.prepareStatement(query1, ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n\n ResultSet rs=query.executeQuery();\n\n DefaultTableModel df=(DefaultTableModel) recordTable.getModel();\n\n rs.last();\n\n int q=rs.getRow();\n\n rs.beforeFirst();\n\n String[][] array=new String[0][];\n if(q>0){\n array=new String[q][5];\n }\n\n int i=0;\n\n //getting the values from database\n while(rs.next()){\n array[i][0]=rs.getString(\"custno\");\n array[i][1]=rs.getString(\"custname\");\n array[i][2]=rs.getString(\"cdep\");\n array[i][3]=rs.getString(\"nyears\");\n array[i][4]=rs.getString(\"savtype\");\n ++i;\n\n }\n\n //updating the jtable\n String[] cols={\"Number\",\"Name\",\"Deposit\",\"Years\",\"Type of Savings\"};\n DefaultTableModel model = new DefaultTableModel(array,cols);\n recordTable.setModel(model);\n\n recordTable.setDefaultEditor(Object.class, null);\n\n\n }", "@Override\n\tpublic void updateIntoSupplierView(SupplierProduct supplierview) {\n\t String sql=\"UPDATE supplier_product SET product_product_id=?, quantity=?, cost=?, buy_date=? WHERE supplier_supplier_id=?\";\n\t getJdbcTemplate().update(sql, new Object[] {supplierview.getProductId(),supplierview.getQuantity(),supplierview.getCost(),supplierview.getBuyDate(),supplierview.getSupplierId()});\n\t}", "public void refreshTable() {\r\n\t\t// THIS is the key method to ensure JTable view is synchronized\r\n\t\tjtable.revalidate();\r\n\t\tjtable.repaint();\r\n\t\tthis.revalidate();\r\n\t\tthis.repaint();\r\n\t}", "@Override\r\n\tpublic void updateDetailsTable(Kit kitToUpdate) {\n\t\tTableItem tblItems[]= tblCinCoutDetails.getItems();\r\n\t\tfor(TableItem tblItem:tblItems){\r\n\t\t\tif(tblItem.getText(0).equalsIgnoreCase(kitToUpdate.getKitSerialNum())){\r\n\t\t\t\t//tblItem.setText(0, kitToUpdate.getKitSerialNum());\r\n\t\t\t\ttblItem.setText(1, kitToUpdate.getKitCheckInDate().toString());\r\n\t\t\t\t//tblItem.setText(2, kitToUpdate.getKitCheckOutDate().toString());\r\n\t\t\t\t//tblItem.setText(3, kitToUpdate.getKitCourse().getCourseName());\r\n\t\t\t\t//tblItem.setText(4, kitToUpdate.getKitPenalty()+\"\");\r\n\t\t\t\t//tblItem.setText(5, kitToUpdate.getKitType());\r\n\t\t\t\t//tblItem.setText(6, kitToUpdate.getStudentEmailKit());\r\n\t\t\t\t//tblItem.setText(7, kitToUpdate.getStudentNameForKit());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void increaseViewcnt(int r_idx) {\n\r\n\t}", "public boolean update() {\n if(0==modified) return false;\n \n final int res = modified;\n if( (res&DIRTY_MODELVIEW)!=0 ) {\n setMviMvit();\n }\n modified=0;\n return res!=0;\n }", "private void updateView() {\n model.inlezenHighscore();\n for (int i = 0; i < 10; i++) {\n view.getNaamLabels(i).setText(model.getNaam(i));\n view.getScoreLabels(i).setText(model.getScores(i));\n }\n }", "private void initView(){\n\n btnBack = (ImageView)findViewById(R.id.btnBack);\n btnQuit = (ImageView)findViewById(R.id.btnQuit);\n btnQuit.setVisibility(View.GONE);\n\n title = (TextView)findViewById(R.id.title);\n title.setText(R.string.assetTestList);\n\n //初始化表格\n //资产编码,资产名称,资产状态,使用集团,使用公司,使用部门,使用人,保管员,地址,检验单位、检验人、检验费用、检验日期、下一次检验日期、备注信息\n initListViewHead(R.id.tv_list_table_test_tvhead1, false, rowName[0]);\n initListViewHead(R.id.tv_list_table_test_tvhead2, false, rowName[1]);\n initListViewHead(R.id.tv_list_table_test_tvhead3, false, rowName[2]);\n initListViewHead(R.id.tv_list_table_test_tvhead4, false, rowName[3]);\n initListViewHead(R.id.tv_list_table_test_tvhead5, false, rowName[4]);\n initListViewHead(R.id.tv_list_table_test_tvhead6, false, rowName[5]);\n initListViewHead(R.id.tv_list_table_test_tvhead7, false, rowName[6]);\n initListViewHead(R.id.tv_list_table_test_tvhead8, false, rowName[7]);\n initListViewHead(R.id.tv_list_table_test_tvhead9, false, rowName[8]);\n initListViewHead(R.id.tv_list_table_test_tvhead10, false, rowName[9]);\n initListViewHead(R.id.tv_list_table_test_tvhead11, false, rowName[10]);\n initListViewHead(R.id.tv_list_table_test_tvhead12, false, rowName[11]);\n initListViewHead(R.id.tv_list_table_test_tvhead13, false, rowName[12]);\n initListViewHead(R.id.tv_list_table_test_tvhead14, false, rowName[13]);\n initListViewHead(R.id.tv_list_table_test_tvhead15, false, rowName[14]);\n\n lvx = (ListViewEx) this.findViewById(R.id.lv_table_lvTestList);\n\n lvx.inital(R.layout.list_table_test,row,\n new int[] {\n R.id.tv_list_table_test_tvhead1,\n R.id.tv_list_table_test_tvhead2,\n R.id.tv_list_table_test_tvhead3,\n R.id.tv_list_table_test_tvhead4,\n R.id.tv_list_table_test_tvhead5,\n R.id.tv_list_table_test_tvhead6,\n R.id.tv_list_table_test_tvhead7,\n R.id.tv_list_table_test_tvhead8,\n R.id.tv_list_table_test_tvhead9,\n R.id.tv_list_table_test_tvhead10,\n R.id.tv_list_table_test_tvhead11,\n R.id.tv_list_table_test_tvhead12,\n R.id.tv_list_table_test_tvhead13,\n R.id.tv_list_table_test_tvhead14\n ,R.id.tv_list_table_test_tvhead15\n });\n }", "public void updateParts()\n {\n ObservableList<Part> inventoryParts = this.inventory.getAllParts();\n\n // Configure part table and bind with inventory parts\n partIDColumn.setCellValueFactory(new PropertyValueFactory<Part,String>(\"id\"));\n partNameColumn.setCellValueFactory(new PropertyValueFactory<Part, String>(\"name\"));\n partInventoryColumn.setCellValueFactory(new PropertyValueFactory<Part, String>(\"stock\"));\n partCostColumn.setCellValueFactory(new PropertyValueFactory<Part, String>(\"price\"));\n\n partTable.setItems(inventory.getAllParts());\n // Unselect parts in table after part is deleted\n partTable.getSelectionModel().clearSelection();\n partTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n }", "public void refreshJTable()\n {\n \n \n }" ]
[ "0.6658031", "0.6614274", "0.6433378", "0.633824", "0.62771916", "0.62497985", "0.61904037", "0.61184466", "0.6079763", "0.60742193", "0.6073199", "0.6073199", "0.606645", "0.6053439", "0.6036247", "0.60216784", "0.60018575", "0.599385", "0.59915274", "0.59874254", "0.59829783", "0.5977057", "0.5973797", "0.5920978", "0.5900398", "0.5893356", "0.5888901", "0.5855649", "0.5853737", "0.58308375", "0.5809056", "0.5797276", "0.57934505", "0.57912827", "0.5784938", "0.57588834", "0.5719887", "0.5717132", "0.571468", "0.5710433", "0.5705089", "0.5675685", "0.5674756", "0.566781", "0.5636817", "0.5633627", "0.5622857", "0.5621947", "0.56203157", "0.5618451", "0.56158423", "0.5598269", "0.5590998", "0.558516", "0.5577897", "0.55707014", "0.55699676", "0.55666125", "0.55592895", "0.5558609", "0.5555196", "0.5553172", "0.5545022", "0.55382234", "0.5534902", "0.55324847", "0.5531126", "0.5523385", "0.5523154", "0.55213785", "0.55176127", "0.55120546", "0.55032027", "0.55020684", "0.5496539", "0.5495275", "0.54863375", "0.5479234", "0.54780823", "0.5474606", "0.54679435", "0.5461822", "0.5456903", "0.544536", "0.5438383", "0.54278374", "0.54116", "0.5397535", "0.539218", "0.53905624", "0.53841484", "0.53729784", "0.53655", "0.5363092", "0.53305626", "0.53276986", "0.53256714", "0.5319224", "0.5314543", "0.53109115" ]
0.7161641
0
TODO Autogenerated method stub Create the scroll pane and add the table to it.
public void addview(View2 view2) { scrollPane = new JScrollPane(view2); scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); //Add the scroll pane to this panel. this.add(scrollPane); //this.add(view2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JScrollPane getScrollPane() {\n\t\tif (scrollPane == null) {\n\t\t\tscrollPane = new JScrollPane();\n\t\t\tscrollPane.setViewportView(getTable());\n\t\t}\n\t\treturn scrollPane;\n\t}", "public JScrollPane createTable() {\n dataModel = new AbstractTableModel() {\n public int getColumnCount() { return names.length; }\n public int getRowCount() { return data.length;}\n public Object getValueAt(int row, int col) {return data[row][col];}\n public String getColumnName(int column) {return names[column];}\n public Class getColumnClass(int c) {return String.class;}\n //public boolean isCellEditable(int row, int col) {return true;}\n public void setValueAt(Object aValue, int row, int column) { data[row][column] = aValue; }\n };\n\n // Create the table\n tableView = new JTable(dataModel);\n\n // Show colors by rendering them in their own color.\n DefaultTableCellRenderer colorRenderer = new DefaultTableCellRenderer() {\n public void setValue(Object value) {\n\tif (value instanceof Color) {\n\t Color c = (Color)value;\n\t setForeground(c);\n\t setText(c.getRed() + \", \" + c.getGreen() + \", \" + c.getBlue());\n\t}\n }\n\n };\n tableView.setRowHeight(20);\n\n scrollpane = new JScrollPane(tableView);\n tableView.setPreferredScrollableViewportSize(new Dimension(200, 70));\n return scrollpane;\n }", "public void addTableGui() {\n\t\tDefaultTableModel mTableModel = new DefaultTableModel();\r\n\t\tmTable = new JTable(mTableModel);\r\n\r\n\t\tmTableModel.addColumn(\"MSSV\");\r\n\t\tmTableModel.addColumn(\"HoTen\");\r\n\t\tmTableModel.addColumn(\"GioiTinh\");\r\n\t\tmTableModel.addColumn(\"NTNS\");\r\n\t\tJScrollPane mJScrollPane = new JScrollPane(mTable);\r\n\t\tmJScrollPane.setPreferredSize(new Dimension(760, 310));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.ipady = 40; //make this component tall\r\n\t\tc.weightx = 0.0;\r\n\t\tc.gridwidth = 3;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 1;\r\n\t\tpanel.add(mJScrollPane,c);\r\n\t}", "private JScrollPane getJScrollPaneTables() {\r\n\t\tif (jScrollPaneTables == null) {\r\n\t\t\tjScrollPaneTables = new JScrollPane();\r\n\t\t\tjScrollPaneTables.setBounds(new Rectangle(90, 115, 239, 140));\r\n\t\t\tjScrollPaneTables.setViewportView(getJListTables());\r\n\t\t}\r\n\t\treturn jScrollPaneTables;\r\n\t}", "private JScrollPane getJPanel_table_spect() {\n\t\tif (jScrollPane_table_spect == null) {\n\t\t\tjScrollPane_table_spect = new JScrollPane();\n\t\t\tjScrollPane_table_spect.setName(\"jScrollPane_table_spect\");\n\t\t\tjScrollPane_table_spect.setViewportView(getJTable_spect());\n\t\t\tjScrollPane_table_spect.setFont(new Font(\"Dialog\", Font.PLAIN, 14));\n\t\t}\n\t\treturn jScrollPane_table_spect;\n\t}", "private JScrollPane getJPanel_table_room() {\n\t\tif (jScrollPane_table_room == null) {\n\t\t\tjScrollPane_table_room = new JScrollPane();\n\t\t\tjScrollPane_table_room.setName(\"jScrollPane_table_room\");\n\t\t\tjScrollPane_table_room.setViewportView(getJTable_room());\n\t\t\tjScrollPane_table_room.setFont(new Font(\"Dialog\", Font.PLAIN, 14));\n\n\t\t}\n\t\treturn jScrollPane_table_room;\n\t}", "public MostrarDatosJTable() {\n\t\t// Configuracion del JFrame\n\t\tthis.setLayout(null);\n\t\tthis.setSize(340, 260);\n\t\tthis.setTitle(\" Ejemplo de JScrollPane \");\n\t\tconfigurarJScrollPane();\n\t}", "@Override\n\tpublic void init() {\n\t\ttable = new JTable(dm);\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\n\t\tadd(scrollPane);\n\t}", "private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public JScrollPane getTable() throws SQLException {\r\n\t\tJScrollPane pane = prepareTable();\r\n\t\tpane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n\t\tpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\r\n\t\treturn pane;\r\n\t}", "protected PagingScrollTable<PropertiesDTO> createScrollTable() {\n\t\tcachedTableModel = createCachedTableModel(tableModel);\r\n\r\n\t\t// create the table definition\r\n\t\tTableDefinition<PropertiesDTO> tableDef = createTableDefinition();\r\n\r\n\t\t// create the paging scroll table\r\n\t\tPagingScrollTable<PropertiesDTO> pagingScrollTable = new PagingScrollTable<PropertiesDTO>(cachedTableModel,\r\n\t\t\t\ttableDef);\r\n\t\tpagingScrollTable.setPageSize(getPageSize());\r\n\t\tpagingScrollTable.setEmptyTableWidget(new HTML(PropertyOptions.NO_SEARCH_RESULTS_STR));\r\n\t\tpagingScrollTable.getDataTable().setSelectionPolicy(SelectionPolicy.ONE_ROW);\r\n\r\n\t\t// setup the bulk renderer\r\n\t\tFixedWidthGridBulkRenderer<PropertiesDTO> bulkRenderer = new FixedWidthGridBulkRenderer<PropertiesDTO>(\r\n\t\t\t\tpagingScrollTable.getDataTable(), pagingScrollTable);\r\n\t\tpagingScrollTable.setBulkRenderer(bulkRenderer);\r\n\r\n\t\t// setup the formatting\r\n\t\tpagingScrollTable.setCellPadding(3);\r\n\t\tpagingScrollTable.setCellSpacing(0);\r\n\t\tpagingScrollTable.setResizePolicy(ScrollTable.ResizePolicy.FILL_WIDTH);\r\n\r\n\t\tpagingScrollTable.setSortPolicy(SortPolicy.SINGLE_CELL);\r\n\t\tpagingScrollTable.setScrollPolicy(ScrollPolicy.DISABLED);\r\n\t\treturn pagingScrollTable;\r\n\t}", "private void initComponents() {\n scrollPane1 = new JScrollPane();\n table1 = new JTable();\n\n //======== this ========\n\n\n //======== scrollPane1 ========\n {\n\n //---- table1 ----\n table1.setModel(new DefaultTableModel(\n t_date,\n new String[]{\n \"\\u7f16\\u53f7\", \"\\u5c97\\u4f4d\\u5de5\\u8d44\", \"\\u57fa\\u7840\\u6548\\u7ee9\", \"课酬\", \"其他补助\", \"管理效绩\", \"\\u65f6\\u95f4\", \"\\u603b\\u548c\"\n }\n ));\n scrollPane1.setViewportView(table1);\n }\n\n GroupLayout layout = new GroupLayout(this);\n setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup()\n .addGroup(layout.createSequentialGroup()\n .addComponent(scrollPane1, GroupLayout.PREFERRED_SIZE, 663, GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup()\n .addComponent(scrollPane1, GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)\n );\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "private JPanel getTablePanel() {\n if (tablePanel == null) {\n GridBagConstraints gridBagConstraints4 = new GridBagConstraints();\n gridBagConstraints4.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints4.weighty = 1.0;\n gridBagConstraints4.gridx = 0;\n gridBagConstraints4.gridy = 0;\n gridBagConstraints4.insets = new java.awt.Insets(2, 2, 2, 2);\n gridBagConstraints4.weightx = 1.0;\n tablePanel = new JPanel();\n tablePanel.setLayout(new GridBagLayout());\n tablePanel.add(getJScrollPane(), gridBagConstraints4);\n }\n return tablePanel;\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(table);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonRegister = new JButton();\n buttonRegister.setText(\"Track\");\n panel1.add(buttonRegister, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonMenu = new JButton();\n buttonMenu.setText(\"Menu\");\n panel1.add(buttonMenu, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "public ARCTable() {\n initComponents();\n table = new MyJTable();\n tableScrollPane.setViewportView(table);\n }", "public void initialize() {\n table.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_LAST_COLUMN);\n table.getColumnModel().getColumn(0).setMaxWidth(80);\n table.getColumnModel().getColumn(1).setMaxWidth(80);\n getContentPane().add(scrollPane, java.awt.BorderLayout.CENTER);\n setSize(450, 300);\n\n setTitle(\"Actions\");\n scrollPane.getViewport().add(table);\n getContentPane().add(this.exportButton, BorderLayout.SOUTH);\n\n setLocation(0, 400);\n }", "private javax.swing.JScrollPane getJScrollPane() {\n\t\tif(jScrollPane == null) {\n\t\t\tjScrollPane = new javax.swing.JScrollPane();\n\t\t\tjScrollPane.setViewportView(getJTablePlayList());\n\t\t\tjScrollPane.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.SoftBevelBorder.LOWERED));\n\t\t\tjScrollPane.setPreferredSize(new java.awt.Dimension(275,35));\n\t\t}\n\t\treturn jScrollPane;\n\t}", "private void makeTable() {\n String [] cols = new String[] {\"Planets\", \"Weights (in lbs)\", \"Weights (in kgs)\"};\n model = new DefaultTableModel(result,cols) {\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n };\n table = new JTable(model);\n JScrollPane scrollPane = new JScrollPane(table);\n scrollPane.setPreferredSize(new Dimension(310,155));\n middlePanel.add(scrollPane);\n revalidate();\n repaint();\n }", "public JComponent createTopPanel() {\n\n\t//\tcontent();\n\t\tfields = new JTextField[NBR_FIELDS];\n\t\tmyTable = new PalletTable(db);\n\t\ttable = new JTable(myTable);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(750, 100));\n table.setFillsViewportHeight(true);\n\t\tscroll = new JScrollPane(table);\n\t//\tcontent();\n\t\tmainPanel= new JPanel();\n\t\tmainPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.gridy=0;\n\t\tmainPanel.add(scroll,c);\n\t\tc.gridy=1;\n\t\tmainPanel.add(content(),c);\n\t\t//scroll.setPreferredSize(new Dimension(300,250));\n\t\treturn mainPanel;\n\t}", "private void createTable() {\n table = new Table();\n table.bottom();\n table.setFillParent(true);\n }", "public void configurarJScrollPane() {\n\t\tdatos = new DefaultTableModel();\n\t\t// Adicion Columnas de la tabla\n\t\tdatos.addColumn(\"id\");\n\t\tdatos.addColumn(\"Pais\");\n\t\tdatos.addColumn(\"Continente\");\n\t\t\n\t\tObject[] objectos = {\"cosa\",\"a\"};\n\t\t\n\t\t//Recuperacion de los datos\n\t\t//datos.addRow(Object{\"a\"});\n\t\t\n\t\t\n\t\t//Adicion de los datos a la tabla\n\t\ttabla = new JTable(datos);\n\n\t\t// Configuracion del Scroll y adicion al JFrame\n\t\tscroll = new JScrollPane(tabla);\n\t\tscroll.setBounds(10, 10, 300, 200);\n\t\tthis.add(scroll);\n\t}", "private javax.swing.JScrollPane getJScrollPane() {\n\t\tif(jScrollPane == null) {\n\t\t\tjScrollPane = new javax.swing.JScrollPane();\n\t\t\tjScrollPane.setViewportView(getJTableTitular());\n\t\t\tjScrollPane.setPreferredSize(new java.awt.Dimension(647,242));\n\t\t\tjScrollPane.setBackground(new java.awt.Color(242,242,237));\n\t\t}\n\t\treturn jScrollPane;\n\t}", "public ShoppingCartUi() {\n\t\tsetTitle(\"\\u8D2D\\u7269\\u8F66\");\n\t\tsetBounds(100, 100, 441, 658);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setFont(new Font(\"ËÎÌå\", Font.PLAIN, 20));\n\t\ttable.setShowVerticalLines(false);\n\t\ttable.setRowSelectionAllowed(false);\n\t\ttable.setModel(new DefaultTableModel(\n\t\t\tnew Object[][] {\n\t\t\t},\n\t\t\tnew String[] {\n\t\t\t\t\"\\u4E66\\u540D\", \"\\u6570\\u91CF\"\n\t\t\t}\n\t\t) {\n\t\t\tboolean[] columnEditables = new boolean[] {\n\t\t\t\tfalse, false\n\t\t\t};\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn columnEditables[column];\n\t\t\t}\n\t\t});\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(187);\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(216);\n\t\tscrollPane.setViewportView(table);\n\t\t\n\t\tJLabel label = new JLabel(\"\\u603B\\u4EF7:\");\n\n\t\ttable.setRowHeight(22);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); \n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(14)\n\t\t\t\t\t.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, 397, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(249)\n\t\t\t\t\t.addComponent(label, GroupLayout.PREFERRED_SIZE, 48, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(14)\n\t\t\t\t\t.addComponent(lblNewLabel))\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(13)\n\t\t\t\t\t.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, 541, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(13)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(label)\n\t\t\t\t\t\t.addComponent(lblNewLabel)))\n\t\t);\n\t\tgetContentPane().setLayout(groupLayout);\n\t\t\n\t\tinitTable();\n\t}", "private JScrollPane getJScrollPane() {\n\t\tif (jScrollPane == null) {\n\t\t\tjScrollPane = new JScrollPane();\n\t\t\tjScrollPane.setBounds(new Rectangle(8, 20, 445, 225));\n\t\t\tjScrollPane.setViewportView(getJtableOutput());\n\t\t}\n\t\treturn jScrollPane;\n\t}", "private JScrollPane getJPanel_table_member() {\n\t\tif (jScrollPane_table_member == null) {\n\t\t\tjScrollPane_table_member = new JScrollPane();\n\t\t\tjScrollPane_table_member.setName(\"jScrollPane_table_member\");\n\t\t\tjScrollPane_table_member.setViewportView(getJTable_member());\n\t\t\tjScrollPane_table_member.setFont(new Font(\"Dialog\", Font.PLAIN, 14));\n\t\t}\n\t\treturn jScrollPane_table_member;\n\t}", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 1, new Insets(10, 10, 10, 10), -1, -1));\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 contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel1.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n table1.setAutoscrolls(true);\n table1.setColumnSelectionAllowed(false);\n scrollPane1.setViewportView(table1);\n }", "private JScrollPane getTestAreaScrollPane() {\r\n\t\tif (testAreaScrollPane == null) {\r\n\t\t\ttry {\r\n\t\t\t\ttestAreaScrollPane = new JScrollPane();\r\n\t\t\t\ttestAreaScrollPane.setVisible(false);\r\n\t\t\t\ttestAreaScrollPane.setViewportView(getDetailsTextArea());\r\n\t\t\t} catch (java.lang.Throwable e) {\r\n\t\t\t\t// TODO: Something\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn testAreaScrollPane;\r\n\t}", "private void initComponents() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 987, 717);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 0, 189, 678);\n\t\tcontentPane.add(panel);\n\n\t\tJLabel label = new JLabel();\n\t\tlabel.setText(\"货 物\");\n\t\tlabel.setFont(new Font(\"微软雅黑\", Font.PLAIN, 14));\n\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\n\t\tgl_panel.setHorizontalGroup(gl_panel\n\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(\n\t\t\t\t\t\tgl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tgl_panel.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(71)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_panel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tscrollPane,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t160,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_panel.setVerticalGroup(gl_panel.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_panel.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(label)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t613, Short.MAX_VALUE).addContainerGap()));\n\n\t\tsaleGoodjList = new JList();\n\t\tscrollPane.setViewportView(saleGoodjList);\n\t\tpanel.setLayout(gl_panel);\n\n\t\tscrollPane_1 = new JScrollPane();\n\t\tscrollPane_1.setBounds(199, 498, 764, 180);\n\t\tcontentPane.add(scrollPane_1);\n\n\t\tsaleTable = new JTable();\n\t\t// saleTable.setModel();\n\t\tsaleTable.setToolTipText(\"窗帘\");\n\t\tscrollPane_1.setViewportView(saleTable);\n\n\t\tJLabel saleTotal = new JLabel(\"总价:\");\n\t\tsaleTotal.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tsaleTotal.setBounds(209, 199, 45, 25);\n\t\tcontentPane.add(saleTotal);\n\n\t\tJLabel label_8 = new JLabel(\"\");\n\t\tlabel_8.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_8.setBounds(253, 643, 54, 20);\n\t\tcontentPane.add(label_8);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new TitledBorder(null, \"\\u5BA2\\u6237\\u4FE1\\u606F\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_1.setBounds(199, 10, 480, 115);\n\t\tcontentPane.add(panel_1);\n\t\tpanel_1.setLayout(null);\n\n\t\tJLabel label_1 = new JLabel(\"姓名:\");\n\t\tlabel_1.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(14, 26, 45, 15);\n\t\tpanel_1.add(label_1);\n\n\t\tcustomerName = new JTextField();\n\t\tcustomerName.setColumns(10);\n\t\tcustomerName.setBounds(73, 23, 103, 21);\n\t\tpanel_1.add(customerName);\n\n\t\tJLabel label_3 = new JLabel(\"电话:\");\n\t\tlabel_3.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(190, 26, 45, 15);\n\t\tpanel_1.add(label_3);\n\n\t\tcustomerTel1 = new JTextField();\n\t\tcustomerTel1.setColumns(10);\n\t\tcustomerTel1.setBounds(249, 23, 100, 21);\n\t\tpanel_1.add(customerTel1);\n\n\t\tcustomerTel2 = new JTextField();\n\t\tcustomerTel2.setColumns(10);\n\t\tcustomerTel2.setBounds(363, 23, 100, 21);\n\t\tpanel_1.add(customerTel2);\n\n\t\tJLabel label_6 = new JLabel(\"地址:\");\n\t\tlabel_6.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_6.setBounds(16, 52, 45, 16);\n\t\tpanel_1.add(label_6);\n\n\t\tcustomerAdr = new JTextField();\n\t\tcustomerAdr.setColumns(10);\n\t\tcustomerAdr.setBounds(77, 51, 383, 21);\n\t\tpanel_1.add(customerAdr);\n\n\t\tcustomerDeposit = new JTextField();\n\t\tcustomerDeposit.setColumns(10);\n\t\tcustomerDeposit.setBounds(63, 78, 66, 21);\n\t\tpanel_1.add(customerDeposit);\n\n\t\tJLabel label_7 = new JLabel(\"定金:\");\n\t\tlabel_7.setFont(new Font(\"新宋体\", Font.PLAIN, 14));\n\t\tlabel_7.setBounds(9, 78, 45, 21);\n\t\tpanel_1.add(label_7);\n\n\t\taddCustomerAl = new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddCustomerActionPerformed(e);\n\t\t\t}\n\t\t};\n\t\taddCustomerBtn = new JButton(\"添加客户\");\n\t\taddCustomerBtn.addActionListener(addCustomerAl);\n\t\taddCustomerBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\taddCustomerBtn.setBounds(366, 76, 103, 23);\n\t\tpanel_1.add(addCustomerBtn);\n\n\t\tJButton customerModifyBtn = new JButton(\"修改\");\n\t\tcustomerModifyBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tcustomerModifyBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tcustomerModifyBtn.setBounds(290, 76, 67, 23);\n\t\tpanel_1.add(customerModifyBtn);\n\n\t\tJButton customerDelBtn = new JButton(\"删除\");\n\t\tcustomerDelBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tcustomerDelBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tcustomerDelBtn.setBounds(214, 76, 67, 23);\n\t\tpanel_1.add(customerDelBtn);\n\n\t\tJButton newButton = new JButton(\"新建\");\n\t\tnewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tclearAll();\n\t\t\t\tif (addCustomerBtn.getActionListeners().length == 0) {\n\t\t\t\t\taddCustomerBtn.addActionListener(addCustomerAl);\n\t\t\t\t}\n\t\t\t\taddCustomerBtn.setEnabled(true);\n\t\t\t\tnameLab.setText(\"\");\n\t\t\t\tadrLab.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tnewButton.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tnewButton.setBounds(138, 76, 67, 23);\n\t\tpanel_1.add(newButton);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBounds(689, 10, 274, 340);\n\t\tcontentPane.add(panel_2);\n\n\t\tJLabel label_9 = new JLabel();\n\t\tlabel_9.setText(\"历史订单\");\n\t\tlabel_9.setFont(new Font(\"微软雅黑\", Font.PLAIN, 14));\n\n\t\tJScrollPane scrollPane_2 = new JScrollPane();\n\t\tGroupLayout gl_panel_2 = new GroupLayout(panel_2);\n\t\tgl_panel_2\n\t\t\t\t.setHorizontalGroup(gl_panel_2\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_panel_2\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_panel_2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_panel_2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tscrollPane_2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t169,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_panel_2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel_9)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(100)))));\n\t\tgl_panel_2.setVerticalGroup(gl_panel_2.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_panel_2\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(label_9)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(scrollPane_2, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t339, Short.MAX_VALUE).addContainerGap()));\n\n\t\tsaleLatelyjList = new JList();\n\t\tscrollPane_2.setViewportView(saleLatelyjList);\n\t\tpanel_2.setLayout(gl_panel_2);\n\n\t\tJLabel label_22 = new JLabel(\"宽度:\");\n\t\tlabel_22.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_22.setBounds(924, 181, 56, 15);\n\t\tcontentPane.add(label_22);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setBorder(new TitledBorder(null, \"\\u8D27\\u7269\\u4FE1\\u606F\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_3.setBounds(199, 228, 480, 260);\n\t\tcontentPane.add(panel_3);\n\t\tpanel_3.setLayout(null);\n\n\t\tJLabel label_2 = new JLabel(\"窗帘布:\");\n\t\tlabel_2.setBounds(5, 88, 56, 15);\n\t\tpanel_3.add(label_2);\n\t\tlabel_2.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel lblNewLabel = new JLabel(\"布带:\");\n\t\tlblNewLabel.setBounds(5, 119, 56, 15);\n\t\tpanel_3.add(lblNewLabel);\n\t\tlblNewLabel.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_16 = new JLabel(\"花边:\");\n\t\tlabel_16.setBounds(5, 147, 56, 15);\n\t\tpanel_3.add(label_16);\n\t\tlabel_16.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_19 = new JLabel(\"窗帘圈:\");\n\t\tlabel_19.setBounds(5, 175, 56, 15);\n\t\tpanel_3.add(label_19);\n\t\tlabel_19.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_13 = new JLabel(\"窗帘杆:\");\n\t\tlabel_13.setBounds(5, 205, 56, 15);\n\t\tpanel_3.add(label_13);\n\t\tlabel_13.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tcurtainRodName = new JTextField();\n\t\tcurtainRodName.setBounds(66, 199, 130, 21);\n\t\tpanel_3.add(curtainRodName);\n\t\tcurtainRodName.setEditable(false);\n\t\tcurtainRodMA = new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\treBuildGoodLst(\"C-杆\");\n\t\t\t}\n\t\t};\n\t\tcurtainRodName.addMouseListener(curtainRodMA);\n\t\tcurtainRodName.setColumns(10);\n\n\t\tcurtainRingName = new JTextField();\n\t\tcurtainRingName.setBounds(66, 169, 130, 21);\n\t\tpanel_3.add(curtainRingName);\n\t\tcurtainRingName.setEditable(false);\n\t\tcurtainRingMA = new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\treBuildGoodLst(\"C-孔\");\n\t\t\t}\n\t\t};\n\t\tcurtainRingName.addMouseListener(curtainRingMA);\n\t\tcurtainRingName.setColumns(10);\n\n\t\tcurtainLaceName = new JTextField();\n\t\tcurtainLaceName.setBounds(66, 141, 130, 21);\n\t\tpanel_3.add(curtainLaceName);\n\t\tcurtainLaceName.setEditable(false);\n\t\tcurtainLaceMA = new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\treBuildGoodLst(\"C-花边\");\n\t\t\t}\n\t\t};\n\t\tcurtainLaceName.addMouseListener(curtainLaceMA);\n\t\tcurtainLaceName.setColumns(10);\n\n\t\tcurtainTapeName = new JTextField();\n\t\tcurtainTapeName.setBounds(66, 113, 130, 21);\n\t\tpanel_3.add(curtainTapeName);\n\t\tcurtainTapeName.setEditable(false);\n\t\tcurtainTapeMA = new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\treBuildGoodLst(\"C-布带\");\n\t\t\t}\n\t\t};\n\t\tcurtainTapeName.addMouseListener(curtainTapeMA);\n\t\tcurtainTapeName.setColumns(10);\n\n\t\tcurtainClothName = new JTextField();\n\t\tcurtainClothName.setBounds(66, 82, 130, 21);\n\t\tpanel_3.add(curtainClothName);\n\t\tcurtainClothName.setEditable(false);\n\t\tcurtainClothMA = new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\treBuildGoodLst(\"A-\");\n\t\t\t}\n\t\t};\n\t\tcurtainClothName.addMouseListener(curtainClothMA);\n\t\tcurtainClothName.setColumns(10);\n\n\t\tJLabel label_4 = new JLabel(\"价格:\");\n\t\tlabel_4.setBounds(201, 88, 45, 15);\n\t\tpanel_3.add(label_4);\n\t\tlabel_4.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_10 = new JLabel(\"价格:\");\n\t\tlabel_10.setBounds(201, 119, 45, 15);\n\t\tpanel_3.add(label_10);\n\t\tlabel_10.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_17 = new JLabel(\"价格:\");\n\t\tlabel_17.setBounds(201, 147, 45, 15);\n\t\tpanel_3.add(label_17);\n\t\tlabel_17.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_20 = new JLabel(\"价格:\");\n\t\tlabel_20.setBounds(201, 175, 45, 15);\n\t\tpanel_3.add(label_20);\n\t\tlabel_20.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_14 = new JLabel(\"价格:\");\n\t\tlabel_14.setBounds(201, 205, 45, 15);\n\t\tpanel_3.add(label_14);\n\t\tlabel_14.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tcurtainRodPrice = new JTextField();\n\t\tcurtainRodPrice.setBounds(251, 199, 38, 21);\n\t\tpanel_3.add(curtainRodPrice);\n\t\tcurtainRodPrice.setColumns(10);\n\n\t\tcurtainRingPrice = new JTextField();\n\t\tcurtainRingPrice.setBounds(251, 169, 38, 21);\n\t\tpanel_3.add(curtainRingPrice);\n\t\tcurtainRingPrice.setColumns(10);\n\n\t\tcurtainLacePrice = new JTextField();\n\t\tcurtainLacePrice.setBounds(251, 141, 38, 21);\n\t\tpanel_3.add(curtainLacePrice);\n\t\tcurtainLacePrice.setColumns(10);\n\n\t\tcurtainTapePrice = new JTextField();\n\t\tcurtainTapePrice.setBounds(251, 113, 38, 21);\n\t\tpanel_3.add(curtainTapePrice);\n\t\tcurtainTapePrice.setColumns(10);\n\n\t\tcurtainClothPrice = new JTextField();\n\t\tcurtainClothPrice.setBounds(251, 82, 38, 21);\n\t\tpanel_3.add(curtainClothPrice);\n\t\tcurtainClothPrice.setColumns(10);\n\n\t\tJLabel label_15 = new JLabel(\"备注:\");\n\t\tlabel_15.setBounds(294, 205, 45, 15);\n\t\tpanel_3.add(label_15);\n\t\tlabel_15.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_21 = new JLabel(\"备注:\");\n\t\tlabel_21.setBounds(294, 175, 45, 15);\n\t\tpanel_3.add(label_21);\n\t\tlabel_21.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_18 = new JLabel(\"备注:\");\n\t\tlabel_18.setBounds(294, 147, 45, 15);\n\t\tpanel_3.add(label_18);\n\t\tlabel_18.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_12 = new JLabel(\"备注:\");\n\t\tlabel_12.setBounds(294, 119, 45, 15);\n\t\tpanel_3.add(label_12);\n\t\tlabel_12.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJLabel label_11 = new JLabel(\"备注:\");\n\t\tlabel_11.setBounds(294, 88, 45, 15);\n\t\tpanel_3.add(label_11);\n\t\tlabel_11.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tcurtainClothRemark = new JTextField();\n\t\tcurtainClothRemark.setBounds(344, 82, 120, 21);\n\t\tpanel_3.add(curtainClothRemark);\n\t\tcurtainClothRemark.setColumns(10);\n\n\t\tcurtainTapeRemark = new JTextField();\n\t\tcurtainTapeRemark.setBounds(344, 113, 120, 21);\n\t\tpanel_3.add(curtainTapeRemark);\n\t\tcurtainTapeRemark.setColumns(10);\n\n\t\tcurtainLaceRemark = new JTextField();\n\t\tcurtainLaceRemark.setBounds(344, 141, 120, 21);\n\t\tpanel_3.add(curtainLaceRemark);\n\t\tcurtainLaceRemark.setColumns(10);\n\n\t\tcurtainRingRemark = new JTextField();\n\t\tcurtainRingRemark.setBounds(344, 169, 120, 21);\n\t\tpanel_3.add(curtainRingRemark);\n\t\tcurtainRingRemark.setColumns(10);\n\n\t\tcurtainRodRemark = new JTextField();\n\t\tcurtainRodRemark.setBounds(344, 199, 120, 21);\n\t\tpanel_3.add(curtainRodRemark);\n\t\tcurtainRodRemark.setColumns(10);\n\n\t\tJButton curtainDelBtn = new JButton(\"删除\");\n\t\tcurtainDelBtn.setBounds(71, 230, 67, 23);\n\t\tpanel_3.add(curtainDelBtn);\n\t\tcurtainDelBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}\n\t\t});\n\t\tcurtainDelBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tJButton curtainModifyBtn = new JButton(\"修改\");\n\t\tcurtainModifyBtn.setBounds(148, 230, 67, 23);\n\t\tpanel_3.add(curtainModifyBtn);\n\t\tcurtainModifyBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcurtainModifyAction(e);\n\t\t\t}\n\t\t});\n\t\tcurtainModifyBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\taddCurtainGood = new JButton(\"添加货物\");\n\t\taddCurtainGood.setBounds(239, 230, 100, 23);\n\t\tpanel_3.add(addCurtainGood);\n\t\taddCurtainGood.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (currentSol.getCustomer() != null) {\n\t\t\t\t\taddCurtainGoodActionPerformed(e);\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"请先输入用户信息\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\taddCurtainGood.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tcurtainStyleCB = new JComboBox();\n\t\tcurtainStyleCB.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tcurtainStyleAction(e);\n\t\t\t}\n\t\t});\n\t\tcurtainStyleCB.setBounds(21, 22, 98, 21);\n\t\tpanel_3.add(curtainStyleCB);\n\t\tcurtainStyleCB.setModel(new DefaultComboBoxModel(new String[] {\n\t\t\t\t\"打孔*1.7\", \"挂钩*1.5\", \"挂钩+0.5\", \"卷帘\" }));\n\n\t\tcurtainWidth = new JTextField();\n\t\tcurtainWidth.setBounds(69, 57, 70, 21);\n\t\tpanel_3.add(curtainWidth);\n\t\tcurtainWidth.setColumns(10);\n\n\t\tJLabel label_5 = new JLabel(\"安装位置:\");\n\t\tlabel_5.setBounds(140, 25, 75, 15);\n\t\tpanel_3.add(label_5);\n\t\tlabel_5.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\thightLocationCB = new JComboBox();\n\t\thightLocationCB.setBounds(305, 57, 79, 21);\n\t\tpanel_3.add(hightLocationCB);\n\t\thightLocationCB.setModel(new DefaultComboBoxModel(new String[] {\n\t\t\t\t\"高度位置\", \"顶高\", \"总高\", \"杆到地\", \"顶装\" }));\n\t\thightLocationCB.setToolTipText(\"\");\n\n\t\tcurtainLocationCB = new JComboBox();\n\t\tcurtainLocationCB.setModel(new DefaultComboBoxModel(new String[] {\n\t\t\t\t\"请选择\", \"客厅\", \"阳台\", \"主卧\", \"次卧\", \"后卧\", \"餐厅\", \"厨房\", \"卫生间\" }));\n\t\tcurtainLocationCB.setBounds(236, 22, 70, 21);\n\t\tpanel_3.add(curtainLocationCB);\n\t\tcurtainLocationCB.setToolTipText(\"\");\n\n\t\tcurtainLocation = new JTextField();\n\t\tcurtainLocation.setBounds(327, 22, 130, 21);\n\t\tpanel_3.add(curtainLocation);\n\t\tcurtainLocation.setColumns(10);\n\n\t\tcurtainHight = new JTextField();\n\t\tcurtainHight.setBounds(396, 57, 70, 21);\n\t\tpanel_3.add(curtainHight);\n\t\tcurtainHight.setColumns(10);\n\n\t\tJLabel label_23 = new JLabel(\"宽度:\");\n\t\tlabel_23.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_23.setBounds(12, 59, 45, 15);\n\t\tpanel_3.add(label_23);\n\n\t\trodWidth = new JTextField();\n\t\trodWidth.setColumns(10);\n\t\trodWidth.setBounds(223, 57, 70, 21);\n\t\tpanel_3.add(rodWidth);\n\n\t\tJLabel label_24 = new JLabel(\"杆增加:\");\n\t\tlabel_24.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\t\tlabel_24.setBounds(151, 59, 60, 15);\n\t\tpanel_3.add(label_24);\n\n\t\tJButton submitBtn = new JButton(\"提交订单\");\n\t\tsubmitBtn.setBounds(364, 227, 100, 23);\n\t\tpanel_3.add(submitBtn);\n\t\tsubmitBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsubmitAction(e);\n\t\t\t}\n\t\t});\n\t\tsubmitBtn.setFont(new Font(\"宋体\", Font.PLAIN, 14));\n\n\t\tnameLab = new JLabel(\"\");\n\t\tnameLab.setFont(new Font(\"宋体\", Font.PLAIN, 13));\n\t\tnameLab.setBounds(209, 135, 470, 20);\n\t\tcontentPane.add(nameLab);\n\n\t\tadrLab = new JLabel(\"\");\n\t\tadrLab.setFont(new Font(\"宋体\", Font.PLAIN, 13));\n\t\tadrLab.setBounds(209, 165, 470, 20);\n\t\tcontentPane.add(adrLab);\n\t}", "private JScrollPane getJScrollPane() {\n if (jScrollPane == null) {\n jScrollPane = new JScrollPane();\n jScrollPane.setViewportView(getGridmapTable());\n }\n return jScrollPane;\n }", "private void buildViewPane() {\n\n // The status table\n// this.paneTblScrollr.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n// this.paneTblScrollr.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n \n int szDevIdColWd = AppProperties.DAQGUI.DEVIDCOL_WD.getValue().asInteger();\n int szPrgBarColWd = AppProperties.DAQGUI.PROGCOL_WD.getValue().asInteger();\n int szMotionColWd = AppProperties.DAQGUI.MOTIONCOL_WD.getValue().asInteger();\n this.tblDacqStatus.getColumnModel().getColumn(0).setPreferredWidth(szDevIdColWd);\n this.tblDacqStatus.getColumnModel().getColumn(1).setPreferredWidth(szPrgBarColWd);\n this.tblDacqStatus.getColumnModel().getColumn(2).setPreferredWidth(szMotionColWd);\n this.tblDacqStatus.getColumnModel().getColumn(1).setCellRenderer(new ProgTableRenderer());\n this.tblDacqStatus.getColumnModel().getColumn(2).setCellRenderer(new ProgTableRenderer());\n\n// int szTblWd = AppProperties.DAQGUI.TOTAL_WD.getValue().asInteger();\n// int szTblHt = AppProperties.DAQGUI.PRG_TBL_HT.getValue().asInteger();\n// Dimension dimTblPane = new Dimension(szTblWd, szTblHt);\n// this.tblDacqStatus.setPreferredSize(dimTblPane);\n//\n// this.tblDacqStatus.setVisible(true);\n// this.tblDacqStatus.setAutoscrolls(true);\n// this.tblDacqStatus.doLayout();\n \n // The status text box\n this.txtDaqStatus.setAutoscrolls(false);\n this.txtDaqStatus.setEditable(false);\n\n // Size\n// int szStatWd = AppProperties.DAQGUI.TOTAL_WD.getValue().asInteger();\n// int szStatHt = 25;\n// Dimension dimStat = new Dimension(szStatWd, szStatHt);\n// this.txtDacqStatus.setPreferredSize(dimStat);\n\n int szTblWd = AppProperties.DAQGUI.TOTAL_WD.getValue().asInteger();\n int szTblHt = AppProperties.DAQGUI.PRG_TBL_HT.getValue().asInteger();\n Dimension dimTblPane = new Dimension(szTblWd, szTblHt);\n this.paneTblScrollr.setPreferredSize(dimTblPane);\n\n // Alignment\n Box boxDaqPrg = Box.createVerticalBox();\n boxDaqPrg.add(this.paneTblScrollr);\n boxDaqPrg.add( Box.createVerticalStrut(10));\n boxDaqPrg.add(this.txtDaqStatus);\n\n// Box boxDacqPrg = Box.createVerticalBox();\n// boxDacqPrg.add(this.tblDacqStatus);\n// boxDacqPrg.add( Box.createVerticalStrut(10));\n// boxDacqPrg.add(this.txtDacqStatus);\n//\n \n this.add(boxDaqPrg);\n }", "private JScrollPane setInnerScrollPane() {\n JScrollPane jsp = new JScrollPane();\n jsp.setViewportView(setOrderList());\n return jsp;\n }", "private JScrollPane getJScrollPane() {\r\n\t\tif (jScrollPane == null) {\r\n\t\t\tjScrollPane = new JScrollPane();\r\n\t\t\tjScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n\t\t\tjScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\r\n\t\t\tjScrollPane.setViewportView(getJTable());\r\n\t\t}\r\n\t\treturn jScrollPane;\r\n\t}", "private JScrollPane getJScrollPane() {\r\n\t\tif (jScrollPane == null) {\r\n\t\t\tjScrollPane = new JScrollPane();\r\n\t\t\tjScrollPane.setPreferredSize(new Dimension(259, 60));\r\n\t\t\tjScrollPane.setViewportView(getPayloads());\r\n\t\t}\r\n\t\treturn jScrollPane;\r\n\t}", "private JScrollPane getJScrollPane() {\n\t\tif (jScrollPane == null) {\n\t\t\tjScrollPane = new JScrollPane();\n\t\t\tjScrollPane.setViewportView(getJTable());\n\t\t}\n\t\treturn jScrollPane;\n\t}", "private void setupTable() {\n\t\tString[] columns = { \"Course Name\", \"Course Number\" };\n\n\t\ttableModel = new DefaultTableModel(null, columns) {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\ttable = new JTable(tableModel);\n\t\ttable.setColumnSelectionAllowed(false);\n\t\ttable.setRowSelectionAllowed(true);\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\ttable.getSelectionModel().addListSelectionListener((ListSelectionEvent event) -> {\n\t\t\tif (table.getSelectedRow() >= 0) {\n\t\t\t\tString name = table.getValueAt(table.getSelectedRow(), 0).toString();\n\t\t\t\tint num = Integer.parseInt(table.getValueAt(table.getSelectedRow(), 1).toString());\n\t\t\t\tupdateTextArea((Course) adCon.search(name, num));\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tscrollPane.setPreferredSize(new Dimension(350, 175));\n\t\tdisplay.add(scrollPane);\n\t}", "private JScrollPane getScrollPaneDataOrganizer(){\n if (this.scrollPaneDataOrganizer == null){\n scrollPaneDataOrganizer = new JScrollPane(getDataTable());\n scrollPaneDataOrganizer.setBounds(0, panelMenuData.getHeight(), panelDataset.getWidth(), panelDataset.getHeight());\n }\n return this.scrollPaneDataOrganizer ;\n }", "private void addTable()\r\n {\r\n // Create the table\r\n table = new JTable();\r\n table.setAutoCreateRowSorter(true);\r\n table.setColumnSelectionAllowed(false);\r\n table.getTableHeader().setReorderingAllowed(false);\r\n table.setModel(new JarModel());\r\n \r\n // Center the column headings\r\n ((DefaultTableCellRenderer) table.getTableHeader().\r\n getDefaultRenderer()).setHorizontalAlignment(SwingConstants.CENTER);\r\n \r\n // Set the column widths\r\n table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);\r\n table.getColumnModel().getColumn(0).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(0).setMaxWidth(250);\r\n table.getColumnModel().getColumn(2).setPreferredWidth(140);\r\n table.getColumnModel().getColumn(2).setMaxWidth(250);\r\n table.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(3).setMaxWidth(250);\r\n table.getColumnModel().getColumn(4).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(4).setMaxWidth(250);\r\n \r\n // Sort on the first column\r\n table.getRowSorter().toggleSortOrder(0);\r\n \r\n table.getColumnModel().getColumn(0).setCellRenderer(new BooleanColorCellRenderer());\r\n table.getColumnModel().getColumn(2).setCellRenderer(new DateCellRenderer());\r\n \r\n // Add the table to the panel\r\n add(new JScrollPane(table), BorderLayout.CENTER);\r\n }", "private void initComponents() {\n scrollPane1 = new JScrollPane();\n table1 = new JTable();\n\n //======== this ========\n var contentPane = getContentPane();\n contentPane.setLayout(null);\n\n //======== scrollPane1 ========\n {\n\n //---- table1 ----\n table1.setModel(new DefaultTableModel(\n new Object[][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n },\n new String[] {\n null, null, null, null\n }\n ));\n scrollPane1.setViewportView(table1);\n }\n contentPane.add(scrollPane1);\n scrollPane1.setBounds(0, 0, 425, 130);\n\n contentPane.setPreferredSize(new Dimension(425, 160));\n setSize(425, 160);\n setLocationRelativeTo(getOwner());\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "private void buildTablePanel() {\n \t\tJPanel panel = new JPanel();\n \t\t\n \t\t// settings:\n \t\theader.setReorderingAllowed(false); // no moving.\n \t\ttable.setColumnSelectionAllowed(true);\n \t\ttable.setRowSelectionAllowed(true);\n \t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \t\t\n \t\theader.addMouseListener(tableModel.new SortColumnAdapter());\n \t\t\t\n \t\tTableCellRenderer renderer = new TableCellRenderer() {\n \n \t\t\tJLabel label = new JLabel();\n \t\t\t\n \t\t\t@Override\n \t public JComponent getTableCellRendererComponent(JTable table,\n \t Object value, boolean isSelected, boolean hasFocus,\n \t int row, int column) {\n \t \n \t\t\t\tif (table.isRowSelected(row)) {\n \t\t\t\t\tlabel.setBackground(Color.RED);\n \t\t\t\t} else {\n \t\t\t\t\tlabel.setBackground(UIManager.getColor(\"Table.background\"));\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tlabel.setOpaque(true);\n \t\t\t\tlabel.setText(\"\" + value);\n \t\t\t\t\n \t return label;\n \t }\n \n \t };\n \t table.setDefaultRenderer(Object.class, renderer);\n \t \n \t JScrollPane scroll = new JScrollPane(table);\n \t\t\n \t\tpanel.setLayout(new BorderLayout(5, 5));\n \t\tpanel.add(scroll, BorderLayout.CENTER);\n \t \n \t add(panel, BorderLayout.CENTER);\n \t}", "public AdminTable(AdminManager Amanager) {\r\n\t\tsetTitle(\"Admin Table\");\r\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 450, 456);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(28, 53, 378, 200);\r\n\t\tcontentPane.add(scrollPane);\r\n\r\n\t\ttable = new JTable();\r\n\t\ttable.setModel(new DefaultTableModel(\r\n\t\t\t\tnew Object[][] {\r\n\t\t\t\t},\r\n\t\t\t\tnew String[] {\r\n\t\t\t\t\t\t\"Username\", \"Branch\"\r\n\t\t\t\t}\r\n\t\t\t\t));\r\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(125);\r\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(125);\r\n\t\tscrollPane.setViewportView(table);\r\n\r\n\t\tfor(int i = 0; i<Amanager.getAdminList().size(); i++) {\r\n\t\t\tString username = Amanager.getAdmin(i).getUsername();\r\n\t\t\tString branch = Amanager.getAdmin(i).getBranch();\r\n\r\n\t\t\tObject[] data = {username, branch};\r\n\t\t\tDefaultTableModel model = (DefaultTableModel)table.getModel();\r\n\t\t\tmodel.addRow(data); \r\n\t\t}\r\n\r\n\t\tJLabel lblNewUsernameField = new JLabel(\"New admin field\");\r\n\t\tlblNewUsernameField.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblNewUsernameField.setBounds(33, 269, 125, 17);\r\n\t\tcontentPane.add(lblNewUsernameField);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"Username\");\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\tlblNewLabel.setBounds(33, 305, 76, 17);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\r\n\t\tusernameField = new JTextField();\r\n\t\tusernameField.setBounds(119, 305, 175, 20);\r\n\t\tcontentPane.add(usernameField);\r\n\t\tusernameField.setColumns(10);\r\n\r\n\t\tJLabel lblPassword = new JLabel(\"Password\");\r\n\t\tlblPassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\tlblPassword.setBounds(33, 346, 76, 14);\r\n\t\tcontentPane.add(lblPassword);\r\n\r\n\t\tpasswordField = new JTextField();\r\n\t\tpasswordField.setBounds(119, 345, 175, 20);\r\n\t\tcontentPane.add(passwordField);\r\n\t\tpasswordField.setColumns(10);\r\n\r\n\t\tJLabel lblBranch = new JLabel(\"Branch\");\r\n\t\tlblBranch.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\tlblBranch.setBounds(33, 387, 76, 14);\r\n\t\tcontentPane.add(lblBranch);\r\n\r\n\t\tbranchField = new JTextField();\r\n\t\tbranchField.setBounds(119, 386, 175, 20);\r\n\t\tcontentPane.add(branchField);\r\n\t\tbranchField.setColumns(10);\r\n\r\n\r\n\t\tJButton btnAdd = new JButton(\"Add\");\r\n\t\tbtnAdd.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tfinal String adminFilepath = \"./Database/Admin/AdminList.csv\";\r\n\t\t\t\tString username = usernameField.getText();\r\n\t\t\t\tString password = passwordField.getText();\r\n\t\t\t\tString branch = branchField.getText();\r\n\t\t\t\tboolean emp;\r\n\t\t\t\tboolean exist1 = DatabaseTools.uniqueUsernameCheck(adminFilepath, username);\r\n\t\t\t\tboolean exist2 = Amanager.uniqueAdminUsername(username);\r\n\t\t\t\tif(username.equals(\"\")||password.equals(\"\")||branch.equals(\"\"))\r\n\t\t\t\t\temp = true;\r\n\t\t\t\telse \r\n\t\t\t\t\temp = false;\r\n\r\n\t\t\t\tif(emp)\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Make sure to fill all boxes before proceeding.\", \"Error\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\tif(exist1||exist2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Username taken.\", \"Error\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tboolean stat = DatabaseTools.register(username, password, branch);\r\n\t\t\t\t\t\tif(stat) {\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Account created.\", \"Error\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\t\tAdmin hold = new Admin(username, password, branch);\r\n\t\t\t\t\t\t\tAmanager.addAdmin(hold);\r\n\t\t\t\t\t\t\tAdminTable.emptyFields();\r\n\r\n\t\t\t\t\t\t\tAdminTable.showAll(table, Amanager);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Account cannot be created.\", \"Error\", JOptionPane.WARNING_MESSAGE);\r\n\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnAdd.setBounds(317, 264, 89, 23);\r\n\t\tcontentPane.add(btnAdd);\r\n\r\n\t\tJLabel lblAdminList = new JLabel(\"Admin list\");\r\n\t\tlblAdminList.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlblAdminList.setBounds(175, 11, 89, 31);\r\n\t\tcontentPane.add(lblAdminList);\r\n\t\tsetVisible(true);\r\n\t}", "public void createScrollPanel(JPanel panel) {\n scrollPanel = new JScrollPane(panel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n scrollPanel.setPreferredSize(new Dimension(710, 600));\n }", "public WordScrollPane() {\n scrollPane = new JScrollPane();\n }", "public void initScrollpane()\r\n \t{\n \t\tthis.panel.setPreferredSize( new Dimension( this.map.rows() * 32, this.map.cols() * 32 ) );\r\n \t\t\r\n \t\tthis.scroll.setViewportView( this.panel );\r\n \t}", "void initialize() {\r\n\t\t\r\n\t\t\r\n\t\tframe_bl = new JFrame();\r\n\t\tframe_bl.setVisible(true);\r\n\t\tframe_bl.setBounds(100, 100, 1143, 760);\r\n\t\tframe_bl.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe_bl.getContentPane().setLayout(null);\r\n\t\tframe_bl.setLocationRelativeTo(null);\r\n\r\n\t\tTable.buildTable();\r\n\t\tTable.table.setModel(Table.Tablemodel);\r\n\t\t\r\n\t\t\r\n\t\tPanel panel_1 = new Panel();\r\n\t\tpanel_1.setBackground(new Color(255,224,210));\r\n\t\tpanel_1.setBounds(223, 0, 904, 721);\r\n\t\tframe_bl.getContentPane().add(panel_1);\r\n\t\tpanel_1.setLayout(null);\r\n\t\t\r\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\r\n\t\tscrollPane_1.setBounds(72, 239, 770, 445);\r\n\t\tpanel_1.add(scrollPane_1);\r\n\t\t\r\n\t\ttable_1 = new JTable();\r\n\t\tString[] Column= {\"#\", \"ISBN\", \"ID\", \"Due To\"};\r\n\t\tDefaultTableModel f=new DefaultTableModel(Column,0); \r\n\t\ttable_1.setModel(f); \t\t\t\r\n\t\t\r\n\t\tscrollPane_1.setViewportView(table_1);\r\n\t\ttable_1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\ttable_1.setOpaque(false);\r\n\t\ttable_1.setFont(new Font(\"Century Gothic\", Font.PLAIN, 13));\r\n\t\ttable_1.setBorder(null);\r\n\t\ttable_1.setBackground(Color.WHITE);\r\n\t\t\r\n\t\r\n\t\tJLabel lblWelcomeToThe = new JLabel(\"Welcome to the Library Management System!\\r\\n\");\r\n\t\tlblWelcomeToThe.setFont(new Font(\"Century751 BT\", Font.ITALIC, 23));\r\n\t\tlblWelcomeToThe.setBounds(20, 11, 476, 116);\r\n\t\tpanel_1.add(lblWelcomeToThe);\r\n\t\t\r\n\t\tPanel panel = new Panel();\r\n\t\tpanel.setBackground(Color.black);\r\n\t\tpanel.setBackground(new Color(0,0,0));\r\n\t\tpanel.setBounds(0, 0, 228, 721);\r\n\t\tframe_bl.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tlblLogout = new JLabel(\"Back\");\r\n\t\tlblLogout.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\tlblLogout.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\tlblLogout.setForeground(new Color(255, 255, 0));\r\n\t\t\t\tlblLogout.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\tlblLogout.setForeground(new Color(204, 204, 204));\r\n\t\t\t\tlblLogout.setBorder(null);\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\tframe_bl.setVisible(false);\r\n\t\t\t\tLibrarianMain back=new LibrarianMain(); //CHTO TO TUT NE TAK\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tlblLogout.setIcon(new ImageIcon(\"icons\\\\arrow-85-24.png\"));\r\n\t\tlblLogout.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblLogout.setForeground(Color.LIGHT_GRAY);\r\n\t\tlblLogout.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\tlblLogout.setBounds(0, 603, 228, 118);\r\n\t\tpanel.add(lblLogout);\r\n\t\t\r\n\t\tlblIssuedBooks = new JLabel(\"Issue\");\r\n\t\tlblIssuedBooks.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\tlblIssuedBooks.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\tif(getRow()>=0){\r\n\t\t\t\tlblIssuedBooks.setForeground(new Color(255, 255, 0));\r\n\t\t\t\tlblIssuedBooks.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\tlblIssuedBooks.setForeground(new Color(204, 204, 204));\r\n\t\t\t\tlblIssuedBooks.setBorder(null);\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\r\n\t\t\t\t \r\n\t\t\t\tif(getRow()>=0){\r\n\t\t\t\t\tlabel_1.setEnabled(false);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tlblIssuedBooks.setIcon(new ImageIcon(\"issue.png\"));\r\n\t\tlblIssuedBooks.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblIssuedBooks.setForeground(Color.LIGHT_GRAY);\r\n\t\tlblIssuedBooks.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\tlblIssuedBooks.setBounds(0, 234, 228, 118);\r\n\t\tpanel.add(lblIssuedBooks);\r\n\t\t\r\n\t\tlabel_1 = new JLabel(\"Edit\");\r\n\t\tlabel_1.setBackground(new Color(204, 255, 153));\r\n\t\tlabel_1.setForeground(Color.RED);\r\n\t\tlabel_1.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\tlabel_1.setEnabled(true);\r\n\t\t\r\n\t\t\tlabel_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t\tif(getRow()>=0){\r\n\t\t\t\t\t\tlabel_1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\t\tlabel_1.setEnabled(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseEntered(MouseEvent e) { // ÂÎÒ ÇÄÅÑÜ ÖÂÅÒ ÝÄÈÒÀ\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tif(getRow()>=0){\r\n\t\t\t\t\tlabel_1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\tlabel_1.setForeground(new Color(255, 255, 0));\r\n\t\t\t\t\t//label_1.setOpaque(true);\r\n\t\t\t\t\tlabel_1.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));}\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\t\tif(getRow()>=0){\r\n\t\t\t\t\t\tlabel_1.setOpaque(false);\r\n\t\t\t\t\tlabel_1.setForeground(new Color(204, 204, 204));\r\n\t\t\t\t\tlabel_1.setBorder(null);}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\t\t\tlabel_1.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\t\t\tlabel_1.setIcon(new ImageIcon(\"icons\\\\edit-24.png\"));\r\n\t\t\t\t\tlabel_1.setForeground(Color.LIGHT_GRAY);\r\n\t\t\t\t\tlabel_1.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\t\t\t\tlabel_1.setBounds(0, 117, 228, 118);\r\n\t\t\t\t\tpanel.add(label_1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tlblBookList = new JLabel(\"Add Book\");\r\n\t\t\t\t\tlblBookList.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblBookList.setForeground(new Color(255, 255, 0));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblBookList.setForeground(new Color(255, 255, 0));\r\n\t\t\t\t\t\t\tlblBookList.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblBookList.setForeground(new Color(204, 204, 204));\r\n\t\t\t\t\t\t\tlblBookList.setBorder(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t\tlblBookList.setForeground(new Color(204, 204, 204));\r\n\t\t\t\t\tlblBookList.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\t\t\tlblBookList.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\t\t\t\tlblBookList.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\tlblBookList.setIcon(new ImageIcon(\"booklist.png\"));\r\n\t\t\t\t\tlblBookList.setBounds(0, 0, 228, 118);\r\n\t\t\t\t\tpanel.add(lblBookList);\r\n\t\t\t\t\t\r\n\t\t\t\t\tJLabel label = new JLabel();\r\n\t\t\t\t\tlabel.setIcon(new ImageIcon(\"librarian.png\"));\r\n\t\t\t\t\tlabel.setBounds(46, 38, 142, 128);\r\n\t\t\t\t\tpanel.add(label);\r\n\t\t\t\t\t\r\n\t\t\t\t\t lblReturn = new JLabel(\"Delete\");\r\n\t\t\t\t\tlblReturn.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblReturn.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\t\t\tlblReturn.setForeground(new Color(255, 255, 0));\r\n\t\t\t\t\t\t\tlblReturn.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblReturn.setForeground(new Color(204, 204, 204));\r\n\t\t\t\t\t\t\tlblReturn.setBorder(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tif(getRow()>=0){\r\n\t\t\t\t\t\t\t\tlabel_1.setEnabled(false);\r\n\t\t\t\t\t\t\t\t//BookDelete d=new BookDelete();\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\tlblReturn.setIcon(new ImageIcon(\"icons\\\\delete-24.png\"));\r\n\t\t\t\t\tlblReturn.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\t\t\tlblReturn.setForeground(Color.LIGHT_GRAY);\r\n\t\t\t\t\tlblReturn.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\t\t\t\tlblReturn.setBounds(0, 353, 228, 118);\r\n\t\t\t\t\tpanel.add(lblReturn);\r\n\t\t\t\t\t\r\n\t\t\t\t\t lblReset = new JLabel(\"Reset\");\r\n\t\t\t\t\tlblReset.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblReset.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\t\t\t\t\t\tlblReset.setForeground(new Color(255, 255, 0));\r\n\t\t\t\t\t\t\tlblReset.setBorder(new BevelBorder(BevelBorder.RAISED, new Color(255, 255, 102), null, null, null));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\r\n\t\t\t\t\t\t\tlblReset.setForeground(new Color(204, 204, 204));\r\n\t\t\t\t\t\t\tlblReset.setBorder(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\t/*frame_bl.setVisible(false);\r\n\t\t\t\t\t\t\tBookList back=new BookList(); */\r\n\t\t\t\t\t\t\tTable.table.clearSelection();\r\n\t\t\t\t\t\t\tTable.table.repaint();//ÎÍ ÌÅÍß ÍÀÏÐßÃÀÅÒ: ÒÎËÜÊÎ ÒÝÉÁË ÐÅÑÅÒÈÒ\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\tlblReset.setIcon(new ImageIcon(\"icons\\\\undo-4-24.png\"));\r\n\t\t\t\t\tlblReset.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\t\t\tlblReset.setForeground(Color.LIGHT_GRAY);\r\n\t\t\t\t\tlblReset.setFont(new Font(\"Century Gothic\", Font.PLAIN, 20));\r\n\t\t\t\t\tlblReset.setBounds(0, 474, 228, 118);\r\n\t\t\t\t\tpanel.add(lblReset);\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private void buildIngredientTable(){\n\n //IL=IM.getIngredientItemArrayList();\n\n\n\n ingredientTable = new JTable();\n ingredientTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);\n\n ingredientTable.getTableHeader().setReorderingAllowed(false);\n\n DTM = IM.getIngDTM();\n ingredientTable.setModel(DTM);\n\n ingredientTable.setRowSelectionAllowed(true);\n\n ingredientTable.setPreferredScrollableViewportSize(new Dimension(500, 50));\n ingredientTable.setDragEnabled(false);\n ingredientTable.setDefaultEditor(Object.class, null);\n //TODO\n\n TableColumnModel columnModel = ingredientTable.getColumnModel();\n columnModel.getColumn(1).setWidth(500);\n\n scrollPane = new JScrollPane(ingredientTable,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n scrollPane.setPreferredSize(new Dimension(450, 450));\n\n }", "public Window_Table() {\n initComponents();\n \n \n \n }", "public void setupScroll() {\n\t\ttabs = new JLayeredPane();\n\t\tscroll = new JScrollPane(panel);\n\t\tchampions = new ArrayList<JButton>();\n\t\taddChampions(panel, CHAMPIONLIST);\n\t\ttabs = new JLayeredPane();\n\t\tURL url = getClass().getResource(\".coredata/background/ChampionsTab.png\");\n\t\tImageIcon tabIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\ttabs.setPreferredSize(new Dimension(724, 53));\n\t\tJLabel championTab = new JLabel();\n\t\tchampionTab.setIcon(tabIcon);\n\t\ttabs.add(championTab, 50);\n\t\tchampionTab.setBounds(0, 0, tabIcon.getIconWidth(), tabIcon.getIconHeight());\n\t\tsearch = new JTextField(10);\n\t\tsearch.addFocusListener(new FocusListener() {\n\t\t\tpublic void focusGained(FocusEvent e) {search.setText(\"\");}\n\t\t\tpublic void focusLost(FocusEvent e) {}\n\t\t});\n\t\ttabs.add(search, 1000);\n\t\tsearch.setBounds(600, 10, 100, 25);\n\t}", "public void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 806, 499);\n\t\tframe.setDefaultCloseOperation(1);\n\t\tframe.getContentPane().setLayout(null);\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(\"javax.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t} catch (ClassNotFoundException | InstantiationException | IllegalAccessException\n\t\t\t\t| UnsupportedLookAndFeelException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 243, 790, 217);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(10, 11, 770, 169);\n\t\tpanel.add(scrollPane);\n\t\t\n\t\ttable = new JTable();\n\t\ttable.setModel(model);\n\t\tmodel.setColumnIdentifiers(inventory);\n\t\tscrollPane.setViewportView(table);\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(100);\n\t\ttable.getColumnModel().getColumn(1).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(2).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(3).setPreferredWidth(110);\n\t\ttable.getColumnModel().getColumn(4).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(5).setPreferredWidth(100);\n\t\ttable.getColumnModel().getColumn(6).setPreferredWidth(110);\n\t\ttable.getColumnModel().getColumn(7).setPreferredWidth(120);\n\t\ttable.getColumnModel().getColumn(7).setPreferredWidth(120);\n\n//\n//\t\ttable.setShowGrid(false);\n//\t\ttable.setShowHorizontalLines(true);\n//\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setDefaultEditor(Object.class, null);\n\t\tscrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(255, 255, 255), new Color(160, 160, 160)), \"Add New Item\", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 205)));\n\t\tpanel_1.setBounds(10, 11, 770, 194);\n\t\tframe.getContentPane().add(panel_1);\n\t\tpanel_1.setLayout(null);\n\t\t\n\t\tdrugIDGen = new JTextField();\n\t\tdrugIDGen.setBounds(123, 32, 146, 26);\n\t\tpanel_1.add(drugIDGen);\n\t\tdrugIDGen.setColumns(10);\n\t\t\n\t\texDate = new JTextField();\n\t\texDate.setColumns(10);\n\t\texDate.setBounds(123, 143, 146, 26);\n\t\tpanel_1.add(exDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(388, 143, 146, 26);\n\t\tpanel_1.add(date);\n\t\t\n\t\tdrugname = new JTextField();\n\t\tdrugname.setColumns(10);\n\t\tdrugname.setBounds(123, 69, 146, 26);\n\t\tpanel_1.add(drugname);\n\t\t\n\t\tuPrice = new JTextField();\n\t\tuPrice.setColumns(10);\n\t\tuPrice.setBounds(388, 32, 146, 26);\n\t\tpanel_1.add(uPrice);\n\t\t\n\t\tqSold = new JTextField();\n\t\tqSold.setColumns(10);\n\t\tqSold.setBounds(388, 69, 146, 26);\n\t\tpanel_1.add(qSold);\n\t\tqSold.setText(0+\"\");\n\t\tqSold.setEditable(false);\n\t\t\n\t\tgrammage = new JTextField();\n\t\tgrammage.setColumns(10);\n\t\tgrammage.setBounds(123, 106, 146, 26);\n\t\tpanel_1.add(grammage);\n\t\t\n\t\tqRemaining = new JTextField();\n\t\tqRemaining.setColumns(10);\n\t\tqRemaining.setBounds(388, 106, 146, 26);\n\t\tpanel_1.add(qRemaining);\n\t\t\n\t\tdrugidTxt = new JLabel(\"Drug ID\");\n\t\tdrugidTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugidTxt.setBounds(10, 33, 103, 20);\n\t\tpanel_1.add(drugidTxt);\n\t\t\n\t\tdrugnameTxt_1 = new JLabel(\"Drug Name\");\n\t\tdrugnameTxt_1.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugnameTxt_1.setBounds(10, 75, 103, 20);\n\t\tpanel_1.add(drugnameTxt_1);\n\t\t\n\t\tdrugnameTxt = new JLabel(\"Grammage\");\n\t\tdrugnameTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tdrugnameTxt.setBounds(10, 112, 103, 20);\n\t\tpanel_1.add(drugnameTxt);\n\t\t\n\t\tlblExpiryDate = new JLabel(\"Expiry Date\");\n\t\tlblExpiryDate.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblExpiryDate.setBounds(10, 149, 103, 20);\n\t\tpanel_1.add(lblExpiryDate);\n\t\t\n\t\tunitpriceTxt = new JLabel(\"Unit Price\");\n\t\tunitpriceTxt.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tunitpriceTxt.setBounds(279, 32, 103, 20);\n\t\tpanel_1.add(unitpriceTxt);\n\t\t\n\t\tlblQtySold = new JLabel(\"QTY Sold\");\n\t\tlblQtySold.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblQtySold.setBounds(279, 69, 103, 20);\n\t\tpanel_1.add(lblQtySold);\n\t\t\n\t\tlblQtyReamin = new JLabel(\"Drug QTY \");\n\t\tlblQtyReamin.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblQtyReamin.setBounds(275, 107, 103, 20);\n\t\tpanel_1.add(lblQtyReamin);\n\t\t\n\t\tlblPurchDate = new JLabel(\"Purch. Date\");\n\t\tlblPurchDate.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblPurchDate.setBounds(279, 144, 103, 20);\n\t\tpanel_1.add(lblPurchDate);\n\t\t\n\t\tpanel_2 = new JPanel();\n\t\tpanel_2.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.LOWERED, new Color(255, 255, 255), new Color(160, 160, 160)), \"Menu\", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 205)));\n\t\tpanel_2.setBounds(544, 32, 216, 138);\n\t\tpanel_1.add(panel_2);\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tbtnNewButton = new JButton(\"Generate ID\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tdouble num = Math.floor(Math.random() * 1600);\n\t\t\t\tint runout = (int) num;\n\t\t\t\tString coll = drugname.getText();\n\t\t\t\tString output = \"\";\n\t\t\t\t\n\t\t\t\tif(drugname.getText().isEmpty()) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Enter Drug Name in order to generate ID\");\n\t\t\t\t}\n\t\t\t\telse {\t\t\t\t\n\t\t\t\tif(coll.length()>=4) {\n\t\t\t\t\toutput = coll.substring(0, 4);\n\t\t\t\t\tdrugIDGen.setText(output + runout+\"\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\toutput = coll.substring(0, 3);\n\t\t\t\t\tdrugIDGen.setText(output + runout+\"\");\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBackground(new Color(50, 205, 50));\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tbtnNewButton.setBounds(10, 20, 196, 29);\n\t\tpanel_2.add(btnNewButton);\n\t\t\n\t\tbtnAddDrugs = new JButton(\"Add New\");\n\t\tbtnAddDrugs.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddNewDrug();\n\t\t\t}\n\t\t});\n\t\tbtnAddDrugs.setBackground(new Color(50, 205, 50));\n\t\tbtnAddDrugs.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnAddDrugs.setBounds(10, 60, 196, 29);\n\t\tpanel_2.add(btnAddDrugs);\n\t\t\n\t\tbtnNewButton_2 = new JButton(\"View Details\");\n\t\tbtnNewButton_2.setBackground(new Color(50, 205, 50));\n\t\tbtnNewButton_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnNewButton_2.setBounds(10, 100, 196, 29);\n\t\tpanel_2.add(btnNewButton_2);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Enter drug name to generate drug ID\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\t\tlblNewLabel.setBounds(544, 11, 216, 20);\n\t\tpanel_1.add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setColumns(10);\n\t\ttextField.setBounds(78, 210, 199, 26);\n\t\tframe.getContentPane().add(textField);\n\t\t\n\t\tlblSearch = new JLabel(\"Search\");\n\t\tlblSearch.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\n\t\tlblSearch.setBounds(20, 212, 63, 20);\n\t\tframe.getContentPane().add(lblSearch);\n\t\tmodel.setColumnIdentifiers(inventory);\n\t}", "private void createTableArea() {\n\t\tthis.tableModel = new MessagesTableModel();\n\t\tthis.conversation = new JTable(this.tableModel);\n\t\tthis.conversation.setRowSelectionAllowed(false);\n\t\tthis.conversation.getColumn(\"Pseudo\").setMaxWidth(150);\n\t\tthis.conversation.getColumn(\"Message\").setWidth(200);\n\t\tthis.conversation.getColumn(\"Heure\").setMaxWidth(50);\n\t\tthis.conversation.getColumn(\"Message\").setCellRenderer(new WrapTableCellRenderer());\n\t\tthis.conversation.getColumn(\"Pseudo\").setCellRenderer(new ColorTableCellRenderer());\n\t\tthis.scrollPane = new JScrollPane(conversation);\n\t}", "private JScrollPane getJScrollPane() {\r\n\t\tif (jScrollPane == null) {\r\n\t\t\tjScrollPane = new JScrollPane();\r\n\t\t\tjScrollPane.setBounds(new Rectangle(7, 18, 638, 65));\r\n\t\t\tjScrollPane.setViewportView(getJTextFieldData());\r\n\t\t}\r\n\t\treturn jScrollPane;\r\n\t}", "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}", "private void setUpTable()\n {\n //Setting the outlook of the table\n bookTable.setColumnReorderingAllowed(true);\n bookTable.setColumnCollapsingAllowed(true);\n \n \n bookTable.setContainerDataSource(allBooksBean);\n \n \n //Setting up the table data row and column\n /*bookTable.addContainerProperty(\"id\", Integer.class, null);\n bookTable.addContainerProperty(\"book name\",String.class, null);\n bookTable.addContainerProperty(\"author name\", String.class, null);\n bookTable.addContainerProperty(\"description\", String.class, null);\n bookTable.addContainerProperty(\"book genres\", String.class, null);\n */\n //The initial values in the table \n db.connectDB();\n try{\n allBooks = db.getAllBooks();\n }catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n db.closeDB();\n allBooksBean.addAll(allBooks);\n \n //Set Visible columns (show certain columnes)\n bookTable.setVisibleColumns(new Object[]{\"id\",\"bookName\", \"authorName\", \"description\" ,\"bookGenreString\"});\n \n //Set height and width\n bookTable.setHeight(\"370px\");\n bookTable.setWidth(\"1000px\");\n \n //Allow the data in the table to be selected\n bookTable.setSelectable(true);\n \n //Save the selected row by saving the change Immediately\n bookTable.setImmediate(true);\n //Set the table on listener for value change\n bookTable.addValueChangeListener(new Property.ValueChangeListener()\n {\n public void valueChange(ValueChangeEvent event) {\n \n }\n\n });\n }", "private JScrollPane getDetailScrollPane() {\n if (detailScrollPane == null) {\n detailScrollPane = new JScrollPane();\n detailScrollPane.setViewportView(getDetailPane());\n }\n return detailScrollPane;\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"SimpleTableDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n EshopTable newContentPane = new EshopTable();\n newContentPane.addColumn(\"name\", \"toto je hlaviska1\", null, 500);\n newContentPane.addColumn(\"vek\", \"toto je hlaviska2\", \"sortHlav2\", 250);\n newContentPane.markAsVisible();\n\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private JScrollPane getJScrollPane()\n {\n if( jScrollPane == null )\n {\n jScrollPane = new JScrollPane();\n jScrollPane.setViewportView( getM_areaRecieved() ); // Generated\n }\n return jScrollPane;\n }", "private JScrollPane makeScrollPane() {\n textPane = new JTextPane();\n textPane.setCaretPosition(0);\n textPane.setMargin(new Insets(5, 5, 5, 5));\n StyledDocument styledDoc = textPane.getStyledDocument();\n if (styledDoc instanceof AbstractDocument) {\n doc = (AbstractDocument) styledDoc;\n doc.setDocumentFilter(new ColorFilter());\n } else {\n System.err.println(\"Text pane's document isn't an AbstractDocument!\");\n System.exit(-1);\n }\n JScrollPane jsp = new JScrollPane(textPane);\n tln = new TextLineNumber(textPane, name);\n jsp.setRowHeaderView(tln);\n return jsp;\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(6, 2, new Insets(0, 0, 0, 0), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n scrollPane1.setVerticalScrollBarPolicy(22);\n scrollPane1.setVisible(true);\n mainPanel.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 mapTable = new MapTable();\n mapTable.setVisible(false);\n scrollPane1.setViewportView(mapTable);\n final JScrollPane scrollPane2 = new JScrollPane();\n scrollPane2.setVerticalScrollBarPolicy(22);\n mainPanel.add(scrollPane2, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, new Dimension(200, -1), null, 0, false));\n samplesList = new JList<>();\n samplesList.setSelectionMode(0);\n scrollPane2.setViewportView(samplesList);\n final JSeparator separator1 = new JSeparator();\n mainPanel.add(separator1, new GridConstraints(4, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n statusBox = new JComboBox<>();\n mainPanel.add(statusBox, new GridConstraints(5, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(2, 5, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel1, new GridConstraints(2, 0, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n currentSampleLabel = new JLabel();\n currentSampleLabel.setText(\"<текущий образец>\");\n panel1.add(currentSampleLabel, new GridConstraints(0, 1, 2, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"от:\");\n panel1.add(label1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"до:\");\n panel1.add(label2, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n fromPosLabel = new JLabel();\n fromPosLabel.setText(\"<from>\");\n panel1.add(fromPosLabel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n toPosLabel = new JLabel();\n toPosLabel.setText(\"<to>\");\n panel1.add(toPosLabel, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n panel1.add(spacer2, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 6, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_SOUTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(372, 14), null, 0, false));\n boxesCountLabel = new JLabel();\n boxesCountLabel.setText(\"Кол-во коробок:\");\n panel2.add(boxesCountLabel, new GridConstraints(0, 5, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n currentPosLabel = new JLabel();\n currentPosLabel.setText(\"Позиция:\");\n panel2.add(currentPosLabel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer3 = new Spacer();\n panel2.add(spacer3, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Номер отправки:\");\n panel2.add(label3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n shipmentNumberField = new JTextField();\n panel2.add(shipmentNumberField, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_SOUTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(60, -1), null, 0, false));\n final Spacer spacer4 = new Spacer();\n panel2.add(spacer4, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridBagLayout());\n mainPanel.add(panel3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(-1, 28), null, 0, false));\n sampleDeleteButton = new JButton();\n sampleDeleteButton.setIcon(new ImageIcon(getClass().getResource(\"/delSample16.png\")));\n sampleDeleteButton.setMinimumSize(new Dimension(-1, -1));\n sampleDeleteButton.setPreferredSize(new Dimension(32, -1));\n sampleDeleteButton.setText(\"\");\n GridBagConstraints gbc;\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.gridheight = 2;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleDeleteButton, gbc);\n sampleEditButton = new JButton();\n sampleEditButton.setIcon(new ImageIcon(getClass().getResource(\"/change16.png\")));\n sampleEditButton.setMinimumSize(new Dimension(-1, -1));\n sampleEditButton.setPreferredSize(new Dimension(32, -1));\n sampleEditButton.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.gridheight = 2;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleEditButton, gbc);\n sampleMoveUpButton = new JButton();\n sampleMoveUpButton.setIcon(new ImageIcon(getClass().getResource(\"/upSample10.png\")));\n sampleMoveUpButton.setMinimumSize(new Dimension(-1, -1));\n sampleMoveUpButton.setPreferredSize(new Dimension(32, -1));\n sampleMoveUpButton.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleMoveUpButton, gbc);\n sampleMoveDownButton = new JButton();\n sampleMoveDownButton.setIcon(new ImageIcon(getClass().getResource(\"/downSample10.png\")));\n sampleMoveDownButton.setMinimumSize(new Dimension(-1, -1));\n sampleMoveDownButton.setPreferredSize(new Dimension(32, -1));\n sampleMoveDownButton.setText(\"\");\n sampleMoveDownButton.setVerticalAlignment(0);\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleMoveDownButton, gbc);\n sampleAddButton = new JButton();\n sampleAddButton.setIcon(new ImageIcon(getClass().getResource(\"/addSample16.png\")));\n sampleAddButton.setMinimumSize(new Dimension(-1, -1));\n sampleAddButton.setPreferredSize(new Dimension(32, -1));\n sampleAddButton.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.gridheight = 2;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.EAST;\n gbc.fill = GridBagConstraints.VERTICAL;\n panel3.add(sampleAddButton, gbc);\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(panel4, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(180, -1), null, 0, false));\n loadListButton = new JButton();\n loadListButton.setIcon(new ImageIcon(getClass().getResource(\"/import16.png\")));\n loadListButton.setText(\"\");\n panel4.add(loadListButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(48, -1), null, 0, false));\n startButton = new JButton();\n startButton.setText(\"Начать работу\");\n panel4.add(startButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n debugButton = new JButton();\n debugButton.setText(\"debug\");\n panel4.add(debugButton, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveMapButton = new JButton();\n saveMapButton.setIcon(new ImageIcon(getClass().getResource(\"/save16.png\")));\n saveMapButton.setText(\"\");\n panel4.add(saveMapButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public void addContent() {\n ScrollPane mySP = new ScrollPane();\n myContent = new SaveForm(myManager);\n mySP.setContent(myContent);\n mySP.setPrefSize(size, size);\n myRoot.getChildren().add(mySP);\n }", "private JScrollPane getJScrollPane() {\r\n if (jScrollPane == null) {\r\n jScrollPane = new JScrollPane();\r\n jScrollPane.setViewportView(getJListAnimals());\r\n }\r\n return jScrollPane;\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tbl_shu = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel2.setBackground(new java.awt.Color(0, 102, 51));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"DAFTAR PERINCIAN SHU ANGGOTA KOPERASI\");\n\n jPanel1.setBackground(new java.awt.Color(204, 204, 204));\n\n jLabel2.setText(\"Untuk Jasa Simpanan\");\n\n jLabel3.setText(\"Untuk Jasa Pinjaman\");\n\n jLabel4.setText(\"Jumlah\");\n\n jLabel5.setText(\":\");\n\n jLabel6.setText(\":\");\n\n jLabel7.setText(\":\");\n\n tbl_shu.setBackground(new java.awt.Color(153, 255, 51));\n tbl_shu.setFont(new java.awt.Font(\"Century Gothic\", 0, 13)); // NOI18N\n tbl_shu.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tbl_shu.setFillsViewportHeight(true);\n tbl_shu.setGridColor(new java.awt.Color(0, 102, 51));\n tbl_shu.setRowSelectionAllowed(false);\n tbl_shu.setSelectionBackground(new java.awt.Color(255, 255, 255));\n tbl_shu.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tbl_shuMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tbl_shu);\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 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 732, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(45, 45, 45)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel6)\n .addComponent(jLabel5))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 332, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(20, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void initScrollPane() {\n\n MyScrollPane = new JScrollPane(MyTextArea);\n super.addCenter(MyScrollPane);\n\n }", "public void disTable () {\n\t\t\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\t\t\tvalues = new Vector();\n\t\t\t\tvalues.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\");values.add(\"20\");values.add(new Boolean(false));\n\t\t\t\tmyModel.addRow(values ); // more practicle, vector can take only objects.\n\t\t myModel.addRow(data);\n\n\n\t\t\t\tgetContentPane().add(scrollPane, BorderLayout.CENTER);\n\n\t\t\t\t addWindowListener(new WindowAdapter() {\n\t\t\t\t\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t });\n\t}", "private JScrollPane getJScrollPane( )\n {\n if( jScrollPane == null )\n {\n jScrollPane = new JScrollPane( );\n jScrollPane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS );\n jScrollPane.setViewportView( getTreeMenu( ) );\n }\n return jScrollPane;\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 337);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setLocationRelativeTo(null);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tscrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(10, 11, 424, 250);\r\n\t\tframe.getContentPane().add(scrollPane);\r\n\t\t\r\n\t\ttable = new JTable();\r\n\t\ttable.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\ttable.setModel(new DefaultTableModel(\r\n\t\t\tnew Object[][] {\r\n\t\t\t},\r\n\t\t\tnew String[] {\r\n\t\t\t\t\"ID\", \"Nome\", \"Sexo\", \"E-mail\", \"Endere\\u00E7o\"\r\n\t\t\t}\r\n\t\t));\r\n\t\tscrollPane.setViewportView(table);\r\n\t\t\r\n\t\tbtnRecarregar = new JButton(\"Recarregar\");\r\n\t\tbtnRecarregar.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tpreencherTabela();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRecarregar.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\r\n\t\tbtnRecarregar.setBounds(328, 272, 106, 26);\r\n\t\tframe.getContentPane().add(btnRecarregar);\r\n\t\t\r\n\t\t\r\n\t\tpreencherTabela();\r\n\t}", "private void initComponents() {\n\n jScrollPane5 = new javax.swing.JScrollPane();\n jTextPane4 = new javax.swing.JTextPane();\n jScrollPane8 = new javax.swing.JScrollPane();\n jTextPane7 = new javax.swing.JTextPane();\n jScrollPane14 = new javax.swing.JScrollPane();\n jTextPane2 = new javax.swing.JTextPane();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n tPanel = new javax.swing.JPanel();\n jPanel5 = new javax.swing.JPanel();\n tedEkleButton = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n tedTable = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n idpane = new javax.swing.JTextPane();\n jScrollPane4 = new javax.swing.JScrollPane();\n fnamepane = new javax.swing.JTextPane();\n jScrollPane6 = new javax.swing.JScrollPane();\n countrypane = new javax.swing.JTextPane();\n jScrollPane9 = new javax.swing.JScrollPane();\n productpane = new javax.swing.JTextPane();\n jScrollPane10 = new javax.swing.JScrollPane();\n quantitypane = new javax.swing.JTextPane();\n jScrollPane11 = new javax.swing.JScrollPane();\n datepane = new javax.swing.JTextPane();\n jScrollPane12 = new javax.swing.JScrollPane();\n lifepane = new javax.swing.JTextPane();\n jScrollPane13 = new javax.swing.JScrollPane();\n pricepane = new javax.swing.JTextPane();\n citypane = new javax.swing.JComboBox<>();\n jButton5 = new javax.swing.JButton();\n jLabel26 = new javax.swing.JLabel();\n jScrollPane29 = new javax.swing.JScrollPane();\n yolMaliyeti = new javax.swing.JTextPane();\n uPanel = new javax.swing.JPanel();\n jLabel20 = new javax.swing.JLabel();\n jScrollPane25 = new javax.swing.JScrollPane();\n uStokTable = new javax.swing.JTable();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n olusturBilesen = new javax.swing.JTextField();\n olusturButton = new javax.swing.JButton();\n jLabel25 = new javax.swing.JLabel();\n jScrollPane28 = new javax.swing.JScrollPane();\n olusturMiktar = new javax.swing.JTextPane();\n mPanel = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n customerTable = new javax.swing.JTable();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jScrollPane15 = new javax.swing.JScrollPane();\n mIdPane = new javax.swing.JTextPane();\n jScrollPane7 = new javax.swing.JScrollPane();\n mNamePane = new javax.swing.JTextPane();\n jScrollPane16 = new javax.swing.JScrollPane();\n mAdressPane = new javax.swing.JTextPane();\n jScrollPane17 = new javax.swing.JScrollPane();\n mProductPane = new javax.swing.JTextPane();\n jScrollPane18 = new javax.swing.JScrollPane();\n mQuanPane = new javax.swing.JTextPane();\n mEkleBtn = new javax.swing.JButton();\n adresGuncButton = new javax.swing.JButton();\n sPanel = new javax.swing.JPanel();\n jScrollPane19 = new javax.swing.JScrollPane();\n siparisTable = new javax.swing.JTable();\n jLabel16 = new javax.swing.JLabel();\n jScrollPane20 = new javax.swing.JScrollPane();\n karPane = new javax.swing.JTextPane();\n jLabel18 = new javax.swing.JLabel();\n jScrollPane21 = new javax.swing.JScrollPane();\n karPane2 = new javax.swing.JTextPane();\n\n jScrollPane5.setViewportView(jTextPane4);\n\n jScrollPane8.setViewportView(jTextPane7);\n\n jScrollPane14.setViewportView(jTextPane2);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jTabbedPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n tedEkleButton.setText(\"Tedarikçi Ekle\");\n tedEkleButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tedEkleButtonActionPerformed(evt);\n }\n });\n\n tedTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Firma Adi\", \"Ülke\", \"Şehir\", \"Madde\", \"Miktar\", \"Üretim Tarihi\", \"Raf Ömrü\", \"SatişFiyati\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tedTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tedTableMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(tedTable);\n if (tedTable.getColumnModel().getColumnCount() > 0) {\n tedTable.getColumnModel().getColumn(4).setHeaderValue(\"Madde\");\n tedTable.getColumnModel().getColumn(5).setHeaderValue(\"Miktar\");\n tedTable.getColumnModel().getColumn(6).setHeaderValue(\"Üretim Tarihi\");\n tedTable.getColumnModel().getColumn(7).setHeaderValue(\"Raf Ömrü\");\n tedTable.getColumnModel().getColumn(8).setHeaderValue(\"SatişFiyati\");\n }\n\n jLabel1.setText(\"ID\");\n\n jLabel2.setText(\"Şirket Adı\");\n\n jLabel3.setText(\"Ülke\");\n\n jLabel4.setText(\"Şehir\");\n\n jLabel5.setText(\"Madde\");\n\n jLabel6.setText(\"Miktar\");\n\n jLabel7.setText(\"Üretim Tarihi\");\n\n jLabel8.setText(\"Raf Ömrü\");\n\n jLabel9.setText(\"Satış Fiyatı\");\n\n jScrollPane1.setViewportView(idpane);\n\n jScrollPane4.setViewportView(fnamepane);\n\n jScrollPane6.setViewportView(countrypane);\n\n jScrollPane9.setViewportView(productpane);\n\n jScrollPane10.setViewportView(quantitypane);\n\n jScrollPane11.setViewportView(datepane);\n\n jScrollPane12.setViewportView(lifepane);\n\n jScrollPane13.setViewportView(pricepane);\n\n citypane.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Ankara\", \"Eskisehir\", \"Gaziantep\", \"İstanbul\", \"Londra\", \"Berlin\", \"Saraybosna\" }));\n\n jButton5.setText(\"Tabloyu Güncelle\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jLabel26.setFont(new java.awt.Font(\"Sylfaen\", 1, 18)); // NOI18N\n jLabel26.setText(\"Kargo Maliyeti:\");\n\n yolMaliyeti.setEditable(false);\n jScrollPane29.setViewportView(yolMaliyeti);\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 706, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(36, 36, 36)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(5, 5, 5)))\n .addGap(63, 63, 63)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)\n .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)\n .addComponent(jScrollPane13, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)\n .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)\n .addComponent(citypane, 0, 0, Short.MAX_VALUE))\n .addGap(104, 104, 104)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton5)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(81, 81, 81)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane12, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(tedEkleButton, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel26)\n .addGap(49, 49, 49)\n .addComponent(jScrollPane29, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(22, 22, 22)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)))\n .addComponent(jButton5))\n .addGap(29, 29, 29)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(tedEkleButton))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4)\n .addComponent(citypane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(jLabel7)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addGap(88, 88, 88)\n .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addComponent(jLabel8))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel9)\n .addComponent(jScrollPane13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 58, Short.MAX_VALUE)\n .addComponent(jLabel26))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(68, 68, 68))\n );\n\n javax.swing.GroupLayout tPanelLayout = new javax.swing.GroupLayout(tPanel);\n tPanel.setLayout(tPanelLayout);\n tPanelLayout.setHorizontalGroup(\n tPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n tPanelLayout.setVerticalGroup(\n tPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n jTabbedPane1.addTab(\"Tedarikçi\", tPanel);\n\n jLabel20.setFont(new java.awt.Font(\"Sylfaen\", 1, 20)); // NOI18N\n jLabel20.setText(\"Üretici Stok Durumu\");\n\n uStokTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Bileşiğin Adi\", \"Miktari\"\n }\n ));\n jScrollPane25.setViewportView(uStokTable);\n\n jLabel22.setFont(new java.awt.Font(\"Tahoma\", 1, 20)); // NOI18N\n jLabel22.setForeground(new java.awt.Color(204, 0, 0));\n jLabel22.setText(\"Yeni Bileşen Oluştur\");\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 16)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(0, 51, 153));\n jLabel23.setText(\"Örnek Oluşturma Şekli: C.1-O.2 / H.2-O.1 / H.1-Cl.1\");\n\n olusturBilesen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n olusturBilesenActionPerformed(evt);\n }\n });\n\n olusturButton.setText(\"Oluştur\");\n olusturButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n olusturButtonActionPerformed(evt);\n }\n });\n\n jLabel25.setFont(new java.awt.Font(\"Sylfaen\", 1, 18)); // NOI18N\n jLabel25.setText(\"Mikatarini Giriniz: \");\n\n jScrollPane28.setViewportView(olusturMiktar);\n\n javax.swing.GroupLayout uPanelLayout = new javax.swing.GroupLayout(uPanel);\n uPanel.setLayout(uPanelLayout);\n uPanelLayout.setHorizontalGroup(\n uPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(uPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(uPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane25, javax.swing.GroupLayout.DEFAULT_SIZE, 706, Short.MAX_VALUE)\n .addGroup(uPanelLayout.createSequentialGroup()\n .addGroup(uPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(uPanelLayout.createSequentialGroup()\n .addComponent(jLabel25)\n .addGap(48, 48, 48)\n .addComponent(jScrollPane28))\n .addComponent(jLabel20)\n .addComponent(jLabel22)\n .addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(olusturBilesen))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, uPanelLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(olusturButton)\n .addGap(107, 107, 107))\n );\n uPanelLayout.setVerticalGroup(\n uPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(uPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane25, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(84, 84, 84)\n .addGroup(uPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(uPanelLayout.createSequentialGroup()\n .addComponent(jLabel22)\n .addGap(18, 18, 18)\n .addComponent(jLabel23)\n .addGap(28, 28, 28)\n .addComponent(olusturBilesen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(olusturButton)\n .addGap(10, 10, 10)\n .addComponent(jLabel25))\n .addComponent(jScrollPane28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(268, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Üretici/Satici\", uPanel);\n\n customerTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Müsteri Adi\", \"Adres\", \"Talep Edilen Ürün\", \"Adet\"\n }\n ));\n customerTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n customerTableMouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(customerTable);\n\n jLabel10.setFont(new java.awt.Font(\"Tw Cen MT\", 1, 18)); // NOI18N\n jLabel10.setText(\"Sisteme Kayıtlı Olan Müsteriler\");\n\n jLabel11.setText(\"ID\");\n\n jLabel12.setText(\"Müsteri Adı\");\n\n jLabel13.setText(\"Adres\");\n\n jLabel14.setText(\"Talep Edilen Ürün\");\n\n jLabel15.setText(\"Talep Edilen Miktar\");\n\n jScrollPane15.setViewportView(mIdPane);\n\n jScrollPane7.setViewportView(mNamePane);\n\n jScrollPane16.setViewportView(mAdressPane);\n\n jScrollPane17.setViewportView(mProductPane);\n\n jScrollPane18.setViewportView(mQuanPane);\n\n mEkleBtn.setText(\"Müşteri Ekle\");\n mEkleBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mEkleBtnActionPerformed(evt);\n }\n });\n\n adresGuncButton.setText(\"Müşteri Adres Güncelle\");\n adresGuncButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n adresGuncButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout mPanelLayout = new javax.swing.GroupLayout(mPanel);\n mPanel.setLayout(mPanelLayout);\n mPanelLayout.setHorizontalGroup(\n mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane3)\n .addGroup(mPanelLayout.createSequentialGroup()\n .addComponent(jLabel10)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(mPanelLayout.createSequentialGroup()\n .addGap(86, 86, 86)\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(49, 49, 49)\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)\n .addComponent(jScrollPane16)\n .addComponent(jScrollPane7)\n .addComponent(jScrollPane17)\n .addComponent(jScrollPane18))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 73, Short.MAX_VALUE)\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(mEkleBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(adresGuncButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(125, 125, 125))\n );\n mPanelLayout.setVerticalGroup(\n mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mPanelLayout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(mPanelLayout.createSequentialGroup()\n .addComponent(jLabel10)\n .addGap(18, 18, 18)\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(mPanelLayout.createSequentialGroup()\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(mPanelLayout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(86, 86, 86)\n .addComponent(jLabel11))\n .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22)\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(mPanelLayout.createSequentialGroup()\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mPanelLayout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jLabel13))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mPanelLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(mEkleBtn)\n .addGap(17, 17, 17))))\n .addComponent(jScrollPane16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(mPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mPanelLayout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jLabel14))\n .addGroup(mPanelLayout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(adresGuncButton))))\n .addComponent(jScrollPane17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addComponent(jLabel15)))\n .addContainerGap(181, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Müşteri\", mPanel);\n\n siparisTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Müsteri Adi\", \"Sehir Merkezi\", \"Talep Edilen Ürün\", \"Adet\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n true, true, true, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n siparisTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n siparisTableMouseClicked(evt);\n }\n });\n jScrollPane19.setViewportView(siparisTable);\n\n jLabel16.setFont(new java.awt.Font(\"Sylfaen\", 1, 18)); // NOI18N\n jLabel16.setText(\"Seçili olan siparişten elde edilen kar: \");\n\n karPane.setEditable(false);\n jScrollPane20.setViewportView(karPane);\n\n jLabel18.setFont(new java.awt.Font(\"Sylfaen\", 1, 18)); // NOI18N\n jLabel18.setText(\"Kar Oranı (%): \");\n\n karPane2.setEditable(false);\n jScrollPane21.setViewportView(karPane2);\n\n javax.swing.GroupLayout sPanelLayout = new javax.swing.GroupLayout(sPanel);\n sPanel.setLayout(sPanelLayout);\n sPanelLayout.setHorizontalGroup(\n sPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(sPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(sPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(sPanelLayout.createSequentialGroup()\n .addComponent(jScrollPane19, javax.swing.GroupLayout.DEFAULT_SIZE, 683, Short.MAX_VALUE)\n .addGap(35, 35, 35))\n .addGroup(sPanelLayout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addGroup(sPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(sPanelLayout.createSequentialGroup()\n .addComponent(jLabel18)\n .addGap(133, 133, 133)\n .addComponent(jScrollPane21))\n .addGroup(sPanelLayout.createSequentialGroup()\n .addComponent(jLabel16)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane20, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n );\n sPanelLayout.setVerticalGroup(\n sPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(sPanelLayout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jScrollPane19, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(72, 72, 72)\n .addGroup(sPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel16)\n .addComponent(jScrollPane20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(52, 52, 52)\n .addGroup(sPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel18)\n .addComponent(jScrollPane21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(340, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Siparişler\", sPanel);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1)\n );\n\n pack();\n }", "private void initComponents() {\n\n scrollTableDocumentMetadata = new javax.swing.JScrollPane();\n tableDocumentMetadata = new javax.swing.JTable();\n lblDescDocMetadata = new javax.swing.JLabel();\n btnEditMetadata = new javax.swing.JButton();\n\n tableDocumentMetadata.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 11));\n tableDocumentMetadata.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n scrollTableDocumentMetadata.setViewportView(tableDocumentMetadata);\n\n lblDescDocMetadata.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 11));\n lblDescDocMetadata.setText(\"Document Metadata\");\n\n btnEditMetadata.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n btnEditMetadata.setText(\"Edit Document Metadata\");\n btnEditMetadata.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEditMetadataActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(lblDescDocMetadata, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 196, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(12, 12, 12)\n .add(scrollTableDocumentMetadata, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE))\n .add(layout.createSequentialGroup()\n .add(46, 46, 46)\n .add(btnEditMetadata)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(lblDescDocMetadata)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(scrollTableDocumentMetadata, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 231, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(btnEditMetadata)\n .addContainerGap(27, Short.MAX_VALUE))\n );\n\n getAccessibleContext().setAccessibleDescription(\"Doc Metadata\");\n }", "public DeviceProgressPanel() {\n super();\n\n this.mdlCtrlr = new ProgTableController();\n this.tblDacqStatus = new JTable( this.mdlCtrlr );\n this.paneTblScrollr = new JScrollPane( this.tblDacqStatus );\n \n this.txtDaqStatus = new JTextField();\n\n// this.setViewportView( this.tblDacqStatus );\n this.buildViewPane();\n }", "private JPanel createScrollPaneDemonstrations() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Select the desired demonstrations:\", TitledBorder.LEFT, TitledBorder.TOP));\n modelDemonstration = new ModelTableDemonstrationsList(demonstrationsList);\n demonstrationsListJTable = new JTable(modelDemonstration);\n demonstrationsListJTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n demonstrationsListJTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n //demonstrationApplicationController.newDemonstrationApplication(((Demonstration)modelDemonstration.getValueAt(demonstrationsListJTable.getSelectedRow(), demonstrationsListJTable.getSelectedColumn())));\n }\n });\n\n JScrollPane scrollPane = new JScrollPane(demonstrationsListJTable);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.setMinimumSize(scrollPane.getMinimumSize());\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }", "private void initializeTable()\n {\n mTable = new ListView(mData);\n mTable.setPrefSize(200, 250);\n mTable.setEditable(false);\n }", "private void addCards(){\n\t\tDeck deck = new BasicDeckBuilder().getDeck();\r\n\t\tTabletop table = new Tabletop(deck);\r\n\t\tcardtable.getChildren().addAll(table);\r\n\t\tAnchorPane.setTopAnchor(table, 30.0);\r\n\t\tAnchorPane.setBottomAnchor(table, 30.0);\r\n\t\tAnchorPane.setLeftAnchor(table, 30.0);\r\n\t\tAnchorPane.setRightAnchor(table, 30.0);\r\n\t}", "public void makeScrollable() {\n if (touchScrollHandler == null) {\n touchScrollHandler = TouchScrollDelegate.enableTouchScrolling(this);\n }\n touchScrollHandler.addElement(contentNode);\n }", "public AdventureTable(boolean scrollable)\n\t{\n\t\tsuper(scrollable);\n\t}", "@Override\r\n\tpublic void onLoad() {\n\t\tRunnable onLoadCallback = new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tTable table = new Table(createTable(), createOptions());\r\n\t\t\t\tmainPanel.add(table);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// Load the visualization api, passing the onLoadCallback to be called\r\n\t\t// when loading is done.\r\n\t\tVisualizationUtils.loadVisualizationApi(onLoadCallback, Table.PACKAGE);\r\n\r\n\t}", "private void createAndInitScrollingImage() {\r\n\t\tif (this.scrollPane != null) {\r\n\t\t\tthis.pictureFrame.getContentPane().remove(this.scrollPane);\r\n\r\n }\r\n\r\n\t\tthis.scrollPane = new JScrollPane();\r\n\t\tthis.pictureFrame.getContentPane().add(this.scrollPane, BorderLayout.CENTER);\r\n\t\tthis.pictureFrame.validate();\r\n\t}", "private void initializeComponent(String [] entry, Double [] price, String name)\n {\n jLabel1 = new JLabel();\n jLabel2 = new JLabel();\n jTextPane1 = new JTextPane();\n jScrollPane1 = new JScrollPane();\n jTextPane2 = new JTextPane();\n jScrollPane2 = new JScrollPane();\n contentPane = (JPanel)this.getContentPane();\n \n String finalText = \"\";\n for(int i = 0; i < entry.length; i++)\n {\n\tfinalText += entry[i]+price[i].toString()+\"\\n\\n\";\n }\n \n \n String[] columnNames = {\"Item\",\"Price ($)\"};\n \n String [] [] data = new String[entry.length][2];\n \n for(int i = 0; i < entry.length; i++)\n {\n\tdata [i][0] = entry[i];\n\tdata [i][1] = price[i].toString();\n }\n \n JTable jTable = new JTable(data, columnNames);\n \n \n JScrollPane scrollPane = new JScrollPane(jTable);\n jTable.setPreferredScrollableViewportSize(new Dimension(500, 70));\n //\n // jLabel1\n //\n //jLabel1.setText(\"Item\");\n //\n // jLabel2\n //\n //jLabel2.setText(\"Price\");\n //\n // jTextPane1\n //\n //jTextPane1.setText(finalText);\n //\n // jScrollPane1\n //\n jScrollPane1.setViewportView(jTable);//(jTextPane1)\n //\n // jTextPane2\n //\n //jTextPane2.setText(\"abc\");\n //\n // jScrollPane2\n //\n //jScrollPane2.setViewportView(jTextPane2);\n //\n // contentPane\n\t\t//\n contentPane.setLayout(null);\n //addComponent(contentPane, jLabel1, 27,26,60,18);\n //addComponent(contentPane, jLabel2, 220,26,60,18);\n addComponent(contentPane, jScrollPane1, 29,45,400,150);\n //addComponent(contentPane, jScrollPane2, 218,45,60,100);\n //\n // Display\n //\n this.setTitle(\"Menu for \"+name);\n this.setLocation(new Point(100, 50));\n this.setSize(new Dimension(500, 300));\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"\\u4E2A\\u4EBA\\u4FE1\\u606F\\u67E5\\u8BE2\");\n\t\tframe.setBounds(100, 100, 800, 520);\n\t\t\n\t\tint windowWidth = frame.getWidth(); //获得窗口宽\n\t\tint windowHeight = frame.getHeight(); //获得窗口高\n\t\tToolkit kit = Toolkit.getDefaultToolkit(); //定义工具包\n\t\tDimension screenSize = kit.getScreenSize(); //获取屏幕的尺寸\n\t\tint screenWidth = screenSize.width; //获取屏幕的宽\n\t\tint screenHeight = screenSize.height; //获取屏幕的高\n\t\tframe.setLocation(screenWidth/2-windowWidth/2, screenHeight/2-windowHeight/2);\n\t\t\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(-1, 0, 789, 483);\n\t\tframe.getContentPane().add(scrollPane);\n\t\t\n\t\tString[] dataTitle =Selectone.getHead();\n\t\ttable = new JTable();\n\t\tscrollPane.setViewportView(table);\n\t\tString[][] data=Selectone.getnumber(username);\n\t\ttable = new JTable(data,dataTitle);\n\t\ttable.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\ttable.setRowHeight(25);\n\t\tscrollPane.setViewportView(table);\n\t\ttable.setEnabled(false);\n\n\n\t}", "public void showTable() {\n frame = new JFrame(\"Interactive Table\");\n\n //Create and set up the content pane.\n this.setOpaque(true); //content panes must be opaque\n frame.setContentPane(this);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private void initTable() {\n \t\t// init table\n \t\ttable.setCaption(TABLE_CAPTION);\n \t\ttable.setPageLength(10);\n \t\ttable.setSelectable(true);\n \t\ttable.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);\n \t\ttable.setColumnCollapsingAllowed(true);\n \t\ttable.setColumnReorderingAllowed(true);\n \t\ttable.setSelectable(true);\n \t\t// this class handles table actions (see handleActions method below)\n \t\ttable.addActionHandler(this);\n \t\ttable.setDescription(ACTION_DESCRIPTION);\n \n \t\t// populate Toolkit table component with test SQL table rows\n \t\ttry {\n \t\t\tQueryContainer qc = new QueryContainer(\"SELECT * FROM employee\",\n \t\t\t\t\tsampleDatabase.getConnection());\n \t\t\ttable.setContainerDataSource(qc);\n \t\t} catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\t// define which columns should be visible on Table component\n \t\ttable.setVisibleColumns(new Object[] { \"FIRSTNAME\", \"LASTNAME\",\n \t\t\t\t\"TITLE\", \"UNIT\" });\n \t\ttable.setItemCaptionPropertyId(\"ID\");\n \t}", "public AutoScrollPane() {\n this(null);\n }", "private JScrollPane getJScrollPaneDbTable() {\r\n\t\tif (jScrollPaneDbTable == null) {\r\n\t\t\tjScrollPaneDbTable = new JScrollPane();\r\n\t\t\tjScrollPaneDbTable.setBounds(new Rectangle(341, 18, 303, 236));\r\n\t\t\tjScrollPaneDbTable.setViewportView(getJTableDbTable());\r\n\t\t}\r\n\t\treturn jScrollPaneDbTable;\r\n\t}", "public JPStock() {\n initComponents();\n this.setSize(800, 600);\n actualizardatos();\n jsp = new JScrollPane();\n modelotabla = new StockTableModel(datostabla);\n tablastock = new JTable(modelotabla);\n tablesice();\n tablastock.setFillsViewportHeight(true);\n jsp.setViewportView(tablastock);\n jsp.repaint();\n this.jPanel1.add(jsp, BorderLayout.CENTER);\n for (int i = 0; i < datostabla.size(); i++) {\n System.out.println(datostabla.get(i));\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblEMP = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n tblEMP.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null},\n {null, null, null, null, null, null}\n },\n new String [] {\n \"Id\", \"Nombres\", \"Apellidos\", \"Identidad\", \"Cargo\", \"Sueldo\"\n }\n ));\n jScrollPane1.setViewportView(tblEMP);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel1.setText(\"Selecciones un empleado\");\n\n jButton1.setText(\"SELECCIONAR\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(124, 124, 124))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(181, 181, 181)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(30, 30, 30)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(31, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void initComponents() {\r\n\t\tjScrollPane1 = new javax.swing.JScrollPane();\r\n\t\ttableSessionOutcomes = new javax.swing.JTable();\r\n\r\n\t\tgetContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.X_AXIS));\r\n\r\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tsetTitle(\"Negotiation results\");\r\n\t\ttableSessionOutcomes.setModel(new javax.swing.table.DefaultTableModel(\r\n\t\t\t\tnew Object [][] {\r\n\t\t\t\t\t\t{null, null, null, null},\r\n\t\t\t\t\t\t{null, null, null, null},\r\n\t\t\t\t\t\t{null, null, null, null},\r\n\t\t\t\t\t\t{null, null, null, null}\r\n\t\t\t\t},\r\n\t\t\t\tnew String [] {\r\n\t\t\t\t\t\t\"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\r\n\t\t\t\t}\r\n\t\t));\r\n\t\tjScrollPane1.setViewportView(tableSessionOutcomes);\r\n\r\n\t\tgetContentPane().add(jScrollPane1);\r\n\r\n\t\tpack();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n TbData = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n TbData.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\", \"Title 5\"\n }\n ));\n jScrollPane1.setViewportView(TbData);\n\n jLabel1.setText(\"Datos\");\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(174, 174, 174)\n .addComponent(jLabel1)\n .addContainerGap(193, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(16, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }", "private void buildview() {\n\t\tCssLayout cd= new CssLayout();\n\t\t\n\t\t//table.setSizeFull();\n\t\t\t\n\t\t\ttable.setContainerDataSource(container);\n\t\t\ttable.setVisibleColumns(new Object[]{\"Name\",\"Component\",\"Indication\",\"Comment\",\"MethodofAdministration\"});\n\t\t\ttable.setColumnHeader(\"MethodofAdministration\", \"Method of Administration\");\n\t\t\t\n\t\t\ttable.setWidth(\"100%\");\n\t\t\tcd.addComponent(table);\n\t\t\tcd.setSizeFull();\n\t\t\tsetContent(cd);\n\t\t\n\t}", "private JPanel createScrollPaneProducts() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Products List: \", TitledBorder.LEFT, TitledBorder.TOP));\n\n this.productsList = this.demonstrationApplicationController.getProductsList();\n this.jListProduct = new JList(new ModelListSelectable(this.productsList));\n JScrollPane scrollPane = new JScrollPane(jListProduct);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }", "private JScrollPane getSummaryTreeScrollPane() {\n if (summaryTreeScrollPane == null) {\n summaryTreeScrollPane = new JScrollPane();\n summaryTreeScrollPane.setViewportView(getSummaryTree());\n }\n return summaryTreeScrollPane;\n }", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n JFrame frame = new JFrame(\"TablePanel\");\n JPanel contentP = new JPanel();\n Box v = Box.createVerticalBox();\n Box h = Box.createHorizontalBox();\n Box h2 = Box.createHorizontalBox();\n TablePanel tablePanel = new TablePanel();\n tablePanel.setOpaque(true); //content panes must be opaque\n\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setContentPane(contentP);\n contentP.add(tablePanel);\n contentP.add(v);\n v.add(h);\n v.add(h2);\n\n h.add(tablePanel);\n h2.add(new JButton(\"Hello\"));\n //Display the window.\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "private JScrollPane getJScrollPaneVar() {\r\n\t\tif (jScrollPaneVar == null) {\r\n\t\t\tjScrollPaneVar = new JScrollPane();\r\n\t\t\tjScrollPaneVar.setBounds(new Rectangle(7, 18, 638, 50));\r\n\t\t\tjScrollPaneVar.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);\r\n\t\t\tjScrollPaneVar.setViewportView(getJTableVar());\r\n\t\t}\r\n\t\treturn jScrollPaneVar;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n tableScrollPane = new javax.swing.JScrollPane();\n\n setMinimumSize(new java.awt.Dimension(25, 500));\n setLayout(new java.awt.GridLayout(1, 1));\n add(tableScrollPane);\n }", "private JScrollPane getAnalyzaScroll() {\n\t\tif (analyzaScroll == null) {\n\t\t\tanalyzaScroll = new JScrollPane(analyzaList);\n\t\t\tanalyzaScroll.setBounds(new Rectangle(125, 115, 297, 159));\n\t\t}\n\t\treturn analyzaScroll;\n\t}", "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}", "private void initComponents() {\n panel1 = new JPanel();\r\n label1 = new JLabel();\r\n scrollPane1 = new JScrollPane();\r\n table1 = new JTable();\r\n\r\n //======== this ========\r\n setBackground(Color.white);\r\n setTitle(\"Swasthya\");\r\n setIconImage(new ImageIcon(\"F:\\\\1P\\\\pathology\\\\img\\\\hl.png\").getImage());\r\n setFont(new Font(Font.DIALOG, Font.PLAIN, 20));\r\n Container contentPane = getContentPane();\r\n\r\n //======== panel1 ========\r\n {\r\n panel1.setBackground(Color.white);\r\n panel1.setBorder (new javax. swing. border. CompoundBorder( new javax .swing .border .TitledBorder (new javax. swing. border. EmptyBorder( 0\r\n , 0, 0, 0) , \"JF\\u006frmD\\u0065sig\\u006eer \\u0045val\\u0075ati\\u006fn\", javax. swing. border. TitledBorder. CENTER, javax. swing. border. TitledBorder. BOTTOM\r\n , new java .awt .Font (\"Dia\\u006cog\" ,java .awt .Font .BOLD ,12 ), java. awt. Color. red) ,\r\n panel1. getBorder( )) ); panel1. addPropertyChangeListener (new java. beans. PropertyChangeListener( ){ @Override public void propertyChange (java .beans .PropertyChangeEvent e\r\n ) {if (\"\\u0062ord\\u0065r\" .equals (e .getPropertyName () )) throw new RuntimeException( ); }} );\r\n\r\n //---- label1 ----\r\n label1.setIcon(new ImageIcon(\"F:\\\\1P\\\\pathology\\\\img\\\\logo.png\"));\r\n\r\n //======== scrollPane1 ========\r\n {\r\n\r\n //---- table1 ----\r\n table1.setFont(new Font(\"Calibri\", Font.PLAIN, 24));\r\n table1.setRowHeight(45);\r\n table1.setRowMargin(3);\r\n table1.setFillsViewportHeight(true);\r\n table1.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);\r\n scrollPane1.setViewportView(table1);\r\n }\r\n\r\n GroupLayout panel1Layout = new GroupLayout(panel1);\r\n panel1.setLayout(panel1Layout);\r\n panel1Layout.setHorizontalGroup(\r\n panel1Layout.createParallelGroup()\r\n .addGroup(panel1Layout.createSequentialGroup()\r\n .addGap(304, 304, 304)\r\n .addComponent(label1, GroupLayout.PREFERRED_SIZE, 508, GroupLayout.PREFERRED_SIZE)\r\n .addGap(251, 251, 251))\r\n .addGroup(GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(scrollPane1, GroupLayout.PREFERRED_SIZE, 1024, GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n panel1Layout.setVerticalGroup(\r\n panel1Layout.createParallelGroup()\r\n .addGroup(panel1Layout.createSequentialGroup()\r\n .addGap(12, 12, 12)\r\n .addComponent(label1, GroupLayout.PREFERRED_SIZE, 83, GroupLayout.PREFERRED_SIZE)\r\n .addGap(34, 34, 34)\r\n .addComponent(scrollPane1, GroupLayout.PREFERRED_SIZE, 872, GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(172, Short.MAX_VALUE))\r\n );\r\n }\r\n\r\n GroupLayout contentPaneLayout = new GroupLayout(contentPane);\r\n contentPane.setLayout(contentPaneLayout);\r\n contentPaneLayout.setHorizontalGroup(\r\n contentPaneLayout.createParallelGroup()\r\n .addComponent(panel1, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n contentPaneLayout.setVerticalGroup(\r\n contentPaneLayout.createParallelGroup()\r\n .addComponent(panel1, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n pack();\r\n setLocationRelativeTo(getOwner());\r\n // JFormDesigner - End of component initialization //GEN-END:initComponents\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n TablePedidos = new javax.swing.JTable();\n btnVoltar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Listar Pedidos\");\n getContentPane().setLayout(null);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jPanel1.setPreferredSize(new java.awt.Dimension(535, 416));\n jPanel1.setLayout(null);\n\n TablePedidos.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Número\", \"Cliente\", \"Data\", \"Valor\"\n }\n ));\n TablePedidos.getTableHeader().setReorderingAllowed(false);\n jScrollPane1.setViewportView(TablePedidos);\n\n jPanel1.add(jScrollPane1);\n jScrollPane1.setBounds(20, 30, 507, 329);\n\n btnVoltar.setText(\"Voltar\");\n btnVoltar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVoltarActionPerformed(evt);\n }\n });\n jPanel1.add(btnVoltar);\n btnVoltar.setBounds(230, 370, 64, 32);\n\n getContentPane().add(jPanel1);\n jPanel1.setBounds(0, 0, 535, 416);\n\n setSize(new java.awt.Dimension(535, 416));\n setLocationRelativeTo(null);\n }", "private void paint_table() {\n jScrollPane1.getViewport().setBackground(Color.WHITE);\n tabela.getTableHeader().setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n tabela.getTableHeader().setOpaque(false);\n tabela.getTableHeader().setBackground(new Color(102, 102, 255));\n tabela.getTableHeader().setForeground(new Color(255, 255, 255));\n tabela.setRowHeight(50);\n }", "public void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"SimpleTableDemo\");\n frame.setTitle(titulo);\n frame.setLocationRelativeTo(null);\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n //Create and set up the content pane.\n SimpleTableDemo newContentPane = new SimpleTableDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(this);\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n \n }", "private void initialize() {\n if(!isInitialized){\n isInitialized = true;\n setLayout(new BorderLayout());\n \n table = downloadTableFactory.get().create(downloadMediator.getDownloadList());\n table.setTableHeader(null);\n JScrollPane pane = new JScrollPane(table);\n pane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));\n add(pane, BorderLayout.CENTER);\n }\n }", "private JScrollPane prepareTable() throws SQLException {\r\n\t\tmetaData = rows.getMetaData();\r\n\t\tif (metaData == null) {\r\n\t\t\tSystem.out.println(\"TableView: Error. No row metadata.\");\r\n\t\t\treturn new JScrollPane(new JLabel(\"ERROR\"));\r\n\t\t}\r\n\r\n\t\ttotalColumns = metaData.getColumnCount();\r\n\r\n\t\tcolumns = new String[totalColumns + totalButtons];\r\n\t\tfor(int i=1; i<=totalColumns; i++)\r\n\t\t\tcolumns[i-1] = metaData.getColumnName(i);\r\n\r\n\t\tfor(int i=0; i<totalButtons; i++)\r\n\t\t\tcolumns[totalColumns + i] = \"\";\r\n\r\n\t\tdTableModel = new DefaultTableModel(databaseInfo, columns);\r\n\r\n\t\t// Temporarily holds the row results\r\n\t\tObject[] tempRow;\r\n\r\n\t\twhile(rows.next()){ \t\r\n\t\t\ttempRow = new Object[totalColumns];\r\n\t\t\tfor(int i=0; i<totalColumns; i++)\r\n\t\t\t\ttempRow[i] = rows.getString(i+1);\r\n\t\t\tdTableModel.addRow(tempRow);\r\n\t\t}\r\n\r\n\t\ttable = new JTable(dTableModel){ \r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\tpublic boolean isCellEditable(int row,int column){ \r\n\t\t\t\tif(column < totalColumns) return false;//the 4th column is not editable \r\n\t\t\t\treturn true; \r\n\t\t\t} \r\n\t\t}; \r\n\r\n\r\n\t\ttable.setFont(new Font(\"Serif\", Font.PLAIN, 20));\r\n\r\n\t\ttable.setRowHeight(table.getRowHeight()+10);\r\n\r\n\t\t/* Sorting rows are screwing buttons up */\r\n\t\ttable.setAutoCreateRowSorter( (totalButtons == 0) );\r\n\r\n\t\tfor(int i=0; i<totalButtons; i++) {\r\n\t\t\ttable.getColumnModel().getColumn(totalColumns + i).setPreferredWidth(100);\r\n\t\t\tnew ButtonColumn(table, buttonAction[i], buttonTitle[i], totalColumns + i);\r\n\t\t}\r\n\r\n\t\tJScrollPane scrollPane = new JScrollPane(table);\r\n\t\t\r\n\t\treturn scrollPane;\r\n\t}", "private void initialize()\n {\n orderList = new ArrayList<OrderData>( );\n setBounds(100, 100, 530, 370);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n setResizable(false);\n\n JLabel lblNewLabel = new JLabel(\"Order\");\n lblNewLabel.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n lblNewLabel.setBounds(22, 18, 61, 16);\n getContentPane().add(lblNewLabel);\n\n JScrollPane scrollPane = new JScrollPane();\n scrollPane.setBounds(22, 47, 497, 189);\n getContentPane().add(scrollPane);\n\n table = new JTable();\n scrollPane.setViewportView(table);\n table.setModel(new DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Order ID\", \"Customer Username\", \"Total Price\", \"Status\", \"Payment Type\", \"Delivery Type\"\n })\n {\n Class[] types = new Class [] {\n String.class, String.class, Float.class, String.class, String.class, String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n\n table.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent evt) {\n//\t\t\t\tproductsTableMouseClicked(evt);\n }\n });\n orderTableModel = (DefaultTableModel) table.getModel();\n table.setFillsViewportHeight(true);\n\n scrollPane.setViewportView(table);\n if (table.getColumnModel().getColumnCount() > 0) {\n table.getColumnModel().getColumn(0).setResizable(false);\n table.getColumnModel().getColumn(1).setResizable(false);\n table.getColumnModel().getColumn(2).setResizable(false);\n table.getColumnModel().getColumn(3).setResizable(false);\n table.getColumnModel().getColumn(4).setResizable(false);\n table.getColumnModel().getColumn(5).setResizable(false);\n }\n table.setSelectionModel( new ForcedListSelectionModel());\n\n\n pendingRadioButton = new JRadioButton(\"Pending\");\n pendingRadioButton.setBounds(22, 248, 141, 23);\n getContentPane().add(pendingRadioButton);\n pendingRadioButton.setSelected( true );\n\n shippingRadioButton = new JRadioButton(\"Shipping\");\n shippingRadioButton.setBounds(22, 280, 141, 23);\n getContentPane().add(shippingRadioButton);\n\n ButtonGroup group = new ButtonGroup();\n group.add( pendingRadioButton );\n group.add( shippingRadioButton );\n\n viewButton = new JButton(\"View\");\n viewButton.setBounds(308, 265, 90, 29);\n getContentPane().add(viewButton);\n\n statusButton = new JButton(\"Set Status\");\n statusButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n }\n });\n statusButton.setBounds(308, 312, 90, 29);\n getContentPane().add(statusButton);\n\n backButton = new JButton(\"Back\");\n backButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n }\n });\n backButton.setBounds(429, 312, 90, 29);\n getContentPane().add(backButton);\n }", "private void createTable() {\n\t\tfreqTable = new TableView<>();\n\n\t\tTableColumn<WordFrequency, Integer> column1 = new TableColumn<WordFrequency, Integer>(\"No.\");\n\t\tcolumn1.setCellValueFactory(new PropertyValueFactory<WordFrequency, Integer>(\"serialNumber\"));\n\n\t\tTableColumn<WordFrequency, String> column2 = new TableColumn<WordFrequency, String>(\"Word\");\n\t\tcolumn2.setCellValueFactory(new PropertyValueFactory<WordFrequency, String>(\"word\"));\n\n\t\tTableColumn<WordFrequency, Integer> column3 = new TableColumn<WordFrequency, Integer>(\"Count\");\n\t\tcolumn3.setCellValueFactory(new PropertyValueFactory<WordFrequency, Integer>(\"count\"));\n\n\t\tList<TableColumn<WordFrequency, ?>> list = new ArrayList<TableColumn<WordFrequency, ?>>();\n\t\tlist.add(column1);\n\t\tlist.add(column2);\n\t\tlist.add(column3);\n\n\t\tfreqTable.getColumns().addAll(list);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n tableticket = new javax.swing.JTable();\n\n setClosable(true);\n setIconifiable(true);\n setTitle(\"View Ticket Details\");\n\n tableticket.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tableticket.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tableticketMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tableticket);\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 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 722, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }" ]
[ "0.67275506", "0.6696248", "0.66274333", "0.65246403", "0.6493266", "0.64471126", "0.6422937", "0.63844174", "0.63681406", "0.6340552", "0.63155", "0.6259221", "0.62487465", "0.62373126", "0.62134725", "0.6198298", "0.61930996", "0.6190583", "0.61571544", "0.6152824", "0.61459845", "0.6138103", "0.61377114", "0.6119508", "0.61114025", "0.6111195", "0.60837173", "0.6069683", "0.60633063", "0.6059453", "0.6046063", "0.6015484", "0.60037374", "0.6002034", "0.598143", "0.59801537", "0.5978213", "0.5939531", "0.5928694", "0.58979017", "0.58944124", "0.5893237", "0.5885526", "0.588503", "0.5884879", "0.5884723", "0.5877994", "0.5872141", "0.5844822", "0.58326226", "0.5824794", "0.58037394", "0.5796031", "0.5789101", "0.5775174", "0.57745934", "0.5772546", "0.57545674", "0.5754368", "0.57364863", "0.57347214", "0.57326055", "0.5731341", "0.5728891", "0.57288533", "0.5724115", "0.5717728", "0.57172996", "0.5671593", "0.56633395", "0.56607544", "0.56570315", "0.56557316", "0.56484485", "0.5635458", "0.56330246", "0.5623875", "0.56225795", "0.56203157", "0.5612588", "0.5608507", "0.5605902", "0.5604821", "0.5604653", "0.558434", "0.5583801", "0.5569829", "0.5553265", "0.5552197", "0.5548986", "0.5532333", "0.5526544", "0.55250204", "0.5520137", "0.5515562", "0.55142635", "0.5514216", "0.5511265", "0.550955", "0.55093664", "0.5506622" ]
0.0
-1
TODO Autogenerated method stub
public void dropview() { this.remove(scrollPane); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void addcolumns(ArrayList<Rectangle> columns) { columns_view = columns; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Sets the background of the game.
public void setBackground(Image i) { background=i; imageLabel.setIcon(new ImageIcon(i)); imageLabel.setBounds(0,0,700,600); add(imageLabel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBackgroundColor(Color background)\n {\n backgroundColor = background;\n paintAllObjects();\n }", "public void setBg(){\n this.setBackground(color);\n }", "private void setBackground() throws IOException{\n\t\tBufferedImage backgroundBufferedImage = ImageLoader.getBufferedImage(backgroundImagePath);\n\t\tmainWindow.setBackgroundImage(backgroundBufferedImage);\n\t}", "public void setBackground(){\r\n Image background = new Image(\"Cards/table.jpg\", 192, 80, false, true);\r\n BackgroundImage backgroundImg = new BackgroundImage(background, BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT,BackgroundPosition.DEFAULT, null);\r\n mainPane.setBackground(new Background(backgroundImg));\r\n }", "public void setBackground(Paint background) {\r\n Paint old = getBackground();\r\n this.background = background;\r\n firePropertyChange(\"background\", old, getBackground());\r\n }", "protected void setPlayerBackground() { Console.setBackground(Console.YELLOW); }", "public void enterBackground();", "public void setBackground(int x)\r\n { \t\r\n \tbg.setColor(ptools.color2Color3f(x));\r\n }", "public void changeBackground(Bitmap bg){\n Drawable newbackground = new BitmapDrawable(getResources(), bg);\n this.setBackground(newbackground);\n\n }", "public void setBackgroundToDefault(){\n\t\tcurrentBackgroundImage = defaultBackgroundImage;\n\t\tbackgroundPanel.changeBackground(defaultBackgroundImage);\n\t}", "private void drawBG(Batch batch) {\n\t\tbackgroundSprite.setRegion(baybayinAnimation.getKeyFrame(animationCounter, true));\n\t}", "public void setBackground(Background bgFront, Background bgBack) {\n\t\tthis.bgFront = bgFront;\n\t\tthis.bgBack = bgBack;\n\t}", "public void setBackground(int index){\r\n\t\tsuper.setBackground(myBackgrounds.get(index));\r\n\t}", "public void setBackgroundImage(BackgroundImage image) {\n this.backgroundImage = image;\n }", "@Override\r\n\tpublic void setBackgroundResource(int resid) {\n\t\tsuper.setBackgroundResource(resid);\r\n\t}", "private void setBackground() {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String status = city.getStatus();\n switch (status) {\n case \"Clear\":\n background.setBackgroundResource(R.drawable.sunny_day);\n break;\n case\"Rain\":\n case \"Drizzle\":\n case \"Thunderstorm\":\n background.setBackgroundResource(R.drawable.rainy_day);\n break;\n default:\n background.setBackgroundResource(R.drawable.cloudy_day);\n }\n }\n });\n }", "public void setEnteredBackground(boolean enteredBackground) {\n this.enteredBackground = enteredBackground;\n }", "private void setBackgroundColor(int backColor){\n backgroundColor = backColor;\n touchArea.setBackgroundColor(backgroundColor);\n }", "public void createBackground() {\n Sprite bg = this.levelInfo.getBackground();\n this.sprites.addSprite(bg);\n }", "public void setBackground(Color back) {\r\n this.back = back;\r\n }", "public void setBackground(Color color)\r\n\t{\r\n\t\t// System.out.println(\"setBackground\");\r\n\t}", "private Background InitBackground()\r\n {\r\n \tBoundingSphere worldBounds = new BoundingSphere(\r\n \t\t new Point3d( 0.0, 0.0, 0.0 ), // Center\r\n \t\t 1000000000000000000000.0 ); // Extent\r\n \t\t\r\n \t// Set the background color and its application bounds\r\n \tbg = new Background( );\r\n \tbg.setColor( backgroundColor );\r\n \tbg.setCapability( Background.ALLOW_COLOR_WRITE );\r\n \tbg.setCapability( Background.ALLOW_COLOR_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_WRITE );\r\n \tbg.setApplicationBounds( worldBounds );\r\n \t\r\n \treturn bg;\r\n }", "private void createBackground()\n {\n GreenfootImage background = getBackground();\n background.setColor(Color.BLACK);\n background.fill();\n }", "@Override\n protected void paintBackground(Graphics2D g) {\n super.paintBackground(g);\n if (Game.level == 0) {\n g.drawImage(bg, 0, 0, this);\n } else if (Game.level == 1) {\n g.drawImage(bg, 0, 0, this);\n } else if (Game.level == 2) {\n g.drawImage(bg2, 0, 0, this);\n } else if (Game.level == 3) {\n g.drawImage(bg3, 0, 0, this);\n }\n\n }", "public void preGameMode(){\n\n ImageIcon icon = new ImageIcon(getClass().getResource(\"/title.jpg\"));\n Image image=icon.getImage();\n background = new PBackground(image);\n this.repaint();\n background.setLayout(null);\n this.add(background);\n\n\n // Prepare the body container\n container = new PanelContainer();\n container.setBounds(230,170, 700, 400);\n background.add(container);\n\n this.setVisible(true);\n }", "@NonNull\n public Builder setBackground(@NonNull Background background) {\n mImpl.setBackground(background.toProto());\n mFingerprint.recordPropertyUpdate(\n 5, checkNotNull(background.getFingerprint()).aggregateValueAsInt());\n return this;\n }", "public void setBackground(int r, int g, int b)\r\n {\r\n \tbg.setColor(new Color3f(ptools.ColorInt2Float(r), ptools.ColorInt2Float(g), ptools.ColorInt2Float(b)));\r\n }", "@Override\n public void setBackgroundColor(int backgroundColor) {\n }", "@Override\n public void background(Background background) {\n if (testedFeature.getBackground() == null) {\n testedFeature.setBackground(new ScenarioDefinition());\n testedFeature.getBackground().setType(ScenarioType.BACKGROUND);\n setDescribedStatementAttributes(testedFeature.getBackground(), background);\n\n backgroundSteps = true;\n }\n\n backGroundStepsRemain = backgroundStepsCount;\n }", "public void setBackgroundImage(BufferedImage backgroundImage){\n\t\tcurrentBackgroundImage = backgroundImage;\n\t\tbackgroundPanel.changeBackground(backgroundImage);\n\t}", "private void initBackground() throws IOException{\n\t\tBufferedImage backgroundImage = ImageLoader.getBufferedImage(BACKGROUND_IMAGE_PATH);\n\t\tmainWindow.setBackgroundImage(backgroundImage);\n\t}", "public StockDateTime setBackground(String background) {\n if (jsBase == null) {\n this.background = null;\n this.background1 = null;\n this.background2 = null;\n \n this.background = background;\n } else {\n this.background = background;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".background(%s)\", wrapQuotes(background)));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".background(%s);\", wrapQuotes(background)));\n js.setLength(0);\n }\n }\n return this;\n }", "public Texture setBackgroundImage(){\n\t\tList<String> backgroundSelection = new ArrayList<String>();\n\t\t\n//\t\tAdds the universal background images to the List\n\t\ttry{Element root = new XmlReader().parse(Gdx.files.internal(\"gameImages.xml\"));\n\t\tElement selection = root.getChildByName(\"Universal\");\n\t\tArray<Element> backgroundArray = selection.getChildrenByName(\"background\");\n\t\tfor (int i = 0; i < backgroundArray.size; i++)\n\t\t\tbackgroundSelection.add(backgroundArray.get(i).getText());\n\t\t}\n\t\tcatch(IOException e){\n\t\t}\n\t\t\n//\t\tUse of xml file readers to add strings to the balls List\n\t\ttry{Element root = new XmlReader().parse(Gdx.files.internal(\"gameImages.xml\"));\n\t\tElement selection = root.getChildByName(\"artist\");\n\t\tElement artist = selection.getChildByName(formatName(game.getArtist()));\n\t\tArray<Element> backgroundSelectArray = artist.getChildrenByName(\"background\");\n\t\tfor (int i = 0; i < backgroundSelectArray.size; i++)\n\t\t\tbackgroundSelection.add(backgroundSelectArray.get(i).getText());\n\t\t}\n\t\tcatch(IOException e){\n\t\t}\n\t\t\n//\t\tRandom number generator to choose a random image as the ball image\n\t\tint randomBackground = (int) Math.random() * backgroundSelection.size();\n\t\tFileHandle backgroundImage = Gdx.files.internal(backgroundSelection.get(randomBackground));\n\t\treturn new Texture(backgroundImage) ;\n\t}", "public void setBackColor( Color bgColor ) {\r\n backColor = bgColor;\r\n }", "private void drawBackground() {\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(BACKGROUND_RESOURCE);\r\n\t\tString text = \"Nitro Teleport Waypoints\";\r\n\t\tint posX = (width - SIZE_X) / 2;\r\n\t\tint posY = (height - SIZE_Y) / 2;\r\n\t\tint strWidth = this.fontRendererObj.getStringWidth(text);\r\n\r\n\t\tthis.drawTexturedModalRect(posX, posY, 0, 0, SIZE_X, SIZE_Y);\r\n\t\tthis.drawCenteredString(this.fontRendererObj, text, width / 2, posY - 17, 0xFFFFFF);\r\n\t}", "public void updateBackground(Color color) {\r\n background = color;\r\n }", "public void setHasBackground(boolean hasBackground){\n this.hasBackground = hasBackground;\n }", "private void setUpBackGround() {\n try {\n setBackGround(new Image(new FileInputStream(\"images/backgrounds/battlemap0_background@2x.png\")));\n } catch (FileNotFoundException ignored) {\n }\n\n\n try {\n ImageView middleGround = new ImageView(new Image(new FileInputStream(\"images/gameIcons/middleGround/battlemap0_middleground.png\")));\n middleGround.setFitHeight(windowHeight);\n middleGround.setFitWidth(windowWidth);\n addComponent(new NodeWrapper(middleGround));\n } catch (FileNotFoundException ignored) {\n }\n\n try {\n ImageView foreGround = new ImageView(new Image(new FileInputStream(\"images/foregrounds/battlemap0_foreground_002@2x.png\")));\n foreGround.setPreserveRatio(true);\n foreGround.setFitWidth(windowHeight / 3);\n foreGround.relocate(windowWidth - foreGround.getFitWidth(), windowHeight - foreGround.getFitWidth() * foreGround.getImage().getHeight() / foreGround.getImage().getWidth());\n addComponent(new NodeWrapper(foreGround));\n } catch (FileNotFoundException ignored) {\n }\n }", "public void setBgFlags(java.lang.Integer bgFlags) {\r\n this.bgFlags = bgFlags;\r\n }", "public void setBackgroundColor(Color bkgColor) {\n setValue(PROP_BACKGROUND_COLOR, bkgColor);\n }", "@Override\n public void setBackgroundPattern(Pattern pattern) {\n }", "public void setBgColor (final Color bgColor) {\n\t\tif (this.isDisposeBGImgWhenDone && this.bgImage != null) {\n\t\t\tthis.bgImage.getTexture().dispose();\n\t\t}\n\n\t\tif (this.bgColor != null) {\n\t\t\tthis.bgColor.dispose();\n\t\t}\n\n\t\tthis.bgColor = EasyGL.getPixelTexture(bgColor, 1, 1);\n\t\tthis.bgImage = null;\n\t}", "public StockDateTime setBackground(Boolean background1) {\n if (jsBase == null) {\n this.background = null;\n this.background1 = null;\n this.background2 = null;\n \n this.background1 = background1;\n } else {\n this.background1 = background1;\n if (!isChain) {\n js.append(jsBase);\n isChain = true;\n }\n \n js.append(String.format(Locale.US, \".background(%b)\", background1));\n\n if (isRendered) {\n onChangeListener.onChange(String.format(Locale.US, jsBase + \".background(%b);\", background1));\n js.setLength(0);\n }\n }\n return this;\n }", "public void setBackground(Color col) {\n\t\tthis.background = col;\n\t}", "public EnemyBackground(Color color) {\r\n this.color = color;\r\n }", "public void ConfiguracionBackground(int nNormal, int nFocus)\n {\n // Establecemos los valores de los background\n m_nBckNormal = nNormal;\n m_nBckFocus = nFocus;\n }", "public void initGui() {\n setOpaque(true);\n // Setter utgangsfargen til ruten\n if (this.farge.equals(\"hvit\")) setBackground(GUISettings.Hvit());\n if (this.farge.equals(\"sort\")) setBackground(GUISettings.Sort());\n if (this.farge.equals(\"roed\")) setBackground(GUISettings.Roed());\n if (this.farge.equals(\"blaa\")) setBackground(GUISettings.Blaa());\n }", "public Background(GameLevel w, int width, int height) {\n super(w, 800, 800);\n this.world = w;\n //this.gameLevel = gameLevel;\n try {\n //All images being read from their respective image files and being assigned to variables.\n bg = ImageIO.read(new File(\"data/bg.png\"));\n bg2 = ImageIO.read(new File(\"data/bg2.png\"));\n bg3 = ImageIO.read(new File(\"data/bg3.png\"));\n fg = ImageIO.read(new File(\"data/clouds.png\"));\n win = ImageIO.read(new File(\"data/win.jpg\"));\n dead = ImageIO.read(new File(\"data/dead.jpg\"));\n scoreBoard = ImageIO.read(new File(\"data/scoreBoard.png\"));\n bulletBillSelect = ImageIO.read(new File(\"data/GUI/billSelect.png\"));\n bulletSelect = ImageIO.read(new File(\"data/GUI/bulletSelect.png\"));\n arrow = ImageIO.read(new File(\"data/GUI/arrow.png\"));\n health = ImageIO.read(new File(\"data/GUI/health.png\"));\n black = ImageIO.read(new File(\"data/GUI/black.jpg\"));\n\n\n } catch (IOException ex) {\n System.out.println(\"System Error\");\n }\n }", "@Override\r\n\tpublic void renderBackground() {\n\r\n\t}", "private void setTheBackground(){\n\t\tString user_choice = prefs.getString(\"pref_background_choice\",\"blue_glass\");\n\t\tLog.d(\"User Background Choice\", user_choice);\n\t\tLinearLayout layout = (LinearLayout) findViewById(R.id.activity_mail_select_layout);\n\t\tif (user_choice.equalsIgnoreCase(\"blue_glass\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.blue_glass));\n\t\t} else if (user_choice.equalsIgnoreCase(\"blue_oil_painting\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.blue_oil_painting));\n\t\t} else if (user_choice.equalsIgnoreCase(\"stained_glass_blue\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.stained_glass_blue));\n\t\t} else if (user_choice.equalsIgnoreCase(\"light_blue_boxes\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.light_blue_boxes));\n\t\t} else if (user_choice.equalsIgnoreCase(\"light_silver_background\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.light_silver_background));\n\t\t} else if (user_choice.equalsIgnoreCase(\"simple_grey\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.simple_grey));\n\t\t} else if (user_choice.equalsIgnoreCase(\"simple_apricot\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.simple_apricot));\n\t\t} else if (user_choice.equalsIgnoreCase(\"simple_teal\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.simple_teal));\n\t\t} else if (user_choice.equalsIgnoreCase(\"xmas\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.xmas));\n\t\t} else if (user_choice.equalsIgnoreCase(\"lacuna_logo\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.lacuna_logo));\n\t\t} else {\n\t\t}\n\t}", "public static void drawBackground(MatrixStack matrices, ContainerScreen<?> screen, ResourceLocation background) {\n RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);\n screen.getMinecraft().getTextureManager().bindTexture(background);\n screen.blit(matrices, screen.guiLeft, screen.guiTop, 0, 0, screen.xSize, screen.ySize);\n }", "private static void drawUniverse(String background) {\n StdDraw.picture(0.0, 0.0, background);\n }", "public void updateBackgroundForAnimator() {\n resetAnimationBackgroundAnimator();\n forAllWindows(this.mUpdateWallpaperForAnimator, true);\n }", "public abstract void setBackgroundPressed(final int rgba);", "public InputImageManager(int background)\n {\n this.background = background;\n }", "public void setScreen(Scene scene) {\n\t\tCanvas canvas = (Canvas) scene.lookup(\"#firstCanvas\");\n\t\t//Button testbutt = (Button) scene.lookup(\"#StartButt\");\n\t\t//testbutt.getText();\n\t\tGraphicsContext gc = canvas.getGraphicsContext2D();\n\t\tbackgroundMovingX += backgroundMovingSpeed;\n\t\t//System.out.println(backgroundMovingX);\n\t\tif(backgroundMovingX >= maximumBackgroudPos || backgroundMovingX <= minimumBackgroudPos) {\n\t\t\tbackgroundMovingSpeed=-backgroundMovingSpeed;\n\t\t}\n\t\tWritableImage croppedImage = new WritableImage(BackgroundImageHolder.fisrtSceneBackgroundImage.getPixelReader(),\n\t\t\t\tstartCropX, startCropY, GameConfig.screenWidth, GameConfig.screenHeight);\n\t\tgc.drawImage(croppedImage, backgroundMovingX, startPoint);\n\t}", "private void clearBackground() {\r\n\t\tg.setColor(Color.WHITE);\r\n\t\tg.fillRect(0,0, TetrisGame.PANEL_WIDTH * TetrisGame.SQUARE_LENGTH,\r\n\t\t\t\t TetrisGame.PANEL_HEIGHT * TetrisGame.SQUARE_LENGTH);\r\n\t}", "private void drawBackground() {\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(0,0,512, 512);\n\t\t\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(128, 0, 256, 512);\n\t}", "protected void drawForegroundToBackground() {\n if (backgroundColor == null) { return; }\n\n final BufferedImage backgroundBufferedImage = new BufferedImage(dimension.width, dimension.height, this.bufferedImage.getType());\n final Graphics graphics = backgroundBufferedImage.getGraphics();\n\n // draw current color\n graphics.setColor(backgroundColor);\n graphics.fillRect(0, 0, dimension.width, dimension.height);\n graphics.drawImage(bufferedImage, 0, 0, null);\n\n // draw back to original\n final Graphics graphics2 = bufferedImage.getGraphics();\n graphics2.drawImage(backgroundBufferedImage, 0, 0, null);\n }", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0.8f, 0.3f, 0.3f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n bgViewPort.apply();\n batch.setProjectionMatrix(bgViewPort.getCamera().combined);\n batch.begin();\n batch.draw(background,0,0);\n batch.end();\n\n stage.getViewport().apply();\n stage.draw();\n }", "public void resetBG() {\n\t\t\tfor(int i = 0; i < colonnes.size(); i++) {\n\t\t\t\tcolonnes.get(i).resetBG();\n\t\t\t}\n\t\t}", "public void printBackground() {\n\t\tthis.gc.setFill(Color.BLACK);\n\t\tthis.gc.fillRect(0, 0, canvas.getWidth(), canvas.getHeight());\n\t}", "public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }", "@Override\n\tpublic void render(Graphics g) {\n\t\tg.drawImage(Game.background, 0, 0, 5200, 700, null);\n\t}", "private void resetBackgroundSprite(Texture newSpriteTexture) {\n backgroundSprite = new Sprite(newSpriteTexture);\n backgroundSprite.setSize(screenWidth, screenHeight);\n backgroundSprite.setPosition(0, 0);\n }", "private void applyBackgroundColor() {\r\n\t\tthis.control.setBackground(PromptSupport.getBackground(this.control));\r\n\t}", "public Background() {\n\t\ttime = 0;\n\t\tRandom rand = new Random();\n\t\trandomGrid = new Vector2[101][101];\n\t\tfor (int i = 0; i < randomGrid.length; i++) {\n\t\t\tfor (int j = 0; j < randomGrid[0].length; j++) {\n\t\t\t\trandomGrid[i][j] = new Vector2(rand.nextFloat() - 0.5f, rand.nextFloat() - 0.5f).nor();\n\t\t\t}\n\t\t}\n\n\t\tshapeRenderer = new ShapeRenderer();\n\t}", "protected void paintBackground(Graphics g){\n Dimension size = getSize();\n\n g.setColor(properties.backgroundColor);\n g.fillRect(0,0,size.width,size.height);\n\n }", "public abstract void setCurBackground(Color colr);", "private void setBgColor(Color c)\n\t{\n\t\teToPower.setBackground (c);\n\t\ttwoPower.setBackground (c);\n\t\tln.setBackground (c);\n\t\txCube.setBackground (c);\n\t\txSquare.setBackground (c);\n\t\tdel.setBackground (c);\n\t\tcubeRoot.setBackground (c);\n\t\tC.setBackground (c);\n\t\tnegate.setBackground (c);\n\t\tsquareRoot.setBackground (c);\n\t\tnine.setBackground (c);\n\t\teight.setBackground (c);\n\t\tseven.setBackground (c);\n\t\tsix.setBackground (c);\n\t\tfive.setBackground (c);\n\t\tfour.setBackground (c);\n\t\tthree.setBackground (c);\n\t\ttwo.setBackground (c);\n\t\tone.setBackground (c);\n\t\tzero.setBackground (c);\n\t\tdivide.setBackground (c);\n\t\tpercent.setBackground (c);\n\t\tmultiply.setBackground (c);\n\t\treciprocal.setBackground (c);\n\t\tadd.setBackground (c);\n\t\tsubtract.setBackground (c);\n\t\tdecimalPoint.setBackground (c);\n\t\tequals.setBackground (c);\n\t\te.setBackground (c);\n\t\tPI.setBackground (c);\n\t\tentry.setBackground (c);\n\t\t\n\t\tmenuBar.setBackground (c);\n\t\tfileMenu.setBackground (c);\n\t\ttoolsMenu.setBackground (c);\n\t\thelpMenu.setBackground (c);\n\t\t\n\t\texit.setBackground (c);\n\t\tsettings.setBackground (c);\n\t\tabout.setBackground (c);\n\t\treadme.setBackground (c);\n\t}", "protected void setBoxBackground() { Console.setBackground(Console.RED); }", "public void chooseBackgroundColor(){\n currentBackgroundColor = backgroundColorPicker.getValue();\n draw();\n }", "public static void makeBackgroundGray(){\r\n\t\tStdDraw.clear(StdDraw.LIGHT_GRAY);\r\n\t}", "public void setBackgroundImage(String url) {\n\t\t this.backgroundImage=url;\n\t}", "private Texture createBackground() {\n Pixmap backgroundPixmap = new Pixmap(1, 1, Pixmap.Format.RGBA8888);\n backgroundPixmap.setColor(0, 0, 0, 0.3f);\n backgroundPixmap.fill();\n Texture texture = new Texture(backgroundPixmap);\n backgroundPixmap.dispose();\n return texture;\n }", "protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }", "public void setBackgroundChanged(boolean backgroundChanged) {\n this.backgroundChanged = backgroundChanged;\n }", "private void drawBackground(Graphics g){\r\n g.setColor(Colors.ColorAlpha(Colors.blacks,a1));\r\n g.fillRect(0,0,w,h);\r\n if(moving){\r\n g.drawImage(Assets.burst.get((int)((game.counter%8)*0.625)),(int)(w*0.472),(int)(h*0.455),null);\r\n g.drawImage(Assets.sparks.get(((game.counter%20)/2)),(int)(w*0.465),(int)(h*0.345),null);\r\n }\r\n drawWires(g);\r\n }", "public Background getBackground() {\r\n return this.background;\r\n }", "public void setBackgroundPainted(boolean backPainted) {\r\n boolean old = isBackgroundPainted();\r\n this.backPainted = backPainted;\r\n firePropertyChange(\"backgroundPainted\", old, isBackgroundPainted());\r\n }", "public void begin() {\n\t\tg.setColor(bgColor);\n\t\tg.fillRect(0, 0, width, height);\n\t\tg.setColor(Color.black);\n\t}", "public int getBackground() {\n return background;\n }", "Sprite getBackground();", "private void updateBackground() {\n \t\t\t\ttextRed.setText(\"\" + redBar.getProgress());\n \t\t\t\ttextGreen.setText(\"\" + greenBar.getProgress());\n \t\t\t\ttextBlue.setText(\"\" + blueBar.getProgress());\n \t\t\t\ttextAlpha.setText(\"\" + alphaBar.getProgress());\n \t\t\t\tcolorTest.setBackgroundColor(Color.argb(alphaBar.getProgress(), redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n \t\t\t}", "private void generateBackground(Universe universe) throws SAXException {\n File bgFile = universe.getScene().getBackgroundFile();\n if(bgFile != null){\n saver.addAttribute(\"src\", XmlSaver.CDATA, relativePath(bgFile.getAbsolutePath()));\n } \n// }else{\n// Color3f bgColor = new Color3f(universe.getScene().getBackgroundColor());\n// saver.startTag(\"background\", Converter.tuple3fToString(bgColor));\n// }\n Color3f bgColor = new Color3f(universe.getScene().getBackgroundColor());\n saver.startTag(\"background\", Converter.tuple3fToString(bgColor));\n }", "private void setBackgrond(){\t\n this.background = new JLabel();\n this.background.setIcon(backgrondP);\n this.background.setVisible(true);\n this.background.setLocation(0, 0);\n this.background.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.add(background);\n\t}", "private void drawBackground(Graphics2D g2d, ScreenParameters screenParameters) {\n Composite defaultComposite = g2d.getComposite();\n g2d.setComposite(LOW_OPACITY);\n g2d.drawImage(background, 0, 0, screenParameters.x, screenParameters.y, null);\n g2d.setComposite(defaultComposite);\n }", "private void loadBackground() {\n RelativeLayout thisRL = (RelativeLayout) findViewById(R.id.relativeLayout);\n\n // randomly chooses a background image for the splash screen\n int r = new Random().nextInt(NUM_BACKGROUNDS);\n switch (r) {\n case 0:\n thisRL.setBackgroundResource(R.drawable.splash_cliff);\n break;\n case 1:\n thisRL.setBackgroundResource(R.drawable.splash_notebook);\n break;\n case 2:\n thisRL.setBackgroundResource(R.drawable.splash_map);\n break;\n default:\n thisRL.setBackgroundResource(R.drawable.splash_notebook);\n }\n }", "public void loadBackground() {\n try {\n File file = new File(\"src/resources/fondo.png\");\n this.background = ImageIO.read(file);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void paintComponent (Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawImage(background, 0, 0, 800, 660, null);\r\n\t}", "public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }", "private void updateBackgroundID() {\n if ((x + 1) % 2 == (y + 1) % 2) {\n switch (c) {\n case BLACK:\n background = R.drawable.pawngame_black_black;\n break;\n case WHITE:\n background = R.drawable.pawngame_black_white;\n break;\n default:\n background = R.drawable.pawngame_black_empty;\n }\n } else {\n switch (c) {\n case BLACK:\n background = R.drawable.pawngame_white_black;\n break;\n case WHITE:\n background = R.drawable.pawngame_white_white;\n break;\n default:\n background = R.drawable.pawngame_white_empty;\n }\n }\n }", "public void setBackgroundColor(String backgroundColor) {\n\t\tthis.backgroundColor = backgroundColor;\n\t\tthis.handleConfig(\"backgroundColor\", backgroundColor);\n\t}", "@Override\r\n public Sprite getBackground() {\r\n return new Level3Background();\r\n }", "public void setBackground(String imagePath) {\n\t\ttry {\n\t\t\timagePath = imagePath.replace(\"\\\\\", \"/\");\n\t\t\tString pathString = new File(imagePath).toURI().toURL().toString();\n\t\t\tbackgroundImagePane.setStyle(\"-fx-background-image:url(\\\"\" + pathString + \"\\\");\");\n\t\t} catch (MalformedURLException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void renderBackground(Graphics g)\n\t{\n\t\tg.drawImage(Drawing.getImage(\"backgrounds/sky1.png\"), 0, 0, null);\n\t\tg.drawImage(Drawing.getImage(\"backgrounds/grass1.png\"), 0, 530, null);\n\t}", "public void draw() {\n background(0);\n}", "void setupBackgrounds() {\n // initialize the background tool\n BackgroundTool bgTool = new BackgroundTool(codeBaseString);\n bgSwitch = bgTool.getSwitch();\n bgChooser = bgTool.getChooser();\n }", "public Paint getBackground() {\r\n return background;\r\n }", "public void setDropActiveBackground() {\n setBackgroundDrawable(getDropActiveBgDrawable());\n }", "public void setBackground(String texture)\r\n {\r\n \tFileInputStream inFile = null;\r\n \t try\r\n \t {\r\n \t inFile = new FileInputStream(texture);\r\n \t JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(inFile);\r\n \t BufferedImage bgBuffImg = decoder.decodeAsBufferedImage();\r\n \t ImageComponent2D bgImange = new ImageComponent2D(BufferedImage.TYPE_INT_RGB, bgBuffImg);\r\n \t bg.setImage(bgImange);\r\n \t inFile.close();\r\n \t }\r\n \t catch (Exception e)\r\n\t\t{\r\n \t \tSystem.out.println(e + \"\\n\" + \"Texture Import failed!\");\r\n \t }\r\n }" ]
[ "0.74265456", "0.72581613", "0.7154386", "0.71426487", "0.71051496", "0.70587164", "0.6771119", "0.6762572", "0.6648491", "0.66039413", "0.6580707", "0.65592986", "0.65129006", "0.6490874", "0.64862126", "0.64406085", "0.64060414", "0.64039326", "0.6373784", "0.63346803", "0.6320658", "0.63093066", "0.6293399", "0.62906694", "0.6275354", "0.62603366", "0.624056", "0.6237813", "0.6225048", "0.6223245", "0.62097436", "0.615141", "0.6144748", "0.61338764", "0.6133428", "0.611917", "0.6115545", "0.61096483", "0.60998654", "0.6091954", "0.6085725", "0.6069703", "0.60472006", "0.6032264", "0.601253", "0.60031825", "0.6001414", "0.5994994", "0.5952054", "0.5946995", "0.5934819", "0.5931204", "0.592904", "0.59121996", "0.5895686", "0.5894377", "0.5891128", "0.5876743", "0.587123", "0.5867587", "0.58628356", "0.58602303", "0.58595103", "0.5857816", "0.5852289", "0.5843881", "0.5840534", "0.58395755", "0.58291215", "0.582706", "0.5819286", "0.5817354", "0.5816908", "0.58117944", "0.581089", "0.5804097", "0.579723", "0.57939565", "0.5782372", "0.5782116", "0.57771623", "0.57762325", "0.5773338", "0.57697445", "0.5763873", "0.5761299", "0.5756452", "0.57494324", "0.5743057", "0.5742087", "0.5741562", "0.57413083", "0.57344556", "0.5731629", "0.5728152", "0.57247144", "0.5715502", "0.5711222", "0.57066834", "0.57048136", "0.57026124" ]
0.0
-1
Returns the current Question.
public Question getQuestion() { return currentQuestion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Question getCurrentQuestion() {\n\t\treturn currentQuestion;\n\t}", "public Question getCurrentQuestion() {\n Question question = null;\n for (Question q : questions) {\n if (q.getSequence() == sequence) {\n question = q;\n break;\n }\n }\n return question;\n }", "public Question getQuestion() {\n\t\treturn questionToAsk;\n\t}", "@Override\n public final GameQuestion getActiveQuestion() {\n return this.activeQuestion;\n }", "public Question getQuestion() {\n return this.question;\n }", "public String getQuestion() {\n\t\treturn question;\n\t}", "public String getQuestion() {\n return mQuestion;\n }", "public TextField getQuestion() {\r\n\t\tquestion.setPromptText(\"question\");\r\n\t\treturn question;\r\n\t}", "public String getQuestion() {\n return question;\n }", "public String getQuestion() {\n return question;\n }", "Question getQuestion();", "public Question getFirstQ()\n {\n return questionList.get(0);\n }", "public Prompt getCurrent() {\n\t\t\treturn current;\n\t\t}", "public Question getQuestion() {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_question == null)\n jcasType.jcas.throwFeatMissing(\"question\", \"hw1.qa.Problem\");\n return (Question)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Problem_Type)jcasType).casFeatCode_question)));}", "public HelpTopic getCurrentItem() {\n return position < 0 ? null : getItem(position);\n }", "public QuestionModel getDefaultQuestion() {\n\t\treturn questionList.get(0);\n\t}", "public QuestionElement getQuestion(){\r\n\t\treturn ques;\r\n\t}", "@Override\n\tpublic String getQuest() {\n\t\t// TODO Auto-generated method stub\n\t\treturn this.question;\n\t}", "@Override\n\tpublic Question getQuestion(Integer qid) {\n\t\treturn questionDao.getEntity(qid);\n\t}", "Question getFirstQuestion();", "public QuestionElements getQuestionAccess() {\n\t\treturn (pQuestion != null) ? pQuestion : (pQuestion = new QuestionElements());\n\t}", "public static Question getAskedQuestion(int currentUserId) throws ApplicationException {\n Question result = null;\n\n Connection connection = null;\n try {\n connection = ConnectionPool.getConnection();\n result = QuestionDatabaseAccess.getAskedQuestion(currentUserId, connection);\n } finally {\n ConnectionPool.releaseConnection(connection);\n }\n\n return result;\n\n }", "public Question getQuestion() {\n if (QuestionNGram_Type.featOkTst && ((QuestionNGram_Type)jcasType).casFeat_question == null)\n jcasType.jcas.throwFeatMissing(\"question\", \"edu.cmu.deiis.types.QuestionNGram\");\n return (Question)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((QuestionNGram_Type)jcasType).casFeatCode_question)));}", "public static Question getModifiedQuestion(int currentUserId) throws ApplicationException {\n Question result = null;\n\n Connection connection = null;\n try {\n connection = ConnectionPool.getConnection();\n result = QuestionDatabaseAccess.getAskedQuestion(currentUserId, connection);\n } finally {\n ConnectionPool.releaseConnection(connection);\n }\n\n return result;\n\n }", "public SurveyQuestion getQuestion (int idx)\n {\n if (idx >= 0 && idx < questions.size()) {\n return questions.get(idx);\n }\n return null;\n }", "public Question getQuestion(String questionId) {\r\n Question[] questions = currentProcessInstance.getQuestions();\r\n Question foundQuestion = null;\r\n \r\n for (int i = 0; foundQuestion == null && i < questions.length; i++) {\r\n if (questions[i].getId().equals(questionId))\r\n foundQuestion = questions[i];\r\n }\r\n \r\n return foundQuestion;\r\n }", "public int getCurrentChoice() {\n return currentChoice;\n }", "public Object getModel() {\n\t\treturn quest;\r\n\t}", "public int getOpenQuestion(){\n\t\t\treturn openQuestion;\n\t\t}", "public String getQuestionContent() {\n return questionContent;\n }", "public int getQuestionNumber() {\r\n\t\treturn questionNumber;\r\n\t}", "public int getIdQuestion() {\r\n return idQuestion;\r\n }", "public int getIdQuestion() {\n return idQuestion;\n }", "public Integer getQuestionNumber()\n {\n return questionNumber;\n }", "public String getQuestion() {\n\t\treturn QAUTHOR + book.getTitle() + \"?\";\n\t}", "public Slide getCurrentSlide() {\n\t\treturn getSlide(currentSlideNumber);\n\t}", "public String getQuestionString() \n {\n return originalQuestionString;\n }", "public static QuestionSet getQuestionSet() {\n\t\treturn questionSet;\n\t}", "public int getQuestionID() {\n return questionID;\n }", "public int getQuestionId() {\n return questionId;\n }", "public Integer getQuestionId() {\n return questionId;\n }", "public Number getCurrentQtr() {\r\n return (Number) getAttributeInternal(CURRENTQTR);\r\n }", "public String getQuestionname() {\n return questionname;\n }", "public MCQChoice getAnswer()\n\t{\n\t\treturn mcqAnswer;\n\t}", "public int getMemberQuestion() { // Returns the question\n return this.memberQuestion;\n }", "public int getQuestionKey() {\r\n\t\treturn questionKey;\r\n\t}", "public String getQuestionId() \n {\n return questionId;\n }", "public int getQuestionId() {\n return questionId;\n }", "public String getQuestionType() {\n return questionType;\n }", "public int getQuestionType() {\r\n\t\treturn questionType;\r\n\t}", "Question getQuestion(String questionId);", "protected static Question getAskedQuestion(int currentUserId, Connection connection) throws ApplicationException {\n Question result = new Question();\n\n StringBuilder query = new StringBuilder(\"\");\n query.append(\"SELECT * FROM \" + TABLE);\n query.append(\" WHERE \" + COL_USER_ID);\n query.append(\"=\" + currentUserId);\n query.append(\" ORDER BY \" + COL_QUESTION_TIMESTAMP);\n query.append(\" DESC LIMIT 1; \");\n\n PreparedStatement statement = null;\n try {\n try {\n // set parameters and execute query\n statement = connection.prepareStatement(query.toString());\n\n ResultSet resultSet = statement.executeQuery();\n result = convertToInstance(resultSet);\n\n } finally {\n if (statement != null) {\n statement.close();\n }\n }\n } catch (SQLException e) {\n throw new ApplicationException(\"Failed to fetch\", e);\n }\n\n return result;\n }", "public String getQuestionid() {\n return questionid;\n }", "public Form getCurrentForm() {\n return currentForm;\n }", "private void setCurrentQuestion(){\n\tfor(int i=0; i<QuestionsTree.length;i++){\n\t\tif(QuestionsTree[i][0].equals(currentRule)){\n\t\t\tcurrentQuestion = QuestionsTree[i][1];\n\t\t}\n\t}\n}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn question;\r\n\t}", "public Questions getQuestion(int qid) {\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tQuestions quest = (Questions) session.get(Questions.class, qid);\n\t\tsession.close();\n\t\treturn quest;\n\t}", "public PlayableItem getCurrentPlayingItem() {\n\t\treturn currentPlayingItem;\n\t}", "public String getQuestioncontent() {\n return questioncontent;\n }", "public Integer getQuestionType() {\n return questionType;\n }", "@Override\n\tpublic PMQuestions getModel() {\n\t\treturn pmQuestions;\n\t}", "public QuestionModel getNextQuestion() {\n\t\tindex++;\n\t\treturn questionList.get(index % questionList.size());\n\t}", "public List<Question> getQuestions() {\n return questionList;\n }", "public String getCurrentItem() {\n\t\treturn currentItem;\n\t}", "public String getNextQuestion() {\r\n\t\t// Condition for getting the exact question, starting from the first question in\r\n\t\t// the list. This will happen until the method reaches the end of the list with\r\n\t\t// questions.\r\n\t\tif (counter < questions.size()) {\r\n\t\t\tnextQuestion = questions.get(counter).getQuestion();\r\n\t\t\t// Incrementing the counter with one, so next time the method is called it will\r\n\t\t\t// get the following question from the list.\r\n\t\t\tcounter++;\r\n\t\t}\r\n\t\t// When the end of the list is reached the next question will take this value.\r\n\t\telse {\r\n\t\t\tnextQuestion = \"You completed the test!\";\r\n\t\t}\r\n\t\treturn nextQuestion;\r\n\r\n\t}", "public String getActiveChallengesAnswer() {\n return categories.get(indexOfActiveCategory).getActiveChallenge().getAnswer();\n }", "public Question next() {\n\t\tif (this.questions.size() == this.iter) {\n\t\t\treturn null;\n\t\t}\n\t\tQuestion q = this.questions.get(this.iter);\n\t\tthis.iter++;\n\t\treturn q;\n\t}", "public String get_question(){return this._question;}", "public boolean getStage()\n {\n return atQuestionStage;\n }", "Question getLastQuestion();", "public Integer getQuestionid() {\n return questionid;\n }", "public List<Question> getQuestions() {\n\t\treturn this.questions;\n\t}", "public Survey getSurvey() {\n return this.survey;\n }", "public String getQq() {\n return qq;\n }", "public String getQq() {\n return qq;\n }", "public void question() {\n\t\tlead.answer(this);\n\t}", "public Integer getCultureQuestionId() {\n return cultureQuestionId;\n }", "public java.lang.String getTestQuestion() {\r\n return testQuestion;\r\n }", "public static Question getFollowUpQuestion(Question entity) throws ApplicationException {\n Question result = null;\n\n Connection connection = null;\n\n try {\n connection = ConnectionPool.getConnection();\n result = QuestionDatabaseAccess.getFollowUpFollowUpQuestion(entity, connection);\n } finally {\n ConnectionPool.releaseConnection(connection);\n }\n\n return result;\n }", "public String getQq() {\r\n\t\treturn qq;\r\n\t}", "public ArrayList<Question> getQuestions() {\r\n\t\treturn this.questions;\r\n\t}", "public int getQ() {\n System.out.println(\"q is: \" + q);\n return q;\n }", "public VitalWorksite getRelatedWorksite() {\n return question.getRelatedWorksite();\n }", "public Long getQuestionId();", "public String getQq() {\r\n return qq;\r\n }", "public String getQq() {\r\n return qq;\r\n }", "public void setCurrentQuestion(Question question) {\n\t\tcurrentQuestion = question;\n\t}", "protected Scope getCurrentScope() {\n return currentScope;\n }", "public Answer getAnswer(){\n\t\treturn answer; /** use relation -> DecideAnswer.java */\n\t}", "public String getQuestionNo() {\n return questionNo;\n }", "public QuizSession() {\n\t\tQuestionManager qm = QuestionManager.getInstance();\n\t\tquestions = qm.getQuestionList();\n\t\toutstandingQuestions = new LinkedList<MultiQA>();\n\t\tfor (MultiQA multiQA: questions) {\n\t\t\toutstandingQuestions.add(multiQA);\n\t\t}\n\t\ttry {\n\t\t\tgetNextQuiz10();\n\t\t} catch (EndOfQuestionsException e) {\n\t\t\tthrow new IllegalStateException(\"no questions!\");\n\t\t}\n\t}", "Question getQuestionInPick(String questionId);", "public Timesheet getCurrentTimesheet() {\n\t\treturn currentTimesheet;\n\t}", "public QuestContentsExtImpl getqc() {\n return (QuestContentsExtImpl) getEntity(0);\n }", "public synchronized IWorkbenchWindow getCurrentWindow() {\n return currentWindow;\n }", "public MovieQuestion getQuestion() {\n\t\tMovieQuestion newQ = new MovieQuestion();\n\t\tint row;\n\t\tCursor c;\n\t\tboolean okToAdd = false;\n\n\t\t// Pick random question\n\t\tswitch ((int)(Math.random()*9)) {\n\t\tcase 0: // Who directed the movie %s?\n\t\t\tc = mDb.rawQuery(\"SELECT * FROM movies\", null);\n\t\t\trow = (int)(Math.random()*c.getCount());\n\t\t\tc.moveToPosition(row);\n\t\t\tnewQ.question = String.format(QuestionTemplates.QUESTIONS[0], c.getString(1));\n\t\t\tnewQ.answers[0] = c.getString(3);\n\t\t\t\n\t\t\tLog.i(\"NewQuestion\", \"Correct:\" + c.getString(3));\n\t\t\t\n\t\t\t// Fill answers with unique wrong values\n\t\t\tfor(int i = 1; i < 4;) {\n\t\t\t\trow = (int)(Math.random()*c.getCount());\n\t\t\t\tc.moveToPosition(row);\n\t\t\t\tLog.i(\"NewQuestion\", \"Wrong:\" + c.getString(3));\n\t\t\t\t// i < 4, so we do not increment indefinitely.\n\t\t\t\tfor(int j = 0; j < i && i < 4; j++) {\n\t\t\t\t\tif(newQ.answers[j].equals(c.getString(3))) {\n\t\t\t\t\t\tokToAdd = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tokToAdd = true;\n\t\t\t\t}\n\t\t\t\tif(okToAdd)\n\t\t\t\t\tnewQ.answers[i++] = c.getString(3);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 1: // When was the movie %s released?\n\t\t\tc = mDb.rawQuery(\"SELECT * FROM movies\", null);\n\t\t\trow = (int)(Math.random()*c.getCount());\n\t\t\tc.moveToPosition(row);\n\t\t\tnewQ.question = String.format(QuestionTemplates.QUESTIONS[1], c.getString(1));\n\t\t\tnewQ.answers[0] = c.getString(2);\n\n\t\t\t// Fill answers with unique wrong values\n\t\t\tfor(int i = 1; i < 4;) {\n\t\t\t\tint wrongYear = Integer.parseInt(newQ.answers[0]) + (int)((Math.random()-.5)*50); // +/- [1-25] years\n\t\t\t\tif (wrongYear <= 2014 && wrongYear != Integer.parseInt(newQ.answers[0]))\n\t\t\t\t\tnewQ.answers[i++] = \"\" + wrongYear;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 2: // Which star was in the movie %s?\n\t\t\tc = mDb.rawQuery(\"SELECT DISTINCT m.`title`, m.`director`, s.`first_name`, s.`last_name` FROM `movies` m, `stars` s, `stars_in_movies` sm WHERE m.id = sm.movie_id AND s.id = sm.star_id AND s.id GROUP BY m.`id`, s.`first_name`, s.`last_name` ORDER BY RANDOM() LIMIT 4\", null);\n\t\t\trow = (int)(Math.random()*c.getCount());\n\t\t\tc.moveToFirst(); // only 4 results are returned.\n\t\t\tnewQ.question = String.format(QuestionTemplates.QUESTIONS[2], c.getString(0));\n\t\t\tnewQ.answers[0] = c.getString(2) +\" \"+ c.getString(3); \n\t\t\tnewQ.correctAnswerIndex = 0;\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tc.moveToNext();\n\t\t\t\tnewQ.answers[j] = c.getString(2) +\" \"+ c.getString(3);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 3: // Which star was not in the movie %s?\n\t\t\t// The lone star, the left out one...the answer\n\t\t\tString singleActorQuery = \"SELECT mov.`title`, star.`first_name`, star.`last_name`, star.`id` FROM `movies` mov, `stars` star, \"+\n\t\t\t\t\t\"(SELECT movie_id, star_id FROM `stars_in_movies` GROUP BY movie_id HAVING COUNT(star_id) <= 1 ORDER BY RANDOM() LIMIT 1) mult \"+ \n\t\t\t\t\t\"WHERE mov.`id` = mult.`movie_id` AND star.`id`= mult.`star_id`\";\n\t\t\tc = mDb.rawQuery(singleActorQuery, null);\n\t\t\tc.moveToFirst();\n\t\t\tnewQ.correctAnswerIndex = 0;\n\t\t\tnewQ.answers[0] = c.getString(1) +\" \"+c.getString(2);\n\n\t\t\t// The cool kids: A group of actors in the same movie....excluding the lone star.\n//\t\t\tString starId = c.getString(3);\n\t\t\tString multipleActorQuery = \"SELECT mov.`title`, star.`first_name`, star.`last_name` \" +\n\t\t\t\t\t\"FROM `movies` mov, `stars` star, `stars_in_movies` sim, \" +\n\t\t\t\t\t\"(SELECT movie_id, star_id FROM `stars_in_movies` GROUP BY movie_id HAVING COUNT(star_id) > 2 ORDER BY RANDOM() LIMIT 1) mult\" +\n\t\t\t\t\t\" WHERE mov.`id` = mult.`movie_id` AND star.`id` = sim.`star_id` AND mult.`movie_id` = sim.`movie_id` \" +\n\t\t\t\t\t\"LIMIT 3\";\n\t\t\tc = mDb.rawQuery(multipleActorQuery, null);\n\t\t\tc.moveToFirst();\n\t\t\tnewQ.question = String.format(QuestionTemplates.QUESTIONS[3], c.getString(0));\n\t\t\tfor (int i = 1; i < 4; i++) {\n\t\t\t\tnewQ.answers[i] = c.getString(1) +\" \"+c.getString(2);\n\t\t\t\tc.moveToNext();\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase 4: // In which movie do the stars %s and %s appear together?\n\t\t\t// Get a movie they both star in\n\t\t\tc = mDb.rawQuery(\"SELECT m.`title`, s.`first_name`, s.`last_name`, s2.`first_name`, s2.`last_name`\" +\n\t\t\t\t\t\"FROM `movies` m, `stars` s, `stars` s2, `stars_in_movies` sm, `stars_in_movies` sm2 \" +\n\t\t\t\t\t\"WHERE m.id = sm.movie_id AND m.id = sm2.movie_id AND s.id = sm.star_id AND s2.id = sm2.star_id AND s.id != s2.id \" +\n\t\t\t\t\t\"GROUP BY m.`id`, s.`first_name`, s.`last_name` ORDER BY RANDOM() LIMIT 4\", null);\n\t\t\trow = (int)(Math.random()*c.getCount());\n\t\t\tc.moveToFirst();\n\t\t\tnewQ.question = String.format(QuestionTemplates.QUESTIONS[4], c.getString(1)+\" \"+c.getString(2), c.getString(3)+\" \"+c.getString(4));\n\t\t\tnewQ.answers[0] = c.getString(0); \n\t\t\tnewQ.correctAnswerIndex = 0;\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tc.moveToNext();\n\t\t\t\tnewQ.answers[j] = c.getString(0);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 5: // Who directed the star %s?\n\t\t\tc = mDb.rawQuery(\"SELECT DISTINCT m.`year`, m.`director`, s.`first_name`, s.`last_name` FROM `movies` m, `stars` s, `stars_in_movies` sm WHERE m.id = sm.movie_id AND s.id = sm.star_id AND s.id GROUP BY m.`id`, s.`first_name`, s.`last_name` ORDER BY RANDOM() LIMIT 4\", null);\n\t\t\trow = (int)(Math.random()*c.getCount());\n\t\t\tc.moveToFirst(); // only 4 results are returned.\n\t\t\tnewQ.question = String.format(QuestionTemplates.QUESTIONS[5], c.getString(2) +\" \"+ c.getString(3));\n\t\t\tnewQ.answers[0] = c.getString(1); \n\t\t\tnewQ.correctAnswerIndex = 0;\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tc.moveToNext();\n\t\t\t\tnewQ.answers[j] = c.getString(1);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 6: // Which star appears in both movies %s and %s?\n\t\t\t// Get the 2 movies with the same actor...\n\t\t\tc = mDb.rawQuery(\"SELECT mov.`id`, mov.`title`, star.`first_name`, star.`last_name`, star.`id` FROM `movies` mov, `stars_in_movies` sim, `stars` star, (SELECT movie_id, star_id, COUNT(movie_id) as cnt FROM `stars_in_movies` GROUP BY star_id HAVING COUNT(movie_id) > 3 ORDER BY RANDOM() LIMIT 1) as popular WHERE sim.`movie_id` = mov.`id` AND popular.`star_id` = sim.`star_id` AND star.`id` = sim.`star_id` LIMIT 2\", null);\n\t\t\tc.moveToFirst();\n\t\t\tString id = c.getString(4);\n\t\t\t\n\t\t\tString[] movies = new String[2];\n\t\t\tmovies[0] = c.getString(1);\n\t\t\tc.moveToNext();\n\t\t\tmovies[1] = c.getString(1);\n\t\t\t\n\t\t\tnewQ.question = String.format(QuestionTemplates.QUESTIONS[6], movies[0], movies[1]);\n\t\t\tnewQ.answers[0] = c.getString(2) +\" \"+ c.getString(3);\n\t\t\t\n\t\t\tnewQ.correctAnswerIndex = 0;\n\t\t\t\n\t\t\t// Pick 3 alternatives...\n\t\t\tc = mDb.rawQuery(\"SELECT s.first_name, s.last_name FROM stars s WHERE s.id != \"+id+\" GROUP BY s.id ORDER BY RANDOM() LIMIT 3\", null);\n\t\t\tc.moveToFirst();\n\t\t\tfor (int i = 1; i < 4; i++) {\n\t\t\t\tnewQ.answers[i] = c.getString(0) +\" \"+ c.getString(1);\n\t\t\t\tc.moveToNext();\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 7: // Which star did not appear in the same movie with the star %s?\n\t\t\t// The lone star, the left out one...the answer\n\t\t\tString singleActorQueryII = \"SELECT mov.`title`, star.`first_name`, star.`last_name`, star.`id` FROM `movies` mov, `stars` star, \"+\n\t\t\t\t\t\"(SELECT movie_id, star_id FROM `stars_in_movies` GROUP BY movie_id HAVING COUNT(star_id) <= 1 ORDER BY RANDOM() LIMIT 1) mult \"+ \n\t\t\t\t\t\"WHERE mov.`id` = mult.`movie_id` AND star.`id`= mult.`star_id`\";\n\t\t\tc = mDb.rawQuery(singleActorQueryII, null);\n\t\t\tc.moveToFirst();\n\t\t\tnewQ.correctAnswerIndex = 0;\n\t\t\tnewQ.answers[0] = c.getString(1) +\" \"+c.getString(2);\n\n\t\t\t// The cool kids: A group of actors in the same movie....excluding the lone star.\n\t\t\tString multipleActorQueryII = \"SELECT mov.`title`, star.`first_name`, star.`last_name` \" +\n\t\t\t\t\t\"FROM `movies` mov, `stars` star, `stars_in_movies` sim, \" +\n\t\t\t\t\t\"(SELECT movie_id, star_id FROM `stars_in_movies` GROUP BY movie_id HAVING COUNT(star_id) > 3 ORDER BY RANDOM() LIMIT 1) mult\" +\n\t\t\t\t\t\" WHERE mov.`id` = mult.`movie_id` AND star.`id` = sim.`star_id` AND mult.`movie_id` = sim.`movie_id` \" +\n\t\t\t\t\t\" GROUP BY star.`id`\"+\n\t\t\t\t\t\" LIMIT 4\";\n\t\t\tc = mDb.rawQuery(multipleActorQueryII, null);\n\t\t\tc.moveToFirst();\n\t\t\t// Take the first of the group and put his name in the question\n\t\t\tnewQ.question = String.format(QuestionTemplates.QUESTIONS[7], c.getString(1) +\" \"+c.getString(2));\n\t\t\tc.moveToNext();\n\t\t\tfor (int i = 1; i < 4; i++) {\n\t\t\t\tnewQ.answers[i] = c.getString(1) +\" \"+c.getString(2);\n\t\t\t\tc.moveToNext();\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault: // Who directed the star %s in year %s?\n\t\t\tc = mDb.rawQuery(\"SELECT DISTINCT m.`year`, m.`director`, s.`first_name`, s.`last_name` FROM `movies` m, `stars` s, `stars_in_movies` sm WHERE m.id = sm.movie_id AND s.id = sm.star_id AND s.id GROUP BY m.`id`, s.`first_name`, s.`last_name` ORDER BY RANDOM() LIMIT 4\", null);\n\t\t\trow = (int)(Math.random()*c.getCount());\n\t\t\tc.moveToFirst(); // only 4 results are returned.\n\t\t\tnewQ.question = String.format(QuestionTemplates.QUESTIONS[8], c.getString(2) +\" \"+ c.getString(3), c.getString(0));\n\t\t\tnewQ.answers[0] = c.getString(1); \n\t\t\tnewQ.correctAnswerIndex = 0;\n\t\t\tfor (int j = 1; j < 4; j++) {\n\t\t\t\tc.moveToNext();\n\t\t\t\tnewQ.answers[j] = c.getString(1);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\treturn newQ;\n\t}", "Question getQuestionInDraw(String questionId);", "public Prompt getPrompt() {\n return prompt;\n }", "public String getCurrent()\n {\n return current.toString();\n }", "protected IQuestionCollection getQuestions() {\n\t\treturn fQuestions;\n\t}" ]
[ "0.89267457", "0.86178935", "0.7939577", "0.7858666", "0.7556711", "0.7230699", "0.7209348", "0.7030592", "0.70218754", "0.70214474", "0.69804937", "0.6896888", "0.6849382", "0.6831312", "0.6789551", "0.67827916", "0.67589813", "0.67067266", "0.65718526", "0.654958", "0.6542591", "0.65390503", "0.65056324", "0.64680445", "0.64667666", "0.64431727", "0.63848", "0.6376328", "0.637304", "0.63588804", "0.6355817", "0.63205516", "0.63141716", "0.629905", "0.62664616", "0.62562144", "0.62399316", "0.62274265", "0.6211221", "0.61870503", "0.61784863", "0.6165929", "0.61533093", "0.6123843", "0.61163974", "0.61153704", "0.61103284", "0.6108842", "0.6070382", "0.60613686", "0.6057361", "0.6053796", "0.6015666", "0.60027385", "0.5991416", "0.5990071", "0.5987833", "0.59685665", "0.59609586", "0.5954254", "0.59088606", "0.5903871", "0.58965576", "0.5886322", "0.5879539", "0.5873231", "0.585487", "0.58464026", "0.58447933", "0.5844578", "0.5832864", "0.583155", "0.58270925", "0.5794783", "0.5794783", "0.5791086", "0.57848656", "0.57762635", "0.57672673", "0.575199", "0.57484514", "0.57476735", "0.5747293", "0.57415295", "0.57396543", "0.57396543", "0.57324606", "0.573048", "0.5725899", "0.57235545", "0.5719209", "0.5702483", "0.5701798", "0.5701267", "0.56920063", "0.5691945", "0.56823856", "0.56810343", "0.5655257", "0.5653376" ]
0.83566153
2
Returns true only if the user is a the Question stage.
public boolean getStage() { return atQuestionStage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSurveyAssigned(Long surveyId, long userId);", "public boolean isUserAnswer() {\n return this.userAnswer;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "private boolean canCreateProposal( Person user ) {\n\t\tApplicationTask task = new ApplicationTask( TaskName.CREATE_PROPOSAL );\n\t\tTaskAuthorizationService taskAuthenticationService = KraServiceLocator.getService( TaskAuthorizationService.class );\n\t\treturn taskAuthenticationService.isAuthorized( user.getPrincipalId(), task );\n\t}", "public boolean isUserChoice() {\n return ACTION_UserChoice.equals(getAction());\n }", "private boolean isStageRequired(final String stage) {\n return mRegistrationResponse != null\n && isRequired(stage)\n && !isCompleted(stage);\n }", "public static boolean QuestionVisible(){\r\n\t return (question.getText().equalsIgnoreCase(\"How would you rate your satisfaction with this website?\"));\t\r\n\t}", "public boolean isUserApproval() {\n\n if (!ACTION_UserChoice.equals(getAction())) {\n return false;\n }\n\n return (getColumn() != null) && \"IsApproved\".equals(getColumn().getColumnName());\n\n }", "@Override\n\tpublic Boolean isCorrect(){\n\t\t\n\t\tif (super.question instanceof TfQuestion){\n\t\t\tif(this.answer.equals(super.question.getAnswer())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isAddQuestion() {\n return isAddQuestion;\n }", "private boolean isRequired(final String stage) {\n return mRequiredStages.contains(stage);\n }", "public boolean isActiveUser() {\r\n if (currentProcessInstance == null)\r\n return false;\r\n \r\n String[] states = currentProcessInstance.getActiveStates();\r\n if (states == null)\r\n return false;\r\n \r\n Actor[] users;\r\n for (int i = 0; i < states.length; i++) {\r\n try {\r\n users = currentProcessInstance.getWorkingUsers(states[i]);\r\n for (int j = 0; j < users.length; j++) {\r\n if (getUserId().equals(users[j].getUser().getUserId()))\r\n return true;\r\n }\r\n } catch (WorkflowException ignored) {\r\n // ignore unknown state\r\n continue;\r\n }\r\n }\r\n \r\n return false;\r\n }", "public static boolean doesUserOwn(int userId, int questionId) throws ApplicationException {\n return QuestionDatabaseAccess.getQuestionsByUserId(userId).contains(new Question(questionId));\n }", "public boolean isIsDemoSurvey() {\n return isDemoSurvey;\n }", "public boolean isApplicable(ActionSchema a) {\n return this.getFluents().containsAll(a.getPrecondition());\n }", "public boolean isQuestItem() {\n return questItem;\n }", "public static boolean isUserPassed() {\n return isUserPassed(user);\n }", "public boolean isResponsible(User user) {\n\t\tHashMap<String, Object> filters = new HashMap<>();\n\n\t\tfilters.put(\"responsible\", new ValueParameter(user));\n\n\t\treturn !this.filter(filters).isEmpty();\n\t}", "@Override\n\tpublic boolean isUser(User user) {\n\t\treturn false;\n\t}", "public boolean isHasAlreadyReviewed() {\r\n boolean result = false;\r\n if (ui.isIsUserAuthenticated() && professionalStatus.isIsProfessional()) {\r\n Users user = ui.getUser();\r\n if (recipe != null) {\r\n for (Review rev : recipe.getReviews()) {\r\n if (rev.getReviewer().getUserName().equals(user.getUserName())) {\r\n result = true;\r\n break;\r\n }\r\n }//end for\r\n }\r\n }// end value != null\r\n return result;\r\n }", "public boolean isUser()\n\t{\n\t\treturn (id != -1);\n\t}", "boolean isGoodQuestion(){\n\t\treturn goodQ;\n\t}", "public boolean isSetRequesting_user() {\n return this.requesting_user != null;\n }", "public boolean isVtkUser( ) {\n\t\treturn chomboSolverSpec != null;\n\t}", "Boolean getIsAnswered();", "public boolean showQuestion(final String question) {\r\n return JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(window, question, getTitle(), JOptionPane.YES_NO_OPTION);\r\n }", "boolean hasSelectedUser();", "public boolean checkForUser(Player p) {\n\t\tif(p.getName(p).equals(\"user\")) {\n\t\t\treturn true;\t\t\t\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean callIntoQuestion();", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "public boolean isSetUserId() {\n return this.userId != null;\n }", "private boolean canExecuteProposalTask( String userId, ProposalDevelopmentDocument doc, String taskName ) {\n\t\tProposalTask task = new ProposalTask( taskName, doc );\n\t\tTaskAuthorizationService taskAuthenticationService = KraServiceLocator.getService( TaskAuthorizationService.class );\n\t\treturn taskAuthenticationService.isAuthorized( userId, task );\n\t}", "public boolean hasStartedUserState(int userId) {\n return this.mStartedUsers.get(userId) != null;\n }", "public boolean checkShowSubmitPolicy(Integer ctId,Integer snId){\n\n //check if participator first\n String handle = (String)httpSession.getAttribute(Constants.CURRENT_LOGIN_USER_HANDLE);\n boolean flag = false;\n List<AuthorityDTO> lstAuthority = authorityMapper.getContestAuthority(ctId, handle);\n for (AuthorityDTO curAuth : lstAuthority) {\n if (curAuth.getId().equals(Constants.AUTH_VIEW_CONTEST_ID)) {\n return true;\n }\n if (curAuth.getId().equals(Constants.AUTH_PARTICIPATE_CONTEST_ID)) {\n flag = true;\n }\n }\n if (!flag){\n return false;\n }\n\n //then check policy\n ContestEntity contestEntity = getContestById(ctId);\n if (contestEntity.getShowSubmit().equals(Constants.SHOW_SUBMIT_ALL)){\n return true;\n }\n\n SubmissionEntity submissionEntity = new SubmissionEntity();\n submissionEntity.setId(snId);\n List<SubmissionEntity> lstSubmission = submissionMapper.selectWithExample(submissionEntity);\n if (lstSubmission.size() != 1){\n throw new NoSuchPageException(\"Submission not found!\");\n }\n\n //check if submission is from current user\n submissionEntity = lstSubmission.get(0);\n Integer currentUserId = (Integer)httpSession.getAttribute(Constants.CURRENT_LOGIN_USER_ID);\n if (submissionEntity.getUrId().equals(currentUserId)){\n return true;\n }\n\n //else check current user has solved this problem and this contests allow to view solved problem's solutions\n if (contestEntity.getShowSubmit().equals(Constants.SHOW_SUBMIT_SOLVED)){\n Integer solveCnt = submissionMapper.checkSolvedStatusInContest(ctId,submissionEntity.getPmId(),submissionEntity.getUrId());\n return solveCnt > 0;\n }\n return false;\n }", "public boolean hasQuestion(QuestionDefinition question) {\n return hasQuestion(question.getId());\n }", "public boolean isSetExperience() {\n return this.experience != null;\n }", "private boolean isUserSatisfyParameters(User user) {\n switch (this.CommunityType) {\n case SwissArmyKnife.SUBSCRIPTIONS:\n return SwissArmyKnife.MAX_SUBSCRIPTIONS_PER_USER > user.getFriendsCount();\n\n case SwissArmyKnife.LIKES:\n return SwissArmyKnife.MAX_LIKES_PER_USER > user.getFavouritesCount();\n\n case SwissArmyKnife.HASHTAGS:\n return false;\n\n case SwissArmyKnife.COMMENTS:\n return false;\n\n case SwissArmyKnife.Geolocalisation:\n return user.isGeoEnabled();\n }\n\n return false;\n }", "boolean isAccepted(Speciality speciality, User user) throws LogicException;", "public boolean isCurrentUserAdmin(){\n if (getAdminUserFromId(currentUserId)!=null){\n return true;\n }\n else{\n return false;\n }\n }", "public boolean hasPendingQuestions() {\r\n try {\r\n Task[] tasks = getTasks();\r\n if (tasks == null || tasks.length == 0)\r\n return false;\r\n \r\n for (int i = 0; i < tasks.length; i++) {\r\n if (tasks[i].getPendingQuestions() != null\r\n && tasks[i].getPendingQuestions().length > 0)\r\n return true;\r\n }\r\n \r\n return false;\r\n } catch (ProcessManagerException pme) {\r\n return false;\r\n }\r\n }", "public boolean isMyTurn() {\n if (gameStatus == null || userId == null) return false;\n return userId.equals(gameStatus.getActivePlayer());\n }", "public boolean isPostingAllowed() {\n if (currentUser == null || activeTopic == null) {\n return false;\n }\n if (currentUser.isPublicAccount()) {\n return false;\n }\n return activeTopic.isEditable();\n }", "private boolean checkAnswered(){\n int checkedRadioButtonId = Question.getCheckedRadioButtonId();\n\n // If no option selected, the question hasn't been answered\n if (checkedRadioButtonId == -1) {\n return false;\n }\n // If an option is selected, the question as been answered\n else{\n return true;\n }\n }", "@Override\n\tpublic boolean isVeifyUser(Lt_User user) throws Lt_Blog_Exception {\n\t\treturn false;\n\t}", "public boolean isUserActive(String userId) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isApproved() {\n\t\treturn _scienceApp.isApproved();\n\t}", "@Override\n public boolean hasAccess(User user) {\n return user.hasRole(RoleValue.APP_ADMIN) || this.equals(user.company);\n }", "public boolean isSetFromUserId() {\n return this.fromUserId != null;\n }", "boolean isPresent(ExamPackage examPackage);", "public static boolean isCurrentUserVendedor() {\n return UserRole.VENDEDOR.equals(CURRENT_USER.getUserRole());\n }", "@Override\n public boolean isUserActive(String userName) {\n User user = getUserInfo(userName);\n if (user != null) {\n return user.isActive();\n }\n return false;\n }", "private boolean isSimpleQuestion(String userMessage) {\n List<String> yesNoQuestion = additionalDB.get(\"yesNoQuestion\");\n String firstWord = firstWord(userMessage).toLowerCase();\n for (String str : yesNoQuestion)\n if (firstWord.equals(str))\n return true;\n return false;\n }", "protected boolean isPilot() {\n\t\tif (request.getSession().getAttribute(\"type\") == null)\n\t\t\treturn false;\n\t\treturn request.getSession().getAttribute(\"type\").equals(\"pilot\");\n\t}", "public boolean canShow(Player player, Skill skill)\n {\n return !(skill.canAutoLevel() && !skill.canCast() && !SkillAPI.getSettings().isShowingAutoSkills())\n && skill.isAllowed(player);\n }", "public boolean isPayFrom() {\n\t\tObject oo = get_Value(\"IsPayFrom\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean addExamManager(IUser user) {\n\t\treturn false;\r\n\t}", "public boolean isShowAnswerBtnPresent() {\n\t\treturn isElementPresent(By.id(\"btn_answer_1-1\"));\n\t}", "protected boolean isPreview()\n\t{\n\t\treturn sessionService.getAttribute(PREVIEW_TICKET_ID_PARAM) != null;\n\t}", "private boolean isCompleted(final String stage) {\n return mRegistrationResponse != null && mRegistrationResponse.completed != null && mRegistrationResponse.completed.contains(stage);\n }", "private boolean canExecuteTask( String userId, ProposalDevelopmentDocument doc, String taskName ) {\n\t\treturn canExecuteProposalTask( userId, doc, taskName );\n\t}", "public abstract boolean checkPolicy(User user);", "@Override\n public Boolean isSchoolUser(UserDTO user) {\n return user.getRoles().contains(RoleTypeEnum.SCHOOL);\n }", "private boolean askForSuperviser(Person p) throws Exception {\n\n\t\treturn p.isResearcher() && (p.getInstitutionalRoleId() > 1);\n\t}", "public boolean isSetQ() {\n return this.q != null;\n }", "public boolean getIsPMReviewed() {\n if (review != null) {\n return review.isPMReviewed();\n } else {\n return false;\n }\n }", "public boolean hasUser() {\n return user_ != null;\n }", "public boolean hasUser() {\n return user_ != null;\n }", "public static Boolean isLoggedIn(User user){\n if(user.getFirstName() != null){\n return true;\n }\n return false;\n }", "boolean isSetQuick();", "@Override\n public boolean isApp(String username) {\n return isMember(GROUPING_APPS, username);\n }", "public boolean supportStage(final String stage) {\n return mSupportedStages.contains(stage);\n }", "public boolean isSetUserid() {\n return this.userid != null;\n }", "boolean hasAccountBudgetProposal();", "public boolean mo23318qa() {\n return ((Boolean) this.f13965a.mo23249a(C7196pb.f13746Qb)).booleanValue();\n }", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "boolean hasUser();", "public boolean checkAnswer(Answer userResponse) {\n\t\t// Check if userResponse is in choices \n\t\tString urStr = userResponse.toString(); \n\t\tif(correctAnswer.toString().equals(urStr)) {\n\t\t\treturn true; \n\t\t}\n\t\treturn false; \n\t}", "public boolean isAnswerCorrect() {\n\t\treturn isElementPresent(By.xpath(\"//body/div[5]\"));\n\t}", "public Boolean questionDone() {\n Boolean questionDone = true;\n for (Boolean currentTeam : teamHasAnswered.values()) questionDone = questionDone && currentTeam;\n return questionDone;\n }", "public boolean isSetUserName() {\n return this.userName != null;\n }", "public boolean isSetUserName() {\n return this.userName != null;\n }", "boolean hasInitialPromptFulfillment();", "private boolean isInstructor(User user)\r\n {\r\n if (LOG.isDebugEnabled())\r\n {\r\n LOG.debug(\"isInstructor(User \" + user + \")\");\r\n }\r\n if (user != null)\r\n return SecurityService.unlock(user, \"site.upd\", getContextSiteId());\r\n else\r\n return false;\r\n }", "public boolean isSetPlayer() {\n return this.player != null;\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isInPlanOfStudy(Course representedCourse) {\n\t\treturn false;\n\t}", "public boolean isAnswered() {\n\t\tfor (boolean b : this.checked) {\n\t\t\tif (b)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}" ]
[ "0.64824367", "0.6367002", "0.6063935", "0.6063935", "0.59813935", "0.5960009", "0.591253", "0.5769028", "0.5738268", "0.5696534", "0.5673256", "0.5603923", "0.55967015", "0.5568302", "0.5566957", "0.5540521", "0.55385673", "0.5536734", "0.5536721", "0.5533188", "0.54831934", "0.5455402", "0.5440554", "0.543556", "0.5430594", "0.54036033", "0.53869194", "0.5360959", "0.53525305", "0.534686", "0.53423864", "0.53423864", "0.53423864", "0.53423864", "0.53423864", "0.5328995", "0.52963907", "0.52942115", "0.5292321", "0.52905965", "0.52665395", "0.52633363", "0.52605504", "0.52490145", "0.5247153", "0.5245765", "0.52355397", "0.52140373", "0.52128893", "0.5210208", "0.51989275", "0.5195383", "0.51948535", "0.5185986", "0.5181468", "0.517991", "0.5174334", "0.51722634", "0.5172091", "0.51676005", "0.51544327", "0.51416785", "0.51402634", "0.51341856", "0.5130506", "0.51305", "0.5128457", "0.5120763", "0.51191634", "0.5110096", "0.5110096", "0.5105954", "0.5102897", "0.50963473", "0.5086232", "0.5082249", "0.5076014", "0.5073407", "0.5072193", "0.5072193", "0.5072193", "0.5072193", "0.5072193", "0.5072193", "0.5072193", "0.5066549", "0.5051725", "0.5051011", "0.5047036", "0.5047036", "0.50456303", "0.50428456", "0.50394917", "0.5035925", "0.5035925", "0.5035925", "0.5035925", "0.5035925", "0.5032988", "0.5026456" ]
0.6442647
1
Returns the component displaying the question number, current country, and difficulty.
public JLabel getQuestionCounter() { return questionCounter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JLabel getQuestionLbl() {\r\n\t\treturn questionLbl;\r\n\t}", "WinningCombination getDescription();", "public String getComponent() {\n return this.component;\n }", "public String getComponent() {\r\n\t\treturn component;\r\n\t}", "public String getActiveChallengesAnswer() {\n return categories.get(indexOfActiveCategory).getActiveChallenge().getAnswer();\n }", "public String getThePanel() {\r\n\t\treturn secretIt.currentS().puzzle();\r\n\t}", "protected String getDifficulty() {\n\t\treturn (String) difficultyChooser.getSelectedItem();\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn question;\r\n\t}", "private JPanel getJPanel3() {\n\t\tif (cardQuantityPanel == null) {\n\t\t\tcardQuantityLabel = new JLabel();\n\t\t\tcardQuantityLabel.setText(\"Количество\");\n\t\t\tFlowLayout flowLayout2 = new FlowLayout();\n\t\t\tflowLayout2.setAlignment(FlowLayout.RIGHT);\n\t\t\tcardQuantityPanel = new JPanel();\n\t\t\tcardQuantityPanel.setLayout(flowLayout2);\n\t\t\tcardQuantityPanel.add(cardQuantityLabel, null);\n\t\t\tcardQuantityPanel.add(getCardType(), null);\n\t\t\tcardQuantityPanel.add(getCondition(), null);\n\t\t\tcardQuantityPanel.add(getValue(), null);\n\t\t\tcardQuantityPanel.add(getAddQuantityCardButton(), null);\n\t\t}\n\t\treturn cardQuantityPanel;\n\t}", "private void getQuestionRelatedComponents() {\n\t\tquestionFrame = ((LinearLayout) findViewById(R.id.questionframe));\n\t\toptionsFrame = ((LinearLayout) findViewById(R.id.optionframe));\n\t\tquestionTextView = (TextView) findViewById(R.id.questiontext);\n\t\tquestionTextView.setMovementMethod(new ScrollingMovementMethod());\n\t\tradioButtonA = ((RadioButton) findViewById(R.id.radio_optionA));\n\t\tradioButtonB = ((RadioButton) findViewById(R.id.radio_optionB));\n\t\tradioButtonC = ((RadioButton) findViewById(R.id.radio_optionC));\n\t\tradioButtonD = ((RadioButton) findViewById(R.id.radio_optionD));\n\t\tfirstImageVievQuestion = ((ImageView) findViewById(R.id.imageQuestion1));\n\t\tsecondImageVievQuestion = ((ImageView) findViewById(R.id.imageQuestion2));\n\t\tthirdImageVievQuestion = ((ImageView) findViewById(R.id.imageQuestion3));\n\t\tshowQuestionButton = ((Button) findViewById(R.id.showquestion));\n\t\tshowOptionsButton = ((Button) findViewById(R.id.showoption));\n\t\tshowQuestionIv = ((ImageView) findViewById(R.id.showquestion_iv));\n\t\tshowOptionsIv = ((ImageView) findViewById(R.id.showoption_iv));\n\t\tradioGroup = ((RadioGroup) findViewById(R.id.radioGroupOptions));\n\n\t\t// add button click listeners\n\t\t// question button\n\t\tshowQuestionButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptionsFrame.setVisibility(View.GONE);\n\t\t\t\tquestionFrame.setVisibility(View.VISIBLE);\n\t\t\t\tshowQuestionIv.setSelected(true);\n\t\t\t\tshowOptionsIv.setSelected(false);\n\t\t\t}\n\t\t});\n\n\t\t// options button\n\t\tshowOptionsButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tquestionFrame.setVisibility(View.GONE);\n\t\t\t\toptionsFrame.setVisibility(View.VISIBLE);\n\t\t\t\tshowOptionsIv.setSelected(true);\n\t\t\t\tshowQuestionIv.setSelected(false);\n\t\t\t}\n\t\t});\n\n\t\t// on select listeners for radio buttons\n\t\tradioButtonA.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (checkWithCorrectAnswer(currentOptionPopulated) == 1) {\n\t\t\t\t\tshowCorrectAnswerDialogueBox();\n\t\t\t\t} else {\n\t\t\t\t\tshowIncorrectAnswerDialogueBox();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// on select listeners for radio buttons\n\t\tradioButtonB.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (checkWithCorrectAnswer(currentOptionPopulated) == 2) {\n\t\t\t\t\tshowCorrectAnswerDialogueBox();\n\t\t\t\t} else {\n\t\t\t\t\tshowIncorrectAnswerDialogueBox();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// on select listeners for radio buttons\n\t\tradioButtonC.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (checkWithCorrectAnswer(currentOptionPopulated) == 3) {\n\t\t\t\t\tshowCorrectAnswerDialogueBox();\n\t\t\t\t} else {\n\t\t\t\t\tshowIncorrectAnswerDialogueBox();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// on select listeners for radio buttons\n\t\tradioButtonD.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (checkWithCorrectAnswer(currentOptionPopulated) == 4) {\n\t\t\t\t\tshowCorrectAnswerDialogueBox();\n\t\t\t\t} else {\n\t\t\t\t\tshowIncorrectAnswerDialogueBox();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// add the listener to the radio group\n\t\tradioGroup.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (currentQuestionNumber == 1\n\t\t\t\t\t\t&& StoreAnalysisStateApplication.question1Answered) {\n\t\t\t\t\tToast.makeText(AnalysisActivity.this,\n\t\t\t\t\t\t\tgetString(R.string.alreadyansweredquestion),\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\tif (currentQuestionNumber == 2\n\t\t\t\t\t\t&& StoreAnalysisStateApplication.question2Answered) {\n\t\t\t\t\tToast.makeText(AnalysisActivity.this,\n\t\t\t\t\t\t\tgetString(R.string.alreadyansweredquestion),\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\tif (currentQuestionNumber == 3\n\t\t\t\t\t\t&& StoreAnalysisStateApplication.question3Answered) {\n\t\t\t\t\tToast.makeText(AnalysisActivity.this,\n\t\t\t\t\t\t\tgetString(R.string.alreadyansweredquestion),\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tif (locale.getLanguage().equalsIgnoreCase(\n\t\t\t\tgetString(R.string.germalanguagelocale))) {\n\n\t\t\t// load the question for question fragment\n\t\t\tquestionText1 = UtilityMethods.loadDataFromFile(\n\t\t\t\t\tQUESTION1_FILE_NAME_DE, FOLDER_NAME, this);\n\t\t\tlistOptions1 = UtilityMethods.loadOptionListFromFile(\n\t\t\t\t\tOPTIONS1_FILE_NAME_DE, FOLDER_NAME, this);\n\n\t\t\t// load the question for question fragment\n\t\t\tquestionText2 = UtilityMethods.loadDataFromFile(\n\t\t\t\t\tQUESTION2_FILE_NAME_DE, FOLDER_NAME, this);\n\t\t\tlistOptions2 = UtilityMethods.loadOptionListFromFile(\n\t\t\t\t\tOPTIONS2_FILE_NAME_DE, FOLDER_NAME, this);\n\n\t\t\t// load the question for question fragment\n\t\t\tquestionText3 = UtilityMethods.loadDataFromFile(\n\t\t\t\t\tQUESTION3_FILE_NAME_DE, FOLDER_NAME, this);\n\t\t\tlistOptions3 = UtilityMethods.loadOptionListFromFile(\n\t\t\t\t\tOPTIONS3_FILE_NAME_DE, FOLDER_NAME, this);\n\n\t\t}else{\n\n\n\t\t\t// load the question for question fragment\n\t\t\tquestionText1 = UtilityMethods.loadDataFromFile(\n\t\t\t\t\tQUESTION1_FILE_NAME, FOLDER_NAME, this);\n\t\t\tlistOptions1 = UtilityMethods.loadOptionListFromFile(\n\t\t\t\t\tOPTIONS1_FILE_NAME, FOLDER_NAME, this);\n\n\t\t\t// load the question for question fragment\n\t\t\tquestionText2 = UtilityMethods.loadDataFromFile(\n\t\t\t\t\tQUESTION2_FILE_NAME, FOLDER_NAME, this);\n\t\t\tlistOptions2 = UtilityMethods.loadOptionListFromFile(\n\t\t\t\t\tOPTIONS2_FILE_NAME, FOLDER_NAME, this);\n\n\t\t\t// load the question for question fragment\n\t\t\tquestionText3 = UtilityMethods.loadDataFromFile(\n\t\t\t\t\tQUESTION3_FILE_NAME, FOLDER_NAME, this);\n\t\t\tlistOptions3 = UtilityMethods.loadOptionListFromFile(\n\t\t\t\t\tOPTIONS3_FILE_NAME, FOLDER_NAME, this);\n\n\t\t}\n\n\t\t// initially help view is visible\n\t\tquestionFrame.setVisibility(View.VISIBLE);\n\t\tshowQuestionIv.setSelected(true);\n\n\t}", "public Component display() {\n\t\treturn new JLabel(\"3 ;)\");\n\t}", "private javax.swing.JPanel getPnlUsage() {\n\tif (ivjPnlUsage == null) {\n\t\ttry {\n\t\t\tivjPnlUsage = new javax.swing.JPanel();\n\t\t\tivjPnlUsage.setName(\"PnlUsage\");\n\t\t\tivjPnlUsage.setPreferredSize(new java.awt.Dimension(0, 40));\n\t\t\tivjPnlUsage.setLayout(new java.awt.GridBagLayout());\n\n\t\t\tjava.awt.GridBagConstraints constraintsLblUsage = new java.awt.GridBagConstraints();\n\t\t\tconstraintsLblUsage.gridx = 1; constraintsLblUsage.gridy = 1;\n\t\t\tconstraintsLblUsage.ipadx = 101;\n\t\t\tconstraintsLblUsage.insets = new java.awt.Insets(11, 6, 15, 5);\n\t\t\tgetPnlUsage().add(getLblUsage(), constraintsLblUsage);\n\n\t\t\tjava.awt.GridBagConstraints constraintsCbxUsage = new java.awt.GridBagConstraints();\n\t\t\tconstraintsCbxUsage.gridx = 2; constraintsCbxUsage.gridy = 1;\n\t\t\tconstraintsCbxUsage.fill = java.awt.GridBagConstraints.HORIZONTAL;\n\t\t\tconstraintsCbxUsage.weightx = 1.0;\n\t\t\tconstraintsCbxUsage.ipadx = 89;\n\t\t\tconstraintsCbxUsage.insets = new java.awt.Insets(7, 5, 10, 7);\n\t\t\tgetPnlUsage().add(getCbxUsage(), constraintsCbxUsage);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjPnlUsage;\n}", "public JPanel getAnswerPanel() {\r\n\t\treturn answerPanel;\r\n\t}", "private JLabel getDchjComboBox() {\r\n\t\tif (dchjComboBox == null) {\r\n\t\t\tdchjComboBox = new JLabel();\r\n\t\t\tdchjComboBox.setForeground(color);\r\n\t\t\tdchjComboBox.setBounds(new Rectangle(96, 54, 90, 18));\r\n\t\t\tdchjComboBox.setText(name);\r\n\t\t}\r\n\t\treturn dchjComboBox;\r\n\t}", "private JPanel getBasicInfo() {\r\n\t\tif (basicInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints31 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints31.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints31.gridwidth = 4;\r\n\t\t\tgridBagConstraints31.gridx = 0;\r\n\t\t\tgridBagConstraints31.gridy = 7;\r\n\t\t\tgridBagConstraints31.weightx = 1.0;\r\n\t\t\tgridBagConstraints31.weighty = 1.0;\r\n\t\t\tgridBagConstraints31.insets = new Insets(0, 15, 5, 15);\r\n\t\t\tGridBagConstraints gridBagConstraints21 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints21.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints21.gridwidth = 4;\r\n\t\t\tgridBagConstraints21.gridx = 0;\r\n\t\t\tgridBagConstraints21.gridy = 5;\r\n\t\t\tgridBagConstraints21.weightx = 1.0;\r\n\t\t\tgridBagConstraints21.weighty = 1.0;\r\n\t\t\tgridBagConstraints21.insets = new Insets(0, 15, 5, 15);\r\n\t\t\tGridBagConstraints gridBagConstraints13 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints13.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints13.gridx = 1;\r\n\t\t\tgridBagConstraints13.gridy = 3;\r\n\t\t\tgridBagConstraints13.insets = new Insets(0, 3, 1, 0);\r\n\t\t\tatcCall = new JLabel();\r\n\t\t\tatcCall.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints12 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints12.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints12.gridx = 1;\r\n\t\t\tgridBagConstraints12.gridy = 2;\r\n\t\t\tgridBagConstraints12.insets = new Insets(0, 3, 1, 0);\r\n\t\t\ttailNumber = new JLabel();\r\n\t\t\ttailNumber.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints11 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints11.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints11.gridx = 3;\r\n\t\t\tgridBagConstraints11.gridy = 1;\r\n\t\t\tgridBagConstraints11.insets = new Insets(0, 3, 1, 10);\r\n\t\t\tvehicleSubtype = new JLabel();\r\n\t\t\tvehicleSubtype.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints10 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints10.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints10.gridx = 1;\r\n\t\t\tgridBagConstraints10.gridy = 1;\r\n\t\t\tgridBagConstraints10.insets = new Insets(0, 3, 1, 0);\r\n\t\t\tvehicleType = new JLabel();\r\n\t\t\tvehicleType.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints9 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints9.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints9.gridx = 3;\r\n\t\t\tgridBagConstraints9.gridy = 0;\r\n\t\t\tgridBagConstraints9.insets = new Insets(10, 3, 1, 10);\r\n\t\t\tvsmId = new JLabel();\r\n\t\t\tvsmId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints8 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints8.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints8.gridx = 1;\r\n\t\t\tgridBagConstraints8.gridy = 0;\r\n\t\t\tgridBagConstraints8.weightx = 1.0;\r\n\t\t\tgridBagConstraints8.insets = new Insets(10, 3, 1, 0);\r\n\t\t\tvehicleId = new JLabel();\r\n\t\t\tvehicleId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints7 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints7.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints7.gridwidth = 2;\r\n\t\t\tgridBagConstraints7.gridx = 0;\r\n\t\t\tgridBagConstraints7.gridy = 4;\r\n\t\t\tgridBagConstraints7.insets = new Insets(2, 15, 4, 0);\r\n\t\t\tjLabel7 = new JLabel();\r\n\t\t\tjLabel7.setText(\"Payloads:\");\r\n\t\t\tGridBagConstraints gridBagConstraints6 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints6.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints6.gridwidth = 2;\r\n\t\t\tgridBagConstraints6.gridx = 0;\r\n\t\t\tgridBagConstraints6.gridy = 6;\r\n\t\t\tgridBagConstraints6.insets = new Insets(2, 15, 4, 0);\r\n\t\t\tjLabel6 = new JLabel();\r\n\t\t\tjLabel6.setText(\"Controlled by:\");\r\n\t\t\tGridBagConstraints gridBagConstraints5 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints5.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints5.gridx = 0;\r\n\t\t\tgridBagConstraints5.gridy = 3;\r\n\t\t\tgridBagConstraints5.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel5 = new JLabel();\r\n\t\t\tjLabel5.setText(\"ATC call sign:\");\r\n\t\t\tGridBagConstraints gridBagConstraints4 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints4.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints4.gridx = 0;\r\n\t\t\tgridBagConstraints4.gridy = 2;\r\n\t\t\tgridBagConstraints4.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel4 = new JLabel();\r\n\t\t\tjLabel4.setText(\"Tail number:\");\r\n\t\t\tGridBagConstraints gridBagConstraints3 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints3.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints3.gridx = 2;\r\n\t\t\tgridBagConstraints3.gridy = 1;\r\n\t\t\tgridBagConstraints3.insets = new Insets(0, 5, 4, 0);\r\n\t\t\tjLabel3 = new JLabel();\r\n\t\t\tjLabel3.setText(\"Subtype:\");\r\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints2.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints2.gridx = 0;\r\n\t\t\tgridBagConstraints2.gridy = 1;\r\n\t\t\tgridBagConstraints2.insets = new Insets(0, 10, 4, 0);\r\n\t\t\tjLabel2 = new JLabel();\r\n\t\t\tjLabel2.setText(\"Vehicle type:\");\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints1.gridx = 2;\r\n\t\t\tgridBagConstraints1.gridy = 0;\r\n\t\t\tgridBagConstraints1.insets = new Insets(10, 5, 4, 0);\r\n\t\t\tjLabel1 = new JLabel();\r\n\t\t\tjLabel1.setText(\"VSM ID:\");\r\n\t\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\r\n\t\t\tgridBagConstraints.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints.gridx = 0;\r\n\t\t\tgridBagConstraints.gridy = 0;\r\n\t\t\tgridBagConstraints.insets = new Insets(10, 10, 4, 0);\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setText(\"Vehicle ID:\");\r\n\t\t\tbasicInfo = new JPanel();\r\n\t\t\tbasicInfo.setLayout(new GridBagLayout());\r\n\t\t\tbasicInfo.add(jLabel, gridBagConstraints);\r\n\t\t\tbasicInfo.add(jLabel1, gridBagConstraints1);\r\n\t\t\tbasicInfo.add(jLabel2, gridBagConstraints2);\r\n\t\t\tbasicInfo.add(jLabel3, gridBagConstraints3);\r\n\t\t\tbasicInfo.add(jLabel4, gridBagConstraints4);\r\n\t\t\tbasicInfo.add(jLabel5, gridBagConstraints5);\r\n\t\t\tbasicInfo.add(jLabel6, gridBagConstraints6);\r\n\t\t\tbasicInfo.add(jLabel7, gridBagConstraints7);\r\n\t\t\tbasicInfo.add(vehicleId, gridBagConstraints8);\r\n\t\t\tbasicInfo.add(vsmId, gridBagConstraints9);\r\n\t\t\tbasicInfo.add(vehicleType, gridBagConstraints10);\r\n\t\t\tbasicInfo.add(vehicleSubtype, gridBagConstraints11);\r\n\t\t\tbasicInfo.add(tailNumber, gridBagConstraints12);\r\n\t\t\tbasicInfo.add(atcCall, gridBagConstraints13);\r\n\t\t\tbasicInfo.add(getJScrollPane(), gridBagConstraints21);\r\n\t\t\tbasicInfo.add(getJScrollPane1(), gridBagConstraints31);\r\n\t\t}\r\n\t\treturn basicInfo;\r\n\t}", "protected Component createBotInfoPanel() {\n\t\tJPanel botInfoPanel = generatePanel(new GridLayout(2, 3), \"Bot Information\");\n\n\t\tbotInfoPanel.add(generateTextField(botPrefix = new JTextField(\"jmeterBot\", 10), \"Bot Prefix: \"));\n\t\tbotInfoPanel.add(generateTextField(channelPrefix = new JTextField(\"#jmeter\", 10), \"Channel Prefix: \"));\n\t\tbotInfoPanel.add(generateTextField(numChannels = new JTextField(\"1\", 10), \"Channels: \"));\n\t\tbotInfoPanel.add(generateTextField(command = new JTextField(\"?jmeter\", 10), \"Command: \"));\n\t\tbotInfoPanel.add(generateTextField(targetNick = new JTextField(\"\", 10), \"Target Nick: \"));\n\n\t\treturn botInfoPanel;\n\t}", "@Override\n\tpublic String getSolution() {\n\t\treturn \"Ajouter des composants au circuit\";\n\t}", "public JComponent showProposalSpecialForm(){ \r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n java.awt.GridBagConstraints gridBagConstraints; \r\n \r\n //Added for COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - start\r\n //Getting the data for parameters \r\n //Added for Coeus Enhancement Case #1799 - start: step 2\r\n //CoeusVector cvParameters = queryEngine.executeQuery(queryKey,CoeusParameterBean.class,CoeusVector.FILTER_ACTIVE_BEANS);\r\n for (int index=0;index<cvParameters.size();index++) {\r\n CoeusParameterBean coeusParameterBean=(CoeusParameterBean)cvParameters.elementAt(index);\r\n if(CoeusConstants.ENABLE_PROTOCOL_TO_DEV_PROPOSAL_LINK.equals(coeusParameterBean.getParameterName())){\r\n enableProtocolToDevProposalLink = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }else if(CoeusConstants.LINKED_TO_IRB_CODE.equals(coeusParameterBean.getParameterName())){\r\n linkedToIRBCode = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }else if(CoeusConstants.ENABLE_IACUC_TO_DEV_PROPOSAL_LINK.equals(coeusParameterBean.getParameterName())){\r\n enableIacucToDevProposalLink = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }else if(CoeusConstants.LINKED_TO_IACUC_CODE.equals(coeusParameterBean.getParameterName())){\r\n linkedToIACUCCode = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }\r\n }\r\n specialReviewForm.setEnableProtocolLink(enableProtocolToDevProposalLink);\r\n specialReviewForm.setEnableIacucProtocolLink(enableIacucToDevProposalLink);\r\n //Added for COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - end\r\n \r\n //specialReviewForm.btnStartProtocol.addActionListener(this);\r\n setSpecialReviewCode();\r\n\r\n\r\n\r\n\r\n //End Coeus Enhancement Case #1799 step 2\r\n \r\n //Commented for the Coeus Enhancement case:#1823 ,for making the special review as a tab page\r\n// btnOk = new javax.swing.JButton();\r\n// btnCancel = new javax.swing.JButton();\r\n// \r\n// btnOk.setMnemonic('O');\r\n// btnOk.setText(\"OK\");\r\n// btnOk.setFont(CoeusFontFactory.getLabelFont());\r\n// btnOk.setMaximumSize(new java.awt.Dimension(106, 26));\r\n// btnOk.setMinimumSize(new java.awt.Dimension(106, 26));\r\n// btnOk.setPreferredSize(new java.awt.Dimension(85, 26));\r\n// gridBagConstraints = new java.awt.GridBagConstraints();\r\n// gridBagConstraints.gridx = 0;\r\n// gridBagConstraints.gridy = 0;\r\n// gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\r\n// gridBagConstraints.insets = new java.awt.Insets(0, 0, 3, 0);\r\n// \r\n// //Disable OK if DISPLAY_MODE\r\n// boolean enabled = functionType != DISPLAY_MODE ? true : false;\r\n// btnOk.setEnabled(enabled); \r\n// \r\n// btnCancel.setMnemonic('C');\r\n// btnCancel.setText(\"Cancel\");\r\n// btnCancel.setFont(CoeusFontFactory.getLabelFont());\r\n// btnCancel.setMaximumSize(new java.awt.Dimension(106, 26));\r\n// btnCancel.setMinimumSize(new java.awt.Dimension(106, 26));\r\n// btnCancel.setPreferredSize(new java.awt.Dimension(85, 26)); \r\n// gridBagConstraints = new java.awt.GridBagConstraints();\r\n// gridBagConstraints.gridx = 0;\r\n// gridBagConstraints.gridy = 1;\r\n// gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\r\n// gridBagConstraints.insets = new java.awt.Insets(0, 0, 3, 0);\r\n// btnOk.addActionListener( new ActionListener(){\r\n// public void actionPerformed(java.awt.event.ActionEvent actionEvent) {\r\n// try{\r\n// if(isSaveRequired()){\r\n// if(specialReviewForm.validateData()){\r\n// //Get Deleted/Non deleted records from SpecialReviewForm\r\n// vecSpecialReviewData = specialReviewForm.getSpecialReviewData();\r\n// //Merge the Deleted and Non deleted records\r\n// setFormData();\r\n// vecSpecialReviewData = getFormData();\r\n// dlgParentComponent.dispose();\r\n// }\r\n// }\r\n// else\r\n// {\r\n// dlgParentComponent.dispose();\r\n// }\r\n// }catch(Exception e){\r\n// //e.printStackTrace();\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// } \r\n// }\r\n// });\r\n// btnCancel.addActionListener( new ActionListener(){\r\n// public void actionPerformed(java.awt.event.ActionEvent actionEvent) {\r\n// try{\r\n// performWindowClosing();\r\n// }catch(Exception e){\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// }\r\n// }\r\n// });\r\n \r\n// String strSponsor = \"\";\r\n// if (ProposalDetailAdminForm.SPONSOR_CODE != null)\r\n// {\r\n// strSponsor = ProposalDetailAdminForm.SPONSOR_CODE +\" : \" +ProposalDetailAdminForm.SPONSOR_DESCRIPTION;\r\n// }\r\n \r\n// specialReviewForm.setProposalDescription(proposalNumber,strSponsor); \r\n \r\n /*Commented the Coeus Enhancement case:#1823 ,for making the special review asa tab page*/\r\n// specialReviewForm.setButtonsReference(btnOk,btnCancel);\r\n \r\n JComponent cmpMain = (JComponent)specialReviewForm.showSpecialReviewForm(CoeusGuiConstants.getMDIForm());\r\n dlgParentComponent = new CoeusDlgWindow(CoeusGuiConstants.getMDIForm(), \"Special Review\", true);\r\n dlgParentComponent.getContentPane().add(cmpMain);\r\n dlgParentComponent.pack();\r\n dlgParentComponent.setResizable(false); \r\n Dimension screenSize\r\n = Toolkit.getDefaultToolkit().getScreenSize();\r\n Dimension dlgSize = dlgParentComponent.getSize(); \r\n dlgParentComponent.setLocation(screenSize.width/2 - (dlgSize.width/2),\r\n screenSize.height/2 - (dlgSize.height/2)); \r\n \r\n specialReviewForm.requestDefaultFocusForComponent();\r\n \r\n //Commented the Coeus Enhancement case:#1823 ,for making the special review asa tab page\r\n \r\n// //Added By sharath - Bug Fix hit X Btn. Save Cnfrm Clicked yes. Show Err Msg. close - START\r\n// //Fix : After Displaying Err Msg Don't Close the Dialog. Keep it in Focus.\r\n// dlgParentComponent.setDefaultCloseOperation(CoeusDlgWindow.DO_NOTHING_ON_CLOSE);\r\n// //Added By sharath - Bug Fix hit X Btn. Save Cnfrm Clicked yes. Show Err Msg. close - END\r\n// \r\n// dlgParentComponent.addEscapeKeyListener(new AbstractAction(\"escPressed\"){\r\n// public void actionPerformed(ActionEvent ae){\r\n// try{\r\n// performWindowClosing();\r\n//\r\n// }catch(Exception e){\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// }\r\n// }\r\n// });\r\n// dlgParentComponent.addWindowListener(new WindowAdapter(){\r\n// \r\n// public void windowOpened(WindowEvent we){\r\n// btnCancel.requestFocusInWindow();\r\n// btnCancel.setFocusable(true);\r\n// }\r\n// \r\n// public void windowClosing(WindowEvent we){\r\n// try{\r\n// performWindowClosing();\r\n// \r\n// }catch(Exception e){\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// }\r\n// //return;\r\n// }\r\n// });\r\n //dlgParentComponent.show();\r\n return cmpMain;\r\n }", "protected JPanel getPoolAsPanel() {\n\n String job = this.getSkill().substring(0, 1).toUpperCase() + this.getSkill().substring(1);\n\n // Definitions\n this.rowPanel = new JPanel(new GridLayout(1, 3));\n this.skillLabel = new JLabel(job, JLabel.CENTER);\n this.portLabel = new JLabel(this.getParentPort(), JLabel.CENTER);\n this.countLabel = new JLabel(\"Available: \"\n + String.valueOf(this.getAvailablePersons()), JLabel.CENTER);\n this.totalLabel = new JLabel(\"Total: \"\n + String.valueOf(this.getTotalPersons()), JLabel.CENTER);\n\n // Allow for colorization of JLabel backgrounds\n this.skillLabel.setOpaque(true);\n this.portLabel.setOpaque(true);\n this.countLabel.setOpaque(true);\n this.totalLabel.setOpaque(true);\n\n // Add background colorization\n this.skillLabel.setBackground(Color.WHITE);\n this.portLabel.setBackground(Color.WHITE);\n this.countLabel.setBackground(Color.WHITE);\n this.totalLabel.setBackground(Color.WHITE);\n\n // Add JTable-esque borders\n this.skillLabel.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n this.portLabel.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n this.countLabel.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n this.totalLabel.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n\n // Add elements to the pseudo-row\n this.rowPanel.add(this.skillLabel);\n this.rowPanel.add(this.portLabel);\n this.rowPanel.add(this.countLabel);\n this.rowPanel.add(this.totalLabel);\n\n return this.rowPanel;\n }", "private JPanel getPCheck() {\r\n\t\tif (pLabel == null) {\r\n\t\t\tpLabel = new JPanel();\r\n\t\t\tGridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints1.insets = new java.awt.Insets(0, 0, 13, 0);\r\n\t\t\tpLabel.setLayout(new GridBagLayout());\r\n\t\t\tpLabel.add(getCheck(), gridBagConstraints1);\r\n\t\t\tpLabel.add(new JLabel(text), gridBagConstraints1);\r\n\t\t}\r\n\t\treturn pLabel;\r\n\t}", "@Override\n\tpublic Component getComponent() {\n\t\treturn p;\n\t}", "public ComboBoxDataObject getJob_Difficulty() {\r\n return job_Difficulty;\r\n }", "public JLabel getLblQnt1() {\r\n\t\treturn lblQnt1;\r\n\t}", "private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }", "private JLabel getJLCurrentEnquirer() {\r\n if (jlCurrentEnquirer == null) {\r\n jlCurrentEnquirer = new JLabel();\r\n }\r\n return jlCurrentEnquirer;\r\n }", "public JPanel createPersonGuessPanel() {\n\t\tJPanel panel = new JPanel();\n\t\tJComboBox<String> comboBox = new JComboBox<String>();\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"Person Guess\"));\n\t\tcomboBox.addItem(\"Unsure\");\n\t\tcomboBox.addItem(\"Miss Scarlet\");\n\t\tcomboBox.addItem(\"Colonel Mustard\");\n\t\tcomboBox.addItem(\"Mr. Green\");\n\t\tcomboBox.addItem(\"Mrs. White\");\n\t\tcomboBox.addItem(\"Mrs. Peacock\");\n\t\tcomboBox.addItem(\"Professor Plum\");\n\t\tpanel.add(comboBox);\n\t\treturn panel;\n\t}", "public JPanel getInfo() {\n return info;\n }", "public JPanel createRoomGuessPanel() {\n\t\tJPanel panel = new JPanel();\n\t\tJComboBox<String> comboBox = new JComboBox<String>();\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"Room Guess\"));\n\t\tcomboBox.addItem(\"Unsure\");\n\t\tcomboBox.addItem(\"Conservatory\");\n\t\tcomboBox.addItem(\"Kitchen\");\n\t\tcomboBox.addItem(\"Ballroom\");\n\t\tcomboBox.addItem(\"Library\");\n\t\tcomboBox.addItem(\"Arcade room\");\n\t\tcomboBox.addItem(\"Gun room\");\n\t\tcomboBox.addItem(\"Trophy room\");\n\t\tcomboBox.addItem(\"Pantry\");\n\t\tcomboBox.addItem(\"Sauna\");\t\n\t\tpanel.add(comboBox);\n\t\treturn panel;\n\t}", "private JPanel getPanelSession() {\n if (panelContext == null) {\n panelContext = new JPanel();\n panelContext.setLayout(new GridBagLayout());\n\n if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption()\n == 0) {\n panelContext.setSize(180, 101);\n }\n\n panelContext.add(\n new JLabel(Constant.messages.getString(\"context.label.name\")),\n LayoutHelper.getGBC(0, 0, 1, 1.0D));\n panelContext.add(getTxtName(), LayoutHelper.getGBC(0, 1, 1, 1.0D));\n panelContext.add(getChkInScope(), LayoutHelper.getGBC(0, 2, 2, 1.0D));\n panelContext.add(\n new JLabel(Constant.messages.getString(\"context.label.desc\")),\n LayoutHelper.getGBC(0, 3, 1, 1.0D));\n panelContext.add(getTxtDescription(), LayoutHelper.getGBC(0, 4, 1, 1.0D, 1.0D));\n }\n return panelContext;\n }", "private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tmaxLabel = new JLabel();\r\n\t\t\tinfLabel = new JLabel();\r\n\t\t\tminLabel = new JLabel();\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tString min = \"0.0 <=\";\r\n\t\t\tString max = \"<= 1.0\";\r\n\t\t\tif (mode == RULES_BASIS_SUPPORT_MODE) {\r\n\t\t\t\tmin = rulesBasis.getMinSupport() + \" <=\";\r\n\t\t\t\tmax = \"<= \" + rulesBasis.getMaxSupport();\r\n\t\t\t} else if (mode == RULES_BASIS_CONFIDENCE_MODE) {\r\n\t\t\t\tmin = rulesBasis.getMinConfidence() + \" <=\";\r\n\t\t\t\tmax = \"<= \" + rulesBasis.getMaxConfidence();\r\n\t\t\t} else if (mode == INTENTS_BASIS_SUPPORT_MODE) {\r\n\t\t\t\tmin = intentsBasis.getMinSupport() + \" <=\";\r\n\t\t\t\tmax = \"<= \" + intentsBasis.getMaxSupport();\r\n\t\t\t}\r\n\t\t\tminLabel.setText(min);\r\n\t\t\tinfLabel.setText(\"<=\");\r\n\t\t\tmaxLabel.setText(max);\r\n\t\t\tjPanel.add(minLabel, null);\r\n\t\t\tjPanel.add(getMinTextField(), null);\r\n\t\t\tjPanel.add(infLabel, null);\r\n\t\t\tjPanel.add(getMaxTextField(), null);\r\n\t\t\tjPanel.add(maxLabel, null);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}", "@Override\n public final GameQuestion getActiveQuestion() {\n return this.activeQuestion;\n }", "private JPanel getConfigurationInfo() {\r\n\t\tif (configurationInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints36 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints36.gridx = 1;\r\n\t\t\tgridBagConstraints36.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints36.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints36.weightx = 0.0;\r\n\t\t\tgridBagConstraints36.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints36.gridy = 5;\r\n\t\t\tnumberEngines = new JLabel();\r\n\t\t\tnumberEngines.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints35 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints35.gridx = 1;\r\n\t\t\tgridBagConstraints35.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints35.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints35.weightx = 0.0;\r\n\t\t\tgridBagConstraints35.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints35.gridy = 4;\r\n\t\t\tcenterOfGravity = new JLabel();\r\n\t\t\tcenterOfGravity.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints34 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints34.gridx = 1;\r\n\t\t\tgridBagConstraints34.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints34.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints34.weightx = 0.0;\r\n\t\t\tgridBagConstraints34.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints34.gridy = 3;\r\n\t\t\tgrossWeight = new JLabel();\r\n\t\t\tgrossWeight.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints33 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints33.gridx = 1;\r\n\t\t\tgridBagConstraints33.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints33.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints33.weightx = 0.0;\r\n\t\t\tgridBagConstraints33.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints33.gridy = 2;\r\n\t\t\tmaximumLoadFactor = new JLabel();\r\n\t\t\tmaximumLoadFactor.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints32 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints32.gridx = 3;\r\n\t\t\tgridBagConstraints32.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints32.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints32.weightx = 0.0;\r\n\t\t\tgridBagConstraints32.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints32.gridy = 5;\r\n\t\t\toptimumEndurance = new JLabel();\r\n\t\t\toptimumEndurance.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints30 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints30.gridx = 3;\r\n\t\t\tgridBagConstraints30.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints30.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints30.weightx = 0.0;\r\n\t\t\tgridBagConstraints30.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints30.gridy = 4;\r\n\t\t\toptimumCruiseIAS = new JLabel();\r\n\t\t\toptimumCruiseIAS.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints29 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints29.gridx = 3;\r\n\t\t\tgridBagConstraints29.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints29.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints29.weightx = 0.0;\r\n\t\t\tgridBagConstraints29.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints29.gridy = 3;\r\n\t\t\tmaximumIAS = new JLabel();\r\n\t\t\tmaximumIAS.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints28 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints28.gridx = 3;\r\n\t\t\tgridBagConstraints28.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints28.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints28.weightx = 0.0;\r\n\t\t\tgridBagConstraints28.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints28.gridy = 2;\r\n\t\t\tpropulsionBatery = new JLabel();\r\n\t\t\tpropulsionBatery.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints27 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints27.gridx = 3;\r\n\t\t\tgridBagConstraints27.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints27.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints27.weightx = 0.0;\r\n\t\t\tgridBagConstraints27.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints27.gridy = 0;\r\n\t\t\tpropulsionFuel = new JLabel();\r\n\t\t\tpropulsionFuel.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints26 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints26.gridx = 1;\r\n\t\t\tgridBagConstraints26.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints26.weightx = 5.0;\r\n\t\t\tgridBagConstraints26.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints26.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints26.gridy = 0;\r\n\t\t\tconfigurationId = new JLabel();\r\n\t\t\tconfigurationId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints25 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints25.gridx = 0;\r\n\t\t\tgridBagConstraints25.weightx = 0.0;\r\n\t\t\tgridBagConstraints25.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints25.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints25.gridy = 5;\r\n\t\t\tjLabel8111111111 = new JLabel();\r\n\t\t\tjLabel8111111111.setText(\"Number of engines:\");\r\n\t\t\tGridBagConstraints gridBagConstraints24 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints24.gridx = 0;\r\n\t\t\tgridBagConstraints24.weightx = 0.0;\r\n\t\t\tgridBagConstraints24.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints24.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints24.gridy = 4;\r\n\t\t\tjLabel811111111 = new JLabel();\r\n\t\t\tjLabel811111111.setText(\"Center of gravity from nose:\");\r\n\t\t\tGridBagConstraints gridBagConstraints23 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints23.gridx = 0;\r\n\t\t\tgridBagConstraints23.weightx = 0.0;\r\n\t\t\tgridBagConstraints23.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints23.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints23.gridy = 3;\r\n\t\t\tjLabel81111111 = new JLabel();\r\n\t\t\tjLabel81111111.setText(\"Gross weight:\");\r\n\t\t\tGridBagConstraints gridBagConstraints22 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints22.gridx = 0;\r\n\t\t\tgridBagConstraints22.weightx = 0.0;\r\n\t\t\tgridBagConstraints22.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints22.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints22.gridy = 2;\r\n\t\t\tjLabel8111111 = new JLabel();\r\n\t\t\tjLabel8111111.setText(\"Maximum load factor:\");\r\n\t\t\tGridBagConstraints gridBagConstraints20 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints20.gridx = 2;\r\n\t\t\tgridBagConstraints20.weightx = 0.0;\r\n\t\t\tgridBagConstraints20.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints20.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints20.gridy = 5;\r\n\t\t\tjLabel811111 = new JLabel();\r\n\t\t\tjLabel811111.setText(\"Optimum endurance IAS:\");\r\n\t\t\tGridBagConstraints gridBagConstraints19 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints19.gridx = 2;\r\n\t\t\tgridBagConstraints19.weightx = 0.0;\r\n\t\t\tgridBagConstraints19.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints19.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints19.gridy = 4;\r\n\t\t\tjLabel81111 = new JLabel();\r\n\t\t\tjLabel81111.setText(\"Optimum cruise IAS::\");\r\n\t\t\tGridBagConstraints gridBagConstraints18 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints18.gridx = 2;\r\n\t\t\tgridBagConstraints18.weightx = 0.0;\r\n\t\t\tgridBagConstraints18.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints18.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints18.gridy = 3;\r\n\t\t\tjLabel8111 = new JLabel();\r\n\t\t\tjLabel8111.setText(\"Maximum IAS:\");\r\n\t\t\tGridBagConstraints gridBagConstraints17 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints17.gridx = 2;\r\n\t\t\tgridBagConstraints17.weightx = 0.0;\r\n\t\t\tgridBagConstraints17.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints17.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints17.gridy = 2;\r\n\t\t\tjLabel811 = new JLabel();\r\n\t\t\tjLabel811.setText(\"Propulsion battery capacity:\");\r\n\t\t\tGridBagConstraints gridBagConstraints16 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints16.gridx = 2;\r\n\t\t\tgridBagConstraints16.weightx = 0.0;\r\n\t\t\tgridBagConstraints16.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints16.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints16.gridy = 0;\r\n\t\t\tjLabel81 = new JLabel();\r\n\t\t\tjLabel81.setText(\"Propulsion fuel capacity:\");\r\n\t\t\tGridBagConstraints gridBagConstraints15 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints15.gridx = 0;\r\n\t\t\tgridBagConstraints15.weightx = 1.0;\r\n\t\t\tgridBagConstraints15.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints15.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints15.fill = GridBagConstraints.NONE;\r\n\t\t\tgridBagConstraints15.gridy = 0;\r\n\t\t\tjLabel8 = new JLabel();\r\n\t\t\tjLabel8.setText(\"Configuration ID:\");\r\n\t\t\tconfigurationInfo = new JPanel();\r\n\t\t\tconfigurationInfo.setLayout(new GridBagLayout());\r\n\t\t\tconfigurationInfo.add(jLabel8, gridBagConstraints15);\r\n\t\t\tconfigurationInfo.add(jLabel81, gridBagConstraints16);\r\n\t\t\tconfigurationInfo.add(jLabel811, gridBagConstraints17);\r\n\t\t\tconfigurationInfo.add(jLabel8111, gridBagConstraints18);\r\n\t\t\tconfigurationInfo.add(jLabel81111, gridBagConstraints19);\r\n\t\t\tconfigurationInfo.add(jLabel811111, gridBagConstraints20);\r\n\t\t\tconfigurationInfo.add(jLabel8111111, gridBagConstraints22);\r\n\t\t\tconfigurationInfo.add(jLabel81111111, gridBagConstraints23);\r\n\t\t\tconfigurationInfo.add(jLabel811111111, gridBagConstraints24);\r\n\t\t\tconfigurationInfo.add(jLabel8111111111, gridBagConstraints25);\r\n\t\t\tconfigurationInfo.add(configurationId, gridBagConstraints26);\r\n\t\t\tconfigurationInfo.add(propulsionFuel, gridBagConstraints27);\r\n\t\t\tconfigurationInfo.add(propulsionBatery, gridBagConstraints28);\r\n\t\t\tconfigurationInfo.add(maximumIAS, gridBagConstraints29);\r\n\t\t\tconfigurationInfo.add(optimumCruiseIAS, gridBagConstraints30);\r\n\t\t\tconfigurationInfo.add(optimumEndurance, gridBagConstraints32);\r\n\t\t\tconfigurationInfo.add(maximumLoadFactor, gridBagConstraints33);\r\n\t\t\tconfigurationInfo.add(grossWeight, gridBagConstraints34);\r\n\t\t\tconfigurationInfo.add(centerOfGravity, gridBagConstraints35);\r\n\t\t\tconfigurationInfo.add(numberEngines, gridBagConstraints36);\r\n\t\t}\r\n\t\treturn configurationInfo;\r\n\t}", "@Override\n\tpublic String getProblem() {\n\t\treturn \"Le circuit est vide\";\n\t}", "private JComboBox getCardValue() {\n\t\tif (cardValue == null) {\n\t\t\tcardValue = new JComboBox();\n\t\t\tcardValue.setModel(new TypeModel(TypeModel.valueType_cards));\n\t\t\tcardValue.setSelectedIndex(5);\n\t\t}\n\t\treturn cardValue;\n\t}", "public TextField getQuestion() {\r\n\t\tquestion.setPromptText(\"question\");\r\n\t\treturn question;\r\n\t}", "private JPanel getTpjPanel() {\r\n\t\tif (tpjPanel == null) {\r\n\t\t\ttpjLabel = new JPanel();\r\n\t\t\ttpjLabel.setBackground(Color.GRAY);\r\n\t\t\ttpjLabel.setBounds(new Rectangle(0, 0, 788, 360));\r\n\t\t\ttpjPanel = new JPanel();\r\n\t\t\ttpjPanel.setLayout(null);\r\n\t\t\ttpjPanel.setBounds(new Rectangle(50, 78, 788, 360));\r\n\t\t\ttpjPanel.add(qdsj1jLabel, null);\r\n\t\t\ttpjPanel.add(qdsj2jLabel, null);\r\n\t\t\ttpjPanel.add(getJssjjLabel(), null);\r\n\t\t\ttpjPanel.add(getJssj2jLabel(), null);\r\n\t\t\ttpjPanel.add(tpjLabel, null);\r\n\r\n\t\t}\r\n\t\treturn tpjPanel;\r\n\t}", "public String getQuestion() {\n return question;\n }", "public String getQuestion() {\n return question;\n }", "private JPanel getJContentPane() {\n if( jContentPane == null ) {\n GridBagConstraints gridBagConstraints11 = new GridBagConstraints();\n gridBagConstraints11.gridx = 0;\n gridBagConstraints11.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints11.insets = new java.awt.Insets(3,5,0,5);\n gridBagConstraints11.gridy = 3;\n jLabel2 = new JLabel();\n jLabel2.setText(\"(The fallback language for all missing keys is english.)\");\n GridBagConstraints gridBagConstraints4 = new GridBagConstraints();\n gridBagConstraints4.gridx = 0;\n gridBagConstraints4.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints4.weightx = 1.0;\n gridBagConstraints4.gridy = 6;\n GridBagConstraints gridBagConstraints3 = new GridBagConstraints();\n gridBagConstraints3.fill = java.awt.GridBagConstraints.NONE;\n gridBagConstraints3.gridy = 4;\n gridBagConstraints3.weightx = 0.0;\n gridBagConstraints3.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints3.insets = new java.awt.Insets(5,25,10,5);\n gridBagConstraints3.gridx = 0;\n GridBagConstraints gridBagConstraints2 = new GridBagConstraints();\n gridBagConstraints2.gridx = 0;\n gridBagConstraints2.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints2.insets = new java.awt.Insets(15,5,0,5);\n gridBagConstraints2.gridy = 2;\n jLabel1 = new JLabel();\n jLabel1.setText(\"Choose the language used as source for the translation:\");\n GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\n gridBagConstraints1.fill = java.awt.GridBagConstraints.NONE;\n gridBagConstraints1.gridy = 1;\n gridBagConstraints1.weightx = 0.0;\n gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints1.insets = new java.awt.Insets(5,25,0,5);\n gridBagConstraints1.gridx = 0;\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(5,5,0,5);\n gridBagConstraints.gridy = 0;\n jLabel = new JLabel();\n jLabel.setText(\"Choose the target language to translate into:\");\n jContentPane = new JPanel();\n jContentPane.setLayout(new GridBagLayout());\n jContentPane.add(jLabel, gridBagConstraints);\n jContentPane.add(getCBoxTargetLanguage(), gridBagConstraints1);\n jContentPane.add(jLabel1, gridBagConstraints2);\n jContentPane.add(getCBoxSourceLanguage(), gridBagConstraints3);\n jContentPane.add(getJPanel(), gridBagConstraints4);\n jContentPane.add(jLabel2, gridBagConstraints11);\n }\n return jContentPane;\n }", "public Question getQuestion() {\n return this.question;\n }", "public void displayQuestion() {\n Question question = getCurrentQuestion();\n String type = question.getType();\n System.out.println(question);\n switch (type) {\n case \"multiple_choice\":\n optionFragment = new MulitipleChoiceFragment();\n break;\n case \"multiple_select\":\n optionFragment = new MultipleSelectQuestionFragment();\n break;\n case \"open\":\n optionFragment = new OpenQuestionFragment();\n break;\n case \"time\":\n optionFragment = new TimeQuestionFragment();\n break;\n case \"date\":\n optionFragment = new DateQuestionFragment();\n break;\n case \"datetime\":\n break; //TODO: datetime answer\n case \"image\":\n optionFragment = new TakePhotoFragment();\n break;\n case \"video\":\n optionFragment = new RecordVideoFragment();\n break;\n case \"audio\":\n optionFragment = new RecordAudioFragment();\n break;\n case \"infoscreen\":\n optionFragment = new InfoscreenFragment();\n break;\n case \"accelerometer\":\n optionFragment = new AccelerometerFragment();\n break;\n case \"gps\":\n optionFragment = new GlobalPositioningSystemFragment();\n break;\n case \"lightsensor\":\n optionFragment = new LightSensorFragment();\n break;\n case \"compassensor\":\n optionFragment = new CompasSensorFragment();\n break;\n case \"gyroscope\":\n optionFragment = new GyroscopeFragment();\n break;\n default:\n break; //TODO: add default\n }\n //add the question object to the fragment object through bundle\n Bundle questionBundle = new Bundle();\n questionBundle.putParcelable(\"question\", question);\n optionFragment.setArguments(questionBundle);\n\n //place fragment in the layout\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.question_answer, optionFragment);\n transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n transaction.commit();\n }", "Question getQuestion();", "private edu.mit.coeus.iacuc.bean.ProtocolInfoBean getIacucProtocolDetails(String protocolNumber)throws CoeusException{\r\n edu.mit.coeus.iacuc.bean.ProtocolInfoBean infoBean = new edu.mit.coeus.iacuc.bean.ProtocolInfoBean();\r\n if (protocolNumber != null && protocolNumber.trim().length() > 0 && !protocolNumber.equals(\"\")) {\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/IacucProtocolServlet\";\r\n RequesterBean requester = new RequesterBean();\r\n requester.setFunctionType('f');\r\n requester.setDataObject(protocolNumber);\r\n AppletServletCommunicator comm = new AppletServletCommunicator(connectTo, requester);\r\n comm.send();\r\n ResponderBean response = comm.getResponse();\r\n if(!response.isSuccessfulResponse()){\r\n throw new CoeusException(response.getMessage(), 1);\r\n }else{\r\n infoBean = (edu.mit.coeus.iacuc.bean.ProtocolInfoBean)response.getDataObject();\r\n }\r\n }\r\n return infoBean;\r\n }", "public JLabel getSkillLabel(int skillNumber){\n switch(skillNumber){\n case 0 : return skill1Label;\n case 1 : return skill2Label;\n case 2 : return skill3Label;\n case 3 : return skill4Label;\n }\n return null;\n }", "public JPanel createWeaponGuessPanel() {\n\t\tJPanel panel = new JPanel();\n\t\tJComboBox<String> comboBox = new JComboBox<String>();\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"Weapon Guess\"));\n\t\tcomboBox.addItem(\"Unsure\");\n\t\tcomboBox.addItem(\"Rope\");\n\t\tcomboBox.addItem(\"Lead Pipe\");\n\t\tcomboBox.addItem(\"Knife\");\n\t\tcomboBox.addItem(\"Wrench\");\n\t\tcomboBox.addItem(\"Candlestick\");\n\t\tcomboBox.addItem(\"Revolver\");\t\n\t\tpanel.add(comboBox);\n\t\treturn panel;\n\t}", "ComponentResultsView getResultsView() {\n\tif (this.componentResultsView == null) {\n\t\tthis.componentResultsView = (ComponentResultsView) getWorkbenchView(\"org.eclipse.test.internal.performance.results.ui.ComponentsResultsView\");\n\t}\n\treturn this.componentResultsView;\n}", "@Override\n public SelectCurriculumVisualPanel getComponent() {\n if (component == null) {\n component = new SelectCurriculumVisualPanel();\n component.manager.addPropertyChangeListener(this);\n }\n return component;\n }", "public QuestionsScreen() {\n initComponents();\n\n \n File file = new File(\"summativeCSQuestions.xml\");\n readXML(file);\n\n \n \n \n questionNumber = 1;\n \n String question = questions.get(questionNumber - 1).getFirstChildElement(\"actualQuestion\").getValue();\n\n String optionA = questions.get(questionNumber - 1).getFirstChildElement(\"optionA\").getValue();\n String optionB = questions.get(questionNumber - 1).getFirstChildElement(\"optionB\").getValue();\n String optionC = questions.get(questionNumber - 1).getFirstChildElement(\"optionC\").getValue();\n String optionD = questions.get(questionNumber - 1).getFirstChildElement(\"optionD\").getValue();\n\n jTextAreaQuestion.setText(question);\n jTextAreaOptionA.setText(optionA);\n jTextAreaOptionB.setText(optionB);\n jTextAreaOptionC.setText(optionC);\n jTextAreaOptionD.setText(optionD);\n\n jTextFieldQuestionNum.setText(\"\" + questionNumber );\n jTextFieldScore.setText(\"\" + score);\n jTextFieldAnswerChecked.setText(\"Select an Answer.\");\n jButtonNext.setText(\"Check Answer\");\n \n\n }", "public String getQuestion() {\n\t\treturn question;\n\t}", "JComponent getImpl();", "public Problem getProblem(int index){\n return problems.getProblem(index);\n }", "private void displayQuestion(Question question) {\n String query = question.getQuery();\n TextView queryTextView = getTextViewById(\"quiz_query\");\n queryTextView.setText(query);\n\n //Setting text for quiz options\n Iterator<String> options = question.getOptions().iterator();\n RadioButton A = getRadioButtonById(\"optionA\");\n RadioButton B = getRadioButtonById(\"optionB\");\n RadioButton C = getRadioButtonById(\"optionC\");\n RadioButton D = getRadioButtonById(\"optionD\");\n A.setText(options.next());\n B.setText(options.next());\n C.setText(options.next());\n D.setText(options.next());\n }", "public String init() {\n\t\tif (question == null) {\n\t\t\treturn indexView;\n\t\t}\n\t\treturn \"\";\n\t}", "public String diagnostic() {\n\t\tString output = \"\";\n\t\tString stateString = \"\";\n\t\tif (this.getState() == Player.HUMAN)\n\t\t\tstateString = \"is selected by the player\";\n\t\telse if (this.getState() == Player.COMPUTER)\n\t\t\tstateString = \"is selected by the computer\";\n\t\telse\n\t\t\tstateString = \"is not selected\";\n\t\t\t\n\t\toutput += \"The point \" + this.toString() + \" \" + stateString +\n\t\t\t\t\t\" and is associated with the rows:\\n\";\n\t\tfor (Row r : containingRows) {\n\t\t\toutput += r + \"\\n\";\n\t\t}\n\t\treturn output;\n\t}", "private JPanel getPanelInfo() {\n\t\tif (panelInfo == null) {\n\t\t\tGridBagConstraints gridBagConstraints7 = new GridBagConstraints();\n\t\t\tgridBagConstraints7.fill = GridBagConstraints.BOTH;\n\t\t\tgridBagConstraints7.gridx = 0;\n\t\t\tgridBagConstraints7.gridy = 2;\n\t\t\tgridBagConstraints7.ipadx = 358;\n\t\t\tgridBagConstraints7.ipady = 7;\n\t\t\tgridBagConstraints7.weightx = 1.0;\n\t\t\tgridBagConstraints7.weighty = 1.0;\n\t\t\tgridBagConstraints7.insets = new Insets(0, 26, 1, 26);\n\t\t\tGridBagConstraints gridBagConstraints6 = new GridBagConstraints();\n\t\t\tgridBagConstraints6.gridx = 0;\n\t\t\tgridBagConstraints6.ipadx = 358;\n\t\t\tgridBagConstraints6.ipady = 7;\n\t\t\tgridBagConstraints6.gridy = 1;\n\t\t\tGridBagConstraints gridBagConstraints5 = new GridBagConstraints();\n\t\t\tgridBagConstraints5.insets = new Insets(0, 26, 0, 0);\n\t\t\tgridBagConstraints5.gridy = 0;\n\t\t\tgridBagConstraints5.anchor = GridBagConstraints.WEST;\n\t\t\tgridBagConstraints5.gridx = 0;\n\t\t\tGridBagConstraints gridBagConstraints4 = new GridBagConstraints();\n\t\t\tgridBagConstraints4.fill = GridBagConstraints.BOTH;\n\t\t\tgridBagConstraints4.gridy = 1;\n\t\t\tgridBagConstraints4.weightx = 1.0;\n\t\t\tgridBagConstraints4.weighty = 1.0;\n\t\t\tgridBagConstraints4.gridx = 1;\n\t\t\tGridBagConstraints gridBagConstraints2 = new GridBagConstraints();\n\t\t\tgridBagConstraints2.insets = new Insets(0, 26, 0, 15);\n\t\t\tgridBagConstraints2.gridy = 2;\n\t\t\tgridBagConstraints2.weightx = 1.0;\n\t\t\tgridBagConstraints2.anchor = GridBagConstraints.WEST;\n\t\t\tgridBagConstraints2.gridx = 0;\n\t\t\tlabelCanonicalName = new JLabel();\n\t\t\tlabelCanonicalName.setText(\"JLabel\");\n\t\t\tlabelCanonicalName.setFont(new java.awt.Font(\"SansSerif\", java.awt.Font.BOLD, 14));\n\t\t\tlabelCanonicalName.setHorizontalAlignment(SwingConstants.LEADING);\n\t\t\tpanelInfo = new JPanel();\n\t\t\tpanelInfo.setLayout(new GridBagLayout());\n\t\t\tpanelInfo.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));\n\t\t\tpanelInfo.setPreferredSize(new Dimension(629, 100));\n\t\t\tpanelInfo.setMinimumSize(new Dimension(629, 100));\n\t\t\tpanelInfo.setMaximumSize(new Dimension(629, 100));\n\t\t\tpanelInfo.add(labelCanonicalName, gridBagConstraints5);\n\t\t\tpanelInfo.add(getJPanel4(), gridBagConstraints6);\n\t\t\tpanelInfo.add(getJTextAreaDescription(), gridBagConstraints7);\n\t\t}\n\t\treturn panelInfo;\n\t}", "private JPanel getConfigInfo() {\r\n\t\tif (configInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints14 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints14.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints14.gridy = 0;\r\n\t\t\tgridBagConstraints14.weightx = 1.0;\r\n\t\t\tgridBagConstraints14.weighty = 1.0;\r\n\t\t\tgridBagConstraints14.gridx = 0;\r\n\t\t}\r\n\t\treturn configInfo;\r\n\t}", "public Alternatives getAlternatives_11() { return cAlternatives_11; }", "public String getInformation() {\n \treturn \"This is a Maths Assessment\" +\n \t\t\t \"\\nNumber of questions: \" + Integer.toString(numQuestions) + \n \t\t\t \"\\nClosing Date: \" + closingDate;\n }", "public JPanel createQuestions(){\n\t\t//Create a new panel\n\t\tJPanel questionPanel = new JPanel();\n\t\tquestionPanel.setBackground(Color.BLACK);\n\t\tquestionPanel.setLayout(new BorderLayout());\n\t\t//the Image Icon will take in a new Image Icon with the picture as a jpg\n\t\tImageIcon heroIcon = new ImageIcon(\"Avengers_vs_JLA.jpg\");\n\t\t//create a label that will hold the picture center of the \n\t\tJLabel heroLabel = new JLabel(\" \",heroIcon,JLabel.CENTER);\n\t\t//add the the Label to the Panel\n\t\tquestionPanel.add(heroLabel,BorderLayout.PAGE_START);\n\t\t\n\t\t//the Label will take in the data of the currentNode at the time when you are around the tree\n\t\tquestions = new JLabel(currentNode.getData().toString());\n\t\t//make the label center\n\t\tquestions.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t//add Font\n\t\tFont questionsFont = new Font(\"Bauhaus 93\",Font.PLAIN,30);\n\t\t//the Foreground is white\n\t\tquestions.setForeground(Color.WHITE);\n\t\tquestions.setFont(questionsFont);\n\t\t//add Label to the panel\n\t\tquestionPanel.add(questions);\n\t\t\n\t\t\n\t\t//return questionPanel\n\t\treturn questionPanel;\n\t\n\t}", "public Component getComponent() {\n return component;\n }", "public AbsBuilderLevelPanel getCurrentLevelPanel()\n\t{\n\t\tAbsBuilderLevelPanel card = null;\n\n\t\t//find the component that is set to visible (will be a JPanel\n\t\tfor (Component comp : pnlLevelSwitch.getComponents() ) {\n\t\t\tif (comp.isVisible() == true) {\n\t\t\t\tcard = (AbsBuilderLevelPanel)comp;\n\t\t\t}\n\t\t}\n\n\t\treturn card;\n\t}", "private JComboBox getJComboBox() {\r\n\t\tif (jComboBox == null) {\r\n\t\t\tjComboBox = new JComboBox();\r\n\t\t\tjComboBox.addActionListener(\r\n\t\t\t\t\tnew ActionListener(){\r\n\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent arg0) {\r\n\t\t\tLayer selected=(Layer)jComboBox.getSelectedItem();\r\n\t\t\tif (selected!=null)\r\n\t\t\t\t{\r\n\t\t\t\tjLabel.setText(aplicacion.getI18nString(\"SelectSheetLayerPrintPanel.Generar\")+\" \" +selected.getFeatureCollectionWrapper().size()+\" \"+aplicacion.getI18nString(\"SelectSheetLayerPrintPanel.Hojas\"));\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}\r\n\t\treturn jComboBox;\r\n\t}", "public String getDifficulty() {\n return difficulty;\n }", "private JPanel getJpanelFlowProfile() {\n\t\tif (jpanelFlowProfile == null) {\n\t\t\tjpanelFlowProfile = new JPanel();\n\t\t\tjpanelFlowProfile.setLayout(null);\n\t\t\tjpanelFlowProfile.setPreferredSize(new Dimension(615, 477));\n\t\t\tjpanelFlowProfile.setBorder(BorderFactory.createTitledBorder(null, \"Back-Calculated Uracil Dead Time vs. Eluent Composition\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font(\"Dialog\", Font.BOLD, 12), new Color(51, 51, 51)));\n\t\t\tjpanelFlowProfile.setBackground(Color.white);\n\t\t\tjpanelFlowProfile.setSize(new Dimension(469, 261));\n\t\t\tjpanelFlowProfile.setLocation(new Point(6, 308));\n\t\t\tjpanelFlowProfile.add(m_GraphControlFlowRate, null);\n\t\t}\n\t\treturn jpanelFlowProfile;\n\t}", "public final View cpr() {\n AppMethodBeat.m2504i(37041);\n FrameLayout frameLayout = new FrameLayout(this.context);\n AppMethodBeat.m2505o(37041);\n return frameLayout;\n }", "private JPanel getResultSelectionPanel() {\n\t\tif (resultSelectionPanel == null) {\n\t\t\tjLabel1 = new JLabel();\n\t\t\tjLabel1.setBounds(new java.awt.Rectangle(5, 9, 132, 24));\n\t\t\tjLabel1.setText(PluginServices.getText(this, \"Cobertura_de_salida\")\n\t\t\t\t\t+ \":\");\n\t\t\tresultSelectionPanel = new JPanel();\n\t\t\tresultSelectionPanel.setLayout(null);\n\t\t\tresultSelectionPanel.setBounds(new java.awt.Rectangle(0, 291, 468,\n\t\t\t\t\t41));\n\t\t\tresultSelectionPanel\n\t\t\t\t\t.setBorder(javax.swing.BorderFactory\n\t\t\t\t\t\t\t.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\n\t\t\tresultSelectionPanel.add(getFileNameResultTextField(), null);\n\t\t\tresultSelectionPanel.add(getOpenFileButton(), null);\n\t\t\tresultSelectionPanel.add(jLabel1, null);\n\t\t}\n\t\treturn resultSelectionPanel;\n\t}", "@Override\n\tpublic Object getClientGuiElement(int _ID, EntityPlayer _player, World _world, int _x, int _y, int _z) \n\t{\n\t\tswitch(_ID)\n\t\t{\n\t\tcase 0:\n\t\t\treturn new GuiTalentScreen();\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn null;\n\t}", "private ProtocolInfoBean getProtocolDetails(String protocolNumber)throws CoeusException{\r\n ProtocolInfoBean infoBean = new ProtocolInfoBean();\r\n if (protocolNumber != null && protocolNumber.trim().length() > 0 && !protocolNumber.equals(\"\")) {\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/protocolMntServlet\";\r\n RequesterBean requester = new RequesterBean();\r\n requester.setFunctionType('f');\r\n requester.setDataObject(protocolNumber);\r\n AppletServletCommunicator comm = new AppletServletCommunicator(connectTo, requester);\r\n comm.send();\r\n ResponderBean response = comm.getResponse();\r\n if(!response.isSuccessfulResponse()){\r\n throw new CoeusException(response.getMessage(), 1);\r\n }else{\r\n infoBean = (ProtocolInfoBean)response.getDataObject();\r\n }\r\n }\r\n return infoBean;\r\n }", "public String toString () {\r\n String display = courseCode;\r\n display += \"\\nDepartment: \" + department;\r\n display += \"\\nGrade: \" + grade;\r\n return display;\r\n }", "public String getExperimentShortLabel();", "private JPanel getMethodSelectionPanel() {\n\t\tif (methodSelectionPanel == null) {\n\t\t\tmethodSelectionPanel = new JPanel();\n\t\t\tmethodSelectionPanel.setLayout(null);\n\t\t\tmethodSelectionPanel.setBounds(new java.awt.Rectangle(2, 127, 467,\n\t\t\t\t\t94));\n\t\t\tmethodSelectionPanel\n\t\t\t\t\t.setBorder(javax.swing.BorderFactory\n\t\t\t\t\t\t\t.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\n\t\t\tmethodSelectionPanel.add(getDistanceBufferRadioButton(), null);\n\t\t\tmethodSelectionPanel.add(getBufferDistanceTextField(), null);\n\t\t\tmethodSelectionPanel.add(getAttributeBufferRadioButton(), null);\n\t\t\tmethodSelectionPanel.add(getLayerFieldsComboBox(), null);\n\t\t\tmethodSelectionPanel.add(getDissolveEntitiesJCheckBox(), null);\n\t\t\tmethodSelectionPanel.add(getEndCapCheckBox(), null);\n\t\t}\n\t\treturn methodSelectionPanel;\n\t}", "public void courseInfo() {\n\t\tList<Course> unfinishedCourses = super.getUnfinishedCourses();\n\t\tList<Course> finishedCourses = super.getFinishedCourses();\n\n\t\tString retStr = \"Unfinished Courses: \";\n\t\tfor (int i = 0; i < unfinishedCourses.size(); i++) {\n \tretStr += unfinishedCourses.get(i);\n \tif (i != unfinishedCourses.size()-1) {\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nFinished Courses: \";\n\t\tfor (int i = 0; i < finishedCourses.size(); i++) {\n \tretStr += finishedCourses.get(i);\n \tif (i != finishedCourses.size()-1) {\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nHP: \" + this.hp;\n\t\tSystem.out.println(retStr);\n\t}", "public String displayCourse(){\n return \"\\tCourse Id: \" + id + \"\\n\" +\n \"\\tCourse Name: \" + name + \"\\n\" +\n \"\\tCourse Description: \" + description + \"\\n\" +\n \"\\tCourse Teacher(s): \" + teacherString() + \"\\n\";\n }", "public String getQuestion() {\n return mQuestion;\n }", "public static List<Question> getQuestions() {\n if (QUESTION == null) {\n QUESTION = new ArrayList<>();\n List<Option> options = new ArrayList<Option>();\n options.add(new Option(1, \"Radio Waves\"));\n options.add(new Option(2, \"Sound Waves\"));\n options.add(new Option(3, \"Gravity Waves\"));\n options.add(new Option(4, \"Light Waves\"));\n QUESTION.add(new Question(1, \"Which kind of waves are used to make and receive cellphone calls?\", getCategory(4), options, options.get(0)));\n\n List<Option> options2 = new ArrayList<Option>();\n options2.add(new Option(1, \"8\"));\n options2.add(new Option(2, \"6\"));\n options2.add(new Option(3, \"3\"));\n options2.add(new Option(4, \"1\"));\n QUESTION.add(new Question(2, \"How many hearts does an octopus have?\", getCategory(4), options2, options2.get(2)));\n\n List<Option> options3 = new ArrayList<Option>();\n options3.add(new Option(1, \"Newton's Law\"));\n options3.add(new Option(2, \"Hooke's law\"));\n options3.add(new Option(3, \"Darwin's Law\"));\n options3.add(new Option(4, \"Archimedes' principle\"));\n QUESTION.add(new Question(3, \"Whose law states that the force needed to extend a spring by some distance is proportional to that distance?\", getCategory(4), options3, options3.get(1)));\n\n List<Option> options4 = new ArrayList<Option>();\n options4.add(new Option(1, \"M\"));\n options4.add(new Option(2, \"$\"));\n options4.add(new Option(3, \"W\"));\n options4.add(new Option(4, \"#\"));\n QUESTION.add(new Question(4, \"What is the chemical symbol for tungsten?\", getCategory(4), options4, options4.get(2)));\n\n List<Option> options5 = new ArrayList<Option>();\n options5.add(new Option(1, \"Pulsar\"));\n options5.add(new Option(2, \"Draconis\"));\n options5.add(new Option(3, \"Aludra\"));\n options5.add(new Option(4, \"Alwaid\"));\n QUESTION.add(new Question(5, \"What is a highly magnetized, rotating neutron star that emits a beam of electromagnetic radiation?\", getCategory(4), options5, options5.get(0)));\n\n List<Option> options6 = new ArrayList<Option>();\n options6.add(new Option(1, \"2\"));\n options6.add(new Option(2, \"4\"));\n options6.add(new Option(3, \"7\"));\n options6.add(new Option(4, \"10\"));\n QUESTION.add(new Question(6, \"At what temperature is Centigrade equal to Fahrenheit?\", getCategory(4), options6, options6.get(2)));\n\n List<Option> options7 = new ArrayList<Option>();\n options7.add(new Option(1, \"Temperature\"));\n options7.add(new Option(2, \"Distance\"));\n options7.add(new Option(3, \"Light Intensity\"));\n options7.add(new Option(4, \"Noise\"));\n QUESTION.add(new Question(7, \"Kelvin is a unit to measure what?\", getCategory(4), options7, options7.get(2)));\n\n List<Option> options8 = new ArrayList<Option>();\n options8.add(new Option(1, \"Mars\"));\n options8.add(new Option(2, \"Jupiter\"));\n options8.add(new Option(3, \"Saturn\"));\n options8.add(new Option(4, \"Neptune\"));\n QUESTION.add(new Question(8, \"Triton is the largest moon of what planet?\", getCategory(4), options8, options8.get(3)));\n\n List<Option> options9 = new ArrayList<Option>();\n options9.add(new Option(1, \"Brain\"));\n options9.add(new Option(2, \"Heart\"));\n options9.add(new Option(3, \"Lungs\"));\n options9.add(new Option(4, \"Skin\"));\n QUESTION.add(new Question(9, \"What is the human body’s biggest organ?\", getCategory(4), options9, options9.get(3)));\n\n List<Option> options10 = new ArrayList<Option>();\n options10.add(new Option(1, \"Skull\"));\n options10.add(new Option(2, \"Knee Cap\"));\n options10.add(new Option(3, \"Shoulder Joint\"));\n options10.add(new Option(4, \"Backbone\"));\n QUESTION.add(new Question(10, \"What is the more common name for the patella?\", getCategory(4), options10, options10.get(1)));\n\n List<Option> options11 = new ArrayList<Option>();\n options11.add(new Option(1, \"Mother India\"));\n options11.add(new Option(2, \"The Guide\"));\n options11.add(new Option(3, \"Madhumati\"));\n options11.add(new Option(4, \"Amrapali\"));\n QUESTION.add(new Question(11, \"Which was the 1st Indian movie submitted for Oscar?\", getCategory(1), options11, options11.get(0)));\n\n List<Option> options12 = new ArrayList<Option>();\n options12.add(new Option(1, \"Gunda\"));\n options12.add(new Option(2, \"Sholey\"));\n options12.add(new Option(3, \"Satte pe Satta\"));\n options12.add(new Option(4, \"Angoor\"));\n QUESTION.add(new Question(12, \"Which film is similar to Seven Brides For Seven Brothers?\", getCategory(1), options12, options12.get(2)));\n\n List<Option> options13 = new ArrayList<Option>();\n options13.add(new Option(1, \"Rocky\"));\n options13.add(new Option(2, \"Pancham\"));\n options13.add(new Option(3, \"Chichi\"));\n options13.add(new Option(4, \"Chintu\"));\n QUESTION.add(new Question(13, \"Music Director R.D. Burman is also known as?\", getCategory(1), options13, options13.get(1)));\n\n List<Option> options14 = new ArrayList<Option>();\n options14.add(new Option(1, \"Nagarjuna\"));\n options14.add(new Option(2, \"Chiranjeevi\"));\n options14.add(new Option(3, \"Rajinikanth\"));\n options14.add(new Option(4, \"NTR\"));\n QUESTION.add(new Question(14, \"Shivaji Rao Gaikwad is the real name of which actor?\", getCategory(1), options14, options14.get(2)));\n\n List<Option> options15 = new ArrayList<Option>();\n options15.add(new Option(1, \"Geraftaar\"));\n options15.add(new Option(2, \"Hum\"));\n options15.add(new Option(3, \"Andha kanoon\"));\n options15.add(new Option(4, \"Agneepath\"));\n QUESTION.add(new Question(15, \"Name the film in which Amitabh Bachchan, Rajinikanth and Kamal Hasan worked together.\", getCategory(1), options15, options15.get(0)));\n\n List<Option> options16 = new ArrayList<Option>();\n options16.add(new Option(1, \"AR Rahman\"));\n options16.add(new Option(2, \"Bhanu Athaiya\"));\n options16.add(new Option(3, \"Gulzar\"));\n options16.add(new Option(4, \"Rasul Pookutty\"));\n QUESTION.add(new Question(16, \"First Indian to win Oscar award?\", getCategory(1), options16, options16.get(1)));\n\n List<Option> options17 = new ArrayList<Option>();\n options17.add(new Option(1, \"Jab tak hai jaan\"));\n options17.add(new Option(2, \"Rab ne bana di jodi\"));\n options17.add(new Option(3, \"Veer zara\"));\n options17.add(new Option(4, \"Ek tha tiger\"));\n QUESTION.add(new Question(17, \"Which was the last movie directed by Yash Chopra?\", getCategory(1), options17, options17.get(0)));\n\n\n List<Option> options18 = new ArrayList<Option>();\n options18.add(new Option(1, \"‘Thala’ Ajith\"));\n options18.add(new Option(2, \"Arjun Sarja\"));\n options18.add(new Option(3, \"Ashutosh Gawariker\"));\n options18.add(new Option(4, \"AK Hangal\"));\n QUESTION.add(new Question(18, \"\\\"Itna sannata kyun hai bhai?\\\" Who said this, now legendary words, in 'Sholay'?\", getCategory(1), options18, options18.get(3)));\n\n List<Option> options19 = new ArrayList<Option>();\n options19.add(new Option(1, \"Tommy\"));\n options19.add(new Option(2, \"Tuffy\"));\n options19.add(new Option(3, \"Toffy\"));\n options19.add(new Option(4, \"Timmy\"));\n QUESTION.add(new Question(19, \"What was the name of Madhuri Dixit’s dog in Hum Aapke Hain Koun?\", getCategory(1), options19, options19.get(1)));\n\n List<Option> options20 = new ArrayList<Option>();\n options20.add(new Option(1, \"Premnath\"));\n options20.add(new Option(2, \"Dilip Kumar\"));\n options20.add(new Option(3, \"Raj Kapoor\"));\n options20.add(new Option(4, \"Kishore Kumar\"));\n QUESTION.add(new Question(20, \"Beautiful actress Madhubala was married to?\", getCategory(1), options20, options20.get(3)));\n\n\n List<Option> options21 = new ArrayList<Option>();\n options21.add(new Option(1, \"Sher Khan\"));\n options21.add(new Option(2, \"Mufasa\"));\n options21.add(new Option(3, \"Simba\"));\n options21.add(new Option(4, \"Sarabi\"));\n QUESTION.add(new Question(21, \"What is the name of the young lion whose story is told in the musical 'The Lion King'?\", getCategory(2), options21, options21.get(2)));\n\n List<Option> options22 = new ArrayList<Option>();\n options22.add(new Option(1, \"Scotland\"));\n options22.add(new Option(2, \"England\"));\n options22.add(new Option(3, \"Germany\"));\n options22.add(new Option(4, \"Netherland\"));\n QUESTION.add(new Question(22, \"Which country's freedom struggle is portrayed in the Mel Gibson movie 'Braveheart'?\", getCategory(2), options22, options22.get(0)));\n\n List<Option> options23 = new ArrayList<Option>();\n options23.add(new Option(1, \"Letters to Juliet\"));\n options23.add(new Option(2, \"Saving Private Ryan\"));\n options23.add(new Option(3, \"Forest Gump\"));\n options23.add(new Option(4, \"Gone With The Wind\"));\n QUESTION.add(new Question(23, \"Which movie had this dialogue \\\"My mama always said, life was like a box of chocolates. You never know what you're gonna get.\", getCategory(2), options23, options23.get(2)));\n\n List<Option> options24 = new ArrayList<Option>();\n options24.add(new Option(1, \"Die\"));\n options24.add(new Option(2, \"Golden\"));\n options24.add(new Option(3, \"Casino\"));\n options24.add(new Option(4, \"Never\"));\n QUESTION.add(new Question(24, \"Excluding \\\"the\\\", which word appears most often in Bond movie titles?\", getCategory(2), options24, options24.get(3)));\n\n List<Option> options25 = new ArrayList<Option>();\n options25.add(new Option(1, \"Bishop\"));\n options25.add(new Option(2, \"Ash\"));\n options25.add(new Option(3, \"Call\"));\n options25.add(new Option(4, \"Carlos\"));\n QUESTION.add(new Question(25, \"Name the android in movie Alien \", getCategory(2), options25, options25.get(1)));\n\n List<Option> options26 = new ArrayList<Option>();\n options26.add(new Option(1, \"Gone with the wind\"));\n options26.add(new Option(2, \"Home footage\"));\n options26.add(new Option(3, \"With Our King and Queen Through India\"));\n options26.add(new Option(4, \"Treasure Island\"));\n QUESTION.add(new Question(26, \"Which was the first colour film to win a Best Picture Oscar?\", getCategory(2), options26, options26.get(0)));\n\n List<Option> options27 = new ArrayList<Option>();\n options27.add(new Option(1, \"Robert Redford\"));\n options27.add(new Option(2, \"Michael Douglas\"));\n options27.add(new Option(3, \"Harrison Ford\"));\n options27.add(new Option(4, \"Patrick Swayze\"));\n QUESTION.add(new Question(27, \"Who played the male lead opposite Sharon Stone in the hugely successful movie 'The Basic Instinct'?\", getCategory(2), options27, options27.get(1)));\n\n List<Option> options28 = new ArrayList<Option>();\n options28.add(new Option(1, \"10,000 BC\"));\n options28.add(new Option(2, \"Day after tomorrow\"));\n options28.add(new Option(3, \"2012\"));\n options28.add(new Option(4, \"The Noah's Ark Principle\"));\n QUESTION.add(new Question(28, \"Which Roland Emmerich movie portrays fictional cataclysmic events that were to take place in early 21st century?\", getCategory(2), options28, options28.get(2)));\n\n List<Option> options29 = new ArrayList<Option>();\n options29.add(new Option(1, \"Finding Nemo\"));\n options29.add(new Option(2, \"The Incredibles\"));\n options29.add(new Option(3, \"Monsters, Inc.\"));\n options29.add(new Option(4, \"Toy Story\"));\n QUESTION.add(new Question(29, \"What was the first movie by Pixar to receive a rating higher than G in the United States?\", getCategory(2), options29, options29.get(1)));\n\n List<Option> options30 = new ArrayList<Option>();\n options30.add(new Option(1, \"Draco\"));\n options30.add(new Option(2, \"Harry\"));\n options30.add(new Option(3, \"Hermione\"));\n options30.add(new Option(4, \"Ron\"));\n QUESTION.add(new Question(30, \"In the 'Prisoner of Azkaban', who throws rocks at Hagrid's hut so that Harry, Ron and Hermione can leave?\", getCategory(2), options30, options30.get(2)));\n\n List<Option> options31 = new ArrayList<Option>();\n options31.add(new Option(1, \"Brett Lee\"));\n options31.add(new Option(2, \"Adam Gilchrist\"));\n options31.add(new Option(3, \"Jason Gillespie\"));\n options31.add(new Option(4, \"Glenn McGrath\"));\n QUESTION.add(new Question(31, \"'Dizzy' is the nickname of what Australian player?\", getCategory(3), options31, options31.get(2)));\n\n List<Option> options32 = new ArrayList<Option>();\n options32.add(new Option(1, \"1883 between Australia and Wales\"));\n options32.add(new Option(2, \"1844 between Canada and the USA\"));\n options32.add(new Option(3, \"1869 between England and Australia\"));\n options32.add(new Option(4, \"1892 between England and India\"));\n QUESTION.add(new Question(32, \"In what year was the first international cricket match held?\", getCategory(3), options32, options32.get(1)));\n\n List<Option> options33 = new ArrayList<Option>();\n options33.add(new Option(1, \"Salim Durrani\"));\n options33.add(new Option(2, \"Farooq Engineer\"));\n options33.add(new Option(3, \"Vijay Hazare\"));\n options33.add(new Option(4, \"Mansur Ali Khan Pataudi\"));\n QUESTION.add(new Question(33, \"Which former Indian cricketer was nicknamed 'Tiger'?\", getCategory(3), options33, options33.get(3)));\n\n List<Option> options34 = new ArrayList<Option>();\n options34.add(new Option(1, \"Piyush Chawla\"));\n options34.add(new Option(2, \"Gautam Gambhir\"));\n options34.add(new Option(3, \"Irfan Pathan\"));\n options34.add(new Option(4, \"Suresh Raina\"));\n QUESTION.add(new Question(34, \"Who was named as the ICC Emerging Player of the Year 2004?\", getCategory(3), options34, options34.get(2)));\n\n List<Option> options35 = new ArrayList<Option>();\n options35.add(new Option(1, \"Subhash Gupte\"));\n options35.add(new Option(2, \"M.L.Jaisimha\"));\n options35.add(new Option(3, \"Raman Lamba\"));\n options35.add(new Option(4, \"Lala Amarnath\"));\n QUESTION.add(new Question(35, \"Which cricketer died on the field in Bangladesh while playing for Abahani Club?\", getCategory(3), options35, options35.get(2)));\n\n List<Option> options36 = new ArrayList<Option>();\n options36.add(new Option(1, \"V. Raju\"));\n options36.add(new Option(2, \"Rajesh Chauhan\"));\n options36.add(new Option(3, \"Arshad Ayub\"));\n options36.add(new Option(4, \"Narendra Hirwani\"));\n QUESTION.add(new Question(36, \"In 1987-88, which Indian spinner took 16 wickets on his Test debut?\", getCategory(3), options36, options36.get(3)));\n\n List<Option> options37 = new ArrayList<Option>();\n options37.add(new Option(1, \"Ravi Shastri\"));\n options37.add(new Option(2, \"Dilip Vengsarkar\"));\n options37.add(new Option(3, \"Sachin Tendulkar\"));\n options37.add(new Option(4, \"Sanjay Manjrekar\"));\n QUESTION.add(new Question(37, \"Which former Indian Test cricketer equalled Gary Sobers world record of six sixes in an over in a Ranji Trophy match?\", getCategory(3), options37, options37.get(0)));\n\n List<Option> options38 = new ArrayList<Option>();\n options38.add(new Option(1, \"Mohsin khan\"));\n options38.add(new Option(2, \"Wasim Akram\"));\n options38.add(new Option(3, \"Naveen Nischol\"));\n options38.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(38, \"Reena Roy the Indian film actress married a cricketer?\", getCategory(3), options38, options38.get(0)));\n\n List<Option> options39 = new ArrayList<Option>();\n options39.add(new Option(1, \"London, England\"));\n options39.add(new Option(2, \"Mumbai, India\"));\n options39.add(new Option(3, \"Lahore, Pakistan\"));\n options39.add(new Option(4, \"Nairobi, Kenya\"));\n QUESTION.add(new Question(39, \"Where did Yuvraj Singh make his ODI debut?\", getCategory(3), options39, options39.get(3)));\n\n List<Option> options40 = new ArrayList<Option>();\n options40.add(new Option(1, \"Arvind De Silva\"));\n options40.add(new Option(2, \"Roshan Mahanama\"));\n options40.add(new Option(3, \"Harshan Tilakaratne\"));\n options40.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(40, \"Kapil Dev's 432 (world) record breaking victim was?\", getCategory(3), options40, options40.get(2)));\n\n List<Option> options41 = new ArrayList<Option>();\n options41.add(new Option(1, \"Vatican\"));\n options41.add(new Option(2, \"Iceland\"));\n options41.add(new Option(3, \"Netherlands\"));\n options41.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(41, \"Which country has the lowest population density of any country in Europe?\", getCategory(5), options41, options41.get(1)));\n\n List<Option> options42 = new ArrayList<Option>();\n options42.add(new Option(1, \"Cambodia\"));\n options42.add(new Option(2, \"Thailand\"));\n options42.add(new Option(3, \"Mynamar\"));\n options42.add(new Option(4, \"Bhutan\"));\n QUESTION.add(new Question(42, \"Angkor Wat, the largest religious monument in the world, is in which country?\", getCategory(5), options42, options42.get(0)));\n\n List<Option> options43 = new ArrayList<Option>();\n options43.add(new Option(1, \"Southern\"));\n options43.add(new Option(2, \"Northern and Southern\"));\n options43.add(new Option(3, \"Northern\"));\n options43.add(new Option(4, \"None of the above\"));\n QUESTION.add(new Question(43, \"Is the Tropic of Cancer in the northern or southern hemisphere?\", getCategory(5), options43, options43.get(2)));\n\n List<Option> options44 = new ArrayList<Option>();\n options44.add(new Option(1, \"Bangladesh\"));\n options44.add(new Option(2, \"Nepal\"));\n options44.add(new Option(3, \"Pakistan\"));\n options44.add(new Option(4, \"China\"));\n QUESTION.add(new Question(44, \"The Ganges flows through India and which other country?\", getCategory(5), options44, options44.get(0)));\n\n List<Option> options45 = new ArrayList<Option>();\n options45.add(new Option(1, \"Indian\"));\n options45.add(new Option(2, \"Pacific\"));\n options45.add(new Option(3, \"Arctic\"));\n options45.add(new Option(4, \"Atlantic\"));\n QUESTION.add(new Question(45, \"Which ocean lies on the east coast of the United States?\", getCategory(5), options45, options45.get(3)));\n\n List<Option> options46 = new ArrayList<Option>();\n options46.add(new Option(1, \"Prime Axis\"));\n options46.add(new Option(2, \"Lambert Line\"));\n options46.add(new Option(3, \"Prime Meridian\"));\n options46.add(new Option(4, \"Greenwich\"));\n QUESTION.add(new Question(46, \"What is the imaginary line called that connects the north and south pole?\", getCategory(5), options46, options46.get(2)));\n\n List<Option> options47 = new ArrayList<Option>();\n options47.add(new Option(1, \"Tropic of Cancer\"));\n options47.add(new Option(2, \"Tropic of Capricorn\"));\n QUESTION.add(new Question(47, \"The most northerly circle of latitude on the Earth at which the Sun may appear directly overhead at its culmination is called?\", getCategory(5), options47, options47.get(0)));\n\n List<Option> options48 = new ArrayList<Option>();\n options48.add(new Option(1, \"Nevada\"));\n options48.add(new Option(2, \"Arizona\"));\n options48.add(new Option(3, \"New Mexico\"));\n options48.add(new Option(4, \"San Fransisco\"));\n QUESTION.add(new Question(48, \"Which U.S. state is the Grand Canyon located in?\", getCategory(5), options48, options48.get(1)));\n\n List<Option> options49 = new ArrayList<Option>();\n options49.add(new Option(1, \"Indian Ocean\"));\n options49.add(new Option(2, \"Atlantic Ocean\"));\n options49.add(new Option(3, \"Pacific Ocean\"));\n options49.add(new Option(4, \"Arctic Ocean\"));\n QUESTION.add(new Question(49, \"Which is the largest body of water?\", getCategory(5), options49, options49.get(2)));\n\n List<Option> options50 = new ArrayList<Option>();\n options50.add(new Option(1, \"Maldives\"));\n options50.add(new Option(2, \"Monaco\"));\n options50.add(new Option(3, \"Tuvalu\"));\n options50.add(new Option(4, \"Vatican City\"));\n QUESTION.add(new Question(50, \"Which is the smallest country, measured by total land area?\", getCategory(5), options50, options50.get(3)));\n\n List<Option> options51 = new ArrayList<Option>();\n options51.add(new Option(1, \"1923\"));\n options51.add(new Option(2, \"1938\"));\n options51.add(new Option(3, \"1917\"));\n options51.add(new Option(4, \"1914\"));\n QUESTION.add(new Question(51, \"World War I began in which year?\", getCategory(6), options51, options51.get(3)));\n\n List<Option> options52 = new ArrayList<Option>();\n options52.add(new Option(1, \"France\"));\n options52.add(new Option(2, \"Germany\"));\n options52.add(new Option(3, \"Austria\"));\n options52.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(52, \"Adolf Hitler was born in which country?\", getCategory(6), options52, options52.get(2)));\n\n List<Option> options53 = new ArrayList<Option>();\n options53.add(new Option(1, \"1973\"));\n options53.add(new Option(2, \"Austin\"));\n options53.add(new Option(3, \"Dallas\"));\n options53.add(new Option(4, \"1958\"));\n QUESTION.add(new Question(53, \"John F. Kennedy was assassinated in?\", getCategory(6), options53, options53.get(2)));\n\n List<Option> options54 = new ArrayList<Option>();\n options54.add(new Option(1, \"Johannes Gutenburg\"));\n options54.add(new Option(2, \"Benjamin Franklin\"));\n options54.add(new Option(3, \"Sir Isaac Newton\"));\n options54.add(new Option(4, \"Martin Luther\"));\n QUESTION.add(new Question(54, \"The first successful printing press was developed by this man.\", getCategory(6), options54, options54.get(0)));\n\n List<Option> options55 = new ArrayList<Option>();\n options55.add(new Option(1, \"The White Death\"));\n options55.add(new Option(2, \"The Black Plague\"));\n options55.add(new Option(3, \"Smallpox\"));\n options55.add(new Option(4, \"The Bubonic Plague\"));\n QUESTION.add(new Question(55, \"The disease that ravaged and killed a third of Europe's population in the 14th century is known as\", getCategory(6), options55, options55.get(3)));\n\n List<Option> options56 = new ArrayList<Option>();\n options56.add(new Option(1, \"Panipat\"));\n options56.add(new Option(2, \"Troy\"));\n options56.add(new Option(3, \"Waterloo\"));\n options56.add(new Option(4, \"Monaco\"));\n QUESTION.add(new Question(56, \"Napoleon was finally defeated at the battle known as?\", getCategory(6), options56, options56.get(2)));\n\n List<Option> options57 = new ArrayList<Option>();\n options57.add(new Option(1, \"Magellan\"));\n options57.add(new Option(2, \"Cook\"));\n options57.add(new Option(3, \"Marco\"));\n options57.add(new Option(4, \"Sir Francis Drake\"));\n QUESTION.add(new Question(57, \"Who was the first Western explorer to reach China?\", getCategory(6), options57, options57.get(2)));\n\n List<Option> options58 = new ArrayList<Option>();\n options58.add(new Option(1, \"Shah Jahan\"));\n options58.add(new Option(2, \"Chandragupta Maurya\"));\n options58.add(new Option(3, \"Humayun\"));\n options58.add(new Option(4, \"Sher Shah Suri\"));\n QUESTION.add(new Question(58, \"Who built the Grand Trunk Road?\", getCategory(6), options58, options58.get(3)));\n\n List<Option> options59 = new ArrayList<Option>();\n options59.add(new Option(1, \"Jawaharlal Nehru\"));\n options59.add(new Option(2, \"M. K. Gandhi\"));\n options59.add(new Option(3, \"Dr. Rajendra Prasad\"));\n options59.add(new Option(4, \"Dr. S. Radhakrishnan\"));\n QUESTION.add(new Question(59, \"Who was the first President of India?\", getCategory(6), options59, options59.get(2)));\n\n List<Option> options60 = new ArrayList<Option>();\n options60.add(new Option(1, \"8\"));\n options60.add(new Option(2, \"10\"));\n options60.add(new Option(3, \"5\"));\n options60.add(new Option(4, \"18\"));\n QUESTION.add(new Question(60, \"How many days did the battle of Mahabharata last?\", getCategory(6), options60, options60.get(3)));\n }\n return QUESTION;\n }", "public int getChoice()\n {\n super.setVisible(true);\n return this.choice;\n }", "public Component getComponent() {\n\treturn component;\n}", "public JComponent getComponent() {\n return getGradleUI().getComponent();\n }", "private javax.swing.JLabel getLabOptional() {\r\n\tif (ivjLabOptional == null) {\r\n\t\ttry {\r\n\t\t\tivjLabOptional = new javax.swing.JLabel();\r\n\t\t\tivjLabOptional.setName(\"LabOptional\");\r\n\t\t\tivjLabOptional.setText(\"(Optional)\");\r\n\t\t\t// user code begin {1}\r\n\t\t\t// user code end\r\n\t\t} catch (java.lang.Throwable ivjExc) {\r\n\t\t\t// user code begin {2}\r\n\t\t\t// user code end\r\n\t\t\thandleException(ivjExc);\r\n\t\t}\r\n\t}\r\n\treturn ivjLabOptional;\r\n}", "public Integer getCultureQuestionId() {\n return cultureQuestionId;\n }", "private String showCharacterAccusations() {\n\t\tButtonGroup characterButtons = new ButtonGroup();\n\t\tList<JRadioButton> btns = setupCharacterButtons();\n\t \n\t\t// set up dialog box\n\t\tJPanel characterPanel = new JPanel(new GridLayout(0, 1));\n\t\tJLabel lbl = new JLabel(\"Select the character that you suspect.\");\n\t\tcharacterPanel.add(lbl);\n\t // add buttons to panel\n\t for(JRadioButton b : btns){\n\t \tcharacterButtons.add(b);\n\t \tcharacterPanel.add(b);\n\t }\n\t\t\n\t // show dialog box\n\t JOptionPane.showMessageDialog(frame, characterPanel);\n\t // decide which button was selected\n\t for(JRadioButton b : btns){\n\t \tif(b.isSelected()){\n\t \t\treturn b.getText();\n\t \t}\n\t }\n\t return null;\n\t}", "public String getInfo(){\n return \"Name: \" + name + \"\\n\"\n + \"Min Range: \" + minRange + \"\\n\"\n + \"Max Range: \" + maxRange + \"\\n\"\n + \"Attack: \" + attack + \"\\n\"\n + \"Cost: \" + buildCost;\n }", "String getComponentName();", "String getComponentName();", "public JComponent getComponentAtIndex(int i) {\n\t\tFancyTab tab= tabsPanel.getTabAt(i);\n\t\treturn tabMap.get(tab);\n\t}", "public JComponent getComponent();", "protected UniqueInfo cpui() { return hpcpui(columnCampCode()); }", "public JPanel getRepresentacionGrafica();", "public String toString () {\n\t\tString a = \"ChampionnatComplexe :\\n\";\n\t\ta = a + \"Poule A Groupe 1 :\\t\" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpA1 [i] +\" \\t\" ;\n\t\t}\n\t\ta = a + \"\\nPoule A Groupe 2 :\\t\" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpA2 [i] +\" \\t\" ;\n\t\t}\n\t\ta = a + \"\\nPoule B Groupe 1 :\\t\" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpB1 [i] +\" \\t\" ;\n\t\t}\n\t\ta = a + \"\\nPoule B Groupe 2 :\\t\" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpB2 [i] +\" \\t\" ;\n\t\t}\n\t\ta = a + \"\\nEquilibre des poules:\\t\" + getEquilibreDesPoules()+\" (note = \"+ noteEquilibre +\")\\n\" ;\n\t\ta = a + \"Distance totale parcourue:\\t\" +getDistanceTotale()+\" (note = \"+ noteDistance +\")\\nDistance moyenne par equipe parcourue : \"+getDistanceMoyenne()+\"\\n\";\n\t\tif (opt.getEvaluation() == 2) {\n\t\t\ta = a + \"Moyenne pondérée de l'equilibre et de la distance ramenées sur 100 : \"+getNoteMoyennePondereeEqDist()+\" (avec un coefiscient de \"+opt.getPourcentageDistance()+\" pour la distance et de \"+(100-opt.getPourcentageDistance())+\" pour l'equilibre) \\n\";\n\t\t}\n\t\treturn a;\n\t}", "public JPanel getInfoPane(int w, int h) {\n \n \t\tJPanel infoPanel = new JPanel();\n \t\tinfoPanel.setPreferredSize(new Dimension(w, h));\n \n \t\tGroupLayout layout = new GroupLayout(infoPanel);\n \t\tinfoPanel.setLayout(layout);\n \t\tlayout.setAutoCreateGaps(true);\n \t\tlayout.setAutoCreateContainerGaps(true);\n \n \t\tJTextArea description = new JTextArea(10, 10);\n \t\tif (c == CCode.RED)\n \t\t\tdescription.setBackground(Color.PINK);\n \t\telse if (c == CCode.BLUE)\n \t\t\tdescription.setBackground(Color.CYAN);\n \t\telse if (c == CCode.YELLOW)\n \t\t\tdescription.setBackground(Color.YELLOW);\n \t\telse if (c == CCode.GREEN)\n \t\t\tdescription.setBackground(Color.GREEN);\n \t\t// description.setFont(font);\n \t\tdescription.setLineWrap(true);\n \t\tdescription.setWrapStyleWord(true);\n \t\tdescription.setEditable(false);\n \n \t\tString cardText = \"\";\n \t\tif (t == Type.CHARACTER) {\n \t\t\tif (!getTrait1_j().equals(\"\"))\n \t\t\t\tcardText += getTrait1();\n \t\t\tif (!getTrait2_j().equals(\"\"))\n \t\t\t\tcardText += (!cardText.equals(\"\") ? \" | \" : \"\") + getTrait2();\n \t\t\tcardText += \"\\n\\n\";\n \t\t}\n \t\tcardText += getEffects() + \"\\n\";\n \n \t\tif (!getFlavorText().equals(\"\")) {\n \t\t\tcardText += \"Flavor Text: \\n\" + getFlavorText();\n \t\t}\n \n \t\tdescription.setText(cardText);\n \n \t\tdescription.setCaretPosition(0);\n \t\tJScrollPane descContainer = new JScrollPane(description);\n \n \t\tJLabel nameLabel = new JLabel();\n \t\t// nameLabel.setFont(font);\n \t\tnameLabel.setText(cardName);\n \n \t\tJLabel idLabel = new JLabel(id.replace(\"_alt\", \"\"));\n \t\t// idLabel.setFont(font);\n \t\tJLabel typeLabel = new JLabel(t.toString());\n \t\t// typeLabel.setFont(font);\n \t\tJLabel levelLabel = new JLabel(\"Level: \" + (level >= 0 ? level : \" -\"));\n \t\t// levelLabel.setFont(font);\n \t\tJLabel costLabel = new JLabel(\"Cost: \" + (cost >= 0 ? cost : \" -\"));\n \t\t// costLabel.setFont(font);\n \t\tJLabel soulLabel = new JLabel(\"Trigger: \" + trigger.toString());\n \t\t// soulLabel.setFont(font);\n \t\tJLabel powerLabel = new JLabel(\"Power: \" + (power > 0 ? power : \" -\"));\n \t\t// powerLabel.setFont(font);\n \t\tJLabel damageLabel = new JLabel(\"Soul: \" + (soul > 0 ? soul : \" -\"));\n \t\t// damageLabel.setFont(font);\n \t\tlayout.setAutoCreateGaps(true);\n \t\tlayout.setAutoCreateContainerGaps(true);\n \n \t\tlayout.setHorizontalGroup(layout\n \t\t\t\t.createParallelGroup()\n \t\t\t\t.addComponent(nameLabel, GroupLayout.PREFERRED_SIZE, 350, GroupLayout.PREFERRED_SIZE)\n \t\t\t\t.addGroup(\n \t\t\t\t\t\tlayout.createSequentialGroup()\n \t\t\t\t\t\t\t\t.addGroup(\n \t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup().addGroup(layout.createSequentialGroup().addComponent(idLabel, GroupLayout.PREFERRED_SIZE, 125, GroupLayout.PREFERRED_SIZE))\n \t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addComponent(levelLabel, GroupLayout.PREFERRED_SIZE, 60, GroupLayout.PREFERRED_SIZE).addComponent(costLabel)))\n \t\t\t\t\t\t\t\t.addGroup(\n \t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup().addGroup(layout.createSequentialGroup().addComponent(typeLabel))\n \t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addComponent(powerLabel, GroupLayout.PREFERRED_SIZE, 90, GroupLayout.PREFERRED_SIZE)))\n \t\t\t\t\t\t\t\t.addGroup(\n \t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup().addGroup(layout.createSequentialGroup().addComponent(soulLabel, GroupLayout.PREFERRED_SIZE, 130, GroupLayout.PREFERRED_SIZE))\n \t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addComponent(damageLabel))))\n \t\t\t\t.addComponent(descContainer, GroupLayout.PREFERRED_SIZE, 350, GroupLayout.PREFERRED_SIZE));\n \n \t\tlayout.setVerticalGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup().addComponent(nameLabel))\n \t\t\t\t.addGroup(layout.createParallelGroup().addComponent(idLabel).addComponent(typeLabel).addComponent(soulLabel))\n \t\t\t\t.addGroup(layout.createParallelGroup().addComponent(levelLabel).addComponent(costLabel).addComponent(powerLabel).addComponent(damageLabel))\n \t\t\t\t.addGroup(layout.createParallelGroup().addComponent(descContainer)));\n \n \t\t// System.out.println(\"getInfoPane\");\n \n \t\treturn infoPanel;\n \n \t}", "private void getViewComponents() {\n _gameView = (GameView) findViewById(R.id.game_cv_gameview);\n _levelView = (TextView) findViewById(R.id.game_tv_curlevel);\n _scoreView = (TextView) findViewById(R.id.game_tv_curscore);\n _startBtn = (Button) findViewById(R.id.game_btn_start);\n _gestureOverlay = (GestureOverlayView) findViewById(R.id.game_gov_gestures);\n\n }", "private javax.swing.JPanel getJContentPane() {\r\n\t\tif(jContentPane == null) {\r\n\t\t\tinstructionLabel = new JLabel();\r\n\t\t\tjContentPane = new javax.swing.JPanel();\r\n\t\t\tjContentPane.setLayout(new java.awt.BorderLayout());\r\n\t\t\tinstructionLabel.setText(\"Select the new minimal and maximal values:\");\r\n\t\t\tinstructionLabel.setPreferredSize(new java.awt.Dimension(216,55));\r\n\t\t\tinstructionLabel.setVerticalAlignment(javax.swing.SwingConstants.CENTER);\r\n\t\t\tinstructionLabel.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n\t\t\tinstructionLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n\t\t\tjContentPane.add(instructionLabel, java.awt.BorderLayout.NORTH);\r\n\t\t\tjContentPane.add(getJPanel(), java.awt.BorderLayout.CENTER);\r\n\t\t\tjContentPane.add(getValidationPanel(), java.awt.BorderLayout.SOUTH);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "public PanelPhysicalExam() {\n initComponents();\n setLanguage(null);\n }", "Component getComponent() {\n/* 224 */ return this.component;\n/* */ }", "public String getX2CompStr() {\n this.polySolve();\n return this.x2comp;\n }", "private JComboBox getCardColor() {\n\t\tif (cardColor == null) {\n\t\t\tcardColor = new JComboBox();\n\t\t\tcardColor.setModel(new TypeModel(TypeModel.valueMast_cards));\n\t\t\tcardColor.setSelectedIndex(0);\n\t\t}\n\t\treturn cardColor;\n\t}", "public JComponent getComponent() {\n return itsComp;\n }", "private JPanel getMainjPanel() {\r\n\t\tif (mainjPanel == null) {\r\n\t\t\tqdsj2jLabel = new JLabel();\r\n\r\n\t\t\tqdsj2jLabel.setBounds(new Rectangle(126, 335, 133, 18));\r\n\t\t\tqdsj2jLabel.setForeground(color);\r\n\t\t\tqdsj2jLabel.setFont(font);\r\n\t\t\tqdsj1jLabel = new JLabel();\r\n\t\t\tqdsj1jLabel.setText(\"开始时间:\");\r\n\t\t\tqdsj1jLabel.setBounds(new Rectangle(61, 335, 61, 18));\r\n\t\t\tqdsj1jLabel.setFont(font);\r\n\t\t\tqdsj1jLabel.setForeground(color);\r\n\r\n\t\t\tdchjLabel = new JLabel();\r\n\t\t\tdchjLabel.setForeground(color);\r\n\t\t\tdchjLabel.setBounds(new Rectangle(50, 54, 44, 18));\r\n\t\t\tdchjLabel.setText(\"道岔号:\");\r\n\t\t\tdchjLabel.setFont(font);\r\n\t\t\tdfwjLabel = new JLabel();\r\n\t\t\tdfwjLabel.setForeground(color);\r\n\t\t\tdfwjLabel.setBounds(new Rectangle(200, 54, 44, 18));\r\n\t\t\tdfwjLabel.setText(\"定反位:\");\r\n\t\t\tdfwjLabel.setFont(font);\r\n\r\n\t\t\ttitlejLabel = new JLabel();\r\n\t\t\ttitlejLabel.setForeground(color);\r\n\t\t\ttitlejLabel.setBounds(new Rectangle(326, 22, 300, 18));\r\n\t\t\ttitlejLabel.setText(\"道岔动作过程压力变化趋势图\");\r\n\t\t\ttitlejLabel.setFont(titleFont);\r\n\t\t\tmainjPanel = new JPanel();\r\n\t\t\tmainjPanel.setLayout(null);\r\n\t\t\tmainjPanel.setBounds(new Rectangle(45, 62, 901, 510));\r\n\t\t\tmainjPanel.add(titlejLabel, null);\r\n\t\t\tmainjPanel.add(dchjLabel, null);\r\n\t\t\tmainjPanel.add(getDchjComboBox(), null);\r\n\t\t\tmainjPanel.add(dfwjLabel, null);\r\n\t\t\tmainjPanel.add(getTpjPanel(), null);\r\n\t\t\tmainjPanel.add(getDfwjComboBox(), null);\r\n\t\t\tmainjPanel.setOpaque(false);\r\n\t\t}\r\n\t\treturn mainjPanel;\r\n\t}", "@Override\n public void display()\n {\n // Display the question text\n super.display();\n int choiceNumber = 0;\n // Display the answer choices\n for (int i = 0; i < m_choices.size(); i++) {\n choiceNumber = i + 1;\n System.out.println(choiceNumber + \": \" + m_choices.get(i));\n }\n }", "public Alternatives getAlternatives_9() { return cAlternatives_9; }" ]
[ "0.55081546", "0.53918797", "0.5366908", "0.5365311", "0.5299595", "0.5296679", "0.5265447", "0.5255714", "0.5246505", "0.52329654", "0.5229736", "0.52243185", "0.52063763", "0.5192663", "0.51495266", "0.51468956", "0.51260006", "0.50896114", "0.5067298", "0.5066885", "0.50643307", "0.5064219", "0.5046805", "0.50380385", "0.5037954", "0.5025934", "0.5016916", "0.5014578", "0.49921787", "0.49790093", "0.49787626", "0.49782982", "0.49736398", "0.49681932", "0.4967885", "0.49567604", "0.49544132", "0.49503633", "0.49482855", "0.49393755", "0.49392256", "0.49327135", "0.4924898", "0.49154472", "0.49127293", "0.49098146", "0.48925397", "0.48898995", "0.48808944", "0.4872342", "0.48694658", "0.4851542", "0.48496705", "0.48447633", "0.48439097", "0.48412508", "0.48366064", "0.48343337", "0.48192367", "0.48176807", "0.4812596", "0.4809931", "0.48048455", "0.47934318", "0.47863898", "0.47844216", "0.47835258", "0.47804174", "0.47758973", "0.47740868", "0.47683555", "0.4765253", "0.47602424", "0.4759581", "0.47581664", "0.4753581", "0.4752709", "0.47514743", "0.47501215", "0.47449994", "0.4739135", "0.473907", "0.47351345", "0.47351345", "0.47342002", "0.47316462", "0.4726998", "0.47222656", "0.47200793", "0.47163355", "0.4704357", "0.47039557", "0.4703919", "0.47029096", "0.47028852", "0.47013882", "0.4698538", "0.46961343", "0.46946403", "0.46943203" ]
0.55817914
0
Returns the component displaying the current level number.
public JLabel getLevelCounter() { return levelCounter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AbsBuilderLevelPanel getCurrentLevelPanel()\n\t{\n\t\tAbsBuilderLevelPanel card = null;\n\n\t\t//find the component that is set to visible (will be a JPanel\n\t\tfor (Component comp : pnlLevelSwitch.getComponents() ) {\n\t\t\tif (comp.isVisible() == true) {\n\t\t\t\tcard = (AbsBuilderLevelPanel)comp;\n\t\t\t}\n\t\t}\n\n\t\treturn card;\n\t}", "public int getCurLevel();", "public String getCurrentLevel() \n { \n return currentLevel; \n }", "public String getComponent() {\n return this.component;\n }", "public JPanel getPnlLevelSwitch() {\n\t\treturn pnlLevelSwitch;\n\t}", "public int getCurrentLevel() {\n return currentLevel;\n }", "String levelName();", "public String getComponent() {\r\n\t\treturn component;\r\n\t}", "int getLevel();", "int getLevel();", "int getLevel();", "int getLevel();", "int getLevel();", "public int getLevelNo() {\n return levelNo;\n }", "@Override\r\n\tpublic Level getcCurrentLevel() {\n\t\treturn null;\r\n\t}", "public String getName() {\n return level;\n }", "public Level getCurrentLevel(){\r\n return currentLevel;\r\n }", "private int getLevel() {\n return getStat(currentLevel);\n }", "@Override\r\n public String levelName() {\r\n return \"Green 3\";\r\n }", "public final String getLevel() {\n return this.level;\n }", "public int getCurrentLevelId()\n {\n return currentLevelId;\n }", "public int \t\t\t\t\t\t\tgetLevel()\t\t\t\t\t\t\t\t\t{ return this.currentLevel; }", "@Override\n\tpublic int getLevelNumber() {\n\t\treturn numLevel;\n\t}", "public Component display() {\n\t\treturn new JLabel(\"3 ;)\");\n\t}", "public int getCurrentLevelId() {\r\n\t\treturn currentLevelId;\r\n\t}", "public int getLevel(){\n\t\treturn this.level;\n\t}", "public int getLevel()\r\n {\r\n return level;\r\n }", "public String getCompetition_level() {\n return this.competition_level;\n }", "String getLevelName();", "String getLevelName();", "String getLevelName();", "public static int getLevel()\n {\n return level;\n }", "public String getLevel() {\n return this.level;\n }", "public int getLevel() {\n return this.level;\n }", "public static int getLevel()\r\n\t{\r\n\t\treturn level;\r\n\t}", "public int getLevel() {\n \treturn this.level;\n }", "public int getLevel() {\r\n return level;\r\n }", "public String getLevel(){\n\t\treturn level;\n\t}", "public String getLevel()\n {\n return level;\n }", "public int getLevel()\n {\n return m_level;\n }", "public int getLevel()\n {\n return level;\n }", "public String levelName() {\r\n return new String(\"Final Four\");\r\n }", "int getLevel()\n\t{\n\t\treturn this.level;\n\t}", "public static int getLevel() {\n return level;\n }", "String getComponentName();", "String getComponentName();", "protected String getLevelString()\n {\n\tStringBuffer buf = new StringBuffer();\n\tfor (int i = 0; i < nestLevel; i++)\n\t buf.append(\">\");\n\treturn buf.toString();\n\t}", "public int getLevel() {\n\t\treturn this.level;\n\t}", "public int getLevel() {\n \t\treturn level;\n \t}", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel()\n {\n return m_nLevel;\n }", "public int getLevel(){\n return this.level;\n }", "public int getLevel(){\n return this.level;\n }", "@AutoEscape\n\tpublic String getLevel();", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel()\n\t{\n\t\treturn this.value;\n\t}", "double getLevel();", "double getLevel();", "public int getLevel() {\n\t\treturn level;\r\n\t}", "public int getLevel()\r\n {\r\n return r_level;\r\n }", "public int getLevel() { \r\n\t\treturn level; \r\n\t}", "public int getLevel(){\n\t\treturn level;\n\t}", "public int getLevel()\n {\n return level; \n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public int level();", "public int getComponentID() {\n return COMPONENT_ID;\n }", "public int getLevel(){\n return level;\n }", "public int getLevel(){\n return level;\n }", "public int getLevel() {\r\n\t\treturn level;\r\n\t}", "public int getLevel() {\r\n\t\treturn level;\r\n\t}", "protected int getLevel(){\r\n return this.level;\r\n }", "public String getLevel() {\n return level;\n }", "public int getLevelValue() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public synchronized int getLevel(int actId) {\n/* 69 */ return this.component.getLevel(actId);\n/* */ }", "public String getLevel ()\n {\n return level;\n }", "public String getLevel()\n {\n return gameLevel;\n }", "public int getLevel() {\n\t\treturn level;\n\t}", "public int getLevel() {\n\t\treturn level;\n\t}", "public int getLevel() {\n\t\treturn level;\n\t}" ]
[ "0.6941257", "0.6572965", "0.64920396", "0.6277944", "0.6237288", "0.62348896", "0.6163766", "0.61376834", "0.60995114", "0.60995114", "0.60995114", "0.60995114", "0.60995114", "0.607065", "0.60528445", "0.6019241", "0.60078764", "0.5977007", "0.5953879", "0.59490407", "0.5948165", "0.5921273", "0.592045", "0.5891554", "0.5878072", "0.58742434", "0.58632416", "0.5861717", "0.5856002", "0.5856002", "0.5856002", "0.5853907", "0.5852128", "0.58506143", "0.58501714", "0.58404243", "0.58392555", "0.5815677", "0.5813692", "0.58075637", "0.57974833", "0.5796797", "0.57832146", "0.57808405", "0.5779077", "0.5779077", "0.57776165", "0.5772127", "0.5769115", "0.5767249", "0.5767249", "0.5767249", "0.5767249", "0.5767249", "0.5767249", "0.5767249", "0.5767249", "0.5767249", "0.5767249", "0.5765552", "0.57588315", "0.57588315", "0.57577676", "0.5756051", "0.5756051", "0.57548666", "0.57548666", "0.5753142", "0.5753027", "0.5753027", "0.5751789", "0.5749473", "0.57491386", "0.57460785", "0.57427543", "0.5741551", "0.5735058", "0.5735058", "0.5735058", "0.5735058", "0.5735058", "0.57337326", "0.57280344", "0.5722246", "0.5722246", "0.5720241", "0.5720241", "0.5713276", "0.5709143", "0.57054895", "0.5697175", "0.5697175", "0.5697175", "0.5697175", "0.5678366", "0.56706583", "0.56515646", "0.5646417", "0.5646417", "0.5646417" ]
0.6816078
1
Disables the button specified by button Also displays the feedback label. If statements determine which button to disable.
public void removeWrongAnswer (char button) { if (button=='A') a.setEnabled(false); else if (button=='B') b.setEnabled(false); else if (button=='C') c.setEnabled(false); else d.setEnabled(false); feedbackLabel.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void disableButtons()\r\n {\r\n }", "public void removeWrongDestination (int button)\n {\n if (button==0)\n a.setEnabled(false);\n else if (button==1)\n b.setEnabled(false);\n else\n c.setEnabled(false);\n feedbackLabel.setVisible(true);\n }", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "private void disableButton(Button b) {\n b.setPressed(false);\n b.setEnabled(false);\n }", "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "protected void disableButton(Button button){\n button.setClickable(false);\n button.setVisibility(View.INVISIBLE);\n }", "public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }", "private void disableP1Buttons(){\n game_BTN_p1_lightAttack.setEnabled(false);\n game_BTN_p1_strongAttack.setEnabled(false);\n game_BTN_p1_brutalAttack.setEnabled(false);\n }", "public void disableButtons() {\n p1WinPoint.setEnabled(false);\n p2WinPoint.setEnabled(false);\n }", "private void disableButtons() {\n for (DeployCommand cmd : DeployCommand.values()){\n setButtonEnabled(cmd, false);\n }\n butDone.setEnabled(false);\n setLoadEnabled(false);\n setUnloadEnabled(false);\n setAssaultDropEnabled(false);\n }", "private void disableP2Buttons(){\n game_BTN_p2_lightAttack.setEnabled(false);\n game_BTN_p2_strongAttack.setEnabled(false);\n game_BTN_p2_brutalAttack.setEnabled(false);\n }", "public void disableButtons() {\n\n for (Button b: buttons) {\n b.setClickable(false);\n }\n\n }", "public void disable()\n\t{\n\t\tplayButton.setEnabled(false);\n\t\tpassButton.setEnabled(false);\n\t\tbigTwoPanel.setEnabled(false);\n\t}", "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "public void disableEndOfProductionButton(){\n this.endOfproductionButton.setEnabled(false);\n }", "String disabledButton();", "@Override\n public void disableProductionButtons() {\n gameboardPanel.disableProductionButtons();\n leaderCardsPanel.disableProductionButtons();\n }", "public void disableChoice() {\n\t\t// Disable the buttons, dimming them\n\t\trock.setEnabled(false);\n\t\tpaper.setEnabled(false);\n\t\tscissors.setEnabled(false);\n\t}", "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tACTION_B_DISABLE(arg0);\r\n\t\t\t}", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "public void updateDisabledButtons() {\n\t\t//at least 3 credits should be there for perform add max action\n\t\tif (obj.getCredit() < 3)\n\t\t\taddMax.setEnabled(false);\n\t\t//at least a credit should be there for perform add max action\n\t\tif (obj.getCredit() == 0)\n\t\t\taddOne.setEnabled(false);\n\t\tif (obj.getCredit() >= 3)\n\t\t\taddMax.setEnabled(true);\n\t\tif (obj.getCredit() > 0)\n\t\t\taddOne.setEnabled(true);\n\t}", "public void disableProductionButtons(){\n for(int i = 0; i < 3; i++){\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i],i));\n productionButtons[i].setEnabled(false);\n }\n\n baseProductionPanel.disableButton();\n }", "private void hideButton(){\n // Si onget Client\n if(numOnglet() == 0 ){\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }\n }\n }", "public void showButtonInactive( JButton button ) {\r\n /*------------------------------------------------------------------------*/\r\n button.setIcon(\r\n new javax.swing.ImageIcon(\r\n getClass().getResource(LED_OFF)));\r\n }", "public void disable()\n {\n // Disable all the buttons one by one\n for (int col = 0; col < COLUMNS; col++ )\n {\n drop[col].setEnabled(false);\n }\n }", "public void hideStatsButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STATS_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "private void disableButtons(boolean b) {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j].setDisable(b);\n bt[i][j].setStyle(\"-fx-border-color:transparent\");\n }\n }\n }", "private void disableModeButtons(Button driveModeButton, Button blindZoneModeButton, Button parkingModeButton, boolean disable) {\r\n\t\tif (! parkingMode) {\r\n\t\t\tdriveModeButton.setDisable(disable);\r\n\t\t\tblindZoneModeButton.setDisable(disable);\t\t\t\r\n\t\t}\r\n\t\tif (! drivingMode || ! blindZoneMode) {\r\n\t\t\tparkingModeButton.setDisable(disable);\t\t\t\r\n\t\t}\r\n\t\tif (disable) {\r\n\t\t\tdrivingMode = false;\r\n\t\t\tblindZoneMode = false;\r\n\t\t\tparkingMode = false;\r\n\t\t\tmode1Enabled.setVisible(false);\r\n\t\t\tmode2Enabled.setVisible(false);\t\t\t\r\n\t\t}\r\n\t}", "public void hideUnpauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_UNPAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "protected void ACTION_B_DISABLE(ActionEvent arg0) {\n\r\n\t\tL_FilterStatusBox.setText(\"Disabled (All Ports)\");\r\n\t}", "public void disableEndTurnButton(){\n\n this.endTurnButton.setEnabled(false);\n }", "public void botoiaDesaktibatu2() {\r\n\t\tbtnAurrera.setEnabled(true);\r\n\t}", "public void hideUpgradeButton()\r\n {\r\n \tmGUIManager.newCost(\"Upgrade Tower\");\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_UPGRADE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "@Override\n public void disableEndOfProductionButton() {\n gameboardPanel.disableEndOfProductionButton();\n }", "public void hideCreditsButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_CREDITS_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "private void disableTable() {\n for (Button button : seatsArray) {\n button.setDisable(true);\n }\n confirmChange.setDisable(true);\n deleteBooking.setDisable(true);\n noBookingsLabel.setText(\"You have no bookings\");\n noBookingsLabel.setVisible(true);\n }", "void killButton() {\n //goes through all columns\n for (int i = 0; i < 7; i++) {\n //if the not of valid move is true, disable the buttons\n if (!Checker.validMove(currentBoard, i)) {\n Inputbuttons[i].setEnabled(false);\n }\n }\n }", "private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }", "private JButton getJButtonDiscnnt() {\r\n\t\tif (jButtonDiscnnt == null) {\r\n\t\t\tjButtonDiscnnt = new JButton();\r\n\t\t\tjButtonDiscnnt.setBounds(new Rectangle(269, 82, 60, 23));\r\n\t\t\tjButtonDiscnnt.setMargin(new Insets(2, 5, 2, 5));\r\n\t\t\tjButtonDiscnnt.setEnabled(false);\r\n\t\t\tjButtonDiscnnt.setText(\"断开\");\r\n\t\t}\r\n\t\treturn jButtonDiscnnt;\r\n\t}", "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "public void disableOkButton() {\n okButton.setEnabled(false);\n }", "private void disableLabel() {\n Label[] labelArray = {id00, id01, id02, id10, id11, id12, id20, id21, id22};\n for(Label lbl : labelArray) {\n lbl.setOnMouseClicked(null);\n }\n }", "@Override\r\n\tprotected void onBoEdit() throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoEdit();\r\n\t}", "public void disablePanelInput() {\n\t\tif (!clickThem) {\r\n\t\t\ttxt_mssv.setText(\"\");\r\n\t\t\ttxt_mssv.setEnabled(false);\r\n\t\t\ttxt_hoten.setEnabled(false);\r\n\t\t\ttxt_hoten.setText(\"\");\r\n\t\t\tcomboSex.setEnabled(false);\r\n\t\t\ttxt_ntns.setText(\"\");\r\n\t\t\ttxt_ntns.setEnabled(false);\r\n\t\t\tbtn_nhap.setEnabled(false);\r\n\t\t} else {\r\n\t\t\ttxt_mssv.setEnabled(true);\r\n\t\t\ttxt_hoten.setEnabled(true);\r\n\t\t\tcomboSex.setEnabled(true);\r\n\t\t\ttxt_ntns.setEnabled(true);\r\n\t\t\tbtn_nhap.setEnabled(true);\r\n\t\t}\r\n\t}", "public void btnAbort(View v){\n RadioGroup Radioone = (RadioGroup) findViewById(R.id.WireOne);\n RadioButton WireOneColor = ((RadioButton) findViewById(Radioone.getCheckedRadioButtonId()));\n String frk = \"\";\n frk = getGlobals(\"FRKLit\", frk);\n String bat = \"\";\n int battery = 0;\n battery = Integer.parseInt(getGlobals(\"Batteries\", bat));\n\n\n\n if (WireOneColor.getText().equals(\"Blue\")) {\n abort = \"A\";\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.VISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.VISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.VISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.VISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Hold!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n //This is done.\n } else{\n if (battery > 2 && frk.equals(\"Yes\")){\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.INVISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.INVISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.INVISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.INVISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Release!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n } else {\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.VISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.VISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.VISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.VISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Hold!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n }\n }\n\n }", "public void userClickedOnTable()\r\n {\r\n this.detailedStudentViewButton.setDisable(false);\r\n }", "public void disableAllButtons() {\n\t\tfor (int i = 0; i < DIM; i++)\n\t\t\tfor (int j = 0; j < DIM; j++)\n\t\t\t\tbuttons[i][j].setEnabled(false);\n\t}", "private void disableBtn(){\n int [] ids = new int[]{\n R.id.box1, R.id.box2, R.id.box3, R.id.box4, R.id.box5, R.id.box6,\n R.id.box7, R.id.box8, R.id.box9\n };\n\n for (int i = 0; i < ids.length; i++)\n {\n ImageButton btnToDisable = (ImageButton)findViewById(ids[i]);\n btnToDisable.setEnabled(false);\n }\n\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n setVisible(false);\n \n }", "public void hideDeleteButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_DELETE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public void dama_DamaCloseButtonListener() {\n this.buttonDisabled = false;\n }", "public void hidePauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_PAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "private void setBoardDisabled(boolean disabled) {\r\n\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t//If we're enabling the buttons and the button has no text on it (Only enable the unclicked buttons)\r\n\t\t\t//OR if we're disabling the buttons\r\n\t\t\tif(!disabled && buttons[i].getText().equals(\"\") || disabled) {\r\n\t\t\t\tbuttons[i].setDisable(disabled);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void updateButton(boolean done) {\n\t\tdiceBtn.setDisable(done);\n\t\tendTurn.setDisable(!done);\n\t}", "public void showUnpauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.SHOW_UNPAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "private void setButtonsDisabled(boolean save, boolean edit, boolean diagram) {\n saveButton.setDisable(save);\n editButton.setDisable(edit);\n diagramButton.setDisable(diagram);\n }", "public void resetButtons() {\n\t\tboolean bool = selectedLesson.isEnable();\n\t\tview.getTestButton().setEnabled(bool);\n\t\tview.getLearnButton().setEnabled(bool);\n\t}", "public void disableStartButton(boolean b){\n start.setDisable(b);\n }", "private void enableButton(Button b) {\n b.setEnabled(true);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_HIDE_LABEL);\n jbNewOrderButton.setVisible(true);\n jbConfirm.setVisible(false);\n jbCancel.setVisible(false);\n }", "protected boolean hasNegativeButton() {\n return false;\n }", "public String btn_cancel_delete_action()\n {\n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n return null;\n }", "public void createNoBanButton() {\n\t\tnoban = new JButton(\"Click here if the current team missed a ban\");\n\t\tnoban.setName(\"noban\");\n\t\tnoban.setBackground(Color.GRAY);\n\t\tnoban.setForeground(Color.WHITE);\n\t\tnoban.setBorderPainted(false);\n\t\tnoban.addActionListener(this);\n\t\tnoban.setBounds(400, 50, 400, 100);\n\t\tbottomPanel.add(noban, new Integer(1));\n\t}", "public void disable() {\n \t\t\tsetEnabled(false);\n \t\t}", "public void reenableButton(EventStruct event) {\n AppSync.puts(\"\"+event);\n if (event.type == \"scored\") {\n switch (event.subtype) {\n case \"balance\":\n robotBalanced.setEnabled(true);\n robotFailedToBalance.setEnabled(true);\n break;\n case \"glyph\":\n if (event.location == \"cipher\") {glyphCompletedCipher.setEnabled(true);}\n break;\n default: {break;}\n }\n\n\n } else if (event.type == \"missed\") {\n switch (event.subtype) {\n case \"balance\":\n robotBalanced.setEnabled(true);\n robotFailedToBalance.setEnabled(true);\n default: {break;}\n }\n }\n }", "private void hideSubmitBtn(){\n\t\tmainWindow.getContainer().remove(submitBtn);\n\t}", "@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }", "void disableAddContactButton();", "public void enableQuitButton(){\n\t\tbtnStop.setVisible(true);\n\t}", "@Override\r\n\tpublic void actionPerformed(GuiButton button) {\r\n switch (button.id) {\r\n case 0:\r\n GuiYesNo confirmGui = new GuiYesNo(this, \"Delete Waypoints\", \"Are you sure you want to delete the selected waypoints?\", \"Yes\", \"No\", 0);\r\n confirmGui.setButtonDelay(5);\r\n this.mc.displayGuiScreen(confirmGui);\r\n break;\r\n }\r\n\t}", "private void setDishBtnUsability(boolean enable){\n dishBtn1.setEnabled(enable);\n dishBtn2.setEnabled(enable);\n dishBtn3.setEnabled(enable);\n dishBtn4.setEnabled(enable);\n dishBtn5.setEnabled(enable);\n }", "private void habilitar() {\n\n if (i <= 0) {\n jButton4.setEnabled(false);\n } else {\n jButton4.setEnabled(true);\n }\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\tthis.view.getPaintPanel().setMode(e.getActionCommand());\r\n\n\t\tJButton buttonPressed = (JButton) e.getSource();\r\n\r\n\t\t// lets user know which mode they're in by disabling button\r\n\t\tif (buttonPressed.isSelected() != true) {\r\n\t\t\tbuttonPressed.setEnabled(false);\r\n\t\t}\r\n\t\tfor (JButton tempButton : buttons) {\r\n\t\t\tif (buttonPressed != tempButton) {\r\n\t\t\t\ttempButton.setEnabled(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(e.getActionCommand());\r\n\t}", "private void toggleButtonsEnabled() {\r\n final Button headsBtn = findViewById(R.id.b_heads);\r\n final Button tailsBtn = findViewById(R.id.b_tails);\r\n final Button startBtn = findViewById(R.id.b_startGame);\r\n\r\n headsBtn.setEnabled(false);\r\n tailsBtn.setEnabled(false);\r\n startBtn.setEnabled(true);\r\n }", "public void actionPerformed(ActionEvent event)\n {\n bulb.setOn(false);\n onButton.setEnabled(true);\n offButton.setEnabled(false);\n bulb.repaint();\n }", "@Override\n\tpublic boolean onClick(Player player, int buttonID) {\n\t\treturn false;\n\t}", "private void checkButtonUnlock() {\r\n\t\tif (this.isAdressValid && this.isPortValid) {\r\n\t\t\tview.theButton.setDisable(false);\r\n\t\t}\r\n\r\n\t}", "public void actionPerformed(ActionEvent ae) {\r\n II.setVisible(false);\r\n II.setEnabled(false);\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddBtn.setEnabled(true);\n\t\t\t}", "public void editButtonClicked() {\n setButtonsDisabled(false, true, true);\n setAllFieldsAndSliderDisabled(false);\n }", "public void showButtonNeutral( JButton button ) {\r\n /*------------------------------------------------------------------------*/\r\n button.setIcon(\r\n new javax.swing.ImageIcon(\r\n getClass().getResource(LED_WHITE)));\r\n }", "public void hideStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public void disable() {\r\n cardOne.setEnabled(false);\r\n cardTwo.setEnabled(false);\r\n cardThree.setEnabled(false);\r\n cardFour.setEnabled(false);\r\n cardFive.setEnabled(false);\r\n }", "private void setBtnState(){\n recordBtn.setEnabled(!recording);\n stopBtn.setEnabled(recording);\n pauseBtn.setEnabled(playing & !paused);\n resumeBtn.setEnabled(paused);\n }", "public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}", "public void showButtonActiveOFF( JButton button ) {\r\n /*------------------------------------------------------------------------*/\r\n button.setIcon(\r\n new javax.swing.ImageIcon(\r\n getClass().getResource(LED_RED_ON)));\r\n }", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "@Override\n public void enableProductionButtons() {\n gameboardPanel.disableEndTurnButton();\n gameboardPanel.disableEndOfProductionButton();\n gameboardPanel.enableProductionButtons();\n leaderCardsPanel.enableProductionButtons();\n }", "private void setBtnUsability(boolean enable){\n pushButton.setEnabled(enable);\n popButton.setEnabled(enable);\n }", "public void showButtonText( boolean b ) {\n if ( b ) {\n _run_btn.setText( \"Run\" );\n _trace_btn.setText( \"Trace\" );\n _edit_btn.setText( \"Edit\" );\n _props_btn.setText( \"Properties\" );\n _options_btn.setText( \"Options\" );\n _reload_btn.setText( \"Reload\" );\n }\n else {\n _run_btn.setText( \"\" );\n _trace_btn.setText( \"\" );\n _edit_btn.setText( \"\" );\n _props_btn.setText( \"\" );\n _options_btn.setText( \"\" );\n _reload_btn.setText( \"\" );\n }\n }", "public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Test\r\n\tpublic void testButtonPressedDisabled() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tbutton.disable();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "@FXML\n private void cancelButtonAction(ActionEvent event) {\n //Change cancel button to help button\n cancelButton.setVisible(false);\n cancelButton.setDisable(true);\n helpButton.setVisible(true);\n helpButton.setDisable(false);\n \n help = false;\n\n // enable the sliders and checkbox\n enableSliderBoxes();\n // remove help informations\n clearInfo();\n }", "private void setButton(boolean a) {\n//Vo hieu hoac co hieu luc cho cac JButton\n this.btnCourseAdd.setEnabled(a);\n this.btnCourseDelete.setEnabled(a);\n this.btnCourseEdit.setEnabled(a);\n this.btnCourseSave.setEnabled(!a);\n this.btnCourseReport.setEnabled(!a);\n this.btnCourseReset.setEnabled(!a);\n this.btnCourseClose.setEnabled(a);\n }", "default void disableFollowButton() {}", "private void hideNextButton(){\n\t\tif(nextButton != null){\n\t\t\tmainWindow.getContainer().remove(nextButton);\n\t\t\tshowSubmitBtn();\n\t\t}\n\t}", "private void disableDice() {\n\t\ttogglebtnD1.setDisable(true);\n\t\ttogglebtnD2.setDisable(true);\n\t\ttogglebtnD3.setDisable(true);\n\t\tendTurnButton.setDisable(true);\n\t}" ]
[ "0.71980256", "0.7039783", "0.6940227", "0.69122994", "0.6781906", "0.6723504", "0.66901237", "0.65996015", "0.6578076", "0.6564412", "0.6542197", "0.6529052", "0.65266806", "0.64973116", "0.6489684", "0.6483094", "0.6474532", "0.6378048", "0.6363658", "0.6326476", "0.63030595", "0.6296763", "0.629411", "0.62762517", "0.6240633", "0.618438", "0.61723554", "0.6147096", "0.6133781", "0.6114331", "0.6089696", "0.6082528", "0.6059686", "0.6049094", "0.60353464", "0.59909064", "0.59869456", "0.5966408", "0.596245", "0.5945488", "0.5939923", "0.59384704", "0.5892802", "0.5886279", "0.5882368", "0.58817667", "0.58738744", "0.58701766", "0.5868386", "0.5863816", "0.5830722", "0.582266", "0.580956", "0.5808912", "0.58020896", "0.5801149", "0.5800704", "0.57770437", "0.5776831", "0.57721335", "0.5767783", "0.5743679", "0.5738465", "0.57376766", "0.5730152", "0.57183725", "0.57102215", "0.57055", "0.57046616", "0.5699222", "0.569095", "0.5687579", "0.56799805", "0.5669343", "0.5657415", "0.5652886", "0.5650723", "0.56447846", "0.5639767", "0.5632677", "0.56250954", "0.5621435", "0.56079614", "0.56015193", "0.55976427", "0.55955493", "0.5595232", "0.5594023", "0.5585014", "0.55842006", "0.55839694", "0.5580073", "0.5568425", "0.55680245", "0.5560058", "0.55587304", "0.5557625", "0.55487174", "0.55451757", "0.5531536" ]
0.7102694
1
Disables the destination specified by button Also displays the feedback label. If statements determine which button to disable.
public void removeWrongDestination (int button) { if (button==0) a.setEnabled(false); else if (button==1) b.setEnabled(false); else c.setEnabled(false); feedbackLabel.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void disableButtons()\r\n {\r\n }", "public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}", "public void disableButtons() {\n p1WinPoint.setEnabled(false);\n p2WinPoint.setEnabled(false);\n }", "public void removeWrongAnswer (char button)\n {\n if (button=='A')\n a.setEnabled(false);\n else if (button=='B')\n b.setEnabled(false);\n else if (button=='C')\n c.setEnabled(false);\n else\n d.setEnabled(false);\n feedbackLabel.setVisible(true);\n }", "private void disableButton(Button b) {\n b.setPressed(false);\n b.setEnabled(false);\n }", "public void disable()\n\t{\n\t\tplayButton.setEnabled(false);\n\t\tpassButton.setEnabled(false);\n\t\tbigTwoPanel.setEnabled(false);\n\t}", "private void disableP2Buttons(){\n game_BTN_p2_lightAttack.setEnabled(false);\n game_BTN_p2_strongAttack.setEnabled(false);\n game_BTN_p2_brutalAttack.setEnabled(false);\n }", "private void disableP1Buttons(){\n game_BTN_p1_lightAttack.setEnabled(false);\n game_BTN_p1_strongAttack.setEnabled(false);\n game_BTN_p1_brutalAttack.setEnabled(false);\n }", "public void disableEndOfProductionButton(){\n this.endOfproductionButton.setEnabled(false);\n }", "@Override\n public void disableProductionButtons() {\n gameboardPanel.disableProductionButtons();\n leaderCardsPanel.disableProductionButtons();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tACTION_B_DISABLE(arg0);\r\n\t\t\t}", "protected void disableButtons() {\n if (mFalseButton.isPressed() || mTrueButton.isPressed())\n mFalseButton.setEnabled(false);\n mTrueButton.setEnabled(false);\n }", "protected void ACTION_B_DISABLE(ActionEvent arg0) {\n\r\n\t\tL_FilterStatusBox.setText(\"Disabled (All Ports)\");\r\n\t}", "private void disableButtons() {\n for (DeployCommand cmd : DeployCommand.values()){\n setButtonEnabled(cmd, false);\n }\n butDone.setEnabled(false);\n setLoadEnabled(false);\n setUnloadEnabled(false);\n setAssaultDropEnabled(false);\n }", "public void disableEndTurnButton(){\n\n this.endTurnButton.setEnabled(false);\n }", "protected void disableButton(Button button){\n button.setClickable(false);\n button.setVisibility(View.INVISIBLE);\n }", "public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }", "public void disableButtons() {\n\n for (Button b: buttons) {\n b.setClickable(false);\n }\n\n }", "@Override\n public void disableEndOfProductionButton() {\n gameboardPanel.disableEndOfProductionButton();\n }", "private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}", "public void disableProductionButtons(){\n for(int i = 0; i < 3; i++){\n Gui.removeAllListeners(productionButtons[i]);\n productionButtons[i].addActionListener(new ActivateProductionListener(gui,productionButtons[i],i));\n productionButtons[i].setEnabled(false);\n }\n\n baseProductionPanel.disableButton();\n }", "String disabledButton();", "public void disable()\n {\n // Disable all the buttons one by one\n for (int col = 0; col < COLUMNS; col++ )\n {\n drop[col].setEnabled(false);\n }\n }", "public void botoiaDesaktibatu2() {\r\n\t\tbtnAurrera.setEnabled(true);\r\n\t}", "public void disableAllButtons(){\n\t\tbtnConfirmOrNext.setEnabled(false);\n\t\tbtnStop.setEnabled(false);\n\t\tbtnListenAgain.setEnabled(false);\n\t}", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}", "private void disableModeButtons(Button driveModeButton, Button blindZoneModeButton, Button parkingModeButton, boolean disable) {\r\n\t\tif (! parkingMode) {\r\n\t\t\tdriveModeButton.setDisable(disable);\r\n\t\t\tblindZoneModeButton.setDisable(disable);\t\t\t\r\n\t\t}\r\n\t\tif (! drivingMode || ! blindZoneMode) {\r\n\t\t\tparkingModeButton.setDisable(disable);\t\t\t\r\n\t\t}\r\n\t\tif (disable) {\r\n\t\t\tdrivingMode = false;\r\n\t\t\tblindZoneMode = false;\r\n\t\t\tparkingMode = false;\r\n\t\t\tmode1Enabled.setVisible(false);\r\n\t\t\tmode2Enabled.setVisible(false);\t\t\t\r\n\t\t}\r\n\t}", "public void disableChoice() {\n\t\t// Disable the buttons, dimming them\n\t\trock.setEnabled(false);\n\t\tpaper.setEnabled(false);\n\t\tscissors.setEnabled(false);\n\t}", "private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }", "private void checkButtonUnlock() {\r\n\t\tif (this.isAdressValid && this.isPortValid) {\r\n\t\t\tview.theButton.setDisable(false);\r\n\t\t}\r\n\r\n\t}", "public void hideUnpauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_UNPAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "private void hideButton(){\n // Si onget Client\n if(numOnglet() == 0 ){\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }\n }\n }", "public void hideCreditsButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_CREDITS_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public void updateDisabledButtons() {\n\t\t//at least 3 credits should be there for perform add max action\n\t\tif (obj.getCredit() < 3)\n\t\t\taddMax.setEnabled(false);\n\t\t//at least a credit should be there for perform add max action\n\t\tif (obj.getCredit() == 0)\n\t\t\taddOne.setEnabled(false);\n\t\tif (obj.getCredit() >= 3)\n\t\t\taddMax.setEnabled(true);\n\t\tif (obj.getCredit() > 0)\n\t\t\taddOne.setEnabled(true);\n\t}", "void killButton() {\n //goes through all columns\n for (int i = 0; i < 7; i++) {\n //if the not of valid move is true, disable the buttons\n if (!Checker.validMove(currentBoard, i)) {\n Inputbuttons[i].setEnabled(false);\n }\n }\n }", "public void hideUpgradeButton()\r\n {\r\n \tmGUIManager.newCost(\"Upgrade Tower\");\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_UPGRADE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "void disableAddContactButton();", "@Override\n public void disableEndTurnButton() {\n gameboardPanel.disableEndTurnButton();\n }", "public void disable() {\n \t\t\tsetEnabled(false);\n \t\t}", "public void userClickedOnTable()\r\n {\r\n this.detailedStudentViewButton.setDisable(false);\r\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n setVisible(false);\n \n }", "@Override\r\n\tpublic void actionPerformed(GuiButton button) {\r\n switch (button.id) {\r\n case 0:\r\n GuiYesNo confirmGui = new GuiYesNo(this, \"Delete Waypoints\", \"Are you sure you want to delete the selected waypoints?\", \"Yes\", \"No\", 0);\r\n confirmGui.setButtonDelay(5);\r\n this.mc.displayGuiScreen(confirmGui);\r\n break;\r\n }\r\n\t}", "private void setBoardDisabled(boolean disabled) {\r\n\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t//If we're enabling the buttons and the button has no text on it (Only enable the unclicked buttons)\r\n\t\t\t//OR if we're disabling the buttons\r\n\t\t\tif(!disabled && buttons[i].getText().equals(\"\") || disabled) {\r\n\t\t\t\tbuttons[i].setDisable(disabled);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void disableTable() {\n for (Button button : seatsArray) {\n button.setDisable(true);\n }\n confirmChange.setDisable(true);\n deleteBooking.setDisable(true);\n noBookingsLabel.setText(\"You have no bookings\");\n noBookingsLabel.setVisible(true);\n }", "public void hideStatsButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STATS_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public void disableStartButton(boolean b){\n start.setDisable(b);\n }", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "private void disableButtons(boolean b) {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j].setDisable(b);\n bt[i][j].setStyle(\"-fx-border-color:transparent\");\n }\n }\n }", "private void disableLabel() {\n Label[] labelArray = {id00, id01, id02, id10, id11, id12, id20, id21, id22};\n for(Label lbl : labelArray) {\n lbl.setOnMouseClicked(null);\n }\n }", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "public void showButtonInactive( JButton button ) {\r\n /*------------------------------------------------------------------------*/\r\n button.setIcon(\r\n new javax.swing.ImageIcon(\r\n getClass().getResource(LED_OFF)));\r\n }", "@Override\n\tpublic boolean onClick(Player player, int buttonID) {\n\t\treturn false;\n\t}", "@Override\n public void enableProductionButtons() {\n gameboardPanel.disableEndTurnButton();\n gameboardPanel.disableEndOfProductionButton();\n gameboardPanel.enableProductionButtons();\n leaderCardsPanel.enableProductionButtons();\n }", "default void disableFollowButton() {}", "@Override\r\n\tprotected void onBoEdit() throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoEdit();\r\n\t}", "public void disablePanelInput() {\n\t\tif (!clickThem) {\r\n\t\t\ttxt_mssv.setText(\"\");\r\n\t\t\ttxt_mssv.setEnabled(false);\r\n\t\t\ttxt_hoten.setEnabled(false);\r\n\t\t\ttxt_hoten.setText(\"\");\r\n\t\t\tcomboSex.setEnabled(false);\r\n\t\t\ttxt_ntns.setText(\"\");\r\n\t\t\ttxt_ntns.setEnabled(false);\r\n\t\t\tbtn_nhap.setEnabled(false);\r\n\t\t} else {\r\n\t\t\ttxt_mssv.setEnabled(true);\r\n\t\t\ttxt_hoten.setEnabled(true);\r\n\t\t\tcomboSex.setEnabled(true);\r\n\t\t\ttxt_ntns.setEnabled(true);\r\n\t\t\tbtn_nhap.setEnabled(true);\r\n\t\t}\r\n\t}", "public void desactivatePlayer() {\n\t\tthis.setEnabled(false);\n\t}", "public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }", "protected abstract void disable();", "public void disable();", "public void showUnpauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.SHOW_UNPAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public abstract void onDisable();", "@Override\n\tpublic void onDisable() {\n\t\tArduinoInstruction.getInst().disable();\n\t}", "public void hidePauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_PAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t if(btAdapt.isEnabled()){\n\t\t \tbtAdapt.disable();\n\t\t }else {\n\t\t\t\tIntent intent =new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\tthis.view.getPaintPanel().setMode(e.getActionCommand());\r\n\n\t\tJButton buttonPressed = (JButton) e.getSource();\r\n\r\n\t\t// lets user know which mode they're in by disabling button\r\n\t\tif (buttonPressed.isSelected() != true) {\r\n\t\t\tbuttonPressed.setEnabled(false);\r\n\t\t}\r\n\t\tfor (JButton tempButton : buttons) {\r\n\t\t\tif (buttonPressed != tempButton) {\r\n\t\t\t\ttempButton.setEnabled(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(e.getActionCommand());\r\n\t}", "void disable();", "void disable();", "private JButton getJButtonDiscnnt() {\r\n\t\tif (jButtonDiscnnt == null) {\r\n\t\t\tjButtonDiscnnt = new JButton();\r\n\t\t\tjButtonDiscnnt.setBounds(new Rectangle(269, 82, 60, 23));\r\n\t\t\tjButtonDiscnnt.setMargin(new Insets(2, 5, 2, 5));\r\n\t\t\tjButtonDiscnnt.setEnabled(false);\r\n\t\t\tjButtonDiscnnt.setText(\"断开\");\r\n\t\t}\r\n\t\treturn jButtonDiscnnt;\r\n\t}", "public void createNoBanButton() {\n\t\tnoban = new JButton(\"Click here if the current team missed a ban\");\n\t\tnoban.setName(\"noban\");\n\t\tnoban.setBackground(Color.GRAY);\n\t\tnoban.setForeground(Color.WHITE);\n\t\tnoban.setBorderPainted(false);\n\t\tnoban.addActionListener(this);\n\t\tnoban.setBounds(400, 50, 400, 100);\n\t\tbottomPanel.add(noban, new Integer(1));\n\t}", "public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}", "private void stopButtonActionPerformed() {\n if(ascopy != null) {\n ascopy.stopCopy();\n }\n\n if(ascopyREC != null) {\n ascopyREC.stopCopy();\n }\n\n copyStopped = true;\n stopButton.setEnabled(false);\n }", "private void reEnableCopyButtons() {\n // re-enable the buttons the relevant buttons\n copyToASpaceButton.setEnabled(true);\n repositoryCheckButton.setEnabled(true);\n copyProgressBar.setValue(0);\n\n if (copyStopped) {\n if (ascopy != null) ascopy.saveURIMaps();\n copyStopped = false;\n copyProgressBar.setString(\"Cancelled Copy Process ...\");\n } else {\n copyProgressBar.setString(\"Done\");\n }\n }", "public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}", "void disable() {\n }", "public void updateButton(boolean done) {\n\t\tdiceBtn.setDisable(done);\n\t\tendTurn.setDisable(!done);\n\t}", "private void habilitar() {\n\n if (i <= 0) {\n jButton4.setEnabled(false);\n } else {\n jButton4.setEnabled(true);\n }\n }", "public void actionPerformed(ActionEvent event)\n {\n bulb.setOn(false);\n onButton.setEnabled(true);\n offButton.setEnabled(false);\n bulb.repaint();\n }", "@Test\r\n\tpublic void testButtonPressedDisabled() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tbutton.disable();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }", "public void enableEndTurnButton(){\n this.endTurnButton.setEnabled(true);\n }", "protected void actionPerformed(GuiButton button) throws IOException {\n/* 60 */ if (button.enabled)\n/* */ {\n/* 62 */ if (button.id == 1) {\n/* */ \n/* 64 */ this.lastScreen.confirmClicked(false, 0);\n/* */ }\n/* 66 */ else if (button.id == 0) {\n/* */ \n/* 68 */ this.serverData.serverIP = this.ipEdit.getText();\n/* 69 */ this.lastScreen.confirmClicked(true, 0);\n/* */ } \n/* */ }\n/* */ }", "protected void setEnabledButtons( final boolean b )\r\n {\r\n jButtonSource.setEnabled( b );\r\n jButtonDestination.setEnabled( b );\r\n jButtonClearFileList.setEnabled( b );\r\n jButtonDoAction.setEnabled( b );\r\n }", "private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}", "public void reenableButton(EventStruct event) {\n AppSync.puts(\"\"+event);\n if (event.type == \"scored\") {\n switch (event.subtype) {\n case \"balance\":\n robotBalanced.setEnabled(true);\n robotFailedToBalance.setEnabled(true);\n break;\n case \"glyph\":\n if (event.location == \"cipher\") {glyphCompletedCipher.setEnabled(true);}\n break;\n default: {break;}\n }\n\n\n } else if (event.type == \"missed\") {\n switch (event.subtype) {\n case \"balance\":\n robotBalanced.setEnabled(true);\n robotFailedToBalance.setEnabled(true);\n default: {break;}\n }\n }\n }", "private void changeDonateButton(int displayState) {\n \tButton donateButton = (Button)findViewById(R.id.Donate_Button_Donate);\n\n \tswitch (displayState) {\n \tcase DONATE_BUTTON_WORKING:\n \tdonateButton.setText(getString(R.string.donate_donation_button_working));\n \tdonateButton.setEnabled(false); \t\n \t\tbreak;\n \tcase DONATE_BUTTON_DONE:\n \tdonateButton.setText(getString(R.string.donate_donation_button_done));\n \tdonateButton.setEnabled(false); \t\n \t\tbreak;\n \tdefault:\t// NORMAL or other\n \tdonateButton.setText(getString(R.string.donate_donation_button_donate));\n \tdonateButton.setEnabled(true); \t\n \t}\n }", "private void disabilitarBotao(View v){\n v.setEnabled(false);\n }", "public void disableAllButtons() {\n\t\tfor (int i = 0; i < DIM; i++)\n\t\t\tfor (int j = 0; j < DIM; j++)\n\t\t\t\tbuttons[i][j].setEnabled(false);\n\t}", "public void hideDeleteButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_DELETE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public void disable() {\n\t\tm_enabled = false;\n\t\tuseOutput(0);\n\t}", "public void dama_DamaCloseButtonListener() {\n this.buttonDisabled = false;\n }", "public void disable() {\r\n cardOne.setEnabled(false);\r\n cardTwo.setEnabled(false);\r\n cardThree.setEnabled(false);\r\n cardFour.setEnabled(false);\r\n cardFive.setEnabled(false);\r\n }", "public void btnAbort(View v){\n RadioGroup Radioone = (RadioGroup) findViewById(R.id.WireOne);\n RadioButton WireOneColor = ((RadioButton) findViewById(Radioone.getCheckedRadioButtonId()));\n String frk = \"\";\n frk = getGlobals(\"FRKLit\", frk);\n String bat = \"\";\n int battery = 0;\n battery = Integer.parseInt(getGlobals(\"Batteries\", bat));\n\n\n\n if (WireOneColor.getText().equals(\"Blue\")) {\n abort = \"A\";\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.VISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.VISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.VISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.VISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Hold!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n //This is done.\n } else{\n if (battery > 2 && frk.equals(\"Yes\")){\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.INVISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.INVISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.INVISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.INVISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Release!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n } else {\n Button myButtonone = (Button) findViewById(R.id.btnBlue);\n myButtonone.setVisibility(View.VISIBLE);\n Button myButtontwo = (Button) findViewById(R.id.btnYellow);\n myButtontwo.setVisibility(View.VISIBLE);\n Button myButtonthree = (Button) findViewById(R.id.btnWhite);\n myButtonthree.setVisibility(View.VISIBLE);\n Button myButtonfour = (Button) findViewById(R.id.btnOtherColor);\n myButtonfour.setVisibility(View.VISIBLE);\n TextView mylabelone = (TextView) findViewById(R.id.lblStrip);\n mylabelone.setVisibility(View.VISIBLE);\n mylabelone.setText(\"Press and Hold!\");\n TextView mylabeltwo = (TextView) findViewById(R.id.lblAnswer);\n mylabeltwo.setVisibility(View.INVISIBLE);\n }\n }\n\n }", "public void resetButtons() {\n\t\tboolean bool = selectedLesson.isEnable();\n\t\tview.getTestButton().setEnabled(bool);\n\t\tview.getLearnButton().setEnabled(bool);\n\t}", "private void DisablePanel(){\n this.pan.DesableAllPanels();\n }", "public void onDisable() {\r\n }", "public void actionPerformed(ActionEvent ae) {\r\n II.setVisible(false);\r\n II.setEnabled(false);\r\n }", "public void disableOkButton() {\n okButton.setEnabled(false);\n }", "private void enableDisable() {\n fixDisplayName.setEnabled(automaticFix.isSelected());\n }" ]
[ "0.6715534", "0.662014", "0.6558534", "0.65025413", "0.6474108", "0.6407588", "0.6398814", "0.637808", "0.6377134", "0.6334007", "0.6268706", "0.6253285", "0.62375516", "0.6224943", "0.6222759", "0.62017363", "0.61709285", "0.61630356", "0.61388683", "0.6128453", "0.6113743", "0.599371", "0.5931203", "0.592082", "0.5917858", "0.59051937", "0.58972406", "0.5887524", "0.5880487", "0.5787661", "0.577214", "0.576825", "0.5758786", "0.57472324", "0.57432365", "0.57339555", "0.5725038", "0.5695483", "0.5664601", "0.56617075", "0.5636941", "0.5634953", "0.56242484", "0.56193334", "0.5603449", "0.56029516", "0.5599868", "0.55977553", "0.55874133", "0.55828315", "0.5582625", "0.5573395", "0.5565817", "0.554218", "0.55389565", "0.55340546", "0.5528695", "0.55267346", "0.55240375", "0.5516785", "0.5512701", "0.55089563", "0.54653805", "0.5460971", "0.5453068", "0.5444635", "0.5436434", "0.5433706", "0.5433706", "0.5433327", "0.54318583", "0.54303104", "0.5430225", "0.5420959", "0.5420787", "0.5420496", "0.54149544", "0.5403358", "0.5402243", "0.5383776", "0.53825957", "0.5381203", "0.5380287", "0.53789335", "0.5374702", "0.53692293", "0.5366894", "0.5364688", "0.5356211", "0.5351455", "0.5351128", "0.53504676", "0.534912", "0.5347783", "0.53454983", "0.53449315", "0.53434813", "0.5343151", "0.5340857", "0.53251475" ]
0.7857706
0
Sets the current question. Also hides the feedback label.
public void setQuestion(Question q) { currentQuestion=q; questionLabel.setText(q.getQuestion()); feedbackLabel.setVisible(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setQuestion() {\n Question.setText(gen.getQuestion() + \"\\t\\tProblem # \" + currentQuestion + \"/\" + numQuestions);\n }", "public void setQuestion(){\n txt_question.setText(arrayList.get(quesAttempted).getQuestion());\n txt_optionA.setText(arrayList.get(quesAttempted).getOptionA());\n txt_optionB.setText(arrayList.get(quesAttempted).getOptionB());\n txt_optionC.setText(arrayList.get(quesAttempted).getOptionC());\n txt_optionD.setText(arrayList.get(quesAttempted).getOptionD());\n txt_que_count.setText(\"Que: \"+(quesAttempted+1)+\"/\"+totalQues);\n txt_score.setText(\"Score: \"+setScore);\n }", "public void setQuestion(){\n String welcomeTextString = \"Welcome \" + getIntent().getStringExtra(\"name\") + \"!\";\n welcomeText.setText(welcomeTextString);\n\n //Setting Question title, description, and answers\n questionTitle.setText(questions[currentQuestion-1][0]);\n questionDescription.setText(questions[currentQuestion-1][1]);\n ans1.setText(questions[currentQuestion-1][2]);\n ans2.setText(questions[currentQuestion-1][3]);\n ans3.setText(questions[currentQuestion-1][4]);\n\n //Save correct answer\n correctAnswer = questions[currentQuestion-1][5];\n\n //Set progress bar and progress text\n progressBar.setProgress(currentQuestion);\n progressText.setText(currentQuestion.toString() + \"/5\");\n\n //Clear selection of buttons if any are already selected\n ans1.setBackgroundColor(getResources().getColor(R.color.ans_btn));\n ans2.setBackgroundColor(getResources().getColor(R.color.ans_btn));\n ans3.setBackgroundColor(getResources().getColor(R.color.ans_btn));\n }", "public void setCurrentQuestion(Question question) {\n\t\tcurrentQuestion = question;\n\t}", "private void updateQuestion(){\n\t\tint question = mQuestionBank[mCurrentIndex].getQuestion();\n\t\tmQuestionTextView.setText(question);\n\t}", "private void setQuestionView()\n\t{\n txtQNumber.setText(qid + 1 + \"/\" + numberOfQuestions);\n\t\ttxtQuestion.setText(currentQ.getQUESTION());\n\t\ttxtReference.setText(currentQ.getREFERENCE());\n\t\trda.setText(currentQ.getOPTA());\n\t\trdb.setText(currentQ.getOPTB());\n\t\trdc.setText(currentQ.getOPTC());\n\t\trdd.setText(currentQ.getOPTD());\n\t\tqid++;\n\t}", "@FXML\n\tprivate void answerQuestion() {\n\t\tint correctAnsID = 0;\n\t\ttry {\n\t\t\tswitch (((RadioButton) answerGroup.getSelectedToggle()).getId()) {\n\t\t\tcase \"ans1Check\":\n\t\t\t\tcorrectAnsID = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"ans2Check\":\n\t\t\t\tcorrectAnsID = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"ans3Check\":\n\t\t\t\tcorrectAnsID = 3;\n\t\t\t\tbreak;\n\t\t\tcase \"ans4Check\":\n\t\t\t\tcorrectAnsID = 4;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\terrorLabel.setVisible(true);\n\t\t}\n\n\t\t// nothing is selected\n\t\tif (correctAnsID == 0) { \n\t\t\terrorLabel.setVisible(true);\n\t\t\t// correct answer\n\t\t} else if (question.getCorrect_ans() == correctAnsID) {\n\t\t\tcontrol.setScore(control.getScore() + question.getScore());\n\t\t\thandleAlertAndWindow(AlertType.INFORMATION, \"Congrats! :D\",\n\t\t\t\t\t\"You received \" + question.getScore() + \" points\");\n\t\t\t// wrong answer\n\t\t} else {\n\t\t\tcontrol.setScore(control.getScore() + question.getPenalty());\n\n\t\t\thandleAlertAndWindow(AlertType.ERROR, \"Uh oh! :(\",\n\t\t\t\t\t\"You lost \" + question.getPenalty() + \" points\");\n\t\t}\n\n\t\t// reset the eaten question\n\t\tViewLogic.playGameController.getControl().setQuestionEaten(null);\n\t}", "private void updateQuestion(){\n int question = mQuestionBank[mCurrentIndex].getmQuestion();\n mQuestionTextView.setText(question);\n }", "private void setQuestionView() {\n textView.setText(currentQuestion.getQuestion());\n buttonA.setText(currentQuestion.getOptA());\n buttonB.setText(currentQuestion.getOptB());\n buttonC.setText(currentQuestion.getOptC());\n numberText.setText(\"Question \" + (questionID + 1) + \" of \" + questionList.size());\n questionID++;\n }", "private void updateQuestion() {\r\n\r\n //The code below resets the option\r\n mOption1.setVisibility(View.VISIBLE);\r\n mOption2.setVisibility(View.VISIBLE);\r\n mOption3.setVisibility(View.VISIBLE);\r\n mNext.setVisibility(View.INVISIBLE);\r\n\r\n int questionSize = 12;\r\n\r\n if (mQuestionNumber < questionSize) {\r\n\r\n mQuestionView.setText((questionsDB.getQuestion(mQuestionNumber)));\r\n mOption1.setText(questionsDB.getChoice1(mQuestionNumber));\r\n mOption2.setText(questionsDB.getChoice2(mQuestionNumber));\r\n mOption3.setText(questionsDB.getChoice3(mQuestionNumber));\r\n\r\n mAnswer = questionsDB.getCorrectAnswer(mQuestionNumber);\r\n mQuestionNumber++;\r\n timeLeftInMillis = COUNTDOWN_IN_MILLIS;\r\n startCountDown();\r\n\r\n\r\n } else {\r\n displayScore();\r\n }\r\n\r\n }", "public void setNextQuestion(Question question) {\n curQuestion = question;\n p.setVisibility(View.GONE);\n questionText.setText(question.getText());\n questionText.scrollTo(0, 0);\n\n readableCheck.setEnabled(true);\n readableCheck.setChecked(true);\n skipBtn.setEnabled(true);\n }", "public void question() {\n\t\tlead.answer(this);\n\t}", "public void resetQuestion() \n\t{\n\t\tthis.game = masterPanel.getGame();\n\t\t\n\t\tArrayList<String> tempQuestion = new ArrayList<String>();\n\t\ttempQuestion = getRandQuestion();\n\t\t\n\t\tquestion.setText(tempQuestion.get(0));\n\t\tanswerOne.setText(tempQuestion.get(1));\n\t\tanswerTwo.setText(tempQuestion.get(2));\n\t\tanswerThree.setText(tempQuestion.get(3));\n\t\tanswerFour.setText(tempQuestion.get(4));\n\t\tcorrectAnswer = tempQuestion.get(5);\n\t\t\n\t\tlayoutConstraints.gridy = 1;\n\t\tthis.add(answerOne, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 2;\n\t\tthis.add(answerTwo, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 3;\n\t\tthis.add(answerThree, layoutConstraints);\n\t\t\n\t\tlayoutConstraints.gridy = 4;\n\t\tthis.add(answerFour, layoutConstraints);\n\t\t\n\t\tthis.repaint();\n\t}", "public void setQuestion(String newQuestion) {\n question = newQuestion;\n }", "public void setQuestion(){\n\n\n triggerReport(); //Check if max questions are displayed, if yes then show report\n\n MyDatabase db = new MyDatabase(QuizCorner.this);\n Cursor words = db.getQuizQuestion();\n TextView question_text = (TextView) findViewById(R.id.question_text);\n RadioButton rb;\n resetOptions();\n disableCheck();\n enableRadioButtons();\n hideAnswer();\n words.moveToFirst();\n word = words.getString(words.getColumnIndex(\"word\"));\n correct_answer = words.getString(words.getColumnIndex(\"meaning\"));\n question_text.setText(word + \" means:\");\n for (int i = 0; i < 4; i++){\n answers[i] = words.getString(words.getColumnIndex(\"meaning\"));\n words.moveToNext();\n }\n answers = randomizeArray(answers);\n for (int i = 0; i < 4; i++){\n rb = (RadioButton) findViewById(options[i]);\n rb.setText(answers[i]);\n }\n question_displayed_count++;\n }", "public void setQuestionLbl(JLabel questionLbl) {\r\n\t\tthis.questionLbl = questionLbl;\r\n\t}", "private void setquestion() {\n qinit();\n question_count++;\n\n if (modeflag == 3) {\n modetag = (int) (Math.random() * 3);\n } else {\n modetag = modeflag;\n }\n\n WordingIO trueword = new WordingIO(vocabulary);\n\n if (modetag == 0) {\n\n MCmode(trueword);\n }\n\n if (modetag == 1) {\n BFmode(trueword);\n }\n\n if (modetag == 2) {\n TLmode(trueword);\n }\n\n if (time_limit != 0) {\n timingtoanswer(time_limit, jLabel2, answer_temp, jLabel5, jLabel6, jButton1);\n }\n }", "private void setQuestion(int resID){\n questionView.setText(resID);\n ecaFragment.sendToECAToSpeak(getResources().getString(resID));\n }", "public void setQuestion()\n\t{\n\t\tthis.game = masterPanel.getGame();\n\t\t\n\t\tthis.setLayout(new GridBagLayout());\n\t\t\n\t\tArrayList<String> tempQuestion = new ArrayList<String>();\n\t\ttempQuestion = getRandQuestion();\n\t\t\t\t\n\t\tquestion = new JLabel();\n\t\tquestion.setText(tempQuestion.get(0));\n\t\tquestion.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tquestion.setPreferredSize(new Dimension(BUTTON_WIDTH + 200, BUTTON_HEIGHT));\n\t\t\n\t\tlayoutConstraints.gridy = 0;\n\t\tlayoutConstraints.insets = new Insets(10, 10, 10, 10);\n\t\tthis.add(question, layoutConstraints);\n\t\t\n\t\tanswerOne = new JButton();\n\t\tanswerOne.setText(tempQuestion.get(1));\n\t\tanswerOne.setPreferredSize(new Dimension(BUTTON_WIDTH, BUTTON_HEIGHT));\n\t\tanswerOne.addActionListener(new AnswerButtonListener());\n\t\t\n\t\tlayoutConstraints.gridy = 1;\n\t\tthis.add(answerOne, layoutConstraints);\n\t\t\n\t\tanswerTwo = new JButton();\n\t\tanswerTwo.setText(tempQuestion.get(2));\n\t\tanswerTwo.setPreferredSize(new Dimension(BUTTON_WIDTH, BUTTON_HEIGHT));\n\t\tanswerTwo.addActionListener(new AnswerButtonListener());\n\t\t\n\t\tlayoutConstraints.gridy = 2;\n\t\tthis.add(answerTwo, layoutConstraints);\n\t\t\n\t\tanswerThree = new JButton();\n\t\tanswerThree.setText(tempQuestion.get(3));\n\t\tanswerThree.setPreferredSize(new Dimension(BUTTON_WIDTH, BUTTON_HEIGHT));\n\t\tanswerThree.addActionListener(new AnswerButtonListener());\n\t\t\n\t\tlayoutConstraints.gridy = 3;\n\t\tthis.add(answerThree, layoutConstraints);\n\t\t\n\t\tanswerFour = new JButton();\n\t\tanswerFour.setText(tempQuestion.get(4));\n\t\tanswerFour.setPreferredSize(new Dimension(BUTTON_WIDTH, BUTTON_HEIGHT));\n\t\tanswerFour.addActionListener(new AnswerButtonListener());\n\t\t\n\t\tlayoutConstraints.gridy = 4;\n\t\tthis.add(answerFour, layoutConstraints);\n\t\t\n\t\tcorrectAnswer = tempQuestion.get(5);\t\n\t}", "private void setCurrentQuestion(){\n\tfor(int i=0; i<QuestionsTree.length;i++){\n\t\tif(QuestionsTree[i][0].equals(currentRule)){\n\t\t\tcurrentQuestion = QuestionsTree[i][1];\n\t\t}\n\t}\n}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t\tnew Questions();\r\n\t\t\t}", "public void setAnswer(MCQChoice answer)\n\t{\n\t\tmcqAnswer = answer;\n\t}", "public void setQuestionText(String questionText) {\n this.questionText = questionText;\n }", "public void setQuestion(String question) {\n\t\tthis.question = question;\n\t}", "public void setQuestion(String question) {\n this.question = question;\n }", "public void showNextQuestion() {\n currentQuiz++;\n gui.setUp();\n if (currentQuiz <= VocabularyQuizList.MAX_NUMBER_QUIZ) {\n showQuestion(currentQuiz);\n } else {\n result();\n }\n gui.getFrame().setVisible(true);\n }", "@Override\n public void askQuestion(final EJQuestion question)\n {\n final EJQuestionButton[] optionsButtons = getOptions(question);\n String[] options = new String[optionsButtons.length];\n for (int i = 0; i < optionsButtons.length; i++)\n {\n options[i] = question.getButtonText(optionsButtons[i]);\n }\n MessageDialog dialog = new MessageDialog(manager.getShell(), question.getTitle(), null, question.getMessageText(), MessageDialog.QUESTION, options, 2)\n {\n\n @Override\n public boolean close()\n {\n boolean close = super.close();\n\n int answer = getReturnCode();\n\n try\n {\n \n if (answer > -1)\n {\n question.setAnswer(optionsButtons[answer]);\n question.getActionProcessor().questionAnswered(question);\n \n }\n \n }\n catch (EJApplicationException e)\n {\n handleException(e);\n }\n\n return close;\n }\n\n };\n dialog.setBlockOnOpen(false);\n\n dialog.open();\n }", "public void feedback(boolean isCorrect, VocabularyQuiz question) {\n String correctMeaning = question.getSelections().get(question.getAnswer());\n String message;\n if (isCorrect) {\n message = \"Correct!\";\n totalCorrect++;\n } else {\n message = \"Incorrect! The answer is \" + correctMeaning;\n }\n JOptionPane.showMessageDialog(gui.getFrame(), message);\n }", "private void updateQuestion()\r\n {\r\n if(noOfQuestion == 10) //last question.\r\n {\r\n //Toast.makeText(getApplicationContext(), \"Questions Limit Reached!!\", Toast.LENGTH_SHORT).show();\r\n\r\n questionsTV.setVisibility(View.GONE);\r\n questionNoTV.setVisibility(View.GONE);\r\n answer1Btn.setVisibility(View.GONE);\r\n answer2Btn.setVisibility(View.GONE);\r\n answer3Btn.setVisibility(View.GONE);\r\n viewLBBtn.setVisibility(View.VISIBLE);\r\n congratsImgView.setVisibility(View.VISIBLE);\r\n starImgView.setVisibility(View.VISIBLE);\r\n\r\n if(backgroundMusicPlayer.isPlaying()) {\r\n backgroundMusicPlayer.stop();\r\n }\r\n congratsMPlayer.start();\r\n clapSoundPlayer.start();\r\n }\r\n else\r\n {\r\n noOfQuestion++; //increment the number of question.\r\n resetButtonsPosition(answer1Btn, answer2Btn, answer3Btn, 0);\r\n\r\n //update the view with next question and answers.\r\n questionsTV.setText(questionsAndAnswersLibrary.getQuestion(questionNo));\r\n answer1Btn.setText(questionsAndAnswersLibrary.getAnswerChoice1(questionNo));\r\n answer2Btn.setText(questionsAndAnswersLibrary.getAnswerChoice2(questionNo));\r\n answer3Btn.setText(questionsAndAnswersLibrary.getAnswerChoice3(questionNo));\r\n\r\n correctAnswer = questionsAndAnswersLibrary.getCorrectAnswer(questionNo);\r\n questionNo++;\r\n\r\n moveButtons(answer1Btn);\r\n moveButtons(answer2Btn);\r\n moveButtons(answer3Btn);\r\n }\r\n }", "@Override\n public void askInternalQuestion(final EJInternalQuestion question)\n {\n final EJQuestionButton[] optionsButtons = getOptions(question);\n String[] options = new String[optionsButtons.length];\n for (int i = 0; i < optionsButtons.length; i++)\n {\n options[i] = question.getButtonText(optionsButtons[i]);\n }\n MessageDialog dialog = new MessageDialog(manager.getShell(), question.getTitle(), null, question.getMessageText(), MessageDialog.QUESTION, options, 2)\n {\n\n @Override\n public boolean close()\n {\n boolean close = super.close();\n\n int answer = getReturnCode();\n\n try\n {\n \n if (answer > -1)\n {\n question.setAnswer(optionsButtons[answer]);\n question.getActionProcessor().questionAnswered(question);\n \n }\n question.getForm().internalQuestionAnswered(question);\n }\n catch (EJApplicationException e)\n {\n handleException(e);\n }\n return close;\n }\n\n };\n dialog.setBlockOnOpen(false);\n\n dialog.open();\n \n }", "public void displayQuestions(){\n\t\t//create a string which would be displayed in the question label\n\t\tString q = currentNode.getData().toString();\n\t\t//set text question Label\n\t\tquestions.setText(q);\n\t}", "private void setQuestion(int number) {\n questionPlaceholder.setText(questionsList.get(number).getQuestion());\n }", "private void updateQuestion()//update the question each time\n\t{\n\t\tInteger num = random.nextInt(20);\n\t\tcurrentAminoAcid = FULL_NAMES[num];\n\t\tcurrentShortAA= SHORT_NAMES[num];\n\t\tquestionField.setText(\"What is the ONE letter name for:\");\n\t\taminoacid.setText(currentAminoAcid);\n\t\tanswerField.setText(\"\");\n\t\tvalidate();\n\t}", "private void displayQuestion(Question question) {\n String query = question.getQuery();\n TextView queryTextView = getTextViewById(\"quiz_query\");\n queryTextView.setText(query);\n\n //Setting text for quiz options\n Iterator<String> options = question.getOptions().iterator();\n RadioButton A = getRadioButtonById(\"optionA\");\n RadioButton B = getRadioButtonById(\"optionB\");\n RadioButton C = getRadioButtonById(\"optionC\");\n RadioButton D = getRadioButtonById(\"optionD\");\n A.setText(options.next());\n B.setText(options.next());\n C.setText(options.next());\n D.setText(options.next());\n }", "public void switchToCountry()\n {\n questionLabel.setText(currentQuestion.getQuestion());\n d.setVisible(true);\n atQuestionStage=true;\n mapImageLabel.setVisible(false);\n a.setText(\"A\");\n b.setText(\"B\");\n c.setText(\"C\");\n a.setBounds(380,220,a.getPreferredSize().height+20,30);\n b.setBounds(500,220,b.getPreferredSize().height+20,30);\n c.setBounds(380,320,c.getPreferredSize().height+20,30);\n d.setBounds(500,320,d.getPreferredSize().height+20,30);\n questionLabel.setBounds(380,100,600,100);\n revalidate();\n }", "private void updateHelpText(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\t((QuestionDef)propertiesObj).setHelpText(txtHelpText.getText());\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}", "public void setQuestion(Question v) {\n if (Problem_Type.featOkTst && ((Problem_Type)jcasType).casFeat_question == null)\n jcasType.jcas.throwFeatMissing(\"question\", \"hw1.qa.Problem\");\n jcasType.ll_cas.ll_setRefValue(addr, ((Problem_Type)jcasType).casFeatCode_question, jcasType.ll_cas.ll_getFSRef(v));}", "private void setQuestionView() {\n\n if (currentQ.getIsImageQuestion()) {\n\n radioGroup.clearCheck();\n\n byte [] imageInByte = questionList.get(qid).getImageResource();\n\n ByteArrayInputStream imageStream = new ByteArrayInputStream(imageInByte);\n Bitmap theImage = BitmapFactory.decodeStream(imageStream);\n imageView.setImageBitmap(theImage);\n imageView.setVisibility(View.VISIBLE);\n\n txtQuestionNumber.setText(\"Question \" + (qid + 1));\n question.setText(currentQ.getQuestion());\n radio0.setText(currentQ.getA1());\n radio1.setText(currentQ.getA2());\n radio2.setText(currentQ.getA3());\n radio3.setText(currentQ.getA4());\n\n qid++;\n\n }else {\n\n radioGroup.clearCheck();\n\n imageView.setVisibility(View.GONE);\n\n txtQuestionNumber.setText(\"Question \" + (qid + 1));\n question.setText(currentQ.getQuestion());\n radio0.setText(currentQ.getA1());\n radio1.setText(currentQ.getA2());\n radio2.setText(currentQ.getA3());\n radio3.setText(currentQ.getA4());\n\n qid++;\n\n\n }\n }", "public void setOkToEditQuestion(String string) {\r\n\t\t_okToEditQuestion = string;\r\n\t}", "private void displayNextQuestion() {\n\n if (quizIterator.hasNext()){\n question = quizIterator.next();\n qTextView.setText(question.getQuestion());\n setBtnUsability(true);\n }\n else\n {\n setBtnUsability(false);\n qTextView.setText(\"Great job! You're a stack star!\");\n }\n\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_HIDE_LABEL);\n jbNewOrderButton.setVisible(true);\n jbConfirm.setVisible(false);\n jbCancel.setVisible(false);\n }", "public void changeCurrentQuestionNum(int currentQuestion) {\n\t\tquestionNo = currentQuestion;\n\t}", "public void cancelState() {\n if (isQuestionEditMode) {\n //deleteAllQuestionInputTextAreas();\n //addCurrentQuestionsToView();\n }\n }", "public void setAnswer(String newAnswer){\n this.answer = newAnswer; \n }", "public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }", "public void unpause ()\n {\n timer.setPaused (false);\n if (atQuestionStage)\n questionLabel.setText(currentQuestion.getQuestion());\n else\n questionLabel.setText(currentClue);\n a.setVisible(true);\n b.setVisible(true);\n c.setVisible(true);\n if (atQuestionStage)\n d.setVisible(true);\n repaint ();\n revalidate ();\n }", "public void setQuestion(final List<Question> question) {\n\t\tthis.question = question;\n\t}", "private void setUpQuestions(){\n if (index == questions.size()){ //if no more questions, jumps to the endGame\n endGame();\n }else {\n currentQuestion = questions.get(index);\n\n lblQuestion.setText(currentQuestion.getQuestion());\n imgPicture.setImageResource(currentQuestion.getPicture());\n btnRight.setText(currentQuestion.getOption1());\n btnLeft.setText(currentQuestion.getOption2());\n index++;\n }\n }", "void setQuestionType(QuestionType type);", "public void setIdQuestion(int value) {\n this.idQuestion = value;\n }", "public void setQuestion(Question v) {\n if (QuestionNGram_Type.featOkTst && ((QuestionNGram_Type)jcasType).casFeat_question == null)\n jcasType.jcas.throwFeatMissing(\"question\", \"edu.cmu.deiis.types.QuestionNGram\");\n jcasType.ll_cas.ll_setRefValue(addr, ((QuestionNGram_Type)jcasType).casFeatCode_question, jcasType.ll_cas.ll_getFSRef(v));}", "private void setQuestion(int number){\n tv_question.setText(questionsList.get(number).getQuestion());\n\n }", "public void setDoneButton(){\n\t\tbtnConfirmOrNext.setText(\"Done\");\n\t\tbtnStop.setVisible(false); // no more stop quiz since quiz is done\n\t}", "private void initQuestionDialog() {\n\t\tquestion = true;\n\t\tchangeDirBehaviour(Values.DETECT_INIT);\n\t}", "public void setQuestion(int index, String question){\n if (question == null || question.equals(\"\")) {\n System.out.println(\"Question cannot be empty.\");\n }\n else {\n questionList.set(index, question);\n }\n }", "public void hideAnswerResult() {\n hideAnswerResult(true);\n }", "private void fetchNewQuestion()\r\n\t{\r\n\t\t//Gets question and answers from model\r\n\t\tString[] question = quizModel.getNewQuestion();\r\n\t\t\r\n\t\t//Allocates answers to a new ArrayList then shuffles them randomly\r\n\t\tArrayList<String> answers = new ArrayList<String>();\r\n\t\tanswers.add(question[1]);\r\n\t\tanswers.add(question[2]);\r\n\t\tanswers.add(question[3]);\r\n\t\tanswers.add(question[4]);\r\n\t\tCollections.shuffle(answers);\r\n\t\t\r\n\t\t//Allocates north label to the question\r\n\t\tnorthLabel.setText(\"<html><div style='text-align: center;'>\" + question[0] + \"</div></html>\");\r\n\t\t\r\n\t\t//Allocates each radio button to a possible answer. Based on strings, so randomly generated questions...\r\n\t\t//...which by chance repeat a correct answer in two slots, either will award the user a point.\r\n\t\toption1.setText(answers.get(0));\r\n\t\toption2.setText(answers.get(1));\r\n\t\toption3.setText(answers.get(2));\r\n\t\toption4.setText(answers.get(3));\r\n\t\toption1.setActionCommand(answers.get(0));\r\n\t\toption2.setActionCommand(answers.get(1));\r\n\t\toption3.setActionCommand(answers.get(2));\r\n\t\toption4.setActionCommand(answers.get(3));\r\n\t\toption1.setSelected(true);\r\n\t\t\r\n\t\t//Update score\r\n\t\tscoreLabel.setText(\"<html><div style='text-align: center;'>\" + \"Score = \" + quizModel.getScore() + \"</div></html>\");\r\n\t}", "public void setQuestions() {\n\t\tString question1 = str1 + _QwdQuestionFst;\n\t\tSpannableString sb1 = new SpannableString(question1);\n\t\tsb1.setSpan(new ForegroundColorSpan(Color.BLACK), str1.length() ,\n\t\t\t\tsb1.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_1.setText(sb1);\n\n\t\tString question2 = str2 + _QwdQuestionSec;\n\t\tSpannableString sb2 = new SpannableString(question2);\n\t\tsb2.setSpan(new ForegroundColorSpan(Color.BLACK), str2.length() ,\n\t\t\t\tsb2.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_2.setText(sb2);\n\t}", "@Override\n public void setQuestion(Question question) {\n super.setQuestion(question);\n\n options = ((MultipleChoiceQuestionResponse) question.getCorrectAnswer()).getChoices();\n for (int i = 0; i < options.size(); i ++) {\n String option = options.get(i);\n RadioButton button = new RadioButton(option);\n button.setToggleGroup(group);\n\n button.setLayoutY(i * 30);\n choices.getChildren().add(button);\n }\n }", "public JLabel getQuestionLbl() {\r\n\t\treturn questionLbl;\r\n\t}", "private void updateQuestion(){\n mchoice1.setChecked(false);\n mchoice2.setChecked(false);\n mchoice3.setChecked(false);\n mchoice4.setChecked(false);\n\n if (mQuestonNumber < mQuizLibrary.getLength()){\n //menset setiap textview dan radiobutton untuk diubah jadi pertanyaan\n sQuestion.setText(mQuizLibrary.getQuestion(mQuestonNumber));\n //mengatur opsi sesuai pada optional A\n mchoice1.setText(mQuizLibrary.getChoice(mQuestonNumber, 1)); //Pilihan Ganda ke 1\n //mengatur opsi sesuai pada optional B\n mchoice2.setText(mQuizLibrary.getChoice(mQuestonNumber, 2)); //Pilihan Ganda ke 2\n //mengatur opsi sesuai pada optional C\n mchoice3.setText(mQuizLibrary.getChoice(mQuestonNumber, 3)); //Pilihan Ganda ke 3\n //mengatur opsi sesuai pada optional D\n mchoice4.setText(mQuizLibrary.getChoice(mQuestonNumber, 4)); //Pilihan Ganda ke 4\n\n manswer = mQuizLibrary.getCorrect(mQuestonNumber);\n //untuk mengkoreksi jawaban yang ada di class QuizBank sesuai nomor urut\n mQuestonNumber++; //update pertanyaan\n }else{\n Toast.makeText(Quiz.this, \"ini pertanyaan terakhir\", Toast.LENGTH_LONG).show();\n Intent i = new Intent (Quiz.this, HighestScore.class);\n i.putExtra(\"score\", mScore); //UNTUK MENGIRIM NILAI KE activity melalui intent\n startActivity(i);\n }\n }", "private void removeQuestion(){\n\t\tif(questionText != null){\n\t\t\tquestionBox.remove(questionText);\n\t\t\tquestionBox.reDraw();\n\t\t}\n\t}", "public void showQuestion(int i) {\n i--;\n VocabularyQuiz question = gui.getQuiz().viewQuiz(i);\n JLabel header = new JLabel(\"Question\" + (i + 1));\n gui.getConstraints().insets = new Insets(10, 10,40,10);\n header.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 28));\n gui.getConstraints().gridx = 0;\n gui.getConstraints().gridy = 0;\n gui.getPanel().add(header, gui.getConstraints());\n JTextArea description = new JTextArea(\"What is meaning of \\\"\" + question.getVocabulary().getVocab() + \"\\\"?\");\n description.setEditable(false);\n description.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 18));\n gui.getConstraints().gridy = 1;\n gui.getPanel().add(description, gui.getConstraints());\n showChoices(question);\n }", "private void previousQuestion() {\n if (mCurrentIndex > 0) {\n mCurrentIndex = (mCurrentIndex - 1) % questions.length;\n }\n else\n mCurrentIndex = questions.length - 1;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }", "@Override\n public void resetQuestion() {\n super.resetQuestion();\n hadSecondChance = false;\n currentTeam = null;\n originalTeam = null;\n teamHasAnswered.clear();\n //reset teamHasAnswered map so all teams get a chance to anaswer again\n for (int i = 0; i < numTeams; i++) teamHasAnswered.put(i, false);\n }", "public void setNumNewQuestions() {\n\t\tif(newQuestions && checkNewQuestions().equals(\"\")) {\n\t\t\tanswerChoiceList.setSelectedIndex(2);\n\t\t}\n\t\tif(newQuestions && questionNo == noOfQuestions) {\n\t\t\tnewQuestions = false;\n\t\t}\n\t}", "private void setVisibility( int answer_visibility )\n {\n int yes_no_visibility = View.VISIBLE;\n\n if ( answer_visibility == View.VISIBLE )\n {\n yes_no_visibility = View.INVISIBLE;\n }\n\n TextView question = (TextView) findViewById( R.id.question );\n question.setVisibility( yes_no_visibility );\n\n ImageView butterfly_icon = (ImageView) findViewById( R.id.butterfly_icon );\n \n if ( yes_no_visibility == View.VISIBLE )\n {\n ((AnimationDrawable) butterfly_icon.getBackground()).start();\n }\n else\n {\n ((AnimationDrawable) butterfly_icon.getBackground()).stop();\n }\n\n butterfly_icon.setVisibility( yes_no_visibility );\n\n ImageView caterpillar_icon = (ImageView) findViewById( R.id.caterpillar_icon );\n \n if ( yes_no_visibility == View.VISIBLE )\n {\n caterpillar_icon.startAnimation( caterpillar_icon_animation );\n }\n else\n {\n caterpillar_icon_animation.cancel();\n caterpillar_icon.clearAnimation();\n }\n\n caterpillar_icon.setVisibility(yes_no_visibility);\n\n TextView answer = (TextView) findViewById( R.id.answer );\n answer.setVisibility(answer_visibility);\n\n ImageView answer_rectangle = (ImageView) findViewById( R.id.answer_rectangle );\n answer_rectangle.setVisibility(answer_visibility);\n }", "private static JPanel setAnswersText(Question question, copyRightGUI gui, ArrayList<Question> questionsList){\n JLabel label = new JLabel(); // Used for the final determination question\n JLabel optPermissionLaber = new JLabel(); // If asking for permission is preferred, display text\n\n // If the buttons array was previously filled, clear it\n if (buttons != null) {\n for (JButton btn : buttons\n ) {\n if (btn != null) {\n questionsPanel.remove(btn);\n }\n }\n }\n\n // create a new panel for the questions\n questionsPanel = new JPanel();\n\n // Create a new array with the specific amount of buttons needed\n buttons = new JButton[question.getNumAnswers()];\n\n // For the last question\n if (question.getQuestion().equals(\"Final Determination\")){\n\n if (totalScore > THRESHOLD) {\n label.setText(\"Fair use suggested\");\n label.setForeground(Color.GREEN);\n questionsPanel.add(label);\n if (askingPermsPref){\n optPermissionLaber.setText(\"...but asking for permission is preferred\");\n questionsPanel.add(optPermissionLaber);\n }\n } else {\n label.setText(\"Fair use not suggested\");\n label.setForeground(Color.red);\n questionsPanel.add(label);\n }\n return questionsPanel;\n }\n\n\n // For loop which adds buttons to the panel and creates their actions\n for (int i = 0; i < question.getNumAnswers(); i++){\n buttons[i] = new JButton(question.getAnswer(i));\n questionsPanel.updateUI();\n questionsPanel.add(buttons[i]);\n\n int selectedAnswer = i; // set the selected answer of the question\n\n // Add an actionListener for every question\n buttons[i].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n question.setSelectedAnswer(selectedAnswer);\n // Create a temporary question which will hold the previous question data\n Question tempQuest;\n\n // Check if the quesiton has a special case and act correspondingly\n switch (question.getSpecialCase()){\n case 0:\n case 4:\n if (question.getScore() > 0){\n totalScore += question.getScore();\n scoreStack.push(question.getScore());\n }\n break;\n case 1:\n tempQuest = questionStack.peek();\n if ((tempQuest.getSelectedAnswer() == 0 && question.getSelectedAnswer() == 1)){\n scoreStack.push(20);\n totalScore+= 20;\n } else if (tempQuest.getSelectedAnswer() == 1 && question.getSelectedAnswer() == 0) {\n scoreStack.push(20);\n totalScore+=20;\n askingPermsPref = true;\n } else if (tempQuest.getSelectedAnswer() == 1 && question.getSelectedAnswer() == 1){\n scoreStack.push(40);\n totalScore+= 40;\n } else if (tempQuest.getSelectedAnswer() == 0 && question.getSelectedAnswer() == 0){\n scoreStack.push(0);\n }\n break;\n case 2:\n tempQuest = questionStack.peek();\n if (tempQuest.getSelectedAnswer() == 0 && question.getSelectedAnswer() == 0){\n scoreStack.push(10);\n totalScore+=10;\n } else if (tempQuest.getSelectedAnswer() == 0 && question.getSelectedAnswer() == 1){\n scoreStack.push(0);\n } else if (tempQuest.getSelectedAnswer() == 1 && question.getSelectedAnswer() == 0){\n scoreStack.push(40);\n totalScore+=40;\n } else if (tempQuest.getSelectedAnswer() == 1 && question.getSelectedAnswer() == 1){\n for (int k = 0; k < questionsList.size(); k++){\n if (questionsList.get(k).getQuestion().equals(\"Is gaining permission to use the film available?\")){\n gui.revalidate();\n loadQuestion(questionsList, gui, k);\n gui.revalidate();\n return;\n }\n\n }\n break;\n }\n break;\n case 3:\n try {\n Desktop.getDesktop().browse(new URL(\"https://creativecommons.org/licenses/\").toURI());\n } catch (Exception r) {\n System.out.println(\"Something went wrong with opening the link. Make sure the link\"\n + \"exists and is still valid\");\n r.printStackTrace();\n }\n break;\n case 5:\n if (question.getScore() > 0){\n totalScore += question.getScore();\n scoreStack.push(question.getScore());\n }\n if (question.getSelectedAnswer() == 0) {\n askingPermsPref = true;\n }\n default:\n break;\n\n }\n\n // testing purposes\n //System.out.println(question.getNextQuestion());\n\n // load the next question\n loadNextQuestion(question, questionsList, gui);\n\n\n }\n });\n }\n\n // return questionPanel which contains a panel with buttons\n return questionsPanel;\n }", "@Override\n public final void activateQuestion(final GameQuestion question) {\n this.activeQuestion = question;\n fireActiveQuestionUpdate();\n }", "private void updateQuestion() {\n\n if (attempts < 10) { //To ensure only 10 questions are shown.\n Question.setText(quizQuestions.getQuestion(questionNumber));\n Answer1.setText(quizQuestions.getChoice1(questionNumber));\n Answer2.setText(quizQuestions.getChoice2(questionNumber));\n Answer3.setText(quizQuestions.getChoice3(questionNumber));\n Answer4.setText(quizQuestions.getChoice4(questionNumber));\n QuestionNo.setText(quizQuestions.getQuestionNo(questionNumber));\n }\n\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n// String s = quizQuestions.getHint(questionNumber - 1);\n showFlashcardDialog(QuizActivity.this, quizQuestions.getHint(questionNumber - 1), true);\n\n }\n });\n\n //Checks with QuizQuestions class to see if answer was correct\n correctAnswer = quizQuestions.getCorrectAnswer(questionNumber);\n\n //Finishes the quiz once 10 questions have been answered\n if (attempts == 10) {\n finish();\n updateScore(mScore);\n Intent results = new Intent(getApplicationContext(), QuizComplete.class); //Starts QuizComplete activity\n results.putExtra(TRANSFER_SCORE, mScore); //Transfers score to show at QuizComplete activity\n startActivity(results);\n\n } else {\n questionNumber++;\n }\n\n if (mScore > highScore) {\n updateHighScore(mScore);\n }\n }", "public void modifyQuestion(String text) {\n // TODO implement here\n }", "public DecideQuestion(){\n\t\tsuper(0); /** call relation -> PromptQuestion.java */\n\t}", "public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}", "public void showAnswerResult(Answer answer) {\n imgCenter.setVisible(true);\n imgCenter.invalidate();\n \n buttonOptionA.setEnabled(false);\n buttonOptionB.setEnabled(false);\n buttonOptionBoth.setEnabled(false);\n \n // Refresh in thread\n SwingUtilities.invokeLater(new Runnable() {\n \n @Override\n public void run() { \n imgCenter.repaint();\n }\n \n });\n \n int answerDuration = 1000;\n if (challengeModel.getChallenge().getQuestionsList().get(challengeModel.getChallenge().getCurrentQuestionNumber()-1).getAnswer() != answer) {\n answerDuration = 10000;\n buttonDismiss.setVisible(true);\n }\n \n // Timer for next answer\n timerAnswer = new Timer(answerDuration, new ActionListener() {\n \n @Override\n public void actionPerformed(ActionEvent event) {\n hideAnswerResult();\n }\n\n });\n \n timerAnswer.setRepeats(false);\n timerAnswer.start();\n if (challengeModel.getChallenge() instanceof ChallengeHard)\n labelTimeQuestion.setText(\"15\");\n }", "public TextField getQuestion() {\r\n\t\tquestion.setPromptText(\"question\");\r\n\t\treturn question;\r\n\t}", "public void switchToPause ()\n {\n timer.setPaused (true);\n questionLabel.setText (\"<html><br>You have paused the game!\"+\n \"<br>To continue, please press the pause button again!\"+\n \"<br>~^_^~</html>\");\n a.setVisible(false);\n b.setVisible(false);\n c.setVisible(false);\n d.setVisible(false);\n repaint ();\n revalidate ();\n }", "public void setTestQuestion(java.lang.String testQuestion) {\r\n this.testQuestion = testQuestion;\r\n }", "public AddQuestion() {\n initComponents();\n setResizable(false);\n }", "public void setFeedback(String feedback) {\n\t\tthis.feedback = feedback;\n\t}", "public static void hitQuiz()\n\t{\n\t\tQuestion q = Home.questionList.get((int)(Math.random()*Home.questionList.size()));\n\t\tQuizQuestion q1= new QuizQuestion(q);\n\t\tq1.setAlwaysOnTop(true);\n\t\tq1.setVisible(true);\n\t\tsuspend();\n\t}", "public void configSurvey() {\n if (isTest) {\n this.o.setDisplay(\"Please enter name for test: \");\n } else {\n this.o.setDisplay(\"Please enter name for survey \");\n }\n this.o.getDisplay();\n this.survey.setName(this.in.getUserInput());\n }", "public QuizScreen() {\n initComponents();\n this.setSize(400,450);\n //initialize variables\n obj = new QuestionObj();\n objArr = new ArrayList<>();\n randomizedQuestion = new String[10];\n counter = 0;\n userAnswer = new String[10];\n btntrack = 0;\n random = 0;\n rand = new Random();\n CompPlays = 1;\n message = \"\";\n //set unneeded screen components to invisible\n Submitbtn.setVisible(false);\n Savebtn.setVisible(false);\n Nametf.setVisible(false);\n }", "public void setAnswer(String answer) {\r\n this.answer = answer;\r\n }", "private void nextQuestion() {\n mCurrentIndex = (mCurrentIndex + 1) % questions.length;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }", "public void effacerDiscussion() {\n discussion.setText(\"\");\n }", "public static boolean QuestionVisible(){\r\n\t return (question.getText().equalsIgnoreCase(\"How would you rate your satisfaction with this website?\"));\t\r\n\t}", "private void giveHint(String hint) {\n JOptionPane.showMessageDialog(frame, hint, \"Hint\", JOptionPane.INFORMATION_MESSAGE);\n }", "public Question getQuestion() {\n\t\treturn questionToAsk;\n\t}", "private void updateQuestion(boolean b) {\n\t\t// if b is true, then the yes button is pressed\n\t\tif (b) {\n\t\t\t// if there is a left child to the current question\n\t\t\tif (currentQuestion.getLeftChild() != null) {\n\t\t\t\t// if the left child is not a leaf\n\t\t\t\tif (!currentQuestion.getLeftChild().isLeaf()) {\n\t\t\t\t\t// set the text of the question JLabel to be the data of\n\t\t\t\t\t// left child of the current question\n\t\t\t\t\tquestion.setText(currentQuestion.getLeftChild().getData());\n\t\t\t\t\t// update the current question to be its left child\n\t\t\t\t\tcurrentQuestion = currentQuestion.getLeftChild();\n\t\t\t\t}\n\t\t\t\t// if the left child is a leaf\n\t\t\t\telse {\n\t\t\t\t\t// set the text to let the user know the answer\n\t\t\t\t\tquestion.setText(\"I got it! The character is \"\n\t\t\t\t\t\t\t+ currentQuestion.getLeftChild().getData() + \"!\");\n\t\t\t\t\t// update the current question to be its left child\n\t\t\t\t\tcurrentQuestion = currentQuestion.getLeftChild();\n\t\t\t\t\t// create a pop up JOptionPane to restart the game\n\t\t\t\t\tint result = JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\t\t\"Would you like to play again?\", \"I won!\",\n\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION);\n\t\t\t\t\tif (result == JOptionPane.YES_OPTION) {\n\t\t\t\t\t\trestart();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// if b is true, then the no button is pressed\n\t\telse {\n\t\t\t// if there is a right child to the current question\n\t\t\tif (currentQuestion.getRightChild() != null) {\n\t\t\t\t// if the right child is not a leaf\n\t\t\t\tif (!currentQuestion.getRightChild().isLeaf()) {\n\t\t\t\t\t// set the text of the question JLabel to be the data of\n\t\t\t\t\t// right child of the current question\n\t\t\t\t\tquestion.setText(currentQuestion.getRightChild().getData());\n\t\t\t\t\t// update the current question to be its right child\n\t\t\t\t\tcurrentQuestion = currentQuestion.getRightChild();\n\t\t\t\t}\n\t\t\t\t// if the right child is a leaf\n\t\t\t\telse {\n\t\t\t\t\t// set the text to let the user know the answer\n\t\t\t\t\tquestion.setText(\"I got it! The character is \"\n\t\t\t\t\t\t\t+ currentQuestion.getRightChild().getData() + \"!\");\n\t\t\t\t\t// update the current question to be its right child\n\t\t\t\t\tcurrentQuestion = currentQuestion.getRightChild();\n\t\t\t\t\t// create a pop up JOptionPane to restart the game\n\t\t\t\t\tint result = JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\t\t\"Would you like to play again?\", \"I won!\",\n\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION);\n\t\t\t\t\tif (result == JOptionPane.YES_OPTION) {\n\t\t\t\t\t\trestart();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setQuestions(Vector<Question> q){\n\t\t\tquestions = q;\n\t\t}", "private void answerResultAlert(String feedback){\n AlertDialog.Builder showResult = new AlertDialog.Builder(this);\n\n showResult.setTitle(feedback);\n showResult.setMessage(currentQuestion.getExplanation());\n showResult.setCancelable(false); //if this is not set, the user may click outside the alert, cancelling it. no cheating this way\n showResult.setNeutralButton(\"ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n //only when the ok is clicked will continue to run the program\n setUpQuestions();\n }\n });\n showResult.create();\n showResult.show();\n }", "public void drawQuestion(){\n\t\tfont.draw(batch, ques, screenWidth / 5 , 75 );\n\t}", "public QuestionPaper() {\n initComponents();\n setText();\n }", "public void SetUpQuestion(QuestionModel questionMod) {\n unEditedQuestion = questionMod;\n check = true;\n questionName.setText(questionMod.getQuestionName());\n question.setText(questionMod.getQuestion());\n subjects.setValue(questionMod.getSubject());\n className.setValue(questionMod.getClassNumber());\n answer.setText(questionMod.getQuestionHelper().getAnswer());\n points.setText(Integer.toString(questionMod.getPointsPossible()));\n hint.setText(questionMod.getHint());\n if(questionMod.getDifficulty() == 1)\n easy.setSelected(true);\n else if(questionMod.getDifficulty() == 2)\n medium.setSelected(true);\n else if(questionMod.getDifficulty() == 3)\n hard.setSelected(true);\n }", "@Override\r\n public void display() {\n super.display();\r\n System.out.println(\"You can choose one of the correct answers!\");\r\n }", "private void initialize(ReadYaml quiz) {\r\n\t\tString title = \"Score: \" + TestGui.SCORE + \"/\" + TestGui.ATTEMPTS + \" - \" + quiz.getTitle();\r\n\t\tfrmMultipleChoiceQuestion = new JDialog(null, title, Dialog.ModalityType.APPLICATION_MODAL);\r\n\t\tfrmMultipleChoiceQuestion.setLocationRelativeTo(null);\r\n\t\tfrmMultipleChoiceQuestion.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\r\n\t\tGridBagLayout gridBagLayout = new GridBagLayout();\r\n\t\tfrmMultipleChoiceQuestion.getContentPane().setLayout(gridBagLayout);\r\n\r\n\t\t// This is the question\r\n\t\tString question = \"<html>\"+quiz.getQuestion().replaceAll(\"(\\r\\n|\\n)\", \"<br />\")+\"</html>\";\r\n\t\tJLabel label = new JLabel(question);\r\n\t\tGridBagConstraints gbc_label = new GridBagConstraints();\r\n\t\tgbc_label.gridx = 0;\r\n\t\tgbc_label.gridy = 0;\r\n\t\tfrmMultipleChoiceQuestion.getContentPane().add(label, gbc_label);\r\n\r\n\t\t// These are the answers\r\n\t\tint i=0;\r\n\t\tfor (String s : quiz.getAnswers()) {\r\n\t\t\trdbtnAnswers.add(new JRadioButton(s));\r\n\t\t\trdbtnAnswers.get(i).setActionCommand(String.valueOf(i));\r\n\t\t\tbuttonGroup.add(rdbtnAnswers.get(i));\r\n\t\t\tgbc_rdbtnAnswers.add(new GridBagConstraints());\r\n\t\t\tgbc_rdbtnAnswers.get(i).anchor = GridBagConstraints.WEST;\r\n\t\t\tgbc_rdbtnAnswers.get(i).gridx = 0;\r\n\t\t\tgbc_rdbtnAnswers.get(i).gridy = i+1;\r\n\t\t\tfrmMultipleChoiceQuestion.getContentPane().add(rdbtnAnswers.get(i), gbc_rdbtnAnswers.get(i));\r\n\t\t\ti++;\r\n\t\t}\r\n\t\ti++;\r\n\t\t// Confirm button\r\n\t\tJButton btnConfirm = new JButton(\"Confirm\");\r\n\t\tbtnConfirm.addActionListener(new Confirm());\r\n\t\tGridBagConstraints gbc_btnConfirm = new GridBagConstraints();\r\n\t\tgbc_btnConfirm.gridx = 0;\r\n\t\tgbc_btnConfirm.gridy = i;\r\n\t\tfrmMultipleChoiceQuestion.getContentPane().add(btnConfirm, gbc_btnConfirm);\r\n\r\n\t\t// Hint button, will only be displayed if there is a hint\r\n\t\tif (quiz.getHintText() != null || quiz.getHintImage() != null) {\r\n\t\t\tJButton btnHint = new JButton(\"Hint\");\r\n\t\t\tbtnHint.addActionListener(new Hint(quiz));\r\n\t\t\tGridBagConstraints gbc_btnHint = new GridBagConstraints();\r\n\t\t\tgbc_btnHint.gridx = 1;\r\n\t\t\tgbc_btnHint.gridy = i;\r\n\t\t\tfrmMultipleChoiceQuestion.getContentPane().add(btnHint, gbc_btnHint);\r\n\t\t}\r\n\t\t// Citation button\r\n\t\tif (quiz.getAuthor() != null && quiz.getUrl() != null) {\r\n\t\t\tbtnCitation = new JButton(\"Citation\");\r\n\t\t\tbtnCitation.addActionListener(new Citation(quiz));\r\n\t\t\tGridBagConstraints gbc_btnCitation = new GridBagConstraints();\r\n\t\t\tgbc_btnCitation.gridx = 2;\r\n\t\t\tgbc_btnCitation.gridy = i;\r\n\t\t\tfrmMultipleChoiceQuestion.getContentPane().add(btnCitation, gbc_btnCitation);\r\n\t\t}\r\n\t}", "public void setQuestionID(int questionID) {\n this.questionID = questionID;\n }", "private void populateQuestion(String tempQuestionText) {\n\n\t\t// set them to radio options\n\t\tquestionTextView.setText(tempQuestionText);\n\n\t}", "public static void changeQuestion(int qid, String username) {\n\t\t\tboolean flag = false;\n\t\t\tString a2 = null;\n \t\tint d = 0;\n\t\t\tdo {\n\t\t\t\ttry {\n\t\t\t\t\tif ((qid <= 12) || (qid == 14)) {\n\t\t\t\t\t\ta2 = JOptionPane.showInputDialog(null, qid + \" Update your answer\", \"QUESTIONNAIRE\", JOptionPane.PLAIN_MESSAGE);\n \t\t\t\tflag = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\td = JOptionPane.showConfirmDialog(null, qid + \" Update your answer\", \"QUESTIONNAIRE\", JOptionPane.YES_NO_OPTION,JOptionPane.PLAIN_MESSAGE);\n \t\t\t\ta2 = String.valueOf(d);\n \t\t\tflag = true;\n \t\t\t} \n \t\t\tif (a2.equals(null) || (d == -1)) {\n \t\t\t\tthrow new NullPointerException();\n \t\t\t}\n \t\t} catch (NullPointerException e1) {\n \t\t\tJOptionPane.showMessageDialog(null, \"Please insert your answer\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n \t\t\tflag = false;\n \t\t}\n \t\t}while (flag == false);\n\t\t\tif (checkQuestion(qid, a2) == false) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"We regret to inform you that you are no longer compatible as a blood donor.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\tSystem.exit(0);\n\t\t\t} else {\n\t\t\t\tupdateTableAnswers(qid, username, a2);\n\t\t\t}\n\t\t\t\n\t\t\treturn;\t\n\t\t}", "public void setOkToCancelQuestion(String string) {\r\n\t\t_okToCancelQuestion = string;\r\n\t}" ]
[ "0.7529804", "0.69683236", "0.68792", "0.6827371", "0.671076", "0.6648959", "0.65287894", "0.6475818", "0.64742345", "0.6460878", "0.6454097", "0.6328194", "0.6304639", "0.6255415", "0.6230311", "0.6215318", "0.6201361", "0.6182756", "0.6172884", "0.6136142", "0.6125653", "0.61086154", "0.60707915", "0.60701394", "0.6062942", "0.6045504", "0.5971461", "0.5954093", "0.593209", "0.5913193", "0.59033215", "0.5855715", "0.58546513", "0.5830996", "0.5795687", "0.57880497", "0.57825184", "0.5774535", "0.5769585", "0.5766306", "0.57551336", "0.5737861", "0.5721639", "0.5720893", "0.57075435", "0.56624633", "0.56434894", "0.56204593", "0.56184214", "0.5609243", "0.5607363", "0.5606897", "0.5604193", "0.5596351", "0.5590675", "0.55803937", "0.5549122", "0.55446935", "0.5539196", "0.5534468", "0.5532766", "0.55228245", "0.5515482", "0.55121136", "0.55023736", "0.54976326", "0.54943013", "0.5477176", "0.54567105", "0.54444987", "0.5439695", "0.5439088", "0.5433551", "0.5429478", "0.54255575", "0.5420289", "0.541658", "0.541651", "0.5411143", "0.5404995", "0.53769463", "0.5376139", "0.53751844", "0.5370093", "0.536801", "0.5365675", "0.53636324", "0.53601843", "0.5358328", "0.5357158", "0.53442335", "0.5343321", "0.5343316", "0.533345", "0.5315278", "0.53105086", "0.5305815", "0.5298931", "0.52974266", "0.5296201" ]
0.7929057
0
Shuffles the destination buttons in a random order. If statements determine which arrangement should be used. Local variables index int the new location of the correct answer.
private void shuffleButtons() { int index=(int)(Math.random()*3); if (index==1) { a.setBounds(350,500,a.getPreferredSize().height+80,30); b.setBounds(200,500,b.getPreferredSize().height+80,30); c.setBounds(500,500,c.getPreferredSize().height+80,30); } else if (index==2) { a.setBounds(500,500,a.getPreferredSize().height+80,30); c.setBounds(200,500,c.getPreferredSize().height+80,30); b.setBounds(350,500,b.getPreferredSize().height+80,30); } else { a.setBounds(200,500,a.getPreferredSize().height+80,30); b.setBounds(350,500,b.getPreferredSize().height+80,30); c.setBounds(500,500,c.getPreferredSize().height+80,30); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void shuffle() {\n\t\tint[] temp = new int[ROW];\n\t\tint row, col, decider, indexToSwapWith;\n\n\t\t// Shuffle as many we want.\n\t\tfor (int i = 0; i < SHUFFLE; i++) {\n\t\t\t// Decide which line to shuffle (ex. row or column).\n\t\t\tdecider = rand.nextInt(2);\n\n\t\t\tif (decider == 0) { // Swaps row.\n\t\t\t\trow = rand.nextInt(9);\n\n\t\t\t\tif (row < 3) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\n\t\t\t\t\t// Decides row to swap with.\n\t\t\t\t\twhile (indexToSwapWith == row) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < ROW; j++) {\n\t\t\t\t\t\ttemp[j] = answer[row][j];\n\t\t\t\t\t\tanswer[row][j] = answer[indexToSwapWith][j];\n\t\t\t\t\t\tanswer[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[row][j];\n\t\t\t\t\t\tproblem[row][j] = problem[indexToSwapWith][j];\n\t\t\t\t\t\tproblem[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else if (row < 6) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\n\t\t\t\t\twhile (indexToSwapWith == row) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int j = 0; j < ROW; j++) {\n\t\t\t\t\t\ttemp[j] = answer[row][j];\n\t\t\t\t\t\tanswer[row][j] = answer[indexToSwapWith][j];\n\t\t\t\t\t\tanswer[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[row][j];\n\t\t\t\t\t\tproblem[row][j] = problem[indexToSwapWith][j];\n\t\t\t\t\t\tproblem[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\n\t\t\t\t\twhile (indexToSwapWith == row) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int j = 0; j < ROW; j++) {\n\t\t\t\t\t\ttemp[j] = answer[row][j];\n\t\t\t\t\t\tanswer[row][j] = answer[indexToSwapWith][j];\n\t\t\t\t\t\tanswer[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[row][j];\n\t\t\t\t\t\tproblem[row][j] = problem[indexToSwapWith][j];\n\t\t\t\t\t\tproblem[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcol = rand.nextInt(9);\n\n\t\t\t\tif (col < 3) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\n\t\t\t\t\t// Decides column to swap with.\n\t\t\t\t\twhile (indexToSwapWith == col) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < COLUMN; j++) {\n\t\t\t\t\t\ttemp[j] = answer[j][col];\n\t\t\t\t\t\tanswer[j][col] = answer[j][indexToSwapWith];\n\t\t\t\t\t\tanswer[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[j][col];\n\t\t\t\t\t\tproblem[j][col] = problem[j][indexToSwapWith];\n\t\t\t\t\t\tproblem[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else if (col < 6) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\n\t\t\t\t\t// Decides column to swap with.\n\t\t\t\t\twhile (indexToSwapWith == col) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < COLUMN; j++) {\n\t\t\t\t\t\ttemp[j] = answer[j][col];\n\t\t\t\t\t\tanswer[j][col] = answer[j][indexToSwapWith];\n\t\t\t\t\t\tanswer[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[j][col];\n\t\t\t\t\t\tproblem[j][col] = problem[j][indexToSwapWith];\n\t\t\t\t\t\tproblem[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\n\t\t\t\t\t// Decides column to swap with.\n\t\t\t\t\twhile (indexToSwapWith == col) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < COLUMN; j++) {\n\t\t\t\t\t\ttemp[j] = answer[j][col];\n\t\t\t\t\t\tanswer[j][col] = answer[j][indexToSwapWith];\n\t\t\t\t\t\tanswer[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[j][col];\n\t\t\t\t\t\tproblem[j][col] = problem[j][indexToSwapWith];\n\t\t\t\t\t\tproblem[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void shufflePositions() {\r\n\r\n // Inizializzo con il progressivo delle posizioni\r\n for (int i = 0; i < shufflePositions.length; i++) {\r\n shufflePositions[i] = i;\r\n }\r\n\r\n int lastIndex ;\r\n int tempIndex = 0;\r\n int tempVal = 0;\r\n\r\n// // Tecnica 1 - Knuth (gli indici da scambiare sono scelti dall'inizio in un insieme decrescente in cardinalità)\r\n// int lastIndex = shufflePositions.length;\r\n// for (int i = 0; i < shufflePositions.length-1; i++) {\r\n// tempIndex = i+secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n// tempVal=shufflePositions[tempIndex];\r\n// shufflePositions[tempIndex]=shufflePositions[i];\r\n// shufflePositions[i] = tempVal; \r\n// lastIndex--;\r\n// } \r\n \r\n //Tecnica 2 - Knuth GAB Modification (gli indici casuali sono scelti dal fondo in un insieme decrescente in cardinalità)\r\n lastIndex = shufflePositions.length-1;\r\n for (int i = 0; i < shufflePositions.length - 1; i++) {\r\n tempIndex = secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n tempVal = shufflePositions[tempIndex];\r\n shufflePositions[tempIndex] = shufflePositions[lastIndex];\r\n shufflePositions[lastIndex] = tempVal;\r\n lastIndex--;\r\n }\r\n \r\n// // Tecnica 3 - Algoritmo standard delle collections\r\n// Integer[]tempArray = new Integer[MaxBufferLength];\r\n// for (int i=0;i<MaxBufferLength;i++){\r\n// tempArray[i]=i;\r\n// \r\n// }\r\n// List<Integer> tempList = Arrays.asList(tempArray);\r\n//\r\n// Collections.shuffle(tempList, secureRandom);\r\n// tempArray= (Integer[]) tempList.toArray();\r\n// for (int i=0;i<shufflePositions.length;i++){\r\n// shufflePositions[i]=tempArray[i];\r\n// }\r\n }", "private void newQuestion(int number) {\n bakeImageView.setImageResource(list.get(number - 1).getImage());\n\n //decide which button to place the correct answer\n int correct_answer = r.nextInt(4) + 1;\n\n int firstButton = number - 1;\n int secondButton;\n int thirdButton;\n int fourthButton;\n\n switch (correct_answer) {\n case 1:\n answer1Button.setText(list.get(firstButton).getName());\n\n do {\n secondButton = r.nextInt(list.size());\n } while (secondButton == firstButton);\n do {\n thirdButton = r.nextInt(list.size());\n } while (thirdButton == firstButton || thirdButton == secondButton);\n do {\n fourthButton = r.nextInt(list.size());\n } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);\n\n answer2Button.setText(list.get(secondButton).getName());\n answer3Button.setText(list.get(thirdButton).getName());\n answer4Button.setText(list.get(fourthButton).getName());\n\n break;\n\n case 2:\n answer2Button.setText(list.get(firstButton).getName());\n\n do {\n secondButton = r.nextInt(list.size());\n } while (secondButton == firstButton);\n do {\n thirdButton = r.nextInt(list.size());\n } while (thirdButton == firstButton || thirdButton == secondButton);\n do {\n fourthButton = r.nextInt(list.size());\n } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);\n\n answer1Button.setText(list.get(secondButton).getName());\n answer3Button.setText(list.get(thirdButton).getName());\n answer4Button.setText(list.get(fourthButton).getName());\n\n break;\n\n case 3:\n answer3Button.setText(list.get(firstButton).getName());\n\n do {\n secondButton = r.nextInt(list.size());\n } while (secondButton == firstButton);\n do {\n thirdButton = r.nextInt(list.size());\n } while (thirdButton == firstButton || thirdButton == secondButton);\n do {\n fourthButton = r.nextInt(list.size());\n } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);\n\n answer2Button.setText(list.get(secondButton).getName());\n answer1Button.setText(list.get(thirdButton).getName());\n answer4Button.setText(list.get(fourthButton).getName());\n\n\n break;\n\n case 4:\n answer4Button.setText(list.get(firstButton).getName());\n\n do {\n secondButton = r.nextInt(list.size());\n } while (secondButton == firstButton);\n do {\n thirdButton = r.nextInt(list.size());\n } while (thirdButton == firstButton || thirdButton == secondButton);\n do {\n fourthButton = r.nextInt(list.size());\n } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);\n\n answer2Button.setText(list.get(secondButton).getName());\n answer3Button.setText(list.get(thirdButton).getName());\n answer1Button.setText(list.get(fourthButton).getName());\n\n break;\n }\n }", "public void shuffle() {\n Random rand = new Random();\n for(int i = 0; i < deck.length; i++) {\n // get random index past current index\n int randomVal = i + rand.nextInt(deck.length - i);\n // swaps randomly selected card with card at index i\n Card swap = deck[randomVal];\n deck[randomVal] = deck[i];\n deck[i] = swap;\n }\n }", "private void setOptions()\n {\n animation.start();\n\n Random rand = new Random();\n\n\n nextanswerButton = rand.nextInt(4);\n currentanswerButton = nextanswerButton;\n\n nextanswer = rand.nextInt(values.size());\n nextnotAnswer1 = rand.nextInt(values.size());\n nextnotAnswer2 = rand.nextInt(values.size());\n nextnotAnswer3 = rand.nextInt(values.size());\n\n while ((nextanswer == nextnotAnswer1 || nextanswer == nextnotAnswer2 || nextanswer == nextnotAnswer3 || nextanswer == currentanswer) || (nextnotAnswer1 == nextnotAnswer2 || nextnotAnswer1 == nextnotAnswer3) || (nextnotAnswer2 == nextnotAnswer3)) {\n nextanswer = rand.nextInt(values.size());\n nextnotAnswer1 = rand.nextInt(values.size());\n nextnotAnswer2 = rand.nextInt(values.size());\n nextnotAnswer3 = rand.nextInt(values.size());\n }\n\n currentanswer = nextanswer;\n // Text 1\n if (nextanswerButton == 0) {\n image.setBackground(ContextCompat.getDrawable(activity_gamePlay.this, values.get(nextanswer)));\n btntopLeftImage.setText(keys.get(nextanswer));\n btntopRightImage.setText(keys.get(nextnotAnswer1));\n btnbottomLeftImage.setText(keys.get(nextnotAnswer2));\n btnbottomRightImage.setText(keys.get(nextnotAnswer3));\n }\n\n // Text 2\n if (nextanswerButton == 1) {\n image.setBackground(ContextCompat.getDrawable(activity_gamePlay.this, values.get(nextanswer)));\n btntopLeftImage.setText(keys.get(nextnotAnswer1));\n btntopRightImage.setText(keys.get(nextanswer));\n btnbottomLeftImage.setText(keys.get(nextnotAnswer2));\n btnbottomRightImage.setText(keys.get(nextnotAnswer3));\n }\n\n //Text 3\n if (nextanswerButton == 2) {\n image.setBackground(ContextCompat.getDrawable(activity_gamePlay.this, values.get(nextanswer)));\n btntopLeftImage.setText(keys.get(nextnotAnswer1));\n btntopRightImage.setText(keys.get(nextnotAnswer2));\n btnbottomLeftImage.setText(keys.get(nextanswer));\n btnbottomRightImage.setText(keys.get(nextnotAnswer3));\n }\n\n //Text 4\n if (nextanswerButton == 3) {\n image.setBackground(ContextCompat.getDrawable(activity_gamePlay.this, values.get(nextanswer)));\n btntopLeftImage.setText(keys.get(nextnotAnswer1));\n btntopRightImage.setText(keys.get(nextnotAnswer2));\n btnbottomLeftImage.setText(keys.get(nextnotAnswer3));\n btnbottomRightImage.setText(keys.get(nextanswer));\n }\n }", "public void shuffle(){\r\n int randomPos;\r\n //for each card in the deck\r\n for(int i=0; i<52; i++){\r\n randomPos = getRandomPos(i);\r\n exchangeCards(i, randomPos);\r\n }\r\n topCardIndex = 0;\r\n\t}", "private void initializeAnswers(){\n // Declare a random variable for randomly changing between pictures & random text options\n rand = new Random();\n\n // Set currentanswerbutton to be between 0-3, that way the button storing the correct answer is randomized, but we have 0-3 directly map to each button for deciding which button is correct\n // btntopLeftImage == 0\n // btntopRightImage == 1\n // btnbottomLeftImage == 2\n // btnbottomRightImage == 3\n currentanswerButton = rand.nextInt(4);\n\n // Randomly select a picture's abstracted integer value from the values array and set it to the current answer, then get 3 other values that are incorrect\n currentanswer = rand.nextInt(values.size());\n currentnotAnswer1 = rand.nextInt(values.size());\n currentnotAnswer2= rand.nextInt(values.size());\n currentnotAnswer3 = rand.nextInt(values.size());\n\n // Keep picking new options until none of them are the same to avoid duplicate options\n while ((currentanswer == currentnotAnswer1 || currentanswer == currentnotAnswer2 || currentanswer == currentnotAnswer3) || (currentnotAnswer1 == currentnotAnswer2 || currentnotAnswer1 == currentnotAnswer3) || (currentnotAnswer2== currentnotAnswer3)) {\n currentnotAnswer1 = rand.nextInt(values.size());\n currentnotAnswer2 = rand.nextInt(values.size());\n currentnotAnswer3 = rand.nextInt(values.size());\n }\n\n // Now Determine which button has the correct answer stored in it from the randomly generated int \"currentanswerButton\"\n // Button 1\n if (currentanswerButton == 0) {\n // Once determined set the center of the screen's image background to be the picture that is stored in the values arraylist at index \"currentanswer\"\n image.setBackground(ContextCompat.getDrawable(activity_gamePlay.this, values.get(currentanswer)));\n // Then set the corresponding button's text to be the correct/or incorrect options accordingly\n btntopLeftImage.setText(keys.get(currentanswer));\n btntopRightImage.setText(keys.get(currentnotAnswer1));\n btnbottomLeftImage.setText(keys.get(currentnotAnswer2));\n btnbottomRightImage.setText(keys.get(currentnotAnswer3));\n\n }\n // Same concept as Button 1\n // Button 2\n if (currentanswerButton== 1) {\n image.setBackground(ContextCompat.getDrawable(activity_gamePlay.this, values.get(currentanswer)));\n btntopLeftImage.setText(keys.get(currentnotAnswer1));\n btntopRightImage.setText(keys.get(currentanswer));\n btnbottomLeftImage.setText(keys.get(currentnotAnswer2));\n btnbottomRightImage.setText(keys.get(currentnotAnswer3));\n }\n\n // Same concept as Button 1\n // Button 3\n if (currentanswerButton == 2) {\n image.setBackground(ContextCompat.getDrawable(activity_gamePlay.this, values.get(currentanswer)));\n btntopLeftImage.setText(keys.get(currentnotAnswer1));\n btntopRightImage.setText(keys.get(currentnotAnswer2));\n btnbottomLeftImage.setText(keys.get(currentanswer));\n btnbottomRightImage.setText(keys.get(currentnotAnswer3));\n }\n\n // Same concept as Button 1\n // Button 4\n if (currentanswerButton == 3) {\n image.setBackground(ContextCompat.getDrawable(activity_gamePlay.this, values.get(currentanswer)));\n btntopLeftImage.setText(keys.get(currentnotAnswer1));\n btntopRightImage.setText(keys.get(currentnotAnswer2));\n btnbottomLeftImage.setText(keys.get(currentnotAnswer3));\n btnbottomRightImage.setText(keys.get(currentanswer));\n }\n\n }", "public void shuffle();", "public static void button2(char[] shuffleList,int numberOfPresses) {\n\t\tfor (int j = 0; j < numberOfPresses; j++){\n\t\t\tchar[] tempArray = Arrays.copyOfRange(shuffleList, 0, 4);\n\t\t\tshuffleList[0] = shuffleList[4];\n\t\t\tfor (int i = 0; i < shuffleList.length-1; i++){\n\t\t\t\tshuffleList[i+1] = tempArray[i];\n\t\t\t}\n\t\t\t//System.out.println(shuffleList);\n\t\t}\n\t}", "public void shuffle() {\n\t\tCollections.shuffle(inds);\n\t}", "public static void button1(char[] shuffleList,int numberOfPresses ) {\n\t\tfor (int j = 0; j < numberOfPresses; j++){\n\t\t\tchar[] tempArray = Arrays.copyOfRange(shuffleList, 1, 5);\n\t\t\tshuffleList[4] = shuffleList[0];\n\t\t\tfor (int i = 0; i < shuffleList.length-1; i++){\n\t\t\t\tshuffleList[i] = tempArray[i];\n\t\t\t}\n\t\t\t//System.out.println(shuffleList);\n\t\t}\n\t\t\n\t}", "public void scramble(){\r\n for (int i = 0; i < data.length / 2; i++){\r\n int randomIndex1 = (int)(Math.random()*(data.length - 1));\r\n int randomIndex2 = (int)(Math.random()*(data.length - 1));\r\n swap(randomIndex1, randomIndex2);\r\n }\r\n }", "void shuffle();", "void shuffle();", "private void shuffleOrder() {\n\t\t// Simple shuffle: swap each piece with some other one\n\t\tfor (int i = 0; i < order.size(); i++) {\n\t\t\tint j = (int) (Math.random() * order.size());\n\t\t\tInteger pi = order.get(i);\n\t\t\torder.set(i, order.get(j));\n\t\t\torder.set(j, pi);\n\t\t}\n\t}", "public void shuffle(){\n //After shuffling dealing starts at deck[0] again\n currentCard = 0;\n //for each card , pick another random card and swap them\n for(int first = 0; first < deck.length; first++){\n int second = randomNumbers.nextInt(NUMBER_OF_CARDS);\n\n //Swap Method to swap current card with randomly selected card\n Card temp = deck[first];\n deck[first] = deck[second];\n deck[second] = temp;\n }\n }", "public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }", "public void shuffle() {\n\t\tfor (int i = 51; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tint temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcurrentPosition = 0;\n\t}", "public boolean shuffleNeeded();", "public void shuffle() {\n\t\tRandom random = new Random();\n\t\tint dealtCards = this.dealtCards.get();\n\t\tfor (int i = dealtCards; i < Deck.DECK_SIZE; i++) {\n\t\t\t// Obtain random position for available cards.\n\t\t\tint randomNumber = dealtCards + random.nextInt((Deck.DECK_SIZE - dealtCards));\n Card tempCard = cards.get(i);\n // Swap cards position.\n cards.set(i, cards.get(randomNumber));\n cards.set(randomNumber, tempCard);\n }\n\t}", "public static void button3 (char[] shuffleList,int numberOfPresses) {\n\t\tfor (int j = 0; j < numberOfPresses; j++){\n\t\t\tchar first = shuffleList[0];\n\t\t\tchar second = shuffleList[1];\n\t\t\tshuffleList[0] = second;\n\t\t\tshuffleList[1] = first;\n\t\t\t//System.out.println(shuffleList);\n\t\t}\n\t}", "public void AiChoice(){\r\n \t\t/* \r\n\t \tint [][]box;\r\n\t \t\r\n\t \tfor (int x=0; x<3; x++) {\r\n \t\t\tfor (int y=0; y<3; y++) {\r\n \t\t\t\tbox[x][y]=buttons[x][y].getValue();\r\n \t\t\t\t\r\n \t\t\t}\r\n\t \t}\r\n\t\t */\r\n\t\t// message.setText(Integer.toString(clicks));\r\n\t\t// clicks++;\r\n\t\t// message.setText(Integer.toString(clicks));\r\n\t\t\r\n\t\t \r\n\t\t \r\n\t\t //////////////////////////////////////patterns\r\n\t\t if(clicks==1) {\r\n\t\t\t pattern = 1;\r\n\t \tbuttons[0][0].setText(\"O\");\r\n buttons[0][0].setForeground(Color.black);\r\n buttons[0][0].setValue(1);\r\n buttons[0][0].setState(true); \r\n \r\n return;\r\n\t\t }\r\n\t\t \r\n \r\n\t\t if(clicks==2) {\r\n\t\t\t\r\n\t\t\t if (buttons[1][1].getValue()==0) {\r\n\t\t\t\t buttons[1][1].setText(\"O\");\r\n\t\t buttons[1][1].setForeground(Color.black);\r\n\t\t buttons[1][1].setValue(1);\r\n\t\t buttons[1][1].setState(true);\r\n\t\t pattern = 20; \r\n\t\t\t \t}\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][0].setText(\"O\");\r\n\t\t buttons[0][0].setForeground(Color.black);\r\n\t\t buttons[0][0].setValue(1);\r\n\t\t buttons[0][0].setState(true); \r\n\t\t pattern = 20;\r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t if(pattern == 1) {\r\n\t\t\t if (buttons[0][1].getValue()==-1 || buttons[0][1].getValue()==-1) {\r\n\t\t\t\t buttons[1][1].setText(\"O\");\r\n\t\t buttons[1][1].setForeground(Color.black);\r\n\t\t buttons[1][1].setValue(1);\r\n\t\t buttons[1][1].setState(true);\r\n\t\t pattern = 3; \r\n\t\t\t \t}\r\n\t\t\t else if(buttons[2][2].getValue()==0) {\r\n\t\t\t\t buttons[2][2].setText(\"O\");\r\n\t\t buttons[2][2].setForeground(Color.black);\r\n\t\t buttons[2][2].setValue(1);\r\n\t\t buttons[2][2].setState(true); \r\n\t\t pattern = 5;\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t buttons[2][0].setForeground(Color.black);\r\n\t\t buttons[2][0].setValue(1);\r\n\t\t buttons[2][0].setState(true); \r\n\t\t\t\t pattern=4;\r\n\t\t\t\t \r\n\t\t\t }\r\n\r\n\t\t\t return;\t \r\n\t \t }\r\n\t\t \r\n\t\t if(pattern == 3) {\r\n\t\t\t \r\n\t\t\t if(buttons[2][2].getValue()==0) {\r\n\t\t\t\t buttons[2][2].setText(\"O\");\r\n\t\t buttons[2][2].setForeground(Color.black); ////win\r\n\t\t buttons[2][2].setValue(1);\r\n\t\t buttons[2][2].setState(true); \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t if (buttons[0][1].getValue()==-1) {\r\n\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t buttons[2][0].setForeground(Color.black);\r\n\t\t buttons[2][0].setValue(1);\r\n\t\t buttons[2][0].setState(true); \r\n\t\t\t\t pattern=6; \r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t buttons[0][2].setForeground(Color.black);\r\n\t\t buttons[0][2].setValue(1);\r\n\t\t buttons[0][2].setState(true); \r\n\t\t pattern = 7; \r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t if(pattern == 6) {\r\n\t\t\t if (buttons[1][0].getValue()==0) {\r\n\t\t\t\t buttons[1][0].setText(\"O\");\r\n\t\t buttons[1][0].setForeground(Color.black); /////Win\r\n\t\t buttons[1][0].setValue(1);\r\n\t\t buttons[1][0].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t buttons[0][2].setForeground(Color.black); /////Win\r\n\t\t buttons[0][2].setValue(1);\r\n\t\t buttons[0][2].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t if(pattern == 7) {\r\n\t\t\t if (buttons[2][0].getValue()==0) {\r\n\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t buttons[2][0].setForeground(Color.black); /////Win\r\n\t\t buttons[2][0].setValue(1);\r\n\t\t buttons[2][0].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][1].setText(\"O\");\r\n\t\t buttons[0][1].setForeground(Color.black); /////Win\r\n\t\t buttons[0][1].setValue(1);\r\n\t\t buttons[0][1].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t if(pattern == 4) {\r\n\t\t\t if (buttons[1][0].getValue()==0) {\r\n\t\t\t\t buttons[1][0].setText(\"O\");\r\n\t\t buttons[1][0].setForeground(Color.black); /////Win\r\n\t\t buttons[1][0].setValue(1);\r\n\t\t buttons[1][0].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t buttons[0][2].setForeground(Color.black); \r\n\t\t buttons[0][2].setValue(1);\r\n\t\t buttons[0][2].setState(true); \r\n\t\t\t\t pattern = 8;\r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t if(pattern == 8) {\r\n\t\t\t if (buttons[1][1].getValue()==0) {\r\n\t\t\t\t buttons[1][1].setText(\"O\");\r\n\t\t buttons[1][1].setForeground(Color.black); /////Win\r\n\t\t buttons[1][1].setValue(1);\r\n\t\t buttons[1][1].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][1].setText(\"O\");\r\n\t\t buttons[0][1].setForeground(Color.black); /////Win\r\n\t\t buttons[0][1].setValue(1);\r\n\t\t buttons[0][1].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t if(pattern == 5) {\r\n\t\t\t if (buttons[1][0].getValue()==-1 || buttons[0][1].getValue()==-1 || buttons[1][2].getValue()==-1 || buttons[2][1].getValue()==-1 ) {\r\n\t\t\t\t pattern=20; \r\n\t\t\t }\r\n\t\t\t else if(buttons[0][2].getValue()==0) {\r\n\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t buttons[0][2].setForeground(Color.black); \r\n\t\t buttons[0][2].setValue(1);\r\n\t\t buttons[0][2].setState(true); \r\n\t\t\t\t pattern = 20;\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t buttons[2][0].setForeground(Color.black); \r\n\t\t buttons[2][0].setValue(1);\r\n\t\t buttons[2][0].setState(true); \r\n\t\t\t\t pattern = 20;\r\n\t\t\t\t return;\r\n\t\t\t }\r\n \r\n\t\t }\r\n\t\t \r\n\t\t\r\n\t\t \r\n\t\t \r\n\t\t if(pattern == 20) {\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t int randx=0,randy=0,j=0;\r\n\t\t\t \r\n\t\t\t int diagSum1 = 0;\r\n\t\t int diagSum2 = 0;\r\n\t\t int colSum = 0;\r\n\t\t int rowSum = 0;\r\n\t\t \r\n\t\t //////////////////just edited version of check win method checks if ai can win if so it places down and wins\t\r\n\t\t \r\n\t\t diagSum1 = buttons[0][2].getValue() + buttons[1][1].getValue() + buttons[2][0].getValue();\r\n\t\t diagSum2 = buttons[0][0].getValue() + buttons[1][1].getValue() + buttons[2][2].getValue();\r\n\r\n\t\t if(diagSum2 == 2 ) {\r\n\t\t \t\r\n\t\t \t\r\n\t\t\t for(int y = 0; y<3; y++) {\r\n\t\t \tif (buttons[y][y].getValue()==0) {\r\n\t\t\t\t\t\t buttons[y][y].setText(\"O\");\r\n\t\t\t\t buttons[y][y].setForeground(Color.black); \r\n\t\t\t\t buttons[y][y].setValue(1);\r\n\t\t\t\t buttons[y][y].setState(true); \r\n\t\t\t\t j=1;\r\n\t\t\t\t return;\r\n\t\t\t\t\t }\r\n\t\t\t \r\n\t\t\t } \r\n\t\t }\r\n\t\t \r\n\t\t if(diagSum1 == 2) {\r\n\t\t \t \r\n\t\t\t\t \tif (buttons[0][2].getValue()==0) {\r\n\t\t\t\t\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t\t\t\t\t buttons[0][2].setForeground(Color.black); \r\n\t\t\t\t\t\t buttons[0][2].setValue(1);\r\n\t\t\t\t\t\t buttons[0][2].setState(true); \r\n\t\t\t\t\t\t j=1;\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t \tif (buttons[1][1].getValue()==0) {\r\n\t\t\t\t\t\t\t\t buttons[1][1].setText(\"O\");\r\n\t\t\t\t\t\t buttons[1][1].setForeground(Color.black); \r\n\t\t\t\t\t\t buttons[1][1].setValue(1);\r\n\t\t\t\t\t\t buttons[1][1].setState(true); \r\n\t\t\t\t\t\t j=1;\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t \tif (buttons[2][0].getValue()==0) {\r\n\t\t\t\t\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t\t\t\t\t buttons[2][0].setForeground(Color.black); \r\n\t\t\t\t\t\t buttons[2][0].setValue(1);\r\n\t\t\t\t\t\t buttons[2][0].setState(true); \r\n\t\t\t\t\t\t j=1;\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t \treturn;\r\n\t\t }\r\n\r\n\t\t \r\n\t\t \r\n\t\t for(int x = 0; x<3; x++) {\r\n\t\t for(int y = 0; y<3; y++) {\r\n\t\t rowSum += buttons[x][y].getValue(); \r\n\t\t colSum += buttons[y][x].getValue();\r\n\t\t }\r\n\t\t \r\n\t\t if (colSum == 2 && j == 0) { \r\n\t\t \t\r\n\t\t \r\n\t\t \t for(int y = 0; y<3; y++) {\r\n\t\t \t\t \tif (buttons[y][x].getValue()==0) {\r\n\t\t \t\t\t\t\t\t buttons[y][x].setText(\"O\");\r\n\t\t \t\t\t\t buttons[y][x].setForeground(Color.black); \r\n\t\t \t\t\t\t buttons[y][x].setValue(1);\r\n\t\t \t\t\t\t buttons[y][x].setState(true); \r\n\t\t \t\t\t\t j=1;\r\n\t\t \t\t\t\t return;\r\n\t\t \t\t\t\t\t }\r\n\t\t \t }\r\n\t\t }\r\n\t\t else if(rowSum == 2 && j == 0) {\r\n\t\t \tfor(int y = 0; y<3; y++) {\r\n\t\t \t\t \tif (buttons[x][y].getValue()==0) {\r\n\t\t \t\t\t\t\t\t buttons[x][y].setText(\"O\");\r\n\t\t \t\t\t\t buttons[x][y].setForeground(Color.black); \r\n\t\t \t\t\t\t buttons[x][y].setValue(1);\r\n\t\t \t\t\t\t buttons[x][y].setState(true); \r\n\t\t \t\t\t\t j=1;\r\n\t\t \t\t\t\t return;\r\n\t\t \t\t\t\t\t }\r\n\t\t \t }\r\n\t\t }\r\n\t\t rowSum = 0;\r\n\t\t colSum = 0;\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t /////////////same as above except checks if plays about to win then blocks\r\n\t\t \r\n\t\t for(int x = 0; x<3; x++) {\r\n\t\t for(int y = 0; y<3; y++) {\r\n\t\t rowSum += buttons[x][y].getValue(); \r\n\t\t colSum += buttons[y][x].getValue();\r\n\t\t }\r\n\t\t \r\n\t\t if ( colSum == -2 && j == 0) { \r\n\t\t \t\r\n\t\t \r\n\t\t \t for(int y = 0; y<3; y++) {\r\n\t\t \t\t \tif (buttons[y][x].getValue()==0) {\r\n\t\t \t\t\t\t\t\t buttons[y][x].setText(\"O\");\r\n\t\t \t\t\t\t buttons[y][x].setForeground(Color.black); \r\n\t\t \t\t\t\t buttons[y][x].setValue(1);\r\n\t\t \t\t\t\t buttons[y][x].setState(true); \r\n\t\t \t\t\t\t j=1;\r\n\t\t \t\t\t\t return;\r\n\t\t \t\t\t\t\t }\r\n\t\t \t }\r\n\t\t }\r\n\t\t else if( rowSum == -2 && j == 0) {\r\n\t\t \tfor(int y = 0; y<3; y++) {\r\n\t\t \t\t \tif (buttons[x][y].getValue()==0) {\r\n\t\t \t\t\t\t\t\t buttons[x][y].setText(\"O\");\r\n\t\t \t\t\t\t buttons[x][y].setForeground(Color.black); \r\n\t\t \t\t\t\t buttons[x][y].setValue(1);\r\n\t\t \t\t\t\t buttons[x][y].setState(true); \r\n\t\t \t\t\t\t j=1;\r\n\t\t \t\t\t\t return;\r\n\t\t \t\t\t\t\t }\r\n\t\t \t }\r\n\t\t }\r\n\t\t rowSum = 0;\r\n\t\t colSum = 0;\r\n\t\t }\r\n\t\t\t \t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t\t \r\n\t\t if(diagSum1 == -2 ) {\r\n\t\t \t \r\n\t\t \tif (buttons[0][2].getValue()==0) {\r\n\t\t\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t\t\t buttons[0][2].setForeground(Color.black); \r\n\t\t\t\t buttons[0][2].setValue(1);\r\n\t\t\t\t buttons[0][2].setState(true); \r\n\t\t\t\t j=1;\r\n\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t \tif (buttons[1][1].getValue()==0) {\r\n\t\t\t\t\t\t buttons[1][1].setText(\"O\");\r\n\t\t\t\t buttons[1][1].setForeground(Color.black); \r\n\t\t\t\t buttons[1][1].setValue(1);\r\n\t\t\t\t buttons[1][1].setState(true); \r\n\t\t\t\t j=1;\r\n\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t \tif (buttons[2][0].getValue()==0) {\r\n\t\t\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t\t\t buttons[2][0].setForeground(Color.black); \r\n\t\t\t\t buttons[2][0].setValue(1);\r\n\t\t\t\t buttons[2][0].setState(true); \r\n\t\t\t\t j=1;\r\n\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t \treturn;\r\n }\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t if( diagSum2 == -2) {\r\n\t\t \t\r\n\t\t \t\r\n\t\t for(int y = 0; y<3; y++) {\r\n\t \tif (buttons[y][y].getValue()==0) {\r\n\t\t\t\t\t buttons[y][y].setText(\"O\");\r\n\t\t\t buttons[y][y].setForeground(Color.black); \r\n\t\t\t buttons[y][y].setValue(1);\r\n\t\t\t buttons[y][y].setState(true); \r\n\t\t\t j=1;\r\n\t\t\t return;\r\n\t\t\t\t }\r\n\t\t \r\n\t\t } \r\n\t }\r\n\t\t\t \r\n\t\t\t //////////////messes up strategy that ai uses to make it unbeatable\r\n\t\t\t \r\n\t\t\t if (buttons[2][1].getValue()==0) {\r\n\t\t\t\t buttons[2][1].setText(\"O\");\r\n\t\t buttons[2][1].setForeground(Color.black); \r\n\t\t buttons[2][1].setValue(1);\r\n\t\t buttons[2][1].setState(true); \r\n\t\t j=1;\r\n\t\t return;\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 ///////////////random move only really used if play is an idiot\r\n\t\t\t \r\n\t\t\t while(j == 0) {\r\n\t\t\t\t randx=rand.nextInt(3);\r\n\t\t\t\t randy=rand.nextInt(3);\r\n\t\t\t\t if (buttons[randx][randy].getValue()==0) {\r\n\t\t\t\t\t buttons[randx][randy].setText(\"O\");\r\n\t\t\t buttons[randx][randy].setForeground(Color.black); \r\n\t\t\t buttons[randx][randy].setValue(1);\r\n\t\t\t buttons[randx][randy].setState(true); \r\n\t\t\t j++;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\t return;\r\n\t\t\t \r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t }", "private void settingQuestion() {\n\n int[] setWord = {0, 0, 0, 0, 0};\n int[] setPos = {0, 0, 0, 0};\n int[] setBtn = {0, 0, 0, 0};\n\n Random ans = new Random();\n int wordNum = ans.nextInt(vocabularyLesson.size());\n //answer = vocabularyLesson.get(wordNum).getMean();\n word = vocabularyLesson.get(wordNum).getWord();\n vocabularyID = vocabularyLesson.get(wordNum).getId();\n answer = word;\n\n Practice practice = pc.getPracticeById(vocabularyID);\n if (practice != null) {\n Log.d(\"idVocabulary\", practice.getSentence());\n question.setText(practice.getSentence());\n }\n\n\n // Random position contain answer\n setWord[wordNum] = 1;\n Random p = new Random();\n int pos = p.nextInt(4);\n if (pos == 0) {\n word1.setText(word);\n setBtn[0] = 1;\n }\n if (pos == 1) {\n word2.setText(word);\n setBtn[1] = 1;\n }\n if (pos == 2) {\n word3.setText(word);\n setBtn[2] = 1;\n }\n if (pos == 3) {\n word4.setText(word);\n setBtn[3] = 1;\n }\n setPos[pos] = 1;\n\n // Random 3 position contain 3 answer\n for (int i = 0; i < 3; i++) {\n Random ques = new Random();\n int num = ques.nextInt(5);\n int p1 = ques.nextInt(4);\n while (setWord[num] == 1 || setPos[p1] == 1) {\n num = ques.nextInt(5);\n p1 = ques.nextInt(4);\n }\n String wordIncorrect = vocabularyLesson.get(num).getWord();\n setWord[num] = 1;\n setPos[p1] = 1;\n if (setBtn[p1] == 0 && p1 == 0) {\n word1.setText(wordIncorrect);\n setBtn[0] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 1) {\n word2.setText(wordIncorrect);\n setBtn[1] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 2) {\n word3.setText(wordIncorrect);\n setBtn[2] = 1;\n }\n if (setBtn[p1] == 0 && p1 == 3) {\n word4.setText(wordIncorrect);\n setBtn[3] = 1;\n }\n }\n\n }", "public void shuffle()\n\t{\n\t\tHashSet<Integer> usedRandoms = new HashSet<Integer>();\n\t\tthis.currentCard = 0;\n\t\tint i= 0;\n\t\twhile (i < deck.length)\n\t\t{\n\t\t\tint another = this.rand.nextInt(NUMBER_OF_CARDS);\n\t\t\tif(!usedRandoms.contains(another))\n\t\t\t{\n\t\t\t\tCard temp = this.deck[i];\n\t\t\t\tthis.deck[i] = this.deck[another];\n\t\t\t\tthis.deck[another] = temp;\n\t\t\t\ti++;\n\t\t\t\tusedRandoms.add(another);\n\t\t\t}\n\t\t}\n\t}", "public void shuffle () {\n this.lives = 6;\n this.attempts.clear();\n this.victory = false;\n this.lose = false;\n Random r = new Random ();\n this._word = _dictionary[r.nextInt(_dictionary.length)];\n // this._word = _dictionary[2]; // Testing purposes\n this.hint.setLength(0);\n for (int i = 0; i < _word.length(); i++) {\n this.hint.append(\"_ \");\n } \n }", "public abstract void shuffled();", "@Override\n public void onClick(View view) {\n if (play.getText().toString().equals(\"PLAY RANDOM\")) {\n play.setText(\"PAUSE\");\n\n Collections.shuffle(MainActivity.songs);//It changes the order of the songs\n\n } else {\n if (play.getText().toString().equals(\"PAUSE\")) {\n play.setText(\"PLAY RANDOM\");\n }\n }\n }", "public void setQuestion(){\n Random rand = new Random();\n a = rand.nextInt(maxRange)+1;\n b = rand.nextInt(maxRange)+1;\n int res = rand.nextInt(4);\n equation.setText(a +\"+\"+ b);\n for(int i=0; i<4; i++){\n if(i == res)\n arr[i] = a+b;\n else {\n int answer = rand.nextInt(2*maxRange)+1;\n while(answer == a+b)\n answer = rand.nextInt(2*maxRange)+1;\n arr[i] = answer;\n }\n }\n for(int i=0; i<4; i++)\n buttons[i].setText(String.valueOf(arr[i]));\n }", "public int decideRandomMove() {\n return (int) (Math.random() * 4);\n }", "public void shuffle() {\n\t\tfor (int i = 0; i < cards.size(); i++){\n\t\t\t//exchange card i with the random card from i to cards.size() - 1\n\t\t\tint j = Randoms.randomIntInRange(i, cards.size() - 1);\n\t\t\tT c1 = cards.get(i);\n\t\t\tT c2 = cards.get(j);\n\t\t\tcards.set(i, c2);\n\t\t\tcards.set(j, c1);\n\t\t}\n\t}", "public void shuffle(int numShuffles)\n { \n Card tempCard;\n int switchOne, switchTwo;\n\n for (int i=0; i<numCards; i++){\n switchOne = rand.nextInt(numCards);\n switchTwo = rand.nextInt(numCards);\n\n tempCard = cardAry[switchOne];\n cardAry[switchOne] = cardAry[switchTwo];\n cardAry[switchTwo] = tempCard; \n }\n\n if(cardAry.length > 1 && cardAry.length <=5 && isSorted()==true)\n shuffle(2);\n }", "public void shuffleDeck() {\n\t\tint numberOfShuffles = (int) ( Math.random() * 4 + 1 ) ;\n\t\tCard temp;\n\t\t\n\t\tfor( int j = 0; j < numberOfShuffles; j++ ) {\n\t\t\tfor( int i = 0; i < deck.length; i++ ) {\n\t\t\t\tint randSwitchNum = (int) (Math.random() * 52);\n\t\t\t\ttemp = deck[i];\n\t\t\t\tdeck[i] = deck[randSwitchNum];\n\t\t\t\tdeck[randSwitchNum] = temp;\n\t\t\t}\n\t\t}\t\n\t}", "public void shuffle() {\n\t\t\n\t\tRandom random = new Random();\n\t\tint position;\n\t\t\n\t\tfor(int i = 0; i < 200 * dimension; i++) {\n\t\t\tposition = random.nextInt(numTiles - 1);\n\t\t\tif(isValidMove(position)) {\n\t\t\t\tmakeMove(position);\n\t\t\t}\n\t\t}\n\t\t\n\t\tnumMoves = 0;\n\t}", "public void shuffle(){\n\t\t\n\t\tArrayList<Boolean> used = new ArrayList<Boolean>();\n\t\tArrayList<Integer> copyStones = new ArrayList<Integer>();\n\t\tfor(int e = 0; e < gameStones.size(); e++){\n\t\t\tcopyStones.add(gameStones.get(e));\n\t\t\tused.add(false);\n\t\t}\n\t\tfor(int e : copyStones){\n\t\t\tchar l = stoneChars.get(e);\n\t\t\tboolean placed = false;\t\t\n\t\t\twhile(!placed){\n\t\t\t\tint randNumber = (int) (Math.random() * 7);\n\t\t\t\tif(!used.get(randNumber)){\n\t\t\t\t\tgameStones.set(randNumber, e);\n\t\t\t\t\tstoneLetters.set(randNumber, l);\n\t\t\t\t\tused.set(randNumber, true);\n\t\t\t\t\tplaced = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void randomizePuzzle() {\n\t\t// Choose random puzzles, shuffle the options.\n\t\tthis.puzzle = BarrowsPuzzleData.PUZZLES[(int) (Math.random() * BarrowsPuzzleData.PUZZLES.length)];\n\t\tthis.shuffledOptions = shuffleIntArray(puzzle.getOptions());\n\t}", "public void randomMove(Random choiceGen){\n\tint choice = choiceGen.nextInt(4);\n\tswitch(choice){\n case 0:\n\tif(position[0] < worldEdge[0]){\n\t position[0] += 1;\n\t break;\n\t}\n\t\n\tcase 1:\n\t if(position[0] > 0){\n\t\tposition[0] -= 1;\n\t }\n\t else{\n\t position[0] += 1;\n\t }\n\t break;\n\tcase 2:\n\t if(position[1] < worldEdge[1]){\n\t\tposition[1] += 1;\n\t\tbreak;\n\t}\n\tcase 3:\n\t if(position[1] > 0){\n\t\tposition[1] -= 1;\n\t }\n\t else{\n\t\tposition[1] += 1;\n\t }\n\t break;\n\t}\n }", "public void shuffle() {\n\t\tRandom randIndex = new Random();\n\t\tint size = cards.size();\n\t\t\n\t\tfor(int shuffles = 1; shuffles <= 20; ++shuffles)\n\t\t\tfor (int i = 0; i < size; i++) \n\t\t\t\tCollections.swap(cards, i, randIndex.nextInt(size));\n\t\t\n\t}", "private void shuffleOnceRandom(){\n\t\t//You need to have a copy of the deck before you shuffled it so you can reference\n\t\t//It when you are trying to replace the new values\n\t\tList<Card> beforeShuffle = ourDeck.makeCopy().getCurrentDeck();\n\t\t//The topIndex tells us where we are in reference to the top half of the deck\n\t\t//Same with bottom this helps us reference the original deck to get whatever\n\t\t//Card we need and the deckIndex helps us put it in the correct spot\n\t\tint topIndex = 0, bottomIndex = ourDeck.getSize() / 2, deckIndex = 0;\n\t\t//These ints help us keep track of how many cards are left in each half\n\t\tint remainingTop = ourDeck.getSize() / 2, remainingBot = ourDeck.getSize() / 2;\n\t\tboolean shouldLoop = true;\n\t\t//This is the shuffling loop\n\t\twhile(shouldLoop){\n\t\t\t//This means the number coming from the specific deck which in this method is random\n\t\t\tint numTop = generator.nextInt(RAND_BOUND), numBot = generator.nextInt(RAND_BOUND);\n\t\t\t//After we determine the random number of cards we're using we have to do some checks\n\t\t\t//This means we wanted more than there was less therefore the stack is out\n\t\t\t//This is the stopping condition for the loop\n\t\t\tif(numTop >= remainingTop){\n\t\t\t\tnumTop = remainingTop;\n\t\t\t\tnumBot = remainingBot;\n\t\t\t\tshouldLoop = false;\n\t\t\t}\n\t\t\t\t\n\t\t\tif(numBot >= remainingBot){\n\t\t\t\tnumTop = remainingTop;\n\t\t\t\tnumBot = remainingBot;\n\t\t\t\tshouldLoop = false;\n\t\t\t}\n\t\t\t//This is where I replace the newCard into ourDeck\n\t\t\t//I iterate for the number of times we take from the top or bottom\n\t\t\tfor(int i = 1; i <= numTop; i++){\t\n\t\t\t\tCard newCard = beforeShuffle.get(topIndex);\t//I get the card we want to move\n\t\t\t\tourDeck.setCard(newCard, deckIndex);\t\t//Then I move it to the new deckIndex\n\t\t\t\ttopIndex++;\tdeckIndex++;\n\t\t\t}\n\t\t\tfor(int i = 1; i <= numBot; i++){\n\t\t\t\tCard newCard = beforeShuffle.get(bottomIndex);\n\t\t\t\tourDeck.setCard(newCard, deckIndex);\n\t\t\t\tbottomIndex++;\tdeckIndex++;\n\t\t\t}\n\t\t\tremainingTop = remainingTop - numTop;\n\t\t\tremainingBot = remainingBot - numBot;\n\t\t}\n\t}", "public void shuffle() {\r\n for (int i = 0; i < this.numCards; i++) {\r\n int spot = (int) (Math.random() * ((this.numCards - 1) - i + 1) + i);\r\n Card temp = cards[i];\r\n cards[i] = cards[spot];\r\n cards[spot] = temp;\r\n\r\n\r\n }\r\n }", "private void goRandomDirection() {\n\t\tdesiredDirection = Math.random() * 360.0;\n\t}", "private Direction selectRandomDirection(List<Direction> possibleDirections) {\n\t\tint random = (int) (Math.random() * possibleDirections.size());\n\t\treturn possibleDirections.get(random);\n\t}", "public void shuffle()\r\n\t{\r\n\t\tRandom rand = ThreadLocalRandom.current();\r\n\t\t\r\n\t\tfor (int i = topCard; i > 0; i--)\r\n\t\t{\r\n\t\t\tint index = rand.nextInt(i + 1);\r\n\t\t\tString temp = cards[index];\r\n\t\t\tcards[index] = cards[i];\r\n\t\t\tcards[i] = temp;\r\n\t\t}\r\n\t}", "public void randomize(){\r\n int random = (int) (Math.random()*36);\r\n for(int i = 0;i<7;i++){\r\n for(int j = 0;j<36;j++){\r\n temparray[1] = gameBoard[random];\r\n temparray[2] = gameBoard[j];\r\n gameBoard[j] = temparray[1];\r\n gameBoard[random] = temparray[2];\r\n \r\n }\r\n }\r\n \r\n }", "static void randomMove() {\n int directionNum; // Randomly set to 0, 1, 2, or 3 to choose direction.\n directionNum = ( int )( Math.random() * 4 );\n\n switch ( directionNum ) {\n case 0: // Move up.\n currentRow--;\n if ( currentRow < 0 )\n currentRow = ROWS - 1;\n break;\n case 1 : // Move right.\n currentColumn++;\n if ( currentColumn >= COLUMNS )\n currentColumn = 0;\n break;\n case 2 : // Move down.\n currentRow++;\n if ( currentRow >= ROWS )\n currentRow = 0;\n break;\n case 3 : // Move left.\n currentColumn--;\n if ( currentColumn < 0 )\n currentColumn = COLUMNS - 1;\n break;\n\n }\n }", "public void randomizeState() {\n\t\t//System.out.print(\"Randomizing State: \");\n\t\tArrayList<Integer> lst = new ArrayList<Integer>();\n\t\tfor(int i = 0; i<9; i++)// adds 0-8 to list\n\t\t\tlst.add(i);\n\t\tCollections.shuffle(lst);//randomizes list\n\t\tString str=\"\";\n\t\tfor(Integer i : lst)\n\t\t\tstr += String.valueOf(i);\n\t\t//System.out.println(str);\n\t\tcurrent = new PuzzleState(str,current.getString(current.getGoalState()));\n\t\t//pathCost++;\n\t}", "public void shuffle() {\r\n for ( int i = deck.size()-1; i > 0; i-- ) {\r\n int rand = (int)(Math.random()*(i+1));\r\n SpoonsCard temp = deck.get(i);\r\n deck.set(i, deck.get(rand));\r\n deck.set(rand, temp);\r\n }\r\n cardsUsed = 0;\r\n }", "public void shuffle() {\n\n\tcardsLeft = cards.length;\n\tfor (int i=cards.length-1; i>=0; --i) {\n\n\t int r = (int)(Math.random()*(i+1)); // pick a random pos <= i\n\n\t Card t = cards[i];\n\t cards[i] = cards[r];\n\t cards[r] = t;\n\n\t}\n }", "void rndSwapTwo() {\r\n\t\t// index 0 has the start city and doesn't change\r\n\t\t// hence the random#s are from 1 onwards\r\n\t\trndSwapTwo(1, this.length());\r\n\t}", "public void shuffle(){\n\n // resetting the int counters\n nextCard = 0;\n nextDiscardedPlace = 0;\n discardPile = new PlayingCard[Constants.DECK_SIZE];\n\n PlayingCard temp = null;\n Random rand = new Random();\n\n for(int i = 0; i < MAX_SHUFFLE; i++) {\n int pos1 = rand.nextInt(Constants.DECK_SIZE);\n int pos2 = rand.nextInt(Constants.DECK_SIZE);\n\n temp = deck[pos1];\n deck[pos1] = deck[pos2];\n deck[pos2] = temp;\n }\n }", "public void step()\n {\n\t int rows = grid.length-1;\n\t int cols = grid[0].length-1;\n\t int direction = (int) (Math.random()*3);\n\t direction--;\n\t int row = (int) (Math.random()*rows);\n\t //System.out.println(row);\n\t int col = (int) (Math.random()*cols);\n\t //System.out.println(col);\n\t if(grid[row][col] == SAND && (grid[row+1][col] == EMPTY || grid[row+1][col] == WATER)) {\n\t\t grid[row+1][col] = SAND;\n\t\t grid[row][col] = EMPTY;\n\t }\n\t if(grid[row][col] == WATER && grid[row+1][col] == EMPTY) {\n\t\t if(col != 0) {\n\t\t\t grid[row+1][col+direction] = WATER;\n\t\t\t grid[row][col] = EMPTY;\n\t\t }\n\t\t else {\n\t\t\t grid[row+1][col] = WATER;\n\t\t\t grid[row][col] = EMPTY;\n\t\t }\n\t }\n }", "private int newIndex() {\n //return indexes.remove(0);\n return random.nextInt(81);\n }", "public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}", "@Test\n public void panelButtonsShuffleTest() {\n expandPanel();\n\n onView(withId(R.id.shuffle)).perform(click());\n\n onView(isRoot()).perform(ViewActions.waitForView(R.id.shuffle, new ViewActions.CheckStatus() {\n @Override\n public boolean check(View v) {\n return ((HighlightButton) v).isHighlighted();\n }\n }, 10000));\n }", "private void updateShuffleboard()\n {\n }", "private void random() {\n GameState gs = cc.getGameState();\n ArrayList<int[]> moves = cc.getPlayerMoves(player);\n ArrayList<GameState> states = nextStates(moves, gs);\n for (int[] m : moves) {\n GameState next = checkMove(m, cc);\n states.add(next);\n }\n Random rand = new Random(System.nanoTime());\n int i = rand.nextInt(states.size());\n cc.setAIMove(states.get(i));\n }", "public static void selectionShuffle(int[] values) {\r\n\t\tfor(int i = (values.length - 1); i >= 0; i--) //array is traversed dtarting from last position\r\n\t\t{\r\n\t\t\tint rand = (int)(Math.random() * (values.length -1)); //random var in array\r\n\t\t\tint shuff = values[i]; //stores last element in a placeholder\r\n\t\t\tvalues[i] = values[rand]; //replaces the element with a random location\r\n\t\t\tvalues[rand] = shuff; //replaces the random location with the last element stored in shuff\r\n\t\t}\r\n\t}", "public void shuffle()\r\n {\r\n // We will start from the last element and swap the cards one by one. We actually\r\n // don't need to swap the last element.\r\n for (int i = valid - 1; i > 0; i --) { \r\n \r\n // By using Math.random, we will get a random integer from 0 to i\r\n int j = (int) ( (i+1) * Math.random()); \r\n \r\n // Swapping with the help of temp instance of Card Class.\r\n Card temp = cards[i]; \r\n cards[i] = cards[j]; \r\n cards[j] = temp; \r\n } \r\n // Prints the random array \r\n }", "private MoveAction wanderRandomly() {\n\t\tint intDir = rand.nextInt(8) + 1;\n\t\tDirection direction = Direction.fromInt(intDir);\n\t\treturn moveInDirection(direction);\n\t}", "public void shuffleClick(View view) {\n int tileCount = this.imageLayout.getChildCount();\n if (tileCount < 2) {\n return;\n }\n // for several loops\n for (int cnt=0; cnt < 20; cnt++)\n {\n // select a tile randomly\n int idx = random.nextInt(tileCount);\n View tile = this.imageLayout.getChildAt(idx);\n this.imageLayout.removeViewAt(idx);\n this.imageLayout.addView(tile);\n }\n }", "public void randomiseBotDirections() {\n\t\tfor (int i = 0; i < bots.size(); i++) {\n\t\t\tbots.get(i).setDirection(Math.random() * 360);\n\t\t}\n\t}", "private static int randomDirection() {\n return (int) (Math.random() * Direction.values().length);\n }", "protected abstract void playShuffled();", "void setQuestion(){\n int numberRange = currentLevel * 3;\n Random randInt = new Random();\n\n int partA = randInt.nextInt(numberRange);\n partA++;//not zero\n\n int partB = randInt.nextInt(numberRange);\n partB++;//not zero\n\n correctAnswer = partA * partB;\n int wrongAnswer1 = correctAnswer-2;\n int wrongAnswer2 = correctAnswer+2;\n\n textObjectPartA.setText(\"\"+partA);\n textObjectPartB.setText(\"\"+partB);\n\n //set the multi choice buttons\n //A number between 0 and 2\n int buttonLayout = randInt.nextInt(3);\n switch (buttonLayout){\n case 0:\n buttonObjectChoice1.setText(\"\"+correctAnswer);\n buttonObjectChoice2.setText(\"\"+wrongAnswer1);\n buttonObjectChoice3.setText(\"\"+wrongAnswer2);\n break;\n\n case 1:\n buttonObjectChoice2.setText(\"\"+correctAnswer);\n buttonObjectChoice3.setText(\"\"+wrongAnswer1);\n buttonObjectChoice1.setText(\"\"+wrongAnswer2);\n break;\n\n case 2:\n buttonObjectChoice3.setText(\"\"+correctAnswer);\n buttonObjectChoice1.setText(\"\"+wrongAnswer1);\n buttonObjectChoice2.setText(\"\"+wrongAnswer2);\n break;\n }\n }", "public void randomizeDirection() {\n\t\tRandom r = new Random();\n\t\tint randomDir = r.nextInt(8);\n\t\tdirection = Direction.values()[randomDir];\n\t}", "public void shuffle() {\n //Beginning with the top card, decrement i until i is 0.\n for (int i = this.topCard - 1; i >= 0; i--) {\n Card tmpCard = this.cards[i]; //Store the card at i, since it will be overwritten.\n //Choose a random card position from within the deck.\n int randomPosition = (int) (Math.random() * (this.topCard - 1));\n //Take the card from the random position and store it in the ith position.\n this.cards[i] = this.cards[randomPosition];\n //Take the card from the ith position, and put it into the randomly chosen position.\n this.cards[randomPosition] = tmpCard;\n //The cards have now been swapped.\n }\n }", "public void shuffle() {\n\t\tfor (int i = deck.length - 1; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tCard temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcardsUsed = 0;\n\t}", "public int moveDirection(int index)\n\t{\n\t\tswitch (index)\n\t\t{\n\t\tcase 0:\n\t\t\treturn rng.nextInt(2); // 0, 1\n\t\tcase 19:\n\t\t\treturn rng.nextInt(2)-1; // -1, 0\n\t\tdefault:\n\t\t\treturn rng.nextInt(3)-1; // -1, 0, 1\n\t\t}\t\n\t}", "private void nextQuestion() {\n\n // increment current question index\n currentQuestionIndex++;\n\n // if the current question index is smaller than the size of the quiz list\n if (currentQuestionIndex < quizList.size()) {\n\n // clear the possible answers\n possibleAnswers.clear();\n\n // grab the definition of current question, assign the correct answer variable\n // and add it to the list of possible answers.\n definition = quizList.get(currentQuestionIndex)[0];\n correctAnswer = quizMap.get(definition);\n possibleAnswers.add(correctAnswer);\n\n // while there's less than 4 possible answers, get a random answer\n // and if it hasn't already been added, add it to the list.\n while (possibleAnswers.size() < 4) {\n String answer = quizList.get(new Random().nextInt(quizList.size() - 1))[1];\n if (!possibleAnswers.contains(answer)) {\n possibleAnswers.add(answer);\n }\n }\n\n // shuffle possible answers so they display in a random order\n Collections.shuffle(possibleAnswers);\n } else {\n // if the question index is out of bounds, set quiz as finished\n quizFinished = true;\n }\n }", "public void playCoordinationGameRandomly(int init){\n\t\t\n\t\tint counterInit = BDDWrapper.assign(bdd, 0, counterVariables);\n\t\tint strategyInit = BDDWrapper.and(bdd, init, counterInit);\n\t\t\n\t\tint currentState = UtilityMethods.chooseStateRandomly(bdd, strategyInit, variables);\n\t\t\n//\t\tUtilityMethods.debugBDDMethodsAndWait(bdd, \"current state\", currentState);\n\t\t\n\t\twhile(true){\n\t\t\t\n\t\t\tcleanCoordinationGameStatePrintAndWait(\"current state is\", currentState);\n\t\t\t\n\t\t\tint possibleNextStates = symbolicGameOneStepExecution(currentState);\n\t\t\t\n\t\t\tcurrentState = UtilityMethods.chooseStateRandomly(bdd, possibleNextStates, variables);\n//\t\t\tcleanPrintSetOutWithDontCares(bdd, currentState, densityVars, taskVars, successSignals);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n public void setShuffleButtonState() {\n expandPanel();\n\n onView(withId(R.id.shuffle)).perform(click()); //Set state to shuffled\n\n onView(withId(R.id.shuffle)).check(matches(withHighlightState(true)));\n }", "public void shuffle() {\n for (int i = 0; i < this.cards.length ; i++ ) {\n double x = Math.floor(Math.random() * ((double)this.cards.length - (double)0)) + (double)0;\n Card temp = this.cards[i];\n this.cards[i]= this.cards[(int)x];\n this.cards[(int)x]= temp;\n }\n }", "void shuffleDeck() {\n\t\tfor(int index = 0; index < this.getNumberOfCards(); index++) {\n\t\t\tint randomNumber = index + (int)(Math.random() * (this.getNumberOfCards() - index));\n\t\t\tCard temp = this.cardsInDeck[randomNumber];\n\t\t\tthis.cardsInDeck[randomNumber] = this.cardsInDeck[index];\n\t\t\tthis.cardsInDeck[index] = temp;\n\t\t}\n\t}", "public void newRandomPuzzle() {\r\n // Start with the goal state\r\n state = goal.copy();\r\n HashSet<PuzzleState> visitedStates = new HashSet<PuzzleState>();\r\n visitedStates.add(state.copy());\r\n System.out.println(state);\r\n \r\n Vector<PuzzleState> aStarSolution = null;\r\n int numMovesLeft = this.minMoves;\r\n while (numMovesLeft > 0) {\r\n for (int move = 0; move < numMovesLeft; move++) {\r\n // Get all the possible next states\r\n Vector<PuzzleState> nextStates = possibleNextStates(state);\r\n \r\n // Randomly pick a new state until it is not one we have seen before\r\n PuzzleState next;\r\n do {\r\n next = nextStates.get(rand.nextInt(nextStates.size()));\r\n } while (visitedStates.contains(next));\r\n \r\n // Update the state and add it to the set of visited states\r\n state = next;\r\n visitedStates.add(state.copy());\r\n System.out.println(\"New state:\");\r\n System.out.println(state);\r\n }\r\n aStarSolution = aStarSearch();\r\n int minMovesAStar = aStarSolution.size();\r\n numMovesLeft = this.minMoves - minMovesAStar;\r\n System.out.println(\"num moves left: \" + numMovesLeft);\r\n }\r\n solution = aStarSolution;\r\n }", "public void spreadShuffle()\r\n {\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n List<Card> tempDeck = null;\r\n for (int i = 0; i < SHUFFLE_COUNT; i++) {\r\n while (cards.size() > 0)\r\n {\r\n shuffledDeck.add( drawRandom() );\r\n }\r\n tempDeck = cards;\r\n cards = shuffledDeck;\r\n tempDeck.clear();\r\n shuffledDeck = tempDeck;\r\n }\r\n }", "public void Shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "private void computerTurn() {\r\n\t\tPoint index = randomIndex();\r\n\t\tSETslot((int)index.getX(), (int)index.getY(), randomValue());\r\n\t}", "public void shuffle()\r\n {\r\n Collections.shuffle(cards);\r\n top = NUMCARDS - 1;\r\n }", "private void shuffle(ArrayList<Product> dataSet) {\n\t\tfor (int i = 0; i < dataSet.size(); i++) {\n\t\t\tint k = rand(0, i);\n\t\t\tProduct temp = dataSet.get(k);\n\t\t\tdataSet.set(k, dataSet.get(i));\n\t\t\tdataSet.set(i, temp);\n\t\t}\t\n\t}", "public void hinduShuffle()\r\n {\r\n List<Card> cut = new ArrayList<Card>();\r\n List<Card> cut2 = new ArrayList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n int cutPoint = 0;\r\n int cutPoint2 = 0;\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n cutPoint = rand.nextInt( cards.size()-1 );\r\n cutPoint2 = rand.nextInt( cards.size() - cutPoint ) + cutPoint;\r\n for (int i = 0; i < cutPoint; i++) {\r\n cut.add(draw());\r\n }\r\n for (int i = cutPoint2; i < cards.size(); i++) {\r\n cut2.add(draw());\r\n }\r\n for (int i = 0; i < cut.size(); i++) {\r\n shuffledDeck.add(cut.remove(0));\r\n }\r\n for (int i = 0; i < cards.size(); i++) {\r\n shuffledDeck.add(cards.remove(0));\r\n }\r\n for (int i = 0; i < cut2.size(); i++) {\r\n shuffledDeck.add(cut2.remove(0));\r\n }\r\n cut = cards;\r\n cut.clear();\r\n cut2.clear();\r\n cards = shuffledDeck;\r\n }\r\n }", "public void PlaceRandomBoard(){\r\n\r\n\t\tString whichShip;\r\n\t\tString coordinate;\r\n\t\t\r\n\t\t\t// Display the random board and the random board menu \r\n\t\t// DISPLAY BOARDS!!!!!\r\n\t\tint whichInput=0;\r\n\t\tShip temp = new Ship();\r\n\t\tRandom generator = new Random();\r\n\t\tint randomIndex = generator.nextInt();\r\n\t\twhile (!this.myBoard.carrier.placed || !this.myBoard.battleship.placed\r\n\t\t\t\t|| !this.myBoard.cruiser.placed || !this.myBoard.submarine.placed\r\n\t\t\t\t|| !this.myBoard.patrolboat.placed) {\r\n\r\n\t\t\twhichInput++;\r\n\r\n\t\t\twhichShip = String.valueOf(whichInput);\r\n\t\t\t\r\n\t\t\tint direction=0;\r\n\r\n\t\t\tboolean placed = false;\r\n\t\t\twhile (!placed) {\r\n\t\t\t\trandomIndex = generator.nextInt(10);\r\n\t\t\t\tcoordinate = this.indexToLetter(randomIndex);\r\n\t\t\t\tcoordinate += String.valueOf(generator.nextInt(10)+1);\r\n\t\t\t\tdirection = generator.nextInt(4) + 1;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tswitch (Integer.parseInt(whichShip)) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\ttemp = new Carrier();\r\n\t\t\t\t\ttemp.name=\"Carrier\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\ttemp = new Battleship();\r\n\t\t\t\t\ttemp.name=\"Battleship\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\ttemp = new Cruiser();\r\n\t\t\t\t\ttemp.name=\"Cruiser\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\ttemp = new Submarine();\r\n\t\t\t\t\ttemp.name=\"Submarine\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\ttemp = new PatrolBoat();\r\n\t\t\t\t\ttemp.name=\"Patrol Boat\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} \r\n\t\t\t\t\r\n\t\t\t\tplaced = this.validateShipPlacement(temp, coordinate, direction);\r\n\r\n\t\t\t\tif (placed) {\r\n\t//\t\t\t\tSystem.out.println(\"Success\");\r\n\t\t\t\t\tthis.placeShip(temp, coordinate, direction);\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t//\t\t\t\tdisplay.scroll(\"Invalid coordinate, please enter another\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "static int[] chooseDestination(List<int[]> possibleDestinations){\n System.out.println(\"Choose destination: \");\n List<String> options = new ArrayList<>();\n for(int i=0; i < possibleDestinations.size(); i++){\n int optionNr = i + 1;\n options.add(Integer.toString(optionNr));\n System.out.print(optionNr + \": \");\n printCoordinatesForUser(possibleDestinations.get(i));\n System.out.print(\"\\n\");\n\n }\n System.out.print(\"Type the chosen option(the number at left, not the coordinates): \");\n String userChoice = readUserChoice(options, false);\n if(userChoice != null){//timer not expired\n int posInList = Integer.parseInt(userChoice) - 1;\n return possibleDestinations.get(posInList);\n }\n else{\n return null;\n }\n }", "private void loadNextFlag() \r\n {\r\n // get file name of the next flag and remove it from the list\r\n // update the correct answer\r\n // clear answerTextView \r\n\r\n // display current question number\r\n\r\n // extract the region from the next image's name\r\n\r\n // use AssetManager to load next image from assets folder\r\n // get an InputStream to the asset representing the next flag\r\n // load the asset as a Drawable and display on the flagImageView\r\n\r\n // shuffle file names\r\n\r\n // put the correct answer at the end of fileNameList\r\n\r\n // add 3, 6, or 9 guess Buttons based on the value of guessRows\r\n // place Buttons in currentTableRow\r\n // get reference to Button to configure\r\n\r\n // get country name and set it as newGuessButton's text\r\n \r\n // randomly replace one Button with the correct answer\r\n // pick random row\r\n // pick random column\r\n // get the row\r\n }", "public void shuffle(){ \n \n Collections.shuffle(cardDeck);\n /*Random rand = new Random();\n for(int i = 0 ; i < 110 ; i++){\n int firstCard = rand.nextInt(110);\n int secondCard = rand.nextInt(110);\n Collections.swap(cardDeck,firstCard,secondCard);\n }*/\n }", "private void setUpQuestions(){\n if (index == questions.size()){ //if no more questions, jumps to the endGame\n endGame();\n }else {\n currentQuestion = questions.get(index);\n\n lblQuestion.setText(currentQuestion.getQuestion());\n imgPicture.setImageResource(currentQuestion.getPicture());\n btnRight.setText(currentQuestion.getOption1());\n btnLeft.setText(currentQuestion.getOption2());\n index++;\n }\n }", "public static void scrambledArray(int[] array){\n Random rand=new Random();// use java.util.random method to scramble the index number\n for(int i=0;i<array.length;i++){\n int num=rand.nextInt(15);\n // swap the two different positioned values by swaping their index number \n int temp=array[i];\n array[i]=array[num];\n array[num]=temp; }\n }", "void rndSwapTwo(int i, int j) {\r\n\t\tint a, b;\r\n\t\tint tmp;\r\n\r\n\t\ta = Util.rndInt(i, j);\r\n\t\tb = Util.rndInt(i, j);\r\n\t\ttmp = index[a];\r\n\t\tindex[a] = index[b];\r\n\t\tindex[b] = tmp;\r\n\t}", "@Override\n\tpublic String performMove(){\n\t\tRandom random = new Random();\t\t\t\t\n\t\tchoice = random.nextInt(3);\t\t\t\t\t//Randomly generating the choices\n if(choice == 0){\n \treturn \"Rock\";\n }else if(choice == 1){\n \treturn \"Paper\";\n }else{\n \treturn \"Scissor\";\n }\n }", "private void randomDirection(ArrayList<ArrayList<Cell>> cells) {\n\t\tfinal int UP = 0;\n\t\tfinal int RIGHT = 1;\n\t\tfinal int DOWN = 2;\n\t\tfinal int LEFT = 3;\n\t\tfinal int MAX_TRAVERSABLE_DIRECTIONS = 4;\n\t\tint direction = -1;\n\t\tboolean[] traversableDirections = new boolean[MAX_TRAVERSABLE_DIRECTIONS];\n\t\tif (checkTraversable(cells, getxPos(), getyPos() - 1)) {\n\t\t\ttraversableDirections[UP] = true;\n\t\t}\n\t\tif (checkTraversable(cells, getxPos() + 1, getyPos())) {\n\t\t\ttraversableDirections[RIGHT] = true;\n\t\t}\n\t\tif (checkTraversable(cells, getxPos(), getyPos() + 1)) {\n\t\t\ttraversableDirections[DOWN] = true;\n\t\t}\n\t\tif (checkTraversable(cells, getxPos() - 1, getyPos())) {\n\t\t\ttraversableDirections[LEFT] = true;\n\t\t}\n\t\twhile (direction == -1) {\n\t\t\tint randomDirection = new Random().nextInt(MAX_TRAVERSABLE_DIRECTIONS);\n\t\t\tif (traversableDirections[randomDirection]) {\n\t\t\t\tdirection = randomDirection;\n\t\t\t} else {\n\t\t\t\tdirection = -1;\n\t\t\t}\n\t\t}\n\t\tif (direction == UP) {\n\t\t\tsetyPos(getyPos() - 1);\n\t\t} else if (direction == RIGHT) {\n\t\t\tsetxPos(getxPos() + 1);\n\t\t} else if (direction == DOWN) {\n\t\t\tsetyPos(getyPos() + 1);\n\t\t} else if (direction == LEFT) {\n\t\t\tsetxPos(getxPos() - 1);\n\t\t}\n\t}", "private ButtonClass figureComputerMove(int difficulty){\n //First list contains all the options the computer has\n List<ButtonClass> list1 = new ArrayList<>();\n for(ButtonClass b: allButtons){\n if (!b.getClicked() && b.getAvailable() && !b.getPartOfWonBoard()){\n list1.add(b);\n }\n }\n //The second list is a refinement to buttons that will get the computer a win on a board\n List<ButtonClass> list2 = new ArrayList<>();\n for (ButtonClass b: list1){\n //If the button results in a board win for the computer, then the computer would add the button to possible placements\n b.setLetter(currentLetter);\n if (checkGameWin(b.getSmallGame().getLettersOfAllButtons())){\n list2.add(b);\n }\n System.out.println(list2);\n //If the button results in a board win for the user, the computer would also want to choose that position\n if(currentLetter == \"x\"){\n b.setLetter(\"o\");\n } else {\n b.setLetter(\"x\");\n }\n if (checkGameWin(b.getSmallGame().getLettersOfAllButtons())){\n list2.add(b);\n }\n System.out.println(\"Part 2\");\n System.out.println(list2);\n b.setLetter(null);\n }\n //If the next move results in a board that is won, remove it from options, unless only option\n List<ButtonClass> buttonsToRemove = new ArrayList<>();\n if(list2.size()>0) {\n buttonsToRemove = new ArrayList<>();\n for (ButtonClass b : list2) {\n if (list2.size() > 1 && games[b.getButtonPosition()].getLetterOfWinner() != null) {\n buttonsToRemove.add(b);\n }\n }\n }\n for (ButtonClass b: list1) {\n if (games[b.getButtonPosition()].getLetterOfWinner() != null) {\n buttonsToRemove.add(b);\n }\n }\n for(ButtonClass b: buttonsToRemove) {\n list1.remove(b);\n if(list2.contains(b)) {\n list2.remove(b);\n }\n }\n System.out.println(\"Part 3\");\n System.out.println(list2);\n //Computer randomly chooses from possible positions\n Random rand = new Random();\n if (difficulty == 1 && list2.size() > 0){\n return list2.get(rand.nextInt(list2.size()));\n } else {\n return list1.get(rand.nextInt(list1.size()));\n }\n }", "public static void shuffle(int data[]) {\n\n }", "private int nextIndex() {\n return ThreadLocalRandom.current().nextInt(currentIndex, tracks.size());\n }", "private void rearrangeSolution() {\r\n List<Integer> trinity = new ArrayList<Integer>();\r\n trinity.add(0); trinity.add(1); trinity.add(2);\r\n permutateDigits();\r\n for (int i = 0; i<9; i+=3) {\r\n Collections.shuffle(trinity);\r\n swapRow(trinity.get(0)+i, trinity.get(1)+i);\r\n }\r\n for (int i = 0; i<9; i+=3) {\r\n Collections.shuffle(trinity);\r\n swapCol(trinity.get(0)+i, trinity.get(1)+i);\r\n }\r\n }", "private void randomPosBoats(GameData gameData) {\n int x0 = 0;\n int y0 = 0;\n for ( int n = gameData.getBoatArray().size()-1; n>=0; n--){\n Boat b = gameData.getBoatArray().get(n);\n Random rand = new Random();\n int l = b.getLength();\n\n boolean retry = true;\n while(retry) {\n int direction = rand.nextInt(2);\n\n //HORIZONTAL\n if (direction == 1) {\n x0 = rand.nextInt(gameData.getBoard().getWidth() - l);\n y0 = rand.nextInt(gameData.getBoard().getHeight());\n\n // we suppose it's a good starting point\n retry = false;\n for (int i = 0; i < l; i++) {\n //if one of the tiles already has a boat\n if (gameData.existsBoatAround(x0 + i, y0)) {\n retry = true;\n }\n }\n //POSITION BOAT\n if (!retry) {\n ArrayList pos = new ArrayList();\n for (int i = 0; i < l; i++) {\n int x = x0 + i;\n gameData.getMatrix()[y0][x] = b.getBoatid();\n pos.add(new int[]{x, y0});\n }\n b.setPositions(pos);\n }\n\n //VERTICAL\n } else {\n // determine the tile on which to start\n x0 = rand.nextInt(gameData.getBoard().getWidth());\n y0 = rand.nextInt(gameData.getBoard().getHeight() - l);\n\n // we suppose it's a good starting point\n retry = false;\n for (int i = 0; i < l; i++) {\n if (gameData.existsBoatAround(x0, y0 + i)) {\n retry = true;\n }\n }\n if(!retry){\n ArrayList pos = new ArrayList();\n for (int i = 0; i < l; i++) {\n int y = y0 + i;\n gameData.getMatrix()[y][x0] = b.getBoatid();\n pos.add(new int[]{x0, y});\n }\n b.setPositions(pos);\n }\n }\n }\n }\n }", "@Override\r\n public void onClick(View view){\n giveQuestion(rand);\r\n answer.setText(\"Check\");\r\n questionNum.setVisibility(View.VISIBLE);\r\n question.setVisibility(View.VISIBLE);\r\n asia.setVisibility(View.VISIBLE);\r\n africa.setVisibility(View.VISIBLE);\r\n sAmerica.setVisibility(View.VISIBLE);\r\n nAmerica.setVisibility(View.VISIBLE);\r\n euro.setVisibility(View.VISIBLE);\r\n scoreF.setVisibility(View.VISIBLE);\r\n choice.setVisibility(View.VISIBLE);\r\n\r\n answer.setOnClickListener(\r\n\r\n\r\n\r\n new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n\r\n int selected = Integer.parseInt(choice.getText().toString());\r\n if ( selected == 25091995){\r\n Intent intent = new Intent(\"doston2509.com.guesscontinent.Details\");\r\n startActivity(intent);\r\n } else {\r\n Matching(rand, selected);\r\n rand = Random();\r\n\r\n number++;\r\n questionNum.setVisibility(View.VISIBLE);\r\n questionNum.setText(\"Question Number: \" + number);\r\n choice.setText(\"\");\r\n giveQuestion(rand);\r\n }\r\n }\r\n }\r\n\r\n\r\n\r\n );\r\n\r\n// finishing.setOnClickListener(\r\n// new View.OnClickListener() {\r\n// @Override\r\n// public void onClick(View v) {\r\n// publishScore = score;\r\n//\r\n//\r\n// Intent intent = new Intent(\"doston2509.com.guesscontinent.Finish\");\r\n// startActivity(intent);\r\n// intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\r\n// }\r\n// }\r\n// );\r\n }", "public void randomizeDirection()\n\t{\n\t\txSpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t\tySpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t}", "@Test\n\tpublic void testSwichposition() {\n\t\tresultlist = DoRotation.swichposition(initialList, 0, 0);\n\t\texpectedList = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5, 6));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Switching position from 0 to 0\", resultlist.toArray(), expectedList.toArray());\n\t\t\n//\t\tresultlist = DoRotation.swichposition(initialList, 0, 5);\n//\t\texpectedList = new ArrayList<>(Arrays.asList(6, 2, 3, 4, 5, 1));\n//\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n//\t\tassertArrayEquals(\"Switching position from 0 to 5\", resultlist.toArray(), expectedList.toArray());\n\t\t\n//\t\tresultlist = DoRotation.swichposition(initialList, 5, 0);\n//\t\texpectedList = new ArrayList<>(Arrays.asList(6, 2, 3, 4, 5, 1));\n//\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n//\t\tassertArrayEquals(\"Switching position from 5 to 0\", resultlist.toArray(), expectedList.toArray());\n\t\t\n\t\tresultlist = DoRotation.swichposition(initialList, 2, 3);\n\t\texpectedList = new ArrayList<>(Arrays.asList(1, 2, 4, 3, 5, 6));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Switching position from 2 to 3\", resultlist.toArray(), expectedList.toArray());\n\t}", "public void onClickShuffle() {\n if (player != null) {\n serviceBound = false;\n player.stopMedia();\n Random r = new Random();\n currentSong = r.nextInt(audioList.size());\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n playListAdapter.getList()\n .get(playListAdapter.selected).setSelect(false);\n playListAdapter.notifyItemChanged(playListAdapter.selected);\n\n playListAdapter.selected = getCurrentSong();\n playListAdapter.getList()\n .get(playListAdapter.selected).setSelect(true);\n playListAdapter.notifyItemChanged(playListAdapter.selected);\n }\n }\n }", "public void shuffleDeck() {\n for (int i = 0; i < TOTAL_NUMBER_OF_CARDS - 1; i++) {\n Random r = new Random();\n int x = r.nextInt(TOTAL_NUMBER_OF_CARDS);\n Card y = deck.get(x);\n deck.set(x, deck.get(i));\n deck.set(i, y);\n }\n }", "public int[] shuffle() {\n int[] shuffled = Arrays.copyOf(origin, origin.length);\n \n for (int i = shuffled.length - 1; i > 0; i--) {\n int index = random.nextInt(i + 1);\n int temp = shuffled[i];\n shuffled[i] = shuffled[index];\n shuffled[index] = temp;\n }\n return shuffled;\n }", "public void switchToMap()\n {\n feedbackLabel.setVisible(false);\n d.setVisible(false);\n a.setText(destinations[0].getName());\n b.setText(destinations[1].getName());\n c.setText(destinations[2].getName());\n currentClue=destinations[0].getRandClue();\n questionLabel.setText(currentClue);\n atQuestionStage=false;\n shuffleButtons();\n questionLabel.setBounds(650-questionLabel.getPreferredSize().width,120,600,30);\n mapImageLabel.setVisible(true);\n mapImageLabel.repaint();\n revalidate();\n }" ]
[ "0.6559208", "0.6489735", "0.6363869", "0.63433206", "0.63361067", "0.63332516", "0.62767047", "0.6270291", "0.6251897", "0.62013316", "0.61759317", "0.61604565", "0.61047834", "0.61047834", "0.60842586", "0.60427815", "0.60399306", "0.602784", "0.599899", "0.5998594", "0.5993071", "0.5986726", "0.5977214", "0.5962081", "0.594912", "0.59203655", "0.5908185", "0.5900797", "0.590021", "0.5897228", "0.58806616", "0.5870154", "0.585314", "0.5841731", "0.58203703", "0.5780182", "0.57725686", "0.5764674", "0.5760457", "0.5753045", "0.5741917", "0.5740064", "0.57166386", "0.5716477", "0.57062125", "0.56865954", "0.5664479", "0.5662682", "0.565723", "0.56204844", "0.56204695", "0.5612395", "0.5609181", "0.56039584", "0.5600653", "0.5582145", "0.5580287", "0.5567335", "0.5555558", "0.55513525", "0.55468696", "0.5545186", "0.55360377", "0.55347204", "0.5532947", "0.5532318", "0.55275327", "0.5527523", "0.55263835", "0.5525974", "0.55238557", "0.552253", "0.55123454", "0.5509879", "0.55087095", "0.5503248", "0.5497918", "0.5487368", "0.54869497", "0.54842794", "0.54731303", "0.54723465", "0.5461345", "0.54608864", "0.54602915", "0.5452109", "0.54470634", "0.544307", "0.54235625", "0.5408651", "0.53991663", "0.5397703", "0.5395656", "0.5388496", "0.53842634", "0.53781456", "0.53765106", "0.5374505", "0.53712", "0.53653914" ]
0.6663456
0
Switches the game panel to the Country stage.
public void switchToCountry() { questionLabel.setText(currentQuestion.getQuestion()); d.setVisible(true); atQuestionStage=true; mapImageLabel.setVisible(false); a.setText("A"); b.setText("B"); c.setText("C"); a.setBounds(380,220,a.getPreferredSize().height+20,30); b.setBounds(500,220,b.getPreferredSize().height+20,30); c.setBounds(380,320,c.getPreferredSize().height+20,30); d.setBounds(500,320,d.getPreferredSize().height+20,30); questionLabel.setBounds(380,100,600,100); revalidate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n public void changeCountry(ActionEvent event) {\n Countries countries = countryCB.getSelectionModel().getSelectedItem();\n\n showStatesProvinces(countries.getCountryID());\n }", "private void pickCountry() {\r\n\t\tmch.clicked = false;\r\n\t\tloadButton.setVisible(false);\r\n\t\t\r\n\t\t//creates a temporary country to be moved around\r\n\t\tCountry tempC = null;\r\n\r\n\t\t//ensure the country that was clicked has yet to be claimed\r\n\t\tfor (int j = 0; j < CountryPicker.size(); j++) {\r\n\t\t\t//Add this country to the player's arrayList\r\n\t\t\tif (hoveredColor.equals(CountryPicker.get(j).getDetectionColor())) {\r\n\t\t\t\tCountryPicker.get(j).setClicked(true);\r\n\t\t\t\ttempC = CountryPicker.get(j);\r\n\t\t\t\t//colors the chosen country to the selecting player's color\r\n\t\t\t\tfor (int i = 0; i < CountryPicker.size(); i++) {\r\n\t\t\t\t\tif (CountryPicker.get(i).isClicked() == true) {\r\n\t\t\t\t\t\t threadz.recolorCountry(CountryPicker.get(i), players.get(turnCounter).getColor(), false );\r\n\t\t\t\t\t\tCountryPicker.remove(i);\r\n\t\t\t\t\t\ttempC.setTroops(1);\r\n\t\t\t\t\t\tplayers.get(turnCounter).addCountries(tempC);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Move on to the next player's turn\r\n\r\n\t\t\t\tturnCounter++;\r\n\t\t\t\tif (turnCounter >= players.size()) {\r\n\t\t\t\t\tturnCounter = 0;\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if there are no countriies left, reset the turn so player one moves first\r\n\t\tif (CountryPicker.size() == 0) {\r\n\t\t\tturnCounter = 0;\r\n\t\t}\r\n\r\n\t}", "private void showStatesProvinces(int countryID){\n this.firstLevelDivisions = FirstLevelDivisionsDAOImpl.getAllStatesProvinces(countryID);\n if (countryID == 1){\n stateProvinceCB.setPromptText(\"Select A State\");\n }else{\n stateProvinceCB.setPromptText(\"Select A Province\");\n }\n stateProvinceCB.setItems(this.firstLevelDivisions);\n }", "public void handleCountrySelection(ActionEvent actionEvent) {\n }", "public void switchGame() {\n \tplayerController.clearKeysPressed();\n game.game1 = !game.game1;\n if (game.game1) {\n \tgame.gameSnapshot = game.game1Snapshot;\n \tgame.rooms = game.game1Rooms;\n \tgame.characters = game.game1Characters;\n \tgame.player = game.player1;\n } else {\n \tgame.gameSnapshot = game.game2Snapshot;\n \tgame.rooms = game.game2Rooms;\n \tgame.characters = game.game2Characters;\n \tgame.player = game.player2;\n }\n \n currentNPCs = game.gameSnapshot.map.getNPCs(game.player.getRoom());\n getTileRenderer().setMap(game.player.getRoom().getTiledMap());\n getTileRenderer().clearPeople();\n getTileRenderer().addPerson((List<AbstractPerson>) ((List<? extends AbstractPerson>) currentNPCs));\n getTileRenderer().addPerson(game.player);\n }", "public void rename_stage() {\r\n\t\tSelectStageDialog s = new SelectStageDialog(this,false);\r\n\t\ts.setAlwaysOnTop(true);\r\n\t\ts.setLocationRelativeTo(null);\r\n\t\ts.setVisible(true);\r\n\t}", "public void switchToTalentPanel() {\r\n this.midPanelCards.show(this.flipPanel, \"TalentPanel\");\r\n }", "private void setCountrySelected(String countrySelected, String divisionSelected) {\n for (Countries country : countriesList) {\n if (country.getCountry().equals(countrySelected)){\n this.countryCB.setValue(country);\n this.firstLevelDivisions = FirstLevelDivisionsDAOImpl.getAllStatesProvinces(country.getCountryID());\n stateProvinceCB.setItems(this.firstLevelDivisions);\n setSelectedStateProvince(country.getCountryID(), divisionSelected);\n return;\n }\n }\n }", "public void setCountry(Country country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void switchToTowerPanel() {\r\n this.midPanelCards.show(this.flipPanel, \"TowerPanel\");\r\n }", "@Override\n\tpublic void show() {\n\t\tsetUpGame();\n\t}", "public void land() {\n Game currentGame = this.getGame();\n this.setHasBeenVisited(true);\n currentGame.setMode( Game.Mode.GAME_WON);\n\n }", "public void setCountry(java.lang.String Country) {\n this.Country = Country;\n }", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void initGameModeChoice() {\n\t\tWorld.clear();\n\t\tstate = STATE.MENU;\n\t\tinitBackground();\n\t\tWorld.add(new Logo(Screen.getCenterX() - Logo.WIDTH / 2, Screen\n\t\t\t\t.getHeight() * 3 / 4 - Logo.HEIGHT / 2));\n\t\tWorld.add(new SinglePlayerButton(Screen.getCenterX()\n\t\t\t\t- StartButton.WIDTH / 2, Screen.getHeight() * 3 / 8\n\t\t\t\t- StartButton.HEIGHT / 2, this));\n\t\tWorld.add(new MultiPlayerButton(Screen.getCenterX() - StartButton.WIDTH\n\t\t\t\t/ 2, Screen.getHeight() * 2 / 8 - StartButton.HEIGHT / 2, this));\n\t\tWorld.add(new TextStatic(footerText, Screen.getCenterX()\n\t\t\t\t- footerText.length() * Sprite.CHAR_WIDTH / 2,\n\t\t\t\tSprite.CHAR_HEIGHT, Color.yellow));\n\n\t}", "@Override\r\n\tpublic void setStage(int stage) {\n\r\n\t}", "private void modeSelectionSwitchToMainMenu(){\n pause();\n Pane canvas = new Pane();\n Stage stage = new Stage();\n stage.setTitle(\"GameMode Selection\");\n Label label = new Label(\"GameMode Selection\");\n label.relocate(20, 50);\n label.setAlignment(Pos.CENTER);\n label.setPrefSize(180, 30);\n canvas.getChildren().add(label);\n Button buttonStandard = new Button(\"Standard Mode\");\n buttonStandard.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n world.setGameModeStandard();\n modeLabel.setText(\"Standard Mode\");\n stage.close();\n startTimer();\n }\n });\n buttonStandard.setOnMouseEntered(new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n label.setText(\"Standard Experience\");\n }\n });\n buttonStandard.setOnMouseExited(new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n label.setText(\"GameMode Selection\");\n }\n });\n buttonStandard.relocate(50, 100);\n buttonStandard.setPrefSize(120, 30);\n buttonStandard.alignmentProperty().set(Pos.CENTER);\n canvas.getChildren().add(buttonStandard);\n Button buttonBerserker = new Button(\"Berserker Mode\");\n buttonBerserker.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n world.setGameModeBerserker();\n modeLabel.setText(\"Berserker Mode\");\n stage.close();\n startTimer();\n }\n });\n buttonBerserker.setOnMouseEntered(new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n label.setText(\"Not a fan of Defense\");\n }\n });\n buttonBerserker.setOnMouseExited(new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n label.setText(\"GameMode Selection\");\n }\n });\n buttonBerserker.relocate(50, 150);\n buttonBerserker.setPrefSize(120, 30);\n buttonBerserker.alignmentProperty().set(Pos.CENTER);\n canvas.getChildren().add(buttonBerserker);\n Button buttonSurvival = new Button(\"Survival Mode\");\n buttonSurvival.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n world.setGameModeSurvival();\n modeLabel.setText(\"Survival Mode\");\n stage.close();\n startTimer();\n }\n });\n buttonSurvival.setOnMouseEntered(new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n label.setText(\"Never enough potion\");\n }\n });\n buttonSurvival.setOnMouseExited(new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n label.setText(\"GameMode Selection\");\n }\n });\n buttonSurvival.relocate(50, 200);\n buttonSurvival.setPrefSize(120, 30);\n buttonSurvival.alignmentProperty().set(Pos.CENTER);\n canvas.getChildren().add(buttonSurvival);\n canvas.setPrefSize(220, 300);\n stage.setScene(new Scene(canvas, 220, 300));\n stage.sizeToScene();\n stage.show();\n }", "private void displayCountryFields() {\n FieldRelatedLabel countryLabel = new FieldRelatedLabel(\"Country\", 750, 470);\n try {\n country = new CountryComboBox(750, 500);\n sceneNodes.getChildren().add(country);\n } catch (IOException e) { e.printStackTrace(); }\n\n\n sceneNodes.getChildren().addAll(countryLabel);\n }", "public void setCountryName(){\n\t\tcountry_name = JOptionPane.showInputDialog(FrameHandler.main_frame, \"Enter the name of your country\");\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tChangePanel.replacePanel(mf, hg, new GamePanel(mf, p));\n\t\t\t}", "public void enter() {\n // get data from current level\n GameState gs = (GameState) getStateMachine().getStates().get(\"game\");\n currentLevel = gs.getCurrentLevel();\n\n // TODO: for testing\n currentLevel.getCurrentquardant().setCleared(true);\n currentLevel.getCurrentquardant().setVisited(true);\n\n // set layout and add different panels\n getGamePanel().setLayout(layout);\n getGamePanel().add(shopPanel, BorderLayout.PAGE_START);\n //getGamePanel().add(mapPanel, BorderLayout.CENTER);\n\n // play backgroundmusic and toggle sound\n SoundBoard.BACKGROUND.play();\n SoundBoard.ERROR.play();\n\n }", "public void setCountry(java.lang.String country) {\n this.country = country;\n }", "public void setCountry(java.lang.String country) {\r\n this.country = country;\r\n }", "public void setCountry(String country) {\n\t\tthis.country = country;\n\t}", "@Override\n\tpublic void setStage(java.lang.String stage) {\n\t\t_scienceApp.setStage(stage);\n\t}", "public final void go() {\n this.getView().showCountries(this.getModel().getCountries());\n CountryFindChoice choice;\n do {\n choice = this.getView().askUserFindChoice();\n } while (choice == CountryFindChoice.error);\n String codeOrName = this.getView().askCodeOrName(choice);\n Country country = null;\n switch (choice) {\n case byCode:\n country = this.getModel().getCountryByCode(codeOrName);\n break;\n case byName:\n country = this.getModel().getCountryByName(codeOrName);\n break;\n }\n if(country != null) {\n this.getView().printMessage(country.getHelloWorld().getMessage());\n }\n this.getModel().close();\n }", "public void setCountry(Integer country) {\n this.country = country;\n }", "public void setCountry(Integer country) {\n this.country = country;\n }", "@Override\n public void onSelectCountry(Country country) {\n // get country name and country ID\n countryName.setText(country.getName());\n countryName.setVisibility(View.VISIBLE);\n countryID = country.getCountryId();\n statePicker.equalStateObject.clear();\n cityPicker.equalCityObject.clear();\n\n //set state name text view and state pick button invisible\n //pickStateButton.setVisibility(View.VISIBLE);\n //stateNameTextView.setVisibility(View.VISIBLE);\n stateNameTextView.setText(\"State\");\n cityName.setText(\"City\");\n // set text on main view\n flagImage.setBackgroundResource(country.getFlag());\n\n\n // GET STATES OF SELECTED COUNTRY\n for (int i = 0; i < stateObject.size(); i++) {\n // init state picker\n statePicker = new StatePicker.Builder().with(this).listener(this).build();\n State stateData = new State();\n if (stateObject.get(i).getCountryId() == countryID) {\n\n stateData.setStateId(stateObject.get(i).getStateId());\n stateData.setStateName(stateObject.get(i).getStateName());\n stateData.setCountryId(stateObject.get(i).getCountryId());\n stateData.setFlag(country.getFlag());\n statePicker.equalStateObject.add(stateData);\n }\n }\n }", "@FXML\n void selectCountry() {\n \t//hide all errors\n \thideErrors();\n \t//Getting start year and end year limits from /type/country/metadata.txt\n if (isComboBoxEmpty(T3_country_ComboBox.getValue())){\n //if nothing has been selected do nothing\n return;\n }\n String type = T3_type_ComboBox.getValue(); // getting type\n String country = T3_country_ComboBox.getValue(); // getting country\n //update ranges\n Pair<String,String> validRange = DatasetHandler.getValidRange(type,country);\n\n //update relevant menus\n\n int start = Integer.parseInt(validRange.getKey());\n int end = Integer.parseInt(validRange.getValue());\n //set up end list\n endOptions.clear();\n startOptions.clear();\n for (int i = start; i <= end ; ++i){\n endOptions.add(Integer.toString(i));\n startOptions.add(Integer.toString(i));\n }\n //set up comboBox default values and valid lists\n T3_startYear_ComboBox.setValue(Integer.toString(start));\n T3_endYear_ComboBox.setValue(Integer.toString(end));\n }", "@FXML\r\n public void handleOnEditButtonClick ()\r\n {\r\n mainApp.showCountryEditDialog(country);\r\n }", "public RemoveCountryPanel(GameEngine gameEngine,JPanel parent) {\n this.gameEngine = gameEngine;\n this.parent = parent;\n MapGenerator mapGenerator = gameEngine.getMapGenerator();\n initComponents();\n CountryList.setSelectedIndex(0);\n CountryList.setListData(mapGenerator.getListOfCountries().toArray());\n }", "private Player playOneGame() {\n\t\tCountry.Counter = map.countries.size();\n\t\tPlayer winner = null;\n\t\tint turn = 0;\n\t\t\n\t\tstartUpPhase();\n\t\t\n\t\tdo\n\t\t{\n\t\t\tturn++;\n\t\t\tSystem.out.println(\"\\n - TURN \" + turn + \" -\");\n\n\t\t\tfor(Player p : map.players) \n\t\t\t{\n\t\t\t\tif(p.ownedCountries.size() > 0)\n\t\t\t\t{\n\t\t\t\t\treinforcementPhase(p);\n\t\t\t\t\tattackPhase(p);\n\t\t\t\t\t\n\t\t\t\t\tif(map.isOwned()) {\n\t\t\t\t\t\twinner = p;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfortificationPhase(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}while(!map.isOwned() && turn < maximumTurns); /* When map is owned, end of the game */\n\t\t\n\t\treturn winner;\n\t}", "public void onCountrySelect(ActionEvent actionEvent) {\n divisionCombo.getItems().clear();\n int selectedCountryId;\n if (countryCombo.getValue().equals(\"U.S\")) {\n selectedCountryId = 1;\n }\n else if (countryCombo.getValue().equals(\"UK\")) {\n selectedCountryId = 2;\n }\n else if (countryCombo.getValue().equals(\"Canada\")) {\n selectedCountryId = 3;\n }\n else {\n selectedCountryId = 0;\n }\n\n ObservableList<String> divisionNames = FXCollections.observableArrayList();\n for (FirstLevelDivisions f : DBFirstLevelDivisions.getAllDivisionsFromCountryID(selectedCountryId)) {\n divisionNames.add(f.getName());\n }\n divisionCombo.setItems(divisionNames);\n }", "public void setCountryName(String value);", "@Override\r\n public void start(Stage primaryStage) throws Exception{\n primaryStage.setTitle(\"Color switch\");\r\n Gameplay obj1 = new Gameplay();\r\n obj1.mainmenu(primaryStage);\r\n// pane.getChildren().add(new Polygon(10,20,30,10,20,30));\r\n\r\n }", "void goToWhiteboardSelect(){\n CollaboardGUI.this.setSize(500,500);\n CardLayout layout = (CardLayout) panels.getLayout();\n layout.show(panels, \"whiteboard\");\n }", "@Override\n public void onSelectCountry(Country country) {\n // get country name and country ID\n binding.editTextCountry.setText(country.getName());\n countryID = country.getCountryId();\n statePicker.equalStateObject.clear();\n cityPicker.equalCityObject.clear();\n \n //set state name text view and state pick button invisible\n setStateListener();\n \n // set text on main view\n// countryCode.setText(\"Country code: \" + country.getCode());\n// countryPhoneCode.setText(\"Country dial code: \" + country.getDialCode());\n// countryCurrency.setText(\"Country currency: \" + country.getCurrency());\n// flagImage.setBackgroundResource(country.getFlag());\n \n \n // GET STATES OF SELECTED COUNTRY\n for (int i = 0; i < stateObject.size(); i++) {\n // init state picker\n statePicker = new StatePicker.Builder().with(this).listener(this).build();\n State stateData = new State();\n if (stateObject.get(i).getCountryId() == countryID) {\n \n stateData.setStateId(stateObject.get(i).getStateId());\n stateData.setStateName(stateObject.get(i).getStateName());\n stateData.setCountryId(stateObject.get(i).getCountryId());\n stateData.setFlag(country.getFlag());\n statePicker.equalStateObject.add(stateData);\n }\n }\n }", "public void setCountryName(String countryName) {\n this.countryName = countryName;\n }", "public void setCountryName(String countryName) {\n this.countryName = countryName;\n }", "private void gameState(){\r\n\t\tadd(gamePanel,BorderLayout.CENTER);\r\n\t\t\r\n\t\tif((cost + current) <= loss){\r\n\t\t\tSystem.out.println(\"The Game is Up.\");\r\n\t\t\tgamePanel.add(gameOver);\r\n\t\t\tsearchPanel.setVisible(false);\r\n\t\t\tgamePanel.setVisible(true);\r\n\t\t}else if((cost + current) >= profit){\r\n\t\t\tSystem.out.println(\"The Game is On!\");\r\n\t\t\tgamePanel.add(gameOn);\r\n\t\t\tsearchPanel.setVisible(false);\r\n\t\t\tgamePanel.setVisible(true);\r\n\t\t}\r\n\r\n\t}", "public void prevCountry(View view) {\n if (!countryList.getCountryList().isEmpty() && index > 1) {\n index -= 1;\n displayCountry();\n }\n }", "public void switchToGameScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"game\");\n \troom.reset();\n }", "public void singlePlayerChosen(){\n DifficultyViewController dif = new DifficultyViewController(this);\n dif.showView();\n this.hideView();\n }", "public void setStage(int stage) {\r\n\t\tthis.stage = stage;\r\n\t}", "public static void showPreviousSelectedGameType() {\r\n\t\tGameSetup.threeHanded.setState(Main.isThreeHanded);\r\n\t\tGameSetup.fourHandedSingle.setState(Main.isFourHandedSingle);\r\n\t\tGameSetup.fourHandedTeams.setState(Main.isFourHandedTeams);\r\n\t}", "public void setUpGame() {\n\t\tGameID = sql.getTheCurrentGameID() + 1;\r\n\t\tSystem.err.println(GameID);\r\n\t\ttheModel.shuffleDeck();\r\n\t\ttheModel.createPlayers();\r\n\t\ttheModel.displayTopCard();\r\n\t\t// theModel.chooseFirstActivePlayer();\r\n\t}", "public void startGame() \n\t{\n\t\tgamePanel.startGame();\n\t}", "public void show() {\n\t\t\n\t\tswitch(myState) {\n\t\t\tcase AppStates.KUNDENAUSWAHL: {\n\t\t\t\tsetDefaultKunde();\n\t\t\t\tthis.rechnungsText.setText(\"\");\n\t\t\t\twahlKunde.setDisable(false);\n\t\t\t\tcheckout.setDisable(true);\n\t\t\t\tanzeige.setDisable(true);\n\t\t\t\tfor (ProduktButton p : pOptions) {\n\t\t\t\t\tp.setDisable(true);\n\t\t\t\t}\n\t\t\t} break;\n\t\t\t\n\t\t\tcase AppStates.PRODUKTAUSWAHL: {\n\t\t\t\twahlKunde.setDisable(true);\n\t\t\t\tcheckout.setDisable(false);\n\t\t\t\tanzeige.setDisable(false);\n\t\t\t\tfor (ProduktButton p : pOptions) {\n\t\t\t\t\tif(checkLagerbestand(p.getProdukt()))\n\t\t\t\t\t\tp.setDisable(false);\n\t\t\t\t\telse\n\t\t\t\t\t\tp.setDisable(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} break;\n\t\t}\n\t\t\n\t\tstage.show();\n\t\t\n\t}", "private void setCountryFlag(View view, String country) {\n ImageView countryView = view.findViewById(R.id.collected_country);\n if (country != null) {\n String countryResource = String.format(\"country_%s\", country.toLowerCase());\n int id = mContext.getResources().getIdentifier(countryResource, \"drawable\", mContext.getPackageName());\n if (id != 0) {\n countryView.setImageResource(id);\n countryView.setVisibility(View.VISIBLE);\n return;\n }\n }\n countryView.setVisibility(View.GONE);\n }", "public static void setStage(Stage stage) {\n PageSwitcher.stage = stage;\n }", "public void setCountry (java.lang.String country) {\n\t\tthis.country = country;\n\t}", "public void setStage(GameStage stage) {\n\t\tif (stage == GameStage.DEAL) {\n\t\t\thands.clear();\n\t\t\tHand hand = new Hand();\n\t\t\tthis.addHand(hand);\n\t\t\tthis.activeHand = null;\n\t\t}\n\t\tfor (Hand hand : hands) {\n\t\t\tGameStage handStage = hand.getStage();\n\t\t\tif (handStage != GameStage.UNACTIVE && handStage.compareTo(stage) < 0) {\n\t\t\t\thand.setStage(stage);\n\t\t\t}\n\t\t}\n\t\tthis.stage = stage;\n\t}", "public void nextCountry(View view) {\n if (!countryList.getCountryList().isEmpty() && index < countryList.getCountryList().size()) {\n index += 1;\n displayCountry();\n }\n }", "@Override\n public void show(final Stage primaryStage) {\n this.stage = primaryStage;\n\n view = viewProvider.get();\n\n nations = game\n .getHumanPlayer()\n .getNations()\n .stream()\n .sorted()\n .collect(Collectors.toList());\n\n deploymentViewModel.init();\n\n getAndBindViewModel();\n\n deploymentViewModel.setModel();\n\n view.show(stage, game.getScenario());\n\n markAllAirfields();\n\n registerCallbacks();\n registerTabChange();\n selectFirstTab();\n\n view.finish();\n\n view.getContinueButton().setOnAction(event -> continueButton());\n view.getBackButton().setOnAction(event -> backButton());\n }", "public void gameSelect(Stage s, ToggleGroup t)\n\t{\n\t\ts.close();\n\n\t\tif (t.getSelectedToggle().getUserData().equals('P'))\n\t\t{\n\t\t\tconnectToServerPVP();\n\t\t}\n\n\t\tif (t.getSelectedToggle().getUserData().equals('C'))\n\t\t{\n\t\t\tconnectToServerComp();\n\t\t}\n\n\t}", "public void changeStage(Stage currentStage,Stage goToStage){\n goToStage.show();\n currentStage.hide();\n }", "private void setLanguageScreen(){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(2, 1, \"Choose a language/Wybierz język:\");\n\t\tscreenUI.drawText(1, 3, \"[a]: English\");\n\t\tscreenUI.drawText(1, 4, \"[b]: Polski\");\n\t}", "@Override\n public void putCardMode() {\n gameboardPanel.putCardMode();\n leaderCardsPanel.disableProductionButtons();\n }", "public GameWindow(){\n setSize(1012,785);\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n setLayout(null);\n\n JLabel sun = new JLabel(\"SUN\");\n sun.setLocation(37,80);\n sun.setSize(60,20);\n\n GamePanel gp = new GamePanel(sun);\n gp.setLocation(0,0);\n getLayeredPane().add(gp,new Integer(0));\n \n PlantCard sunflower = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_sunflower.png\")).getImage());\n sunflower.setLocation(110,8);\n sunflower.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.Sunflower;\n });\n getLayeredPane().add(sunflower,new Integer(3));\n\n PlantCard peashooter = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_peashooter.png\")).getImage());\n peashooter.setLocation(175,8);\n peashooter.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.Peashooter;\n });\n getLayeredPane().add(peashooter,new Integer(3));\n\n PlantCard freezepeashooter = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_freezepeashooter.png\")).getImage());\n freezepeashooter.setLocation(240,8);\n freezepeashooter.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.FreezePeashooter;\n });\n getLayeredPane().add(freezepeashooter,new Integer(3));\n\n\n\n getLayeredPane().add(sun,new Integer(2));\n setResizable(false);\n setVisible(true);\n }", "private void enterSinglePlayerMode(Game game) {\n if (!game.isStarted() && !game.isGameOver()) {\n game.startGame();\n initSubSystems(game);\n stateSession.initialGame = new Game(game);\n }\n }", "private void ActionChooseCountry() {\n final AlertDialog.Builder dialog = new AlertDialog.Builder(getContext());\n dialog.setTitle(getString(R.string.dialog_title_choose_country));\n\n final List<String> countryNames = Arrays.asList(getResources().getStringArray(R.array.countries_names));\n final List<String> countryArgs = Arrays.asList(getResources().getStringArray(R.array.countries_arg));\n\n final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_1);\n arrayAdapter.addAll(countryNames);\n\n dialog.setNegativeButton(getString(R.string.dialog_btn_cancel), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n\n dialog.setAdapter(arrayAdapter, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n CoutryArg = countryArgs.get(i);\n\n tvChooseCountry.setText(countryNames.get(i));\n if (SourceId != null) {\n SourceId = null;\n tvChooseSource.setText(R.string.tv_pick_sourse);\n currentPage = 1;\n }\n }\n });\n dialog.show();\n }", "private void startGame() {\n betOptionPane();\n this.computerPaquetView.setShowJustOneCard(true);\n blackjackController.startNewGame(this);\n }", "public void switchToGameOverScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"gameover\");\n }", "public void switchToUpgradePanel() {\r\n this.midPanelCards.show(this.flipPanel, \"UpgradePanel\");\r\n }", "public void setCurrentJobCountry(CountryFilter currentJobCountry) {\n\t\tthis.currentJobCountry = currentJobCountry;\n\t}", "public void loadGameView() {\n\t\ttry {\n\t\t\tprimaryStage.setTitle(\"Spiel Laden\");\n\t\t\tBorderPane root = new BorderPane();\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/LoadGame.fxml\"));\n\t\t\troot = loader.load();\n\t\t\tLoadGameViewController loadGameViewController = (LoadGameViewController) loader.getController();\n\t\t\tloadGameViewController.setOnitamaController(onitamaController);\n\t\t\tloadGameViewController.init();\n\t\t\tScene scene = new Scene(root);\n\t\t\t//((Stage) outerPane.getScene().getWindow()).setScene(scene);\n\t\t\t//LoadViewController.primaryStage.setScene(scene);\n\t\t\tPlatform.runLater(() -> { LoadViewController.primaryStage.setScene(scene); });\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void setSelectedStateProvince(int countryID, String divisionSelected) {\n for (FirstLevelDivisions division: firstLevelDivisions) {\n if (division.getCountryID() == countryID && division.getDivision().equals(divisionSelected)){\n stateProvinceCB.setValue(division);\n }\n\n }\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tswitch( FinalJeopardyScreen.this.stage )\n\t\t\t{\n\t\t\t\tcase TITLE:\n\t\t\t\t\tFinalJeopardyScreen.this.stage = FinalJeopardyStage.CATEGORY;\n\t\t\t\t\tFinalJeopardyScreen.this.mainScreen.label = FinalJeopardyScreen.this.category.name;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CATEGORY:\n\t\t\t\t\tFinalJeopardyScreen.this.stage = FinalJeopardyStage.CLUE;\n\t\t\t\t\tFinalJeopardyScreen.this.mainScreen.label = FinalJeopardyScreen.this.clue.text;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CLUE:\n\t\t\t\t\tFinalJeopardyScreen.this.stage = FinalJeopardyStage.ANSWER;\n\t\t\t\t\tFinalJeopardyScreen.this.mainScreen.label = FinalJeopardyScreen.this.clue.answer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase ANSWER:\n\t\t\t\t\tLogger.log( \"Final Jeopardy is complete!\");\n\t\t\t\t\tFinalJeopardyScreen.this.controller.startNextRound();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}", "public static void stageFour() {\n Scanner console = new Scanner(System.in);\n coar_maze1.partner = true;\n status.restart();\n if (play) {\n if (coar_maze1.china) {\n space_maze.ending3_china();\n } else if (coar_maze1.amazon_forest) {\n space_maze.ending3_amazon();\n }\n status.print_status();\n }\n\n while (play) {\n space_maze.fight();\n if (status.getBoss_health() > 0) {\n space_maze.boss_attack();\n }\n status.print_health();\n //win\n if (status.getBoss_health() < 0) {\n space_maze.win();\n play = false;\n }\n quit();\n }\n }", "public void startGame() {\n\t\tinitChips();\n\t\tassignAndStartInitialProjects();\n\t}", "public void setCountry(String country) {\r\n this.country = country.trim();\r\n }", "public void setCurrentCountry(CountryFilter currentCountry) {\n\t\tthis.currentCountry = currentCountry;\n\t}", "public static void changeGameState(GameState state) {\n gameState = state;\n\n switch (state) {\n case START_STATE:\n mainPanel.removeAll();\n mainPanel.add(_welcome);\n mainPanel.revalidate();\n mainPanel.repaint();\n break;\n case GAME_STATE:\n mainPanel.removeAll();\n mainPanel.add(_gameWindow);\n mainPanel.revalidate();\n mainPanel.repaint();\n break;\n case GAME_END:\n _gameWindow.TextLog(String.format(\"\\n\\nThe winner is %s !!!!\\nThe End\", PlayersLoop.getPlayers().get(0)));\n _gameWindow.EndGame();\n break;\n default:\n System.out.println(\"UNKNOWN STATE!\");\n //todo logger.\n break;\n }\n }", "public void switchPlayer(){\n // Menukar giliran player dalam bermain\n Player temp = this.currentPlayer;\n this.currentPlayer = this.oppositePlayer;\n this.oppositePlayer = temp;\n }", "private void deadSwitchToMainMenu(boolean win) {\n // TODO = reset LoopManiaWorld\n pause();\n Stage stage = new Stage();\n stage.setTitle(\"Game ended\");\n Label winLabel = new Label(\"You lose!\");\n if (win)\n winLabel = new Label(\"You win!\");\n Button restartGameButton = new Button(\"Back to Main Menu\");\n restartGameButton.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n stage.close();\n try {\n switchToMainMenu();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n });\n Pane canvas = new Pane();\n canvas.setPrefSize(300, 185);\n winLabel.relocate(123, 30);\n restartGameButton.relocate(80, 80);\n canvas.getChildren().addAll(winLabel, restartGameButton);\n stage.setScene(new Scene(canvas, 300, 185));\n stage.sizeToScene();\n stage.show();\n }", "private void changeView(){\r\n\t\t\tm.changeView(Views.GAME, gameType, game);\r\n\t}", "public void mainMenu() {\n Game.stage.setScene(mainMenuScene);\n Game.stage.show();\n }", "public void multiplayerSelected()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyDiscoveryState()\n clientController.searchForGames();\n\n //populate the GameSelectScreen's text box with the lobbies from the\n //state\n gameSelectScreen.clearGames();\n\n //set state to GAMESELECT\n state = CurrentWindow.GAMESELECT;\n\n //hide the intro screen and show the game select screen\n introScreen.setVisible(false);\n gameSelectScreen.setVisible(true);\n }", "private void start() {\n GameStateManager gameStateManager = new GameStateManager();\n JPanel jPanel = gameStateManager.getGameState().getJPanel();\n jPanel.setVisible(true);\n GUI gui = GUI.getInstance();\n gui.setjPanel(jPanel);\n gui.addKeyListener(gameStateManager);\n GameStateObserver gameStateObserver = new GameStateObserver(gameStateManager,gui);\n gameStateManager.addObserver(gameStateObserver);\n }", "public void country(String num) {\r\n\t\tSelect selectcountry = new Select(country);\r\n\t\tselectcountry.deselectByVisibleText(num);\r\n\t\tsleep(1000);\r\n\r\n\t}", "private void enterMultiPlayerMode(Game game) {\n initSubSystems(game);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void switchFrontEnd() {\n\t\tfor(ABoat b : ABmap.instance().boats) {\n\t\t\t((JComboBox<String>)components.get(\"nameComboBox\")).addItem(b.name);\n\t\t}\n\t\t((JPanel)components.get(\"initPanel\")).setVisible(false);\n\t\t((JPanel)components.get(\"controlPanel\")).setBounds(931, 11, 253, 185);\n\t\t((JPanel)components.get(\"controlPanel\")).setVisible(true);\n\t\t((JPanel)components.get(\"generalInfoPanel\")).setBounds(931, 230, 253, 208);\n\t\t((JPanel)components.get(\"generalInfoPanel\")).setVisible(true);\n\t\t((JPanel)components.get(\"boatInfoPanel\")).setBounds(931, 450, 253, 252);\n\t\t((JPanel)components.get(\"boatInfoPanel\")).setVisible(true);\n\t}", "public void showGame(boolean startZoom){\r\n\t\tactiveGame = this;\r\n\t\t\r\n\t\t// Assign AI if needed (needs to be done here to work with deserialization, as the AI engine is not serialized)\r\n\t\tif(aiPlayerIDs != null){\r\n\t\t\tfor(int i : aiPlayerIDs){\r\n\t\t\t\tPlayer p = state.players[i];\r\n\t\t\t\tp.assignAI(new ScriptAI(p));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tState.activeState = state;\r\n\t\tGEngine.getInstance().init(state, startZoom);\r\n\t\tMain.getInstance().setScreen(GEngine.getInstance());\r\n\t\tGEngine.getInstance().userInterface.updateCurrentPlayer();\r\n\t\tGdx.app.log(\"GameInstane\", \"Game shown using GameInstance\");\r\n\t}", "private void choseLocal(java.awt.event.MouseEvent evt) { \n\t\tgameChoice = 'a';\n\t\twindowComplete = true;\n\t}", "@Override\n\t\t\tpublic void onSelectCountry(String name, String code) {\n\t\t\t\tIntent intent = new Intent(contry.this, SignUpActivity.class);\n\t\t\t\t intent.putExtra(\"pays_iso\",code); \n\t\t\t\t intent.putExtra(\"pays_name\",name); \n\t\t\t\t intent.putExtra(\"device_key\",registrationId); \n\t\t\t\tstartActivityForResult(intent, 0);\n\t\t\t\toverridePendingTransition(R.anim.slidein, R.anim.slideout);\n\t\t\t\tfinish();\n\t\t\t}", "private void switches() {\n finland.setChecked(true);\n chosenArea = \"Finland\";\n wholeWorld.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n europe.setChecked(false);\n nordic.setChecked(false);\n finland.setChecked(false);\n chosenArea = \"Whole world\";\n }\n }\n });\n europe.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n wholeWorld.setChecked(false);\n nordic.setChecked(false);\n finland.setChecked(false);\n chosenArea = \"Europe\";\n\n }\n }\n });\n nordic.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n wholeWorld.setChecked(false);\n europe.setChecked(false);\n finland.setChecked(false);\n chosenArea = \"Nordic countries and Estonia\";\n }\n }\n });\n finland.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n wholeWorld.setChecked(false);\n europe.setChecked(false);\n nordic.setChecked(false);\n chosenArea = \"Finland\";\n }\n }\n });\n }", "public static void switchPlayers(){\n\t\tif(turn.equals(\"white\")){\n\t\t\tturn = \"black\";\n\t\t}\n\t\telse{\n\t\t\tturn = \"white\";\n\t\t}\n\t}", "public Country(String countryName) {\n\t\tthis.countryName = countryName.toLowerCase();\n\t}", "public void switchPlayer(){\n\n if(playerToggle.equals(\"X\")){\n playerToggle = \"O\";\n }\n\n else{\n playerToggle = \"X\";\n }\n\n SwitchDialog dialog = new SwitchDialog();\n dialog.show(getSupportFragmentManager(), \"nextUser\");\n }", "public Game(Stage s){\n\t\tmyStage = s;\n\t}" ]
[ "0.6400528", "0.63727456", "0.59128493", "0.58303195", "0.57732385", "0.5715012", "0.5707085", "0.5670643", "0.56608516", "0.5650882", "0.5650882", "0.5650882", "0.5650882", "0.5650882", "0.5650882", "0.56445456", "0.5643791", "0.561693", "0.5596722", "0.55922824", "0.5571237", "0.5571237", "0.5571237", "0.5544847", "0.55359775", "0.5533559", "0.55245274", "0.5519095", "0.55112255", "0.5501601", "0.5498845", "0.54956925", "0.54949754", "0.5486961", "0.5483045", "0.54807115", "0.54807115", "0.5479365", "0.54606026", "0.5453819", "0.54476833", "0.54474515", "0.5444995", "0.54370475", "0.5434966", "0.54346967", "0.54335964", "0.5418723", "0.5418723", "0.54103816", "0.54053384", "0.54017806", "0.53869444", "0.53730667", "0.537012", "0.5364511", "0.5350271", "0.5349467", "0.53461206", "0.534509", "0.53409094", "0.53394485", "0.5322657", "0.53121054", "0.5274232", "0.5273456", "0.5265075", "0.52607155", "0.5258015", "0.52542955", "0.52506006", "0.52481973", "0.5246158", "0.52452576", "0.52323824", "0.5231637", "0.5229167", "0.52198166", "0.5212065", "0.5206923", "0.51955485", "0.5184327", "0.5170747", "0.5141735", "0.51400244", "0.51305926", "0.5126519", "0.51257414", "0.5109152", "0.5104919", "0.5102499", "0.5101488", "0.5098513", "0.50963044", "0.5093925", "0.50920385", "0.5090292", "0.50889874", "0.5078583", "0.5078506" ]
0.71750474
0
Switches the game panel to the Map stage.
public void switchToMap() { feedbackLabel.setVisible(false); d.setVisible(false); a.setText(destinations[0].getName()); b.setText(destinations[1].getName()); c.setText(destinations[2].getName()); currentClue=destinations[0].getRandClue(); questionLabel.setText(currentClue); atQuestionStage=false; shuffleButtons(); questionLabel.setBounds(650-questionLabel.getPreferredSize().width,120,600,30); mapImageLabel.setVisible(true); mapImageLabel.repaint(); revalidate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }", "public void mapMode() {\n\t\ttheTrainer.setUp(false);\n\t\ttheTrainer.setDown(false);\n\t\ttheTrainer.setLeft(false);\n\t\ttheTrainer.setRight(false);\n\n\t\tinBattle = false;\n\t\tred = green = blue = 255;\n\t\tthis.requestFocus();\n\t}", "private void setMapMode(boolean mapMode) {\n\t\tif (this.isShowingMap != mapMode) {\n\n\t\t\tif (mapMode) {\n\n\t\t\t\tlargeStatsFragment.setVisibility(View.GONE);\n\t\t\t\tsmallStatsFragment.setVisibility(View.VISIBLE);\n\t\t\t\t// pnlLargeTiles.setVisibility(View.GONE);\n\t\t\t\t// pnlSmallTiles.setVisibility(View.VISIBLE);\n\t\t\t\tpnlMap.setVisibility(View.VISIBLE);\n\n\t\t\t\t// float alpha = getResources().getFraction(fraction.alpha_semi_transparent, 1, 1);\n\t\t\t\t// float alpha = ALPHA_TRANSPARENT;\n\t\t\t\t// pnlSmallTiles.setAlpha(alpha);\n\t\t\t\t// pnlBottomButtons.setAlpha(alpha);\n\t\t\t\t// pnlTopButtons.setAlpha(alpha);\n\t\t\t\t// pnlStopwatch.setAlpha(alpha);\n\n\t\t\t} else {\n\n\t\t\t\tlargeStatsFragment.setVisibility(View.VISIBLE);\n\t\t\t\tsmallStatsFragment.setVisibility(View.GONE);\n\t\t\t\t// pnlSmallTiles.setVisibility(View.GONE);\n\t\t\t\tpnlMap.setVisibility(View.GONE);\n\t\t\t\t// pnlLargeTiles.setVisibility(View.VISIBLE);\n\n\t\t\t\t// float alpha = getResources().getFraction(fraction.alpha_lighter, 1, 1);\n\t\t\t\t// float alpha = ALPHA_OPAQUE;\n\t\t\t\t// pnlSmallTiles.setAlpha(OPAQUE);\n\t\t\t\t// pnlBottomButtons.setAlpha(alpha);\n\t\t\t\t// pnlTopButtons.setAlpha(alpha);\n\t\t\t\t// pnlStopwatch.setAlpha(OPAQUE);\n\n\t\t\t}\n\n\t\t\tthis.isShowingMap = mapMode;\n\t\t\tthis.btnToggleMap.setChecked(mapMode);\n\n\t\t}\n\n\t\tif (this.isShowingMap) {\n\t\t\tLocation loc = workoutService == null ? null : workoutService.getService().getLastKnownLocation();\n\t\t\tif (loc != null) {\n\t\t\t\tshowOnMap(loc);\n\t\t\t}\n\t\t}\n\t}", "public void setMap()\n {\n gameManager.setMap( savedFilesFrame.getCurrent_index() );\n }", "private void setupMapView(){\n Log.d(TAG, \"setupMapView: Started\");\n\n view_stage_map = VIEW_MAP_FULL;\n cycleMapView();\n\n }", "@Override\n public void start(Stage primaryStage) {\n// if (screenWidth >= 414) {\n// screenWidth = 414;\n// }\n// if (screenHeight >= 736) {\n// screenHeight = 736;\n// }//preset stage/scene size\n\n //System.out.println(Integer.toString(screenWidth) + Integer.toString(screenHeight));\n System.out.print(\"Default:\");\n gameController = new GameController(1, 4);//default player and map size\n// gameController.newMapPane();//preload a Map Pane\n\n ScreenController mainContainer = new ScreenController();\n mainContainer.loadScreen(GroupGame.homeScreenID, GroupGame.homeScreenFile);\n mainContainer.loadScreen(GroupGame.newOptionID, GroupGame.newOptionFile);\n mainContainer.loadScreen(GroupGame.createPlayerID, GroupGame.createPlayerFile);\n mainContainer.loadScreen(GroupGame.MapScreenID, GroupGame.MapScreenFile);\n mainContainer.setScreen(GroupGame.homeScreenID);\n\n Group root = new Group();\n root.getChildren().addAll(mainContainer);\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "public void displayMap() {\n MapMenuView mapMenu = new MapMenuView();\r\n mapMenu.display();\r\n \r\n }", "public void setMap2D(FXMap map);", "public MapPanel(String map, Object[] toLoad) {\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(Color.white);\n\t\tthis.setPreferredSize(new Dimension(WIDTH, HEIGHT));\n\t\tthis.setSize(this.getPreferredSize());\n\t\tthis.setVisible(true);\n\t\tthis.setFocusable(true);\n\t\tthis.requestFocus();\n\t\ttheMap = new Map(map, 50);\n\t\ttheTrainer = new Trainer(theMap, toLoad);\n\n\t\tinBattle = false;\n\t}", "public void showMapTypePanel(){\n mapTypePanel.showMapTypePanel();\n if(mapTypePanel.isVisible() && optionsPanel.isVisible()){\n optionsPanel.setVisible(false);\n if(iconPanel.isVisible()) iconPanel.setVisible(false);\n }\n if(routePanel.isVisible()) routePanel.setVisible(false); closeDirectionList();\n canvas.repaint();\n }", "public void leftPressed()\r\n {\r\n worldPanel.newMapPos(-zoom,0);\r\n miniMap.newMapPos(-1,0);\r\n }", "@Override\r\n public void mapshow() {\r\n showMap l_showmap = new showMap(d_playerList, d_country);\r\n l_showmap.check();\r\n }", "public void testMapping() {\n\t\ttry { Thread.sleep(1000); } catch (Exception e) { }\n\t\tPuzzleView view = app.getPuzzleView();\n\t\t\n\t\tapp.setVisible(true);\n\t\t\n\t}", "public void startGame(int map) {\r\n if (!state[0]) {\r\n menu.setVisible(false);\r\n if (game == null) {\r\n game = new Game();\r\n game.setPreferredSize(new Dimension(GAME_WIDTH, GAME_HEIGHT));\r\n }\r\n game.map = map;\r\n frame.add(game, BorderLayout.CENTER);\r\n state[0] = true;\r\n game.setVisible(true);\r\n frame.pack();\r\n game.init();\r\n game.start();\r\n }\r\n }", "@FXML\n\tpublic void loadMap(ActionEvent ev) {\n menuBar.getScene().getWindow().hide();\n \n\t\tStage map = new Stage();\n\t\ttry {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/FXML/Map.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tmap.setScene(scene);\n\t\t\tmap.show();\n\t\t\tmap.setResizable(false);\n\t\t\tmap.centerOnScreen();\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\t\n\t}", "@FXML\n\tpublic void loadMap(ActionEvent ev) {\n menuBar.getScene().getWindow().hide();\n \n\t\tStage map = new Stage();\n\t\ttry {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/FXML/Map.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tmap.setScene(scene);\n\t\t\tmap.show();\n\t\t\tmap.setResizable(false);\n\t\t\tmap.centerOnScreen();\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\t\n\t}", "public void setMapPosition() {\n\t\txmap = levelState.getx();\n\t\tymap = levelState.gety();\n\t}", "public void moveTheMap() {\n \t if(streetLevelFragment != null && map != null){\n \t\t map.setCenter(streetLevelFragment.getStreetLevelModel().getPosition(), MapAnimation.LINEAR, map.getZoomLevel(), streetLevelFragment.getStreetLevelModel().getHeading(), 0);\n \t }\n }", "public void showmap() {\n MapForm frame = new MapForm(this.mapLayout);\n frame.setSize(750, 540);\n frame.setLocationRelativeTo(null);\n frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n frame.setVisible(true);\n }", "public void upPressed()\r\n {\r\n worldPanel.newMapPos(0,-zoom);\r\n miniMap.newMapPos(0,-1);\r\n }", "@Override\n\tpublic void drawMap(Map map) {\n\t\tSystem.out.println(\"Draw map\"+map.getClass().getName()+\"on SD Screen\");\n\t}", "public void showMap(boolean isEnd) {\n\t\t// Map shown inbetween games. Works by grabbing the system time in milliseconds,\n\t\t// adding 5000, and then counting down 1 second every second. Effectively keeping\n\t\t// the map screen up for 5 seconds.\n//\t\tif(legnum == 4) {\n//\t\t\treplay = new JButton(\"Replay\");\n//\t\t\treplay.setSize(frameWidth*5/100, frameHeight*5/100);\n//\t\t\tif(isOsprey) {\n//\t\t\t\treplay.setLocation((frameWidth/2)+frameWidth*30/100, frameHeight/2);\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\treplay.setLocation((frameWidth/2)+frameWidth*15/100, frameWidth/2);\n//\t\t\t}\n//\t\t\tframe.add(replay);\n//\t\t}\n\t\tlong tEnd = System.currentTimeMillis();\n\t\tframe.setVisible(true);\n\t\tlong tStart = tEnd + 3*1000;\n\t\twhile(tStart > tEnd) {\n\t\t\ttStart -= 1000;\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void looser()\n {\n this.mapFrame.looser();\n }", "private void startGame() {\r\n\t\tthis.gameMap.startGame();\r\n\t}", "public void onAddByMapPressed( ) {\n Router.Instance().changeView(Router.Views.AddWithMap);\n }", "public void printMap()\n {\n this.mapFrame.paint();\n this.miniMapFrame.paint();\n }", "public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}", "public static void generateNewPanel(boolean newMap) {\r\n\t\tif (MapGPanel.getInstance() != null) {\r\n\t\t\tMapGFrame.getInstance().remove(MapGPanel.getInstance());\r\n\t\t}\r\n\t\tMapGFrame.getInstance().add(MapGPanel.init(15, 15, 64, newMap));\r\n\t}", "public void bringSimpleMapToBack()\n\t{\n\t\tthis.openLayersMap.setStyleName(\"blipnip-gwt-Menu-Map-Back\");\n\t\t//this.openLayersMap.getElement().getStyle().setZIndex(-1); \n\t\t//this.openLayersMap.getElement().getFirstChildElement().getStyle().setZIndex(-1); // \n\t}", "public static void STAGE4() {\r\n\t\t\tOverseer4.setLevel4True();\r\n\t\t\t_z = new Maze(3);\r\n\t\t\t_s = new StringMap4();\r\n\t\t\tfinal JFrame fram = new JFrame();\r\n\t\t\t_p = new Player(_z);\r\n\t\t\t_q = new Question2();\r\n\t\t\t_q.questionpickL4();\r\n\t\t\t\r\n\t \t/*\r\n\t\t\t *UPDATES THE MAP TO WORLD 4\r\n\t\t\t *Sets up the JFrame and JPanel and updates the Map layout\r\n\t\t\t *Perform the required actions when there are inputs from keyboard\r\n\t\t\t *Functions the same as Overseer's constructor but without the introductions and a different world layout\r\n\t\t\t */\r\n\t\t scene = _s.updateMap(_p, _z, \"\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t fram.setTitle(\"World 4\");\r\n\t\t fram.setVisible(true);\r\n\t\t fram.setSize(800,800);\r\n\t\t fram.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t fram.setResizable(false);\r\n\t\t fram.add(scene);\r\n\t\t fram.add(_s.getMap());\r\n\t\t fram.addKeyListener(new KeyListener() {\r\n\t\t \tpublic void keyTyped(KeyEvent e) {}\r\n\t\t \t\r\n\t\t \tpublic void keyReleased(KeyEvent e) { }\r\n\r\n\t\t \tpublic void keyPressed(KeyEvent e) { \r\n\t\t \t\tint input = e.getKeyCode();\r\n\t\t \t\t\r\n\t\t \t\t//W - UP\r\n\t\t \t\tif(input == KeyEvent.VK_W) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"NORTH\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene);\r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\r\n\t\t\t \t\t}\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\t//S - DOWN\r\n\t\t \t\telse if(input == KeyEvent.VK_S) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"SOUTH\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene);\r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\r\n\t\t\t \t\t}\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\t//D - RIGHT\r\n\t\t \t\telse if(input == KeyEvent.VK_D) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"EAST\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene);\r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\r\n\t\t\t \t\t}\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\t//A - LEFT\r\n\t\t \t\telse if(input == KeyEvent.VK_A) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"WEST\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene); \r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\r\n\t\t\t \t\t}\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\t//EXIT BUTTON\r\n\t\t \t\telse if(input == KeyEvent.VK_E) {\r\n\t Window.msg(\"You left Princess Peach alone! \\nBowser has won, keeping Peach forever...\");\r\n\t\t \t\tSystem.exit(0);\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\t//HELP BUTTON\r\n\t\t \t\telse if(input == KeyEvent.VK_H) {\r\n\t\t \t\t\tWindow.msg(\"HELP:\"\r\n\t\t \t\t\t\t\t+ \"\\nUse W A S D keys to help you move around the maze.\"\r\n\t\t \t\t\t\t\t+ \"\\n Clicking E will exit the game, h will allow you to access help screen, and c for some neat credits.\"\r\n\t\t \t\t\t\t\t+ \"Your goal is to make it to princess peach by traveling through each world and staying alive.\"\r\n\t\t \t\t\t\t\t+ \"\\n\\n EXCLAMATION BLOCKS: Triggering it will either help you or give you an disadvantage....BEWARE!\"\r\n\t\t \t\t\t\t\t+ \"\\n\\n QUESTION BLOCKS: Not just any ordinary block with the traditional coins and power-ups.\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n\t\t-These cause questions to pop up. Getting them correct gives you 20 extra turns,\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n\t\t but getting them incorrect decreases the number of turns Mario has by 10.\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n\t\t -Leaving the question block empty results in getting it automatically wrong!!\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n *The whole Mushroom Kingdom depends on you...You got this Mario!!!*\");\r\n\t\t \t\t\t\t//\t+ \"Not answering a question correctly will lead to uncertain DOOM...\");\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\t//CREDITS BUTTON\r\n\t\t \t\telse if(input == KeyEvent.VK_C) {\r\n\t\t \t\t\tWindow.msg(\"END CREDITS\"\r\n\t\t\t\t\t+ \"\\n Code Outline: Me\"\r\n\t\t\t\t\t+ \"\\n Game Ideas: Me\"\r\n\t\t\t\t\t+ \"\\n All Other Code: Nathan\"\r\n\t\t\t\t\t+ \"\\n And Mario and Peach Lived Happily Ever After!\"\r\n\t\t\t\t\t+ \"The End\");\r\n\t\t \t\t\t\r\n\t\t \t\t}\r\n\t\t \t};\r\n\t\t \t});\r\n\t\t \t//revalidates the frame\r\n\t\t \tfram.revalidate();\r\n\t\t \t//used to dispose frame to start a new level/world\r\n\t\t \tif(Level4 == false) {\r\n\t \t\t\tfram.dispose();\r\n\t \t\t}\r\n\t\t }", "public void downPressed()\r\n {\r\n worldPanel.newMapPos(0,zoom);\r\n miniMap.newMapPos(0,1);\r\n }", "public void switchToTowerPanel() {\r\n this.midPanelCards.show(this.flipPanel, \"TowerPanel\");\r\n }", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "public void SetupMap()\n {\n mMap.setMyLocationEnabled(true);\n\n // GAME LatLng\n LatLng latLng = new LatLng(53.227668, -0.540038);\n\n // Create instantiate Marker\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n markerOptions.draggable(false);\n markerOptions.title(\"GAME\");\n\n MapsInitializer.initialize(getActivity());\n // Create Marker at pos\n mMap.addMarker(markerOptions);\n // Position Map Camera to pos\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(new CameraPosition(latLng, 100, 0, 0)));\n }", "private void moveToNewMap(GameWorldNode node) {\n\t\tresetValues();\n\t\tvisit(node);\n\t\tif (node.getNodeCode() == 29999) {\n\t\t\tcurrentImage.addAction(moveBy(0, 500, 3));\n\t\t\tcurrentImageGhost.addAction(moveBy(0, 500, 3));\n\t\t\tthis.addAction(sequence(delay(2), new Action() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean act(float delta) {\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.MAP_CODE, 1);\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.NODE_CODE, 30000);\n\t\t\t\t\tshowScreen(ScreenEnum.LOAD_GAME);\t\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}));\t\n\t\t}\n\t\telse {\n\t\t\tcurrentImage.addAction(moveBy(0, -500, 3));\n\t\t\tcurrentImageGhost.addAction(moveBy(0, -500, 3));\n\t\t\tthis.addAction(sequence(delay(2), new Action() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean act(float delta) {\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.MAP_CODE, 0);\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.NODE_CODE, 3000);\n\t\t\t\t\tshowScreen(ScreenEnum.LOAD_GAME);\t\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}));\t\n\t\t}\n\t}", "public static void restartGame(boolean newMap) {\r\n\t\t// KeyboardInput.getInstance().cleanListenerList();\r\n\t\tKeyboardInput.getInstance().resetAllKeys();\r\n\t\trestartPositions();\r\n\t\tgenerateNewPanel(newMap);\r\n\t\taddUnitPanels();\r\n\t\tpauseGame();\r\n\t\tMapGFrame.getInstance().setVisible(false);\r\n\t\tMapGFrame.getInstance().setVisible(true);\r\n\t\tMapGFrame.getInstance().setFocusable(true);\r\n\t}", "@Override\n public void resize(int width, int height) {\n stage.getViewport().update(width, height, true);\n stage.mapImg.setHeight(Gdx.graphics.getHeight());\n stage.mapImg.setWidth(Gdx.graphics.getWidth());\n stage.gameUI.show();\n }", "@Override\n protected void setUpMap() {\n super.setUpMap();\n // For showing a move to my location button and a blue\n // dot to show user's location\n MainActivity mainActivity = (MainActivity) getActivity();\n mMap.setMyLocationEnabled(mainActivity.checkIfGPSEnabled());\n }", "public void setMap01(){\n\t\tmapSelect = \"map01.txt\";\n\t\treloadMap(mapSelect);\n\t\tsetImg(mapSelect);\n\t}", "public void enterMap(Map map, int layer, int i, int j) {\n //1. add the tile to the map\n map.addTile( layer, i, j, this);\n }", "private void setupBoardViews(){ //This resets the view for use by the UI. Forces out of Design mode\n Log.d(TAG, \"setupBoardViews: Started\");\n view_stage_map = VIEW_MAP_START;\n cycleMapView();\n }", "public void paint(Map map, Graphics graphics, Camera camera, GraphicsManager graphicsManager)\r\n\t{\r\n\t\tgraphics.drawImage(graphicsManager.getPanelGaucheBas(), 0, 0, GameConfiguration.WINDOW_WIDTH, GameConfiguration.WINDOW_HEIGHT, null);\r\n\t\tint tileSize = GameConfiguration.TILE_SIZE;\r\n\t\t\r\n\t\tTile[][] tiles = map.getTiles();\r\n\t\tint width = GameConfiguration.WINDOW_WIDTH;\r\n\t\tint height = GameConfiguration.WINDOW_HEIGHT;\r\n\t\tif(GameConfiguration.launchInFullScreen) {\r\n\t\t\twidth = Toolkit.getDefaultToolkit().getScreenSize().width;\r\n\t\t\theight = Toolkit.getDefaultToolkit().getScreenSize().height;\r\n\t\t}\r\n\t\t//draw map\r\n\t\tfor (int lineIndex = 0; lineIndex < map.getLineCount(); lineIndex++) \r\n\t\t{\r\n\t\t\tfor (int columnIndex = 0; columnIndex < map.getColumnCount(); columnIndex++) \r\n\t\t\t{\r\n\t\t\t\tTile tile = tiles[lineIndex][columnIndex];\r\n//tilePos.x + tilePos.w >= 0 && tilePos.y + tilePos.h >= 0 && tilePos.x <= GAME_WIDTH && tilePos.y <= GAME_HEIGHT\r\n\t\t\t\tif(tile.getColumn() * tileSize - camera.getX() + tileSize >= 0 \r\n\t\t\t\t\t&& tile.getLine() * tileSize - camera.getY() + tileSize >= 0 \r\n\t\t\t\t\t&& tile.getColumn() * tileSize - camera.getX() <= width && tile.getLine() * tileSize - camera.getY() <= height) {\r\n\t\t\t\t\tAnimation animation = tile.getAnimation();\r\n\t\t\t\t\tgraphics.drawImage(graphicsManager.getGrassTile(), tile.getColumn() * tileSize - camera.getX(), tile.getLine() * tileSize - camera.getY(), tileSize, tileSize, null);\r\n\t\t\t\t\tgraphics.drawImage(animation.getFrame(), tile.getColumn() * tileSize - camera.getX(), tile.getLine() * tileSize - camera.getY(), tileSize, tileSize, null);\r\n\t\t\t\t\t/*graphics.setColor(Color.white);\r\n\t\t\t\t\tgraphics.drawRect(tile.getColumn() * tileSize - camera.getX(), tile.getLine() * tileSize - camera.getY(), tileSize, tileSize);*/\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String toggleMap() {\r\n\t\tMap temp = sensor.getTrueMap();\r\n\t\tif (Map.compare(temp, smap.getMap())) {\r\n\t\t\tsmap.setMap(map.copy());\r\n\t\t\treturn \"robot\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsmap.setMap(temp.copy());\r\n\t\t\treturn \"simulated\";\r\n\t\t}\r\n\t}", "private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }", "@Override\n public void onMapLoaded() {\n mMap.animateCamera(cu);\n\n }", "public void rightPressed()\r\n {\r\n worldPanel.newMapPos(zoom,0);\r\n miniMap.newMapPos(1,0);\r\n }", "protected void startMap(){\n Intent activityChangeIntent = new Intent(MainActivity.this, MapActivity.class);\n startActivity(activityChangeIntent);\n }", "public void setActiveMap(IMap map) {\n\t\tm_activeMap = map;\n\t\t\n\t\tFile imageLocation = map.getImage();\n\t\tif (! imageLocation.exists()) {\n\t\t\tFile altImage = map.getAltImage();\n\t\t\tif ( altImage != null && altImage.exists()) {\n\t\t\t\timageLocation = altImage;\n\t\t\t}\n\t\t}\n\t\t\n\t\tloadImage(imageLocation);\n\t\tupdateZoomCanvas();\n\t}", "public void printMap()\n {\n if(this.firstTime)\n {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() { setVisible(true); }\n });\n this.firstTime = false;\n }\n screen.repaint();\n }", "void setMapChanged();", "public void setMap(String mn){\r\n mapName = mn;\r\n currentMap = new ImageIcon(mapName);\r\n }", "public void mainMenu() {\n Game.stage.setScene(mainMenuScene);\n Game.stage.show();\n }", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "@FXML\n public void onMouseClickedNewMap(ActionEvent event) {\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/App_Risk_Game/src/main/java/View/createMap.fxml\"));\n Scene scene = new Scene(root);\n Stage stage = new Stage();\n stage.setScene(scene);\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void showMaps() throws Exception{\r\n MapMaintenanceBaseWindow mapMaintenanceBaseWindow = null;\r\n String unitNumber=mdiForm.getUnitNumber();\r\n \r\n if( ( mapMaintenanceBaseWindow = (MapMaintenanceBaseWindow)mdiForm.getFrame(\r\n CoeusGuiConstants.MAPS_BASE_FRAME_TITLE+\" \"+unitNumber))!= null ){\r\n if( mapMaintenanceBaseWindow.isIcon() ){\r\n mapMaintenanceBaseWindow.setIcon(false);\r\n }\r\n mapMaintenanceBaseWindow.setSelected( true );\r\n return;\r\n }\r\n \r\n MapMaintenanceBaseWindowController mapMaintenanceBaseWindowController = new MapMaintenanceBaseWindowController(unitNumber,false);\r\n mapMaintenanceBaseWindowController.display();\r\n \r\n }", "private void panMap(int x, int y){\r\n Point p = map.getMapCenter();\r\n p.x += x;\r\n p.y += y;\r\n map.setMapCenter(p);\r\n mapPane.render();\r\n }", "private void createGameMode() {\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n Rectangle fullScreenBounds = ge.getDefaultScreenDevice().getDefaultConfiguration().getBounds();\n boolean fs = ge.getDefaultScreenDevice().isFullScreenSupported();\n \n setTitle(gameName);\n setName(gameName);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n \n map = new UAVMap(this, UAVModes.GAME, fs);\n \n if (fs) {\n fullScreen = new Window(this);\n fullScreen.add(map.getCanvas());\n ge.getDefaultScreenDevice().setFullScreenWindow(fullScreen);\n } else {\n this.setSize((int)(.9 * fullScreenBounds.width), (int)(.9 * fullScreenBounds.height));\n this.setLocation(fullScreenBounds.x + (int) (.05 * fullScreenBounds.width), \n fullScreenBounds.y + (int) (.05 * fullScreenBounds.height));\n Container content = getContentPane();\n content.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1;\n c.weighty = 1;\n content.add(map.getCanvas(), c);\n setVisible(true);\n }\n map.initializeGame();\n map.startTimer(); \n }", "public void askMap() throws Exception{\n // Platform.runLater( () -> firstPage.closePrimaryStage());\n chooseMap = new ChooseMap();\n chooseMap.setRemoteController(senderRemoteController);\n Platform.runLater(\n () -> {\n // Update UI here.\n try {\n chooseMap.start(new Stage());\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n );\n\n }", "public void printMiniMap() \n { \n /* this.miniMapFrame(); */\n }", "private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }", "public void onStartup()\n/* 359: */ {\n/* 360:438 */ super.onStartup();\n/* 361: */ \n/* 362:440 */ this.mapPanel.addMouseListener(new MouseAdapter()\n/* 363: */ {\n/* 364: */ public void mouseClicked(MouseEvent e)\n/* 365: */ {\n/* 366:443 */ if (e.getButton() == 1)\n/* 367: */ {\n/* 368:444 */ Point p = e.getPoint();\n/* 369:445 */ if ((TileGIS.this.mapPanel.courtesyBounds != null) && (TileGIS.this.mapPanel.courtesyBounds.contains(p)))\n/* 370: */ {\n/* 371:446 */ TileGIS.this.getPresentation().openWebSite(TileGIS.this.mapPanel.tip.courtesyLnk);\n/* 372: */ }\n/* 373:447 */ else if ((TileGIS.this.mapPanel.courtesyImgBounds != null) && (TileGIS.this.mapPanel.courtesyImgBounds.contains(p)))\n/* 374: */ {\n/* 375:448 */ TileGIS.this.getPresentation().openWebSite(TileGIS.this.mapPanel.tip.courtesyLnk);\n/* 376: */ }\n/* 377: */ else\n/* 378: */ {\n/* 379:451 */ Point mP = TileGIS.this.mapPanel.panelToMap(p);\n/* 380:452 */ double lon = MercatorProj.XtoLon(mP.x, TileGIS.this.mapPanel.zoom);\n/* 381:453 */ double lat = MercatorProj.YtoLat(mP.y, TileGIS.this.mapPanel.zoom);\n/* 382:454 */ TileGIS.this.onClick(lat, lon);\n/* 383: */ }\n/* 384: */ }\n/* 385: */ }\n/* 386:458 */ });\n/* 387:459 */ getPresentation().getPanel().addContainerListener(new ContainerListener()\n/* 388: */ {\n/* 389: */ public void componentAdded(ContainerEvent e)\n/* 390: */ {\n/* 391:461 */ if (e.getChild() == TileGIS.this.placeholder.getJComponent()) {\n/* 392:462 */ TileGIS.this.getPresentation().getPanel().add(TileGIS.this.mapPanel);\n/* 393: */ }\n/* 394: */ }\n/* 395: */ \n/* 396: */ public void componentRemoved(ContainerEvent e)\n/* 397: */ {\n/* 398:467 */ if (e.getChild() == TileGIS.this.placeholder.getJComponent()) {\n/* 399:468 */ TileGIS.this.getPresentation().getPanel().remove(TileGIS.this.mapPanel);\n/* 400: */ }\n/* 401: */ }\n/* 402:472 */ });\n/* 403:473 */ this.placeholder.getJComponent().addComponentListener(new ComponentListener()\n/* 404: */ {\n/* 405: */ public void componentShown(ComponentEvent e) {}\n/* 406: */ \n/* 407: */ public void componentHidden(ComponentEvent e) {}\n/* 408: */ \n/* 409: */ public void componentResized(ComponentEvent e)\n/* 410: */ {\n/* 411:478 */ TileGIS.this.mapPanel.setSize(TileGIS.this.placeholder.getJComponent().getSize());\n/* 412: */ }\n/* 413: */ \n/* 414: */ public void componentMoved(ComponentEvent e)\n/* 415: */ {\n/* 416:482 */ TileGIS.this.mapPanel.setLocation(TileGIS.this.placeholder.getJComponent().getLocation());\n/* 417: */ }\n/* 418: */ });\n/* 419: */ }", "public WindowShiftMap() {\n initComponents();\n }", "private void setupMap() {\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getBaseContext());\n \t\tif ( status != ConnectionResult.SUCCESS ) {\n \t\t\t// Google Play Services are not available.\n \t\t\tint requestCode = 10;\n \t\t\tGooglePlayServicesUtil.getErrorDialog( status, this, requestCode ).show();\n \t\t} else {\n \t\t\t// Google Play Services are available.\n \t\t\tif ( this.googleMap == null ) {\n \t\t\t\tFragmentManager fragManager = this.getSupportFragmentManager();\n \t\t\t\tSupportMapFragment mapFrag = (SupportMapFragment) fragManager.findFragmentById( R.id.edit_gpsfilter_area_google_map );\n \t\t\t\tthis.googleMap = mapFrag.getMap();\n \n \t\t\t\tif ( this.googleMap != null ) {\n \t\t\t\t\t// The Map is verified. It is now safe to manipulate the map.\n \t\t\t\t\tthis.configMap();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public void clickOnMainMap(MouseEvent e) {\n //button 1\n //on stack\n //on planet\n Point p = SU.getSpaceMapClickPoint(e);\n\n if (e.getButton() == MouseEvent.BUTTON3) {\n SU.clickOnSpaceMapButton3(p);\n } else if (e.getButton() == MouseEvent.BUTTON1) {\n clickOnSpaceMapButton1(p);\n }\n }", "private void updateMap(final PlayerVision vision){\r\n\t\tint i, y, x;\n\t\t\n\t\t// add the current point to the map\n\t\taddToMap(east, north, vision.CurrentPoint);\n\t\t\n\t\t// add everything west to the map\n\t\tfor (i = 0; i < vision.mWest; i++){\n\t\t\tx = east - i - 1;\r\n\t\t\t\n\t\t\taddToMap(x, north, vision.West[i]);\n\t\t}\r\n\t\t\r\n\t\t// add everything east to the map\n\t\tfor (i = 0; i < vision.mEast; i++){\n\t\t\tx = east + i + 1;\r\n\t\t\t\n\t\t\taddToMap(x, north, vision.East[i]);\n\t\t}\r\n\t\t\r\n\t\t// add everything north to the map\n\t\tfor (i = 0; i < vision.mNorth; i++){\n\t\t\ty = north + i + 1;\r\n\t\t\t\n\t\t\taddToMap(east, y, vision.North[i]);\n\t\t}\r\n\t\t\n\t\t// add everything south to the map\n\t\tfor (i = 0; i < vision.mSouth; i++){\n\t\t\ty = north - i - 1;\r\n\t\t\t\n\t\t\taddToMap(east, y, vision.South[i]);\n\t\t}\r\n\t\t\n\t}", "public void figure() {\n this.isMap = false;\n System.out.println(\"Switch to figure mode\");\n }", "public final native void setMap(MapJSO map) /*-{\n\t\tthis.setMap(map);\n\t}-*/;", "public OverworldScreen(Game game) {\n super(\"OverworldScreen\", game);\n\n mScreenViewport = new ScreenViewport(0, 0, mGame.getScreenWidth(),\n mGame.getScreenHeight());\n if (mScreenViewport.width > mScreenViewport.height)\n mLayerViewport = new LayerViewport(240.0f, 240.0f\n * mScreenViewport.height / mScreenViewport.width, 240,\n 240.0f * mScreenViewport.height / mScreenViewport.width);\n else\n mLayerViewport = new LayerViewport(240.0f * mScreenViewport.height\n / mScreenViewport.width, 240.0f, 240.0f\n * mScreenViewport.height / mScreenViewport.width, 240);\n\n // Load in the bitmaps used on the main menu screen\n AssetStore assetManager = mGame.getAssetManager();\n\n\n assetManager.loadAndAddBitmap(\"LocationArrow\", \"img/LocationArrow.png\");\n assetManager.loadAndAddBitmap(\"OverworldMap\", \"img/OverworldMap.png\");\n\n // Define the spacing that will be used to position the buttons\n int spacingX = game.getScreenWidth() / 5;\n int spacingY = game.getScreenHeight() / 3;\n\n mOverworldMap = new GameObject(LEVEL_WIDTH / 2.0f,\n LEVEL_HEIGHT / 2.0f, LEVEL_WIDTH, LEVEL_HEIGHT, getGame()\n .getAssetManager().getBitmap(\"OverworldMap\"), this);\n\n // Create the trigger buttons\n mLocationButton = new PushButton(\n spacingX * 1.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton1 = new PushButton(\n spacingX * 2.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton2 = new PushButton(\n spacingX * 3.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton3 = new PushButton(\n spacingX * 4.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton4 = new PushButton(\n spacingX * 5.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tChangePanel.replacePanel(mf, hg, new GamePanel(mf, p));\n\t\t\t}", "public void win() {\n\n\t\t// exist next level?\n\t\tif (Project.project.getMaps().get(maptyp).size() > id + 1) {\n\t\t\tProject.project.startLevel(maptyp, id + 1);\n\n\t\t\t// save it\n\t\t\tif (Project.project.getMapLevel(maptyp) < id + 1) {\n\t\t\t\tProject.project.setMapLevel(maptyp, id + 1);\n\t\t\t}\n\t\t} else {\n\t\t\tPWindow.window.setActScene(new MessageScene(\"Gewonnen\", \"\", new MenuMainScene()));\n\t\t}\n\t}", "public void setMap(Map map) {\r\n\t\tthis.map = map;\r\n\t\tsmap.setMap(map);\r\n\t}", "@Override\n\tpublic void show () {\n overWorld = new Sprite(new TextureRegion(new Texture(Gdx.files.internal(\"Screens/overworldscreen.png\"))));\n overWorld.setPosition(0, 0);\n batch = new SpriteBatch();\n batch.getProjectionMatrix().setToOrtho2D(0, 0, 320, 340);\n\n // Creates the indicator and sets it to the position of the first grid item.\n indicator = new MapIndicator(screen.miscAtlases.get(2));\n // Creates the icon of Daur that indicates his position.\n icon = new DaurIcon(screen.miscAtlases.get(2));\n // Sets the mask position to zero, as this screen does not lie on the coordinate plane of any tiled map.\n screen.mask.setPosition(0, 0);\n screen.mask.setSize(320, 340);\n Gdx.input.setInputProcessor(inputProcessor);\n\n // Creates all relevant text.\n createText();\n // Sets numX and numY to the position of Daur on the map.\n numX = storage.cellX;\n numY = storage.cellY;\n indicator.setPosition(numX * 20, numY * 20 + 19);\n // Sets the icon to the center of this cell.\n icon.setPosition(numX * 20 + 10 - icon.getWidth() / 2, numY * 20 + 29 - icon.getHeight() / 2);\n // Creates all the gray squares necessary.\n createGraySquares();\n }", "public void drawMap() {\r\n\t\tfor (int x = 0; x < map.dimensionsx; x++) {\r\n\t\t\tfor (int y = 0; y < map.dimensionsy; y++) {\r\n\t\t\t\tRectangle rect = new Rectangle(x * scalingFactor, y * scalingFactor, scalingFactor, scalingFactor);\r\n\t\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\t\tif (islandMap[x][y]) {\r\n\t\t\t\t\tImage isl = new Image(\"island.jpg\", 50, 50, true, true);\r\n\t\t\t\t\tislandIV = new ImageView(isl);\r\n\t\t\t\t\tislandIV.setX(x * scalingFactor);\r\n\t\t\t\t\tislandIV.setY(y * scalingFactor);\r\n\t\t\t\t\troot.getChildren().add(islandIV);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trect.setFill(Color.PALETURQUOISE);\r\n\t\t\t\t\troot.getChildren().add(rect);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void loadMap(Player player) {\r\n\tregionChucks = RegionBuilder.findEmptyChunkBound(8, 8); \r\n\tRegionBuilder.copyAllPlanesMap(235, 667, regionChucks[0], regionChucks[1], 8);\r\n\t\r\n\t}", "public MapPanel() {\r\n\t\tthis(EarthFlat.class);\r\n\t}", "public void setShowMap( boolean show )\r\n {\r\n showMap = show;\r\n }", "void switchToMapSelectActivity();", "public void updateMap(TileMap tileMap){\n\t\tthis.tileMap = tileMap;\n\n\t}", "private void setUpMap() {\n mMap.setMyLocationEnabled(true);\n }", "public void mapClick(View v) {\n ImageView mapView = (ImageView) findViewById(R.id.mapButton);\n if(mapView.getVisibility() == ImageView.VISIBLE) {\n mapView.setVisibility(ImageView.INVISIBLE);\n }\n else {\n mapView.setVisibility(ImageView.VISIBLE);\n }\n toggleDrawer();\n }", "public void viewOnMap(View view){\r\n changeToMapActivity();\r\n }", "private void setMapView()\n\t{\n\t\tMapContainer.mapView = new MapView(SubMainActivity.this, this.getString(R.string.apiKey));\n\t\tMapContainer.mapView.setClickable(true);\n\t\tMapContainer.mapView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));;\n\t}", "private void setUpMap() {\n mMap.getUiSettings().setZoomControlsEnabled(false);\n \n // Setting an info window adapter allows us to change the both the\n // contents and look of the\n // info window.\n mMap.setInfoWindowAdapter(new CustomInfoWindowAdapter(getLayoutInflater()));\n \n // Add lots of markers to the map.\n addMarkersToMap();\n \n }", "public void setMap(MapAssembly demoMap) {\n this.map = demoMap;\n }", "@FXML\n public void onMouseClickedLoadFile(ActionEvent event) {\n try {\n boolean res = takefile();\n\n if (!res) {\n Stage stg = (Stage) LoadFile.getScene().getWindow();\n stg.close();\n\n Parent loadRoot = FXMLLoader.load(getClass().getResource(\"/App_Risk_Game/src/main/java/View/incorrectMap.fxml\"));\n Scene incorrectMapScene = new Scene(loadRoot);\n Stage incorrectStage = new Stage();\n incorrectStage.setTitle(\"Incorrect MAP\");\n incorrectStage.setScene(incorrectMapScene);\n incorrectStage.show();\n System.out.println(\"GAME QUITED\");\n\n } else {\n Stage stg = (Stage) LoadFile.getScene().getWindow();\n stg.close();\n String[][] matrix = getMapMatrix(board.getTiles());\n LoadMap.board.notifyObservers();\n playGame();\n// Stage stg = (Stage) LoadFile.getScene().getWindow();\n// stg.close();\n// String[][] matrix = getMapMatrix(board.getTiles());\n// LoadMap.board.notifyObservers();\n//\n// // Getting player behavior and deciding to show them the game screen or not\n// Player current_player = PlayerCollectionTest.getTurn();\n// if (current_player.getType() == BehaviourStrategies.HumanPlayer) {\n// Parent loadRoot = FXMLLoader.load(getClass().getResource(\"/App_Risk_Game/src/main/java/View/GameScreenTest.fxml\"));\n// Scene loadMapScene = new Scene(loadRoot);\n// Stage loadMapStage = new Stage();\n// loadMapStage.setTitle(\"Map Loaded\");\n// loadMapStage.setScene(loadMapScene);\n// loadMapStage.show();\n// }\n// else{\n// System.out.println(\"LOAD MAP TESTING\");\n// System.out.println(current_player.territories);\n// GameScreenTest gst = new GameScreenTest();\n// gst.startSingleGameMode();\n// }\n\n// Parent loadRoot = FXMLLoader.load(getClass().getResource(\"/App_Risk_Game/src/main/java/View/GameScreenTest.fxml\"));\n// Scene loadMapScene = new Scene(loadRoot);\n// Stage loadMapStage = new Stage();\n// loadMapStage.setTitle(\"Map Loaded\");\n// loadMapStage.setScene(loadMapScene);\n// loadMapStage.show();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public MapPanel() {\n painter = NONE_PAINTER;\n setBackground(BACKGROUND_COLOR);\n mapBounds = new Rectangle2D.Double(0, 0, MIN_WIDTH, MIN_HEIGHT);\n mouseClick = SwingObservable.mouse(this, SwingObservable.MOUSE_CLICK)\n .toFlowable(BackpressureStrategy.LATEST)\n .filter(ev -> ev.getID() == MouseEvent.MOUSE_CLICKED)\n .map(this::mapMouseEvent);\n logger.atDebug().log(\"Created\");\n }", "@FXML\n public void backButtonAction (ActionEvent event) throws IOException {\n Parent mapPanel = FXMLLoader.load(getClass().getResource(\"StatisticsPanel.fxml\"));\n Stage mapStage = (Stage)((Node)event.getSource()).getScene().getWindow();\n mapStage.setScene(new Scene(mapPanel));\n }", "void display(Map m) {\r\n\t\tm.tour = this;\r\n\t\tm.update(m.getGraphics());\r\n\t}", "public void updateMapGrid() {\n char[][] map = controller.getPopulatedMap();\n\t if (mapGrid == null) {\n mapGrid = new MapGrid(map.length, map[0].length, ICON_SIZE);\n }\n mapGrid.insertCharMap(map);\n }", "@Override\r\n\tpublic void setStage(int stage) {\n\r\n\t}", "public void switchGame() {\n \tplayerController.clearKeysPressed();\n game.game1 = !game.game1;\n if (game.game1) {\n \tgame.gameSnapshot = game.game1Snapshot;\n \tgame.rooms = game.game1Rooms;\n \tgame.characters = game.game1Characters;\n \tgame.player = game.player1;\n } else {\n \tgame.gameSnapshot = game.game2Snapshot;\n \tgame.rooms = game.game2Rooms;\n \tgame.characters = game.game2Characters;\n \tgame.player = game.player2;\n }\n \n currentNPCs = game.gameSnapshot.map.getNPCs(game.player.getRoom());\n getTileRenderer().setMap(game.player.getRoom().getTiledMap());\n getTileRenderer().clearPeople();\n getTileRenderer().addPerson((List<AbstractPerson>) ((List<? extends AbstractPerson>) currentNPCs));\n getTileRenderer().addPerson(game.player);\n }", "public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }", "@Override\n public void onCameraMove() {\n zoom = GMap.getCameraPosition().zoom;\n if(zoom >= 17.2f){\n map_label.setVisible(true);\n mapOverlay.setVisible(false);\n }\n else{\n map_label.setVisible(false);\n mapOverlay.setVisible(true);\n }\n\n }", "public MapPanel(int size, int style)\r\n {\r\n this.setLayout(new BorderLayout());\r\n zoom = 32;//set initail zoom to 32;\r\n\t\t\t\tyear = -4000;\r\n\r\n //set up initial key movements\r\n keyUp = KeyEvent.VK_W;\r\n keyLeft = KeyEvent.VK_A;\r\n keyRight = KeyEvent.VK_D;\r\n keyDown = KeyEvent.VK_S;\r\n keyZoom = KeyEvent.VK_Z;\r\n\r\n if(size == 100 && style == 2)\r\n {\r\n //create the map\r\n myMap = GWMap.getGWMap();\r\n if (myMap == null)\r\n {\r\n GWMap.create(size, size, 100, 3, (float) 50.0, (float) 33.0, 2, 4);\r\n myMap = GWMap.getGWMap();\r\n }\r\n else\r\n myMap.reCreate(size, size, 100, 3, (float) 50.0, (float) 33.0, 2, 4);\r\n generate();\r\n }\r\n\r\n else if(size == 75 && style == 2)\r\n {\r\n //create the map\r\n myMap = GWMap.getGWMap();\r\n if (myMap == null)\r\n {\r\n GWMap.create(size, size, 75, 3, (float) 50.0, (float) 33.0, 2, 4);\r\n myMap = GWMap.getGWMap();\r\n }\r\n else\r\n myMap.reCreate(size, size, 75, 3, (float) 50.0, (float) 33.0, 2, 4);\r\n generate();\r\n }\r\n\r\n else if(size == 50 && style == 2)\r\n {\r\n //create the map\r\n myMap = GWMap.getGWMap();\r\n if (myMap == null)\r\n {\r\n GWMap.create(size, size, 50, 2, (float) 50.0, (float) 33.0, 2, 4);\r\n myMap = GWMap.getGWMap();\r\n }\r\n else\r\n myMap.reCreate(size, size, 50, 2, (float) 50.0, (float) 33.0, 2, 4);\r\n generate();\r\n }\r\n\r\n if(size == 100 && style == 1)\r\n {\r\n //create the map\r\n myMap = GWMap.getGWMap();\r\n if (myMap == null)\r\n {\r\n GWMap.create(size, size, 10, 1, (float) 50.0, (float) 33.0, 2, 4);\r\n myMap = GWMap.getGWMap();\r\n }\r\n else\r\n myMap.reCreate(size, size, 10, 1, (float) 50.0, (float) 33.0, 2, 4);\r\n generate();\r\n }\r\n\r\n else if(size == 75 && style == 1)\r\n {\r\n //create the map\r\n myMap = GWMap.getGWMap();\r\n if (myMap == null)\r\n {\r\n GWMap.create(size, size, 10, 1, (float) 50.0, (float) 33.0, 2, 4);\r\n myMap = GWMap.getGWMap();\r\n }\r\n else\r\n myMap.reCreate(size, size, 10, 1, (float) 50.0, (float) 33.0, 2, 4);\r\n generate();\r\n }\r\n\r\n else if(size == 50 && style == 1)\r\n {\r\n //create the map\r\n myMap = GWMap.getGWMap();\r\n if (myMap == null)\r\n {\r\n GWMap.create(size, size, 7, 1, (float) 50.0, (float) 33.0, 2, 4);\r\n myMap = GWMap.getGWMap();\r\n }\r\n else\r\n myMap.reCreate(size, size, 7, 1, (float) 50.0, (float) 33.0, 2, 4);\r\n generate();\r\n }\r\n\r\n if(size == 100 && style == 3)\r\n {\r\n //create the map\r\n myMap = GWMap.getGWMap();\r\n if (myMap == null)\r\n {\r\n GWMap.create(size, size, 120, 1, (float) 50.0, (float) 33.0, 2, 4);\r\n myMap = GWMap.getGWMap();\r\n }\r\n else\r\n myMap.reCreate(size, size, 120, 1, (float) 50.0, (float) 33.0, 2, 4);\r\n generate();\r\n }\r\n\r\n else if(size == 75 && style == 3)\r\n {\r\n //create the map\r\n myMap = GWMap.getGWMap();\r\n if (myMap == null)\r\n {\r\n GWMap.create(size, size, 100, 1, (float) 50.0, (float) 33.0, 2, 4);\r\n myMap = GWMap.getGWMap();\r\n }\r\n else\r\n myMap.reCreate(size, size, 100, 1, (float) 50.0, (float) 33.0, 2, 4);\r\n generate();\r\n }\r\n\r\n else if(size == 50 && style == 3)\r\n {\r\n //create the map\r\n myMap = GWMap.getGWMap();\r\n if (myMap == null)\r\n {\r\n GWMap.create(size, size, 75, 0, (float) 50.0, (float) 33.0, 2, 4);\r\n myMap = GWMap.getGWMap();\r\n }\r\n else\r\n myMap.reCreate(size, size, 75, 0, (float) 50.0, (float) 33.0, 2, 4);\r\n generate();\r\n }\r\n\r\n //set up the cursor\r\n cursor = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);\r\n\r\n //set up the buttons\r\n leftButton = new JButton();\r\n leftButton.setFocusable(false);\r\n leftButton.setBorder(null);\r\n leftButton.setContentAreaFilled(false);\r\n leftButton.setCursor(cursor);\r\n iconDefault = new ImageIcon(\"images/left.gif\");\r\n leftButton.setIcon(iconDefault);\r\n\r\n rightButton = new JButton();\r\n rightButton.setFocusable(false);\r\n rightButton.setBorder(null);\r\n rightButton.setContentAreaFilled(false);\r\n rightButton.setCursor(cursor);\r\n iconDefault = new ImageIcon(\"images/right.gif\");\r\n rightButton.setIcon(iconDefault);\r\n\r\n upButton = new JButton();\r\n upButton.setFocusable(false);\r\n upButton.setBorder(null);\r\n upButton.setContentAreaFilled(false);\r\n upButton.setCursor(cursor);\r\n iconDefault = new ImageIcon(\"images/up.gif\");\r\n upButton.setIcon(iconDefault);\r\n\r\n downButton = new JButton();\r\n downButton.setFocusable(false);\r\n downButton.setBorder(null);\r\n downButton.setContentAreaFilled(false);\r\n downButton.setCursor(cursor);\r\n iconDefault = new ImageIcon(\"images/down.gif\");\r\n downButton.setIcon(iconDefault);\r\n\r\n leftButton.addActionListener(this);\r\n rightButton.addActionListener(this);\r\n upButton.addActionListener(this);\r\n downButton.addActionListener(this);\r\n\r\n //set up the panels\r\n worldPanel = new WorldPanel();\r\n this.add(worldPanel, BorderLayout.CENTER);\r\n\r\n southPanel = new JPanel(new FlowLayout());\r\n southPanel.setBackground(Color.black);\r\n southPanel.add(leftButton);\r\n\t\t\t\tsouthPanel.add(upButton);\r\n southPanel.add(downButton);\r\n southPanel.add(rightButton);\r\n this.add(southPanel, BorderLayout.SOUTH);\r\n\r\n miniMap = new MiniMap();\r\n unitPanel = new UnitInfoPanel();\r\n\r\n eastPanel1 = new JPanel(new BorderLayout());\r\n eastPanel1.setBackground(Color.black);\r\n eastPanel1.add(miniMap ,BorderLayout.SOUTH);\r\n eastPanel1.add(unitPanel, BorderLayout.CENTER);\r\n this.add(eastPanel1, BorderLayout.EAST);\r\n\r\n //create initial map\r\n worldPanel.setInitialMap(mapPieces, mapWidth, mapHeight);\r\n miniMap.setMap(mapPieces, mapWidth, mapHeight, 12, 12);\r\n int x = worldPanel.getFirstX();\r\n int y = worldPanel.getFirstY();\r\n miniMap.setNewXY(x,y,21,15);\r\n addKeyListener(this);\r\n this.setBackground(Color.black);\r\n this.requestFocus();\r\n }", "private void loadMapScene() {\n mapView.getMapScene().loadScene(MapScheme.NORMAL_DAY, new MapScene.LoadSceneCallback() {\n\n @Override\n public void onLoadScene(@Nullable MapError mapError) {\n if (mapError == null) {\n positioningExample = new BackgroundPositioningExample();\n positioningExample.onMapSceneLoaded(mapView, MainActivity.this);\n positioningExample.startForegroundService();\n } else {\n Log.d(TAG, \"Loading map failed: mapError: \" + mapError.name());\n }\n }\n });\n }", "@Override\r\n public void start(Stage primaryStage) throws Exception{\n primaryStage.setTitle(\"Color switch\");\r\n Gameplay obj1 = new Gameplay();\r\n obj1.mainmenu(primaryStage);\r\n// pane.getChildren().add(new Polygon(10,20,30,10,20,30));\r\n\r\n }", "public void switchToGameScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"game\");\n \troom.reset();\n }", "public World(GameStage stage, Maps mapToLoad) {\n this.stage = stage;\n this.engine = new Engine();\n this.loader = new TmxMapLoader();\n\n this.replayActions = new LinkedList<>();\n this.actionList = new LinkedList<>();\n\n this.characters = new ArrayList<>();\n\n loadMap(mapToLoad);\n\n // All worlds will need a movement and collision system\n addSystemToEngine(new EntityCollision(this));\n addSystemToEngine(new EntityMovement(this));\n addSystemToEngine(new EntityReplayer(this));\n }", "private void setUpOverview() {\n mapInstance = GameData.getInstance();\n //get reference locally for the database\n db = mapInstance.getDatabase();\n\n //retrieve the current player and the current area\n currentPlayer = mapInstance.getPlayer();\n\n }", "public void startGame(){\n System.out.println(\"[SERVER]: Starting a new game\");\n mainPage = new MainPage();\n mainPage.setMatch(match);\n mainPage.setRemoteController(senderRemoteController);\n\n Platform.runLater( () -> {\n try {\n firstPage.closePrimaryStage();\n if(chooseMap != null)\n chooseMap.closePrimaryStage();\n mainPage.start(new Stage());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n );\n }" ]
[ "0.69049084", "0.65832317", "0.6569322", "0.65633637", "0.65203226", "0.63995314", "0.63917327", "0.63131297", "0.63092077", "0.6251683", "0.62406933", "0.62383294", "0.62257487", "0.6150663", "0.612809", "0.612809", "0.6118363", "0.60848", "0.6062863", "0.60442626", "0.6006062", "0.5996609", "0.59706277", "0.5963148", "0.59224844", "0.58759683", "0.586938", "0.58619905", "0.58582526", "0.58570784", "0.5853408", "0.58399564", "0.5838707", "0.5827981", "0.5809921", "0.5809044", "0.57745594", "0.57596266", "0.5755886", "0.57396436", "0.5726968", "0.57156754", "0.57103765", "0.57080954", "0.56978285", "0.56867236", "0.56731486", "0.56554955", "0.5647737", "0.5643511", "0.5638787", "0.5637995", "0.563108", "0.5629696", "0.5628478", "0.5622398", "0.5618742", "0.561077", "0.5608953", "0.55937874", "0.558484", "0.5584458", "0.55788714", "0.55703986", "0.5568673", "0.5560819", "0.5557385", "0.55525005", "0.55377567", "0.5536355", "0.5530707", "0.55282843", "0.5521645", "0.5520407", "0.5516241", "0.5515799", "0.5502304", "0.5498717", "0.54981154", "0.5494843", "0.5490283", "0.54883677", "0.5462174", "0.5453351", "0.54493743", "0.5446681", "0.544635", "0.5442121", "0.5440008", "0.5436893", "0.54350215", "0.54338145", "0.5432021", "0.5429629", "0.5425855", "0.54138803", "0.5408506", "0.5402313", "0.53736645", "0.537312" ]
0.619696
13
Switches the game panel to a Paused state.
public void switchToPause () { timer.setPaused (true); questionLabel.setText ("<html><br>You have paused the game!"+ "<br>To continue, please press the pause button again!"+ "<br>~^_^~</html>"); a.setVisible(false); b.setVisible(false); c.setVisible(false); d.setVisible(false); repaint (); revalidate (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pause() {\r\n\t\tsetState(PAUSED);\r\n\t}", "public void pauseGame(boolean state) {\r\n paused = state;\r\n }", "@Override\n\tpublic void pause() \n\t{\n\t\tif (state_Game==GAME_READY) \n\t\t{\n\t\t\tstate_Game=GAME_PAUSED;\n\t\t}\n\t}", "@Override\n public void pauseClock() {\n state = ClockState.PAUSED;\n // TODO Auto-generated method stub\n\n }", "public static void pauseGame() {\r\n\t\tif(paused) {\r\n\t\t\tgui.restoreMenu();\r\n\t\t}else {\r\n\t\t\tgui.setMenu(new PauseMenu(), false);\r\n\t\t}\r\n\t\tpaused = !paused;//flip state\r\n\t}", "public void pauseGame() {\n paused = true;\r\n cam.zoom = worldWidth/screenWidth;\r\n boundCamera();\r\n topHud.setPauseButtonCanDraw(false);\r\n gameHud.setCanPress(false);\r\n\r\n playButton.setDrawable(!(win || lose));\r\n homeButton.setDrawable(true);\r\n restartButton.setDrawable(true);\r\n\r\n playButton.setCanPress(true);\r\n homeButton.setCanPress(true);\r\n restartButton.setCanPress(true);\r\n\r\n bindInput(pauseProcessors);\r\n\r\n timeGap = centralTimer - timer;\r\n }", "public void pause()\n {\n paused = true;\n }", "public void pauseToggle() {\r\n if(gameState == 1) {\r\n gameState = 0;\r\n }\r\n else gameState = 1;\r\n }", "public void pause() {\n paused = true;\n }", "public void pause() {\n paused = true;\n }", "public synchronized void pause() {\r\n\r\n\t\tpaused = true;\r\n\t}", "synchronized void pause() {\n\t\tpaused = true;\n\t}", "private void transport_pause() {\n timerPause();\n playing = false;\n now_playing_play_button.setForeground(getDrawable(R.drawable.ic_play_arrow_50dp));\n }", "public void pause() {\n\t\tsynchronized(this) {\n\t\t\tpaused = true;\n\t\t}\n\t}", "public void pause() {\r\n\t\tSystem.out.println(\"Paused game\");\r\n\t\tthis.timeline.pause();\r\n\t\tisPaused = true;\r\n\t\tpauseMenu.setVisible(true);\r\n\t}", "private void pause()\n {\n mPaused = true;\n mCurrentTurn.addTurnTime( getElapsedTime() );\n mCountdownTimer.cancel();\n mPauseResumeButton.setText( \"Resume\" ); // TODO resourcify\n }", "public void pause() {\r\n fPause = true;\r\n }", "public void isPaused() { \r\n myGamePaused = !myGamePaused; \r\n repaint(); \r\n }", "public void pause()\n\t{\n\t\tplayState = Status.PAUSED;\n\t\tlastUpdate = -1;\n\t\ttmr.stop();\n\t}", "void pauseGame() {\n myShouldPause = true;\n }", "void pauseGame() {\n myShouldPause = true;\n }", "@Override\n\tpublic void pause() {\n\t\tAction(Director.ACTION_PAUSE);\n\t}", "public void checkPaused()\n {\n paused = true;\n }", "private void togglePaused() {\n \t\tif (!isPaused) {\n \t\t\ttimeFirstPaused = System.nanoTime();\n \t\t} else {\n \t\t\t// Offset the time spent paused.\n \t\t\ttimeGameStarted += (System.nanoTime() - timeFirstPaused);\n \t\t}\n \t\tisPaused = !isPaused;\n \t}", "void pauseGame() {\n myGamePause = true;\n }", "public void pause_press(View view){\n //blur background\n blurEffect();\n //pause the game\n if (mSpaceGame.getState() instanceof SpaceGame.PausedGame){\n //mSpaceGame.setState(new SpaceGame.RunningGame());\n }else {\n mSpaceGame.setState(SpaceGame.PAUSED_STATE);\n }\n //start popup window\n Intent i = new Intent(SpaceActivity.this,Pop.class);\n i.putExtra(\"insignal\",\"pause\");\n startActivityForResult(i,0);\n overridePendingTransition(R.anim.zoom_in,R.anim.zoom_out);\n }", "public void pause() {\n pause = true;\n }", "public void setPlayState(PlayerState state) { isPaused = !state.playing; }", "@Override\n\t\tpublic void pause() {\n\t\t \n\t\t}", "public void unPause()\n {\n paused = false;\n }", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void pause() {\n\t\t\r\n\t}", "public void pause() {\n isPaused = true;\n System.out.println(\"pausing\");\n timeline.stop();\n }", "private void setUIStatePaused(){\n countdownLabel.setText(\"Paused\");\n play.setEnabled(true);\n pause.setEnabled(false);\n stop.setEnabled(true);\n }", "public void pause() {\r\n\t}", "public final void \n onPause( ) {\n \t\n synchronized( this.mRenderLock ) {\n \tthis.isPaused = true;\n \tthis.isNewRenderQueueAvailable = true;\n \tthis.mRenderLock.notify();\n }\n \n super.onPause();\n }", "private void pause() { player.pause();}", "public void pause() {\n\t\t// TODO Auto-generated method stub\n\t}", "protected void pause(){}", "@Override\n\tpublic void pause()\n\t{\n\n\t}", "private void pause() {\n\t\t// TODO\n\t}", "public void pause() {\n\t\tif (playing)\n\t\t\tstopRequested = true;\n\t}", "public void setPaused(boolean paused) {\n this.paused=paused;\n }", "private void actionPause() {\n\t\tselectedDownload.pause();\n\t\tupdateButtons();\n\t}", "public void onPause() {\n\t\tdouble maxBlur = Game.SIZE/20d;\n\t\tdouble maxBrighnessChange = -.4;\n\t\tdouble maxSaturationChange = -.3;\n\t\tif(!Game.instance().getEngine().isPaused()) {\n\t\t\tSystem.out.println(\"Paused!\");\n\t\t\tGame.instance().getEngine().setPaused(true);\n\t\t\t\n\t\t\tblur.setInput(ca);\n\t\t\tmapPane.setEffect(blur);\n\t\t\tsliding.fromDown(pauseOverlay, new Extra() {\n\t\t\t\t@Override\n\t\t\t\tpublic void interpolate(double frac) {\n\t\t\t\t\tblur.setRadius(maxBlur*frac);\n\t\t\t\t\tca.setBrightness(maxBrighnessChange*frac);\n\t\t\t\t\tca.setSaturation(maxSaturationChange*frac);\n\t\t\t\t}\n\t\t\t\t@Override public void onFinish() {}\n\t\t\t});\n\t\t}else {\n\t\t\tSystem.out.println(\"Unpaused!\");\n\t\t\tGame.instance().getEngine().setPaused(false);\n\t\t\tsliding.fromUp(Game.instance().getGameHud(), new Extra() {\n\t\t\t\t@Override\n\t\t\t\tpublic void interpolate(double frac) {\n\t\t\t\t\tfrac = 1-frac;\n\t\t\t\t\tblur.setRadius(maxBlur*frac);\n\t\t\t\t\tca.setBrightness(maxBrighnessChange*frac);\n\t\t\t\t\tca.setSaturation(maxSaturationChange*frac);\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tpublic void onFinish() {\n\t\t\t\t\tmapPane.setEffect(null);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic void pause() \n\t{\n\n\t}", "@Override\n public void pause() {\n }", "protected void pauseProcess() {\n algorithm.pause();\n btnPause.setEnabled(false);\n btnResume.setEnabled(true);\n }", "@Override\r\n\tpublic void pause() {\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\r\n public void pause() {}", "@Override\n public void pause() {\n // Not used\n }", "private void handlePausedGame(final Graphics2D theG2d) {\r\n if (myGamePaused) { \r\n String pauseText = \"Game Paused!\"; \r\n \r\n if (myGameOver) { \r\n pauseText = \"Game Over!\";\r\n } \r\n \r\n final Rectangle2D rect = new Rectangle2D.Double();\r\n final Rectangle2D bounds = rect.getBounds2D();\r\n final Font font = new Font(Font.MONOSPACED, \r\n Font.TYPE1_FONT + Font.HANGING_BASELINE, \r\n WORD_SIZE);\r\n\r\n theG2d.setFont(font); \r\n final int x = (int) (bounds.getWidth() + bounds.getHeight() + 64);\r\n final int y = (int) (bounds.getWidth() + bounds.getHeight() + 200);\r\n \r\n theG2d.fill(rect);\r\n theG2d.setColor(Color.BLACK);\r\n theG2d.drawString(pauseText, x, y); \r\n\r\n }\r\n }", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}" ]
[ "0.73601663", "0.7020245", "0.7001844", "0.6933652", "0.6893282", "0.6805639", "0.67877775", "0.67831516", "0.67812186", "0.67812186", "0.67669594", "0.6719406", "0.6651985", "0.66006386", "0.6551267", "0.65246874", "0.6518497", "0.6513055", "0.6512537", "0.6434598", "0.6434598", "0.6415147", "0.640399", "0.63825077", "0.6378603", "0.63038415", "0.630096", "0.62837046", "0.6266703", "0.6261295", "0.6253146", "0.6253146", "0.6253146", "0.6253146", "0.6253146", "0.6253146", "0.6253146", "0.6253146", "0.6253146", "0.62482786", "0.62471324", "0.6239628", "0.62099695", "0.6200659", "0.6200352", "0.6199148", "0.61970365", "0.61943716", "0.6192655", "0.6187821", "0.6187108", "0.61768246", "0.6172786", "0.6167885", "0.61424243", "0.6141335", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.614072", "0.6138938", "0.613688", "0.61198765", "0.6108549", "0.6108549", "0.6108549", "0.6108549", "0.6108549", "0.6108549", "0.6108549", "0.6108549", "0.6108549", "0.6108549", "0.6108549", "0.6108549", "0.6108549", "0.6108549" ]
0.7072518
1
Unpauses the game panel. If statement determines whether to show the questionor the clue. If statement determines whether to display choice D.
public void unpause () { timer.setPaused (false); if (atQuestionStage) questionLabel.setText(currentQuestion.getQuestion()); else questionLabel.setText(currentClue); a.setVisible(true); b.setVisible(true); c.setVisible(true); if (atQuestionStage) d.setVisible(true); repaint (); revalidate (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void switchToPause ()\n {\n timer.setPaused (true);\n questionLabel.setText (\"<html><br>You have paused the game!\"+\n \"<br>To continue, please press the pause button again!\"+\n \"<br>~^_^~</html>\");\n a.setVisible(false);\n b.setVisible(false);\n c.setVisible(false);\n d.setVisible(false);\n repaint ();\n revalidate ();\n }", "public void play() {\n\t\tpanel.remove(easy);\n\t\tpanel.remove(hard);\n\t\tdown.setVisible(true);\n\t\tmarket.setVisible(true);\n\t\tinfo.setVisible(true);\n\t}", "public void unpause() {\n\t\t// Move the real time clock up to now\n\t\tsynchronized (mSurfaceHolder) {\n\t\t\tmLastTime = System.currentTimeMillis() + 100;\n\t\t}\n\t\tsetState(GameState.RUNNING_LVL);\n\t}", "@Override\n public void hide() {\n if (!unit.player.isPlayerDead) {\n MyPreference.setIsNewGame(false);\n saves.Save();\n }\n GameController.allFalse();\n dispose();\n }", "public static void endGameSequence()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(false);\n\t\tbtnStay.setEnabled(false);\n\t\tbtnDouble.setEnabled(false);\n\t\tlblUpdate.setText(\"Game over! You are out of money!\");\n\t}", "@Override\r\n public void done() {\r\n \t\r\n \tjdp.setVisible(false);\r\n }", "public void perdio() {\n\t\tthis.juego = null;\n\t\thiloJuego = null;\n\t\tthis.panelJuego = null;\n\t\tthis.dispose();\n\t\tGameOver_Win go = new GameOver_Win(0);\n\t\tgo.setVisible(true);\n\t\t\n\t}", "void PrintWithSolution() {\n gameArea.disPlay();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n GameWindow.this.remove(menuPanel);\n GameWindow.this.updateUI();\n checkBoolean = true;\n }", "public void removeWrongAnswer (char button)\n {\n if (button=='A')\n a.setEnabled(false);\n else if (button=='B')\n b.setEnabled(false);\n else if (button=='C')\n c.setEnabled(false);\n else\n d.setEnabled(false);\n feedbackLabel.setVisible(true);\n }", "private void finishReset() {\n DefenceField.fieldActivated = true;\n time.setPaused(false);\n nuiManager.closeScreen(DefenceUris.DEATH_SCREEN);\n }", "private void disparaGuardian()\n {\n // Solo dispara si no hay disparo activo\n if (!disparoGuardian.getVisible()) {\n disparoGuardian.setPosicion(guardian.getPosicionX() + ((guardian.getAncho() - disparoGuardian.getAncho()) / 2), guardian.getPosicionY() - guardian.getAlto());\n disparoGuardian.setVisible(true);\n }\n }", "private void exitQuestionDialog() {\n\t\tquestion = false;\n\t\tdialog.loadResponse();\n\t\tchangeDirBehaviour(Values.DETECT_ALL);\n\t}", "public final void moveInitialPanelOffsceen() {\n if (phasesUI != null) {\n phasesUI.setVisible(false);\n toggle = false;\n }\n }", "public void deselectPanel() {\n\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t}", "public static void suspend()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(false);\n\t\tbtnStay.setEnabled(false);\n\t\tbtnDouble.setEnabled(false);\n\t}", "public static void endGame(){\n\t\tmainPanel.grid1.enabledGrid(false);\n\t\tif(speler.heleVlootKapot){\n\t\t\tmainPanel.melding2.setText(\"Helaas, de computer heeft gewonnen.\");\n\t\t}else{\n\t\t\tmainPanel.melding2.setText(\"Gefeliciteerd, u heeft gewonnen.\");\n\t\t}\n\t}", "public void showDisarmed();", "public void GameOver(){\n\n\t\tguessBttn.setVisible(false);\n\t\tguessFullWord.setVisible(false);\n\t\tAnswerBox.setDisable(true); //can no longer use the text box\n\t\tresultMessage.setText(\" Sorry!! You Lost.\\nLet's Try to Play Again!\");\n\t\tplayAgain.setVisible(true);\n\t\trevealLabel.setText(\"The mystery word was:\");\n\t\trevealLabel.setVisible(true);\n\t\twordDashes.setText(mysteryWord);\n\t}", "public static void resume()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(true);\n\t\tbtnStay.setEnabled(true);\n\t\tbtnDouble.setEnabled(false);\n\t}", "public void backToMenu() {\n\t\tcurrentGameGraphics.setVisible(false);\n\t\tcurrentGameGraphics = null;\n\t\tgameScreen.setVisible(true);\n\t}", "private void finishExercises() {\n\t\tfourWordsBox.setVisible(false);\n\t\ttranslationBox.setVisible(false);\n\t\timageRecognitionBox.setVisible(false);\n\t\tsummaryBox.setVisible(true);\n\t\t// Setting the labels\n\t\tcorrectAnswersLabel.setText(\"Correct answers: \" + correctAnswerCount);\n\t\tint gainedExperience = correctAnswerCount * EXPERIENCE_RATIO;\n\t\tloggedInUser.setScore(loggedInUser.getScore() + gainedExperience);\n\t\texperienceGainedLabel.setText(\"Experience gained: \" + gainedExperience);\n\t\t// Resetting the answer counters\n\t\tanswerCount = 0;\n\t\tcorrectAnswerCount = 0;\t\t\n\t}", "protected void dis(ActionEvent e) {\n\t\tSignalDisplay sdp = new SignalDisplay();\n\t\tsdp.setVisible(true);\n\t\tthis.dispose();\n\t\t\n\t}", "public void playAgain() {\r\n\t\t\r\n\t\tscreen.reset();\r\n\t\t\r\n\t}", "public void newGamePreference() {\r\n\t\tboard.dispose();\r\n\t\tgameAlive = false;\r\n\t\topponentScoreLable.setVisible(false);\r\n\t\tplayerScoreLable.setVisible(false);\r\n\t\tplayerScore.setVisible(false);\r\n\t\topponentScore.setVisible(false);\r\n\t}", "protected abstract void hidePrompt();", "public void endTurn()\n {\n revealedCardsScreen.setVisible(false);\n accusationScreen.setVisible(false);\n\n this.played = false;\n\n //call client controller's end turn method\n clientController.endTurn();\n }", "public void reset() {\r\n\t\tplayAgain = false;\r\n\t\tmainMenu = false;\r\n\t\tachievement = 0;\r\n\t}", "public void dessiner() {\n\t\tthis.panel.dessinerJeu();\t\n\t}", "@Override\r\n public void onGameStart(){\r\n this.setVisible(false);\r\n }", "void reset() {\n setVisible(false);\n myJumpedOver = false;\n }", "public void disableChoice() {\n\t\t// Disable the buttons, dimming them\n\t\trock.setEnabled(false);\n\t\tpaper.setEnabled(false);\n\t\tscissors.setEnabled(false);\n\t}", "public void resetPresentation();", "private void finalScreen() {\r\n\t\tdisplay.setLegend(GAME_OVER);\r\n\t\tdisplay.removeKeyListener(this);\r\n\t}", "public static void resetDontShowAgain() {\n setProperty(CONF_NOT_SHOW_AGAIN_PLAYER, FALSE);\n setProperty(CONF_NOT_SHOW_AGAIN_CROSS_FADE, FALSE);\n setProperty(CONF_NOT_SHOW_AGAIN_LAF_CHANGE, FALSE);\n }", "public void cancelState() {\n if (isQuestionEditMode) {\n //deleteAllQuestionInputTextAreas();\n //addCurrentQuestionsToView();\n }\n }", "@Override\r\n\tpublic boolean doesGuiPauseGame() {\r\n\t\treturn false;\r\n\t}", "public static void clearDealerName() {\r\n\t\tMain.dealerIsPlayer1 = false;\r\n\t\tMain.dealerIsPlayer2 = false;\r\n\t\tMain.dealerIsPlayer3 = false;\r\n\t\t\r\n\t\tGameSetup.player1IsDealer.setState(false);\r\n\t\tGameSetup.player2IsDealer.setState(false);\r\n\t\tGameSetup.player3IsDealer.setState(false);\r\n\r\n\t\tMain.curDealer = \"\";\r\n\t\tMain.startDealer = \"\";\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tMain.dealerIsPlayer4 = false;\r\n\t\t\tGameSetup.player4IsDealer.setState(false);\r\n\t\t}\r\n\t}", "public void resetScreen(){\n\t\tGame_Map_Manager.infoVisible= false;\n\t\tGame_PauseMenu.actorManager.open = false;\n\t\tPlayerGoals.open = false;\n\t\tGame_Shop.actorManager.open = false;\n\t\tTrainDepotUI.actorManager.open = false;\n\t\tGameScreenUI.resourcebarexpanded =false;\n\t\tGoalMenu.open= false;\n\t\t\n\t\t//CARDS\n\t\tGame_CardHand.actorManager.open=false;\n\t\tGame_CardHand.actorManager.cardactors.clear();;\n\t\t\n\t\t//Map\n\t\tGame_StartingSequence.reset();\n\t\tGame_Map_Manager.resetMap();\n\t}", "public void finish(){\n \t\tString congrats=\"Congratulations, you won in \" + model.getNumberOfSteps()+\" steps! \";\n \t\tJFrame frame = new JFrame();\n\t\tString[] options = new String[2];\n\t\toptions[0] = new String(\"Play again\");\n\t\toptions[1] = new String(\"Quit\");\n\t\tint result= JOptionPane.showOptionDialog(frame.getContentPane(),congrats,\"Won! \", 0,JOptionPane.INFORMATION_MESSAGE,null,options,null);\n\t\tif (result == JOptionPane.NO_OPTION) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tif (result == JOptionPane.YES_OPTION) {\n\t\t\t\t\tcontroller.reset(); }\n \t}", "public void Dessiner(boolean j){\n\t\tthis.bool2=true;\n\t\tthis.bool3=j;\n\t\tthis.repaint();\n\t}", "private void pauseGame() {\n\t\ttimer.cancel();\n\t}", "public void endGame(boolean victory)\n {\n timerDisplay.stop();\n if (victory)\n {\n gameWon = true;\n }\n else\n {\n gameLost = true;\n }\n resetButton.repaint();\n for (GameSquare[] row : grid)\n {\n for (GameSquare square : row)\n {\n square.repaint();\n }\n }\n }", "public void killPlayer(){\n setInPlay(false);\n setDx(0.0f);\n setDy(0.04f);\n }", "@Override\r\n\tpublic void ThinkingInterrupted() {\r\n\t\tthis.panel.changeToManual();\r\n\t}", "public void youHaveBeenExcommunicated(){\n youHaveBeenExcommunicatedPane.setVisible(true);\n PauseTransition delay = new PauseTransition(Duration.seconds(3));\n delay.setOnFinished( event -> youHaveBeenExcommunicatedPane.setVisible(false) );\n delay.play();\n }", "protected void takeDown() {\n\t\t// Printout a dismissal message\n\t\tSystem.out.println(\"Agents utilisateurs \" + getAID().getName() + \" termine.\");\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t\tnew Questions();\r\n\t\t\t}", "@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}", "@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}", "public boolean doesGuiPauseGame()\n {\n return false;\n }", "void unpause();", "public void discardLeader(int bool){\n this.leaderCardsPanel.discardLeaderCard(bool);\n }", "public void deActivateButton(){\n\t\tMainActivity.resetXY();\r\n\t}", "public void reset() {\n playing = true;\n won = false;\n startGame();\n\n // Make sure that this component has the keyboard focus\n requestFocusInWindow();\n }", "public void desactivatePlayer() {\n\t\tthis.setEnabled(false);\n\t}", "public static void pauseGame() {\r\n\t\tif(paused) {\r\n\t\t\tgui.restoreMenu();\r\n\t\t}else {\r\n\t\t\tgui.setMenu(new PauseMenu(), false);\r\n\t\t}\r\n\t\tpaused = !paused;//flip state\r\n\t}", "public void pedalDown() {\n\t\tsynthChannel.controlChange(MusicManager.PEDAL_ID, MusicManager.PEDAL_ON);\n\t}", "public void quitGame() {\n\t\tactive = false;\n\t}", "public void pauseToggle() {\r\n if(gameState == 1) {\r\n gameState = 0;\r\n }\r\n else gameState = 1;\r\n }", "public void ifLose() {\n LoseMenu.setVisible(true);\n }", "@Override\n public void deactivatePowerUp() {\n powerController.updatePowerUpHappening();\n myGame.getStatusDisplay().getMyProgress().updateScoreMultiplier(NORMAL_SCORE_COUNTER);\n }", "private void playagain() {\n Randomize r=new Randomize(t);\n r.number(5);\n wordchar=r.validWordScr();\n set=r.getMap();\n word.setText(null);\n grade.setText(null);\n \n DefaultTableModel model=(DefaultTableModel)correct.getModel();\n rowc=model.getRowCount()-1;\n while(rowc>=0)\n {model.removeRow(rowc); rowc--;}\n \n model=(DefaultTableModel)incorrect.getModel();\n rowi=model.getRowCount()-1;\n while(rowi>=0)\n {model.removeRow(rowi); rowi--;}\n \n initLetters();\n \n setc=new TreeMap<>();\n seti=new TreeMap<>();\n progress.setStringPainted(true);\n progress.setValue((int)((setc.size()/set.size())*100.0));\n progress.setString(\"0% [\"+setc.size()+\" Of \"+set.size()+\"]\");\n }", "public void endGame() {\r\n if (state[0]) {\r\n if (state[1]) {\r\n frame.remove(pause);\r\n state[1] = false;\r\n }\r\n records.newRecord(game.map, game.end());\r\n frame.remove(game);\r\n records.saveRecords();\r\n state[0] = false;\r\n menu.setVisible(true);\r\n }\r\n }", "public void vanish() {\n\t\t\r\n\t\tlpanel.addMouseMotionListener(new MouseAdapter() {\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tchecker.setEnabled(false);\r\n\t\t\t\tchecker.setVisible(false);\r\n\t\t\t\trequestL.setEnabled(false);\r\n\t\t\t\trequestL.setVisible(false);\r\n\t\t\t\tpatientL.setEnabled(false);\r\n\t\t\t\tpatientL.setVisible(false);\r\n\t\t\t\treport.setEnabled(false);\r\n\t\t\t\treport.setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnew Chose();\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t}", "public static void showPreviousSelectedDealer() {\r\n\t\tGameSetup.player1IsDealer.setState(Main.dealerIsPlayer1);\r\n\t\tGameSetup.player2IsDealer.setState(Main.dealerIsPlayer2);\r\n\t\tGameSetup.player3IsDealer.setState(Main.dealerIsPlayer3);\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tGameSetup.player4IsDealer.setState(Main.dealerIsPlayer4);\r\n\t\t}\r\n\t}", "@Override\n public void endState() {\n spells.clear();\n spellButtons.clear();\n }", "private void dealWithState(FindPairLogic.State state) {\n buttons[state.getI()][state.getJ()].setText(Integer.toString(state.getN()));\n buttons[state.getI()][state.getJ()].setDisable(true);\n if (state.hasResult()) {\n if (!state.isSuccess()) {\n isGameEnable.set(false);\n threadPool.schedule(() -> Platform.runLater(() -> {\n buttons[state.getI()][state.getJ()].setText(\"\");\n buttons[state.getI()][state.getJ()].setDisable(false);\n buttons[state.getPreviousI()][state.getPreviousJ()].setText(\"\");\n buttons[state.getPreviousI()][state.getPreviousJ()].setDisable(false);\n isGameEnable.set(true);\n }), 1, TimeUnit.SECONDS);\n }\n }\n if (state.isEndGame()) {\n endGame();\n }\n }", "public void endGame() {\n \t\tisOver = true;\n \t\ttimeGameEnded = System.nanoTime();\n \t\tremoveAll();\n \t\trequestFocusInWindow();\n \t}", "public void drawQuest(){\n System.out.println(\"¿Que cantidad desea retirar?\");\n System.out.println(\"\"); \n}", "public boolean unPause();", "private void resetGame() {\n game.resetScores();\n this.dialogFlag = false;\n rollButton.setDisable(false);\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n setDefault(\"player\");\n setDefault(\"computer\");\n }", "private void Select_New_PuzzleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Select_New_PuzzleActionPerformed\n // TODO add your handling code here:\n this.setVisible(false);\n CardLayout.show(parent, \"card6\");\n \n }", "@Override\n\tpublic void hideContents() {\n\t\tprogram.remove(Play);\n\t\tprogram.remove(Settings);\n\t\tprogram.remove(Credits);\n\t\tprogram.remove(Exit);\n\t\tprogram.remove(tank);\n\t\tprogram.remove(barrel);\n\t\tprogram.remove(explosion);\n\t\tprogram.remove(title);\n\t\tshootCounter = 0;\n\t\tdelayCounter = 0;\n\t\tbarrel = new GameImage(\"../media/TanksPNGS/large_greenTank_cannon.png\");\n\t\tbarrel.setLocation(15, 475);\n\t\tp = false;\n\t\ts= false;\n\t\tc = false;\n\t\tq = false;\n\t}", "public void lose()\r\n {\r\n Alert inputConfirmation = new Alert(Alert.AlertType.INFORMATION);\r\n inputConfirmation.setTitle(\"Game Over!\");\r\n inputConfirmation.setHeaderText(\"You Lose!\");\r\n inputConfirmation.setGraphic(null);\r\n scoreBoard.gameTimer.gameTime.cancel();\r\n\r\n inputConfirmation.showAndWait();\r\n }", "private void exitCombatPlayerDefeat(){\n\t\tCheckpoint.load();\r\n\t\t//GlobalGameState.setActiveGameState(GameStates.DEFEAT);\r\n\t\tGSTransition.getInstace().prepareTransition( GameStates.DEFEAT );\r\n\t\tGlobalGameState.setActiveGameState(GameStates.TRANSITION);\r\n\t}", "public void deactivatePowerup()\r\n\t{\r\n\t\thasPowerup = false;\r\n\t\tcurrentPowerup = null;\r\n\t}", "private void showGameOverDialog() {\n this.computerPaquetView.showOnceHiddenCards();\n int dialogResult = JOptionPane.showConfirmDialog (null, String.format(\"%s, you have lost!\\nPlay again?\", this.blackjackController.getHumanPlayer().getName()),\"\", JOptionPane.YES_NO_OPTION);\n if(dialogResult == JOptionPane.YES_OPTION){\n this.blackjackController.getHumanPlayer().resetBudget();\n this.startGame();\n } else {\n this.dispose();\n }\n }", "public void resetGame() {\n\t\thandler.setDown(false);\n\t\thandler.setLeft(false);\n\t\thandler.setRight(false);\n\t\thandler.setUp(false);\n\n\t\tclearOnce = 0;\n\t\thp = 100;\n\t\tfromAnotherScreen = true;\n\t\tsetState(1);\n\t}", "public void lose() {\n status.setText(\"You're finished\");\n gamegoing = false;\n }", "public void showpuzzle(){\n\t\tpuzzle();\n\t\tframe.setVisible(true);\n\t\twordHint = 0;\n\t\tif(wordHint == length){\n\t\t\tCollections.shuffle(puzzle);\n\t\t\twordHint++;\n\t\t}\n\t}", "private void postSwitchPanel()\n {\n switchPanel = false;\n }", "public void switchToTalentPanel() {\r\n this.midPanelCards.show(this.flipPanel, \"TalentPanel\");\r\n }", "public void resign(){\n\t\tif(Main.getInstance().getScreen() instanceof GEngine){\r\n\t\t\tPlayer user = getUserPlayer();\r\n\t\t\tPlayer winner = state.players[user.playerId == 0 ? 1 : 0];\r\n\t\t\t\r\n\t\t\tnew Popup(\"Game over\", true,\r\n\t\t\t\tnew Label(String.format(\"Player %s has won the game!\", winner.getDisplayName()), Assets.SKIN), \r\n\t\t\t\tComponentFactory.createButton(\"OK\", new ClickListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\r\n\t\t\t\t\t\tMain.getInstance().setScreen(MainMenu.getInstance());\r\n\t\t\t\t\t\tPopup.getCurrentPopup().close();\r\n\t\t\t\t\t}\r\n\t\t\t\t})).show();\r\n\t\t}\r\n\t\t\r\n\t\tMain.getInstance().games.endGame(this);\r\n\t}", "public void endGameSequence()\n {\n gameOver = true;\n repaint();\n }", "public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}", "public void deactivate(){\n state = State.invisible;\n active = false;\n }", "private void jRadioButtonShootAlternativelyActionPerformed() {\r\n\t\tjRadioButtonShootAlternatively.setSelected(true);\r\n\t\tjRadioButtonShootUntilWater.setSelected(false);\r\n\t\tgame.setGameMode(GameMode.ALTERNATIVELY);\r\n\t}", "public void reset() { \r\n myGameOver = false; \r\n myGamePaused = false; \r\n }", "public void unPause()\n {\n paused = false;\n }", "private void finishGame(boolean again){\r\n\t\tdispose();\r\n\t\tif(again) Util.showNewGameDialog(\"Choose player names:\", cantStop.getGameBoard().getPlayers());\r\n\t}", "public static void deinitialisePanel(){\n\t\tif(BrewPanelStatus.equals(\"Initialised\")) {\n\t\t\tBrewPanel.setVisible(false);\n\t\t\ttabbedBrewPane.removeAll();\n\t\t\tBrewPanel.removeAll();\n\t\t\tLegacyApp.WineBrewDBFrame.getContentPane().remove(BrewPanel);\n\t\t\tBrewPanelStatus = \"DeInitialised\";\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t}", "public void stopShowing(Player player){\n\t\tFeatherBoardAPI.removeScoreboardOverride(player,\"build-battle-game\");\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}", "public void resetScreen(){\n\t\tsetFirstAttempt(\"\");\n\t\tsetSecondAttempt(\":\");\n\t\tsetFirstAttempt(\":\");\n\t\tsetFirstAttemptResult(\"\");\n\t\tsetSecondAttemptResult(\"\");\n\t\tsetDefinition(\"\");\n\t\tbtnConfirmOrNext.setText(\"Confirm\");\n\t}", "@Override\n public void done() {\n Toolkit.getDefaultToolkit().beep();\n //release_plan_btn.setEnabled(true);\n setCursor(null); //turn off the wait cursor\n JOptionPane.showMessageDialog(null, \"Plan released !\\n\");\n\n }", "public void GameWin () {\n\t\t\n\t\twordDashes.setText(mysteryWord);\n\t\tguessBttn.setVisible(false);\n\t\tguessFullWord.setVisible(false);\n\t\tAnswerBox.setDisable(true); //can no longer use the text box\n\t\tresultMessage.setText(\" Great Job!!\\nYou Guessed the Word!!\");\n\t\tplayAgain.setVisible(true); \n\t\t\n\t}", "public void revert()\n\t{\n\t\tswingingWay1 = !swingingWay1;\n\t}" ]
[ "0.645872", "0.63534683", "0.62832886", "0.62759614", "0.6197059", "0.6164255", "0.6151107", "0.61276007", "0.61110806", "0.6100934", "0.604796", "0.60427725", "0.6034181", "0.5993431", "0.59703124", "0.59492666", "0.59300405", "0.59222573", "0.59147465", "0.58852994", "0.58642477", "0.58220136", "0.58206874", "0.57971895", "0.5791033", "0.57884973", "0.5783816", "0.5751779", "0.5738315", "0.57263315", "0.5718102", "0.57080656", "0.57073975", "0.5701794", "0.57017213", "0.57003325", "0.56929183", "0.5690308", "0.5688261", "0.568513", "0.5676912", "0.56746566", "0.5667413", "0.566304", "0.5661151", "0.5653401", "0.56525224", "0.5649206", "0.5648711", "0.5648711", "0.5647859", "0.56468666", "0.5642249", "0.5641216", "0.564081", "0.56403357", "0.5638544", "0.56177765", "0.561225", "0.56019557", "0.5601413", "0.5598874", "0.55983573", "0.55964625", "0.55962527", "0.55948275", "0.5585733", "0.55817395", "0.5576966", "0.55766714", "0.55760777", "0.5572362", "0.556994", "0.5563735", "0.5559986", "0.55536425", "0.5553069", "0.5546841", "0.5536836", "0.553486", "0.55340004", "0.55298126", "0.5529175", "0.5528622", "0.5512799", "0.55054826", "0.55053765", "0.55046356", "0.55042046", "0.55018854", "0.5488087", "0.5487342", "0.5481603", "0.548132", "0.54813075", "0.54809755", "0.547822", "0.5477728", "0.5476579", "0.5471719" ]
0.7752828
0
Returns the pause button.
public JButton getPauseButton () { return pauseButton; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JButton getCmdPause() {\r\n\t\tif (cmdPause == null) {\r\n\t\t\tcmdPause = new JButton();\r\n\t\t\tcmdPause.setIcon(new ImageIcon(getClass().getResource(\"/Pause-48.png\")));\r\n\t\t\tcmdPause.setToolTipText(\"Give you a pause.\");\r\n\t\t\tcmdPause.setEnabled(false);\r\n\t\t\tcmdPause.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\r\n\t\t\t\t\tchkproxy.setPause(true);\r\n\t\t\t\t\tcmdStart.setEnabled(true);\r\n\t\t\t\t\tcmdStop.setEnabled(false);\r\n\t\t\t\t\tcmdPause.setEnabled(false);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn cmdPause;\r\n\t}", "public boolean getPlayPauseButton()\n\t{\n\t\treturn getBooleanIOValue(\"PlayPauseButton\", false);\n\t}", "public void togglePauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.TOGGLE_PAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public void showPauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.SHOW_PAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public boolean getPauseControl()\n\t{\n\t\treturn getBooleanIOValue(\"PauseControl\", true);\n\t}", "public void drawPauseButton(){\r\n\t\tBatch b = canvas.getBatch();\r\n\t\tpauseButton.setPosition(camera.position.x+PAUSE_BUTTON_OFFSETX, camera.position.y+PAUSE_BUTTON_OFFSETY);\r\n\t\tpauseButton.draw(b, 1);\r\n\t}", "private void setPlayButtonToPause() {\n NowPlayingInformation.setPlayButtonStatus(1);\n MainActivity.displayPlayButton();\n }", "public void hidePauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_PAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public static Button pause(String texturePrefix) {\n float yOffset = 100f;\n float spacing = 10f + EntityType.BUTTON.getHeight();\n return new Button(\n new Vector2(\n (Gdx.graphics.getWidth() - EntityType.BUTTON.getWidth()) / 2.0f,\n (yOffset + spacing * ((pauseButtonCount++)%3)) / Settings.SCALAR\n ),\n texturePrefix + activeSuffix,\n texturePrefix + inactiveSuffix\n );\n }", "private void transport_pause() {\n timerPause();\n playing = false;\n now_playing_play_button.setForeground(getDrawable(R.drawable.ic_play_arrow_50dp));\n }", "public void showUnpauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.SHOW_UNPAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "private void btnPauseActionPerformed(java.awt.event.ActionEvent evt) {\n pause();\n }", "public JButton getSpeakerButton() {\n\t\treturn speakerButton;\n\t}", "private void synchronizePlayPauseButton() {\n\t\tFloatingActionButton button = getPlayStopButton();\n\t\tint currentPlayingStatus = mService.getCurrentPlayingStatus();\n\t\tif (mService.whatIsPlaying() != null) {\n\t\t\tboolean isOnPrepare = mService.isOnPrepare();\n\t\t\tswitch (currentPlayingStatus) {\n\t\t\t\tcase MediaPlayerService.CURRENT_PLAYING_STATUS_NONE:\n\t\t\t\tcase MediaPlayerService.CURRENT_PLAYING_STATUS_PAUSE:\n\t\t\t\t\tbutton.setImageResource(R.drawable.ic_media_play);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MediaPlayerService.CURRENT_PLAYING_STATUS_PLAY:\n\t\t\t\t\tbutton.setImageResource(R.drawable.ic_media_pause);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbutton.setImageResource(isOnPrepare ? R.drawable.ic_media_pause : R.drawable.ic_media_play);\n\t\t\t}\n\t\t\t/*if (isOnPrepare)\n\t\t\t\tbutton.setVisibility(View.GONE);\n\t\t\telse if (button.getVisibility() != View.VISIBLE)\n\t\t\t\tbutton.setVisibility(View.VISIBLE);*/\n\t\t} else\n\t\t\tbutton.setImageResource(R.drawable.ic_media_play);//button.setVisibility(View.GONE);\n\t\tif (button.getVisibility() != View.VISIBLE)\n\t\t\tbutton.setVisibility(View.VISIBLE);\n\t}", "public void setTextOfStartPause() {\n if (play) {\n startButton.setText(\"Start\");\n } else {\n startButton.setText(\"Pause\");\n }\n }", "public boolean getPause() {\r\n return pause;\r\n }", "private void actionPause() {\n\t\tselectedDownload.pause();\n\t\tupdateButtons();\n\t}", "public void togglePlayPause(boolean state) {\n\t\tif (state) {\n\t\t\tplayButton.setText(\"❚❚\");\n\t\t} else {\n\t\t\tplayButton.setText(\"►\");\n\t\t}\n\t}", "private void buttonLaunchPause_MouseClicked(MouseEvent evt)\n {\n if (buttonLaunchPause.getText().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Launch\")))\n {\n buttonLaunchPause.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Pause\"));\n labelAutoConnectState.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelAutoConnectState.Launched\"));\n }\n else if (buttonLaunchPause.getText().equalsIgnoreCase(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Pause\")))\n {\n buttonLaunchPause.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.buttonLaunchPause.Launch\"));\n labelAutoConnectState.setText(I18nUtil.getInstance().getI18nMsg(\"fr.davidbrun.wifiautoconnect.views.FrmMain.labelAutoConnectState.Paused\"));\n }\n }", "public void hideUnpauseButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_UNPAUSE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "public String pause();", "private JButton getCmdStop() {\r\n\t\tif (cmdStop == null) {\r\n\t\t\tcmdStop = new JButton();\r\n\t\t\tcmdStop.setText(\"\");\r\n\t\t\tcmdStop.setIcon(new ImageIcon(getClass().getResource(\"/Stop-48.png\")));\r\n\t\t\tcmdStop.setToolTipText(\"Stop all current operation.\");\r\n\t\t\tcmdStop.setEnabled(false);\r\n\t\t\tcmdStop.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tchkproxy.cancel(true);\r\n\t\t\t\t\tcmdStart.setEnabled(true);\r\n\t\t\t\t\tcmdPause.setEnabled(false);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn cmdStop;\r\n\t}", "public void playPauseTrack() {\n //Switch the play/pause drawables\n if (isPlaying) {\n mPlayPauseBtn.setImageResource(android.R.drawable.ic_media_pause);\n mPlayerService.resumeTrack();\n } else {\n mPlayPauseBtn.setImageResource(android.R.drawable.ic_media_play);\n mPlayerService.pauseTrack();\n }\n }", "public JButton getGoBtn() {\n\t\treturn go;\n\t}", "boolean getPausePreviewPref();", "public JButton getButtonToStartTimer()\n {\n return timerButton;\n }", "@FXML\n private void pauseButtonAction(ActionEvent event) {\n if(isPaused){\n mediaPlayer.play();\n isPaused = false;\n nowPlaying.setText(currentSong.getName());\n //playIcon.setImage(new Image(\"icons//play.png\"));\n ImageView iv = new ImageView(pauseImage);\n iv.setFitHeight(34);\n iv.setFitWidth(34);\n pause.setGraphic(iv);\n }\n else{\n mediaPlayer.pause();\n isPaused = true;\n nowPlaying.setText(\"Paused...\");\n ImageView iv = new ImageView(playImage);\n iv.setFitHeight(34);\n iv.setFitWidth(34);\n pause.setGraphic(iv);\n }\n }", "private static void addPauseButton(AnchorPane ui) {\n\t\tCanvas pauseBtn = new Canvas(16 * GameConfig.getScale(), 16 * GameConfig.getScale());\n\t\tui.getChildren().add(pauseBtn);\n\n\t\tAnchorPane.setTopAnchor(pauseBtn, 5.0 * GameConfig.getScale());\n\t\tAnchorPane.setRightAnchor(pauseBtn, 5.0 * GameConfig.getScale());\n\n\t\tpauseBtn.getGraphicsContext2D().drawImage(DrawUtil.scaleUp(pauseSprite, GameConfig.getScale()), 0, 0);\n\n\t\tpauseBtn.setOnMouseClicked((event) -> {\n\t\t\tif (InterruptController.isInventoryOpen() || InterruptController.isTransition()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (InterruptController.isPauseOpen()) {\n\t\t\t\tpausePane.remove();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tgamePane.getChildren().add(pausePane);\n\t\t\tpausePane.requestFocus();\n\t\t\tInterruptController.setPauseOpen(true);\n\t\t});\n\t}", "public String GetButtonText() {\n\t\treturn getWrappedElement().getText();\n\t}", "public String getKeyPauseName() {\r\n return keyPauseName;\r\n }", "public void pause() {\n }", "@Override\n public void pauseAudioView() {\n btnPlay.setImageDrawable(getResources().getDrawable(R.drawable.ic_play));\n }", "boolean isPause();", "public PauseMenuScreen getPauseMenuScreen() {\n return pauseMenuScreen;\n }", "private View.OnClickListener buildPauseOnClickListener() {\n return new BaseOnClickListener(mFloatingActionButton) {\n @Override\n public void onClick(final View view) {\n super.onClick(view);\n mBangingTunes.pause();\n }\n };\n }", "void pauseRadio();", "public JoystickButton getButtonStart() {\n\t\treturn button[7];\n\t}", "public void switchToPause ()\n {\n timer.setPaused (true);\n questionLabel.setText (\"<html><br>You have paused the game!\"+\n \"<br>To continue, please press the pause button again!\"+\n \"<br>~^_^~</html>\");\n a.setVisible(false);\n b.setVisible(false);\n c.setVisible(false);\n d.setVisible(false);\n repaint ();\n revalidate ();\n }", "private JButton getAfterButton() {\r\n\t\tif (afterButton == null) {\r\n\t\t\tafterButton = new JButton();\r\n\t\t\tafterButton.setLocation(new Point(660, 480));\r\n\t\t\tafterButton.setText(\"Next Page\");\r\n\t\t\tafterButton.setSize(new Dimension(120, 30));\r\n\t\t}\r\n\t\treturn afterButton;\r\n\t}", "public void pause();", "public void pause();", "public void pause();", "public String getKey() {\r\n return this.buttonKey;\r\n }", "@UiHandler(\"btnPause\")\n void onPause(ClickEvent e){\n Runnable closeCallback = new Runnable() {\n @Override\n public void run() {\n // Setting the visibility of the FAB for reverse animation\n MaterialAnimator.animate(Transition.ZOOMIN, btnFAB, 1000);\n btnFAB.setVisibility(Style.Visibility.VISIBLE);\n btnFAB.setOpacity(1);\n\n // Hide the music panel once the pause button is clicked\n musicPanel.setVisibility(Style.Visibility.HIDDEN);\n musicPanel.setOpacity(0);\n\n // Setting the previous music label with Bounce down animation\n lblMusic.setText(\"Lady Gaga / Telephone\");\n MaterialAnimator.animate(Transition.BOUNCEINDOWN, lblMusic, 1000);\n\n // Setting the image of the artist\n imgMusic.setUrl(\"https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRi9lfCkLutb7ugJlIjn84qWNoiICopC-Vyx7QQJRHF5E7GlqFG\");\n }\n };\n\n // Execute the close callback animation\n MaterialPathAnimator.reverseAnimate(btnFAB.getElement(), musicPanel.getElement(), closeCallback);\n }", "public void pausePlayer(){\n this.stopRadio();\n }", "public JButton getPOSBtn() {\r\n\t\tthis.posBtn = new JButton(\"POS File\");\r\n\t\tthis.posBtn.addActionListener(this);\r\n\t\tthis.posBtn.setEnabled(ComponentData.getPosBtnIsEnabled());\r\n\t\treturn this.posBtn;\r\n\t}", "public int getKeyPause() {\r\n return Input.Keys.valueOf(getKeyPauseName());\r\n }", "public void pause() {}", "public void pause() {\r\n\t\tsetState(PAUSED);\r\n\t}", "public void pause() {\n\t\t// TODO Auto-generated method stub\n\t}", "private JButton getPreButton() {\r\n\t\tif (preButton == null) {\r\n\t\t\tpreButton = new JButton();\r\n\t\t\tpreButton.setText(\"Prev Page\");\r\n\t\t\tpreButton.setSize(new Dimension(120, 30));\r\n\t\t\tpreButton.setLocation(new java.awt.Point(10,480));\r\n\t\t}\r\n\t\treturn preButton;\r\n\t}", "public void setButton() {\n pan.add(playButton);\n }", "@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n\t\tmyPlayer.release();\r\n\t\tstartButton.setImageResource(R.drawable.quick);\r\n\t\tselectButton.setImageResource(R.drawable.select);\t\r\n\t}", "public void pause() {\r\n fPause = true;\r\n }", "public void onPauseButtonPressed(View view){\n ((ImageView)(findViewById(R.id.pauseButton))).setVisibility(View.INVISIBLE);\n ((ImageView)(findViewById(R.id.playButton))).setVisibility(View.VISIBLE);\n timerService.onPauseRequest();\n }", "private Map<Integer, Button> getButtons(){\r\n\t\tMap<Integer, Button> buttons = new HashMap<Integer, Button>();\r\n\r\n\t\tButton toLeftBt = new Button(\"&lt;\");\r\n\t\tbuttons.put(0, toLeftBt);\r\n\t\tButton toRightBt = new Button(\"&gt;\");\r\n\t\tbuttons.put(2, toRightBt);\r\n\t\tfinal Button playBt = new Button(\"||\");\r\n\t\tbuttons.put(1, playBt);\r\n\t\t\r\n\t\ttoRightBt.addClickListener(new ClickListener(){\r\n\t\t\tpublic void onClick(Widget sender) {\r\n\t\t\t\tdisplayNext();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttoLeftBt.addClickListener(new ClickListener(){\r\n\t\t\tpublic void onClick(Widget sender) {\r\n\t\t\t\tdisplayPrevious();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tplayBt.addClickListener(new ClickListener(){\r\n\t\t\tpublic void onClick(Widget sender) {\r\n\t\t\t\tif(isActive){\r\n\t\t\t\t\tstopSlideshow();\r\n\t\t\t\t\tplayBt.setText(\"Go\");\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tstartSlideshow();\r\n\t\t\t\t\tplayBt.setText(\"||\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn buttons;\r\n\t}", "@FXML\n\tpublic void handleAudioManipulatorPauseButton() {\n\t\tcontroller.audioManipulatorPauseAudio();\n\t\tbuttonPlay.setDisable(false);\n\t\tbuttonPause.setDisable(true);\n\t\tbuttonStop.setDisable(false);\n\t\tpaneMixerMainControls.setDisable(false);\n\t\tsliderLowPass.setDisable(false);\n\t\ttextFieldLowPass.setDisable(false);\n\t}", "public void pause() {\r\n\t}", "@GET\n @Path(\"/pause\")\n @Produces(MediaType.TEXT_PLAIN)\n public String pause() {\n Device device = getDevice();\n try {\n transportService.pause(device.getId());\n } catch (UnknownDeviceException e) {\n return e.getMessage();\n }\n return \"Pause device:[\" + device.getId() + \"]\";\n }", "@Override\n\tpublic void pause() {\n\t\tAction(Director.ACTION_PAUSE);\n\t}", "protected JButton getQuit()\n {\n return quit;\n }", "public IButton getReturnButton() {\n return controls.getReturnButton();\n }", "protected abstract boolean pause();", "public void checkPause();", "public String timerPause(){\n return mTimer;\n }", "@Override\n T pause();", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "@Override\n\tpublic void pause() {\n\n\t}", "Button getBtn();", "public PausePanel()\n {\n StateSelector stateSelector = StateSelector.getInstance();\n GameState state = (GameState) stateSelector.getState();\n Session session = state.getSession();\n\n JTextField idTextField = new JTextField(40);\n idTextField.setEditable(false);\n idTextField.setText(session.getId());\n add(idTextField);\n \n StringSelection stringSelection = new StringSelection(session.getId());\n Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n clipboard.setContents(stringSelection, null);\n \n Button backButton = new Button(\"assets/images/buttons/backDefault.png\", \"assets/images/buttons/backHover.png\", \"assets/images/buttons/backClick.png\");\n backButton.setWidth(71);\n backButton.setHeight(33);\n backButton.setX(539);\n backButton.setY(367);\n onHover(backButton, backButton.HOVER_COMMAND, backButton.UNHOVER_COMMAND);\n onPress(backButton, backButton.PRESS_COMMAND);\n onRelease(backButton, new Callable()\n {\n public void call()\n {\n Window window = Window.getInstance();\n window.setPanel(new GamePanel());\n \n }\n });\n buttons.add(backButton);\n\n JButton quitBtn = new JButton(\"quit\");\n quitBtn.addActionListener(new QuitListener());\n add(quitBtn);\n }", "public JButton getStartButton() {\n\t\treturn this.btnStartSystem;\n\t}", "public void Pause();", "@Override\n public void playingAudioView() {\n btnPlay.setImageDrawable(getResources().getDrawable(R.drawable.ic_pause));\n }", "public boolean pause();", "public boolean pause();", "public void pause() {\n pause = true;\n }", "@Override\n\tpublic void pause()\n\t{\n\n\t}", "@Override\n \tpublic void pause() {\n \t}", "public abstract void pause();", "public abstract void pause();", "private Button continueButton(EventHandler<ActionEvent> splashScreenComboBoxEvent) {\n\t\tcontinueButton = new Button();\n\t\tcontinueButton.setText(CONTINUE);\n\t\tcontinueButton.setPrefWidth(200);\n\t\tcontinueButton.setOnAction(splashScreenComboBoxEvent);\n\t\tcontinueButton.setId(\"Continue\");\n\t\t\n\t\tcontinueButton.setDisable(true);\n\t\t\n\t\treturn continueButton;\n\t}", "@Override\n\tpublic void pause() \n\t{\n\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}", "@Override\n\tpublic void pause() {\n\t\t\n\t}" ]
[ "0.81956947", "0.80629224", "0.7438008", "0.73195606", "0.72570187", "0.7175313", "0.69779986", "0.6929138", "0.6823963", "0.67592716", "0.67294294", "0.6690369", "0.6639833", "0.659723", "0.65678847", "0.6561542", "0.65400684", "0.6403471", "0.63911074", "0.63710433", "0.6354813", "0.630162", "0.6278448", "0.61732256", "0.61574817", "0.6155273", "0.6148161", "0.61117285", "0.60994595", "0.60948086", "0.60862803", "0.6079146", "0.6076859", "0.6050887", "0.6050336", "0.60439277", "0.6043332", "0.60268855", "0.60096633", "0.6007018", "0.6007018", "0.6007018", "0.5999776", "0.5993182", "0.59829956", "0.5969011", "0.5965323", "0.5949497", "0.5948253", "0.59440166", "0.5926158", "0.5924747", "0.59226173", "0.59185934", "0.5904034", "0.58887047", "0.588574", "0.58853513", "0.5875392", "0.5867705", "0.5862166", "0.5834979", "0.5827979", "0.5826229", "0.58249944", "0.5820119", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.581954", "0.5808406", "0.58048105", "0.58047175", "0.5802527", "0.5798045", "0.57907075", "0.57907075", "0.5788282", "0.5787683", "0.57871526", "0.578679", "0.578679", "0.5772188", "0.57712835", "0.5766311", "0.5766311", "0.5766311" ]
0.8783116
0
Returns the destinations currently displayed.
public Country[] getDestinations () { return destinations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ModelAttribute(value = \"destinationList\")\n\tpublic List<String> listDestinations() {\n\t\tList<Destination> listDestination= destinationService.getDestinations();\n\t\t\n\t\tList<String> listLocation = new ArrayList<String>();\n\t\tfor(Destination a : listDestination){\n\t\t\tlistLocation.add(a.getLocation());\t\n\t\t}\n\t\t\n\t\treturn listLocation;\n\t\t\n\t}", "public Map<Direction, Location> getDestinations() {\n return this.destinations;\n }", "public ArrayList<Location> destinations()\n {\n ArrayList<Location> arr = new ArrayList<Location>();\n for(int i = 0; i < 360; i += 45)\n {\n sweep(arr, i);\n }\n return arr;\n }", "ListDestinationsResult listDestinations(ListDestinationsRequest listDestinationsRequest);", "@Override\n public ListDestinationsResult listDestinations(ListDestinationsRequest request) {\n request = beforeClientExecution(request);\n return executeListDestinations(request);\n }", "public Collection<String> getDestSites() {\n return mDestMap.keySet();\n }", "List<Destination> findAllDestinations();", "@Override\n public List<Set<String>> getPlayersVisibleTo(){\n Set<String> players = new HashSet<String>();\n players.add(destination.getOwner().getName());\n for(Region adj : destination.getAdjRegions()){\n players.add(adj.getOwner().getName());\n }\n //All adjacent can see cloaking happened\n return Arrays.asList(players);\n }", "private Set<String> getDestinations(Collection<RouteNode> routes, String origen) {\r\n Set<String> allDestinations = routes.stream()\r\n .map(route -> route.getDestination())\r\n .filter(destination -> ! destination.equals(origen))\r\n .collect(Collectors.toSet());\r\n \r\n log.info(String.format(\"Got destinations: %s\", allDestinations));\r\n return allDestinations;\r\n }", "@Override\n\tpublic List<Flight> selectDestintion() {\n\t\treturn flightMapper.selectDestintion();\n\t}", "public String getDestination(){\r\n\t\treturn route.getDestination();\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Showing results for \" + destination;\r\n\t}", "public Collection<RouteBean> findDestinations(String origin) {\n\t\tRouteBean rb = null;\n\t\tCollection<RouteBean> rbs = new ArrayList<RouteBean>();\n\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tResultSet rs = null;\n\t\t\trs = st.executeQuery(\"SELECT DISTINCT(destination) FROM route r,bus b where r.rid=b.rid AND origin='\"+origin+\"'\");\n\t\t\twhile (rs.next()) {\n\t\t\t\trb = new RouteBean();\n\t\t\t\trb.setDestination(rs.getString(\"destination\"));\n\t\t\t\trbs.add(rb);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn rbs;\n\t}", "public abstract List<JMSDestinationBean> getAllJmsDestinations();", "public LatLng getDestination () {\n return destination;\n }", "public String getDestination() {\r\n\t\treturn this.destination;\r\n\t}", "public String getDestination() {\r\n\t\treturn destination;\r\n\t}", "public Location getDestination() {\r\n return destination;\r\n }", "public int getDestination() {\r\n\t\treturn destination;\r\n\t}", "public String getDestination() {\r\n return destination;\r\n }", "public String getDestination() {\n return this.destination;\n }", "public String getDestination() {\n\t\treturn destination;\n\t}", "int getDestination();", "public String getDestination() {\n return destination;\n }", "public String getDestination() {\r\n return this.destination;\r\n }", "public java.lang.String getDestination() {\n return destination;\n }", "public List<NavArc> listOutgoing() {\r\n List<NavArc> result = new ArrayList<>(outgoing);\r\n return result;\r\n }", "Destination getDestination();", "public Location getDestination(){\n\t\treturn destination;\n\t}", "String getRouteDest();", "public java.lang.String getDestination()\n {\n return this._destination;\n }", "public ArrayList<Building> getSavedDestinations() {\r\n\r\n ArrayList<Building> buildingsList = new ArrayList<Building>();\r\n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\r\n builder.setTables(FTS_VIRTUAL_TABLE_HISTORY);\r\n builder.setProjectionMap(mColumnMapHistory);\r\n\r\n builder.setTables(FTS_VIRTUAL_TABLE_HISTORY + \" INNER JOIN \" + BuildingDatabase.FTS_VIRTUAL_TABLE +\r\n \" ON \" + BUILDING_ID + \" = \" + BuildingDatabase.FTS_VIRTUAL_TABLE + \".\" + BaseColumns._ID);\r\n\r\n String[] columns = new String[] {\r\n BUILDING_ID, //building id\r\n BuildingDatabase.KEY_BUILDING, //name\r\n BuildingDatabase.KEY_DETAILS, //points\r\n };\r\n\r\n Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(),\r\n columns, null, null, null, null, null);\r\n\r\n while (cursor.moveToNext()) {\r\n int building_id = cursor.getInt(cursor.getColumnIndex(BaseColumns._ID));\r\n String name = cursor.getString(cursor.getColumnIndex(BuildingDatabase.KEY_BUILDING));\r\n String content = cursor.getString(cursor.getColumnIndex(BuildingDatabase.KEY_DETAILS));\r\n List<Point> list = ParserUtils.buildingPointsParser(content);\r\n\r\n buildingsList.add(new Building(building_id, name, list));\r\n }\r\n\r\n Collections.reverse(buildingsList);\r\n return buildingsList;\r\n }", "public PriorityQueue<Integer> getDestList() {\n\t\t\n\t\treturn destList;\n\t}", "public Location getDestination()\r\n\t{ return this.destination; }", "public String getDestination()\n\t{\n\t\treturn notification.getString(Attribute.Request.DESTINATION);\n\t}", "public Coordinate getDestination() {\n return cDestination;\n }", "public ViewObjectImpl getLocations() {\n return (ViewObjectImpl)findViewObject(\"Locations\");\n }", "public List<Tile> getRoute() {\n List<Tile> currentRoute = new ArrayList<Tile>();\n for (int i = 0; i < route.size(); i++) {\n currentRoute.add(route.get(i));\n }\n return currentRoute;\n }", "public int getDestination() {\n\t\treturn finalDestination;\n\t}", "public Location getDest() {\n return ticketsCalculator.getDest();\n }", "public boolean hasDestination() {\n return result.hasDestination();\n }", "public List<Site> getSpaces() {\n SiteQuery sq = new SiteQuery.Builder().withSiteTypes(SiteType.SPACE).build();\n List<Site> s = PortalRequest.getInstance().getPortal().findSites(sq);\n return s;\n }", "public java.util.List getWaypoints();", "@Override\n\tpublic String toString() {\n\t\tString travelListString = \"\";\n\t\tif (this.travelList.size() > 0)\n\t\t{\n\t\t\ttravelListString = this.travelList.get(0).getDestinationName() + \" : \" + this.travelList.get(0).getDestinationDescription();\n\t\t}\n\t\tfor (int index = 1; index < this.travelList.size(); index ++) {\n\t\t\ttravelListString = travelListString + \"\\n\" + this.travelList.get(index).getDestinationName() + \" : \" + this.travelList.get(index).getDestinationDescription();\n\t\t}\n\t\treturn travelListString;\n\t}", "private String getPossibleDirections() {\n\t\t\n\t\tString directionsToReturn=\"\";\n\t\t\n\t\tif(entity.getFrontCell() != null) {\n\t\t\t\n\t\tHashSet<E_Direction> possibleDirections = entity.getFrontCell().getPossibleDirections();\n\t\tint size=possibleDirections.size();\n\t\t\n\t\tE_Direction[] directions = new E_Direction[size];\n\t\tdirections = possibleDirections.toArray(directions);\n\t\t\n\t\tif(size > 1) directionsToReturn = directions[0].toString()+\",\"+directions[1].toString(); \n\t\n\t\telse\n directionsToReturn = directions[0].toString();\n\t\n\t\t}\n\t\t\n\t\t\n\t\treturn directionsToReturn; // the directons text to string\n\t\t\n\t}", "private String viewListOfStops() {\n StringBuilder result = new StringBuilder();\n for (TTC stops : this.listOfStops) {\n result.append(stops.toString());\n result.append(\" -> \");\n }\n return (result.toString()).substring(0, result.length() - 2);\n }", "public static ArrayList<Display> getDisplays() { return displays; }", "public List<DestinationAccountDetails> destinationAccountDetails() {\n return this.destinationAccountDetails;\n }", "public String printRouteStops()\r\n {\r\n String route_output = \"-> \";\r\n for (Stop s : stops_map)\r\n {\r\n route_output = route_output + s.getId() + \" ->\";\r\n }\r\n\r\n return route_output;\r\n }", "Set<McastRoute> getRoutes();", "public List<Neighbour> getAvailableHosts() {\n return new ArrayList<>(routes.keySet());\n }", "List<String> getFarzones();", "public String destination() {\n return this.destination;\n }", "public TeleportDestination get(int index) {\n\t\treturn destinations.get(index);\n\t}", "public int queryDistance(int destination){\n\t\treturn distances[destination];\n\t}", "public List<RouteDTO> viewRouteDetails() throws FRSException\r\n\t{\n\t\treturn dao.getRouteList();\r\n\t}", "public Location to_the(Direction d) {\n return destinations.get(d);\n }", "public String toString() {\n String lst = \" Liste des directions\";\n if (sisters != null) {\n for (int i = 0; i < sisters.length; i++) {\n lst = lst + \" \" + sisters[i].getDirection();\n }\n }\n return lst;\n }", "void getDrivableLocations() {\n\t\t\tSystem.out.print(\"\\nPlaces you can drive to: \");\n\t\t\tfor (int i = 0; i < places.length; i++)\n\t\t\t\tif (places[i].drivable) //looks to see if you can drive there \n\t\t\t\t\tif ((places[i] != this)) //if it's not you're current location.\n\t\t\t\t\t\tSystem.out.print(places[i].locationName + \", \");\t//prints the name of the location\t\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}", "public List<ReplicaCatalogEntry> getDestURLs(String site) {\n return (mDestMap.containsKey(site)) ? mDestMap.get(site) : new ArrayList();\n }", "public List<String> getRouteList();", "public List<arc> getOutcomingLinks() {\r\n\t\treturn outcoming;\r\n\t}", "public Town getDestination() {\r\n\t\treturn this.destination;\r\n\t}", "public boolean get_destination() {\r\n return (final_destination);\r\n }", "public String getRouters(){\n wifi.startScan();\n results = wifi.getScanResults();\n size = results.size();\n String jsonRouter = new Gson().toJson(results);\n return jsonRouter;\n }", "public String[] getAllLocations() {\n // STUB: Return the list of source names\n return null;\n }", "public String getDestinationCountry() {\r\n return this.destinationCountry;\r\n }", "public List<String> locations() {\n return this.locations;\n }", "@Override\n\tpublic List<Land> displayLand() {\n\t\treturn dao.displayLand();\n\t}", "protected List<Receptor> getDestinos() {\r\n\t\tfinal List<PataBidireccional> allPatas = getPatas();\r\n\t\tfinal ArrayList<Receptor> destinos = new ArrayList<Receptor>(allPatas.size());\r\n\t\tfor (final PataBidireccional pata : allPatas) {\r\n\t\t\tfinal Receptor destino = pata.getNodoRemoto();\r\n\t\t\tdestinos.add(destino);\r\n\t\t}\r\n\t\treturn destinos;\r\n\t}", "io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestination getDestination();", "public ArrayList<Street> getDetourStreets()\r\n {\r\n return detour_streets;\r\n }", "public Integer getDestination() {\n\t\treturn new Integer(destination);\n\t}", "@Override\n public Location getDestination() {\n return _destinationLocation != null ? _destinationLocation : getOrigin();\n }", "public String toString() {\n return satelliteList.toString();\n }", "@DisplayValue\n\tpublic final String existingSchedules() {\n\t\tfinal List<Schedule> schedules = target.getSubResources(Schedule.class, false);\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tsb.append(\"<ul>\");\n\t\tfor (Schedule s: schedules) {\n\t\t\tsb.append(\"<li>\").append(s.getLocationResource().toString()).append(\"<br>Values: \").append(s.getValues(Long.MIN_VALUE).size()); // FIXME replace by size() method\n\t\t}\n\t\tsb.append(\"</li>\");\n\t\treturn sb.toString();\n\t}", "public int getDestURLCount() {\n int count = 0;\n for (String site : getDestSites()) {\n count += this.getDestURLs(site).size();\n }\n return count;\n }", "private void showFinalPath() // run after end dest has been set\n {\n for(int i = 0; i < cities.size(); i++)\n System.out.println(cities.get(i));\n }", "public IAirport getDestination();", "public Room getDestination() {\n return toRoom;\n }", "public Collection<? extends Direction> getDirections ()\r\n {\r\n return directions;\r\n }", "@Override\n public GetDestinationResult getDestination(GetDestinationRequest request) {\n request = beforeClientExecution(request);\n return executeGetDestination(request);\n }", "public HashSet<String> getTrainsWithFinishedRoutes() {\n\t\tHashSet<String> finishedTrains = new HashSet<String>();\n\t\tfor (Train t : trains) {\n\t\t\tif (t.currentBlock == t.destination) {\n\t\t\t\tif (t.distanceTraveledOnBlock == ((DefaultBlock)blockData.get(t.currentBlock)).blockLength/2) { // it is at the station\n\t\t\t\t\tif ((t.remainingTravelTime == 0) && (t.currSpeed == 0)) {\n\t\t\t\t\t\tfinishedTrains.add(t.trainName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (finishedTrains.size() > 0) {\n\t\t\treturn finishedTrains;\n\t\t}\n\t\treturn null;\n\t}", "public boolean hasDestination() {\n return destination_ != null;\n }", "boolean hasDestination();", "boolean hasDestination();", "public void displayPaths() {\r\n\t\tlog.debug(\"startPaths\");\r\n\t\tfor ( Map.Entry<Integer, Vector<Edge>> entry: startPaths.entrySet()) {\r\n\t\t\tfor ( Edge edge: entry.getValue()) {\r\n\t\t\t\tlog.debug( entry.getKey() + \": \" + edge.StartRoom + \"->\" + edge.door + \"->\" + edge.DestinationRoom );\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.debug(\"destinationPaths\");\r\n\t\tfor ( Map.Entry<Integer, Vector<Edge>> entry: destinationPaths.entrySet()) {\r\n\t\t\tfor ( Edge edge: entry.getValue()) {\r\n\t\t\t\tlog.debug( entry.getKey() + \": \" + edge.StartRoom + \"->\" + edge.door + \"->\" + edge.DestinationRoom );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public java.lang.String getDestinationAirport() {\r\n return destinationAirport;\r\n }", "public Sommet destination() {\n return destination;\n }", "public List<Route> getRoutes(){\n return routeDAO.findAll();\n }", "String getDestination() {\n if (isSeparateFolder()) {\n return destination.getText();\n } else {\n return null;\n }\n }", "public io.opencannabis.schema.commerce.OrderDelivery.DeliveryDestinationOrBuilder getDestinationOrBuilder() {\n return getDestination();\n }", "String viewRouteDetails(String source, String destination);", "public List<Node> getShortestPathToDestination(Node destination) {\n List<Node> path = new ArrayList<Node>();\n\n\n\n for (Node node = destination; node != null; node = node.previous){\n Log.i(\"bbb\", \"get path \"+node._waypointName);\n path.add(node);\n }\n\n // reverse path to get correct order\n Collections.reverse(path);\n return path;\n }", "public static String getDirections(String origin, String[] dest)\n\t\tthrows IOException, SAXException, ParserConfigurationException {\n\n\t\tString start = origin.replace(\"\\\\s\", \"%20\");\n\t\tString end = dest[0] + \",\" + dest[1] + \",\" + dest[2];\n\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory\n\t\t\t.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument doc = dBuilder.parse(directionsURL + start\n\t\t\t+ \"&destination=\" + end + \"&sensor=false\");\n\t\tdoc.getDocumentElement().normalize();\n\n\t\tNodeList steps = doc.getElementsByTagName(\"step\");\n\n\t\tString out = \"The routing directions: \\n\";\n\n\t\tfor (int i = 0; i < steps.getLength(); i++) {\n\t\t\tNode currStep = steps.item(i);\n\t\t\tNodeList stepInfo = currStep.getChildNodes();\n\t\t\tString line = stepInfo.item(11).getTextContent();\n\t\t\tStringBuilder temp = new StringBuilder();\n\t\t\tBoolean del = false;\n\t\t\tBoolean needSpace = false;\n\t\t\tfor (int j = 0; j < line.length(); j++) {\n\t\t\t\tif (line.charAt(j) == '<') {\n\t\t\t\t\tdel = true;\n\t\t\t\t\tif (needSpace) {\n\t\t\t\t\t\ttemp.append(\" \");\n\t\t\t\t\t\tneedSpace = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (line.charAt(j) == '>') {\n\t\t\t\t\tdel = false;\n\t\t\t\t\tneedSpace = true;\n\t\t\t\t}\n\t\t\t\telse if (del) {\n\t\t\t\t\t// Do nothing\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttemp.append(line.charAt(j));\n\t\t\t\t\tneedSpace = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (temp.indexOf(\"Destination\") != -1) {\n\t\t\t\tint index = temp.indexOf(\"Destination\");\n\t\t\t\ttemp.insert(index, \"\\n\");\n\t\t\t}\n\n\t\t\tout += temp + \"\\n\";\n\n\t\t}\n\t\treturn out;\n\t}", "List<String> locations();", "static int[] chooseDestination(List<int[]> possibleDestinations){\n System.out.println(\"Choose destination: \");\n List<String> options = new ArrayList<>();\n for(int i=0; i < possibleDestinations.size(); i++){\n int optionNr = i + 1;\n options.add(Integer.toString(optionNr));\n System.out.print(optionNr + \": \");\n printCoordinatesForUser(possibleDestinations.get(i));\n System.out.print(\"\\n\");\n\n }\n System.out.print(\"Type the chosen option(the number at left, not the coordinates): \");\n String userChoice = readUserChoice(options, false);\n if(userChoice != null){//timer not expired\n int posInList = Integer.parseInt(userChoice) - 1;\n return possibleDestinations.get(posInList);\n }\n else{\n return null;\n }\n }", "public String getDestinationAirportName() {\n return destination.getName();\n }", "public ExportDestination getDestination() {\n return this.destination;\n }", "private void retrieveListings(GoogleMap googleMap) {\n Projection projection = googleMap.getProjection();\n VisibleRegion visibleRegion = projection.getVisibleRegion();\n LatLng sw = visibleRegion.latLngBounds.southwest;\n LatLng ne = visibleRegion.latLngBounds.northeast;\n double left = sw.longitude;\n double bottom = sw.latitude;\n double right = ne.longitude;\n double top = ne.latitude;\n\n // Find listings on the visible region of the map\n queryListings(left, right, top, bottom);\n }" ]
[ "0.7163161", "0.70935124", "0.69173455", "0.63386357", "0.63072944", "0.6259559", "0.6180825", "0.5956601", "0.5920514", "0.58910733", "0.5874706", "0.5811482", "0.57765865", "0.5771657", "0.57716024", "0.56799155", "0.567586", "0.5666339", "0.56517", "0.56385225", "0.5633909", "0.5628435", "0.56136566", "0.56071174", "0.5597198", "0.55892795", "0.55599755", "0.55564034", "0.55491567", "0.5537759", "0.5531027", "0.55265933", "0.5517165", "0.55141735", "0.55113614", "0.55092007", "0.5489241", "0.54860765", "0.54746044", "0.54673815", "0.5460745", "0.5453961", "0.544122", "0.5428832", "0.54013455", "0.54006946", "0.5397447", "0.53930205", "0.5386235", "0.53699636", "0.5365065", "0.536422", "0.5360433", "0.53466076", "0.5332962", "0.5308943", "0.5282577", "0.5281115", "0.5280378", "0.5267213", "0.5264574", "0.5264375", "0.52535236", "0.52521753", "0.52446896", "0.52368623", "0.5233908", "0.5199144", "0.519296", "0.5191892", "0.5187296", "0.51761866", "0.51693827", "0.51691556", "0.5167223", "0.51610386", "0.5151541", "0.5148608", "0.5129503", "0.5120528", "0.5118957", "0.51172197", "0.5091456", "0.5086539", "0.5083411", "0.5083411", "0.50809443", "0.5080808", "0.50658745", "0.5064489", "0.5061885", "0.5060977", "0.50518817", "0.5044257", "0.5042695", "0.50377226", "0.50362694", "0.50308126", "0.50248027", "0.502307" ]
0.6231295
6
Sets the new destinations for the game panel.
public void setDestinations (Country[]c) { destinations=c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDestination(Locations destination);", "@Override\n\tpublic void setDestination(int x, int y) {\n\t\t\n\t}", "public void updateDestination(){\r\n\t\tdestination.update_pc_arrivalFlows(flows);\r\n\t}", "public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}", "private void swapLocations() {\n searchViewModel.setSwappingLocations(true);\n TripLocation origin = searchViewModel.getOrigin().getValue();\n TripLocation destination = searchViewModel.getDestination().getValue();\n LocationField tempField = searchViewModel.getFocusedLocationField();\n searchViewModel.setFocusedLocationField(DESTINATION);\n if (origin != null) searchViewModel.setLocation(origin.getLocation(), origin.getName());\n else {\n searchViewModel.setLocation(null, null);\n toTextField.setText(\"To\");\n }\n searchViewModel.setFocusedLocationField(ORIGIN);\n if (destination != null)\n searchViewModel.setLocation(destination.getLocation(), destination.getName());\n else {\n searchViewModel.setLocation(null, null);\n fromTextField.setText(\"From\");\n }\n searchViewModel.setFocusedLocationField(tempField);\n searchViewModel.setSwappingLocations(false);\n }", "public void setDestination(Coordinate destination) {\n cDestination = destination;\n }", "public void setMovePanel(Widget movePanel) {\n this.movePanel = movePanel;\n }", "public void setLocs(String newValue);", "public void setDest(Point dest){\n System.out.println(\"hit\");\n this.dest = dest;\n }", "public void setDestination(float pX, float pY) {\n moveAtEnd = true;\n destX = pX;\n destY = pY;\n }", "void setOrigination(Locations origination);", "private void setLocations(){\n\t\tbuttonArea.setSize(FRAME_WIDTH, 50);\n\t\tbuttonArea.setLocation(0, 0);\n\t\tboardOne.setSize(600,600);\n\t\tboardOne.setLocation(0,buttonArea.getHeight());\n\t\tboardTwo.setSize(600,600);\n\t\tboardTwo.setLocation(boardOne.getWidth() + 10,buttonArea.getHeight());\n\t\tboardOne.setIcon(background);\n\t\tboardTwo.setIcon(background);\n\t\tnewGame.setSize(100,20);\n\t\tnewGame.setLocation(5,5);\n\t\tcp1shipLabel.setSize(200,15);\n\t\tcp1shipLabel.setLocation((boardOne.getWidth() / 2) - (cp1shipLabel.getWidth() / 2),buttonArea.getHeight() - cp1shipLabel.getHeight() - 5);\n\t\tcp1shipLabel.setVisible(false);\n\t\tcp2shipLabel.setSize(200,15);\n\t\tcp2shipLabel.setLocation(boardTwo.getX() + (boardTwo.getWidth() / 2) - (cp2shipLabel.getWidth() / 2),buttonArea.getHeight() - cp2shipLabel.getHeight() - 5);\n\t\tcp2shipLabel.setVisible(false);\n\t}", "public void setDestination (LatLng destination) {\n this.destination = destination;\n }", "public void setNextDest(int nextDest) {\n\t\tthis.nextDestination = nextDest;\n\t}", "public void switchToMap()\n {\n feedbackLabel.setVisible(false);\n d.setVisible(false);\n a.setText(destinations[0].getName());\n b.setText(destinations[1].getName());\n c.setText(destinations[2].getName());\n currentClue=destinations[0].getRandClue();\n questionLabel.setText(currentClue);\n atQuestionStage=false;\n shuffleButtons();\n questionLabel.setBounds(650-questionLabel.getPreferredSize().width,120,600,30);\n mapImageLabel.setVisible(true);\n mapImageLabel.repaint();\n revalidate();\n }", "public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }", "public void addDest( int newDest ) {\n\t\t\n\t\tif (state == TODEFAULT)\n\t\t\tdestList.clear();\n\t\t\n\t\t\tif(newDest > maxFloors || newDest < 0) throw new IllegalArgumentException(\"newDest requires a value greater than 0 and less than \" + maxFloors+ \": \" + newDest);\n\t\t\n\t\tsynchronized (this) {\n\t\t\tif (newDest != currFloor && newDest > 0 && newDest <= maxFloors) {\n\t\t\t\tif (destList.isEmpty() && currFloor < newDest) {\n\t\t\t\t\tdestList = new PriorityQueue<Integer>();\n\t\t\t\t\ttravelDir = \"Up\";\n\t\t\t\t\tdestList.add(newDest);\n\t\t\t\t} else if (destList.isEmpty() && currFloor > newDest) {\n\t\t\t\t\tdestList = new PriorityQueue<Integer>(1, Collections.reverseOrder());\n\t\t\t\t\ttravelDir = \"Down\";\n\t\t\t\t\tdestList.add(newDest);\n\t\t\t\t} else if ( ((travelDir.equals(\"Up\") && newDest > currFloor) || (travelDir.equals(\"Down\") && newDest < currFloor)) && !destList.contains(newDest))\n\t\t\t\t\tdestList.add(newDest);\n\t\t\t\t\n\t\t\t\tSystem.out.println(dateFormat.format(new Date()) + \"\\tElevator \" + elevatorNum + \" added floor \" + newDest + \" to destination list\");\n\t\t\t} else if (newDest == currFloor && destList.isEmpty())\n\t\t\t\tdestList.add(newDest);\n\t\t}\n\t\t\n\t\tsynchronized (this) {\n\t\t\tthis.setState(TRAVELING);\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "public void setDestination(final double xCoord, final double yCoord) {\n\t\tsuper.setDestination(new Target(xCoord, yCoord));\n\n\t}", "public void setDestination(float x, float y) {\n isMoving = true;\n destinationX = this.x + x;\n destinationY = this.y + y;\n\n if (y > 0) {\n isMovingUp = true;\n combatTilesTraveledY += 1;\n } else if (y < 0) {\n isMovingDown = true;\n combatTilesTraveledY -= 1;\n }\n if (x > 0) {\n isMovingRight = true;\n combatTilesTraveledX += 1;\n } else if (x < 0) {\n isMovingLeft = true;\n combatTilesTraveledX -= 1;\n }\n }", "public void changerDestination(Sommet nouvelleDestination) {\n destination.aretes_entrantes.supprimer(this);\n destination.predecesseurs.supprimer(origine);\n nouvelleDestination.aretes_entrantes.inserer(this);\n nouvelleDestination.predecesseurs.inserer(origine);\n origine.successeurs.supprimer(destination);\n origine.successeurs.inserer(nouvelleDestination);\n destination = nouvelleDestination;\n }", "private MultiDestnPanel(){\r\n\t\t\tJPanel btnPanel=new JPanel();\r\n\t\t\tinfoPanel.setLayout(new BoxLayout(infoPanel,BoxLayout.Y_AXIS));\r\n\t\t\tfinal JButton btnAddDestn=new JButton(\"Add Destination\");\r\n\t\t\tfinal JButton btnDeleteDestn=new JButton(\"Delete Destination\");\r\n\t\t\tbtnAddDestn.addActionListener(Planner.this);\r\n\t\t\tbtnAddDestn.setToolTipText(\"Select 'Add Destination' after entering a valid additional airport in the text panel above. Multiple airports may be added.\");\r\n\t\t\tbtnDeleteDestn.addActionListener(Planner.this);\r\n\t\t\tbtnDeleteDestn.setToolTipText(\"Select 'Delete Destination' if you wish to delete the most recently added additional airports.\");\r\n\t\t\tsetLayout(new BorderLayout());\r\n\t\t\tbtnPanel.add(btnAddDestn);\r\n\t\t\tbtnPanel.add(btnDeleteDestn);\r\n\t\t\tinfoPanel.setBorder(new TitledBorder(\"Destination +\"));\r\n\t\t\tbtnPanel.setBackground(Color.LIGHT_GRAY);\r\n\t\t\tInputPanel in=new InputPanel(num);\r\n\r\n\r\n\t\t\tin.add(btnPanel);\r\n\t\t\tinput[num].setText(\"Ignore If Only One Destination\");\r\n \tinput[num].addMouseListener(new MouseAdapter(){ //delete text when click\r\n\r\n \tpublic void mouseClicked(MouseEvent e){\r\n \t input[num].setText(\"\");\r\n \t}\r\n \t});\r\n\r\n\t\t\tadd(in, BorderLayout.CENTER);\r\n\t\t\tadd(infoPanel, BorderLayout.NORTH);\r\n\t\t}", "public void testSetGoalLocation() {\n test = new Location(9, 9);\n assertEquals(test, maze1.getGoalLocation());\n \n test = new Location(1, 1);\n maze1.setGoalLocation(test);\n assertEquals(test, maze1.getGoalLocation());\n \n test = new Location(2, 2);\n maze1.setCell(test, MazeCell.WALL);\n maze1.setGoalLocation(test);\n assertEquals(test, maze1.getGoalLocation());\n \n \n }", "@Override\n public void setLocationOfShop() {\n\n }", "public Teleporter setDestination(Location location)\r\n\t{ this.destination = location; return this; }", "public void setBoardLocation(int boardLocation) {this.boardLocation = boardLocation;}", "protected void setMoves(List<Move> moves) {\n this.moves = moves;\n }", "@Override\n\tprotected void landAction(){\n\t\tdestIndex++;\n\t\tif(destIndex>=track.size())\n\t\t\tdestIndex=0;\n\t\tdestination=track.get(destIndex);\n\t\t\n\t}", "public void setPlayersAtGo()\n {\n for(int i = 0; i < m_numPlayers; i++)\n {\n m_gameBoard.addPlayerToSpace(i + 1, 0);\n }\n }", "void setDropLocations(RouteDTO routeDTO, List<RoutePointDTO> points);", "void setDirections(Directions dir){\n this.dir = dir;\n }", "public void setDestOptionCards(List<DestCard> cards, String playerID){\n if (playerID.equals(_user.get_playerId())){\n _currentGame.setDestOptionCards(cards);\n\n setChanged();\n notifyObservers();\n }\n }", "void setDest(String L);", "private void setEndLocation() {\n switch (direction) {\n case UP:\n case DOWN:\n componentToMove.setLocation(posX, Direction.UP == direction ? Math.min(endPosition, posY) : Math.max(endPosition, posY));\n break;\n default:\n componentToMove.setLocation(Direction.LEFT == direction ? Math.min(endPosition, posX) : Math.max(endPosition, posX), posY);\n }\n }", "public void setNextDestination(GlobalMap map, double goBackProbability) {\n int nextPointId;\n HashSet destIds = (HashSet) (map.pointsNeighbours.get(actual_point_id)).clone();\n if (randomGenerator.nextDouble() < goBackProbability || destIds.size()==1) { \n /** goes back with GOBACKPROBABILITY probability */\n nextPointId = previous_point_id;\n }else{ \n /** selects one of the other options with equal probability */\n /** removes the previous point from the set of options*/\n destIds.remove(previous_point_id);\n /** selects among the remaining options */\n ArrayList destIds2 = new ArrayList(destIds);\n nextPointId = (int) destIds2.get(randomGenerator.nextInt(destIds2.size()));\n }\n\n /** updates the coordinates of the destination */\n xfs = map.points.get(nextPointId).getX();\n yfs = map.points.get(nextPointId).getY();\n previous_point_id = actual_point_id;\n actual_point_id = nextPointId;\n\n }", "public Builder setDestination(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n destination_ = value;\n onChanged();\n return this;\n }", "private void setShips(){\n\t\t\n\t\tint x,y;\n\t\tboolean orientacja;\n\t\tRandom generator = new Random();\n\t\t\n\t\tint ilosc = 1;\n\t\tint j = 0;\n\t\tfor(int i = 4; i > 0 ; i--){\n\t\t\twhile( j < ilosc ){\n\t\t\t\tx = generator.nextInt( 13 );\t\t\n\t\t\t\ty = generator.nextInt( 13 );\n\t\t\t\torientacja = generator.nextBoolean();\n\t\t\t\tif( isPossibleAddShip(x, y, i, orientacja) ) j++;\t\n\t\t\t}\n\t\tilosc++;\n\t\tj=0;\n\t\t}\n\t\t\n\t}", "protected void moveToDestination(){\n\t\tqueue.clear();\n\t\twhile (destination[0] < 0){\n\t\t\tqueue.add(\"MOVE S\");\n\t\t\tdestination[0] += 1;\n\t\t}\n\t\twhile (destination[0] > 0){\n\t\t\tqueue.add(\"MOVE N\");\n\t\t\tdestination[0] -= 1;\n\t\t}\n\t\twhile (destination[1] < 0){\n\t\t\tqueue.add(\"MOVE E\");\n\t\t\tdestination[1] += 1;\n\t\t}\n\t\twhile (destination[1] > 0){\n\t\t\tqueue.add(\"MOVE W\");\n\t\t\tdestination[1] -= 1;\n\t\t}\n\t\tdestination = null;\n\t}", "public void setDestination(Location location, String name) {\n this.currentDestinationName = name;\n this.currentDestination = location;\n }", "void setPlayerLocation(Player p, int bp) {\n\t\t\tplayerLocationRepo.put(p, bp);\n\t\t}", "public void setWaypoints(ArrayList<Point3D> newWaypoints)\n {\n targetWaypoints = newWaypoints;\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n /*\n mMap = gMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n */\n mGoogleMap = googleMap;\n mGoogleMap.setMyLocationEnabled(true);\n\n\n buildGoogleApiClient();\n\n mGoogleApiClient.connect();\n\n destination.title(\"Destination\");\n if(getDestination().latitude != 0 && getDestination().longitude != 0){\n Log.d(\"MapsActivity\", \"destination (onMapReady): \" + getDestination().toString());\n //show the destination if it was already defined.\n mGoogleMap.addMarker(destination);\n } else {\n //destination = new MarkerOptions();\n Log.d(\"MapsActivity\", \"SharedPrefs was null\");\n }\n\n\n mGoogleMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng point) {\n mGoogleMap.clear();\n destination.position(point);\n mGoogleMap.addMarker(destination);\n sendMessage();\n saveDestination();\n }\n });\n }", "public void setSpawns() {\n List<Tile> spawns = this.board.getSpawns();// get all the possible spawns from board\n List<Tile> usedSpawns = new ArrayList<Tile>();// empty list used to represent all the spawns that have been used so no playerPiece gets the same spawn\n for (PlayerPiece playerPiece : this.playerPieces) { // for each playerPiece\n boolean hasSpawn = false; // boolean to represent whether the playerPiece has a spawn and used to initiate and stop the following while loop.\n while (!hasSpawn) { // while hasSpawn is false.\n int random_int = (int) (Math.random() * spawns.size());// get random number with max number of the total possible tiles the pieces can spawn from\n Tile spawn = spawns.get(random_int); // get spawn from spawns list using the random int as an index\n if (!usedSpawns.contains(spawn)) {// if the spawn isn't in the usedSpawn list\n playerPiece.setLocation(spawn);// set the location of the playerPiece to the spawn\n usedSpawns.add(spawn);//add the spawn to usedSpawns\n hasSpawn = true; // set the variable to true so the while loop stops.\n }\n }\n }\n }", "private void addDestinationButton() {\n try {\n Component lastComponent = destinationLabelPanel.getComponent(2);\n if (lastComponent == destinationTextLabel) {\n destinationLabelPanel.remove(destinationTextLabel);\n destinationLabelPanel.add(destinationButton);\n }\n }\n catch (ArrayIndexOutOfBoundsException e) {\n destinationLabelPanel.add(destinationButton);\n }\n }", "void createExposedDestinations(List<DestinationTargetModel> destinationTargets,\n\t InboundChannelConfigurationModel inboundChannelConfig,\n\t AbstractCredentialModel credential);", "public void setDestination(String destination) {\r\n this.destination = destination;\r\n }", "public void setDestination(String dest)\n\t{\n\t\tnotification.put(Attribute.Request.DESTINATION, dest);\n\t}", "private static void setupLocations() {\n\t\tcatanWorld = Bukkit.createWorld(new WorldCreator(\"catan\"));\n\t\tspawnWorld = Bukkit.createWorld(new WorldCreator(\"world\"));\n\t\tgameLobby = new Location(catanWorld, -84, 239, -647);\n\t\tgameSpawn = new Location(catanWorld, -83, 192, -643);\n\t\thubSpawn = new Location(spawnWorld, 8, 20, 8);\n\t\twaitingRoom = new Location(catanWorld, -159, 160, -344);\n\t}", "public ArrayList<Location> destinations()\n {\n ArrayList<Location> arr = new ArrayList<Location>();\n for(int i = 0; i < 360; i += 45)\n {\n sweep(arr, i);\n }\n return arr;\n }", "public abstract void setLocations(java.util.Set locations);", "@FXML\n public void addTeleporter() {\n if (!World.getInstance().worldContainsTeleporterIn()) {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingTeleporterIn(0, 0));\n }\n if (!World.getInstance().worldContainsTeleporterOut()) {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingTeleporterOut(0, 0));\n \t\n }\n\n }", "public void setMoves(String [] moves) {\n this.moves = moves;\n signalCheck();\n }", "private void goalsConfigButton(){\n if(!goalsOpened){\n goalsUI = new GoalsUI(this, false);\n goalsOpened = true;\n }\n }", "public Planner(){\r\n\t\tsetLayout(new BorderLayout());\r\n\r\n\t\taptManager=new AirportManager(this);\r\n\t\tapt=aptManager.getAirport();\r\n\r\n\r\n JPanel btnPanel= new JPanel();\r\n final JButton btnClear=new JButton(\"Clear All\");\r\n final JButton btnCal=new JButton(\"Make Plan\");\r\n\t\tfinal JButton btnMap=new JButton(\"View Map\");\r\n final JButton btnExit=new JButton(\"Save/Exit\");\r\n Color color = Color.RED.darker();\r\n btnCal.setToolTipText(\"Select 'Make Plan' to start the flight plan, after entering a valid starting airport and destination(s).\");\r\n btnCal.setFont(btnFont);\r\n\t\tbtnCal.setBackground(color);\r\n\t\tbtnCal.setForeground(Color.white);\r\n btnCal.addActionListener(this);\r\n btnClear.setToolTipText(\"Select 'Clear All' to clear all of the currently entered airport data within the Routine Planner.\");\r\n \tbtnClear.addActionListener(this);\r\n \tbtnClear.setFont(btnFont);\r\n \tbtnMap.setToolTipText(\"Select 'View Map' to view a map of the world and current airports.\");\r\n \tbtnMap.setFont(btnFont);\r\n \tbtnMap.addActionListener(this);\r\n \tcolor = Color.GREEN.darker();\r\n \tbtnExit.setToolTipText(\"Select 'Save/Exit' to save and exit the flight plan.\");\r\n \tbtnExit.setFont(btnFont);\r\n\t\tbtnExit.setBackground(color);\r\n\t\tbtnExit.setForeground(Color.white);\r\n \tbtnExit.addActionListener(this);\r\n\r\n \tbtnPanel.setLayout(new GridLayout(4,1,10,10));\r\n \tbtnCal.setPreferredSize(new Dimension(120,70));\r\n \tbtnPanel.add(btnCal);\r\n \tbtnPanel.add(btnClear);\r\n \tbtnPanel.add(btnMap);\r\n \tbtnPanel.add(btnExit);\r\n\r\n \tJPanel show=new JPanel();\r\n \tshow.setLayout(new BoxLayout(show,BoxLayout.Y_AXIS));\r\n \tshow.add(new InputPanel(0));\r\n \tshow.add(new JLabel(\"TO\"));\r\n \tshow.add(new InputPanel(1));\r\n \tmdnScreen=new MultiDestnPanel();\r\n \tshow.add(mdnScreen);\r\n\r\n \tJScrollPane js=new JScrollPane(show);\r\n \tjs.setPreferredSize(new Dimension(300,310));\r\n\r\n\r\n \tJPanel description=new JPanel(new GridLayout(2,1));\r\n \t MatteBorder matte = new MatteBorder(5, 5, 5, 5, Color.LIGHT_GRAY);\r\n des.setBorder(matte);\r\n des.setHorizontalTextPosition(JLabel.CENTER);\r\n \tdes.setVerticalTextPosition(JLabel.TOP);\r\n des.setFont(font);\r\n des.setOpaque(true);\r\n des.setBackground(Color.CYAN);\r\n\t\tdescription.add(des);\r\n \tdescription.add(new JLabel(new ImageIcon(\"image/airplane.png\")));\r\n \tdescription.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n\r\n \tJPanel routinePlanner=new JPanel();\r\n \troutinePlanner.add(js,BorderLayout.CENTER);\r\n \troutinePlanner.add(btnPanel,BorderLayout.EAST);\r\n \troutinePlanner.setBorder(new TitledBorder(\"Routine Planner\"));\r\n\r\n \taptManager.setPreferredSize(new Dimension(380,300));\r\n \taptManager.setBorder(new TitledBorder(\"Airport Manager\"));\r\n\r\n \tadd(description,BorderLayout.NORTH);\r\n \tadd(aptManager,BorderLayout.WEST);\r\n \tadd(routinePlanner,BorderLayout.CENTER);\r\n\r\n\t\tMap m=new Map(apt);\r\n\t\taptManager.setMap(m);\r\n \tmapScreen=new JDialog(); //map dialog set up\r\n \tmapScreen.add(m);\r\n \tmapScreen.setTitle(\"World Map\");\r\n \tmapScreen.pack();\r\n \tmapScreen.setLocationRelativeTo(null);\r\n \tmapScreen.setResizable(false);\r\n \tmapScreen.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n }", "public void editShiftAction() {\n\t\tArrayList<SpatialObjectModel> locations = (ArrayList<SpatialObjectModel>) getSpatialObjects();\n\t\tthis.animalShiftEditPanel = new AnimalShiftEditPanel(animalsTab, locations);\n\t\tUtils.changePanelContent(this.animalsTab, this.animalShiftEditPanel);\n\t}", "public void setPanelGen(int panelGen){\n this.mFarm.setPanelGen(panelGen);\n }", "void updateScreen() {\n\t\tZone possibleNewZone = currentZone.getSpace(playerY, playerX).getNextZone();\n\t\tif (possibleNewZone != null) {\n\t\t\tString oldBGMusic = currentZone.getBackgroundMusic();\n\t\t\tcurrentZone = possibleNewZone;\n\t\t\tcurrentZone.enableZoneWarpSpaces();\n\t\t\tplayerX = currentZone.getPlayerStartX();\n\t\t\tplayerY = currentZone.getPlayerStartY();\n\t\t\t\n\n\t\t\tif (!oldBGMusic.equals(currentZone.getBackgroundMusic())) {\n\t\t\t\tmusicPlayer.stop();\n\t\t\t\tmusicPlayer.play(currentZone.getBackgroundMusic(), 100);\n\t\t\t}\n\t\t}\n\n\t\t// Update Panel Colors\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\t\t\t\tpanels[i][a].setBackground(currentZone.getSpace(i, a).getColor());\n\t\t\t}\n\t\t}\n\n\t\t// Update Labels\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\n\t\t\t\tlabels[i][a].setIcon(currentZone.getSpace(i, a).getPic());\n\t\t\t}\n\t\t}\n\t\t// Shows player in the new space\n\t\tlabels[playerY][playerX].setIcon(playerPic);\n\n\t\t// Shows enemy in the new space\n\t\t// labels[enemyY][enemyX].setIcon(enemyPic);\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tChangePanel.replacePanel(mf, hg, new GamePanel(mf, p));\n\t\t\t}", "public void set(Coord dest) {\n x = dest.x;\n y = dest.y;\n }", "void setLocation(int x, int y);", "public void createLocations() {\n createAirports();\n createDocks();\n createEdges();\n createCrossroads();\n }", "public Builder setRouteDest(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }", "private void setLocation() {\n switch (getKey()) {\n case UP:\n this.y_location = -136.8 - 6;\n this.y_tile = -1;\n this.positive = false;\n break;\n case DOWN:\n this.y_location = 136.8 + 6;\n this.y_tile = 1;\n break;\n case LEFT:\n this.x_location = -140.6 - 6;\n this.x_tile = -1;\n this.positive = false;\n break;\n case RIGHT:\n this.x_location = 140.6 + 6;\n this.x_tile = 1;\n break;\n default:\n break;\n }\n }", "@Override\n public void onArriveDestination() {\n\n }", "@Override\n\tpublic void onArriveDestination() {\n\n\t}", "public ModifierDestination() {\n initComponents();\n }", "private void setPanel(final Panel PANEL)\r\n\t{\r\n\t\tthis.panel = PANEL;\r\n\t}", "private void setShips() {\n //This clears the board. To \"Invalidate\"\n for (int x = 0; x < maxN; x++) {\n for (int y = 0; y < maxN; y++) {\n ivCell[x][y].setBackgroundResource(gridID);\n }\n }\n\n for (Ship s : ships) {\n for (int i = 0; i < s.getShipSize(); i++) {\n if(player)ivCell[s.getBodyLocationPoints()[i].x][s.getBodyLocationPoints()[i].y].setBackgroundResource(s.getBodyResources()[i]);\n updateOccupiedCells(s.getBodyLocationPoints());\n }\n }\n\n }", "public void setLocation(int X, int Y){\n \tlocation = new Point(X,Y);\n }", "public void setPlayers(ArrayList<String> players) {\n this.players = new ArrayList<>();\n this.nicknames = new ArrayList<>();\n for (int i = 0; i < players.size(); i++) {\n if (!players.get(i).equals(gui.getViewController().getNickName())){\n JMenuItem newPlayerItem = new JMenuItem(players.get(i));\n newPlayerItem.addActionListener(new OpponentItemListener(gui.getViewController(),i));\n this.players.add(newPlayerItem);\n }\n this.nicknames.add(new JLabel(players.get(i)));\n this.nicknames.get(i).setHorizontalAlignment(SwingConstants.CENTER);\n this.nicknames.get(i).setVerticalAlignment(SwingConstants.CENTER);\n }\n for(int i = 0; i<this.players.size();i++){\n this.playerMenu.add(this.players.get(i));\n }\n initTurnPanel();\n }", "public void setMWNDest(java.lang.String MWNDest) {\n this.MWNDest = MWNDest;\n }", "protected void setSpies() {\n\t\tint numberOfSpies = SPIES[numberOfPlayers-5];\n\t\tfor(int i = 0; i < numberOfSpies; i++) {\n\t\t\tplayers[i].setSpy();\n\t\t}\n\t}", "public void setLocation(int x, int y) {\r\n manager.setLocation(this, x, y);\r\n }", "@Override\n public void setDestination(Point3D aPoint) throws InvalidDataException {\n myMovable.setDestination(aPoint);\n }", "public void setConsumerDestinations(int index, MonitoringDestination value) {\n value.getClass();\n ensureConsumerDestinationsIsMutable();\n this.consumerDestinations_.set(index, value);\n }", "private void setNextGame() {\n Persistence db = Persistence.getInstance();\n game = db.getNextGame();\n\n // set the initial grid in the model\n grid = game.getInitial();\n\n // get rid of everything on the view grid\n view.clearGrid(true);\n\n // put givens for new game into view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n } // if given\n } // for j\n } // for i\n\n }", "void addSinks(McastRoute route, Set<ConnectPoint> sinks);", "public void setLocation(String location);", "protected void addOscServerAddressPanel() {\n\n\t\t// variable addressPanel holds an instance of JPanel.\n\t\t// instance of JPanel received from makeNewJPanel method\n\t\tfinal JPanel addressPanel = makeNewJPanel1();\n\t\taddressPanel.setBackground(new Color(123, 150, 123));\n\t\t// variable addressWidget holds an instance of JTextField\n\t\taddressWidget = new JTextField(\"localhost\");\n\t\t// variable setAddressButton holds an insatnce of JButton with\n\t\t// a \"Set Address\" argument for its screen name\n\t\tfinal JButton setAddressButton = new JButton(\"Set Address\");\n\t\tsetAddressButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\t// perform the addressChanged method when action is received\n\t\t\t\taddressChanged();\n\t\t\t}\n\t\t});\n\n\t\t// variable portWidget holds an instance of JLabel with the OSCPortOut\n\t\t// as the text it looks like OSCPortOut has a method to get the default\n\t\t// SuperCollider port\n\t\tportWidget = new JLabel(Integer.toString(OSCPort.defaultSCOSCPort()));\n\n\t\tportWidget.setForeground(new Color(255, 255, 255));\n\t\tfinal JLabel portLabel = new JLabel(\"Port\");\n\t\tportLabel.setForeground(new Color(255, 255, 255));\n\n\t\t// add the setAddressButton to the addressPanel\n\t\taddressPanel.add(setAddressButton);\n\t\t// portWidget = new JTextField(\"57110\");\n\t\t// add the addressWidget to the addressPanel\n\t\taddressPanel.add(addressWidget);\n\t\t// add the JLabel \"Port\" to the addressPanel\n\t\taddressPanel.add(portLabel);\n\t\t// add te portWidget tot eh addressPanel\n\t\taddressPanel.add(portWidget);\n\n\t\t//??? add address panel to the JPanel OscUI\n\t\tadd(addressPanel);\n\t}", "private void moveToNewLocation() {\r\n System.out.println(\"\\nThis is the move to a new location option\");\r\n }", "public void changeLocation(World newWorld, int x, int y, DIRECTION facing, Color color);", "public void setLocation(Point p) {\n // Not supported for MenuComponents\n }", "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "public void setRobotLocation(int robotType, Point destination) {\r\n\t\tthis.getRobot(robotType).setLocation(destination);\r\n\t}", "public void managePlayOptions() {\n\n Object mySavedGameState = GameStateFileStore.ReadObjectFromFile(\"GameState.ser\");\n GameState castedGameState = GameState.class.cast(mySavedGameState);\n currentLocation = castedGameState.getSavedPlayerLocation();\n LocationData[][] storedGameStateMap = castedGameState.getMapState();\n descriptionText = storedGameStateMap[currentLocation.x][currentLocation.y].getDescriptionText();\n System.out.println(descriptionText);\n\n AvailableMovements myMoveSet = new AvailableMovements(currentLocation, storedGameStateMap);\n myMoveSet.printStringDirections();\n availableDirections = myMoveSet.getDirectionalMap();\n choice = sc.nextLine();\n if (availableDirections.containsKey(choice)) {\n currentLocation = availableDirections.get(choice); //refactor this into walkToNewLocation\n castedGameState.setSavedPlayerLocation(currentLocation);\n GameStateFileStore.WriteObjectToFile(castedGameState);\n managePlayOptions();\n } else {\n System.out.println(\"Invalid option\");\n managePlayOptions();\n }\n\n }", "public void setPanelConfiguration(){\n\t\tthis.panelConfiguration.setStructurePanel();\n\t\tthis.panelConfiguration.setPanelConfiguration();\n\t}", "@Override\n public void setDisplayedLocation(Location loc) {\n pane.setVvalue(loc.getyCoord());\n pane.setHvalue(loc.getxCoord());\n setCurrentFloor(loc.getLevel());\n displayedLocation = getDisplayedLocation();\n }", "public void setPortal(Portal portal)\n {\n this.portal = portal;\n portal.addAgent(this.getName(), this);\n System.out.println(\"Added portal '\" + portal + \"' to agent: \" + getName());\n }", "public void setLocation(Direction direction){\n switch (direction) {\n case NORTH:\n location.y = -offset;\n location.x = Constants.GAMEWIDTH / 2;\n break;\n case SOUTH:\n location.y = Constants.GAMEHEIGHT + offset;\n location.x = Constants.GAMEWIDTH / 2;\n break;\n case EAST:\n location.y = Constants.GAMEHEIGHT / 2;\n location.x = Constants.GAMEWIDTH + offset;\n break;\n case WEST:\n location.y = Constants.GAMEHEIGHT / 2;\n location.x = -offset;\n break;\n default:\n\n break;\n }\n }", "public void chooseDestination() {\n Log.i(\"Message\", \"Great success\");\n }", "public void setExit(String direction, Room neighbor) \n {\n exits.put(direction, neighbor);\n }", "public void setExit(String direction, Room neighbor) \n {\n exits.put(direction, neighbor);\n }", "public void setValidMoves(){\r\n int row = (int)this.space.getX();\r\n int column = (int)this.space.getY();\r\n int max = puzzleSize-1;\r\n if (row < max)\r\n this.validMoves.add(new Point(row+1, column));\r\n if (row > 0)\r\n this.validMoves.add(new Point(row-1, column));\r\n if (column < max)\r\n this.validMoves.add(new Point(row, column+1));\r\n if (column > 0)\r\n this.validMoves.add(new Point(row, column-1));\r\n }", "public abstract boolean setLocation(World world, int coords[]);", "public void setDestination(String host, int port) {\n this.host = host;\n this.port = port;\n }", "private void setLocation(){\r\n\t\t//make the sql command\r\n\t\tString sqlCmd = \"INSERT INTO location VALUES ('\" + commandList.get(1) + \"', '\"\r\n\t\t\t\t+ commandList.get(2) + \"', '\" + commandList.get(3) + \"');\";\r\n\r\n\t\ttry {//start SQL statement\r\n\t\t\tstmt.executeUpdate(sqlCmd);\r\n\t\t} catch (SQLException e) {\r\n\t\t\terror = true;\r\n\t\t\tout.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");\r\n\t}", "private void update()\n {\n // update the grid square panels\n Component[] components = pnlIsland.getComponents();\n for ( Component c : components )\n {\n // all components in the panel are GridSquarePanels,\n // so we can safely cast\n GridSquarePanel gsp = (GridSquarePanel) c;\n gsp.update();\n }\n \n // update player information\n int[] playerValues = game.getPlayerValues();\n txtPlayerName.setText(game.getPlayerName());\n progPlayerStamina.setMaximum(playerValues[Game.MAXSTAMINA_INDEX]);\n progPlayerStamina.setValue(playerValues[Game.STAMINA_INDEX]);\n progBackpackWeight.setMaximum(playerValues[Game.MAXWEIGHT_INDEX]);\n progBackpackWeight.setValue(playerValues[Game.WEIGHT_INDEX]);\n progBackpackSize.setMaximum(playerValues[Game.MAXSIZE_INDEX]);\n progBackpackSize.setValue(playerValues[Game.SIZE_INDEX]);\n \n //Update Kiwi and Predator information\n txtKiwisCounted.setText(Integer.toString(game.getKiwiCount()) );\n txtPredatorsLeft.setText(Integer.toString(game.getPredatorsRemaining()));\n \n // update inventory list\n listInventory.setListData(game.getPlayerInventory());\n listInventory.clearSelection();\n listInventory.setToolTipText(null);\n btnUse.setEnabled(false);\n btnDrop.setEnabled(false);\n \n // update list of visible objects\n listObjects.setListData(game.getOccupantsPlayerPosition());\n listObjects.clearSelection();\n listObjects.setToolTipText(null);\n btnCollect.setEnabled(false);\n btnCount.setEnabled(false);\n \n // update movement buttons\n btnMoveNorth.setEnabled(game.isPlayerMovePossible(MoveDirection.NORTH));\n btnMoveEast.setEnabled( game.isPlayerMovePossible(MoveDirection.EAST));\n btnMoveSouth.setEnabled(game.isPlayerMovePossible(MoveDirection.SOUTH));\n btnMoveWest.setEnabled( game.isPlayerMovePossible(MoveDirection.WEST));\n }", "public void setProducerDestinations(int index, MonitoringDestination value) {\n value.getClass();\n ensureProducerDestinationsIsMutable();\n this.producerDestinations_.set(index, value);\n }", "@Override\n public void setDestination(double x, double y, double z) throws InvalidDataException {\n myMovable.setDestination(x, y, z);\n }", "@Override\r\n\tpublic void onGuiClosed() {\r\n\t\tsuper.onGuiClosed();\r\n\t\t\r\n\t\t// Save any changes made while this menu was open\r\n\t\tUltraTeleportWaypoint.save();\r\n\t}", "public void land() {\n Game currentGame = this.getGame();\n this.setHasBeenVisited(true);\n currentGame.setMode( Game.Mode.GAME_WON);\n\n }" ]
[ "0.6977336", "0.6094045", "0.54893607", "0.5329158", "0.53291553", "0.5313384", "0.52614474", "0.5259312", "0.52586025", "0.5226086", "0.5216295", "0.5202657", "0.5200753", "0.5197593", "0.5152367", "0.5141572", "0.5131644", "0.5125829", "0.5118116", "0.51159644", "0.5114173", "0.50839543", "0.50792307", "0.50777584", "0.5067265", "0.5044406", "0.5024621", "0.502438", "0.50084186", "0.50068486", "0.49723622", "0.4936588", "0.49198523", "0.49074185", "0.48828977", "0.48601013", "0.48587418", "0.48497906", "0.48495674", "0.48369795", "0.48353794", "0.48338252", "0.4829688", "0.482894", "0.48276937", "0.48237404", "0.48212644", "0.4794689", "0.4783839", "0.47740263", "0.47602683", "0.4756638", "0.47546542", "0.4754237", "0.4743087", "0.47349286", "0.47321323", "0.47301126", "0.47298354", "0.47298148", "0.4719989", "0.47184536", "0.47168612", "0.4707937", "0.47070405", "0.47010285", "0.46973267", "0.46934813", "0.4685616", "0.46827495", "0.4682088", "0.46767178", "0.46751046", "0.46739966", "0.46699846", "0.46607146", "0.46520156", "0.4651067", "0.46436203", "0.4638154", "0.4636242", "0.4633438", "0.46327913", "0.46320313", "0.4627486", "0.46242535", "0.46215966", "0.46215874", "0.46193498", "0.46091115", "0.46091115", "0.46074823", "0.4606524", "0.45964625", "0.4589732", "0.45851704", "0.45846263", "0.4584402", "0.458334", "0.45783556" ]
0.5467814
3
Returns the answer to the question.
public int getAnswer() { return answer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getCorrectAnswer();", "public String getAnswer() {\n return answer;\n }", "String getAnswerResponse();", "public String getAnswer(){\n return this.answer;\n }", "public int getAnswer() {\n return answer;\n }", "public int getAnswer() {\n\t\treturn answer;\n\t}", "public double getAnswer() {\n return answer;\n }", "public String getAnswer(){\n\t\tString result = new String(answer);\n\t\tanswer = \"\"; //reset answer after every read\n\t\treturn result;\n\t}", "protected abstract String answer();", "@Override\n public String ask(String question) {\n return answers[position++];\n }", "public Question getQuestion() {\n\t\treturn questionToAsk;\n\t}", "public MCQChoice getAnswer()\n\t{\n\t\treturn mcqAnswer;\n\t}", "public String getAnAnswer() {\n\t\t\n\t\tString answer = \"\";\n\t\t\n\t\t\n\t\tRandom randomGenerator = new Random(); //Construct a new random number generator\n\t\tint randomNumber = randomGenerator.nextInt(mAnswers.length);\n\t\t\n\t\tanswer = mAnswers[randomNumber];\n\t\t\n\t\treturn answer;\n\t}", "public Answer getAnswer(){\n\t\treturn answer; /** use relation -> DecideAnswer.java */\n\t}", "com.google.protobuf.ByteString\n getCorrectAnswerBytes();", "public String getQuestion() {\n return question;\n }", "public String getQuestion() {\n return question;\n }", "private int getAnswer() throws IOException {\n String w = next();\n while (w.equals(\"\")) {\n w = next();\n }\n // System.out.println(w + \" is the answer key\");\n c = r.read();\n if (w.equals(\"b\")) {\n return 1;\n } else {\n return 0;\n }\n }", "public String getQuestion() {\n\t\treturn question;\n\t}", "Question getQuestion();", "public int get_correctAnswer(){return this._correctAnswer;}", "public String getQuestion() {\n return mQuestion;\n }", "public String getAnswerByNumber(int n) {\n return this.answers.get(n);\n }", "public abstract String chooseAnswer();", "public String getAnAnswer() {\n\n\t\tString answer = \" \";\n\n\t\t// Randomly select one of the answers\n\t\t// Construct a random number using the Random class and the\n\t\t// nextInt method\n\t\tRandom randomGenerator = new Random();\n\t\tint randomNumber = randomGenerator.nextInt(mAnswers.length);\n\n\t\t// Assign a randomly generated number to an answer\n\t\tanswer = mAnswers[randomNumber];\n\n\t\t// Return the result\n\t\treturn answer;\n\t}", "public java.lang.String getCorrectAnswer() {\n java.lang.Object ref = correctAnswer_;\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 correctAnswer_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getWrongAnswers();", "@java.lang.Override\n public java.lang.String getCorrectAnswer() {\n java.lang.Object ref = correctAnswer_;\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 correctAnswer_ = s;\n return s;\n }\n }", "public void question() {\n\t\tlead.answer(this);\n\t}", "public String getCorrectAnswer(int a){\n String answer = correctAnswers[a];\n return answer;\n }", "public double getResult()\n { \n return answer;\n }", "public String getAnswer(String question) {\n for (Map.Entry<String, String> entry : questions.entrySet()) {\n if(question.matches(entry.getKey())) {\n if(!answers.containsKey(entry.getValue())) {\n logger.warning(\"Question matches, but we don't have answer ID \" + entry.getValue());\n break;\n }\n\n return answers.get(entry.getValue());\n }\n }\n return null;\n }", "public ProtocolResult getAnswer(){\n\t\t\n\t\tif( hasReachedTimeout() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.9\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\tif (isInitiator() && (getState() == RequestProtocolState.WAITING_ANSWER)) {\n\t\t\t\t\n\t\t\t\tProtocolResult result = null;\n\t\t\t\tACLMessage aMsg = getRefAclAgent().getACLMessageForConversationId( getConversationId() );\n\t\t\t\t\n\t\t\t\tif( aMsg != null )\n\t\t\t\t{\n\t\t\t\t\tresult = new ProtocolResult();\n\t\t\t\t\tresult.setPerformative( aMsg.getPerformative() );\n\t\t\t\t\tresult.setContent( aMsg.getContent().getContent() );\n\t\t\t\t\t\n\t\t\t\t\tif( result.getPerformative().compareTo(Performative.NOT_UNDERSTOOD) == 0 )\n\t\t\t\t\t\tsetFinalStep();\n\t\t\t\t\telse if( result.getPerformative().compareTo(Performative.REFUSE) == 0 )\n\t\t\t\t\t\tsetFinalStep();\n\t\t\t\t\telse if( result.getPerformative().compareTo(Performative.AGREE) == 0 )\n\t\t\t\t\t\tsetState(RequestProtocolState.WAITING_RESULT);\n\t\t\t\t\t\n\t\t\t\t\tresetStartedTime();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\telse if( isParticipant() ){\n\t\t\t\taddError(Locale.getString(\"FipaRequestProtocol.10\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\telse{\n\t\t\t\taddError(Locale.getString(\"FipaRequestProtocol.11\")); //$NON-NLS-1$\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public java.lang.String getTestAnswer() {\r\n return testAnswer;\r\n }", "public String getCorrect() {\n\t\treturn new String(correctAnswer);\n\t}", "@Override\n\tpublic String getQuest() {\n\t\t// TODO Auto-generated method stub\n\t\treturn this.question;\n\t}", "@NotNull\r\n @Column(name=\"answer\")\r\n public String getAnswer()\r\n {\r\n return answer;\r\n }", "double scoreAnswer(Question question, Answer answer);", "public Question getQuestion() {\n return this.question;\n }", "public String getAnswercontent() {\n return answercontent;\n }", "public Answer randomAnswer()\n\t{\n\t\tRandom random = new Random();\n\t\tint num = random.nextInt(answers.length);\n\t\treturn answers[num];\n\t}", "@Override\n\tpublic String getAnswer() {\n\t\treturn \"\" + IntStream.iterate(1, i->i+1)\n\t\t\t\t.mapToObj(i -> Tuple.of(i, sort(DigitsUtils.getDigits(i))))\n\t\t\t\t.filter(tuple -> Arrays.equals(tuple.getValue(), sort(DigitsUtils.getDigits(2*tuple.getKey()))))\n\t\t\t\t.filter(tuple -> Arrays.equals(tuple.getValue(), sort(DigitsUtils.getDigits(3*tuple.getKey()))))\n\t\t\t\t.filter(tuple -> Arrays.equals(tuple.getValue(), sort(DigitsUtils.getDigits(4*tuple.getKey()))))\n\t\t\t\t.filter(tuple -> Arrays.equals(tuple.getValue(), sort(DigitsUtils.getDigits(5*tuple.getKey()))))\n\t\t\t\t.filter(tuple -> Arrays.equals(tuple.getValue(), sort(DigitsUtils.getDigits(6*tuple.getKey()))))\n\t\t\t\t.findFirst()\n\t\t\t\t.orElseThrow(SolutionNotFoundException::new)\n\t\t\t\t.getKey();\n\t}", "@Override\n\tpublic String answer() {\n\t\treturn null;\n\t}", "@Override\n\t public String solve() {\n\t if (count == 0) {\n\t answer1 = getVariable2()*getVariable3();\n\t setAnswer(answer1 + \"\");\n\t } else if (count == 1) {\n\t answer1 = getVariable1()/getVariable2();\n\t setAnswer(answer1 + \"\");\n\t }else if (count == 2) {\n\t answer1 = getVariable1()/getVariable3();\n\t setAnswer(answer1 + \"\");\n\t }\n\t return getAnswer();\n\t }", "public String getSelectedAnswer() {\n\t\tList<Integer> selected = getSelectedIndexes();\n\t\treturn this.value.get(selected.get(0));\n\t}", "public String retA()\n\t{\n\t\treturn answers[correctAns]; \t\n\t}", "public TextField getQuestion() {\r\n\t\tquestion.setPromptText(\"question\");\r\n\t\treturn question;\r\n\t}", "boolean hasCorrectAnswer();", "public String getAnswer(int index){\n return answerList.get(index);\n }", "public int getAnswers() {\n return answers;\n }", "public void setAnswer(String answer) {\r\n this.answer = answer;\r\n }", "public String printOutQuestion()\n\t{\n\t\tRandom rand = new Random();\n\t\tString[] answers = new String[4];\n\t\tString returnString;\n\t\tanswers[0] = answer;\n\t\tanswers[1] = falseAnswers[0];\n\t\tanswers[2] = falseAnswers[1];\n\t\tanswers[3] = falseAnswers[2];\n\t\tString firstAns = \"\", secondAns = \"\", thirdAns = \"\", fourthAns = \"\";\n\t\t\n\t\twhile(firstAns == secondAns || firstAns == thirdAns || firstAns == fourthAns || secondAns == thirdAns || secondAns == fourthAns || thirdAns == fourthAns)\n\t\t{\n\t\t\tfirstAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(firstAns); Used for debugging\n\t\t\tsecondAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(secondAns); Used for debugging\n\t\t\tthirdAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(thirdAns); Used for debugging\n\t\t\tfourthAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(fourthAns); Used for debugging\n\t\t}\n\t\t\n\t\tanswerA = firstAns;\n\t\tanswerB = secondAns;\n\t\tanswerC = thirdAns;\n\t\tanswerD = fourthAns;\n\t\t//System.out.println(questionString + \"Answer A: \" + firstAns + \"Answer B: \" + secondAns + \"Answer C: \" + thirdAns + \"Answer D: \" + fourthAns); Used for debugging\n\t\treturnString = questionString + \"?\"; \n\t\tSystem.out.println(\"Actual Answer is: \" + answer);\n\t\treturn returnString;\n\t}", "public String getAnswerName() {\n return answerName;\n }", "public abstract String getLastAnswer();", "@Override\r\n\tpublic String toString() {\r\n\t\treturn question;\r\n\t}", "public String getCorrectAnswer(int a) {\n String answer = mCorrectAnswers[a];\n return answer;\n }", "public BigDecimal getAnswerNum() {\n return answerNum;\n }", "String answerStatement(boolean answer) {\n String answerStatement = getResources().getString(R.string.wrong);\n if (answer) {\n answerStatement = getResources().getString(R.string.correct);\n }\n return answerStatement;\n }", "public String getNextAnswer() {\r\n\t\t// Condition for getting the exact possible answers for the current question.\r\n\t\tif (counterAns < possibleAnswers.size()) {\r\n\t\t\tnextAnswer = possibleAnswers.get(counterAns).getPossibleAnswer();\r\n\t\t\t// Incrementing the counter with one, so next time the method is called it will\r\n\t\t\t// get the exact answers for the following question.\r\n\t\t\tcounterAns++;\r\n\t\t}\r\n\t\treturn nextAnswer;\r\n\t}", "public String getPollAnswer() {\n return pollAnswer;\n }", "@Override\n\tpublic String getQuestionAnswerText() {\n\t\treturn null;\n\t}", "public int getNumAnswer() {\n return numAnswer;\n }", "public Object answer() {\n return getParticipantXMLString();\n }", "protected Answer(){\r\n\t\t\r\n\t}", "public String getCrrAnswerString() {\n if (type.equals(\"txt\")) {\n return getTextCrrAnswer();\n }\n else {\n return answers[mcCrrAnswer - 1];\n }\n }", "public String getAnswerText1() {\r\n\t\treturn answerText1;\r\n\t}", "public static void main(){\n \n \n String question = \"There are 10 types of people in this world, those who understand binary and those who don't.\";\n String answer = \"true\";\n \n Question tfQuest = new Question (question, answer);\n tfQuest.getAnswer();\n \n }", "public String getUserInput(String question) {\r\n System.out.print(question);\r\n return scanner.next();\r\n }", "public int getPlayerAnswer()\r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter your answer (0-3): \");\r\n\t\treturn in.nextInt();\r\n\t}", "public String getAnswerId() {\n return answerId;\n }", "public void showQuestion()\n\t{\n\t\tSystem.out.println(ans);\n\t\tfor(int k = 0; k<numAns; k++)\n\t\t{\n\t\t\tSystem.out.println(k+\". \"+answers[k]);\n\t\t}\n\t}", "public ArrayList<AnswerElement> getAnswer() {\r\n\t\treturn ans;\r\n\t}", "pb4server.GiveRansomAskReq getGiveRansomAskReq();", "public String getAnswerBy() {\n return answerBy;\n }", "public String getQuestion(int a) {\n String question = textQuestions[a];\n return question;\n }", "public abstract AnswerStatus checkAnswer(String answer) throws SyntaxException;", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCorrectAnswerBytes() {\n java.lang.Object ref = correctAnswer_;\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 correctAnswer_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getQuestionString() \n {\n return originalQuestionString;\n }", "public com.google.protobuf.ByteString\n getCorrectAnswerBytes() {\n java.lang.Object ref = correctAnswer_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n correctAnswer_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getTestQuestion() {\r\n return testQuestion;\r\n }", "public Integer getAnswerid() {\n return answerid;\n }", "public String getQuestionContent() {\n return questionContent;\n }", "public String get_question(){return this._question;}", "@Override\n\tpublic int getAnswerNum() {\n\t\treturn 1;\n\t}", "public int giveMark() {\n String tmpAnswer = textQuestionInput.getText().toString();\n textQuestion.isAnswerCorrect(tmpAnswer);\n textQuestionInput.setText(\"\");\n return textQuestion.getQuestionMark();\n }", "public Question getQuestion()\n {\n return currentQuestion;\n }", "public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }", "Question getQuestion(String questionId);", "@Override\n\tpublic Answer getModel() {\n\t\treturn answer;\n\t}", "public int questionOne() {\n RadioButton answerOne = findViewById ( R.id.q1_a1 );\n\n if (answerOne.isChecked ()) {\n score = 1;\n } else score = 0;\n return score;\n }", "public String getActiveChallengesAnswer() {\n return categories.get(indexOfActiveCategory).getActiveChallenge().getAnswer();\n }", "public MCQAnswer getMcqAnswer() {\r\n\t\treturn mcqAnswer;\r\n\t}", "Boolean getIsAnswered();", "@Override\n\tpublic void solve(String result) {\n\t\tSystem.out.println(\"你告诉我的答案是--->\"+result); \n\t}", "public void printQuestion() {\n\t\tSystem.out.println(question);\n\t}", "public Integer getQuestionNumber()\n {\n return questionNumber;\n }", "@Override\n\tpublic String getQuestion() {\n\n\t\treturn \"http://leetcode.com/onlinejudge#question_11\";\n\t}", "public java.util.List<java.lang.CharSequence> getAnswers() {\n return Answers;\n }", "public boolean replyResult(int answer){\n \t_numberOfChoice = answer;\r\n return false;\r\n }", "public int getMemberQuestion() { // Returns the question\n return this.memberQuestion;\n }" ]
[ "0.8152762", "0.79450285", "0.7629229", "0.7563342", "0.7544126", "0.74133736", "0.7380148", "0.7375403", "0.7288893", "0.7246539", "0.7200368", "0.7099894", "0.70537853", "0.70215666", "0.68959725", "0.6875207", "0.68743575", "0.6863251", "0.6837478", "0.68340904", "0.68244517", "0.6809164", "0.6800175", "0.67669976", "0.6765263", "0.6757958", "0.6664459", "0.6645145", "0.66178024", "0.65983415", "0.65911126", "0.65906084", "0.65867066", "0.65817195", "0.65761495", "0.65750736", "0.65709865", "0.6552997", "0.65070015", "0.6492912", "0.6481251", "0.6472651", "0.64716345", "0.64478475", "0.64437723", "0.6401099", "0.6398634", "0.6398611", "0.6383136", "0.6382035", "0.6379345", "0.63751096", "0.6361502", "0.6361057", "0.6354792", "0.633576", "0.6334815", "0.63205993", "0.63200265", "0.6314424", "0.62787014", "0.62705445", "0.6267623", "0.6262466", "0.62557083", "0.62362534", "0.6234763", "0.62333536", "0.62153816", "0.6214506", "0.6205676", "0.6178066", "0.6162363", "0.61570084", "0.61549276", "0.6140898", "0.61313665", "0.61247855", "0.61176705", "0.6117379", "0.61157054", "0.61130434", "0.6110235", "0.6104679", "0.61019194", "0.6092763", "0.6091679", "0.6079571", "0.60712385", "0.6070768", "0.60676754", "0.6062314", "0.60608387", "0.6056373", "0.6041048", "0.60400456", "0.60382664", "0.60345984", "0.6022757", "0.6019291" ]
0.7579409
3
Returns the GameTimer instance associated with this panel.
public GameTimer getTimer() { return timer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Timer getTimer() {\r\n\t\treturn timer;\r\n\t}", "public Timer getTimer(){\n\t\treturn timer;\n\t}", "static public Timer theTimer() {\n return TheTimer;\n }", "private CountDownTimer getGameTimer() {\n CountDownTimer countDownTimer;\n countDownTimer = new CountDownTimer(gameTimeLeftYet, 100) {\n @Override\n public void onTick(long millisUntilFinished) {\n gameTimerOnTick(millisUntilFinished);\n }\n\n @Override\n public void onFinish() {\n gameTimerOnFinish();\n }\n };\n return countDownTimer;\n }", "public Timer getTimer() {\n\t//if (heartbeat_==null) heartbeat_ = new Timer(100, 1000); // on demand: don't slow down startup\n\tif (timer_==null) timer_ = new java.util.Timer();\n\treturn timer_;\n }", "Timer getTimer();", "private UimaTimer getTimer() throws Exception {\n String uimaTimerClass = cpeFactory.getCPEConfig().getCpeTimer().get();\n if (uimaTimerClass != null) {\n new TimerFactory(uimaTimerClass);\n return TimerFactory.getTimer();\n }\n // If not timer defined return default timer based on System.currentTimeMillis()\n return new JavaTimer();\n }", "public static AppTimer getIstance() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (AppTimer.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new AppTimer();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public int getTimer() {\n return timer;\n }", "public int getTimer() {\n return getOption(ArenaOption.TIMER);\n }", "public String getTimer() {\n return timer;\n }", "public int getTimer() {\n return worldTimer;\n }", "public AnimationTimer createTimer() {\n return new AnimationTimer() {\n @Override\n public void handle(long now) {\n if (!levelController.getLevelControllerMethods().getGamePaused()) {\n levelController.getBubbles().forEach(Monster.this::checkCollision);\n move();\n }\n\n setChanged();\n notifyObservers();\n }\n };\n\n }", "public RtTimePanel getTimePanel() {\n return timePanel ;\n }", "public final static KaranteeniTimerInitiater getTimerHandler() {\r\n\t\treturn timerInitiater;\r\n\t}", "public long getTimerTime() {\n return timerTime;\n }", "public static Timer getSharedNonDeamonTimer() {\n if ( sharedNonDeamonTimer == null ) {\n sharedNonDeamonTimer = new Timer(\"Shared Non-Deamon Timer\", false);\n }\n\n return sharedNonDeamonTimer;\n }", "public static Timer getSharedDeamonTimer() {\n \n if ( sharedDeamonTimer == null ) {\n sharedDeamonTimer = new Timer(\"Shared Deamon Timer\", true);\n }\n\n return sharedDeamonTimer;\n }", "public Timer getTime() {\n\t\treturn time;\n\t}", "public static FpsTimer singleton() {\n return singleton == null ? singleton = new FpsTimer() : singleton;\n }", "@Override\n\tpublic Double getTimer() {\n\t\treturn null;\n\t}", "public TaskTimer\n getTimer() \n {\n return pTimer;\n }", "public GamePanel getGamePanel() {\r\n return gamePanel;\r\n }", "public Timer getOverallTimer();", "public static GameClock getGameClock() {\r\n\t\treturn clock;\r\n\t}", "public IdleTimer getIdleTimer()\n {\n return idleTimer;\n }", "public GamePanel getGamePanel() {\n\t\treturn gamePanel;\n\t}", "public String getTimerType() {\n\t\treturn Main.STANDARDTIMER;\n\t}", "public static Gameplay getRunningGame() {\r\n\t\treturn Gameplay.getInstance();\r\n\t}", "public gov.ucore.ucore._2_0.TimeType getTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.TimeType target = null;\n target = (gov.ucore.ucore._2_0.TimeType)get_store().find_element_user(TIME$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public static TimeMachine getTimeMachine() {\n return _instance;\n }", "TimerType createTimerType();", "@Override\n\tpublic TimerValuesInterface getTimes() {\n\t\treturn timer;\n\t}", "public static Game getGame()\n\t{\n\t\tif(instance == null)\n\t\t\tinstance = new Game();\n\t\treturn instance;\n\t}", "public static GameManager getInstance() {\n return ourInstance;\n }", "public static ScheduledFuture<?> getGameScheduler() {\n return gameScheduler;\n }", "public String timerPause(){\n return mTimer;\n }", "public static ITimeProvider getTimeProvider() {\n return _instance;\n }", "private TimerTask getTask() {\n\t\tfinal TimedTask tt = this;\n\t\treturn new TimerTask() {\n\t\t\tpublic void run() {\n\t\t\t\ttask();\n\t\t\t\ttt._nextTaskHasRan = true;\n\t\t\t}\n\t\t};\n\t}", "public static Game getInstance() {\n\t\tif (game == null)\n\t\t\tgame = new Game();\n\t\treturn game;\n\t}", "public JButton getButtonToStartTimer()\n {\n return timerButton;\n }", "public TimerCheck() {\n super(\"timer_check\");\n PlayerMovementListener.EVENT.register(this);\n }", "public static Game getGame() {\n return game;\n }", "public static Game getGame() {\r\n\t\treturn game;\r\n\t}", "public static Clock instance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new Clock();\n\t\t}\n\t\treturn instance;\n\t}", "public float getCurrentTime () {\n\t\treturn timer;\n\t}", "public static GameWindow getGame() {\n return _gameWindow;\n }", "public static synchronized SimpleTimer getInstance(AccumuloConfiguration conf) {\n int threadPoolSize;\n if (conf != null) {\n threadPoolSize = conf.getCount(Property.GENERAL_SIMPLETIMER_THREADPOOL_SIZE);\n } else {\n threadPoolSize = DEFAULT_THREAD_POOL_SIZE;\n }\n return getInstance(threadPoolSize);\n }", "public DankTimer getDankTimer(DLabel key) {\n return getDankTimer(key, DankTimerFormat.TENTH_OF_SECOND);\n }", "public static Game getGame() {\n\t\treturn game;\n\t}", "public synchronized static GameManager getInstance() {\n if (null == gameManager) {\n gameManager = new GameManager();\n }\n return gameManager;\n }", "TimerSchedule createTimerSchedule();", "public static Time uniqueInstance() {\r\n\t\tif (time == null) {\r\n\t\t\tsynchronized (Time.class) {\r\n\t\t\t\tif (time == null) {\r\n\t\t\t\t\ttime = new Time(600);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn time;\r\n\t}", "public org.landxml.schema.landXML11.GPSTime xgetStopTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.GPSTime target = null;\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().find_attribute_user(STOPTIME$24);\r\n return target;\r\n }\r\n }", "public Timer() {}", "public GameTimer()\n \t{\n \t\tsuper();\n \t\tt = new Task();\n \t\tscheduleAtFixedRate( t, 0, 1000 );\n \t\tstartTime = System.currentTimeMillis();\n \t}", "RampDownTimer getRampDownTimer();", "public static WayPointPanel getInstance() {\r\n\t\treturn wayPointTablePanel;\r\n\t}", "void startGameTimer()\n {\n Timer.destroyTimer(\"starting_game_timer\");\n Timer timer = Timer.createTimer(\"starting_game_timer\", startTimerSeconds);\n timer.addTimerListener(this);\n timer.start();\n }", "public static GameManager getInstance() {\n if (GameManager.instance == null) {\n GameManager.instance = new GameManager();\n }\n return GameManager.instance;\n }", "public Date getGameTime() {\n\t\treturn gameTime;\n\t}", "long getTimerPref();", "public static long startTimer() {\n return System.currentTimeMillis();\n }", "public static GameEngine getInstance() {\n return INSTANCE;\n }", "public static Hashtable getTimersHashtable() {\r\n return _timers;\r\n }", "public static TimedRefreshManager getInstance() {\n\t\t\n\t\tif (_instance == null) {\n\t\t\t_instance = new TimedRefreshManager();\n\t\t}\n\t\treturn _instance;\n\n\t}", "public Timer start() {\r\n timestamp = System.currentTimeMillis();\r\n return this;\r\n }", "public static TimerData getTimerData() {\n\t\tUtils.whileTimeout(()->!timers.canAccess()); // wait for unsafe conditions to pass\n\t\treturn timers.timerData;\n\t}", "public static synchronized SimpleTimer getInstance(int threadPoolSize) {\n if (instance == null) {\n instance = new SimpleTimer(threadPoolSize);\n SimpleTimer.instanceThreadPoolSize = threadPoolSize;\n } else {\n if (SimpleTimer.instanceThreadPoolSize != threadPoolSize) {\n log.warn(\"Asked to create SimpleTimer with thread pool size {}, existing instance has {}\",\n threadPoolSize, instanceThreadPoolSize);\n }\n }\n return instance;\n }", "public static GameManager getInstance() { \n \t\tif (instance == null){\n \t\t\tinstance = new GameManager (); \n \t\t}\n \t\treturn instance;\n \t}", "public static TimedActiveTeams getInstance()\r\n {\r\n if(uniqueInstance == null)\r\n {\r\n uniqueInstance = new TimedActiveTeams();\r\n }\r\n return uniqueInstance;\r\n }", "public TickManager getTickManager() {\n\t\treturn tickManager;\n\t}", "public final Panel getPanel()\r\n\t{\r\n\t\treturn panel;\r\n\t}", "private void setNewTimer() {\n if (!isSetNewTimerThreadEnabled) {\n return;\n }\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new TimerTask() {\n\n @Override\n public void run() {\n // Send the message to the handler to update the UI of the GameView\n GameActivity.this.handler.sendEmptyMessage(UPDATE);\n\n // For garbage collection\n System.gc();\n }\n\n }, 0, 17);\n }", "public GameThread(Timer timer)\n\t{\n\t\tthis.timer = timer;\n\t}", "public GUIGameflow getGame() {\n return game;\n }", "public MyTimerPanel(){\r\n\t\t//set up the body\r\n\t\tstopWatchTimer = new StopWatch (0, 0, 0);\r\n timer = new TimerListener();\r\n javaTimer = new Timer(100, timer);\r\n //javaTimer.start();\r\n javaTimer.setRepeats(flag);\r\n\r\n //set the layout\r\n setLayout(new GridLayout(4,3));\r\n\t\tsetBackground(Color.BLUE);\r\n\t\t\r\n\t\t//initialize JButttons\r\n\t\tstart = new JButton(\"START\");\r\n\t\tstop = new JButton(\"STOP\");\r\n\t\treset = new JButton(\"RESET\");\r\n\t\tadd = new JButton(\"ADD\");\r\n\t\tsub = new JButton(\"SUBTRACT\");\r\n\t\t\r\n\t\t//make text fields initially 0\r\n\t\tmin = new JTextField(\"0\");\r\n\t\tsec = new JTextField(\"0\");\r\n\t\tmilli = new JTextField(\"0\");\r\n\t\t\r\n\t\t//initialize JLabels\r\n\t\ttime = new JLabel(\"Time: \" + stopWatchTimer.toString());\r\n\t\tminL = new JLabel(\"Minute: \");\r\n\t\tsecL = new JLabel(\"Second: \");\r\n\t\tmilliL = new JLabel(\"Millisecond: \");\r\n\t\t\r\n\t\t//add to menu bar\r\n//\t\t\t\tJMenuBar menuBar = new JMenuBar();\r\n//\t\t\t\tmenuBar.add(file);\r\n\t\t\r\n\t\t\r\n\t //timer = new TimerListener();\r\n\t\tmin.addActionListener(timer);\r\n\t\tsec.addActionListener(timer);\r\n\t\tmilli.addActionListener(timer);\r\n\t\tstart.addActionListener(timer);\r\n\t\tstop.addActionListener(timer);\r\n\t\treset.addActionListener(timer);\r\n\t\tadd.addActionListener(timer);\r\n\t\tsub.addActionListener(timer);\r\n\t\t\r\n\t\t//add everything to panel\r\n\t\tadd(time);\r\n\t\t\r\n\t\tadd(reset);\r\n\t\tadd(add);\r\n\t\tadd(minL);\r\n\t\tadd(min);\r\n\t\tadd(start);\r\n\t\tadd(secL);\r\n\t\tadd(sec);\r\n\t\tadd(stop);\r\n\t\tadd(milliL);\r\n\t\tadd(milli);\r\n\t\tadd(sub);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public int getProductionTimer()\n\t{\n\t\treturn currentProductionTimer;\n\t}", "public static GameFrame getGameFrame() {\n return gameFrame;\n }", "public long getPlayerTime ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTime ( ) );\n\t}", "@Override\n public void stop() {\n GameManager.getInstance().stopTimer();\n }", "public final static Timers getTimers( Integer id ) {\n\t\tString key = getKey( id ) ;\n\t\treturn cache.get(key);\n\t}", "@Override\n\tpublic long getResolution() {\n\t\treturn TIMER_RESOLUTION;\n\t}", "public Getter reqGetOnTimerSetting() {\n\t\t\taddProperty(EPC_ON_TIMER_SETTING);\n\t\t\treturn this;\n\t\t}", "public Game getGame() {\r\n\t\treturn _game;\r\n\t}", "public Integer getGameUseTime() {\n return gameUseTime;\n }", "public static GameLevelManager getInstance() {\n\t\tif (null == mGameLevelManager) {\n\t\t\tmGameLevelManager = new GameLevelManager();\n\t\t}\n\t\treturn mGameLevelManager;\n\t}", "public Timer() {\n\t\tthis.start = 0L;\n\t\tthis.end = 0L;\n\t}", "public IdleTimer() {\r\n\t\t\tinActivitySession = false;\r\n\t\t}", "public void createTimer() {\n timer = new AnimationTimer() {\n @Override\n public void handle(long now) {\n if (animal.changeScore()) {\n setNumber(animal.getPoints());\n }\n if (animal.getStop()) {\n System.out.println(\"Game Ended\");\n background.stopMusic();\n stop();\n background.stop();\n\n ArrayList list = null;\n try {\n list = scoreFile.sortFile(animal.getPoints());\n } catch (IOException e) {\n e.printStackTrace();\n }\n popUp(list);\n }\n }\n };\n }", "public long getTime() {\n\t\treturn (Sys.getTime() * 1000) / Sys.getTimerResolution();\n\t}", "public Timer()\r\n\t{\r\n\t\tcurrentstate = TIMER_STOP;\r\n\t}", "TimerStatus onTimer();", "@DISPID(31)\r\n\t// = 0x1f. The runtime will prefer the VTID if present\r\n\t@VTID(36)\r\n\tasci.activebatch.enumJobTimerTriggerType timerTrigger();", "Object getClock();", "Timer(int tempTotalTime) {\n totalTime = tempTotalTime;\n }", "@Override\n\tpublic long getPlaytime() {\n\t\treturn this.playTime;\n\t}", "public int getEnergyTimer()\n\t{\n\t\treturn currentEnergyTimer;\n\t}", "RampUpTimer getRampUpTimer();", "public GameRules getGameRulesInstance()\n {\n return theGameRules;\n }" ]
[ "0.73349303", "0.71934265", "0.71438104", "0.7108093", "0.6964154", "0.6865664", "0.67635524", "0.6710874", "0.65848935", "0.6508473", "0.64761335", "0.64004993", "0.639708", "0.63854456", "0.6385177", "0.63817126", "0.6261935", "0.621298", "0.61912155", "0.61845016", "0.6115776", "0.6107854", "0.6100056", "0.5985956", "0.5980485", "0.59556186", "0.5933842", "0.5855045", "0.5828492", "0.57887846", "0.57483184", "0.5733266", "0.5700242", "0.568706", "0.5668688", "0.5653439", "0.56019366", "0.5589023", "0.5559864", "0.547717", "0.5454542", "0.54157746", "0.5408187", "0.5402051", "0.53788686", "0.5375532", "0.5373221", "0.5372201", "0.536864", "0.5362067", "0.5356697", "0.5352276", "0.53522015", "0.53488684", "0.5342507", "0.53273636", "0.5322028", "0.53204894", "0.5273057", "0.52650404", "0.52466637", "0.5244084", "0.5215147", "0.5177961", "0.51716125", "0.5169206", "0.5148447", "0.5117338", "0.5114874", "0.5101996", "0.50976884", "0.5075066", "0.5071639", "0.5054829", "0.50545096", "0.50471246", "0.50002354", "0.49741217", "0.49724215", "0.4972027", "0.49710476", "0.49446967", "0.49423167", "0.4926882", "0.49254844", "0.49244598", "0.49156892", "0.49118984", "0.4910024", "0.49062434", "0.48995462", "0.48953852", "0.48901802", "0.4887951", "0.48831806", "0.48709765", "0.48697832", "0.48682967", "0.4867398", "0.48653418" ]
0.78070784
0
Sets up a new Game Panel.
public GamePanel (int difficulty, ScarletGemMain source) { timer = new GameTimer (difficulty, timeLabel, this, source); timer.start (); a=new JButton ("A"); b=new JButton ("B"); c=new JButton ("C"); d=new JButton ("D"); questionLabel=new JLabel(); setLayout(null); a.setBounds(380,220,a.getPreferredSize().height+20,a.getPreferredSize().width); b.setBounds(500,220,b.getPreferredSize().height+20,b.getPreferredSize().width); c.setBounds(308,320,c.getPreferredSize().height+20,c.getPreferredSize().width); d.setBounds(500,320,d.getPreferredSize().height+20,d.getPreferredSize().width); questionLabel.setBounds(380,100,600,100); pauseButton.setBounds (450,50,pauseButton.getPreferredSize().width, pauseButton.getPreferredSize().height); mapImageLabel.setIcon(new ImageIcon("pics/map.jpg")); mapImageLabel.setBounds(200,170,500,280); mapImageLabel.setVisible(false); feedbackLabel.setBounds(250,450,200,30); pauseButton.setBounds(550,10,90,30); levelCounter.setBounds(50,50,450,30); questionCounter.setBounds(400,50,90,30); feedbackLabel.setVisible(false); add(feedbackLabel); add(mapImageLabel); add(a); add(b); add(c); add(d); add(questionLabel); add(pauseButton); add(questionCounter); add(levelCounter); revalidate (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GamePanel() {\n this.setLayout(null);\n\n initializeStateLabel();\n\n initializePileLabel();\n\n initializeSetColorButton();\n\n initializeDrawButton();\n initializeHideButton();\n\n this.setVisible(true);\n }", "private void setUpPanel() { \n this.setPreferredSize(new Dimension(myWidth, myHeight)); \n // Set this panel as a grid panel with 1 column, 6 rows. \n this.setLayout(new GridLayout(NUM_ROWS, 1)); \n // Create the next piece panel.\n this.myNextPiece = new TetrisNextPiecePanel();\n this.add(myNextPiece); \n // Add another panel which will show game instruction.\n final HowToPlayPanel instructionsPanel = new HowToPlayPanel();\n this.add(instructionsPanel);\n // add the last panel which will show the scores, level, game state etc.\n this.setUpLastPanel();\n }", "public GamesPanel() {\n initComponents();\n }", "public void init(){\n \tgamePanel = new GamePanel(this);\n getContentPane().add(gamePanel, BorderLayout.CENTER);\n \n gamePanel.addMouseListener(this);\n gamePanel.addMouseMotionListener(this);\n \n \tgamePanel.game.init();\n }", "public GamePanel() {\n setBackground(new Color(0, 200, 0));\n deck = new Deck();\n mainPiles = new Pile[7];\n suitPiles = new Pile[4];\n setInitialLayout(deck);\n deckPile = new Pile(deck.getX() + Card.WIDTH + GamePanel.HORI_DISPL, deck.getY(), Pile.DECK_PILE);\n selectedPile = null;\n CardListener listener = new CardListener(this);\n this.addMouseListener(listener);\n this.addMouseMotionListener(listener);\n this.setFocusable(true);\n }", "public Game() {\n super(\"Project 6 Game\");\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n gamePanel = new GamePanel();\n setContentPane(gamePanel);\n pack();\n setLocationRelativeTo(null);\n setVisible(true);\n }", "private void setupPanels() {\n\t\tsplitPanel.addEast(east, Window.getClientWidth() / 5);\n\t\tsplitPanel.add(battleMatCanvasPanel);\n\t\tpanelsSetup = true;\n\t}", "public GameLostPanel() {\n initComponents();\n }", "public AnimationPanel() {\n initComponents();\n // create a new game board\n game = new GameOfLife(gridSize);\n }", "public JPanelGameState() {\n initComponents();\n initLabelsArray();\n }", "public PlayerPanel() {\n initComponents();\n\n panel.initializeButtons(\n new javax.swing.JButton[]{addPlayerButton, editPlayerButton, deletePlayerButton},\n new javax.swing.JButton[]{cancelPlayerButton, savePlayerButton}\n );\n }", "private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}", "public PausePanel()\n {\n StateSelector stateSelector = StateSelector.getInstance();\n GameState state = (GameState) stateSelector.getState();\n Session session = state.getSession();\n\n JTextField idTextField = new JTextField(40);\n idTextField.setEditable(false);\n idTextField.setText(session.getId());\n add(idTextField);\n \n StringSelection stringSelection = new StringSelection(session.getId());\n Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n clipboard.setContents(stringSelection, null);\n \n Button backButton = new Button(\"assets/images/buttons/backDefault.png\", \"assets/images/buttons/backHover.png\", \"assets/images/buttons/backClick.png\");\n backButton.setWidth(71);\n backButton.setHeight(33);\n backButton.setX(539);\n backButton.setY(367);\n onHover(backButton, backButton.HOVER_COMMAND, backButton.UNHOVER_COMMAND);\n onPress(backButton, backButton.PRESS_COMMAND);\n onRelease(backButton, new Callable()\n {\n public void call()\n {\n Window window = Window.getInstance();\n window.setPanel(new GamePanel());\n \n }\n });\n buttons.add(backButton);\n\n JButton quitBtn = new JButton(\"quit\");\n quitBtn.addActionListener(new QuitListener());\n add(quitBtn);\n }", "private void setupGameWindow()\n {\n uControll.setWindowProperties(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n menuPanel.open();\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}", "public void onModuleLoad() {\n\t\t//create our main panel\n\t\tfinal DeckPanel panels = new DeckPanel(); \n\t\tRootPanel.get(\"panel\").add(panels);\n\t\t//create our stage panels\n\t\tfinal LoginPanel login = new LoginPanel(panels,wwwordzService);\n\t\tfinal GamePanel game = new GamePanel(panels,wwwordzService); \n\t\tfinal RankingPanel ranking = new RankingPanel(panels,wwwordzService);\n\t\t//add stage panels to main panel\n\t\tpanels.add(login);\n\t\tpanels.add(game);\n\t\tpanels.add(ranking);\n\t\tpanels.showWidget(0);\n\t\t\n\n\t}", "public void initTurnPanel() {\n this.turnPanel = new JPanel();\n int turnPanelWidth = 0;\n Font f = new Font(\"Helvetica\", Font.BOLD, 18);\n\n turnPanel.setBackground(new Color(0xeaf1f7));\n turnPanel.setLayout(new GridLayout(1, nicknames.size(), 0, 0));\n\n for (int i = 0; i < nicknames.size(); i++) {\n turnPanelWidth = turnPanelWidth + nicknames.get(i).getText().length();\n nicknames.get(i).setFont(f);\n nicknames.get(i).setSize(new Dimension(nicknames.get(i).getText().length() * letterOffset, buttonHeight));\n turnPanel.add(nicknames.get(i));\n }\n turnPanelWidth = turnPanelWidth*letterOffset;\n turnPanel.setPreferredSize(new Dimension(turnPanelWidth+50*nicknames.size(), buttonHeight));\n\n blankLabels = new JLabel[2];\n for (int i = 0; i < blankLabels.length; i++) {\n blankLabels[i] = new JLabel();\n blankLabels[i].setPreferredSize(new Dimension(80, buttonHeight));\n navigationBar.add(blankLabels[i]);\n }\n\n this.navigationBar.add(turnPanel);\n }", "public void initGameMode() {\n\n for (JPanel p : attached) {\n mainPanel.remove(p);\n }\n mainPanel.setLayout(null);\n initNavigationBar();\n\n marketFrame = new MarketFrame(gui);\n productionDeckFrame = new ProductionDeckFrame(gui);\n reserveFrame = new ReserveFrame();\n\n gameboardPanel = new GameboardPanel(gui);\n gameboardPanel.setBounds(0, 0, 800, 572);\n mainPanel.add(gameboardPanel);\n serverMessagePanel = new ServerMessagePanel();\n serverMessagePanel.setBounds(800, 0, 380, 275);\n mainPanel.add(serverMessagePanel);\n leaderCardsPanel = new LeaderCardsPanel(gui);\n leaderCardsPanel.setBounds(805, 280, leaderWidth, leaderHeight);\n mainPanel.add(leaderCardsPanel);\n\n\n this.setVisible(false);\n }", "public void newGame()\n\t{\n\t\tthis.setVisible(false);\n\t\tthis.playingField = null;\n\t\t\n\t\tthis.playingField = new PlayingField(this);\n\t\tthis.setSize(new Dimension((int)playingField.getSize().getWidth()+7, (int)playingField.getSize().getHeight() +51));\n\t\tthis.setLocation(new Point(200,20));\n\t\tthis.setContentPane(playingField);\n\t\t\n\t\tthis.setVisible(true);\n\t}", "public void setUpHUDPanel() {\n\n\t\t//Criando e configurando painel que apresenta botoes de acoes\n\t\tthis.playerOptionPanel = new JPanel(null);\n\t\tthis.playerOptionPanel.setBounds(730, 315, 275, 235);\n\t\tthis.playerOptionPanel.setOpaque(false);\n\n\t\t//Criando e configurando botao para jogar/manipular dado\n\t\tthis.moveButton = new JButton(\"JOGAR O DADO\");\n\t\tthis.moveButton.setBounds(45, 25, 175, 45);\n\t\tthis.moveButton.setActionCommand(\"MOVE\");\n\t\tthis.moveButton.setMnemonic(KeyEvent.VK_M);\n\t\tthis.moveButton.setToolTipText(\"Cique aqui para jogar o dado e realizar o movimento\");\n\n\t\t//Adicionando tratador de evento para clique no botao\n\t\tthis.moveButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tmanipulaDice();\n\t\t\t}\n\t\t});\n\n\t\t//Criando e configurando botao para realizar palpite\n\t\tthis.suggestButton = new JButton(\"REALIZAR PALPITE\");\n\t\tthis.suggestButton.setBounds(45, 90, 175, 45);\n\t\tthis.suggestButton.setActionCommand(\"SUGGEST\");\n\t\tthis.suggestButton.setMnemonic(KeyEvent.VK_S);\n\t\tthis.suggestButton.setEnabled(false);\n\t\tthis.suggestButton.setToolTipText(\"Clique aqui para realizar sugestão\");\n\n\t\t//Criando e configurando botao para realizar acusacao\n\t\tthis.accuseButton = new JButton(\"ACUSAR\");\n\t\tthis.accuseButton.setBounds(45, 160, 175, 45);\n\t\tthis.accuseButton.setActionCommand(\"ACCUSE\");\n\t\tthis.accuseButton.setMnemonic(KeyEvent.VK_A);\n\t\tthis.accuseButton.setToolTipText(\"Clique para fazer acusacao. OBS: Acusacao incorreta poderá te eliminar do jogo.\");\n\n\t\t//Adicionando os botoes corretamente no painel\n\t\tthis.playerOptionPanel.add(this.moveButton);\n\t\tthis.playerOptionPanel.add(this.suggestButton);\n\t\tthis.playerOptionPanel.add(this.accuseButton);\n\n\t\t//Incluindo painel em painel maior\n\t\tthis.add(this.playerOptionPanel);\n\t}", "public WeaponPanel() {\n initComponents();\n }", "public void setupPanel() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new ModifiedFlowLayout(FlowLayout.LEFT));\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setOpaque(true);\n\t}", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(firstButton);\n\t\tthis.add(firstField);\n\t}", "private void setupGameOverPanel(){\n\n //Adding the gameOver label to gameOverPanel\n gameOver.setFont(new Font(Font.SERIF, Font.BOLD, 50));\n gameOver.setAlignmentX(Font.CENTER_BASELINE);\n gameOverPanel.add(gameOver);\n\n //Adding the gameOverPanel to fullPanel\n fullPanel.add(gameOverPanel, BorderLayout.NORTH);\n }", "public void fillGamePanel() {\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n gridPanel.add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n }", "private void initializePanels()\r\n\t{\r\n\t\tthis.subscribersPanel = new SubscribersPanel(DIMENSIONS);\r\n\t\tthis.consolePanel = new ConsolePanel(DIMENSIONS);\r\n\r\n\t\tthis.parametersPanel = new ParametersPanel(DIMENSIONS);\r\n\t\tthis.parametersPanel.setSize(DIMENSIONS);\r\n\r\n\t\tthis.mainPanel = new MainPanel(parametersPanel, this);\r\n\t\tthis.mainPanel.setSize(DIMENSIONS);\r\n\r\n\t\tshowParametersPanel();\r\n\t}", "public PlayerPanel(Game game) {\n super(game);\n initComponents();\n setBorder(GUIConstants.PANEL_BORDER);\n cardLabels = new ArrayList<>();\n cardLabels.add(card1Label);\n cardLabels.add(card2Label);\n }", "public void newGame()\n\t{\n\t\tmap = new World(3, viewSize, playerFactions);\n\t\tview = new WorldView(map, viewSize, this);\n\t\tbar = new Sidebar(map, barSize);\n\t}", "public void initPanel() {\n\n puzzlePanel.setVisible(false);\n puzzlePanel = new PuzzlePanel(panelSize);\n\n getContentPane().add(puzzlePanel, BorderLayout.CENTER);\n getContentPane().add(controlPanel, BorderLayout.SOUTH);\n puzzlePanel.setVisible(true);\n\n isWin = false;\n puzzlePanel.setMoveCount(0);\n\n lblMove.setText(\"Jumlah Gerakan: 0\");\n lblTime.setText(\"Waktu: 0 detik\");\n startTime = System.currentTimeMillis();\n\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n while (!isWin) {\n try {\n currentTime = System.currentTimeMillis();\n lblTime.setText(\"Waktu terpakai: \" + ((currentTime - startTime) / 1000)\n + \" detik\");\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n }\n }\n });\n t.start();\n }", "private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}", "public GameView() {\n initComponents();\n gameView(30, 30);\n }", "public GameGUI( RiskGameEngine gameEngine )\n\t{\t\n\t\t//this.setPreferredSize( new java.awt.Dimension( 1000, 800 ) );\n\t\tthis.gameEngine = gameEngine;\n\t\t// START SCREEN INIT\n\t\tthis.startScreenHandler = new StartScreenHandler( gameEngine );\n\t\tthis.startScreen = new StartScreenPanel( startScreenHandler );\n\n\t\t// CREATE PLAYERS SCREEN INIT\n\t\tthis.createPlayersScreenHandler = new CreatePlayersScreenHandler(\n\t\t\t\tthis.gameEngine );\n\t\tthis.createPlayersScreen = new CreatePlayersScreenPanel(\n\t\t\t\tthis.createPlayersScreenHandler );\n\t\t\n\t\t//MAIN MAP SCREEN \n\t\tmapScreenHandler = new MapScreenHandler( gameEngine );\n\t\tmapScreen = new MapScreenPanelTest( mapScreenHandler );\n\t\t\n\t\t/* all panels below are internal frames to the main map screen */\n\t\t//CARD SCREEN \n\t\tcardHandler = new CardScreenHandler( gameEngine );\n\t\tcardScreen = new CardScreenPanel( cardHandler );\n\t\tmapScreen.setCardScreenPanel( cardScreen );\n\t\t\n\t\t//ATTACK SCREEN \n\t\tattackHandler = new AttackScreenHandler( gameEngine );\n\t\tattackScreen = new AttackScreenPanel( attackHandler );\n\t\tmapScreen.setAttackScreenPanel( attackScreen );\n\t\t\n\t\t//FORTIFY SCREEN \n\t\tmoveTroopsHandler = new MoveTroopsScreenHandler( gameEngine );\n\t\tmoveTroopsScreen = new MoveTroopsScreenPanel( moveTroopsHandler );\n\t\tmapScreen.setMoveTroopsScreenPanel( moveTroopsScreen );\n\t\t\n\t\tthis.currentPanel = this.startScreen;\t\n\t\tthis.getContentPane().add( currentPanel );\n\t\tthis.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n\t\t\n\t}", "public DrawPanel( String [ ] args ) \n {\n super();\n // Create the objects you want to display using awt graphical\n // objects. For now, use the wheels-like \"wrapper\" classes,\n // Rectangle, Ellipse, and Line. The Rectangle and Ellipse wrapper\n // classes are minor variations of SmartRectangle and SmartEllipse\n // from the Sanders and van Dam text.\n //\n // References to the objects you create need to be saved in instance\n // variables\n \n rect1 = new Rectangle( Color.BLUE );\n rect1.setLocation( 100, 100 );\n rect1.setSize( 40, 40 );\n \n rect2 = new Rectangle( Color.RED );\n rect2.setLocation( 200, 200 );\n rect2.setSize( 20, 60 );\n \n line1 = new Line();\n line1.setColor( Color.BLACK );\n line1.setPoints( 120, 120, 210, 230 );\n \n ell1 = new Ellipse( Color.CYAN );\n ell1.setLocation( 10, 400 );\n ell1.setSize( 40, 10 );\n \n ell2 = new Ellipse( Color.MAGENTA );\n ell2.setLocation( 400, 400 );\n ell2.setSize( 30, 30 );\n \n line2 = new Line();\n line2.setColor( Color.BLACK );\n line2.setPoints( 25, 405, 415, 415 ); \n \n buggy1 = new Buggy( Color.RED );\n buggy1.setLocation( 450, 300 );\n buggy2 = new Buggy( Color.CYAN);\n buggy2.setLocation( 400, 20 );\n \n recordplayer1 = new RecordPlayer( Color.BLUE );\n recordplayer1.setLocation( 300, 300 );\n \n recordplayer2 = new RecordPlayer( Color.GREEN );\n recordplayer2.setLocation( 200, 300 );\n \n }", "public Game(){\n\t\tDimension size = new Dimension(width * scale, height * scale);\n\t\tsetPreferredSize(size);\n\t\t\n\t\tscreen = new Screen(width, height);//instantiated the new screen\n\t\t\n\t\tframe = new JFrame();\n\t\t\n\t}", "private void fillPanel(){\n\t\t\tcontent.setLayout(new GridLayout(9,1));\n\t\t\tcontent.setBackground(Color.BLACK);\n\t\t\tcontent.add(playerNameLabel);\n\t\t\tcontent.add(playerNameField);\n\t\t\tcontent.add(placeHolder);\n\t\t\tcontent.add(passwordLabel);\n\t\t\tcontent.add(passwordField);\n\t\t\tcontent.add(passwordLabelRepeat);\n\t\t\tcontent.add(passwordFieldRepeat);\n\t\t\tcontent.add(placeHolder2);\n\t\t\tcontent.add(createButton);\t\n\t\t}", "@Override\n public void setupPanel()\n {\n\n }", "GamePanel(PBG g) {\n setPreferredSize(new Dimension(PBG.DIMENSION1, PBG.DIMENSION2));\n setBackground(Color.GRAY);\n this.game = g;\n }", "public void startGame(){\r\n mainPanel.removeAll();\r\n panelDraw.Startlevel();\r\n mainPanel.add(panelDraw, BorderLayout.CENTER);\r\n mainPanel.add(panelInforound, BorderLayout.WEST);\r\n \r\n repaint();\r\n revalidate();\r\n }", "public DrawPanel() {\n initComponents();\n }", "private void setUpPanel() {\n this.panel = new JPanel();\n functions = new JPanel();\n panel.setPreferredSize(new Dimension(Screen.screenWidth, Screen.screenHeight));\n\n int borderBottom = Screen.screenHeight / 8;\n if (Screen.screenHeight > 1400) {\n borderBottom = Screen.screenHeight / 7;\n }\n\n panel.setBorder(BorderFactory.createEmptyBorder(80, Screen.border, borderBottom, Screen.border));\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n functions.setPreferredSize(new Dimension(600, 500));\n functions.setLayout(cardLayout);\n }", "private void setUpGame() {\n\t\tsetUpBlocks();\n\t\tsetUpBall();\n\t\tsetUpPaddle();\n\t\taddMouseListeners();\n\t}", "private void constructLevel(int level){\n gamePanel.removeAll();\n GridLayout layout = new GridLayout(grid.length,grid[0].length);\n gamePanel.setLayout(layout);\n gamePanel.setBackground(Color.BLACK);\n gamePanel.setFocusable(true);\n gamePanel.requestFocusInWindow();\n gamePanel.updateUI();\n }", "public TPanel(final Board theBoard) {\r\n super();\r\n myBoard = theBoard;\r\n myGameOver = false;\r\n myGamePaused = false;\r\n }", "private void initPanelDeck() {\r\n\t\tgsp.panelDeck = gsp.createPanel(100, 50, 50, 50, 0, 0, 400, 350);\r\n\t\t\r\n\t\tgsp.buttonDeck = new JButton();\r\n\t\tgsp.setImageIcon(\"Deck\", gsp.buttonDeck);\r\n\t\t\r\n\t\tgsp.labelLastCard = new JLabel();\r\n\t\tgsp.updateLastCardView();\r\n\t\t\r\n\t\tgsp.panelDeck.add(gsp.buttonDeck);\r\n\t\tgsp.panelDeck.add(gsp.labelLastCard);\r\n\t}", "private void setPanel(final Panel PANEL)\r\n\t{\r\n\t\tthis.panel = PANEL;\r\n\t}", "public BoardPanel() {\n\t\t\tfinal Dimension size = new Dimension(600, 600);\n\t\t\tsetSize(size);\n\t\t\tsetPreferredSize(size);\n\t\t\t\n\t\t\taddMouseListener(new ClickHandler());\n\t\t}", "public Panel() {\n }", "public void startGame() {\r\n\t\t\r\n\t\tmultiplayerPanel.setVisible(false);\r\n\t\tif(waitingPanel != null) waitingPanel.setVisible(false);\r\n\t\tmultiplayerPanel.removeAll();\r\n\t\t\r\n\t\tgameSetupMultiplayer();\r\n\t\t\r\n\t\t\r\n\t}", "public void createMainGame() {\n\t\tpanelIntro.setVisible(false);\n\t\tintroButtonPanel.setVisible(false);\n\t\t\n\t\tpanelMain = new JPanel();\n\t\t\n\t\tcon.add(panelMain);\n\t\t\n\t\tplayerPanel = new JPanel();\n\t\tplayerPanel.setBounds(50, 25, 924, 50);\n\t\tplayerPanel.setBackground(Color.DARK_GRAY);\n\t\tplayerPanel.setLayout(new GridLayout(1,4));\n\t\tpanelMain.add(playerPanel);\n\t\tcon.add(playerPanel);\n\t\t\n\t\tenergyLabel = new JLabel(\" Energie: \");\n\t\tenergyLabel.setFont(playerInfo);\n\t\tenergyLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabel);\n\t\t\n\t\tenergyLabelNumber = new JLabel();\n\t\tenergyLabelNumber.setFont(playerInfo);\n\t\tenergyLabelNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(energyLabelNumber);\n\t\t\n\t\tdoubtLevelLabel = new JLabel(\"Misstrauen: \");\n\t\tdoubtLevelLabel.setFont(playerInfo);\n\t\tdoubtLevelLabel.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(doubtLevelLabel);\n\t\t\n\t\tdLLNumber = new JLabel();\n\t\tdLLNumber.setFont(playerInfo);\n\t\tdLLNumber.setForeground(Color.LIGHT_GRAY);\n\t\tplayerPanel.add(dLLNumber);\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\tplayerPanel.add(Box.createRigidArea(new Dimension(50, 50)));\n\t\t\n\t\tbirdText = new JTextArea();\n\t\tbirdText.setBackground(Color.BLACK);\n\t\tbirdText.setFont(dialogueText);\n\t\tbirdText.setForeground(Color.white);\n\t\tbirdText.setLineWrap(true);\n\t\tbirdText.setWrapStyleWord(true);\n\t\tbirdText.setBounds(354, 200, 250, 150);\n\t\tbirdText.setVisible(false);\n\t\tcon.add(birdText);\n\t\t\n\t\tbirdPanel = new JPanel();\n\t\tbirdPanel.setBounds(354, 387, 60, 82);\n\t\tbirdPanel.setBackground(Color.BLACK);\n\t\tbirdPanel.addMouseListener(new birdListener());\n\t\ttry {\n\t\t\tBufferedImage birdPicture = ImageIO.read(new File(\".//res//bird_kleiner.jpg\"));\n\t\t\tJLabel birdLabel = new JLabel(new ImageIcon(birdPicture));\n\t\t\tbirdPanel.add(birdLabel);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tcon.add(birdPanel);\n\t\t\n\t\thereComesTheText = new JTextArea();\n\t\thereComesTheText.setBounds(55, 100, 285, 370);\n\t\thereComesTheText.setBackground(Color.BLACK);\n\t\thereComesTheText.setForeground(Color.LIGHT_GRAY);\n\t\thereComesTheText.setFont(dialogueText);\n\t\thereComesTheText.setLineWrap(true);\n\t\thereComesTheText.setWrapStyleWord(true);\n\t\tpanelMain.add(hereComesTheText);\n\t\tcon.add(hereComesTheText);\n\t\t\n\t\timagePanel.setBounds(427, 95, 546, 375);\n\t\timagePanel.setBackground(Color.black);\n\t\tpanelMain.add(imagePanel);\n\t\tcon.add(panelMain);\n\t\t\n\t\timagePanel.add(imageLabel);\n\t\t\n\t\tcon.add(imagePanel);\n\t\t\n\t\tpanelButtons = new JPanel();\n\t\tpanelButtons.setBounds(50, 510, 924, 200);\n\t\tpanelButtons.setBackground(Color.black);\n\t\tpanelButtons.setLayout(new GridLayout(2, 2));\n\t\tcon.add(panelButtons);\n\t\t\n\t\tfor(int i=1; i<5; i++) {\n\t\t\tbuttons.get(i).setBackground(Color.black);\n\t\t\tbuttons.get(i).setForeground(Color.LIGHT_GRAY);\n\t\t\tbuttons.get(i).setFont(runningText);\n\t\t\tbuttons.get(i).setFocusPainted(false);\n\t\t\tpanelButtons.add(buttons.get(i));\n\t\t}\n\t}", "@Override\n public void run(){\n Settings.setGameSettings(new Player(0,Color.RED,1800, \"Player 1\",true),\n new Player(1,Color.BLUE,1800, \"Player 2\",false),1800,25);\n MenuFrame menuFrame = new MenuFrame();\n }", "public void startGame() \n\t{\n\t\tgamePanel.startGame();\n\t}", "public Panel() {\n initComponents();\n\n\n }", "public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }", "public BuildingsPanel() {\n \n player = Player.getInstance();\n buttons = new JButton[8];\n structureData = new Building[10];\n \n initComponents();\n init();\n }", "public void initGame() {\n\t\ttoolbar = new Toolbar();\n\t\ttoolbar.setButtonListener(this);\n\t\tadd(toolbar, BorderLayout.NORTH);\n\n\t\t// setup & add board\n\t\tboard = new Board();\n\t\tadd(board, BorderLayout.CENTER);\n\n\t\t// jframe setup\n\t\tsetSize(Constants.BOARD_WIDTH, Constants.BOARD_HEIGHT);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "private void initPanels() {\r\n\t\r\n\tpanel = new JPanel();\r\n\tpanel.setBounds(0, 0, ScreenSize.WIDTH + 25, ScreenSize.HEIGHT + 50);\r\n\tpanel.setLayout(new BorderLayout());\r\n\tpanel.addComponentListener(this);\r\n\r\n\tbord = new BordPanel();\r\n\tbord.setBounds(0 ,0 ,ScreenSize.WIDTH, ScreenSize.HEIGHT);\r\n\tbord.setOpaque(true);\r\n\r\n\tlabel = new JLabel();\r\n\tlabel.setText(\"Text\");\r\n\r\n\tpanel.add(label, BorderLayout.SOUTH);\r\n\tpanel.add(bord, BorderLayout.CENTER);\r\n\t\r\n\tframe.add(panel);\r\n }", "public HomePanel() {\n initComponents();\n setTime();\n }", "public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}", "public Game() {\n\t\tsuper();\n\t\tgameModel = new GameModel();\n\t\tview = new GamePane(gameModel);\n\t\t\n\t\tadd(view);\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t}", "public GameFrame() {\n initComponents();\n setTitle(\"Ultra Generic Tower Defence by Jorzi\");\n }", "public void gameSetupMultiplayer() {\r\n\t\t\r\n\t\tmultiplayerScreen = new MultiplayerScreen(this, playerNumber, playerIndex ); \r\n\t\t\r\n\t\t// creo giocatore\r\n\t\tfor (int i=0; i<playerNumber; i++) {\r\n\t\t\tplayers.add(new Player());\r\n\r\n\t\t}\t\r\n\t\tmultiplayerScreen.addPlayers(players); //creazione schermo di gioco multiplayer\r\n\t\t\r\n\t\tmultiplayerScreen.setMusic(music);\r\n\t\t\r\n\t\tmultiplayerScreen.setLevel(level);\r\n\t\t\r\n\t\tclient.startThread(multiplayerScreen);\r\n\t\t\r\n\t\tgameFrame.add(multiplayerScreen);\r\n\t\tgameFrame.requestFocusInWindow();\r\n\r\n\t\t// aggiungo controllo da tastiera\r\n\t\tgameFrame.addKeyListener(players.get(playerIndex).getInputHandler());\r\n\t\tgameFrame.pack();\r\n\t\tgameFrame.setVisible(true);\r\n\t\t\t\t\r\n\t\t// avvio ciclo di gioco\r\n\t\tnew Thread(multiplayerScreen).start();\r\n\t\tmultiplayerScreen.setVisible(true);\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "public void initBoardPanel() {\n boardPanel = new BoardPanel(this.boardModel);\n this.add(boardPanel, BorderLayout.CENTER);\n this.pack();\n this.revalidate();\n\n boardPanel.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent me) {\n System.out.println(\"x:\" + me.getX() + \" y:\" + me.getY());\n int x = me.getX();\n int y = me.getY();\n\n // TODO Refactor into a method of BoardPanel\n int col = x / 20;\n int row = y / 20;\n\n if (whoseTurn.get() == localPlayer) {\n Move move = new Move(row, col, localPlayer);\n if (boardModel.checkMoveEligible(move) == true) {\n try {\n nextMove.put(move);\n } catch (InterruptedException ex) {\n Logger.getLogger(GameFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n System.out.println(\"Move \" + row + \" \" + col);\n }\n }\n }\n });\n\n boardPanel.startTimer();\n }", "public GamePanel(Context context) {\n super(context);\n\n getHolder().addCallback(this); //adds callback to surfaceholder to intercept events\n\n thread = new MainThread(getHolder(), this); //initialise main thread\n\n setFocusable(true); //set game panel to focusable\n }", "public GameControlsPanel(GameFrame game, World world) {\n super();\n setLayout(new FlowLayout());\n this.world = world;\n this.game = game;\n populateControlPanel();\n }", "private void makeGamePanel(int s, int b){\n GamePanel gp = new GamePanel(s, b, this);\n scoreSign = new JLabel(\"Flags: \" + b);\n scoreSign.setBounds(70,0, 500, 100);\n scoreSign.setFont(new Font(Font.MONOSPACED, Font.BOLD, 25));\n scoreSign.setForeground(new Color(64, 210, 75));\n scoreSign.setBackground(new Color(0,0,0));\n scoreSign.setOpaque(true);\n scoreSign.setHorizontalAlignment(JLabel.CENTER);\n\n this.getContentPane().removeAll();\n this.add(scoreSign, BorderLayout.PAGE_START);\n this.add(gp, BorderLayout.CENTER);\n this.revalidate();\n this.repaint();\n }", "@Override\r\n public void setup(Panel panel) {\n }", "private JPanel setUpOtherPlayersPanel(List<Player> otherPlayers) {\n otherPlayersPanel = new JPanel();\n otherPlayersPanel.setLayout(new BoxLayout(otherPlayersPanel, BoxLayout.Y_AXIS));\n \n otherPlayerProperties = new JPanel();\n otherPlayerProperties = setUpOtherPlayerAssets(otherPlayers.get(0));\n \n return otherPlayersPanel;\n }", "public GameView(ClientWindow window) {\n super(\"game\", window);\n initComponents();\n \n \n this.gamePanel = new GamePanel(this);\n add(gamePanel, BorderLayout.CENTER);\n \n this.chatPanel = new ChatPanel(this);\n add(chatPanel, BorderLayout.SOUTH);\n \n this.scoreboardPanel = new ScoreboardPanel();\n add(scoreboardPanel, BorderLayout.WEST);\n }", "public static void setupNewGamePlay() {\r\n\t\tSTATUS = Gamestatus.PREPARED;\r\n\t\tGameplay.getInstance().start();\r\n\t\tgui.setMenu(new GameplayMenu(), true);\r\n\t}", "protected void initGameWindow(){\r\n \r\n // Erstellt das GameGrid\r\n this.gg_grid = new GameGrid();\r\n this.gg_grid.setBounds(this.xCoordGrid, this.yCoordGrid, this.widthGrid, this.heightGrid);\r\n this.gg_grid.addMouseListener(this);\r\n //Add game logic\r\n this.gg_logic = new GameLogic(gg_grid);\r\n this.gg_logic.drawLogic();\r\n // Erstellt das Steuerungs-Panel\r\n this.gg_panel = new JPanel();\r\n this.gg_panel.setBounds(this.xCoordPanel, this.yCoordPanel, this.widthPanel, this.heightPanel); \r\n // Erstellt die anderen Komponenten\r\n // Buttons + ActionListener\r\n this.gg_start = new JButton(\"Start\");\r\n this.gg_start.addActionListener(this);\r\n \r\n this.gg_stop = new JButton(\"Stop\");\r\n this.gg_stop.addActionListener(this);\r\n \r\n this.gg_reset = new JButton(\"Reset\");\r\n this.gg_reset.addActionListener(this);\r\n \r\n // Sliders + SliderDesign + ChangeListener\r\n this.gg_velocity = new JSlider(JSlider.HORIZONTAL, 0, 2, 1);\r\n this.gg_velocity.setMajorTickSpacing(1);\r\n this.gg_velocity.setPaintTicks(true);\r\n this.gg_velocity.addChangeListener(this);\r\n \r\n this.gg_groesse = new JSlider(JSlider.HORIZONTAL, 0, 2, 1);\r\n this.gg_groesse.setMajorTickSpacing(1);\r\n this.gg_groesse.setPaintTicks(true);\r\n this.gg_groesse.addChangeListener(this);\r\n \r\n // Fügt die Komponenten dem JPanel hinzu\r\n this.gg_panel.add(new JLabel(\"Langsam\"));\r\n this.gg_panel.add(gg_velocity);\r\n this.gg_panel.add(new JLabel(\"Schnell\"));\r\n this.gg_panel.add(gg_start);\r\n this.gg_panel.add(gg_stop);\r\n this.gg_panel.add(gg_reset);\r\n this.gg_panel.add(new JLabel(\"Klein\"));\r\n this.gg_panel.add(gg_groesse);\r\n this.gg_panel.add(new JLabel(\"Groß\"));\r\n \r\n // Fügt JCanvas+JPanel dem JFrame hinzu\r\n this.getContentPane().add(gg_grid);\r\n this.getContentPane().add(gg_panel);\r\n \r\n this.gg_grid.fillCell(5, 5);\r\n \r\n this.pack();\r\n }", "public GamePanel(int width, int height, int amount, int size) {\n\t\tsuper(); // calls and instance of JPanel (super class)\n\t\tthis.boxSize = size;\n\t\tthis.panelWidth = width;\n\t\tthis.panelHeight = height;\n\t\tcountDown.setText(\"Game Starting in 5 Seconds!\");\n\t\tadd(countDown);\n\t\tadd(score);\n\t\tadd(time);\n\t\tcreateTokens(amount);// call upon the createTokens method to create the number of desired tokens\n\t\tmouseActions();\n\t\tupdate();\n\t\t\n\t\t //calls the mouseActions class to identify the mouse actions\n\t}", "public LetsPlayGUI() {\n super(\"Let's Play!\");\n initComponents();\n setCardLayouts();\n showSplashPanel();\n }", "private void createUIComponents() {\n JFrame frame = new JFrame(\"labyrinth\");\n myFrame = frame;\n //myLayout = new CardLayout();\n mainPanel = new JPanel(new CardLayout());\n\n\n menuPanel = new JPanel();\n startGamePanel = new JPanel();\n optionsPanel = new JPanel();\n helpPanel = new JPanel();\n generatorPanel = new JPanel();\n simpleGamePanel = new JPanel();\n classicGamePanel = new JPanel();\n\n\n //mainPanel.add(menuPanel,\"menu\");\n //mainPanel.add(startGamePanel,\"startgame\");\n //mainPanel.add(optionsPanel,\"options\");\n //mainPanel.add(generatorPanel,\"generate\");\n //mainPanel.add(simpleGamePanel,\"game\");\n\n //simpleGameMapPanel = new MapPanel(myFrame, mainPanel);\n simpleGameMapPanel = new SimpleGamePanel(myFrame, simpleGamePanel);\n classicGameMapPanel = new ClassicGamePanel(myFrame, classicGamePanel);\n generateMapPanel = new MapPanel(myFrame, generateMapPanel);\n\n\n\n classicGameMapPanel.addMouseListener(new MouseListener() {\n @Override\n public void mouseClicked(MouseEvent e) {\n if(SwingUtilities.isRightMouseButton(e)){\n if(myMode == MainWindowMode.CLASSICGAME) {\n ((ClassicGamePanel) classicGameMapPanel).stopDragMiniMap();\n return;\n }\n }\n if(SwingUtilities.isLeftMouseButton(e)) {\n if(myMode == MainWindowMode.CLASSICGAME){\n ClassicGamePanel classicGamePanel = (ClassicGamePanel) classicGameMapPanel;\n if(classicGamePanel.isDragMiniMap()){\n Point point = e.getPoint();\n classicGamePanel.tryAddMiniMap(point);\n }\n }\n }\n }\n\n @Override\n public void mousePressed(MouseEvent e) {\n mouseClicked(e);\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n\n }\n });\n\n\n frame.setFocusable( true );\n frame.addKeyListener(new KeyAdapter() {\n @Override\n public void keyPressed(KeyEvent e) {\n //System.out.println(e.getKeyCode());\n if(myMode == MainWindowMode.SIMPLEGAME) {\n ((MapPanelBase) simpleGameMapPanel).keyPressed(e);\n } else if(myMode == MainWindowMode.CLASSICGAME){\n ((MapPanelBase) classicGameMapPanel).keyPressed(e);\n }\n }\n });\n\n URL labyrinthFile = getClass().getResource(\"/labyrinth.png\");\n try {\n final Image image = ImageIO.read(labyrinthFile);\n helpLabyrinthPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, null);\n }\n };\n helpLabyrinthPanel.setPreferredSize(new Dimension(-1, image.getHeight(null) + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpLabyrinthPanel = new JPanel();\n }\n\n URL mainScreenFile = getClass().getResource(\"/main_screen.png\");\n try {\n final Image image = ImageIO.read(mainScreenFile);\n helpMainScreenPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, null);\n }\n };\n helpMainScreenPanel.setPreferredSize(new Dimension(-1, image.getHeight(null) + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpMainScreenPanel = new JPanel();\n }\n\n\n URL minotaurFile = getClass().getResource(\"/minotaur.png\");\n try {\n final Image image = ImageIO.read(minotaurFile);\n helpObjectsPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, null);\n int imageWidth = image.getWidth(null);\n int imageHeight = image.getHeight(null);\n g.setColor(Color.BLACK);\n Graphics2D g2d = (Graphics2D) g;\n FontMetrics fm = g2d.getFontMetrics();\n String text = \"minotaurs are guards of labyrinth, they will kill you if you will step on them. After that you will lose all your equipment and respawn into the hospital\";\n g2d.drawString(text, 3*imageWidth/2, fm.getAscent());\n\n g.setColor(Color.BLUE);\n text = \"A\";\n g2d.drawString(text, imageWidth/2, imageHeight + fm.getAscent());\n g.setColor(Color.BLACK);\n text = \"you can take new bullets in the arsenal. It is guaranted, that you can find a way from hospital to arsenal without minotaurs\";\n g2d.drawString(text, 3*imageWidth/2, imageHeight + fm.getAscent());\n g.setColor(Color.RED);\n int hlength = imageWidth*3/4;\n int hwidth = imageWidth*1/4;\n g2d.fillRect(imageWidth/2 - hlength/2, 5*imageHeight/2 - hwidth/2 , hlength, hwidth);\n g2d.fillRect(imageWidth/2 - hwidth/2, 5*imageHeight/2 - hlength/2 , hwidth, hlength);\n g.setColor(Color.BLACK);\n text = \"you will respawn in the hospital after every accident\";\n g2d.drawString(text, 3*imageWidth/2, 2*imageHeight + fm.getAscent());\n\n int radius = imageWidth/3;\n g2d.fill(new Ellipse2D.Double(imageWidth/2 - radius, 7*imageHeight/2 - radius, 2*radius, 2*radius));\n text = \"portal will teleport you to another determined portal somwhere in the labyrinth. All portals are connected into the cycle\";\n g2d.drawString(text, 3*imageWidth/2, 3*imageHeight + fm.getAscent());\n }\n };\n helpObjectsPanel.setPreferredSize(new Dimension(-1, image.getHeight(null)*4 + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpObjectsPanel = new JPanel();\n }\n\n URL pickFile = getClass().getResource(\"/pick_mini_map.png\");\n URL putFile = getClass().getResource(\"/put_mini_map.png\");\n try {\n final Image pickImage = ImageIO.read(pickFile);\n final Image putImage = ImageIO.read(putFile);\n helpCollectMapPanel = new JPanel(){\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(pickImage, 0, 0, null);\n g.drawImage(putImage, this.getWidth()/2, 0, null);\n }\n };\n helpCollectMapPanel.setPreferredSize(new Dimension(-1, pickImage.getHeight(null) + 20));\n } catch (IOException e) {\n e.printStackTrace();\n helpCollectMapPanel = new JPanel();\n }\n }", "public abstract void init(JPanel panel);", "private void createGameMode() {\n GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n Rectangle fullScreenBounds = ge.getDefaultScreenDevice().getDefaultConfiguration().getBounds();\n boolean fs = ge.getDefaultScreenDevice().isFullScreenSupported();\n \n setTitle(gameName);\n setName(gameName);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n \n map = new UAVMap(this, UAVModes.GAME, fs);\n \n if (fs) {\n fullScreen = new Window(this);\n fullScreen.add(map.getCanvas());\n ge.getDefaultScreenDevice().setFullScreenWindow(fullScreen);\n } else {\n this.setSize((int)(.9 * fullScreenBounds.width), (int)(.9 * fullScreenBounds.height));\n this.setLocation(fullScreenBounds.x + (int) (.05 * fullScreenBounds.width), \n fullScreenBounds.y + (int) (.05 * fullScreenBounds.height));\n Container content = getContentPane();\n content.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n c.fill = GridBagConstraints.BOTH;\n c.weightx = 1;\n c.weighty = 1;\n content.add(map.getCanvas(), c);\n setVisible(true);\n }\n map.initializeGame();\n map.startTimer(); \n }", "public void setNewMultiPlayerGameScreen() {\n clearAllContent();\n add(SelectGameScreen.create(controller));\n pack();\n }", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "public SettingsPanel() {\n initComponents();\n }", "public void updateGamePanel() {\n\t\tthis.removeAll();\n\t\t\n\t\tButton2 buttonTip = new Button2(\"DICA\", 75, 100, 100, 100);\n\t\tbuttonTip.addActionListener(e -> Controller.game.showTip());\n\t\tthis.add(buttonTip);\n\t\t\n\t\tButton2 menu = new Button2(\"Menu\", 200, 100, 100, 100);\n\t\tmenu.addActionListener(e -> this.frame.setVisible(\"menu\"));\n\t\tthis.add(menu);\n\t\t\n\t\tthis.drawButtons();\n\t\t\n\t\t//Adding labels\n\t\tthis.add(frame.getWordShow());\n\t\tthis.add(frame.getLifeShow());\n\t\t\n\t\tthis.frame.add(this);//Adding the gameJPanel to the frame\n\t}", "private void initializePanels() {\n queueInfoPanel.setBackground(new Color(236, 125, 51));\n queueButtonsPanel.setBackground(new Color(93, 118, 161));\n createLabelForPanel(queueInfoPanel);\n createButtonsForPanel(queueButtonsPanel);\n }", "private void initComponents()\n {\n\n gamePanel = new java.awt.Panel();\n livesLabel = new java.awt.Label();\n startButton = new java.awt.Button();\n timeLabel = new java.awt.Label();\n resetButton = new java.awt.Button();\n livesTextField = new java.awt.TextField();\n timeTextField = new java.awt.TextField();\n youWinLabel = new java.awt.Label();\n gameOverLabel = new java.awt.Label();\n\n setMinimumSize(new java.awt.Dimension(720, 410));\n addWindowListener(new java.awt.event.WindowAdapter()\n {\n public void windowClosing(java.awt.event.WindowEvent evt)\n {\n exitForm(evt);\n }\n });\n setLayout(null);\n\n gamePanel.setBackground(java.awt.Color.cyan);\n gamePanel.addKeyListener(new java.awt.event.KeyAdapter()\n {\n public void keyPressed(java.awt.event.KeyEvent evt)\n {\n keyPressedHandler(evt);\n }\n });\n add(gamePanel);\n gamePanel.setBounds(10, 10, 700, 320);\n\n livesLabel.setText(\"Lives Remaining:\");\n add(livesLabel);\n livesLabel.setBounds(570, 370, 100, 20);\n livesLabel.getAccessibleContext().setAccessibleName(\"Lives Remaining:\");\n\n startButton.setLabel(\"Start Game\");\n startButton.addMouseListener(new java.awt.event.MouseAdapter()\n {\n public void mouseClicked(java.awt.event.MouseEvent evt)\n {\n startButtonHandler(evt);\n }\n });\n add(startButton);\n startButton.setBounds(10, 340, 90, 24);\n\n timeLabel.setText(\"Current Time:\");\n add(timeLabel);\n timeLabel.setBounds(590, 340, 80, 20);\n\n resetButton.setLabel(\"Reset Game\");\n resetButton.addMouseListener(new java.awt.event.MouseAdapter()\n {\n public void mouseClicked(java.awt.event.MouseEvent evt)\n {\n resetButtonHandler(evt);\n }\n });\n add(resetButton);\n resetButton.setBounds(10, 370, 90, 24);\n\n livesTextField.setEditable(false);\n add(livesTextField);\n livesTextField.setBounds(670, 370, 40, 20);\n\n timeTextField.setEditable(false);\n add(timeTextField);\n timeTextField.setBounds(670, 340, 40, 20);\n\n youWinLabel.setFont(new java.awt.Font(\"Dialog\", 3, 24)); // NOI18N\n youWinLabel.setForeground(new java.awt.Color(0, 255, 0));\n youWinLabel.setText(\"You Win!\");\n youWinLabel.setVisible(false);\n add(youWinLabel);\n youWinLabel.setBounds(100, 330, 110, 30);\n\n gameOverLabel.setFont(new java.awt.Font(\"Dialog\", 3, 24)); // NOI18N\n gameOverLabel.setForeground(new java.awt.Color(255, 0, 0));\n gameOverLabel.setText(\"You Lose...\");\n gameOverLabel.setVisible(false);\n add(gameOverLabel);\n gameOverLabel.setBounds(100, 360, 130, 30);\n\n pack();\n }", "public Game(){\n\t\tDimension dimension = new Dimension(Game.WIDTH, Game.HEIGHT); //Create dimensions for window size\n\t\tsetPreferredSize(dimension); //Set the start size\n\t\tsetMinimumSize(dimension); //Set the min size\n\t\tsetMaximumSize(dimension); //Set the max size, this locks the window size.\n\t\taddKeyListener(this); //Add the key listener to the game object\n\t\tlevel1(); //Load level 1\n\t\twinScreen = new WinScreen(); //Create win object\n\t\tdeadScreen = new DeadScreen(); //Create dead object\n\t\tstartScreen = new StartScreen(); //Create startScreen object\n\t\tpauseScreen = new PauseScreen(); //Create pauseScreen object\n\t\tspriteSheet = new SpriteSheet(\"img/sprites.png\"); //Create SpriteSheet object\n\t\tnew Texture(); //Initialize texture object\n\t}", "public GameController() {\n \t\t// Fill the table empty positions.\n \t\tfor (int i = 0; i < MAX_NUMBER_OF_PILES; i++) {\n \t\t\tmTable.add(i, null);\n \t\t}\n \t\tcreateDeck();\n \t\tgs = new GameState(mTable, pileNames, pileNo);\n \t\tnew Listener(this);\n \t}", "public MyFrame() {\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n /**Creating ContentPane on which the JPanels are attached**/\n\n contentPane = new JPanel();\n setContentPane(contentPane);\n c = new CardLayout();\n contentPane.setLayout(c);\n\n loginPanel = new LoginPanel();\n contentPane.add(loginPanel, LOGIN);\n\n menuPanel = new MenuPanel();\n contentPane.add(menuPanel, MENU);\n\n deleteGamePanel = new DeleteGamePanel();\n contentPane.add(deleteGamePanel, DELETE);\n\n highScorePanel = new HighScorePanel();\n contentPane.add(highScorePanel, HIGHSCORE);\n\n playSnakePanel = new PlaySnakePanel();\n contentPane.add(playSnakePanel, PLAY);\n\n joinGamePanel = new JoinGamePanel();\n contentPane.add(joinGamePanel, JOIN);\n\n createGamePanel = new CreateGamePanel();\n contentPane.add(createGamePanel, CREATE);\n\n createdGamesPanel = new CreatedGamesPanel();\n contentPane.add(createdGamesPanel, MYGAMES);\n\n userScoresPanel = new UserScoresPanel();\n contentPane.add(userScoresPanel, SCORES);\n\n\n /**makes sure that JFrame will be visible when starting program**/\n setVisible(true);\n /**cannot rezise the frame**/\n setResizable(false);\n /**Setting the title on the frame**/\n setTitle(\"TheSnakeGame\");\n\n /**setting the bounds of the frame**/\n setBounds(300, 125, (int) SIZE.getWidth(), (int) SIZE.getHeight());\n\n }", "private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }", "public JPanelStartMafiaGame() {\n initComponents();\n\n }", "public PanelLogin() {\n initComponents(); \n SetWallpaper sw = new SetWallpaper();\n sw.SetWallpaper400x300(wall2);\n }", "public Game() {\n initComponents();\n }", "private void newGame()\r\n {\r\n //close the current screen\r\n screen.dispose();\r\n //start back at the set up menu\r\n SetupView screen = new SetupView();\r\n SetupController controller = new SetupController(screen);\r\n screen.registerObserver(controller);\r\n }", "public void setup() {\r\n\t\thumanCardsPanel.setHumanCards(players.get(0).getCards());\r\n\t\tfor ( Player p : players ) {\r\n\t\t\tp.setBoard(board);\r\n\t\t\tp.setGame(this);\r\n\t\t}\r\n\t\tboard.setGame(this);\r\n\t\tboard.repaint();\r\n\t\tJOptionPane popup = new JOptionPane();\r\n\t\tString message = \"You are Miss Scarlet. Press Next Player to begin.\\n Hint: Use File > Detective Notes to help you win!\";\r\n\t\tpopup.showMessageDialog(this, message, \"Welcome to Clue!\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "private void setupButtonPanel() {\n\n Dimension btnSize = new Dimension(100, 50);\n\n exitButton = new JButton(\"Exit\");\n playAgainButton = new JButton(\"Play Again\");\n\n exitButton.setPreferredSize(btnSize);\n playAgainButton.setPreferredSize(btnSize);\n\n buttonPanel.add(playAgainButton);\n buttonPanel.add(exitButton);\n fullPanel.add(buttonPanel, BorderLayout.SOUTH);\n\n playAgainButton.addActionListener(actionEvent -> {\n GameOver.this.dispose();\n new MainScreen();\n });\n exitButton.addActionListener(actionEvent -> System.exit(0));\n }", "public static void newGame(){\n\t\tsetUp.buildBoard(8,8);\n\t\tfor(int i = 0; i < boardBoundsRow * boardBoundsColumn; i++){\n\t\t\tJPanel selectedTile = (JPanel) userInterface.boardButtons.getComponent(i);\n\t\t\tselectedTile.removeAll();\n\t\t\tselectedTile.revalidate();\n\t\t}\n\t\tuserInterface.addBlackPiece();\n\t\tuserInterface.addWhitePiece();\n\t\tuserInterface.check.setText(\"You are not in check\");\n\t\tking.blackKingCheck = false;\n\t\tking.whiteKingCheck = false;\n\t\tturn = \"white\";\n\t\tString playerTurn = \"Player turn: \";\n\t\tuserInterface.turn.setText(playerTurn.concat(turn));\n\t\tundoMoveClass.clearStacks();\n\t}", "public MainMenuPanel() {\n\t\tinitComponents();\n\t}", "public WithdrawPanel() {\n initComponents();\n }", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myBoard = new Board();\r\n myBoard.addObserver(this);\r\n myTimer = new Timer(DEFAULT_TIMER_SPEED, new TimerListener(myBoard));\r\n myGamePanel = new TetrisPanel(myBoard);\r\n myNextPiecePanel = new NextPiecePanel(myBoard);\r\n myScorePanel = new ScorePanel(myBoard, myTimer, DEFAULT_TIMER_SPEED);\r\n myInfoPanel = new InfoPanel();\r\n myGamePaused = false;\r\n myGameOver = false;\r\n myPlayer = null;\r\n\r\n final MyKeyAdapter handler = new MyKeyAdapter();\r\n myFrame.addKeyListener(handler);\r\n }", "private JPanel setUpCurrentPlayerPanel(Player player) {\n if (currentPlayerDealPanel != null) {\n currentPlayerDealPanel.removeAll();\n } else {\n currentPlayerDealPanel = new JPanel();\n }\n currentPlayerDealPanel.setLayout(new BoxLayout(currentPlayerDealPanel,\n BoxLayout.Y_AXIS));\n currentPlayerDealPanel.add(setUpDealMakerPanel(player));\n return currentPlayerDealPanel;\n }", "public void setUpGame() {\n\t\tGameID = sql.getTheCurrentGameID() + 1;\r\n\t\tSystem.err.println(GameID);\r\n\t\ttheModel.shuffleDeck();\r\n\t\ttheModel.createPlayers();\r\n\t\ttheModel.displayTopCard();\r\n\t\t// theModel.chooseFirstActivePlayer();\r\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t\t// Set your level dimensions.\n\t\t// Note that rows and columns cannot exceed a size of 16\n\t\tsetDimensions(4, 4);\n\t\t\n\t\t// Select your board type\n\t\tsetBoardType(BoardType.CHECKER_BOARD);\n\n\t\t// Select your grid colors.\n\t\t// You need to specify two colors for checker boards\n\t\tList<Color> colors = new ArrayList<Color>();\n\t\tcolors.add(new Color(255, 173, 179, 250)); // stale blue\n\t\tcolors.add(new Color(255, 255, 255, 255)); // white\n\t\tsetColors(colors);\n\t\t\n\t\t// Specify the level's rules\n\t\taddGameRule(new DemoGameRule());\n\t\t\n\t\t// Retrieve player IDs\n\t\tList<String> playerIds = getContext().getGame().getPlayerIds();\n\t\tString p1 = playerIds.get(0);\n\t\tString p2 = playerIds.get(1);\n\n\t\t// Add your entities to the level's universe\n\t\t// using addEntity(GameEntity) method\n\t\taddEntity(new Pawn(this, p1, EntityType.BLACK_PAWN, new Point(0, 0)));\n\t\taddEntity(new Pawn(this, p2, EntityType.WHITE_PAWN, new Point(3, 3)));\n\t}", "public Game()\n\t{\n\t\tsetSize(Main.FRAMEWIDTH, Main.FRAMEHEIGHT);\n\t\taddMouseListener(mouse);\n\t\taddMouseMotionListener(mouse);\n\t\taddKeyListener(key);\n\t\taddMouseWheelListener(mouse);\n\t\tsetFocusable(true);\n\t\t//setVisible(false);\n\t\t\n\t\tengine.start();\n\t}" ]
[ "0.7464904", "0.7335825", "0.7136817", "0.70544374", "0.70309466", "0.7026173", "0.6949695", "0.68347716", "0.6750297", "0.6732979", "0.67209035", "0.6719332", "0.66270816", "0.6561462", "0.6555632", "0.65385264", "0.6535654", "0.6519092", "0.6504294", "0.6497267", "0.6488455", "0.64559203", "0.6455676", "0.6439805", "0.6429756", "0.6426514", "0.6403405", "0.63992673", "0.6395116", "0.63848686", "0.63796157", "0.63626075", "0.6346477", "0.63348436", "0.63266695", "0.63167703", "0.62963116", "0.62922245", "0.62914175", "0.62839645", "0.6260472", "0.62506866", "0.6249199", "0.6246573", "0.62400717", "0.6238238", "0.6230448", "0.6225256", "0.6223693", "0.62079376", "0.6207504", "0.6206595", "0.62017715", "0.6201", "0.6196659", "0.6195091", "0.61894405", "0.61810136", "0.61785465", "0.6161527", "0.614234", "0.61364657", "0.613338", "0.6121957", "0.61218786", "0.61112875", "0.6110145", "0.6095618", "0.60934603", "0.60883385", "0.6088011", "0.60839933", "0.6082631", "0.6081351", "0.6079482", "0.60792965", "0.6074964", "0.6070899", "0.6070899", "0.60703695", "0.6067226", "0.6060506", "0.6059533", "0.60581756", "0.6055643", "0.60544497", "0.6054296", "0.6053734", "0.6038071", "0.6030639", "0.60301614", "0.60276574", "0.601821", "0.601613", "0.6014955", "0.60139567", "0.60093665", "0.6007962", "0.60012096", "0.60008186", "0.5999954" ]
0.0
-1
replacing missing values my means of each attributes
public Instances handleMissingValues(Instances train) throws Exception { ReplaceMissingValues rmv = new ReplaceMissingValues(); rmv.setInputFormat(train); train = Filter.useFilter(train, rmv); return train; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void replaceMissingValues() throws Exception {\n\t\t\n\t\tthis.confirmationMessage = new ArrayList<String>();\n\t\t\n\t\tInstances outputData;\n\t\t\n\t\tString inputFile = BASE_DIR + \"OriginalDataSet.csv\";\n\t\t\t\n // load CSV file\n\t\tCSVLoader fileLoader=new CSVLoader();\n\t\tfileLoader.setSource(new File(inputFile));\n\t outputData = fileLoader.getDataSet();\n \n int numInstances = outputData.numInstances();\n int numAttributes = outputData.numAttributes(); \n \n final int NON_NUMERIC = -1;\n int[] m_AttributeIndices = null;\n \n Range m_Attributes = new Range(\"first-last\");\n\n // attributes must be numeric\n m_Attributes.setUpper(outputData.numAttributes() - 1);\n m_AttributeIndices = m_Attributes.getSelection();\n \n for (int i = 0; i < m_AttributeIndices.length; i++) {\n // ignore class\n if (m_AttributeIndices[i] == outputData.classIndex()) {\n m_AttributeIndices[i] = NON_NUMERIC;\n continue;\n }\n // not numeric -> ignore it\n if (!outputData.attribute(m_AttributeIndices[i]).isNumeric())\n m_AttributeIndices[i] = NON_NUMERIC;\n }\n \n double sum;\n int missingCounter;\n double attributeMean;\n \n // identify the missing values \n for (int attributeIndex = 0; attributeIndex < numAttributes; attributeIndex++) {\n \t\n \t// non-numeric attribute?\n if (m_AttributeIndices[attributeIndex] == NON_NUMERIC){\n \tcontinue;\n }\n \n double tempArr[] = outputData.attributeToDoubleArray(attributeIndex);\n sum = 0;\n missingCounter = 0;\n for (int i = 0; i < tempArr.length; i++) {\n \tsum = sum + tempArr[i];\n \tif(tempArr[i]==0)\n \t\tmissingCounter++; \n }\n \n attributeMean = sum / (numInstances-missingCounter);\n \n for (int instanceIndex = 0; instanceIndex < numInstances; instanceIndex++) {\n \t\n \t// replace the missing values with attribute mean values\n \tif(outputData.instance(instanceIndex).value(attributeIndex)==0){\n \t\toutputData.instance(instanceIndex).setValue(attributeIndex, attributeMean);\n \t}\n }\n }\n \n outputData.deleteAttributeAt(outputData.numAttributes()-1); \n outputData.deleteAttributeAt(outputData.numAttributes()-1);\n \n saveFilledData(inputFile, outputData); \n \n\t}", "private Double getMean(Double[] values) {\n double sum = 0;\n int count = 0;\n for (Double d: values) {\n if (d != null) {\n sum += d;\n ++count;\n }\n }\n return count == 0 ? null : (sum / count);\n }", "@Override\n\tpublic void replaceMissingValues(final double[] array) {\n\n\t}", "public double mean() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0) return Constants.UNUSED;\n\t\t\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tsum += v;\n\t\t}\n\t\t\n\t\treturn sum / (double)n;\n\t}", "@Override\n\tpublic double mean() {\n\t\treturn 0;\n\t}", "private void updateMean() {\r\n double tmp = 0.0;\r\n for (Tweet t : members) {\r\n tmp += t.getDateLong();\r\n }\r\n tmp = tmp / (double) members.size();\r\n this.mean = tmp;\r\n }", "public double average(double alternative) {\n int cnt = 0;\n double sum = 0.0;\n\n // Compute the average of all values\n for (Number number : this) {\n if (number == null) continue;\n if (Double.isNaN(number.doubleValue())) continue;\n\n sum += number.doubleValue();\n cnt++;\n }\n\n // If we haven't had any element, return 0\n if (cnt == 0) return alternative;\n return sum / cnt;\n }", "public void unaverage() {\n\t\tif (!averaged)\n\t\t\tthrow new AssertionError(\"can't unaverage twice!!\");\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (w[i] + wupdates[i])/(t+1.0);\n\t\t\n\t\tscale = 1.0;\n\t\taveraged = false;\n\t}", "public double mean() {\n/* 179 */ Preconditions.checkState((this.count != 0L));\n/* 180 */ return this.mean;\n/* */ }", "public double[] imputeMissingValues(double[] point, int numberOfMissingValues, int[] missingIndexes) {\n checkArgument(numberOfMissingValues >= 0, \"numberOfMissingValues must be greater than or equal to 0\");\n\n // We check this condition in traverseForest, but we need to check it here s wellin case we need to copy the\n // point in the next block\n checkNotNull(point, \"point must not be null\");\n\n if (numberOfMissingValues == 0) {\n return Arrays.copyOf(point, point.length);\n }\n\n checkNotNull(missingIndexes, \"missingIndexes must not be null\");\n checkArgument(numberOfMissingValues <= missingIndexes.length,\n \"numberOfMissingValues must be less than or equal to missingIndexes.length\");\n\n if (!isOutputReady()) {\n return new double[dimensions];\n }\n\n Function<RandomCutTree, MultiVisitor<double[]>> visitorFactory = tree ->\n new ImputeVisitor(point, numberOfMissingValues, missingIndexes);\n\n if (numberOfMissingValues == 1) {\n\n // when there is 1 missing value, we sort all the imputed values and return the median\n\n Collector<double[], ArrayList<Double>, ArrayList<Double>> collector = Collector.of(\n ArrayList::new,\n (list, array) -> list.add(array[missingIndexes[0]]),\n (left, right) -> {\n left.addAll(right);\n return left;\n },\n list -> {\n list.sort(Comparator.comparing(Double::doubleValue));\n return list;\n }\n );\n\n ArrayList<Double> imputedValues = traverseForestMulti(point, visitorFactory, collector);\n double[] returnPoint = Arrays.copyOf(point, dimensions);\n returnPoint[missingIndexes[0]] = imputedValues.get(numberOfTrees / 2);\n return returnPoint;\n } else {\n\n // when there is more than 1 missing value, we sort the imputed points by anomaly score and\n // return the point with the 25th percentile anomaly score\n\n Collector<double[], ArrayList<double[]>, ArrayList<double[]>> collector = Collector.of(\n ArrayList::new,\n ArrayList::add,\n (left, right) -> {\n left.addAll(right);\n return left;\n },\n list -> {\n list.sort(Comparator.comparing(this::getAnomalyScore));\n return list;\n }\n );\n\n ArrayList<double[]> imputedPoints = traverseForestMulti(point, visitorFactory, collector);\n return imputedPoints.get(numberOfTrees / 4);\n }\n }", "public double[] getNormalizedInputValues( InstanceAttributes instAttributes ){\r\n\t\tdouble [] norm = new double[realValues[0].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[0][i])\r\n\t\t\t\tnorm[i] = instAttributes.getInputAttribute(i).normalizeValue(realValues[0][i]);\r\n\t\t\telse \r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}", "public double[] mean() {\n\t\tdouble[] mean = null;\n\t\tif(instances != null) {\n\t\t\tmean = new double[instances.get(0).length];\n\t\t\tfor(double[] instance : instances) {\n\t\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\t\tmean[d] += instance[d];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdouble n = instances.size();\n\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\tmean[d] /= n;\n\t\t\t}\n\t\t}\n\t\treturn mean;\n\t}", "public static float mean(float[] v) {\n\t\tfloat sum = 0;\n\t\tint count = 0;\n\t\tfor (float value : v) {\n\t\t\tif (Util.isUsed(value)) {\n\t\t\t\tsum += value;\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\treturn sum / (float)count;\n\t}", "public void setMeanAnamoly0(double value) {\n this.meanAnamoly0 = value;\n }", "public void setCentroidsAsMeans();", "public void updateToAverageOf(Vector<DataPoint> objects) { \t\n double[] average = new double[values.length];\n for (int i = 0; i < objects.size(); i++) {\n \t//POEY comment: position is a calculated value of a pixel\n Position position = objects.elementAt(i).position;\n for (int j = 0; j < average.length; j++) {\n average[j] += position.values[j];\n }\n }\n for (int i = 0; i < average.length; i++) {\n \t//POEY comment: objects.size() = the number of members in a cluster\n average[i] /= objects.size();\n }\n values = average;\n }", "public void interpolateMissing() {\n if (keyframes.size()==1)\n return;\n fillTrans();\n fillRots();\n fillScales();\n for (int objIndex=0;objIndex<numObjects;objIndex++)\n pivots[objIndex].applyToSpatial(toChange[objIndex]);\n }", "public void setMeanAnamoly(double value) {\n this.meanAnamoly = value;\n }", "public double[] getNormalizedInputValues(){\r\n\t\tdouble [] norm = new double[realValues[0].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[0][i])\r\n\t\t\t\tnorm[i] = Attributes.getInputAttribute(i).normalizeValue(realValues[0][i]);\r\n\t\t\telse \r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}", "public void parseAverages(){\r\n\t\tfor(int i = 1; i < x.size(); i++){\r\n\t\t\tdouble avg = (x.get(i) + x.get(i-1)) / 2;\r\n\t\t\tx.set(i, avg);\r\n\t\t}\r\n\t}", "public static Double mean(ArrayList<Double> values) {\n\t\tDouble total = 0.0;\n\t\t// iterate through the values and add to the total\n\t\tfor (int i = 0; i < values.size(); i++) {\n\t\t\ttotal += values.get(i);\n\t\t}\n\t\t// return the total devided by the number of values\n\t\treturn total / values.size();\n\t}", "private static double meanVal(double[] arrayOfSamples){\n\t\tdouble total = 0;\n\t\t for (double i :arrayOfSamples){\n\t\t \ttotal += i;\n\t\t }\n\t return total/arrayOfSamples.length;\n\t}", "private double getAvg() {\n\n double sum = 0;\n\n for (Map.Entry<Integer, Double> entry : values.entrySet()) {\n sum += entry.getValue();\n }\n\n if (values.size() > 0) {\n return sum / values.size();\n } else {\n throw new IllegalStateException(\"no values\");\n }\n }", "public void setMean(double mean) {\n this.mean = mean;\n }", "public Range getPossibleAverages() {\n int overallAverage = getMissingAwareAverage(getTilesOffset(1), getFractionWidth()*getFractionHeight());\n if (overallAverage == Util.MISSING_GREY) {\n return new Range(0, 255);\n }\n // average = overallAverage*(1-getMissingPixelsFraction())+dynamic*getMissingPixelsFraction()\n return new Range(Math.max(overallAverage-MAX_DYNAMIC_DISTANCE,\n (int) (overallAverage * (1 - getMissingPixelsFraction()))),\n Math.min(overallAverage+MAX_DYNAMIC_DISTANCE,\n (int) (overallAverage*(1-getMissingPixelsFraction()) +\n 255*getMissingPixelsFraction())));\n }", "public double[] getNormalizedOutputValues( InstanceAttributes instAttributes ){\r\n\t\tdouble [] norm = new double[realValues[1].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[1][i])\r\n\t\t\t\tnorm[i] = instAttributes.getOutputAttribute(i).normalizeValue(realValues[1][i]);\r\n\t\t\telse\r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}", "public double mean() {\r\n\t\treturn mean;\r\n\t}", "public Double getMean() {\n return mean;\n }", "public double mean() {\n return StdStats.mean(stats);\r\n }", "public static double findAndRemoveMean( double[] inArray ) {\r\n if ((inArray == null) || (inArray.length == 0)) {\r\n return Double.MIN_VALUE;\r\n }\r\n double meanToZero;\r\n ArrayStats arrmean = new ArrayStats( inArray );\r\n meanToZero = arrmean.getMean();\r\n ArrayOps.removeValue(inArray, meanToZero);\r\n return meanToZero;\r\n }", "@Override\n\tpublic void setMissing(final int attIndex) {\n\n\t}", "public double mean() {\n\t\tif (count() > 0) {\n\t\t\treturn _sum.get() / (double) count();\n\t\t}\n\t\treturn 0.0;\n\t}", "private void zScoreNormalize(List<Double> data)\n\t{\n\t\tdouble mean=Statistics.mean(data);\n\t\tdouble sd=Statistics.sd(data);\n\t\tfor(int i=0; i!= data.size(); ++i)\n\t\t{\n\t\t\tdata.set(i, (data.get(i)-mean)/sd);\n\t\t}\n\n\t}", "public double getMean() {\n return mean;\n }", "private void updateMuVariance() {\n\t\tmu = train.getLocalMean(); \n\t\tsigma = train.getLocalVariance(); \n\t\t\n\t\t/*\n\t\t * If the ratio of data variance between dimensions is too small, it \n\t\t * will cause numerical errors. To address this, we artificially boost\n\t\t * the variance by epsilon, a small fraction of the standard deviation\n\t\t * of the largest dimension. \n\t\t * */\n\t\tupdateEpsilon(); \n\t\tsigma = MathUtils.add(sigma, epsilon); \n\t\t\n\t}", "@Override\n\tpublic void setMissing(final Attribute att) {\n\n\t}", "public double mean() {\n return mu;\n }", "public static double meanOf(double... values) {\n/* 433 */ Preconditions.checkArgument((values.length > 0));\n/* 434 */ double mean = values[0];\n/* 435 */ for (int index = 1; index < values.length; index++) {\n/* 436 */ double value = values[index];\n/* 437 */ if (Doubles.isFinite(value) && Doubles.isFinite(mean)) {\n/* */ \n/* 439 */ mean += (value - mean) / (index + 1);\n/* */ } else {\n/* 441 */ mean = StatsAccumulator.calculateNewMeanNonFinite(mean, value);\n/* */ } \n/* */ } \n/* 444 */ return mean;\n/* */ }", "public double mean() {\n\t\treturn mean;\n\t}", "public double mean() {\n\t\treturn mean;\n\t}", "public final double getMean()\r\n\t{\r\n\t\treturn mean;\r\n\t}", "public T mean();", "public double mean() { \n return StdStats.mean(result);\n\n }", "public double populationMean()\n\t{\n\t\treturn null == _distPopulation ? java.lang.Double.NaN : _distPopulation.mean();\n\t}", "public double mean() {\n return StdStats.mean(thresholds);\n }", "public double mean() {\n return StdStats.mean(thresholds);\n }", "public double mean() {\n return mean;\n }", "public double arithmeticalMean(double[] arr) {\n return 0;\n }", "public boolean updateMeans(Mean[] newMeans);", "public static void normalize()\n {\n int sum;\n\n for(int i=0;i<12;i++)\n {\n for(int j=0;j<12;j++) {\n sum = sumAll(i,j);\n if (sum != 0)\n for (int n = 0; n < 12; n++)\n weights[i][j][n] /= sum;\n }\n }\n }", "@Override\n\tpublic SparseVector getPosteriorMeans(long timestamp) {\n\t\treturn getPosteriorMeans();\n\t}", "@Override\n public double findAverage() {\n double average = 0;\n for (Student key : map.keySet()) {\n average += map.get(key).getValue();\n }\n average /= map.keySet().size();\n return average;\n }", "public double mean(double data[]) {\r\n\t\tdouble mean = 0;\r\n\t\ttry {\r\n\t\t\tfor(int i=0;i<data.length;i++) {\r\n\t\t\t\tmean =mean+data[i];\r\n\t\t\t}\r\n\t\t\tmean = mean / data.length;\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tDataMaster.logger.warning(e.toString());\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\treturn mean;\r\n\t}", "private List<Double> sumMeanX(List<Business> business, double avg) {\n\t\tList<Double> sumMean = new ArrayList<Double>();\n\n\t\tfor (Business biz : business) {\n\t\t\tint price = biz.getPrice();\n\t\t\tsumMean.add(price - avg);\n\t\t}\n\t\treturn sumMean;\n\t}", "public void setAllMissing();", "double getMeanPrice() {\n List<Double> allPrices = new ArrayList<>();\n\n for (Firm firm : firms) {\n List<Double> pricesOfFirm = firm.getPrices();\n allPrices.addAll(pricesOfFirm.subList(pricesOfFirm.size() - SimulationManager.sizeOfExaminationInterval, pricesOfFirm.size()));\n }\n\n return Calculation.round(Calculation.getMean(allPrices), 2);\n }", "public void normalize() {\n // determine the maximum value\n \n Double max = getMaxValue();\n \n if(max!=null) {\n normalize(max);\n }\n }", "private double avgNonEmpty() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (numEntries / percent);\n\t}", "public void average(){\n\t\tfor(PlayerWealthDataAccumulator w : _wealthData.values()){\n\t\t\tw.average();\n\t\t}\n\t}", "public DoubleVector Normalize(Instance inst) {\n\t\t\tDoubleVector normalizedInstance = new DoubleVector();\n\t\t\tint index = 0;\n\t\t\tfor (int j = 0; j < inst.numAttributes(); j++) {\n\t\t\t\tif (inst.classIndex() == j)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tdouble value = 0;\n\n\t\t\t\tif (normalizeationOption.getChosenIndex() == 0) {\n\t\t\t\t\tif (this.statsAttributes.get(index).getStandardDeviation() < Constants.SMALL_EPSILON)\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getCurrentMean());\n\t\t\t\t\telse\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getCurrentMean())\n\t\t\t\t\t\t\t\t/ this.statsAttributes.get(index).getStandardDeviation();\n\t\t\t\t}else if(normalizeationOption.getChosenIndex() <= 2){\n\t\t\t\t\tif (this.statsAttributes.get(index).getRange() < Constants.SMALL_EPSILON)\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getMin());\n\t\t\t\t\telse\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getMin())\n\t\t\t\t\t\t\t\t/ this.statsAttributes.get(index).getRange();\n\t\t\t\t}else {\n\t\t\t\t\tvalue = inst.value(j) ;\n\t\t\t\t}\n\n\t\t\t\tnormalizedInstance.setValue(index, value);\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\treturn normalizedInstance;\n\t\t}", "protected ArrayList<Double> MVsIndex(Instance i) {\r\n\r\n\t\tArrayList<Double> out = new ArrayList<Double>();\r\n\r\n\t\tfor (int l = 0; l < nentradas; l++) {\r\n\t\t\tif (i.getInputMissingValues(l)) {\r\n\t\t\t\tout.add((double) l);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn out;\r\n\t}", "public static float[] returnMeanArray (float[] weatherArray){\n float[] meanArray = new float[12];\n for (int i = 0; i < 12; i++){\n meanArray[i] = weatherArray[i]/30;\n }\n return meanArray;\n }", "public double mean() {\n\t\treturn StdStats.mean(results); \n\t}", "public void initialiseExtremeValues() {\n for (int i = 0; i < numberOfObj; i++) {\n minimumValues[i] = Double.MAX_VALUE;\n maximumValues[i] = -Double.MAX_VALUE;\n }\n }", "public static double meanOf(Iterable<? extends Number> values) {\n/* 393 */ return meanOf(values.iterator());\n/* */ }", "private float calculateMean()\n { \n int numberEmployees = employees.size();\n float total = 0, meanGrossPay = 0;\n // Create an array of all gross pays\n float[] allGrossPay = new float[numberEmployees];\n \n // Call method to return an array of float containing all gross pays\n allGrossPay = calculateAllGrossPay();\n // Find total gross pay\n for (int i = 0; i < numberEmployees; i++)\n {\n total += allGrossPay[i];\n }\n // Find mean and return it\n if (numberEmployees > 0)\n {\n meanGrossPay = total/numberEmployees;\n \n }\n return meanGrossPay;\n }", "double getMeanQuantity() {\n ArrayList<Double> allQuantities = new ArrayList<>();\n\n for (Firm firm : firms) {\n List<Double> quantitiesOfFirm = firm.getQuantities();\n allQuantities.addAll(quantitiesOfFirm.subList(quantitiesOfFirm.size() - SimulationManager.sizeOfExaminationInterval, quantitiesOfFirm.size()));\n }\n\n return Calculation.round(Calculation.getMean(allQuantities), 2);\n }", "public double getNoiseMean() {\n\t\t\treturn NOISE_MEAN;\n\t\t}", "public double getMean(){\n\t\treturn Math.exp(location + scale * scale / 2);\n\t}", "@Override\n public Double average() {\n return (sum() / (double) count());\n }", "public static Double computeMean(Double[] values) {\n\t\treturn computeMean(values, 0, values.length);\n\t}", "public ValueMeaning getValueMeaning(){\n return null;\n }", "@Override\r\n protected BigDecimal getArithmeticMean(int numberOfDecimalPlaces) {\r\n BigDecimal sum = getSum();\r\n long n = getN();\r\n BigInteger nBI = BigInteger.valueOf(n);\r\n if (n != 0) {\r\n return Generic_BigDecimal.divideRoundIfNecessary(sum, nBI,\r\n numberOfDecimalPlaces, RoundingMode.HALF_EVEN);\r\n }\r\n return null;\r\n }", "public static double getArrayListDoubleMean(ArrayList<Double> list) {\n\t\treturn 0;\n\t}", "public String[][] impute(InstanceAttributes atts) {\r\n\t\tInstance neighbor;\r\n\t\tdouble dist, mean, maxdist, candidateDist;\r\n\t\tint actual, totalN;\r\n\t\tint[] N = new int[nneigh];\r\n\t\tdouble[] Ndist = new double[nneigh];\r\n\t\tboolean allNull;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// Load in memory a dataset that contains a classification problem\r\n\t\t\tint in = 0;\r\n\t\t\tint out = 0;\r\n\r\n\t\t\tndatos = IS.getNumInstances();\r\n\t\t\tnvariables = atts.getNumAttributes();\r\n\t\t\tnentradas = atts.getInputNumAttributes();\r\n\t\t\tnsalidas = atts.getOutputNumAttributes();\r\n\r\n\t\t\tX = new String[ndatos][nvariables];// matrix with transformed data\r\n\r\n\t\t\tmostCommon = new String[nvariables];\r\n\t\t\tfiltered = new boolean[ndatos];\r\n\r\n\t\t\tFreqList[] timesSeen = new FreqList[nvariables]; // matrix with\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// frequences of\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// attribute\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// values\r\n\r\n\t\t\tfor (int i = 0; i < ndatos; i++) {\r\n\t\t\t\tInstance inst = IS.getInstance(i);\r\n\r\n\t\t\t\tfiltered[i] = false;\r\n\t\t\t\tin = 0;\r\n\t\t\t\tout = 0;\r\n\r\n\t\t\t\tif (inst.existsAnyMissingValue()) {\r\n\r\n\t\t\t\t\t// since exists MVs, first we must compute the nearest\r\n\t\t\t\t\t// neighbors for our instance\r\n\t\t\t\t\tmaxdist = Double.MAX_VALUE;\r\n\t\t\t\t\tfor (int n = 0; n < nneigh; n++) {\r\n\t\t\t\t\t\tNdist[n] = Double.MAX_VALUE;\r\n\t\t\t\t\t\tN[n] = -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfor (int k = 0; k < ndatos; k++) {\r\n\t\t\t\t\t\tneighbor = IS.getInstance(k);\r\n\r\n\t\t\t\t\t\tdist = distance(inst, neighbor, atts);\r\n\t\t\t\t\t\tif (dist > 0) { // Leave one out + dont have the same\r\n\t\t\t\t\t\t\t\t\t\t// missing attributes\r\n\t\t\t\t\t\t\tif (dist <= maxdist) {\r\n\t\t\t\t\t\t\t\tactual = -1;\r\n\t\t\t\t\t\t\t\tcandidateDist = Ndist[0];\r\n\t\t\t\t\t\t\t\tfor (int n = 0; n < nneigh; n++) {\r\n\r\n\t\t\t\t\t\t\t\t\tif (dist < Ndist[n]) {\r\n\t\t\t\t\t\t\t\t\t\tif (actual != -1) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (Ndist[n] > Ndist[actual]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tcandidateDist = Ndist[actual];\r\n\t\t\t\t\t\t\t\t\t\t\t\tactual = n;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\t\t\t\t\tactual = n;\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\tif (actual != -1) {\r\n\t\t\t\t\t\t\t\t\tN[actual] = k;\r\n\t\t\t\t\t\t\t\t\tNdist[actual] = dist;\r\n\t\t\t\t\t\t\t\t\tmaxdist = Math.max(candidateDist, dist);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (int j = 0; j < nvariables; j++) {\r\n\t\t\t\t\tAttribute a = atts.getAttribute(j);\r\n\t\t\t\t\tdireccion = a.getDirectionAttribute();\r\n\t\t\t\t\ttipo = a.getType();\r\n\r\n\t\t\t\t\tif (direccion == Attribute.INPUT) {\r\n\t\t\t\t\t\tif (tipo != Attribute.NOMINAL\r\n\t\t\t\t\t\t\t\t&& !inst.getInputMissingValues(in)) {\r\n\t\t\t\t\t\t\tif (tipo == Attribute.INTEGER)\r\n\t\t\t\t\t\t\t\tX[i][j] = new String(String.valueOf((int) inst\r\n\t\t\t\t\t\t\t\t\t\t.getInputRealValues(in)));\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tX[i][j] = new String(String.valueOf(inst\r\n\t\t\t\t\t\t\t\t\t\t.getInputRealValues(in)));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif (!inst.getInputMissingValues(in))\r\n\t\t\t\t\t\t\t\tX[i][j] = inst.getInputNominalValues(in);\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t// save computing time\r\n\t\t\t\t\t\t\t\tallNull = true;\r\n\t\t\t\t\t\t\t\tif (tipo != Attribute.NOMINAL) {\r\n\t\t\t\t\t\t\t\t\tmean = 0.0;\r\n\t\t\t\t\t\t\t\t\ttotalN = 0;\r\n\t\t\t\t\t\t\t\t\tfor (int m = 0; m < nneigh; m++) {\r\n\t\t\t\t\t\t\t\t\t\tif (N[m] != -1) {\r\n\t\t\t\t\t\t\t\t\t\t\tInstance inst2 = IS\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getInstance(N[m]);\r\n\t\t\t\t\t\t\t\t\t\t\tif (!inst2\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getInputMissingValues(in)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tmean += inst2\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getInputRealValues(in);\r\n\t\t\t\t\t\t\t\t\t\t\t\ttotalN++;\r\n\t\t\t\t\t\t\t\t\t\t\t\tallNull = false;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tX[i][j] = String\r\n\t\t\t\t\t\t\t\t\t\t\t.valueOf(nearestValidNeighbor(inst,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tin, atts)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getInputRealValues(in));\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\ttimesSeen[j] = new FreqList();\r\n\r\n\t\t\t\t\t\t\t\t\tfor (int m = 0; m < nneigh; m++) {\r\n\t\t\t\t\t\t\t\t\t\tInstance inst2 = IS.getInstance(N[m]);\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (N[m] != -1\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& !inst2\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getInputMissingValues(in)) {\r\n\t\t\t\t\t\t\t\t\t\t\ttimesSeen[j].AddElement(inst2\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getInputNominalValues(in));\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (timesSeen[j].totalElements != 0)\r\n\t\t\t\t\t\t\t\t\t\tX[i][j] = new String(timesSeen[j]\r\n\t\t\t\t\t\t\t\t\t\t\t\t.mostCommon().getValue()); // replace\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// missing\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// data\r\n\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\tX[i][j] = nearestValidNeighbor(inst,\r\n\t\t\t\t\t\t\t\t\t\t\t\tin, atts)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getInputNominalValues(in);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tin++;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tX[i][j] = inst.getOutputNominalValues(out);\r\n\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\tSystem.out.println(\"Dataset exception = \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t\t// Return the dataset imputed.\r\n\t\treturn X;\r\n\r\n\t}", "public double sampleVarianceOfMean() {\n\t\treturn sampleVariance() * getWeight();\n\t}", "@Test\n public void writeMultipleEntitiesWithMissingProperties_shouldCalculateAverageAsExpected() {\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, Double.NaN);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "private void upgradeImplicitAverageMonitoringRules()\r\n {\r\n if ( executeSql( \"update validationrule set lowoutliers = lowoutliers where validationruleid < 0\" ) < 0 )\r\n {\r\n return; // Already converted because lowoutlier fields are gone\r\n }\r\n\r\n // Just to be extra sure, we don't modify any expressions which already contain a call to AVG or STDDEV\r\n executeSql( \"INSERT INTO expressionsampleelement (expressionid, dataelementid) \" +\r\n \"SELECT ede.expressionid, ede.dataelementid \" +\r\n \"FROM expressiondataelement ede \" +\r\n \"JOIN expression e ON e.expressionid = ede.expressionid \" +\r\n \"JOIN validationrule v ON v.rightexpressionid = e.expressionid \" +\r\n \"WHERE v.ruletype='SURVEILLANCE' \" +\r\n \"AND e.expression NOT LIKE '%AVG%' and e.expression NOT LIKE '%STDDEV%';\" );\r\n\r\n executeSql( \"update expression set expression=\" + statementBuilder.concatenate( \"'AVG('\", \"expression\", \"')'\" ) +\r\n \" from validationrule where ruletype='SURVEILLANCE' AND rightexpressionid=expressionid \" +\r\n \"AND expression NOT LIKE '%AVG%' and expression NOT LIKE '%STDDEV%';\" );\r\n\r\n executeSql( \"ALTER TABLE validationrule DROP COLUMN highoutliers\" );\r\n executeSql( \"ALTER TABLE validationrule DROP COLUMN lowoutliers\" );\r\n\r\n log.info( \"Added explicit AVG calls to olid-style implicit average surveillance rules\" );\r\n }", "public double[] monteCarloMeans(){\n if(!this.monteCarloDone)this.monteCarlo();\n return this.randomEigenValuesMeans;\n }", "public static void arrayAttributes(){\n int[] x= {1, 5, 10, -2};\n int[] y={0,0,0};\n int sum=0;\n int avg=0;\n int max=x[0];\n int min=x[0];\n for (int i =0; i<x.length; i++){\n sum=sum+x[i];\n if (x[i]>max){\n max=x[i];\n }\n if (x[i]<min){\n min=x[i];\n }\n }\n avg=sum/x.length;\n y[0]=max;\n y[1]=min;\n y[2]=avg;\n for (int j=0; j<y.length; j++){\n System.out.println(y[j]); \n }\n}", "public MeanVar(double[] data) {\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t\taddValue(data[i]);\n\t}", "public double mean()\n {\n double sum = 0.0;\n for(int t = 0; t<size; t++)\n sum += x[t];\n return sum/size;\n }", "private void calculateMean(float total){\r\n float averageBonds = total/accountInTotal;\r\n float averageAER = (averageBonds-startingBonds)/(startingBonds/100);\r\n\r\n Account averageAccount = new Account(startingBonds,averageBonds,averageAER);\r\n System.out.println(averageAccount.toString());\r\n\r\n }", "public void normalize(){\n\tstrength = 50;\n\tdefense = 55;\n\tattRating = 0.4\t;\n }", "public double[] getNormalizedOutputValues(){\r\n\t\tdouble [] norm = new double[realValues[1].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[1][i])\r\n\t\t\t\tnorm[i] = Attributes.getOutputAttribute(i).normalizeValue(realValues[1][i]);\r\n\t\t\telse\r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}", "public void setMeans(float[][] means) {\r\n this.means = means;\r\n }", "public ArrayList<DataPoint> normalizeFeatures(ArrayList<DataPoint> datapoints) {\n\t\t\n\t\tdouble[] vector = new double[featureCount];\n\t\t// now normalize ALL the points!\n\t\tfor (DataPoint aPoint : datapoints) {\n\t\t\tvector = aPoint.vector;\n\t\t\tfor (int i = 0; i < featureCount; ++i) {\n\t\t\t\tvector[i] = (vector[i] - meansOfFeatures.get(i))\n\t\t\t\t\t\t/ stdevOfFeatures.get(i);\n\t\t\t}\n\t\t\taPoint.setVector(vector);\n\t\t}\n\t\treturn datapoints;\n\t}", "public double average(){\n double avg = 0;\n double sum = 0;\n for (T t : arr) {\n // sum += t.doubleValue();\n }\n\n return sum / arr.length;\n }", "public double getMeanValuePixels() {\n\t\tdouble avg = 0;\n\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tavg += this.image[i][j];\n\t\t\t}\n\t\t}\n\t\tavg /= this.getQtyPixels();\n\n\t\treturn avg;\n\t}", "public void average() {\n\t\tif (averaged)\n\t\t\tthrow new AssertionError(\"can't average twice!!\");\n\t\t\n\t\tscale = 1.0/(double)t;\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (t+1.0)*w[i] - wupdates[i];\n\t\t\n\t\taveraged = true;\n\t\n\t}", "private void updateVariance() {\r\n double variance = 0.0;\r\n updateMean();\r\n for (Tweet t : members) {\r\n variance += ((t.getDateLong() - this.mean) * (t.getDateLong() - this.mean));\r\n }\r\n variance /= members.size();\r\n this.variance = variance;\r\n }", "public double mean() {\n double total = 0;\n for (int i = 0; i < sites.length; i++) {\n total += sites[i];\n }\n sampleMean = total / size / times;\n return sampleMean;\n }", "public double getMeanAnamoly0() {\n return meanAnamoly0;\n }", "public double mean()\n {\n return StdStats.mean(open);\n// return StdStats.sum(open) / count;\n }", "private void initClassAttributes(){ \r\n\t\tanyMissingValue = new boolean[3];\r\n\t\tanyMissingValue[0] = false; \r\n\t\tanyMissingValue[1] = false;\r\n\t\tanyMissingValue[2] = false;\r\n\t\tnumInputAttributes = Attributes.getInputNumAttributes();\r\n\t\tnumOutputAttributes = Attributes.getOutputNumAttributes();\r\n\t\tnumUndefinedAttributes = Attributes.getNumAttributes() - (numInputAttributes+numOutputAttributes);\r\n\t\tintNominalValues = new int[3][];\r\n\t\tnominalValues = new String[3][];\r\n\t\trealValues = new double[3][];\r\n\t\tmissingValues = new boolean[3][];\r\n\t\tnominalValues[0] = new String[numInputAttributes];\r\n\t\tnominalValues[1] = new String[numOutputAttributes];\r\n\t\tnominalValues[2] = new String[numUndefinedAttributes];\r\n\t\tintNominalValues[0] = new int[numInputAttributes];\r\n\t\tintNominalValues[1] = new int[numOutputAttributes];\r\n\t\tintNominalValues[2] = new int[numUndefinedAttributes];\r\n\t\trealValues[0] = new double[numInputAttributes];\r\n\t\trealValues[1] = new double[numOutputAttributes];\r\n\t\trealValues[2] = new double[numUndefinedAttributes];\r\n\t\tmissingValues[0] = new boolean[numInputAttributes];\r\n\t\tmissingValues[1] = new boolean[numOutputAttributes];\r\n\t\tmissingValues[2] = new boolean[numUndefinedAttributes];\r\n\r\n\t\tfor(int i=0;i<numInputAttributes;i++) missingValues[0][i]=false; \r\n\t\tfor(int i=0;i<numOutputAttributes;i++) missingValues[1][i]=false; \r\n\t\tfor(int i=0;i<numUndefinedAttributes; i++) missingValues[2][i]=false;\r\n\r\n\t}", "public double mean() {\n return StdStats.mean(perThreshold);\n }", "public String getMean()\n {\n return mean;\n }", "public double mean() {\n return StdStats.mean(results);\n }", "public void clearXAvg() {\n\t\txStats.clear();\n\t}", "public double getMeanAnamoly() {\n return meanAnamoly;\n }" ]
[ "0.6884699", "0.63221484", "0.6241156", "0.62065506", "0.59153587", "0.58442366", "0.5729506", "0.5524023", "0.55139595", "0.5477875", "0.5473132", "0.5466682", "0.54453224", "0.5383347", "0.5359708", "0.5352092", "0.53001785", "0.5286765", "0.52577573", "0.5251086", "0.5242299", "0.5205644", "0.5188046", "0.5185639", "0.5179674", "0.51784414", "0.51726806", "0.51678926", "0.5166249", "0.5161812", "0.51555765", "0.51424325", "0.5138416", "0.5126071", "0.5114676", "0.5102884", "0.5101104", "0.50826913", "0.5080204", "0.5080204", "0.50471044", "0.5025636", "0.5025049", "0.5016403", "0.5015977", "0.5015977", "0.50119776", "0.5011237", "0.5007616", "0.5007485", "0.5005419", "0.49996373", "0.49987572", "0.4990549", "0.49704263", "0.49625638", "0.49560884", "0.49537665", "0.49351716", "0.49342802", "0.49320617", "0.49261698", "0.49200633", "0.49189448", "0.49177486", "0.49175698", "0.49170178", "0.49168143", "0.49068177", "0.49042624", "0.48907438", "0.4889438", "0.48860624", "0.4879259", "0.48769248", "0.4873183", "0.487299", "0.48719046", "0.48709315", "0.48673275", "0.48527694", "0.4852458", "0.48466125", "0.484296", "0.48388976", "0.4833778", "0.4829929", "0.48278543", "0.48251498", "0.4824327", "0.481981", "0.48181993", "0.48177484", "0.48054335", "0.47957167", "0.47843587", "0.47807923", "0.47788388", "0.4774856", "0.47722426" ]
0.61157125
4
end getCoord Tests if the coordinates passed in parameter contain one or more velocity coordinate.
public static boolean containsVelocityCoord(int[] coords){ for(int i=0; i < coords.length; i++){ if(coords[i] == COORD_V0 || coords[i] == COORD_V1 || coords[i] == COORD_V2) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isUnsafeVelocity(Vector vel) {\n/* 448 */ double x = vel.getX();\n/* 449 */ double y = vel.getY();\n/* 450 */ double z = vel.getZ();\n/* */ \n/* 452 */ if (x > 4.0D || x < -4.0D || y > 4.0D || y < -4.0D || z > 4.0D || z < -4.0D) {\n/* 453 */ return true;\n/* */ }\n/* */ \n/* 456 */ return false;\n/* */ }", "public void testVelocityNumerically() {\n // crud, I don't know, how much can we expect velocity and finite differences to agree?\n double bound = dt*dt*velocity*velocity; // sure, let's go with that. Keep in mind this changes with sampling rates, velocity, the order of the function, etc.\n double endtime = racetrack.getPerimeter() / racetrack.getVelocity();\n differentiatePosition(racetrack, 0.0, endtime, dt, bound);\n }", "@Model\n private boolean isValidVelocity(double velocityX, double velocityY){\n return (Math.hypot(velocityX, velocityY) <= maxVelocity && Velocity.isValidVelocity(velocityX, velocityY));\n }", "public boolean isVelocityValid() {\n return velocityValid;\n }", "public Vector2D getVelocity ();", "@Test\n public void testVerticalDisplacementTo() {\n System.out.println(\"Testing verticleDisplacementTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 555.998,\n -555.998,\n -555.998,\n 555.998,\n\t\t\t72.266,\n\t\t\t-72.266,\n\t\t\t-72.266,\n\t\t\t72.266\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.verticalDisplacementTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }", "double getVy() { return vel[1]; }", "protected void calcVelocity()\n\t{}", "double getVx() { return vel[0]; }", "double getVz() { return vel[2]; }", "boolean hasCoordInfo();", "boolean hasVector2Value();", "boolean computeVelocityCommands(Twist cmd_vel){\n if(!initialized_){\n this.node.getLog().error(\"This planner has not been initialized, please call initialize() before using this planner\");\n return false;\n }\n\n //TODO: Transform\n/* PoseStamped global_pose;\n Header hdr=messageFactory.newFromType(Header._TYPE);\n hdr.setStamp(this.node.getCurrentTime());\n hdr.setFrameId(robot_base_frame_);\n global_pose.setHeader(hdr);\n Pose pose=messageFactory.newFromType(Pose._TYPE);\n Point p=messageFactory.newFromType(Point._TYPE);\n Quaternion q=messageFactory.newFromType(Quaternion._TYPE);\n p.setX(0.0);p.setY(0.0);p.setZ(0.0);\n pose.setPosition(p);\n q.setX(0.0);q.setY(0.0);q.setZ(0.0);q.setW(1);\n pose.setOrientation(q);\n global_pose.setPose(pose);\n tf_.getTree().lookupTransformBetween();*/\n\n\n\n // Set current velocities from odometry\n Twist global_vel=messageFactory.newFromType(Twist._TYPE);\n\n me.me_lock_.lock();\n try{\n linear.setX(me.base_odom_.getTwist().getTwist().getLinear().getX());\n linear.setY(me.base_odom_.getTwist().getTwist().getLinear().getY());\n angular.setZ(me.base_odom_.getTwist().getTwist().getAngular().getY());\n global_vel.setLinear(linear);\n global_vel.setAngular(angular);\n }finally {\n me.me_lock_.unlock();\n }\n\n //TODO: Transform\n //WARNNING not transformed\n/* tf::Stamped<tf::Pose> robot_vel;\n robot_vel.setData(tf::Transform(tf::createQuaternionFromYaw(global_vel.angular.z), tf::Vector3(global_vel.linear.x, global_vel.linear.y, 0)));\n robot_vel.frame_id_ = robot_base_frame_;\n robot_vel.stamp_ = ros::Time();*/\n PoseStamped robot_vel=messageFactory.newFromType(PoseStamped._TYPE);\n\n/* //WARNNING not transformed\n tf::Stamped<tf::Pose> goal_point;\n tf::poseStampedMsgToTF(global_plan_.back(), goal_point);*/\n PoseStamped goal_point=messageFactory.newFromType(PoseStamped._TYPE);\n\n //we assume the global goal is the last point in the global plan\n //WARNNING not transformed\n goal_point=global_plan_.get(global_plan_.size()-1);\n double goal_x = goal_point.getPose().getPosition().getX();\n double goal_y = goal_point.getPose().getPosition().getY();\n double yaw = LPutils.getYaw(goal_point.getPose().getOrientation());\n double goal_th = yaw;\n\n //TODO:get position in global frame of the robot\n //WARNNING not transformed\n /* tf::Stamped<tf::Pose> global_pose;\n //let's get the pose of the robot in the frame of the plan\n global_pose.setIdentity();\n global_pose.frame_id_ = robot_base_frame_;\n global_pose.stamp_ = ros::Time();\n tf_->transformPose(global_frame_, global_pose, global_pose);*/\n PoseStamped global_pose=messageFactory.newFromType(PoseStamped._TYPE);\n\n //check to see if we've reached the goal position\n if (xy_tolerance_latch_ || (LPutils.getGoalPositionDistance(global_pose.getPose(), goal_x, goal_y) <= xy_goal_tolerance_)) {\n\n //if(base_local_planner::goalPositionReached(global_pose, goal_x, goal_y, xy_goal_tolerance_) || xy_tolerance_latch_){\n\n //if the user wants to latch goal tolerance, if we ever reach the goal location, we'll\n //just rotate in place\n if(latch_xy_goal_tolerance_)\n xy_tolerance_latch_ = true;\n\n //check to see if the goal orientation has been reached\n double angle = LPutils.getGoalOrientationAngleDifference(global_pose.getPose(), goal_th);\n //check to see if the goal orientation has been reached\n if (Math.abs(angle) <= yaw_goal_tolerance_) {\n\n //set the velocity command to zero\n linear.setX(0.0);\n linear.setY(0.0);\n linear.setZ(0.0);\n cmd_vel.setLinear(linear);\n angular.setZ(0.0);\n cmd_vel.setAngular(angular);\n rotating_to_goal_ = false;\n xy_tolerance_latch_ = false;\n }\n else {\n //copy over the odometry information\n Odometry base_odom=messageFactory.newFromType(Odometry._TYPE);\n me.me_lock_.lock();\n try{\n base_odom=me.getBaseOdom();\n }finally {\n me.me_lock_.unlock();\n }\n\n //if we're not stopped yet... we want to stop... taking into account the acceleration limits of the robot\n if(!rotating_to_goal_ && !LPutils.stopped(base_odom, rot_stopped_velocity_, trans_stopped_velocity_)){\n //ROS_DEBUG(\"Not stopped yet. base_odom: x=%6.4f,y=%6.4f,z=%6.4f\", base_odom.twist.twist.linear.x,base_odom.twist.twist.linear.y,base_odom.twist.twist.angular.z);\n if(!stopWithAccLimits(global_pose, robot_vel, cmd_vel))\n return false;\n }\n //if we're stopped... then we want to rotate to goal\n else{\n //set this so that we know its OK to be moving\n rotating_to_goal_ = true;\n if(!rotateToGoal(global_pose, robot_vel, goal_th, cmd_vel))\n return false;\n }\n }\n\n //publish an empty plan because we've reached our goal position\n transformed_plan_.clear();\n LPutils.publishPlan(transformed_plan_, g_plan_pub_);\n LPutils.publishPlan(transformed_plan_, l_plan_pub_);\n //we don't actually want to run the controller when we're just rotating to goal\n return true;\n }\n\n //TODO:transform\n/* tf::Stamped<tf::Pose> target_pose;\n target_pose.setIdentity();\n target_pose.frame_id_ = robot_base_frame_;*/\n PoseStamped target_pose=messageFactory.newFromType(PoseStamped._TYPE);\n\n if (!skip_next_){\n if(!transformGlobalPlan(tf_, global_plan_, costmap_ros_, global_frame_, transformed_plan_)){\n this.node.getLog().warn(\"Could not transform the global plan to the frame of the controller\");\n return false;\n }\n PoseStamped target_pose_msg=messageFactory.newFromType(PoseStamped._TYPE);\n findBestWaypoint(target_pose_msg, global_pose);\n }\n //TODO\n /*tf::poseStampedMsgToTF(transformed_plan_[current_waypoint_], target_pose);*/\n\n\n Twist res=messageFactory.newFromType(Twist._TYPE);\n\n linear.setX(target_pose.getPose().getPosition().getX() - global_pose.getPose().getPosition().getX());\n linear.setY(target_pose.getPose().getPosition().getY() - global_pose.getPose().getPosition().getY());\n res.setLinear(linear);\n angular.setZ(Angles.shortest_angular_distance(LPutils.getYaw(global_pose.getPose().getOrientation()), Math.atan2(res.getLinear().getY(), res.getLinear().getX())));\n res.setAngular(angular);\n\n Vector2 goal_dir = new Vector2(res.getLinear().getX(),res.getLinear().getY());\n if (Vector2.abs(goal_dir) > me.max_vel_x_) {\n goal_dir = Vector2.mul(Vector2.normalize(goal_dir),me.max_vel_x_);\n }\n else if (Vector2.abs(goal_dir) < me.min_vel_x_) {\n goal_dir =Vector2.mul(Vector2.normalize(goal_dir), me.min_vel_x_ * 1.2);\n }\n\n\n Vector2 pref_vel = new Vector2(goal_dir.getX(),goal_dir.getY());\n\n //TODO collvoid added\n\n me.computeNewVelocity(pref_vel, cmd_vel);\n\n\n if(Math.abs(cmd_vel.getAngular().getZ())<me.min_vel_th_)\n angular.setZ(0.0);\n\n if(Math.abs(cmd_vel.getLinear().getX())<me.min_vel_x_)\n linear.setX(0.0);\n\n if(Math.abs(cmd_vel.getLinear().getY())<me.min_vel_y_)\n linear.setY(0.0);\n\n cmd_vel.setLinear(linear);\n cmd_vel.setAngular(angular);\n\n\n boolean valid_cmd = true; //collision_planner_.checkTrajectory(cmd_vel.linear.x, cmd_vel.linear.y, cmd_vel.angular.z,true);\n\n if (!valid_cmd){\n angular.setZ(0.0);\n linear.setX(0.0);\n linear.setY(0.0);\n cmd_vel.setLinear(linear);\n cmd_vel.setAngular(angular);\n }\n\n if (cmd_vel.getLinear().getX() == 0.0 && cmd_vel.getAngular().getZ() == 0.0 && cmd_vel.getLinear().getY() == 0.0) {\n\n this.node.getLog().debug(\"Did not find a good vel, calculated best holonomic velocity was:\"\n + me.velocity.getX()+\", \"+me.velocity.getY()+\", cur wp \"+current_waypoint_+\" of \"+transformed_plan_.size()+\" trying next waypoint\");\n if (current_waypoint_ < transformed_plan_.size()-1){\n current_waypoint_++;\n skip_next_= true;\n }\n else {\n transformed_plan_.clear();\n LPutils.publishPlan(transformed_plan_, g_plan_pub_);\n LPutils.publishPlan(transformed_plan_, l_plan_pub_);\n\n return false;\n }\n }\n else {\n skip_next_ = false;\n }\n\n\n List<PoseStamped> local_plan=new ArrayList<PoseStamped>();\n PoseStamped pos=messageFactory.newFromType(PoseStamped._TYPE);\n\n //TODO\n //tf::poseStampedTFToMsg(global_pose,pos);\n pos.setPose(global_pose.getPose());\n pos.setHeader(global_pose.getHeader());\n local_plan.add(pos);\n local_plan.add(transformed_plan_.get(current_waypoint_));\n LPutils.publishPlan(transformed_plan_, g_plan_pub_);\n LPutils.publishPlan(local_plan, l_plan_pub_);\n //me_->publishOrcaLines();\n return true;\n }", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "public boolean verifShipCoordinates( IPlayer iPlayer, String startCoord,String endCoord, int size) {\n\t\tif (goodCoordinatesForm(startCoord) && goodCoordinatesForm(endCoord) ) {\r\n\r\n\t\t\tCoordinates coord1 = new Coordinates(startCoord);\r\n\t\t\tCoordinates coord2 = new Coordinates(endCoord);\r\n\t\t\tcoordinatesShipConverter(coord1, coord2);\r\n\t\t\tif (inMap(iPlayer,coord1) && inMap(iPlayer,coord2) ) {\r\n\t\t\t\tif (nonDiagonal(coord1,coord2)) {\r\n\t\t\t\t\tif(goodSize(coord1,coord2, size)) {\r\n\t\t\t\t\t\tif (isEmpty(iPlayer, coord1, coord2)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse { System.out.println(\"Another ship is already on it\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse { System.out.println(\"The size of the ship isn't good, try again it should be \"+ size + \" coordinates large\");\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\telse {System.out.println(\"The ship is in diagonal, try again it should be like A-2\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse { System.out.println(\"Coordinates out of map, try again it should be between 0 and 10, and A to J\" );// can't do this.height.. because cannot do a static reference to a non static..\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse { System.out.println(\"Wrong coordinates writing, try again it should be like A-2\");\r\n\t\t}\r\n\t\t// is this presentation very clear ?\r\n\t\t\r\n\treturn false;\r\n\t\r\n\t}", "public void position(Double ...coords) throws ArgumentOutOfBoundsException;", "Vector getPos();", "public boolean needCoordinates() { return needCoords; }", "public Vector2D getPosition ();", "protodef.b_math.coordOrBuilder getCoordInfoOrBuilder();", "protodef.b_math.coord getCoordInfo();", "public boolean canCoordinateBeSpawn(int par1, int par2)\n {\n return false;\n }", "public static boolean isValidVector(double x, double y){\r\n\t\treturn (isValidComponent(x) && isValidComponent(y));\r\n\t}", "private boolean isVecInXY(Vec3 vec) {\n\t\treturn vec == null ? false : vec.xCoord >= this.minX && vec.xCoord <= this.maxX && vec.yCoord >= this.minY && vec.yCoord <= this.maxY;\n\t}", "private boolean setCoords(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4) {\r\n // Ensure all x co-ordinates are in the first quadrant\r\n if(x1 < 0 || x2 < 0 || x3 < 0 || x4 < 0) {\r\n throw new IllegalArgumentException(\"Error: Non-negative numbers for the X co-ordinates only\");\r\n } else if(y1 < 0 || y2 < 0 || y3 < 0 || y4 < 0) {\r\n throw new IllegalArgumentException(\"Error: Non-negative numbers for the Y co-ordinates only\");\r\n } else if(x1 > 20 || x2 > 20 || x3 > 20 || x4 > 20) {\r\n throw new IllegalArgumentException(\"Error: X co-ordinate values cannot be greater than 20\");\r\n } else {\r\n \treturn(true);\r\n }\r\n }", "private boolean isValidPosition(Point pos){\r\n return (0 <= pos.getFirst() && pos.getFirst() < 8 && \r\n 0 <= pos.getSecond() && pos.getSecond() < 8);\r\n }", "public boolean positionValide(int coordX, int coordY){\r\n if( !(coordX >= 0 && coordX < m_longueurLigne &&\r\n coordY >= 0 && coordY < m_nbre_lignes) ){\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean isVecInsideXYBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.xCoord>=bounds[0] && vec.xCoord<=bounds[3] && vec.yCoord>=bounds[1] && vec.yCoord<=bounds[4];\n }", "boolean stopWithAccLimits(PoseStamped global_pose, final PoseStamped robot_vel, Twist cmd_vel){\n double vx = sign(robot_vel.getPose().getPosition().getX()) * Math.max(0.0, (Math.abs(robot_vel.getPose().getPosition().getX()) - me.acc_lim_x_ * me.simPeriod));\n double vy = sign(robot_vel.getPose().getPosition().getY()) * Math.max(0.0, (Math.abs(robot_vel.getPose().getPosition().getY()) - me.acc_lim_y_ * me.simPeriod));\n\n double vel_yaw = LPutils.getYaw(robot_vel.getPose().getOrientation());\n double vth = sign(vel_yaw) * Math.max(0.0, (Math.abs(vel_yaw) - me.acc_lim_th_ * me.simPeriod));\n\n //we do want to check whether or not the command is valid?????????????\n boolean valid_cmd = true; //collision_planner_.checkTrajectory(vx, vy, vth, true);\n\n //if we have a valid command, we'll pass it on, otherwise we'll command all zeros\n if(valid_cmd){\n //ROS_DEBUG(\"Slowing down... using vx, vy, vth: %.2f, %.2f, %.2f\", vx, vy, vth);\n linear.setX(vx);\n linear.setY(vy);\n cmd_vel.setLinear(linear);\n angular.setZ(vth);\n cmd_vel.setAngular(angular);\n return true;\n }\n\n linear.setX(0.0);\n linear.setY(0.0);\n linear.setZ(0.0);\n cmd_vel.setLinear(linear);\n return false;\n }", "protected boolean getSomething(int par1, int par2, int par3, int par4, int x, int y)\r\n {\r\n int var7 = this.guiLeft;\r\n int var8 = this.guiTop;\r\n x -= var7;\r\n y -= var8;\r\n return x >= par1 - 1 && x < par1 + par3 + 1 && y >= par2 - 1 && y < par2 + par4 + 1;\r\n }", "public Vector2f getVelocityAtPoint(final Vector2f point);", "public org.bukkit.util.Vector getVelocity ( ) {\n\t\treturn invokeSafe ( \"getVelocity\" );\n\t}", "boolean withinD(double d, double x, double y, double x2, double y2) {\r\n\t\tif (x == Double.NEGATIVE_INFINITY)\r\n\t\t\tx = x2;\r\n\t\tif (y == Double.NEGATIVE_INFINITY)\r\n\t\t\ty = y2;\r\n\t\tdouble[] origin = {x,y};\r\n\t\tdouble[] point = {x2, y2};\r\n\t\tdouble dist = Physics.len( origin, 0 , point, 0);\r\n\t\treturn dist <= d;\r\n\t}", "@Override\n public void receivedVelocity(Twist velocity) {\n synchronized(_velocityListeners) {\n if (_velocityListeners.isEmpty()) return;\n }\n \n try {\n // Construct message\n Response resp = new Response(UdpConstants.NO_TICKET, DUMMY_ADDRESS);\n resp.stream.writeUTF(UdpConstants.COMMAND.CMD_SEND_VELOCITY.str);\n UdpConstants.writeTwist(resp.stream, velocity);\n \n // Send to all listeners\n synchronized(_velocityListeners) {\n _udpServer.bcast(resp, _velocityListeners.keySet());\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to serialize camera\");\n }\n }", "public static void collide (Planet p1, Planet p2, double dist, Vector vec){\n \n double cosVal = vec.xComponent/dist;\n double sinVal = vec.yComponent/dist;\n \n double P1CalcVelX = (2*p2.mass/(p1.mass+p2.mass)) * p2.xVel;\n double P1CalcVelY = (2*p2.mass/(p1.mass+p2.mass)) * p2.yVel;\n \n double xVelChangeP1 = Math.abs(cosVal * P1CalcVelX) + Math.abs(cosVal * P1CalcVelY);\n double yVelChangeP1 = Math.abs(sinVal * P1CalcVelX) + Math.abs(sinVal * P1CalcVelY);\n \n \n if (p1.xCoor < p2.xCoor){\n xVelChangeP1 = -xVelChangeP1;\n }\n \n if (p1.yCoor < p2.yCoor){\n yVelChangeP1 = -yVelChangeP1; \n }\n \n double P2CalcVelX = (2*p1.mass/(p1.mass+p2.mass)) * p1.xVel;\n double P2CalcVelY = (2*p1.mass/(p1.mass+p2.mass)) * p1.yVel;\n \n double xVelChangeP2 = Math.abs(cosVal * P2CalcVelX) + Math.abs(cosVal * P2CalcVelY);\n double yVelChangeP2 = Math.abs(sinVal * P2CalcVelX) + Math.abs(sinVal * P2CalcVelY);\n\n if (p2.xCoor < p1.xCoor){\n xVelChangeP2 = -xVelChangeP2;\n }\n\n if (p2.yCoor < p1.yCoor){\n yVelChangeP2 = -yVelChangeP2; \n }\n \n p1.changeVel(xVelChangeP1, yVelChangeP1);\n p2.changeVel(xVelChangeP2, yVelChangeP2);\n\n }", "@Basic @Raw\n public double[] getVelocity(){\n \t return this.velocity.getVelocity();\n }", "public void differentiatePosition(Racetrack path, double t0, double t1, double dt, double bound) {\n if (verbose) System.out.println(\"t\\tP(t)\\tV(t)\\t|dP-dt*V|\");\n\n // incrementally sample motion\n Vector3 p0 = new TVector( path.getPosition(t0) );\n for (double t=dt; t<t1; t+=dt) {\n\n // compute finite difference as an estimate for velocity\n Vector3 p1 = new TVector( path.getPosition(t) );\n Vector3 dp = new Vector3(p1).subtract(p0);\n // might consider interpolating from more points for better bounds...\n\n // use analytic velocity at endpoint as your truth\n Vector3 v = new TVector( path.getVelocity(t) );\n\n // find the error\n Vector3 e = new Vector3(v).multiply(dt).subtract(dp);\n double error = e.getAbs();\n\n if (verbose) System.out.println(t+\"\\t\"+p1+\"\\t\"+v+\"\\t\"+error);\n assertTrue(\n \"finite differences varied more than |e|=\"+bound+\n \" from analytic velocity at t=\"+t+\", e=\"+e.toTupleString(),\n (error<bound)\n );\n p0 = p1;\n// v = new Vector3( path.getVelocityVector(t) );\n }\n }", "@Override\n public Point3D getValue() {\n return velocity;\n }", "public boolean detectBound(){\n if(posX < 10){\n posX = 10;\n velX = 0;\n accX = 0;\n return true;\n }\n else if(posX > width - 10){\n posX = width - 10;\n velX = 0;\n accX = 0;\n return true;\n }\n if(posY < 10){\n posY = 10;\n velY = 0;\n accY = 0;\n return true;\n }\n else if(posY > height - 10){\n posY = height - 10;\n velY = 0;\n accY = 0;\n return true;\n }\n return false;\n }", "public void coordinatesShipConverter( Coordinates startCoord, Coordinates endCoord) {\n\t\t\r\n\t\tif (startCoord.getNumber()>endCoord.getNumber()) {\r\n\t\t\tint interm = startCoord.getNumber();\r\n\t\t\tstartCoord.setNumber(endCoord.getNumber());\r\n\t\t\tendCoord.setNumber(interm);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (startCoord.getLetter()>endCoord.getLetter()) {\r\n\t\t\tchar interm = startCoord.getLetter();\r\n\t\t\tstartCoord.setLetter(endCoord.getLetter());\r\n\t\t\tendCoord.setLetter(interm);\r\n\t\t}\r\n\t}", "Vector2 getPosition();", "static boolean Hit(Point shipStart, Point shipEnd, Point shotPoint){\n\n if(shipStart.getDown() == shipEnd.getDown()){ // if start and end on same y coordinate, ship is horizontal\n int y = shipStart.getDown();\n\n for (int x = shipStart.getAcross(); x <= shipEnd.getAcross(); x++){ // loop from left to right of ship position\n if(x == shotPoint.getAcross() && y == shotPoint.getDown())\n return true; // if the coordinates of current point match shot, you hit!\n }\n\n } else if (shipStart.getAcross() == shipEnd.getAcross()) { // if start and end on same x coordinate, ship is vertical\n int x = shipStart.getAcross();\n\n for (int y = shipStart.getDown(); y <= shipEnd.getDown(); y++) {\n if (x == shotPoint.getAcross() && y == shotPoint.getDown())\n return true; // if the coordinates of current point match shot, you hit!\n }\n }\n\n return false; // points given are not horizontal or vertical and not valid, can't hit diagonally\n }", "public abstract Point2D getPosition();", "double getY() { return pos[1]; }", "private boolean isVecInsideYZBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.yCoord>=bounds[1]&& vec.yCoord<=bounds[4] &&vec.zCoord>=bounds[2] && vec.zCoord<=bounds[5];\n }", "public Vec2 \tgetPos(){ \t\t\t\t\treturn bound.getPos();\t\t}", "godot.wire.Wire.Vector2OrBuilder getPositionOrBuilder();", "public CellPosition isInside(Vector2i coord){\n\t\tCellPosition pos;\n\t\tpos = display.gridDisplay.isInside(coord);\n\t\tif(pos.isFound)\n\t\t\treturn pos;\n\t\t\n\t\tpos = canva.isInside(coord);\n\t\treturn pos;\n\t}", "public ObjetoJuegoMovimiento(int xPosition, int yPosition, int xVelocity, int yVelocity, Color color)\r\n {\r\n super(xPosition, yPosition, color);\r\n this.xVel = xVelocity;\r\n this.yVel = yVelocity;\r\n \r\n }", "public abstract Vector getPosition(Rectangle selectionBox);", "public boolean hasVelocityInformation() {\n return _avTable.exists(ATTR_VELOCITY);\n }", "public int getXY(int x, int y);", "public void testPositionNumerically() {\n double endtime = racetrack.getPerimeter() / racetrack.getVelocity();\n double epsilon = 0.000000000001;\n integrateVelocity(racetrack, 0, endtime, n, epsilon);\n }", "public double[] getHitGeoCoord();", "@Override\n\tpublic boolean getCoordsInD3(Coords[] drawCoords) {\n\t\tdrawCoords[0].set(center);\n\t\tdrawCoords[1].set(v1);\n\t\tdrawCoords[2].set(v2);\n\n\t\treturn true;\n\t}", "public boolean setVx( int vx ) {\n\t\t//every velocity is valid depending on the coordinate system\n\t\tthis.vx = vx;\n\t\treturn true;\n\t}", "public abstract Vec2 doorPosition();", "protected boolean validCoord(int row, int col) {\n\t\treturn (row >= 0 && row < b.size() && col >= 0 && col < b.size());\n\t}", "public boolean atVelocity() {\n return false;\n }", "private Vector2d checkOutOfBounds(Vector2d position) {\n\t\t//Check for x\n\t\tif (position.x < 0) position.x = 0;\n\t\tif (position.x > course.TERRAIN_SIZE) position.x = course.TERRAIN_SIZE;\n\t\t//Check for y\n\t\tif (position.y < 0) position.y = 0;\n\t\tif (position.y > course.TERRAIN_SIZE) position.y = course.TERRAIN_SIZE;\n\n\t\treturn new Vector2d(position.x,position.y);\n\t}", "public int getVelocity()\n\t{\n\t\treturn logDx;\n\t}", "public Vector2 getPosition();", "public boolean collidePoint(float mX, float mY){\n return super.shape.contains(mX,mY);\n }", "boolean canPlaceCity(VertexLocation vertLoc);", "boolean testCoords(Tester t) {\n return t.checkExpect(this.p3.xCoord(), 50) && t.checkExpect(this.p4.yCoord(), 600);\n }", "public void controlla_collisioni() {\n\n for (int i = punti; i > 0; i--) {\n\n if ((i > 4) && (x[0] == x[i]) && (y[0] == y[i])) {\n in_gioco = false;\n }\n }\n\n if (y[0] >= ALTEZZA+85) { //devo aggungere +85 perche' l'area di gioco comincia dal punto 100,100\n in_gioco = false;\n }\n\n if (y[0] <= 100) {\n in_gioco = false;\n }\n\n if (x[0] >= LARGHEZZA+85) {\n in_gioco = false;\n }\n\n if (x[0] <= 100) {\n in_gioco = false;\n }\n }", "godot.wire.Wire.Vector2 getPosition();", "public abstract boolean isAllowableMovement(int[] location, double[] direction);", "private boolean locateSafety(String[] coord) {\n\n int[] indices = getIndexFromCoord(coord);\n int x0 = indices[0];\n int y0 = indices[1];\n int x1 = indices[2];\n int y1 = indices[3];\n\n\n if (x0 == x1) {\n // horizontal\n int northIndex = x0 > 0 ? x0 - 1 : -1;\n int southIndex = x0 < Row.values().length - 1 ? x0 + 1 : -1;\n int leftIndex = y0 > 0 ? y0 - 1 : -1;\n int rightIndex = y1 < fields.length - 1 ? y1 + 1 : -1;\n // check north area\n if (northIndex != -1) {\n for (int i = y0; i <= y1; i++) {\n if (fields[northIndex][i].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n // check south area\n if (southIndex != -1) {\n for (int i = y0; i <= y1; i++) {\n if (fields[southIndex][i].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n // check left\n if (leftIndex != -1 && fields[x0][leftIndex].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n // check right\n if (rightIndex != -1 && fields[x0][rightIndex].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n\n } else {\n // vertical\n int leftCol = y0 > 0 ? y0 - 1 : -1;\n int rightCol = y0 < fields.length - 1 ? y0 + 1 : -1;\n int northIndex = x0 > 0 ? x0 - 1 : -1;\n int southIndex = x1 < Row.values().length -1 ? x1 + 1 : -1;\n\n // check north\n if (northIndex != -1 && fields[northIndex][y0].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n // check south\n if (southIndex != -1 && fields[southIndex][y0].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n // check left\n if (leftCol != -1) {\n for (int i = x0; i <= x1; i++) {\n if (fields[i][leftCol].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n // check right\n if (rightCol != -1) {\n for (int i = x0; i <= x1; i++) {\n if (fields[i][rightCol].isShip()) {\n System.out.println(\"Error! You placed it too close to another one. Try again:\");\n return false;\n }\n }\n }\n }\n return true;\n }", "public double[] getPositionCollisionBoundary(){\n\t\tif (!Helper.isValidDouble(this.getTimeCollisionBoundary()) || this.superWorld == null) return null;\n\t\tdouble[] pos = new double[2];\n\t\tpos[0] = this.getPosition()[0] + (this.getVelocity()[0] * this.getTimeCollisionBoundary());\n\t\tpos[1] = this.getPosition()[1] + (this.getVelocity()[1] * this.getTimeCollisionBoundary());\n\t\t\n\t\tif (pos[0] + this.getRadius() >= this.superWorld.getWorldHeight()) pos[0]+= this.getRadius();\n\t\telse if (pos[0] - this.getRadius() >= this.superWorld.getWorldHeight()) pos[0]-= this.getRadius();\n\t\telse if (pos[1] + this.getRadius() >= this.superWorld.getWorldHeight()) pos[1]+= this.getRadius();\n\t\telse\tpos[1] -= this.getRadius();\n\t\t\t\n\t\t\n\t\treturn pos;\n\t}", "public Velocity(double xDir, double yDir, double mag){\n\t\tif(xDir > 1 || xDir < -1 || yDir > 1 || yDir < -1){\n\t\t\tthrow new RuntimeException(\"Invalid Velocity Direction, values should be only from 1 to -1\");\n\t\t}\n\t\tthis.xDir = xDir;\n\t\tthis.yDir = yDir;\n\t\tthis.magnitude = mag;\n\t\t//System.out.println(xDir + \" \" + yDir + \" \" + getAngle() + \" \" + mag);\n\t}", "@Model\n private boolean isValidPosition(double position){\n\t if (this.superWorld == null) return (!Double.isNaN(position));\n\t else return Helper.isValidDouble(position);\n }", "public Coords getCoord() {\r\n\t\treturn coord;\r\n\t}", "private boolean verifyBounds() {\r\n\t if((x>RobotController.BOUNDS_X || y>RobotController.BOUNDS_Y)\r\n\t || x<0 || y<0){\r\n\t return false;\r\n\t }\r\n\t return true;\r\n\t }", "boolean hasLongitude();", "boolean hasLongitude();", "public int checkPathCo(View v, Position pos) {\n\t\tint check = 1;\n\t\tint x = pos.getX();\n\t\tint y = pos.getY();\n\t\t\n\t\ttry {\n\t\t\tif (y == 0 || x == 0)\n\t\t\t\tcheck = 1;\n\t\t\telse\n\t\t\t\tcheck = pathCo[x][y];\n\t\t}\n\t\tcatch (ArrayIndexOutOfBoundsException e) {\n\t\t\tToast.makeText(v.getContext(),\"Out of bounds. Tower cannot be placed here\",Toast.LENGTH_SHORT).show();\n\t\t}\n\t\t\n\t\treturn check;\n\t}", "public boolean validStopCheck(){\n return points.validPolygon();\n }", "public boolean checkAvailability(int x0, int y0, int newX, int newY) {\n\n int vectorX = newX - x0;\n int vectorY = newY - y0;\n\n if ((Math.abs(vectorX) == 1 && Math.abs(vectorY) == 2) ||\n (Math.abs(vectorX) == 2 && Math.abs(vectorY) == 1)) {\n return true;\n }\n\n return false;\n }", "@Override\n\tpublic void update(){\n\t\tif(!isPositionValid())\n\t\t\tescape();\n\t\tdouble dx = velocity.x * speed;\n\t\tdouble dy = velocity.y * speed;\n\t\tprojectedCenter.setLocation(center.x + dx, center.y + dy);\n\t\t//check other ball collisions\n\t\tboolean aloneFlag = true;\n\t\tfor(Ball other : Game.gameField.getBalls()){\n\t\t\tif(other == this)\n\t\t\t\tcontinue;\n\t\t\tcheckCollision(other);\n\t\t\tif(quadrant.equals(other.getQuadrant())){\n\t\t\t\taloneFlag = false;\n\t\t\t}\n\t\t}\n\t\tisAlone = aloneFlag;\n\t\t//check wall collisions\n\t\tfor(Wall wall : Game.gameField.getWalls()){\n\t\t\twall.checkCollision(this, projectedCenter);\n\t\t}\n\t\t//check boundary collisions\n\t\tGame.gameField.checkBoundaryCollision(this, projectedCenter);\n\t\t//collisions may have changed the velocity vector\n\t\tdx = velocity.x * speed;\n\t\tdy = velocity.y * speed;\n\t\tmove(dx, dy);\n\t\t//check if the move is valid, if not move back\n\t\tif(!isPositionValid()){\n\t\t\tmove(-dx, -dy);\n\t\t}\n\t\tquadrant = Calculations.getQuadrant(center, Game.gameField.getWalls());\n\t}", "public Vector2D getVelocity()\n\t{\n\t\treturn velocity;\n\t}", "@Test\n public void testCondition2()\n {\n Double[] coordinates = {5.0, -5.0, 1.0};\n boolean pass = false;\n \n // TEST if an ArgumentOutOfBoundsException is thrown when a value < 0.0:\n try\n {\n _renderable.position(coordinates);\n }\n catch(ArgumentOutOfBoundsException e)\n {\n pass = true;\n }\n \n // TEST if an ArgumentOutOfBoundsException is thrown when a value > 10.0:\n if (pass)\n {\n pass = false;\n coordinates[1] = 10.1;\n try\n {\n _renderable.position(coordinates);\n }\n catch(ArgumentOutOfBoundsException e)\n {\n pass = true;\n }\n }\n \n if (!pass)\n fail(\"ArgumentOutOfBoundsException was not thrown\");\n }", "boolean hasHasLongitude();", "boolean hasHasYCoordinate();", "public nvo_coords.CoordsType getVector() {\n return vector;\n }", "public int[] choisir(int[] coord)\r\n {\r\n int[] res = new int[3]; //tableau a rendre\r\n int x = coord[0];\r\n int y = coord[1]; //récupération des coordonnées\r\n int[] voisinage= new int[4]; //tableau qui regardera les cases adjacentes à la case cherchée\r\n voisinage[0] = getValHaut(x,y);\r\n voisinage[1] = getValDroite(x,y);\r\n voisinage[2] = getValBas(x,y);\r\n voisinage[3] = getValGauche(x,y);\r\n System.out.println(\"je choisis la case \"+x+\" \"+y+\"\");\r\n for(int i = 0; i<voisinage.length; i++ ) //parcours des possibilités si on joue sans créer d'opportunités adverses\r\n {\r\n if (Vision[x][y][i+1] == 0) //si il n'y a pas de trait déja tracé\r\n {\r\n if (voisinage[i] != 2) //si la case adjacente n'a pas déja deux traits dessinés\r\n {\r\n switch (i) //switch pour réagir selon la case a jouer\r\n {\r\n case 0:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n\r\n case 1:\r\n res[0]=x+1;\r\n res[1]=y;\r\n break;\r\n\r\n case 2:\r\n res[0]=x;\r\n res[1]=y+1;\r\n break;\r\n\r\n case 3:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n }\r\n //fin du switch sur i\r\n\r\n res[2]=i%2;\r\n return res;\r\n }\r\n //fin du si la case adjacente a déja 2 traits dessinés\r\n }\r\n //si il n'y a pas de trait déja tracé\r\n }\r\n //fin du for de parcours des possibilités de jouers sans créer d'opportunités adverses\r\n\r\n for(int i=0; i<voisinage.length ; i++ ) //Parcours des possibilités sans recherche d'opportunités\r\n {\r\n if (Vision[x][y][i+1] == 0) {\r\n switch (i) //switch pour réagir selon la case a jouer\r\n {\r\n case 0:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n\r\n case 1:\r\n res[0]=x+1;\r\n res[1]=y;\r\n break;\r\n\r\n case 2:\r\n res[0]=x;\r\n res[1]=y+1;\r\n break;\r\n\r\n case 3:\r\n res[0]=x;\r\n res[1]=y;\r\n break;\r\n }\r\n //fin du switch sur i\r\n\r\n res[2]=i%2;\r\n return res;\r\n }\r\n }\r\n //fin du parcours de possibilité sans recherche\r\n return tabVide;\r\n }", "private boolean isVecInYZ(Vec3 vec) {\n\t\treturn vec == null ? false : vec.yCoord >= this.minY && vec.yCoord <= this.maxY && vec.zCoord >= this.minZ && vec.zCoord <= this.maxZ;\n\t}", "public static void initVelocity() {\n }", "boolean vecinoDisponible2 (int x, int y, int dir){\n\t //Cuidamos los límites.\n\t switch (dir){\n\t case 0: if (y-1 < 0) return false;\n\t\treturn !mundo[x][y-1].visitoAgente;\n\t case 1: if (y+1 >= alto) return false;\n\t\treturn !mundo[x][y+1].visitoAgente;\n\t case 2: if (x-1 < 0) return false;\n\t\treturn !mundo[x-1][y].visitoAgente;\n\t case 3: if (x+1 >= ancho) return false;\n\t\treturn !mundo[x+1][y].visitoAgente;\n\t }\n\n\t return false;\n }", "String getPosY();", "public static ArrayList<Coords> getCoords() {\n System.out.println(\"aha1 \" + thing);\n ArrayList<Coords> result = new ArrayList<Coords>();\n if(thing.equals(\"Bay Ridge\")){\n result = BayRidgeData.getData();\n System.out.println(\"true\");\n }else if(thing.equals(\"BRCA Commons Area\")){\n result = CommonsData.getData();\n }else{\n result = null;\n }\n return result;\n// return BayRidgeData.getData();\n }", "@Test\n public void testCondition3() throws ArgumentOutOfBoundsException\n {\n Double[] coordinates = null;\n Double before[] = _renderable.position();\n _renderable.position(coordinates);\n Double after[] = _renderable.position();\n assertEquals(\"position array changed\", before[0], after[0], 0.01);\n assertEquals(\"position array changed\", before[1], after[1], 0.01);\n assertEquals(\"position array changed\", before[2], after[2], 0.01);\n }", "Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity);", "private boolean pastLine(Point2D.Double q, Point2D.Double s, Point2D.Double r, Point2D.Double vel)\n\t{\t\n\t\tPoint2D.Double normVec = calcNormVec(q.getX(), s.getX(), q.getY(), s.getY());\n\n\t\tdouble top = calcDotProduct(normVec, new Point2D.Double(q.getX() - r.getX(), q.getY() - r.getY()));\n\t\tdouble bottom = calcDotProduct(normVec, vel);\n\n\t\t//if bottom is 0 they will never touch and it will avoid dividing by 0\n\t\tif(bottom == 0 || bottom == -0)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tdouble tHit = top / bottom;\n\n\t\tif(0 <= tHit && tHit <= 1)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean Validate_Input(String attack_coord){\r\n\t\tattack_coord=attack_coord.trim(); //deletes any unecessary whitespace\r\n\t\tif(attack_coord.length()>3) { //format incorrect\r\n\t\t\tdisplay.scroll(\"Input string too long to be proper coordinate\");\r\n\t\t\tdisplay.printScreen();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif(attack_coord.length()<=1){\r\n\t\t\tdisplay.scroll(\"Input string too short to be proper coordinate\");\r\n\t\t\tdisplay.printScreen();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t// Convert the string inputs into integers\r\n\t\tString x_as_string = attack_coord.substring(1);\r\n\t\tycoor = letterToIndex(attack_coord.charAt(0));\r\n\t\t\r\n\t\t\r\n\t\ttry{\r\n\t\t\txcoor=Integer.parseInt(x_as_string);\r\n\t\t\txcoor--; //to match the xcoor with the array position\r\n\t\t} catch (NumberFormatException nfe) {\r\n\t display.scroll(\"Incorrect Format. Enter with letter and then number i.e. B3\");\r\n\t display.printScreen();\r\n\t return false;\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t\tif(!hisBoard.in_Grid(xcoor, ycoor)){\r\n\t\t\tdisplay.scroll(\"The Coordinate input is not within (A-J) or (1-10)\");\r\n\t\t\tdisplay.printScreen();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif(hisBoard.already_attacked(xcoor,ycoor)){\r\n\t\t\tdisplay.scroll(\"Coordinate has already been attacked\");\r\n\t\t\tdisplay.printScreen();\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "double getVelComp(double vel, double angle)\n {\n angle = Math.toRadians(angle);\n double cos = Math.cos(angle);\n double sin = Math.sin(angle);\n ux = vel*cos;\n uy = vel*sin;\n this.angle = angle; \n return ux;\n }", "@Test\n\tpublic void testIfCoordinatesAreValid()\n\t{\n\t\tData d = new Data();\n\t\tCoordinate c = d.getCoordinate(0); // at index 0 is the king's default location (5, 5)\n\t\tassertEquals(c.getX(), 5);\n\t\tassertEquals(c.getY(), 5);\t\n\t}", "private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }" ]
[ "0.5991665", "0.5881999", "0.5718586", "0.5620112", "0.56045294", "0.55936176", "0.55777526", "0.55487204", "0.5538839", "0.5485677", "0.5474301", "0.5424037", "0.54204345", "0.5406354", "0.5406354", "0.5406354", "0.53628623", "0.5357476", "0.52978206", "0.528074", "0.52760154", "0.5267393", "0.52659565", "0.52565897", "0.5255268", "0.5213841", "0.52031344", "0.5162984", "0.5113708", "0.5109484", "0.5109065", "0.509198", "0.5086523", "0.50828886", "0.50799733", "0.5070768", "0.50678474", "0.505728", "0.50554764", "0.50302655", "0.5012149", "0.50110924", "0.50101024", "0.50076777", "0.49990714", "0.49989232", "0.4994209", "0.49840257", "0.49779117", "0.49746048", "0.49609107", "0.49601102", "0.49588022", "0.49572703", "0.49491552", "0.49475345", "0.494675", "0.49457482", "0.49430993", "0.49383932", "0.49351788", "0.49315944", "0.49273783", "0.49218923", "0.4920753", "0.49142677", "0.4909068", "0.48788533", "0.48756495", "0.48747408", "0.48574707", "0.485571", "0.48477495", "0.48459688", "0.48422977", "0.48365635", "0.48254701", "0.48254701", "0.48243397", "0.48241618", "0.48174307", "0.48148328", "0.48130995", "0.48103702", "0.48072368", "0.48017552", "0.47927904", "0.47912744", "0.4788239", "0.47784397", "0.47784138", "0.47772726", "0.47750032", "0.47741917", "0.47720367", "0.4771908", "0.47621003", "0.47617555", "0.47614333", "0.475551" ]
0.72768384
0