query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
ac7979a855b5e2fb2f3a749bcec99d65
Bezeichnung der ArtikelBedingung "ItemConditionID" .dstore.values.StringValue item_condition_description = 10008;
[ { "docid": "2cb80674c173dc6bb931ddcdc8b538ef", "score": "0.5861145", "text": "public io.dstore.values.StringValue.Builder getItemConditionDescriptionBuilder() {\n \n onChanged();\n return getItemConditionDescriptionFieldBuilder().getBuilder();\n }", "title": "" } ]
[ { "docid": "3f9df1980f7534cd0ef29bb3e22ee341", "score": "0.7863316", "text": "io.dstore.values.StringValue getItemConditionDescription();", "title": "" }, { "docid": "25940c5d14c460b59d376b47312eb1ff", "score": "0.7704374", "text": "io.dstore.values.StringValue getItemConditionPartDescription();", "title": "" }, { "docid": "5d8f5c4dd7ee70476d44d37b0cd41e52", "score": "0.7292552", "text": "io.dstore.values.StringValue getItemConditionGroupDescription();", "title": "" }, { "docid": "3a8b6849e7664c8a676a5b378b1515d4", "score": "0.7139072", "text": "io.dstore.values.StringValue getCondition1();", "title": "" }, { "docid": "02e433d404bf13d8c2ef936ddbec0343", "score": "0.65809584", "text": "io.dstore.values.StringValueOrBuilder getItemConditionDescriptionOrBuilder();", "title": "" }, { "docid": "c181407c3f466bb69ae98bbc215b8814", "score": "0.64286953", "text": "io.dstore.values.StringValueOrBuilder getItemConditionPartDescriptionOrBuilder();", "title": "" }, { "docid": "7e9c7188dd15dc91c13d3cb9f5bbaca2", "score": "0.6406953", "text": "io.dstore.values.IntegerValue getItemConditionPartId();", "title": "" }, { "docid": "cfb53e11c3073f4b211177ce89352fdd", "score": "0.6378087", "text": "io.dstore.values.StringValue getValue3();", "title": "" }, { "docid": "e5ced538588dfc52579820f3f6910746", "score": "0.6254267", "text": "io.dstore.values.StringValue getValue1();", "title": "" }, { "docid": "a78ee30e349487596e31e4ade512d301", "score": "0.61131257", "text": "io.dstore.values.StringValue getValue2();", "title": "" }, { "docid": "e6e41e7189c4a63278105ea3b00a874d", "score": "0.6085353", "text": "public String getDescription() \n{\nreturn (String)get_Value(\"Description\");\n}", "title": "" }, { "docid": "b3f474b157004a944dbe6ab7e332975a", "score": "0.6040318", "text": "io.dstore.values.StringValue getValue();", "title": "" }, { "docid": "42824e0f8303d00598973e5fc3615e1f", "score": "0.59851676", "text": "public io.dstore.values.StringValue getItemConditionDescription() {\n if (itemConditionDescriptionBuilder_ == null) {\n return itemConditionDescription_ == null ? io.dstore.values.StringValue.getDefaultInstance() : itemConditionDescription_;\n } else {\n return itemConditionDescriptionBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "9cf88027f18dd4000bd0a5e1a48ac0f5", "score": "0.58877486", "text": "public io.dstore.values.StringValue.Builder getItemConditionPartDescriptionBuilder() {\n \n onChanged();\n return getItemConditionPartDescriptionFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "22864f0e24f3e973485dd66dddd7e2a0", "score": "0.5862642", "text": "io.dstore.values.StringValueOrBuilder getCondition1OrBuilder();", "title": "" }, { "docid": "63104a53d71770291042be0656f97eeb", "score": "0.58582926", "text": "io.dstore.values.StringValueOrBuilder getItemConditionGroupDescriptionOrBuilder();", "title": "" }, { "docid": "4db27e846bf0cf662a81922343ec5d36", "score": "0.5857618", "text": "public Builder setItemConditionDescription(io.dstore.values.StringValue value) {\n if (itemConditionDescriptionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n itemConditionDescription_ = value;\n onChanged();\n } else {\n itemConditionDescriptionBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "d3bb535aa0f51b345808384b3c7ecf9e", "score": "0.5822668", "text": "io.dstore.values.IntegerValue getItemConditionGroupId();", "title": "" }, { "docid": "bbd76fa9ababdedb2adcc9a296afa2ff", "score": "0.58180976", "text": "public io.dstore.values.StringValue getItemConditionPartDescription() {\n if (itemConditionPartDescriptionBuilder_ == null) {\n return itemConditionPartDescription_ == null ? io.dstore.values.StringValue.getDefaultInstance() : itemConditionPartDescription_;\n } else {\n return itemConditionPartDescriptionBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "2566dbcc1cb0543eba2f082a41d8022e", "score": "0.57596374", "text": "public io.dstore.values.StringValueOrBuilder getItemConditionDescriptionOrBuilder() {\n return getItemConditionDescription();\n }", "title": "" }, { "docid": "8731f18e6c75fb269f75488a66cbfded", "score": "0.57411665", "text": "public io.dstore.values.StringValueOrBuilder getItemConditionDescriptionOrBuilder() {\n if (itemConditionDescriptionBuilder_ != null) {\n return itemConditionDescriptionBuilder_.getMessageOrBuilder();\n } else {\n return itemConditionDescription_ == null ?\n io.dstore.values.StringValue.getDefaultInstance() : itemConditionDescription_;\n }\n }", "title": "" }, { "docid": "c365ebec91f35c0c36a7c3d1a3714101", "score": "0.57343215", "text": "public io.dstore.values.StringValue getItemConditionDescription() {\n return itemConditionDescription_ == null ? io.dstore.values.StringValue.getDefaultInstance() : itemConditionDescription_;\n }", "title": "" }, { "docid": "8ac75387b26f2d1c34a4a3c01dacbbbd", "score": "0.5664576", "text": "public io.dstore.values.StringValueOrBuilder getItemConditionPartDescriptionOrBuilder() {\n return getItemConditionPartDescription();\n }", "title": "" }, { "docid": "fa454b9ee4938bbfe06a146237a037e1", "score": "0.5592012", "text": "public io.dstore.values.StringValueOrBuilder getItemConditionPartDescriptionOrBuilder() {\n if (itemConditionPartDescriptionBuilder_ != null) {\n return itemConditionPartDescriptionBuilder_.getMessageOrBuilder();\n } else {\n return itemConditionPartDescription_ == null ?\n io.dstore.values.StringValue.getDefaultInstance() : itemConditionPartDescription_;\n }\n }", "title": "" }, { "docid": "003deaa29a4c527f7030cd8a7a6e422e", "score": "0.55836004", "text": "public void setItemValue(String itemValue) {\n this.itemValue = itemValue;\n }", "title": "" }, { "docid": "011bfb3008f568526424afbad4a1724b", "score": "0.5551669", "text": "public io.dstore.values.StringValue getItemConditionPartDescription() {\n return itemConditionPartDescription_ == null ? io.dstore.values.StringValue.getDefaultInstance() : itemConditionPartDescription_;\n }", "title": "" }, { "docid": "7c2d442ac4179f7a71d40b7aa94c39e9", "score": "0.5537845", "text": "public Builder setItemConditionPartDescription(io.dstore.values.StringValue value) {\n if (itemConditionPartDescriptionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n itemConditionPartDescription_ = value;\n onChanged();\n } else {\n itemConditionPartDescriptionBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "12a15af6b944cbb7a60665106477fee3", "score": "0.55095404", "text": "public Builder setItemConditionDescription(\n io.dstore.values.StringValue.Builder builderForValue) {\n if (itemConditionDescriptionBuilder_ == null) {\n itemConditionDescription_ = builderForValue.build();\n onChanged();\n } else {\n itemConditionDescriptionBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "title": "" }, { "docid": "c375ffbac868b3ab6365eecea639ac7b", "score": "0.5479019", "text": "String getItemStringIdText(XBCItem item);", "title": "" }, { "docid": "69ad5df15362077945d9ccc47927bde4", "score": "0.5471943", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder> \n getItemConditionDescriptionFieldBuilder() {\n if (itemConditionDescriptionBuilder_ == null) {\n itemConditionDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder>(\n getItemConditionDescription(),\n getParentForChildren(),\n isClean());\n itemConditionDescription_ = null;\n }\n return itemConditionDescriptionBuilder_;\n }", "title": "" }, { "docid": "06cd532499102fcec85f2fed49af32bd", "score": "0.5461919", "text": "public interface IConditionType extends Serializable {\n\n /**\n * @return the application.\n * Corresponds to the database field <code>/SAPCND/T685-KAPPL</code>.\n */\n public String getApplication();\n\n /**\n * @return the usage.\n * Corresponds to the database field <code>/SAPCND/T685-KVEWE</code>.\n */\n public String getUsage();\n\n /**\n * @return the name of the condition type.\n * Corresponds to the database field <code>/SAPCND/T685-KSCHL</code>.\n */\n public String getName();\n\n /**\n * @return the access sequence object.\n */\n public IAccessSequence getAccessSequence();\n\n /**\n * @return my description.\n * Corresponds to the database field <code>/SAPCND/T685T-VTEXT</code>.\n */\n public String getDescription();\n\n /**\n * @return the name of the referenceConditionType.\n * Corresponds to the database field <code>/SAPCND/T685-RKSCHL</code>.\n */\n public IConditionType getReferenceConditionType();\n\n /**\n * @return name of field for condition access timestamp\n */\n public String getConditionAccessTimestampName();\n}", "title": "" }, { "docid": "363dedb82a9b45894779e9722adfc1c3", "score": "0.54476035", "text": "public io.dstore.values.StringValue getItemConditionGroupDescription() {\n if (itemConditionGroupDescriptionBuilder_ == null) {\n return itemConditionGroupDescription_ == null ? io.dstore.values.StringValue.getDefaultInstance() : itemConditionGroupDescription_;\n } else {\n return itemConditionGroupDescriptionBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "4dc4104488d061b43abbef76571796df", "score": "0.5440756", "text": "public Builder setItemConditionPartDescription(\n io.dstore.values.StringValue.Builder builderForValue) {\n if (itemConditionPartDescriptionBuilder_ == null) {\n itemConditionPartDescription_ = builderForValue.build();\n onChanged();\n } else {\n itemConditionPartDescriptionBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "title": "" }, { "docid": "cfa6a4c4769dd93a8c2db271268d045b", "score": "0.5438354", "text": "String valueDescription();", "title": "" }, { "docid": "f712fb4047f632fd891ebdea8f29babb", "score": "0.536316", "text": "boolean hasItemConditionDescription();", "title": "" }, { "docid": "286ab13647337532a3788eeeb35b65d5", "score": "0.53571945", "text": "@Override\n public String toString() {\n return \"1. \" + rb.getString(\"Title.DatabaseCfg\");\n }", "title": "" }, { "docid": "81a895332cea588d225c438bdefd14ed", "score": "0.53540605", "text": "public io.dstore.values.StringValue.Builder getItemConditionGroupDescriptionBuilder() {\n \n onChanged();\n return getItemConditionGroupDescriptionFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "cfc8c112a4489916030e0e3d2b6a60d6", "score": "0.5344888", "text": "public interface Item extends org.apache.xmlbeans.XmlString\r\n {\r\n public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)\r\n org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Item.class.getClassLoader(), \"schemaorg_apache_xmlbeans.system.s7EBB4BC9E00A8FB74293D27D6A5BA466\").resolveHandle(\"anon701dtype\");\r\n \r\n org.apache.xmlbeans.StringEnumAbstractBase enumValue();\r\n void set(org.apache.xmlbeans.StringEnumAbstractBase e);\r\n \r\n static final Enum ENTITY = Enum.forString(\"Entity\");\r\n static final Enum ATTRIBUTE = Enum.forString(\"Attribute\");\r\n static final Enum RELATIONSHIP = Enum.forString(\"Relationship\");\r\n static final Enum LABEL = Enum.forString(\"Label\");\r\n static final Enum OPTION_SET = Enum.forString(\"OptionSet\");\r\n \r\n static final int INT_ENTITY = Enum.INT_ENTITY;\r\n static final int INT_ATTRIBUTE = Enum.INT_ATTRIBUTE;\r\n static final int INT_RELATIONSHIP = Enum.INT_RELATIONSHIP;\r\n static final int INT_LABEL = Enum.INT_LABEL;\r\n static final int INT_OPTION_SET = Enum.INT_OPTION_SET;\r\n \r\n /**\r\n * Enumeration value class for com.microsoft.schemas.xrm._2011.metadata.query.DeletedMetadataFilters$Item.\r\n * These enum values can be used as follows:\r\n * <pre>\r\n * enum.toString(); // returns the string value of the enum\r\n * enum.intValue(); // returns an int value, useful for switches\r\n * // e.g., case Enum.INT_ENTITY\r\n * Enum.forString(s); // returns the enum value for a string\r\n * Enum.forInt(i); // returns the enum value for an int\r\n * </pre>\r\n * Enumeration objects are immutable singleton objects that\r\n * can be compared using == object equality. They have no\r\n * public constructor. See the constants defined within this\r\n * class for all the valid values.\r\n */\r\n static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase\r\n {\r\n /**\r\n * Returns the enum value for a string, or null if none.\r\n */\r\n public static Enum forString(java.lang.String s)\r\n { return (Enum)table.forString(s); }\r\n /**\r\n * Returns the enum value corresponding to an int, or null if none.\r\n */\r\n public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }\r\n \r\n private Enum(java.lang.String s, int i)\r\n { super(s, i); }\r\n \r\n static final int INT_ENTITY = 1;\r\n static final int INT_ATTRIBUTE = 2;\r\n static final int INT_RELATIONSHIP = 3;\r\n static final int INT_LABEL = 4;\r\n static final int INT_OPTION_SET = 5;\r\n \r\n public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =\r\n new org.apache.xmlbeans.StringEnumAbstractBase.Table\r\n (\r\n new Enum[]\r\n {\r\n new Enum(\"Entity\", INT_ENTITY),\r\n new Enum(\"Attribute\", INT_ATTRIBUTE),\r\n new Enum(\"Relationship\", INT_RELATIONSHIP),\r\n new Enum(\"Label\", INT_LABEL),\r\n new Enum(\"OptionSet\", INT_OPTION_SET),\r\n }\r\n );\r\n private static final long serialVersionUID = 1L;\r\n private java.lang.Object readResolve() { return forInt(intValue()); } \r\n }\r\n \r\n /**\r\n * A factory class with static methods for creating instances\r\n * of this type.\r\n */\r\n \r\n public static final class Factory\r\n {\r\n public static com.microsoft.schemas.xrm._2011.metadata.query.DeletedMetadataFilters.Item newValue(java.lang.Object obj) {\r\n return (com.microsoft.schemas.xrm._2011.metadata.query.DeletedMetadataFilters.Item) type.newValue( obj ); }\r\n \r\n public static com.microsoft.schemas.xrm._2011.metadata.query.DeletedMetadataFilters.Item newInstance() {\r\n return (com.microsoft.schemas.xrm._2011.metadata.query.DeletedMetadataFilters.Item) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }\r\n \r\n public static com.microsoft.schemas.xrm._2011.metadata.query.DeletedMetadataFilters.Item newInstance(org.apache.xmlbeans.XmlOptions options) {\r\n return (com.microsoft.schemas.xrm._2011.metadata.query.DeletedMetadataFilters.Item) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }\r\n \r\n private Factory() { } // No instance of this class allowed\r\n }\r\n }", "title": "" }, { "docid": "bb9618293187c3c385de14a86bf5b54c", "score": "0.53267044", "text": "io.dstore.values.StringValue getInformationIdList();", "title": "" }, { "docid": "859f801105322299392517673623b565", "score": "0.5299904", "text": "default String getStringValue() {\n return String.format(\"\\\"%s\\\"\", getValue().get(1));\n }", "title": "" }, { "docid": "fa965abe7405dde8621c2be88d4bfee1", "score": "0.52959365", "text": "public void setDescription3 (String Description3);", "title": "" }, { "docid": "e0d120f75ec9be2844c99af1080e227f", "score": "0.5279487", "text": "public io.dstore.values.StringValue getItemConditionGroupDescription() {\n return itemConditionGroupDescription_ == null ? io.dstore.values.StringValue.getDefaultInstance() : itemConditionGroupDescription_;\n }", "title": "" }, { "docid": "a5d5bbfef0cfd6e972562a27f321dad1", "score": "0.526616", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder> \n getItemConditionPartDescriptionFieldBuilder() {\n if (itemConditionPartDescriptionBuilder_ == null) {\n itemConditionPartDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder>(\n getItemConditionPartDescription(),\n getParentForChildren(),\n isClean());\n itemConditionPartDescription_ = null;\n }\n return itemConditionPartDescriptionBuilder_;\n }", "title": "" }, { "docid": "c9012f1681b5faf1592748edfa25372f", "score": "0.52566606", "text": "String getValueID();", "title": "" }, { "docid": "cf2d56da9b3eca857cd10c3054dc8401", "score": "0.52374077", "text": "public void setAD_Workflow_ID (int AD_Workflow_ID)\n{\nset_ValueNoCheck (\"AD_Workflow_ID\", new Integer(AD_Workflow_ID));\n}", "title": "" }, { "docid": "109c8bb4e0502faceb8e78fd3cbdf17f", "score": "0.5226325", "text": "public String getValueDescription();", "title": "" }, { "docid": "c4cea71913a59d0f47740178af36c5c0", "score": "0.52219254", "text": "public String _addsupplier(b4a.diplomna.types._supplier _s) throws Exception{\n_itemssuppliers.Put((Object)(_s.ID),(Object)(_s));\n //BA.debugLineNum = 121;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "3251a6a96ccea1456a9ccf89eea08c5f", "score": "0.52202755", "text": "public void setAD_WF_Node_ID (int AD_WF_Node_ID)\n{\nset_Value (\"AD_WF_Node_ID\", new Integer(AD_WF_Node_ID));\n}", "title": "" }, { "docid": "848a4fa063dbc222ac190af521c8a25f", "score": "0.5207031", "text": "public io.dstore.values.StringValueOrBuilder getItemConditionGroupDescriptionOrBuilder() {\n return getItemConditionGroupDescription();\n }", "title": "" }, { "docid": "0f49f63e489975987729c547bb4fcad8", "score": "0.5178887", "text": "private void setItemDefaultValue(ZcQxItem item) {\n item.setItemType(\"02\");//默认材料费\r\n }", "title": "" }, { "docid": "c291e2ac0d592b259080feddd12d00cd", "score": "0.5176084", "text": "public io.dstore.values.StringValueOrBuilder getItemConditionGroupDescriptionOrBuilder() {\n if (itemConditionGroupDescriptionBuilder_ != null) {\n return itemConditionGroupDescriptionBuilder_.getMessageOrBuilder();\n } else {\n return itemConditionGroupDescription_ == null ?\n io.dstore.values.StringValue.getDefaultInstance() : itemConditionGroupDescription_;\n }\n }", "title": "" }, { "docid": "b36222ab70525d25a57c9963015bc804", "score": "0.51758516", "text": "public interface IfcCountryServiceApiLiterals {\n\t\n\tpublic static final String APP_ID \t\t\t\t\t\t\t\t= \"PS\";\n\tpublic static final String TBL_DJSUPNET_PARAM \t\t\t\t= \"DJDBU01.DJSUPNET_PARAM\";\n\tpublic static final String TBL_ADVGIRP_COUNTRY \t\t\t\t= \"ADVGIRP.COUNTRY\";\n\t\n\t\n}", "title": "" }, { "docid": "994a21dbbb69b66b0e3eb3fef95e2e01", "score": "0.51736414", "text": "@Override\n public String toString() {\n return \"\\\"\"+value+\" \"+unit+\"\\\"\";\n }", "title": "" }, { "docid": "55813be908c1bb5b1976438aac0d0e83", "score": "0.5151635", "text": "public void setDescription4 (String Description4);", "title": "" }, { "docid": "4f45605a3483e4aa98fb8b473bed691f", "score": "0.5144501", "text": "public Builder setItemConditionGroupDescription(io.dstore.values.StringValue value) {\n if (itemConditionGroupDescriptionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n itemConditionGroupDescription_ = value;\n onChanged();\n } else {\n itemConditionGroupDescriptionBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "d1704b7427b6224a57cbecaa90c02a48", "score": "0.51407665", "text": "public void setA_Asset_ID (int A_Asset_ID)\n{\nset_Value (\"A_Asset_ID\", new Integer(A_Asset_ID));\n}", "title": "" }, { "docid": "9ff3998ad7ded0db64825d842bbc05a8", "score": "0.51390165", "text": "io.dstore.values.IntegerValueOrBuilder getItemConditionPartIdOrBuilder();", "title": "" }, { "docid": "6b779168b1b8f993054bdfcdb55a585f", "score": "0.5126723", "text": "public String getCondition(){\n return this.skyCondition.value;\n }", "title": "" }, { "docid": "4a59c5e3c1906b4d239c98b26b5e2955", "score": "0.5097881", "text": "boolean hasItemConditionPartDescription();", "title": "" }, { "docid": "9582fc56b15e429bf865aad388bcb97c", "score": "0.5096446", "text": "public String toString () {\r\n\t\treturn \"[BusinessItem \" + super.toString() + \" (value:\" + value + \")]\";\r\n\t}", "title": "" }, { "docid": "cf9d919c3ab4c3a59a3403ba317dae2b", "score": "0.5086938", "text": "public io.dstore.values.IntegerValue.Builder getItemConditionPartIdBuilder() {\n \n onChanged();\n return getItemConditionPartIdFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "919297953aad5880b79119e3dd5118a2", "score": "0.50672114", "text": "public void setDescription(String value) {\n this.description = value;\n }", "title": "" }, { "docid": "4e063d111544f467fe8118497be29f31", "score": "0.5066612", "text": "public abstract String getValue(InventoryItem i);", "title": "" }, { "docid": "61e7a9ba5707fe08d7d0a0f9f999a137", "score": "0.50648016", "text": "XBCXStri getItemStringId(XBCItem item);", "title": "" }, { "docid": "76ab1a233312cd15e4fda6ca08c89a76", "score": "0.5058979", "text": "public void setDescription6 (String Description6);", "title": "" }, { "docid": "6d59a303960d2330e0c935285382607b", "score": "0.5056536", "text": "public void setValue(String description);", "title": "" }, { "docid": "adad78956e9014910db320b76da4d358", "score": "0.5056043", "text": "amdocs.iam.pd.webservices.productattrrel.productdetailsoutput.Values addNewValues();", "title": "" }, { "docid": "d744ae2d2d3db18bbc500e93e1397ab1", "score": "0.50270647", "text": "public interface EntruckingDetailsConstant {\n\n\n //=========实体对应数据库字段start========//\n String ID = \"id\";\n /**\n * 装车单号\n */\n String ENTRUCKING_NO = \"entrucking_no\";\n /**\n * 运单号\n */\n String TASNSPORT_ORDER_NO = \"transport_order_no\";\n /**\n * 包裹号\n */\n String PACKAGE_NO = \"package_no\";\n /**\n * 状态\n */\n String STATE = \"state\";\n /**\n * 创建时间\n */\n String CREATE_TIME = \"create_time\";\n //=========实体对应数据库字段end========//\n\n}", "title": "" }, { "docid": "597fca39e16faabb8ac661fdf7bcd8d2", "score": "0.50270396", "text": "public void setDescription (String Description)\n{\nif (Description != null && Description.length() > 255)\n{\nlog.warning(\"Length > 255 - truncated\");\nDescription = Description.substring(0,254);\n}\nset_Value (\"Description\", Description);\n}", "title": "" }, { "docid": "8f3bcdf5b4fbe50f3bb6885e77c804ce", "score": "0.50077486", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder> \n getItemConditionGroupDescriptionFieldBuilder() {\n if (itemConditionGroupDescriptionBuilder_ == null) {\n itemConditionGroupDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder>(\n getItemConditionGroupDescription(),\n getParentForChildren(),\n isClean());\n itemConditionGroupDescription_ = null;\n }\n return itemConditionGroupDescriptionBuilder_;\n }", "title": "" }, { "docid": "4dacf6fe9cac724a754cb5ec6ee86455", "score": "0.5000033", "text": "public Builder mergeItemConditionDescription(io.dstore.values.StringValue value) {\n if (itemConditionDescriptionBuilder_ == null) {\n if (itemConditionDescription_ != null) {\n itemConditionDescription_ =\n io.dstore.values.StringValue.newBuilder(itemConditionDescription_).mergeFrom(value).buildPartial();\n } else {\n itemConditionDescription_ = value;\n }\n onChanged();\n } else {\n itemConditionDescriptionBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "44cf8b5e9741380093411ae748d5a5ee", "score": "0.4995295", "text": "io.dstore.values.StringValue getNodeDescription();", "title": "" }, { "docid": "1b06c11ca0711a3f5e42ffc0c238b3da", "score": "0.49863327", "text": "public Builder setItemConditionGroupDescription(\n io.dstore.values.StringValue.Builder builderForValue) {\n if (itemConditionGroupDescriptionBuilder_ == null) {\n itemConditionGroupDescription_ = builderForValue.build();\n onChanged();\n } else {\n itemConditionGroupDescriptionBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "title": "" }, { "docid": "ba7ce6c05737a943a891b78591f1f841", "score": "0.4986227", "text": "public void setVariant(edu.uci.isr.xarch.instance.IDescription value);", "title": "" }, { "docid": "45e7efeb12f75f4cd1de39546ae7121e", "score": "0.49798903", "text": "public void setDescription(String description){this.description= description;}", "title": "" }, { "docid": "a0220b7da2f30ba10fb095f84a5c4ffc", "score": "0.49781376", "text": "public void setDescription1 (String Description1);", "title": "" }, { "docid": "324ad88b75e4e459cc60f763b1e4c8b3", "score": "0.4977896", "text": "public io.dstore.values.StringValue getCondition1() {\n if (condition1Builder_ == null) {\n return condition1_ == null ? io.dstore.values.StringValue.getDefaultInstance() : condition1_;\n } else {\n return condition1Builder_.getMessage();\n }\n }", "title": "" }, { "docid": "1ab1288c7ef7e817ff2cf7e6989720e1", "score": "0.4975765", "text": "public String getName() \n{\nreturn (String)get_Value(\"Name\");\n}", "title": "" }, { "docid": "9b1701fe9e7634ece37e74d39bdc70cd", "score": "0.49658477", "text": "io.dstore.values.StringValueOrBuilder getValue3OrBuilder();", "title": "" }, { "docid": "43ba0b37044ebb3461e4ef0e2ae67942", "score": "0.49526662", "text": "public void setDescription5 (String Description5);", "title": "" }, { "docid": "da36ac39acba537b996f77698929f090", "score": "0.49488476", "text": "x0201.oecdStandardAuditFileTaxPT1.SAFPTtextTypeMandatoryMax200Car xgetProductDescription();", "title": "" }, { "docid": "da36ac39acba537b996f77698929f090", "score": "0.49488476", "text": "x0201.oecdStandardAuditFileTaxPT1.SAFPTtextTypeMandatoryMax200Car xgetProductDescription();", "title": "" }, { "docid": "da36ac39acba537b996f77698929f090", "score": "0.49488476", "text": "x0201.oecdStandardAuditFileTaxPT1.SAFPTtextTypeMandatoryMax200Car xgetProductDescription();", "title": "" }, { "docid": "bc301b65fd539c3eb7ac09c295e2a715", "score": "0.49376166", "text": "@Test\n\tpublic void itemDetailsMustBeInsertedCorrectly() {\n\t\tassertEquals(\"Item Name is correct\", \"cookie\", store_map.entrySet().iterator().next().getValue().getName());\n\t}", "title": "" }, { "docid": "cd3aecf58e971f7ecacf7da73003f5f7", "score": "0.49368787", "text": "void details(String str){\n new itemData().execute(\"item\", str);\n }", "title": "" }, { "docid": "55b8f2d95d2b02da021a453bf92e6f1b", "score": "0.49349108", "text": "public void setQuantifiable(String value) {\n setAttributeInternal(QUANTIFIABLE, value);\n }", "title": "" }, { "docid": "347d1558d9cc936bb8ab787ecb63f537", "score": "0.4932675", "text": "public interface ConditionPropertiesEditionPart {\n\n\t/**\n\t * @return the description\n\t * \n\t */\n\tpublic String getDescription();\n\n\t/**\n\t * Defines a new description\n\t * @param newValue the new description to set\n\t * \n\t */\n\tpublic void setDescription(String newValue);\n\n\n\t/**\n\t * @return the expression\n\t * \n\t */\n\tpublic String getExpression();\n\n\t/**\n\t * Defines a new expression\n\t * @param newValue the new expression to set\n\t * \n\t */\n\tpublic void setExpression(String newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "title": "" }, { "docid": "fb705182b8afed330884d6271d3ff26d", "score": "0.4930849", "text": "@Override\n public String toString()\n {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[\");\n sb.append(iclId);\n sb.append(\"]:\");\n sb.append(value);\n return sb.toString();\n }", "title": "" }, { "docid": "859d4bfc18a846565997100a11f8c12a", "score": "0.49307686", "text": "public void setID(String ID) {\n\t\tthis.id=ID;\r\n\t\tthis.item_value.put(\"id\", ID);\r\n\t}", "title": "" }, { "docid": "56ed69a224384e0f29582dbeb4ceff1c", "score": "0.49267828", "text": "Item(int ID, String title, int dailyrent){\n this.ID = ID;\n this.title = title;\n this.dailyRent = dailyrent;\n this.rentStatus = \"Available\";\n }", "title": "" }, { "docid": "5c2f80fec232a2caac467adb158ee367", "score": "0.49220043", "text": "private TypeDictionaryDicoVentStabiliteAir(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "title": "" }, { "docid": "3af0b121674ee159672db866de18b390", "score": "0.4916987", "text": "@Override\n\tpublic String toString(){\n\t\tString dur = \"CONTINUOUS\";\n\t\tif(duration == 0){\n\t\t\tdur = \"ONCE\";\n\t\t}\n\t\telse if(duration == -1){\n\t\t\tdur = \"PASSIVE\";\n\t\t}\n\t\tString output = \"Item Duration is \" + dur;\n\t\tif(dur.equals(\"CONTINUOUS\")){\n\t\t\toutput += \" with a period of \" + duration + \" hours.\";\n\t\t}\n\t\toutput\t+= \" It costs \" + cost + \" Gold. The store only has \" + supply+ \" units available. \";\n\t\toutput += \"It only affects \" + attributeAffected + \" by \" + effectMagnitude + \". And it can only target \" + type;\n\t\tif(specific.startsWith(\"NOT \")){\n\t\t\toutput += \" It can affect all available collumns of criteria but \" + specific;\n\t\t}\n\t\telse if(specific.startsWith(\"ONLY \")){\n\t\t\toutput += \" It can affect \" + specific;\n\t\t}\n\t\treturn output;\n\t}", "title": "" }, { "docid": "235b0610900886bda2818279ec12a85a", "score": "0.49144042", "text": "java.lang.String getQuestItemRes();", "title": "" }, { "docid": "ad849e42a76c964759948e9a41f22ed2", "score": "0.49134094", "text": "public String getItemValue() {\n return itemValue;\n }", "title": "" }, { "docid": "47a0490a7860b324aaaedb39bfcee45a", "score": "0.49045157", "text": "public void setDescription2 (String Description2);", "title": "" }, { "docid": "d551047390f77ca3315999c1c606f7cc", "score": "0.48817194", "text": "private TypeDictionaryDicoCapaciteFeuxTypeGeneralArme(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "title": "" }, { "docid": "cc5585fc859258d2f2f098e2c96e4550", "score": "0.48741037", "text": "@Override\n public String toString() {\n return \"item name: \"+ this.getName() + \" itemDescriptionription of the item: \" + this.getLongDescription();\n }", "title": "" }, { "docid": "016c4740593c79ff7e578028fdc379a4", "score": "0.48709077", "text": "@Override\n\tpublic void tickString(int tickerId, int tickType, String value)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "e3516cada31ee5f02bd127894ccbf7cb", "score": "0.48676416", "text": "String getCondition();", "title": "" }, { "docid": "e3516cada31ee5f02bd127894ccbf7cb", "score": "0.48676416", "text": "String getCondition();", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "7899b895c2fa1b58eb10fc47fb47492e", "score": "0.0", "text": "@Override\n\tpublic int getLine() {\n\t\treturn line;\n\t}", "title": "" } ]
[ { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.69742316", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.68059677", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "34b43810a805e0d48661629f62b35f2b", "score": "0.6648208", "text": "@Override\r\n\tpublic void 위험물회피() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "096eb77080c8c192fe461650f49ca14b", "score": "0.65149313", "text": "@Override\r\n public void catering() {\r\n\r\n }", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.64755934", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64358324", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.6414421", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc5af39f74474ffdb7b456b8a10d5774", "score": "0.6357822", "text": "@Override\r\n\tpublic void 길안내() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c18c3127184f8abd7be145ddb9d4c3e6", "score": "0.6348844", "text": "@Override\r\n\tpublic void 온도내리기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bde53ee3de9072b04cd122133e6162a1", "score": "0.6326172", "text": "public void soigner() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fdbf96893589fef5cdd1a8fe92e98938", "score": "0.62869394", "text": "@Override\n\tpublic void enfria() {\n\n\t}", "title": "" }, { "docid": "9ee6be05232928533401d708d518b6ed", "score": "0.62742454", "text": "@Override\r\n\t\t\tpublic void enginetype() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.626611", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.61844474", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.61519784", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce01e16cbc1fc0a29d28a4365b63f79d", "score": "0.6131432", "text": "@Override\n\tprotected void specialFuntion() {\n\t\t\n\t}", "title": "" }, { "docid": "c387be8fe936bea8d505f3a779d6ba15", "score": "0.61139184", "text": "@Override\n\tpublic void actualise() {\n\t\t\n\t}", "title": "" }, { "docid": "30c236da9912ee76f7962e7da2c72b59", "score": "0.6074856", "text": "@Override\n\tpublic void chante() {\n\t\t\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.605568", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f13a29996996a34a710d85285e104a7f", "score": "0.6034386", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "90586632a4af36d51003a1554ebef902", "score": "0.6030915", "text": "public void mo24205Oz() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "0b7a2d4389f8d1afdedab87d2ac4fb96", "score": "0.5973926", "text": "@Override\n\tprotected void generateData() {\n\t\treturn;\t\t\n\t}", "title": "" }, { "docid": "43f0eb79e8610935222f70ad7a047f4f", "score": "0.59676504", "text": "protected void Referesh() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "69f727ad790d8c02f9f110fb4190bf05", "score": "0.5958382", "text": "@Override\r\n\tpublic void 에어백펼치기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4fd121321f2d50da2f5700be65d017d8", "score": "0.59534895", "text": "@Override\n\tpublic void filngtonext() {\n\t\t\n\t}", "title": "" }, { "docid": "5289bcfa483e278c4782f4e45b7117eb", "score": "0.59168786", "text": "@Override\n\tpublic void generer() {\n\t\t\n\t}", "title": "" }, { "docid": "c52abf264dc130278399a6a822295dca", "score": "0.5916093", "text": "@Override\n\t\t\tpublic void e() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "661a589ba018609d85af5ba0fc651d02", "score": "0.5909626", "text": "@Override\n\t\tprotected void process() {\n\t\t}", "title": "" }, { "docid": "661a589ba018609d85af5ba0fc651d02", "score": "0.5909626", "text": "@Override\n\t\tprotected void process() {\n\t\t}", "title": "" }, { "docid": "c28afddea09ba99a1adc54b371dabaa1", "score": "0.59047043", "text": "@Override\r\n\tpublic void 온도높이기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "6827ba40809e6f9bad9a043036edaa04", "score": "0.58847684", "text": "@Override\r\n\tpublic void dormir() {\n\t}", "title": "" }, { "docid": "6afb1e3a721c7314f12581b77ae35716", "score": "0.5883849", "text": "@Override\n\tprotected void colisao() {\n\t\t\n\t}", "title": "" }, { "docid": "40a41a107fa03a270a78b03d0bcf910d", "score": "0.58717483", "text": "private void ergebnisAuswerten() {\n\n\t}", "title": "" }, { "docid": "c5fa2315669c0925b60762f7cca5f0f6", "score": "0.58611465", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.58465064", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "fa29da40be3a8b33b07b21fe8e0ba298", "score": "0.5842648", "text": "@Override\n\tpublic void notity() {\n\t\t\n\t}", "title": "" }, { "docid": "4ff7fd5d2a0aebc561e81557b528262a", "score": "0.58340675", "text": "@Override\n\tprotected void initialize() {\n\n }", "title": "" }, { "docid": "f323cb003520a5608cea47c5412447e4", "score": "0.58295655", "text": "@Override\n\t\t\t\tpublic int characteristics() {\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "title": "" }, { "docid": "089be79d90be02605e37d2a48b09e194", "score": "0.58192337", "text": "@Override\n\tpublic void gril() {\n\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5791661", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.5789139", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "79a702a1409937a9a2dd8f8167323190", "score": "0.5784611", "text": "@Override\n\tvoid promocja() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "86ca2b6b7e0174532c4a1f8a4dec7946", "score": "0.577024", "text": "@Override\r\n\tpublic void 주차보조() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e74841359f2b616460c1fcf1e3e0b696", "score": "0.57600427", "text": "@Override\n\tpublic void Oeffne_Schadenanlage() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.5750039", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f98329c4ce112f2ebcf93e4b478576a0", "score": "0.5745665", "text": "@Override\r\n\tpublic void work4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6cfde2be0b51f55a421cdc3e28609c66", "score": "0.57384264", "text": "@Override\n\tprotected void salario() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "f5fd4f1b89ecbb54b8b64a1b9e40552c", "score": "0.5733982", "text": "protected void mo7431b() {\n }", "title": "" }, { "docid": "3fb97b46c147b19f8180197325c66d34", "score": "0.5722489", "text": "@Override\n public void quite() {\n }", "title": "" }, { "docid": "f448e47f2da25727e964a3718545f012", "score": "0.5718643", "text": "public final void mo93547c() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5714686", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "d7c48eb628caa38ca564de355edb7e6e", "score": "0.5709367", "text": "@Override\n public int getType() {\n return 1;\n }", "title": "" }, { "docid": "593053b99bc5abca6d010d9e21a31e6b", "score": "0.570741", "text": "@Override\r\n\tpublic void 자율주행하기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28872bba7a5c17cad13c73f21624cabc", "score": "0.57049847", "text": "@Override\n\tpublic void CreateRs() {\n\t\t\n\t}", "title": "" }, { "docid": "8e056894cd061aea767d71a9c1b43d97", "score": "0.5701457", "text": "@Override\n\tpublic void init(){\n\t}", "title": "" }, { "docid": "2102a3691307d06f0d2ee35d192fccc6", "score": "0.57008916", "text": "protected Encontro() {\n\t}", "title": "" }, { "docid": "e8f6ecd3f06f1f0e76ca511991b76265", "score": "0.5697829", "text": "protected void defesa(){}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5696396", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5676146", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.567194", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "75e13fc47dcc1e84b4615e5de4d4c091", "score": "0.56708115", "text": "@Override\n public String getName() {\n return null;\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669723", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "81488a3212e9004be8808ba15e91f1a5", "score": "0.56636477", "text": "public final void mo93546b() {\n }", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.5662892", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "da07444f023c4f45aa766ef285cccf1c", "score": "0.56608945", "text": "@Override\n\tpublic void 吃斋() {\n\n\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" } ]
bc15916e74a4d6c7701b9b076d11d2cf
/ returns a String representation of the Bank return String representation of the Bank
[ { "docid": "f25d0e479fa9f47a30d6313bca515001", "score": "0.73834527", "text": "public String toString()\n\t{\n\t\tString Data = \"\\n\"\n\t\t\t\t+\t\"Account Type Account Balance\\n\"\n\t\t\t\t+\t\"------------ ------- -----------\\n\";\n\t\t\t\n\t\tfor(int i = 0; i < accounts.size(); i++)\n\t\t{\n\t\t\tAccount account = accounts.get(i);\n\t\t\tData += account.getType() + \"\\t\";\n\t\t\tif(account.getType().equals(\"CD\") || \n\t\t\t\t\taccount.getType().equals(\"Saving\"))\n\t\t\t\tData += \"\\t\";\n\t\t\tData += \"\"\n\t\t\t\t+ account.getAccountNum() \n\t\t\t\t+ \"\\t$\" + account.getBalance() + \"\\n\";\n\t\t}\n\t\tData += \"\\n\"\n\t\t+\t\"=============================================\";\n\t\treturn Data;\n\t}", "title": "" } ]
[ { "docid": "86fc8d322dc2ff61bd80b55c39c9f5cd", "score": "0.7945426", "text": "public String toString() {\n\t\treturn \"BankAccount [Account number = \"+ accountNumber + \", Account balance = \" +balance+ \", Account type: \" + accountType + \"]\";\n\t}", "title": "" }, { "docid": "fd47fccd7b0968ad0a291249ed89e831", "score": "0.7618147", "text": "public String toString() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n String moneyString = \"Savings Account Balance is\" + formatter.format(balance);\n return moneyString;\n }", "title": "" }, { "docid": "12c643b174c6b3fcfff06f125288cc25", "score": "0.75585914", "text": "public String toString(){\r\n\t\treturn(\"(\" + accountHolder.toString() + \") \" + accountNumber + \": \" + balance);\r\n\t}", "title": "" }, { "docid": "dbeed877d87904b6fbc95775648a24b6", "score": "0.7533805", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"BankAcc [accNo=\" + accNo + \", accNm=\" + accNm + \", accBal=\" + accBal + \"]\";\n\t}", "title": "" }, { "docid": "41f6b323123bc0b23fddc8da7a4c75f8", "score": "0.75226593", "text": "public String toString(){\n return (accountNumber + \" (\" + accountType + \"): \" + balance); \n }", "title": "" }, { "docid": "8b7c1d27bc821604945192c20e8e5673", "score": "0.7455002", "text": "public java.lang.String getBank () {\r\n\t\treturn bank;\r\n\t}", "title": "" }, { "docid": "d41895ca4d23f74de2889808d69c79c6", "score": "0.7450384", "text": "public String getBank() {\n return bank;\n }", "title": "" }, { "docid": "8145f79c49a4adccf0732561266b9a3c", "score": "0.7433225", "text": "public String toString() \n\t{\n\t\t StringBuffer buffer = new StringBuffer (getBankName()); \n\t\t buffer.append(\" has \"); \n\t\t buffer.append(accounts.size()); \n\t\t buffer.append(\" accounts opened.\\n\\n\"); \n\t return buffer.toString(); \n\t}", "title": "" }, { "docid": "15676ace5bb1adc3a143ad91e1aa6610", "score": "0.7367289", "text": "public String toString() \n {\n String s = \"your current amount \"+balance;\n \n return s;\n }", "title": "" }, { "docid": "7b81872822055c27c1c70e81f9d78f44", "score": "0.7218047", "text": "@Override\n\tpublic String toString() {\n\treturn \"accountNumber \"+account_number+\"\\n Name \"+name+\"\\nPassword \"+password+\"\\nPhone \"+phone+\"\\n Balance \"+balance;\n\t\n\t}", "title": "" }, { "docid": "ee33229ae151c505101963d1d3fcf98c", "score": "0.7199784", "text": "public String toString() {\n\treturn \"Account Number of \"+name+ \" :\" +this.accNumber+\" Balance: \"+ this.balance; \n}", "title": "" }, { "docid": "3a306e92ba3b3eb19800a6d493e981e9", "score": "0.7186831", "text": "public String toString()\n\t{\n\t\treturn this.accountNumber + \" : \" + Statistics.toPoundsAndPence(getBalance());\n\t}", "title": "" }, { "docid": "79371007e101b398622cff2826fc2ba1", "score": "0.7173475", "text": "public String toString()\r\n\t\t{\r\n\t\tSystem.out.println(\"This is Personal Loan by Central Bank\");\r\n\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "17c506ff08beea036dedd7b87ae00de4", "score": "0.71670055", "text": "public String getBankDescription ()\n {\n return bankDescription;\n }", "title": "" }, { "docid": "7b1df972bf425be9683e85411b91fe25", "score": "0.7153299", "text": "public String get_bank_name()\n {\n return bank_name;\n }", "title": "" }, { "docid": "9f41eee946874a390b1c7988783bf613", "score": "0.7113086", "text": "@Override\r\n public String toString() {\r\n return \"Account balance = \" + balance + \"\\nAccount Number = \" + accountNumber ;\r\n }", "title": "" }, { "docid": "71986d7dee62d6bc334a9e7911592566", "score": "0.7082487", "text": "public String toString() \r\n\t\t{\r\n\t\t\treturn balance + \": \" + super.toString();\r\n\t\t}", "title": "" }, { "docid": "a82fdcd9b907ce5b38187b6143d3642e", "score": "0.7046336", "text": "public String toString(){\n\t\treturn String.format(\"$%.2f\", balance);\n\t}", "title": "" }, { "docid": "aba737f481b72f86a2da1fced9870c33", "score": "0.7045882", "text": "public String toString() {\n\t\t\tString accountInfo = holderName + \"'s account holds $\" + currentBalance \n\t\t\t\t+ \" with a lowest balance allowable of $\" + lowestBalance;\n\t\t\treturn accountInfo;\n\t\t}", "title": "" }, { "docid": "2d1512ae0b8f3160fae4214cd87f56c4", "score": "0.70238894", "text": "@Override\n\tpublic java.lang.String getBank_name() {\n\t\treturn _ext_information.getBank_name();\n\t}", "title": "" }, { "docid": "29c69594c23c9d8ef4cb73926366d6bd", "score": "0.6987629", "text": "public String toString(){\n return \"Withdraw of:\" + this.amount + \" Date:\" + this.date + \" from account: \" + this.account +\"]\\n\";\n }", "title": "" }, { "docid": "698a34e50ccc4a6bbf2e4486ccaff1f7", "score": "0.6977317", "text": "public String getBankName() {\n return bankName;\n }", "title": "" }, { "docid": "698a34e50ccc4a6bbf2e4486ccaff1f7", "score": "0.6977317", "text": "public String getBankName() {\n return bankName;\n }", "title": "" }, { "docid": "917e755fc54c4b971eb90028bdbe1787", "score": "0.69656307", "text": "@Override\r\n public String getBankName() {\n return \"TPBank\";\r\n }", "title": "" }, { "docid": "0d4e43517b33c85a666a7b1b05b79744", "score": "0.69637764", "text": "public String getBankName() {\r\n return bankName;\r\n }", "title": "" }, { "docid": "43cfd7624fe9e274d6dd7eeae15ef196", "score": "0.6962637", "text": "@Override\n\t public String toString() {\n\t \treturn \"Account id \"+mId+\" balance is \"+mBalance;\n\t }", "title": "" }, { "docid": "d9f59186356710bff0fde987c8f2034a", "score": "0.695839", "text": "private RS2Object getBank() {\n return provider().objects.closest(MethodProvider.random(30) == 1 ?\n \"Deposit box\" : \"Bank chest\");\n }", "title": "" }, { "docid": "d37d2af8bfb727c20b7ddc58b7e044e0", "score": "0.6955533", "text": "@Override\r\n public String toString() {\n String accountDetails = \"Account ID: \" + getAccountId();\r\n accountDetails += \"\\nAccount type: \" + getAccountType();\r\n accountDetails += \"\\nAccount balance: $\" + df.format(getBalance());\r\n return accountDetails;\r\n }", "title": "" }, { "docid": "84805842d46dbbaaf99c9693720c5602", "score": "0.69317394", "text": "public java.lang.String toString() {\n\n return ( \"the owner name: \" + getOwnerName() + \" Current Balance: %10.2f\" + getCurrentBalance() );\n }", "title": "" }, { "docid": "9f967d830c1deaa18fe3a17a1fae23a7", "score": "0.6925577", "text": "public String toString(){\n\t\treturn firstName + \"\t\t\" + lastName + \"\t\t\" + id +\"\t\t\" + amount ;\r\n\t}", "title": "" }, { "docid": "a70a9d0a2619f4298f707423e4693d10", "score": "0.6925305", "text": "@Override\n public String toString() {\n return \"BankID: \" + this.ID + listQuestions();\n }", "title": "" }, { "docid": "f685d106a04a8147629a3e3a1e4e2b21", "score": "0.69206566", "text": "public String getBankNameFull() {\n return bankNameFull;\n }", "title": "" }, { "docid": "dcd350e13391ffd58f895ce25536de76", "score": "0.6842433", "text": "public String getBankno() {\n return bankno;\n }", "title": "" }, { "docid": "aae894ea1ec4ee01a617bb7642841cfe", "score": "0.6827567", "text": "java.lang.String getBalance();", "title": "" }, { "docid": "6f47ef4b899dfaaba49c2e0a354b7217", "score": "0.6822851", "text": "public String getBankName()\n\t{\n\t\treturn bankName;\n\t}", "title": "" }, { "docid": "5e8a6d5ca7490a7754b35368d2de014a", "score": "0.6801666", "text": "public String getBankCode() {\n return bankCode;\n }", "title": "" }, { "docid": "14408ef54ae4d7e873f5d0147af0b446", "score": "0.6796987", "text": "public String getDebitBankFullname() {\n return debitBankFullname;\n }", "title": "" }, { "docid": "719a28e1bddc4f441b498715e43b3637", "score": "0.6772628", "text": "@Override\n\t\tpublic String toString() {\n\t\t\tthis.balance *= 100;\n\t\t\tif(this.balance%100==0){\n\t\t\t\tthis.balance /= 100;\n\t\t\t\treturn \"Balance of \"+this.comment+\": \" + (int)this.balance;\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tthis.balance /= 100;\n\t\t\t\treturn \"Balance of \"+this.comment+\": \" + this.balance;\t\t\t\t\t\t\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "ff4d7ca9fbc3b5622c8e11dfd65fe093", "score": "0.6770244", "text": "public String toString() {\n List<String> currency = new ArrayList<String>();\n String ans = \"Purse with \";\n for (Valuable c: money){\n if(!currency.contains(c.getCurrency())) {\n currency.add(c.getCurrency());\n }\n }\n for (String c: currency){\n ans += String.format(\"%d %s,\", getBalance(c) , c);\n }\n return ans;\n }", "title": "" }, { "docid": "2e87181d0e59e85d446dd4bd8a6bf493", "score": "0.6767796", "text": "public String toString(){\n return \"Cash $\" + this.amount;\n }", "title": "" }, { "docid": "71578eb3c0c461322b1c16c35182fef0", "score": "0.6766349", "text": "@Override\r\n public String toString() {\r\n return balance + \": \" + super.toString();\r\n }", "title": "" }, { "docid": "32058deb7b585845e95ab14831c7b33e", "score": "0.67629296", "text": "java.lang.String getBizBalance();", "title": "" }, { "docid": "5b1a72f9edcdf87d67ceb6c0d97e09e5", "score": "0.6748859", "text": "public java.lang.String getBankname () {\n\t\treturn bankname;\n\t}", "title": "" }, { "docid": "74d9fa68884348bf9c21bd8751e98b6e", "score": "0.67394733", "text": "public String getBANK_NAME() {\r\n return BANK_NAME;\r\n }", "title": "" }, { "docid": "3bbd769d443570efe19fc2fae55932ef", "score": "0.67221063", "text": "public String toString(){\n\t\tString typeString;\n\t\tswitch( type){\n\t\t\tcase Admin:\n\t\t\t\ttypeString = \"AA\";\n\t\t\t\tbreak;\n\t\t\tcase Buy:\n\t\t\t\ttypeString = \"BS\";\n\t\t\t\tbreak;\n\t\t\tcase Sell:\n\t\t\t\ttypeString = \"SS\";\n\t\t\t\tbreak;\n\t\t\tcase Full:\n\t\t\t\ttypeString = \"FS\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\ttypeString = \"00\";\n\t\t\t\tSystem.out.println(\"bad account type\");\n\t\t\t\tbreak;\n\t\t}\n\t\treturn String.format(\n\t\t\t\"%-\"+username_size+\"s %\"+type_size+\"s %0\"+dollars_size+\"d.%0\"+cents_size+\"d\",\n\t\t\tusername, typeString, credit/100, credit%100);\n\t}", "title": "" }, { "docid": "41bc0f91caee72b5d4dd4241c426f410", "score": "0.66997844", "text": "public void PrintBankSummary(){\r\n System.out.println(\"Bank Name: \"+ name);\r\n //loop moves through all accounts \r\n for (int i=0; i<totalAccounts; i++){\r\n System.out.println(accounts[i].toString()); //prints individually\r\n }\r\n }", "title": "" }, { "docid": "acc6b3f87cfbe7331af961d1d2c71c41", "score": "0.6673984", "text": "public String getOpen_bank() {\n return open_bank;\n }", "title": "" }, { "docid": "69096bf04fdbc9756ee04d81ccd1adfd", "score": "0.66557497", "text": "@Override\n\tpublic String toString()\n\t{\n\t\tStringBuilder cstmr = new StringBuilder();\n\t\tcstmr.append(super.toString());\n\t\tcstmr.append(\"\\nCustomer ID: \" + customerID);\n\t\tcstmr.append(\"\\nCredit Card Information:\");\n\t\tcstmr.append(\"\\n\" + creditCard);\n\t\treturn cstmr.toString();\n\t}", "title": "" }, { "docid": "8d4c854d3aa2be097cc840a94fcde902", "score": "0.6648041", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Balance [balance=\" + balance + \"]\";\n\t}", "title": "" }, { "docid": "e8cd56db4db06f46c4954b41773567a1", "score": "0.6645973", "text": "@Override\n public String toString() {\n \treturn \"Coustmor [BillAmount=\" + BillAmount + \", PaymentType=\" + PaymentType + \"]\";\n }", "title": "" }, { "docid": "e92bdd55087d177b9ca1063c08a498f3", "score": "0.66431844", "text": "@Override\n\tpublic java.lang.String getBankid() {\n\t\treturn _ext_information.getBankid();\n\t}", "title": "" }, { "docid": "2a50dbf8348d5bb11d1ed754ddde55e6", "score": "0.6640664", "text": "public static String getBanknum() {\r\n\t\t\treturn \"00000\";\r\n\t\t}", "title": "" }, { "docid": "46ada2f1d2e79e9b7cb6b29cd98812f9", "score": "0.6633369", "text": "public String getCompanyBank() {\r\n return companyBank;\r\n }", "title": "" }, { "docid": "29c146c48d46db44d276cf4d45b79ac4", "score": "0.66323835", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"Balanced\";\n\t\t}", "title": "" }, { "docid": "a1265fabacd498c95e32262d9a3ba9f9", "score": "0.6602352", "text": "@Override \r\n public String toString(){\r\n return accountNo+\"\\t\" + customerName+\"\\t\" + ((double)(Math.round(balance*100))/100.0)+\"\\t\";\r\n }", "title": "" }, { "docid": "0f403edc547bcc779d49f11ad5120720", "score": "0.6570212", "text": "public java.lang.String getFinAcctCurrentBank() {\n return finAcctCurrentBank;\n }", "title": "" }, { "docid": "7a671b36d7d42fe4a33e9ba7febb0507", "score": "0.6547974", "text": "public String toString()\n {\n return name+\", \"+amount;\n }", "title": "" }, { "docid": "966a35efbdcffed6484aecb0f38f525f", "score": "0.6533231", "text": "@Override\n public String toString() {\n return \"ID \" + accountID + \"\\t\" + \"Name \" + customerName + \"\\t\" + \"Amount \"\n + amount;\n }", "title": "" }, { "docid": "b8184841af85a4f4e589ef04ea78039b", "score": "0.6517635", "text": "public String toString() {\n\t\t\t\treturn \"Account ID: \" + this.internalId + \"\\n\"\n\t\t\t\t\t\t\t\t+ \" Name: \" + this.firstName + \" \"+ this.lastName +\"\\n\";\n\t\t}", "title": "" }, { "docid": "18763eaf09ee89d4a3a65859856f831b", "score": "0.6511966", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n \n sb.append(\"# \").append(id);\n sb.append(\" \").append(firstName);\n sb.append(\" \").append(lastName);\n sb.append(\", my bill \").append(medicalBill);\n \n return sb.toString();\n }", "title": "" }, { "docid": "16e7c39ed29866baf88831d44c50ea8d", "score": "0.6497579", "text": "public String getBankDestiny() {\n return bankDestiny;\n }", "title": "" }, { "docid": "5fd621294b98af79d6fcf92e5c103d72", "score": "0.64687455", "text": "@Override\n public String toString() {\n return \"Account{\" + \"id=\" + id + \", titularId=\" + titularId + \", balance=\" + balance + \"isActivate=\" + isActive + \"branchoffice= \" + '}';\n }", "title": "" }, { "docid": "b400df18bb267d394b31d64a7d1acf77", "score": "0.6456527", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Checking Account Number: \" + accountNum + \"\\nChecking Account Balance: $\" + currentBalance + \"\\n\";\r\n\t}", "title": "" }, { "docid": "fbeaf78da00ff548d9bd9f7cf14eacca", "score": "0.6444232", "text": "public java.lang.String getBizBalance() {\n java.lang.Object ref = bizBalance_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n bizBalance_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "1f150b99887d4845301f0bdbf915da06", "score": "0.64325494", "text": "@Override\n public String toString() {\n return currencyCode.get();\n }", "title": "" }, { "docid": "58042a64ee4aea32e8e7de43f1bb2db8", "score": "0.64273995", "text": "public String getDebitBankName() {\n return debitBankName;\n }", "title": "" }, { "docid": "6b3135d10b7766c42efe33526ca52b97", "score": "0.6420913", "text": "public Bank getBank(){\n\t\treturn this.bankAccount;\n\t}", "title": "" }, { "docid": "067e14f52d5b68a76de3bfe7520409f1", "score": "0.6419889", "text": "public int getBank()\n {\n return this.bank;\n }", "title": "" }, { "docid": "3368923f43381be43bb2cfb496bb11f7", "score": "0.6409764", "text": "public BankInfo getBankInfo() {\n return bankInfo;\n }", "title": "" }, { "docid": "2e9a9cc61f45a4e8dbb77c8708b60c08", "score": "0.6398145", "text": "public static String balanceStmnt(String currency_str){\n\t\t String customerStmnt = \"Your account balance is : \"+currency_str+\" \";\n\t\t return customerStmnt;\n\t}", "title": "" }, { "docid": "d38c3ca4215ce52a723c30e422417de9", "score": "0.6394226", "text": "String getFundAccount();", "title": "" }, { "docid": "e0c8428420e0a528a1d585930a3a3b56", "score": "0.6390835", "text": "@Override\r\n\tpublic String toString() {\n\t\treturn String.format(\"%10s %10s %10s %10s \",accountNo,transAmount,getTransDate(),transType );\r\n\t}", "title": "" }, { "docid": "2e9004e784db9b85f6943edd2e89e5cf", "score": "0.63808334", "text": "public String getBalance () {\n return getBalance(defaultUnit);\n }", "title": "" }, { "docid": "b578a593f30392d85f308b2a8d44008a", "score": "0.6379912", "text": "public String toString(){\r\n\t\t//(for testing)return getName()+\" account type: \"+is_student;\r\n\t\treturn getName();\r\n\t}", "title": "" }, { "docid": "eca9101793e774cd5965f45e0b581b43", "score": "0.63586664", "text": "java.lang.String getStockAccount();", "title": "" }, { "docid": "eb11d60ab70a84cdcac8d0c3aa8922e7", "score": "0.6344992", "text": "public String printableCardInfo() {\n //(i.e., credit card number, credit limit, and balance for each credit card)\n String info = \"Card Number:\\t\" + this.cardNumber + \"\\n\";\n info += \"Card Type:\\t\\t\" + cardTypeToString(this.type) + \"\\n\";\n info += \"Card Holder(s):\\t\";\n for (Customer customer: getCardHolders()) {\n info += customer.getName();\n info += \", \";\n }\n info = info.substring(0, info.length() - 2);\n info+= \"\\nBalance:\\t\\t$\" + balance.setScale(2, BigDecimal.ROUND_CEILING);\n return info;\n }", "title": "" }, { "docid": "71c46a9838b56737ae24cf46f819b197", "score": "0.6341354", "text": "public static String print(Credit credit) {\n Locale defaultLocale = LocaleUtils.getCurrentLocale();\n StringBuilder sb = new StringBuilder(Credit.class.toString().concat(\": \"));\n if (\"bg\".equals(defaultLocale.getLanguage())) {\n try {\n sb.append(credit.getId().toString().concat(\", \"));\n sb.append(credit.getBasis().toString().concat(\", \"));\n sb.append(credit.getInterest().toString().concat(\", \"));\n sb.append(credit.getPeriod().toString().concat(\", \"));\n if (credit.getPerson() != null) {\n sb.append(\" credit owner: \".concat(print(credit.getPerson())));\n }\n } catch (Exception e) {\n return sb.toString();\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "f4e3127b93c71f76cfe967dbe90ea06b", "score": "0.63403845", "text": "public String toString()\n {\n return \"==== BONUS ====\" + \"\\nID: \" + getId() + \"\\nReferral Code: \" + getReferralCode() + \"\\nExtra Fee: \" + getExtraFee() + \"\\nMin Total Fee: \" + getMinTotalFee() + \"\\nActive Status: \" + getActive() + \"\\n\";\n }", "title": "" }, { "docid": "c4790cbbe9384d11608053618b9bcccd", "score": "0.6333175", "text": "@Override\n public String toString()\n {\n StringBuilder actualCard = new StringBuilder();\n\n //Assigning Jack, Queen, King, and Ace their numerical values\n switch(rank)\n {\n case 11:\n actualCard.append(\"Jack\");\n break;\n case 12:\n actualCard.append(\"Queen\");\n break;\n case 13:\n actualCard.append(\"King\");\n break;\n case 14:\n actualCard.append(\"Ace\");\n break;\n default:\n actualCard.append(rank);\n break;\n }\n actualCard.append(\" of \");\n\n switch(suit) {\n case 0:\n actualCard.append(\"♠Spades♠\");\n break;\n case 1:\n actualCard.append(\"♥Hearts♥\");\n break;\n case 2:\n actualCard.append(\"♣Clubs♣\");\n break;\n case 3:\n actualCard.append(\"♦Diamonds♦\");\n break;\n default:\n break;\n }\n return actualCard.toString();\n }", "title": "" }, { "docid": "2da03ba4f6f8b7854f1986d471c1c614", "score": "0.63320065", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Name: \" + billName + \"\\n\" + \"Date: \" + billedDate + \"\\n\" + \"Total amount due: \" + String.format(\"$%.02f\", amountDue);\n\t}", "title": "" }, { "docid": "50d77dd1b7833215f2fdf0f2332dfe04", "score": "0.6327422", "text": "public java.lang.String getBizBalance() {\n java.lang.Object ref = bizBalance_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n bizBalance_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "d73835898b60c7d02b7c9518591647ba", "score": "0.63247794", "text": "public String toString(){\n \t\treturn getBattleField();\t\t\t\t\t\t\t\t\t// whose encoding is as specified above;\n \t}", "title": "" }, { "docid": "c5ebe0e357d69be0e3acd13f579220b0", "score": "0.6320984", "text": "public String getFormatBalance() {\n\t\treturn String.format(\"%.2f\", getBalance());\n\t}", "title": "" }, { "docid": "d0dc12e00c7075a423ed7e0fa92c4356", "score": "0.6305093", "text": "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getBsic() != null)\n sb.append(\"Bsic: \").append(getBsic()).append(\",\");\n if (getBcch() != null)\n sb.append(\"Bcch: \").append(getBcch());\n sb.append(\"}\");\n return sb.toString();\n }", "title": "" }, { "docid": "6e41f505b3a39ffccd647fd1cef687b8", "score": "0.62962234", "text": "public String toString() {\n\t\t\n\t\t// Format a string with the customer's name and ID.\n\t\tString info = \"Customer Name: \" + this.name + \", ID Number: \" + this.id;\n\t\treturn info;\n\t\t\n\t}", "title": "" }, { "docid": "86c3c46d2ce2bc98bac6df74638f3dab", "score": "0.62898105", "text": "public String getBankOrigin() {\n return bankOrigin;\n }", "title": "" }, { "docid": "3cacdb88a9aaf1077c5d47b45fcbe5ac", "score": "0.6272509", "text": "public String toString()\n {\n StringBuffer buff = new StringBuffer();\n\n buff.append(\"Class: CreditCardBeanModel Revision: \"\n + revisionNumber\n + \"\\n\");\n buff.append(\"CardNumber [\" + cardNumber + \"]\\n\");\n buff.append(\"ExpirationDate [\" + expirationDate + \"]\\n\");\n buff.append(\"CardSwiped [\" + cardSwiped + \"]\\n\");\n buff.append(\"MSRModel [\" + msrModel + \"]\\n\");\n\n return(buff.toString());\n }", "title": "" }, { "docid": "6c353b938edcad08ff473f731bf099e6", "score": "0.62712693", "text": "public String toString() {\n return \"Name: \" + firstName + \" \" + lastName + \"\\tBirth Year: \" + yearOfBirth + \"\\tCity: \" + city + \"\\tState: \" + state + \"\\tMoney: \" + money;\n }", "title": "" }, { "docid": "96b906a420e1579dc558671ebfa5bfa2", "score": "0.62624496", "text": "@Override\n public String toString() {\n Date date = getDate().getTime();\n String strDate = \"\";\n if (date != null) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n strDate = dateFormat.format(date);\n }\n // Print data secara keseluruhan\n String str = \"====== Ewallet Payment ======\" +\n \"\\nID : \" + getId() +\n \"\\nJobs : \" + getJobs() +\n \"\\nDate : \" + strDate +\n \"\\nSeeker : \" + getJobseeker().getName();\n // Hanya tampilkan referral code kalau bonusnya aktif atau valid\n if (bonus.getReferralCode() != null &&\n bonus != null && bonus.getActive() &&\n getTotalFee() > bonus.getMinTotalFee()) {\n str += \"\\nReferral Code: \" + bonus.getReferralCode();\n }\n str += \"\\nFee : \" + totalFee +\n \"\\nStatus : \" + getInvoiceStatus().toString() +\n \"\\nPayment Type : \" + PAYMENT_TYPE.toString();\n return str;\n }", "title": "" }, { "docid": "81cb0c1533b20b85ce658552f479b342", "score": "0.6250345", "text": "public String toString() {\n if (isFiscalSearch()){\n \treturn TransactionUtil.getTransactionFiscalSearchString(this);\n }else{\n \treturn TransactionUtil.getTransactionSearchString(this);\n }\n }", "title": "" }, { "docid": "5513b2380619edbc83a02917bb473530", "score": "0.625019", "text": "public String toString()\n {\n DecimalFormat moneyFormat = new DecimalFormat(\"$#,##0.00\");\n DecimalFormat storageFormat = new DecimalFormat(\"0.000\");\n \n String output = \"\";\n \n output += name + \" (\" + this.getClass() + \") \" + \"Monthly Cost: \"\n + moneyFormat.format(monthlyCost());\n output += \"\\nStorage: \" + storageFormat.format(storage) + \" TB\";\n output += \"\\nBase Cost: \" + moneyFormat.format(baseCost);\n \n return output;\n }", "title": "" }, { "docid": "d10b65d0340e6e9bf6c7bd6f18a8075a", "score": "0.62499577", "text": "String displayDenominationBalance();", "title": "" }, { "docid": "1c49db07a5c47267a02ecb12ffeda446", "score": "0.6247964", "text": "@Override\r\n\tpublic String toString() {\r\n String output =\r\n \"_________________________________________________________________________\\n\";\r\n output += \"Contractor Details:\";\r\n output += \"\\n______________________________________________________________________\";\r\n output += \"\\nContractor Name:.......................... \" + contractorName;\r\n output += \"\\nContractor Telephone Number:.............. \" + contractorTelNum;\r\n output += \"\\nContractor Email Address:................. \" + contractorEmail;\r\n output += \"\\nContractor Physical Address:.............. \" + contractorPhyAdd;\r\n output += \"\\n______________________________________________________________________\";\r\n\r\n return output;\r\n }", "title": "" }, { "docid": "90d2bf5349f28cf5e35cfa90528d7597", "score": "0.62414926", "text": "@Override\n public String toString() {\n return name + \": \" + department + \" department, \" + contract + \" contract, \" + years + \" years in the company, salary of \" + this.getSalary() + \" bitcoins.\";\n }", "title": "" }, { "docid": "75c734ded746b3a9502c49e6c9f1e2d4", "score": "0.62236714", "text": "public String toString() {\n return String.format(\"%s BASIC %s\", this.getIndustry(), this.getName());\n }", "title": "" }, { "docid": "3f417c294a53a32d2edc2677bafd1141", "score": "0.62167746", "text": "public String toString() {\n\t\treturn String.format(\"%-20s %10s\",lastname+\", \"+firstname,\"$\"+amount);\n\t}", "title": "" }, { "docid": "3bd2c80871bd39434dc77bff7ed08113", "score": "0.620711", "text": "public String toString() {\n return \"ID: \" + getSchoolID()\n + \"\\nName: \" + getFirstName() + \" \" + getLastName()\n + \"\\nCourses Enrolled: \" + getCourses()\n + \"\\nTuition Balance: R$\" + this.tuitionBalance + \"\\n\";\n }", "title": "" }, { "docid": "04f593cff058f7971faa88c96d15d2fc", "score": "0.61957073", "text": "public String toString()\n\t{\n\t\treturn \"Brand: \" + brand + \"\\nType: \" + type + \"\\nBarcode: \" + barcode + \"\\nSize: \" + size\n\t\t\t+ \"\\nPrice: \" + price + \"\\nRentalSale: \" + RentalSale + \"\\nStatues: \" + status + \"\\n\";\n\t}", "title": "" }, { "docid": "4a20b35c4c925f3b2af12e2487cbf65f", "score": "0.6193238", "text": "String getStockAccount();", "title": "" }, { "docid": "f03f0d2b384828e1276dae6faddf18f4", "score": "0.61871845", "text": "public Bank getBank() {\n\t\treturn bank;\n\t}", "title": "" } ]
5b0de50e639b184baa17c1a2fdd3093d
Whether to output final box feature. If true, it will crop the rpn feature map based on the final prediction boxes, then pass the crops through the box_classifier to compute the final features in the postprocess() method. optional bool output_final_box_features = 42 [default = false];
[ { "docid": "e11635cce4d17966ad4c9f3f618cf8ff", "score": "0.5686364", "text": "@java.lang.Override\n public boolean hasOutputFinalBoxFeatures() {\n return ((bitField1_ & 0x00000080) != 0);\n }", "title": "" } ]
[ { "docid": "c4d5d2f1fedee7310414ad7a5b59f379", "score": "0.71493363", "text": "@java.lang.Override\n public boolean getOutputFinalBoxRpnFeatures() {\n return outputFinalBoxRpnFeatures_;\n }", "title": "" }, { "docid": "4a26d080bf2be36f53e9828dcda6cec0", "score": "0.7148799", "text": "@java.lang.Override\n public boolean getOutputFinalBoxRpnFeatures() {\n return outputFinalBoxRpnFeatures_;\n }", "title": "" }, { "docid": "8b4864c8fbd5e4750cd282e3b3f3adb2", "score": "0.7137457", "text": "boolean getOutputFinalBoxRpnFeatures();", "title": "" }, { "docid": "7d4f6b5c8c06040715d3d8a434f84d3e", "score": "0.70135856", "text": "boolean getOutputFinalBoxFeatures();", "title": "" }, { "docid": "3148743a25a18fa611fcf8b40d40d3d6", "score": "0.6970574", "text": "public Builder setOutputFinalBoxRpnFeatures(boolean value) {\n bitField1_ |= 0x00000100;\n outputFinalBoxRpnFeatures_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a9d742d4cd9708c6eccef8056957a7c3", "score": "0.6893585", "text": "@java.lang.Override\n public boolean getOutputFinalBoxFeatures() {\n return outputFinalBoxFeatures_;\n }", "title": "" }, { "docid": "af6e9dc4423046365c73874d688dde2a", "score": "0.68862104", "text": "@java.lang.Override\n public boolean getOutputFinalBoxFeatures() {\n return outputFinalBoxFeatures_;\n }", "title": "" }, { "docid": "119da25c399359a1c325544e692001d6", "score": "0.6714975", "text": "public Builder setOutputFinalBoxFeatures(boolean value) {\n bitField1_ |= 0x00000080;\n outputFinalBoxFeatures_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fc811519976424cdc8dd3a55979adae2", "score": "0.6711374", "text": "boolean hasOutputFinalBoxRpnFeatures();", "title": "" }, { "docid": "5dffde0d1d43fb923f1b4def8dbfff87", "score": "0.6536772", "text": "boolean hasOutputFinalBoxFeatures();", "title": "" }, { "docid": "f7e23efed86ce213326f394935b62d82", "score": "0.62889904", "text": "public Builder clearOutputFinalBoxRpnFeatures() {\n bitField1_ = (bitField1_ & ~0x00000100);\n outputFinalBoxRpnFeatures_ = false;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0bd23af968fcb2d75e8325d93516dc31", "score": "0.59915507", "text": "@java.lang.Override\n public boolean hasOutputFinalBoxRpnFeatures() {\n return ((bitField1_ & 0x00000100) != 0);\n }", "title": "" }, { "docid": "b2cacb2749e7ce87102389a454b5d6f7", "score": "0.5956064", "text": "@java.lang.Override\n public boolean hasOutputFinalBoxRpnFeatures() {\n return ((bitField1_ & 0x00000100) != 0);\n }", "title": "" }, { "docid": "ae86e63f37f55198e2df583e932ea5d8", "score": "0.5909786", "text": "public Builder clearOutputFinalBoxFeatures() {\n bitField1_ = (bitField1_ & ~0x00000080);\n outputFinalBoxFeatures_ = false;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c46892a7cfb5cb25c58148bce83d6f71", "score": "0.57003975", "text": "@java.lang.Override\n public boolean hasOutputFinalBoxFeatures() {\n return ((bitField1_ & 0x00000080) != 0);\n }", "title": "" }, { "docid": "e90b0b832633d81702f9c9ac7e22051f", "score": "0.55525994", "text": "boolean hasSecondStageBoxPredictor();", "title": "" }, { "docid": "d982aefcb49b1b42471d5019ccd0d28c", "score": "0.5076028", "text": "boolean hasFirstStageBoxPredictorKernelSize();", "title": "" }, { "docid": "24bc5482fbcdf5f9411a44f05da20d8a", "score": "0.50414217", "text": "boolean hasFirstStageBoxPredictorConvHyperparams();", "title": "" }, { "docid": "e0d438a4a78693042389347ac9e9355d", "score": "0.4950857", "text": "public void postprocessrecrop(OutputInfo output, ApplicationManager am) {\n\t\t// the crop images are in the \"images\" folder\n\t\tFile cropimgdir = new File(output.getDir() + File.separator + \"images\");\n\n\t\tfor (File f : cropimgdir.listFiles()) {\n\t\t\tif (f.isFile()) {\n\t\t\t\tString recropsuffix = \"_\" + CROP_PROP + CROP_SUFFIX;\n\t\t\t\tString fn = f.getName();\n\t\t\t\tint ind = fn.indexOf(recropsuffix);\n\t\t\t\tif (ind > 0) {\n\t\t\t\t\tString fnnew = fn.substring(0, ind) + CROP_SUFFIX;\n\t\t\t\t\tFile target = new File(cropimgdir.getAbsolutePath()\n\t\t\t\t\t\t\t+ File.separator + fnnew);\n\t\t\t\t\tFileUtil.renameFile(f, target);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// permissions - in fact, not needed here - do just in case\n\t\tfor (File f : output.getDir().listFiles()) {\n\t\t\tif (f.isFile()) {\n\n\t\t\t\t// // tw 2014nov13\n\t\t\t\t// am.getIsm().setFilePermissions(f);\n//\t\t\t\tam.getIsm().setPermissions(f, false);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a6349614e305f05dc9b385756697ac40", "score": "0.48772186", "text": "object_detection.protos.BoxPredictorOuterClass.BoxPredictorOrBuilder getSecondStageBoxPredictorOrBuilder();", "title": "" }, { "docid": "f06fa904cfe46b200d1b7321315b6a4c", "score": "0.483749", "text": "object_detection.protos.BoxPredictorOuterClass.BoxPredictor getSecondStageBoxPredictor();", "title": "" }, { "docid": "11fc93476c04ebb95eaa8f25f1b84c31", "score": "0.479031", "text": "private boolean ParallelHiddenTripletsBoxes(int cores){\n // Executor service\n ExecutorService executorService = Executors.newFixedThreadPool(cores);\n // If any change is made\n AtomicBoolean anyChange = new AtomicBoolean(false);\n\n // Try to hidden triplets for each box\n for (int i = 0; i < boxes.length; i++) {\n for (int j = 0; j < boxes.length; j++) {\n final Box box = boxes[i][j];\n // Thread to clean a box\n executorService.submit(() -> {\n if (box.HiddenTripletsBox()) {\n anyChange.compareAndSet(false,true);\n }\n });\n }\n }\n\n // Safe shutdown\n executorService.shutdown();\n try {\n if (!executorService.awaitTermination(1, TimeUnit.MINUTES)) {\n executorService.shutdownNow();\n }\n } catch (InterruptedException e) {\n log.error(\"Error with parallel ParallelHiddenTriplets method\");\n executorService.shutdownNow();\n }\n\n return anyChange.get();\n }", "title": "" }, { "docid": "215a4dc94ff4df09c2c49c40abdbcc17", "score": "0.47806117", "text": "public void setFinalFrenzy(boolean finalFrenzy) {\n this.finalFrenzy = finalFrenzy;\n }", "title": "" }, { "docid": "472cb9ac5d3b493d33b8a178b231f541", "score": "0.47391737", "text": "@java.lang.Override\n public boolean hasSecondStageBoxPredictor() {\n return ((bitField0_ & 0x00080000) != 0);\n }", "title": "" }, { "docid": "c7563fe7b9e699d1d065f04b9cbd8932", "score": "0.4690408", "text": "private boolean ParallelNakedTripletsBoxes(int cores){\n // Executor service\n ExecutorService executorService = Executors.newFixedThreadPool(cores);\n // If any change is made\n AtomicBoolean anyChange = new AtomicBoolean(false);\n\n // Try to naked triplets for each box\n for (int i = 0; i < boxes.length; i++) {\n for (int j = 0; j < boxes.length; j++) {\n final Box box = boxes[i][j];\n // Thread to clean a box\n executorService.submit(() -> {\n if (box.NakedTripletsBox()) {\n anyChange.compareAndSet(false,true);\n }\n });\n }\n }\n\n // Safe shutdown\n executorService.shutdown();\n try {\n if (!executorService.awaitTermination(1, TimeUnit.MINUTES)) {\n executorService.shutdownNow();\n }\n } catch (InterruptedException e) {\n log.error(\"Error with parallel ParallelNakedTriplets method\");\n executorService.shutdownNow();\n }\n\n return anyChange.get();\n }", "title": "" }, { "docid": "47e3b67093768fed7022c49bcd7d39bf", "score": "0.4644649", "text": "public boolean hasSecondStageBoxPredictor() {\n return ((bitField0_ & 0x00080000) != 0);\n }", "title": "" }, { "docid": "8f35175f2f2ac4ace111b3dfeebee176", "score": "0.4570235", "text": "boolean hasFirstStageBoxPredictorDepth();", "title": "" }, { "docid": "550134c62a6ba2de02273c94822d8aea", "score": "0.4568691", "text": "@java.lang.Override\n public boolean hasFirstStageBoxPredictorKernelSize() {\n return ((bitField0_ & 0x00000080) != 0);\n }", "title": "" }, { "docid": "8980bf8dbea6a2dd24e449e802dfac78", "score": "0.4560836", "text": "@java.lang.Override\n public boolean hasFirstStageBoxPredictorKernelSize() {\n return ((bitField0_ & 0x00000080) != 0);\n }", "title": "" }, { "docid": "49a827fae3e1868cbe9a93075444a067", "score": "0.4531656", "text": "public void setFinalPage(boolean value) {\n this.finalPage = value;\n }", "title": "" }, { "docid": "689f3a7f90cf1f95b09d339d1a06ee8c", "score": "0.45230073", "text": "public void setFinalized(boolean finalized) {\r\n this.finalized = finalized;\r\n }", "title": "" }, { "docid": "24c9be4a477e81ce91b12b0f3ba876c0", "score": "0.44864175", "text": "public StateBuilder isFinal(boolean finalState) {\r\n this.instance.setFinal(finalState);\r\n return this;\r\n }", "title": "" }, { "docid": "de1b5433719855034cebbc1dee83d576", "score": "0.4440353", "text": "boolean getReturnRawDetectionsDuringPredict();", "title": "" }, { "docid": "d9f12ea5514c01e4624b69c76a17f37d", "score": "0.44335362", "text": "@Override\n protected void processImage() {\n rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight);\n final int cropSize = Math.min(previewWidth, previewHeight);\n flag++;\n\n runInBackground(\n new Runnable() {\n @Override\n public void run() {\n if (KClassifier != null) {\n final long startTime = SystemClock.uptimeMillis();\n\n //cs663: ADD any OTHER preprocessing here\n\n\n //Calling the Classifier\n final List<KClassifier.Recognition> results =\n KClassifier.recognizeImage(rgbFrameBitmap, sensorOrientation);\n lastProcessingTimeMs = SystemClock.uptimeMillis() - startTime;\n LOGGER.v(\"Detect: %s\", results);\n\n //cs663: ADD Any Post Processing (after recognition) code here\n //Following code creates display that shows results\n runOnUiThread(\n new Runnable() {\n @Override\n public void run() {\n //DISPLAY information including recognition results\n showResultsInBottomSheet(results);\n showFrameInfo(previewWidth + \"x\" + previewHeight);\n showCropInfo(imageSizeX + \"x\" + imageSizeY);\n showCameraResolution(cropSize + \"x\" + cropSize);\n showRotationInfo(String.valueOf(sensorOrientation));\n showInference(lastProcessingTimeMs + \"ms\");\n\n }\n });\n }\n readyForNextImage();\n }\n });\n }", "title": "" }, { "docid": "411328eceb70026120d7439444e080fa", "score": "0.44157317", "text": "public void processWithCrops() {\n\n\t\tasVirtual = selectionDialog.isVirtual();\n\t\tfinal String rootPath = selectionDialog.getN5RootPath();\n\t\tfor (final N5Metadata datasetMeta : selection.metadata) {\n\t\t\t// Macro.getOptions() does not return what I'd expect after this\n\t\t\t// call. why?\n\t\t\t// Macro.setOptions( String.format( \"n5=%s\", datasetMeta.getPath()\n\t\t\t// ));\n\n\t\t\tfinal String datasetPath = datasetMeta.getPath();\n\t\t\tfinal String pathToN5Dataset = datasetPath.isEmpty() ? rootPath : rootPath + File.separator + datasetPath;\n\n\t\t\tnumDimensionsForCrop = ((N5DatasetMetadata)datasetMeta).getAttributes().getNumDimensions();\n\t\t\tinitMaxValuesForCrop = Arrays.stream(((N5DatasetMetadata)datasetMeta).getAttributes().getDimensions())\n\t\t\t\t\t.map(x -> x - 1)\n\t\t\t\t\t.toArray();\n\n\t\t\tthis.run(\"cropDialog \" + generateAndStoreOptions(pathToN5Dataset, asVirtual, null, !show));\n\t\t}\n\t}", "title": "" }, { "docid": "f567e27782c665431917b99745355c57", "score": "0.43945193", "text": "@java.lang.Override\n public object_detection.protos.BoxPredictorOuterClass.BoxPredictor getSecondStageBoxPredictor() {\n return secondStageBoxPredictor_ == null ? object_detection.protos.BoxPredictorOuterClass.BoxPredictor.getDefaultInstance() : secondStageBoxPredictor_;\n }", "title": "" }, { "docid": "b5c082524057b54bf3a037e109cb4bbe", "score": "0.43881953", "text": "public void setFinal(boolean value) {\r\n _final = value;\r\n }", "title": "" }, { "docid": "d4fc36f726b9cd997d104a1cb4d1f6a3", "score": "0.43613797", "text": "public boolean hasPredictionContainer() {\n return this.containerCase_ == 6;\n }", "title": "" }, { "docid": "5fb7e3dc78236e0397202de63de16264", "score": "0.43353832", "text": "boolean hasReturnRawDetectionsDuringPredict();", "title": "" }, { "docid": "5c8d89ff1f083826dc9956040231859b", "score": "0.4328243", "text": "private boolean ParallelHiddenTwinsBoxes(int cores){\n // Executor service\n ExecutorService executorService = Executors.newFixedThreadPool(cores);\n // If any change is made\n AtomicBoolean anyChange = new AtomicBoolean(false);\n\n // Try to hidden twins for each box\n for (int i = 0; i < boxes.length; i++) {\n for (int j = 0; j < boxes.length; j++) {\n final Box box = boxes[i][j];\n // Thread to clean a box\n executorService.submit(() -> {\n if (box.HiddenTwinsBox()) {\n anyChange.compareAndSet(false,true);\n }\n });\n }\n }\n\n // Safe shutdown\n executorService.shutdown();\n try {\n if (!executorService.awaitTermination(1, TimeUnit.MINUTES)) {\n executorService.shutdownNow();\n }\n } catch (InterruptedException e) {\n log.error(\"Error with parallel ParallelHiddenTwins method\");\n executorService.shutdownNow();\n }\n\n return anyChange.get();\n }", "title": "" }, { "docid": "56aa9a9e5fbb8565e9b76923bc064b94", "score": "0.4307155", "text": "private boolean ParallelNakedTwinsBoxes(int cores){\n // Executor service\n ExecutorService executorService = Executors.newFixedThreadPool(cores);\n // If any change is made\n AtomicBoolean anyChange = new AtomicBoolean(false);\n\n // Try to naked twins for each box\n for (int i = 0; i < boxes.length; i++) {\n for (int j = 0; j < boxes.length; j++) {\n final Box box = boxes[i][j];\n // Thread to clean a box\n executorService.submit(() -> {\n if (box.NakedTwinsBox()) {\n anyChange.compareAndSet(false,true);\n }\n });\n }\n }\n\n // Safe shutdown\n executorService.shutdown();\n try {\n if (!executorService.awaitTermination(1, TimeUnit.MINUTES)) {\n executorService.shutdownNow();\n }\n } catch (InterruptedException e) {\n log.error(\"Error with parallel ParallelNakedTwins method\");\n executorService.shutdownNow();\n }\n\n return anyChange.get();\n }", "title": "" }, { "docid": "d62f2f4d50c735bc1a6f10dc6767dbc6", "score": "0.43062502", "text": "public void updateFinalState(boolean out) {\n if (front.isDone() && left.isDone() && right.isDone()) {\n boolean error = !myModel.checkFinalState(out);\n if (error) {\n myModel.setLeds(Leds.RED);\n } else {\n if (out) {\n myModel.setLeds(Leds.GREEN);\n }\n else {\n myModel.setLeds(Leds.NONE);\n }\n }\n updateViews();\n }\n }", "title": "" }, { "docid": "e6ba3d9a2e77c10a897824a54e0172a3", "score": "0.43050197", "text": "boolean hasSecondStagePostProcessing();", "title": "" }, { "docid": "4222044f0d958f69aae1a5771d608ac6", "score": "0.42788917", "text": "@java.lang.Override\n public object_detection.protos.BoxPredictorOuterClass.BoxPredictorOrBuilder getSecondStageBoxPredictorOrBuilder() {\n return secondStageBoxPredictor_ == null ? object_detection.protos.BoxPredictorOuterClass.BoxPredictor.getDefaultInstance() : secondStageBoxPredictor_;\n }", "title": "" }, { "docid": "66fc7f55aff8793a0e9b88260a2887b5", "score": "0.4272419", "text": "public object_detection.protos.BoxPredictorOuterClass.BoxPredictor getSecondStageBoxPredictor() {\n if (secondStageBoxPredictorBuilder_ == null) {\n return secondStageBoxPredictor_ == null ? object_detection.protos.BoxPredictorOuterClass.BoxPredictor.getDefaultInstance() : secondStageBoxPredictor_;\n } else {\n return secondStageBoxPredictorBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "4135dde172197042536651a408c4b0f8", "score": "0.42649642", "text": "boolean hasUseMatmulCropAndResize();", "title": "" }, { "docid": "923a37713f32c6335f9b5a23a04b537e", "score": "0.4246164", "text": "public void setFacturaConsumidorFinal(java.lang.Boolean facturaConsumidorFinal) {\r\n this.facturaConsumidorFinal = facturaConsumidorFinal;\r\n }", "title": "" }, { "docid": "2ecba72837de4312ff353fc5dbf67984", "score": "0.42421326", "text": "public boolean isFinalImage(){\n\t\treturn (this.current_scene == this.images.size()-1);\n\t}", "title": "" }, { "docid": "135627c409e2da6405c48e440610b2d1", "score": "0.42383304", "text": "abstract public void computeOutput(Layer prevLayer, boolean isTraining);", "title": "" }, { "docid": "a007bd8f5928cf9bf66a6b8b0f5c9e73", "score": "0.4227501", "text": "public Builder clearSecondStageBoxPredictor() {\n if (secondStageBoxPredictorBuilder_ == null) {\n secondStageBoxPredictor_ = null;\n onChanged();\n } else {\n secondStageBoxPredictorBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00080000);\n return this;\n }", "title": "" }, { "docid": "117371c852ffa23cbe25f65144882abf", "score": "0.42094657", "text": "private static void processAdditionalLeaveOneOutCrossValidation() {\n //initialize pre-saved pos-sequences\n List<String> posTagsFiles = new ArrayList<>();\n posTagsFiles.add(\"./src/main/resources/possequences/marking_entityToPOS_oke-challenge2018-trainin.txt\");\n posTagsFiles.add(\"./src/main/resources/possequences/marking_entityToPOS_ReutersTes.txt\");\n posTagsFiles.add(\"./src/main/resources/possequences/marking_entityToPOS_RSS-50.txt\");\n\n POSMarker posMarker = new POSMarker(posTagsFiles);\n\n //initialize test-ttl file\n List<String> testTtlFile = new ArrayList<>();\n testTtlFile.add(\"./src/main/resources/eval/ReutersTest.ttl\");\n //testTtlFile.add(\"./src/main/resources/eval/dbpedia-spotlight-nif.ttl\");\n\n processEvaluation(posMarker, testTtlFile);\n }", "title": "" }, { "docid": "57d6e927683292b3f373c4f1c72335ca", "score": "0.4204536", "text": "@java.lang.Override\n public boolean hasFirstStageBoxPredictorDepth() {\n return ((bitField0_ & 0x00000100) != 0);\n }", "title": "" }, { "docid": "f33f34924e770d7b5c5654429d475c05", "score": "0.42029324", "text": "public void showBoundingBox(boolean showBoundingBox)\n {\n\n this.boundingBoxVisible = showBoundingBox;\n }", "title": "" }, { "docid": "dd906a666010942702792f6dd20a28ff", "score": "0.41800606", "text": "public Builder setSecondStageBoxPredictor(object_detection.protos.BoxPredictorOuterClass.BoxPredictor value) {\n if (secondStageBoxPredictorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n secondStageBoxPredictor_ = value;\n onChanged();\n } else {\n secondStageBoxPredictorBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00080000;\n return this;\n }", "title": "" }, { "docid": "2cd4723031421466c832cd4cebe04158", "score": "0.4171601", "text": "boolean hasInitialCropSize();", "title": "" }, { "docid": "32283d5744fadeecb3e96adcff294003", "score": "0.4170822", "text": "private void change(){\n Rect[] ret=CVHelper.faceDetectFine(imgMat,false);\n \tRect faceRect=ret[0];\n Rect eyeRect = ret[1];\n Rect noseRect = ret[2];\n Rect mouseRect = ret[3];\n Mat faceMat =imgMat.submat(faceRect); //showMatInfo(faceMat, \"faceMat0\");\n\n// imgMatDest = new Mat();\n// Utils.bitmapToMat(imgDest, imgMatDest);\n Rect[] retDest=CVHelper.faceDetectFine(imgMatDest,false);\n Rect faceRectDest=retDest[0];\n Rect eyeRectDest = retDest[1];\n Rect noseRectDest = retDest[2];\n Rect mouseRectDest = retDest[3];\n Mat faceMatDest=imgMatDest.submat(faceRectDest);\n \n //get mask\n Mat faceMask=CVHelper.getMask(faceMat,CvType.CV_64FC4,eyeRect,noseRect,mouseRect); //showMatInfo(faceMat, \"faceMat1\");showMatInfo(faceMask, \"faceMask\");\n Mat faceMaskScaled=CVHelper.scaledMat(faceMask, faceRectDest, CvType.CV_64FC4);\n Mat faceMaskDest=CVHelper.getMask(faceMatDest,CvType.CV_64FC4,eyeRectDest,noseRectDest,mouseRectDest);\n\n Core.max(faceMaskScaled, faceMaskDest, faceMaskScaled);\n \n \n //correct color\n int blur_amount=(int) (faceRect.width*CVHelper.COLOUR_CORRECT_BLUR_FRAC); \n if(blur_amount%2==0){\n \tblur_amount+=1;\n }\n Log.i(TAG, \"blur_amount->\"+blur_amount);\n \n Mat faceMatScaled=CVHelper.scaledMat(faceMat, faceRectDest,CvType.CV_64FC4); //showMatInfo(faceMatScaled, \"faceMatScaled\"); \n faceMatDest.convertTo(faceMatDest, CvType.CV_64FC4);\n \n Mat im1_blur=new Mat();\n Mat im2_blur=new Mat(); \n Imgproc.GaussianBlur(faceMatScaled, im2_blur, new Size(blur_amount,blur_amount), 0); //showMatInfo(faceMatScaled, \"faceMatScaled\"); \n Imgproc.GaussianBlur(faceMatDest, im1_blur, new Size(blur_amount,blur_amount), 0); //showMatInfo(im1_blur, \"im1_blur\"); \n \n \n Mat tmp=new Mat(im2_blur.rows(), im2_blur.cols(), im2_blur.type()); //showMatInfo(tmp, \"tmp\");\n Mat ones=Mat.ones(im2_blur.rows(), im2_blur.cols(), im2_blur.type()); // showMatInfo(ones, \"ones\"); \n Core.compare(im2_blur, ones, tmp, Core.CMP_LE); CVHelper.showMatInfo(tmp, \"tmp\");\n tmp.convertTo(tmp, tmp.type(), 128); //CVHelper.showData(tmp, \"tmp\"); // showMatInfo(im2_blur, \"im2_blur\");\n tmp.assignTo(tmp, im2_blur.type()); //CVHelper.showData(tmp, \"tmp2\"); // showMatInfo(tmp, \"tmp\");\n Core.add(im2_blur, tmp, im2_blur); \n \n Core.multiply(faceMatScaled,im1_blur ,im1_blur);\n Core.divide(im1_blur, im2_blur, faceMatScaled); \n \n CVHelper.drawMat(imgMat, imageView);\n \n //change face \n Mat combinedMask=faceMaskScaled; //showData(combinedMask, \"combinedMask\");\n \n Mat onesMat=Mat.ones(combinedMask.rows(), combinedMask.cols(), combinedMask.type()); \n onesMat.setTo(new Scalar(1.0, 1.0, 1.0, 1.0));\n Mat antiCombinedMask=new Mat(combinedMask.rows(), combinedMask.cols(), combinedMask.type());\n Core.subtract(onesMat, combinedMask, antiCombinedMask);\t //showData(antiCombinedMask, \"antiCombinedMask\"); \n\n\n //CVHelper.drawMat(antiCombinedMask, imageViewTest1);\n\n Mat tmp1=new Mat(combinedMask.rows(), combinedMask.cols(), combinedMask.type());\n Core.multiply(faceMatScaled, combinedMask, tmp1);\n CVHelper.drawMat(tmp1, imageViewTest1);\n\n Mat tmp2=new Mat(combinedMask.rows(), combinedMask.cols(), combinedMask.type());\n Core.multiply(faceMatDest, antiCombinedMask, tmp2);\n CVHelper.drawMat(tmp2, imageViewTest2);\n \n\n \n Core.add(tmp1, tmp2, faceMatDest); \n CVHelper.drawMat(faceMatDest, imageViewTest3);\n \n faceMatDest.assignTo(faceMatDest, CvType.CV_8UC4);\n Imgproc.GaussianBlur( faceMatDest, faceMatDest, new Size(CVHelper.WHOLE_BLUR_SIZE,CVHelper.WHOLE_BLUR_SIZE), 0);\n// Imgproc.medianBlur(faceMatDest, faceMatDest, CVHelper.WHOLE_BLUR_SIZE); //CVHelper.showMatInfo(faceMatDest, \"faceMatDest\");\n \n faceMatDest.copyTo(imgMatDest.submat(faceRectDest)); \n CVHelper.drawMat(imgMatDest, imageViewDest);\n\n// maker.setVisibility(View.INVISIBLE);\n// RelativeLayout.LayoutParams lp= (RelativeLayout.LayoutParams) maker.getLayoutParams();\n// lp.setMargins(0,imageViewDest.getHeight()/2,0,0);\n// maker.setLayoutParams(lp);\n\n }", "title": "" }, { "docid": "7ee450bc289a741175bfbba640b9bf8a", "score": "0.41652125", "text": "public Builder mergeSecondStageBoxPredictor(object_detection.protos.BoxPredictorOuterClass.BoxPredictor value) {\n if (secondStageBoxPredictorBuilder_ == null) {\n if (((bitField0_ & 0x00080000) != 0) &&\n secondStageBoxPredictor_ != null &&\n secondStageBoxPredictor_ != object_detection.protos.BoxPredictorOuterClass.BoxPredictor.getDefaultInstance()) {\n secondStageBoxPredictor_ =\n object_detection.protos.BoxPredictorOuterClass.BoxPredictor.newBuilder(secondStageBoxPredictor_).mergeFrom(value).buildPartial();\n } else {\n secondStageBoxPredictor_ = value;\n }\n onChanged();\n } else {\n secondStageBoxPredictorBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00080000;\n return this;\n }", "title": "" }, { "docid": "ef48c6befb35a64b6ba133ddbeaa32ce", "score": "0.4165059", "text": "@java.lang.Override\n public boolean hasFirstStageBoxPredictorDepth() {\n return ((bitField0_ & 0x00000100) != 0);\n }", "title": "" }, { "docid": "5c384d5e2dee025323ae75dcf75ce19d", "score": "0.4162613", "text": "@java.lang.Override\n public boolean hasFirstStageBoxPredictorConvHyperparams() {\n return ((bitField0_ & 0x00000040) != 0);\n }", "title": "" }, { "docid": "bad79e57db0b0c142756596cb772ac21", "score": "0.41494486", "text": "public static void main(String[] args) {\n double[][] ipArr = null;\r\n //expected output from the output layer\r\n double[][] opArr = null;\r\n \r\n \tint choice = 0;\r\n \tSystem.out.println(\"1. Dyspnea [IP features will be Pollution, Smoker, Cancer, Xray]\");\r\n \tSystem.out.println(\"2. Xray [IP features will be Pollution, Smoker, Cancer, Dyspnea]\");\r\n \tSystem.out.println(\"Choose which feature will be used as output to be predicted...\");\r\n \r\n \tScanner sc = new Scanner(System.in);\r\n \tchoice = Integer.parseInt(sc.next());\r\n \t\r\n \tswitch(choice) {\r\n \t\tcase 1: ipArr = new double[][] {{0.1, 0.3, 0.1, 0.1}, {0.1, 0.7, 0.5, 0.4}, {0.9, 0.3, 0.5, 0.4}, {0.9, 0.7, 0.9, 0.9}};\r\n \t\t\t\topArr = new double[][] {{0}, {0}, {0.5}, {1}};\r\n \t\t\t\tbreak;\r\n \t \r\n \t\tcase 2: ipArr = new double[][] {{0.1, 0.3, 0.1, 0.1}, {0.1, 0.7, 0.5, 0.4}, {0.9, 0.3, 0.5, 0.4}, {0, 0, 0.5, 1}};\r\n \t \t\topArr = new double[][] {{0.9}, {0.7}, {0.9}, {0.9}};\r\n \t \t\tbreak;\r\n \t \r\n \t\tdefault: System.out.println(\"Only options 0 and 1 please...\");\r\n \t \t\t break;\r\n \t}\r\n \t\r\n sc.close();\r\n //no. of outputs\r\n int op = 4;\r\n //no. of nodes in hidden layer\r\n int hiddenNodes = 500;\r\n \r\n \r\n //the rows to be ip of nn are columns, so a transpose of the matrix is required\r\n ipArr = Transpose(ipArr);\r\n \r\n //same case for the ops\r\n opArr = Transpose(opArr);\r\n\r\n //randomising the weights and bias between layer 1 (ip) and layer 2\r\n double[][] W1 = random(hiddenNodes, 4);\r\n double[][] b1 = new double[hiddenNodes][op];\r\n \r\n //randomising the weights and bias between layer 2 and layer 3 (op)\r\n double[][] W2 = random(1, hiddenNodes);\r\n double[][] b2 = new double[1][op];\r\n\r\n //training for 5000 epochs\r\n for (int i = 0; i < 5000; i++) {\r\n \r\n \t//feedforward prop between layer 1 and layer 2 \r\n double[][] Z1 = sumMat(dotVec(W1, ipArr), b1);\r\n double[][] A1 = sigmoidAct(Z1);\r\n\r\n //feedforward prop between layer 2 and layer 3 \r\n double[][] Z2 = sumMat(dotVec(W2, A1), b2);\r\n double[][] A2 = sigmoidAct(Z2);\r\n\r\n //calculating error between expected and predicted values\r\n double cost = crossEntropyLoss(op, opArr, A2);\r\n \r\n //back prop between layer 3 and layer 2\r\n //adjusts weights between 2 and 3\r\n double[][] dZ2 = diffMat(A2, opArr);\r\n double[][] dW2 = divisionMat(dotVec(dZ2, Transpose(A1)), op);\r\n double[][] db2 = divisionMat(dZ2, op);\r\n\r\n //back prop between layer 2 and layer 1\r\n //adjusts weights between 1 and 2\r\n double[][] dZ1 = productMat(dotVec(Transpose(W2), dZ2), diffMat(1.0, power(A1, 2)));\r\n double[][] dW1 = divisionMat(dotVec(dZ1, Transpose(ipArr)), op);\r\n double[][] db1 = divisionMat(dZ1, op);\r\n\r\n //gradient descent for layer 1-2 weights and biases\r\n W1 = diffMat(W1, productMat(0.01, dW1));\r\n b1 = diffMat(b1, productMat(0.01, db1));\r\n\r\n //gradient descent for layer 2-3 weights and biases\r\n W2 = diffMat(W2, productMat(0.01, dW2));\r\n b2 = diffMat(b2, productMat(0.01, db2));\r\n\r\n //prints results every 400 epochs\r\n if (i % 500 == 0) {\r\n \tSystem.out.println(\"\");\r\n \tSystem.out.println(\"######################################\");\r\n \tSystem.out.println(\"error = \" + cost);\r\n \tSystem.out.println(\"Predicted OP = \" + Arrays.deepToString(A2));\r\n }\r\n }\r\n \r\n }", "title": "" }, { "docid": "46ec20458018f1974b726a6f710304c3", "score": "0.41446167", "text": "public object_detection.protos.BoxPredictorOuterClass.BoxPredictorOrBuilder getSecondStageBoxPredictorOrBuilder() {\n if (secondStageBoxPredictorBuilder_ != null) {\n return secondStageBoxPredictorBuilder_.getMessageOrBuilder();\n } else {\n return secondStageBoxPredictor_ == null ?\n object_detection.protos.BoxPredictorOuterClass.BoxPredictor.getDefaultInstance() : secondStageBoxPredictor_;\n }\n }", "title": "" }, { "docid": "c5f5bef758331ef29821863a96543961", "score": "0.4143777", "text": "boolean hasMaxpoolKernelSize();", "title": "" }, { "docid": "898673c1e1a90aa345ce5a8da9a966ae", "score": "0.41421324", "text": "private boolean isOutOfPlace()\n {\n return extractVisualClassifier() != getSubjectAsFeature().getOwner();\n }", "title": "" }, { "docid": "89d264ba6de84cda7b1efd3bf0ecbc19", "score": "0.41236025", "text": "public void setPlayerBoardFinalFrenzy(boolean playerBoardFinalFrenzy) {\n this.playerBoardFinalFrenzy = playerBoardFinalFrenzy;\n }", "title": "" }, { "docid": "620c059b4471d8c6a755016146ad6862", "score": "0.40964898", "text": "boolean getUseMatmulCropAndResize();", "title": "" }, { "docid": "5101b84cd941e9a30f6acae912584e0b", "score": "0.4088637", "text": "boolean isBoxRealizerSelected();", "title": "" }, { "docid": "9c27ab6914616429677549463029a6e1", "score": "0.40834698", "text": "public void saveTBox(File output, int format) throws Exception\n\t\t{\n\t\t\tOWLAxiom abox[] = this.removeABox();\n\t\t\tthis.saveOntology(output,format);\n\t\t\tfor(OWLAxiom a : abox)\n\t\t\t\tthis.manager.addAxiom(this.ontology,a);\n\t\t}", "title": "" }, { "docid": "7f84a55ba4147ce1109d14412aa48a71", "score": "0.40817967", "text": "public boolean hasFirstStageBoxPredictorConvHyperparams() {\n return ((bitField0_ & 0x00000040) != 0);\n }", "title": "" }, { "docid": "0001d1fdf132399f2d9540e2d70231cf", "score": "0.40654895", "text": "public boolean Output(boolean sample[]) {\n\t\t\n\t\tif(assign_id == DecisionNode.OutputAssignID()) {\n\t\t\treturn output_val;\n\t\t}\n\t\t\n\t\tassign_id = DecisionNode.OutputAssignID();\n\t\tArrayList<Boolean> buff = new ArrayList<Boolean>();\n\t\tArrayList<Float> prob_buff = new ArrayList<Float>();\n\t\tOutput(sample, buff, prob_buff);\n\t\t\n\t\tfloat true_count = 0;\n\t\tfloat false_count = 0;\n\t\t\n\t\tfor(int i=0; i<buff.size(); i++) {\n\t\t\t\n\t\t\tif(buff.get(i) == true) {\n\t\t\t\ttrue_count += 1;\n\t\t\t} else {\n\t\t\t\tfalse_count += 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(buff.size() > 1) {\n\t\t\tclass_error += (float)Math.min(true_count, false_count) / Math.max(true_count, false_count);\n\t\t} else {\n\t\t\tclass_error += node.ClassificationError(sample);\n\t\t}\n\t\t\n\t\toutput_val = true_count > false_count;\n\t\treturn output_val;\n\t}", "title": "" }, { "docid": "0abe75ce8ada474786d5fdfe0b2a6f02", "score": "0.40616634", "text": "object_detection.protos.PostProcessingOuterClass.PostProcessing getSecondStagePostProcessing();", "title": "" }, { "docid": "7cb43baefca8fbff941fe250cfe3f2b8", "score": "0.4060475", "text": "private boolean ParallelHiddenTripletsColumns(int cores){\n // Executor service\n ExecutorService executorService = Executors.newFixedThreadPool(cores);\n // If any change is made\n AtomicBoolean anyChange = new AtomicBoolean(false);\n\n // Try to hidden triplets for each column\n for (int j = 0; j < boxes.length; j++){\n final Box box = boxes[0][j];\n // Thread to clean a column\n executorService.submit(() -> {\n if (box.HiddenTripletsColumns()) {\n anyChange.compareAndSet(false,true);\n }\n });\n }\n\n // Safe shutdown\n executorService.shutdown();\n try {\n if (!executorService.awaitTermination(1, TimeUnit.MINUTES)) {\n executorService.shutdownNow();\n }\n } catch (InterruptedException e) {\n log.error(\"Error with parallel ParallelHiddenTriplets method\");\n executorService.shutdownNow();\n }\n\n return anyChange.get();\n }", "title": "" }, { "docid": "0df30c97c2720a91487b0b62003eabb2", "score": "0.40405342", "text": "private boolean ParallelNakedTripletsColumns(int cores){\n // Executor service\n ExecutorService executorService = Executors.newFixedThreadPool(cores);\n // If any change is made\n AtomicBoolean anyChange = new AtomicBoolean(false);\n\n // Try to naked triplets for each column\n for (int j = 0; j < boxes.length; j++){\n final Box box = boxes[0][j];\n // Thread to clean a column\n executorService.submit(() -> {\n if (box.NakedTripletsColumns()) {\n anyChange.compareAndSet(false,true);\n }\n });\n }\n\n // Safe shutdown\n executorService.shutdown();\n try {\n if (!executorService.awaitTermination(1, TimeUnit.MINUTES)) {\n executorService.shutdownNow();\n }\n } catch (InterruptedException e) {\n log.error(\"Error with parallel ParallelNakedTriplets method\");\n executorService.shutdownNow();\n }\n\n return anyChange.get();\n }", "title": "" }, { "docid": "9ad4f4b192dc6969ec802e60e7a9d159", "score": "0.40382975", "text": "public Builder setReturnRawDetectionsDuringPredict(boolean value) {\n bitField1_ |= 0x00000020;\n returnRawDetectionsDuringPredict_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "feb96fc5d64391436dc1d906b3f0b9c3", "score": "0.40380123", "text": "public void process( T input ) {\n//\t\tSystem.out.println(\"ENTER CHESSBOARD CORNER \"+input.width+\" x \"+input.height);\n\t\tborderImg.setImage(input);\n\t\tgradient.process(input,derivX,derivY);\n\n\t\tinterpX.setImage(derivX);\n\t\tinterpY.setImage(derivY);\n\n\t\tcornerIntensity.process(derivX,derivY,intensity);\n\t\tintensityInterp.setImage(intensity);\n\n\t\t// adjust intensity value so that its between 0 and levels for OTSU thresholding\n\t\tfloat featmax = ImageStatistics.max(intensity);\n\t\tPixelMath.multiply(intensity, GRAY_LEVELS /featmax,intensity);\n\n//\t\tint N = intensity.width*input.height;\n//\t\tfor (int i = 0; i < N; i++) {\n//\t\t\tif( intensity.data[i] <= 2f ) {\n//\t\t\t\tintensity.data[i] = 0f;\n//\t\t\t}\n//\t\t}\n\n\t\t// convert into a binary image with high feature intensity regions being 1\n\t\tinputToBinary.process(intensity,binary);\n\t\t// find the small regions. Th se might be where corners are\n\t\tcontourFinder.process(binary);\n\n\t\tcorners.reset();\n\t\tList<ContourPacked> packed = contourFinder.getContours();\n//\t\tSystem.out.println(\" * features.size = \"+packed.size());\n\t\tfor (int i = 0; i < packed.size(); i++) {\n\t\t\tcontourFinder.loadContour(i,contour);\n\n\t\t\tChessboardCorner c = corners.grow();\n\n\t\t\tUtilPoint2D_I32.mean(contour.toList(),c);\n\t\t\t// compensate for the bias caused by how pixels are counted.\n\t\t\t// Example: a 4x4 region is expected. Center should be at (2,2) but will instead be (1.5,1.5)\n\t\t\tc.x += 0.5;\n\t\t\tc.y += 0.5;\n\n\t\t\tcomputeFeatures(c.x,c.y,c);\n\n//\t\t\tSystem.out.println(\"radius = \"+radius+\" angle = \"+c.angle);\n//\t\t\tSystem.out.println(\"intensity \"+c.intensity);\n\t\t\tif( c.intensity < cornerIntensityThreshold ) {\n\t\t\t\tcorners.removeTail();\n\t\t\t} else if( useMeanShift ) {\n\t\t\t\tmeanShiftLocation(c);\n\t\t\t\t// TODO does it make sense to use mean shift first?\n\t\t\t\tcomputeFeatures(c.x,c.y,c);\n\t\t\t}\n\t\t}\n\n//\t\tSystem.out.println(\"Dropped \"+dropped+\" / \"+packed.size());\n\t}", "title": "" }, { "docid": "23084ccc4099ba98c7887e50c1ba11d5", "score": "0.4037666", "text": "private void showFinalSlide() {\r\n\t\t\tlang.nextStep(translator.translateMessage(\"STEP_FOUR\"));\r\n\t\t\tfor (Primitive p : toBeHidden)\r\n\t\t\t\tp.hide();\r\n\t\t\tview.hide();\r\n\t\t\tview2.hide();\r\n\t\t\t\r\n\t\t\tnew Slide(lang, getResource(\"FINAL\", true), positioning.getName(),\r\n\t\t\t\t\tnew SearchingStyle(h2Props,plainProps,srcProps,false), k, attributesSeenSoFar.getNrRows(),inputRelation.length,\r\n\t\t\t\t\tlistOfMaps.getCounter().getAccess(),listOfMaps.getNrElements());\r\n\t\t}", "title": "" }, { "docid": "e5648ae85d48f88c1d11e6f319f76890", "score": "0.40328538", "text": "private void processBox(Box b){\n\t\tif(b.numOfPoints<=1) return;\n\t\t// case of to small Box:\n\t\tif(b.getSize()<=(3.0*eps)) {\n\t\t\tcompareInBox(b);\n\t\t\treturn;\n\t\t}\n\t\t// recursion case(subdivision needed):\n\t\tif(b.numOfPoints>maxPointPerBoxCount){\n\t\t\tBox[] subBoxes = createSubBoxes(b);\n\t\t\tfor (int i = 0; i < subBoxes.length; i++) {\n\t\t\t\tprocessBox(subBoxes[i]);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// comparing:\n\t\tcompareInBox(b);\n\t}", "title": "" }, { "docid": "4e050bb3dd537599d2c318aca4bcc313", "score": "0.40191865", "text": "@java.lang.Override\n public boolean getReturnRawDetectionsDuringPredict() {\n return returnRawDetectionsDuringPredict_;\n }", "title": "" }, { "docid": "bf97c534ef3819ef11f341036853dd44", "score": "0.4018048", "text": "private boolean endVisible(Point end, Mat output) {\n return (end.x > 2 &&\n end.x < output.width() - 2 &&\n end.y > 2 &&\n end.y < output.height() - 2);\n }", "title": "" }, { "docid": "4d03f7757232e95842a193214d54b21b", "score": "0.40056318", "text": "object_detection.protos.PostProcessingOuterClass.PostProcessingOrBuilder getSecondStagePostProcessingOrBuilder();", "title": "" }, { "docid": "8a5e3eccfcb5fdfbfd7af48eab63cfee", "score": "0.4001221", "text": "@Override\n public void finishCalibration() {\n\n }", "title": "" }, { "docid": "0fa166b4783c1359a6cd4fab3ae84949", "score": "0.399754", "text": "@Override\n\tpublic void exitActual( )\n\t\t{\n\t\t\tfaceDetector.releaseCamera();\n\t\t\tSystem.exit(0);\n\t\t}", "title": "" }, { "docid": "bd8210ae31b1ec7485313143f5496612", "score": "0.39955738", "text": "public boolean isFinalFrenzy() {\n return finalFrenzy;\n }", "title": "" }, { "docid": "4b9d9ca8bfcb299908867d89c292d991", "score": "0.39904958", "text": "@java.lang.Override\n public boolean getReturnRawDetectionsDuringPredict() {\n return returnRawDetectionsDuringPredict_;\n }", "title": "" }, { "docid": "ed61cb3f4feeb82914903642ef45097f", "score": "0.39870393", "text": "public String generatePostamble(String visualizationOuput, int numSolutions, boolean writeResults);", "title": "" }, { "docid": "6b9d717c0ef0248e397dbc36e90c9d04", "score": "0.3976921", "text": "object_detection.protos.HyperparamsOuterClass.Hyperparams getFirstStageBoxPredictorConvHyperparams();", "title": "" }, { "docid": "b1cd84dfd9793302b0cebc771943ffd5", "score": "0.39766747", "text": "protected final void afterLensHook(){\n\t\tif (parent.painters[Java2DPainter.AFTER_LENSES] != null){\n\t\t\tparent.painters[Java2DPainter.AFTER_LENSES].paint(stableRefToBackBufferGraphics, size.width, size.height);\n\t\t}\n\t}", "title": "" }, { "docid": "ee64595d56ab263c3b9c652030d93d6f", "score": "0.3970647", "text": "boolean hasSecondStageMaskPredictionLossWeight();", "title": "" }, { "docid": "fd99fdded3af5ce8f16897a286e41129", "score": "0.39662114", "text": "public void printAndClear(boolean fullBox) {\r\n\t\tString output = \"\";\r\n\t\tif(!fullBox) {\r\n\t\t\tif(box.size() == 0) {\r\n\t\t\t\toutput += \" Box empty\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\toutput += \" Partial box remaining: \";\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\toutput += \"Thread \" + consumerNumber + \" filled new box of candy containing: \";\r\n\t\t}\r\n\t\tint itemsInBox = box.size();\r\n\t\tfor(int i = 0; i < itemsInBox; i++) {\r\n\t\t\toutput += box.remove(box.size()-1) + \" \";\r\n\t\t}\r\n\t\tSystem.out.println(output);\r\n\t}", "title": "" }, { "docid": "715366626ddd5669c6cd6737af1d6073", "score": "0.3957098", "text": "private boolean ParallelHiddenTripletsRows(int cores){\n // Executor service\n ExecutorService executorService = Executors.newFixedThreadPool(cores);\n // If any change is made\n AtomicBoolean anyChange = new AtomicBoolean(false);\n\n // Try to hidden triplets for each row\n for (int i = 0; i < boxes.length; i++){\n final Box box = boxes[i][0];\n // Thread to clean a row\n executorService.submit(() -> {\n if (box.HiddenTripletsRows()) {\n anyChange.compareAndSet(false,true);\n }\n });\n }\n\n // Safe shutdown\n executorService.shutdown();\n try {\n if (!executorService.awaitTermination(1, TimeUnit.MINUTES)) {\n executorService.shutdownNow();\n }\n } catch (InterruptedException e) {\n log.error(\"Error with parallel ParallelHiddenTriplets method\");\n executorService.shutdownNow();\n }\n\n return anyChange.get();\n }", "title": "" }, { "docid": "2a30d279f32c5de96175127e13093c12", "score": "0.39480823", "text": "private boolean NakedTriplets(){\n boolean anyChange = false;\n // Loop through the boxes\n for (int i = 0; i < boxes.length; i++){\n for (int j = 0; j < boxes.length; j++){\n Box box = boxes[i][j];\n if (box.NakedTriplets()){\n return true;\n }\n }\n }\n return anyChange;\n }", "title": "" }, { "docid": "aab455010dc1f9813a5006f85b1344e3", "score": "0.39349127", "text": "public void setFinal(boolean fin){\n mFinal = fin;\n \n }", "title": "" }, { "docid": "4a8d2040aed7f119e601b1795a4e0f5b", "score": "0.3929415", "text": "@Override\n public boolean areShapesVisible() {\n return false;\n }", "title": "" }, { "docid": "a7dc04473401cc1fd95c565d5d22c9c5", "score": "0.3928253", "text": "private static void processSecondLeaveOneOutCrossValidation() {\n //initialize pre-saved pos-sequences\n List<String> posTagsFiles = new ArrayList<>();\n posTagsFiles.add(\"./src/main/resources/possequences/marking_entityToPOS_RSS-50.txt\");\n posTagsFiles.add(\"./src/main/resources/possequences/marking_entityToPOS_oke-challenge2018-trainin.txt\");\n\n POSMarker posMarker = new POSMarker(posTagsFiles);\n //initialize test-ttl file\n List<String> testTtlFile = new ArrayList<>();\n testTtlFile.add(\"./src/main/resources/eval/ReutersTest.ttl\");\n //testTtlFile.add(\"./src/main/resources/eval/dbpedia-spotlight-nif.ttl\");\n\n processEvaluation(posMarker, testTtlFile);\n }", "title": "" }, { "docid": "d46681c4f95897a4faba965eace1721f", "score": "0.39253744", "text": "@Override\r\n public Mat processFrame(final Mat input)\r\n {\r\n //Imgproc.cvtColor(input, input, Imgproc.COLOR_BGR2HSV);\r\n\r\n Imgproc.rectangle(input, new Point(input.cols()/4, input.rows()/4), new Point(input.cols()*(3f/4f), input.rows()*(3f/4f)), new Scalar(0, 255, 0), 4);\r\n\r\n /**\r\n * NOTE: to see how to get data from your pipeline to your OpMode as well as how\r\n * to change which stage of the pipeline is rendered to the viewport when it is\r\n * tapped, please see {@link PipelineStageSwitchingExample}\r\n */\r\n int resultsRow = -1;\r\n int resultsCol = -1;\r\n\r\n int imgWidth = img1.width();\r\n int imgHeight = img1.height();\r\n\r\n\r\n while(resultsRow <= 0 || resultsCol <= 0){\r\n resultsCol = input.cols() - img1.cols() + 1;\r\n resultsRow = input.rows() - img1.rows() + 1;\r\n\r\n imgWidth = img1.size(1);\r\n imgHeight = img1.size(0);\r\n\r\n Size scalarSize = new Size(imgWidth/2, imgHeight/2);\r\n if(resultsRow <= 0 || resultsCol <= 0){\r\n Imgproc.resize(img1, img1, scalarSize, 0, 0, Imgproc.INTER_AREA);\r\n }\r\n }\r\n int machMethod = Imgproc.TM_CCOEFF;\r\n //Template matching method\r\n Imgproc.matchTemplate(input, img1, input, machMethod);\r\n\r\n\r\n Core.MinMaxLocResult mmr = Core.minMaxLoc(input);\r\n Point matchLoc = mmr.maxLoc;\r\n //Draw rectangle on result image\r\n Imgproc.rectangle(img1, matchLoc, new Point(matchLoc.x + img1.cols(),\r\n matchLoc.y + img1.rows()), new Scalar(255, 255, 255));\r\n\r\n return input;\r\n }", "title": "" }, { "docid": "d6bb95fc808695e3b0049cb79f1b2823", "score": "0.39217535", "text": "public Builder clearReturnRawDetectionsDuringPredict() {\n bitField1_ = (bitField1_ & ~0x00000020);\n returnRawDetectionsDuringPredict_ = false;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2c71a6561f22368ef35331800ce6c40e", "score": "0.3920801", "text": "public void endEpoch() {\n\tsom2Net inputNet = (som2Net) getNet(\"BaseNet\");\n\t\n\tint points[];\n\t\n\tpoints = new int[20];\n\tint cPoints = 20;\n\tint area;\n\t\n\tif (!inTest) {\n\t\tarea = CANT23.random.nextInt(numInputTypes);\n\t}\n\telse { \n\t\tarea = CANT23.CANTStep /75;\n\t\tarea %= numInputTypes;\t\n\t}\n\t\n\tint xOffset = 0;\n\t//int yOffset = 100; //10x20 net\n\tint yOffset = 200;\n\t\n\t//for (19,19) type (19,9) type (8,9)\n\t//xOffset += (area*10);\n\t//yOffset += (area*10);\n\t\n\t\n\t//(10,0),(11,1)..(19,9),(10,10)(11,11)..(19,19)\n\t//if (area < 10) xOffset += 100;\n\t\n\t//(0,0),(1,1)..(9,9),(9,0),(0,1),(1,2)..(8,9)\n\t/*if (area >= 10) {\n\t\tyOffset -= 100;\n\t\tif (area == 10) xOffset -= 10;\n\t\telse xOffset -= 110;\n\t}*/\n\t\n\t//for (0,0)(1,0)(2,0)(3,0) (4,1)\n\txOffset += ((area%5)*10);\n\tyOffset += ((area/4)*10);\n\t\n\t\n\t\n/*\tif (area == 0) {\n\t\txOffset+= 0; //first area is bottom left could be ignored\n\t}\n\telse if (area == 1) {\n\t\txOffset+= 50; \n\t\tyOffset+= 20; \n\t}\n\telse if (area == 2) {\n\t\txOffset+= 20; \n\t\tyOffset+= 40; \n\t}\n\telse {\n\t\tSystem.out.println(\"Error in endepoch \" + area );\n\t}\n\t*/\n\n\tfor (int i = 0; i < (cPoints/2); i++) {\n\t points[2*i] = xOffset + i;\n\t points[(2*i) + 1] = yOffset+ i;\n\t}\n\n\t//System.out.println(\"Pattern \" + xOffset + \" \" + yOffset + \" \" + CANT23.CANTStep );\n\n\tCANTPattern newPat = new CANTPattern(inputNet, \"bob\", 0, cPoints, points);\n\tinputNet.addNewPattern(newPat);\n }", "title": "" }, { "docid": "f9d11488ce43a55505f994740a90e86f", "score": "0.3910956", "text": "public final void afterProcessingAllShapes()\n\t{\n\t\tnrRefs = offsetBnd;\n\t\tint nrNodes = nrIntNodes + nrRefs;\n\t\tLOGGER.fine(\"Append coordinates of \"+nrRefs+\" nodes\");\n\t\ttry\n\t\t{\n\t\t\tfor (int i = 0; i < 3*nrRefs; i+=3)\n\t\t\t\tamibeWriter.addNode(coordRefs[i], coordRefs[i+1], coordRefs[i+2]);\n\t\t\tif (unvWriter != null)\n\t\t\t\tunvWriter.finish(nrRefs, nrIntNodes, nrTriangles, coordRefs);\n\n\t\t\tamibeWriter.finish();\n\t\t\tLOGGER.info(\"Total number of nodes: \"+nrNodes);\n\t\t\tLOGGER.info(\"Total number of triangles: \"+nrTriangles);\t\t\t\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t}", "title": "" }, { "docid": "23966a76e85fa9c9178c921edc2ce06c", "score": "0.39054236", "text": "public boolean isFinal(){\n \n return mFinal;\n }", "title": "" }, { "docid": "5512b6633ed8fbd0c1c7b0b5b9ec0c60", "score": "0.3903559", "text": "public void generateFeatures(FeatureSelectionMap selection) {\n\timageFeatures.clear(); \r\n\tfor (int featureIndex : selection.featuresMap.keySet()){\r\n\t\t\tArrayList<Pixel> pixels\t\t\t= selection.featuresMap.get(featureIndex);\r\n\t\t\tFeatureNode imageFeature\t\t= new FeatureNode(pixels);\r\n\t\t\tfor (int i=0; i<pixels.size();i++) {\r\n\t\t\t\tBasePNode featurePixelInput = new BasePNode(); // Always Adding A dummy Pixel Node with output to 1\r\n\t\t\t\tfeaturePixelInput.setOutput(1);\r\n\t\t\t\timageFeature.inputs.add(featurePixelInput);\t\t\t\t\r\n\t\t\t}\r\n\t\t\timageFeature.originalImage\t\t= this;\r\n\t\t\timageFeature.getOutput(); // Runs the activation function in the hand out more details in function\r\n\t\t\timageFeatures.add(imageFeature);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e7f80930c052aea357580ae15e0ddb67", "score": "0.3902872", "text": "private static void processThirdLeaveOneOutCrossValidation() {\n //initialize pre-saved pos-sequences\n List<String> posTagsFiles = new ArrayList<>();\n posTagsFiles.add(\"./src/main/resources/possequences/marking_entityToPOS_oke-challenge2018-trainin.txt\");\n posTagsFiles.add(\"./src/main/resources/possequences/marking_entityToPOS_ReutersTes.txt\");\n\n POSMarker posMarker = new POSMarker(posTagsFiles);\n\n //initialize test-ttl file\n List<String> testTtlFile = new ArrayList<>();\n testTtlFile.add(\"./src/main/resources/eval/RSS-500.ttl\");\n testTtlFile.add(\"./src/main/resources/eval/dbpedia-spotlight-nif.ttl\");\n\n processEvaluation(posMarker, testTtlFile);\n }", "title": "" } ]
378b01b6f0523cf1a6f264caff9a16c6
Shows updated inventory with products that do not have a quantity that equals 0
[ { "docid": "4a477a4cb8b678b9be245f0e57b99c12", "score": "0.6963868", "text": "public boolean showInventory() {\n\n // removes products of 0 quantity\n for (int k = 0; k < this.getInventorySize(); k++) {\n\n if (this.getProduct(k).getQuantity() == 0) {\n this.removeProduct(this.getProduct(k));\n k --;\n }\n }\n return (this.getInventorySize() != 0);\n }", "title": "" } ]
[ { "docid": "5a2109a9e8008b19c91011bc44d6a663", "score": "0.61567265", "text": "public static void emptyInventoryListMessage() {\n System.out.println(\"You do not have any Items in your inventory:(\");\n }", "title": "" }, { "docid": "58804718a1e09386010c5356609ec388", "score": "0.5996532", "text": "public void showProducts() {\n\t\t\tfor(int i = 0; i < products.size(); i++) {\n\t\t\t\tif(products.get(i).quantity > 0) {\n\t\t\t\t\tSystem.out.println(alphabet.substring(i, i+1).toUpperCase() + \") \" + products.get(i).toString());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tproducts.remove(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "e31c8eeec91d01452b877a382c41a61f", "score": "0.5981502", "text": "private void refreshStock(){\n storeStock = sysMgr.getStock(sysMgr.getLoginId());\n ArrayList<Stock> nonEmpty = new ArrayList<>();\n for(Stock i : storeStock)\n if(i.getQuantity() != 0)\n nonEmpty.add(i);\n storeStock = nonEmpty;\n }", "title": "" }, { "docid": "db9b3040b4ee18f5b443b4dc628bbe83", "score": "0.5933133", "text": "@Override\n\tpublic int getSizeInventory() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "3415c6fb49b2495761dd0b2ca5f494ea", "score": "0.5789903", "text": "public void onInventoryChanged()\n\t{\n\t\tfor (int i = 0; i < this.items.length; i++)\n\t\t{\n\t\t\tItemStack stack = this.items[i];\n\t\t\tif (stack != null && stack.stackSize <= 0)\n\t\t\t{\n\t\t\t\tthis.items[i] = null;\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "01fe0c03ea2b9f493113435dbd9a37e6", "score": "0.56638885", "text": "@Override\r\n public String toString() {\r\n String result = \"\";\r\n for (Map.Entry<Item, Integer> item : inventory.entrySet()) {\r\n if (item.getValue() == 0) {\r\n result += \"SOLD OUT\\n\";\r\n } else {\r\n result += item.getKey();\r\n }\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "d0d234dd18ec0469efef0f740c62270b", "score": "0.56441873", "text": "public void removeEmptyItems(){\n\t\tfor(int i=0; i<currentOrder.getItems().size();i++){\n\t\t\tif(currentOrder.getItems().get(i).getQuantity()<=0){\n\t\t\t\tcurrentOrder.getItems().remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6e7380c16aba15b640240c26456358de", "score": "0.56218755", "text": "public void stateForUnavailableItems_InMiniCart() {\n int count = 0;\n List<WebElement> itemInMiniCart = getDriver().findElements(By.xpath(\"//*[@id='itemList']//li\"));\n for (WebElement unavailable : itemInMiniCart) {\n if (count != itemInMiniCart.size()) {\n if (!String.valueOf(unavailable.getAttribute(\"class\")).contains(\"outofstock\")) {\n continue;\n }\n count++;\n System.out.println(\"unavailable ===>> \" + String.valueOf(unavailable.findElement(By.xpath(\"//*[@class='productNameInner']\")).getText()));\n WebElement childQtyStepper = unavailable.findElement(By.xpath(\".//*[@class='mjr-qtyButton plus noSelect']\"));\n Assert.assertFalse(\"Verify Qty Stepper NOT displayed for Unavailable Product via Mini-Cart\", (childQtyStepper.isDisplayed()));\n }\n }\n System.out.println(\"=== Total Number of Products [\" + itemInMiniCart.size() + \"]\");\n System.out.println(\"=== Number of Unavailable Products In Mini-Cart [\" + count + \"]\");\n Assert.assertEquals(\"Verify there is at least one (1) unavailable product \", 1, count);\n }", "title": "" }, { "docid": "1ee8e3bc60ba5353751d68d3f94e2dbb", "score": "0.55995476", "text": "private void checkProductAvailability()\n\t{\n\n\t\tprodMsg = \"\";\n\t\tcartIsEmpty = false;\n\n\t\tMap <String,Product> products = getProducts();\n\n\t\tint qtyRequested, qtyAvailable;\n\n\t\t// Check for unavailable products\n\t\tfor ( Product p : shoppingCart.getProducts().keySet() )\n\t\t{\n\t\t\tfor ( String s : products.keySet() )\n\t\t\t{\n\t\t\t\tif ( products.get(s).getName().equals(p.getName()) )\n\t\t\t\t{\n\t\t\t\t\t// Modify product to write to file\n\t\t\t\t\tqtyRequested = shoppingCart.getProducts().get(p);\n\t\t\t\t\tqtyAvailable = products.get(s).getQtyAvailable();\n\n\t\t\t\t\tif ( qtyAvailable < qtyRequested )\n\t\t\t\t\t\tunavailableProds.put(p, new ArrayList <>(Arrays.asList(qtyRequested, qtyAvailable)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Show warning\n\t\tif ( !unavailableProds.isEmpty() )\n\t\t{\n\t\t\tprodMsg = \"The cart products were not available anymore in the requested quantity, only the available quantity has been bought:\\n\\n\";\n\n\t\t\tfor ( Product p : unavailableProds.keySet() )\n\t\t\t{\n\t\t\t\tprodMsg += p.getName() + \": requested: \" + unavailableProds.get(p).get(0) + \", available: \"\n\t\t\t\t\t\t+ unavailableProds.get(p).get(1) + \"\\n\";\n\n\t\t\t\tif ( unavailableProds.get(p).get(1) == 0 )\n\t\t\t\t\tshoppingCart.removeProduct(p);\n\t\t\t\telse\n\t\t\t\t\tshoppingCart.getProducts().replace(p, unavailableProds.get(p).get(1));\n\t\t\t}\n\n\t\t\tif ( shoppingCart.getProducts().size() == 0 )\n\t\t\t{\n\t\t\t\tcartIsEmpty = true;\n\t\t\t\tprodMsg = \"All of your products were not available anymore for purchase: payment cancelled.\\nPlease select some new products.\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "30cfce0480984aecf630396fbc7e01ce", "score": "0.55381125", "text": "public List<ProductToBuyViewModel> filterProductsToBuyList(List<ProductToBuyViewModel> productList){\n\n List<ProductToBuyViewModel> filteredList = new ArrayList<>();\n for (int i = 0; i < productList.size(); i++) {\n ProductToBuyViewModel product = productList.get(i);\n\n ProductToBuyViewModel newProduct = new ProductToBuyViewModel();\n newProduct.setProductId(product.getProductId());\n newProduct.setQuantity(product.getQuantity());\n\n filteredList.add(newProduct);\n }\n\n //List with uniques inventoryId\n Set<Integer> productId = new HashSet<>();\n\n for(int i = 0; i < filteredList.size(); i++){\n\n ProductToBuyViewModel product = filteredList.get(i);\n Integer inId = product.getProductId();\n\n if(productId.add(inId) == false){\n\n int quantity = product.getQuantity();\n\n for(int x = 0; x < filteredList.size(); x++){\n\n ProductToBuyViewModel product2 = filteredList.get(x);\n\n if(product2.getProductId() == inId){\n\n product2.setQuantity(product2.getQuantity() + quantity);\n filteredList.remove(i);\n\n //To break the loop\n x = filteredList.size();\n }\n }\n i = -1;\n productId.clear();\n }\n }\n return filteredList;\n }", "title": "" }, { "docid": "b8452d67703132cabd134e1999aec035", "score": "0.5518142", "text": "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "title": "" }, { "docid": "0873e7ee69a213456dcd3a3d699bbb28", "score": "0.5502867", "text": "public ArrayList<ItemModel> getAllUncheckedProduct() {\n ArrayList<ItemModel> uncheckedProducts = new ArrayList<ItemModel>();\n ArrayList<ItemModel> allProducts = getAllProducts();\n Log.d(DatabaseHelper.class.getName(), \"getAllUncheckedProducts:\");\n for (ItemModel item : allProducts) {\n if (!item.isAcquired()) {\n Log.d(DatabaseHelper.class.getName(), \"\\tgetAllUncheckedProducts:\" + item.toString());\n uncheckedProducts.add(item);\n }\n }\n\n return uncheckedProducts;\n }", "title": "" }, { "docid": "01f33bacea68d3037c0128fc369ffb71", "score": "0.5485645", "text": "private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }", "title": "" }, { "docid": "a549a303a9824c61148f80ce8501013e", "score": "0.54659367", "text": "List<ItemPriceDTO> findAllWhereProductIsNull();", "title": "" }, { "docid": "61b9d07e23d997605a9eb35b5100e875", "score": "0.5455411", "text": "public void addItems(Product product, JSpinner spinner, JLayeredPane pane, JTable table) throws IllegalArgumentException {\n int qty = (int) spinner.getValue(); //get the added quantity from table\n\n if (qty > 0) {\n if (qty <= product.getQuantity()) {\n for (int i = 0; i < qty; i++) {\n this.setRequestValue(getRequestValue() + product.getPrice()); //update request value\n requestItems.add(product);\n product.setQuantity(product.getQuantity() - 1); //update product in stock\n }\n } else {\n \tDefaultTableModel model = (DefaultTableModel) table.getModel();\n int rowCount = model.getRowCount();\n for (int i = rowCount - 1; i >= 0; i--) {\n \tmodel.removeRow(i);\n }\n table.setModel(model);\n \tJOptionPane.showMessageDialog(pane, \"There is not enough in stock.\");\n throw new IllegalArgumentException(\"There is not enough in stock\");\n }\n } else {\n throw new IllegalArgumentException(\"The amount has to be positive\");\n }\n }", "title": "" }, { "docid": "da3c23719130d5abe27259c879b448f1", "score": "0.5403281", "text": "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bfcf25e879216eb56c4ba4aa17eb4bf8", "score": "0.54018", "text": "boolean hasQuantity();", "title": "" }, { "docid": "5a3c40738b941132dac114d44b1d7e30", "score": "0.5395594", "text": "public void searchProducts()\n {\n if(!searchBar1.getText().equals(\"\"))\n {\n if(searchBar1.getText().matches(\"[0-9]*\"))\n {\n int number = Integer.parseInt(searchBar1.getText());\n ObservableList<Product> newProductList = FXCollections.observableArrayList();\n Product product = Inventory.lookupProduct(number);\n newProductList.add(product);\n productTableView.setItems(newProductList);\n if(newProductList.contains(null)) {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"No Product with that Name or ID found.\");\n alert.show();\n }\n } else {\n ObservableList<Product> newProductList = FXCollections.observableArrayList();\n newProductList = Inventory.lookupProduct(searchBar1.getText());\n productTableView.setItems(newProductList);\n if(newProductList.isEmpty()) {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"No Product with that Name or ID found.\");\n alert.show();\n }\n }\n } else {\n productTableView.setItems(Inventory.getAllProducts());\n }\n }", "title": "" }, { "docid": "3976095032dcfe4a22e1a1c5fa181c4f", "score": "0.53442615", "text": "public List<AbstractProduct> getItemsOutOfStock() {\n return this.itemsOutOfStock;\n }", "title": "" }, { "docid": "1b7f838b7a91abd1d68e982ac3b339e5", "score": "0.534154", "text": "private void checking() {\n\n System.out.println(cart);\n\n for (Order o : cart) {\n if (o.getOrderedProduct().getPrice()!= productRepository.getOne(o.getOrderedProduct().getId()).getPrice()){\n System.out.println(\"product will be updated\");\n deleteFromCart(o.getOrderedProduct().getId());\n addToCart(o.getOrderedProduct().getId(),o.getCount());\n }\n }\n }", "title": "" }, { "docid": "9b5a54a97be0d788c5501186148c7b9d", "score": "0.5327573", "text": "public Product getProductInventory() {\n return productInventory;\n }", "title": "" }, { "docid": "94df60fc1124ff0e8cdbebf94113445e", "score": "0.53209656", "text": "@Test\n public void setProductCountIs0() throws NegativeValueException {\n cartItem.setProductCount(0);\n int expected = 0;\n int actual = cartItem.getProductCount();\n assertEquals(expected, actual);\n }", "title": "" }, { "docid": "497058d6df56e3e56bd7976fa47f4f10", "score": "0.5310717", "text": "public void updateProducts()\n {\n ObservableList<Product> inventoryProducts = this.inventory.getAllProducts();\n\n // Configure product table and bind with inventory products\n productIDColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"id\"));\n productNameColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"name\"));\n productInventoryColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"stock\"));\n productPriceColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"price\"));\n\n productTable.setItems(inventoryProducts);\n // Unselect parts in table after part is updated\n productTable.getSelectionModel().clearSelection();\n productTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n }", "title": "" }, { "docid": "9cccf7ca805622b8af9e51bfa9e22175", "score": "0.53038204", "text": "public void checkLowStock()\n {\n for(Product product: stock)\n {\n if(product.getQuantity() < 10)\n {\n System.out.println(product.getID() + \": \" +\n product.name + \" is low on stock, only \" + \n product.getQuantity() + \" in stock\");\n }\n }\n }", "title": "" }, { "docid": "93d7bd0d43763c56b08287e8fc7b9e2e", "score": "0.52948153", "text": "public void dailyInventoryCheck(){\n\n\t\tint i;\n\t\tStock tempStock, tempRestockTracker;\n\t\tint listSizeInventory = this.inventory.size();\n\t\tfor(i = 0; i < listSizeInventory; i++){\n\n\t\t\t\tif(this.inventory.get(i).getStock() == 0){\n\t\t\t\t\t//If stock is 0 add 1 to the out of stock counnter then reset it to the inventory level\n\t\t\t\t\tthis.inventory.get(i).setStock(inventoryLevel);\n\t\t\t\t\tthis.inventoryOrdersDone.get(i).addStock(1);\n\t\t\t\t\t//inventoryOrdersDone.set(i,tempRestockTracker);\n\t\t\t\t\t//tempStock.setStock(inventoryLevel);\n\t\t\t\t\t//this.inventory.set(i,tempStock);\n\t\t\t\t}\n\t\t\t}\n\n\t}", "title": "" }, { "docid": "968372d2a9379f12ae556fcb242b099d", "score": "0.5290634", "text": "@Override\r\n public void updatedSaleInventory(ItemAndQuantity lastItem) {\r\n }", "title": "" }, { "docid": "6f2328273fa7d525ae2e80cd3ff44fde", "score": "0.5284732", "text": "public void reportQuantity() {\n\t\tlogger.debug(\"*** Product quantity report ***\");\n\t\tfor(String prodName: entities.keySet()) {\n\t\t\tProduct prod = (Product)entities.get(prodName);\n\t\t\tlogger.debug(String.format(\"Product: %-3s, quantity: %-5d\", prod.getName(), prod.getQuantity()));\t\t\t\n\t\t}\n\t\tlogger.debug(\"*** *** ***\");\n\t}", "title": "" }, { "docid": "2b9f737e9fa5687884479c52b1e95a61", "score": "0.5273511", "text": "public void onInventoryChanged();", "title": "" }, { "docid": "9286768a2232a7aa299f6f3e90f70842", "score": "0.52726305", "text": "@Override\n\tpublic void onInventoryChanged() {\n\t\tsuper.onInventoryChanged();\n\t}", "title": "" }, { "docid": "7e64fd60f526cddc09d4dddc3eae23d0", "score": "0.52649385", "text": "@Override\n public String toString () {\n String stock = \"\";\n\n for (int i = 0; i < inventory.size(); i++) {\n\n Product p = inventory.get(i);\n stock += p.toString() + '\\n';\n }\n return stock;\n }", "title": "" }, { "docid": "8a1c3f004623623b10b1e3eaa166dc3e", "score": "0.5264245", "text": "@Override\n\tpublic boolean updateStock(int quant) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "efe26a08cfb57b38de259a6cda6a1946", "score": "0.5258158", "text": "@Override\n public String toString() {\n return product.toString() + \", Quantity: \" + quantity;\n }", "title": "" }, { "docid": "b1e0a625bb3373233da41225874563c7", "score": "0.5252282", "text": "public ArrayList<Product> getMissingProduct(){\r\n\t\tString sql=\"SELECT Barcode FROM ProductTable WHERE (Quantity_In_Store+Quantity_In_storeroom)<=\"\r\n\t\t\t\t+ \"(Average_Sales_Per_Day*Delivery_Time)\";\r\n\t\tArrayList<Product> products = new ArrayList<>();\r\n\t\t try (Connection conn = this.connect();\r\n\t Statement stmt = conn.createStatement();\r\n\t ResultSet rs = stmt.executeQuery(sql)){\r\n\t\t\t while(rs.next()){\r\n\t\t\t\t products.add(getProductByID(rs.getInt(\"Barcode\")));\r\n\t\t\t }\r\n\t\t }\r\n\t\t catch (SQLException e) {\r\n\t\t\t System.out.println(\"getMissingProduct: \"+e.getMessage());\r\n\t\t\t return null;\r\n\t\t }\r\n\t\treturn products;\r\n\t}", "title": "" }, { "docid": "16b8561bba638b282569c83621865375", "score": "0.5251641", "text": "public Inventory(String kodeWh,String kodeProd,double hargaProd,int jumlahProd){\n this.kodeWh=kodeWh;\n this.kodeProd=kodeProd;\n this.hargaProd=hargaProd;\n this.jumlahProd=jumlahProd;\n }", "title": "" }, { "docid": "6830008391ea2fa52a12b53e0a2c56bf", "score": "0.5251089", "text": "public static boolean inventoryIsEmpty() {\n\t\treturn Inventory.getCount() == 0;\n\t}", "title": "" }, { "docid": "c0cd3dc72895412d8a8d1587e022b716", "score": "0.52393043", "text": "public boolean checkInventory(int serialNum, int qty){\n \n //create a boolean var and set to false- change to true only if there is enough of requested inventory\n boolean enoughInventory = false;\n \n //loop through all Inventory\n for(int i=0; i<this.items.size(); i++){\n //check if inventoryItem has matching serialNumber with specified serialNum\n if(this.items.get(i).getSerialNum()==serialNum){\n //if serial numbers match, check if inventoryItem has enough in stock for requested order\n if(this.items.get(i).getQty() >= qty){\n enoughInventory = true; //if quantity in inventory is greater than or equal to requested quantity there is enough\n }\n }\n }\n \n //return enoughInventory- will be false if no serial number matched or if there was not enough for requested qty\n return enoughInventory;\n \n }", "title": "" }, { "docid": "11041bae8ff0a51b5d5dd6bfdfc7561c", "score": "0.52278763", "text": "@Test\n public void setTotalIs0() throws NegativeValueException {\n cartItem.setTotal(0);\n double expected = 0;\n double actual = cartItem.getTotal();\n assertEquals(expected, actual, 0.0);\n }", "title": "" }, { "docid": "1bfdd3c13d9a7450ac6d7a433cd4f29e", "score": "0.52243876", "text": "@Override\n public boolean active() {\n return !Inventory.isFull();\n }", "title": "" }, { "docid": "bc6d490badcacc6a9ac1d2f953a1c5ea", "score": "0.52234423", "text": "private void checkProducts() {\n for (JButton prodButton : productButtons) {\n if (inventoryManager.checkProductAvailability(prodButton.getText())) {\n prodButton.setEnabled(true);\n } else {\n prodButton.setEnabled(false);\n }\n }\n }", "title": "" }, { "docid": "85b3c09b8d0c8356636d877e4b758a5c", "score": "0.5222218", "text": "private static boolean isAllItemsAreNotSoldOut(List<Chef> foodItemList) {\n boolean result = false;\n for (int i = 0; i < foodItemList.size(); i++) {\n for (int j = 0; j < foodItemList.get(i).getFoodItemList().size(); j++) {\n if (foodItemList.get(i).getFoodItemList().get(j).getAvailQty() == 0 || !foodItemList.get(i).getFoodItemList().get(j).getAvailable()) {\n result = true;\n }\n }\n }\n return result;\n }", "title": "" }, { "docid": "064d5ccfa9d0ef3479ff2725f727e063", "score": "0.5199461", "text": "public ShowProductListLimited() {\n initComponents();\n List<Product> products = WinkelApplication.getQueryManager().getProductList();\n DefaultTableModel model = (DefaultTableModel) this.jTable1.getModel();\n for (Product product : products) {\n model.addRow(new Object[]{new Integer(product.getProductId()),\n product.getCategorieId(),\n product.getName(),\n product.getPrice(),\n product.getDescription()});\n }\n }", "title": "" }, { "docid": "b6f25930afc3e888094bb12c88e4ceea", "score": "0.5198305", "text": "@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 }", "title": "" }, { "docid": "c4b083f0e9a6698a556bcea8438426fb", "score": "0.519266", "text": "@Override\n public void onInventoryClick(InventoryClickEvent event) {\n // Do nothing here\n }", "title": "" }, { "docid": "14662a9ce8a6a33e80f0a078bb433948", "score": "0.5190659", "text": "public void inventory() {\n\t\tList<Item> items = super.getItems();\n\n\t\tString retStr = \"Items: \";\n\t\tItem item;\n\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\titem = items.get(i);\n\t\t\tretStr += item.toString();\n\t\t\tif (i != items.size()-1)\n \t{\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nCapacity: \" + this.currentCapacity() + \"/\" + this.maxCapacity;\n\t\tSystem.out.println(retStr);\n\t}", "title": "" }, { "docid": "94262a5c9dac2774245037c34d9daa5c", "score": "0.51867014", "text": "public void removeItem(String itemName, int Qty) {\n if (checkExist(itemName, Qty) == true) {\n int i;\n //System.out.println(checkExist(itemName));\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n int a = Integer.parseInt((String) removedItem.get(\"Amount\"));\n removedItem.put(\"Amount\", a - Qty);\n\n if (a - Qty < 1) {\n removedItem.put(\"Existence\", \"N\");\n }\n }\n }\n } else {\n System.out.println(\"Item \" + itemName + \" is not available.\");\n for (int i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n System.out.println(\"Since item \" + itemName + \"'s amout is not enough, try less amount.\");\n }\n }\n }\n outPutFile();\n }", "title": "" }, { "docid": "8dec9d85268a0bdb1ff7076eafcdbd7e", "score": "0.5184467", "text": "public boolean isFull(){\n\t\tfor(int i = 0; i < INVENTORY_SLOTS; i++){\n\t\t\tif(inventoryItems[i] == null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "04a7b55c51f4f5f4380052e2d78346ac", "score": "0.5182907", "text": "public void stateForUnavailableItems_InShoppingCart() {\n List<WebElement> productList = getDriver().findElements(By.xpath(\"//*[@id='itemList']//li\"));\n for (int i = 1; i <= productList.size(); i++) {\n WebElement itemList = getDriver().findElement(By.xpath(\"//*[@id='itemList']//li[\" + i + \"]\"));\n String status = itemList.getAttribute(\"class\");\n if (!status.contains(\"outofstock\")) {\n continue;\n }\n String productName = getDriver().findElement(By.xpath(\"//*[@id='itemList']//li[\" + i + \"]//*[@class='mjr-product-name']\")).getText();\n System.out.println(\"=== Product Index [\" + i + \"], Name [\" + productName + \"] is Unavailable\");\n WebElement qtyStepper = getDriver().findElement(By.xpath(\"//*[@id='itemList']//li[\" + i + \"]//div[@class='mjr-qty-stepper']\"));\n Assert.assertFalse(\"=== Verify Qty-Steppers Are Removed for Unavailable Item \", qtyStepper.isDisplayed());\n String notAvailMsg = getDriver().findElement(By.xpath(\"//*[@id='itemList']//li[\" + i + \"]//*[contains(@class,'msgNotAvail')]\")).getText();\n Assert.assertEquals(\"=== Verify Product Not Available Message - Shopping Cart Page \", Constants.notAvailProd_shoppingCart, notAvailMsg);\n WebElement checkoutButtons = getDriver().findElement(By.xpath(\"//*[@class='rightSidebar-footer-inner']//*[@type='submit']\"));\n Assert.assertFalse(\"=== Verify Checkout Buttons are Disabled for Guest OR Signed-In User \", checkoutButtons.isEnabled());\n }\n }", "title": "" }, { "docid": "22c573255438e4f987e5b6433aef794d", "score": "0.5180967", "text": "@Test\n public void testEmpty() {\n \n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n Product p2 = new Product(\"Raton\", 85.6);\n Product p3 = new Product(\"Teclado\", 5.5);\n Product p4 = new Product(\"Monitor 4K\", 550.6);\n \n instance.addItem(p1);\n instance.addItem(p2);\n instance.addItem(p3);\n instance.addItem(p4);\n \n try{\n \n instance.empty();\n \n } catch(Exception e){\n \n }\n \n assertEquals(instance.getItemCount(), 0, 0.0);\n \n }", "title": "" }, { "docid": "ca0af000694fc95c1ce69bad9b877fe8", "score": "0.51737815", "text": "public String listLowStock() {\r\n\t\tString toReturn = \"\";\r\n\t\ttoReturn = String.format(\"Warehouse Name: %s%nPhone Number: %s%nAddress: %s\", this.name, this.phone, this.address);\r\n\t\ttoReturn += String.format(\"%nInventory Stock:%n%-30s|%-15s|%-15s|%-20s|%-15s|%-10s\", \"Product Name\", \"Wholesale Cost\", \"Retail Price\", \"Product Category\", \"Quantity Sold\", \"In Stock\");\r\n\t\tLinkedList<HashMap.Entry<Integer, Integer>> entries = new LinkedList<HashMap.Entry<Integer, Integer>>(inventory.entrySet());\r\n\t\tCollections.sort(entries, HashMap.Entry.comparingByValue());\r\n\t\tIterator<HashMap.Entry<Integer, Integer>> iter = entries.iterator();\r\n\t\twhile(iter.hasNext()) {\r\n\t\t\tHashMap.Entry<Integer, Integer> entry = iter.next();\r\n\t\t\tif(entry.getValue() >= 0 && entry.getValue() <= 5) {\r\n\t\t\t\tfor(Product p : Data.productArr) {\r\n\t\t\t\t\tif(p.getID() == entry.getKey()) {\r\n\t\t\t\t\t\ttoReturn += \"\\n\" + p.toString() + \"|\" + entry.getValue();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}", "title": "" }, { "docid": "3ba761603639f993952215dbf6b4dea4", "score": "0.51731646", "text": "@Override\r\n public boolean removeProductQuantity(Product product, int quantity) {\r\n int stock;\r\n int i = 0;\r\n for (Product p : this.productList) {\r\n if (p.getId() == product.getId()) {\r\n stock = this.productQuantity.get(i);\r\n\r\n //checks if quantity value is invalid or if not enough stocks\r\n if (quantity <= 0 || stock < quantity) {\r\n this.productQuantity.set(i, 0);\r\n return true;\r\n }\r\n this.productQuantity.set(i, stock - quantity);\r\n return true;\r\n }\r\n i++;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "693042cbefcccffb52bb539284fd86f5", "score": "0.51726085", "text": "@Test\n public void execute_showEmptyItemList() {\n ModelStubWithRecipeList modelStub = new ModelStubWithRecipeList(new RecipeList());\n CommandResult expectedCommandResult = new CommandResult(ListRecipeCommand.MESSAGE_NO_RECIPES,\n false, false, DisplayedInventoryType.RECIPES);\n assertCommandSuccess(listRecipeCommand, modelStub, expectedCommandResult, modelStub);\n }", "title": "" }, { "docid": "1018faa24e5242b67ff5377bfa2b4416", "score": "0.5171585", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\t\tString productNameInput = textField_search_input.getText();\r\n\t\t\t\t\t\t\t\tproductNameInput.trim();\r\n\t\t\t\t\t\t\t\tif(validateEmpty(productNameInput) == false){\r\n\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Search cannot be empty. Please enter a product name, description or notes.\");\t\t\r\n\t\t\t\t\t\t\t\t\tfillTableFindByName(model_search);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if(productNameInput.trim().matches(\"^[-0-9A-Za-z.,'() ]*$\")){\r\n\t\t\t\t\t\t\t\t\tCashier cashierProductByName = new Cashier();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tfor (int i = model_search.getRowCount()-1; i >= 0; --i) {\r\n\t\t\t\t\t\t\t\t\t\tmodel_search.removeRow(i);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tproductByLike = new Vector<Product>();\r\n\t\t\t\t\t\t\t\t\tcashierProductByName.findProductUsingLike(productNameInput.trim(),productByLike);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"\");\r\n\t\t\t\t\t\t\t\t\t\tfor(int i = 0; i < productByLike.size(); i++){\r\n\t\t\t\t\t\t\t\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\t\t\tfor(int j = 0; j < productBySearch.size(); j++){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(productByLike.get(i).getID() == productBySearch.get(j).getID()){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tproductByLike.get(i).setQuantity(productBySearch.get(j).getQuantity());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//No match\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\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\telse{\r\n\t\t\t\t\t\t\t\t\t\t\t\t//Printing it in the outside loop, the value doesn't alter here, values that alter will and will print them outside\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}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t\t\t\ttxtpnsearch_2.setText(\"No product was found in inventory.\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(productByLike.size() > 0){\r\n\t\t\t\t\t\t\t\t\t\tfor(int k = 0; k < productByLike.size(); k++){\r\n\t\t\t\t\t\t\t\t\t\t\tmodel_search.addRow(new Object[]{k+1,productByLike.get(k).getName(),productByLike.get(k).getDescription(),productByLike.get(k).getQuantity(),productByLike.get(k).getSalePrice(),productByLike.get(k).getNotes()});\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "3cfa3dd46bffecf87546b7ece80a8c34", "score": "0.5165507", "text": "public void printInventory()\n { \n System.out.println();\n\n // Checks if the player has items.\n if(!(getPerson(PLAYER).getInventory().getItems().isEmpty())){\n System.out.println(\"In your backpack, you have:\");\n\n // Gets each item in the player's inventory.\n for(Item item: getPerson(PLAYER).getInventory().getItems()){\n System.out.print(item.getName() + \",\");\n }\n System.out.println();\n System.out.println(\"You are carrying \"+ getPerson(PLAYER).getWeight() + \"kg.\");\n }\n else{\n System.out.println(\"There are currently no items in your backpack.\");\n }\n System.out.println();\n }", "title": "" }, { "docid": "2c79452a928fd072921368fd188bbca6", "score": "0.51626205", "text": "private void getAllItems() {\n\n try {\n double sellingPrice = 0;\n ArrayList<Item> allItems = ItemController.getAllItems();\n for (Item item : allItems) {\n double selling_margin = item.getSelling_margin();\n if (selling_margin > 0) {\n sellingPrice = item.getSellingPrice() - (item.getSellingPrice() * selling_margin / 100);\n } else {\n sellingPrice = item.getSellingPrice();\n }\n Object row[] = {item.getItemCode(), item.getDescription(), Validator.BuildTwoDecimals(item.getQuantity()), Validator.BuildTwoDecimals(sellingPrice)};\n tableModel.addRow(row);\n }\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(FormItemSearch.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(FormItemSearch.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "1dde891b1714c587022536a7e16da841", "score": "0.51620936", "text": "@Override\n\tpublic void onInventoryChanged() {\n\t}", "title": "" }, { "docid": "3ccb835505d92cc223e9ff67e7c8bc47", "score": "0.5159497", "text": "@Override\n void updateStockLevels(){\n for(OrderLine orderLine : products){\n Product p = orderLine.getProduct();\n //remove quantity ordered from stock levels\n p.updateNumInStock(-orderLine.getQuantity());\n }\n }", "title": "" }, { "docid": "d4e0e382f615b1e3b34d18e6093de87f", "score": "0.5157837", "text": "private void printCheckItemQuantityMenu(Shop shop) {\n System.out.println(\"What is the ID of the tool you would like to look up?\");\n int itemId = receiveNumberInput();\n if (shop.searchInventory(itemId)) {\n System.out.println(\"Quantity: \" + shop.checkToolStock(itemId));\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }", "title": "" }, { "docid": "4351aec6017ae26699caf9ae2c795e11", "score": "0.51537764", "text": "@Test\n public void verifyNoOfferApplied() {\n \tProduct product = new Product(\"Watermelon\", 0.8);\n \tProduct product2 = new Product(\"Apple\", 0.2);\n \tProduct product3 = new Product(\"Orange\", 0.5);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 2);\n \tbasket.getProducts().put(product2, 1);\n \tbasket.getProducts().put(product3, 5);\n \tassertTrue(\"Have to get the price of 8 items = 4.3 ==> \", (calculator.calculatePrice(basket) - 4.3) < 0.0001);\n }", "title": "" }, { "docid": "8eb644b3a7d752996a2ae6b6b082da5b", "score": "0.51407576", "text": "private void checkoutNotEmptyBag() {\n\t\tSystem.out.println(\"Checking out \" + bag.getSize() + \" items.\");\n\t\tbag.print();\n\t\tDecimalFormat df = new DecimalFormat(\"0.00\");\n\t\tdouble salesPrice = bag.salesPrice();\n\t\tSystem.out.println(\"*Sales total: $\" + df.format(salesPrice));\n\t\tdouble salesTax = bag.salesTax();\n\t\tSystem.out.println(\"*Sales tax: $\" + df.format(salesTax));\n\t\tdouble totalPrice = salesPrice + salesTax;\n\t\tSystem.out.println(\"*Total amount paid: $\" + df.format(totalPrice));\n\t\tbag = new ShoppingBag(); // Empty bag after checking out.\n\t}", "title": "" }, { "docid": "143a62c249b02ebae0ec2b0d29c91030", "score": "0.5140756", "text": "@Test\n public void setProductPriceIs0() throws NegativeValueException {\n cartItem.setProductPrice(0);\n double expected = 0;\n double actual = cartItem.getProductPrice();\n assertEquals(expected, actual, 0.0);\n }", "title": "" }, { "docid": "d40e9837742b4c2f7300eaf4fc6beaf6", "score": "0.51382977", "text": "private JPanel updateInventoryPanel() {\n for (int i = 0; i < productValues.length; i++) {\n productValues[i] = i;\n }\n populateHashMap(productValues);\n JPanel update = new JPanel();\n update.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n update.setLayout(new BoxLayout(update,BoxLayout.Y_AXIS));\n for (String prod : updateInv.keySet()) {\n JPanel row = new JPanel();\n row.add(new JLabel(prod + \":\"));\n row.add(Box.createHorizontalStrut(15));\n row.add(updateInv.get(prod));\n update.add(row);\n }\n JPanel buttonPanel = new JPanel();\n buttonPanel.setLayout(new BorderLayout());\n JButton updateInv = new JButton(\"Update Inventory\");\n updateInv.addActionListener(new updateInventoryListener());\n buttonPanel.add(updateInv, BorderLayout.EAST);\n update.add(buttonPanel);\n return update;\n }", "title": "" }, { "docid": "ac54e2c431551055ca35ecb6351cd518", "score": "0.5134484", "text": "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.out.println();\r\n\t\tint productNo = getValidUserInput(scanner, shops[shopNo].getAllSales().length + 1);\r\n\t\tif (productNo > 0) {\r\n\t\t\tProduct productToBeAdd = shops[shopNo].getAllSales()[productNo - 1];\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\" Please enter the number of the item you would like to buy: \");\r\n\t\t\tint numberOfTheItems = getUserIntInput();\r\n\t\t\tcart.addProduct(productToBeAdd, numberOfTheItems);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Purchase done, going back to the menu.\");\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "455b7a8ec20f170168c90a30572729a2", "score": "0.51237136", "text": "private void displayAll() {\n\t\tif(inventoryObject.totalNumCards() == 0) { // checks to see if there are 0 StockIndexCards\n\t\t\tSystem.out.println(\"The Inventory is empty\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\tSystem.out.println(inventoryObject.displayAll());\n\t\tgetUserInfo();\n\t\t}\n\t}", "title": "" }, { "docid": "51f6b4bba1887a58149e73672363f500", "score": "0.5108375", "text": "final boolean isValidCartQty() {\n Map<Integer, ReturnedItemDTO> cartMap = returnTable.getIdAndQuantityMap();\n for (Entry<Integer, ReturnedItemDTO> entry : cartMap.entrySet()) {\n ReturnedItemDTO ret = entry.getValue();\n int qty = ret.qty;\n int damageStatus = ret.damageStatus;\n if (qty > 0 && damageStatus > 0) {\n return true;\n }\n }\n return false;\n\n }", "title": "" }, { "docid": "5cca43984d6b25f972fe7c6c17b812b7", "score": "0.51035637", "text": "public ArrayList<T> getNonZero() {\n\t\tArrayList<T> nonZeroes = new ArrayList<T>();\n\t\tfor (T element : itemProbs_.keySet()) {\n\t\t\tif (itemProbs_.get(element) > 0) {\n\t\t\t\tnonZeroes.add(element);\n\t\t\t}\n\t\t}\n\t\treturn nonZeroes;\n\t}", "title": "" }, { "docid": "09e41c4da3bb4198260037d80ceb2054", "score": "0.5101759", "text": "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "title": "" }, { "docid": "53c8d82f4ccfe940e2e228577b9017ef", "score": "0.5089254", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n if (String.valueOf(txtScannedItem.getText()).equals(\"\")) {\n\n JOptionPane.showMessageDialog(JOptionPane.getRootFrame(),\n \"You did not enter a product.\",\n \"No Item Found\",\n JOptionPane.WARNING_MESSAGE);\n }\n\n Stock addedStock = new Stock();\n addedStock.setItemID(txtScannedItem.getText());\n\n try{\n for (int a = 0; a < subStock.size(); a ++) {\n if (addedStock.getItemID().equals(subStock.get(a).getItemID())) {\n\n txtBasket.setText(\"\");\n //Gets the value of the stock levels\n int CustStock = subStock.get(a).getQuantity();\n\n //Gets the value of the active stock levels\n int activeShop = subStock.get(a).getActiveStock();\n\n //A variable for the total of Stock - Active stock\n int newStockNum = 0;\n\n\n //Checks to see if stock is at 0, if not for the stock calculation\n if(subStock.get(a).getQuantity() == 0){\n\n txtScannedItem.setText(\"\");\n\n //Shoots a message to notify the customer that their scanned item has now more stock\n JOptionPane.showMessageDialog(JOptionPane.getRootFrame(),\n \"No more stock of: \" + subStock.get(a).getItemName(),\n \"No more Stock\",\n JOptionPane.WARNING_MESSAGE);\n\n }else{\n activeShop += 1;\n\n newStockNum = CustStock - activeShop;\n }\n\n subStock.get(a).setActiveStock(activeShop);\n subStock.get(a).setQuantity(newStockNum);\n\n display.saveStock();\n\n //for each object inside this object do this\n for(Stock stock : subStock){\n //Ensures items that have not been scanned are left out the basket\n if(stock.getActiveStock() > 0){\n txtBasket.append(stock.getActiveStock() + \" x \" + \"\"\n + stock.getItemName() + \".....£\"\n + String.format(\"%.02f\", stock.getItemPrice())\n + \" each\" + \"\\n\");\n }\n }\n float basketTotal = subStock.get(a).getItemPrice();\n //Provides a middle ground so that the accumulated total is displayed\n float runningTotal = Float.sum(basketTotal, finalTotal);\n finalTotal = runningTotal;\n\n //Shows the final total of the compiled basket\n String priceToString = String.format(\"%.02f\", finalTotal);\n lblTotal.setText(\"Total: \" + \" £ \" + priceToString);\n break;\n }\n }\n\n //Places the items in the txt in an Object (For threading)\n currentReceipt = txtBasket.getText();\n\n }catch (Exception i){\n i.printStackTrace();\n }\n\n //Clears the scanned item txt field\n txtScannedItem.setText(\"\");\n }", "title": "" }, { "docid": "dd9ca6cd624e4452b28015ea7e0a595c", "score": "0.50805354", "text": "@ModelAttribute(\"misproductos\")\n\tpublic List<Producto> misProductos() {\n\t\tString email = SecurityContextHolder.getContext().getAuthentication().getName();\n\t\tusuario = usuarioServicio.buscarPorEmail(email);\n\t\treturn productoServicio.productosDeUnPropietario(usuario);\n\t}", "title": "" }, { "docid": "724c5285002b0821d267d2d8a7395d7c", "score": "0.50710946", "text": "@Modifying(clearAutomatically = true)\n @Query(\"UPDATE Item i SET i.quantity = i.quantity - ?1 WHERE i =?2\")\n int deductFromStock(double qty, Item item);", "title": "" }, { "docid": "66d7a0e46630cc4c09cf4a5d9b58b6b9", "score": "0.505103", "text": "public synchronized void checkAndUpdateInventory(Drink drink) {\n Map<String, Integer> quantityMap = drink.getIngredientQuantityMap();\n boolean canBeMade = true;\n for (Map.Entry<String, Integer> entry : quantityMap.entrySet()) {\n if (inventoryMap.containsKey(entry.getKey())) {\n int currentValue = inventoryMap.get(entry.getKey());\n if (currentValue == 0) {\n System.out.println(drink.getName() + \" cannot be prepared because \" + entry.getKey() + \" is not available\");\n canBeMade = false;\n break;\n } else if (quantityMap.get(entry.getKey()) > inventoryMap.get(entry.getKey())) {\n System.out.println(drink.getName() + \" cannot be prepared because \" + entry.getKey() + \" is not sufficient\");\n canBeMade = false;\n break;\n }\n }\n }\n if (canBeMade) {\n updateInventory(quantityMap);\n System.out.println(drink.getName() + \" is prepared\");\n }\n }", "title": "" }, { "docid": "1f5bb10375a3f2665fb16a991ae52e62", "score": "0.50498784", "text": "public static boolean updateInventoryStock(ObservableList<Product> products, TransactionType transactionType) {\r\n\t\tdbConnect();\r\n\t\tPreparedStatement stmt = null;\r\n\t\tboolean saveStatus = true;\r\n\t\tfor (Product product : products) {\r\n\t\t\tString operation = (transactionType == TransactionType.PURCHASE ? \"+ \" : \"- \");\r\n\t\t\tfinal String UPDATE_STOCK = \"UPDATE product SET product_quantity = product_quantity \" + operation\r\n\t\t\t\t\t+ product.getSubQuantity() + \" WHERE product_code = \" + product.getProductCode();\r\n\t\t\ttry {\r\n\t\t\t\tstmt = conn.prepareStatement(UPDATE_STOCK);\r\n\t\t\t\tstmt.executeUpdate();\r\n\t\t\t\tstmt.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tsaveStatus = false;\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn saveStatus;\r\n\t}", "title": "" }, { "docid": "690f00897c0cde664e16ab88402a882a", "score": "0.5049791", "text": "public void inventoryPanel() {\n int invSize = inventory.getSize();\n System.out.println(\"Number of product in the inventory: \" + invSize);\n setLastProductDisplayed(getFirstProductDisplayed());\n System.out.println(\"I am starting with: \" + getFirstProductDisplayed());\n\n //Dsiplay 10 products per window\n for (int i = 0; i < MAX_NUMB_PRODUCTS; i++) {\n //Creating a JPanel for a product\n setProductPanel(i, new JPanel(new BorderLayout(5, 5)));\n //Creating a JPanel for buttons\n setProdPanelBottom(i, new JPanel(new FlowLayout()));\n //Add to cart button\n addToCartBtn[i] = new JButton(\"Add to Cart\");\n addToCartBtn[i].addActionListener(this);\n //Details button\n setProdBTN1(i, new JButton(\"Details\"));\n getProdBTN1(i).addActionListener(this);\n //Adding button to panel\n getProdPanelBottom(i).add(addToCartBtn[i]);\n getProdPanelBottom(i).add(getProdBTN1(i));\n //Checking product quantity\n Product p = inventory.getProductAt(getLastProductDisplayed());\n if (p.getQuantity() == 0) {\n addToCartBtn[i].setEnabled(false);\n }\n //Creating textArea with product information\n setProdInfoPanel(i, new JTextArea(p.toString()));\n //Adding Components to the Product JPanel\n getProductPanel(i).add(getProdInfoPanel(i), BorderLayout.NORTH);\n getProductPanel(i).setBorder(new LineBorder(Color.GRAY));\n getProductPanel(i).add(getProdPanelBottom(i), BorderLayout.SOUTH);\n //Adding Components to the mainPanel\n getMainPanel().add(getProductPanel(i));\n setLastProductDisplayed(getLastProductDisplayed() + 1);\n //Break if i is equal to inventory's size\n if (i + getFirstProductDisplayed() == invSize - 1) {\n break;\n }\n }\n }", "title": "" }, { "docid": "c63be8fe33b37d8915bc980c6b026d0f", "score": "0.50492173", "text": "@Override\n public void changeQuantity(Product product, int position) {\n changeProductQuantity(product, -1);\n }", "title": "" }, { "docid": "1e2282ee704f3552346345eb10e8a796", "score": "0.504532", "text": "public void addProduct(CartProduct p) throws InsufficientQuantityException {\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\tif (product.getDescription().equals(p.getDescription()) && (product.getQuantity() >= 1)) {\n\t\t\t\tcart.addToCart(p);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tthrow new InsufficientQuantityException(\"Out of Stock\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "37e2bf108951c926eb11359438cca2c2", "score": "0.50434023", "text": "@java.lang.Override\n public boolean hasInventoryItemData() {\n return inventoryItemCase_ == 3;\n }", "title": "" }, { "docid": "1a79f0ea4da5eb5c460be97ab00307f1", "score": "0.50388527", "text": "public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }", "title": "" }, { "docid": "6dfecff9bf18e6e1940210a4f50b36e9", "score": "0.5034678", "text": "public List<AbstractProduct> getoutOfStock() {\n return outOfStock;\n }", "title": "" }, { "docid": "e6fe41a91d30cfc647ab17ff85b26920", "score": "0.50327814", "text": "@Override\r\n public double searchProduct(ProductInput productInput) {\r\n\r\n LocalDate Date1= productInput.getAvailDate();\r\n LocalDate Date2= Date1.plusDays(10);\r\n\r\n double quantity= 0;\r\n if(Date1.isAfter(LocalDate.of(2021,03,18)) && Date1.isBefore(LocalDate.of(2021,03,31)))\r\n {\r\n for(Product i:InventoryList)\r\n {\r\n LocalDate Date3= i.getAvailDate();\r\n if(Date3.isAfter(Date1.minusDays(1)) && Date3.isBefore(Date2.plusDays(1)))\r\n {\r\n quantity= quantity + i.getAvailQty();\r\n }\r\n }\r\n return quantity;\r\n }\r\n else\r\n return quantity;\r\n }", "title": "" }, { "docid": "d586eb5db5b007a14fece68f7f1adb71", "score": "0.50303364", "text": "@Test\r\n public void testResetInventory2()\r\n {\r\n testLongTermStorage.addItem(item2, testLongTermStorage.getCapacity() / item2.getVolume());\r\n testLongTermStorage.resetInventory();\r\n assertEquals(\"Storage should be empty\", new HashMap<>(), testLongTermStorage.getInventory());\r\n }", "title": "" }, { "docid": "910e0d3e6b1b5156190234190ec7f98f", "score": "0.50248986", "text": "public boolean reset() {\n pouchesUsed.clear();\n int id;\n RSItem[] items = inventory.getItems();\n for (RSItem item : items) {\n id = item.getID();\n if (id > 5508 && id < 5516) {\n pouchesUsed.add(new Pouch(id));\n }\n }\n return true;\n }", "title": "" }, { "docid": "515512782f056ac433a486566096c19a", "score": "0.5020862", "text": "@Test\r\n\tpublic void testEmptyContents() throws Exception {\n\t\tassertThat(this.basket.getContents().count(), is(0L));\r\n\t}", "title": "" }, { "docid": "274773fddb4c861f07c6caf55604973e", "score": "0.5018584", "text": "void unsetValueQuantity();", "title": "" }, { "docid": "af89e3befe3840b12c32be55c4e5bc63", "score": "0.5018505", "text": "@Override\r\n\tpublic int updateProduct(Product product) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "0006f4e6ed5dc4f8f56dd96f9586a139", "score": "0.5018343", "text": "@Override\r\n\tpublic String toString() {\r\n\t\tString toReturn = \"\";\r\n\t\ttoReturn = String.format(\"Warehouse Name: %s%nPhone Number: %s%nAddress: %s\", this.name, this.phone, this.address);\r\n\t\ttoReturn += String.format(\"%nInventory Stock:%n%-30s|%-15s|%-15s|%-20s|%-15s|%-10s\", \"Product Name\", \"Wholesale Cost\", \"Retail Price\", \"Product Category\", \"Quantity Sold\", \"In Stock\");\r\n\t\tIterator<Integer> productCodes = inventory.keySet().iterator();\r\n\t\twhile(productCodes.hasNext()) {\r\n\t\t\tint code = productCodes.next();\r\n\t\t\tint inStock = inventory.get(code);\r\n\t\t\tif(inStock >= 0) {\r\n\t\t\t\tfor(Product p : Data.productArr) {\r\n\t\t\t\t\tif(p.getID() == code) {\r\n\t\t\t\t\t\ttoReturn += \"\\n\" + p.toString() + \"|\" + inStock;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}", "title": "" }, { "docid": "eaa499f1f3278ed39e7bae625c9bfd7e", "score": "0.5015349", "text": "@Test\n public void testIsEmpty() {\n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n Product p2 = new Product(\"Raton\", 85.6);\n \n instance.addItem(p1);\n instance.addItem(p2);\n \n instance.empty();\n \n assertTrue(instance.isEmpty());\n \n instance.addItem(p1);\n instance.addItem(p2);\n \n try {\n instance.removeItem(p1);\n instance.removeItem(p2);\n } catch (ProductNotFoundException ex) {\n Logger.getLogger(ShoppingCartTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n assertTrue(instance.isEmpty());\n \n \n }", "title": "" }, { "docid": "b102718d9943d6218ca6a05701ddae71", "score": "0.50142306", "text": "public float getQuantityAvailableForSale () {\n return (float) 0.0;\n }", "title": "" }, { "docid": "08ef4b3e3c9234d8b9923236d255f82a", "score": "0.501344", "text": "void checkInventoryExists() {\n\n MrnInventory[] checkInventory =\n new MrnInventory(survey.getSurveyId()).get();\n inventoryExists = false;\n if (checkInventory.length > 0) {\n inventoryExists = true;\n } // if (checkInventory.length > 0)\n\n\n }", "title": "" }, { "docid": "4f23838712c46137506165a878cc7d5a", "score": "0.5005723", "text": "@java.lang.Override\n public boolean hasInventoryItemData() {\n return inventoryItemCase_ == 3;\n }", "title": "" }, { "docid": "c25373036c99dcd0eaeb2a233661debc", "score": "0.5004818", "text": "public void removeAllVariantBasedProduct(Product product){\n /*\n Using for loop because we want to delete all the variants of that particular product\n */\n for(Variant variant : product.variants){\n String key = product.name + \" \" + variant.name;\n if(cartItems.containsKey(key)){\n total-= cartItems.get(key).cost();\n noOfItems--;\n cartItems.remove(key);\n }\n }\n }", "title": "" }, { "docid": "ceded7694dd6194bb5c3435da3a1d777", "score": "0.49930608", "text": "private Collection<ProductAmountTO> removeUnavailableProducts(\n\t\t\tCollection<ProductAmountTO> requiredProductAmounts,\n\t\t\tHashtable<Store, Collection<StockItem>> storeStockItems) {\n\t\t\n\t\tCollection<ProductAmountTO> foundProductAmounts = new ArrayList<ProductAmountTO>();\n\t\t\n\t\tIterator<ProductAmountTO> requiredProductAmountsIterator = requiredProductAmounts.iterator();\n\t\twhile(requiredProductAmountsIterator.hasNext()) {\n\t\t\tProductAmountTO currentProductAmountTO = requiredProductAmountsIterator.next();\n\t\t\t\n\t\t\tIterator<Collection<StockItem>> storeStockItemCollectionsIterator = storeStockItems.values().iterator();\n\t\t\twhile(storeStockItemCollectionsIterator.hasNext()) { //iterate over stock of stores\n\t\t\t\tCollection<StockItem> currentStockItemCollection = storeStockItemCollectionsIterator.next();\n\t\t\t\t\n\t\t\t\tStockItem stockItem =\n\t\t\t\t\tsearchForProductOffered(currentStockItemCollection, currentProductAmountTO);\n\t\t\t\tif (stockItem != null && currentStockItemCollection.contains(stockItem)) {\n\t\t\t\t\tfoundProductAmounts.add(currentProductAmountTO);\n\t\t\t\t} else {\n\t\t\t\t\t//TODO: remove debug:\n//\t\t\t\t\tSystem.out.println(\"KK: NOT found\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//no need to search for the same product at other stores: found --> available\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn foundProductAmounts;\n\t}", "title": "" }, { "docid": "b28c9b03ad17092762885160505f638e", "score": "0.49858135", "text": "@Test\n void totalPercentageNoOrderLineForThisProduct() {\n allProducts.add(new Product(null, 1, \"productTest\", 10.0, null, null, null,null));\n allOrderLines.add(new OrderLine(new Product(2), null, 2, 10.0));\n\n ArrayList<ProductIncome> productIncomes = productBusiness.computeProductsIncome(allProducts, allOrderLines);\n productIncomes.get(0).calculPercentage();\n assertEquals(0.0, productIncomes.get(0).getPercentage(), 0 );\n }", "title": "" }, { "docid": "fb2acfd1d0e9621e0f4673e6757e17dc", "score": "0.49842256", "text": "private void minusQuantity(TextField source, Clothing clothing) {\n clothing.setCount(-1);\n int quantity = clothing.getCount();\n double totalPriceOfClothing = 0;\n\n for (int i = 0; i < clothingArrayList.size(); i++) {\n double countOfItems = clothingArrayList.get(i).getCount();\n double clothingPricePerUnit = Double.valueOf(clothingArrayList.get(i).getPrice());\n totalPriceOfClothing += clothingPricePerUnit * countOfItems;\n\n }\n source.setText(\"\" + (quantity));\n totalPrices.setText(\"\" + totalPriceOfClothing );\n\n }", "title": "" }, { "docid": "7dbf315e17ca1de575017406c61730bd", "score": "0.49832088", "text": "private void checkAvailability() {\n if (productList != null) {\n if (productList.size() == 0) {\n noProductText.setVisibility(View.VISIBLE);\n } else {\n noProductText.setVisibility(View.GONE);\n }\n }\n }", "title": "" }, { "docid": "c2f10be15720d579c6a32da7aa8b5477", "score": "0.49830317", "text": "private void EmptyCartButtonActionPerformed(java.awt.event.ActionEvent evt) {\n cartModel.removeAllElements(); // dmoore57\n // updates list on form to show that all items have been removed from list\n CartList.setModel(cartModel); // dmoore57\n }", "title": "" }, { "docid": "9a6e49e6f5de5657f80c9722fa1d56a4", "score": "0.4981769", "text": "private void updateInventory(List<Item> items) {\r\n for(Item item : items) {\r\n inventory.put(item, STARTING_INVENTORY);\r\n inventorySold.put(item, 0);\r\n itemLocations.put(item.getSlot(), item);\r\n }\r\n }", "title": "" }, { "docid": "aecc9de87299032d805c18b637461cb4", "score": "0.49775073", "text": "protected boolean shouldShowItemNone() {\n return false;\n }", "title": "" }, { "docid": "bf0075895317893216027faceabfabe2", "score": "0.49770993", "text": "@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }", "title": "" }, { "docid": "8b3e505cf49edd5de2aa2540e5cea640", "score": "0.49716958", "text": "@Test\n\t\tpublic void testEmptyTheCart() {\n\t\t\tProduct hamburger = new Product(\"burger\", 10);\n\t\t\t\n\t\t\tcart.addItem(phone);\n\t\t\tcart.addItem(hamburger);\n\t\t\t\n\t\t\t// 3.Get rid of all items in the cart\n\t\t\tcart.empty();\n\t\t\t\n\t\t\t// 4. Check num items in cart === E = 0\n\t\t\tassertEquals(0, cart.getItemCount());\n\t\t}", "title": "" }, { "docid": "67d56a9b0e5e64ab70a500391b9d35af", "score": "0.49688", "text": "@Override\n\tpublic boolean hasCustomInventoryName(){\n\t return false;\n\t}", "title": "" }, { "docid": "ca5aa235affcb8fabe479b5163aff122", "score": "0.49654624", "text": "ProductInventory()\n\t{\n\n\t\t// Initialize the Product Inventory Array List\n\t\tmyProductInventory = new ArrayList<Product>();\n\n\t}", "title": "" } ]
d5afdce7564c91ebd2b787d956e6eaa9
Set the mount and the controller
[ { "docid": "59e572134c29777f763bfcfa7cd8f79d", "score": "0.6175701", "text": "public void setComponents(MountController ctrl,Mount mnt) {\n\t\t((CommonCoordsTableModel)getModel()).setComponents(ctrl, mnt);\n\t}", "title": "" } ]
[ { "docid": "2d4978bc6cff7fb7d78c062bb368be86", "score": "0.6530145", "text": "public void setController(InitController controller)\n {\n this.controller = controller;\n }", "title": "" }, { "docid": "d499c3ce7911352d0628aaca3898ebf5", "score": "0.6339953", "text": "public void setController(Controller c);", "title": "" }, { "docid": "0701e46191160458ade0c9e8cc82147f", "score": "0.6315825", "text": "public void setController(Controller controller);", "title": "" }, { "docid": "ae0a3c69af97e01403a211a70861e43e", "score": "0.61605835", "text": "public void setController(Controller controller) {\r\n\t\tthis.control = controller;\r\n\t}", "title": "" }, { "docid": "df28e3bd0c4c072a86d3a508596489b2", "score": "0.61302423", "text": "public void initController() {\r\n controller.setSetpoint(0);\r\n controller.enable();\r\n }", "title": "" }, { "docid": "1e208eddeb7d183d92c0e2e40ff25ed2", "score": "0.61227363", "text": "public void setController(IController controller) {\n\t\t\r\n\t}", "title": "" }, { "docid": "def33e3fdb9ccfec79cf4e57b25a9aa2", "score": "0.602315", "text": "public void setController(Controller controller) {\n this.controller = controller;\n }", "title": "" }, { "docid": "1d468216d6455753621e4b5cf1efd9ff", "score": "0.5994996", "text": "public void onMount();", "title": "" }, { "docid": "f4d395bd5e71c90b3ad4b6f2c6f73ff8", "score": "0.59242976", "text": "public void setController() {\n InteractiveNewVisualView v = new InteractiveNewVisualView(model, this);\n IInteractiveView vv = (IInteractiveView) v;\n this.view = (IVisualView) vv;\n this.controller = new AnimationController(model, vv, speed, true);\n v.initializeSpeed();\n }", "title": "" }, { "docid": "0b09535a699da42d4dcd212e3b4c9458", "score": "0.5902745", "text": "@Override\r\n\tpublic void setController(BasicController controller) {\n\t\t\r\n\t}", "title": "" }, { "docid": "da488e1c30585ddff32b73ea33666a13", "score": "0.58470935", "text": "public void setController(IController controller)\n {\n this.controller = controller;\n }", "title": "" }, { "docid": "c20556effaaab12f088426ba39d61423", "score": "0.58427894", "text": "public void setController(Controller controller)\n\t{\n\t\tthis.myController = controller;\n\t}", "title": "" }, { "docid": "dadeb563deabf20eb1026f80a9f1b50c", "score": "0.5740998", "text": "public void setController (PIDController controller) {\n this.controller = controller;\n }", "title": "" }, { "docid": "26334fbbf91bc624c96e068838d8b897", "score": "0.5740055", "text": "public void setController(GuiMainController controller) {\r\n\t\tthis.controller = controller;\r\n\t}", "title": "" }, { "docid": "e54abc68cd4e1ed18f407afd7f537e1a", "score": "0.57186085", "text": "public void setRenderer(RenderController inRenderer) { renderer = inRenderer; }", "title": "" }, { "docid": "87dc7647cd45cf8ea4bbd684e063167d", "score": "0.5669934", "text": "public void driverControl() {\r\n if (rerun != null) {\r\n rerun.stop();\r\n }\r\n setController(controller);\r\n }", "title": "" }, { "docid": "17742177be01f21444caeb502165fbbd", "score": "0.56580204", "text": "public RemoteController() {\n initComponents();\n initFormats();\n this.addWindowListener(this);\n }", "title": "" }, { "docid": "71a5cd75ea73012363e9a293e787e876", "score": "0.5640533", "text": "@Override\n public void setController(CameraController ctlr) {\n this.ctlr = ctlr;\n }", "title": "" }, { "docid": "22ebc6b3c27926357eba69cb6be25866", "score": "0.5631804", "text": "@FXML\n private void initialize(){\n createOfferController.injectIndexController(this);\n clientOffersController.injectIndexController(this);\n }", "title": "" }, { "docid": "01a558a1f09995c1320a098fdeed9c5e", "score": "0.55903834", "text": "public SpriteController(Context contextSet, Controller controlSet)\r\n\t{\r\n\t\tsuper();\r\n\t\tcontrol = controlSet;\r\n\t\tcontext = contextSet;\r\n\t}", "title": "" }, { "docid": "b9dc7ac92afda8fca0ac62474449269b", "score": "0.5589363", "text": "public void setDevice();", "title": "" }, { "docid": "be2852a5eadf3ca927cd28bdfb1158d5", "score": "0.5555857", "text": "public void setController(MainController<V, E, F> controller);", "title": "" }, { "docid": "d36ca0624dfb1b727e27aba598fb7d47", "score": "0.55529505", "text": "public void setFatherController(StoreController controller){\n this.fatherController = controller;\n }", "title": "" }, { "docid": "f9aab99b45ac01f8f6121ddf69ee9753", "score": "0.5528172", "text": "public void start()\n\t{\n\t\tctrl.start();\n\t}", "title": "" }, { "docid": "ff3365a9289f46a582db86066c4936e6", "score": "0.55243766", "text": "void setMainController(RequirementCardController requirementCardController);", "title": "" }, { "docid": "301372ceff5064f2be9bb7183411c698", "score": "0.5513291", "text": "public void StartUpdateClient() {\r\n\t\ttry {\r\n\t\t\tStage primaryStage = new Stage();\r\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/application/client/view/NewUpdateClient.fxml\"));\r\n\t\t\tloader.setController(new UpdateClientController());// <--- Controller\r\n\t\t\tParent root = (Parent) loader.load();\r\n\t\t\tprimaryStage.setWidth(1300);\r\n\t\t\tprimaryStage.setHeight(700);\r\n\t\t\tprimaryStage.setTitle(\"Ügyfelek módosítás\");\r\n\t\t\tprimaryStage.initModality(Modality.APPLICATION_MODAL);\r\n\t\t\tprimaryStage.setResizable(false);\r\n\t\t\tprimaryStage.getIcons()\r\n\t\t\t\t\t.add(new Image(getClass().getResourceAsStream(\"/application/setting/icon/button/Foliak.png\")));\r\n\t\t\tScene scene = new Scene(root);\r\n\t\t\tprimaryStage.setScene(scene);\r\n\t\t\tprimaryStage.show();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3c66ad96a899b09760f5f8944a6ed71e", "score": "0.5506417", "text": "public void initPhysicalCompScanner() {\r\n\t\ttry {\r\n\t\t\t// Load person overview.\r\n\t\t\tFXMLLoader loader = new FXMLLoader();\r\n\r\n\t\t\tloader.setLocation(Main.class.getResource(\"view/PhysicalCompScanner.fxml\"));\r\n\r\n\t\t\tAnchorPane operateScanner = (AnchorPane) loader.load();\r\n\r\n\t\t\t// Give the controller access to the main app.\r\n\t\t\tPhysicalCompScannerController controller = loader.getController();\r\n\t\t\tcontroller.setMainApp(this);\r\n\t\t\t\r\n\t\t\t// Set person overview into the center of root layout.\r\n\t\t\trootLayout.setCenter(operateScanner);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b2a046af54c57e65bc3a681e63552dd4", "score": "0.55030805", "text": "public RobotContainer() {\n \n m_XController = new XboxController(1);\n m_Joystick = new Joystick(0);\n m_FourBar = new FourBar();\n m_Shooter = new Shooter();\n m_Climb = new Climb();\n //m_Roulette = new Roulette();\n rt = new RelayTest();\n m_vision = new Vision(m_DriveBase);\n m_DriveBase = new DriveBase();\n GlobalFlashState = 0;\n\n \n m_Shooter.setDefaultCommand(new ShooterCommand(m_XController, m_Shooter,m_Joystick));\n m_Climb.setDefaultCommand(new ClimbCommand(m_XController, m_Climb));\n //m_Roulette.setDefaultCommand(new RouletteCommand(m_XController, m_Roulette, m_FourBar));\n m_DriveBase.setDefaultCommand(new ArcadeDrive(m_DriveBase, m_Joystick));\n // Configure the button bindings\n configureButtonBindings();\n\n }", "title": "" }, { "docid": "05356af4ef7e84ea446f675dd1400768", "score": "0.5502197", "text": "public void initializateThis(){\r\n\t\tthis.controller = new Controller();\r\n\t\tthis.setSize(ConstanstView.DEFAULT_SIZE_WIDTH,ConstanstView.DEFAULT_SIZE_HIGTH);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setBackground(Color.white);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.add(initializateImage(),BorderLayout.CENTER);\r\n\t\tthis.add(initializateProgress(),BorderLayout.SOUTH);\r\n\t}", "title": "" }, { "docid": "02e5dc273f1abc5ee792b5d7da4f74f7", "score": "0.5474797", "text": "public void setController(Controller controller) {\n log.info(\"com.AmazonLite.SwingView.setController(Controller)\");\n this.controller = controller;\n }", "title": "" }, { "docid": "b763f92359cb51a2c0f65a03c01e96b4", "score": "0.54719156", "text": "public RobotContainer() {\n //Update Limelight to the default values and start our lifecam server \n limelight.getEntry(\"pipeline\").setNumber(0);\n limelight.getEntry(\"ledMode\").setNumber(0);\n camera = CameraServer.getInstance().startAutomaticCapture();\n\n //Set and Start our default Commans (Only Tank atm)\n driveSubsystem.setDefaultCommand(new DriveTank(\n () -> -driverController.getRawAxis(XboxController.Axis.kLeftY.value),\n () -> -driverController.getRawAxis(XboxController.Axis.kRightY.value),\n driveSubsystem));\n\n //autoAimSubsystem.setDefaultCommand(new AutoPan(autoAimSubsystem));\n\n //Make sure our PID targets are set to 0 so we dont get some wierd instant running\n shooterSubsystem.setShooterTarget(0);\n\n //And then finally wrap up our button binds\n configureButtonBindings();\n }", "title": "" }, { "docid": "81d279bf2f92159bf6757361b3f27bab", "score": "0.5455302", "text": "private void setController() {\n controller = new MusicController(this);\n\n controller.setPrevNextListeners(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playNext();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playPrev();\n }\n });\n\n controller.setMediaPlayer(this);\n controller.setAnchorView(findViewById(R.id.song_list));\n controller.setEnabled(true);\n }", "title": "" }, { "docid": "239d9bce191f43b407fac391e980ca86", "score": "0.54330504", "text": "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n m_drivetrain.setDefaultCommand(new ArcadeDriveCommand(m_drivetrain, controller));\n m_servo.setDefaultCommand(new ServoCommand(m_servo, controller));\n m_solenoid.setDefaultCommand(new SolenoidCommand(m_solenoid, controller));\n m_winch.setDefaultCommand(new WinchCommand(m_winch, controller));\n }", "title": "" }, { "docid": "10201f40ea700e97ddec5a30cfb94920", "score": "0.542532", "text": "public void setCtrl(TMCtrl c){\r\n\t\tctrl = c;\r\n\t}", "title": "" }, { "docid": "51d4c23138322a1de10e6c98da6e64ea", "score": "0.5416022", "text": "public void setMountPoint(String mountPoint) {\n this.mountPoint = mountPoint;\n }", "title": "" }, { "docid": "d0708489af7f3ac37451f91566446225", "score": "0.5414083", "text": "private void setupDirectoryController() {\n this.directoryController.setDirectoryTree(directoryTree);\n this.directoryController.setTabPane(this.tabPane);\n this.directoryController.setFileMenuController(this.fileMenuController);\n }", "title": "" }, { "docid": "cb96d72c98dd5b397f192ebf0427cfce", "score": "0.53873795", "text": "private ControllerFacade (FacadeView facade) {\r\n\t\tfacadeView = facade;\r\n\t\trequests = new Requests () ;\r\n\t}", "title": "" }, { "docid": "e7fa8dc66a2398226d5ac778a0aeb821", "score": "0.5372423", "text": "public void teleopInit() {\n \tdriveWithJoystick = (Command) driveChoser.getSelected();\n \tdriveWithJoystick.start();\n raiseAndLowerElevatorWithJoystick.start();\n openAndCloseClawWithJoystick.start();\n }", "title": "" }, { "docid": "1dcf4d54648563d5fdf35a32848d838a", "score": "0.536523", "text": "private void setupSettingMenuController() {\n this.settingMenuController.setVBox(this.vBox);\n }", "title": "" }, { "docid": "aaf44d87ab506ca8a0e951696caaf09c", "score": "0.5355293", "text": "public Controller() {\n\t\tgui = new GUIFoodSupply();\n\t\tgui.setController(this);\n\t\tbuffer = new Buffer(this);\n\t\tinitConsumers();\n\t\tgui.Start();\n\t}", "title": "" }, { "docid": "388e62a0f8e45a6ad82fba3f2f7af755", "score": "0.534635", "text": "@Override\n\tprotected void initialize() {\n\t\tActuators.getLeftDriveMotor().setPosition(0);\n\t\tActuators.getRightDriveMotor().setPosition(0);\n\t\tDrive.drive(0, 0);\n\t}", "title": "" }, { "docid": "fdc4dc7c671a1d98da018b637475cd7f", "score": "0.5343094", "text": "public void StartNewClient() {\r\n\t\ttry {\r\n\t\t\tStage primaryStage = new Stage();\r\n\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/application/client/view/NewUpdateClient.fxml\"));\r\n\t\t\tloader.setController(new NewClientController());// <--- Controller\r\n\t\t\tParent root = (Parent) loader.load();\r\n\t\t\tprimaryStage.setWidth(1300);\r\n\t\t\tprimaryStage.setHeight(700);\r\n\t\t\tprimaryStage.setTitle(\"Új Ügyfelek\");\r\n\t\t\tprimaryStage.initModality(Modality.APPLICATION_MODAL);\r\n\t\t\tprimaryStage.setResizable(false);\r\n\t\t\tprimaryStage.getIcons()\r\n\t\t\t\t\t.add(new Image(getClass().getResourceAsStream(\"/application/setting/icon/button/Foliak.png\")));\r\n\t\t\tScene scene = new Scene(root);\r\n\t\t\tprimaryStage.setScene(scene);\r\n\t\t\tprimaryStage.show();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9019a5ec2876721af29fee4591718889", "score": "0.53423226", "text": "@Override\n public void robotInit() {\n // Instantiate our RobotContainer. This will perform all our button bindings, and put our\n // autonomous chooser on the dashboard.\n\n m_robotContainer = new RobotContainer();\n m_drive = m_robotContainer.getDriveCommand();\n //Limelight.setLimelightLeds(1);\n SmartDashboard.putNumber(\"Shooter RPM Setpoint\", 0.0);\n }", "title": "" }, { "docid": "eb93eb788e0e303b498fbec5f3bf7c49", "score": "0.5328627", "text": "protected abstract void onMountReady(Mount mount);", "title": "" }, { "docid": "1b2972b0a503702cb58f80c7796c445f", "score": "0.53282326", "text": "public void setLoadScreenController(LoadScreenController loadScreenController) {\n this.loadScreenController = loadScreenController;\n }", "title": "" }, { "docid": "b76668ff945f54ad0250af0a381fbe41", "score": "0.5325157", "text": "private void lateControllersSetup(){\n\t\tLateControllersSetupThread async = new LateControllersSetupThread(this);\n\t\tasync.start();\n\t\t//async.runSync();\n\t}", "title": "" }, { "docid": "c720b8a9dae6380f979b2d611f015deb", "score": "0.5320032", "text": "private void setController(){\n controller = new MusicController(this);\n\n controller.setPrevNextListeners(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playNext();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n playPrev();\n }\n });\n controller.setMediaPlayer(this);\n controller.setAnchorView(findViewById(R.id.song_list));\n controller.setEnabled(true);\n }", "title": "" }, { "docid": "57e9131c4ff9fd8a100b82a2ddc43865", "score": "0.531006", "text": "public StartController(GameEngine game, ScreenView view) {\n\t\tsuper(game, view);\n\t}", "title": "" }, { "docid": "4e9e63dd9ac9a41a68b20d2d4b2c8836", "score": "0.5304964", "text": "public void mount(Entity paramwv)\r\n/* 480: */ {\r\n/* 481:508 */ this.vehicle = null;\r\n/* 482: */ }", "title": "" }, { "docid": "88998f0937e9da49b074687586d05788", "score": "0.53026706", "text": "public MountDlg(Frame frame, Vector serverlist)\r\n\t{\r\n\t\tsuper(frame,\"Mount Disk\",true);\r\n\t\tsetSize(300,200);\r\n\t\tsetLocation(Administrator.x+150,Administrator.y+100);\r\n\t\tmountbox = new JComboBox(serverlist);\r\n\t\tcpane.setLayout(layout);\r\n\t\tconstrain(boxlabel,0,0,1,1);\r\n\t\tconstrain(mountbox,1,0,1,1);\r\n\t\tconstrain(fieldlabel,0,1,1,1);\r\n\t\tconstrain(mountfield,1,1,1,1);\r\n\t\tconstrain(blankpanel,0,2,2,1);\r\n\t\tbutpanel.setLayout(new GridLayout(1,3));\r\n\t\tbutpanel.add(mount);\r\n\t\tbutpanel.add(new JPanel());\r\n\t\tbutpanel.add(cancel);\r\n\t\tconstrain(butpanel,0,3,2,1);\r\n\t\tmount.setActionCommand(\"Mount\");\r\n\t\tcancel.setActionCommand(\"Cancel\");\r\n\t\tmount.addActionListener(this);\r\n\t\tcancel.addActionListener(this);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5ff77199c71c38e7ea200cd67914e182", "score": "0.5302561", "text": "public RobotContainer()\n {\n // Configure the button bindings\n configureButtonBindings();\n\n m_DriveTrain.setDefaultCommand(new ArcadeDrive());\n }", "title": "" }, { "docid": "b80c655139f3e4e0469b21d86d8a7bf5", "score": "0.52936417", "text": "@Override\n public void setScreenParent(ScreensController screenPage) {\n myController = screenPage;\n }", "title": "" }, { "docid": "4607951a36fa2de147a90ef072d7feb8", "score": "0.52930164", "text": "protected void onStart(Controller controller) {\n\t\tsetActionBarEnabled(true);\n\t\t// Pushes first screen\n\t\tif (TargetInfo.WINDOWS) {\n\t\t\tcontroller.pushScreen(NotSupportedScreen.class);\n\t\t} else {\n\t\t\tcontroller.pushScreen(MainScreen.class);\n\t\t}\n\t}", "title": "" }, { "docid": "c13dcb67d12408b1f586a8718186a31c", "score": "0.5281529", "text": "public void setMainController(MainController mainController){\n this.mainController = mainController;\n createMainView();\n }", "title": "" }, { "docid": "7b3bc47adea8868ea6dc2591c4a9f8a5", "score": "0.5273969", "text": "private void setupMachinery() {\n \t\tthis.renderer = new IntermediateRenderer();\n \t\tthis.controllerModel = new ControllerModel();\n \t\t\n \t\t// connect the Renderer to the Hub\n \t\tthis.hub = new ControllerHub(this.controllerModel, this.renderer, chemModel, this);\n \t\t\n \t\t// connect mouse events from Panel to the Hub\n \t\tthis.mouseEventRelay = new SwingMouseEventRelay(this.hub);\n \t\tthis.addMouseListener(mouseEventRelay);\n \t\tthis.addMouseMotionListener(mouseEventRelay);\n \t}", "title": "" }, { "docid": "7544bb2eca0345b52b9537bed7cda683", "score": "0.52637374", "text": "void setMainController(MainWindowControl c) {\n this.mainController = c;\n }", "title": "" }, { "docid": "b0fb7aaadff09dc23d14a9d8ab3c7409", "score": "0.52574503", "text": "public void mount(final byte[] bytes) {\r\n this.tapeHandler.mount(bytes);\r\n this.diskDriveHandler = null;\r\n }", "title": "" }, { "docid": "ac0198144b8027cff0348dc3ef54bd37", "score": "0.524674", "text": "@Override\n\tpublic void robotInit() {\n\t\ttuning = new Tuning();\n\t\t\n\t\tUsbCamera camera = CameraServer.getInstance().startAutomaticCapture(\"ze camera\", 0);\n\t\tcamera.setResolution(640, 480);\n\t\tMjpegServer mjpegServer0 = new MjpegServer(\"Front Server\", 1181);\n\t\tmjpegServer0.setSource(camera);\n\n\t\tOI.buttonIntake.whenPressed(new Intake());\n\t\tOI.buttonEject.whileHeld(new Eject());\n\t\tOI.buttonSpinup.whenPressed(new SpinupFlywheel());\n\t\tOI.buttonFire.whenPressed(new FireShooter());\n\t\tOI.buttonCancelShooter.whenPressed(new CancelShooter());\n\t\t\n\t\tdriveModeChooser.addDefault(\"Tank Drive\", new TankDrive());\n\t\tdriveModeChooser.addObject(\"Arcade Drive\", new ArcadeDrive());\n\t\tSmartDashboard.putData(\"Drive Mode\", driveModeChooser);\n\t}", "title": "" }, { "docid": "cc39e5b2c8652851ce0f05520328c318", "score": "0.5242547", "text": "private void setupToolbarController() {\n this.toolbarController.setConsole(this.console);\n this.toolbarController.setTabPane(this.tabPane);\n this.toolbarController.setFileMenuController(this.fileMenuController);\n }", "title": "" }, { "docid": "3df4fe410fa524ec58a71a4a49ee3be1", "score": "0.52419126", "text": "void OnMount()\r\n\t{\r\n\t\tretval = MOUNT;\r\n\t\tservername = (String)mountbox.getSelectedItem();\r\n\t\tnewmountpt = mountfield.getText();\r\n\t\tif (!newmountpt.substring(0,TOSFile.separator.length()).equals(TOSFile.separator))\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Mount point must be absolute path name.\",\"Bad format\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdispose();\r\n\r\n\t}", "title": "" }, { "docid": "55d2f2143441d36d134521add942eb4b", "score": "0.5237292", "text": "public Screen (Controller controller)\n {\n this.controller = controller;\n legend = \"\";\n setPreferredSize(new Dimension(SIZE, SIZE));\n setMinimumSize(new Dimension(SIZE, SIZE));\n setBackground(Color.black);\n setForeground(Color.white);\n setFont(new Font(Font.SANS_SERIF, Font.PLAIN, 120));\n setFocusable(true);\n \n }", "title": "" }, { "docid": "ff941a7716aa5381a7591cb400637aed", "score": "0.5225607", "text": "@FXML\r\n public void handHostBut(){\r\n if (server == null){\r\n server = new DMServer(5000, commAre, this);\r\n }\r\n }", "title": "" }, { "docid": "ca9b149cf028c6e4c25fa5d171a2fa76", "score": "0.5225235", "text": "public BaseController() {\r\n clientInstance = UnirestClient.getSharedInstance();\r\n }", "title": "" }, { "docid": "9211102aa68adabab8ff2be0a38720c3", "score": "0.5224972", "text": "@Required\n public void setController(Controller controller) {\n\n this.controller = controller;\n }", "title": "" }, { "docid": "0d8a8812a1e44e54bc9a2f54a16151ff", "score": "0.522166", "text": "public MainView(MainController controller) {\n this.controller = controller;\n\n stage = new Stage();\n stage.setTitle(TITEL);\n\n root = createRoot();\n Scene scene = new Scene(root);\n scene.getStylesheets().add(\"css/Main.css\");\n\n stage.setScene(scene);\n stage.setResizable(true);\n stage.getIcons().add(new Image(\"pics/sticker-sport-handbal-4763.png\"));\n\n setupController();\n }", "title": "" }, { "docid": "0d5896f292b43a66591ff6555a6f9323", "score": "0.5203521", "text": "protected void initialize() {\n \tRobotMap.shootershooterAngleDrive.changeControlMode(TalonControlMode.Position);\n \tRobotMap.shootershooterAngleDrive.set(shooterPosition);\n \t\n \tRobotMap.intakeintakeAngleDrive.changeControlMode(TalonControlMode.Position);\n \tRobotMap.intakeintakeAngleDrive.set(intakePosition);\n }", "title": "" }, { "docid": "3e082fbbb1afd3f2d6cf6dc212383505", "score": "0.52032614", "text": "private void setupFileMenuController() {\n this.fileMenuController.setDirectoryController(this.directoryController);\n this.fileMenuController.setTabPane(this.tabPane);\n this.tabPane.setFileMenuController(this.fileMenuController);\n }", "title": "" }, { "docid": "d2b82616ad8a5db6104fe98b92d1b41d", "score": "0.5190632", "text": "private void initController() {\n view.initPianoView();\n changeKeys();\n mapKeysToOctaves();\n muteButton();\n stopButton();\n exitToMenuButton();\n selectSongButton();\n RecordButton();\n mapKeysPiano();\n }", "title": "" }, { "docid": "14066310a9a1da4dfc4d74c707b19247", "score": "0.5190291", "text": "public void initPhysicalCompNewEntry() {\r\n\t\ttry {\r\n\t\t\t// Load person overview.\r\n\t\t\tFXMLLoader loader = new FXMLLoader();\r\n\r\n\t\t\tloader.setLocation(Main.class.getResource(\"view/PhysicalNewEntry.fxml\"));\r\n\r\n\t\t\tAnchorPane operateScanner = (AnchorPane) loader.load();\r\n\r\n\t\t\t// Give the controller access to the main app.\r\n\t\t\tPhysicalNewEntryController controller = loader.getController();\r\n\t\t\tcontroller.setMainApp(this);\r\n\r\n\t\t\t// Set person overview into the center of root layout.\r\n\t\t\trootLayout.setCenter(operateScanner);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "09116ec8ca0f7f993c34e94b4a337ac7", "score": "0.5183961", "text": "public void setStartingScreen(){\n paused = true;\n duel = false;\n myRoot = new BorderPane();\n myRoot.getStyleClass().add(PANE_STYLE);\n myRoot.setTop(makeTitleBar());\n myRoot.setCenter(makeSimulationSpace());\n myRoot.setRight(makeSimulationSpace());\n makeSimulation((VBox)(myRoot.getCenter()));\n myScene = new Scene(myRoot, WINDOW_WIDTH, WINDOW_HEIGHT);\n myScene.getStylesheets().add(UserInterface.class.getResource(DEFAULT_RESOURCE_PACKAGE + STYLESHEET).toExternalForm());\n setMyStage();\n }", "title": "" }, { "docid": "baec2e48d45e92c12d489273a0d92a06", "score": "0.51714754", "text": "public Controller wireObjects() {\n\n // attach all input to standard i/o\n Prompt prompt = new Prompt(System.in, System.out);\n\n // wire services\n authService.setCustomerService(customerService);\n\n // wire login controller and view\n LoginController loginController = new LoginController();\n LoginView loginView = new LoginView();\n loginController.setView(loginView);\n loginController.setAuthService(authService);\n loginView.setLoginController(loginController);\n loginView.setPrompt(prompt);\n\n // wire main controller and view\n MainController mainController = new MainController();\n MainView mainView = new MainView();\n mainView.setPrompt(prompt);\n mainView.setMainController(mainController);\n mainController.setView(mainView);\n mainController.setAuthService(authService);\n loginController.setNextController(mainController);\n\n // wire balance controller and view\n BalanceController balanceController = new BalanceController();\n BalanceView balanceView = new BalanceView();\n balanceView.setBalanceController(balanceController);\n balanceController.setView(balanceView);\n balanceController.setCustomerService(customerService);\n balanceController.setAuthService(authService);\n\n // wire new account controller and view\n NewAccountView newAccountView = new NewAccountView();\n NewAccountController newAccountController = new NewAccountController();\n newAccountController.setAccountService(accountService);\n newAccountController.setAuthService(authService);\n newAccountController.setAccountFactory(new AccountFactory());\n newAccountController.setView(newAccountView);\n newAccountView.setNewAccountController(newAccountController);\n\n // wire account transactions controllers and views\n DepositController depositController = new DepositController();\n WithdrawalController withdrawalController = new WithdrawalController();\n AccountTransactionView depositView = new AccountTransactionView();\n AccountTransactionView withdrawView = new AccountTransactionView();\n depositController.setAuthService(authService);\n depositController.setAccountService(accountService);\n depositController.setCustomerService(customerService);\n depositController.setView(depositView);\n withdrawalController.setAuthService(authService);\n withdrawalController.setCustomerService(customerService);\n withdrawalController.setAccountService(accountService);\n withdrawalController.setView(withdrawView);\n depositView.setPrompt(prompt);\n depositView.setTransactionController(depositController);\n withdrawView.setPrompt(prompt);\n withdrawView.setTransactionController(withdrawalController);\n\n // wire recipients controller and view\n RecipientsController recipientsController = new RecipientsController();\n RecipientsView recipientsView = new RecipientsView();\n recipientsView.setRecipientsController(recipientsController);\n recipientsController.setView(recipientsView);\n recipientsController.setAuthService(authService);\n recipientsController.setCustomerService(customerService);\n\n // setup the controller map\n Map<Integer, Controller> controllerMap = new HashMap<>();\n controllerMap.put(UserOptions.GET_BALANCE.getOption(), balanceController);\n controllerMap.put(UserOptions.OPEN_ACCOUNT.getOption(), newAccountController);\n controllerMap.put(UserOptions.DEPOSIT.getOption(), depositController);\n controllerMap.put(UserOptions.WITHDRAW.getOption(), withdrawalController);\n controllerMap.put(UserOptions.LIST_RECIPIENTS.getOption(), recipientsController);\n\n mainController.setControllerMap(controllerMap);\n\n return loginController;\n }", "title": "" }, { "docid": "0351d6887eb8b33d1c90e168b612a2cc", "score": "0.5169011", "text": "@FXML\n public void initialize() {\n // initialize sub controllers\n this.fileMenuController = new FileMenuController();\n this.editMenuController = new EditMenuController();\n this.codeMenuController = new CodeMenuController();\n this.toolbarController = new ToolBarController();\n this.directoryController = new DirectoryController();\n this.settingMenuController = new SettingMenuController();\n this.structureViewController = new StructureViewController();\n this.findReplaceController = new FindReplaceController();\n\n // set up the sub controllers\n this.setupFileMenuController();\n this.setupEditMenuController();\n this.setupCodeMenuController();\n this.setupToolbarController();\n this.setupDirectoryController();\n this.setupSettingMenuController();\n this.setupStructureViewController();\n this.setupFindReplaceController();\n\n this.setButtonBinding();\n }", "title": "" }, { "docid": "6ff6aec3b5341acfa52fdcab9f637f40", "score": "0.5166102", "text": "public JMount getMount() {\r\n\t\treturn mount;\r\n\t}", "title": "" }, { "docid": "e4906fc839216a01f1c5d80602a5b0e3", "score": "0.51606447", "text": "private void initialiseWithController(MyAIController controller) {\n\t\tinitialisedWithController = true;\n\t\tcurrentPosition = new Coordinate(controller.getPosition());\n\t\tdoneTarget = path.get(path.size() - 1);\n\t\t\n\t\tWorldSpatial.Direction currentDir = controller.getOrientation();\n\t\tWorldSpatial.Direction startDir = directionBetween(path.get(0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t path.get(1));\n\t\t\n\t\t// If we're not oriented correctly we want to reverse\n\t\t// one tile so we can turn, or even reverse the entire\n\t\t// path (this isn't so unreasonable since paths should\n\t\t// be relatively short).\n\t\tif (!currentDir.equals(startDir)) {\n\t\t\t// Tile just before our start tile in our current direction\n\t\t\tbackingUpTarget = getReverseTarget(controller);\n\t\t\t\n\t\t\t// Start reversing\n\t\t\tcontroller.toggleReverseMode();\n\t\t\t\n\t\t\t// We only actually want to be in \"backingUp mode\" if\n\t\t\t// we have to turn, if the previous tile is on\n\t\t\t// our path then reverse the whole way\n\t\t\tif (!backingUpTarget.equals(path.get(1))) {\n\t\t\t\tbackingUp = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tregulateSpeed(controller);\n\t\t\n\t\t// Make sure that the controller is starting at\n\t\t// the intended start point.\n\t\tif (!currentPosition.equals(path.get(0))) {\n\t\t\tSystem.out.println(\"ERROR: Car not starting on path\");\n\t\t}\n\t}", "title": "" }, { "docid": "c6aeaae2bae79e7f5f9a76705c0a4604", "score": "0.5152015", "text": "public void setController(ActionListener al) {\r\n\t\tlogoutButton.addActionListener(al);\r\n\t\tsearchButton.addActionListener(al);\r\n\t\tpropertiesButton.addActionListener(al);\r\n\t\toffersButton.addActionListener(al);\r\n\t\trentedButton.addActionListener(al);\r\n\t\tbookedButton.addActionListener(al);\r\n\t}", "title": "" }, { "docid": "604c3d083a3efa1ac6df13289031239b", "score": "0.5148582", "text": "@Override\n\tprotected void initialize() {\n\t\t// Get everything in a safe starting state\n\t\t//enable the auto drive controller\n\t\tdriverxy.driveController.enable();\n\t\tangleController.driveController.enable();\n\t}", "title": "" }, { "docid": "d453875f8e0a5bcaca3dd473a8950166", "score": "0.5148407", "text": "public RobotController(){\r\n\t\tnew Map();\r\n\t\tnew LCDInfo();\r\n\t\t\r\n\t\tus = new USGather(usFront);\r\n\t\tcg = new ColorGather(csFront, csBack, csBlockReader);\r\n\t\t\r\n\t\trobo = new TwoWheeledRobot(leftMotor, rightMotor);\r\n\t\tnav = new Navigation(robo);\r\n\t\tcorrector = new OdometryCorrection(cg, WHEEL_RADIUS, ODOCORRECT_SENS_WIDTH, ODOCORRECT_SENS_DIST);\r\n\t\todo = new Odometer(robo, corrector);\r\n\t\t\r\n\t\tcollection = new CollectionSystem(clawMotor, nav);\r\n\t\t\r\n\t\tthis.start();\r\n\t}", "title": "" }, { "docid": "cf871e30e9fbe37f8743f270b7e153e7", "score": "0.51455146", "text": "@Override\r\n\tpublic void robotInit() {\r\n\t\tRobotMap.loadProperties();\r\n\t\tRobotMap.makePaths();\r\n\t\tdriveTrain = new DriveTrain();\r\n\t\tif(RobotMap.useEncElevator) {\r\n\t\t\televator = new ElevatorEnc();\r\n\t\t}else {\r\n\t\t\televator = new ElevatorPot();\r\n\t\t}\r\n\t\tarm = new Arm();\r\n\t\tcubeDetector = new DigitalInput(0);\r\n\t\tm_oi = new OI();\r\n autonBtn = new ButtonPressDetector(m_oi.autonSelector);\r\n \r\n\r\n if (RobotMap.useCamera) {\r\n \ttry {\r\n \t\tjevois = CameraServer.getInstance().startAutomaticCapture();\r\n \t\tjevois.setVideoMode(PixelFormat.kMJPEG,320,240,30);\r\n \t\tVideoMode vm = jevois.getVideoMode();\r\n \t\tSystem.out.println(\"jevois pixel: \" + vm.refpixelFormat);\r\n \t\tSystem.out.println(\"jevois res: \" + vm.width + \"x\" + vm.height);\r\n \t\tSystem.out.println(\"jevois fps: \" + vm.fps);\r\n \t} catch (Exception e) {\r\n \t\tSystem.out.println(\"Could not start USB camera\");\r\n \t}\r\n }\r\n \r\n\t\tServer jettyServer = new Server(5800);\r\n ServerConnector connector = new ServerConnector(jettyServer);\r\n connector.setPort(5800);\r\n jettyServer.addConnector(connector);\r\n\r\n ResourceHandler resource_handler = new ResourceHandler();\r\n resource_handler.setDirectoriesListed(true);\r\n resource_handler.setWelcomeFiles(new String[]{ \"webroot/index.html\" });\r\n \r\n resource_handler.setResourceBase(\"/home/lvuser\");\r\n \r\n HandlerList handlers = new HandlerList();\r\n handlers.setHandlers(new Handler[] { resource_handler, new DefaultHandler() });\r\n jettyServer.setHandler(handlers);\r\n try {\r\n\t\t\tjettyServer.start();\r\n\t\t\tjettyServer.join();\r\n\t\t} catch (Exception 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\t\t\r\n\t}", "title": "" }, { "docid": "962616087d69fc3ddf848df1976a9551", "score": "0.51410604", "text": "public void fillScreensController() {\n screensController.screenLoad(getHOMEID(), homeView);\n screensController.screenLoad(getORDERLISTPRINTID(), orderListPrintView);\n screensController.screenLoad(getMAILID(), mailView);\n screensController.screenLoad(getGUESTID(), adjustGuestView);\n screensController.screenLoad(getREGISTRATIONID(), registrationView);\n screensController.screenLoad(getORDERID(), orderView);\n screensController.screenLoad(getDEBTORID(), debtorsView);\n screensController.screenLoad(getSETTINGSID(), settingsView);\n screensController.screenLoad(getIMPORTWINELISTID(), importWineListView);\n screensController.screenLoad(getIMPORTGUESTLISTID(), importGuestListView);\n screensController.screenLoad(getATTENDANCEID(), attendanceView);\n screensController.screenSet(getHOMEID());\n }", "title": "" }, { "docid": "39fdecdb21935b5edc54af2efdc92b78", "score": "0.51391745", "text": "private void mountCurrent() {\n if (_vehicle == null || !getNpc().isSpawned())\n return;\n\n if (!_vehicle.isSpawned())\n _vehicle.spawn(getNpc().getLocation());\n\n getNpc().mountNPC(_vehicle);\n }", "title": "" }, { "docid": "b7ea9006779c879a81b6222d63dc64cf", "score": "0.5135871", "text": "public DriveWithController(DriveSub subsystem, BaseController controller) {\n driveSub = subsystem;\n driveController = controller;\n\n // Use addRequirements() here to declare subsystem dependencies.\n addRequirements(driveSub);\n }", "title": "" }, { "docid": "c4c2e07bb910502547430e0133d0310f", "score": "0.51344615", "text": "@FXML\n\tprivate void initialize() {\n\t\tthis.controller = new CustomerController(this);\n\t\tbundle = Bundle.getInstance();\n\t\t// The font of the categories and menu\n\t\tmainFont = \"Chalkduster\";\n\t\tsecondaryFont = \"Gurmukhi Sangam MN\";\n\t\tImage image1 = new Image(\"/imgs/logo.png\");\n\t\tImageView iv1 = new ImageView(image1);\n\t\tiv1.setFitHeight(100);\n\t\tiv1.setFitWidth(100);\n\t\tleftPart.getChildren().add(iv1);\n\t\t\n\t\tImage image2 = new Image(\"/imgs/logo2.png\");\n\t\tImageView iv2 = new ImageView(image2);\n\t\tiv2.setFitHeight(67);\n\t\tiv2.setFitWidth(92);\n\t\trightPart.getChildren().add(iv2);\n\t\tcontroller.initMenu();\n\t}", "title": "" }, { "docid": "aa6b8dd493ed6bc8ea2e15d0bb6a1018", "score": "0.5127082", "text": "public LancamentoController() {\n\t\tlancamentoFacade = new LancamentoFacade(); \n\t}", "title": "" }, { "docid": "43d4c9508a61d022017b089681629c4e", "score": "0.51252043", "text": "public StartController(Start s){\n\t\ttry {\n\t\t\ttextList = file.OpenFile();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tStartController.s = s;\n\t\t\n\t}", "title": "" }, { "docid": "e0334c73aa2c2e4caa35971fa1ff309c", "score": "0.5116206", "text": "public RobotContainer() {\n //System.out.println(\"I'm Working\");\n // Configure the button bindings\n configureButtonBindings();\n CommandScheduler.getInstance().setDefaultCommand(m_driveTrain, m_driveCommand);\n CommandScheduler.getInstance().setDefaultCommand(m_Intake, m_BallIn);\n CommandScheduler.getInstance().setDefaultCommand(m_Winch, m_ArmCommand);\n //CommandScheduler.getInstance().setDefaultCommand(m_Winch, m_WinchCommand);\n //CommandScheduler.getInstance().setDefaultCommand(m_PopUpPistion, m_BallOut);\n }", "title": "" }, { "docid": "0f47e05defe461a3dd6316d6ea6835b3", "score": "0.5116081", "text": "public static void controller() {\n \n }", "title": "" }, { "docid": "c33160de83429c66ca96bd6c19117e3a", "score": "0.51056653", "text": "public static void initInstance(){\r\n\t\tcontroller = new Controller();\r\n\t}", "title": "" }, { "docid": "41f4f992f97d379870e619e528716c6f", "score": "0.5104128", "text": "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new DriveBaseController());\n }", "title": "" }, { "docid": "cd5f98d2518d543edda7804309ac31b5", "score": "0.50960964", "text": "public abstract void onControllerCreated(RendererController rendererController);", "title": "" }, { "docid": "163e9fd8bd609ceb4cc683faf06f07cf", "score": "0.50948495", "text": "public String getMount() {\n return _mount;\n }", "title": "" }, { "docid": "745a71934bbff3d0cae36b299ff99b6f", "score": "0.5093827", "text": "public void teleopInit()\n {\n \tmyRobot.setInvertedMotor(RobotDrive.MotorType.kRearRight, true);\n \tmyRobot.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);\n \tmyRobot.setInvertedMotor(RobotDrive.MotorType.kFrontRight, true);\n \tmyRobot.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);\n \t\n \t//camera.openCamera();\n \t//camera.startCapture();\n }", "title": "" }, { "docid": "f68e70b9838f996edaa7b40d84e71ef5", "score": "0.50928456", "text": "public <E> void setupController(E controller) {\n\n mMockMvc = MockMvcBuilders.standaloneSetup(controller).build();\n }", "title": "" }, { "docid": "0b0ed128375a5fdfeb81d329ea21fe08", "score": "0.508612", "text": "public void setController(TimedControllerIfc controller)\n {\n this.controller = controller;\n }", "title": "" }, { "docid": "5308642e3dda34b5fbff72cceaac37af", "score": "0.5084781", "text": "public void setController(String controllerId, IController controller);", "title": "" }, { "docid": "5fa00bd8b035c8b15d9053e526c81c70", "score": "0.50796145", "text": "public SingleViewLauncher() { super(new SingleViewController()); }", "title": "" }, { "docid": "0b710f07d3cca711df07d7bf26e5c506", "score": "0.50725347", "text": "public void setController(PanelEventController controller)\r\n {\r\n this.CONTROLLER = controller;\r\n }", "title": "" }, { "docid": "6b2c91a76c5668df13dba861bbba02d0", "score": "0.50703365", "text": "public void setSetup() throws Exception {\n\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"shipSetupFX.fxml\"));\n\t\tParent root = fxmlLoader.load();\n\t\tShipSetupController controller = fxmlLoader.getController();\n\t\tcontroller.setClient(client);\n\t\tcontroller.setMain(this);\n\t\tthis.client.setShipSetupController(controller);\n\t\tScene scene = new Scene(root);\n\t\tprimaryStage.setScene(scene);\n\t\tprimaryStage.setResizable(false);\n\t\tprimaryStage.sizeToScene();\n\t\tprimaryStage.setTitle(\"Ship Setup\");\n\t\tprimaryStage.show();\n\t}", "title": "" }, { "docid": "4ebaeea4250d49c770817aea5ea97506", "score": "0.5067942", "text": "@Override protected void startup() {\n \n //Show GUI\n show(new TravelSmartView(this));\n getView().pn_Map.FillMap();\n }", "title": "" }, { "docid": "f22c176c9d7f2c3cd16a655323d00679", "score": "0.5067424", "text": "protected void robotInit() {\n chassis.setInvertedMotor(RobotDrive.MotorType.kFrontLeft,true);\n chassis.setInvertedMotor(RobotDrive.MotorType.kRearLeft,true);\n chassis.setInvertedMotor(RobotDrive.MotorType.kFrontRight,true);\n chassis.setInvertedMotor(RobotDrive.MotorType.kRearRight,true);\n\n }", "title": "" }, { "docid": "b01aa314c7ba2a8180a60061c06a4532", "score": "0.50657797", "text": "@Override\n public void onStart() {\n super.onStart();\n\n EventBus.getDefault().register(this);\n\n if (ctlr != null) {\n ctlr.start();\n }\n }", "title": "" } ]
685f7008ce7454c68edc6c0377fffb57
Returns true if field timestamp is set (has been assigned a value) and false otherwise
[ { "docid": "7de0a054ad702deba45b3a911ff8ba29", "score": "0.8463404", "text": "public boolean isSetTimestamp() {\n return this.timestamp != null;\n }", "title": "" } ]
[ { "docid": "e4ee7486d8d044ce4578142d2362467c", "score": "0.81699044", "text": "public boolean hasTimestamp() {\n return fieldSetFlags()[0];\n }", "title": "" }, { "docid": "eb484f6b94d85cffea14981f0d2c56a5", "score": "0.8144111", "text": "public boolean hasTimestamp() {\n return fieldSetFlags()[3];\n }", "title": "" }, { "docid": "0eac944545c97286969ae5896738515f", "score": "0.8083521", "text": "public boolean isSetTimeStamp() {\n return this.timeStamp != null;\n }", "title": "" }, { "docid": "60abc6349c818cfa4e7df615f2abfb63", "score": "0.7993256", "text": "public boolean hasTimestamp() {\n return timestampBuilder_ != null || timestamp_ != null;\n }", "title": "" }, { "docid": "e60e4527ceb40a48ca150991276ee361", "score": "0.78820205", "text": "@java.lang.Override\n public boolean hasTimestamp() {\n return timestamp_ != null;\n }", "title": "" }, { "docid": "3b5883f31b60d4d07147283ec49419c2", "score": "0.7816631", "text": "boolean hasTimestamp();", "title": "" }, { "docid": "3b5883f31b60d4d07147283ec49419c2", "score": "0.7816631", "text": "boolean hasTimestamp();", "title": "" }, { "docid": "3b5883f31b60d4d07147283ec49419c2", "score": "0.7816631", "text": "boolean hasTimestamp();", "title": "" }, { "docid": "3b5883f31b60d4d07147283ec49419c2", "score": "0.7816631", "text": "boolean hasTimestamp();", "title": "" }, { "docid": "3b5883f31b60d4d07147283ec49419c2", "score": "0.7816631", "text": "boolean hasTimestamp();", "title": "" }, { "docid": "3b026e38f8e1c9c98ee6a89650dac01d", "score": "0.77144396", "text": "public boolean hasTimestamp();", "title": "" }, { "docid": "3826c026741d8ca0ce55f4afb49b72f3", "score": "0.7578618", "text": "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "b116d0632bb5847a6be9a4def8c037dc", "score": "0.75740063", "text": "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "5be53bbae794b566182ef8d65baeed75", "score": "0.7570224", "text": "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "8e6c6c54e14497d8135171ed062e021f", "score": "0.7569451", "text": "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "ddec5ce1ded4a21759b2d963d77403da", "score": "0.75486386", "text": "public boolean isSetCreateTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __CREATETIMESTAMP_ISSET_ID);\n }", "title": "" }, { "docid": "ddec5ce1ded4a21759b2d963d77403da", "score": "0.75486386", "text": "public boolean isSetCreateTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __CREATETIMESTAMP_ISSET_ID);\n }", "title": "" }, { "docid": "ddec5ce1ded4a21759b2d963d77403da", "score": "0.75486386", "text": "public boolean isSetCreateTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __CREATETIMESTAMP_ISSET_ID);\n }", "title": "" }, { "docid": "ddec5ce1ded4a21759b2d963d77403da", "score": "0.75486386", "text": "public boolean isSetCreateTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __CREATETIMESTAMP_ISSET_ID);\n }", "title": "" }, { "docid": "287b61c82ae1a2f773ba7a1046377add", "score": "0.7544413", "text": "boolean hasTimeStamp();", "title": "" }, { "docid": "31de33df3adfd1010c2d62128e341518", "score": "0.75035393", "text": "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "67a9447f3812b2d3b9be030d05492a85", "score": "0.7500769", "text": "public boolean hasTimestamp() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "8f0cfbe3305fb0e9da889bf7c122a139", "score": "0.7499001", "text": "public boolean hasUpdatetimestamp() {\r\n return fieldSetFlags()[12];\r\n }", "title": "" }, { "docid": "bfe4b7aa0ceead194518a8e66e0561e2", "score": "0.7406953", "text": "public boolean hasTimeStamp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "bf2fee05d59b68b43119028a6ffea057", "score": "0.73969465", "text": "public boolean hasTimeStamp() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "24909c93aafe8f27b479a19dfb9d38f8", "score": "0.719498", "text": "public boolean isSetLastModityTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __LASTMODITYTIMESTAMP_ISSET_ID);\n }", "title": "" }, { "docid": "ac00294907facdceceab4ccd1647aac4", "score": "0.7095492", "text": "public boolean isSetLastLoginTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __LASTLOGINTIMESTAMP_ISSET_ID);\n }", "title": "" }, { "docid": "7608855a594437bfc3dd98e348cc98dd", "score": "0.69401515", "text": "public boolean isSetLastmodifyTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __LASTMODIFYTIMESTAMP_ISSET_ID);\n }", "title": "" }, { "docid": "7608855a594437bfc3dd98e348cc98dd", "score": "0.69401515", "text": "public boolean isSetLastmodifyTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __LASTMODIFYTIMESTAMP_ISSET_ID);\n }", "title": "" }, { "docid": "6a252b9c7bf5649b832b93842f223a77", "score": "0.69238347", "text": "public boolean hasTime() {\n return fieldSetFlags()[0];\n }", "title": "" }, { "docid": "660ae8c6d3eb535b3bc1352bf719f10f", "score": "0.6910939", "text": "public boolean isSetLoginTime() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __LOGINTIME_ISSET_ID);\n }", "title": "" }, { "docid": "3015e1770bea33a6014a04880987c179", "score": "0.6887661", "text": "public boolean hasTs() {\n return fieldSetFlags()[0];\n }", "title": "" }, { "docid": "b575a11e086ff12d411708a800c33f21", "score": "0.68802726", "text": "public boolean isTimestampEnabled()\r\n { return getComponentFlag(FLAG_TIMESTAMP_ENABLED) != 0; }", "title": "" }, { "docid": "7b3c070d4e546b79501970aab35463d2", "score": "0.68787944", "text": "public boolean isSetTemporal() {\n return this.temporal != null;\n }", "title": "" }, { "docid": "505b886de411e1cef02e605c732028d8", "score": "0.6877601", "text": "boolean hasCreationTimestamp();", "title": "" }, { "docid": "8a69ed8c8094672ee9697e1a22849031", "score": "0.6871892", "text": "public boolean isSetUploadDttm() {\n return this.uploadDttm != null;\n }", "title": "" }, { "docid": "4bef99b1c8ebc9022e7b851791cb7cdb", "score": "0.6866383", "text": "public boolean isSetLastModifyTimestamp() {\n return EncodingUtils.testBit(__isset_bitfield, __LASTMODIFYTIMESTAMP_ISSET_ID);\n }", "title": "" }, { "docid": "2c3f788f1e4edcee10aea297b30fd1ab", "score": "0.6836931", "text": "public boolean hasTime() {\n return fieldSetFlags()[2];\n }", "title": "" }, { "docid": "d8d633a8833c234b0176c1c34af17906", "score": "0.68323106", "text": "public boolean hasCreationTimestamp() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "title": "" }, { "docid": "53c15118a1c13418b744ffcabe9fe4c9", "score": "0.6825636", "text": "public boolean isNotNullModifiedTime() {\n return genClient.cacheValueIsNotNull(CacheKey.modifiedTime);\n }", "title": "" }, { "docid": "419da9e540b3ce6a5f72799b6a81b551", "score": "0.682021", "text": "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "title": "" }, { "docid": "419da9e540b3ce6a5f72799b6a81b551", "score": "0.682021", "text": "public boolean isSetCreateTime() {\n return this.createTime != null;\n }", "title": "" }, { "docid": "7bc56ad2c9d446a90fe99a86fc3b176e", "score": "0.6813773", "text": "public boolean isSetCreatedTime() {\n return EncodingUtils.testBit(__isset_bitfield, __CREATEDTIME_ISSET_ID);\n }", "title": "" }, { "docid": "324b3911b298c7586c554228bd3e44ae", "score": "0.6801495", "text": "public boolean hasCreationTimestamp() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "title": "" }, { "docid": "e56a9de26747b6c2a161509365719754", "score": "0.6761121", "text": "public boolean isSetUpdateTime() {\n return this.updateTime != null;\n }", "title": "" }, { "docid": "bd5d87fd020c32c959dd79436ce163f8", "score": "0.6752448", "text": "public boolean isSetStartTime() {\n return this.startTime != null;\n }", "title": "" }, { "docid": "f58929804bf3564878fbdf230618f004", "score": "0.6740414", "text": "public boolean isSetStartTime() {\r\n return this.startTime != null;\r\n }", "title": "" }, { "docid": "a3af9f79bc25ee7aa9d941138a50f169", "score": "0.67282164", "text": "boolean hasServertimestamp();", "title": "" }, { "docid": "b2b1ddf9e16c32d45ada91c6d7565061", "score": "0.6684579", "text": "public boolean hasEverBeenValid() {\r\n if (this.getLastValidTimestamp() == -1) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "3f09a14e91237a1c12a5018edd1dffb0", "score": "0.6617629", "text": "public boolean isNotNullModifiedTime() {\n return cacheValueIsNotNull(CacheKey.modifiedTime);\n }", "title": "" }, { "docid": "ecefb6985f842764ed1a4fa1b6d69576", "score": "0.660689", "text": "public boolean isSetModifiedAt() {\n return this.modifiedAt != null;\n }", "title": "" }, { "docid": "a7fedfaa2876e70fc4a71e807e7fb152", "score": "0.6597915", "text": "public boolean isSetTimeLength() {\n return EncodingUtils.testBit(__isset_bitfield, __TIMELENGTH_ISSET_ID);\n }", "title": "" }, { "docid": "c23acb93a6a760c027e1bb9f104e08e3", "score": "0.6597899", "text": "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000100) != 0);\n }", "title": "" }, { "docid": "5483527f84cb6fb51be1f8146731739e", "score": "0.6560317", "text": "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "38f75970fdb8d0dcfacd2c961d87cf20", "score": "0.6556111", "text": "boolean hasCreateTime();", "title": "" }, { "docid": "3d7da04429b3fceec804ed3fb1e5371c", "score": "0.65503526", "text": "public boolean hasCreateTime() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "title": "" }, { "docid": "fc8e838fedb4ae7ebf86140637d62376", "score": "0.6544191", "text": "public boolean isSetMessageTimestamps()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MESSAGETIMESTAMPS$14) != 0;\n }\n }", "title": "" }, { "docid": "2c1cae890c5018da1440a63a48678d44", "score": "0.65343666", "text": "public boolean hasTime() {\n return time_ != null;\n }", "title": "" }, { "docid": "b29d74792c5429def31ef6b1b3b3da95", "score": "0.65224373", "text": "public boolean hasTime() {\n return timeBuilder_ != null || time_ != null;\n }", "title": "" }, { "docid": "d6e9d0cd31ea715952fade5f76f47e91", "score": "0.6500188", "text": "boolean hasUpdatedAt();", "title": "" }, { "docid": "f4d0abb5ebafd04f53a0cc7387c83e70", "score": "0.64657766", "text": "public boolean hasTimeReceived() {\n return fieldSetFlags()[1];\n }", "title": "" }, { "docid": "788f9655c3927ee0180d5d4ff9121557", "score": "0.64613134", "text": "public boolean hasCreatedAt() {\n return fieldSetFlags()[4];\n }", "title": "" }, { "docid": "35b637ee60f3875cec8fe5dd4dfa4791", "score": "0.646068", "text": "public boolean hasTime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "333503c1e5696f94c0bb1e1140c9cb4c", "score": "0.64558953", "text": "public boolean isNotNullCreatedTime() {\n return genClient.cacheValueIsNotNull(CacheKey.createdTime);\n }", "title": "" }, { "docid": "64f7a9f4c2ea181437b3b45b82929c7f", "score": "0.64537483", "text": "public boolean isSetTriggerDeltaTime() {\n return EncodingUtils.testBit(__isset_bitfield, __TRIGGERDELTATIME_ISSET_ID);\n }", "title": "" }, { "docid": "2925a4ef1180447e30fc3edb6ffd19d2", "score": "0.6450312", "text": "public boolean hasExpirationTs() {\n return fieldSetFlags()[4];\n }", "title": "" }, { "docid": "da2926b807cb953d7c6901dc26a413bc", "score": "0.64465815", "text": "public boolean isSignatureTimestamp() {\n return signatureTimestamp;\n }", "title": "" }, { "docid": "b895b62e9b560e242ce13e2953f0c31c", "score": "0.64182127", "text": "@java.lang.Override\n public boolean hasCreateTime() {\n return createTime_ != null;\n }", "title": "" }, { "docid": "b895b62e9b560e242ce13e2953f0c31c", "score": "0.64182127", "text": "@java.lang.Override\n public boolean hasCreateTime() {\n return createTime_ != null;\n }", "title": "" }, { "docid": "b895b62e9b560e242ce13e2953f0c31c", "score": "0.64182127", "text": "@java.lang.Override\n public boolean hasCreateTime() {\n return createTime_ != null;\n }", "title": "" }, { "docid": "b895b62e9b560e242ce13e2953f0c31c", "score": "0.64182127", "text": "@java.lang.Override\n public boolean hasCreateTime() {\n return createTime_ != null;\n }", "title": "" }, { "docid": "6ca681db56b75ea8fa24320308278dfe", "score": "0.64153284", "text": "public boolean hasTime() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "4aeae6f2d57c2ed4fe07b196dce25034", "score": "0.64019245", "text": "public boolean hasCreateTime() {\n return createTimeBuilder_ != null || createTime_ != null;\n }", "title": "" }, { "docid": "e615dd5a6f09aea0cbecb565fd9e73e4", "score": "0.6385612", "text": "public boolean hasTime() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "fe25c5c4c9828e645fdc4a8920732251", "score": "0.6381229", "text": "boolean hasTimeOffset();", "title": "" }, { "docid": "6956481e8d803abe5530f12ea6cf186d", "score": "0.63810337", "text": "public boolean hasTime() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "ee6e4c1cc28041f1b16e78e7be91e894", "score": "0.6377677", "text": "public boolean hasDtTime() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "418961f6612d5b4b03e323131903824d", "score": "0.6373632", "text": "public boolean isSetCreatedAt() {\n return this.createdAt != null;\n }", "title": "" }, { "docid": "b9e32e7fa0303d169cb3607eb7a429e5", "score": "0.6370342", "text": "public boolean isSetModifyTime() {\n return this.modifyTime != null;\n }", "title": "" } ]
3de399eb2cac7ba4600abe5576270a8e
Noop marker interface used just to enable typesafe component scanning.
[ { "docid": "be1fd5169518229efa1a5207e0651067", "score": "0.0", "text": "public interface WebMvcPackageRef {\n}", "title": "" } ]
[ { "docid": "4f1549a7cee54892101952e322c0f825", "score": "0.6700869", "text": "@Override\n public void PreScanning() {\n //Unused\n }", "title": "" }, { "docid": "08475de2a44eca7674a4219aff5306f3", "score": "0.62017685", "text": "public interface NotReusable {\n}", "title": "" }, { "docid": "8f1284a6b5af0ab37e15f01eba46de34", "score": "0.615194", "text": "interface Blank extends WithProvider {\n }", "title": "" }, { "docid": "c0084d3f09e4917f780f05cdff79eaae", "score": "0.6082576", "text": "@Override\n\tpublic void visit(NotAvailable notAvailable) {\n\t}", "title": "" }, { "docid": "fd66e36a927628c436a6e0efe3a70b82", "score": "0.6056318", "text": "public void doNothing() {\n }", "title": "" }, { "docid": "ff751df3acb6b2f5dde31402230588b6", "score": "0.6053665", "text": "public interface NoParameters {\n}", "title": "" }, { "docid": "0f8505d521f15b380c06fb0ec1ceb910", "score": "0.59119123", "text": "private static void doNothing() {\n\n }", "title": "" }, { "docid": "69b9935f1b0bb4f877acc78df88bec93", "score": "0.58714294", "text": "private TypicalMooLah() {}", "title": "" }, { "docid": "7936a9eb4af73787da9548e57fff5c18", "score": "0.57812214", "text": "@Override\n protected AbstractHandler getScanHandler() {\n return null;\n }", "title": "" }, { "docid": "c8dda050318e0a47a1b414cf4da7e51e", "score": "0.5779022", "text": "private None() {}", "title": "" }, { "docid": "e3db8e2c31461436af5d89ad4b73f4ff", "score": "0.57394964", "text": "@Test\n public void testLoadNonExistingImplementationWithSpecialCL ()\n {\n final Iterable <IHasObjectType> aSL = ServiceLoader.loadInstalled (IHasObjectType.class);\n final Iterator <IHasObjectType> it = aSL.iterator ();\n assertNotNull (it);\n assertFalse (it.hasNext ());\n }", "title": "" }, { "docid": "6ae8f7a539f2a332147f2fc1150117e8", "score": "0.5734774", "text": "interface Blank extends WithApi {\n }", "title": "" }, { "docid": "293f4fd979d127b1d7ba2311866f244a", "score": "0.56806207", "text": "protected Decoration() {\n // no-op\n }", "title": "" }, { "docid": "345d8f3e11436bbb9d55deed0cd4e00f", "score": "0.56460994", "text": "@Override\n\t\tpublic boolean isNoOp() {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "819857ce7fc1db54424a6db996392bc5", "score": "0.5594835", "text": "@Override\n\tprotected Collection<Class<? extends IService>> services() {\n\t\treturn Collections.emptyList();\n\t}", "title": "" }, { "docid": "17a7070850d10c9d2f9b1420d54b58b9", "score": "0.5569899", "text": "@Override\n public void start() {\n // NO-OP\n }", "title": "" }, { "docid": "402e0dd098a74d4d48e634e9c7027eea", "score": "0.5548487", "text": "private MapperFactory()\n {\n // Empty implementation\n }", "title": "" }, { "docid": "f0d212954c780777ceace960b74a1464", "score": "0.55259717", "text": "private AsyncNioFlows() {\n // do nothing\n }", "title": "" }, { "docid": "80684fe38253cb04d336132d71c7e634", "score": "0.55182093", "text": "private DefaultContainerMapper() {\n super();\n }", "title": "" }, { "docid": "38d810243b5b82f0d417aecbb7582d13", "score": "0.55093676", "text": "private Interfaces() {\n\t\tthrow new UnsupportedOperationException(\"constant-container classes may not be instantiated.\");\n\t}", "title": "" }, { "docid": "da620d6a8f64211bbc49524ac88a0144", "score": "0.55086166", "text": "@Override\n public void DeviceNotCompatible() {\n //Unused\n }", "title": "" }, { "docid": "ffd3c18d6aac9ee8d091b0488ece9730", "score": "0.54848486", "text": "@Override\n public void onReady() {\n //Unused\n }", "title": "" }, { "docid": "d413c4b480d2208fb96b70816ac8cc9b", "score": "0.5471992", "text": "@Override\n\tpublic void visit(NotApplicable notApplicable) {\n\t}", "title": "" }, { "docid": "3dc38aac7243b91a0bb9c21b8d055545", "score": "0.54603726", "text": "private GameLauncher() {\n\t\t// Do nothing\n\t}", "title": "" }, { "docid": "31572deb026fe911c681a6fc080ce024", "score": "0.5454701", "text": "public final void nop()\n {\n emitX86(INST_CODE.INST_NOP);\n }", "title": "" }, { "docid": "894c06f0bc22801e5ff332bc76402f90", "score": "0.54522556", "text": "public Dummy() {\n throw new IllegalStateException(\"should not be called\");\n }", "title": "" }, { "docid": "07c375d5befe5457c74d25a445d783ec", "score": "0.5442949", "text": "private MockUsageDemo() {\n\t}", "title": "" }, { "docid": "a2bf7c4524750ceea691da9964e78422", "score": "0.54370457", "text": "@Override\n public void getUsage() {\n }", "title": "" }, { "docid": "4954647f8f618a17979d1b740c2f6957", "score": "0.542505", "text": "void onNothing();", "title": "" }, { "docid": "e58b18580efb996e86a2a2e3852d4b8d", "score": "0.54144526", "text": "private TypicalHomework() {}", "title": "" }, { "docid": "491339dba19031ac1188c837664799ba", "score": "0.54135627", "text": "interface Blank extends WithManagedInstance {\n }", "title": "" }, { "docid": "5e203c0ac7faba9f2fcc1ee2f138ad24", "score": "0.54012966", "text": "@Override\n\tpublic void serviceNotFound(String serviceType, String opName) {\n\t}", "title": "" }, { "docid": "0d2ddec10797b902a36eeb5f7c3419b0", "score": "0.539504", "text": "interface Blank extends WithVirtualWan {\n }", "title": "" }, { "docid": "850030e9189f4d079d4fda0b8e4ce787", "score": "0.5392703", "text": "private static void usage(){ usage(null); }", "title": "" }, { "docid": "387fafd25ee111072a8f8ae70b80bc68", "score": "0.5386186", "text": "@SuppressWarnings(\"unused\")\n\tprivate ParkingSpot() {\n\t}", "title": "" }, { "docid": "ca511335f1e6b25ba1737ca7f63fa42e", "score": "0.5381688", "text": "@Override\n\tpublic void ensureWildcardIndexing(IndexingService service) {\n\t}", "title": "" }, { "docid": "cf106c4357acca188056c470b50f748c", "score": "0.5380054", "text": "private Singletone() {}", "title": "" }, { "docid": "9129cb9efe5fe6760b34bcd3cd6b2755", "score": "0.5371763", "text": "private MissingTemplate() {\n // Default constructor\n }", "title": "" }, { "docid": "957f8f7f2db75bb63fa105fddfa099b1", "score": "0.53711814", "text": "static interface Compiled extends TypeWriter.FieldPool {\n\n /**\n * A no-op field registry that does not register annotations for any field.\n */\n static enum NoOp implements Compiled {\n\n /**\n * The singleton instance.\n */\n INSTANCE;\n\n @Override\n public Entry target(FieldDescription fieldDescription) {\n return Entry.NoOp.INSTANCE;\n }\n }\n }", "title": "" }, { "docid": "1d4bb2973596ce3df962d8b5386060fc", "score": "0.53539324", "text": "private DefaultSource ()\n {\n _log.error ( \"Default constructor not allowed\" );\n\n throw new UnsupportedOperationException ();\n }", "title": "" }, { "docid": "d63156acdd6d5c0ec466d59bd1ad902b", "score": "0.53533345", "text": "@Test\n public void testLoadNonExistingImplementation ()\n {\n final Iterable <IHasObjectType> aSL = ServiceLoader.load (IHasObjectType.class);\n final Iterator <IHasObjectType> it = aSL.iterator ();\n assertNotNull (it);\n assertTrue (it.hasNext ());\n try\n {\n it.next ();\n fail ();\n }\n catch (final ServiceConfigurationError ex)\n {}\n }", "title": "" }, { "docid": "964924a9aa24e0686d7d6276ace23f43", "score": "0.53503126", "text": "interface Blank extends WithLocation {\n }", "title": "" }, { "docid": "964924a9aa24e0686d7d6276ace23f43", "score": "0.53503126", "text": "interface Blank extends WithLocation {\n }", "title": "" }, { "docid": "964924a9aa24e0686d7d6276ace23f43", "score": "0.53503126", "text": "interface Blank extends WithLocation {\n }", "title": "" }, { "docid": "964924a9aa24e0686d7d6276ace23f43", "score": "0.53503126", "text": "interface Blank extends WithLocation {\n }", "title": "" }, { "docid": "40350cf77e872f3e0ea368de88b1412e", "score": "0.53477603", "text": "@Override\n public void onErrorScanning() {\n //Unused\n }", "title": "" }, { "docid": "0ea6b6806104c057fa69f753d4380aa4", "score": "0.5347174", "text": "public void testNothing() {\n }", "title": "" }, { "docid": "7bd6879a05373d3349e5d58b98af03ba", "score": "0.5346477", "text": "public void forIRNoOp(IRNoOp that);", "title": "" }, { "docid": "e34168911a88a801d8808fd3516d0d3d", "score": "0.53366375", "text": "@Override\r\n public void beSneaky() {\n\r\n }", "title": "" }, { "docid": "2ed0ded256482e7173c45c5a7f8e1e7f", "score": "0.5336248", "text": "private NetWorkManager() {\n\t\t// no instances\n\t}", "title": "" }, { "docid": "3515c74de3b79f21e004fa398408975a", "score": "0.53305", "text": "public static void notImplemented() {\n System.out.format(\"NOT IMPLEMENTED: %s::%s\\n\",\n Thread.currentThread().getStackTrace()[2].getClassName(),\n Thread.currentThread().getStackTrace()[2].getMethodName());\n }", "title": "" }, { "docid": "9e9854ad423a9a786cf843842fca4be1", "score": "0.5316329", "text": "@Override\n public void disabledInit() {\n }", "title": "" }, { "docid": "ca95f06b77f99a4a42fe7a41599db4e1", "score": "0.5315414", "text": "protected NullDataManager(){\n\t\t//Dummy Constructor for child implementation\n\t}", "title": "" }, { "docid": "b0c5dce16a5c48850b96a8500924a74a", "score": "0.5310031", "text": "public MockServiceRegistration() {\r\n\t\tthis(null);\r\n\t}", "title": "" }, { "docid": "812bb505b4805b47db95f234624b75c4", "score": "0.53055066", "text": "@Override\n\tpublic Map<Class<? extends IFloodlightService>, IFloodlightService> \n\t\t\tgetServiceImpls() \n\t{ return null; }", "title": "" }, { "docid": "1ab8f80f4bed08d58d21d8611d12feba", "score": "0.5302968", "text": "private XPontusComponentsUtils() {\n }", "title": "" }, { "docid": "0f08e9d2da1643b0c1d1feab6e0ebe66", "score": "0.5300692", "text": "private DefaultType() {\n throw new UnsupportedOperationException(\n \"This class should never be instantiated.\"\n );\n }", "title": "" }, { "docid": "a15a98391bedcb54472a497902f9cb43", "score": "0.52952677", "text": "@SuppressWarnings(\"unused\")\n private ImportanceTest() {\n }", "title": "" }, { "docid": "c11e24d5d3d1a6b97f76bd1ed6ed5fe4", "score": "0.52826697", "text": "private AnnotationUseSpecificationListener() {}", "title": "" }, { "docid": "abb6c5f0fed46ad70af67cef51a32500", "score": "0.5273334", "text": "public DummyAnnotationProcessor() {\n this(1);\n }", "title": "" }, { "docid": "5c3720ada0ea6a6d8e1402c6b8754696", "score": "0.52713174", "text": "private DeviceHelper() {\n }", "title": "" }, { "docid": "4e8ecf1493223cc5dcacd14d7f2e916b", "score": "0.52635366", "text": "protected Service() {}", "title": "" }, { "docid": "d3d0415d338945f318170d72b429f816", "score": "0.52633077", "text": "public static void init() {\n // no operation\n }", "title": "" }, { "docid": "e381a4e35d6a67daba4988a092687a64", "score": "0.5259626", "text": "private AcceleoServicesEclipseUtil() {\n \t\t// hides constructor\n \t}", "title": "" }, { "docid": "b0e5807790504dfd05072bc58c330a50", "score": "0.52516764", "text": "public interface NoSoundComponent {\n}", "title": "" }, { "docid": "e9b7000678ade09b4f70b7e2afc14c3a", "score": "0.52491844", "text": "@Override\n public Object locateService(String name) {\n return null;\n }", "title": "" }, { "docid": "addd9d3260bd4a25c57688e0f0ec24f8", "score": "0.52477115", "text": "private FillService() {}", "title": "" }, { "docid": "79d21b7443bac4672e036747b895f438", "score": "0.5238783", "text": "protected abstract T emptyCandidate();", "title": "" }, { "docid": "b2c01e9e96932d26d4a340146e5a1055", "score": "0.52367187", "text": "@Test\n public void testDoNothing() {\n // Do nothing.\n }", "title": "" }, { "docid": "6e9361c1b5f2af039c155f6d72da5c1b", "score": "0.52355987", "text": "@Deprecated\npublic interface ICarFactoryService extends IService<CarFactory>{\n\n}", "title": "" }, { "docid": "1695ac01e8e637d094cfec0d3219f3fe", "score": "0.5234759", "text": "private InternalUtilities() {\n }", "title": "" }, { "docid": "71f9cb0f9773965735f9ad19cf8c189f", "score": "0.5234068", "text": "public abstract void clearUnused();", "title": "" }, { "docid": "fe93e6a5d02fe10a0d13210261bbfd7f", "score": "0.5220758", "text": "public void start()\n {\n // No-op\n }", "title": "" }, { "docid": "cb6aafbeab9f1210ed68fc724e976750", "score": "0.5217926", "text": "private EmptyIterator() { /* Nothing to do. */ }", "title": "" }, { "docid": "e1e775c65b4441ae0ac0ed4ee74f1848", "score": "0.5217905", "text": "Component() {\n\t}", "title": "" }, { "docid": "37c8ecc4844ab9615fa7f7d67833bd18", "score": "0.521097", "text": "@Test\n public void testNoop() throws Exception {\n mPreparer.setUp(mTestInfo);\n }", "title": "" }, { "docid": "423d10b9d9c82416a704571eb1ac0f31", "score": "0.52089393", "text": "private DriverFactory() {\n\t}", "title": "" }, { "docid": "bfe733c6827d97a89cc5d62c0ee89fb6", "score": "0.5208505", "text": "@Override\n public Object method() {\n return null;\n }", "title": "" }, { "docid": "0d530620f70b8fb2b012d4136f91e36b", "score": "0.5207527", "text": "private ApplicationConstant() {\n\t\t// Do nothing.\n\t}", "title": "" }, { "docid": "d8bb982c22718485976c7b5fa4038017", "score": "0.5205543", "text": "@Override\r\n\tpublic void accept(CodeModelNoParamVisitor visitor) {\n\t\tvisitor.visit(this);\r\n\t}", "title": "" }, { "docid": "d7961702fda42c06b0058bb83207fcc1", "score": "0.5204424", "text": "@Singleton\n@Component(modules = {AppModule.class})\npublic interface AppComponent extends AndroidGraph {\n final class Initializer{\n private Initializer(){\n // No instances.\n }\n\n //初始化组件\n public static AppComponent init(AndroidApplication app){\n return DaggerAppComponent.builder()\n .appModule(new AppModule(app))\n .build();\n }\n }\n\n}", "title": "" }, { "docid": "37479d6ea5153b45b8e703d1a1a0d9a0", "score": "0.5196529", "text": "private BlueImplementor() {}", "title": "" }, { "docid": "28ef1808b3b28c5faab1fa9ce2af1dc3", "score": "0.519069", "text": "public interface ISync {\n void sync(int fps);\n \n class EmptySync implements ISync {\n @Override\n public void sync(int fps) {\n\n }\n }\n\n}", "title": "" }, { "docid": "d0a7a75db755ba737ccb533294c03f58", "score": "0.5190081", "text": "private Errors() {\n\t\t// can't instantiate\n\t}", "title": "" }, { "docid": "f3a2fe6cc78e28e26c0488b8df3e8591", "score": "0.51871514", "text": "@Override\n\tpublic boolean shouldBeUsed() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "aa66cde4474e1813b3ef3f24de825936", "score": "0.51866794", "text": "protected ServiceProvider() {\n }", "title": "" }, { "docid": "8d27c2d8d2f51e7f291490c2374babb8", "score": "0.51840645", "text": "private static Component createEmptyLabel() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3632b7b0b5dbf2cec61e528582ca0a3a", "score": "0.51823103", "text": "@Override\n\tprotected boolean allowsUnusedParameters() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2e4fee9e5828ea7bad961eb3000487f7", "score": "0.5181671", "text": "@Override\n public void disabledInit() {\n }", "title": "" }, { "docid": "256fc4b4d30d39f3a2754bb5311e4a50", "score": "0.5180473", "text": "public interface NoParameterTask<RESULT>\n extends ActionTask<Void, RESULT>\n{\n /**\n * Do the action\n *\n * @return Action result\n */\n public RESULT doAction();\n\n /**\n * Do the action <br>\n * <br>\n * <b>Parent documentation:</b><br>\n * {@inheritDoc}\n *\n * @param parameter\n * Unused\n * @return Action result\n * @see jhelp.util.thread.ActionTask#doAction(java.lang.Object)\n */\n @Override\n public default RESULT doAction(final Void parameter)\n {\n return this.doAction();\n }\n}", "title": "" }, { "docid": "1b36a25c7a2c07ddb5cbe09b67ba0490", "score": "0.5172177", "text": "private DeviceClass() {}", "title": "" }, { "docid": "35576b942077660bdc8d97081aa42bf9", "score": "0.51697534", "text": "@Override\n public void disabledInit() {\n\n }", "title": "" }, { "docid": "35576b942077660bdc8d97081aa42bf9", "score": "0.51697534", "text": "@Override\n public void disabledInit() {\n\n }", "title": "" }, { "docid": "6ff9b75191264a9eb59a023a5f55b717", "score": "0.5157797", "text": "private ProcessorUtils() {\n }", "title": "" }, { "docid": "b6ab815b434ba8757485f968304086dc", "score": "0.5156318", "text": "@Override\n\t\t\tpublic void onNonePaired() {}", "title": "" }, { "docid": "6b7355e4221c9d75df7cd531b74901dd", "score": "0.5155226", "text": "private TestHelper() {\r\n // empty\r\n }", "title": "" }, { "docid": "3bdcc22f10bf9c74b69335bd951e6c17", "score": "0.51551473", "text": "@Override\r\n\tprotected IRatingService getMockService() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f32796edfc4acd3f95a177ff3f894faa", "score": "0.5153979", "text": "public void disabledInit(){\n }", "title": "" }, { "docid": "f32796edfc4acd3f95a177ff3f894faa", "score": "0.5153979", "text": "public void disabledInit(){\n }", "title": "" }, { "docid": "073fc49cd89ba3ffaeae1de1f31fb94b", "score": "0.515337", "text": "@Test\n public void when_noopConsumer() {\n ConsumerEx.noop().accept(1);\n }", "title": "" }, { "docid": "0c4bcb1fcdcd33f4a922672c90ee13cb", "score": "0.51523316", "text": "private Tools()\n\t\t\t{\n\t\t\t}", "title": "" } ]
b171d7ddf6afb22dad30fcdfc78e4039
llamar a activity operaciones
[ { "docid": "7a03ee4328f43fc23ca0864809a823ad", "score": "0.0", "text": "public void Siguiente2(View view){\n Intent siguiente2=new Intent(this, operaciones .class ) ;\n startActivity(siguiente2);\n }", "title": "" } ]
[ { "docid": "d821e4e9477d9746b080ff875f33ddaf", "score": "0.6068743", "text": "public Actividades () {\n this.nomeAt = \"\";\n this.codCache = \"\";\n this.descricao = \"\";\n this.meteo = new Meteorologia();\n this.objRetirado = \"\";\n this.objColocado = \"\";\n this.data = new GregorianCalendar();\n this.dificuldade = 0;\n }", "title": "" }, { "docid": "718951984c4c1742aec6c3afe92f2565", "score": "0.60189", "text": "public void act_stats(){\n\t\t// Calcula tempo que passou desde o ultimo evento\n\t\tdouble temp_desde_ult = s.getInstante() - temp_ult;\n\t\t// Actualiza variavel para o proximo passo/evento\n\t\ttemp_ult = s.getInstante();\n\t\t// Contabiliza tempo de espera na fila\n\t\t// para todos os clientes que estiveram na fila durante o intervalo\n\t\tsoma_temp_esp += fila.size() * temp_desde_ult;\n\t\t// Contabiliza tempo de atendimento\n\t\tsoma_temp_serv += estado * temp_desde_ult;\n\t}", "title": "" }, { "docid": "90c69be32f917d86ff853e70d0c7fee6", "score": "0.6014504", "text": "public casoDeUsoActividades(Activity activity) {\n this.activity = activity;\n }", "title": "" }, { "docid": "4ca772fc4ed568e6fedea9d8e52a6cb7", "score": "0.5836382", "text": "private void llamaDatosTiendaActivity() {\n Intent intent = new Intent(EleccionTiendaVendedorActivity.this, DatosTiendaActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "9ffa27a04d9bc31d96e583630104d8d8", "score": "0.5766591", "text": "@Override\n public void onClick(View v) {\n\n mCronometru.stop();\n\n\n statistics = new Statistics();\n\n Intent intent = new Intent(Controller.this, Statistics.class);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "98c9cd802b117ce40b9c09ddac7f319f", "score": "0.5694552", "text": "public void ClickStatistics(View vi)\n {\n //Si no hay conexion a BDS (-1) no abrir estadisticas\n if(idusuario != -1)\n {\n Intent inte = new Intent(this, MenuStatistics.class);\n //Mandar id de usuario actual a actividad del MenuStatistics\n inte.putExtra(\"IDUSR\",idusuario);\n startActivity(inte);\n finish();\n\n }//Fin if 1\n\n }", "title": "" }, { "docid": "d0b695e27a3342ecd47075cc1f41f634", "score": "0.5648276", "text": "@Override\n public void onClick(View v) {\n if (thread.getEstado() == 1) {\n thread.setEstado(0);\n tarea.cancel(true);\n bParar.setImageResource(R.drawable.play);\n } else {\n bParar.setImageResource(R.drawable.pause);\n thread.setEstado(1);\n tarea = new CargarXmlTask();\n //this.coord=coord;\n tarea.execute(\"http://tot.fdi.ucm.es/parable/mapa.xml\");\n //caminoAuxiliar=aux;\n }\n\n }", "title": "" }, { "docid": "b77c6acb743cb67973a98e1e5ad0d951", "score": "0.56390667", "text": "public void activar(){\n if(robot.getOrden() == true){\n System.out.println(\"Continuare con lo que estaba haciendo antes de que me suspendieras\");\n System.out.println(\"Empezare a Reabastecerme\");\n robot.asignarNuevoEstado(robot.getEstadoReabastecerse());\n } else if(robot.getTrabajo() == true){\n System.out.println(\"Continuare con lo que estaba haciendo antes de que me suspendieras\");\n System.out.println(\"Empexare a trabajar\");\n robot.asignarNuevoEstado(robot.getEstadoTrabajar());\n } else{\n System.out.println(\"El robot se activara.\");\n System.out.println(\"Bienvenido a mi hogarcito.\");\n robot.asignarNuevoEstado(robot.getEstadoRecibirOrden());\n }\n }", "title": "" }, { "docid": "9989a5bc918d6c1035a884a4c4386ee6", "score": "0.56383324", "text": "public static String _activity_create(boolean _firsttime) throws Exception{\nmostCurrent._activity.LoadLayout(\"VisualizarSecuencia\",mostCurrent.activityBA);\n //BA.debugLineNum = 72;BA.debugLine=\"DibujarTablero\";\n_vvvvvvvvvvvvv0();\n //BA.debugLineNum = 73;BA.debugLine=\"Temporizador.Initialize(\\\"Temporizador\\\",500)\";\n_v5.Initialize(processBA,\"Temporizador\",(long) (500));\n //BA.debugLineNum = 74;BA.debugLine=\"Temporizador.Enabled=True\";\n_v5.setEnabled(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 76;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "0843cbc1b2b84d38e2d1a7686e77dea3", "score": "0.5622556", "text": "public void executeIfActivity( );", "title": "" }, { "docid": "524decca47134b70504d859056cd0851", "score": "0.560819", "text": "public void onClickAtualizarMonitoria(View view){\n Intent intent = new Intent(this, CriarMonitoriaActivity.class);\n intent.setAction(\"br.ufc.engsoftware.tasabido.CRIAR_MONITORIA\");\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.putExtra(\"TITULO\", titulo);\n intent.putExtra(\"DESCRICAO\", descricao);\n intent.putExtra(\"ID\", id_materia);\n intent.putExtra(\"ID_MONITORIA\", id_monitoria);\n startActivity(intent);\n }", "title": "" }, { "docid": "121c86ae2c1a56c1038e6d276ddf157d", "score": "0.558523", "text": "@Override\r\n\tpublic List<Activity> consultActivities() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "b01ff099cb67cb7087cbbc6a4fce0a15", "score": "0.5576225", "text": "public void mostrarVentanaLlamada(String nombre, String mensaje, String Telf, Boolean paciente, String hora,String medico,String fecha,String usuario){\n \tgetInformacionAgente();\n \tDatosLlamada datos= new DatosLlamada(nombre, mensaje, Telf, paciente, hora,medico,fecha,usuario);\n \ttry {\n if (itfUsoRepositorioInterfaces == null) {\n itfUsoRepositorioInterfaces = ClaseGeneradoraRepositorioInterfaces.instance();\n }\n\n if (tipoAgenteSecretaria.equals(NombresPredefinidos.TIPO_REACTIVO)) {\n //AgenteAplicacionSecretaria\n ItfUsoAgenteReactivo itfUsoAgente = (ItfUsoAgenteReactivo) itfUsoRepositorioInterfaces.obtenerInterfaz(NombresPredefinidos.ITF_USO + nombreAgenteSecretaria);\n if (itfUsoAgente != null) {\n itfUsoAgente.aceptaEvento(new EventoRecAgte(\"anadirLlamada\", datos, \"VisualizacionSecretaria1\", nombreAgenteSecretaria));\n \n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Ha habido un error al a˝adir llamada \");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7d3e4a0058a0fdb4949f7299f53f84e1", "score": "0.5570512", "text": "Collection<Estado> aplicarOperadores();", "title": "" }, { "docid": "e4f5b918d74ac843539e83150ea4a3a5", "score": "0.554137", "text": "public void recuperarse(){\n if (this.estado == Estado.Asintomatico || this.estado == Estado.Leve){\n if (this.tiempoInfec > 1500){\n this.setCuarentena(false);\n this.setSano(true);\n this.setInmune(true);\n this.setInternacion(null);\n } else {\n this.tiempoInfec++;\n }\n } else {\n if (this.estado == Estado.Moderado){\n if (this.tiempoInfec > 2000){\n this.setCuarentena(false);\n this.setSano(true);\n this.setInmune(true);\n this.setInternacion(null);\n } else {\n this.tiempoInfec++;\n }\n } else {\n if (this.tiempoInfec > 3000){\n this.setCuarentena(false);\n this.setSano(true);\n this.setInmune(true);\n this.setInternacion(null);\n } else {\n this.tiempoInfec++;\n }\n }\n }\n }", "title": "" }, { "docid": "aedf00ece87114e316f06e4d73267f54", "score": "0.55404764", "text": "protected void criarEventos() {//confirmar essa parada de private e protected ?? 14/08/2019\n try {\n\n\n //botão horario\n btnDashBoard.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // finish();//teste\n Intent intentRedirecionaTela;\n intentRedirecionaTela = new Intent(getApplicationContext(), List.class);//mudar aki 27/09/2019\n startActivity(intentRedirecionaTela);\n }\n });\n\n\n //botão sobre\n btnSobre.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // finish();//teste\n Intent intentRedirecionaTela;\n intentRedirecionaTela = new Intent(getApplicationContext(), Sobre.class);\n startActivity(intentRedirecionaTela);\n }\n });\n\n btnLogout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n alertLogout();//05/09/2019 crie metodo separado para confirma logout e redirecionamento\n\n }\n });\n\n\n } catch (Exception ex) {\n Toast.makeText(this, ex.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }", "title": "" }, { "docid": "6a82af56b017cdd62294a62043d3eb8b", "score": "0.5537752", "text": "@Override\n\tpublic void mostrarEstudiantes() {\n\t\t\n\t}", "title": "" }, { "docid": "1d0c21b1a3a445934b128eaca3181510", "score": "0.5518659", "text": "void activar(Pista pista);", "title": "" }, { "docid": "1aa9176e18435773fa225c32f3d58e02", "score": "0.55124927", "text": "@Override\r\n\tpublic void processActivar() {\n\r\n\t}", "title": "" }, { "docid": "63dc1fd6aa387b638dd5f558e1a540a9", "score": "0.55100393", "text": "public interface ActivityService {\n /**\n * 从客户端接收参数,并根据参数创建待审核活动\n * @param req servlet请求\n * @param res servlet响应\n * @return\n */\n public Activity generatorActivity(HttpServletRequest req);\n \n /**\n * 查询可以修改的活动\n * @return\n */\n\tpublic List<Activity> queryCanModify();\n /**\n * 查看活动详情\n * @param req\tservlet请求\n * @return\n */\n\tpublic Activity queryActivityDetail(HttpServletRequest req);\n /**\n * 修改活动\n * @param req\n * @return\n */\n public Activity modifyActivity(HttpServletRequest req);\n /**\n * 根据条件查询活动\n * @param req\n * @return\n */\n public List<Activity> queryActivity(HttpServletRequest req);\n /**\n * 查询待审核活动\n * @return\n */\n public List<Activity> queryNeedCheck();\n /**\n * 审核活动\n * @param req\n * @return\n */\n public Activity checkActivity(HttpServletRequest req);\n /**\n * 查询可以复制的活动(审核通过未开始,进行中,结束)\n * @return\n */\n public List<Activity> queryCanCopy();\n /**\n * 复制活动\n * @param req\n * @return\n */\n public Activity copyActivity(HttpServletRequest req);\n /**\n * 通过活动编号和活动批次号查询活动\n * @param req\n * @return\n */\n public Activity queryActivityByIdAndBatchNo(HttpServletRequest req);\n \n}", "title": "" }, { "docid": "93bb0eb2fdebd6d5fc253f3ef55ed055", "score": "0.5499033", "text": "public interface Activity {\n\t\n\t/**\n\t * Retorna o nome da actividade.\n\t * @return name\n\t */\n\tpublic String getName();\n\t\n\t/**\n\t * Retorna a morada da actividade.\n\t * @return address\n\t */\n\tpublic String getAddress();\n\t\n\t/**\n\t * Retorna a descricao da actividade.\n\t * @return description\n\t */\n\tpublic String getDescription();\n\t\n\t/**\n\t * Retorna o numero de estrelas do Hotel.\n\t * @return classification\n\t */\n\tpublic int getClassification();\n\t\n\t/**\n\t * Retorna o preco medio por noite de um Hotel.\n\t * @return price\n\t */\n\tpublic int getPrice();\n\t\n\t/**\n\t * Retorna o tipo de um Restaurante.\n\t * @return type\n\t */\n\tpublic String getType();\n\t\n\t/**\n\t * Retorna a classificacao do Restaurante.\n\t * @return classificationPrice\n\t */\n\tpublic String getClassificationPrice();\n\t\n\t/**\n\t * Adiciona uma review 'a actividade.\n\t * @param user - utilizador que submeteu a review\n\t * @param classification - classificacao geral\n\t * @param comment - comentario sobre a actividade\n\t * @param service - qualidade do servico ou da comida\n\t * @param location - qualidade da localizacao ou ambiente\n\t */\n\tpublic void addReview(String user, int classification, String comment, int service, int location);\n\t\n\t/**\n\t * Retorna a lista de reviews dos restaurantes.\n\t * @return Iterador\n\t */\n\tpublic Iterator<ReviewRestaurantClass> listReviewsR();\n\t\n\t/**\n\t * Retorna a lista de reviews dos hoteis.\n\t * @return Iterador\n\t */\n\tpublic Iterator<ReviewHotelClass> listReviewsH();\n\t\n\t/**\n\t * Procura a review e acrescenta-lhe um like.\n\t * @param name - nome do utilizador que fez a review\n\t * @return True - a review existe, False - a review nao existe\n\t */\n\tpublic boolean likereview(String name);\n\t\n\t/**\n\t * Conta o numero de reviews da actividade.\n\t * @return numero de reviews\n\t */\n\tpublic int getNrReviews();\n\t\n\t/**\n\t * Retorna o nome do utilizador que acrescentou a actividade.\n\t * @return author\n\t */\n\tpublic String getAuthor();\n\t\n\t/**\n\t * Conta o numero de reviews de uma certa classificacao.\n\t * @pre getNrReviews()>0\n\t * @param classification de 1 a 5\n\t * @return contagem\n\t */\n\tpublic int countReviews(int classification);\n\t\n\t/**\n\t * Media das reviews.\n\t * @pre getNrReviews()>0\n\t * @param type - servico/comida ou localizacao/ambiente\n\t * @return media\n\t */\n\tpublic int reviewAverage(int type);\n\t\n\t/**\n\t * Procura uma review e retorna o numero de likes.\n\t * @pre getNrReviews()>0\n\t * @param user - autor da review\n\t * @return numero de likes\n\t */\n\tpublic int getLikes(String user);\n}", "title": "" }, { "docid": "f5c5b3268e3206349cb2d3c3b687cfc4", "score": "0.5495239", "text": "public ActivityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "52aa0f1da561e42c70aa9370303a5a9c", "score": "0.54836094", "text": "public void aceptado(){\n estado = EstadoProyecto.ACEPTADO;\n\n String notificacion = \"El estado del proyecto '\" + titulo + \"' a pasado a aceptado\";\n\n this.notificar(notificacion);\n }", "title": "" }, { "docid": "45f737332aee696c00a51222314bc2e1", "score": "0.5482581", "text": "@Override\n public void onClick(View v) {\n empezado = true;\n\n //Evitar que la pantalla se apague\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n\n //Controlamos si el boton ya se a pulsado o no\n //Empieza ruta\n if (!guardar) {\n\n //Intenta lanzar el hilo del cronometro si no esta lanzado ya\n try {\n // new Cronometro().execute().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n } catch (Exception e) {\n\n }\n\n //Sonido boton\n mpInicia.start();\n\n //Ponemos boton en no pulsado\n guardar = true;\n //Cambia texto boton a pausa\n inicia.setText(R.string.pausa);\n\n //Avisamos al usuario que comenzo a guardarse la ruta mediante un Toast\n Toast aviso = Toast.makeText(getBaseContext(), R.string.Toast_comienza_guardado_ruta, Toast.LENGTH_SHORT);\n aviso.setGravity(Gravity.CENTER, 0, 0);\n aviso.show();\n\n //PAUSA en ruta\n } else {\n\n //Sonido boton\n mpApaga.start();\n\n //Cambia texto boton a Reanudar ruta\n inicia.setText(R.string.reanudar_ruta);\n //Ponemos el boton en pulsado\n guardar = false;\n\n //Avisamos al usuario que el guardado esta en pause mediante un Toast\n Toast toast = Toast.makeText(getBaseContext(), R.string.Toast_pausa_guardado_ruta, Toast.LENGTH_SHORT);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n\n }\n\n }", "title": "" }, { "docid": "178ef92736131263af46ec743c511f0a", "score": "0.54787755", "text": "public void onMaj() {\n if (op.getIncrement() < op.getBorneSup()) {\n int increment = op.getIncrement();\n //affichage du calcul sur la vue\n calcul.setText(String.valueOf(op.getOperande1(increment)) + \" \" + op.getOp(increment) + \" \" + String.valueOf(op.getOperande2(increment)));\n\n nbQ.setText(\"question : \" + String.valueOf((increment+1)));\n\n //cas ou l'utilisateur clique sur le bouton vrai\n Button btnVrai = findViewById(R.id.btnVrai);\n btnVrai.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //stockage de la réponse utilisateur\n op.setRepUser(increment, true);\n op.setIncrement();\n onMaj(); //boucle sur la même fonction\n }\n });\n //cas ou l'utilisateur clique sur le bouton faux\n Button btnFaux = findViewById(R.id.btnFaux);\n btnFaux.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //stockage de la réponse utilisateur\n op.setRepUser(increment, false);\n op.setIncrement();\n onMaj(); //boucle sur la même fonction\n }\n });\n } else {\n int resu = op.getAllResult();\n\n // Récupération du DatabaseClient\n DatabaseClient mDb = DatabaseClient.getInstance(getApplicationContext());\n\n //faire une AsyncTask\n // Classe asynchrone permettant de récupérer des taches et de mettre à jour le listView de l'activité\n class UpdateCompte extends AsyncTask<Void, Void, Compte> {\n @Override\n protected Compte doInBackground(Void... voids) {\n //recuperation du compte courant\n Compte profile = mDb.getAppDatabase().compteDao().findByName(prenom, nom);\n\n // variable du résultat de calcul\n int resultat;\n\n if (profile.getComparaison() == -1) {\n // pour la première fois ou l'utilisateur enregistre des données\n resultat = (12 - resu) * 20 / 12;\n } else {\n // calcul nouvelle moyenne en fonction du résultat de l'utilisateur\n resultat = (profile.getComparaison() + (12 - resu) * 20 / 12) / 2;\n }\n\n //mise à jour du compte\n profile.setComparaison(resultat);\n mDb.getAppDatabase().compteDao().update(profile);\n return profile;\n }\n\n @Override\n protected void onPostExecute(Compte profile) {\n super.onPostExecute(profile);\n }\n }\n\n // IMPORTANT bien penser à executer la demande asynchrone\n // Création d'un objet de type UpdateCompte et execution de la demande asynchrone uniquement si l'utilisateur n'est pas en anonyme\n if (!prenom.equals(\"anonyme\") && !nom.equals(\"anonyme\")) {\n UpdateCompte gc = new UpdateCompte();\n gc.execute();\n }\n\n //affichage de la vue résultat\n Intent intent = new Intent(this, resultatActivity.class);\n intent.putExtra(resultatActivity.REPONSE, String.valueOf(resu));\n intent.putExtra(resultatActivity.PRENOM_KEY, prenom);\n intent.putExtra(resultatActivity.NOM_KEY, nom);\n intent.putExtra(resultatActivity.TYPE_KEY, \"=\");\n intent.putExtra(resultatActivity.BORNE, String.valueOf(\"12\"));\n startActivity(intent);\n }\n }", "title": "" }, { "docid": "9350395cf5e9fa39f95006d1c55105df", "score": "0.54745466", "text": "public void agregar(Actividad actividad) \r\n\t{\r\n\t\tActividad nuevo= actividad;\r\n\t\t\r\n\t\tif (longitud == 0) \r\n\t\t{\r\n\t\t\tprimero = nuevo;\r\n\t\t} \r\n\t\telse \r\n\t\t{\r\n\t\t\tultimo.conectar(nuevo, 0);\r\n\t\t\tnuevo.conectar(ultimo, 1);\r\n\t\t}\r\n\t\tactual = nuevo;\r\n\t\tultimo = nuevo;\r\n\t\tlongitud++;\r\n\t}", "title": "" }, { "docid": "c28bce13ccb1a08f5cb7dccc29c038c7", "score": "0.5467568", "text": "public void atrasarEmisora();", "title": "" }, { "docid": "2348362a0e86b34f0dc3a273d90af1fc", "score": "0.5461748", "text": "public void mostrarVentanaExtra(String nombre, String mensaje, String Telf, Boolean paciente, String hora,String medico,String fecha,String usuario){\n \tgetInformacionAgente();\n \tDatosLlamada datos= new DatosLlamada(nombre, mensaje, Telf, paciente, hora,medico,fecha,usuario);\n \ttry {\n if (itfUsoRepositorioInterfaces == null) {\n itfUsoRepositorioInterfaces = ClaseGeneradoraRepositorioInterfaces.instance();\n }\n\n if (tipoAgenteSecretaria.equals(NombresPredefinidos.TIPO_REACTIVO)) {\n //AgenteAplicacionSecretaria\n ItfUsoAgenteReactivo itfUsoAgente = (ItfUsoAgenteReactivo) itfUsoRepositorioInterfaces.obtenerInterfaz(NombresPredefinidos.ITF_USO + nombreAgenteSecretaria);\n if (itfUsoAgente != null) {\n itfUsoAgente.aceptaEvento(new EventoRecAgte(\"anadirExtra\", datos, \"VisualizacionSecretaria1\", nombreAgenteSecretaria));\n \n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Ha habido un error al enviar el extra \");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "300c202e302ca8f0822b9de089a3fcdc", "score": "0.54529023", "text": "private void mostrarInfoSucursal(String nombre){\n \tIntent intent = new Intent();\n \tintent.setComponent(new ComponentName(this, Ubicanos.class));\n \tintent.putExtra(nomSucursal, nombre);\n \tintent.putExtra(\"modo\" , \"verSucursal\");\n \tintent.putExtra(nomSucursal, nombre);\n \tstartActivity(intent);\n }", "title": "" }, { "docid": "64673188c0037bb0b89e694f13713d5d", "score": "0.54451877", "text": "public GestorControladorOpAvisCont(){}", "title": "" }, { "docid": "5fa36d6f574c9e47d25ee4b05e4ff081", "score": "0.5445121", "text": "private void getIntentDataFromActivity() {\n\n Intent intent=getIntent();\n boolean isActivity=intent.getBooleanExtra(\"activity\",false);\n\n if(isActivity){\n arrayList_criminal= (ArrayList<CriminalModel>) intent.getSerializableExtra(\"arraylist_criminal_activity\");\n arrayList_crime= (ArrayList<CrimeModel>) intent.getSerializableExtra(\"arraylist_crime_activity\");\n arrayList_po= (ArrayList<POModel>) intent.getSerializableExtra(\"arraylist_po_activity\");\n arrayList_force= (ArrayList<forceModel>) intent.getSerializableExtra(\"arraylist_force_activity\");\n }\n }", "title": "" }, { "docid": "9bd9ffe47adedb450ea88998fff124dc", "score": "0.5437693", "text": "public void obtenerTodasActividades() {\n visibilidad(View.VISIBLE);\n\n JsonFiltroVendedorAsignado jsonfiltro = new JsonFiltroVendedorAsignado();\n\n jsonfiltro.setIdVendedorAsignado(prefs.getString(Valores.SHARED_PREFERENCES_ID_VENDEDOR, \"\"));\n\n Call<List<JsonMostrarActividades>> jsonMostrarActividadesTodoCall = apiInterface.getActividadesTodo(jsonfiltro);\n\n String json = new Gson().toJson(jsonfiltro);\n\n jsonMostrarActividadesTodoCall.enqueue(new Callback<List<JsonMostrarActividades>>() {\n @Override\n public void onResponse(Call<List<JsonMostrarActividades>> call, Response<List<JsonMostrarActividades>> response) {\n if (response.body() != null && response.code() == 200) {\n\n JsonMostrarActividadesRealm.guardarListaActividadestodo(response.body());\n\n prepararCalendario();\n\n } else if (response.code() == Valores.TOKEN_EXPIRADO) {\n //Muestra diálogo indicando que la sesión ha expirado y devuelve al Login.\n AlertTokenToLogin.showAlertDialog(context);\n } else {\n prepararCalendario();\n }\n }\n\n @Override\n public void onFailure(Call<List<JsonMostrarActividades>> call, Throwable t) {\n Log.d(\"\", \"\");\n prepararCalendario();\n }\n });\n\n }", "title": "" }, { "docid": "6c19d2f8675a66cf07b713c7a87fcaee", "score": "0.5426546", "text": "@Override\n public void onClick(View v){\n\n Intent intent = new Intent(getContext(), MainActivity.class);\n startActivity(intent);\n\n //calcular(valor1, valor2, rdOperacao);\n }", "title": "" }, { "docid": "80e75c3759c32f33cef7ebdd6d5d956c", "score": "0.5425788", "text": "public void mo33115aI(Activity activity) {\n }", "title": "" }, { "docid": "32f741bec94a323966ded81fcb738dff", "score": "0.54256934", "text": "public void populateActivitiesList() {\n mMyActivities = new ArrayList<Activity>();\n ctx = view.getContext();\n DatabaseOperations dbOp = new DatabaseOperations(ctx);\n\n // get the history table and user details\n Cursor CR = dbOp.getHistory();\n Cursor userDetailsCR = dbOp.getUserDetails();\n\n /* The cursor starts before the first result row, so on the first iteration\n this moves to the first result if it exists. If the cursor is empty, or the\n last row has already been processed, then the loop exits neatly. */\n while (CR.moveToNext()) {\n int id = CR.getInt(TableData.HistoryOrdinals.ID.ordinal());\n String duration = CR.getString(TableData.HistoryOrdinals.DURATION.ordinal());\n int distance = CR.getInt(TableData.HistoryOrdinals.DISTANCE.ordinal());\n int calories = CR.getInt(TableData.HistoryOrdinals.CALORIES.ordinal());\n int state = CR.getShort(TableData.HistoryOrdinals.STATE.ordinal());\n String date = CR.getString(TableData.HistoryOrdinals.DATE.ordinal());\n String startTime = CR.getString(TableData.HistoryOrdinals.START_TIME.ordinal());\n String name = \"\";\n if (userDetailsCR.moveToFirst()) {\n // insert name for sharing\n name = userDetailsCR.getString(TableData.UserDetailOrdinals.FULL_NAME.ordinal());\n }\n //add details to the activity\n mMyActivities.add(new Activity(id, name, duration, distance, calories, state, date, startTime));\n }\n }", "title": "" }, { "docid": "56782e43d6241a871c3875eaecaf28ed", "score": "0.5423135", "text": "@Override\n public void whatToDo() {\n Intent playScherm = new Intent(MainActivity.this, Statistiek.class);\n startActivity(playScherm);\n }", "title": "" }, { "docid": "391dee8608607dd10a02684875e8d07a", "score": "0.5411862", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n long valor_id_base_datos = tareas.get(i).getId(); //ID ÚNICA DE ESTA TAREA\n Tarea tarea = Tarea.findById(Tarea.class,valor_id_base_datos);\n\n //add the function to perform here\n Intent intent = new Intent(MainActivity.this, Main3Activity.class);\n\n //RECOGEMOS LO GUARDADO EN LA TAREA ESPECÍFICA\n intent.putExtra(\"valor_id\",valor_id_base_datos);\n intent.putExtra(\"valor_duracion\",tarea.getDuracion());\n intent.putExtra(\"valor_nombre\",tarea.getNombre());\n intent.putExtra(\"valor_hecha\",tarea.isHecha());\n\n startActivity(intent);//IR A 'Main3Activity'\n\n }", "title": "" }, { "docid": "aca13cd02e5fc843e11428998c266fc2", "score": "0.5409083", "text": "public void call(View view){\n Intent it = new Intent(this, AlunoList.class);\n it.putExtra( \"alunos\", alunos);\n action = 1;\n it.putExtra(\"action\", action );\n startActivity(it);\n\n }", "title": "" }, { "docid": "64c2489590a8ff2bc7f45f5c66a8813c", "score": "0.5391992", "text": "private void showActivity(String activity) {\r\n\t\tSystem.out.println(\"YOUR RECENT TRANSACTION: \" + activity);\r\n\t\tSystem.out.println(\"YOUR NEW BALANCE IS : $ \" + balance);\r\n\t}", "title": "" }, { "docid": "1ce33d67b60e95b728b38184cab08e57", "score": "0.5374921", "text": "public void mostrarVentanaLlamadas(String medico, String fecha){\n \tgetInformacionAgente();\n \tDatosLlamada datos= new DatosLlamada(medico,fecha);\n \t\n \ttry {\n if (itfUsoRepositorioInterfaces == null) {\n itfUsoRepositorioInterfaces = ClaseGeneradoraRepositorioInterfaces.instance();\n }\n\n if (tipoAgenteSecretaria.equals(NombresPredefinidos.TIPO_REACTIVO)) {\n //AgenteAplicacionSecretaria\n ItfUsoAgenteReactivo itfUsoAgente = (ItfUsoAgenteReactivo) itfUsoRepositorioInterfaces.obtenerInterfaz(NombresPredefinidos.ITF_USO + nombreAgenteSecretaria);\n if (itfUsoAgente != null) {\n itfUsoAgente.aceptaEvento(new EventoRecAgte(\"anadirLlamadaV\", datos,\"VisualizacionSecretaria1\", nombreAgenteSecretaria));\n \n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Ha habido un error al mostrarventanaLlamadas \");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "fae8260ba280687eb324d38854d5f12d", "score": "0.5374257", "text": "public void inicarDatos(Context context){\n SQLiteDatabase db = this.getReadableDatabase();\n String q = \"SELECT * FROM \" + TABLA_WIFI;\n Cursor busqueda = db.rawQuery(q,null);\n if(!busqueda.moveToFirst()) {\n cargarDatosWifi();\n }\n q = \"SELECT * FROM \" + TABLA_PUNTOS_RECARGA;\n busqueda = db.rawQuery(q,null);\n if(!busqueda.moveToFirst()) {\n cargarDatosRecargas(context);\n }\n q = \"SELECT * FROM \" + TABLA_PARADAS;\n busqueda = db.rawQuery(q,null);\n if(!busqueda.moveToFirst()) {\n cargarDatosParadas(context);\n }\n q = \"SELECT * FROM \" + TABLA_RUTAS;\n busqueda = db.rawQuery(q,null);\n if(!busqueda.moveToFirst()) {\n cargarDatosRutas(context);\n }\n q = \"SELECT * FROM \" + TABLA_STOPS;\n busqueda = db.rawQuery(q,null);\n if(!busqueda.moveToFirst()) {\n cargarStops(context);\n }\n\n }", "title": "" }, { "docid": "09f8450c52a8d159a143e907b2862a59", "score": "0.53728026", "text": "public void nova(View v){\n\n MainActivity.horaInici = java.util.Calendar.getInstance().getTimeInMillis();\n MainActivity.contestades = 0;\n MainActivity.reset = true;\n String ara = new SimpleDateFormat(\"yyy/MM/dd HH:mm:ss\").format(new Date());\n\n f.desaFitxer(\n \"historial\",\n String.format(\n \"[end:%1$s]\\n[begin:%1$s]\",\n ara\n )\n );\n finish();\n }", "title": "" }, { "docid": "92c68878a974fe0335cb98d6b3724ec0", "score": "0.53617424", "text": "void startRegistroActivity();", "title": "" }, { "docid": "e03f6bb4a22593d70a8a91def20aea3b", "score": "0.534812", "text": "public void act() \n {\n super.act();\n curarGuerrero();\n curarConstructor();\n curacionDeposito();\n ataqueGuerreroProto();\n ataqueConstructorProto();\n ataqueMedicoProto();\n ataqueGuerreroTerran();\n ataqueConstructorTerran();\n ataqueMedicoTerran();\n noTocarMinaDeGas();\n noTocarMinaCristal();\n }", "title": "" }, { "docid": "fecbc796a3ca11333d1c6b067cae78bd", "score": "0.5338932", "text": "private void getComingIntents() {\n Intent comingIntent = getIntent();\n // display mode\n if (comingIntent.getData() != null) {\n Uri uri = comingIntent.getData();\n updatingId = (int) ContentUris.parseId(uri);\n if (mode == null) { // as initial mode and to not be changed again during using\n setMode(detailsProduct);\n // initiate loader here because of the order of initiating method here is :\n // onCreate then >> onPrepareOptionsMenu and I want to initiate the loader after getting the\n // intent and setting the mode\n getLoaderManager().initLoader(ProductUtility.ZERO, null, this);\n }\n } else { // insert mode // if there isn't extra with this Key name it will set lastId = ZERO\n int lastId = comingIntent.getIntExtra(productUtility.LAST_ID_KEY, productUtility.INVALID);\n if (lastId >= ProductUtility.ZERO) {\n // to get lastId from intent then show count+1 with the title\n updatingId = ++lastId;\n setMode(addProduct);\n }\n }\n }", "title": "" }, { "docid": "622649491ee30139b572c596089260d2", "score": "0.5327373", "text": "@Test\n\tpublic void testActivities() {\n\t\tSortedArrayList<Activity> activities = new SortedArrayList<>();\n\t\tactivities.add(new Activity(\"activityID\", \"name\", \"description\", true, 1));\n\t\tTrail trail = new Trail(\"trailID\", \"trailName\", activities, true, 1.0, 2.0, Difficulty.MODERATE);\n\t\ttrail.setActivities(activities);\n\t\tassertEquals(1, trail.getActivities().size());\n\t\ttrail.setTrailMaintenance(true);\n\t\tassertEquals(1.0, trail.getSnow(), 0.0);\n\t\tassertEquals(2.0, trail.getDistance(), 0.0);\n\t\tassertEquals(Difficulty.MODERATE, trail.getDifficulty());\n\t}", "title": "" }, { "docid": "315024b6f0b4cd468f65944dfdcab237", "score": "0.5314455", "text": "@Override\n public void onClick(View view) {\n Intent intent= new Intent(actMain.this, actDetalle.class);\n int dato = reportesList.get(recyclerView.getChildAdapterPosition(view)).getidReporte();\n String dato2 = reportesList.get(recyclerView.getChildAdapterPosition(view)).getEstatus();\n intent.putExtra(\"dato01\", dato);\n intent.putExtra(\"dato02\", dato2);\n intent.putExtra(\"dato03\", tvUser.getText().toString());\n\n startActivity(intent);\n\n }", "title": "" }, { "docid": "1a4bc19b94deddd8637a5c91ab94761b", "score": "0.53133", "text": "@Override\n\t\tpublic void action() {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tMessageTemplate mt = MessageTemplate.and(\n\t\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM),\n\t\t\t\t\t\tMessageTemplate.MatchConversationId(\"DespiertaLadron\"));\n\t\t\t\tACLMessage receive = myAgent.receive(mt);\n\t\t\t\t\n\t\t\t\tif (receive != null) {\n\t\t\t\t\t\n\t\t\t\t\tGui.setHistoria(getLocalName()+\": Va en busca de algun tesoro desprotegido\");\n\t\t\t\t\tplanificar(null);\n\t\t\t\t\taddBehaviour(new FinPlanificacion());\n\t\t\t\t\t//Igual que el secuestrador, la ultima localizacion se convierte en guarida\n\t\t\t\t\tlocalizarPersonaje();\n\t\t\t\t\tok = true;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d2d79b10f2301513d3172095b01692c6", "score": "0.5310561", "text": "public void respondeBien(View vista) {\n finish(); // Cerrar la actividad de la pregunta 1\n puntuacion++;\n Intent seguirPregunta2 = new Intent(getApplicationContext(), Pregunta2Activity.class);\n seguirPregunta2.putExtra(\"puntuacion\", \"\" + puntuacion);\n startActivity(seguirPregunta2);\n cronometro.cancel();\n }", "title": "" }, { "docid": "1016b4cea0b17b43e9d9b70dbad7a572", "score": "0.53039694", "text": "void showActivity();", "title": "" }, { "docid": "a129c57daa93b98028fd97c9d29cc6a5", "score": "0.52988476", "text": "private void llenarLista(){\n alarmas.add(new Vista(\"Cena del perro\", \"08:00 PM\"));\n alarmas.add(new Vista(\"Llamar a Rafi\", \"11:00 AM\"));\n alarmas.add(new Vista(\"Clase de piano\", \"02:30 PM\"));\n alarmas.add(new Vista(\"Programar\", \"06:00 PM\"));\n alarmas.add(new Vista(\"Pasear el perro\", \"04:00 PM\"));\n alarmas.add(new Vista(\"Sacar la basura\", \"09:00 PM\"));\n //estos datos son falsos para testear pero esta informacion\n //podria venir de un servidor web o la app de alarmas incorporada en el sistema.\n }", "title": "" }, { "docid": "b5653a89382843f4a9b74d4807618b1b", "score": "0.5298572", "text": "@Test\n\tpublic final void test1() {\n\t\t\n\t\t// Activities\n\t\t\n\t\tdouble firstActEnd = 7 * 3600.;\n\t\tdouble secondActEnd = 16 * 3600;\n\t\tdouble travelTime = 900.;\n\t\t\n\t\tPerson person = PopulationUtils.getFactory().createPerson(Id.create(\"1\", Person.class));\n\t\tperson.getAttributes().putAttribute(\"OpeningClosingTimes\", Double.NEGATIVE_INFINITY + \";\" + Double.NEGATIVE_INFINITY + \";26100.0;57600.0;\" + Double.NEGATIVE_INFINITY + \";\" + Double.NEGATIVE_INFINITY);\t\t\t\t\t\n\n\t\tPlan plan1 = PersonUtils.createAndAddPlan(person, true);;\n\t\tActivity firstActivity1 = PopulationUtils.createAndAddActivity(plan1, \"h\");\n\t\tfirstActivity1.setEndTime(firstActEnd);\n\t\tActivity secondActivity1 = PopulationUtils.createAndAddActivity(plan1, \"w\");\n\t\tsecondActivity1.setStartTime(firstActEnd + travelTime);\n\t\tsecondActivity1.setEndTime(secondActEnd);\n\t\tActivity thirdActivity1 = PopulationUtils.createAndAddActivity(plan1, \"h\");\n\t\tthirdActivity1.setStartTime(secondActEnd + travelTime);\n\t\t\n\t\tPlan plan2 = PersonUtils.createAndAddPlan(person, false);;\n\t\tActivity firstActivity2 = PopulationUtils.createAndAddActivity(plan2, \"h\");\n\t\tfirstActivity2.setEndTime(firstActEnd);\n\t\tActivity secondActivity2 = PopulationUtils.createAndAddActivity(plan2, \"w\");\n\t\tsecondActivity2.setStartTime(firstActEnd + travelTime + 1800.);\n\t\tsecondActivity2.setEndTime(secondActEnd + 1800.);\n\t\tActivity thirdActivity2 = PopulationUtils.createAndAddActivity(plan2, \"h\");\n\t\tthirdActivity2.setStartTime(secondActEnd + travelTime);\n\t\t\n\t\t// Activity parameters\n\t\t\n\t\tConfig config = ConfigUtils.createConfig(new AgentSpecificActivitySchedulingConfigGroup());\n\t\tAgentSpecificActivitySchedulingConfigGroup asasConfigGroup = (AgentSpecificActivitySchedulingConfigGroup) config.getModules().get(AgentSpecificActivitySchedulingConfigGroup.GROUP_NAME);\n\t\t\n\t\tActivityParams actParamsH = new ActivityParams(\"h\");\n\t\tactParamsH.setTypicalDuration(12 * 3600.);\n\t\tactParamsH.setTypicalDurationScoreComputation(TypicalDurationScoreComputation.relative);\n\t\tconfig.planCalcScore().addActivityParams(actParamsH);\n\t\t\n\t\tActivityParams actParamsW = new ActivityParams(\"w\");\n\t\tconfig.planCalcScore().addActivityParams(actParamsW);\n\t\tactParamsW.setTypicalDuration(8 * 3600.);\n\t\tactParamsW.setTypicalDurationScoreComputation(TypicalDurationScoreComputation.relative);\n\t\t\n\t\tconfig.planCalcScore().setPerforming_utils_hr(6.);\n\t\tconfig.planCalcScore().setLateArrival_utils_hr(0.);\n\t\t\n\t\t// Scenario\n\t\t\n\t\tScenario scenario = ScenarioUtils.loadScenario(config);\n\t\tscenario.getPopulation().addPerson(person);\n\t\t\n\t\t// test\n\t\t\n\t\tdouble defaultScorePlan1 = calcScoreDefault(scenario, plan1);\n\t\tassertEquals(\"default activity-related score of plan1 has changed\", 139.15760679294863, defaultScorePlan1, MatsimTestUtils.EPSILON);\n\t\t\n\t\t{\n\t\t\tCountActEventHandler actCounter = new CountActEventHandler();\t\n\t\t\tasasConfigGroup.setTolerance(0.);\n\t\t\tAgentSpecificScoringFunctionFactory agentSpecificScoringFunctionFactory = new AgentSpecificScoringFunctionFactory(scenario, actCounter);\n\t\t\tScoringFunction scoringFunction = agentSpecificScoringFunctionFactory.createNewScoringFunction(plan1.getPerson());\n\t\t\tscoringFunction.handleActivity(firstActivity1);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(secondActivity1.getStartTime().seconds(), plan1.getPerson().getId(), null, null, \"w\"));\n\t\t\tscoringFunction.handleActivity(secondActivity1);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(thirdActivity1.getStartTime().seconds(), plan1.getPerson().getId(), null, null, \"h\"));\n\t\t\tscoringFunction.handleActivity(thirdActivity1);\n\t\t\tscoringFunction.finish();\n\t\t\tassertEquals(\"agent-specific activity-score of plan1 should result in the same score as default scoring\", defaultScorePlan1, scoringFunction.getScore(), MatsimTestUtils.EPSILON);\n\t\t}\n\t\n\t\tdouble defaultScorePlan2 = calcScoreDefault(scenario, plan2);\n\t\tassertEquals(\"default activity-related score of plan2 has changed\", 139.15760679294863, defaultScorePlan2, MatsimTestUtils.EPSILON);\n\t\t\n\t\t{\n\t\t\tCountActEventHandler actCounter = new CountActEventHandler();\n\t\t\tasasConfigGroup.setTolerance(3600.);\n\t\t\tAgentSpecificScoringFunctionFactory agentSpecificScoringFunctionFactory = new AgentSpecificScoringFunctionFactory(scenario, actCounter);\n\t\t\tScoringFunction scoringFunction = agentSpecificScoringFunctionFactory.createNewScoringFunction(plan2.getPerson());\n\t\t\tscoringFunction.handleActivity(firstActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(secondActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"w\"));\n\t\t\tscoringFunction.handleActivity(secondActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(thirdActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"h\"));\n\t\t\tscoringFunction.handleActivity(thirdActivity2);\n\t\t\tscoringFunction.finish();\n\t\t\tassertEquals(\"agent-specific activity-score of plan2 should result in the same score as default scoring (tolerance: 3600.)\", defaultScorePlan2, scoringFunction.getScore(), MatsimTestUtils.EPSILON);\n\t\t}\n\t\t\n\t\t{\n\t\t\tCountActEventHandler actCounter = new CountActEventHandler();\n\t\t\tasasConfigGroup.setTolerance(0.);\n\t\t\tAgentSpecificScoringFunctionFactory agentSpecificScoringFunctionFactory = new AgentSpecificScoringFunctionFactory(scenario, actCounter);\n\t\t\tScoringFunction scoringFunction = agentSpecificScoringFunctionFactory.createNewScoringFunction(plan2.getPerson());\n\t\t\tscoringFunction.handleActivity(firstActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(secondActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"w\"));\n\t\t\tscoringFunction.handleActivity(secondActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(thirdActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"h\"));\n\t\t\tscoringFunction.handleActivity(thirdActivity2);\n\t\t\tscoringFunction.finish();\n\t\t\tassertEquals(\"agent-specific activity-score of plan2 should result in a lower score compared to default scoring (tolerance: 0.)\", true, defaultScorePlan2 > scoringFunction.getScore());\n\t\t\tassertEquals(\"wrong agent-specific activity-score of plan2\", 136.33326279184783, scoringFunction.getScore(), MatsimTestUtils.EPSILON);\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "526484789aa98ab98c8ef1e744bfac17", "score": "0.5297413", "text": "private void simularacciones(StateObservation stateObs){\n ArrayList<Types.ACTIONS> acciones = stateObs.getAvailableActions();\n\n //Guardamos la informacion sobre el estado inicial\n StateObservation viejoEstado = stateObs;\n\n for(Types.ACTIONS accion:acciones){\n //avanzamos el estado tras aplicarle una accion\n viejoEstado.advance(accion);\n\n //viejoEstado.somethingsomething(parametros); <- Hacemos lo que queramos con el estado avanzado\n\n //Restauramos el estado para avanzarlo con otra de las acciones disponibles.\n viejoEstado = stateObs;\n }\n }", "title": "" }, { "docid": "7fb9b1dde63816082bbaf1f9492c3442", "score": "0.5291636", "text": "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\thelper = new TaskDBOperator(getActivity());\r\n\t\tconditionDate=dateFormat.format(new Date());//当前日\r\n\t\t\r\n\t\tconditonPeriod = CalendarUtils.getDatePeriod(\r\n\t\t\t\tdateFormat.format(new Date()), 2);\r\n\t\tivLeft = (ImageView) getActivity().findViewById(R.id.chat_iv1);\r\n\t\tivRight = (ImageView) getActivity().findViewById(R.id.chat_iv2);\r\n\t\ttvMonth = (TextView) getActivity().findViewById(R.id.chat_month);\r\n\t\tString[] datef = conditionDate.split(\"-\");\r\n\t\ttvMonth.setText(datef[0]+\"年-\"+datef[1]+\"月\");\r\n\t\tinitChat();\r\n\t\tivLeft.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tconditionDate = CalendarUtils.calculateEndDate(period[0],\r\n\t\t\t\t\t\t-1);\r\n\t\t\t\tchangeMonthChatData();\r\n\t\t\t}\r\n\t\t});\r\n\t\tivRight.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tconditionDate = CalendarUtils.calculateEndDate(period[1],\r\n\t\t\t\t\t\t+1);\r\n\t\t\t\tchangeMonthChatData();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "82e2f67d28972e80de36bebe5f94035d", "score": "0.52873963", "text": "public void mo33116aJ(Activity activity) {\n }", "title": "" }, { "docid": "07fe2f4a21d5520732803170c61f41c7", "score": "0.52815026", "text": "private void sincronizacionTerminada() {\n listClases = clase.agregarClasesNube(listClases, idUsuario);\n listAlumnos = alummo.agregarAlumnosNube(listAlumnos,listClases, idUsuario);\n listListas = lista.agregarListaNube(listClases,listListas);\n lista.agregarAsistencias(listClases,listListas,listAlumnos,listAsistencia);\n }", "title": "" }, { "docid": "346eee1de515277a21cb0bf8caf8dbf3", "score": "0.5272451", "text": "public void anadeExtra(DatosLlamada datos) {\n \n \t getInformacionAgente();\n //provoca la petici´┐Żn de autentificaci´┐Żn\n try {\n \t \n if (itfUsoRepositorioInterfaces == null) {\n itfUsoRepositorioInterfaces = ClaseGeneradoraRepositorioInterfaces.instance();\n }\n\n if (tipoAgenteSecretaria.equals(NombresPredefinidos.TIPO_REACTIVO)) {\n //AgenteAplicacionSecretaria\n ItfUsoAgenteReactivo itfUsoAgente = (ItfUsoAgenteReactivo) itfUsoRepositorioInterfaces.obtenerInterfaz(NombresPredefinidos.ITF_USO + nombreAgenteSecretaria);\n if (itfUsoAgente != null) {\n itfUsoAgente.aceptaEvento(new EventoRecAgte(\"infoExtra\", datos, \"VisualizacionSecretaria1\", nombreAgenteSecretaria));\n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Ha habido un error al enviar los datos del extra \");\n e.printStackTrace();\n }\n \n }", "title": "" }, { "docid": "327201a85d8c0104ee491aa15f2706f8", "score": "0.5269796", "text": "private void lanzarVentanaCreditos() {\r\n Mensaje.mostrarCreditos(contenedorGlobal);\r\n }", "title": "" }, { "docid": "ca17ee63e5bd1bd546eccd8e9f2d5251", "score": "0.52680963", "text": "@Override\n public void onClick(View v) {\n if (!objValidar.Vacio( _txtnombrealarma) && !objValidar.Vacio(_txtmensajealarma) && _tono != \"\") {\n boton_aceptar.setEnabled(false);\n boton_aceptar.setBackgroundColor(getColor(R.color.colorGris));\n Toast.makeText(getApplicationContext(), \"Grabando información de alerta\", Toast.LENGTH_SHORT).show();\n alarma = new Alarma();\n ubicacion = new Ubicacion();\n persona = new Persona();\n // int radio = 500;\n // radio = getIntent().getIntExtra(\"radio\", radio);\n\n persona.setApellido(_nombre);\n persona.setNombre(_nombre);\n persona.setTelefono(_numero);\n getIntent().putExtra(\"numeroTelefono\", _numero);\n persona.setTipo(\"contacto\");\n persona.setEmail(_emailU);\n\n alarma.setNombre(_txtnombrealarma.getText().toString());\n alarma.setUrlTono(_tono);\n getIntent().putExtra(\"tono\", _tono);\n alarma.setMensaje(_txtmensajealarma.getText().toString());\n getIntent().putExtra(\"txtMensaje\", _txtmensajealarma.getText().toString());\n alarma.setDistanciaActivacion(radio);//distancia predefinida\n alarma.setVolumen(_volalarma.getProgress());//obtengo el valor seleccionado\n getIntent().putExtra(\"volumen\", _volalarma.getProgress());\n\n ubicacion.setPoi(_poiDestino);//la posicion de la busqueda de destino\n\n DataAlarmaActivity task = new DataAlarmaActivity(\"insert\", persona, alarma, ubicacion, con,TextoDestino, radio);\n task.execute();\n // volver();\n } else {\n Toast.makeText(getApplicationContext(), \"Verifique que todos los campos esten completos\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "5a691cbbcc8a0c1e42c92b11ebf373da", "score": "0.5266444", "text": "public final void ocupaMasa() {\n\t curataMasa();\n\t aseazaServetele();\n\t aseazaTacamuri();\n\t invitaPersoane();\n }", "title": "" }, { "docid": "ffe795b0d83f7a2c1aefcb168fe7fd88", "score": "0.52626824", "text": "private void actEvent(){\n\n btPrev.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(Plan.this, MainActivity.class));\n }\n });\n\n btPlan1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n plan1();\n isPlannified = true;\n startActivity(new Intent(Plan.this, Detection.class));\n }\n });\n\n }", "title": "" }, { "docid": "82be6efe0e97e349773cbe08809ff18e", "score": "0.5261169", "text": "@Test\n\tpublic final void test3() {\n\t\t\n\t\t// Activities\n\t\t\n\t\tdouble firstActEnd = 7 * 3600.;\n\t\tdouble secondActEnd = 16 * 3600;\n\t\tdouble travelTime = 900.;\n\t\t\n\t\tPerson person = PopulationUtils.getFactory().createPerson(Id.create(\"1\", Person.class));\n\t\tperson.getAttributes().putAttribute(\"OpeningClosingTimes\", Double.NEGATIVE_INFINITY + \";\" + Double.NEGATIVE_INFINITY + \";26100.0;57600.0;\" + Double.NEGATIVE_INFINITY + \";\" + Double.NEGATIVE_INFINITY);\t\t\t\t\t\n\n\t\tPlan plan1 = PersonUtils.createAndAddPlan(person, true);;\n\t\tActivity firstActivity1 = PopulationUtils.createAndAddActivity(plan1, \"h\");\n\t\tfirstActivity1.setEndTime(firstActEnd);\n\t\tActivity secondActivity1 = PopulationUtils.createAndAddActivity(plan1, \"w\");\n\t\tsecondActivity1.setStartTime(firstActEnd + travelTime);\n\t\tsecondActivity1.setEndTime(secondActEnd);\n\t\tActivity thirdActivity1 = PopulationUtils.createAndAddActivity(plan1, \"h\");\n\t\tthirdActivity1.setStartTime(secondActEnd + travelTime);\n\t\t\n\t\tPlan plan2 = PersonUtils.createAndAddPlan(person, false);;\n\t\tActivity firstActivity2 = PopulationUtils.createAndAddActivity(plan2, \"h\");\n\t\tfirstActivity2.setEndTime(firstActEnd);\n\t\tActivity secondActivity2 = PopulationUtils.createAndAddActivity(plan2, \"w\");\n\t\tsecondActivity2.setStartTime(firstActEnd + travelTime + 1800.);\n\t\tsecondActivity2.setEndTime(secondActEnd + 1800.);\n\t\tActivity thirdActivity2 = PopulationUtils.createAndAddActivity(plan2, \"h\");\n\t\tthirdActivity2.setStartTime(secondActEnd + travelTime);\n\t\t\n\t\t// Activity parameters\n\t\t\n\t\tConfig config = ConfigUtils.createConfig(new AgentSpecificActivitySchedulingConfigGroup());\n\t\tAgentSpecificActivitySchedulingConfigGroup asasConfigGroup = (AgentSpecificActivitySchedulingConfigGroup) config.getModules().get(AgentSpecificActivitySchedulingConfigGroup.GROUP_NAME);\n\t\t\n\t\tActivityParams actParamsH = new ActivityParams(\"h\");\n\t\tactParamsH.setTypicalDuration(12 * 3600.);\n\t\tactParamsH.setTypicalDurationScoreComputation(TypicalDurationScoreComputation.relative);\n\t\tconfig.planCalcScore().addActivityParams(actParamsH);\n\t\t\n\t\tActivityParams actParamsW = new ActivityParams(\"w\");\n\t\tconfig.planCalcScore().addActivityParams(actParamsW);\n\t\tactParamsW.setTypicalDuration(8 * 3600.);\n\t\tactParamsW.setTypicalDurationScoreComputation(TypicalDurationScoreComputation.relative);\n\t\t\n\t\tconfig.planCalcScore().setPerforming_utils_hr(0.);\n\t\tconfig.planCalcScore().setLateArrival_utils_hr(-18.);\n\t\t\n\t\t// Scenario\n\t\t\n\t\tScenario scenario = ScenarioUtils.loadScenario(config);\n\t\tscenario.getPopulation().addPerson(person);\n\t\t\n\t\t// test\n\t\t\n\t\tdouble defaultScorePlan1 = calcScoreDefault(scenario, plan1);\n\t\tassertEquals(\"default activity-related score of plan1 has changed\", 0., defaultScorePlan1, MatsimTestUtils.EPSILON);\n\t\t\n\t\t{\n\t\t\tCountActEventHandler actCounter = new CountActEventHandler();\t\n\t\t\tasasConfigGroup.setTolerance(0.);\n\n\t\t\tAgentSpecificScoringFunctionFactory agentSpecificScoringFunctionFactory = new AgentSpecificScoringFunctionFactory(scenario, actCounter);\n\t\t\tScoringFunction scoringFunction = agentSpecificScoringFunctionFactory.createNewScoringFunction(plan1.getPerson());\n\t\t\tscoringFunction.handleActivity(firstActivity1);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(secondActivity1.getStartTime().seconds(), plan1.getPerson().getId(), null, null, \"w\"));\n\t\t\tscoringFunction.handleActivity(secondActivity1);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(thirdActivity1.getStartTime().seconds(), plan1.getPerson().getId(), null, null, \"h\"));\n\t\t\tscoringFunction.handleActivity(thirdActivity1);\n\t\t\tscoringFunction.finish();\n\t\t\tassertEquals(\"agent-specific activity-score of plan1 should result in the same score as default scoring\", defaultScorePlan1, scoringFunction.getScore(), MatsimTestUtils.EPSILON);\n\t\t}\n\t\n\t\tdouble defaultScorePlan2 = calcScoreDefault(scenario, plan2);\n\t\tassertEquals(\"default activity-related score of plan2 has changed\", 0, defaultScorePlan2, MatsimTestUtils.EPSILON);\n\t\t\n\t\t{\n\t\t\tCountActEventHandler actCounter = new CountActEventHandler();\t\n\t\t\tasasConfigGroup.setTolerance(3600.);\n\n\t\t\tAgentSpecificScoringFunctionFactory agentSpecificScoringFunctionFactory = new AgentSpecificScoringFunctionFactory(scenario, actCounter);\n\t\t\tScoringFunction scoringFunction = agentSpecificScoringFunctionFactory.createNewScoringFunction(plan2.getPerson());\n\t\t\tscoringFunction.handleActivity(firstActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(secondActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"w\"));\n\t\t\tscoringFunction.handleActivity(secondActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(thirdActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"h\"));\n\t\t\tscoringFunction.handleActivity(thirdActivity2);\n\t\t\tscoringFunction.finish();\n\t\t\tassertEquals(\"agent-specific activity-score of plan2 should result in the same score as default scoring (tolerance: 3600.)\", defaultScorePlan2, scoringFunction.getScore(), MatsimTestUtils.EPSILON);\n\t\t}\n\t\t\n\t\t{\n\t\t\tCountActEventHandler actCounter = new CountActEventHandler();\t\n\t\t\tasasConfigGroup.setTolerance(0.);\n\t\t\tAgentSpecificScoringFunctionFactory agentSpecificScoringFunctionFactory = new AgentSpecificScoringFunctionFactory(scenario, actCounter);\n\t\t\tScoringFunction scoringFunction = agentSpecificScoringFunctionFactory.createNewScoringFunction(plan2.getPerson());\n\t\t\tscoringFunction.handleActivity(firstActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(secondActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"w\"));\n\t\t\tscoringFunction.handleActivity(secondActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(thirdActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"h\"));\n\t\t\tscoringFunction.handleActivity(thirdActivity2);\n\t\t\tscoringFunction.finish();\n\t\t\tassertEquals(\"wrong agent-specific activity-score of plan2\", -9., scoringFunction.getScore(), MatsimTestUtils.EPSILON);\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "0daf05393013a222223bcb07c75a8ec8", "score": "0.52576464", "text": "List<XEventClass> getActivities();", "title": "" }, { "docid": "8f767804554fc29428f240de748f3a60", "score": "0.5255641", "text": "private void loadData() {\n Bundle datos = this.getIntent().getExtras();\n int tipo = datos.getInt(\"tipo\");\n if(tipo ==1)\n {\n FestAplication application= (FestAplication)getApplication();\n //this.festividades= application.getPlaceRepository().allFestividades();\n this.festividades= application.getPlace2Repository().getFestByCategory(tipo);\n }\n if(tipo ==2)\n {\n FestAplication application= (FestAplication)getApplication();\n this.festividades= application.getPlace2Repository().getFestByCategory(tipo);\n }\n\n if(tipo ==3)\n {\n FestAplication application= (FestAplication)getApplication();\n this.festividades= application.getPlace2Repository().getFestByCategory(tipo);\n }\n\n if(tipo ==4)\n {\n FestAplication application= (FestAplication)getApplication();\n this.festividades= application.getPlace2Repository().getFestByCategory(tipo);\n }\n\n if(tipo ==5)\n {\n FestAplication application= (FestAplication)getApplication();\n this.festividades= application.getPlace2Repository().getFestByCategory(tipo);\n }\n\n if(tipo ==6)\n {\n FestAplication application= (FestAplication)getApplication();\n this.festividades= application.getPlace2Repository().getFestByCategory(tipo);\n }\n\n\n }", "title": "" }, { "docid": "de13e8d1dd3ac3d027fd9144569e870e", "score": "0.525507", "text": "public void mostrarVentanaCita(String nombre, String apellido1,String apellido2, String Telf, String hora, String fecha,String usuario){\n \tgetInformacionAgente();\n \tDatosCitaSinValidar datos= new DatosCitaSinValidar(nombre, apellido1,apellido2, Telf,fecha, hora,0,usuario);\n \ttry {\n if (itfUsoRepositorioInterfaces == null) {\n itfUsoRepositorioInterfaces = ClaseGeneradoraRepositorioInterfaces.instance();\n }\n\n if (tipoAgenteSecretaria.equals(NombresPredefinidos.TIPO_REACTIVO)) {\n //AgenteAplicacionSecretaria\n ItfUsoAgenteReactivo itfUsoAgente = (ItfUsoAgenteReactivo) itfUsoRepositorioInterfaces.obtenerInterfaz(NombresPredefinidos.ITF_USO + nombreAgenteSecretaria);\n if (itfUsoAgente != null) {\n itfUsoAgente.aceptaEvento(new EventoRecAgte(\"darCita\", datos, \"VisualizacionSecretaria1\", nombreAgenteSecretaria));\n \n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Ha habido un error al mostrar cita \");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ec175de5c4ffd0ecb38a96ac92af952c", "score": "0.5244147", "text": "@Test\n\tpublic final void test2() {\n\t\t\n\t\t// Activities\n\t\t\n\t\tdouble firstActEnd = 7 * 3600.;\n\t\tdouble secondActEnd = 16 * 3600;\n\t\tdouble travelTime = 900.;\n\t\t\n\t\tPerson person = PopulationUtils.getFactory().createPerson(Id.create(\"1\", Person.class));\n\t\tperson.getAttributes().putAttribute(\"OpeningClosingTimes\", Double.NEGATIVE_INFINITY + \";\" + Double.NEGATIVE_INFINITY + \";26100.0;57600.0;\" + Double.NEGATIVE_INFINITY + \";\" + Double.NEGATIVE_INFINITY);\t\t\t\t\t\n\n\t\tPlan plan1 = PersonUtils.createAndAddPlan(person, true);;\n\t\tActivity firstActivity1 = PopulationUtils.createAndAddActivity(plan1, \"h\");\n\t\tfirstActivity1.setEndTime(firstActEnd);\n\t\tActivity secondActivity1 = PopulationUtils.createAndAddActivity(plan1, \"w\");\n\t\tsecondActivity1.setStartTime(firstActEnd + travelTime);\n\t\tsecondActivity1.setEndTime(secondActEnd);\n\t\tActivity thirdActivity1 = PopulationUtils.createAndAddActivity(plan1, \"h\");\n\t\tthirdActivity1.setStartTime(secondActEnd + travelTime);\n\t\t\n\t\tPlan plan2 = PersonUtils.createAndAddPlan(person, false);;\n\t\tActivity firstActivity2 = PopulationUtils.createAndAddActivity(plan2, \"h\");\n\t\tfirstActivity2.setEndTime(firstActEnd);\n\t\tActivity secondActivity2 = PopulationUtils.createAndAddActivity(plan2, \"w\");\n\t\tsecondActivity2.setStartTime(firstActEnd + travelTime + 1800.);\n\t\tsecondActivity2.setEndTime(secondActEnd + 1800.);\n\t\tActivity thirdActivity2 = PopulationUtils.createAndAddActivity(plan2, \"h\");\n\t\tthirdActivity2.setStartTime(secondActEnd + travelTime);\n\t\t\n\t\t// Activity parameters\n\t\t\n\t\tConfig config = ConfigUtils.createConfig(new AgentSpecificActivitySchedulingConfigGroup());\n\t\tAgentSpecificActivitySchedulingConfigGroup asasConfigGroup = (AgentSpecificActivitySchedulingConfigGroup) config.getModules().get(AgentSpecificActivitySchedulingConfigGroup.GROUP_NAME);\n\n\t\tActivityParams actParamsH = new ActivityParams(\"h\");\n\t\tactParamsH.setTypicalDuration(12 * 3600.);\n\t\tactParamsH.setTypicalDurationScoreComputation(TypicalDurationScoreComputation.relative);\n\t\tconfig.planCalcScore().addActivityParams(actParamsH);\n\t\t\n\t\tActivityParams actParamsW = new ActivityParams(\"w\");\n\t\tconfig.planCalcScore().addActivityParams(actParamsW);\n\t\tactParamsW.setTypicalDuration(8 * 3600.);\n\t\tactParamsW.setTypicalDurationScoreComputation(TypicalDurationScoreComputation.relative);\n\t\t\n\t\tconfig.planCalcScore().setPerforming_utils_hr(6.);\n\t\tconfig.planCalcScore().setLateArrival_utils_hr(-18.);\n\t\t\n\t\t// Scenario\n\t\t\n\t\tScenario scenario = ScenarioUtils.loadScenario(config);\n\t\tscenario.getPopulation().addPerson(person);\n\t\t\n\t\t// test\n\t\t\n\t\tdouble defaultScorePlan1 = calcScoreDefault(scenario, plan1);\n\t\tassertEquals(\"default activity-related score of plan1 has changed\", 139.15760679294863, defaultScorePlan1, MatsimTestUtils.EPSILON);\n\t\t\n\t\t{\n\t\t\tCountActEventHandler actCounter = new CountActEventHandler();\n\t\t\tasasConfigGroup.setTolerance(0.);\n\n\t\t\tAgentSpecificScoringFunctionFactory agentSpecificScoringFunctionFactory = new AgentSpecificScoringFunctionFactory(scenario, actCounter);\n\t\t\tScoringFunction scoringFunction = agentSpecificScoringFunctionFactory.createNewScoringFunction(plan1.getPerson());\n\t\t\tscoringFunction.handleActivity(firstActivity1);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(secondActivity1.getStartTime().seconds(), plan1.getPerson().getId(), null, null, \"w\"));\n\t\t\tscoringFunction.handleActivity(secondActivity1);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(thirdActivity1.getStartTime().seconds(), plan1.getPerson().getId(), null, null, \"h\"));\n\t\t\tscoringFunction.handleActivity(thirdActivity1);\n\t\t\tscoringFunction.finish();\n\t\t\tassertEquals(\"agent-specific activity-score of plan1 should result in the same score as default scoring\", defaultScorePlan1, scoringFunction.getScore(), MatsimTestUtils.EPSILON);\n\t\t}\n\t\n\t\tdouble defaultScorePlan2 = calcScoreDefault(scenario, plan2);\n\t\tassertEquals(\"default activity-related score of plan2 has changed\", 139.15760679294863, defaultScorePlan2, MatsimTestUtils.EPSILON);\n\t\t\n\t\t{\n\t\t\tCountActEventHandler actCounter = new CountActEventHandler();\t\n\t\t\tasasConfigGroup.setTolerance(3600.);\n\n\t\t\tAgentSpecificScoringFunctionFactory agentSpecificScoringFunctionFactory = new AgentSpecificScoringFunctionFactory(scenario, actCounter);\n\t\t\tScoringFunction scoringFunction = agentSpecificScoringFunctionFactory.createNewScoringFunction(plan2.getPerson());\n\t\t\tscoringFunction.handleActivity(firstActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(secondActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"w\"));\n\t\t\tscoringFunction.handleActivity(secondActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(thirdActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"h\"));\n\t\t\tscoringFunction.handleActivity(thirdActivity2);\n\t\t\tscoringFunction.finish();\n\t\t\tassertEquals(\"agent-specific activity-score of plan2 should result in the same score as default scoring (tolerance: 3600.)\", defaultScorePlan2, scoringFunction.getScore(), MatsimTestUtils.EPSILON);\n\t\t}\n\t\t\n\t\t{\n\t\t\tCountActEventHandler actCounter = new CountActEventHandler();\t\n\t\t\tasasConfigGroup.setTolerance(0.);\n\n\t\t\tAgentSpecificScoringFunctionFactory agentSpecificScoringFunctionFactory = new AgentSpecificScoringFunctionFactory(scenario, actCounter);\n\t\t\tScoringFunction scoringFunction = agentSpecificScoringFunctionFactory.createNewScoringFunction(plan2.getPerson());\n\t\t\tscoringFunction.handleActivity(firstActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(secondActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"w\"));\n\t\t\tscoringFunction.handleActivity(secondActivity2);\n\t\t\tactCounter.handleEvent(new ActivityStartEvent(thirdActivity2.getStartTime().seconds(), plan2.getPerson().getId(), null, null, \"h\"));\n\t\t\tscoringFunction.handleActivity(thirdActivity2);\n\t\t\tscoringFunction.finish();\n\t\t\tassertEquals(\"agent-specific activity-score of plan2 should result in a lower score compared to default scoring (tolerance: 0.)\", true, defaultScorePlan2 > scoringFunction.getScore());\n\t\t\tassertEquals(\"wrong agent-specific activity-score of plan2\", 127.3332627918783, scoringFunction.getScore(), MatsimTestUtils.EPSILON);\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "b3955169a42edeb663d4f597766f59e3", "score": "0.5241278", "text": "boolean addActivity(Activity activity);", "title": "" }, { "docid": "3af1d4fc409dfa21196a10078858b3ff", "score": "0.5241162", "text": "private static void tecla() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9702b5972de2b8c4563ddc51a921eef", "score": "0.5239024", "text": "public InterfazBuscaminas() {\r\n\t\tthis.dificultad_actual = \"Easy\";\r\n\t\tthis.tamano = new Rectangle(450, 300);\r\n\t\tcronometro = new Timer();\r\n\t\tCronometro();\r\n\t\tganadores_lista = new Records();\r\n\t\tinitialize();\r\n\t}", "title": "" }, { "docid": "4336f6fc9a9e742ed5679e4b4a1feea4", "score": "0.5235935", "text": "private void accionEnMostrador() {\r\n\t\tList<VentaDTO> ventas = this.GetVentasSeleccionadas();\r\n\t\tString titulo = \"Error de seleccion de Ventas\";\r\n\t\tif (ventas.size() == 0) {\r\n\t\t\tMsj.error(titulo, \"Debe seleccionar una venta\");\r\n\t\t} else {\r\n\t\t\tif (this.NoTieneVentasEnViaje(ventas)) {\r\n\t\t\t\tthis.VentasEnMostrador(ventas);\r\n\t\t\t\tthis.ctrPedidosCocina.RecargarTablas();\r\n\t\t\t} else {\r\n\t\t\t\tMsj.error(titulo,\r\n\t\t\t\t\t\t\"No Puede Usar esta Funcionalidad Para Ventas que esten en Viaje\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "fc2ce6ca48d3ba884212fc2c1068b4b1", "score": "0.5233538", "text": "@Override\n\tpublic List<Map<String, Object>> getActivityList() {\n\t\t\n\t\tList<Map<String, Object>> activityList = activityMapper.getActivityListForIndex();//首页显示活动列表\n\t\t\n\t\tList<String> activityIds = new ArrayList<String>();\n\t\tlong now = System.currentTimeMillis();\n\t\tfor (Map<String, Object> map : activityList) {\n\t\t\tSystem.out.println(String.valueOf(map.get(\"activity_id\")) + \"+:activityId in\");\n\t\t\tactivityIds.add(String.valueOf(map.get(\"activity_id\")));\n\t\t\t// 设置活动状态\n\t\t\tsetActivityStatus(map, now);\n\t\t}\n\t\tif (activityIds.size() > 0) {\n\n\t\t\tList<Map<String, Object>> typelist = activityMapper.getActivityType(activityIds);\n\t\t\tList<Map<String, Object>> labellist = activityMapper.getActivityLabel(activityIds);\n\t\t\tList<Map<String, Object>> piclist = activityMapper.getActivityPic(activityIds);\n\t\t\tfor (Map<String, Object> map : activityList) {\n\t\t\t\tString activityId = String.valueOf(map.get(\"activity_id\"));\n\t\t\t\tSystem.out.println(activityId + \"+:activityId\");\n\t\t\t\tList<Map<String, Object>> mapTypeList = new ArrayList<Map<String, Object>>();\n\t\t\t\tfor (Map<String, Object> type : typelist) {\n\t\t\t\t\tif (activityId.equals(type.get(\"activity_and_type_activity_id\"))) {\n\t\t\t\t\t\tmapTypeList.add(type);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList<Map<String, Object>> mapLabelList = new ArrayList<Map<String, Object>>();\n\t\t\t\tfor (Map<String, Object> label : labellist) {\n\t\t\t\t\tif (activityId.equals(label.get(\"activity_and_lable_activity_id\"))) {\n\t\t\t\t\t\tmapLabelList.add(label);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList<Map<String, Object>> mapPicList = new ArrayList<Map<String, Object>>();\n\t\t\t\tfor (Map<String, Object> pic : piclist) {\n\t\t\t\t\tif (activityId.equals(pic.get(\"pic_activity_id\"))) {\n\t\t\t\t\t\tmapPicList.add(pic);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmap.put(\"typelist\", mapTypeList);\n\t\t\t\tmap.put(\"labellist\", mapLabelList);\n\t\t\t\tmap.put(\"piclist\", mapPicList);\n\t\t\t\tList<Map<String, Object>> userAndActivityList = activityMapper.getParticipateList(activityId);\n\t\t\t\tint count = 0;\n\t\t\t\tfor (Map<String, Object> uaa : userAndActivityList) {\n\t\t\t\t\tcount += Integer.parseInt(uaa.get(\"activity_and_user_persion_count\").toString());\n\t\t\t\t}\n\t\t\t\tmap.put(\"participateCount\", count);\n\t\t\t}\n\t\t}\n\t\treturn activityList;\n\t}", "title": "" }, { "docid": "b0e052670122eb516cd5052450d3c0b9", "score": "0.52211744", "text": "@Override\n public void sincronizza() {\n /* variabili e costanti locali di lavoro */\n Azione azione;\n boolean abilita;\n\n\n try { // prova ad eseguire il codice\n super.sincronizza();\n\n /* regola abilitazione modifica (sempre abilitato se la scheda è valida) */\n azione = this.getPortaleLista().getAzione(Azione.MODIFICA_RECORD);\n abilita = this.isModificaAbilitata();\n azione.setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "title": "" }, { "docid": "a42e198f4422944167f10e4ed2cefc6f", "score": "0.5220962", "text": "public Actividad Asignarpuntaje(int id_activity) {\n\t\tConnection connection = null;\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(url, username, password);\n\t\t\tString sql = \"SELECT a.Word_Activity, a.ID_Difficulty FROM Activity a WHERE a.ID_Activity=?\";\n\t\t\tps = connection.prepareStatement(sql);\n\t\t\tps.setInt(1, id_activity);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\treturn new Actividad(rs.getString(1), rs.getInt(2));\n\t\t\t}\n\t\t\trs.close();\n\t\t\tconnection.close();\n\t\t\treturn new Actividad(null, 0);\n\t\t} catch (Exception e) {\n\t\t\tLogger.getLogger(BDConnector.class.getName()).log(Level.SEVERE, null, e);\n\t\t}\n\t\treturn new Actividad(null, 0);\n\t}", "title": "" }, { "docid": "3bd3e5b4a118c78a3641ea5717e0e48b", "score": "0.52131915", "text": "private void openActivity() {\n }", "title": "" }, { "docid": "ced31a5f792b509d8f7ffab7f6dc696f", "score": "0.5202935", "text": "public void mostrarVentanaCita(){\n \tgetInformacionAgente();\n \t\n \ttry {\n if (itfUsoRepositorioInterfaces == null) {\n itfUsoRepositorioInterfaces = ClaseGeneradoraRepositorioInterfaces.instance();\n }\n\n if (tipoAgenteSecretaria.equals(NombresPredefinidos.TIPO_REACTIVO)) {\n //AgenteAplicacionSecretaria\n ItfUsoAgenteReactivo itfUsoAgente = (ItfUsoAgenteReactivo) itfUsoRepositorioInterfaces.obtenerInterfaz(NombresPredefinidos.ITF_USO + nombreAgenteSecretaria);\n if (itfUsoAgente != null) {\n itfUsoAgente.aceptaEvento(new EventoRecAgte(\"darCita\", \"VisualizacionSecretaria1\", nombreAgenteSecretaria));\n \n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Ha habido un error al mostrar ventana cita \");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "9addb1c8f989f0bf5d9c55e210597936", "score": "0.5202466", "text": "private void returnSumActivity (Bundle ejerAct) {\n ejerAct.putString(\"Ejercicio\", String.valueOf(mCurrentExercise));\n ejerAct.putString(\"Nivel\", String.valueOf(numLevel));\n Intent i = new Intent(this, SumActivity.class);\n i.putExtras(ejerAct);\n startActivity(i);\n }", "title": "" }, { "docid": "6ad3832cad783847a6e7de93bbeb6bcb", "score": "0.52002764", "text": "public void anadeLlamada(DatosLlamada datos) {\n \n \t getInformacionAgente();\n //provoca la petici´┐Żn de autentificaci´┐Żn\n \t try {\n \t \n if (itfUsoRepositorioInterfaces == null) {\n itfUsoRepositorioInterfaces = ClaseGeneradoraRepositorioInterfaces.instance();\n }\n\n if (tipoAgenteSecretaria.equals(NombresPredefinidos.TIPO_REACTIVO)) {\n //AgenteAplicacionSecretaria\n ItfUsoAgenteReactivo itfUsoAgente = (ItfUsoAgenteReactivo) itfUsoRepositorioInterfaces.obtenerInterfaz(NombresPredefinidos.ITF_USO + nombreAgenteSecretaria);\n if (itfUsoAgente != null) {\n itfUsoAgente.aceptaEvento(new EventoRecAgte(\"infoLlamada\", datos, \"VisualizacionSecretaria1\", nombreAgenteSecretaria));\n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Ha habido un error al enviar los datos de la llamada \");\n e.printStackTrace();\n }\n \n }", "title": "" }, { "docid": "6aa8e168c65847b6138e78883d5b872a", "score": "0.5189074", "text": "public void lancement()\r\n\t{\r\n\t\tChoixCombat choixCombat = new ChoixCombat(this.monstres, this.joueur.getCompetences());\r\n\t\tInterfaceCombat fenetre = new InterfaceCombat(this.carte, choixCombat, this.joueur);\r\n\t\t\r\n\t\t\r\n\t\twhile(ResteMonstres() && this.joueur.getPointDeVieActuels() > 0)\r\n\t\t{\r\n\t\t\ttourJoueur(choixCombat, fenetre);\r\n\t\t\ttourMonstres(fenetre);\r\n\t\t\tchoixCombat.setFinDuTour(false);\r\n\t\t\tfenetre.afficheActionBase();\r\n\t\t\tfenetre.afficheInfoJoueur(this.joueur);\r\n\t\t\tfenetre.actualiseFenetre();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t System.exit(0);\r\n\t}", "title": "" }, { "docid": "ff6eea4ce334c6a0a7b251b8db7bea5e", "score": "0.5185926", "text": "private void generarRecursos() {\n menuA = findViewById(R.id.menuA);\n menuAB = findViewById(R.id.menuAB);\n\n //Contador de bombas\n contadorBombasTV = findViewById(R.id.contadorbombs);\n contadorMin = minas;\n contadorBombasTV.setText(\"\" + contadorMin);\n swMinas = true;\n\n //Cronometro al cual le pasamos el TV en el cual va a reflejar el resultado\n cronometro = findViewById(R.id.cronometroTV);\n stopwatch = new StopWatch(cronometro);\n swCronometro = true;\n\n //Boolean del anuncio\n swAnuncio = true;\n swAnuncioCrono = true;\n\n //set de todos los arrays\n tablero = new int[filas][columnas];\n buttons = new Button[filas][columnas];\n pulsado = new boolean[filas][columnas];\n banderas = new int[filas][columnas];\n\n //Cambio de colores de los menus\n colores = new Menus(menuA, menuAB);\n colores.start();\n\n //Creacion del lienzo\n layoutJuego = (RelativeLayout) findViewById(R.id.pintar);\n fondo = new Lienzo(this, filas, columnas);\n layoutJuego.addView(fondo);\n swJuego = true;\n\n //Menu de abajo\n reiniciar = findViewById(R.id.BTNReiniciar);\n salir = findViewById(R.id.BTNSalir);\n sonido = findViewById(R.id.BTNSonido);\n bandera = findViewById(R.id.BTNBanderas);\n swBanderas = false;\n swReanudar = true;\n }", "title": "" }, { "docid": "1f6dc43e38dfab203097a8478a1dda2b", "score": "0.51838404", "text": "public void dodajAktivnostiPosleGlavne(Runnable r){\r\n activitiesAfterMain.add(r);\r\n }", "title": "" }, { "docid": "ff842dd75a8ebe394677f48d5564bc14", "score": "0.5171513", "text": "public void procesaCierre() {\n GestorUI.getInstanciaSingleton().atras();\n }", "title": "" }, { "docid": "e181e65d3d26d9f320e1cf3d1532c55d", "score": "0.517034", "text": "private List<Activity> loadActivities() throws IOException, URISyntaxException {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "title": "" }, { "docid": "379447641c3a494770ee3e25b194a6e6", "score": "0.5169062", "text": "public void onClick(View v) {\n \t Bundle b = getIntent().getExtras();\r\n parametro = b.getIntArray(\"parametro\");\r\n parametro[0]++;\r\n parametro[1]--;\r\n Intent intento = new Intent(Noventa.this, Contextura.class);\r\n \t Bundle c = new Bundle();\r\n \t c.putIntArray(\"parametro\", parametro);\r\n \t intento.putExtras(c); \r\n \t startActivity(intento);\r\n }", "title": "" }, { "docid": "b1c9d380f745793d9f3274dbd87a08f5", "score": "0.516509", "text": "AnnCRUDActivity createAnnCRUDActivity();", "title": "" }, { "docid": "5e0b3e2806bbfd7859fa58b9529173e2", "score": "0.51629186", "text": "private void executarAccao(){\n }", "title": "" }, { "docid": "daccab8ceb5e9902855851143000ad77", "score": "0.5159527", "text": "public void executeElseIfActivity( );", "title": "" }, { "docid": "408bf433a06567591f9b4539cb64d75a", "score": "0.51538527", "text": "public UseractivityExample() {\n oredCriteria = new ArrayList();\n }", "title": "" }, { "docid": "6ac36c52e5125f3f9ae8acea813682a7", "score": "0.51520133", "text": "public static void estatidisticas(int numTiradas) {\r\n \r\n\t\t//TODO usar un HashMap \r\n\t\tSystem.out.println(\"Estadisticas\");\r\n\t}", "title": "" }, { "docid": "a3ec542f1c9d6b6b9e7d02d859773ffb", "score": "0.5145599", "text": "@Query(\"select f from Factibilidad f where f.estatus='FactibilidadEvaluada'\")\r\n\tpublic List<Factibilidad> buscarFactibilidadActivos();", "title": "" }, { "docid": "f50b345a86480dbfc1d99005879b45a5", "score": "0.5144265", "text": "public CtrlProyecto(Activity activity) {\n dao = new ProyectoDAO(activity);\n }", "title": "" }, { "docid": "df435481498a835033b7f307519f4c59", "score": "0.5140575", "text": "private void operations() \n\t{\n\t\tfinal int minOp=0;\n\t\tfinal int maxOp=2;\n\t\t//Per ogni dispositivo\n\t\tfor (int i=0; i<disp.size(); i++)\n\t\t{\n\t\t\t//Creo un numero casuale di operazioni da fare\n\t\t\tRandom rand = new Random();\n\t\t\tint operations = rand.nextInt((maxOp - minOp) + 1) + minOp;\n\t\t\top+=operations;\n\t\t\tfor (int j=0;j<operations;j++)\n\t\t\t{\n\t\t\t\t//Scelgo il destinatario casualmente\n\t\t\t\tint to = rand.nextInt(((disp.size()-1) - 0) + 1) + 0;\n\t\t\t\tif(i!=to)\n\t\t\t\t{\n\t\t\t\t\tString message=new String(\"Messaggio inviato da \"+i+\" a \"+to+\".\");\n\t\t\t\t\tint bro = rand.nextInt((1 - 0) + 1) + 0;\n\t\t\t\t\tboolean br=false;\n\t\t\t\t\t//Se e' un broadcast, devo inviarla a tutti\n\t\t\t\t\tif(bro==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tbr=true;\n\t\t\t\t\t\tfor(int k=0; k<disp.size(); k++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (k!=i)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisp.get(i).addOp(new Operation(disp.get(i), disp.get(k), message, i, to, br));\n\t\t\t\t\t\t\t\top+=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"Operazione di broadcast aggiunta da \"+i);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tdisp.get(i).addOp(new Operation(disp.get(i), disp.get(to), message, i, to, br));\n\t\t\t\t\t\top+=1;\n\t\t\t\t\t\tSystem.out.println(\"Operazione aggiunta da \"+i+\" a \"+to);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tSystem.out.println(\"-----------\");\n\t\t}\n\t\t\n\t\tfor (int i=0; i<disp.size(); i++)\n\t\t{\n\t\t\tdisp.get(i).setOperations(op);\n\t\t}\n\t}", "title": "" }, { "docid": "fe81d781a8357fd0ac8680d2dca134d0", "score": "0.51403517", "text": "public void iniciarCronometro() {\n\n cronometroActivo = true;\n hilo = new Thread(this);\n hilo.start();\n \n }", "title": "" }, { "docid": "8878580e122de19b0147472aa93e722d", "score": "0.5138617", "text": "public void onClick$btnPlanificacionActividad() {\n\t\tComponent catalogoPlanificarActividad = Executions.createComponents(\r\n\t\t\t\t\"/Logistica/Vistas/frmCatalogoActividad.zul\", null, null);\r\n\r\n\t\t// asigna una referencia del formulario al catalogo.\r\n\t\tcatalogoPlanificarActividad.setVariable(\"frmPrestamoDevolucion\",\r\n\t\t\t\tfrmPrestamoDevolucion, false);\r\n\r\n\t\t// Este metodo se llama cuando se envia la seņal desde el catalogo\r\n\t\tfrmPrestamoDevolucion.addEventListener(\"onCatalogoActividadCerrado\",\r\n\t\t\t\tnew EventListener() {\r\n\r\n\t\t\t\t\tpublic void onEvent(Event arg0) throws Exception {\r\n\t\t\t\t\t\tactividad = new Actividad();\r\n\t\t\t\t\t\tactividad = (Actividad) frmPrestamoDevolucion\r\n\t\t\t\t\t\t\t\t.getVariable(\"actividad\", false);\r\n\t\t\t\t\t\tonClick$menuTodasP();\r\n\t\t\t\t\t\tbinder.loadAll();\r\n\t\t\t\t\t\targ0.stopPropagation();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t}", "title": "" }, { "docid": "6ff16d80dd280cc46d3b688ffea89ed5", "score": "0.5136611", "text": "public void mostrarVentanaExtra(String medico, String fecha){\n \tgetInformacionAgente();\n \tDatosLlamada datos= new DatosLlamada(medico,fecha);\n \ttry {\n if (itfUsoRepositorioInterfaces == null) {\n itfUsoRepositorioInterfaces = ClaseGeneradoraRepositorioInterfaces.instance();\n }\n\n if (tipoAgenteSecretaria.equals(NombresPredefinidos.TIPO_REACTIVO)) {\n //AgenteAplicacionSecretaria\n ItfUsoAgenteReactivo itfUsoAgente = (ItfUsoAgenteReactivo) itfUsoRepositorioInterfaces.obtenerInterfaz(NombresPredefinidos.ITF_USO + nombreAgenteSecretaria);\n if (itfUsoAgente != null) {\n itfUsoAgente.aceptaEvento(new EventoRecAgte(\"anadirExtraV\", datos,\"VisualizacionSecretaria1\", nombreAgenteSecretaria));\n \n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Ha habido un error al enviar el a˝adir extra \");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "483c86ad48d6fe3a93dde6822e93d30f", "score": "0.5133461", "text": "private EmotionEntry.activities getActivity(Scanner sc){\n System.out.println(\"What type of activity are your doing? Choose one of the following: \");\n //this lets us build the menu from the enum...great for refactoring\n for (int i = 1; i <= EmotionEntry.activities.values().length; i++ ){\n System.out.println(i + \".\" + EmotionEntry.activities.values()[i-1]);\n }\n return EmotionEntry.activities.values()[((getIntValue(sc,1,EmotionEntry.activities.values().length)) -1)];\n }", "title": "" }, { "docid": "8ad8ac1d198c0c2cfbfaf4d05f71e371", "score": "0.5126585", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.time_task_acitivity);\n setTitle(\"定时任务\");\n setNaView(R.drawable.left_back_selector, \"\", 0, \"\", 0, \"\", R.drawable.right_finsh_selector, \"\");\n timetask_layout = (FrameLayout) findViewById(R.id.timetask_layout);\n type = (FrameLayout) findViewById(R.id.time_type_layout);\n aciton = (FrameLayout) findViewById(R.id.time_action_layout);\n way = (TextView) findViewById(R.id.time_way);\n type_t = (TextView) findViewById(R.id.timetask_type_info);\n action_t = (TextView) findViewById(R.id.time_action_text);\n text_view = (TextView) findViewById(R.id.time_porit);\n time_porit = (LinearLayout) findViewById(R.id.time_porit_layout);\n time_task_description = (EditText) findViewById(R.id.time_task_description);\n\n timetask_layout.setOnClickListener(this);\n type.setOnClickListener(this);\n aciton.setOnClickListener(this);\n time_porit.setOnClickListener(this);\n getIntentData();\n }", "title": "" }, { "docid": "e352f159939d4822bffc76d76be27997", "score": "0.511895", "text": "public void listarClick(View view){\n Intent i = new Intent(this, SegundaActivity.class);\n\n //ArrayList donde almacenaremos el contenido\n ArrayList<String> contenido = new ArrayList<String>();\n\n //Crear la base de datos con los datos correspondientes\n AdminSQLiteOpenHelper instituto = new AdminSQLiteOpenHelper(this, \"instituto\", null, 1);\n //Instancia referenciando base de datos ABIERTA par escritura\n SQLiteDatabase BaseDeDatos = instituto.getReadableDatabase();\n\n String sentencia = \"select * from alumnos\";\n //Creamos un cursor que es una referencia al conjunto de filas que devuelve un seclect;\n Cursor resultado = BaseDeDatos.rawQuery(sentencia, null); //El null hace referencia a las columnas del cursor con las que queremos trabajar, en este caso todas\n\n //Mover el cursor al principio de los datos devueltos por la consulta, devuelve si se puede mover correctamente o no (boolean),\n // es decir hay datos en esa posicion\n if(resultado.moveToFirst()) {\n //Seguieremos recorriendo el cursor mientras no nos encontremos en la posicion de despues del ultimo elemento del cursor\n while (!resultado.isAfterLast()){\n //Obtener los datos del resultado del select (cursor)\n String id = resultado.getString(0);\n String nom = resultado.getString(1);\n String res = resultado.getString(2);\n String ed = resultado.getString(3);\n String cur = resultado.getString(4);\n\n //Añadir el dato leido al listado\n contenido.add(id+\" - \"+nom+ \" | Residencia: \"+res+\" | Edad: \"+ed+\" años | Curso: \"+cur);\n\n //Avanzamos el cursor al siguiente elemento\n resultado.moveToNext();\n }\n }else\n contenido.add(\"No se han encontrado datos\");\n\n //Cerramos la base de datos para no dejarla abierta\n BaseDeDatos.close();\n\n //Pasar a la siguiente activity el contenido a mostrar\n i.putExtra(\"contenido\", contenido);\n //Abrir la siguiente activity\n startActivity(i);\n }", "title": "" }, { "docid": "ee65ec9449c9823915258658a686e7fc", "score": "0.51093", "text": "private void lanzarVentanaModoUso() {\r\n Mensaje.mostrar(contenedorGlobal, ventanaModoUso);\r\n }", "title": "" }, { "docid": "1e1f3acba231aa96eba169ab55b2ef26", "score": "0.51077366", "text": "private void AbrirCristales() {\n \n }", "title": "" }, { "docid": "eca60f7de27407bd0e8e8173d5cfdef0", "score": "0.5107247", "text": "public void onClick(View v) {\n String cod_tarefa1 = listaTarefas1.getString(listaTarefas1.getColumnIndex(\"Id_Original\"));\r\n Intent intent = new Intent(this, ProcessosAtivosActivity.class);\r\n startActivity(intent);\r\n }", "title": "" }, { "docid": "f533678235106ccf52cfb4567dbece60", "score": "0.51039916", "text": "public void seleccOpcAnt() {\r\n switch (this.TipoAntIng) {\r\n case \"AntiGen\": // Carga informacion para un anticipo general\r\n this.ListSelectAvaluo = new ArrayList<>();\r\n this.ListSelectAvaluo = Ant.CargInfAvaluoGen(mBSesion.codigoMiSesion());\r\n Anti = new LogAnticipo();\r\n break;\r\n case \"Cliente\": // Carga informacion de varios anticipos que se encuentren asociados dentro cliente\r\n this.ListClienPerFac = new ArrayList<>();\r\n this.ListClienPerFac = Client.ConsultaClienPerFact(2, 0);\r\n Cli = new LogCliente();\r\n break;\r\n case \"AntiEspecial\": //Carga especificaciones para cada uno de los avaluos que se van a facturar y son varios o tambien varios clientes\r\n\r\n this.Lstcles = new ArrayList<>();\r\n this.Lstcles = Client.ConsultaClienPerFact(2, 0);\r\n Cli = new LogCliente();\r\n break;\r\n }\r\n }", "title": "" } ]
91a256ff2594cf8afc72d02401e8e090
required string waveId = 1; Wave to open, URI path format.
[ { "docid": "20772fb0a15adf914ffd6b30827cb970", "score": "0.60406274", "text": "public java.lang.String getWaveId() {\n java.lang.Object ref = waveId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n waveId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" } ]
[ { "docid": "f2680008e678b134aecd433e618ffb05", "score": "0.6599705", "text": "public Builder setWaveId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n waveId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bfc08654fdf3d71a3f4bc12093092d41", "score": "0.64326364", "text": "java.lang.String getWaveId();", "title": "" }, { "docid": "8f9f01d98a55950eaf3d42ca09b23014", "score": "0.6309841", "text": "String serialiseWaveId(WaveId waveId);", "title": "" }, { "docid": "392ee03811333afa026e4110f8ff81ae", "score": "0.61413264", "text": "public com.google.protobuf.ByteString\n getWaveIdBytes() {\n java.lang.Object ref = waveId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n waveId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "4045460d86e8e5044387403984caeb06", "score": "0.61159104", "text": "public Builder setWaveIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n waveId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3124cd3c446e1f594ec0a7c34c2cd17f", "score": "0.60253656", "text": "public com.google.protobuf.ByteString\n getWaveIdBytes() {\n java.lang.Object ref = waveId_;\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 waveId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "5ef6062ee4989d1c59fe53c81cd025b9", "score": "0.59543884", "text": "public java.lang.String getWaveId() {\n java.lang.Object ref = waveId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n waveId_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "244bb805e3a7530479e52f3bd27db588", "score": "0.5888274", "text": "java.lang.String getWaveletId();", "title": "" }, { "docid": "244bb805e3a7530479e52f3bd27db588", "score": "0.5888274", "text": "java.lang.String getWaveletId();", "title": "" }, { "docid": "c4dade9519eb6de4203d440528002c9d", "score": "0.564266", "text": "public Builder setWaveletId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n waveletId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a6729e24ada7c4f577e1f48b6144e63b", "score": "0.56053925", "text": "public Builder setWaveletId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n waveletId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c9e8a8b10f214da1d85775ce24d67109", "score": "0.55261105", "text": "com.google.protobuf.ByteString\n getWaveIdBytes();", "title": "" }, { "docid": "e06a2ea2bed7ae6d6c726371ab9468f3", "score": "0.54955214", "text": "String serialiseWaveletId(WaveletId waveletId);", "title": "" }, { "docid": "9f27440805da449ce87fd67418225199", "score": "0.5461824", "text": "private void playSound(String wav) {\n try {\n File file = new File(wav).getAbsoluteFile();\n AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(file);\n Clip clip = AudioSystem.getClip();\n clip.open(audioInputStream);\n clip.start();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "9cf863b69b8056c7a53b2e2c04dda5c7", "score": "0.54598135", "text": "WaveId deserialiseWaveId(String serialisedForm) throws InvalidIdException;", "title": "" }, { "docid": "72e7a634401352f2b7f2c3db9b8fbe3a", "score": "0.54190975", "text": "private String formRecordingStoreUrl() {\r\n\t\tfinal TrafficInterfaceAddressRetrieverImpl addressRetriever = new TrafficInterfaceAddressRetrieverImpl();\r\n\t\tfinal String trafficInterfaceAddress = addressRetriever\r\n\t\t\t\t.getTrafficInterfaceAddress();\r\n\t\tfinal String myServiceName = ServiceUtil.getServiceDescriptor()\r\n\t\t\t\t.getName();\r\n\t\tfinal StringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"http://\").append(trafficInterfaceAddress)\r\n\t\t\t\t.append(\"/services/\").append(myServiceName)\r\n\t\t\t\t.append(\"/StoreRecordingServlet/\").append(\"recording\")\r\n\t\t\t\t.append(myServiceName).append(\".wav\");\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "ba1e4a26bbc44255eef257912a16de71", "score": "0.5369156", "text": "public abstract int getAudioPath();", "title": "" }, { "docid": "e672a746756329d4c9b2fccf017e12a2", "score": "0.5349015", "text": "@Override\n public WaveId newWaveId() {\n return new WaveId(domain, newId(WAVE_PREFIX, 72));\n }", "title": "" }, { "docid": "9ed1d4225012e6b9c583685e5e0e4d6f", "score": "0.5301524", "text": "public Builder setWaveletIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n waveletId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e5116665cee74f967d6aa392d925581", "score": "0.52926695", "text": "AudioProcessableFile getWAVAudioProcessableFile();", "title": "" }, { "docid": "c9d020fcde38ca508fb19136a1a5e305", "score": "0.52872115", "text": "boolean hasWaveId();", "title": "" }, { "docid": "e25a8f0fb9225f50eb16b6133ffe5ea0", "score": "0.5269654", "text": "public Builder setWaveletIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n waveletId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f9c9584bef0fe56af569e1e7788df81a", "score": "0.5256521", "text": "public Builder clearWaveId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n waveId_ = getDefaultInstance().getWaveId();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "04d7e1b11fb985ebb9b4c694426d0563", "score": "0.5167525", "text": "public IMOps wave(\n Double amplitude,\n Double wavelength)\n {\n\n String oper; // only used in some methods\n StringBuffer buf = new StringBuffer(); // local buffer for option-args\n iCmdArgs.add(\"-wave\");\n\n if (amplitude != null)\n {\n buf.append(amplitude.toString());\n }\n buf.append(\"x\");\n if (wavelength != null)\n {\n buf.append(wavelength.toString());\n }\n if (buf.length() > 0)\n {\n iCmdArgs.add(buf.toString());\n }\n return this;\n }", "title": "" }, { "docid": "16acc1668c8ac031ff353c4ebf1fe724", "score": "0.5164995", "text": "public boolean hasWaveId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "698f589059d73e8d80e4a400e8a1a911", "score": "0.51629424", "text": "public int getWaveNumber() {\n return wave.getNumber();\n }", "title": "" }, { "docid": "7ff71fb8fc12bccb217f192473e8faa8", "score": "0.5158759", "text": "public void setWaveLength( Integer WaveLength) {\n this.waveLength = WaveLength;\n }", "title": "" }, { "docid": "f313fb1f400b9604b9eae5ebf19c4d31", "score": "0.51441354", "text": "@Path(\"/sample\")\n @GET\n @Produces(\"video/mp4\")\n public File getDocumentarySample(@QueryParam(\"id\") int id){\n \n \n //get the documentary with the given id from DB\n Documentary documentary = selectDocumentaryFromDB(id) ;\n\n //proceed if there's a documentary with that id, it has a sample and the documentary file exists\n if(documentary != null && documentary.getSample() != null){\n\n //create file for the sample\n File file = new File(documentary.getSample()) ;\n \n //return the file if it exists\n if(file.exists())\n return file ;\n\n }\n \n //return null if any of the above conditions fail\n return null ;\n \n }", "title": "" }, { "docid": "70dac7d18bfe038305284ee959f56cd8", "score": "0.51382047", "text": "public boolean hasWaveId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "ee17557ad0989c93e3d330745bc995a9", "score": "0.5102386", "text": "public WaveEvent(String[] waveData){\n waveNumber = Integer.parseInt(waveData[0]);\n eventType = waveData[1];\n waveProgress = \"Awaiting Start\";\n eventProgress = \"Awaiting Start\";\n }", "title": "" }, { "docid": "7e69c2e745a100448f09a70ccea9546a", "score": "0.5071261", "text": "public java.lang.String getWaveletId() {\n java.lang.Object ref = waveletId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n waveletId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7fb81adf69afc945e9ffde5eea3ae583", "score": "0.50674516", "text": "public java.lang.String getWaveletId() {\n java.lang.Object ref = waveletId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n waveletId_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "3d9a17f2548cd21771a40853225a5dc9", "score": "0.5066572", "text": "public int getWaveNum() {\n return waveNum;\n }", "title": "" }, { "docid": "a4a6838c018e3f5d7b50038603b16910", "score": "0.50538117", "text": "public java.lang.String getWaveletId() {\n java.lang.Object ref = waveletId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n waveletId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "46b5db4fd1297f01eb2fbecf712ff1a1", "score": "0.5050129", "text": "public String getAudioURI() {\n\t\treturn audioReference;\n\t}", "title": "" }, { "docid": "6124ed6f897153ef7bee4c799f39d0a9", "score": "0.50262225", "text": "public com.google.protobuf.ByteString\n getWaveletIdBytes() {\n java.lang.Object ref = waveletId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n waveletId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "f899b33535edd8d25a701b96e053153b", "score": "0.50103766", "text": "public java.lang.String getWaveletId() {\n java.lang.Object ref = waveletId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n waveletId_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "4f787b0481526106609285eb09f48727", "score": "0.5002392", "text": "public static void playSound() {\r\n URL soundbyte;\r\n\r\n try {\r\n soundbyte = new File(\"./data/dingSound.wav\").toURI().toURL();\r\n java.applet.AudioClip clip = java.applet.Applet.newAudioClip(soundbyte);\r\n clip.play();\r\n } catch (MalformedURLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "6bf6c97bdcf106da471a1087efe8d1bd", "score": "0.49984497", "text": "public com.google.protobuf.ByteString\n getWaveletIdBytes() {\n java.lang.Object ref = waveletId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n waveletId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "f6563e831a31c4ec4c9792d93499d588", "score": "0.49947277", "text": "public com.google.protobuf.ByteString\n getWaveletIdBytes() {\n java.lang.Object ref = waveletId_;\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 waveletId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "ded7478c1c27c10a56b70173611638da", "score": "0.49619588", "text": "public IMOps wave()\n {\n\n String oper; // only used in some methods\n StringBuffer buf = new StringBuffer(); // local buffer for option-args\n iCmdArgs.add(\"-wave\");\n\n if (buf.length() > 0)\n {\n iCmdArgs.add(buf.toString());\n }\n return this;\n }", "title": "" }, { "docid": "9e235e7c331b352872154aa16a0fb782", "score": "0.49284685", "text": "public IMOps wave(\n Double amplitude)\n {\n\n String oper; // only used in some methods\n StringBuffer buf = new StringBuffer(); // local buffer for option-args\n iCmdArgs.add(\"-wave\");\n\n if (amplitude != null)\n {\n buf.append(amplitude.toString());\n }\n if (buf.length() > 0)\n {\n iCmdArgs.add(buf.toString());\n }\n return this;\n }", "title": "" }, { "docid": "b6bb1b540c9ff10f3b94301d9c41b4b8", "score": "0.4927635", "text": "public abstract void startWaveEvent(List path);", "title": "" }, { "docid": "9193c78688fb117406b421f735df892f", "score": "0.49246722", "text": "public com.google.protobuf.ByteString\n getWaveletIdBytes() {\n java.lang.Object ref = waveletId_;\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 waveletId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "fa611843c291c8969563b8e78e5273f1", "score": "0.49126267", "text": "int getWaveNumber();", "title": "" }, { "docid": "91f80fb5d213f0285bcf4a32dbbca851", "score": "0.48961276", "text": "private void staticFromFile() {\n File mediaFile = new File(MEDIA_PATH.concat(\"/starwars.wav\"));\n FileInputStream fis = null;\n byte[] music = null;\n int FILE_BYTE_SIZE = 0;// command line: wc -c click.wav\n\n /*\n * WAV files always contain a header section of 44 bytes (11 frames)\n */\n try {\n fis = new FileInputStream(mediaFile);\n music = new byte[fis.available()-44];\n fis.read(music, 44*Byte.BYTES, music.length);\n fis.close();\n } catch ( Exception e) {\n e.printStackTrace();\n }\n mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC,\n SAMPLE_RATE,\n AudioFormat.CHANNEL_OUT_STEREO,\n AudioFormat.ENCODING_PCM_16BIT,\n FILE_BYTE_SIZE ,\n AudioTrack.MODE_STATIC);\n\n mAudioTrack.write(music, 0, music.length);\n mAudioTrack.play();\n }", "title": "" }, { "docid": "0eb85ee0a4e8d7f89853161930c8c1a6", "score": "0.4876196", "text": "protected void playWavFile(String fileName) {\n File file2play = new File(fileName);\n Intent i = new Intent();\n i.setAction(Intent.ACTION_VIEW);\n i.setDataAndType(Uri.fromFile(file2play), \"audio/wav\");\n startActivity(i);\n }", "title": "" }, { "docid": "adb2232e2015af3f1044bd544fd0b320", "score": "0.4851431", "text": "public Uri getSoundPath(){\n WeatherTypes currWeatherType = getWeather();\n return soundPath(currWeatherType);\n }", "title": "" }, { "docid": "28333623fe39298b6ce06630f217e77b", "score": "0.4842568", "text": "com.google.protobuf.ByteString\n getWaveletIdBytes();", "title": "" }, { "docid": "8586de018d0f99670d05cb26d4642258", "score": "0.48403654", "text": "public static void sound2(){\n File play = new File (\"C:\\\\Users\\\\vn317722\\\\Desktop\\\\New folder\\\\FinalProject\\\\src\\\\sounds\\\\foot step 5.wav\");\n PlaySound(play);\n}", "title": "" }, { "docid": "e4fe63b1d9cb70b1b8ab7e28a6c27027", "score": "0.48394492", "text": "boolean hasWaveletId();", "title": "" }, { "docid": "e4fe63b1d9cb70b1b8ab7e28a6c27027", "score": "0.48394492", "text": "boolean hasWaveletId();", "title": "" }, { "docid": "7c649dd93aacaa8f2955f25f71934e34", "score": "0.48123047", "text": "public Track(long id, String title, int length, String albumTitle, String band, String soundfile) {\n this.id = id;\n this.title = title;\n this.length = length;\n this.albumTitle = albumTitle;\n this.band = band;\n this.soundfile = soundfile;\n }", "title": "" }, { "docid": "5cf4a3be5b5a57f2dae38cabaf916ecd", "score": "0.480215", "text": "public void setWaveLevel(int waveLevel) {\r\n\t\tthis.waveLevel = waveLevel;\r\n\t}", "title": "" }, { "docid": "aac7441c8b7e612441e1a2cde3c435a4", "score": "0.48011664", "text": "public int getWaveNumber(){\n return waveNumber;\n }", "title": "" }, { "docid": "8c7f3a1a4dcfdfd17a58a725b0d86fa2", "score": "0.47776097", "text": "public Recording createRecordingObject(){\n DateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH-mm-ss\");\n Date d = new Date();\n String dateAndTime = dateFormat.format(d);\n String[] dateAndTimeArray = dateAndTime.split(\" \");\n\n String date = dateAndTimeArray[0];\n String time = dateAndTimeArray[1];\n String stringName = getName();\n\n\n String path = NamesModel.USER_RECORDINGS_DIRECTORY + \"/se206_\" + date + \"_\" + time + \"_\" + stringName + \".wav\";\n\n String trimmedPath = NamesModel.TRIMMED_NORMALISED_DIRECTORY + \"/\" + path;\n\n return new Recording(stringName, date, path, trimmedPath, time);\n }", "title": "" }, { "docid": "c4e7ca5ee2e6b98e36335dc3abe97825", "score": "0.47634637", "text": "public abstract void setAudioPath(int path);", "title": "" }, { "docid": "f2a3660c54f680964f9e998850e77652", "score": "0.47364643", "text": "private void loadSoundClip(String ID, URL url){\n AudioClip sound = new AudioClip(url.toExternalForm());\n sounds.put(ID, sound);\n }", "title": "" }, { "docid": "ab0ca9db39f744759b0a22224eb019c8", "score": "0.47326702", "text": "public void setWaveLog(StringBuffer waveLog) {\r\n\t\tthis.waveLog = waveLog;\r\n\t}", "title": "" }, { "docid": "a7ca41e434ea2e7160e6bc917a046b64", "score": "0.47301835", "text": "private void streamFromFile() {\n byte[] byteData = new byte[512];\n File mediaFile = new File(MEDIA_PATH.concat(\"/starwars.wav\"));\n// File mediaFile = new File(MEDIA_PATH.concat(\"/terminator.wav\"));\n FileInputStream in = null;\n\n mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC,\n SAMPLE_RATE,\n AudioFormat.CHANNEL_OUT_STEREO,\n AudioFormat.ENCODING_PCM_16BIT,\n MINBUFF_SIZE,\n AudioTrack.MODE_STREAM);\n\n mAudioTrack.play();\n\n\n int i = 0;\n try {\n in = new FileInputStream(mediaFile);\n while( (i = in.read(byteData)) != -1) {\n mAudioTrack.write(byteData, 0, i);\n Log.d(getClass().getName(), i + \" samples: \" + Arrays.toString(byteData));\n }\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "3a415e8dca876e05bc33b5d23a543484", "score": "0.4724874", "text": "Wave nextWave();", "title": "" }, { "docid": "97cf54735fb5c10b4dd4dcde7752a947", "score": "0.47091663", "text": "private String createWAV(String message, String freq, String amp) {\n // create encripted message and byesString\n StringBuilder sbm = new StringBuilder();\n StringBuilder sbb = new StringBuilder();\n for (int i = message.length()-1; i > -1 ; i--) {\n String letter = this.encriptionDict.get((String.valueOf(message.charAt(i)))+\" \");\n System.out.println(letter);\n sbm.append(letter);\n sbb.append(this.binaryDict.get(letter+\" \"));\n }\n\n String binaryString1 = sbb.toString();\n String binaryString = new StringBuilder(binaryString1).reverse().toString();\n\n // create WAV file\n String[] args = new String[5];\n args[0] = freq;\n args[1] = amp;\n args[2] = message;\n args[3] = binaryString;\n args[4] = this.transmitMethod;\n\n String filePath = com.coder.am_fmcoder.CreateSine.main(args, this.mContext);\n return filePath;\n\n }", "title": "" }, { "docid": "4eade5cf530b581f41806cbe1ae860ec", "score": "0.4683071", "text": "com.google.protobuf.ByteString\n getWaveletIdBytes();", "title": "" }, { "docid": "962a0ac48ee4edb94ac0fe728ec2117c", "score": "0.46568415", "text": "@Path(\"/data\")\n @GET\n @Produces(\"video/mp4\")\n public File getDocumentaryData(@QueryParam(\"id\") int id){\n \n \n //get the documentary with the given id from DB\n Documentary documentary = selectDocumentaryFromDB(id) ;\n\n //proceed if there's a documentary with that id, it has a uri and the documentary file exists\n if(documentary != null && documentary.getUri() != null){\n\n //create file for the data\n File file = new File(documentary.getUri()) ;\n \n //return the file if it exists\n if(file.exists())\n return file ;\n\n }\n \n //return null if any of the above conditions fail\n return null ;\n \n }", "title": "" }, { "docid": "b3f5e7ed1c9f2077d5d8c0987452b6d7", "score": "0.46454224", "text": "public void setWaveNum(int newWaveNum) {\n if (newWaveNum >= 1 && newWaveNum <= MAX_WAVE_NUM) {\n waveNum = newWaveNum;\n }\n else {\n throw new IllegalArgumentException(\n \"New wave number must be between 1-10 (inclusive). Given: \" + newWaveNum);\n }\n }", "title": "" }, { "docid": "6ba3847f1bfb3df82109c3df645bcdd6", "score": "0.46424308", "text": "void waveStarted();", "title": "" }, { "docid": "50a3bd09e6aa73735462a3509043d4fe", "score": "0.46406096", "text": "public void buildWave()\n {\n waveTable = new double[sampleRateInHz];\n noteBuffer = new short[sampleRateInHz];\n\n for (int i = 0; i < waveTable.length; i++)\n {\n waveTable[i] = Math.sin((2.0 * Math.PI * i / (sampleRateInHz / frequency)));\n noteBuffer[i] = (short) (waveTable[i] * Short.MAX_VALUE);\n }\n }", "title": "" }, { "docid": "04ae9c0ae1fdbbe10878f15b0b6939d1", "score": "0.46395484", "text": "public void start() {\r\n\t \tint result = 0;\r\n\t try {\r\n\t \t\r\n\t \t\r\n\t \t/*\r\n\t \tString path = this.getClass().getClassLoader().getResource(\"\").getPath();\r\n\t \tString fullPath = URLDecoder.decode(path, \"UTF-8\");\r\n\t \tString pathArr[] = fullPath.split(\"/WEB-INF/classes/\");\r\n\t \tSystem.out.println(fullPath);\r\n\t \tSystem.out.println(pathArr[0]);\r\n\t \tfullPath = pathArr[0];\r\n\t \tString reponsePath = \"\";\r\n\t \t// to read a file from webcontent\r\n\t \treponsePath = new File(\\\\fullPath).getPath() + File.separatorChar + \"WebContent\\\\recodingTemp\\\\newfile.wav\";\r\n\t \t\r\n\t \t String filedata1 = reponsePath;\r\n\t \t System.out.println(reponsePath);\r\n\t \t */\r\n\t \t \r\n\t \t\r\n\r\nString filedata1 = \"recodingTemp\\\\newfile.wav\";\r\nServletContext servletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();\r\nString newFileName = servletContext.getRealPath(\"\") + File.separator+ filedata1;\r\n\r\n\t \t\r\nSystem.out.println(newFileName);\r\n\t \t \r\n\t \t // path of the wav file\r\n\t \t File wavFile = new File(newFileName);\r\n\t \t \r\n\t \t // format of audio file\r\n\t \t AudioFileFormat.Type fileType = AudioFileFormat.Type.WAVE;\r\n\t \t \r\n\t \t \r\n\t \t\r\n\t \t\r\n\t \t\r\n\t AudioFormat format = getAudioFormat();\r\n\t DataLine.Info info = new DataLine.Info(TargetDataLine.class, format);\r\n\t \r\n\t // checks if system supports the data line\r\n\t if (!AudioSystem.isLineSupported(info)) {\r\n\t System.out.println(\"Line not supported\");\r\n\t System.exit(0);\r\n\t }\r\n\t line = (TargetDataLine) AudioSystem.getLine(info);\r\n\t line.open(format);\r\n\t line.start(); // start capturing\r\n\t \r\n\t System.out.println(\"Start capturing...\");\r\n\t \r\n\t AudioInputStream ais = new AudioInputStream(line);\r\n\t \r\n\t System.out.println(\"Start recording...\");\r\n\t \r\n\t // start recording\r\n\t AudioSystem.write(ais, fileType, wavFile);\r\n\t System.out.println(\"Start recording122...\"+ais);\r\n\t \r\n\t \r\n\t byte[] bFile = readBytesFromFile(filedata1);\r\n\t // AudioSystem.write(ais.getFrameLength());\r\n\t // String filePath = \"f:/Test/new.txt\";\r\n\t\t \t\r\n\t soundrecord = bFile ;\r\n\t //\tbyte[] jj=null;\r\n\t \r\n\t result = newrequestInterface.soundrecoder(bFile,filedata1);\r\n\t \r\n\t \r\n\t \t \r\n\t \r\n\t \r\n\t \r\n\t } catch (LineUnavailableException ex) {\r\n\t ex.printStackTrace();\r\n\t } catch (IOException ioe) {\r\n\t ioe.printStackTrace();\r\n\t } catch (Exception 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 }", "title": "" }, { "docid": "9682b31fef6a6608145c98015825ea58", "score": "0.46340716", "text": "private void recordAudio() {\r\n\t\ttry {\r\n\t\t\tadFormat = getAudioFormat();\r\n\t\t\tDataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, adFormat);\r\n\t\t\ttargetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);\r\n\t\t\ttargetDataLine.open(adFormat);\r\n\t\t\ttargetDataLine.start();\r\n\t\r\n\t\t\tThread recordThread = new Thread(new recordThread());\r\n\t\t\trecordThread.start();\r\n\t\t} catch (Exception e) {\r\n\t\t\tStackTraceElement stackEle[] = e.getStackTrace();\r\n\t\t\tfor (StackTraceElement val : stackEle) {\r\n\t\t\t\tSystem.out.println(val);\r\n\t\t\t}\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0b8512d6fa5de6d32ba7274450b5295d", "score": "0.46160454", "text": "WaveletId deserialiseWaveletId(String serialisedForm) throws InvalidIdException;", "title": "" }, { "docid": "cb45a2f0996267a0e387cad81275644d", "score": "0.4596141", "text": "public String playMp3Path(byte[] byteWav) {\n String path = android.os.Environment.getExternalStorageDirectory() + File.separator;\n try {\n File file = new File(path);\n if (!file.exists()) {\n file.mkdirs();\n }\n File tempWav = new File(file, \"temp.mp3\");\n if (!tempWav.exists()) {\n tempWav.createNewFile();\n }\n FileOutputStream fos = new FileOutputStream(tempWav);\n fos.write(byteWav);\n fos.flush();\n fos.close();\n return path + \"temp.mp3\";\n } catch (Exception e) {\n }\n return null;\n }", "title": "" }, { "docid": "b172f7c31399e7ca3e3c8348cff6b8f7", "score": "0.45923436", "text": "public String getAudioFile()\n\t{\n\t\treturn fAudioPath;\n\t}", "title": "" }, { "docid": "45ee8fe10f19352e36ddf3285431531d", "score": "0.45874053", "text": "public void LoadSoundEffect(String id, String filename){\n File soundFile = new File(filename);\n try{\n AudioInputStream audioIn = getAudioInputStream(soundFile);\n // Get a clip resource.\n Clip clip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n clip.open(audioIn);\n //put in hash map\n soundHash.put(id, clip);\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "83593f18e5591a0caa16caff3c2b8fe4", "score": "0.4582207", "text": "public void startMedia(int id) {\n Bundle solo = new Bundle();\n try {\n //Getting all details(title, artist and image) of song clicked by user from service\n solo = mMediaService.getAll(id);\n String title = solo.getString(\"title\");\n String artist = solo.getString(\"artist\");\n byte[] imgs = solo.getByteArray(\"image\");//Getting image as byteArray from service\n Bitmap img = BitmapFactory.decodeByteArray(imgs, 0,imgs.length);\n //Getting URL from service for the song clicked by user\n String url1 = mMediaService.getURLOfOne(id);\n //Displaying details(Title, artist, image) for song being played\n titleV.setText(title);\n artistV.setText(artist);\n imageV.setImageBitmap(img);\n // Starting Media Player using object created of class containing media player\n ap.playAudio(url1);\n } catch (Exception e) {\n Log.e(TAG, e.toString());\n }\n }", "title": "" }, { "docid": "dd2ead45b6d84e4111abb3f913c6257f", "score": "0.4578231", "text": "public void Transmit(String message, String freq, String amp) {\n System.out.println(\"bindict: \"+this.binaryDict);\n System.out.println(\"encdict: \"+this.encriptionDict);\n System.out.println(\"trsMeth: \"+this.transmitMethod);\n\n // check if WAV file exists\n String path = this.mContext.getFilesDir() + \"/\" +\n ((message.concat(this.transmitMethod)).concat(freq)).concat(amp) + \".wav\";\n System.out.println(\"path = \" + path);\n File file = new File(path);\n if (!file.exists()){\n String filepath = this.createWAV(message, freq, amp);\n System.out.println(\"path = \" + filepath);\n player = new MediaPlayer();\n player.setOnPreparedListener(this);\n player.setOnErrorListener(this);\n try {\n player.setDataSource(filepath);\n player.prepare();\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n } catch (Exception e) {\n System.out.println(\"Exception of type : \" + e.toString());\n e.printStackTrace();\n }\n player.start();\n }\n\n else {\n player = new MediaPlayer();\n player.setOnPreparedListener(this);\n try {\n player.setDataSource(path);\n player.prepare();\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n } catch (Exception e) {\n System.out.println(\"Exception of type : \" + e.toString());\n e.printStackTrace();\n }\n player.start();\n\n }\n\n }", "title": "" }, { "docid": "16e283f38dcfffad4a3df6912c8c6288", "score": "0.45769334", "text": "public static String getSongUri(String mediaId) {\n String retVal = SONG_PREFIX + getMusicRawResource(mediaId);\n\n Log.d(TAG, \"getSongUri retVal=\" + retVal);\n\n return retVal;\n }", "title": "" }, { "docid": "1709cf1d681383bb3fac58b674497a93", "score": "0.45459887", "text": "private URI getReadUri(String id) throws URISyntaxException {\n StringBuilder stringBuilder = new StringBuilder(API_BASE_URI);\n stringBuilder.append(READ_PATH);\n stringBuilder.append(id);\n return new URI(stringBuilder.toString());\n }", "title": "" }, { "docid": "1f3f6655507d62eb8fced1e66e3a6760", "score": "0.45328206", "text": "protected void openDocument(final OpheliaTestUser openAs,\n final Long localDocumentId) {\n getDocumentModel(openAs).open(localDocumentId, new Opener() {\n public void open(final File file) {\n assertNotNull(\"File to open is null\", file);\n assertTrue(\"File to open does not exist.\", file.exists());\n assertTrue(\"File to open cannot be read.\", file.canRead());\n }\n });\n }", "title": "" }, { "docid": "5f5d157914a99c7cf1b9204e674faf5c", "score": "0.45300287", "text": "java.lang.String getMediaID();", "title": "" }, { "docid": "5f5d157914a99c7cf1b9204e674faf5c", "score": "0.45300287", "text": "java.lang.String getMediaID();", "title": "" }, { "docid": "5f5d157914a99c7cf1b9204e674faf5c", "score": "0.45300287", "text": "java.lang.String getMediaID();", "title": "" }, { "docid": "f0183a247a92f7c9a51bb755460bd91b", "score": "0.452471", "text": "protected void playCallSound() {\n if (!mAudioManager.isSpeakerphoneOn()) {\n mAudioManager.setSpeakerphoneOn(true);\n }\n // Set AudioManager MODE to ring the MODE_RINGTONE\n mAudioManager.setMode(AudioManager.MODE_RINGTONE);\n // Play the call tone, return to play the resource id, used to stop later\n if (mSoundPool != null) {\n streamID = mSoundPool.play(loadId,\n // Resource id, the order in which audio resources are loaded into the SoundPool\n 0.5f, // Left volume\n 0.5f, // Right volume\n 1, // Audio file priority\n -1, // Whether the cycle; 0 does not cycle, -1 cycle\n 1); // Playback ratio; from 0.5-2, generally set to 1, that normal play\n }\n }", "title": "" }, { "docid": "db81a1ad230bc541f86e1924c56a130b", "score": "0.45180097", "text": "@javax.annotation.Nullable\n @ApiModelProperty(example = \"http://example.com/message.wav\", value = \"The URL of a file to be played back to the callee when the call is answered. The URL can point to either a WAV or MP3 file.\")\n @JsonProperty(JSON_PROPERTY_AUDIO_URL)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getAudioUrl() {\n return audioUrl;\n }", "title": "" }, { "docid": "6028c7447ee9b2796b48ac9aad544e3f", "score": "0.4515588", "text": "private void syncWithIndexWave(ClientWaveView indexWave) {\n List<IndexEntry> indexEntries = IndexWave.getIndexEntries(indexWave.getWavelets());\n\n for (IndexEntry indexEntry : indexEntries) {\n if (!waveControllers.containsKey(indexEntry.getWaveId())) {\n WaveId waveId = indexEntry.getWaveId();\n openWave(waveId, ClientUtils.getConversationRootId(waveId).getId());\n }\n }\n }", "title": "" }, { "docid": "dd5102fec7180e88f44140a60f991a9d", "score": "0.45056102", "text": "public int getWaveLevel() {\r\n\t\treturn waveLevel;\r\n\t}", "title": "" }, { "docid": "eaa2a562d019ec725b2760c949469f9e", "score": "0.44964427", "text": "public void music(){\r\n \r\n try{\r\n in = new FileInputStream(\"music.wav\"); //import song\r\n as = new AudioStream(in); //add song to audio stream\r\n }\r\n catch(IOException error){ \r\n System.err.println(\"file not found\"); //error\r\n }\r\n \r\n AudioPlayer.player.start(as); //start audio player for the song \r\n \r\n }", "title": "" }, { "docid": "fdbc9bb7ec4a9327bdc1d8b03f633227", "score": "0.44937316", "text": "public abstract void updateWaveEvent(List path);", "title": "" }, { "docid": "79c86c0dff1a0eb4f0c28562eb781b6f", "score": "0.44919458", "text": "private void setUpMediaRecorder(){\n pathSave = getApplicationContext().getExternalFilesDir(\"/\").getAbsolutePath();\n Log.d(\"My Path->\", pathSave);\n recordfile = \"filename.ogg\";\n Log.d(\"Path With File->\", pathSave + \"/\" + recordfile);\n mediaRecorder = new MediaRecorder();\n mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.OGG);\n mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.VORBIS);\n mediaRecorder.setOutputFile(pathSave + \"/\" + recordfile);\n }", "title": "" }, { "docid": "cc31df4a057fb20e9a9edcaf945fd7a7", "score": "0.44733194", "text": "public static void initAudio() {\n reader.openInfo();\n }", "title": "" }, { "docid": "e0735c2e41ab65b6e78f7530cbb3dce3", "score": "0.44548637", "text": "@RequestMapping(value = \"/audio-uploads/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<AudioUpload> getAudioUpload(@PathVariable Long id) {\n log.debug(\"REST request to get AudioUpload : {}\", id);\n AudioUpload audioUpload = audioUploadRepository.findOne(id);\n return Optional.ofNullable(audioUpload)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "title": "" }, { "docid": "b9ed9373a65f2754596ed58bbdd07f67", "score": "0.44510815", "text": "public SoundManager(String resource) {\n //gainControl = (FloatControl) clip.getControl(FloatControl.Type.MASTER_GAIN);\n this.resource = \"Sources/wav/\" + resource;\n }", "title": "" }, { "docid": "4561ba314a7e34641a1c92631c369651", "score": "0.44463697", "text": "void playSound( Location location, Sound sound, byte pitch, int extraData );", "title": "" }, { "docid": "97f3bcd721f45da83beb8066efbc0fb3", "score": "0.44459203", "text": "public ClientTrack(int trackID, String path) {\n \tthis.trackID = trackID;\n \tthis.path = path;\n }", "title": "" }, { "docid": "e69204f511e3be803783c9b81df62ad2", "score": "0.44451517", "text": "public static int getWave()\n {\n return wave_count;\n }", "title": "" }, { "docid": "02f3559111868d7ade8938936e1255f6", "score": "0.44410735", "text": "public Set<WaveId> getOpenWaveIds(boolean includeIndexWave) {\n Set<WaveId> waveIds = waves.keySet();\n if (!includeIndexWave) {\n waveIds = Sets.newHashSet(waveIds);\n waveIds.remove(INDEX_WAVE_ID);\n }\n return Collections.unmodifiableSet(waveIds);\n }", "title": "" }, { "docid": "58b1fe84c000a7dcb84e0e734d3293c7", "score": "0.44310856", "text": "protected void addRecordingToMediaLibrary() {\n ContentValues values = new ContentValues(4);\n long current = System.currentTimeMillis();\n values.put(MediaStore.Audio.Media.TITLE, \"record\" + audiofile.getName());\n values.put(MediaStore.Audio.Media.DATE_ADDED, (int) (current / 1000));\n values.put(MediaStore.Audio.Media.MIME_TYPE, \"record.3gpp\");\n values.put(MediaStore.Audio.Media.DATA, audiofile.getAbsolutePath());\n\n //creating content resolver and storing it in the external content uri\n ContentResolver contentResolver = getContentResolver();\n Uri base = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n Uri newUri = contentResolver.insert(base, values);\n\n //sending broadcast message to scan the media file so that it can be available\n sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, newUri));\n Toast.makeText(this, \"Added File \" + newUri, Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "2c51bb8af2dadb98b22fd10e89ab8cdf", "score": "0.4424993", "text": "public void audioStreamOpened(PyhAudioFormat audioFormat);", "title": "" }, { "docid": "8841d42d42a0c7fb5855bd0cf4d037e7", "score": "0.44117585", "text": "private static AudioClip initialize(String filename)\n {\n URL url = null;\n try \n {\n File file = new File(filename);\n if(file.canRead()) url = file.toURI().toURL();\n }\n catch(MalformedURLException e){e.printStackTrace();}\n if(url == null) throw new RuntimeException(\"audio \" + filename + \" not found\");\n return Applet.newAudioClip(url);\n }", "title": "" }, { "docid": "35d1f5d250b7aa26cc9e53fc21531246", "score": "0.44105798", "text": "StorageObject open(String path);", "title": "" }, { "docid": "6b0448048e53424b38d4a6418d0e0473", "score": "0.43962955", "text": "public void launchAudioProperties(String id) {\n\t\tIntent i = new Intent(this, AudioProperties.class);\n\t\ti.putExtra(\"track_manager\", mComposerView.getTrackManager());\n\t\ti.putExtra(\"box_id\", id);\n\t\tstartActivityForResult(i, REQ_PROPERTIES);\n\t}", "title": "" } ]
50c60aa248d2c9213733201d3f5661c2
all below methods are override from animal interface
[ { "docid": "44a085a4c0ce89dd77bfbbfb94bb9614", "score": "0.0", "text": "@Override\n public String getDateofBirth() {\n return this.DateofBirth;\n\n }", "title": "" } ]
[ { "docid": "4adf8faa562ddf29cd7ef03b1688fcc2", "score": "0.7682517", "text": "private void seeAnimal() {\n\r\n\t}", "title": "" }, { "docid": "4da6699289d6e918a8ef1886a05e5fc8", "score": "0.7542767", "text": "@Override\npublic void mating(Animal a) {\nSystem.out.println(a.getType()+ \" is mating.\");\n}", "title": "" }, { "docid": "d4f7ed305a104d636a59dd7087a516e4", "score": "0.7440349", "text": "@Override\n\tpublic void eat(Animal otherAnimal) {\n\t\t\n\t}", "title": "" }, { "docid": "05d2e97369e1a01034bee71f8e1e98e9", "score": "0.7250832", "text": "public interface Animal {\n\n //Animal reproduce();\n\n}", "title": "" }, { "docid": "1529b617c555ef564111a6d2d5ca35e0", "score": "0.7060552", "text": "@Override\npublic void resting(Animal a) {\nSystem.out.println(a.getType()+ \" is resting.\");\n}", "title": "" }, { "docid": "f51258aa815f598a82a135c89fc20756", "score": "0.6983087", "text": "public interface Animal {\n\npublic String voice();\n\n}", "title": "" }, { "docid": "4360a4db579f7e58e6cc322f8915973e", "score": "0.6979239", "text": "public interface Animal {\n\n public void eat();\n public void travel();\n}", "title": "" }, { "docid": "eeb2d5065c42ffad4d128d0899c1bba6", "score": "0.69617647", "text": "public interface Pet {// interface is the blueprint for other class\r\n\r\n\tpublic String food();// method food abstract method no action \r\n\r\n\r\n}", "title": "" }, { "docid": "87aedaaac11df71cf64b1f98398303a1", "score": "0.6873722", "text": "@Override\npublic void tipoAnimal() {\n\tSystem.out.println(\"Tipo animal es GATO\");\n}", "title": "" }, { "docid": "33c7898eb0cb3b558d4827f217faa194", "score": "0.6809236", "text": "public interface Animal {\n\n void print();\n}", "title": "" }, { "docid": "167dc9a99f1b96225bf9361d42cbbf5a", "score": "0.6784994", "text": "public interface FlyingAnimal extends Animal {\n @Override\n default String identifyMyself(){\n return \"I am an animal and I can fly\";\n }\n}", "title": "" }, { "docid": "de7128a55939e51f8d00a86c6981e2ed", "score": "0.676187", "text": "public static void function(Animal a){\n a.eat();\n if (a instanceof Cat){//instanceof 判断指向类型\n Cat c =(Cat)a;\n c.catchMouse();\n }\n else if(a instanceof Dog){\n Dog d =(Dog) a;\n d.kanjia();\n }\n\n }", "title": "" }, { "docid": "4ac998f9bdd28d349634cb7f92a130c5", "score": "0.6658002", "text": "public static void main(String[] args) {\n\t\tAnimalTestOverriden animalTestOverriden=new AnimalTestOverriden();\n\t\tAnimalTestOverriden animalTestOverriden2=new horseTestOverriden();\n\t\t//animalTestOverriden2.buck(); we can't invoke buck() method because Animal class doesn't have that method \n\t\tanimalTestOverriden.eat();// invoke eat method of AnimalTestOverriden class\n\t\tanimalTestOverriden2.eat();//invoke eat method of horseTestOverriden class\n\t\t/*\n\t\t * Generic Animal Eating Generiaclly\n horse eating hay.....................\n\t\t */\n\t\t\n\t}", "title": "" }, { "docid": "017e64c7c15e933d65764101030d1e47", "score": "0.6552518", "text": "private interface Behaviour{\n\t\t/*\n\t\t * This method is public so we can only implement this interface from inside the Animal class\n\t\t */\n\t\tvoid alive();\n\t}", "title": "" }, { "docid": "e2d7f687a7c0342667392016063c4843", "score": "0.6539506", "text": "public interface ColoredAnimal\r\n{\r\n\tpublic void PaintAnimal(String color);\r\n}", "title": "" }, { "docid": "e2af2e1d05fd3377757c99b132dc208d", "score": "0.6529319", "text": "protected Animal() {\t\r\n\t}", "title": "" }, { "docid": "3ca17278a1d7a5070510e10989f8247d", "score": "0.65276855", "text": "@Override\n\tString getName(){\n\t\treturn animalName;\n\t}", "title": "" }, { "docid": "eca9bc6e517d324ff2d66100648ce4b9", "score": "0.65130603", "text": "@Override\n\tpublic void tipoAnimal() {\n\t\tSystem.out.println(super.getNome() + \" é um gato.\");\n\t}", "title": "" }, { "docid": "97d296a7afb7dc4215dea52c44825799", "score": "0.6502073", "text": "@Override\n\tpublic void anular() {\n\n\t}", "title": "" }, { "docid": "2c7a114803d0ff5294a00a7e14504834", "score": "0.6449462", "text": "public void eat(){\r\n System.out.println(this.animalName + \" eats\");\r\n }", "title": "" }, { "docid": "40e06c9e42c2e3ea6a0dcab67404f6c7", "score": "0.64492255", "text": "abstract public void act(List<Animal> newAnimals);", "title": "" }, { "docid": "ab227b4d836f5a9e73c8d5eee091a825", "score": "0.6434369", "text": "void place(Animal animal);", "title": "" }, { "docid": "4f22b352c3943bbe7022c9f8260493b3", "score": "0.64275557", "text": "interface AnimalFarm<T>\n {\n T produceAnimal();\n void feedAnimal(T animal);\n }", "title": "" }, { "docid": "176591964890fa8050b1748709fa1cea", "score": "0.64144164", "text": "public boolean getIsAnimal()\r\n/* 34: */ {\r\n/* 35:53 */ return this.isAnimal;\r\n/* 36: */ }", "title": "" }, { "docid": "08f229bee1231b90ada2aa91cbe1027c", "score": "0.6380713", "text": "AnimalSpecific(String category,String name,String type){\n\t\tsuper(category);\n\t\tanimalName = name;\n\t\tanimalType = type;\n\t}", "title": "" }, { "docid": "26cb96b05894b7fc696b08f7d6e9591f", "score": "0.63686746", "text": "public abstract void alimentarse();", "title": "" }, { "docid": "4095f18f53682926e85199ae0de71cc4", "score": "0.63672405", "text": "@Override\r\n\tpublic void eat(Food food) {\n\r\n\t}", "title": "" }, { "docid": "76fec01e93fe007c3f88f3db589df93a", "score": "0.6351015", "text": "public static void main(String... args) {\n Mammal mammal = new Mammal();\n mammal.getName();\n Bird bird = new Bird();\n bird.getName();\n\n System.out.println(\"showAnimal(AbstractAnimal abstractAnimal) \");\n showAnimal(mammal);\n showAnimal(bird);\n }", "title": "" }, { "docid": "b5c64fc58055f1f8170c9f1dd7ddc489", "score": "0.6339437", "text": "void onAnimalSelected(Animal animal);", "title": "" }, { "docid": "dd3126c5cdd164ee2ce5e20a21845667", "score": "0.6328204", "text": "public interface Animalable {\n public enum AnimalClass {\n VERTEBRATE,\n INVERTEBRATE\n }\n\n public enum AnimalSubClass{\n REPTILE,\n FISH,\n AMPHIBIAN,\n BIRD,\n MAMMAL\n }\n\n public interface AnimalOrders {\n enum MammalOrders implements AnimalOrders {\n RODENTIA,\n CHIROPTERA,\n INSECTIVORA,\n MARSUPIALIA,\n CARNIVORA,\n PRIMATES,\n ARTIODACTYLA,\n CETACEA,\n LAGOMORPHA,\n PINNIPEDIA,\n EDENTATA,\n PERRISSODACTYLA,\n PROBOSCIDEA\n }\n enum BirdOrders implements AnimalOrders {\n STRUTHIONIFORMES,\n CRACIFORMES,\n GALLIFORMES,\n ANSERIFORMES,\n TURNICIFORMES,\n PICIFORMES,\n GALBULIFORMES,\n BUCEROTIFORMES,\n UPUPIFORMES,\n TROGONIFORMES,\n CORACIIFORMES,\n COLIIFORMES,\n CUCULIFORMES,\n PSITTACIFORMES,\n APODIFORMES,\n TROCHILIFORMES,\n MUSOPHAGIFORMES,\n STRIGIFORMES,\n COLUMBIFORMES,\n GRUIFORMES,\n CICONIIFORMES\n }\n\n enum ReptilOrders implements AnimalOrders{\n RHYNCOCEPHALIA,\n SQUAMATA,\n CHELONIA,\n CROCODILIA\n }\n\n enum FishOrders implements AnimalOrders {\n PREHISTORIC,\n BONY,\n CARTILAGINOUS,\n JAWLESS\n }\n\n enum AmphibianOrders implements AnimalOrders {\n ANURA,\n URODELA,\n APODA\n }\n }\n\n public enum Motion{\n SWIM,\n CRAWL,\n CLIMB,\n RUN,\n WALK,\n JUMP,\n FLY,\n DIG\n }\n\n public enum FeedingBehaviour {\n AUTOTROPH,\n CARNIVORE,\n ERGIVORE,\n HERBIVORE,\n OMNIVORE,\n SCAVENGER,\n INSECTIVORE\n }\n\n public enum Media {\n AIR,\n EARTH,\n WATER\n }\n\n public enum Sex {\n MALE,\n FEMALE,\n HERMAPHRODITE\n }\n\n public AnimalClass getMyClass();\n public void setMyClass(AnimalClass animalClass);\n\n public AnimalSubClass getMySubClass();\n public void setMySubClass(AnimalSubClass animalSubClass);\n\n public AnimalOrders getMyOrder();\n public void setMyOrder(AnimalOrders myOrder);\n\n public FeedingBehaviour getMyFeedingBehaviour();\n public void setMyFeedingBehaviour(FeedingBehaviour myConsumption);\n\n public ArrayList<Media> getMyMedia();\n public void addMedia(Media aMedia);\n\n public ArrayList<Motion> getMyMotion();\n public void addMotion(Motion aMotion);\n\n public String getName();\n public void setName(String name);\n\n public String getCommonName();\n public void setCommonName(String commonName);\n\n public String getScientificName();\n public void setScientificName(String scientificName);\n\n public Boolean amIHazardous();\n public void setHazardous(boolean hazardous);\n\n public Sex getMySex();\n public void setMySex(Sex aSex);\n\n public Timestamp getLastTimeFed();\n public void feedMe(Timestamp aTime, Edible food);\n\n public int getFeedingPeriod();\n public void setFeedingPeriod(int every);\n\n public boolean timeToFeed();\n\n public int howFullIsMyBelly();\n\n public boolean isAdult();\n\n public void setAsAdult();\n\n public void setAsBaby();\n\n\n\n\n}", "title": "" }, { "docid": "a70fd2668cbf96f6e280444bebb7cf6e", "score": "0.63144296", "text": "@Override //this is optional\n public void eat(int amount) {\n\n }", "title": "" }, { "docid": "29f20f7e53b019588d6ec3972131c485", "score": "0.62920266", "text": "public void setAnimal(Animal animal) {\n\t\tthis.animal = animal;\r\n\t}", "title": "" }, { "docid": "0da684fbe77f980249bad01e5908eea5", "score": "0.6277132", "text": "public void bark(){// bark class only belongs to dog class\n System.out.println(name+\" is barking\");\n }", "title": "" }, { "docid": "3f671eaa3e87b98a7ccf6af21bda0041", "score": "0.6276763", "text": "public Animal(String name) {\r\n this.animalName = name;\r\n }", "title": "" }, { "docid": "1b9b79e7bc82fb76f19acd2f4b3efdb1", "score": "0.62720895", "text": "boolean test(AbstractAnimals a);", "title": "" }, { "docid": "a275f252a9d4e7df4ed532d9a934150d", "score": "0.62645054", "text": "public interface Bird {\r\n String fly(Object var);\r\n\r\n}", "title": "" }, { "docid": "f02dea62a5e49ec3e379b35044375589", "score": "0.6263758", "text": "public interface Zoo {\n AnimalType getAnimalType();\n}", "title": "" }, { "docid": "a0333a911e2745d9a0df1e68ac5dfaca", "score": "0.62599975", "text": "@Override\n public void act(List<Animal> animals) {\n super.act(animals);\n }", "title": "" }, { "docid": "14cd5fe3f106034ce9749f2ba1a31d80", "score": "0.6253351", "text": "@Override\n\tpublic void laysEgg() {\n\t\t\n\t}", "title": "" }, { "docid": "08b41e7b7da116082519c973cea465c4", "score": "0.62205726", "text": "@Override\n\tpublic void eats() {\n\t\t\n\t}", "title": "" }, { "docid": "7180a3bca19ce96e3c736ae0f88a2ca6", "score": "0.6194544", "text": "@Override\n\tpublic int moveAnimal() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "6b6ea521f2ee8bf65b15db33aba7ad47", "score": "0.6193929", "text": "public static void main(String[] args) {\n\n Pet pet = new Pet(\"Larry\",5) {\n @Override\n public void say() {\n System.out.println(\"wow, wow, wow\");\n }\n };\n System.out.println(pet);\n\n pet.say();\n // ((Cat) pet).getPredator();---> преобразовал тип pet в cat ---> можно, но нельзя\n\n }", "title": "" }, { "docid": "e4df231b969c4dae6abce52fd643ee5b", "score": "0.61927533", "text": "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "title": "" }, { "docid": "9005aca8b18606a6f37174f67c1e3757", "score": "0.6191146", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tAnimal a1 = new Animal();\r\n\t\tDog d1 = (Dog)a1;\r\n\t\td1.eat();\r\n\t\td1.noise();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c87fa82075d26f339714f8721044cf12", "score": "0.61740255", "text": "@Override\n\tpublic void tipoInteligencia() {\n\t\tSystem.out.println(super.getNome() + \" é um animal \" + ((super.isRacional() == true) ? \"racional.\" : \"irracional.\"));\n\t}", "title": "" }, { "docid": "fbba02e9a07b745501ce45ed993d36f6", "score": "0.61599994", "text": "@Override\n public void food(){\n System.out.println(\"They are Herbivorous in nature.\");\n }", "title": "" }, { "docid": "89f7910fae9d9e114d32652780b919aa", "score": "0.6159846", "text": "public interface INest {\n\t// function: use to describe the action of nesting animals\n\tvoid nest();\n}", "title": "" }, { "docid": "e480634e788b459dea4469998fcc3ec6", "score": "0.6122295", "text": "@Override\n public void setEdibleAnimals() {\n addPrey(Rabbit.SPECIES);\n }", "title": "" }, { "docid": "2982ebeee9f563842d3aa2e0aeda0af4", "score": "0.61084723", "text": "public static void main(String[] args) {\n\t \tAnimal an = new Animal();\r\n\t \tSystem.out.println(\"1: \"+(an instanceof Dog));//true \r\n\t \tDog d= new Dog();\r\n\t \tSystem.out.println(\"2: \"+(d instanceof Dog));\r\n\t \tAnimal b = new Dog();\r\n\t \tSystem.out.println(\"3: \"+(b instanceof Animal));\r\n\t \tSystem.out.println(\"4: \"+(b instanceof Dog));\r\n\t b.show();\r\n\t \t//Animal a = new Animal();\r\n\t \t\r\n\t \t\r\n\t \t//d.derivedfun();\r\n\t \tb.derivedfun();\r\n\t d.show();\r\n\t d.derivedfun();\r\n\t }", "title": "" }, { "docid": "b1e4305d86bd9183c201046a80135392", "score": "0.61003256", "text": "@Override\r\n\t\t \t public void eat(String item) {\n\t\t \t\t System.out.println(\"Penguin eats fish\");\r\n\t\t \t\t\r\n\t\t }", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6100065", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "66728fb116bf29518a5859060d5586aa", "score": "0.60952467", "text": "public static void main(String agrs[]){\n\t\t\n\t\tAnimal m = new Cat(); \n\t\n\t\n\t\ttestVoice(m);\n\t\t//只写了Animal方法区,m猫对象只有这个方法的地址却找不到方法区中animal类的方法//\n\t\tAnimal n = new Dog();\n\t\tDog k = (Dog)n;\n\t\ttestVoice(n);\n\t\tk.seeDoor();\n\t}", "title": "" }, { "docid": "65282c615d30d8e89c7717d616654666", "score": "0.60722786", "text": "@Override\n\tpublic void eat() {\n\t\t\n\t}", "title": "" }, { "docid": "c619b82b58d52dc032577bdb93567cde", "score": "0.60670066", "text": "abstract void fly();", "title": "" }, { "docid": "ea8460c7314de45803a19bf7c984d4bf", "score": "0.606622", "text": "@Override\n public void perish() {\n \n }", "title": "" }, { "docid": "87bed3c2be6a20d645d9c4d2d591fc86", "score": "0.60645586", "text": "@Override\n public void feedingMeat() {\n\n }", "title": "" }, { "docid": "caf4cd4f0ff8f13a6e16ad89f463d014", "score": "0.6059901", "text": "void Dogs() {\n \n }", "title": "" }, { "docid": "93a5e31ad8e33109db557c789d8675e6", "score": "0.60577166", "text": "public boolean addAnimal(Animal animal);", "title": "" }, { "docid": "ce15148b02e6d5eeaf5c625168ec0294", "score": "0.6057128", "text": "@Override\n public void eat() {\n System.out.println(\"Now doggo is eating\");\n chew();\n super.eat();\n }", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.60554075", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4613756c031be2b54f41f7c902c17a14", "score": "0.60521984", "text": "@Override\n public Animal createAnimal() {\n return new Monkey();\n }", "title": "" }, { "docid": "a8cfd38fa6ac6d779a0dd867a9f6773b", "score": "0.60518366", "text": "public static void main(String[] args) {\n AnimalBp turtle = new AnimalBp(); \n AnimalBp dog = new AnimalBp();\n AnimalBp cat = new AnimalBp();\n \n \n \n turtle .setType(\"Reptile\");\n String turtleType = turtle.getType();\n \n \n System.out.println(turtleType);\n \n turtle.setnumberOfFeet(4);\n int turtlenumberOfFeet = turtle.getnumberOfFeet();\n \n System.out.println(turtlenumberOfFeet);\n \n turtle.setColor(\"Green\");\n String turtleColor = turtle.getColor();\n \n System.out.println(turtleColor);\n \n turtle.setlaysAnEgg(true);\n boolean turtlelaysAnEgg = turtle.getLaysAnEgg();\n \n System.out.println(turtlelaysAnEgg);\n \n \n dog .setType(\"Mammal\");\n String dogType = dog.getType();\n \n System.out.println(dogType);\n \n dog.setnumberOfFeet(4);\n int dognumberOfFeet = dog.getnumberOfFeet();\n \n System.out.println(dognumberOfFeet);\n \n dog.setColor(\"Brown and White\");\n String dogColor = dog.getColor();\n \n System.out.println(dogColor);\n \n dog.setlaysAnEgg(false);\n boolean doglaysAnEgg = dog.getLaysAnEgg();\n \n System.out.println(doglaysAnEgg);\n \n cat .setType(\"Mammal\");\n String catType = cat.getType();\n \n \n System.out.println(catType);\n \n cat.setnumberOfFeet(4);\n int catnumberOfFeet = cat.getnumberOfFeet();\n \n System.out.println(catnumberOfFeet);\n \n cat.setColor(\"gray\");\n String catColor = cat.getColor();\n \n System.out.println(catColor);\n \n cat.setlaysAnEgg(false);\n boolean catlaysAnEgg = cat.getLaysAnEgg();\n \n System.out.println(catlaysAnEgg);\n }", "title": "" }, { "docid": "91c9771d2c01dbc3867cbf03ae62ae91", "score": "0.6048228", "text": "public static void main(String[] args) {\n Animal myAnimal = new Animal();\n myAnimal.animalSound();\n\n myAnimal = new Dog();\n myAnimal.animalSound();\n\n myAnimal = new Cat();\n myAnimal.animalSound();\n\n }", "title": "" }, { "docid": "c672bca120e51168177886d665d6a222", "score": "0.60368127", "text": "public static void main(String[] args) {\n\n Dog dog = new Dog();\n Cat cat = new Cat();\n System.out.println(\"The dog's age is \"+ dog.getAge());\n System.out.println(\"The cat's age is \"+ cat.getAge());\n cat.meow();\n dog.ruff();\n dog.eat();\n cat.eat();\n dog.run();\n cat.prance();\n\n System.out.println();\n System.out.println();\n dog.eat();\n cat.eat();\n\n System.out.println();\n System.out.println();\n cat.sleep();\n dog.sleep();\n\n //Converting from a super to a sub\n //Animal billy = new Dog();\n\n // Casting\n Object doggie = new Dog();\n Dog realDog = (Dog) doggie;\n realDog.ruff();\n\n Object str = \"est\";\n String realS = (String) str;\n realS.getBytes();\n\n // What happens when...\n\n Dog doggy = new Dog();\n if (dog instanceof Animal){\n Animal animal = (Animal) doggy;\n animal.sleep();\n }\n doggy.sleep();\n\n }", "title": "" }, { "docid": "834a52be25b90e80af182ab9adfbd488", "score": "0.60273606", "text": "public abstract void visit();", "title": "" }, { "docid": "12885d7cc80855b01e43f63a623d876c", "score": "0.60140544", "text": "public static Animal getAnimal() {//object of type animal and calling this method in app.javsa\n return new Dog();\n}", "title": "" }, { "docid": "1a57940aaa4a26f4aa323ea01243521f", "score": "0.6000831", "text": "Animal(int age, String name, double weight){\n\t\tthis.age = age;\n\t\tthis.name = name;\n\t\tthis.weight = weight;\n\t\t\n\t\t//make objects:\n\t\tmyHeart = new Heart();\n\t\tmyLiver = new Liver();\n\t\tmyKidney = new Kidney();\n\t\tmyLungs = new Lungs();\n\t\t\n\t\tSystem.out.println(myHeart.bpm);\n\t\tSystem.out.println(myLiver.id);\n\t\tSystem.out.println(\"end of Animal constructor\");\n\t\t\n\t\tmyKidney.alive(); //accessing the alive method from the local Beghaviour interface that this implements.\n\t\tmyLungs.alive();\n\t\t\n\t}", "title": "" }, { "docid": "4a25d0c32afd5bc077e9e3703fc3588e", "score": "0.5990691", "text": "public interface IAnimalFactory {\n ICat createCat();\n IDog createDog();\n}", "title": "" }, { "docid": "2d9298a4ef20917453fb73fc09b76853", "score": "0.59650445", "text": "public void constructor() {\n setEdibleAnimals();\n }", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.5960456", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.5960456", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "995daa3a2072787dd7fac503a788837c", "score": "0.5954289", "text": "abstract int pregnancy();", "title": "" }, { "docid": "e2a5ce9036cdcec90e0f4ce7eec820e1", "score": "0.5951001", "text": "public void eat(){ //overriding method eat in subclass\r\n System.out.println(\"Life Is Precious Though\");\r\n eat2();\r\n \r\n }", "title": "" }, { "docid": "b3bcd9e0b6e162407ce59adcf0e73250", "score": "0.5941979", "text": "@Override\n public void mature(Farm farm, Animal animal) {\n }", "title": "" }, { "docid": "d7f5c06913eb3a01ee8743658bd3bd20", "score": "0.5932125", "text": "public interface Animal extends Cloneable {\r\n\tAnimal makeCopy();\r\n}", "title": "" }, { "docid": "8ed20606580ff2da66dd352fb30a5bba", "score": "0.59291834", "text": "public abstract void afvuren();", "title": "" }, { "docid": "7f465ac9092baa588aa546f1e2136323", "score": "0.59165764", "text": "public static void main(String[] args){\n\t\t//casting ( object -> parent)\n\t\tAnimal animal1 = new Human(\"Joy\");\n\t\tanimal1.die();\n\t\t\n\t\t//casting to interface\n\t\tFlyable flyable = (Human)animal1;\n\t\tflyable.fly();\n\t}", "title": "" }, { "docid": "99d7a1c94a1f44cd6937d7e3b49cb966", "score": "0.59163517", "text": "@Override\n\tpublic void eatFood(Food f) {\n\t\t\n\t}", "title": "" }, { "docid": "5268ec16a1acbd8b4ad665b4689aa8a3", "score": "0.59152335", "text": "protected abstract void addMeat();", "title": "" }, { "docid": "086ff5d5a11b778d3fe49be163d2128a", "score": "0.5913367", "text": "public static void main(String[] args) {\n\n Animal dog = new Dog(\"Sunis\");\n Animal cat = new Cat(\"Kate\");\n\n showAnimalName(dog);\n showWalkingAction((IWalking) dog);\n showAnimalName(cat);\n showWalkingAction((IWalking) cat);\n\n }", "title": "" }, { "docid": "3db64ccee30612356bfa1737f88269e1", "score": "0.5903207", "text": "interface Surgeon extends Doctor {\n\t\n}", "title": "" }, { "docid": "2221e9c11f39dae74f6808402a507787", "score": "0.5887801", "text": "@Override\n\tpublic void doStuff() {\n\t\tSystem.out.println(\"Do stuff in Abstract Car\");\n\t}", "title": "" }, { "docid": "df172ca9346a0c25ded083b96328751c", "score": "0.5886448", "text": "public interface Damaging\n{\n //public void damage();\n public float getDamage();\n}", "title": "" }, { "docid": "daa0a623ff08f30ce148904bb2d025fd", "score": "0.5885289", "text": "public Animal(){\n System.out.println(\"An animal has been created...\");\n }", "title": "" }, { "docid": "55c7d41124466ade4cac52ee20f8989b", "score": "0.5884725", "text": "public static void main(String[] args) {\n\t\tAnimal a = new Dog();\r\n\t\r\n\t\ta.move();\r\n\t\ta.eat(); \r\n\t\t\r\n\t\tAnimal b= new Cow();\r\n\t\tb.move();\r\n\t\tb.eat();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d67823a10b3e7fea0101983af8b5a2ab", "score": "0.5878898", "text": "@Override\r\n\tpublic void visit(Personality personality)\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "e2e9937b91accc2c0c13aa64c9e5eb51", "score": "0.58778745", "text": "public static void show() {\n Animal.Petdog.sleep();\n\n // The dog is going to bark.\n Animal.Petdog.bark();\n\n // Creating a new chicken and a new pig.\n Animal c= new Chicken();\n Animal g= new Pig();\n\n // The animals are going to sleep.\n c.sleep();\n g.sleep();\n\n // The animals are going to fight with dog.\n c.fightWithDog();\n g.fightWithDog();\n\n // The animals are going to exercise.\n c.exe();\n g.exe();\n\n // Chicken can also run with your set.\n c.exewithset(\"Run\");\n\n // The animals are going to breed.\n c.breed();\n g.breed();\n\n // The animals are going to do shower.\n c.shower();\n g.shower();\n\n // Let's see how many product do we have before animals produce products.\n System.out.println(\"Chicken meat: \" +Chickenmeat.amount+\"\\nEggs: \"+ Eggs.amount) ;\n System.out.println(\"Pork: \" +Pork.amount) ;\n\n // The animals are going to produce external product.\n c.producewithoutdeath();\n g.producewithoutdeath();\n\n // The animals are going to produce internal product.\n c.producewithdeath();\n g.producewithdeath();\n\n // Let's see how many product do we have after animals produce products.\n System.out.println(\"Chicken meat: \" +Chickenmeat.amount+\"\\nEggs: \"+ Eggs.amount) ;\n System.out.println(\"Pork: \" +Pork.amount) ;\n\n // Get currnet states of the animals.\n c.getstate();\n g.getstate();\n\n // The dead animals regain life.\n c.setstate();\n g.setstate();\n c.getstate();\n g.getstate();\n\n\n }", "title": "" }, { "docid": "519d0f82dfea650a358e0f03f1054e99", "score": "0.58684564", "text": "public void print(){\n System.out.println(getBrain());//The value of brain passed in the main as parameter is rejected.\n super.print(); //However, if the same method is declared in Animal class, and called in main\n System.out.println(getBrain()); //the value of brain passed in main as parameter is printed.\n //It is basically a overridden method. The super.print() calls the superclass method\n }", "title": "" }, { "docid": "f360cee7ebfa05c720203e55b2c31e4d", "score": "0.58682376", "text": "public abstract void gameObjectAwakens();", "title": "" }, { "docid": "d5bc7ec24af8efe4511153bf50282b83", "score": "0.5866366", "text": "public void printYourself(){\n\t\tsuper.printYourself();\t// Invoke the superclass\n \t// (Animal) code\n \t// Then do Horse-specific\n \t// print work here\n\t}", "title": "" }, { "docid": "16ddcce7de697fca3d7d6a0bddb3f05a", "score": "0.5864181", "text": "@Override\n public void attack(){\n\n }", "title": "" }, { "docid": "8645f8e172f1286ccdcd7ba79811c15c", "score": "0.5863425", "text": "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "title": "" }, { "docid": "a45b51cb7ace7fde32922ab2f163c331", "score": "0.5861394", "text": "public interface AttributeTypeAttack extends EObject\n{\n}", "title": "" }, { "docid": "03e5485d223a8d7b1d76f7ad1e6992d8", "score": "0.5858642", "text": "public void smell() {\n\t\t\n\t}", "title": "" }, { "docid": "91d86b196e4e56d135494fa83774b7bd", "score": "0.58521295", "text": "public static void main(String[] args) {\n\t\tAnimals an = new Animals();\r\n\t\tan.eat();\r\n\t\tan.similar();\r\n\t\tan.sound();\r\n\t\t\r\n\t\t//creating object for Dog class based on Animals class\r\n\t\tAnimals d = new Dog();\r\n\t\td.sound();\r\n\t\td.eat();\r\n\t\t\r\n\t\t//creating object for CAT class based on Animals class.\r\n\t\tAnimals c = new Cat();\r\n\t\tc.sound();\r\n\t\tc.eat();\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4f954ff5a634bd601d51bf4ab4d63d24", "score": "0.5838299", "text": "public interface Factory {\n Animal createAnimal();\n}", "title": "" }, { "docid": "7d15f35b87b77c751d5d3ac315e7bc24", "score": "0.58374095", "text": "public static void main(String[] args) {\n Animal zebra=new Animal(\"Pol\", \"Male\", 11, \"Zebra\");\n zebra.sleep();\n zebra.walk();\n zebra.eat();\n \n Animal giraffe=new Animal(\"Necky\",\"Female\",23,\"Giraffe\");\n giraffe.sleep();\n giraffe.walk();\n giraffe.eat();\n \n \n}", "title": "" }, { "docid": "3a799e01c2913e823c8f8a2933766f5e", "score": "0.58371365", "text": "public interface Eat {\n void eat();\n}", "title": "" }, { "docid": "d4f6960b81155dccd4f3dc36d4f980ef", "score": "0.58353376", "text": "public void addAnimals() throws IOException {\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint a = 0;\n\t\tArrayList<GameObjects> animals = new ArrayList<GameObjects>();\n\t\tRandom rand = new Random();\n\t\twhile(b<bigFish) {\n\t\t\tanimals.add(new BigFish(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth/2))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\tb+=1;\n\t\t}\n\t\twhile(c<crab) {\n\t\t\tanimals.add(new Crab(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth - frameWidth/3))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\tc+=1;\n\t\t}\n\t\twhile(a<algae) {\n\t\t\tanimals.add(new Algae(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth - frameWidth/3))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\ta+=1;\n\t\t}\n\n\t\tanimals.add(new BigFish(frameWidth, frameHeight));\n\t\tanimals.add(new Crab(frameWidth, frameHeight));\n\t\tanimals.add(new Algae(frameWidth, frameHeight));\n\n\t\tthis.objects = animals;\n\t}", "title": "" }, { "docid": "d9b71616c39eb533adb1eda19d22f488", "score": "0.58303577", "text": "public abstract void eat(String foodName);", "title": "" }, { "docid": "01d4e6197da75e5729aad872e1acdb83", "score": "0.5826783", "text": "@Override\n\tpublic void addAnimal(Animal animal,Integer catogory) {\n\t\tanimaldao.addAnimal(animal,catogory);\n\t}", "title": "" } ]
1aff8740c58b8e27f314f6520dfa2af7
/ Test for 'itoc(char)'
[ { "docid": "2aafe16756b307119338b8c7024f595b", "score": "0.590397", "text": "public void testItoc() {\r\n\t\t//assertEquals(g1.itoc(2), 'C');\r\n\t}", "title": "" } ]
[ { "docid": "fc4161d033879851d79cab0b1ea8a2e4", "score": "0.7214309", "text": "public abstract boolean hasChar(char c);", "title": "" }, { "docid": "b3d3b20f705c99ca5c42c2b09e9e9797", "score": "0.6864447", "text": "public static boolean isAncharChar(char c) { return c=='^' || c=='$'; }", "title": "" }, { "docid": "4384845856767f42ef1f0097afe85264", "score": "0.6727111", "text": "private static boolean isCharacterInC0orC1Range(char ch) {\n/* 1515 */ if (ch == '\\t' || ch == '\\n' || ch == '\\r') {\n/* 1516 */ return false;\n/* */ }\n/* 1518 */ return ((ch >= '' && ch <= 'Ÿ') || (ch >= '\\001' && ch <= '\\037'));\n/* */ }", "title": "" }, { "docid": "1f9c62e3b637f6197fe26a33e19b9aed", "score": "0.66579473", "text": "@Override\n\t\t\tpublic boolean test(int c) {\n\t\t\t\treturn c=='a' || c=='e' || c=='i' || c=='o' || c=='u' ||\n\t\t\t\t\t\tc=='A' || c=='E' || c=='I' || c=='O' || c=='U';\n\t\t\t}", "title": "" }, { "docid": "7eaea01fe1b88b107cfda3510e1725f0", "score": "0.66162187", "text": "public boolean ifAsciiMatches (String input);", "title": "" }, { "docid": "1265b9a096f7db55543811fd82d1970e", "score": "0.6599786", "text": "@Test\n\tpublic void testMetodoCharAt() \n\t{\n\t\tString s1 = new String();\n\t\ts1 = \"Cualquiera :D\";\n\t\t\n\t\tassertEquals('C', s1.charAt(0));\n\t\t\n\t}", "title": "" }, { "docid": "21f89d862fc3afd13977ed362b5f2cfb", "score": "0.6566886", "text": "public void testCharAt() {\n System.out.println(\"charAt\");\n int index = 0;\n InterruptibleCharSequence instance = new InterruptibleCharSequence(\" this\");\n char expResult = ' ';\n char result = instance.charAt(index);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "7c45e0c0a55fe912bb8fdc256019c6e2", "score": "0.641891", "text": "private boolean isValidCharacter(int paramInt, char paramChar) {\n/* 574 */ return getMaskCharacter(paramInt).isValidCharacter(paramChar);\n/* */ }", "title": "" }, { "docid": "4dc6d356457e11f499b91611696b4e8f", "score": "0.6298546", "text": "public boolean unicodeEntered(final char character);", "title": "" }, { "docid": "09dc6cb8761b590688892cbed2f92328", "score": "0.62199384", "text": "public void testCtoi() {\r\n\t\t//assertEquals(g1.ctoi('C'), 2);\r\n\t}", "title": "" }, { "docid": "6062b93d39554dab03d827b1e3bea52e", "score": "0.61851573", "text": "static boolean isCharOperator(String element){\n \n\tif(element.equals(\"+\")|| element.equals(\"-\") || element.equals(\"x\") || element.equals(\"/\") || element.equals(\"%\") || element.equals(\"(\") || element.equals(\")\") || element.equals(\"^\")){\n\t\treturn true;\n\t}\n return false;\n}", "title": "" }, { "docid": "e5958572d11cf5788bca887a2f133733", "score": "0.61695457", "text": "@Test public void test_posFirstVowelThis()\n {\n assertEquals(2,EnglishToPigLatin.posFirstVowel(\"this\"));\n }", "title": "" }, { "docid": "df717b7c081458d2a97d5a5317477a72", "score": "0.6166598", "text": "public static boolean evaluarCaracter(char c){\n if(c=='(' ) return true;\n else if(c==')')return true;\n else if(c=='<')return false;\n else if(c=='>')return false;\n else return false;\n }", "title": "" }, { "docid": "e726cf351238584979d73f2ea80a586e", "score": "0.6157713", "text": "String getAChar();", "title": "" }, { "docid": "437334abb7e0d01e5a3911887d2fb7fd", "score": "0.6153657", "text": "private static void tagidentify(String s) {\n\t\n\tchar ch[]=s.toCharArray();\n if(((ch[0]+ch[1])%2==0)&&((ch[0]+ch[1])%2==0)) {\n if(((ch[3]+ch[4])%2==0)&&((ch[4]+ch[5])%2==0)) {\n\t if(((ch[5]+ch[7])%2==0)&&((ch[7]+ch[8])%2==0)) {\n if((ch[2]!='A') || (ch[2]!='E')|| (ch[2]!='I') || (ch[2]!='O') || (ch[2]!='U')) {\n if(ch[6]=='-') {\n \t System.out.println(\"valid\");\n }\n }\n }\n }\n }\n else {\n\t System.out.println(\"not valid\");\n }\n}", "title": "" }, { "docid": "4e041441b02c4391e12c00b9f885ed4e", "score": "0.61480194", "text": "void voegToe(char c);", "title": "" }, { "docid": "fd2adbf12b65d8d6ee9dc0dc0a37c351", "score": "0.61188763", "text": "private static boolean isReserved(char c) {\n/* 161 */ switch (c) {\n/* */ case '\"':\n/* */ case '*':\n/* */ case ':':\n/* */ case '<':\n/* */ case '>':\n/* */ case '?':\n/* */ case '|':\n/* 169 */ return true;\n/* */ } \n/* 171 */ return (c <= '\\037');\n/* */ }", "title": "" }, { "docid": "e859ac9cf15b5cb3cc7d2aed6020ceac", "score": "0.610135", "text": "char type(char plaintextLetter);", "title": "" }, { "docid": "a832ba6b15815e5998fd16b1d518637a", "score": "0.60876137", "text": "public static String fun(char input) {\n char ch = input;\n\n if(ch>='A' && ch<='Z'){\n return \"Capital letter\";\n }\n else if(ch>='a' && ch<='z'){\n return \"Small letter\";\n }\n else if(ch>='0' && ch<='9'){\n return \"It's a Number\";\n }\n else{\n return \"Special Symbol\";\n }\n\n\n\n\n }", "title": "" }, { "docid": "b7f8e94517c45a3cdfdca25c88944d8e", "score": "0.6082368", "text": "@Test\n public void givenStringAndCharacterShouldReturnTheNumberOfOccurrenceOfThatCharacterInString() {\n assertTrue(occurrenceOfACharacter.setString(\"This is the given String\"));\n int expectedOutput = 4;\n assertEquals(expectedOutput, occurrenceOfACharacter.getNumberOfOccurrence('i'));\n }", "title": "" }, { "docid": "5381b85a147bf053639b0651a6708626", "score": "0.6077739", "text": "public static void problemOne(String strInput, char charInput) {\n\n int i = 0;\n\n for (int ii = 0; ii < strInput.length(); ii ++){\n\n if (strInput.charAt(ii) == charInput){\n i ++;\n }\n }\n\n System.out.println(\"\\\"\" + strInput + \"\\\"\" + \" has \" + i + \" \\'\" +charInput + \"\\'\");\n }", "title": "" }, { "docid": "6084b55eb23d6500d74531e40b8136c4", "score": "0.60679525", "text": "public char getChar();", "title": "" }, { "docid": "c4fd2dc64e5e32a7c3a2f3d403a9ce73", "score": "0.6019969", "text": "public static boolean isOp(char c) {\n\treturn (c == '+' || c == '-' || c == '*' || c == '/' || c == '(' || c == ')');\n }", "title": "" }, { "docid": "952290fa973e5809f0a60f668b1d4aba", "score": "0.5998216", "text": "char getCharacter();", "title": "" }, { "docid": "0284f2e10fe1908919774d265dd1cbc5", "score": "0.59740984", "text": "private boolean isValid(char value) {\r\n return isLetter(value) || isSpecial(value);\r\n }", "title": "" }, { "docid": "d20939f66184abecef9a936e469cb3f6", "score": "0.5972554", "text": "public static boolean is_operator_ch(char c1) throws Exception{\r\n\t\tif (c1 == '+' || c1 == '-' || c1 == '/' || c1 == '*' || c1 == '%')\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "df0dbed3bf00b4671d823d71cc6e7ad2", "score": "0.5971631", "text": "boolean hasCharacterInformation();", "title": "" }, { "docid": "bc6863539ef8e7bf9e288aa249b6395c", "score": "0.5969993", "text": "private boolean isOtherChar(char ch) {\n return !(isLetterDigitOrUnderscore(ch) || Character.isWhitespace(ch));\n }", "title": "" }, { "docid": "6c7e0cd0556701a1a94c98c56131c34e", "score": "0.5959126", "text": "private void checkGraphicChar(int n) throws ScannerException\n {\n if (n == Source.EOF)\n throw error(\"End of file reached before closing quote for Char or String literal.\");\n else if (n > 0xffff)\n throw error(\"Character not in Unicode Basic Multilingual Pane (BMP)\");\n else\n {\n char c = (char) n;\n if (c == '\\r' || c == '\\n') // special check for end of line\n throw error(\"Char and String literals can not extend past end of line.\");\n else if (Character.isISOControl(c)) // Sorry. No ISO control characters.\n throw new ScannerException(source.getCharPosition(),\n \"Control characters not allowed in Char or String literal.\");\n }\n }", "title": "" }, { "docid": "67cda67bbea112ce6b8c53710955f000", "score": "0.5946689", "text": "public abstract char mapChar(char c);", "title": "" }, { "docid": "7ca9d5946215d6d582553ea5e59a6fc3", "score": "0.5932296", "text": "private boolean isPlaceholder(int paramInt, char paramChar) {\n/* 566 */ return (getPlaceholderCharacter() == paramChar);\n/* */ }", "title": "" }, { "docid": "7b69a6c8594b513b7161c30529e2aae6", "score": "0.5912646", "text": "public char firstNonReapetinChar(String str);", "title": "" }, { "docid": "438a2c65759be594e6cdf2ec246fa020", "score": "0.5908618", "text": "public static int counting(String input, char charc) \n {\nint times = 0;\n//for loop to loop through the text and check for the character (charc) at each index\nfor(int Count1 = 0; Count1 < input.length(); Count1++)\n {\n\n  if( charc == input.charAt(Count1))\n times = times +1;\n }\nreturn times;\n }", "title": "" }, { "docid": "07227d5c28a7d494cf0dd046580bcd23", "score": "0.59059036", "text": "private char getCharacter(int paramInt, char paramChar) {\n/* 606 */ return getMaskCharacter(paramInt).getChar(paramChar);\n/* */ }", "title": "" }, { "docid": "93cc074b2f274d254b2a1179fd779e6e", "score": "0.59020793", "text": "private boolean isPositionable(final CharSequence input) {\r\n\t\tif (((String) input).contains(\"-LRB-\") || ((String) input).contains(\"-RRB-\") || ((String) input).contains(\"SYM\")\r\n\t\t\t\t|| ((String) input).contains(\"IN\"))\r\n\t\t\treturn true;\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tfinal char c = input.charAt(i);\r\n\t\t\tif (c >= 'A' && c <= 'Z')\r\n\t\t\t\treturn false; // things get to this point must be lower cased\r\n\t\t\tif (c == '_')\r\n\t\t\t\treturn false; // should not have any '_' in the text anymore\r\n\t\t\tif ((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9'))\r\n\t\t\t\treturn true;\r\n\t\t\tif (c == '\\'' || c == '?' || c == '(' || c == ')' || c == '.' || c == ';' || c == '!' || c == '`')\r\n\t\t\t\treturn true;\r\n\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "4a37e955a2b9f53d57cc8c072f61afdb", "score": "0.5886876", "text": "StringFormula charAt(StringFormula str, IntegerFormula index);", "title": "" }, { "docid": "7092cfdc2149f69e302d1670dbb2c5a4", "score": "0.588539", "text": "boolean hasBinaryCharacValue();", "title": "" }, { "docid": "9c35518abd164ca74b1301256dc8b03c", "score": "0.58816695", "text": "@Test\n public void givenStringAndCharacterShouldNotReturnTheCorrectValue() {\n assertTrue(occurrenceOfACharacter.setString(\"This is the given String\"));\n int expectedOutput = 3;\n assertNotEquals(expectedOutput, occurrenceOfACharacter.getNumberOfOccurrence('i'));\n }", "title": "" }, { "docid": "4e1bef2444b75d510ce1593cd595b9f3", "score": "0.58793217", "text": "private boolean isVowel(char c) {\n return \"aeiouAEIOU\".indexOf(c) != -1;\n }", "title": "" }, { "docid": "a237e6c528b41c2c601b6ec79d510f18", "score": "0.5856091", "text": "char getChar(String key);", "title": "" }, { "docid": "491b5d03a7fc912d7f28325692bce3f1", "score": "0.58550733", "text": "char getSuitChar() {\r\n\t\tshort idx = this.getSuitIdx();\r\n\r\n\t\treturn Maverick.SUITCHARS[idx];\r\n\t}", "title": "" }, { "docid": "a790a8cf4940e8997fb887a300b5f382", "score": "0.5854913", "text": "public static boolean characterInString(String s,char c)\n\t{\n\t\treturn (s.indexOf(c) > -1);\n\t}", "title": "" }, { "docid": "e2d5f6682bc2acbc9705e9d723d62718", "score": "0.58457863", "text": "public abstract char readChar();", "title": "" }, { "docid": "90a2db339b4ae0d43dbbd1eedcffe702", "score": "0.58362585", "text": "char getUnicode();", "title": "" }, { "docid": "133b3f0aa2345d4f9d9107e6ef7ef395", "score": "0.5835264", "text": "private boolean isVowel_contains(char c) {\n return \"aeiouAEIOU\".contains(c+\"\");\n }", "title": "" }, { "docid": "49eca9952a2fa4718fc84d20c569f099", "score": "0.5830911", "text": "public static interface SingleCharacter {\n\t}", "title": "" }, { "docid": "fd57fae44b4b7989891d14ae2927a111", "score": "0.5815872", "text": "void mo3182a(CharSequence charSequence);", "title": "" }, { "docid": "c3926a46211ec2290b6f7b4e407fbbda", "score": "0.58095974", "text": "char toChar();", "title": "" }, { "docid": "9d992816199ca7d8cfe4ad887a49d1a4", "score": "0.5804993", "text": "private void assertChar() throws QueryException {\n if (!type.isChar())\n throw new QueryException(\"Used \" + type.toString() + \" as CHAR\");\n }", "title": "" }, { "docid": "3e9456d2d7a7dc34e3b216879d971362", "score": "0.5802481", "text": "public static boolean isSpecialChar(char c)\n{\n // Handle special chars: '.', '-'\n if(c=='.' || c=='-')\n return true;\n\n // Handle escape chars: \\, \\t, \\n, \\r, \\f (form-feed), \\a (alert/bell), \\e (escape)\n else if(c=='\\\\')\n return true;\n \n // Handle '[',']' (letter group), '^' (not letter, begin line anchor), '-' (dash), '&' ampersand\n else if(c=='[' || c==']'|| c=='^' || c=='-' || c=='&')\n return true;\n \n // Handle anchors: '^' (begin line), '$' (end line), \n else if(c=='^' || c=='$')\n return true;\n \n // Handle Greedy quantifiers: '?' (optional), '*' (zero or more), '+' (one or more), '{', '}' (n times)\n else if(c=='?' || c=='*' || c=='+' || c=='{' || c=='}')\n return true;\n \n // Handle logical operators: '|' (or), '(', ')' (capturing group), \n else if(c=='|' || c=='(' || c==')' )\n return true;\n\n // Return this\n return false;\n}", "title": "" }, { "docid": "f14bb15d239a5e99d1c71249a6bff3de", "score": "0.5795973", "text": "static boolean isLetter(char c){\r\n return (c > 64 && c < 91) || (c > 96 && c < 123);\r\n }", "title": "" }, { "docid": "053d6a49dc71b791ed6e8df221d8c3fe", "score": "0.578639", "text": "@Test(timeout = 4000)\n public void test095() throws Throwable {\n StringReader stringReader0 = new StringReader(\"*I9+!'c$bGJ1_\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"*\", token0.toString());\n }", "title": "" }, { "docid": "a62d07343456cfec4b6a2b6d8e5744cf", "score": "0.5783579", "text": "private boolean isSpecial(char value) {\r\n return value == '_' || value == '-' || value == ':';\r\n }", "title": "" }, { "docid": "b2a45143acc5eadc6655ce267ac6dab0", "score": "0.578202", "text": "private static boolean isValidNameChar(char c) {\n\t\tint value = (int)c;\n\t\tif ((90 >= value && value >= 65) || (122 >= value && value >= 97) || (57 >= value && value >= 48) || (value == 95)) {\n\t\t\treturn true;\n\t\t}else\n\t\t\treturn\tfalse;\n\t}", "title": "" }, { "docid": "7ef2bb45ccba42120c524af9104495cc", "score": "0.57790035", "text": "private boolean isCharParenthesis(char actChar){\n return actChar == '(' || actChar == ')';\n }", "title": "" }, { "docid": "c77f502d9cccff3f868b2a1ed7a662ca", "score": "0.5778833", "text": "private static boolean isValidChar(String userXO) {\n\t\treturn userXO.length() == 1 && (userXO.equalsIgnoreCase(\"X\") || userXO.equalsIgnoreCase(\"O\"));\n\t}", "title": "" }, { "docid": "0b88ceffef155f7959aca6aafbfaef96", "score": "0.5775536", "text": "@Test(timeout = 4000)\n public void test026() throws Throwable {\n StringReader stringReader0 = new StringReader(\"if\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(\"if\", token0.toString());\n }", "title": "" }, { "docid": "1beef5fbb81c0478eaddab379f04bfc0", "score": "0.5774085", "text": "EObject getCHAR();", "title": "" }, { "docid": "c2cf71477dc560f2ff3772ed16894b2f", "score": "0.57649386", "text": "public char getChar(char param1Char) {\n/* 858 */ return param1Char;\n/* */ }", "title": "" }, { "docid": "945b54f239b62133efdc4188140a34e3", "score": "0.57636106", "text": "private static boolean isEncodedTextChar(int c) {\n if (c < 33 || c > 126)\n return false;\n if (c == '?')\n return false;\n return true;\n }", "title": "" }, { "docid": "eb9681dbe5e90b6764509b101618fa94", "score": "0.5762489", "text": "public static void main(String[] args) {\nString company=\"Deloitte is a good company @\";\r\nchar c[]=company.toCharArray();\r\nfor(int i=0;i<c.length;i++)\r\n{\r\n\tCharacter x=new Character(c[i]);\r\n\tif(Character.isDigit(x)) {\r\n\t\tSystem.out.println(x+\"is digit\");\r\n\t}\r\n\telse if(Character.isLetter(x))\r\n\t{\r\n\t\tSystem.out.println(x+\" is letter\");\r\n\t}\r\n\telse if(Character.isWhitespace(x)) {\r\n\t\tSystem.out.println(x+\" Is a whitespace\");\r\n\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(x+\" is a special character\");\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n}", "title": "" }, { "docid": "5fc56f9052a9208c4c195e4c30a12581", "score": "0.5755932", "text": "char unicode();", "title": "" }, { "docid": "81159fad37a7ca16d98436fc96f5c99c", "score": "0.57557976", "text": "@Override\n\t\t\tpublic Boolean func(Character a) {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "f27eae48d03963bedf44114cfee24d9f", "score": "0.57496035", "text": "private static boolean isValidCharacter(char c)\n {\n return (32 <= c && c <= 126) || (160 <= c && c <= 255)\n || \"\\t\\r\\n\\f\".indexOf(c) >= 0;\n }", "title": "" }, { "docid": "242a59904fa58768cc6d4d778ae3577e", "score": "0.57356757", "text": "public abstract char toChar();", "title": "" }, { "docid": "da0ba9a09f77380f480d170ca20784dc", "score": "0.573529", "text": "private char inspectChar(int nthChar) {\n\t\treturn sourceFile.inspectChar(nthChar);\n\t}", "title": "" }, { "docid": "addd6d68d7265e7938a78b15b277fd3b", "score": "0.57322454", "text": "boolean mo1729c(String str);", "title": "" }, { "docid": "95892cae8cdd7fbbe2c13de577ec98d1", "score": "0.5729247", "text": "private static boolean isOperator(Character c) {\n\n\t\tString operators = \"*\" + \"/\" + \"+\" + \"-\";\n\t\tif (operators.indexOf(c) != -1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "da565c69d6a61d45160b34ef012e3c06", "score": "0.5727107", "text": "public static Boolean getLogicValueFromChar(char value){\n if(value == '1'){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "c0fad7b4f6892c98d37b0f9d0e3c124c", "score": "0.57230026", "text": "boolean mo14923c(String str);", "title": "" }, { "docid": "12561cb7db9754dfe91f0c4c275ab9ba", "score": "0.57214016", "text": "public static boolean isUnique(char c){\r\n\t\tint hit = 0;\r\n\t\tfor(int i=0; i<pascalOperators.length; i++) {\r\n\t\t\tif(pascalOperators[i].getLexeme().charAt(0) == c) {\r\n\t\t\t\thit = hit + 1;\r\n\t\t\t\tif(hit > 1) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "aae070f5dd677a1705defb4f24b301fb", "score": "0.5718068", "text": "RegexFormula allChar();", "title": "" }, { "docid": "7439dc3471db2002f07b20670bc8e088", "score": "0.5712129", "text": "Optional<Character> keyAtPosition(IntPoint p);", "title": "" }, { "docid": "eb5e7a6437f63b0979b78f8d0956f6a0", "score": "0.5709698", "text": "char viewChar(int x);", "title": "" }, { "docid": "2cd9169f44e56fa03ea38a7a93e2dfd0", "score": "0.57025427", "text": "public boolean check(char c)\n\tthrows IOException {\n\tint lastread=0;\n\tlastread=this.read();\n\tthis.unread(lastread);\n\treturn (lastread == c); \n }", "title": "" }, { "docid": "37ce60b78f6cc22459c0abfcc2105232", "score": "0.5699518", "text": "@Test(timeout = 4000)\n public void test098() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+/ 6p zT-'KkGrO\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.getBeginColumn());\n assertEquals(104, token0.kind);\n }", "title": "" }, { "docid": "3ab57aba7e676ff55512919fcf01a14a", "score": "0.56992054", "text": "public static boolean isContigPrefixedChr(String contig){\n return contig.startsWith(\"chr\");\n }", "title": "" }, { "docid": "7e1153c482a6670a4031704d34c8e11d", "score": "0.5699014", "text": "private boolean checkIfVowel(char c){\n\tfor(char v : VOWEL_LIST){\n\t if(c == v){\n\t\treturn true;\n\t }\n\t}\n\treturn false;\n }", "title": "" }, { "docid": "9be2ed45383fb964d7882f1646866809", "score": "0.5695743", "text": "private boolean isU(char trinucleotide) {\n\t\tif (trinucleotide == U)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "5368c91fcf717d6c6b77411d526dd9ba", "score": "0.56863564", "text": "private static char readChar(InflaterInputStream input) {\n\n int r = 0;\n\n try {\n r = Scrambler.descrambleByte(input);\n r |= Scrambler.descrambleByte(input) << 8;\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return (char) r;\n }", "title": "" }, { "docid": "4caf1c49429987c4c3abac62281e2b86", "score": "0.5684956", "text": "@Test\n public void testGetChar() {\n System.out.println(\"getChar\");\n Character expResult = 'A';\n Character result = instance.getChar();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "d0eae283d797e3061466228c8823dcd7", "score": "0.5684069", "text": "void mo2101a(CharSequence charSequence);", "title": "" }, { "docid": "2e0a6137a81df6fea3f1503514bb468d", "score": "0.56829435", "text": "private static Character approach1(String input) {\n Character output = null;\n for (int i = 0; i < input.length(); i++) {\n if (!input.substring(i + 1).contains(String.valueOf(input.charAt(i))) &&\n !input.substring(0,i).contains(String.valueOf(input.charAt(i)))) {\n output = input.charAt(i);\n break;\n }\n }\n return output;\n }", "title": "" }, { "docid": "cef42757da579cdbbce903d17a27bd17", "score": "0.56827545", "text": "int getCharStart();", "title": "" }, { "docid": "bb55867c04e39e0c4d06b3017a020613", "score": "0.5680365", "text": "private String isSymbol(char c) {\r\n\t\t\r\n\t\tfor(int i = 0; i < symbols.length; i++) {\r\n\t\t\tif(symbols[i] == c) {\r\n\t\t\t\treturn \"\" + symbols[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "194128c9654ce65276f4748b18a42360", "score": "0.56779194", "text": "boolean contains(char c, String s) {\n\t\tboolean contains = false;\n\t\t//System.out.println(s); // check of string goed doorkomt\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tif(c == s.charAt(i)) {\n\t\t\t\tcontains = true;\n\t\t\t}//end if statement\n\t\t}//end forloop\n\t\t//System.out.println(contains);// check of boolean klopt\n\t\treturn contains;\n\t}", "title": "" }, { "docid": "1532e98f2d5e2422576a36f332d951e7", "score": "0.567766", "text": "@Test\n public void givenStringAndCharacterShouldReturnNumberOfOccurrenceOfThatCharacterInString() {\n assertTrue(occurrenceOfACharacter.setString(\"This is the given String\"));\n int expectedOutput = 4;\n assertEquals(expectedOutput, occurrenceOfACharacter.getNumberOfOccurrence(' '));\n }", "title": "" }, { "docid": "2584069177669184b1d2c65ca69abb0a", "score": "0.56742275", "text": "public boolean containsChar(char c) {\n if (!map.containsKey(c)) return false;\n else return true;\n }", "title": "" }, { "docid": "68c94973ec6ec052102506401462ccab", "score": "0.5672554", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n StringReader stringReader0 = new StringReader(\"y^*Zoy(~+9Op2\");\n char[] charArray0 = new char[7];\n charArray0[0] = 'B';\n charArray0[1] = 'C';\n charArray0[2] = 'B';\n charArray0[3] = 'C';\n charArray0[4] = 'B';\n charArray0[5] = '2';\n charArray0[6] = 'C';\n stringReader0.read(charArray0);\n StringReader stringReader1 = new StringReader(\"if\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n \n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(\"\", token0.toString());\n }", "title": "" }, { "docid": "03d93b44e8ff698cb2db4ca4e2507f20", "score": "0.56687355", "text": "@Test(timeout = 4000)\n public void test086() throws Throwable {\n StringReader stringReader0 = new StringReader(\"1YcU>\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(\"1\", token0.toString());\n assertEquals(66, token0.kind);\n }", "title": "" }, { "docid": "b1d8cdc2e58e62d766e2c23a1cc2daa1", "score": "0.5665847", "text": "ScanRes check1() {\r\n char c = get(start);\r\n switch (c) {\r\n case '\\n':\r\n return tok1(TokenType.Newline);\r\n case '\\'': {\r\n int x = scan_string(start);\r\n if (x >= 0) {\r\n return tokx(TokenType.SString, x);\r\n } else {\r\n return tokx(TokenType.Schrott, len);\r\n }\r\n }\r\n case '\"': {\r\n int x = scan_qident(start);\r\n if (x >= 0) {\r\n return tokx(TokenType.QIdent, x);\r\n } else {\r\n return tokx(TokenType.Schrott, len);\r\n }\r\n }\r\n case '(':\r\n return tok1(TokenType.LParen);\r\n case ')':\r\n return tok1(TokenType.RParen);\r\n case '>':\r\n return tok1(TokenType.Greater);\r\n case '<':\r\n return tok1(TokenType.Less);\r\n case '-':\r\n return tok1(TokenType.Minus);\r\n case '+':\r\n return tok1(TokenType.Plus);\r\n case '.':\r\n return tok1(TokenType.Dot);\r\n case '/':\r\n return tok1(TokenType.Div);\r\n case '*':\r\n return tok1(TokenType.Mul);\r\n case ',':\r\n return tok1(TokenType.Comma);\r\n case ';':\r\n return tok1(TokenType.Semi);\r\n case '=':\r\n return tok1(TokenType.Equal);\r\n case '%':\r\n return tok1(TokenType.Percent);\r\n case ':':\r\n return tok1(TokenType.Colon);\r\n case '!':\r\n return tok1(TokenType.Exclamation);\r\n default:\r\n if (Character.isDigit(c)) {\r\n return scan_number(start);\r\n } else if (is_white_space(c)) {\r\n return tokx(TokenType.WhiteSpace, scan_ws(start));\r\n } else if (Character.isLetter(c)) {\r\n return tokx(TokenType.Ident, scan_ident(start));\r\n } else {\r\n //System.err.println(\"strange char at : \" + line + \", \" + col + \": \" + c);\r\n return tok1(TokenType.StrangeChar);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "e50c0c16c7d58cd2bb696b844df03728", "score": "0.5665524", "text": "private char leeCaracter(String men)\r\n {\r\n Scanner teclado = new Scanner (System.in);\r\n\r\n System.out.print(men);\r\n return ( teclado.nextLine().trim().charAt(0) ); \r\n }", "title": "" }, { "docid": "000d27ce5f26b0ac7760f480543c43c5", "score": "0.56628543", "text": "public static boolean isSimpleCharacter(final char character) {\n boolean found = false;\n for (final char element : FileUtils.allowedCharacters) {\n found = ((found || (character == element)) || (character == Character.toUpperCase(element)));\n }\n return found;\n }", "title": "" }, { "docid": "c02819cb0b0a4f877392a7599d155c04", "score": "0.5662763", "text": "private static boolean isIllegal(char c) {\n\n switch (c) {\n case '\\u0000': return true;\n case '\\u0001': return true;\n case '\\u0002': return true;\n case '\\u0003': return true;\n case '\\u0004': return true;\n case '\\u0005': return true;\n case '\\u0006': return true;\n case '\\u0007': return true;\n case '\\u0008': return true;\n case '\\u000B': return true;\n case '\\u000C': return true;\n case '\\u000E': return true;\n case '\\u000F': return true;\n case '\\u0010': return true;\n case '\\u0011': return true;\n case '\\u0012': return true;\n case '\\u0013': return true;\n case '\\u0014': return true;\n case '\\u0015': return true;\n case '\\u0016': return true;\n case '\\u0017': return true;\n case '\\u0018': return true;\n case '\\u0019': return true;\n case '\\u001A': return true;\n case '\\u001B': return true;\n case '\\u001C': return true;\n case '\\u001D': return true;\n case '\\u001E': return true;\n case '\\u001F': return true;\n case '\\u0080': return true;\n case '\\u0081': return true;\n case '\\u0082': return true;\n case '\\u0083': return true;\n case '\\u0084': return true;\n case '\\u0085': return true;\n case '\\u0086': return true;\n case '\\u0087': return true;\n case '\\u0088': return true;\n case '\\u0089': return true;\n case '\\u008A': return true;\n case '\\u008B': return true;\n case '\\u008C': return true;\n case '\\u008D': return true;\n case '\\u008E': return true;\n case '\\u008F': return true;\n case '\\u0090': return true;\n case '\\u0091': return true;\n case '\\u0092': return true;\n case '\\u0093': return true;\n case '\\u0094': return true;\n case '\\u0095': return true;\n case '\\u0096': return true;\n case '\\u0097': return true;\n case '\\u0098': return true;\n case '\\u0099': return true;\n case '\\u009A': return true;\n case '\\u009B': return true;\n case '\\u009C': return true;\n case '\\u009D': return true;\n case '\\u009E': return true;\n case '\\u009F': return true;\n default: return false;\n }\n\n }", "title": "" }, { "docid": "659ac0e0353800792c29f3d61408a26c", "score": "0.5658031", "text": "char getChar(Attribute key);", "title": "" }, { "docid": "9ee8d159ef8b77a61d6554d66000a3f8", "score": "0.56562805", "text": "public static Boolean isAlphabetic(Character c){\n return Character.isAlphabetic(c);\n }", "title": "" }, { "docid": "19f9f12cf67d2d0f55b13c98078b18f9", "score": "0.5656245", "text": "@Test\r\n\tpublic void checkSpecialChar() {\r\n\t\tMap<String, Integer> output = new LinkedHashMap<String, Integer>();\r\n\t\toutput.put(\"the quick\", 2);\r\n\t\toutput.put(\"quick brown\", 1);\r\n\t\toutput.put(\"brown fox\", 1);\r\n\t\toutput.put(\"fox and\", 1);\r\n\t\toutput.put(\"and the\", 1);\r\n\t\toutput.put(\"quick blue\", 1);\r\n\t\toutput.put(\"blue hare\", 1);\r\n\t\tAssert.assertEquals(output, bigram.calculateBigram(\"The quick: brown, fox and the quick 'blue hare &&\"));\r\n\t}", "title": "" }, { "docid": "4dd72467be3f540a4f361df7d9e42534", "score": "0.56543624", "text": "public boolean isMappedToReference(char character)\n/* */ {\n/* 111 */ return isMappedToReference(character, \"ISO-8859-1\");\n/* */ }", "title": "" }, { "docid": "c2c7cabd53cb821cdb7bf0c2c7f247e6", "score": "0.5652165", "text": "@Test(timeout = 4000)\n public void test031() throws Throwable {\n StringReader stringReader0 = new StringReader(\"b!G!R\");\n char[] charArray0 = new char[1];\n charArray0[0] = 'h';\n stringReader0.read(charArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.TokenLexicalActions(token0);\n assertEquals(3, javaCharStream0.getColumn());\n assertEquals(\"G\", token0.toString());\n }", "title": "" }, { "docid": "1054d6373d941ab1f9cac8a6eb4e1a69", "score": "0.56492853", "text": "private boolean check(char a, char b, char c){\n if(a==b && b == c && c !=' '){\n \n return true;\n }\n return false;\n \n}", "title": "" } ]
f060cc9d1ed77e4c37f12ab66d0549cf
Add authentication filter to default client.
[ { "docid": "af0f5e31590dedd3e416228e5f447f7d", "score": "0.54929465", "text": "private Client getClient() {\n Client client = ClientBuilder.newClient();\n client.register(new ClientAuthenticationFilter());\n return client;\n }", "title": "" } ]
[ { "docid": "a17ff903563b77e9fff8ef6617760566", "score": "0.5976253", "text": "public NegotiateSecurityFilterEntryPoint() {\n NegotiateSecurityFilterEntryPoint.LOGGER.debug(\"[waffle.spring.NegotiateEntryPoint] loaded\");\n }", "title": "" }, { "docid": "0772ec8f22f45c1dc631b60f1924eb09", "score": "0.579695", "text": "@Override\n protected void configure(HttpSecurity http) throws Exception {\n http.csrf().disable();\n\n // No session will be created or used by spring security\n http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS);\n\n // Entry points\n http.authorizeRequests()\n .antMatchers(\"/api/v1/users/**\").permitAll()\n .antMatchers(\"/api/v1/tables/**\").permitAll()\n .antMatchers(\"/api/v1/productsInOrder/**\").permitAll()\n .antMatchers(\"/api/v1/products/**\").permitAll()\n .antMatchers(\"api/v1/orders/**\").permitAll()\n // Disallow everything else..\n .anyRequest().authenticated();\n\n\n\n\n http.addFilterBefore(myCustomFilter(), UsernamePasswordAuthenticationFilter.class);\n\n // Optional, if you want to test the API from a browser\n // http.httpBasic();\n }", "title": "" }, { "docid": "b664eba3015c5abd2b011ce0d0158c31", "score": "0.5761827", "text": "protected void tokenAuthentication(HttpSecurity http) {\r\n\t\t\r\n\t\thttp.addFilterBefore(new LemonCommonsWebTokenAuthenticationFilter(blueTokenService),\r\n\t\t\t\tUsernamePasswordAuthenticationFilter.class);\r\n\t}", "title": "" }, { "docid": "43e6281c1c7e6da1bce2e18264f51491", "score": "0.5687082", "text": "@Override\r\n protected void setAuthentication(@NotNull HttpRequest request) throws AuthenticationException {\n request.addHeader(new BasicScheme().authenticate(new UsernamePasswordCredentials(token, \"x-oauth-basic\"), request));\r\n }", "title": "" }, { "docid": "20da83c8dd2937523b596b0b9ac508c3", "score": "0.56724274", "text": "@Override\n public void filter(ContainerRequestContext requestContext)\n throws IOException {\n log.debug(\"Setting customSecurityContext\");\n\n final ContainerRequestContext finalRequestContext = requestContext;\n\n finalRequestContext.setSecurityContext(new SecurityContext() {\n @Override\n public Principal getUserPrincipal() {\n MultivaluedMap<String, String> headers = finalRequestContext.getHeaders();\n if (!(headers.containsKey(APIKEYHEADER)\n && (headers.getFirst(APIKEYHEADER).length() > 0))) {\n log.debug(\"api key (null): \" + headers.getFirst(APIKEYHEADER));\n return null;\n }\n\n log.debug(\"api key: \" + headers.getFirst(APIKEYHEADER));\n\n User user = collectionDao.getUserForAPIToken(headers.getFirst(APIKEYHEADER));\n return user;\n }\n\n @Override\n public boolean isUserInRole(String role) {\n User user = (User) this.getUserPrincipal();\n return user != null && user.getRole() != null && user.getRole().equals(role);\n }\n\n @Override\n public boolean isSecure() {\n return false;\n }\n\n @Override\n public String getAuthenticationScheme() {\n return \"custom\";\n }\n });\n\n }", "title": "" }, { "docid": "51ce7c4b668db55861ef09868b0d84f8", "score": "0.5666305", "text": "@Bean\n\tpublic UserAuthenticationFilter userAuthenticationFilter() throws Exception {\n\t\tUserAuthenticationFilter userAuthenticationFilter = new UserAuthenticationFilter();\n\t\tuserAuthenticationFilter.setAuthenticationManager(authenticationManagerBean());\n\t\tuserAuthenticationFilter\n\t\t\t\t.setRequiresAuthenticationRequestMatcher(new AntPathRequestMatcher(\"/login/authenticate\", \"POST\"));\n\t\tuserAuthenticationFilter.setAuthenticationFailureHandler(customAuthenticationFailureHandler());\n\t\tuserAuthenticationFilter.setAuthenticationSuccessHandler(customAuthenticationSuccessHandler());\n\t\treturn userAuthenticationFilter;\n\t}", "title": "" }, { "docid": "af48d7476eb12b1ca44d855aa6a26b74", "score": "0.5642714", "text": "public void initOAuth() {\n oauth_params = new OAuthParameters().consumerKey(CONSUMER_KEY).token(oauth_access_token).signatureMethod(com.sun.jersey.oauth.signature.HMAC_SHA1.NAME).version(\"1.0\").nonce().timestamp();\n oauth_secrets = new OAuthSecrets().consumerSecret(CONSUMER_SECRET).tokenSecret(oauth_access_token_secret);\n oauth_filter = new OAuthClientFilter(client.getProviders(), oauth_params, oauth_secrets);\n webResource.addFilter(oauth_filter);\n }", "title": "" }, { "docid": "4ece6dd7043928d51dd33aa177c34fd0", "score": "0.5594162", "text": "@Override\n public void filter(final ContainerRequestContext requestContext) throws IOException {\n requestContext.setSecurityContext(new SecurityContext() {\n @Override\n public Principal getUserPrincipal() {\n return new Principal() {\n @Override\n public String getName() {\n return \"\";\n }\n };\n }\n\n @Override\n public boolean isUserInRole(String string) {\n /**\n * If API needs authorization user, we have to check cookie with session\n */\n if (string != null && (\"\" + UserRoles.AUTHORIZED).equals(string)) {\n return isAuthenticated(requestContext);\n }\n /**\n * For all other roles, we allow execution\n */\n return true;\n }\n\n @Override\n public boolean isSecure() {\n return requestContext.getSecurityContext().isSecure();\n }\n\n @Override\n public String getAuthenticationScheme() {\n return requestContext.getSecurityContext().getAuthenticationScheme();\n }\n });\n }", "title": "" }, { "docid": "5091bdbb46fe1d6f5957d7efbab387ea", "score": "0.5563066", "text": "public void setWantClientAuth(boolean z) {\n this.want_client_auth = z;\n this.need_client_auth = false;\n }", "title": "" }, { "docid": "ae7f631369cc29515110fe3b0828d49b", "score": "0.5559786", "text": "private List<SecurityReference> defaultAuth() {\n AuthorizationScope authorizationScope = new AuthorizationScope(\"global\", \"accessEverything\");\n\n AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];\n authorizationScopes[0] = authorizationScope;\n\n return Collections.singletonList(new SecurityReference(\"JWT\", authorizationScopes));\n }", "title": "" }, { "docid": "88e86ba8c7174c3a6ce5eb968f16dae2", "score": "0.55390596", "text": "@Override\n public void intercept(RequestFacade request) {\n String string = \"Basic \" + Base64.encodeToString(credentials.getBytes(), Base64.NO_WRAP);\n request.addHeader(\"Accept\", \"application/json\");\n request.addHeader(\"Authorization\", string);\n }", "title": "" }, { "docid": "45cd798376580a244f30a918445fbad8", "score": "0.55262923", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {\n final String token = request.getHeader(\"X-Token\");\n if (token == null) {\n filterChain.doFilter(request, response);\n return;\n }\n\n if (!authenticationIsRequired()) {\n filterChain.doFilter(request, response);\n return;\n }\n\n try {\n final Authentication authResult = manager.authenticate(new XAuthenticationToken(token, \"\"));\n if (logger.isDebugEnabled()) {\n logger.debug(\"Authentication success: \" + authResult);\n }\n SecurityContextHolder.getContext().setAuthentication(authResult);\n } catch (AuthenticationException e) {\n e.printStackTrace();\n SecurityContextHolder.clearContext();\n\n /*\n AuthenticationEntryPoint\n\n HTTP/1.1 401 Unauthorized\n WWW-Authenticate: X-Token realm=\"...\"\n */\n response.addHeader(\"WWW-Authenticate\", \"X-Token\");\n response.sendError(HttpStatus.UNAUTHORIZED.value(), HttpStatus.UNAUTHORIZED.getReasonPhrase());\n return;\n }\n\n filterChain.doFilter(request, response);\n }", "title": "" }, { "docid": "daa8dd26a24d4137f23cf2a5c619c11d", "score": "0.5520724", "text": "public AddAuth() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "1ae07301c32ce6e3b1935ceb0e9c39ad", "score": "0.5512986", "text": "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n if (PortalApiProperties.getProperty(PortalApiConstants.ECOMP_REDIRECT_URL) == null) {\n throw new ServletException(\"Failed to find URL in portal.properties\");\n }\n\n PortalAuthenticationConfig appProperties;\n try {\n appProperties = PortalAuthenticationConfig.getInstance();\n } catch (Exception ex) {\n throw new ServletException(\"Failed to get properties\", ex);\n }\n\n String restUser = appProperties.getUsername();\n String restPassword = appProperties.getPassword();\n if (restUser == null || restPassword == null) {\n throw new ServletException(\"Failed to find user and/or password from properties\");\n }\n }", "title": "" }, { "docid": "a26b1a41cdf7fa78c8c002dd72ccac38", "score": "0.5472265", "text": "@Override\n public void authenticateUsing(Credentials credentials) {\n }", "title": "" }, { "docid": "0ed367cd2976dfa3facd7bc373c66047", "score": "0.5467332", "text": "@Override\n protected void configure(AuthenticationManagerBuilder auth){\n\n auth.authenticationProvider(customAuthenticationProvider);\n }", "title": "" }, { "docid": "83ecc3642141cfe89dc213548977eadb", "score": "0.5440638", "text": "List<SecurityReference> defaultAuth() {\n\n return Lists.newArrayList(\n new SecurityReference(\"oauth2\", scopes().toArray(new AuthorizationScope[0])));\n }", "title": "" }, { "docid": "e1ad6fd0fd437a23ae91fcc14b27fff4", "score": "0.54322356", "text": "public void init(FilterConfig filterConfig) { \n this.context = filterConfig.getServletContext();\n this.context.log(\"AuthenticationFilter initialized\");\n }", "title": "" }, { "docid": "6b86582bbf87a361bff0c312a56c0843", "score": "0.54184055", "text": "@Override\n protected void configure(HttpSecurity http) throws Exception {\n http.csrf().disable();\n\n // @formatter:off\n http.anonymous().disable()\n .requestMatcher(request -> {\n String auth = request.getHeader(HttpHeaders.AUTHORIZATION);\n return (auth != null && auth.startsWith(\"Basic\"));\n })\n .antMatcher(\"/api/fx-client/**\")\n .authorizeRequests().anyRequest().authenticated()\n .and()\n .httpBasic();\n // @formatter:on\n }", "title": "" }, { "docid": "117344b411827c169b09ca4c4dae346b", "score": "0.5412814", "text": "private Filter ssoFilter() {\n CompositeFilter filter = new CompositeFilter();\n List<Filter> filters = new ArrayList<>(2);\n\n // Configure the OAuth filter for facebook authentication\n OAuth2ClientAuthenticationProcessingFilter facebookFilter = new OAuth2ClientAuthenticationProcessingFilter(\"/login/facebook\");\n OAuth2RestTemplate facebookTemplate = new OAuth2RestTemplate(facebook(), oauth2ClientContext);\n facebookFilter.setRestTemplate(facebookTemplate);\n facebookFilter.setTokenServices(new UserInfoTokenServices(facebookResource().getUserInfoUri(), facebook().getClientId()));\n facebookFilter.setAuthenticationSuccessHandler(new SimpleUrlAuthenticationSuccessHandler(\"/home\"));\n filters.add(facebookFilter);\n\n // Configure the OAuth filter for identity server authentication\n OAuth2ClientAuthenticationProcessingFilter identityServerFilter = new OAuth2ClientAuthenticationProcessingFilter(\"/login/identityserver\");\n OAuth2RestTemplate identityServerTemplate = new OAuth2RestTemplate(identityserver(), oauth2ClientContext);\n identityServerFilter.setRestTemplate(identityServerTemplate);\n identityServerFilter.setTokenServices(new UserInfoTokenServices(identityserverResource().getUserInfoUri(), identityserver().getClientId()));\n identityServerFilter.setAuthenticationSuccessHandler(new SimpleUrlAuthenticationSuccessHandler(\"/home\"));\n filters.add(identityServerFilter);\n\n // Set configured filters on the composite filter\n filter.setFilters(filters);\n\n return filter;\n }", "title": "" }, { "docid": "d287cea87bd6adca1cb51f3852bdf7ee", "score": "0.54100907", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request,\n HttpServletResponse response,\n FilterChain chain) throws ServletException, IOException {\n final String header = request.getHeader(HttpHeaders.AUTHORIZATION);\n if (StringUtils.isEmpty(header) || !header.startsWith(\"Bearer \") || !request.getRequestURI().startsWith(adminEndpoint)) {\n chain.doFilter(request, response);\n return;\n }\n\n // Get jwt token and validate\n final String token = header.split(\" \")[1].trim();\n try {\n Jwt jwt = jwtDecoder.decode(token);\n OAuth2TokenValidator<Jwt> jwtValidator = JwtValidators.createDefault();\n OAuth2TokenValidatorResult validatorResult = jwtValidator.validate(jwt);\n if (validatorResult.hasErrors()) {\n chain.doFilter(request, response);\n return;\n }\n\n // Get user identity and set it on the spring security context\n UserDetails userDetails = customUserDetailsService.loadUserByUsername(jwt.getSubject());\n auditorContext.setUser((UserPrincipal) userDetails);\n\n UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails, null, userDetails.getAuthorities());\n authentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n\n SecurityContextHolder.getContext().setAuthentication(authentication);\n chain.doFilter(request, response);\n } catch (UnauthorizedException ex) {\n response.sendError(HttpStatus.UNAUTHORIZED.value(), getMessage(\"message.unauthorized\"));\n }\n }", "title": "" }, { "docid": "7f0b7f265b368aca2bf2b6563fb5432e", "score": "0.53881425", "text": "public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {\n\n\t\t// if no token is found proceed with other filters\n\t\tif (!isClientRequest(request)) {\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"this is not a custom auth request, proceed with other filters\");\n\t\t\t}\n\t\t\tchain.doFilter(request, response);\n\t\t\treturn;\n\t\t}\n\n\t\tString token = getToken(request);\n\t\tif(token.isEmpty())\n\t\t{\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"no token was passed!\");\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// retrieve existing authentication\n\t\tAuthentication existingAuth = SecurityContextHolder.getContext().getAuthentication();\n\n\t\tHttpServletRequest req = (HttpServletRequest) request;\n\t\tHttpSession session = req.getSession();\n\t\tString sessionToken = (String) session.getAttribute(tokenSessionAttribute);\n\t\tif (sessionToken != null && sessionToken.equals(token) && existingAuth != null && existingAuth.isAuthenticated()) {\n\t\t\t//already authenticated\n\t\t\tchain.doFilter(request, response);\n\t\t\treturn;\n\t\t}\n\n\t\t// loads user information in JasperServer user object\n\t\tClientUserDetails userDetails = getUserDetails(req);\n\n\t\t// now proceed with authentication\n\t\tif (userDetails == null) {\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"user details could not be extracted, proceeding with other filters\");\n\t\t\t}\n\t\t\tchain.doFilter(request, response);\n\t\t\treturn;\n\t\t}\n\n\n\t\t// if an existing authentication is found\n\t\tif (existingAuth != null) {\n\t\t\tSecurityContextHolder.getContext().setAuthentication(null);\n\t\t}\n\n\t\t// to let the JIAuthenticationSynchronizer do his job, set a\n\t\t// authentication token in the session and assign the user details to it\\\n\t\tUsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(userDetails, userDetails.getPassword());\n\t\tauthRequest.setDetails(userDetails);\n\t\t// put this in the current session\n\t\tSecurityContextHolder.getContext().setAuthentication(authRequest);\n\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"authentication object processed\");\n\t\t}\n\n\t\tif (sessionToken == null || !sessionToken.equals(token)) {\n\t\t\tsession.setAttribute(tokenSessionAttribute, token);\n\t\t}\n\n\t\t// as we have to post-process the profile attributes, and don't want to\n\t\t// fire re-writing the profile attributes with each single request we\n\t\t// add simply a flag which we will refer to later\n\t\trequest.setAttribute(\"clientAuth\", \"true\");\n\t\t\n\t\t// done, now let other filters do the rest of the job\n\t\tchain.doFilter(req, response);\n\t}", "title": "" }, { "docid": "7ca439872c47da77d288669bb9f4924e", "score": "0.5360509", "text": "private void authenticate(ContainerRequestContext requestContext) throws RestException {\n\t\tString method = requestContext.getMethod();\r\n\r\n\t\tString path = requestContext.getUriInfo().getPath(true);\r\n\r\n\t\t// Allow wadl to be retrieved\r\n\t\tif(method.equals(HttpMethod.GET) && (path.equals(\"application.wadl\") || path.equals(\"application.wadl/xsd0.xsd\"))) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Get user\r\n\t\tUser user = RequestInfo.get().getUser().get();\r\n\r\n\t\t// Configure Security Context here\r\n\t\tString scheme = requestContext.getUriInfo().getRequestUri().getScheme();\r\n\t\trequestContext.setSecurityContext(new RestApplicationSecurityContext(user, scheme));\r\n\t}", "title": "" }, { "docid": "52d2b8d6cd4a4ba5ca43db95c04dd41d", "score": "0.5359181", "text": "@Override\n public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException,\n ServletException {\n if (authentication == null) {\n logger.info(\"authentication init\");\n authentication = ApplicationContextProvider.getApplicationContext().getBean(\"authentication\", Authentication\n .class);\n }\n\n HttpServletRequest request = (HttpServletRequest) req;\n HttpServletResponse response = (HttpServletResponse) res;\n// HttpSession session = request.getSession(false);\n\n String servletPath = request.getServletPath();\n logger.info(\"servletPath: \" + servletPath);\n\n //is FilterExlude unnecessary?\n if (FilterExclude.isExcluded(servletPath)) {\n chain.doFilter(req, res);\n return;\n }\n\n boolean authenticated = false;\n Cookie[] cookies = request.getCookies();\n for (Cookie cookie : cookies) {\n if (SessionCookie.COOKIE_NAME.equals(cookie.getName())) {\n //TODOO what happens if I send an old cookie?\n String value = cookie.getValue();\n authenticated = authentication.validateCookie(new SessionCookie(value));\n break;\n }\n }\n\n logger.info(\"authenticated: \" + authenticated);\n if (!authenticated) {\n //redirect to login\n response.sendRedirect(\"/login?nextUrl=\" + servletPath);\n } else {\n chain.doFilter(req, res);\n }\n }", "title": "" }, { "docid": "5c6c9ea869affe269262d499b817db01", "score": "0.5331606", "text": "@Autowired\n public void configureGlobal(AuthenticationManagerBuilder auth) {\n auth.authenticationProvider(keycloakAuthenticationProvider());\n }", "title": "" }, { "docid": "1d361a29a6d1853a471f4434c060ff1b", "score": "0.5298016", "text": "IAuthenticationRequestBuilder authentication();", "title": "" }, { "docid": "85934b270f560f8442851ceafe81f32b", "score": "0.529286", "text": "@Override\n public Response intercept(Interceptor.Chain chain) throws IOException {\n Request request = chain.request();\n request = request.newBuilder().addHeader(\"Authorization\", \"Client-ID \" + AceessKey_Constants.UNSPLASH_ACCESS_KEY)\n .build();\n return chain.proceed(request);\n }", "title": "" }, { "docid": "08d959be6c67a788198779a31d4190bf", "score": "0.5267729", "text": "@Override\n public Result beforeAuthCheck(Http.Context context) {\n return null; //To change body of implemented methods use File | Settings | File Templates.\n }", "title": "" }, { "docid": "234df57de7d3b1c8a0175d4ef1d063a0", "score": "0.52645063", "text": "@Override\n public void setExtraFilterProvider(FilterProvider extraFilterProvider) {\n }", "title": "" }, { "docid": "4a6aa8ee4ebd342af4de07addad55130", "score": "0.52633035", "text": "@Override\r\n public void filter(ContainerRequestContext requestContext)\r\n throws IOException {\n \tif (true) {\r\n \t\treturn;\r\n \t}\r\n \tUriInfo uriInfo = requestContext.getUriInfo();\r\n \tint lastSegIndex = uriInfo.getPathSegments().size() - 1;\r\n \tPathSegment ps = uriInfo.getPathSegments().get(lastSegIndex);\r\n \t\r\n \tif (open.contains(ps.getPath())) {\r\n \t\t// Authorized\r\n \t\treturn;\r\n \t}\r\n \t\r\n \tString authHeader = requestContext.getHeaderString(\"Authorization\");\r\n \tauthHeader = authHeader.replaceFirst(\"Bearer \", \"\");\r\n\t\tif (OAuthSimpleService.getAuthenticatedUser(authHeader) != null) {\r\n\t\t\t// Authorized\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\trequestContext.abortWith(Response\r\n\t\t\t\t\t.status(Response.Status.UNAUTHORIZED)\r\n\t\t\t\t\t.entity(\"Requires authorization.\").build());\r\n\t\t\treturn;\r\n\t\t}\r\n }", "title": "" }, { "docid": "43c8ff08ee49fa1bfe7c16df9c777f9e", "score": "0.5232753", "text": "@Autowired\r\n public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {\r\n auth.authenticationProvider(keycloakAuthenticationProvider());\r\n }", "title": "" }, { "docid": "580325e45e9d7ff4b71aaee1393b38e3", "score": "0.5210525", "text": "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n String authHeader = requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\n if (authHeader == null || !authHeader.startsWith(BEARER)) {\n logger.log(Level.SEVERE, \"Error! No bearer token found! {0}\", authHeader);\n throw new NotAuthorizedException(\"You are not authorized to access this resource. Please log in\");\n }\n\n String token = authHeader.substring(BEARER.length()).trim();\n Key key = securityUtil.generateKey(mySessionStore.getEncodedPassword());\n\n try {\n Jwts.parser().setSigningKey(key).parseClaimsJws(token);\n } catch (Exception e) {\n logger.log(Level.SEVERE, \"Invalid bearer token {0}\", token);\n\n requestContext.abortWith(Response.status(Response.Status.FORBIDDEN).build());\n }\n\n\n }", "title": "" }, { "docid": "34d3d724f61efd3fe7596d11941a00cd", "score": "0.52041334", "text": "public FilterClient(Client in) {\n this.in = in;\n }", "title": "" }, { "docid": "4a8a4d3590ef0e946d3656f3e020d40d", "score": "0.519842", "text": "public void initializeAuthentificatedCommunication(Context ctx,String name, String password){\n webServiceAuthenticated=RetrofitBuilder.getAuthenticatedClient(ctx,name,password);\n }", "title": "" }, { "docid": "aab48e1191b6d0ee770ccc9bd21cee10", "score": "0.51877344", "text": "@Override\n public void authenticateRequest(IHttpRequest request) {\n // Add the access token in the Authorization header\n request.addHeader(\"Authorization\", \"Bearer \" + mAccessToken);\n }", "title": "" }, { "docid": "d751906946b1fb0e978446351bd2a1a2", "score": "0.51806784", "text": "private Filter filterSecurityInterceptor() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0f8041810f650803f9a94fced144f5a8", "score": "0.5180548", "text": "@Override\n protected void registerInterceptors() {\n \n registerInterceptor(new AuthorizationInterceptor());\n super.registerInterceptors(); // Default interceptors.\n }", "title": "" }, { "docid": "4d8703a28bb9d5be12819488aa4bf21e", "score": "0.51747406", "text": "public AuthExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "0f0394bb7fb89509a076c798f2ab04e3", "score": "0.5173098", "text": "@Override\n public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)\n throws IOException, ServletException {\n HttpServletRequest request = (HttpServletRequest) req;\n HttpServletResponse response = (HttpServletResponse) res;\n System.out.println(\"Auth-Filter:\" + request.getRequestURI());\n chain.doFilter(request, response);\n\n }", "title": "" }, { "docid": "afb8635902bc4af18b5bd120a40cca4c", "score": "0.51697314", "text": "protected void setCredentials() {\n BasicCredentialsProvider bcp = new BasicCredentialsProvider();\n bcp.setCredentials(\n new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT, AuthScope.ANY_REALM),\n new UsernamePasswordCredentials(this.user, this.password));\n this.setCredentialsProvider(bcp);\n // Auth context\n CredentialsProvider credsProvider = new BasicCredentialsProvider();\n credsProvider.setCredentials(\n new org.apache.http.auth.AuthScope(\n org.apache.http.auth.AuthScope.ANY_HOST,\n org.apache.http.auth.AuthScope.ANY_PORT,\n org.apache.http.auth.AuthScope.ANY_REALM),\n new UsernamePasswordCredentials(this.user, this.password));\n httpContext.setAttribute(ClientContext.CREDS_PROVIDER, credsProvider);\n }", "title": "" }, { "docid": "69ff4952a9ce971b42cc30035ea10851", "score": "0.51563543", "text": "public Resource auth() throws IOException {\n return get(\"security/auth\");\n }", "title": "" }, { "docid": "cc490c388827b4a6df5e2000806ef957", "score": "0.51536614", "text": "public WechatCodeAuthenticationFilter() {\n super(new AntPathRequestMatcher(SecurityConstants.DEFAULT_SIGN_IN_PROCESSING_URL_WECHAT, POST));\n }", "title": "" }, { "docid": "4bf6631405fdf4ae7c341e299342ec64", "score": "0.5150336", "text": "public void setNeedClientAuth(boolean z) {\n this.need_client_auth = z;\n this.want_client_auth = false;\n }", "title": "" }, { "docid": "885bbfa40bfae106138cb90442b0eaa6", "score": "0.5142646", "text": "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.authenticationProvider(authenticationProvider());\n }", "title": "" }, { "docid": "885bbfa40bfae106138cb90442b0eaa6", "score": "0.5142646", "text": "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.authenticationProvider(authenticationProvider());\n }", "title": "" }, { "docid": "9ccf8480fa85f37880ce12d91abd3853", "score": "0.5133186", "text": "protected DefaultHttpAuthRestClient(BasicClientConnectionManager bccm) {\n super(bccm);\n }", "title": "" }, { "docid": "25cbc6f304784b34699dc83fc1702906", "score": "0.51304996", "text": "@Override\n protected void doFilterInternal(\n HttpServletRequest request,\n HttpServletResponse response,\n FilterChain filterChain)\n throws ServletException, IOException\n {\n String token = request.getHeader(\"Authorization\");\n if(token!=null){\n // do validation\n String username = util.getUserName(token);\n if(username!=null && SecurityContextHolder.getContext().getAuthentication()==null){\n UserDetails user = userDetailsService.loadUserByUsername(username);\n //validate token\n boolean isValid = util.validateToken(token, user.getUsername());\n if(isValid){\n UsernamePasswordAuthenticationToken authToken =\n new UsernamePasswordAuthenticationToken(\n username,\n user.getPassword(),\n user.getAuthorities()\n );\n authToken.setDetails(\n new WebAuthenticationDetailsSource()\n .buildDetails(request)\n );\n SecurityContextHolder.getContext().setAuthentication(authToken);\n }\n }\n }\n filterChain.doFilter(request,response);\n\n }", "title": "" }, { "docid": "7c60c26e2d32b0039af74078358d895a", "score": "0.5124098", "text": "void doWithAuthentication(HttpServletRequest req, HttpServletResponse resp, AuthenticatedService authenticatedService) throws IOException, ServletException {\n try {\n WebClient webClient = createWebClient(req);\n authenticatedService.execute(webClient, req, resp);\n webClient.forwardResponseHeaders(resp);\n } catch (ForbiddenException e) {\n resp.sendError(SC_FORBIDDEN, \"Not authorized\");\n } catch (BasicAuthenticationChallengeException e) {\n resp.setHeader(\"WWW-Authenticate\", String.format(\"Basic realm=\\\"%s\\\"\", e.getRealm()));\n resp.sendError(SC_UNAUTHORIZED, \"Authentication required\");\n } finally {\n final HttpSession session = req.getSession(false);\n if (session != null) session.invalidate();\n }\n }", "title": "" }, { "docid": "975cace7b511c55fdc648de806f0b82a", "score": "0.51200587", "text": "@Override\n\tprotected void configure(HttpSecurity http) throws Exception {\n\t\t//http.authorizeRequests().anyRequest().fullyAuthenticated().and().addFilterBefore(customFilter(), BasicAuthenticationFilter.class).httpBasic();\n\t\thttp.authorizeRequests().anyRequest().fullyAuthenticated().and().httpBasic();\n\t\thttp.csrf().disable();\n\t}", "title": "" }, { "docid": "7713ffbe2bf8da6574a13eae8ea0904b", "score": "0.5103954", "text": "@Override\n\tpublic void addFilterUserByUserName(String name) {\n\n\t}", "title": "" }, { "docid": "b51ffeb0359cfea8489e16506e60b7c9", "score": "0.50869805", "text": "@Override\n public APIServiceInterface addDefaultFilter(String fieldName, String val) {\n return addDefaultParameter(modFilter(fieldName), val);\n }", "title": "" }, { "docid": "5f932d7939ec76ee342fe4804a710efd", "score": "0.50751346", "text": "@Override\n\tpublic void addInterceptors(InterceptorRegistry registry) {\n\t\tregistry.addInterceptor(new LoginInterceptor()).addPathPatterns(\"/admin/**\");\n\t}", "title": "" }, { "docid": "97c8bb03905fff277039cf8fa8c2bab0", "score": "0.5069594", "text": "protected Builder addAuthHeader(Builder builder) {\n // TODO move to HttpOperation\n final HttpClient client = getClient();\n String username = client.getUserName();\n if (StringUtils.isBlank(username)) {\n return builder;\n }\n\n String password = client.getPassword();\n if (password == null) {\n password = \"\";\n }\n\n String encoded = username + \":\" + password;\n encoded = Base64.getEncoder().encodeToString(encoded.getBytes(StandardCharsets.UTF_8));\n return builder.header(\"Authorization\", \"Basic \" + encoded);\n }", "title": "" }, { "docid": "c8228fa550e096ba954e2200c18540f6", "score": "0.50641996", "text": "public boolean getWantClientAuth() {\n return this.want_client_auth;\n }", "title": "" }, { "docid": "1b7da7634618dc56cb6b9f120101755c", "score": "0.5054467", "text": "public YggdrasilAuthenticationService getAuthenticationService() {\n/* 255 */ return (YggdrasilAuthenticationService)super.getAuthenticationService();\n/* */ }", "title": "" }, { "docid": "df2337f307bbfdbdf5ed1a2160162a19", "score": "0.5052725", "text": "@Override\n\tpublic void authenticateUser() {\n\t\t\n\t}", "title": "" }, { "docid": "56543cc6833c91298b14fc7497fe6264", "score": "0.5042485", "text": "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.authenticationProvider(authenticationProvider);\n }", "title": "" }, { "docid": "7f0c79ae58f1879f697b43aa5f1197d0", "score": "0.50376725", "text": "@Bean\n public SecurityWebFilterChain springSecurityFilterChain(final ServerHttpSecurity http,\n final JwtAuthenticationWebFilter authenticationWebFilter,\n final UnauthorizedAuthenticationEntryPoint entryPoint,\n final AuthenticationAccessDeniedHandler accessDeniedHandler) {\n http\n .exceptionHandling()\n .authenticationEntryPoint(entryPoint)\n .accessDeniedHandler(accessDeniedHandler)\n .and()\n .addFilterAt(authenticationWebFilter, SecurityWebFiltersOrder.AUTHENTICATION)\n .authorizeExchange()\n .pathMatchers(AUTH_WHITELIST).permitAll()\n .anyExchange().authenticated()\n .and()\n .httpBasic().disable()\n .formLogin().disable()\n .csrf().disable()\n .logout().disable();\n return http.build();\n }", "title": "" }, { "docid": "50fa5e59dbfdc815720caff5834905eb", "score": "0.5014856", "text": "@Override\n public void authenticateMyApp() {\n this.mDBApi.getSession().startOAuth2Authentication(this.contextWrapper);\n }", "title": "" }, { "docid": "c70883a378fd1f06e97affdbac1da67c", "score": "0.49882966", "text": "public ServiceRelated setDefaultCookieStore(){\n client = HttpClientBuilder.create().setDefaultCookieStore(httpCookieStore).build();\n return this;\n }", "title": "" }, { "docid": "1f72d4fe79e20d5257c77144f6af450a", "score": "0.498692", "text": "public MyProxy() {\n setAuthorization(new MyProxyServerAuthorization());\n }", "title": "" }, { "docid": "0a354f8874dc255f2587219197cf2075", "score": "0.49752825", "text": "@Override\n public void configure(HttpSecurity http) throws Exception {\n frameworkEndpointHandlerMapping();\n if (allowFormAuthenticationForClients) {\n clientCredentialsTokenEndpointFilter(http);\n }\n http.exceptionHandling().accessDeniedHandler(accessDeniedHandler);\n\n }", "title": "" }, { "docid": "8f33c3377b0ffe55efd33cc5ca607a18", "score": "0.49715194", "text": "private void opaqueTokenAuthentication(HttpSecurity http) throws Exception {\n http.oauth2ResourceServer(\n oauth2 -> oauth2.opaqueToken(\n t -> {\n t.introspectionUri(introspectUri);\n t.introspectionClientCredentials(clientId, clientSecret);\n }\n )\n );\n }", "title": "" }, { "docid": "844da76a3c41da66f19cace85e30a4b4", "score": "0.49640018", "text": "public AuthFilter(String userPass, Set<String> excludePatterns) {\n this.userPass = userPass;\n this.excludePatterns = excludePatterns;\n }", "title": "" }, { "docid": "4924d5069d60ead70cc90ba7969dc412", "score": "0.49570745", "text": "@Override\n\tprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\tSystem.out.println(\"Auth Fitler Start...\");\n\t\t\n\t\tif (isAuthorizedUser(request)) {\n\t\t\tSystem.out.println(\"Auuthorized user.\");\n\t\t\tchain.doFilter(request, response);\n\t\t} else {\n\t\t\tSystem.out.println(\"Not authorized user to access resource.\");\n\t\t\tHttpServletResponse res = (HttpServletResponse) response;\n\t\t\tres.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"Unauthorized user\");\n\t\t}\n\t\tchain.doFilter(request, response);\n\t\tSystem.out.println(\"Auth Filter End...\");\n\t}", "title": "" }, { "docid": "9bdb72ffb4c783c45fad34b2ab8ddca1", "score": "0.49501798", "text": "@Override\n protected void successfulAuthentication(HttpServletRequest req, HttpServletResponse res, FilterChain chain, Authentication auth) {\n tokenAuthenticationService.addAuthentication(res, auth);\n }", "title": "" }, { "docid": "9507967e30468bcbdfd993bccfb628b8", "score": "0.49435872", "text": "FilterPassContainer createFilterPassContainer();", "title": "" }, { "docid": "078881536f9a7c7c57caeb67f757ebd6", "score": "0.49372202", "text": "public MyProxyAuthentication() {}", "title": "" }, { "docid": "c771699420d8f0a4d91a45676f08bbca", "score": "0.49361086", "text": "public void extendedFilter() {\n }", "title": "" }, { "docid": "e8622c39d0edcbf93e790583301ddbfc", "score": "0.49327612", "text": "@Bean\n public SecurityWebFilterChain securityWebFilterChain(\n ServerHttpSecurity http,\n JwtWebFilter jwtWebFilter\n ) {\n\n return http\n .authorizeExchange()\n .pathMatchers(\"/api/auth/**\").permitAll()\n .pathMatchers(HttpMethod.OPTIONS).permitAll()\n .pathMatchers(\"/api/user/**\").permitAll()\n .anyExchange().authenticated()\n .and()\n .addFilterAfter(jwtWebFilter, SecurityWebFiltersOrder.FIRST) // 这里注意执行位置一定要在securityContextRepository\n// .securityContextRepository(securityRepository)\n .formLogin().disable()\n .httpBasic().disable()\n .csrf().disable()\n .logout().disable()\n .build();\n }", "title": "" }, { "docid": "9134c873007dd6a2cd11d5943df878c2", "score": "0.49309656", "text": "@Override\n\tpublic void init(FilterConfig arg0) {\n\t}", "title": "" }, { "docid": "e174c9c87749752d35a8c1bc18fa39de", "score": "0.49307865", "text": "public FilterDecorator(Filter filter) {\n super(filter.getName());\n mFilter = filter;\n }", "title": "" }, { "docid": "abb88a73607cf62987a94ca345caff78", "score": "0.49256676", "text": "@Override\n public void doFilter(ServletRequest req, ServletResponse res, FilterChain filterChain) throws IOException, ServletException {\n\n logger.log(Level.INFO, \"Authentication filter\");\n HttpServletRequest httpReq = (HttpServletRequest)req;\n printRequest(httpReq);\n if(isTokenRequire(httpReq.getServletPath())){\n String accessToken = httpReq.getHeader(\"access-token\");\n try{\n UserDto user = userService.authenticate(accessToken);\n logger.log(Level.INFO, \"User authenticated \"+user.toString());\n req.setAttribute(\"user\", user);\n }catch(AccessTokenException ex){\n logger.log(Level.SEVERE, \"Authentication exception\", ex);\n sendError(res, accessToken);\n return;\n }\n }\n\n logger.log(Level.INFO, \"Carry on the chain\");\n filterChain.doFilter(req,res);\n }", "title": "" }, { "docid": "7f3272b565b6b288f035d834c0d555ba", "score": "0.49200016", "text": "@Override\n\tpublic void doFilter(ServletRequest request, ServletResponse response,\n\t\t\tFilterChain chain) throws IOException, ServletException {\n\n\t\tAssert.assertTrue(\"This class only applies to HttpServletRequests!\",\n\t\t\t\trequest instanceof HttpServletRequest);\n\n\t\t// TODO: REFACTOR override username under certain circumstances\n\t\t// (development)\n\t\t// request = overrideUserName((HttpServletRequest) request);\n\n\t\tif (request.getParameter(\"role\") != null\n\t\t\t\t&& request.getParameter(\"site\") != null) {\n\n\t\t\t// this is assumed to be a linktool login.\n\t\t\tString queryString = ((HttpServletRequest) request)\n\t\t\t\t\t.getQueryString();\n\t\t\t\n\t\t\tlog.debug(\"queryString = \" + queryString);\n\t\t\t\n\t\t\tString grantString = request\n\t\t\t\t\t.getParameter(\"role\")\n\t\t\t\t\t+ \"@\"\n\t\t\t\t\t+ request.getParameter(\"site\");\n\t\t\t\n\t\t\tauthenticateSecurityContextHolder(queryString, grantString);\n\n\t\t}\n\n\t\t// resume normal operation\n\t\tsuper.doFilter(request, response, chain);\n\t}", "title": "" }, { "docid": "da946857bb3f6b1edb45b8440cf3e1f0", "score": "0.48908743", "text": "public void addFilter(Filter filter) {\n filters.addFilter(filter);\n }", "title": "" }, { "docid": "bfc2e5c403537cdf10c22e5d59c48d04", "score": "0.48787785", "text": "@Override\n protected Filter[] getServletFilters() {\n return new Filter[]{\n \t\t //new DelegatingFilterProxy(\"springSecurityFilterChain\")\n \t\t new OpenEntityManagerInViewFilter()\n };\n }", "title": "" }, { "docid": "19306e994158ceb156d963e03d8eba0a", "score": "0.48767668", "text": "@Override\n public void configure(AuthenticationManagerBuilder auth) throws Exception {\n\n auth.\n authenticationProvider(authenticationProvider());\n\n }", "title": "" }, { "docid": "9fc37e89abe428afe3a93b5d7da880b0", "score": "0.48680955", "text": "protected void bindCredentialsMatcher(){\n \tlogger.debug(\"bindCredentialsMatcher -placeholder, override in sub-modules\");\n }", "title": "" }, { "docid": "ad4eaf0600a9416f3705856fb812a082", "score": "0.48538166", "text": "public DefaultVaultCredentialsProviderChain() {\n super(new EnvironmentVaultCredentialsProvider(),\n new SystemPropertyVaultCredentialsProvider());\n }", "title": "" }, { "docid": "fc2d7534282a28d009d4214f173e51bd", "score": "0.48481843", "text": "@Override\r\n public void addAuthorization(String AuthID) throws IOException {\n }", "title": "" }, { "docid": "3a10e1cc708eb0fe415da17c021c2da7", "score": "0.48474556", "text": "@Override\n\tprotected void doFilterInternal(@NotNull HttpServletRequest request, @NotNull HttpServletResponse response,\n\t @NotNull FilterChain filterChain) throws ServletException, IOException {\n\t\tString jwt = getJwtFromRequest(request);\n\n\t\tif (StringUtils.hasText(jwt) && jwtProvider.validateToken(jwt)) { // The validateToken method uses the JwtParser class to validate our JWT.\n\t\t\tString username = jwtProvider.getUsernameFromJWT(jwt);\n\n\t\t\tUserDetails userDetails = userDetailsService.loadUserByUsername(username);\n\t\t\tUsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken(userDetails,\n\t\t\t\t\tnull, userDetails.getAuthorities());\n\t\t\tauthentication.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));\n\n\t\t\tSecurityContextHolder.getContext().setAuthentication(authentication);\n\t\t}\n\t\tfilterChain.doFilter(request, response);\n\t}", "title": "" }, { "docid": "2240b4d98294309c46bacc01d16526f3", "score": "0.4847005", "text": "@Bean\n\t\t@ConditionalOnProperty(SPRINGDOC_SHOW_LOGIN_ENDPOINT)\n\t\t@Lazy(false)\n\t\tOpenApiCustomizer springSecurityLoginEndpointCustomiser(ApplicationContext applicationContext) {\n\t\t\tFilterChainProxy filterChainProxy = applicationContext.getBean(AbstractSecurityWebApplicationInitializer.DEFAULT_FILTER_NAME, FilterChainProxy.class);\n\t\t\treturn openAPI -> {\n\t\t\t\tfor (SecurityFilterChain filterChain : filterChainProxy.getFilterChains()) {\n\t\t\t\t\tOptional<UsernamePasswordAuthenticationFilter> optionalFilter =\n\t\t\t\t\t\t\tfilterChain.getFilters().stream()\n\t\t\t\t\t\t\t\t\t.filter(UsernamePasswordAuthenticationFilter.class::isInstance)\n\t\t\t\t\t\t\t\t\t.map(UsernamePasswordAuthenticationFilter.class::cast)\n\t\t\t\t\t\t\t\t\t.findAny();\n\t\t\t\t\tOptional<DefaultLoginPageGeneratingFilter> optionalDefaultLoginPageGeneratingFilter =\n\t\t\t\t\t\t\tfilterChain.getFilters().stream()\n\t\t\t\t\t\t\t\t\t.filter(DefaultLoginPageGeneratingFilter.class::isInstance)\n\t\t\t\t\t\t\t\t\t.map(DefaultLoginPageGeneratingFilter.class::cast)\n\t\t\t\t\t\t\t\t\t.findAny();\n\t\t\t\t\tif (optionalFilter.isPresent()) {\n\t\t\t\t\t\tUsernamePasswordAuthenticationFilter usernamePasswordAuthenticationFilter = optionalFilter.get();\n\t\t\t\t\t\tOperation operation = new Operation();\n\t\t\t\t\t\tSchema<?> schema = new ObjectSchema()\n\t\t\t\t\t\t\t\t.addProperty(usernamePasswordAuthenticationFilter.getUsernameParameter(), new StringSchema())\n\t\t\t\t\t\t\t\t.addProperty(usernamePasswordAuthenticationFilter.getPasswordParameter(), new StringSchema());\n\t\t\t\t\t\tString mediaType = org.springframework.http.MediaType.APPLICATION_JSON_VALUE;\n\t\t\t\t\t\tif (optionalDefaultLoginPageGeneratingFilter.isPresent()) {\n\t\t\t\t\t\t\tDefaultLoginPageGeneratingFilter defaultLoginPageGeneratingFilter = optionalDefaultLoginPageGeneratingFilter.get();\n\t\t\t\t\t\t\tField formLoginEnabledField = FieldUtils.getDeclaredField(DefaultLoginPageGeneratingFilter.class, \"formLoginEnabled\", true);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tboolean formLoginEnabled = (boolean) formLoginEnabledField.get(defaultLoginPageGeneratingFilter);\n\t\t\t\t\t\t\t\tif (formLoginEnabled)\n\t\t\t\t\t\t\t\t\tmediaType = org.springframework.http.MediaType.APPLICATION_FORM_URLENCODED_VALUE;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (IllegalAccessException e) {\n\t\t\t\t\t\t\t\tLOGGER.warn(e.getMessage());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tRequestBody requestBody = new RequestBody().content(new Content().addMediaType(mediaType, new MediaType().schema(schema)));\n\t\t\t\t\t\toperation.requestBody(requestBody);\n\t\t\t\t\t\tApiResponses apiResponses = new ApiResponses();\n\t\t\t\t\t\tapiResponses.addApiResponse(String.valueOf(HttpStatus.OK.value()), new ApiResponse().description(HttpStatus.OK.getReasonPhrase()));\n\t\t\t\t\t\tapiResponses.addApiResponse(String.valueOf(HttpStatus.FORBIDDEN.value()), new ApiResponse().description(HttpStatus.FORBIDDEN.getReasonPhrase()));\n\t\t\t\t\t\toperation.responses(apiResponses);\n\t\t\t\t\t\toperation.addTagsItem(\"login-endpoint\");\n\t\t\t\t\t\tPathItem pathItem = new PathItem().post(operation);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tField requestMatcherField = AbstractAuthenticationProcessingFilter.class.getDeclaredField(\"requiresAuthenticationRequestMatcher\");\n\t\t\t\t\t\t\trequestMatcherField.setAccessible(true);\n\t\t\t\t\t\t\tAntPathRequestMatcher requestMatcher = (AntPathRequestMatcher) requestMatcherField.get(usernamePasswordAuthenticationFilter);\n\t\t\t\t\t\t\tString loginPath = requestMatcher.getPattern();\n\t\t\t\t\t\t\trequestMatcherField.setAccessible(false);\n\t\t\t\t\t\t\topenAPI.getPaths().addPathItem(loginPath, pathItem);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (NoSuchFieldException | IllegalAccessException |\n\t\t\t\t\t\t\t ClassCastException ignored) {\n\t\t\t\t\t\t\t// Exception escaped\n\t\t\t\t\t\t\tLOGGER.trace(ignored.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}", "title": "" }, { "docid": "322624fffe155bd896d22826f35de371", "score": "0.48385665", "text": "public loginClient() {\n initComponents();\n }", "title": "" }, { "docid": "af7680220438f3557f74140ceac273cf", "score": "0.48350534", "text": "private static synchronized RestHighLevelClient getClient() {\n//\t\tif (client == null) {\n\t\t\tfinal CredentialsProvider credentialsProvider = new BasicCredentialsProvider();\n\t\t\tcredentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(USERNAME, PASSWORD));\n\n\t\t\tRestClientBuilder builder = RestClient.builder(new HttpHost(Consts.ES_HOST, Consts.ES_PORT, \"http\"))\n\t\t\t\t\t.setHttpClientConfigCallback(new RestClientBuilder.HttpClientConfigCallback() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic HttpAsyncClientBuilder customizeHttpClient(HttpAsyncClientBuilder httpClientBuilder) {\n\t\t\t\t\t\t\treturn httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\treturn new RestHighLevelClient(builder);\n//\t\t}\n//\t\t\n//\t\treturn client;\n\t}", "title": "" }, { "docid": "858a9551bb961da54505563b179c61ff", "score": "0.482633", "text": "@Autowired\n protected void configureGlobal(final AuthenticationManagerBuilder auth) throws Exception {\n try {\n auth.inMemoryAuthentication()\n .withUser(\"prospring5\")\n .password(\"prospring5\")\n .roles(\"REMOTE\");\n } catch (Exception e) {\n log.error(\"Could not configure authentication\", e);\n }\n }", "title": "" }, { "docid": "fd7133db8f226bd25810f10fb7448d79", "score": "0.4824308", "text": "@Override\n public void configure(ResourceServerSecurityConfigurer resources) throws Exception {\n resources.resourceId(oAuthProperties.getClientId());\n }", "title": "" }, { "docid": "9bb0d62dcfba230df4636a92e8bd69d1", "score": "0.48236883", "text": "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.userDetailsService(customUserService());\n }", "title": "" }, { "docid": "f751871e59a80f058854dbcb101ef03f", "score": "0.4822689", "text": "@Override\n protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws ServletException, IOException {\n final String header = request.getHeader(HttpHeaders.AUTHORIZATION);\n if(isEmpty(header) || !header.startsWith(\"Bearer \")){\n chain.doFilter(request,response);\n return;\n }\n\n //Get jwt token and validate\n final String token = header.split(\"\")[1].trim();\n if(!jwtTokenUtil.validate(token)){\n chain.doFilter(request, response);\n return;\n }\n\n //Get user identity and set it on the spring security context\n UserDetails userDetails = userRepository\n .findByUserName(jwtTokenUtil.g)\n }", "title": "" }, { "docid": "044b29326ed0a9f83f4c9aa8cc6cfe85", "score": "0.4822543", "text": "public void init(FilterConfig filterConfig) { \n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n if (debug) { \n log(\"AuthenFilter:Initializing filter\");\n }\n }\n }", "title": "" }, { "docid": "9f3e37132147d7006889d44e5f4c2a40", "score": "0.4817939", "text": "public AuthenticationEntryPoint authenticationEntryPoint() {\n return new AuthenticationEntryPoint() {\n @Override\n public void commence(HttpServletRequest request,\n HttpServletResponse response,\n AuthenticationException authException)\n throws IOException, ServletException {\n response.sendError(HttpServletResponse.SC_UNAUTHORIZED);\n }\n };\n }", "title": "" }, { "docid": "d661e6cc0c8b09157b4e4e50fc4e5765", "score": "0.48146614", "text": "@Bean\n FilterRegistrationBean<ForwardedHeaderFilter> forwardedHeaderFilter() {\n final FilterRegistrationBean<ForwardedHeaderFilter> filterRegistrationBean = new FilterRegistrationBean<>();\n filterRegistrationBean.setFilter(new ForwardedHeaderFilter());\n filterRegistrationBean.setOrder(Ordered.HIGHEST_PRECEDENCE);\n return filterRegistrationBean;\n }", "title": "" }, { "docid": "7727833800181e212a549a4e1e224e71", "score": "0.48134384", "text": "protected void addFilters(){\r\n\t\tgetSearchEmployee().setStore(getEmployeeStore());\r\n\t}", "title": "" }, { "docid": "df169057a6d131816c5abec7d05c95f8", "score": "0.48126665", "text": "public void authenticateUser() {\n\t}", "title": "" }, { "docid": "027a319acc40c161f5d4a3724424a899", "score": "0.48064625", "text": "@Override\n public boolean getDoAuthentication() {\n return doAuthentication;\n }", "title": "" }, { "docid": "18cd87b1b40102bc76010eeafa236c9e", "score": "0.48023596", "text": "@Override\n public EnableClientAuthenticationResult enableClientAuthentication(EnableClientAuthenticationRequest request) {\n request = beforeClientExecution(request);\n return executeEnableClientAuthentication(request);\n }", "title": "" }, { "docid": "63311d59e1037eab832d5446273686af", "score": "0.48005137", "text": "@Autowired\n public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {\n auth.authenticationProvider(authProvider);\n\n }", "title": "" }, { "docid": "8dce7ed24f6a5cf6de5a345decc6c699", "score": "0.47992983", "text": "@Bean\n public JwtAuthenticationTokenFilter authenticationTokenFilterBean() {\n return new JwtAuthenticationTokenFilter();\n }", "title": "" }, { "docid": "dce5eaaeb80156f27aba13f3465c256b", "score": "0.4795276", "text": "private SecurityContext securityContext() {\n return SecurityContext\n .builder()\n .securityReferences(defaultAuth())\n .build();\n }", "title": "" }, { "docid": "4ae96d2d1a9f68dc06951039844e70f3", "score": "0.47916788", "text": "@Override\n\tpublic boolean authenticate(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\tString authHeader = request.getHeader(HEADER_AUTHORIZATION);\n\t\tif (authHeader != null && authHeader.length() > 0) {\n\n\t\t\t// Get the authType (Basic, Digest) and authInfo (user/password)\n\t\t\t// from the header\n\t\t\tauthHeader = authHeader.trim();\n\t\t\tint blank = authHeader.indexOf(' ');\n\t\t\tif (blank > 0) {\n\t\t\t\tString authType = authHeader.substring(0, blank);\n\t\t\t\tString authInfo = authHeader.substring(blank).trim();\n\n\t\t\t\t// Check whether authorization type matches\n\t\t\t\tif (authType.equalsIgnoreCase(AUTHENTICATION_SCHEME_BASIC)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString srcString = base64Decode(authInfo);\n\t\t\t\t\t\tint i = srcString.indexOf(':');\n\t\t\t\t\t\tString username = srcString.substring(0, i);\n\t\t\t\t\t\tString password = srcString.substring(i + 1);\n\n\t\t\t\t\t\t// authenticate\n\t\t\t\t\t\tSubject subject = doAuthenticate(username, password);\n\t\t\t\t\t\tif (subject != null) {\n\t\t\t\t\t\t\t// as per the spec, set attributes\n\t\t\t\t\t\t\trequest.setAttribute(\n\t\t\t\t\t\t\t\t\tHttpContext.AUTHENTICATION_TYPE,\n\t\t\t\t\t\t\t\t\tHttpServletRequest.BASIC_AUTH);\n\t\t\t\t\t\t\trequest.setAttribute(HttpContext.REMOTE_USER,\n\t\t\t\t\t\t\t\t\tusername);\n\n\t\t\t\t\t\t\t// set web console user attribute\n\t\t\t\t\t\t\trequest.setAttribute(\n\t\t\t\t\t\t\t\t\tWebConsoleSecurityProvider2.USER_ATTRIBUTE,\n\t\t\t\t\t\t\t\t\tusername);\n\n\t\t\t\t\t\t\t// succeed\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// Ignore\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// request authentication\n\t\ttry {\n\t\t\tresponse.setHeader(HEADER_WWW_AUTHENTICATE,\n\t\t\t\t\tAUTHENTICATION_SCHEME_BASIC + \" realm=\\\"\" + this.realm\n\t\t\t\t\t\t\t+ \"\\\"\");\n\t\t\tresponse.setStatus(HttpServletResponse.SC_UNAUTHORIZED);\n\t\t\tresponse.setContentLength(0);\n\t\t\tresponse.flushBuffer();\n\t\t} catch (IOException ioe) {\n\t\t\t// failed sending the response ... cannot do anything about it\n\t\t}\n\n\t\t// inform HttpService that authentication failed\n\t\treturn false;\n\t}", "title": "" }, { "docid": "22cbefe942460df59f0071b8924506ef", "score": "0.47903374", "text": "private ContextualFilterRegistry() {\n }", "title": "" } ]
ac09360dfb00392e3cb5d4cf26fd7b8c
data.statusX = e.getX(); data.statusY = e.getY(); InterfaceFigure figure = data.selectedFigure.getInstance(data.selectedFigure); figure.setMainProperties(data.type, data.color, data.thickness); figure.move(e.getX(), e.getY()); panel.figures.add(figure); panel.initialize();
[ { "docid": "ef543ac865431c4f5a01407e3ca4b339", "score": "0.7335361", "text": "private void addFigure(MouseEvent e)\n\t{\n\t}", "title": "" } ]
[ { "docid": "92ab150f8c99b6dfb93125134ca437d4", "score": "0.6777593", "text": "public void showFigure()\n {\n }", "title": "" }, { "docid": "90ab1c118f04b27863fe2c58756ff39c", "score": "0.67022675", "text": "protected IFigure createFigure() {\n AOFigure figure = new AOFigure(getCastedModel().getName() /*getFullName()*/);\n AOListener listener = new AOListener(getCastedModel(), figure,\n getMonitoringView(), getCastedParentFigure());\n figure.addMouseListener(listener);\n figure.addMouseMotionListener(listener);\n return figure;\n }", "title": "" }, { "docid": "dcb849c561c1de42822396fbb0bb672b", "score": "0.6402818", "text": "private void setupDrawing(){\n }", "title": "" }, { "docid": "cf14057a67a4c925017e449d576eda47", "score": "0.61437565", "text": "private void addShapesPanel(){\n shapesPanel = new ShapesPanel();\n add(shapesPanel);\n }", "title": "" }, { "docid": "aec9542ea7d831aa3eadc153cd1316d6", "score": "0.61197644", "text": "@Override\n public final void paint(IFigure figure, Graphics graphics, Insets insets) {\n }", "title": "" }, { "docid": "321e2671afa44f6c1c8d1c148e9913e0", "score": "0.6118234", "text": "public FigureGUI() {\n\t\tsuper(\"Figures GUI\");\n\t\t\n\t\tJPanel backgroundPanel=new JPanel(new GridLayout(1, 3));;\n\t\tJPanel buttonPanel = new JPanel(new GridLayout(2, 3));\n\t\tJPanel listPanel = new JPanel(new GridLayout(1, 1));\n\t\tJPanel mainPanel = new JPanel(new GridLayout(1, 4));\n\t\t\n\t\t//add the buttons to the button panel\n\t\tbuttonPanel.add(redButton);\n\t\tbuttonPanel.add(greenButton);\n\t\tbuttonPanel.add(blueButton);\n\t\tbuttonPanel.add(rectangleButton);\n\t\tbuttonPanel.add(circleButton);\n\t\tbuttonPanel.add(exitButton);\n\t\t\n\t\t//add the jscrollpane to the text area and put it on a jpanel\n\t\tlistPanel.add(new JScrollPane(listArea));\n\t\tmainPanel.add(figuresPanel);\n\t\t\n\t\t//add listeners to all buttons and clicks on the figresPanel\n\t\tredButton.addActionListener(this);\n\t\tgreenButton.addActionListener(this);\n\t\tblueButton.addActionListener(this);\n\t\trectangleButton.addActionListener(this);\n\t\tcircleButton.addActionListener(this);\n\t\texitButton.addActionListener(this);\n\t\tfiguresPanel.addMouseListener(figuresPanel);\n\t\t\n\t\t//check to see if the file exists\n\t\t\tif(fileName.exists()){\n\t\t\n\t\t\t\t\n\t\t//read from file and put the objects that we read into listFigures arraylist and re draw it\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tObjectInputStream inputStream = null;\n\t\t\t\t\n\t\t\t\t inputStream = new ObjectInputStream(new FileInputStream(file));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t Object obj = null;\n\t\t \n\t\t try {\n\t\t\t\t\t\twhile ((obj = inputStream.readObject()) != null) {\n\t\t\t\t\t\t //check to see if the object that we read is a rectangle\n\t\t\t\t\t\t if (obj instanceof Rectangle) {\n\t\t\t\t\t\t \tlistFigures.add(obj);\n\t\t\t\t\t\t \n\t\t\t\t\t\t repaint();\n\t\t\t\t\t\t listArea.append(obj.toString() + \"\\n\");\n\t\t\t\t\t\t }\n\t\t\t\t\t\t //check to see the object that we read is a circle\n\t\t\t\t\t\t if (obj instanceof Circle) {\n\t\t\t\t\t\t \tlistFigures.add(obj);\n\t\t\t\t\t\t \n\t\t\t\t\t\t listArea.append(obj.toString() + \"\\n\");\n\t\t\t\t\t\t repaint();\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t}\n\t\t\t\t\t\t inputStream.close();\n\t\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t catch (FileNotFoundException e) {\n\t\t\t\t\t\tSystem.out.println(\"The specified file hasn't been created yet\");\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t \n\t\t \n\t\t\t } catch (EOFException ex) { //This exception will be caught when EOF is reached\n\t\t System.out.println(\"End of file reached.\"); \n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"The specified file hasn't been created yet\");\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 //create the date object\n\t\tcurrentDate = new GregorianCalendar();\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MMM-yyyy\");\n\t\tformattedDate = dateFormat.format(currentDate.getTime());\n\t\t\n\t\t//add all panels to the jFrame\n\t\tbackgroundPanel.add(figuresPanel, BorderLayout.WEST);\n\t\tbackgroundPanel.add(buttonPanel);\n\t\tbackgroundPanel.add(listPanel,BorderLayout.EAST);\n\t\tadd(backgroundPanel);\n\t}", "title": "" }, { "docid": "567168045f5c43d6339f0f74ad8b17ef", "score": "0.60993373", "text": "FigureType getFigure();", "title": "" }, { "docid": "a82eb7e7d42608adde25236c9e774006", "score": "0.60837555", "text": "@Override\n public void paint(FlowFigure figure, Graphics g, Rectangle where, int sides) {\n }", "title": "" }, { "docid": "c12a671dbc5c12800fa341c68f81e35a", "score": "0.607261", "text": "public void addFigureListener(AbstractFigureListener fl)\n\t{\n\t\tif (fl != null)\n\t\t{\n\t\t\taddMouseListener(fl);\n\t\t\taddMouseMotionListener(fl);\n\t\t\t// System.out.println(\"CreationListener \" + cl + \" added\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.err.println(\"DrawingPanel.addFigureListener(null)\");\n\t\t}\n\t}", "title": "" }, { "docid": "c9849ab536d05031d74cf1733c9c55d5", "score": "0.60609365", "text": "public abstract void renderSelected(Figure f);", "title": "" }, { "docid": "6232cdd01f03c166a7b8fc97648a49c6", "score": "0.6039113", "text": "public FieldViewer()\n {\n initComponents();\n \n // \n this.cbBackground.setModel(\n new javax.swing.DefaultComboBoxModel(\n new Drawable[] \n { \n new FieldDrawingSPL2012(),\n new FieldDrawingSPL2013(),\n new FieldDrawingS3D2011(),\n new LocalFieldDrawing(),\n new RadarDrawing()\n }\n ));\n \n this.backgroundDrawing = (Drawable)this.cbBackground.getSelectedItem();\n\n this.imageListener = new ImageListener();\n this.plotDataListener = new PlotDataListener();\n }", "title": "" }, { "docid": "a570155a5558d07e42956d9f1c533687", "score": "0.6028894", "text": "public FigureProps()\n {\n reset();\n }", "title": "" }, { "docid": "7760494b69e04bce96627718b2be2a03", "score": "0.6023472", "text": "public swingpaint() {\r\n p = new Paint();\r\n \r\n // setPreferredSize(new Dimension(2000,2000));\r\n scroll_image = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n this.add(scroll_image.add(p));\r\n //events \r\n //Slider Event\r\n /* slider_image.addChangeListener(new ChangeListener() {\r\n @Override\r\n public void stateChanged(ChangeEvent e) {\r\n int x = slider_image.getValue();\r\n p.setImage_sizeX(x);\r\n p.setImage_sizeY(x);\r\n repaint();\r\n p.updateUI();\r\n \r\n \r\n }\r\n });\r\n*/\r\n jColorChooser.getSelectionModel().addChangeListener(new ChangeListener() {\r\n @Override\r\n public void stateChanged(ChangeEvent e) {\r\n Color c = jColorChooser.getColor();\r\n p.setGraphicsColor(c.getRed(), c.getGreen(), c.getBlue());\r\n\r\n }\r\n });\r\n\r\n b_colorchoser.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n d_colorchooser.add(jColorChooser);\r\n d_colorchooser.pack();\r\n d_colorchooser.setVisible(true);\r\n\r\n }\r\n });\r\n b_shapes.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n d_shapes.add(b_rectanglepass, BorderLayout.NORTH);\r\n d_shapes.add(b_circlpass, BorderLayout.WEST);\r\n d_shapes.add(b_shapes_shade, BorderLayout.CENTER);\r\n d_shapes.setSize(200, 200);\r\n d_shapes.setVisible(true);\r\n }\r\n });\r\n b_default.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n p.g3.setColor(Color.WHITE);\r\n p.setChoose(0);\r\n // Graphics g=null;\r\n\r\n // p.paint(g);\r\n }\r\n });\r\n\r\n b_size.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n d_size.add(t_size);\r\n d_size.pack();\r\n d_size.setVisible(true);\r\n t_size.setText(\"\" + p.getSizee());\r\n\r\n }\r\n });\r\n b_clear.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n p.clear();\r\n p.choice = true;\r\n p.choice2 = true;\r\n p.drawimage = 0;\r\n }\r\n });\r\n\r\n b_bigline.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n p.setChoose(1);\r\n\r\n }\r\n });\r\n b_rectangleline.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n p.setChoose(2);\r\n\r\n }\r\n });\r\n b_delet.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n p.g3.setColor(Color.WHITE);\r\n p.setChoose(3);\r\n }\r\n });\r\n b_rectanglepass.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n p.setChoose(4);\r\n\r\n }\r\n });\r\n b_circlpass.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n p.setChoose(5);\r\n\r\n }\r\n });\r\n b_shapes_shade.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n\r\n p.setChoose(6);\r\n\r\n }\r\n });\r\n\r\n //menue bar events \r\n // jToolBar1.setRollover(true);\r\n // jToolBar1.setBounds(0, 0, 980, 20);\r\n jMenu1.setText(\"Size\");\r\n jMenuItem_increase.setText(\"increase size\");\r\n jMenuItem_decrease.setText(\"decrease size\");\r\n jMenuItem_file_open.setText(\"Open\");\r\n jMenuItem_file_save.setText(\"Save\");\r\n jMenuItem_increase.setAccelerator(getKeyStroke(KeyEvent.VK_ADD, InputEvent.CTRL_MASK));\r\n jMenuItem_decrease.setAccelerator(getKeyStroke(KeyEvent.VK_SUBTRACT, InputEvent.CTRL_MASK));\r\n jMenuItem_file_open.setAccelerator(getKeyStroke(KeyEvent.VK_O, InputEvent.CTRL_MASK));\r\n jMenuItem_file_save.setAccelerator(getKeyStroke(KeyEvent.VK_S, InputEvent.CTRL_MASK));\r\n jMenuItem_file_save.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n if (p.drawimage == 1) {\r\n try {\r\n\r\n File f = jFileChooser.getSelectedFile();\r\n boolean correct = ImageIO.write(p.a, \"jpg\", f);\r\n if (correct) {\r\n JOptionPane.showMessageDialog(null, \"Saved in : \" + f.getAbsolutePath());\r\n }\r\n } catch (Exception ex) {\r\n JOptionPane.showMessageDialog(null, e);\r\n }\r\n } else {\r\n try {\r\n\r\n JFileChooser f_chooser = new JFileChooser();\r\n f_chooser.showSaveDialog(null);\r\n\r\n File f = f_chooser.getSelectedFile();\r\n JOptionPane.showMessageDialog(null, \"Saved in : \" + f.getCanonicalPath());\r\n boolean correct = ImageIO.write(p.image, \"jpg\", f);\r\n if (correct) {\r\n JOptionPane.showMessageDialog(null, \"Saved in : \" + f.getAbsolutePath());\r\n }\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, e);\r\n System.out.println(e);\r\n }\r\n }\r\n\r\n }\r\n });\r\n\r\n jMenuItem_increase.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n int x = p.getSizee();\r\n x += 1;\r\n p.setSizee(x);\r\n\r\n }\r\n });\r\n\r\n jMenuItem_decrease.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n int x = p.getSizee();\r\n x -= 1;\r\n p.setSizee(x);\r\n\r\n }\r\n });\r\n\r\n jMenuItem_file_open.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent evt) {\r\n d_jFileChooser.setVisible(true);\r\n d_jFileChooser.add(jFileChooser);\r\n d_jFileChooser.pack();\r\n\r\n }\r\n });\r\n jFileChooser.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n File f = jFileChooser.getSelectedFile();\r\n\r\n String pass = f.getAbsolutePath();\r\n try {\r\n p.a = ImageIO.read(f);\r\n } catch (Exception ex) {\r\n JOptionPane.showMessageDialog(null, pass);\r\n }\r\n p.choice2 = false;\r\n p.choice = false;\r\n p.drawimage = 1;\r\n d_jFileChooser.dispose();\r\n }\r\n });\r\n\r\n jMenu1.add(jMenuItem_increase);\r\n jMenu1.add(jMenuItem_decrease);\r\n jMenu2.setText(\"File\");\r\n jMenu2.add(jMenuItem_file_open);\r\n jMenu2.add(jMenuItem_file_save);\r\n jMenuBar1.add(jMenu2);\r\n jMenuBar1.add(jMenu1);\r\n\r\n controls.add(b_colorchoser);\r\n controls.add(b_clear);\r\n controls.add(b_bigline);\r\n controls.add(b_rectangleline);\r\n controls.add(b_delet);\r\n controls.add(b_shapes);\r\n controls.add(b_size);\r\n controls.add(b_default);\r\n\r\n controls.setBackground(Color.red);\r\n this.add(controls, BorderLayout.NORTH);\r\n // panel_down_slider.add(slider_image, BorderLayout.CENTER);\r\n panel_down_slider.setBackground(Color.red);\r\n this.add(panel_down_slider, BorderLayout.SOUTH);\r\n \r\n\r\n }", "title": "" }, { "docid": "0ab1b15573ae1b1e1a9cbebcf1a2125f", "score": "0.5984408", "text": "@Override\r\n\tprotected IFigure createFigure() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0edb81c8f1c6c77990ea3a304dd6dbe5", "score": "0.59759724", "text": "private static void setupGraphics() {\r\n graphics = Hub.getMainWindow().getGraphics().create();\r\n }", "title": "" }, { "docid": "a757a8d34e1f57ca6e19692a16be25e8", "score": "0.59593785", "text": "protected IFigure createFigure() {\n return null;\n }", "title": "" }, { "docid": "6a1a92c623b02d444b44b0e3c7c1ffdd", "score": "0.59525484", "text": "@Override\r\n public void initGUIControls() {\r\n // WE'LL USE AND REUSE THESE FOR LOADING STUFF\r\n BufferedImage img;\r\n float x, y;\r\n\r\n // FIRST PUT THE ICON IN THE WINDOW\r\n PropertiesManager props = PropertiesManager.getPropertiesManager();\r\n String imgPath = props.getProperty(SortingHatPropertyType.PATH_IMG);\r\n String windowIconFile = props.getProperty(SortingHatPropertyType.IMAGE_WINDOW_ICON);\r\n img = loadImage(imgPath + windowIconFile);\r\n window.setIconImage(img);\r\n\r\n // CONSTRUCT THE PANEL WHERE WE'LL DRAW EVERYTHING\r\n canvas = new PathXPanel(this, (PathXDataModel) data);\r\n\r\n // LOAD THE BACKGROUNDS, WHICH ARE GUI DECOR\r\n currentScreenState = MENU_SCREEN_STATE;\r\n img = loadImage(imgPath + props.getProperty(SortingHatPropertyType.IMAGE_BACKGROUND_MENU));\r\n sT = new SpriteType(BACKGROUND_TYPE);\r\n\r\n sT.addState(MENU_SCREEN_STATE, img);\r\n img = loadImage(imgPath + props.getProperty(SortingHatPropertyType.IMAGE_BACKGROUND_GAME));\r\n sT.addState(GAME_SCREEN_STATE, img);\r\n img = loadImage(imgPath + props.getProperty(SortingHatPropertyType.IMAGE_BACKGROUND_HELP));\r\n sT.addState(HELP_SCREEN_STATE, img);\r\n img = loadImage(imgPath + props.getProperty(SortingHatPropertyType.IMAGE_BACKGROUND_SETTINGS));\r\n sT.addState(SETTINGS_SCREEN_STATE, img);\r\n img = loadImage(imgPath + props.getProperty(SortingHatPropertyType.IMAGE_BACKGROUND_LEVEL_PLAY));\r\n sT.addState(LEVEL_PLAY_SCREEN_STATE, img);\r\n s = new Sprite(sT, 0, 0, 0, 0, MENU_SCREEN_STATE);\r\n guiDecor.put(BACKGROUND_TYPE, s);\r\n\r\n // LOAD THE WAND CURSOR\r\n// String cursorName = props.getProperty(SortingHatPropertyType.IMAGE_CURSOR_WAND);\r\n// img = loadImageWithColorKey(imgPath + cursorName, COLOR_KEY);\r\n// Point cursorHotSpot = new Point(0,0);\r\n// Cursor wandCursor = Toolkit.getDefaultToolkit().createCustomCursor(img, cursorHotSpot, cursorName);\r\n// window.setCursor(wandCursor);\r\n // ADD A BUTTON FOR EACH LEVEL AVAILABLE\r\n ArrayList<String> levels = props.getPropertyOptionsList(SortingHatPropertyType.LEVEL_OPTIONS);\r\n ArrayList<String> levelImageNames = props.getPropertyOptionsList(SortingHatPropertyType.LEVEL_IMAGE_OPTIONS);\r\n// ArrayList<String> levelMouseOverImageNames = props.getPropertyOptionsList(SortingHatPropertyType.LEVEL_MOUSE_OVER_IMAGE_OPTIONS);\r\n// float totalWidth = levels.size() * (LEVEL_BUTTON_WIDTH + LEVEL_BUTTON_MARGIN) - LEVEL_BUTTON_MARGIN;\r\n// Viewport viewport = data.getViewport();\r\n// x = (viewport.getScreenWidth() - totalWidth)/2.0f;\r\n// for (int i = 0; i < levels.size(); i++)\r\n// {\r\n// sT = new SpriteType(LEVEL_SELECT_BUTTON_TYPE);\r\n// img = loadImageWithColorKey(imgPath + levelImageNames.get(i), COLOR_KEY);\r\n// sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n// img = loadImageWithColorKey(imgPath + levelMouseOverImageNames.get(i), COLOR_KEY);\r\n// sT.addState(PathXButtonState.MOUSE_OVER_STATE.toString(), img);\r\n// s = new Sprite(sT, x, LEVEL_BUTTON_Y, 0, 0, PathXButtonState.VISIBLE_STATE.toString());\r\n// guiButtons.put(levels.get(i), s);\r\n// x += LEVEL_BUTTON_WIDTH + LEVEL_BUTTON_MARGIN;\r\n// }\r\n\r\n // THEN THE NEW BUTTON\r\n String newButton = props.getProperty(SortingHatPropertyType.IMAGE_BUTTON_NEW);\r\n sT = new SpriteType(NEW_GAME_BUTTON_TYPE);\r\n img = loadImage(imgPath + newButton);\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n String newMouseOverButton = props.getProperty(SortingHatPropertyType.IMAGE_BUTTON_NEW_MOUSE_OVER);\r\n img = loadImage(imgPath + newMouseOverButton);\r\n sT.addState(PathXButtonState.MOUSE_OVER_STATE.toString(), img);\r\n s = new Sprite(sT, NEW_BUTTON_X, NEW_BUTTON_Y, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiButtons.put(NEW_GAME_BUTTON_TYPE, s);\r\n\r\n // AND THE BACK BUTTON\r\n String backButton = props.getProperty(SortingHatPropertyType.IMAGE_BUTTON_BACK);\r\n sT = new SpriteType(BACK_BUTTON_TYPE);\r\n img = loadImage(imgPath + backButton);\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n String backMouseOverButton = props.getProperty(SortingHatPropertyType.IMAGE_BUTTON_BACK_MOUSE_OVER);\r\n img = loadImage(imgPath + backMouseOverButton);\r\n sT.addState(PathXButtonState.MOUSE_OVER_STATE.toString(), img);\r\n s = new Sprite(sT, BACK_BUTTON_X, BACK_BUTTON_Y, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiButtons.put(BACK_BUTTON_TYPE, s);\r\n\r\n // PLAY BUTTON\r\n guiButtons.put(\"PLAY_BUTTON_TYPE\", newButtonSprite(300, 550, \"PLAY_BUTTON_TYPE\", \"img/sorting_hat/ButtonPlay.png\", \"img/sorting_hat/ButtonPlayMouseOver.png\", PathXButtonState.VISIBLE_STATE.toString()));\r\n\r\n // RESET BUTTON\r\n guiButtons.put(\"RESET_BUTTON_TYPE\", newButtonSprite(500, 550, \"RESET_BUTTON_TYPE\", \"img/sorting_hat/ResetButton.png\", \"img/sorting_hat/ResetButtonMouseOver.png\", PathXButtonState.VISIBLE_STATE.toString()));\r\n\r\n // SETTINGS BUTTON\r\n guiButtons.put(\"SETTINGS_BUTTON_TYPE\", newButtonSprite(700, 550, \"SETTINGS_BUTTON_TYPE\", \"img/sorting_hat/SettingsButton.png\", \"img/sorting_hat/SettingsButtonMouseOver.png\", PathXButtonState.VISIBLE_STATE.toString()));\r\n\r\n // ALTERNATE METHOD FOR HELP BUTTON\r\n guiButtons.put(\"HELP_BUTTON_TYPE\", newButtonSprite(900, 550, \"HELP_BUTTON_TYPE\", \"img/sorting_hat/HelpButton.png\", \"img/sorting_hat/HelpButtonMouseOver.png\", PathXButtonState.VISIBLE_STATE.toString()));\r\n\r\n //EXIT BUTTON\r\n guiButtons.put(\"EXIT_BUTTON\", newButtonSprite(1200, 0, \"EXIT_BUTTON\", \"img/sorting_hat/ExitButton.png\", \"img/sorting_hat/ExitButtonMouseOver.png\", PathXButtonState.VISIBLE_STATE.toString()));\r\n\r\n //IMPLEMENTING THE NAVIGATION BUTTONS\r\n //LEFT BUTTON\r\n guiButtons.put(\"LEFT_BUTTON\", newButtonSprite(50, 610, \"LEFT_BUTTON\", \"img/sorting_hat/LeftButton.png\", \"img/sorting_hat/LeftButton.png\", PathXButtonState.INVISIBLE_STATE.toString()));\r\n\r\n //RIGHT BUTTON\r\n guiButtons.put(\"RIGHT_BUTTON\", newButtonSprite(150, 610, \"RIGHT_BUTTON\", \"img/sorting_hat/RightButton.png\", \"img/sorting_hat/RightButton.png\", PathXButtonState.INVISIBLE_STATE.toString()));\r\n\r\n //UP BUTTON\r\n guiButtons.put(\"UP_BUTTON\", newButtonSprite(85, 600, \"UP_BUTTON\", \"img/sorting_hat/UpButton.png\", \"img/sorting_hat/UpButton.png\", PathXButtonState.INVISIBLE_STATE.toString()));\r\n\r\n //DOWN BUTTON\r\n guiButtons.put(\"DOWN_BUTTON\", newButtonSprite(85, 650, \"DOWN_BUTTON\", \"img/sorting_hat/DownButton.png\", \"img/sorting_hat/DownButton.png\", PathXButtonState.INVISIBLE_STATE.toString()));\r\n\r\n //Start button to start the game in level play screen\r\n //guiButtons.put(\"START_BUTTON\", newButtonSprite(85, 200, \"START_BUTTON\", \"img/sorting_hat/GameStartButton.png\", \"img/sorting_hat/GameStartButton.png\" ));\r\n //Start button to start the game in level play screen\r\n sT = new SpriteType(\"START_BUTTON\");\r\n img = loadImage(\"img/sorting_hat/GameStartButton.png\");\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n sT.addState(\"MOUSE_OVER_STATE\", img);\r\n s = new Sprite(sT, 175, 225, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiButtons.put(\"START_BUTTON\", s);\r\n\r\n //SETTINGS CHECK BOX\r\n //SOUND CHECK BOX\r\n sT = new SpriteType(\"SOUND_BUTTON\");\r\n img = loadImage(\"img/sorting_hat/SoundButtonYes.png\");\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n sT.addState(\"MOUSE_OVER_STATE\", img);\r\n img = loadImage(\"img/sorting_hat/SoundButtonNo.png\");\r\n sT.addState(\"SELECTED_STATE\", img);\r\n s = new Sprite(sT, 400, 300, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiButtons.put(\"SOUND_BUTTON\", s);\r\n\r\n //MUSIC CHECK BOX\r\n sT = new SpriteType(\"MUSIC_BUTTON\");\r\n img = loadImage(\"img/sorting_hat/MusicButtonYes.png\");\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n sT.addState(\"MOUSE_OVER_STATE\", img);\r\n s = new Sprite(sT, 400, 400, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiButtons.put(\"MUSIC_BUTTON\", s);\r\n\r\n // PAUSE BUTTON\r\n sT = new SpriteType(\"PAUSE_BUTTON\");\r\n img = loadImage(\"img/sorting_hat/PauseButtonGameplay.png\");\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n sT.addState(\"MOUSE_OVER_STATE\", img);\r\n s = new Sprite(sT, 1093, 0, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiButtons.put(\"PAUSE_BUTTON\", s);\r\n\r\n // LEVEL BUTTON (the only level right now should be changed)\r\n// sT = new SpriteType(\"LEVEL_BUTTON\");\r\n// img = loadImage(\"img/sorting_hat/LevelButton.png\");\r\n// sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n// sT.addState(\"MOUSE_OVER_STATE\", img);\r\n// s = new Sprite(sT, 240, 359, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n// guiButtons.put(\"LEVEL_BUTTON\", s);\r\n\r\n// Make buttons for all the levels using an iterator\r\n for (int i = 0; i < TOTAL_LEVEL; i++) {\r\n \r\n String levelButton = props.getProperty(SortingHatPropertyType.IMAGE_BUTTON_LEVELS);\r\n sT = new SpriteType(LEVEL_BUTTON_TYPE + i);\r\n img = loadImage(imgPath + levelButton);\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n sT.addState(PathXButtonState.MOUSE_OVER_STATE.toString(), img);\r\n s = new Sprite(sT, 100 + (50*i), 200 + (15*i), 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiButtons.put(LEVEL_BUTTON_TYPE + i, s);\r\n }\r\n\r\n // AND THE TIME DISPLAY\r\n String timeContainer = props.getProperty(SortingHatPropertyType.IMAGE_DECOR_TIME);\r\n sT = new SpriteType(TIME_TYPE);\r\n img = loadImage(imgPath + timeContainer);\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n s = new Sprite(sT, TIME_X, TIME_Y, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiDecor.put(TIME_TYPE, s);\r\n\r\n // AND THE STATS BUTTON\r\n String statsButton = props.getProperty(SortingHatPropertyType.IMAGE_BUTTON_STATS);\r\n sT = new SpriteType(STATS_BUTTON_TYPE);\r\n img = loadImage(imgPath + statsButton);\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n String statsMouseOverButton = props.getProperty(SortingHatPropertyType.IMAGE_BUTTON_STATS_MOUSE_OVER);\r\n img = loadImage(imgPath + statsMouseOverButton);\r\n sT.addState(PathXButtonState.MOUSE_OVER_STATE.toString(), img);\r\n s = new Sprite(sT, STATS_X, STATS_Y, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiButtons.put(STATS_BUTTON_TYPE, s);\r\n\r\n // AND THEN THE UNDO BUTTON\r\n String undoButton = props.getProperty(SortingHatPropertyType.IMAGE_BUTTON_UNDO);\r\n sT = new SpriteType(UNDO_BUTTON_TYPE);\r\n img = loadImageWithColorKey(imgPath + undoButton, COLOR_KEY);\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n String undoMouseOverButton = props.getProperty(SortingHatPropertyType.IMAGE_BUTTON_UNDO_MOUSE_OVER);\r\n img = loadImageWithColorKey(imgPath + undoMouseOverButton, COLOR_KEY);\r\n sT.addState(PathXButtonState.MOUSE_OVER_STATE.toString(), img);\r\n s = new Sprite(sT, UNDO_X, UNDO_Y, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiButtons.put(UNDO_BUTTON_TYPE, s);\r\n\r\n // AND THE TILE STACK\r\n String tileStack = props.getProperty(SortingHatPropertyType.IMAGE_BUTTON_TEMP_TILE);\r\n sT = new SpriteType(ALGORITHM_TYPE);\r\n img = loadImageWithColorKey(imgPath + tileStack, COLOR_KEY);\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n s = new Sprite(sT, TEMP_TILE_X, TEMP_TILE_Y, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiDecor.put(ALGORITHM_TYPE, s);\r\n\r\n // For the viewport of level select\r\n sT = new SpriteType(MAP);\r\n img = loadImage(imgPath + props.getProperty(SortingHatPropertyType.IMAGE_MAP));\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n\r\n s = new Sprite(sT, 0, 154, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiDecor.put(MAP, s);\r\n\r\n // viewport of the level play screen\r\n sT = new SpriteType(LEVEL_PLAY_MAP);\r\n img = loadImage(imgPath + props.getProperty(SortingHatPropertyType.IMAGE_LEVEL_PLAY_MAP));\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n s = new Sprite(sT, 500, 70, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiDecor.put(LEVEL_PLAY_MAP, s);\r\n\r\n // NOW ADD THE DIALOGS\r\n // AND THE STATS DISPLAY\r\n// String statsDialog = props.getProperty(SortingHatPropertyType.IMAGE_DIALOG_STATS);\r\n// sT = new SpriteType(STATS_DIALOG_TYPE);\r\n // img = loadImageWithColorKey(imgPath + statsDialog, COLOR_KEY);\r\n // sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n // x = (viewport.getScreenWidth()/2) - (img.getWidth(null)/2);\r\n // y = (viewport.getScreenHeight()/2) - (img.getHeight(null)/2);\r\n // s = new Sprite(sT, x, y, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n // guiDialogs.put(STATS_DIALOG_TYPE, s);\r\n // AND THE WIN CONDITION DISPLAY\r\n // String winDisplay = props.getProperty(SortingHatPropertyType.IMAGE_DIALOG_WIN);\r\n // sT = new SpriteType(WIN_DIALOG_TYPE);\r\n// img = loadImageWithColorKey(imgPath + winDisplay, COLOR_KEY);\r\n// sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n// x = (viewport.getScreenWidth()/2) - (img.getWidth(null)/2);\r\n// y = (viewport.getScreenHeight()/2) - (img.getHeight(null)/2);\r\n// s = new Sprite(sT, x, y, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n// guiDialogs.put(WIN_DIALOG_TYPE, s);\r\n // THEN THE TILES STACKED TO THE TOP LEFT\r\n //((PathXDataModel) data).initTiles();\r\n\r\n String infoDialogBox = props.getProperty(SortingHatPropertyType.IMAGE_LEVEL_LOADED);\r\n sT = new SpriteType(LEVEL_LOADED_TYPE);\r\n img = loadImageWithColorKey(imgPath + infoDialogBox, COLOR_KEY);\r\n sT.addState(PathXButtonState.VISIBLE_STATE.toString(), img);\r\n sT.addState(\"MOUSE_OVER_STATE\", img);\r\n s = new Sprite(sT, 1093, 0, 0, 0, PathXButtonState.INVISIBLE_STATE.toString());\r\n guiButtons.put(LEVEL_LOADED_TYPE, s);\r\n }", "title": "" }, { "docid": "b7187ac7b1ed96e9d9926893baf13a2d", "score": "0.59498537", "text": "protected IFigure createFigure() {\n IFigure fig = super.createFigure();\n fig.setBackgroundColor(new Color(null, 246,255,255));\n fig.setOpaque(true);\n \n Image img = ImageHolder.getInstance().getMapContentImage();\n ImageFigure iconImageFigure = new ImageFigure(img);\n iconImageFigure.setSize(new Dimension(200, 200));\n iconImageFigure.setLocation(new Point(0,-400));\n iconImageFigure.addMouseListener(new MouseListener() {\n\n @Override\n public void mouseReleased(MouseEvent me) {\n }\n\n @Override\n public void mousePressed(MouseEvent me) {\n drawMappings();\n }\n\n @Override\n public void mouseDoubleClicked(MouseEvent me) {\n }\n });\n \n fig.add(iconImageFigure);\n return fig;\n }", "title": "" }, { "docid": "af61b2ecdbc5b05d3d0f9adc6fe50a03", "score": "0.5946606", "text": "@Override\r\n public JPopupMenu getPopupMenu(Widget widget, Point localLocation) {\n N = (ShapeNode) sceneConstantRemoteAcess.findObject(widget);\r\n //initializing the x and y coordinates of the widget using the shape coordinates\r\n //converts from widget coordinates system (middle of widget is x:0,y:0)\r\n //to scene coordinates system that can have negative x or y then to\r\n //view coordinates system (top left == x:0,y:0)\r\n localLocation = widget.convertLocalToScene(new Point(0, 0));\r\n// localLocation = Scene.globalScene.convertSceneToView(localLocation);\r\n final float x = localLocation.getLocation().x;\r\n final float y = localLocation.getLocation().y;\r\n //adding the properties menu item to the popup menu of the widget\r\n JMenuItem propsMenu = new JMenuItem(\"Proprietes\");\r\n //verify the type of the widget \r\n if (N.getShape().getType().equals(\"4\")) {\r\n propsMenu.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n AbstractNode node = new AbstractNode(Children.LEAF) {\r\n\r\n //creating the properties sheet which contains all of the informations of the widget\r\n //that the user can edit\r\n @Override\r\n protected Sheet createSheet() {\r\n //initialize the properties editor with the properties of the widget\r\n //initialize the x ad y coordinates of the widget\r\n loadUnloadSensorProperties.setxCoordinate(x);\r\n loadUnloadSensorProperties.setyCoordinate(y);\r\n\r\n //update to new Arezzo coordinates system only if changed location\r\n Point arezzoCoordinates = CoordinatesOfArezzo.getInstance().updateSceneBoundaries(x, y, true);\r\n if (x != (float) arezzoCoordinates.getX()) {\r\n loadUnloadSensorProperties.setxCoordinateArezzo((float) arezzoCoordinates.getX());\r\n }\r\n if (y != (float) arezzoCoordinates.getY()) {\r\n loadUnloadSensorProperties.setyCoordinateArezzo((float) arezzoCoordinates.getY());\r\n }\r\n //create the properties editor sheet\r\n Sheet sheet = super.createSheet();\r\n //create a set that the properties editor will contain\r\n Sheet.Set set = Sheet.createPropertiesSet();\r\n //we fill the sheet with all of the properties of the domain class of the widget\r\n //since the widget is a type 4 node, its properties will contain all of the\r\n //attributes of the domain class \"PropertiesOfNodesOfType4_8_9\" properties \r\n set.put(new PropertiesOfNodesOfType4_8_9.NumberProperty(loadUnloadSensorProperties));\r\n set.put(new PropertiesOfNodesOfType4_8_9.XCoordinateProperty(loadUnloadSensorProperties));\r\n set.put(new PropertiesOfNodesOfType4_8_9.YCoordinateProperty(loadUnloadSensorProperties));\r\n set.put(new PropertiesOfNodesOfType4_8_9.XCoordinateArezzoProperty(loadUnloadSensorProperties));\r\n set.put(new PropertiesOfNodesOfType4_8_9.YCoordinateArezzoProperty(loadUnloadSensorProperties));\r\n\r\n set.put(new PropertiesOfNodesOfType4_8_9.TypeProperty(loadUnloadSensorProperties));\r\n set.put(new PropertiesOfNodesOfType4_8_9.AipNumberProperty(loadUnloadSensorProperties));\r\n set.put(new PropertiesOfNodesOfType4_8_9.SpeedsToNextNodesProperty(loadUnloadSensorProperties));\r\n set.put(new PropertiesOfNodesOfType4_8_9.NumbersOfNextNodesProperty(loadUnloadSensorProperties));\r\n //speed to next nodes one by one to edit\r\n int nextNodeIndex = 0;\r\n if (MyLoadUnloadSensorWidget.this.getLoadUnloadSensorProperties().getNumbersOfNextNodes() != null\r\n && MyLoadUnloadSensorWidget.this.getLoadUnloadSensorProperties().getNumbersOfNextNodes().size() > 0) {\r\n for (Integer nextNodeNumber : MyLoadUnloadSensorWidget.this.getLoadUnloadSensorProperties().getNumbersOfNextNodes()) {\r\n //NextNodeSpeedProperty\r\n set.put(new PropertiesOfNodesOfType4_8_9.NextNodeSpeedProperty(getLoadUnloadSensorProperties(),\r\n nextNodeNumber, nextNodeIndex));\r\n nextNodeIndex++;\r\n }\r\n }\r\n\r\n sheet.put(set);\r\n\r\n return sheet;\r\n\r\n }\r\n };\r\n //add labels for the properties editor of the widget\r\n node.setDisplayName(\"Properties of the Load/Unload Sensor\");\r\n node.setShortDescription(\"Properties of the Load/Unload Sensor\");\r\n //show the properties editor of the widget when the properties menu item is cliked\r\n NodeOperation.getDefault().showProperties(node);\r\n }\r\n });\r\n }\r\n //create the popup menu that will contain all of the menu items of this widget\r\n JPopupMenu popup = new JPopupMenu();\r\n\r\n //LINK\r\n JMenu linkMenu = new JMenu(\"Link\");\r\n\r\n //create a menu item to attach the widget using a straight link\r\n JMenuItem linearLinkMenuItem = new JMenuItem(\"Linear Link\");\r\n //map the link widget action listener to the Linl popup menu item\r\n ActionListener linearLinkActionListener = new LinkActionListener(true);\r\n linearLinkMenuItem.addActionListener(linearLinkActionListener);\r\n linkMenu.add(linearLinkMenuItem);\r\n\r\n //create a menu item to attach the widget using a complex polygonal link\r\n JMenuItem polygonalLinkMenuItem = new JMenuItem(\"Polygonal Link\");\r\n //map the link widget action listener to the Linl popup menu item\r\n ActionListener polygonalLinkActionListener = new LinkActionListener(false);\r\n polygonalLinkMenuItem.addActionListener(polygonalLinkActionListener);\r\n linkMenu.add(polygonalLinkMenuItem);\r\n popup.add(linkMenu);\r\n popup.addSeparator();\r\n\r\n //create a delete widget action listener\r\n ActionListener actionListener = new PopupDeleteActionListener();\r\n //create a menu item to delete the widget\r\n JMenuItem deleteMenuItem = new JMenuItem(\"Delete\");\r\n //map the delete widget action listener to the delete popup menu item\r\n deleteMenuItem.addActionListener(actionListener);\r\n //add the delete menu item to the popup menu of the widget\r\n popup.add(deleteMenuItem);\r\n //CUT/COPY PASTE\r\n JMenuItem cutMenuItem = new JMenuItem(\"Cut\");\r\n cutMenuItem.setActionCommand((String) TransferHandler.getCutAction().\r\n getValue(Action.NAME));\r\n\r\n ActionListener cutActionListener = new MyLoadUnloadSensorWidget.PopupCutActionListener(WidgetCommonInfo.WidgetType.LOAD_UNLOAD_SENSOR, instance, N);\r\n cutMenuItem.addActionListener(cutActionListener);\r\n //menuItem.setAccelerator(\r\n //KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.CTRL_MASK));\r\n //menuItem.setMnemonic(KeyEvent.VK_T);\r\n\r\n JMenuItem copyMenuItem = new JMenuItem(\"Copy\");\r\n copyMenuItem.setActionCommand((String) TransferHandler.getCopyAction().\r\n getValue(Action.NAME));\r\n\r\n ActionListener copyActionListener = new MyLoadUnloadSensorWidget.PopupCopyActionListener(WidgetCommonInfo.WidgetType.LOAD_UNLOAD_SENSOR, instance, N);\r\n copyMenuItem.addActionListener(copyActionListener);\r\n //menuItem.setAccelerator(\r\n //KeyStroke.getKeyStroke(KeyEvent.VK_X, ActionEvent.CTRL_MASK));\r\n //menuItem.setMnemonic(KeyEvent.VK_T);\r\n\r\n if (N.getShape().getType().equals(\"4\")) {\r\n popup.add(propsMenu);\r\n popup.addSeparator();\r\n popup.add(cutMenuItem);\r\n popup.add(copyMenuItem);\r\n }\r\n //return the popup menu\r\n return popup;\r\n }", "title": "" }, { "docid": "30a7bc7efd4927a2d02e9fe3a37152b3", "score": "0.59465706", "text": "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\tint x= arg0.getX(); //to get the x-coordinate location\r\n\t\tint y= arg0.getY();//to get the y-coordinate location\r\n\t\t//System.out.println(\"x= \" + x + \" , y= \" + y);\r\n\t\tGraphics getG= getGraphics();//graphics in general\r\n\t\tGraphics g2dCasted= (Graphics2D)getG;//to turn the regualar graphics into a 2D graphic\r\n\t\t((Graphics2D)g2dCasted).setStroke(new BasicStroke(sizeOfAll)); //-10));//drawing size will be given here and changed/set from the slider SJpanel class by calling the canvas class dot the variable\r\n\t\tg2dCasted.setColor(myColor);//set the graphics drawing color that the user chooses\r\n\t\t\r\n\t\tif(startDraw == true){\r\n\t\t\tg2dCasted.drawLine(lastX, lastY, x, y);//to draw\r\n\t\t}\r\n\t\t\r\n\t\tif(MyShape == \"Line\"){\r\n\t\t\tif(startX < 0){//then you know your stting to draw\r\n\t\t\t\tstartX = x;//recording values\r\n\t\t\t\tstartY = y;\r\n\t\t\t}\r\n\t\t\t//getG.dispose();\r\n\t\t\t//repaint();\r\n\t\t\tg2dCasted.drawLine(startX, startY, x, y);//to draw\r\n\t\t}\r\n\t\trecordLast(x,y);\r\n\t\t\r\n\t\t//if(MyShape == \"Line\"){\r\n\t\t\t//startDraw = false;\r\n\t\t\t//g2dCasted.drawLine(lastX, lastY, sizeOfAll, sizeOfAll);\r\n\t\t//}\r\n\t}", "title": "" }, { "docid": "2cc44cafd3594149e9d1d7ca3bc3b2df", "score": "0.5891438", "text": "public DrawPanel() {\n \n// initialize instance variable\n shapes = new MyShape[100];\n shapeCount = 0; // number of shapes on the pad\n shapeType = 0; // 0 is the index for a line shape\n filledShape = false;\n currentShape = null;\n currentStroke = new BasicStroke();\n currentColor = Color.BLACK;\n statusBar = new JLabel(\"Mouse outside of drawing pad.\");\n setBackground(Color.WHITE);\n setPreferredSize(new Dimension(580,470));\n \n // Create and register listener for mouse and mouse motion on drawing pad\n // All mouse events will take place on the drawing pad\n MouseHandler mouseHandler = new MouseHandler();\n addMouseMotionListener(mouseHandler);\n addMouseListener(mouseHandler);\n }", "title": "" }, { "docid": "9849da6ae75ca7757e6ed28299612f74", "score": "0.5890731", "text": "private void initGUI() {\n fgColorArea = new JColorArea(Color.RED, this, CHANGE_FOREGROUND_COLOR);\n bgColorArea = new JColorArea(Color.BLUE, this, CHANGE_BACKGROUND_COLOR);\n\n drawCircle = new DrawCircle(model, fgColorArea, bgColorArea);\n drawFilledCircle = new DrawFilledCircle(model, fgColorArea, bgColorArea);\n drawLine = new DrawLine(model, fgColorArea, bgColorArea);\n\n Tool currentTool = drawLine;\n\n JColorLabel label = new JColorLabel(fgColorArea, bgColorArea);\n createToolbar();\n\n add(label, BorderLayout.PAGE_END);\n canvas = new JDrawingCanvas(model, currentTool);\n add(canvas, BorderLayout.CENTER);\n add(new JScrollPane(objects), BorderLayout.LINE_END);\n\n createMenus();\n }", "title": "" }, { "docid": "ba05c2f8ee1a31e3ec1619aef4396dc2", "score": "0.58893996", "text": "protected void initStart(){\n mFigures = new Vector();\n this.setSize(400,400);\n this.setLocation(20, 20);\n this.setBackground(Color.white);\n }", "title": "" }, { "docid": "71d5571db9bb849d712b49e86df1eeae", "score": "0.587533", "text": "DrawPanel()\r\n {\r\n setPreferredSize(new Dimension(275,350));\r\n \r\n addMouseListener(new MyListener());\r\n //Create ArrayList of shapes drawn for Part A, LinkedList for Part B\r\n shapesDrawn = new ArrayList<Shape>();\r\n\r\n }", "title": "" }, { "docid": "051dcb63c48dbdd754fc6718fcfd0128", "score": "0.5869831", "text": "public void init ()\r\n {\n\tcolourNum = -1;\r\n\tshapeNum = -1;\r\n\r\n\tsetBackground (Color.LIGHT_GRAY);\r\n\tgraphicPanel.setBackground (Color.GRAY);\r\n\ttextFont = new Font (\"SERIF\", Font.BOLD, 24);\r\n\r\n\tanimate = false;\r\n\r\n\t// register a listener to the radio buttons that control the color\r\n\tradioBlue.addItemListener (this);\r\n\tradioYellow.addItemListener (this);\r\n\tradioRed.addItemListener (this);\r\n\tradioMagenta.addItemListener (this);\r\n\r\n\t// label for the color panel\r\n\tLabel lColor = new Label (\"Choose one of the following colors\");\r\n\t// add the label and radio buttons to the color panel\r\n\tcolorPanel.add (lColor);\r\n\tcolorPanel.add (radioBlue);\r\n\tcolorPanel.add (radioYellow);\r\n\tcolorPanel.add (radioRed);\r\n\tcolorPanel.add (radioMagenta);\r\n\t// set the layout of the color panels to 5 rows and 1 column\r\n\tcolorPanel.setLayout (new GridLayout (5, 1));\r\n\r\n\t// register a listener to the radio buttons that control the shape\r\n\tradioSquare.addItemListener (this);\r\n\tradioRoundSq.addItemListener (this);\r\n\tradioCircle.addItemListener (this);\r\n\tradioSemiCircle.addItemListener (this);\r\n\r\n\t// label for the shape panel\r\n\tLabel lShape = new Label (\"Choose one of the following shapes\");\r\n\t// add the label and radio buttons to the shape panel\r\n\tshapePanel.add (lShape);\r\n\tshapePanel.add (radioSquare);\r\n\tshapePanel.add (radioRoundSq);\r\n\tshapePanel.add (radioCircle);\r\n\tshapePanel.add (radioSemiCircle);\r\n\t// set the layout of the shape panel to 5 rows and 1 column\r\n\tshapePanel.setLayout (new GridLayout (5, 1));\r\n\r\n\t// label for the shape size panel\r\n\tLabel sSize = new Label (\"Please input shape size: \");\r\n\t// add the label and text field to the size panel\r\n\tshapeSizePanel.add (sSize);\r\n\tshapeSizePanel.add (size);\r\n\tshapeSizePanel.setLayout (new GridLayout (1, 2));\r\n\r\n\t// panel to store the size panel and label displaying the attributes\r\n\tPanel sizeAttrPanel = new Panel ();\r\n\tsizeAttrPanel.setLayout (new GridLayout (5, 1));\r\n\tsizeAttrPanel.add (shapeSizePanel);\r\n\tsizeAttrPanel.add (new Label (\"\"));\r\n\tsizeAttrPanel.add (attributes);\r\n\r\n\t// register a listener to the draw and animate button\r\n\tdrawBttn.addActionListener (this);\r\n\tanimateBttn.addActionListener (this);\r\n\r\n\t// add the 'draw' and 'animate' buttons to the 'actionsPanel'\r\n\tactionsPanel.add (drawBttn);\r\n\tactionsPanel.add (animateBttn);\r\n\tactionsPanel.setLayout (new FlowLayout (2));\r\n\r\n\t// set the entire top panel layout to 4 sections\r\n\tnorthPanel.setLayout (new FlowLayout (5));\r\n\r\n\t// add panels to the top panel\r\n\tnorthPanel.add (colorPanel);\r\n\tnorthPanel.add (shapePanel);\r\n\tnorthPanel.add (sizeAttrPanel);\r\n\tnorthPanel.add (actionsPanel);\r\n\r\n\t// set the layout and display all the panels\r\n\tsetLayout (new BorderLayout ());\r\n\tadd (graphicPanel, BorderLayout.CENTER);\r\n\tadd (northPanel, BorderLayout.NORTH);\r\n }", "title": "" }, { "docid": "8eb5fd900093a727ce2a696107a323a2", "score": "0.58656883", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n mainPanel = new javax.swing.JPanel();\n canvas = new CanvasPanel();\n colorPanel = new javax.swing.JPanel();\n color1Box = new javax.swing.JPanel();\n color2Box = new javax.swing.JPanel();\n toolPanel = new javax.swing.JPanel();\n selectButton = new javax.swing.JToggleButton();\n lineButton = new javax.swing.JToggleButton();\n borderButton = new javax.swing.JToggleButton();\n boxButton = new javax.swing.JToggleButton();\n fillButton = new javax.swing.JToggleButton();\n imageButton = new javax.swing.JToggleButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n propertyTable = new javax.swing.JTable();\n menuBar = new javax.swing.JMenuBar();\n javax.swing.JMenu fileMenu = new javax.swing.JMenu();\n newMenuItem = new javax.swing.JMenuItem();\n openMenuItem = new javax.swing.JMenuItem();\n saveMenuItem = new javax.swing.JMenuItem();\n saveAsMenuItem = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JSeparator();\n javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();\n javax.swing.JMenu helpMenu = new javax.swing.JMenu();\n javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();\n statusPanel = new javax.swing.JPanel();\n javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();\n statusMessageLabel = new javax.swing.JLabel();\n statusAnimationLabel = new javax.swing.JLabel();\n progressBar = new javax.swing.JProgressBar();\n coordinateLabel = new javax.swing.JLabel();\n toolGroup = new javax.swing.ButtonGroup();\n openFileChooser = new javax.swing.JFileChooser();\n saveFileChooser = new javax.swing.JFileChooser();\n colorChooser = new javax.swing.JColorChooser();\n\n mainPanel.setName(\"mainPanel\"); // NOI18N\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(mockdesigner.MockDesignerApp.class).getContext().getResourceMap(MockDesignerView.class);\n canvas.setBackground(resourceMap.getColor(\"canvas.background\")); // NOI18N\n canvas.setMinimumSize(new java.awt.Dimension(240, 240));\n canvas.setName(\"canvas\"); // NOI18N\n canvas.setPreferredSize(new java.awt.Dimension(240, 240));\n canvas.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n canvasMouseDragged(evt);\n }\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n canvasMouseMoved(evt);\n }\n });\n\n javax.swing.GroupLayout canvasLayout = new javax.swing.GroupLayout(canvas);\n canvas.setLayout(canvasLayout);\n canvasLayout.setHorizontalGroup(\n canvasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 240, Short.MAX_VALUE)\n );\n canvasLayout.setVerticalGroup(\n canvasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 240, Short.MAX_VALUE)\n );\n\n colorPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n colorPanel.setName(\"colorPanel\"); // NOI18N\n\n color1Box.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n color1Box.setName(\"color1Box\"); // NOI18N\n color1Box.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n color1BoxMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout color1BoxLayout = new javax.swing.GroupLayout(color1Box);\n color1Box.setLayout(color1BoxLayout);\n color1BoxLayout.setHorizontalGroup(\n color1BoxLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 13, Short.MAX_VALUE)\n );\n color1BoxLayout.setVerticalGroup(\n color1BoxLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 14, Short.MAX_VALUE)\n );\n\n color2Box.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n color2Box.setName(\"color2Box\"); // NOI18N\n color2Box.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n color2BoxMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout color2BoxLayout = new javax.swing.GroupLayout(color2Box);\n color2Box.setLayout(color2BoxLayout);\n color2BoxLayout.setHorizontalGroup(\n color2BoxLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 13, Short.MAX_VALUE)\n );\n color2BoxLayout.setVerticalGroup(\n color2BoxLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 14, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout colorPanelLayout = new javax.swing.GroupLayout(colorPanel);\n colorPanel.setLayout(colorPanelLayout);\n colorPanelLayout.setHorizontalGroup(\n colorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(colorPanelLayout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(color1Box, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(color2Box, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(17, Short.MAX_VALUE))\n );\n colorPanelLayout.setVerticalGroup(\n colorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, colorPanelLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(colorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(color2Box, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(color1Box, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n toolPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n toolPanel.setName(\"toolPanel\"); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(mockdesigner.MockDesignerApp.class).getContext().getActionMap(MockDesignerView.class, this);\n selectButton.setAction(actionMap.get(\"selectSelect\")); // NOI18N\n toolGroup.add(selectButton);\n selectButton.setIcon(resourceMap.getIcon(\"selectButton.icon\")); // NOI18N\n selectButton.setText(resourceMap.getString(\"selectButton.text\")); // NOI18N\n selectButton.setMaximumSize(new java.awt.Dimension(25, 25));\n selectButton.setMinimumSize(new java.awt.Dimension(25, 25));\n selectButton.setName(\"selectButton\"); // NOI18N\n selectButton.setPreferredSize(new java.awt.Dimension(25, 25));\n\n lineButton.setAction(actionMap.get(\"selectLine\")); // NOI18N\n toolGroup.add(lineButton);\n lineButton.setIcon(resourceMap.getIcon(\"lineButton.icon\")); // NOI18N\n lineButton.setText(resourceMap.getString(\"lineButton.text\")); // NOI18N\n lineButton.setMaximumSize(new java.awt.Dimension(25, 25));\n lineButton.setMinimumSize(new java.awt.Dimension(25, 25));\n lineButton.setName(\"lineButton\"); // NOI18N\n lineButton.setPreferredSize(new java.awt.Dimension(25, 25));\n\n borderButton.setAction(actionMap.get(\"selectBorder\")); // NOI18N\n toolGroup.add(borderButton);\n borderButton.setIcon(resourceMap.getIcon(\"borderButton.icon\")); // NOI18N\n borderButton.setText(resourceMap.getString(\"borderButton.text\")); // NOI18N\n borderButton.setMaximumSize(new java.awt.Dimension(25, 25));\n borderButton.setMinimumSize(new java.awt.Dimension(25, 25));\n borderButton.setName(\"borderButton\"); // NOI18N\n borderButton.setPreferredSize(new java.awt.Dimension(25, 25));\n\n boxButton.setAction(actionMap.get(\"selectBox\")); // NOI18N\n toolGroup.add(boxButton);\n boxButton.setIcon(resourceMap.getIcon(\"boxButton.icon\")); // NOI18N\n boxButton.setText(resourceMap.getString(\"boxButton.text\")); // NOI18N\n boxButton.setMaximumSize(new java.awt.Dimension(25, 25));\n boxButton.setMinimumSize(new java.awt.Dimension(25, 25));\n boxButton.setName(\"boxButton\"); // NOI18N\n boxButton.setPreferredSize(new java.awt.Dimension(25, 25));\n\n fillButton.setAction(actionMap.get(\"selectFill\")); // NOI18N\n toolGroup.add(fillButton);\n fillButton.setIcon(resourceMap.getIcon(\"fillButton.icon\")); // NOI18N\n fillButton.setText(resourceMap.getString(\"fillButton.text\")); // NOI18N\n fillButton.setMaximumSize(new java.awt.Dimension(25, 25));\n fillButton.setMinimumSize(new java.awt.Dimension(25, 25));\n fillButton.setName(\"fillButton\"); // NOI18N\n fillButton.setPreferredSize(new java.awt.Dimension(25, 25));\n\n imageButton.setAction(actionMap.get(\"selectImage\")); // NOI18N\n toolGroup.add(imageButton);\n imageButton.setIcon(resourceMap.getIcon(\"imageButton.icon\")); // NOI18N\n imageButton.setText(resourceMap.getString(\"imageButton.text\")); // NOI18N\n imageButton.setMaximumSize(new java.awt.Dimension(25, 25));\n imageButton.setMinimumSize(new java.awt.Dimension(25, 25));\n imageButton.setName(\"imageButton\"); // NOI18N\n imageButton.setPreferredSize(new java.awt.Dimension(25, 25));\n\n javax.swing.GroupLayout toolPanelLayout = new javax.swing.GroupLayout(toolPanel);\n toolPanel.setLayout(toolPanelLayout);\n toolPanelLayout.setHorizontalGroup(\n toolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(toolPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(toolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(fillButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(borderButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(toolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(toolPanelLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(toolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(boxButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lineButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, toolPanelLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(imageButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n toolPanelLayout.setVerticalGroup(\n toolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(toolPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(toolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lineButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(toolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(borderButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(boxButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(toolPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(imageButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(fillButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jScrollPane2.setName(\"jScrollPane2\"); // NOI18N\n\n propertyTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"プロパティ\", \"値\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, true\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 propertyTable.setName(\"propertyTable\"); // NOI18N\n propertyTable.getTableHeader().setReorderingAllowed(false);\n jScrollPane2.setViewportView(propertyTable);\n propertyTable.getColumnModel().getColumn(0).setHeaderValue(resourceMap.getString(\"propertyTable.columnModel.title0\")); // NOI18N\n propertyTable.getColumnModel().getColumn(1).setHeaderValue(resourceMap.getString(\"propertyTable.columnModel.title1\")); // NOI18N\n\n javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);\n mainPanel.setLayout(mainPanelLayout);\n mainPanelLayout.setHorizontalGroup(\n mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(colorPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(toolPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(canvas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE))\n );\n mainPanelLayout.setVerticalGroup(\n mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 240, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()\n .addComponent(toolPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(colorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(canvas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n menuBar.setName(\"menuBar\"); // NOI18N\n\n fileMenu.setText(resourceMap.getString(\"fileMenu.text\")); // NOI18N\n fileMenu.setName(\"fileMenu\"); // NOI18N\n\n newMenuItem.setAction(actionMap.get(\"newAction\")); // NOI18N\n newMenuItem.setText(resourceMap.getString(\"newMenuItem.text\")); // NOI18N\n newMenuItem.setName(\"newMenuItem\"); // NOI18N\n fileMenu.add(newMenuItem);\n\n openMenuItem.setAction(actionMap.get(\"openFileAction\")); // NOI18N\n openMenuItem.setText(resourceMap.getString(\"openMenuItem.text\")); // NOI18N\n openMenuItem.setName(\"openMenuItem\"); // NOI18N\n fileMenu.add(openMenuItem);\n\n saveMenuItem.setAction(actionMap.get(\"saveFileAction\")); // NOI18N\n saveMenuItem.setText(resourceMap.getString(\"saveMenuItem.text\")); // NOI18N\n saveMenuItem.setName(\"saveMenuItem\"); // NOI18N\n fileMenu.add(saveMenuItem);\n\n saveAsMenuItem.setAction(actionMap.get(\"saveAsFileAction\")); // NOI18N\n saveAsMenuItem.setText(resourceMap.getString(\"saveAsMenuItem.text\")); // NOI18N\n saveAsMenuItem.setName(\"saveAsMenuItem\"); // NOI18N\n fileMenu.add(saveAsMenuItem);\n\n jSeparator1.setName(\"jSeparator1\"); // NOI18N\n fileMenu.add(jSeparator1);\n\n exitMenuItem.setAction(actionMap.get(\"quit\")); // NOI18N\n exitMenuItem.setText(resourceMap.getString(\"exitMenuItem.text\")); // NOI18N\n exitMenuItem.setName(\"exitMenuItem\"); // NOI18N\n fileMenu.add(exitMenuItem);\n\n menuBar.add(fileMenu);\n\n helpMenu.setText(resourceMap.getString(\"helpMenu.text\")); // NOI18N\n helpMenu.setName(\"helpMenu\"); // NOI18N\n\n aboutMenuItem.setAction(actionMap.get(\"showAboutBox\")); // NOI18N\n aboutMenuItem.setName(\"aboutMenuItem\"); // NOI18N\n helpMenu.add(aboutMenuItem);\n\n menuBar.add(helpMenu);\n\n statusPanel.setName(\"statusPanel\"); // NOI18N\n\n statusPanelSeparator.setName(\"statusPanelSeparator\"); // NOI18N\n\n statusMessageLabel.setName(\"statusMessageLabel\"); // NOI18N\n\n statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n statusAnimationLabel.setName(\"statusAnimationLabel\"); // NOI18N\n\n progressBar.setName(\"progressBar\"); // NOI18N\n\n coordinateLabel.setText(resourceMap.getString(\"coordinateLabel.text\")); // NOI18N\n coordinateLabel.setName(\"coordinateLabel\"); // NOI18N\n\n javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);\n statusPanel.setLayout(statusPanelLayout);\n statusPanelLayout.setHorizontalGroup(\n statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 573, Short.MAX_VALUE)\n .addGroup(statusPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(coordinateLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(statusMessageLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 377, Short.MAX_VALUE)\n .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(statusAnimationLabel)\n .addContainerGap())\n );\n statusPanelLayout.setVerticalGroup(\n statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(statusPanelLayout.createSequentialGroup()\n .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(statusPanelLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)\n .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(statusMessageLabel)\n .addComponent(statusAnimationLabel)\n .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(3, 3, 3))\n .addGroup(statusPanelLayout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(coordinateLabel)\n .addContainerGap())))\n );\n\n openFileChooser.setName(\"openFileChooser\"); // NOI18N\n\n saveFileChooser.setDialogType(javax.swing.JFileChooser.SAVE_DIALOG);\n saveFileChooser.setName(\"saveFileChooser\"); // NOI18N\n\n colorChooser.setName(\"colorChooser\"); // NOI18N\n\n setComponent(mainPanel);\n setMenuBar(menuBar);\n setStatusBar(statusPanel);\n }", "title": "" }, { "docid": "726cc4aa3d1460fb01ca5af902c6ae68", "score": "0.5850493", "text": "public interface SelectionRenderer {\n /** Test if the given figure is currently rendered selected.\n */\n public abstract boolean isRenderedSelected(Figure f);\n\n /** Set the rendering of the figure as deselected.\n * If the figure is not rendered selected, do nothing.\n */\n public abstract void renderDeselected(Figure f);\n\n /** Set the rendering of the figure as selected. If the figure is\n * already rendered that way, update the rendering to reflect\n * the figure's current position and state.\n */\n public abstract void renderSelected(Figure f);\n}", "title": "" }, { "docid": "11830f9468d15270c86272c0e0e7093e", "score": "0.5843393", "text": "@Override\n public void mouseClicked(MouseEvent e) {\n if (drawrect != 0) return;\n drawrect = 1;\n locx = e.getX ();\n locy = e.getY ();\n DRectModel model = new DRectModel ( locx, locy, 50, 80, Color.BLACK );\n Color color = pencilcolorchoosed;\n// while (color == null || color.equals ( Color.white )) {\n// JOptionPane.showMessageDialog ( null, \"please choose a valid color!\", \"Error\", JOptionPane.INFORMATION_MESSAGE );\n// color = JColorChooser.showDialog ( jPanel, \"Set Color\", model.getColor () );\n// }\n int ret = JOptionPane.showConfirmDialog ( null, \"Filled Shape?\", \"Please choose an option\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE );\n if (ret == JOptionPane.YES_OPTION)\n model.setHollow ( false );\n else\n model.setHollow ( true );\n String id = canvas.addShape ( model, null );\n canvas.recolorShape ( color );\n canvas.repaint ();\n// drawModel ( model, color, null );\n try {\n servercomInter.pubishAddModel ( id, model, color );\n } catch (RemoteException ex) {\n ex.printStackTrace ();\n }\n }", "title": "" }, { "docid": "d9597bc873abd88f626b9fe6d0c60abc", "score": "0.5831794", "text": "abstract void setupCurrentFramePaint(Paint paint);", "title": "" }, { "docid": "578de9ce820aee312f351c492e9f5585", "score": "0.5821992", "text": "private void setUp()\r\n {\r\n my_thickness = 1;\r\n final AnActionListener listener = new AnActionListener();\r\n addMouseMotionListener(listener);\r\n addMouseListener(listener);\r\n setPreferredSize(DEFAULT_SIZE);\r\n setBackground(DEFAULT_COLOR);\r\n my_selected_name = PENCIL;\r\n my_pencil = new GeneralPath();\r\n }", "title": "" }, { "docid": "918647c1f238b7a5681295b8040ca50e", "score": "0.5820546", "text": "@Override\n public void initGUIControls()\n {\n \n // WE'LL USE AND REUSE THESE FOR LOADING STUFF\n BufferedImage img;\n float x, y;\n SpriteType sT;\n Sprite s;\n \n \n // FIRST PUT THE ICON IN THE WINDOW\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imgPath = props.getProperty(PathXPropertyType.PATH_IMG);\n String windowIconFile = props.getProperty(PathXPropertyType.IMAGE_WINDOW_ICON);\n img = loadImage(imgPath + windowIconFile);\n window.setIconImage(img);\n \n // CONSTRUCT THE PANEL WHERE WE'LL DRAW EVERYTHING\n canvas = new PathXPanel(this, (PathXDataModel)data);\n \n Viewport viewport = ((PathXDataModel)data).getVport2();\n \n \n // LOAD THE BACKGROUNDS, WHICH ARE GUI DECOR\n currentScreenState = MENU_SCREEN_STATE;\n img = loadImage(imgPath + props.getProperty(PathXPropertyType.IMAGE_BACKGROUND_MENU));\n sT = new SpriteType(BACKGROUND_TYPE);\n sT.addState(MENU_SCREEN_STATE, img);\n \n img = loadImageWithColorKey(imgPath + props.getProperty(PathXPropertyType.IMAGE_BACKGROUND_GAME), COLOR_IMGAE);\n sT.addState(GAME_SCREEN_STATE, img);\n \n img = loadImage(imgPath + props.getProperty(PathXPropertyType.IMAGE_SETTINGS_WINDOW));\n sT.addState(GAME_SETTINGS_STATE, img);\n \n \n img = loadImage(imgPath + props.getProperty(PathXPropertyType.IMAGE_BACKGROUND_GREEN));\n sT.addState(GAME_LEVEL_STATE, img);\n \n \n s = new Sprite(sT, 0, 0, 0, 0, MENU_SCREEN_STATE);\n guiDecor.put(BACKGROUND_TYPE, s);\n \n \n data.getViewport().initViewportMargins();\n //Add LEVEL SELECT MAP\n \n // ADD A BUTTON FOR EACH LEVEL AVAILABLE\n ArrayList<String> menuButton = props.getPropertyOptionsList(PathXPropertyType.HOME_SCREEN_IMAGE_OPTIONS);\n ArrayList<String> menuMouseOverImageNames = props.getPropertyOptionsList(PathXPropertyType.HOME_SCREEN_MOUSE_OVER_IMAGE_OPTIONS);\n float totalWidth = menuButton.size() * (LEVEL_BUTTON_WIDTH + LEVEL_BUTTON_MARGIN) - LEVEL_BUTTON_MARGIN;\n viewport = data.getViewport();\n x = (viewport.getScreenWidth() - totalWidth)/2.0f;\n for (int i = 0; i < menuButton.size(); i++)\n {\n sT = new SpriteType(LEVEL_SELECT_BUTTON_TYPE);\n img = loadImageWithColorKey(imgPath + menuButton.get(i), COLOR_KEY);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n img = loadImageWithColorKey(imgPath + menuMouseOverImageNames.get(i), COLOR_KEY);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, x, LEVEL_BUTTON_Y, 0, 0, PathXCarState.VISIBLE_STATE.toString());\n guiButtons.put(menuButton.get(i), s);\n guiButtons.put(menuMouseOverImageNames.get(i), s);\n x += LEVEL_BUTTON_WIDTH + LEVEL_BUTTON_MARGIN;\n }\n \n //ADD SPECIAL BUTTONS\n ArrayList<String> specialButton = props.getPropertyOptionsList(PathXPropertyType.SPECIAL_IMAGE_OPTIONS1);\n totalWidth = specialButton.size() * (SPECIAL_BUTTON_WIDTH + SPECIAL_BUTTON_MARGIN) - SPECIAL_BUTTON_MARGIN;\n viewport = data.getViewport();\n x = 17;//(viewport.getScreenWidth() - totalWidth)/2.0f;\n for (int i = 0; i < specialButton.size(); i++)\n {\n sT = new SpriteType(SPECIAL_SELECT_BUTTON_TYPE);\n img = loadImageWithColorKey(imgPath + specialButton.get(i), COLOR_KEY);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n // img = loadImageWithColorKey(imgPath + menuMouseOverImageNames.get(i), COLOR_KEY);\n //sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, x, SPECIAL_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(specialButton.get(i), s);\n // guiButtons.put(menuMouseOverImageNames.get(i), s);\n x += SPECIAL_BUTTON_WIDTH + SPECIAL_BUTTON_MARGIN;\n }\n ArrayList<String> specialButton2 = props.getPropertyOptionsList(PathXPropertyType.SPECIAL_IMAGE_OPTIONS2);\n totalWidth = specialButton2.size() * (SPECIAL_BUTTON_WIDTH + SPECIAL_BUTTON_MARGIN) - SPECIAL_BUTTON_MARGIN;\n viewport = data.getViewport();\n x = 17;//(viewport.getScreenWidth() - totalWidth)/2.0f;\n for (int i = 0; i < specialButton2.size(); i++)\n {\n sT = new SpriteType(SPECIAL_SELECT_BUTTON_TYPE);\n img = loadImageWithColorKey(imgPath + specialButton2.get(i), COLOR_KEY);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n // img = loadImageWithColorKey(imgPath + menuMouseOverImageNames.get(i), COLOR_KEY);\n //sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, x, SPECIAL_BUTTON_Y2, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(specialButton2.get(i), s);\n // guiButtons.put(menuMouseOverImageNames.get(i), s);\n x += SPECIAL_BUTTON_WIDTH + SPECIAL_BUTTON_MARGIN;\n }\n ArrayList<String> specialButton3 = props.getPropertyOptionsList(PathXPropertyType.SPECIAL_IMAGE_OPTIONS3);\n totalWidth = specialButton3.size() * (SPECIAL_BUTTON_WIDTH + SPECIAL_BUTTON_MARGIN) - SPECIAL_BUTTON_MARGIN;\n viewport = data.getViewport();\n x = 17;//(viewport.getScreenWidth() - totalWidth)/2.0f;\n for (int i = 0; i < specialButton3.size(); i++)\n {\n sT = new SpriteType(SPECIAL_SELECT_BUTTON_TYPE);\n img = loadImageWithColorKey(imgPath + specialButton3.get(i), COLOR_KEY);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n // img = loadImageWithColorKey(imgPath + menuMouseOverImageNames.get(i), COLOR_KEY);\n //sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, x, SPECIAL_BUTTON_Y3, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(specialButton3.get(i), s);\n // guiButtons.put(menuMouseOverImageNames.get(i), s);\n x += SPECIAL_BUTTON_WIDTH + SPECIAL_BUTTON_MARGIN;\n }\n ArrayList<String> specialButton4 = props.getPropertyOptionsList(PathXPropertyType.SPECIAL_IMAGE_OPTIONS4);\n totalWidth = specialButton4.size() * (SPECIAL_BUTTON_WIDTH + SPECIAL_BUTTON_MARGIN) - SPECIAL_BUTTON_MARGIN;\n viewport = data.getViewport();\n x = 17;//(viewport.getScreenWidth() - totalWidth)/2.0f;\n for (int i = 0; i < specialButton4.size(); i++)\n {\n sT = new SpriteType(SPECIAL_SELECT_BUTTON_TYPE);\n img = loadImageWithColorKey(imgPath + specialButton4.get(i), COLOR_KEY);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n // img = loadImageWithColorKey(imgPath + menuMouseOverImageNames.get(i), COLOR_KEY);\n //sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, x, SPECIAL_BUTTON_Y4, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(specialButton4.get(i), s);\n // guiButtons.put(menuMouseOverImageNames.get(i), s);\n x += SPECIAL_BUTTON_WIDTH + SPECIAL_BUTTON_MARGIN;\n }\n \n //The PUT THE X BUTTON\n String exitButton = props.getProperty(PathXPropertyType.HOME_SCREEN_IMAGE_EXIT);\n sT = new SpriteType(EXIT_GAME_BUTTON_TYPE);\n img = loadImage(imgPath + exitButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, EXIT_BUTTON_X, EXIT_BUTTON_Y, 0, 0, PathXCarState.VISIBLE_STATE.toString());\n guiButtons.put(EXIT_GAME_BUTTON_TYPE, s);\n \n \n //The PUT THE START BUTTON\n String startButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_START);\n sT = new SpriteType(GAME_START_BUTTON_TYPE);\n img = loadImage(imgPath + startButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, START_BUTTON_X, START_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_START_BUTTON_TYPE, s);\n \n //The PUT THE HOME BUTTON\n String homeButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_HOME);\n sT = new SpriteType(GAME_HOME_BUTTON_TYPE);\n img = loadImage(imgPath + homeButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, HOME_BUTTON_X, HOME_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_HOME_BUTTON_TYPE, s);\n \n String homeButtonSetting = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_HOME);\n sT = new SpriteType(GAME_HOME_BUTTON_SETTING_TYPE);\n img = loadImage(imgPath + homeButtonSetting);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, HOME_BUTTON_SETTING_X, HOME_BUTTON_SETTING_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_HOME_BUTTON_SETTING_TYPE, s);\n String settingHomeMouseOver = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_HOME_MOUSE_OVER);\n img = loadImage(imgPath + settingHomeMouseOver);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, HOME_BUTTON_SETTING_X, HOME_BUTTON_SETTING_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_HOME_BUTTON_SETTING_TYPE, s);\n \n //The PUT THE SETTINGS X BUTTON\n String settingsXButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_X);\n sT = new SpriteType(GAME_SETTINGS_X_BUTTON_TYPE);\n img = loadImage(imgPath + settingsXButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, HOME_SETTINGS_X_BUTTON_X, HOME_SETTINGS_X_BUTTON_Y, 0, 0, PathXCarState.VISIBLE_STATE.toString());\n guiButtons.put(GAME_SETTINGS_X_BUTTON_TYPE, s);\n String settingXMouseOver = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_X_MOUSE_OVER);\n img = loadImage(imgPath + settingXMouseOver);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, HOME_SETTINGS_X_BUTTON_X, HOME_SETTINGS_X_BUTTON_Y, 0, 0, PathXCarState.VISIBLE_STATE.toString());\n guiButtons.put(GAME_SETTINGS_X_BUTTON_TYPE, s);\n \n //The PUT THE HOME X BUTTON\n String homeXButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_X);\n sT = new SpriteType(GAME_X_BUTTON_TYPE);\n img = loadImage(imgPath + homeXButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, HOME_X_BUTTON_X, HOME_X_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_X_BUTTON_TYPE, s);\n \n //The PUT THE NORTH TOOLBAR\n String northToolBar = props.getProperty(PathXPropertyType.IMAGE_NORTH_TOOL_BAR);\n sT = new SpriteType(GAME_TOOLBAR_TYPE);\n img = loadImage(imgPath + northToolBar);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, TOOLBAR_X, TOOLBAR_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiDecor.put(GAME_TOOLBAR_TYPE, s);\n \n //THE LEVEL SELECT MAP\n String levelSelect = props.getProperty(PathXPropertyType.IMAGE_BACKGROUND_GAME_SELECT);\n sT = new SpriteType(LEVEL_SELECT_BACKGROUND_TYPE);\n img = loadImage(imgPath + levelSelect);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, 0, 200, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiDecor.put(LEVEL_SELECT_BACKGROUND_TYPE, s);\n viewport = ((PathXDataModel)data).getVport2();\n viewport.setGameWorldSize(img.getWidth(), img.getHeight());\n viewport.setNorthPanelHeight(100);\n viewport.setViewportSize(740, 620);\n \n viewport.setLevelDimensions(img.getWidth(null), img.getHeight(null));\n \n //The PUT THE LEFT SCROLL BUTTON\n String scrollLeftButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_SCROLL_LEFT);\n sT = new SpriteType(GAME_SCROLL_LEFT_BUTTON_TYPE);\n img = loadImage(imgPath + scrollLeftButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, SCROLL_LEFT_BUTTON_X, SCROLL_LEFT_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SCROLL_LEFT_BUTTON_TYPE, s);\n String scrollLeftMouseOver = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_SCROLL_LEFT_MOUSE_OVER);\n img = loadImage(imgPath + scrollLeftMouseOver);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, SCROLL_LEFT_BUTTON_X, SCROLL_LEFT_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SCROLL_LEFT_BUTTON_TYPE, s);\n \n //The PUT THE RIGHT SCROLL BUTTON\n String scrollRightButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_SCROLL_RIGHT);\n sT = new SpriteType(GAME_SCROLL_RIGHT_BUTTON_TYPE);\n img = loadImage(imgPath + scrollRightButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, SCROLL_RIGHT_BUTTON_X, SCROLL_RIGHT_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SCROLL_RIGHT_BUTTON_TYPE, s);\n String scrollRightMouseOver = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_SCROLL_RIGHT_MOUSE_OVER);\n img = loadImage(imgPath + scrollRightMouseOver);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, SCROLL_RIGHT_BUTTON_X, SCROLL_RIGHT_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SCROLL_RIGHT_BUTTON_TYPE, s);\n \n \n //The PUT THE UP SCROLL BUTTON\n String scrollUpButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_SCROLL_UP);\n sT = new SpriteType(GAME_SCROLL_UP_BUTTON_TYPE);\n img = loadImage(imgPath + scrollUpButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, SCROLL_UP_BUTTON_X, SCROLL_UP_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SCROLL_UP_BUTTON_TYPE, s);\n String scrollUPMouseOver = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_SCROLL_UP_MOUSE_OVER);\n img = loadImage(imgPath + scrollUPMouseOver);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, SCROLL_UP_BUTTON_X, SCROLL_UP_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SCROLL_UP_BUTTON_TYPE, s);\n \n //The PUT THE DOWN SCROLL BUTTON\n String scrollDownButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_SCROLL_DOWN);\n sT = new SpriteType(GAME_SCROLL_DOWN_BUTTON_TYPE);\n img = loadImage(imgPath + scrollDownButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, SCROLL_DOWN_BUTTON_X, SCROLL_DOWN_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SCROLL_DOWN_BUTTON_TYPE, s);\n String scrollDownMouseOver = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_SCROLL_DOWN_MOUSE_OVER);\n img = loadImage(imgPath + scrollDownMouseOver);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, SCROLL_DOWN_BUTTON_X, SCROLL_DOWN_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SCROLL_DOWN_BUTTON_TYPE, s);\n \n //The PUT THE PAUSE SCROLL BUTTON\n String pauseButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_PAUSE);\n sT = new SpriteType(GAME_SCROLL_PAUSE_BUTTON_TYPE);\n img = loadImage(imgPath + pauseButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, SCROLL_PAUSE_BUTTON_X, SCROLL_PAUSE_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SCROLL_PAUSE_BUTTON_TYPE, s);\n \n \n \n //The PUT THE QUIT BUTTON\n String closeButton = props.getProperty(PathXPropertyType.HELP_SCREEN_IMAGE_BUTTON_QUIT);\n sT = new SpriteType(HELP_QUIT_TYPE);\n img = loadImage(imgPath + closeButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, QUIT_BUTTON_X, QUIT_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(HELP_QUIT_TYPE, s);\n String closeButtonMouseOver = props.getProperty(PathXPropertyType.HELP_SCREEN_IMAGE_BUTTON_QUIT_MOUSE_OVER);\n img = loadImage(imgPath + closeButtonMouseOver);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, QUIT_BUTTON_X, QUIT_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(HELP_QUIT_TYPE, s);\n \n \n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE1);\n img = loadImage(imgPath + levelGreenButton);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X1, LEVEL_OFFSET_LOCATION_Y1, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE1, s); \n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X1, LEVEL_OFFSET_LOCATION_Y1, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE1, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE1);\n img = loadImage(imgPath + levelRedButton);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X1, LEVEL_OFFSET_LOCATION_Y1, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE1, s);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X1, LEVEL_OFFSET_LOCATION_Y1, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE1, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE1);\n img = loadImage(imgPath + levelWhiteButton);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X1, LEVEL_OFFSET_LOCATION_Y1, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE1, s);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X1, LEVEL_OFFSET_LOCATION_Y1, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE1, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton2 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE2);\n img = loadImage(imgPath + levelGreenButton2);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X2, LEVEL_OFFSET_LOCATION_Y2, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE2, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton2 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE2);\n img = loadImage(imgPath + levelRedButton2);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X2, LEVEL_OFFSET_LOCATION_Y2, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE2, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton2 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE2);\n img = loadImage(imgPath + levelWhiteButton2);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X2, LEVEL_OFFSET_LOCATION_Y2, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE2, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton3 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE3);\n img = loadImage(imgPath + levelGreenButton3);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X3, LEVEL_OFFSET_LOCATION_Y3, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE3, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton3 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE3);\n img = loadImage(imgPath + levelRedButton3);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X3, LEVEL_OFFSET_LOCATION_Y3, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE3, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton3 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE3);\n img = loadImage(imgPath + levelWhiteButton3);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X3, LEVEL_OFFSET_LOCATION_Y3, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE3, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton4 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE4);\n img = loadImage(imgPath + levelGreenButton4);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X4, LEVEL_OFFSET_LOCATION_Y4, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE4, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton4 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE4);\n img = loadImage(imgPath + levelRedButton4);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X4, LEVEL_OFFSET_LOCATION_Y4, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE4, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton4 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE4);\n img = loadImage(imgPath + levelWhiteButton4);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X4, LEVEL_OFFSET_LOCATION_Y4, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE4, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton5 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE5);\n img = loadImage(imgPath + levelGreenButton5);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X5, LEVEL_OFFSET_LOCATION_Y5, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE5, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton5 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE5);\n img = loadImage(imgPath + levelRedButton5);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X5, LEVEL_OFFSET_LOCATION_Y5, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE5, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton5 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE5);\n img = loadImage(imgPath + levelWhiteButton5);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X5, LEVEL_OFFSET_LOCATION_Y5, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE5, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton6 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE6);\n img = loadImage(imgPath + levelGreenButton6);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X6, LEVEL_OFFSET_LOCATION_Y6, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE6, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton6 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE6);\n img = loadImage(imgPath + levelRedButton6);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X6, LEVEL_OFFSET_LOCATION_Y6, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE6, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton6 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE6);\n img = loadImage(imgPath + levelWhiteButton6);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X6, LEVEL_OFFSET_LOCATION_Y6, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE6, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton7 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE7);\n img = loadImage(imgPath + levelGreenButton7);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X7, LEVEL_OFFSET_LOCATION_Y7, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE7, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton7 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE7);\n img = loadImage(imgPath + levelRedButton7);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X7, LEVEL_OFFSET_LOCATION_Y7, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE7, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton7 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE7);\n img = loadImage(imgPath + levelWhiteButton7);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X7, LEVEL_OFFSET_LOCATION_Y7, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE7, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton8 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE8);\n img = loadImage(imgPath + levelGreenButton8);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X8, LEVEL_OFFSET_LOCATION_Y8, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE8, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton8 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE8);\n img = loadImage(imgPath + levelRedButton8);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X8, LEVEL_OFFSET_LOCATION_Y8, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE8, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton8 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE8);\n img = loadImage(imgPath + levelWhiteButton8);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X8, LEVEL_OFFSET_LOCATION_Y8, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE8, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton9 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE9);\n img = loadImage(imgPath + levelGreenButton9);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X9, LEVEL_OFFSET_LOCATION_Y9, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE9, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton9 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE9);\n img = loadImage(imgPath + levelRedButton9);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X9, LEVEL_OFFSET_LOCATION_Y9, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE9, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton9 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE9);\n img = loadImage(imgPath + levelWhiteButton9);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X9, LEVEL_OFFSET_LOCATION_Y9, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE9, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton10 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE10);\n img = loadImage(imgPath + levelGreenButton10);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X10, LEVEL_OFFSET_LOCATION_Y10, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE10, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton10 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE10);\n img = loadImage(imgPath + levelRedButton10);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X10, LEVEL_OFFSET_LOCATION_Y10, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE10, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton10 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE10);\n img = loadImage(imgPath + levelWhiteButton10);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X10, LEVEL_OFFSET_LOCATION_Y10, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE10, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton11 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE11);\n img = loadImage(imgPath + levelGreenButton11);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X11, LEVEL_OFFSET_LOCATION_Y11, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE11, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton11 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE11);\n img = loadImage(imgPath + levelRedButton11);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X11, LEVEL_OFFSET_LOCATION_Y11, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE11, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton11 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE11);\n img = loadImage(imgPath + levelWhiteButton11);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X11, LEVEL_OFFSET_LOCATION_Y11, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE11, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton12 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE12);\n img = loadImage(imgPath + levelGreenButton12);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X12, LEVEL_OFFSET_LOCATION_Y12, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE12, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton12 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE12);\n img = loadImage(imgPath + levelRedButton12);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X12, LEVEL_OFFSET_LOCATION_Y12, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE12, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton12 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE12);\n img = loadImage(imgPath + levelWhiteButton12);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X12, LEVEL_OFFSET_LOCATION_Y12, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE12, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton13 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE13);\n img = loadImage(imgPath + levelGreenButton13);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X13, LEVEL_OFFSET_LOCATION_Y13, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE13, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton13 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE13);\n img = loadImage(imgPath + levelRedButton13);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X13, LEVEL_OFFSET_LOCATION_Y13, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE13, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton13 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE13);\n img = loadImage(imgPath + levelWhiteButton13);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X13, LEVEL_OFFSET_LOCATION_Y13, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE13, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton14 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE14);\n img = loadImage(imgPath + levelGreenButton14);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X14, LEVEL_OFFSET_LOCATION_Y14, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE14, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton14 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE14);\n img = loadImage(imgPath + levelRedButton14);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X14, LEVEL_OFFSET_LOCATION_Y14, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE14, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton14 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE14);\n img = loadImage(imgPath + levelWhiteButton14);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X14, LEVEL_OFFSET_LOCATION_Y14, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE14, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton15 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE15);\n img = loadImage(imgPath + levelGreenButton15);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X15, LEVEL_OFFSET_LOCATION_Y15, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE15, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton15 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE15);\n img = loadImage(imgPath + levelRedButton15);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X15, LEVEL_OFFSET_LOCATION_Y15, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE15, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton15 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE15);\n img = loadImage(imgPath + levelWhiteButton15);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X15, LEVEL_OFFSET_LOCATION_Y15, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE15, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton16 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE16);\n img = loadImage(imgPath + levelGreenButton16);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X16, LEVEL_OFFSET_LOCATION_Y16, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE16, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton16 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE16);\n img = loadImage(imgPath + levelRedButton16);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X16, LEVEL_OFFSET_LOCATION_Y16, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE16, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton16 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE16);\n img = loadImage(imgPath + levelWhiteButton16);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X16, LEVEL_OFFSET_LOCATION_Y16, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE16, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton17 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE17);\n img = loadImage(imgPath + levelGreenButton17);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X17, LEVEL_OFFSET_LOCATION_Y17, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE17, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton17 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE17);\n img = loadImage(imgPath + levelRedButton17);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X17, LEVEL_OFFSET_LOCATION_Y17, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE17, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton17 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE17);\n img = loadImage(imgPath + levelWhiteButton17);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X17, LEVEL_OFFSET_LOCATION_Y17, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE17, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton18 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE18);\n img = loadImage(imgPath + levelGreenButton18);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X18, LEVEL_OFFSET_LOCATION_Y18, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE18, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton18 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE18);\n img = loadImage(imgPath + levelRedButton18);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X18, LEVEL_OFFSET_LOCATION_Y18, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE18, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton18 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE18);\n img = loadImage(imgPath + levelWhiteButton18);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X18, LEVEL_OFFSET_LOCATION_Y18, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE18, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton19 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE19);\n img = loadImage(imgPath + levelGreenButton19);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X19, LEVEL_OFFSET_LOCATION_Y19, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE19, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton19 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE19);\n img = loadImage(imgPath + levelRedButton19);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X19, LEVEL_OFFSET_LOCATION_Y19, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE19, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton19 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE19);\n img = loadImage(imgPath + levelWhiteButton19);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X19, LEVEL_OFFSET_LOCATION_Y19, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE19, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelGreenButton20 = props.getProperty(PathXPropertyType.GREEN_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_GREEN_TYPE20);\n img = loadImage(imgPath + levelGreenButton20);\n sT.addState(PathXCarState.GREEN_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X20, LEVEL_OFFSET_LOCATION_Y20, 0, 0, PathXCarState.GREEN_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_GREEN_TYPE20, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelRedButton20 = props.getProperty(PathXPropertyType.RED_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_RED_TYPE20);\n img = loadImage(imgPath + levelRedButton20);\n sT.addState(PathXCarState.RED_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X20, LEVEL_OFFSET_LOCATION_Y20, 0, 0, PathXCarState.RED_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_RED_TYPE20, s);\n \n //The PUT THE GREEN LEVEL ICONS BUTTON\n String levelWhiteButton20 = props.getProperty(PathXPropertyType.WHITE_LOCATION);\n sT = new SpriteType(GAME_PLAY_LEVEL_WHITE_TYPE20);\n img = loadImage(imgPath + levelWhiteButton20);\n sT.addState(PathXCarState.WHITE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, LEVEL_OFFSET_LOCATION_X20, LEVEL_OFFSET_LOCATION_Y20, 0, 0, PathXCarState.WHITE_STATE.toString());\n guiButtons.put(GAME_PLAY_LEVEL_WHITE_TYPE20, s);\n \n \n \n for(int i=1; i<21; i++)\n {\n String str = \"GAME_PLAY_LEVEL_WHITE_TYPE\"+i;\n guiButtons.get(str).setState(PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.get(str).setEnabled(false);\n \n str = \"GAME_PLAY_LEVEL_RED_TYPE\"+i;\n guiButtons.get(str).setState(PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.get(str).setEnabled(false);\n \n str = \"GAME_PLAY_LEVEL_GREEN_TYPE\"+i;\n guiButtons.get(str).setState(PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.get(str).setEnabled(false);\n \n \n String HELPDisplay = props.getProperty(PathXPropertyType.IMAGE_HELP_SCREEN);\n sT = new SpriteType(GAME_HELP_SCREEN_STATE);\n img = loadImageWithColorKey(imgPath + HELPDisplay, COLOR_KEY);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n x = (viewport.getScreenWidth()/2) - (img.getWidth(null)/2);\n y = (viewport.getScreenHeight()/2) - (img.getHeight(null)/2);\n s = new Sprite(sT, x+400, y+300, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiDialogs.put(GAME_HELP_SCREEN_STATE, s);\n \n //The PUT THE QUIT BUTTON\n String closeButton2 = props.getProperty(PathXPropertyType.HELP_SCREEN_IMAGE_BUTTON_QUIT);\n sT = new SpriteType(HELP_QUIT_TYPE2);\n img = loadImage(imgPath + closeButton2);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, QUIT_BUTTON_X, QUIT_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(HELP_QUIT_TYPE2, s);\n String closeButtonMouseOver2 = props.getProperty(PathXPropertyType.HELP_SCREEN_IMAGE_BUTTON_QUIT_MOUSE_OVER);\n img = loadImage(imgPath + closeButtonMouseOver2);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, QUIT_BUTTON_X, QUIT_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(HELP_QUIT_TYPE2, s);\n \n //The PUT THE LEAVE TOWN BUTTON\n String leaveButton = props.getProperty(PathXPropertyType.IMAGE_LEAVE_TOWN);\n sT = new SpriteType(LEAVE_TOWN_TYPE);\n img = loadImage(imgPath + leaveButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, QUIT_BUTTON_X+130, QUIT_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(LEAVE_TOWN_TYPE, s);\n String leaveButtonMouseOver = props.getProperty(PathXPropertyType.IMAGE_LEAVE_TOWN_MOUSE_OVER);\n img = loadImage(imgPath + leaveButtonMouseOver);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, QUIT_BUTTON_X+130, QUIT_BUTTON_Y, 0, 0, PathXCarState.VISIBLE_STATE.toString());\n guiButtons.put(LEAVE_TOWN_TYPE, s);\n \n //The PUT THE QUIT BUTTON\n String tryAgainButton = props.getProperty(PathXPropertyType.IMAGE_TRY_AGAIN);\n sT = new SpriteType(TRY_AGAIN_TYPE);\n img = loadImage(imgPath + tryAgainButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n s = new Sprite(sT, QUIT_BUTTON_X-250+80, QUIT_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(TRY_AGAIN_TYPE, s);\n String tryAgainButtonMouseOver = props.getProperty(PathXPropertyType.IMAGE_TRY_AGAIN_MOUSE_OVER);\n img = loadImage(imgPath + tryAgainButtonMouseOver);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n s = new Sprite(sT, QUIT_BUTTON_X-250+130, QUIT_BUTTON_Y, 0, 0, PathXCarState.VISIBLE_STATE.toString());\n guiButtons.put(TRY_AGAIN_TYPE, s);\n \n String emptyDialog = props.getProperty(PathXPropertyType.IMAGE_EMPTY_DIALOG);\n sT = new SpriteType(GAME_DIALOG_STATE);\n img = loadImageWithColorKey(imgPath + emptyDialog, COLOR_KEY);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n x = (viewport.getScreenWidth()/2) - (img.getWidth(null)/2) + 370;\n y = (viewport.getScreenHeight()/2) - (img.getHeight(null)/2) +300;\n s = new Sprite(sT, x, y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiDialogs.put(GAME_DIALOG_STATE, s);\n \n \n //The PUT THE SETTINGS Check BUTTON\n String settingsCheckButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_UNCHECK);\n sT = new SpriteType(GAME_SETTINGS_CHECK_BUTTON_TYPE);\n img = loadImage(imgPath + settingsCheckButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n String settingUncButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_CHECK);\n img = loadImage(imgPath + settingUncButton);\n sT.addState(PathXCarState.SELECTED_STATE.toString(), img);\n s = new Sprite(sT, HOME_SETTINGS_CHECK_BUTTON_X, HOME_SETTINGS_CHECK_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SETTINGS_CHECK_BUTTON_TYPE, s);\n \n \n //The PUT THE SETTINGS Check BUTTON\n String settingsMusicCheckButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_UNCHECK);\n sT = new SpriteType(GAME_SETTINGS_MUSIC_BUTTON_TYPE);\n img = loadImage(imgPath + settingsMusicCheckButton);\n sT.addState(PathXCarState.VISIBLE_STATE.toString(), img);\n sT.addState(PathXCarState.MOUSE_OVER_STATE.toString(), img);\n String settingsMusicUncheckButton = props.getProperty(PathXPropertyType.GAME_SCREEN_IMAGE_BUTTON_CHECK);\n img = loadImage(imgPath + settingsMusicUncheckButton);\n sT.addState(PathXCarState.SELECTED_STATE.toString(), img);\n s = new Sprite(sT, HOME_SETTINGS_MUSIC_BUTTON_X, HOME_SETTINGS_MUSIC_BUTTON_Y, 0, 0, PathXCarState.INVISIBLE_STATE.toString());\n guiButtons.put(GAME_SETTINGS_MUSIC_BUTTON_TYPE, s);\n \n \n \n }\n \n }", "title": "" }, { "docid": "8b0058aa645e23aa919c2788f58b6933", "score": "0.5812933", "text": "public void mouseDragged(MouseEvent e) {\n //Drawing\n if (is_drawing){\n painting_point = new Dot(e.getX(), e.getY());\n is_dragging = true;\n }\n\n //Move\n if (selected && !is_resizing){\n int updated_x = e.getX() - drag_start.x;\n int updated_y = e.getY() - drag_start.y;\n drag_start.x = e.getX();\n drag_start.y = e.getY();\n PaintObject temp = PArray.get(selected_index);\n int type = temp.type;\n switch (type){\n case 1:\n PArray.get(selected_index).line_end1.x += updated_x;\n PArray.get(selected_index).line_end1.y += updated_y;\n PArray.get(selected_index).line_end2.x += updated_x;\n PArray.get(selected_index).line_end2.y += updated_y;\n break;\n case 2:\n PArray.get(selected_index).Rec_SE.x += updated_x;\n PArray.get(selected_index).Rec_SE.y += updated_y;\n PArray.get(selected_index).Rec_NW.x += updated_x;\n PArray.get(selected_index).Rec_NW.y += updated_y;\n PArray.get(selected_index).Rec_SW.x += updated_x;\n PArray.get(selected_index).Rec_SW.y += updated_y;\n PArray.get(selected_index).Rec_NE.x += updated_x;\n PArray.get(selected_index).Rec_NE.y += updated_y;\n break;\n case 3:\n PArray.get(selected_index).Cir_center.x += updated_x;\n PArray.get(selected_index).Cir_center.y += updated_y;\n break;\n }\n }\n\n //Resize\n if (selected && is_resizing){\n switch (resize_index){\n case 1:\n PArray.get(selected_index).line_end1.x = e.getX();\n PArray.get(selected_index).line_end1.y = e.getY();\n break;\n case 2:\n PArray.get(selected_index).line_end2.x = e.getX();\n PArray.get(selected_index).line_end2.y = e.getY();\n break;\n case 3:\n PArray.get(selected_index).Rec_NW.x = e.getX();\n PArray.get(selected_index).Rec_NW.y = e.getY();\n PArray.get(selected_index).Rec_NE.y = e.getY();\n PArray.get(selected_index).Rec_SW.x = e.getX();\n break;\n case 4:\n PArray.get(selected_index).Rec_NE.x = e.getX();\n PArray.get(selected_index).Rec_NE.y = e.getY();\n PArray.get(selected_index).Rec_SE.x = e.getX();\n PArray.get(selected_index).Rec_NW.y = e.getY();\n break;\n case 5:\n PArray.get(selected_index).Rec_SE.x = e.getX();\n PArray.get(selected_index).Rec_SE.y = e.getY();\n PArray.get(selected_index).Rec_NE.x = e.getX();\n PArray.get(selected_index).Rec_SW.y = e.getY();\n break;\n case 6:\n PArray.get(selected_index).Rec_SW.x = e.getX();\n PArray.get(selected_index).Rec_SW.y = e.getY();\n PArray.get(selected_index).Rec_NW.x = e.getX();\n PArray.get(selected_index).Rec_SE.y = e.getY();\n break;\n case 7:\n int x = PArray.get(selected_index).Cir_center.x;\n int y = PArray.get(selected_index).Cir_center.y;\n int width = Math.abs(x - e.getX());\n int height = Math.abs(y - e.getY());\n if (width > height) {\n PArray.get(selected_index).Cir_r = width;\n }\n else {\n PArray.get(selected_index).Cir_r = height;\n }\n break;\n }\n }\n\n repaint();\n }", "title": "" }, { "docid": "45fe3c23ba2e8ba4301dae5196612b3a", "score": "0.5804901", "text": "@Override\n public void mouseClicked(MouseEvent e) {\n if (drawoval != 0) return;\n drawoval = 1;\n locx = e.getX ();\n locy = e.getY ();\n DOvalModel model = new DOvalModel ( locx, locy, 80, 50, Color.BLACK );\n Color color = pencilcolorchoosed;\n// while (color == null || color.equals ( Color.white )) {\n// JOptionPane.showMessageDialog ( null, \"please choose a valid color!\", \"Error\", JOptionPane.INFORMATION_MESSAGE );\n// color = JColorChooser.showDialog ( jPanel, \"Set Color\", model.getColor () );\n// }\n int ret = JOptionPane.showConfirmDialog ( null, \"Filled Shape?\", \"Please choose an option\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE );\n if (ret == JOptionPane.YES_OPTION)\n model.setHollow ( false );\n else\n model.setHollow ( true );\n\n String id = canvas.addShape ( model, null );\n canvas.recolorShape ( color );\n canvas.repaint ();\n// drawModel ( model, color, null );\n try {\n// System.out.println (\"(\"+model.getX ()+\",\"+model.getY ()+\")\");\n servercomInter.pubishAddModel ( id, model, color );\n } catch (RemoteException ex) {\n ex.printStackTrace ();\n }\n\n\n }", "title": "" }, { "docid": "0c25e66aa9647c4fa3b88772f81463c1", "score": "0.5801309", "text": "private void addEventHandler() {\r\n // allow mouse events to be trapped ...\r\n // so we can double-click on it to change the title string\r\n this.enableEvents(AWTEvent.COMPONENT_EVENT_MASK | AWTEvent.MOUSE_EVENT_MASK);\r\n\r\n this.addMouseMotionListener(graphAxisData);\r\n this.addMouseListener(this);\r\n // request keyboard focus so we can trap key events\r\n this.requestFocus();\r\n\r\n // register the popup with this graphDataset\r\n this.add(popup);\r\n\r\n JMenuItem menuItem;\r\n\r\n // create a sub-menu for Scale changing\r\n JMenu Scale = (JMenu) popup.add(new JMenu(\"Data Scale\"));\r\n\r\n ButtonGroup scaleGroup = new ButtonGroup();\r\n linearRadioButton = (JRadioButtonMenuItem) Scale.add(new JRadioButtonMenuItem(\"Linear\"));\r\n scaleGroup.add(linearRadioButton);\r\n linearRadioButton.addActionListener(this);\r\n linearRadioButton.setToolTipText(\"Linear Scale\");\r\n\r\n log10RadioButton = (JRadioButtonMenuItem) Scale.add(new JRadioButtonMenuItem(\"Log to Base 10\"));\r\n scaleGroup.add(log10RadioButton);\r\n log10RadioButton.addActionListener(this);\r\n log10RadioButton.setToolTipText(\"Log to Base 10 Scale\");\r\n\r\n // logERadioButton = (JRadioButtonMenuItem) Scale.add (new JRadioButtonMenuItem (\"Log to Base\r\n // e\") );\r\n // scaleGroup.add (logERadioButton);\r\n // logERadioButton.addActionListener(this);\r\n // logERadioButton.setToolTipText (\"Log to Base E (Natural Log) Scale\");\r\n\r\n popup.addSeparator();\r\n\r\n // linear scale is always the first scale, so set it selected first\r\n linearRadioButton.setSelected(true);\r\n\r\n // Create the popup menu using a loop.\r\n // \"Action commands\" are left distinct from the menu \"labels\"\r\n String[] labels = new String[] {\"Reset Axes Range\", \"Refresh plot\", \"Redraw plot\"};\r\n\r\n String[] commands = new String[] {RESET_AXES_COMMAND, REPAINT_COMMAND, REDRAW_COMMAND};\r\n\r\n for (int i = 0; i < labels.length; i++) {\r\n menuItem = (JMenuItem) popup.add(new JMenuItem(labels[i]));\r\n menuItem.setActionCommand(commands[i]);\r\n menuItem.addActionListener(this);\r\n }\r\n\r\n popup.addSeparator();\r\n\r\n gridLinesChkBox =\r\n (JCheckBoxMenuItem) popup.add(new JCheckBoxMenuItem(\"Show/Hide gridlines\", showGridLines));\r\n gridLinesChkBox.addActionListener(this);\r\n }", "title": "" }, { "docid": "d55dab39cdb1690786d368c1001139d3", "score": "0.5775901", "text": "public void setGraphicInfo(GraphicInfo grInfo);", "title": "" }, { "docid": "64b325284e7504b930fb354fff174817", "score": "0.57577664", "text": "public interface IEntityFigure extends IFigure {\n\n\t/**\n\t * Refreshes the EntityFigures <i>visuals</i>. This method is called by the\n\t * org.imixs.eclipse.workflowmodeler.ui.editparts in response to notifications from the model. \n\t \n\t */\n\tpublic void refreshVisuals(AbstractWorkflowEntity workflowEntity);\n\t\n\t\n}", "title": "" }, { "docid": "1a81247217c2e42eaa805263e34b6739", "score": "0.5744633", "text": "@Override\r\n public void drawComponent() {\n\r\n }", "title": "" }, { "docid": "5647f4b2480f1383b9353bce8cde4137", "score": "0.5737563", "text": "private static void createAndShowGUI()\r\n {\r\n JFrame f = new JFrame(\"Viewer\");\r\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f.getContentPane().setLayout(new BorderLayout());\r\n\r\n JLabel usageLabel = new JLabel(\"<html>\"\r\n + \"Right mouse drags: Translate<br> \"\r\n + \"Left mouse drags: Create selection shape<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +shift: remove from selection<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +ctrl: add to selection<br>\"\r\n + \"Left mouse clicks: Select single<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +ctrl: toggle single selection<br>\"\r\n + \"Mouse wheel: Zoom uniformly<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +shift: zoom along x<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +ctrl: zoom along y<br>\"\r\n + \"</html>\");\r\n f.getContentPane().add(usageLabel, BorderLayout.NORTH);\r\n\r\n\r\n // Create a viewer, with mouse controls where the rotation is\r\n // disabled (left clicks are intended for the selection here)\r\n Viewer viewer = new Viewer();\r\n viewer.setFlippedVertically(true);\r\n viewer.setMouseControl(\r\n MouseControls.createDefault(viewer, false, true));\r\n\r\n // Create the selection model\r\n SelectionModel<Integer> selectionModel = SelectionModels.create();\r\n selectionModel.addSelectionListener(\r\n new LoggingSelectionListener<Integer>());\r\n\r\n // Create the scatter chart\r\n int numPoints = 40;\r\n Random random = new Random(0);\r\n List<Point2D> points = new ArrayList<Point2D>();\r\n for (int i = 0; i < numPoints; i++)\r\n {\r\n double x = random.nextDouble();\r\n double y = random.nextDouble();\r\n Point2D p = new Point2D.Double(x, y);\r\n points.add(p);\r\n }\r\n BasicScatterChart scatterChart = ScatterCharts.create(points, \r\n null, Color.GREEN, new BasicStroke(1.0f), TickShapes.square(8));\r\n\r\n // Set the function that determines whether the points will be\r\n // filled, based on their selection state\r\n scatterChart.setFillPaintFunction(i -> \r\n {\r\n if (selectionModel.isSelected(i))\r\n {\r\n return Color.GREEN;\r\n }\r\n return null;\r\n });\r\n \r\n // Establish the connection between the viewer, the scatter chart\r\n // and the selection model using a GlyphSelectionHandler: \r\n GlyphSelectionHandler<ScatterChart, Integer> selectionHandler = \r\n GlyphSelectionHandlers.createDefaultScatterChart();\r\n selectionHandler.connect(viewer, selectionModel);\r\n selectionHandler.setGlyph(scatterChart);\r\n \r\n\r\n CoordinateSystemPainter coordinateSystemPainter = \r\n new CoordinateSystemPainter();\r\n coordinateSystemPainter.setGridColorX(null);\r\n coordinateSystemPainter.setGridColorY(null);\r\n coordinateSystemPainter.setAxisRangeX(0.0, 1.0);\r\n coordinateSystemPainter.setAxisRangeY(0.0, 1.0);\r\n viewer.addPainter(coordinateSystemPainter);\r\n \r\n ScatterChartPainter scatterChartPainter = new ScatterChartPainter();\r\n viewer.addPainter(Painters.create(scatterChartPainter, scatterChart));\r\n viewer.setDisplayedWorldArea(-1, -1, 3, 3);\r\n\r\n f.getContentPane().add(viewer, BorderLayout.CENTER);\r\n f.setSize(800, 800);\r\n f.setLocationRelativeTo(null);\r\n f.setVisible(true);\r\n }", "title": "" }, { "docid": "cc4335d30439f2237230fd98f536bb80", "score": "0.5732683", "text": "@Override\n\tprotected void paintComponent(Graphics g)\n\t{\n\t\tsuper.paintComponent(g); // Inutile\n\n\t\t// caractéristiques graphiques : mise en place de l'antialiasing\n\t\tGraphics2D g2D = (Graphics2D) g;\n\t\tg2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n\t\t RenderingHints.VALUE_ANTIALIAS_ON);\n\n\t\t// taille de la zone de dessin\n\t\tDimension d = getSize();\n\t\t// on commence par effacer le fond\n\t\tg2D.setColor(getBackground());\n\t\tg2D.fillRect(0, 0, d.width, d.height);\n\n\t\t// Puis on dessine l'ensemble des figures\n\t\tif (drawingModel != null)\n\t\t{\n\t\t\t/*\n\t\t\t * Application d'un Consumer<Figure> en tant que lambda expression\n\t\t\t * sur le flux (éventuellement filtré) des figures permettant\n\t\t\t * de dessiner les figures\n\t\t\t */\n\t\t\tdrawingModel.stream().forEach((Figure f) -> f.draw(g2D));\n\n\t\t\t/*\n\t\t\t * Soulignement des figures sélectionnées (s'il y en a).\n\t\t\t * Le soulignement est séparé du dessin des figures elles mêmes\n\t\t\t * de manière à apparaître par dessus les figures dessinées\n\t\t\t */\n\t\t\tif (drawingModel.hasSelection())\n\t\t\t{\n\t\t\t\tdrawingModel.stream().forEach((Figure f) -> f.drawSelection(g2D));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.err.println(getClass().getSimpleName() + \"::paintComponent : null model\");\n\t\t}\n\t}", "title": "" }, { "docid": "794fa5ead9846f1bf1a131a9a2a22e3c", "score": "0.57315266", "text": "void update(ICellShape mode);", "title": "" }, { "docid": "7c78d6136f27de818cfbd28758346aea", "score": "0.5721095", "text": "public DrawingPanel(){\n\t\taddMouseListener(this);\n\t\tfill = Color.white;\n\t\tborder = Color.black;\n\t\tpoly = new Polygon();\n\t}", "title": "" }, { "docid": "4381c94e33cc9de2bdd42d11852b868c", "score": "0.57197", "text": "@Override\n public void mouseClicked(MouseEvent e) {\n if (drawsquare != 0) return;\n drawsquare = 1;\n locx = e.getX ();\n locy = e.getY ();\n DRectModel model = new DRectModel ( locx, locy, 50, 50, Color.BLACK );\n Color color = pencilcolorchoosed;\n// while (color == null || color.equals ( Color.white )) {\n// JOptionPane.showMessageDialog ( null, \"please choose a valid color!\", \"Error\", JOptionPane.INFORMATION_MESSAGE );\n// color = JColorChooser.showDialog ( jPanel, \"Set Color\", model.getColor () );\n// }\n int ret = JOptionPane.showConfirmDialog ( null, \"Filled Shape?\", \"Please choose an option\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE );\n if (ret == JOptionPane.YES_OPTION)\n model.setHollow ( false );\n else\n model.setHollow ( true );\n String id = canvas.addShape ( model, null );\n canvas.recolorShape ( color );\n canvas.repaint ();\n// drawModel ( model, color, null );\n try {\n servercomInter.pubishAddModel ( id, model, color );\n } catch (RemoteException ex) {\n ex.printStackTrace ();\n }\n }", "title": "" }, { "docid": "97385313212572c4d04f6bb7770467cc", "score": "0.56933504", "text": "public void init(){\n Dimension d = new Dimension(400, 400);\n setSize(d);\n setMinimumSize(d);\n setMaximumSize(d);\n\n setLayout(new BoxLayout(this,BoxLayout.X_AXIS));\n\n imageModel = new PerspectiveModel();\n gestionCommandes.setPerspectiveModel(imageModel);\n imageTurned = new JLabel(imageModel.getPicture().get(2));\n add(imageTurned);\n\n }", "title": "" }, { "docid": "6565705b24edd40f7b477d557341a8e5", "score": "0.5685812", "text": "public EditChartFrame(org.jfree.chart.JFreeChart chart) {\n initComponents();\n jFreeChart = chart;\n chartPanel = new org.jfree.chart.ChartPanel(jFreeChart);\n// chartPanel.add(new JpowderPopupMenu(chartPanel));\n bigChartPanel.add(chartPanel);\n }", "title": "" }, { "docid": "60cf3f97212d4233b106044541115ed4", "score": "0.5675882", "text": "public void display() {\n\t\t// Sets it to active\n\t\tsuper.setIsActive(true);\n\n\t\tshape = new DrawShape();\n\t\t// shape.setBounds(x, y, getObjectWidth(), getObjectHeight());\n\t\tshape.setOpaque(false);\n\n\t\tif(onclick >=0 && null==shapeLMM){\n\t\t\tshapeLMM = new LocalMouseMonitor(new MouseMonitor(),\n\t\t\t\t\tshape.getLocation(), shape.getSize());\n\t\t\tshapeLMM.setNotifications(true, false, false, true, false,\n\t\t\t\t\tfalse);\n\n\t\t\tshapeLMM.addZone(\"polygon\", new Point(0, 0),\n\t\t\t\t\tshape.getSize());\n\t\t}\n\t\tresize(1);\n\t\tGui.getSlidePanel().add(shape, new Integer(super.getZOrder()));\n\n\t}", "title": "" }, { "docid": "2ed3f3c521498dd620713d4914e66ab1", "score": "0.56734157", "text": "public void drawBasicFloorPlan(){\n basicItems = controller.getBasicItems();\n //four classes that basic items can belong to: rooms,\n //walls, doors and windows, furniture (plumbing- sinks, toilets, etc)\n for(Selectable item : basicItems){\n if(item instanceof Room ){\n roomItems.add((Room) item);\n }\n \n else if(item instanceof Wall){\n wallItems.add((Wall) item);\n }\n \n else if(item instanceof HomeDoorOrWindow){\n doorWindowItems.add((HomeDoorOrWindow) item);\n }\n \n else if(item instanceof HomePieceOfFurniture){\n furnitureItems.add((HomePieceOfFurniture) item);\n }\n }\n \n panel = new BasicFloorPlanPanel();\n panel.setPreferredSize(new Dimension(750,750));\n scrollMan = new JScrollPane(panel);\n scrollMan.setViewportView(panel);\n \n\n //create new frame on top of existing one\n frameMan = new JFrame(\"Basic Floor Plan\");\n\n frameMan.setSize(450,450);\n //frameMan.setLayout(new BorderLayout());\n\n //frameMan.getContentPane().add(panel, BorderLayout.CENTER);\n frameMan.add(scrollMan);\n frameMan.setVisible(true);\n\n //get width and height from panel to set size of frame\n // width = (panel.getXMax() - panel.getXMin());\n // height = (panel.getYMax() - panel.getYMin());\n \n //set size of frame to be slightly bigger than max width and height\n //frameMan.setSize(width + (width/2), height+(width/2));\n \n }", "title": "" }, { "docid": "c208de2065492f2060b15de6d4494101", "score": "0.5671943", "text": "private void initComponents() {\n\n jPopupMenu = new javax.swing.JPopupMenu();\n jMenuItemExport = new javax.swing.JMenuItem();\n jToolBar1 = new javax.swing.JToolBar();\n btReceiveDrawings = new javax.swing.JToggleButton();\n btReceiveTeamCommDrawings = new javax.swing.JToggleButton();\n btClean = new javax.swing.JButton();\n cbBackground = new javax.swing.JComboBox();\n btImageProjection = new javax.swing.JToggleButton();\n btRotate = new javax.swing.JToggleButton();\n btAntializing = new javax.swing.JCheckBox();\n btCollectDrawings = new javax.swing.JCheckBox();\n btTrace = new javax.swing.JCheckBox();\n jSlider1 = new javax.swing.JSlider();\n drawingPanel = new javax.swing.JPanel();\n fieldCanvas = new de.naoth.rc.dialogs.panels.DynamicCanvasPanel();\n\n jMenuItemExport.setText(\"Export\");\n jMenuItemExport.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemExportActionPerformed(evt);\n }\n });\n jPopupMenu.add(jMenuItemExport);\n\n jToolBar1.setRollover(true);\n\n btReceiveDrawings.setText(\"Receive\");\n btReceiveDrawings.setFocusable(false);\n btReceiveDrawings.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btReceiveDrawings.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btReceiveDrawings.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btReceiveDrawingsActionPerformed(evt);\n }\n });\n jToolBar1.add(btReceiveDrawings);\n\n btReceiveTeamCommDrawings.setText(\"TeamComm\");\n btReceiveTeamCommDrawings.setFocusable(false);\n btReceiveTeamCommDrawings.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btReceiveTeamCommDrawings.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btReceiveTeamCommDrawings.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btReceiveTeamCommDrawingsActionPerformed(evt);\n }\n });\n jToolBar1.add(btReceiveTeamCommDrawings);\n\n btClean.setText(\"Clean\");\n btClean.setFocusable(false);\n btClean.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btClean.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btClean.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btCleanActionPerformed(evt);\n }\n });\n jToolBar1.add(btClean);\n\n cbBackground.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"SPL2012\", \"SPL2013\", \"S3D2011\", \"RADAR\", \"LOCAL\" }));\n cbBackground.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbBackgroundActionPerformed(evt);\n }\n });\n jToolBar1.add(cbBackground);\n\n btImageProjection.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/de/naoth/rc/res/view_icon.png\"))); // NOI18N\n btImageProjection.setToolTipText(\"Image Projection\");\n btImageProjection.setFocusable(false);\n btImageProjection.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btImageProjection.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btImageProjection.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btImageProjectionActionPerformed(evt);\n }\n });\n jToolBar1.add(btImageProjection);\n\n btRotate.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/de/naoth/rc/res/rotate_ccw.png\"))); // NOI18N\n btRotate.setFocusable(false);\n btRotate.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btRotate.setSelectedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/de/naoth/rc/res/rotate_cw.png\"))); // NOI18N\n btRotate.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btRotate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btRotateActionPerformed(evt);\n }\n });\n jToolBar1.add(btRotate);\n\n btAntializing.setText(\"Antialiazing\");\n btAntializing.setFocusable(false);\n btAntializing.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btAntializing.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btAntializing.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btAntializingActionPerformed(evt);\n }\n });\n jToolBar1.add(btAntializing);\n\n btCollectDrawings.setText(\"Collect\");\n btCollectDrawings.setFocusable(false);\n btCollectDrawings.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btCollectDrawings.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btCollectDrawings.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btCollectDrawingsActionPerformed(evt);\n }\n });\n jToolBar1.add(btCollectDrawings);\n\n btTrace.setText(\"Trace\");\n btTrace.setFocusable(false);\n btTrace.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n btTrace.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btTrace);\n\n jSlider1.setMaximum(255);\n jSlider1.setValue(247);\n jSlider1.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSlider1StateChanged(evt);\n }\n });\n jToolBar1.add(jSlider1);\n\n drawingPanel.setBackground(new java.awt.Color(247, 247, 247));\n drawingPanel.setLayout(new java.awt.BorderLayout());\n\n fieldCanvas.setBackground(new java.awt.Color(247, 247, 247));\n fieldCanvas.setComponentPopupMenu(jPopupMenu);\n fieldCanvas.setOffsetX(350.0);\n fieldCanvas.setOffsetY(200.0);\n fieldCanvas.setScale(0.07);\n\n javax.swing.GroupLayout fieldCanvasLayout = new javax.swing.GroupLayout(fieldCanvas);\n fieldCanvas.setLayout(fieldCanvasLayout);\n fieldCanvasLayout.setHorizontalGroup(\n fieldCanvasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 674, Short.MAX_VALUE)\n );\n fieldCanvasLayout.setVerticalGroup(\n fieldCanvasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 363, Short.MAX_VALUE)\n );\n\n drawingPanel.add(fieldCanvas, java.awt.BorderLayout.CENTER);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(drawingPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 674, Short.MAX_VALUE)\n .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 674, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(drawingPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 363, Short.MAX_VALUE))\n );\n }", "title": "" }, { "docid": "1d83e720b704adc0352f4986cede9f2d", "score": "0.56717086", "text": "public void start() {\n\t\timgpanel.setLayout(new BoxLayout(imgpanel, BoxLayout.Y_AXIS)); //verticle box layout \n\t\tthis.setLayout(null);\n\t\timgpanel.setSize(900, 800); \n\t\tadd(imgpanel);\n\t\timgpanel.setVisible(true);\n\t\timgpanel.setBackground(Color.BLACK); //why can I set the color here but not within class \n\t\t\n\t\tCurrentViewableImage cvi = new CurrentViewableImage(); //ImagePanel with Painting \n\t\tcvi.setVisible(true);\n\t\tcvi.setMinimumSize(new Dimension(600, 500));\n\t\tcvi.setMaximumSize(new Dimension(900, 600));\n\t\tcvi.setPreferredSize(new Dimension(900, 600));\n\t\tcvi.setBackground(Color.BLACK);\n\t\timgpanel.add(cvi); \n\t\t\n\t\ttextfield = new TextFieldInformation(); //Text on painting and artist \n\t\ttextfield.setVisible(true);\n\t\ttextfield.setMinimumSize(new Dimension(600, 25));\n\t\ttextfield.setMaximumSize(new Dimension(900, 25));\n\t\ttextfield.setPreferredSize(new Dimension(900, 25));\n\t\ttextfield.setBackground(Color.BLACK);\n\t\ttextfield.setForeground(Color.white); \n\t\timgpanel.add(textfield); \n\t\t\n\t\tbuttonimg = new ClickableImagePanel(); // names of paintings \n\t\tbuttonimg.setMinimumSize(new Dimension(600, 25));\n\t\tbuttonimg.setMaximumSize(new Dimension(900, 25));\n\t\tbuttonimg.setPreferredSize(new Dimension(900, 25));\n\t\tbuttonimg.setVisible(true); \n\t\ttextfield.setBackground(Color.BLACK);\n\t\timgpanel.add(buttonimg); \n\t\tstart= false; \n\t}", "title": "" }, { "docid": "2428bfddc6d584a13cf0796313bc8e64", "score": "0.56679803", "text": "public interface IMatplotlibFigureCanvas {\n\n // Declaration of event handlers:\n //\n // These are normally called by the SWT event handlers of a PlotWidget,\n // and are passed over to the Python side, to Matplotlib, which then does\n // however it pleases (redraws, calls user-defined handlers, and so on).\n\n\n /** Notifies matplotlib that the mouse pointer entered the canvas area at the\n * given (canvas-local) coordinates, with the origin in the lower left corner. */\n void enterEvent(int x, int y);\n\n /** Notifies matplotlib that the mouse pointer left the canvas area. */\n void leaveEvent();\n\n /** Notifies matplotlib that the mouse pointer moved to the given (canvas-local)\n * coordinates (with the origin in the lower left corner) inside the canvas area. */\n void mouseMoveEvent(int x, int y);\n\n /** Notifies matplotlib that the given mouse button was pressed down at the\n * given (canvas-local) coordinates (with the origin in the lower left corner)\n * inside the canvas area. The button is encoded as: LEFT = 1, MIDDLE = 2,\n * RIGHT = 3, BACK = 8, FORWARD = 9. */\n void mousePressEvent(int x, int y, int button);\n\n /** Notifies matplotlib that the given mouse button was released at the\n * given (canvas-local) coordinates (with the origin in the lower left corner)\n * inside the canvas area. The button is encoded as: LEFT = 1, MIDDLE = 2,\n * RIGHT = 3, BACK = 8, FORWARD = 9. */\n void mouseReleaseEvent(int x, int y, int button);\n\n /** Notifies matplotlib that the given mouse button was double-clicked at\n * the given (canvas-local) coordinates (with the origin in the lower left corner)\n * inside the canvas area. The button is encoded as: LEFT = 1, MIDDLE = 2,\n * RIGHT = 3, BACK = 8, FORWARD = 9. */\n void mouseDoubleClickEvent(int x, int y, int button);\n\n /** Notifies matplotlib that the given key was pressed inside the canvas area.\n * The key can be a single case sensitive Unicode character (\"g\", \"G\", \"#\", etc.),\n * a special key (\"control\", \"shift\", \"f1\", \"up\", etc.) or a combination of\n * the above (e.g., \"ctrl+alt+g\", \"ctrl+alt+G\"). */\n void keyPressEvent(String key);\n\n /** Notifies matplotlib that the given key was released inside the canvas area.\n * The key can be a single case sensitive Unicode character (\"g\", \"G\", \"#\", etc.),\n * a special key (\"control\", \"shift\", \"f1\", \"up\", etc.) or a combination of\n * the above (e.g., \"ctrl+alt+g\", \"ctrl+alt+G\"). */\n void keyReleaseEvent(String key);\n\n /** Notifies matplotlib that the canvas was resized to the given size. */\n void resizeEvent(int width, int height);\n\n /** Notifies matplotlib that the mouse wheel was scrolled at the given\n * (canvas-local) coordinates (with the origin in the lower left corner)\n * inside the canvas area. count is the number of \"steps\" the wheel was\n * scrolled (its sign indicating the direction). Additionally, mod1 is true\n * if Ctrl (or Command) was held, and mod2 is true if Shift was held. */\n void mouseWheelEvent(int x, int y, int count, boolean mod1, boolean mod2);\n\n /** Notifies matplotlib that the canvas was resized to the given size. */\n void performAction(String action);\n\n /** Save the image currently on the canvas into the the given file. The\n * format to use will be automatically detected by matplotlib from the\n * extension in the filename. */\n void exportFigure(String filename);\n\n /**\n * Returns a map with Matplotlib's supported graphical image format,\n * with descriptions as keys, and the list of file extensions as values.\n * E.g. \"Tagged Image File Format\" -> [\"tif\", \"tiff\"]\n */\n HashMap<String, ArrayList<String>> getSupportedFiletypes();\n\n /** Returns the extension of the default filetype when exporting figures. */\n String getDefaultFiletype();\n\n /**\n * The members are actually Double instances, but we don't use them from\n * Java, only pass them back in to the next Python process.\n * The (flat) list contains 4 elements [xmin, xmax, ymin, ymax] for each\n * axes object (\"subplot\") of the figure.\n */\n List<Object> getAxisLimits();\n\n /**\n * Accepts the same kind of List as getAxisLimit returns.\n * If there are more elements than axes in the (now potentially different)\n * figure, the unneeded values are ignored at the end. If there are fewer,\n * the remaining axes objects are untouched.\n */\n void setAxisLimits(List<Object> limits);\n}", "title": "" }, { "docid": "2e4d5b9d8fac84421a1f89824d5d7a10", "score": "0.56483155", "text": "public void ChartPane() {\n\t\tChartTypeChooser typeChooser\n\t\t= new ChartTypeChooser(Current);\n\t\n\t\tContainer chartTypeContainer\n\t\t= typeChooser.createInterface();\n\t\n\t\tGraphData();\n\t\tJOptionPane.showMessageDialog(null, chartTypeContainer,\n\t\t\"Choose a chart\", JOptionPane.PLAIN_MESSAGE);\n\t}", "title": "" }, { "docid": "b633bd66e281072dcacacee18adef9df", "score": "0.5647405", "text": "protected void refreshVisuals() {\n\t\t/*\n\t\t * //IModelElementFigure figure = (IModelElementFigure) getFigure();\n\t\t * Figure figure = (Figure) getFigure();\n\t\t * \n\t\t * Point location = figure.getLocation(); Rectangle constraint = new\n\t\t * Rectangle(location.x, location.y, -1, -1);\n\t\t * \n\t\t * if(getParent() instanceof IModelElementContainerPart) {\n\t\t * ((IModelElementContainerPart) getParent()).setLayoutConstraint(this,\n\t\t * figure, constraint); } else { System.err.println(\" Container not a\n\t\t * IModelElementContainerPart!!!\"); }\n\t\t */\n\t}", "title": "" }, { "docid": "c99a5ed4e55054d995ff60d95f7c168e", "score": "0.5630269", "text": "public void mouseDraggedInDrawingArea(MouseEvent e) {}", "title": "" }, { "docid": "bcdb046b3af3339451d4250f44f65559", "score": "0.561966", "text": "public void displayChanged(DisplayEvent e) {\n int id = e.getId();\n int x = e.getX();\n int y = e.getY();\n if (id == DisplayEvent.MOUSE_PRESSED_LEFT) {\n cursor_x = x;\n cursor_y = y;\n }\n else if (id == DisplayEvent.MOUSE_RELEASED_LEFT &&\n x == cursor_x && y == cursor_y)\n {\n // get domain coordinates of mouse click\n double[] coords = pixelToDomain(x, y);\n \n // compute maximum distance threshold\n double[] e1 = pixelToDomain(0, 0);\n double[] e2 = pixelToDomain(PICKING_THRESHOLD, 0);\n double threshold = e2[0] - e1[0];\n \n // find closest object\n int index = -1;\n double mindist = Double.MAX_VALUE;\n int size = things.size();\n for (int i=0; i<size; i++) {\n // skip multi-vertex measurements\n MeasureThing thing = (MeasureThing) things.elementAt(i);\n int len = thing.getLength();\n if (len > 2) continue;\n\n // skip measurements not on this slice\n double[][] values = thing.getMeasurement().doubleValues();\n boolean okay = false;\n for (int j=0; j<len; j++) {\n if (values[2][j] == slice) {\n okay = true;\n break;\n }\n }\n if (!okay) continue;\n\n // compute distance\n double dist;\n if (len == 1) {\n // compute point distance\n double dx = values[0][0] - coords[0];\n double dy = values[1][0] - coords[1];\n dist = Math.sqrt(dx * dx + dy * dy);\n }\n else {\n // compute line distance\n dist = distance(values[0][0], values[1][0],\n values[0][1], values[1][1], coords[0], coords[1]);\n }\n if (dist < mindist) {\n mindist = dist;\n index = i;\n }\n }\n \n // highlight picked line or point\n if (mindist > threshold) {\n if (box != null) box.select(null);\n if (bio.toolMeasure != null) bio.toolMeasure.select(null);\n }\n else {\n MeasureThing thing = (MeasureThing) things.elementAt(index);\n if (box != null) box.select(thing);\n if (bio.toolMeasure != null) bio.toolMeasure.select(thing);\n }\n }\n }", "title": "" }, { "docid": "2dbbda84480a9885ac03a6faadd9ce7c", "score": "0.56171536", "text": "private void initGUI() {\n\n Container cp = getContentPane();\n\n JColorArea fgColorArea = new JColorArea();\n JColorArea bgColorArea = new JColorArea();\n JColorLabel colorLabel = new JColorLabel(fgColorArea, bgColorArea);\n\n states.put(LINE, new AddingLine(model, fgColorArea, bgColorArea));\n states.put(CIRCLE, new AddingCircle(model, fgColorArea, bgColorArea));\n states.put(FILLED_CIRCLE, new AddingFilledCircle(model, fgColorArea, bgColorArea));\n\n JPanel northPanel = new JPanel(new FlowLayout());\n northPanel.setAlignmentX(LEFT_ALIGNMENT);\n\n northPanel.add(fgColorArea);\n northPanel.add(bgColorArea);\n ButtonGroup group = new ButtonGroup();\n\n JToggleButton line = new JToggleButton(new AbstractAction(LINE) {\n\n /**\n * \n */\n private static final long serialVersionUID = 1L;\n\n @Override\n public void actionPerformed(ActionEvent e) {\n canvas.setCurrentState(states.get(LINE));\n }\n });\n line.setSelected(true);\n JToggleButton circle = new JToggleButton(new AbstractAction(CIRCLE) {\n\n /**\n * \n */\n private static final long serialVersionUID = 1L;\n\n @Override\n public void actionPerformed(ActionEvent e) {\n canvas.setCurrentState(states.get(CIRCLE));\n }\n });\n JToggleButton filledCircle = new JToggleButton(new AbstractAction(FILLED_CIRCLE) {\n\n /**\n * \n */\n private static final long serialVersionUID = 1L;\n\n @Override\n public void actionPerformed(ActionEvent e) {\n canvas.setCurrentState(states.get(FILLED_CIRCLE));\n }\n });\n group.add(line);\n group.add(circle);\n group.add(filledCircle);\n northPanel.add(line);\n northPanel.add(circle);\n northPanel.add(filledCircle);\n\n cp.add(northPanel, BorderLayout.NORTH);\n cp.add(initEastPanel(), BorderLayout.EAST);\n canvas = new JDrawingCanvas(model);\n\n canvas.setCurrentState(states.get(LINE));\n\n cp.add(canvas, BorderLayout.CENTER);\n cp.add(colorLabel, BorderLayout.SOUTH);\n initMenus();\n\n setUpChangesListener();\n }", "title": "" }, { "docid": "cc60ccc93fad868b6c6effb873bc4d5a", "score": "0.5610972", "text": "public abstract void createListOfFigures();", "title": "" }, { "docid": "0a07787afdd3e1c7fc15461445268403", "score": "0.56107056", "text": "public abstract void renderDeselected(Figure f);", "title": "" }, { "docid": "a884fb1d3f83ce1d6d39dcb5e36b963a", "score": "0.561001", "text": "view()\n\t{\n\t\tsuper(\"Photo Edit\");\n\t\tthis.setSize(950, 950);\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t// -- Initialize vars --\t\n\t\tpainting painter = new painting();\n\t\timageLabel = new JLabel();\n\t\tnewImage = new painting();\n\t\tsettingsPanel = new JPanel();\n\t\tsettingsPanel.setLayout(new GridLayout(6,2));\n\t\t\n\t\t\n\t\t// -- Add panels -- \n\t\timage = painter.getImage();\n\t\toriginalImage = painter.getOriginalImage();\n\n\t\t// -- Init Sliders --\n\t\tredSlider = new JSlider(JSlider.HORIZONTAL, 0, 25, 0);\n\t\tgreenSlider = new JSlider(JSlider.HORIZONTAL, 0, 25, 0);\n\t\tblueSlider = new JSlider(JSlider.HORIZONTAL, 0, 25, 0);\n\t\tgrayscaleSlider = new JSlider(JSlider.HORIZONTAL, 3, 6, 3);\n\t\tinvertedGrayscaleSlider = new JSlider(JSlider.HORIZONTAL, 1, 6, 1);\n\t\tnewSlider = new JSlider(JSlider.HORIZONTAL, 0, 50, 0);\n\t\t\n\t\t\n\t\t// -- Init Labels --\n\t\tredLabel \t= new JLabel(\"RGB Red\");\n\t\tgreenLabel \t= new JLabel(\"RGB Green\");\n\t\tblueLabel \t= new JLabel(\"RGB Blue\");\n\t\tnewLabel \t= new JLabel(\"\");\n\t\tgrayscaleLabel = new JLabel(\"Grayscale\");\n\t\tinvertedGrayscaleLabel = new JLabel(\"Inverted Grayscale\");\n\n\t\t\n\t\t// -- Init Buttons -- \n\t\theatMapButton \t\t= new JButton(\"Heat Map\");\n\t\theatMapOutlineButton= new JButton(\"Heat Outline\");\n\t\theatMapVar2\t\t\t= new JButton(\"Heat Map Var\");\n\t\trandomButton \t\t= new JButton(\"Random Map\");\n\t\thorizontalReflect \t= new JButton(\"Horizontal Reft\");\n\t\tverticalReflect \t= new JButton(\"Vertical Reft\");\n\t\tcolorSwapButton \t= new JButton(\"Color Swap\");\n\t\tcolorSwap2Button \t= new JButton(\"Color Swap 2\");\n\t\trasterButton \t\t= new JButton(\"Raster Manip\");\n\t\trasterButton2 \t\t= new JButton(\"Raster Manip 2\");\n\t\tnewButton \t\t\t= new JButton(\"Random Swap\");\n\t\tresetButton \t\t= new JButton(\"RESET\");\n\n\t\t\n\t\t// -- Add image to label and panel --\n\t\tJLabel picLabel = new JLabel(new ImageIcon(painter.getImage()));\n\t\timagePanel = painter.getImagePanel();\n\t\timagePanel.setSize(new Dimension(200,200));\n\t\t\n\t\t// -- Add sliders and labels --\n\t\tthis.add(picLabel, BorderLayout.NORTH);\n\t\t\n\t\tsettingsPanel.add(redLabel);\n\t\tsettingsPanel.add(redSlider);\n\t\tsettingsPanel.add(greenLabel);\n\t\tsettingsPanel.add(greenSlider);\n\t\tsettingsPanel.add(blueLabel);\n\t\tsettingsPanel.add(blueSlider);\n\t\tsettingsPanel.add(grayscaleLabel);\n\t\tsettingsPanel.add(grayscaleSlider);\n\t\tsettingsPanel.add(invertedGrayscaleLabel);\n\t\tsettingsPanel.add(invertedGrayscaleSlider);\n\t\tsettingsPanel.add(newLabel);\n\t\tsettingsPanel.add(newSlider);\n\t\t\n\t\t// -- Adding buttons -- \n\t\tsettingsPanel.add(heatMapButton);\n\t\tsettingsPanel.add(heatMapVar2);\n\t\tsettingsPanel.add(heatMapOutlineButton);\n\t\tsettingsPanel.add(randomButton);\n\t\tsettingsPanel.add(horizontalReflect);\n\t\tsettingsPanel.add(verticalReflect);\n\t\tsettingsPanel.add(colorSwapButton);\n\t\tsettingsPanel.add(colorSwap2Button);\n\t\tsettingsPanel.add(rasterButton);\n\t\tsettingsPanel.add(rasterButton2);\n\t\tsettingsPanel.add(newButton);\n\t\tsettingsPanel.add(resetButton);\n\t\tthis.add(settingsPanel, BorderLayout.EAST);\n\t\t\n\t\tthis.pack();\n\t\tthis.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tthis.setVisible(true);\n\t\t\n\t\t\n\t\t// -- Below are all the listeners for the sliders and buttons -- \n\t\tredSlider.addChangeListener(new ChangeListener() {\n\t\t public void stateChanged(ChangeEvent event) {\n\t\t \t \n\t\t \tint value = redSlider.getValue(); \n\t\t painter.drawRedShifted(value, image);\n\t\t repaint();\t\t \n\t\t }\n\t\t });\n\t\t\n\t\tgreenSlider.addChangeListener(new ChangeListener() {\n\t\t public void stateChanged(ChangeEvent event) {\n\n\t\t \tint value = greenSlider.getValue();\n\t\t painter.drawGreenShifted(value, image);\n\t\t repaint();\t\t \n\t\t }\n\t\t });\n\t\t\n\t\tblueSlider.addChangeListener(new ChangeListener() {\n\t\t public void stateChanged(ChangeEvent event) {\n\n\t\t \tint value = blueSlider.getValue();\n\t\t painter.drawBlueShifted(value, image);\n\t\t repaint();\t\t \n\t\t }\n\t\t });\n\t\t\n\t\tgrayscaleSlider.addChangeListener(new ChangeListener() {\n\t\t public void stateChanged(ChangeEvent event) {\n\t\n\t\t \tint value = grayscaleSlider.getValue();\n\t\t painter.drawGrayscale(value, image);\n\t\t repaint();\t\t \n\t\t }\n\t\t });\n\t\t \n\t\tinvertedGrayscaleSlider.addChangeListener(new ChangeListener() {\n\t\t public void stateChanged(ChangeEvent event) {\n\t\t \n\t\t \tint value = invertedGrayscaleSlider.getValue();\n\t\t painter.drawGrayscaleInverted(value, image);\n\t\t repaint();\t\t \n\t\t }\n\t\t });\n\t\t\n\t\t\tnewSlider.addChangeListener(new ChangeListener() {\n\t\t public void stateChanged(ChangeEvent event) {\n\n\t\t \tint value = newSlider.getValue();\n\t\t painter.newFunc(value, image);\n\t\t repaint();\t\t \n\t\t }\n\t\t });\n\n\t\t\n\t\tresetButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\t//painter.drawReset();\n\t\t\t\tnew view();\t\t\t\t\n\t\t\t\tdispose();\n\t\t\t\tSystem.out.println(\"reset button\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\theatMapButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawHeatMap(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\theatMapOutlineButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawHeatMapOutline(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\theatMapVar2.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawHeatMap2(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\trandomButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawRandomMap(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\thorizontalReflect.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawHorizontalReflect(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tverticalReflect.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawVerticalReflect(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\n\t\tcolorSwapButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawColorSwap(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcolorSwap2Button.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawColorSwap2(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\trasterButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawRasterManip(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\trasterButton2.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawRasterManip2(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tnewButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent event){\n\t\t\t\tpainter.drawRandomMapSwap(image);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\t\t\n\t}", "title": "" }, { "docid": "d49b2d0c30851893fb74b9e908338182", "score": "0.560907", "text": "public PowerPaintGUI() {\r\n super();\r\n myPanel = new DrawingPanel(); \r\n }", "title": "" }, { "docid": "44591e05e124ad6288924243f258f0e4", "score": "0.5600044", "text": "protected void paintFigure(Graphics graphics) {\n\t\tif (isVisible()){\n\t\t\tsuper.paintFigure(graphics);\n\t\t}\n\t}", "title": "" }, { "docid": "53395eb0b63f7f7398220e53dccfdf70", "score": "0.55974793", "text": "protected void updatePlotStyle()\n {\n if ( inhibitChanges ) return;\n \n int[] indices = specList.getSelectedIndices();\n if ( indices.length > 0 && indices[0] > -1 ) {\n Integer value = new Integer( lineType.getSelectedStyle() );\n applyProperty( indices, SpecData.PLOT_STYLE, value );\n }\n }", "title": "" }, { "docid": "72b44da71b05b6f243a6b46d65cacb26", "score": "0.55892915", "text": "public CH.ifa.draw.framework.FigureChangeEvent createInstance() throws Exception {\n // JUnitDoclet begin method testcase.createInstance\n return new CH.ifa.draw.framework.FigureChangeEvent(new RectangleFigure(new Point(10,10), new Point(100,100)));\n // JUnitDoclet end method testcase.createInstance\n }", "title": "" }, { "docid": "540970ecf55630aa52864cc5120b2393", "score": "0.5588143", "text": "public void processComponentEvent(ComponentEvent e) {\r\n super.processComponentEvent(e);\r\n datasetGraphics = (Graphics2D) this.getGraphics();\r\n }", "title": "" }, { "docid": "e6f01976d13fe9e3e777716e9ed6dc68", "score": "0.55859154", "text": "public void addListeners() {\n\t\t_provGraph.getSpecializedGraphUI().addMouseListener(new MouseListener ()\r\n\t\t{\r\n\t\t\tpublic void mouseClicked(MouseEvent evt) {\r\n if (evt.getClickCount()==2 && evt.getButton() == MouseEvent.BUTTON1)\r\n\t\t\t\t{\r\n Object obj = _provGraph.getSelectionCell();\r\n if (obj != null \r\n \t\t&& obj instanceof TupleVertex) \r\n {\r\n \tfinal TupleVertex cell = (TupleVertex) _provGraph.getSelectionCell();\r\n\r\n \t\t\t\t\t_transInfoPanel.setContext(cell.getTuple().getOrigin(), cell.getTuple());\r\n }\r\n\t\t\t\t} else if (evt.getButton() == MouseEvent.BUTTON2 || evt.getButton() == MouseEvent.BUTTON3) {\r\n Object obj = _provGraph.getSelectionCell();\r\n if (obj != null \r\n \t\t&& obj instanceof TupleVertex) \r\n {\r\n \tTupleVertex cell = (TupleVertex) _provGraph.getSelectionCell();\r\n\r\n \tcontextMenu(cell.getTuple(), evt.getX(), evt.getY());\r\n }\r\n\t\t\t\t} \r\n\r\n\t\t\t}\r\n\t\t\tpublic void mouseEntered(MouseEvent evt) {}\r\n\t\t\tpublic void mouseExited(MouseEvent evt) {}\r\n\t\t\tpublic void mousePressed(MouseEvent evt) {}\r\n\t\t\tpublic void mouseReleased(MouseEvent evt) {}\r\n\t\t});\r\n\t\t\r\n\t\t// Right-click menu should give resolution as an option\r\n\t\t_viewMenu = new JPopupMenu( ); \r\n\t\tJMenuItem item;\r\n\t\t_viewMenu.add(item = new JMenuItem(\"Set focus\"));\r\n\t item.addActionListener(new ActionListener( ) {\r\n\t \tpublic void actionPerformed(ActionEvent event) {\r\n \t\t\tsetTuple(_selectedTuple);\r\n\t }\r\n\t });\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "aba0f0a9747187d0159df20899503aa4", "score": "0.55855626", "text": "public void createAndShowGUI() {\n\t// window decorations.\n \ttry {\n \t UIManager.setLookAndFeel(\n \t UIManager.getCrossPlatformLookAndFeelClassName());\t\t \n \t} catch (Exception e) { }\n\t\n\t// frame settings\n\tint insets = 50;\n\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n \tDimension size = new Dimension(screenSize.width-insets*2, screenSize.height-insets*2);\n\tframe.setBounds(insets, insets, size.width, size.height);\n\tframe.setSize(size);\n\n\tframe.addWindowListener(new FrameSynchListener());\n\n\t// View map\n\tviewMap = new ViewMap();\n\n\t// Default strip chart\n\tPlotWindow stripChart = new PlotWindow(new TraceListModel(), PlotWindow.STRIPCHART);\t \n\tView stripChartDefaultView = new View(\"Strip Chart 1\", null, stripChart);\n\tstripChartDefaultView.getWindowProperties().setCloseEnabled(false);\n\tstripChartDefaultView.addListener(new DockingWindowCleanupListener());\n\tstripChartViews.add(stripChartDefaultView);\n\tviewMap.addView(1, stripChartDefaultView);\n\tPlotPanelStripChart stripChartPlot = (PlotPanelStripChart)(stripChart.getPlot());\n\tCVSim.sim.addChangeListener(stripChartPlot.sourceDataChanged); \t\n\tstripChartPlot.createNewTrace(CVSim.sim.getOutputVariable(\"LVP\"));\n\n\t// Default XY plot\n\tPlotWindow parametric = new PlotWindow(new TraceListModel(), PlotWindow.PARAMETRIC);\t \n\tView plotDefaultView = new View(\"Plot 1\", null, parametric); \n\tplotDefaultView.getWindowProperties().setCloseEnabled(false);\n\tXYPlotViews.add(plotDefaultView);\n\tviewMap.addView(2, plotDefaultView);\n\tPlotPanelXYChart parametricPlot = (PlotPanelXYChart)(parametric.getPlot());\n\tCVSim.sim.addChangeListener(parametricPlot.sourceDataChanged); \n\tparametricPlot.createNewTrace(CVSim.sim.getOutputVariable(\"LVV\"), CVSim.sim.getOutputVariable(\"LVP\"));\n\t\n\t// Root window\n\tRootWindow rootWindow = DockingUtil.createRootWindow(viewMap, true);\n\t\n\t// Tab window for strip charts\n\tstripChartTabWindow = new TabWindow(stripChartDefaultView);\n\tstripChartTabWindow.getWindowProperties().setCloseEnabled(false);\n\t\n\t// Tab window for XY plots\n\tXYPlotTabWindow = new TabWindow(plotDefaultView);\n\tXYPlotTabWindow.getWindowProperties().setCloseEnabled(false);\n\n\tSplitWindow splitWindow = new SplitWindow(true, stripChartTabWindow, XYPlotTabWindow);\n\trootWindow.setWindow(splitWindow);\n\n\t// Patient List\n\tpatientList = new ArrayList();\n\n\t// Parameter and Output Tables\n\tparameterPanel = new ParameterPanel();\n\toutputPanel = new OutputPanel();\n\tJTabbedPane tabbedPane = new JTabbedPane();\n\ttabbedPane.addTab(\"Simulation Variables\", parameterPanel);\n\ttabbedPane.addTab(\"Simulation Outputs\", outputPanel);\n\tBorder compoundBorder = BorderFactory.createCompoundBorder(\n\t\t\t\t\t\t\t\t BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),\n\t\t\t\t\t\t\t\t BorderFactory.createEmptyBorder(5,5,5,5));\n\ttabbedPane.setBorder(compoundBorder);\n\n\t// Put back via menu items\t\n//\tJPanel logListPanel = new LogPanel();\n// \toptionsPanel = new OptionsPanel();\n\n\tif ( CVSim.getSimulationModelName().equals(CVSim.MODEL_6C) )\n\t imagePanel = new ImagePanel6C();\n\telse\n\t imagePanel = new ImagePanel21C();\n\timagePanel.setBorder(compoundBorder);\n\tJScrollPane scrollPane = new JScrollPane(imagePanel);\n \t// get scrollpane viewport\n \tJViewport viewport = scrollPane.getViewport();\n \t// Get x,y location of the upper left corner of the viewport \n \tPoint startingPoint = viewport.getViewPosition();\n \t// Set the view to the new y position\n \tviewport.setViewPosition(new Point(startingPoint.x, startingPoint.y+35));\n \n \tJSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, tabbedPane, scrollPane);\n splitPane.setDividerLocation((int)(size.width*.45));\n\n\t// create toolbar and menubar\n\ttoolbar = new ControlToolBar();\n\tframe.setJMenuBar(createMenuBar());\n\n\t// content pane\n\tJPanel contentPane = new JPanel();\n\tcontentPane.setLayout(new GridBagLayout());\n\tGridBagConstraints c = new GridBagConstraints();\n\n\tc.gridx = 0;\n\tc.gridy = 0;\n\tc.anchor = GridBagConstraints.FIRST_LINE_START;\n\tc.insets = new Insets(0, 2, 0, 0);\n\tcontentPane.add(toolbar, c);\n\t\n\tc.gridx = 0;\n\tc.gridy = 1;\n\tc.weightx = 1.0;\n\tc.weighty = 0.50;\n\tc.fill = GridBagConstraints.BOTH;\n\tc.anchor = GridBagConstraints.CENTER;\n\tc.insets = new Insets(0, 2, 0, 0);\n\tcontentPane.add(splitPane, c);\n\n\tc.gridx = 0;\n\tc.gridy = 2;\n\tc.weightx = 1.0;\n\tc.weighty = 0.50;\n\tc.gridwidth = 2;\n\tc.anchor = GridBagConstraints.CENTER;\n\tc.fill = GridBagConstraints.BOTH;\n\tc.insets = new Insets(0, 2, 0, 2);\n\tcontentPane.add(rootWindow, c);\n\t\n\tframe.setContentPane(contentPane);\n\tframe.setVisible(true);\n\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }", "title": "" }, { "docid": "581552792cd2d5ffce86297c079712dc", "score": "0.5575681", "text": "@Ignore\n @Test\n public void givenPickableItem_whenPick_thenNoNullPointerException() {\n // Given a graph model\n IGraph<String, String> graph = StringGraphGenerator.getGraph(500, 10);\n IGraphLayout2d<String> layout = StringGraphGenerator.getRandomLayout(graph, 10);\n\n // ------------------------------\n // Setup a chart\n AWTChartFactory factory = new AWTChartFactory();\n // factory.setOffscreen(200, 200); // want to test offscreen but will use mouse events from AWT!\n\n Chart chart = factory.newChart(Quality.Advanced());\n // chart.getView().setAxeBoxDisplayed(false);\n chart.getView().setViewPositionMode(ViewPositionMode.TOP);\n chart.getView().setSquared(false);\n // chart.getView().setMaximized(true);\n\n // ------------------------------\n // Build a pickable drawable graph\n final PointGraph2d<String, String> drawableGraph = new PointGraph2d<String, String>();\n\n List<Object> pickedVertices = new ArrayList<>();\n\n AWTMousePickingController mouse =\n (AWTMousePickingController) chart.addMousePickingController((int) 30);\n mouse.getPickingSupport().addObjectPickedListener(new IObjectPickedListener() {\n @Override\n public void objectPicked(List<? extends Object> vertices, PickingSupport picking) {\n for (Object vertex : vertices) {\n System.out.println(\"picked: \" + vertex);\n drawableGraph.setVertexHighlighted((String) vertex, true);\n pickedVertices.add(vertex);\n }\n\n // disable re-rendering to avoid recursive lock in test\n // chart.render();\n }\n });\n\n drawableGraph.setGraphLayout(layout);\n drawableGraph.setGraphModel(graph, mouse.getPickingSupport());\n chart.add(drawableGraph);\n\n // ------------------------------\n // Open Chart\n FrameAWT frame = (FrameAWT) chart.open();\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e1) {\n e1.printStackTrace();\n }\n\n // --------------------------------\n // When\n MouseEvent e =\n new MouseEvent((Component) chart.getCanvas(), 0, 0, 0, 300, 300, 100, 100, 1, false, 0);\n mouse.pick(e);\n\n frame.setVisible(false);\n\n // --------------------------------\n // Then was able to pick a vertex\n\n Assert.assertEquals(1, pickedVertices.size());\n Assert.assertEquals(\"vertex 230\", ((String) pickedVertices.get(0)));\n }", "title": "" }, { "docid": "5e7f6e0a0db2f39c027dd82b51486a76", "score": "0.5566156", "text": "public NodeFigure() {\r\n setShape(new RectangleShape());\r\n }", "title": "" }, { "docid": "3573faf18f860cfbd4dfe67a3f753a11", "score": "0.5565413", "text": "public void mousePressed(MouseEvent event) {\n {\n //ColorPalette.selectedColorDisplay.setBackground(JColorChooser.showDialog(Main.paint, \"Change Color\", Main.paint.drawingPanel.brushColor));\n ColorPalette.selectedColor = ColorPalette.selectedColorDisplay.getBackground(); //change the isSelected color\n A_one.DemoBorderLayout.drawingPanel.setCurrentColor(ColorPalette.selectedColorDisplay.getBackground()); //change the ToolDetails color\n A_one.DemoBorderLayout.drawingPanel.setCurrentColor(ColorPalette.selectedColor); //change the DrawingPanel brushColor\n\n }\n }", "title": "" }, { "docid": "d55239ed159b387ca76d251d668dff00", "score": "0.555844", "text": "@Override\n public void actionPerformed(final ActionEvent theEvent) {\n final Shapes currentTool = getShape();\n currentTool.setName(PENCIL_NAME);\n currentTool.setShape(PENCIL_NAME, new GeneralPath());\n currentTool.setStartPoint(new Point());\n \n }", "title": "" }, { "docid": "76bea87f31e5df7a20e3d532014ba874", "score": "0.5549911", "text": "private void setPropertySheetAppearence() {\n\t\tpropertySheetPanel.setTable(new VizMapPropertySheetTable());\n\t\tpropertySheetPanel.getTable().getColumnModel().addColumnModelListener(\n\t\t\t\tnew VizMapPropertySheetTableColumnModelListener(this));\n\n\t\t/*\n\t\t * By default, show category.\n\t\t */\n\t\tpropertySheetPanel.setMode(PropertySheetPanel.VIEW_AS_CATEGORIES);\n\t\tpropertySheetPanel.getTable().setComponentPopupMenu(\n\t\t\t\tmenuMgr.getContextMenu());\n\t\tpropertySheetPanel.getTable().addMouseListener(\n\t\t\t\tnew VizMapPropertySheetMouseAdapter(this, propertySheetPanel,\n\t\t\t\t\t\tnull));\n\n\t\tPropertySheetTable table = propertySheetPanel.getTable();\n\t\ttable.setRowHeight(25);\n\t\ttable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n\t\ttable.setCategoryBackground(new Color(10, 10, 50, 20));\n\t\ttable.setCategoryForeground(Color.black);\n\t\ttable.setSelectionBackground(Color.white);\n\t\ttable.setSelectionForeground(Color.blue);\n\n\t\t/*\n\t\t * Set editors\n\t\t */\n\t\temptyBoxRenderer.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\temptyBoxRenderer.setHorizontalAlignment(SwingConstants.CENTER);\n\t\temptyBoxRenderer.setBackground(new Color(0, 200, 255, 20));\n\t\temptyBoxRenderer.setForeground(Color.red);\n\t\temptyBoxRenderer.setFont(new Font(\"SansSerif\", Font.BOLD, 12));\n\n\t\tfilledBoxRenderer.setBackground(Color.white);\n\t\tfilledBoxRenderer.setForeground(Color.blue);\n\n\t\tVisualPropertyIcon newIcon;\n\n\t\tList<Icon> iconList = new ArrayList<Icon>();\n\t\tfinal List<NodeShape> nodeShapes = new ArrayList<NodeShape>();\n\n\t\tfor (Object key : nodeShapeIcons.keySet()) {\n\t\t\tNodeShape shape = (NodeShape) key;\n\n\t\t\tif (shape.isSupported()) {\n\t\t\t\ticonList.add(nodeShapeIcons.get(key));\n\t\t\t\tnodeShapes.add(shape);\n\t\t\t}\n\t\t}\n\n\t\tIcon[] iconArray = new Icon[iconList.size()];\n\t\tString[] shapeNames = new String[iconList.size()];\n\n\t\tfor (int i = 0; i < iconArray.length; i++) {\n\t\t\tnewIcon = ((NodeIcon) iconList.get(i)).clone();\n\t\t\tnewIcon.setIconHeight(16);\n\t\t\tnewIcon.setIconWidth(16);\n\t\t\ticonArray[i] = newIcon;\n\t\t\tshapeNames[i] = nodeShapes.get(i).getShapeName();\n\t\t}\n\n\t\t// shapeCellEditor.setAvailableValues(nodeShapes.toArray());\n\t\t// shapeCellEditor.setAvailableIcons(iconArray);\n\t\ticonList.clear();\n\t\ticonList.addAll(arrowShapeIcons.values());\n\t\ticonArray = new Icon[iconList.size()];\n\n\t\tString[] arrowNames = new String[iconList.size()];\n\t\tSet arrowShapes = arrowShapeIcons.keySet();\n\n\t\tfor (int i = 0; i < iconArray.length; i++) {\n\t\t\tnewIcon = ((ArrowIcon) iconList.get(i));\n\t\t\tnewIcon.setIconHeight(16);\n\t\t\tnewIcon.setIconWidth(40);\n\t\t\tnewIcon.setBottomPadding(-9);\n\t\t\ticonArray[i] = newIcon;\n\t\t\tarrowNames[i] = newIcon.getName();\n\t\t}\n\n\t\t// arrowCellEditor.setAvailableValues(arrowShapes.toArray());\n\t\t// arrowCellEditor.setAvailableIcons(iconArray);\n\t\ticonList = new ArrayList();\n\t\ticonList.addAll(lineTypeIcons.values());\n\t\ticonArray = new Icon[iconList.size()];\n\t\tshapeNames = new String[iconList.size()];\n\n\t\tSet lineTypes = lineTypeIcons.keySet();\n\n\t\tfor (int i = 0; i < iconArray.length; i++) {\n\t\t\tnewIcon = (VisualPropertyIcon) (iconList.get(i));\n\t\t\tnewIcon.setIconHeight(16);\n\t\t\tnewIcon.setIconWidth(16);\n\t\t\ticonArray[i] = newIcon;\n\t\t\tshapeNames[i] = newIcon.getName();\n\t\t}\n\n\t\t// lineCellEditor.setAvailableValues(lineTypes.toArray());\n\t\t// lineCellEditor.setAvailableIcons(iconArray);\n\t}", "title": "" }, { "docid": "e68a4f9a22e607adb6373ba0bbcbb9c4", "score": "0.55464005", "text": "public void reCreate(){\n setColor(Color.RED);\n draw();\n drawMove();\n getShape().setOnMouseClicked(event -> {\n try {\n providerInfoBox();\n } catch (IOException e){\n\n }\n });\n }", "title": "" }, { "docid": "5e93f1affb0546736f86092d3c2d3b4b", "score": "0.55439734", "text": "@Override\n public void mouseClicked(MouseEvent e) {\n if (drawline != 0) return;\n drawline = 1;\n locx = e.getX ();\n locy = e.getY ();\n Point p1 = new Point ( locx - 15, locy - 15 );\n Point p2 = new Point ( locx + 15, locy + 15 );\n DLineModel model = new DLineModel ( p1, p2 );\n Color color = pencilcolorchoosed;\n// while (color == null || color.equals ( Color.white )) {\n// JOptionPane.showMessageDialog ( null, \"please choose a valid color!\", \"Error\", JOptionPane.INFORMATION_MESSAGE );\n// color = JColorChooser.showDialog ( jPanel, \"Set Color\", model.getColor () );\n// }\n String id = canvas.addShape ( model, null );\n canvas.recolorShape ( color );\n canvas.repaint ();\n// drawModel ( model, color, null );\n try {\n servercomInter.pubishAddModel ( id, model, color );\n } catch (RemoteException ex) {\n ex.printStackTrace ();\n }\n }", "title": "" }, { "docid": "6acbac13e94b2c0f03bf352bb1988c92", "score": "0.554304", "text": "public JComponent getDrawing();", "title": "" }, { "docid": "2e060daa639583e285195d58c32ac952", "score": "0.5542858", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n filterGroup1 = new javax.swing.ButtonGroup();\n jFileChooser1 = new javax.swing.JFileChooser();\n jColorChooser1 = new javax.swing.JColorChooser();\n jToolBar1 = new javax.swing.JToolBar();\n jButton1 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jButton7 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n jSplitPane1 = new javax.swing.JSplitPane();\n jScrollPane1 = new javax.swing.JScrollPane();\n jPanel2 = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n jCheckBox1 = new javax.swing.JCheckBox();\n jLabel1 = new javax.swing.JLabel();\n labelZoom = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n labelCursor = new javax.swing.JLabel();\n jPanel5 = new javax.swing.JPanel();\n settingTranslucent = new javax.swing.JCheckBox();\n settingAdditive = new javax.swing.JCheckBox();\n settingIgnoreZ = new javax.swing.JCheckBox();\n jLabel3 = new javax.swing.JLabel();\n settingPoint = new javax.swing.JRadioButton();\n settingLinear = new javax.swing.JRadioButton();\n jLabel5 = new javax.swing.JLabel();\n colorPanel = new javax.swing.JPanel();\n jButton5 = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n jSlider1 = new javax.swing.JSlider();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n offsetX = new javax.swing.JSpinner();\n offsetY = new javax.swing.JSpinner();\n jLabel12 = new javax.swing.JLabel();\n sizeX = new javax.swing.JSpinner();\n sizeY = new javax.swing.JSpinner();\n jToggleButton1 = new javax.swing.JToggleButton();\n jToggleButton2 = new javax.swing.JToggleButton();\n jPanel6 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n labelTexture = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n labelSize = new javax.swing.JLabel();\n sizeWarning = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n labelMaterial = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n enableAnimation = new javax.swing.JCheckBox();\n jLabel15 = new javax.swing.JLabel();\n jButton9 = new javax.swing.JButton();\n jButton10 = new javax.swing.JButton();\n jButton11 = new javax.swing.JButton();\n animFrameLabel = new javax.swing.JLabel();\n animFrames = new javax.swing.JSpinner();\n jLabel13 = new javax.swing.JLabel();\n animDelay = new javax.swing.JSpinner();\n jLabel14 = new javax.swing.JLabel();\n\n jFileChooser1.setCurrentDirectory(null);\n jFileChooser1.setDialogTitle(\"Open Material\");\n\n jToolBar1.setBackground(java.awt.SystemColor.controlHighlight);\n jToolBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jToolBar1.setFloatable(false);\n jToolBar1.setRollover(true);\n\n jButton1.setBackground(java.awt.SystemColor.controlHighlight);\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/layer_create.png\"))); // NOI18N\n jButton1.setToolTipText(\"Create new material (Ctrl+N)\");\n jButton1.setBorder(null);\n jButton1.setFocusable(false);\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton1.setMaximumSize(new java.awt.Dimension(39, 39));\n jButton1.setMinimumSize(new java.awt.Dimension(39, 39));\n jButton1.setPreferredSize(new java.awt.Dimension(39, 39));\n jButton1.setVerifyInputWhenFocusTarget(false);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n jToolBar1.add(jButton1);\n\n jButton6.setBackground(java.awt.SystemColor.controlHighlight);\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/layer_open.png\"))); // NOI18N\n jButton6.setToolTipText(\"Open material... (Ctrl+O)\");\n jButton6.setFocusable(false);\n jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton6.setVerifyInputWhenFocusTarget(false);\n jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n jToolBar1.add(jButton6);\n\n jButton7.setBackground(java.awt.SystemColor.controlHighlight);\n jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/layer_save.png\"))); // NOI18N\n jButton7.setToolTipText(\"Save material (Ctrl+S)\");\n jButton7.setFocusable(false);\n jButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n jToolBar1.add(jButton7);\n\n jButton8.setBackground(java.awt.SystemColor.controlHighlight);\n jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/layer_saveas.png\"))); // NOI18N\n jButton8.setToolTipText(\"Save material as...\");\n jButton8.setFocusable(false);\n jButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n jToolBar1.add(jButton8);\n\n jSplitPane1.setDividerLocation(260);\n jSplitPane1.setPreferredSize(new java.awt.Dimension(325, 400));\n\n jPanel2.setPreferredSize(new java.awt.Dimension(230, 775));\n\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Viewer\"));\n\n jCheckBox1.setSelected(true);\n jCheckBox1.setText(\"Checkered Background\");\n jCheckBox1.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jCheckBox1StateChanged(evt);\n }\n });\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Zoom:\");\n\n labelZoom.setText(\"100%\");\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/magnifier_zoom_in.png\"))); // NOI18N\n jButton2.setToolTipText(\"Zoom In\");\n jButton2.setBorder(null);\n jButton2.setPreferredSize(new java.awt.Dimension(24, 24));\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/magnifier_zoom_out.png\"))); // NOI18N\n jButton3.setToolTipText(\"Zoom Out\");\n jButton3.setBorder(null);\n jButton3.setPreferredSize(new java.awt.Dimension(24, 24));\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Cursor:\");\n\n labelCursor.setText(\"N/A\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox1)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(labelZoom)\n .addGap(18, 18, 18)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(labelCursor))))\n .addContainerGap(39, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jCheckBox1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(labelZoom, javax.swing.GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(11, 11, 11)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(labelCursor))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Edit\"));\n\n settingTranslucent.setSelected(true);\n settingTranslucent.setText(\"Translucent\");\n settingTranslucent.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n settingTranslucentActionPerformed(evt);\n }\n });\n\n settingAdditive.setText(\"Additive\");\n\n settingIgnoreZ.setText(\"Ignore-Z\");\n\n jLabel3.setText(\"Filtering:\");\n\n filterGroup1.add(settingPoint);\n settingPoint.setSelected(true);\n settingPoint.setText(\"Point\");\n settingPoint.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n settingPointActionPerformed(evt);\n }\n });\n\n filterGroup1.add(settingLinear);\n settingLinear.setText(\"Linear\");\n settingLinear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n settingLinearActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\"Color:\");\n\n javax.swing.GroupLayout colorPanelLayout = new javax.swing.GroupLayout(colorPanel);\n colorPanel.setLayout(colorPanelLayout);\n colorPanelLayout.setHorizontalGroup(\n colorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 48, Short.MAX_VALUE)\n );\n colorPanelLayout.setVerticalGroup(\n colorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 23, Short.MAX_VALUE)\n );\n\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/layer_rgb.png\"))); // NOI18N\n jButton5.setToolTipText(\"Pick Color\");\n jButton5.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Alpha:\");\n\n jSlider1.setMaximum(255);\n jSlider1.setToolTipText(\"255 is fully opaque\");\n jSlider1.setValue(255);\n jSlider1.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSlider1StateChanged(evt);\n }\n });\n\n jLabel10.setText(\"Texture Coordinates:\");\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/transform_layer.png\"))); // NOI18N\n jLabel11.setText(\"Offset\");\n\n offsetX.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n offsetXStateChanged(evt);\n }\n });\n\n offsetY.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n offsetYStateChanged(evt);\n }\n });\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/layer_to_image_size.png\"))); // NOI18N\n jLabel12.setText(\"Size\");\n\n sizeX.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n sizeXStateChanged(evt);\n }\n });\n\n sizeY.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n sizeYStateChanged(evt);\n }\n });\n\n jToggleButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/zoom_layer.png\"))); // NOI18N\n jToggleButton1.setText(\"Zoom to Coords\");\n jToggleButton1.setFocusable(false);\n jToggleButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButton1ActionPerformed(evt);\n }\n });\n\n jToggleButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/lock_open.png\"))); // NOI18N\n jToggleButton2.setToolTipText(\"Lock texture coordinates\");\n jToggleButton2.setFocusable(false);\n jToggleButton2.setPreferredSize(new java.awt.Dimension(24, 24));\n jToggleButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButton2ActionPerformed(evt);\n }\n });\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 .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel12))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(sizeX)\n .addComponent(offsetX, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(sizeY)\n .addComponent(offsetY, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(settingIgnoreZ)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(settingTranslucent)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(settingAdditive))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jToggleButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jToggleButton1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(settingPoint))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel5))\n .addGap(18, 18, 18)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel9))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(colorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton5)\n .addComponent(settingLinear))))))\n .addContainerGap(24, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(settingTranslucent)\n .addComponent(settingAdditive))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(settingIgnoreZ)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(settingPoint)\n .addComponent(jLabel3))\n .addComponent(settingLinear))\n .addGap(4, 4, 4)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(colorPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 23, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)\n .addComponent(jSlider1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jToggleButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(offsetX, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(offsetY, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(sizeX, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sizeY, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jToggleButton1)\n .addContainerGap())\n );\n\n jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Information\"));\n\n jLabel4.setText(\"Texture:\");\n\n labelTexture.setText(\"N/A\");\n\n jLabel6.setText(\"Size:\");\n\n labelSize.setText(\"N/A\");\n\n sizeWarning.setForeground(new java.awt.Color(153, 0, 0));\n sizeWarning.setText(\"jLabel8\");\n\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/layer_import.png\"))); // NOI18N\n jButton4.setText(\"Load Texture...\");\n jButton4.setToolTipText(\"Select texture for this material (Ctrl+T)\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jLabel8.setText(\"Material:\");\n\n labelMaterial.setText(\"Unsaved\");\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(labelMaterial, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE))\n .addComponent(jButton4)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(labelSize)\n .addComponent(sizeWarning)\n .addComponent(labelTexture, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(labelMaterial))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(labelTexture))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(labelSize))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(sizeWarning)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton4)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Animation\"));\n\n enableAnimation.setText(\"Enable Animation\");\n enableAnimation.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n enableAnimationActionPerformed(evt);\n }\n });\n\n jLabel15.setText(\"Frames:\");\n\n jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/control_start.png\"))); // NOI18N\n jButton9.setEnabled(false);\n jButton9.setPreferredSize(new java.awt.Dimension(24, 24));\n jButton9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton9ActionPerformed(evt);\n }\n });\n\n jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/control_stop.png\"))); // NOI18N\n jButton10.setEnabled(false);\n jButton10.setPreferredSize(new java.awt.Dimension(24, 24));\n jButton10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton10ActionPerformed(evt);\n }\n });\n\n jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cubetech/data/debugui/control_end.png\"))); // NOI18N\n jButton11.setEnabled(false);\n jButton11.setPreferredSize(new java.awt.Dimension(24, 24));\n jButton11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton11ActionPerformed(evt);\n }\n });\n\n animFrameLabel.setForeground(new java.awt.Color(102, 102, 102));\n animFrameLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n animFrameLabel.setText(\"1\");\n animFrameLabel.setToolTipText(\"Current Frame\");\n animFrameLabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n\n animFrames.setEnabled(false);\n animFrames.setPreferredSize(new java.awt.Dimension(40, 20));\n animFrames.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n animFramesStateChanged(evt);\n }\n });\n\n jLabel13.setText(\"FrameDelay\");\n\n animDelay.setEnabled(false);\n\n jLabel14.setText(\"ms\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(enableAnimation)\n .addComponent(animFrameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 117, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel13)\n .addGap(18, 18, 18)\n .addComponent(animDelay, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel15)\n .addGap(18, 18, 18)\n .addComponent(animFrames, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel14)\n .addGap(79, 79, 79))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(enableAnimation)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(animFrameLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(animFrames, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(animDelay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14))\n .addContainerGap())\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jScrollPane1.setViewportView(jPanel2);\n\n jSplitPane1.setLeftComponent(jScrollPane1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 668, Short.MAX_VALUE)\n .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 668, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3)\n .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 778, Short.MAX_VALUE))\n );\n }", "title": "" }, { "docid": "be49bb763152ba04646d656fcf2cef5a", "score": "0.5529628", "text": "public void setFigurePosition(int iPosition){\n\t\tbasicFigure.setLocation(getPositionX(iPosition), iFigurePosY);\n\t}", "title": "" }, { "docid": "f59d9b09325d9e43254bc7e44406eec8", "score": "0.55292666", "text": "@Override\n public void mouseClicked(MouseEvent e) {\n if (drawcircle != 0) return;\n drawcircle = 1;\n locx = e.getX ();\n locy = e.getY ();\n DOvalModel model = new DOvalModel ( locx, locy, 50, 50, Color.BLACK );\n Color color = pencilcolorchoosed;\n// while (color == null || color.equals ( Color.white )) {\n// JOptionPane.showMessageDialog ( null, \"please choose a valid color!\", \"Error\", JOptionPane.INFORMATION_MESSAGE );\n// color = JColorChooser.showDialog ( jPanel, \"Set Color\", model.getColor () );\n// }\n int ret = JOptionPane.showConfirmDialog ( null, \"Filled Shape?\", \"Please choose an option\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE );\n if (ret == JOptionPane.YES_OPTION)\n model.setHollow ( false );\n else\n model.setHollow ( true );\n String id = canvas.addShape ( model, null );\n canvas.recolorShape ( color );\n canvas.repaint ();\n// drawModel ( model, color, null );\n try {\n servercomInter.pubishAddModel ( id, model, color );\n } catch (RemoteException ex) {\n ex.printStackTrace ();\n }\n }", "title": "" }, { "docid": "27f0f4e538c043414e0cd529501c3e27", "score": "0.5523953", "text": "protected void visualizeFigure(Figure figure, PdfDrawer drawer) throws PdfActVisualizeException {\n visualizePdfElement(figure, drawer, Color.CYAN);\n }", "title": "" }, { "docid": "ab84ad65f565cd5d3ebcc1658968752b", "score": "0.5518265", "text": "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t\tif(freeDraw) {\n\t\t\tShape f = new Shape() ; \n\t\t\tf.type = \"point\" ; \n\t\t\tf.p.x = arg0.getX(); \n\t\t\tf.p.y = arg0.getY() ; \n\t\t\t \n\t\t\tif (red)\n\t\t\t f.cString = \"red\" ; \n\t\t else if (blue)\n\t\t f.cString = \"blue\" ; \n\t\t else if (green)\n\t\t\t f.cString = \"green\" ; \n\t\t\n\t\t\t shapeArr.add(f) ; \n\t\t\t repaint() ; \n\t\t\t}\n\t\t\t\n\t\t\telse if (erase) {\n\t\t\t\tShape e = new Shape() ; \n\t\t\t\te.type = \"blank\" ; \n\t\t\t\te.blnk.x = arg0.getX(); \n\t\t\t\te.blnk.y = arg0.getY() ; \n\t\t\t\n\t\t\t\tshapeArr.add(e) ; \n\t\t\t\t repaint() ;\n\t\t\t}\n\t\t\t\n\t\telse if (linShape) {\n\t\t\t\t \n\t\t l.type = \"line\" ; \n currentShape.lin.x1 = l.lin.x1 = x1 ; \n currentShape.lin.y1 = l.lin.y1 = y1 ;\n\t\t\t\t currentShape.lin.x2 = l.lin.x2 = arg0.getX() ;\n\t\t\t\t currentShape.lin.y2 = l.lin.y2 = arg0.getY() ; \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t if (red)\n\t\t\t\t\t l.cString = \"red\" ; \n\t\t\t\t else if (blue)\n\t\t\t\t\t l.cString = \"blue\" ; \n\t\t\t\t else if (green)\n\t\t\t\t\t l.cString = \"green\" ; \n\t\t\t\t \n repaint() ; \n\t \t}\n\t\t\t\n\t\telse if (cirShape) {\n\t\t\t\t\n\t\t\t c.type = \"circle\" ; \n\t\t\t\tcurrentShape.cir.isFilled = c.cir.isFilled = filled.getState() ; \n\t\t\t\t\n\t\t\t\tif (x1 < arg0.getX())\n\t\t\t\t\tcurrentShape.cir.x = c.cir.x = x1 ; \n\t\t\t\telse \n\t\t\t\t\tcurrentShape.cir.x = c.cir.x = arg0.getX() ; \n\t\t\t\t\n\t\t\t\tif (y1 < arg0.getY())\n\t\t\t\t\tcurrentShape.cir.y = c.cir.y = y1 ; \n\t\t\t\telse \n\t\t\t\t\tcurrentShape.cir.y = c.cir.y = arg0.getY() ; \n\t\t\t\t\n\t\t\t\tcurrentShape.cir.width = c.cir.width = Math.abs(x1 - arg0.getX() ) ;\n\t\t\t\tcurrentShape.cir.height = c.cir.height = Math.abs(y1 - arg0.getY() ) ;\n\t\t\t\t if (red)\n\t\t\t\t\t c.cString = \"red\" ; \n\t\t\t\t else if (blue)\n\t\t\t\t\t c.cString = \"blue\" ; \n\t\t\t\t else if (green)\n\t\t\t\t\t c.cString = \"green\" ; \n\t\t\t\t \n\t\t\t\t repaint() ; \n\t\t\t}\n\t\t\t\n\t\t\telse if (rectShape) {\n\t\t\t\t\n\t\t\t\t r.type = \"rectangle\" ; \n\t\t\t\t\n\t\t\t\tcurrentShape.rect.isFilled = r.rect.isFilled = filled.getState() ; \n\t\t\t\tif (x1 < arg0.getX())\n\t\t\t\t\tcurrentShape.rect.x = r.rect.x = x1 ; \n\t\t\t\telse \n\t\t\t\t\tcurrentShape.rect.x = r.rect.x = arg0.getX() ; \n\t\t\t\t\n\t\t\t\tif (y1 < arg0.getY())\n\t\t\t\t\tcurrentShape.rect.y = r.rect.y = y1 ; \n\t\t\t\telse \n\t\t\t\t\tcurrentShape.rect.y = r.rect.y = arg0.getY() ; \n\t\t\t\t\n\t\t\t\tcurrentShape.rect.width = r.rect.width = Math.abs(x1 - arg0.getX() ) ;\n\t\t\t\tcurrentShape.rect.height = r.rect.height = Math.abs(y1 - arg0.getY() ) ;\n\t\t\t\t if (red)\n\t\t\t\t\t r.cString = \"red\" ; \n\t\t\t\t else if (blue)\n\t\t\t\t\t r.cString = \"blue\" ; \n\t\t\t\t else if (green)\n\t\t\t\t\t r.cString = \"green\" ; \n\t\t\t\t \n\t\t\t\t repaint() ;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1845880dfe82b5c332bd8b14d591a60a", "score": "0.5508863", "text": "private synchronized void \n doEditChart() \n {\n if(pCurrentViewerPie == null) \n return;\n\n Histogram hist = pCurrentViewerPie.getHistogram();\n String name = hist.getName();\n if(name.equals(\"SystemLoad\")) {\n// JFloatHistogramSpecDialog diag = new JFloatHistogramSpecDialog(getTopFrame());\n// diag.updateHistogramSpec(pCurrentViewerPie.getHistogram()); \n \n// diag.setVisible(true);\n// if(diag.wasConfirmed()) {\n// \tHistogramSpec spec = diag.getHistogramSpec(); \n// \tif(spec != null) {\n// \t pNewHistogramSpecs = new QueueHostHistogramSpecs(pHistograms);\n// \t pNewHistogramSpecs.setLoadSpec(spec);\n\n// \t updatePanels();\n// \t}\n// }\n }\n else if(name.equals(\"FreeMemory\")) {\n\n // ...\n\n } \n else if(name.equals(\"FreeMemory\")) {\n\n // ...\n\n } \n }", "title": "" }, { "docid": "8df4ab3d7a78c097f132a804a28813b5", "score": "0.55067307", "text": "private void drawVisualInterface(){\n BorderPane borderPane = new BorderPane();\n borderPane.setTop(setUpCurrencyChoices());\n borderPane.setCenter(setUpCurrencyInformation());\n calculate = new Button(\"Calculate\");\n borderPane.setBottom(calculate);\n scene = new Scene(borderPane, SCENE_WIDTH, SCENE_HEIGHT);\n }", "title": "" }, { "docid": "7d9b469a95c143d213358e15be42477c", "score": "0.55050945", "text": "public void handle(MouseDragEvent event)\n {\n \tif(event.getSceneX() > centerWidth/2 - gardenWidth/2 && event.getSceneX() < centerWidth/2 + gardenWidth/2 &&\n \t\t\tevent.getSceneY() > height - centerHeight/2 - gardenHeight/2 && \n \t\t\tevent.getSceneY() < height - centerHeight/2 + gardenHeight/2) {\n \t\t\n\t \tint index = plantList.getSelectionModel().getSelectedIndex();\n\t \tHBox selected = plantList.getSelectionModel().getSelectedItem();\n\t\n\t \t//make a copy of selected ImageView to put in plot Pane\n\t \tint price;\n\t \tdouble imDiameter = 0;\n\t \tif(favorited.get(index).getType() == PlantType.HERBACIOUS) {\n\t \t\tprice = 6;\n\t \t} else {\n\t \t\tprice = 20;\n\t \t}\n\t \t\n \t\tswitch(favorited.get(index).getSpread()) {\n\t \t\tcase SMALL:\n\t \t\t\timDiameter = .75;\n\t \t\t\tbreak;\n\t \t\tcase MEDIUM:\n\t \t\t\timDiameter = 1;\n\t \t\t\tbreak;\n\t \t\tcase LARGE:\n\t \t\t\timDiameter = 1.25;\n\t \t\t\tbreak;\n\t \t\tcase XL:\n\t \t\t\timDiameter = 1.5;\n\t \t\t\tbreak;\n\t \t}\n \t\tdouble rad = (imDiameter/2)*gardenWidth/model.getWidth();\n \t\tboolean intersect = false;\n \t\tint placeX = (int)(event.getSceneX() - plot.getLayoutX() - imDiameter*(gardenWidth/model.getWidth())/2);\n\t \tint placeY = (int)(event.getSceneY() - countBarHeight - plot.getLayoutY() - (outerPlot.getLayoutY() - countBarHeight) - rad);\n \t\tfor(Map.Entry<Circle, Plant> entry : plantCircles.entrySet()) {\n \t\tCircle e = (Circle) entry.getKey();\n \t \t\tdouble distSq = (placeX - e.getCenterX()) * (placeX - e.getCenterX()) + \n \t \t\t\t\t(placeY - e.getCenterY()) * (placeY - e.getCenterY());\n \t \t double radSumSq = (rad + e.getRadius()) * (rad + e.getRadius());\n \t \t if(distSq < radSumSq) {\n \t \t \tSystem.out.println(\"They intersect...\");\n \t \t \tintersect = true;\n \t \t }\n \t\t}\n \t\t\n \t\tif(!intersect) {\n \t\t\tPlant p = favorited.get(index).clone();\n\t\t \tp.setX(placeX);\n\t\t \tp.setY(placeY);\n\t\t \tp.setDiameter(imDiameter);\n\t\t \t\n\t\t \tCircle circ1 = new Circle();\n\t\t \tcirc1.setRadius(rad);\n\t\t \tcirc1.setCenterX(placeX);\n\t\t \tcirc1.setTranslateX(placeX);\n\t\t \tcirc1.setCenterY(placeY);\n\t\t \tcirc1.setTranslateY(placeY);\n\t\t \tcirc1.setFill(new ImagePattern(p.getIm()));\n\t\t \tp.setCircle(circ1);\n\t\t \t\n\t\t \tplantCircles.put(circ1, p);\n\t\t \t\n\t\t \t//Hover over\n\t\t \tTooltip hoverOver = new Tooltip(p.getComName());\n\t\t \thoverOver.setText(p.toString() + \"\\n\" + p.getDetails());\n\t\t \tTooltip.install(circ1, hoverOver);\n\t\t \tImageView newImg = new ImageView(p.getIm());\n\t\t \tnewImg.setPreserveRatio(true);\n\t\t \tnewImg.setFitWidth(100);\n\t\t \thoverOver.setGraphic(newImg);\n\t\t \n\t\t \tupdateLeps(p.getLepsSupported());\n\t\t \tcont.updateBudget(price);\n\t\t \tupdateBudget(price);\n\t\t \t\n\t\t \tborder.setTop(drawCountBar(makeMarketButton(), drawBudget(), drawLeps()));\n\t\t\n\t\t \t\n\t\t \t//put dragged Node back into list in same place\n\t\t \tbackingList.set(index, selected);\n\t\t \t\n\t\t \tp.setX(circ1.getTranslateX());\n\t\t \tp.setY(circ1.getTranslateY());\n\t\t \tcont.addPlant(p);\n\t\t\n\t\t \tcirc1.setOnMousePressed(event1 -> pressed(event1));\n\t\t \tcirc1.setOnMouseDragged(event2 -> drag(event2));\n\t\t \tcirc1.setOnMouseReleased(event3 -> released(event3)); \n\t\t \tcirc1.setOnMouseClicked(new EventHandler<MouseEvent>(){\n\t\t public void handle(MouseEvent event) {\n\t\t MouseButton button = event.getButton();\n\t\t if(button==MouseButton.SECONDARY){\n\t\t \tplot.getChildren().remove(circ1);\n\t\t \tcont.removePlant(plantCircles.get(circ1));\n\t\t \tplantCircles.remove(circ1);\n\t\t \tdeletionBudget(price);\n\t\t \tcont.removalBudget(price);\n\t\t \tdeletionLeps(p.getLepsSupported());\n\t\t \tborder.setTop(drawCountBar(makeMarketButton(), drawBudget(), drawLeps()));\n\t\t }\n\t\t }\n\t\t });\n\t\t\n\t\t \tplot.getChildren().add(circ1);\n\t\t \tcirc1.toFront();\n\t\t \n\t\t \tevent.consume();\n \t\t}\n \t}\n }", "title": "" }, { "docid": "42a52dbc236df87500a924a71624b201", "score": "0.5504424", "text": "private void updateUI() {\n model.updateAreaCharts();\n }", "title": "" }, { "docid": "857ee8a7a7171c3cb7381f7f9204602f", "score": "0.5502182", "text": "void selectedShape();", "title": "" }, { "docid": "633f5c7f7823d99913d154e69aec11bf", "score": "0.54989284", "text": "public void showDetails() {\n int mouseClr = idView.get(mouseX-graphicsX, mouseY-graphicsY);\n\n push();\n scale(scaleFactor);\n\n for (StateEntry se : thisStateEntries) {\n PShape shapeState = shapeStatesMap.get(se.stateCode);\n int shapeClr = statesColoursMap.get(se.stateCode);\n\n // compare colour values: if same, the mouse is over current state\n if (mouseClr == shapeClr) {\n // select and draw current\n int stateClr = color(255, (255 - se.transparency), (255 - se.transparency));\n shapeState.setFill(stateClr);\n shapeState.setStroke(true);\n shapeState.setStroke(darkGray);\n shapeState.setStrokeWeight(1);\n\n shape(shapeState, graphicsX / scaleFactor, graphicsY / scaleFactor);\n\n noStroke();\n if (se.plantedArea != 0) {\n int[] xy = coordinatesMap.get(se.stateCode);\n int size = PApplet.parseInt(map(se.plantedArea, 13901, 1536310, 10, 70));\n fill(green);\n ellipse(xy[0], xy[1], size, size);\n }\n\n fill(darkGray);\n textAlign(CENTER);\n textSize(18);\n text(se.stateName, width/2/scaleFactor, height*5/7/scaleFactor+50);\n textSize(14);\n text(\"Number of fires: \" + se.numOfFires, width/2/scaleFactor, height*5/7/scaleFactor+70);\n\n if (se.plantedArea != 0)\n text(\"Planted forests area: \" + se.plantedArea + \" ha\", width/2/scaleFactor, height*5/7/scaleFactor+90);\n }\n }\n\n pop();\n}", "title": "" }, { "docid": "c12654ada3df34668028a9c58540c7a2", "score": "0.54975915", "text": "public void updatePanel() \n\t{\n\t\tthis.removeAll();\n\t\tdrawPanelLines();\n\t\t\n\t\tfor(DraggableIcon currico:DataHandler.getIconRecord()) \n\t\t{\n\t\t\tthis.add(currico);\t\n\t\t}\n\t\t\n\t\tthis.repaint();\n\t}", "title": "" }, { "docid": "f720e17db46608828274ffc8d8fe7441", "score": "0.5496382", "text": "public void mousePressed() {\n flowfield.init();\n}", "title": "" }, { "docid": "420b98da2afb43ef5b0e655bb55e97b4", "score": "0.5495276", "text": "private void addListenerToSegDisplay(){\n \t\tComponent[] components = impSegmentationDisplay.getWindow().getComponents();\n\t\tfor(Component comp : components){\n\t\t\tif( comp instanceof ScrollbarWithLabel){ \t\t\t\t\n\t\t\t\tScrollbarWithLabel scrollBar = (ScrollbarWithLabel) comp;\n\t\t\t\tComponent[] components2 = scrollBar.getComponents();\n\t\t\t\tfor(Component comp2 : components2){\n\t\t\t\t\tif( comp2 instanceof Scrollbar){\n\t\t\t\t\t\tScrollbar scrollBar2 = (Scrollbar) comp2;\n\t\t\t\t\t\tscrollBar2.addAdjustmentListener( new AdjustmentListener(){\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\t\t\t\t\tpos[displayOrient] = impSegmentationDisplay.getSlice();\n\t\t\t\t\t\t\t\tpreview();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\t\t\t\n\t\t\n\t\t\n\t\timpListener = new ImageListener(){\n\n\t\t\t@Override\n\t\t\tpublic void imageClosed(ImagePlus imp) {\n\t\t\t\t\n\t\t\t\t//ImagePlus.removeImageListener(this);\n\t\t\t\t//if( imp.equals(impSegmentationDisplay)){\n\t\t\t\t//\timpSegmentationDisplay.flush();\n\t\t\t\t//\timpSegmentationDisplay = null;\n\t\t\t\t//\tupdateSegmentationDisplay();\n\t\t\t\t//\trender();\n\t\t\t\t//}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void imageOpened(ImagePlus arg0) {\t}\n\n\t\t\t@Override\n\t\t\tpublic void imageUpdated(ImagePlus arg0) {\n\t\t\t\tImagePlus.removeImageListener(this);\n\n\t\t\t\tpos[displayOrient] = impSegmentationDisplay.getSlice();\n\t\t\t\tif ( pos[displayOrient] != previous.get(\"pos\") )\n\t\t\t\t\tpreview();\n\t\t\t\t\n\t\t\t\tImagePlus.addImageListener(this);\n\t\t\t}\t\n\t\t};\n\t\t\n\t\tImagePlus.addImageListener(impListener); // not always satisfying does not always register the action\n\t\t\n\t\t\n\t\timpSegmentationDisplay.getCanvas().addMouseMotionListener( this );\n\t\t\n\t\t/*\n\t\tKeyListener keyListener = new KeyListener(){\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tpos[displayOrient] = impSegmentationDisplay.getSlice();\n\t\t\t\tpreview();\t\n\t\t\t\tSystem.out.println(\"hello key pressed\");\n\t\t\t\te.consume();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) { System.out.println(\"hello key typed\");}\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) { System.out.println(\"hello key released\");}\n\t\t};\n\t\t*/\n\t\t\n\t\t//impSegmentationDisplay.getCanvas().addKeyListener( keyListener );\n\t\t//impSegmentationDisplay.getWindow().addKeyListener( keyListener );\n\t\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "cbccb740e89f0f1064c669d621cadabb", "score": "0.5495008", "text": "public Component createView(BufferedImage main, BufferedImage filter, JTabbedPane tabs){\r\n\t\t\tJPanel con = new JPanel(new BorderLayout());\r\n\t\t\tSpriteSavingList currentList = new SpriteSavingList(new DefaultListModel<>());\r\n\t\t\tsprites.forEach((s) -> ((DefaultListModel<Sprite>) currentList.getModel()).addElement(s));\r\n\t\t\tcurrentList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\t\tJScrollPane listScroll = new JScrollPane(currentList);\r\n\t\t\tlistScroll.setBorder(new CompoundBorder(new EmptyBorder(10, 10, 10, 10), listScroll.getBorder()));\r\n\t\t\tJPanel westCon = new JPanel(new BorderLayout());\r\n\t\t\twestCon.add(Utils.call(new JLabel(\"Select sprite:\"), (c) -> c.setBorder(new EmptyBorder(10, 10, 0, 10))), BorderLayout.NORTH); //Overly complicated, but fun\r\n\t\t\twestCon.add(listScroll, BorderLayout.CENTER);\r\n\t\t\tcon.add(westCon, BorderLayout.WEST);\r\n\t\t\tJPanel centerCon = new JPanel(new BorderLayout());\r\n\t\t\tJSpriteViewer currentSprite = new JSpriteViewer(main, filter);\r\n\t\t\tJTextArea details = new JTextArea();\r\n\t\t\tdetails.setBorder(new EmptyBorder(10, 20, 10, 20));\r\n\t\t\tcurrentList.setDetailsArea(details);\r\n\t\t\tJPanel southCon = new JPanel(new BorderLayout());\r\n\t\t\tsouthCon.add(details, BorderLayout.CENTER);\r\n\t\t\tJPanel options = new JPanel(new GridLayout(2, 2));\r\n\t\t\t// OPTIONS\r\n\t\t\tJRadioButton jrbMain = new JRadioButton(\"Show main image\", true);\r\n\t\t\tJRadioButton jrbFilt = new JRadioButton(\"Show Filter image\", false);\r\n\t\t\tif(filter == null) jrbFilt.setEnabled(false);\r\n\t\t\tButtonGroup group = new ButtonGroup();\r\n\t\t\tgroup.add(jrbMain);\r\n\t\t\tgroup.add(jrbFilt);\r\n\t\t\tcurrentList.setRadioButtons(jrbMain, jrbFilt);\r\n\t\t\t\r\n\t\t\tJCheckBox highlight = new JCheckBox(\"Highlight in image\", false);\r\n\t\t\tJButton animation = new JButton(\"Animations\");\r\n\t\t\tcurrentList.setHighlightButton(highlight, animation);\r\n\t\t\toptions.add(jrbMain);\r\n\t\t\toptions.add(jrbFilt);\r\n\t\t\toptions.add(highlight);\r\n\t\t\toptions.add(animation);\r\n\t\t\toptions.setBorder(new EmptyBorder(10, 10, 10, 10));\r\n\t\t\t// /OPTIONS\r\n\t\t\tsouthCon.add(options, BorderLayout.EAST);\r\n\t\t\tcenterCon.add(southCon, BorderLayout.SOUTH);\r\n\t\t\tJPanel jspBorder = new JPanel(new BorderLayout());\r\n\t\t\tjspBorder.setBorder(new EmptyBorder(20, 20, 20, 20));\r\n\t\t\tjspBorder.add(currentSprite, BorderLayout.CENTER);\r\n\t\t\tcenterCon.add(jspBorder, BorderLayout.CENTER);\r\n\t\t\tcon.add(centerCon, BorderLayout.CENTER);\r\n\t\t\t\r\n\t\t\tcurrentList.setJSP(currentSprite);\r\n\t\t\tif(currentList.getModel().getSize() > 0) currentList.setSelectedIndex(0);\r\n\t\t\t\r\n\t\t\treturn con;\r\n\t\t}", "title": "" }, { "docid": "c012c71d2fc1d62ce7f6f66f622826f2", "score": "0.54948026", "text": "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\t\n\t}", "title": "" }, { "docid": "a0545a216a1b76c179243f1ac96feb93", "score": "0.54937094", "text": "public PickObjectInternalFrame(MainImageDisplay imageDisplay) {\n super(\"Pick Object\");\n pickObject = new PickObject(this, imageDisplay);\n getContentPane().add(pickObject, BorderLayout.CENTER);\n pack();\n setClosable(true);\n setIconifiable(false);\n setMaximizable(false);\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n Preferences.manageLocation(this);\n setVisible(true);\n }", "title": "" }, { "docid": "a9df3b2710854f0942f81402dcb99abe", "score": "0.5493551", "text": "private void buildPanel(Graphics g) {\n int size = ROOT.getSelected().size();\n offsetX = 0;\n offsetY = 0;\n if (size == 1) {\n g.fillOval(5, 5, ovalSize, ovalSize);\n } else if (size > 1) {\n Vector b1 = ROOT.getSelected().get(0).getPosition();\n Vector b2 = ROOT.getSelected().get(1).getPosition();\n int y1 = b1.getY();\n int y2 = b2.getY();\n int x1 = b1.getX();\n int x2 = b2.getX();\n if (x1 == x2) { // NW to SE\n g.fillOval(5, 5, ovalSize, ovalSize);\n g.fillOval(34, 56, ovalSize, ovalSize);\n if (ROOT.getSelected().get(1).equals(source)) {\n offsetX = -34;\n offsetY = -56;\n }\n if (size == 3) {\n g.fillOval(64, 107, ovalSize, ovalSize);\n if (ROOT.getSelected().get(2).equals(source)) {\n offsetX = -64;\n offsetY = -120;\n }\n }\n } else if (y1 == y2) { // W to E\n g.fillOval(5, 5, ovalSize, ovalSize);\n g.fillOval(64, 5, ovalSize, ovalSize);\n if (ROOT.getSelected().get(1).equals(source)) {\n offsetX = -60;\n }\n if (ROOT.getSelected().size() == 3) {\n g.fillOval(123, 5, ovalSize, ovalSize);\n if (ROOT.getSelected().get(2).equals(source)) {\n offsetX = -130;\n }\n }\n } else { // SW to NE\n offsetX = -64;\n g.fillOval(64, 5, ovalSize, ovalSize);\n g.fillOval(35, 56, ovalSize, ovalSize);\n if (ROOT.getSelected().get(1).equals(source)) {\n offsetX = -35;\n offsetY = -50;\n }\n if (size == 3) {\n g.fillOval(5, 107, ovalSize, ovalSize);\n if (ROOT.getSelected().get(2).equals(source)) {\n offsetX = 0;\n offsetY = -107;\n }\n }\n }\n }\n validate();\n }", "title": "" }, { "docid": "b1fe1516ea33a418e2489dba2125db46", "score": "0.5492256", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tcollpaseDataPanel.attachData( plotData );\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "0cb0a6d743adbadea784447820bb589e", "score": "0.5489794", "text": "public void handle(MouseEvent event)\n {\n\n\n if(shape == \"rectangle\")\n {\n\n\n\n if(event.getEventType() == MouseEvent.MOUSE_PRESSED)\n {\n rect = new Rectangle();\n rect.setVisible(true);\n rect.setTranslateX(event.getX());\n rect.setTranslateY(event.getY());\n //rect.setTranslateX(event.getX());\n //rect.setTranslateY(event.getY());\n\n\n }\n\n else if(event.getEventType() == MouseEvent.MOUSE_DRAGGED)\n {\n //rect.setX(rect.getTranslateX());\n //rect.setY(rect.getTranslateY());\n rect.setWidth(event.getX() - rect.getTranslateX());\n rect.setHeight(event.getY() - rect.getTranslateY());\n rect.setStroke(BLACK);\n\n rect.setFill(WHITE);\n if(canvas.getChildren().contains(rect))\n {\n canvas.getChildren().remove(canvas.getChildren().size() - 1);\n }\n canvas.getChildren().add(rect);\n\n\n }\n\n else if(event.getEventType() == MouseEvent.MOUSE_RELEASED)\n {\n rect.setFill(colorPick);\n\n System.out.println(shapeList.size());\n System.out.println(canvas.getChildren());\n canvas.getChildren().clear();\n shapeList.add(rect);\n canvas.getChildren().addAll(shapeList);\n\n }\n\n\n }\n else if(shape == \"circle\")\n {\n\n if(event.getEventType() == MouseEvent.MOUSE_PRESSED)\n {\n\n circle = new Circle();\n circle.setCenterX(event.getX());\n circle.setCenterY(event.getY());\n }\n\n else if(event.getEventType() == MouseEvent.MOUSE_DRAGGED)\n {\n\n\n }\n\n else if(event.getEventType() == MouseEvent.MOUSE_RELEASED)\n {\n\n }\n\n }\n\n\n\n\n //canvas.getChildren().addAll(shapeList);\n // canvas.getChildren()\n\n }", "title": "" }, { "docid": "871fe841d194b65272b1da8d8d2e5a51", "score": "0.54847467", "text": "public abstract void setGraphicOptions(GraphicOptions opt);", "title": "" }, { "docid": "9d4c3d5a0e698796b888e8cd7a2feb83", "score": "0.54844576", "text": "@Override\n public void mouseMoved(MouseEvent e)\n {\n PDRectangle cropBox = page.getCropBox();\n float height = cropBox.getHeight();\n float width = cropBox.getWidth();\n float offsetX = cropBox.getLowerLeftX();\n float offsetY = cropBox.getLowerLeftY();\n float zoomScale = zoomMenu.getPageZoomScale();\n float x = e.getX() / zoomScale * (float) defaultTransform.getScaleX();\n float y = e.getY() / zoomScale * (float) defaultTransform.getScaleY();\n int x1;\n int y1;\n switch ((RotationMenu.getRotationDegrees() + page.getRotation()) % 360)\n {\n case 90:\n x1 = (int) (y + offsetX);\n y1 = (int) (x + offsetY);\n break;\n case 180:\n x1 = (int) (width - x + offsetX);\n y1 = (int) (y - offsetY);\n break;\n case 270:\n x1 = (int) (width - y + offsetX);\n y1 = (int) (height - x + offsetY);\n break;\n case 0:\n default:\n x1 = (int) (x + offsetX);\n y1 = (int) (height - y + offsetY);\n break;\n }\n String text = \"x: \" + x1 + \", y: \" + y1;\n\n // are we in a field widget or a link annotation?\n Cursor cursor = Cursor.getDefaultCursor();\n currentURI = \"\";\n for (Entry<PDRectangle,String> entry : rectMap.entrySet())\n {\n if (entry.getKey().contains(x1, y1))\n {\n String s = rectMap.get(entry.getKey());\n text += \", \" + s;\n if (s.startsWith(\"URI: \"))\n {\n currentURI = s.substring(5);\n cursor = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);\n }\n break;\n }\n }\n panel.setCursor(cursor);\n\n statuslabel.setText(text);\n }", "title": "" }, { "docid": "76f2487bec51d8d0bfbfc08aa9028ec1", "score": "0.5482693", "text": "@Override\n public void componentOpened() {\n java.awt.EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n jmeVisualization = new JMEVisualization();\n jmeVisualization.setWidth(getVisualizationPanel().getWidth()-15);\n jmeVisualization.setHeight(getVisualizationPanel().getHeight()-30);\n\n jmeVisualization.startApplication();\n jmeCanvas = jmeVisualization.getJmeCanvasContext().getCanvas();\n \n getVisualizationPanel().setLayout(new FlowLayout());\n getVisualizationPanel().add(jmeCanvas);\n getVisualizationPanel().revalidate();\n }\n }); \n\n }", "title": "" }, { "docid": "c9611186de05823186fbc44bdd22e327", "score": "0.5476135", "text": "public Component draw() {\n JPanel panel = new JPanel();\n panel.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n \n GridBagLayout gb = new GridBagLayout();\n GridBagConstraints gc = new GridBagConstraints();\n panel.setLayout(gb);\n \n gc.fill = GridBagConstraints.HORIZONTAL;\n gc.anchor = GridBagConstraints.NORTH;\n gc.gridwidth = GridBagConstraints.REMAINDER;\n gc.weightx = 1.0d;\n gc.weighty = 0d;\n \n panel.add(drawStockMenuPane(), gc);\n \n gc.weighty = 1.0;\n gc.fill = GridBagConstraints.BOTH;\n panel.add(drawStockMainPane(), gc);\n\t\t\n return panel;\n }", "title": "" }, { "docid": "bb862c2f2bbb804ab206ebb0ac31aeda", "score": "0.5474638", "text": "public void setup() {\n\t\tdataset = new XYSeriesCollection();\r\n\t\tJFreeChart chart = createChart(dataset);\r\n\t\tChartPanel chartPanel = new ChartPanel(chart);\r\n\t\tchartPanel.setPreferredSize(new java.awt.Dimension(600, 400));\r\n\t\t// this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\tsetContentPane(chartPanel);\r\n\t}", "title": "" }, { "docid": "8de083655b24614e3ca2cf02c9dbc1d0", "score": "0.54738826", "text": "public interface ShapeObject extends PlotViewStatusListener, PlotPaintListener {\n\n public LineShape getLineShape();\n\n public StringShape getStringShape();\n\n public void addPlotView(PlotContainer container);\n\n public void removePlotView(PlotContainer container);\n}", "title": "" }, { "docid": "04b522a3963834aa7fc7d644052e771e", "score": "0.5472372", "text": "public void setVisualAttributes(Hashtable newVisualAttributes) \r\n{\r\n background = (Color) newVisualAttributes.get( \"bkgnd\" );\r\n pointerOffFill = (Color) newVisualAttributes.get( \"ptrOffFl\" );\r\n pointerOffOutline = (Color) newVisualAttributes.get( \"ptrOffOl\" );\r\n pointerOffSymbolOutline = (Color) newVisualAttributes.get( \"ptrOffSymOl\" );\r\n pointerOffSymbolFill = (Color) newVisualAttributes.get( \"ptrOffSymFl\" );\r\n pointerOnFill = (Color) newVisualAttributes.get( \"ptrOnFl\" ); \r\n pointerOnOutline = (Color) newVisualAttributes.get( \"ptrOnOl\" ); \r\n pointerOnSymbolOutline = (Color) newVisualAttributes.get( \"ptrOnSymOl\" ); \r\n pointerOnSymbolFill = (Color) newVisualAttributes.get( \"ptrOffSymFl\" );\r\n pressedSymbolOutline = (Color) newVisualAttributes.get( \"pressedSymOl\" );\r\n pressedSymbolFill = (Color) newVisualAttributes.get( \"pressedSymOl\" );\r\n}", "title": "" }, { "docid": "17d79a25835da94a08c47036e5bfd96e", "score": "0.54681987", "text": "public void setPaneData( NCMapRenderableDisplay dispPane ) throws VizException {\n\n\t\t// Note that the currently selected paneId doesn't have to match the \n\t\t// dispPane's paneId.\n\t\t//\n\n\t\t// loop through the resources and add them \n \t \tfor( ResourcePair rp : dispPane.getDescriptor().getResourceList() ) {\n \t \t\tif( rp.getResourceData() instanceof INatlCntrsResourceData ) {\n \t \t\t\ttry {\n \t \t\t\t\tResourceSelection rscSel = \n \t \t\t\t\t\tResourceFactory.createResource( rp );\n \t \t\t\t\n \t \t\t\t\taddSelectedResource( rscSel );\t\n \t \t\t\t\n \t \t\t\tif( rscSel.getResourceData() instanceof AbstractNatlCntrsRequestableResourceData ) {\n// \t \t\t\t\ttimelineControl.addAvailDomResource( (AbstractNatlCntrsRequestableResourceData) rbt.getResourceData() );\n \t \t\t\t} \t\t\t\n \t \t\t\t}\n \t \t\t\tcatch( VizException ve ) {\n \t \t\t\tSystem.out.println(\"Unable to load Resource:\"+\n \t \t\t\t\t((INatlCntrsResourceData)rp.getResourceData()).\n \t \t\t\t\t getResourceName().toString() );\n \t \t\t\tcontinue;\n \t \t\t\t}\n \t \t\t}\n \t \t\telse if( !rp.getProperties().isSystemResource() ) {\n \t \t\t\tSystem.out.println(\"Unable to load non-NC non-System Resource:\"+rp.getResourceData().toString() );\n \t \t\t}\n \t \t}\n\t\t//how to set size-of-image if the imported zoom level is not -1? we can't even tell if \n//\t\tit has been changed from the original size-of-image???\n\n\t\t// set the areaName and if not a regular PredefinedArea (ie from \n\t\t// a resource or from a display that has been changed from the original \n\t\t// area, then we need to add this as an option in the list.\n \t// (we have to do this after setting the selected resources since \n \t// for resource specified areas the area must be in the list of available areas)\n\t\t//\n\t\tPredefinedArea currArea = dispPane.getCurrentArea();\n\t\tPredefinedArea initialArea = dispPane.getInitialArea();\n\n\t\t// the name of the selected area will be the current area of the imported display\n\t\t// unless the area has not been changed and the initial area is a predefined area\n\t\tString seldAreaName = currArea.getAreaName();\n\n\t\taddAvailAreaProvider( currArea );\n\t\t\n\t\tif( initialArea != null ) { // sanity check ; should only happen for out of date Rbds.\n\t\t\t\n\t\t\tif( initialArea.getAreaSource() != AreaSource.DISPLAY_AREA ) {\n\t\t\t\t\n\t\t\t\tif( PredefinedArea.areAreasEqual( initialArea, currArea ) ) {\n\t\t\t\t\t\n\t\t\t\t\tseldAreaName = initialArea.getAreaName();\t\t\t\t\t\n \t}\n\t\t\t\telse if( initialArea.getAreaSource() == AreaSource.RESOURCE_DEFINED ) {\n \t\n\t\t\t\t\t// set the selected area but also need to update the area with the zoom level\n\t\t\t\t\t// since it was created (when the resource was added) with the default zoom level.\n\t\t\t\t\t// TODO : will need to change the availAreaProvidersMap to be PredefinedAreas in order to support this.\n\t\t\t\t\t//\n\t\t\t\t\tseldAreaName = initialArea.getAreaName();\t\t\t\t\t\n\n\t\t\t\t\tif( initialArea.getZoomLevel().equals( ZoomLevelStrings.SizeOfImage.toString() ) ) {\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n \t}\n \telse {\n\t\t\tSystem.out.println(\"Initial Area not set in RBD???\");\n \t}\n\n\t\ttry {\n\t\t\tsetAreaProviderName( seldAreaName );\n\t\t}\n\t\tcatch ( VizException ve ) {\n\t\t\tsetAreaProviderName( NmapCommon.getDefaultMap() );\n\t\t}\n \t\n//\t\tsetSelectedPaneId( paneId ); \t \n\t}", "title": "" } ]
f5ee2f6c4a5d2eb3771858df10cb83df
other test whether the user is in the liked list
[ { "docid": "e991ddfcc8f2e685425e4ae8af2579e0", "score": "0.79140174", "text": "public boolean testLiked(String username){\n\t\tboolean exist = false;\n\t\tif(!likedList.isEmpty()){\n\t\t\tfor(Student student : likedList){\n\t\t\t\tif(student.getUsername().equals(username)){\n\t\t\t\t\texist = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn exist;\n\t}", "title": "" } ]
[ { "docid": "0fc8ff7ff23b620ad5984e3b6a78c670", "score": "0.75208306", "text": "public void isLiked(final LikeStatusCallback<Boolean> callback) {\n ParseRelation<User> likes = getRelation(FIELD_LIKES);\n ParseQuery<User> query = likes.getQuery();\n query.whereEqualTo(\"objectId\", ParseUser.getCurrentUser().getObjectId());\n query.findInBackground(new FindCallback<User>() {\n @Override\n public void done(List<User> users, ParseException e) {\n callback.done(users.size() > 0, e);\n }\n });\n }", "title": "" }, { "docid": "fddebe74db2eec9b13d792d0637b4cde", "score": "0.68412083", "text": "public void like(){\n\t\t\n\t\t\tcommentLikes.add(MainActivity.session.user.email);\n\t}", "title": "" }, { "docid": "0e361b643608a684e95436bdbf8709e0", "score": "0.653332", "text": "void like(long userId, long postId);", "title": "" }, { "docid": "8bf742e10492009bbd29e0c5e7103e9f", "score": "0.65191555", "text": "private boolean isFavorited() {\n boolean favorite = false;\n for (String elem : Util.getCurrentUser().getFavouriteUsers()) {\n if (elem.equalsIgnoreCase(selectedProfile.getUsername())) {\n favorite = true;\n }\n }\n return favorite;\n }", "title": "" }, { "docid": "ec04e6c88a92f36968b72fe507f485c3", "score": "0.651142", "text": "void like(Tweet tweet, User user);", "title": "" }, { "docid": "5e77747ef1b76a4fdb301ccc1bbc6d41", "score": "0.63244", "text": "public boolean isLiked() {\r\n\t\treturn isLiked;\r\n\t}", "title": "" }, { "docid": "60f130962628164a0fbd9bad72283e01", "score": "0.6244664", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic boolean isWishLiked(long wishID) {\n\t\tSetting setting = settings_.get(LIKES);\n\t\tArrayList<Long> likes = (ArrayList<Long>) setting.getValue();\n\t\tfor (long id : likes)\n\t\t\tif (id == wishID)\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b885d2c5bb9ea6f00665efb58e02e25d", "score": "0.6222086", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Likes)) {\n return false;\n }\n Likes other = (Likes) object;\n if ((this.likeid == null && other.likeid != null) || (this.likeid != null && !this.likeid.equals(other.likeid))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "e906af0ffc2402aee4911c5b04113e8a", "score": "0.6217487", "text": "public void like()\n\t {\n\t \tlikes++;\n\t }", "title": "" }, { "docid": "d0f3919dd8fa475effc42f4d6aa8d60b", "score": "0.6147256", "text": "public Boolean getIsLiked() {\n return mIsLiked;\n }", "title": "" }, { "docid": "146cc386f565bc73c3dd0cf64f498995", "score": "0.6096921", "text": "public boolean likesPost(String userID, int postID) {\n\t\treturn getLikeInfo(userID, postID, MyDBInfo.LIKE_TABLE);\n\t}", "title": "" }, { "docid": "c82ecddc98c698eb31d499bf3676f80e", "score": "0.60626966", "text": "public Likes(Users userLiked, Posts post) {\n\t\tsuper();\n\t\tthis.userLiked = userLiked;\n\t\tthis.post = post;\n\t}", "title": "" }, { "docid": "642572cc2c761bc09b9488fca1798396", "score": "0.6041154", "text": "public static boolean onListOfUsers(String userName) {\n if (!String2.isSomething(userName))\n return false;\n return userHashMap.get(userName) != null;\n }", "title": "" }, { "docid": "f5535b9f846a11df59a74b370a764462", "score": "0.6034946", "text": "public void like()\n {\n ++likes;\n }", "title": "" }, { "docid": "be8b9e888b53e04168326962b2335e5d", "score": "0.6017643", "text": "@Override\n\tpublic void like() {\n\t\t\n\t}", "title": "" }, { "docid": "be8b9e888b53e04168326962b2335e5d", "score": "0.6017643", "text": "@Override\n\tpublic void like() {\n\t\t\n\t}", "title": "" }, { "docid": "e7da7b102edec026425dc5522b73414c", "score": "0.60070384", "text": "private boolean getLikeInfo(String userID, int postID, String table) {\n\t\tStatement stmt = null;\n\t\tConnection con = getConnection();\n\t\ttry {\n\t\t\tstmt = con.createStatement();\n\t\t\tstmt.executeQuery(\"USE \" + database);\n\t\t} catch (SQLException e2) {\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t;\n\t\tResultSet rs;\n\t\tint x = 0;\n\t\ttry {\n\t\t\trs = stmt.executeQuery(\"select count(postID) from \" + table\n\t\t\t\t\t+ \" where userID = '\" + userID + \"' and postID = \" + postID\n\t\t\t\t\t+ \";\");\n\t\t\twhile (rs.next())\n\t\t\t\tx = rs.getInt(\"count(postID)\");\n\t\t\tcon.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn x != 0;\n\t}", "title": "" }, { "docid": "59259e18d7c051495253eafb107aaf2a", "score": "0.6004441", "text": "protected boolean isOn(User user) {\r\n if (user != null) { return true; }\r\n else { return false; }\r\n }", "title": "" }, { "docid": "d744a3aaf9c3ba4aff51cac8ed92c503", "score": "0.59856975", "text": "int likes();", "title": "" }, { "docid": "672e089af9c8ef352f14009612718c14", "score": "0.59687716", "text": "public boolean checkUserNameExistance(String username, ArrayList<User> userList)\r\n {\r\n boolean result = false;\r\n for (User person : userList)\r\n {\r\n String personUserName = person.getUserName();\r\n \r\n if(username.equals(personUserName))\r\n {\r\n result = true;\r\n break;\r\n } \r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "3f68a80ef023527ef492e110b515dee1", "score": "0.5962423", "text": "public boolean doILikeThisTask() {\n \n //re grab the arraylist incase an item was added\n MyLocalTaskInformation lti = new MyLocalTaskInformation();\n myLikedIds = lti.getLikedTasks(getApplicationContext());\n \n Iterator<String> it = myLikedIds.iterator();\n \n while (it.hasNext()) {\n if(it.next().equals(taskId))\n return true;\n }\n \n return false; \n }", "title": "" }, { "docid": "fe2084e43da6f4e524bcceab06f59f84", "score": "0.5955707", "text": "public boolean canSee(String user){\n\t\treturn this.friends.contains(user) || isOwner(user);\n\t}", "title": "" }, { "docid": "279f9cbbdd1fa2bbc9b2b614def92471", "score": "0.59354687", "text": "private void likeForTweet(Tweet tweet) {\n List<Tweet> reloadList = new ArrayList<Tweet>();\n for (Tweet tweetItem: liveTweets.getValue()) {\n // If Tweet id meets liked Tweet ID data override is performed\n if (tweetItem.getId() == tweet.getId()) {\n reloadList.add(tweet); // Updated Tweet\n } else {\n Tweet originalTweet = new Tweet(\n tweetItem.getId(),\n tweetItem.getMensaje(),\n tweetItem.getLikes(),\n tweetItem.getUser());\n reloadList.add(originalTweet); // Original Tweet copy\n }\n }\n liveTweets.setValue(reloadList); // Updates Tweets list\n getFavTweets(); // Updates Favorite Tweets list\n }", "title": "" }, { "docid": "33790fb40f63f413df22706c1fdfb73f", "score": "0.59052676", "text": "public boolean hasIsLike() {\n return isLike_ != null;\n }", "title": "" }, { "docid": "0805bdad5471f4ac5faebbc0b7a58ea3", "score": "0.58856404", "text": "public void addLike(String u1, String u2) {\n //abans d'afegir un like mirem si ja ha vist l'usuari (li ha donat dislike anteriorment), i actualitzem el camp\n //liked_bool a '1'\n String queryExists = \"SELECT COUNT(*) FROM liked WHERE liked.username_1 = '\" + u1 + \"' AND liked.username_2 = '\" + u2 +\"'\";\n ResultSet resExists = DBConnector.getInstance().selectQuery(queryExists);\n String query;\n try {\n resExists.next();\n int i = resExists.getInt(1);\n if (i == 0){\n query = \"INSERT INTO liked (username_1, username_2, liked_date, liked_bool) VALUES ('\" + u1 + \"', '\" + u2 + \"', now(), '1')\";\n }else{\n query = \"UPDATE liked SET liked_bool = '1', liked_date = now() WHERE liked.username_1 = '\" + u1 + \"' AND liked.username_2 = '\" + u2 + \"'\";\n }\n DBConnector.getInstance().executeQuery(query);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "34d483762efe2026fd217f672d715d8c", "score": "0.5880342", "text": "public void like(SocialUser user) {\n\t\tif(this.user.id != user.id) {\n\t\t\tif(!hasLiked(user)) {\n\t\t\t\tnew ActivityResponseLiked(this, user);\n\t\t\t} else {\n\t\t\t\t//TODO Rate check ?\n\t\t\t\tcLogger.warn(user.id + \"'\" + \" has already liked activity '\" + this.id);\n\t\t\t}\t\t\t\n\t\t} else {\n\t\t\t//TODO Rate check ?\n\t\t\tcLogger.warn(user.id + \"'\" + \" cannot like own activity '\" + this.id);\n\t\t}\n\t}", "title": "" }, { "docid": "a39060539b02ca9199704d31ff38e4c6", "score": "0.58765197", "text": "public void like(final SaveCallback callback) {\n // create a like relation\n ParseRelation<User> likes = getRelation(FIELD_LIKES);\n likes.add((User) ParseUser.getCurrentUser());\n increment(FIELD_NUMBER_OF_LIKES);\n saveInBackground(callback);\n }", "title": "" }, { "docid": "4ecc715b23e509799419498e2ffbfde7", "score": "0.5853653", "text": "boolean hasIsLike();", "title": "" }, { "docid": "ae8e5b114d50775eaa104069d7143cb8", "score": "0.5844865", "text": "public boolean areFriends(EntityUser user1, EntityUser user2);", "title": "" }, { "docid": "3a5f3ec5496de8221976ef2c46a8fbe0", "score": "0.5841668", "text": "boolean hasIsFriend();", "title": "" }, { "docid": "b0f7ebd893065cf695ea0e85e470c48a", "score": "0.5824328", "text": "boolean hasFriend();", "title": "" }, { "docid": "d6b5aef28289f8386dc4dcde80b6b310", "score": "0.57716364", "text": "Boolean hasUser(User item);", "title": "" }, { "docid": "97a12e453d30270a0db3ee3b2d7b9003", "score": "0.57625777", "text": "boolean hasUserhead();", "title": "" }, { "docid": "97a12e453d30270a0db3ee3b2d7b9003", "score": "0.57625777", "text": "boolean hasUserhead();", "title": "" }, { "docid": "97a12e453d30270a0db3ee3b2d7b9003", "score": "0.57625777", "text": "boolean hasUserhead();", "title": "" }, { "docid": "97a12e453d30270a0db3ee3b2d7b9003", "score": "0.57625777", "text": "boolean hasUserhead();", "title": "" }, { "docid": "97a12e453d30270a0db3ee3b2d7b9003", "score": "0.57625777", "text": "boolean hasUserhead();", "title": "" }, { "docid": "9c3708b378ebcb651aa034bf8fa8ab20", "score": "0.575039", "text": "List<Identity> checkForSimilarUsers(PerunSession sess) throws PerunException;", "title": "" }, { "docid": "1b908d91d1f68e9333b9c0a753e5d387", "score": "0.5734536", "text": "public synchronized int addLike(){\t\t\r\n\t\tlike++;\r\n\t\treturn like;\r\n\r\n\t}", "title": "" }, { "docid": "74ec6c77ec609bfda17fa9b52ae8dad5", "score": "0.57298666", "text": "boolean isFavorited(String id);", "title": "" }, { "docid": "bdac0af248ff1391f55c594dea5a6d06", "score": "0.5728168", "text": "public boolean isMyFriend(String username, String otherUsername){\r\n\t\tFriendDBAdapter adapter = new FriendDBAdapter(this.getActivity());\r\n\t\tadapter.open();\r\n\t\tBoolean b = adapter.isFriend(username, otherUsername);\r\n\t\tadapter.close();\r\n\t\treturn b;\r\n\t}", "title": "" }, { "docid": "3fe8d9c8d4c927f85bc3035b270fb048", "score": "0.5707055", "text": "@Override\n public void onClick(View view) {\n if ((Help.buttonLike(like, context))) {\n like.setBackground(context.getDrawable(R.drawable.ic_favorite_black_24dp));\n UserInformation.post.setLikesPostagemIdUsuarios(\n Help.addInList(\n UserInformation.post.getLikesPostagemIdUsuarios(),\n UserInformation.user.getIdUsuario())\n );\n\n countLikesPost++;\n // adiciona o like na lista do usuario\n UserInformation.user.setIdsPostagemCurtidas(\n Help.addInList(\n UserInformation.user.getIdsPostagemCurtidas(),\n UserInformation.post.getIdPostagem())\n );\n //Toast.makeText(context, \"like\", Toast.LENGTH_SHORT).show();\n } else {\n like.setBackground(context.getDrawable(R.drawable.ic_favorite_border_black_24dp));\n UserInformation.post.setLikesPostagemIdUsuarios(\n Help.removeInList(\n UserInformation.post.getLikesPostagemIdUsuarios(),\n UserInformation.user.getIdUsuario())\n );\n\n countLikesPost--;\n // remove o like na lista do usuario\n UserInformation.user.setIdsPostagemCurtidas(\n Help.removeInList(\n UserInformation.user.getIdsPostagemCurtidas(),\n UserInformation.post.getIdPostagem())\n );\n\n //Toast.makeText(context, \"deslike\", Toast.LENGTH_SHORT).show();\n }\n UserInformation.post.setContadorLikesPostagem(countLikesPost);\n tvLikes.setText(String.valueOf(countLikesPost));\n // quando a activity chamar onPause precisa gravar as alteracoes na publicacao online\n }", "title": "" }, { "docid": "39340248fba5c38848db9ea663dea962", "score": "0.5680624", "text": "public void likeTaskAction(View view) {\n \n boolean like = doILikeThisTask();\n MyLocalTaskInformation save = new MyLocalTaskInformation();\n \n //if we already like the task we now want to unlike it\n if(like) {\n \n //remove the value from the list\n save.removeLikedTask(taskId, getApplicationContext());\n \n //set the text on the button to like again\n updateButtonText(\"like\"); \n \n //if we dont like the task add it to the list\n } else {\n save.saveLikedTasks(taskId, getApplicationContext());\n updateButtonText(\"unlike\");\n } \n }", "title": "" }, { "docid": "5a514a337f65da12cf0b8288a7e1ea17", "score": "0.5624135", "text": "boolean hasUsers();", "title": "" }, { "docid": "7f44f2fb2234e185d507d603a351b3b2", "score": "0.5604779", "text": "@JsonIgnore\n\tpublic Users getUserLiked() {\n\t\treturn userLiked;\n\t}", "title": "" }, { "docid": "dba563a97a2e75b6f7ee9e127451867c", "score": "0.55980444", "text": "private boolean isShareItemListed(ShareItem shareItem){\r\n\t return isShareItemListed(shareItem.getName());\r\n }", "title": "" }, { "docid": "ecf01a51bb7d078e90f97f142f1f5fc0", "score": "0.55911136", "text": "public int addShowLikeUser(ShowLike showLike) {\n return showLikeMapper.addShowLikeUser(showLike);\n }", "title": "" }, { "docid": "48c68da944a2c32b756cb9dc2b450c4b", "score": "0.55838317", "text": "public void setLike(int like) {\r\n\t\tthis.like = like;\r\n\t}", "title": "" }, { "docid": "220c3b5496ec8bc5e7a88a8a72c9e6bb", "score": "0.5575641", "text": "@Transactional\n public Post like(Long postId, UserPostLikeRequestDto userPostLikeRequestDto) {\n\n // Gives a like from the likerId in userPostLikeRequestDto to\n // the Post postId with owner ownerId in userPostLikeRequestDto\n // Throws:\n // UserNotFoundException if any of the users are not found\n // UserAlreadyLikesPostException if the like already exists\n\n Post post = this.findById(postId);\n User liker = userService.findById(userPostLikeRequestDto.getLikerId());\n if (userPostLikeRepository.existsByUserPostLikeIdLikerIdAndUserPostLikeIdPostId\n (liker.getId(), postId)) {\n log.error\n (\"User {} has already liked post {} from user {}\",\n userPostLikeRequestDto.getLikerId(), postId);\n throw new UserAlreadyLikesPostException(\"User \" + userPostLikeRequestDto.getLikerId()\n + \" has already liked post \" + postId + \" from the owner \");\n }\n\n userPostLikeRepository.save(new UserPostLike(\n new UserPostLikeId(liker.getId(), post.getId())\n ));\n return postRepository.save(post);\n }", "title": "" }, { "docid": "1eadc4e0e0165437abcb8d1141be8e20", "score": "0.55698305", "text": "public boolean checkIfUserExistsInPostGroup(User userToCheck){\n for(User user: postGroup){\n if(user.getUserInformation().getUniqueID().equals(userToCheck.getUserInformation().getUniqueID()))\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "cffba41403a59eb225f30b71f6afe962", "score": "0.5565888", "text": "public abstract boolean isAttacking(LinkedList list);", "title": "" }, { "docid": "44a6cd7b9b9880319a32285db3a8b811", "score": "0.5555667", "text": "public void setLikes(int value) {\n this.likes = value;\n }", "title": "" }, { "docid": "6292a72296d11e8d0b27597f55156284", "score": "0.55310744", "text": "boolean hasUser();", "title": "" }, { "docid": "6292a72296d11e8d0b27597f55156284", "score": "0.55310744", "text": "boolean hasUser();", "title": "" }, { "docid": "6292a72296d11e8d0b27597f55156284", "score": "0.55310744", "text": "boolean hasUser();", "title": "" }, { "docid": "6292a72296d11e8d0b27597f55156284", "score": "0.55310744", "text": "boolean hasUser();", "title": "" }, { "docid": "6292a72296d11e8d0b27597f55156284", "score": "0.55310744", "text": "boolean hasUser();", "title": "" }, { "docid": "cda536a5680332820ed59993fa82e483", "score": "0.55248904", "text": "private boolean isFriendAlready() {\n if (!(profile.getFriends().hasNext())) {\n return false;\n }\n Iterator<String> it = profile.getFriends();\n while (it.hasNext()) {\n String friend = it.next();\n if (friend.equals(friends.getText())) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "53b373059c30e624546a404693e17743", "score": "0.5522809", "text": "int getNumberOfDislikes();", "title": "" }, { "docid": "a32eb6277effba6b21b80d650537711e", "score": "0.55206645", "text": "public void addDislike(String u1, String u2) {\n //abans d'afegir un dislike mirem si ja ha vist l'usuari (li ha donat dislike anteriorment), i actualitzem el camp\n //liked_bool a '0' un altre cop per a no crear una nova fila de dades entre dos usuaris existents\n String queryExists = \"SELECT COUNT(*) FROM liked WHERE liked.username_1 = '\" + u1 + \"' AND liked.username_2 = '\" + u2 +\"'\";\n ResultSet resExists = DBConnector.getInstance().selectQuery(queryExists);\n String query;\n try {\n resExists.next();\n int i = resExists.getInt(1);\n if (i == 0){\n query = \"INSERT INTO liked (username_1, username_2, liked_date, liked_bool) VALUES ('\" + u1 + \"', '\" + u2 + \"', now(), '0')\";\n } else {\n query = \"UPDATE liked SET liked_bool = '0', liked_date = now() WHERE liked.username_1 = '\" + u1 + \"' AND liked.username_2 = '\" + u2 + \"'\";\n }\n DBConnector.getInstance().executeQuery(query);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "36d2f4f8be713bc6dfcac5ba06629694", "score": "0.5511147", "text": "boolean hasTuser();", "title": "" }, { "docid": "ad86e576cf19fb9be536326d18e4cdfa", "score": "0.5504295", "text": "public List<User> getUsersLikeToStatus(String uid, String time) {\r\n\t\tList<User> result = new ArrayList<User>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString query = \r\n\t\t\t\t\"SELECT uid, name, email, pic_square FROM user WHERE uid IN (SELECT user_id \" + \r\n\t\t\t \"FROM like WHERE object_id IN \" + \r\n\t\t\t \"(SELECT status_id FROM status WHERE uid = \" + uid + \" AND time >= \" + time + \"))\";\t\t\t \t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"query: \" + query);\r\n\t\t\t\r\n\t\t\tresult = facebookClient.executeQuery(query, User.class);\r\n\t\t\tSystem.out.println(\"User count who liked to statuses: \" + result.size());\r\n\t\t\t\r\n\t\t} catch (FacebookException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\t\r\n\t}", "title": "" }, { "docid": "9e663fb8c33f19fef1afc7bdea36c51e", "score": "0.55009425", "text": "WishList getUserWishList(String uid) throws Exception;", "title": "" }, { "docid": "57bf329788d49c2abbd5607fec77e9db", "score": "0.54965913", "text": "public boolean hasIsLike() {\n return isLikeBuilder_ != null || isLike_ != null;\n }", "title": "" }, { "docid": "1916e40338fea2dee7c3ae1b39b9883e", "score": "0.5496048", "text": "public int getLike() {\r\n\t\treturn like;\r\n\t}", "title": "" }, { "docid": "03f9315cfeaf6806c7ef021ed795118b", "score": "0.5482502", "text": "@Override\r\n\t\t \t \t \t public void onCompleted(GraphUser user, Response response) {\n\t\t \t \t\t \t if (session == Session.getActiveSession()) {\r\n\t\t \t \t\t \t \tif (user != null) {\r\n\t\t \t \t\t \t \t\tString user_id = user.getId();//user id\r\n\t\t \t \t\t \t String[] likeParams = {params[5],user_id};\r\n\t\t \t \t\t \t \t\tnew AddLike().execute(likeParams);\r\n\t\t \t \t\t \t \t} \r\n\t\t \t \t\t \t } \r\n\t\t \t \t \t }", "title": "" }, { "docid": "a28697485ee4cea99326a5d7a5aa446f", "score": "0.5481837", "text": "private boolean User_Exists(ArrayList<Account> list, String name_Query) {\n for (Account acc : list) {\n if (acc.getName().equalsIgnoreCase(name_Query)) {\n Acc_Name = acc.getName();\n type = acc.getACCOUNT_TYPE();\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "319bb703b60da5c3804fc4db28dad816", "score": "0.54800725", "text": "public List<User> getUsersLikeToLink(String uid, String time) {\r\n\t\tList<User> result = new ArrayList<User>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString query = \r\n\t\t\t\t\"SELECT uid, name, email, pic_square FROM user WHERE uid IN (SELECT user_id \" + \r\n\t\t\t \"FROM like WHERE object_id IN \" + \r\n\t\t\t \"(SELECT link_id FROM link WHERE owner = \" + uid + \" AND created_time >= \" + time + \"))\";\t\t\t \t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"query: \" + query);\r\n\t\t\t\r\n\t\t\tresult = facebookClient.executeQuery(query, User.class);\r\n\t\t\tSystem.out.println(\"User count who liked to links: \" + result.size());\r\n\t\t\t\r\n\t\t} catch (FacebookException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\t\r\n\t}", "title": "" }, { "docid": "14cd5a32c14e34e22268f0f7806a8f10", "score": "0.5473928", "text": "public void setLikes(int likes)\r\n {\r\n this.likes = likes;\r\n }", "title": "" }, { "docid": "fa019889f1222e7f48dc2795b9a56554", "score": "0.5472603", "text": "private boolean userPresent(int userId) {\n if (!chatListRepository.searchUser(userId, user.getId())) {\n aboutUserPresenter.getAboutUser(userId, user.getAuthHeader());\n\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "8ecee7b25855cc2340d3702fa153051b", "score": "0.54633737", "text": "private static Boolean hasUserBiddedOnAuction(Profile user, Auction auction) {\n for (Bid bid : auction.getBidList()) {\n if (bid.getBidderUsername().equals(user.getUsername())) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "d8a51539f0efb34a76d1d391b3133de6", "score": "0.5459922", "text": "public boolean exist(UserModel user) {\n for (int i = 0; i < userslist.size(); i++) {\n if (userslist.get(i).getEmail().equals(user.getEmail())\n || userslist.get(i).getId().equals(user.getId())) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "19cdfa0666f0e6afb0ad8505339896b6", "score": "0.5452869", "text": "public List<LikeUser> getLikeUser(int feedId) throws Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "16e4371c3356a69811a14700baf80865", "score": "0.5450743", "text": "void dislike(long userId, long postId);", "title": "" }, { "docid": "dadbdf85b4d50e61c860a02291ed279a", "score": "0.54473233", "text": "public void likeTweet(int idTweet) {\n Call<Tweet> caller = authTwitterService.likeTweet(idTweet);\n caller.enqueue(new Callback<Tweet>() {\n @Override\n public void onResponse(Call<Tweet> call, Response<Tweet> response) {\n // On success\n if (response.isSuccessful()) {\n // Gets list with like value updated\n likeForTweet(response.body());\n } else {\n // Request has failed!!\n String strRequestFailed = GlobalApp\n .getContext()\n .getResources()\n .getString(R.string.request_tweet_creation_failure);\n Toast.makeText(GlobalApp.getContext(),strRequestFailed,Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onFailure(Call<Tweet> call, Throwable t) {\n // Request has failed!!\n String strRequestFailed = GlobalApp\n .getContext()\n .getResources()\n .getString(R.string.connection_failure);\n Toast.makeText(GlobalApp.getContext(),strRequestFailed,Toast.LENGTH_LONG).show();\n }\n });\n }", "title": "" }, { "docid": "13b57e6ce9529d7eedb43593ac726390", "score": "0.54388636", "text": "public boolean hasUserRating() {\n return userRating_ != null;\n }", "title": "" }, { "docid": "49d2191eb773220768e9c1a82e58a4c8", "score": "0.54383457", "text": "public synchronized boolean checkLocalUserAndSecret(String username,String secret){\n for(User user:localUserList ){\n if (user.getUsername().equals(username)&&user.getSecret().equals(secret)){\n return true;\n }\n } \n return false;\n }", "title": "" }, { "docid": "e95935210432f74b57182c343813b091", "score": "0.5438234", "text": "public void checkAndNavigateToMyWishlistPage(){\n if(!webApp.getCurrentURL().contains(MyAccountPage.getMyWishlistUrl())){\n webApp.getMyAccountPage().clickMyWishlistButton();\n webApp.getMyAccountPage().isOnMyWishlistsPage();\n }\n }", "title": "" }, { "docid": "fc64ecab78f7a39d37f8de61b75f9550", "score": "0.54292", "text": "boolean getIsFriend();", "title": "" }, { "docid": "0f1ec9e78485151981ac73ce7c431392", "score": "0.5421211", "text": "boolean mentionsEveryone();", "title": "" }, { "docid": "0bbeb4d4b356eff8c65e24736c5d34d3", "score": "0.5420421", "text": "public static boolean isLinked(AVUser user) {\n return user == AVUser.getCurrentUser() && user.isAuthenticated() && user.isAnonymous();\n }", "title": "" }, { "docid": "653d633559a7dafc31dc8e02ecf3b7f2", "score": "0.5419524", "text": "People checkFriendList(String name);", "title": "" }, { "docid": "636cf2fea82d9d97feda94fc19e302a0", "score": "0.5418286", "text": "public boolean isFriend(String friendname) {\n\t\tfor (User friend : friendlist){\n\t\t\tif (friend.getUsername().equals(friendname)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c604fc0fcdf3b577416f9db18e62f539", "score": "0.5416379", "text": "public boolean isHeMyFriend(User aUser) {\r\n boolean isHeMyFriendFlag = false;\r\n\r\n //Checks if the user(aUser) is not the same with this.user\r\n if(!this.equals(aUser)) {\r\n //Checks if the user (aUser) is in this.user friend list\r\n for(User u: this.arrayListOfUserFriends) {\r\n if(u.equals(aUser)) {\r\n isHeMyFriendFlag = true;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return isHeMyFriendFlag;\r\n }", "title": "" }, { "docid": "055126ee8a9b65caa36d05b8ae6ebb7d", "score": "0.53976643", "text": "public void unlike()\n {\n if (likes > 0) {\n --likes;\n }\n }", "title": "" }, { "docid": "2f6db89f22149c6573a9629b0db7081e", "score": "0.5394388", "text": "public int getLikes() {\n return likes_;\n }", "title": "" }, { "docid": "fa99fde3a1bdf8916d874898844c00bb", "score": "0.5390348", "text": "private void getLikedUsers(String postId) {\n DatabaseRead.fetchLikedUsers(postId, new OnFetchPrismUsersCallback() {\n @Override\n public void onSuccess(LinkedPrismUsers linkedPrismUsers) {\n prismUserArrayList.addAll(linkedPrismUsers.getPrismUsers());\n updateInterfaceElements();\n }\n\n @Override\n public void onPrismUsersNotFound() {\n Helper.toast(DisplayUsersActivity.this, Message.FETCH_USERS_FAIL);\n updateInterfaceElements();\n }\n\n @Override\n public void onFailure(Exception e) {\n Log.e(Default.TAG_DB, Message.FETCH_USERS_FAIL, e);\n Helper.toast(DisplayUsersActivity.this, Message.FETCH_USERS_FAIL);\n }\n });\n\n }", "title": "" }, { "docid": "f128dc3d72380398886ccf9c39c9a1bd", "score": "0.5387958", "text": "public void unlike()\n\t {\n\t \tif(likes > 0)\n\t \t{\n\t \t\tlikes--;\n\t \t}\n\t }", "title": "" }, { "docid": "2b4a5f0c4329dd49229ee88d4303028d", "score": "0.53822666", "text": "public boolean isExistingNickname(String nickname) {\n for (User user : userList) {\n if (user.getNickname().equals(nickname)) {\n return true;\n }\n }\n UM_LOGGER.warning(\"Nickname not taken or listed@\" + nickname);\n return false;\n }", "title": "" }, { "docid": "6e9829396c0767834a3cb1406384d6ce", "score": "0.53746414", "text": "private boolean isShareItemListed(String shareItemName){\r\n\t return shareItems\r\n\t\t\t .stream()\r\n\t\t\t .anyMatch( s -> s.getName().equals(shareItemName) );\r\n\r\n }", "title": "" }, { "docid": "27ba4d4afe2e50a40e8bf5a487cd8d37", "score": "0.5374046", "text": "@Override\r\n\tpublic boolean isEnabled() {\r\n\t\treturn user != null;\r\n\t}", "title": "" }, { "docid": "f256fb649e566d6d5120124e0a1f65cc", "score": "0.5369743", "text": "public int getLikes() {\n return likes_;\n }", "title": "" }, { "docid": "63ea8f3ee53cfa0239d2fa7306d7e99d", "score": "0.53694355", "text": "List<Identity> checkForSimilarUsers(PerunSession sess, int appId) throws PerunException;", "title": "" }, { "docid": "15d981966c60d1f607f64f18277addab", "score": "0.5366104", "text": "public DeltaArticle addLike(String username, String articleId) {\n DeltaArticle deltaArticle = articleRepo.findArticleById(articleId);\n\n if (deltaArticle.getLikes().contains(username))\n deltaArticle.getLikes().remove(username);\n else\n deltaArticle.getLikes().add(username);\n\n deltaArticle.getDislikes().remove(username);\n return articleRepo.save(deltaArticle);\n }", "title": "" }, { "docid": "90d9ea7b0e9a3c1062fa5541374e0c53", "score": "0.53571355", "text": "protected static boolean isAuthorisedUsername(List<String> authorisedUserList, String username) {\r\n if (authorisedUserList == null || authorisedUserList.isEmpty()) {\r\n String msg = \"The authorised user domain list is empty!\";\r\n LOG.info(msg);\r\n }\r\n for (String regex : authorisedUserList) {\r\n if (username.matches(\".*\" + regex)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "1d45aafac04a4da4a7babe9fae27503c", "score": "0.5356413", "text": "protected boolean alreadyInList(String name) {\n return listModel.contains(name);\n }", "title": "" }, { "docid": "3e482dad2d1a9e19676533437f91bc6a", "score": "0.53500783", "text": "@Override\n\t\t\tpublic boolean isFavorited() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "6186f9619e2d2b38b65559a8c0af3e7d", "score": "0.53472877", "text": "public boolean isFollowingUser(String followedUserID) {\n return followedUsers.contains(followedUserID);\n }", "title": "" }, { "docid": "0447803246a491b23d1a45bad03dc28a", "score": "0.5345825", "text": "UserStatus checkUserIsEnabled(Long userId, String username);", "title": "" }, { "docid": "ae259ec02fbda090ee001265a02fae85", "score": "0.5343122", "text": "@Override\r\n public ArrayList<String> getLikes() {\r\n return likesData.getLikes();\r\n }", "title": "" } ]
40863981bd7a65987a5e5fb49eae6dff
checks if the any contains a value of the idl type type.
[ { "docid": "b1a792e7e9e19ab5f41b7e9b50fd2e40", "score": "0.0", "text": "static public boolean isType(Object object){\n\t\treturn containsType(TypeClass.TYPE, object);\n\t}", "title": "" } ]
[ { "docid": "3477c929befb5edb3dea20bf977defc5", "score": "0.68015796", "text": "boolean hasAnyType();", "title": "" }, { "docid": "e761d6b3d9b8e6ca85da698ee67f6db9", "score": "0.6601484", "text": "@Override\n\tpublic boolean contains(TLAType o) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "55d852745560d96f13e87fa495511c61", "score": "0.6352673", "text": "public boolean contains(AnyType data)\n\t{\n\t\treturn contains(root, data);\n\t}", "title": "" }, { "docid": "2ea0ef792b12ef5589fc2029ae2120b4", "score": "0.6303831", "text": "boolean hasTypes();", "title": "" }, { "docid": "b0d10c4abff3ed0ce407a2e498fa075d", "score": "0.61486655", "text": "public boolean isContentTypeUsed(final UUID id) {\r\n\t\treturn any(values(), new Predicate<PageObject>() {\r\n\t\t\tpublic boolean apply(PageObject input) {\r\n\t\t\t\treturn input.isContentTypeUsed(id);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "bc619efdb7c0e3e81430f08007b4018e", "score": "0.61333823", "text": "@Override\n public boolean contains(TypeVar tv) {\n return t.contains(tv);\n }", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "130db510b4aa92fdc52d416597da169e", "score": "0.59610415", "text": "boolean hasType();", "title": "" }, { "docid": "76e2b688ec0e3464315c5c03ca21765f", "score": "0.58520454", "text": "@Override\n public boolean checkIdListInType(final List<Long> ids, final String type) {\n if (ListUtils.isBlank(ids)) {\n return true;\n }\n long count =\n masterDataRepository.countActiveMasterDataInIdList(type, ids);\n return count == ids.size();\n }", "title": "" }, { "docid": "c240fae7f71d2a62b2b9b4aa5ab411a3", "score": "0.582019", "text": "public boolean hasType(int type)\n {\n return (Arrays.binarySearch(types, type) >= 0);\n }", "title": "" }, { "docid": "261986d0fc1df5b793737530e048e744", "score": "0.5812931", "text": "public boolean isType(ZHtmlElementType type){\r\n return getType().equals(type);\r\n }", "title": "" }, { "docid": "a48b07de62fb1eff7ae929bad28174eb", "score": "0.5779251", "text": "boolean hasTypeField();", "title": "" }, { "docid": "06dbecd3ea51e1803d7fa514126a10b0", "score": "0.5750449", "text": "@JsonIgnore\n public boolean hasType (String type) {\n return _typesLookup.containsKey (type);\n }", "title": "" }, { "docid": "906e4100b081274ffbdb74964ac4040e", "score": "0.57377595", "text": "static private boolean containsType( TypeClass what, Object object){\n return (getType(object).getTypeClass().getValue() == what.getValue());\n\t}", "title": "" }, { "docid": "ce0a3f01bf9734b393ddebb6695d4e0e", "score": "0.57296133", "text": "public boolean isFromIDS() {\n\t\treturn (IDSResult.Types.contains(mType));\n\t}", "title": "" }, { "docid": "d7642d7a8496931f8ebb99fcd9471f15", "score": "0.57291853", "text": "public boolean contains(ItemType type) {\n for (Objective o: this.objectives) {\n if (type.equals(o.getObjectiveTarget())) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "f6388fb507e25c2591075cfdb28bef2b", "score": "0.570474", "text": "boolean hasItType();", "title": "" }, { "docid": "3eff1b259b7b414d1bb811867a41dd56", "score": "0.5671614", "text": "public boolean contains(ElementType element){\n for(ElementType e:this){\n if(e.equals(element)){\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "56a66cff4f322b11a73c446678d96aae", "score": "0.56323946", "text": "default boolean identifierTypeIs(QualifiedName identifier, Class<?> type) {\n Object value = this.get(identifier);\n return value != null && type.isAssignableFrom(value.getClass());\n }", "title": "" }, { "docid": "4ac66c7be72a59c34144c0be5088202a", "score": "0.5567195", "text": "public boolean hasType(String name)\n {\n \treturn types.contains(name);\n }", "title": "" }, { "docid": "2fe1d06cbb22e8f86716dcf1963c4487", "score": "0.55460304", "text": "@Override\r\n public boolean containsValue(Object value) {\r\n return occurances.contains((List<Integer>)value);\r\n }", "title": "" }, { "docid": "b514e61814844e2e2f2b3ac03655ba0d", "score": "0.5527817", "text": "public boolean checkEndTypeId(String typeId, DataAccessLayer DAL) {\r\n boolean check=false;\r\n if (typeId.trim().length() ==0) return false;\r\n ResultSet rs = null;\r\n String st=null;\r\n String sSQL=null;\r\n try {\r\n int totalRecord = DAL.countRecord(\"select count(*) as RECORD_COUNT from BTM_IM_PROD_HIR_TYPE\",\"RECORD_COUNT\",DAL);\r\n if (totalRecord==0) {\r\n return check=false;\r\n }\r\n sSQL = \"select TYPE_ID from BTM_IM_PROD_HIR_TYPE order by TYPE_ID desc\";\r\n// System.out.println(sSQL);\r\n rs = DAL.executeQueries(sSQL);\r\n rs.next();\r\n if (typeId.trim().equalsIgnoreCase(rs.getString(\"TYPE_ID\").trim())) {\r\n check=true;\r\n }\r\n rs.getStatement().close();\r\n }catch (Exception e) {\r\n ExceptionHandle eh = new ExceptionHandle();\r\n eh.ouputError(e);\r\n }\r\n return check;\r\n }", "title": "" }, { "docid": "0c56a1615520c136790b9a53c2a8ef6b", "score": "0.5516827", "text": "public void isKindOf() {\n\n int value = valueStack.pop();\n int type = valueStack.pop();\n if (value == undefinedValue)\n valueStack.push(trueValue);\n else {\n int valueType = type(value);\n int typeType = type(type);\n if (type == theClassElement)\n valueStack.push(trueValue);\n else if (typeType == theTypeSeq && value == nilValue)\n valueStack.push(trueValue);\n else if (typeType == theTypeSet && value == emptySet)\n valueStack.push(trueValue);\n else if (isCons(value) && !(typeType == theTypeSeq || type == theClassElement))\n valueStack.push(falseValue);\n else if (value == nilValue && !(typeType == theTypeSeq || type == theClassElement))\n valueStack.push(falseValue);\n else if (isSet(value) && !(typeType == theTypeSet || type == theClassElement))\n valueStack.push(falseValue);\n else if (valueType == theTypeSeqOfElement || valueType == theTypeSetOfElement)\n sendIsKindOf(value, type);\n else if (isFun(value) && type(type) != theClassClass)\n sendIsKindOf(value, type);\n else basicIsKindOf(value, type, valueType);\n }\n }", "title": "" }, { "docid": "cd2a259c93ba879560eae74b21c7d88f", "score": "0.5511085", "text": "public boolean containsParametersTypes(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n return internalGetParametersTypes().getMap().containsKey(key);\n }", "title": "" }, { "docid": "8bbdb57a2a6a95c95e9eb469ec20160c", "score": "0.5504117", "text": "public boolean containsParametersTypes(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n return internalGetParametersTypes().getMap().containsKey(key);\n }", "title": "" }, { "docid": "ad3bf9672c3561cf0b1ebe21747010fb", "score": "0.54974025", "text": "@Override\n public boolean contains(Object T) {\n boolean found = false;\n if (head != null) {\n Datenstruktur cur = head;\n while (cur != null && cur.getValue() != T) {\n cur = cur.getNext();\n }\n if (cur != null) {\n found = true;\n }\n }\n return found;\n }", "title": "" }, { "docid": "cd265e59bba631e58ce53a1608876702", "score": "0.54832876", "text": "@Override\r\n\tpublic boolean contains(T value) {\n\t\treturn indexOf(value) != -1;\r\n\t}", "title": "" }, { "docid": "8ffcc5436e216254407ba08888bf150b", "score": "0.5460868", "text": "boolean hasInformationTypeId();", "title": "" }, { "docid": "a04b43bce4fdc2b60344c99aebfd4451", "score": "0.5434403", "text": "public abstract boolean isTypeOf(ItemType type);", "title": "" }, { "docid": "5dcbaf968aee434221039a4031810e7b", "score": "0.54223925", "text": "@Override\n\tpublic boolean containsValue(Object value) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bd630b2fa55791ee89043ec280411267", "score": "0.54140615", "text": "@Override\n\tpublic boolean contains(Object value) {\n\t\tif (indexOf(value) != NOT_FOUND) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "80af7c1e575a9a2c5fe61402964d2f53", "score": "0.539071", "text": "public boolean hasType(TokenType type);", "title": "" }, { "docid": "6149363763f565b1120dffc3471231ce", "score": "0.53805476", "text": "public boolean any();", "title": "" }, { "docid": "6b77bae5c2dbe5fac7f1cf6f60e249c6", "score": "0.5377593", "text": "public static boolean isExist(String type) {\n for(CONTRACT_TYPE contractType : CONTRACT_TYPE.values()) {\n if(contractType.getType().equals(type)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "090f43bf07d6a6f0daacbfdd532d6f34", "score": "0.5368972", "text": "public boolean hasType() {\n return result.hasType();\n }", "title": "" }, { "docid": "090f43bf07d6a6f0daacbfdd532d6f34", "score": "0.5368972", "text": "public boolean hasType() {\n return result.hasType();\n }", "title": "" }, { "docid": "090f43bf07d6a6f0daacbfdd532d6f34", "score": "0.5368972", "text": "public boolean hasType() {\n return result.hasType();\n }", "title": "" }, { "docid": "c9f9432fe2af444dab8ba302bf197e6c", "score": "0.536153", "text": "@Override\n\tpublic boolean contains(T e) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cf1b38d95340d384827a6e9d2c2da373", "score": "0.5361287", "text": "public boolean contains(Type value) {\n return vertexMap.containsKey(value);\n }", "title": "" }, { "docid": "5e05045f8f107cd03129418d63d2c287", "score": "0.53532517", "text": "private boolean checkInputTypes(List<Expr> exprList, List<Arg> nodeArgs) {\n\t\t// TODO: If I cannot access the type (e.g., complex nested\n\t\t// type), the string remains empty. If string is empty, I let\n\t\t// the type check say \"all is well.\" This needs to be addressed.\n\t\tfor (int i = 0; i < exprList.size(); i++) {\n\t\t\tString argType = getArgType(nodeArgs.get(i));\n\t\t\tString exprType = getExprType(exprList.get(i));\n\t\t\tif (!argType.equals(exprType) && !exprType.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0e5ff2be4e9d7f7b4c6d56b30ffbcc7a", "score": "0.5351802", "text": "public boolean contains(EnemyObjectiveType type) {\n for (Objective o: this.objectives) {\n if ((o.getObjectiveTarget()).equals(type)) {\n return true;\n }\n\n }\n return false;\n }", "title": "" }, { "docid": "010a19e988f6297303d36e4453c6fa94", "score": "0.53485346", "text": "boolean containsValue(Object value);", "title": "" }, { "docid": "9133c99d7dcb76fdc6f40e05621816bf", "score": "0.5347436", "text": "public boolean checkEndOrgTypeId(String typeId, DataAccessLayer DAL) {\r\n boolean check=false;\r\n String sSQL=null;\r\n if (typeId.trim().length() ==0) return false;\r\n ResultSet rs = null;\r\n String st=null;\r\n try {\r\n int totalRecord = DAL.countRecord(\"select count(*) as RECORD_COUNT from BTM_IM_ORG_HIR_TYPE\",\"RECORD_COUNT\",DAL);\r\n if (totalRecord==0) {\r\n return check=false;\r\n }\r\n sSQL = \"select TYPE_ID from BTM_IM_ORG_HIR_TYPE order by TYPE_ID desc\";\r\n// System.out.println(sSQL);\r\n rs = DAL.executeQueries(sSQL);\r\n rs.next();\r\n if (typeId.trim().equalsIgnoreCase(rs.getString(\"TYPE_ID\").trim())) {\r\n check=true;\r\n }\r\n rs.getStatement().close();\r\n }catch (Exception e) {\r\n ExceptionHandle eh = new ExceptionHandle();\r\n eh.ouputError(e);\r\n }\r\n return check;\r\n }", "title": "" }, { "docid": "4d073ca6baf9be99c90e3f2b46517d1b", "score": "0.5338612", "text": "public boolean isSetType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TYPE$2) != 0;\n }\n }", "title": "" }, { "docid": "15fa2e1d539ae9ac1da41862eb91a8f1", "score": "0.53269386", "text": "public boolean isSetTypeId() {\n return EncodingUtils.testBit(__isset_bitfield, __TYPEID_ISSET_ID);\n }", "title": "" }, { "docid": "15fa2e1d539ae9ac1da41862eb91a8f1", "score": "0.53269386", "text": "public boolean isSetTypeId() {\n return EncodingUtils.testBit(__isset_bitfield, __TYPEID_ISSET_ID);\n }", "title": "" }, { "docid": "15fa2e1d539ae9ac1da41862eb91a8f1", "score": "0.53269386", "text": "public boolean isSetTypeId() {\n return EncodingUtils.testBit(__isset_bitfield, __TYPEID_ISSET_ID);\n }", "title": "" }, { "docid": "15fa2e1d539ae9ac1da41862eb91a8f1", "score": "0.53269386", "text": "public boolean isSetTypeId() {\n return EncodingUtils.testBit(__isset_bitfield, __TYPEID_ISSET_ID);\n }", "title": "" }, { "docid": "15fa2e1d539ae9ac1da41862eb91a8f1", "score": "0.53269386", "text": "public boolean isSetTypeId() {\n return EncodingUtils.testBit(__isset_bitfield, __TYPEID_ISSET_ID);\n }", "title": "" }, { "docid": "7a7af6b8b1ded185d97ed2fcac8c631b", "score": "0.5325491", "text": "private void checkElemType(byte type) throws TException {\n // only valid types for an element in a container (List, Map, Set)\n // are the ones that are considered in TProtocolUtil.skip()\n switch (type) {\n case TType.BOOL:\n case TType.BYTE:\n case TType.I16:\n case TType.I32:\n case TType.I64:\n case TType.DOUBLE:\n case TType.STRING:\n case TType.STRUCT:\n case TType.MAP:\n case TType.SET:\n case TType.LIST:\n break;\n\n // list other known types, but not expected\n case TType.STOP:\n case TType.VOID:\n case TType.ENUM: // would be I32 on the wire\n default:\n throw new TException(\"Unexpected type \" + type + \" in a container\");\n }\n }", "title": "" }, { "docid": "4c81c26ea25a5d6ebe54c6a6c00cbb9c", "score": "0.531488", "text": "public boolean test(TokenType type, @NotNull String[] values) {\n return this.type == type && ArrayUtils.contains(values, value);\n }", "title": "" }, { "docid": "2770830560516c63249f616d827dbed9", "score": "0.5302249", "text": "public static boolean hasValidTypesAll( Schema<?> schema)\n {\n return hasExtension( schema, EXT_VALID_TYPES_ALL);\n }", "title": "" }, { "docid": "743ff18c1c9db8c14243b437dad0a7b2", "score": "0.528987", "text": "public boolean isValueAllDef() {\n return this.mValues.stream().allMatch($$Lambda$DynamicFilterService$FilterList$FilterDetail$2OAMiOEgVr6tuU52x2lnfhpzE1c.INSTANCE);\n }", "title": "" }, { "docid": "8c26871ddf59e1150a03ced54a79e05c", "score": "0.5287567", "text": "boolean add(AnyType value);", "title": "" }, { "docid": "7c72ded8c3bf6716f6a32e27e2639b19", "score": "0.52874374", "text": "private boolean checkContains(String name){\n String[] containsThisType = {\".jpg\", \".png\", \".gif\", \".bmp\", \".JPG\", \".PNG\", \".GIF\", \".BMP\"};\n for (String type: containsThisType){\n if (name.contains(type)){\n return true;\n }\n }\n return false;\n }", "title": "" } ]
0a1eb707cc1a2e457cd9788f237ea79d
Add directories to use for templates.
[ { "docid": "8ed74e64dbd12ff2641961290971eafe", "score": "0.5659454", "text": "public void addTemplateLoader(URL[] templateDirectory) throws URISyntaxException, IOException {\n if (null != templateDirectory) {\n List<FileTemplateLoader> fileTemplateLoaders = new ArrayList<FileTemplateLoader>(templateDirectory.length);\n for (URL url : templateDirectory) {\n System.out.println(\"adding \" + url.toURI().toASCIIString());\n fileTemplateLoaders.add(new FileTemplateLoader(new File(url.toURI())));\n }\n templateLoaders.addAll(fileTemplateLoaders);\n }\n }", "title": "" } ]
[ { "docid": "08f2411c9219b4f2f6102ed0345ec703", "score": "0.65871274", "text": "String getTemplateDir();", "title": "" }, { "docid": "b6a6ad0b8b4977f4c3d7da47f7c77400", "score": "0.6074821", "text": "protected void addDirectory( Map includes, String prefix, File baseDir ) throws IOException\n {\n addDirectory( includes, null, null, prefix, baseDir );\n }", "title": "" }, { "docid": "407d0dc5c29eeecddd17d65de52ce23d", "score": "0.6068337", "text": "protected void addDirectory( Map includes, File baseDir ) throws IOException\n {\n addDirectory( includes, \"\", baseDir );\n }", "title": "" }, { "docid": "ccaa6a00596a2a75c5d548d9ee71f8f3", "score": "0.59613013", "text": "public Path getTemplateDirectory() {\n return Paths.get(\"/Users/michaelanderson/JANBTemplates\");\n }", "title": "" }, { "docid": "b276df0184c3717c546ba52b0dfd9521", "score": "0.56850153", "text": "protected void addDirectory( Map includes, String includesPattern, String excludesPattern, String prefix, File baseDir )\n throws IOException\n {\n if ( !baseDir.exists() )\n {\n return;\n }\n\n DirectoryScanner scanner = new DirectoryScanner();\n scanner.setBasedir( baseDir );\n if ( includesPattern != null )\n {\n scanner.setIncludes( StringUtils.split( includesPattern, \",\" ) );\n }\n\n if ( excludesPattern != null )\n {\n scanner.setExcludes( StringUtils.split( excludesPattern, \",\" ) );\n }\n scanner.scan();\n String[] files = scanner.getIncludedFiles();\n for ( int i = 0; i < files.length; i++ )\n {\n String file = files[i];\n file = file.replace( '\\\\', '/' ); // todo shouldn't the scanner return platform independent names?\n includes.put( prefix + file, new File( baseDir, file ) );\n }\n }", "title": "" }, { "docid": "a1e32d48c9b0180fcd92bdd81b513c95", "score": "0.55166525", "text": "private void directories(final Path start) throws IOException {\n\t\t// register directory and sub-directories\n\t\tFiles.walkFileTree(start, new SimpleFileVisitor<Path>() {\n\t\t\t@Override\n\t\t\tpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {\n\t\t\t\tregisterDirectory(dir);\n\t\t\t\treturn FileVisitResult.CONTINUE;\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "93ee0ace43770fcb4982eb1c9ba64ac8", "score": "0.5495275", "text": "void mkdirs(String path);", "title": "" }, { "docid": "aebbf22504370af1cbe1b16377a40862", "score": "0.5461796", "text": "private String getMergedTemplatesLocation()\n {\n return TEMPORARY_TEMPLATE_LOCATION + '/' + this.namespace;\n }", "title": "" }, { "docid": "75cd6fea2803e3e1f46842441645e3ca", "score": "0.5373411", "text": "private void addPackageDirFiles(WebFile aDir, List aList)\n {\n boolean hasNonPkgFile = false;\n for (WebFile child : aDir.getFiles())\n if (child.isDir() && child.getType().length() == 0)\n addPackageDirFiles(child, aList);\n else hasNonPkgFile = true;\n if (hasNonPkgFile || aDir.getFileCount() == 0) aList.add(aDir);\n }", "title": "" }, { "docid": "f86b3b22ae147f617f88cfdc562a47a7", "score": "0.53510857", "text": "@Attribute(defaultValue = \"virt/templates\")\n String getTemplatesLocation();", "title": "" }, { "docid": "b97e58424f8d0872bc8703b0743c2796", "score": "0.53328925", "text": "@Override\n public void createNodeDir() {\n // Copy templateNodePath to nodePath\n String destPath = getNodePath();\n try {\n try {\n PathUtils.deleteDirectory(Paths.get(destPath));\n } catch (NoSuchFileException e) {\n // ignored\n }\n // Here we need to copy without follow symbolic links, so we can't use FileUtils directly.\n try (Stream<Path> s = Files.walk(Paths.get(TEMPLATE_NODE_PATH))) {\n s.forEach(\n source -> {\n Path destination =\n Paths.get(destPath, source.toString().substring(TEMPLATE_NODE_PATH.length()));\n try {\n Files.copy(\n source,\n destination,\n LinkOption.NOFOLLOW_LINKS,\n StandardCopyOption.COPY_ATTRIBUTES);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n });\n }\n } catch (IOException ex) {\n logger.error(\"Copy node dir failed\", ex);\n fail();\n }\n }", "title": "" }, { "docid": "c4260e9f1f9cb83f60568c606b448443", "score": "0.52331024", "text": "public void createSubdirectories(String directories) throws IOException {\r\n\t\tStringBuffer abspath = new StringBuffer(m_tshome);\r\n\t\t// allow either \\ or / path delimiter\r\n\t\tStringTokenizer tz = new StringTokenizer(directories, \"/\\\\\");\r\n\t\twhile (tz.hasMoreElements()) {\r\n\t\t\tString subpath = (String) tz.nextToken();\r\n\t\t\tabspath.append(File.separatorChar);\r\n\t\t\tabspath.append(subpath);\r\n\t\t\tFile dir = new File(abspath.toString());\r\n\t\t\tdir.mkdir();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d583fca89abf2fa22a20c00a7ddf38d5", "score": "0.5210294", "text": "public static List<File> createRecipeDirectories( File applicationDirectory ) throws IOException {\n\n\t\tList<File> result = new ArrayList<> ();\n\t\tApplicationLoadResult alr = RuntimeModelIo.loadApplicationFlexibly( applicationDirectory );\n\t\tif( alr.getApplicationTemplate() != null ) {\n\t\t\tfor( Component c : ComponentHelpers.findAllComponents( alr.getApplicationTemplate())) {\n\t\t\t\tFile directory = ResourceUtils.findInstanceResourcesDirectory( applicationDirectory, c );\n\t\t\t\tif( ! directory.exists())\n\t\t\t\t\tresult.add( directory );\n\n\t\t\t\tUtils.createDirectory( directory );\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "1f3b94875bcb43ad1fbf2cc173fa3584", "score": "0.5161551", "text": "public void addWebinf( final ZipFileSet fs )\n {\n fs.setPrefix( \"WEB-INF/\" );\n super.addFileset( fs );\n }", "title": "" }, { "docid": "a773250259d99433ab2e1b3803d720af", "score": "0.5137922", "text": "public Folder setTemplates(List<Template> templates) {\n this.templates = templates;\n return this;\n }", "title": "" }, { "docid": "6db35a7e43dd03139a359b2e23df5dd1", "score": "0.5134734", "text": "private static void makeDirs() {\n final File[] outputFolder = { new File(\"output\"), new File(\"output\\\\commandoutput\"),\n new File(\"output\\\\mainoutput\"), new File(\"output\\\\savedfiles\") };\n for (final File f : outputFolder) {\n if (!f.exists()) {\n f.mkdir();\n }\n }\n }", "title": "" }, { "docid": "483e25a3fbc6333630c8339712471365", "score": "0.5131867", "text": "private void setTempDirectory(String templatePath){\n File templateFile = new File(templatePath);\n \n if(templateFile.exists()){\n \tSystem.setProperty(\"jasper.reports.compile.temp\", templateFile.getParent());\n }\n }", "title": "" }, { "docid": "a6f131f207e26b75455e775c30e4bb3e", "score": "0.5127375", "text": "private Collection<Directory> directories() throws IOException {\n return new FromFileSystem().withBase(getSource());\n }", "title": "" }, { "docid": "9fc66bc13e0322ed699a735cece81378", "score": "0.5099237", "text": "private void createDirectory() {\r\n try {\r\n Files.createDirectories(Paths.get(p1.toString()));\r\n } catch (Exception ex) {\r\n System.out.println(\"unable to create directory\");\r\n ex.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "4b6be80640b8cc32a64b232d62b21ccb", "score": "0.5078069", "text": "private void initialize() {\n File serverDirectory = new File(serverRootPath);\n\t\tFile userDirectory = new File(userDirectoryPath);\n\t\tFile fileDirectory = new File(fileDirectoryPath);\n\n if (!serverDirectory.exists()) \n\t\t\tserverDirectory.mkdirs();\n\t\t\t\n\t\tif (!userDirectory.exists())\n\t\t\tuserDirectory.mkdirs();\n\n\t\tif (!fileDirectory.exists())\n\t\t\tfileDirectory.mkdirs();\n\t}", "title": "" }, { "docid": "11d82219c0fa2c9609045a6925f48cde", "score": "0.50751126", "text": "protected void initDir(String _filePath) {\n // remove the file name\n _filePath = _filePath.substring(0, _filePath.lastIndexOf('/'));\n // add each element of the path in the cell of an array\n String[] path = _filePath.split(\"/\");\n // reconstruct the path from the beginning, one element after each other\n // if the folder under this path doesn't exist yet, it is created\n StringBuffer pathFromBeginning = new StringBuffer();\n for (String string : path) {\n pathFromBeginning.append(string);\n try {\n if (!getHelper().elementExists(pathFromBeginning.toString())) {\n if (getLog().isDebugEnabled())\n getLog().debug(\"*** Create directory: \" + _filePath);\n String result = getHelper().addDirectory(pathFromBeginning.toString());\n if (result.contains(\"success\"))\n getLog().info(\"Directory '\" + pathFromBeginning.toString() + \"' created succesfully.\");\n else\n getLog().warn(\"Cannot create directory '\" + _filePath + \"'. Reason:\\n\" + result);\n }\n } catch (MojoExecutionException e) {\n getLog().error(\"Error while creating directory '\" + _filePath + \"'. Exception:\\n\" + e.getMessage());\n }\n pathFromBeginning.append(\"/\");\n }\n }", "title": "" }, { "docid": "3f4130ed06168ac6ed6df7b8608c04b9", "score": "0.5074893", "text": "public void registerDirectory(Path path);", "title": "" }, { "docid": "87358a01638efced152fa409a92d4ab4", "score": "0.50566226", "text": "public void addSelectedTemplates() {\n\tfor (AbstractTemplate template: this.selected_templates) {\n\t\tInsertTemplateCommand command = new InsertTemplateCommand(this.context.getDocument(), null, template);\n\t\tcommand.execute();\n\t\tthis.context.addCommand(command);\n\t}\n}", "title": "" }, { "docid": "790ca55e7254f92e980d8558bf3c20d8", "score": "0.5045186", "text": "public MetadataSources addDirectory(File dir) {\n \t\tFile[] files = dir.listFiles();\n \t\tfor ( File file : files ) {\n \t\t\tif ( file.isDirectory() ) {\n \t\t\t\taddDirectory( file );\n \t\t\t}\n \t\t\telse if ( file.getName().endsWith( \".hbm.xml\" ) ) {\n \t\t\t\taddFile( file );\n \t\t\t}\n \t\t}\n \t\treturn this;\n \t}", "title": "" }, { "docid": "1cef791e3546d9a5a4891b5c77bc3c9a", "score": "0.50415283", "text": "private void addCustomFiles(final Template template, final HttpServletRequest request) {\r\n\r\n final long lmdeGroupId = LmdePortalUtil.getLmdeGroupId();\r\n ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);\r\n\r\n long currentGroupId = 0;\r\n if (Validator.isNotNull(themeDisplay.getLayout())) {\r\n currentGroupId = themeDisplay.getLayout().getGroupId();\r\n }\r\n\r\n /*\r\n * Si on est sur le site LMDE, alors on charge les fichiers customs (css/js) stockés dans la ged. Inutile de les\r\n * charger si on est dans le control panel par exemple.\r\n */\r\n if (currentGroupId > 0 && lmdeGroupId > 0 && lmdeGroupId == currentGroupId) {\r\n\r\n Folder customPortalFolder = null, customThemeFolder = null;\r\n try {\r\n // Récupération du dossier custom principal (Portal level)\r\n customPortalFolder = DLAppServiceUtil\r\n .getFolder(lmdeGroupId, DLFolderConstants.DEFAULT_PARENT_FOLDER_ID,\r\n LmdePortalProperties.LMDE_CUSTOM_PORTAL_FOLDER_NAME);\r\n\r\n String currentThemeId = themeDisplay.getThemeId();\r\n String folderThemeName = StringPool.BLANK;\r\n\r\n if (Validator.isNotNull(customPortalFolder)) {\r\n\r\n if (LmdePortalProperties.LMDE_MAIN_THEME_ID.equalsIgnoreCase(currentThemeId)) {\r\n folderThemeName = LmdePortalProperties.LMDE_CUSTOM_MAIN_THEME_FOLDER_NAME;\r\n\r\n } else if (LmdePortalProperties.LMDE_HOME_THEME_ID.equalsIgnoreCase(currentThemeId)) {\r\n folderThemeName = LmdePortalProperties.LMDE_CUSTOM_HOME_THEME_FOLDER_NAME;\r\n\r\n } else if (LmdePortalProperties.LMDE_ESPACE_PERSONNEL_THEME_ID.equalsIgnoreCase(currentThemeId)) {\r\n folderThemeName = LmdePortalProperties.LMDE_CUSTOM_ESPACE_PERSONNEL_THEME_FOLDER_NAME;\r\n }\r\n\r\n if (Validator.isNotNull(folderThemeName)) {\r\n // Récupération du dossier custom subsidiaire (Theme level)\r\n customThemeFolder = DLAppServiceUtil.getFolder(lmdeGroupId, customPortalFolder.getFolderId(),\r\n folderThemeName);\r\n }\r\n }\r\n } catch (PortalException e) {\r\n LOGGER.warn(\"Impossible de récupérer un ou plusieurs dossiers de la ged contenant les css/js customs. Vérifier l'existence du dossier \"\r\n + LmdePortalProperties.LMDE_CUSTOM_PORTAL_FOLDER_NAME\r\n + \" et des ses sous-dossiers \"\r\n + LmdePortalProperties.LMDE_CUSTOM_HOME_THEME_FOLDER_NAME\r\n + \", \"\r\n + LmdePortalProperties.LMDE_CUSTOM_MAIN_THEME_FOLDER_NAME\r\n + \", \"\r\n + LmdePortalProperties.LMDE_CUSTOM_ESPACE_PERSONNEL_THEME_FOLDER_NAME);\r\n } catch (SystemException e) {\r\n LOGGER.error(\"Impossible de récupérer le dossier de la ged contenant les css/js customs.\", e);\r\n }\r\n\r\n // On ajoute les paths des fichies js et css trouvés dans les dossiers\r\n List<String> customCssFilesPath = new ArrayList<>(), customJsFilesPath = new ArrayList<>();\r\n addFoldersFilesToList(themeDisplay, lmdeGroupId, customPortalFolder, customCssFilesPath, customJsFilesPath);\r\n addFoldersFilesToList(themeDisplay, lmdeGroupId, customThemeFolder, customCssFilesPath, customJsFilesPath);\r\n\r\n template.put(\"customCssFilesPath\", customCssFilesPath);\r\n template.put(\"customJsFilesPath\", customJsFilesPath);\r\n\r\n }\r\n }", "title": "" }, { "docid": "1948e417b4d4a691cf52a557a03704ba", "score": "0.50409347", "text": "public void createDir(String path){\n\t\tioProvider.createDir(path);\n\t}", "title": "" }, { "docid": "426b284d1417588d7be5e837cd60e8a3", "score": "0.5007663", "text": "public void setTemplatePath(String tu) {\n templatePath = tu;\n }", "title": "" }, { "docid": "b8bde07a338c789a4d6e7e099f3fe45f", "score": "0.50073314", "text": "SbAddRootDirRequest addRootDir( String location );", "title": "" }, { "docid": "29623f6fb5c8844ec5e74cf3ef0d0444", "score": "0.5003444", "text": "private void addWatchDir(String rootDirPath) throws IOException {\n Path path = Paths.get(rootDirPath);\n\n WatchEvent.Kind[] eventKinds = {\n StandardWatchEventKind.ENTRY_CREATE,\n StandardWatchEventKind.ENTRY_DELETE,\n ExtendedWatchEventKind.ENTRY_RENAME_FROM,\n ExtendedWatchEventKind.ENTRY_RENAME_TO\n };\n WatchKey key = path.register(m_watcher, eventKinds, ExtendedWatchEventModifier.FILE_TREE);\n m_keyMaps.put(key, path);\n }", "title": "" }, { "docid": "91abb050d2a86b85df8e8977b71d4743", "score": "0.50006384", "text": "private void makeTemplateLoader() {\n MultiTemplateLoader multiTemplateLoader = new MultiTemplateLoader(templateLoaders.toArray(new TemplateLoader[templateLoaders.size()]));\n configuration.setTemplateLoader(multiTemplateLoader);\n }", "title": "" }, { "docid": "3e935004f1c2f695d3ad89605e6c2afd", "score": "0.49922886", "text": "private void registerDirectory(Path dir) throws IOException {\n\t\tWatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);\n\t\tkeys.put(key, dir);\n\n\t\tFile folder = new File(\"/home/regen/git/caseStudyTwo/LetterBatch/resources/input/\");\n\t\tFile[] listOfFiles = folder.listFiles();\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++) {\n\t\t\tif (listOfFiles[i].isFile()) {\n\n\t\t\t\tif (listOfFiles[i].getName().toString().startsWith(\"COMPANY\")\n\t\t\t\t\t\t&& listOfFiles[i].getName().toString().endsWith(\".txt\")) {\n\n\t\t\t\t\tfile = new File(listOfFiles[i].getPath());\n\n\t\t\t\t\tpath = Paths.get(listOfFiles[i].getAbsolutePath());\n\n\t\t\t\t\tinputFile = new Reader(path);\n\t\t\t\t\tif (inputFile.isValidFile())\n\t\t\t\t\t\tinputFile.generateAllLetters();\n\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"Incorrect File Format.\");\n\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "f87392228a2b09c01a6b6f1c39d88139", "score": "0.49912804", "text": "public void addTemplateLoader(ServletContext servletContext, String path) {\n if (null != servletContext) {\n templateLoaders.add(new WebappTemplateLoader(servletContext, path));\n }\n }", "title": "" }, { "docid": "cc80d7c7d9c50edb796cddfc783157ee", "score": "0.4977529", "text": "public void loadPageTemplates() throws IOException {\n\t\tloadPageTemplates(templateRootFolder);\n\t}", "title": "" }, { "docid": "19e32b19b9da8dd88109b826de03c010", "score": "0.49669957", "text": "protected void addFileSet(\n String path,\n String[] includes,\n String[] excludes,\n String relPath,\n List osList,\n ArrayList list,\n boolean casesensitive,\n int override)\n throws CompilerException\n {\n File test = new File(path);\n if (test.isDirectory())\n {\n DirectoryScanner ds = new DirectoryScanner();\n ds.setIncludes(includes);\n ds.setExcludes(excludes);\n ds.setBasedir(new File(path));\n ds.setCaseSensitive(casesensitive);\n ds.scan();\n \n String[] files = ds.getIncludedFiles();\n String[] dirs = ds.getIncludedDirectories();\n \n /* Old buggy code\n String newRelativePath = null;\n \n String absolutBasePath = test.getParentFile().getAbsolutePath();\n String absolutPath = test.getAbsolutePath();\n String absolutFilePath = null;\n int copyPathFrom = absolutBasePath.length() + 1;\n for (int i = 0; i < files.length; i++)\n {\n File file = new File(absolutPath + File.separator + files[i]);\n \n absolutFilePath = file.getParentFile().getAbsolutePath();\n \n newRelativePath = relPath + File.separator + absolutFilePath.substring(copyPathFrom);\n //FIX ME: the override for fileset is by default true, needs to be changed\n addFile(file, newRelativePath, targetOs, true, list);\n }\n */\n \n // New working code (for files)\n String filePath, instPath, expPath;\n int pathLimit;\n File file;\n for (int i = 0; i < files.length; ++i)\n {\n filePath = path + File.separator + files[i];\n expPath = relPath + File.separator + files[i];\n file = new File(filePath);\n pathLimit = expPath.indexOf(file.getName());\n if (pathLimit > 0)\n instPath = expPath.substring(0, pathLimit);\n else\n instPath = relPath;\n addFile(file, instPath, osList, override, list);\n }\n \n // Empty directories are left by the previous code section, so we need to\n // take care of them\n for (int i = 0; i < dirs.length; ++i)\n {\n expPath = path + File.separator + dirs[i];\n File dir = new File(expPath);\n if (dir.list().length == 0)\n {\n instPath = relPath + File.separator + dirs[i];\n pathLimit = instPath.lastIndexOf(dir.getName());\n instPath = instPath.substring(0, pathLimit);\n addFile(dir, instPath, osList, override, list);\n }\n }\n } else\n throw new CompilerException(\n \"\\\"dir\\\" attribute of fileset is not valid: \" + path);\n }", "title": "" }, { "docid": "7cc5d4a3bce912473cee8de271624008", "score": "0.49593532", "text": "public static void populateTreeWithDirectories(TreeView<String> tree) {\n Arrays.stream(File.listRoots()).\n sorted().\n forEach(rootDirectory -> {\n TreeItem<String> subRoot = new TreeItem<>(rootDirectory.getAbsolutePath());\n tree.getRoot().getChildren().add(subRoot);\n populateNodeWithData(subRoot, rootDirectory);\n });\n }", "title": "" }, { "docid": "bf6c70c70a0fc904cf368e5acea171c8", "score": "0.49592078", "text": "private String templateFullPath(String path) {\n\n if (path.startsWith(File.separator)) {\n path = path.substring(1);\n }\n\n String templateDir = HttpContext.app().getEnv().get(ENV_KEY_TEMPLATE_ROOT_FOLDER, DEFAULT_TEMPLATE_ROOT_FOLDER);\n return templateDir.concat(\"/\").concat(path);\n }", "title": "" }, { "docid": "b699968a4c8440509fcbf73a194765d7", "score": "0.49536493", "text": "@Override\n protected void setupCommonDirs()\n {\n // Add Dir of Ada PeriodicDelayed runtime\n File adaPeriodicDelayedRuntimeDir ;\n adaPeriodicDelayedRuntimeDir = new File(RamsesConfiguration.getPredefinedResourceDir()\n .getAbsolutePath() +\n _ADA_SUB_PATH) ;\n _includeDirManager.addCommonDependency(adaPeriodicDelayedRuntimeDir) ;\n }", "title": "" }, { "docid": "71b3f0c953726d8f9224d4f4d7989535", "score": "0.49467602", "text": "private void setBaseDirectory(List<DataWriter> dataWriterPlugins) {\n dataWriterPlugins.forEach((p) -> {\n if (ObjectUtils.allNotNull(baseDir)) {\n p.setBaseDir(baseDir);\n } else {\n logger.error(\"Couldn't set a base directory. Make sure that you have \"\n + \"provided a valid path to base directory.\");\n }\n });\n }", "title": "" }, { "docid": "5e4f75e7997912d39808addc51822a0a", "score": "0.49264914", "text": "@NotNull\n public static Collection<VirtualFile> getTemplateFiles(@NotNull Project project, @NotNull String templateName) {\n String normalizedTemplateName = normalizeTemplateName(templateName);\n\n Collection<VirtualFile> virtualFiles = new HashSet<>();\n for (TwigPath twigPath : getTwigNamespaces(project)) {\n if(!twigPath.isEnabled()) {\n continue;\n }\n\n if(normalizedTemplateName.startsWith(\"@\")) {\n // @Namespace/base.html.twig\n // @Namespace/folder/base.html.twig\n if(normalizedTemplateName.length() > 1 && twigPath.getNamespaceType() != NamespaceType.BUNDLE) {\n int i = normalizedTemplateName.indexOf(\"/\");\n if(i > 0) {\n String templateNs = normalizedTemplateName.substring(1, i);\n if(twigPath.getNamespace().equals(templateNs)) {\n addFileInsideTwigPath(project, normalizedTemplateName.substring(i + 1), virtualFiles, twigPath);\n }\n }\n }\n } else if(normalizedTemplateName.startsWith(\":\")) {\n // ::base.html.twig\n // :Foo:base.html.twig\n if(normalizedTemplateName.length() > 1 && twigPath.getNamespaceType() == NamespaceType.BUNDLE && twigPath.isGlobalNamespace()) {\n String templatePath = StringUtils.strip(normalizedTemplateName.replace(\":\", \"/\"), \"/\");\n addFileInsideTwigPath(project, templatePath, virtualFiles, twigPath);\n }\n } else {\n // FooBundle::base.html.twig\n // FooBundle:Bar:base.html.twig\n if(twigPath.getNamespaceType() == NamespaceType.BUNDLE) {\n int i = normalizedTemplateName.indexOf(\":\");\n if(i > 0) {\n String templateNs = normalizedTemplateName.substring(0, i);\n if(twigPath.getNamespace().equals(templateNs)) {\n String templatePath = StringUtils.strip(normalizedTemplateName.substring(i + 1).replace(\":\", \"/\").replace(\"//\", \"/\"), \"/\");\n addFileInsideTwigPath(project, templatePath, virtualFiles, twigPath);\n }\n\n }\n }\n\n // form_div_layout.html.twig\n if(twigPath.isGlobalNamespace() && twigPath.getNamespaceType() == NamespaceType.ADD_PATH) {\n String templatePath = StringUtils.strip(normalizedTemplateName.replace(\":\", \"/\"), \"/\");\n addFileInsideTwigPath(project, templatePath, virtualFiles, twigPath);\n }\n\n // Bundle overwrite:\n // FooBundle:index.html -> app/views/FooBundle:index.html\n if(twigPath.isGlobalNamespace() && !normalizedTemplateName.startsWith(\":\") && !normalizedTemplateName.startsWith(\"@\")) {\n String templatePath = StringUtils.strip(normalizedTemplateName.replace(\":\", \"/\").replace(\"//\", \"/\"), \"/\");\n addFileInsideTwigPath(project, templatePath, virtualFiles, twigPath);\n }\n }\n }\n\n return virtualFiles;\n }", "title": "" }, { "docid": "be69ebb4f52d2d9c3cefc4c782ee1ada", "score": "0.49218562", "text": "public static boolean createIncludePaths() {\r\n //TODO this should be a prefs option\r\n return true;\r\n }", "title": "" }, { "docid": "968a86732018f939b5e169f80863cf92", "score": "0.49011067", "text": "private void writeDirectories(JsonGenerator jsonGenerator) throws IOException {\n jsonGenerator.writeArrayFieldStart(\"directories\");\n for (DirectoryGroup dg : ProjectGroup.directoryGroups) {\n jsonGenerator.writeStartObject(dg.getPackage());\n jsonGenerator.writeStringField(\"pathName\", dg.getPackage());\n if (dg.getParentGroup() != null) {\n jsonGenerator.writeStringField(\"parent\", dg.getParentGroup().getPackage());\n } else {\n jsonGenerator.writeStringField(\"parent\", \"\");\n }\n jsonGenerator.writeEndObject();\n }\n jsonGenerator.writeEndArray();\n }", "title": "" }, { "docid": "3788a8efc88a333f50246f87518f33e9", "score": "0.48948044", "text": "protected void downloadTemplates(ProgressMonitor... monitors) throws IOException {\r\n File templateDir = getTemplateDir();\r\n if (!templateDir.exists()) {\r\n if (!templateDir.mkdirs())\r\n throw new IOException(\"Unable to create directory: \" + templateDir.getAbsolutePath());\r\n String templatesUrl = getTemplatesUrl();\r\n System.out.println(\"Retrieving templates: \" + templatesUrl);\r\n File tempZip = Files.createTempFile(\"mdw-templates-\", \".zip\").toFile();\r\n new Download(new URL(templatesUrl), tempZip).run(monitors);\r\n File tempDir = Files.createTempDirectory(\"mdw-templates-\").toFile();\r\n new Unzip(tempZip, tempDir, false).run();\r\n File codegenDir = new File(templateDir + \"/codegen\");\r\n new Copy(new File(tempDir + \"/codegen\"), codegenDir, true).run();\r\n File assetsDir = new File(templateDir + \"/assets\");\r\n new Copy(new File(tempDir + \"/assets\"), assetsDir, true).run();\r\n }\r\n }", "title": "" }, { "docid": "7b9f892fddb9168d6914c9a118e52329", "score": "0.4884885", "text": "@Before\n public void setup() {\n final String dirLiteral = \"directory\";\n fs = FileSystem.createFileSystem();\n for (int i = 1; i <= 3; i++) {\n fs.createDirectoryCurrentDirectory(\"dir\" + i);\n }\n File tmpFileNode;\n // file1 inside /\n tmpFileNode = fs.createFileUnderCurrentDirectory(\"file1\");\n tmpFileNode.appendContent(\"file1\");\n // file1_1 inside dir1\n tmpFileNode = fs.createFileWithParent(\"file1_1\",\n (Directory) fs.checkPath(\"/dir1\", dirLiteral));\n tmpFileNode.appendContent(\"file1_1\");\n // dir2_1 inside dir2\n fs.createDirectoryWithParent(\"dir2_1\",\n (Directory) fs.checkPath(\"/dir2\", dirLiteral));\n // file2_1_1 inside dir2_1\n tmpFileNode = fs.createFileWithParent(\"file2_1_1\",\n (Directory) fs.checkPath(\"/dir2/dir2_1\", dirLiteral));\n tmpFileNode.appendContent(\"file2_1_1\");\n }", "title": "" }, { "docid": "1bec2af20a60fd8023054580e41fd077", "score": "0.4882509", "text": "@Override\r\n public void addResourceHandlers(ResourceHandlerRegistry registry) {\r\n registry.addResourceHandler(\"/static/**\").addResourceLocations(\"/static/\");\r\n\t\tregistry.addResourceHandler(\"/resources/**\").addResourceLocations(\"/resources/\");\r\n\t}", "title": "" }, { "docid": "1ddf12e4d83bc019dba82b6db699fbbf", "score": "0.48794997", "text": "private static boolean checkAndCreateDefaultDirectories() {\n List<String> dirs = Arrays.asList(Configuration.Directories.INPUT,\n Configuration.Directories.PALLETS, Configuration.Directories.PROCESSED, Configuration.Directories.OUTPUT\n , Configuration.Directories.OUTPUT + \"/\" + Configuration.Directories.GIF_RELATIVE,\n Configuration.Directories.OUTPUT + \"/\" + Configuration.Directories.RAW_RELATIVE\n , Configuration.Directories.OUTPUT + \"/\" + Configuration.Directories.OIL_PAINTED_RELATIVE);\n for (String dir : dirs) {\n File dirObj = new File(dir);\n //Check they exists and create if not.\n if (!dirObj.exists() && !dirObj.mkdir()) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "d1b0de8bfb0f32f470ef6cbffecbd2e3", "score": "0.48719382", "text": "void createDirectory(String name);", "title": "" }, { "docid": "4f3305cb20ef80cf9b286a6b3f53aa9f", "score": "0.48440394", "text": "protected void prepareWarDirectory() {\n\t}", "title": "" }, { "docid": "05f7586afb773895253f7aa3448d5da8", "score": "0.4839221", "text": "private void setupFilePaths() {\n mcmmo = getFile();\n mainDirectory = getDataFolder().getPath() + File.separator;\n flatFileDirectory = mainDirectory + \"flatfile\" + File.separator;\n usersFile = flatFileDirectory + \"mcmmo.users\";\n modDirectory = mainDirectory + \"mods\" + File.separator;\n fixFilePaths();\n }", "title": "" }, { "docid": "4975e0078fa43844a3ae775c790c46fa", "score": "0.48263055", "text": "private static void addDirectory(ZipOutputStream zout, File fileSource, File sourceDir) {\n\n\t\t// get sub-folder/files list\n\t\tFile[] files = fileSource.listFiles();\n\n\t\tlogger.debug(\"Adding directory \" + fileSource.getName());\n\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\ttry {\n\t\t\t\tString name = files[i].getAbsolutePath();\n\t\t\t\tname = name.substring((int) sourceDir.getAbsolutePath().length());\n\t\t\t\t// if the file is directory, call the function recursively\n\t\t\t\tif (files[i].isDirectory()) {\n\t\t\t\t\taddDirectory(zout, files[i], sourceDir);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * we are here means, its file and not directory, so\n\t\t\t\t * add it to the zip file\n\t\t\t\t */\n\n\t\t\t\tlogger.debug(\"Adding file \" + files[i].getName());\n\n\t\t\t\t// create object of FileInputStream\n\t\t\t\tFileInputStream fin = new FileInputStream(files[i]);\n\n\t\t\t\tzout.putNextEntry(new ZipEntry(name));\n\n\t\t\t\tIOUtils.copy(fin, zout);\n\t\t\t\t\n\t\t\t\tzout.closeEntry();\n\n\t\t\t\t// close the InputStream\n\t\t\t\tfin.close();\n\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tlogger.error(ioe.getMessage(), ioe);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "1a39eda594648d9eb46f38df70183324", "score": "0.48218548", "text": "@Override\r\n public void generarDireccion() {\r\n \r\n \r\n }", "title": "" }, { "docid": "5d2c2655ca286117280fe8a785a44d12", "score": "0.48153314", "text": "@Override\r\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\r\n\t\tregistry.addResourceHandler(\"/resources/**\")\t// predefined word resources\r\n\t\t\t\t\t .addResourceLocations(\"/resources/\"); // our path location\r\n\t}", "title": "" }, { "docid": "356561f748deeb210c413f5e59233429", "score": "0.47735032", "text": "@Override\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\n\t\tString publicFilesDir = String.format(\"file:%s/userfiles/\", System.getProperty(\"user.dir\"));\n\n\t\tregistry.addResourceHandler(\"/userfiles/**\").addResourceLocations(publicFilesDir);\n\t}", "title": "" }, { "docid": "cc5d9af81b2a4562de92708532061752", "score": "0.4763076", "text": "String getOutputDir();", "title": "" }, { "docid": "2a3b2e0031be12436ff7a2a4a779f112", "score": "0.47537556", "text": "public void setDirectories() {\n\t\tDirectoryChooser directory = new DirectoryChooser(\"Choose input directory\");\n\t\tInputDirectory = directory.getDirectory();\n\t\tdirectory = new DirectoryChooser(\"Choose output directory\");\n\t\tOutputDirectory = directory.getDirectory();\n\t\tFile folder = new File(InputDirectory);\n\t\tFile[] files = folder.listFiles(new FilenameFilter() {\n\t\t\t@Override\n \tpublic boolean accept(File dir, String name) {\n \t\t//ignore outline.tiff & outline.tif\n \tif((name.toLowerCase().endsWith(\".tiff\") && !name.toLowerCase().endsWith(\"outline.tiff\")) || (name.toLowerCase().endsWith(\".tif\") && !name.toLowerCase().endsWith(\"outline.tif\"))){\n \t\treturn true;\n \t} else {\n \treturn false;\n \t}\n \t}\n \t});\n \tfilenum=files.length;\n \timagelist = new String[filenum];\n \tfor(int i=0; i<filenum; i++)\n \t\timagelist[i]=files[i].getName();\n\t\treturn;\n\t}", "title": "" }, { "docid": "4391200eb44bdc9994e6a38a0f550cbc", "score": "0.47453555", "text": "private String buildFileDirectory(String[] strings, boolean useLeadingSlash, boolean useTrailingSlash){\n\t\tStringBuilder result = new StringBuilder();\n\t\tString slash = File.separator;\n\t\tif (useLeadingSlash){\n\t\t\tresult.append(slash);\n\t\t}\n\t\tfor (int i = 0; i < (strings.length); i++){\n\t\t\tresult.append(strings[i]).append(slash);\n\t\t}\n\t\tif (useTrailingSlash){\n\t\t\tresult.append(slash);\n\t\t}\n\t\treturn result.toString();\n\t}", "title": "" }, { "docid": "4cb9bff2e45d728b7cd8cd7916dc8a78", "score": "0.4742305", "text": "public void prepareFileHierarchy(){\n\t\trootDirectory = new Directory(\"/\", 24000, \"text\", new Date(), defaultUser , true, true, null);\n\t\trootDirectory.setFather(rootDirectory);\n\t\t\n\t\t/* Some directories and files*/\n\t\tRepositoryClass homeForAll = new Directory(\"homeForAll\", 24000, \"text\", new Date(), defaultUser, true, true, rootDirectory);\n\t\tRepositoryClass fileForAll = new File(\"fileForAll\", 8000, \"text\", \"Acest fisier se numeste fileForAll.\", new Date(), defaultUser, true, true, homeForAll);\n\t\tRepositoryClass dirForAll = new Directory(\"dirForAll\", 16000, \"text\", new Date(), defaultUser, true, true, homeForAll);\n\t\tRepositoryClass myDir = new Directory(\"myDir\", 8000, \"text\", new Date(), defaultUser, true, true, dirForAll);\n\t\tRepositoryClass myFile = new File(\"myFile\", 8000, \"text\", \"Acest fisier se numeste myFile.\", new Date(), defaultUser, true, true, dirForAll);\n\t\tRepositoryClass simpleFile = new File(\"simpleFile\", 8000, \"text\", \"Acesta este un fisier simplu\", new Date(), defaultUser, true, true, myDir);\n\t\t\n\t\tmyDir.addChild(simpleFile);\n\t\tdirForAll.addChild(myDir);\n\t\tdirForAll.addChild(myFile);\n\t\thomeForAll.addChild(dirForAll);\n\t\thomeForAll.addChild(fileForAll);\n\t\trootDirectory.addChild(homeForAll);\n\t}", "title": "" }, { "docid": "c2241792e141ead320ef0a6a8d7134b3", "score": "0.47251987", "text": "private void initTempDir(String sourceRoot) {\n Path projectRoot = Paths.get(sourceRoot, TesterinaConstants.TESTERINA_TEMP_DIR, \".ballerina\");\n if (!Files.exists(projectRoot)) {\n try {\n Files.createDirectories(projectRoot);\n } catch (IOException e) {\n throw new BallerinaException(String.format(\"Service skeleton creation failed. Failed to create \" +\n \"[.ballerina] %s [cause] %s\", projectRoot.toString(), e.getMessage()), e);\n }\n }\n }", "title": "" }, { "docid": "c73de0ebbaa660f6d795a1162099de61", "score": "0.4723116", "text": "void createDirectory(String relativePath) throws IllegalArgumentException;", "title": "" }, { "docid": "9c18e628b313614ab28732edff116655", "score": "0.47157872", "text": "@Override\r\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\r\n\t\t\r\n\t\tregistry.addResourceHandler(\"/static/**\").addResourceLocations(\"classpath:/static/\");\r\n\r\n\t}", "title": "" }, { "docid": "a3ea3dda817532c8a26476f702988e22", "score": "0.4713735", "text": "public void createOutputDirTree() {\n\t\t\n\t\tfileSelectors.get(0).inputOutputFramework.createOutputDirTree();\n\t\t\n\t}", "title": "" }, { "docid": "7a64e9e225f27d91edd761e19c3acb28", "score": "0.47071785", "text": "@Override\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\n\t\tregistry.addResourceHandler(\"/assets/upimages/**\").addResourceLocations(\"file:/jblog-uploads/\");\n\t}", "title": "" }, { "docid": "3338142519a89b0effbc9faff2381272", "score": "0.47042644", "text": "@Override\n public void addResourceHandlers(ResourceHandlerRegistry registry) {\n registry\n .addResourceHandler(\"/resources/**\").addResourceLocations(\"/resources/\");\n registry\n .addResourceHandler(\"/static/css/**\").addResourceLocations(\"classpath:/static/css/\");\n registry\n .addResourceHandler(\"/static/js/**\").addResourceLocations(\"classpath:/static/js/\");\n }", "title": "" }, { "docid": "d946a5b51308177928eac22dd7adbac7", "score": "0.46958005", "text": "private void initDictionaryDirPaths() throws IOException {\n String dictionaryLocation = CarbonTablePath.getMetadataPath(tablePath);\n FileFactory.FileType fileType = FileFactory.getFileType(dictionaryLocation);\n if(!FileFactory.isFileExist(dictionaryLocation, fileType)) {\n FileFactory.mkdirs(dictionaryLocation, fileType);\n }\n this.dictionaryFilePath = CarbonTablePath.getDictionaryFilePath(tablePath, columnIdentifier.getColumnId());\n this.dictionaryMetaFilePath = CarbonTablePath.getDictionaryMetaFilePath(tablePath, columnIdentifier.getColumnId());\n }", "title": "" }, { "docid": "daa95680d06f68618ee51f02373fe28c", "score": "0.46952873", "text": "private static TwigCreateContainer getOnCreateTemplateElements(@NotNull final Project project, @NotNull VirtualFile startDirectory) {\n\n final TwigCreateContainer containerElement = new TwigCreateContainer();\n\n VfsUtil.processFilesRecursively(startDirectory, new Processor<>() {\n @Override\n public boolean process(VirtualFile virtualFile) {\n\n if (virtualFile.getFileType() != TwigFileType.INSTANCE) {\n return true;\n }\n\n PsiFile twigFile = PsiManager.getInstance(project).findFile(virtualFile);\n if (twigFile instanceof TwigFile) {\n collect((TwigFile) twigFile);\n }\n\n return true;\n }\n\n private void collect(TwigFile twigFile) {\n for (PsiElement psiElement : twigFile.getChildren()) {\n if (psiElement instanceof TwigExtendsTag) {\n for (String s : getTwigExtendsTagTemplates((TwigExtendsTag) psiElement)) {\n containerElement.addExtend(s);\n }\n } else if (psiElement.getNode().getElementType() == TwigElementTypes.BLOCK_STATEMENT) {\n PsiElement blockTag = psiElement.getFirstChild();\n if (blockTag instanceof TwigBlockTag) {\n String name = ((TwigBlockTag) blockTag).getName();\n if (StringUtils.isNotBlank(name)) {\n containerElement.addBlock(name);\n }\n }\n\n }\n\n }\n }\n\n });\n\n return containerElement;\n\n }", "title": "" }, { "docid": "203c4adcb17c7179a2df7e3fa33e87f7", "score": "0.46884406", "text": "public void configureJettyBase() throws Exception\n {\n if (jettyBase != null && !jettyBase.exists())\n throw new IllegalStateException(jettyBase.getAbsolutePath() +\" does not exist\");\n \n targetBase = new File(target, \"jetty-base\");\n Path targetBasePath = targetBase.toPath();\n Files.deleteIfExists(targetBase.toPath());\n\n targetBase.mkdirs();\n \n if (jettyBase != null)\n {\n Path jettyBasePath = jettyBase.toPath();\n \n //copy the existing jetty base\n Files.walkFileTree(jettyBasePath,EnumSet.of(FileVisitOption.FOLLOW_LINKS), \n Integer.MAX_VALUE,\n new SimpleFileVisitor<Path>() \n {\n /** \n * @see java.nio.file.SimpleFileVisitor#preVisitDirectory(java.lang.Object, java.nio.file.attribute.BasicFileAttributes)\n */\n @Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException\n {\n Path targetDir = targetBasePath.resolve(jettyBasePath.relativize(dir));\n try\n {\n Files.copy(dir, targetDir);\n }\n catch (FileAlreadyExistsException e)\n {\n if (!Files.isDirectory(targetDir)) //ignore attempt to recreate dir\n throw e;\n }\n return FileVisitResult.CONTINUE;\n }\n\n /** \n * @see java.nio.file.SimpleFileVisitor#visitFile(java.lang.Object, java.nio.file.attribute.BasicFileAttributes)\n */\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException\n {\n if (contextXml != null && Files.isSameFile(Paths.get(contextXml), file))\n return FileVisitResult.CONTINUE; //skip copying the context xml file\n Files.copy(file, targetBasePath.resolve(jettyBasePath.relativize(file)));\n return FileVisitResult.CONTINUE;\n }\n\n });\n }\n\n //make the jetty base structure\n Path modulesPath = Files.createDirectories(targetBasePath.resolve(\"modules\"));\n Path etcPath = Files.createDirectories(targetBasePath.resolve(\"etc\"));\n Path libPath = Files.createDirectories(targetBasePath.resolve(\"lib\"));\n Path webappPath = Files.createDirectories(targetBasePath.resolve(\"webapps\"));\n Path mavenLibPath = Files.createDirectories(libPath.resolve(\"maven\"));\n\n //copy in the jetty-maven-plugin jar\n URI thisJar = TypeUtil.getLocationOfClass(this.getClass());\n if (thisJar == null)\n throw new IllegalStateException(\"Can't find jar for jetty-maven-plugin\");\n\n try(InputStream jarStream = thisJar.toURL().openStream();\n FileOutputStream fileStream = new FileOutputStream(mavenLibPath.resolve(\"plugin.jar\").toFile()))\n {\n IO.copy(jarStream,fileStream);\n }\n\n //copy in the maven.xml webapp file\n try (InputStream mavenXmlStream = getClass().getClassLoader().getResourceAsStream(\"maven.xml\"); \n FileOutputStream fileStream = new FileOutputStream(webappPath.resolve(\"maven.xml\").toFile()))\n {\n IO.copy(mavenXmlStream, fileStream);\n }\n \n //copy in the maven.mod file\n try (InputStream mavenModStream = getClass().getClassLoader().getResourceAsStream(\"maven.mod\");\n FileOutputStream fileStream = new FileOutputStream(modulesPath.resolve(\"maven.mod\").toFile()))\n {\n IO.copy(mavenModStream, fileStream);\n }\n \n //copy in the jetty-maven.xml file\n try (InputStream jettyMavenStream = getClass().getClassLoader().getResourceAsStream(\"jetty-maven.xml\");\n FileOutputStream fileStream = new FileOutputStream(etcPath.resolve(\"jetty-maven.xml\").toFile()))\n {\n IO.copy(jettyMavenStream, fileStream);\n }\n \n //if there were plugin dependencies, copy them into lib/ext\n if (libExtJars != null && !libExtJars.isEmpty())\n {\n Path libExtPath = Files.createDirectories(libPath.resolve(\"ext\"));\n for (Dependency d:libExtJars)\n {\n Artifact a = resolveArtifact(d.getGroupId(), d.getArtifactId(), d.getVersion(), d.getType());\n try (InputStream jarStream = new FileInputStream(a.getFile());\n FileOutputStream fileStream = new FileOutputStream(libExtPath.resolve(d.getGroupId()+\".\"+d.getArtifactId()+\"-\"+d.getVersion()+\".\"+d.getType()).toFile()))\n {\n IO.copy(jarStream, fileStream);\n }\n }\n }\n \n //create properties file that describes the webapp\n createPropertiesFile(etcPath.resolve(\"maven.props\").toFile());\n }", "title": "" }, { "docid": "422c58039d0d7faad27e741524d02c66", "score": "0.46826726", "text": "private static void createSystemFolders() {\r\n\t\t// Create the main System directory(Folder)\r\n\t\tmainFoler = createSingleFolder(curWorkingDir);\r\n\t\tArrayList<String> companies = AnalticData.getAllCompanies();\r\n\t\tfor (String val : companies) {\r\n\t\t\tcreateCompanyFolderSystem(val);\r\n\t\t\t}\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "bd032fa3f573a1defbdb5c80f52d4eff", "score": "0.46763137", "text": "void setBaseDir(File baseDir);", "title": "" }, { "docid": "a48853e5525ce9b4b4edca1173a03475", "score": "0.46589378", "text": "public final String getTemplatesPath() {\n return templatesPath.getPath();\n }", "title": "" }, { "docid": "45a2c9b784ed809d643f9524f62d54d3", "score": "0.46446988", "text": "public void addClasses( final ZipFileSet fs )\n {\n fs.setPrefix( \"WEB-INF/classes/\" );\n super.addFileset( fs );\n }", "title": "" }, { "docid": "6343ccf3e93da622398b10cecfa041fc", "score": "0.4642749", "text": "public Configuration addDirectory(File dir) throws MappingException {\n \t\tFile[] files = dir.listFiles();\n \t\tfor ( File file : files ) {\n \t\t\tif ( file.isDirectory() ) {\n \t\t\t\taddDirectory( file );\n \t\t\t}\n \t\t\telse if ( file.getName().endsWith( \".hbm.xml\" ) ) {\n \t\t\t\taddFile( file );\n \t\t\t}\n \t\t}\n \t\treturn this;\n \t}", "title": "" }, { "docid": "6343ccf3e93da622398b10cecfa041fc", "score": "0.4642749", "text": "public Configuration addDirectory(File dir) throws MappingException {\n \t\tFile[] files = dir.listFiles();\n \t\tfor ( File file : files ) {\n \t\t\tif ( file.isDirectory() ) {\n \t\t\t\taddDirectory( file );\n \t\t\t}\n \t\t\telse if ( file.getName().endsWith( \".hbm.xml\" ) ) {\n \t\t\t\taddFile( file );\n \t\t\t}\n \t\t}\n \t\treturn this;\n \t}", "title": "" }, { "docid": "740b225f50ba42d6d1b715138cd9d707", "score": "0.46413693", "text": "private void createDirectories(Path path) throws ImplerException {\n if (path.getParent() != null) {\n try {\n Files.createDirectories(path.getParent());\n } catch (IOException e) {\n throw new ImplerException(\"Can't create directories in path: \" + path);\n }\n }\n }", "title": "" }, { "docid": "f31fd6a3439fd765a1d301c1f2b8b076", "score": "0.464036", "text": "@Override\r\n public void createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException {\n }", "title": "" }, { "docid": "80ad4531f7a0ab24bde3604af1b756b4", "score": "0.46390834", "text": "private void registerSubDirectories(Path rootDir) throws IOException {\n // Note that this does not follow symlinks.\n WatcherFileVisitor watcherFileVisitor = new WatcherFileVisitor(ignoredPaths);\n Files.walkFileTree(rootDir, watcherFileVisitor);\n }", "title": "" }, { "docid": "e2c3e062f6aa029f0ce53435dd0e5385", "score": "0.46239918", "text": "@Test\n public void check_that_all_symlinks_templates_directory_are_generated() throws Exception {\n TemplatesGenerator templatesGenerator = new TemplatesGenerator(\"coab-depls\",\n \"areferencemodel\",\n \"r\",\n \"_\",\n new VarsFilesYmlFormatter(false));\n\n //Given a minimal deployment structure\n Structure deploymentStructure = new Structure.StructureBuilder(tempDir.toPath())\n .withDirectoryHierarchy(\"coab-depls\",\n templatesGenerator.computeDeploymentName(SERVICE_INSTANCE_ID),\n DeploymentConstants.TEMPLATE).build();\n\n //When\n templatesGenerator.generateAllSymLinks(tempDir.toPath(), SERVICE_INSTANCE_ID);\n\n //Then\n String expectedStructure = expectedStructure(\"coab-depls\", \"expected-areferencemodel-tree.txt\", templatesGenerator.computeDeploymentName(SERVICE_INSTANCE_ID));\n String generatedStructure = generatedStructure(\"coab-depls\", \"areferencemodel\", templatesGenerator.computeDeploymentName(SERVICE_INSTANCE_ID));\n assertEquals(expectedStructure, generatedStructure);\n }", "title": "" }, { "docid": "9989c8c4acee350d037ba6ff7151edd4", "score": "0.46224165", "text": "void addFiles(String configuration, LocalFileDependencyMetadata files);", "title": "" }, { "docid": "ab9d066f7a55e0d6ae20686ebd67a74d", "score": "0.46222126", "text": "EngineBuilder devSourceDir( File dir );", "title": "" }, { "docid": "4aacf683aedf4e2034e40bdb9b92c3b8", "score": "0.46068954", "text": "public static void init() {\n\t\tString outputPath = App.model.getOutputPath();\n\t\tnew File(outputPath).mkdirs();\n\t\tnew File(App.model.temDir).mkdirs();\n\t}", "title": "" }, { "docid": "ae947cfb6c4ad1925c58ed8c75560b2c", "score": "0.4600485", "text": "@Override\r\n\tpublic DQ setHtmlDir(final String dir) {\r\n\t\tsuper.setHtmlDir(dir) ;\r\n\t\treturn this ;\r\n\t}", "title": "" }, { "docid": "1ef78419b9535ba1438fc896da9634fd", "score": "0.45891312", "text": "private void createDirectories(String filePath) {\n String path = filePath.substring(0, filePath.lastIndexOf(File.separatorChar));\n Path directoryPath = Paths.get(path);\n try {\n Files.createDirectories(directoryPath).toFile();\n } catch (IOException exception) {\n System.err.println(\"Problem occurred with creating directory: \" + exception.getMessage());\n }\n }", "title": "" }, { "docid": "8fd6400f726eb50054da8a84af21f491", "score": "0.45877036", "text": "public static void addDefinitions() {\n addAuthUserLayoutDef(\"home\", \"Home\", \"/WEB-INF/views/home.jsp\");\n addAuthUserLayoutDef(\"addSociety\", \"Add Society\", \"/WEB-INF/views/addSociety.jsp\");\n addAuthUserLayoutDef(\"addEmployeePage\", \"Add Employee\", \"/WEB-INF/views/addEmployeePage.jsp\");\n addAuthUserLayoutDef(\"viewEmployee\", \"View Employee\", \"/WEB-INF/views/viewEmployee.jsp\");\n addAuthUserLayoutDef(\"editEmployee\", \"Edit Employee\", \"/WEB-INF/views/editEmployeePage.jsp\");\n addAuthUserLayoutDef(\"addInfield\", \"Add Infield\", \"/WEB-INF/views/addInfield.jsp\");\n addAuthUserLayoutDef(\"viewInfield\", \"View infield\", \"/WEB-INF/views/viewInfield.jsp\");\n addAuthUserLayoutDef(\"editInfield\", \"Edit Infield\", \"/WEB-INF/views/editInfieldPage.jsp\");\n addAuthUserLayoutDef(\"addActivity\", \"Add Activity\", \"/WEB-INF/views/addActivityPage.jsp\");\n addAuthUserLayoutDef(\"editActivity\", \"Edit Activity\", \"/WEB-INF/views/editActivityPage.jsp\");\n addAuthUserLayoutDef(\"viewActivity\", \"View Activity\", \"/WEB-INF/views/viewActivity.jsp\");\n addAuthUserLayoutDef(\"editJob\", \"Edit Job\", \"/WEB-INF/views/editJobPage.jsp\");\n\n addAuthNoMenuLayoutDef(\"societies\", \"Societies\", \"/WEB-INF/views/societies.jsp\");\n addAuthNoMenuLayoutDef(\"announcements\", \"announcements\", \"/WEB-INF/views/announcements.jsp\");\n\n addAnonUserLayoutDef(\"firstPage\", \"First Page\", \"/WEB-INF/views/firstPage.jsp\");\n addAnonUserLayoutDef(\"login\", \"Login/Register\", \"/WEB-INF/views/login.jsp\");\n addAnonUserLayoutDef(\"publicPage\", \"public\", \"/WEB-INF/views/publicPage.jsp\");\n\n addErrorLayoutDef(\"500\", \"500\", \"/WEB-INF/views/500.jsp\");\n addErrorLayoutDef(\"404\", \"404\", \"/WEB-INF/views/404.jsp\");\n }", "title": "" }, { "docid": "29fe898ba2cc8bf7824c23d37a2e314f", "score": "0.45737216", "text": "private static void setDirectories(Project project)\n {\n _projectSettingsDirectory = new File(_settingsDirectory, project.getName());\n _backupDirectory = new File(_projectSettingsDirectory, NAME_BACKUP);\n _repositoryDirectory = new File(_projectSettingsDirectory, NAME_REPOSITORY);\n _settingsFile = new File(_projectSettingsDirectory, FILENAME_PREFERENCES);\n _historyFile = new File(_projectSettingsDirectory, FILENAME_HISTORY);\n }", "title": "" }, { "docid": "3e3227f7e4206ad92aaa3617bad96d17", "score": "0.45730355", "text": "@Override\n public Iterable<Path> getRootDirectories() {\n return Collections.singleton(new HttpPath(this, \"\", null, null));\n }", "title": "" }, { "docid": "63d76b6f739b0123e39c523451f5aa2d", "score": "0.4566867", "text": "public static void makeDirs(File file) {\n\tmakeDirs(file.getPath());\n }", "title": "" }, { "docid": "5f58b2a4e62440bbdebc8c43eba359f6", "score": "0.4561376", "text": "public void createCategoryDirectories(String newName);", "title": "" }, { "docid": "debe3e906a4e86ce7a71f939e81b9296", "score": "0.45584273", "text": "@Override\n public FileVisitResult preVisitDirectory(Path dir,\n BasicFileAttributes attrs) throws IOException {\n if (!dir.getFileName().toString().equals(\"node_modules\")) {\n Files.createDirectories(zipRoot.resolve(\n projectPath.relativize(dir).toString()));\n return FileVisitResult.CONTINUE;\n } else {\n return FileVisitResult.SKIP_SUBTREE;\n }\n }", "title": "" }, { "docid": "0d57ada7015b9e4cff32e3ee69891cf9", "score": "0.45549244", "text": "private File getScratchDir() {\n\t\tFile tempDir = new File(System.getProperty(\"java.io.tmpdir\"));\n\t\tFile scratchDir = new File(tempDir.toString(), \"embedded-jetty-jsp\");\n\n\t\tif (!scratchDir.exists()) {\n\t\t\tif (!scratchDir.mkdirs()) {\n\t\t\t\tSystem.out.println(\"Unable to create scratch directory: \" + scratchDir);\n\t\t\t\tscratchDir = new File(\".\");\n\t\t\t}\n\t\t}\n\t\treturn scratchDir;\n\t}", "title": "" }, { "docid": "f30858ce793224b4b9e3f532c933315a", "score": "0.45530623", "text": "public FilePlugin() {\n\n if (!baseDirectory.exists()){\n //create the required file structure\n baseDirectory.mkdir();\n\n if (!gamesDirectory.exists()){\n gamesDirectory.mkdir();\n }\n if (!usersDirectory.exists()){\n usersDirectory.mkdir();\n }\n\n System.out.println(\">FILEPLUGIN: directories created\");\n }\n\n }", "title": "" }, { "docid": "6454617d0a8f1de8afc8689dd1c31188", "score": "0.45480913", "text": "public void loadTemplates(String path) throws IOException {\n\t\tResource r = resourceLoader.getResource(path);\n\t\tif (r.exists()) {\n\t\t\tList<Template> templates = new ArrayList<Template>();\n\t\t\ttry {\n\t\t\t\ttemplates = parseTemplate(r.getFile());\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (path.endsWith(\".xml\")) {\n\t\t\t\t\t// ignore all not file path\n\t\t\t\t\tint idx = path.contains(\"/\") ? path.lastIndexOf(\"/\") : path.indexOf(\":\");\n\t\t\t\t\tString filename = path.substring(idx + 1);\n\t\t\t\t\tString syncToFileName = syncTemplateFolder + File.separator + filename;\n\t\t\t\t\tlogger.debug(\"It seems {} is not a disk file, sync to {}\", syncToFileName);\n\t\t\t\t\tInputStream is = r.getInputStream();\n\t\t\t\t\tIOUtils.copy(is, new FileOutputStream(new File(syncToFileName)));\n\t\t\t\t\tIOUtils.closeQuietly(is);\n\t\t\t\t\ttemplates = parseTemplate(new File(syncToFileName));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (Template xmlTemplate : templates) {\n\t\t\t\tsqlTemplateLoader.putTemplate(xmlTemplate.getName(), xmlTemplate.getTemplate(), xmlTemplate.getLastModified());\n\t\t\t\tsqlTemplateLoader.addMapper(sqlTemplateLoader.findTemplateSource(xmlTemplate.getName()), xmlTemplate.getTplFilePath());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "757eb0e66298c74667ec45409143add0", "score": "0.45452568", "text": "private static void makeDirpath(String targetAddr) {\n\t\tString realFileParentPath = PathUtil.getImgbasePath()+targetAddr;\n\t\tFile dirPath = new File(realFileParentPath);\n\t\tif (!dirPath.exists()) {\n\t\t\tdirPath.mkdirs();\n\t\t}\n\t}", "title": "" }, { "docid": "a5df559cf6496e5ac10e783314de1eb4", "score": "0.45450753", "text": "public static void initialize() {\n MAIN_DIR.mkdir();\n MODEL_DIR.mkdir();\n RESULT_DIR.mkdir();\n DATASET_DIR.mkdir();\n }", "title": "" }, { "docid": "2c71061d6654ec48680090ab32b36d8f", "score": "0.4543784", "text": "private void \n makeRootDirs() \n throws PipelineException\n {\n if(!pNodeDir.isDirectory()) \n throw new PipelineException\n\t(\"The root node directory (\" + pNodeDir + \") does not exist!\");\n \n ArrayList<File> dirs = new ArrayList<File>();\n dirs.add(new File(pNodeDir, \"annotations\"));\n dirs.add(new File(pNodeDir, \"repository\"));\n dirs.add(new File(pNodeDir, \"working\"));\n dirs.add(new File(pNodeDir, \"toolsets/packages\"));\n dirs.add(new File(pNodeDir, \"toolsets/toolsets\"));\n dirs.add(new File(pNodeDir, \"toolsets/plugins/packages\"));\n dirs.add(new File(pNodeDir, \"toolsets/plugins/toolsets\"));\n dirs.add(new File(pNodeDir, \"etc\"));\n dirs.add(new File(pNodeDir, \"etc/suffix-editors\"));\n dirs.add(new File(pNodeDir, \"events/nodes\"));\n dirs.add(new File(pNodeDir, \"events/authors\"));\n dirs.add(new File(pNodeDir, \"archives/manifests\"));\n dirs.add(new File(pNodeDir, \"archives/output/archive\"));\n dirs.add(new File(pNodeDir, \"archives/output/restore\"));\n\n pMakeDirLock = new Object();\n synchronized(pMakeDirLock) {\n for(File dir : dirs) {\n\tif(!dir.isDirectory())\n\t if(!dir.mkdirs()) \n\t throw new PipelineException\n\t (\"Unable to create the directory (\" + dir + \")!\");\n }\n }\n }", "title": "" }, { "docid": "a4bad2c6b670163bd4d9f03aaa27289d", "score": "0.4530114", "text": "@Override\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\n\t registry.addResourceHandler(\"/img/**\").addResourceLocations(\"/img/\");\n\t registry.addResourceHandler(\"/fonts/**\").addResourceLocations(\"/fonts/\");\n\t registry.addResourceHandler(\"favicon.ico\").addResourceLocations(\"favicon.ico\");\n\t registry.addResourceHandler(\"robots.txt\").addResourceLocations(\"robots.txt\");\n\t}", "title": "" }, { "docid": "3b6c8caee5477828fa96e3f6c665199a", "score": "0.45272", "text": "private void addTemplate(ThemeTemplate template) {\n this.templatesByName.put(template.getName(), template);\n this.templatesByLink.put(template.getLink(), template);\n if (!ComponentType.CUSTOM.equals(template.getAction())) {\n this.templatesByAction.put(template.getAction(), template);\n }\n }", "title": "" }, { "docid": "2adb12d115b35db9022270014bd4793e", "score": "0.45224032", "text": "public void initializeUserFolder(HttpServletRequest request,HttpServletResponse response){\n\t\tSystem.out.println(\"In the initializaUserFolder \"+ outputMapping);\n\t\tfileLocation = getServletContext().getRealPath(request.getServletPath()).replace(\"Mediator\", \"\") + \"WEB-INF\" + File.separator + \"systemFiles\" + File.separator + strUser;\n\t\ttableLocation = getServletContext().getRealPath(request.getServletPath()).replace(\"Mediator\", \"\") + \"WEB-INF\" + File.separator + \"systemFiles\" + File.separator;\n\t\tSystem.out.println(tableLocation);\n\t\tFile file = new File(fileLocation);\n\t\tSystem.out.println(fileLocation);\n\t\t if (!file.exists()) {\n\t if (file.mkdir()) {\n\t System.out.println(\"Directory is created!\");\n\t } else {\n\t System.out.println(\"Failed to create directory!\");\n\t }\n\t }else{\n\t \tSystem.out.println(\"The Directory is already exist\");\n\t }\n\t\t\n\t}", "title": "" }, { "docid": "b147772ba24c957b4d5449e1c8bfdd93", "score": "0.45119822", "text": "@Override\r\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\r\n\t\tregistry.addResourceHandler(\"/resources/**\").addResourceLocations(\"/resources/\");\r\n\t}", "title": "" }, { "docid": "5d9c23782a3e049306c30980a1a63622", "score": "0.45111978", "text": "public void setCreatedDirOptions(String createdDirOptions) {\n directoryPanel.setCreatedDirOptions(createdDirOptions);\n }", "title": "" }, { "docid": "14d81c8f05202510a9535502b543f7b3", "score": "0.45097145", "text": "protected void buildSourceTreeListing(boolean directoriesOnly) {\r\n\r\n // build a directory tree by first finding the roots of the filesystem.\r\n DefaultMutableTreeNode fs = new DefaultMutableTreeNode(\"Computer\");\r\n ViewFileTreeNode rootNode = null;\r\n\r\n if (fs != null) { // fs is null when the set of roots could not be\r\n // determined\r\n rootNode = new ViewFileTreeNode(new File(directory), true);\r\n rootNode.exploreDirectoriesOnly(directoriesOnly);\r\n fs.add(rootNode);\r\n rootNode.getPath();\r\n directoryTree = new JTree(fs);\r\n directoryTree.setRootVisible(false);\r\n } else { // we can build an empty tree, but it won't mean anything.\r\n // throw error?? FIXME\r\n directoryTree = new JTree();\r\n }\r\n\r\n JScrollPane treeScroll = new JScrollPane(directoryTree);\r\n\r\n treePanel.add(treeScroll, BorderLayout.CENTER);\r\n treePanel.setPreferredSize(new Dimension(200, 450));\r\n directoryTree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);\r\n directoryTree.addTreeSelectionListener(this);\r\n directoryTree.addTreeExpansionListener(this);\r\n\r\n directoryTree.expandRow(0);\r\n }", "title": "" }, { "docid": "b4d41290f79eb4f9a4374afd5abdd2eb", "score": "0.45095953", "text": "protected void addDirectoryPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_GenericFileBindingType_directory_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_GenericFileBindingType_directory_feature\", \"_UI_GenericFileBindingType_type\"),\n CamelPackage.Literals.GENERIC_FILE_BINDING_TYPE__DIRECTORY,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "68a1f7454b3083a52fa89711f83da786", "score": "0.45083684", "text": "protected String getFilePathRelativeToDataDirIfPossible() {\n \t\tString template = getFilePathTemplate();\n \t\tif (StringUtils.startsWith(template, \"$datadir$\")) {\n \t\t\ttemplate = StringUtils.replace(template, \"$datadir$\",\"\");\n \t\t\ttemplate = StringUtils.removeStart(template, \"/\");\n \t\t} else {\n \t\t\ttemplate = substituteDatadir(template);\n \t\t}\n \t\treturn substituteScan(template);\n \t}", "title": "" } ]
98e697d4299e05fd22a110fa7a5d24d7
List categories, ordered by order_idx
[ { "docid": "21683bd850af5714221f0affe5e1904e", "score": "0.63088006", "text": "List<Category> getCategories();", "title": "" } ]
[ { "docid": "bfa256d32404834f05068ab3a6dcf150", "score": "0.7101995", "text": "com.goldingmedia.goldingcloud.LauncherUiProtos.CCategoryNode getCategoryList(int index);", "title": "" }, { "docid": "493f12b9def3b2e0f0fa8cdb2324ff67", "score": "0.6884136", "text": "@Override\n public List<CategoryEntity> getAllCategoriesOrderedByName() {\n }", "title": "" }, { "docid": "4571b43436e9403e14faf2277ddfd562", "score": "0.6527067", "text": "private void findCategories() {\n for (int i=0; i < shortItems.size(); i++){\n if (shortItems.get(i).isCategory()){\n categoryPositions.add(new Integer(i));\n category.add(((CategoryItem)shortItems.get(i)).title);\n }\n }\n }", "title": "" }, { "docid": "dbde51345b7859c46adc2f746ae5eecb", "score": "0.6417091", "text": "public List getAllShoppingListCategories();", "title": "" }, { "docid": "113a35c0846efa37037708a5cefa2d36", "score": "0.63689464", "text": "public com.goldingmedia.goldingcloud.LauncherUiProtos.CCategoryNode getCategoryList(int index) {\n return categoryList_.get(index);\n }", "title": "" }, { "docid": "6739236c3fa6dbb9e09ca7bdc2728b10", "score": "0.6364318", "text": "public List getCategories();", "title": "" }, { "docid": "6d72cfb7cf2edd3ec939c9362eb635f8", "score": "0.63514656", "text": "java.util.List<com.gc.android.market.api.model.Market.Category> getCategoriesList();", "title": "" }, { "docid": "89d7603332c1a5b2b05f61137b2406dc", "score": "0.6350131", "text": "java.util.List<String> getCategoryList();", "title": "" }, { "docid": "f0138b751fdd38dad4d14e0ccc8170c9", "score": "0.62725383", "text": "com.goldingmedia.goldingcloud.LauncherUiProtos.CCategoryNodeOrBuilder getCategoryListOrBuilder(\n int index);", "title": "" }, { "docid": "56e31e563b55837adaca1202cfeede0e", "score": "0.62596273", "text": "public static List<Category> getAllCategories(){\n List<Category> list = new ArrayList<>();\n list.add(new Category(\"business\", R.color.category_1));\n list.add(new Category(\"entertainment\", R.color.category_2));\n list.add(new Category(\"general\", R.color.category_3));\n list.add(new Category(\"health\", R.color.category_4));\n list.add(new Category(\"science\", R.color.category_5));\n list.add(new Category(\"sports\", R.color.category_6));\n list.add(new Category(\"technology\", R.color.category_7));\n return list;\n }", "title": "" }, { "docid": "aa4261815989fb1db8e33739cfd4d8cf", "score": "0.62466514", "text": "@Override\r\n\tpublic List<Category> list() {\n\t\tList<Category> list = new ArrayList<Category>();\r\n\t\tConnection conn = null;\r\n\t\t//,所有sql语句运行前,必然有个解析过程,\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\t//获取链接\r\n\t\tconn = DBUtil.getConnection();\r\n\t\tString sql = \"select * from t_category order by ordervalue\";\r\n\t\ttry {\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\trs= ps.executeQuery();\r\n\t\t\tCategory category = null;\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\tcategory = new Category(rs.getString(\"cid\"),rs.getString(\"cname\"));\r\n\t\t\t\tlist.add(category);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\trs.close();\r\n\t\t\t\tps.close();\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\t\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "796d0f3dee1498222a83f0cec1eeffbf", "score": "0.6237145", "text": "public static List<Categorie> getCategories(){\n EntityManager em = emf.createEntityManager();\n TypedQuery<Categorie> query = em.createQuery(\"Select c from Categorie c\",Categorie.class);\n return query.getResultList();\n }", "title": "" }, { "docid": "df1ed854f3b2661943ce18f4a4ca5ae0", "score": "0.62283075", "text": "List<String> getAllCategories();", "title": "" }, { "docid": "b56950dd30845722cf977bcd549603d5", "score": "0.62250596", "text": "public List<String> showListOfCategories();", "title": "" }, { "docid": "8ffddb4f776e97f14bb6a242aa3f5c03", "score": "0.6139949", "text": "@Override\r\n\tpublic List<Category> list() {\n\t\treturn categories;\r\n\t}", "title": "" }, { "docid": "53c3d75de7376a34a0a9a3aba04d5a8e", "score": "0.6103652", "text": "public List<Inventory> listCategories();", "title": "" }, { "docid": "0e61406478853307d5fcdaee324c7077", "score": "0.60969025", "text": "public List<Category> getCategories();", "title": "" }, { "docid": "3e8a941f2ba42a2afdb1c222c3224837", "score": "0.60917854", "text": "public List<Object[]> getCategories(String type);", "title": "" }, { "docid": "f9b3b85cf64a51e9222d73a4e2bb4b96", "score": "0.6036734", "text": "@Override\n\tpublic List <Category> list() {\n\t\treturn categories;\n\t}", "title": "" }, { "docid": "4c47eb066039a9ec80e84ad0e1719246", "score": "0.60349345", "text": "public List<Category> getCategories() {\n return entityManager\n .createQuery(\"SELECT c from Category as c\")\n .getResultList();\n }", "title": "" }, { "docid": "fe05033817d29c4c14529a91e412b595", "score": "0.6028334", "text": "public List<Category> getCategories() {\n SQLiteDatabase db = null;\n List<Category> categories = new ArrayList<Category>();\n try {\n db = getReadableDatabase();\n String sql = \"SELECT \" + Constants.TABLE_CATEGORIES_ID + \", \" + Constants.TABLE_CATEGORIES_NAME + \" FROM \" + Constants.TABLE_CATEGORIES;\n Cursor c = db.rawQuery(sql, null);\n while (c.moveToNext()) {\n int id = Integer.parseInt(c.getString(c.getColumnIndex(Constants.TABLE_CATEGORIES_ID)));\n String name = c.getString(c.getColumnIndex(Constants.TABLE_CATEGORIES_NAME));\n categories.add(new Category(id, name));\n }\n } catch (Exception e) {\n Log.wtf(MYERROR, e.getMessage());\n }\n\n return categories;\n }", "title": "" }, { "docid": "888479e1c24f26303f798a55204fd370", "score": "0.6026671", "text": "List<PlaceCategory> getAllPlaceCategories();", "title": "" }, { "docid": "be3bebc66ada953138942228af9da194", "score": "0.60064214", "text": "public List<Category> list() {\n\treturn sessionFactory.getCurrentSession().createQuery(\"from Category\").list();\n\t}", "title": "" }, { "docid": "533e94a5689ff923e00b062550332f2a", "score": "0.59906566", "text": "public List<CategoryEntity> obtenerCategories(){\r\n List<CategoryEntity> categories = persistence.findAll();\r\n return categories;\r\n }", "title": "" }, { "docid": "4d640629cd717b73534bdb0a2296a964", "score": "0.5988248", "text": "Iterable<Category> getAllCategories();", "title": "" }, { "docid": "4c4f54f0d3013110ef5ff6e8f6ba9c03", "score": "0.59604114", "text": "java.util.List<com.goldingmedia.goldingcloud.LauncherUiProtos.CCategoryNode> \n getCategoryListList();", "title": "" }, { "docid": "4fdaeb531e24c51156f4bbe7ed15754f", "score": "0.5945425", "text": "public List<Product> sortByCategory() {\n List<Product> products = productDao.getAll();\n\n return products.stream().sorted(\n Comparator.comparing(Product::getName).thenComparing(Product::getCategory))\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "e5920d009110f2ee46e5d9a922eae912", "score": "0.59274405", "text": "public java.util.List<Category> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Category>\n\t\t\torderByComparator);", "title": "" }, { "docid": "86b4ab989888f685749ea65e0d7b0b32", "score": "0.5916901", "text": "@Override\r\n\tpublic List<Category> getAllCategories() {\n\t\treturn cateDao.findAll();\r\n\t}", "title": "" }, { "docid": "19591837ee3cde3b10d33b2992ce18e9", "score": "0.59098345", "text": "private List sortedCategories(DiscussionChannel channel, String sortedBy, String sortedAsc)\n \t{\n \t\t// categories\n \t\tList categories = channel.getCategories(true);\n \t\tif (categories == null) return null;\n \n \t\t// return the categories alpha sorted\n \t\tCollections.sort(categories);\n \n \t\treturn categories;\n \n \t}", "title": "" }, { "docid": "2c623c1163452023041d4957d89706a6", "score": "0.59015346", "text": "public List<Categories> getCategories() {\n List<Categories> result = cFL.findAll();\n\n return result;\n }", "title": "" }, { "docid": "5de19e9001f208eeb1717cfbd4926a45", "score": "0.58881766", "text": "public static List<Category> getCategoryList()\n {\n // Initialize the list\n List<Category> categoryList = new ArrayList<>();\n\n // Tourism Hotspot\n Category tourismHotspot = getTourismHotspotCategory();\n categoryList.add(tourismHotspot);\n\n // Accommodation\n Category accommodation = getAccommodationCategory();\n categoryList.add(accommodation);\n\n // Food and Beverage section\n Category foodBeverage = getFoodBeverageCategory();\n categoryList.add(foodBeverage);\n\n // Clothing and Apparel\n Category clothingApparel = getClothingApparelCategory();\n categoryList.add(clothingApparel);\n\n // Shops and Retailers\n Category shopsRetailers = getShopsRetailersCategory();\n categoryList.add(shopsRetailers);\n\n // Petrol Station\n Category petrolStation = getPetrolStationCategory();\n categoryList.add(petrolStation);\n\n // Auto Repair Workshop\n Category autoRepair = getAutoRepairWorkshopCategory();\n categoryList.add(autoRepair);\n\n // hHir and Beauty Saloon\n Category beautySaloon = getHairbeautySaloonCategory();\n categoryList.add(beautySaloon);\n\n return categoryList;\n }", "title": "" }, { "docid": "71e66a03a42e30e15e1a4bab861868b3", "score": "0.5884461", "text": "SteamMsgClientServerFriends.CFriendsListCategory getCategories(int index);", "title": "" }, { "docid": "a378c059c903d6b1d751d24e85172c2b", "score": "0.58740586", "text": "public ArrayList<String> getCategories() {\n ArrayList<String> categories = new ArrayList<>();\n\n SQLiteDatabase database = this.getReadableDatabase();\n\n String query = \"select * from \"+TABLE_NAME_CATEGORIES+\" order by \"+COL_CATEGORY_NAME+\" asc\";\n Cursor cursor = database.rawQuery(query, null);\n\n if (cursor.moveToFirst()) {\n categories.add(context.getString(R.string.select_category));\n do {\n categories.add(cursor.getString(0));\n } while (cursor.moveToNext());\n }\n\n cursor.close();\n database.close();\n return categories;\n }", "title": "" }, { "docid": "b83a8c5d697a3586b283e8c74438c183", "score": "0.58715606", "text": "public com.goldingmedia.goldingcloud.LauncherUiProtos.CCategoryNode getCategoryList(int index) {\n if (categoryListBuilder_ == null) {\n return categoryList_.get(index);\n } else {\n return categoryListBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "8ab432d78e2320331ae36281f75a7ada", "score": "0.5865403", "text": "public static List<String> getCategoriesNames(){\n EntityManager em = emf.createEntityManager();\n TypedQuery<String> query = em.createQuery(\"Select c.nomCat from Categorie c\",String.class);\n return query.getResultList();\n }", "title": "" }, { "docid": "4beaecc7de956ab63de152a335205397", "score": "0.584913", "text": "public List<String> getCategories() {\n return this.categories;\n }", "title": "" }, { "docid": "1ad09a2ffff53ec9d0218c7ea5f0678a", "score": "0.58472854", "text": "public List<Beangoods_categories> loadAllcategories() throws BaseException ;", "title": "" }, { "docid": "443ae7a3575b7ae2d2d07cc274588d42", "score": "0.5846196", "text": "@Override\n public List<Category> getCategories() {\n return jdbc.query(\"SELECT id, description FROM category\", new RowMapper<Category>() {\n public Category mapRow(ResultSet rs, int rowNum) throws SQLException {\n return new Category(\n rs.getInt(\"id\"),\n rs.getString(\"description\"),\n \"https://placekitten.com/200/300\");\n }\n });\n }", "title": "" }, { "docid": "1b1786cbc6c44d0abf119288f0adf09c", "score": "0.58404976", "text": "public abstract int getCategoryIndex();", "title": "" }, { "docid": "74bab71f5b9ff015ad3049a5c91a6fab", "score": "0.58397645", "text": "private List<DataProvider.CategoryName> createCategoryList() {\n List<DataProvider.CategoryName> listCategory = new ArrayList<>();\n String[] categoryList = {\"Culture\", \"Sports\"};\n String categoryId = \"defaultId\";\n for (String category : categoryList) {\n listCategory.add(new DataProvider.CategoryName(categoryId, category));\n }\n return listCategory;\n }", "title": "" }, { "docid": "1dbacd8242af942332cb6110a9c963f7", "score": "0.5831196", "text": "Collection<Category> collectCategories();", "title": "" }, { "docid": "903e9b51fbd9fb515d2e4446a44bb2b0", "score": "0.5817507", "text": "public ArrayList<String> category() throws SQLException\n\t{\n\t\tArrayList<String> clist = new ArrayList<String>();\n\t\tcon = DatabaseUtil.getConnection();\n\t\tps = con.prepareStatement(\"select distinct category from movie_team5\");\n\t\t\n\t\tResultSet rs = ps.executeQuery();\n\t\twhile(rs.next())\n\t\t{\n\t\t\tString catgory = rs.getString(1);\n\t\t\tclist.add(catgory);\n\t\t}\n\t\tCollections.sort(clist);\n\t\treturn clist;\n\t}", "title": "" }, { "docid": "88c69d8e43dc1e9df33dec85655c21e1", "score": "0.5816459", "text": "public List<Category> findAllCategory();", "title": "" }, { "docid": "478e278ef617063cc7273947c4d21a6f", "score": "0.5778323", "text": "public java.util.List<Category> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Category>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);", "title": "" }, { "docid": "04fd3183e4ca6c2981c1db56ed3f8544", "score": "0.5774442", "text": "List<String> getAllPlaceCategoryNames();", "title": "" }, { "docid": "0512d3393dae538e06de2ec231f88a6f", "score": "0.5770537", "text": "public ArrayList <String> getCategories()\n {\n ArrayList <String> categories = new ArrayList<>();\n\n String query = \"SELECT DISTINCT category FROM \" + TABLE_WORDS + \";\";\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(query, null);\n\n if (cursor != null && cursor.moveToFirst())\n {\n do\n {\n String c = cursor.getString(0);\n // Add category\n categories.add(c);\n }\n while (cursor.moveToNext());\n\n try\n {\n cursor.close();\n db.close();\n }\n catch (NullPointerException ex)\n {\n Logger.logOnly(ex.getMessage());\n }\n }\n return categories;\n }", "title": "" }, { "docid": "67148a3b1dd21391a82cdd3ce9a7ada4", "score": "0.57605505", "text": "public List listPreferenceCategories();", "title": "" }, { "docid": "ad308f82c29aadfbdd69cddfd0437e82", "score": "0.5757068", "text": "public ArrayList getCategories() {\r\n return this.categories;\r\n }", "title": "" }, { "docid": "40827298687687f4716727ba5476832b", "score": "0.5756413", "text": "@Override\n\tpublic String getListTitle() {\n\t\treturn \"Catégories\";\n\t}", "title": "" }, { "docid": "fb7a802d345b445233d71928b4bd8394", "score": "0.5755066", "text": "@Override\r\n\tpublic List<CategorieChambre> listecategorie() {\n\t\treturn dao.listecategorie();\r\n\t}", "title": "" }, { "docid": "252254d1497ffc1be40a3089704d0c0c", "score": "0.57542735", "text": "@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn categories;\n\t}", "title": "" }, { "docid": "115a1c49599f5b1d355d066816fbd2c6", "score": "0.57540333", "text": "public abstract List<Categoria> listar();", "title": "" }, { "docid": "115a1c49599f5b1d355d066816fbd2c6", "score": "0.57540333", "text": "public abstract List<Categoria> listar();", "title": "" }, { "docid": "181380fe35d18d21a6a3584cf5f6d6fb", "score": "0.57508963", "text": "@Override\r\n\tpublic List<CategoryVO> getCategoryList() throws Exception {\n\t\treturn pro_mapper.getCategoryList();\r\n\t}", "title": "" }, { "docid": "4cdf3a7880d2253409414bb61fd55c39", "score": "0.5731265", "text": "public List<Category> list() {\n\t\treturn categoryDao.list();\n\t}", "title": "" }, { "docid": "bd115510e1dba936916a3aca5d728d80", "score": "0.5722346", "text": "public String[] getCategories() {\n return categories;\n }", "title": "" }, { "docid": "5f9f2e681cbe240cb33a78e387d96fab", "score": "0.5715125", "text": "public List<ICategory> getAllCategory() {\n\t\treturn db.query(ICategory.class);\n\t}", "title": "" }, { "docid": "5dd2767131a77873da596943175b1d22", "score": "0.5713414", "text": "private void addCategoryList() {\n\t\tCategory category1 = new Category(1, \"breakfast\");\n\t\tCategory category2 = new Category(2, \"lunch\");\n\t\tCategory category3 = new Category(3, \"dinner\");\n\t\tCategory category4 = new Category(4, \"snack\");\n\t\tcategoryList.add(category1);\n\t\tcategoryList.add(category2);\n\t\tcategoryList.add(category3);\n\t\tcategoryList.add(category4);\n\t}", "title": "" }, { "docid": "28a1e3f8f10c92370d46db16fd4886c8", "score": "0.57105863", "text": "CategoriesDto listCategories();", "title": "" }, { "docid": "83d9337f211e83e37ab33952846426a1", "score": "0.5704968", "text": "public List<Category> getAllCats() {\r\n return dao.getAllCats();\r\n }", "title": "" }, { "docid": "a937fa361d050a8a4c3e671cc96d69ef", "score": "0.5695198", "text": "public List<Category> getCategories() {\n return this.categories;\n }", "title": "" }, { "docid": "bd8e790df69e21781380901187ce9370", "score": "0.5688745", "text": "public ArrayList<String> getCategories() {\n\t\tArrayList<String> categories = new ArrayList<String>();\n\t\tfor(String category : Main.settings.getConfig().getConfigurationSection(\"Categories\").getKeys(false)) {\n\t\t\tcategories.add(category);\n\t\t}\n\t\treturn categories;\n\t}", "title": "" }, { "docid": "05d60269608490922bd8dcffbeab9467", "score": "0.5687697", "text": "public List<Category> getAllCategories() {\n return new ArrayList<>(allCategories.values());\n }", "title": "" }, { "docid": "1781cda4499dcf1299038bc0fd79e78a", "score": "0.5682142", "text": "public List<Category> getCategory() {\n\t\t\t return sessionFactory.getCurrentSession().createQuery(\"from Category\").list(); //List of Category objects\n\t\t\t }", "title": "" }, { "docid": "9d7d9585cc52b6d1ad1ba9bfe41add1f", "score": "0.56702226", "text": "public List<String> getCategories() {\n return categories == null ? null : ImmutableList.copyOf(categories);\n }", "title": "" }, { "docid": "3561966981939dfa87c4e19504866fbe", "score": "0.5659503", "text": "public List<Categoria> trendProducts(){\n\t\tList<Categoria> categorias = categoriaRepository.findAll();\n\t\t\n\t\t/** \n\t\t * A estrutura for abaixo, irá percorrer todas as categorias que estão disponíveis\n\t\t * no objeto List categorias e para cada objeto fará a contagem de quantos produtos \n\t\t * existem na tabela tb_produtos através da consulta personalizada contarProdutos, \n\t\t * criada na Interface ProdutoRepository.\n\t\t * Após a contagem, o atributo numeroProdutos de cada categoria será atualizado com \n\t\t * o resultado da contagem.\n\t\t */\n\t\tfor (Categoria categoria : categorias) {\n\t\n\t\t\tcategoria.setNumeroProdutos(produtoRepository.contarProdutos(categoria.getId()));\n\t\t}\n\t\t\n\t\t/**\n\t\t * A estrutura abaixo é responsável por ordenar a List categorias em ordem decrescente, \n\t\t * mas para entender o código vamos analisar de dentro para a fora:\n\t\t * \n\t\t * Comparator.comparing(Categoria::getNumeroProdutos) -> Faz a ordenação da List categorias\n\t\t * pelo atributo numeroProdutos, da Classe Categoria, em ordem crescente através da comparação\n\t\t * dos elementos da List.\n\t\t * \n\t\t * Collections.reverseOrder(Comparator.comparing(Categoria::getNumeroProdutos)) -> inverte a \n\t\t * ordenação da List, no caso deixando a List categorias em ordem descrescente.\n\t\t * \n\t\t * Collections.sort -> Indica qual a Collectios que será ordenada, em nosso caso a List categorias\n\t\t * e utiliza um objeto da Classe Comparator para definir a forma como os dados da Collection \n\t\t * serão ordenados.\n\t\t * \n\t\t */\n\t\tCollections.sort(categorias, Collections.reverseOrder(Comparator.comparing(Categoria::getNumeroProdutos)));\n\t\t\n\t\treturn categorias;\n\t}", "title": "" }, { "docid": "c276ca015e18e96722e9c6404ff85a72", "score": "0.5657049", "text": "public Collection<String> getAllCategories() {\n return store\n .values()\n .stream()\n .map(Grocery::getCategory)\n .distinct()\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "d3493c18353613ea910bdfb44432b8d5", "score": "0.5655223", "text": "public List getCategories(){\n\t\t\r\n\t\ttry {\r\n begin();\r\n Query q = getSession().createQuery(\"FROM Category\");\r\n// q.setString(\"username\", username);\r\n// q.setString(\"password\", password);\r\n// User user = (User) q.uniqueResult();\r\n List categories = q.list();\r\n commit();\r\n Map<Integer, String> categoriesMap = new HashMap<Integer, String>();\r\n \r\n if(categories!=null){\r\n \tSystem.out.println(\"DAO: \"+categories.size());\r\n \t/*Iterator it = categories.iterator();\r\n \twhile(it.hasNext()){\r\n \t\tCategory c = (Category) it.next();\r\n \t\tcategoriesMap.put(c.getCategoryId(), c.getCategoryName());\r\n \t}*/\r\n// \treturn categoriesMap;\r\n \treturn categories;\r\n }\r\n \r\n } catch (HibernateException e) {\r\n rollback();\r\n e.printStackTrace();\r\n// throw new Exception(\"Could not get user \" + username, e);\r\n }\r\n return null;\r\n\t}", "title": "" }, { "docid": "94e9a8190b31a6c411ca38ac7777d902", "score": "0.5651016", "text": "@Override\n\tpublic List<Category> findAllCategory() throws SQLException {\n\t\tQueryRunner qr = new QueryRunner(C3P0util.getDataSource());\n\t\treturn qr.query(\"select * from category\", new BeanListHandler<>(Category.class));\n\t}", "title": "" }, { "docid": "2a10a504c69dcda14bc0e279c506ceda", "score": "0.5639737", "text": "private List<ELogCategory> readCategories() throws Exception\n {\n final List<ELogCategory> tags = new ArrayList<>();\n try\n (\n final Statement statement = rdb.getConnection().createStatement();\n )\n {\n final ResultSet result = statement.executeQuery(\n \"SELECT cat_id, cat_nm FROM logbook.log_categories_v\");\n while (result.next())\n tags.add(new ELogCategory(result.getString(1), result.getString(2)));\n }\n return tags;\n }", "title": "" }, { "docid": "e006e5fb530a6c1334ad47a826bbb49e", "score": "0.56396914", "text": "@Override\n\tpublic List<Category> findAllCategory() {\n\t\treturn categoryDao.findAllCategory() ;\n\t}", "title": "" }, { "docid": "393a0975c29bc680146bc1c64d501615", "score": "0.5623175", "text": "private void showAllCategories() {\n }", "title": "" }, { "docid": "d3b76e96f9a4d134b5149cb1fe8630e7", "score": "0.5622877", "text": "public ArrayList<String> getAllCategories() {\n allCategories = new ArrayList<>();\n for (int i = 1; i < 13; i++) {\n allCategories.addAll(Months[i].getCategoriesInMonth());\n }\n Set<String> s = new LinkedHashSet<>(allCategories);\n allCategories = new ArrayList<>(s);\n return allCategories;\n }", "title": "" }, { "docid": "a03d9a4f9cf2392c07184421bac6f086", "score": "0.56208193", "text": "public static List<Article> orderArticlesByViews(){\n session = HibernateUtil.getSessionFactory().openSession();\n List<Article> articles = null;\n try {\n Criteria cr = session.createCriteria(Article.class);\n cr.addOrder(Order.desc(\"counter\"));\n articles = cr.list();\n } catch (HibernateException e) {\n e.printStackTrace();\n } finally {\n session.close();\n }\n return articles;\n }", "title": "" }, { "docid": "17204f1f51c7ae1a8b76cca27ade489a", "score": "0.5615487", "text": "public List<OutputCategory> getAllCategories() {\r\n return allCategories;\r\n }", "title": "" }, { "docid": "7d58275cd3380d5fb5a54ac9a3011eb8", "score": "0.5594607", "text": "public List<Categories> getListCategories() {\n\t\treturn categoriesDAO.getListCategories();\n\t}", "title": "" }, { "docid": "0b40128515648533481a694e5dbed25a", "score": "0.5591911", "text": "@Override\n\tpublic List<Categorias> mostrarNombreCategorias3() throws SQLException {\n\n\t\tlistaCat = new ArrayList<>();\n\t\t\n\t\tlistaCat = pRepo.mostrarNombreCategorias3();\n\n\t\treturn listaCat;\n\n\t}", "title": "" }, { "docid": "6ea6d443b7b8bd0f2030dc6ee6a8270e", "score": "0.5589272", "text": "public ArrayList<ScoringCategory> getCategories()\n {\n return catList;\n }", "title": "" }, { "docid": "9f249f9790ce081398d9512bc23063a2", "score": "0.55865026", "text": "public ArrayList <String> getCategories()\n {\n if(!this.isOnline())\n {\n return this.od.getCategories();\n }\n\n ArrayList <String> categories = new ArrayList<>();\n\n String query = \"SELECT DISTINCT category FROM \" + TABLE_WORDS;\n\n query += \" UNION SELECT '\"+activity.getString(R.string.categoryName_ownWord)+\"' \" +\n \"FROM userwords WHERE userID = '\"+LoginMenu.getCurrentUser(activity).getId()+\"';\";\n\n this.useCommand(query, false);\n\n\n try\n {\n if (this.res != null)\n {\n while (this.res.next())\n {\n String c = this.res.getString(\"category\");\n // Add category\n categories.add(c);\n }\n }\n }\n catch (SQLException e)\n {\n //e.printStackTrace();\n //Logger.write(e, this.activity);\n Logger.logOnlyError(e.getMessage());\n }\n finally\n {\n this.closeConnection();\n }\n\n return categories;\n }", "title": "" }, { "docid": "8d252bca610d0bbf7ba6da4ac8cd1a9c", "score": "0.5582996", "text": "public ListsCategory getListCategory(String token) throws DaoException;", "title": "" }, { "docid": "7644bcddbe78c2d8e527ecf221fbb7f8", "score": "0.5579288", "text": "@Override\n\tpublic List<Category> getAllCategories() {\n\t\treturn categoryRepo.findAll();\n\t}", "title": "" }, { "docid": "020a38e9aba8774334548927de32e739", "score": "0.55772465", "text": "public String[] getCategoryList(){\r\n return new String[]{\r\n \"Macros\",\r\n \"Instrument Type\",\r\n \"TOF_NSCD\"\r\n };\r\n }", "title": "" }, { "docid": "5284d636f50bfd6f9343b86dbb35279d", "score": "0.5572865", "text": "String[] getCategoryNames();", "title": "" }, { "docid": "77ee29283f11aab367fe6a60bcd55b1a", "score": "0.55580616", "text": "public ArrayList<Integer> getCategoryId(){\n ArrayList<Integer> list = new ArrayList<>();\n SQLiteDatabase db = databaseHelper.getReadableDatabase();\n\n Cursor c = db.query(DatabaseContract.Category.TABLE_CATEGORY,null,null,null,null,null,DatabaseContract.Category.COLUMN_ORDER);\n if(c!=null ){\n while(c.moveToNext()){\n list.add(c.getInt(c.getColumnIndex(DatabaseContract.Category.COLUMN_ID)));\n }\n c.close();\n }\n\n return list;\n }", "title": "" }, { "docid": "d878f9fd22e612bcd827c4313d92d65c", "score": "0.55538064", "text": "public com.goldingmedia.goldingcloud.LauncherUiProtos.CCategoryNodeOrBuilder getCategoryListOrBuilder(\n int index) {\n return categoryList_.get(index);\n }", "title": "" }, { "docid": "e45ba357399665d6f3d62392ad5c05fc", "score": "0.5552652", "text": "@ApiOperation(\"Obtém a lista de categorias\")\n @GetMapping\n public List<CategoriaListagem> lista () {\n return categoriaService.listar();\n }", "title": "" }, { "docid": "1c2338b25e8ba6defb3ae275b805aa42", "score": "0.55446637", "text": "public Vector<String> getUsedCategories(){\n Vector<String> categories = new Vector<>();\n\n Cursor categoriesCursor = dbHandler.getUsedCategories();\n if(categoriesCursor == null){\n Log.wtf(CLASS_TAG, \"db query returned null\");\n throw new RuntimeException(CLASS_TAG + \": db query returned null\");\n }\n\n categoriesCursor.moveToFirst();\n for(int i = 0; i < categoriesCursor.getCount(); ++i){\n categories.add(categoriesCursor.getString(0));\n categoriesCursor.moveToNext();\n }\n\n return categories;\n }", "title": "" }, { "docid": "97a7b50afe23a1bafb7f74cb05c70584", "score": "0.5541245", "text": "public java.util.List<Category> findAll();", "title": "" }, { "docid": "5c43e4c96eec7e2b70fb455038eba43c", "score": "0.55395746", "text": "public List<AbstractCategory> getCategories(){\n db = getReadableDatabase();\n List listCategories = new ArrayList();\n if (AppConst.DEBUG) Log.d(\"DEBUG ::: \", \"getCategories() called : \");\n\n\n Cursor cursor = db.rawQuery(\n \"SELECT \"+TB_CATEGORY_ID+\",\"\n +TB_CATEGORY_CAT_NAME+\",\"\n +TB_CATEGORY_DESCRIPTION+\",\"\n +TB_CATEGORY_PIC+\",\"\n +TB_CATEGORY_ORDER_ID+\n \" FROM \"+TB_CATEGORY+\" ORDER BY \"+TB_CATEGORY_ORDER_ID , null);\n\n if (cursor != null) {\n if(cursor.moveToFirst()){\n while(!cursor.isAfterLast()){\n AbstractCategory abstractCategory = new Category();\n abstractCategory.setId( cursor.getInt(cursor.getColumnIndexOrThrow(TB_CATEGORY_ID)) );\n abstractCategory.setCatName( cursor.getString(cursor.getColumnIndex(TB_CATEGORY_CAT_NAME)) );\n abstractCategory.setDescription( cursor.getString(cursor.getColumnIndex(TB_CATEGORY_DESCRIPTION)) );\n abstractCategory.setOrderId( cursor.getInt(cursor.getColumnIndex(TB_CATEGORY_ORDER_ID)) );\n abstractCategory.setPic( cursor.getString(cursor.getColumnIndex(TB_CATEGORY_PIC)) );\n\n\n listCategories.add(abstractCategory);\n if (AppConst.DEBUG) Log.d(\"DEBUG ::: \", \"Get abstractCategory : abstractCategory : \"+ abstractCategory);\n cursor.moveToNext();\n }\n }\n cursor.close();\n }\n\n return listCategories;\n\n }", "title": "" }, { "docid": "6194174524c236d11ed8e45a308b5b34", "score": "0.5535268", "text": "public SteamMsgClientServerFriends.CFriendsListCategory getCategories(int index) {\n return categories_.get(index);\n }", "title": "" }, { "docid": "9d6a02fa2022525615ffd3a6a1559e2c", "score": "0.5530216", "text": "public List<String> getCategories() {\n\ttry {\n\t\tList<String> categories = new ArrayList<>();\n\t\tconnection = DriverManager.getConnection(jdbcURL);\n\t\tstatement = connection.createStatement();\n\t\tresultSet = statement.executeQuery(\"select * from category\");\n\t\twhile(resultSet.next()) {\n\t\t\tcategories.add(resultSet.getString(\"Name\"));\n\t\t}\n\t\treturn categories;\n\t} catch(Exception e) {\n\t\tSystem.err.println(e);\n\t} finally {\n\t\tclose();\n\t}\n return null;\n }", "title": "" }, { "docid": "e693b25efd001f40666c97b512fe1bb2", "score": "0.5525562", "text": "public gw.entity.TypeKey[] getCategories() {\n return _typeKeyImplManager.getTypeKeyImpl().getCategories();\n }", "title": "" }, { "docid": "e693b25efd001f40666c97b512fe1bb2", "score": "0.5525562", "text": "public gw.entity.TypeKey[] getCategories() {\n return _typeKeyImplManager.getTypeKeyImpl().getCategories();\n }", "title": "" }, { "docid": "cbf69bf1e6e53467d5fd9a5b50125c78", "score": "0.55128634", "text": "public List<Categorie> getListeCat() {\r\n\t\treturn listeCat;\r\n\t}", "title": "" }, { "docid": "999d0f4c6925f8715defb22c6728f4ba", "score": "0.5510096", "text": "public ArrayList<CategoriesFragment.Categories> getCategories() {\n ArrayList<CategoriesFragment.Categories> categoryPreferences = new ArrayList<>();\n\n if(getInt(getColumnIndex(PollsterDBSchema.CategoryPreferences.Columns.ACADEMICS)) == 1)\n categoryPreferences.add(CategoriesFragment.Categories.ACADEMICS);\n if(getInt(getColumnIndex(PollsterDBSchema.CategoryPreferences.Columns.BOOKS)) == 1)\n categoryPreferences.add(CategoriesFragment.Categories.BOOKS);\n if(getInt(getColumnIndex(PollsterDBSchema.CategoryPreferences.Columns.ELECTRONICS)) == 1)\n categoryPreferences.add(CategoriesFragment.Categories.ELECTRONICS);\n if(getInt(getColumnIndex(PollsterDBSchema.CategoryPreferences.Columns.FOOD)) == 1)\n categoryPreferences.add(CategoriesFragment.Categories.FOOD);\n if(getInt(getColumnIndex(PollsterDBSchema.CategoryPreferences.Columns.MISC)) == 1)\n categoryPreferences.add(CategoriesFragment.Categories.MISC);\n if(getInt(getColumnIndex(PollsterDBSchema.CategoryPreferences.Columns.MOVIES)) == 1)\n categoryPreferences.add(CategoriesFragment.Categories.MOVIES);\n if(getInt(getColumnIndex(PollsterDBSchema.CategoryPreferences.Columns.NATURE)) == 1)\n categoryPreferences.add(CategoriesFragment.Categories.NATURE);\n if(getInt(getColumnIndex(PollsterDBSchema.CategoryPreferences.Columns.SHOPPING)) == 1)\n categoryPreferences.add(CategoriesFragment.Categories.SHOPPING);\n if(getInt(getColumnIndex(PollsterDBSchema.CategoryPreferences.Columns.SPORTS)) == 1)\n categoryPreferences.add(CategoriesFragment.Categories.SPORTS);\n\n return categoryPreferences;\n }", "title": "" }, { "docid": "cea26de88d808e92148051a5fd417978", "score": "0.55090004", "text": "@Override\n\tpublic List<CateGory> selectAllCategory() {\n\t\treturn cateGoryDao.selectAllCategory();\n\t}", "title": "" }, { "docid": "e62299eeddea41b02cd94e6a85b53feb", "score": "0.550771", "text": "@Override\r\n\tpublic List<Category> loadCategories(boolean state) {\n\t\treturn catDAO.loadCategoriesByStatus(state);\r\n\t}", "title": "" }, { "docid": "a9e34bd07ae29206fd0359a79b042f01", "score": "0.5507233", "text": "org.dhis2.ns.schema.dxf2.CategoryCombosDocument.CategoryCombos getCategoryCombos();", "title": "" } ]
a7288d951c963f8e3558bc2b8b5809b7
Sorting and binary search.
[ { "docid": "778b3b6ecf8409404f1d6e746d0b5def", "score": "0.0", "text": "public int countElements(int[] arr) {\n Arrays.sort(arr);\n int counting = 0;\n for (int num : arr) {\n if (Arrays.binarySearch(arr, num + 1) >= 0) {\n counting++;\n }\n }\n return counting;\n }", "title": "" } ]
[ { "docid": "e9a2cdfd73110ca6af930da8b87cbc79", "score": "0.7244667", "text": "private static void bin_Search_rec(int[] a, int key, int low, int high) {\n\t\tint mid=(low+high)/2;\n\t\t\n\t\tif(a[mid]==key)\n\t\t{\n\t\t\tSystem.out.println( mid);\n\t\t}\n\t\telse if(a[mid]<key)\n\t\t{\n\t\t\tif(low==high)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"doesnot exist\");\n\t\t\t}else\n\t\t\tbin_Search_rec(a,key,mid+1,high);\n\t\t}\n\t\telse if(a[mid]>key) {\n\t\t\tif(low==high)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"doesnot exist\");\n\t\t\t}else\n\t\t\tbin_Search_rec(a,key,low,mid-1);\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c0bb730b71a3f69229ee42722eacdd7a", "score": "0.7096192", "text": "@Test\n\tpublic void testBinarySearch() {\n\t\tint[] numbers = {1, 2, 3, 3, 4, 9, 9};\n\t\tassertEquals(2, 3, _01_BinarySearch.binarySearch(numbers, 0, numbers.length-1, 3));\n\t\t\n\t\tint[] num = {3, 56, 800, 1234};\n\t\tassertEquals(-1, _01_BinarySearch.binarySearch(num, 0, num.length-1, 6799));\n\t\t\n\t\tint[] b = {0, 0, 5, 10, 15, 20, 25};\n\t\tassertEquals(0, 1, _01_BinarySearch.binarySearch(b, 0, b.length-1, 0));\n\t\t\n\t}", "title": "" }, { "docid": "b7f0fde3948000243b3be374f8124014", "score": "0.70940524", "text": "private int bsearch(Item idToSearch, int first, int last){\n int mid = (first + last) / 2;\n if(first > last)\n return -1;\n else if (myStore.get(mid).compareTo(idToSearch) == 0)\n {\n return mid;\n }\n else if (myStore.get(mid).compareTo(idToSearch) > 0)\n {\n return bsearch(idToSearch, first, mid - 1);\n }\n else\n {\n return bsearch(idToSearch, mid+1, last);\n }\n }", "title": "" }, { "docid": "0b6813c4299ce89420675513064fb338", "score": "0.70581114", "text": "public static void binarySearchInteger(int arr[],int first,int last,int key)\n\t{ \n\t\tint mid=(first+last)/2; \n\t\twhile(first<=last)\n\t\t{ \n\t\t\tif(arr[mid]<key)\n\t\t\t{ \n\t\t\t\tfirst=mid+1; \n\t\t }\n\t\t\telse if(arr[mid]==key)\n\t\t\t{ \n\t\t System.out.println(\"ELEMENT IS FOUND AT INDEX...\"+mid); \n\t\t break; \n\t\t }\n\t\t\telse\n\t\t\t{ \n\t\t last=mid-1; \n\t\t } \n\t\t mid=(first+last)/2; \n\t\t} \n\t\tif(first>last)\n\t\t{ \n\t\t\tSystem.out.println(\"ELEMENT IS NOT FOUND!!!\"); \n\t\t} \n\t}", "title": "" }, { "docid": "136907edf1e478234ba91f19ac8458d8", "score": "0.7047677", "text": "public int bSearch(int[] nums,int numToSearch) {\n\t\tint [] sortedNums = sortAlgorithm.sort(nums);\n//\t\tSystem.out.println(\"Bubble sort\");\n\t\tSystem.out.println(sortAlgorithm);\n\t\tSystem.out.println(sortedNums);\n\t\tint left = 0;\n\t\tint right = nums.length-1;\t\n\t\twhile(left<=right) {\n\t\t\tint mid = (left+right)/2;\n\t\t\tif(nums[mid]==numToSearch) {\n\t\t\t\treturn mid;\n\t\t\t}\n\t\t\telse if(nums[mid]>numToSearch) {\n\t\t\t\tright = mid-1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tleft = mid+1;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "91bbc08fdebffbefef31f059b9f9e9af", "score": "0.7047523", "text": "private BinarySearch() { }", "title": "" }, { "docid": "6a1efb5a3183de77675d6afc533e380d", "score": "0.70409006", "text": "static int binarySearchIterative(int arr[],int start,int end,int key){\n\t\tint mid;\n\t\tdo{\n\t\t\tmid=start+(end-start)/2;\n\t\t\tif(arr[mid]==key) return mid;\n\t\t\telse if(arr[mid]>key) end=mid-1;\n\t\t\telse start=mid+1;\n\t\t}while(start<=end);\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "4624463099f23a1a6e7baf1233d7f948", "score": "0.70399016", "text": "protected boolean b_search()\n {\n if (array.length == 0) return false;\n \n int low=0;\n int high = array.length;\n while (low <= high)\n {\n \t int mid_value = low + (high - low)/2;\n \t //suppose once we search in first loop\n \t // mid_value is num\n \t // it is divide and conqur algo thats why\n \t // we get O(logn) time complexity\n if (array[mid_value] == num)\n { \n \t System.out.println(\"value found is found:\"+array[mid_value]);\n return true;\n }\n else\n { \n \t //if given num is greater mid value\n if (array[mid_value] > num)\n {\n \t high = mid_value - 1;\n }\n else\n {\n low = mid_value + 1;\n }\n }\n \n \t}\n return false;\n \t}", "title": "" }, { "docid": "9bd59e5509e73baffda85484ca61196f", "score": "0.7020763", "text": "private int bsearch(Item idToSearch){\n int first = 0;\n int last = myStore.size()-1;\n while(first <= last)\n {\n int mid = (first + last) / 2;\n if (myStore.get(mid).equals(idToSearch))\n {\n return mid;\n }\n else if (myStore.get(mid).compareTo(idToSearch) > 0)\n {\n last = mid-1;\n }\n else\n {\n first = mid+1;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "54d684529f19896b596b9e97f9cf4ead", "score": "0.6938673", "text": "private int bsearch(Item idToSearch, int first, int last){\n int mid = (first + last) / 2;\n\n if (idToSearch.getId() == items.get(mid).getId()) return mid;\n else if (idToSearch.getId() < items.get(mid).getId()) return bsearch(idToSearch, first, mid);\n else if(idToSearch.getId() > items.get(mid).getId()) return bsearch(idToSearch, mid + 1, last);\n\n return -1;\n }", "title": "" }, { "docid": "b33cf889401d62e85f989c2a3de9f785", "score": "0.690631", "text": "public static void main(String[] args) {\n\t\tint[] i= {30,29,409,293,30494,49};\n\t\tArrays.sort(i);\n\t\tfor(int d:i)System.out.println(d);\n\t\tSystem.out.println(\"------------\");\n\t\tSystem.out.println(\"Seraching elements 30 in given array \"+ Arrays.binarySearch(i, 30));\n\t\tSystem.out.println(\"Seraching elements 24 in given array \"+ Arrays.binarySearch(i, 24));\n\t\tSystem.out.println(\"------\");\n\t\tString[] s= {\"X\",\"Z\",\"A\",\"D\"};\n\t\tArrays.sort(s);\n\t\tSystem.out.println(Arrays.binarySearch(s, \"A\"));\n\t\tSystem.out.println(Arrays.binarySearch(s, \"G\"));\n\t\tSystem.out.println(\"----------\");\n\t\tString[] s2= {\"B\",\"D\",\"F\",\"E\"};\n\t\tArrays.sort(s2,new ComparatorClassForArraysSort());\n\t\tSystem.out.println(Arrays.binarySearch(s2, \"B\",new ComparatorClassForArraysSort()));\n\t\t\n\n\t}", "title": "" }, { "docid": "89afcf3341fdb15eee6de3655d1bce80", "score": "0.6896895", "text": "public int search(final List<Integer> a, int b) {\n\t int len = a.size();\n\t int key = b;\n\t int low = 0;\n\t int high = len-1;\n\t int mid;\n\t int midx;\n\t int flag=0;\n\t while(low<=high){\n\t // System.out.println(low+\" \"+high);\n //System.out.println(flag);\n\t mid = low+((high-low)/2);\n\t midx=a.get(mid);\n\t if(midx==key)\n\t return mid;\n\t // System.out.println(mid+\" \"+midx);\n\t if(flag==0){\n\t if(midx<a.get(low) && key>midx && key<=a.get(high)){\n\t flag=1;\n\t low=mid+1;\n\t }\n\t else if(midx>=a.get(low) && key<midx && key>=a.get(low)){\n\t flag=1;\n\t high=mid-1;\n\t }\n\t else if(midx<a.get(low))\n\t high = mid-1;\n\t else\n\t low=mid+1;\n\t }\n\t else if(flag==1){\n\t if(key>midx)\n\t low=mid+1;\n\t else\n\t high=mid-1;\n\t }\n\t //System.out.println(low+\" \"+high);\n\t }\n\t return -1;\n\t}", "title": "" }, { "docid": "eb7ee7065a800425f752f572805db325", "score": "0.6854622", "text": "int binarySearchIterative(int arr[],int element){\r\n int firstindex=0,lastindex=arr.length-1;\r\n while(firstindex<=lastindex){\r\n int mid=(firstindex+(lastindex-1))/2;\r\n if(arr[mid]==element)\r\n return mid;\r\n if(arr[mid]<element)\r\n return firstindex=mid+1;\r\n else\r\n return lastindex=mid-1;\r\n \r\n }\r\n return -1;\r\n }", "title": "" }, { "docid": "f18cb103071ef967a03671414402195b", "score": "0.68333095", "text": "public void binarysearch(int value) {\n\t\tint lowIndex=0;\n\t\tint highIndex=arr.length-1;\n\t\tboolean b=false;\n\t\twhile(lowIndex<=highIndex) {\n\t\t\tint middleIndex=(lowIndex+highIndex)/2;\n\t\t\tif(arr[middleIndex] < value) lowIndex = middleIndex + 1;\n\t\t\t\n\t\t\telse if(arr[middleIndex] > value) highIndex = middleIndex - 1;\n\t\t\t\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\nFound a Match for \" + value + \" at Index \" + middleIndex);\n\t\t\t\tb=true;\n\t\t\t\tlowIndex = highIndex + 1;\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\n\t}\n\t\tif(b==false) {\n\t\t\tSystem.out.println(\"element not fount\");\n\t\t}\n\t}", "title": "" }, { "docid": "79740ef2cfffdf94ef3d45e59445b55d", "score": "0.6817813", "text": "static int binarySearchRecursive(int arr[],int start,int end,int key){\n\t\tint mid;\n\t\tif(start<=end){\n\t\t\tmid=start+(end-start)/2;\n\t\t\tif(arr[mid]==key) return mid;// if key is found\n\t\t\telse if(arr[mid]>key) return binarySearchRecursive(arr,start,mid-1,key);\n\t\t\telse return binarySearchRecursive(arr,mid+1,end,key);\n\t\t}\n\t\treturn -1;//If key is not found\n\t}", "title": "" }, { "docid": "30cc20ce89753b8e1c7bc2a57dbb978e", "score": "0.67942655", "text": "int binary_search(int x[],int l, int r, int y){\r\n \r\n if(r>=1){\r\n \r\n int mid=(l+(r-1))/2;\r\n \r\n if(x[mid]==y){\r\n return mid;\r\n }\r\n \r\n if(x[mid]>y)\r\n return binary_search(x,l,mid-1,y);\r\n \r\n \r\n return binary_search(x,mid+1,r,y);\r\n \r\n \r\n \r\n }\r\n \r\n \r\n \r\n return -1;\r\n }", "title": "" }, { "docid": "fd69f85fe493a61fb43948e18081a07b", "score": "0.67931813", "text": "private int search_rec(int[] arr, int low, int high, int x)\n {\n int mid = low + (high - low)/2;\n if (low <= high)\n {\n if (arr[mid] == x)\n return mid;\n // First Bucket (low to mid-1)\n else if (arr[mid] > x)\n return search_rec(arr, low, mid-1, x);\n // Second Bucket (mid+1 to high)\n else\n return search_rec(arr, mid+1, high, x);\n }\n return -1;\n }", "title": "" }, { "docid": "d984769c3ed7adf2c3219d2e51b4df78", "score": "0.67620945", "text": "public static void main(String[] args) {\n\t\tint ar[] = { 25, 37, 4, 5, 1, 222, 1123, 44 };\r\n\t\tArrays.sort(ar);\r\n\t\tfor (int b : ar)\r\n\t\tSystem.out.println(b);\r\n\t\tint intKey = 44;\r\n\t\tint ar1 = Arrays.binarySearch(ar, intKey);\r\n\t\tSystem.out.println(\"binary search of key index:\" + ar1);\r\n\t\tint Ranges=Arrays.binarySearch(ar, 2,6, intKey);\r\n\t\tSystem.out.println(\"ranges of 0,6\"+Ranges);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//This method searches a range of the specified array for the specified object using the binary search algorithm.\r\n\t}", "title": "" }, { "docid": "dd92e26bc480475a90efc139745544c5", "score": "0.6747632", "text": "static int binarySearch(int[] arr, int target, int low, int high) {\n while (low <= high) {\n int mid = low + (high - low) / 2;\n if (target > arr[mid]) {\n low = mid + 1;\n } else if (target < arr[mid]) {\n high = mid - 1;\n } else {\n return mid;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "05507bf64348da1404f368beab866772", "score": "0.67430556", "text": "private int binarySearch(int[] nums, int start, int end, int target){\n while(start+1 < end){\n int mid = start + (end-start)/2;\n if(nums[mid]==target) return mid;\n if(nums[mid] < target){\n start = mid;\n }else{\n end = mid;\n }\n }\n if(nums[start] == target) return start;\n if(nums[end] == target) return end;\n return -1;\n }", "title": "" }, { "docid": "eefaa96ae9953d699b03272c36ec3a7f", "score": "0.6739535", "text": "@Test\n\tpublic void testBinarySearch() {\n\t\tint[] testone = {1, 2, 3, 4, 5};\n\t\tint[] testtwo = {6, 7, 8, 9, 10};\n\t\tint[] testthree = {11, 12, 13, 14, 15};\n\t\tassertEquals(2, _01_BinarySearch.binarySearch(testone,0, testone.length-1, 3));\n\t\tassertEquals(3, _01_BinarySearch.binarySearch(testtwo,0, testtwo.length-1, 9));\n\t\tassertEquals(1, _01_BinarySearch.binarySearch(testthree,0,testthree.length-1,12));\n\t}", "title": "" }, { "docid": "a49c253fea887852974f4118cda07b8a", "score": "0.6737716", "text": "public void binarySearch(int find) {\r\n\t\ttrycount++;\r\n\t\tint mid = calculateMid(low, high);\r\n\t\tif (find == dataset[mid]) {\r\n\t\t\tSystem.out.println(\"Element found at index \" + mid\r\n\t\t\t\t\t+ \" Found after \" + trycount + \" tries\");\r\n\t\t\tflag = true;\r\n\t\t\treturn;\r\n\t\t} else if (find > dataset[mid]) {\r\n\t\t\tlow = mid + 1;\r\n\t\t\tbinarySearch(find);\r\n\t\t} else {\r\n\t\t\thigh = mid - 1;\r\n\t\t\tbinarySearch(find);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "434ca2552f79fa7ae3c5500f69fb2144", "score": "0.6709084", "text": "public static int binarySearch(int[] arr,int data){\n int left=0;\n int right=arr.length-1;\n while(left<=right){\n int mid=(left+right)/2;\n if(arr[mid] == data){\n return mid;\n }else if(arr[mid]<data){\n left=mid+1;\n }else{\n right = mid -1;\n } }\n return -1;\n }", "title": "" }, { "docid": "89f3265253bdeab2ec4fab0099b210dc", "score": "0.6707399", "text": "public int binarySearch(int [] nums, int x) {\n\t\tint n = nums.length;\n\t\tint low = 0;\n\t\tint high = n-1;\n\t\twhile(low <= high) {\n\t\t\tint mid = (low + high) >>1;\n\t\t\tif(x == nums[mid]) return mid; \n\t\t\telse if(x < nums[mid]) high = mid-1;\n\t\t\telse low = mid+1;\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "22d0f555331072b471189203faa4e2e7", "score": "0.6703662", "text": "private static int binSearch(int[] a, int verdi)\n {\n int v = 0, h = a.length - 1;\n while (v < h)\n {\n int m = (v + h)/2;\n\n if (verdi > a[m]) v = m + 1;\n else h = m;\n }\n if (h < v || verdi < a[v]) return -(v + 1);\n else if (verdi == a[v]) return v;\n else return -(v + 2);\n }", "title": "" }, { "docid": "77390987f40c800a92fcdfa5a7276150", "score": "0.66866153", "text": "static int binarySearch(int[] arr, int l, int r, int x) {\n\t\t\n\t\tif(r >= l) {\n\t\t\tint mid = l + (r-l)/2;\n\t\t\t\n\t\t\tif(x == arr[mid])\n\t\t\t\treturn mid;\n\t\t\telse if(x > arr[mid])\n\t\t\t\treturn binarySearch(arr, mid+1, r, x);\n\t\t\telse if(x < arr[mid])\n\t\t\t\treturn binarySearch(arr, l, mid-1, x);\n\t\t}\n\t\treturn -1; //not found\n\t}", "title": "" }, { "docid": "6390ce8828ea84a886b10f9e58775747", "score": "0.6679348", "text": "private static int binarySearch(int[] nums, int target) {\n int lo = 0, hi = nums.length;\n while (lo <= hi) {\n int mid = (lo + hi) / 2;\n if (nums[mid] == target) {\n return mid;\n } else if (nums[mid] > target) {\n hi = mid - 1;\n } else if (nums[mid] < target) {\n lo = mid + 1;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "5ca8400bdb49155e958f703e33b92b40", "score": "0.66334283", "text": "int binarySearch(ArrayList<Listing> arr, int l, int r, int x) {\n\t\t\tif (r >= l) {\n\t\t\t\tint mid = l + (r - l) / 2;\n\n\t\t\t\t// If the element is present at the\n\t\t\t\t// middle itself\n\t\t\t\tif (arr.get(mid).getId() == x)\n\t\t\t\t\treturn mid;\n\n\t\t\t\t// If element is smaller than mid, then\n\t\t\t\t// it can only be present in left subarray\n\t\t\t\tif (arr.get(mid).getId() > x)\n\t\t\t\t\treturn binarySearch(arr, l, mid - 1, x);\n\n\t\t\t\t// Else the element can only be present\n\t\t\t\t// in right subarray\n\t\t\t\treturn binarySearch(arr, mid + 1, r, x);\n\t\t\t}\n\n\t\t\t// We reach here when element is not present\n\t\t\t// in array\n\t\t\treturn -1;\n\t\t}", "title": "" }, { "docid": "f3734c26e9bb3712025f747d69739fc7", "score": "0.66278523", "text": "public static int binarySearch(String[] arr, String lookfor) {\n //call binarySearchHelper\n return binarySearchHelper(//what goes in here?);\n }\n \n private static int binarySearchHelper(String[] arr, int lo, int hi, String lookfor) {\n //this should be done recursively. Assume that the passed in array is sorted. Look at the \n //midpoint of the array and see if the string \"lookfor\" comes before or after the midpoint.\n //Then recursively call binarySearchHelper with the part of the array that you think holds \"lookfor\"\n //What are your base cases? sdrtluhsdthyHandle the case where the string is not found. Adding!\n //Part of the trick here is you will be maintaining the original array. You are just moving the pointers \"lo\" and \"hi\"\n //so that the function looks at a specific part of the array. This way you will be able to return the index of \"lookfor\".\n return null;\n }\n\n public static String[] mergeSort(String[] arr) {\n \tif(arr.length > 1){\n \t\treturn arr;\n \t}else{\n \t\tint midpoint = arr.length/2;\n \t\tString[] sArray0 = Arrays.copyOfRange(arr, 0, midpoint);\n \t\tString[] sArray1 = Arrays.copyOfRange(arr, midpoint, arr.length);\n \t\tmergeSort(sArray0);\n \t\tmergeSort(sArray1);\n \t}\n \tmerge(sArray0, sArray1);\n \t\n //check and make sure array has more than one item. \n //split the array into two eqal parts\n //recursevely call mergeSort with both of your new arrays\n //use merge to put the two arrays back together.\n \n //This is not easy, don't be sureprised if you are frustrated\n //Feel free to look up some solutions on line.\n //you can do it.\n \n }\n\n private static String[] merge(String[] a, String[] b) {\n //takes two sorted string arrays and makes them one sorted string array. \n //ie: a = t and b = z results in an array of t,z\n //ie: a = a,z,f and b = b,c,h results in an array of a,b,c,f,h,z\n \n }\n public static void quickSort(String[] arr) {\n // be brave, use google\n }", "title": "" }, { "docid": "46f857b3a815ac5efe64e6bb5ddc2454", "score": "0.6598933", "text": "private int search_iter(int[] arr, int x)\n {\n int low = 0;\n int high = arr.length-1;\n while (low <= high)\n {\n int mid = low + (high-low)/2;\n if (arr[mid] == x)\n return mid;\n // Second Bucket (mid+1 to high)\n else if (arr[mid] < x)\n low = mid+1;\n // First Bucket (low to mid-1)\n else\n high = mid-1;\n }\n return -1;\n }", "title": "" }, { "docid": "5a05769f0d9edae10ffa2dd5ccdeddf0", "score": "0.65758497", "text": "private static int binarySearchR(int findMe, ListADT<Integer> dataset, int left, int right) {\n\n\t\tif (left < right) {\n\t\t\tint middle = (left + right) / 2;\n\t\t\tif (dataset.getIndex(middle) == findMe) {\n\t\t\t\treturn middle;\n\t\t\t}\n\t\t\telse if (dataset.getIndex(middle) < findMe) {\n\t\t\t\treturn binarySearchR(findMe, dataset, middle+1, right);\n\n\t\t\t} else {\n\t\t\t\treturn binarySearchR(findMe, dataset, left, middle);\n\n\t\t\t}\n\t\t} \n\t\treturn -1;\n\t}", "title": "" }, { "docid": "025fc1b5f680ec9abec728b626e037f8", "score": "0.6574907", "text": "public static int binarySearch(int[] arr, int target) {\n\n if (arr.length == 0) {\n return -1;\n }\n\n int start = 0;\n int end = arr.length - 1;\n while (start > end) {\n\n int mid = start + (end - start) / 2;\n\n if (arr[0] <= arr[1]) {\n\n if (arr[mid] > target) {\n end = mid - 1;\n } else if (arr[mid] < target) {\n start = mid + 1;\n } else if (arr[mid] == target) {\n return mid;\n }\n } else {\n\n if (arr[mid] > target) {\n start = mid + 1;\n } else if (arr[mid] < target) {\n end = mid - 1;\n } else if (arr[mid] == target) {\n return mid;\n }\n }\n\n }\n\n System.out.println(\"Element is not found in array\");\n return -1;\n\n }", "title": "" }, { "docid": "60a811170cff5448b9264ddcc93486da", "score": "0.6570719", "text": "public int BinarySearch(int[] A, int key, int left, int right)\r\n {\n int mid = (left + right)/2;\r\n if (left == right)\r\n return -1;\r\n \r\n else if(key == A[mid])\r\n {\r\n return mid;\r\n }\r\n else if(key < A[mid])\r\n {\r\n return BinarySearch(A, key, left, mid-1);\r\n }\r\n else\r\n {\r\n return BinarySearch(A, key, mid+1, right);\r\n }\r\n }", "title": "" }, { "docid": "2cd07bac8243d828c5496fdf538a1790", "score": "0.65669805", "text": "public static void main(String[] args){\n\t\tint a[] = {8,5,18,12,10,15,17,26,25,778,800,832,845,8,957,1000,2,1000346};\n\t\t\n\t\tArrays.sort(a);\n\t\tfor(int i: a){\n\t\t\tSystem.out.print(i+\",\");\n\t\t}\n\t\n\t\tSystem.out.println(search(a,2));\n\t}", "title": "" }, { "docid": "7231d0fe79db6babf91288a308ac4b23", "score": "0.65661156", "text": "public static boolean binarySearch(int[] arr, int key, int low, int high){\n\n\t\twhile (high >= low){\n\t\t\tint middle = (low + high) /2;\n\t\t\tif(arr[middle] == key) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (arr[middle]< key){\n\t\t\t\tlow = middle + 1;\n\t\t\t}\n\t\t\tif (arr[middle] > key){\n\t\t\t\thigh = middle - 1;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "63f458d08eb0182c107b0939aafb0944", "score": "0.655066", "text": "public static void main(String[] args) {\n\t\tint[] arr = {16,8,2,10,11,14};\n\t\tArrays.sort(arr);\n\t\tint index = binarySearch(arr,16);\n\t\tSystem.out.println(\"element index11 : \"+index);\n\t}", "title": "" }, { "docid": "bd2efdb7506158d8116732bd7ad17124", "score": "0.6544476", "text": "@SuppressWarnings(\"Duplicates\")\n private int binarySearch(int fromIndex, int toIndex, ByteBuffer key, Comparator<ByteBuffer> c) {\n ByteBuffer currentKey = DirectByteBufferFactory.allocateEmpty();\n int low = fromIndex;\n int high = toIndex - 1;\n\n while (low <= high) {\n int mid = (low + high) >>> 1;\n\n int start = positions.get(mid);\n int length = keyLength(mid, start);\n\n ByteBuffer midVal = DirectByteBufferFactory.slice(memory, currentKey, start, length);\n\n int cmp = c.compare(midVal, key);\n if (cmp < 0) {\n low = mid + 1;\n } else if (cmp > 0) {\n high = mid - 1;\n } else {\n return mid; // key found\n }\n }\n return -(low + 1); // key not found.\n }", "title": "" }, { "docid": "d32b6b920648dbc47b4b767523e9cf9f", "score": "0.65376854", "text": "public static int binarySearch(int[] arr, int low, int high, int key) {\n\n\t\tif (high >= low) {\n\t\t\tint mid = low + (high - low) / 2;\n\n\t\t\tif (arr[mid] == key) {\n\t\t\t\treturn mid;\n\t\t\t}\n\t\t\tif (arr[mid] > key) {\n\t\t\t\treturn binarySearch(arr, low, mid - 1, key);\n\t\t\t} else {\n\t\t\t\treturn binarySearch(arr, mid + 1, high, key);\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\n\t}", "title": "" }, { "docid": "c68ecb343d41750b184cca3909b0ba23", "score": "0.65138817", "text": "private boolean search(BSNode bsNode, int val)\n {\n boolean found = false;\n while ((bsNode != null) && !found) //while there is more to search and didn't found.\n {\n int nodeVal = bsNode.data.getX();\n if (val < nodeVal)\n bsNode = bsNode.left;\n else if (val > nodeVal)\n bsNode = bsNode.right;\n else //if the values is equal.\n {\n found = true;\n break;\n }\n found = search(bsNode, val);\n }\n return found;\n }", "title": "" }, { "docid": "d10207f9c07b4dc0efe002c84f6ed8f6", "score": "0.6511955", "text": "public static int binarySearchLoop(int[] array, int key) {\n\n int first = 0;\n int last = array.length;\n\n while (first <= last) {\n System.out.println(first + \" \" + last);\n int middle = (first + last )/2;\n\n if (array[middle] > key) {\n System.out.println(\">\");\n last = middle;\n }\n else if (array[middle] < key) {\n System.out.println(\"<\");\n first = middle;\n }\n else {\n return middle;\n }\n \n }\n\n return -1;\n }", "title": "" }, { "docid": "739e2a8a3becf7584dc60b01f5dee39d", "score": "0.6505723", "text": "static public boolean search(int[] arr, int left, int right, int elem) {\n if (left > right)\n return false;\n int mid = (left + right) >>> 1;\n if (arr[mid] == elem)\n return true;\n else if (elem < arr[mid])\n return search(arr, left, mid - 1, elem); // T(n/2)\n else\n return search(arr, mid + 1, right, elem); // T(n/2)\n }", "title": "" }, { "docid": "74c56301151d9c83947a72a0eb0e15da", "score": "0.649842", "text": "private Model binarySearch(int idElement){\n\n // Keeping track of the indexes. These will define the limits\n // between which we'll be looking for the value\n int low = 0;\n int high = db.size() - 1;\n\n // The search will happen as long a the low index remains\n // lower than the high index\n while(low <= high){\n\n // Looking for the middle index\n int mid = (high + low)/2;\n\n // Assessing the value in the middle index\n if(db.get(mid).getId() == idElement){\n return db.get(mid);\n }\n else if(db.get(mid).getId() > idElement){\n high = mid - 1;\n }\n else {\n low = mid + 1;\n }\n }\n return null;\n }", "title": "" }, { "docid": "820fef4320733b7160cf68f8efc947bf", "score": "0.64933956", "text": "private static boolean binarySearch(final int[] array, final int search) {\r\n int first = 0;\r\n int last = array.length - 1;\r\n int middle = (first + last) / 2;\r\n while (first <= last) {\r\n if (array[middle] < search) {\r\n first = middle + 1;\r\n } else if (array[middle] == search) {\r\n return true;\r\n } else {\r\n last = middle - 1;\r\n }\r\n middle = (first + last) / 2;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "cb0cbc1fb90d4b9ba53ec802d0f16242", "score": "0.64892685", "text": "public static String binarySearch(String[] a, String x) {\n int low = 0;\n int high = a.length - 1;\n int mid;\n\n while (low <= high) {\n mid = (low + high) / 2;\n\n if (a[mid].compareTo(x) < 0) {\n low = mid + 1;\n } else if (a[mid].compareTo(x) > 0) {\n high = mid - 1;\n } else {\n return x;\n }\n }\n return null;\n\n\n }", "title": "" }, { "docid": "1c904ff354d73e4ee18c0f7bb8e707c5", "score": "0.64812446", "text": "public static int searchB(int x,int l,int h,int [] arr){\n if(h >= l){\n int mid = l + (h-l) / 2;\n if(arr[mid] == x){\n return mid;\n }else if(arr[mid] < x){\n return searchB(x,mid+1,h,arr);\n }else{\n return searchB(x,l,mid-1,arr);\n }\n }\n return -1;\n\n\n }", "title": "" }, { "docid": "c1a0d2600b62b664a62d14dac78443e4", "score": "0.6479124", "text": "public static int binarySearch(int arr[], int targetValue) {\n }", "title": "" }, { "docid": "efb973acad718bcc148db0ed7cde4c13", "score": "0.6446823", "text": "public static int searchSortedBin(int[] a, int x) {\n // use binary search\n if (a == null) return -1;\n int low = 0; \n int high = a.length - 1;\n while (low <= high) {\n int mid = (low + high)/2; // the floor mid point\n if (x == a[mid]) return mid;\n if (x < a[mid])\n high = mid - 1;\n else\n low = mid + 1; \n }\n \n return -1; // x is greater than all elements of a \n }", "title": "" }, { "docid": "485324ba6b5bfc7cbd1e4e963a48b1b4", "score": "0.6445446", "text": "boolean search(int key);", "title": "" }, { "docid": "d5a58f441cbffa9a16030a30968181d3", "score": "0.64420617", "text": "private int findIndex(K key, int low, int high) {\n\t\tif (high < low) return high + 1; // no entry matches the key\n\t\tint mid = (high + low) / 2;\n\t\tint comp = compare(key, table.get(mid).getKey());\n\t\tif (comp == 0)\n\t\t\treturn mid;\n\t\telse if (comp < 0)\n\t\t\treturn findIndex(key, low, mid - 1);\n\t\telse\n\t\t\treturn findIndex(key, mid + 1, high);\n\t}", "title": "" }, { "docid": "5524ca188c3d30867760c55928673595", "score": "0.64373934", "text": "public int binarySearch(int[] numbers, int numToSearchFor) {\t\n\t\t// sort the array\t\t\t\t\t\n\t\tint[] numbersSorted = sortAlgorithm.simpleSort(numbers);\n\t\t\n\t\t// search the array\n\t\tint found = searchAlgorithm.search(numbersSorted, numToSearchFor);\n\t\t\n\t\t// return the result\n\t\treturn found;\n\t\t\t\n\t}", "title": "" }, { "docid": "89b4fe1dd3928dd03ff8e542925613b2", "score": "0.6430677", "text": "public static int binarySearch(int[] a, int start, int len, int key) {\r\n\t\tint high = start + len, low = start - 1, guess;\r\n\r\n\t\twhile (high - low > 1) {\r\n\t\t\tguess = (high + low) / 2;\r\n\r\n\t\t\tif (a[guess] < key)\r\n\t\t\t\tlow = guess;\r\n\t\t\telse\r\n\t\t\t\thigh = guess;\r\n\t\t}\r\n\r\n\t\tif (high == start + len)\r\n\t\t\treturn ~(start + len);\r\n\t\telse if (a[high] == key)\r\n\t\t\treturn high;\r\n\t\telse\r\n\t\t\treturn ~high;\r\n\t}", "title": "" }, { "docid": "d105e7e481904c3186fd0bcc1f1ebcf7", "score": "0.64207613", "text": "public void binSearch(int n) {\n\t\t\n\t\t//sort using merge\n\t\tthis.sort(arr, 0, size-1);\n\t\t\n\t\t//print statement to show sorted array\n\t\tSystem.out.println(\"Here is what your sorted array looks like: \");\n\t\tfor (int i=0; i<size; i++) {\n\t\t\tSystem.out.println(i + \": \" + arr[i]);\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t//search using recursive binary\n\t\tfoundIndex=0;\n\t\tfoundCount=0;\n\t\tthis.binRecurSearch(n, 0, size-1, (size-1)/2);\n\t\t\n\t\t\n\t\t//print index that number was found at, or -1 if not found\n\t\tif (foundIndex!=-1) {\n\t\t\tSystem.out.println(arr[foundIndex] + \" is at index \" + foundIndex);\n\t\t}else {\n\t\t\tSystem.out.println(\"Sorry, that number is not in the array\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "fa9a8a19d811f24e4c7291c0c6f379bf", "score": "0.6416935", "text": "private static void BinarySearch(int st, int ed) {\n\t\tint size = ed - st + 1;\n\t\tif (size == 0)\n\t\t\treturn;\n\t\tint mid = size / 2 + st;\n\n\t\tint su = solve(mid);\n\t\tif (su >= K) {\n\t\t\tres = Math.max(res, mid);\n\t\t\tBinarySearch(mid + 1, ed);\n\t\t} else {\n\t\t\tBinarySearch(st, mid - 1);\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "8bf5f49bd61010274f4388cd71c8bd3a", "score": "0.641524", "text": "@Test\n public void testSearch() \n {\n System.out.println(\"search\");\n BinarySearchTree<Integer> bst = new BinarySearchTree<>();\n bst.insert(10);\n bst.insert(20);\n bst.insert(14);\n bst.insert(12);\n bst.insert(18);\n assertEquals(true, bst.search(10));\n assertEquals(true, bst.search(20));\n assertEquals(false, bst.search(15));\n assertEquals(true, bst.search(14));\n assertEquals(true, bst.search(12));\n assertEquals(false, bst.search(25));\n assertEquals(true, bst.search(18));\n assertEquals(false, bst.search(-18));\n }", "title": "" }, { "docid": "b63a69c9b0a4d832c993ef421d5912e7", "score": "0.6412984", "text": "private int BinarySearch(int[] dp, int x, int e){\n int i =0, j = e;\n while(i <= j){\n int mid = i + (j-i)/2;\n if(dp[mid] == x){\n return mid;\n } else\n if(dp[mid] > x){\n j = mid -1;\n } else {\n i = mid + 1;\n }\n }\n return i;\n }", "title": "" }, { "docid": "69f9e3a00a755c11007e4679a9276207", "score": "0.6409856", "text": "public static void main(String[] args) {\n BinarySearchTree binarySearchTree = new BinarySearchTree();\r\n binarySearchTree.insert(5);\r\n binarySearchTree.insert(5);\r\n binarySearchTree.insert(6);\r\n binarySearchTree.insert(4);\r\n binarySearchTree.insert(7);\r\n binarySearchTree.insert(3);\r\n \r\n binarySearchTree.inorder();\r\n \r\n if(binarySearchTree.search(6)== true)\r\n System.out.print(\"Found data\");\r\n \r\n if(binarySearchTree.search(10)== true){\r\n System.out.print(\"Found data\");\r\n }\r\n if(binarySearchTree.search(15)== true){\r\n System.out.print(\"Found data\");\r\n }\r\n \r\n \r\n binarySearchTree.inorder();\r\n }", "title": "" }, { "docid": "190a2708c84359cb4657a50229395af7", "score": "0.64065206", "text": "private boolean binSearchRec(int[] nums, int element, int start, int end){\n\n if (start > end){\n return false;\n }\n\n int mid = start + (end - start) / 2;\n\n if (element > nums[mid]){\n return binSearchRec(nums, element, mid+1, end);\n } else if (element < nums[mid]){\n return binSearchRec(nums,element,start,mid-1);\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "6e9c50d669545fe2e830d21dafbbce43", "score": "0.64041704", "text": "public static int binarySearch(int[] a, int target) {\n int left = 0;\n int right = a.length - 1;\n System.out.printf(\"%6s %7s %9s\\n\", \"left\", \"right\", \"middle\");\n while (left <= right) {\n int middle = left + (right - left) / 2;\n System.out.printf(\"%6d %7d %9d\\n\", left, right, middle);\n if (a[middle] == target) {\n return middle;\n }\n if (a[middle] > target) {\n right = middle - 1;\n } else {\n left = middle + 1;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "5162e3926549f0e15f753d64549c01e4", "score": "0.6372864", "text": "public int binSearchIndex(int a[], int low, int high, int x) {\n while (low < high) {\n int mid = low + (high - low) / 2;\n if (a[mid] < x) {\n low = mid + 1;\n } else if (a[mid] > x) {\n high = mid;\n } else {\n return mid;\n }\n }\n\n return low;\n }", "title": "" }, { "docid": "037545b699495fdfc9a28ff0c4be7a2b", "score": "0.6366228", "text": "public static void main(String[] args) {\n \r\n\t\tint arr[] = {50,60,10,5,80};\r\n\t\tint val = 100;\r\n\t\tint a = LinSearch(arr,val); \r\n\t\tif (a==-1)\r\n\t\t{ \t\t\r\n \t System.out.println(\"Not Found\");\r\n\t\t}\r\n else \r\n\t\t{\r\n \t System.out.println(\"Found \" +arr[a]+\" at position \"+a); \r\n\t\t} \t \r\n\t}", "title": "" }, { "docid": "596e8abda499eb44674af21199f2f6bd", "score": "0.63652235", "text": "public Task binarySearch(){\r\n ArrayList<Task> myList = this.sortNames();\r\n String name = view.getSearchedTaskName();\r\n \r\n //binary search algorithm to find the Task with the specified name. Returns it if found. Displays error message if not found.\r\n int i =0;\r\n int right = myList.size() - 1;\r\n while(i<=right){\r\n int m = i + (right-i)/2;\r\n if (myList.get(m).getName().compareToIgnoreCase(name) == 0){\r\n return getSearchedTask(m, myList);\r\n \r\n } \r\n if (myList.get(m).getName().compareToIgnoreCase(name) < 0){\r\n i = m + 1;\r\n }\r\n else{\r\n right = m - 1;\r\n }\r\n }\r\n \r\n JOptionPane.showMessageDialog(view.getSearchTaskDialogue(), \"A Task named: \\\"\" + name + \"\\\" is not found in your task list. Please check your spelling (it is case-sensistive!).\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return null;\r\n}", "title": "" }, { "docid": "6e3959a9808250c7ece316c6b802cbd2", "score": "0.63625824", "text": "static int binarySearchString(String arr[],String x) \n { \n int left=0,right=arr.length-1; \n while(left<=right) \n { \n int mid=left+(right-left)/2; \n int res=x.compareTo(arr[mid]); \n //CHECK IF x IS PRESENT AT MID...\n if(res==0) \n return mid; \n //IF x GREATER, IGNORE LEFT HALF...\n if(res>0) \n left=mid+1; \n //IF x IS SMALLER, IGNORE RIGHT HALF...\n else\n right=mid-1; \n } \n return -1; \n }", "title": "" }, { "docid": "bc53ad31c5b87beace33cae80c3624d1", "score": "0.63614404", "text": "private static int binarySearch2(int[][] jobs, int target) {\n int left = 0;\n int right = jobs.length;\n //search range [0,jobs.length)\n while (left < right) {\n int mid = (left + right) >>> 1;\n //100% sure logic\n if (jobs[mid][0] <= target) {\n left = mid + 1;\n } else {\n right = mid;\n }\n }\n return left;\n }", "title": "" }, { "docid": "d2af6be2d78cce795baae31d9649d250", "score": "0.6361094", "text": "public static void main(String[] args) {\n\t\tint a[] = {10,20,30,40,50,60,70,80,90};\r\n\t\tint x = 50; // value to be searched\r\n\t\t\r\n\t\tint i = binarySearch(a,x);\r\n\t\t\r\n\t\tif(i==-1){\r\n\t\t\tSystem.out.println(\"Not Found\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Found\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ce1a22560a28ea5796e89f30a5c473d5", "score": "0.6358101", "text": "public static int search(int[] A, int target) {\n int start = 0, end = A.length-1;\n while (start <= end) {\n int mid = (start + end) / 2;\n if (A[mid] == target) return mid;\n if (A[start] <= A[mid]) {\n if (A[start] <= target && target <= A[mid])\n end = mid-1;\n else\n start = mid+1;\n }\n else {\n if (A[mid] <= target && target <= A[end]) \n start = mid+1;\n else \n end = mid-1;\n }\n }\n return -1; \n }", "title": "" }, { "docid": "5f1e782e0077612490d774e1ec99d4c8", "score": "0.63405", "text": "public static void main(String[] args) {\n Scanner s1 = new Scanner(System.in);\n System.out.print(\"Input array size: \");\n int arraySize = s1.nextInt();\n\n //Generate a random array of integers of provided size and print it\n int arr[] = new int[arraySize];\n Random randomNumber = new Random();\n for (int i = 0; i < arr.length; i++) {\n arr[i] = randomNumber.nextInt(1000);\n System.out.println(arr[i]);\n }\n\n\n\n // a number to search in the array\n Scanner s2 = new Scanner(System.in);\n System.out.print(\"\\nInput search number: \");\n int elementToSearch = s2.nextInt();\n\n // method and measure time execution\n long startLinear = System.nanoTime();\n System.out.println(\"\\nLinear search number is present in array: \" + linearSearch(arr, elementToSearch));\n long endLinear = System.nanoTime();\n long linearTimeExecution = endLinear - startLinear;\n\n long startBinary = System.nanoTime();\n Arrays.sort(arr);\n System.out.println(\"Binary search number is present in array: \" + binarySearch(arr, elementToSearch));\n long endBinary = System.nanoTime();\n long binaryTimeExecution = endBinary - startBinary;\n\n System.out.println(\"\\nLinear Search takes \" + linearTimeExecution + \"ms\");\n System.out.println(\"Binary Search takes \" + binaryTimeExecution + \"ms\");\n }", "title": "" }, { "docid": "5a8eda79ae5a33196f6a589f38259134", "score": "0.63373685", "text": "public int search(int value) {\n int left = 0;\n int right = arr.length - 1;\n while (true){\n int center = (left + right) / 2;\n if (arr[center] == value) return center; else\n if (left > right) return -1; else\n if (arr[center] > value){\n right = center - 1;\n } else {\n left = center + 1;\n }\n }\n }", "title": "" }, { "docid": "e44fd78e2b3260c5943c312cd09279fd", "score": "0.6330934", "text": "public int binarySearch(T searchText, int low, int high) {\n\t\tif (low > high) {\n\t\t\tlow = 0;\n\t\t\thigh = strings.size();\n\t\t}\n\t\tint middle = (high + low) / 2;\n\n\t\t// compare text met de waarden\n\t\t// als de text groter is komt er -1 terug\n\t\t// als de text kleiner is komt er -1 terug\n\t\t// als de text hetzelfde is komt er 0 terug\n\t\t// gebruik een recursive functie\n\t\tif (searchText.compareTo((T) strings.get(middle)) == 0) {\n\t\t\treturn strings.indexOf(strings.get(middle));\n\t\t} else if (searchText.compareTo((T) strings.get(middle)) < 0) {\n\t\t\treturn binarySearch(searchText, low, middle - 1);\n\t\t} else if (searchText.compareTo((T) strings.get(middle)) > 0) {\n\t\t\treturn binarySearch(searchText, middle + 1, high);\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "0dfab05f334295152cce6cfe3d07f248", "score": "0.63309264", "text": "public int binarySearchMethod(int arr[], int first, int last, int target){\r\n\t\tint mid=(first+last)/2; \t//to find median position of array\r\n\t\tif(first>last){\t\t\t\t//target not found condition\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\telse if(target<arr[mid]){\t\t//when target is lesser then a[mid]\r\n\t\t\treturn binarySearchMethod(arr, first, mid-1, target);\r\n\t\t}\r\n\t\telse if(target>arr[mid]){\t\t//when target is greater then a[mid]\r\n\t\t\treturn binarySearchMethod(arr, mid+1, last, target);\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn mid;\t\t//target found condition\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f1d7a8b2079df34949169ef187ca9bc9", "score": "0.63263106", "text": "public static int binarySearch(int[] arr, int target) {\n int low = 0, high = arr.length - 1;\n while (low <= high) {\n int mid = low + (high - low) / 2;\n if (arr[mid] > target) {\n high = mid - 1;\n } else if (arr[mid] < target) {\n low = mid + 1;\n } else {\n return mid;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "bae001120abcdc32c021c79dbd8513e7", "score": "0.632582", "text": "public static int BinarySearchInRotated(int []arr, int key){\n int res=-1;\n int div = findRotationCount(arr, 0,arr.length-1);\n if(key>arr[div] && key< arr[0]){ //if(key>arr[div] && key< arr[div-1]){\n res = binarySearch(arr,div,arr.length-1, key);\n }\n else\n res = binarySearch(arr,0,div, key);\n\n return res;\n}", "title": "" }, { "docid": "d86b72ab1d561150fca3e855ccaebe49", "score": "0.6320725", "text": "private int binarySearch(int[] arr, int lo, int hi, int target) {\n if (lo == hi)\n return -1;\n\n int mid = (hi + lo) / 2;\n if (target == arr[mid])\n return mid;\n else if (arr[mid] < target)\n return binarySearch(arr, mid + 1, hi, target);\n else\n return binarySearch(arr, lo, mid, target);\n }", "title": "" }, { "docid": "04cf39a0dd33ef0709db58a46ee29f75", "score": "0.63205075", "text": "public static void main(String[] args) {\n\n\t\tint list[] = {20,8,7,50,30,90,78,15,12,100,7} ;\n\t\t\n\t\t//Linear Search\n\t\tint key = 78 ;\n\t\tfor(int i=0; i<list.length; i++) {\n\t\t\tint j = i+1 ;\n\t\t\tif( list[i] == key) {\n\t\t\t\tSystem.out.println(\"1.It has been \" + j + \" times to find number 78.\" ) ;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Selection Sort\n\t\tSystem.out.print(\"2.This array can be disaplayed as: {\" ) ;\n\t\tint min = list[0] ;\n\t\tint indexOfMin = 0 ;\n\t\tint tem=0 ;\n\t\t\n\t\tfor(int j=0; j<list.length; j++) {\n\t\t\tmin = list[j] ;\n\t\t\tindexOfMin = j ;\n\t\t\t\n\t\t\tfor(int k=j+1; k<list.length; k++) {\n\t\t\t\tif (list[k] < min) {\n\t\t\t\t\tmin = list[k] ;\n\t\t\t\t\tindexOfMin = k ;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttem = list[j] ;\n\t\t\tlist[j] = min ;\n\t\t\tlist[indexOfMin] = tem ;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d,\",list[j]) ;\n\t\t}\n\t\tSystem.out.println(\"}\") ;\n\t\t\n\t\t\n\t\t//Binary Search\n\t\t\n\t\tint low, high, mid ;\n low = 0 ;\n\t\thigh = 10 ;\n\t\tfor(int m=1; m<=list.length; m++) {\n\n\t\t\tmid = (high + low) /2 ;\n\t\t\t\n\t\t\tif ( list[mid]<key) {\n\t\t\t\tlow = mid + 1 ; \n\t\t\t}\n\t\t\telse if (list[mid] == key) {\n\t\t\t\tSystem.out.println(\"It has been \" + m + \" times to find number 78.\") ;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t\thigh = mid - 1 ;\n\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "e33393c32884501c1b91d33adfda483a", "score": "0.6318613", "text": "public int binarySearch(int arr[], int x) \n { \n int l = 0, r = arr.length - 1; \n while (l <= r) { \n int m == l + (r - l) / 2; \n\n // Check if x is present at mid \n if (m[arr] = x) \n return m; \n\n // If x greater, ignore left half \n if (m[arr] < x) \n l = m + 1; \n\n // If x is smaller, ignore right half \n else\n r = m - 1; \n } \n\n // if we reach here, then element was \n // not present \n return -1; \n }", "title": "" }, { "docid": "2bd8e0c2671dae4b711f9cfd30da1148", "score": "0.6316606", "text": "public int search_rec(int[] arr, int low, int high, int x)\n {\n if(low<=high)\n {\n if(arr[low] > x || arr[high] < x)\n return -1;\n\n // Midpoint calculations like cartesian formula\n int pos = low + (int) ((x-arr[low])*(high-low))/(arr[high]-arr[low]);\n if(arr[pos] == x)\n return pos;\n else if (arr[pos]>x)\n return search_rec(arr, low, pos-1, x);\n else\n return search_rec(arr, pos+1, high, x);\n }\n return -1;\n }", "title": "" }, { "docid": "ce9979b0f77b56b6110755bd662a0318", "score": "0.631379", "text": "public static int binarySearch(Listy listy, final int key) {\n\t\t\n\t\tint rightBound = findRightBound(listy, key);\n\t\tint leftBound = findLeftBound(rightBound);\n\t\t\n\t\t\n\t\twhile( leftBound <= rightBound ) {\n\t\t\t\n\t\t\tint mid_Index = leftBound + ( rightBound - leftBound ) /2;\n\t\t\tint mid_Value = listy.elementAt(mid_Index);\n\t\t\t\n//\t\t\tout.println(\"mid index: \" + mid_Index + \"; mid value: \" + mid_Value + \"; key: \" + key);\n\t\t\t\n\t\t\t//mistake: didn't take mid_value == -1 into account, that will cause midIndex move right\n//\t\t\tif( mid_Value < key ) {\n\t\t\tif( mid_Value < key && mid_Value != -1 ) {\n\t\t\t\tleftBound = mid_Index + 1;\n\t\t\t}\n\t\t\telse if( key < mid_Value || mid_Value == -1 ) {\n\t\t\t\trightBound = mid_Index -1 ;\n\t\t\t}\n\t\t\t//if ( key == midValue )\n\t\t\telse{\n\t\t\t\treturn mid_Index;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "0dc87b8e620583d05b1668bc2cbb64b5", "score": "0.6305289", "text": "static int integerBinarySearch(long[] items, int mass, int start, int end) {\n \n // base case\n if (end==start) {\n return -start-1; \n }\n \n // base case\n if (end-start == 1) {\n int targetMass = (int)items[start];\n if (targetMass<mass) {\n // insert exactly at the end position\n return -end-1;\n }\n else if(mass<targetMass) {\n // insert at the start position\n return -start-1;\n }\n else {\n // they are equal\n return start;\n }\n }\n \n // recurse\n int midIndex = (end+start) / 2; // check whether to recurse left or right\n int midMass = (int)items[midIndex];\n if (mass<midMass) {\n // recurse on the right\n return integerBinarySearch(items, mass, start, midIndex);\n }\n else if(midMass<mass) {\n // recurse on the left\n return integerBinarySearch(items, mass, midIndex+1, end);\n }\n else {\n // they middle item is equal\n return midIndex;\n }\n }", "title": "" }, { "docid": "bc2d94f2f427718e5c87f1acacd58d3a", "score": "0.62978274", "text": "public static int searchSorted(int[] a, int x) {\n // use sequential search\n for (int i = 0; i < a.length; i++) {\n if (a[i] == x) \n return i;\n else if (a[i] > x) {\n return -1;\n }\n }\n \n return -1; // x is greater than all elements of a \n }", "title": "" }, { "docid": "c5c158dc6fe6a40133830883f1f35fb0", "score": "0.628568", "text": "int search(int[] a, int left, int right, int target) {\n // check if the leftmost < mid true -> check target\n if (left > right) return -1;\n int mid = (left + right)/2;\n \n if (a[mid] == target) {\n return mid;\n }\n \n // normal half on the left\n if (a[left] <= a[mid]) {\n \n //target out of range, search on right\n if (target < a[left] || target > a[mid]) {\n return search(a, mid+1, right, target);\n } else {\n return search(a, left, mid-1, target);\n }\n } else if (a[mid] < a[left] ) {\n //normal part on the right\n \n //target out of range, search on left\n if (target < a[mid] || target > a[right]) {\n return search(a, left, mid-1, target);\n } else {\n return search(a, mid+1, right, target);\n };\n } else if (a[left] == a[mid]){\n if (a[mid] != a[right]) {\n return search(a, mid+1, right, target);\n } else {\n int resOnright = search(a, mid+1, right, target);\n \n //??? not sure why need to search on the left half if we already know the left side r the same int\n if (resOnright == -1) {\n return search(a, left, mid-1, target);\n } else {\n return resOnright;\n }\n }\n \n }\n \n return -1;\n }", "title": "" }, { "docid": "7c88a386e37bedd37fe443f4736f9f89", "score": "0.6283809", "text": "public static int binarySearchIterative(int findMe, ListADT<Integer> dataset) {\n\n\t\tint left = 0;\n\t\tint right = dataset.size();\n\n\t\twhile (left < right) {\n\t\t\tint middle = (left + right) / 2;\n\t\t\tif (dataset.getIndex(middle) == findMe) {\n\t\t\t\treturn middle;\n\t\t\t}\n\t\t\telse if (dataset.getIndex(middle) < findMe) {\n\t\t\t\tleft = middle+1;\n\n\t\t\t} else {\n\t\t\t\tright = middle;\n\n\t\t\t}\n\t\t} \n\t\treturn -1;\n\t}", "title": "" }, { "docid": "207dec0e83d1d797210f969c6eaa08f0", "score": "0.6281495", "text": "@Test(groups = \"Functional\")\n public void testFindFirst()\n {\n // List<String> names = Arrays.asList(\"anne\", \"anne\", \"bob\", \"colin\",\n // \"sally\");\n // // first value following \"anne\"\n // assertEquals(BinarySearcher.findFirst(names,\n // name -> \"anne\".compareTo(name) < 0), 2);\n // // first value equal to or following \"bob\"\n // assertEquals(BinarySearcher.findFirst(names,\n // name -> \"bob\".compareTo(name) <= 0), 2);\n // // first value following \"bob\"\n // assertEquals(BinarySearcher.findFirst(names,\n // name -> \"bob\".compareTo(name) < 0), 3);\n // // first value following \"sally\"\n // assertEquals(BinarySearcher.findFirst(names,\n // name -> \"sally\".compareTo(name) < 0), names.size());\n //\n // /*\n // * 'test' including as a warning that this method should not be\n // * used to find an entry - see the Javadoc for details!\n // */\n // int pos = BinarySearcher.findFirst(names, name -> \"anne\".equals(name));\n // assertNotEquals(pos, 0);\n // assertEquals(pos, names.size());\n //\n // List<Integer> nums = Arrays.asList(1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2,\n // 2, 2, 3, 3, 3, 3);\n // // no value is larger than 3\n // assertEquals(BinarySearcher.findFirst(nums, num -> num > 3),\n // nums.size());\n // // entry 14 is first larger than 2\n // assertEquals(BinarySearcher.findFirst(nums, num -> num > 2), 14);\n // // entry 5 is first larger than 1\n // assertEquals(BinarySearcher.findFirst(nums, num -> num > 1), 5);\n // // entry 0 is first larger than 0\n // assertEquals(BinarySearcher.findFirst(nums, num -> num > 0), 0);\n //\n // /*\n // * 'test' included as a warning that Collections.binarySearch is not\n // * guaranteed to find the first matching entry, so is not an\n // * alternative to findFirst()\n // */\n // pos = Collections.binarySearch(nums, 2);\n // assertNotEquals(pos, 5);\n // assertEquals(pos, 8);\n }", "title": "" }, { "docid": "a2e2a4d62b8eb1d48c0ae878269f1ee2", "score": "0.6280046", "text": "public List<Integer> findByBinarySearch(int[] arr1, int[] arr2) {\n List<Integer> res = new LinkedList<Integer>();\n if (arr1.length > arr2.length) {\n int[] tmp = arr1;\n arr1 = arr2;\n arr2 = tmp;\n }\n Arrays.sort(arr1);\n for (int i = 0; i < arr2.length; i++) {\n if (binarySearch(arr1, arr2[i])) {\n res.add(arr2[i]);\n }\n }\n return res;\n }", "title": "" }, { "docid": "36c9dee54612ae489420e97e1d64ac01", "score": "0.6269679", "text": "public int linSearch(Comparable find) {\n\tfor (int x = 0; x <= _lastPos; x++) {\t \n\t if (_data[x].equals(find)) {\n\t\treturn x;\n\t }\n\t}\n\treturn -1;\n }", "title": "" }, { "docid": "46af23cefdfc36ffd16219bf261b61ce", "score": "0.62637055", "text": "public int binarySearch(int[] array, int searchedElement, int left, int right) {\n int searchedIndex = -1;\n\n if (searchedElement >= array[left] & searchedElement <= array[right]) {\n int baseElement = array[(right + left) / 2];\n if (searchedElement == baseElement) {\n searchedIndex = (right + left) / 2;\n } else if (searchedElement < baseElement) {\n searchedIndex = binarySearch(array, searchedElement, left, (right + left) / 2 - 1);\n } else if (searchedElement > baseElement) {\n searchedIndex = binarySearch(array, searchedElement, (right + left) / 2 + 1, right);\n }\n }\n\n return searchedIndex;\n }", "title": "" }, { "docid": "90b0d48cf1dbc0ca82fe82b608fd5608", "score": "0.6260667", "text": "public int search(final List<Integer> A, int B) {\n // first true\n // pred(i) : a(0) > a(i)\n int lo=0,hi=A.size()-1,mid,pivot;\n while(lo<hi){\n mid=lo+(hi-lo)/2;\n if(A.get(0)>A.get(mid)){\n // true\n hi=mid;\n }else{\n // false\n lo=mid+1;\n }\n }\n pivot=lo;\n if(lo<A.size() && A.get(lo)==B){\n return lo;\n }\n // search in left part of pivot\n lo=0;\n hi=pivot-1;\n while(lo<hi){\n mid=lo+(hi-lo)/2;\n if(A.get(mid)>=B){\n hi=mid;\n }else{\n lo=mid+1;\n }\n }\n if(lo<A.size() && A.get(lo)==B){\n return lo;\n }\n // search in right part of pivot\n lo=pivot+1;\n hi=A.size()-1;\n while(lo<hi){\n mid=lo+(hi-lo)/2;\n if(A.get(mid)>=B){\n hi=mid;\n }else{\n lo=mid+1;\n }\n }\n if(lo<A.size() && A.get(lo)==B){\n return lo;\n }\n return -1;\n }", "title": "" }, { "docid": "4120ad09d94007f4044dd33a8f34ba1a", "score": "0.62495923", "text": "public static int recursiveBinarySearch(ArrayList<Integer> arrayList, int key, int low, int high) {\n if (low > high) { return -1; }\n int middle = (low + high) / 2;\n if (key == arrayList.get(middle)) {\n return middle;\n } else if (key < arrayList.get(middle)) {\n return recursiveBinarySearch(arrayList, key, low, middle - 1);\n } else {\n return recursiveBinarySearch(arrayList, key, middle + 1, high);\n }\n }", "title": "" }, { "docid": "de6148821ae7774db09a62f2c36d9258", "score": "0.6248183", "text": "@Test\n public void testBinarySearch() {\n int actualResult = binarySearch.BinarySearch(new int[]{2,4,5}, 5);\n // check if the value is correct\n assertEquals(5, actualResult);\n }", "title": "" }, { "docid": "6563df6a47bb42f39aed5b4c5827d4c5", "score": "0.6245082", "text": "public static int binarySearch(int low, int high /* p */) {\n\t\tint mid;\n\t\twhile(low < high) {\n\t\t\tmid = low + (high - low) / 2;\n\t\t\tif(true/*p(mid)*/)\n\t\t\t\thigh = mid;\n\t\t\telse\n\t\t\t\tlow = mid + 1;\n\t\t}\n\t\tif(false /*p(low) == false*/)\n\t\t\t;//complain\n\t\treturn low;\n\t}", "title": "" }, { "docid": "c7f71cd739fda10c02c5fa1382048714", "score": "0.6242636", "text": "public static int search(int key, int[] data) {\n int start = 0;\n int end = data.length - 1;\n while (start <= end) {\n int center = start + (end - start) / 2;\n if (data[center] == key) {\n return center;\n } else if (data[center] > key) {\n end = center;\n } else {\n start = center + 1;\n }\n }\n throw new RuntimeException(\"Key not found!\");\n }", "title": "" }, { "docid": "1ffda4dddce6e67657aa8b95c87c0f38", "score": "0.6237349", "text": "public int search(int[] nums, int target) {\r\n if (nums == null || nums.length == 0) {\r\n return -1;\r\n }\r\n \r\n int left = 0;\r\n int right = nums.length - 1;\r\n int mid = 0;\r\n while (left <= right) {\r\n mid = left + (right - left) / 2;\r\n if (nums[mid] >= nums[left]) { // left is sorted\r\n if (target == nums[mid]) {\r\n return mid;\r\n }\r\n else if (target < nums[mid] && target >= nums[left]) {\r\n right = mid - 1;\r\n }\r\n else { // t > mis[mid] || t < nums[l], search on right\r\n left = mid + 1;\r\n }\r\n }\r\n else { // right is sorted\r\n if (target == nums[mid]) {\r\n return mid;\r\n }\r\n else if (target > nums[mid] && target <= nums[right]) {\r\n left = mid + 1;\r\n }\r\n else { // t < nums[mid] || t > nums[r]\r\n right = mid - 1;\r\n }\r\n }\r\n }\r\n \r\n return -1;\r\n }", "title": "" }, { "docid": "b736bb2c7591eb91cb490b1d1f9a1c06", "score": "0.6235614", "text": "public int search(int[] nums, int target) {\n int lPtr = 0, rPtr = nums.length - 1;\n while (lPtr <= rPtr) {\n int mPtr = lPtr + ((rPtr - lPtr) >> 1);\n if (target == nums[mPtr]) {\n return mPtr;\n }\n else if (target > nums[mPtr]) {\n if (nums[mPtr] >= nums[lPtr]) {\n lPtr = mPtr + 1;\n } else if (target > nums[rPtr]) {\n rPtr = mPtr - 1;\n } else {\n lPtr = mPtr + 1;\n }\n } else {\n if (nums[mPtr] >= nums[lPtr]) {\n if (target >= nums[lPtr]) {\n rPtr = mPtr - 1;\n } else {\n lPtr = mPtr + 1;\n }\n } else {\n rPtr = mPtr - 1;\n }\n }\n }\n return -1;\n }", "title": "" }, { "docid": "617a3ce56e734dbb61fa2254c672f4ca", "score": "0.62308407", "text": "public int search(T s, int lo, int hi) throws IndexOutOfBoundsException;", "title": "" }, { "docid": "7d674c1fdc1c97040d51e584f824f37e", "score": "0.6227661", "text": "private int find(int n, int low, int high) {\n\t\tif (low > high) {\n\t\t\t// returns the insertion point -1\n\t\t\treturn - (low) - 1;\n\t\t}\n\t\tint mid = (low + high) / 2;\n\t\tif (a[mid] == n)\n\t\t\treturn mid;\n\t\telse if (n > a[mid])\n\t\t\treturn find(n, mid + 1, high);\n\t\telse\n\t\t\treturn find(n, low, mid - 1);\n\t}", "title": "" }, { "docid": "abde170300b7062571d0294aa34e5d0c", "score": "0.62193274", "text": "RBNode search(int key);", "title": "" }, { "docid": "98d06552459ceba46e54b7b8a2ec1036", "score": "0.62182987", "text": "public static boolean trinarySearch (int [] arr, int key, int low, int high){\n\t\tif (low > high)\n\t\t\treturn false;\n\t\tint mid1 = low + (high - low)/3;\n\t\tint mid2 = low + 2*(high - low) / 3;\n\t\tif (arr[mid1] == key)\n\t\t\treturn true;\n\t\telse if (arr[mid2] == key)\n\t\t\treturn true;\n\t\telse if (key < arr[mid1])\n\t\t\treturn trinarySearch (arr,key, low, mid1-1);\n\t\telse if (key > arr[mid2])\n\t\t\treturn trinarySearch(arr,key, mid2+1, high);\n\t\telse \n\t\t\treturn trinarySearch (arr,key, mid1, mid2);\n\n\t}", "title": "" }, { "docid": "7b6c9e349a311639b1a14bba034f7f9d", "score": "0.62133175", "text": "public boolean searchV1(int[] nums, int target) {\n int len = nums.length;\n if (len == 0) {\n return false;\n } else if (len == 1) {\n if (nums[0] == target) {\n return true;\n } else {\n return false;\n }\n } else {\n int start = 0, end = len - 1;\n\n while (start + 1 < end) {\n int mid = start + (end - start) / 2;\n if (nums[mid] == target) {\n return true;\n }\n if (nums[start] < nums[mid]) { // left part is in order\n if (nums[mid] < target) {\n start = mid;\n } else {\n if (nums[start] == target) {\n return true;\n } else if (nums[start] < target) { // target maybe locate in left part\n end = mid;\n } else { // target maybe locate in right part\n start = mid;\n }\n }\n } else { // right part is in order\n if (nums[mid] < target) {\n if (nums[end] == target) {\n return true;\n } else if (nums[end] < target) { // target maybe locate in left part\n end = mid;\n } else { // target maybe locate in right part\n start = mid;\n }\n } else {\n end = mid;\n }\n }\n }\n\n if (nums[start] == target) {\n return true;\n } else if (nums[start + 1] == target) {\n return true;\n } else {\n return false;\n }\n }\n }", "title": "" }, { "docid": "4cff08eb1f24d18e1eba0f857add396c", "score": "0.6212326", "text": "public int findMin_2_BSearch(int[] nums) {\n if (nums.length == 0) return -1;\n int left = 0, right = nums.length - 1;\n while (left < right) {\n if(nums[left] < nums[right]){\n break;\n }\n int mid = left + (right - left) / 2;\n if (nums[left] > nums[mid]) {\n //min element is in left to mid\n right = mid;\n } else if(nums[left] < nums[mid]){\n left=mid+1;\n }else{\n //nums[left] == nums[mid]\n if(nums[mid] > nums[right] ){\n left = mid+1;\n }\n if(nums[mid] == nums[right]){\n left++;\n right--;\n }\n\n }\n }\n return nums[left];\n }", "title": "" }, { "docid": "24b37d88fbc6b2b5fdad64a0daff2d5f", "score": "0.6212024", "text": "public int search(int[] nums, int target) {\n\n if (nums == null || nums.length == 0) return -1;\n\n int low = 0, high = nums.length - 1;\n while (low <= high) {\n int mid = low + (high - low) / 2;\n if (target == nums[mid]) return mid;\n if (nums[mid] >= nums[low]) {\n if (target < nums[mid] && target >= nums[low]) high = mid - 1;\n else low = mid + 1;\n } else {\n if (target > nums[mid] && target <= nums[high]) low = mid + 1;\n else high = mid - 1;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "d6c68b92052121e0af51a64d2c6b541f", "score": "0.62009305", "text": "public static void main(String[] args) {\n\t\tint[] arr = {1,2,3,4,5,6,7,8,9,10};\n\t\tSystem.out.println(bSearchRec(arr,0,10, 10));\n\t\tSystem.out.println(bSearch(arr, 10));\n\t}", "title": "" }, { "docid": "5e7e39ab2f9b7d329f4de71307da1f97", "score": "0.61985946", "text": "public int search(int[] nums, int target) \n {\n int l = 0;\n int r = nums.length - 1;\n \n while(l <= r)\n {\n int mid = l + (r - l) / 2;\n \n if(nums[mid] == target)\n {\n return mid;\n }\n else if(nums[mid] > target)\n {\n r = mid - 1;\n }\n else\n {\n l = mid + 1;\n }\n }\n \n return -1;\n }", "title": "" }, { "docid": "7087b460427e85a2ad1e9e5d71b210ec", "score": "0.61971563", "text": "private static int search(int[] nums, int low, int high, int target) {\n\t\t// Edge case nothing find.\n\t\tif (low > high) {\n\t\t\treturn -1;\n\t\t}\n\t\tint mid = (low + high) / 2;\n\t\t// Base case.\n\t\tif (nums[mid] == target) {\n\t\t\treturn mid;\n\t\t}\n\t\t// Recursive case.\n\t\tif (nums[mid] > target) {\n\t\t\t// Consider left half.\n\t\t\treturn search(nums, low, mid - 1, target);\n\t\t}\n\n\t\t// Consider right half.\n\t\treturn search(nums, mid + 1, high, target);\n\n\t}", "title": "" } ]
2ccabe5cd81e223ee206e7cb1fb0aaec
Checks if the correct answer already existed in the possible answers array
[ { "docid": "3e3dfe906acc1d5813ea46ea364ac141", "score": "0.7655719", "text": "private boolean checkAnswer(String answer) {\n for (String posAns : possibleAnswers) {\n if (posAns.equals(answer)) {\n return true;\n }\n }\n return false;\n }", "title": "" } ]
[ { "docid": "4b6c5dfbb9a1ec7db78b2d0a26bb8192", "score": "0.72086316", "text": "public boolean checkAnswers(List<String> correctAnswers, List<String> chosenAnswers) {\n for (String corect : correctAnswers) {\n int ok = 0;\n for (String chosen : chosenAnswers) {\n if (corect.equals(chosen))\n ok = 1;\n }\n if (ok == 0)\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "6b5017001b847e6cb9930718a54d3ae0", "score": "0.6917203", "text": "public void CheckAnswer()\n\t{\n\t\tif (m_answer.compareTo(m_gameList.get(m_selection)) == 0)\n\t\t{\n\t\t\t// Correct answer!\n\t\t\tint damage = m_player.attack();\n\t\t\tm_enemy.dmgEnemy(damage);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Wrong answer!\n\t\t\tint damage = m_enemy.enemyStrike();\n\t\t\tm_player.beAttacked(damage);\n\t\t}\n\t\t\n\t\tCheckBattleStatus();\n\t\t\n\t\tSetNewWord();\n\t}", "title": "" }, { "docid": "0a002307abaad568f9715655d1d836bd", "score": "0.69159645", "text": "public boolean allCorrect(){\n boolean allCorrect = false;\n if(numCorrect==orderedNumbers.size()){\n allCorrect = true;\n }\n return allCorrect;\n }", "title": "" }, { "docid": "aae777cc00ed1e61c319e00b1c66f154", "score": "0.6915126", "text": "private boolean isAnswerCorrect()\n\t{\n\t\tif(ans == readAns)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\t\n\t}", "title": "" }, { "docid": "615223b364d179755e620ed1a7c575e5", "score": "0.6869026", "text": "public boolean checkAnswer(String response)\n {\n return allAnswers.contains(response);\n }", "title": "" }, { "docid": "63f75998b72e8712e323ea2ee05fbdb0", "score": "0.685828", "text": "public boolean checkAnswer(int option){\r\n if(possibleAnswers[option-1].equals(correctAnswer)){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "fae56dd03072aea13b627c8a0672d9ff", "score": "0.6677522", "text": "public boolean checkAnswer(String[] guesses) {\n boolean correct = ((MultipleChoice) getQuestion()).isCorrect(guesses);\n correctGuess[questionNumber] = correct;\n return correct;\n }", "title": "" }, { "docid": "b6c324b51962888968a96c492ef85c50", "score": "0.66140336", "text": "private boolean isCorrectTrueInAnswers(List<AnswerDTO> answers) {\n for (AnswerDTO answer : answers) {\n if (answer.getIsCorrect()) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "39d5a4d0d678c51d85457cd44e766e24", "score": "0.6544059", "text": "private void checkIfCorrect()\n {\n extractValuesFromBoard(); // get current values\n // if solution is correct AND not solved yet AND games is in action\n if (Arrays.deepEquals(mSolutionValues, mCurrentValues) && !mSolved && mGameInAction)\n {\n mSolved = true;\n mGUI.getTimePanel().stop();\n JOptionPane.showMessageDialog(null, \"Bra jobbat ! Du har löst sudokut !\", \"GRATTIS!!!\", JOptionPane.PLAIN_MESSAGE);\n checkHighscore();\n abortGame();\n }\n }", "title": "" }, { "docid": "a6b875f1ba697a7064076d4996d2c8a5", "score": "0.6532947", "text": "public boolean isCorrect(String answer){\n\t\tfor(String s : answers){\n\t\t\tif(answer.equalsIgnoreCase(s)) return true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1865da6fe674e2a863f0c0d5d570fe4b", "score": "0.6531914", "text": "private boolean[] validateAnswers() {\n validateAnswers = new boolean[questions.size()];\n for (int i = 0; i < questions.size(); i++) {\n Question question = questions.get(i);\n Options opType = question.getOptionsType();\n\n switch (opType) {\n case CHECKBOX:\n if (question.getUserSetAnswerId() != null && question.getUserSetAnswerId().size() > 0) {\n //get total number of correct answers to be checked\n int count = question.getAnswerId().size();\n //verify if the user has checked the same number of options\n if (count == question.getUserSetAnswerId().size()) {\n for (int index : question.getAnswerId()) {\n if (question.getUserSetAnswerId().contains(index)) {\n count--;\n }\n }\n }\n //set the answer as correct only if the user has selected all checkbox options required\n if (count == 0) {\n validateAnswers[i] = true;\n }\n }\n break;\n case EDITTEXT:\n if (!TextUtils.isEmpty(question.getUserAnswer())) {\n //compare the user answer with the correct answer\n if (question.getAnswer().equalsIgnoreCase(question.getUserAnswer())) {\n validateAnswers[i] = true;\n }\n }\n break;\n case RADIOBUTTON:\n if (question.getUserSetAnswerId() != null && question.getUserSetAnswerId().size() > 0) { //compare the user answer with the correct answer\n //compare the user answer with the correct answer\n if (question.getAnswerId().get(0).equals(question.getUserSetAnswerId().get(0))) {\n validateAnswers[i] = true;\n }\n }\n break;\n }\n }\n return validateAnswers;\n }", "title": "" }, { "docid": "d7bc1e1ea26dcea3cf936b6e3fcbb5fd", "score": "0.65250516", "text": "public void checkAnswer()\n\t{\n\t\tif(this.userAnswer == this.correctAnswer)\n\t\t{\n\t\t\tisCorrect = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tisCorrect = false;\n\t\t}\n\t}", "title": "" }, { "docid": "bdee89db5797d0a63a333d2b442a00ab", "score": "0.6520563", "text": "public void checkAnswers() {\n\n // If answer1 is clicked and it is the answer of question increment score and so on...\n if ((answer1Clicked) && (correctAnswersList[currentQuestionNumber].equals(\"answer1\"))) {\n totalCorrectAnswers++;\n } else if ((answer2Clicked) && (correctAnswersList[currentQuestionNumber].equals(\"answer2\"))) {\n totalCorrectAnswers++;\n } else if ((answer3Clicked) && (correctAnswersList[currentQuestionNumber].equals(\"answer3\"))) {\n totalCorrectAnswers++;\n } else if ((answer4Clicked) && (correctAnswersList[currentQuestionNumber].equals(\"answer4\"))) {\n totalCorrectAnswers++;\n }\n\n // Count unanswered questions\n if (!answer1Clicked && !answer2Clicked && !answer3Clicked && !answer4Clicked) {\n totalNotAttempted++;\n }\n\n // Calculate the score\n score = totalCorrectAnswers * 10;\n\n // Set the answer flags to default\n answer1Clicked = false;\n answer2Clicked = false;\n answer3Clicked = false;\n answer4Clicked = false;\n }", "title": "" }, { "docid": "20c75d89ef8a292796c62e7c1fbaa0c8", "score": "0.63691056", "text": "private int checkAnswers() {\n RadioButton q1a1radioButton = findViewById(R.id.answer_one_question_one_fashion_quiz);\n Boolean q1a1 = q1a1radioButton.isChecked();\n RadioButton q1a2radioButton = findViewById(R.id.answer_two_question_one_fashion_quiz);\n Boolean q1a2 = q1a2radioButton.isChecked();\n RadioButton q1a3radioButton = findViewById(R.id.answer_three_question_one_fashion_quiz);\n Boolean q1a3 = q1a3radioButton.isChecked();\n\n if (q1a1 && !q1a2 && !q1a3) {\n total++;\n }\n\n\n /*\n finds the answer for question 2 and if it's the right one adds it to total\n */\n EditText q2EditText = findViewById(R.id.answer_question_two_fashion_quiz);\n String q2 = q2EditText.getText().toString().trim().toUpperCase();\n String p = \"Handbags\".toUpperCase();\n String p1 = \"Handbag\".toUpperCase();\n String p2 = \"Purses\".toUpperCase();\n String p3 = \"Purse\".toUpperCase();\n\n if (q2.equals(p) || q2.equals(p1) || q2.equals(p2) || q2.equals(p3)) {\n total++;\n }\n\n /*\n finds the answer for question 3 and if it's the right one adds it to total\n */\n RadioButton q3a1radioButton = findViewById(R.id.answer_one_question_three_fashion_quiz);\n Boolean q3a1 = q3a1radioButton.isChecked();\n\n RadioButton q3a2radioButton = findViewById(R.id.answer_two_question_three_fashion_quiz);\n Boolean q3a2 = q3a2radioButton.isChecked();\n\n RadioButton q3a3radioButton = findViewById(R.id.answer_three_question_three_fashion_quiz);\n Boolean q3a3 = q3a3radioButton.isChecked();\n\n if (q3a1 && !q3a2 && !q3a3) {\n total++;\n }\n return total;\n }", "title": "" }, { "docid": "b0c872cbebad694d9d3fe1d0149a5a26", "score": "0.6342599", "text": "public boolean hasGuessedWord(){\n int alreadyGuessed = 0;\n for (int i = 0; i < correctGuesses.length; i++) {\n if(correctGuesses[i]){\n alreadyGuessed++;\n }\n }\n return (alreadyGuessed == correctGuesses.length);\n }", "title": "" }, { "docid": "c33cc62f78ec4b266c980be52528ed79", "score": "0.63227916", "text": "public boolean isSolutionCorrect()\n\t{\n\t\tfor (int i = 0; i < BOARD_SIZE; ++i)\n\t\t\tfor (int j = 0; j < BOARD_SIZE; ++j)\n\t\t\t{\n\t\t\t\tif (board[i][j].getUserSolution() != board[i][j].getCorrectSolution())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ec6dd195197e23a4b4defa3ba6589db8", "score": "0.63053685", "text": "public boolean checkCorrect(int[] guess){\r\n\t\tif (calcBlack(guess) == NUM_PEGS)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "7c654ed8a2373515adb4bf1f21981e83", "score": "0.630291", "text": "private boolean validateIsCorrectInAnswers(List<AnswerDTO> answers) {\n for (AnswerDTO answer : answers) {\n // check isCorrect = null\n if (MethodUtil.isNull(answer.getIsCorrect())) {\n // return message error param isCorrect not valid\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "f5b1a2bb9afd43f5246ad04cb3ccdd1c", "score": "0.62958765", "text": "public boolean checkAnswer(boolean userAnswer) {\n return answer == userAnswer;\n }", "title": "" }, { "docid": "9f8690b1850f1bf6ce01ca130a380dcd", "score": "0.6225", "text": "public void addCorrectAnswer(int answer){\n this.nrOfCorrectAnswers = this.nrOfCorrectAnswers + answer;\n }", "title": "" }, { "docid": "0609e40c9d7e944c3b0c15bec4f279d0", "score": "0.621674", "text": "public static boolean checkCorrect(int correctAnswer, int userAnswer) {\n\t\tif (correctAnswer == userAnswer) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "dd7ad5f54696500e296bcb16a328d281", "score": "0.6212303", "text": "public boolean checkAnswer(String guess) {\n boolean correct = getQuestion().isCorrect(guess);\n correctGuess[questionNumber] = correct;\n return correct;\n }", "title": "" }, { "docid": "8e93f9a9577ff73607d07f60f35f2d9b", "score": "0.61826205", "text": "public String quizOneAnswerVariation(){\n if (quiz01Answer_A.isChecked() && !quiz01Answer_B.isChecked() && !quiz01Answer_C.isChecked()){\n return \"a\"; //Your answer is incorrect //0 point\n } else if (quiz01Answer_B.isChecked() && !quiz01Answer_A.isChecked() && !quiz01Answer_C.isChecked()){\n return \"b\"; //There is one more correct answer //2 point\n } else if (quiz01Answer_C.isChecked() && !quiz01Answer_A.isChecked() && !quiz01Answer_B.isChecked()){\n return \"c\"; //There is one more correct answer //2 point\n } else if (quiz01Answer_A.isChecked() && quiz01Answer_B.isChecked() && !quiz01Answer_C.isChecked()){\n return \"ab\"; //Only one of your answers is correct //2 point\n } else if (quiz01Answer_A.isChecked() && quiz01Answer_C.isChecked() && !quiz01Answer_B.isChecked()){\n return \"ac\"; //Only one of your answers is correct //2 point\n } else if (quiz01Answer_B.isChecked() && quiz01Answer_C.isChecked() && !quiz01Answer_A.isChecked()){\n return \"bc\"; //All of your answers are correct //3 point\n } else if (quiz01Answer_A.isChecked() && quiz01Answer_B.isChecked() && quiz01Answer_C.isChecked()){\n return \"abc\"; //Only two of the answers are correct //1 point\n }\n return \"\"; //You haven’t choose any of the answers //0 point\n }", "title": "" }, { "docid": "a681d58f65bb918e2afffdf7af45911a", "score": "0.6153777", "text": "public int testIfCorrect(int[] answer, int[] oneToTwelve){\n\t\tScanner input = new Scanner(System.in);\t\t\t\t\t\t//Make a scanner called input to scan the users input\r\n\t\tint userAnswer;\t\t\t\t\t\t\t\t\t\t\t\t//Variable to store the users answer\r\n\t\tint countCorrect = 0;\t\t\t\t\t\t\t\t\t\t//Declare an int variable counter to count the correct answeres\r\n\t\tfor (int i = 0; i<oneToTwelve.length; i++){\t\t\t\t\t//Length 12\r\n\t\t\tSystem.out.print(\"What is \" + oneToTwelve[i] + \" times \" + \"5: \");//Print out the question, first iteration \"1*5\", second \"2*5\" etc.\r\n\t\t\tuserAnswer = input.nextInt();\t\t\t\t\t\t\t//Store the users integer input inside the variable \r\n\t\t\t//Throws an error when the user does not input an integer\r\n\t\t\t//nextLine() - For strings, nextDouble() - Doubles, nextFloat() - Floats\r\n\t\t\tif (userAnswer == answer[i]){\t\t\t\t\t\t\t//If the users answer is equal to the first iteration of answer (5)\r\n\t\t\t\tSystem.out.println(\"That answer is correct.\");\t\t//Print answer is correct\r\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------------\");//For neatness\r\n\t\t\t\tcountCorrect = countCorrect + 1;\t\t\t\t\t//Add one to the counter if the answer is correct\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"That answer is incorrect.\");\t//Print incorrect if the answer is not equal to the first iteration of answer\r\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------------\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn countCorrect;\t\t\t\t\t\t\t\t\t\t//Return the amount of correct answeres of the user\r\n\t}", "title": "" }, { "docid": "401892f241c7aad4d8f0cebde70b2bda", "score": "0.6124599", "text": "public boolean correctGuess(String guess) {\n\t\tboolean correct = false;\n\t\tfor(int i=0; i<this.revealed.length; i++) {\n\t\t\tif(this.revealed[i].contains(guess)) {\n\t\t\t\tcorrect = true;\n\t\t\t\tthis.correctGuess.add(guess);\n\t\t\t\tthis.isCorrected[i] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!correct) {\n\t\t\tthis.mistakeGuess.add(guess);\n\t\t\tthis.mistakeTimes += 1;\n\t\t}\n\t\treturn correct;\n\t}", "title": "" }, { "docid": "e393a9ccadf702cebc36b5b1ea1a6c1a", "score": "0.61245537", "text": "@Override\n public boolean compareAnswer(int index) {\n return randomQuestion.compareAnswer(index);\n }", "title": "" }, { "docid": "4c8dbd359fbd4158a35a7a227b66e3b8", "score": "0.6104506", "text": "private Boolean getValidMultiAnswers() {\n \t\tboolean res = true;\n \t\tfor (int i=0; i < 4 && res; i++) {\n \t\t\tString s = txtAnsList.get(i).getText();\n \t\t\t// checks each tf is (1,200)\n \t\t\tres = res && (s.length() > 0 && s.length() <= 200); \n \t\t}\n \t\t\n \t\treturn res;\n \t\t/*return (txtAnswerA.getText().length() > 0 && txtAnswerA.getText().length() < 201)\n \t\t|| (txtAnswerB.getText().length() > 0 && txtAnswerB.getText().length() < 201)\n \t\t|| (txtAnswerC.getText().length() > 0 && txtAnswerC.getText().length() < 201)\n \t\t|| (txtAnswerD.getText().length() > 0 && txtAnswerD.getText().length() < 201)\n \t\t&& txtAnswerA.getText().length() < 201 && txtAnswerB.getText().length() < 201\t // if you break down the logic here, \t\n \t\t&& txtAnswerC.getText().length() < 201 && txtAnswerD.getText().length() < 201;*/ // these are already checked in the or's\n \t}", "title": "" }, { "docid": "1df2aee6a1a47202215fbb8760ea4ed7", "score": "0.60731494", "text": "public boolean isAnswerCorrect(){\n return (correctAns.trim().equalsIgnoreCase(givenAns));\n }", "title": "" }, { "docid": "3d145f8aa7120f9ac3e213f299341f44", "score": "0.60710955", "text": "private void checkAnswer(boolean userChoice) {\n Answer ans = db.getQuestion(currentIndex);\n\n//if users choice matches the answer\n if (ans.getAnswer().equalsIgnoreCase(Boolean.toString(userChoice))) {\n Toast.makeText(this, R.string.correct_toast, Toast.LENGTH_SHORT).show();\n\n } else {\n Toast.makeText(this, R.string.incorrect_toast, Toast.LENGTH_SHORT).show();\n }\n\n }", "title": "" }, { "docid": "739166b7034f765d6d36673c19e4775b", "score": "0.60623693", "text": "private boolean isEditQuestionCorrect(ViewGroup questionView) {\n //get the edit text of he questions view\n EditText editText = questionView.findViewById(QuestionBuilder.EDIT_TEXT_TAG);\n if (editText == null) {\n return(false); //sanity check\n }\n\n //an edit text may have more than one correct answer\n String[] correctStrings = (String[])editText.getTag();\n if (correctStrings == null) {\n return(false); //sanity check\n }\n\n //check all the correct strings and see if one of them matches the exit text's text\n String editTextString = editText.getText().toString();\n for (String correctString : correctStrings) {\n //ignore the case of the edit text - therefore \"answer\" s the same as \"AnSwER\"\n if (correctString.equalsIgnoreCase(editTextString)) {\n return(true); //found a match - correct\n }\n }\n\n return(false); //no matches found - incorrect\n }", "title": "" }, { "docid": "b1c61e3aa3081cf5db1f99f269dd5197", "score": "0.6056266", "text": "public boolean judgeAnswer(Question q, String answer) {\n\t\treturn q.getCorrectAnswer().equals(answer);\n\t}", "title": "" }, { "docid": "c3f289725f7c87166624d12e70976120", "score": "0.6054086", "text": "private void checkAnswer(String answer, int index) {\n if (answer.equals(answers.get(index))) {\n mark++;\n }\n }", "title": "" }, { "docid": "9bfaba222256d4c1cfc8e059892e9154", "score": "0.6013342", "text": "public static void main(String[] args) {\n int num1 = (int)(Math.random() * 10);\n int num2 = (int)(Math.random() * 10);\n ArrayList<Integer> allAnswers = new ArrayList<>();\n\n System.out.println(\"What is: \" + num1 + \" + \" + num2 + \" = ?\");\n Scanner input = new Scanner(System.in);\n int answer = input.nextInt();\n\n // run the game\n while (num1 + num2 != answer){\n if (allAnswers.contains(answer)){\n System.out.println(\"You already provided this answer: \" + answer);\n }\n System.out.println(\"Wrong answer! Try again. What is: \" + num1 + \" + \" + num2 + \" = ?\");\n allAnswers.add(answer);\n answer = input.nextInt();\n }\n System.out.println(\"You got it! \" + num1 + \" + \" + num2 + \" = \" + (num1 + num2));\n }", "title": "" }, { "docid": "4e7d377ee217000ba6d76476cad9a55f", "score": "0.6012032", "text": "public boolean checkAnswer(){\n Cryptogram c = playerGameMapping.get(currentPlayer);\n\n if(c instanceof LetterCryptogram){\n LetterCryptogram letter = (LetterCryptogram) c;\n for(Map.Entry<Character, Character> entry : inputFromUserLetter.entrySet()){\n if(letter.getPlainLetter(entry.getKey()) != entry.getValue()){\n // if even one of the mapping are incorrect, the whole answer is incorrect\n return false;\n }\n }\n }\n else if(c instanceof NumberCryptogram){\n NumberCryptogram number = (NumberCryptogram) c;\n for(Map.Entry<Integer, Character> entry : inputFromUserNumber.entrySet()){\n if(number.getPlainLetter(entry.getKey()) != entry.getValue()){\n // if even one of the mapping are incorrect, the whole answer is incorrect\n return false;\n }\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "0c6fd2bb7f4441962838551e5d4201ec", "score": "0.6000383", "text": "private boolean solutionFound(int[] mySol, int[] solution) {\n for (int i = 0; i < MAX_PLACES; i++) {\n if (mySol[i] != solution[i]) return false;\n }\n return true;\n }", "title": "" }, { "docid": "022cad7868c522d1847116dd66782ae8", "score": "0.59999496", "text": "public boolean isCorrect(String answer) {\n Question question = this.questions.get(questionIndex);\n return question.getCorrect().equals(answer);\n }", "title": "" }, { "docid": "48e92e83dfee389d981f9d4409fdb162", "score": "0.5988191", "text": "String answerPuzzle(String answer) {\n\t\t\tString response = \"Sorry, that answer is incorrect.\";\n\t\t\tif(getPuzzle().getID() ==1) {\n\t\t\t\tif(answer.toLowerCase().contains(getPuzzle().getSolution().toLowerCase())) {\n\t\t\t\t\tresponse = \"Congratulations, You solved the puzzle.\";\n\t\t\t\t\tunlockRooms(getPuzzle());\n\t\t\t\t\thmRooms.get(getPuzzle().getLocationPlaced()).setPuzzle(null);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(getPuzzle().getSolution().equalsIgnoreCase(answer)) {\n\t\t\t\tresponse = \"Congratulations, You solved the puzzle.\";\n\t\t\t\tunlockRooms(getPuzzle());\n\t\t\t\thmRooms.get(getPuzzle().getLocationPlaced()).setPuzzle(null);\n\t\t\t}\n\t\t\treturn response;\n\t\t}", "title": "" }, { "docid": "60021cb1dca011eb4f901110aecf9193", "score": "0.596174", "text": "public boolean check() throws QuestionException{\n\t\tint nb=0;\n\t\tint nbc=0;\n\t\tSet<Map.Entry<String, Boolean>>entrees = choices.entrySet();\n\t\tIterator<Map.Entry<String, Boolean>> it = entrees.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tMap.Entry<String, Boolean>entree=it.next();\n\t\t\tnb++;\n\t\t\tif(entree.getValue()==true){\n\t\t\t\tnbc++;\n\t\t\t}\n\t\t}\n\t\tif(nb==4 && nbc==1){\n\t\t\tif(author!=null){\n\t\t\t\tif(statement!=null){\t\n\t\t\t\t\tif(round!=null){\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new QuestionException();\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\tthrow new QuestionException();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new QuestionException();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new QuestionException();\n\t\t}\n\t}", "title": "" }, { "docid": "eae2cd0192ad9cd677b7649ec23a58d1", "score": "0.59548557", "text": "public abstract boolean checkAnswer(String givenAnswer);", "title": "" }, { "docid": "3cc0e83b235968b499b195d0cb6851b2", "score": "0.5950125", "text": "public void newQuestion(){\n Random rand = new Random();\n\n int a = rand.nextInt(51);\n int b = rand.nextInt(51);\n\n sumTextView.setText(Integer.toString(a) + \"+\" + Integer.toString(b));\n\n locationOfAnswers = rand.nextInt(4);\n\n answers.clear();\n\n for(int i=0;i<4;i++){\n if(i == locationOfAnswers){\n answers.add(a+b);\n }else{\n int wrongAnswer = rand.nextInt(101);\n while(wrongAnswer == a+b){\n wrongAnswer = rand.nextInt(101);\n }\n answers.add(wrongAnswer);\n }\n }\n\n\n button0.setText(Integer.toString(answers.get(0)));\n button1.setText(Integer.toString(answers.get(1)));\n button2.setText(Integer.toString(answers.get(2)));\n button3.setText(Integer.toString(answers.get(3)));\n\n }", "title": "" }, { "docid": "a14db9081756fcfd6dee458c56922365", "score": "0.59457684", "text": "@Override\r\n\tpublic boolean inWinningState() {\n\t\tif(correct == guessWord.length()){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "5db89ce80f331424951eccdd454fb49d", "score": "0.5939364", "text": "public boolean isCorrectAnswer(String userAnswer) {\n\t\treturn super.isPossibleAnswer(userAnswer);\n\t}", "title": "" }, { "docid": "a0e8668806372807887312ca3a7ea934", "score": "0.59331256", "text": "public void addIncorrectAnswer(int answer){\n this.nrOfIncorrectAnswers = this.nrOfIncorrectAnswers + answer;\n }", "title": "" }, { "docid": "ea621a7a4e9a4180bf121462f9cde988", "score": "0.5928929", "text": "private static void addAnswer(ArrayList<String> selectedAnswers){\n Random random = new Random();\n int random1 = random.nextInt(4);\n if(random1 == 0 && noDuplicate(selectedAnswers, \"Choice A\"))\n selectedAnswers.add(\"Choice A\");\n else if(random1 == 1 && noDuplicate(selectedAnswers, \"Choice B\"))\n selectedAnswers.add(\"Choice B\");\n else if(random1 == 2 && noDuplicate(selectedAnswers, \"Choice C\"))\n selectedAnswers.add(\"Choice C\");\n else if(random1 == 3 && noDuplicate(selectedAnswers, \"Choice D\"))\n selectedAnswers.add(\"Choice D\");\n }", "title": "" }, { "docid": "b58e233c42638447307d20b1d2ff765a", "score": "0.59061927", "text": "private static String is_answer(String answer, int number, String team)\r\n {\r\n if (answer.equalsIgnoreCase(choice_word[number])) {\r\n if (team.startsWith(\"A\")) {\r\n score_a++;\r\n } else {\r\n score_b++;\r\n }\r\n return \"<ANSWERCORRECT>\";\r\n }\r\n return \"<ANSWERWRONG>\" + choice_word[number];\r\n }", "title": "" }, { "docid": "c60238373a024eb8c4fddb5bc17a24c8", "score": "0.5902838", "text": "public boolean checkWinner() {\n if (correct.size() == grid.size()) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "ebf9991ec18842f83313862aa3d3b512", "score": "0.5902706", "text": "public boolean checkSolution() {\n \t\tSudokuBoard solutions = solution;\n \n \t\tfor(int i = 0; i < 9; i++) {\n \t\t\tfor(int j = 0; j < 9; j++) {\n \t\t\t\tif(solutions.getNumber(i, j) != sudokuBoard.getNumber(i, j)) {\n \t\t\t\t\treturn false;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn true;\n \t}", "title": "" }, { "docid": "3d17652b15c9c838c4c976fa48302b41", "score": "0.59016573", "text": "public void checkIfSolved() {\n this.updateNumOfAvailableNumbers();\n if(this.availableNumbers.cardinality() == 1 && solved == false){\n this.number = this.availableNumbers.nextSetBit(0) + 1;\n this.cellClearSolvedNumberFromGroup();\n solved = true;\n }\n }", "title": "" }, { "docid": "fd602ddc078ec007f60bd486983352d0", "score": "0.5898015", "text": "public void setSolution() {\n \tfor (int i = 0; i < choices.length; i++) {\n \t\tif (choices[i].matches(answer[0])) {\n \t\t\tsolution[i] = 1;\n \t\t} else { \n \t\t\tsolution[i] = 0;\n \t\t}\n \t}\n }", "title": "" }, { "docid": "ba419eee63a3c6f66b569fba551c04ed", "score": "0.5894354", "text": "protected void checkCorrectAnswer(KeyEvent e){\n\n if(!player1Answered) {\n if (e.getKeyChar() == '1') {\n boolean correct = game.checkIfCorrect(currentQuestion, 1);\n if (correct) {\n if (!player2Answered) {\n game.getPlayers().get(0).setPoints(game.getPlayers().get(0).getPoints() + 1000);\n firstToAnswerCorrectly = 0;\n } else {\n game.getPlayers().get(0).setPoints(game.getPlayers().get(0).getPoints() + 500);\n }\n }\n player1Answered = true;\n }\n if (e.getKeyChar() == '2') {\n boolean correct = game.checkIfCorrect(currentQuestion, 2);\n if (correct) {\n if (!player2Answered) {\n game.getPlayers().get(0).setPoints(game.getPlayers().get(0).getPoints() + 1000);\n firstToAnswerCorrectly = 0;\n } else {\n game.getPlayers().get(0).setPoints(game.getPlayers().get(0).getPoints() + 500);\n }\n }\n player1Answered = true;\n }\n if (e.getKeyChar() == '3') {\n boolean correct = game.checkIfCorrect(currentQuestion, 3);\n if (correct) {\n if (!player2Answered) {\n game.getPlayers().get(0).setPoints(game.getPlayers().get(0).getPoints() + 1000);\n firstToAnswerCorrectly = 0;\n } else {\n game.getPlayers().get(0).setPoints(game.getPlayers().get(0).getPoints() + 500);\n }\n }\n player1Answered = true;\n }\n if (e.getKeyChar() == '4') {\n boolean correct = game.checkIfCorrect(currentQuestion, 4);\n if (correct) {\n if (!player2Answered) {\n game.getPlayers().get(0).setPoints(game.getPlayers().get(0).getPoints() + 1000);\n firstToAnswerCorrectly = 0;\n } else {\n game.getPlayers().get(0).setPoints(game.getPlayers().get(0).getPoints() + 500);\n }\n }\n player1Answered = true;\n }\n }\n if(!player2Answered) {\n if (e.getKeyChar() == 'v') {\n boolean correct = game.checkIfCorrect(currentQuestion, 1);\n if (correct) {\n if (!player1Answered) {\n game.getPlayers().get(1).setPoints(game.getPlayers().get(1).getPoints() + 1000);\n firstToAnswerCorrectly = 1;\n } else {\n game.getPlayers().get(1).setPoints(game.getPlayers().get(1).getPoints() + 500);\n }\n }\n player2Answered = true;\n }\n if (e.getKeyChar() == 'b') {\n boolean correct = game.checkIfCorrect(currentQuestion, 2);\n if (correct) {\n if (!player1Answered) {\n game.getPlayers().get(1).setPoints(game.getPlayers().get(1).getPoints() + 1000);\n firstToAnswerCorrectly = 1;\n } else {\n game.getPlayers().get(1).setPoints(game.getPlayers().get(1).getPoints() + 500);\n }\n }\n player2Answered = true;\n }\n if (e.getKeyChar() == 'n') {\n boolean correct = game.checkIfCorrect(currentQuestion, 3);\n if (correct) {\n if (!player1Answered) {\n game.getPlayers().get(1).setPoints(game.getPlayers().get(1).getPoints() + 1000);\n firstToAnswerCorrectly = 1;\n } else {\n game.getPlayers().get(1).setPoints(game.getPlayers().get(1).getPoints() + 500);\n }\n }\n player2Answered = true;\n }\n if (e.getKeyChar() == 'm') {\n boolean correct = game.checkIfCorrect(currentQuestion, 4);\n if (correct) {\n if (!player1Answered) {\n game.getPlayers().get(1).setPoints(game.getPlayers().get(1).getPoints() + 1000);\n firstToAnswerCorrectly = 1;\n } else {\n game.getPlayers().get(1).setPoints(game.getPlayers().get(1).getPoints() + 500);\n }\n }\n player2Answered = true;\n }\n }\n\n if(player1Answered&&player2Answered){\n mainFrame.removeKeyListener(listener);\n setCorrectAnswerButtonGreen();\n if(firstToAnswerCorrectly == 0){\n super.scoreLabel1.setForeground(new Color(0,150,90));\n }else{\n super.scoreLabel2.setForeground(new Color(0,150,90));\n }\n\n game.setQuestionsCount(game.getQuestionsCount()+1);\n timerGreen = new Timer();\n int delay = 0;\n int period=1000;\n intervalGreen=2;\n timerGreen.scheduleAtFixedRate(new TimerTask() {\n\n public void run() {\n checkForFinish();\n }\n },delay,period);\n }\n\n }", "title": "" }, { "docid": "d459ccf7e28da5f5ceae9a854c71e683", "score": "0.58620304", "text": "public void addCorrectAnswer(Answer a) {\r\n\t\tcorrect = a;\r\n\t}", "title": "" }, { "docid": "c2edbb811ac9aa6946d6af39528bd34c", "score": "0.5860312", "text": "private void fillAnswers() {\r\n while (scan.hasNext()) {\r\n String str = scan.next();\r\n if (str.equals(\"Yes\")) {\r\n answers.add(1);\r\n }\r\n else if (str.equals(\"No\")) {\r\n answers.add(0);\r\n }\r\n else {\r\n answers.add(-1);\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "4daded4b4a6d9711ec500dfb089b9bf3", "score": "0.58584476", "text": "@SuppressLint(\"SetTextI18n\")\n public void questionGenerator() {\n\n answers.clear();\n\n Random rand = new Random();\n\n int a = rand.nextInt(21);\n int b = rand.nextInt(21);\n\n locationOfCorrectAnswer = rand.nextInt(4);\n\n questionText.setText(Integer.toString(a) + \" + \" + Integer.toString(b));\n\n for (int i = 0 ; i < 4 ; i++) {\n if (i == locationOfCorrectAnswer) {\n answers.add(a+b);\n }else {\n int wrongAnswer = rand.nextInt(41);\n\n while(wrongAnswer == a+b) {\n wrongAnswer = rand.nextInt(41);\n }\n answers.add(wrongAnswer);\n }\n }\n\n option0.setText(Integer.toString(answers.get(0)));\n option1.setText(Integer.toString(answers.get(1)));\n option2.setText(Integer.toString(answers.get(2)));\n option3.setText(Integer.toString(answers.get(3)));\n }", "title": "" }, { "docid": "299890ba986ffbdea987bed754e9741f", "score": "0.5852512", "text": "private boolean validateAnswerQ7() {\r\n // check if one option is selected\r\n RadioButton rdbOption = (RadioButton) findViewById(R.id.rdb_opt7_1);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt7_2);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt7_3);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt7_4);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n // if we are here then no option has been selected\r\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.str_error1) + \" 7.\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }", "title": "" }, { "docid": "50e048968bf59c5f43600d46c89ee4ee", "score": "0.58517975", "text": "@Override\n\tpublic boolean esCorrecta(RespuestaPregunta respuesta) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6ecd04a2820e489815d08fd095692d8b", "score": "0.5848334", "text": "public boolean compareAnswers(String userAnswer, String correctAnswer) {\r\n return (userAnswer.equals(correctAnswer));\r\n }", "title": "" }, { "docid": "58221cf3d9e8f4915398b7e9d305dbcf", "score": "0.58391935", "text": "private boolean validateAnswerQ6() {\r\n // check if one option is selected\r\n RadioButton rdbOption = (RadioButton) findViewById(R.id.rdb_opt6_1);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt6_2);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt6_3);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt6_4);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n // if we are here then no option has been selected\r\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.str_error1) + \" 6.\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }", "title": "" }, { "docid": "860bcc4d16663f7f2875fe1dec47c99e", "score": "0.5815399", "text": "public boolean ask(Question question, Scanner input) {\n\t\tString userConfirm;\n\n\t\tSystem.out.println(question.getQuestion());\n\t\tSystem.out.print(\"> \");\n\t\tString answer = input.nextLine();\n\t\tboolean foundAnswer = false;\n\t\tfor (int i = 0;i<question.getAnswers().size();i++) {\n\t\t\tif(answer.equals(question.getAnswers().get(i))) \n\t\t\t\tfoundAnswer = true;\n\t\t}\n\t\tif(foundAnswer) \n\t\t\treturn true;\n\t\telse {\n\t\t\tfor(int i = 0;i<question.getAnswers().size();i++) {\n\t\t\t\tSystem.out.println(question.getAnswers().get(i));\n\t\t\t}\n\t\t\tSystem.out.print(\"Confirm (1-Wrong,2-Actually Correct): \");\n\t\t\tuserConfirm = input.nextLine();\n\t\t\tif(userConfirm.equals(\"2\")) {\n\t\t\t\treturn true;\n\t\t\t} else return false;\n\t\t}\n\t}", "title": "" }, { "docid": "57aa9e2c035cee4ccf0acca7ea257021", "score": "0.58146733", "text": "public static boolean checkIfAnswerExists(Factor factor) {\r\n\t\tString factor_name = factor.name;\r\n\t\tint size= myQueryValues.size();\r\n\t\tint counter = 0;\r\n\t\tfactor_name = Removebackround(factor_name);\r\n\t\tif(factor_name.contains(\",\")) {\r\n\t\t\tString[] temp = factor_name.split(\",\");\r\n\t\t\tfor(int i = 0; i < temp.length; i++) {\r\n\t\t\t if(myQueryValues.get(temp[i]) != null) \r\n\t\t\t\t counter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(size <= 1) \r\n\t\t\treturn false;\r\n\t\tif(counter == size) \r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "72b7d6c9ba8be771489dab4e9095e2ab", "score": "0.58008605", "text": "private static boolean noDuplicate(ArrayList<String> selectedAnswer, String str)\n {\n boolean noRepeat = true;\n for(int i=0; i<selectedAnswer.size();i++)\n {\n if(selectedAnswer.get(i).equals(str))\n noRepeat = false;\n }\n return noRepeat;\n }", "title": "" }, { "docid": "43c476e3fe16eb14937dd4ffe98422f9", "score": "0.57983875", "text": "boolean hasQuestion();", "title": "" }, { "docid": "f7f4665e87a77e8fb74ec54599b1ed98", "score": "0.57910836", "text": "public boolean isCorrect(int idx, String userGuess) {\n return userGuess.equals(getWord(idx));\n }", "title": "" }, { "docid": "d5c61d516a394e65b5df122c08350955", "score": "0.57697165", "text": "public boolean checkAnswer(int answer){\n // + - * /\n switch(mMathType){\n case \"+\":\n if(answer == mFirstNumber+mSecondNumber){\n return true;\n }\n break;\n case \"-\":\n if(answer == mFirstNumber-mSecondNumber){\n return true;\n }\n break;\n case \"×\":\n if(answer == mFirstNumber*mSecondNumber){\n return true;\n }\n break;\n case \"÷\":\n if(answer == mFirstNumber/mSecondNumber){\n return true;\n }\n break;\n default:\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "e30e29fc322063c20102224821cf9260", "score": "0.57534593", "text": "public boolean isCorrected() {\n\t\treturn !isNoMatch() && !isNoTypo();\n\t}", "title": "" }, { "docid": "8ea0f5cda18ec28cf00e3cffdaec1619", "score": "0.57439584", "text": "public boolean isValidAnswer(String trialAnswer) {\n\t\tfor (String ans : validAnswers) {\n\t\t\tif (ans.equalsIgnoreCase(trialAnswer)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2e0a2510b9f9dbc674a8fb4a0a9447f3", "score": "0.5743409", "text": "public void check() {\r\n int repeated = this.next.getRepeated();\r\n int score = this.next.getScore();\r\n System.out.println(\"check() - started / checkWord - \" + this.checkWord + \" / next.getRussian() - \" + this.next.getRussian());\r\n if (next.getRussian().equals(checkWord)) {\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correct!\\n+1\", null));\r\n wordService.alterStatistics(this.next.getWord_id(), repeated + 1, score + 1);\r\n System.out.println(\"true\");\r\n } else {\r\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Wrong!\\n-1\", null));\r\n wordService.alterStatistics(this.next.getWord_id(), repeated + 1, score);\r\n System.out.println(\"false\");\r\n }\r\n\r\n System.out.println(\"check() - finished\");\r\n }", "title": "" }, { "docid": "4631b14aa842d48f5dc8f7ea7fee8254", "score": "0.5735383", "text": "private void allQuestionsCheck() {\n checkQuestion1();\n checkQuestion2();\n checkQuestion3();\n checkQuestion4();\n checkQuestion5();\n }", "title": "" }, { "docid": "735f2505f42eb136a7838a839fdb3fa3", "score": "0.57303834", "text": "public static void questionGenerator() {\n int i;\n int rand1 = 0;\n int rand2 = 0;\n int level;\n int answer;\n int totalCorrect = 0;\n int type;\n Scanner scnr = new Scanner(System.in);\n SecureRandom randNum = new SecureRandom();\n int[] responses = new int[10];\n for (i = 0; i < responses.length; i++) {\n type = problemType();\n switch(type) {\n case 1:\n level = selectDifficulty();\n for (i = 0; i < responses.length; i++) {\n switch (level) {\n case 1:\n rand1 = randNum.nextInt(9);\n rand2 = randNum.nextInt(9);\n break;\n case 2:\n rand1 = randNum.nextInt(99);\n rand2 = randNum.nextInt(99);\n break;\n case 3:\n rand1 = randNum.nextInt(999);\n rand2 = randNum.nextInt(999);\n break;\n case 4:\n rand1 = randNum.nextInt(9999);\n rand2 = randNum.nextInt(9999);\n break;\n }// ends switch(level)\n System.out.println(\"\\nCan you solve the problem?\\n\" + rand1 + \" + \" + rand2);\n System.out.println(\"What is the answer?: \");\n answer = scnr.nextInt();\n responses[i] = answer;\n\n if (answer == rand1 + rand2) {\n correctResponse();\n totalCorrect++;\n } //ends if\n\n else {\n incorrectResponse();\n }//ends else\n\n if (i == 9) {\n break;\n }//ends if\n }//ends case 1 for loop\n break;\n case 2:\n level = selectDifficulty();\n for (i = 0; i < responses.length; i++) {\n switch (level) {\n case 1:\n rand1 = randNum.nextInt(9);\n rand2 = randNum.nextInt(9);\n break;\n case 2:\n rand1 = randNum.nextInt(99);\n rand2 = randNum.nextInt(99);\n break;\n case 3:\n rand1 = randNum.nextInt(999);\n rand2 = randNum.nextInt(999);\n break;\n case 4:\n rand1 = randNum.nextInt(9999);\n rand2 = randNum.nextInt(9999);\n break;\n }// ends switch(level)\n System.out.println(\"\\nCan you solve the problem?\\n\" + rand1 + \" * \" + rand2);\n System.out.println(\"What is the answer?: \");\n answer = scnr.nextInt();\n responses[i] = answer;\n\n if (answer == rand1 * rand2) {\n correctResponse();\n totalCorrect++;\n } //ends if\n\n else {\n incorrectResponse();\n }//ends else\n\n if (i == 9) {\n break;\n }//ends if\n }//ends case 2 for loop\n break;\n case 3:\n level = selectDifficulty();\n for (i = 0; i < responses.length; i++) {\n switch (level) {\n case 1:\n rand1 = randNum.nextInt(9);\n rand2 = randNum.nextInt(9);\n break;\n case 2:\n rand1 = randNum.nextInt(99);\n rand2 = randNum.nextInt(99);\n break;\n case 3:\n rand1 = randNum.nextInt(999);\n rand2 = randNum.nextInt(999);\n break;\n case 4:\n rand1 = randNum.nextInt(9999);\n rand2 = randNum.nextInt(9999);\n break;\n }// ends switch(level)\n System.out.println(\"\\nCan you solve the problem?\\n\" + rand1 + \" - \" + rand2);\n System.out.println(\"What is the answer?: \");\n answer = scnr.nextInt();\n responses[i] = answer;\n\n if (answer == rand1 - rand2) {\n correctResponse();\n totalCorrect++;\n } //ends if\n\n else {\n incorrectResponse();\n }//ends else\n\n if (i == 9) {\n break;\n }//ends if\n }//ends case 3 for loop\n break;\n case 4:\n level = selectDifficulty();\n for (i = 0; i < responses.length; i++) {\n switch (level) {\n case 1:\n rand1 = randNum.nextInt(9);\n rand2 = randNum.nextInt(9);\n break;\n case 2:\n rand1 = randNum.nextInt(99);\n rand2 = randNum.nextInt(99);\n break;\n case 3:\n rand1 = randNum.nextInt(999);\n rand2 = randNum.nextInt(999);\n break;\n case 4:\n rand1 = randNum.nextInt(9999);\n rand2 = randNum.nextInt(9999);\n break;\n }// ends switch(level)\n System.out.println(\"\\nCan you solve the problem?\\n\" + rand1 + \" / \" + rand2);\n System.out.println(\"What is the answer?: \");\n answer = scnr.nextInt();\n responses[i] = answer;\n\n if (answer == rand1 / rand2) {\n correctResponse();\n totalCorrect++;\n }//ends if\n\n else {\n incorrectResponse();\n }//ends else\n\n if (i == 9) {\n break;\n }//ends if\n }//ends case 4 for loop\n break;\n case 5:\n System.out.println(\"\\nMix is under development.\\n\");\n break;\n }// ends switch(type)\n grade(totalCorrect);\n }//ends for loop\n\n }", "title": "" }, { "docid": "695326a4dc9c7dbcec9f70671e6ea2f0", "score": "0.57278323", "text": "public static void randomizeAnswers(Question q) {\n \n ArrayList<String> ansList = new ArrayList<String>();\n ansList.add(Double.toString(q.rightAnswer));\n ansList.add(Double.toString(q.wrongAnswer1));\n ansList.add(Double.toString(q.wrongAnswer2));\n ansList.add(Double.toString(q.wrongAnswer3));\n //inserts all answer possibilities into an arraylist to be called then removed\n \n Random rP = new Random();\n \n for (int i = 0; i < orderedAnsList.length; i++) {\n int currRand = rP.nextInt(4-i); // gets a random index for ansList based on its current length\n orderedAnsList[i] = Float.toString(Math.round(10*Double.parseDouble(ansList.get(currRand)))/10f); //adds the answer possibilty from the index to an ordered array of answers\n //System.out.println(orderedAnsList[i]);\n if (ansList.get(currRand).equalsIgnoreCase(Double.toString(q.rightAnswer))) {\n answerIndex = i; //saves the actual correct answer's index for future reference\n }\n ansList.remove(currRand); //takes out that answer possibility from further inspection\n \n //System.out.println(currRand);\n //System.out.println(orderedAnsList[i] + \" \" + currRand);\n \n }\n \n \n currentQuestion = q.question; // updates the current question that is being referenced\n \n \n }", "title": "" }, { "docid": "97bb999d779f91cdc3b9e7b9a631c8d0", "score": "0.57251567", "text": "public void setCorrectAnswer(String answer) {\n correctAnswer = answer;\n }", "title": "" }, { "docid": "b79550ecdce6cb54e7ce2d746fe02c56", "score": "0.5715795", "text": "public void setAnswer(String [] answer) {\n this.answer = answer;\n this.setSolution();\n }", "title": "" }, { "docid": "73998da31c25fc3d1aeff1d8ac20a5ae", "score": "0.570686", "text": "private boolean validateAnswerQ3() {\r\n // check if one option is selected\r\n RadioButton rdbOption = (RadioButton) findViewById(R.id.rdb_opt3_1);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt3_2);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt3_3);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt3_4);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n // if we are here then no option has been selected\r\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.str_error1) + \" 3.\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }", "title": "" }, { "docid": "9eb677173231082495f547890145baf6", "score": "0.57059133", "text": "public boolean isCorrect() {\n\t\tif (correct == true)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "ec4cb3398c18accff5b183d483e5ec46", "score": "0.56844527", "text": "private void updateListWithCorrectAnswers() {\n // 20% of random words should be correct answers\n int noOfEntryToAddForCorrect = mRandomWords.length / 5;\n int newSize = mRandomWords.length + noOfEntryToAddForCorrect;\n String[] newRandomStr = new String[newSize];\n for (int i = 0; i < mRandomWords.length; i++) {\n newRandomStr[i] = mRandomWords[i];\n }\n int indexForAdding = mRandomWords.length;\n for (int i = 0; i < noOfEntryToAddForCorrect; i++) {\n int randomIndex = Util.getRandomNumber(0, mRandomWords.length - 1);\n insertCorrectAnswer(newRandomStr, randomIndex, indexForAdding++);\n }\n mCurrentRandomWordIndex = 0;\n mRandomWords = newRandomStr;\n }", "title": "" }, { "docid": "e62524073a43c5b3cb7cd11e76abb6f7", "score": "0.5672386", "text": "private boolean validateAnswerQ5() {\r\n // check if one option is selected\r\n RadioButton rdbOption = (RadioButton) findViewById(R.id.rdb_opt5_1);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt5_2);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt5_3);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n rdbOption = (RadioButton) findViewById(R.id.rdb_opt5_4);\r\n if (rdbOption.isChecked()) {\r\n return true;\r\n }\r\n\r\n // if we are here then no option has been selected\r\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.str_error1) + \" 5.\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }", "title": "" }, { "docid": "7c0600ff6dc676abd183e090e499d942", "score": "0.5668558", "text": "private boolean validateAnswerQ1() {\r\n int qtySelected = 0;\r\n\r\n // count the selected options\r\n CheckBox chkOption = (CheckBox) findViewById(R.id.chk_opt1_1);\r\n if (chkOption.isChecked()) {\r\n qtySelected++;\r\n }\r\n\r\n chkOption = (CheckBox) findViewById(R.id.chk_opt1_2);\r\n if (chkOption.isChecked()) {\r\n qtySelected++;\r\n }\r\n\r\n chkOption = (CheckBox) findViewById(R.id.chk_opt1_3);\r\n if (chkOption.isChecked()) {\r\n qtySelected++;\r\n }\r\n\r\n chkOption = (CheckBox) findViewById(R.id.chk_opt1_4);\r\n if (chkOption.isChecked()) {\r\n qtySelected++;\r\n }\r\n\r\n // check the quantity of selected options\r\n if (qtySelected != 2) {\r\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.str_error2) + \" 1.\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }\r\n else {\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "4dcf777a22f9d30869226552f0bd12ee", "score": "0.5664209", "text": "public MultiplePossibleAnswer(String answer) {\n\t\tsuper(answer);\n\t}", "title": "" }, { "docid": "e7a6c67f350caaec241c02ce583c14e7", "score": "0.565257", "text": "public boolean completeGuess(){\n if(secretWord.equals(displayWord)){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "bb759818d61fd4be2c11ec0239419d9b", "score": "0.5640072", "text": "@SuppressLint(\"NonConstantResourceId\")\n private boolean getPatientAnswer(int id) {\n switch (id) {\n case R.id.stroopTrueButton:\n correctAnswers++;\n return true;\n case R.id.stroopFalseButton:\n wrongAnswers++;\n return false;\n default:\n break;\n }\n return false;\n }", "title": "" }, { "docid": "0d09889d009eeb012e619759771396f1", "score": "0.5639868", "text": "private void correctAnswerGiven() {\n attempts = -1;\n\n // Resetting the espeak speed\n TTSUtilities.revertReadingSpeedToDefault();\n // Speaking Correct\n TTSUtilities.speak(\"Correct!\");\n\n Notification.smallInformationPopup(\"Correct\", \"Correct!\", \"You are correct!\");\n }", "title": "" }, { "docid": "3b239fc99baa88eaba23a3ecddae2ceb", "score": "0.5633543", "text": "private void checkIndexValue() {\n\t\tif (i > 50) {\r\n\t\t\tshowDialog();\r\n\t\t\tQuestionActivity.correctAnswers = 0;\r\n\t\t\ti = 1;\r\n\r\n\t\t}\r\n\t\tsetQuestion(i);\r\n\t\tsetAnswers(i);\r\n\t}", "title": "" }, { "docid": "0fed0aaf93f01ab6afa14d17188415ac", "score": "0.563099", "text": "public void generateQuestion() {\n\n Random rand = new Random();\n\n int a = rand.nextInt(21);\n int b = rand.nextInt(21);\n int incorrectAnswer;\n\n sumTextView.setText(Integer.toString(a)+ \"+\" + Integer.toString(b));\n\n // 4 is currently the number of possible answer locations\n locationOfCorrectAnswer = rand.nextInt(4);\n\n // clear previous answer entries if we have them\n if ( answers.size() > 0 )\n answers.clear();\n\n // generate the answers\n\n for (int i= 0; i < 4; i++) {\n // place the correct answer\n if (i == locationOfCorrectAnswer) {\n answers.add( a + b );\n }\n else {\n // setting up incorrect answers\n incorrectAnswer = rand.nextInt(41);\n\n // work around so we can't have the right answer twice\n while (incorrectAnswer == a+b) {\n incorrectAnswer = rand.nextInt(41);\n }\n // add the incorrect answer to our answers list\n answers.add(incorrectAnswer);\n }\n }\n\n // loop through all the answer buttons and set their text accordingly.\n for (int i=0; i < 4; i++ )\n answerButtons[i].setText(Integer.toString(answers.get(i)));\n //Log.i(\"answers\",Integer.toString(answers.get(i)));\n }", "title": "" }, { "docid": "a2a82d69f17a0e0e959e5b3d9a49ea4f", "score": "0.56253797", "text": "private boolean kompPohoduvOk(){\n ArrayList<String> possibleWords = getPossibleWords(); \n if(possibleWords.size() > 0 && !checkIfWordIsCompleted(theWord.toString()))\n return true;\n else return false;\n }", "title": "" }, { "docid": "9a54badbea2b576736fcec3b68d84bef", "score": "0.5620458", "text": "private void checkAnswer(boolean userPressedTrue) {\n final boolean answer = (answers[currentIndex] == 1);\n\n int messageResourceId = 0;\n\n if (isCheater){\n if (userPressedTrue == answer){\n // Cheating is wrong\n messageResourceId = R.string.toast_correct_judgment;\n } else{\n // You do not cheat very well. Stick to guessing\n messageResourceId = R.string.toast_incorrect_judgment;\n }\n } else{\n if (userPressedTrue == answer){\n // correct!\n messageResourceId = R.string.toast_correct;\n } else{\n // incorrect\n messageResourceId = R.string.toast_incorrect;\n }\n }\n\n Toast.makeText(this, messageResourceId, Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "5fa3c25f044577f840d39ee39afe849e", "score": "0.56190664", "text": "protected void generateAnswers() {\n randomQuestion.generateAnswers();\n }", "title": "" }, { "docid": "a7439d16b38033cc4c83c6ef400ad3dd", "score": "0.5617718", "text": "@Override\n\tpublic int getHint() {\n\t\tint numAvail = 0, lastAvail = 0;\n\t\tfor(int ii = 0; ii < dqSolutionLength; ii++) {\n\t\t\tif(answerArr[ii] != dqSolution[ii]) {\n\t\t\t\tnumAvail++;\n\t\t\t\tlastAvail = ii;\n\t\t\t}\n\t\t}\n\t\tLog.d(\"game\", \"numAvail: \"+numAvail);\n\t\t\n\t\t//shouldn't happen, but just in case\n\t\tif(numAvail == 0) {\n\t\t\tLog.d(\"game\", \"Oops!\");\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tif(numAvail == 1) {\n\t\t\tanswerArr[lastAvail] = dqSolution[lastAvail];\n\t\t\treturn lastAvail;\n\t\t}\n\t\t\n\t\t//get a random number \n\t\tRandom rand = new Random();\n\t\tint hint = rand.nextInt(numAvail);\n\t\tLog.d(\"game\", \"hint: \"+hint);\n\t\tint jj = -1;\n\t\t//Go back through the arrays, counting through the\n\t\t//available indices until we get to the hint'th mismatching element\n\t\tfor(int ii = 0; ii < answerArr.length; ii++) {\n\t\t\tif(answerArr[ii] != dqSolution[ii]) {\n\t\t\t\tjj++;\n\t\t\t}\n\n\t\t\tif(jj == hint) {\n\t\t\t\tanswerArr[ii] = dqSolution[ii];\n\t\t\t\treturn ii;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "63f0c99ce9fda1099eed96698266d978", "score": "0.56074214", "text": "public void checkUserAnswers(EditText editText, String answerString) {\n if (editText.getText().toString().equalsIgnoreCase(answerString)) {\n correctnessList.add(true);\n } else\n correctnessList.add(false);\n }", "title": "" }, { "docid": "355bb0e5607911bda3d0d08be9edfe79", "score": "0.55883825", "text": "boolean isRepeat(String question) {\r\n\t\tString answer;\r\n\t\tSystem.out.print(question);\r\n\t\tanswer = sc.nextLine();\r\n\t\tanswer = answer.toLowerCase().substring(0, 1);\r\n\t\tif (answer.equals(\"y\")) return true;\r\n\t\telse return false;\r\n\t}", "title": "" }, { "docid": "f4652df1783fd9bc971c035449e501e0", "score": "0.5587471", "text": "public static boolean isWordGuessed(int[] guesses) {\n \tint temp=0;\n \tfor(int i = 0; i<guesses.length; i++) {\n \t\tif(guesses[i] == 1) {\n \t\t\ttemp++;\n \t\t}\n \t}\n \tif(temp == guesses.length) {\n \t\treturn true;\n \t}\n \telse {\n \t\treturn false;\n \t}\n }", "title": "" }, { "docid": "4e834a66c0bdf5a51afe0a33e3c00bc4", "score": "0.55872345", "text": "public static int[] getCorrectAndIncorrectSolutionCount(ShortAnswerQuestion shortAnswerQuestion, ShortAnswerSubmittedAnswer shortAnswerAnswer) {\n boolean foundCorrectSolution;\n int correctSolutionsCount = 0;\n int incorrectSolutionsCount = 0;\n List<ShortAnswerSolution> notUsedSolutions = new ArrayList<>(shortAnswerQuestion.getSolutions());\n\n // iterate through each spot and compare its correct solutions with the submitted texts\n for (ShortAnswerSpot spot : shortAnswerQuestion.getSpots()) {\n if (Boolean.TRUE.equals(spot.isInvalid())) {\n correctSolutionsCount++;\n continue;\n }\n\n Set<ShortAnswerSolution> solutionsForSpot = shortAnswerQuestion.getCorrectSolutionForSpot(spot);\n ShortAnswerSubmittedText submittedTextForSpot = shortAnswerAnswer.getSubmittedTextForSpot(spot);\n foundCorrectSolution = false;\n\n if (submittedTextForSpot != null) {\n submittedTextForSpot.setIsCorrect(false);\n for (ShortAnswerSolution solution : solutionsForSpot) {\n if (submittedTextForSpot.isSubmittedTextCorrect(submittedTextForSpot.getText(), solution.getText()) && notUsedSolutions.contains(solution)) {\n notUsedSolutions.remove(solution);\n submittedTextForSpot.setIsCorrect(true);\n correctSolutionsCount++;\n foundCorrectSolution = true;\n break;\n }\n }\n if (!foundCorrectSolution) {\n incorrectSolutionsCount++;\n }\n }\n }\n return new int[] { correctSolutionsCount, incorrectSolutionsCount };\n }", "title": "" }, { "docid": "808417598eb2b172c9e6ba2618863d8b", "score": "0.5585702", "text": "public void initialCheck(String[] words){\r\n wordsLength=words.length;\r\n\r\n System.out.println();\r\n for(int i=0;i<wordsLength;i++){\r\n if(!dictionary.contains(words[i])) wrongWords.add(words[i]);\r\n } //end for\r\n if (!wrongWords.isEmpty()) {\r\n System.out.println(\"Mistakes have been made!\");\r\n printIncorrect();\r\n } //end if\r\n if (wrongWords.isEmpty()) {\r\n System.out.println(\"\\n\\nMove along. End of Program.\");\r\n } //end if\r\n }", "title": "" }, { "docid": "11324589c404e5c35ff10b41466c4218", "score": "0.55819553", "text": "public boolean isCorrect() {\n return correct;\n }", "title": "" }, { "docid": "141ab1eca7290a842099f3bcd3d3d07d", "score": "0.55809385", "text": "boolean validQuiz();", "title": "" }, { "docid": "ddf3b0257ff9f2539d8f7032798188cd", "score": "0.5580601", "text": "public void MastermindDuel() {\r\n String code;\r\n\r\n int[] codeEntre = new int[solutionLength];\r\n int[] solution = new int[solutionLength];\r\n int count = 0;\r\n int i;\r\n Random r = new Random();\r\n for (i = 0; i < solutionLength; i++) {\r\n solution[i] = r.nextInt(numberUse + 1);\r\n\r\n }\r\n\r\n if (dev == true)\r\n System.out.println(Arrays.toString(solution));\r\n List<Integer> goodMatches = new ArrayList<>();\r\n List<Integer> approximativeMatches = new ArrayList<>();\r\n List<Integer> wrongNumber = new ArrayList<>();\r\n boolean playerWin = false;\r\n\r\n /**\r\n * variables pour l'ia\r\n */\r\n String codeIA = \"\";\r\n int MAXIA = 9;\r\n int[] codeEntreIA = new int[solutionLength];\r\n int[] solutionIA = new int[solutionLength];\r\n int countIA = 0;\r\n boolean IAWin = false;\r\n System.out.println(\"Veuillez rentrez une combinaison de \" + solutionLength + \" chiffres que L'IA doit deviner \");\r\n System.out.println(\"Le code sera compris de chiffres entre 0 et \" + numberUse);\r\n String myCombinaisonIA = scanner.next();\r\n for (i = 0; i < solutionLength; i++) {\r\n solutionIA[i] = myCombinaisonIA.charAt(i);\r\n }\r\n\r\n List<Integer> goodMatchesIA = new ArrayList<>();\r\n List<Integer> approximativeMatchesIA = new ArrayList<>();\r\n List<Integer> wrongNumberIA = new ArrayList<>();\r\n do {\r\n System.out.println(\"Veuillez rentrez une combinaison de chiffres\");\r\n code = Integer.toString(scanner.nextInt());\r\n\r\n for (i = 0; i < solutionLength; i++) {\r\n\r\n codeEntre[i] = Integer.parseInt(String.valueOf(code.charAt(i)));\r\n if (codeEntre[i] == solution[i]) {\r\n goodMatches.add(i);\r\n } else {\r\n boolean foundMatch = false;\r\n for (int j = 0; j < solutionLength; j++) {\r\n if (codeEntre[i] == solution[j] && i != j && !goodMatches.contains(j)) {\r\n approximativeMatches.add(i);\r\n foundMatch = true;\r\n break;\r\n }\r\n }\r\n if (!foundMatch) wrongNumber.add(i);\r\n }\r\n }\r\n count++;\r\n if (goodMatches.size() == solutionLength) {\r\n System.out.println(\"Vous avez tout trouvé\");\r\n playerWin = true;\r\n } else {\r\n System.out.println(\"Il y a \" + goodMatches.size() + \"bons chiffres bien placés et \"\r\n + approximativeMatches.size() + \"bon chiffre mal placés et \" + wrongNumber.size()\r\n + \" mauvais chiffre\");\r\n }\r\n goodMatches.clear();\r\n approximativeMatches.clear();\r\n wrongNumber.clear();\r\n System.out.println(\"L'IA va jouer\");\r\n scanner.nextLine();\r\n codeIA = generateIACombinaison(codeIA, goodMatchesIA, MAXIA, solutionLength);\r\n System.out.println(\"Combinaison de l'IA \" + codeIA);\r\n\r\n goodMatchesIA.clear();\r\n approximativeMatchesIA.clear();\r\n wrongNumberIA.clear();\r\n if (dev == true)\r\n System.out.println(myCombinaisonIA);\r\n for (i = 0; i < solutionLength; i++) {\r\n\r\n if (codeIA.charAt(i) == solutionIA[i]) {\r\n goodMatchesIA.add(i);\r\n } else {\r\n boolean foundMatchIA = false;\r\n for (int j = 0; j < solutionLength; j++) {\r\n if (codeEntreIA[i] == solutionIA[j] && i != j && !goodMatchesIA.contains(j)) {\r\n approximativeMatchesIA.add(i);\r\n foundMatchIA = true;\r\n break;\r\n }\r\n }\r\n if (!foundMatchIA) wrongNumberIA.add(i);\r\n }\r\n }\r\n countIA++;\r\n if (goodMatchesIA.size() == solutionLength)\r\n System.out.println(\"Vous avez tout trouvé\");\r\n else {\r\n System.out.println(\"Il y a \" + goodMatchesIA.size() + \"bons chiffres bien placés et \"\r\n + approximativeMatchesIA.size() + \"bon chiffre mal placés et \" + wrongNumberIA.size()\r\n + \" mauvais chiffre\");\r\n }\r\n } while (playerWin == false && count <= maxTry && IAWin == false && countIA <= maxTry);\r\n if (!Arrays.toString(codeEntreIA).equals(Arrays.toString(solutionIA))) {\r\n System.out.println(\"l'IA n'a pas trouvé le code\");\r\n }\r\n if (!Arrays.toString(codeEntre).equals(Arrays.toString(solution))) {\r\n System.out.println(\"vous n'avez pas trouvé le code\");\r\n }\r\n }", "title": "" }, { "docid": "ab1bc79a817daa69bbf8d9a3f4a40577", "score": "0.55672723", "text": "@Test\n\tpublic void testAccusation()\n\t{\n\t\tSolution solution = game.getSolution();\n\t\t\n\t\tArrayList<Player> players = game.getPlayers();\n\t\t\n\t\tfor (Player p : players)\n\t\t{\n\t\t\tAssert.assertFalse(p.containsCard(solution.person.getName()));\n\t\t\tAssert.assertFalse(p.containsCard(solution.weapon.getName()));\n\t\t\tAssert.assertFalse(p.containsCard(solution.room.getName()));\n\t\t}\n\t\tAssert.assertTrue(game.getDeck().contains(solution.person));\n\t\tAssert.assertTrue(game.getDeck().contains(solution.weapon));\n\t\tAssert.assertTrue(game.getDeck().contains(solution.room));\n\t\t\n\t\tboolean correct;\n\t\t// Player accusation correct\n\t\tgame.setSolution(\"The Hacker\", \"SQL Injection\", \"Ball Room\");\n\t\tPlayer p = new HumanPlayer();\n\t\tcorrect = game.checkAccusation(p.makeAccusation(\"The Hacker\", \"SQL Injection\", \"Ball Room\"));\n\t\tAssert.assertTrue(correct);\n\t\t// wrong person\n\t\tcorrect = game.checkAccusation(p.makeAccusation(\"Mr. Cuddles\", \"SQL Injection\", \"Ball Room\"));\n\t\tAssert.assertFalse(correct);\n\t\t\n\t\t// wrong weapon\n\t\tcorrect = game.checkAccusation(p.makeAccusation(\"The Hacker\", \"Shrodinger's Cat\", \"Ball Room\"));\n\t\tAssert.assertFalse(correct);\n\t\t\n\t\t// wrong room\n\t\tcorrect = game.checkAccusation(p.makeAccusation(\"The Hacker\", \"SQL Injection\", \"Kitchen\"));\n\t\tAssert.assertFalse(correct);\n\t\t\n\t}", "title": "" }, { "docid": "3b4168887262ddc59e5436c49867b544", "score": "0.55652285", "text": "public boolean isSolved(){\n for(int i = 0; i < size; ++i){\n for(int j = 0; j < size; ++j){\n if(puzzle[i][j][0].equals(\"-\")){\n return false;\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "69ebad2b48471763e78eae7ad1f41eda", "score": "0.5562154", "text": "private void incorrectAnswerGiven() {\n // Decrementing the number of attempts\n attempts--;\n\n // Resetting the reading speed of espeak\n TTSUtilities.revertReadingSpeedToDefault();\n // Context string which is set depending on the number of attempts\n StringBuilder contentText = new StringBuilder();\n\n // If the player has more than 1 attempts left\n if (attempts>1) {\n // Set the context to this and speak it\n contentText.append(\"You have \").append(attempts).append(\" attempts left!\");\n TTSUtilities.speak(contentText.toString());\n }\n\n // Get all the answers for this question and show their first letter as a hint\n StringBuilder answers = new StringBuilder();\n\n // If the player is on their last attempt\n if (attempts==1) {\n // Set the context to this and speak it\n contentText.append(\"You have \").append(attempts).append(\" attempt left!\");\n TTSUtilities.speak(contentText.toString());\n\n // If there are multiple answers\n if (answer.length>1) {\n for(int i=0;i<answer.length;i++) {\n // If its not a number then add it\n if(!isNumeric(answer[i])){\n answers.append(AskQuestionUtilities.answerCleanUp(answer[i]).charAt(0));\n\n // If its not the last answer then add or to it\n if(i!=answer.length-1){\n answers.append(\" or \");\n }\n }\n }\n }\n else {\n // Otherwise if there is only one answer then just add the single letter\n answers.append(answer[0].replaceAll(\"`\", \"\").charAt(0));\n }\n\n // Display it\n hintLabel.setText(\"Hint: the first letter of the answer is \" + answers.toString());\n }\n\n // If the player has used up all their attempts\n if (attempts==0) {\n if (answer.length>1) {\n for(int i=0;i<answer.length;i++) {\n answers.append(answer[i]);\n if(i!=answer.length-1){\n answers.append(\" or \");\n }\n }\n }\n else {\n answers.append(answer[0]);\n }\n\n // Display the correct answers and say they have run out of attempts and speak it\n contentText.append(\"You have run out of attempts!\")\n .append(\"\\n\\nThe answer to the question \\n\\n\")\n .append(question)\n .append(\"\\n\\nwas: \")\n .append(qType.substring(0,1).toUpperCase()).append(qType.substring(1)).append(\" \")\n .append(answers.toString());\n TTSUtilities.speak(contentText.toString());\n }\n\n Notification.largeInformationPopup(\"Incorrect\", \"Incorrect!\", contentText.toString().replaceAll(\"`\", \"\"));\n }", "title": "" }, { "docid": "f2aa7d5715e04a5999053babe8d62961", "score": "0.5561169", "text": "private void questionOne() {\r\n boolean q1a1 = ((CheckBox) findViewById(R.id.q1a1)).isChecked();\r\n boolean q1a2 = ((CheckBox) findViewById(R.id.q1a2)).isChecked();\r\n boolean q1a3 = ((CheckBox) findViewById(R.id.q1a3)).isChecked();\r\n boolean q1a4 = ((CheckBox) findViewById(R.id.q1a4)).isChecked();\r\n\r\n if (q1a1 && q1a2 && q1a3 && !q1a4) {\r\n score = score + 1;\r\n }\r\n return;\r\n }", "title": "" }, { "docid": "ba5ac45d3e73863143ae5d0d38c627e7", "score": "0.5553116", "text": "private boolean validateAnswerQ2() {\r\n // count the selected options\r\n EditText txtAnswer = (EditText) findViewById(R.id.txt_opt2_1);\r\n if (txtAnswer.getText().toString().isEmpty()) {\r\n Toast.makeText(getApplicationContext(), getResources().getString(R.string.str_error_text2) + \" 2.\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }\r\n else {\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "eea1d786f01f68d3dee948e5680bc01a", "score": "0.5551457", "text": "public boolean isCorrect(String input)\n\t{\n\t\tfor(String answer: answers)\n\t\t{\n\t\t\tif(answer.equalsIgnoreCase(input))\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" } ]
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "ac7349e340198e4ee2b263ee5c8b25d2", "score": "0.0", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_drill_movie, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }", "title": "" } ]
[ { "docid": "ce0e43779394d3f48ae8fe6576e51b7c", "score": "0.6743862", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.shangcheng_fragment, container, false);}", "title": "" }, { "docid": "04f1b870f539e41763f3b77168f50cff", "score": "0.67355025", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qq2, container, false);\n }", "title": "" }, { "docid": "8cf2cc3cf1376d96a878dfc581219ce6", "score": "0.67139804", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_send_friend_request_list, container, false);\n }", "title": "" }, { "docid": "208d6e6aeb11943b8bae34d705513aa3", "score": "0.6709747", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.alarm_set_fragment, container, false);\n }", "title": "" }, { "docid": "11d47bf8d89baf8aa848aecb48148dca", "score": "0.6694564", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.cadastro_individual2, container, false);\n }", "title": "" }, { "docid": "d5f6d0961b6bf78317da0aa5432542fa", "score": "0.66933143", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n root= inflater.inflate(R.layout.fragment_photo_printing_setting, container, false);\n linkXML();\n InitialData();\n ViewListener();\n return root;\n }", "title": "" }, { "docid": "ea1474e82bba8a8b6698d0e60ca33868", "score": "0.6686447", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n return inflater.inflate(R.layout.friends, container, false);\n }", "title": "" }, { "docid": "f3393dca10541648447f184521911fc5", "score": "0.6684988", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.che_fragment4, container, false);\n }", "title": "" }, { "docid": "8c546dc7ddd65456d8d584823c035106", "score": "0.66737074", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_office_notice_board, container, false);\n initLayout();\n return rootView;\n }", "title": "" }, { "docid": "102653586cd98fed1476a26d00c645fb", "score": "0.6672001", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.verify_phone_frag, container, false);\n initView(view);\n initData();\n initEvent();\n return view;\n }", "title": "" }, { "docid": "32447afe45f97b64466760acb49ddfbb", "score": "0.6653778", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cast_details, container, false);\n }", "title": "" }, { "docid": "007ea1dc336df4e21ea4181ca8fa20b1", "score": "0.664952", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.outlist_fragment, container, false);\n setup();\n return root;\n }", "title": "" }, { "docid": "b4db6edf87fa3fb3d014f017043bb430", "score": "0.66478366", "text": "public void inflateLayout() {\n View.inflate(getContext(), C4558R.layout.zm_favorite_item, this);\n }", "title": "" }, { "docid": "da1fc8c99b60c30dce13fcbc17778a59", "score": "0.6644264", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n layout = inflater.inflate(R.layout.fragment_task_view, container, false);\n photoContainer = layout.findViewById(R.id.photo_container);\n photoContainer2 = layout.findViewById(R.id.photo_container_2);\n setTaskLayout();\n setStatistics();\n setConfirmBtn();\n return layout;\n }", "title": "" }, { "docid": "67b28abbfd9a96efd161359fa80f176b", "score": "0.6634385", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.frag_post_crewvent_upload,\n container, false);\n return root;\n }", "title": "" }, { "docid": "c65c5743d7e25cb2845aea21a2e2f688", "score": "0.6630143", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragm_resumen, container, false);\n }", "title": "" }, { "docid": "2fe9b2282a0da207ad2edf8c17b195da", "score": "0.6628472", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_shop_member_items, container, false);\r\n\r\n setInit();\r\n findViews(view);\r\n setFormula();\r\n setEvents();\r\n return view;\r\n }", "title": "" }, { "docid": "f420507fef4a38fb9d146d9ecbda33cf", "score": "0.6628422", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tView rootView = inflater.inflate(R.layout.feed, container, false);\n\t\t \n\t\treturn rootView;\n\t}", "title": "" }, { "docid": "715bdbb68619d6fbb760ea4e3ac95b0b", "score": "0.6618146", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.thridfragment, container, false);\r\n }", "title": "" }, { "docid": "e871dc890da269d7f1f9920047dd5da3", "score": "0.66165864", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tscreenwidth = getActivity().getWindowManager().getDefaultDisplay()\n\t\t\t\t.getWidth();\n\t\tscreenheight = getActivity().getWindowManager().getDefaultDisplay()\n\t\t\t\t.getHeight();\n\t\tLayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tLayoutParams.WRAP_CONTENT);\n\t\tparams.setMargins(screenwidth / 60, screenwidth / 60, screenwidth / 60,\n\t\t\t\tscreenwidth / 60);\n\t\tScrollView sv = (ScrollView) inflater.inflate(R.layout.fragment, null);\n\t\tLinearLayout ll = (LinearLayout) sv.findViewById(R.id.ex);\n\t\tTextView tv = new TextView(getActivity());\n\t\ttv.setGravity(Gravity.CENTER_HORIZONTAL);\n\t\ttv.setTextAppearance(getActivity(), android.R.style.TextAppearance_Medium);\n\t\ttv.setTextColor(Color.parseColor(\"#9a1000\"));\n\t\ttv.setText(\"Location\");\n\t\tll.addView(tv, params);\n\t\tTextView tv1 = new TextView(getActivity());\n\t\ttv1.setTextAppearance(getActivity(), android.R.style.TextAppearance_Medium);\n\t\ttv1.setGravity(Gravity.CENTER_HORIZONTAL);\n\t\ttv1.setText(\"Event is happening at\");\n\t\tll.addView(tv1, params);\n\t\tTextView tv2 = new TextView(getActivity());\n\t\ttv2.setTextAppearance(getActivity(), android.R.style.TextAppearance_Medium);\n\t\ttv2.setTextColor(Color.parseColor(\"#9a1000\"));\n\t\ttv2.setGravity(Gravity.CENTER_HORIZONTAL);\n\t\ttv2.setText(\"Students Activity Center(SAC)\");\n\t\tll.addView(tv2, params);\n\t\tButton b1=new Button(getActivity());\n\t\tb1.setGravity(Gravity.CENTER_HORIZONTAL);\n\t\tb1.setBackgroundColor(Color.parseColor(\"#9a1000\"));\n\t\tb1.setTextColor(Color.WHITE);\n\t\tb1.setText(\"Show in Map\");\n\t\tparams.gravity=Gravity.CENTER_HORIZONTAL;\n\t\tll.addView(b1, params);\n\t\treturn sv;\n\t}", "title": "" }, { "docid": "ceb10d7736a237bd62e916a7ee86a2e7", "score": "0.6615763", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_control, container, false);\n context = view.getContext();\n mSpinType = view.findViewById(R.id.spintype);\n mSpinOption = view.findViewById(R.id.spinoption);\n layout = R.id.frameLayout;\n return view;\n }", "title": "" }, { "docid": "d24305375d0b727f7330605214c8c268", "score": "0.66138065", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_attending_events, container, false);\n mGridViewEvents = (GridView) rootView.findViewById(R.id.gridview_events);\n mProgressBarLoadingEvents = (ProgressBar) rootView.findViewById(R.id.loading_events_progress);\n return rootView;\n }", "title": "" }, { "docid": "2a36691d19538ad9414f5e5d39dece8e", "score": "0.6599503", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_hqs_details, container, false);\n initViews(view);\n\n validacaoDeDados();\n\n return view;\n\n }", "title": "" }, { "docid": "4db09d2c49628ea50266d36003aed2e9", "score": "0.6591577", "text": "@Override\n\tprotected View onCreateCustomerView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.kao_quan_fragment_layout, null);\n\n\t}", "title": "" }, { "docid": "8aa62748f7cf122a846d9995e93df587", "score": "0.6588911", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "title": "" }, { "docid": "65c9b0492ca55e0f76c8b6ec89a5a649", "score": "0.6587467", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n EventBus.getDefault().register(this);\n View v = inflater.inflate(R.layout.fragment_criminal_detail, container, false);\n textviewTitle = v.findViewById(R.id.TextDetail);\n imageDetail = v.findViewById(R.id.ImageDetail);\n Warning = v.findViewById(R.id.Warning);\n return v;\n }", "title": "" }, { "docid": "f6c8c8d553f7dfeb32dce382e151b148", "score": "0.6581871", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_booking, container, false);\n }", "title": "" }, { "docid": "ae2a9000f6da2f5f55235bdbd786cac9", "score": "0.65813684", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_trending_mirror, container, false);\n\n initUI(view);\n setInitialData();\n\n\n return view;\n }", "title": "" }, { "docid": "d2f508095a790a4caa955da769cfdbd9", "score": "0.65773237", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_batch, container, false);\n }", "title": "" }, { "docid": "60e56eea0a1da9bac3dd98737c023d1b", "score": "0.65766746", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_battle, container, false);\n viewInfo(view);\n getData(BallId);\n return view;\n }", "title": "" }, { "docid": "cc905baf039333383234d3ab5940dca7", "score": "0.65759766", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_podcast_layout, container, false);\n }", "title": "" }, { "docid": "bef5e249cb6fd6c6dcfaf784881677f0", "score": "0.6574284", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_fragment_htblood_pressure_report, container, false);\n }", "title": "" }, { "docid": "1ae0ab40cffb0664ab4764f3c4093e4a", "score": "0.65737957", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_resep_detail, container, false);\n }", "title": "" }, { "docid": "4676dee64099c8e4388fc43c44814e96", "score": "0.6565942", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_adv, container, false);\r\n }", "title": "" }, { "docid": "6ebfaae3a332dcdb8ba99e2a5e53ab74", "score": "0.6564472", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n fragmentView = inflater.inflate(R.layout.fragment_task_form_pump_perform_tab, container, false);\n setBinding();\n setEvent();\n showTaskData();\n return fragmentView;\n }", "title": "" }, { "docid": "5b5b9102f79f34a7a7dd8bcd7f39374e", "score": "0.65633804", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_player_info, container, false);\n }", "title": "" }, { "docid": "ba2b8866d7bc21e535c179a9ec158fc8", "score": "0.6559231", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n viewMain = inflater.inflate(R.layout.fragment_fragment_leave_request_archive_list, container, false);\n\n initView();\n return viewMain;\n }", "title": "" }, { "docid": "34920174b56d6fa8814f12b91b4ab638", "score": "0.65587056", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_restaurant_profile, container, false);\n initialization(view);\n getData();\n btnListener();\n return view;\n }", "title": "" }, { "docid": "8b53f64a1d1e524efa0f38c165c6e776", "score": "0.6557713", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fr_home_event_pager, container, false);\n }", "title": "" }, { "docid": "089d36cdba24f09e8b885916245964e3", "score": "0.655585", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_learn_with_r_n_r, container, false);\n }", "title": "" }, { "docid": "ce4c6e7e41ca9c8c98a731bc837642e1", "score": "0.6555652", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ride_accept, container, false);\n ids();\n setup();\n return view;\n }", "title": "" }, { "docid": "be0ed872911f72acf4117fb533a41690", "score": "0.65532416", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View fragment = inflater.inflate(R.layout.fragment_point_of_interest, container, false);\n rl = (RelativeLayout) fragment.findViewById(R.id.fragment_empty_poi_list);\n recyclerView = (RecyclerView) fragment.findViewById(R.id.rvPointsOfInterest);\n recyclerView.setLayoutManager(llm);\n getPointsOfInterest();\n return fragment;\n }", "title": "" }, { "docid": "4d81ad86d5c5898566e28e074f5ee0e4", "score": "0.6551852", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n root = inflater.inflate(R.layout.fragment_book_details, container, false);\n\n return root;\n }", "title": "" }, { "docid": "255c727089388ab5aca817b90eaad5ba", "score": "0.654785", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_marked_ayat, container, false);\n initView(v);\n initViewModel();\n getAyatList();\n return v;\n }", "title": "" }, { "docid": "d0bb991d0698b03595b112fe466b9637", "score": "0.6546382", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tweets_of_profile, container, false);\n return view;\n }", "title": "" }, { "docid": "8ee0697bb9db3f206b74f7b36e7d5d10", "score": "0.6545051", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (view == null) {\n view = inflater.inflate(R.layout.fragment_electricbill, container, false);\n\n getView(view);\n initDatas();\n setListener();\n }\n\n return view;\n }", "title": "" }, { "docid": "29b1e1fdb9c7915c832c2855c88c57b3", "score": "0.65444815", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_photos, container, false);\n mydb = new DatabaseClass(getContext());\n toolbar = (Toolbar) view.findViewById(R.id.photo_toolbar);\n gridView = (GridView) view.findViewById(R.id.photoGrid);\n heading = (TextView) view.findViewById(R.id.heading);\n share_with = (TextView) view.findViewById(R.id.share_phts);\n sw = (TextView) view.findViewById(R.id.sw);\n textViewD = (TextView) view.findViewById(R.id.noPhts);\n toolbar = (Toolbar) view.findViewById(R.id.photo_toolbar);\n accountCheck();\n return view;\n }", "title": "" }, { "docid": "1d4d139a56f2205042ba3baaecd34e2f", "score": "0.654273", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pass_book, container, false);\n }", "title": "" }, { "docid": "b825c6f573c4a038673690318659340e", "score": "0.6542001", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_poll_list, container, false);\n }", "title": "" }, { "docid": "516b0e891bc69ec12fc21bacc2c6d154", "score": "0.6540242", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_body_temperature, container, false);\n }", "title": "" }, { "docid": "5b3dd1f19a75893e65a259735bec0aca", "score": "0.6538691", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n // Inflate m001_frg_topic layout for m002_frg_story layout\n View rootView = inflater.inflate(R.layout.m002_frg_story, container, false);\n // to draw story list\n initViews(rootView);\n //To draw a UI for your Fragment, you must return the root View of your Fragment layout.\n return rootView;\n }", "title": "" }, { "docid": "94465da996a6248b697ca5a2263694f3", "score": "0.6536186", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\tView v = inflater.inflate(getLayoutRes(), container, false);\n\t\tinitViews(v);\n\t\treturn v;\n\t}", "title": "" }, { "docid": "8a1bd9eaee41f1ec14397c5a15d6c3da", "score": "0.65348023", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_resep_detail, container, false);\n }", "title": "" }, { "docid": "aefe5f43d8464d7951743a49bc9da3eb", "score": "0.6529789", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_all_reservations, container, false);\n mDefineView(view);\n return view;\n }", "title": "" }, { "docid": "9ae302e5356fc88fcac68310ddac7515", "score": "0.65296066", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tlayout = (RelativeLayout) inflater.inflate(R.layout.fragment_list, null);\n\t\t\n\t\tthis.gridView = (GridView) layout.findViewById(R.id.gridview);\n\t\tthis.gridView.setOnItemClickListener(this);\n\t\tthis.gridView.setOnItemLongClickListener(this);\n\t\t\n\t\t//this.toListDB = new ToListDB(this.getActivity());\n\t\t//for (int i = 0; i < 10; i++) { \n\t\t//\ttoListDB.addThing(\"Ragnarok Title\", \"Content\", null);\n\t\t//}\n\t\tadapter = new ToListAdapter(this.getActivity());\n\t\tthis.gridView.setAdapter(adapter);\n\t\tthis.gridView.setOnTouchListener(this);\n\t\t\n\t\tthis.bottomLayout = layout.findViewById(R.id.bottom_layout);\n\t\tthis.bottomLayout.setVisibility(View.INVISIBLE);\n\n\t\tthis.originBottomBackgroundColor = Color.parseColor(\"#2E2E2E\");\n\t\t\n\t\treturn layout;\n\t}", "title": "" }, { "docid": "f214f78fa9a60cde11378a99496fb48c", "score": "0.65223366", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_week_commission, container, false);\r\n ButterKnife.bind(this, view);\r\n initWidger();\r\n initCalendar();\r\n next.setOnClickListener(this);\r\n previous.setOnClickListener(this);\r\n return view;\r\n }", "title": "" }, { "docid": "75550df2896519792f776e65a0d55bac", "score": "0.651774", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n return inflater.inflate(R.layout.fragment_recording_overview, container, false);\n }", "title": "" }, { "docid": "5f6b45e37257302d7f6df50d337a958b", "score": "0.65151924", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n root = inflater.inflate(R.layout.fragment_request_personal_chat, container, false);\n initUI();\n return root;\n }", "title": "" }, { "docid": "944a9776255efbeb3ff6273d94159734", "score": "0.6515024", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_contacts, container, false);\n initBase();\n initView();\n loadData();\n return view;\n }", "title": "" }, { "docid": "79288ed16e1f42bf62b8560e3eb80378", "score": "0.65125185", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_find, container, false);\n setMZChart(rootView);\n setZJChart(rootView);\n setXLChart(rootView);\n setNLChart(rootView);\n setJXChart(rootView);\n setZWLBChart(rootView);\n setXBChart(rootView);\n setRZSJChart(rootView);\n\n ll_mz = (LinearLayout) rootView.findViewById(R.id.ll_mz);\n ll_zj = (LinearLayout) rootView.findViewById(R.id.ll_zj);\n ll_xl = (LinearLayout) rootView.findViewById(R.id.ll_xl);\n ll_nl = (LinearLayout) rootView.findViewById(R.id.ll_nl);\n ll_jx = (LinearLayout) rootView.findViewById(R.id.ll_jx);\n ll_zwlb = (LinearLayout) rootView.findViewById(R.id.ll_zwlb);\n ll_xb = (LinearLayout) rootView.findViewById(R.id.ll_xb);\n ll_rzsj = (LinearLayout) rootView.findViewById(R.id.ll_rzsj);\n if(MainTabActivity.rosterList!=null) {\n try {\n setData();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n return rootView;\n }", "title": "" }, { "docid": "4a4a016f889e6e6dc4980f61bef65a99", "score": "0.65101373", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_fragment_satu, container, false);\n }", "title": "" }, { "docid": "2e477ab408ee0254086af69ec8329e5a", "score": "0.6506428", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_comment, container, false);\n context = getContext();\n initViews(v);\n initResultList();\n return v;\n }", "title": "" }, { "docid": "e3f3420769f6eedb7c8d8c09e06887a4", "score": "0.6504338", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n user = LocLookApp.usersMap.get(LocLookApp.appUserId);\n userFavoritesList = user.getFavoritesList();\n\n View view = inflater.inflate(R.layout.fragment_comments, container, false);\n\n commentsSumValueTextView = UiUtils.findView(view, R.id.Comments_SumValue_TextView);\n commentsSumValueTextView.setText(\"\" + CommentController.getCommentsControllerInstance().getPublicationCommentsSum(mPublication.getPublicationId()));\n\n LinearLayout footerBlock = UiUtils.findView(view, R.id.Publication_LI_FooterBlock);\n footerBlock.setWeightSum(3f);\n\n View footerView = inflater.inflate(R.layout.publication_footer, footerBlock, true);\n\n setHasOptionsMenu(true);\n\n setPublicationData(view);\n\n // find \"send comment layout\"\n sendCommentLayout = (FrameLayout) view.findViewById(R.id.Comments_Send_Wrap);\n sendCommentLayout.setOnClickListener(this);\n\n return view;\n }", "title": "" }, { "docid": "d3f7a11d995baf991eb33831d5ba5864", "score": "0.65037996", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_bill_detail, container, false);\n }", "title": "" }, { "docid": "72aecb88c8be8cafb2f804ae0a524f9c", "score": "0.6503591", "text": "public void inflateLayout() {\n View.inflate(getContext(), C4558R.layout.zm_mm_content_file_item, this);\n }", "title": "" }, { "docid": "a154cdfa0464e41bb39dead160f5d595", "score": "0.6501685", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_p_m, container, false);\n }", "title": "" }, { "docid": "cefdabdafa67523f667cfd92a748a42f", "score": "0.65016276", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View v = inflater.inflate(R.layout.fragment_detail, container, false);\n mTvSchooName = v.findViewById(R.id.tv_school_name);\n mTvScoreMath = v.findViewById(R.id.tv_score_math);\n mTvScoreReading = v.findViewById(R.id.tv_score_reading);\n mTvScoreWriting = v.findViewById(R.id.tv_score_writing);\n mTvNumSatTakers = v.findViewById(R.id.tv_num_sat_takers);\n return v;\n }", "title": "" }, { "docid": "49ea6478938e73ad16b6465aa80ad550", "score": "0.6500018", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_wisata, container, false);\n init(root);\n return root;\n }", "title": "" }, { "docid": "8d346bc33b2797cb598e2ca9b09d3ce9", "score": "0.64973027", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_display_sender_gig, container, false);\n }", "title": "" }, { "docid": "6a4d012543e9a9da497dfe6cd1370aa1", "score": "0.6496592", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_member, container, false);\n }", "title": "" }, { "docid": "b239c35a7357beaae0af5eea20777687", "score": "0.6495444", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return null;\n }", "title": "" }, { "docid": "46d77a672b45eea3273370cef887a531", "score": "0.6494603", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_current_weather, container, false);\n\n\n }", "title": "" }, { "docid": "a767b16bdf5b4fa039a7f604e4ed2d98", "score": "0.64936525", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_song_detail, container, false);\n setupUI(view);\n return view;\n }", "title": "" }, { "docid": "8f6ef305cd279a6d8806a649e7ee7149", "score": "0.6492815", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_listfrag, container, false);\n\n }", "title": "" }, { "docid": "e5223c548ca0d178a4837ff3ceb8b8d7", "score": "0.64917773", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_task_detail, container, false);\n setupUI(view);\n return view;\n }", "title": "" }, { "docid": "0c51fb98cbd2cb844767b71e15684f19", "score": "0.6491029", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my_bookings, container, false);\n\n // Iniciar componentes\n initComponent(view);\n return view;\n }", "title": "" }, { "docid": "7bd15eeb8ade347a0cd250abf4b8c7bc", "score": "0.6489887", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_store_scratchlist_sub_fragment, container, false);\n\n debug_msg.debug_msg( 1 , \"SUB FRAG M_IDX\" , String.valueOf( market_idx ) ) ;\n\n ui_cont_mgr( rootView );\n return rootView;\n }", "title": "" }, { "docid": "fa7ae55a81360fa2fa6252fcc73e3854", "score": "0.648897", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_contact, container,\n false);\n initData(savedInstanceState);\n initView();\n initListenter();\n return view;\n }", "title": "" }, { "docid": "19bab383a227b2859d0fe764c1a64032", "score": "0.64889205", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_play_nhac_information, container, false);\n }", "title": "" }, { "docid": "77bca5457da96aa2c8d6d208094f28cf", "score": "0.6487592", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "title": "" }, { "docid": "9cb04e652700ffd0df912b072c45a49b", "score": "0.6485304", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.bioinfo_plant_details, container, false);\n }", "title": "" }, { "docid": "0c174ccec6542f699ecff3adcfe0260d", "score": "0.6482277", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_player_collapsed, container, false);\n stationLogo = (ImageView) view.findViewById(R.id.playing_station_logo);\n stationName = (TextView) view.findViewById(R.id.playing_station_name);\n playPauseBtn = (ImageButton)view.findViewById(R.id.playing_station_state_icons);\n return view;\n }", "title": "" }, { "docid": "e3058b68a9634d33b3104e44aa45fa99", "score": "0.6481925", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_scan_blank, container, false);\n }", "title": "" }, { "docid": "4c01ae66643817fd3c26175b3e65f60f", "score": "0.6481812", "text": "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_ex_04_b, container, false);\n }", "title": "" }, { "docid": "6ff778417311ed8c2549856df75bda70", "score": "0.64796335", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_import_list, container, false);\n }", "title": "" }, { "docid": "9459607d8086da5e56a2c33c9f990438", "score": "0.6478891", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_refer_to_ride, container, false);\n id();\n setup();\n return view;\n }", "title": "" }, { "docid": "2b804845c105fc53a54cbe066e7c3d12", "score": "0.6476506", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information, container, false);\n initialization(v);\n return v;\n }", "title": "" }, { "docid": "333d33f7c8534839c2f000dbc66e2999", "score": "0.64760107", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_visualization, container, false);\n }", "title": "" }, { "docid": "6cd3257bacfc1b53edefa04c75028378", "score": "0.647552", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dish_basic_data, container, false);\n takePhotoButton = view.findViewById(R.id.take_photo_button);\n thumbnail = view.findViewById(R.id.thumbnail_dish_creation);\n name = view.findViewById(R.id.dish_name_text);\n description = view.findViewById(R.id.dish_description_text);\n return view;\n }", "title": "" }, { "docid": "54eaa0a0c1eda667cd8e16faf82b3e1a", "score": "0.64723074", "text": "@Nullable\r\n @Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { //on creation, generate view box\r\n View view = inflater.inflate(R.layout.fragment_write,container,false);\r\n initViews(view);\r\n return view;\r\n }", "title": "" }, { "docid": "3e7f20d92aeecf3768ff072b767bab68", "score": "0.646969", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_report_milk, container, false);\n initInstances(rootView);\n return rootView;\n }", "title": "" }, { "docid": "d6608b97c6be232343f7435aa4252a48", "score": "0.64675754", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_android,container,false);\n }", "title": "" }, { "docid": "3f6fc1816cad04c1a43bb6b9c3958eec", "score": "0.646445", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return root = inflater.inflate(R.layout.fragment_deck_display, container, false);\n }", "title": "" }, { "docid": "c9cc1e21a80e1aa56e34ae4026484abc", "score": "0.64636225", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_set_basic_info, container, false);\n }", "title": "" }, { "docid": "d14797d7b3b3d10a3eb67f85965f1705", "score": "0.6463567", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n // Inflate the Resource\n return inflater.inflate(R.layout.contacts_list_veiw, container, false);\n }", "title": "" }, { "docid": "9b9205384670f731dfdae36727366f45", "score": "0.646041", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.enroll2, container, false);\n }", "title": "" }, { "docid": "aa303b1e0ce6302c0e5ee19436dbe791", "score": "0.6459785", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_mine_paint, container, false);\n unbinder = ButterKnife.bind(this, v);\n\n initView(v);\n setListener();\n return v;\n }", "title": "" }, { "docid": "2ccdfb352005c4eec9d98a17afeec1ca", "score": "0.64589286", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_requestconnection, container, false);\n }", "title": "" }, { "docid": "d669e1cc555f062b21234efc15f90e86", "score": "0.64584076", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_home, container, false);\n\n initViews();\n setupBoxRecyclerView();\n\n\n\n return rootView;\n }", "title": "" }, { "docid": "c165b5d674bdd21a71c03f2df39f7c5b", "score": "0.6456964", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.che_fragment1, container, false);\n }", "title": "" }, { "docid": "66a70b43892da04736a95672a60b2fb1", "score": "0.64554155", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_asignaturas, container, false);\n layout = (ViewGroup) v.findViewById(R.id.content);\n scrollView = (ScrollView) v.findViewById(R.id.scrollView);\n initUI(v);\n return v;\n }", "title": "" } ]
d2372565e941f6a1a6f8ddc9ecee0446
/ Generate a Password object with a random password.
[ { "docid": "928d757cd0d103b47586b0afe0c605c8", "score": "0.0", "text": "public static String getNext(int length) {\r\n if (length < 1) {\r\n throw new IllegalArgumentException(\r\n \"Invalid length \" + length);\r\n }\r\n StringBuffer sb = new StringBuffer();\r\n for (int i = 0; i < length; i++) {\r\n sb.append(goodChar[r.nextInt(goodChar.length)]);\r\n }\r\n return sb.toString();\r\n }", "title": "" } ]
[ { "docid": "9e54edf1abb946fce60fa68561eeb925", "score": "0.822737", "text": "public static String generatePassword(){\n String generatedPassword = RandomStringUtils.random(10, true, true);\n return generatedPassword;\n }", "title": "" }, { "docid": "9fc43a7b78c54a46f3f75ed9b4f01ef4", "score": "0.7902486", "text": "public static String generatePassword() {\n Random rand = new Random();\n return \"GS\" + rand.nextInt();\n }", "title": "" }, { "docid": "735d831b087f3615faa4faa46f0760ab", "score": "0.77880603", "text": "private String generatePassword()\n {\n // Generate the random bytes and return the base 64 representation.\n byte[] bytes = new byte[_parms.passwordLength];\n getRand().nextBytes(bytes);\n String password = Base62.base62Encode(bytes);\n _results.incrementPasswordsGenerated();\n return password;\n }", "title": "" }, { "docid": "3df0bf095691befdca9559e26ba2fc00", "score": "0.7748048", "text": "public String generatePassword() {\n int length = 15;\n char[] possibleCharacters = (\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\").toCharArray();\n return RandomStringUtils.random(length, 0, possibleCharacters.length - 1, false, false, possibleCharacters, secureRnd);\n }", "title": "" }, { "docid": "23c70743b5fecc34e8463a57522d1688", "score": "0.76999366", "text": "public String createPassword() {\n String pw = \"\";\n for(int i = 0; i < length; i++)\n pw += chars.charAt(randomizer.nextInt(chars.length()));\n return pw;\n }", "title": "" }, { "docid": "e6ea6248ee4e19586dba175799b6eb13", "score": "0.76567453", "text": "public static String generateRandomPassword() {\n return cryptMD5( String.valueOf( Math.random() ) );\n }", "title": "" }, { "docid": "cff4d45c8e3268664484385e9d8f769d", "score": "0.7634327", "text": "public StringBuffer generarPassword() {\r\n\t\tStringBuffer random = new StringBuffer();\r\n\t\tfor (int i=0; i<this.longitud; i++) {\r\n\t\t\trandom.append((char)((Math.random()*93)+33));\r\n\t\t}\r\n\t\treturn random;\r\n\t}", "title": "" }, { "docid": "f8f2ffcbbe958e8bda4c8e9430cc10c2", "score": "0.76193994", "text": "String generateNewPassword() {\n int length = 6;\n boolean useLetters = true;\n boolean useNumbers = true;\n return RandomStringUtils.random(length, useLetters, useNumbers);\n }", "title": "" }, { "docid": "ff7910bd4fcc72c61a0a7dc52ae09d2a", "score": "0.7585185", "text": "public String getGeneratedPassword() {\n if (password == null) {\n password = PasswordHash.getRandomString(6, 8);\n }\n return password;\n }", "title": "" }, { "docid": "51175bd0e1d0536203cf4d05ec924060", "score": "0.75507075", "text": "private String newPassword() {\n\t\tchar[] vet = new char[10];\n\t\t\n\t\tfor (int i=0; i>10; i++) {\n\t\t\tvet[i] = randomChar();\n\t\t}\n\t\treturn new String(vet);\n\t}", "title": "" }, { "docid": "73006a1899f2f4b0563c126678eb42da", "score": "0.73380953", "text": "public static PasswordCharacter createRandomCharacter(){\r\n return new PasswordCharacter(COLORS[(int)(Math.random() * COLORS.length)], ANIMALS[(int)(Math.random() * ANIMALS.length)]);\r\n }", "title": "" }, { "docid": "41070e138cb701f926c5431e241cd2e0", "score": "0.7337508", "text": "private String generateRandomPW(String password) {\n java.security.MessageDigest firstHash = null;\n try {\n firstHash = java.security.MessageDigest.getInstance(\"SHA1\");\n } catch (Exception e2) {\n if (debugLevel >= SAWSConstant.ErrorInfo) sawsDebugLog.write(e2.toString());\n }\n byte[] sawsHash = null;\n String temp = password;\n for (int i = 0; i < 10; ++i) {\n sawsHash = firstHash.digest(temp.getBytes());\n temp = new String(sawsHash);\n }\n String pw = new String(Base64.encode(sawsHash));\n return pw;\n }", "title": "" }, { "docid": "fc68417562c53b84b50d644c89b48423", "score": "0.71916795", "text": "public void generatePassword() {\r\n // generate the must have criteria\r\n generateCriteria();\r\n // used for random choice of which criteria to use\r\n int random;\r\n // used to control the while loop to populate the\r\n // empty spots in the password\r\n int count;\r\n // used to populate random spots in the password\r\n int index;\r\n\t\t\r\n // fill the password with the criteria in random positions\r\n for(int i = 0; i < CRITERIA_COUNT; i++) {\r\n \tdo {\r\n index = new Random().nextInt(passLength);\r\n } while((int) password[index] != 0);\r\n password[index] = criteria[i];\r\n }\r\n\t\t\r\n // fill the rest of the password with random characters\r\n count = passLength - CRITERIA_COUNT;\r\n\t\t\r\n while(count > 0) {\r\n\t\trandom = new Random().nextInt(CRITERIA_COUNT);\r\n\t\t\r\n\t\tswitch(random) {\r\n case 0:\r\n\t\t\tdo {\r\n \tindex = new Random().nextInt(passLength);\r\n\t\t\t} while((int) password[index] != 0);\r\n\t\t\tpassword[index] = generateUpperCase();\r\n\t\t\r\n count--;\r\n\t\t\tbreak;\r\n\t\t\t\t\t\r\n case 1:\r\n\t\t\tdo {\r\n index = new Random().nextInt(passLength);\r\n\t\t\t} while((int) password[index] != 0);\r\n\t\t\tpassword[index] = generateLowerCase();\r\n\t\t\t\r\n count--;\r\n\t\t\tbreak;\r\n\t\t\t\t\t\r\n case 2:\r\n\t\t\tdo {\r\n index = new Random().nextInt(passLength);\r\n\t\t\t} while((int) password[index] != 0);\r\n\t\t\tpassword[index] = generateNumber();\r\n\t\t\t\r\n count--;\r\n\t\t\tbreak;\t\t\t\t\t\r\n case 3:\r\n\t\t\tdo {\r\n index = new Random().nextInt(passLength);\r\n\t\t\t} while((int) password[index] != 0);\r\n\t\t\tpassword[index] = generateSpecialChar();\r\n\t\t\t\r\n count--;\r\n\t\t\tbreak;\r\n\t\t}\r\n }\r\n\t\t\r\n }", "title": "" }, { "docid": "26af873cdea9d68d826e5f7265a8a8fb", "score": "0.7134218", "text": "public String generateString() {\n\t\tint leftLimit = 33;\n\t\tint rightLimit = 126;\n\t\tRandom random = new Random();\n\t\tStringBuilder buffer = new StringBuilder(10);\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t int randomLimitedInt = leftLimit + (int) \n\t\t (random.nextFloat() * (rightLimit - leftLimit + 1));\n\t\t buffer.append((char) randomLimitedInt);\n\t\t}\n\t\tString password = buffer.toString();\n\t\treturn password;\n\t}", "title": "" }, { "docid": "a1e58dedd152f97a4ae3ec37be7afe6f", "score": "0.7053561", "text": "private static String randomPassword(int sizePassword) {\n\t StringBuilder sb = new StringBuilder(sizePassword);\n\t for(int i = 0; i < sizePassword; i++) {\n\t\t sb.append(CHARS.charAt(random.nextInt(CHARS.length())));\n\t }\n\t return sb.toString();\n\t}", "title": "" }, { "docid": "57f746489f5e4798b0dcc42b32d9f0dc", "score": "0.7021586", "text": "private static String randPassword(int len) {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n\n SecureRandom random = new SecureRandom();\n StringBuilder sb = new StringBuilder();\n\n for (int i = 0; i < len; i++) {\n int randomIndex = random.nextInt(chars.length());\n sb.append(chars.charAt(randomIndex));\n }\n\n return sb.toString();\n }", "title": "" }, { "docid": "7772e83e394da105fbbb2e3847dfb2ad", "score": "0.69482523", "text": "private String randPassword(int length) {\n\t\t// sets the possible characters that can be used for the password\n\t\tString passwordSet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*\";\n\t\t// creates an array of characters with the length of the password \n\t\tchar[] password = new char[length];\n\t\tfor (int i = 0 ; i < length; i++) {\n\t\t\t// will get a random number between 0 and the length of the password set of characters\n\t\t\t// getting casted to integer\n\t\t\tint rand = (int) (Math.random() * passwordSet.length());\n\t\t\t// getting the character at the index 'rand' and inserting into password array\n\t\t\tpassword[i] = passwordSet.charAt(rand);\n\t\t}\n\t\t// returns the array of characters in a string\n\t\treturn new String(password);\t\n\t}", "title": "" }, { "docid": "302c4b335958a9b1a11af5fd2af164fd", "score": "0.69253236", "text": "public String generateRandomPassword(int length) {\n StringBuilder sb = new StringBuilder(length);\n for (int i = 0; i < length; i++) {\n int c = RANDOM.nextInt(62);\n if (c <= 9) {\n sb.append(String.valueOf(c));\n } else if (c < 36) {\n sb.append((char) ('a' + c - 10));\n } else {\n sb.append((char) ('A' + c - 36));\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "e315bfa0d71fb54c87abde08968b47ec", "score": "0.6900207", "text": "public static String getRandomPassword(int size) {\n String password = \"\";\n Random rand = new Random();\n int nrand;\n\n for (int i = 0; i < size; i++) {\n nrand = Math.abs(rand.nextInt(chars.length()));\n password = password + chars.charAt(nrand);\n }\n\n return password;\n }", "title": "" }, { "docid": "9f29b09d8147794747b1298259cf9329", "score": "0.6850006", "text": "private static String getRndPw(){\n\t Random rand = new Random();\n\t StringBuffer strBuf = new StringBuffer();\n\t for (int i = 0 ; i < 7 ; i++ ) {\n\t\t //TODO Intervall anpassen\n\t \tstrBuf.append( (char) ( (Math.abs( rand.nextInt() ) %26 ) +97 ) );\n\t }\n\t return strBuf.toString();\n }", "title": "" }, { "docid": "5ae3090de05c9e84ae9dc4daab53f358", "score": "0.669962", "text": "private String passwordGenerator(int length){\n String passwordSet = \"QWERTYUIOPLKJHGFDSAZXCVBNM1234567890!@#$%^&*&\";\n char[] password = new char[length];\n //generating a random number\n\n for(int i=0; i<length; i++){\n\n int ran= (int) (Math.random() * passwordSet.length());\n password [i] = passwordSet.charAt(ran);\n\n }\n return new String(password);\n }", "title": "" }, { "docid": "6a3944af243d93593ab4c37239766af9", "score": "0.66730994", "text": "public String generatePassword() {\n String password = \"\";\n for (Action action : actions) {\n password += Character.toString(action.nextCharacter(maze.getCharacters()));\n }\n\n return password;\n }", "title": "" }, { "docid": "fd219c6ceec119e5fcf784f3beda44e6", "score": "0.66430175", "text": "public interface PasswordGenerator {\n\n /**\n * Generate a new password which can be used for a user account.\n */\n public String generate();\n \n}", "title": "" }, { "docid": "381ae8f5c47695f190eb86279f998893", "score": "0.6640465", "text": "private String generateRandomPassCode() {\n\n //increments the counter each time this method is called\n count++;\n\n //instantiates a strings for selecting test pass code characters from\n String acceptedChars = \"abcdefghijkmnopqrstuvwxyzABCDEFGHJKLOMOPQRSTUVWXYZ0123456789\";\n\n //generates random combination\n final Random random = new Random();\n //builds string at length of parameter\n final StringBuilder stringbuilder = new StringBuilder(1);\n\n String testCode = \"\";\n\n //iterates over the pwLength length\n for (int length = 0; length < 4; length++) {\n\n //appends random characters from the character strings to the string builder\n stringbuilder.append(acceptedChars.charAt(random.nextInt(acceptedChars.length())));\n\n //assigns values to the test code\n testCode = stringbuilder.toString();\n }\n\n //returns the random test pass code\n return testCode;\n }", "title": "" }, { "docid": "88ea8322b46567496c3b0592a81ec9e8", "score": "0.66367555", "text": "private void generatePassword() {\n\n this.password = firstName.substring(firstName.length() - 2) + lastName.substring(lastName.length() - 2);\n\n }", "title": "" }, { "docid": "bb7988b036e496e9caa94957c5fd12bc", "score": "0.66233355", "text": "public static void password (){\n for (int i=0; i<3; i++) {\n System.out.print((int) (Math.random() * 10));\n }\n // to generate 3 digit letter\n for (int j=0; j<3; j++ ){\n System.out.print((char)((int)(Math.random()*26+97)));\n }\n }", "title": "" }, { "docid": "e9ed6905e427a4d6d284d9261ffd32bc", "score": "0.65911055", "text": "SecureRandom get();", "title": "" }, { "docid": "f66b8087ab4449743a16e2f409960971", "score": "0.6558455", "text": "private String randomPassword(int length) {\r\n\t\tString passwordSet=\"ABCDEFGHIJKLMNPQRTUVWXYZ0123456789!@#$%\";\r\n\t\tchar[] password=new char[length];\r\n\t\tfor(int i=0;i<length;i++)\r\n\t\t{\r\n\t\t\tint rand= (int)(Math.random()*passwordSet.length());\r\n\t\t\tpassword[i]=passwordSet.charAt(rand);\r\n\t\t\t//System.out.println(rand);\r\n\t\t\t//System.out.println(passwordSet.charAt(rand));\r\n\t\t\t\r\n\t\t}\r\n\t\treturn new String(password);\r\n\r\n\t}", "title": "" }, { "docid": "a97130aa4808963e04519b2154d3c6ca", "score": "0.6549151", "text": "public static String generatePwd(Integer length) {\n StringBuilder source = new StringBuilder();\n source.append(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n source.append(source.toString().toLowerCase());\n source.append(\"0123456789\");\n\n List<Character> resultList = new LinkedList<>();\n Random r = new Random();\n resultList.add(source.charAt(Math.abs(r.nextInt() % 26)));\n resultList.add(source.charAt(Math.abs(r.nextInt() % 26) + 26));\n resultList.add(source.charAt(Math.abs(r.nextInt() % 10) + 52));\n for (int i = 3; i < length; i++) {\n resultList.add(source.charAt(Math.abs(r.nextInt() % 62)));\n }\n\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < length; i++) {\n int pos = Math.abs(r.nextInt() % (length - i));\n result.append(resultList.get(pos));\n resultList.remove(pos);\n }\n return result.toString();\n }", "title": "" }, { "docid": "04f88fee204c9651af58760dd26c09f7", "score": "0.6545515", "text": "@Override\n\tpublic String generateTempPwd() {\n\t\tString AlphaNumericString = AppConstants.A2Z + AppConstants.NO_0_TO_9 + AppConstants.SMALL_A2Z;\n\t\t// create StringBuffer size of AlphaNumericString\n\t\tStringBuilder sb = new StringBuilder(6);\n\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t// generate a random number between\n\t\t\t// 0 to AlphaNumericString variable length\n\t\t\tint index = (int) (AlphaNumericString.length() * Math.random());\n\t\t\t// add Character one by one in end of sb\n\t\t\tsb.append(AlphaNumericString.charAt(index));\n\t\t}\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.640105", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.640105", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.640105", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.640105", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.640105", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.640105", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.640105", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.640105", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.640105", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "dfac087ca41ca0b2ff095b6f8b28fe36", "score": "0.6375485", "text": "public static String createSecret() {\n var buffer = new StringBuilder(BYTES_SECRET);\n for (var i = 0; i < BYTES_SECRET; i++) {\n var value = random.nextInt(MAX_CHARACTERS);\n if (value < ITERATIONS) {\n buffer.append((char) ('A' + value));\n } else {\n buffer.append((char) ('2' + (value - ITERATIONS)));\n }\n }\n \n return buffer.toString();\n }", "title": "" }, { "docid": "e76c2dd4be90b2fa89103d38dce6dce3", "score": "0.6343475", "text": "com.google.protobuf.ByteString\n getPasswordBytes();", "title": "" }, { "docid": "5e3d00ffcd2424d8c2a63607d9e0bedd", "score": "0.63285804", "text": "private static String generateSuperUserPassword() {\n final String password = UUID.randomUUID().toString();\n log.warn(\"Super User Password is: \" + password);\n return password;\n }", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.63204205", "text": "String getPassword();", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.63204205", "text": "String getPassword();", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.63204205", "text": "String getPassword();", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.63204205", "text": "String getPassword();", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.63204205", "text": "String getPassword();", "title": "" }, { "docid": "290b482704573801763b690a84f835c1", "score": "0.630123", "text": "private static String generatePassword(String password) {\n\t\ttry {\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"SHA\");\n\t\t\tmd.update(password.getBytes());\n\t\t\tbyte[] digest = md.digest();\n\t\t\tString result = Base64.getEncoder().encodeToString(digest);\n\t\t\treturn \"{SHA}\" + result;\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "29319a882dbe61288dd726a7c521842a", "score": "0.62667596", "text": "private String setpassword(int length) \r\n{\r\n\tString s_alpha=\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\r\n\tString c_alpha=s_alpha.toLowerCase();\r\n\tString num=\"1234567890\";\r\n\tString symbol=\"!@#$%^&*()=+><?\\\"|\";\r\n\tString value=s_alpha+c_alpha+num+symbol;\r\n\t\r\n\t\r\n\t\r\n\tchar[] pass=new char[length];\r\n\tfor (int i = 0; i <length; i++) \r\n\t{\r\n\t\tint random=(int) (Math.random() * value.length());\r\n\t\tpass[i]=value.charAt(random);\r\n\t}\r\n\t\treturn new String(pass);\r\n}", "title": "" }, { "docid": "53dab6cfc01f971be623934a018bef09", "score": "0.6242423", "text": "com.google.protobuf.ByteString\n getPasswordBytes();", "title": "" }, { "docid": "53dab6cfc01f971be623934a018bef09", "score": "0.6242423", "text": "com.google.protobuf.ByteString\n getPasswordBytes();", "title": "" }, { "docid": "53dab6cfc01f971be623934a018bef09", "score": "0.6242423", "text": "com.google.protobuf.ByteString\n getPasswordBytes();", "title": "" }, { "docid": "53dab6cfc01f971be623934a018bef09", "score": "0.6242423", "text": "com.google.protobuf.ByteString\n getPasswordBytes();", "title": "" }, { "docid": "53dab6cfc01f971be623934a018bef09", "score": "0.6242423", "text": "com.google.protobuf.ByteString\n getPasswordBytes();", "title": "" }, { "docid": "53dab6cfc01f971be623934a018bef09", "score": "0.6242423", "text": "com.google.protobuf.ByteString\n getPasswordBytes();", "title": "" }, { "docid": "53dab6cfc01f971be623934a018bef09", "score": "0.6242423", "text": "com.google.protobuf.ByteString\n getPasswordBytes();", "title": "" }, { "docid": "53dab6cfc01f971be623934a018bef09", "score": "0.6242423", "text": "com.google.protobuf.ByteString\n getPasswordBytes();", "title": "" }, { "docid": "66dcd78442fde5aadb7dc05fab7095a9", "score": "0.62345153", "text": "public Password(String value) {\n this.value = value;\n }", "title": "" }, { "docid": "95c5cf6897fc67fa41fe2e9fe54ae4a2", "score": "0.62336016", "text": "private String randomString(int length){\r\n Random random = new SecureRandom();\r\n String letters = \"abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ0123456789\";\r\n String pw = \"\";\r\n for (int i=0; i<length; i++){\r\n int index = (int)(random.nextDouble()*letters.length());\r\n pw += letters.substring(index, index+1);\r\n }\r\n return pw;\r\n }", "title": "" }, { "docid": "eafd92e722fbf0b9e2b36b87c5659023", "score": "0.62299144", "text": "public String getPassword();", "title": "" }, { "docid": "eafd92e722fbf0b9e2b36b87c5659023", "score": "0.62299144", "text": "public String getPassword();", "title": "" }, { "docid": "eafd92e722fbf0b9e2b36b87c5659023", "score": "0.62299144", "text": "public String getPassword();", "title": "" }, { "docid": "eafd92e722fbf0b9e2b36b87c5659023", "score": "0.62299144", "text": "public String getPassword();", "title": "" }, { "docid": "6664a18c6bc6b466a3835ab1a41e26ec", "score": "0.6218586", "text": "public static Key random() {\n Pointer ptr = Sodium.malloc(length());\n try {\n Sodium.crypto_secretbox_keygen(ptr);\n return new Key(ptr);\n } catch (Throwable e) {\n Sodium.sodium_free(ptr);\n throw e;\n }\n }", "title": "" }, { "docid": "1686c321541f4625b911b992cf2013a9", "score": "0.6202534", "text": "private String generateRandomToken()\r\n\t{\r\n\t\tbyte[] token = new byte[32];\r\n\t\tnew Random().nextBytes(token);\r\n\t\treturn Base64Utils.toBase64(token);\r\n\t}", "title": "" }, { "docid": "4af13a6e35f10adab0743b67512b0b22", "score": "0.6202417", "text": "public static String generatePassword(\n int minLength,\n int maxLength,\n int numLower,\n int numUpper,\n int numSpecial,\n @Nullable List<Character> specialChars) {\n StringBuilder password = new StringBuilder();\n password.append(\n RandomStringUtils.randomAlphanumeric(minLength, maxLength - numSpecial).toUpperCase());\n for (int i = 0; i < numSpecial && specialChars != null; i++) {\n password.insert(\n new Random().nextInt(password.length()),\n specialChars.get(new Random().nextInt(specialChars.size())));\n }\n for (int i = 0; i < numLower; i++) {\n password.insert(\n new Random().nextInt(password.length()),\n RandomStringUtils.randomAlphabetic(1).toLowerCase());\n }\n for (int i = 0; i < numUpper; i++) {\n password.insert(\n new Random().nextInt(password.length()),\n RandomStringUtils.randomAlphabetic(1).toUpperCase());\n }\n return password.toString();\n }", "title": "" }, { "docid": "0d2199f85e2737141591157b5fcaefc8", "score": "0.6171177", "text": "public static String generate(int length) {\n\n String password = \"\";\n\n // Limit the random number to the amount of arrays\n int characterTypelow = 1;\n int characterTypeHigh = 5;\n\n // Create an two demensional array to make it easier to access\n char[][] characters = new char[][]{ALPHA_UPPER_CHARACTERS,\n ALPHA_LOWER_CHARACTERS, NUMERIC_CHARACTERS, SPECIAL_CHARACTERS};\n\n // Generate as much random characters as requested\n for (int i = 0; i < length; i++) {\n \n // Choose a random character type\n int characterType = r.nextInt(characterTypeHigh - characterTypelow)\n + characterTypelow;\n\n // Limit the random to the amount of items in the array\n int low = 0;\n int high;\n\n // Check wich array needs to be used\n switch (characterType) {\n\n case 1:\n high = ALPHA_UPPER_CHARACTERS.length;\n break;\n case 2:\n high = ALPHA_LOWER_CHARACTERS.length;\n break;\n case 3:\n high = NUMERIC_CHARACTERS.length;\n break;\n case 4:\n high = SPECIAL_CHARACTERS.length;\n break;\n default:\n high = 1;\n break;\n }\n\n // Generate a number to identify a character in the array\n int characterIdentifier = r.nextInt(high - low) + low;\n\n // Add the caracter to the password String\n password += characters[characterType - 1][characterIdentifier];\n }\n\n // Return the generated password\n return password;\n\n }", "title": "" }, { "docid": "973da90d1593a4c4ab975559d1dd20e0", "score": "0.61501986", "text": "public void createPassword(String name, byte[] password) {\n \n }", "title": "" }, { "docid": "545318ab0b448fb003662c670278a4c1", "score": "0.6135118", "text": "protected TextGuiTestObject text_password() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"text_password\"));\n\t}", "title": "" }, { "docid": "3cc6e7bce34f0de3ef744961a5b742db", "score": "0.6132418", "text": "public String generateSecurityPassword(String username, String password) {\n return DigestUtils.md5Hex(userPasswordSalt + username + password);\n }", "title": "" }, { "docid": "33dcf1d1ff65f58ee750de352fa793fb", "score": "0.60801697", "text": "private void getRandomOTP () {\n Random random = new Random();\n otp = 100000 + random.nextInt(900000);\n }", "title": "" }, { "docid": "f904f5bba247293451bab622e72378e8", "score": "0.60629946", "text": "public static LockscreenCredential createPassword(@NonNull CharSequence password) {\n return new LockscreenCredential(CREDENTIAL_TYPE_PASSWORD,\n charSequenceToByteArray(password));\n }", "title": "" }, { "docid": "57f0d85ab83466837f881c2cd2915418", "score": "0.60510683", "text": "@Override\n public String createPassword(String clearString) {\n if (clearString == null) {\n throw new IllegalArgumentException(\"Password is null\");\n }\n return BCrypt.hashpw(clearString, BCrypt.gensalt());\n }", "title": "" }, { "docid": "6a146f9fb245dfa6d2ac2aaeb630cb57", "score": "0.6027529", "text": "protected TextGuiSubitemTestObject password() \r\n\t{\r\n\t\treturn new TextGuiSubitemTestObject(\r\n getMappedTestObject(\"password\"));\r\n\t}", "title": "" }, { "docid": "89cd8b9b87822bd1e37c138a190d9091", "score": "0.59954137", "text": "public static SecureRandom generateRandom(String arg[]) {\n\t SecureRandom random1 = new SecureRandom();\n\t random1.nextBytes(new byte[20]);\n\t //random1.setSeed(123);\n\t return random1;\n\t}", "title": "" }, { "docid": "37885652901ea32a0fbd2d34c595729d", "score": "0.59950703", "text": "public interface Password {\n\n /**\n * Returns the transformed string.\n * @return\n */\n String getTransformedString();\n\n /**\n * Sets the transformed string.\n * @param transformedString\n */\n void setTransformedString(String transformedString);\n\n /**\n * Returns the raw string.\n * @return\n */\n String getRawString();\n\n /**\n * Sets the raw string.\n * @param rowString\n */\n void setRawString(String rowString);\n\n /**\n * Returns true if the password was already set.\n * @return\n */\n boolean hasPassword();\n\n}", "title": "" }, { "docid": "885e302ca72b2f1fe2ab7ce7b7c8fb9e", "score": "0.5989376", "text": "private PasswordDigestGeneratorFactory() { }", "title": "" }, { "docid": "e53e7ff32076c52ff33cbf1a813d7a50", "score": "0.5973004", "text": "String getUserPassword();", "title": "" }, { "docid": "06e1433861207a741d4ec599713fcfe7", "score": "0.59701383", "text": "public static Object randomSecureGUID() {\r\n return new GUID( true );\r\n }", "title": "" }, { "docid": "a8562fc35870ce7721beca05bb8c6329", "score": "0.596914", "text": "public static byte[] generateKey(String password) throws Exception {\r\n SecretKey key = KeyGenerator.getInstance(ALGO_SECRET_KEY_GENERATOR).generateKey();\r\n password = key.toString();\r\n\r\n password = Base64.encodeToString(key.getEncoded(), Base64.DEFAULT);\r\n\r\n byte[] keyData = key.getEncoded();\r\n\r\n\r\n /* KeyGenerator kgen = KeyGenerator.getInstance(\"AES\");\r\n //SecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\", \"Crypto\");\r\n sr.setSeed(keyStart);\r\n kgen.init(128, sr);\r\n SecretKey skey = kgen.generateKey();\r\n return skey.getEncoded();*/\r\n return keyData;\r\n }", "title": "" }, { "docid": "cae86590913130acbcdee66403e34e49", "score": "0.5946984", "text": "public String generateToken() {\n\t\tRandom rng = new Random();\n\t\tString characters = \"1234567890abcdefhijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\tint length = 24;\n\t\tchar[] text = new char[length];\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\ttext[i] = characters.charAt(rng.nextInt(characters.length()));\n\t\t}\n\t\treturn new String(text);\n\t}", "title": "" }, { "docid": "7c9ad30465ef4a7907a50ce67d77dae9", "score": "0.5939333", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7c9ad30465ef4a7907a50ce67d77dae9", "score": "0.5939333", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7c9ad30465ef4a7907a50ce67d77dae9", "score": "0.5939333", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7c9ad30465ef4a7907a50ce67d77dae9", "score": "0.5939333", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7c9ad30465ef4a7907a50ce67d77dae9", "score": "0.5938648", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7c9ad30465ef4a7907a50ce67d77dae9", "score": "0.5937594", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "7c9ad30465ef4a7907a50ce67d77dae9", "score": "0.5937594", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "35d5a0e5e17381fb55c53b8710b6319d", "score": "0.59203166", "text": "SecurityServiceCreateBuilder password(String password);", "title": "" }, { "docid": "0902ecc1bb53664c7ebf17373d1ee615", "score": "0.5913145", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\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 password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "0902ecc1bb53664c7ebf17373d1ee615", "score": "0.5913145", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\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 password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "0902ecc1bb53664c7ebf17373d1ee615", "score": "0.5913145", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\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 password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "0902ecc1bb53664c7ebf17373d1ee615", "score": "0.59119105", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\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 password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "0902ecc1bb53664c7ebf17373d1ee615", "score": "0.5910486", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\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 password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "0902ecc1bb53664c7ebf17373d1ee615", "score": "0.5910486", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\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 password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "0902ecc1bb53664c7ebf17373d1ee615", "score": "0.5910486", "text": "public com.google.protobuf.ByteString\n getPasswordBytes() {\n java.lang.Object ref = password_;\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 password_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "1feca2f6a449b33e443897ceef9e250b", "score": "0.59050107", "text": "public String getPassword() {return password;}", "title": "" }, { "docid": "f8362108babd65f0e46af8f45e5d42d8", "score": "0.5902191", "text": "protected TextGuiTestObject text_j_password() \r\n\t{\r\n\t\treturn new TextGuiTestObject(\r\n getMappedTestObject(\"text_j_password\"));\r\n\t}", "title": "" }, { "docid": "f8362108babd65f0e46af8f45e5d42d8", "score": "0.5902191", "text": "protected TextGuiTestObject text_j_password() \r\n\t{\r\n\t\treturn new TextGuiTestObject(\r\n getMappedTestObject(\"text_j_password\"));\r\n\t}", "title": "" }, { "docid": "63fd55cad278c88a8db1bb00832cd3e5", "score": "0.59006166", "text": "public void retrievePassword() {\n\n }", "title": "" }, { "docid": "c7cd8eabac13064ac4c4619edb1b7d77", "score": "0.5888504", "text": "public static String createHash(String password) {\n final int SALT_BYTE_SIZE = 24;\n final int HASH_BYTE_SIZE = 24;\n final int PBKDF2_ITERATIONS = 1000;\n // Generate a random salt\n SecureRandom random = new SecureRandom();\n byte[] salt = new byte[SALT_BYTE_SIZE];\n random.nextBytes(salt);\n // Hash the password\n byte[] hash = pbkdf2(password.toCharArray(), salt, PBKDF2_ITERATIONS, HASH_BYTE_SIZE);\n // format iterations:salt:hash\n return PBKDF2_ITERATIONS + \":\" + toHex(salt) + \":\" + toHex(hash);\n }", "title": "" } ]
d57b7e06c0a3e6a22c310d5c3d6b2a15
The token will be checked with the in memory cache, if it's not present in the cache then the introspection service will be called and the response will be cached in the memory.
[ { "docid": "4be54df2ae2bd80f74b01a69929b4362", "score": "0.6312396", "text": "public boolean isValidToken(final ProcessContext processContext, final String token, final ComponentLog logger) {\r\n\t\tfinal String oAuthUrl = processContext.getProperty(OAUTH_URL_PROP).evaluateAttributeExpressions().getValue();\r\n\t\t// Returning valid since the security is not configured for the processor.\r\n\t\tif (StringUtils.isEmpty(oAuthUrl)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (StringUtils.isNotBlank(token)) {\r\n\t\t\tfinal IntrospectResponse introspectResponse = (IntrospectResponse) cache.getIfPresent(token);\r\n\t\t\tif (null != introspectResponse) {\r\n\t\t\t\tif(introspectResponse.getExpirationDate().after(new Date())) {\r\n\t\t\t\t\tlogger.debug(\"Token is available in the cache so returning - {}\", new Object[]{token});\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlogger.debug(\"Token expired so removing it from the cache - {}\", new Object[]{token});\r\n\t\t\t\t\t//Removing the cache entry in case of expired token\r\n\t\t\t\t\tcache.invalidate(token);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.debug(\"Invoking the introspection service to validate the token - {}\", new Object[]{token});\r\n\t\t\t\tfinal String clientId = processContext.getProperty(CLIENT_ID_PROP).evaluateAttributeExpressions().getValue();\r\n\t\t\t\tfinal IntrospectResponse introspectOAuthToken = introspectOAuthToken(processContext, oAuthUrl, clientId, token, logger);\r\n\t\t\t\tif (introspectOAuthToken != null && introspectOAuthToken.isActive() && Iterables.contains(introspectOAuthToken.getAud(), clientId)) {\r\n\t\t\t\t\tcache.put(token, introspectOAuthToken);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" } ]
[ { "docid": "0b346351e8e7b355ded787ed0e9b7cc5", "score": "0.64247465", "text": "public TokenCache() {\n this.tokenCacheDictionary = new ConcurrentHashMap<TokenCacheKey, AuthenticationResult>();\n }", "title": "" }, { "docid": "feea95831ed344ff797ee46718cd1b76", "score": "0.6388397", "text": "@GET(\"/token\")\n Call<Token> fetchToken();", "title": "" }, { "docid": "9eb6bd9b7d7448484229a160abb20240", "score": "0.6356457", "text": "public Future<JsonObject> tokenIntrospection(String tokenType, String token) {\n final JsonObject headers = new JsonObject()\n .put(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n final JsonObject form = new JsonObject()\n .put(\"token\", token)\n // optional param from RFC7662\n .put(\"token_type_hint\", tokenType);\n\n clientAuthentication(headers, form);\n\n final Buffer payload = SimpleHttpClient.jsonToQuery(form);\n // specify preferred accepted accessToken type\n headers.put(\"Accept\", \"application/json,application/x-www-form-urlencoded;q=0.9\");\n\n return fetch(HttpMethod.POST, config.getIntrospectionPath(), headers, payload)\n .compose(reply -> {\n if (reply.body() == null || reply.body().length() == 0) {\n return Future.failedFuture(\"No Body\");\n }\n\n JsonObject json;\n\n if (reply.is(\"application/json\")) {\n try {\n json = reply.jsonObject();\n } catch (RuntimeException e) {\n return Future.failedFuture(e);\n }\n } else if (reply.is(\"application/x-www-form-urlencoded\") || reply.is(\"text/plain\")) {\n try {\n json = SimpleHttpClient.queryToJson(reply.body());\n } catch (UnsupportedEncodingException | RuntimeException e) {\n return Future.failedFuture(e);\n }\n } else {\n return Future.failedFuture(\"Cannot handle accessToken type: \" + reply.headers().get(\"Content-Type\"));\n }\n\n try {\n if (json == null || json.containsKey(\"error\")) {\n return Future.failedFuture(extractErrorDescription(json));\n } else {\n processNonStandardHeaders(json, reply, config.getScopeSeparator());\n return Future.succeededFuture(json);\n }\n } catch (RuntimeException e) {\n return Future.failedFuture(e);\n }\n });\n }", "title": "" }, { "docid": "46e300b289372909e4acf4a79348ab93", "score": "0.6259995", "text": "@Override\n public synchronized Mono<AccessToken> getToken(String resource) {\n AuthenticationResult[] authenticationResult = new AuthenticationResult[1];\n authenticationResult[0] = tokens.get(resource);\n // Return if found and not expired\n if (authenticationResult[0] != null && authenticationResult[0].getExpiresOnDate().after(new Date())) {\n return Mono.just(Util.parseAdal4jAuthenticationResult(authenticationResult[0]));\n }\n // If found then refresh\n boolean shouldRefresh = authenticationResult[0] != null;\n // If not found for the resource, but is MRRT then also refresh\n if (authenticationResult[0] == null && !tokens.isEmpty()) {\n authenticationResult[0] = new ArrayList<>(tokens.values()).get(0);\n shouldRefresh = authenticationResult[0].isMultipleResourceRefreshToken();\n }\n\n if (shouldRefresh) {\n return Mono.defer(() -> acquireAccessTokenFromRefreshToken(resource, authenticationResult[0].getRefreshToken(), authenticationResult[0].isMultipleResourceRefreshToken())\n .onErrorResume(t -> acquireNewAccessToken(resource))\n .doOnNext(ar -> tokens.put(resource, ar))\n .then(Mono.just(Util.parseAdal4jAuthenticationResult(tokens.get(resource)))));\n } else {\n return Mono.just(Util.parseAdal4jAuthenticationResult(tokens.get(resource)));\n }\n }", "title": "" }, { "docid": "71d7db428100ee3d58538495535c578f", "score": "0.5947268", "text": "Token getToken();", "title": "" }, { "docid": "e3c94f9ce0ce6bd7014d29930accb4d6", "score": "0.58376557", "text": "public String getToken() {\n token = mACache.getAsString(\"token\") == null ? \"\" : mACache.getAsString(\"token\");\n return token;\n }", "title": "" }, { "docid": "40f3432cba142e61c9ba6fb1552a2f0c", "score": "0.58079714", "text": "protected abstract String fetchToken() throws IOException;", "title": "" }, { "docid": "f863b78d97d685f8229339ecfe5b442e", "score": "0.5807041", "text": "public abstract @Nullable\n Token getToken();", "title": "" }, { "docid": "26d5e992204e2aed414f223aeac9216b", "score": "0.5757899", "text": "public TokenInfo getTokenInfo( String token ) throws Exception;", "title": "" }, { "docid": "d9ad93c6aedee8c846b39d2ccfd4e601", "score": "0.5730249", "text": "public interface UserCacheService {\n\t/**\n\t * Get user object by token\n\t *\n\t * @param token\n\t * @return\n\t */\n\tUserObject getUserObject(String token);\n\n\t/**\n\t * Set user object by token\n\t *\n\t * @param token\n\t * @param user\n\t */\n\tvoid setUserObject(String token, UserObject user);\n\n\t/**\n\t * Get all cached UID\n\t *\n\t * @return\n\t */\n\tSet<String> getCachedUIDs();\n\n\t/**\n\t * Get all cached tokens by UID\n\t * \n\t * @param uid\n\t * @return\n\t */\n\tSet<String> getTokenByUID(String uid);\n\n\t/**\n\t * Delete cached user object by token\n\t *\n\t * @param token\n\t */\n\tvoid removeUserByToken(String token);\n\n\t/**\n\t * Delete all cached tokens by UID\n\t *\n\t * @param uid\n\t */\n\tint deleteTokenByUID(String uid);\n\n\t/**\n\t * Delete inactive tokens in cache\n\t *\n\t * @param inactiveSecond\n\t * @return\n\t */\n\tint deleteInactiveToken(int inactiveSecond);\n\n\t/**\n\t * Refresh cached token value\n\t * \n\t * @param token\n\t * @return\n\t */\n\tString refreshToken(String oldToken, UserObject userObj);\n\n\t/**\n\t * Return token expired time (seconds)\n\t * \n\t * @return\n\t */\n\tlong getTokenExpire();\n\n}", "title": "" }, { "docid": "e3f29c06393ef5aa8ab8c4dc7edd4892", "score": "0.5728263", "text": "Object getToken(String tokenID);", "title": "" }, { "docid": "3f5aafef12b890075d4f596a85a6f830", "score": "0.561599", "text": "public static Id get(String token) {\n synchronized (CACHE) {\n Id cached = CACHE.get(token);\n if (cached != null) {\n return cached;\n }\n Id id = new Id(token);\n CACHE.put(token, id);\n return id;\n }\n }", "title": "" }, { "docid": "0f96711802a33ac8b29377f777408eef", "score": "0.55476296", "text": "public static String getApiToken() {\n // If cached token has not expired, use it instead of requesting a new one.\n if (cachedToken != null && !cachedToken.isStale()) {\n LOG.info(\"Using cached token (expires in {} minutes)\", cachedToken.minutesUntilExpiration());\n return cachedToken.tokenHolder.getAccessToken();\n }\n LOG.info(\"Getting new Auth0 API access token (cached token does not exist or has expired).\");\n AuthRequest tokenRequest = authAPI.requestToken(getAuth0Url() + API_PATH + \"/\");\n // Cache token for later use and return token string.\n try {\n setCachedToken(new TokenCache(tokenRequest.execute()));\n } catch (Auth0Exception e) {\n LOG.error(\"Could not fetch Auth0 token\", e);\n return null;\n }\n return cachedToken.tokenHolder.getAccessToken();\n }", "title": "" }, { "docid": "f47b0e465887f3ac0369781d8f6a230c", "score": "0.5532084", "text": "private String getToken(HttpServletRequest request) {\n /**\n * Getting the token from Authentication header\n * e.g Bearer your_token\n */\n String authHeader = request.getHeader(REQ_HEADER_AUTHORIZATION);\n if (authHeader != null && authHeader.startsWith(TOKEN_PREFIX)) {\n return authHeader.substring(7);\n }\n\n return null;\n }", "title": "" }, { "docid": "7f97ad0130e54a4dc670e599a1be81ce", "score": "0.55079216", "text": "@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\t\tCommonResult commonResult = new CommonResult();\n\t\tcommonResult.setCode(CommonResult.INVALID_TOKEN);\n\t\tcommonResult.setMessage(\"invalid token\");\n\t\tString token = request.getParameter(\"token\");\n\t\tif (StringUtils.isBlank(token)) {\n\t\t\tGson gson = new Gson();\n\t\t\tresponse.getWriter().print(gson.toJson(commonResult));\n\t\t\treturn false;\n\t\t}\n\t\t//查询token是否记录再redis中\n\t\tboolean bool = redisService.existsToken(token);\n\t\tif (!bool) {\n\t\t\tGson gson = new Gson();\n\t\t\tresponse.getWriter().print(gson.toJson(commonResult));\n\t\t\treturn false;\n\t\t}\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d8c75d1c3bb6e332b5ef874d8d122bb9", "score": "0.5475303", "text": "public String getAuthenticatedToken() {\n/* 231 */ return this.accessToken;\n/* */ }", "title": "" }, { "docid": "186776cc080e72d29d3dbba0d1eccb34", "score": "0.54673475", "text": "long getToken();", "title": "" }, { "docid": "186776cc080e72d29d3dbba0d1eccb34", "score": "0.54673475", "text": "long getToken();", "title": "" }, { "docid": "d8494687d008e86146bcc7906b0ee815", "score": "0.5453556", "text": "private void checkToken() {\r\n \tfinal AccountManager accManager = AccountManager.get(this);\r\n \tfinal Account[] accounts = accManager.getAccountsByType(ACCOUNT_TYPE);\r\n \tAccount acc = null;\r\n \tif (accounts.length > 0) {\r\n \t\tacc = accounts[0];\r\n \t}\r\n \tString mToken = null;\r\n \tString mSecret = null;\r\n \tif (acc != null) {\r\n \t\tmToken = accManager.peekAuthToken(acc, TASKS_TOKEN_KEY);\r\n \t\tmSecret = accManager.peekAuthToken(acc, TASKS_SECRET_KEY);\r\n \t}\r\n if (mToken != null && mSecret != null) {\r\n final Bundle extras = this.getIntent().getExtras();\r\n final AccountAuthenticatorResponse response = extras\r\n .getParcelable(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE);\r\n final Bundle result = new Bundle();\r\n result.putString(AccountManager.KEY_ACCOUNT_NAME, acc.name);\r\n result.putString(AccountManager.KEY_ACCOUNT_TYPE, ACCOUNT_TYPE);\r\n result.putString(AccountManager.KEY_AUTHTOKEN, mToken);\r\n response.onResult(result);\r\n finish();\r\n }\r\n }", "title": "" }, { "docid": "1fc14d7dcc8c3fc90ceaec2bc8b067a8", "score": "0.54517865", "text": "long getTokenExpire();", "title": "" }, { "docid": "142ec5c7aec1d025b1d202520f7599f3", "score": "0.54389715", "text": "int getToken() {\n return token;\n }", "title": "" }, { "docid": "2c0f4a1b6de60f7c4d1ba2a86e51dc00", "score": "0.54365504", "text": "@Override\npublic AuthentificationInfoDto getCadreAuthentificationInfoFromToken(String token) {\n\treturn null;\n}", "title": "" }, { "docid": "0bf5e366bbfc862a6896f8d0f3eb1278", "score": "0.5424671", "text": "@GET(\"me\")\n Call<TokenDetailsResource> getUserTokenDetails();", "title": "" }, { "docid": "2eabc5af360785948c45b0fdbbbf7baa", "score": "0.54081386", "text": "@GetMapping(\"/fetch-full-token\")\r\n\tpublic Mono<Map<String, String>> fetchFullToken(@RequestHeader(HttpHeaders.AUTHORIZATION) String authHeader) {\r\n\t\t\r\n\t\tlog.debug(\"Fetching a micro token\");\r\n\t\treturn lemonReactiveService.fetchFullToken(authHeader);\r\n\t}", "title": "" }, { "docid": "1543cc382d5df442246d52100abd03c4", "score": "0.54070824", "text": "public interface TokenService {\n /**\n * 通过令牌查询用户\n * @param token\n * @return\n */\n MessageResult getUserByToken(String token);\n}", "title": "" }, { "docid": "31ad5ee7a9ecf2a4aad99735c84b4b7c", "score": "0.54060817", "text": "public interface MyCache {\n /**\n * 获取缓存的用户信息\n * @param token\n * @return\n * @throws Exception\n */\n UserAuthInfo get(String token)throws Exception;\n\n /**\n * 设置用户信息到缓存中\n * @param userAuthInfo\n */\n void set(UserAuthInfo userAuthInfo);\n\n /**\n * 移除缓存中的用户信息\n * @param token\n */\n void remove(String token);\n\n /**\n * 清空缓存\n */\n void clear();\n}", "title": "" }, { "docid": "bbfcecdb167e287c02baf99c7e249d89", "score": "0.54048735", "text": "protected Token getRequestToken() {\n return new Token(prefs.getString(\"request_token\", \"\"),\n prefs.getString(\"request_token_secret\", \"\"));\n }", "title": "" }, { "docid": "8cdf109e629ad320d5d99c07f1c64546", "score": "0.5402796", "text": "@JsonView(AuthenticationView.Summary.class)\n\t@RequestMapping(value = \"/token\", method = RequestMethod.POST)\n\tpublic ResponseEntity<?> checkToken(@RequestBody Authentication authentication) {\n\t\tif (authenticationService.isExpired(authentication.getToken())) {\n\t\t\tSystem.out.println(authentication.getUser());\n\t\t\treturn new ResponseEntity<Authentication>(authenticationService.findByToken(authentication.getToken()),\n\t\t\t\t\tHttpStatus.OK);\n\t\t}\n\t\treturn new ResponseEntity<Message>(new Message(\"Token is expiration.\"), HttpStatus.BAD_REQUEST);\n\t}", "title": "" }, { "docid": "ba52cf9524450bcf0ce194288da6710c", "score": "0.54014915", "text": "@GetMapping(\"/refresh\")\n @PreAuthorize(\"hasRole('USER')\")\n @JsonView(View.UI.class)\n public ResponseEntity<?> refresh(HttpServletRequest req) {\n final AuthToken authToken = (AuthToken) req.getAttribute(\"token\");\n return ResponseEntity.ok().body(authToken);\n }", "title": "" }, { "docid": "a67ab81cad0f1109ce7e57588467bc2d", "score": "0.5378456", "text": "Request useCurrentAccessToken();", "title": "" }, { "docid": "46276487225bb878916ffe287b7bb7c8", "score": "0.53623545", "text": "io.bloombox.schema.security.AuthToken getToken();", "title": "" }, { "docid": "40341e63cced3128af27e0ad1dda7509", "score": "0.5353854", "text": "public int getToken();", "title": "" }, { "docid": "112e4e130374aab12a7f19cb454ca118", "score": "0.5319243", "text": "private void getToken() {\n JsonObjectRequest tokenRequest = new JsonObjectRequest(Request.Method.POST, URL_HUB.tokenurl, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n\n try {\n String token=response.getJSONObject(\"data\").getString(\"access_token\");\n\n if(token!=null){\n\n tokenText.setText(token);\n PrefManager.setAuthToken(token);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n if (error != null) {\n Log.v(\"The error occured \", error.toString());\n Snackbar.make(getWindow().getDecorView().getRootView(), \"Error Occured\", Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n }else\n Log.v(\"Error\", \"The error occured while following user is null \");\n }\n });\n\n Singleton.getInstance(getApplicationContext()).addToRequestQueue(tokenRequest, \"Bundlelist\");\n\n\n }", "title": "" }, { "docid": "4d563511eeae85e221bfbc37ff6d155e", "score": "0.5313711", "text": "private void checkIfToken() {\n SharedPreferences prefs = this.getSharedPreferences(getString(R.string.PREFS_KEY), MODE_PRIVATE);\n long currentTime = System.currentTimeMillis() / 1000;\n long expireTime = prefs.getLong(\"expiredTime\", 0);\n String accessToken = prefs.getString(\"accessToken\", null);\n Log.i(\"Token\", \"Checking Token\");\n Log.i(\"Token\", \"Access Token \" + accessToken);\n Log.i(\"Token\", \"Current Time \" + currentTime + \", Expire time \" + expireTime);\n if(currentTime <= expireTime && accessToken != null){\n Log.i(\"Token\", \"Start Activity\");\n Intent intent = new Intent(this, MainMenuActivity.class);\n startActivity(intent);\n finish();\n }\n }", "title": "" }, { "docid": "c71f8ab889f645b385171f3585e6c838", "score": "0.53116137", "text": "T getToken();", "title": "" }, { "docid": "4a6738504cc5ce60d346baac82106eb7", "score": "0.53094316", "text": "public interface TokenProvider {\n\n /**\n * Return token based on username and password.\n * @param username username\n * @param password password\n * @return auth token as string\n */\n String getToken(String username, String password);\n}", "title": "" }, { "docid": "b7dbe7f648d1b3d0c1c7eba1763ea9cd", "score": "0.53032357", "text": "public String getToken( HttpServletRequest request ) {\n String authHeader = getAuthHeaderFromHeader( request );\n if ( authHeader != null && authHeader.startsWith(\"Bearer \")) {\n String s = authHeader.substring(7);\n System.out.println(\"Received AccessToken in Bearer header: \" + s + \"\\n\");\n return s ;\n }\n\n return null;\n }", "title": "" }, { "docid": "8ad2ebb1eb10a8c21748ebb16c315b08", "score": "0.5287847", "text": "private void generateAndStoreToken(HttpServletRequest httpReq) {\n String token = UUID.randomUUID().toString();\n getCache(httpReq).put(token, Boolean.TRUE);\n\n // send token in current request\n httpReq.setAttribute(CSRF_TOKEN_ATTR, token);\n }", "title": "" }, { "docid": "4f68551dcdd476f0b9ee92c4c002984c", "score": "0.52735555", "text": "public Token getToken() {\n return token;\n }", "title": "" }, { "docid": "4f68551dcdd476f0b9ee92c4c002984c", "score": "0.52735555", "text": "public Token getToken() {\n return token;\n }", "title": "" }, { "docid": "d3ed412e921ba5d42a771eff945b33a3", "score": "0.5270023", "text": "void useBearerToken(String token);", "title": "" }, { "docid": "4f16d515424c45e3b534553bca7989b2", "score": "0.5269786", "text": "@Override\n public boolean preHandle(HttpServletRequest req, HttpServletResponse res, Object handler)\n throws Exception {\n if(isGenUri(req.getRequestURI())){\n ctokenManager.generateCtoken(req, res, (HttpSession)req.getAttribute(SessionManager.SESSION_ATTR_KEY));\n return false;\n }\n \n if(!ctokenManager.isAccess(req, (HttpSession)req.getAttribute(SessionManager.SESSION_ATTR_KEY))){\n RawJsonResUtil.failRes(res, \"ctoken error\");\n return false;\n }\n \n return true;\n }", "title": "" }, { "docid": "588f5183273ed6d73a1ecdd01cd8ff18", "score": "0.52684134", "text": "public Token checkAccessToken() {\n if (prefs.contains(OAuthConstants.TOKEN) && prefs.contains(OAuthConstants.TOKEN_SECRET)) {\n return new Token(prefs.getString(OAuthConstants.TOKEN, \"\"),\n prefs.getString(OAuthConstants.TOKEN_SECRET, \"\"));\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "22b6a401712ecd10dfb458c7200ad58e", "score": "0.526339", "text": "public java.lang.String getToken(){\n return localToken;\n }", "title": "" }, { "docid": "22b6a401712ecd10dfb458c7200ad58e", "score": "0.526339", "text": "public java.lang.String getToken(){\n return localToken;\n }", "title": "" }, { "docid": "22b6a401712ecd10dfb458c7200ad58e", "score": "0.526339", "text": "public java.lang.String getToken(){\n return localToken;\n }", "title": "" }, { "docid": "e21a040d65d399f976ecae7a4126b69a", "score": "0.5250825", "text": "public long getToken() {\n return token_;\n }", "title": "" }, { "docid": "e21a040d65d399f976ecae7a4126b69a", "score": "0.5250825", "text": "public long getToken() {\n return token_;\n }", "title": "" }, { "docid": "a7d3b493e18ee572410be62c03271fb6", "score": "0.52390486", "text": "@Test\n public void returnAccessTokenFromCache() throws IOException, InterruptedException {\n \n when(mockOkHttpClient.newCall(any(Request.class)))\n .thenReturn(mockCall);\n when(mockCall.execute()) \n .thenReturn(buildResponse(200, \"Azta|foo\", \"120\"))\n .thenThrow(IllegalStateException.class);\n underTest.setLWAAccessTokenCache(new LWAAccessTokenCacheImpl());\n \n //First call should get from Endpoint\n assertEquals(\"Azta|foo\", underTest.getAccessToken(lwaAccessTokenRequestMetaSeller));\n //Second call when the cache is still valid, if it goes to end point it will return IllegalStateException.\n assertEquals(\"Azta|foo\", underTest.getAccessToken(lwaAccessTokenRequestMetaSeller));\n }", "title": "" }, { "docid": "b7cc021de7608d0122f7790e5b2909c1", "score": "0.5237429", "text": "@Override\n public void visit(AuthToken authToken) {\n AuthenticationService authenticationService = AuthenticationService.getInstance();\n HashMap<String, AuthToken> authTokensMap = authenticationService.getAuthTokensMap();\n\n try {\n if(authTokensMap.containsKey(authToken.getId())) {\n //validate if token status is expired\n if (authTokensMap.get(authToken.getId()).getState().equals(TokenState.active)) {\n validStatus = true;\n } else{\n throw new AuthenticationException(\"Authentication Failed\",\"AuthToken is expired.\");\n }\n //validate if expiration time is due\n Calendar calendar = Calendar.getInstance();\n Date now = calendar.getTime();\n Date authTokenExpTime = new Date(authTokensMap.get(authToken.getId()).getExpirationTime());\n if(authTokenExpTime.after(now)) {\n validExpTime = true;\n }\n }\n }\n catch (AuthenticationException e){\n System.out.println(e);\n }\n\n }", "title": "" }, { "docid": "e3d5f85db76c768d3f18ea95f17e3027", "score": "0.5234488", "text": "private void _extractAuthTokenIfExists(HttpServletRequest request) {\r\n //check if we have a new token in the URL\r\n String target = request.getParameter(\"target\");\r\n if (\"AppAuthSuccess\".equalsIgnoreCase(target)) {\r\n String t = (String) request.getParameter(\"wctoken\");\r\n if (t != null) {\r\n authToken = t;\r\n request.getSession().setAttribute(HealthVaultBean.SESSION_AUTH_NAME, authToken);\r\n return;\r\n }\r\n }\r\n //check if we have a token in session\r\n authToken = (String) request.getSession().getAttribute(HealthVaultBean.SESSION_AUTH_NAME);\r\n }", "title": "" }, { "docid": "de499e04a58ec9322335187622100d4d", "score": "0.5219878", "text": "public AuthTokenSingleton getToken() {\r\n\t\treturn model.getToken();\r\n\t}", "title": "" }, { "docid": "3af4b6a4a87ce0ff864263b6f04ed978", "score": "0.52167577", "text": "@Override\n public void handleRequest(final HttpServerExchange exchange) throws Exception {\n String token = exchange.getRequestHeaders().getFirst(Headers.AUTHORIZATION);\n if(token == null) {\n setExchangeStatus(exchange, MISSING_AUTH_TOKEN);\n return;\n } else {\n // ignore it and let it go if the token format is JWT\n if(token.indexOf('.') < 0) {\n // this is a by reference token\n DerefRequest request = new DerefRequest(token);\n String response = OauthHelper.derefToken(request);\n if(response == null || response.trim().length() == 0) {\n setExchangeStatus(exchange, EMPTY_TOKEN_DEREFERENCE_RESPONSE, token);\n return;\n }\n if(response.startsWith(\"{\")) {\n // an error status returned from OAuth 2.0 provider. We cannot assume that light-oauth2\n // is used but still need to convert the error message to a status to wrap the error.\n setExchangeStatus(exchange, TOKEN_DEREFERENCE_ERROR, response);\n return;\n } else {\n // now consider the response it jwt\n exchange.getRequestHeaders().put(Headers.AUTHORIZATION, \"Bearer \" + response);\n }\n }\n }\n Handler.next(exchange, next);\n }", "title": "" }, { "docid": "8edcd8a6bc8702296e9f083e531caa52", "score": "0.521594", "text": "public String getToken() {\n return token;\n }", "title": "" }, { "docid": "c40052808dfc9780b85780b0a7adb6d9", "score": "0.52120525", "text": "private boolean isTokenRequest(Request request){\n return request.url().getPath().endsWith(\"auth/token/\");\n }", "title": "" }, { "docid": "be255d111a4a3522209d4752635ab2dd", "score": "0.52082187", "text": "public Boolean validateToken(HttpServletRequest request) {\n Boolean isAuthorised = false;\n\n /*\n if (Jwts.parser().setSigningKey(MacProvider.generateKey(SignatureAlgorithm.RS256)).parseClaimsJws(getToken(request)).getBody().getSubject().equals(\"Joe\"))\n isAuthorised = true;*/\n\n //TODO - retrieve key\n //TODO - cache key for 720 mins\n //TODO - validate token with key\n\n return isAuthorised;\n }", "title": "" }, { "docid": "a48932c95898c2a920ab23ddd98589ef", "score": "0.520783", "text": "private String getTokenFromRequest(HttpServletRequest request) {\r\n String bearer = request.getHeader(AUTHORIZATION);\r\n if (hasText(bearer) && bearer.startsWith(\"Bearer \")) {\r\n return bearer.substring(7);\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "1a96a072a5cfb667234065b1216db78a", "score": "0.5193716", "text": "public Token getAccessToken(){\n return this.accessToken;\n }", "title": "" }, { "docid": "7d88d138cee5a97e808cefbf132373d0", "score": "0.5181987", "text": "private String recuperarToken(HttpServletRequest request) {\r\n String token = request.getHeader(\"Authorization\");\r\n\r\n if(token == null || token.isEmpty() || !token.startsWith(\"Bearer \")){\r\n return null;\r\n }\r\n return token.substring(7, token.length());\r\n }", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.51804024", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.51804024", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.51804024", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.51804024", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.51804024", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.51804024", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.51804024", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.51804024", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.51804024", "text": "java.lang.String getToken();", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.51804024", "text": "java.lang.String getToken();", "title": "" }, { "docid": "d81fd5f9b762c4b021b60dc5d33e41fe", "score": "0.5169321", "text": "@Override\r\n\tprotected String getToken() {\n\t\treturn \"792c7bc5348b423083a5ce74e9b07de2\";\r\n\t}", "title": "" }, { "docid": "ac9a14aa58fd615fb8bdb17d5bd2587f", "score": "0.51634055", "text": "public boolean isAuthorize(String token) {\n if (token != null && !token.isEmpty() && cacheManager != null\n && cacheManager.getCache(\"users\").get(\"hashUserId\") != null) {\n String tokenInCache = (String) cacheManager.getCache(\"users\").get(\"hashUserId\").get();\n return tokenInCache != null && !tokenInCache.isEmpty() ? tokenInCache.equals(token) : false;\n }\n return false;\n }", "title": "" }, { "docid": "79c2616f05ccb41905b080e794566562", "score": "0.5160798", "text": "public interface TokenAuth {\n\n /**\n * Token authentication method.\n * <p>\n * Documentation:\n * <a href=\"https://www.vaultproject.io/api-docs/auth/token\">https://www.vaultproject.io/api-docs/auth/token</a>\n */\n AuthMethod<TokenAuth> AUTH_METHOD = AuthMethod.create(TokenAuth.class, \"token\", \"token\");\n\n /**\n * Service token type.\n */\n String TYPE_SERVICE = \"service\";\n /**\n * Batch token type.\n */\n String TYPE_BATCH = \"batch\";\n /**\n * Default token type.\n */\n String TYPE_DEFAULT = \"default\";\n\n /**\n * Create a new child token with default configuration.\n * @return a new token\n */\n default CreateToken.Response createToken() {\n return createToken(CreateToken.Request.builder());\n }\n\n /**\n * Create a new orphan token with default configuration.\n * @return a new token\n */\n default CreateToken.Response createOrphan() {\n return createToken(CreateToken.Request.builder()\n .noParent(true));\n }\n\n /**\n * Create a new token with customized configuration.\n *\n * @param request token request\n * @return a new token\n */\n CreateToken.Response createToken(CreateToken.Request request);\n\n /**\n * Renews a lease associated with a token. This is used to prevent the expiration of a token, and the automatic revocation\n * of it. Token renewal is possible only if there is a lease associated with it.\n *\n * @param request with token to renew\n * @return a new token\n */\n RenewToken.Response renew(RenewToken.Request request);\n\n /**\n * Revokes a token and all child tokens. When the token is revoked, all dynamic secrets generated with it are also revoked.\n *\n * @param request with token to revoke\n * @return when revocation finishes\n */\n RevokeToken.Response revoke(RevokeToken.Request request);\n\n /**\n * Creates (or replaces) the named role. Roles enforce specific behavior when creating tokens that allow token\n * functionality that is otherwise not available or would require sudo/root privileges to access. Role parameters, when\n * set, override any provided options to the create endpoints. The role name is also included in the token path, allowing\n * all tokens created against a role to be revoked using the /sys/leases/revoke-prefix endpoint.\n *\n * @param request token role request\n * @return when creation finishes\n */\n CreateTokenRole.Response createTokenRole(CreateTokenRole.Request request);\n\n /**\n * Delete a named token role.\n *\n * @param request with name of the role\n * @return when deleted\n */\n DeleteTokenRole.Response deleteTokenRole(DeleteTokenRole.Request request);\n\n /**\n * Revokes a token and orphans all child tokens. When the token is revoked, all dynamic secrets generated with it are also\n * revoked.\n *\n * This is a root protected endpoint.\n *\n * @param request with token to revoke\n * @return when revocation finishes\n */\n RevokeAndOrphanToken.Response revokeAndOrphan(RevokeAndOrphanToken.Request request);\n}", "title": "" }, { "docid": "444637b866bb8d81c3aec648d8472966", "score": "0.5160143", "text": "public boolean isToken();", "title": "" }, { "docid": "d4abd41f0d620575c80404752cc047f0", "score": "0.515674", "text": "public String getToken() {\r\n return token;\r\n }", "title": "" }, { "docid": "a771d75b0897bd5df21a6ec273e0f965", "score": "0.51407665", "text": "long getCached();", "title": "" }, { "docid": "b24b79f73838be7f7563587282344f05", "score": "0.5140679", "text": "public java.lang.String getToken() {\r\n return token;\r\n }", "title": "" }, { "docid": "b24b79f73838be7f7563587282344f05", "score": "0.5140679", "text": "public java.lang.String getToken() {\r\n return token;\r\n }", "title": "" }, { "docid": "2c9977bad665ef91f95c9388c4ac8224", "score": "0.51400435", "text": "@PostMapping(\"/fetch-new-auth-token\")\r\n\tpublic Mono<Map<String, String>> fetchNewToken(ServerWebExchange exchange) {\r\n\t\t\r\n\t\tlog.debug(\"Fetching a new token ... \");\r\n\t\t\r\n\t\treturn lemonReactiveService.fetchNewToken(exchange);\r\n\t\t\r\n\t\t//return LecUtils.mapOf(\"token\", lemonService.fetchNewToken(expirationMillis, username));\r\n\t}", "title": "" }, { "docid": "1252ae8a0dae6a4b072bb86d26faeca4", "score": "0.5134678", "text": "public long getToken() {\n return token_;\n }", "title": "" }, { "docid": "1252ae8a0dae6a4b072bb86d26faeca4", "score": "0.5134678", "text": "public long getToken() {\n return token_;\n }", "title": "" }, { "docid": "8fed61a172ecf0a0a32cc82cc687bc79", "score": "0.51118565", "text": "public String getAccessToken() {\n\t\treturn cache.getAccessToken();\n\t}", "title": "" }, { "docid": "9331b7dd1e27851d567aa76ed51c5568", "score": "0.5097647", "text": "public String getToken() {\n return token;\n }", "title": "" }, { "docid": "9331b7dd1e27851d567aa76ed51c5568", "score": "0.5097647", "text": "public String getToken() {\n return token;\n }", "title": "" }, { "docid": "9331b7dd1e27851d567aa76ed51c5568", "score": "0.5097647", "text": "public String getToken() {\n return token;\n }", "title": "" }, { "docid": "9331b7dd1e27851d567aa76ed51c5568", "score": "0.5097647", "text": "public String getToken() {\n return token;\n }", "title": "" }, { "docid": "9331b7dd1e27851d567aa76ed51c5568", "score": "0.5097647", "text": "public String getToken() {\n return token;\n }", "title": "" }, { "docid": "9331b7dd1e27851d567aa76ed51c5568", "score": "0.5097647", "text": "public String getToken() {\n return token;\n }", "title": "" }, { "docid": "9331b7dd1e27851d567aa76ed51c5568", "score": "0.5097647", "text": "public String getToken() {\n return token;\n }", "title": "" }, { "docid": "9331b7dd1e27851d567aa76ed51c5568", "score": "0.5097647", "text": "public String getToken() {\n return token;\n }", "title": "" }, { "docid": "9331b7dd1e27851d567aa76ed51c5568", "score": "0.5097647", "text": "public String getToken() {\n return token;\n }", "title": "" }, { "docid": "7bc2e5e29642adb5ad7caeeeecd5c273", "score": "0.509763", "text": "@Override\n public Request authenticate(Route route, Response response) throws IOException {\n LoginToken newToken = null;\n try {\n newToken = refreshAccessToken(false).blockingGet();\n } catch (Exception e) {\n if(e instanceof HttpException) {\n HttpException httpException = (HttpException) e;\n int statusCode = httpException.code();\n if(statusCode != 400) {\n newToken = refreshAccessToken(true).blockingGet();\n }\n }\n }\n\n if(newToken != null) {\n paramRepo.saveToken(newToken);\n String newAuthorization = newToken.getToken_type() + \" \" + newToken.getAccess_token();\n newRequest = response.request().newBuilder()\n .addHeader(AUTHORIZATION, newAuthorization)\n .build();\n }\n\n return newRequest;\n }", "title": "" }, { "docid": "97bbac19be488204794290c5069a0737", "score": "0.5095227", "text": "@Override\r\n\t\t\tprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {\n\t\t\t\tif (tokenExtractor.extract(request) == null) {\r\n\t\t\t\t\tSecurityContextHolder.clearContext();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfilterChain.doFilter(request, response);\r\n\t\t\t}", "title": "" }, { "docid": "3e88c4bb2d2c35e0c1c6a0504d700fa3", "score": "0.50846756", "text": "public java.lang.String getToken() {\n return token;\n }", "title": "" }, { "docid": "fd9ce498d28172386f7044a5d2f59590", "score": "0.507234", "text": "@Nullable\n public String getToken() {\n return token;\n }", "title": "" }, { "docid": "1f0ae946ec21959e9e830f09881c050b", "score": "0.50685793", "text": "@RequestMapping(\"expired-token\")\n\tpublic ModelAndView doExpiredToken(){\t\n\t\t\n\t\tModelAndView mav = super.getJsonModelView();\n\t\tActionResult result = new ActionResult();\n\t\tAuthTokenState state = (AuthTokenState)request.getAttribute(ServiceTokenFilter.FILTER_STATE);\n\t\t\n\t\tresult = ActionResult.failure(this.getMessage(\"excp.invalid.token\"));\n\t\tresult.getMeta().setCode(state.name());\n\t\t\n\t\treturn mav.addAllObjects(result.asMap());\n\t}", "title": "" }, { "docid": "61a51d790ed43e2d5dfe4b9130074347", "score": "0.5066828", "text": "void getToken() {\n BaseListData dataCurrent = MyUtils.getSerciceData();\n dataCurrent.setAccount(userName);\n\n MediaType mediaType = MediaType.parse(\"application/json\");\n// RequestBody body = RequestBody.create(mediaType, \"{ \\\"accessKey\\\": \\\"45bd5cc0c8694cdc92c43a6edc094089\\\", \\\"account\\\": \\\"admin\\\", \\\"tenant\\\": \\\"app\\\"}\");\n RequestBody body = RequestBody.create(mediaType, JSON.toJSONString(dataCurrent));\n// LogUtil.i(\"getToken---->\"+ JSON.toJSONString(dataCurrent));\n showProgress();\n OkGoClient.post(mContext, Constants.URL_GET_TOKEN, body, new StringCallback() {\n @Override\n public void onSuccess(Response<String> response) {\n String a = response.body();\n// LogUtil.i(\"getToken---->\"+ a);\n LoginBean bean = JSON.parseObject(a, LoginBean.class);\n if (bean.getAccessToken() == null) {\n showToast(\"\" + bean.getMessage());\n return;\n } else {\n onLoginSuccess(bean);\n }\n }\n }, 0, LoginBean.class);\n\n\n }", "title": "" }, { "docid": "58695ee39e69b5a3a0a0875bc4393553", "score": "0.505747", "text": "public Token getToken() {\n\t\treturn token;\n\t}", "title": "" }, { "docid": "16c75de1709eb2b71f729e4a1ad9afff", "score": "0.5049729", "text": "private void storeToken(String token) {\n }", "title": "" }, { "docid": "4b23789262a5d53c9829acf7d32e8f5e", "score": "0.5048725", "text": "public MendeleyRequestToken getOAuthRequestToken();", "title": "" }, { "docid": "52925be39960094309bb0b8c94f5f044", "score": "0.504343", "text": "public interface TokenService {\n\n //生成Token\n String createToken(String userAgent, User user);\n //保存Token\n Integer saveToken(String token, User user);\n //验证Token\n Boolean checkToken(String token, String userAgent);\n\n //退出\n TokenDto logout(String token, String userAgent);\n}", "title": "" } ]
c2d8dd663afcdb31c9cd9ccfdd333d8a
Check whether the node is a leaf
[ { "docid": "dcefda9aaafecf8b430e37654a93fb14", "score": "0.8278167", "text": "public boolean isLeaf()\n {\n if(getNumberOfChildren() == 0)\n return true;\n return false;\n }", "title": "" } ]
[ { "docid": "19efb28b9c98c3840fb84b64220647a9", "score": "0.8468262", "text": "public boolean isLeaf();", "title": "" }, { "docid": "19efb28b9c98c3840fb84b64220647a9", "score": "0.8468262", "text": "public boolean isLeaf();", "title": "" }, { "docid": "19efb28b9c98c3840fb84b64220647a9", "score": "0.8468262", "text": "public boolean isLeaf();", "title": "" }, { "docid": "47cec362fffca530bf89cda582b0748a", "score": "0.8325493", "text": "public boolean isLeaf() {\r\n return (type == NodeType.Leaf);\r\n }", "title": "" }, { "docid": "bad38dc2a832163af528e96e9341e3c4", "score": "0.82958925", "text": "public boolean is_leaf(){\n //reached a leaf\n if(this.next[0] == null && this.next[1] == null && this.next[2] == null)\n return true;\n //not a leaf\n else return false;\n }", "title": "" }, { "docid": "66f9121ec9dafb1c90e91bc76612adc3", "score": "0.82762176", "text": "@Override\r\n\tpublic boolean isLeaf(Object node) {\n\t\treturn getChildCount(node) == 0;\r\n\t}", "title": "" }, { "docid": "d18183b452c8c546fd37e0726d797f4e", "score": "0.82737756", "text": "public boolean isLeaf() {\n if (this.child == null) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "1c12a826df175be30e4c221dd6960d41", "score": "0.827268", "text": "public boolean IsLeaf();", "title": "" }, { "docid": "3e0d7fb71218d4106206ff85983c5f8e", "score": "0.82572544", "text": "public boolean isLeaf(){\n return (leftChild == null) && (rightChild == null);\n }", "title": "" }, { "docid": "a8b0c42163281a288b5e71d0b155396b", "score": "0.8246537", "text": "public boolean isLeaf() {\n return true;\n }", "title": "" }, { "docid": "e3c2ecd84fdc59bb3a5dbc039eee078d", "score": "0.8236816", "text": "public abstract boolean isLeaf();", "title": "" }, { "docid": "4c792cc93a4ea101ce8b81aa3ec7b400", "score": "0.8208738", "text": "public boolean isLeaf ()\n {\n\treturn (nodeType & (LOCAL_REF|REFERENCE)) == 0 && firstChild == null;\n }", "title": "" }, { "docid": "67a5b8cef01cda9bb3e5ac676521056b", "score": "0.81929433", "text": "public boolean isLeaf() {\n\t\treturn getChildCount() == 0;\n\t}", "title": "" }, { "docid": "63ebb7457926c3a63e629f08fad1573d", "score": "0.818553", "text": "public boolean isLeaf()\r\n\t{\r\n\t\treturn _tLeft == null && _tRight == null;\r\n\t}", "title": "" }, { "docid": "bc263f531eae7f8f58ef32647ec5c8dd", "score": "0.818392", "text": "@Override\n\tpublic boolean isLeaf() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3ba556697165be18b8f17d9aa0432803", "score": "0.8171362", "text": "public boolean isLeaf()\n {\n\treturn this.root.isLeaf();\n }", "title": "" }, { "docid": "97ea8e55ff9628bb1eb51884f81162f9", "score": "0.816703", "text": "public boolean isLeaf()\n {\n\treturn this.children.isEmpty();\n }", "title": "" }, { "docid": "9137c066b2cea54a67d35cba6175d376", "score": "0.8154659", "text": "public boolean isLeaf(){\n return (root.left == null && root.right == null);\n }", "title": "" }, { "docid": "af95d0902dd4ae5403c37c241f81ee70", "score": "0.81496555", "text": "@Override\n public boolean isLeaf() {\n return getNodeHandler().getChildrenCount(node, null) < 1;\n }", "title": "" }, { "docid": "6010040243cee8732c2fd4b03f65bf12", "score": "0.8140036", "text": "public boolean isLeaf() {\n\t\tif (left == null && right == null) return true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a572e6c08ea127513c48443357210c8f", "score": "0.8128209", "text": "public boolean leaf() {\n\t\t\tif (this.leftChild == null && this.rightChild == null) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t//otherwise return false\r\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "1b018a5da481669e6d4e8e0e469c5fcb", "score": "0.8127825", "text": "private boolean isLeaf() {\n assert (left == null && right == null) || (left != null && right != null);\n return (left == null && right == null);\n }", "title": "" }, { "docid": "2c8fb839c3edf0949c3a565c8ea54ac8", "score": "0.8107218", "text": "public boolean isLeaf(){\n\t\tif (curr.getRight() == null && curr.getLeft() == null){\n\t\t\treturn true;\n\t\t\t//returns true if the current node doens't have a right or left\n\t\t\t//child\n\t\t}\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8a6ac96acc56d0fa49431d13ab0d8fa6", "score": "0.80787796", "text": "private boolean isLeaf() {\n return children == null;\n }", "title": "" }, { "docid": "5fde58e79c206241a74398a5ea3cbb50", "score": "0.80286694", "text": "public boolean isLeaf() {\n\t\t\treturn left == null && right == null;\n\t\t}", "title": "" }, { "docid": "2d536c6ebb0d96db336493b42c700c81", "score": "0.8027306", "text": "private boolean isLeaf() {\n return getLeft() == null && getRight() == null;\n }", "title": "" }, { "docid": "4a028e1d7916b0380260a12d60697482", "score": "0.8020971", "text": "public boolean isLeaf() {\n\t\t\treturn (myLeft == null && myRight == null);\n\t\t}", "title": "" }, { "docid": "f2bf0695235b42b49c95b66c8c7e9238", "score": "0.80170965", "text": "@Override\r\n\tpublic boolean isLeaf() {\n\t\treturn Children.isEmpty();\r\n\t}", "title": "" }, { "docid": "6122d70c74fa48eb64211ce2c5abd3bb", "score": "0.8015729", "text": "public boolean isLeaf(){\n\t\treturn isLeaf;\n\t}", "title": "" }, { "docid": "e7f08ddbe622645c00ab7588ebbe337c", "score": "0.80079323", "text": "public final boolean isLeafNode ()\n {\n return (isTerminal() || _symbol == null);\n }", "title": "" }, { "docid": "886499dd34fdff149f2b8f249cf92aec", "score": "0.8005133", "text": "@Override\n\tpublic boolean isLeaf(Object node) {\n\t\t// TODO Auto-generated method stub\n\t\tif (node instanceof Node<?>)\n\t\t\treturn ((Node<?>) node).isLeaf();\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9cbec8e7b6867eee13207eb585002bb4", "score": "0.7996343", "text": "public boolean isLeaf() {\n return (left == null && right == null);\n }", "title": "" }, { "docid": "222b21f01043ee319376ea259726a23b", "score": "0.7988886", "text": "public boolean isLeaf() {\n\t\treturn children.isEmpty();\n\t}", "title": "" }, { "docid": "5a8822c96f91800e22303f8afea0b1a4", "score": "0.79777044", "text": "public boolean isLeaf() {\n return left == null && right == null;\n }", "title": "" }, { "docid": "a521c54391ee2ce4a6200a2a1175f5e7", "score": "0.79086715", "text": "public boolean isLeaf(Object node) {\r\n\t\tif (node == getRoot())\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t// getChildCount liefert fuer NACs immer Null\r\n\t\t// bei Rules ist es abhaengig, ob NACs vorhanden sind.\r\n\t\treturn getChildCount(node) == 0;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5da949175f2dfe290c7c35fa1626769e", "score": "0.7894989", "text": "public boolean isLeaf()\n // -end- 327A877E006E get_head358A5E2403D8 \"isLeaf\"\n {\n // -beg- preserve=no 327A877E006E get_body358A5E2403D8 \"isLeaf\"\n return isLeaf;\n // -end- 327A877E006E get_body358A5E2403D8 \"isLeaf\"\n }", "title": "" }, { "docid": "8c4147fcc5f9e9f4b5b45cca302488e8", "score": "0.7839081", "text": "public boolean atLeaf() {\n \n if(current.left == null && current.right == null) {\n return true;\n }\n \n return false;\n }", "title": "" }, { "docid": "614288c72926c83ee967d1b6efc2364c", "score": "0.7770231", "text": "private boolean isLeaf(){\n\t\treturn l==null;// &&r==null;\n\t}", "title": "" }, { "docid": "f87faa9e55bb58380193ad7d55d7aa22", "score": "0.77569616", "text": "public boolean isleaf(TreeNode node) {\n return !hasLeft(node) && !hasRight(node);\n }", "title": "" }, { "docid": "23236e9ad0a21c3685cc77b8f8f30576", "score": "0.77229106", "text": "public boolean isLeaf(Object node) {\n\n\t\tif( node instanceof Tree){\n\t\t\tTree t = (Tree)node;\n\t\t\tif( t.size() == 0)\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn !(node instanceof Tree);\n\t}", "title": "" }, { "docid": "52329d3a05a1d3922be36622ff9e6c02", "score": "0.7715926", "text": "public boolean isLeaf() {\n //If the root is null or it has no children, return true\n return root == null || (root.left == null && root.right == null);\n }", "title": "" }, { "docid": "97d1394490ea48531e2780d4cd2c9bba", "score": "0.7696597", "text": "public boolean isLeaf ( FileTreeNode node )\n {\n return node.getFile () != null && !FileUtils.isDirectory ( node.getFile () );\n }", "title": "" }, { "docid": "de7c07a3e5b63145b50e29b5f4291223", "score": "0.76506615", "text": "public boolean leaf(RedBlackTree.Node<String> node) {\n\t\tif (node.leftChild == null && node.rightChild == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t//otherwise return false\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "00092ae780abf70d0c18eb7e5b3ab579", "score": "0.7644238", "text": "public boolean isLeaf(Object node) {\n return node instanceof HomePieceOfFurniture\n && !(node instanceof HomeFurnitureGroup);\n }", "title": "" }, { "docid": "7fafd7e6d5abcfd9d1729eba7622dd7f", "score": "0.76146245", "text": "public Boolean isLeaf(String nodeName) throws NotLeafException, NotInTaxonomyException {\n Node node = getInstanceFromNodeName(nodeName);\n boolean isLeaf = false ;\n if(node.getChildren().isEmpty()) {\n isLeaf = true;\n }\n if(!isLeaf){\n throw new NotLeafException(nodeName) ;\n }\n return isLeaf;\n }", "title": "" }, { "docid": "720c3afbb1fb13ff76d9bfe26a5e75a4", "score": "0.7573445", "text": "@Override\n public boolean isLeaf ( final Object node )\n {\n return dataProvider.isLeaf ( ( E ) node );\n }", "title": "" }, { "docid": "d69bcd01d927d0893580aaf8e6bb2966", "score": "0.75630724", "text": "public Boolean getIsLeaf () {\r\n\t\treturn isLeaf;\r\n\t}", "title": "" }, { "docid": "fb0d3727e7ebc879c5823c5f8f43d964", "score": "0.7547879", "text": "@Test\r\n public void testIsLeaf()\r\n {\r\n System.out.println(\"isLeaf\");\r\n ModTreeNode instance = new ModTreeNode(null);\r\n boolean expResult = false;\r\n boolean result = instance.isLeaf();\r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "c1dd1b6382c888b99413f175f30dbd52", "score": "0.7497487", "text": "public Boolean getIsLeaf() {\n\t\treturn isLeaf;\n\t}", "title": "" }, { "docid": "ba66971551bf1d81eaee92e4f762f403", "score": "0.74274427", "text": "public boolean isLeaf(Object node) {\n\t\tif(node instanceof WkTChanel){\r\n\t\t\tWkTChanel tasktype=(WkTChanel)node;\r\n\t\t\tif(taskService.getChildType(tasktype.getKcId()).size()==0)\r\n\t\t\t{\r\n\t\t\treturn taskService.getChildTask(tasktype.getKcId()).size()>0?false:true;\r\n\t\t\t}\r\n\t\t\telse if (taskService.getChildType(tasktype.getKcId()).size()!=0)\r\n\t\t\t{\r\n\t\t\t\treturn taskService.getChildType(tasktype.getKcId()).size()>0?false:true;\r\n\t\t\t}\r\n\t\t}else if(node instanceof WkTExtractask){\r\n\t\t\t\r\n\t\t\treturn true; \r\n\t\t\t\r\n\t\t}else if(node instanceof List){\r\n\t\t\tList t=(List)node;\r\n\t\t\treturn t.size()>0?false:true;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "b6fae200984c755e1a35fcefc90d667a", "score": "0.7422202", "text": "public static boolean isLeaf(Node node) {\n\t\treturn(node.left == null && node.right == null);\n\t}", "title": "" }, { "docid": "f4c35abf6a3928e1420fd4d616cb7e04", "score": "0.74194044", "text": "private boolean isLeaf(int pos){\n return ((pos > (current_size / 2)) && (pos) <= current_size);\n }", "title": "" }, { "docid": "10557cba44f4ec985677e3f3cb05bd46", "score": "0.7398782", "text": "private boolean isLeaf(int pos)\r\n {\r\n if (pos >= (count/2) && pos <= count) {\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "ae1d9cbb68649d850e058f6874d4576d", "score": "0.73977447", "text": "public java.lang.Boolean getIsLeaf() {\n return isLeaf;\n }", "title": "" }, { "docid": "f93deb48aafec42d216f592748b4eb38", "score": "0.73266006", "text": "@Override\r\n\tpublic boolean isLeaf(Object node) \r\n\t{\r\n\t\treturn (node instanceof TreeElement.Column);\r\n\t}", "title": "" }, { "docid": "cc343cf4663bf4a3664ea15af5e995a9", "score": "0.7188885", "text": "private boolean isLeaf(int pos) {\r\n\t\tif (2 * pos > size && 2 * pos + 1 > size && pos <= size) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "ce8781f2035dddd6faabf498feec42bd", "score": "0.7120869", "text": "public boolean isLeaf(Object node) {\n return node instanceof ProjectFile;\n }", "title": "" }, { "docid": "53f5de172d2bbbf57a60c23065cfde1e", "score": "0.7086568", "text": "private boolean isLeaf(int i) {\n\t\tint leftChildIndex = getLeftChildIndex(i);\n\t\tint rightChildIndex = getRightChildIndex(i);\n\t\treturn leftChildIndex >= tree.size() && rightChildIndex >= tree.size();\n\t}", "title": "" }, { "docid": "3f88326ffc364932ec466a3cde54e057", "score": "0.7074392", "text": "boolean sameLeaf() {\n return false;\n }", "title": "" }, { "docid": "ab5b0ca2921152034e60bb26520d5092", "score": "0.7062963", "text": "abstract boolean sameLeaf();", "title": "" }, { "docid": "4100f2183509d178cb02b1282ee334a7", "score": "0.6947141", "text": "boolean sameLeaf() {\n return true;\n }", "title": "" }, { "docid": "4a7cf90e6918a1c7e10ab1d834c436fd", "score": "0.68448746", "text": "private boolean isLeaf(DeviceId deviceId) {\n return !isSpine(deviceId);\n }", "title": "" }, { "docid": "f2f38f5bc3d7dab0377d5b7034de74e0", "score": "0.6824601", "text": "public synchronized boolean isShieldedLeafNode()\r\n {\r\n return leafUltrapeerConnectionCount > 0;\r\n }", "title": "" }, { "docid": "c6586fd95a454452fefa979272feb76f", "score": "0.67836255", "text": "boolean hasNodeType();", "title": "" }, { "docid": "c915591a866c2a0b96a922cb2e48d62d", "score": "0.66594714", "text": "boolean isRoot();", "title": "" }, { "docid": "c915591a866c2a0b96a922cb2e48d62d", "score": "0.66594714", "text": "boolean isRoot();", "title": "" }, { "docid": "fe1be41d4c4291c473d8dec960ecbd6d", "score": "0.6578217", "text": "public synchronized boolean hasLeafConnections()\r\n {\n return !leafConnections.isEmpty();\r\n }", "title": "" }, { "docid": "79c44fc277cb47c23381c70bd55a06d3", "score": "0.6524722", "text": "@Override\n public boolean isLeafTypeNode() {\n return isOnlyDefaultInstance(keywordResults.getKeywordInstances(setName, keyword));\n }", "title": "" }, { "docid": "4d16fb8cfc083ed13ea5affbad24a32e", "score": "0.64259773", "text": "public boolean isRealNode();", "title": "" }, { "docid": "4d16fb8cfc083ed13ea5affbad24a32e", "score": "0.64259773", "text": "public boolean isRealNode();", "title": "" }, { "docid": "0b9f2192978bb35d9546e1a48fb538ce", "score": "0.6422133", "text": "public boolean isRoot();", "title": "" }, { "docid": "0b9f2192978bb35d9546e1a48fb538ce", "score": "0.6422133", "text": "public boolean isRoot();", "title": "" }, { "docid": "0b9f2192978bb35d9546e1a48fb538ce", "score": "0.6422133", "text": "public boolean isRoot();", "title": "" }, { "docid": "0b9f2192978bb35d9546e1a48fb538ce", "score": "0.6422133", "text": "public boolean isRoot();", "title": "" }, { "docid": "2401a621e3b73dce7b17efd07123984c", "score": "0.6420105", "text": "@Override\r\n\tpublic void setLeaf(boolean isLeaf) {\n\t\tleaf = isLeaf;\r\n\t}", "title": "" }, { "docid": "20cf6c09489c9c81db72eae77b6ead30", "score": "0.6415533", "text": "public static boolean isLeaf(int year) {\n\t\tif (year % 4 == 0) {\n\t\t\tif (year % 100 == 0) {\n\t\t\t\tif (year % 400 == 0) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "title": "" }, { "docid": "61a66340e6c9d9b39988152f1f85e2a4", "score": "0.6407401", "text": "@Override\r\n\tpublic boolean isLeaf(Object value) {\r\n\t\treturn (value instanceof Shoppinglist);\r\n\t}", "title": "" }, { "docid": "8ce49c3f4e35f2ca0724a00aee13c800", "score": "0.6397439", "text": "protected boolean isRoot( Object node ) {\n return getRoot().equals( node );\n }", "title": "" }, { "docid": "c9a726cd8fa863a4d6ce8072162d0647", "score": "0.63556474", "text": "private int nodeLeaf(int nodePtr) throws Exception\n {\n int x = nodePtr;\n\n while(tree[x][4] != 0)\n x = tree[x][4];\n\n return x;\n }", "title": "" }, { "docid": "6dc35d66acfafafd365bb54ce8f8ea8b", "score": "0.6342035", "text": "@Test\n public void checkNodeTest() throws StoreIndexException, IOException {\n tAF = ((AbstractTree)tree).getTreeAccess();\n if (tree.getRoot() == null) insert();\n checkNode(tree.getRoot(), lData);\n }", "title": "" }, { "docid": "646cac8920eab700130900a2c0747bc4", "score": "0.63417166", "text": "boolean getIsRoot();", "title": "" }, { "docid": "9ce35f78030692e2d49b0667f50ad7a6", "score": "0.63099205", "text": "public Boolean isValidTree() {\n\n\t\tif (root == null) {\n\t\t\treturn true;\n\t\t}\n\n\t\tAtomicInteger pbh = new AtomicInteger(-1);\n\n\t\treturn isValidTree(root, pbh, 0);\n\t}", "title": "" }, { "docid": "4e291e8bc7cb7f72dd0302b077e1247b", "score": "0.6290422", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn root.left == null;\n\t}", "title": "" }, { "docid": "54ef51b0f76d157edef1d33443649939", "score": "0.6285745", "text": "public boolean hasChildNodes();", "title": "" }, { "docid": "d26305e5defdb533f294e90c059aaf5d", "score": "0.6279784", "text": "protected abstract R doLeaf();", "title": "" }, { "docid": "d7b91521835e2d985357aa5d05358c42", "score": "0.6266365", "text": "public final boolean isEmptyNode ()\n { \n return (isInnerNode() && _children == null);\n }", "title": "" }, { "docid": "ebebf3ed19a6a2608fd6faa0c55dbc63", "score": "0.62626237", "text": "public void setIsLeaf (Boolean isLeaf) {\r\n\t\tthis.isLeaf = isLeaf;\r\n\t}", "title": "" }, { "docid": "fe71dbd91e851aa54d430c4fc8c2a2f5", "score": "0.6241535", "text": "public boolean isBinarySearchTree(Node node){\n return true;\n }", "title": "" }, { "docid": "0adc1717a339941cfc013b156f93bc53", "score": "0.6189955", "text": "public void setIsLeaf(Boolean isLeaf) {\n\t\tthis.isLeaf = isLeaf;\n\t}", "title": "" }, { "docid": "2301c96d317ae146fec96838d49c1ed5", "score": "0.6187705", "text": "public final boolean root() {\n return (flags & FLAG_IS_ROOT) == FLAG_IS_ROOT || parentId == traceId.lo && parentId == spanId;\n }", "title": "" }, { "docid": "5cc700c11dd59f5f5ba2cd7add1327f9", "score": "0.6182787", "text": "private boolean isBST() {\n return isBST(root, null, null);\n }", "title": "" }, { "docid": "f7148847e94f94708d6a510d3631e8a7", "score": "0.6179755", "text": "public boolean isEmptyTree() {\r\n return t == null;\r\n }", "title": "" }, { "docid": "34b26ec33acaa448eef3411735a8cf95", "score": "0.6172753", "text": "boolean hasChild();", "title": "" }, { "docid": "cc71a94d70ac1509073dd26879b44d0a", "score": "0.6159437", "text": "public void setIsLeaf(java.lang.Boolean isLeaf) {\n this.isLeaf = isLeaf;\n }", "title": "" }, { "docid": "7818281331cc885c3f7fe995714a186d", "score": "0.6143172", "text": "public boolean isRoot()\n // -end- 327A877801CC get_head358A5E2403D8 \"isRoot\"\n {\n // -beg- preserve=no 327A877801CC get_body358A5E2403D8 \"isRoot\"\n return isRoot;\n // -end- 327A877801CC get_body358A5E2403D8 \"isRoot\"\n }", "title": "" }, { "docid": "d48dc3bdd2614751e973c08cac546137", "score": "0.61120516", "text": "private boolean isUnderRoot(Node node) {\n while (node != null) {\n if (node.equals(rootContext)) return true;\n node = node.getParentNode();\n }\n return false;\n }", "title": "" }, { "docid": "45a9fdfaadf4119135c96c3e04e75e57", "score": "0.6102974", "text": "public boolean hasLeft(TreeNode node) {\n return node.left != null;\n }", "title": "" }, { "docid": "09717b39c068c20392d4cfb8e88bf4f9", "score": "0.60962677", "text": "public void countLeafNode()\n {\n leafNode = 0;\n countLeaf(root);\n \n System.out.println(\"Total leaf node: \" + leafNode);\n }", "title": "" }, { "docid": "90a5d0455eefb58ad0998230c02eb4e9", "score": "0.6090415", "text": "public boolean isRealNode()\r\n {\r\n return true; // to be replaced by student code\r\n }", "title": "" }, { "docid": "191dbd9e24226e1d158a3c833b1d2834", "score": "0.6079457", "text": "private boolean isBST() {\n return isBST(root, null, null);\n }", "title": "" } ]
4ea4ee489d1db41ba7050b1d6f0b8977
/ / / /
[ { "docid": "991eda3bce461bbb6bd072513b8b8115", "score": "0.0", "text": "public MANativeAdBuilder() {}", "title": "" } ]
[ { "docid": "042bdf62184e77a81000e32d30c9bd3f", "score": "0.56960136", "text": "public void draw()\n\t{\n\t\tSystem.out.println(\" _,., \");\n\t\tSystem.out.println(\" ,' ,'\");\n\t\tSystem.out.println(\" / ,'\");\n\t\tSystem.out.println(\" / , \");\n\t\tSystem.out.println(\" / ,\");\n\t\tSystem.out.println(\" / '\");\n\t\tSystem.out.println(\" / ,'\");\n\t\tSystem.out.println(\" '.__|\");\n\t\tSystem.out.println(\" | |\");\n\t\tSystem.out.println(\" |__|\");\n\t\tSystem.out.println(\" | |\");\n\t\tSystem.out.println(\" |__|\");\n\t\tSystem.out.println(\" | |\");\n\t\tSystem.out.println(\" |__|\");\n\t\tSystem.out.println(\" | |\");\n\t\tSystem.out.println(\" |__|\");\n\t\tSystem.out.println(\" |, |\");\n\t\tSystem.out.println(\" |--|\");\n\t\tSystem.out.println(\" |__|\");\n\t\tSystem.out.println(\" | |\");\n\t\tSystem.out.println(\" |--|\");\n\t\tSystem.out.println(\" |__|\");\n\t\tSystem.out.println(\" |__| ,-.\");\n\t\tSystem.out.println(\" |__|' ,' /\");\n\t\tSystem.out.println(\" _,.-' ',_,' o /\");\n\t\tSystem.out.println(\" / 8888 /\");\n\t\tSystem.out.println(\" | /\");\n\t\tSystem.out.println(\" 1 /\");\n\t\tSystem.out.println(\" `L 8888 /\");\n\t\tSystem.out.println(\" | /\");\n\t\tSystem.out.println(\" / ==== \\\\\");\n\t\tSystem.out.println(\" / ____ \\\\\");\n\t\tSystem.out.println(\" / (____) o \\\\\");\n\t\tSystem.out.println(\" / o \\\\\");\n\t\tSystem.out.println(\" / o ,'\");\n\t\tSystem.out.println(\" / _,.'^\");\n\t\tSystem.out.println(\" / __,.--~^\");\n\t\tSystem.out.println(\" ',,..--~~^ \");\n\n\n\t\n\t}", "title": "" }, { "docid": "d544a96e83b9f2aa728b187d339d08c0", "score": "0.5667819", "text": "public void draw() {\n System.out.println(\" /\\\\\");\n System.out.println(\" / \\\\\");\n System.out.println(\"/____\\\\\");\n }", "title": "" }, { "docid": "23e55cc0e0e815768ac9ca3c50ff6cfb", "score": "0.55135274", "text": "public static void main(String[] args) {\n\t\t\t\tSystem.out.println(\"HH HH\\tIIIIII\");\r\n\t\t\t\tSystem.out.println(\"HH HH\\t II\");\r\n\t\t\t\tSystem.out.println(\"HHHHHH\\t II\");\r\n\t\t\t\tSystem.out.println(\"HH HH\\t II\");\r\n\t\t\t\tSystem.out.println(\"HH HH\\tIIIIII\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"------ __@\");\r\n\t\t\t\tSystem.out.println(\"----- _`<,_\\\\\");\r\n\t\t\t\tSystem.out.println(\"---- (*)/ (*)\");\r\n\t\t\t\tSystem.out.println(\"~~~~~~~~~~~~~~\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\" __\");\r\n\t\t\t\tSystem.out.println(\"( 0>\");\r\n\t\t\t\tSystem.out.println(\"///\\\\\");\r\n\t\t\t\tSystem.out.println(\"\\\\v_/_\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\" ____ ____ __ __ ____ ____ _____ _____ __ __ ____ \\r\\n\" + \r\n\t\t\t\t\t\t\" | | / || | | / | | / ___/ | || | || \\\\ \\r\\n\" + \r\n\t\t\t\t\t\t\" |__ || o || | || o | | ( \\\\_ | __|| | || _ |\\r\\n\" + \r\n\t\t\t\t\t\t\" __| || || | || | | |\\\\__ | | |_ | | || | |\\r\\n\" + \r\n\t\t\t\t\t\t\"/ | || _ || : || _ | | |/ \\\\ | | _] | : || | |\\r\\n\" + \r\n\t\t\t\t\t\t\"\\\\ ` || | | \\\\ / | | | | |\\\\ | | | | || | |\\r\\n\" + \r\n\t\t\t\t\t\t\" \\\\____j|__|__| \\\\_/ |__|__| |____|\\\\___| |__| \\\\__,_||__|__|\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\" .',,,,'''......................................''''',,,,,;;;,;;,;;;;;;;;;;;;;;;;;,,,,;;;;,,,,,;;;,,,,;;;;;:;;;,,,,,,,,;;::;,,;;;;;;;,,;;,,;;;;;;;;:::;;,,;;;;;;;;::::::::::;;:::;;;;;;::::::;.. \\r\\n\" + \r\n\t\t\t\t\t\t\"...............................',,'''''''..'.................................''''''',;;;;;,,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,;;;;:::;;;;;;;;;;;:;''',,',,;;;;;;'';;;;;;;;::::,',;;;;;;;;:;;:::::;:::::::;;;;:::::::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................',,'..'''...................................'.',',,,,,,,;;,,,;;;;;;;;;;;;;,;;;;;;;;;,;;:;,,;;;;;;;;,,;;;;:::::::::::;:::;,,,,;',,;::::;'';;:;;:;;;;;;,;::::::::::::::::::::::::::::::::::::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,,,'...'.....................................'',,,;,,,'',,,;;;::;;;;;:;;;,,;;;:::::;,,;;;,,,,;;;;;;::::::;:::::::::::c:::::::;:::::::::,',::::;;;;;;;;:c:::::::::cc::::::::::::::::::::::cc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,,,,,....''.................................''',,,,;,,;,;:;;;;;;::;;:::;,,:cc:::::::::;;;;,,;:::::;;;::::::::::::c::ccc::::::::::::::::;;;::::::;;;;:::::::::::::ccccc:::::cc::c::cc:cc:::c:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,,,,'..''....''.'''.........................'',,,,;;,,;;;:::;;,;;;;;;::;;:cddc::::::::;;,,,,,;;;;:;,;;:::::::::::::::::::::::::::::::::::::::::::::cccc:::::::::::::::cccc::::ccccccccccc:c:,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,;,,,'......',''''.........................',,,,;::;,,;;:::c:;;:;;;:::::::cdko::::::::;;,;,,;;;;;;,,::::;;::::::::::::::::::::::c::c:::c::::::::::::ccc::cc:::c::c:::::cccc:::::::ccccccccc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,,,''''.........''.........................',;,,;;;,,;:;;;::::;::;;;;:::;:cokxc::::::;;;;;;;;;;;:;;;;:;,;;;:c::::::::::::::::::c::::cc:cc::::c:::::c:ccc::::c::cc::ccc::::ccccc::c::ccclcccc,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,'''''....''................................',,,,,;;;;,;;::;;:;;;;;;:;;,;:coxOxc:::::;;:;:;;;:;:;;;;;;,,;;:::::::::::::::::::::::::::ccc:::::::::::::::::ccccccccccccccccccccc:::c::::cclcc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................''''....'''................................''',,,,,;;:;::;;:::;,;:;;;;;,;::ldkkoc::::;,,,;;;;,,,;,,;;,,,,,;;:::::::::::::::::::::::::::::::::::::::::::::::cccc:::::::c::::cccccccccccccc::;'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................','..''.....................................',,,,,,;;::;,,,;;;,;;;;;;;;;;:ccldxdl:;::;;;,',,,,,,,,,;;;;,,,',;;;::::::::;;;:::::::::::::::::::::::::::::::::::c::cccc:::cccccc:::::::ccccccc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..........................................................................''''',,,,,;,,;,,;;,;;;,,,,;;;;:cccclol;,;;;;;;,,,,,;,'',,,,,;,,',;;;;;;::::;;;;;::;;;::;;;:::::;;;::::::::::cc:::::::::::cc:::::cc::::::::::::cc;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\".............................................................................,'''''',,',,,,,,,,;;;,,,,;;;:::::cc,.'',;;;;,,,,,,''''',,,,,,;;,',;cool:;;;;;;;;;;;;;;;;::;;;;;;;;;;;;::::::;;::;:;::::::;;;;::::::::::::::::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\" .. ....'............................................',,,,,'',,','''''',;,,,',;;;;::::::;,,,;;;;,,'''',,,,'.'''',,,,;;:ldxxo:;;;;;;;;;;;;;;;;;;;;;;;;;:::;;;;:;;;;;;;;::::;;;;;;;;;:::;;;;;;::::::,.... .... \\r\\n\" + \r\n\t\t\t\t\t\t\" ..................................................',,'',,,'',,,,'',,,,',,'',;;::c::cccc:::clc;;;;,;;;;,,''',;;;:clodxxoc;,,,,;,;;;;;;;,;;;;;;;;:;;;;;;;;;;;;;;;;;;;::::::::::::::::;;;::::::::,.. \\r\\n\" + \r\n\t\t\t\t\t\t\" ................................................'.''',,,,,,,,,,,''''',,',,'.,;::cc:clllccldxxddoccclc:;;;,,;:clodxdddoc;,,',;;;;;;;;;;;;;;;;;;;:;;;;;;;;;::::;;;;;;;::::::c:::::::::::::;:::::;.. \\r\\n\" + \r\n\t\t\t\t\t\t\" .................................................'''',,,,,,;,'''',''',,'..'',::::::cllllodxkOOkdoloodolc:::clodxxxxxdl:;;,,;;;;;;;;;;;;;;;:;;;;::;;;;::::::::::;:::::::;;::::;;;::;::::;::::::;.. \\r\\n\" + \r\n\t\t\t\t\t\t\"....................... .. ..................................................'''',,',',,,,,,,,,,,,'..';::::ccllooodxxkOOOkdooooodol::coodddxxxdoc,'',,,;;;;;;;;;;;;;;::;;;::::::::::;:;::::::::::::::;;::::::::::::::::::,.... ..........................\\r\\n\" + \r\n\t\t\t\t\t\t\"..........................................................................','..''',,',,,'',,'',,,,',;,,;::cccoxdlodxkkOOOOkdolodoolccloddoodxxxdc,,'''',;;;;;;;;::::;;:;;;:::::cc:::::;;;:::::::::::::::::::::::::::::::::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\".........................................................................','','''',,,,,,',,,',,,,,'',;::ccccloddodxkkOO0000koloxddocloddddodxxkx:',;;'';;,;;;::::::::::::::::::ccc:::::::::::c::::::::::::::::c::ccc:::::c:...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..................................''.....................................','',,,,,',,,,,,;;;;,',,'',;:::cccclllodxxkkkOOOKKOxxddxxoooddddddodxxdl;,;;;,,,';:::::::::::::::c:::ccc:::::c:::::c::c::::::::ccccc:cccccccccccc:,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...........................................................................'''',;,,,,,;;;;;;:,..'.',;:cccc:;;:cclodxkOOOOO0OOOkxxdoddodxxdddddlc::;;;:;;;;::::::::::::::;:::;;cccccc:c:ccccccccccccc::::ccc:cc:::ccccccccc:,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\".........................................................................''.','';;,,,;,,,;;;,,,,;,'';ccllc:,'';:coxkkOOOOOOOOOOOkxdddodxxddxxlcc:;,;:;;;,;::::::::,;:cc:,,::;;:ccccccccc:::cccccclccccccccccccccc:ccccccccc,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"............................................................................'',,,;:;;;;;,,,,,,,,;;;,;clooolcc:;;:ldkkOOOkxxxxkkkkkxkxdxkkxxxdcc::;,;::;,;;;;;;;;;::::cc::::c:::ccccccccccccccccccccccccccccccccccccccccccc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\".............................................................................',;;,;;,,;,;,,,,,;;;,:::coddddolcc:clxkOOOxo:;;:cldkkkkxxkkxddxdc:;,,;,,;;:::;;::;;::::ccccc:ccccc::cc:::::cccccc:cccccccccccccccccllcccccccc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"........................................................................','.,;,',,,,,;,,,,,,'',;,,,,:loddodddollcldkOOOkl:;'',;cdkkkkxxxxxxko:,'.''',;::::::;;,,::cc:::ccccc::c::cccccccccccccccccc:c:cccccccccccccccccccc;'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\".........................................................................,'..'''',,',;,,,'.','.',,,;:odoododdocccldxkO0Oxddooodxk00Okkxxkkkko:;;;,',;;:;;::::;,;:cc:::::cc::;:cccccccccccccc:cc:::cc:cccccccccccccc::cc::::'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..........................................................................''''..',''''''''.','...'',codooddooolcccoxkO0OkkkkkkkkOKK00OOOO0ko:,;;;;,';;;:;;;;;,;::::;::::::::;;::::::::c::::cc::::::cccc::::::cccccc:::cc::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"............................................................................'......''''''..''','..',codddoddoolc:clodxkOOOOOOOOOO0KKKK00KKOl,',,,,'.,;;;;;;;;;,',,,,::::::;:;',,,;;;:::::ccccc::::::::c:cc:::::::cc:::cc::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"................................................................................'.''''''''''......',:ooodooolll::cccdxxkkkkkkkkkOO00KK0O0Kkc,,'',,'.';;;;;;,'',,,;,,;,,;:,,:;,;;',;;:::::::::c:::cc:::::::::::::::::::::::,...............................\\r\\n\" + \r\n\t\t\t\t\t\t\" .....................................................'''..'''........',:oooddo:;::;;::cdxxxkkOOOOOkO0000K0OOOd:,,'',,'',,,;,,''',;::::;;;,;:;;:::::;;;;;;;:::;;::::::::::::::;:::::::::::::::,.. \\r\\n\" + \r\n\t\t\t\t\t\t\" ................................................'...'''..''..........,:lddddl;,;;'.'';lodxxkOkkkkkkOO000000Oo,..'.','',,,'..',,,;:;;::::,,:::::::::;::;,,;:;;;;::::::;::::::::::::::::::::::;.. \\r\\n\" + \r\n\t\t\t\t\t\t\" .................................................'..''.',,,'.........':looddlc:;;'...,:cldxkkxxxxkOOOO0K000kl'.','''''','''';:,',;;;:::;,;;;::::::::::;,,;::::::c::;::::::::::::::::::c:::::;.. \\r\\n\" + \r\n\t\t\t\t\t\t\" .................................................'''',,';::;'........',:loooddoc:;;,',;:::codxkkkkkOOOO000Okd:,,,;;,''',,,;;;::;,;;;;::;'';;;;;;;,;::::;;::::::::ccc::::::ccc::::::::::::::::,... .. \\r\\n\" + \r\n\t\t\t\t\t\t\"..............................................................................'',;:cc:::'........';:ccooddxxolccccccllllodxxkkkkxkOO00Okxl;;,,;;;;',;:::;;::::::;;::,',;::::c;.';;;:::ccc:::::::ccc:c::::c::::::::::::::::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\".............................................................................,,;::cccc:,........,;:clllddodxxdooloodxkkkkxxxxxxkkkOO00Oxoc:;,;:;;;,;:::::::cc::::::;;::cccccc;''',;:::::::::cc::ccc:::cc::::c::::::c::::::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"............................................................................,:::cccllc,.......',:ccclloooxxxxdxddxxxkkkkkkkkkxkkkkOOOOxoc::;,;:::;;:::::::::cc:;;:::cccc:cccc::;,;::::;;;:::cccccc:::::cccccccc:::::cccccc;'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..........................................................................',::ccccclc:'......,:ccclllooddddxxddxxxkxxxxxkkkkxxxkkOOOOko;;;::::::;;::::::cccc:;::;;:ccc:::cccc:;:::cccccc::;,;cc:::cccc:ccccccccc:ccccccccc:,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"........................................................................',;:ccccclllc,......,:ccllooodxxxdxxxxxkxxkkkkkkkkxkkkkkOOOOxl:,',:::c:;;;::;:ccccc:,;:;,;;:cccccccc:::ccccccccccc;;::::,;:ccccccccclccccccccccclc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\".....................................................................''';:cccccllcccc,.....,;:cclodddddddxxkkkxkkkkkkkkkkkkkkOkkOOOkdc:;,,;:c:;,;;;::::::::,;:;'',,;;::c:::cccccccccccccc;,;cccc::cccccccccccccccccccccccc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\".....................................................................',;:ccccclooool:,....';:ccloooodxddxxxkkxxxkkkkkkkkkkkOkkkOOOOko::;,,:::;,'';:::::;,,;,;:::::::cccc;,:cccc:cccccccccc;;:clc;:cccccccccccccccccccccccc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"....................................................................',;:ccccclccllcc:'....';ccclooodddodxxdxxxxxkkkkkkkkkkkOOOOOOOOkl;''',::;;;:::ccccc:;',,,,;:;;,,;cccc;,;::cccccccccc::;:::cc::cccccccccccccccccccccccc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\".................................................................'..',:cccccclllllcc:'....',:ccloodddooddxxxxxxxxxxxxxkkkkkOOkOOOOkd;',;'.'',,,,;;:::cc:;::::::cc::;,;cc:,,;:::ccccc::;;::::::::;;:ccccccccccc::ccc:cccc:c;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..................................................................',;:cccccclllloolc:'...';;:lllooddooddxxddxxxxxxxxxxkkkkOOkkOOOOko;'.',,',;;;,,;:::;;;::cccc:cccc:;;::;:::::::;,;:;;:::::;,,',;:c:ccc:c::::::::ccccc:;;:;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..................................................................';:cc:::cclllolllc:;,''';::clooodoodddddddxxxxxxxxxkkOkkkOOOOOkOkl;'...,;;;,''',;;;;;;;:::::cccc:,;::::c::::::,.',,,'',;;;;,,;;,;:cc::cc:::::::::::c:,;:;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...................................................................,:::::ccclcllllll::;;;;;:cllooooodooxdodxxxxxxxxxxkkkkkkkOOOOkkd:,'....'''.....''',;;;;::::::;,'';;;:::::::::;,,,,,,,,;;;::::;',:cc:::cc:::::::::::;',c;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\" .....................................';::::::cclclollllcc:::::clloollooodoodddxxxxxxxkkkkkkkkkkkkkOOkl,'...''..''',,,;;,,,,;;;;;;;;;,,,,;;;;;;;;::::::;;;;;,,;:::::,';:::c:::::::::::::::;,;:;... \\r\\n\" + \r\n\t\t\t\t\t\t\" .....................................,;::::cccllllllllllcccc:cclllloloooddddxxxxxxxxxxkkkkkkkkkkkkOOxc'.'...''''''',;;;;;,,;;;;;;;::::;;;;;,';;;:::::::::::;',:::::,';::::::::::::::::::,,;c::'. \\r\\n\" + \r\n\t\t\t\t\t\t\" .',.................................';;::::cclllllllllollollclloollodooodxxddxxxxxxxxxkxkOOOOOOOOOOko:.......,,'''''',,,;;::::::::::::::::;'';:::::::::::::;,,:::::;,;::::::::::::::::::;,;:::'. \\r\\n\" + \r\n\t\t\t\t\t\t\" .',..................................';::::cllllllloolllloolllloloolooddddxddxxxxxxkkkkkkOOOOOOOOOkdl;'..''..,;;;;,'',;;;;::::::::::::::::;,,;;;;;;;::::;,,;;;::::;;:::::cc:c::::cccc::::;;;:;.. .. \\r\\n\" + \r\n\t\t\t\t\t\t\"..............................',..................................,;::::cllloooooooloolloolooooooooddodxxxxxxxxxkkkkkkkkkkkkkkkxo:,...,;,'',;;,'',,;;;;;;;;;,,;;;;;;;;;;;;;;;;:::ccc:,';:::;;;;::ccccccc:cc:::cc:::c:::;;;'...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,;...........................'.....;::c:cllclooooooooodoloooooddoooodddxxxxxxxxxxxxkkkOOkkkkOOOkkkd;.....,:;,',,,;:,',;;::::::,';;;,,;;::ccc:;,,:ccccc;,,;:::::ccccccccccc::ccccc::::cc::cc;'...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,,...................';,'.........,::cccccoloolooooooooooodooddddoodxxxdxxxdxxkxxkkkkkkkkkkkkkkkxdl;'',''';;;;',::ccc;'',;:;;;;,;;:::::::cccc:;;:ccccc;,:cc:ccccccccccccccccccccccc::ccccccc;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,;...................',;:;'......':ccccclllolooloddodddoddoodxddddddxxddkxxkkkkkkkkkkkkkOkkkkxkkxl;;,.,:;,,;;::;;;:::c:;,:ccccc;,,;;:::::::::,,:ccccc:;,;:::::::cccccccccccccccccc::::::::::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,;....................,;::,'','..':ccccclollloooodoodddooddoooodoodddxxkxddkkkkkkkkOkkkkkkkkkkkkdc::,',:::;;:c:;'';:;;:;,::ccccc;,',,''',,,;::c:;;:;;:::ccccc:,,:ccccccccccccccccc;;:ccccccc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,;'...................';;,'.',;,',:cccclllolooodooooooddodxddodxxodxxdxxxxkkkkkkkkkkkkkkkkkkkkkxoc:;,'',::;,:ccc:,,;;;:::cccc:cc::::::cccccccccc:;;cccccccccc:;:cccccccccccccccccc;;:cccc:::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................;;'....................'......''':ccccclllllooodoooooooddddddddodddddxxxkkkkkkkkkkkkkkkkkkkkkkdll:,;;,,;:::::ccccc;''',::::::;;:ccccc::cccccccc:,,;:cccccccc:;:ccccccccllccccccccccc:;:::cc:,...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,;'.............................':ccccllllllloooooolddooddddddddddxxxxdxkxkkkkkkkkkkkkkkkkkkkxlcc:;;,;:;,;:::ccccc:;:::::::::,;ccccccc;,;::ccc:::::;;:cccccc:;:ccccccccccccccccclclccc:,';c:'...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,;'.'''.........................';ccccclllllooodddooodddddddoooddddddxxxddxkkxkkkkkkkxxxkxkxdolc:,,;,,::;,;::::cc::;:c::::ccc:,;:ccc:::,,:::::::ccc::;::c:::::ccccccccccccccccccc::::::;,,;:;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,;'.............................';ccccccllllooodoooooloooodddooodxxxxxddxxxxxxxxxxxxxxxxxxdddl::,..',;:;''',;;;;;,,,;::cc:::::;,;::;,;::;;::ccccccc:;;:cc::::cccccccccccccccc:::::::::c:;;::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................';'..............................,:c:cccclloooodooooolodoooddooooododddxxxxdodxxdoddddodddddoc;;'....''',;;,;;;:;;;;,;::::c:::,,,,;;;:cc:;,;cccc::;'.,:c:cccccccccccccccccc:;;;::cccc::;;:cc;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,......''.......................';:::cllclllloooloolloollllloodddddoddodxdodxdddddooooodoodoc,'...''..,;;::::::;,;:;',;;;;;;;;,,;:::ccc::,',;:;;;;,,,,::ccccccccccc::::cc:,,;::ccccc::;,:cc;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\" ..'.......''.......................,::::ccllccllllollllllollolllloooddoddooddxxxxdooooodooolol;'....';,',;:::::::,';::;;;;;;;;,,;;;:::c::c:,',;;;:;;;:;,,:cccccccccc:::::cc:;;;;;;;::;:;;;;,,'.... \\r\\n\" + \r\n\t\t\t\t\t\t\" ...................................';:::::clccclllooolllllllllllclooooodooddxxxxdoloooooolollc,...''',;,';;;;;;;;,'';::::::::;,,::;'',:::;,'';::::::::;,;:::::::::c:::::::cc::;;;;;;;''''',,,'... \\r\\n\" + \r\n\t\t\t\t\t\t\" ....................'...............';::::ccccclllloolllllllllllllooooooodxxxdddollllloooolll:,...','',,'',,,;;;;,,,,;;;;;:;;;;;:::,',;;;;,,,,;:::::::;;:::::::::::::::c::::::::::;;;;,,,,;;;,.. \\r\\n\" + \r\n\t\t\t\t\t\t\" .....................'................,::::::cccccclllllllllllllcllloooodddxddddocccccclloolol:,....'''';'.,,,;,',;::;;;;;;;;;;;;:::;;::::::::;,,,;:::;;:::::::::::::ccc:cc:::::::;;;:::::::::;... \\r\\n\" + \r\n\t\t\t\t\t\t\"..................................'''.............................';c:::::::cccclccllllllcclcccloolddoodddddoc::::ccllllol:'.......',',;;;;,'';:::::::;;;:;;;;;;;:::::::::::,,;::;::::::::::::::ccccccc:::::;;;::c::c::ccc;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..................................'''..............................,:ccc:::::ccccccllllccllllcclooooodddddddo:,,;::clododo;.....'''.',;;;;;;,';;:::::c:;:::::c:;,;::cc:cc:c:;;::::::::cc:c::::ccccccccc:::::;;:::::cc:cc:c;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................''..''.......................''.....',;:ccccc::cccccccccccccccccloooooodxddxdc,..;:ccllddol;......',,,,;::::;,,;;::::;;;;:ccccccc;;::c::cccc:;;ccc::ccccccc::c::ccccccccccccc:::c:::;;:cc::;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"....................................'',''...................';,......',;;:ccccccccccccccccccccccllooodddxxxdc,..,:ccloddol;....''..,;,;:::;;,;::;;;:;,,::ccccc:::::::::::::::ccccccccccccccccccccccccccccccc::cccc:,;:cccc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\".....................................',;,'...................'..........'',;:cccccccccclccccccccclodddddxxxoc,'.':ccloddol;'.......',,,;::,';:cc;;:::c:;;;;:::;,:ccccccccccccccccccccccccccccccccccccccccccccccccc;;ccccccc;..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...................................','.'',,'...............................',::ccccccccccccc::::cclodddddxdo:'..':ccloodoc;',,,'..'.',,;:::::cc:;;::::cc:,::::;;:cccccccccccccccccccccccllcccccccccccccclc:cccccccc::cccccc;..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................',,''','',;;,'..........................''''.''',clcccccccc:;,'';:ccclooodxxd:'...;ccloddoc;,;;;;,,,'''''',,;::c:;;:c::cc:,:cccc:;:ccccccccclccccccccccccccccccccccccccccccccc:clccc:;cccccc,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................'',,',,,,,,,;,'....',,'','.............';;;,'...';cccclccc:;,...';:cllododdxxl'..';cccloool;'',;::;,,,,,'...,;;::,;::c::c;,:cccc:;;cccccclccccclccccccccccccccccccccccccccccc::ccccccc:,;::;'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,,,,,,,,,,,,''......';,';::,.........'',;;,,,'..';:c::ccc:::;'....,:cloooddooc,...,:cclooll;,,',;:::::;''..',,',,',:::::;,,::::::;:ccccccccccccccccccccccccccccccccccccccccccccccccc::::::c:,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,,;,....'',;,...,'..';;;;::;;;;;,'...';,,,,,;,'..';::::c:::::,....';cclllodddl,...':ccloolc::;,,,::::::;,'..'..'','',;:::;;;;;;::::::ccccccccccccccccccccccc:cccccccccccccccccc:cccc;;:ccccc,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,,'.......'.''.,;,,,;;;;;;;;;;::;;,,,,,,,',,,''''..';::::::::;'..',;::cllodool;...';::cloolcc::;,,;;;;:::;;,'....''',;;::::;;;;;;:::::ccc:::cccccccccccc::::::ccc:cc::::::cccc:::cc:;;::cccc,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................''........',,,,;;,',,;;;;,,,;,,,,;;;;'....'''.......,::::::::;'.',;;::ccloooll,....,::cclllc::::,,;;,;;;;:::;,''''''...,;;;:::;;;:::::::::::::ccc::::::::::::::::cc::::::::clc:cc:::::clolcc,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"....................... ..................',;;;,'''',,,'..'',',,;;'...............'',::::;,...',;;::cloolll:'....,::cccccccc:;',;;;;;;;;;;;;;;,,,'......';;;;;;::::;::::::::c:::::::::::::::::c:::::cccllc;,::::::::ccc::'... .........................\\r\\n\" + \r\n\t\t\t\t\t\t\" .................,;;;,..........'..',,'...................';;,'..'....';::clllllc;,...';:::::::cc:;',;;,,;;;;;;;;;;;;,;,,,'....''',;:::::;;;::::c::::::::::::::::::::::ccccccc:;;;::::::::::;,... \\r\\n\" + \r\n\t\t\t\t\t\t\" .................,;;;'........'....'''''........','............',,'...,::clllllc::;....';:::::::;,..',,,;;;;;;;,,,,',,,;;;;'''...''',;:;;;;;::::::::::::::::::ccc::ccccc:c:::::::;;::::::;,;;.. \\r\\n\" + \r\n\t\t\t\t\t\t\" ................'',;;,.......,,'.'''',;;,.......';,'............''..'.';:cclllccll:,.....'',;;,''.....'',;;;;;;,,',''',,,,,,;;,,,'...''',;:::;::::::::::::::::cccccccc::c:::;;::::::ccc::;,;:'. \\r\\n\" + \r\n\t\t\t\t\t\t\" .................,;;,'',;;,''....',''',',;;;,........'''................''';:::::ccllcc;........'...........'',;;;;;,,;;,,;;;,,,,;::;;,''''...',;;;::::::::::::::::ccc:::::::::;::::cccccc::;::::'... \\r\\n\" + \r\n\t\t\t\t\t\t\"............................................',''.';;;;,'....',',,,,;;;,,'...........................',;:cccccllcc:'......'.........'....',,;;;;;;;;;;;;;;;,,,;;::::::,'''',,;;;::::c::ccccc::cc::::::::::::::;:cccc::;;::::,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\".................................................',;;:;;,.''',,,,;;;:::::,'............................,::cccccc:,'.....,;,'''............',;;;;;:::::;;::;;,,;,;::::::::::;,';;,;::cccccccc::cc::::c::ccccc:::cccccc::ccc:,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...................................................,:::::,',,',;;,;:cccccc;............................',;::ccc:,......';cc:;;,''...',,'','',,',,,;:::::;;;:::;,',;:::c:::c:::;,,,;;:ccccccccccccccccclllccccccccccccccccc:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...................................................',;,;;:::;,,;;;;::ccccc:,'................''''.....,::;;::::,'''...';cccccc:;;,',,,,,,,,,,',,'.',::::::::::::;,,;::::::::::::::;,;::::cccccccccccclolccccccccccccllcccc;'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,:;'''''................'',;:cc:;,,,,;:::;::;,''..'.'..''.....';::;,'.'',:c::::cc:;;:,',;:ccccccccccc:;;;,',;,,,,,'.',;;::::c:::::::::::;;:c::::::cccc:::::::ccccccccccclcclllcccccclllllccc:,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................':ccccc:;'.................',;::::,'.',;;'''''...',''''''..''';cccc::c:,',;;;'':cccccc::::cc:cccccccclc::,''''',,''..''',,;:::cc:::::::::::::::;;::cc::::::::::c:::ccccccccclooolloloollccccc;..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................':cccccc:,..............','..'',;:;'...'.....'''.'''','''','',:lccccccc:,''''..':ccccccccccccc:::cccccc:::;,''',,,,''''''',;::cc:::::::;;:::::;,,,;::::::::ccc:cccc:::;:cccclooolloollllc:clc;..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................';::cccccc:;'''.........','......'..'...........'....''',;;;;;:cccccccccc;'...',;cccccccccccccccccc:::;,;:::;,,,'',,;''''',;,;:::c::::::::::;;;;;;,,,::::c::ccccccc:::::::::::cllcclloolccccc;..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................;:;::ccccc:,'.......','...............''...........'..'',;,,;:ccccccccccc:,....',::ccclddoc;;ccccc:cc;,;c:;;:c:;,''''..''''..''',;::::::::::;,,,,,,;::;:::::::::::::::c:::::::::;;;;:cccclcc,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,;;;;:::ccc;...........................,;,.............','',,;:ccccllccccc;'.....,:c:cloodo;',;;ccc:;;;::;',:::::;'..',''''......'';::c::::::;;;,'',;;;;;;,;;;;:;;;,,;::::c:::::;;;;,'',;:c:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,;;;;;;;;:;'............................';;,,,,'........'..''',:clooddooolc;'....,:c::cclll:;;;;;;;;;;:;;''.';;:::;'......'.........'';:::::c:::;;,'.',;;;;;;;;;;;;,;;;;;;:::::::::::;,'''''...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................;::::;;,;;,'..............................'',;:;;,.............,:llclllllooc;,'....'..',;ccc::::::;;::::;,,,''';;::;;,;,'.',,,'.',,'....',;::::::::;,,'...,;;:::;;;;;;;,,''',;;::::::::;,,,'...............................\\r\\n\" + \r\n\t\t\t\t\t\t\" .'::::::;:;;,,''...............................';;::,'...........'''',;:;;:llc::;;,'......',;::::ccc::cccc:;;;,.';;;::cc::,'',;;;'',;;,....';;;;::::cclc:;,....,;:::::::;;;,,'...',;::::::ccc:'.. \\r\\n\" + \r\n\t\t\t\t\t\t\" .,:cc::::::;;;,'.........................'........',::,''.............''''',;::ccc:;:;,'....'',;::cccc:cccc:;,,'';;;:::::;'',;;;:;;,,;;;,'..'',;cllcccllool:,''''',;;::::::::;;,,'..,;::clllll,. \\r\\n\" + \r\n\t\t\t\t\t\t\" .,ccccccc:::;'...........................';,,,'','..'','''..................',,:::cclc:;,,,'...,;:lolc::cllc:;;;,,;;;;:::;'',;:::::;;;::::;,''.,:dkkxddoccccccllc::c::::;;:::cllolc:;;;;:::ccl,. \\r\\n\" + \r\n\t\t\t\t\t\t\" .,ccllllllllc'......................''...';:;;;,,;;'..........'................',:cccc::::c:;;'',:llccccokxocccc:;;:;,;::c:;;:cccc:ccccccccc:'...cOKXKOxo:,',cldxkkxdoolccllllloxO0Oxolc;,;;;c,. . \\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,:::lolollll,....................',;;,;;,;;,,;;,;:::;'.........''.........''....,;:::ccccccllc;,;;,,:clx0KOddolcc;::;',:ccc:ccccccccccccccc:,...'cxO000Kkl,.',;codxkOOkxxkkOkxxxk0KK0Oxl:;,;;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................';,,;:::;,,,..'...................,;::::cll:;::;,,;;;,''''.....','..''''...'',;,',;;;ccccccoddol:,,,;clxO0Okkkdol:;::;,;:cccllcccccclooollcc;'...',cooxOKKOo:'',;;:lodxkkxxO0OOOkO0KKOOko:::,...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"................................,,,,'''''....''...............''',;:::lool::::;;,''',;;:;''''....',;;,,,',;;;;,,,;;:;;;:coxxkkxolc:cldxkxxxxkkkdlcc:;,,;cloooooooodxkkkxoc;,,,'.....':oOXN0dlcc:;,,;:looloxkk0K0000O00Oolc;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,'';,'',;:;,,'','.',,,''........''',;::ccc:;::::;',;,'',;;;;;;,''...',,;cc:;,',,,,,,;,..;clodkOkxdxdccclolooldk0Oolc::::;:clodxxxdodddkkkxoc;,''''',,'';cdKXKkddddool:;:::;:codxxkOO00000Od:'..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,,',;,;:::ccc:;;,,,,,,;,'''.......'',:c:,''',,;:;,,,,,,,;;;;;::c:,''''',;cllc::c:;;;;,''';lcldxkxooxollllcclloxxxdololc::::loxkkkkxxxxO0Okxoc;,,,'',,',;clx0K0kxxkxxxxdollc:ccclolldkOKK0KKk:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................''''''',,;;::::;::;,,,,;;;,'..'''.'.'''''',,,;;::,'''''',,,',:cccc:;,,,'';clllllllllc,',;:cllllodollllllllccdkxooodxxxolcccclldxkOOOkxk000Okdolc;,',;:;;:clodO0kxkkkkkkkkkxxxdolllc:coxkO0K0l..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................'.'',,,,,,;:;;:::,;::cccllc:,,::;''.,,..',,'',;;;;,;,''',,,;ccclodolcc:;'',:clcclllllcc::::cllllcclccllodoc:ldOOxolodkkdllc:clooodk00OO000Okkkkdlc;;;;;;;;;cld0KOkkkkkkkkkkkkkOkkkdo:;;coxkkc..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................',,'.''',',;::;;,'',;:ccldxdddddolc:,''''''''';,,;,,;;,,,'',:ccllodddxxxdoc::clcccclddolccc::clcc:;:;;clooool::dOOxc:ldkkdoc;;codddxk0OOO00OkkkOOkxoc;;,,;,;:clx00OkkOkOOkkkOOOOO0O00Oxdl:clo;..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,;,..'''''''',,,',;::clldxkkkkkkxoc:::;;,'',;;,''''';;;;,';:cccloodxkOOO0Okxxolccccldxxolllcclllccc;;cllllllcccclooc::ldxdlc;:coxkddkkkO000OOO000OOkdlc:,',,:cldOK0OkOOOOOOOOO0OO000KKK0kdl;...............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,,...','..''..',,,,,,;cllodkkOO0Okdccc:,;::ccc:,....',,,'';:cccllooodxO0000K0OOko:,;cloolcllcllllllcccllllllllc:cccc;';coxxoc;;:okkddxdkXXK0OO0000000kkxoc;,;:clxKX0kkOO0OOkkOO000KXXKXXX0Od;..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................''';,'....''....,''',;:cccloooddxkxdlccclddxxdl;',''..,'.,:::::ccloddxkOO0KKKKKKOxoccccccccccllollolllcllclllllllc;,'.',:oxxoc::lx0kodxOKXX0O000000O0KOkxdolc:;clkXNKOkOOOOOOOOO000KXXXXXXN0:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................''''..''.............,;::::loolclllloodxxxxdoo:,,,'''..',,;::::::cloddxkOO00KKKKK00Okxoc;,::ccclclddodddddxddoooll:;'...,clddlcccok0xlldk0KXK0O00000000Okkkkkdlcclx0NXK0OkOOO000OO00KKKXXXX0c..............................\\r\\n\" + \r\n\t\t\t\t\t\t\" .. ..',,,,''''..''.....'....,;;;;cddc:cldxdoddddlcc;''''''..',,,;::::::cclodxkOO0KKKKKKKXKKOko:;,;:::cclllodxkkkxkkxxdlc:;'...';cdlccccokkl;:lxOXNXKKXKXXK000000K0OkdlcldOXNX0OkOO0KK00000KKXXXXO:.. \\r\\n\" + \r\n\t\t\t\t\t\t\" ..'',;;;,,''''..........';;;;;:odoooxOOxddoooccc:,''.....',;;,;::::ccccloodkOO0KKKKKXXKXNXKOdc:;,,;ccccccodxxkkOOkkxollc;,'.',:cllclcokd:;:coOKXXKNNXKXX000000000Oxl:cd0NWNK0OOO000KKKKKKXXXX0:.. \\r\\n\" + \r\n\t\t\t\t\t\t\" ..''''''',,;;,.''....,,,;::::cclodxxxxkkxddoooolc:,''..'.',;;,,;::::ccccclodxxOOO0KKXXXXXXNNKOkdollc;,;cccclodxkkkkkxdxxddolccccllllclxkoccccox0XXXXK0KXXXXXXKKKKK0xc:cd0NWWXK0OO0000KKKXXXXX0c.. \\r\\n\" + \r\n\t\t\t\t\t\t\" ..',......'';;,,'..',::c::::cllllloodddxdoldxxxdooc;;,;;,',;;,',::::ccccccclodxkxk0KKXXXXXNNNXXXXX0xo:;;;:c:ccloodxddxkOOOOOkkxddooolcoxxdddlccdOKXK0OOKXKXNNXXXKKK0kdlcd0NWWNXK00OO000KXXXXXO:... \\r\\n\" + \r\n\t\t\t\t\t\t\"...............................''........',;;'..,;;:c:ccccllllclooooodoldodxxxxxolc::;,,;;,'';:::ccccccccodddxkO0KKKXXXXXNNNNNNNNX0xl::;:::ccclloxxkOO0000OOOOOOkddodkkOOOdlcokXXKkdOK00KKXXXXKKXX0xccxKNWWWNK00000KKKXXXXO:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,;;,,''.....',;,,;,;cllcclllcccccoooolooolcodddxxxdol:;;;;,,'.';;:cccclllllollodkkO0KKKKXXXXNNNNNNNNXKOxolc:::ccccoddxkkkOOOOO000OOOO00OO0KKOxxkOKX0dx0KOxxkOKKKK0OOxocok0KKK0OOOOOOOOOOO0XOc..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................':ccc:;,',;,,',;:::;;codooodoccc:cclooooolcccccldxkkkxdlc::;'''..,;cllcclooolllloodxxO000KKKKKXXNNNNNNNWWNXOdlcc::cccclloodkOOOO0000O0XK000KKXXX0xkKKxdOK0xolodxkxdlc:::codxdddoolllloodddkKOc..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................:ddll;';::::::::;:cclclddxxxdlccccccldoooolc:ccodxxkkkkxolc:,'....';:clllllolllloddddxkkO0KKXXXXXNNXNWWWWWWWNXOoc:cccclllllldkkkkO00000KK00KKKKXNKOKKkoxKXKkooooooo:,',;:okO00OkdoooodkkkkO0Ol'.............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................:xkxocclccccccc:;:clllloxkkkxoccccloooddoooc,;cloodxxkkkkdlc:,'''..';::clloollooooodddddxOO0KKXXXXXXXNNNNNWWWWWNKkdocllccclldxxk0OOOkkkO0000000XNXKOK0dd0NNKkxO00Okl,'';:ldOKXXK000000OOkOO0kc'.............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................;oo::lxkxoc:,',;:ccccllodO0Okdlcccloodddddoc::cloxddxxxxxxolcc:;,''''',;:llloollddooddddddxkO0KKKKKXXXXXXNNWWWWWWWNXK0koooolllodOKKK0kddxxkOOkkOOKKKK0xdOXXXKOkOOOOd:,,:cok0KXXXXXXK0000O00K0l'.............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................';,',ck00ko:,,;;;;;:ccoxO000Odllcclodxxddxdocclllodxdddddoolccc:::,''..',:ccloolooooodoodddxxxkkOKKXXXXXXXXNWWWWWWWWWWNNK0kdoloodO00KKOxdooodolodk0KK0OkkKKKOdoooolc:;,,:ok0KXXXXXNX00O00KKKOl'.............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................'',,:oxxdl;,;ccc;;:coO00KKK0xoooodxkkkxxkxxolcccllllllllllllcc;;;,,,'...',:ccloooollodooooddddxxOKKKKKXXKXXXNNWWWWWWWWWWNNXK0OOxxO000OOOxolllllldxO0000O000xolc:;;,;:::clxOKXKXKKXXK000OO0Ox:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................,',;;::cc:;:coolc,':okKKKKK0kxdddxxkxkkkkxxolccccloodooollcccc::;;,,,,'''.',;:clllodooooodooddxdxkOO000KXXKKXNXNNNWWNWWWWWWWNNXXNXXKKKXX0Okdl:cclloxxkO0KK0xlc:,,,;::cclkKOOXXXXXNNXK00OOKKk:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................;;',;,;;,',ldxkko;,,ckKKKK0000kxxkkkOkkOOOkxocclodxddoooolcccccc:::;;;;;,''''';:ccloooooololooooodddxOOO0KXKXXXXXXXNWWWWWWWWWWWWMWNWWWWWNXXK0kdlcllllox0000Odl:;,,:clodkKNOx0XK00KXXXK00OKXk:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................'::col;,,,,:ok00Kkc;,lxO00OOKKK0OOOOkOOkOOOOkddddxxxxxdoolcccc:::cc::::;;;;;,'.',;:cccooooolloooooddoddxxk0KXXXXXXXXXNNNWWWWWWWMMMWWWWWNWWWNNNNXK00OxollodkOOkoc,';lxOO0KXX0kk0X0OOKXNX0OO0KO:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................;clol;;;;;;cxOO0kl,',:lloodO0KKK000OOO00OOOkxxxxxxxxxxdooolccc::::::::::;;;;;,,,,,;;:clclllloooollodooddxkkO00KXXXXKKKXXNNWWWWWMMWWWWWWWWWWWWWWWWWWNK0OOkdoool:;cxOKXXXKK00OO000kk00KXK0000Oc..............................\\r\\n\" + \r\n\t\t\t\t\t\t\" ....':cccccoddc;coooooc:;;;:;::clx0KKKKK0xdk0KKOxdxxkkkxxxxxxxddolc::::::cc:::;;;;;;;,,,'',;:ccclllllloloodooddddxkOO0KKKKKKXXXXNNWWWMMMWWWWWWWWWWWWWWWMMWWWNX0kocldk0XXNNNNKOO0OkO00OOOO00KXK00Ol..... \\r\\n\" + \r\n\t\t\t\t\t\t\" ...;ccccloddlcclccccccc::::cc::ldk0KKKOocldxxdodkkkkxxxxxxxxxxdc:::::::::::::::;;;;;;;,,'',::ccccclllollooodddddxxdxkO000KKXXXKXXNNWWWWMWWWWWWWWWWMWWMMMMWWWWNK00XNWNNNNNX0OO00OO00O00OOO0KKKK0l.. \\r\\n\" + \r\n\t\t\t\t\t\t\" ..,:cccccclccccccccccc;,;:cc:;,;lxOOxl;,,;:c:cdkkkxxddxkkkkkxdooc::c:::::::::::;;;;;;;;;,,;;;:cccclllllllooooooooodddxkkOO0KKK0KKXXXNNWWWWWWWWMMMMMMMMMMMMMMMWWWMWWWWNXK00OO0KKK000KK0OOOO00K0l.. \\r\\n\" + \r\n\t\t\t\t\t\t\" . ...;::ccc:;:ccccccccccc;',:cl:'.,:ccc;'',,;:ccloxxxdoldkkkOOkkxxxoccc:::::::::::::;;::::::;;,'',;;:cllclllllolllooooodddxddxkOOO0KKKKKXXXNNWWWMMMMMMMMMMMMMMMMMMMMWWWNXK00OkkO000K0KNX0OOkkkkOkc.... \\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,cc::c::,;cllccccccc:,',;loc,',:;,,,,,;:cccclodxdcclxOkkkddxkOkdlccc::::::::::::::::::::;;,....',;:ccclolloollllolooodddddxxkkk0000KKKKXXXNWWWMMMMMMMMMMMMMMMMMMMWNXXKOOOOOOkO0KKXNXKK0Okkxkx:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,:cccccc::clcccccc:::;,,,:c;,',::::::;,;:ccclloolcclxkdolclxkOkxdooolc:::cc::::::::;;:;;,.........,;;::cccloloooloooooddddddxxxxkkO0000KKKKXXNNNWWWWMMMMMMMMMMMMWNKO0KkdOX0xxOXX0XNNNK0000kxxc..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................':cccclcccccc:cccc;,,;:;;,,'',;::::::::;;::ccc::;;:ldo:,;:cxkOOkxxxxxocc:ccc:::::;;;,,''............',,;:clolloooodoooddddoddxxxxxxxxkOO0KKKKKKNWNXNWWMMMMMMMMMMWXxcxKOx00dld0XKkOXXXKKXXXOxd:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,ccccclc::cc::cccc;,;;;;;,,,,;:;,,;:;::::;,;:,'''',coc:loccxOOOOkkkkkxdoccccccc:;,'''''''''''.''''.....',;:clllloooddddododddddxxxxxxxkkkkOOO0KXWWXXNWMMMWWMMMMWWNOod0K0KkoookXKkkXXKKXNNNKOx:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................,cllllllllcclllccccc:;,,';:,'',;,,,,',,,;,;;;,,,,,:cccldxddkOOOkkkOOOOkxolcccc:;;,',;,'',,,;,'''''''...''',,;ccllloddddoooddodxdddddxxdxkkkOOOO0XNNNNWWWWMMMMMWNNNN0k0XN0ddxdxKKOOKX0OKXXNNXOc..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................':ccccllllddolc:;;:;;:;;;;:;,,,:;;;;;;,',,;;;;;;:;;::clodolxkkkkkxkkOOOkxolc;;;:;,',;,,,'''',,,,,,,,'''',;,'',;:ccloooooooooodooooooddodddddxxkkO0XKKXXXNNNWWWNNNNWWNXNXkodxookOxk0K0OOO0KNNKo'.............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................';::::lllldxol:;:::::;;::,:;;,,:;;::;;;,;;;;;::cc:;::cllllllooxkdoodkOOkdoolccc;,,,;,''',,,,',,,,,;:,,,,;::;,,;:::ccclllooodooooodooooolloooooodxdxkO000KKKXXKKXNNNNNWWNKOxdoloxkkOkxdkOkk0XKo'.............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................';;;ccllooollc:::cc:;:::cc:,,;,:c;:cc:;;,,;::;:ccccc:;:cllllllodoodooxkxddollllc::;;;;,',,,;,,,,,,,,;;;:::::;;:c:ccccc::ccclllllloolllllolllllollododxxxk00K0OO0KNNNNWWXKKKK0xddxxkkdodxkxxKKo'.............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................':ccclllllllcccccc::;:cccclcccloc:cdxoccc:cc::cccclc;,;clllooc:codooxkdodxolllllcccccc:,;,,;;;;,,,,,:ccccc::,,:ccccc:;;,'''',,;::ccccccllcllllllllllloxxxkO0KK0O0KXNNWNXKXNNNNKOxddxxxxdoloxxc..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................':lcc:cclcccc:;cllc;,;:cccclx000xdx000Odlccccccccclc:,,:lloolc:lk00OO0Okkkdlllclllllcccc:;;,,,,,,,,;:ccccccc:,;:ccc:;,,,'''.''''''''',;:ccccccccccccccokOkkOKXNKOO0KXNNXXXNNWWWNKkoldxxdllllo:..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"..............................'::;,;:ccclllcccclcccldkdllx0XXXK00KKKK0dlllcccccccccc:;:cllclxkOKKkddkkxxdollllccccclllccc::::::::;;:ccc::c:;;:c:::;'..,;,'..........'''';:::::cc::::lx0K0O0KXNX0OO0XXXKKNWWMMMWX0kdoolccccc;..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"...............................;;,;::cccllclxkkkxxxO0KKOkOXXXXXXKKXXXKxldkO0kolcccccccccccldkkOKKd:cldxxxdddollloddxdoolccccooollcc::::cccc::cc:::;;,;::;'..............'',::cloc:::lx0XNK0OOKXXK0O0KXKKXNWWMMWWWNKOkolllcc,..............................\\r\\n\" + \r\n\t\t\t\t\t\t\"cccccccccccccccccccccccccccccclddddxxkxxkkxOKNNXXKKXNNNNXXNNNNNNNNNNNX0k0XNWN0kkkkxxkkkxxkkO00KNNOdxkO0K0O00OkkkO0000OOkkkxkO0OOOOkxxxxkkkxxxxxxxxxxxxxxdollloollllllloolldxxkOOkxkxk0XNWNXK0XNNNXKKXXXNNWWWMMMWMWWNX0kOkxxdcccccccccccccccccccccccccccccc\\r\\n\" + \r\n\t\t\t\t\t\t\"\");\r\n\r\n\t}", "title": "" }, { "docid": "2d71df50da57ba994bb1f4b89f9cd7e0", "score": "0.5465977", "text": "public static void bottom() {\n for (int line = 1; line <= Size; line++) {\n for (int space = 1; space <= 2*line-2; space++) {\n System.out.print(\" \");\n }\n System.out.print(\"\\\\_/\");\n for (int V = 1; V <= 3*Size- 2*line; V++) {\n System.out.print(\"\\\\/\");\n }\n System.out.println(\"\\\\_/\");\n }\n }", "title": "" }, { "docid": "e0336c4a65e6e48af0e2a30996955248", "score": "0.53511345", "text": "private static void slash(){\n attackData[0] = 5;\n attackData[1] = 30;\n attackData[2] = 28;\n attackData[3] = 0;\n attackData[4] = 0;\n attackData[5] = 0;\n attackData[6] = 0;\n\n }", "title": "" }, { "docid": "db0de9962e0a328194cd394f37776173", "score": "0.5237684", "text": "public void geteiltDurch()\n {\n operatorAnwenden('/');\n }", "title": "" }, { "docid": "73163b0807b111a7573415462d9edd71", "score": "0.5179374", "text": "@Override\r\n\tpublic void div() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8e014e254b3ae100c446a63d228a0bde", "score": "0.51700974", "text": "void mo52408pG();", "title": "" }, { "docid": "67a6ce63b48e11e8f919439fd8ca84d6", "score": "0.5142833", "text": "private void b_divActionPerformed(java.awt.event.ActionEvent evt) {\n if(flag==1){\n equation.setText(\" \");\n t2.setText(\" \");\n flag=0;\n }\n first=equation.getText();\n op=\"/\";\n equation.setText(\"\");\n t2.setText(t2.getText()+\"/\");\n }", "title": "" }, { "docid": "564c4c725d06dc4fbbd8caf163f959c3", "score": "0.5141374", "text": "private int parent(int i){return (i-1)/2;}", "title": "" }, { "docid": "6eb5ed7fb7bcbaef257b5f97d4f0dd97", "score": "0.5116233", "text": "static void divider() {\n\t\tSystem.out.print(\"+\");\n\t\tfor (int across=1; across<=2*SIZE; across++) {\n\t\t\tSystem.out.print(\"*=\");\n\t\t}\n\t\tSystem.out.print(\"+\");\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "00c73f69af9eb24983a3626f87540fe3", "score": "0.5076289", "text": "@Override\n public char getLabel() {\n return '/';\n }", "title": "" }, { "docid": "65270d3b1ef942b14921ef830081b5dd", "score": "0.5052625", "text": "public void divide() {\n instructions.append( OP_divide );\n }", "title": "" }, { "docid": "13e6660d4f7fc885e27e021170205b73", "score": "0.50339675", "text": "String root() {\n/* 62 */ return this.root;\n/* */ }", "title": "" }, { "docid": "3da830bf862d3214317da2be253dd5e0", "score": "0.5026707", "text": "private int leftChild(int i){return 2*i+1;}", "title": "" }, { "docid": "860fe4b1a5c68c6113b6820cfa5f888b", "score": "0.50218624", "text": "public static void main(String[] args) {\n int r =8;\n for (int d =0;d<r;d++){\n for(int s =r-1;s>=d;s--){\n System.out.print(\" \");\n }\n for (int e =0;e<=d;e++){\n System.out.print(\" *\");\n }\n System.out.println(\" \");\n }\n\n\n\n }", "title": "" }, { "docid": "ac6ceed4597af3becb32bcdbe805ebce", "score": "0.50011617", "text": "public static void drawCenterline() {\n System. out .print(\"+\");\n for (int i=1; i <= (3* SUB_HEIGHT ); i++) {\n System. out .print(\"-\");\n }\n \n System. out .print(\"+\");\n for (int i=1; i <= (SUB_HEIGHT ); i++) {\n System. out .print(\"/\");\n }\n \n System. out .println();\n }", "title": "" }, { "docid": "a6d9e5782c3aaadf306a1ca710de0c1e", "score": "0.50000983", "text": "@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn \"/\";\n\t\t\t}", "title": "" }, { "docid": "f534481c10989803a3aaeffcc908b545", "score": "0.49939865", "text": "static void fct_Sapin(int iTaille) {\n\n int iMilieu = iTaille - 1;\n int iLongeurBase = iMilieu * 2;\n int iBlanc = iMilieu - 1;\n int iSlash = iMilieu;\n int iBackSlash = iMilieu + 1;\n int iCellule;\n int iWidth = iBackSlash + 1;\n boolean bPaire;\n\n System.out.print(\" \");\n\n for (int iEtoile = 0; iEtoile <= iMilieu; iEtoile++) {\n if (iEtoile == iMilieu) {\n System.out.print(\"*\");\n } else {\n System.out.print(\" \");\n }\n }\n System.out.println();\n for (int iLigne = 1; iLigne <= iMilieu; iLigne++) {\n\n bPaire = (iLigne % 2 == 0);\n//commentaire\n for (iCellule = 0; iCellule <= iWidth; iCellule++) {\n\n if (iCellule <= iBlanc) {\n\n if (iCellule == iBlanc && bPaire == true) {\n System.out.print(\"*\");\n } else {\n System.out.print(\" \");\n }\n }\n\n if (iCellule >= iSlash && iCellule <= iMilieu) {\n System.out.print(\"/\");\n }\n if (iCellule <= iBackSlash && iCellule > iMilieu) {\n System.out.print(\"\\\\\");\n }\n if (iCellule == iWidth && bPaire == true) {\n System.out.print(\"*\");\n }\n\n }\n /*}\n\n */\n System.out.println();\n\n iBlanc -= 1;\n iSlash -= 1;\n iBackSlash += 1;\n iWidth += 1;\n\n\n }\n\n // mise en place du tronc d'arbre\n int iTroncMin = iMilieu / 3 * 2;\n int iTroncMax = iMilieu + (iMilieu / 3);\n if (iTaille == 2) {\n System.out.println(\" |\");\n } else {\n\n for (int iHauteur = 0; iHauteur < iLongeurBase / 4; iHauteur++) {\n\n for (iCellule = 0; iCellule <= iLongeurBase; iCellule++) {\n if (iCellule == iTroncMin || iCellule == (iTroncMax)) {\n System.out.print(\"||\");\n } else {\n System.out.print(\" \");\n }\n\n }\n System.out.println();\n }\n }\n System.out.println(\"|-----------------------------------------------------------|\");\n System.out.println(\"| |\");\n System.out.println(\"| The end of the tree is here (sad but true) |\");\n System.out.println(\"| Created by Alex Soulis |\");\n System.out.println(\"| |\");\n System.out.println(\"|-----------------------------------------------------------|\");\n }", "title": "" }, { "docid": "ff437e4b48bb6c1c29c5d24df3a36a3c", "score": "0.49880102", "text": "public void div();", "title": "" }, { "docid": "9906852084cc95a9d0e86787ceb8b16d", "score": "0.49793234", "text": "public String _setminz(double _zcenter) throws Exception{\n_minz = __c.Floor(_zcenter*32-_regionsize)/(double)32;\n //BA.debugLineNum = 66;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "69f7a9179e0535eb5a99ba26f897768b", "score": "0.49586242", "text": "boolean mvb_Test(int dir)\r\n {\r\n int calculX=hoPtr.hoX<<16|hoPtr.hoCalculX&0x0000FFFF;\r\n int calculY=hoPtr.hoY<<16|hoPtr.hoCalculY&0x0000FFFF;\r\n\tint x=(Cosinus32[dir]<<11)+calculX;\r\n\tint y=(Sinus32[dir]<<11)+calculY;\r\n\tx>>>=16;\r\n\ty>>>=16;\r\n return tst_Position(x, y, false);\r\n}", "title": "" }, { "docid": "c0b786972b3888e7572e1a6e707c72e1", "score": "0.49543104", "text": "@Override\r\n\tpublic float dividir(float op1, float op2){\n\t\treturn op1 / op2;\r\n\t}", "title": "" }, { "docid": "801b37aaa5abfc06a52aaf9b8fb43ff8", "score": "0.49515116", "text": "double volume() {\r\nreturn width * height * depth;\r\n}", "title": "" }, { "docid": "688bac3c38a6d50cbb93b24ae7ac74e6", "score": "0.494028", "text": "public NodeExprDivide( NodeExpr left,NodeExpr right )\n\t{\n\t\t_left = left;\n\t\t_right = right;\n\t}", "title": "" }, { "docid": "b811224c33136581f39cc04bd400e997", "score": "0.4933515", "text": "private static int divide(int x, int y) {\n return x/y;\n }", "title": "" }, { "docid": "6a9ca1922dd81f18ab022cad06247e05", "score": "0.4930693", "text": "int getSideLength() ;", "title": "" }, { "docid": "32c4592b96258495f1d9a1edbe0f9ec9", "score": "0.49272057", "text": "private int rightChild(int i){return 2*i+2;}", "title": "" }, { "docid": "784a521b7e0be39a3f2bc1cb4658bb7e", "score": "0.49156728", "text": "public Siri(){\n super(2000,2,\"\\\\^/\" ,Color.ORANGE);\n distPercorrida = 0;\n yAnterior = 0;\n // this.iconeDir = iconeDir;\n // this.iconeEsq = iconeEsq;\n dir = Utilitarios.numeroAleatorio(0,1000); // 0 a 500 = esquerda , 501 a 1000 = direita\n cont = 0;\n }", "title": "" }, { "docid": "8519b63bd9d752113daab57b595f0828", "score": "0.49008635", "text": "static void lowerDiamond() {\n\t\tfor (int down=1; down<=SIZE; down++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tfor (int across=1; across<=down-1; across++) {\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tfor (int across=1; across<=SIZE+1-down; across++) {\n\t\t\t\tSystem.out.print(\"\\\\/\");\n\t\t\t}\n\t\t\tfor (int across=1; across<=2*down-2; across++) {\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tfor (int across=1; across<=SIZE+1-down; across++) {\n\t\t\t\tSystem.out.print(\"\\\\/\");\n\t\t\t}\n\t\t\tfor (int across=1; across<=down-1; across++) {\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.print(\"|\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "2eb5ad420517ccfa3d284e2187d92ae0", "score": "0.48705554", "text": "public static void drawCover() {\n for (int line = 1; line <= (SUB_HEIGHT ); line++){\n for (int j =1; j <=((1+( SUB_HEIGHT ))-line); j++){\n System. out .print(\" \");\n }\n System. out .print(\"/\");\n for (int b =1; b <=(( SUB_HEIGHT )-line); b++){\n System. out .print(\" \");\n }\n System. out .print(\"___/\");\n for (int h =2; h <=line; h++){\n System. out .print(\"__/\");\n }\n for (int j =2; j <=line; j++){\n System. out .print(\"/\");\n }\n System. out .println();\n \n }\n }", "title": "" }, { "docid": "b85e7aa553e704014131ead59d19301b", "score": "0.48686406", "text": "public void right() {\n\t\t\n\t}", "title": "" }, { "docid": "749b1927eee9a3a3ff5c3183b68c8fab", "score": "0.48569685", "text": "public int getX2(){return asteroidx2;}", "title": "" }, { "docid": "261ab52043d28c3d6796459333c969cf", "score": "0.4839085", "text": "static void topBot() {\n\t\tfor (int down=1; down<=SIZE+2; down++) {\n\t\t\tfor (int across=1; across<=2*SIZE-down; across++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int across=1; across<=down; across++) {\n\t\t\t\tSystem.out.print(\"/\");\n\t\t\t}\n\t\t\tSystem.out.print(\"**\");\n\t\t\tfor (int across=1; across<=down; across++) {\n\t\t\t\tSystem.out.print(\"\\\\\");\n\t\t\t}\n\t\t\tSystem.out.println();\t\n\t\t}\n\t}", "title": "" }, { "docid": "e2d342bbaeabeb80e6d9fc851b97cb80", "score": "0.48335755", "text": "public void skystonePos4() {\n }", "title": "" }, { "docid": "47f5eee3d42c6b12997de1f7ff061e0f", "score": "0.4831778", "text": "public String _setminx(double _xcenter) throws Exception{\n_minx = __c.Floor(_xcenter*32-_regionsize)/(double)32;\n //BA.debugLineNum = 50;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "c590c5fd4b019fa1951b2174c5356b68", "score": "0.4821557", "text": "public static void printsTop(){\n\t\tfor (int i=0; i<5; i++){\n\t\t\tfor (int j=0; j<13-i; j++){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\tSystem.out.print(\"/\");\n\t\tfor (int j=0; j<i; j++){\n\t\t\tSystem.out.print(\"/\\\\\");\n\t\t}\n\t\tSystem.out.println(\"\\\\\");\n\t\t}\n\t}", "title": "" }, { "docid": "844973e7ce29c5e718413930090fa2b7", "score": "0.48202664", "text": "@Override\n\tprotected void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "7d2c3a6e703fe36943ee0ee493f3f5ca", "score": "0.48193654", "text": "public static void main(String[] args) {\n\t Scanner s=new Scanner(System.in);\n\t int n=s.nextInt();\n\t int r=1;\n\t while(r<=(n/2+1))\n\t {\n\t \tint i=n/2;\n\t \twhile(i>=r)\n\t \t{\n\t \t\tSystem.out.print(\" \");\n\t \t\ti--;\n\t \t}\n\t \tint k=1;\n\t \twhile(k<=((2*r)-1))\n\t \t{\n\t \t\tSystem.out.print(\"*\");\n\t \t\tk++;\n\t \t}\n\t \tSystem.out.println();\n\t \tr++;\n\t }\n\t int k=1;\n\t while(k<=n/2)\n\t {\n\t \t int d=1;\n\t \t while(d<=k)\n\t \t {\n\t \t\t System.out.print(\" \");\n\t \t\t d++;\n\t \t }\n\t \tint h=n-(2*k);int q=1;\n\t \t while(q<=h)\n\t \t {\n\t \t\t System.out.print(\"*\");\n\t \t\t q++;\n\t \t }\n\t \t \n\t \tSystem.out.println();\n\t \tk++;\n\t }\n\t }", "title": "" }, { "docid": "92a7e9ce33763b8589f45326a8e8bdc7", "score": "0.47955576", "text": "private int div(int x, int y) {\n\t\treturn x/y;\r\n\t}", "title": "" }, { "docid": "73459f5ea80df62bdd7864d21054e2fa", "score": "0.47893852", "text": "private static int divideLBYL (int x, int y) {\n if(y != 0) {\n return x/y;\n }\n else {\n return 0;\n }\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.47871992", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "b27b08b5a07ec4d71e5d8bc908f9be91", "score": "0.4785451", "text": "private int divine(int i, int j) {\n\t\treturn i / j;\n\t}", "title": "" }, { "docid": "37c33a475045123b6afb5479fcaa8999", "score": "0.47842002", "text": "@Override\n public void print() {\n System.out.print('/');\n }", "title": "" }, { "docid": "f909060ea22aaa334146341a1321a9f3", "score": "0.47828677", "text": "private static void drawP() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tSystem.out.println(\"PPPPPP\");\r\n\t\tSystem.out.println(\"P P\");\r\n\t\tSystem.out.println(\"P P\");\r\n\t\tSystem.out.println(\"PPPPPP\");\r\n\t\tSystem.out.println(\"P \");\r\n\t\tSystem.out.println(\"P \");\r\n\t\tSystem.out.println(\"P \");\r\n\t\t\t\t\t\t\r\n\t}", "title": "" }, { "docid": "1dfa2cc698e1161ab0ec6cfe9f1f4bf7", "score": "0.47774425", "text": "public static void main(String[] args) {\n\n\t\n\t\tint line;\n Scanner input = new Scanner(System.in);\n \n line = input.nextInt();\n \n for(int i=line/2, add=0; i>0; i--, add++) {\n for(int j=0; j<=i-1; j++) {\n System.out.print(\" \");\n }\n for(int j=0; j<line/2 - (i-1)+add; j++) {\n System.out.print(\"*\");\n }\n System.out.println();\n }\n for(int i=0, add=line/2; i<line/2 + 1; i++, add--) {\n for(int j=0; j<i; j++) {\n System.out.print(\" \"); \n }\n for(int j=0; j<(line/2 + 1)-i+add; j++) {\n System.out.print(\"*\");\n }\n System.out.println();\n }\n\n\t}", "title": "" }, { "docid": "fa1f4415c842b132ba1f3e83fd7a6afe", "score": "0.47734475", "text": "public void renderPathTile(Object paramObject, byte[] paramArrayOfbyte, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6) {\n/* 53 */ SunGraphics2D sunGraphics2D = (SunGraphics2D)paramObject;\n/* */ \n/* 55 */ sunGraphics2D.alphafill.MaskFill(sunGraphics2D, sunGraphics2D.getSurfaceData(), sunGraphics2D.composite, paramInt3, paramInt4, paramInt5, paramInt6, paramArrayOfbyte, paramInt1, paramInt2);\n/* */ }", "title": "" }, { "docid": "092e6019a84bfaebed78205cc80ab777", "score": "0.47677413", "text": "public static java.lang.String compactPath(java.lang.String r8) {\n /*\n r5 = 2;\n r1 = 0;\n if (r8 == 0) goto L_0x000a;\n L_0x0004:\n r0 = r8.length();\n if (r0 != 0) goto L_0x000b;\n L_0x000a:\n return r8;\n L_0x000b:\n r4 = r8.length();\n r0 = r1;\n r2 = r1;\n L_0x0011:\n if (r2 >= r4) goto L_0x0022;\n L_0x0013:\n r3 = r8.charAt(r2);\n switch(r3) {\n case 47: goto L_0x001e;\n case 63: goto L_0x000a;\n default: goto L_0x001a;\n };\n L_0x001a:\n r0 = r1;\n L_0x001b:\n r2 = r2 + 1;\n goto L_0x0011;\n L_0x001e:\n r0 = r0 + 1;\n if (r0 != r5) goto L_0x001b;\n L_0x0022:\n if (r0 < r5) goto L_0x000a;\n L_0x0024:\n r5 = new java.lang.StringBuffer;\n r3 = r8.length();\n r5.<init>(r3);\n r6 = r8.toCharArray();\n r5.append(r6, r1, r2);\n r3 = r2;\n r2 = r0;\n L_0x0036:\n if (r3 >= r4) goto L_0x004d;\n L_0x0038:\n r7 = r8.charAt(r3);\n switch(r7) {\n case 47: goto L_0x0052;\n case 63: goto L_0x0048;\n default: goto L_0x003f;\n };\n L_0x003f:\n r5.append(r7);\n r0 = r1;\n L_0x0043:\n r2 = r3 + 1;\n r3 = r2;\n r2 = r0;\n goto L_0x0036;\n L_0x0048:\n r0 = r4 - r3;\n r5.append(r6, r3, r0);\n L_0x004d:\n r8 = r5.toString();\n goto L_0x000a;\n L_0x0052:\n r0 = r2 + 1;\n if (r2 != 0) goto L_0x0043;\n L_0x0056:\n r5.append(r7);\n goto L_0x0043;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.mortbay.util.URIUtil.compactPath(java.lang.String):java.lang.String\");\n }", "title": "" }, { "docid": "bd7d80c40ea88b00d3baa743cdb7d13c", "score": "0.47665042", "text": "private int width() {\n \treturn (int) getSize().getWidth() / WIDTH; \n }", "title": "" }, { "docid": "4e1294bde8a624570e9f6e12acbf5530", "score": "0.47655633", "text": "@Override\n\tpublic void divertir() {\n\t\tsuper.divertir();\n\t}", "title": "" }, { "docid": "6724f898571ec3b9ef390e469eced50d", "score": "0.4761208", "text": "public static void drawSpine() {\n int k = 0;\n k = k + 2; \n for (int line = 1; line <= ((SUB_HEIGHT/2 )); line++){\n System. out .print(\"|\");\n for (int j=1; j<=((SUB_HEIGHT*3 - 21)/2); j++){\n System. out .print(\" \");\n }\n System. out .print(\"Building Java Programs\");\n for (int j=1; j<=((SUB_HEIGHT*3- 22)/2); j++){\n System. out .print(\" \");\n }\n System. out .print(\"|\");\n for (int j =1; j <=((SUB_HEIGHT + 2)- 2*line); j++){ \n System. out .print(\"/\");\n }\n System. out .println();\n }\n }", "title": "" }, { "docid": "5b704ef222486970279f9fd7cfc08ca6", "score": "0.47520745", "text": "public int divide( int g, int h){\n return g / h;\n }", "title": "" }, { "docid": "9b04be032c54ccfe9a7b34a9484bcc56", "score": "0.47476724", "text": "double vol(){\n return width*height*depth;\n }", "title": "" }, { "docid": "d7c7b43f0bb81694d1fe7189b1dbd0d8", "score": "0.47476363", "text": "double volume(){\n return width * height * depth;\n }", "title": "" }, { "docid": "66b784539053c1752eb2173907dd2bda", "score": "0.47412062", "text": "private String crossover(String parent1, String parent2){\n\n int half = 16/2;\n return parent1.substring(0, half)+parent2.substring(half);\n }", "title": "" }, { "docid": "013e9483fe3b01d7426a002c8f358817", "score": "0.47343275", "text": "public static void main(String[] args) {\n for(int i=1;i<=4;i++) {\n \t for(int y=1;y<=6;y++) {\n \t\t if (i==1 || i==4 || y==1 || y==6) {\n \t\t System.out.print(\"*\");\n \t }\telse {\t\n\t\tSystem.out.print(\" \");\n }\n\t}\n \t System.out.println();\n\t}\n}", "title": "" }, { "docid": "ace44ada706f0558713e5158ffcb335b", "score": "0.47297755", "text": "public int h() {\n/* 550 */ return 4;\n/* */ }", "title": "" }, { "docid": "97e573502465a0aeb8d67bb3261be4d9", "score": "0.47237182", "text": "public int \nvertbreak ( int p , int h , int d ) \n{ int Result; \n int prevp ;\n int q, r ;\n int pi ;\n int b ;\n int leastcost ;\n int bestplace ;\n int prevdp ;\n int t ;\n prevp = p ;\n leastcost = 1073741823 ;\n activewidth [1 ]= 0 ;\n activewidth [2 ]= 0 ;\n activewidth [3 ]= 0 ;\n activewidth [4 ]= 0 ;\n activewidth [5 ]= 0 ;\n activewidth [6 ]= 0 ;\n prevdp = 0 ;\n bestplace = 0 ;\n pi = 0 ;\n lab30: while ( true ) { \n lab45: while ( true ) { \n lab90: while ( true ) { \n if ( p == 0 ) \n pi = -10000 ;\n else switch ( mem [p ]. getb0 () ) \n { case 0 : \n case 1 : \n case 2 : \n { \n activewidth [1 ]= activewidth [1 ]+ prevdp + mem [p + 3 ]. \n getInt () ;\n prevdp = mem [p + 2 ]. getInt () ;\n break lab45 ;\n } \n case 8 : \n break lab45 ;\n case 10 : \n if ( ( mem [prevp ]. getb0 () < 9 ) ) \n pi = 0 ;\n else break lab90 ;\n break ;\n case 11 : \n { \n if ( mem [p ]. getrh () == 0 ) \n t = 12 ;\n else t = mem [mem [p ]. getrh () ]. getb0 () ;\n if ( t == 10 ) \n pi = 0 ;\n else break lab90 ;\n } \n break ;\n case 12 : \n pi = mem [p + 1 ]. getInt () ;\n break ;\n case 4 : \n case 3 : \n break lab45 ;\n default: \n confusion ( 960 ) ;\n break ;\n } \n if ( pi < 10000 ) \n { \n if ( activewidth [1 ]< h ) \n if ( ( activewidth [3 ]!= 0 ) || ( activewidth [4 ]!= 0 ) || ( \n activewidth [5 ]!= 0 ) ) \n b = 0 ;\n else b = badness ( h - activewidth [1 ], activewidth [2 ]) ;\n else if ( activewidth [1 ]- h > activewidth [6 ]) \n b = 1073741823 ;\n else b = badness ( activewidth [1 ]- h , activewidth [6 ]) ;\n if ( b < 1073741823 ) \n if ( pi <= -10000 ) \n b = pi ;\n else if ( b < 10000 ) \n b = b + pi ;\n else b = 100000 ;\n if ( b <= leastcost ) \n { \n bestplace = p ;\n leastcost = b ;\n bestheightplusdepth = activewidth [1 ]+ prevdp ;\n } \n if ( ( b == 1073741823 ) || ( pi <= -10000 ) ) \n break lab30 ;\n } \n if ( ( mem [p ]. getb0 () < 10 ) || ( mem [p ]. getb0 () > 11 ) ) \n break lab45 ;\n break ;\n } \n /* lab90: */ if ( mem [p ]. getb0 () == 11 ) \n q = p ;\n else { \n q = mem [p + 1 ]. getlh () ;\n activewidth [2 + mem [q ]. getb0 () ]= activewidth [2 + mem [q ]\n . getb0 () ]+ mem [q + 2 ]. getInt () ;\n activewidth [6 ]= activewidth [6 ]+ mem [q + 3 ]. getInt () ;\n if ( ( mem [q ]. getb1 () != 0 ) && ( mem [q + 3 ]. getInt () != 0 \n ) ) \n { \n { \n if ( interaction == 3 ) \n ;\n printnl ( 262 ) ;\n Print ( 961 ) ;\n } \n { \n helpptr = 4 ;\n helpline [3 ]= 962 ;\n helpline [2 ]= 963 ;\n helpline [1 ]= 964 ;\n helpline [0 ]= 922 ;\n } \n error () ;\n r = newspec ( q ) ;\n mem [r ]. setb1 ( 0 ) ;\n deleteglueref ( q ) ;\n mem [p + 1 ]. setlh ( r ) ;\n q = r ;\n } \n } \n activewidth [1 ]= activewidth [1 ]+ prevdp + mem [q + 1 ]. \n getInt () ;\n prevdp = 0 ;\n break ;\n } \n /* lab45: */ if ( prevdp > d ) \n { \n activewidth [1 ]= activewidth [1 ]+ prevdp - d ;\n prevdp = d ;\n } \n prevp = p ;\n p = mem [prevp ]. getrh () ;\n } \n /* lab30: */ Result = bestplace ;\n return Result ;\n}", "title": "" }, { "docid": "3a246b559d9bc60b6c2d4f2d68111db2", "score": "0.47182176", "text": "public static double VenusInclination(double JD)\n{\ndouble __retval = 0.0;\n__retval = __m9(0, JD);\nreturn __retval;\n}", "title": "" }, { "docid": "4dd0e4e5ba973f6aacd66e3d6c85d17d", "score": "0.47163084", "text": "public void left() {\n\t\t\n\t}", "title": "" }, { "docid": "9e856ccc2feff2784615d1cefcaf16c6", "score": "0.47154927", "text": "public void boundary(){\n \r\n if(y > sh - h){\r\n down = -1;\r\n }\r\n if(y < 0){\r\n down = 1;\r\n }\r\n if(x > sw - w){\r\n right = -1;\r\n }\r\n if(x < 0){\r\n right = 1;\r\n }\r\n }", "title": "" }, { "docid": "5895d2106b542c0ea98fd47f51046949", "score": "0.4713369", "text": "public void bfs();", "title": "" }, { "docid": "ffb6162e8154907768cb72624e3fd700", "score": "0.47101408", "text": "int midComponent();", "title": "" }, { "docid": "3912beb26c285880c9be698c4a477982", "score": "0.4708901", "text": "public static void main(String [] args){\n System.out.println(\"*\");\n System.out.println(\"**\");\n System.out.println(\"***\");\n System.out.println(\"****\");\n System.out.println(\"*****\");\n System.out.println(\"******\");\n }", "title": "" }, { "docid": "7737dd57bb8c8d5592d3766595b33113", "score": "0.47077075", "text": "@Override\n protected void drawFinal() {\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.47064582", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "00c545c50632128fbcb40bfbadffe7a7", "score": "0.47008362", "text": "public static void slashFigure() {\n\t\tfinal int SIZE = 4;\n\t\tfor (int row = 1; row <= SIZE; row++) {\n\t\t\t//Finding out how many exclamation marks exist for the current row.\n\t\t\tint neededExclamation = (SIZE - row) * 4 - 2;\n\t\t\t//Reuses the print method for the waveNumbers problem to print out the parts per row.\n\t\t\tprint(row, \"\\\\\\\\\");\n\t\t\tprint(neededExclamation, \"!\");\n\t\t\tprint(row, \"//\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "fb891fc997fd11d6c166309dd74334b7", "score": "0.46959665", "text": "public void divide() {\n String res = null;\n for (String str : list) {\n String sp = \"\\\\\\\\\";\n String[] a = str.split(sp);\n for (int i = 0; i < a.length; i++) {\n if (i == 0) {\n res = a[i];\n }\n if (i > 0) {\n res = res + \"\\\\\" + a[i];\n }\n set.add(res);\n }\n }\n }", "title": "" }, { "docid": "ecc767596c795ab5762a9f381fa7a19f", "score": "0.46957722", "text": "int width();", "title": "" }, { "docid": "3a191816a1cc550211089802b82b759b", "score": "0.46932936", "text": "PointF mo4777d(int i);", "title": "" }, { "docid": "31907bd3892e391898c096ff864f772a", "score": "0.46925205", "text": "void mo79270b();", "title": "" }, { "docid": "18ca0e9197c0a1014b98b9c9f1969675", "score": "0.46891123", "text": "@Override\n public int getWidth() {\n return x2 - x;\n }", "title": "" }, { "docid": "078662e8dbb64493b30e307883e048c9", "score": "0.46842742", "text": "@Override\r\n\tpublic void Normal() {\n\t\t\r\n\t}", "title": "" }, { "docid": "95b504367e5ea20cae08836097f0ad73", "score": "0.4676725", "text": "public void splitSidePot(){\n }", "title": "" }, { "docid": "ea32c0461d6a5ef10731494c59fa7c78", "score": "0.4668155", "text": "int parent( int c )\n {\n return ( c - 1 ) / 2;\n }", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.46658975", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.46658975", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.46658975", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.46658975", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.46658975", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "f481c3f3e70ad7bc1aaab9793ab73c14", "score": "0.4663726", "text": "public double getMidX() { return x + width/2; }", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.466354", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "97b9ab097aaf60491299f947168aed03", "score": "0.46605057", "text": "public void Rectangle()\n {\n width = 0.00;\n length = 0.00;\n }", "title": "" }, { "docid": "8ef91b2498376bd0637c8e9cabb68768", "score": "0.46597123", "text": "private static String rHourglass(int size, int spaces) {\r\n\r\n\t\tString result;\r\n\r\n\t\tif (size == 0) {\r\n\r\n\t\t\tresult = \"\";\r\n\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tresult = hgHelper(\" \", spaces) + hgHelper(\"* \", size) + \"\\n\" + rHourglass(size - 1, spaces + 1) + \r\n\t\t\t\t\thgHelper(\" \", spaces) + hgHelper(\"* \", size) + \"\\n\";\r\n\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\r\n\t}", "title": "" }, { "docid": "d54137da2952deaa25531f30170648e7", "score": "0.46559", "text": "public void draw(){\r\n\t\t\tSystem.out.print(\"*\");\r\n\t\t}", "title": "" }, { "docid": "e987abfaf60d2d6bf3257f1319273901", "score": "0.46556848", "text": "public double floorspace() {\r\n\t\treturn width * length;\r\n\t}", "title": "" }, { "docid": "ff21e0a007b4c35d321fb2fd181ddc96", "score": "0.46554348", "text": "@Override\r\n\tpublic void draw() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "72944d24476e572cdbf405493550dd35", "score": "0.46540448", "text": "public static void main(String[] args) {\n\t\t\n\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tfor(int k=0; k<4-i; k++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0; j<2*i+1; j++)\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\n\n\t}", "title": "" }, { "docid": "8f90e4453acb0179e4b76dfef308d405", "score": "0.46495065", "text": "@Test\n\tpublic void testSIMP_MULTI_RELIMAGE_CONVERSE_RANRES() {\n\t\trewriteExpr(\"(r ▷ S)∼[S]\", \"r∼[S]\", \"r=U↔V\");\n\t\tnoRewriteExpr(\"(r ▷ S)∼[T]\", \"r=U↔V\");\n\t}", "title": "" }, { "docid": "401294e21379d6d106c4b31796d06d1f", "score": "0.4647108", "text": "public int getX1(){return asteroidx1;}", "title": "" }, { "docid": "d904f232821235bb23db8b31e19b888b", "score": "0.46461603", "text": "void normalize();", "title": "" }, { "docid": "d904f232821235bb23db8b31e19b888b", "score": "0.46461603", "text": "void normalize();", "title": "" }, { "docid": "80b84528dd6d17740476cf1ae975e38d", "score": "0.46405995", "text": "@Test\n\tpublic void Ex4TestB() {\n\t\t\n\t\tString result \t= TreeDictionary.wordToSignature(\"^%9/\");\n\t\tString correct \t= \" \";\n\t\t\n\t\tassertEquals(correct, result);\n\t}", "title": "" }, { "docid": "12348dbf17873116090e8425bd379c44", "score": "0.4635808", "text": "double depth();", "title": "" }, { "docid": "a80fc209a9a69e1c77b1a883dc0b5728", "score": "0.46350506", "text": "public int \ngetnode ( int s ) \n{ int Result; \n int p ;\n int q ;\n int r ;\n int t ;\n lab20: while ( true ) { \n p = rover ;\n lab40: while ( true ) { \n do { q = p + mem [p ]. getlh () ;\n while ( ( mem [q ]. getrh () == maxhalfword ) ) { \n t = mem [q + 1 ]. getrh () ;\n if ( q == rover ) \n rover = t ;\n mem [t + 1 ]. setlh ( mem [q + 1 ]. getlh () ) ;\n mem [mem [q + 1 ]. getlh () + 1 ]. setrh ( t ) ;\n q = q + mem [q ]. getlh () ;\n } \n r = q - s ;\n if ( r > p + 1 ) \n { \n mem [p ]. setlh ( r - p ) ;\n rover = p ;\n break lab40 ;\n } \n if ( r == p ) \n if ( mem [p + 1 ]. getrh () != p ) \n { \n rover = mem [p + 1 ]. getrh () ;\n t = mem [p + 1 ]. getlh () ;\n mem [rover + 1 ]. setlh ( t ) ;\n mem [t + 1 ]. setrh ( rover ) ;\n break lab40 ;\n } \n mem [p ]. setlh ( q - p ) ;\n p = mem [p + 1 ]. getrh () ;\n } while ( ! ( p == rover ) ) ;\n if ( s == 1073741824 ) \n { \n Result = maxhalfword ;\n return Result /* lab10 */ ;\n } \n if ( lomemmax + 2 < himemmin ) \n if ( lomemmax + 2 <= 0 + maxhalfword ) \n { \n if ( himemmin - lomemmax >= 1998 ) \n t = lomemmax + 1000 ;\n else t = lomemmax + 1 + ( himemmin - lomemmax ) / 2 ;\n p = mem [rover + 1 ]. getlh () ;\n q = lomemmax ;\n mem [p + 1 ]. setrh ( q ) ;\n mem [rover + 1 ]. setlh ( q ) ;\n if ( t > 0 + maxhalfword ) \n t = 0 + maxhalfword ;\n mem [q + 1 ]. setrh ( rover ) ;\n mem [q + 1 ]. setlh ( p ) ;\n mem [q ]. setrh ( maxhalfword ) ;\n mem [q ]. setlh ( t - lomemmax ) ;\n lomemmax = t ;\n mem [lomemmax ]. setrh ( 0 ) ;\n mem [lomemmax ]. setlh ( 0 ) ;\n rover = q ;\n continue lab20 ;\n } \n overflow ( 300 , memmax + 1 ) ;\n break ;\n } \n /* lab40: */ mem [r ]. setrh ( 0 ) ;\n break ;\n } \n Result = r ;\n return Result ;\n}", "title": "" }, { "docid": "28fbed565f72f669086b045a1434ead5", "score": "0.46340108", "text": "private void divid() {\n\t\tanswer= num1/num2;\r\n\t}", "title": "" }, { "docid": "6e770c28f911c105198b77666854c303", "score": "0.4633", "text": "@Test\r\n\tpublic final void testDivide() {\n\t\t assertEquals(1d, 2d, 3);\r\n//\t\tassertEquals(10, new Calculator().divide(20, 2));\r\n//\t\tfail(\"Not yet implemented\"); // TODO\r\n\t}", "title": "" }, { "docid": "72e4adfd135b2641dd47543b2b1530c6", "score": "0.46325245", "text": "public static void main(String[] args) {\nSystem.out.println(8/3);\nSystem.out.println(8%3);\n//Associativity: Left to right \nint a = 45 + 5 -4/2-7%2-2*3;\na = 4 + 5-2 -7%2 -2*3;\n\nSystem.out.println(a);\n\n\t}", "title": "" }, { "docid": "d68974760aa484dd3993d54588e1b278", "score": "0.46319693", "text": "public int distance() {\n\treturn 90;\n\t\n}", "title": "" }, { "docid": "7ccb3a2573395fc1f1d66a6ab8eb83e7", "score": "0.46307552", "text": "public String _setminy(double _ycenter) throws Exception{\n_miny = __c.Floor(_ycenter*32-_regionsize)/(double)32;\n //BA.debugLineNum = 58;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "title": "" }, { "docid": "dc0ed86e48dff978a39df40f149b9cc9", "score": "0.46303606", "text": "public long space() {\n\t\treturn 0;\r\n\t}", "title": "" } ]
48e76d1595727cc3a988b9ddf6af0057
Tenant id of the Estimate Template Activitie
[ { "docid": "438b2f5eff000c6b192e16cd92d22253", "score": "0.777881", "text": "@ApiModelProperty(required = true, value = \"Tenant id of the Estimate Template Activitie\")\n @NotNull\n\n @Size(min=2,max=128)\n public String getTenantId() {\n return tenantId;\n }", "title": "" } ]
[ { "docid": "f73507c71edc4121fd6ab23a60281bdd", "score": "0.75169855", "text": "public String getTenant_id() {\n\t\treturn DataUtil.toString(super.getByIndex(INDEX_TENANT_ID, true));\n\t}", "title": "" }, { "docid": "a0b6cbef53f19799d3682d1f4af87ef9", "score": "0.722106", "text": "public String getTENANT_ID() {\n return TENANT_ID;\n }", "title": "" }, { "docid": "a0b6cbef53f19799d3682d1f4af87ef9", "score": "0.722106", "text": "public String getTENANT_ID() {\n return TENANT_ID;\n }", "title": "" }, { "docid": "a2b09aaa94a3969a31916b94b77a124f", "score": "0.7167067", "text": "int getTenantId();", "title": "" }, { "docid": "a2b09aaa94a3969a31916b94b77a124f", "score": "0.7167067", "text": "int getTenantId();", "title": "" }, { "docid": "c1b2a2faec32b0550da3c4556495e96d", "score": "0.70016426", "text": "public int getTenantId() {\n return tenantId_;\n }", "title": "" }, { "docid": "54b693061d2bd5bcacee44a1ff300121", "score": "0.69535875", "text": "public int getTenantId() {\n return tenantId_;\n }", "title": "" }, { "docid": "7178e866f2c6cacdbdbdc05a911420d6", "score": "0.6935033", "text": "String getTenantId();", "title": "" }, { "docid": "f33d02134690dca761a40e32ac4477ba", "score": "0.68796575", "text": "public abstract String getTenantId();", "title": "" }, { "docid": "7106e101c4825edf63a9dd04a0148c1d", "score": "0.67597216", "text": "public String tenantId() {\n return this.tenantId;\n }", "title": "" }, { "docid": "7106e101c4825edf63a9dd04a0148c1d", "score": "0.67597216", "text": "public String tenantId() {\n return this.tenantId;\n }", "title": "" }, { "docid": "883d05457e8a4a8c959eb07d89a6db9c", "score": "0.67191875", "text": "public Long getTenantId() {\r\n return tenantId;\r\n }", "title": "" }, { "docid": "9ff1ca2455e5ead1ddbc05662445065b", "score": "0.6716843", "text": "public Object getTenant() {\n return this.tenant;\n }", "title": "" }, { "docid": "9548e178e0445c83fe463e18eec68e8f", "score": "0.67132413", "text": "@Override\n public ITenant getTenant( String arg0 ) {\n return null;\n }", "title": "" }, { "docid": "24e8e4bd53c4f464695178fca9bc4781", "score": "0.6681147", "text": "public String getTenantId() {\n return tenantId;\n }", "title": "" }, { "docid": "24e8e4bd53c4f464695178fca9bc4781", "score": "0.6681147", "text": "public String getTenantId() {\n return tenantId;\n }", "title": "" }, { "docid": "6262d8f98ce7be3e85ded6bc18c83466", "score": "0.6664159", "text": "String getOboTenant();", "title": "" }, { "docid": "9c57c8ba401ff5d2283e0a7c408e8acd", "score": "0.6622751", "text": "ITenant getTenant(String principleId);", "title": "" }, { "docid": "a8e215b11844675a914cd6612a685611", "score": "0.6453401", "text": "public String getTenantCode() {\n return tenantCode;\n }", "title": "" }, { "docid": "92249a790700f7bd168716c0edd8fa94", "score": "0.641929", "text": "public UUID tenantId() {\n return this.tenantId;\n }", "title": "" }, { "docid": "c4ca1fbb9ca5d9bfc9a0bd85849e402e", "score": "0.6344502", "text": "@ApiModelProperty(value = \"Unique Identifier of the Estimate Template Activitie\")\n\n\n public String getId() {\n return id;\n }", "title": "" }, { "docid": "0c82da3a2939548eaef3e35fa5699410", "score": "0.6204073", "text": "boolean tenantExist(String tenantId);", "title": "" }, { "docid": "e8289916e40bb45a5957fe6e012870f6", "score": "0.6118231", "text": "public String aadTenantId() {\n return this.aadTenantId;\n }", "title": "" }, { "docid": "30644c79a988402a240c914051318b09", "score": "0.6024199", "text": "public Builder setTenantId(int value) {\n\n tenantId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "749a670b47435d04ae92f0f976f5cc14", "score": "0.5990686", "text": "public void setTenantId(Long tenantId) {\r\n this.tenantId = tenantId;\r\n }", "title": "" }, { "docid": "c74c749fe0ad7973d31af9158d37e619", "score": "0.5979806", "text": "public void setTenantId(String tenantId) {\n this.tenantId = tenantId;\n }", "title": "" }, { "docid": "57edaf273b9ff3aaf9de1539e7107e79", "score": "0.58933276", "text": "public abstract void setTenantId(String tenantId);", "title": "" }, { "docid": "3f31bf0776a04579f0ea4da52932a009", "score": "0.5855285", "text": "public interface ITenant extends Serializable {\n\n /**\n * The method is used for retrieving ID of the tenant.\n * @return Returns String representation of the tenant's ID. \n */\n String getId();\n\n /**\n * The method gets the absolute path to the tenant root folder.\n * Folders for the data protected by current tenant (including the users' home folders) should be\n * located under the tenant's root folder. \n * @return Returns the absolute path to the tenant's root folder. \n */\n String getRootFolderAbsolutePath();\n\n /**\n * This method gets the tenant's name.\n * @return Returns the tenant's name.\n */\n String getName();\n\n /**\n * The method validates whether the tenant is enabled or not. \n * @return Returns true if the tenant is enabled.\n */\n boolean isEnabled();\n\n}", "title": "" }, { "docid": "61b4f766decd28f25da6e918d91e8486", "score": "0.58084345", "text": "public void setTENANT_ID(String TENANT_ID) {\n this.TENANT_ID = TENANT_ID == null ? null : TENANT_ID.trim();\n }", "title": "" }, { "docid": "61b4f766decd28f25da6e918d91e8486", "score": "0.58084345", "text": "public void setTENANT_ID(String TENANT_ID) {\n this.TENANT_ID = TENANT_ID == null ? null : TENANT_ID.trim();\n }", "title": "" }, { "docid": "2b25d01d50aa04914ab802409ace8e39", "score": "0.5808212", "text": "public SystemActiveTenant get(Long activeTenantId);", "title": "" }, { "docid": "f09092e4c56b6fcb69475af7ec5afaf6", "score": "0.57924145", "text": "java.lang.String getTenantDomain();", "title": "" }, { "docid": "4edca6eee133cf27ce25fe7eb1fd997b", "score": "0.5752197", "text": "String getSuperExecutionId();", "title": "" }, { "docid": "a00fed52e16c100d586fcd5b28b6d5ec", "score": "0.572645", "text": "Optional<Tenant> getTenant(String tenantId);", "title": "" }, { "docid": "a0753da4b5d5c481f8a836f4667705eb", "score": "0.5714678", "text": "String getDeploymentId();", "title": "" }, { "docid": "a0753da4b5d5c481f8a836f4667705eb", "score": "0.5714678", "text": "String getDeploymentId();", "title": "" }, { "docid": "204013117f8db40ecd9981e88d3bf576", "score": "0.57124543", "text": "String getPrincipleId(ITenant tenant, String principalName);", "title": "" }, { "docid": "1387ce0a888d1be0fbd18901394dc8dc", "score": "0.5689649", "text": "String getSiteId();", "title": "" }, { "docid": "006a85f4a3f5e9fd97bd299d2beeef7f", "score": "0.5665672", "text": "long getTeambId();", "title": "" }, { "docid": "e1c44b7c27fc11746b874e2f14d46b55", "score": "0.5664633", "text": "public String gettransmittal_id() {\n return AdfFacesContext.getCurrentInstance().getPageFlowScope().get(\"transmittalId\").toString().trim();\n }", "title": "" }, { "docid": "64de8483bb98def157798cf12a80b561", "score": "0.5606721", "text": "public String getAppotemplateid() {\n return appotemplateid;\n }", "title": "" }, { "docid": "02fb832a6eeba7990dbd66e60147ee8f", "score": "0.5581646", "text": "java.lang.String getSiteId();", "title": "" }, { "docid": "568a545155ee5e92a9e8f7ee80f6edeb", "score": "0.553116", "text": "String getTripId();", "title": "" }, { "docid": "3fdaf0cb7ae2bfc268674cbbc936854e", "score": "0.5504241", "text": "int getTranId();", "title": "" }, { "docid": "d24139380d9e9594cf8257c9e47ebeeb", "score": "0.5490451", "text": "long getContestId();", "title": "" }, { "docid": "00ec477bc6744e3d11dced332a648831", "score": "0.54700625", "text": "String getDev_id();", "title": "" }, { "docid": "39b08e354331fe4bead1c76bfa5d2103", "score": "0.5450478", "text": "String getYaaSTenantForBaseSite(final String siteId);", "title": "" }, { "docid": "9e5245fb4579edef7cfbe659a28aba8e", "score": "0.53878176", "text": "@Override\n public String getSiteId() {\n if (ContinuityAuditLogger.isEnabled() && service != null && service.getConfig() != null) {\n ContinuityAuditLogger.getSiteId(service.getConfig());\n }\n clearIO();\n try {\n if(service == null || service.getConfig() == null)\n return \"Continuity configuration does not exist\";\n else\n return service.getConfig().getSiteId();\n } finally {\n blockOnIO();\n }\n }", "title": "" }, { "docid": "4ad862a203cc76faeac1321edbbca162", "score": "0.5382018", "text": "long getSiteid();", "title": "" }, { "docid": "cd42f09b00e91cf396883c22c4cc5f7b", "score": "0.5379377", "text": "@Nullable\n String getTestedApplicationId();", "title": "" }, { "docid": "c9111017225bfea721e492d92c608ca6", "score": "0.5373997", "text": "@ApiModelProperty(required = true, value = \"The estimate template of the Template activity. Unique reference from 'EstimateTemplate'. Primary key is ref. here.\")\n\n\n public String getEstimateTemplate() {\n return estimateTemplate;\n }", "title": "" }, { "docid": "15fab3744ff94f5e39de7f49e9162120", "score": "0.5363045", "text": "int getActivityId();", "title": "" }, { "docid": "b1c4ace7d275453a27f9d14a13423cfa", "score": "0.53516406", "text": "public void setTenantId(String tenantId) {\n this.tenantId = tenantId == null ? null : tenantId.trim();\n }", "title": "" }, { "docid": "af2c57f78a78dc835137ad12496cf469", "score": "0.5319579", "text": "public static void startTenantFlow(String tenantDomain) {\n String tenantDomainParam = tenantDomain;\n int tenantId = MultitenantConstants.SUPER_TENANT_ID;\n\n if (tenantDomainParam != null && !tenantDomainParam.trim().isEmpty()) {\n try {\n tenantId = FrameworkServiceComponent.getRealmService().getTenantManager()\n .getTenantId(tenantDomain);\n } catch (UserStoreException e) {\n log.error(\"Error while getting tenantId from tenantDomain query param\", e);\n }\n } else {\n tenantDomainParam = MultitenantConstants.SUPER_TENANT_DOMAIN_NAME;\n }\n\n PrivilegedCarbonContext.startTenantFlow();\n PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext\n .getThreadLocalCarbonContext();\n carbonContext.setTenantId(tenantId);\n carbonContext.setTenantDomain(tenantDomainParam);\n }", "title": "" }, { "docid": "195ee7b8d6bc8cf838237d6c617d0300", "score": "0.5308048", "text": "public QName getHarvestTemplateId();", "title": "" }, { "docid": "b7de8c48f65377a11e1bcfc544e1384e", "score": "0.53000283", "text": "public Builder clearTenantId() {\n\n tenantId_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c453004a9b567477f5aac5d2c8b7830e", "score": "0.529122", "text": "String getBizId();", "title": "" }, { "docid": "f0ebf4ed141efdec0020ec1ce7e76ce2", "score": "0.52901727", "text": "int getTemplateId();", "title": "" }, { "docid": "1af887eb266bc761d5ece7e3e7e20347", "score": "0.5270385", "text": "protected abstract int getActiveId();", "title": "" }, { "docid": "82f73ac4b46eea45c8a462dac34808ed", "score": "0.5269852", "text": "public int getTemplateId() {\n return templateId_;\n }", "title": "" }, { "docid": "e825d04ac6e657c5e23e2ecace47abd8", "score": "0.5257406", "text": "private String getTenant(AuthenticationContext context, String username) {\n\n if (IdentityTenantUtil.isTenantedSessionsEnabled() || IdentityTenantUtil.isTenantQualifiedUrlsEnabled()) {\n return context.getUserTenantDomain();\n } else {\n return MultitenantUtils.getTenantDomain(username);\n }\n }", "title": "" }, { "docid": "51c75e8312fb0db596f615eb400c9a88", "score": "0.524278", "text": "long getPlanid();", "title": "" }, { "docid": "2aee85c261a195271d02944d6c2214c0", "score": "0.5237911", "text": "public String managedByTenantId() {\n return this.managedByTenantId;\n }", "title": "" }, { "docid": "0700ec8ff2c9500ed315f218e5121ece", "score": "0.5236168", "text": "public String getIntranetUserid() {\n return intranetUserid;\n }", "title": "" }, { "docid": "496fe7278e1e2493324d4652619f693b", "score": "0.52301174", "text": "private Map<String, String> getTenantHeader(String tenantId) {\n return Collections.singletonMap(\"Hawkular-Tenant\", tenantId);\n }", "title": "" }, { "docid": "692b80437585fda275850a97bcb47653", "score": "0.52246076", "text": "public String getTechnicianId() {\n\t\treturn technicianId;\n\t}", "title": "" }, { "docid": "8ceaa9bc6ce0f8a69c120e00110ee041", "score": "0.52186084", "text": "public int getId()\n {\n \n return acctID;\n \n }", "title": "" }, { "docid": "dec59a7156f1e47ba7a26cdda2136b1f", "score": "0.5216686", "text": "String getIotId();", "title": "" }, { "docid": "6b0d8725c28432c9135e23213509d34d", "score": "0.5208946", "text": "private AID getAidOfCeaFromDeploymentSettings() {\r\n\t\tAID aid = null;\r\n\t\tif (this.getHyGridAbstractEnvironmentModel()!=null) {\r\n\t\t\tAgentSpecifier ceaSpecifier = this.getHyGridAbstractEnvironmentModel().getDeploymentSettings().getCentralAgentSpecifier();\r\n\t\t\taid = ceaSpecifier.getAID();\r\n\t\t}\r\n\t\treturn aid;\r\n\t}", "title": "" }, { "docid": "590826c5817ef716d5219a8eca117b31", "score": "0.51819485", "text": "protected String getUniqueId() {\n return this.getPortletConfig().getPortletName();\n }", "title": "" }, { "docid": "dd6d73a7ddce9c656bdd001902b064d4", "score": "0.51794946", "text": "public String frsTenantId() {\n return this.frsTenantId;\n }", "title": "" }, { "docid": "965d6dd9dce19765627ba727680ce4a2", "score": "0.5178083", "text": "public int getClientId();", "title": "" }, { "docid": "d0d0de350b09ff69b4a3ea65be410870", "score": "0.51744616", "text": "protected SessionId getSuperAdminSessionId() {\n return new AdminSessionId(clientsConfig.getSystemSessionId());\n }", "title": "" }, { "docid": "33aab49738a1d8f5ef54a67a1c805bc9", "score": "0.5154588", "text": "int getWebsiteId();", "title": "" }, { "docid": "3aa99416d5150e01893701e28e290384", "score": "0.51489276", "text": "public String getAtpId();", "title": "" }, { "docid": "b2ce652fac3207695bbb15fa29c15549", "score": "0.5148524", "text": "public String getTestId();", "title": "" }, { "docid": "e419536dc16c034dc9d7530163a4627e", "score": "0.5142869", "text": "public int getTemplateId() {\n return templateId_;\n }", "title": "" }, { "docid": "1ac3a69804d203e3a71d0dee1e9a649a", "score": "0.5141576", "text": "public int getThermostatId() {\n return thermostatId;\n }", "title": "" }, { "docid": "3b37debc1eba3e20c9c7c0d252ec0a1d", "score": "0.5137187", "text": "public String getIdTechnician() {\n\t\treturn idTechnician;\n\t}", "title": "" }, { "docid": "4f1b373d4566d8ed36f120f8b8151d0a", "score": "0.5136365", "text": "public String getTaxId();", "title": "" }, { "docid": "f3b27b8d76238e9c474d0a5e8c266e7f", "score": "0.51359105", "text": "public long getDocTemplateId();", "title": "" }, { "docid": "f0d528a59b3d81751b5a0ba58bf544c3", "score": "0.51274467", "text": "int getPartnerId();", "title": "" }, { "docid": "a47f07e0352a60ec82bf6de8aae2db26", "score": "0.5127419", "text": "int getApplicationId();", "title": "" }, { "docid": "258ecaa43e42d2314cce314a36a41e7a", "score": "0.51256037", "text": "public int getTcId() {\n\t\treturn tcId;\n\t}", "title": "" }, { "docid": "5e748d0d6f16561d378e50fe92e6f5e7", "score": "0.5123294", "text": "long getClientId();", "title": "" }, { "docid": "878382182d5f6f6a96eea927a1435039", "score": "0.5115704", "text": "java.lang.String getTestCaseId();", "title": "" }, { "docid": "878382182d5f6f6a96eea927a1435039", "score": "0.5115704", "text": "java.lang.String getTestCaseId();", "title": "" }, { "docid": "878382182d5f6f6a96eea927a1435039", "score": "0.5115704", "text": "java.lang.String getTestCaseId();", "title": "" }, { "docid": "878382182d5f6f6a96eea927a1435039", "score": "0.5115704", "text": "java.lang.String getTestCaseId();", "title": "" }, { "docid": "2a318b7a30b9c1ebac73b5c4ce28262f", "score": "0.5091489", "text": "String devCenterId();", "title": "" }, { "docid": "410727bf43fba5053890eb07a84eaa5a", "score": "0.5080906", "text": "TransactionId transactionId();", "title": "" }, { "docid": "ea4a548d9dc9759f7024a76bc95d08a2", "score": "0.5078099", "text": "int getCustomerId();", "title": "" }, { "docid": "b733fc54dfc6ac4c4b0da749dbf9c503", "score": "0.50709766", "text": "public int getTestcaseId() {\n return testcaseId;\n }", "title": "" }, { "docid": "ef88ecf9a5bdf4c4f52c9d401ba97e27", "score": "0.50701773", "text": "public List<Tenant> getTenants() throws TapisClientException\n {\n return getTenants(null, null);\n }", "title": "" }, { "docid": "cddde1d950126ee9c8c85455bda649a9", "score": "0.5067435", "text": "public String GetPartId();", "title": "" }, { "docid": "f666f4c2ac2da8f46860c184a4b87085", "score": "0.50549567", "text": "public String getTemplateId() {\n return templateId;\n }", "title": "" }, { "docid": "966ad3d49271fee24cf9d3fd53c31dec", "score": "0.50495845", "text": "public Integer gettId() {\n return tId;\n }", "title": "" }, { "docid": "0cfe1e7539548f65adb997acced6a19d", "score": "0.5049222", "text": "String getApplicationId();", "title": "" }, { "docid": "d41a06c12b2b052b4266fb8379ab2fd5", "score": "0.50420403", "text": "public void setTenantCode(String tenantCode) {\n this.tenantCode = tenantCode;\n }", "title": "" }, { "docid": "1363a5b672ff52914d223dfc7d0205b0", "score": "0.5041677", "text": "public Tenant getTenant(String tenantName) throws TapisClientException\n {\n // Make the service call.\n Map resp = null;\n try { \n var tenantsApi = new TenantsApi();\n resp = (Map) tenantsApi.getTenant(tenantName); \n }\n catch (ApiException e) {Utils.throwTapisClientException(e.getCode(), e.getResponseBody(), e); }\n catch (Exception e) { Utils.throwTapisClientException(-1, null, e); }\n \n // Marshal only the result from the map.\n String json = _gson.toJson(resp.get(\"result\"));\n if (StringUtils.isBlank(json)) return null;\n return _gson.fromJson(json, Tenant.class);\n }", "title": "" } ]
5e185150f8b61ce5105970ef4a853eb6
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
[ { "docid": "e358f5a683ffe04b021216126a975db5", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jLabel6 = new javax.swing.JLabel();\n txtEmail = new javax.swing.JFormattedTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n btnVoltar = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n btnCadastrar = new javax.swing.JButton();\n txtUser = new javax.swing.JTextField();\n txtNome = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n radioDiretor = new javax.swing.JRadioButton();\n radioVice = new javax.swing.JRadioButton();\n radioCoordenador = new javax.swing.JRadioButton();\n radioSecretario = new javax.swing.JRadioButton();\n jLabel8 = new javax.swing.JLabel();\n ComboFuncao = new javax.swing.JComboBox<>();\n txtMatricula = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txtCpf = new javax.swing.JFormattedTextField();\n lblSenha = new javax.swing.JLabel();\n txtSenha = new javax.swing.JPasswordField();\n lblVer = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel6.setText(\"CPF:\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel1.setText(\"CADASTRO DE USUARIO\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel2.setText(\"Nome:\");\n\n btnVoltar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/IconeSair.png\"))); // NOI18N\n btnVoltar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVoltarActionPerformed(evt);\n }\n });\n btnVoltar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n btnVoltarKeyPressed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel3.setText(\"Nome de Usuario:\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel4.setText(\"Senha:\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel7.setText(\"CARGO:\");\n\n btnCadastrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/IconeDIsquete.png\"))); // NOI18N\n btnCadastrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCadastrarActionPerformed(evt);\n }\n });\n btnCadastrar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n btnCadastrarKeyPressed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel5.setText(\"Email:\");\n\n buttonGroup1.add(radioDiretor);\n radioDiretor.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n radioDiretor.setText(\"Diretor(a)\");\n radioDiretor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n radioDiretorActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(radioVice);\n radioVice.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n radioVice.setText(\"Vice-diretor(a)\");\n radioVice.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n radioViceActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(radioCoordenador);\n radioCoordenador.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n radioCoordenador.setText(\"Coordenador(a)\");\n radioCoordenador.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n radioCoordenadorActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(radioSecretario);\n radioSecretario.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n radioSecretario.setText(\"Secretario(a)\");\n radioSecretario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n radioSecretarioActionPerformed(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel8.setText(\"FUNÇÃO:\");\n\n ComboFuncao.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"-- Escolha a função --\", \"Diretor(a)\", \"Vice-Diretor(a)\", \"Coordenador(a)\", \"Secretario(a)\" }));\n\n txtMatricula.setToolTipText(\"Numero da matricula do funionario na prefeitura\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel9.setText(\"Matricula do funcionario:\");\n\n try {\n txtCpf.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###.###.###-##\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n lblSenha.setFont(new java.awt.Font(\"Tahoma\", 3, 11)); // NOI18N\n\n txtSenha.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n txtSenhaMouseClicked(evt);\n }\n });\n\n lblVer.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icones/IconeOlho.png\"))); // NOI18N\n lblVer.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblVerMouseClicked(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n lblVerMouseExited(evt);\n }\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n lblVerMouseReleased(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 167, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(189, 189, 189))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 319, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCpf, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel2)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel9))))\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 319, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtUser, javax.swing.GroupLayout.PREFERRED_SIZE, 319, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btnVoltar, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addGap(109, 109, 109))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addGap(42, 42, 42))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(radioDiretor)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(ComboFuncao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(radioVice, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(radioSecretario, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(radioCoordenador, javax.swing.GroupLayout.Alignment.LEADING))))\n .addGap(61, 61, 61)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(btnCadastrar, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())))\n .addGroup(layout.createSequentialGroup()\n .addGap(74, 74, 74)\n .addComponent(txtSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(11, 11, 11)\n .addComponent(lblVer, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblSenha, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(txtMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, 130, 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(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(55, 55, 55)\n .addComponent(jLabel9))\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1, 1, 1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(9, 9, 9)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCpf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(24, 24, 24))\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtUser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(radioDiretor)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(radioVice)\n .addGap(3, 3, 3)\n .addComponent(radioCoordenador)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(radioSecretario)\n .addGap(18, 18, 18)\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboFuncao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblSenha, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtSenha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(lblVer, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(56, 56, 56)\n .addComponent(btnVoltar, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCadastrar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "title": "" } ]
[ { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.7392794", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "b431c293f27700e21b92be92177c04a2", "score": "0.73463786", "text": "public UIForm() {\n initComponents();\n }", "title": "" }, { "docid": "37a5472d5b0f35cf64a077bc1dd978c4", "score": "0.73211485", "text": "public Form() {\n initComponents();\n }", "title": "" }, { "docid": "a6c057f298848365334da6fdde36a65d", "score": "0.7298858", "text": "public FrmAddNanny1() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72904706", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72904706", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72904706", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "99ef3f16a1baa360d7223041ed73f308", "score": "0.72707456", "text": "public UML_Generator_Form() {\n initComponents();\n }", "title": "" }, { "docid": "d9019db3a6bab2b5e6566f2c67bfef27", "score": "0.72679293", "text": "public MainForm() {\n initComponents();\n SetFramePosition(this);\n FillMedTypes();\n }", "title": "" }, { "docid": "f357be1c01f6e2092775a85d31b1cb52", "score": "0.72628266", "text": "public C_form() {\n initComponents();\n }", "title": "" }, { "docid": "6198ec829d947e453122ea51000d7552", "score": "0.7235002", "text": "public BrainForm() {\n initComponents();\n }", "title": "" }, { "docid": "9085339b73ef286d3b1f52a58234b0a7", "score": "0.7171629", "text": "public CN3Form() {\n initComponents();\n }", "title": "" }, { "docid": "02cd7126c26a98ea1bcc5f0e000db369", "score": "0.71563286", "text": "public frmPOS() {\n initComponents();\n }", "title": "" }, { "docid": "345d20e041e97d0186b442fab9f4338f", "score": "0.7143392", "text": "public JMCF1() {\n initComponents();\n }", "title": "" }, { "docid": "28be02408097b6c1cba7e03b620ade1e", "score": "0.7137662", "text": "public FornecedorForm() {\n initComponents();\n }", "title": "" }, { "docid": "550c7844d0ad043dd02278035eb6b06f", "score": "0.71086884", "text": "public Fr_cle() {\n initComponents();\n }", "title": "" }, { "docid": "448cf8d9bd96433b230fbfbbf2d838f1", "score": "0.7096318", "text": "public ReseptionFormViewer() {\n initComponents();\n }", "title": "" }, { "docid": "bf167ce6158500558679ba59b1cbe397", "score": "0.7053219", "text": "public FirstForm() {\n initComponents();\n }", "title": "" }, { "docid": "25b12189b01cc4d3d6f43be2a79acec1", "score": "0.7030824", "text": "public mandelbrots() {\n initComponents();\n }", "title": "" }, { "docid": "cdc7c10a32cbd944feaa9af5537eacb3", "score": "0.7013846", "text": "public CervejariaForm() {\n initComponents();\n }", "title": "" }, { "docid": "a4ed1119660d8199c66866c2a19254cf", "score": "0.7012474", "text": "public ManageFlightGUI() {\n initComponents();\n }", "title": "" }, { "docid": "2554562864629ad1b7889ea4510b2300", "score": "0.69987285", "text": "public LCS_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "3bfb8b57275e9f9747bace5486a9cfd3", "score": "0.6958104", "text": "public FormQuanLyPhong() {\n initComponents();\n setLocationRelativeTo(this);\n showData();\n }", "title": "" }, { "docid": "a1adbe5bdc420b99de5fa241f7bf4217", "score": "0.6956051", "text": "public Frmclothes() {\n initComponents();\n }", "title": "" }, { "docid": "f29fe8a9855f69dc09f2bebaddd9fdd5", "score": "0.6948676", "text": "public MatrixOperationForm()\n {\n initComponents();\n }", "title": "" }, { "docid": "30002cd20258df0ca16e751d3fed7e2e", "score": "0.6947765", "text": "public FCampus() {\n initComponents();\n }", "title": "" }, { "docid": "f12875c826b9ca0239a6814057248dd0", "score": "0.69463235", "text": "public lGenGUI03() {\n initComponents();\n }", "title": "" }, { "docid": "51f83d7228d7c45f4fbf79e750335c2f", "score": "0.6939814", "text": "public MainForm() {\n initComponents();\n customInitComponents();\n this.setTitle(\"Explorer\");\n }", "title": "" }, { "docid": "7114270ec49a6978139866634a90c0bf", "score": "0.6929682", "text": "public frmCv() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "7b87bb1c55a945d32f8f17710d3f2d31", "score": "0.6912313", "text": "public PocketCalculatorUI() {\n initComponents();\n }", "title": "" }, { "docid": "8134476dc6b52000055c99fefdb483bc", "score": "0.6911921", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n pack();\n }", "title": "" }, { "docid": "cbdd2da625d7fbcf793347eba5a25189", "score": "0.690949", "text": "public YasadiginSehirUygulamasi()\n {\n initComponents();\n }", "title": "" }, { "docid": "89283779cfe1ff1359aa1ee363bd57e5", "score": "0.69001955", "text": "public frmAltas() {\n initComponents();\n }", "title": "" }, { "docid": "44e49b23dd59818eac5a3976b79007d1", "score": "0.6899166", "text": "public AddForm() {\n initComponents();\n }", "title": "" }, { "docid": "e47a15372c5e2d22a7a8dc5ed6c16cdb", "score": "0.6884453", "text": "public frmRel() {\n initComponents();\n }", "title": "" }, { "docid": "cad9ca9c6d36f66fbf8cfb51885abcf6", "score": "0.68844515", "text": "public CalcForm() {\n initComponents();\n }", "title": "" }, { "docid": "df9586a96eb113c62f539c3f38933bb7", "score": "0.6875396", "text": "public BookTypeInterFrm() {\n initComponents();\n this.setLocation(200, 50);\n }", "title": "" }, { "docid": "99411d3d9c66d612803a670a18bf4522", "score": "0.6873726", "text": "public Patient_Menu() {\n initComponents();\n }", "title": "" }, { "docid": "4660140502277fb935d96e16fccb8a64", "score": "0.6872169", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n\n setLayout(new java.awt.BorderLayout());\n\n }", "title": "" }, { "docid": "4660140502277fb935d96e16fccb8a64", "score": "0.6872169", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n\n setLayout(new java.awt.BorderLayout());\n\n }", "title": "" }, { "docid": "4660140502277fb935d96e16fccb8a64", "score": "0.6872169", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n\n setLayout(new java.awt.BorderLayout());\n\n }", "title": "" }, { "docid": "7df540c10e220cde2adc225568bc2d47", "score": "0.68670917", "text": "public lieferant() {\n initComponents();\n }", "title": "" }, { "docid": "6d2b4f9c056493c1bc3de4417fbe1b56", "score": "0.68626773", "text": "public secenekler() {\n initComponents();\n }", "title": "" }, { "docid": "361fa7780925c7948c8b26ae266262a5", "score": "0.6855184", "text": "public JForm() {\r\n initActions();\r\n }", "title": "" }, { "docid": "8f6e9202d9ab7d8561c967b6183aa640", "score": "0.6854094", "text": "public frmTrain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6853256", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6853256", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6853256", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6853256", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6853256", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "5a1c2d6f35a55ffbd244973a342adb26", "score": "0.6843137", "text": "public FMain() {\n initComponents();\n setLocationRelativeTo(null);\n prepareForm();\n }", "title": "" }, { "docid": "f7b21aa4f46f4323afd37be2d92fb80b", "score": "0.683598", "text": "public Travel_Insurance_form() {\n initComponents();\n }", "title": "" }, { "docid": "3158a9d16d294f1bcdcea736a2b0a8c6", "score": "0.6835158", "text": "public ShowForm() {\n initComponents();\n }", "title": "" }, { "docid": "189a0af3dfa5c7fa3c234a38ae072514", "score": "0.6833316", "text": "public Praktik_7() {\n initComponents();\n }", "title": "" }, { "docid": "f9a62b34de062f3fdfe71ded48f6aa83", "score": "0.6828489", "text": "public FrmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "7ffc36751889dbd5fa5fcf65a27d220a", "score": "0.68269217", "text": "public v_lahan() {\n initComponents();\n }", "title": "" }, { "docid": "63b765a7f6f8c63c084d6e032e5482eb", "score": "0.6822891", "text": "public ConnectionForm()\n {\n initComponents();\n AddComboBoxListener();\n }", "title": "" }, { "docid": "b286a4e05cb0088fa7c238f6635e7a3a", "score": "0.6821797", "text": "public Daftarscore_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "077b85ddee2b4d88b7e9a91281ba1a85", "score": "0.68150854", "text": "public ModifyMemberForm() {\n initComponents();\n }", "title": "" }, { "docid": "80982c3cbb823a99cd5c99ec187361ca", "score": "0.68150467", "text": "public FrmKlijent() {\n initComponents();\n }", "title": "" }, { "docid": "08fe24d6ead0db26abdd6831f96c9228", "score": "0.68130296", "text": "public frmAdmin() {\n initComponents();\n setLocationRelativeTo(this);\n loadImg();\n sliderShow();\n this.jLabel1.setText(Useful.adminRegistred.getFirstName() + \" \" + Useful.adminRegistred.getLastName());\n }", "title": "" }, { "docid": "0ef7652255d212415901b51e7d8d673c", "score": "0.6812576", "text": "public InventoryForm() {\n initComponents();\n excelGenerator = new ExcelGenerator();\n validator = new Validator();\n propertiesFrom = new PropertiesFrom();\n propertiesFrom.setVisible(false);\n }", "title": "" }, { "docid": "924d98c05e991ce06cfe8f32cd92866a", "score": "0.6807027", "text": "public Menucal() {\n initComponents();\n }", "title": "" }, { "docid": "8bb90c5b8df7ad23a669a727212a88ba", "score": "0.6802685", "text": "public EditForm() {\n initComponents();\n \n \n }", "title": "" }, { "docid": "2e538698e2bd048cca1b91688a72e17a", "score": "0.6802116", "text": "public FenInf() {\n initComponents();\n }", "title": "" }, { "docid": "ecbddd369cb48d2da1d061351136eff4", "score": "0.6801141", "text": "public frm_CapNhapSinhVien() {\n initComponents();\n }", "title": "" }, { "docid": "950846e53d1dc07c1f594aebb6663a36", "score": "0.680113", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setMaximumSize(new java.awt.Dimension(120, 32767));\n setName(\"Form\"); // NOI18N\n setPreferredSize(new java.awt.Dimension(120, 1400));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 128, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 700, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "5304f73da3f9687796683408bebf6540", "score": "0.68005764", "text": "public UI2() {\n initComponents();\n }", "title": "" }, { "docid": "1fa76004c29cb6a975df50e985d37d09", "score": "0.6799726", "text": "private ListObjectsForm() {\n initComponents();\n }", "title": "" }, { "docid": "bf9ae11e5f3a9bbdc729fbdbb2afd3aa", "score": "0.67961687", "text": "public frm_ferias() {\n initComponents();\n }", "title": "" }, { "docid": "366e6b4831b728e7a8ce9d0645c0e6db", "score": "0.6792716", "text": "public EncounterConverterUI() {\n initComponents();\n }", "title": "" }, { "docid": "2efa4378f9a23a15072175ba7a415069", "score": "0.679182", "text": "public frmVentas() {\n initComponents();\n }", "title": "" }, { "docid": "417b6324d6390b69daf9dfd566f4e8bb", "score": "0.67900455", "text": "public DaftarKelompok() {\n initComponents();\n }", "title": "" }, { "docid": "934b868e05521518a8bb87a5b5dbd06c", "score": "0.6788386", "text": "public CalendarForm() {\n initComponents();\n }", "title": "" }, { "docid": "b521c4f5055533e34d820244ff757912", "score": "0.6778654", "text": "public MainForm() {\n this.setTitle(\"Digital Signature\");\n this.setResizable(false);\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MainForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n initComponents();\n \n \n \n }", "title": "" }, { "docid": "1bddc27d3c24abf633c680b2971eaffd", "score": "0.6768702", "text": "public ReservationForm() {\n Login.initLookAndFeel();\n initComponents();\n }", "title": "" }, { "docid": "de63dde4576f94a5ac69379ce29e9091", "score": "0.67676663", "text": "public Barang() {\n initComponents();\n }", "title": "" }, { "docid": "94db870c8585152c02354d56740bf0a9", "score": "0.67671525", "text": "public BankAppGUI() {\n initComponents();\n }", "title": "" }, { "docid": "f96c8c0d8eccf95cac919690a69d0eb0", "score": "0.6767108", "text": "public frm_music() {\n initComponents();\n }", "title": "" }, { "docid": "14e001de86d92b17f5aec642bdae76b0", "score": "0.676549", "text": "public Class() {\n initComponents();\n }", "title": "" }, { "docid": "ad5903d237f783a3fce86696dcb3c265", "score": "0.6760447", "text": "public creditos() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "1e9048b1b83443270ee1025d8e09be92", "score": "0.6756709", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txtFName = new javax.swing.JTextField();\n txtLName = new javax.swing.JTextField();\n txtStreet = new javax.swing.JTextField();\n txtCity = new javax.swing.JTextField();\n cboState = new javax.swing.JComboBox();\n txtZip = new javax.swing.JTextField();\n txtEmail = new javax.swing.JTextField();\n txtPhoneArea = new javax.swing.JTextField();\n txtPhoneFirst = new javax.swing.JTextField();\n txtPhoneLast = new javax.swing.JTextField();\n txtPosition = new javax.swing.JTextField();\n cboCommMethod = new javax.swing.JComboBox();\n scpDescription = new javax.swing.JScrollPane();\n txaDescription = new javax.swing.JTextArea();\n txtPhoneDash1 = new javax.swing.JLabel();\n lblPhoneRightParenthesis1 = new javax.swing.JLabel();\n txtPhoneLeftParenthesis1 = new javax.swing.JLabel();\n lblCommMethod1 = new javax.swing.JLabel();\n lblDescription1 = new javax.swing.JLabel();\n lblPosition1 = new javax.swing.JLabel();\n lblPhone1 = new javax.swing.JLabel();\n lblEmail1 = new javax.swing.JLabel();\n lblState1 = new javax.swing.JLabel();\n lblCity1 = new javax.swing.JLabel();\n lblZip1 = new javax.swing.JLabel();\n lblStreet1 = new javax.swing.JLabel();\n lblFName = new javax.swing.JLabel();\n lblLName1 = new javax.swing.JLabel();\n cboIndustry = new javax.swing.JComboBox();\n cboCompany = new javax.swing.JComboBox();\n lblCompany = new javax.swing.JLabel();\n lblIndustryDivision = new javax.swing.JLabel();\n lblPhoneExt = new javax.swing.JLabel();\n txtPhoneExt = new javax.swing.JTextField();\n lblCompanyTitle = new javax.swing.JLabel();\n lblCompanyTitle1 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n\n setName(\"Form\"); // NOI18N\n setPreferredSize(new java.awt.Dimension(681, 400));\n\n txtFName.setName(\"txtFName\"); // NOI18N\n\n txtLName.setName(\"txtLName\"); // NOI18N\n\n txtStreet.setName(\"txtStreet\"); // NOI18N\n\n txtCity.setName(\"txtCity\"); // NOI18N\n\n cboState.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"AL\", \"AK\", \"AZ\", \"AR\", \"CA\", \"CO\", \"CT\", \"DE\", \"FL\", \"GA\", \"HI\", \"ID\", \"IL\", \"IN\", \"IA\", \"KS\", \"KY\", \"LA\", \"ME\", \"MD\", \"MA\", \"MI\", \"MN\", \"MS\", \"MO\", \"MT\", \"NE\", \"NV\", \"NH\", \"NJ\", \"NM\", \"NY\", \"NC\", \"ND\", \"OH\", \"OK\", \"OR\", \"PA\", \"RI\", \"SC\", \"SD\", \"TN\", \"TX\", \"UT\", \"VT\", \"VA\", \"WA\", \"WV\", \"WI\", \"WY\" }));\n cboState.setName(\"cboState\"); // NOI18N\n\n txtZip.setName(\"txtZip\"); // NOI18N\n txtZip.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n txtZipMouseExited(evt);\n }\n });\n txtZip.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtZipActionPerformed(evt);\n }\n });\n txtZip.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtZipFocusLost(evt);\n }\n });\n\n txtEmail.setName(\"txtEmail\"); // NOI18N\n\n txtPhoneArea.setName(\"txtPhoneArea\"); // NOI18N\n\n txtPhoneFirst.setMaximumSize(new java.awt.Dimension(3, 3));\n txtPhoneFirst.setName(\"txtPhoneFirst\"); // NOI18N\n\n txtPhoneLast.setName(\"txtPhoneLast\"); // NOI18N\n\n txtPosition.setName(\"txtPosition\"); // NOI18N\n\n cboCommMethod.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Email\", \"Phone\" }));\n cboCommMethod.setName(\"cboCommMethod\"); // NOI18N\n\n scpDescription.setName(\"scpDescription\"); // NOI18N\n\n txaDescription.setColumns(20);\n txaDescription.setRows(5);\n txaDescription.setName(\"txaDescription\"); // NOI18N\n scpDescription.setViewportView(txaDescription);\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(cis406.MainApp.class).getContext().getResourceMap(ContactPanel.class);\n txtPhoneDash1.setText(resourceMap.getString(\"txtPhoneDash1.text\")); // NOI18N\n txtPhoneDash1.setName(\"txtPhoneDash1\"); // NOI18N\n\n lblPhoneRightParenthesis1.setText(resourceMap.getString(\"lblPhoneRightParenthesis1.text\")); // NOI18N\n lblPhoneRightParenthesis1.setName(\"lblPhoneRightParenthesis1\"); // NOI18N\n\n txtPhoneLeftParenthesis1.setText(resourceMap.getString(\"txtPhoneLeftParenthesis1.text\")); // NOI18N\n txtPhoneLeftParenthesis1.setName(\"txtPhoneLeftParenthesis1\"); // NOI18N\n\n lblCommMethod1.setText(resourceMap.getString(\"lblCommMethod1.text\")); // NOI18N\n lblCommMethod1.setName(\"lblCommMethod1\"); // NOI18N\n\n lblDescription1.setText(resourceMap.getString(\"lblDescription1.text\")); // NOI18N\n lblDescription1.setName(\"lblDescription1\"); // NOI18N\n\n lblPosition1.setText(resourceMap.getString(\"lblPosition1.text\")); // NOI18N\n lblPosition1.setName(\"lblPosition1\"); // NOI18N\n\n lblPhone1.setText(resourceMap.getString(\"lblPhone1.text\")); // NOI18N\n lblPhone1.setName(\"lblPhone1\"); // NOI18N\n\n lblEmail1.setText(resourceMap.getString(\"lblEmail1.text\")); // NOI18N\n lblEmail1.setName(\"lblEmail1\"); // NOI18N\n\n lblState1.setText(resourceMap.getString(\"lblState1.text\")); // NOI18N\n lblState1.setName(\"lblState1\"); // NOI18N\n\n lblCity1.setText(resourceMap.getString(\"lblCity1.text\")); // NOI18N\n lblCity1.setName(\"lblCity1\"); // NOI18N\n\n lblZip1.setText(resourceMap.getString(\"lblZip1.text\")); // NOI18N\n lblZip1.setName(\"lblZip1\"); // NOI18N\n\n lblStreet1.setText(resourceMap.getString(\"lblStreet1.text\")); // NOI18N\n lblStreet1.setName(\"lblStreet1\"); // NOI18N\n\n lblFName.setText(resourceMap.getString(\"lblFName.text\")); // NOI18N\n lblFName.setName(\"lblFName\"); // NOI18N\n\n lblLName1.setText(resourceMap.getString(\"lblLName1.text\")); // NOI18N\n lblLName1.setName(\"lblLName1\"); // NOI18N\n\n cboIndustry.setEditable(true);\n cboIndustry.setModel(new CisComboBox(\"industry\", \"industry_name\"));\n cboIndustry.setName(\"cboIndustry\"); // NOI18N\n\n cboCompany.setEditable(true);\n cboCompany.setModel(new CisComboBox(\"company\", \"name\"));\n cboCompany.setName(\"cboCompany\"); // NOI18N\n cboCompany.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cboCompanyActionPerformed(evt);\n }\n });\n\n lblCompany.setText(resourceMap.getString(\"lblCompany.text\")); // NOI18N\n lblCompany.setName(\"lblCompany\"); // NOI18N\n\n lblIndustryDivision.setText(resourceMap.getString(\"lblIndustryDivision.text\")); // NOI18N\n lblIndustryDivision.setName(\"lblIndustryDivision\"); // NOI18N\n\n lblPhoneExt.setText(resourceMap.getString(\"lblPhoneExt.text\")); // NOI18N\n lblPhoneExt.setName(\"lblPhoneExt\"); // NOI18N\n\n txtPhoneExt.setName(\"txtPhoneExt\"); // NOI18N\n\n lblCompanyTitle.setFont(resourceMap.getFont(\"lblCompanyTitle.font\")); // NOI18N\n lblCompanyTitle.setText(resourceMap.getString(\"lblCompanyTitle.text\")); // NOI18N\n lblCompanyTitle.setName(\"lblCompanyTitle\"); // NOI18N\n\n lblCompanyTitle1.setFont(resourceMap.getFont(\"lblCompanyTitle1.font\")); // NOI18N\n lblCompanyTitle1.setText(resourceMap.getString(\"lblCompanyTitle1.text\")); // NOI18N\n lblCompanyTitle1.setName(\"lblCompanyTitle1\"); // NOI18N\n\n jSeparator1.setName(\"jSeparator1\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblCompanyTitle)\n .addContainerGap(605, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblCompanyTitle1)\n .addContainerGap(617, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblCity1)\n .addComponent(lblState1)\n .addComponent(lblPhone1)\n .addComponent(lblStreet1)\n .addComponent(lblZip1)\n .addComponent(lblEmail1)\n .addComponent(lblPhoneExt)\n .addComponent(lblPosition1)\n .addComponent(lblCommMethod1)\n .addComponent(lblDescription1)\n .addComponent(lblFName))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPosition, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPhoneExt, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtZip, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCity, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cboState, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 302, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtStreet, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtPhoneLeftParenthesis1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPhoneArea, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblPhoneRightParenthesis1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPhoneFirst, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPhoneDash1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPhoneLast, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(cboCommMethod, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtFName, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblLName1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtLName, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34))\n .addComponent(scpDescription, javax.swing.GroupLayout.DEFAULT_SIZE, 591, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(lblCompany)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cboCompany, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(lblIndustryDivision)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cboIndustry, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(15, 15, 15))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblCompanyTitle)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblCompany)\n .addComponent(cboCompany, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblIndustryDivision)\n .addComponent(cboIndustry, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblCompanyTitle1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblFName)\n .addComponent(lblLName1)\n .addComponent(txtLName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtFName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblStreet1)\n .addComponent(txtStreet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblZip1)\n .addComponent(txtZip, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblCity1)\n .addComponent(txtCity, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblState1)\n .addComponent(cboState, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblEmail1)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPhoneLeftParenthesis1)\n .addComponent(lblPhoneRightParenthesis1)\n .addComponent(lblPhone1)\n .addComponent(txtPhoneArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPhoneFirst, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPhoneDash1)\n .addComponent(txtPhoneLast, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblPhoneExt)\n .addComponent(txtPhoneExt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPosition, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblPosition1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblCommMethod1)\n .addComponent(cboCommMethod, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblDescription1)\n .addComponent(scpDescription, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE))\n .addContainerGap())\n );\n }", "title": "" }, { "docid": "f295a7f8b78d1b05f2c4b595c49a05d6", "score": "0.67504925", "text": "public frmIMC() {\n initComponents();\n }", "title": "" }, { "docid": "182220a859f0a1e03e78b4df1f73b0b4", "score": "0.6750063", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pack();\n }", "title": "" }, { "docid": "182220a859f0a1e03e78b4df1f73b0b4", "score": "0.6750063", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pack();\n }", "title": "" }, { "docid": "fcf68eba85aa35947bd819178e9b0d33", "score": "0.67463017", "text": "public guiRelatorio4() {\n initComponents();\n }", "title": "" }, { "docid": "323ebae33b9e368dcf3abe161ee69210", "score": "0.6746128", "text": "public TelaVendedor() {\n initComponents();\n }", "title": "" }, { "docid": "f70125aa78e68f55dca32d4f2440606f", "score": "0.6745311", "text": "public JourneyPlannerGUI() \n {\n initComponents();\n }", "title": "" }, { "docid": "9b18c44c80e1f36b332d2aabde1cb53e", "score": "0.67451215", "text": "public StudentGUI() {\n initComponents();\n }", "title": "" }, { "docid": "1eda707a3bcb40dda0974b02e4424e09", "score": "0.6744051", "text": "public NewDepFrame() {\n initComponents();\n }", "title": "" }, { "docid": "d438fbbd73d3412fce4e7c422ba10445", "score": "0.67435783", "text": "public HillForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n }", "title": "" }, { "docid": "027757942adf960aaa02edaac2b6cfa8", "score": "0.6735234", "text": "public alat() {\n initComponents();\n }", "title": "" }, { "docid": "efba3f0506d553db9f15b52f44470e16", "score": "0.67343146", "text": "public frmMenu() {\n initComponents();\n this.setLocationRelativeTo(null);\n setSize(500,500);\n setLocationRelativeTo(null);\n setResizable(false);\n }", "title": "" }, { "docid": "87f0d8781ea16aaa580340ee244ed566", "score": "0.6732038", "text": "public Multiplos() {\n initComponents();\n }", "title": "" }, { "docid": "ade666b07097bb23658febea6731c059", "score": "0.6723283", "text": "public GUIJefeDepto() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "59104e8e50595e3442ba7643b888d9e5", "score": "0.67215985", "text": "public Kuis2() {\n initComponents();\n }", "title": "" }, { "docid": "4a6105eba42a5aa044db1cadaeab4e21", "score": "0.671711", "text": "public autenthificationFRM() {\n initComponents();\n }", "title": "" }, { "docid": "1bb6984e38da71b30e8faf397641a58d", "score": "0.67159706", "text": "public KayitSayfasi() {\n initComponents();\n }", "title": "" }, { "docid": "40cff2506d07b37c3e8a640563b570d9", "score": "0.67132103", "text": "public CadastroManagerGUI() {\n initComponents();\n }", "title": "" }, { "docid": "6d4215ebddadb088c28c2d0d1611169c", "score": "0.6709218", "text": "public MainForm()\n {\n // Constructor\n initDebugModel();\n initComponents();\n }", "title": "" }, { "docid": "0a0d393ff2707e6659fdd25aa0e132a6", "score": "0.6708982", "text": "public SplashForm() {\n initComponents();\n }", "title": "" } ]
5dc35027269f805970cc69678111ef92
This is the transitioning element on top of bottom stack, calculate how far we are in.
[ { "docid": "e555ad3e6e9afb1f8f763b77fa838421", "score": "0.5386436", "text": "private void updateStateForChildTransitioningInBottom(StackScrollAlgorithmState algorithmState,\n float transitioningPositionStart, float bottomPeakStart, float currentYPosition,\n StackViewState childViewState, int childHeight) {\n algorithmState.partialInBottom = 1.0f - (\n (transitioningPositionStart - currentYPosition) / (childHeight +\n mPaddingBetweenElements));\n\n // the offset starting at the transitionPosition of the bottom stack\n float offset = mBottomStackIndentationFunctor.getValue(algorithmState.partialInBottom);\n algorithmState.itemsInBottomStack += algorithmState.partialInBottom;\n int newHeight = childHeight;\n if (childHeight > mCollapsedSize && mIsSmallScreen) {\n newHeight = (int) Math.max(Math.min(transitioningPositionStart + offset -\n mPaddingBetweenElements - currentYPosition, childHeight), mCollapsedSize);\n childViewState.height = newHeight;\n }\n childViewState.yTranslation = transitioningPositionStart + offset - newHeight\n - mPaddingBetweenElements;\n\n // We want at least to be at the end of the top stack when collapsing\n clampPositionToTopStackEnd(childViewState, newHeight);\n childViewState.location = StackViewState.LOCATION_MAIN_AREA;\n }", "title": "" } ]
[ { "docid": "cf3ae788c518a232b48e623fb53a9dc4", "score": "0.6175163", "text": "public double height() {\n return top - bottom;\n }", "title": "" }, { "docid": "360a508f97535937c134fd6605184203", "score": "0.59228605", "text": "private int getBF(){\n return this.left.getHeight() - this.right.getHeight();\n }", "title": "" }, { "docid": "c544f408051b96d5db3b238a0ff72305", "score": "0.58782005", "text": "public double getHeight() {\n\t\treturn bottom - top;\n\t}", "title": "" }, { "docid": "ff4c12cb208692f2ac3cd64588040d3d", "score": "0.5849977", "text": "public int getBottom() {\n return bottom_;\n }", "title": "" }, { "docid": "43748795c7771599544b7d463270256c", "score": "0.584984", "text": "public double bottom() {\n return bottom;\n }", "title": "" }, { "docid": "8a5eca95f3c8f245850b25be90642563", "score": "0.5842733", "text": "public double getOffsetFromBottom() {\n double answer = this.getPosition() - this.m_lowerLim;\n return answer;\n }", "title": "" }, { "docid": "af9121907e9040a3e868af84de539027", "score": "0.5841533", "text": "private void findNumberOfItemsInTopStackAndUpdateState(StackScrollState resultState,\n StackScrollAlgorithmState algorithmState, AmbientState ambientState) {\n\n // The y Position if the element would be in a regular scrollView\n float yPositionInScrollView = 0.0f;\n int childCount = algorithmState.visibleChildren.size();\n\n // find the number of elements in the top stack.\n for (int i = 0; i < childCount; i++) {\n ExpandableView child = algorithmState.visibleChildren.get(i);\n StackViewState childViewState = resultState.getViewStateForView(child);\n int childHeight = getMaxAllowedChildHeight(child, ambientState);\n float yPositionInScrollViewAfterElement = yPositionInScrollView\n + childHeight\n + mPaddingBetweenElements;\n if (yPositionInScrollView < algorithmState.scrollY) {\n if (i == 0 && algorithmState.scrollY <= mCollapsedSize) {\n\n // The starting position of the bottom stack peek\n int bottomPeekStart = ambientState.getInnerHeight() - mBottomStackPeekSize -\n mCollapseSecondCardPadding;\n // Collapse and expand the first child while the shade is being expanded\n float maxHeight = mIsExpansionChanging && child == mFirstChildWhileExpanding\n ? mFirstChildMaxHeight\n : childHeight;\n childViewState.height = (int) Math.max(Math.min(bottomPeekStart, maxHeight),\n mCollapsedSize);\n algorithmState.itemsInTopStack = 1.0f;\n\n } else if (yPositionInScrollViewAfterElement < algorithmState.scrollY) {\n // According to the regular scroll view we are fully off screen\n algorithmState.itemsInTopStack += 1.0f;\n if (i == 0) {\n childViewState.height = mCollapsedSize;\n }\n } else {\n // According to the regular scroll view we are partially off screen\n\n // How much did we scroll into this child\n algorithmState.scrolledPixelsTop = algorithmState.scrollY\n - yPositionInScrollView;\n algorithmState.partialInTop = (algorithmState.scrolledPixelsTop) / (childHeight\n + mPaddingBetweenElements);\n\n // Our element can be expanded, so this can get negative\n algorithmState.partialInTop = Math.max(0.0f, algorithmState.partialInTop);\n algorithmState.itemsInTopStack += algorithmState.partialInTop;\n\n if (i == 0) {\n // If it is expanded we have to collapse it to a new size\n float newSize = yPositionInScrollViewAfterElement\n - mPaddingBetweenElements\n - algorithmState.scrollY + mCollapsedSize;\n newSize = Math.max(mCollapsedSize, newSize);\n algorithmState.itemsInTopStack = 1.0f;\n childViewState.height = (int) newSize;\n }\n algorithmState.lastTopStackIndex = i;\n break;\n }\n } else {\n algorithmState.lastTopStackIndex = i - 1;\n // We are already past the stack so we can end the loop\n break;\n }\n yPositionInScrollView = yPositionInScrollViewAfterElement;\n }\n }", "title": "" }, { "docid": "80ba9eedbbc85cf4845b0bcad8a42142", "score": "0.580613", "text": "public static double getTop()\n \t{\n \t\ttry \n \t\t{ \n \t\t\treturn m_stack.peek();\n \t\t}\n \t\tcatch(EmptyStackException e)\n \t\t{\n \t\t\treturn 0.0d;\n \t\t}\n \t}", "title": "" }, { "docid": "5b1728ba98f9e88eb64b4bbe53a9e597", "score": "0.58055896", "text": "public int getOriginTop() {\n return state.getOriginTop();\n }", "title": "" }, { "docid": "c949e6ce6c0ab15ad9f8e4cf1c9c2cba", "score": "0.57831514", "text": "private int calculateH(Node current, Node goal) {\n\t\t// Manhattan method\n\t\treturn Math.abs(current.getX() - goal.getX()) + Math.abs(current.getY() - goal.getY());\n\t}", "title": "" }, { "docid": "b872a74e19513fc7862cbbc1f91a168d", "score": "0.57749164", "text": "public int getBottom()\n {\n return this.bottom;\n }", "title": "" }, { "docid": "4bbfa7a924618b7b14bfd81ef40786c0", "score": "0.57558346", "text": "private int differenceY() {\n return getHeight() / 8;\n }", "title": "" }, { "docid": "efc63b83d1309ebfc530f40a6998a91f", "score": "0.5747383", "text": "private void updatePositionsForState(StackScrollState resultState,\n StackScrollAlgorithmState algorithmState, AmbientState ambientState) {\n\n // The starting position of the bottom stack peek\n float bottomPeekStart = ambientState.getInnerHeight() - mBottomStackPeekSize;\n\n // The position where the bottom stack starts.\n float bottomStackStart = bottomPeekStart - mBottomStackSlowDownLength;\n\n // The y coordinate of the current child.\n float currentYPosition = 0.0f;\n\n // How far in is the element currently transitioning into the bottom stack.\n float yPositionInScrollView = 0.0f;\n\n // If we have a heads-up higher than the collapsed height we need to add the difference to\n // the padding of all other elements, i.e push in the top stack slightly.\n ExpandableNotificationRow topHeadsUpEntry = ambientState.getTopHeadsUpEntry();\n\n int childCount = algorithmState.visibleChildren.size();\n int numberOfElementsCompletelyIn = algorithmState.partialInTop == 1.0f\n ? algorithmState.lastTopStackIndex\n : (int) algorithmState.itemsInTopStack;\n for (int i = 0; i < childCount; i++) {\n ExpandableView child = algorithmState.visibleChildren.get(i);\n StackViewState childViewState = resultState.getViewStateForView(child);\n childViewState.location = StackViewState.LOCATION_UNKNOWN;\n int childHeight = getMaxAllowedChildHeight(child, ambientState);\n float yPositionInScrollViewAfterElement = yPositionInScrollView\n + childHeight\n + mPaddingBetweenElements;\n float scrollOffset = yPositionInScrollView - algorithmState.scrollY + mCollapsedSize;\n\n if (i == algorithmState.lastTopStackIndex + 1) {\n // Normally the position of this child is the position in the regular scrollview,\n // but if the two stacks are very close to each other,\n // then have have to push it even more upwards to the position of the bottom\n // stack start.\n currentYPosition = Math.min(scrollOffset, bottomStackStart);\n }\n childViewState.yTranslation = currentYPosition;\n\n // The y position after this element\n float nextYPosition = currentYPosition + childHeight +\n mPaddingBetweenElements;\n\n if (i <= algorithmState.lastTopStackIndex) {\n // Case 1:\n // We are in the top Stack\n updateStateForTopStackChild(algorithmState,\n numberOfElementsCompletelyIn, i, childHeight, childViewState, scrollOffset);\n clampPositionToTopStackEnd(childViewState, childHeight);\n\n // check if we are overlapping with the bottom stack\n if (childViewState.yTranslation + childHeight + mPaddingBetweenElements\n >= bottomStackStart && !mIsExpansionChanging && i != 0 && mIsSmallScreen) {\n // we just collapse this element slightly\n int newSize = (int) Math.max(bottomStackStart - mPaddingBetweenElements -\n childViewState.yTranslation, mCollapsedSize);\n childViewState.height = newSize;\n updateStateForChildTransitioningInBottom(algorithmState, bottomStackStart,\n bottomPeekStart, childViewState.yTranslation, childViewState,\n childHeight);\n }\n clampPositionToBottomStackStart(childViewState, childViewState.height,\n ambientState);\n } else if (nextYPosition >= bottomStackStart) {\n // Case 2:\n // We are in the bottom stack.\n if (currentYPosition >= bottomStackStart) {\n // According to the regular scroll view we are fully translated out of the\n // bottom of the screen so we are fully in the bottom stack\n updateStateForChildFullyInBottomStack(algorithmState,\n bottomStackStart, childViewState, childHeight, ambientState);\n } else {\n // According to the regular scroll view we are currently translating out of /\n // into the bottom of the screen\n updateStateForChildTransitioningInBottom(algorithmState,\n bottomStackStart, bottomPeekStart, currentYPosition,\n childViewState, childHeight);\n }\n } else {\n // Case 3:\n // We are in the regular scroll area.\n childViewState.location = StackViewState.LOCATION_MAIN_AREA;\n clampYTranslation(childViewState, childHeight, ambientState);\n }\n\n // The first card is always rendered.\n if (i == 0) {\n childViewState.alpha = 1.0f;\n childViewState.yTranslation = Math.max(mCollapsedSize - algorithmState.scrollY, 0);\n if (childViewState.yTranslation + childViewState.height\n > bottomPeekStart - mCollapseSecondCardPadding) {\n childViewState.height = (int) Math.max(\n bottomPeekStart - mCollapseSecondCardPadding\n - childViewState.yTranslation, mCollapsedSize);\n }\n childViewState.location = StackViewState.LOCATION_FIRST_CARD;\n }\n if (childViewState.location == StackViewState.LOCATION_UNKNOWN) {\n Log.wtf(LOG_TAG, \"Failed to assign location for child \" + i);\n }\n currentYPosition = childViewState.yTranslation + childHeight + mPaddingBetweenElements;\n yPositionInScrollView = yPositionInScrollViewAfterElement;\n\n if (ambientState.isShadeExpanded() && topHeadsUpEntry != null\n && child != topHeadsUpEntry) {\n childViewState.yTranslation += topHeadsUpEntry.getHeadsUpHeight() - mCollapsedSize;\n }\n childViewState.yTranslation += ambientState.getTopPadding()\n + ambientState.getStackTranslation();\n }\n updateHeadsUpStates(resultState, algorithmState, ambientState);\n }", "title": "" }, { "docid": "794f252d8733eca975da3512d636b2f4", "score": "0.5741436", "text": "private static double getTopHorizontalDifference() {\n return NetworkTable.getTable(\"camera\").getNumber(\"topXDifference\", 0);\r\n }", "title": "" }, { "docid": "a761e23f34c05231c1d4b1747b505e4e", "score": "0.57285815", "text": "private int giveStateSprite(float oldTop)\n {\n int state = 0 ;\n if (rectangle.top - oldTop > 5) /* On aurait pu mettre 0, mais sinon il y aurait eu trop d'anim, on prefere laisser un peu d'espace entre une anim donc 5 pixels*/ {\n state = 2; /* allez a gauche */\n } else if (rectangle.top - oldTop < -5) {\n state = 1; /* allez a droite */\n }\n return state ;\n }", "title": "" }, { "docid": "584101f5a81e84c8b178c94670ce13c8", "score": "0.57218814", "text": "public double top() {\n return top;\n }", "title": "" }, { "docid": "406b9af2c15dca79e013effd5198e19d", "score": "0.5703132", "text": "private void updateZValuesForState(StackScrollState resultState,\n StackScrollAlgorithmState algorithmState) {\n int childCount = algorithmState.visibleChildren.size();\n for (int i = 0; i < childCount; i++) {\n View child = algorithmState.visibleChildren.get(i);\n StackViewState childViewState = resultState.getViewStateForView(child);\n if (i < algorithmState.itemsInTopStack) {\n float stackIndex = algorithmState.itemsInTopStack - i;\n\n // Ensure that the topmost item is a little bit higher than the rest when fully\n // scrolled, to avoid drawing errors when swiping it out\n float max = MAX_ITEMS_IN_TOP_STACK + (i == 0 ? 2.5f : 2);\n stackIndex = Math.min(stackIndex, max);\n if (i == 0 && algorithmState.itemsInTopStack < 2.0f) {\n\n // We only have the top item and an additional item in the top stack,\n // Interpolate the index from 0 to 2 while the second item is\n // translating in.\n stackIndex -= 1.0f;\n if (algorithmState.scrollY > mCollapsedSize) {\n\n // Since there is a shadow treshhold, we cant just interpolate from 0 to\n // 2 but we interpolate from 0.1f to 2.0f when scrolled in. The jump in\n // height will not be noticable since we have padding in between.\n stackIndex = 0.1f + stackIndex * 1.9f;\n }\n }\n childViewState.zTranslation = mZBasicHeight\n + stackIndex * mZDistanceBetweenElements;\n } else if (i > (childCount - 1 - algorithmState.itemsInBottomStack)) {\n float numItemsAbove = i - (childCount - 1 - algorithmState.itemsInBottomStack);\n float translationZ = mZBasicHeight\n - numItemsAbove * mZDistanceBetweenElements;\n childViewState.zTranslation = translationZ;\n } else {\n childViewState.zTranslation = mZBasicHeight;\n }\n }\n }", "title": "" }, { "docid": "ae7979e4d879688f9c586e77f59454d0", "score": "0.57022774", "text": "public int getBottom() {\n return bottom_;\n }", "title": "" }, { "docid": "21f6de95eb1931166b135f09b0c7df04", "score": "0.56995106", "text": "public int currently() {\n\t\treturn top;\r\n\t}", "title": "" }, { "docid": "26f7323a6dd3355ced673828b5ab1894", "score": "0.5662832", "text": "public int getBottom() {\n return getBottom_native(pointer);\n }", "title": "" }, { "docid": "1681ed95600ecdf263a0f13067c12a3e", "score": "0.5571357", "text": "public double getTopX();", "title": "" }, { "docid": "1ab5e67f245fee4f6c24d1e943b76279", "score": "0.5567859", "text": "int consumeFlingInVerticalStretch(int unconsumedY) {\n int height = getHeight();\n if (unconsumedY > 0 && EdgeEffectCompat.getDistance(mEdgeGlowTop) != 0f) {\n float deltaDistance = -unconsumedY * FLING_DESTRETCH_FACTOR / height;\n int consumed = Math.round(-height / FLING_DESTRETCH_FACTOR\n * EdgeEffectCompat.onPullDistance(mEdgeGlowTop, deltaDistance, 0.5f));\n if (consumed != unconsumedY) {\n mEdgeGlowTop.finish();\n }\n return unconsumedY - consumed;\n }\n if (unconsumedY < 0 && EdgeEffectCompat.getDistance(mEdgeGlowBottom) != 0f) {\n float deltaDistance = unconsumedY * FLING_DESTRETCH_FACTOR / height;\n int consumed = Math.round(height / FLING_DESTRETCH_FACTOR\n * EdgeEffectCompat.onPullDistance(mEdgeGlowBottom, deltaDistance, 0.5f));\n if (consumed != unconsumedY) {\n mEdgeGlowBottom.finish();\n }\n return unconsumedY - consumed;\n }\n return unconsumedY;\n }", "title": "" }, { "docid": "164aef9cd8f31f247b96963f863b7cd1", "score": "0.55619085", "text": "public int getTopEdge()\n\t{\n\t}", "title": "" }, { "docid": "55a5f635edcb340d8cf18dd559fa4718", "score": "0.55617094", "text": "private int calculateTop(View child, boolean duringLayout) {\n int myHeight = duringLayout ? getMeasuredHeight() : getHeight();\n int childHeight = duringLayout ? child.getMeasuredHeight() : child.getHeight(); \n \n int childTop = 0;\n\n switch (mGravity) {\n case Gravity.TOP:\n childTop = mSpinnerPadding.top;\n break;\n case Gravity.CENTER_VERTICAL:\n int availableSpace = myHeight - mSpinnerPadding.bottom\n - mSpinnerPadding.top - childHeight;\n childTop = mSpinnerPadding.top + (availableSpace / 2);\n break;\n case Gravity.BOTTOM:\n childTop = myHeight - mSpinnerPadding.bottom - childHeight;\n break;\n }\n return childTop;\n }", "title": "" }, { "docid": "01258cbf7c1d08ae0769ec4fef99bcaf", "score": "0.55564475", "text": "public abstract int getTop();", "title": "" }, { "docid": "c600a7e93075587d984adc3f1db24073", "score": "0.55502886", "text": "long getFameDecidedBelow();", "title": "" }, { "docid": "ca3b91193afb4d0fefa1806320a5c100", "score": "0.5544164", "text": "public double getTop() {\n\t\treturn top;\n\t}", "title": "" }, { "docid": "ca3b91193afb4d0fefa1806320a5c100", "score": "0.5544164", "text": "public double getTop() {\n\t\treturn top;\n\t}", "title": "" }, { "docid": "9de14e6cb907ff027ba28f68ce03c002", "score": "0.5519224", "text": "public Integer getUnderTop(final Store s) {\r\n return Integer.valueOf(getStackTop(s).intValue() - 1);\r\n }", "title": "" }, { "docid": "45797c236438dc8af82017875a0f2a26", "score": "0.551656", "text": "public int getBlockPlaced();", "title": "" }, { "docid": "56f2b20d869fa103b01596d95a46558d", "score": "0.5487681", "text": "public int top() {\n return stack[index - 1];\n }", "title": "" }, { "docid": "640b4ac26a8fbc2747528b39ee5c38a0", "score": "0.5479045", "text": "public int getUp() {\n return up;\n }", "title": "" }, { "docid": "6553b16c475a7538a065f5d01773610b", "score": "0.54656136", "text": "public int jsxGet_posBottom() {\n return 0;\n }", "title": "" }, { "docid": "0813e0dd10a0a4ba0b310f94bbbb2db4", "score": "0.5465278", "text": "public int top() {\n return stack.val;\n }", "title": "" }, { "docid": "dde7513a8eeb69a40f87fdc468d49b34", "score": "0.54558563", "text": "public void subtract()\n\t{\n\t\tif(stack[size-2] <= 0)\n\t\t{\n\t\t\tstack[size-2] = Integer.MIN_VALUE + stack[size-1] > stack[size-2] ? (double)Integer.MIN_VALUE : stack[size-2] - stack[size-1];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstack[size-2] = Integer.MAX_VALUE + stack[size-1] < stack[size-2] ? (double)Integer.MAX_VALUE : stack[size-2] - stack[size-1];\n\t\t}\n\t\tsize--;\n\t}", "title": "" }, { "docid": "d91f9e60cecdeaed72e0b0b5704a59df", "score": "0.54434574", "text": "public int getTop() {\n\t\treturn y;\n\t}", "title": "" }, { "docid": "44897bf890ca6c1e36fe784da9075f2d", "score": "0.5433968", "text": "public static double getXDifferenceTopTarget() {\r\n double xDifference;\r\n double angle = (47.0 / 2.0) * (Math.PI / 180.0); //maximum angle for the camera view (in one direction) -> changed to radians\r\n xDifference = getTopHorizontalDifference() * Math.tan(angle);\r\n //half of the camera view (tan of angle * x distance from target * \r\n //the xDistance is not in this equation because \r\n return xDifference;\r\n }", "title": "" }, { "docid": "839be5954d6d4a62f9b6099c64060f3d", "score": "0.5430739", "text": "public int getBottomEdge()\n\t{\n\t}", "title": "" }, { "docid": "dd1f763fb86be04f0e7232d50e0ca293", "score": "0.5422655", "text": "@Override\r\npublic int height() {\n\tif (size == 0){\r\n\t\treturn -1;\r\n\t}\r\n return root.getHeight();\r\n}", "title": "" }, { "docid": "68e1f912df7c4b42ba3049b3dc233521", "score": "0.5415269", "text": "@ViewDebug.CapturedViewProperty\n public final int getBottom() {\n return mBottom;\n }", "title": "" }, { "docid": "eb2734de200dc816e682eb349611b953", "score": "0.54050875", "text": "public int getBottom() {\n\t\treturn y + MAXY;\n\t}", "title": "" }, { "docid": "c4253f93bc11286f6845d608a2760f26", "score": "0.53969944", "text": "public int getHeight() {\n return state.getHeight(this);\n }", "title": "" }, { "docid": "8db9073faf1fc64ac8470832a15b945b", "score": "0.5396191", "text": "public double getBottom() {\n\t\treturn bottom;\n\t}", "title": "" }, { "docid": "8db9073faf1fc64ac8470832a15b945b", "score": "0.5396191", "text": "public double getBottom() {\n\t\treturn bottom;\n\t}", "title": "" }, { "docid": "2465a7f6af959b7158efc33ce092d679", "score": "0.5389885", "text": "protected float getTopFadingEdgeStrength() {\n return computeVerticalScrollOffset() > 0 ? 1.0f : 0.0f;\n }", "title": "" }, { "docid": "9731ac39735ee3ea50beb833bda1eb51", "score": "0.5379776", "text": "@Override\r\n public int size() {\r\n return (top + 1);\r\n }", "title": "" }, { "docid": "469d3e5d5fef9ddbd94208d209a896ad", "score": "0.5372687", "text": "public int size() {\n\t\treturn top+1;\n\t}", "title": "" }, { "docid": "7bce234f1161e4f23fb9795510e49382", "score": "0.5356196", "text": "public int getTop() {\n return getTop_native(pointer);\n }", "title": "" }, { "docid": "10ab675b2309b34f3075b78b15708339", "score": "0.5354168", "text": "private double heuristicEstimate(Tile from){\r\n\t\treturn (Math.sqrt((double)((from.getX()-mainTarget.getPosX()) * (from.getX()-mainTarget.getPosX()) + (from.getY()-mainTarget.getPosY())* (from.getY()-mainTarget.getPosY()))));\r\n\t}", "title": "" }, { "docid": "9af7260a702783114c13d304e1c662eb", "score": "0.5350714", "text": "public int getScrimVisibleHeightTrigger() {\n\t\tif (scrimVisibleHeightTrigger >= 0) {\n\t\t\t// If we have one explicitly set, return it\n\t\t\treturn scrimVisibleHeightTrigger;\n\t\t}\n\n\t\t// Otherwise we'll use the default computed value\n\t\tint insetTop = lastInsets != null ? lastInsets.getSystemWindowInsetTop() : 0;\n\n\t\tint minHeight = ViewCompat.getMinimumHeight(this);\n\t\tif (minHeight > 0) {\n\t\t\t// If we have a minHeight set, lets use 2 * minHeight (capped at our height)\n\t\t\treturn Math.min((minHeight * 2) + insetTop, getHeight());\n\t\t}\n\n\t\t// If we reach here then we don't have a min height set. Instead we'll take a\n\t\t// guess at 1/3 of our height being visible\n\t\treturn getHeight() / 3;\n\t}", "title": "" }, { "docid": "deefca8ed608dd38e8a377e6667bb96d", "score": "0.5343743", "text": "public static int bigInTop()\r\n\t{\r\n\t\tArrayList disorder=disorderlyElements();\r\n\t\tCollections.reverse(disorder);\r\n\t\t//System.out.println(disorder);\r\n\t\tif (disorder.size()==0)\r\n\t\t{\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tint aux=(int)disorder.get(0);\r\n\t\treturn containsInTop(aux);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b364d70142beb859ceeb9d387e109491", "score": "0.53370357", "text": "int getOtherPosZ();", "title": "" }, { "docid": "c27b9c493b7e74ae5f1816ae9e10eaaa", "score": "0.53247344", "text": "public int getStateAfterAnimating() {\n C0739a aVar = this.mAnimationInfo;\n if (aVar == null) {\n return 0;\n }\n return aVar.f2521c;\n }", "title": "" }, { "docid": "1aa1b404ffe9706721c8fcbaf3325f1e", "score": "0.5324187", "text": "public int viewTop(){\r\n\t\treturn queue.viewTop();\r\n\t}", "title": "" }, { "docid": "8669992f061c70d3b910751d7b6aba98", "score": "0.5322921", "text": "public Tile getUp()\n\t{\n\t\treturn up;\n\t}", "title": "" }, { "docid": "bdf58c7d26685adbd1bf03f4ca5272e4", "score": "0.53190804", "text": "float getTopExtent();", "title": "" }, { "docid": "2ab5c41bb94e36eb172bc9ae2e865d1c", "score": "0.53160834", "text": "public int getHeuristicValue(){\n int tac, n;\n\n tac = StaticEvaluation.getScoreForPositionAndType(this.movingPiece, endPos)-StaticEvaluation.getScoreForPositionAndType(this.movingPiece, startPos);\n n = StaticEvaluation.calculatePieceValue(this.takenPiece);\n\n return tac + n;\n }", "title": "" }, { "docid": "4da1ce4ee37b65034a1d3b2cb099f707", "score": "0.53143024", "text": "public void moveBack(float moveBackAmount){\r\n top -= moveBackAmount;\r\n }", "title": "" }, { "docid": "f4cdd182b62cd433c4451e0296186d59", "score": "0.5304079", "text": "public int top(){\n\t\t\treturn -1;\n\t\t}", "title": "" }, { "docid": "1054ce28c8c1988fc1c17af22d785935", "score": "0.5299004", "text": "public int upEx( ) {\n\t\t//System.err.println(\"called upEx in: \" + where);\n\t\t//new Exception(\"\").printStackTrace();\n\t\t// compute new iStack.\n\t\tint is = iso.getStackDepth() - 3; // remove upEx and convert to 0-based. hmmmm the apply methods are causing some bother here\n\t\t\t\t\t\t\n\t\t//System.err.println(\"called upEx is: \" + is);\n\t\t// index.\n\t\tState cs = stateStack[is];\n\n\t\tfor (int i = iStack; i >= is; i--) {\n\t\t\tstateStack[i] = null; // release state\n\t\t}\n\n\t\tiStack = is;\n\t\tcurState = cs;\n\t\treturn (cs == null) ? 0 : cs.pc;\n\t}", "title": "" }, { "docid": "77e4823eb46ef18cf20995a6455f4991", "score": "0.5298161", "text": "public int numberOfTransitions() {\n return super.size();\n }", "title": "" }, { "docid": "560488e39ae30cf91ce9142b145a51d8", "score": "0.5294087", "text": "public int jsxGet_posTop() {\n return 0;\n }", "title": "" }, { "docid": "7f72e46ece6a057cc28369ec2fc71203", "score": "0.52783674", "text": "private int getDistance() {\n Location here = getBlinky().getLocation();\n Location secTile = getSecondTile();\n int distance = 0;\n while (!here.equals(secTile)) {\n int targetDir = here.getDirectionToward(secTile);\n here = here.getAdjacentLocation(targetDir);\n distance++;\n }\n return distance;\n\n }", "title": "" }, { "docid": "aaa25f0ef4a23e5031773ed0fa5f991b", "score": "0.52740157", "text": "@Override\n\tpublic double getMountedYOffset() {\n\t\treturn (this.height * 0.6D) - ((0.4f * this.height) * (1f-getGrowingAge()));\n\t}", "title": "" }, { "docid": "f6e39539ebbac9209040221ff816aee4", "score": "0.5272427", "text": "public int getTop() {\r\n return getAttributeAsInt(\"top\");\r\n }", "title": "" }, { "docid": "7a0ec722575169363aac6105d5d72f17", "score": "0.5272326", "text": "public int top() {\n return stack.peek();\n }", "title": "" }, { "docid": "11212ab333126b4eab9b41d88c045fc2", "score": "0.5267885", "text": "public int jsxGet_pixelTop() {\n return pixelValue(jsxGet_top());\n }", "title": "" }, { "docid": "124c2c6e833f1f1565a2dec196c11488", "score": "0.526761", "text": "public int peek() {\n Node peekedNode = popStack.top;\n if(peekedNode == null) {\n peekedNode = pushStack.bottom;\n }\n return peekedNode != null ? Integer.valueOf(peekedNode.value) : -1;\n }", "title": "" }, { "docid": "d4833f492abd69398e359223ac99a239", "score": "0.5243279", "text": "int getAmount(StackType stack);", "title": "" }, { "docid": "9e71851dc36601935b0b753d83b89e73", "score": "0.52430093", "text": "public int top() {\n return stack.get(index - 1);\n }", "title": "" }, { "docid": "ec610be7c84fdacd108745ad5cb6e076", "score": "0.5242181", "text": "void upcurseur1() {if (positioncurseur1 != 0) {positioncurseur1 -= 1;}}", "title": "" }, { "docid": "32472842d4eb96f72f39efeb478f60e2", "score": "0.52343744", "text": "public int height() { return height(root); }", "title": "" }, { "docid": "501e8211cec4263ca8e78b4ac02293eb", "score": "0.52281064", "text": "public double getfloorLength(){\r\n \t return (verticalHeight * (Math.tan(Math.toRadians(topAngle))));\r\n }", "title": "" }, { "docid": "c9a904c78a4ceb98dafa5eeec232da8e", "score": "0.5224212", "text": "public int top() {\n if (isEmpty() == true) {\n return - 1;\n }\n return vetor[topo];\n }", "title": "" }, { "docid": "d9949034e3ea5e4417ce8c629a21fb2e", "score": "0.5219818", "text": "float getY() {\r\n return y + (parent.height / 2);\r\n }", "title": "" }, { "docid": "7fbdc99a596d424daed0e083a59eeefb", "score": "0.5219125", "text": "public int getTop() {\n return top_;\n }", "title": "" }, { "docid": "0b868f593ccba9197d1c56cfc61c2a22", "score": "0.52124643", "text": "public int top() {\n return top;\n }", "title": "" }, { "docid": "6d3399a910593b542dce2062c786b111", "score": "0.5212248", "text": "public double getHOff() {\r\n\t\treturn this.getWidth(false) * (this.alignh + 1) / 2;\r\n\t}", "title": "" }, { "docid": "ce7940fb551726cf64ba9592b13f20a7", "score": "0.5208535", "text": "public int getNextTransition() {\n C0739a aVar = this.mAnimationInfo;\n if (aVar == null) {\n return 0;\n }\n return aVar.f2523e;\n }", "title": "" }, { "docid": "0ba919640b3c757243e04c934792dac9", "score": "0.520746", "text": "private int getHeight() {\n return size.getBlockY();\n }", "title": "" }, { "docid": "90ab13d3cf797aaa9e95c25da3812fe0", "score": "0.5201552", "text": "public double getChildLocalTop(double offset) {\r\n\t\tdouble y = this.getLocalTop(false) + offset;\r\n\t\tfor (UIElement u : this.getChildren()) {\r\n\t\t\ty = Math.min(y, u.getChildLocalTop(offset + u.pos.y));\r\n\t\t}\r\n\t\treturn y;\r\n\t}", "title": "" }, { "docid": "281c05ce45757456e5bb7aee18341e73", "score": "0.51963866", "text": "public Vector3f getUp()\r\n\t{\r\n\t\treturn up;\r\n\t}", "title": "" }, { "docid": "47529e7799290216c839a3f9ef6a7e94", "score": "0.5192961", "text": "float getBoundsTop(Vector3 pos, Camera camera);", "title": "" }, { "docid": "bbe4b6f4d7f7bd1dc6b19c6383de3a9e", "score": "0.5192867", "text": "public void onBottomUp();", "title": "" }, { "docid": "43c15120f74db467d058e24f237ffc5b", "score": "0.5191985", "text": "Object top() throws StackUnderflowException;", "title": "" }, { "docid": "c37ec549961353660b1df40d3925387c", "score": "0.5191494", "text": "public int height(){\r\n \t\treturn height(root);\r\n \t}", "title": "" }, { "docid": "de4a4a8cde0caeb7a08c5e5db857e9db", "score": "0.5189898", "text": "public Object top() throws UnderflowException;", "title": "" }, { "docid": "fda1f8a27798fb444fb4ccf72580fa20", "score": "0.5185143", "text": "public final int mo70978d() {\n int i;\n int i2 = this.f151000h;\n if (i2 != -1) {\n return i2;\n }\n int i3 = 0;\n for (int childCount = getChildCount() - 1; childCount >= 0; childCount--) {\n View childAt = getChildAt(childCount);\n bhdy bhdy = (bhdy) childAt.getLayoutParams();\n int measuredHeight = childAt.getMeasuredHeight();\n int i4 = bhdy.f118355a;\n if ((i4 & 5) == 5) {\n int i5 = bhdy.topMargin + bhdy.bottomMargin;\n if ((i4 & 8) != 0) {\n i = i5 + C1280ps.m19930l(childAt);\n } else {\n i = (i4 & 2) != 0 ? i5 + (measuredHeight - C1280ps.m19930l(childAt)) : i5 + measuredHeight;\n }\n if (childCount == 0 && C1280ps.m19938t(childAt)) {\n i = Math.min(i, measuredHeight - mo70983g());\n }\n i3 += i;\n } else if (i3 > 0) {\n break;\n }\n }\n int max = Math.max(0, i3);\n this.f151000h = max;\n return max;\n }", "title": "" }, { "docid": "223e60918c4a47bbdf38a0f962c175c8", "score": "0.51802737", "text": "protected int getThumbOverhang() {\n return (int) (this.getThumbSize().getHeight() - this.getTrackWidth()) / 2;\n }", "title": "" }, { "docid": "573bf70e7cc9728b39f40250a838a804", "score": "0.5179816", "text": "@Override\r\n\tpublic double getRepresentativeY() {\r\n\t\treturn getShape().getLayoutY() + JavaFxHelper.getHeight(getShape()) / 2;\r\n\t}", "title": "" }, { "docid": "f8ac37641eb4bd8eb2599f961fb80e29", "score": "0.51769984", "text": "private static int checkTurn(Point nextToTop, Point top, Point point) {\n\t\tint turnValue = ((top.x()-nextToTop.x())*(point.y()-nextToTop.y()))-((point.x()-nextToTop.x())*(top.y()-nextToTop.y()));\n\t\t\n\t\treturn turnValue;\n\t}", "title": "" }, { "docid": "7de66377de409145af9268544e4be93b", "score": "0.51739985", "text": "public int getPinsUp(){\r\n\t\treturn PINS-pinsDown;\r\n\t}", "title": "" }, { "docid": "c447e9d72c93313ed32fcf20542582c7", "score": "0.5168869", "text": "public int top() {\r\n\t\tif(outputStack.isEmpty()) {\r\n\t\t\twhile(!inputStack.isEmpty()) {\r\n\t\t\t\toutputStack.add(inputStack.poll());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn outputStack.peek();\r\n\t}", "title": "" }, { "docid": "788171b0541c96177bef593d9469d960", "score": "0.5165517", "text": "float getBottomExtent();", "title": "" }, { "docid": "52ed50dee49aafe750543254df8c842c", "score": "0.5158305", "text": "public long peek() {\n return stackArray[top];\n }", "title": "" }, { "docid": "54f2985e2a0f42a59d3496ec78dc2e8f", "score": "0.5151078", "text": "private float getFinalPos(float pos){\n// Log.d(TAG, \"SetPosition Before Margin: \" + pos);\n\n if (orientation == LinearLayout.HORIZONTAL)\n {\n pos -= ( ((SlideButtonLayout)getParent()).getMarginTop() - ((SlideButtonLayout)getParent()).getMarginBottom());\n }\n else\n {\n pos -= (((SlideButtonLayout)getParent()).getMarginLeft() - ((SlideButtonLayout)getParent()).getMarginRight());\n }\n\n// Log.d(TAG, \"SetPosition After Margin: \" + pos);\n\n speed = getSpeed(pos, point );\n direction = getDirectionForPosition(pos);\n\n // Making sure the button don't go outside of the view\n float against = size != -1 ? size : this.getWidth();\n\n// Log.d(TAG, \"Against: \" + against);\n\n // if out from left set it to the zero position\n if (pos - (against/2) < 0)\n pos = (against/2);\n\n //if out from the right set it to most right position\n else if (pos + (against/2) > buttonSlidingLength)\n pos = buttonSlidingLength - (against/2);\n\n// Log.d(TAG, \"Final SetPosition: \" + (pos - (against/2)) );\n\n return pos - (against/2);\n }", "title": "" }, { "docid": "32df52cc06095dd19432e4410f557a7b", "score": "0.51487887", "text": "public float getPosition()\n {\n \treturn (float)currentTik/(float)totalTik;\n }", "title": "" }, { "docid": "7baf038c74d30c4724330702816fc185", "score": "0.51486224", "text": "public void onTopUp();", "title": "" }, { "docid": "fb50f949af2f3f9070073794a30f81ae", "score": "0.514553", "text": "public int size() {\n\t\treturn top;\n\t}", "title": "" }, { "docid": "97d875c8e7a0923c32239f7c690381d7", "score": "0.51435304", "text": "public double height() {\n return (Math.sqrt((double) 2 / (double) 3) * (edge));\n }", "title": "" } ]
04ba1a5a4e2f207c2e0dffce36102b98
Test of getSales method, of class SalesDAO.
[ { "docid": "fe1072f7629d8d7c3152c3c001c28a8f", "score": "0.87301147", "text": "@Test\r\n public void testGetSales() throws Exception {\r\n System.out.println(\"getSales\");\r\n SalesDAO instance = new SalesDAO();\r\n\r\n List<Sales> result = instance.getSales();\r\n assertNotNull(result);\r\n\r\n }", "title": "" } ]
[ { "docid": "33436f43995804bd7f8e438dcd43d9b0", "score": "0.6907121", "text": "public ArrayList<Sales> getAllSales() throws SQLException, ParseException\r\n\t{\r\n\t\tSystem.out.println(\"Retrieving all Sales...\");\r\n\t\tConnection dbConnection = null;\r\n\t\tPreparedStatement preparedStatement = null;\r\n\t\tResultSet result = null;\r\n\t\t\r\n\t\t// store the query into a string variable\r\n\t\tString query = \"SELECT * FROM sales;\";\r\n\t\t\r\n\t\t// declare an ArrayList of the Sales records object\r\n\t\tArrayList<Sales> sales = new ArrayList<>();\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\t// get a connection\r\n\t\t\tdbConnection = getDBConnection();\r\n\t\t\t\r\n\t\t\t// prepare the query statement in the database\r\n\t\t\tpreparedStatement = dbConnection.prepareStatement(query);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"DBQuery: \" + query);\r\n\t\t\t//execute SQL QUERY\r\n\t\t\tresult = preparedStatement.executeQuery();\r\n\t\t\t\r\n\t\t\t// loop to get the ArrayList of records of sales\r\n\t\t\twhile(result.next())\r\n\t\t\t{\r\n\t\t\t\t// store the information of the sales retrieved from the database into the variables\r\n\t\t\t\tint sale_id = result.getInt(\"sale_id\");\r\n\t\t\t\tDate sold_date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(result.getString(\"sold_date\"));\r\n\t\t\t\tint sold_price = result.getInt(\"sold_price\");\r\n\t\t\t\tString status_info = result.getString(\"status_info\");\r\n\t\t\t\tint vehicle_id = result.getInt(\"vehicle_id\");\r\n\t\t\t\t\r\n\t\t\t\t// add the object sale into the ArrayList of sales\r\n\t\t\t\tsales.add(new Sales(sale_id, sold_date, sold_price, status_info, vehicle_id));\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (SQLException e) \r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif(result != null)\r\n\t\t\t{\r\n\t\t\t\tresult.close();\r\n\t\t\t}\r\n\t\t\tif(preparedStatement != null)\r\n\t\t\t{\r\n\t\t\t\tpreparedStatement.close();\r\n\t\t\t}\r\n\t\t\tif(dbConnection != null)\r\n\t\t\t{\r\n\t\t\t\tdbConnection.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// returns the ArraList of sales records\r\n\t\treturn sales;\r\n\t}", "title": "" }, { "docid": "b8c6acd0dc21c245733ed200e3e80ca3", "score": "0.6673336", "text": "public interface SalesDao {\n Long create(Sales sales);\n Sales read(Long ig);\n boolean update(Sales sales);\n boolean delete(Sales sales);\n List findAll();\n Map getSalesByDays();\n}", "title": "" }, { "docid": "a45d2f8dae0fbdeeb21ae37ceb235284", "score": "0.66496664", "text": "@Override\r\n\tpublic Sales findSales(int doNo) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "262751add451ced2f6c0dfadc6bcc90f", "score": "0.66044706", "text": "@GetMapping(\"/getSales/{id}\")\n\tpublic Sales getSales(@PathVariable(\"id\") Long id){\n\n\t\treturn salesServiceImpl.getSalesRec(id);\n\t}", "title": "" }, { "docid": "c5c3318e3855b02742cc4773a7f0a0a8", "score": "0.65348506", "text": "@Override\n public List<Sale> getSales() {\n return this.sales;\n }", "title": "" }, { "docid": "cfc841e6830ffca31590112bf51698ee", "score": "0.6474558", "text": "@Test\n\tpublic void testGetAllCustomers () throws Throwable {\n\t\t\n\n\t\tcustomerDao.getAllCustomers();\n\t}", "title": "" }, { "docid": "2bb9f65cc99788521468113a186f83ce", "score": "0.6471702", "text": "List<Sale> getSalesByProductId(Integer productId);", "title": "" }, { "docid": "52377a7e6bdd0a9ce17d20c8e237394f", "score": "0.64295167", "text": "public List<Sale> getSales(Txn txn){\n\t\t\n\t\tString id = null;\n\t\tString type = null;\n\t\tString botype = null;\t\t\n\t\tList<Sale> sales = new LinkedList<Sale>();\n\t\t\n\t\ttry{\n\t\t\t // get our connection\n\t Connection conn = ConnectionPool.getInstance().get();\n\t Statement stmt = conn.createStatement();\n try{ \n ResultSet rs = stmt.executeQuery( \"SELECT businessobject.id, businessobject.botype FROM businessobject, revenuesource WHERE businessobject.id = revenuesource.id AND revenuesource.txnid = '\" + txn.getId() + \"'\");\n try {\n while ( rs.next() ) {\n \tid = (String) rs.getObject(1);\n type = (String) rs.getObject(2);\n botype = type.substring(21);\n if (botype == \"Sale\"){\n \tsales.add((Sale) BusinessObjectDAO.getInstance().read(id));\n }\n }\n } finally {\n try { rs.close(); } catch (Throwable ignore) { /* Propagate the original exception\n instead of this one that you may want just logged */ }\n }\n } finally {\n try { stmt.close(); } catch (Throwable ignore) { /* Propagate the original exception\n instead of this one that you may want just logged */ }\n }\n\t\t}catch(Exception e3){\n\t\t\te3.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\treturn sales;\n\t\t\n\t}", "title": "" }, { "docid": "143b8b82338dccdd35617e2fa0dc99b2", "score": "0.6366582", "text": "@Test\n public void testFindAllSalesReps() {\n }", "title": "" }, { "docid": "2d52ece1d3546dd79d26d9a17393ba14", "score": "0.6320024", "text": "public Set<SalesOrder> loadSalesOrders();", "title": "" }, { "docid": "bd4843450c81f7de6579dbf52796117c", "score": "0.6274593", "text": "public Integer getSales() {\n return sales;\n }", "title": "" }, { "docid": "bd4843450c81f7de6579dbf52796117c", "score": "0.6274593", "text": "public Integer getSales() {\n return sales;\n }", "title": "" }, { "docid": "67a468664aeb94b266b964232b7ca25b", "score": "0.62237954", "text": "@Test\n public void testGetAll() throws SQLException\n {\n System.out.println(\"getAll\");\n TransactionDAO dao = new TransactionDAO();\n System.out.println(dao.getAll());\n }", "title": "" }, { "docid": "3e934cf0c2e4c6d14347385d3ac22c7f", "score": "0.62215674", "text": "public List<Sale> getSales() {\n ArrayList<Sale> sales = new ArrayList<>();\n serverSaleRepository.findAll().forEach(sales::add);\n return sales;\n }", "title": "" }, { "docid": "bee6ff4a3f5713f32cce883f625cc430", "score": "0.61941105", "text": "@Test\r\n public void testAdd() throws Exception {\r\n System.out.println(\"add\");\r\n Sales sale = new Sales();\r\n ProductDAO prodDAO = new ProductDAO();\r\n LoginDAO vendorDAO = new LoginDAO();\r\n SalesDAO instance = new SalesDAO();\r\n\r\n sale.setCode(100);\r\n sale.setProduct(prodDAO.getById(1));\r\n sale.setAddress(\"Address Test 1\");\r\n sale.setVendor(vendorDAO.getById(1));\r\n\r\n boolean expResult = true;\r\n boolean result = instance.add(sale);\r\n assertEquals(expResult, result);\r\n\r\n }", "title": "" }, { "docid": "c48057957fade4ff8fecf598c5c86f1e", "score": "0.61626256", "text": "public void testAddNewSale(){\r\n /*\r\n saleRec = new Sales();\r\n saleRec.setMember(member);\r\n saleRec.setProduct(product);\r\n saleRec.setSaler(\"TestSaler\");\r\n saleRec.setSalesCount(100);\r\n\r\n saleRec = salesService.addSalesRecord(saleRec);\r\n assertNotNull(saleRec);\r\n */\r\n \r\n }", "title": "" }, { "docid": "3491d281ea801b0e1556a38f839d781f", "score": "0.61600214", "text": "public Sales getSales() {\r\n\t\treturn (Sales) getDomain();\r\n\t}", "title": "" }, { "docid": "b493edaaccccfd0c7e141bf2eed7db36", "score": "0.61393726", "text": "@Override\n\tpublic List<Sale> getSaleList() {\n\t\treturn dataDao.getSaleList();\n\t}", "title": "" }, { "docid": "12d7f752e31c907197df119ff9bac9f9", "score": "0.6124409", "text": "public void setSales(Integer sales) {\n this.sales = sales;\n }", "title": "" }, { "docid": "12d7f752e31c907197df119ff9bac9f9", "score": "0.6124409", "text": "public void setSales(Integer sales) {\n this.sales = sales;\n }", "title": "" }, { "docid": "9ed3b2f80dea54809cfb189239919cf1", "score": "0.6119995", "text": "@Test\n public void getPayrollTest() {\n // create payroll service\n PayrollService payrollService = new PayrollService();\n // get payroll\n Payroll payroll = payrollService.getPayroll(3);\n // asserts\n assertEquals(3, payroll.getItems());\n assertTrue(payroll.getSalaries().get(0) >= 1);\n assertTrue(payroll.getSalaries().get(1) >= 1);\n assertTrue(payroll.getSalaries().get(2) >= 1);\n\n reset();\n }", "title": "" }, { "docid": "878ce6f69e9ef5b5cff5a46dc92a43d9", "score": "0.60787964", "text": "@Test\n public void testgetProductQuery() throws Exception {\n\n Integer order_id = 0;\n\n List<OcOrderProduct> result = dao.getProductQuery(order_id);\n assertThat(\"getProductQuery\", result, notNullValue());\n }", "title": "" }, { "docid": "3d9d0c7da49990e19cef74124158df98", "score": "0.60644096", "text": "public void setSales(double sales){\n this.sales = sales;\n }", "title": "" }, { "docid": "b8617873ce77072cdf7b54a1e53a090b", "score": "0.6058712", "text": "@Override\n\tpublic List<Sale> getUserSales(User user) {\n\t\treturn saleRepository.getUserSales(user);\n\t}", "title": "" }, { "docid": "614d3928753e758113e96a77579e7924", "score": "0.6051849", "text": "public abstract double calculateSales();", "title": "" }, { "docid": "8ed58a105c1b58892d178780ddecb2d4", "score": "0.6046355", "text": "public Integer countSalesOrders();", "title": "" }, { "docid": "b6e0fc82c1dff50290c85eabd5ccd802", "score": "0.6040387", "text": "@Test\n\tpublic void testGetSellOrdersSummary() throws OrderRegisterException, OrderNotFoundException {\n\t\tclearOrderRepository();\n\t\tregisterSellOrders();\n\t\ttestSellOrderSummary();\t\n\t}", "title": "" }, { "docid": "2bfb62496c07dff7f8f0711fb9292d0d", "score": "0.6027712", "text": "@Override\n\tpublic Sales find(String id) {\n\t\treturn getHibernateTemplate().load(Sales.class, id);\n\t}", "title": "" }, { "docid": "10c3370bda7ccdf0c49f12f7f8d9f15a", "score": "0.6000566", "text": "public static ArrayList<EmployeeSales> employeeSalesSearch(){\r\n\t\tArrayList<EmployeeSales> employeeArr = new ArrayList<>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tConnection connect = connect();\r\n\t\t\r\n\t\tString query = \"select ssn, employee_id, total_sales from Employee WHERE ssn = ? AND employee_id = ?\";/*will be using the text field to fill in the values of ?*/\r\n\t\t\r\n\t\tPreparedStatement myStmt = connect.prepareStatement(query);/*This is the line we are going to use if the user is actually an employee that is registered in the database*/\r\n\t\t\r\n\t\tmyStmt.setLong(1, Integer.parseInt(viewEmployeeSales.ssn.getText()));\r\n\t\t\r\n\t\tmyStmt.setString(2, viewEmployeeSales.employeeID.getText());\r\n\t\t\r\n\t\tResultSet result = myStmt.executeQuery();\r\n\t\t\r\n\t\tEmployeeSales employee;\r\n\t\t\r\n\t\twhile(result.next()) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\temployee = new EmployeeSales (result.getInt(\"ssn\"), result.getString(\"employee_id\"), result.getInt(\"total_sales\"));\r\n\t\t\t/*the entry corresponds to the column index of each variable that is made from Employee constructor*/\r\n\t\t\t\r\n\t\t\temployeeArr.add(employee); /*adds each row of the customer table in sql to the array list*/\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t} catch(SQLException e1) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Employee not found\");\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn employeeArr;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "78e63504038762f1a1fcd94ae66e3f27", "score": "0.5998004", "text": "public double getSales() {\n\t\treturn sales;\n\t}", "title": "" }, { "docid": "43645c0c017048cf6fde1e678d6300ba", "score": "0.5988173", "text": "@Test\n public void testgetOrderTotalQuery() throws Exception {\n\n Integer order_id = 0;\n\n List<OcOrderTotal> result = dao.getOrderTotalQuery(order_id);\n assertThat(\"getOrderTotalQuery\", result, notNullValue());\n }", "title": "" }, { "docid": "20ca75ff17cc2a3a3452f254398cfb34", "score": "0.59655863", "text": "@Test\n\tpublic void testGetSellSummary() throws OrderRegisterException, OrderNotFoundException {\n\t\tclearOrderRepository();\n\t\tregisterSellOrders();\n\t\tgetSellSummary();\n\t}", "title": "" }, { "docid": "0ab1dcba3f102d6208805262a84290ec", "score": "0.5965145", "text": "@Test\n public void testFindBillTotal() throws Exception\n {\n System.out.println(\"findBillTotal\");\n TollEventDaoInterface instance = new TollEventDaoInterfaceImpl();\n List<TollEvent> expResult = null;\n List<TollEvent> result = instance.findBillTotal();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "2454b703480b26a295f149024e7240d8", "score": "0.59553635", "text": "@Test\n\tpublic void test10(){\n\t\tGoodsDaoImpl dao = new GoodsDaoImpl();\n\t\tSystem.out.println(dao.getAveragePrice(4));\n\t}", "title": "" }, { "docid": "489b833ec7b8b52af134361f9dd1721d", "score": "0.5952516", "text": "@Test\n public void testFindSalesRepCount() {\n }", "title": "" }, { "docid": "14066b017bf6a6c0f3d9370ca41faad1", "score": "0.5929447", "text": "public abstract void recordSale(SalesStore salesStore);", "title": "" }, { "docid": "400cac6b1380bb0e70aca4cc0c4105b2", "score": "0.59248316", "text": "public Sales getVehicleSale(int vehicle_ID) throws SQLException, ParseException\r\n\t{\r\n\t\tSales sold_vehicle = null;\r\n\t\tConnection dbConnection = null;\r\n\t\tPreparedStatement preparedStatement = null;\r\n\t\tResultSet result = null;\r\n\t\t\r\n\t\t// store the query into the variable query\r\n\t\tString query = \"SELECT * FROM sales WHERE vehicle_id = ?;\";\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\t// get a connection\r\n\t\t\tdbConnection = getDBConnection();\r\n\t\t\t\r\n\t\t\t// prepare the query statement in the database\r\n\t\t\tpreparedStatement = dbConnection.prepareStatement(query);\r\n\t\t\t\r\n\t\t\t// set the values to replace with question marks in the query giving index and value\r\n\t\t\tpreparedStatement.setInt(1, vehicle_ID);\r\n\t\t\t\r\n\t\t\t// print the query on to the console\r\n\t\t\tSystem.out.println(\"DBQuery: \" + query);\r\n\t\t\t\r\n\t\t\t//execute SQL QUERY\r\n\t\t\tresult = preparedStatement.executeQuery();\r\n\t\t\t\r\n\t\t\t// loop to get the vehicle sale record\r\n\t\t\twhile(result.next())\r\n\t\t\t{\r\n\t\t\t\t// store the data of the vehicle objects into the variables\r\n\t\t\t\tint sale_id = result.getInt(\"sale_id\");\r\n\t\t\t\tDate sold_date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(result.getString(\"sold_date\"));\r\n\t\t\t\tint sold_price = result.getInt(\"sold_price\");\r\n\t\t\t\tString status_info = result.getString(\"status_info\");\r\n\t\t\t\tint vehicle_id = result.getInt(\"vehicle_id\");\r\n\t\t\t\t\r\n\t\t\t\t// creates a sale object\r\n\t\t\t\tsold_vehicle = new Sales(sale_id, sold_date, sold_price, status_info, vehicle_id);\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (SQLException e) \r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif(result != null)\r\n\t\t\t{\r\n\t\t\t\tresult.close();\r\n\t\t\t}\r\n\t\t\tif(preparedStatement != null)\r\n\t\t\t{\r\n\t\t\t\tpreparedStatement.close();\r\n\t\t\t}\r\n\t\t\tif(dbConnection != null)\r\n\t\t\t{\r\n\t\t\t\tdbConnection.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// returns the sold_vehicle sale record\r\n\t\treturn sold_vehicle;\r\n\t}", "title": "" }, { "docid": "0d813ec1207830ec2620a64a2393a81b", "score": "0.5892547", "text": "@Test\r\n public void testDelete() throws Exception {\r\n System.out.println(\"delete\");\r\n Sales sale = new Sales();\r\n ProductDAO prodDAO = new ProductDAO();\r\n LoginDAO vendorDAO = new LoginDAO();\r\n sale.setCode(100);\r\n sale.setProduct(prodDAO.getById(1));\r\n sale.setAddress(\"Address Test 1\");\r\n sale.setVendor(vendorDAO.getById(1));\r\n SalesDAO instance = new SalesDAO();\r\n boolean expResult = true;\r\n boolean result = instance.delete(sale);\r\n assertEquals(expResult, result);\r\n\r\n }", "title": "" }, { "docid": "08da701bacfbfea9e1a46d5f0b099327", "score": "0.58899504", "text": "public interface StoreDao {\n\n //获取每一天的某种类型的盈利额总数\n double getSumOfDay(int employer, String date, String type);\n\n //获取某个用户某天的热门商品\n List<Integer> getHotGoodsNums(int employer, String date);\n\n //获取某个用户某天的热销商铺\n List<Integer> getHotGoodsSale(int employer, String date);\n\n //从一堆商铺中找到销售量最多的几个\n List<Goods> getHotGoodsById(String goodsId);\n\n //从商品中找进价最低的商品\n List<Goods> getLowSaleGoodsByUserId(int employer);\n\n //查询商品的详细销售情况\n List<OrderDetail> getDetailByIds(String goodsId, String dateS, String dateE);\n}", "title": "" }, { "docid": "0dc1dcca33e52933a56ffe68377786b2", "score": "0.5857332", "text": "@Test\r\n public void testReturnCosts() {\r\n System.out.println(\"returnCosts\");\r\n VendingDAO instance = new VendingDAOImpl();\r\n Stream<BigDecimal> expResult = null;\r\n Stream<BigDecimal> result = instance.returnCosts();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "155f364a7fb62d6b9ddad789571cf901", "score": "0.5836395", "text": "@Override\r\n\tpublic List<SaleItem> getSaleItemsProduct(long productCode) {\n\r\n\t\tList<SaleItem> saleItems = new ArrayList();\r\n\r\n\t\tPreparedStatement prst;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tprst = connection.prepareStatement(\"select person.firstName,person.lastName\"\r\n\t\t\t\t\t+\",state.stateCode,state.stateName\"\r\n\t\t\t\t\t+\",sale.date,sale.saleCode,sale.total\"\r\n\t\t\t\t\t\r\n\t\t\t\t\t+\",product.productCode,product.designation,product.salePrice as salePrice1\"\r\n\t\t\t\t\t+\",saleItem.saleItemCode,saleItem.number,saleItem.quantite,saleItem.salePrice,saleItem.subTotal,saleItem.qteret\"\r\n\t\t\t\t\t\r\n\t\t\t\t\t+ \"\tfrom person,sale,saleItem,product,state\" + \" where person.personCode=sale.customerCode\"\r\n\t\t\t\t\t+ \" and sale.saleCode=saleItem.saleCode\" + \" and saleItem.productCode=product.productCode\"\r\n\t\t\t\t\t+ \" and state.stateCode=sale.stateCode\"\r\n\t\t\t\t\t+ \" and sale.stateCode!=4\"\r\n\t\t\t\t\t+ \" and product.productCode=?\"\r\n\r\n\t\t\t);\r\n\t\t\tprst.setLong(1, productCode);\r\n\t\t\trs = prst.executeQuery();\r\n\t\t\t// rs=prst.getResultSet();\r\n\r\n\t\t\tif (rs != null) {\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\r\n\t\t\t\t\tPerson person=new Person(rs.getString(\"firstName\"), rs.getString(\"lastName\"), null, null, \"CL\");\r\n\t\t\t\t\tSaleItem saleItem = null;\r\n\t\t\t\t\tState state=new State(rs.getInt(\"stateCode\"), rs.getString(\"stateName\"));\r\n\t\t\t\t\tSale sale=new Sale(rs.getLong(\"saleCode\"), state, rs.getDouble(\"total\"), rs.getDate(\"date\").toLocalDate());\r\n\t\t\t\t\tsale.setPerson(person);\r\n\t\t\t\t\t\r\n\t\t\t\t\tProduct product=new Product(rs.getLong(\"productCode\"), rs.getString(\"designation\"), 0,\r\n\t\t\t\t\t\t\t0);\r\n\t\t\t\t\t//Tail tail=new Tail(rs.getLong(\"tailCode\"), product, rs.getString(\"tail\"));\r\n\t\t\t\t\tsaleItem=new SaleItem(rs.getLong(\"saleItemCode\"), rs.getInt(\"number\"), product, rs.getInt(\"quantite\"), \r\n\t\t\t\t\t\t\t rs.getDouble(\"salePrice\"), rs.getInt(\"qteret\"));\r\n\t\t\t\t\tsaleItem.setSale(sale);\r\n\t\t\t\t\t\t\t//new SaleItem(rs.getDate(\"date\"), rs.getLong(\"saleCode\"), name, rs.getString(\"tail\"),\r\n\t\t\t\t\t\t\t//rs.getDouble(\"salePrice\"), rs.getInt(\"quantite\"), rs.getInt(\"qteret\"));\r\n\r\n\t\t\t\t\tsaleItems.add(saleItem);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn saleItems;\r\n\r\n\t}", "title": "" }, { "docid": "22cbc844c6a85f156e33b805899d6f35", "score": "0.5833523", "text": "public String getPartnerSales(String userName) throws Exception;", "title": "" }, { "docid": "00af8d7167d88d1e64a38050e7dc5b95", "score": "0.5832752", "text": "@Test\r\n\tpublic void testGettingAllCustomers1() throws Exception {\n\t\tmockDatabase = Mockito.mock(Database.class);\r\n\t\tList<Customer> customers = mockCustomers();\r\n\t\t// ... and tell it what do do when findAllCustomers is called\r\n\t\tMockito.when(mockDatabase.findAllCustomers()).thenReturn(customers);\r\n\r\n\t\tController underTest = new Controller();\r\n\t\tunderTest.setDatabase(mockDatabase);\r\n\r\n\t\t// There need to be 3 customers\r\n\t\tassertEquals(3, underTest.getAllCustomers().size());\r\n\t}", "title": "" }, { "docid": "34d53e84ab14b3630c982839ad008327", "score": "0.58202624", "text": "@Test\n public void checkStockNormal(){\n List<Product> productList = getMockProductList();\n boolean result = productDaoMock.checkStock(productList);\n assertEquals(result, true);\n }", "title": "" }, { "docid": "bfd505a470c0f78c9e6385336a86121b", "score": "0.57930017", "text": "@Test\n public void getMakeFromProductDealer() {\n ProductDealer productDealer = productDealerDao.findById(1);\n int productId = productDealer.getProductId();\n Product product = productDao.findById(productId);\n Make make = product.getMake();\n assertEquals(5, make.getMakeId());\n\n\n }", "title": "" }, { "docid": "1a0af77eb9b24f70ab5a3fdc04658e4b", "score": "0.5783567", "text": "public void setSales(double sales) {\n\t\tthis.sales = sales;\n\t}", "title": "" }, { "docid": "a8d26bcc34818ea656590529f3515e6c", "score": "0.57720053", "text": "public static void obtainSalesReportForGame()\r\n\t{\r\n\t}", "title": "" }, { "docid": "399682a32f211e81758c29838c9344ce", "score": "0.57714933", "text": "@Test\r\n\t// @Disabled\r\n\tvoid testViewAllCustomers() {\r\n\t\tCustomer customer1 = new Customer(\"son\", \"951771122\", \"tom@gmail.com\",\"password\");\r\n\t\tCustomer customer2 = new Customer(\"lee\", \"951998122\", \"jerry@gmail.com\",\"password\");\r\n\t\tList<Customer> customerList = new ArrayList<>();\r\n\t\tcustomerList.add(customer1);\r\n\t\tcustomerList.add(customer2);\r\n\t\tMockito.when(custRep.findAll()).thenReturn(customerList);\r\n\t\tList<Customer> customer = custService.findAllCustomer();\r\n\t\tassertEquals(2, customer.size());\r\n\t}", "title": "" }, { "docid": "3380d92a7aeb91e488069485f549fd31", "score": "0.5768717", "text": "public List<Sale> getSales(Date from, Date to){\n MongoCollection<Sale> sales = database.getCollection(\"Sales\", Sale.class);\n try {\n List<Sale> saletList = sales.find(and(lt(\"date\", to),\n gt(\"date\", from))).into(new ArrayList<>());\n return saletList;\n }catch(NullPointerException n){\n return null;\n }\n }", "title": "" }, { "docid": "d96c61f21241c93ea857dcd552182e2d", "score": "0.57679665", "text": "@Override\n public KwlReturnObject getSalesOrderDetails(String soId, String companyId) throws ServiceException {\n List list = null;\n int count = 0;\n try {\n String query = \"from SalesOrderDetail where salesOrder.ID =? and company.companyID=? \"; //\" order by inv.customerEntry.account.id, inv.invoiceNumber\"; \n list = executeQuery(query, new Object[]{soId, companyId});\n count = list.size();\n } catch (Exception ex) {\n Logger.getLogger(accSalesOrderImpl.class.getName()).log(Level.SEVERE, null, ex);\n throw ServiceException.FAILURE(\"accInvoiceImpl.getSalesOrderDetails:\" + ex.getMessage(), ex);\n }\n return new KwlReturnObject(true, null, null, list, count);\n }", "title": "" }, { "docid": "f8ee59b8e429298434e8888814dfd6e4", "score": "0.5767102", "text": "@Override\n\tpublic List<Order> doGetSalesTotal(Order order) {\n\t\treturn genDao.selectSalesTotal(order);\n\t}", "title": "" }, { "docid": "02f28107c8ca2b1555b0dfd8a56ba3f4", "score": "0.57617", "text": "@Test\n public void testFindAllByCid() throws Exception {\n//TODO: Test goes here...\n ProductDao productDao = new ProductDaoImpl();\n List<Product> list = productDao.findAllByCid(\"2\",1,4);\n for (Product item: list) {\n System.out.println(item);\n }\n\n }", "title": "" }, { "docid": "9cd10758fad65005a201a95ac55e20b4", "score": "0.5743866", "text": "@Test\n\tpublic void findByIdVendorDAOTest() {\n\t\t// Your Code Here\n\t}", "title": "" }, { "docid": "469a64d8fdd6a016afc1591cc35137b5", "score": "0.57416433", "text": "@Test\n void getAllCompaniesSuccess() {\n List<Company> companies = companyDao.getAll();\n assertEquals(1, companies.size());\n }", "title": "" }, { "docid": "19cb4a74a9e7e30ffd7449342026b5c3", "score": "0.57224536", "text": "@Test\n public void testgetOrderProductQuery() throws Exception {\n\n Integer order_id = 0;\n\n List<OcOrderProduct> result = dao.getOrderProductQuery(order_id);\n assertThat(\"getOrderProductQuery\", result, notNullValue());\n }", "title": "" }, { "docid": "26f88363acd5836f9e24f0868ffa3035", "score": "0.57140774", "text": "@Test\r\n public void testObtenerTodos() throws Exception {\r\n System.out.println(\"obtenerTodos\");\r\n ServicioDAOImpl instance = new ServicioDAOImpl();\r\n List<Servicio> result = instance.obtenerTodos();\r\n for(Servicio servicio : result){\r\n System.out.println(\"Codigo: \" + servicio.getCodigo());\r\n System.out.println(\"Nombre: \" + servicio.getNombre());\r\n }\r\n assertTrue(true);\r\n }", "title": "" }, { "docid": "d8fc3de18f366ec9fcc948c2cd47346a", "score": "0.5713053", "text": "@Test\n void getAllSuccess() {\n List<Users> users = (List<Users>)dao.getAll();\n assertEquals(3, users.size());\n\n }", "title": "" }, { "docid": "c033e5ea2202306f2bd51621760bf76a", "score": "0.571151", "text": "@Test\r\n @Ignore\r\n public void buscar() {\n\r\n EstadoDAO estadoDAO = new EstadoDAO();\r\n Estado estado = estadoDAO.buscar(11L);\r\n\r\n if (estado == null) {\r\n System.out.println(\"Nenhum registro encontrado\");\r\n } else {\r\n System.out.println(\"Registro encontrado:\");\r\n System.out.println(estado.getCodigo() + \" - \" + estado.getSigla() + \" - \" + estado.getNome());\r\n }\r\n }", "title": "" }, { "docid": "4118928c0847117dc47c2883a568fcf3", "score": "0.570641", "text": "@Test\n\t@Ignore\n\tpublic void dbdaoTest()\n\t{\n\t\t// Company\n\t\t\n\t\t// Create\n\t\ttry {\n\t\t\tcompanyDb.createCompany(new Company(\"IBM\", \"1234\", \"ibm@gmail.com\"));\n\t\t\tcompanyDb.createCompany(new Company(\"Aroma\", \"1234\", \"aroma@gmail.com\"));\n\t\t\tcompanyDb.createCompany(new Company(\"remove\", \"1234\", \"ibm@gmail.com\"));\n\t\t} catch (CompanyExistException e) {\n\t\t}\n\t\t\n\t\t// Remove\n\t\ttry {\n\t\t\tcompanyDb.removeCompany(3);\n\t\t} catch (CompanyNotExistException e) {\n\t\t}\n\t\t\n\t\t// Update\n\t\ttry {\n\t\t\tcompanyDb.updateCompany(\"123\", \"aroma@walla.co.il\", 2);\n\t\t} catch (CompanyNotExistException e) {\n\t\t}\n\t\t\n\t\t// Get \n\t\ttry {\n\t\t\tCompany aroma = companyDb.getCompanyByID(2);\n\t\t\tSystem.out.println(aroma);\n\t\t} catch (CompanyNotExistException e) {\n\t\t}\n\t\t\n\t\t// Get All \n\t\ttry {\n\t\t\tArrayList<Company> allcompanies = companyDb.getAllCompanies();\n\t\t\tSystem.out.println(allcompanies);\n\t\t} catch (CompaniesNotExistException e) {\n\t\t}\n\t\t\n\t\t// Customer\n\t\t\n\t\t// Create\n\t\t\n\t\ttry {\n\t\t\tcustomerDb.createCustomer(new Customer(\"Avi\", \"1234\"));\n\t\t\tcustomerDb.createCustomer(new Customer(\"Itsik\", \"1234\"));\n\t\t\tcustomerDb.createCustomer(new Customer(\"remove\", \"1234\"));\n\t\t} catch (CustomerExistException e) {\n\t\t}\n\t\t\n\t\t// Remove\n\t\ttry {\n\t\t\tcustomerDb.removeCustomer(6);\n\t\t} catch (CustomerNotExistException e) {\n\t\t}\n\t\t\n\t\t// Update\n\t\ttry {\n\t\t\tcustomerDb.updateCustomer(\"updated\", 5);\n\t\t} catch (CustomerNotExistException e) {\n\t\t}\n\t\t\n\t\t// Get\n\t\ttry {\n\t\t\tCustomer cust = customerDb.getCustomerByID(5);\n\t\t\tSystem.out.println(cust);\n\t\t} catch (CustomerNotExistException e) {\n\t\t}\n\t\t\n\t\t// Get All \n\t\ttry {\n\t\t\tArrayList<Customer> allCustomers = customerDb.getAllCustomers();\n\t\t\tSystem.out.println(allCustomers);\n\t\t} catch (CustomersNotExistException e) {\n\t\t}\n\t\t\n\t\t// Coupon\n\t\t\n\t\t// Create \n\t\tCoupon coffe = new Coupon(\"Coffe break\", DateMaker.fixDate(2018, 1, 1), DateMaker.fixDate(2019, 1, 1), CouponType.FOOD, 100, \"hi\", 19, \"coffe.com/j.jpg\");\n\t\tCoupon computers = new Coupon(\"Computers\", DateMaker.fixDate(2018, 1, 1), DateMaker.fixDate(2019, 1, 1), CouponType.ELECTRICITY, 100, \"hi\", 19, \"computers.com/j.jpg\");\n\t\tCoupon remove = new Coupon(\"remove\", DateMaker.fixDate(2018, 1, 1), DateMaker.fixDate(2019, 1, 1), CouponType.ELECTRICITY, 100, \"hi\", 19, \"computers.com/j.jpg\");\n\t\ttry {\n\t\t\tcouponDb.createCoupon(coffe, 2);\n\t\t\tcouponDb.createCoupon(computers, 1);\n\t\t\tcouponDb.createCoupon(remove, 1);\n\t\t} catch (CouponExistException | CompanyNotExistException e) {\n\t\t}\n\t\t\n\t\t\n\t\t// Remove\n\t\ttry {\n\t\t\tcouponDb.removeCoupon(9\t, 1);\n\t\t} catch (CouponNotExistException | CompanyNotExistException e) {\n\t\t}\n\t\t\n\t\t// Update\n\t\ttry {\n\t\t\tcouponDb.updateCoupon(DateMaker.fixDate(2099, 1, 1), 199, 7\t, 2);\n\t\t} catch (CouponNotExistException | CompanyNotExistException e) {\n\t\t}\n\t\t\n\t\t// Get Coupon\n\t\ttry {\n\t\t\tCoupon coup = couponDb.getCoupon(7);\n\t\t\tSystem.out.println(\"coupon :\" + coup);\n\t\t} catch (CouponNotExistException e) {\n\t\t}\n\t\t\n\t\t// Get all Coupons\n\t\ttry {\n\t\t\tArrayList<Coupon> allcoupons = couponDb.getAllCoupons();\n\t\t\tSystem.out.println(allcoupons);\n\t\t} catch (CouponsNotExistException e) {\n\t\t}\n\t\t\n\t\t// Get Company Coupons\n\t\ttry {\n\t\t\tArrayList<Coupon> compCoupos = companyDb.getCompanyCoupons(1);\n\t\t\tSystem.out.println(\"Company coupons:\" + compCoupos);\n\t\t} catch (CompanyNotExistException | CouponsNotExistException e) {\n\t\t}\n\t\t\n\t\t// Purchase Coupon\n\t\ttry {\n\t\t\tcustomerDb.purchaseCoupon(8, 4);\n\t\t} catch (CouponNotExistException | CustomerNotExistException e) {\n\t\t}\n\t\t\n\t\t// Get Customer Coupons\n\t\ttry {\n\t\t\tArrayList<Coupon> custCoups = customerDb.getCustomerCoupons(4);\n\t\t\tSystem.out.println(\"customer coupons: \" + custCoups);\n\t\t} catch (CustomerNotExistException | CouponsNotExistException e) {\n\t\t}\n\t}", "title": "" }, { "docid": "a686af75fee8471192ec4b681e40c1cb", "score": "0.56902003", "text": "@Override\r\n\tpublic List<Object[]> getSalesOrdersByYear(int year) {\n\t\ttry\r\n\t\t{\r\n\t\t\tlistofObjects=getHibernateTemplate().findByNamedQueryAndNamedParam(\"GetSOrderPCTbyYear\",\"Year\",year);\r\n\t\t\tlogger.info(\"sorder by year size iss==\"+listofObjects.size());\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn listofObjects;\r\n\t}", "title": "" }, { "docid": "f4b7a785ec1a178f1f10ebfa2c0cfab7", "score": "0.56901306", "text": "@Test\n public void testUpdateStockQuantity() throws SQLException\n {\n System.out.println(\"updateStockQuantity\");\n TransactionDAO dao = new TransactionDAO();\n //System.out.println(dao.updateStockQuantity(19, 6));\n }", "title": "" }, { "docid": "0ad33934c88b9d0813074984cb883223", "score": "0.5684727", "text": "@Test\r\n\tpublic void testGetPrice() {\r\n\t\tSystem.out.println(\"Executed Price getter\");\r\n\t\tassertEquals(price, l.getPrice());\r\n\t\t\r\n\t}", "title": "" }, { "docid": "09802ff79d29a3626b35154952a77115", "score": "0.5680715", "text": "public void testCalculateYearlySalary2(){\n assertEquals(\"No wage specified\", compensation.calculateYearlySalary(staff));\n }", "title": "" }, { "docid": "d88ad924d3e1c5420362adaf25229cb7", "score": "0.56805104", "text": "@Test\n public void test(){\n System.out.println(entrustService.queryResting(\"15912345678\"));\n //System.out.println(entrustService.queryResting(\"641\"));\n //System.out.println(entrustService.queryPurchase(\"13012345678\"));\n\n }", "title": "" }, { "docid": "41985215e3043c48d26a2c666469661b", "score": "0.56725115", "text": "public Integer getActualSales() {\n\t\treturn actualSales;\n\t}", "title": "" }, { "docid": "328d49b2c725e53bf4463fbbcb85790e", "score": "0.56508416", "text": "@Test\n public void testGetItem() throws Exception {\n //test works. this was tested through DAO\n\n }", "title": "" }, { "docid": "62e4e958ae6ba5b8b44b42568b5d5f56", "score": "0.56453323", "text": "public Sale getSaleByID(int saleID){\n String query = \"SELECT * FROM \" + ER_SALE.TABLE_ER_SALE+ \" WHERE \"+TABLE_ID+\" = ?\";\n\n // 2. get reference to writable DB\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(query, new String[]{String.valueOf(saleID)});\n\n // 3. go over each row, build event and add it to list\n Sale sale = null;\n if (cursor.moveToFirst()) {\n do {\n sale = new Sale();\n sale.setId(cursor.getInt(cursor.getColumnIndex(TABLE_ID)));\n sale.setClient_id(cursor.getInt(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_CLIENT_ID)));\n sale.setProduct_id(cursor.getInt(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_PRODUCT_ID)));\n sale.setReceipt_nbr(cursor.getInt(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_RECEIPT_ID)));\n sale.setClient_name(cursor.getString(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_CLIENT)));\n sale.setProduct_name(cursor.getString(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_PRODUCT)));\n sale.setQuantity(cursor.getInt(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_QUANTITY)));\n sale.setQuantity_type(cursor.getInt(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_QUANTITY_TYPE)));\n sale.setPrice_paid(cursor.getInt(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_PRICE_PAID)));\n sale.setPrice_remain(cursor.getInt(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_PRICE_REMAIN)));\n sale.setCurrent_price_id(cursor.getInt(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_CURRENT_PRICE)));\n sale.setStatus(cursor.getString(cursor.getColumnIndex(ER_SALE.COL_ER_SALE_STATUS)));\n sale.setCreated_at(cursor.getString(cursor.getColumnIndex(CREATED_AT)));\n sale.setUpdated_at(cursor.getString(cursor.getColumnIndex(UPDATED_AT)));\n\n }while (cursor.moveToNext());\n }\n\n //Log.d(\"getMemberById()\", member.toString());\n return sale;\n\n }", "title": "" }, { "docid": "9aec4db732f971cf722b33fcc257c1c2", "score": "0.5641022", "text": "@Test\n public void testListInventory() throws Exception {\n //test works. this was tested through DAO\n\n }", "title": "" }, { "docid": "d8d59c2cbd001a5eec00ec0265668201", "score": "0.5640797", "text": "@Test\r\n public void testObtenerUno() throws Exception {\r\n System.out.println(\"obtenerUno\");\r\n String strCodigo = \"SAOI\";\r\n ServicioDAOImpl instance = new ServicioDAOImpl(); \r\n Servicio result = instance.obtenerUno(strCodigo);\r\n System.out.println(\"Nombre: \" + result.getNombre());\r\n assertTrue(true);\r\n }", "title": "" }, { "docid": "feaa3f66956280fbf63e1c1b84f75322", "score": "0.56334776", "text": "@Override\r\n\tpublic void updateSales(Sales sales) {\n\r\n\t}", "title": "" }, { "docid": "3757564648d5ab4f4780f74ef407697e", "score": "0.5624113", "text": "public Map<Integer,Sale> insertSalesDetails(Sale sale);", "title": "" }, { "docid": "b42a8fab10e63b363d1e9c53dd1a3541", "score": "0.5606443", "text": "@Override\n\tpublic List<Sales> getSalesListByProductNoAndCount(int productNo, int count) {\n\t\treturn salesMapper.getSalesListByProductNoAndCount(productNo,count);\n\t}", "title": "" }, { "docid": "324ff682680d3c7de1e1cd2692bc930c", "score": "0.5596958", "text": "public void testCalculateMonthlySalary2(){\n staff.setWage(50);\n assertEquals(8000, compensation.calculateMonthlySalary(staff));\n }", "title": "" }, { "docid": "e426811e84236f7db09dfc3430199347", "score": "0.55966187", "text": "public static void obtainTotalSalesForEachGame()\r\n\t{\r\n\t}", "title": "" }, { "docid": "294ec94256d02d8d48636910b7cad454", "score": "0.5591902", "text": "@Test\n public void testGetAllOrders() throws Exception {\n Order orderTest = new Order();\n orderTest.setOrderNumber(300);\n orderTest.setOrderDate(LocalDate.parse(\"2017-02-27\"));\n orderTest.setCustomerName(\"smith\");\n orderTest.setAreaSQFT(new BigDecimal(\"100\"));\n orderTest.setProductType(\"Carpet\");\n orderTest.setState(\"OH\");\n orderTest.setTaxRate(new BigDecimal(\"2.00\"));\n orderTest.setLaborCostPerSQFT(new BigDecimal(\"1.00\"));\n orderTest.setMaterialCostPerSQFT(new BigDecimal(\"1\"));\n orderTest.setTaxCostTotal(new BigDecimal(\"0\"));\n orderTest.setLaborCostTotal(new BigDecimal(\"0\"));\n orderTest.setMaterialCostTotal(new BigDecimal(\"0\"));\n orderTest.setOrderTotal(new BigDecimal(\"0\"));\n\n serviceTest.addOrder(orderTest1);\n serviceTest.addOrder(orderTest);\n\n assertEquals(2, serviceTest.getAllOrders(LocalDate.parse(\"2017-02-27\")).size());\n }", "title": "" }, { "docid": "2e3b65edda7bf99b3c2f4dbc464dea33", "score": "0.558952", "text": "@Test\n public void testFindAllTollEvents() throws Exception\n {\n System.out.println(\"findAllTollEvents\");\n TollEventDaoInterface instance = new TollEventDaoInterfaceImpl();\n List<TollEvent> expResult = null;\n List<TollEvent> result = instance.findAllTollEvents();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "bb1452a12d6777affa5139fa1444e025", "score": "0.5588547", "text": "@Test\n public void customerInvoiceGetAllTest() {\n String documentType = null;\n Integer released = null;\n Integer dunningLevel = null;\n String closedFinancialPeriod = null;\n String dunningLetterDateTime = null;\n String dunningLetterDateTimeCondition = null;\n String project = null;\n String greaterThanValue = null;\n Integer numberToRead = null;\n Integer skipRecords = null;\n String orderBy = null;\n String lastModifiedDateTime = null;\n String lastModifiedDateTimeCondition = null;\n Integer pageNumber = null;\n Integer pageSize = null;\n List<CustomerInvoiceDto> response = api.customerInvoiceGetAll(documentType, released, dunningLevel, closedFinancialPeriod, dunningLetterDateTime, dunningLetterDateTimeCondition, project, greaterThanValue, numberToRead, skipRecords, orderBy, lastModifiedDateTime, lastModifiedDateTimeCondition, pageNumber, pageSize);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "24dff171c7dac18cd8c6f54f276b9413", "score": "0.5586987", "text": "@Test\n\tpublic void testGetOrdersSummary() throws OrderRegisterException, OrderNotFoundException {\n\t\tclearOrderRepository();\n\t\tregisterSellOrders();\n\t\tregisterBuyOrders();\n\t\t\n\t\ttestSellOrderSummary();\t\n\t\n\t\ttestBuyOrderSummary();\n\t}", "title": "" }, { "docid": "a8a0a3e52659b9794c036ce8842b03fb", "score": "0.557863", "text": "public DataLogicSales() {\r\n\t\tstockdiaryDatas = new Datas[] { Datas.STRING, Datas.TIMESTAMP, Datas.INT, Datas.STRING, Datas.STRING,\r\n\t\t\t\tDatas.STRING, Datas.DOUBLE, Datas.DOUBLE };\r\n\t\tpaymenttabledatas = new Datas[] { Datas.STRING, Datas.STRING, Datas.TIMESTAMP, Datas.STRING, Datas.STRING,\r\n\t\t\t\tDatas.DOUBLE, Datas.STRING };\r\n\t\tstockdatas = new Datas[] { Datas.STRING, Datas.STRING, Datas.STRING, Datas.DOUBLE, Datas.DOUBLE, Datas.DOUBLE };\r\n\t\tauxiliarDatas = new Datas[] { Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING,\r\n\t\t\t\tDatas.STRING };\r\n\r\n\t\tproductsRow = new Row(new Field(\"ID\", Datas.STRING, Formats.STRING),\r\n\t\t\t\tnew Field(AppLocal.getIntString(\"label.prodref\"), Datas.STRING, Formats.STRING, true, true, true),\r\n\t\t\t\tnew Field(AppLocal.getIntString(\"label.prodbarcode\"), Datas.STRING, Formats.STRING, false, true, true),\r\n\t\t\t\tnew Field(AppLocal.getIntString(\"label.prodname\"), Datas.STRING, Formats.STRING, true, true, true),\r\n\t\t\t\tnew Field(\"ISCOM\", Datas.BOOLEAN, Formats.BOOLEAN),\r\n\t\t\t\tnew Field(\"ISSCALE\", Datas.BOOLEAN, Formats.BOOLEAN),\r\n\t\t\t\tnew Field(AppLocal.getIntString(\"label.prodpricebuy\"), Datas.DOUBLE, Formats.CURRENCY, false, true,\r\n\t\t\t\t\t\ttrue),\r\n\t\t\t\tnew Field(AppLocal.getIntString(\"label.prodpricesell\"), Datas.DOUBLE, Formats.CURRENCY, false, true,\r\n\t\t\t\t\t\ttrue),\r\n\t\t\t\tnew Field(AppLocal.getIntString(\"label.prodcategory\"), Datas.STRING, Formats.STRING, false, false,\r\n\t\t\t\t\t\ttrue),\r\n\t\t\t\tnew Field(AppLocal.getIntString(\"label.taxcategory\"), Datas.STRING, Formats.STRING, false, false, true),\r\n\t\t\t\tnew Field(AppLocal.getIntString(\"label.attributeset\"), Datas.STRING, Formats.STRING, false, false,\r\n\t\t\t\t\t\ttrue),\r\n\t\t\t\tnew Field(\"IMAGE\", Datas.IMAGE, Formats.NULL), new Field(\"BGCOLOR\", Datas.STRING, Formats.STRING),\r\n\t\t\t\tnew Field(\"STOCKCOST\", Datas.DOUBLE, Formats.CURRENCY),\r\n\t\t\t\tnew Field(\"STOCKVOLUME\", Datas.DOUBLE, Formats.DOUBLE),\r\n\t\t\t\tnew Field(\"ISCATALOG\", Datas.BOOLEAN, Formats.BOOLEAN),\r\n\t\t\t\tnew Field(\"CATORDER\", Datas.DOUBLE, Formats.INT), new Field(\"PROPERTIES\", Datas.BYTES, Formats.NULL),\r\n\t\t\t\tnew Field(\"UNIT\", Datas.STRING, Formats.STRING), new Field(\"ATTR1\", Datas.STRING, Formats.STRING),\r\n\t\t\t\tnew Field(\"ATTR2\", Datas.STRING, Formats.STRING), new Field(\"ATTR3\", Datas.STRING, Formats.STRING));\r\n\t}", "title": "" }, { "docid": "a35ea20ada9f13ac8ee8ce7e757767a7", "score": "0.5575851", "text": "@Test\r\n\tpublic void fetchByExpiryDateUsingService() {\r\n\t\tList<Product> prods = productService.fetchProductsByExpiryDate(2, 7);\r\n\t\tfor (Product product : prods) {\r\n\t\t\tSystem.out.println(product);\r\n\t\t}\r\n\t\tassertEquals(prods.size(), 2);\r\n\t}", "title": "" }, { "docid": "3ce2996ebcb2699d9fd116a6823cf3b2", "score": "0.556864", "text": "@Test\n public void testFindAllTollEventByCertainDate() throws Exception\n {\n System.out.println(\"findAllTollEventByCertainDate\");\n long Timestamp = 0L;\n TollEventDaoInterface instance = new TollEventDaoInterfaceImpl();\n TollEvent expResult = null;\n TollEvent result = instance.findAllTollEventByCertainDate(Timestamp);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "10d74037982ab6223e0fbf0fd03197d5", "score": "0.55627936", "text": "public ArrayList<String[]> getSalesReport(Date start, Date end);", "title": "" }, { "docid": "b0f5d0bf9d49abd8b95812ce2ab8156d", "score": "0.55566216", "text": "@Test\r\n\tpublic void getAllProductsUsingService() {\r\n\t\tassertNotNull(productService.getAllProducts());\r\n\t}", "title": "" }, { "docid": "54d93813c05bc5709aade053e85a9ed9", "score": "0.55382496", "text": "@Test\n\t@DisplayName(\"Teste de busca com sucesso\")\n\tvoid read() {\n\t\tCustomer c = new Customer(\"Teste\", new GregorianCalendar(1999, Calendar.MARCH, 15), Gender.FEMININO,\n\t\t\t\tnull);\n\t\ttry {\n\t\t\tdao.create(c);\n\t\t\tdao.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Falha no teste\");\n\t\t}\n\t\t// Act - pesquisar o customer que foi cadastrado\n\t\ttry {\n\t\t\tCustomer search = dao.read(c.getId());\n\t\t\t// Assert - valida se pesquisou corretamente\n\t\t\tassertNotNull(search);\n\t\t\tassertEquals(search.getId(), c.getId());\n\t\t} catch (SearchNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Falha no teste\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "90393cdab3d04b18a38dbdfceb874b81", "score": "0.55330014", "text": "@Test\n void givenNoPurchases_whenGetStatistics_thenReturnStatistics() {\n purchaseRepository.deleteAll();\n\n Mockito.when(purchaseRepository.count()).thenReturn((long) 0);\n Mockito.when(storeRepository.count()).thenReturn((long) 0);\n Mockito.when(purchaseRepository.findTopByOrderByDate()).thenReturn(Optional.empty());\n\n Map<String, Object> found = storeService.getStatistics();\n\n Mockito.verify(purchaseRepository, VerificationModeFactory.times(1))\n .count();\n Mockito.verify(storeRepository, VerificationModeFactory.times(1))\n .count();\n\n assertThat(found).containsEntry(\"totalPurchases\", 0L).containsEntry(\"avgPurchasesPerWeek\", 0.0)\n .containsEntry(\"totalStores\", 0L);\n }", "title": "" }, { "docid": "a3a77196eca13752221911d4a3246cc4", "score": "0.552783", "text": "@Test\r\n public void testGetStudentInvoice() {\r\n System.out.println(\"getStudentInvoice\");\r\n Model m = new Model();\r\n Student s1 = new Student(\"0001\", \"\", \"\", \"S00001\", \"\", \"\", \"\", \"\", \"\", true, \"\", 1);\r\n s1.setActive(true);\r\n m.addStudent(s1);\r\n // test case 1 : schedul is empty\r\n Invoice expResult = null;\r\n Invoice result = m.getStudentInvoice(s1);\r\n assertEquals(expResult, result);\r\n\r\n }", "title": "" }, { "docid": "1679316ab2ca286af605538679c37663", "score": "0.5526614", "text": "@Override\n public void setSales(List<Sale> sales) {\n this.sales = sales;\n }", "title": "" }, { "docid": "32887933b628735b514dde73d3608b78", "score": "0.5518146", "text": "@Test\n public void testGetAllTaxes() throws Exception {\n assertEquals(4, dao.getAllTaxes().size());\n }", "title": "" }, { "docid": "d2868ffca9124815ef0b596c7df04dce", "score": "0.5517741", "text": "public interface SalesOrderService {\n\n\t/**\n\t * Save an existing SalesOrder entity\n\t * \n\t */\n\tpublic void saveSalesOrder(SalesOrder salesorder);\n\n\t/**\n\t * Delete an existing Customer entity\n\t * \n\t */\n\tpublic SalesOrder deleteSalesOrderCustomer(Integer salesorder_id, Integer related_customer_id);\n\n\t/**\n\t * Save an existing Customer entity\n\t * \n\t */\n\tpublic SalesOrder saveSalesOrderCustomer(Integer id, Customer related_customer);\n\n\t/**\n\t * Save an existing OrderLine entity\n\t * \n\t */\n\tpublic SalesOrder saveSalesOrderOrderLines(Integer id_1, OrderLine related_orderlines);\n\n\t/**\n\t */\n\tpublic SalesOrder findSalesOrderByPrimaryKey(Integer id_2);\n\n\t/**\n\t * Return all SalesOrder entity\n\t * \n\t */\n\tpublic List<SalesOrder> findAllSalesOrders(Integer startResult, Integer maxRows);\n\n\t/**\n\t * Delete an existing SalesOrder entity\n\t * \n\t */\n\tpublic void deleteSalesOrder(SalesOrder salesorder_1);\n\n\t/**\n\t * Load an existing SalesOrder entity\n\t * \n\t */\n\tpublic Set<SalesOrder> loadSalesOrders();\n\n\t/**\n\t * Delete an existing OrderLine entity\n\t * \n\t */\n\tpublic SalesOrder deleteSalesOrderOrderLines(Integer salesorder_id_1, Integer related_orderlines_id);\n\n\t/**\n\t * Return a count of all SalesOrder entity\n\t * \n\t */\n\tpublic Integer countSalesOrders();\n}", "title": "" }, { "docid": "7fa1aaf4b73c3df3f958063440b2a99e", "score": "0.55116624", "text": "public double getCurrentSales() {\n return manager.getCurrentStoreSales();\n }", "title": "" }, { "docid": "b196556f7a4a00dc07f2589284544e76", "score": "0.5508415", "text": "@Test\n public void testGetAllServiceByUserId() {\n System.out.println(\"getAllServiceByUserId\");\n int user_id = 0;\n ServiceDao instance = new ServiceDao();\n ArrayList<Service> expResult = new ArrayList<Service>();\n ArrayList<Service> result = instance.getAllServiceByOwnerId(user_id);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "120aaa24354ca75b63a36b1919207636", "score": "0.5506133", "text": "@Test\r\n public void testReturnInventory() {\r\n System.out.println(\"returnInventory\");\r\n VendingDAO instance = new VendingDAOImpl();\r\n ArrayList expResult = null;\r\n ArrayList result = instance.returnInventory();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "f93184ee5d5e52e1f7a9ce4fdf20f129", "score": "0.5501681", "text": "@Test\n public void testGetOrder() throws Exception {\n Order order = new Order();\n order.setOrderDate(LocalDate.of(1212,12,12));\n order.setOrderNumber(\"1\");\n order.setCustomerName(\"XXX\");\n order.setArea(new BigDecimal(\"100.00\"));\n order.setProductType(\"Wood\");\n order.setCostMaterialSquareFoot(new BigDecimal(\"5\"));\n order.setCostLaborSquareFoot(new BigDecimal(\"5\"));\n order.setState(\"OH\");\n order.setTaxRate(new BigDecimal(\"5\"));\n order.setMaterialCost(new BigDecimal(\"5\"));\n order.setLaborCost(new BigDecimal(\"5\"));\n order.setTax(new BigDecimal(\"5\"));\n order.setTotal(new BigDecimal(\"5\"));\n dao.addOrder(\"1\", order);\n \n dao.addOrder(\"99\", order);\n \n assertEquals(dao.getOrder(\"99\"), order);\n }", "title": "" }, { "docid": "b0432181abc24755282b9d0560da9ce8", "score": "0.5501246", "text": "public ITable getTotalSales() {\n\r\n\t\tString query = \"SELECT S.\" + DBSchema.ISBN + \",\" + DBSchema.TITLE + \",\" + DBSchema.PUB_NAME + \", year(\"\r\n\t\t\t\t+ DBSchema.YEAR + \"),B.\" + DBSchema.PRICE + \",\" + DBSchema.CATEGORY_NAME + \",B.\" + DBSchema.COPIES + \",\"\r\n\t\t\t\t+ DBSchema.THRESHOLD + \", SUM(S.\" + DBSchema.PRICE + \")\" + \" FROM \" + DBSchema.BOOK + \" AS B,\"\r\n\t\t\t\t+ DBSchema.CATEGORY + \" AS C,\" + DBSchema.SALES + \" AS S \" +\r\n\r\n\t\t\t\t\"WHERE B.\" + DBSchema.ISBN + \" = S.\" + DBSchema.ISBN + \" AND B.\" + DBSchema.CATEGORY_ID + \" = C.\"\r\n\t\t\t\t+ DBSchema.CATEGORY_ID + \" AND S.\" + DBSchema.SELL_DATE + \" <= CURDATE() \" + \" GROUP BY S.\"\r\n\t\t\t\t+ DBSchema.ISBN + \" ORDER BY SUM(S.\" + DBSchema.PRICE + \") DESC\";\r\n\t\t// Executing query\r\n\t\tITable table = new Table();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tmyConnection = DBconnection.getConnection();\r\n\t\t\tJasperReportBuilder report = DynamicReports.report();\r\n\t\t\treport.columns(\r\n\t\t\t\t\tColumns.column(\"book Id\", DBSchema.ISBN,\r\n\t\t\t\t\t\t\tDataTypes.stringType()),\r\n\t\t\t\t\tColumns.column(\"Title\", DBSchema.TITLE,\r\n\t\t\t\t\t\t\tDataTypes.stringType()),\r\n\t\t\t\t\tColumns.column(\"Publisher\", DBSchema.PUB_NAME,\r\n\t\t\t\t\t\t\tDataTypes.stringType()),\r\n\t\t\t\t\tColumns.column(\"year\", \"year(Pub_Year)\",\r\n\t\t\t\t\t\t\tDataTypes.stringType()),\r\n\t\t\t\t\tColumns.column(\"Price\", DBSchema.PRICE,\r\n\t\t\t\t\t\t\tDataTypes.doubleType()).setHorizontalTextAlignment(\r\n\t\t\t\t\t\t\tHorizontalTextAlignment.LEFT),\r\n\t\t\t\t\tColumns.column(\"Category\", \"Cat_Name\",\r\n\t\t\t\t\t\t\tDataTypes.stringType()),\r\n\t\t\t\t\tColumns.column(\"Copies\", DBSchema.COPIES,\r\n\t\t\t\t\t\t\tDataTypes.integerType())\r\n\t\t\t\t\t\t\t.setHorizontalTextAlignment(\r\n\t\t\t\t\t\t\t\t\tHorizontalTextAlignment.LEFT))\r\n\t\t\t// missing the total\r\n\t\t\t\t\t.title(// title of the report\r\n\t\t\t\t\tComponents.text(\"\\t\\t\\t\\t\\t\\t total sales\\n\"))\r\n\t\t\t\t\t// .setHorizontalAlignment(HorizontalAlignment.CENTER))\r\n\t\t\t\t\t.setDataSource(query, myConnection);\r\n\r\n\t\t\tFileOutputStream file = new FileOutputStream(\"total sales.pdf\");\r\n\t\t\ttry {\r\n\t\t\t\t// show the report\r\n\t\t\t\t// report.show();\r\n\r\n\t\t\t\t// export the report to a pdf file\r\n\t\t\t\treport.toPdf(file);\r\n\t\t\t\tfile.close();\r\n\t\t\t} catch (DRException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tStatement stmt = DBconnection.getConnection().createStatement();\r\n\t\t\tResultSet set = stmt.executeQuery(query);\r\n\r\n\t\t\t\r\n\t\t\tString[] attrs = { DBSchema.USER_ID, DBSchema.ISBN, DBSchema.COPIES, DBSchema.SELL_DATE, DBSchema.PRICE };\r\n\r\n\t\t\tList<String[]> data = new ArrayList<String[]>();\r\n\r\n\t\t\twhile (set.next()) {\r\n\t\t\t\tList<String> tuple = new ArrayList<String>();\r\n\t\t\t\tfor (int i = 0; i < attrs.length; i++) {\r\n\t\t\t\t\ttuple.add(set.getString(i + 1));\r\n\t\t\t\t\t// System.out.println(set.getString(i + 1) + \"totSales\");\r\n\t\t\t\t}\r\n\t\t\t\tString[] tempTuple = new String[tuple.size()];\r\n\t\t\t\ttempTuple = tuple.toArray(tempTuple);\r\n\t\t\t\tdata.add(tempTuple);\r\n\t\t\t}\r\n\r\n\t\t\tString[][] tableData = new String[data.size()][];\r\n\t\t\ttableData = data.toArray(tableData);\r\n\r\n\t\t\ttable.setAttributes(attrs);\r\n\t\t\ttable.setData(tableData);\r\n\t\t\tSystem.out.println(\"user added\");\r\n\t\t} catch (Exception ex) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn table;\r\n\t}", "title": "" }, { "docid": "809b21819cc38ca96c235264e59a2564", "score": "0.54962003", "text": "public interface ISalespPerformanceService {\r\n\t\r\n\t /**\r\n * 销售业绩整体报表 \r\n */\r\n\tList<SalesPerformance> selectAll(SalesPerformanceKey key);\r\n\t\r\n\tList<SalesPerformance> selectnewAll(SalesPerformanceKey key);\r\n\t\r\n\t//查询数据并汇总\r\n\tList<SalesPerformance> selectAllCount(SalesPerformanceKey key);\r\n\t\r\n\t/**\r\n\t * 用于业绩汇总的“各平台销售业绩报表”查询平台\r\n\t * @return\r\n\t */\r\n\tList<String> selectPlatforms(SalesPerformanceKey key);\r\n\t\r\n\t/**\r\n\t * 用于业绩汇总的“各平台销售业绩报表”的柱状及曲线图的查询\r\n\t * @param key\r\n\t * @return\r\n\t */\r\n\tList<SalesPerformance> selectAllChartSum(SalesPerformanceKey key);\r\n\t\r\n\t/**\r\n\t * 用于业绩汇总的各平台销售业绩报表查询和导出\r\n\t * @param key\r\n\t * @return\r\n\t */\r\n\tList<SalesPerformance> selectAllGridAndExport(SalesPerformanceKey key);\r\n\t\r\n\tList<String> selectnewPlatforms();\r\n\t\r\n\t/**\r\n * 国内仓平台\r\n * @return\r\n */\r\n List<String> selectDomesticPlatforms();\r\n /**\r\n * 新平台销售汇总\r\n * @param key\r\n * @return\r\n */\r\n List<SalesPerformance> selectnewAllSum(SalesPerformanceKey key);\r\n\r\n}", "title": "" }, { "docid": "f14fc0d159d0adc1bbee4ab66aa8733d", "score": "0.5485522", "text": "void addSale(Sale sale);", "title": "" }, { "docid": "85340ae8dd4848c402bab2cdd9c60708", "score": "0.54815316", "text": "@Test\n\tpublic void testViewOrders() {\n\t\tpageRequest = PageRequest.of(0, 10);\n\t\tString userName = \"user Name\";\n\t\tList<OrderDetails> getOrder = new ArrayList<>();\n\t\torder.setOrderStatus(\"Active\");\n\t\tgetOrder.add(order);\n\t\twhen(testRepository.findByUserName(Mockito.anyString(), Mockito.any(Pageable.class))).thenReturn(getOrder);\n\t\tassertNotNull(testService.viewOrders(userName, pageRequest));\n\t}", "title": "" }, { "docid": "7aa8c9bc38f3a768fe12731dd603f91e", "score": "0.54801816", "text": "@Test\n\tpublic void testGetBuyOrdersSummary() throws OrderRegisterException, OrderNotFoundException {\n\t\tclearOrderRepository();\n\t\tregisterBuyOrders();\n\t\ttestBuyOrderSummary();\t\n\t}", "title": "" }, { "docid": "2de8eb5f793aafd3361378d7856199fb", "score": "0.547754", "text": "@Test\r\n public void testGetFreightCompanies() throws Exception {\r\n List<String> result = dao.getFreightCompanies();\r\n assertEquals(\"Coastal Freight\", result.get(0)); // Première compagnie\r\n assertEquals(7, result.size()); // Test du nombre de compagnies récupérées\r\n assertEquals(\"Southern Delivery Service\", result.get(6)); // Dernière compagnie\r\n\r\n }", "title": "" }, { "docid": "8b1995c069733874dbbc92a12c912b5f", "score": "0.5476917", "text": "@Test\n public void testGetAllOrganizations() {\n List<Champion> champions = new ArrayList<>();\n List<Contact> contacts = new ArrayList<>();\n List<Location> locations = new ArrayList<>();\n List<Power> powers = dao.getAllPowers();\n \n Champion champ = new Champion();\n champ.setName(\"JavaMan\");\n champ.setChampionDesc(\"Runs on coffee\");\n champ.setPowers(powers);\n \n dao.addChampion(champ);\n \n assertEquals(1,dao.getAllChampions().size());\n \n champions.add(champ);\n \n Contact cont = new Contact();\n cont.setPhone(\"5555555\");\n cont.setEmail(\"sample.sample@sample\");\n \n dao.addContact(cont);\n assertEquals(1, dao.getAllContacts().size());\n \n contacts.add(cont);\n \n Location loc = new Location();\n loc.setName(\"Metrotham\");\n loc.setLocationDesc(\"Home of SuperBat\");\n loc.setAddress(\"...its a secret\");\n loc.setLongitutde(1);\n loc.setLattitude(2);\n \n dao.addLocation(loc);\n assertEquals(1, dao.getAllLocations().size());\n locations.add(loc);\n \n Organization org = new Organization();\n org.setName(\"The Just Ice League\");\n org.setOrgDesc(\"Deff... not justice league\");\n org.setLocations(locations);\n org.setChampions(champions);\n org.setContacts(contacts);\n \n dao.addOrganization(org);\n \n List<Organization> orgList = dao.getAllOrganizations();\n \n assertEquals(1, dao.getAllOrganizations().size());\n }", "title": "" } ]
8154d61317a46365e536d52d03ddec12
String posting="1b829_W1_1;1b857_W1_1;1b8af_W1_1;1b9a7_W1_1;1b9ef_W1_1;1b9f3_W3_3;1b9fe_W1_1;1ba07_W1_1;1ba66_W1_1;1bb96_W1_1;1bed5_W2_2;1befd_W1_1;1bf69_W1_1;1c02f_W3_3;1c0de_W1_1;1c1fe_W2_2;1c320_W1_1;1c3a7_W2_2;1c48c_W1_1;1c48e_W1_1;1c578_W1_1;1c6e8_W1_1;1c718_W1_1;1c7c8_W2_2;1c808_W1_1;1c817_W1_1;1c872_W1_1;1c882_W1_1;1c8d4_W1_1;1c90d_W1_1;1c9c7_W1_1;1cad8_W1_1;1cc50_W1_1;1cd4a_W1_1;1ce2e_W1_1;1ce80_W1_1;1cf7c_W1_1;1d188_W1_1;1d207_W4_4;1d23f_W1_1;1d470_W1_1;1d578_W1_1;1d57a_W1_1;1d586_W3_3;1d8a5_W1_1;1db1c_W2_2;1dc1d_W1_1;1dcd4_W1_1;1dd5d_W1_1;1dd8c_W2_2;1df66_W1_1;1e0d0_W1_1;1e478_W1_1;1e4f4_W1_1;1e5b3_W1_1;1e65a_W1_1;1e696_W1_1;1e713_W1_1;1e72a_W1_1;1e755_W1_1;1e808_W1_1;1e836_W1_1;1e845_W2_2;1e854_W1_1;1e8b3_W1_1;1e8bf_W2_2;1e933_W1_1;1e93a_W2_2;1e93c_W4_4;1e9e4_W1_1;1ea60_W1_1;1ea61_W1_1;1ea68_W2_2;1ea7b_W4_4;1eb66_W1_1;1ed67_W1_1"; REMOVE Tfield=Wfield=Xfield=Ifield=Cfield=true;
[ { "docid": "370c1305d39391b7fee3bb23e63a6059", "score": "0.0", "text": "public TFIDF()\n\t{\n\t\tmap = new HashMap<String,Double >();\n\t}", "title": "" } ]
[ { "docid": "328f2651dec8d3cd6872a803ee207f78", "score": "0.57863307", "text": "public static void main(String[] args) {\n String a = \"aafsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43afsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43fsksste95eerwr4434444444444444wjreijreijei5iej5ieuier55i5iiiiririiiriiriii3i3i4i34i34i34i3i43\";\n String x[] = divide(a, a.length() / 10);\n int counter = 0;\n for (int i = 0; i < x.length; i++) {\n //countSubstrings(5);\n }\n\n System.out.println(\"abcdabcdabcdeeee\".length());\n for (String aX : x) {\n System.out.println(aX);\n }\n }", "title": "" }, { "docid": "22612b2f15cde4dab113ff10d67b62d8", "score": "0.5608227", "text": "public static void main(String[] args) throws Exception {\n String t = \"dGMBDFo4MhyGdjDRcT8m7AadaINQf9TFFHUbDLy3UsAy2kLA7a9QZroqhT+hb4+JaVEH7ZoDMh9SWbc0oOuZzn5XVUuxsh7JGhjvv5Faz3iTfFj7YcIAFcKeKPW+R1ruI4eD8cBklGLt2x/9DtprftSsm8eudIaw2xhA3CHuqnoaX9FTTKeZ6Iu9u3DpjepOnodVUfDJITGfUS9/t9Lg7noNDK4PaPdt8bx1I5Ssy/NdpsIjV/6gqNmvuX7JVgmaJC5FNByCYZJsfdkelDdLSVbEo7XbUcfJQoFrz4rb1ASPTwgpxKHbN6hFXviBMziSkzSzMjyop4eNp4IGXiCT5/6vcggn4PIpKPLv3gf8s7RKhyo85y+GAlkDt2D+9AYFwthkN71O3q0pJXLKhTEzt2ryHvWq6mNqEfccQ+L5PyXygB2XD2zNjaR3sBoCl0Jx2kTx2BJqh3aH5Px+4XBORxj3+hyUXk6QM4gpRk4YpvCwO6I+lk/0tpl+FPr7fVK4dBxiMaD8VTF3X9ID0I1zaW1THAUtTTgIgjrZ1N9GVn9zGM7ga8lstN6Uc7x1j/t1CQ2EveHssNjWiHeb/wFyAUprO+AkAcshRF7vhrFpXkszvoT8vCwBa1YkqegmwlDMGHBv1c5fYwHJmXTeqePx2m3kxu+LY2uWd/eN7Wqwv9zks1Om+veQO4c4WLgVSWLM2tJl34Y/UjIfQe1hjPpGZDdEFNcZfmEc9mdh5l9cMuzZr39n\";\n String t2 = \"{\\\"magic_tag\\\":\\\"ss_app_log\\\",\\\"header\\\":{\\\"appkey\\\":\\\"4fd805175270154a3c000005\\\",\\\"openudid\\\":\\\"8202b72baf1161fb\\\",\\\"sdk_version\\\":1,\\\"package\\\":\\\"com.ss.android.article.news\\\",\\\"channel\\\":\\\"sem_baidu_pz\\\",\\\"display_name\\\":\\\"今日头条\\\",\\\"app_version\\\":\\\"6.0.7\\\",\\\"version_code\\\":607,\\\"timezone\\\":8,\\\"access\\\":\\\"wifi\\\",\\\"os\\\":\\\"Android\\\",\\\"os_version\\\":\\\"5.1.1\\\",\\\"os_api\\\":22,\\\"device_model\\\":\\\"MI 4\\\",\\\"device_brand\\\":\\\"Xiaomi\\\",\\\"device_manufacturer\\\":\\\"Xiaomi\\\",\\\"language\\\":\\\"zh\\\",\\\"resolution\\\":\\\"1920x1080\\\",\\\"display_density\\\":\\\"mdpi\\\",\\\"density_dpi\\\":480,\\\"mc\\\":\\\"00:0a:f5:3b:57:fc\\\",\\\"clientudid\\\":\\\"1e0262a7-e1e3-48bc-a914-1889967996d3\\\",\\\"sig_hash\\\":\\\"aea615ab910015038f73c47e45d21466\\\",\\\"aid\\\":13,\\\"push_sdk\\\":[1,2,6,7,8],\\\"rom\\\":\\\"9cab2ed14e\\\",\\\"release_build\\\":\\\"b1b5fb8_20170328\\\",\\\"update_version_code\\\":6075,\\\"manifest_version_code\\\":607,\\\"cpu_abi\\\":\\\"armeabi-v7a\\\",\\\"build_serial\\\":\\\"db0ed5ff\\\"},\\\"_gen_time\\\":1492477149978}\";\n String t3 = \"dGMBDlo4MhyGdjDRgY4m7AdgaINgUShsZFFxW4RzFygOfVrBbaB83dsUYzEPDzvGspacIl79wpd3xMHEUtWUb3VhEzgZE/VQ732FYOCyVEe84k9rI8ikubua2U2b3W++s+IRDFXKTc6Yb/CmFhnpeeeOXb3REG362V9jL+8RJyOsMWufMY/YEnhAhbHIGHI4eq4MkaCJBEZtVOon+ZEzbF+JRF6cas6WqQCTjUPUDcGZlM4ifMwkwCeBkk3QpRZ693ncemx8iuReqC9M2TEt+dvaIoM9zbdb1hWVA+S2ZegXOekCLR/qrF0YeOf9VwhZRxfXBYsojobhG15gBtNXLb5toAr7/qG5dyJ9raFFy8f5101e5rS25w8iJARnlNkRnD5sT/6hQazYUnT2RBJsVsNM0fGTgiIKcmCW9QTx0e2G1p4QZhsjPEtzuU2T+m3HhyRy2bHHbg0iNU1S26jCMn/IHHt0dMaS+NjcXihSKd9pi6eIt7ZjSv/3bRnbatvpxrrQiGB0Vhy0muXvAAI/x1DtE40XUsrREnHm6lQ9dRBoukx38eW/GsMvXJq9FMfJ/2w2GnWeNZypHMDUBxG+5Owq5Tv+D6BWUIi0xroVigjZoEqpQnkFk/ZBY4aU4vkqbKm0JxgULjxQO66Z+SPM6+wozeT6CeoSBLZ/WTrIPlvpmHzB2gCGQgwZGkDh54D6NkWG0uyWL36+tmSPaoHvjrrPBvl+1sPz2hSsjLTuvc+LhreV0VfnrOSDcM9BK3SsegkrbLpOx+S/7ecRHm3+T2d1HdPjexQiLuIWe0/s54JpYyMFXvpSqw2l2ZpzXV3JaPqxG45QvTBF3ZPX48fVnAcFxCrWxvSvdx9Jt+AKWxHvRj+W2U1seuXZrlovddUEa2OZZZ+TSEZFiv8dk5dhOp5HjX6AeMBIIZwyXOnCb39cHUQWqs+I3m8vZWZbJH6U2/eqO3gKWVR4QiSFFw6NX2H7a0uPlEtsdsP2tPp7OMV154QMzyfXVlcuqH8fENW8vFnwQMHaqehdoTyBPLPoASrDEjAH7ikulv9WwAJUaJvzR22bLRzTpJYJXKDametX5MK0+hOj69eArqtBosBLgUAKIGGfzzlT1vJcEAd6y7+eev1HbpcCc+qaPbkw+M6fv93nGPv8m1tTpvo4Gn5BI6ROEK7j4FNmV6dDXKXrv5+5eYHYrtoaR1NUOoIpoORTcdYGSZ4AFbeS/X2ouElUSgEMAKKOpkbr3Y8rK3ouMSyNvCo/9f4q1BMWV/XIS3PvDzGKV94gAQGCQCgBebIQDMJFSC22lOj0RNoHNtqWB5Bkd+GkhezyCmgR/8+v1GBrt036BrRXu7d2Rw3ibmn8HE1ni48JZS0BRHSkf1IMq8iYbYlG4fIWGzHS9pkXGi+fp+09Li8CEQ2EzaBJnrFPwV7kiUDn8pB0tO5Aym7E8biVURrDDRuDn3PP6UygRZpM+Bh30hBCPOysPlJ5hFhgkYLjU7coYqkdNP7h3X/QRWQvhWtWPxpjjfuHJRGSI2zSeyCQahh9W5qlUVD02QY2V/wFkbZPzg1ay/9EVN7aJjFOIeY8by/uI/0WslN1NtrxDAav/hZ8G+ZWqWXOLxRxVgA+ibKLgqtA4za5pjm5aPL8aDRm+WZvPYZ2MMVfXCbsYRyUZg==\";\n\n System.out.println(Encrypt(t2));\n System.out.println(DEncrypt(t));\n System.in.read();\n\t}", "title": "" }, { "docid": "fe96236402d03daf7f841363e9a0437f", "score": "0.54362357", "text": "public static void main(String[] args) {\n\n\n String body = \"<14>2019-09-19 15:42:18 DPTECH %%--DPX/WEB/6/OPERLOG(l): client-type(84):web;user-name(85):admin;host-ip(86):2.74.24.29;error-code(87):0;设置操作日志配置,开启发送到远程IPV4日志主机服务,远程日志主机地址:[2.74.24.29],本机地址:[100.73.26.149], 端口:[5141]。 result: Success.\";\n// System.out.println(body.split(\" \")[5].trim());\n body = \"Jul 5 13:26:44 2009 DPTECH %%UAG/ATTACK/0/DATALOG(l): log-type(1):attack-protect;event(2):block;attack-name(11):(352325536)死亡之Ping;protocol-name(17):(50333952)IP;ip-proto-id(18):1;source-ip(24):192.168.1.154;source-port(25):0;destination-ip(26):192.168.1.254;destination-port(27):0;block-reason(28):ABNORMITY-DETECTION;ifname-inside(29):eth0/2;ifname-outside(30):eth0/2;summary-count(33):1;summary-offset(34):0;\\n\";\n// System.out.println(body.split(\"\\\\%\\\\%\")[1].split(\"\\\\/\")[0]);\n// System.out.println(body.split(\"\\\\%\\\\%\")[1].split(\"\\\\/\")[1]);\n// System.out.println(body.split(\"\\\\%\\\\%\")[1].split(\"\\\\/\")[2]);\n// System.out.println(body.split(\"log-type\")[1].split(\"\\\\:\")[1].split(\";\")[0].trim());\n //System.out.println(body.split(\";\")[4].trim());\n JSONObject obj = new JSONObject();\n syslogParse1(body, obj);\n// System.out.println(obj.toJSONString(2));\n\n String sys = \"<2>2019-09-23 14:58:01 DPTECH %%--DPX/SHRP/2/SYSLOG(l): SHRP status is changed to master from backup because of currnet priority is 110 but neighbor priority is 105!\";\n JSONObject obj1 = JSONUtil.createObj();\n obj1.put(\"syslog\", sys);\n System.out.println(JSONUtil.parseObj(parse(obj1.toString())).toJSONString(2));\n }", "title": "" }, { "docid": "89642cdc0005be839a975f62fa4ba430", "score": "0.53391504", "text": "public static String m7247a(String str) {\n if (TextUtils.isEmpty(str)) {\n return \"\";\n }\n String[] split = str.split(\"&\");\n if (split.length == 0) {\n return \"\";\n }\n String str2 = null;\n String str3 = null;\n String str4 = null;\n String str5 = null;\n for (String str6 : split) {\n if (TextUtils.isEmpty(str2)) {\n str2 = !str6.contains(\"biz_type\") ? null : m7251e(str6);\n }\n if (TextUtils.isEmpty(str3)) {\n str3 = !str6.contains(\"biz_no\") ? null : m7251e(str6);\n }\n if (TextUtils.isEmpty(str4)) {\n str4 = (!str6.contains(C1572c.f7089H) || str6.startsWith(C1572c.f7088G)) ? null : m7251e(str6);\n }\n if (TextUtils.isEmpty(str5)) {\n str5 = !str6.contains(\"app_userid\") ? null : m7251e(str6);\n }\n }\n StringBuilder sb = new StringBuilder();\n if (!TextUtils.isEmpty(str2)) {\n sb.append(\"biz_type=\" + str2 + C1628h.f7365b);\n }\n if (!TextUtils.isEmpty(str3)) {\n sb.append(\"biz_no=\" + str3 + C1628h.f7365b);\n }\n if (!TextUtils.isEmpty(str4)) {\n sb.append(\"trade_no=\" + str4 + C1628h.f7365b);\n }\n if (!TextUtils.isEmpty(str5)) {\n sb.append(\"app_userid=\" + str5 + C1628h.f7365b);\n }\n String sb2 = sb.toString();\n return sb2.endsWith(C1628h.f7365b) ? sb2.substring(0, sb2.length() - 1) : sb2;\n }", "title": "" }, { "docid": "d79a015384969d694b739f2ef93ca17c", "score": "0.5160224", "text": "public static void main(String[] args) throws Exception {\n\n String msg = \"MSH|^~\\\\&|OTHER_KIOSK|HIMSSSANDIEGO|EHR_MISYS|MISYS|20060821150004-0500||RSP^K22|115619040409488ibmod|P|2.5||1940933422:1156190185984|\\r\" +\n \"MSA|AA|PDQ_6|\\r\" +\n \"QAK|QRY_PDQ_0|OK|\\r\" +\n \"QPD|QRY_PDQ_1001^Query By Name^IHEDEMO|QRY_PDQ_0|@PID.5.2^JO*\\r\" +\n \"PID|||JD12294^^^HIMSS2005&1.3.6.1.4.1.21367.2005.1.1&ISO||Doe^John||||||900 Main St^^Green Bay^WI^23221||^PRN^PH|\\r\" +\n \"QRI|174.0\\r\" +\n \"PID|||12345678^^^HIMSS2005&1.3.6.1.4.1.21367.2005.1.1&ISO||DePinto^Joe^V^Jr|Wang|19580325|M|||||^PRN^PH^^^716^3856235|\\r\" +\n \"QRI|174.0\\r\" +\n \"PID|||12345679^^^HIMSS2005&1.3.6.1.4.1.21367.2005.1.1&ISO||DePinto^Joe^V^Jr|Wang|19580325|M|||||^PRN^PH^^^716^3856235|\\r\" +\n \"QRI|174.0\\r\" +\n \"DSC|2058980185:1156190210438|I|\";\n PipeParser pipeParser = new HL7Parser();\n try {\n Message message = pipeParser.parse(msg);\n if (message instanceof QBP_Q21) {\n System.out.println(\"Type= QBP_Q21\");\n } else {\n System.out.println(\"Not QBP_Q21\");\n }\n Terser in = new Terser(message);\n RSP_K21 outMessage = new RSP_K21();\n Terser out = new Terser(outMessage);\n MSH msh = outMessage.getMSH();\n // MSH-1\n msh.getFieldSeparator().setValue(\"|\");\n // MSH-2\n msh.getEncodingCharacters().setValue(\"^~\\\\&\");\n // MSH-3\n HD hd = msh.getSendingApplication();\n hd.getNamespaceID().setValue( \"Sendapp\" );\n\n // MSH-11\n msh.getProcessingID().getProcessingID().setValue(\"P\");\n // MSH-12\n msh.getVersionID().getVersionID().setValue(\"2.5\");\n\n RSP_K21_QUERY_RESPONSE qr = outMessage.getQUERY_RESPONSE();\n// PID pid = qr.getPID();\n// XPN pn = pid.getPatientName(0);\n// pn.getFamilyName().getSurname().setValue(\"Pin\");\n// pn.getGivenName().setValue(\"John\");\n\n String pidName = qr.add(PID.class, false, true);\n PID pid2 = (PID)qr.get( pidName );\n pid2.getPatientName(0).getGivenName().setValue(\"FirstName2\");\n\n Structure s = qr.get(\"PID2\");\n\n// PID pid = (PID)out.getSegment(\"/.PID\");\n// out.set(pid, 1, 0, 1, 1, \"happy\");\n// PID pid2 = (PID)out.getSegment(\"/.PID(1)\");\n// out.set(pid2, 1, 0, 1, 1, \"happy2\");\n\n\n\n HL7Util.echoQPD(out, in);\n\n // String ret= pipeParser.encode( (PID)out.getSegment(\"PID\"), new EncodingCharacters('|', \"^~\\\\&\" ) );\n String ret= pipeParser.encode( outMessage );\n System.out.println(\" ret\" + ret);\n\n// PdSupplier.PdSupplierHandler handler = new PdQueryHandler(null, null);\n// handler.processMessage( message );\n//\n// handler.processMessage( message );\n\n } catch (HL7Exception e) {\n e.printStackTrace();\n }\n// catch (ApplicationException e) {\n// e.printStackTrace();\n// }\n\n\n }", "title": "" }, { "docid": "bbf41f4deb7e1dfe7dc5463d7f8a4a85", "score": "0.49287012", "text": "static void storeFixFieldsIntoMap () {\n\t\t\tString outGoingMsg = \"8=FIX.4.2|9=178|35=AE|56=LSEHub|49=BROKERX|128=LSETR|34=2175|52=20120126-15:15:54|918=GBP|31=89.0000000|64=20120126|828=1|60=20120126-13:32:49|32=6|22=4|571=124|43=N|570=N|150=0|48=GB0007188757|10=206|\";\n\t\t\tString incomingMsg = \"8=FIX.4.2|9=112|35=AR|49=LSEHub|56=BROKERX|115=LSETR|34=2006|52=20120126-15:15:54|370=20120126-15:15:54.822|571=124|150=0|939=0|10=059|\";\n\t\t\t\n\t\t\t\n\t\t\tHashMap<String, String> hm = new HashMap <> ();\n\t\t\t\n\t\t\tString [] temp = outGoingMsg.split(\"\\\\|\");\n\t\t\tint len = temp.length;\n\t\t\tSystem.out.println(\"Array Length is: \" + len); // 201 ??\n\t\t\t//System.out.println(temp[1]);\n\t\t\tfor (int i = 0; i < len ; i ++) {\n\t\t\t\t\n\t\t\t\t// temp[i] to be splited with:\n\t\t\t\tString [] temp2 = temp[i].split(\"=\");\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"temp2 [0]: \" + temp2[0]); // key\n\t\t\t\tSystem.out.println(\"temp2 [1]: \" + temp2[1]); // value\n\t\t\t\t\n\t\t\t\t// store key , value paire into hashmap\n\t\t\t\thm.put(temp2[0], temp2[1]);\n\t\t\t\t\n\t\t\t\t//System.out.println(temp[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"hashmap output: \" + hm);\n\t\t\t\n\t\t\t// *********** validate Fix Value by Field **************** //\n\t\t\tSystem.out.println(XpathPaserDemo.checkOutPut(\"AE\", hm.get(\"35\"), \"35\")); // true\n\t\t\tSystem.out.println(\"35 tag value = : \" + hm.get(\"35\")); // AE\n\t\t\t\n\t\t\tSystem.out.println(XpathPaserDemo.checkOutPut(\"178\", hm.get(\"9\"), \"9\")); // true\n\t\t\tSystem.out.println(\"9 tag value = : \" + hm.get(\"9\")); // 178\n\t\t\t\n\t\t}", "title": "" }, { "docid": "67d3724f77e2699d5a80a7d41fcbde04", "score": "0.49071085", "text": "public final void run() {\n /*\n r6 = this;\n java.lang.String r0 = \"\"\n java.lang.String r1 = \"\"\n java.lang.String r2 = r1 // Catch:{ Throwable -> 0x0015 }\n java.lang.String r3 = \" \"\n java.lang.String r4 = \"_\"\n java.lang.String r2 = r2.replace(r3, r4) // Catch:{ Throwable -> 0x0015 }\n java.lang.String r3 = \"UTF-8\"\n java.lang.String r2 = java.net.URLEncoder.encode(r2, r3) // Catch:{ Throwable -> 0x0015 }\n r0 = r2\n L_0x0015:\n java.lang.String r2 = r2 // Catch:{ Throwable -> 0x0026 }\n java.lang.String r3 = \" \"\n java.lang.String r4 = \"_\"\n java.lang.String r2 = r2.replace(r3, r4) // Catch:{ Throwable -> 0x0026 }\n java.lang.String r3 = \"UTF-8\"\n java.lang.String r2 = java.net.URLEncoder.encode(r2, r3) // Catch:{ Throwable -> 0x0026 }\n r1 = r2\n L_0x0026:\n java.lang.String r2 = \"https://admin.appnext.com/tp12.aspx?tid=%s&vid=%s&osid=%s&auid=%s&session_id=%s&pid=%s&ref=%s&ads_type=%s&bid=%s&cid=%s\"\n r3 = 10\n java.lang.Object[] r3 = new java.lang.Object[r3]\n r4 = 0\n java.lang.String r5 = r3\n r3[r4] = r5\n r4 = 1\n java.lang.String r5 = r4\n r3[r4] = r5\n r4 = 2\n java.lang.String r5 = \"100\"\n r3[r4] = r5\n r4 = 3\n java.lang.String r5 = r5\n r3[r4] = r5\n r4 = 4\n r3[r4] = r0\n r0 = 5\n java.lang.String r4 = r6\n r3[r0] = r4\n r0 = 6\n r3[r0] = r1\n r0 = 7\n java.lang.String r1 = r7\n r3[r0] = r1\n r0 = 8\n java.lang.String r1 = r8\n java.lang.String r4 = \"\"\n boolean r1 = r1.equals(r4)\n if (r1 == 0) goto L_0x005f\n java.lang.String r1 = \"0\"\n goto L_0x0061\n L_0x005f:\n java.lang.String r1 = r8\n L_0x0061:\n r3[r0] = r1\n r0 = 9\n java.lang.String r1 = r9\n java.lang.String r4 = \"\"\n boolean r1 = r1.equals(r4)\n if (r1 == 0) goto L_0x0072\n java.lang.String r1 = \"0\"\n goto L_0x0074\n L_0x0072:\n java.lang.String r1 = r9\n L_0x0074:\n r3[r0] = r1\n java.lang.String r0 = java.lang.String.format(r2, r3)\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0089 }\n java.lang.String r2 = \"report: \"\n r1.<init>(r2) // Catch:{ Throwable -> 0x0089 }\n r1.append(r0) // Catch:{ Throwable -> 0x0089 }\n r1 = 0\n com.appnext.core.C1326f.m5659a(r0, r1) // Catch:{ Throwable -> 0x0089 }\n return\n L_0x0089:\n r0 = move-exception\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n java.lang.String r2 = \"report error: \"\n r1.<init>(r2)\n java.lang.String r0 = r0.getMessage()\n r1.append(r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.appnext.core.C1326f.C13282.run():void\");\n }", "title": "" }, { "docid": "ba1efe586bb00710efe90848e1498eae", "score": "0.49060047", "text": "public static void main(String[] args){\n String str = \"Foods similar to pizza have been made since the neolithic age. Records of people adding other ingredients to bread to make it more flavorful can be found throughout ancient history. The ancient Greeks supplemented their bread with oils, herbs and cheese, or hops, [14][15] and in the 6th century BC, the soldiers in Persian King Darius I's armies baked flatbreads with cheese and dates on top of their battle shields.[16][17] An early reference to a pizza-like food occurs in the Aeneid, when Celaeno, queen of the Harpies, foretells that the Trojans would not find peace until they are forced by hunger to eat their tables (Book III). In Book VII, Aeneas and his men are served a meal that includes round cakes (like pita bread) topped with cooked vegetables. When they eat the bread, they realize that these are the \\\"tables\\\" prophesied by Celaeno.[18] Modern pizza evolved from similar flatbread dishes in Naples, Italy in the 18th or early 19th century.[19] Jeyoun is considered to be the earliest form of modern pizza, which is very similar to contemporary Neapolitan pizza but with hops added as a supplementary ingredient in the dough.[15] Prior to that time, flatbread was often topped with ingredients such as garlic, salt, lard, cheese, and basil. It is uncertain when tomatoes were first added and there are many conflicting claims.[19] Until about 1830, pizza was sold from open-air stands and out of pizza bakeries, and pizzerias keep this old tradition alive today.A popular contemporary legend holds that the archetypal pizza, pizza Margherita, was invented in 1889, when the Royal Palace of Capodimonte commissioned the Neapolitan pizzaiolo (pizza maker) Raffaele Esposito to create a pizza in honor of the visiting Queen Margherita. Of the three different pizzas he created, the Queen strongly preferred a pizza swathed in the colors of the Italian flag: red (tomato), green (basil), and white (mozzarella). Supposedly, this kind of pizza was then named after the Queen,[20] although recent research casts doubt on this legend.[21]Pizza was brought to the United States with Italian immigrants in the late nineteenth century,[22] and first appeared in areas where Italian immigrants concentrated. The country's first pizzeria, Lombardi's, opened in 1905.[23] Following World War II, veterans returning from the Italian Campaign after being introduced to Italy's native cuisine proved a ready market for pizza in particular.[24] Since then pizza consumption has exploded in the U.S.[25] Pizza chains such as Domino's, Pizza Hut, and Papa John's, pizzas from take and bake pizzerias, and chilled or frozen pizzas from supermarkets make pizza readily available nationwide. It is so ubiquitous, thirteen percent of the U.S. population consumes pizza on any given day.[26]\";\n }", "title": "" }, { "docid": "8a1084502b759db0a8e68fadffc42d85", "score": "0.48330203", "text": "protected void parseInfo(String data){\n String [] info = data.split(\";\");\n this.name = info[0];\n this.patient_pos = info[1];\n for (int i = 2; i < info.length; i += 2) {\n this.tasks.add(info[i]);\n this.times.add(info[i+1]);\n }\n }", "title": "" }, { "docid": "b3120f5055930d6e5fe1b47f65c282df", "score": "0.4807813", "text": "private List<String> parseRecord(String record) {\n List<String> parsedRecord = new ArrayList<>();\n String subRecord = \"\";\n int idxEnd;\n\n subRecord = record.replace(\"(\", \"\").trim();\n\n // [0] Starts\n idxEnd = subRecord.indexOf(\"sts\");\n parsedRecord.add(subRecord.substring(0, idxEnd));\n subRecord = subRecord.substring(idxEnd+4);\n\n // [1] Wins\n idxEnd = subRecord.indexOf(\"w\");\n parsedRecord.add(subRecord.substring(0, idxEnd));\n subRecord = subRecord.substring(idxEnd+2);\n\n // [2] Places\n idxEnd = subRecord.indexOf(\"p\");\n parsedRecord.add(subRecord.substring(0, idxEnd));\n subRecord = subRecord.substring(idxEnd+2);\n\n // [3] Shows\n idxEnd = subRecord.indexOf(\"s\");\n parsedRecord.add(subRecord.substring(0, idxEnd));\n subRecord = subRecord.substring(idxEnd+2);\n\n // [4] Earnings\n idxEnd = subRecord.indexOf(\")\");\n parsedRecord.add(subRecord.substring(0, idxEnd));\n\n return parsedRecord;\n }", "title": "" }, { "docid": "9ddc7c96241a0f52bb337bace17ad504", "score": "0.4781623", "text": "private void parseStrings() {\n Log.d(\"RECEIVED\", receivedString);\n\n String[] parsedArray;\n parsedArray = receivedString.split(\"#\");\n drinkNameString = parsedArray[0];\n drinkRecipeString = parsedArray[1];\n String[] tempName, tempRecipe;\n\n /* Count number of drinks */\n int drinkCount = 0;\n for (int i = 0; i < drinkNameString.length(); i++) {\n if (drinkNameString.charAt(i) == '%') {\n drinkCount++;\n }\n }\n \n tempName = drinkNameString.split(\"%\");\n tempRecipe = drinkRecipeString.split(\"%\");\n for (int k = 0; k < drinkCount; k++) {\n drinks.add(tempName[k]);\n drinkLibrary.add(tempName[k]);\n filteredLibrary.add(tempName[k]);\n recipes.add(tempRecipe[k]);\n }\n\n drinkAdapter = new ArrayAdapter<>(this, R.layout.listview_text_white, R.id.list_content, drinkLibrary);\n filteredAdapter = new ArrayAdapter<>(this, R.layout.listview_text_white, R.id.list_content, drinkLibrary);\n\n drinkList.setAdapter(drinkAdapter);\n drinkList.setOnItemClickListener(this);\n }", "title": "" }, { "docid": "ebd152b9b663020d158cfd3b6a212899", "score": "0.4776646", "text": "public static void main(String[] args) {\n\t\tString currentTime4 =\"23 23 02 FE 4C 43 30 32 53 36 34 52 37 48 31 30 30 30 31 34 39 01 02 23 11 07 1D 0D 39 09 01 01 03 01 00 96 00 00 0A 12 19 F5 27 59 22 01 2E 04 A2 02 00 02 02 01 01 56 50 87 4F DD 54 19 C3 27 30 02 01 55 50 87 4A B2 54 19 C3 27 31 05 00 06 D0 EC 56 01 5A 01 E5 06 01 42 0C C1 01 08 0C B0 01 01 4C 01 02 4A 07 00 00 00 00 00 00 00 00 00 08 01 01 19 F5 27 59 00 CC 00 01 C8 0C BA 0C BB 0C BB 0C B9 0C BB 0C BB 0C B9 0C B0 0C B9 0C B7 0C B8 0C B8 0C B7 0C B7 0C B7 0C B7 0C B8 0C B7 0C B7 0C BA 0C B5 0C B7 0C B8 0C BA 0C B8 0C B9 0C BB 0C B8 0C B6 0C B8 0C B8 0C B7 0C B7 0C BB 0C B8 0C B3 0C BB 0C B8 0C BA 0C BC 0C BB 0C B9 0C BC 0C BD 0C BF 0C BC 0C BD 0C BF 0C BC 0C BA 0C BB 0C BC 0C BC 0C BC 0C BC 0C BA 0C BC 0C BC 0C BC 0C BE 0C BC 0C BC 0C BB 0C BD 0C BD 0C C1 0C BD 0C BE 0C BE 0C BD 0C BD 0C C1 0C BD 0C C1 0C C0 0C BD 0C BF 0C BD 0C B7 0C B9 0C BA 0C B7 0C BA 0C B9 0C B7 0C BA 0C BC 0C B8 0C BA 0C BA 0C B8 0C BA 0C B5 0C B8 0C B7 0C B8 0C B8 0C B8 0C B7 0C B8 0C B6 0C B7 0C B9 0C BA 0C B7 0C B9 0C B8 0C BB 0C B9 0C BB 0C BB 0C B9 0C BA 0C BB 0C B9 0C BA 0C B9 0C B8 0C B7 0C B6 0C B8 0C BB 0C BA 0C BB 0C BA 0C B9 0C BB 0C BB 0C BB 0C BB 0C BC 0C BB 0C BA 0C B4 0C BA 0C BA 0C BD 0C BB 0C BA 0C B9 0C BB 0C BA 0C BD 0C BD 0C BA 0C BB 0C B7 0C BA 0C BA 0C B1 0C BA 0C BD 0C BB 0C BA 0C BD 0C BA 0C BA 0C BC 0C BD 0C BA 0C BC 0C BB 0C BA 0C BC 0C BB 0C BA 0C BA 0C BC 0C B9 0C B9 0C BB 0C B9 0C B6 0C B8 0C B9 0C BA 0C B8 0C B9 0C B6 0C B9 0C B9 0C B2 0C B8 0C B8 0C B9 0C BA 0C B8 0C B8 0C B5 0C B8 0C B8 0C BD 0C BB 0C BB 0C B9 0C BB 0C BC 0C B1 0C BA 0C BA 09 01 01 00 2A 4C 4A 4C 4C 4B 4C 4C 4B 4C 4C 4A 4C 4B 4A 4B 4B 4A 4B 4B 4A 4B 4B 4A 4B 4B 4A 4B 4B 4A 4B 4C 4B 4C 4C 4A 4C 4C 4B 4C 4C 4B 4C 23\"; \r\n\t\tString currentTime1 =\"23 23 02 FE 4C 43 30 32 53 36 34 52 37 48 31 30 30 30 31 34 39 01 00 81 11 07 1D 0E 3A 1B 01 02 01 01 00 00 00 00 0A 22 1A 7E 25 DA 28 01 00 07 B2 00 00 05 00 06 D0 D2 4A 01 59 FF 9C 06 01 00 FF FF 01 00 FF FF 01 00 FF 01 00 FF 07 00 00 00 00 00 00 00 00 00 08 01 01 1A 7E 25 DA 00 CC 00 C9 04 0C FB 0C FB 0C FA 0C FB 09 01 01 00 2A 4C 4B 4C 4C 4C 4C 4C 4C 4D 4C 4B 4C 4C 4B 4C 4B 4B 4C 4C 4B 4C 4C 4B 4C 4B 4B 4C 4C 4B 4C 4C 4C 4C 4C 4B 4C 4D 4C 4D 4C 4C 4C FF \";\r\n\t\tString currentTime3 = \"23 23 02 FE 4C 41 39 35 43 38 36 48 30 46 31 4C 43 30 30 30 31 01 02 25 11 07 18 0D 09 1C 01 01 03 01 00 00 00 01 83 B9 15 B8 27 39 5B 01 00 0C 04 00 0002 01 01 01 53 4E 20 4E 20 64 15 E0 27 10 05 00 06 D0 F5 BD 01 5A 0A 00 06 01 A1 0C FB 01 6E 0C CC 01 46 4A 01 1D 44 07 03 00 00 00 01 00 00 00 00 08 01 01 15\"+ \r\n\t\t\t\t\"B8 27 39 00 A8 00 01 A8 0C F5 0C F8 0C F8 0C F7 0C F5 0C F4 0C F3 0C F4 0C F5 0C F8 0C F8 0C F7 0C F8 0C F0 0C ED 0C ED 0C EE 0C EB 0C ED 0C EB 0C EE 0C ED 0C \"+\r\n\t\t\t\t\"EB 0C F5 0C F9 0C F9 0C F9 0C F9 0C F9 0C F4 0C F5 0C F8 0C F8 0C F7 0C F9 0C F9 0C F5 0C F7 0C F8 0C F9 0C F8 0C F7 0C F7 0C F0 0C F0 0C F8 0C F7 0C F9 0C F8 \"+\r\n\t\t\t\t\"0C F7 0C EE 0C EE 0C ED 0C EE 0C EE 0C F0 0C F0 0C ED 0C EE 0C EE 0C F1 0C F1 0C EE 0C F0 0C F1 0C F1 0C F0 0C F0 0C F1 0C ED 0C F7 0C F8 0C F9 0C F5 0C F9 0C\"+\r\n\t\t\t\t\"FA 0C F2 0C F4 0C F7 0C F8 0C F9 0C F7 0C F9 0C F5 0C F4 0C F8 0C F7 0C F8 0C F8 0C F8 0C EF 0C F3 0C F8 0C F7 0C F9 0C F8 0C F8 0C F4 0C F4 0C F6 0C F6 0C F6 \"+\r\n\t\t\t\t\"0C F7 0C F4 0C F6 0C F4 0C F3 0C F4 0C F0 0C CC 0C F0 0C F1 0C F0 0C F0 0C F0 0C F0 0C F0 0C F7 0C F8 0C F5 0C F9 0C F8 0C F7 0C F3 0C F3 0C F8 0C F8 0C F8 0C \"+\r\n\t\t\t\t\"F8 0C F7 0C F5 0C F7 0C F9 0C F8 0C F8 0C F8 0C F8 0C F2 0C F3 0C F8 0C F8 0C F7 0C F8 0C F8 0C F7 0C F3 0C F0 0C F0 0C EE 0C F0 0C E5 0C EE 0C F0 0C F1 0C EE \"+\r\n\t\t\t\t\"0C F8 0C F9 0C F8 0C F9 0C F8 0C FB 0C F2 0C F7 0C F8 0C F7 0C F8 0C F8 0C F5 09 01 01 00 78 47 46 45 45 46 47 47 49 49 47 46 46 46 47 47 47 46 45 45 45 46 46 \"+\r\n\t\t\t\t\"46 46 46 46 45 45 44 45 46 46 45 45 47 47 46 45 45 45 46 46 46 47 46 46 46 46 47 47 49 48 47 46 46 46 46 47 47 48 48 47 47 46 46 46 46 46 48 4A 46 46 46 46 46 \"+\r\n\t\t\t\t\"46 47 46 45 46 46 46 46 46 46 45 45 45 46 46 45 45 46 45 46 45 45 44 46 46 46 46 47 46 47 46 45 46 47 47 47 47 46 45 45 47 46 47 48 48 34\";\r\n\t\t\r\n\t\tTb_alert ta = new Tb_alert();\r\n\t\tta.analysis(currentTime4);\r\n\t\tta.insert();\r\n\t\tSystem.out.println(\"tb_alert执行完毕\");\r\n\t}", "title": "" }, { "docid": "0156bbcd105e64be79d69f14185a4285", "score": "0.4776477", "text": "public static void main(String[] args) throws Exception {\n\t\tSystem.setIn(new FileInputStream(\"res/input4.txt\"));\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint T = Integer.parseInt(br.readLine());\n\t\tfor(int tc=1; tc<=T; tc++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(), \" \"); \n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//String[] ws = book.toLowerCase().split(\" \");//띄어쓰기 기준으로 나누어 배열에 저장\n\t\t\t\n\t\t\t//int N = sents.length;\n\t\t\t//String[] ws = new String[N];\n\t\t\t\n\t\t\t//int[] count = new int[1000];//\n\t\t\t//String[] string = new String[1000];\n\t\t\t\n\t\t\t//String[] ws = new String[1000];//\n\t\t\tArrayList<String> ws = new ArrayList<>();\n\t\t\t//n=0;\n\t\t\t\n\t\t\twhile(st.hasMoreTokens()) {\n\t\t\t\tws.add(st.nextToken().toLowerCase()); //ws에 저장\n\t/*\t\t\tflag = false;\n\t\t\t\tfor(int j=0; j<n; j++) {\n\t\t\t\t\tif(ws[n].equals(ws[j])) { //이전에 나온것과 일치하는게 있다면\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\tcount[index]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!flag) { //이전에 나온것과 일치하는게 없다면\n\t\t\t\t\tindex++;\n\t\t\t\t\tstring[index] = ws[n];\n\t\t\t\t}*/\n\t\t\t\t//n++;\n\t\t\t}\n\t\t\t\n\t\t\t//index = -1;\n\t\t\tint[] count = new int[ws.size()];//string의 빈도 체크\n\t\t\t//ArrayList<Integer> count = new ArrayList<>();\n\t\t\t//String[] string = new String[ws.size()];\n\t\t\tArrayList<String> string = new ArrayList<>();\n\t\t\t//string.add(ws.get(0));\n\t\t\tfor(int i=0; i<ws.size(); i++) {\n\t\t\t\tflag = false;\n\t\t\t\tfor(int j=0; j<string.size(); j++) {\n\t\t\t\t\tif(ws.get(i).equals(string.get(j))) { //이전에 나온것과 일치하는게 있다면\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\tcount[j]++;\n\t\t\t\t\t\t//count.get(index)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!flag) { //이전에 나온것과 일치하는게 없다면(처음)\n\t\t\t\t\t//index++;\n\t\t\t\t\tstring.add(ws.get(i));\n\t\t\t\t}\n\t\t\t}\n\t/*\t\tfor(int i=0; i<ws.length; i++) {\n\t\t\t\tfor(int j=i+1; j<ws.length; j++) {\n\t\t\t\t\tif(ws[i].equals(ws[j])) {\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\tint max = 0;\n\t\t\tfor(int i=0; i<ws.size(); i++) {\n\t\t\t\tif(count[i]>count[max]) max = i; //가장 큰 인덱스 구함\n\t\t\t}\n\t\t\t//int[] intst = new int[ws.size()];\n\t\t\t//ArrayList<Integer> mxs = new ArrayList<>();\n\t\t\tArrayList<String> mxs2 = new ArrayList<>();\n\t\t\tfor(int i=0; i<ws.size(); i++) {\n\t\t\t\tif(count[i]==count[max]) {\n\t\t\t\t\t//mxs.add(string[i].toCharArray()); //가장 큰 인덱스 구함\n\t/*\t\t\t\tfor(int j=0;j<string[i].length(); j++) {\n\t\t\t\t\t\t//string[i].charAt(j)-'a';\n\t\t\t\t\t}*/\n\t\t\t\t\tmxs2.add(string.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Collections.sort(mxs);\n\t\t\t//Arrays.sort(mxs);\n\t/*\t\tCollections.sort(mxs, new Comparator<char[]>() {\n\t\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(char[] o1, char[] o2) {\n\t\t\t\t\treturn Integer.compare(o1-'a', o2-'a');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});*/\n\t/*\t\tCollections.sort(mxs2, new Comparator<String>() {\n\t\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\t\treturn Character.compare(o1.charAt(0), o2.charAt(0));\n\t\t\t\t}\n\t\t\t});*/\n\t\t\tCollections.sort(mxs2);\n\t\t\t//System.out.println(mxs2.size());\n\t\t\t//for(int i=0; i<mxs2.size(); i++) System.out.println(mxs2.get(i));\n\t\t\tsb.append(mxs2.get(0)).append(\"\\n\");//return mxs2.get(0);\n\t\t\t//return string[1];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t////예시답안\n/*\t\t\tTreeMap<String, Integer> map = new TreeMap<>(); //정렬까지 한번에\n\t\t\twhile(st.hasMoreTokens()) {\n\t\t\t\tString word = st.nextToken().toLowerCase();\n\t\t\t\tif(map.containsKey(word)) {\n\t\t\t\t\tmap.put(word, map.get(word)+1);\n\t\t\t\t}else {\n\t\t\t\t\tmap.put(word, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint maxx = 0;\n\t\t\tString ans = \"\";\n\t\t\tfor(String key:map.keySet()) {\n\t\t\t\tif(maxx < map.get(key)) {\n\t\t\t\t\tmaxx = map.get(key);\n\t\t\t\t\tans = key;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(ans).append(\"\\n\");*/\n\t\t\t//\n\t\t\t\n\t\t}\n\t\tSystem.out.println(sb);\n\t}", "title": "" }, { "docid": "b3466d15a53756573de3bed33897280f", "score": "0.47757298", "text": "private void seperateAndSetDataFromTokenizedString(String data)\n {\n //check that there is data to set\n if (data.length() > 0)\n {\n //split the data based on the delimiter\n String[] seperatedTokenizedString = data.split(\"\\\\|\");\n\n setBeanTemp(seperatedTokenizedString[1]);\n setEnvironmentTemp(seperatedTokenizedString[2]);\n setBeanRateOfRise(seperatedTokenizedString[3]);\n setEnvironmentRateOfRise(seperatedTokenizedString[4]);\n setRoastTime(seperatedTokenizedString[5]);\n setDevelopmentPercentage(seperatedTokenizedString[6]);\n setDevelopmentTime(seperatedTokenizedString[7]);\n setTurnPointTime(seperatedTokenizedString[8]);\n setTurnPointTemp(seperatedTokenizedString[9]);\n setFirstCrackTime(seperatedTokenizedString[10]);\n setFirstCrackTemp(seperatedTokenizedString[11]);\n setFullGas(seperatedTokenizedString[12]);\n setFanSpeed(seperatedTokenizedString[13]);\n setDrumSpeed(seperatedTokenizedString[14]);\n\n }\n }", "title": "" }, { "docid": "3d3eb38edbe0728661cda0dadbd3424e", "score": "0.47695577", "text": "private void m16453t(String str) {\n if (str != null) {\n try {\n JSONArray jSONArray = new JSONArray(str);\n int length = jSONArray.length();\n for (int i = 0; i < length; i++) {\n ProcessPushModel gVar = new ProcessPushModel();\n JSONObject optJSONObject = jSONArray.optJSONObject(i);\n gVar.f15063a = optJSONObject.optString(\"action\");\n gVar.f15064b = optJSONObject.optString(NotificationCompat.CATEGORY_SERVICE);\n gVar.f15065c = optJSONObject.optString(EnvConsts.PACKAGE_MANAGER_SRVNAME);\n gVar.f15066d = optJSONObject.optInt(\"wakeup_interval\");\n this.f15122l.add(gVar);\n }\n ProcessPushHelper.m16399a().mo25428b();\n } catch (Throwable th) {\n th.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "4fd84f289b1e9de5e1296d633c04aec7", "score": "0.4719525", "text": "private static List<byte[]> m1597a(String[] strArr) {\n ArrayList arrayList = new ArrayList();\n for (String str : strArr) {\n arrayList.add(Base64.decode(str, 0));\n }\n return arrayList;\n }", "title": "" }, { "docid": "d856a846876a3a8f7806749c794d0282", "score": "0.46806887", "text": "private static void getBuilderData() {\r\n/*V1.1\r\n**start of data**\r\n\tD0CB838494G88G88GF8FBB0B6GGGGGGGGGGGG8CGGGE2F5E9ECE4E5F2A0E4E1F4E16DBD8BF8D45519C8030B9AB55628A0342694ED2A5126B53558323B314BD634F49BD32C58469ADB2C6846B6EE51C51B6E5E3CA041GC102E2C1890A92B4443CF898021097A492A0A4A18489101B4C4D4C10F9E566A619C0827B1FF36EFF6E1DBBF7B2A13B716BFE3BFC5F4F1D731F7FBF7F633C7E7338B7C25E66084C5434BCC1C84D9414FF3BD385E166D502D0FC3DD3C65C1EED715902665F9600354256\r\n\t7E8CF856C3DE4A376233F305370EE7C13A835231F744E73F853F57891B0E37FB61C7GB94510777CE78BDE9FDDCE4AB9143302263F5714834F55G1D00A34F28EDC47E23CD9B94FC0802C7C8CD9384390050BC5B34C941A583CD96600A81EA8B98FD87BC1982D3AA76A8F49DB7C58ACB9FF5272DA265E84AC4182B70A6AA4FFC613554295B092C5547F3941E8D10EE82A046278B0D439B61D95954EB7E2C3B4BAA97D96D22D92A28E86996EDD2136810ECC246C7043F0D7AB39DE0817006D1DC350314D98F3FBB81\r\n\t3C9FA1DEF2927CC2781D841071B15A31EFDB2522E77B459F888BCB6D99EB82583169E326FF6D472A9D2673CF253DCDFDDEA9925FCE023C59GF3G92GD2GB69546E7EF24F5DD537991BC2B3A649A275D6EF4D439DC55B6137B0853A45960F7C58564A838E6295B69B689822B4F3C6305867A0C860C6F3DAB66E3BE09AC433A0DEA3ECFC8387F56349586BEC9083C18D6DE48FC51D8287A0449BE9DD0362D50376D794ABEA9E8E5079CFDBCBD53C0F6445E4753A7A96504EBE4AFA8A4F57DGED83B170BBD57185\r\n\t437F1862F3F728F8568E6BA91E248BA0AFF487360D765528CBE346ACA13764B6C3BFCC7BF1E8DA728E26C3D611DE173ABED2F6F991135940F5F1D3FC1C864FF469256D1424ED1FC0BBAA094FE66D2B2E1B744B0C72786CFC00BDGCDGAE00D00008F2ECE3211D1F0C310DB509EE393A5FEAB3C9EE01715609EF42D3724AEE31416111C5C73754A63A2DE217CD72888A4DD11178204B072F05367DEE10F1C8F2C8EED136BA9DD03AE817E4496DE1B49D62DAC26316E8EE2B55AE01G3BCB40F2CD62BAE2336811CF\r\n\t38CC22AC2994AC5FA612BA99905B20C4A8GFEB33F38CD44DF31E07FA200A55C8F4F51728ECBEE98AEAAAA9A1D4E5EFED7AB31C45833137A1F0E9DA9C01F3793FD6C1088EE985261BB311CF73B5E5014D3EB6DA66A0B6EA16CE3F3E95B09847AD800C5BB316D7C219D5BCE6D2AFB054247EFB1ECBBF9150F27A76FD45A4EAEFD9F1ACF4BA67A95C3DE53AE9C5F0FBA5A094DBB0D7B91C2E410FC04C5BABAA643CCE5E48661CD9FC379D826B64D7C1D50C36CF301DD21GD13B5067273A72D99B2E96BD92365AE3EE\r\n\tE8F012C92D812667613EB0F81E82B884F0846098E943GE600960063G3B81BE85B8A11091C6906CG278136D1F9023099E0874047GE4DEA673AA69C76FD399023097E03F22F78940BE008FG568354G3C83D086D0C77466BE74D25D6601DDC9GF93B6333AB81CCG21GB1G89G99FB62338B81DA810681E683ACGD88A3069D318FB81ECG61GF381968364D444E71783F4G04GC481AC84C881583AB7BE3B91C0861889B08FA089A02F9264D7E29B6AF39EC88BDEEFEB957F2CD77C723602FFC7715996\r\n\t45C79FA83EDC2D78F007623F9245AF2BB5F530D7715FFE45D7B50A5F8EE964E2BD9ED76A906B6D14D2EFFABD313EB1ED9FE33B7CFF786F81EBCB992E3134A5529636A8753EDDE06DE135D27F248D11F6C35A8CE99B1B15BC5226C85BA26D09341DBA850FED1234AD521EF68AEC4EA46D0934A36D38C5F44C96D8DBA6319D36E3B2F63DE320A78936D7E9529B7F867C7CFF815858FF2C1B5411B4A0B964DA49A5B9CC7043236435F513FAD462139EA7676920F89744B3B590C0F8B83E2B1B5439A84BEEEBD73FAC35\r\n\tC832ECF518557C73D416273F4B2506C2A82B2F1B34A167A044B31CFE201B44825DCE07C3221390E7D1723DB49611EC129D142EF176BBE4063FE4A26B33DEE9C80905A61B168BA416317513380A2DF922C5526EDCEED86B3807C8E8A644D412B8651A639BB4BEB2810E2C5D2642F3E6A5469A036FE32C317542370558F32EB42318F95A1DB72625D43239BEF71F9AEBB01DBC12316EC3B4A6D2709E26EB24EDA5BCB54BB15A175689E535240C6AFED9F6BA8E391D7D2E9206BF502043173279FF3D05600BC117DA00\r\n\t0EFDB87F3FAC11FC0C3914093F46E933B137C3DE44BE621BD54EBC0DFD72BE661B55BC7F530079CC4EEFFBF2C97DCBFD7D92043AA4B8BC4C6B68791EB7F4F9EDCAFD317C17FAC8FD59B4F1E57DE7C46602BEDCBFAFD164891F3167064F18ECC6F7359B6942157CA865B98F6976933A839EDE1E12AF6CE73160067DDA3A57B8DD787E51686E1311AECAC3D76CC757550FF473C625FBF3G6992A03D94E04381C65F8ACF9BG239B9AC43AC9001BF64017EEAE27FB580BF4F100DB8210D345686A6159D105F4B99710\r\n\t4E853829D53EF4D1G4B2A885DE79711AE360A45DD0B2AD839CB60D984F8C617B30CF43555ACC66B28E6657A527D1253592AD9CC97D24D6C76250B986175D14D623E28EAE6B752B1BB4EDFC23A3955CC2F05704C2D01782EC66B677D17112E3E06692527E3F2B385246B2CE17123D7218F2D516A77A0270B28E131261E0E493527A25D1C9AD53FB8BF7D4A5210EE29C63FB8BF7DDE65F4B935AC1EB5566F5EF4245BDA4BE2DFE37D448C242B2CD575EB2D556B37AD93693C352AFEBEF434DF3E486942EAD9FEE4AD\r\n\tEBD7CBEA35F6FCF7B952955731983C3E0E513757E96D383C8269ACF5ACDEB73637AC0B770FBA965B7B59CB75FB0E53CD833A68BAFF7D183DB33211EEE11D6A97C26F6B97F1A552A55529FE5152B17D6EFF9769B28EB2FBB79DE4F43E760EECC63A4203EC8DE2ECEFC9BE6FEF8759FA45186ED9CE57F1102DEDE4C3395F5902F4A18A5D4C033E7541662EBFEDA773A95DDBBCAF8E085EA24FA0448495951F53190C6DAB7E096E8D907A280338FF387984192B96C3BA85A06F904E3D0F2D427D43705EC82173584274\r\n\tC07B20050718BF1B8E29F36F34130369ECAEBCE7A5B243A0AF62904E03B633F68F234A63F1F6DB697609B287ED34E867E6064B37103939476A76488D90BCF9F13E7A50C274A57BAB8ADA7147DF0A5EB17407E63696F0EFEE6420565639EBC652DE8FE0EB0CE263C20D2DE19F3D124E7638DE26FBDFC4FEDEBD54BDG0B93BA5CC4F78F09AB1AC507D9C29D1F5A3C951EEE49A3492D907D9D34CAB6132720D15D9BAE2264FB3737B1BDE72DBB206831603ED9C2656533E9C6FB3AD357D852C26A157D71FAD54F7647\r\n\t1ECA3381B0DD3F63C6DD1781CDF1836A7A260748B2093228282A683AEA471BD4579ED057F2446AB8A2FA9B45AE4966A9585E06FBFCD6CF0E40E2A68B1497414B0C23F82B43AADBC51B7502D4301D15D96CF88F1E2249D450282923222AAE8FC4425DB22B2A3D24FCE67F3D6FEA6D4F9227985A9F7A3CB9EDD18333DB78DC35BF96ECDF486DFFDFC6DD6B01E692G43BF4171F3G174C715775A33E60F0FCF667E1446F9FC0BFCE83DC9CG0BEF852BB63E4DEAE47BF165702CEFC43F5CB5C05605D6D93297117FDA\r\n\tE4D116EAAC446D26826210A2F1D0AE22CB062286482FA33F36ABB169138344A75DCE1B13EE0212710B76671481BCBB68ECC49DE78DF29D81975708BAC61A0DF44CBA82E3A0GAB6FF3AF16D7FE844BCB76E2F9B6404DBE0265B537991517G7949C7506613C36337795AA1220B58AFBB0949CC3F28A154AF6BA86A3773826AF7GF05E23285F0B9EA37D22A1FF5ED13477298BD8DE82AF4FFC916BBE6F98746BE3E84B3FDCA46B9F51EDD656832F5034EC31FAD8FB9DBE056DF5520298E1433A6B8D5BAB9D5B0FA9\r\n\t7D75185ADEC31FFEAAAD62E9EC2FBB07D1079420A9EFC29DE68E238E0C6EBFB91D8DE8E6F33A1E91DF3AC7C610AE81E8720EA3DD71A5DF3A1BAF21AF9B01A604533DF6E9BC75486A6141F2EDBD4CBD4E6AA1911ECBF97913CF137D8D49C116A0A6E5FC31DCC61DF31AE1ED550C75D3A4A0FE98F0B14DF85E167799F952752800EB393FEFA3756B11481ACBB2B17E5FF27EA4605D5A02655E1A0A36F7GAE3C855B519F4B0C74DFG79091C37A38D4BDC863862D6443F174E47C840C5F07CAFB9FE9160F2CFA07E5A\r\n\t8CBECE81EE528954A1DF566AB0670462C3F8AE653CCD195CDFED602FB6443F399C6D9A86DCCC9B7AFCE4F9A929FB3A98ADE20FA6495D63F45B7DAB350AE6AB552A4C911DA31FD25F4A4A929ACFCA5870DEE40356D154A23BE10C5F6B0FA1433CD24F3FDA4E6B83F45BFA92752BDA615B5F2CB4AD43544978A2D7A0DF8770041F64F511057885004BE8C7FCEEB67A2192F0F2BB7AF67BD9A35FC6C1FEAC671D174D6B8BF0392738EF5F65758538C99C1F4071F3G17FC8AED2A592C58D44A686E5A4C6719AFE01E79\r\n\t82793F48C77CB44045F17C6AAD084FBA9D1FFD60B4165B3F45375CC51C4E8BB4511CEE7FFB68D33667394C6FFCF349E9759CA565346F198A1D0B69395F3F53B8B237031D7B3D43712B5B883ED503E77AFCC069C9FA9A64051C41332A5F74925F3B4EC23C8CB09BE0AEC082C04AD90C9F6F33107D51D14F829B9C50709C222D45E7938C4F642C4476DEE9C8C9DB2C5AF1026951E8A7FBAC9B4E41D88B5088E08288B907BA7C519AD407BA2F218E4C4FFF6E537BF976B9DF5F466A520CAF5B2D67FBD717DE2C63E376\r\n\t4CF210F5C48A64ED6804718820914085908A905D09F6FDF6FEDFD03BC827EFF556G2E5E696C2D516F9BF2DD3F6F276B58EC7CA7BF3EA2DDBA2E53084F6989F6AF40D85EC8D03EA51DC6BEFD5BC5FCAA0890AF811483B48148GE1GB1A27A744673FB4768D3B62A7AFB146939DD9E1FFD3B0372AD940D781E9A273CFF8D4A17E4A86F267E71493BA3A8DFC61791DF5D40785AE70B9F1F3EFDEE5249E373631B55242F9A2C511BC513554916BB98476F216BE6A22F3C8B576AAF53F3E59B24C3GE6F66119E76A60\r\n\tD86E4344E8F4E2FC11FEFCE3337F81BFBE3D7D73F576B31B924D387F1048ED7AA95D1F5F508DE392C0FDB75AF44CBB961BBA3B75B63D6247B7B61BB2060259A4F79B59F4ED9B56D3E8B75AD4C1573B73A01DG30145B74DDBF99C610E3525B34774278ECEA7063535B14EFB2326983996BE90F89ED32D31BDC101E8A90E1C21BFE6BA74388667859E43FB83E3EFEB1A85F821351D8BD1D1EDFAC06BCC102B990209C209DC08618A661D87D4C79EAA148D84D83DB982F718C4EE092D46AEEF8FCF6B684650B160C78\r\n\tB2C746A7EFDDD03E790672FEBECEF9CF8565CBB414B77D52787A42377C7874FDE119E4B4E67F29A7403EAA5D7DE27D6525F252DF481ABF37877BCBE5993D2F8969CEGEF8F769747657179EBB8A8DFD80F91DF39B0BEF955C179A28D65AD99273CD70273994A1B19BA3E76F0379F1F3EBDAC6AB19A9B37713ACE66F53D381454F5019956DFG6DE62C6B2E3471794295144FE5B662ABC89F1F3CDDC179269A4ACB98273C970272C5984A8B4B981F3C2F87651BE3B66A7B9F9410B943206F735DFA56A65AE50C8162\r\n\t4C58A6864E10B611E5094F4E8758E341B65116B9BE9BCCC1791AACC6FC1B160F2FFFFC6447276F9F96C3F909FEFCE3336F8FC179A6994A3BEF4578644D8D4AB74DD0DED756B87BF4D03EE8C3F9EFE60F2F7E367A71696BEF3E45E8FC934FE2DBCE34E0DBDEDECEE3F4AB4468G75D6EC4B0F7A49981BAF9685656B349A3665F747A76F2320FCDEC3F93F9D273C6420FCE1067222B60FCF5E8F0372C59A4A6B4C9F1FBCC7F0BEC3F9F9DB46A76F3D20FC0B8C657DE61C72120272A56B64313B77EB1AC95F49BA9F1F\r\n\t3D89006112DA886EG245B4FE33F794B89F22FED985261G51G738192811682E475421C813087209D408B908A908190530BE5643511B2487D87F237005C87A0F787483D99F2B7E5BE50A575327BBB64EECE2E8D56BBG6DG43B6AC63639309BA3B08AE5A74D2CD1A48475F43BABABDE4A93461BA3A44D17872FBFD73C2FB8353921F901F45E8E850DFFADAE6EB0F1F2D7A3B7B016E4686FB97E00D72543FD3707AA8BCEBF56937C721A577FAC93C293D530B770475344ABBA23D016F1A7E2157782E6952DE633B\r\n\t262F752EE5F8A8C37BE68D662759C63F0B3A529678AEEA2BBD301E276D46FA0AF6E3BD4D765175F45A8369798E2D63C75EDCC379BD9E49C3B7E3EBC5D9D4721E13092F7D6E479E956D6A39E229BBDB2129131DB565DCEE14A3300D77BB0CEDFC50C15A2247596F6E1674F644BAB670BCF553019C3192F5984DA314DF965DE6494F8FF1141F658562FF529148D74C56A49FDBF7F27CDD9E8D7EC88917793EAB308FBEF2997B20589558873BDD41FDF04095588707DC41FD50649A5D871D325656D20E4F6BDF297541\r\n\tCE444F77456FC27C7000369CF22644462BFDD6B287C558FC473398A5BD5F66BF4E3173B62B1944EA89B6F65E164A71EE0ADF224133F338BF53BDE512DECA6687BB4EDB9B86493CC56E2E4D3563D9615303BEB614202E4F1A0D664B79F626E302BD102E7B296CE43BDE57FA0ACF316BF5FDCCC2DD339C7159B6876A5A63C5DD639C286B0EA19FDD4BD0579B5B082E898EDF1D1215F406B3102E77517D4F8DCE3D2EBF20782DCE3D2E87BC28EBB16405BBD15779C3286BB2A76A6A3E6023EBB90FDB8D4FD1F2DC4A9D\r\n\t91D7A0DD1F21324BDDFADDDF207883AE3D2E9E2EEBA364C53BD057D7AF202EF9FD286B6C0B2FAB3AB675381D76269225CFFD33AFF09F3F3B4F380FC777856E63BF688B5E47E37B827771077B02777138BEE2CB1755E4F5ABB770157A98763531D441D70E78624B957CF2FAC7C66313D2655E5BA51FFAAD66FBDD655AFAAD68E375D829BC1B60E96A732DDBD6FF51F4CF515B272F5787A9BE24CFDF2F55E5D82FE110371457611D1735E30EBAFE778A3E766DD2701BD3FD71FB947CAFD2FD6CABC57B8AFD6CEBF7B3\r\n\tDBEC4AF392BC435DC67635D3FDA35DFA7BC40A0FF16B6DFB21946D0B053C2D9E34EFFA1A563E5D5C3EF3693EF66CD6706BB2FC711FAA7807B3346510F81B59F7E654734D292047CC0FEADFB47CD67A9F5D931A67515B77A70A0F73686D9BBE0376A5C05E81996D3BBED32BD7B9372FE539F6DED6672437D6685AE79943BF3B42576EB205FEFA160E3E18610FE4EB4BD7672A1E332379E3B668BDC7D67D31C0C6FFDC207B8A09325E9FDF2178A4D96F0F1CF27447B2486B68C7FF242E547A63D3559F6FEA713BB87E\r\n\t6D4DBA7BF6B27C6FB67B7AE327C2FFDB3E0EDE39FFF4F80B8E3F0B61573F274317B37C074D647DA81BB8646C178521F00058342F996F9A4502BD0BG8440678D30BBC7EC9F723B03C42F9E37E807902445A5F58BD90304B73D95F9E5201F8A9089B09FE049G7AA65FC5F42931C85D3DDDCEEFD53F6CE478E9EF2E56600F080EFE51067E2978185E5941CD4EA3D68743EF4873450BDE0697F711F9029E08F05A38AC9507F43F4E4DC1DC33A42A340F3C6E0BC77A1FECDF2B517110DB9C22F728F9BDFED6204D2F36\r\n\t75CB2D4EE64944737753F75359C9CD991E41DFDC4EF1C8775896152EC4416D78C44515AA7796EFB33C775784F5E19A443BE3F7DA0CE806A1BF0C53DC6AB12209047C391C46AE9951AC047CA51CA65D309C418BCFAF52AC31995194C27E81AF4E732D742E81F9BF211D6326D11C8D52439C772A9577B226FAF18F41C9DECF467742B53FD34D6D230C897FDDE0B27EBA21B296F949B7E93ECDDEA9D076F7D24C6813CDC36813B39674C941907A242EC77543D14D6FA7240977C972044AE0BED9B0247A642EB6ECBBDE\r\n\t6E13BBCF221FC2B9EEE5BB7AE99A77D30CC7754D5FEBFE9F74CC3C1F4ECD280CE5C3446627795D74A55C8FD5B27A26728262E649681B7A8B681B67B47EC8567C9E7A92FC7355AF41B73997094DE4AE1F467D30EAA741C5C1FAAE477DC7AB4145C1BA11633ACF203F12B86E772584C75E6D2A3C08BEFC20CC755BBFEAFE5717CD3C8F45891541EC2EA9C7FFB5DDC4BFECBB0C7EB2F15C544368AF97475D407D954B7DF5D663A33366F7F269447BAB7BCB70174C7B59C26E075E5368072D43085BF8066076C03AF198\r\n\tFD13FCC675472B1A5F134FCC3CEFE6CC288CE67348D974CDA777C3EF997AA61A63224B50B77338EFA6152B7E38C6737B0D7209774D4793AA032DBB24E6DCF7AC821BF3C7B0AEAF6974399FC05E0E2828B864361A2AC5F3A30D7259196A3D4DB856550F60196A2FE91913A0BD8DA0FA845F3B74FE086FA2C65DB5CBE8BDEC7C5EE5E26BC85A7C913626CA9AD15F99721EFFAA0D495C5E0AB28BAEC11DDEA238132D5A6F8610F9690F296CDC1865DF6313CFE26BC1C11B7FA31FFC226FCBBE79AF7A64939F9DD17219\r\n\tEDBF7DGEDCB79E934E07BFEC840EF6BC5DEE2B6ADD01EE10B272736FE6BC2BA336D67348D127D260C4B684FFF237B1B96C8CF8218F6193F4FE5C15AE8CEFB04FE1FA1EF924441G35131076019E3C7758B189E9FFC83FFD918E69A800F91C76CE896F81A5F05AA63ABF19F795148BD0FB95526E6DC15A0E2B10F6270D168B69A800F91CB65F0EBAA4F05A9B6D345C49D0AEC0ADG1BC3C72C98DFF4CC46755E5C1378CE8C0B55EE39C8BC9FB1194E3967EB957F5AA67B6F9D26AAF51E2914B989E8882CD7F06113\r\n\t5575B82B4F1F1F56FEABB177F6DB9A666B4BDE2248DBBAD9ED2BCC3F3F8C2B7A4996542F60AB467A2D9BC53F4A2F287AB17FACECC37F54C39E13376312AAEFCBBB4AEB8FA0AFDDA34F86B4845ED7F013B47214777F06286F5D7D9273CF442056BFFBD6CEB67CFE8901D0C5FE0472CCD9FF3B621F3917D5FD9F14D15FC581744D9EC55FA4BFFD37DDA4789E5166D15754DBF7929BFA1C8E1979300246E44B00B7A3845B587A933EED6CE9C1557142895431BC44D8475795D9FA9D697898222F43B5E5D8072DA1586E\r\n\tEDB46EB1C15A9502751A16266AF047E154A1A2008E2BC651A146CF079F14228E311047E4DC476BA24EC0C63A4E4E45C47790F6471878BCE70ADE467453B8DEEF1802FEAEBDC36638EE272D5F6E70A8F48DB4B6A17D34F08A6A92FE96F5291CE22C0B565E26A94CDE54456427CBF8996A621A02BEFF328C6506CC41F93F37F9ACF73F7D676C21F172FD6F0A7958FE623DADF42C1D225FE7FC0062A3266877991F6173FD946465DE0D6F26BD1BC64F94A09D869089908B108810F2B55E9FDFF721D888F2FF3C5569EA\r\n\t1486A41B66181A59D754FA257631F1662195B82F467C70EEE14E5535813FDF107BF72CFD94AB4F025FCDCFA5CFE61FB703585789F943G91GF3G96GAC7EBB346FB43D6FCF5ED8B2D965AAD9963BAD74AB8DE8DC1BD59AD451E43312593650B03EDF266811B355782EC7BE604BF5F975106EGF0E9702CBEFB683C9EB2D5DF4FCE0A8F1B2A2F67E5E62C671910A7DC435FE9309869EA3A064973DEE32CEBA860A3F4F9B1101E8F10F00DDE570728CE495768F5FD1462D32E516B5AE261E71F57C27F3D96F57DD1\r\n\t0FD11B093B1649DBFCED20B342A29A2BAC3BD6AFFFB745E7DC27179FEBC2793910A7DF07726F16347297DD2744244AD3880D4F4E8BB5BA6B19C76594046A657F0C624BC375725B78596F81481B9D0A728F78581FF5BD1335C9F996433376FAA3795F2671D77B75FA795F23F85375FA79FBEDA85F85F98B2FC7799F580D7C3F6786A6337106C07ECF275FC06D3CC1AFBF0762EDB768655FE2C779DE48CB38816708F0AB469CACFE2CBA0F7163019B6333B78BACE6A2B87C47664BDE328D2E0C9F4F64607831691EEF\r\n\t8A35CF542661DC28575DFB23F27F60C6B50E4B33676337DE08CB147357A7AF126F9B3609671591108C97CEB70E921F43F269D857F929DBEE9549263192D3DBD0F7A18C677547296A4C56EF1C743535391D3F2794B61A2DD751BDD826E3915D43F581FDE8980EE96ECB9F87529510CDEE27CBF24BC38CCB3F1626687B82FFCFAA0A6BFB07C515FB2BDD557D5FDA4937CE9C52E0BEFF117EA084D9856F192C224DE9FE2FB03F38B03F24F4BB7A621E93D876E2DE76038E353C8F4B5097AC6F8B0F1A37717015490ABB\r\n\t0C32B65D0432C6E4353CFFA975757BDCEEF76BCD46FE8FDC97917DEA3951277D634F4EB3245D6D61ED621F4F222CD0C3D9497BD9397FB42016FBCF19FF3949E5D8AE6B3777134F2F62DDF04D6F671AA7FE4FC2E819C8994ABD3F344077B1DECEB33E0F7167B4633BF52969235F714BCE8FFC47AFB7DD7B3DC95687EF9EA47B847320BE9381B23E9A1F3D8120702B589F3F1ECE5AAF792237FFFCD1E7B2137BA064AB5EB24A3FAAA3302DD3B302FF7B7B268CF20F214BA94BCEBBA99F7137E5107A121DAE0AE43819\r\n\t74CE005BEA36480CD4414F4A207B7AD28FC5333D32D7E84CDC8FF635FF95774F366C26EB97C88FF35CAF8A69B732A09D45F1836938379B4BF1E7CB787EA547C552F3562DB7C37AE6443D444EDEA1ED3A9967A91BC5ED637D1A5F7F71A51C533DE598CF7DCF8133B9430A3E76F2BFC8D674F588473DEDC5DFCF6338C8B37ABA0A63FE160B3E0E6538B59674F5EEB862DAAC686B2D61686B07B57E0D537CBEB521FEE0B25CDF022F6369FE569E30371E7BE137997D554A7DD0AE29366F537C7E09E9627D7074044AE0\r\n\tB6BFA4E13B194D7DF0478A021B8369799C1711457BAD473DEC22ED6996C85F425F27517868971A5F9DDF4239F17F044AE0B61F6CC1FFB55E02FED8CBFD5389E997475D1C077E9A6638DF75925C82C8A7F2FFFD47267AE80E66F715ED627D7545044AE0B6D7523D6025E0EF462D6807EF5851B73937229F329D2A6DEFE8FE4F30CF3C9FE23E8499874FEB57D81DE037FC6B686F1F30B863A5AF59971B8A3433816683A482AC854839ADBEBB9F209C209E2093408B908A90819083B08FE091C052ED9817C4AFA75FF7\r\n\t8F34CED08EFEE8F062962DA4BC41F70DADDA7D05E930A61EB63A7E0C6FE43B4FBDD160298C424774ACB3135FBCDEE3CB96A52F42CCE2AF7EADC67A59CD7685AEA6730FBEF79B1BC01EE9CC3AC61F5072F901A7F4CCFC0F9F5672C5GCF4C18789E7251F3BE70A40C096FD11F3B0A494013B1FDACBE1DB198B8461CB598BC463C075E2717A0B6EC9DF2A9770F238749A25C59536311F8AC7B7D41DC0EEB70B4B9BDD6D2C3EC8D332A5CF75F7DE797C8F3E2F9FBF613BDBF3B68355A7B6DAD568B1232175BC4634D8D\r\n\tE063566938E770C2A1598FF639259E496D16CC149A77FE53F7907AA6206D180EFB3FF750D8F4AA244327631EF3FF896EB94FB3701F765C04FEA38DE88860D9CD52F47DD944BFE6117A416F7DB1393F4C42FD77E5DC772CECEAA7B4E0DFBB7333693BF737C35F3A9D573049746C0B655F406E2EC1DE636DE8D7B545F9A19D42F10F51B8A69A52F3EFC7DB9767222DC9379B5B3AE294DB05997A7D75BD9634ABE7864A9D2638CD10AE180136BE5F63DB5F6BC6C8F1CC2723E65429F5067199C72A268EACC0B3BC0369\r\n\tC452E1FEBA3DC0E31919000F64729FD861ABFF17666CECE396BF0B8AA0DFDB7FC9C0C3G771504197A7A4F117C6B7FFD097BE9A67AE9920DA1B6C13AE0A66AD910652B67A94D19595DF97C0CEF26311E5A3A33818D8154F3121F1EAF757A6B19E5C3BDC339CEADF6DF1D68B12722539CBB6AB4B300CEEBB47E0B861AF9B3553ADB2451C93903C8777C96ABF8066B223894854746164C2140E3D84ED070B1EC7D1071BAF963107FBAB9FF48F81D7C6110F61D4CF09F8F91DB4DB0FF36F33AE20EBB45F1BBE91984F7\r\n\t52EA12AD9C3F176AC5707592910878AA2A57A04535AB38039A5CA985F7F8080C43E0324569C65EA6FA165BE3355914F795A90D558143B27747A92A2355A5EA74BE4BF127F8DDBCE4712F1F1FD8347543F00EF6FFBACF3BBF5D72FEFF3A577B7D699EBE61CF376004BFDD52E1FF3A178E7B53AD127D691E127D691EB96BCF777B33DABAE52F148E854A7BF10564DDCB1FBD4BDA2BDDF210BF0AD6D0D618DF7269F64E7763B4152FB7FD6CFCE119AADFF349156D115ED5027B109B3EB65ADE737D4BD599AFE6796E51\r\n\t7EF2051A7738F96CFA3F2A5983DFED9DBB5FFE334A7735AB10B7432A72BD14FBE5FEDA3F967D5474B51C077F613CDA5EB10B2FCF1E69D5730AADE3511149394C3FA5B75530BE1277872E238C3B7A3B53294A3FF94515595A1805BA440E5AA63E62D2E5D4C83E76AF566CDBE7E6DD197CDF67217CE5234ADF61D5E5EC36796E65BF4F6F9B95FF7DCA7D78FDFA8F1C4DD3620764FCCAD9D750611961B7F9D729F89C1E15D87C1E92EDACEE817943DF9FCB8C7F5735DA3EB06019BDA63E901F77D467G4F02B1719D77\r\n\t79F6CBA270AC9D93DFE21E4F59649D71591B6E988B5F9FFC4E940B0127B6889F9BE3FFDC62BF6EBEDC62BFBE172C75275B35561FEE06591FAE426CCFE749722733E779537DFB1EBFDDCA1EBFDD26431FEE25C3CB477E467093FDE43192752210A98B59071A2BCE3554D4B55649426B550DA76A4E359EBB57DCD7CBF27045A11283CB61FC59195FAC19E4A1033C8EA58B4B595BCF10BEE2F5D41007682D703805B53C97B650E9BFF1202CA27DF75FCCCF93B29A0465AC8CEA90B2C8AC53A0E452D027C1C807B0486B\r\n\tD23A49CA25FB881EBE6112009D4D9FEBCC6B0BF58B2BFCC605FF7E464E5FAF78CD1BA7DDD85EA03CCDAEEC35C8EE767795CC645B854A9F94BDA8E43B1CD64884BCA86B210FCC0FBCE4139A053C1EE6720720BC32E462DFB2744842FA7AF56ECF7AE52B6D13FA51E311C9943837D148F0106F9E8AEF30EC72716ECF140FF7D30BD32B8ED01DF394FD57D1FDC9A9C53C14F5BFDA7341164F974FC997528E8AABEDCE51F4D06C161D6E86A1DB3610BFAD6134193C2E7D2C20AC3AE626772820380D5CFCE2EC91F98D0D\r\n\tAB5D6B7DDA682AA52B8EC2E060F58B1FD0CA92FB97F18AD30DC5A4FFD4C2F2B74864CF39BA5DDBF95ED56F4A9F7E6C50DB9DE9C22AE2A42902B5DE97340D9E51EE358D418FB686534AD9870D8A62E40707FC9A9DB44B57E906D9DCC0514D0F945F726D573E2082D4D6D9584CDC892C1F18A5277D132A1E9E2BC3628500DF2178F7F8710426C8C773067726751FBF7E1FDD508EEA05F4FBF1B17D3F047EDFCA7EAF2118920AA9A98567A68B237E5367FB51E65AF8F83F205FEEBF88B5A87F6A45C7E67D3AB2B9892C\r\n\tBBA8E4524FE8C3A5642AD4C77B6DDD127B6A28DB5EF9BDBC71BAD2C7AE52D43C245C373CBE6D9D97BE2C972C72EBD5843B563FF99074FADEC9A43501127E157E7F4E951BCC38B6D35EADDC53ED23E92A1D9C7DFBBC474AC2EABE03AC720DFC72B5B95FE1C796D654103F6961A183509B7EE1D0558DCFBE91F52EB6AFCDC803B148A231C1A7F310CC3834931219BA1D8AAF77C97DCD3972D36FA8CE7355FB34545F14CDB5E337A9CB13CF61EF4F1A467FB55D32E5AC5D92BDCD7E31BBCF5BAFEB6FE6AF1B529D70EE\r\n\t7601C896FB35C62AF71E587942C67A37F642G9F9509E7843D7D64EF3A863A7754E297EDB6D93475D6B9CC648ED47510AC2977A87287C8799E24D1B2D95EB67A1D18739A1E7F82D0CB87887FE2846C1DA5GG4401GGD0CB818294G94G88G88GF8FBB0B67FE2846C1DA5GG4401GG8CGGGGGGGGGGGGGGGGGE2F5E9ECE4E5F2A0E4E1F4E1D0CB8586GGGG81G81GBAGGG57A5GGGG\r\n**end of data**/\r\n}", "title": "" }, { "docid": "678f148433670ad27dd12961b5e55e9d", "score": "0.46753398", "text": "public static HashMap<Integer, PCB> checkloaderFormat(ArrayList<String> temp){\r\n\r\n\r\n ArrayList<String> check= new ArrayList<String>();\r\n check=temp;\r\n PCB block = new PCB();\r\n for(int i=0;i<check.size();i++){\r\n\r\n\r\n\t String k=check.get(i);\r\n\t \r\n\t if(k.contains(\"** JOB\")){\r\n if(check.get(i).matches(\"\\\\*\\\\*\\\\s[J][O][B]\\\\s\\\\p{XDigit}{1,3}\\\\s\\\\p{XDigit}{1,3}\")){\r\n\t String s[]=k.split(\" \");\r\n\t \r\n\t \r\n\t block.JobId=JOBID;\r\n\t \r\n\t //System.out.println(\"JOBID=\"+JOBID);\r\n\t jobflag=1;\r\n\t //System.out.println(\"jobflag=\"+jobflag);\r\n\r\n\t jflag=1;\r\n\t block.numberOfDataLines =s[2];\r\n block.numberOfOutputLines =s[3];\r\n //block.totalnumber = Integer.toString((Integer.parseInt(block.numberOfDataLines)+ Integer.parseInt(block.numberOfOutputLines)));\r\n \r\n //=(Integer.parseInt(numberOfDataLines)+ Integer.parseInt(numberOfOutputLines))\r\n }\r\n\t \r\n }\r\n\t \r\n else if(i>=1 && check.get(i-1).matches(\"\\\\*\\\\*\\\\s[J][O][B]\\\\s\\\\p{XDigit}{1,3}\\\\s\\\\p{XDigit}{1,3}\") && !check.get(i).matches(\"\\\\*\\\\*\\\\s[E][N][D]\"))\r\n {\r\n if(check.get(i).matches(\"\\\\p{XDigit}+\") && jflag==1 ){\r\n block.length=k;\r\n jflag=0;\r\n lengthflag=1;\r\n //System.out.println(\"lengthflag=\"+lengthflag);\r\n\t\t \r\n\t }\r\n }\r\n\t \r\n else if(k.matches(\"\\\\p{XDigit}{3,12}\") && !check.get(i+1).matches(\"\\\\*\\\\*\\\\s[D][A][T][A]\") && starttcflag!=1 && dataflag!=1){\r\n\r\n if((k.length())%3==0 && dataflag==0 && starttcflag==0){\r\n\t\tblock.loaderAdd.add(k);\r\n\t\tloaderflag=1; \r\n\t\t//System.out.println(\"loaderflag=\"+loaderflag);\r\n\t\r\n\t\r\n }\r\n else{\r\n\t block.errorMessage=\"[E:122] INVALID LOADER FORMAT:MORE THAN 12 BITS IN A LINE\";\r\n\t }\r\n }\r\n\t \r\nelse if( k.matches(\"\\\\p{XDigit}{3}\\\\s[0|1]\") /*&& check.get(i+1).matches(\"\\\\*\\\\*\\\\s[D][A][T][A]\")*/){\r\n String p[]=k.split(\" \");\r\n block.startAdd = p[0];\r\n block.traceswitch = p[1];\r\n starttcflag=1;\r\n //System.out.println(\"starttcflag=\"+starttcflag);\r\n }\r\n\t \r\n\t \r\nelse if(k.contains(\"** DATA\")){\r\n\t dataflag=1;\r\n\t //System.out.println(\"dataflag=\"+dataflag);\r\n\t\t \r\n\t }\r\nelse if(dataflag==1 /*&& !\"0\".equals(block.numberOfDataLines) */&& !k.equals(\"** END\") && !k.equals(\"\") && endflag!=1)\r\n{\r\n\t /* if(k.matches(\"\\\\p{XDigit}\")){*/\r\n\t\t block.data.add(k);\r\n\t\t datavalueflag=1;\r\n\t\t// System.out.println(\"datavalueflag=\"+datavalueflag);\r\n\t /*}*/\r\n }\r\n\t\t \r\nelse if(dataflag!=1 && starttcflag==1 && !k.equals(\"** END\") && endflag!=1){\r\n/*if(k.matches(\"\\\\p{XDigit}\")){*/\r\n\tblock.data.add(k);\r\n datavalueflag=1;\r\n //System.out.println(\"datavalueflag=\"+datavalueflag); \r\n /*}*/\r\n }\r\n\t\t \r\n \r\n\t \r\n else if(k.contains(\"** END\")){\r\n\t endflag=1;\r\n\t // System.out.println(\"endflag=\"+endflag);\r\n\t\t \r\n\t }\r\n\t \r\n else if(k.contains(\"\") && endflag==1 ){\r\n /* if(check.get(i+1).matches(\"\\\\*\\\\*\\\\s[J][O][B]\\\\s\\\\p{XDigit}{1,3}\\\\s\\\\p{XDigit}{1,3}\")){*/\r\n\t\t linespace=1;\r\n\t\t //System.out.println(\"linespace=\"+linespace);\r\n if(jobflag==1 && lengthflag==1 && starttcflag==1 && dataflag==1 \r\n\t\t && endflag==1 && linespace==1 && loaderflag==1 && datavalueflag==1)\r\n\t{\r\n \r\n \r\n \r\n pcb.put(JOBID,block); \r\n JOBID++;\r\n PCB block1 = new PCB();\r\n block = block1;\r\n reset();\r\n \t\t\t\t \r\n\t\t\t\t\t\t \r\n }\r\nelse if(loaderflag!=1 && jobflag==1 && lengthflag==1 && dataflag==1 && endflag==1){\r\n\t block.errorMessage=\"[E:128]LOADER FORMAT MISSING\";\r\n\t pcb.put(JOBID,block); \r\n\t JOBID++;\r\n\t PCB block1 = new PCB();\r\n block = block1;\r\n reset();\r\n\t\r\n}\r\n\r\nelse if(jobflag!=1){\r\n\t // **JOB MISSIING \r\n\t block.JobId=JOBID;\r\n\tblock.errorMessage=\"[E:132] **JOB FOR PROOGRAM MISSING \";\r\n\tpcb.put(JOBID,block); \r\n\tJOBID++;\r\n\tPCB block1 = new PCB();\r\n block = block1;\r\n\treset();\r\n }\r\nelse if(dataflag!=1 && starttcflag==1 && datavalueflag==1){\r\n\t block.errorMessage=\"[E:131] **DATA FOR PROOGRAM MISSING \";\r\n\tpcb.put(JOBID,block); \r\n\tJOBID++;\r\n PCB block1 = new PCB();\r\n block = block1;\r\n\treset();\r\n}\r\nelse{\r\n\t//NULL JOB \r\n block.errorMessage=\"[E:130] NULL JOB\";\r\n\tpcb.put(JOBID,block); \r\n\tJOBID++;\r\n\tPCB block1 = new PCB();\r\n block = block1;\r\n\treset();\r\n\t\r\n }\r\n }\r\n\t \r\n else{\r\n\r\n if((jobflag!=1 || lengthflag!=1 || starttcflag!=1 || dataflag!=1 || \r\n \t\t endflag!=1 || linespace!=1 || loaderflag!=1)){\r\n if((!check.get(i).matches(\"\\\\*\\\\*\\\\s[J][O][B]\\\\s\\\\p{XDigit}{1,3}\\\\s\\\\p{XDigit}{1,3}\")&& jobflag!=1)){\r\n block.JobId=JOBID;\r\n // block.JobId++;\r\n block.errorMessage=\"[E:132] **JOB FOR PROOGRAM MISSING \";\r\n \r\n\t }\r\n else if(dataflag!=1 /*&& !\"0\".equals(numberOfDataLines)*/ /*&& k.matches(\"\\\\p{XDigit}\"*/){\r\n //missing **DATA\r\n block.errorMessage=\"[E:131] **DATA FOR PROOGRAM MISSING \";\r\n }\r\n \r\n else if(endflag!=1 ){\r\n\t //missing END\r\n block.errorMessage=\"[E:133] **END FOR PROOGRAM MISSING \";\r\n pcb.put(JOBID,block); \r\n JOBID++;\r\n PCB block1 = new PCB();\r\n block = block1;\r\n /*JOBID++;*/\r\n\t\t reset();\r\n\t \t }\r\n\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t }\r\n } \r\n\t \r\n \r\n\treturn pcb;\r\n\t \r\n\t\r\n\t }", "title": "" }, { "docid": "8e426f3d4a291da4405ca686df53b5e5", "score": "0.46718568", "text": "public static void main(String[] args) {\n\t\tString str5000=new String(\"5000=\\u94F6\\u884C\\u5361\\u652F\\u4ED8\\u5f02\\u5e38\");\n\t\tString str5001=new String(\"5001=\\u4F59\\u989D\\u652F\\u4ED8\\u5f02\\u5e38\");\n\t\tString str5002=new String(\"5002=\\u8F6C\\u8D26\\u5f02\\u5e38\");\n\t\tString str5003=new String(\"5003=\\u4FE1\\u7528\\u652F\\u4ED8\\u5f02\\u5e38\");\n\t\tString str5004=new String(\"5004=\\u7406\\u8D22\\u7533\\u8D2D\\u5f02\\u5e38\");\n\t\tString str5005=new String(\"5005=\\u7406\\u8D22\\u8F6C\\u8BA9\\u5f02\\u5e38\");\n\t\tString str5006=new String(\"5006=\\u5FEB\\u5229\\u6765\\u652F\\u4ED8\\u5f02\\u5e38\");\n\t\tString str5007=new String(\"5007=\\u63D0\\u73B0\\u5f02\\u5e38\");\n\t\tString str5008=new String(\"5008=\\u5145\\u503C\\u5f02\\u5e38\");\n\t\t\n\t\tSystem.out.println(str5000);\n\t\tSystem.out.println(str5001);\n\t\tSystem.out.println(str5002);\n\t\tSystem.out.println(str5003);\n\t\tSystem.out.println(str5004);\n\t\tSystem.out.println(str5005);\n\t\tSystem.out.println(str5006);\n\t\tSystem.out.println(str5007);\n\t\tSystem.out.println(str5008);\n\t}", "title": "" }, { "docid": "edbeebd4c08bad7da23c0dbcf3ed4b89", "score": "0.46673125", "text": "public static void main(String[] args) {\n\tString sentence=\"bugun hava cok guzel gel gezelim\";//kac word var\n String[]arr= sentence.split(\"\");\nSystem.out.println(Arrays.toString(arr));\nString email=\"firstname_lastname\";\nString[]arr2=email.split(\"_\");\nSystem.out.println(Arrays.toString(arr2));\n//braket kaldirmak istersek\nString str=Arrays.toString(arr2);\nSystem.out.println(str.replace(\"[\",\"\").replace(\"]\",\"\"));\nString cuma=\"bugun cuma ise cuma ya git\";//kac cuma var\nString[]arr4=cuma.split(\"cuma\");\nSystem.out.println(Arrays.toString(arr4));\nSystem.out.println(arr4.length-1);//iki kez cuma var\nString Paython=\" Paython is good i love Paython, Paython is life \";//kac paython\n// [\n//basina ve sonuna space koy split le hesapla koymazsak ilk harfi saymaz\n String []arry5=Paython.split(\"Paython\");\nSystem.out.println(arry5.length-1);\nString mail=\"saadet demirtas 620 @ gmail.com\";\nString fullname=mail.substring(0,mail.indexOf(\"620\"));\nSystem.out.println(fullname);\n//or\nString[]arry=mail.split(\"620\");\nSystem.out.println(Arrays.toString(arry));//spliti bos koyarsaniz tum cumleyi arry yapar verir\nString word=\"abcde\";\nString[]allcharacter=word.split(\"\");\nSystem.out.println(Arrays.toString(allcharacter));\n\n//toCharArray();stringi char arrya cevirir\n\nString str2=\"java\";\nchar[]ch=str2.toCharArray();\n\nSystem.out.println(Arrays.toString(ch));\n//String methodslar codlarda\n\n\n\n\n\n\n}", "title": "" }, { "docid": "05b606087a041f29a5c04fa280455a64", "score": "0.4665731", "text": "private String[] extractStates(String rawValue) {\n LinkedList<String> stringList = new LinkedList<String>();\n // if invalid data return empty list\n if (rawValue.indexOf(\"(\") == -1) {\n return (stringList.toArray(new String[0]));\n }\n\n //\n // result (sort not calculated): readyBFPSM schedule <ready QUEUE a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b\n // a b a b a b a b a ENDQUEUE > <ready (b, a) (acc:(E)b(F)a(L)5(U)0, acc:(E)a(\n // F)b(L)5(U)1) > b maState eventSelC<STATEC> root R \"R1280114252\", root R\n // \"R1280114252\" : C \"State0--402295417\", root R \"R1280114252\" : C\n // \"State0--402295417\" : R \"R-775518637\", root R \"R1280114252\" : C\n // \"State0--402295417\" : R \"R-775518637\" : C \"State2--412151283\" <HISTC> empty\n // <EVENT> b <ENDCONF> (b, a)\n //\n\n // consume \"maState stableC (\" or similar\n rawValue = rawValue.substring(rawValue.indexOf(\"<STATEC>\") + 8);\n\n boolean consuming = false;\n String consumedPart = \"\";\n for (int c = 0; c < rawValue.length(); c++) {\n String character = rawValue.substring(c, c + 1);\n if (character.equals(\"\\\"\")) {\n consuming = !consuming;\n if (!consuming) {\n stringList.add(consumedPart);\n consumedPart = \"\";\n }\n // do not consume \"-character\n continue;\n }\n if (character.equals(\"<\")) {\n break;\n }\n if (consuming) {\n consumedPart += character;\n }\n }\n\n return (stringList.toArray(new String[0]));\n }", "title": "" }, { "docid": "45249755a40655d3975399d193519dbd", "score": "0.46610984", "text": "private void buildParams(List<String> list) {\n String date = getDate();\n // param = \"{\\\"tbTimeNo\\\":\\\"sjd201702210011\\\",\\\"trainDate\\\":\\\"2017-07-26\\\",\\\"coachNo\\\":\\\"ygd201607160015\\\",\\\"subID\\\":\\\"3\\\"}\";\n //list.add(\"{\\\"tbTimeNo\\\":\\\"sjd2016071600103\\\",\\\"trainDate\\\":\\\"\" + date + \"\\\",\\\"coachNo\\\":\\\"ygd201607160015\\\",\\\"subID\\\":\\\"3\\\"}\");\n //list.add(\"{\\\"tbTimeNo\\\":\\\"sjd2016071600113\\\",\\\"trainDate\\\":\\\"\" + date + \"\\\",\\\"coachNo\\\":\\\"ygd201607160015\\\",\\\"subID\\\":\\\"3\\\"}\");\n //list.add(\"{\\\"tbTimeNo\\\":\\\"sjd2016071600143 \\\",\\\"trainDate\\\":\\\"\" + date + \"\\\",\\\"coachNo\\\":\\\"ygd201607160015\\\",\\\"subID\\\":\\\"3\\\"}\");\n //list.add(\"{\\\"tbTimeNo\\\":\\\"sjd2016083100023\\\",\\\"trainDate\\\":\\\"\" + date + \"\\\",\\\"coachNo\\\":\\\"ygd201607160015\\\",\\\"subID\\\":\\\"3\\\"}\");\n //list.add(\"{\\\"tbTimeNo\\\":\\\"sjd201702210008\\\",\\\"trainDate\\\":\\\"\" + date + \"\\\",\\\"coachNo\\\":\\\"ygd201607160015\\\",\\\"subID\\\":\\\"3\\\"}\");\n\n //公共车\n list.add(\"{\\\"tbTimeNo\\\":\\\"sjd2016071600103\\\",\\\"trainDate\\\":\\\"2017-08-21\\\",\\\"coachNo\\\":\\\"ygd201706300005\\\",\\\"subID\\\":\\\"3\\\"}\");\n\n //9:20\n list.add(\"{\\\"tbTimeNo\\\":\\\"sjd2016071600113\\\",\\\"trainDate\\\":\\\"2017-08-21\\\",\\\"coachNo\\\":\\\"ygd201706300005\\\",\\\"subID\\\":\\\"3\\\"}\");\n\n //10:40\n list.add(\"{\\\"tbTimeNo\\\":\\\"sjd2016083100023\\\",\\\"trainDate\\\":\\\"2017-08-21\\\",\\\"coachNo\\\":\\\"ygd201706300005\\\",\\\"subID\\\":\\\"3\\\"}\");\n\n //11:20\n list.add(\"{\\\"tbTimeNo\\\":\\\"sjd201702210008\\\",\\\"trainDate\\\":\\\"2017-08-21\\\",\\\"coachNo\\\":\\\"ygd201706300005\\\",\\\"subID\\\":\\\"3\\\"}\");\n\n //16:20\n list.add(\"{\\\"tbTimeNo\\\":\\\"sjd201702210011\\\",\\\"trainDate\\\":\\\"2017-08-21\\\",\\\"coachNo\\\":\\\"ygd201706300005\\\",\\\"subID\\\":\\\"3\\\"}\");\n\n //17:00\n list.add(\"{\\\"tbTimeNo\\\":\\\"sjd201702210012\\\",\\\"trainDate\\\":\\\"2017-08-21\\\",\\\"coachNo\\\":\\\"ygd201706300005\\\",\\\"subID\\\":\\\"3\\\"}\");\n\n //15:40\n list.add(\"{\\\"tbTimeNo\\\":\\\"sjd201702210010\\\",\\\"trainDate\\\":\\\"2017-08-21\\\",\\\"coachNo\\\":\\\"ygd201706300005\\\",\\\"subID\\\":\\\"3\\\"}\");\n\n\n\n }", "title": "" }, { "docid": "709e01968e46c75f3da6ffeabf8d0f34", "score": "0.46558142", "text": "public java.lang.String hxYOFxFjLpN1maJuWNxUV40nExCGxsxkDPOTgtzMu4zlZCQb3bPlKsXo1SYJg6ME(java.lang.String r12, java.lang.String r13) {\n /*\n r11 = this;\n r0 = r11\n r1 = r12\n r2 = r13\n r5 = r1\n java.lang.String r5 = r5.trim()\n r6 = 12\n java.lang.String r5 = r5.substring(r6)\n r3 = r5\n java.lang.String r5 = \"FUSION\"\n java.lang.String r6 = \"Http Post content = \"\n r7 = r3\n java.lang.String r7 = java.lang.String.valueOf(r7)\n java.lang.String r6 = r6.concat(r7)\n int r5 = android.util.Log.i(r5, r6)\n org.apache.http.client.methods.HttpPost r5 = new org.apache.http.client.methods.HttpPost\n r10 = r5\n r5 = r10\n r6 = r10\n java.lang.StringBuilder r7 = new java.lang.StringBuilder\n r10 = r7\n r7 = r10\n r8 = r10\n java.lang.String r9 = \"https://www.googleapis.com/fusiontables/v2/tables?key=\"\n r8.<init>(r9)\n r8 = r0\n java.lang.String r8 = r8.ApiKey()\n java.lang.StringBuilder r7 = r7.append(r8)\n java.lang.String r7 = r7.toString()\n r6.<init>(r7)\n r4 = r5\n org.apache.http.entity.StringEntity r5 = new org.apache.http.entity.StringEntity // Catch:{ UnsupportedEncodingException -> 0x0115 }\n r10 = r5\n r5 = r10\n r6 = r10\n r7 = r3\n r6.<init>(r7) // Catch:{ UnsupportedEncodingException -> 0x0115 }\n r3 = r5\n r5 = r3\n java.lang.String r6 = \"application/json\"\n r5.setContentType(r6)\n r5 = r4\n java.lang.String r6 = \"Authorization\"\n java.lang.String r7 = \"Bearer \"\n r8 = r2\n java.lang.String r8 = java.lang.String.valueOf(r8)\n java.lang.String r7 = r7.concat(r8)\n r5.addHeader(r6, r7)\n r5 = r4\n r6 = r3\n r5.setEntity(r6)\n org.apache.http.impl.client.DefaultHttpClient r5 = new org.apache.http.impl.client.DefaultHttpClient\n r10 = r5\n r5 = r10\n r6 = r10\n r6.<init>()\n r2 = r5\n r5 = r2\n r6 = r4\n org.apache.http.HttpResponse r5 = r5.execute(r6) // Catch:{ ClientProtocolException -> 0x013d, IOException -> 0x0165 }\n r2 = r5\n r5 = r2\n org.apache.http.StatusLine r5 = r5.getStatusLine()\n int r5 = r5.getStatusCode()\n r3 = r5\n r5 = r2\n if (r5 == 0) goto L_0x01e5\n r5 = r3\n r6 = 200(0xc8, float:2.8E-43)\n if (r5 != r6) goto L_0x01e5\n r5 = r2\n java.lang.String r5 = httpApacheResponseToString(r5) // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n r3 = r5\n org.json.JSONObject r5 = new org.json.JSONObject // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n r10 = r5\n r5 = r10\n r6 = r10\n r7 = r3\n r6.<init>(r7) // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n r10 = r5\n r5 = r10\n r6 = r10\n r4 = r6\n java.lang.String r6 = \"tableId\"\n boolean r5 = r5.has(r6) // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n if (r5 == 0) goto L_0x018d\n r5 = r0\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n r10 = r6\n r6 = r10\n r7 = r10\n java.lang.String r8 = \"tableId,\"\n r7.<init>(r8) // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n r7 = r4\n java.lang.String r8 = \"tableId\"\n java.lang.Object r7 = r7.get(r8) // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n java.lang.StringBuilder r6 = r6.append(r7) // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n java.lang.String r6 = r6.toString() // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n r5.qPA23Y7cwrM2jVYdTZaCOyuoTEsak9zRoCsFocZMlDYlamZRzkT9xY09N4QNxUyM = r6 // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n L_0x00c8:\n java.lang.String r5 = \"FUSION\"\n java.lang.StringBuilder r6 = new java.lang.StringBuilder\n r10 = r6\n r6 = r10\n r7 = r10\n java.lang.String r8 = \"Response code = \"\n r7.<init>(r8)\n r7 = r2\n org.apache.http.StatusLine r7 = r7.getStatusLine()\n java.lang.StringBuilder r6 = r6.append(r7)\n java.lang.String r6 = r6.toString()\n int r5 = android.util.Log.i(r5, r6)\n java.lang.String r5 = \"FUSION\"\n java.lang.StringBuilder r6 = new java.lang.StringBuilder\n r10 = r6\n r6 = r10\n r7 = r10\n java.lang.String r8 = \"Query = \"\n r7.<init>(r8)\n r7 = r1\n java.lang.StringBuilder r6 = r6.append(r7)\n java.lang.String r7 = \"\\nResultStr = \"\n java.lang.StringBuilder r6 = r6.append(r7)\n r7 = r0\n java.lang.String r7 = r7.qPA23Y7cwrM2jVYdTZaCOyuoTEsak9zRoCsFocZMlDYlamZRzkT9xY09N4QNxUyM\n java.lang.StringBuilder r6 = r6.append(r7)\n java.lang.String r6 = r6.toString()\n int r5 = android.util.Log.i(r5, r6)\n L_0x0110:\n r5 = r0\n java.lang.String r5 = r5.qPA23Y7cwrM2jVYdTZaCOyuoTEsak9zRoCsFocZMlDYlamZRzkT9xY09N4QNxUyM\n r0 = r5\n L_0x0114:\n return r0\n L_0x0115:\n r5 = move-exception\n r2 = r5\n java.lang.String r5 = \"FUSION\"\n r6 = r2\n java.lang.String r6 = java.lang.String.valueOf(r6)\n int r5 = android.util.Log.e(r5, r6)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r10 = r5\n r5 = r10\n r6 = r10\n java.lang.String r7 = \"Error: \"\n r6.<init>(r7)\n r6 = r2\n java.lang.String r6 = r6.getMessage()\n java.lang.StringBuilder r5 = r5.append(r6)\n java.lang.String r5 = r5.toString()\n r0 = r5\n goto L_0x0114\n L_0x013d:\n r5 = move-exception\n r3 = r5\n java.lang.String r5 = \"FUSION\"\n r6 = r3\n java.lang.String r6 = java.lang.String.valueOf(r6)\n int r5 = android.util.Log.e(r5, r6)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r10 = r5\n r5 = r10\n r6 = r10\n java.lang.String r7 = \"Error: \"\n r6.<init>(r7)\n r6 = r3\n java.lang.String r6 = r6.getMessage()\n java.lang.StringBuilder r5 = r5.append(r6)\n java.lang.String r5 = r5.toString()\n r0 = r5\n goto L_0x0114\n L_0x0165:\n r5 = move-exception\n r3 = r5\n java.lang.String r5 = \"FUSION\"\n r6 = r3\n java.lang.String r6 = java.lang.String.valueOf(r6)\n int r5 = android.util.Log.e(r5, r6)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r10 = r5\n r5 = r10\n r6 = r10\n java.lang.String r7 = \"Error: \"\n r6.<init>(r7)\n r6 = r3\n java.lang.String r6 = r6.getMessage()\n java.lang.StringBuilder r5 = r5.append(r6)\n java.lang.String r5 = r5.toString()\n r0 = r5\n goto L_0x0114\n L_0x018d:\n r5 = r0\n r6 = r3\n r5.qPA23Y7cwrM2jVYdTZaCOyuoTEsak9zRoCsFocZMlDYlamZRzkT9xY09N4QNxUyM = r6 // Catch:{ IllegalStateException -> 0x0193, JSONException -> 0x01bc }\n goto L_0x00c8\n L_0x0193:\n r5 = move-exception\n r3 = r5\n java.lang.String r5 = \"FUSION\"\n r6 = r3\n java.lang.String r6 = java.lang.String.valueOf(r6)\n int r5 = android.util.Log.e(r5, r6)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r10 = r5\n r5 = r10\n r6 = r10\n java.lang.String r7 = \"Error: \"\n r6.<init>(r7)\n r6 = r3\n java.lang.String r6 = r6.getMessage()\n java.lang.StringBuilder r5 = r5.append(r6)\n java.lang.String r5 = r5.toString()\n r0 = r5\n goto L_0x0114\n L_0x01bc:\n r5 = move-exception\n r3 = r5\n java.lang.String r5 = \"FUSION\"\n r6 = r3\n java.lang.String r6 = java.lang.String.valueOf(r6)\n int r5 = android.util.Log.e(r5, r6)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r10 = r5\n r5 = r10\n r6 = r10\n java.lang.String r7 = \"Error: \"\n r6.<init>(r7)\n r6 = r3\n java.lang.String r6 = r6.getMessage()\n java.lang.StringBuilder r5 = r5.append(r6)\n java.lang.String r5 = r5.toString()\n r0 = r5\n goto L_0x0114\n L_0x01e5:\n java.lang.String r5 = \"FUSION\"\n java.lang.StringBuilder r6 = new java.lang.StringBuilder\n r10 = r6\n r6 = r10\n r7 = r10\n java.lang.String r8 = \"Error: \"\n r7.<init>(r8)\n r7 = r2\n org.apache.http.StatusLine r7 = r7.getStatusLine()\n java.lang.String r7 = r7.toString()\n java.lang.StringBuilder r6 = r6.append(r7)\n java.lang.String r6 = r6.toString()\n int r5 = android.util.Log.i(r5, r6)\n r5 = r0\n r6 = r2\n org.apache.http.StatusLine r6 = r6.getStatusLine()\n java.lang.String r6 = r6.toString()\n r5.qPA23Y7cwrM2jVYdTZaCOyuoTEsak9zRoCsFocZMlDYlamZRzkT9xY09N4QNxUyM = r6\n goto L_0x0110\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.appinventor.components.runtime.FusiontablesControl.hxYOFxFjLpN1maJuWNxUV40nExCGxsxkDPOTgtzMu4zlZCQb3bPlKsXo1SYJg6ME(java.lang.String, java.lang.String):java.lang.String\");\n }", "title": "" }, { "docid": "2935648d303ba9ea7dc67dd958fa3e8d", "score": "0.46537197", "text": "public static void main(String[] args) {\n\t\tString string = \"485943420b030068\";\n\t\tString substring = string.substring(0, 8);\n\t\tSystem.out.println(substring);\n\t\tSystem.out.println(string.substring(8));\n\t\tSystem.out.println(hex2Ascii(substring));\n\t\t\n//\t\tSystem.out.println(handlerPbId(string));\n\t\t\n//\t\tString string2 = \"0b030071\";\n//\t\tint parseInt2 = Integer.parseInt(\"0b\", 16);\n////\t\tchar a = (char) parseInt2;\n//\t\tSystem.out.println(\"parseInt2=\"+ parseInt2);\n//\t\tint parseInt3 = Integer.parseInt(\"03\", 16);\n//\t\tchar b = (char) parseInt3;\n//\t\tSystem.out.println(\"parseInt3=\"+ parseInt3);\n//\t\tint parseInt4 = Integer.parseInt(\"71\", 16);\n////\t\tchar c = (char) parseInt4;\n//\t\tSystem.out.println(\"parseInt4=\"+ parseInt4);\n\t\t\n\t}", "title": "" }, { "docid": "cda3468feb498fd1bb096ee8d08b9b9d", "score": "0.45986417", "text": "private static byte[] decode64(String s) {\n int len = s.length();\n //System.out.println(\"s = \" + s);\n byte[] b = new byte[(s.length() / 4) * 3];\n int cycle = 0;\n int combined = 0;\n int j = 0;\n int dummies = 0;\n for (int i = 0; i < len; i++) {\n int c = s.charAt(i);\n int value = (c == (int) '=') ? -2 : ((c <= 255) ? base64.indexOf(c) : -1);\n if (value == -2) {\n value = 0;\n dummies++;\n }\n if (value != -1) {\n if (cycle == 0) {\n combined = value;\n cycle++;\n } else {\n combined <<= 6;\n combined |= value;\n cycle++;\n }\n if (cycle == 4) {\n b[j + 2] = (byte) combined;\n combined >>>= 8;\n b[j + 1] = (byte) combined;\n combined >>>= 8;\n b[j] = (byte) combined;\n j += 3;\n cycle = 0;\n }\n }\n }\n if (dummies > 0) {\n j -= dummies;\n byte[] b2 = new byte[j];\n System.arraycopy(b, 0, b2, 0, j);\n b = b2;\n }\n return b;\n }", "title": "" }, { "docid": "038d0fcc6ed732d1c62d698c17f90404", "score": "0.4590847", "text": "private static String m17461vD(String str) {\n UnsupportedEncodingException e;\n AppMethodBeat.m2504i(40619);\n Map z = C5049br.m7595z(str, \"sysmsg\");\n String str2;\n if (z == null) {\n str2 = \"\";\n AppMethodBeat.m2505o(40619);\n return str2;\n }\n str2 = (String) z.get(\".sysmsg.paymsg.appmsgcontent\");\n if (C5046bo.isNullOrNil(str2)) {\n C4990ab.m7412e(\"MicroMsg.AAUtil\", \"empty appmsgcontent!\");\n str2 = \"\";\n AppMethodBeat.m2505o(40619);\n return str2;\n }\n String str3 = \"\";\n try {\n str2 = URLDecoder.decode(str2, \"UTF-8\");\n try {\n C4990ab.m7411d(\"MicroMsg.AAUtil\", \"msgContent: %s\", str2);\n } catch (UnsupportedEncodingException e2) {\n e = e2;\n C4990ab.m7412e(\"MicroMsg.AAUtil\", e.getMessage());\n AppMethodBeat.m2505o(40619);\n return str2;\n }\n } catch (UnsupportedEncodingException e3) {\n e = e3;\n str2 = str3;\n }\n AppMethodBeat.m2505o(40619);\n return str2;\n }", "title": "" }, { "docid": "1cba6e325eeb738125c492b30f798f2c", "score": "0.45864394", "text": "public static void main(String[] args) {\n\n\n String bodyString = \"{\\\"id\\\":\\\"1\\\",\\\"phone\\\":\\\"11\\\",\\\"taskID\\\":\\\"111\\\",\\\"taskclass\\\":\\\"1111\\\",\\\"batch\\\":11111,\\\"user\\\":\\\"1111111\\\",\\\"keyword\\\":\\\"1234567\\\",\\\"join\\\":[{\\\"groupID\\\":\\\"23\\\",\\\"groupname\\\":\\\"34\\\",\\\"state\\\":2},{\\\"groupID\\\":\\\"45\\\",\\\"groupname\\\":\\\"67\\\",\\\"state\\\":3}]}\";\n ClientSubmitPushJoinGroupsReq businessParam = JSON.parseObject(bodyString, ClientSubmitPushJoinGroupsReq.class);\n\n System.out.println(businessParam);\n\n\n/*String aa = \"你好\\r\\n\" +\n \"我也号\\n\" +\n \"大家好哦\\r\";\n\n\n// newString = myString.replaceAll(\"(\\r\\n|\\r|\\n|\\n\\r)\", \"<br>\");\n String[] split = aa.split(\"(\\\\r\\\\n|\\\\r|\\\\n|\\\\n\\\\r)\");\n\n System.out.println(split);*/\n\n }", "title": "" }, { "docid": "a7722992720ded7e259c54cdc2f45cef", "score": "0.4571064", "text": "protected void parseData(String ssp) {\r\n // log.debug(\"parseData: \" + ssp);\r\n try {\r\n int commaPos = ssp.indexOf(','); // data start behind\r\n if (commaPos >= 0) { // with data\r\n } else { // degenerate: parameters only\r\n commaPos = ssp.length();\r\n }\r\n params = new HashMap<String, ArrayList<String>>(32);\r\n if (commaPos > 0) {\r\n String[] parameters = ssp.substring(0, commaPos).split(\";\");\r\n int iparm = 0;\r\n while (iparm < parameters.length) {\r\n String pair = parameters[iparm ++];\r\n int equalPos = pair.indexOf(\"=\");\r\n String key = \"\";\r\n String value = \"true\";\r\n if (equalPos < 0) { // key only, no value\r\n key = pair;\r\n if (iparm == 1) {\r\n key = \"mediatype\";\r\n value = pair;\r\n }\r\n } else {\r\n key = pair.substring(0, equalPos);\r\n value = pair.substring(equalPos + 1);\r\n }\r\n addParam(key, pctDecode(value, UTF8));\r\n } // while iparm\r\n }\r\n String mediaType = \"text/plain\";\r\n ArrayList<String> al = getParam(\"mediatype\");\r\n if (al != null) {\r\n mediaType = (String) al.get(0);\r\n }\r\n String charSet = \"US-ASCII\";\r\n if (mediaType.startsWith(\"text/\")) {\r\n al = getParam(\"charset\");\r\n if (al != null) {\r\n charSet = ((String) al.get(0)).toUpperCase();\r\n }\r\n }\r\n if (commaPos < ssp.length()) { // evaluate data part\r\n String data = ssp.substring(commaPos + 1);\r\n if (getParam(\"base64\") != null) {\r\n addParam(\"body\", data);\r\n } else {\r\n addParam(\"body\", pctDecode(data, charSet));\r\n }\r\n } // with data part\r\n } catch (Exception exc) {\r\n log.error(exc.getMessage(), exc);\r\n }\r\n }", "title": "" }, { "docid": "2dd5a344ae51ae9c85052627b7b1fde8", "score": "0.45494372", "text": "public void processReceivedId(byte[] rdt, byte[] sdt) throws Exception\n {\n\t\t//#CM701537\n\t\t// The instance for reception telegram analysis is generated. \n\t\tRFTId0023 rftId0023 = null;\n\t\t//#CM701538\n\t\t// The instance for sending telegram making is generated. \n\t\tRFTId5023 rftId5023 = null;\n\t\ttry\n\t\t{\n\t\t\t//#CM701539\n\t\t\t// The instance for reception telegram analysis is generated. \n\t\t\trftId0023 = (RFTId0023) PackageManager.getObject(\"RFTId0023\");\n\t\t\trftId0023.setReceiveMessage(rdt);\n\n\t\t\t//#CM701540\n\t\t\t// The instance for sending telegram making is generated. \n\t\t\trftId5023 = (RFTId5023) PackageManager.getObject(\"RFTId5023\");\n\t\t}\n\t\tcatch (IllegalAccessException e)\n\t\t{\n\t\t\tRftLogMessage.printStackTrace(6026015, LogMessage.F_ERROR, CLASS_NAME, e);\n\t\t\tthrow e;\n\t\t}\n\n\t\t//#CM701541\n\t\t// Title machine No is acquired from Receiving telegram. \n\t\tString rftNo = rftId0023.getRftNo();\n\t\t\n\t\t//#CM701542\n\t\t// Worker code is acquired from Receiving telegram. \n\t\tString workerCode = rftId0023.getWorkerCode();\n\t\t\n\t\t//#CM701543\n\t\t// Area No is acquired from Receiving telegram. \n\t\tString areaNo = rftId0023.getAreaNo();\n\n\t\t\n\t\t//#CM701544\n\t\t// Variable which maintains Response flag\n\t\tString ansCode = RFTId5023.ANS_CODE_NORMAL;\n\n\t\t//#CM701545\n\t\t// Array which maintains acquired Area information\n\t\tZoneView[] zoneView = null;\n\n\t\t//#CM701546\n\t\t// File Name is made. \n\t\tString sendpath = WmsParam.RFTSEND; // wms/rft/send/\n\n\t\t//#CM701547\n\t\t// Transmission File Name\n\t\tString sendFileName = sendpath + rftNo + \"\\\\\" + Id5023DataFile.ANS_FILE_NAME;\n\n\t\t//#CM701548\n\t\t// Detailed Error\n\t\tString errDetails = RFTId5023.ErrorDetails.NORMAL;\n\n\t\tString className = \"\";\n\n\t\ttry\n\t\t{\n\t\t\t//#CM701549\n\t\t\t// The instance of Id0023Operate is generated. \n\t\t\tId0023Operate id0023Operate =\n\t\t\t (Id0023Operate) PackageManager.getObject(\"Id0023Operate\");\n\t\t\tid0023Operate.setConnection(wConn);\n\n\t\t\t//#CM701550\n\t\t\t// AreaList information is acquired. \n\t\t\tzoneView = id0023Operate.getAreaList(areaNo);\n\n\t\t\t//#CM701551\n\t\t\t// The Consignor list file is made. \n\t\t\tclassName = \"Id5023DataFile\";\n\t\t\tId5023DataFile listFile = (Id5023DataFile) PackageManager.getObject(className);\n\t\t\tlistFile.setFileName(sendFileName);\n\t\t\tlistFile.write(zoneView);\n\t\t}\n\t\t//#CM701552\n\t\t// When Error is caused by the instance generation\n\t\tcatch (IllegalAccessException e)\n\t\t{\n\t\t\tRftLogMessage.print(6006003, LogMessage.F_ERROR, CLASS_NAME,\n\t\t\t\t\tclassName, e.getMessage());\n\t\t\t//#CM701553\n\t\t\t// Response flag : Error\n\t\t\tansCode = RFTId5023.ANS_CODE_ERROR;\n\t\t\terrDetails = RFTId5023.ErrorDetails.INSTACIATE_ERROR;\n\t\t}\n\t\t//#CM701554\n\t\t// Error when information cannot be acquired from instance of Id0023Operate\n\t\tcatch (NotFoundException e)\n\t\t{\n\t\t\t//#CM701555\n\t\t\t// Response flag : There is no correspondence Stock. \n\t\t\tansCode = RFTId5023.ANS_CODE_NULL;\n\t\t}\t\t\n\t\t//#CM701556\n\t\t// When abnormality occurs by the connection with the Data base\n\t\tcatch (ReadWriteException e)\n\t\t{\n\t\t\t//#CM701557\n\t\t\t// 6006002=Database error occurred.{0}\n\t\t\tRftLogMessage.printStackTrace(6006002, LogMessage.F_ERROR, CLASS_NAME, e);\n\t\t\t//#CM701558\n\t\t\t// Response flag : Error\n\t\t\tansCode = RFTId5023.ANS_CODE_ERROR;\n\t\t\terrDetails = RFTId5023.ErrorDetails.DB_ACCESS_ERROR;\n\t\t}\n\t\t//#CM701559\n\t\t// When Error is caused by the I/O of the file\n\t\tcatch (IOException e)\n\t\t{\n\t\t //#CM701560\n\t\t // 6006020=File I/O error occurred. {0}\n\t\t RftLogMessage.printStackTrace(6006020, LogMessage.F_ERROR, CLASS_NAME, e);\n\t\t\t//#CM701561\n\t\t\t// Response flag : Error\n\t\t\tansCode = RFTId5023.ANS_CODE_ERROR;\n\t\t\terrDetails = RFTId5023.ErrorDetails.I_O_ERROR;\n\t\t}\n\t\t//#CM701562\n\t\t// Additionally, when abnormality occurs\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t//#CM701563\n\t\t\t// 6026015=Error occurred during ID process. {0}\n\t\t\tRftLogMessage.printStackTrace(6026015, LogMessage.F_ERROR, CLASS_NAME, e);\n\t\t\t//#CM701564\n\t\t\t// Response flag : Error\n\t\t\tansCode = RFTId5023.ANS_CODE_ERROR;\n\t\t\terrDetails = RFTId5023.ErrorDetails.INTERNAL_ERROR;\n\t\t}\n\n\t\t//#CM701565\n\t\t// Response telegram making\n\t\t//#CM701566\n\t\t// STX\n\t\trftId5023.setSTX();\n\n\t\t//#CM701567\n\t\t// SEQ\n\t\trftId5023.setSEQ(0);\n\n\t\t//#CM701568\n\t\t// ID\n\t\trftId5023.setID(RFTId5023.ID);\n\n\t\t//#CM701569\n\t\t// RFT transmission time\n\t\trftId5023.setRftSendDate(rftId0023.getRftSendDate());\n\n\t\t//#CM701570\n\t\t// SERVER transmission time\n\t\trftId5023.setServSendDate();\n\n\t\t//#CM701571\n\t\t// RFT machine\n\t\trftId5023.setRftNo(rftNo);\n\n\t\t//#CM701572\n\t\t// Person in charge code\n\t\trftId5023.setWorkerCode(workerCode);\n\n\t\t//#CM701573\n\t\t// AreaList file name\n\t\trftId5023.setTableFileName(sendFileName);\n\n\t\t//#CM701574\n\t\t// Number of Failure Code\n\t\tif (zoneView != null)\n\t\t{\n\t\t\trftId5023.setFileRecordNumber(zoneView.length);\n\t\t}\n\t\telse\n\t\t{\n\t\t\trftId5023.setFileRecordNumber(0);\n\t\t}\n\n\t\t//#CM701575\n\t\t// Response flag\n\t\t//#CM701576\n\t\t// The Normal flag is set when there is no value in the flag. \n\t\trftId5023.setAnsCode(ansCode);\n\t\t\n\t\t//#CM701577\n\t\t// Detailed Error \n\t\trftId5023.setErrDetails(errDetails);\n\n\t\t//#CM701578\n\t\t// ETX\n\t\trftId5023.setETX();\n\n\t\t//#CM701579\n\t\t// Acquire response telegram. \n\t\trftId5023.getSendMessage(sdt);\n\n }", "title": "" }, { "docid": "3a81ace30b9b695041f239fb558d0253", "score": "0.4525693", "text": "private void populateTestData() throws JMSException{\r\n \tString text = \"{\\\"1-Transaction Transfer Info Segment-F2\\\":{\\\"segmentType\\\":\\\"F2\\\",\\\"segmentDescription\\\":\\\"Transaction Transfer Info Segment\\\"\"\r\n \t\t\t+ \",\\\"Indicator\\\":\\\"F2\\\",\\\"Segment length\\\":\\\"0037\\\",\\\"Selling Store Number\\\":\\\"09300\\\",\\\"Register Number\\\":\\\"118\\\",\\\"Transaction Number\\\":\"\r\n \t\t\t+ \"\\\"6970\\\",\\\"Transaction Date\\\":\\\"2014-09-19\\\",\\\"Transaction Time\\\":\\\"10:27:10\\\",\\\"Receiving Store Number\\\":\\\"01264\\\",\\\"Selling Store Type\\\":\"\r\n \t\t\t+ \"\\\"E\\\",\\\"Receiving Store Type\\\":\\\"1\\\",\\\"Pend Flag\\\":\\\"N\\\",\\\"Transaction Service Type\\\":\\\"R\\\",\\\"IP Time Id\\\":\\\"200001111901\\\"},\"\r\n \t\t\t+ \"\\\"2-Transaction Header Record Segment-B1\\\":{\\\"segmentType\\\":\\\"B1\\\",\\\"segmentDescription\\\":\\\"Transaction Header Record Segment\\\",\"\r\n \t\t\t+ \"\\\"Indicator\\\":\\\"B1\\\",\\\"Segment Length\\\":\\\"0066\\\",\\\"Version Number\\\":\\\"\\u0004\\u0000\\\",\\\"Store Number\\\":\\\"09300\\\",\"\r\n \t\t\t+ \"\\\"Register Number\\\":\\\"118\\\",\\\"Transaction Number\\\":\\\"6970\\\",\\\"Transaction Date\\\":\\\"2014-09-19\\\",\\\"Transaction Time\\\":\"\r\n \t\t\t+ \"\\\"10:27:10\\\",\\\"Credited Store Number\\\":\\\"01264\\\",\\\"Ringing Associate Number\\\":\\\"000075\\\",\\\"Purchasing Customer ID\\\":\\\"00000000000\\\",\"\r\n \t\t\t+ \"\\\"Purchasing Address ID\\\":\\\"00000000000\\\",\\\"Customer ID Status Code\\\":\\\"2\\\",\\\"Transaction Source Code\\\":\\\"5\\\",\\\"Transaction Type Code\\\":\"\r\n \t\t\t+ \"\\\"1\\\",\\\"Transaction Status Code\\\":\\\"2\\\",\\\"Transaction Error Code\\\":\\\"00\\\",\\\"Transaction Reason Code\\\":\\\"E\\\",\\\"Transaction Total Discount\\\":\"\r\n \t\t\t+ \"\\\"0000000 \\\",\\\"Transaction Total Tax\\\":\\\"0001046 \\\",\\\"Transaction Tax Code\\\":\\\"6\\\",\\\"Transaction Total\\\":\\\"0020520 \\\",\\\"Transaction Flags\\\":\"\r\n \t\t\t+ \"\\\"\\u0000\\u0000\\\"},\\\"3-Transaction Comment Identifier Segment-BA\\\":{\\\"segmentType\\\":\\\"BA\\\",\\\"segmentDescription\\\":\"\r\n \t\t\t+ \"\\\"Transaction Comment Identifier Segment\\\",\\\"Indicator\\\":\\\"BA\\\",\\\"Segment length\\\":\\\"0008\\\",\\\"Comment Type Code\\\":\\\"48\\\",\"\r\n \t\t\t+ \"\\\"Comment sequence number\\\":\\\"01\\\",\\\"Comment action code\\\":\\\" \\\"},\\\"4-Transaction Comment Segment - (Type 48)Transfer To Store Type-B2\\\"\"\r\n \t\t\t+ \":{\\\"segmentType\\\":\\\"B2\\\",\\\"segmentDescription\\\":\\\"Transaction Comment Segment - (Type 48)Transfer To Store Type\\\",\"\r\n \t\t\t+ \"\\\"Indicator\\\":\\\"B2\\\",\\\"Segment Length\\\":\\\"0007\\\",\\\"Length of Comment\\\":\\\"02\\\",\\\"Comment Text Selling Store Type\\\":\"\r\n \t\t\t+ \"\\\"E\\\",\\\"Receiving Store Type\\\":\\\"1\\\"},\\\"5-Transaction Comment Identifier Segment-BA\\\":{\\\"segmentType\\\":\\\"BA\\\",\"\r\n \t\t\t+ \"\\\"segmentDescription\\\":\\\"Transaction Comment Identifier Segment\\\",\\\"Indicator\\\":\\\"BA\\\",\\\"Segment length\\\":\\\"0008\\\",\"\r\n \t\t\t+ \"\\\"Comment Type Code\\\":\\\"08\\\",\\\"Comment sequence number\\\":\\\"01\\\",\\\"Comment action code\\\":\\\" \\\"},\\\"6-Transaction Comment Segment -\"\r\n \t\t\t+ \" (Type 8) Craftsman Club, Pulse Club, or Sears Your Way Rewards Number-B2\\\":{\\\"segmentType\\\":\\\"B2\\\",\\\"segmentDescription\\\":\"\r\n \t\t\t+ \"\\\"Transaction Comment Segment - (Type 8) Craftsman Club, Pulse Club, or Sears Your Way Rewards Number\\\",\\\"Indicator\\\":\\\"B2\\\",\"\r\n \t\t\t+ \"\\\"Segment Length\\\":\\\"001D\\\",\\\"Length of Comment\\\":\\\"24\\\",\\\"Comment Text Craftsman Club Number or Sears Your Way Rewards\\\":\"\r\n \t\t\t+ \"\\\"7081016256288583\\\"},\\\"7-DOTCOM Transaction Reference-F9\\\":{\\\"segmentType\\\":\\\"F9\\\",\\\"segmentDescription\\\":\\\"DOTCOM Transaction Reference\\\",\"\r\n \t\t\t+ \"\\\"Indicator\\\":\\\"F9\\\",\\\"Segment Length\\\":\\\"001E\\\",\\\"DOTCOM Order Number\\\":\\\"012324958900\\\"},\\\"8-Line Item Format-C1\\\"\"\r\n \t\t\t\t+ \":{\\\"segmentType\\\":\\\"C1\\\",\\\"segmentDescription\\\":\\\"Line Item Format\\\",\\\"Indicator\\\":\\\"C1\\\",\\\"Segment Length\\\":\\\"0054\\\",\"\r\n \t\t\t\t+ \"\\\"Selling Associate\\\":\\\"000075\\\",\\\"Division Number\\\":\\\"071\\\",\\\"Item Number\\\":\\\"77380\\\",\\\"SKU Number\\\":\\\"000\\\",\\\"Miscellaneous\"\r\n \t\t\t\t+ \" Account Number\\\":\\\"000000\\\",\\\"Quantity\\\":\\\"0001\\\",\\\"Selling Amount\\\":\\\"0020499 \\\",\\\"Item Flags\\\":\\\" \"\r\n \t\t\t\t+ \"\\u0010\\u0000\\u0000\\u0000\\u0000\\\",\\\"Line Item Type Code 1\\\":\\\"1\\\",\\\"Line Item Type Code 2\\\":\\\"1\\\",\\\"Line Item Reason Code\\\":\\\"00\\\",\"\r\n \t\t\t\t+ \"\\\"Line Item Status Code\\\":\\\"6\\\",\\\"Line Item Status Reason Code\\\":\\\"1\\\",\\\"Promised Date\\\":\\\"2014-09-24\\\",\\\"Regular Price\\\":\\\"0020520\\\",\"\r\n \t\t\t\t+ \"\\\"PLU Amount\\\":\\\"0020499\\\",\\\"PLU Amount Type Code\\\":\\\"2\\\",\\\"Tax Amount\\\":\\\"0001046 \\\",\\\"Tax Code\\\":\\\"1\\\"},\\\"9-Transaction Comment Identifier \"\r\n \t\t\t\t+ \"Segment-BA\\\":{\\\"segmentType\\\":\\\"BA\\\",\\\"segmentDescription\\\":\\\"Transaction Comment Identifier Segment\\\",\\\"Indicator\\\":\\\"BA\\\",\\\"Segment\"\r\n \t\t\t\t+ \" length\\\":\\\"0008\\\",\\\"Comment Type Code\\\":\\\"AI\\\",\\\"Comment sequence number\\\":\\\"01\\\",\\\"Comment action code\\\":\\\" \\\"},\"\r\n \t\t\t\t+ \"\\\"10-Transaction Comment Segment - (Type AI) Best Seller Item Description-B2\\\":{\\\"segmentType\\\":\\\"B2\\\",\\\"segmentDescription\\\":\"\r\n \t\t\t\t+ \"\\\"Transaction Comment Segment - (Type AI) Best Seller Item Description\\\",\\\"Indicator\\\":\\\"B2\\\",\\\"Segment length\\\":\\\"004B\\\",\"\r\n \t\t\t\t+ \"\\\"Length of Comment\\\":\\\"70\\\",\\\"Item Description\\\":\\\"29cc Wheeled Edger w/ Speed Start\\u0026trade; \\\"},\"\r\n \t\t\t\t+ \"\\\"11-Line Item Status Format-C2\\\":{\\\"segmentType\\\":\\\"C2\\\",\\\"segmentDescription\\\":\\\"Line Item Status Format\\\",\\\"Indicator\\\":\\\"C2\\\",\"\r\n \t\t\t\t+ \"\\\"Segment Length\\\":\\\"0013\\\",\\\"Quantity\\\":\\\"0001\\\",\\\"Status Type Code\\\":\\\"4\\\",\\\"Line Item Effective Date\\\":\\\"2014-09-19\\\",\"\r\n \t\t\t\t+ \"\\\"Line Item Bin Location\\\":\\\" \\\"},\\\"12-Line Item Status Format-C2\\\":{\\\"segmentType\\\":\\\"C2\\\",\\\"segmentDescription\\\":\\\"Line Item Status Format\\\",\"\r\n \t\t\t\t+ \"\\\"Indicator\\\":\\\"C2\\\",\\\"Segment Length\\\":\\\"0013\\\",\\\"Quantity\\\":\\\"0001\\\",\\\"Status Type Code\\\":\\\"5\\\",\\\"Line Item Effective Date\\\":\\\"2014-09-19\\\",\"\r\n \t\t\t\t+ \"\\\"Line Item Bin Location\\\":\\\"0\\\"},\\\"13-Line Item Status Format-C2\\\":{\\\"segmentType\\\":\\\"C2\\\",\\\"segmentDescription\\\":\\\"Line Item Status Format\\\",\"\r\n \t\t\t\t+ \"\\\"Indicator\\\":\\\"C2\\\",\\\"Segment Length\\\":\\\"0013\\\",\\\"Quantity\\\":\\\"0001\\\",\\\"Status Type Code\\\":\\\"6\\\",\\\"Line Item Effective Date\\\":\\\"2014-09-19\\\",\"\r\n \t\t\t\t+ \"\\\"Line Item Bin Location\\\":\\\" \\\"},\\\"14-Line Item Markdown Format-C3\\\":{\\\"segmentType\\\":\\\"C3\\\",\\\"segmentDescription\\\":\\\"Line Item Markdown Format\\\",\"\r\n\t\t\t\t+ \"\\\"Indicator\\\":\\\"C3\\\",\\\"Segment Length\\\":\\\"0017\\\",\\\"Markdown Code\\\":\\\"4\\\",\\\"Markdown Amount\\\":\\\"0001025-\\\",\\\"Coupon Number\\\":\\\" \\\",\"\r\n\t\t\t\t+ \"\\\"Markdown Code Tax Status\\\":\\\"1\\\",\\\"Markdown Flags\\\":\\\" \\\"},\\\"15-Line Item Markdown Format-C3\\\":{\\\"segmentType\\\":\\\"C3\\\",\\\"segmentDescription\\\"\"\r\n\t\t\t\t+ \":\\\"Line Item Markdown Format\\\",\\\"Indicator\\\":\\\"C3\\\",\\\"Segment Length\\\":\\\"0017\\\",\\\"Markdown Code\\\":\\\"4\\\",\\\"Markdown Amount\\\":\\\"0002044-\\\",\"\r\n\t\t\t\t+ \"\\\"Coupon Number\\\":\\\"32 \\\",\\\"Markdown Code Tax Status\\\":\\\"1\\\",\\\"Markdown Flags\\\":\\\" \\\"},\\\"16-Line Item Delivery Format-C4\\\":\"\r\n\t\t\t\t+ \"{\\\"segmentType\\\":\\\"C4\\\",\\\"segmentDescription\\\":\\\"Line Item Delivery Format\\\",\\\"Indicator\\\":\\\"C4\\\",\\\"Segment Length\\\":\\\"0048\\\",\"\r\n\t\t\t\t+ \"\\\"Delivery Type\\\":\\\"A\\\",\\\"Delivery Route Number\\\":\\\"0000\\\",\\\"Delivery Stop Number\\\":\\\"00\\\",\\\"Delivery Handling Code\\\":\\\" \\\",\"\r\n\t\t\t\t+ \"\\\"Delivery Customer ID\\\":\\\"00000000000\\\",\\\"Delivery Address ID\\\":\\\"00000000000\\\",\\\"Customer ID Status Code\\\":\\\"2\\\",\\\"Delivery \"\r\n\t\t\t\t+ \"Window Text\\\":\\\" \\\",\\\"Delivery Confirmation Code\\\":\\\" \\\",\\\"Delivery Scheduled Date\\\":\\\"2014-09-24\\\",\\\"Delivery Zip Code\\\":\"\r\n\t\t\t\t+ \"\\\"00000\\\",\\\"Delivery Ship Store Number\\\":\\\"01264\\\",\\\"Delivery DOS Order Number\\\":\\\"00000000\\\",\\\"Delivery Warehouse Number\\\":\"\r\n\t\t\t\t+ \"\\\"0000\\\"},\\\"17-Line Item Format-C1\\\":{\\\"segmentType\\\":\\\"C1\\\",\\\"segmentDescription\\\":\\\"Line Item Format\\\",\\\"Indicator\\\":\\\"C1\\\",\"\r\n\t\t\t\t+ \"\\\"Segment Length\\\":\\\"0054\\\",\\\"Selling Associate\\\":\\\"000075\\\",\\\"Division Number\\\":\\\"000\\\",\\\"Item Number\\\":\\\"00000\\\",\"\r\n\t\t\t\t+ \"\\\"SKU Number\\\":\\\"000\\\",\\\"Miscellaneous Account Number\\\":\\\"116044\\\",\\\"Quantity\\\":\\\"0001\\\",\\\"Selling Amount\\\":\\\"0001908 \"\r\n\t\t\t\t+ \"\\\",\\\"Item Flags\\\":\\\"\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\\",\\\"Line Item Type Code 1\\\":\\\"2\\\",\\\"Line Item Type Code 2\\\":\\\"1\\\",\"\r\n\t\t\t\t+ \"\\\"Line Item Reason Code\\\":\\\"00\\\",\\\"Line Item Status Code\\\":\\\"1\\\",\\\"Line Item Status Reason Code\\\":\\\" \\\",\\\"Promised Date\\\":\"\r\n\t\t\t\t+ \"\\\"2014-09-19\\\",\\\"Regular Price\\\":\\\"0001908\\\",\\\"PLU Amount\\\":\\\"0001908\\\",\\\"PLU Amount Type Code\\\":\\\"1\\\",\\\"Tax Amount\\\":\\\"0000000 \\\",\"\r\n\t\t\t\t+ \"\\\"Tax Code\\\":\\\"1\\\"},\\\"18-Payment Record-B5\\\":{\\\"segmentType\\\":\\\"B5\\\",\\\"segmentDescription\\\":\\\"Payment Record\\\",\\\"Indicator\\\":\"\r\n\t\t\t\t+ \"\\\"B5\\\",\\\"Segment Length\\\":\\\"0032\\\",\\\"Payment Method Type Code\\\":\\\"O\\\",\\\"Payment Method Amount\\\":\\\"0002044 \\\",\\\"Payment Method \"\r\n\t\t\t\t+ \"Account Number\\\":\\\"708101******8583\\\",\\\"Payment Method Expiration Date\\\":\\\"0914\\\",\\\"Payment Status Code\\\":\\\"2\\\",\\\"Payment Method\"\r\n\t\t\t\t+ \" Authorization Code\\\":\\\"D433XX\\\",\\\"Payment Method Date Code\\\":\\\"4\\\",\\\"Payment Method Date\\\":\\\"2014-09-19\\\"},\"\r\n\t\t\t\t+ \"\\\"19-Payment Record-B5\\\":{\\\"segmentType\\\":\\\"B5\\\",\\\"segmentDescription\\\":\\\"Payment Record\\\",\\\"Indicator\\\":\\\"B5\\\",\"\r\n\t\t\t\t+ \"\\\"Segment Length\\\":\\\"0032\\\",\\\"Payment Method Type Code\\\":\\\"8\\\",\\\"Payment Method Amount\\\":\\\"0018476 \\\",\\\"Payment Method Account \"\r\n\t\t\t\t+ \"Number\\\":\\\"414720******3850\\\",\\\"Payment Method Expiration Date\\\":\\\"0516\\\",\\\"Payment Status Code\\\":\\\"2\\\",\\\"Payment Method \"\r\n\t\t\t\t+ \"Authorization Code\\\":\\\"00794C\\\",\\\"Payment Method Date Code\\\":\\\" \\\",\\\"Payment Method Date\\\":\\\" \\\"},\\\"20-Out of Area,\"\r\n\t\t\t\t+ \" Out of State Tax segment - (Release 37)-E4\\\":{\\\"segmentType\\\":\\\"E4\\\",\\\"segmentDescription\\\":\\\"Out of Area, Out of State Tax segment -\"\r\n\t\t\t\t+ \" (Release 37)\\\",\\\"Indicator\\\":\\\"E4\\\",\\\"Segment length\\\":\\\"0021\\\",\\\"Delivery Tax Code\\\":\\\"1\\\",\\\"Tax Rate\\\":\\\"06000\\\",\\\"Mainframe Availability\"\r\n\t\t\t\t+ \" Indicator\\\":\\\"32\\\",\\\"AVP Taxing Jurisdiction Geo Code\\\":\\\"00\\\",\\\"AVP Taxing Jurisdiction County Number\\\":\\\"000\\\",\"\r\n\t\t\t\t+ \"\\\"Transfer to State Code\\\":\\\"PA\\\",\\\"Ship-to Taxware GEO (9 digit State/ZIP/GEO)\\\":\\\" \\\",\\\"Jurisdiction-County \"\r\n\t\t\t\t+ \"(origin or destination)\\\":\\\"O\\\",\\\"Jurisdiction-County-Special (origin or destination)\\\":\\\"X\\\",\\\"Jurisdiction-City/Local \"\r\n\t\t\t\t+ \"(origin or destination)\\\":\\\"O\\\",\\\"Jurisdiction-City/Local Special (origin or destination)\\\":\\\"X\\\",\\\"Jurisdiction-Transit \"\r\n\t\t\t\t+ \"(origin or destination)\\\":\\\"D\\\",\\\"Jurisdiction-Special/SPD (origin or destination)\\\":\\\" \\\",\\\"Jurisdiction-Other (origin or destination)\\\":\"\r\n\t\t\t\t+ \"\\\" \\\"},\\\"21-Customer Information Format-BF\\\":{\\\"segmentType\\\":\\\"BF\\\",\\\"segmentDescription\\\":\\\"Customer Information Format\\\",\\\"Indicator\\\":\"\r\n\t\t\t\t+ \"\\\"BF\\\",\\\"Segment length\\\":\\\"00E0\\\",\\\"Customer ID Number\\\":\\\"00000000000\\\",\\\"Address ID Number\\\":\\\"00000000000\\\",\\\"Customer ID \"\r\n\t\t\t\t+ \"Status Code\\\":\\\"2\\\",\\\"Customer Type Code\\\":\\\"2\\\",\\\"Customer Code\\\":\\\" \\\",\\\"Customer First Name\\\":\\\"TAMMY \\\",\\\"Customer Middle\"\r\n\t\t\t\t+ \" Name\\\":\\\" \\\",\\\"Customer Last Name\\\":\\\" \\\",\\\"Customer Phone\\\":\\\"***2692\\\",\\\"Customer Area Code\\\":\\\"407\\\",\"\r\n\t\t\t\t+ \"\\\"Street Address 1\\\":\\\"2227 LOCUST RD \\\",\\\"Street Address 2\\\":\\\" \\\",\\\"City\\\":\\\"MORTON \"\r\n\t\t\t\t+ \" \\\",\\\"State\\\":\\\"PA\\\",\\\"Zip Code\\\":\\\"19070 \\\",\\\"Customer Inquiry Code\\\":\\\"1\\\",\\\"Customer Driver\\u0027s License No.\\\":\"\r\n\t\t\t\t+ \"\\\"*************************\\\",\\\"Customer D.L.State Code\\\":\\\" \\\",\\\"Customer Alternate Phone\\\":\\\"*** \\\",\\\"Customer Alternate Area Code\\\":\"\r\n\t\t\t\t+ \"\\\" \\\"},\\\"22-Customer Information Format-BF\\\":{\\\"segmentType\\\":\\\"BF\\\",\\\"segmentDescription\\\":\\\"Customer Information Format\\\",\\\"Indicator\\\":\"\r\n\t\t\t\t+ \"\\\"BF\\\",\\\"Segment length\\\":\\\"00E0\\\",\\\"Customer ID Number\\\":\\\"00000000000\\\",\\\"Address ID Number\\\":\\\"00000000000\\\",\\\"Customer ID Status Code\\\":\"\r\n\t\t\t\t+ \"\\\"2\\\",\\\"Customer Type Code\\\":\\\"1\\\",\\\"Customer Code\\\":\\\" \\\",\\\"Customer First Name\\\":\\\"TAMMY \\\",\\\"Customer Middle Name\\\":\\\" \\\",\"\r\n\t\t\t\t+ \"\\\"Customer Last Name\\\":\\\"ANDERSON \\\",\\\"Customer Phone\\\":\\\"***2692\\\",\\\"Customer Area Code\\\":\\\"407\\\",\\\"Street Address 1\\\":\"\r\n\t\t\t\t+ \"\\\"2227 LOCUST RD \\\",\\\"Street Address 2\\\":\\\" \\\",\\\"City\\\":\\\"MORTON \\\",\"\r\n\t\t\t\t+ \"\\\"State\\\":\\\"PA\\\",\\\"Zip Code\\\":\\\"19070 \\\",\\\"Customer Inquiry Code\\\":\\\"1\\\",\\\"Customer Driver\\u0027s License No.\\\":\\\"*************************\\\",\"\r\n\t\t\t\t+ \"\\\"Customer D.L.State Code\\\":\\\" \\\",\\\"Customer Alternate Phone\\\":\\\"***2692\\\",\\\"Customer Alternate Area Code\\\":\\\"407\\\"}}\";\r\n \tJMSMessage mockMessage = mock(JMSMessage.class, Mockito.withSettings().extraInterfaces(TextMessage.class));\r\n \twhen(((TextMessage) mockMessage).getText()).thenReturn(text);\r\n \ttestData = new ArrayList<Message>();\r\n \ttestData.add(mockMessage);\r\n \t\r\n }", "title": "" }, { "docid": "f0b8461113177bf14053c2c28871d0fe", "score": "0.45235008", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tString s = \"data:image/gif;base64,R0lGODdhiwXpA/cAAP\";\r\n\t\tString ss [] = s.split(\",\");\r\n\t\tSystem.out.println(ss[0]);\r\n\t\tSystem.out.println(ss[1]);\r\n\t\t\r\n\t\tSystem.out.println(ss[0].substring(ss[0].indexOf(\"/\")+1, ss[0].indexOf(\";\")));\r\n\r\n\t}", "title": "" }, { "docid": "9d203a1c1a7b0c8446597de565b8d8bc", "score": "0.45046505", "text": "public void putData(String data){\n\t\tString[] separated = data.split(\";\");\n\t\t\n\t\tfor(String i : separated){\n\t\t\tswitch(i.substring(0,2)){\n\t\t\tcase \"lm\":\n\t\t\t\tluminance = Float.valueOf(i.substring(3));\n\t\t\t\tbreak;\n\t\t\tcase \"t2\":\n\t\t\t\ttemperature_press = Float.valueOf(i.substring(3));\n\t\t\t\tbreak;\n\t\t\tcase \"hu\":\n\t\t\t\thumidity = Float.valueOf(i.substring(3));\n\t\t\t\tbreak;\n\t\t\tcase \"pr\":\n\t\t\t\tpressure = Float.valueOf(i.substring(3));\n\t\t\t\tbreak;\n\t\t\tcase \"gr\":\n\t\t\t\tgas = Float.valueOf(i.substring(3));\n\t\t\t\tbreak;\n\t\t\tcase \"al\":\n\t\t\t\talcohol = Float.valueOf(i.substring(3));\n\t\t\t\tbreak;\n\t\t\tcase \"cn\":\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "72b7b25ac639ac0ecbbbead4db6a1466", "score": "0.44992346", "text": "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tSystem.out.print(i+1 + \". \");\n\t\t\tScanner in = new Scanner(System.in);\n\t\t\tString str = in.nextLine();// taking scanner\n\n\t\t\tString [] parts = str.split(\", \", 3);\n\t\t\tString output = \"\";\n\n\t\t//\tSystem.out.println(\"Encrypt or Decrypt: \" + parts[0] + \" The String: \" + parts[1] + \" The Code: \" + parts[2]);\n\n\t\t\tString [] encoding_matrix = parts[2].split(\", \");\n\t\t\tint a = Integer.parseInt(encoding_matrix[0]);\n\t\t\tint b = Integer.parseInt(encoding_matrix[1]);\n\t\t\tint c = Integer.parseInt(encoding_matrix[2]);\n\t\t\tint d = Integer.parseInt(encoding_matrix[3]);\n\n\n\n\t\t\tint message_length = parts[1].length();\n\n\t\t//\tSystem.out.println(\"Length pre-Mod: \" + message_length);\n\t\t\tif(message_length%2 == 1)\n\t\t\t{\n\n\t\t\t\tparts[1] = parts[1] + \" \";\n\t\t\t\t//System.out.println(parts[1] + \"|\");\n\n\t\t\t\tmessage_length++;\n\t\t\t}\n\n\t\t\tint [] finalencoded = new int [message_length + 1];\n\n\t\t\t//System.out.println(\"Length post-Mod: \" + message_length);\n\n\t\t\tchar [] array = parts[1].toCharArray();\n\n\n\t\t\tint[] message = new int[message_length];\n\n\t\t\tfor(int k = 0; k < message_length; k ++ )\n\t\t\t{\n\n\t\t\t\tif(!Character.isSpaceChar(array[k]))\n\t\t\t\t{\n\t\t\t\t\tmessage[k] = Character.getNumericValue(array[k]) - 9;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmessage[k] = 27;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tint [] encodeda = new int [message_length];\n\t\t\tint [] encodedb = new int [message_length];\n\t\t\tint [] encodedc = new int [message_length];\n\t\t\tint [] encodedd = new int [message_length];\n\n\n\n\t\t\tif (parts[0].equals(\"E\"))\n\t\t\t{\n\t\t\t\tfor(int k = 0; k < message_length; k ++ )\n\t\t\t\t{\n\n\t\t\t\t\tencodeda[k] = message[k]*a;\n\t\t\t\t\tencodedb[k] = message[k]*b;\n\t\t\t\t\tencodedc[k] = message[k]*c;\n\t\t\t\t\tencodedd[k] = message[k]*d;\n\n\n\n\t\t\t//\t\tSystem.out.println(\"A: \" + encodeda[k] + \" C: \"+ encodedb[k] + \" B: \" + encodedc[k] + \" D: \" + encodedd[k]);\n\t\t\t\t}\n\n\t\t\t\tfor(int k = 0; k < message_length; k ++ )\n\t\t\t\t{\n\t\t\t\t\tif(k+1<message_length)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinalencoded[k] = encodeda[k] + encodedb[k+1];\n\t\t\t\t\t\tk++;\n\n\n\t\t\t\t\t\tfinalencoded[k] = encodedc[k-1] + encodedd[k];\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfinalencoded[k] = encodeda[k] + 27*b;\n\n\t\t\t\t\t\tfinalencoded[k+1] = encodedc[k] + 27*d;\n\t\t\t\t\t}\n\n\t\t\t\t\t//\tSystem.out.println(\"Final Encoded Even: \" + finalencoded[k-1] + \" Final Encoded Odd: \" + finalencoded[k]);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if(parts[0].equals(\"D\"))\n\t\t\t{\n\n\t\t\t\tfor(int k = 0; k < message_length; k ++ )\n\t\t\t\t{\n\n\t\t\t\t\tencodeda[k] = message[k]*d/(a*d-b*c);\n\t\t\t\t\tencodedb[k] = message[k]*-b/(a*d-b*c);\n\t\t\t\t\tencodedc[k] = message[k]*-c/(a*d-b*c);\n\t\t\t\t\tencodedd[k] = message[k]*a/(a*d-b*c);\n\n\n\t\t\t\t\t//\tSystem.out.println(\"A: \" + encodeda[k] + \" C: \"+ encodedb[k] + \" B: \" + encodedc[k] + \" D: \" + encodedd[k]);\n\t\t\t\t}\n\n\t\t\t\tfor(int k = 0; k < message_length; k ++ )\n\t\t\t\t{\n\t\t\t\t\tif(k+1<message_length)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinalencoded[k] = encodeda[k] + encodedb[k+1];\n\t\t\t\t\t\tk++;\n\n\n\t\t\t\t\t\tfinalencoded[k] = encodedc[k-1] + encodedd[k];\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfinalencoded[k] = encodeda[k] + 27*b;\n\n\t\t\t\t\t\tfinalencoded[k+1] = encodedc[k] + 27*d;\n\t\t\t\t\t}\n\n\t\t\t\t\t//\t\tSystem.out.println(\"Final Encoded Even: \" + finalencoded[k-1] + \" Final Encoded Odd: \" + finalencoded[k]);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\n\n\n\t\t\tfor(int k = 0; k < message_length; k ++ )\n\t\t\t{\n\t\t\t\twhile(!(28>finalencoded[k]&& finalencoded[k]>0))\n\t\t\t\t{\n\t\t\t\t\tif(finalencoded[k]> 27)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinalencoded[k] = finalencoded[k]%27;\n\t\t\t\t\t}\n\t\t\t\t\tif(finalencoded[k]<1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinalencoded[k] = finalencoded[k] + 27;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tfor(int k = 0; k < message_length; k ++ )\n\t\t\t{\n\n\t\t\t\t//\tSystem.out.println(\"Final Numbers: \" + finalencoded[k]);\n\n\t\t\t}\n\n\t\t\tchar [] fin = new char [message_length];\n\n\t\t\tfor(int k = 0; k < message_length; k ++ )\n\t\t\t{\n\n\t\t\t\tif(finalencoded[k] != 27)\n\t\t\t\t{\n\t\t\t\t\tfin[k]= (char)(finalencoded[k]+64);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfin[k] = ' ';\n\t\t\t\t}\n\n\t\t\t\toutput = new String(fin);\n\n\n\n\n\t\t\t}\n\t\t\tSystem.out.print(\"\t\" + output);\n\t\t\tSystem.out.println(\"\");\n\t\t}// big \"5\" for\n\t}", "title": "" }, { "docid": "1e950fb55aea408fec696d30e2a2760d", "score": "0.44949314", "text": "public static List decodeInputData(List<String> input) {\n List<Map> passports = new ArrayList();\n\n Map data = new HashMap<String, String>();\n for (String line : input) {\n\n if (line.length() == 0) {\n passports.add(Map.copyOf(data));\n data.clear();\n } else {\n for (String entry : Arrays.asList(line.split(\" \"))) {\n Pattern pattern = Pattern.compile(\"(?<code>\\\\w{3})(:)(?<value>.+)\");\n Matcher matcher = pattern.matcher(entry);\n matcher.matches();\n data.put(matcher.group(\"code\"), matcher.group(\"value\"));\n }\n }\n }\n passports.add(Map.copyOf(data));\n return passports;\n }", "title": "" }, { "docid": "5dbcddbb52c8be1d764fab90a193eb56", "score": "0.4485154", "text": "private void stringToFormDataMap(String body) {\n\n Pattern pattern = Pattern.compile(\"(\\\\S+)=(\\\\S+)\");\n this.body = new HashMap<String, String>();\n String[] strings = body.split(\"&\");\n for (String kv : strings) {\n Matcher matcher = pattern.matcher(kv);\n if (matcher.find()) {\n ((HashMap) this.body).put(matcher.group(1), matcher.group(2));\n }\n }\n }", "title": "" }, { "docid": "5d10a2496d42790ded86aba150def39e", "score": "0.44828176", "text": "@Override\n public void parse(final String value) {\n init(40);\n /*\n * This parser implementation needs review, the actual field format is not clear in the standard:\n *\n * 422 <MI-message-data-text> 20*(2!c/37x) This field is only for use by Market Infrastructures\n * which have subscribed to the Market Infrastructure Resiliency Service (MIRS).\n *\n * It is not clear how to split one instance to the other between the 12 occurrences\n */\n if (value != null) {\n String[] tokens = StringUtils.split(value, \"/\");\n final StringBuilder lastComponent = new StringBuilder();\n for (int i=0; i<tokens.length; i++) {\n if (i < 40) {\n //set all components sequentially, but the last one\n setComponent(i+1, tokens[i]);\n } else {\n //the last component will include all the remaining string\n if (lastComponent.length() > 0) {\n lastComponent.append(\"/\");\n }\n lastComponent.append(tokens[i]);\n }\n }\n if (lastComponent.length() > 0) {\n setComponent40(lastComponent.toString());\n }\n }\n }", "title": "" }, { "docid": "cafd77648b86b47643ca70d03dd29236", "score": "0.44778004", "text": "public Object[] getInputData(String s) {\n\t\tint numParameters = 7;\n\t\tObject[] data = new Object[numParameters];\n\t\tString[] input = s.split(\" \");\n\t\tString[] time = input[0].split(\"[:.]\");\n\t\tdata[0] = Integer.parseInt(time[0]);\n\t\tdata[1] = Integer.parseInt(time[1]);\n\t\tdata[2] = Integer.parseInt(time[2]);\n\t\tdata[3] = Integer.parseInt(time[3]);\n\t\tdata[4] = Integer.parseInt(input[1]);\n\t\tif (input[2].toUpperCase().equals(\"UP\")) data[5] = Direction.UP;\n\t\telse if (input[2].toUpperCase().equals(\"DOWN\")) data[5] = Direction.DOWN;\n\t\tdata[6] = Integer.parseInt(input[3]);\n\t\t\n\t\treturn data;\n\t}", "title": "" }, { "docid": "851130ff2c2f1e18ee7b65ee273c0783", "score": "0.44771075", "text": "private static String m5678b(List<Pair<String, String>> list, boolean z) {\n StringBuilder sb = new StringBuilder();\n boolean z2 = true;\n for (Pair pair : list) {\n try {\n if (pair.first != null) {\n if (pair.second != null) {\n StringBuilder sb2 = new StringBuilder();\n if (z2) {\n z2 = false;\n } else {\n sb2.append(\"&\");\n }\n if (z) {\n sb2.append(URLEncoder.encode(URLDecoder.decode((String) pair.first, C2793C.UTF8_NAME), C2793C.UTF8_NAME));\n sb2.append(\"=\");\n sb2.append(URLEncoder.encode(URLDecoder.decode((String) pair.second, C2793C.UTF8_NAME), C2793C.UTF8_NAME));\n } else {\n sb2.append(URLEncoder.encode((String) pair.first, C2793C.UTF8_NAME));\n sb2.append(\"=\");\n sb2.append(URLEncoder.encode((String) pair.second, C2793C.UTF8_NAME));\n }\n StringBuilder sb3 = new StringBuilder(\"params: key: \");\n sb3.append((String) pair.first);\n sb3.append(\" value: \");\n sb3.append((String) pair.second);\n sb.append(sb2);\n }\n }\n } catch (Throwable unused) {\n }\n }\n new StringBuilder(\"raw params: \").append(sb.toString());\n return sb.toString();\n }", "title": "" }, { "docid": "cd65d121d8a76f25c21720dc81014a95", "score": "0.44755417", "text": "public static String getPayload(String des) {\n String[] destArray = des.split(\"-\");\n return des.substring(2, destArray[0].length()) + \"-\";\n }", "title": "" }, { "docid": "3f3db0c6e1b03d9021a438836ea281c0", "score": "0.44639188", "text": "public List<String> decode(String s) {\n\t\t\tint i = 0, n = s.length();\n\t\t\tList<String> output = new ArrayList<>();\n\t\t\twhile (i < n) {\n\t\t\t\tint length = stringToInt(s.substring(i, i + 4));\n\t\t\t\ti += 4;\n\t\t\t\toutput.add(s.substring(i, i + length));\n\t\t\t\ti += length;\n\t\t\t}\n\t\t\treturn output;\n\t\t}", "title": "" }, { "docid": "923e12500ebf8d1626032eac326180bc", "score": "0.44569138", "text": "public static Packet lineAsPacket(String line) throws Exception {\n String tsVal = \"\"; // timestamp raw string value\n String canLine = null;\n int len = line.length();\n\n if (line.startsWith(\"20\")) {\n if (line.length() >= 23) {\n tsVal = line.substring(0, 23);\n Date timeStamp = logDateFormatter.parse(tsVal);\n canLine = line.substring(24) + \"\\n\";\n if (canLine.length() > 5) {\n Packet p = new PacketImpl(canLine, timeStamp);\n return p;\n }\n }\n } else if (len >= 42 && len <= 44) {\n String[] parts = line.split(\",\");\n if (parts.length == 2) {\n tsVal = parts[0].replace(\"\\\"\", \"\");\n canLine = parts[1];\n Date timeStamp = captureDateFormatter.parse(tsVal);\n String pid = canLine.substring(0, 3);\n StringBuffer buf = new StringBuffer();\n buf.append(pid);\n buf.append(\" 8 \");\n for (int i = 3; i < canLine.length(); i += 2) {\n buf.append(canLine.charAt(i));\n buf.append(canLine.charAt(i + 1));\n buf.append(\" \");\n }\n Packet p = new PacketImpl(buf.toString(), timeStamp);\n return p;\n }\n } else {\n // LOGGER.log(Level.INFO, \"len: \" + len);\n }\n return null;\n }", "title": "" }, { "docid": "0ff28248b8b760ab119fac653f2a7a97", "score": "0.44370478", "text": "public void converter(String args, String Shiki){\n \r\n String Input = args;// = \"{\\\"pois\\\":[{\\\"poiid\\\":\\\"B2094757D065A7FB4593\\\",\\\"title\\\":\\\"\\\\u6771\\\\u4eac\\\\u5927\\\\u5b66\\\",\\\"address\\\":null,\\\"lon\\\":\\\"139.76222229\\\",\\\"lat\\\":\\\"35.713333129\\\",\\\"category\\\":\\\"52\\\",\\\"city\\\":\\\"80081\\\",\\\"province\\\":\\\"\\\",\\\"country\\\":\\\"80081\\\",\\\"url\\\":null,\\\"phone\\\":null,\\\"postcode\\\":null,\\\"weibo_id\\\":\\\"0\\\",\\\"icon\\\":\\\"http:\\\\/\\\\/u1.sinaimg.cn\\\\/upload\\\\/lbs\\\\/poi\\\\/icon\\\\/88\\\\/52.png\\\",\\\"categorys\\\":\\\"51 52\\\",\\\"category_name\\\":\\\"\\\\u9ad8\\\\u7b49\\\\u9662\\\\u6821\\\",\\\"map\\\":\\\"http:\\\\/\\\\/maps.google.cn\\\\/maps\\\\/api\\\\/staticmap?center=35.713333129,139.76222229&zoom=15&size=120x120&maptype=roadmap&markers=35.713333129,139.76222229&sensor=true\\\",\\\"poi_pic\\\":\\\"http:\\\\/\\\\/ww1.sinaimg.cn\\\\/large\\\\/4e704b16jw1emqz2ggcb4j204g04gwek.jpg\\\",\\\"pintu\\\":1,\\\"poi_street_address\\\":\\\"\\\\u65e5\\\\u672c,\\\\u4e1c\\\\u4eac\\\\u5e02,\\\\u6587\\\\u4eac\\\\u533a,\\\\uff17\\\\u4e01\\\\u76ee \\\",\\\"checkin_user_num\\\":\\\"516\\\",\\\"herenow_user_num\\\":0,\\\"selected\\\":0,\\\"icon_show\\\":[],\\\"enterprise\\\":0,\\\"checkin_num\\\":760,\\\"tip_num\\\":0,\\\"photo_num\\\":376,\\\"todo_num\\\":0},{\\\"poiid\\\":\\\"B2094751D469A2F8429B\\\",\\\"title\\\":\\\"\\\\u6771\\\\u4eac\\\\u5927\\\\u5b66\\\",\\\"address\\\":null,\\\"lon\\\":\\\"139.6879772203249\\\",\\\"lat\\\":\\\"35.66191800167653\\\",\\\"category\\\":\\\"253\\\",\\\"city\\\":\\\"80081\\\",\\\"province\\\":\\\"\\\",\\\"country\\\":\\\"80081\\\",\\\"url\\\":null,\\\"phone\\\":null,\\\"postcode\\\":null,\\\"weibo_id\\\":\\\"0\\\",\\\"icon\\\":\\\"http:\\\\/\\\\/u1.sinaimg.cn\\\\/upload\\\\/lbs\\\\/poi\\\\/icon\\\\/88\\\\/253.png\\\",\\\"categorys\\\":\\\"51 253\\\",\\\"category_name\\\":\\\"\\\\u6821\\\\u56ed\\\\u751f\\\\u6d3b\\\",\\\"map\\\":\\\"http:\\\\/\\\\/maps.google.cn\\\\/maps\\\\/api\\\\/staticmap?center=35.66191800167653,139.6879772203249&zoom=15&size=120x120&maptype=roadmap&markers=35.66191800167653,139.6879772203249&sensor=true\\\",\\\"poi_pic\\\":\\\"http:\\\\/\\\\/ww3.sinaimg.cn\\\\/large\\\\/4e704b16jw1emq9jlzouej204g04gglp.jpg\\\",\\\"pintu\\\":1,\\\"poi_street_address\\\":\\\"\\\",\\\"checkin_user_num\\\":\\\"53\\\",\\\"herenow_user_num\\\":0,\\\"selected\\\":0,\\\"icon_show\\\":[],\\\"enterprise\\\":0,\\\"checkin_num\\\":79,\\\"tip_num\\\":0,\\\"photo_num\\\":49,\\\"todo_num\\\":0},{\\\"poiid\\\":\\\"B2094757D165A6F84598\\\",\\\"title\\\":\\\"\\\\u4e1c\\\\u4eac\\\\u5927\\\\u5b66\\\",\\\"address\\\":\\\"\\\\u65e5\\\\u672c\\\\u4e1c\\\\u4eac\\\\u672c\\\\u4e61\\\\u4e09\\\\u4e01\\\\u76ee\\\",\\\"lon\\\":\\\"139.762516066\\\",\\\"lat\\\":\\\"35.7125428\\\",\\\"category\\\":\\\"253\\\",\\\"city\\\":\\\"80081\\\",\\\"province\\\":\\\"\\\",\\\"country\\\":\\\"80081\\\",\\\"url\\\":null,\\\"phone\\\":null,\\\"postcode\\\":null,\\\"weibo_id\\\":\\\"0\\\",\\\"icon\\\":\\\"http:\\\\/\\\\/u1.sinaimg.cn\\\\/upload\\\\/lbs\\\\/poi\\\\/icon\\\\/88\\\\/253.png\\\",\\\"categorys\\\":\\\"51 253\\\",\\\"category_name\\\":\\\"\\\\u6821\\\\u56ed\\\\u751f\\\\u6d3b\\\",\\\"map\\\":\\\"http:\\\\/\\\\/maps.google.cn\\\\/maps\\\\/api\\\\/staticmap?center=35.7125428,139.762516066&zoom=15&size=120x120&maptype=roadmap&markers=35.7125428,139.762516066&sensor=true\\\",\\\"poi_pic\\\":\\\"http:\\\\/\\\\/ww4.sinaimg.cn\\\\/large\\\\/4e704b16jw1elmj5r3e42j204g04g0ss.jpg\\\",\\\"pintu\\\":1,\\\"poi_street_address\\\":\\\"\\\\u65e5\\\\u672c,\\\\u4e1c\\\\u4eac\\\\u5e02,\\\\u6587\\\\u4eac\\\\u533a,\\\\uff16\\\\u4e01\\\\u76ee \\\\uff12\\\\uff16\\\",\\\"checkin_user_num\\\":\\\"47\\\",\\\"herenow_user_num\\\":0,\\\"selected\\\":0,\\\"icon_show\\\":[],\\\"enterprise\\\":0,\\\"checkin_num\\\":51,\\\"tip_num\\\":0,\\\"photo_num\\\":23,\\\"todo_num\\\":0},{\\\"poiid\\\":\\\"B2094752DA6BA0FC4492\\\",\\\"title\\\":\\\"\\\\u4e1c\\\\u4eac\\\\u5927\\\\u5b66\\\",\\\"address\\\":\\\"\\\\u65e5\\\\u672c\\\\u4e1c\\\\u4eac\\\\u76ee\\\\u9ed1\\\\u533a\\\",\\\"lon\\\":\\\"139.681557\\\",\\\"lat\\\":\\\"35.661011\\\",\\\"category\\\":\\\"500\\\",\\\"city\\\":\\\"80081\\\",\\\"province\\\":\\\"\\\",\\\"country\\\":\\\"80081\\\",\\\"url\\\":null,\\\"phone\\\":null,\\\"postcode\\\":null,\\\"weibo_id\\\":\\\"0\\\",\\\"icon\\\":\\\"http:\\\\/\\\\/u1.sinaimg.cn\\\\/upload\\\\/lbs\\\\/poi\\\\/icon\\\\/88\\\\/500.png\\\",\\\"categorys\\\":\\\"500\\\",\\\"category_name\\\":\\\"\\\\u672a\\\\u77e5\\\\u5206\\\\u7c7b\\\",\\\"map\\\":\\\"http:\\\\/\\\\/maps.google.cn\\\\/maps\\\\/api\\\\/staticmap?center=35.661011,139.681557&zoom=15&size=120x120&maptype=roadmap&markers=35.661011,139.681557&sensor=true\\\",\\\"poi_pic\\\":\\\"http:\\\\/\\\\/ww3.sinaimg.cn\\\\/large\\\\/4e704b16jw1ely7zxhbzzj204g04g0sp.jpg\\\",\\\"pintu\\\":1,\\\"poi_street_address\\\":\\\"\\\",\\\"checkin_user_num\\\":\\\"27\\\",\\\"herenow_user_num\\\":0,\\\"selected\\\":0,\\\"icon_show\\\":[],\\\"enterprise\\\":0,\\\"checkin_num\\\":36,\\\"tip_num\\\":0,\\\"photo_num\\\":20,\\\"todo_num\\\":0},{\\\"poiid\\\":\\\"B2094752DB68A4FA409F\\\",\\\"title\\\":\\\"\\\\u6771\\\\u4eac\\\\u5927\\\\u5b66\\\",\\\"address\\\":\\\"\\\\u6771\\\\u4eac\\\",\\\"lon\\\":\\\"139.801351\\\",\\\"lat\\\":\\\"35.676614\\\",\\\"category\\\":\\\"500\\\",\\\"city\\\":\\\"80081\\\",\\\"province\\\":\\\"\\\",\\\"country\\\":\\\"80081\\\",\\\"url\\\":null,\\\"phone\\\":null,\\\"postcode\\\":null,\\\"weibo_id\\\":\\\"0\\\",\\\"icon\\\":\\\"http:\\\\/\\\\/u1.sinaimg.cn\\\\/upload\\\\/lbs\\\\/poi\\\\/icon\\\\/88\\\\/500.png\\\",\\\"categorys\\\":\\\"500\\\",\\\"category_name\\\":\\\"\\\\u672a\\\\u77e5\\\\u5206\\\\u7c7b\\\",\\\"map\\\":\\\"http:\\\\/\\\\/maps.google.cn\\\\/maps\\\\/api\\\\/staticmap?center=35.676614,139.801351&zoom=15&size=120x120&maptype=roadmap&markers=35.676614,139.801351&sensor=true\\\",\\\"poi_pic\\\":\\\"http:\\\\/\\\\/ww2.sinaimg.cn\\\\/large\\\\/4e704b16jw1emsvobdbjhj204g04gmxa.jpg\\\",\\\"pintu\\\":1,\\\"poi_street_address\\\":\\\"\\\",\\\"checkin_user_num\\\":\\\"25\\\",\\\"herenow_user_num\\\":0,\\\"selected\\\":0,\\\"icon_show\\\":[],\\\"enterprise\\\":0,\\\"checkin_num\\\":27,\\\"tip_num\\\":0,\\\"photo_num\\\":16,\\\"todo_num\\\":0},{\\\"poiid\\\":\\\"B2094753D36FA5FB499E\\\",\\\"title\\\":\\\"\\\\u6771\\\\u4eac\\\\u5927\\\\u5b66\\\",\\\"address\\\":\\\"\\\\u8d64\\\\u9580\\\",\\\"lon\\\":\\\"139.7920882\\\",\\\"lat\\\":\\\"35.8678552\\\",\\\"category\\\":\\\"500\\\",\\\"city\\\":\\\"80081\\\",\\\"province\\\":\\\"\\\",\\\"country\\\":\\\"80081\\\",\\\"url\\\":null,\\\"phone\\\":null,\\\"postcode\\\":null,\\\"weibo_id\\\":\\\"0\\\",\\\"icon\\\":\\\"http:\\\\/\\\\/u1.sinaimg.cn\\\\/upload\\\\/lbs\\\\/poi\\\\/icon\\\\/88\\\\/500.png\\\",\\\"categorys\\\":\\\"500\\\",\\\"category_name\\\":\\\"\\\\u672a\\\\u77e5\\\\u5206\\\\u7c7b\\\",\\\"map\\\":\\\"http:\\\\/\\\\/maps.google.cn\\\\/maps\\\\/api\\\\/staticmap?center=35.8678552,139.7920882&zoom=15&size=120x120&maptype=roadmap&markers=35.8678552,139.7920882&sensor=true\\\",\\\"poi_pic\\\":\\\"http:\\\\/\\\\/ww1.sinaimg.cn\\\\/large\\\\/4e704b16jw1em3dpzn4wej204g04gmx8.jpg\\\",\\\"pintu\\\":1,\\\"poi_street_address\\\":\\\"\\\",\\\"checkin_user_num\\\":\\\"6\\\",\\\"herenow_user_num\\\":0,\\\"selected\\\":0,\\\"icon_show\\\":[],\\\"enterprise\\\":0,\\\"checkin_num\\\":6,\\\"tip_num\\\":0,\\\"photo_num\\\":4,\\\"todo_num\\\":0},{\\\"poiid\\\":\\\"B2094757D16DA3FF4093\\\",\\\"title\\\":\\\"\\\\u56fd\\\\u7acb\\\\u6771\\\\u4eac\\\\u5927\\\\u5b66\\\\u99d2\\\\u5834\\\\u30ad\\\\u30e3\\\\u30f3\\\\u30d1\\\\u30b9\\\",\\\"address\\\":\\\"\\\\u65e5\\\\u672c\\\\u3012153-8904 \\\\u6771\\\\u4eac\\\\u90fd\\\\u76ee\\\\u9ed2\\\\u533a\\\\u99d2\\\\u5834\\\\uff14\\\\u4e01\\\\u76ee\\\\uff16\\\\u2212\\\\uff11\\\",\\\"lon\\\":\\\"139.678253174\\\",\\\"lat\\\":\\\"35.6619415283\\\",\\\"category\\\":\\\"500\\\",\\\"city\\\":\\\"80081\\\",\\\"province\\\":\\\"\\\",\\\"country\\\":\\\"80081\\\",\\\"url\\\":null,\\\"phone\\\":null,\\\"postcode\\\":null,\\\"weibo_id\\\":\\\"0\\\",\\\"icon\\\":\\\"http:\\\\/\\\\/u1.sinaimg.cn\\\\/upload\\\\/lbs\\\\/poi\\\\/icon\\\\/88\\\\/500.png\\\",\\\"categorys\\\":\\\"500\\\",\\\"category_name\\\":\\\"\\\\u672a\\\\u77e5\\\\u5206\\\\u7c7b\\\",\\\"map\\\":\\\"http:\\\\/\\\\/maps.google.cn\\\\/maps\\\\/api\\\\/staticmap?center=35.6619415283,139.678253174&zoom=15&size=120x120&maptype=roadmap&markers=35.6619415283,139.678253174&sensor=true\\\",\\\"poi_pic\\\":\\\"http:\\\\/\\\\/ww1.sinaimg.cn\\\\/large\\\\/4e704b16jw1ellqa18ipnj204g04gmxa.jpg\\\",\\\"pintu\\\":1,\\\"poi_street_address\\\":\\\"\\\\u65e5\\\\u672c,\\\\u4e1c\\\\u4eac\\\\u5e02,\\\\u76ee\\\\u9ed1\\\\u533a,\\\\uff14\\\\u4e01\\\\u76ee \\\\uff13\\\",\\\"checkin_user_num\\\":\\\"99\\\",\\\"herenow_user_num\\\":0,\\\"selected\\\":0,\\\"icon_show\\\":[],\\\"enterprise\\\":0,\\\"checkin_num\\\":201,\\\"tip_num\\\":0,\\\"photo_num\\\":87,\\\"todo_num\\\":0},{\\\"poiid\\\":\\\"B2094456D268A1FC459C\\\",\\\"title\\\":\\\"\\\\u6771\\\\u4eac\\\\u5927\\\\u5b66(\\\\u6559\\\\u990a\\\\u5b66\\\\u90e8)\\\",\\\"address\\\":null,\\\"lon\\\":\\\"139.68483\\\",\\\"lat\\\":\\\"35.659849\\\",\\\"category\\\":\\\"52\\\",\\\"city\\\":\\\"80081\\\",\\\"province\\\":\\\"\\\",\\\"country\\\":\\\"80081\\\",\\\"url\\\":null,\\\"phone\\\":null,\\\"postcode\\\":null,\\\"weibo_id\\\":\\\"0\\\",\\\"icon\\\":\\\"http:\\\\/\\\\/u1.sinaimg.cn\\\\/upload\\\\/lbs\\\\/poi\\\\/icon\\\\/88\\\\/52.png\\\",\\\"categorys\\\":\\\"51 52\\\",\\\"category_name\\\":\\\"\\\\u9ad8\\\\u7b49\\\\u9662\\\\u6821\\\",\\\"map\\\":\\\"http:\\\\/\\\\/maps.google.cn\\\\/maps\\\\/api\\\\/staticmap?center=35.659849,139.68483&zoom=15&size=120x120&maptype=roadmap&markers=35.659849,139.68483&sensor=true\\\",\\\"poi_pic\\\":\\\"http:\\\\/\\\\/ww1.sinaimg.cn\\\\/large\\\\/4e704b16jw1emlvnspraxj204g04gwej.jpg\\\",\\\"pintu\\\":1,\\\"poi_street_address\\\":\\\"\\\",\\\"checkin_user_num\\\":\\\"24\\\",\\\"herenow_user_num\\\":0,\\\"selected\\\":0,\\\"icon_show\\\":[],\\\"enterprise\\\":0,\\\"checkin_num\\\":27,\\\"tip_num\\\":0,\\\"photo_num\\\":18,\\\"todo_num\\\":0},{\\\"poiid\\\":\\\"B2094752D76BAAFF449E\\\",\\\"title\\\":\\\"\\\\u4e1c\\\\u4eac\\\\u5927\\\\u5b66\\\\u67cf\\\\u6821\\\\u533a\\\",\\\"address\\\":null,\\\"lon\\\":\\\"139.938555\\\",\\\"lat\\\":\\\"35.9021\\\",\\\"category\\\":\\\"500\\\",\\\"city\\\":\\\"80081\\\",\\\"province\\\":\\\"\\\",\\\"country\\\":\\\"80081\\\",\\\"url\\\":null,\\\"phone\\\":null,\\\"postcode\\\":null,\\\"weibo_id\\\":\\\"0\\\",\\\"icon\\\":\\\"http:\\\\/\\\\/u1.sinaimg.cn\\\\/upload\\\\/lbs\\\\/poi\\\\/icon\\\\/88\\\\/500.png\\\",\\\"categorys\\\":\\\"500\\\",\\\"category_name\\\":\\\"\\\\u672a\\\\u77e5\\\\u5206\\\\u7c7b\\\",\\\"map\\\":\\\"http:\\\\/\\\\/maps.google.cn\\\\/maps\\\\/api\\\\/staticmap?center=35.9021,139.938555&zoom=15&size=120x120&maptype=roadmap&markers=35.9021,139.938555&sensor=true\\\",\\\"poi_pic\\\":\\\"http:\\\\/\\\\/ww4.sinaimg.cn\\\\/large\\\\/4e704b16jw1elydrx1s52j204g04gdfx.jpg\\\",\\\"pintu\\\":1,\\\"poi_street_address\\\":\\\"\\\",\\\"checkin_user_num\\\":\\\"27\\\",\\\"herenow_user_num\\\":0,\\\"selected\\\":0,\\\"icon_show\\\":[],\\\"enterprise\\\":0,\\\"checkin_num\\\":138,\\\"tip_num\\\":0,\\\"photo_num\\\":44,\\\"todo_num\\\":0},{\\\"poiid\\\":\\\"B2094456D36FA4FA439D\\\",\\\"title\\\":\\\"\\\\u6771\\\\u4eac\\\\u5927\\\\u5b66\\\\u672c\\\\u90f7\\\\u30ad\\\\u30e3\\\\u30f3\\\\u30d1\\\\u30b9\\\",\\\"address\\\":null,\\\"lon\\\":\\\"139.7610245\\\",\\\"lat\\\":\\\"35.7131535\\\",\\\"category\\\":\\\"52\\\",\\\"city\\\":\\\"80081\\\",\\\"province\\\":\\\"\\\",\\\"country\\\":\\\"80081\\\",\\\"url\\\":null,\\\"phone\\\":null,\\\"postcode\\\":null,\\\"weibo_id\\\":\\\"0\\\",\\\"icon\\\":\\\"http:\\\\/\\\\/u1.sinaimg.cn\\\\/upload\\\\/lbs\\\\/poi\\\\/icon\\\\/88\\\\/52.png\\\",\\\"categorys\\\":\\\"51 52\\\",\\\"category_name\\\":\\\"\\\\u9ad8\\\\u7b49\\\\u9662\\\\u6821\\\",\\\"map\\\":\\\"http:\\\\/\\\\/maps.google.cn\\\\/maps\\\\/api\\\\/staticmap?center=35.7131535,139.7610245&zoom=15&size=120x120&maptype=roadmap&markers=35.7131535,139.7610245&sensor=true\\\",\\\"poi_pic\\\":\\\"http:\\\\/\\\\/ww4.sinaimg.cn\\\\/large\\\\/4e704b16jw1emeewxp6t1j204g04g74b.jpg\\\",\\\"pintu\\\":1,\\\"poi_street_address\\\":\\\"\\\",\\\"checkin_user_num\\\":\\\"8\\\",\\\"herenow_user_num\\\":0,\\\"selected\\\":0,\\\"icon_show\\\":[],\\\"enterprise\\\":0,\\\"checkin_num\\\":11,\\\"tip_num\\\":0,\\\"photo_num\\\":6,\\\"todo_num\\\":0}],\\\"total_number\\\":304}\";\r\n Pattern p = Pattern.compile(Shiki); \r\n Matcher m = p.matcher(Input); \r\n while(m.find()){ \r\n String group = m.group();\r\n //System.out.println(group);\r\n POIIDs.add(group);\r\n Kekka = POIIDs.get(0);\r\n System.out.println(POIIDs.get(0));\r\n //i++;\r\n }\r\n }", "title": "" }, { "docid": "3832f9d52647d81beb5290b00ec9d849", "score": "0.44258276", "text": "public static void main(String args[]) {\r\n\t\t// String X = \"abcd8625\";\r\n\t\t// String[] str = { \"abcd8625\", \"abcide\",\"zabe\",\"yhajcde Rama is good Rama\"};\r\n\t\tString[] str = { \"abc\", \"12abc\",\"xyz456\",\"xyz2\",\"45xyz\",\"z2\",\"abc\"};\r\n\t\t// { \"abcd8625\", \"zxabce\" ,\"abcide\",\"yhabjcde Rama is good Rama\"}\r\n\t\t/*\r\n\t\t * String str1=\"abcide\"; String str2=\"zxabcde\"; String\r\n\t\t * str3=\"yhabjcde Rama is good Rama\";\r\n\t\t */\r\n\t\t// String Y = String.join(\" \", str1,str2,str3);\r\n\t\t// System.out.println(Y);\r\n\t\t// String h= \" Rama is good Rama\";\r\n\t\t// sm.put(X, 0);\r\n\t\tint m = 0;\r\n\t\tint n = 0;\r\n\t\tint length = 0;\r\n\t\tfor (int i = 0; i < str.length; i++) {\r\n\t\t\tString X = str[i];\r\n\r\n\t\t\tfor (int j = 0; j < str.length; j++) {\r\n\t\t\t\tString Y = str[j];\r\n\t\t\t\t\r\n\t\t\t\tif(!X.equals(Y))\r\n\t\t\t\tprintLCSubStr(X, Y, X.length(), Y.length());\r\n\r\n\t\t\t}\r\n\t\t\t// ss.remove(ss.last());\r\n\t\t\tSystem.out.println(ss.size());\r\n\t\t\tsm.put(X, ss.last());\r\n\t\t\t// sm.forEach((key, value) -> System.out.println(key + \" : \" + value));\r\n\t\t\t\r\n\t\t\tss.clear();\r\n\t\t}\r\n\t\t// sm.put(str[str.length-1], 0);\r\n\t\tSystem.out.println(\"***********************\");\r\n\t\tsm.entrySet().stream().sorted(Map.Entry.<String, Integer>comparingByValue().reversed())\r\n\t\t\t\t.forEach(System.out::println);\r\n\t}", "title": "" }, { "docid": "5adacb3b64856b9e858c3d613cc22b4f", "score": "0.44230396", "text": "public void parseCSV(ArrayList<String> messageCSV2) {\r\n\r\n\t\tint date2;\r\n\t\tint name1;\r\n\t\tint name2;\r\n\t\tint time1;\r\n\t\tint time2;\r\n\t\tint data1;\r\n\t\tint hour;\r\n\t\tString name;\r\n\t\tString date;\r\n\t\tString time;\r\n\t\tString data;\r\n\r\n\r\n\t\tfor(String readLine : messageCSV2) {\r\n\t\t\t//System.out.println(readLine);\r\n\t\t\t//if(readLine.contains(\"\\\"����â\\\"\")) System.out.println(readLine);\r\n\t\t\tif(readLine.startsWith(\"201\")) {\r\n\t\t\t\tname1 = readLine.indexOf(\"\\\"\");\r\n\t\t\t\tname2 = readLine.indexOf(\"\\\"\", name1+1);\r\n\t\t\t\ttime1 = readLine.indexOf(\" \")+1;\r\n\t\t\t\ttime2 = readLine.indexOf(\":\")+2;\r\n\t\t\t\tdata1 = readLine.indexOf(\"\\\"\", name2 +1);\r\n\t\t\t\ttime = readLine.substring(time1, time2+1);\r\n\t\t\t\thour = Integer.parseInt(time.substring(0, 2));\r\n\r\n\t\t\t\t// System.out.println(\"[\" + time + \"]\");\r\n\r\n\t\t\t\tif(hour == 0) time = \"오전 \" + \"12\" + time.substring(2, time.length());\r\n\t\t\t\telse if(0 < hour && hour < 10) time = \r\n\t\t\t\t\t\t\"오전 \" +time.substring(1, time.length());\r\n\t\t\t\telse if(hour == 11 || hour == 10) time = \"오전 \" + time;\r\n\t\t\t\telse if(hour == 12) time = \"오후 \" + time.substring(0, time.length());\r\n\t\t\t\telse if(hour > 12) time = \"오후 \" + (hour-12) + time.substring(2, time.length());\r\n\r\n\t\t\t\tname = readLine.substring(name1+1, name2);\r\n\t\t\t\tif(readLine.endsWith(\"\\\"\")) data = readLine.substring(data1+1, readLine.length()-1); \r\n\t\t\t\telse data = readLine.substring(data1+1, readLine.length());\r\n\t\t\t\tif(data.equals(\"Photo\"))data = \"사진\";\r\n\r\n\t\t\t\t// System.out.println(\"[\" + name + \"] \"+\"[\" + time + \"] \" + data);\r\n\t\t\t\tparsedCSVMessage.add(\"[\" + name + \"] \"+\"[\" + time + \"] \" + data.trim());\t\t\r\n\t\t\t} \r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "c15db2bf94a83d91c53263e55089028f", "score": "0.4412746", "text": "@Test\n\tpublic void testSpotFieldsRegex_signalResponse_v1(){\n\t\tLogParserTask task = new LogParserTask();\n\t\ttask.initHeader(\"2014-Jul-07 19:40 14.076 MHz JT9+JT65\");\n\t\tSpot spot = task.parseDecodedSpot(\"1952 -20 -0.2 1231 # W1AW N1ABC -01\");\n\t\t\n\t\tTestCase.assertNotNull(spot);\n\t\tTestCase.assertEquals(\"1952\", spot.getTime());\n\t\tTestCase.assertEquals(\"-20\", spot.getSignalreport());\n\t\tTestCase.assertEquals(\"1231\", spot.getFrequencyOffset());\n\t\tTestCase.assertEquals(\"-0.2\", spot.getTimeDeviation());\n\t\tTestCase.assertEquals(\"W1AW\", spot.getWord1());\n\t\tTestCase.assertEquals(\"N1ABC\", spot.getWord2());\n\t\tTestCase.assertEquals(\"-01\", spot.getWord3());\n\t}", "title": "" }, { "docid": "b5d253beab1d1e8b19ec2ef1f7747d00", "score": "0.4406917", "text": "public static String repeatRemove(String block){\n\t\t\t// 1. delimit with ;\n\t\t\t// 2. delimit with : and store the ID\n\t\t\t// 3. split with ,\n\t\t\t// 4. store one by one and check if repeat, if so discard\n\t\t\t// 5. append inorder of ID:pos1,pos2....,posx\n\t\t\t// 6. append ;\n\t\t\tString []raw =block.split(\";\");\n\t\t\traw = raw[0].split(\":\");\n\t\t\tString ID = raw[0];\n\t\t\tString []temp = new String[countOccurences(raw[1],\",\")+1];\n\t\t\tString []record = raw[1].split(\",\");\n\t\t\tint list_count=0;\n\t\t\tfor(String x : record){\n\t\t\t\tboolean isRepeated = false;\n\t\t\t\tfor(String y : temp){\n\t\t\t\t\tif (y == null) break;\n\t\t\t\t\tif (x.equals(y)){\n\t\t\t\t\t\tisRepeated = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!isRepeated){\n\t\t\t\t\t\ttemp[list_count] = x;\n\t\t\t\t\t\tlist_count++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tString result = new String(ID+\":\");\n\t\t\tfor(String y : temp){\n\t\t\t\tif(y== null)break;\n\t\t\t\tif(y.equals(temp[0])){\n\t\t\t\t\tresult = new String(result+y);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tresult = new String(result+\",\"+y);\n\t\t\t}\n\t\t\tresult = new String(result+\";\");\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "c694b0359192472bef66af0324144652", "score": "0.44044566", "text": "private void constructDecodedInstrn() {\n\t\t\n\t\t rsNum = Integer.parseInt(binaryInstrn.substring(6, 11), 2);\n\t\t String offsetBin = binaryInstrn.substring(16, 32) + \"00\";\n\t\t offsetVal = Integer.parseInt(offsetBin, 2);\n rs = rs + rsNum; \n offsetStr = offsetStr + offsetVal;\n decodedInstrn = instrnName + \" \" + rs + \", \" + offsetStr; \n\t\t \n\t}", "title": "" }, { "docid": "d83b85dd03e21536941e1d130b9ad1e8", "score": "0.43976653", "text": "public JSONArray mo25478h(String str) {\n try {\n AdSlotSetter r = InternalContainer.m16746h().mo25498r(String.valueOf(str));\n if (r != null) {\n if (r.f15041y != null) {\n JSONArray jSONArray = new JSONArray();\n for (String str2 : r.f15041y) {\n TmplDiffModel a = TTDynamic.m17541a(str2);\n if (a != null) {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"id\", a.mo25251b());\n jSONObject.put(\"md5\", a.mo25253c());\n jSONArray.put(jSONObject);\n }\n }\n return jSONArray;\n }\n }\n return null;\n } catch (Exception unused) {\n return null;\n }\n }", "title": "" }, { "docid": "bc6e2235483bb9b9d240ccf0c9cc6190", "score": "0.43941277", "text": "public static String[] dataIntoArray(String textString, int lengthInt) {\n String[] temp = textString.split(\",\");\n String[] array = new String[lengthInt];\n int pass = 0;\n int repeat = 0;\n int not_attend = 0;\n int less_attend = 0;\n\n for (int i = 0; i < temp.length; i++) {\n switch (temp[i]) {\n case \"A+\":\n array[i] = \"A+\";\n pass++;\n continue;\n case \"A\":\n array[i] = \"A\";\n pass++;\n continue;\n case \"A-\":\n array[i] = \"A-\";\n pass++;\n continue;\n case \"B+\":\n array[i] = \"B+\";\n pass++;\n continue;\n case \"B\":\n array[i] = \"B\";\n pass++;\n continue;\n case \"B-\":\n array[i] = \"B-\";\n pass++;\n continue;\n case \"C+\":\n array[i] = \"C+\";\n pass++;\n continue;\n case \"C\":\n array[i] = \"C\";\n pass++;\n continue;\n case \"C-\":\n array[i] = \"C-\";\n pass++;\n continue;\n case \"D+\":\n array[i] = \"D+\";\n repeat++;\n continue;\n case \"D\":\n array[i] = \"D\";\n repeat++;\n continue;\n case \"E\":\n array[i] = \"E\";\n repeat++;\n continue;\n case \"ab\":\n array[i] = \"ab\";\n not_attend++;\n continue;\n case \"LA\":\n array[i] = \"LA\";\n less_attend++;\n continue;\n }\n }\n array[array.length - 1] = String.valueOf(less_attend);\n array[array.length - 2] = String.valueOf(not_attend);\n array[array.length - 3] = String.valueOf(repeat);\n array[array.length - 4] = String.valueOf(pass);\n\n return array;\n }", "title": "" }, { "docid": "70da8a4d6587f65bb3c5b4beb0e1516b", "score": "0.43933865", "text": "String m12199a(String str, String str2, String str3) {\n StringBuilder stringBuilder = new StringBuilder(20);\n int i = 0;\n int i2 = 0;\n int i3 = 0;\n int i4 = 0;\n int i5 = 0;\n while (i < this.f8331i.length()) {\n char charAt = this.f8331i.charAt(i);\n switch (charAt) {\n case '#':\n if (i2 >= str.length()) {\n if (i3 == 0) {\n break;\n }\n stringBuilder.append(\" \");\n break;\n }\n stringBuilder.append(str.substring(i2, i2 + 1));\n i2++;\n continue;\n case '(':\n if (i2 < str.length()) {\n i3 = 1;\n break;\n }\n break;\n case 'c':\n if (str2 == null) {\n i5 = 1;\n break;\n }\n stringBuilder.append(str2);\n i5 = 1;\n continue;\n case 'n':\n if (str3 == null) {\n i4 = 1;\n break;\n }\n stringBuilder.append(str3);\n i4 = 1;\n continue;\n }\n if (!(charAt == ' ' && i > 0 && ((this.f8331i.charAt(i - 1) == 'n' && str3 == null) || (this.f8331i.charAt(i - 1) == 'c' && str2 == null))) && (i2 < str.length() || (r3 != 0 && charAt == ')'))) {\n stringBuilder.append(this.f8331i.substring(i, i + 1));\n if (charAt == ')') {\n i3 = 0;\n }\n }\n i++;\n }\n if (str2 != null && r5 == 0) {\n stringBuilder.insert(0, String.format(\"%s \", new Object[]{str2}));\n } else if (str3 != null && r4 == 0) {\n stringBuilder.insert(0, str3);\n }\n return stringBuilder.toString();\n }", "title": "" }, { "docid": "f40e56db781df06ebb4668d06f8e9d32", "score": "0.43897703", "text": "private static String[] m26a(String str) {\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n return str.split(\"#\");\n }", "title": "" }, { "docid": "c05dcdb3411e2d7f5549b9f393637571", "score": "0.43831038", "text": "public void prepareData()\n {\n //to be sent to server \n \tdata = new HashMap<String, Object>(); \t\n \tdata.put(\"pid\",pid); \n \tdata.put(\"nid\", nid);\n \t\n \t//reply tokens\n \treplyTokens = new String[4];\n \treplyTokens[0] = \"appended_post_count\";\n \treplyTokens[1] = \"Unappended_part_count\";\n \treplyTokens[2] = \"appended_post_array\";\n \treplyTokens[3] = \"Unappended_part_array\";\t \t\n }", "title": "" }, { "docid": "8a00ca489a43d1615bff53dd8b448141", "score": "0.4370106", "text": "public static void m17463vF(String str) {\n AppMethodBeat.m2504i(40624);\n String aom = C9797h.aom();\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(str);\n stringBuilder.append(\",\");\n if (!C5046bo.isNullOrNil(aom)) {\n String[] split = aom.split(\",\");\n int i = 1;\n for (String str2 : split) {\n if (!str2.equals(str) && i < 5) {\n stringBuilder.append(str2);\n stringBuilder.append(\",\");\n i++;\n }\n }\n }\n stringBuilder.deleteCharAt(stringBuilder.length() - 1);\n C4990ab.m7411d(\"MicroMsg.AAUtil\", \"recent group: %s\", stringBuilder.toString());\n C1720g.m3537RQ();\n C1720g.m3536RP().mo5239Ry().set(C5127a.USERINFO_RECENT_LAUNCH_AA_GROUP_STRING_SYNC, stringBuilder.toString());\n AppMethodBeat.m2505o(40624);\n }", "title": "" }, { "docid": "51e020ff61d7ed96ebe5e50138a9fb30", "score": "0.43698242", "text": "public static List<String> getpatterns( String revision_id,\n\t\t\tList<Integer> producer_id, String sequence_num,\n\t\t\tList<Integer> advertiser_id, List<Integer> prison_id) \n\t{\n\t\tList<String> patterns = new ArrayList<String>();\n\t\tfor ( int h = 0; h <advertiser_id.size(); h++)\n\t {\n\t\tString shard_id= String.valueOf((advertiser_id.get(h))%21);\n\t\tSystem.out.println(\"Shard_id :\"+shard_id);\n\t\tStringBuilder patternname= new StringBuilder();\n\t\t\n\t\t//TODO : Right now we are returning every revision which is less than the specified revision_id. A filtering needs to be done so that it returns files with the highest revision number.\n\t\t\t\n\t\tif( prison_id.size()==0 && producer_id.size()==0)\n\t\t\t{\n\t\t\t\tpatternname.append(\"shard\"+shard_id+\"_\\\\d{8}_rev\\\\d{1,2}_prison\\\\d{2}_batcher\\\\d{2}_seq\\\\d{1,2}.fb.gz\");\n\t\t\t\tSystem.out.println(\"Pattern: \"+patternname.toString());\n\t\t\t\tpatterns.add(patternname.toString());\n\t\t\t}\n\t\t\telse if(prison_id.size()==0 && producer_id.size()!=0)\n\t\t\t{\t\n\t\t\t\tfor(int i=0 ; i < producer_id.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tString producer= String.format(\"%02d\", producer_id.get(i)); \n\t\t\t\t\tpatternname.append(\"shard\"+shard_id+\"_\\\\d{8}_rev\\\\d{1,2}_prison\\\\d{2}_batcher\"+producer+\"_seq\\\\d{1,2}.fb.gz\");\n\t\t\t\t\tSystem.out.println(\"Pattern: \"+patternname.toString());\n\t\t\t\t\tpatterns.add(patternname.toString());\n\t\t\t\t}\n\t\t }\n\t\t\telse if( prison_id.size()!=0 && producer_id.size()==0)\n\t\t\t{\n\t\t\t\tfor(int i=0 ; i < prison_id.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tString prison= String.format(\"%02d\", prison_id.get(i)); \n\t\t\t\t\tpatternname.append(\"shard\"+shard_id+\"_\\\\d{8}_rev\\\\d{1,2}_prison\"+prison+\"_batcher\\\\d{1,2}_seq\\\\d{1,2}.fb.gz\");\n\t\t\t\t\tSystem.out.println(\"Pattern: \"+patternname.toString());\n\t\t\t\t\tpatterns.add(patternname.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int i=0 ; i < prison_id.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tString prison= String.format(\"%02d\", prison_id.get(i)); \n\t\t\t\t\tfor(int j=0 ; j < producer_id.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tString producer= String.format(\"%02d\", producer_id.get(j)); \n\t\t\t\t\t\tpatternname.append(\"shard\"+shard_id+\"_\\\\d{8}_rev\\\\d{1,2}_prison\"+prison+\"_batcher\"+producer+\"_seq\\\\d{1,2}.fb.gz\");\n\t\t\t\t\t\tSystem.out.println(\"Pattern: \"+patternname.toString());\n\t\t\t\t\t\tpatterns.add(patternname.toString());\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tpatternname.setLength(0);\n\t\t}\n\t\tSystem.out.println(patterns.size());\n\t\treturn patterns;\n\t}", "title": "" }, { "docid": "94708757e72eb9e2cc067da8ea7d86fe", "score": "0.43673158", "text": "public static List<SecurePostData> getObjectFromString(String dataString) {\n\t\tif ( (dataString == null) || (dataString.length() == 0) ) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tSecurePostData spd = null;\n\t\tList<SecurePostData> spdList = new ArrayList<SecurePostData>();\n\n\t\tfor (String s : dataString.split(\"\\n\")) {\n\t\t\tif (s.equals(token_title_message)) {\n\t\t\t\tif (spd != null) {\n\t\t\t\t\tspdList.add(spd);\n\t\t\t\t}\n\t\t\t\tspd = new SecurePostData();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (spd == null) {\n\t\t\t\t\tspd = new SecurePostData();\n\t\t\t\t}\n\t\t\t\tif (s.startsWith(token_verified)) {\n\t\t\t\t\tspd.setMessageHasBeenVerified(s.substring(token_verified.length()).equals(\"true\"));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(token_timeout)) {\n\t\t\t\t\tspd.setMessageTimedOut(s.substring(token_timeout.length()).equals(\"true\"));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(token_bad_sig)) {\n\t\t\t\t\tspd.setBadSig(s.substring(token_bad_sig.length()).equals(\"true\"));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(token_no_key)) {\n\t\t\t\t\tspd.setNoPrivateKey(s.substring(token_no_key.length()).equals(\"true\"));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(token_originator_host)) {\n\t\t\t\t\tspd.setOriginatorHost(s.substring(token_originator_host.length()));\n\t\t\t\t}\n\t\t\t\telse if (s.startsWith(token_destination_host)) {\n\t\t\t\t\tspd.setIntendedDestination(s.substring(token_destination_host.length()));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (spd != null) {\n\t\t\t\t\t\tString[] components = s.split(\"=\");\n\t\t\t\t\t\tspd.addPostParm(components[0], components[1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (spd != null) {\n\t\t\tspdList.add(spd);\n\t\t}\n\t\t\n\t\treturn spdList;\n\t}", "title": "" }, { "docid": "7e6142beb342775b346ed809652fa9e4", "score": "0.4363772", "text": "public List<String> decode(String s) {\n\t\t\tList<String> strs = new ArrayList<>();\n\t\t\t\n\t\t\tString[] array = s.split(\" # \", -1);\n\t\t\tfor (int i = 0; i < array.length - 1; ++i)\n\t\t\t\tstrs.add(array[i].replace(\"##\", \"#\"));\n\t\t\treturn strs;\n\t\t}", "title": "" }, { "docid": "bbc505bc804cc11eed94a6d537c325b9", "score": "0.43634582", "text": "protected C0624a m555a(boolean z, String str, String... strArr) {\n int i = 0;\n String a = m558a(z, str);\n List linkedList = new LinkedList();\n for (int i2 = 0; i2 < strArr.length; i2 += 2) {\n linkedList.add(new BasicNameValuePair(strArr[i2], strArr[i2 + 1]));\n }\n if (z) {\n String[] genCsrfCode = DkPublic.genCsrfCode();\n while (i < genCsrfCode.length) {\n linkedList.add(new BasicNameValuePair(genCsrfCode[i], genCsrfCode[i + 1]));\n i += 2;\n }\n }\n C0624a a2 = new C0626c().m2856b(a).m2853a(HttpPost.METHOD_NAME).m2854a(linkedList).m2851a();\n if (z) {\n mo1566b(a2);\n }\n return a2;\n }", "title": "" }, { "docid": "529a873ad173e91909637d9a47a70800", "score": "0.4360108", "text": "public void collect(String s) {\n String lines[] = new String[4];\n\n if (EString.match(s, \"*reasmb: *\", lines)) {\n if (lastReasemb == null) {\n System.out.println(\"Error: no last reasemb\");\n return;\n }\n lastReasemb.add(lines[1]);\n }\n else if (EString.match(s, \"*decomp: *\", lines)) {\n if (lastDecomp == null) {\n System.out.println(\"Error: no last decomp\");\n return;\n }\n lastReasemb = new ReasembList();\n String temp = new String(lines[1]);\n if (EString.match(temp, \"$ *\", lines)) {\n lastDecomp.add(lines[0], true, lastReasemb);\n } else {\n lastDecomp.add(temp, false, lastReasemb);\n }\n }\n else if (EString.match(s, \"*key: * #*\", lines)) {\n lastDecomp = new DecompList();\n lastReasemb = null;\n int n = 0;\n if (lines[2].length() != 0) {\n try {\n n = Integer.parseInt(lines[2]);\n } catch (NumberFormatException e) {\n System.out.println(\"Number is wrong in key: \" + lines[2]);\n }\n }\n keys.add(lines[1], n, lastDecomp);\n }\n else if (EString.match(s, \"*key: *\", lines)) {\n lastDecomp = new DecompList();\n lastReasemb = null;\n keys.add(lines[1], 0, lastDecomp);\n }\n else if (EString.match(s, \"*synon: * *\", lines)) {\n WordList words = new WordList();\n words.add(lines[1]);\n s = lines[2];\n while (EString.match(s, \"* *\", lines)) {\n words.add(lines[0]);\n s = lines[1];\n }\n words.add(s);\n syns.add(words);\n }\n else if (EString.match(s, \"*pre: * *\", lines)) {\n pre.add(lines[1], lines[2]);\n }\n else if (EString.match(s, \"*post: * *\", lines)) {\n post.add(lines[1], lines[2]);\n }\n else if (EString.match(s, \"*initial: *\", lines)) {\n initial = lines[1];\n }\n else if (EString.match(s, \"*final: *\", lines)) {\n finl = lines[1];\n }\n else if (EString.match(s, \"*quit: *\", lines)) {\n quit.add(\" \" + lines[1]+ \" \");\n }\n else {\n System.out.println(\"Unrecognized input: \" + s);\n }\n }", "title": "" }, { "docid": "f18064bf2e5bba7666c90a48573a44ce", "score": "0.4343217", "text": "@Test\r\n\tpublic void testConversion() {\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t String addressCode=\"10101;121213;11115\";\r\n\t String[] split = addressCode.split(\";\");\r\n\t int length = split.length;\r\n\t System.out.println(length);\r\n\t System.out.println(split[0]);\r\n\t System.out.println(split[1]);\r\n\t System.out.println(split[2]);\r\n\t \r\n\t}", "title": "" }, { "docid": "5efe07ade39cf06ba331c18445be8453", "score": "0.43344885", "text": "static void method_9607() {\r\n String[] var5 = new String[3];\r\n int var3 = 0;\r\n String var2 = \"X5aä>ž›<&fé>—Ï1ië$†Ï~5\\'é$…Šnpsí*œÏq9iì&‡‚<&fé>—Î2Q9iì&‡‚<&fé>—Ï1ië$†Ï~5\\'ç\\\"•ˆy\\\"\\'ñ#“<=fý\\\"Ÿšqpqä\\'‡Š=2X5aä>ž›<&fé>—Ï1ië$†Ï~5\\'ç\\\"•ˆy\\\"\\'ñ#“<=fý\\\"Ÿšqpqä\\'‡Š=\";\r\n int var4 = \"X5aä>ž›<&fé>—Ï1ië$†Ï~5\\'é$…Šnpsí*œÏq9iì&‡‚<&fé>—Î2Q9iì&‡‚<&fé>—Ï1ië$†Ï~5\\'ç\\\"•ˆy\\\"\\'ñ#“<=fý\\\"Ÿšqpqä\\'‡Š=2X5aä>ž›<&fé>—Ï1ië$†Ï~5\\'ç\\\"•ˆy\\\"\\'ñ#“<=fý\\\"Ÿšqpqä\\'‡Š=\".length();\r\n char var1 = 49;\r\n int var0 = -1;\r\n\r\n while(true) {\r\n ++var0;\r\n String var10002 = var2.substring(var0, var0 + var1);\r\n boolean var10000 = true;\r\n char[] var10003 = var10002.toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var9 = true;\r\n char[] var8 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var6 = 0;\r\n\r\n while(true) {\r\n var10003 = var8;\r\n var8 = var10001;\r\n var10001 = var10003;\r\n char[] var10 = var8;\r\n var8 = var10003;\r\n if(var10003 <= var6) {\r\n var5[var3++] = (new String((char[])var9)).intern();\r\n if((var0 += var1) >= var4) {\r\n field_9019 = var5;\r\n return;\r\n }\r\n\r\n var1 = var2.charAt(var0);\r\n break;\r\n }\r\n\r\n char var10007 = (char)((Object[])var9)[var6];\r\n short var10009;\r\n switch(var6 % 7) {\r\n case 0:\r\n var10009 = 194;\r\n break;\r\n case 1:\r\n var10009 = 142;\r\n break;\r\n case 2:\r\n var10009 = 217;\r\n break;\r\n case 3:\r\n var10009 = 91;\r\n break;\r\n case 4:\r\n var10009 = 149;\r\n break;\r\n case 5:\r\n var10009 = 44;\r\n break;\r\n default:\r\n var10009 = 49;\r\n }\r\n\r\n ((Object[])var9)[var6] = (char)(var10007 ^ var10 ^ var10009);\r\n ++var6;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "302959a6655db3ef9d2de21298cf4ac0", "score": "0.4333134", "text": "private String getR317(String recno) {\n\t\tString val = \"\";\n\t\tfor (int i=0; i<vdf302.size(); i++) {\n\t\t\tif (vdf302.get(i).A999.equals(recno)) {\n\t\t\t\tval += vdf302.get(i).val;\n\t\t\t\tif (val.length()==4) break;\n\t\t\t}\n\t\t}\n//\t\tlong timeSpent = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(recno + \": \"+ timeSpent);\n\t\treturn val;\n\t}", "title": "" }, { "docid": "be37cdd455a970fe063450bd5903a6a1", "score": "0.4331815", "text": "public void findHashtag(String s, int id_post) {\n\t\t\n\t\t// Effettuo una pulizia dai caratteri speciali e dai caratteri che disturbano l'hashtag\n\t\tReplaceChar r = new ReplaceChar();\n\t\ts = r.change(s);\n\t\ts = s.replaceAll(\"[,.;:!?)(»]\", \" \");\n\t\ts = s.replaceAll(\"\\\"\", \" \");\n\t\t\n\t\t// Riduco più spazi vuoti vicini in un unico spazio vuoto\n\t\ts = s.replaceAll(\" +\", \" \");\n\t\t\n\t\t// Splitto la stringa dopo ogni spazio\n\t\tappoggio = s.split(\" \");\n\t\tfor (int i = 0; i < appoggio.length; i++) {\n\t\t\t\n\t\t\t//A causa della pulizia dei caratteri potrebbe esserci uno spazio vuoto fra # e la parola\n\t\t\t//quindi se trovo il carattere # lo concateco con il successivo termine\n\t\t\tif (appoggio[i].equals(\"#\") && (i+1)!=appoggio.length) {\n\t\t\t\tappoggio[i] = appoggio[i] + appoggio[i + 1];\n\t\t\t}\n\t\t\t\n\t\t\tif (appoggio[i].contains(\"#\")) {\n\t\t\t\tString[] ap = appoggio[i].split(\"#\");\n\t\t\t\tif (ap.length == 2) {\n\t\t\t\t\t// Controllo la già presenza della parola per quel post\n\t\t\t\t\trs = Database.Query(\"SELECT * FROM hashtag WHERE name='#\"+ ap[1] + \"' AND id_post='\" + id_post + \"'\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!rs.next()) {\n\t\t\t\t\t\t\t// Inserisco se non presente\n\t\t\t\t\t\t\tDatabase.Query(\"INSERT INTO hashtag(name,id_post) VALUES('#\"+ ap[1] + \"','\" + id_post + \"')\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// Scrivo errore su file\n\t\t\t\t\t\tnew WriteConsole(e, \"Error from rssfedd n°\"+ Capture.nrss + \" errore estrazione hashtag\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a8e7cee0c23c2e86d29c0a95df458ceb", "score": "0.4330701", "text": "public void testParse_MAG3_CPRS_TIU_NOTE() \n\tthrows VistaParsingException\n\t{\n\n\t\tString vistaResponse = \n\t\t\t\"12^12 Images for the selected TIU NOTE^481^PATIENT,ONEZEROTWOTHREE OPHTHALMOLOGIST CONSULT NOTE 17 Mar 04@15:42:16^8811\\n\" +\n\t\t\t\"B2^8800^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008800.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008800.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:41^^^\\n\" +\n\t\t\t\"B2^8801^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008801.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008801.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:42^^^\\n\" +\n\t\t\t\"B2^8802^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008802.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008802.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:42^^^\\n\" +\n\t\t\t\"B2^8803^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008803.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008803.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:43^^^\\n\" + \n\t\t\t\"B2^8804^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008804.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008804.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:43^^^\\n\" +\n\t\t\t\"B2^8805^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008805.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008805.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:43^^^\\n\" +\n\t\t\t\"B2^8806^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008806.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008806.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:43^^^\\n\" +\n\t\t\t\"B2^8807^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008807.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008807.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:44^^^\\n\" +\n\t\t\t\"B2^8808^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008808.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008808.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:44^^^\\n\" +\n\t\t\t\"B2^8809^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008809.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008809.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:44^^^\\n\" +\n\t\t\t\"B2^8810^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008810.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008810.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:45^^^\\n\" +\n\t\t\t\"B2^8811^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008811.DCM^\\\\\\\\vhaiswimmixvi1\\\\image1$\\\\DM00\\\\00\\\\00\\\\00\\\\88\\\\DM000000008811.ABS^OPHTHALMOLOGIST CONSULT NOTE^3040317^100^OT^03/17/2004^^M^A^^^1^1^SLC^^^1023^PATIENT,ONEZEROTWOTHREE^CLIN^03/17/2004 15:46:45^^^\";\n\t\t\n\t\tList<VistaImage> vistaImages = \n\t\t\tVistaImagingTranslator.extractVistaImageListFromVistaResult(vistaResponse);\n\t}", "title": "" }, { "docid": "6774a4be3a7a7c54d3a48304f0cd2443", "score": "0.43248004", "text": "public static String m5695n(String str, String str2) {\n String[] split;\n String str3 = \"\";\n String cookie = android.webkit.CookieManager.getInstance().getCookie(str);\n if (cookie == null) {\n return \"\";\n }\n for (String str4 : cookie.split(\";\")) {\n if (str4.contains(str2)) {\n String[] split2 = str4.split(\"=\");\n if (split2.length <= 1) {\n return \"\";\n }\n str3 = split2[1];\n }\n }\n return str3;\n }", "title": "" }, { "docid": "1cb1390e4641b20e7c67e2cb7bcfddd5", "score": "0.43220013", "text": "public List<String> decode(String s) {\n List<String> res = new ArrayList();\n if (s == null || s.length() == 0) {\n return res;\n }\n String[] strs = s.split(\"/#/\");\n for (String str : strs) {\n if (str.equals(\"?#?\")) {\n res.add(\"\");\n } else {\n res.add(str.replaceAll(\"##\", \"#\"));\n }\n }\n return res;\n }", "title": "" }, { "docid": "7de89b48083c42f7673de8526f97ca63", "score": "0.4318235", "text": "protected void parseTel(String ssp) {\r\n try {\r\n String[] parameters = ssp.split(\";\");\r\n int iparm = 0;\r\n while (iparm < parameters.length) {\r\n String pair = parameters[iparm ++];\r\n int equalPos = pair.indexOf(\"=\");\r\n String key = \"\";\r\n String value = \"true\";\r\n if (equalPos < 0) { // key only, no value\r\n key = pair;\r\n if (iparm == 1) {\r\n key = \"telno\";\r\n value = pair;\r\n }\r\n } else {\r\n key = pair.substring(0, equalPos);\r\n value = pair.substring(equalPos + 1);\r\n }\r\n addParam(key, pctDecode(value, UTF8)); // unshield\r\n } // while iparm\r\n } catch (Exception exc) {\r\n log.error(exc.getMessage(), exc);\r\n }\r\n }", "title": "" }, { "docid": "c0c851d9c1a511c1821a03929a8e0248", "score": "0.4314205", "text": "public final String mo2052b(String str) {\n char c;\n String str2;\n String str3;\n String str4 = str;\n StringBuilder sb = new StringBuilder();\n sb.append(str4);\n sb.append(this.f1657b);\n if (this.f1658c != null) {\n sb.append('<');\n sb.append(this.f1658c);\n sb.append('>');\n }\n sb.append(' ');\n String[] strArr = this.f1656a;\n if (strArr.length > 0) {\n Slice.m1631a(sb, strArr);\n sb.append(' ');\n }\n String str5 = str4 + \" \";\n String str6 = this.f1657b;\n char c2 = 3;\n switch (str6.hashCode()) {\n case -1422950858:\n if (str6.equals(\"action\")) {\n c = 1;\n break;\n }\n c = 65535;\n break;\n case 104431:\n if (str6.equals(\"int\")) {\n c = 4;\n break;\n }\n c = 65535;\n break;\n case 3327612:\n if (str6.equals(\"long\")) {\n c = 5;\n break;\n }\n c = 65535;\n break;\n case 3556653:\n if (str6.equals(\"text\")) {\n c = 2;\n break;\n }\n c = 65535;\n break;\n case 100313435:\n if (str6.equals(\"image\")) {\n c = 3;\n break;\n }\n c = 65535;\n break;\n case 109526418:\n if (str6.equals(\"slice\")) {\n c = 0;\n break;\n }\n c = 65535;\n break;\n default:\n c = 65535;\n break;\n }\n if (c == 0) {\n sb.append(\"{\\n\");\n sb.append(mo2056f().mo2044a(str5));\n sb.append(10);\n sb.append(str4);\n sb.append('}');\n } else if (c == 1) {\n Object obj = ((C1240of) this.f1659d).f26798a;\n sb.append('[');\n sb.append(obj);\n sb.append(\"] {\\n\");\n sb.append(mo2056f().mo2044a(str5));\n sb.append(10);\n sb.append(str4);\n sb.append('}');\n } else if (c == 2) {\n sb.append('\\\"');\n sb.append(mo2051b());\n sb.append('\\\"');\n } else if (c == 3) {\n sb.append(mo2053c());\n } else if (c != 4) {\n if (c != 5) {\n switch (str6.hashCode()) {\n case -1422950858:\n break;\n case 104431:\n if (str6.equals(\"int\")) {\n c2 = 4;\n break;\n }\n c2 = 65535;\n break;\n case 3327612:\n if (str6.equals(\"long\")) {\n c2 = 5;\n break;\n }\n c2 = 65535;\n break;\n case 3556653:\n if (str6.equals(\"text\")) {\n c2 = 1;\n break;\n }\n c2 = 65535;\n break;\n case 100313435:\n if (str6.equals(\"image\")) {\n c2 = 2;\n break;\n }\n c2 = 65535;\n break;\n case 100358090:\n if (str6.equals(\"input\")) {\n c2 = 6;\n break;\n }\n c2 = 65535;\n break;\n case 109526418:\n if (str6.equals(\"slice\")) {\n c2 = 0;\n break;\n }\n c2 = 65535;\n break;\n default:\n c2 = 65535;\n break;\n }\n switch (c2) {\n case 0:\n str3 = \"Slice\";\n break;\n case 1:\n str3 = \"Text\";\n break;\n case 2:\n str3 = \"Image\";\n break;\n case 3:\n str3 = \"Action\";\n break;\n case 4:\n str3 = \"Int\";\n break;\n case 5:\n str3 = \"Long\";\n break;\n case 6:\n str3 = \"RemoteInput\";\n break;\n default:\n str3 = \"Unrecognized format: \" + str6;\n break;\n }\n sb.append(str3);\n } else if (!\"millis\".equals(this.f1658c)) {\n sb.append(mo2057g());\n sb.append('L');\n } else if (mo2057g() == -1) {\n sb.append(\"INFINITY\");\n } else {\n sb.append(DateUtils.getRelativeTimeSpanString(mo2057g(), Calendar.getInstance().getTimeInMillis(), 1000, AndroidInputTypeSignal.TYPE_TEXT_FLAG_IME_MULTI_LINE));\n }\n } else if (\"color\".equals(this.f1658c)) {\n int e = mo2055e();\n sb.append(String.format(\"a=0x%02x r=0x%02x g=0x%02x b=0x%02x\", Integer.valueOf(Color.alpha(e)), Integer.valueOf(Color.red(e)), Integer.valueOf(Color.green(e)), Integer.valueOf(Color.blue(e))));\n } else if (\"layout_direction\".equals(this.f1658c)) {\n int e2 = mo2055e();\n if (e2 != 0) {\n str2 = e2 != 1 ? e2 != 2 ? e2 != 3 ? Integer.toString(e2) : \"LOCALE\" : \"INHERIT\" : \"RTL\";\n } else {\n str2 = \"LTR\";\n }\n sb.append(str2);\n } else {\n sb.append(mo2055e());\n }\n sb.append(\"\\n\");\n return sb.toString();\n }", "title": "" }, { "docid": "3e74afff73ab313cf31d599c0020b41b", "score": "0.42970943", "text": "public List<String> decode(String s) {\n\t\t\tList<String> strs = Stream.of(s.split(\" # \", -1))\n\t\t\t\t\t\t\t\t\t .map(t -> t.replace(\"##\", \"#\"))\n\t\t\t\t\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\n\t\t\tstrs.remove(strs.size() - 1);\n\t\t\treturn strs;\n\t\t}", "title": "" }, { "docid": "42a7a37ff856f5686b502b101af25c10", "score": "0.42941687", "text": "public static void handle2() {\n String line = \"<param name=\\\"zip_name\\\" value=\\\"temp name(this is the data)\";\n// Pattern pattern = Pattern.compile(\"([a-zA-Z]*?)(\\\\d+)(\\\\w*)\");\n Pattern pattern = Pattern.compile(\"<param name=\\\"zip_name\\\" value=\\\"temp\\\\s+([A-Za-z]+)\\\\s*[(]\\\\s*(.*)[)]\\\\s*\");\n\n Matcher m = pattern.matcher(line);\n if(m.matches()) {\n System.out.println(m.group(1));\n System.out.println(m.group(2));\n }\n if (m.find()) {\n //\n }\n }", "title": "" }, { "docid": "46c5fc059fcf908ab84a46e41afcfaee", "score": "0.42930663", "text": "public static void main(String[] args) {\n\n String s = \"555372654\";\n\n String s1 = \"0 - 22 1985--324\";\n\n String s2 = \"00-44 48 5555 8361\";\n }", "title": "" }, { "docid": "6e7e6177b6482f346a2a049c6113eecf", "score": "0.4292226", "text": "private byte[] createMessageArray(String data){\n\t\tassert(data!= null);\n\t\tassert(data.length()>0);\n\t\tassert(invariant());\n\t\t\n\t\tint length = 1+3+destination.length()+seperator.length()+data.length(); // startByte+lengthField+Destination+Seperator+Data\n\t\tbyte[] bytes = new byte[length]; \n\t\t/*START CHAR*/\n\t\tbytes[0]=0x01;\n\t\t/*LENGHTH*/\n\t\tString len = String.valueOf(length);\n\t\tbytes[1] = '0'; //filling the length field with 0 first\n\t\tbytes[2] = '0';\n\t\tbytes[3] = '0';\n\t\tfor(int i=0; i<len.length(); i++){\n\t\t\tbytes[i+1+(3-len.length())] = (byte)(int)(len.charAt(i)); //some ugly casting to get the ASCII code of each character as a byte.\n\t\t}\n\t\t/*DESTINATION*/\n\t\tfor(int i=0; i<destination.length(); i++){\n\t\t\tbytes[i+4] = (byte)(int)(destination.charAt(i)); \n\t\t}\n\t\t/*SEPERATOR*/\n\t\tfor(int i=0; i<seperator.length(); i++){\n\t\t\tbytes[i+4+destination.length()] = (byte)(int)(seperator.charAt(i)); \n\t\t}\n\t\t/*DATA*/\n\t\tfor(int i=0; i< data.length(); i++){\n\t\t\tbytes[i+1+3+destination.length()+seperator.length()] = (byte)(int)(data.charAt(i));\n\t\t}\n\t\t//for(int i=0; i<bytes.length; i++){ System.out.print(Character.toString ((char) bytes[i])); }\n\t\tassert(invariant());\n\t\tassert(bytes[0]==(byte)(1));\n\t\tassert(bytes[length-1] == (byte)(int)(';'));\n\t\tassert(bytes.length>0);\n\t\treturn bytes;\n\t}", "title": "" }, { "docid": "594e8bdd988fc2389954a68bd2f1affd", "score": "0.4287196", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tScanner theScanner = new Scanner(System.in);\r\n\t\tString tweet = \"\";\r\n\t\ttweet = theScanner.nextLine(); //from user\r\n\t\ttheScanner.close();\r\n\t\t\r\n\t\tString type, detail, location, latitudeString, longitudeString;\r\n\t\t\r\n\t\tDouble latitude, longitude; \r\n\t\tint start, finish; \r\n\t\t\r\n\t\t//for type\r\n\t\tstart = tweet.indexOf(\"#typ\") + 5; //starts the value for type\r\n\t\tfinish = tweet.indexOf(';');\t\t//ends the value for type\r\n\t\ttype = tweet.substring(start, finish); //assigns type\r\n\t\ttype = type.trim(); \t//trims any white space \r\n\t\tSystem.out.println(\"Type: \\t\\t\" + type.toUpperCase()); //prints type info in upper case\r\n\t\ttweet = (tweet.substring(finish+1)); //parses tweet so we can gather next set of info\r\n\t\t\r\n\t\t\r\n\t\t//for detail\r\n\t\tstart = tweet.indexOf(\"#det\") + 5;\r\n\t\tfinish = tweet.indexOf(';');\t\t\r\n\t\tdetail = tweet.substring(start, finish);\r\n\t\tdetail = detail.trim();\r\n\t\tdetail = detail.replace(',','-'); //replaces commas with a dash to prevent any errors when further analyzing info\r\n\t\tSystem.out.println(\"Detail: \\t\" + detail);\r\n\t\ttweet = (tweet.substring(finish+1)); \r\n\t\t\r\n\t\t\r\n\t\t//for location\r\n\t\tstart = tweet.indexOf(\"#loc\") + 5;\r\n\t\tfinish = tweet.indexOf(';');\t\t\r\n\t\tlocation = tweet.substring(start, finish);\r\n\t\tlocation = location.replace(',', '-');\r\n\t\tlocation = location.trim();\t\t\r\n\t\tSystem.out.println(\"Location: \\t\" + location);\r\n\t\ttweet = (tweet.substring(finish+1)); \r\n\t\t\r\n\t\t//for latitudeString\r\n\t\tstart = tweet.indexOf(\"#lat\") + 5;\r\n\t\tfinish = tweet.indexOf(\";\");\t\t\r\n\t\tlatitudeString = tweet.substring(start, finish);\r\n\t\tlatitudeString = latitudeString.trim();\t\t\r\n\t\tSystem.out.println(\"Latitude: \\t\" + latitudeString);\r\n\t\ttweet = (tweet.substring(finish+1)); \r\n\t\t//to get the double value from the latitude string\r\n\t\ttheScanner = new Scanner(latitudeString);\r\n\t\tlatitude = theScanner.nextDouble(); \r\n\t\ttheScanner.close();\r\n\t\t\r\n\t\t//for longitudeString\r\n\t\tstart = tweet.indexOf(\"#lng\") + 5;\r\n\t\tfinish = tweet.indexOf(\";\");\t\t\r\n\t\tlongitudeString = tweet.substring(start, finish);\r\n\t\tlongitudeString = longitudeString.trim();\r\n\t\tSystem.out.println(\"Longitude: \\t\" + longitudeString);\r\n\t\ttweet = (tweet.substring(finish+1)); \r\n\t\t//to get the double value from the longitude string\r\n\t\ttheScanner = new Scanner(longitudeString);\r\n\t\tlongitude = theScanner.nextDouble();\r\n\t\ttheScanner.close();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "f11be0dbb80705b3aa3c6f161f485061", "score": "0.42864624", "text": "public static void main(String[] args) throws IOException {\n\n char[] charBuf=new char[1];//length of array should be 1, otherwise got strange issue.\n \n StringBuilder inStringB=new StringBuilder();\n \n //create fileReader FrIn to read characters from input file\n FileReader FrIn=new FileReader(args[0]);\n \n //read characters from input file to charBuf and append them to stringBuilder inStringB\n while(FrIn.read(charBuf)>0){\n //test* System.out.println(charBuf);\n inStringB.append(charBuf);\n }\n \n FrIn.close();\n \n String inFile=inStringB.toString();\n System.out.println(inFile); \n String[] ws = inFile.split(\",\");\n //test* System.out.println(\"the last element of ws is:\"+ws[ws.length-1]);\n\n//做的单词分割,\n\n//如果你要空格分割 String[] ws = inArrayL.split(\" \");\n\n HashMap<String,Integer> hm = new HashMap<String, Integer>();\n\n//初始化HashMap\n\n for(String s:ws)\n\n {\n\n //test* if(s.matches(\"[a-zA-Z]\\\\w+\"))\n\n//这里是一个正则表达式,判断的是第一个必须是字母,后面的是一个字母或多个字母,一个//数字或多个数字\n\n //{\n \t //System.out.println(\"s is:\"+s);\n Integer cou = hm.get(s);\n //System.out.println(\"cou is:\"+cou);\n\n//get()方法将产生一个与键相关联的Integer值,然后这个值被递增,为的是记录标识符的//个数\n\n hm.put(s, cou == null?1:cou+1);\n\n//保存到HashMap中以单词做key,判断单词是否为空,空为1,或则加1\n\n //}\n\n }\n // hm.remove(\"b2\");\n System.out.println(hm);\n \n FileWriter FwOut=new FileWriter(args[1]);\n FwOut.write(hm.toString());\n FwOut.close();\n \n\n//打印HashMap\n\n }", "title": "" }, { "docid": "b36dab051c8ddd5a9abe86d2d979cf95", "score": "0.4284433", "text": "public static void m5665a(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9) {\n final String str10 = str6;\n try {\n if (str10.equals(C1066a.f3526cL) || str10.equals(C1066a.f3530cP)) {\n final String str11 = str5;\n final String str12 = str;\n final String str13 = str2;\n final String str14 = str3;\n final String str15 = str4;\n final String str16 = str7;\n final String str17 = str8;\n final String str18 = str9;\n C13282 r0 = new Runnable() {\n /* JADX WARNING: Failed to process nested try/catch */\n /* JADX WARNING: Missing exception handler attribute for start block: B:4:0x0015 */\n /* JADX WARNING: Removed duplicated region for block: B:10:0x005c */\n /* JADX WARNING: Removed duplicated region for block: B:11:0x005f */\n /* JADX WARNING: Removed duplicated region for block: B:14:0x006f */\n /* JADX WARNING: Removed duplicated region for block: B:15:0x0072 */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final void run() {\n /*\n r6 = this;\n java.lang.String r0 = \"\"\n java.lang.String r1 = \"\"\n java.lang.String r2 = r1 // Catch:{ Throwable -> 0x0015 }\n java.lang.String r3 = \" \"\n java.lang.String r4 = \"_\"\n java.lang.String r2 = r2.replace(r3, r4) // Catch:{ Throwable -> 0x0015 }\n java.lang.String r3 = \"UTF-8\"\n java.lang.String r2 = java.net.URLEncoder.encode(r2, r3) // Catch:{ Throwable -> 0x0015 }\n r0 = r2\n L_0x0015:\n java.lang.String r2 = r2 // Catch:{ Throwable -> 0x0026 }\n java.lang.String r3 = \" \"\n java.lang.String r4 = \"_\"\n java.lang.String r2 = r2.replace(r3, r4) // Catch:{ Throwable -> 0x0026 }\n java.lang.String r3 = \"UTF-8\"\n java.lang.String r2 = java.net.URLEncoder.encode(r2, r3) // Catch:{ Throwable -> 0x0026 }\n r1 = r2\n L_0x0026:\n java.lang.String r2 = \"https://admin.appnext.com/tp12.aspx?tid=%s&vid=%s&osid=%s&auid=%s&session_id=%s&pid=%s&ref=%s&ads_type=%s&bid=%s&cid=%s\"\n r3 = 10\n java.lang.Object[] r3 = new java.lang.Object[r3]\n r4 = 0\n java.lang.String r5 = r3\n r3[r4] = r5\n r4 = 1\n java.lang.String r5 = r4\n r3[r4] = r5\n r4 = 2\n java.lang.String r5 = \"100\"\n r3[r4] = r5\n r4 = 3\n java.lang.String r5 = r5\n r3[r4] = r5\n r4 = 4\n r3[r4] = r0\n r0 = 5\n java.lang.String r4 = r6\n r3[r0] = r4\n r0 = 6\n r3[r0] = r1\n r0 = 7\n java.lang.String r1 = r7\n r3[r0] = r1\n r0 = 8\n java.lang.String r1 = r8\n java.lang.String r4 = \"\"\n boolean r1 = r1.equals(r4)\n if (r1 == 0) goto L_0x005f\n java.lang.String r1 = \"0\"\n goto L_0x0061\n L_0x005f:\n java.lang.String r1 = r8\n L_0x0061:\n r3[r0] = r1\n r0 = 9\n java.lang.String r1 = r9\n java.lang.String r4 = \"\"\n boolean r1 = r1.equals(r4)\n if (r1 == 0) goto L_0x0072\n java.lang.String r1 = \"0\"\n goto L_0x0074\n L_0x0072:\n java.lang.String r1 = r9\n L_0x0074:\n r3[r0] = r1\n java.lang.String r0 = java.lang.String.format(r2, r3)\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ Throwable -> 0x0089 }\n java.lang.String r2 = \"report: \"\n r1.<init>(r2) // Catch:{ Throwable -> 0x0089 }\n r1.append(r0) // Catch:{ Throwable -> 0x0089 }\n r1 = 0\n com.appnext.core.C1326f.m5659a(r0, r1) // Catch:{ Throwable -> 0x0089 }\n return\n L_0x0089:\n r0 = move-exception\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n java.lang.String r2 = \"report error: \"\n r1.<init>(r2)\n java.lang.String r0 = r0.getMessage()\n r1.append(r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.appnext.core.C1326f.C13282.run():void\");\n }\n };\n new Thread(r0).start();\n }\n } catch (Throwable unused) {\n }\n }", "title": "" }, { "docid": "5404fca1a7b56a974c009a4d0d040671", "score": "0.42791536", "text": "public static ArrayList getSegmentData3(byte [] string, int string_bit_length, int segment_bit_length)\r\n {\r\n \tboolean debug1 = false;\r\n \tboolean debug2 = true;\r\n \t\r\n \tint number_of_segments = string_bit_length / segment_bit_length;\r\n \tint segment_byte_length = segment_bit_length / 8;\r\n \tint remainder = string_bit_length % segment_bit_length;\r\n \tint last_segment_bit_length = segment_bit_length + remainder;\r\n \tint last_segment_byte_length = segment_byte_length + remainder / 8;\r\n \tif(remainder % 8 != 0)\r\n \t\tlast_segment_byte_length++; \r\n \t\r\n \tArrayList init_list = new ArrayList();\r\n \t\r\n \r\n for(int i = 0; i < number_of_segments - 1; i++)\r\n {\r\n byte [] segment = new byte[segment_byte_length];\t\r\n byte [] processed_segment = new byte[2 * segment_byte_length];\r\n byte [] compressed_segment = new byte[2 * segment_byte_length];\r\n \r\n for(int j = 0; j < segment_byte_length; j++)\r\n segment[j] = string[i * segment_byte_length + j];\r\n \r\n double zero_ratio = getZeroRatio(segment, segment_bit_length);\r\n \r\n if(zero_ratio >= .5)\r\n {\r\n \tint compression_amount = getCompressionAmount(segment, segment_bit_length, 0);\r\n \t\r\n \tif(compression_amount < 0)\r\n \t{\r\n \t\tint compression_length = compressZeroStrings2(segment, segment_bit_length, compressed_segment);\r\n \t\tint byte_length = compression_length / 8 + 1;\r\n \t\tif(compression_length % 8 != 0)\r\n \t\t\tbyte_length++;\r\n \t\tbyte [] clipped_string = new byte[byte_length];\r\n \t\tfor(int j = 0; j < byte_length; j++)\r\n \t\t\tclipped_string[j] = compressed_segment[j];\r\n \t\tArrayList segment_list = new ArrayList();\r\n \t\tsegment_list.add(segment_bit_length);\r\n \t\tsegment_list.add(compression_length);\r\n \t\tsegment_list.add(clipped_string);\r\n \t\tinit_list.add(segment_list);\r\n \t}\r\n \telse\r\n \t{\r\n \t\tbyte [] clipped_string = new byte[segment_byte_length + 1];\r\n \t\tfor(int j = 0; j < segment_byte_length; j++)\r\n \t\t\tclipped_string[j] = segment[j];\r\n \t\tclipped_string[segment_byte_length] = 0;\r\n \t\tArrayList segment_list = new ArrayList();\r\n \t\tsegment_list.add(segment_bit_length);\r\n \t\tsegment_list.add(segment_bit_length);\r\n \t\tsegment_list.add(clipped_string);\r\n \t\tinit_list.add(segment_list);\r\n \t}\r\n }\r\n else\r\n {\r\n \tint compression_amount = getCompressionAmount(segment, segment_bit_length, 1);\r\n \t\r\n \tif(compression_amount < 0)\r\n \t{\r\n \t\tint compression_length = compressOneStrings2(segment, segment_bit_length, compressed_segment);\r\n \t\tint byte_length = compression_length / 8 + 1;\r\n \t\tif(compression_length % 8 != 0)\r\n \t\t\tbyte_length++;\r\n \t\tbyte [] clipped_string = new byte[byte_length];\r\n \t\tfor(int j = 0; j < byte_length; j++)\r\n \t\t\tclipped_string[j] = compressed_segment[j];\r\n \t\tArrayList segment_list = new ArrayList();\r\n \t\tsegment_list.add(segment_bit_length);\r\n \t\tsegment_list.add(compression_length);\r\n \t\tsegment_list.add(clipped_string);\r\n \t\tinit_list.add(segment_list);\r\n \t\t\t\r\n \t}\r\n \telse\r\n \t{\r\n \t\tbyte [] clipped_string = new byte[segment_byte_length + 1];\r\n \t\tfor(int j = 0; j < segment_byte_length; j++)\r\n \t\t\tclipped_string[j] = segment[j];\r\n \t\tclipped_string[segment_byte_length] = 0;\r\n \t\tArrayList segment_list = new ArrayList();\r\n \t\tsegment_list.add(segment_bit_length);\r\n \t\tsegment_list.add(segment_bit_length);\r\n \t\tsegment_list.add(clipped_string);\r\n \t\tinit_list.add(segment_list);\r\n \t}\t\r\n }\r\n }\r\n \t\r\n \tint i = number_of_segments - 1;\r\n \tbyte [] segment = new byte[last_segment_byte_length];\t\r\n byte [] compressed_segment = new byte[2 * last_segment_byte_length];\r\n byte [] processed_segment = new byte[2 * last_segment_byte_length];\r\n \r\n for(int j = 0; j < last_segment_byte_length; j++)\r\n segment[j] = string[i * segment_byte_length + j];\r\n \r\n double zero_ratio = getZeroRatio(segment, last_segment_bit_length);\r\n \r\n if(zero_ratio >= .5)\r\n {\r\n \tint compression_amount = getCompressionAmount(segment, last_segment_bit_length, 0);\r\n \tif(compression_amount < 0)\r\n \t{\r\n \t\tint compression_length = compressZeroStrings2(segment, last_segment_bit_length, compressed_segment);\r\n \t\t\r\n \t\tint byte_length = compression_length / 8 + 1;\r\n \t\tif(compression_length % 8 != 0)\r\n \t\t\tbyte_length++;\r\n \t\tbyte [] clipped_string = new byte[byte_length];\r\n \t\tfor(int j = 0; j < byte_length; j++)\r\n \t\t\tclipped_string[j] = compressed_segment[j];\r\n \t\tArrayList segment_list = new ArrayList();\r\n \t\tsegment_list.add(segment_bit_length);\r\n \t\tsegment_list.add(compression_length);\r\n \t\tsegment_list.add(clipped_string);\r\n \t\tinit_list.add(segment_list);\r\n \t\t\t\r\n \t\t\tif(debug1)\r\n \t\t\t{\r\n \t\t\t System.out.println(\"Compression length 0 is \" + compression_length);\r\n \t\t\t int decompression_length = decompressZeroStrings(compressed_segment, compression_length, processed_segment);\r\n \t\t\t System.out.println(\"Decompression length 0 is \" + decompression_length);\r\n \t\t\t boolean same_string = true;\r\n \t\t\t for(int j = 0; j < segment.length; j++)\r\n \t\t\t {\r\n \t\t\t\t if(segment[j] != processed_segment[j])\r\n \t\t\t\t\t same_string = false;\r\n \t\t\t }\r\n \t\t\t if(!same_string)\r\n \t\t\t\t System.out.println(\"Processed data is not the same as original data.\");\r\n \t\t\t System.out.println();\r\n \t\t\t}\r\n \t}\r\n \telse\r\n \t{\r\n \t\tbyte [] clipped_string = new byte[last_segment_byte_length + 1];\r\n \t\tfor(int j = 0; j < last_segment_byte_length; j++)\r\n \t\t\tclipped_string[j] = segment[j];\r\n \t\tclipped_string[last_segment_byte_length] = 0;\r\n \t\tArrayList segment_list = new ArrayList();\r\n \t\tsegment_list.add(segment_bit_length);\r\n \t\tsegment_list.add(segment_bit_length);\r\n \t\tsegment_list.add(clipped_string);\r\n \t\tinit_list.add(segment_list);\r\n \t}\r\n }\r\n else\r\n {\r\n \tint compression_amount = getCompressionAmount(segment, last_segment_bit_length, 1);\r\n \tif(compression_amount < 0)\r\n \t{\r\n \t\tint compression_length = compressOneStrings2(segment, last_segment_bit_length, compressed_segment);\r\n \t\tint byte_length = compression_length / 8 + 1;\r\n \t\tif(compression_length % 8 != 0)\r\n \t\t\tbyte_length++;\r\n \t\tbyte [] clipped_string = new byte[byte_length];\r\n \t\tfor(int j = 0; j < byte_length; j++)\r\n \t\t\tclipped_string[j] = compressed_segment[j];\r\n \t\tArrayList segment_list = new ArrayList();\r\n \t\tsegment_list.add(last_segment_bit_length);\r\n \t\tsegment_list.add(compression_length);\r\n \t\tsegment_list.add(clipped_string);\r\n \t\tinit_list.add(segment_list);\r\n \t\t\t\r\n \t\t\tif(debug1)\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"Compression length 1 is \" + compression_length);\r\n int decompression_length = decompressOneStrings(compressed_segment, compression_length, processed_segment);\r\n \t\t\t System.out.println(\"Decompression length 1 is \" + decompression_length);\r\n \t\t\t boolean same_string = true;\r\n \t\t\t for(int j = 0; j < segment.length; j++)\r\n \t\t\t {\r\n \t\t\t\t if(segment[j] != processed_segment[j])\r\n \t\t\t\t\t same_string = false;\r\n \t\t\t }\r\n \t\t\t if(!same_string)\r\n \t\t\t\t System.out.println(\"Processed data is not the same as original data.\");\r\n \t\t\t System.out.println();\r\n \t\t\t}\r\n \t}\r\n \telse\r\n \t{\r\n \t\tbyte [] clipped_string = new byte[last_segment_byte_length + 1];\r\n \t\tfor(int j = 0; j < last_segment_byte_length; j++)\r\n \t\t\tclipped_string[j] = segment[j];\r\n \t\tclipped_string[last_segment_byte_length] = 0;\r\n \t\tArrayList segment_list = new ArrayList();\r\n \t\tsegment_list.add(last_segment_bit_length);\r\n \t\tsegment_list.add(last_segment_bit_length);\r\n \t\tsegment_list.add(clipped_string);\r\n \t\tinit_list.add(segment_list);\r\n \t}\t\r\n }\r\n \t\r\n\t\tif(debug2)\r\n\t\t{\r\n\t\t double zero_ratio_min = 1;\r\n\t\t double zero_ratio_max = 0.;\r\n\t\t int min_iterations = Integer.MAX_VALUE;\r\n\t\t int max_iterations = 0;\r\n\t\t int number_of_zero_segments = 0;\r\n\t\t int number_of_one_segments = 0;\r\n\t\t int number_of_compressed_segments = 0;\r\n\t\t int max_string_type = -1;\r\n\t\t int min_string_type = -1;\r\n\t\t\r\n\t\t for(i = 0; i < init_list.size(); i++)\r\n {\r\n\t\t\t ArrayList segment_list = (ArrayList)init_list.get(i);\t\r\n\t\t\t\r\n\t\t\t int length = (int)segment_list.get(1);\r\n\t\t\t byte [] data = (byte [])segment_list.get(2);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t zero_ratio = getZeroRatio(data, length);\r\n\t\t\t if(zero_ratio < zero_ratio_min)\r\n\t\t\t\t zero_ratio_min = zero_ratio;\r\n\t\t\t if(zero_ratio > zero_ratio_max)\r\n\t\t\t zero_ratio_max = zero_ratio;\r\n\t\t\t if(zero_ratio >= .5)\r\n\t\t\t number_of_zero_segments++;\r\n\t\t\t else\r\n\t\t\t number_of_one_segments++;\r\n\t\t\t int iterations = getIterations(data, length);\r\n\t\t\t int string_type = getStringType(data, length);\r\n\t\t\t if(iterations > max_iterations)\r\n\t\t\t {\r\n\t\t\t max_iterations = iterations;\r\n\t\t\t max_string_type = string_type;\r\n\t\t\t }\r\n\t\t\t if(iterations < min_iterations)\r\n\t\t\t {\r\n\t\t\t min_iterations = iterations;\r\n\t\t\t min_string_type = string_type;\r\n\t\t\t }\r\n\t\t\t if(iterations > 0)\r\n\t\t\t number_of_compressed_segments++;\r\n\t\t\t}\r\n \t\r\n\t\t System.out.println(\"Initial list has \" + init_list.size() + \" segments.\");\r\n\t\t System.out.println(\"Number of compressed segments is \" + number_of_compressed_segments);\r\n\t\t System.out.println(\"Number of zero segments is \" + number_of_zero_segments);\r\n\t\t System.out.println(\"Number of one segments is \" + number_of_one_segments);\r\n\t\t System.out.println(\"Minimum zero ratio is \" + String.format(\"%.4f\", zero_ratio_min));\r\n\t\t System.out.println(\"Maximum zero ratio is \" + String.format(\"%.4f\", zero_ratio_max));\r\n\t\t System.out.println(\"Minimum iterations is \" + min_iterations);\r\n\t\t System.out.println(\"Minimum string type is \" + min_string_type);\r\n\t\t System.out.println(\"Maximum iterations is \" + max_iterations);\r\n\t\t System.out.println(\"Maximum string type is \" + max_string_type);\r\n\t\t System.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n \t// Finished constructing the initial list.\r\n \t\r\n // Merge similar segments that are adjacent.\r\n \r\n ArrayList previous_list = new ArrayList();\r\n ArrayList current_list = new ArrayList();\r\n int current_number_of_segments = init_list.size();\r\n int previous_number_of_segments = 0;\r\n \r\n for(i = 0; i < init_list.size(); i++)\r\n {\r\n \tArrayList segment_list = (ArrayList)init_list.get(i);\r\n \tprevious_list.add(segment_list);\r\n }\r\n \r\n int current_offset = 0;\r\n while(current_number_of_segments != previous_number_of_segments && current_number_of_segments > 1)\r\n {\r\n \tif(debug1)\r\n \t System.out.println(\"Current number of segments is \" + current_number_of_segments);\r\n \tprevious_number_of_segments = previous_list.size();\r\n \tcurrent_list.clear();\r\n \r\n i = 0;\r\n current_offset = 0;\r\n \r\n \tfor(i = 0; i < previous_number_of_segments - 1; i++)\r\n \t{\r\n \t ArrayList current_segment_list = (ArrayList)previous_list.get(i);\r\n \t ArrayList next_segment_list = (ArrayList)previous_list.get(i + 1);\r\n \t \r\n \t int current_length = (int) current_segment_list.get(0);\r\n \t int next_length = (int) next_segment_list.get(0);\r\n \t int current_t_length = (int) current_segment_list.get(1);\r\n \t int next_t_length = (int) next_segment_list.get(1);\r\n \t byte [] current_string = (byte [])current_segment_list.get(2);\r\n \t byte [] next_string = (byte [])next_segment_list.get(2);\r\n \t \r\n \t int current_type = getStringType(current_string, current_t_length);\r\n \t int next_type = getStringType(next_string, next_t_length);\r\n \t int current_iterations = getIterations(current_string, current_t_length);\r\n \t int next_iterations = getIterations(next_string, next_t_length);\r\n \t \r\n \t if(current_type == next_type && current_iterations > 0 && next_iterations > 0)\r\n \t {\r\n \t \tint merged_length = current_length + next_length;\r\n \t \t\r\n \t \tint byte_offset = current_offset / 8;\r\n \t \tint byte_length = merged_length / 8;\r\n \t \tif(merged_length % 8 != 0)\r\n \t \t\tbyte_length++;\r\n \t \tif(merged_length % 8 != 0 && i != previous_number_of_segments - 2)\r\n \t \t\tSystem.out.println(\"Merged length not evenly divisible by 8 at index = \" + i);\r\n \t \t\r\n \t \tbyte [] merged_segment = new byte[byte_length];\r\n \t \tfor(int j = 0; j < byte_length; j++)\r\n \t \t\tmerged_segment[j] = string[j + byte_offset];\r\n \t \tbyte [] compressed_merged_segment = new byte[2 * byte_length];\r\n \t \tprocessed_segment = new byte[2 * byte_length];\r\n \t \tint merged_compression_length = 0;\r\n \t \tif(current_type == 0)\r\n \t \t{\r\n \t \t merged_compression_length = compressZeroStrings2(merged_segment, merged_length, compressed_merged_segment);\r\n \t \t if(debug1)\r\n \t\t\t{\r\n \t\t\tSystem.out.println(\"Original length is \" + merged_length);\r\n \t\t\t\tSystem.out.println(\"Compression length 0 is \" + merged_compression_length);\r\n int decompression_length = decompressZeroStrings(compressed_merged_segment, merged_compression_length, processed_segment);\r\n \t\t\t System.out.println(\"Decompression length 0 is \" + decompression_length);\r\n \t\t\t boolean same_string = true;\r\n \t\t\t for(int j = 0; j < merged_segment.length; j++)\r\n \t\t\t {\r\n \t\t\t\t if(merged_segment[j] != processed_segment[j])\r\n \t\t\t\t\t same_string = false;\r\n \t\t\t }\r\n \t\t\t if(!same_string)\r\n \t\t\t\t System.out.println(\"Processed data is not the same as original data.\");\r\n \t\t\t int iterations = getIterations(compressed_merged_segment, merged_compression_length);\r\n \t\t\t System.out.println(\"Iterations is \" + iterations);\r\n \t\t\t System.out.println();\r\n \t\t\t}\r\n \t \t}\r\n \t \telse\r\n \t \t{\r\n \t \t\tmerged_compression_length = compressOneStrings2(merged_segment, merged_length, compressed_merged_segment);\r\n \t \t\tif(debug1)\r\n \t\t\t{\r\n \t\t\tSystem.out.println(\"Original length is \" + merged_length);\r\n \t\t\t\tSystem.out.println(\"Compression length 1 is \" + merged_compression_length);\r\n int decompression_length = decompressOneStrings(compressed_merged_segment, merged_compression_length, processed_segment);\r\n \t\t\t System.out.println(\"Decompression length 1 is \" + decompression_length);\r\n \t\t\t boolean same_string = true;\r\n \t\t\t for(int j = 0; j < merged_segment.length; j++)\r\n \t\t\t {\r\n \t\t\t\t if(merged_segment[j] != processed_segment[j])\r\n \t\t\t\t\t same_string = false;\r\n \t\t\t }\r\n \t\t\t if(!same_string)\r\n \t\t\t\t System.out.println(\"Processed data is not the same as original data.\");\r\n \t\t\t int iterations = getIterations(compressed_merged_segment, merged_compression_length);\r\n \t\t\t System.out.println(\"Iterations is \" + iterations);\r\n \t\t\t System.out.println();\r\n \t\t\t}\r\n \t \t}\r\n \t \t\r\n \t \tif(merged_compression_length <= current_t_length + next_t_length)\r\n \t \t{\r\n \t \t\tint compressed_byte_length = merged_compression_length / 8;\r\n \t\t\t\tif(merged_compression_length % 8 != 0)\r\n \t\t\t\t compressed_byte_length++;\r\n \t\t\t\tcompressed_byte_length++;\r\n \t\t\t\tbyte [] segment_string = new byte[compressed_byte_length];\r\n \t\t\t\tfor(int j = 0; j < compressed_byte_length; j++)\r\n \t\t\t\t\tsegment_string[j] = compressed_merged_segment[j];\r\n \t \t\t\r\n \t \t\tArrayList merged_segment_list = new ArrayList();\r\n \t \t\tmerged_segment_list.add(merged_length);\r\n \t \t\tmerged_segment_list.add(merged_compression_length);\r\n \t \t\tmerged_segment_list.add(segment_string);\r\n \t \r\n \t \t\tcurrent_list.add(merged_segment_list);\r\n \t \t\t\r\n \t \t\tcurrent_offset += merged_length;\r\n \t \r\n \t \t\ti++;\r\n \t \t\t\r\n \t \t}\r\n \t \telse\r\n \t \t{\r\n \t \t\tcurrent_list.add(current_segment_list);\r\n \t \t\tcurrent_offset += current_length;\r\n \t \t}\r\n \t }\r\n \t else if(current_iterations == 0 && next_iterations == 0)\r\n \t {\r\n \t \tint merged_length = current_length + next_length;\r\n \t \t\r\n \t \tint byte_offset = current_offset / 8;\r\n \t \tint byte_length = merged_length / 8;\r\n \t \tif(merged_length % 8 != 0)\r\n \t \t\tbyte_length++;\r\n \t \t\r\n \t \tif(merged_length % 8 != 0 && i != previous_number_of_segments - 2)\r\n \t \t\tSystem.out.println(\"Merged length not evenly divisible by 8 at index = \" + i);\r\n \t \tbyte [] merged_segment = new byte[byte_length];\r\n \t \tfor(int j = 0; j < byte_length; j++)\r\n \t \t\tmerged_segment[j] = string[j + byte_offset]; \r\n \t \t\r\n \t \t// Test to see if the merged segments compress.\r\n \t \tdouble merged_ratio = getZeroRatio(merged_segment, merged_length);\r\n \t \tbyte [] compressed_merged_segment = new byte[merged_segment.length * 2];\r\n \t \tint compression_length = 0;\r\n \t \tif(merged_ratio >= .5)\r\n \t \t\tcompression_length = compressZeroStrings2(merged_segment, merged_length, compressed_merged_segment);\r\n \t \telse\r\n \t \t\tcompression_length = compressOneStrings2(merged_segment, merged_length, compressed_merged_segment);\r\n \t \t\r\n \t \tif(compression_length < merged_length)\r\n \t \t{\r\n \t \t\tif(debug1)\r\n \t \t\t System.out.println(\"Merged segments that did not compress, compress after merging.\");\r\n \t \t\t\r\n \t \t\tint compressed_byte_length = compression_length / 8;\r\n \t\t\t\tif(compression_length % 8 != 0)\r\n \t\t\t\t compressed_byte_length++;\r\n \t\t\t\tcompressed_byte_length++;\r\n \t\t\t\t\r\n \t\t\t\tbyte [] segment_string = new byte[compressed_byte_length];\r\n \t\t\t\tfor(int j = 0; j < compressed_byte_length; j++)\r\n \t\t\t\t\tsegment_string[j] = compressed_merged_segment[j];\r\n \t\t\t\t\r\n \t\t\t\tArrayList merged_segment_list = new ArrayList();\r\n \t \t\tmerged_segment_list.add(merged_length);\r\n \t \t\tmerged_segment_list.add(compression_length);\r\n \t \t\tmerged_segment_list.add(segment_string);\r\n \t \t\t\r\n \t \t\tcurrent_list.add(merged_segment_list);\r\n \t \t\tcurrent_offset += merged_length;\r\n \t \t\ti++;\r\n \t\t\t\t\r\n \t \t}\r\n \t \telse\r\n \t \t{\r\n \t \t\tif(compression_length > merged_length)\r\n \t \t\t\tSystem.out.println(\"Compression length is an unexpected value.\");\r\n \t \t\t\r\n \t \t\tbyte_length = merged_length / 8;\r\n \t \t\tif(merged_length % 8 != 0)\r\n \t \t\t\tbyte_length++;\r\n \t \t\tbyte_length++;\r\n \t \t byte [] segment_string = new byte[byte_length];\r\n \t for(int j = 0; j < byte_length - 1; j++)\r\n \t\t segment_string[j] = merged_segment[j];\r\n \t segment_string[merged_segment.length] = 0;\r\n \t \r\n \t ArrayList merged_segment_list = new ArrayList();\r\n \t \t\tmerged_segment_list.add(merged_length);\r\n \t \t\tmerged_segment_list.add(compression_length);\r\n \t \t\tmerged_segment_list.add(segment_string);\r\n \t \t\t\r\n \t \t\tcurrent_list.add(merged_segment_list);\r\n \t \t\tcurrent_offset += merged_length;\r\n \t \t\ti++;\r\n \t \t}\r\n \t }\r\n \t else\r\n \t {\r\n \t \tcurrent_list.add(current_segment_list);\r\n \t \tcurrent_offset += current_length;\r\n \t }\r\n \t}\r\n \t\r\n\r\n \t if(i == previous_number_of_segments - 1)\r\n \t {\r\n \t\t ArrayList current_segment_list = (ArrayList)previous_list.get(i);\r\n \t\t current_list.add(current_segment_list);\r\n \t }\r\n \t\r\n \t previous_list.clear();\r\n \t \r\n \t current_number_of_segments = current_list.size();\r\n \t \r\n \t for(i = 0; i < current_number_of_segments; i++)\r\n \t {\r\n \t\t ArrayList segment_list = (ArrayList)current_list.get(i);\r\n \t\t previous_list.add(segment_list);\r\n \t }\r\n \t // Previous list now has current list data. \r\n }\r\n \r\n ArrayList compressed_length = new ArrayList();\r\n \tArrayList compressed_data = new ArrayList();\r\n\t\r\n\t\tfor(i = 0; i < current_list.size(); i++)\r\n\t\t{\r\n\t\t\tArrayList segment_list = (ArrayList)current_list.get(i);\r\n\t\t\tint length = (int)segment_list.get(1);\r\n\t\t\tbyte [] data = (byte [])segment_list.get(2);\r\n\t\t\tcompressed_length.add(length);\r\n\t\t\tcompressed_data.add(data);\r\n\t\t}\r\n\t\t\r\n\t\tif(debug2)\r\n\t\t{\r\n\t\t double zero_ratio_min = 1;\r\n\t\t double zero_ratio_max = 0.;\r\n\t\t int min_iterations = Integer.MAX_VALUE;\r\n\t\t int max_iterations = 0;\r\n\t\t int number_of_zero_segments = 0;\r\n\t\t int number_of_one_segments = 0;\r\n\t\t int number_of_compressed_segments = 0;\r\n\t\t int max_string_type = -1;\r\n\t\t int min_string_type = -1;\r\n\t\t for(i = 0; i < current_list.size(); i++)\r\n\t\t {\r\n\t\t ArrayList segment_list = (ArrayList)current_list.get(i);\r\n\t\t int length = (int)segment_list.get(1);\r\n\t\t byte [] data = (byte [])segment_list.get(2);\r\n\t\t\t\r\n\t\t\t\r\n\t\t zero_ratio = getZeroRatio(data, length);\r\n\t\t if(zero_ratio < zero_ratio_min)\r\n\t\t zero_ratio_min = zero_ratio;\r\n\t\t if(zero_ratio > zero_ratio_max)\r\n\t\t zero_ratio_max = zero_ratio;\r\n\t\t if(zero_ratio >= .5)\r\n\t\t number_of_zero_segments++;\r\n\t\t else\r\n\t\t number_of_one_segments++;\r\n\t\t int iterations = getIterations(data, length);\r\n\t\t int string_type = getStringType(data, length);\r\n\t\t if(iterations > max_iterations)\r\n\t\t {\r\n\t\t max_iterations = iterations;\r\n\t\t max_string_type = string_type;\r\n\t\t }\r\n\t\t if(iterations < min_iterations)\r\n\t\t {\r\n\t\t min_iterations = iterations;\r\n\t\t min_string_type = string_type;\r\n\t\t }\r\n\t\t if(iterations > 0)\r\n\t\t number_of_compressed_segments++;\t\r\n\t\t }\r\n\t\r\n\t\t System.out.println(\"Merged list has \" + current_list.size() + \" segments\");\r\n\t\t System.out.println(\"Number of compressed segments is \" + number_of_compressed_segments);\r\n\t\t System.out.println(\"Number of zero segments is \" + number_of_zero_segments);\r\n\t\t System.out.println(\"Number of one segments is \" + number_of_one_segments);\r\n\t\t System.out.println(\"Minimum zero ratio is \" + String.format(\"%.4f\", zero_ratio_min));\r\n\t\t System.out.println(\"Maximum zero ratio is \" + String.format(\"%.4f\", zero_ratio_max));\r\n\t\t System.out.println(\"Minimum iterations is \" + min_iterations);\r\n\t\t System.out.println(\"Minimum string type is \" + min_string_type);\r\n\t\t System.out.println(\"Maximum iterations is \" + max_iterations);\r\n\t\t System.out.println(\"Maximum string type is \" + max_string_type);\r\n\t\t System.out.println();\r\n\t\t}\r\n \r\n\t\tArrayList segment_data = new ArrayList();\r\n \tsegment_data.add(compressed_length);\r\n \tsegment_data.add(compressed_data);\r\n \treturn segment_data;\r\n }", "title": "" }, { "docid": "a785709e3f1aa7e9c936013cc9fcbce9", "score": "0.42696026", "text": "@Test\n public void test3FixedLenFields() {\n List<Gs1Model> answer = Gs1Parser.read(\"0110077900513623320200027013120711\");\n Assert.assertEquals(\"not equal\", \"01\", answer.get(0).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"10077900513623\", answer.get(0).getDataBarcode());\n Assert.assertEquals(\"not equal\", \"3202\", answer.get(1).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"000270\", answer.get(1).getDataBarcode());\n Assert.assertEquals(\"not equal\", \"13\", answer.get(2).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"120711\", answer.get(2).getDataBarcode());\n }", "title": "" }, { "docid": "6cdef0e95173831266aacbae825c8430", "score": "0.42650476", "text": "public final void mo53909a(C2241c c2241c, int i, JSONObject jSONObject, Map<String, String> map, ArrayList<String> arrayList, C27148a c27148a, String str, String str2) {\n AppMethodBeat.m2504i(108155);\n final C2241c c2241c2 = c2241c;\n final JSONObject jSONObject2 = jSONObject;\n final C27148a c27148a2 = c27148a;\n final String str3 = str;\n final int i2 = i;\n final Map<String, String> map2 = map;\n final ArrayList<String> arrayList2 = arrayList;\n final String str4 = str2;\n C7305d.post(new Runnable() {\n /* JADX WARNING: Missing block: B:33:0x00ef, code skipped:\n com.tencent.p177mm.sdk.platformtools.C4990ab.m7417i(\"MicroMsg.AppBrandNetworkRequest\", \"request taskId %s, method %s ,url %s timeout %s\", r5, r5, r1, java.lang.Integer.valueOf(r6));\n r0 = new com.tencent.p177mm.plugin.appbrand.p321l.C10570e(r1, r2, r6, r4, r5);\n r0.ioM = r7;\n r0.ioN = r8;\n r0.ioR = r9;\n r0.ioP = r3.optString(\"responseType\", \"text\");\n r1 = r11.ioI.ioA;\n */\n /* JADX WARNING: Missing block: B:34:0x0133, code skipped:\n monitor-enter(r1);\n */\n /* JADX WARNING: Missing block: B:36:?, code skipped:\n r11.ioI.ioA.add(r0);\n */\n /* JADX WARNING: Missing block: B:37:0x013b, code skipped:\n monitor-exit(r1);\n */\n /* JADX WARNING: Missing block: B:38:0x013c, code skipped:\n r0.hvr = r5;\n com.tencent.p177mm.plugin.appbrand.p321l.C33422d.m54619a(r11.ioI, r0);\n */\n /* JADX WARNING: Missing block: B:46:0x0152, code skipped:\n com.tencent.matrix.trace.core.AppMethodBeat.m2505o(108148);\n */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final void run() {\n AppMethodBeat.m2504i(108148);\n if (C27295q.m43334a(c2241c2.aBx(), jSONObject2, (C27296a) c2241c2.mo5937aa(C27296a.class)) == C10730b.FAIL_SIZE_EXCEED_LIMIT) {\n c27148a2.mo44821BA(\"convert native buffer parameter fail. native buffer exceed size limit.\");\n AppMethodBeat.m2505o(108148);\n return;\n }\n String CS = C19538j.m30261CS(jSONObject2.optString(\"url\"));\n Object opt = jSONObject2.opt(\"data\");\n String optString = jSONObject2.optString(C8741b.METHOD);\n if (C5046bo.isNullOrNil(optString)) {\n optString = \"GET\";\n }\n if (TextUtils.isEmpty(CS)) {\n c27148a2.mo44821BA(\"url is null\");\n AppMethodBeat.m2505o(108148);\n } else if (URLUtil.isHttpsUrl(CS) || URLUtil.isHttpUrl(CS)) {\n byte[] bArr = new byte[0];\n if (opt != null && C33422d.m54616CK(optString)) {\n if (opt instanceof String) {\n bArr = ((String) opt).getBytes(Charset.forName(\"UTF-8\"));\n } else if (opt instanceof ByteBuffer) {\n bArr = C45672d.m84374q((ByteBuffer) opt);\n }\n }\n synchronized (C33422d.this.ioA) {\n try {\n if (C33422d.this.ioA.size() >= C33422d.this.ioB) {\n c27148a2.mo44821BA(\"max connected\");\n C4990ab.m7417i(\"MicroMsg.AppBrandNetworkRequest\", \"max connected mRequestTaskList.size():%d,mMaxRequestConcurrent:%d\", Integer.valueOf(C33422d.this.ioA.size()), Integer.valueOf(C33422d.this.ioB));\n }\n } finally {\n while (true) {\n }\n AppMethodBeat.m2505o(108148);\n }\n }\n } else {\n c27148a2.mo44821BA(\"request protocol must be http or https\");\n AppMethodBeat.m2505o(108148);\n }\n }\n }, \"appbrand_request_thread\");\n AppMethodBeat.m2505o(108155);\n }", "title": "" }, { "docid": "39baf135af651969135fcbfcbc31852d", "score": "0.4261017", "text": "SimulatePhoneData(int count, int timeinterval, String webServer) throws IOException {\n this.counter = count;\n this.timeinteval = timeinterval;\n builder = new GsonBuilder();\n postUrl = webServer;\n post = new HttpPost(postUrl);\n\n gson = builder.create();\n// props = new Properties();\n// props.put(zk, dest);\n// props.put(\"metadata.broker.list\", \"localhost:9092\");\n// props.put(\"serializer.class\", \"kafka.serializer.StringEncoder\");\n// props.put(\"request.required.acks\", \"1\");\n// config = new ProducerConfig(props);\n// producer = new Producer<String, String>(config);\n\n\n }", "title": "" }, { "docid": "15b21874375b9bfde6cf8e0f2f702753", "score": "0.4260526", "text": "private void splitKey(String mainKey)\n\t{\n\t\tkey1 = mainKey.substring(0, 7);\t\t\t//1st 7 characters = key 1 (56-bits)\n\t\tkey2 = mainKey.substring(7, 14);\t\t//2nd 7 characters = key 2 (56-bits)\n\t\tkey3 = mainKey.substring(14, 21);\t\t//3rd 7 characters = key 3 (56-bits)\n\t}", "title": "" }, { "docid": "39a66250447f17408d53943f2d77369f", "score": "0.42603883", "text": "private static String decodeNewsmakerName(String[] parts, int startingIndex) {\r\n\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "c0d6761ba620a46971ebc0935d665d86", "score": "0.42599198", "text": "public static void main(String[] args) throws IOException {\n String url = \"http://10.103.188.200/video.show?ft=json&ob=&q=videoid%3AXMTY2MTg3MDM3Mg%3D%3D&fd=title%20videoid%20desc%20category%20streamtypes%20width%20height%20wh%20userid%20username%20source%20publishtime%20thumburl%20thumburl_v2%20seconds%20decright%20total_vv%20total_comment%20total_fav%20total_up%20total_down%20is_drm%20sharestate%20state%20limit_level%20tags%20operation_limit%20transfer_mode%20size%20is_panorama%20is_topic%20download_status%20show_id%20ugctitle%20dvdtitle%20isshowvideo%20show_videotype%20show_videoseq%20audiolang%20attachment%20guest&pn=1&pl=10\";\n HashMap<String, String> map = new HashMap<>();\n map.put(\"id\", \"XMTY2MTg3MDM3Mg==\");\n HashMap<String, String> header = new HashMap<>();\n// header.put(\"User-Agent\", \"Youku;5.7.1;iPhone OS;9.3.2;iPhone6,2\");\n// header.put(\"Cookie\", \"k=xu%E5%8D%81%E4%B8%80;ykss=545cf95459460d59267e9340;YOUKUSESSID=yktk%3D1%7C1425628244%7C15%7CaWQ6ODcxNjEwMTAsbm46eHXljYHkuIAsdmlwOnRydWUseXRpZDozNDU3OTA1MzAsdGlkOjA%3D%7Cf3e1e2e284c6c73f454c13884ab69872%7C26ef16bd7350b6ffec9482ac236272e5ff215589%7C1;yktk=1%7C1425628244%7C15%7CaWQ6ODcxNjEwMTAsbm46eHXljYHkuIAsdmlwOnRydWUseXRpZDozNDU3OTA1MzAsdGlkOjA%3D%7Cf3e1e2e284c6c73f454c13884ab69872%7C26ef16bd7350b6ffec9482ac236272e5ff215589%7C1;u=xu%E5%8D%81%E4%B8%80;v=UMzQ4NjQ0MDQw__1%7C1425628244%7C15%7CaWQ6ODcxNjEwMTAsbm46eHXljYHkuIAsdmlwOnRydWUseXRpZDozNDU3OTA1MzAsdGlkOjA%3D%7Cf3e1e2e284c6c73f454c13884ab69872%7C26ef16bd7350b6ffec9482ac236272e5ff215589%7C1____545cf95459460d59267e9340;logintime=1425628244;_1=1;userTrack_predict=76,1615.1315789473683,1425611408455,1.710669520303996; Domain=.atm.youku.com; expires=Thu, 01-Mar-2035 03:10:08 GMT; Path=/;updatetime=1425611408455; Domain=.atm.youku.com; expires=Thu, 01-Mar-2035 03:10:08 GMT; Path=/;lunbo2=9:503599:3:5:14171040; Domain=.atm.youku.com; expires=Wed, 22-Nov-2034 03:25:53 GMT; Path=/;lunbo=9:610968:5,7,9,1,3:8|2:594523_601839:3_6,8:10|20:584008_589413_582831:10,2_6_9,3:5|300:629232:10,2,4,6,8:7|300:617949:7,9,1,3,5:10|9:503599:9,1,3,5,7:3|3:604657_567687:4,6_1,3:3|2:645138:1,2,3,4,5,6,7,8,9,10:1|3:567021:1,2,3,4,5,6,7,8,9,10:7|3:612472_616760:6,8,10_2:9|2:616643_605547:3_10,2,5:8|9:581364_583158:3,5,7_10,2:7|300:615182:10,2,4,6,8:5|9:594820_601774_602977:3,9_4,6_10,2,5,8,1,7:3|3:588124:1,3:3|3:612472:1,3,5:4|20:574241:1,3,5:1|300:615884:2,4,6,8,10:8|3:589957_599439:6,9,3_8,10,2,4:5|20:615994_612471:4,6,8_1,2,3,5,7,9,10:4|2:594111_604213:2_7,9,1,3:3|2:571552_567121:4,6,8_9,1,3:1|9:567114_582096:5,8,1,7,3_10,2,4,6:7; Domain=.atm.youku.com; expires=Sat, 07-Mar-2015 03:10:08 GMT; Path=/;\");\n ResponseData data = httpGet(url, header);\n System.out.println(data);\n }", "title": "" }, { "docid": "481d70cfdfdd10956c081c29b56af287", "score": "0.42594424", "text": "public static byte[] decode(String encoded) {\n\n if (encoded == null) {\n return null;\n }\n\n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n\n if (len % FOURBYTE != 0) {\n return null;// should be divisible by four\n }\n\n int numberQuadruple = (len / FOURBYTE);\n\n if (numberQuadruple == 0) {\n return new byte[0];\n }\n\n byte decodedData[] = null;\n byte b1 = 0, b2 = 0, b3 = 0, b4 = 0;\n char d1 = 0, d2 = 0, d3 = 0, d4 = 0;\n\n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[(numberQuadruple) * 3];\n\n for (; i < numberQuadruple - 1; i++) {\n\n if (!isData((d1 = base64Data[dataIndex++]))\n || !isData((d2 = base64Data[dataIndex++]))\n || !isData((d3 = base64Data[dataIndex++]))\n || !isData((d4 = base64Data[dataIndex++]))) {\n return null;\n }// if found \"no data\" just return null\n\n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n\n decodedData[encodedIndex++] = (byte) (b1 << 2 | b2 >> 4);\n decodedData[encodedIndex++] = (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf));\n decodedData[encodedIndex++] = (byte) (b3 << 6 | b4);\n }\n\n if (!isData((d1 = base64Data[dataIndex++]))\n || !isData((d2 = base64Data[dataIndex++]))) {\n return null;// if found \"no data\" just return null\n }\n\n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n\n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData((d3)) || !isData((d4))) {// Check if they are PAD characters\n if (isPad(d3) && isPad(d4)) {\n if ((b2 & 0xf) != 0)// last 4 bits should be zero\n {\n return null;\n }\n byte[] tmp = new byte[i * 3 + 1];\n System.arraycopy(decodedData, 0, tmp, 0, i * 3);\n tmp[encodedIndex] = (byte) (b1 << 2 | b2 >> 4);\n return tmp;\n } else if (!isPad(d3) && isPad(d4)) {\n b3 = base64Alphabet[d3];\n if ((b3 & 0x3) != 0)// last 2 bits should be zero\n {\n return null;\n }\n byte[] tmp = new byte[i * 3 + 2];\n System.arraycopy(decodedData, 0, tmp, 0, i * 3);\n tmp[encodedIndex++] = (byte) (b1 << 2 | b2 >> 4);\n tmp[encodedIndex] = (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf));\n return tmp;\n } else {\n return null;\n }\n } else { // No PAD e.g 3cQl\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n decodedData[encodedIndex++] = (byte) (b1 << 2 | b2 >> 4);\n decodedData[encodedIndex++] = (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf));\n decodedData[encodedIndex++] = (byte) (b3 << 6 | b4);\n\n }\n\n return decodedData;\n }", "title": "" }, { "docid": "abd60c1a7cc67bb3ed01d40b47c3f6c0", "score": "0.4254867", "text": "@Test\n public void test1FixedEndIn2VarFields() {\n List<Gs1Model> answer = Gs1Parser.read(\"0100000000427237320200078010123456|21620275372440\");\n Assert.assertEquals(\"not equal\", \"01\", answer.get(0).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"00000000427237\", answer.get(0).getDataBarcode());\n Assert.assertEquals(\"not equal\", \"3202\", answer.get(1).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"000780\", answer.get(1).getDataBarcode());\n Assert.assertEquals(\"not equal\", \"10\", answer.get(2).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"123456\", answer.get(2).getDataBarcode());\n Assert.assertEquals(\"not equal\", \"21\", answer.get(3).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"620275372440\", answer.get(3).getDataBarcode());\n }", "title": "" }, { "docid": "a42180789f4fc25586d3e1392553e4c8", "score": "0.42414913", "text": "@Test\n public void test4FixedLenFieldsSimple() {\n List<Gs1Model> answer = Gs1Parser.read(\"011002501129113815130227320200120021604224465326\");\n Assert.assertEquals(\"not equal\", \"01\", answer.get(0).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"10025011291138\", answer.get(0).getDataBarcode());\n Assert.assertEquals(\"not equal\", \"15\", answer.get(1).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"130227\", answer.get(1).getDataBarcode());\n Assert.assertEquals(\"not equal\", \"3202\", answer.get(2).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"001200\", answer.get(2).getDataBarcode());\n Assert.assertEquals(\"not equal\", \"21\", answer.get(3).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"604224465326\", answer.get(3).getDataBarcode());\n }", "title": "" }, { "docid": "0b64c7c657d0a2decfa22ecda38085ef", "score": "0.42339027", "text": "public void decode(String s) {\n if(s==null){throw new IllegalArgumentException();}\n int beta = 1;\n StringBuilder s1 = new StringBuilder(\"\");\n int len;\n int i = 0;\n int j = 1;\n\n while (j < s.length()) { //while we are in the string\n boolean isSpecial = false;\n if (Character.toString(s.charAt(i)).equals(delimiter) && j + delimiter.length() < s.length()) {\n i++;\n j += delimiter.length();\n isSpecial = true;\n }\n int subInt;\n if (j + 1 < s.length()) {\n if (j + 1 < s.length()) {// We test if we have a letter or a number\n boolean isNumber = false;\n try {\n Integer.parseInt(Character.toString(s.charAt(j + 1)));\n isNumber = true;\n } catch (NumberFormatException e) {\n isNumber = false;\n }\n while (isNumber == true && j < s.length()) { //we take all the number we get\n j++;\n if (j + 1 < s.length()) {\n try {\n Integer.parseInt(Character.toString(s.charAt(j + 1)));\n isNumber = true;\n } catch (NumberFormatException e) {\n isNumber = false;\n }\n } else {\n break;\n }\n }\n }\n }\n if (i + 1 == j) { //We test if is a Number \n subInt = Character.getNumericValue(s.charAt(j));\n } else if (isSpecial == true) {\n subInt = Integer.parseInt(s.substring(i + 2, j + 1));\n } else {\n subInt = Integer.parseInt(s.substring(i + 1, j + 1));\n\n }\n if (dictDecod.containsKey(subInt)) {\n if (String.valueOf(s.charAt(j - 1)).equals(\"E\") && !s.substring(j).equals(\"E\")) {//Epsilone decoding\n try {\n decode.append(dico(Integer.parseInt(s.substring(j))));\n dictDecod.put(-1, dico(Integer.parseInt(s.substring(j))));\n } catch (NumberFormatException n) {\n j--;\n decode.append(dico(Integer.parseInt(s.substring(j))));\n dictDecod.put(-1, dico(Integer.parseInt(s.substring(j))));\n }\n break;\n }\n String tmp_v = dico(subInt) + Character.toString(s.charAt(i));\n dictDecod.put(beta, tmp_v);\n decode.append(tmp_v); //On en est là\n } else {\n dictDecod.put(beta, String.valueOf(s.charAt(i)));\n if (!Character.toString(s.charAt(i)).equals(delimiter)) {\n decode.append(String.valueOf(s.charAt(i)));\n }\n }\n beta++;\n i = j + 1;\n j = i + 1;\n if (Character.toString(decode.charAt(decode.length() - 1)).equals(\"E\")) {\n decode.deleteCharAt(decode.length() - 1);\n }\n }\n }", "title": "" }, { "docid": "09db02aec29a6e85fa57961f0f0536dd", "score": "0.42291752", "text": "int av_bsf_list_parse_str(String str, AVBSFContext.ByReference bsf[]);", "title": "" }, { "docid": "02a9f02451f500b676c1f6b548fbeef2", "score": "0.42178798", "text": "public static Object[] cardParts (String card)\n\t\t{\n\t\tString key = null;\n\t\tString val = null;\n\t\tString comment = null;\n\t\tdouble d = 0.0;\n\t\tint i = 0;\n\t\tboolean b = false;\n\t\tint typ = NO_CARD;\n\n\t\t// System.err.println(\"card=\"+card);\n\n\t\tString s = new String(card);\n\n\t\t// COMMENT\n\n\t\tif (card.startsWith (\"COMMENT\"))\n\t\t\t{\n\t\t\tkey =\"COMMENT\";\n\t\t\tval = card.substring (7);\n\t\t\tcomment = null;\n\t\t\ttyp = COMMENT_CARD;\n\t\t\t}\n\n\t\t// HISTORY\n\n\t\telse if (card.startsWith (\"HISTORY\"))\n\t\t\t{\n\t\t\tkey = \"HISTORY\";\n\t\t\tval = card.substring (7);\n\t\t\tcomment = null;\n\t\t\ttyp= HISTORY_CARD;\n\t\t\t}\n\n\t\telse\n\t\t\t{\n\t\t\tint eq = s.indexOf (\"=\");\n\t\t\t// System.err.println(\"eq=\"+eq);\n\t\t\tif (eq < 0) return null;\n\t\t\tkey = s.substring (0,eq);\n\t\t\t// System.err.println(\"key=\"+key);\n\t\t\tif (key == null) return null;\n\t\t\tval = s.substring (eq+1);\n\t\t\t// System.err.println(\"val=\"+val);\n\n\t\t\t// COMMENT\n\n\t\t\tcomment = getCardComment (s.substring(eq+1));\n\t\t\t// System.err.println (\"comment=\"+comment);\n\t\t\tif (comment != null && !comment.equals(\"\"))\n\t\t\t\t{\n\t\t\t\tint slash = s.indexOf (comment);\n\t\t\t\t// System.err.println (\"slash=[\"+s.substring(slash-1,slash+1)+\"]\");\n\t\t\t\tval = s.substring (eq+1,slash-1).trim();\n\t\t\t\t// System.err.println (\"val=[\"+val+\"]\");\n\t\t\t\t}\n\n\t\t\t// STRING\n\n\t\t\tif (val.startsWith(\"\\'\") || val.startsWith(\"\\\"\"))\n\t\t\t\t{\n\t\t\t\ts = val;\n\t\t\t\tval = s.substring(1,s.length()-1);\n\t\t\t\t// System.err.println (\"val=[\"+val+\"]\");\n\t\t\t\ttyp = STRING_CARD;\n\t\t\t\t}\n\n\t\t\t// BOOLEAN\n\n\t\t\telse if (val.equals(\"T\") || val.equals(\"F\"))\n\t\t\t\t{\n\t\t\t\tb = val.equals(\"T\");\n\t\t\t\ttyp = BOOLEAN_CARD;\n\t\t\t\t}\n\n\t\t\t// INTEGER OR DOUBLE\n\n\t\t\telse\n\t\t\t\t{\n\t\t\t\ttry\t{\n\t\t\t\t\ti = Integer.parseInt(val);\n\t\t\t\t\ttyp = INTEGER_CARD;\n\t\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e)\n\t\t\t\t\t{\n\t\t\t\t\ttry\t{\n\t\t\t\t\t\td = Double.parseDouble(val);\n\t\t\t\t\t\ttyp = DOUBLE_CARD;\n\t\t\t\t\t\t}\n\t\t\t\t\tcatch (NumberFormatException nfe)\n\t\t\t\t\t\t{\n\t\t\t\t\t\ttyp = NO_CARD;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\tObject[] arr = new Object[]\n\t\t\t\t{key, val, new Double(d), new Integer(i), new Boolean(b), comment, new Integer(typ)};\n\t\treturn arr;\n\t\t}", "title": "" }, { "docid": "6f8ffbaf780f1deb3633d9f08c739b54", "score": "0.4217139", "text": "static String[] process(String s) {\n\t\t\tint i = lastIndexOf(s, ':', s.length() - 2);\n\t\t\tif (i < 1) {\n\t\t\t\treturn new String[0];\n\t\t\t} else {\n\t\t\t\treturn new String[] { s.substring(0, i), s.substring(i + 1) };\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "3563eae74db3873e6b14344210df08f6", "score": "0.42123425", "text": "public static void parseIPP(String value, String[] IPP) {\n\t\t\n\t\tString result = value.substring(value.indexOf(\"_\")+1); //after sess num\n\t\tresult = result.substring(result.indexOf(\"_\")+1); //after ip\n\t\tresult = result.substring(result.indexOf(\"_\")+1); //after port\n\t\tresult = result.substring(result.indexOf(\"_\")+1); //after version\n\t\t\n\t\tfor (int i = 0; i < IPP.length; i++) {\n\t\t\t\n\t\t\tString ip = result.substring(0,result.indexOf(\"_\"));\n\t\t\tString port;\n\t\t\tresult = result.substring(result.indexOf(\"_\")+1);\n\t\t\tif(result.indexOf(\"_\") != -1){\n\t\t\t\tport = result.substring(0,result.indexOf(\"_\"));\n\t\t\t\tresult = result.substring(result.indexOf(\"_\")+1);\n\t\t\t}else{\n\t\t\t\tport = result;\n\t\t\t\tIPP[i] = ip+\"_\"+port;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tIPP[i] = ip+\"_\"+port;\n\t\t}\n\t}", "title": "" }, { "docid": "75c8d860232666d79de1bef4875ad224", "score": "0.4212152", "text": "private String[] separatePairs(String in) throws IOException{\n String compressed = in.replaceAll(\" \", \"\");\n if(compressed.length() > 2){\n StringBuilder sb = new StringBuilder();\n \n // removes wrong quotes when there are objects\n sb.append(removeQuotes(in.substring(0, in.indexOf(\":\"))));\n sb.append(removeQuotes(in.substring(in.indexOf(\":\"))));\n if(!checkEscapeChars(in)){\n throw new IOException(\"Invalid escape characters\");\n }\n if(!sb.toString().contains(\":\")){\n throw new IOException(\"Invalid key-value pair - Missing ':'\");\n }else{\n return sb.toString().split(\":\", 2);\n }\n }\n String[] st = new String[0];\n return st;\n }", "title": "" }, { "docid": "d486e9e4a3f48deadb447a86d7881d05", "score": "0.42103353", "text": "public static String get(int s) {\r\n // TODO Auto-generated method stub\r\n int i = s;\r\n String[] key = new String[8];\r\n //key[0] = \"MjQ1NS0xNDI4NjczNjg3ODI4LWQzYTE2ZDNlLWE0M2QtNDg0MS1hMTZkLTNlYTQzZDI4NDE4MA==\";\r\n key[1] = \"MjQ1Ni0xNDI4Njk3MDI2MTE0LTAwNDEwNjk0LTY5MjQtNGViMC04MTA2LTk0NjkyNGFlYjBlYQ==\";\r\n key[2] = \"MjU3NS0xNDMyMDEyNzA0NTQ4LWM0MWIxYWQ2LWMxMzMtNDQ0Mi05YjFhLWQ2YzEzMzU0NDI1MQ==\";\r\n key[3] = \"MjU3Ni0xNDMyMDEzMzYwMjU3LTJhNzBkNGRkLWNlNzktNDc0OC1iMGQ0LWRkY2U3OTg3NDg3NA==\";\r\n key[4] = \"MjM4NS0xNDI2NjgwMjg0MzI4LTJiMTAxYTgyLWI2ODgtNDYwYy05MDFhLTgyYjY4OGQ2MGNjMw==\";\r\n \r\n key[5] = \"MjQ0NC0xNDI4NDMyNDg0NDU5LWVlYzRkYjE1LTI0ZTQtNGJmNS04NGRiLTE1MjRlNGViZjVkOQ==\";\r\n key[6] = \"MjU3My0xNDMxOTc4NDYxMTc5LTM5ZTc0OTk1LWU4OWEtNDkzYi1hNzQ5LTk1ZTg5YTU5M2IwNg==\";\r\n key[7] = \"MjU3OS0xNDMyMDE4NDc5OTgwLTMxNzJlNGRkLWNjNDctNGVlNi1iMmU0LWRkY2M0NzhlZTZhZQ==\";\r\n if(i<=7){\r\n return key[i];\r\n }\r\n else if(7<i && i<=14){\r\n return key[i-7];\r\n \r\n }\r\n else{\r\n return key[i-14];\r\n }\r\n}", "title": "" }, { "docid": "939b7f7042b6b3420f0a043b1f83f48c", "score": "0.4200484", "text": "private void decodeMessage(String message) throws Exception {\n\t\tString[] m = message.split(\" \");\n\t\t\n\t\tif(message.startsWith(\"users\")) { //users split by hash, id and username split by space\n\t\t\tpopulateUserList(message.split(\"#\"));\n\t\t} //else if (message.startsWith(\"draw\")) // draw <id> <x> <y>\n\t\t\t//drawOn(Integer.parseInt(m[1]), Double.parseDouble(m[2]), Double.parseDouble(m[3]));\n\t\t//else\n\t}", "title": "" }, { "docid": "36fc83ca3da5e1abbec792cd79ecdc98", "score": "0.41986877", "text": "public List<String> decode(String s) {\n\t\t\tint endIndex = 0;\n\t\t\tList<String> result = new ArrayList<>();\n\n\t\t\twhile (endIndex != s.length()) {\n\t\t\t\tint colonIndex = s.indexOf(\":\", endIndex);\n\t\t\t\tint wordLength = Integer.parseInt(s.substring(endIndex, colonIndex));\n\t\t\t\t\n\t\t\t\tendIndex = colonIndex + 1 + wordLength;\n\t\t\t\tresult.add(s.substring(colonIndex + 1, endIndex));\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "453d2a3f38b67345e1e6250b5f1ac498", "score": "0.41981766", "text": "@Test\n public void testParse265() throws SailoException { // Urheilija: 265\n Urheilija urheilija = new Urheilija(); \n assertEquals(\"From: Urheilija line: 268\", null, urheilija.toString()); \n assertEquals(\"From: Urheilija line: 269\", 0, urheilija.getFiscode()); \n String rivi = \"278,13th FIS points list 2018/2019,1,AL,O,219656,502468,AABERG,Filip,SWE,M,2001-10-19,Nolby Alpina,SWE,AABERG Filip,2001,191.08,1587,+,66.57,1817,,77.99,2430,,131.07,2036,*,,,\"; \n urheilija.parse(rivi); \n assertEquals(\"From: Urheilija line: 272\", 502468, urheilija.getFiscode()); \n assertEquals(\"From: Urheilija line: 273\", \"AABERG Filip\", urheilija.toString()); \n }", "title": "" }, { "docid": "f31e1decc0d298fb9996039c06b9848d", "score": "0.4197407", "text": "private Map<String, String> stringToMap(String body) {\n java.util.Map<String, String> result = new java.util.HashMap<>();\n for (String tuple : body.split(\":\")) {\n result.put(tuple.split(\",\")[0], tuple.split(\",\")[1]);\n }\n return result;\n }", "title": "" }, { "docid": "c998a169d9f62d90f9ef35e7395bcd44", "score": "0.41966093", "text": "@Test\n public void test2FixedLenFields() {\n List<Gs1Model> answer = Gs1Parser.read(\"010008647834237810122401003423701\");\n Assert.assertEquals(\"not equal\", \"01\", answer.get(0).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"00086478342378\", answer.get(0).getDataBarcode());\n Assert.assertEquals(\"not equal\", \"10\", answer.get(1).getAiBarcode());\n Assert.assertEquals(\"not equal\", \"122401003423701\", answer.get(1).getDataBarcode());\n }", "title": "" }, { "docid": "28921efd694a7bd8df4fa5fe9a91c127", "score": "0.4194017", "text": "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tInputReader in=new InputReader(System.in); \n StringBuffer str=new StringBuffer();\n int t=in.nextInt();\n for(int i=0;i<t;i++) {\n \tMap<Integer,String> pk=new TreeMap<Integer,String>();\n \tint n=in.nextInt();\n \tString s=in.next();\n \tint h=0;\n \tint k=0;\n \tif(n>0) {\n \t k=1;\n \t}\n \tint count=0;\n \tif(n==0) {\n \t\tcount=1;\n \t\tSystem.out.println(count);\n \t\tSystem.out.println(\"1\");\n \t}\n \telse {\n \t\twhile(h<s.length()&&k<s.length()) {\n \t\t\tif(s.charAt(k)!=s.charAt(k-1)) {\n \t\t\t\tk++;\n \t\t\t}\n \t\t\telse if(s.charAt(k)==s.charAt(k-1)) {\n \t\t\t\tcount++;\n \t\t\t\tpk.put(count,s.substring(h,k));\n \t\t\t\th=k;\n \t\t\t\tk=h+1;\n \t\t\t\t\n \t\t\t}\n \t\t}\n \t\tpk.put(count+1,s.substring(h,k));\n \t}\n \t//System.out.println(pk.values());\n \t\n \t\n \tArrayList<Integer> lol=new ArrayList<Integer>(pk.keySet());\n \tfor(int j=0;j<lol.size();j++) {\n \t\tint p=lol.get(j);\n \t\tchar c=pk.get(p).charAt(0);\n \t\tfor(int m=j+1;m<lol.size();m++) {\n \t\t\tchar x=pk.get(lol.get(m)).charAt(0);\n \t\t\t\n \t\t\tif(c!=x) {\n \t\t\t\tpk.put(p,pk.get(p)+pk.get(lol.get(m)));\n \t\t\t\tlol.remove(m);\n \t\t\t\t\n \t\t\t}\n \t\t}\n \t}\n \tfor(int z:lol) {\n \t\tSystem.out.print(z+\" \"+pk.get(z));\n \t\tSystem.out.println();\n \t}\n// \tSet ll=pk.entrySet();\n// \tIterator itr=ll.iterator();\n// \twhile(itr.hasNext()) {\n// \t\tMap.Entry me=(Map.Entry) itr.next();\n// \t\tSystem.out.print(me.getKey()+\" : \"+me.getValue());\n// \t\tSystem.out.println();\n// \t}\n \t\n }\n\t\t\n\n\t}", "title": "" }, { "docid": "fad3ed7d77473d10b0730360ac20278a", "score": "0.41907552", "text": "private Record retrievePostData(BufferedReader r){\r\n String data = r.lines().collect(Collectors.joining(System.lineSeparator()));\r\n JSONObject obj = new JSONObject(data);\r\n Instant instant = Instant.now();\r\n float x = obj.getFloat(\"x\");\r\n float y = obj.getFloat(\"y\");\r\n String filelink = obj.getString(\"filelink\");\r\n String[] f = filelink.split(\"\\\\+\");\r\n Record newRecord;\r\n String username = obj.getString(\"username\");\r\n if(f.length==2){\r\n filelink = f[0];\r\n String filelink2 = \"https://cynosure.blob.core.windows.net/cynosure/\"+f[1];\r\n try{\r\n String description = obj.getString(\"description\");\r\n newRecord = new Record(x,y, username, instant.toString(), filelink,filelink2,description);\r\n }catch(Exception e){\r\n newRecord=new Record(x,y, username, instant.toString(), filelink,filelink2,\"\");\r\n }\r\n }else{\r\n try{\r\n String description = obj.getString(\"description\");\r\n newRecord = new Record(x,y, username, instant.toString(), filelink,\"\",description);\r\n }catch(Exception e){\r\n newRecord=new Record(x,y, username, instant.toString(), filelink,\"\",\"\");\r\n }\r\n }\r\n return newRecord;\r\n }", "title": "" }, { "docid": "f2bac77771dafd8af24e3e4ed718b3fe", "score": "0.4186797", "text": "private String m10651b(String str, String... strArr) {\n ArrayList arrayList = new ArrayList();\n for (String str2 : strArr) {\n try {\n byte[] bytes = str2.getBytes(\"UTF-8\");\n if (bytes.length > 128 || bytes.length < 0) {\n return \"部分Tags长度不在限制0到128个字符之间\";\n }\n arrayList.add(str2);\n } catch (UnsupportedEncodingException unused) {\n UMLog uMLog = UMConfigure.umDebugLog;\n UMLog.mutlInfo(f10538a, 0, \"UnsupportedEncodingException\");\n return \"部分Tags长度不在限制0到128个字符之间\";\n }\n }\n if (str == null) {\n return null;\n }\n try {\n ITagManager.Result result = new ITagManager.Result(new JSONObject(str), true);\n long currentTimeMillis = System.currentTimeMillis();\n if (arrayList.size() <= 0 || result.interval == 0) {\n return null;\n }\n if ((currentTimeMillis - result.last_requestTime) / 1000 > result.interval) {\n return null;\n }\n return \"interval限制\";\n } catch (JSONException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "600fd98ddd9ad3970d9969e486011d7c", "score": "0.4181463", "text": "private boolean m15b(String str) {\n String c = m16c(str);\n if (TextUtils.isEmpty(c)) {\n return false;\n }\n try {\n URI uri = new URI(c);\n if (\"passback\".equals(uri.getScheme())) {\n C0662da.m1551s(\"Passback received\");\n this.f47r.sendAdNotReceivedUpdate();\n return true;\n } else if (TextUtils.isEmpty(this.f45A)) {\n return false;\n } else {\n URI uri2 = new URI(this.f45A);\n String host = uri2.getHost();\n String host2 = uri.getHost();\n String path = uri2.getPath();\n String path2 = uri.getPath();\n if (!equals(host, host2) || !equals(path, path2)) {\n return false;\n }\n C0662da.m1551s(\"Passback received\");\n this.f47r.sendAdNotReceivedUpdate();\n return true;\n }\n } catch (URISyntaxException e) {\n C0662da.m1552t(e.getMessage());\n return false;\n }\n }", "title": "" }, { "docid": "3f1ee9bcf4200deaede5d2db50cbd4f9", "score": "0.41814563", "text": "public static String split(String prodDetails){\r\n\t\t\r\n\t\tprodDetails = prodDetails.replace(\"{\", \"\");\r\n\t\tprodDetails = prodDetails.replace(\"}\", \"\");\r\n\t\tprodDetails = prodDetails.replace(\"[\", \"\");\r\n\t\tprodDetails = prodDetails.replace(\"]\", \"\");\r\n\t\tprodDetails = prodDetails.replace(\",,\", \",\");\r\n\t\tint startOfProdDesc = prodDetails.indexOf(\"productDescription\");\r\n\t\tint endOfProdDesc = prodDetails.indexOf(\"productName\");\r\n\t\tString prodDesc = prodDetails.substring(startOfProdDesc,endOfProdDesc);\r\n\t\tprodDetails = prodDetails.replace(prodDesc, \"\");\r\n\t\tprodDetails = prodDetails.replace(\"S:\", \"\");\r\n\t\tprodDesc = prodDesc.replace(\"S:\", \"\");\r\n\t\tprodDesc = prodDesc.replace(\",\", \", \");\r\n\t\tprodDetails = prodDetails.substring(0,prodDetails.length()-1);\r\n\t\tprodDesc = prodDesc.substring(0,prodDesc.length()-3);\r\n\t\treturn prodDetails + \"----\" + prodDesc;\r\n\t\t\r\n\t}", "title": "" } ]
9dc8faff6e1b31cc199338dde2ccbce2
calculate the split point ( floor(maxsize/2)
[ { "docid": "79c9a4d06ce55609838186c3310e1f85", "score": "0.0", "text": "protected void split(DataNode dnode, Node left, Node right) {\n\t\tint splitlocation, insertlocation = 0; \n\t\tif(maxsize%2 == 0) {\n\t\t\tsplitlocation = maxsize/2;\n\t\t}\n\t\telse {\n\t\t\tsplitlocation = (maxsize+1)/2 -1;\n\t\t}\n\t\t\n\t\t// insert dnode into the vector (it will now be overpacked)\n\t\tboolean dnodeinserted = false;\n\t\tfor(int i=0; !dnodeinserted && i < data.size(); i++) {\n\t\t\tif( ((DataNode)data.elementAt(i)).inOrder(dnode) ) {\n\t\t\t\tdata.add(i,dnode);\n\t\t\t\t((TreeNode)this).pointer.remove(i);\n\t\t\t\t((TreeNode)this).pointer.add(i, left);\n\t\t\t\t((TreeNode)this).pointer.add(i+1, right);\n\t\t\t\tdnodeinserted = true;\n\t\t\t\t\n\t\t\t\t// set the location of the insert this will be used to set the parent\n\t\t\t\tinsertlocation = i;\n\t\t\t}\n\t\t}\n\t\tif(!dnodeinserted) {\n\t\t\t// set the location of the insert this will be used to set the parent\n\t\t\tinsertlocation = data.size();\n\t\t\tdata.add(dnode);\n\t\t\t((TreeNode)this).pointer.remove(((TreeNode)this).pointer.size()-1);\n\t\t\t((TreeNode)this).pointer.add(left);\n\t\t\t((TreeNode)this).pointer.add(right);\n\t\t\t\n\t\t}\n\t\t\n\t\t// get the middle dataNode\n\t\tDataNode mid = (DataNode) data.remove(splitlocation);\n\t\t\n\t\t// create a new tree node to accomodate the split \n\t\tTreeNode newright = new TreeNode(maxsize);\n\t\t\n\t\t// populate the data and pointers of the new right node\n\t\tfor(int i=data.size()-splitlocation; i > 0; i--) {\n\t\t\tnewright.data.add(this.data.remove(splitlocation));\n\t\t\tnewright.pointer.add(this.pointer.remove(splitlocation+1));\n\t\t}\n\t\tnewright.pointer.add(this.pointer.remove(splitlocation+1));\t\t\n\n\t\t// set the parents of right and left\n\t\t// if the item was inserted before the split point both nodes are children of left\n\t\tif(insertlocation < splitlocation) {\n\t\t\tleft.setParent(this);\n\t\t\tright.setParent(this);\n\t\t}\n\t\t// if the item was inserted at the splitpoint the nodes have different parents this and right\n\t\telse if(insertlocation == splitlocation) {\n\t\t\tleft.setParent(this);\n\t\t\tright.setParent(newright);\n\t\t}\n\t\t// if the item was was inserted past the splitpoint the nodes are children of right\n\t\telse {\n\t\t\tleft.setParent(newright);\n\t\t\tright.setParent(newright);\n\t\t}\n\t\t\n\t\t// propogate the node up\n\t\tthis.propagate(mid, newright);\n\t}", "title": "" } ]
[ { "docid": "42eaa72e17c86a06a6d7a5ff7f76aa1e", "score": "0.67676055", "text": "protected int splitMaxNumber () {\r\n\t\t\treturn (int)Math.floor(number()*splitMaxRatio());\r\n\t\t}", "title": "" }, { "docid": "6d9be246ea9446312819ee48783e17f4", "score": "0.65435696", "text": "protected int splitMinNumber () {\r\n\t\t\treturn (int)Math.ceil(number()*splitMinRatio());\r\n\t\t}", "title": "" }, { "docid": "54e4deed339bde43372a5d1efbda4d76", "score": "0.62195885", "text": "protected double splitMaxRatio () {\r\n\t\t\treturn ((Double)getSplitMaxRatio.invoke(this)).doubleValue();\r\n\t\t}", "title": "" }, { "docid": "8aed215ce79c04168d76814c17f56e49", "score": "0.61303", "text": "public int getMaximumDividerLocation(JSplitPane paramJSplitPane) {\n/* 1013 */ Dimension dimension = this.splitPane.getSize();\n/* 1014 */ int i = 0;\n/* 1015 */ Component component = this.splitPane.getRightComponent();\n/* */ \n/* 1017 */ if (component != null) {\n/* 1018 */ Insets insets = this.splitPane.getInsets();\n/* 1019 */ Dimension dimension1 = new Dimension(0, 0);\n/* 1020 */ if (component.isVisible()) {\n/* 1021 */ dimension1 = component.getMinimumSize();\n/* */ }\n/* 1023 */ if (this.orientation == 1) {\n/* 1024 */ i = dimension.width - dimension1.width;\n/* */ } else {\n/* 1026 */ i = dimension.height - dimension1.height;\n/* */ } \n/* 1028 */ i -= this.dividerSize;\n/* 1029 */ if (insets != null) {\n/* 1030 */ if (this.orientation == 1) {\n/* 1031 */ i -= insets.right;\n/* */ } else {\n/* 1033 */ i -= insets.top;\n/* */ } \n/* */ }\n/* */ } \n/* 1037 */ return Math.max(getMinimumDividerLocation(this.splitPane), i);\n/* */ }", "title": "" }, { "docid": "32c54297d58bb3824c6198dcee5305a9", "score": "0.611379", "text": "public int getSplitBins(){\n return splitBins;\n }", "title": "" }, { "docid": "ac2b7e68effcbf09deac8dd3e1d7d490", "score": "0.606701", "text": "protected double splitMinRatio () {\r\n\t\t\treturn ((Double)getSplitMinRatio.invoke(this)).doubleValue();\r\n\t\t}", "title": "" }, { "docid": "19509407873719ddb11f16cb8124f76b", "score": "0.60309094", "text": "public static long getMapred_min_split_size(int splitSizeMB) {\r\n\t\treturn splitSizeMB * 1024 * 1024;\r\n\t}", "title": "" }, { "docid": "a2d489eb953fb7d251c41c956e19a72e", "score": "0.59690887", "text": "private static int getMidPosition(int size) {\r\n return (size + 1) / 2;\r\n }", "title": "" }, { "docid": "ae57f349e948d12386661cc6add8d1ac", "score": "0.59169364", "text": "public static long getMapred_max_split_size(int splitSizeMB) {\r\n\t\treturn splitSizeMB * 1024 * 1024;\r\n\t}", "title": "" }, { "docid": "850c8e3328fc1e8e50fea30b0b9a2e68", "score": "0.58632046", "text": "public long getSplitBPS() {\n \t\tlong sec = System.currentTimeMillis() - split;\n \t\tint splitTotal = total - splitBytes;\n \t\tsplitBytes = total;\n \t\tsplit = System.currentTimeMillis();\n \t\tif (sec >0)\n \t\t\treturn 1000*splitTotal / sec; \n \t\treturn 0;\n \t}", "title": "" }, { "docid": "0197d5e2310c2ba0c50f147212fbffc3", "score": "0.5736495", "text": "public int getMaximumParts();", "title": "" }, { "docid": "9ee9d06037cd9ac9fe2fab0c8d468492", "score": "0.57116836", "text": "public long getSplitBins() {\n return incompStats.getLong(INCOMP_SPLIT_BINS);\n }", "title": "" }, { "docid": "f78ab31b0840645e086cb75e0f4e50d3", "score": "0.5626367", "text": "public abstract int extraSplit(X co, X po, int total, int minLen, int prev);", "title": "" }, { "docid": "95df38f92906c8f95b9f17b5ed5b983a", "score": "0.5622079", "text": "public int getMinimumDividerLocation(JSplitPane paramJSplitPane) {\n/* 986 */ int i = 0;\n/* 987 */ Component component = this.splitPane.getLeftComponent();\n/* */ \n/* 989 */ if (component != null && component.isVisible()) {\n/* 990 */ Insets insets = this.splitPane.getInsets();\n/* 991 */ Dimension dimension = component.getMinimumSize();\n/* 992 */ if (this.orientation == 1) {\n/* 993 */ i = dimension.width;\n/* */ } else {\n/* 995 */ i = dimension.height;\n/* */ } \n/* 997 */ if (insets != null) {\n/* 998 */ if (this.orientation == 1) {\n/* 999 */ i += insets.left;\n/* */ } else {\n/* 1001 */ i += insets.top;\n/* */ } \n/* */ }\n/* */ } \n/* 1005 */ return i;\n/* */ }", "title": "" }, { "docid": "ceecdd44bce7a5c2d06c6a64473b86ac", "score": "0.5614655", "text": "public double midPoint() {\r\n\t\treturn (maximum + minimum) / 2;\r\n\t}", "title": "" }, { "docid": "7745a3bb77c0249bda653118bda8146a", "score": "0.55610496", "text": "int getMsperpoint();", "title": "" }, { "docid": "6d0afa670491324876fbb3c334c81f02", "score": "0.5503416", "text": "private static double[] splitBiggest(double[] pattern) {\n\t\tdouble max = 0;\r\n\t\tint maxindex=-1;\r\n\t\tfor (int i =0; i<pattern.length; i++) {\r\n\t\t\tif (pattern[i] > max){\r\n\t\t\t\tmax = pattern[i];\r\n\t\t\t\tmaxindex = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn split(pattern, maxindex);\r\n\t}", "title": "" }, { "docid": "792b959346705489c708f01616eec0b9", "score": "0.5487113", "text": "public int getMinimumParts();", "title": "" }, { "docid": "52bb18c8802696d0960016f658eeeb3d", "score": "0.5476818", "text": "public int halfPerim() {\n int minX = Integer.MAX_VALUE;\n int minY = Integer.MAX_VALUE;\n int maxX = 0;\n int maxY = 0;\n if (numNodes() == 0) return 0;\n for (int i = 0; i < numNodes(); i++) {\n STNode n = getNode(i);\n int nx = n.getLocation().x;\n int ny = n.getLocation().y;\n minX = Math.min(minX, nx);\n minY = Math.min(minY, ny);\n maxX = Math.max(maxX, nx);\n maxY = Math.max(maxY, ny);\n }\n return (maxX - minX) + (maxY - minY);\n }", "title": "" }, { "docid": "01fc993f2fd12be3c6863cef3159f994", "score": "0.5464992", "text": "double getLimite();", "title": "" }, { "docid": "9c6e75c12d35bafb7692fdbc82689439", "score": "0.54569906", "text": "RangeLongBlock[] split(long value)\n {\n RangeLongBlock[] blocks = new RangeLongBlock[2];\n blocks[0] = new RangeLongBlock();\n blocks[0].myMin = myMin;\n blocks[0].myMax = value - 1;\n blocks[0].mySize = (int)(value - myMin);\n blocks[1] = new RangeLongBlock();\n blocks[1].myMin = value + 1;\n blocks[1].myMax = myMax;\n blocks[1].mySize = (int)(myMax - value);\n return blocks;\n }", "title": "" }, { "docid": "c1a592fea226b5700a818037e02cb562", "score": "0.5423558", "text": "public int getDividerSize() {\n\t return 2;\n\t}", "title": "" }, { "docid": "dfb0bdfaf757a3059249fdaa234af6e7", "score": "0.5373272", "text": "int ceilingIndex(int ndx);", "title": "" }, { "docid": "7aa1d2ab6495a4146bedd596422b3795", "score": "0.5332475", "text": "public double getSplitRatio() {\n return splitRatio;\n }", "title": "" }, { "docid": "9a8227d2ad0a9a5bef499803215f357a", "score": "0.53186095", "text": "public int getSplitCount() {return splitCount;}", "title": "" }, { "docid": "e3895731d50195294234ec35a7b9d379", "score": "0.527264", "text": "StoreSize checkSplit(final boolean force) {\n this.lock.readLock().lock();\n try {\n // Iterate through all store files\n if (this.storefiles.size() <= 0) {\n return null;\n }\n if (!force && (storeSize < this.desiredMaxFileSize)) {\n return null;\n }\n // Not splitable if we find a reference store file present in the store.\n boolean splitable = true;\n long maxSize = 0L;\n Long mapIndex = Long.valueOf(0L);\n for (Map.Entry<Long, StoreFile> e: storefiles.entrySet()) {\n StoreFile sf = e.getValue();\n if (splitable) {\n splitable = !sf.isReference();\n if (!splitable) {\n // RETURN IN MIDDLE OF FUNCTION!!! If not splitable, just return.\n if (LOG.isDebugEnabled()) {\n LOG.debug(sf + \" is not splittable\");\n }\n return null;\n }\n }\n long size = sf.getReader().length();\n if (size > maxSize) {\n // This is the largest one so far\n maxSize = size;\n mapIndex = e.getKey();\n }\n }\n\n HFile.Reader r = this.storefiles.get(mapIndex).getReader();\n // Get first, last, and mid keys. Midkey is the key that starts block\n // in middle of hfile. Has column and timestamp. Need to return just\n // the row we want to split on as midkey.\n byte [] midkey = r.midkey();\n if (midkey != null) {\n KeyValue mk = KeyValue.createKeyValueFromKey(midkey, 0, midkey.length);\n byte [] fk = r.getFirstKey();\n KeyValue firstKey = KeyValue.createKeyValueFromKey(fk, 0, fk.length);\n byte [] lk = r.getLastKey();\n KeyValue lastKey = KeyValue.createKeyValueFromKey(lk, 0, lk.length);\n // if the midkey is the same as the first and last keys, then we cannot\n // (ever) split this region. \n if (this.comparator.compareRows(mk, firstKey) == 0 && \n this.comparator.compareRows(mk, lastKey) == 0) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"cannot split because midkey is the same as first or \" +\n \"last row\");\n }\n return null;\n }\n return new StoreSize(maxSize, mk.getRow());\n }\n } catch(IOException e) {\n LOG.warn(\"Failed getting store size for \" + this.storeNameStr, e);\n } finally {\n this.lock.readLock().unlock();\n }\n return null;\n }", "title": "" }, { "docid": "37bf17ba96a1a4602f51361d492b4382", "score": "0.52448004", "text": "@Override\n protected int getPartitionSize() {\n return mEndIndex-mStartIndex;\n }", "title": "" }, { "docid": "0923208561dbdfde0cf9bf55bd621049", "score": "0.5243086", "text": "protected abstract int getMaxLitterSize();", "title": "" }, { "docid": "dcd5823f88158b1ff2eafdeb6b141139", "score": "0.5233945", "text": "public Double getPartsPerMillion() {\r\n return partsPerMillion;\r\n }", "title": "" }, { "docid": "4ffa7f0c490d04a317ed91e387368483", "score": "0.5228833", "text": "public ArrayList<AbtPoint> MDivide(ArrayList<AbtPoint> mabt, Graphics g)\n\t {\t\n\t\t//If Input size is less than 4, then return\n\t\t if(mabt.size()<4)\n\t\t\t return mabt;\n\t\t \n\t\t else\n\t\t {\n\t\t\t //Determine the split index of the input\n\t\t\t int split = (mabt.size()-1)/2;\n\t\t\t \n\t\t\t ArrayList<AbtPoint> chull = new ArrayList<AbtPoint>();//Output\n\t\t\t \n\t\t\t //Populate the Left half of the input\n\t\t\t ArrayList<AbtPoint> lefty = new ArrayList<AbtPoint>();\n\t\t\t\t\n\t\t\t\tfor(int i=0; i<=split; i++)\n\t\t\t\t\t\n\t\t\t\t\tlefty.add(mabt.get(i));\n\t\t\t\t\t\n\t\t\t//Populate the Right half of the input\n\t\t\tArrayList<AbtPoint> righty = new ArrayList<AbtPoint>();\n\t\t\t\t\n\t\t\t\tfor(int i=split+1; i<mabt.size(); i++)\n\t\t\t\t\t\n\t\t\t\t\trighty.add(mabt.get(i));\n\t\t\t\t\t\n\t\t\t\t//Represents the hull returned by the left half\n\t\t\t\tArrayList<AbtPoint> lhull = new ArrayList<AbtPoint>();\n\t\t\t\t//Represents the hull returned by the right half\n\t\t\t\tArrayList<AbtPoint> rhull = new ArrayList<AbtPoint>();\n\t\t\t\t\n\t\t\t\t// Recursively call the MDivide function for the left and right halves\n\t\t\t\tlhull=MDivide(lefty,g);\n\t\t\t\trhull=MDivide(righty,g);\n\t\t\t\t/*Call the combiner function UpperLower on the hulls \n\t\t\t\t * returned by the left and right halves*/\n\t\t\t\tchull=UpperLower(lhull,rhull,g);\n\t\t\t\t//Return the convex hull\n\t\t\t\treturn chull;\n\t\t }\n\t}", "title": "" }, { "docid": "482afa04dc536ab86f3133221417ed44", "score": "0.52215815", "text": "protected int getBlockSize(JXSlider slider) {\r\n Integer userSet = getUIProperty(slider, \"blockSize\");\r\n\r\n int result;\r\n if (userSet == null) {\r\n long min = locationToValue(slider, 0, 0);\r\n long max = locationToValue(slider, slider.getWidth(), slider.getHeight());\r\n result = (int) (Math.abs(max - min) / 10);\r\n } else {\r\n result = userSet;\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "b2f261c17c65c814e7bfa3327570bab1", "score": "0.516991", "text": "protected void split(DataNode dnode) {\n\t\tboolean dnodeinserted = false;\n\t\tfor(int i=0; !dnodeinserted && i < data.size(); i++) {\n\t\t\tif( ((DataNode)data.elementAt(i)).inOrder(dnode) ) {\n\t\t\t\tdata.add(i,dnode);\n\t\t\t\tdnodeinserted = true;\n\t\t\t}\n\t\t}\n\t\tif(!dnodeinserted) {\n\t\t\tdata.add(data.size(), dnode);\n\t\t}\n\t\t\n\t\t// calculate the split point; ceiling(maxsize/2)\n\t\tint splitlocation;\n\t\tif(maxsize%2 == 0) {\n\t\t\tsplitlocation = maxsize/2;\n\t\t}\n\t\telse {\n\t\t\tsplitlocation = (maxsize+1)/2;\n\t\t}\n\t\t\t\t\n\t\t// create new LeafNode\n\t\tLeafNode right = new LeafNode(maxsize);\n\t\t\n\t\tfor(int i = data.size()-splitlocation; i > 0; i--) {\n\t\t\tright.data.add(data.remove(splitlocation));\n\t\t}\n\t\t\n\t\t// link the two together\n\t\tright.setNextNode(this.getNextNode());\n\t\tthis.setNextNode(right);\n\t\t\n\t\t// get the middle item's data\n\t\tDataNode mid = (DataNode) data.elementAt(data.size()-1);\n\n\t\t// propagate the data and pointers into the parent node\n\t\tthis.propagate(mid, right);\n\t}", "title": "" }, { "docid": "157f75ff220b3eed139131a26e332178", "score": "0.510574", "text": "@Override\n\tpublic int getMaxSizeX()\n\t{\n\t\treturn 50;\n\t}", "title": "" }, { "docid": "d768b1d73a609dfdf7f799bb9e474886", "score": "0.5104487", "text": "int getPartSize();", "title": "" }, { "docid": "d1b21d4d7c702df05fdc58b95a63875e", "score": "0.5101821", "text": "public default EvenSplit getEvenSplit(int split, Config config) {\n\n\t\tSpace spL = makeEmptySpace(), spR = makeEmptySpace();\n\t\tPair<? extends Space, ? extends Space> splitLR = getUniverse().split(split);\n\t\tSpace splitL = splitLR.fst.toUniverse(), splitR = splitLR.snd.toUniverse();\n\n\t\tSet<SID> undecided = new HashSet<SID>(keySet());\n\t\tSet<SID> intL = new HashSet<SID>(), intR = new HashSet<SID>();\n\t\tSet<SID> intSpL = Utils.getIntersecting(splitL, undecided, getSpaces(), config.numThreads);\n\t\tSet<SID> intSpR = Utils.getIntersecting(splitR, undecided, getSpaces(), config.numThreads);\n\n\t\tint diff = Math.abs(intSpL.size() - intSpR.size());\n\t\tint bestDiff = diff;\n\n\t\tBlock splitBlock = Block.getTopBlock();\n\t\tSet<SID> intAllL = intSpL, intAllR = intSpR;\n\t\tEvenSplit bestSplit = new EvenSplit(splitBlock, intSpL, intSpR, splitL, splitR);\n\n\t\tint i = 0;\n\t\tdouble ratio = ((double) Math.min(intSpR.size(), intSpL.size())) / Math.max(intSpR.size(), intSpL.size());\n\n\t\twhile (i++ < config.maxSplits && ratio < config.minRatio) {\n\n\t\t\tif (intAllR.size() > intAllL.size()) {\n\n\t\t\t\tspL = spL.union(splitL).toUniverse();\n\t\t\t\tintL.addAll(intSpL);\n\t\t\t\tundecided = new HashSet<SID>(intSpR);\n\n\t\t\t\tsplitLR = splitR.split(split);\n\t\t\t\tsplitBlock = splitBlock.addOne();\n\n\t\t\t} else {\n\n\t\t\t\tspR = spR.union(splitR).toUniverse();\n\t\t\t\tintR.addAll(intSpR);\n\t\t\t\tundecided = new HashSet<SID>(intSpL);\n\n\t\t\t\tsplitLR = splitL.split(split);\n\t\t\t\tsplitBlock = splitBlock.addZero();\n\t\t\t}\n\n\t\t\tsplitL = splitLR.fst.toUniverse();\n\t\t\tsplitR = splitLR.snd.toUniverse();\n\n\t\t\tintSpL = Utils.getIntersecting(splitL, undecided, getSpaces(), config.numThreads);\n\t\t\tintSpR = Utils.getIntersecting(splitR, undecided, getSpaces(), config.numThreads);\n\n\t\t\tintAllL = Utils.union(intL, intSpL);\n\t\t\tintAllR = Utils.union(intR, intSpR);\n\t\t\tdiff = Math.abs(intAllL.size() - intAllR.size());\n\n\t\t\tif (diff < bestDiff) {\n\t\t\t\tbestSplit = new EvenSplit(new Block(splitBlock.getRepresentation()), \n\t\t\t\t new HashSet<SID>(intAllL), \n\t\t\t\t new HashSet<SID>(intAllR),\n\t\t\t\t spL.union(splitL).toUniverse(),\n\t\t\t\t spR.union(splitR).toUniverse());\n\t\t\t\tbestDiff = diff;\n\t\t\t}\n\n\t\t\tratio = ((double) Math.min(intAllR.size(), intAllL.size())) / Math.max(intAllR.size(), intAllL.size());\n\t\t}\n\t\treturn bestSplit;\n\t}", "title": "" }, { "docid": "be4a96980b32b9a6424c136e1f52681e", "score": "0.5095652", "text": "private int getMinSize() {\r\n return Math.max(fPosEnd + (fRunStart.length - fNegStart) + 1, 1);\r\n }", "title": "" }, { "docid": "ea6e9cf3ed2ab861ee83616c1eb3e689", "score": "0.5068751", "text": "default int floorIndex(int ndx) {\n if (ndx < 0 || isNil())\n return -1; //out of range\n int t = totalSize();\n if (ndx >= t)\n return t - 1;\n return ndx;\n }", "title": "" }, { "docid": "fa85bf50f4de8cbfbbaab9a2d509423b", "score": "0.5065542", "text": "int getMaxPartitions();", "title": "" }, { "docid": "2a231a879d8c5507ec06c916f5270e6d", "score": "0.506368", "text": "@Test\n\tpublic void getMinMaxTest() {\n\t\t// tested in SegmentTreeUtilTest.java\n\t}", "title": "" }, { "docid": "36b0d0a621782eca05afccc22e36cf1f", "score": "0.50616544", "text": "private void determineStepWidth() {\n if (currentSelfSimilarity == lowerBound) {\n // try to go up\n double nextStep = currentSelfSimilarity + stepSize;\n // get next higher entry\n Map.Entry<Double, Integer> higherEntry = samplingResults.higherEntry(currentSelfSimilarity);\n // going up results in crossing upper bound\n if (nextStep > upperBound) {\n // reduce step size\n stepSize = (nextStep - upperBound) / 2.0;\n determineStepWidth();\n }\n // if no next entry is available\n if (higherEntry == null) {\n // add a sampling point to the stack\n requestSampling(nextStep);\n return;\n }\n // calculate delta\n int lowerClusterNumber = samplingResults.get(currentSelfSimilarity);\n int upperClusterNumber = higherEntry.getValue();\n int delta = upperClusterNumber - lowerClusterNumber;\n // no plateau\n if (delta == 0) {\n stepSize *= 1.2;\n }\n requestSampling(nextStep);\n\n } else if (currentSelfSimilarity == upperBound) {\n // currently at upper bond\n // try to go down\n double nextStep = currentSelfSimilarity - stepSize;\n // get next lower entry\n Map.Entry<Double, Integer> lowerEntry = samplingResults.lowerEntry(currentSelfSimilarity);\n // going up results in crossing lower bound\n if (nextStep < lowerBound) {\n // reduce step size\n stepSize = (nextStep - upperBound) / 2.0;\n determineStepWidth();\n }\n // if no next entry is available\n if (lowerEntry == null) {\n // add a sampling point to the stack\n requestSampling(nextStep);\n return;\n }\n // calculate delta\n int lowerClusterNumber = lowerEntry.getValue();\n int upperClusterNumber = samplingResults.get(currentSelfSimilarity);\n int delta = upperClusterNumber - lowerClusterNumber;\n // no plateau\n if (delta == 0) {\n stepSize *= 1.2;\n }\n requestSampling(nextStep);\n } else {\n determineNextSamplingPoint();\n }\n\n }", "title": "" }, { "docid": "03d592838c6cd1a27e8b1d332856f468", "score": "0.50589055", "text": "int getMaxChunkSize();", "title": "" }, { "docid": "cad2e7b50227d58e1b37f8259171c1e1", "score": "0.5057044", "text": "public double xstep() {\n\n\t\tdouble maxlon = GPSUtils.findMax(GPSUtils.getLongitudes(gpspoints));\n\t\tdouble minlon = GPSUtils.findMin(GPSUtils.getLongitudes(gpspoints));\n\n\t\tdouble xstep = MAPXSIZE / (Math.abs(maxlon - minlon)); \n\n\t\treturn xstep;\n\t}", "title": "" }, { "docid": "8e9bdbecad9a8a4d1983b571617b405e", "score": "0.50464404", "text": "public int getDividerLocation(JSplitPane paramJSplitPane) {\n/* 976 */ if (this.orientation == 1)\n/* 977 */ return (this.divider.getLocation()).x; \n/* 978 */ return (this.divider.getLocation()).y;\n/* */ }", "title": "" }, { "docid": "a37f383de36a64b6b5fb3f50f9d0a71b", "score": "0.50455034", "text": "public T_SPLITR mo131224f() {\n long j = this.f111475a;\n long j2 = this.f111479e;\n if (j >= j2 || this.f111478d >= j2) {\n return null;\n }\n while (true) {\n T_SPLITR t_splitr = (T_SPLITR) this.f111477c.mo130665f();\n if (t_splitr == null) {\n return null;\n }\n long b = this.f111478d + t_splitr.mo130660b();\n long min = Math.min(b, this.f111476b);\n long j3 = this.f111475a;\n if (j3 >= min) {\n this.f111478d = min;\n } else {\n long j4 = this.f111476b;\n if (min >= j4) {\n this.f111477c = t_splitr;\n this.f111479e = min;\n } else if (this.f111478d < j3 || b > j4) {\n long j5 = this.f111475a;\n long j6 = this.f111476b;\n long j7 = this.f111478d;\n this.f111478d = min;\n return mo131221a(t_splitr, j5, j6, j7, min);\n } else {\n this.f111478d = min;\n return t_splitr;\n }\n }\n }\n }", "title": "" }, { "docid": "7bc0a42e4cbaa1853a6da371a1729b5b", "score": "0.50431395", "text": "private static int partition(int[] a, int start, int end){\r\n int bigStart = start + 1; //the bigs will start one after the pivot until smalls are swapped in between\r\n int pivot = a[start]; //pivot begins at start of the array\r\n \r\n for (int curr = start + 1; curr < end; curr++){\r\n if (a [curr] < pivot) { // belongs to smalls\r\n swap(a, curr, bigStart); // swap into correct position\r\n bigStart++;\r\n }//if\r\n }//for\r\n \r\n swap (a, start, bigStart - 1); // swap pivot into correct location\r\n return bigStart - 1; // returns the position of the pivot\r\n \r\n }", "title": "" }, { "docid": "bcb3f4245f9f7258358f5c4e69272e40", "score": "0.5034477", "text": "abstract public double getRangeSize();", "title": "" }, { "docid": "8efbc36b16ddb3b9886b44ff8d56b9b0", "score": "0.5021607", "text": "@Override\n\tpublic FourPointCurve subdivide(FourPointCurve curve, PointSelector pointSelector, int step) {\n\t\tint longestEdgeIndex = -1;\n\t\tdouble longestEdge = 0;\n\n\t\tfor (int i = 0; i < curve.size() - 1; i++) {\n\t\t\tdouble length = curve.getPoint(i).squaredDistanceTo(curve.getPoint(i + 1));\n\n\t\t\tif (length > longestEdge) {\n\t\t\t\tlongestEdgeIndex = i;\n\t\t\t\tlongestEdge = length;\n\t\t\t}\n\t\t}\n\n\t\tif (longestEdgeIndex == -1) {\n\t\t\tthrow new RuntimeException(\"Cannot find a longest edge!\");\n\t\t}\n\n\t\treturn curve.subdivide(pointSelector, step, longestEdgeIndex);\n\t}", "title": "" }, { "docid": "4ba0d4eead5a770c2873d46a32666f8d", "score": "0.5021529", "text": "public double getMaxLim() {\n double x1 = sampleStart_Text.getValue();\n double x2 = sampleStop_Text.getValue();\n return Math.max( x1, x2 );\n }", "title": "" }, { "docid": "720e5e3b1197853cf58bd448c8ea3f9f", "score": "0.5013993", "text": "default int ceilingIndex(int ndx) {\n if (isNil())\n return -1;\n if (ndx < 0)\n return 0;\n return (totalSize() > ndx) ? ndx : -1;\n }", "title": "" }, { "docid": "0d081e73a6df8d1a2cddea61fa343b79", "score": "0.4985631", "text": "protected abstract int getMaxSize();", "title": "" }, { "docid": "9f2b484ed8a2629ef2603a7c35e5e584", "score": "0.49834234", "text": "public double size() {\r\n\t\treturn Math.abs((double)num/den);\r\n\t}", "title": "" }, { "docid": "0a8f08fc4ffe494cd499a35498568280", "score": "0.4982373", "text": "public void setSplitRatio(double value) {\n this.splitRatio = value;\n }", "title": "" }, { "docid": "c21c6be00b637b5225638dd948b7c9e4", "score": "0.49799114", "text": "public double getMidPoint (){\n return midPoint;\n }", "title": "" }, { "docid": "eba80985e4cc7eaa5a9e0cbe0ec0340b", "score": "0.4978436", "text": "void setDividerLocation(int param1Int1, int param1Int2) {\n/* 1825 */ boolean bool1 = (this.components[0] != null && this.components[0].isVisible()) ? true : false;\n/* */ \n/* 1827 */ boolean bool2 = (this.components[1] != null && this.components[1].isVisible()) ? true : false;\n/* */ \n/* 1829 */ boolean bool3 = (this.components[2] != null && this.components[2].isVisible()) ? true : false;\n/* 1830 */ int i = param1Int2;\n/* */ \n/* 1832 */ if (bool3) {\n/* 1833 */ i -= this.sizes[2];\n/* */ }\n/* 1835 */ param1Int1 = Math.max(0, Math.min(param1Int1, i));\n/* 1836 */ if (bool1) {\n/* 1837 */ if (bool2) {\n/* 1838 */ this.sizes[0] = param1Int1;\n/* 1839 */ this.sizes[1] = i - param1Int1;\n/* */ } else {\n/* */ \n/* 1842 */ this.sizes[0] = i;\n/* 1843 */ this.sizes[1] = 0;\n/* */ }\n/* */ \n/* 1846 */ } else if (bool2) {\n/* 1847 */ this.sizes[1] = i;\n/* 1848 */ this.sizes[0] = 0;\n/* */ } \n/* */ }", "title": "" }, { "docid": "f14cfac144b4e26a7895ab88d00a8d2b", "score": "0.49684247", "text": "public void splitOperation() {\n\t\tdouble fileSize= Math.ceil(this.file.length() / (float) seg); //calculating the individual segment size\n\t\tbyte[] buffer = new byte[(int) fileSize];\n\t\tString fileName = this.file.getName();\n\t\ttry (FileInputStream Fis = new FileInputStream(this.file);\n\t\t\tBufferedInputStream br = new BufferedInputStream(Fis)){\n\t\t\tint byteamount = 0;\n\t\t\tint j=0;\n\t\t\t\n\t\t\t//problem of adding elements to array when size is not exactly fit.\n\t\t\t//if size is less, it wont be added\n\t\t\t\n\t\t\t\n\t\t\twhile((byteamount=br.read(buffer))>0)\n\t\t\t {\n\t String filePartName = fileName.substring(0, fileName.length()-4);\n\t\t\t\tFile newFile = new File(this.file.getParent(),filePartName+j+++\".txt\"); //generating segments\n\t try(FileOutputStream fos = new FileOutputStream(newFile)){\n\t \t fos.write(buffer, 0, byteamount);\n\t }\n\t\t\t }\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "eb6c552ea3509c3ab153c6faf86f776c", "score": "0.4962236", "text": "public int splitArray(int[] nums, int m) {\n int max = 0;\n long sum = 0;\n for (int num : nums) {\n max = Math.max(num, max);\n sum += num;\n }\n if (m == 1) {\n return (int) sum;\n }\n //binary search\n long l = max;\n long r = sum;\n while (l <= r) {\n long mid = (l + r) / 2;\n if (valid(mid, nums, m)) {\n r = mid - 1;\n } else {\n l = mid + 1;\n }\n }\n return (int) l;\n }", "title": "" }, { "docid": "84ec174c462d6081262896bbe7e6d049", "score": "0.4961261", "text": "int getPointsPerPick();", "title": "" }, { "docid": "a7cc1cea013a189c574aed5812f0ac02", "score": "0.49559045", "text": "private int ndxx(double x) {\n\t\tif (x < minx) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (x >= maxx) {\n\t\t\treturn resx + 1;\n\t\t}\n\t\treturn (int) ((x - minx) / sizex) + 1;\n\t}", "title": "" }, { "docid": "b8d67ab23e9eb2afbc3cf142074fd8f9", "score": "0.4954793", "text": "public Asteroid createSplitAsteroid(double minVelocity,\n double maxVelocity){\n return new Asteroid(x,y,radius/Math.sqrt(numSplit),\n minVelocity,maxVelocity,hitsLeft-1,numSplit,classic1);\n }", "title": "" }, { "docid": "a329fc8b6397d6b221b6284c588cd3f0", "score": "0.49479714", "text": "public int getMinExactChunk() { return this.minExactChunk; }", "title": "" }, { "docid": "892f6e2f6a3f67d0363904bb377469b1", "score": "0.49470332", "text": "org.apache.xmlbeans.XmlDouble xgetLimite();", "title": "" }, { "docid": "0bbb13490c0355b8696ac77ea0fa9c9c", "score": "0.4944835", "text": "int floorIndex(int ndx);", "title": "" }, { "docid": "80183d38bb5badb81779c3cec4345b3a", "score": "0.49384937", "text": "long getMaximumSize();", "title": "" }, { "docid": "7c9f83a0e2a10d9fcf5036dcfa831654", "score": "0.49336472", "text": "private void diversify() throws FunctionEvalLimitException {\n\t\tdouble[] coord=mem.diversify(); //goes to an area we haven't looked that much at.\n\t\tbasePoint=new Vector2(fn,coord[0], coord[1]);\n\t\taddBasePointToLogAndMem(basePoint, false);\n\t\tcounter++;\n\t}", "title": "" }, { "docid": "a8e06c4515bdb9b41ea2402fd361208c", "score": "0.49321234", "text": "@Test\n public void splitWidth() {\n Sprite split = sprite.split(10, 11, 12, 13);\n assertThat(split.getWidth()).isEqualTo(12);\n }", "title": "" }, { "docid": "a998e6c3810f24c87f9b54737b2c8c12", "score": "0.49285537", "text": "HyperPoint getMax();", "title": "" }, { "docid": "e6518a77b30be2cca288eee797e04603", "score": "0.4926849", "text": "public static int cutSegments2(int segmentSize, int x, int y, int z) {\n int[] segments = new int[]{x, y, z};\n double[] memory = new double[segmentSize + 1];\n Arrays.fill(memory, -1);\n double ans = getSegments(segmentSize, segments, memory);\n if (Double.isInfinite(ans)) {\n return 0;\n } else {\n return (int) ans;\n }\n }", "title": "" }, { "docid": "5b76e649c109b66f9f398ce1059c2abc", "score": "0.4925566", "text": "public void splitIt() {\n\t\tint indexToSplitAt = 2;\n\t\tDataset[] staticPartitions = dataset.splitStatic(indexToSplitAt);\n\t\tSystem.out.println(\"Static partition 0: \" + staticPartitions[0].size());\n\t\tSystem.out.println(\"Static partition 1: \" + staticPartitions[1].size());\n\n\t\t// Or static by what fraction to split at\n\t\tdouble firstFraction = 0.3; // first set should include 30% \n\t\tDataset[] staticPartitionsByFraction = dataset.splitStatic(firstFraction);\n\t\tSystem.out.println(\"Static partition by fraction 0: \" + staticPartitionsByFraction[0].size());\n\t\tSystem.out.println(\"Static partition by fraction 1: \" + staticPartitionsByFraction[1].size());\n\n\t\t// Or use a Random partitioning \n\t\tDataset[] randomPartitions = dataset.splitRandom(firstFraction);\n\t\tSystem.out.println(\"Random partition 0: \" + randomPartitions[0].size());\n\t\tSystem.out.println(\"Random partition 1: \" + randomPartitions[1].size());\n\t}", "title": "" }, { "docid": "bb3775297a5fc418e2100d1e6cd7c9c3", "score": "0.49215406", "text": "public static SearchDatumInfo generateSplitBound(PartitionByDefinition partitionBy,\n SearchDatumInfo actualPartitionKey) {\n SearchDatumInfo result = actualPartitionKey;\n\n PartitionIntFunction func = partitionBy.getPartIntFunc();\n if (func != null) {\n PartitionField actualValue = actualPartitionKey.getSingletonValue().getValue();\n long value = func.evalInt(actualValue, SessionProperties.empty());\n result = SearchDatumInfo.createFromHashCode(value);\n }\n\n if (partitionBy.getStrategy() == PartitionStrategy.HASH) {\n long hashCode = partitionBy.getHasher().calcHashCode(result);\n result = SearchDatumInfo.createFromHashCode(hashCode);\n } else if (partitionBy.getStrategy() == PartitionStrategy.KEY) {\n Long[] hashCodes = partitionBy.getHasher().calcHashCodeForKey(result);\n result = SearchDatumInfo.createFromHashCodes(hashCodes);\n }\n\n return result;\n }", "title": "" }, { "docid": "778bf96f0633b92305da8097ac015d49", "score": "0.49176574", "text": "public static void eulerQuestionFourteen() {\n\tint max = 1000000;\n\tint greatestSize = 0;\n\tlong greatestBase = 0;\n\tfor(long i = 1; i < max; i++) {\n\t List<Long> tmpList = MathUtils.getCollatzSeq(i);\n\t if(tmpList.size() > greatestSize) {\n\t\tgreatestBase = i;\n\t\tgreatestSize = tmpList.size();\n\t }\n\t}\n\tSystem.out.print(\"\\ngreatest size: \" + greatestSize + \"\\n\" + \"greatestBase: \" + greatestBase);\n\tSystem.out.println();\n }", "title": "" }, { "docid": "270367a7474b8db6cbde1f031bce39b6", "score": "0.49169603", "text": "public static int cutSegments(int segmentSize, int x, int y, int z) {\n int[] segments = new int[]{x, y, z};\n double ans = getSegmentsBottomUp(segmentSize, segments);\n if (Double.isInfinite(ans)) {\n return 0;\n } else {\n return (int) ans;\n }\n }", "title": "" }, { "docid": "ac31b5d5e57a5a819a4d9418d8a97952", "score": "0.49154434", "text": "private int getMaxChunks(final Account account, final DownloadLink link) {\r\n int chunks = 1;\r\n if (link.hasProperty(PROPERTY_maxchunks)) {\r\n chunks = (int) link.getLongProperty(PROPERTY_maxchunks, 1);\r\n if (chunks <= 0) {\r\n chunks = 1;\r\n } else if (chunks > 1) {\r\n chunks = -chunks;\r\n }\r\n } else {\r\n /* Default */\r\n chunks = -16;\r\n }\r\n synchronized (RATE_LIMITED) {\r\n final HashSet<String> set = RATE_LIMITED.get(account);\r\n if (set != null && set.contains(link.getHost())) {\r\n chunks = 1;\r\n }\r\n }\r\n return chunks;\r\n }", "title": "" }, { "docid": "de350b8dd9537b144e2bd2d126f44ada", "score": "0.49106398", "text": "private final int sizeLeadDiffValue(final int x, final int y) {\r\n double result = 0, tmp;\r\n int maxK = 1;\r\n\r\n for (int k = 0; k < 3; k++) {\r\n tmp =\r\n Math.max(this.differencesBetweenNeighborhoodsHorizontal(x, y, k),\r\n this.differencesBetweenNeighborhoodsVertical(x, y, k));\r\n if (result < tmp) {\r\n maxK = k;\r\n result = tmp;\r\n }\r\n }\r\n return maxK;\r\n }", "title": "" }, { "docid": "6a0ef5bccbad451944460b4255c7ce27", "score": "0.49098548", "text": "private int getHeightLimitedSizeForMountain(int heightLimit){\n\n int sizeToUse = (int)((sizes.get(sizeCounter++))*((float)heightLimit/sizeRange));\n sizeToUse *= 2;\n\n if(sizeCounter>=sizes.size()){\n sizeCounter = 0;\n }\n return sizeToUse;\n }", "title": "" }, { "docid": "a7d4298418d265e0b3143bb7cb3ce65f", "score": "0.49054232", "text": "private float roughen(float size) {\n\t\treturn (floatInRange(range * size / randomness) * 0.5f);\n\t}", "title": "" }, { "docid": "f91f0479f4c9eeac1e7fc7b6cfe3a75d", "score": "0.49040177", "text": "public void makeCut() {\n \tint newEnd = (int) Math.ceil(_seeding.size() * (1.0 - (_cut/100.0)));\n if(newEnd == _seeding.size()) {\n \treturn;\n }\n _seeding = _seeding.subList(0, newEnd);\n }", "title": "" }, { "docid": "cbfbac80d301c4c2fa64de8fe2d67c04", "score": "0.49032176", "text": "@Test\n public void splitOutOfBounds() {\n Sprite split = sprite.split(10, 10, 64, 10);\n assertThat(split).isInstanceOf(EmptySprite.class);\n }", "title": "" }, { "docid": "ba0ad10653641deaf5e971d3c1434697", "score": "0.4902412", "text": "@Override\r\n public void propertyChange(PropertyChangeEvent evt) {\r\n\t// dividerLocation = objSplitPane.getDividerLocation();\r\n\t// int w = (int) getSize().getWidth();\r\n\t// try {\r\n\t// // setSize(w, dividerLocation + 600);\r\n\t// } catch (InvalidGUIObjectException e) {\r\n\t// }\r\n }", "title": "" }, { "docid": "2a624a827b3f3c2575796f118de78c14", "score": "0.48979062", "text": "public int getMaxX(){\n return maxX;\n }", "title": "" }, { "docid": "06ba68b6881a4128326482309408ccf7", "score": "0.48972797", "text": "public static List<SplitPoint> sample(String partitionName, List<SplitPoint> splitPoints, int maxCount) {\n if (splitPoints.size() <= maxCount) {\n return splitPoints;\n }\n List<SplitPoint> result = new ArrayList<>(maxCount);\n SplitNameBuilder snb = new SplitNameBuilder(partitionName);\n double step = splitPoints.size() * 1.0 / maxCount;\n double gap = 0.0;\n for (SplitPoint splitPoint : splitPoints) {\n if (gap >= step) {\n SplitPoint newSp = splitPoint.clone();\n snb.build(newSp);\n result.add(newSp);\n gap = 0;\n }\n gap += 1;\n }\n return result;\n }", "title": "" }, { "docid": "bc3382d0719306dc445a606f9acc9482", "score": "0.4897131", "text": "private int getMinWinLenDividableByStepFactor(int requestedSize, int stepFactor) {\n minBufferSize = AudioRecord.getMinBufferSize(Fs,\n AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT);\n if(minBufferSize < 0) {\n Log.e(TAG, \"Error getting the minimal buffer size: \" + minBufferSize);\n return -1;\n }\n while (requestedSize < minBufferSize || requestedSize % stepFactor != 0) {\n requestedSize++;\n }\n Log.i(TAG, \"requestedSize returned: \" + requestedSize);\n return requestedSize;\n }", "title": "" }, { "docid": "c30a557b965f137a4e5b96384aabf0a4", "score": "0.48904008", "text": "double getMaxAggregateSize();", "title": "" }, { "docid": "6b03ffc56e484a53124e45d80fb92a3e", "score": "0.48890942", "text": "public double getMinLim() {\n double x1 = sampleStart_Text.getValue();\n double x2 = sampleStop_Text.getValue();\n return Math.min( x1, x2 );\n }", "title": "" }, { "docid": "d6e59f2191c7a65f11e88371c7c39cfe", "score": "0.48847374", "text": "public double getStepSize() {\n\t\treturn (fUpper - fLower) / fAmtSteps;\n\t}", "title": "" }, { "docid": "7a3da0fcd8e85f61148ec15b24c6e63d", "score": "0.4869736", "text": "private double getMaxX()\n\t{\n\t\tdouble maxX = 0;\n\t\tfor (Point point : points) {\n\t\t\tif (point.getX() > maxX) {\n\t\t\t\tmaxX = point.getX();\n\t\t\t}\n\t\t}\n\t\treturn maxX;\n\t}", "title": "" }, { "docid": "b7c00cc8dcbebccb498712f0f071d055", "score": "0.48687664", "text": "@Override\n public CassandraDeepJobConfig<T> splitSize(int splitSize) {\n // this.isSplitModeSet = true;\n // this.isBisectModeSet = false;\n // this.splitSize = splitSize;\n return this;\n }", "title": "" }, { "docid": "a3cf21a3fa3e8b874576eb39769d0f60", "score": "0.48625726", "text": "private int splitWidth(double x , double y , final double step_width , final double step_height , int pieceId) throws IOException {\n while (x + 1 < absolute_width) {\n ImageIO.write(bufferedImage.getSubimage((int) x,(int) y,(int) step_width,(int) step_height), \"png\", new File(FileConstants.PIECES_DIR , fileName + FileConstants.PIECE_OF_IMAGE + pieceId++ + FileConstants.PNG_FORMAT));\n x = x + step_width;\n PuzzleLogger.info(class_name , \"x : \" + x);\n }\n return pieceId;\n }", "title": "" }, { "docid": "6a85db9b086ee9d9213fe89347846816", "score": "0.48566836", "text": "private int calcActualDistance(int size) {\n // we already know distance and size are non-zero\n int actualDistance = distance % size;\n if (actualDistance < 0) {\n // distance must have been negative\n actualDistance += size;\n }\n return actualDistance;\n }", "title": "" }, { "docid": "0a5be16d1fdc44988a7843527bfda6ae", "score": "0.48541647", "text": "private int findMid(int high, int low) {\r\n\t\treturn (high + low)/2;\r\n\t}", "title": "" }, { "docid": "bced44904b21fad596aa654886aaa62f", "score": "0.48520887", "text": "public int getMaxSize ()\n\t{\n\t\treturn this.polynomialsize;\n\t}", "title": "" }, { "docid": "93ce1bf6ca2bc854d6aaaeaa70a09cf7", "score": "0.48484892", "text": "public double getStepSizeForMinimizer(){\n return Double.NaN;\n }", "title": "" }, { "docid": "403bc910e3e165388505a82948e3d1bb", "score": "0.48459688", "text": "java.math.BigInteger getNumPartitions();", "title": "" }, { "docid": "4604dbcd49a14ef56ca1181d9139ee7e", "score": "0.48453683", "text": "int getSplitsCount();", "title": "" }, { "docid": "a415543ee7893b98d03b8ad922a2effb", "score": "0.48439482", "text": "private int partition(int first, int last) {\n\t\t// TODO\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "7f3560d99b0fdb8c155c7cda3b92626c", "score": "0.4842969", "text": "public int getNearestChunkX() {\n\t\treturn Chunk.CHUNK_WIDTH * Math.round(posX / Chunk.CHUNK_WIDTH);\n\t}", "title": "" }, { "docid": "fe8034fcfa790266b2843d6950cec6d1", "score": "0.4842082", "text": "public int getMaxRange() {\n\t\treturn Settings.PI_GRANULARITY;\n\t}", "title": "" }, { "docid": "0681f757355695d88ccf70435c59de56", "score": "0.48234114", "text": "public float[] calculateSplits(Histogram h){\n\t\tlong[] counts = h.getBinCounts();\n\t\t//sum first 7\n\t\tfloat first = 0;\n\t\tfor (int i=0; i<7; i++) first+= counts[i];\n\t\t//sum middle 5\n\t\tfloat middle = 0;\n\t\tfor (int i=7; i<12; i++) middle+= counts[i];\n\t\t//sum last 8\n\t\tfloat last = 0;\n\t\tfor (int i=12; i<counts.length; i++) last+= counts[i];\n\t\tfloat total = first + middle + last;\n\t\treturn new float[]{first/total, middle/total, last/ total};\n\t}", "title": "" }, { "docid": "c27061f8f17102b72817beb283370d73", "score": "0.4818704", "text": "public abstract T_SPLITR mo131221a(T_SPLITR t_splitr, long j, long j2, long j3, long j4);", "title": "" }, { "docid": "46f517bac24c01878837d6a399022f48", "score": "0.48186365", "text": "public void calcInterval(){\n\t\tif (this.pred == null){\n\t\t\tlogger.error(\"predeccessor mist be set first!\");\n\t\t}\n\n\t\tBigInteger from = BattleshipTools.increaseID(this.pred).toBigInteger();\n\t\tBigInteger to = BattleshipTools.decreaseID(this.id).toBigInteger();\n\n\t\tBigInteger diff;\n\n\t\tif(hasWraparound) {\n\t\t\tdiff = wraparoundNormalize(from, to);\n\t\t} else {\n\t\t\tdiff = to.subtract(from);\n\t\t}\n \n /*TODO: what about the rest?*/\n spaceSz = diff.divide(BigInteger.valueOf(numSpaces));\n\t}", "title": "" }, { "docid": "be8e64230fb1c00a5cac55ea499622c2", "score": "0.48158833", "text": "private void splitRectangle(Node<Rectangle> toSplitNode, float tileSize){\n double rand = Math.random();\n Rectangle toSplit = toSplitNode.getData();\n\n if (toSplit.getWidth() < toSplit.getHeight()) {\n rand += 1;\n }\n else {\n rand -= 1;\n }\n\n Rectangle rect1;\n Rectangle rect2;\n PVector splitPos = toSplit.getPosition();\n float splitWidth = toSplit.getWidth();\n float splitHeight = toSplit.getHeight();\n double split;\n if (rand > 0.5f){\n split = minHeight + Math.random()*(splitHeight - 2*minHeight);\n split = split - (split % tileSize);\n rect1 = new Rectangle(splitPos, splitWidth, (float) split - (CONNECTOR_LENGTH /2) *tileSize);\n rect2 = new Rectangle(new PVector(splitPos.x, splitPos.y + rect1.getHeight() + CONNECTOR_LENGTH *tileSize),\n splitWidth,\n (float) (splitHeight - split - (CONNECTOR_LENGTH /2) *tileSize));\n }\n else {\n split = minWidth + Math.random()*(toSplit.getWidth() - 2* minWidth);\n split = split - (split % tileSize);\n rect1 = new Rectangle(splitPos, (float) split - (CONNECTOR_LENGTH /2) *tileSize, splitHeight);\n rect2 = new Rectangle(new PVector(splitPos.x + rect1.getWidth() + CONNECTOR_LENGTH *tileSize, splitPos.y),\n (float) (splitWidth - split - (CONNECTOR_LENGTH /2) *tileSize),\n splitHeight);\n }\n\n toSplitNode.addChild(new Node<>(rect1));\n toSplitNode.addChild(new Node<>(rect2));\n }", "title": "" }, { "docid": "6884692014b9c98a418a49dc4b85e4d7", "score": "0.48143014", "text": "@Test\n public void splitHeight() {\n Sprite split = sprite.split(10, 11, 12, 13);\n assertThat(split.getHeight()).isEqualTo(13);\n }", "title": "" } ]
ec06d6277fe660da3f6ae25d98369297
User.latestProducts = data; listener.onReady(data);
[ { "docid": "092f33e2fe5fa020c69a7d3dfa5dca86", "score": "0.6429161", "text": "@Override\n public void onSuccess(List<Product> data) {\n }", "title": "" } ]
[ { "docid": "416b305327eedb43287c5d79e29a06cd", "score": "0.61691374", "text": "@Override\n public void onRefresh() {\n presenter.GetProducts();\n\n }", "title": "" }, { "docid": "372c1d5bc0de2369bd5c98bfd9196ce8", "score": "0.6047617", "text": "void onCollectingData();", "title": "" }, { "docid": "08dc9831dc9e17b440c7447252fee579", "score": "0.5967012", "text": "public void sensorDataFetch(){\n if(sensorDataFetch!=null){\n sensorDataFetch.unregisterListener();\n }\n sensorDataFetch = new SensorDataFetch(application,this);\n sensorDataFetch.execute();\n }", "title": "" }, { "docid": "69603bb23c7a703ad2f0a9c955fe23e9", "score": "0.5954339", "text": "@Override\n public void onLoadData() {\n }", "title": "" }, { "docid": "f088f00843553f7c51745022d3e9143e", "score": "0.58794093", "text": "public interface onDisplayDataFinishedListener {\n //successfully retrieves user information from database\n void setCustomers(String[] response);\n }", "title": "" }, { "docid": "82773a8ad056141eccc5e74f00d0bc1d", "score": "0.5874066", "text": "public void productAddedNotify() {\n this.products = new ArrayList<>(((ProductApplication) ctxt.getApplicationContext()).getProducts());\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "ec92b05dbab6fb4ae1a11b31da94ce3b", "score": "0.586918", "text": "public void updateJSONdata() {\n mProductList = CurrentShop.getInstance().getFilteredPrizes(CurrentUser.getInstance().getTotal_coins());\n }", "title": "" }, { "docid": "bb35b9becba4e78922213c90da176aba", "score": "0.5839129", "text": "public void setUpProductAdded(){\n setUpStoreOpened();\n subscribe.addProductToStore(data.getProductData(Data.VALID));\n }", "title": "" }, { "docid": "0f03e39a88cb042297f54a5c195d3d32", "score": "0.58094335", "text": "private void subscribeUi(ProductListViewModel viewModel) {\n viewModel.getProducts().observe(this, new Observer<List<ProductEntity>>() {\n @Override\n public void onChanged(@Nullable List<ProductEntity> myProducts) {\n if (myProducts != null) {\n mBinding.setIsLoading(false);\n mProductAdapter.setProductList(myProducts);\n countInDB = myProducts.size();\n } else {\n mBinding.setIsLoading(true);\n }\n }\n });\n }", "title": "" }, { "docid": "bf257f3298c553a33a772c0515e4834a", "score": "0.5808472", "text": "@Override\n public void getShoppingData() {\n }", "title": "" }, { "docid": "d5ea01cc6c3becfcb45767aaa1cb0e8b", "score": "0.5788319", "text": "private void setVariables() {\n extras = getIntent().getExtras();\n dbProduct = FirebaseDatabase.getInstance().getReference(\"Product\");\n pageTitle = findViewById(R.id.product_info_firebase_title);\n goBack = findViewById(R.id.product_info_firebase_go_back);\n recyclerView = findViewById(R.id.recyclerViewProduct);\n search = findViewById(R.id.product_info_firebase_search);\n searchField = findViewById(R.id.product_info_firebase_search_field);\n modelList = new ArrayList<>();\n adapter = new MyAdapterUpProduct(this, modelList, recyclerView,\n ProductInfoFirebase.this);\n }", "title": "" }, { "docid": "cd1f19f0d332b74b9c9fde70b4b326e5", "score": "0.5782968", "text": "@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for(DataSnapshot ds : dataSnapshot.getChildren()){\n ModelProduct modelProduct=ds.getValue(ModelProduct.class);\n productsList.add(modelProduct);\n }\n adapterProductUser= new AdapterProductUser(ShopDetailsActivity.this,productsList);\n //set adapter\n productsRv.setAdapter(adapterProductUser);\n }", "title": "" }, { "docid": "3d62e8640906ee4a1fdca7861d519b1e", "score": "0.57760334", "text": "@Override\npublic void receiveProduct(Product product) {\n\t\n}", "title": "" }, { "docid": "e362326ed3a71009c50eefe8cc3b30e7", "score": "0.5742034", "text": "public void onAppDetailsRetrieved(AppData data);", "title": "" }, { "docid": "d83838a2def4430e1a179f5ee3a24181", "score": "0.57219553", "text": "private void setUpInitialData() {\n if (!AppProperty.UseMySql.getBoolean()) {\n products.put(\"1\", new AProduct(1, \"id\", \"InMem Doilies\").getJson());\n products.put(\"2\", new AProduct(2, \"ip\", \"InMem Panties\").getJson());\n return;\n }\n MySqlDataSource.getInstance().getConnection(connResult -> {\n if ((connResult == null) || !connResult.succeeded()) { // couldn't get a connection\n return; // init already reported this...\n }\n logger.debug(\"ProductHandler.setUpInitialData...\");\n final SQLConnection conn = connResult.result();\n try {\n conn.query(\"SELECT * FROM product\", event -> {\n try {\n final ResultSet results = event.result();\n final List<JsonObject> rows = results.getRows();\n for (final JsonObject row: rows)\n products.put(row.getInteger(\"id\").toString(), row);\n logger.info(\"Fetched \"+rows.size()+\" (\"+products.size()+\") products from the product table\");\n } catch (final Throwable t) {\n logger.error(\"Exception handling SELECT results\", t);\n conn.close();\n }\n });\n } catch (final Throwable t) {\n logger.error(\"Could not fetch products from the table: Is the table missing?\", t);\n conn.close();\n }\n });\n }", "title": "" }, { "docid": "6fc0778a5f47625c887588d6ff4491c8", "score": "0.5718031", "text": "public void updateTopProducts() {\n ClientConfig clientConfig = new DefaultClientConfig();\n clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);\n\n Client client = Client.create(clientConfig);\n WebResource webResource = client.resource(\"http://localhost:8080/advertising/stand\");\n\n log.info(\"Connection was opened.\");\n\n ClientResponse response = webResource\n .accept(MediaType.APPLICATION_JSON)\n .type(MediaType.APPLICATION_JSON)\n .get(ClientResponse.class);\n\n log.info(\"Stand have got response without any errors.\");\n\n\n List list = response.getEntity(ArrayList.class);\n try {\n tops = parseListOfProducts(list);\n log.info(\"Stand application successfully has parsed list of top products and has set it as current.\");\n } catch (Exception e) {\n log.info(\"During the parsing process some critical situation was occurred.\", e);\n }\n }", "title": "" }, { "docid": "9c951ac64e8ec551cfbc11d44059e173", "score": "0.56933206", "text": "@Override\n public void onReady() {\n }", "title": "" }, { "docid": "8a7cef0b4dacda471c567cb764fd98bd", "score": "0.56671965", "text": "private void sendProductEvent(Product product) {\n }", "title": "" }, { "docid": "c63ce1ec8bd6973ef214244e37043507", "score": "0.5656601", "text": "@Override\n public void onResponse(JSONObject response) {\n final AppSession session = AppSession.getInstance();\n user = UserStore.getData(response);\n if (user == null) return;\n\n UserStore.getAllUserCourses(new ResponseCallback() {\n @Override\n public void onResponse(JSONObject response) {\n ArrayList<Course> courses = CourseStore.getListData(response);\n user.setCourses(courses);\n\n UserStore.getAllUserConexuses(new ResponseCallback() {\n @Override\n public void onResponse(JSONObject response) {\n ArrayList<Conexus> conexuses = ConexusStore.getListData(response);\n user.setConexuses(conexuses);\n\n session.setUser(user);\n session.setUserUpdateNeeded(false);\n session.setCourseUpdateNeeded(false);\n session.setConexusUpdateNeeded(false);\n }\n\n @Override\n public void onError(VolleyError error) {\n session.setConexusUpdateNeeded(true);\n }\n });\n }\n\n @Override\n public void onError(VolleyError error) {\n session.setCourseUpdateNeeded(true);\n }\n });\n }", "title": "" }, { "docid": "fc96fcaf0f1f015a28095dc1ab589325", "score": "0.56435704", "text": "@Override\n public void loadItems(final OnFinishedListener listener) {\n\n UserUtils.getUsersFromDatabase(new TaskFinishedListener<List<User>>() {\n @Override\n public void onSuccess(List<User> usersWithIds) {\n listener.onFinished(usersWithIds);\n }\n\n @Override\n public void onFailure(List<User> emptyOrNullList) {\n storeUsersFromWeb(listener);\n }\n });\n\n }", "title": "" }, { "docid": "aa7ae30ee7a4df150780a6da06bcaddd", "score": "0.56220454", "text": "public interface OnSaleProductListener {\n void onLoadSalesProductSuccess(List<SaleAccountProductBean> productBeanList);\n void onLoadSalesProductFailure(String errorMessage);\n}", "title": "" }, { "docid": "91a32eb66ee503077b9dd9a7b650e02d", "score": "0.56100005", "text": "protected void setUpProductBought(){\n setUpBuy();\n this.subscribe.savePurchase(this.subscribe.getName());\n }", "title": "" }, { "docid": "99add26cf11291f31aec96f2037adc5f", "score": "0.56058156", "text": "public void fetchAndUpdateList(){\n final ProgressDialog loading = ProgressDialog.show(getActivity(),\"Fetching Data\",\"Please wait...\",false,false);\n\n //Creating a rest adapter\n RestAdapter adapter = new RestAdapter.Builder()\n .setEndpoint(ROOT_URL)\n .build();\n\n //Creating an object of our api interface\n EventsAPI api = adapter.create(EventsAPI.class);\n\n //Defining the method\n api.getEvents(new Callback<List<Event>>() {\n @Override\n public void success(List<Event> list, Response response) {\n //Dismissing the loading progressbar\n originalEventList = new ArrayList<Event>(list);\n updateUserSubscriptions();\n updateListView();\n loading.dismiss();\n }\n\n @Override\n public void failure(RetrofitError error) {\n //you can handle the errors here\n Log.e(TAG,error.toString());\n Toast.makeText(getActivity().getApplicationContext(), \"Error!\", Toast.LENGTH_SHORT).show();\n loading.dismiss();\n }\n });\n }", "title": "" }, { "docid": "912a5cda354e3914a6969a2c8aca9957", "score": "0.55965406", "text": "private void initializeHotProducts() {\r\n productsProgress.setVisibility(View.VISIBLE);\r\n noProducts.setVisibility(View.GONE);\r\n productsTryAgain.setVisibility(View.GONE);\r\n mRecyclerView.setVisibility(View.GONE);\r\n productViewAll.setVisibility(View.GONE);\r\n\r\n if (networkConnection.isInternetOn()) {\r\n Ion.with(this)\r\n .load(Utility.HOST_VALUE + Utility.HOT_PRODUCTS_PATH_VALUE)\r\n .asJsonObject()\r\n .setCallback(new FutureCallback<JsonObject>() {\r\n @Override\r\n public void onCompleted(Exception e, JsonObject result) {\r\n productsProgress.setVisibility(View.GONE);\r\n\r\n if (e == null) {\r\n JsonArray resultArray = result.get(\"productlist\").getAsJsonArray();\r\n JsonObject resultObject = resultArray.get(0).getAsJsonObject();\r\n JsonObject result_inner = resultObject.get(\"product_list\").getAsJsonObject();\r\n\r\n int httpCode = result_inner.get(\"httpCode\").getAsInt();\r\n\r\n switch (httpCode) {\r\n case 200:\r\n mRecyclerView.setVisibility(View.VISIBLE);\r\n productViewAll.setVisibility(View.VISIBLE);\r\n\r\n for (int i = 0; i < resultArray.size(); i++) {\r\n resultObject = resultArray.get(i).getAsJsonObject();\r\n result_inner = resultObject.get(\"product_list\").getAsJsonObject();\r\n try {\r\n JSONObject productData = new JSONObject(result_inner.toString());\r\n products.add(new JSONParser(productData));\r\n } catch (JSONException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n break;\r\n case 401:\r\n mRecyclerView.setVisibility(View.GONE);\r\n noProducts.setText(result_inner.get(\"Message\").getAsString());\r\n noProducts.setVisibility(View.VISIBLE);\r\n break;\r\n }\r\n } else {\r\n noProducts.setText(getString(R.string.unable_to_connect));\r\n noProducts.setVisibility(View.VISIBLE);\r\n productsTryAgain.setVisibility(View.VISIBLE);\r\n }\r\n productsAdapter.notifyDataSetChanged();\r\n }\r\n });\r\n } else {\r\n networkConnection.displayAlert();\r\n }\r\n }", "title": "" }, { "docid": "cd52bc1b64bfe5bbb62146cd2b34e3b6", "score": "0.5566965", "text": "public interface UpdateManagerListener\n{\n void onNoUpdateAvailable();\n\n void onUpdateAvailable(Product product);\n}", "title": "" }, { "docid": "549a1548576c7cd7efd244237436db4f", "score": "0.5557299", "text": "protected void update(reactor.bus.Event<?> event) {\n final Product_Datastore data = (Product_Datastore) event.getData();\n if(data.getSelectedProduct().isPresent()){\n \tProduct_ product = data.getSelectedProduct().get();\n\t\t\tsetProduct(product);\n\t\t}\n }", "title": "" }, { "docid": "9a18b947627600904d5c67ab0565cf93", "score": "0.5554563", "text": "@Override\n public void onLoadFinished(@NonNull Loader<Cursor> loader, Cursor data) {\n if (data == null || data.getCount() < 0) {\n Toast.makeText(getActivity(), R.string.toast_error_getting_product_info, Toast.LENGTH_LONG).show();\n Log.e(LOG_TAG, \"Error getting the product info\");\n return;\n }\n // Proceed with moving to the first row of the cursor and reading data from it\n // (This should be the only row in the cursor)\n if (data.moveToFirst()) {\n // Extract out the values from the Cursor for the given column index\n currentProductName = data.getString(data.getColumnIndex(COLUMN_PROD_NAME));\n currentProductPrice = data.getInt(data.getColumnIndex(COLUMN_PROD_PRICE));\n currentProductQuantity = data.getInt(data.getColumnIndex(COLUMN_PROD_QUANTITY));\n currentSupplierName = data.getString(data.getColumnIndex(COLUMN_SUPPLIER_NAME));\n currentSupplierPhone = data.getString(data.getColumnIndex(COLUMN_SUPPLIER_PHONE));\n\n // Update the views on the screen with the values from the database\n productNameView.setText(currentProductName);\n priceView.setText(String.valueOf(currentProductPrice));\n quantityView.setText(String.valueOf(currentProductQuantity));\n supplierNameView.setText(currentSupplierName);\n supplierPhoneView.setText(currentSupplierPhone);\n\n // Set up productHasChanged listeners\n setupOnEditTextChangedListener(textInputLayoutList);\n } else {\n Toast.makeText(getActivity(), R.string.toast_error_no_such_product, Toast.LENGTH_LONG).show();\n Log.e(LOG_TAG, \"No such product in the database\");\n }\n }", "title": "" }, { "docid": "fd55bbcbca73d806a8c2cd101da16b1b", "score": "0.55372226", "text": "public void setUpReserved(){\n setUpProductAdded();\n Store store = data.getRealStore(Data.VALID);\n Product product = data.getRealProduct(Data.VALID);\n this.subscribe.addProductToCart(store,product,product.getAmount());\n }", "title": "" }, { "docid": "92e8e6eb5d5e8399cf07c7afad51a410", "score": "0.55364984", "text": "@EventListener\n public void appReady(ApplicationReadyEvent event) {\n long roleCount = roleRepository.count();\n if (roleCount == 0){\n List<String> listRoles = new ArrayList<>();\n listRoles.add(\"ADMIN\");\n listRoles.add(\"USER\");\n List<String> listRolesDescription = new ArrayList<>();\n listRolesDescription.add(\"Full Access\");\n listRolesDescription.add(\"Limited Access\");\n\n for (int a = 0; a < listRoles.size(); a++) {\n RoleDao role = new RoleDao();\n role.setName(listRoles.get(a));\n role.setDescription(listRolesDescription.get(a));\n roleRepository.save(role);\n }\n }\n\n long statsCount = statusRepository.count();\n if (statsCount == 0){\n List<String> listStatus = new ArrayList<>();\n listStatus.add(\"ACTIVE\");\n listStatus.add(\"NOT_ACTIVE\");\n listStatus.add(\"DELETED\");\n listStatus.add(\"ACTIVE_PRODUCT\");\n listStatus.add(\"ALL_SOLD_OUT\");\n listStatus.add(\"WAITING_ORDER\");\n listStatus.add(\"PACKING_ORDER\");\n listStatus.add(\"DELIVERING_ORDER\");\n listStatus.add(\"DELIVERED_ORDER\");\n listStatus.add(\"CANCELED_ORDER\");\n List<String> listStatusDescription = new ArrayList<>();\n listStatusDescription.add(\"Activated\");\n listStatusDescription.add(\"WithOut Token\");\n listStatusDescription.add(\"Deleted Logically\");\n listStatusDescription.add(\"Product Exist\");\n listStatusDescription.add(\"All Products Were Sold\");\n listStatusDescription.add(\"Waiting For Process\");\n listStatusDescription.add(\"Packing Product\");\n listStatusDescription.add(\"Deliver Product\");\n listStatusDescription.add(\"Delivered Successfully\");\n listStatusDescription.add(\"Order Canceled\");\n\n for (int a = 0; a < listStatus.size(); a++) {\n StatusDao statusDao = new StatusDao();\n statusDao.setDescription(listStatusDescription.get(a));\n statusDao.setName(listStatus.get(a));\n statusRepository.save(statusDao);\n }\n }\n\n long userCount = userRepository.count();\n if (userCount == 0){\n RoleDao roleDao = roleRepository.findByName(\"ADMIN\");\n StatusDao statusDao = statusRepository.findByName(\"NOT_ACTIVE\");\n UserDao addAdmin = new UserDao();\n addAdmin.setUsername(\"Admin\");\n addAdmin.setPassword(bcryptEncoder.encode(\"1234\"));\n addAdmin.setRoleDao(roleDao);\n addAdmin.setStatusDao(statusDao);\n userRepository.save(addAdmin);\n }\n\n long tagCount = tagRepository.count();\n if (tagCount == 0){\n List<String> listTags = new ArrayList<>();\n listTags.add(\"CLOTHS\");\n listTags.add(\"DIGITAL\");\n List<String> listTagsDescription = new ArrayList<>();\n listTagsDescription.add(\"Pooshak\");\n listTagsDescription.add(\"Lavazem Digital\");\n\n for (int a = 0; a < listTags.size(); a++) {\n TagDao tagDao = new TagDao();\n tagDao.setName(listTags.get(a));\n tagDao.setDescription(listTagsDescription.get(a));\n tagRepository.save(tagDao);\n }\n }\n\n }", "title": "" }, { "docid": "8b5429031f31ed955abb70c8ea7bc3d6", "score": "0.5536466", "text": "@Override\n public void fetchProductListData() {\n CategoryItem item = router.getDataFromCategoryListScreen();\n\n if (item != null) {\n viewModel.category = item;\n }\n\n // call the model\n model.fetchProductListData(viewModel.category,\n new RepositoryContract.GetProductListCallback() {\n\n @Override\n public void setProductList(List<ProductItem> products) {\n viewModel.products = products;\n\n view.get().displayProductListData(viewModel);\n }\n });\n\n }", "title": "" }, { "docid": "831da68d3ab4e302f98ba949a4fbe175", "score": "0.5525547", "text": "public interface ProductsCallback {\n void onProductsFetched(List<Product> products);\n void onError(Exception e);\n}", "title": "" }, { "docid": "72e3f6c7adeb75806ce1ead5b6349a71", "score": "0.55158323", "text": "public ResponseData updateProductData(Product product);", "title": "" }, { "docid": "2b13d9a168a3bad5ec320efc11184abd", "score": "0.5515589", "text": "public interface OrdersReadyListener{\n void onReady(List<OrderItem> data);\n }", "title": "" }, { "docid": "5e3e2c5021bc8334e9fd0b0181c19b90", "score": "0.55116844", "text": "void fetchProducts() {\n\n mList=new ArrayList<>();\n Cursor cursor = mDBHandler.getControlData();\n\n if (cursor != null) {\n\n if (cursor.moveToFirst()) {\n do {\n\n Product item=new Product();\n item.setId(cursor.getString(0));\n item.setName(cursor.getString(1));\n item.setUom(cursor.getString(2));\n item.setPrice(cursor.getString(3));\n mList.add(item);\n\n } while (cursor.moveToNext());\n }\n\n }\n\n if(mList.size()>0) {\n\n if (mProductAdapter == null) {\n\n mProductAdapter = new ProductAdapter(this, mList);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false);\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.setItemAnimator(new DefaultItemAnimator());\n mRecyclerView.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL));\n mRecyclerView.setAdapter(mProductAdapter);\n mProductAdapter.notifyDataSetChanged();\n\n mProductAdapter.setOnClickListener(new ProductAdapter.OnClickListener() {\n @Override\n public void onLayoutClick(int position) {\n\n }\n });\n } else {\n mProductAdapter.setProductList(mList);\n mProductAdapter.notifyDataSetChanged();\n }\n }\n\n }", "title": "" }, { "docid": "69b350bd50a5c85e948f8d140309981c", "score": "0.5504385", "text": "public ObservableList<Product> getProductData() {\n return productData;\n }", "title": "" }, { "docid": "b57e6accff7f5e2eca1fce04560e8e7a", "score": "0.54979783", "text": "@PostConstruct\n public void init() {\n updateTopProducts();\n log.info(\"Application was successfully started and has got current top products list.\");\n }", "title": "" }, { "docid": "8beb8edf0be57b2af5d594510bf0d1c6", "score": "0.5475371", "text": "public void pushData() {\r\n\r\n }", "title": "" }, { "docid": "3bac7902ecbd5fadf3063973b9b0e485", "score": "0.5474128", "text": "void refreshItems() {\n onItemsLoadComplete();\n }", "title": "" }, { "docid": "3abe8a2459367e3a553e9052c74ddf17", "score": "0.54582256", "text": "public void loadUserData() {\n listTitleName = computerComponentData.getComputerList().get(\"title\");\n Log.d(TAG, \"loadData: \" + computerComponentData.getComputerList().get(\"title\"));\n listDescriptionString = computerComponentData.getComputerList().get(\"description\");\n Log.d(TAG, \"saveData: \" + computerComponentData.getComputerList().get(\"description\"));\n estimatedPriceString = computerComponentData.getComputerList().get(\"LIST COSTS\");\n estimatedWattageString = computerComponentData.getComputerList().get(\"ESTIMATED WATTAGE\");\n\n }", "title": "" }, { "docid": "1d8b9c85c1043c74cd1228159298d953", "score": "0.5457297", "text": "@Override\r\n public void initData() {\n if (QXCallApplication.login) {//登录状态下\r\n if (firstRefresh) {\r\n EventBus.getDefault().post(new NotifyListenDataRefresh());\r\n firstRefresh = false;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "353bdd43059ffede93fbec98e2966122", "score": "0.54521096", "text": "@Override\n public void onMockUserReady(MockUser user) {\n }", "title": "" }, { "docid": "42845d8c422891e8f14be75fbc6d4be9", "score": "0.54386055", "text": "private synchronized void populateProducts(List<Product> incomingProductList) {\n if (incomingProductList != null) {\n productList = incomingProductList;\n isProductListDelivered = true;\n checkMode();\n setProductPanelSubheading();\n if (productListView != null && currentProduct != null && productListView.getSelectedItemId() != currentProduct.getId() && productListView.getSelectedId() > -1) {\n log.debug(\"Changing selection id. old: {} new: {}\", productListView.getSelectedItemId(), currentProduct.getId());\n currentProduct = productList.get((int) productListView.getSelectedId());\n }\n if (productAdapter == null) {\n productAdapter = new ProductAdapter(getActivity().getApplicationContext(), incomingProductList, (TabActivity) getActivity(), vipService,pvipService,\n this, productUnitsList, currentImplement, measurementSystemCache);\n productSearch.setFilterable(productAdapter);\n if (productComparator != null) {\n productAdapter.sort(productComparator, productSortAscending);\n }\n }\n else {\n productSearch.setFilterable(productAdapter);\n productAdapter.setItems(productList);\n }\n // Because android creates new views during onCreateView which is also called when the user switches the tab and\n // returns to this tab/fragment. The next lines have to be executed whether we create a new adapter or not.\n if (productListView != null) {\n productListView.setAdapter(productAdapter);\n }\n productSearch.addTextChangedListener(new SearchInputTextWatcher(productSearch));\n if (currentProduct == null && productList.size() > 0) {\n currentProduct = productList.get(0);\n }\n }\n }", "title": "" }, { "docid": "4ca372a86c8ae326071c8597016391c8", "score": "0.543706", "text": "@Override\n public void onDataStoreUpdate() {\n }", "title": "" }, { "docid": "3a33b0bef25198ea532c1833d3a6524e", "score": "0.54041284", "text": "@Override\n\t\t\tpublic void onSuccess(JSONObject userinfo) {\n\t\t\t\tLog.d(Tags.debugTag,\"json response is :\\n\"+userinfo+\"\\n\");\n\t\t\t\tJSONObject user;\n\t\t\t\ttry {\n\t\t\t\t\tuser = (JSONObject) userinfo;\n\t\t\t\t\tString fbid = user.getString(Tags.fbid);\n\t\t\t\t\tString name_first = user.getString(Tags.first_name);\n\t\t\t\t\tString name_last = user.getString(Tags.last_name);\n\t\t\t\t\tint user_id = user.getInt(Tags.user_id);\n\t\t\t\t\tint entity = user.getInt(Tags.entity);\n\t\t\t\t\tint total_score = user.getInt(Tags.total_score);\n\t\t\t\t\tint total_duration = user.getInt(Tags.total_duration);\n\t\t\t\t\tint num_achievments = user.getInt(Tags.num_achievments);\n\n\t\t\t\t\t//Log.d(Tags.debugTag,\"user id is :\"+user_id +\" user entity is \"+entity);\n\n\t\t\t\t\tTags.setUser(fbid, name_first, name_last, user_id, \n\t\t\t\t\t\t\ttotal_score, total_duration, num_achievments, entity);\n\t\t\t\t\tif(feedsTab != null){\n\t\t\t\t\t\tfeedsTab.fetchData();\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}", "title": "" }, { "docid": "30a6426d0b4c8d4cc9a4c45f8d53d744", "score": "0.5384512", "text": "@Override\n public void onFetchComplete(JSONObject data) {\n RequestQueueService.cancelProgressDialog();\n try {\n //Now check result sent by our GETAPIRequest class\n if (data != null) {\n if (data.has(\"success\")) {\n int success = data.getInt(\"success\");\n if(success==1){\n JSONObject response=data.getJSONObject(\"response\");\n if(response!=null) {\n //Display the result\n //Or, You can do whatever you need to\n //do with the JSONObject\n //resultTextView.setText(response.toString(4));\n userList=new ArrayList<>();\n userAdapter=new UserAdapter(MainActivity.this);;\n recyclerView.setAdapter(userAdapter);\n for (int i=0;i<5;i++) {\n User user = new User();\n user.setFirstName(response.getString(\"firstName\"));\n user.setLastName(response.getString(\"lastName\"));\n user.setAge(response.getInt(\"age\"));\n userList.add(user);\n }\n //set items to adapter\n userAdapter.setUserList(userList);\n userAdapter.notifyDataSetChanged();\n\n }\n }else{\n RequestQueueService.showAlert(\"Error! No data fetched\", MainActivity.this);\n }\n }\n } else {\n RequestQueueService.showAlert(\"Error! No data fetched\", MainActivity.this);\n }\n }catch (Exception e){\n RequestQueueService.showAlert(\"Something went wrong\", MainActivity.this);\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "850e36880800258c04e62d6623838fd2", "score": "0.5383617", "text": "void onNewData(T data);", "title": "" }, { "docid": "ca5f16e1c65b30f28e1d681ea029eda0", "score": "0.5379647", "text": "@Override\n\tprotected void onLoad() {\n\t\tgetData();\n\t}", "title": "" }, { "docid": "6956336e995a3d15dd05c42f9ebb920b", "score": "0.5375772", "text": "@Override\n public void onResponse(JSONObject response) {\n\n\n Log.d(\"TAGW\", \"Server Response:\" + response);\n\n CommonFuns.stopProgressDialog(MainActivity.this);\n\n try {\n\n response=new JSONObject(Constants.SampleJSON);\n\n if(response.has(\"items\"))\n {\n JSONArray itemArray=response.getJSONArray(\"items\");\n\n for(int i=0;i<itemArray.length();i++) {\n JSONObject jObj=itemArray.getJSONObject(i);\n mDBHandler.addProductJsonData(jObj.getString(\"id\"),jObj.getString(\"name\"),jObj.getString(\"price\"),jObj.getString(\"uom\"));\n }\n Toast.makeText(MainActivity.this, \"Stored in Local Database\", Toast.LENGTH_SHORT).show();\n\n fetchProducts();\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "7010af0c2626efb7eba3eec28bf962b7", "score": "0.5370692", "text": "public User(){\n this.downloadUpdates = true;\n }", "title": "" }, { "docid": "1ae3f1fc11093d871866df47fa163b07", "score": "0.53693956", "text": "@Override\n public void onNewItems(List<Subscription> items) {\n }", "title": "" }, { "docid": "9a455ef7ad60af3769627eda098e666d", "score": "0.5358919", "text": "public void refreshLevel2Availability() {\n boolean level2Purchased = false;\n if (userIapData != null) {\n final EntitlementRecord entitlementRecord = dataSource.getLatestEntitlementRecordBySku(userIapData\n .getAmazonUserId(), MySku.LEVEL2.getSku());\n // Make sure the entitlement purchase record is not expired or\n // canceled\n level2Purchased = (EntitlementRecord.DATE_NOT_SET == entitlementRecord.cancelDate);\n // mainActivity.sendInternalBroadcast();\n\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mainActivity);\n prefs.edit().putBoolean(\"pro\", true).apply();\n Intent intent = new Intent();\n String packageName = mainActivity.getPackageName().toString();\n intent.setAction(packageName+\".simplebroadcastreceiver.setup\");\n intent.putExtra(\"Activity\", \"sendInternalBroadcast\");\n mainActivity.sendBroadcast(intent);\n\n // Toast.makeText(mainActivity, \"Yes purchaesd\", Toast.LENGTH_SHORT).show();\n }\n\n // mainActivity.setLevel2Availbility(level2ProductAvailable, level2Purchased);\n }", "title": "" }, { "docid": "a572447b6515d4e5a99866ee2bb92ffd", "score": "0.5354375", "text": "@Override\n public void onResponse(JSONObject response) {\n\n try {\n\n\n setJsonArray(response.getJSONArray(TAG_USER));\n\n } catch (JSONException e) {\n\n e.printStackTrace();\n }\n\n\n\n }", "title": "" }, { "docid": "5b49c8359aac9278d15f78a2d138a014", "score": "0.53509283", "text": "@Override\n public void onResponse(JSONObject response) {\n Log.e(TAG, \"Update Response : \" + response.toString());\n\n //Getting User Profile Data\n getUserProfileDataAndStoreIntoSQLiteDB();\n }", "title": "" }, { "docid": "ffc8995337867a67dcf8c0372d50ba61", "score": "0.53453195", "text": "private void setData()\r\n {\n final UserListViewModel viewModel = ViewModelProviders.of(this).get(UserListViewModel.class);\r\n viewModel.getUserListObservable().observe(this, new Observer<UserResponseJson>() {\r\n @Override\r\n public void onChanged(@Nullable UserResponseJson userResponseJson) {\r\n if(userResponseJson.results!=null) {\r\n progressBar.setVisibility(View.GONE);\r\n userListAdapter.updateData(userResponseJson.results);\r\n }\r\n }\r\n });\r\n }", "title": "" }, { "docid": "cd11ce7a663b2c013e4eea0cfab213dd", "score": "0.5345024", "text": "@Override\r\n\tpublic void selectedProductChanged() {\r\n\t\tloadValues();\r\n\t}", "title": "" }, { "docid": "77885c5b65f25eaac480a3dccd5e3a01", "score": "0.53435993", "text": "void initNewUserInfo() {\n User newUser = new User();\n newUser.email = users.getEmail();\n newUser.name = users.getEmail().substring(0, users.getEmail().indexOf(\"@\"));\n newUser.avata = StaticConfig.STR_DEFAULT_BASE64;\n newUser.token = (String) FirebaseInstanceId.getInstance().getToken();\n newUser.status.isOnline=true;\n FirebaseDatabase.getInstance().getReference().child(\"user/\" + users.getUid()).setValue(newUser);\n }", "title": "" }, { "docid": "54cd598533345f29690876cf783f01ae", "score": "0.534234", "text": "private void initProductData(String catID){\n new getProductData().execute(catID);\n }", "title": "" }, { "docid": "ce1169a394751131b3365280d31ac1ab", "score": "0.5337738", "text": "@Override\n public void onCompleted() {\n }", "title": "" }, { "docid": "d046fd95e764058badbe13325c8e9be9", "score": "0.5324588", "text": "public Product[] getProduct(){\n return localProduct;\n }", "title": "" }, { "docid": "10ae67defa9e123b108ded7b6e098572", "score": "0.5323856", "text": "public void retrieveData() {\n\t\tfinal String param = \"vo=\" + this.voId;\n\t\tJsonClient js = new JsonClient();\n\t\tjs.retrieveData(JSON_URL, param, this);\n\t}", "title": "" }, { "docid": "19ee89f1499962faf9895bb6d3ff6aa8", "score": "0.53179663", "text": "@Override\r\n\tpublic void update(Observable o, Object product) {\n\t\tString newProduct = (String) product;\r\n\t\tSystem.out.println(\"taobao receive new product \" + newProduct);\r\n\t}", "title": "" }, { "docid": "ea8ae1605791b73acba35c605fdaa2b7", "score": "0.53086495", "text": "public PostTaskListener<ArrayList<Product>> init (Activity activity){\n PostTaskListener<ArrayList<Product>> postTaskListener = ((ListenerTask) activity.getApplication\n ()).getPostTaskListener();\n\n return postTaskListener;\n }", "title": "" }, { "docid": "de0cd0f2a435ecceca597c1c7b96b6a6", "score": "0.53006405", "text": "@Override\n\t\t\tpublic void onLoad() {\n\t\t\t\tnew GetMoreData().execute(topic);\n\t\t\t}", "title": "" }, { "docid": "7dce8f8d82316b0d722fdad2d55361ab", "score": "0.5294846", "text": "UpdateData() {}", "title": "" }, { "docid": "66d4d1eee09bf27ba13b2f6b016eedaf", "score": "0.52885157", "text": "private void loadData() {\n RetrofitHelper.getInstance().getItemList(new Observer<MainItemListBean>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(MainItemListBean mainItemListBean) {\n if (refreshLayout.getState() == RefreshState.Refreshing) {\n /* Refreshing, clear the data list */\n dataBeans.clear();\n /* Save cache */\n SPUtils.getInstance().put(\"home_page_cache\", new Gson().toJson(mainItemListBean.getData()));\n }\n /* Add data */\n dataBeans.addAll(mainItemListBean.getData());\n adapter.setData(dataBeans);\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n endLoading();\n }\n\n @Override\n public void onComplete() {\n endLoading();\n }\n }, String.valueOf(page));\n }", "title": "" }, { "docid": "2c196d3648f6e17d6cdd2c8101a1e571", "score": "0.5285432", "text": "public int getCountProductAuctionObserver(Product product);", "title": "" }, { "docid": "7bd80a46f1143c565914bb631b49dd5d", "score": "0.5283632", "text": "@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\tnew LoadData().execute(topic);\n\t\t\t}", "title": "" }, { "docid": "bbec532ea664193fc9da59bbf8f23e3f", "score": "0.52821016", "text": "@Override\n public void onCompleted() {\n\n }", "title": "" }, { "docid": "721b5e39496521378b33d2c7c76bf2a1", "score": "0.5278688", "text": "@Override\n public void start() {\n mUser = PrefWrapper.getUser(getViewContext());\n mPosts = new ArrayList<>();\n getData();\n }", "title": "" }, { "docid": "1e7306d7c058a78c756092e34b0fe505", "score": "0.52783245", "text": "public interface Observer {\n // get data through pull, not push\n void update();\n}", "title": "" }, { "docid": "37af7de47cb90de7475c4fcfa208df53", "score": "0.52771014", "text": "public interface GetCartModuleListener {\n void getData(OnFinishListener listener,String uid,String token);\n}", "title": "" }, { "docid": "e64eeba82ca7c45328596152a3fd87a5", "score": "0.52769476", "text": "Products() {\n this.dbWorker = new DBWorker();\n this.productList = new ArrayList<>();\n createProductFromDB();\n }", "title": "" }, { "docid": "1fd2afa5bffa9ed1d1c7913ab20fab0e", "score": "0.5275741", "text": "@Override\n public void setUser(User user) {\n\n }", "title": "" }, { "docid": "b5f4ab66ebb301c05bd1287b2beed497", "score": "0.52748173", "text": "public ResponseData addProductData(Product productData);", "title": "" }, { "docid": "1ca56f6876b2e2006d2255b722778e9b", "score": "0.5259244", "text": "@Override\n protected void onDataChanged() {\n if (getItemCount() == 0) {\n noProductFound(true);\n\n\n } else {\n noProductFound(false);\n }\n\n }", "title": "" }, { "docid": "f8d35743d99bb184657b08461fa03eef", "score": "0.52580065", "text": "@Override\n public void onDataSuccess(final CeShiUser data) {\n\n if (data.getResult().size()>0){\n CeShiAdapter mApapter = new CeShiAdapter(getApplicationContext(), R.layout.layout);\n linearLayoutManager = new LinearLayoutManager(getApplicationContext());\n recycle.setLayoutManager(linearLayoutManager);\n\n recycle.setAdapter(mApapter);\n mApapter.setList(data.getResult());\n\n mApapter.setmItemClick(new BaseRecyclerViewAdapter.ItemClick() {\n @Override\n public void setOnItemClick(View view, int position) {\n Toast.makeText(CeShiActivity.this, data.getResult().get(position).getName(), Toast.LENGTH_SHORT).show();\n }\n });\n }\n //Toast.makeText(CeShiActivity.this, data.getTimestamp() + \"\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "84874b0a42d48f2755b2c38254f88fce", "score": "0.525565", "text": "@Override\n public void onCompleted() {\n }", "title": "" }, { "docid": "ff6d746d8cada9ed57824532dd7138b9", "score": "0.52527165", "text": "public void fireArmylistDataChange(){\n this.core.refreshArmylistData();\n }", "title": "" }, { "docid": "b8aa07601b0796136a7bc1f485eeb339", "score": "0.52513623", "text": "@Override\n public void onsucess() {\n\n }", "title": "" }, { "docid": "f787482295a09e8ddd7e95fd1d39cd0f", "score": "0.524914", "text": "public ProductList()\r\n {\r\n listOfProducts = new Product[5];\r\n }", "title": "" }, { "docid": "543a29dd66084dacaceaf5b042cb74a0", "score": "0.5248657", "text": "@Override\n\tprotected void onConnected() {\n\t\tRadioRuntService.DISCONNECT_FROM_RALLEE = false;\n\t\tsettings.setExitCode(false);\n\n\t\t// ///////// write my username to users table on db\n\t\t// ///////// at mw\n\t\tmMwCommLogic.registerSetInsertUserServiceReceiver();\n\t\tif (RalleeApp.getInstance().getRalleeUID().equals(\"ralleeUID\")) {\n\t\t\treturn;\n\t\t}\n\t\tString jsonString = \"\";\n\t\ttry {\n\t\t\tJSONObject json = new JSONObject();\n\t\t\tjson.put(\"user_id\", RalleeApp.getInstance().getRalleeUID());\n\t\t\tjson.put(\"name\", RalleeApp.getInstance().getFullName());\n\t\t\tjson.put(\"flag\", Utility.networkPrefix);\n\t\t\tjson.put(\"first_release\", RalleeApp.getInstance()\n\t\t\t\t\t.getRalleeRelease());\n\t\t\tjson.put(\"old_release\", RalleeApp.getInstance().getRalleeRelease());\n\t\t\tjson.put(\"new_release\", RalleeApp.getInstance().getRalleeRelease());\n\n\t\t\tjson.put(\"picture_url\", RalleeApp.getInstance().getPicUrl());\n\n\t\t\t// JSONArray jsonA = new JSONArray();\n\t\t\t// jsonA.put(json);\n\t\t\tjsonString = json.toString();\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tRRServerProxyHelper.startSetInsertUserService(this, jsonString);\n\n\t\tSettings settings = new Settings(getApplicationContext());\n\n\t\tString over18 = settings.getOver18();\n\t\tif (over18.equals(Settings.RANDOM_PREF_DEFAULT)) {\n\t\t\ttry {\n\t\t\t\tJSONObject json = new JSONObject();\n\t\t\t\tjson.put(\"user_id\", RalleeApp.getInstance().getRalleeUID());\n\t\t\t\t// JSONArray jsonA = new JSONArray();\n\t\t\t\t// jsonA.put(json);\n\t\t\t\tjsonString = json.toString();\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tmMwCommLogic.registerGetOver18ServiceReceiver();\n\t\t\tRRServerProxyHelper.startGetOver18Service(this, jsonString);\n\n\t\t\tmMwCommLogic.registerGetRandomServiceReceiver();\n\t\t\tRRServerProxyHelper.startGetRandomService(this, jsonString);\n\n\t\t} else if (over18.equals(Settings.RANDOM_PREF_YES)) {\n\t\t\tString gorandom = settings.getGoRandom();\n\t\t\tif (gorandom.equals(Settings.RANDOM_PREF_DEFAULT)) {\n\t\t\t\tmMwCommLogic.registerGetRandomServiceReceiver();\n\t\t\t\tRRServerProxyHelper.startGetRandomService(this, jsonString);\n\t\t\t}\n\t\t}\n\n\t\t// ///////////////////////////////////////////////////////\n\n\t\tfinal Intent i = new Intent(this, HomeActivity.class);\n\t\ti.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t// if(!Utility.channelName.equals(\"\")){\n\t\t// i.putExtra(HomeActivity.HAS_CALL, true);\n\t\t// }\n\t\tstartActivity(i);\n\t\tGlobals.logDebug(this, \"LoginAC onConnected\");\n\t\tdismissDialog();\n\t\tfinish();\n\t}", "title": "" }, { "docid": "5e0a0c3fc644e0643d0431db1d182ce5", "score": "0.524457", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (hasMoreData) {\n\t\t\t\t\tList<Item> listItem = null;\n\t\t\t\t\tSearchObj obj = prepareSearchObject();\n\t\t\t\t\tProductModelManager.searchItem(self, obj, isProgress,\n\t\t\t\t\t\t\tnew ModelManagerListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onSuccess(String json) {\n\n\t\t\t\t\t\t\t\t\tLog.e(\"aaaaaaaaa\", \"aaaaaaaaaa :\" + json);\n\t\t\t\t\t\t\t\t\tList<Item> listItem = ParserUtility\n\t\t\t\t\t\t\t\t\t\t\t.parseListItem(json);\n\n\t\t\t\t\t\t\t\t\tif (listItem.size() > 0) {\n\n\t\t\t\t\t\t\t\t\t\tarrItem.addAll(listItem);\n\t\t\t\t\t\t\t\t\t\tif (action\n\t\t\t\t\t\t\t\t\t\t\t\t.equals(GlobalValue.KEY_ACTION_SHOW_PUBLISHED_LISTING)) {\n\t\t\t\t\t\t\t\t\t\t\tLog.i(\"PUBLISHED_ITEM\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tGlobalValue.publishedItem\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getId());\n\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < arrItem.size(); i++) {\n\t\t\t\t\t\t\t\t\t\t\t\tif (arrItem\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getId()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGlobalValue.publishedItem\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getId())) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tarrItem.remove(i);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (backUpPublishItem != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tarrItem.add(i,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackUpPublishItem);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\tGlobalValue.publishedItem\n\t\t\t\t\t\t\t\t\t\t\t\t\t.setMyPublishedListing(1);\n\n\t\t\t\t\t\t\t\t\t\t\tif (arrItem.size() <= listItem\n\t\t\t\t\t\t\t\t\t\t\t\t\t.size()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tif (arrItem.size() % 3 == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tbackUpPublishItem = arrItem\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(arrItem.size() - 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\tarrItem.remove(arrItem.size() - 1);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tarrItem.add(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGlobalValue.publishedItem);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tllShareOptions\n\t\t\t\t\t\t\t\t\t\t\t\t\t.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\taction = GlobalValue.KEY_ACION_DISPLAY;\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\thasMoreData = false;\n\t\t\t\t\t\t\t\t\t\t// DialogUtility.showShortToast(\n\t\t\t\t\t\t\t\t\t\t// self,\n\t\t\t\t\t\t\t\t\t\t// self.getString(R.string.no_more_data_to_show));\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (arrItem.size() == 0) {\n\t\t\t\t\t\t\t\t\t\tif (action\n\t\t\t\t\t\t\t\t\t\t\t\t.equals(GlobalValue.KEY_ACTION_SEARCH)\n\t\t\t\t\t\t\t\t\t\t\t\t&& searchType\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.equals(SEARCH_TYPE_KEYWORD)) {\n\t\t\t\t\t\t\t\t\t\t\ttvCategoryName\n\t\t\t\t\t\t\t\t\t\t\t\t\t.setText(\"No results for \\\"\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ keyword + \"\\\".\");\n\t\t\t\t\t\t\t\t\t\t\trlEditSearch\n\t\t\t\t\t\t\t\t\t\t\t\t\t.setVisibility(View.VISIBLE);\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\tmPullRefreshGridView.onRefreshComplete();\n\t\t\t\t\t\t\t\t\tif (hasMoreData\n\t\t\t\t\t\t\t\t\t\t\t&& listItem.size() < arrItem.size()) {\n\t\t\t\t\t\t\t\t\t\tmPullRefreshGridView\n\t\t\t\t\t\t\t\t\t\t\t\t.getRefreshableView()\n\t\t\t\t\t\t\t\t\t\t\t\t.smoothScrollToPosition(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tarrItem.size()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t- listItem\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ 1);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (listItem.size() < GlobalValue.GALLERY_PAGE_SIZE) {\n\t\t\t\t\t\t\t\t\t\thasMoreData = false;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// if (action\n\t\t\t\t\t\t\t\t\t// .equalsIgnoreCase(GlobalValue.KEY_ACTION_SHOW_PUBLISHED_LISTING))\n\t\t\t\t\t\t\t\t\t// {\n\t\t\t\t\t\t\t\t\t// action = GlobalValue.KEY_ACION_DISPLAY;\n\t\t\t\t\t\t\t\t\t// }\n\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 onError() {\n\t\t\t\t\t\t\t\t\tmPullRefreshGridView.onRefreshComplete();\n\t\t\t\t\t\t\t\t\tDialogUtility.showShortToast(\n\t\t\t\t\t\t\t\t\t\t\tself,\n\t\t\t\t\t\t\t\t\t\t\tself.getString(R.string.message_server_error));\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 onError(int statusCode, String json) {\n\t\t\t\t\t\t\t\t\tmPullRefreshGridView.onRefreshComplete();\n\t\t\t\t\t\t\t\t\tDialogUtility.showShortToast(\n\t\t\t\t\t\t\t\t\t\t\tself,\n\t\t\t\t\t\t\t\t\t\t\tself.getString(R.string.message_server_error));\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\t// DialogUtility.showShortToast(self,\n\t\t\t\t\t// self.getString(R.string.no_more_data_to_show));\n\t\t\t\t\tmPullRefreshGridView.onRefreshComplete();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "ec7afbec5d5eef69b48af934adc74e82", "score": "0.5242286", "text": "@Override\n protected void onResume() {\n super.onResume();\n SetItems();\n }", "title": "" }, { "docid": "8d6bc0660039afeefaceda2b7112ad4e", "score": "0.5238644", "text": "private void getDataForThisUser() {\n\n Thread userDataGettingThread = new Thread(new Runnable() {\n @Override\n public void run() {\n Query query = FirebaseDatabase.getInstance().getReference(FirebaseCustomReferences.GENERAL_USER_ACCOUNT_REFERENCE)\n .orderByChild(\"mUid\")\n .equalTo(VisitingUserID);\n\n\n query.addValueEventListener(new UserCompleteInfoValueEventListener());\n\n Log.d(TAG, \"Listener attached\");\n\n }\n });\n\n userDataGettingThread.start();\n }", "title": "" }, { "docid": "1d0bf278b840f271be75c5d2a59bd820", "score": "0.5236071", "text": "public void updateDevices() {\n // populate the users from the storage\n try {\n accessLocalStorage();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "1df537a7905920278b0cb84b97bb12d5", "score": "0.52338177", "text": "private void refreshUserInfoData() {\r\n\r\n\t\tif (!NetworkUtils.isNetworkAvailable(this)) {\r\n\t\t\tshowMessageBox(getString(R.string.no_internet));\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tposition_business = ((User) getApplication()).loadbusinessPositonFromPreferences();\r\n\t\t\t\tfinal String fname = ((User) getApplication()).loaduserIdFromPreferences() + Integer.toString(position_business);\r\n\t\t\t\tSellerInfoViewUtils.deleteInternalStoragePrivate(this, Globals.LOGIN_CACHE);\r\n\t\t\t\tSellerInfoViewUtils.deleteInternalStoragePrivate(this, fname);\r\n\r\n\t\t\t} catch (Exception e) {\r\n\r\n\t\t\t}\r\n\t\t\t// Get New User Data\r\n\t\t\tgetSellerInfo();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "faba76db64b248371dfa878e3f703fbf", "score": "0.5232835", "text": "@Override\n\t\t\tpublic void onDataArrived(DataArrivedEvent event) {\n\t\t\t}", "title": "" }, { "docid": "6c57aa2b8df67e58400e155aa25a00f0", "score": "0.52256477", "text": "public void onResume() {\n super.onResume();\n MainTask.GetInstance().SetUserCallBack(this);\n ResetData(false);\n QueryData();\n }", "title": "" }, { "docid": "c17d79d06546438eb18ba76ee89fddb0", "score": "0.5225604", "text": "public ServiceNow_sys_userCallbackHandler(){\n this.clientData = null;\n }", "title": "" }, { "docid": "8e62d23d0c5f8763c5c31a2488d5efaf", "score": "0.52223945", "text": "void updateProduct(Product product);", "title": "" }, { "docid": "f61ca47e98418520282d0dc8ac173731", "score": "0.52212137", "text": "@Override\r\n public void onLoading(long count, long current) {\n\r\n }", "title": "" }, { "docid": "d48dcfaf3aea01679ea2b99e96e3a4d6", "score": "0.52192247", "text": "@Override\r\n public void onLoading(long count, long current) {\n\r\n\r\n }", "title": "" }, { "docid": "5954a0663bdb20816fccf07afcc224e9", "score": "0.52158386", "text": "@Override\n public void onStart()\n {\n super.onStart();\n userbookadapter.startListening();\n }", "title": "" }, { "docid": "b089171e2443cdbffe868fe135f0b2b3", "score": "0.5212549", "text": "public void fetchInitData() {\n mRestApi.listItems().enqueue(new Callback<ApiResponse>() {\n @Override\n public void onResponse(Call<ApiResponse> call, Response<ApiResponse> response) {\n if (response.isSuccessful()) {\n mAllCountryLivaData.setValue(response.body().getApiResponse());\n }\n }\n\n @Override\n public void onFailure(Call<ApiResponse> call, Throwable t) {\n\n }\n });\n\n }", "title": "" }, { "docid": "0bdc852fa2e3ac0a77533a870456c8ea", "score": "0.5212321", "text": "public void registerAuctionObserver(Customer customer,Product product);", "title": "" }, { "docid": "381a3a2d9fc51e74162ba71f50bd462b", "score": "0.52085584", "text": "@Override\n public void onSuccess(Uri uri) {\n newProduct = new Product();\n newProduct.setDescription(editDescription.getText().toString());\n newProduct.setDiscount(editDiscount.getText().toString());\n newProduct.setImage(uri.toString());\n newProduct.setMenuid(categoryId);\n newProduct.setName(edtName.getText().toString());\n newProduct.setPrice(editPrice.getText().toString());\n\n\n }", "title": "" }, { "docid": "8b427c9d1e23590784c90594bb860872", "score": "0.5207588", "text": "void selectedProductChanged();", "title": "" }, { "docid": "ab069b911b7a00cd8b519de80ccf280c", "score": "0.5205067", "text": "private void getSubscriptionData() {\n mFirestore.collection(SUBSCRIPTION_COLLECTION).whereEqualTo(\"user_id\", FirebaseAuth.getInstance().getCurrentUser().getUid()).get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot documentSnapshots) {\n if (documentSnapshots.isEmpty()) {\n Log.d(TAG, \"onSuccess: LIST EMPTY\");\n\n } else {\n List<SubscriptionObject> acObjs = documentSnapshots.toObjects(SubscriptionObject.class);\n for (SubscriptionObject ob : acObjs) {\n for (HolidayObject hob : mArrayList) {\n if (hob.getId().equals(ob.getHoliday_id())) {\n hob.setSubscriptionObject(ob);\n }\n }\n }\n }\n LoadSubscriptionCounts();\n return;\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(), \"Error getting data!!!\", Toast.LENGTH_LONG).show();\n }\n });\n }", "title": "" }, { "docid": "6d76e14bbffea982575640fca9663591", "score": "0.5202155", "text": "@Test\n public void testLoadCreatesUser(){\n userManager.load();\n EventDispatch.registerListener(new ProductiveListener() {\n @ProductiveEventHandler\n public void handleEvent(UserLoadedEvent e){\n assertEquals(\"UserManager failed to create a new user on load with a blank db!\",userManager.getCurrentUser().getId(), 1);\n }\n });\n\n }", "title": "" } ]
38ac88283d615d62fe298abcf0b6f260
Clear the specified position on the board
[ { "docid": "e900f0d3ee9475fa6bdce9447b5fa01e", "score": "0.7018741", "text": "public void ClearPosition(Coordinates coords)\n {\n buttonArray[coords.getRow()][coords.getCol()].setText(\"\");\n }", "title": "" } ]
[ { "docid": "b0f9bb0d7471725522424c8ed78a2f1d", "score": "0.78958744", "text": "public void clearBoard();", "title": "" }, { "docid": "5a1ec2dbf4f46336a4d025a16a3a93d9", "score": "0.76111364", "text": "public abstract void clearBoard();", "title": "" }, { "docid": "9f161079357b1179b6af33c239697450", "score": "0.7405382", "text": "private void clearPosition() {\n \n position_ = 0;\n }", "title": "" }, { "docid": "cf1af70713a1b7822f7ac9846160fcc9", "score": "0.71481186", "text": "public void ClearBoard()\n {\n //Loop through all positions on teh board\n for(int i = 0; i < buttonArray.length; ++i)\n for(int j = 0; j < buttonArray[i].length; ++j)\n {\n buttonArray[i][j].setText(\"\");\n buttonArray[i][j].MakeEditable(true);\n buttonArray[i][j].setFont(new Font(\"Arial\", Font.PLAIN, 24));\n }\n }", "title": "" }, { "docid": "c56909b017214d4d2b713928d132dc3f", "score": "0.7132231", "text": "void clear() {\r\n _whoseMove = WHITE;\r\n _gameOver = false;\r\n\r\n for (int i = 0; i < SIDE * SIDE; i++) {\r\n _board[i] = ORIGIN[i];\r\n }\r\n\r\n resetMoveList();\r\n setChanged();\r\n notifyObservers();\r\n }", "title": "" }, { "docid": "904a7232cac340b200ebae06b0ab9de1", "score": "0.71278554", "text": "void clear() {\n setPieces(clearedBoard, WHITE);\n _direction = new int[Move.SIDE * Move.SIDE];\n _undoDirection = new Stack<>();\n _undoPieces = new Stack<>();\n _gameOver = false;\n\n setChanged();\n notifyObservers();\n }", "title": "" }, { "docid": "4fb79166bd7ead19e4e5ee36e8d0af2f", "score": "0.6951932", "text": "private void clearBoard() {\n if (moveListener.getPiece() != null) {\n Square square = moveListener.getPiece().getPosition();\n square.setBackground(square.getOriginalColor());\n moveListener.setPiece(null);\n }\n\n for (int row = 0; row < NUMBER_OF_SQUARES; row++) {\n for (int column = 0; column < NUMBER_OF_SQUARES; column++) {\n if (squares[row][column].getPiece() != null) {\n squares[row][column].removePiece();\n }\n }\n }\n }", "title": "" }, { "docid": "ef5edf5356639e176dbe37083520dff7", "score": "0.68876797", "text": "public void clearBoard(){\n\t\tfor(int i = 0; i < 9; ++i){\n\t\t\tfor(int j = 0; j < 9; ++j){\n\t\t\t\tfield[i][j].clear();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f436e192512c4a9589913ad517206e58", "score": "0.6880241", "text": "public void clear()\n\t{\n\t\tfor(int row = 0; row < board.length; row++)\n\t\t\tfor(int col = 0; col < board[0].length; col++)\n\t\t\t\tboard[row][col] = 0;\n\t}", "title": "" }, { "docid": "61115cfd2bd43add0c889d94a8df6278", "score": "0.68375653", "text": "public void clear()\n {\n this.piece = null;\n }", "title": "" }, { "docid": "3a45618c2943f8d464a2deeb659416c2", "score": "0.68135166", "text": "public void removePiece(Pair<Integer, Integer> position) {\n board[position.getFirst()][position.getSecond()] = null;\n }", "title": "" }, { "docid": "17f2c24db7bbc9dc56c74d8a2920d7c9", "score": "0.68039596", "text": "public void clear() {\n\t\tSystem.out.println(\"Piece was not moved\");\n\t\tpreviousCell.setBackground(selected);\n\t\tactive = false;\n\t\tcapture = false;\n\t\tpreviousCell = null;\n\t\tsourceCell = null;\n\t}", "title": "" }, { "docid": "5196c41b7be7fa0329b8c8c5420fa711", "score": "0.67769235", "text": "public void clearBoard() {\n\n board = new ArrayList<>();\n\n for (int i = 0; i < 250; i++) {\n List<Byte> row = new ArrayList<>();\n for (int j = 0; j < 350; j++) {\n row.add((byte) 0);\n }\n this.board.add(row);\n }\n\n drawBoard();\n }", "title": "" }, { "docid": "c88d7bec826f5bc9556aca705edee4ce", "score": "0.6767338", "text": "public void clear() {\n\t\tfor (int i = 0; i < 3; i++)\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\tmarkCount = 0;\n\t}", "title": "" }, { "docid": "ce05d68bbd7a8460148a75d0b19bee7e", "score": "0.6742625", "text": "public void clearPlateAtPosition(int position) {\n\t\tposition = ((position % beltSize) + beltSize) % beltSize;\n\t\t\n\t\tbelt.set(position, null);\n\t\t\n\t}", "title": "" }, { "docid": "2430d0f85e8e0eccaf38cea60dc043ed", "score": "0.6711042", "text": "private void clearBoard ()\n {\n for (int i = 0; i < this.board.length; i++)\n {\n for (int j = 0; j < this.board[i].length; j++)\n {\n board[i][j] = false;\n }\n }\n }", "title": "" }, { "docid": "8bf77487051fea0ef7ee709533b34c2e", "score": "0.6704973", "text": "public void clearBoard() {\n for (int i = 0; i < ROWS; i++) {\n for (int j = 0; j < COLUMNS; j++) {\n gameBoard[i][j] = -1;\n }\n }\n }", "title": "" }, { "docid": "2bc38cec1dc23e45b84d2f4c844557e0", "score": "0.6700451", "text": "public void clearBoard(){\n\t\tboard = new boolean[yLength][xLength];\n\t}", "title": "" }, { "docid": "3588e31b8aecaefaa3e13a8496a95ef9", "score": "0.66892797", "text": "public void clearBoard() {\r\n allPegs.clear();\r\n }", "title": "" }, { "docid": "ad6a01855b9cadd9070bc082714b4cce", "score": "0.6667588", "text": "public static void clearBoard() {\r\t\tfor (final short[] column : board) Arrays.fill(column, EMPTY); // Fills all columns in the board with 'empty' spaces\n\t\tfor (final short[] column : control) Arrays.fill(column, NEUTRAL); // Sets the territory of each square to neutral, controlled by no army.\n\t\treturn;\r\t}", "title": "" }, { "docid": "0202966fb6b0e9b149fd8e616ab29f9a", "score": "0.6659854", "text": "public void clear()\n\t{\n\t\tfor (int i = 0; i < NO_ROWS; i++)\n\t\t\tfor (int j = 0; j < NO_COLS; j++)\n\t\t\t\tboard[i][j] = null;\n\t}", "title": "" }, { "docid": "d3c5d5ba254e6348f14dffd02ec0a23b", "score": "0.66179216", "text": "public void clear(){\n\t\tfor (int i = 1; i < 11; i++) \n for (int j = 0; j < 22; j++)\n \tgamePanel[j][i]=0;\n\t}", "title": "" }, { "docid": "fd424b0f539e1a79019973dd8dde5d01", "score": "0.66167796", "text": "public void clearTheBoard() \r\n {\r\n for (int i = 0; i < ROWS; i++)\r\n for (int j = 0; j < COLS; j++) \r\n grid[i][j] = 0;\r\n \r\n }", "title": "" }, { "docid": "c8ccf8a48c809a006761d7de4bfbe631", "score": "0.66138923", "text": "public void clearGridCoordinates() {\r\n x = y = -1;\r\n }", "title": "" }, { "docid": "5aa05308af0f35320855736802e63c57", "score": "0.6572604", "text": "public void erase(Object position);", "title": "" }, { "docid": "884eadb6380f16132a44e3c78ca83e58", "score": "0.65656227", "text": "public void clear(final Pos p) {\n\t\tif(p.col < 2 || p.col > 3 || p.row < 5 || p.row > 6)\n\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tgnd.clear(p);\n\t\t\t\t}\n\t\t\t});\n\t\telse\n\t\t\t// In toddlers' yard - call directly\n\t\t\tgnd.clear(p);\n\t}", "title": "" }, { "docid": "fe7394ba0a35365be357df453ccd958c", "score": "0.655836", "text": "void clear(){\n front = back = cursor = null;\n length = 0;\n cursorIndex = -1;\n }", "title": "" }, { "docid": "e3b85bd6c8685530e0cac44eb78833aa", "score": "0.65485966", "text": "public SnappedPos clearOrigin() {\n\t\tthis.ox = x;\n\t\tthis.oy = y;\n\t\tthis.oz = z;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "1d96ced84d16321991627d1949967ed8", "score": "0.6544649", "text": "private void clearBoard(){\n for (int i = 0; i<24; i++){\n board[i] = 0;\n }\n }", "title": "" }, { "docid": "99da58b72c20d0dc82f3997042c28289", "score": "0.6462091", "text": "public void clear()\n\t{\n\t\tfor (int y = 0; y < HEIGHT; y++)\n\t\t{\n\t\t\tfor (int x = 0; x < WIDTH; x++)\n\t\t\t{\n\t\t\t\tremovePiece(x, y);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3e5d1bc1c9bdeaf030a5536cfba45d39", "score": "0.6452857", "text": "public void clearBoard() {\n \tint i = 0;\n \tint j = 0;\n \tfor (i = 0; i < DIM_SQUARES; i++) {\n \t\tfor (j = 0; j < DIM_SQUARES; j++) {\n \t\t\tsquares[i][j] = null;\n \t\t}\n \t}\n }", "title": "" }, { "docid": "5808449b10ac6adcf713d7a14f7b7693", "score": "0.6450494", "text": "void clear(){\n length = 0;\n index = -1;\n cursor = null;\n front = null;\n back = null;\n }", "title": "" }, { "docid": "581bbd007a5bf8883363a1377a820161", "score": "0.6443543", "text": "public Builder clearPosition() {\n bitField0_ = (bitField0_ & ~0x00000008);\n position_ = 0L;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0b85136a74e3473b2d9da8fdfd5b025b", "score": "0.64416724", "text": "public void clearBoard() {\n for (int row = 0; row < 8; row++){\n for(int col = 0; col < 10; col++){\n board[row][col] = new NullPiece();\n }\n }\n }", "title": "" }, { "docid": "170c4de4df007364a621c3dffa4ec523", "score": "0.64407843", "text": "public void clearBoard(Tile[][] thisBoard)\n\t{\n\t\tfor (int row = 0; row < thisBoard.length; row++)\n\t\t\tfor (int col = 0; col < thisBoard[row].length; col++)\n\t\t\t\tthisBoard[row][col] = null;\n\t}", "title": "" }, { "docid": "93197ac0afe607a14a6fc8df05487659", "score": "0.6421849", "text": "public void clearTile(int row, int col)\n\t{\n\t\tsquares[row][col] = new EmptyTile();\n\t}", "title": "" }, { "docid": "b66f8007a28f1fd52e9e1515ee7e9708", "score": "0.6416119", "text": "public void clear() {\n this.mSize = 0;\n Arrays.fill(this.mPositions, -1);\n }", "title": "" }, { "docid": "56819a396d114851e24840ab35d82add", "score": "0.6413821", "text": "public void removePiece(int x, int y){\n position[x][y] = null;\n }", "title": "" }, { "docid": "6c1ad3ccf46cfdc0ce46680d8b5694a2", "score": "0.639778", "text": "public void reset(){\n\t\t\tposition = 0;\n\t\t\tthis.reposition();\n\t\t}", "title": "" }, { "docid": "5725ac2d39fc4695f641f1fc5cfc9ffa", "score": "0.63892394", "text": "private Piece clearSquare(int row, int col) {\n Piece piece = board[row][col];\n if (piece == null) {return null;}\n\n board[row][col] = null;\n return piece;\n }", "title": "" }, { "docid": "3fed38e0404574cb42fb5898286ac1f9", "score": "0.6382418", "text": "public void reset()\r\n {\r\n move(-x,-y);\r\n }", "title": "" }, { "docid": "71788f93fdfe20504daf93a98af3d65b", "score": "0.6368014", "text": "public abstract int resetLocations(Piece[][] board);", "title": "" }, { "docid": "122dc5ec50a3bbf3db7fc35c0c31cffc", "score": "0.6360609", "text": "public void clear_X();", "title": "" }, { "docid": "8f788b0b689502ce5e0592be5c859569", "score": "0.6346627", "text": "public void AsteroidClear() {\r\n spot0.setIcon(space);\r\n spot1.setIcon(space);\r\n spot2.setIcon(space);\r\n spot3.setIcon(space);\r\n spot4.setIcon(space);\r\n spot5.setIcon(space);\r\n spot6.setIcon(space);\r\n spot7.setIcon(space);\r\n spot8.setIcon(space);\r\n spot9.setIcon(space);\r\n spot10.setIcon(space);\r\n spot11.setIcon(space);\r\n spot12.setIcon(space);\r\n spot13.setIcon(space);\r\n spot14.setIcon(space);\r\n spot15.setIcon(space);\r\n spot16.setIcon(space);\r\n spot17.setIcon(space);\r\n spot18.setIcon(space);\r\n spot19.setIcon(space);\r\n spot20.setIcon(space);\r\n spot21.setIcon(space);\r\n spot22.setIcon(space);\r\n spot23.setIcon(space);\r\n spot24.setIcon(space);\r\n }", "title": "" }, { "docid": "8843d5086d5a5dfe2fc2bb808a7ed65f", "score": "0.63465333", "text": "public void clear(int color)\n/* */ {\n/* 41 */ for (int i = 0; i < this.pixels.length; i++) {\n/* 42 */ this.pixels[i] = color;\n/* */ }\n/* */ }", "title": "" }, { "docid": "6a48301474804ec073f8935828d49d50", "score": "0.6344238", "text": "private void clearBoard() {\n\t\tgameBoard.setVisible(false);\n\t\tgameWindow.getContentPane().remove(gameBoard);\n\t}", "title": "" }, { "docid": "35aa5b826ac745ca7e5ce65aa650e8a1", "score": "0.63356715", "text": "public Builder clearPos() {\n bitField0_ = (bitField0_ & ~0x00000002);\n pos_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4fa76c2de35a504c21bf799062919802", "score": "0.6320746", "text": "Board() {\n\n clear();\n }", "title": "" }, { "docid": "2514308e3b8909ca166145b5024c342c", "score": "0.6309978", "text": "void clear() ;", "title": "" }, { "docid": "2c6730af3532fc8cbcb471b4842da19e", "score": "0.62941456", "text": "private void resetPosition() {\n row = 0;\n column = (Tetris.TETRIS_WIDTH - 4) / 2;\n ghost_row = 0;\n }", "title": "" }, { "docid": "5d606731703fad7456e728b105652e3d", "score": "0.6282904", "text": "Board() {\n clear();\n }", "title": "" }, { "docid": "fd089ab241b14430a3dc7a9038d8e346", "score": "0.62825024", "text": "public abstract void colClear();", "title": "" }, { "docid": "fde9a556d5f7477b79516a1346682e73", "score": "0.6275002", "text": "private void resetBoardClean() {\r\n int[][] tempBoard = myBoard.getCurrentBoard();\r\n for(int i=0; i<Constants.boardRowNo; i++) {\r\n for(int j=0; j<Constants.boardColumnNo; j++) {\r\n this.gridButtonArray[i][j].setText(\"\");\r\n this.gridButtonSet[i][j] = false;\r\n tempBoard[i][j] = 0;\r\n }\r\n }\r\n this.myBoard.setCurrentBoard(tempBoard);\r\n }", "title": "" }, { "docid": "8ce5fe9518b617457ed124f99110ec95", "score": "0.62677866", "text": "public void clear(int num);", "title": "" }, { "docid": "8568b5dcefc03d4d2b5a84fd002e0739", "score": "0.62623066", "text": "public void resetPosition() {\n\t\tthis.position = null;\n\t}", "title": "" }, { "docid": "ee1afc1c0e9280e91e0a5b51eacd4c57", "score": "0.6249328", "text": "public void clear() {\n clear(Color.WHITE);\n }", "title": "" }, { "docid": "f855f9b163054b04a7e61893f6085362", "score": "0.62482387", "text": "public void reset() {\n\t\tfor (int j = 1; j <= this.width; j++) {\n\t\t\tfor (int i = 1; i <= this.height; i++)\n\t\t\t\tsetPosition(j, i, Counter.EMPTY);\n\t\t}\n\t}", "title": "" }, { "docid": "b27febee48c5462b0ed24ec65f05d1dc", "score": "0.6245791", "text": "@Test\n\tpublic void clearBoardTest() {\n\t\tb.clearBoard();\n\t\tTileType expected;\n\t\tTileType actual;\n\t\t// Test arbitrary tiles\n\t\tactual = b.getTile(3, 2).getType();\n\t\texpected = TileType.PLAIN;\n\t\tAssert.assertEquals(expected, actual);\n\t\tactual = b.getTile(8, 5).getType();\n\t\texpected = TileType.WATER;\n\t\tAssert.assertEquals(expected, actual);\n\t\tactual = b.getTile(6, 13).getType();\n\t\texpected = TileType.SUPPLYSTATION;\n\t\tAssert.assertEquals(expected, actual);\n\t\tactual = b.getTile(13, 27).getType();\n\t\texpected = TileType.MOUNTAIN;\n\t\tAssert.assertEquals(expected, actual);\n\t\tactual = b.getTile(9, 0).getType();\n\t\texpected = TileType.P1START;\n\t\tAssert.assertEquals(expected, actual);\n\t\tactual = b.getTile(11, 0).getType();\n\t\texpected = TileType.P2START;\n\t\tAssert.assertEquals(expected, actual);\n\t\tactual = b.getTile(10, 38).getType();\n\t\texpected = TileType.GOAL;\n\t\tAssert.assertEquals(expected, actual);\n\t}", "title": "" }, { "docid": "bd0d360f6c58cd97b6078076ebe24be2", "score": "0.624141", "text": "public void clear()\r\n\t{\r\n\t\tfor (int i = 0; i < 256; i++)\r\n\t\t{\r\n\t\t\tthis.down[i] = false;\r\n\t\t\tthis.click[i] = false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "db6af883c5f25f65c61510cc7ebc23d8", "score": "0.62153643", "text": "public void clear() ;", "title": "" }, { "docid": "b45a7fc97cf3b8f327879d0fc833148d", "score": "0.62090766", "text": "public void clear()\r\n {\r\n box.clear();\r\n }", "title": "" }, { "docid": "cb5229afa2a120b5a9716bd1f3587035", "score": "0.62021434", "text": "public void resetPosition() { curLine = curColumn = 1; }", "title": "" }, { "docid": "5bb16b63e2971a2214acefadaaf5059f", "score": "0.6194906", "text": "public void clearBoard (int[] [] board)\n {\n \tfor(int row=0; row<board.length; row++){\n \t\tfor(int column=0; column<board[row].length;column++){\n \t\t\tboard[row][column]=0;\n \t\t}\n \t}\n }", "title": "" }, { "docid": "a32f4c88466a299446bd883a53df977a", "score": "0.61900115", "text": "public void clear () {\n /* Only the top index has to be updated, since values byond it\n cannot be accessed */\n this.top = -1;\n }", "title": "" }, { "docid": "fe89a95de6c094d5eb77d8755e650ee6", "score": "0.6189839", "text": "public void resetPosition() {\n setCoord(DEFAULT_POSITION);\n }", "title": "" }, { "docid": "126b57f145ed3d921cdff0068e7e9e1e", "score": "0.61866206", "text": "@Override\n default void moveTo(int position) {\n moveTo(position, NavigationActions.SelectionPolicy.CLEAR);\n }", "title": "" }, { "docid": "3669e88ee15290add25e973cf786bed0", "score": "0.61455107", "text": "public com.mei.ergosurgeon.schema.entities.Frame.Builder clearPosition() {\n position = null;\n fieldSetFlags()[4] = false;\n return this;\n }", "title": "" }, { "docid": "645b5a24e93ad78b292838420ee072ea", "score": "0.6138325", "text": "public void clearInitialBoard() {\n\n initialBoard = new ArrayList<>();\n\n for (int i = 0; i < 250; i++) {\n List<Byte> row = new ArrayList<>();\n for (int j = 0; j < 350; j++) {\n row.add((byte) 0);\n }\n this.board.add(row);\n }\n }", "title": "" }, { "docid": "3c005ae2dff6e296ac6ab63f600e4789", "score": "0.61330116", "text": "void clear(int i);", "title": "" }, { "docid": "3938479b89864496d79e153a1f4cf35f", "score": "0.6127969", "text": "public void reset() {\n for (int x = 0; x < board.length; x++) {\n for (int y = 0; y < board[x].length; y++) {\n for (int z = 0; z < board[x][y].length; z++) {\n board[x][y][z] = ' ';\n }\n }\n }\n }", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" }, { "docid": "bbdd65b4eda1505e9c271dcf67e80c44", "score": "0.6123048", "text": "void clear();", "title": "" } ]
5db26910e03fa764b329feabe519015b
ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
[ { "docid": "2fc6c257c7519d5b6d79e99d71c65c44", "score": "0.0", "text": "public List<Vertex<Long,Double>> pageRank(Graph<Long, Double, Double> graph, boolean fileOutput, ExecutionEnvironment env) throws Exception{\n\n\t\t\t\tDataSet<Tuple2<Long, Long>> vertexOutDegrees = graph.outDegrees();\n\t\t\t\t \n\t\t \t\t// assign the transition probabilities as the edge weights\n\t\t \t\tGraph<Long, Double, Double> networkWithWeights = graph\n\t\t \t\t\t\t.joinWithEdgesOnSource(vertexOutDegrees,\n\t\t \t\t\t\t\t\tnew MapFunction<Tuple2<Double, Long>, Double>() {\n\t\t \t\t\t\t\t\t\tpublic Double map(Tuple2<Double, Long> value) {\n\t\t \t\t\t\t\t\t\t\treturn value.f0 / value.f1;\n\t\t \t\t\t\t\t\t\t}\n\t\t \t\t\t\t\t\t});\n\t\t \n\t\t \t\tDataSet<Vertex<Long, Double>> pagerankVertices = networkWithWeights.run(\n\t\t \t\t\t\tnew PageRankAlgorithm<Long>(0.5, 50))\n\t\t \t\t\t\t.getVertices();\n\t\t\n\t\tList<Vertex<Long,Double>> collectedVertices = pagerankVertices.collect();\n\t\tdouble[] ranks = new double[(int) collectedVertices.size()];\n\t\tfor(int i = 0; i < collectedVertices.size(); i++){\n\t\t\tranks[i] = collectedVertices.get(i).getValue();\n\t\t}\n\t\t// emit result\t\t\n\t\tif (fileOutput) {\n\t\tpagerankVertices.writeAsCsv(\"C:/Users/Niklas/TennisStatsData/test_pagerank_output\", \"\\n\", \",\");\n\t\t// since file sinks are lazy, we trigger the execution explicitly\n\t\tenv.execute(\"Executing Community Detection Example\");\n\t\t}\n\t\telse {\n\t\t\t//pagerankVertices.print();\n\t\t\tranks = StatsTools.absToRel(ranks);\n\t\t\t//System.out.println(\"STD = \" + StatsTools.standarddeviation(ranks));\n\t\t}\n\t\treturn collectedVertices;\n\t}", "title": "" } ]
[ { "docid": "a79b337ce7f09ba6e59aed18fb28ac8c", "score": "0.65285414", "text": "default TaskExecutionEnvironmentType getExecutionEnvironment(Task masterTask) {\n return null;\n }", "title": "" }, { "docid": "cd856bef90b86359d2b9ae9d9fd42270", "score": "0.6494294", "text": "public static StreamExecutionEnvironment remoteEnv() {\n\t\tString jarPath = Constants.target + \"myflink-1.0.0.jar\";\n\t\tSystem.out.println(jarPath);\n\t\tStreamExecutionEnvironment env = StreamExecutionEnvironment\n\t\t\t.createRemoteEnvironment(\"localhost\", 8081, jarPath);\n\t\treturn env;\n\t}", "title": "" }, { "docid": "d52b509905e21cb3452f9e4396cbad6b", "score": "0.6412655", "text": "default TaskExecutionEnvironmentType getExecutionEnvironment(Task masterTask) {\n return null;\n }", "title": "" }, { "docid": "62a3487d95239bb5271dc3c1cce37fdb", "score": "0.6333552", "text": "public static StreamExecutionEnvironment localEnv() {\n\t\tConfiguration flink_conf = new Configuration();\n\t\tflink_conf.setLong(\"rest.port\", 18081);\n\t\tStreamExecutionEnvironment env = StreamExecutionEnvironment\n\t\t\t.createLocalEnvironmentWithWebUI(flink_conf);\n\t\treturn env;\n\t}", "title": "" }, { "docid": "71a64ea290a2fa844316f34557aecba2", "score": "0.5878392", "text": "public Environment getEnvironment();", "title": "" }, { "docid": "50bc6f0aaba8e755cc30abc7b0c20c65", "score": "0.5682002", "text": "public Environment getEnvironment()\r\n/* 79: */ {\r\n/* 80:153 */ return this.environment;\r\n/* 81: */ }", "title": "" }, { "docid": "04bd0add4293586d325d0275f3c32dcf", "score": "0.5680915", "text": "public static void main(String[] args) throws Exception {\n\t\tStreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n\t\tenv.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);\n\t\tenv.enableCheckpointing(10*1000);\n\t\tenv.getConfig().setAutoWatermarkInterval(10*1000);\n\t\tenv.setStateBackend(new FsStateBackend(\"file:///media/xiaokeai/Study/data/flinkstate\"));\n\n\t\t//kafka config\n\t\tProperties props=new Properties();\n\t\tprops.put(\"bootstrap.servers\",\"localhost:9092\");\n\t\tprops.put(\"group.id\",\"flinkProcess\");\n\t\tprops.put(\"auto.offset.reset\",\"earliest\");\n\t\tprops.put(\"key.deserializer\",\"org.apach.kafka.common.serialization.StringDeserializer\");\n\t\tprops.put(\"value.deserializer\",\"org.apach.kafka.common.serialization.StringDeserializer\");\n\n\t\t//create consumer\n FlinkKafkaConsumer consumer=new FlinkKafkaConsumer<String>(\"taxi\"\n\t\t\t\t,new SimpleStringSchema(),props);\n consumer.setStartFromEarliest();\n consumer.assignTimestampsAndWatermarks(new TSExtractor());\n //stream processing\n\t\t//read from kafka and transfer to object\n\n\t\tDataStream<String>messageStream=env.addSource(consumer);\n\n\n\n\t\tDataStream<TrajPointAvro>trajPointStream=messageStream.map(x->Utils.string2TrajPointAvro(x));\n\t\tDataStream<TrajPointAvro>filtered=trajPointStream.filter(new RangeFilter());\n\n\t\t//filtered.addSink(new trajPointHBaseSink());\n\n\t\t//DataStream<Tuple2<String,SimplePointAvro>> simplepoints= filtered.map(new TrajPoint2SimplePoint());\n// initHBase();\n//\t\tsimplepoints.addSink(new simplePointHBaseSink());\n\t\t//simplepoints.print();\n\n\n\t\tMap<String, String> config = new HashMap<>();\n\t\tconfig.put(\"bulk.flush.max.actions\", \"1\"); // flush inserts after every event\n\t\tconfig.put(\"cluster.name\", \"elasticsearch\"); // default cluster name\n\n\t\tList<InetSocketAddress> transports = new ArrayList<>();\n// set default connection details\n\t\ttransports.add(new InetSocketAddress(InetAddress.getByName(\"localhost\"), 9300));\n\t\tfiltered.keyBy(x->x.getTaxiId()).map(new StatusChange()).filter(x->x.f3!=0).addSink(new ElasticsearchSink<>(config,transports,new ChangePointsInserter()));\n\t\t//simplepoints.addSink(new ElasticsearchSink<>(config,transports,new PointsInserter()));\n\n\t\t// execute program\n\t\tenv.execute(\"Flink Streaming Java API Skeleton\");\n\t}", "title": "" }, { "docid": "6796c3aaea75e27fa9724659be3bd65b", "score": "0.56277496", "text": "TestEnvironmentInterface getTestEnvironment();", "title": "" }, { "docid": "5ba78d4ca3ef5a48edef0f27194da910", "score": "0.5610392", "text": "SynapseEnvironment getSynapseEnvironment();", "title": "" }, { "docid": "4367b8d91361db8c1926d0d4cab15c49", "score": "0.55704135", "text": "@BeforeClass\n public static void checkPrecondition() {\n PSTestUtils.validateTheExecutionEnvironment();\n }", "title": "" }, { "docid": "909cbdc2da7120cff52ebbc0ded944a1", "score": "0.5568295", "text": "public static void main(String[] args) throws Exception {\n Configuration conf = new Configuration();\n conf.setString(\"state.backend\", \"filesystem\");\n conf.setString(\"state.savepoints.dir\", \"file:///tmp/savepoints\");\n conf.setString(\"state.checkpoints.dir\", \"file:///tmp/checkpoints\");\n StreamExecutionEnvironment env = StreamExecutionEnvironment.createLocalEnvironmentWithWebUI(conf);\n\n // For more builder options, see:\n // https://github.com/ververica/flink-cdc-connectors/blob/master/flink-connector-postgres-cdc/src/main/java/com/alibaba/ververica/cdc/connectors/postgres/PostgreSQLSource.java#L43\n SourceFunction<String> sourceFunction1 = PostgreSQLSource.<String>builder()\n // The pgoutput logical decoding plugin is only supported in Postgres 10+\n // https://debezium.io/documentation/reference/connectors/postgresql.html#postgresql-pgoutput\n .decodingPluginName(\"pgoutput\")\n\n // Slot names should be unique per Postgres node\n .slotName(\"flink1\")\n\n .hostname(\"localhost\")\n .port(5432)\n .database(\"experiment\")\n .username(\"experiment\")\n .password(\"experiment\")\n\n // This simple deserializer just toString's a SourceRecord. We'll want to impl our own to extract the\n // data that we want.\n // See: https://github.com/ververica/flink-cdc-connectors/blob/release-1.4/flink-connector-debezium/src/main/java/com/alibaba/ververica/cdc/debezium/StringDebeziumDeserializationSchema.java\n .deserializer(new StringDebeziumDeserializationSchema())\n .build();\n\n SourceFunction<String> sourceFunction2 = PostgreSQLSource.<String>builder()\n .decodingPluginName(\"pgoutput\")\n .slotName(\"flink1\")\n .hostname(\"localhost\")\n .port(5433)\n .database(\"experiment\")\n .username(\"experiment\")\n .password(\"experiment\")\n .deserializer(new StringDebeziumDeserializationSchema())\n .build();\n\n DataStream<String> stream1 = env.addSource(sourceFunction1);\n DataStream<String> stream2 = env.addSource(sourceFunction2);\n\n stream1\n .union(stream2)\n .print()\n .setParallelism(1);\n\n // Example output from the above\n // SourceRecord{sourcePartition={server=postgres_cdc_source}, sourceOffset={transaction_id=null, lsn_proc=23469304, lsn=23469304, txId=565, ts_usec=1616805436265270}} ConnectRecord{topic='postgres_cdc_source.schema1.users', kafkaPartition=null, key=Struct{id=1}, keySchema=Schema{postgres_cdc_source.schema1.users.Key:STRUCT}, value=Struct{after=Struct{id=1,full_name=susan smith},source=Struct{version=1.4.1.Final,connector=postgresql,name=postgres_cdc_source,ts_ms=1616805436265,db=experiment,schema=schema1,table=users,txId=565,lsn=23469304},op=c,ts_ms=1616805436428}, valueSchema=Schema{postgres_cdc_source.schema1.users.Envelope:STRUCT}, timestamp=null, headers=ConnectHeaders(headers=)}\n // SourceRecord{sourcePartition={server=postgres_cdc_source}, sourceOffset={transaction_id=null, lsn_proc=23469736, lsn_commit=23469576, lsn=23469736, txId=566, ts_usec=1616805450816777}} ConnectRecord{topic='postgres_cdc_source.schema2.users', kafkaPartition=null, key=Struct{id=1}, keySchema=Schema{postgres_cdc_source.schema2.users.Key:STRUCT}, value=Struct{after=Struct{id=1,full_name=bob smith},source=Struct{version=1.4.1.Final,connector=postgresql,name=postgres_cdc_source,ts_ms=1616805450816,db=experiment,schema=schema2,table=users,txId=566,lsn=23469736},op=c,ts_ms=1616805451269}, valueSchema=Schema{postgres_cdc_source.schema2.users.Envelope:STRUCT}, timestamp=null, headers=ConnectHeaders(headers=)}\n // SourceRecord{sourcePartition={server=postgres_cdc_source}, sourceOffset={transaction_id=null, lsn_proc=23470064, lsn_commit=23470008, lsn=23470064, txId=567, ts_usec=1616805527734824}} ConnectRecord{topic='postgres_cdc_source.schema1.users', kafkaPartition=null, key=Struct{id=1}, keySchema=Schema{postgres_cdc_source.schema1.users.Key:STRUCT}, value=Struct{before=Struct{id=1,full_name=susan smith},after=Struct{id=1,full_name=sue smith},source=Struct{version=1.4.1.Final,connector=postgresql,name=postgres_cdc_source,ts_ms=1616805527734,db=experiment,schema=schema1,table=users,txId=567,lsn=23470064},op=u,ts_ms=1616805527737}, valueSchema=Schema{postgres_cdc_source.schema1.users.Envelope:STRUCT}, timestamp=null, headers=ConnectHeaders(headers=)}\n // SourceRecord{sourcePartition={server=postgres_cdc_source}, sourceOffset={transaction_id=null, lsn_proc=23470304, lsn_commit=23470248, lsn=23470304, txId=568, ts_usec=1616805535802803}} ConnectRecord{topic='postgres_cdc_source.schema2.users', kafkaPartition=null, key=Struct{id=1}, keySchema=Schema{postgres_cdc_source.schema2.users.Key:STRUCT}, value=Struct{before=Struct{id=1,full_name=bob smith},after=Struct{id=1,full_name=bobby smith},source=Struct{version=1.4.1.Final,connector=postgresql,name=postgres_cdc_source,ts_ms=1616805535802,db=experiment,schema=schema2,table=users,txId=568,lsn=23470304},op=u,ts_ms=1616805535901}, valueSchema=Schema{postgres_cdc_source.schema2.users.Envelope:STRUCT}, timestamp=null, headers=ConnectHeaders(headers=)}\n\n // Here's another example with some more operators that perform transformations & processing - the standard\n // word count example.\n // SingleOutputStreamOperator<Tuple2<String, Integer>> stream3 = stream1.flatMap(new Splitter());\n // SingleOutputStreamOperator<Tuple2<String, Integer>> stream4 = stream2.flatMap(new Splitter());\n //\n // stream3\n // .union(stream4)\n // .keyBy(value -> value.f0)\n // .window(TumblingProcessingTimeWindows.of(Time.seconds(5)))\n // .sum(1)\n // .print()\n // .setParallelism(1); // use parallelism 1 for sink to keep message ordering\n\n env.execute(\"experiment\");\n }", "title": "" }, { "docid": "7dea6033685fba93fb45ce520fa59141", "score": "0.5561078", "text": "public static void main(String[] args) throws Exception {\n final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n\n // 设置最少一次处理语义和恰一次处理语义\n env.enableCheckpointing(20000,CheckpointingMode.EXACTLY_ONCE);\n//\t\tcheckpoint 也可以分开设置\n env.enableCheckpointing(20000);\n//\t\tenv.getCheckpointConfig().setCheckpointingMode(CheckpointingMode.AT_LEAST_ONCE);\n\n//\t\t设置checkpoint目录\n//\t\tenv.setStateBackend(new FsStateBackend(\"/hdfs/checkpoint\"));\n env.getCheckpointConfig() // checkpoint的清楚策略\n .enableExternalizedCheckpoints(CheckpointConfig.\n ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION);\n\n//\t\t设置重启策略\n env.setRestartStrategy(RestartStrategies.\n fixedDelayRestart(5,//5次尝试\n 50000)); //每次尝试间隔50s\n\n // 选择设置事件事件和处理事件\n env.setStreamTimeCharacteristic(TimeCharacteristic.ProcessingTime);\n Properties properties = new Properties();\n properties.setProperty(\"bootstrap.servers\", \"mt-mdh.local:9093\");\n properties.setProperty(\"group.id\", \"SlidingWindowsReduceFunction\");\n\n FlinkKafkaConsumer010<String> kafkaConsumer010 = new FlinkKafkaConsumer010<>(\"KV\",\n new SimpleStringSchema(),\n properties);\n\n kafkaConsumer010.setStartFromLatest();\n\n SingleOutputStreamOperator<Tuple2<String, Long>> reduce = env\n .addSource(kafkaConsumer010)\n .map(new Split2KV())\n// .windowAll(SlidingEventTimeWindows.of(Time.seconds(10),Time.seconds(10)))\n .windowAll(SlidingProcessingTimeWindows.of(Time.seconds(10), Time.seconds(10)))\n .reduce(new ReduceFunction<Tuple2<String, Long>>() {\n @Override\n public Tuple2<String, Long> reduce(Tuple2<String, Long> v1, Tuple2<String, Long> v2) throws Exception {\n return new Tuple2<>(v1.f0, v1.f1 + v2.f1);\n }\n });\n\n reduce.print();\n\n env.execute(SlidingWindowsReduceFunction.class.getCanonicalName());\n }", "title": "" }, { "docid": "2facc53137ff705789bf3e8b6421d188", "score": "0.5428763", "text": "com.google.devtools.testing.v1.EnvironmentMatrix getEnvironmentMatrix();", "title": "" }, { "docid": "8757abd6d173461454e26d188a240144", "score": "0.5404481", "text": "public EnvironmentType getEnvironment()\n {\n return _myEnvironment;\n }", "title": "" }, { "docid": "c302c8ec593829c8d0f286af20da1c81", "score": "0.5382359", "text": "public static void main(String[] args) throws Exception {\n StreamExecutionEnvironment env = StreamExecutionEnvironment.createLocalEnvironment();\n env.setRuntimeMode(RuntimeExecutionMode.AUTOMATIC);\n EnvironmentSettings settings = EnvironmentSettings.newInstance().inStreamingMode().useBlinkPlanner().build();\n StreamTableEnvironment tableEnv = StreamTableEnvironment.create(env,settings);\n\n // 2 ,add data source\n DataStreamSource<Order> orderDS = env.addSource(new RichSourceFunction<Order>() {\n private Boolean isRunning = true;\n @Override\n public void run(SourceContext<Order> ctx) throws Exception {\n Random random = new Random();\n while (isRunning) {\n Order order = new Order(UUID.randomUUID().toString(), random.nextInt(3), random.nextInt(101), System.currentTimeMillis());\n TimeUnit.SECONDS.sleep(1);\n ctx.collect(order);\n }\n }\n\n @Override\n public void cancel() {\n isRunning = false;\n }\n });\n // 3 ,set event time and watermark\n DataStream<Order> orderSingleOutputStreamOperator = orderDS.assignTimestampsAndWatermarks(\n WatermarkStrategy\n .<Order>forBoundedOutOfOrderness(Duration.ofSeconds(5))\n .withTimestampAssigner((order, timestamp) -> order.getCreateTime())\n );\n\n // 4 ,transformation\n tableEnv.createTemporaryView(\"t_order\",orderSingleOutputStreamOperator,$(\"orderId\"), $(\"userId\"), $(\"money\"), $(\"createTime\").rowtime());\n String sql = \"select userId,count(orderId),max(money),min(money) from t_order group by userId , TUMBLE(createTime, INTERVAL '5' seconds)\";\n\n Table table = tableEnv.sqlQuery(sql);\n\n DataStream<Tuple2<Boolean, Row>> tuple2DataStream = tableEnv.toRetractStream(table, Row.class);\n\n tuple2DataStream.print();\n\n env.execute();\n }", "title": "" }, { "docid": "d5dfd5aabca48b3e166099a9b44d4a81", "score": "0.5365206", "text": "@Test\n public void environmentTest() {\n // TODO: test environment\n }", "title": "" }, { "docid": "b6758b26c5f73bba068ca3eb228fc10a", "score": "0.5332663", "text": "public static void main(String[] args) throws Exception {\n\t\tfinal StreamExecutionEnvironment streamEnv = StreamExecutionEnvironment\n\t\t\t\t.getExecutionEnvironment();\n\t\tstreamEnv.setParallelism(PARALLELISM);\n\t\tstreamEnv.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);\n\t\t\n\t\trunPredictionMode(streamEnv);\n\t}", "title": "" }, { "docid": "004823c7285f34c6b2f3d881aca1e172", "score": "0.52947336", "text": "public static void main(String[] args) throws Exception {\n StreamExecutionEnvironment streamEnv = StreamExecutionEnvironment.getExecutionEnvironment();\n streamEnv.enableCheckpointing(60 * 60 * 1000); // 1小时的checkpoint间隔\n streamEnv.setParallelism(1);\n\n EnvironmentSettings settings = EnvironmentSettings.newInstance().useBlinkPlanner().inStreamingMode().build();\n StreamTableEnvironment tableEnv = StreamTableEnvironment.create(streamEnv, settings);\n Configuration configuration = tableEnv.getConfig().getConfiguration();\n configuration.setBoolean(\"table.dynamic-table-options.enabled\", true);\n// loadConfig(streamEnv);\n\n // 获得前一天0点的毫秒值\n Long START_TIMESTAMP = LocalDate\n .now().minusDays(1).atStartOfDay(ZoneId.systemDefault()).toInstant().toEpochMilli();\n String KAFKA_TABLE_CREATE_SQL_FORMAT =\n \"CREATE TABLE %s (\"\n + \"%s,\"\n + \"`data_modified_datetime` TIMESTAMP(3),\"\n + \"`data_op_type` STRING,\"\n + \"`data_op_ts` TIMESTAMP(3),\"\n + \"WATERMARK FOR `data_op_ts` AS `data_op_ts` - INTERVAL '3' SECOND\"\n + \") WITH (\"\n + \"'connector' = 'kafka',\"\n + \"'topic' = '%s',\"\n + \"'format' = 'json',\"\n + \"'scan.startup.mode' = 'timestamp',\"\n + \"'scan.startup.timestamp-millis' = '\" + START_TIMESTAMP + \"',\"\n + \"'properties.bootstrap.servers' = 'cdh1.360kad.com:9092,cdh2.360kad.com:9092,cdh5.360kad.com:9092'\"\n + \")\";\n\n String fields = String.join(\",\", new String[] {\n \"`ordercode` STRING\", // 订单ID\n \"`cuscode` STRING\", // 客户ID\n \"`changetype` SMALLINT\", // 换货类型 -> 订单类型\n \"`ordersource` SMALLINT\", // 订单来源\n \"`shopcode` STRING\", // 下单门店编号或下单第三方店铺编号\n \"`salemode` SMALLINT\", // 销售模式\n \"`invoicetype` TINYINT\", // 登记发票类型\n \"`createdate` TIMESTAMP(3)\" // 下单时间\n });\n\n String table = \"ods_om_om_order_online\";\n String topic = \"cube_phx_ods_om_om_order\";\n\n\n String sql = String.format(KAFKA_TABLE_CREATE_SQL_FORMAT, table, fields, topic);\n tableEnv.executeSql(sql);\n\n // 打印 om order 表信息\n Table tableResult = tableEnv.sqlQuery(\"select * from ods_om_om_order_online where `data_op_type` = 'I'\");\n tableEnv.toAppendStream(tableResult, Row.class).print(\"order\");\n\n streamEnv.execute(\"test_job\");\n\n }", "title": "" }, { "docid": "2fc7d64928417462892a76160bb43263", "score": "0.52359045", "text": "Environment createEnvironment();", "title": "" }, { "docid": "43fd69fa0c332d4e80deb3efe319c138", "score": "0.5183872", "text": "public interface EnvironmentObject {\r\n\r\n}", "title": "" }, { "docid": "6dd5a8667dd73fa731fb767b905e0afd", "score": "0.5178759", "text": "public EnvironmentRepresentation.Component environment();", "title": "" }, { "docid": "2a0e4a876b2d2b1043ab8303d7928651", "score": "0.5177929", "text": "private static void runPredictionMode(\n\t\t\tfinal StreamExecutionEnvironment streamEnv) throws Exception {\n\t\tpredictTemperatureRange(streamEnv);\n\n\t\t// predict list of countries for hottest temperature\n//\t\tpredictHotTempCountries(streamEnv);\n\t\t\n\t\t// predict list of countries for coldest temperature\n//\t\tpredictColdTempCountries(streamEnv);\n\t}", "title": "" }, { "docid": "af2335fa7332c80f7057f37ad90ddf0c", "score": "0.51436013", "text": "public Environment getEnvironmentForDiscoveringInputs() {\n return Preconditions.checkNotNull(env);\n }", "title": "" }, { "docid": "6127fd66e42d54f513f517ee963435e0", "score": "0.5135364", "text": "public ExecutionEnvironment removeExecutionEnvironmentUnique(ExecutionEnvironment environment) {\n return (ExecutionEnvironment) removeManifestElement(environment, true);\n }", "title": "" }, { "docid": "bead609954d6de95a016d6c5f5f3f7f8", "score": "0.51286507", "text": "public scala.collection.Seq<scala.Tuple2<java.lang.String, java.lang.String>> getExecutorEnv () { throw new RuntimeException(); }", "title": "" }, { "docid": "5496058a97d583d79348056dac29c70f", "score": "0.5085837", "text": "public GameEnvironment getEnvironment() {\r\n return this.environment;\r\n }", "title": "" }, { "docid": "775d8a3be88dc7e203830687a1d00998", "score": "0.5019953", "text": "public IGlobalEnvironmentGet environmentGet();", "title": "" }, { "docid": "7ebe50dd3c25cb54c74d0e9e9a5bb7a3", "score": "0.5017571", "text": "public void run(String[] args) throws Exception {\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n final ParameterTool params = ParameterTool.fromArgs(args);\n\n // make parameters available in the web interface\n env.getConfig().setGlobalJobParameters(params);\n\n // Read person file and generate tuples out of each string read\n DataSet<Tuple2<Integer, String>> clienteSet = env.readTextFile(params.get(\"clientes\"))\n .map(new MapFunction<String, Tuple2<Integer, String>>() {\n public Tuple2<Integer, String> map(String value) {\n String[] words = value.split(\",\");\n return new Tuple2<Integer, String>(Integer.parseInt(words[0]), words[1]);\n }\n });\n\n // Read location file and generate tuples out of each string read\n DataSet<Tuple2<Integer, String>> contratoSet = env.readTextFile(params.get(\"contratos\"))\n .map(new MapFunction<String, Tuple2<Integer, String>>() {\n public Tuple2<Integer, String> map(String value) {\n String[] words = value.split(\",\");\n return new Tuple2<Integer, String>(Integer.parseInt(words[0]), words[1]);\n }\n });\n\n DataSet<Tuple2<String, Integer>> parcelaSet = env.readTextFile(params.get(\"parcelas\"))\n .map(new MapFunction<String, Tuple2<String, Integer>>() {\n public Tuple2<String, Integer> map(String value) {\n String[] words = value.split(\",\");\n return new Tuple2<String, Integer>(words[0], Integer.parseInt(words[1]));\n }\n });\n\n // joined format will be <id, cliente_nome, contrato>\n DataSet<Tuple3<Integer, String, String>> clienteContrato = clienteSet.join(contratoSet).where(0).equalTo(0)\n .with(new JoinFunction<Tuple2<Integer, String>, Tuple2<Integer, String>, Tuple3<Integer, String, String>>() {\n public Tuple3<Integer, String, String> join(Tuple2<Integer, String> cliente,\n Tuple2<Integer, String> contrato) {\n return new Tuple3<Integer, String, String>(cliente.f0, cliente.f1, contrato.f1);\n }\n });\n\n // joined format will be <id, cliente_nome, contrato, parcela>\n DataSet<Tuple4<Integer, String, String, Integer>> clienteContratoParcela = clienteContrato.join(parcelaSet)\n .where(2).equalTo(0)\n .with(new JoinFunction<Tuple3<Integer, String, String>, Tuple2<String, Integer>, Tuple4<Integer, String, String, Integer>>() {\n public Tuple4<Integer, String, String, Integer> join(\n Tuple3<Integer, String, String> clienteContrato, Tuple2<String, Integer> parcela) {\n return new Tuple4<Integer, String, String, Integer>(clienteContrato.f0, clienteContrato.f1,\n clienteContrato.f2, parcela.f1);\n }\n }).sortPartition(2, Order.ASCENDING);\n\n clienteContratoParcela.writeAsCsv(params.get(\"output\"), \"\\n\", \" \").setParallelism(1);\n\n env.execute(\"Challenge\");\n }", "title": "" }, { "docid": "6dea45a7e6d1b33d1d69f2c9fd45ced9", "score": "0.4987035", "text": "public interface Environment {\n\n public String getEnvironmentInfo();\n}", "title": "" }, { "docid": "8bf2dbe0ebc49d10838828fb3b69c5ec", "score": "0.49345073", "text": "public static void main(String[] args) throws Exception {\n\t\tStreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n\t\tParameterTool parms = ParameterTool.fromArgs(args);\n\t\tString host = \"localhost\";\n\t\tint port = 9999;\n\t\n\t\t// Step 2: Get Our Stream\t\n\t\tDataStream<String> stream = env.socketTextStream(host, port);\n\n\t\t// Step 4: Write to stdout Sink\n\t\tstream.print();\n\n\t\t// Step 5: Trigger Execution\n\t\tenv.execute(\"EchoStream\");\n\t}", "title": "" }, { "docid": "ce54ebf571784dc8b7edff7a2cf48c45", "score": "0.49220872", "text": "public static void main(String[] args) throws Throwable {\n if (args.length < 2) {\n LOG.error(\n \"Required at least two arguments, only python file or python module is available.\");\n System.exit(1);\n }\n\n // parse args\n final CommandLineParser<PythonDriverOptions> commandLineParser =\n new CommandLineParser<>(new PythonDriverOptionsParserFactory());\n PythonDriverOptions pythonDriverOptions = null;\n try {\n pythonDriverOptions = commandLineParser.parse(args);\n } catch (Exception e) {\n LOG.error(\"Could not parse command line arguments {}.\", args, e);\n commandLineParser.printHelp(PythonDriver.class.getSimpleName());\n System.exit(1);\n }\n\n // Get configuration from ContextEnvironment/OptimizerPlanEnvironment. As the configurations\n // of\n // streaming and batch environments are always set at the same time, for streaming jobs we\n // can\n // also get its configuration from batch environments.\n Configuration config = ExecutionEnvironment.getExecutionEnvironment().getConfiguration();\n\n // start gateway server\n GatewayServer gatewayServer = PythonEnvUtils.startGatewayServer();\n PythonEnvUtils.setGatewayServer(gatewayServer);\n\n PythonEnvUtils.PythonProcessShutdownHook shutdownHook = null;\n\n // commands which will be exec in python progress.\n final List<String> commands = constructPythonCommands(pythonDriverOptions);\n try {\n // prepare the exec environment of python progress.\n String tmpDir =\n System.getProperty(\"java.io.tmpdir\")\n + File.separator\n + \"pyflink\"\n + File.separator\n + UUID.randomUUID();\n // start the python process.\n Process pythonProcess =\n PythonEnvUtils.launchPy4jPythonClient(\n gatewayServer,\n config,\n commands,\n pythonDriverOptions.getEntryPointScript().orElse(null),\n tmpDir,\n true);\n shutdownHook =\n new PythonEnvUtils.PythonProcessShutdownHook(\n pythonProcess, gatewayServer, tmpDir);\n Runtime.getRuntime().addShutdownHook(shutdownHook);\n\n BufferedReader in =\n new BufferedReader(\n new InputStreamReader(\n pythonProcess.getInputStream(), StandardCharsets.UTF_8));\n LOG.info(\n \"--------------------------- Python Process Started --------------------------\");\n // print the python process output to stdout and log file\n final StringBuilder sb = new StringBuilder();\n try {\n while (true) {\n String line = in.readLine();\n if (line == null) {\n break;\n } else {\n System.out.println(line);\n sb.append(line);\n sb.append(\"\\n\");\n }\n }\n } finally {\n LOG.info(sb.toString());\n }\n int exitCode = pythonProcess.waitFor();\n LOG.info(\n \"--------------------------- Python Process Exited ---------------------------\");\n if (exitCode != 0) {\n throw new RuntimeException(\"Python process exits with code: \" + exitCode);\n }\n } catch (Throwable e) {\n LOG.error(\"Run python process failed\", e);\n\n if (PythonEnvUtils.capturedJavaException != null) {\n throw PythonEnvUtils.capturedJavaException;\n } else {\n // throw ProgramAbortException if the caller is interested in the program plan,\n // there is no harm to throw ProgramAbortException even if it is not the case.\n throw new ProgramAbortException(e);\n }\n } finally {\n PythonEnvUtils.setGatewayServer(null);\n if (shutdownHook != null && Runtime.getRuntime().removeShutdownHook(shutdownHook)) {\n shutdownHook.run();\n }\n }\n }", "title": "" }, { "docid": "865e58f8b38e738402b7aad497498701", "score": "0.49160442", "text": "IHostTestEnvironment getIHostTestEnvironment();", "title": "" }, { "docid": "d4b4671520435d9eec01e4b4a4bf3e8a", "score": "0.49144784", "text": "public static Environment getEnvironment() { return envObj; }", "title": "" }, { "docid": "2f3af7259a2855978953d6a0e2ef956e", "score": "0.49133942", "text": "com.google.cloud.bigquery.migration.v2.SourceEnv getSourceEnv();", "title": "" }, { "docid": "754345981497a2fbdf7bc76c4b7489c1", "score": "0.48925084", "text": "Object getComputeContext();", "title": "" }, { "docid": "304417f9b6e118c1a04c334396951e17", "score": "0.48719707", "text": "public static void main(String[] args) throws Exception {\n\t\tfinal StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n\t\tenv.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);\n\n\t\tString path = \"src/main/resources/gateway_logs.csv\";\n\t\tTextInputFormat format = new TextInputFormat(new Path(path));\n\n\t\t// Reading input data\n\t\tDataStream<String> inputStream = env.readFile(format, path, FileProcessingMode.PROCESS_CONTINUOUSLY, 100);\n\n\t\t// Obtaining useful DataStream from input data, which can be useful for further processing\n\t\tSingleOutputStreamOperator<String> filteredStream = inputStream.filter(new FilterInput());\n\n\t\tSingleOutputStreamOperator<GatewayLog> logStream = filteredStream.map(new MapToObjects());\n\n\t\t// Extracting event time and watermark\n\t\tDataStream<GatewayLog> withTimestampsAndWatermarks = logStream.assignTimestampsAndWatermarks(new ExtractTimeStampAndWatermark());\n\n\t\tKeyedStream<GatewayLog, String> keyedStreamSingleKey = withTimestampsAndWatermarks.keyBy(new PartitionStreamBySingleKey());\n\n\t\t//1 : Aggregate count of API calls made to the gateway service per minute\n\t\tDataStream<String> result1 = keyedStreamSingleKey.window(TumblingEventTimeWindows.of(Time.minutes(1))).apply(new CountServiceCalls());\n\t\tresult1.writeAsText(\"src/main/resources/countOfAPIPerMinute\");\n\n\t\t//2 : Aggregate count of API calls made to the gateway service every 5 minutes\n\t\tDataStream<String> result2 = keyedStreamSingleKey.window(TumblingEventTimeWindows.of(Time.minutes(5))).apply(new CountServiceCalls());\n\t\tresult2.writeAsText(\"src/main/resources/countOfAPIPer5Minutes\");\n\n\t\t// Key by multiple fields such as by microservice and type of HTTP API\n\t\tKeyedStream<GatewayLog, Tuple2<String, String>> keyedStreamByMultipleKeys = withTimestampsAndWatermarks.keyBy(new PartitionStreamByMultipleKeys());\n\n\t\t//3 : Aggregate count of API calls made to the service grouped by HTTP method per minute\n\t\tDataStream<String> result3 = keyedStreamByMultipleKeys.window(TumblingEventTimeWindows.of(Time.minutes(1))).apply(new CountServiceCallsGroupByMethod());\n\t\tresult3.writeAsText(\"src/main/resources/countOfAPIPerMinuteByHttpMethods\");\n\n\t\t//4 : Aggregate count of API calls made to the service grouped by HTTP method every 5 minutes\n\t\tDataStream<String> result4 = (DataStream<String>) keyedStreamByMultipleKeys.window(TumblingEventTimeWindows.of(Time.minutes(5))).apply(new CountServiceCallsGroupByMethod());\n\t\tresult4.writeAsText(\"src/main/resources/countOfAPIPer5MinutesByHttpMethods\");\n\n\t\t// execute program\n\t\tenv.execute(\"Gateway log reporting system\");\n\t}", "title": "" }, { "docid": "a70b23f060b0b4b3fd51626e8e1939d1", "score": "0.48696348", "text": "@Override\n public Object execute(Environment environment) {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "title": "" }, { "docid": "6a751fcf3e792f439d3790fd3ff1321a", "score": "0.4869248", "text": "public interface Environment {\n String getURL();\n}", "title": "" }, { "docid": "783efdaf98695f4b487bfe0ae896902c", "score": "0.48664823", "text": "public static void main(String[] args) throws Exception {\n System.out.println(\"This is hashim yousaf\");\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n\n\n //==============Simple FlatMap Function example========================\n// DataSource<Tuple1<String>> textLines = env.readCsvFile(\"src/ml-latest-small/short-movies.csv\")\n// .ignoreFirstLine()\n// .includeFields(false, false, true)\n// .parseQuotedStrings('\"')\n// .ignoreInvalidLines()\n// .types(String.class );\n//\n// DataSet<String> listOfGenre = textLines.flatMap(new FlatMapFunction<Tuple1<String>, String>() {\n// public void flatMap(Tuple1<String> value, Collector<String> collector) throws Exception {\n//\n// for (String token : value.toString().split(\"|\")) {\n// collector.collect(token);\n// }\n//\n// }\n// });\n// listOfGenre.print();\n\n\n //==============Simple Map Function example========================\n// DataSource<Tuple2<Integer, Integer>> intPairs = env.readCsvFile(\"src/ml-latest-small/short-ratings.csv\")\n// .ignoreFirstLine()\n// .includeFields(true, true, false, false)\n// .parseQuotedStrings('\"')\n// .ignoreInvalidLines()\n// .types(Integer.class, Integer.class);\n//\n// DataSet<Integer> intSums = intPairs.map(new IntAdder());\n// intSums.print();\n\n\n //==============WordCount with flapMap Example========================\n// DataSet<Tuple3<Long, String, String>> lines = env.readCsvFile(\"src/ml-latest-small/short-movies.csv\")\n// .ignoreFirstLine()\n// .parseQuotedStrings('\"')\n// .ignoreInvalidLines()\n// .types(Long.class, String.class, String.class);\n// lines.print();\n//\n//\n// DataSet<String> text = env.fromElements(\n// \"Who's there?\",\n// \"I think I hear them. Stand, ho! Who's there?\");\n// DataSet<Tuple2<String, Integer>> wordCounts = text\n// .flatMap(new LineSplitter())\n// .groupBy(0)\n// .sum(1);\n// wordCounts.print();\n }", "title": "" }, { "docid": "709eca28a2123dd649a3d7730e4b2a85", "score": "0.4865421", "text": "public LispEnv getEnv() {\n return environment;\n }", "title": "" }, { "docid": "62fbd8cf59fc594d22c03a0f9be4e7ff", "score": "0.486211", "text": "public Environmental target();", "title": "" }, { "docid": "4844507831a049ac04e01a2f7fd3890f", "score": "0.48380625", "text": "public abstract int eval(Environment env);", "title": "" }, { "docid": "67f2aaa3d9d8d45177dafb4f20cac0c7", "score": "0.48370865", "text": "public static void main(String[] args) throws Exception {\n final StreamExecutionEnvironment env = StreamExecutionEnvironment\n .getExecutionEnvironment();\n env.enableCheckpointing(5000); // checkpoint every 5000 msecs\n\n Properties properties = new Properties();\n properties.setProperty(\"bootstrap.servers\", \"ece1.adaltas.com:9093,ece2.adaltas.com:9093,ece3.adaltas.com:9093\");\n properties.setProperty(\"AdrienM\", \"testid\");\n\n\n FlinkKafkaConsumer011<String> myConsumer = new FlinkKafkaConsumer011<>(\"test\", new SimpleStringSchema(), properties);\n myConsumer.setStartFromEarliest(); // start from the earliest record possible\n //myConsumer.setStartFromLatest(); // start from the latest record\n //myConsumer.setStartFromTimestamp(...); // start from specified epoch timestamp (milliseconds)\n //myConsumer.setStartFromGroupOffsets(); // the default behaviour\n\n // get input data\n DataStream<String> kafka = env.addSource(myConsumer);\n\n /*\n Stream transformations\n */\n // < Entrée, Sortie >\n DataStream<WordWithCount> counts = kafka\n .flatMap(new LineSplitter())\n .keyBy(\"word\")\n .timeWindow(Time.seconds(10))\n .reduce(new CountReduce());\n }", "title": "" }, { "docid": "0da38ed01c8fe3543e7851d0b183c2f6", "score": "0.4834977", "text": "public void setEnvironment(Environment environment)\r\n/* 74: */ {\r\n/* 75:149 */ this.environment = environment;\r\n/* 76: */ }", "title": "" }, { "docid": "aec8651627f4b3bc90c690646a869d88", "score": "0.48190433", "text": "@Test\n public void testResources() throws Exception {\n StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n\n ResourceSpec minResource1 = ResourceSpec.newBuilder(1.0, 100).build();\n ResourceSpec preferredResource1 = ResourceSpec.newBuilder(2.0, 200).build();\n\n ResourceSpec minResource2 = ResourceSpec.newBuilder(1.0, 200).build();\n ResourceSpec preferredResource2 = ResourceSpec.newBuilder(2.0, 300).build();\n\n ResourceSpec minResource3 = ResourceSpec.newBuilder(1.0, 300).build();\n ResourceSpec preferredResource3 = ResourceSpec.newBuilder(2.0, 400).build();\n\n ResourceSpec minResource4 = ResourceSpec.newBuilder(1.0, 400).build();\n ResourceSpec preferredResource4 = ResourceSpec.newBuilder(2.0, 500).build();\n\n ResourceSpec minResource5 = ResourceSpec.newBuilder(1.0, 500).build();\n ResourceSpec preferredResource5 = ResourceSpec.newBuilder(2.0, 600).build();\n\n ResourceSpec minResource6 = ResourceSpec.newBuilder(1.0, 600).build();\n ResourceSpec preferredResource6 = ResourceSpec.newBuilder(2.0, 700).build();\n\n ResourceSpec minResource7 = ResourceSpec.newBuilder(1.0, 700).build();\n ResourceSpec preferredResource7 = ResourceSpec.newBuilder(2.0, 800).build();\n\n Method opMethod =\n SingleOutputStreamOperator.class.getDeclaredMethod(\n \"setResources\", ResourceSpec.class, ResourceSpec.class);\n opMethod.setAccessible(true);\n\n Method sinkMethod =\n DataStreamSink.class.getDeclaredMethod(\n \"setResources\", ResourceSpec.class, ResourceSpec.class);\n sinkMethod.setAccessible(true);\n\n DataStream<Long> source1 = env.generateSequence(0, 0);\n opMethod.invoke(source1, minResource1, preferredResource1);\n\n DataStream<Long> map1 =\n source1.map(\n new MapFunction<Long, Long>() {\n @Override\n public Long map(Long value) throws Exception {\n return null;\n }\n });\n opMethod.invoke(map1, minResource2, preferredResource2);\n\n DataStream<Long> source2 = env.generateSequence(0, 0);\n opMethod.invoke(source2, minResource3, preferredResource3);\n\n DataStream<Long> map2 =\n source2.map(\n new MapFunction<Long, Long>() {\n @Override\n public Long map(Long value) throws Exception {\n return null;\n }\n });\n opMethod.invoke(map2, minResource4, preferredResource4);\n\n DataStream<Long> connected =\n map1.connect(map2)\n .flatMap(\n new CoFlatMapFunction<Long, Long, Long>() {\n @Override\n public void flatMap1(Long value, Collector<Long> out)\n throws Exception {}\n\n @Override\n public void flatMap2(Long value, Collector<Long> out)\n throws Exception {}\n });\n opMethod.invoke(connected, minResource5, preferredResource5);\n\n DataStream<Long> windowed =\n connected\n .windowAll(GlobalWindows.create())\n .trigger(PurgingTrigger.of(CountTrigger.of(10)))\n .reduce(\n new ReduceFunction<Long>() {\n private static final long serialVersionUID = 1L;\n\n @Override\n public Long reduce(Long value1, Long value2) throws Exception {\n return null;\n }\n });\n opMethod.invoke(windowed, minResource6, preferredResource6);\n\n DataStreamSink<Long> sink = windowed.print();\n sinkMethod.invoke(sink, minResource7, preferredResource7);\n\n assertEquals(\n minResource1, getStreamGraph(env).getStreamNode(source1.getId()).getMinResources());\n assertEquals(\n preferredResource1,\n getStreamGraph(env).getStreamNode(source1.getId()).getPreferredResources());\n\n assertEquals(\n minResource2, getStreamGraph(env).getStreamNode(map1.getId()).getMinResources());\n assertEquals(\n preferredResource2,\n getStreamGraph(env).getStreamNode(map1.getId()).getPreferredResources());\n\n assertEquals(\n minResource3, getStreamGraph(env).getStreamNode(source2.getId()).getMinResources());\n assertEquals(\n preferredResource3,\n getStreamGraph(env).getStreamNode(source2.getId()).getPreferredResources());\n\n assertEquals(\n minResource4, getStreamGraph(env).getStreamNode(map2.getId()).getMinResources());\n assertEquals(\n preferredResource4,\n getStreamGraph(env).getStreamNode(map2.getId()).getPreferredResources());\n\n assertEquals(\n minResource5,\n getStreamGraph(env).getStreamNode(connected.getId()).getMinResources());\n assertEquals(\n preferredResource5,\n getStreamGraph(env).getStreamNode(connected.getId()).getPreferredResources());\n\n assertEquals(\n minResource6,\n getStreamGraph(env).getStreamNode(windowed.getId()).getMinResources());\n assertEquals(\n preferredResource6,\n getStreamGraph(env).getStreamNode(windowed.getId()).getPreferredResources());\n\n assertEquals(\n minResource7,\n getStreamGraph(env)\n .getStreamNode(sink.getTransformation().getId())\n .getMinResources());\n assertEquals(\n preferredResource7,\n getStreamGraph(env)\n .getStreamNode(sink.getTransformation().getId())\n .getPreferredResources());\n }", "title": "" }, { "docid": "f6f2201abb9095613904f410c1263131", "score": "0.48092005", "text": "public static void main(String[] args) throws Exception {\n StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n env.setStreamTimeCharacteristic(TimeCharacteristic.ProcessingTime);\n\n // setup kafka source\n Properties properties = new Properties();\n properties.setProperty(\"bootstrap.servers\", \"localhost:9092\");\n properties.setProperty(\"zookeeper.connect\", \"localhost:2181\");\n properties.setProperty(\"group.id\", \"flink\");\n FlinkKafkaConsumer08<ObjectNode> kafkaSource = new FlinkKafkaConsumer08<>(\n \"mytopic\",\n new JSONKeyValueDeserializationSchema(false),\n properties\n );\n kafkaSource.setStartFromEarliest();\n\n // consume date from kafka and apply watermarks\n DataStream<ObjectNode> stream = env\n .addSource(kafkaSource)\n .assignTimestampsAndWatermarks(new IngestionTimeExtractor<>());\n\n // take windows stream and mutate, avgerage and write to Elasticsearch\n DataStream<Tuple2<String, Double>> aggregation = stream\n .flatMap(new Extractor())\n // key stream by symbol\n .keyBy(0)\n .window(TumblingProcessingTimeWindows.of(Time.seconds(10)))\n\n // consume keyed window and output the avgerage sales price\n .apply(new WindowFunction<Tuple2<String, Double>, Tuple2<String, Double>, Tuple, TimeWindow>() {\n @Override\n public void apply(Tuple tuple, TimeWindow timeWindow, Iterable<Tuple2<String, Double>> values, Collector<Tuple2<String, Double>> out) throws Exception {\n double sum = 0.0;\n int count = 0;\n String symbol = \"\";\n for (Tuple2<String, Double> value : values) {\n sum += value.f1;\n symbol = value.f0;\n count++;\n }\n\n double avg = sum / count;\n\n double roundOff = Math.round(avg * 1000.0) / 1000.0;\n\n out.collect(new Tuple2<String, Double>(symbol, roundOff));\n }\n });\n\n // print\n aggregation.print();\n\n /*\n Elasticsearch Configuration\n */\n List<HttpHost> httpHosts = new ArrayList<>();\n httpHosts.add(new HttpHost(\"127.0.0.1\", 9200, \"http\"));\n\n // use a ElasticsearchSink.Builder to create an ElasticsearchSink\n ElasticsearchSink.Builder<Tuple2<String, Double>> esSinkBuilder = new ElasticsearchSink.Builder<>(\n httpHosts,\n new ElasticsearchSinkFunction<Tuple2<String, Double>>() {\n private IndexRequest createIndexRequest(Tuple2<String, Double> node) {\n\n JSONObject obj = new JSONObject();\n obj.put(\"symbol\", node.f0);\n obj.put(\"price\", node.f1);\n\n return Requests.indexRequest()\n .index(\"avg-price\")\n .type(\"trade\")\n .source(obj.toString(), XContentType.JSON);\n }\n\n @Override\n public void process(Tuple2<String, Double> node, RuntimeContext ctx, RequestIndexer indexer) {\n indexer.add(createIndexRequest(node));\n }\n }\n );\n\n // set number of events to be seen before writing to Elasticsearch\n esSinkBuilder.setBulkFlushMaxActions(1);\n\n // finally, build and add the sink to the job's pipeline\n aggregation.addSink(esSinkBuilder.build());\n\n // run job\n env.execute(\"Avg Sale Price\");\n }", "title": "" }, { "docid": "9fc388592aec91431617adf5a9baccb7", "score": "0.48089346", "text": "public Environment getCurrentEnvironment() {\n return env;\n }", "title": "" }, { "docid": "0de16d5dbab2cf6e23f3f05c068b725e", "score": "0.47961795", "text": "public final Environment getEnvironment() {\n\n return env;\n }", "title": "" }, { "docid": "ddf829e60e74f5f5ab8f003f12e10ea9", "score": "0.4783146", "text": "public void environmentChanged( IProject project );", "title": "" }, { "docid": "071fcd25ba3fed813e6b98a8bf104310", "score": "0.47828105", "text": "EngineFactory getEngineFactory();", "title": "" }, { "docid": "526ffaa768642b8f26f4e8344e7ca18c", "score": "0.47621804", "text": "public Environment() {\n }", "title": "" }, { "docid": "974461a5ae19a636221fafd9542569e6", "score": "0.47607374", "text": "public ParallelEnvironment getParallelEnvironment() {\n return parallelEnvironment;\n }", "title": "" }, { "docid": "ba54eff6cdcc800464f81339b75726af", "score": "0.47449666", "text": "Experiment createExperiment();", "title": "" }, { "docid": "80f847bd37bf0099b538abc471473367", "score": "0.4739457", "text": "KieSession newKieSession(Environment environment, KieSessionConfiguration conf);", "title": "" }, { "docid": "daeb3829202bb2548b85356e6622e3e2", "score": "0.4730642", "text": "@Test\n //获取环境变量\n public void getEnv() {\n System.out.println(System.getenv());\n System.out.println(System.getenv(\"PATH\"));\n }", "title": "" }, { "docid": "2ae251096e7cdc9b4f079d63f3e876d6", "score": "0.47200072", "text": "Flow getFlow();", "title": "" }, { "docid": "2ae251096e7cdc9b4f079d63f3e876d6", "score": "0.47200072", "text": "Flow getFlow();", "title": "" }, { "docid": "5fd359f4203491c5cc15583a46d5c387", "score": "0.47147754", "text": "public interface Function {\n\n /**\n * Return function name\n *\n * @return function name\n */\n String getName();\n\n /**\n * This method will be run when Histone evaluate function<br/>\n *\n * @param args arguments from Histone template\n * @return result as one of Histone types\n * @throws FunctionExecutionException if your function stops with error and you need to put details into log, then you should use this exception\n */\n CompletableFuture<EvalNode> execute(String baseUri, List<EvalNode> args) throws FunctionExecutionException;\n\n /**\n * @return\n */\n boolean isAsync();\n\n /**\n * @return\n */\n boolean isClear();\n}", "title": "" }, { "docid": "cdeb766f7cdcdd7dc1a1483c753fbae6", "score": "0.47135153", "text": "public Program getProgram();", "title": "" }, { "docid": "8d0ec7e626e88fc17683b4bcaf5c5ed8", "score": "0.47078836", "text": "public EnvAndroid getEnv() \n {\n return env;\n }", "title": "" }, { "docid": "a7cd8215c73e3bfd5e756a4b35b60af5", "score": "0.46962252", "text": "KieSession newKieSession();", "title": "" }, { "docid": "c1c75b541db8c0c625d5c9dd09c26c3c", "score": "0.46936122", "text": "@Override\n ImmutableMap<String, String> getEnvironment();", "title": "" }, { "docid": "f3b225b851712e1ff8f6dfac41dc3f4a", "score": "0.46803892", "text": "public Configuration getEnvironment() {\n return _environment;\n }", "title": "" }, { "docid": "ad3af39243f1c7c748b329fc31332e89", "score": "0.466875", "text": "protected FlowArtifactFactory getFlowArtifactFactory() {\n \t\treturn getLocalContext().getFlowArtifactFactory();\n \t}", "title": "" }, { "docid": "ad2b92c2f89e52104c15aaced7131fa5", "score": "0.46626046", "text": "public interface FlowChartOptimizer {\r\n \r\n String getTitle();\r\n \r\n DecisionGraph optimize( DecisionGraph fcs );\r\n \r\n}", "title": "" }, { "docid": "e4182fc8e819e75a91db8764f7c2f371", "score": "0.46551907", "text": "private static StreamGraph getStreamGraph(StreamExecutionEnvironment sEnv) {\n return sEnv.getStreamGraph(false);\n }", "title": "" }, { "docid": "ba1ca3740fb96171cd7ea01b4ba42847", "score": "0.46537495", "text": "public TaskExecutor getTaskExecutor();", "title": "" }, { "docid": "53ae5856bb4f5c67f198bd8955a73a20", "score": "0.4647183", "text": "public EnvironmentInfo getEnvironmentInfo();", "title": "" }, { "docid": "10affc12452b07eeeb11c2b25a5895f0", "score": "0.4635829", "text": "public void setExecution(Execution execution) { this.execution = execution; }", "title": "" }, { "docid": "c459e3ef350de8291b0c86cd63dd3358", "score": "0.4624751", "text": "public static void main(String[] args) throws Exception {\n StreamExecutionEnvironment env =\n StreamExecutionEnvironment.getExecutionEnvironment();\n\n env.setParallelism(1);\n\n // 需要使用 Event Time 做处理\n env.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);\n\n // 读取数据源\n DataStream<String> carData = env\n .readTextFile(DataFilePath.CAR_EVENT_OUTOFORDER_PATH);\n\n // 字符串转成 ConnectedCarEvent\n DataStream<ConnectedCarEvent> events = carData\n .map((String line) -> ConnectedCarEvent.fromString(line))\n .assignTimestampsAndWatermarks(new ConnectedCarAssigner());\n\n // 对每一辆车事件按照 event time 排序\n SingleOutputStreamOperator<ConnectedCarEvent> sortedEvents = events\n .keyBy(ConnectedCarEvent::getCarId)\n .process(new EventSortFunction());\n\n sortedEvents.getSideOutput(EventSortFunction.outputTag).print();\n //sortedEvents.print();\n\n env.execute(\"CarEventSort\");\n }", "title": "" }, { "docid": "e066728ff9271cafa80156a2987dc481", "score": "0.46200523", "text": "Executor asExecutor();", "title": "" }, { "docid": "b19e6cc6203b20b96ef9c754b2c44e5d", "score": "0.46191794", "text": "public interface ITask {\n\n void execuuite(TaskExecutionContext ctx);\n}", "title": "" }, { "docid": "32165057b0c1b5f81731eaf1064ea2f5", "score": "0.4618879", "text": "RunTarget getRunTarget();", "title": "" }, { "docid": "5bf9021ba38782a0d62973b2a8b884ed", "score": "0.46165058", "text": "@Test\n public void flowgraphbuilder_0187() throws Exception {\n Misc.init();\n Misc.captureSystemOutput();\n String[] args = {\"test/flowgraphbuilder/flowgraph_builder0187.js\"};\n Misc.run(args);\n// Misc.checkSystemOutput();\n }", "title": "" }, { "docid": "112176a1fcefd42220229d38900d0387", "score": "0.4616146", "text": "JobflowProcessor.Context getRoot();", "title": "" }, { "docid": "15b3d4e3b9934f0bc526d472fc5a99f0", "score": "0.4613187", "text": "public String getEnvironment() {\r\n return issue.getEnvironment();\r\n }", "title": "" }, { "docid": "348d6116152cc09efd6cebd7d2d80c55", "score": "0.46024498", "text": "public static void main(String[] args) throws Exception {\n\t\tfinal StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();\n\t\tenv.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);\n\t\tStreamTableEnvironment tableEnv = StreamTableEnvironment.create(env);\n\n\t\tenv.setParallelism(4);\n\n\t\t// kafka configuration\n\t\tProperties properties = new Properties();\n\t\tproperties.setProperty(\"bootstrap.servers\", \"localhost:9092\");\n\n\n\t\t// DataStream from client topics\n\t\tDataStream<Client> clients = env\n\t\t\t\t.addSource(new FlinkKafkaConsumer<>(\"clientes\", new SimpleStringSchema(), properties))\n\t\t\t\t.map(new StringToClient())\n\t\t\t\t.assignTimestampsAndWatermarks(new ClientTimestamp());\n\n\t\ttableEnv.registerDataStream(\"Clientes\", clients, \"id_client, name, last_name, ts, UserActionTime.rowtime\");\n\n\n\t\t// DataStream from Cli-Prod topics\n\t\tDataStream<CliProd> cli_prods = env\n\t\t\t\t.addSource(new FlinkKafkaConsumer<>(\"cli_prod\", new SimpleStringSchema(), properties))\n\t\t\t\t.map(new StringToCliProd())\n\t\t\t\t.assignTimestampsAndWatermarks(new CliProTimestamp());\n\t\t\t\t//.keyBy(e -> e.id_client);\n\n\t\ttableEnv.registerDataStream(\"CliProd\", cli_prods, \"id_client, id_product, ts, UserActionTime.rowtime\");\n\n\n\t\t// DataStream from Products topics\n\t\tDataStream<Product> products = env\n\t\t\t\t.addSource(new FlinkKafkaConsumer<>(\"productos\", new SimpleStringSchema(), properties))\n\t\t\t\t.map(new StringToProduct())\n\t\t\t\t.assignTimestampsAndWatermarks(new ProductTimestamp());\n\t\t\t\t//.keyBy(e -> e.id_product);\n\n\t\ttableEnv.registerDataStream(\"Productos\", products, \"id_product, name, description, ts, UserActionTime.rowtime\");\n\n\n\t\tString sql= \"SELECT c.id_client, c.name, cp.id_product, p.name, p.description, c.ts, cp.ts, p.ts \" +\n\t\t\t\t\t\"FROM Clientes c JOIN CliProd cp ON c.id_client = cp.id_client \" +\n\t\t\t\t\t\t\t\t\t\"JOIN Productos p ON cp.id_product = p.id_product\";\n\n\n\t\tTable result = tableEnv.sqlQuery(sql);\n\n\n\t\t// convert the Table into a retract DataStream of Row.\n\t\t// A retract stream of type X is a DataStream<Tuple2<Boolean, X>>.\n\t\t// The boolean field indicates the type of the change.\n\t\t// True is INSERT, false is DELETE.\n\n\t\tDataStream<Tuple2<Boolean, Row>> sql_result = tableEnv.toRetractStream(result, Row.class);\n\n\t\t//sql_result\n\t\t//\t\t.filter(t -> t.f0==true)\n\t\t//\t\t.map (t -> t.f1)\n\t\t//\t\t.print();\n\t\tsql_result.print();\n\n\n\t\t/*\n\t\t// DataStream from client products. Broadcas since no many changes are expected.\n\t\tMapStateDescriptor<Long, Product> rulesStateDescriptor = new MapStateDescriptor<Long, Product>(\n\t\t\t\t\"ProductsBroadcastState\",\n\t\t\t\tLong.class,\n\t\t\t\tProduct.class\n\t\t);\n\t\tBroadcastStream<Product> products = env\n\t\t\t\t.addSource(new FlinkKafkaConsumer<>(\"productos\", new SimpleStringSchema(), properties))\n\t\t\t\t.map(new StringToProduct())\n\t\t\t\t.assignTimestampsAndWatermarks(new ProductTimestamp())\n\t\t\t\t.broadcast(rulesStateDescriptor);\n\n\n\t\t// Improvement 1: serialize from kafka to DataModel in the FlinkKafkaConsumer\n\n\n\t\t// Connect Client and Cli-Prod streams to create ClientExtended view\n\t\tDataStream<ClientExtended> clientsExtended= clients.connect(cli_prods)\n\t\t\t\t.keyBy(\"id_client\", \"id_client\")\n\t\t\t\t.flatMap(new CoFlatMapClientExtended());\n\n\t\t// Connect ClienteExtended with Product streams to create final ClientCache view\n\t\tDataStream<ClientCache> clientcache= clientsExtended\n\t\t\t\t.keyBy(\"id_client\")\n\t\t\t\t.connect(products)\n\t\t\t\t.process(new BroadCastClientCache());\n\n\n\n\t\t// Sink to Redis\n\t\tFlinkJedisPoolConfig conf = new FlinkJedisPoolConfig.Builder().setHost(\"127.0.0.1\").build();\n\t\tclientcache.addSink(new RedisSink<ClientCache>(conf, new RedisClientCache()));\n\n\t\tclientcache.print();\n\n*/\n\n\n\t\t// execute program\n\t\tenv.execute(\"Flink IVR Cache\");\n\t}", "title": "" }, { "docid": "072fe0c69193aaa948939f38dff8073a", "score": "0.46012518", "text": "public void setup() {\n }", "title": "" }, { "docid": "dd2ea3234c4760cc3ad662a86f57edcc", "score": "0.4592689", "text": "private RuntimeContext getRuntimeContext() {\r\n\t\treturn runtimeContext;\r\n\t}", "title": "" }, { "docid": "048c2ccf2bf4dfcaac45d9963de09f01", "score": "0.45881453", "text": "private HwRunEnv getEnv() {\n HwRunEnv runEnv = UEnum.match(HwRunEnv.class, runEnv_name, false);\n return runEnv;\n }", "title": "" }, { "docid": "bfdea0a60312b2cff60c55b11ee31d64", "score": "0.45847756", "text": "public Environmental tool();", "title": "" }, { "docid": "0bdc466543fe265fd910dc86f5c28a03", "score": "0.45773515", "text": "double getValue(InputEnvironment env);", "title": "" }, { "docid": "5b1cee5af9da11cac3213e03fc463903", "score": "0.45684966", "text": "public PureList<Binding> env() { return env; }", "title": "" }, { "docid": "bca0095e5ac5a87d0be0410a2dde063e", "score": "0.45633417", "text": "public ExecutionElementElements getExecutionElementAccess() {\n\t\treturn pExecutionElement;\n\t}", "title": "" }, { "docid": "91d007b0fe6a6a607f44a8ea7021da63", "score": "0.45557076", "text": "public EnvironmentType getEnvironmentType();", "title": "" }, { "docid": "a38f5db19cab7b73d0bae7f8e22288ea", "score": "0.45527306", "text": "public static void main(String[] args) throws Exception {\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n // get input data\n long s1 = System.currentTimeMillis();\n String filePath = \"/Users/sub/Desktop/Flink/考研词频实验/2013-2019英一/2013-2019英一.txt\";\n //String filePath = \"/Users/sub/Desktop/timemaster.txt\";\n DataSet<String> text = env.readTextFile(filePath);\n long s2 = System.currentTimeMillis();\n DataSet<Tuple4<String,Integer,String,String>> result = text.flatMap(new WordNLP())\n .groupBy(0)\n .sum(1)\n .sortPartition(0, Order.ASCENDING)\n .setParallelism(1);\n //result.writeAsText(\"/Users/sub/Desktop/timemastersum.txt\").setParallelism(1);\n result.print();\n }", "title": "" }, { "docid": "f4b9a11db47e0f59d3ae95315225bb05", "score": "0.4545743", "text": "public static void setup() {\n \r\n }", "title": "" }, { "docid": "42595c16b52ead90f37da6b902de4be4", "score": "0.45446754", "text": "public ExecutionPlanElements getExecutionPlanAccess() {\n\t\treturn pExecutionPlan;\n\t}", "title": "" }, { "docid": "aa8ed75e6a47ea462ef35daea6f6d482", "score": "0.4542939", "text": "AppServiceEnvironmentResource.DefinitionStages.Blank defineHostingEnvironment(String name);", "title": "" }, { "docid": "f0ecf1bb090b80b77a32ac25ebd1f637", "score": "0.45393613", "text": "public void setup(){\n\t}", "title": "" }, { "docid": "2b68921e4d11b43f483d67b2226b454b", "score": "0.4539006", "text": "private DefaultEnvironmentFactory () \n {\n }", "title": "" }, { "docid": "7bf1a0c21278fe9f1c2568a7ad6096af", "score": "0.45338723", "text": "public void setEnvironment(String environment) {\n this.environment = environment;\n }", "title": "" }, { "docid": "dfab829957cc75ccddaa95d7760d447b", "score": "0.45279223", "text": "public String getEnv() {\n return env;\n }", "title": "" }, { "docid": "dc59f4785fb24b33907db4bc432cb45f", "score": "0.4526401", "text": "@FunctionalInterface\npublic interface Evaluable {\n\n /**\n * call this node\n *\n * @param context context =>\n * @return the result name\n */\n Object eval(JustContext context);\n}", "title": "" }, { "docid": "166d9a2df866279528e5ee2ea8d8093e", "score": "0.45158952", "text": "public DataFlow() {}", "title": "" }, { "docid": "ca94a6a75cd44d8afe764b2d618c29bd", "score": "0.45106378", "text": "ExecutorService mo38944a();", "title": "" }, { "docid": "648705e9721cb0f9d784b4e677748054", "score": "0.44935748", "text": "@Test\n public void testJobManagerInitializationExceptionsAreForwardedToTheUser() {\n // we must use the LocalStreamEnvironment to reproduce this issue.\n // It passes with the TestStreamEnvironment (which is initialized by the\n // MiniClusterResource). The LocalStreamEnvironment is polling the JobManager for the job\n // status, while TestStreamEnvironment is waiting on the resultFuture.\n StreamExecutionEnvironment see = StreamExecutionEnvironment.createLocalEnvironment();\n\n Source<String, MockSplit, Void> mySource = new FailOnInitializationSource();\n DataStream<String> stream =\n see.fromSource(mySource, WatermarkStrategy.noWatermarks(), \"MySourceName\");\n stream.addSink(new DiscardingSink<>());\n\n try {\n see.execute();\n } catch (Exception e) {\n assertThat(e, containsMessage(\"Context was not yet initialized\"));\n }\n }", "title": "" }, { "docid": "e4d09d55d075c43fb65b81e7c1bd36cd", "score": "0.4491416", "text": "void runAsIsolatedTask();", "title": "" }, { "docid": "f769cd36aef7d02e38c12487f5298e39", "score": "0.44905722", "text": "ubii.processing.ProcessingModuleOuterClass.ProcessingMode.TriggerOnInput getTriggerOnInput();", "title": "" }, { "docid": "d25bb707339005a13c4ca672a9617abd", "score": "0.44882372", "text": "@Given(\"prepare to Determine the application's susceptibility to Flash injection\")\npublic void predeterminetheapplicationssusceptibilitytoflashinjection(){\n}", "title": "" }, { "docid": "092b6968b5f6cb19513c7d1482b7e933", "score": "0.4486691", "text": "public int getEnvironmentClass(){\r\n return exampleAction[currentExample];\t\r\n }", "title": "" } ]
42f21c821f55874884bcfa16dfaa74d8
Get the ticket with a specific flight and row and seat in the plane .
[ { "docid": "8d5b81169d5504b84aea033be1c7e4eb", "score": "0.72192", "text": "default Ticket getTicket(Integer flight, Integer row, Character seat) {\r\n\t\treturn findById(new TicketIdentity(flight, row, seat)).orElse(null);\r\n\t}", "title": "" } ]
[ { "docid": "d51ff60f84f72633a2eec8f91bff30dc", "score": "0.61896706", "text": "@RequestMapping(value = \"/tickets/{airline_id}\",\n\t\t\tmethod = RequestMethod.GET,\n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\t\t\t\n\tpublic ResponseEntity<?> getAllAirlineFlightTicket(\n\t\t\t@PathVariable Long airline_id,\n\t\t\t@RequestParam(name=\"isFastReservation\", required = false) Boolean isFastReservation,\n\t\t\tPageable pageRequest){\n\t\t List<FlightTicket> flightTickets = new ArrayList<>();\n\t\t try {\n\t\t\t flightTickets = flightTicketService.findAllByFlight_Airline_Id(airline_id,pageRequest);\n\t\t }\n\t\t catch(EntityNotFoundException e) {\n\t\t\t return new ResponseEntity<>(new StringJSON(\"Flight ticket not found\"), HttpStatus.NOT_FOUND);\n\t\t }\n\t\t \n\t\t List<FlightTicketDTO> flightTicketDTOs = new ArrayList<>();\n\t\t \n\t\t for (FlightTicket flightTicket : flightTickets) {\n\t\t\tFlightTicketDTO flightTicketDTO = flightTicketService.convertToDTO(flightTicket);\n\t\t\tflightTicketDTOs.add(flightTicketDTO);\n\t\t }\n\t\t \n\t\t return new ResponseEntity<>(flightTicketDTOs, HttpStatus.NOT_FOUND);\n\n\t}", "title": "" }, { "docid": "2cf5bd615faaa14b8267e8c6ec5e3651", "score": "0.6093905", "text": "@RequestMapping(value = \"/tickets/{flight_id}\",\n\t\t\tmethod = RequestMethod.GET,\n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\t\t\t\n\tpublic ResponseEntity<?> getAllFlightTicketFromOneFlight(\n\t\t\t@PathVariable Long flight_id,\n\t\t\t@RequestParam(name=\"isFastReservation\", required = false) Boolean isFastReservation,\n\t\t\tPageable pageRequest)\n\t\n\t{\n\t\t Page<FlightTicket> flightTickets;\n\t\t try {\n\t\t\t flightTickets = flightTicketService.findAllByFlight_Id(flight_id, pageRequest);\n\t\t }\n\t\t catch(EntityNotFoundException e) {\n\t\t\t return new ResponseEntity<>(new StringJSON(\"Flight ticket not found\"), HttpStatus.NOT_FOUND);\n\t\t }\n\t\t \n\t\t List<FlightTicketDTO> flightTicketDTOs = new ArrayList<>();\n\t\t for (FlightTicket flightTicket : flightTickets) {\n\t\t\tFlightTicketDTO flightTicketDTO = flightTicketService.convertToDTO(flightTicket);\n\t\t\tflightTicketDTOs.add(flightTicketDTO);\n\t\t }\n\t\t\t \n\t\t Page<FlightTicketDTO> ret= new PageImpl<>(flightTicketDTOs, pageRequest, flightTickets.getTotalElements());\n\t\t return ResponseEntity.ok(ret);\n\t\t //return new ResponseEntity<>(flightTicketDTOs, HttpStatus.NOT_FOUND);\n\t}", "title": "" }, { "docid": "dad21b4de9ab0b15203810521bedf076", "score": "0.60320884", "text": "public Tickets(String ticket, String flight,String regularTickets, String touristTickets){\r\n\t\tthis.ticket = ticket;\r\n\t\tthis.flight = flight;\r\n\t\tthis.regularTickets = regularTickets;\r\n\t\tthis.touristTickets = touristTickets;\r\n\t}", "title": "" }, { "docid": "7854ee47085b70093028adc9deb63bab", "score": "0.59103626", "text": "Ticket findByTripIdAndPassenger(Integer tripId, Passenger passenger);", "title": "" }, { "docid": "b08a21eba53d9ce3796b34b682c2a929", "score": "0.5881129", "text": "public Flight getFlight(String flight_id){\n\t\tFlight oneFlight = null;\n\t\tString oneLine = \"\";\n\t\t\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(scheduleFile));\n\t\t\twhile((oneLine = reader.readLine()) != null){\n\t\t\t\t\n\t\t\t\tString [] words = oneLine.split(\",\");\n\t\t\t\t\n\t\t\t\tString tmpFlightId = words[1];\t\n\t\t\t\tif(tmpFlightId.equals(flight_id)){\n\t\t\t\t\tint tmpPlaneID = Integer.parseInt(words[2]);\t\t\t\t\n\t\t\t\t\tint tmpRouteNum = Integer.parseInt(words[3]);\n\t\t\t\t\tint fcSeat = Integer.parseInt(words[6]);\n\t\t\t\t\tint bcSeat = Integer.parseInt(words[7]);\n\t\t\t\t\tint pecSeat = Integer.parseInt(words[8]);\n\t\t\t\t\tint ecSeat = Integer.parseInt(words[9]);\n\t\t\t\t\toneFlight = new Flight(flight_id,tmpPlaneID,tmpRouteNum,words[4],words[5],fcSeat,bcSeat,pecSeat,ecSeat);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treader.close();\n\t\t}catch(Exception e){e.printStackTrace();\n\t\t\t \n\t\t}\n\t\t\n\t\treturn oneFlight;\n\t}", "title": "" }, { "docid": "bf08128e831bb1463e539c162f59a39b", "score": "0.584554", "text": "Ticket createTicket(Client client, Flight flight);", "title": "" }, { "docid": "16fdf4d8c0dffd3807eff3d74356dfbf", "score": "0.5822243", "text": "public boolean ReserveTicket(Reservation plan){\n\t\tURL url;\n\t\tHttpURLConnection connection;\n\t\tFlightPlan outgoing = plan.getOutgoingFlight();\n\t\tString xmlflights = \"<Flights>\";\n\t\tString seattype;\n\n\t\t\n\t\tString flightnum = \"\";\n\t\t\n\t\t// Create xml string for flight reservation <Flights> <Flight number=DDDDD seating=SEAT_TYPE/> <Flight number=DDDDD seating=SEAT_TYPE/> </Flights>\n\n\t\t//Create string for reserving outgoing flights\n\t\tfor (int i=0; i < outgoing.getNumberLegs(); i++){\n\t\t\t//if the seat type for the flight is coach specify \"SEAT_TYPE \"Coach\"\n\t\t\tif ((outgoing.getLegs().get(i).getSeatType() == 'C') | (outgoing.getLegs().get(i).getSeatType() == 'c') ){\n\t\t\t\tseattype = \"Coach\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//if the seat type for the flight is firstclass sepcify \"SEAT_TYPE \"FirstClass\"\n\t\t\t\tseattype = \"FirstClass\";\n\t\t\t}\n\t\t\t//if the flight number is less than four digits pad to the left with zeros\n\t\t\tflightnum = Integer.toString(outgoing.getLegs().get(i).getForFlight().getFlightNumber());\n\t\t\twhile (flightnum.length() < 4){\n\t\t\t\tflightnum = \"0\" + flightnum;\n\t\t\t}\n\t\t\t//<Flight number=DDDDD seating=SEAT_TYPE/>\n\t\t\txmlflights = xmlflights + \"<Flight number=\\\"\" + flightnum + \"\\\" seating=\\\"\" + seattype + \"\\\"/>\";\n\t\t\t\n\t\t}\n\t\t//create string for reserving incoming flights if roundtrip\n\t\tif (plan.getIsRoundTrip()){\n\t\t\tSystem.out.println(\"Is round trip\");\n\t\t\tFlightPlan incoming = plan.getReturningFlight();\n\t\t\tfor (int i=0; i < incoming.getNumberLegs(); i++){\n\t\t\t\t//if the seat type for the flight is coach specify \"SEAT_TYPE \"Coach\"\n\t\t\t\tif ((incoming.getLegs().get(i).getSeatType() == 'c') | (incoming.getLegs().get(i).getSeatType() == 'C') ){\n\t\t\t\t\tseattype = \"Coach\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//if the seat type for the flight is firstclass sepcify \"SEAT_TYPE \"FirstClass\"\n\t\t\t\t\tseattype = \"FirstClass\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//if the flight number is less than four digits pad to the left with zeros\n\t\t\t\tflightnum = Integer.toString(incoming.getLegs().get(i).getForFlight().getFlightNumber());\n\t\t\t\twhile (flightnum.length() < 4){\n\t\t\t\t\tflightnum = \"0\" + flightnum;\n\t\t\t\t}\n\t\t\t\txmlflights = xmlflights + \"<Flight number=\\\"\" + flightnum + \"\\\" seating=\\\"\" + seattype+ \"\\\"/>\";\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(xmlflights);\n\t\txmlflights = xmlflights + \"</Flights>\";\n\t\t\n\t\tSystem.out.print(xmlflights);\n\t\t\n\t\n\t\ttry {\n\t\t\t//connect to server\n\t\t\turl = new URL(ServerLocation);\n\t\t\tconnection = (HttpURLConnection) url.openConnection();\n\t\t\t\n\t\t\t//POST command will be used to request reservation\n\t\t\tconnection.setRequestMethod(\"POST\");\n\t\t\tconnection.setRequestProperty(\"User-Agent\", TeamName);\n\t\t\tconnection.setRequestProperty(\"Accept-Language\", \"en-US,en;q=0.5\");\n\t\t\t\n\t\t\t//create server request to reserve seat\n\t\t\tString params = QueryFactory.reserveSeat(TeamName, xmlflights);\n\t\t\t\n\t\t\t//send request\n\t\t\tconnection.setDoOutput(true);\n\t\t\tDataOutputStream writer = new DataOutputStream(connection.getOutputStream());\n\t\t\twriter.writeBytes(params);\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t\t\n\t\t\t//get response \n\t\t\tint responseCode = connection.getResponseCode();\n\t\t\tSystem.out.println(\"\\nSending 'POST' to reserve ticket\");\n\t\t\tSystem.out.println((\"\\nResponse Code : \" + responseCode));\n\t\t\t\n\t\t\t//if server responds with an error inform the user\n\t\t\tif (responseCode >=300) {\n\t\t\t\tif (responseCode == 304){\n\t\t\t\t\tSystem.out.println(\"Your seat could not be reserved because there are no seats of that seat type left on at least one leg of the flight.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse if (responseCode == 413) {\n\t\t\t\t\tSystem.out.println(\"Your seat could not be reserved because of an error. The database was not locked before request.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Your seat could not be reserved because of an error.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//server responded with code between 200 and 300, ticket has been reserved\n\t\t\tSystem.out.println(\"Your ticket has been reserved!\");\n\t\t\t\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "9d1ec1a4c4e7f9689ab54cbf5c348854", "score": "0.58099586", "text": "public Ticket(String pnr,String from,String to,String departureDateTime,String arrivalDateTime,String seatNo,float price,Flight flight,Passenger passenger){\n this.pnr=pnr;\n this.from=from;\n this.to=to;\n this.departureDateTime=departureDateTime;\n this.arrivalDateTime=arrivalDateTime;\n this.seatNo=seatNo;\n this.price=price;\n this.cancelled=false;\n this.flight=flight;\n this.passenger=passenger;\n }", "title": "" }, { "docid": "64293300f451ae8723025e056884b1b6", "score": "0.580535", "text": "public Ticket selectTicket(int id);", "title": "" }, { "docid": "301f5d4289a656b086490ab4a9981264", "score": "0.5791296", "text": "public static List<Reservation> getReservations(Flight c) {\r\n\r\n\t\tList<Reservation> res = new ArrayList<>();\r\n\r\n\t\tString query = \"SELECT distinct l.ResrId, r.seatNo, r.meal, r.class , l.FlightId, \"\r\n\t\t\t\t+ \"l.AirlineId, r.PassengerId, r.departure, r.arrival \" + \"from reservation r, legs l \"\r\n\t\t\t\t+ \"where l.FlightId=? And r.Id = l.ResrId\";\r\n\r\n\t\ttry {\r\n\t\t\tcurrentCon = ConnectionManager.getConnection();\r\n\t\t\tps = currentCon.prepareStatement(query);\r\n\r\n\t\t\tps.setInt(1, c.getId());\r\n\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tReservation r = new Reservation();\r\n\t\t\t\tr.setResrId(rs.getInt(1));\r\n\t\t\t\tr.setSeatNo(rs.getString(2));\r\n\t\t\t\tr.setMeal(rs.getString(3));\r\n\t\t\t\tr.setClassType(rs.getString(4));\r\n\t\t\t\tr.setFlightNo(rs.getInt(5));\r\n\t\t\t\tr.setAirlineId(rs.getString(6));\r\n\t\t\t\tr.setDept(rs.getString(8));\r\n\t\t\t\tr.setArri(rs.getString(9));\r\n\t\t\t\tr.setPassId(rs.getInt(7));\r\n\r\n\t\t\t\t// To see if Flight is domestic or international\r\n\t\t\t\tps2 = currentCon.prepareStatement(\"SELECt a.country from airports a where a.id = ? \"\r\n\t\t\t\t\t\t+ \"and a.country = ( select b.country from airports b where b.id = ?)\");\r\n\t\t\t\tps2.setString(1, r.getDept());\r\n\t\t\t\tps2.setString(2, r.getArri());\r\n\r\n\t\t\t\trs2 = ps2.executeQuery();\r\n\t\t\t\tif (rs2.next())\r\n\t\t\t\t\tr.setDomestic(\"Domestic\");\r\n\t\t\t\telse\r\n\t\t\t\t\tr.setDomestic(\"International\");\r\n\r\n\t\t\t\tres.add(r);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tcloseSockets();\r\n\t\t}\r\n\r\n\t\treturn res;\r\n\r\n\t}", "title": "" }, { "docid": "8e6947fe603fdd276f6e0018c1d0a4cc", "score": "0.57732034", "text": "public Ticket getTicketById(int id);", "title": "" }, { "docid": "27a6ba09b9b98275e539a83e671f7290", "score": "0.5734787", "text": "public String makeRequest (int id, int tickets, String request) {\n\n\t\t// Hold the 'start' seat number and the 'end' one. If tickets = 1, then start = end\n\t\tint start = 0, end = 0;\n\t\t// Hold the row name;\n\t\tString row = \"\";\n\t\t\n\t\tfor (Row r: rowlist) {\n\t\t\trow = r.getCinemaRow();\n\t\t\t\n\t\t\t// If the tickets > # seats at current row, continue\n\t\t\tif (r.getCapacity() < tickets) continue;\n\t\t\t\n\t\t\tint[] seats = r.getCinemaSeats();\n\t\t\tint counter = 0; // Counting the continuous available seats\n\t\t\t\n\t\t\tint i = 0;\n\t\t\tfor (; i < r.getCapacity(); i++) {\n\t\t\t\t// Check if found 'tickets' number of available seats\n\t\t\t\tif (counter == tickets) break;\n\t\t\t\telse {\n\t\t\t\t\tif (seats[i] == 0) counter ++; // If current seat is available, counting\n\t\t\t\t\telse if (seats[i] != 0) counter = 0; // Otherwise, reset the counter\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * After checking all seats in current row, \n\t\t\t * if can't found 'tickets' number of available seats, then continue\n\t\t\t */\n\t\t\tif (counter != tickets) continue;\n\t\t\telse {\n\t\t\t\tend = i;\n\t\t\t\tstart = i - tickets + 1;\n\t\t\t\tfor (; counter > 0; counter --, i--) {\n\t\t\t\t\tseats[i-1] = id; // Indicates these seats are occupied by request 'id'\n\t\t\t\t}\n\t\t\t\tbreak; // Break from rows\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If no available seats for this request\n\t\tif (end == 0) {\n\n\t\t\tString[] result = {request, \"rejected\"};\n\t\t\tString rejected = String.join(\" \", result);\n\t\t\t\n\t\t\tSystem.out.println(rejected);\n\t\t\treturn rejected; // Returns \"Booking rejected\"\n\t\t} else {\n\t\t\t// If tickets > 1, print such as \"Booking 1 A1-A4\"\n\t\t\tif (tickets > 1) {\n\t\t\t\t\n\t\t\t\tString[] temp1 = {row, Integer.toString(start), \"-\", row, Integer.toString(end)};\n\t\t\t\tString temp2 = String.join(\"\", temp1);\n\t\t\t\t\n\t\t\t\tString[] result = {request, Integer.toString(id), temp2};\n\t\t\t\tString allowed = String.join(\" \", result);\n\t\t\t\t\n\t\t\t\tSystem.out.println(allowed);\n\t\t\t\treturn temp2; // Returns seats string such as \"A1-A4\"\n\t\t\t\t\n\t\t\t} else { // If tickets = 1, print such as \"Booking 1 A1\"\n\t\t\t\t\n\t\t\t\tString[] temp1 = {row, Integer.toString(start)};\n\t\t\t\tString temp2 = String.join(\"\", temp1);\n\t\t\t\t\n\t\t\t\tString[] result = {request, Integer.toString(id), temp2};\n\t\t\t\tString allowed = String.join(\" \", result);\n\t\t\t\t\n\t\t\t\tSystem.out.println(allowed);\n\t\t\t\treturn temp2; // Returns seats string such as \"A1\"\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6d5e39dd5be5ed20c5ce74b9e4a89c79", "score": "0.5733242", "text": "@Override\n\tpublic Flight getFlight(int id) {\n\t\t//create a new empty Flight object\n\t\tFlight getA = new Flight();\n\n\t\t//Query\n\t\tString sql = \"SELECT * FROM flight WHERE id=?\";\n\n\t\ttry {\n\n\t\t\tconnectDB();\n\n\t\t\t//create the statement\n\t\t\tthis.pstmt = this.conn.prepareStatement(sql);\n\n\t\t\t//set the parameters for the statement\n\t\t\tthis.pstmt.setInt(1, id);\n\n\t\t\t//execute the statement\n\t\t\tthis.rs = this.pstmt.executeQuery();\n\n\t\t\twhile(this.rs.next()) {\n\n\t\t\t\tgetA.setId(rs.getInt(\"id\"));\n\t\t\t\tgetA.setPilot_name(rs.getString(\"pilot_name\"));\n\t\t\t\tgetA.setDep_airport(rs.getString(\"dep_airport\"));\n\t\t\t\tgetA.setArr_airport(rs.getString(\"arr_airport\"));\n\t\t\t\tgetA.setManufacturer(rs.getString(\"manufacturer\"));\n\t\t\t\tgetA.setFlight_name(rs.getString(\"flight_name\"));\n\t\t\t\tgetA.setDate(rs.getString(\"date\"));\n\t\t\t\tgetA.setScheduled_time(rs.getString(\"scheduled_time\"));\n\t\t\t\tgetA.setDelayed_by(rs.getInt(\"delayed_by\"));\n\t\t\t\tgetA.setPriority(rs.getInt(\"priority\"));\n\t\t\t}\n\n\t\t}\n\n\t\tcatch(SQLException sx) {\n\t\t\tSystem.out.println(sx.getMessage());\n\t\t}\n\n\t\tfinally {\n\t\t\tdisconnectDB();\n\t\t}\n\n\t\t//return the single flight data\n\t\treturn getA;\n\t}", "title": "" }, { "docid": "36ca0ede4d091f0703dded3040d08acd", "score": "0.5718785", "text": "Vector3f getSeat(Entity passenger);", "title": "" }, { "docid": "d575b8a8dc33a31dccf8556176c9a030", "score": "0.568926", "text": "@RequestMapping(value = \"/{id}\",\n\t\t\tmethod = RequestMethod.GET,\n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\t\t\t\n\tpublic ResponseEntity<?> getFlightTicket(@PathVariable Long id){\n\t\t FlightTicket flightTicket = null;\n\t\t try {\n\t\t\t flightTicket = flightTicketService.getFlightTicket(id);\n\t\t }\n\t\t catch(EntityNotFoundException e) {\n\t\t\t return new ResponseEntity<>(new StringJSON(\"Flight ticket not found\"), HttpStatus.NOT_FOUND);\n\t\t }\n\t\t \n\t\t FlightTicketDTO flightTicketDTO = flightTicketService.convertToDTO(flightTicket);\n\t\treturn new ResponseEntity<>(flightTicketDTO, HttpStatus.OK);\n\t\t//return new ResponseEntity<>(new StringJSON(\"Successfully reserved fast flight ticket\"), HttpStatus.OK);\t\t\n\t}", "title": "" }, { "docid": "fc5aa694e5d697c45c74a26cb2fcee03", "score": "0.56478804", "text": "public static List<TripDetail> getTrips(TripDetail tripDetail) {\r\n\r\n\t\tList<TripDetail> stops = new ArrayList<>();\r\n\r\n\t\t// If Flight is Non Stop then Don't search for Flight with legs\r\n\t\t// unless we won't find a flight here.\r\n\t\tif (tripDetail.isNonStop()) {\r\n\t\t\tcurrentCon = ConnectionManager.getConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps = currentCon.prepareStatement(\r\n\t\t\t\t\t\t\"SELECT s.FlightId, s.AirlineId, s.stopNo, s.arrTime, s.deptTime, s.s_d_id, f.fare \"\r\n\t\t\t\t\t\t\t\t+ \"FROM stopsat s, flights f \"\r\n\t\t\t\t\t\t\t\t+ \"WHERE s.FlightId = f.id AND s.AirlineId = f.AirlineId AND airportIdOrigin = ? And airportIdDestination = ? \"\r\n\t\t\t\t\t\t\t\t+ \" AND Day(deptTime) = Day(?) And Month(deptTime) = Month(?) \");\r\n\t\t\t\tps.setString(1, tripDetail.getFlyinfFromAirport());\r\n\t\t\t\tps.setString(2, tripDetail.getDestinationAirport());\r\n\t\t\t\tps.setTimestamp(3, tripDetail.getDepartDate());\r\n\t\t\t\tps.setTimestamp(4, tripDetail.getDepartDate());\r\n\t\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tTripDetail s = new TripDetail();\r\n\t\t\t\t\ts.setFlightId(rs.getInt(1));\r\n\t\t\t\t\ts.setAirlineId(rs.getString(2));\r\n\t\t\t\t\ts.setStartStop(rs.getInt(3));\r\n\t\t\t\t\ts.setStops(1);\r\n\t\t\t\t\ts.setArrTime(rs.getTimestamp(4));\r\n\t\t\t\t\ts.setDeptTime(rs.getTimestamp(5));\r\n\t\t\t\t\ts.setS_d_id(rs.getInt(6));\r\n\r\n\t\t\t\t\t// Discount Featuring based on advance booking\r\n\t\t\t\t\tTimestamp now = new Timestamp(System.currentTimeMillis());\r\n\t\t\t\t\tint diffInDays = (int) ((s.getDeptTime().getTime() - now.getTime()) / (1000 * 60 * 60 * 24));\r\n\t\t\t\t\ts.setTotalFare(tripDetail.getSeats() * rs.getInt(7));\r\n\r\n\t\t\t\t\ts.setTotalFare(s.getTotalFare() - (s.getTotalFare() / 100) * diffInDays);\r\n\r\n\t\t\t\t\ts.setSeats(tripDetail.getSeats());\r\n\t\t\t\t\tstops.add(s);\r\n\t\t\t\t}\r\n\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} finally {\r\n\t\t\t\tcloseSockets();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t// If No-Stop flight exists then return\r\n\t\tif (stops.size() > 0)\r\n\t\t\treturn stops;\r\n\r\n\t\t// For Flights with possible one or many legs\r\n\t\tString query = \"SELECT s.s_d_id as sdid From (SELECT s1.s_d_id as sid FROM stopsat s1 \"\r\n\t\t\t\t+ \"where s1.airportIdOrigin = ? AND Day(deptTime) = Day(?) And Month(deptTime) = Month(?) ) as o , stopsat s WHERE o.sid = s.s_d_id \"\r\n\t\t\t\t+ \"And s.airportIdDestination = ?\";\r\n\t\ttry {\r\n\t\t\tcurrentCon = ConnectionManager.getConnection();\r\n\t\t\tps = currentCon.prepareStatement(query);\r\n\r\n\t\t\tps.setString(1, tripDetail.getFlyinfFromAirport());\r\n\t\t\tps.setTimestamp(2, tripDetail.getDepartDate());\r\n\t\t\tps.setTimestamp(3, tripDetail.getDepartDate());\r\n\t\t\tps.setString(4, tripDetail.getDestinationAirport());\r\n\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint s_d_id = rs.getInt(\"sdid\");\r\n\r\n\t\t\t\t// Returns The Group Id of particular Flights that goes from A to B\r\n\t\t\t\tps2 = currentCon.prepareStatement(\r\n\t\t\t\t\t\t\"SELECT s.FlightId, s.AirlineId, s.stopNo , s.deptTime, s.arrTime , f.fare FROM stopsat s , flights f WHERE s.s_d_id = ?\"\r\n\t\t\t\t\t\t\t\t+ \" And f.id = s.FlightId And f.airlineId = s.AirlineId And airportIdOrigin = ?\");\r\n\t\t\t\tps2.setInt(1, s_d_id);\r\n\t\t\t\tps2.setString(2, tripDetail.getFlyinfFromAirport());\r\n\t\t\t\trs2 = ps2.executeQuery();\r\n\r\n\t\t\t\tTripDetail s = new TripDetail();\r\n\t\t\t\trs2.next();\r\n\r\n\t\t\t\ts.setFlightId(rs2.getInt(1));\r\n\t\t\t\ts.setAirlineId(rs2.getString(2));\r\n\t\t\t\ts.setArrTime(rs2.getTimestamp(5));\r\n\t\t\t\ts.setS_d_id(s_d_id);\r\n\r\n\t\t\t\tint count = rs2.getInt(3);\r\n\t\t\t\ts.setStartStop(count);\r\n\r\n\t\t\t\tps2.close();\r\n\t\t\t\tps2 = null;\r\n\t\t\t\trs2.close();\r\n\t\t\t\trs2 = null;\r\n\r\n\t\t\t\t// Detail of those particular groups\r\n\t\t\t\tps2 = currentCon.prepareStatement(\r\n\t\t\t\t\t\t\"SELECT s.FlightId, s.AirlineId, s.stopNo , s.deptTime, s.arrTime , f.fare FROM stopsat s , flights f WHERE s.s_d_id = ?\"\r\n\t\t\t\t\t\t\t\t+ \" And f.id = s.FlightId And f.airlineId = s.AirlineId And airportIdDestination = ?\");\r\n\r\n\t\t\t\tps2.setInt(1, s_d_id);\r\n\t\t\t\tps2.setString(2, tripDetail.getDestinationAirport());\r\n\t\t\t\trs2 = ps2.executeQuery();\r\n\r\n\t\t\t\trs2.next();\r\n\t\t\t\ts.setDeptTime(rs2.getTimestamp(4));\r\n\t\t\t\tcount = (rs2.getInt(3) - count) + 1;\r\n\r\n\t\t\t\ts.setSeats(tripDetail.getSeats());\r\n\r\n\t\t\t\t// Discount Featuring based on advance booking\r\n\t\t\t\tTimestamp now = new Timestamp(System.currentTimeMillis());\r\n\t\t\t\tint diffInDays = (int) ((s.getDeptTime().getTime() - now.getTime()) / (1000 * 60 * 60 * 24));\r\n\t\t\t\ts.setTotalFare(tripDetail.getSeats() * rs2.getInt(6));\r\n\r\n\t\t\t\ts.setTotalFare(s.getTotalFare() - (s.getTotalFare() / 100) * diffInDays);\r\n\t\t\t\ts.setStops(count);\r\n\r\n\t\t\t\tstops.add(s);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tcloseSockets();\r\n\t\t}\r\n\r\n\t\treturn stops;\r\n\r\n\t}", "title": "" }, { "docid": "8a912d1d5f189fadd474bf8ec56dee67", "score": "0.56122506", "text": "public void retrieveTicketFromDB(){\n\t\t\n\t\t//first get all foreign keys \n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tcon = DriverManager.getConnection(TEST);\n\t\t\tString query = \"SELECT ticketID, fromBooking, ticketType, ofSeat FROM Tickets WHERE ticketID = ? \";\n\t\t\tpstmt = con.prepareStatement(query);\n\t\t\tpstmt.setInt(1, this.TID);\n\t\t\trs = pstmt.executeQuery();\n\n\t\t\twhile(rs.next()) {\n\t\t\t\t\n\t\t\t\tthis.fromBooking = rs.getInt(\"fromBooking\");\n\t\t\t\tthis.ticketType = rs.getInt(\"ticketType\");\n\t\t\t\tthis.ofSeat = rs.getInt(\"ofSeat\");\n\t\t\t\n\t\t\t}//get from Ticket Types \n\t\t\t\n\t\t\tcalculateSellingPrice();\n\t\t\t\n\t\t\trs.close();\n\t\t\tpstmt.close();\n\t\t\tcon.close();\n\t\t}catch(SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tif(pstmt!=null)\n\t\t\t\t\tpstmt.close();\n\t\t\t}catch(SQLException se2) {\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif(con!=null)\n\t\t\t\t\tcon.close();\n\t\t\t}catch(SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t}\n\t\t}\t\n\t\t\n\t}", "title": "" }, { "docid": "872a3e0e0760bd6e68f92a9e840d0f7e", "score": "0.5579508", "text": "Collection<ToughJetResponseDTO> getFlights(ToughJetRequest toughJetRequest);", "title": "" }, { "docid": "8ec848bf506661081d711a4f907472d1", "score": "0.5571275", "text": "@Override\r\n\tpublic TicketDTO viewTicket(int ticketId) throws TicketIdNotFoundException {\r\n\r\n\t\treturn passengerDao.getPassengerInfo(ticketId);\r\n\t}", "title": "" }, { "docid": "3ea695c48a33000b2891cd4b446d30b4", "score": "0.5513752", "text": "public List<Flight> getListOfMatchingFlights(FlightDetailsEntered flightDetails);", "title": "" }, { "docid": "6df159495c868845629626f479a3de89", "score": "0.5510408", "text": "public static Flight getFlight(Connection connection, int flightId) throws SQLException {\n String queryString = \"SELECT id, fleet_id, uploader_id, upload_id, tail_id, airframe_id, start_time, end_time, filename, md5_hash, number_rows, status, has_coords, has_agl, insert_completed FROM flights WHERE id = ?\";\n PreparedStatement query = connection.prepareStatement(queryString);\n query.setInt(1, flightId);\n\n ResultSet resultSet = query.executeQuery();\n\n resultSet.close();\n query.close();\n\n if (resultSet.next()) {\n return new Flight(connection, resultSet);\n } else {\n return null;\n } \n }", "title": "" }, { "docid": "5df8415aecca08a71d7ba51f8b5af2f8", "score": "0.5505041", "text": "FlightDTO getFlightByFlightNumber(String flightNumber);", "title": "" }, { "docid": "3afcafa712084ea7d3c53a7674268ce5", "score": "0.54959494", "text": "@RequestMapping(value = \"/ticket/tof/{id}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<TicketOnFlightModel>> ticketOnFlight(@PathVariable Long id) {\n\t\tList<TicketOnFlight> all = service.ticketOnFlight(id);\n\t\tUserDataStorage userDataStorage = context.getBean(UserDataStorage.class);\n\t\tSystem.out.println(\"Secured: \" + userDataStorage);\n\t\tList<TicketOnFlightModel> converted = new ArrayList<>();\n\t\tfor (TicketOnFlight ticketOnFlight : all) {\n\t\t\tconverted.add(entity2model(ticketOnFlight));\n\t\t}\n\t\treturn new ResponseEntity<List<TicketOnFlightModel>>(converted, HttpStatus.OK);\n\t}", "title": "" }, { "docid": "bc80a91f4b9d702548c6af62e5780b08", "score": "0.54895693", "text": "Ticket findByTicketIdAndPassenger(Integer ticketId, Passenger passenger);", "title": "" }, { "docid": "068d2748f965adfd7b1841bc7b5d1684", "score": "0.5472659", "text": "public JSONObject getFlightsByID(String flight) {\n\t\tJSONObject res = null;\n\t\ttry {\n\t\t\tJSONArray flts = (JSONArray) flights.get(\"flights\");\n\t\t\t\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tIterator iter = flts.iterator();\n\t\t\tboolean found = false; \n\t\t\twhile(iter.hasNext() && !found){\n\t\t\t\tJSONObject i = (JSONObject) iter.next();\n\t\t\t\tString flightId = i.getString(\"Flight\");\n\t\t\t\tif(flightId.compareTo(flight)==0){\n\t\t\t\t\tres = i;\n\t\t\t\t\tfound = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "00d1ffb8525b85ecbdb69f5ef7c9dc18", "score": "0.5398751", "text": "@RequestMapping(value = \"/ticket/tfi/{id}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<TicketFullModel>> ticketFullModel(@PathVariable Long id) {\n\t\tUserDataStorage userDataStorage = context.getBean(UserDataStorage.class);\n\t\tSystem.out.println(\"Secured: \" + userDataStorage);\n\t\tTicket ticket = service.get(id);\n\t\tPassenger passenger = passengerService.get(Integer.toUnsignedLong(ticket.getPassenger()));\n\t\tFlight flight = flightService.get(Integer.toUnsignedLong(ticket.getFlNum()));\n\t\tCity cityFrom = cityService.get(Integer.toUnsignedLong(flight.getFromm()));\n\t\tCity cityTo = cityService.get(Integer.toUnsignedLong(flight.getToo()));\n\t\tPlane plane = planeService.get(Integer.toUnsignedLong(flight.getPlane()));\n\n\t\tArrayList<Object> passenger1 = new ArrayList<>();\n\n\t\tpassenger1.add(passenger.getFullName() + \", birthday: \" + passenger.getBirthday() + \", passport: \"\n\t\t\t\t+ passenger.getPassport());\n\t\tpassenger1.add(\"Class: \" + ticket.getClas() + \", price: \" + (double) ticket.getPrice() / 100 + \"$, baggage: \"\n\t\t\t\t+ ticket.getBag() + \", priority boarding and registration: \" + ticket.getFirst_reg());\n\t\tpassenger1.add(\"Departs from: \" + cityFrom.getCity_en() + \" to \" + cityTo.getCity_en() + \" at \"\n\t\t\t\t+ flight.getdAndT() + \" (start ticket price: \" + (double) flight.getStartPrice() / 100 + \"$)\");\n\t\tpassenger1.add(plane.getModel() + \", bort number: \" + plane.getBortNumber() + \", capacity of persons on board: \"\n\t\t\t\t+ plane.getPassengerCount());\n\n\t\tList<TicketFullModel> converted = new ArrayList<>();\n\t\tconverted.add(entity2model(passenger1));\n\n\t\treturn new ResponseEntity<List<TicketFullModel>>(converted, HttpStatus.OK);\n\n\t}", "title": "" }, { "docid": "3e9fcb91f0598c38f667c1210350e17e", "score": "0.53789455", "text": "protected synchronized Ticket bookTicket(int id, String fn, String ln, String dob, String src, String dest,\r\n String date, String time, String dur, double price )\r\n {\r\n //Find Flight\r\n ResultSet temp = null;\r\n int blah;\r\n try {\r\n PreparedStatement create = myConn.prepareStatement(\"SELECT * FROM Flights WHERE id=?\");\r\n create.setInt(1, id);\r\n temp = create.executeQuery();\r\n temp.next();\r\n blah = temp.getInt(\"SeatsLeft\");\r\n if( blah > 0 ){\r\n //Subtract one\r\n create = myConn.prepareStatement(\"UPDATE Flights SET SeatsLeft=? WHERE id=?\");\r\n create.setInt(1,--blah);\r\n create.setInt(2,id);\r\n create.execute();\r\n\r\n }\r\n else{\r\n System.out.println(\"No more tickets\");\r\n return null;\r\n }\r\n }catch (SQLException e){\r\n System.err.println(\"Error searching for flight in bookTicket\");\r\n e.printStackTrace();\r\n return null;\r\n\r\n }\r\n\r\n //Book Ticket if there is still tickets left\r\n try {\r\n String query = \"INSERT INTO Tickets (FirstName, LastName, DateOfBirth, Source, Destination, Date, Time, Duration, Price, FlightID)\"\r\n + \"VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n PreparedStatement insert;\r\n insert = myConn.prepareStatement(query);\r\n insert.setString(1, fn);\r\n insert.setString(2, ln);\r\n insert.setString(3, dob);\r\n insert.setString(4, src);\r\n insert.setString(5, dest);\r\n insert.setString(6, date);\r\n insert.setString(7, time);\r\n insert.setString(8, dur);\r\n insert.setDouble(9, price);\r\n insert.setInt(10, id);\r\n insert.executeUpdate();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n return new Ticket(0, id, fn, ln, dob, src, dest, date, time, dur, price);\r\n }", "title": "" }, { "docid": "56bc9d29cf528f26de0484a452697769", "score": "0.53733605", "text": "public ResultSet searchTicket(int whichCase, int id, String src, String dest)\r\n {\r\n //Cases 1- id 2- src 3-dest 4-src and dest\r\n ResultSet myRs = null;\r\n PreparedStatement create = null;\r\n try {\r\n if (whichCase == 1) {\r\n create = myConn.prepareStatement(\"SELECT * FROM Tickets WHERE FlightID=?\");\r\n create.setInt(1, id);\r\n } else if (whichCase == 2) {\r\n create = myConn.prepareStatement(\"SELECT * FROM Tickets WHERE Source=?\");\r\n create.setString(1, src);\r\n\r\n } else if (whichCase == 3) {\r\n create = myConn.prepareStatement(\"SELECT * FROM Tickets WHERE Destination=?\");\r\n create.setString(1, dest);\r\n\r\n } else if (whichCase == 4) {\r\n create = myConn.prepareStatement(\"SELECT * FROM Tickets WHERE Source=? AND Destination=?\");\r\n create.setString(1, src);\r\n create.setString(2, dest);\r\n\r\n } else {\r\n System.err.println(\"Invalide parameter for Case in serachTickets\");\r\n System.exit(1);\r\n }\r\n\r\n //Execute Statement\r\n myRs = create.executeQuery();\r\n\r\n }catch (SQLException e){\r\n System.err.println(\"Error Executing searchTicket method\");\r\n e.printStackTrace();\r\n System.exit(1);\r\n }\r\n return myRs;\r\n }", "title": "" }, { "docid": "99bed39a97349610b7e5b37da5000cb2", "score": "0.53618413", "text": "@Test\n public void getTicketTest() throws ApiException {\n Long id = null;\n // Ticket response = api.getTicket(id);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "1bd5409dbba2ae980771a73bc40d901e", "score": "0.5334986", "text": "public List<Ticket> order(String studentID, Date date, String startStation, String endStation, \n\t\t\tint trainID, int count) throws TicketOrderException {\n\t\tList<Ticket> tickets = new ArrayList<Ticket>();\n\t\tint[][][] seatTable = null;\n\t\tboolean condition1 = true;\n\t\tint startStationOrder = 0;\n\t\tint endStationOrder = 0;\n\t\tSimpleDateFormat sdFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t//System.out.println(sdFormat.format(date));\n\t\t\n\t\t//TODO if the tickets are not available or sold out. Please throw the related exception.\n\t\tseatTable = checkAvailable(date, new Integer(startStation), new Integer(endStation), trainID, count);\n\t\tstartStationOrder = seatTable[0][0][0];\n\t\tendStationOrder = seatTable[0][0][1];\n\t\tint[] i = new int[count];\n\t\tint[] j = new int[count];\n\t\tint n=0;\n\t\tfor( ;n<count;n++){\n\t\t\tboolean full = true;\n\t\t\ti[n]=0;\n\t\t\tj[n]=0;\n\t\t\tint k=0;\n\t\t\tOuterLoop:\n\t\t\tfor(i[n]=0;i[n]<CAR_NUM_PER_TRAIN;i[n]++){\n\t\t\t\tfor(j[n]=0;j[n]<SEAT_NUM_PER_CAR;j[n]++){\n\t\t\t\t\tInnerLoop:\n\t\t\t\t\tfor(k=1;k<1+endStationOrder-startStationOrder;k++){\n\t\t\t\t\t\tif( ((n>0) && (52*i[n-1]+j[n-1]>=52*i[n]+j[n])) ||\n\t\t\t\t\t\t (seatTable[k][i[n]][j[n]]!=0)) break InnerLoop;\n\t\t\t\t\t}\n\t\t\t\t\tif(k==1+endStationOrder-startStationOrder){\n\t\t\t\t\t\tfull = false;\n\t\t\t\t\t\tbreak OuterLoop;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(full==true)break;\n\t\t}\n\t\tif(n==count){\n\t\t\tn = 0;\n\t\t\tint k;\n\t\t\tfor( ;n<count;n++){\n\t\t\t\tfor(k=1;k<1+endStationOrder-startStationOrder;k++){\n\t\t\t\t\tseatTable[k][i[n]][j[n]] = 1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnewTicket.setSeat(i[n]+1, j[n]+1);\n\t\t\t\ttickets.add(new Ticket(newTicket));\n\t\t\t}\n\t\t}\n\t\telse throw new TicketOrderException(ExceptionTYPE.BOOKINGISFULL);\n\t\t\n\t\tfor(int m=startStationOrder;m<endStationOrder;m++)\n\t\t\twriteSeatTable(date, m, trainID,seatTable[m-startStationOrder+1]);\n//\t\tif(condition1 == true){\n//\t\t\tthrow new TicketOrderException(ExceptionTYPE.BOOKINGISFULL);\t\n//\t\t}else if(condition1 == true){\n//\t\t\tthrow new TicketOrderException(ExceptionTYPE.STATATIONID_NOFOUND);\n//\t\t}\n\t\t\n\t\t// .... more exceptions\n\t\t\n\t\treturn tickets;\n\t}", "title": "" }, { "docid": "03d9656e54147709828ad94ad75f53c1", "score": "0.53340507", "text": "public PermissionTicket getByTicket(String ticket);", "title": "" }, { "docid": "46e96312f3564463775c1e5b695d60bd", "score": "0.5313921", "text": "public Ticket getTicket(int id){\n\t\treturn mTickets.get(id);\n\t}", "title": "" }, { "docid": "1a8aa94de65bb3ed5f68ffbd74d6c45a", "score": "0.5312954", "text": "public String getTicket(int id) {\n\t\tSQLiteDatabase db1 = this.getReadableDatabase();\n\n\t\t// 2. build query\n\t\tCursor cursor = db1.query(TABLE_TICKETS, // a. table\n\t\t\t\tCOLUMNS, // b. column names\n\t\t\t\t\" id = ?\", // c. selections\n\t\t\t\tnew String[] { String.valueOf(id) }, // d. selections args\n\t\t\t\tnull, // e. group by\n\t\t\t\tnull, // f. having\n\t\t\t\tnull, // g. order by\n\t\t\t\tnull); // h. limit\n\n\t\t// 3. if we got results get the first one\n\t\tif (cursor != null)\n\t\t\tcursor.moveToFirst();\n\n\t\t// 4. build ticket object\n\t\tTicket ticket = new Ticket();\n\t\tticket.setId(Integer.parseInt(cursor.getString(0)));\n\t\tticket.setName(cursor.getString(1));\n\t\tticket.setPhone(cursor.getString(2));\n\n\t\tLog.d(\"getTicket(\" + id + \")\", ticket.toString());\n\n\t\t// 5. return ticket\n\t\treturn ticket.toString();\n\t}", "title": "" }, { "docid": "702211da0ec77192800765c7eb735481", "score": "0.53012246", "text": "private By getReservationTableRow(int table, int row, int cell){\n\t\tBy reservationTableRow = By.xpath(\"//table[@id='schedule_\" + table + \"']/tbody/tr[\"+ row +\"]/td[\"+ cell +\"]\");\n\t\t\n\t\treturn reservationTableRow;\n\t}", "title": "" }, { "docid": "dd6287dc801c72d97d4f5ce655a0be96", "score": "0.5294683", "text": "@Test\n public void testPurchaseTicket_flightNotFound() throws Exception {\n final FlightKey key;\n final String departureDate;\n final PurchaseTicketDTO params;\n \n log.info(\"RUNNING REST TEST: purchaseTicket (case: flight not found)\");\n \n departureDate = \"2017-04-12T10:35:00\";\n key = new FlightKey(\"FR99999\", LocalDateTime.parse(departureDate));\n \n params = new PurchaseTicketDTO();\n params.setPassengers(Collections.singleton(\"Passenger\"));\n \n when(this.service.purchaseTicket(key, params)).thenThrow(\n RicstonFlightExceptions.flightNotFound(key));\n \n this.mvc.perform(post(\"/flights/{flightCode}/ticket\", key.getFlightCode()).\n queryParam(\"departure-date\", departureDate.substring(0, 16)).accept(\n MediaType.APPLICATION_JSON).contentType(MediaType.APPLICATION_JSON).\n content(jsonContent(params))).andDo(print()).andExpect(status().isNotFound()).\n andExpect(jsonPath(\"$.code\", is(RicstonFlightError.FLIGHT_NOT_FOUND.getCode())));\n }", "title": "" }, { "docid": "66a8f0f3012a4724bbe9bcc00806cfb9", "score": "0.52703637", "text": "FlightDTO getFlightById(Long id);", "title": "" }, { "docid": "de4bb132e39a108fce58e5f0daba81dd", "score": "0.52688825", "text": "public void loadSeats() {\n java.util.List<SeatInfo> runningSeatsList = null;\n // Map for Partial detail of SharedTicketInfo Object i.e <ID as key and ISPRINTED as value> \n Map<String, String> runningSeatsMap = new HashMap<String, String>();\n String key = null;\n String value = null;\n try {\n runningSeatsList = dlReceipts.getSeatList(currentShowId);//retrieve sharedticketes data from db\n } catch (BasicException ex) {\n Logger.getLogger(JTicketsBagRestaurantMap.class.getName()).log(Level.SEVERE, null, ex);\n }\n //Iterate over all sharedtickets and create HashMap for <ID,ISPRINTED> details\n for (SeatInfo sharedTicket : runningSeatsList) {\n //atickets.add(ticket.getId());\n key = sharedTicket.getId();\n value=sharedTicket.getStatus();\n \n runningSeatsMap.put(key, value); //add partial detail in Map.\n }\n \n //Iterate of all the tables present in this floor.\n for (Place seat : m_aplaces) {\n //table.setPeople(atickets.contains(table.getId()));\n if (runningSeatsMap.containsKey(seat.getId())) {//if current table is present in my map as key\n //retrieve the value of same key entry from map of shared tickets\n String busyTableColor = runningSeatsMap.get(seat.getId());\n //If current table is already being printed ,display yellow button ,if not then red button.\n if(\"BLOCKED\".equals(busyTableColor)) {\n // seat.getButton().setBackground(Color.LIGHT_GRAY);\n seat.getButton().setBackground(new Color(3, 59, 90));\n }else{\n seat.getButton().setBackground(Color.GREEN);\n }\n } else {\n //if table is not busy or occupied , then display button as white color.\n seat.getButton().setBackground(Color.WHITE); \n \n \n }\n }\n }", "title": "" }, { "docid": "c44888963ea0587f0b286b6e7b64f32f", "score": "0.52364725", "text": "public static Object[][] getTrainTable() {\n Object[][] data;\n \n try {\n data = Database.selectQuery(\n \"SELECT \" +\n // Date\n \"CAST(CONCAT(trip.year, '-', trip.month, '-', trip.day) AS DATE) 'Date', \" +\n // Departure Time // times 100 for viewing purposes\n \"(trip.departure_hour * 100 + trip.departure_minute) 'Departure Time', \" +\n // Arrival Time\n \"(trip.arrival_hour * 100 + trip.arrival_minute) 'Arrival Time', \" +\n // Duration\n \"(trip.arrival_hour * 60 + trip.arrival_minute) - (trip.departure_hour * 60 - trip.departure_minute) 'Duration', \" +\n // Cost\n \"SUM(route.travel_cost) 'Cost', \" +\n // Train ID and model\n \"train.train_id 'Train ID', model.name 'Train Model' \" +\n // Train features\n \", model.max_speed, model.no_of_seats, model.no_of_toilets, model.reclining_seats, model.foldable_table, model.disability_access, model.luggage_storage, model.vending_machines, model.food_service \" +\n \"FROM trip_schedule trip \" + \n \n \"INNER JOIN route ON trip.route_id = route.route_id \" +\n \"INNER JOIN station origin ON origin.station_id = route.origin_station_id \" +\n \"INNER JOIN station destination ON destination.station_id = route.destination_station_id \" +\n \"INNER JOIN town origin_town ON origin_town.town_id = origin.town_id \" +\n \"INNER JOIN town dest_town ON dest_town.town_id = destination.town_id \" +\n \"INNER JOIN train ON train.train_id = trip.train_id \" +\n \"INNER JOIN train_model model ON model.train_model_code = train.train_model_code \" +\n // start of filter\n \n \"WHERE (CAST(CONCAT(trip.year, '-', trip.month, '-', trip.day) AS DATE) > CAST('\" + BuyTicket.getDepartureDate().toString() + \"' AS DATE) \" +\n \"OR (\" +\n \"CAST(CONCAT(trip.year, '-', trip.month, '-', trip.day) AS DATE) = CAST('\" + BuyTicket.getDepartureDate().toString() + \"' AS DATE) \" +\n \"AND (trip.departure_hour * 100 + trip.departure_minute) >= \" + BuyTicket.getDepartureTime() +\n \"))\" + \n \"AND origin.name = '\" + BuyTicket.getFromStation().getName() + \"' \" +\n \"AND destination.name = '\" + BuyTicket.getToStation().getName() + \"' \" +\n \"AND origin_town.name = '\" + BuyTicket.getFromStation().getTownName() + \"' \" +\n \"AND dest_town.name = '\" + BuyTicket.getToStation().getTownName() + \"' \" + \n \"GROUP BY trip.schedule_id \" + \n \"ORDER BY 1 ASC, 2 ASC, 3 ASC\"\n );\n }\n catch (SQLException ex) {\n System.err.println(\"An exception occured: \" + ex);\n return null;\n }\n \n return data;\n }", "title": "" }, { "docid": "4d0ff9d5b7f529bb18549a0865e96e01", "score": "0.52327526", "text": "@Override\r\n\tpublic Flight findFlightById(int flightId) {\n\t\ttry {\r\n\t\t\treturn crudDao.findEntityById(flightId);\r\n\t\t} catch (IncorrectAmountOfQueryResultsException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5e28ee96133add02b8a687d0ddd98444", "score": "0.52176493", "text": "List<Transaction> getAllByTicketSerial(String serialNo);", "title": "" }, { "docid": "e004e77076337236e838b4f2ced56e0b", "score": "0.52136105", "text": "public void getTickets () {\n\t\tString tempString = \"\";\n\t\tif (!isAdmin) {\n\t\t\ttempString = new String(\"TICKETS \" + username + \" \");\n\t\t} else {\n\t\t\ttempString = new String(\"TICKETS 0 \");\n\t\t}\n\t\ttry {\n\t\t\tif (!searchNumber.getText().equals(\"Any Number\")) {\n\t\t\t\ttempString += searchNumber.getText() + \" \";\n\t\t\t} else {\n\t\t\t\ttempString += \"0 \";\n\t\t\t}\n\t\t\tif (!searchTicketFrom.getText().equals(\"Anywhere\")) {\n\t\t\t\ttempString += searchTicketFrom.getText() + \" \";\n\t\t\t} else {\n\t\t\t\ttempString += \"0 \";\n\t\t\t}\n\t\t\tif (!searchTicketTo.getText().equals(\"Anywhere\")) {\n\t\t\t\ttempString += searchTicketTo.getText() + \" \";\n\t\t\t} else {\n\t\t\t\ttempString += \"0 \";\n\t\t\t}\n\t\t\tif (!searchTicketDepart.getText().equals(\"dd/mm/yyyy\")) {\n\t\t\t\ttempString += searchTicketDepart.getText() + \" \";\n\t\t\t} else {\n\t\t\t\ttempString += \"0 \";\n\t\t\t}\n\t\t\tif (!searchCost.getText().equals(\"Any Price\")) {\n\t\t\t\ttempString += searchCost.getText() + \" \";\n\t\t\t} else {\n\t\t\t\ttempString += \"0 \";\n\t\t\t}\n\t\t\tif (!searchName.getText().equals(\"Last Name\")) {\n\t\t\t\ttempString += searchName.getText() + \" \";\n\t\t\t} else {\n\t\t\t\ttempString += \"0\";\n\t\t\t}\n\t\t\tsocketOut.writeObject(tempString);\n\t\t\tticketStore = (TicketStorage)socketIn.readObject();\n\t\t\tVector <Ticket> myTickets = new Vector <Ticket> (ticketStore.gettickets());\n\t\t\tVector <String> tempVector = new Vector <String>();\n\t\t\tfor (int i = 0; i < myTickets.size(); i++) {\n\t\t\t\ttempString = new String(\"\" + myTickets.elementAt(i).ticketID());\n\t\t\t\twhile (tempString.length() < 5) {\n\t\t\t\t\ttempString += \" \";\n\t\t\t\t}\n\t\t\t\ttempString += \" | \" + myTickets.elementAt(i).getname() + \" \" + myTickets.elementAt(i).getlastname();\n\t\t\t\twhile (tempString.length() < 25) {\n\t\t\t\t\ttempString += \" \";\n\t\t\t\t}\n\t\t\t\ttempString += \" | From \" + myTickets.elementAt(i).getsource();\n\t\t\t\twhile (tempString.length() < 45) {\n\t\t\t\t\ttempString += \" \";\n\t\t\t\t}\n\t\t\t\ttempString += \" | To \" + myTickets.elementAt(i).getdestination();\n\t\t\t\twhile (tempString.length() < 65) {\n\t\t\t\t\ttempString += \" \";\n\t\t\t\t}\n\t\t\t\ttempString += \" | \" + myTickets.elementAt(i).getdate();\n\t\t\t\twhile (tempString.length() < 78) {\n\t\t\t\t\ttempString += \" \";\n\t\t\t\t}\n\t\t\t\ttempVector.add(tempString);\n\t\t\t}\n\t\t\tticketResults.setListData(tempVector);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "cfd9f12c269871d42eb3a85c6d5865f6", "score": "0.52118033", "text": "public List<Flight> getFlightsArrivingAt(Airport airportCode, DateTime date);", "title": "" }, { "docid": "0af4cdac704b6093b1cc7698ba612d29", "score": "0.52051884", "text": "Ticket findTicketById(Long id);", "title": "" }, { "docid": "e2a281527cf9187d20f3b62d46ed4070", "score": "0.5199591", "text": "private void readFlightDetails() {\n FlightDetails f = hashTable.get(flight);\n System.out.printf(\"%-20s %-20s %-20s\\n\", \"PASSENGER: \" + passengerNumber, f.getFlightIdentification(), f.getFlightStatus());\n }", "title": "" }, { "docid": "50f1b47b68f0ed232562521a88b24f14", "score": "0.5198543", "text": "Ticket findByBookingId(String bookingId);", "title": "" }, { "docid": "d0412a4208fc07937a0768844568b579", "score": "0.5194565", "text": "private static void getSeatNumber(){\r\n // loop through our arrayList of seats\r\n for (int i = 0; i < FlyingDogAirlines.seats.size(); i++) {\r\n // check if there is any seat available for the specific cabinClass FOR THE SELECTED SCHEDULE\r\n if (FlyingDogAirlines.seats.get(i).getStatus().equals(\"available\") &&\r\n FlyingDogAirlines.seats.get(i).getCabin().equals(getCabinClass()) &&\r\n FlyingDogAirlines.seats.get(i).getScheduleId() ==\r\n BookingView.scheduleTableView.getSelectionModel().getSelectedItem().getScheduleId()) {\r\n // we assign the specific seat number\r\n seat_id = FlyingDogAirlines.seats.get(i).getSeatId();\r\n\r\n // when we find an available seat for the specific cabin we also need to update\r\n // the passenger id and the status of that seat for both arrayList and mysql table\r\n FlyingDogAirlines.seats.get(i).setStatus(\"confirmed\");\r\n FlyingDogAirlines.seats.get(i).setPassengerId(passengerId);\r\n\r\n DBSeat dbSeat = new DBSeat();\r\n dbSeat.update(seat_id, passengerId, \"confirmed\");\r\n\r\n // make the boolean true if there is any available seat\r\n is_seat_available = true;\r\n\r\n // the break point is used so we only assign one seat\r\n break;\r\n }\r\n }\r\n\r\n // if we didn't find any available seat, make the seat_id = 0\r\n if(!is_seat_available)\r\n seat_id = 0;\r\n // reassign the boolean to false for further use\r\n is_seat_available = false;\r\n }", "title": "" }, { "docid": "52421c894ad95b2ccd5ab6df0c96cf10", "score": "0.5182754", "text": "@Override\n public Plane getPlaneBasedOnFlightNumber(String flightNumber) {\n if(!planes.isEmpty()) {\n Plane plane = planes.get(planes.search(flightNumber));\n return plane.getKey().equals(flightNumber) ? plane : null;\n } else\n return null;\n }", "title": "" }, { "docid": "ae72a9b6c09e3cf2704ab773b37dfd3a", "score": "0.5171677", "text": "@Test\n void Fill_passengers_in_row_orderof_Aisle_Window_Middle(){\n Airplane airplane = new Airplane();\n listOfSeatMatrices = airplane.fillpassangers(30,airplane.determineIfSeatIsWindowOrMiddleOrAisle(getListOfSeatMatrices()));\n Assertions.assertEquals(7, listOfSeatMatrices.get(2)[0][0]);\n Assertions.assertEquals(14, listOfSeatMatrices.get(3)[1][0]);\n Assertions.assertEquals(28, listOfSeatMatrices.get(0)[1][1]);\n Assertions.assertEquals(30, listOfSeatMatrices.get(1)[0][2]);\n\n }", "title": "" }, { "docid": "b5865470fd43e7766bb7f40a56e601f6", "score": "0.5159195", "text": "public boolean searchForFirstOpenSeatWithPreference(Reservation r) {\n // if the service class is First then check for seat preference\n if (r.getServiceClass() == 'F') {\n // if seat preference is window we have to search rows 0 and 3 bc those are window seat rows aka D and A\n if (r.getSeatPreference() == 'W') {\n for (int i = 0; i < firstClass[0].length; i++) {\n if (firstClass[0][i] == null) {\n addNewReservationFromUser(r, 0, i);\n return true;\n }\n }\n for (int i = 0; i < firstClass[3].length; i++) {\n if (firstClass[3][i] == null) {\n addNewReservationFromUser(r, 3, i);\n return true;\n }\n }\n return false;\n\n } else {\n // if your seat preference is not window we have to search for a seat that is in rows 1 and 2 aka C and B\n for (int i = 0; i < firstClass[1].length; i++) {\n if (firstClass[1][i] == null) {\n addNewReservationFromUser(r, 1, i);\n return true;\n }\n }\n for (int i = 0; i < firstClass[2].length; i++) {\n if (firstClass[2][i] == null) {\n addNewReservationFromUser(r, 2, i);\n return true;\n }\n }\n return false;\n }\n } else {\n // this else block is if you are an economy reservation\n //if you want a window seat we have to check for it in row 0 and 5 aka F and A\n if (r.getSeatPreference() == 'W') {\n for (int i = 0; i < economy[0].length; i++) {\n if (economy[0][i] == null) {\n addNewReservationFromUserEconomy(r, 0, i);\n return true;\n }\n }\n for (int i = 0; i < economy[5].length; i++) {\n if (economy[5][i] == null) {\n addNewReservationFromUserEconomy(r, 5, i);\n return true;\n }\n }\n //if you want a middle seat we have to check for it in row 1 and 4 aka E and B\n } else if (r.getSeatPreference() == 'M') {\n for (int i = 0; i < economy[1].length; i++) {\n if (economy[1][i] == null) {\n addNewReservationFromUserEconomy(r, 1, i);\n return true;\n }\n }\n\n for (int i = 0; i < economy[4].length; i++) {\n if (economy[4][i] == null) {\n addNewReservationFromUserEconomy(r, 4, i);\n return true;\n }\n }\n //if you want an aisle seat we have to check for it in row 2 and 3 aka D and C\n } else if (r.getSeatPreference() == 'A') {\n for (int i = 0; i < economy[2].length; i++) {\n if (economy[2][i] == null) {\n addNewReservationFromUserEconomy(r, 2, i);\n return true;\n }\n }\n\n for (int i = 0; i < economy[3].length; i++) {\n if (economy[3][i] == null) {\n addNewReservationFromUserEconomy(r, 3, i);\n return true;\n }\n }\n // case if you do not care where you sit\n } else {\n for (int col = 0; col < economy[0].length; col++) {\n\n for (int row = 0; row < economy.length; row++) {\n\n if (economy[row][col] == null) {\n addNewReservationFromUserEconomy(r, row, col);\n return true;\n }\n }\n\n }\n }\n\n }\n return false;\n }", "title": "" }, { "docid": "471129a9466a0836c99c559a3a424ca5", "score": "0.5157807", "text": "public static void FindNumberOfAvailableSeatsForFlight(AirBooking esql){//9\r\n\t\t//\r\n\t\tString flightNum = \"he\";\r\n\t\tString query = \"he\";\r\n\t\tScanner userInput = new Scanner(System.in);\r\n\t\tboolean pass = true;\r\n\ttry{\r\n\t\twhile(pass)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Please Enter your Flight Number: \");\r\n\t\t\tflightNum = userInput.next();\r\n\t\t\t\r\n\t\t\tquery = \"SELECT f.flightNum \" +\r\n\t\t\t\t\t\"FROM Flight f \" +\r\n\t\t\t\t\t\"WHERE f.flightNum = '\" + flightNum+ \"'\";\r\n\t\t\tif( esql.executeQuery(query) < 1)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"FlightNumber Does Not Exist: \");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tpass = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Please Enter Departure Date\");\r\n\t\tString departure = userInput.next();\r\n\t\t\r\n\t\tquery =\t\"SELECT b.flightNum \" +\r\n\t\t\t\t\"FROM Booking b \" +\r\n\t\t\t\t\"WHERE b.flightNum = '\" + flightNum+ \"' AND b.departure = '\"+ departure+\"'\";;\r\n\t\t\r\n\t\t\t\r\n\t\tif(\tesql.executeQuery(query) < 1)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"~No one has booked this flight, all seats availabe for: \");\r\n\t\t\tquery =\t\"SELECT f.flightNum, f.origin, f.destination, '\" + departure+ \"' AS Departure, f.seats AS TotalSeats, 0 AS BookedSeats, f.seats AS RemainingSeats \" +\r\n\t\t\t\t\t\"FROM Flight f \" +\r\n\t\t\t\t\t\"WHERE f.flightNum = '\" + flightNum+ \"'\";\r\n\t\t\tesql.executeQueryAndPrintResult(query);\r\n\t\t}\r\n\t\t\r\n\t\tquery = \"SELECT f.flightNum, f.origin, f.destination, b.departure, COUNT(b.pID) AS BookedSeats, f.seats, (f.seats - COUNT(b.pid)) AS RemainingSeats \" +\r\n\t\t\"FROM Booking b, Flight f \" +\r\n\t\t\"WHERE b.flightNum = '\" + flightNum+ \"' AND f.flightNum = '\" + flightNum+\"' AND b.departure = '\" + departure+\"'\" +\r\n\t\t\"GROUP BY f.flightNum, b.departure \";\r\n\t\t\r\n\t\tesql.executeQueryAndPrintResult(query);\r\n\t}\r\n\tcatch (Exception e){\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t} \t\r\n\t}", "title": "" }, { "docid": "315d6fafc495e3362ead08a2ae079c8c", "score": "0.51431817", "text": "java.lang.String getTicket();", "title": "" }, { "docid": "315d6fafc495e3362ead08a2ae079c8c", "score": "0.51431817", "text": "java.lang.String getTicket();", "title": "" }, { "docid": "315d6fafc495e3362ead08a2ae079c8c", "score": "0.51431817", "text": "java.lang.String getTicket();", "title": "" }, { "docid": "7a0fad00d243caf3a7e8138bc9757fa0", "score": "0.51376235", "text": "public Seat findAvaliableSeat(){\n\t\tif (!this.isFull()){\n\t\t\treturn seats.get(fullSeats);\n\t\t} \n\t\treturn null;\n\t\t\n\t}", "title": "" }, { "docid": "c9693609b0a28c109a71a13c6c1252a4", "score": "0.5136649", "text": "Entity getPassenger(Vector3f seat);", "title": "" }, { "docid": "a68567e080fed5404d787fb9e604422e", "score": "0.51345664", "text": "public EntryDto findEntryBySeat(int seat_id) throws ServiceException;", "title": "" }, { "docid": "08a525c6caff359ef951eb17dd9cf105", "score": "0.51289374", "text": "@Override\n\tpublic List<FlightInfo> getFlightInfoBySeatCapacityGT(int number) {\n\t\treturn flightInfoDAO.findFlightInfoBySeatCapacityGreaterThan(number);\n\t}", "title": "" }, { "docid": "919eebad3caa1b20248a96dc3809bea4", "score": "0.5118892", "text": "public void m_Blazedemo_FlightTicketsDetails()\r\n\t{\n\t\tString VerifyFlightBookingDetailsPageTitle = VerifyHomePageTitle.getText();\r\n\t\tAssert.assertTrue(VerifyFlightBookingDetailsPageTitle.contains(\"Your flight from TLV to SFO has been reserved.\"));\r\n\t\t\r\n\t\tList<WebElement> getSelectedFlilghtDetails = getflightNumbers;\r\n\t\tfor(int i = 1;i<getSelectedFlilghtDetails.size();i++)\r\n\t\t{\r\n\t\t\tString getDetails02 = driver.findElement(By.xpath(\"/html[1]/body[1]/div[2]/p[\"+i+\"]\")).getText();\r\n\t\t\tSystem.out.println(\"Ticket details (0\"+i+\"): \"+getDetails02);\r\n\t\t}\r\n\t\t\r\n\t\tFirstlastName.sendKeys(\"TestName\");\r\n\t\tAddress.sendKeys(\"Test Address 123\");\r\n\t\tCity.sendKeys(\"TestCity\");\r\n\t\tState.sendKeys(\"TestState\");\r\n\t\tZipCode.sendKeys(\"12345\");\r\n\t\tWebElement Cardtype = CardType;\r\n\t\tSelect sel2 = new Select(Cardtype);\r\n\t\tsel2.selectByValue(\"amex\");\r\n\t\tCreditCardNumber.sendKeys(\"987654321\");\r\n\t\t\r\n\t\tNameonCard.sendKeys(\"testName CardHolder\");\r\n\t\tboolean RememberMe_CB = RememberMe.isSelected();\r\n\t\tAssert.assertFalse(RememberMe_CB, \"Remember me - checkbox is not selected\");\r\n\t\t\r\n\t\tPurchaseFlight.click();\r\n\t}", "title": "" }, { "docid": "2ce4ffa9dee09e193f6bcd2de340ea4a", "score": "0.5117351", "text": "public void getFlights () {\n\t\tfltNo.setText(\"\");\n\t\tfltStart.setText(\"\");\n\t\tfltDest.setText(\"\");\n\t\tfltDate.setText(\"\");\n\t\tfltTime.setText(\"\");\n\t\tfltDur.setText(\"\");\n\t\tfltSeats.setText(\"\");\n\t\tfltAvailable.setText(\"\");\n\t\tfltCost.setText(\"\");\n\t\tString tempString = new String(\"FLIGHTS \");\n\t\ttry {\n\t\t\tif (!searchFrom.getText().equals(\"Anywhere\")) {\n\t\t\t\ttempString += searchFrom.getText() + \" \";\n\t\t\t} else {\n\t\t\t\ttempString += \"0 \";\n\t\t\t}\n\t\t\tif (!searchTo.getText().equals(\"Anywhere\")) {\n\t\t\t\ttempString += searchTo.getText() + \" \";\n\t\t\t} else {\n\t\t\t\ttempString += \"0 \";\n\t\t\t}\n\t\t\tif (!searchDepart.getText().equals(\"dd/mm/yyyy\")) {\n\t\t\t\ttempString += searchDepart.getText() + \" \";\n\t\t\t} else {\n\t\t\t\ttempString += \"0 \";\n\t\t\t}\n\t\t\tsocketOut.writeObject(tempString);\n\t\t\tflightStore = (FlightStorage)socketIn.readObject();\n\t\t\tVector <Flight> myFlights = new Vector <Flight> (flightStore.getflights());\n\t\t\tVector <String> tempVector = new Vector <String>();\n\t\t\tfor (int i = 0; i < myFlights.size(); i++) {\n\t\t\t\ttempString = new String(\"\" + myFlights.elementAt(i).getflightNo());\n\t\t\t\twhile (tempString.length() < 5) {\n\t\t\t\t\ttempString += \" \";\n\t\t\t\t}\n\t\t\t\ttempString += \" | From \" + myFlights.elementAt(i).getsource();\n\t\t\t\twhile (tempString.length() < 25) {\n\t\t\t\t\ttempString += \" \";\n\t\t\t\t}\n\t\t\t\ttempString += \" | To \" + myFlights.elementAt(i).getdestination();\n\t\t\t\twhile (tempString.length() < 45) {\n\t\t\t\t\ttempString += \" \";\n\t\t\t\t}\n\t\t\t\ttempString += \" | \" + myFlights.elementAt(i).getdate();\n\t\t\t\twhile (tempString.length() < 58) {\n\t\t\t\t\ttempString += \" \";\n\t\t\t\t}\n\t\t\t\ttempString += \" | Seats \" + myFlights.elementAt(i).getavailableSeats() + \" / \" + myFlights.elementAt(i).gettotalSeats();\n\t\t\t\twhile (tempString.length() < 68) {\n\t\t\t\t\ttempString += \" \";\n\t\t\t\t}\n\t\t\t\ttempVector.add(tempString);\n\t\t\t}\n\t\t\tflightResults.setListData(tempVector);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "046f4433309984436ffe41e311a1821c", "score": "0.5113751", "text": "public List<Flight> getFlightsDeparting(Airport airportCode, DateTime date);", "title": "" }, { "docid": "084207cc4cfaffc08bdf2d536fa12f85", "score": "0.5112001", "text": "public static List<Reservation> getReservations(Customer c) {\r\n\r\n\t\tList<Reservation> res = new ArrayList<>();\r\n\r\n\t\t// For proper data\r\n\t\tString query = \" SELECT distinct l.ResrId, r.seatNo, r.meal, r.class , l.FlightId, \"\r\n\t\t\t\t+ \"l.AirlineId, r.departure, r.arrival, r.PassengerId \" + \"from reservation r, passengers p, legs l \"\r\n\t\t\t\t+ \"where r.PassengerId = p.id \" + \"And p.fname = ? \" + \"And r.Id = l.ResrId\";\r\n\r\n\t\ttry {\r\n\t\t\tcurrentCon = ConnectionManager.getConnection();\r\n\t\t\tps = currentCon.prepareStatement(query);\r\n\r\n\t\t\tps.setString(1, c.getFname());\r\n\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tReservation r = new Reservation();\r\n\t\t\t\tr.setResrId(rs.getInt(1));\r\n\t\t\t\tr.setSeatNo(rs.getString(2));\r\n\t\t\t\tr.setMeal(rs.getString(3));\r\n\t\t\t\tr.setClassType(rs.getString(4));\r\n\t\t\t\tr.setFlightNo(rs.getInt(5));\r\n\t\t\t\tr.setAirlineId(rs.getString(6));\r\n\t\t\t\tr.setDept(rs.getString(7));\r\n\t\t\t\tr.setArri(rs.getString(8));\r\n\t\t\t\tr.setPassId(rs.getInt(9));\r\n\r\n\t\t\t\t// To see if Flight is domestic or international\r\n\t\t\t\tps2 = currentCon.prepareStatement(\"SELECt a.country from airports a where a.id = ? \"\r\n\t\t\t\t\t\t+ \"and a.country = ( select b.country from airports b where b.id = ?)\");\r\n\t\t\t\tps2.setString(1, r.getDept());\r\n\t\t\t\tps2.setString(2, r.getArri());\r\n\r\n\t\t\t\trs2 = ps2.executeQuery();\r\n\t\t\t\tif (rs2.next())\r\n\t\t\t\t\tr.setDomestic(\"Domestic\");\r\n\t\t\t\telse\r\n\t\t\t\t\tr.setDomestic(\"International\");\r\n\r\n\t\t\t\tres.add(r);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tcloseSockets();\r\n\t\t}\r\n\r\n\t\treturn res;\r\n\t}", "title": "" }, { "docid": "fa5bb9d36e744842eeac25ac8eb723c3", "score": "0.511045", "text": "@Override\n\tpublic Ticket retrieveTicketByID(int id, Connection conn) {\n\n\t\t// TODO Auto-generated method stub\n\t\tString sql = \"Select * from tickets where ticket_id = (?)\";\n\n\t\tTicket ticket = null;\n\t\ttry {\n\n\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n\n\t\t\tps.setInt(1, id);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tTicket.TYPE ty = Ticket.TYPE.valueOf(rs.getString(\"tkttype\"));\n\t\t\t\tdouble amount = rs.getDouble(\"amount\");\n\t\t\t\tTicket.APPROVAL approval = Ticket.APPROVAL.valueOf(rs.getString(\"approval\"));\n\t\t\t\tString timeStamp = rs.getString(\"submission_date\");\n\t\t\t\tint user_id = rs.getInt(\"user_id\");\n\t\t\t\tint tkt_id = rs.getInt(\"ticket_id\");\n\t\t\t\tString tkt_description = rs.getString(\"tkt_description\");\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\n\t\t\t\tticket = new Ticket(ty, amount, approval, timeStamp, user_id, tkt_id, tkt_description);\n\n\t\t\t}\n\n\t\t\t\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tMasterServlet.loggy.warn(\"TicketFailed\");\n\t\t\t\n\n\t\t}\n\n\t\treturn ticket; // WE SHOULD BE ABLE TO GET THIS TICKET FROM POSTMAN NOW\n\n\t}", "title": "" }, { "docid": "c99782d5e0ad437d7aca65ae11577340", "score": "0.51068544", "text": "public FlightDetail getFlightDetails(int flightId) {\n\n for (Flight f : this.flights) {\n if (flightId == f.getFlightId()) {\n return new FlightDetail(flightId, f.getSource(), f.getDestination(), f.getDepartureTime(),\n f.getAirfare(), f.getAvailability());\n }\n }\n return null;\n }", "title": "" }, { "docid": "f90a6fd3e0eb56782de653bcbec2ae6d", "score": "0.50907177", "text": "List<Ticket> getAllTickets();", "title": "" }, { "docid": "7d1076ef578b4fd3d2d349ace1291a23", "score": "0.50870913", "text": "public int ticketPoints() {\n int maxID = 0;\n for (Route route : routes()) {\n if (route.station1().id() > maxID) {\n maxID = route.station1().id();\n }\n if (route.station2().id() > maxID) {\n maxID = route.station2().id();\n }\n }\n\n //use max+1 to build stationPartition\n var networkStation = new StationPartition.Builder(maxID + 1);\n for (Route route : routes()) {\n networkStation.connect(route.station1(), route.station2());\n }\n //for loop ticket for points\n int maxTicketPoints = 0;\n for (Ticket ticket : tickets) {\n maxTicketPoints = maxTicketPoints + ticket.points(networkStation.build());\n }\n return maxTicketPoints;\n }", "title": "" }, { "docid": "c25afdd2cc6b955515e3869c62c4a0d1", "score": "0.5074729", "text": "public ArrayList<Flight> getData() {\n ArrayList<Flight> flights = new ArrayList<>();\n String[] columns = new String[]{DBHelper.COL_flightNo,\n DBHelper.COL_status, DBHelper.COL_iataNumber,\n DBHelper.COL_icaoNumber, DBHelper.COL_latitude,\n DBHelper.COL_longitude, DBHelper.COL_altitude,\n DBHelper.COL_direction, DBHelper.COL_horizontal,\n DBHelper.COL_aIATA, DBHelper.COL_dIATA\n };\n Cursor cursor = database.query(DBHelper.FLIGHT_TABLE, columns, null,\n null, null, null, null);\n if (cursor.moveToFirst()) {\n do {\n Flight flight = new Flight();\n String flightNo = cursor.getString(0);\n String status = cursor.getString(1);\n String iataNo = cursor.getString(2);\n String icaoNo = cursor.getString(3);\n String lat = cursor.getString(4);\n String lon = cursor.getString(5);\n String alt = cursor.getString(6);\n String direct = cursor.getString(7);\n String hori = cursor.getString(8);\n String aIATA = cursor.getString(9);\n String dIATA = cursor.getString(10);\n flight.setNumber(flightNo);\n flight.setStatus(status);\n flight.setIataNumber(iataNo);\n flight.setIcaoNumber(icaoNo);\n flight.setLatitude(Double.parseDouble(lat));\n flight.setLongitude(Double.parseDouble(lon));\n flight.setAltitude(Double.parseDouble(alt));\n flight.setDirection(Double.parseDouble(direct));\n flight.setHorizontal(Double.parseDouble(hori));\n flight.setaIATA(aIATA);\n flight.setdIATA(dIATA);\n flights.add(flight);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return flights;\n }", "title": "" }, { "docid": "bba6395957646a359fa99169488e34dd", "score": "0.5073269", "text": "public boolean findFlight(Flight flight) { return this.flights.contains(flight);}", "title": "" }, { "docid": "e61406d0c89802fb59ff52f51d680885", "score": "0.50711936", "text": "public OffStreetParking getOffStreetParkingByAreaServed(String areaServed){\n OffStreetParking offStreetParking = new OffStreetParking();\n\n SQLiteDatabase db = this.getReadableDatabase();\n // Define a projection that specifies which columns from the database\n // you will actually use after this query.\n String[] projection = {\n TBL_PARKING_ID,\n TBL_PARKING_TYPE,\n TBL_PARKING_NAME,\n TBL_PARKING_CATEGORY,\n TBL_PARKING_LOCATION,\n TBL_PARKING_DESCRIPTION,\n TBL_PARKING_AREASERVED,\n TBL_PARKING_STATUS\n };\n\n String selection = TBL_PARKING_AREASERVED + \" = ?\";\n String[] selectionArgs = {areaServed};\n Cursor cursor = db.query(\n Tables.TBL_PARKING, // The table to query\n projection, // The columns to return\n selection, // The columns for the WHERE clause\n selectionArgs, // The values for the WHERE clause\n null, // don't group the rows\n null, // don't filter by row groups\n null // The sort order\n );\n\n if(cursor != null) {\n if(cursor.moveToFirst()){\n offStreetParking.setIdOffStreetParking(cursor.getString(0));\n offStreetParking.setType(cursor.getString(1));\n offStreetParking.setName(cursor.getString(2));\n offStreetParking.setCategory(cursor.getString(3));\n offStreetParking.setLocation(cursor.getString(4));\n offStreetParking.setDescription(cursor.getString(5));\n offStreetParking.setAreaServed(cursor.getString(6));\n offStreetParking.setStatus(cursor.getString(7));\n }else{\n offStreetParking = null;\n }\n }else{\n offStreetParking = null;\n }\n db.close();\n\n return offStreetParking;\n }", "title": "" }, { "docid": "cc544dff9d6d6682a3785d4ca081cbc2", "score": "0.5060786", "text": "public int[][][] checkAvailable(Date date, int startStation, int endStation, \n\t\t\tint trainID, int count) throws TicketOrderException {\n\t\t//TODO\n\t\tTrainInfo train = null;\n\t\tint startStationOrder = 0;\n\t\tint endStationOrder = 0;\n\t\tint[][][] seatTable;\n\t\tfor (TrainInfo i : trains) {\n\t\t\t//System.out.println(train);\n\t\t\tif(i.getTrainID() == trainID) {\n\t\t\t\ttrain = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(train == null) throw new TicketOrderException(ExceptionTYPE.TRAINID_NOFOUND);\n\t\telse{\n\t\t\tstartStationOrder = train.getOrder(startStation);\n\t\t\tendStationOrder = train.getOrder(endStation);\n\t\t\tseatTable = new int[1+endStationOrder-startStationOrder][][];\n\t\t\tseatTable[0] = new int[1][2];\n\t\t\tseatTable[0][0][0] = startStationOrder;\n\t\t\tseatTable[0][0][1] = endStationOrder;\n\t\t}\n\t\tif((startStationOrder==0)||(endStationOrder==0)) throw new TicketOrderException(ExceptionTYPE.STATATIONID_NOFOUND);\n\t\telse{\n\t\t\tfor(int i=startStationOrder;i<endStationOrder;i++)\n\t\t\t\tseatTable[i-startStationOrder+1] = readSeatTable(date, i, trainID);\n\t\t\tnewTicket = new Ticket(date,train,startStationOrder,endStationOrder);\n\t\t\treturn seatTable;\n\t\t}\n\t}", "title": "" }, { "docid": "fad96eb046fb5d4c491eb1ba24938deb", "score": "0.50596064", "text": "public static List<Reservation> getCurrentReservations(Customer c) {\r\n\r\n\t\tList<Reservation> res = new ArrayList<>();\r\n\r\n\t\tString query = \" SELECT distinct l.ResrId, r.seatNo, r.meal, r.class , l.FlightId, \"\r\n\t\t\t\t+ \"l.AirlineId, r.departure, r.arrival, r.PassengerId, l.deptDate \"\r\n\t\t\t\t+ \"from reservation r, passengers p, legs l \" + \"where r.PassengerId = p.id \" + \"And p.fname = ? \"\r\n\t\t\t\t+ \"And r.Id = l.ResrId\";\r\n\r\n\t\ttry {\r\n\t\t\tcurrentCon = ConnectionManager.getConnection();\r\n\t\t\tps = currentCon.prepareStatement(query);\r\n\r\n\t\t\tps.setString(1, c.getFname());\r\n\r\n\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tReservation r = new Reservation();\r\n\t\t\t\tr.setResrId(rs.getInt(1));\r\n\t\t\t\tr.setSeatNo(rs.getString(2));\r\n\t\t\t\tr.setMeal(rs.getString(3));\r\n\t\t\t\tr.setClassType(rs.getString(4));\r\n\t\t\t\tr.setFlightNo(rs.getInt(5));\r\n\t\t\t\tr.setAirlineId(rs.getString(6));\r\n\t\t\t\tr.setDept(rs.getString(7));\r\n\t\t\t\tr.setArri(rs.getString(8));\r\n\t\t\t\tr.setPassId(rs.getInt(9));\r\n\t\t\t\tr.setDeptDate(rs.getTimestamp(10));\r\n\r\n\t\t\t\t// To see if Flight is domestic or international\r\n\t\t\t\tps2 = currentCon.prepareStatement(\"SELECt a.country from airports a where a.id = ? \"\r\n\t\t\t\t\t\t+ \"and a.country = ( select b.country from airports b where b.id = ?)\");\r\n\t\t\t\tps2.setString(1, r.getDept());\r\n\t\t\t\tps2.setString(2, r.getArri());\r\n\r\n\t\t\t\trs2 = ps2.executeQuery();\r\n\t\t\t\tif (rs2.next())\r\n\t\t\t\t\tr.setDomestic(\"Domestic\");\r\n\t\t\t\telse\r\n\t\t\t\t\tr.setDomestic(\"International\");\r\n\r\n\t\t\t\tres.add(r);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tcloseSockets();\r\n\t\t}\r\n\r\n\t\treturn res;\r\n\t}", "title": "" }, { "docid": "2fe856d4f14b186c84c9e7bd51c0ed90", "score": "0.50589174", "text": "@RequestMapping(method = RequestMethod.POST, value = \"/SearchFlight\")\n public Response SearchFlight() {\n \tString readJson = readJson();\n \tMap<String, String> flightData = new HashMap<>();\n \tflightData.put(\"flightNumber\", \"AI123\");\n \tflightData.put(\"deptTime\", \"0800\");\n \tflightData.put(\"arrivalTime\", \"1200\");\n \tflightData.put(\"stops\", \"0\");\n \t\n \tMap<String, String> flightData1 = new HashMap<>();\n \tflightData1.put(\"flightNumber\", \"AI321\");\n \tflightData1.put(\"deptTime\", \"1200\");\n \tflightData1.put(\"arrivalTime\", \"1500\");\n \tflightData1.put(\"stops\", \"0\");\n \t\n \tList<Map<String, String>> data = new ArrayList<>();\n \tdata.add(flightData);\n \tdata.add(flightData1);\n return new Response(template1+readJson, template1+readJson, data, new ArrayList<String>(), \n \t\t\"MakeMyTrip\");\n }", "title": "" }, { "docid": "a984a0ba816be18f427ef4740530d3ba", "score": "0.50582904", "text": "public List<Flight> getFlights(int routeNumber){\n\t\tList<Flight> flights = new ArrayList<>();\n\t\tString oneLine = \"\";\n\t\t\n\t\t//Attributes in the flight-route-schedule.csv:\n\t\t//AUTO_INCREMENT_id + flight_id + plane_id + route_number + depart_time + arrive_time\n\t\t// + First_Class_SeatS + Business_Class_Seats + Premium_Economic_Seats + Economic_Class_Seats;\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(scheduleFile));\n\t\t\twhile((oneLine = reader.readLine()) != null){\n\t\t\t\t\n\t\t\t\tString [] words = oneLine.split(\",\");\n\t\t\t\t\n\t\t\t\tString tmpFlightID = words[1];\n\t\t\t\tint tmpPlaneID = Integer.parseInt(words[2]);\t\t\t\t\n\t\t\t\tint tmpRouteNum = Integer.parseInt(words[3]);\n\t\t\t\tint fcSeat = Integer.parseInt(words[6]);\n\t\t\t\tint bcSeat = Integer.parseInt(words[7]);\n\t\t\t\tint pecSeat = Integer.parseInt(words[8]);\n\t\t\t\tint ecSeat = Integer.parseInt(words[9]);\n\t\t\t\t\n\t\t\t\tif(routeNumber == tmpRouteNum){\n\t\t\t\t\tFlight aflight = new Flight(tmpFlightID,tmpPlaneID,tmpRouteNum,words[4],words[5],fcSeat,bcSeat,pecSeat,ecSeat);\n\t\t\t\t\tflights.add(aflight);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treader.close();\n\t\t}catch(Exception e){e.printStackTrace();\n\t\t\t \n\t\t}\n\t\t\n\t\treturn flights;\n\t}", "title": "" }, { "docid": "6eef0d212206690ba83c78d1f91cf581", "score": "0.505498", "text": "public ArrayList<Integer> findAndHoldSeats(int hold_ticket, int venueLevel, String customer_email) {\n\t\tScanner hold = new Scanner(System.in);\n\t\tint capacity_of_level = numSeatsAvailable(venueLevel);\n\t\tconvert_hold_toAvailable(venueLevel);\n\t\tArrayList<Integer> seatsIds = new ArrayList<Integer>();\n\t\tif (capacity_of_level >= hold_ticket) {\n\t\t\tArrayList<Level> al = v.getVenueLevel();\n\t\t\tint count = 0;\n\t\t\tfor (Level level : al) {\n\t\t\t\tif (venueLevel == level.getLevel_id()) {\n\n\t\t\t\t\tArrayList<Rows> ar = level.getrow();\n\n\t\t\t\t\tfor (Rows row : ar) {\n\t\t\t\t\t\tArrayList<SeatHold> s = row.getSeat();\n\t\t\t\t\t\tfor (SeatHold seat : s) {\n\t\t\t\t\t\t\tif (seat.seatStatus == SeatStatusType.AVAILABLE) {\n\t\t\t\t\t\t\t\tif (count >= hold_ticket) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Tickets hold\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(seatsIds);\n\t\t\t\t\t\t\t\t\treturn seatsIds;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tseat.seatStatus = SeatStatusType.ONHOLD;\n\t\t\t\t\t\t\t\tDate d = new Date();\n\t\t\t\t\t\t\t\tseat.setOnHoldTime(d.getTime());\n\t\t\t\t\t\t\t\tseatsIds.add(seat.getSeatid());\n\t\t\t\t\t\t\t\tcount++;\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t/*SeatHold hold_seatid = new SeatHold();\n\t\tif (hold_seatid.seatStatus == SeatStatusType.AVAILABLE) {\n\t\t\thold_seatid.seatStatus = SeatStatusType.ONHOLD;\n\t\t} else {\n\t\t\tcheckholdtickets(hold_ticket);\n\t\t}\n\t\treturn seatsIds;\n\t}\n// ******************************\n\tvoid checkholdtickets(int hold_ticket)\n\t{\n\t\tSeatHold hold_seatid = new SeatHold();\n\t\t// if trying to hold the reserrved seats\n\t\tif (hold_seatid.seatStatus == SeatStatusType.RESERVED) {\n\t\t\tSystem.out.println(\"Sorry it is already being boooked\");\n\t\t} \n\t\t// if the seats is available making it hold\n\t\telse if (hold_seatid.seatStatus == SeatStatusType.ONHOLD) {\n\t\t\t\n\t\t}\n// ************************************\n\t\tCalendar cal = Calendar.getInstance();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tString format = sdf.format(cal.getTime());\n\t\tSystem.out.println(format);\n\t\t*/\n\t\treturn seatsIds;\n\t}", "title": "" }, { "docid": "d6799ee8eda32c3ed191ad87eac3259d", "score": "0.50449765", "text": "@Select({\n \"select\",\n \"SCENIC_SPOT_NAME, ADULT_TICKET_PRICE, CHILD_TICKET_PRICE, REMAINING_TICKETS\",\n \"from tickets\",\n \"where SCENIC_SPOT_NAME = #{scenicSpotName,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"SCENIC_SPOT_NAME\", property=\"scenicSpotName\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"ADULT_TICKET_PRICE\", property=\"adultTicketPrice\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"CHILD_TICKET_PRICE\", property=\"childTicketPrice\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"REMAINING_TICKETS\", property=\"remainingTickets\", jdbcType=JdbcType.INTEGER)\n })\n Tickets selectByPrimaryKey(TicketsKey key);", "title": "" }, { "docid": "5f05ec84d8e3db86794474ea6e019129", "score": "0.50423723", "text": "public int ticketPoints() {\n int id = 0;\n\n for (Route r : routes) {\n id = Math.max(id, r.station1().id());\n id = Math.max(id, r.station2().id());\n }\n\n final StationPartition.Builder stationPartitionBuilder = new StationPartition.Builder(id + 1);\n\n routes.forEach(route -> stationPartitionBuilder.connect(route.station1(), route.station2()));\n final StationPartition connectivity = stationPartitionBuilder.build();\n\n return tickets.stream()\n .mapToInt(i -> i.points(connectivity))\n .sum();\n }", "title": "" }, { "docid": "4513f713b4b63bfc50c231a2326ee8d7", "score": "0.504168", "text": "@Override\n public List<BookEntity> findByFlight(FlightEntity flight) {\n try {\n List<BookEntity> books = new ArrayList();\n Query query = this.entityManager.createQuery(\"from BookEntity where flight = :flight\");\n query.setParameter(\"flight\", flight);\n return query.getResultList();\n } catch(Exception e) {\n System.out.println(e.getMessage());\n return null;\n }\n }", "title": "" }, { "docid": "ea27d57b8afae119391f5160dbf705ce", "score": "0.50380224", "text": "@Test\n public void testPurchaseTicket_success() throws Exception {\n final FlightDTO flight;\n final FlightKey key;\n final TicketDTO ticket;\n final String departureDate;\n final PurchaseTicketDTO params;\n \n log.info(\"RUNNING REST TEST: purchaseTicket (case: success)\");\n \n params = new PurchaseTicketDTO();\n params.setPassengers(Collections.singleton(\"Passenger\"));\n \n flight = new FlightDTO();\n flight.setFlightCode(\"FR0001\");\n departureDate = \"2017-04-12T10:35:00\";\n flight.setDepartureDate(LocalDateTime.parse(departureDate));\n \n key = new FlightKey(flight.getFlightCode(), flight.getDepartureDate());\n \n ticket = new TicketDTO(\"123456\", params.getPassengers(), flight);\n \n when(this.service.purchaseTicket(key, params)).thenReturn(ticket);\n \n this.mvc.perform(post(\"/flights/{flightCode}/ticket\", key.getFlightCode()).queryParam(\n \"departure-date\", departureDate.substring(0, 16)).accept(MediaType.\n APPLICATION_JSON).contentType(MediaType.APPLICATION_JSON).content(\n jsonContent(params))).andDo(print()).andExpect(status().isCreated()).\n andExpect(jsonPath(\"$.code\", anything())).\n andExpect(jsonPath(\"$.passengers\", hasSize(1))).\n andExpect(jsonPath(\"$.flight.departure-date\", is(departureDate))).\n andExpect(jsonPath(\"$.flight.flight-code\", is(flight.getFlightCode())));\n }", "title": "" }, { "docid": "796f039cb09e12e1fd9691c84ccbfdc1", "score": "0.50359166", "text": "public List<Ticket> getAllTickets();", "title": "" }, { "docid": "03563de4fd12c7bb73bf75cdd9a22869", "score": "0.5029711", "text": "public List<Flight> getAllFlights();", "title": "" }, { "docid": "83b721381373553b35984901d3b88f81", "score": "0.5004745", "text": "public Ticket getTicket(Integer ticketId) {\n\t\treturn ticketDao.findOne(ticketId);\n\t}", "title": "" }, { "docid": "900b667202e55514e6a8a949b341ee9b", "score": "0.4998079", "text": "@GetMapping(\"/seats/{trainScheduleId}\")\n\tpublic ResponseEntity<SeatResponseDto> findAvailableSeatDetails(@PathVariable Long trainScheduleId) {\n\t\tSeatResponseDto seatResponseDto = trainService.findAvailableSeatDetails(trainScheduleId);\n\t\tif(seatResponseDto.getMessage().equalsIgnoreCase(\"no seat is available\"))\n\t\t\tthrow new ResourceNotFoundException(\"No seats are available at this moment\",HttpStatus.NOT_FOUND);\n\t\telse \n\t\treturn new ResponseEntity<SeatResponseDto>(seatResponseDto, HttpStatus.OK);\n\t}", "title": "" }, { "docid": "ac41f3787177e1bd04ba33b78513d92e", "score": "0.49939027", "text": "public ResultSet searchFlight(int whichCase, String src, String dest, String date)\r\n {\r\n // 1- Src 2- Src Dest 3- Src Date 4- All\r\n ResultSet myRs = null;\r\n PreparedStatement create = null;\r\n try {\r\n if (whichCase == 1) {\r\n create = myConn.prepareStatement(\"SELECT * FROM Flights WHERE Source=?\");\r\n create.setString(1, src);\r\n } else if (whichCase == 2) {\r\n create = myConn.prepareStatement(\"SELECT * FROM Flights WHERE Source=? and Destination=?\");\r\n create.setString(1, src);\r\n create.setString(2, dest);\r\n\r\n } else if (whichCase == 3) {\r\n create = myConn.prepareStatement(\"SELECT * FROM Flights WHERE Source=? and Date=?\");\r\n create.setString(1, src);\r\n create.setString(2, date);\r\n\r\n } else if (whichCase == 4) {\r\n create = myConn.prepareStatement(\"SELECT * FROM Flights WHERE Source=? and Destination=? and Date=?\");\r\n create.setString(1, src);\r\n create.setString(2, dest);\r\n create.setString(3, date);\r\n\r\n } else {\r\n System.err.println(\"Invalide parameter for Case\");\r\n System.exit(1);\r\n }\r\n\r\n //Execute Statement\r\n myRs = create.executeQuery();\r\n }\r\n catch (SQLException e){\r\n System.err.println(\"Error Executing searchFlight method\");\r\n e.printStackTrace();\r\n System.exit(1);\r\n }\r\n return myRs;\r\n }", "title": "" }, { "docid": "6928c71edd2000e3d7e93ff1de089663", "score": "0.49881583", "text": "@Override\n\tpublic Ticket getById(int ticketId) {\n\t\treturn dao.getById(ticketId);\n\t}", "title": "" }, { "docid": "3852e504c8b0609c6173d34830cec3d9", "score": "0.498573", "text": "public static void bookFlight(TripDetail td, int pid) {\r\n\r\n\t\tfor (int i = 0; i < td.getSeats(); i++) {\r\n\t\t\tString query = \"INSERT INTO reservation ( totalFare, meal, PassengerId, class, \"\r\n\t\t\t\t\t+ \"seatNo, departure, arrival) VALUES (?, ?, ?, ?, ?, ?, ?)\";\r\n\r\n\t\t\ttry {\r\n\t\t\t\tcurrentCon = ConnectionManager.getConnection();\r\n\r\n\t\t\t\tString dept, arri;\r\n\r\n\t\t\t\t// The Airport for Departure\r\n\t\t\t\tps = currentCon.prepareStatement(\"Select airportIdOrigin from stopsat where s_d_id = ? And stopno = ?\");\r\n\t\t\t\tps.setInt(1, td.getS_d_id());\r\n\t\t\t\tps.setInt(2, td.getStartStop());\r\n\r\n\t\t\t\trs = ps.executeQuery();\r\n\t\t\t\trs.next();\r\n\r\n\t\t\t\tdept = rs.getString(1);\r\n\r\n\t\t\t\tps.close();\r\n\t\t\t\trs.close();\r\n\t\t\t\tps = null;\r\n\t\t\t\trs = null;\r\n\r\n\t\t\t\t// The airport for Arrival\r\n\t\t\t\tps = currentCon\r\n\t\t\t\t\t\t.prepareStatement(\"Select airportIdDestination from stopsat where s_d_id = ? And stopno = ?\");\r\n\t\t\t\tps.setInt(1, td.getS_d_id());\r\n\t\t\t\tps.setInt(2, td.getStartStop() + td.getStops() - 1);\r\n\r\n\t\t\t\trs = ps.executeQuery();\r\n\t\t\t\trs.next();\r\n\r\n\t\t\t\tarri = rs.getString(1);\r\n\r\n\t\t\t\tps.close();\r\n\t\t\t\trs.close();\r\n\t\t\t\tps = null;\r\n\t\t\t\trs = null;\r\n\r\n\t\t\t\t// Add a new Reservation with Airport and Passenger Data\r\n\t\t\t\tps = currentCon.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\t\tps.setInt(1, td.getTotalFare() / td.getSeats());\r\n\t\t\t\tps.setString(2, \"Chips\");\r\n\t\t\t\tps.setInt(3, pid);\r\n\t\t\t\tps.setString(4, \"Economy\");\r\n\r\n\t\t\t\tRandom r = new Random();\r\n\t\t\t\tchar c = (char) (r.nextInt(26) + 'A');\r\n\t\t\t\tint n = (int) (Math.random() * 50) + 1;\r\n\t\t\t\tString s = Integer.toString(n) + c;\r\n\t\t\t\tps.setString(5, s);\r\n\t\t\t\tps.setString(6, dept);\r\n\t\t\t\tps.setString(7, arri);\r\n\r\n\t\t\t\tps.executeUpdate();\r\n\r\n\t\t\t\trs = ps.getGeneratedKeys();\r\n\t\t\t\trs.next();\r\n\t\t\t\tint rid = rs.getInt(1);\r\n\r\n\t\t\t\trs.close();\r\n\t\t\t\trs = null;\r\n\r\n\t\t\t\tps.close();\r\n\t\t\t\tps = null;\r\n\r\n\t\t\t\t// Making entries in Legs with Reservation id\r\n\t\t\t\tps = currentCon.prepareStatement(\r\n\t\t\t\t\t\t\"Select s.FlightId, s.AirlineId, s.deptTime from stopsat s where s.s_d_id = ? And s.stopNo >= ? And s.stopNo < ? + ?\");\r\n\t\t\t\tps.setInt(1, td.getS_d_id());\r\n\t\t\t\tps.setInt(2, td.getStartStop());\r\n\t\t\t\tps.setInt(3, td.getStartStop());\r\n\t\t\t\tps.setInt(4, td.getStops());\r\n\r\n\t\t\t\trs = ps.executeQuery();\r\n\r\n\t\t\t\tint count = 1;\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tps2 = currentCon.prepareStatement(\r\n\t\t\t\t\t\t\t\"INSERT INTO legs( FlightId, AirlineId, ResrId, fromStopNo, legNo, deptDate) VALUES (?,?,?,?,?,?)\");\r\n\t\t\t\t\tps2.setString(1, rs.getString(1));\r\n\t\t\t\t\tps2.setString(2, rs.getString(2));\r\n\t\t\t\t\tps2.setInt(3, rid);\r\n\t\t\t\t\tps2.setInt(4, td.getStartStop() + count - 1);\r\n\t\t\t\t\tps2.setInt(5, count);\r\n\t\t\t\t\tps2.setTimestamp(6, rs.getTimestamp(3));\r\n\t\t\t\t\tps2.executeUpdate();\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tcloseSockets();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "21ea65c5b65b73642bc5f38a262fcbbe", "score": "0.49754664", "text": "@Override\r\n public String toString() {\r\n return \"Flight at (\" + x + \", \" + y + \")\";\r\n }", "title": "" }, { "docid": "1a72bf66db75ccd109aa228d3fc586e2", "score": "0.49709022", "text": "public void onlineFlightTable () {\n flightDao\n .getAllFlights()\n .stream()\n .filter(flight -> flight.getDeparturePlace().equals(\"Kyiv\"))\n .filter(Flight::getTimeToFlight)\n .forEach(flight -> System.out.println(flight.toString()));\n }", "title": "" }, { "docid": "35c0e5429dd4b903eb8d8e9b830631b7", "score": "0.4964643", "text": "boolean testGetFlights(Tester t)\n\t{\n\t\treturn t.checkExpect(flightGraph.getFlights(), testPairs);\n\t}", "title": "" }, { "docid": "0e208691b0c9694cc3a699d878ab8979", "score": "0.4964459", "text": "public ArrayList<String> searchFlight(String a, String b){\n boolean any=false;\n ArrayList<String> vuelosDisponibles = new ArrayList<String>();\n for(int i=0; i<Flight.amountOfFlights;i++){//para vuelos directos\n if(flights[i].origin.nombreAero.equals(a)){\n if(flights[i].destiny.nombreAero.equals(b)){\n vuelosDisponibles.add(flights[i].toString());\n any=true;\n }\n }\n }\n /*System.out.println(\"Vuelos con escala: \");\n for(int i=0;i<amountOfFlights;i++){//para vuelos con escala\n for(int j=0;j<amountOfFlights;j++){\n if(i!=j){\n if(flights[i].origen.nombreAero==a && flights[j].destiny.nombreAero==b){\n System.out.println(\"- \"+flights[i].toString());\n System.out.println(\"- Vuelo con escala en \"+flights[i].destiny.nombreAero);\n System.out.println(\"- \"+flights[j].toString());\n any=true;\n }\n }\n }\n }*/\n\n return vuelosDisponibles;\n }", "title": "" }, { "docid": "72f73792be771a205ee7d3be47137c82", "score": "0.4953214", "text": "public ResponseEntity<?> searchReservation(int passengerId, String fromSource,String toDestination,String flightNumber) throws JSONException {\n\n boolean isPassengerFound = false, isSourceFound = false, isDestinationFound = false;\n\n Passenger passenger = null;\n List<Reservation> reservations = new ArrayList<>();\n List<Flight> flights = new ArrayList<>();\n List<Flight> holder = new ArrayList<>();\n\n if(passengerId != -1){\n //Then a valid passenger number\n isPassengerFound = true;\n passenger = passengerRepository.findByPassengerNumber(passengerId);\n //check if the passenger exists\n if(passenger != null){\n //get the reservations\n reservations = passenger.getReservations();\n }\n }\n if(!flightNumber.equals(\"flightNumber\")) {\n\n if((isSourceFound || isDestinationFound || isPassengerFound) && reservations.size() == 0 ){\n for(Reservation reservation : reservations){\n flights = reservation.getFlights();\n for(Flight flight : flights){\n if(!flight.getFlightNumber().equals(flightNumber)){\n holder.add(flight);\n }\n }\n for(Flight flight2 : holder){\n flights.remove(flight2);\n }\n //If the flights size is 0\n if(flights.size() == 0){\n reservations.remove(reservation);\n }\n\n }\n }\n else{\n List<Flight> AllTheFlights = (List<Flight>) flightRepository.findAll();\n List<Flight> newTempFlightHolder = new ArrayList<>();\n getStuffDone(toDestination, AllTheFlights ,newTempFlightHolder, reservations );\n }\n }\n if(!fromSource.equals(\"from\")) {\n\n if(isPassengerFound){\n for(Reservation reservation : reservations) {\n holder = new ArrayList<>();\n\n flights = reservation.getFlights();\n\n for(Flight flight : flights){\n\n if(!flight.getFromPlace().equals(fromSource)){\n holder.add(flight);\n }\n }\n for(Flight flight2 : holder){\n flights.remove(flight2);\n }\n if(flights.size() == 0)\n reservations.remove(reservation);\n }\n }\n else{\n getStuffDone(fromSource, (List<Flight>) flightRepository.findAll(), new ArrayList<>(), reservations );\n }\n\n isSourceFound = true;\n }\n if(!toDestination.equals(\"to\")) {\n\n holder = new ArrayList<>();\n\n if((isPassengerFound || isSourceFound) && reservations.size() == 0 ){\n for(Reservation reservation : reservations){\n flights = reservation.getFlights();\n for(Flight flight : flights){\n if(!flight.getToPlace().equals(toDestination))\n holder.add(flight);\n }\n for(Flight flight2 : flights){\n flights.remove(flight2);\n }\n if(flights.size() == 0){\n reservations.remove(reservation);\n }\n }\n }\n else{\n List<Flight> AllTheFlights = (List<Flight>) flightRepository.findAll();\n List<Flight> newTempFlightHolder = new ArrayList<>();\n getStuffDone(toDestination, AllTheFlights ,newTempFlightHolder, reservations );\n }\n isDestinationFound = true;\n }\n\n return getReservation(reservations);\n }", "title": "" }, { "docid": "973929d1161d182164ab1dea8e49cfb6", "score": "0.49453247", "text": "public Flight selectFlightById(Integer id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e15b507977bb26226644404935640ea8", "score": "0.49446735", "text": "List<Reservation> findByTrip(Trip trip);", "title": "" }, { "docid": "f258b7a642a63639bd0100e993f7f6d7", "score": "0.49444315", "text": "public List<BookEntity> findByFlight(FlightEntity flight);", "title": "" }, { "docid": "19d905a9e1918bd868b25de007fdde12", "score": "0.49401152", "text": "public void generateTickets ()\t{\r\n\t\tchar[] letters = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','X','Y','Z'};\r\n\t\ttry{\r\n\t\t\tString rownumberstring = JOptionPane.showInputDialog(\"Enter the number of rows in the venue\");\r\n\t\t\tInteger numberOfRows = Integer.parseInt(rownumberstring);\r\n\t\t\tSystem.out.println(\"Number of rows/26: \" + numberOfRows*1.0/26.0);\r\n\t\t\tdouble numChars = Math.ceil(numberOfRows*1.0/26.0); //Upper limit is A, AA, AAA?\r\n\t\t\tSystem.out.println(\"numChars: \" + numChars);\r\n\t\t\tArrayList<String> rows = new ArrayList<String>();\r\n\t\t\tfor (int i = 0; i<numChars; i++){\r\n\t\t\t\tfor (char alphabet = 'A'; alphabet<='Z';alphabet++){\r\n\t\t\t\t\tif (i!=0){\r\n\t\t\t\t\t\tString s = Character.toString(letters[i-1]);\r\n\t\t\t\t\t\trows.add(s+Character.toString(alphabet));\r\n\t\t\t\t\t\tSystem.out.println(\"Added row: \" + s+Character.toString(alphabet));\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\trows.add(Character.toString(alphabet));\r\n\t\t\t\t\t\tSystem.out.println(\"Added row: \" + Character.toString(alphabet));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfor (int i = 0; i<numberOfRows; i++){\r\n\t\t\t\tString numSeatsPerRowString = JOptionPane.showInputDialog(\"Enter the number of seats in row \" + rows.get(i)+\": \");\r\n\t\t\t\tInteger numSeatsPerRow = Integer.parseInt(numSeatsPerRowString);\r\n\r\n\r\n\t\t\t\tfor (int j = 0; j<numSeatsPerRow;j++){\r\n\t\t\t\t\tticketList.add(new Tickets(rows.get(i)+j));\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tfor (int i = 0; i< ticketList.size();i++){\r\n\t\t\t\tSystem.out.println(ticketList.get(i).getSeat()+ \" price: \" + ticketList.get(i).getPrice());\r\n\t\t\t}\r\n\t\t}catch( java.lang.NumberFormatException e){\r\n\t\t\tSystem.out.println(\"You didn't put a number\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "b82ee1886de236485e80ebe449004985", "score": "0.49322835", "text": "public PlaneSchedule addFlight(String code, String airport, String destination, Date arrival, Date departure, String status, String plane){\n EntityManager entityManager = entityManagerFactory.createEntityManager();\n entityManager.getTransaction().begin();\n Plane search = entityManager.find(Plane.class, plane);\n entityManager.getTransaction().commit();\n if(search == null){\n entityManager.close();\n System.out.println(\"No such plane\");\n return null;\n }\n\n entityManager.getTransaction().begin();\n PlaneSchedule flight = new PlaneSchedule(code, airport, destination, arrival, departure, status, search);\n entityManager.merge(flight);\n entityManager.getTransaction().commit();\n entityManager.close();\n return flight;\n }", "title": "" }, { "docid": "27429b3db08a7d2d80301bcec5193bf2", "score": "0.49176684", "text": "@Override\r\n\tpublic void getScreeningsForMarathonTicket() {\n\r\n\t}", "title": "" }, { "docid": "b31b7697aeccdfc1ca81e23ca0da0562", "score": "0.49034932", "text": "public void listFlight(){\n for(int i=0; i<Flight.amountOfFlights; i++){\n if(flights[i]!=null){\n System.out.println(flights[i].toString());\n }\n }\n }", "title": "" }, { "docid": "cbc381e8cfa974282ede7724eaf3037d", "score": "0.48985767", "text": "private void getFacility(String key) {\n mFacility = mRealm.where(Facility.class).equalTo(\"name\", key).findFirst();\n }", "title": "" }, { "docid": "1e593572c1c480ea820a9dd2e09beb30", "score": "0.48943332", "text": "public Map<Integer,List<Flight>> getBookedFlightsByUser(User user){\r\n\t\tSet<UserFlight> set = user.getUserFlights();\r\n\t\tList<UserFlight> userFlights = new ArrayList<UserFlight>();\r\n\t\tMap<Integer,List<Flight>> flightPath = new HashMap<Integer, List<Flight>>();\r\n\t\t\r\n\t\tint counter = 0;\r\n\t\tint pathCount = 1;\r\n\t\tset.forEach(f->{\r\n\t\t\tuserFlights.add(f);\r\n\t\t});\r\n\t\tlog.info(\"bomb \" + userFlights.size());\r\n\t\tfor(UserFlight f : userFlights){\r\n\t\t\tif(counter < userFlights.size()){\r\n\t\t\t\tif(counter != userFlights.size()){\r\n\t\t\t\tif((f.getOrigin().equals(userFlights.get(counter+1).getOrigin())) && (f.getDestination().equals(userFlights.get(counter+1).getDestination()))){\r\n\t\t\t\t\tif(!flightPath.containsKey(pathCount)){\r\n\t\t\t\t\t\tflightPath.put(pathCount, new ArrayList<Flight>());\r\n\t\t\t\t\t\tflightPath.get(pathCount).add(flightSearch.getFlightByFlightId(f.getBookedFlight().getFlightId()));\r\n\t\t\t\t\t\tlog.info(\"flight path \" + pathCount + \": \" + f.getBookedFlight().getFlightId());\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tflightPath.get(pathCount).add(flightSearch.getFlightByFlightId(f.getBookedFlight().getFlightId()));\r\n\t\t\t\t\t\tlog.info(\"flight path contains \" + pathCount + \": \" + f.getBookedFlight().getFlightId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tpathCount++;\r\n\t\t\t\t\tif(!flightPath.containsKey(pathCount)){\r\n\t\t\t\t\t\tflightPath.put(pathCount, new ArrayList<Flight>());\r\n\t\t\t\t\t\tflightPath.get(pathCount).add(flightSearch.getFlightByFlightId(f.getBookedFlight().getFlightId()));\r\n\t\t\t\t\t\tlog.info(\"flight path doesnot equal\" + pathCount + \": \" + f.getBookedFlight().getFlightId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif((f.getOrigin().equals(userFlights.get(counter+1).getOrigin())) && (f.getDestination().equals(userFlights.get(counter+1).getDestination()))){\r\n\t\t\t\t\t\tif(!flightPath.containsKey(pathCount)){\r\n\t\t\t\t\t\t\tflightPath.put(pathCount, new ArrayList<Flight>());\r\n\t\t\t\t\t\t\tflightPath.get(pathCount).add(flightSearch.getFlightByFlightId(f.getBookedFlight().getFlightId()));\r\n\t\t\t\t\t\t\tlog.info(\"flight path \" + pathCount + \": \" + f.getBookedFlight().getFlightId());\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tflightPath.get(pathCount).add(flightSearch.getFlightByFlightId(f.getBookedFlight().getFlightId()));\r\n\t\t\t\t\t\t\tlog.info(\"flight path contains \" + pathCount + \": \" + f.getBookedFlight().getFlightId());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tlog.info(counter + \" inside 1\");\r\n\t\t\t\tcounter++; \r\n\t\t\t}}else{\r\n\t\t\t\tif((f.getOrigin().equals(userFlights.get(counter).getOrigin())) && (f.getDestination().equals(userFlights.get(counter).getDestination()))){\r\n\t\t\t\t\tif(!flightPath.containsKey(pathCount)){\r\n\t\t\t\t\t\tflightPath.put(pathCount, new ArrayList<Flight>());\r\n\t\t\t\t\t\tflightPath.get(pathCount).add(flightSearch.getFlightByFlightId(f.getBookedFlight().getFlightId()));\r\n\t\t\t\t\t\tlog.info(\"flight path \" + pathCount + \": \" + f.getBookedFlight().getFlightId());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tflightPath.get(pathCount).add(flightSearch.getFlightByFlightId(f.getBookedFlight().getFlightId()));\r\n\t\t\t\t\tlog.info(\"flight path \" + pathCount + \": \" + f.getBookedFlight().getFlightId());\r\n\t\t\t\t}else{\r\n\t\t\t\t\tpathCount++;\r\n\t\t\t\t\tif(!flightPath.containsKey(pathCount)){\r\n\t\t\t\t\t\tflightPath.put(pathCount, new ArrayList<Flight>());\r\n\t\t\t\t\t\tflightPath.get(pathCount).add(flightSearch.getFlightByFlightId(f.getBookedFlight().getFlightId()));\r\n\t\t\t\t\t\tlog.info(\"flight path \" + pathCount + \": \" + f.getBookedFlight().getFlightId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tlog.info(counter + \"inside 2\");\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn flightPath;\r\n\r\n\t}", "title": "" }, { "docid": "a6ad47374f35b6eb0c0a5817d7c9ee4d", "score": "0.48933944", "text": "google.maps.fleetengine.v1.Waypoint getVehicleTripsWaypoints(int index);", "title": "" }, { "docid": "38098060dcf80bbe46e26562932357be", "score": "0.4886416", "text": "public Flights GetArrivingFlights(SearchParams searchParams){\n\t\tURL url;\n\t\tHttpURLConnection connection;\n\t\tBufferedReader reader;\n\t\tString line;\n\t\tStringBuffer result = new StringBuffer();\n\t\tString xmlFlights;\n\t\t\n\t\t//Parse searchParams\n\t\tString airportCode = new String(searchParams.getArrivalAirportCode());\n\t\tString day = String.valueOf(searchParams.getArrivalDate().getYear()) + \"_\" + String.valueOf(searchParams.getArrivalDate().getMonth()) + \"_\" + String.valueOf(searchParams.getArrivalDate().getDay());\n\t\t\n\t\ttry {\n\t\t\t/*\n\t\t\t * Create an HTTP connection to the server for a GET \n\t\t\t */\n\t\t\turl = new URL(ServerLocation + QueryFactory.getArrivingFlights(TeamName, airportCode, day));\n\t\t\tconnection = (HttpURLConnection) url.openConnection();\n\t\t\tconnection.setRequestMethod(\"GET\");\n\t\t\tconnection.setRequestProperty(\"User-Agent\", TeamName);\n\t\t\t\n\t\t\tint responseCode = connection.getResponseCode();\n\t\t\tif (responseCode >= HttpURLConnection.HTTP_OK){\n\t\t\t\tInputStream inputStream = connection.getInputStream();\n\t\t\t\tString encoding = connection.getContentEncoding();\n\t\t\t\tencoding = (encoding == null ? \"UTF-8\" : encoding);\n\n\t\t\t\treader = new BufferedReader(new InputStreamReader(inputStream));\n\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\tresult.append(line);\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\txmlFlights = result.toString();\n\t\t\n\t\t//call XML parser to generate Flights class\n\t\tFlights flights = XMLParser.addAllFlights(xmlFlights); //need to parse xmlAirports string into Flights object\n\t\treturn flights;\n\t}", "title": "" } ]
551ac69574dcb197d38d4704bdda46c6
Creates an instance of PopupMessageNotificationHandlerImpl by specifying the default message to use if no message is specified.
[ { "docid": "3f56c09ec00b625489b5fa24aaa4ef33", "score": "0.6197227", "text": "public PopupMessageNotificationAction(String defaultMessage, long timeout, String groupName)\r\n {\r\n this(defaultMessage, timeout);\r\n this.groupName = groupName;\r\n }", "title": "" } ]
[ { "docid": "469b3bf893d73a69cf491120b9798e2b", "score": "0.71909815", "text": "public PopupMessageNotificationAction(String defaultMessage)\r\n {\r\n super(NotificationAction.ACTION_POPUP_MESSAGE);\r\n this.defaultMessage = defaultMessage;\r\n }", "title": "" }, { "docid": "4ea335d739e4752d8015a5ab8c84f9c9", "score": "0.6291817", "text": "public PopupMessageNotificationAction(String defaultMessage, long timeout)\r\n {\r\n this(defaultMessage);\r\n this.timeout = timeout;\r\n }", "title": "" }, { "docid": "958d4ccdbaf120d12193e49361ea0427", "score": "0.5920489", "text": "void setDefaultMessage(String defaultMessage);", "title": "" }, { "docid": "b4f40286258c7dd8d086f2ad64bdb6a2", "score": "0.5669766", "text": "public ServerUpdater setDefaultMessageNotificationLevel(\n DefaultMessageNotificationLevel defaultMessageNotificationLevel) {\n delegate.setDefaultMessageNotificationLevel(defaultMessageNotificationLevel);\n return this;\n }", "title": "" }, { "docid": "c04b0ca7249b2e988a855b25bbbad4ab", "score": "0.55233145", "text": "public PopupNotification(String title, String message, PopupType type){\n initOwner(Main.main.mainStage);\n initStyle(StageStyle.UTILITY);\n initModality(Modality.WINDOW_MODAL);\n titleLabel = new Label(title);\n titleLabel.getStyleClass().setAll(\"title\");\n messageLabel = new Label(message);\n messageLabel.setWrapText(true);\n messageLabel.getStyleClass().setAll(\"text\");\n\n contentBox = new HBox(10);\n contentBox.setPadding(new Insets(0,10,0,10));\n if (type != PopupType.NO_IMAGE) {\n contentBox.getChildren().add(new ImageView(new Image(getClass().getResourceAsStream(type.getImgFile()))));\n }\n textBox = new VBox(10, titleLabel, messageLabel);\n textBox.setPadding(new Insets(10, 5, 5, 5));\n textBox.setMinHeight(120);\n\n contentBox.getChildren().add(textBox);\n\n buttonBox = new HBox();\n buttonBox.getStyleClass().setAll(\"button-box\");\n buttonBox.setPadding(new Insets(5, 10, 5, 10));\n buttonBox.setAlignment(Pos.BASELINE_RIGHT);\n buttonBox.setMaxWidth(Double.MAX_VALUE);\n okButton = new Button(\"DISMISS\");\n okButton.setOnMouseClicked(this::closePopup);\n buttonBox.getChildren().add(okButton);\n\n root.setCenter(contentBox);\n root.setBottom(buttonBox);\n\n setMaxWidth(440);\n setScene(new Scene(root));\n getScene().getStylesheets().add(getClass().getResource(\"popup.css\").toExternalForm());\n centerOnScreen();\n }", "title": "" }, { "docid": "3c4adfddccf9db0a0079821464ba047d", "score": "0.5448412", "text": "public String getDefaultMessage()\r\n {\r\n return defaultMessage;\r\n }", "title": "" }, { "docid": "50e9b8230909a922dbc531df9f479db3", "score": "0.5366834", "text": "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "3f9812b0e8088ff4f04e35b2f50af478", "score": "0.5358739", "text": "public Popup(final IServiceLocator serviceLocator, final String msg) {\n this.serviceLocator = serviceLocator;\n this.message = msg;\n\n okButton = this.serviceLocator.getButtonFactory().createOkPopupButton(POPUP_OK_X, POPUP_OK_Y, this);\n okButton.register();\n }", "title": "" }, { "docid": "9926212423953d0adf86b53079a710e2", "score": "0.52917325", "text": "public void popMessage(String message){\n // Code based off https://www.youtube.com/watch?v=fxVeFwtIpVc //\n LayoutInflater layoutInflater = (LayoutInflater)getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE);\n View popupmessage = layoutInflater.inflate(R.layout.pop_message,null);\n // Creates the popup window object\n final PopupWindow popupWindow = new PopupWindow(popupmessage, ActionBar.LayoutParams.WRAP_CONTENT, ActionBar.LayoutParams.WRAP_CONTENT,true);\n // Enable the button in popup window\n Button but_okay = (Button)popupmessage.findViewById(R.id.okay);\n TextView pop_message = (TextView) popupmessage.findViewById(R.id.poptext);\n pop_message.setText(message);\n\n but_okay.setOnClickListener(new Button.OnClickListener() {\n public void onClick(View pop_exit) {\n popupWindow.dismiss();\n finish();\n }//end but-exit Onclick\n }); //end but_exit listener\n\n popupWindow.showAsDropDown(popupmessage, 90, 650);\n }", "title": "" }, { "docid": "c15531b93c774159407a8db2e6b671a9", "score": "0.51121616", "text": "public DefaultMessageSupport() {\n\t\tthis.choiceMakerCoreMessages = ChoiceMakerCoreMessages.m;\n\t}", "title": "" }, { "docid": "42a5ec803aa47a74edee445b3a6f43e2", "score": "0.5098272", "text": "private JPanel getMessagePane() {\n if (messagePane == null) {\n messageLabel = new JLabel();\n messageLabel.setText(\"\");\n messageLabel.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 14));\n messageLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n messagePane = new JPanel();\n messagePane.setLayout(new BorderLayout());\n messagePane.setPreferredSize(new java.awt.Dimension(30, 30));\n messagePane.add(messageLabel, java.awt.BorderLayout.CENTER);\n }\n return messagePane;\n }", "title": "" }, { "docid": "89e92e1c70e6b0692b22d3df7e50dd33", "score": "0.5069932", "text": "public static MessageSession createMessageSession() {\n\t\t// logger.info(\"Create a default MessageSession implementation\");\n\t\treturn new MessageSessionImpl();\n\t}", "title": "" }, { "docid": "bcf130aa18cc5cc40dd7c6652f86c18f", "score": "0.5069646", "text": "String getMessage(String code, String defaultMessage);", "title": "" }, { "docid": "f931e156acf402bff7e498f7e673f4b1", "score": "0.50526816", "text": "@Override\n\tpublic NdefMessage createNdefMessage(NfcEvent arg) {\n\t\tKrollFunction callback = (KrollFunction)getProperty(NfcConstants.PROPERTY_ON_PUSH_MESSAGE);\n\t\tif (callback != null) {\n\t\t\tHashMap<String, String> event = new HashMap<String, String>();\n\t\t\tObject result = callback.call(getKrollObject(), event);\n\t\t\tif (result instanceof NdefMessageProxy) {\n\t\t\t\tNdefMessageProxy proxy = (NdefMessageProxy)result;\n\t\t\t\treturn proxy.getMessage();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5cb1178e3e33e6577660ab641d0d8a6c", "score": "0.5021466", "text": "String getMessage(String code, Object[] args, String defaultMessage);", "title": "" }, { "docid": "4f03c76778ccdb092d04f426435ea365", "score": "0.5006135", "text": "public NotificationJPopupMenu(String message, Icon icon) throws GuiException{\n\t\tif( message == null ){\n\t\t\tthrow new GuiException(\"Wrong argument message == null\");\n\t\t}\n\t\t\n\t\tif( icon == null ){\n\t\t\tthrow new GuiException(\"Wrong argument icon == null\");\n\t\t}\n\t\t\n setOpaque(false);\n setBackground(Colors.White.alpha(0f));\n setBorder(new EmptyBorder(0,0,0,0));\n setLayout( new BorderLayout());\n RoundedJPanel bgPanel = new RoundedJPanel(Colors.Orange.alpha(0.5f), Colors.Gray.alpha(0.5f)); \n JLabel label = new JLabel( message, icon, SwingConstants.CENTER );\n //label.setForeground(Colors.Gray.alpha(1f));\n label.setFont( new Font(\"Arial\", Font.BOLD, 12));\n label.setOpaque(false);\n label.addMouseListener( new MouseAdapter( ){\n @Override\n public void mouseClicked ( MouseEvent e ){\n \tNotificationJPopupMenu.this.setVisible( false );\n }\n });\n \n bgPanel.add( label, BorderLayout.NORTH );\n add(bgPanel);\n label.setPreferredSize(new Dimension(label.getPreferredSize().width+20, label.getPreferredSize().height));\n setPreferredSize(new Dimension(label.getPreferredSize().width + 40, label.getPreferredSize().height + 20));\n\t}", "title": "" }, { "docid": "8cff496478556645997e34f90e30d1a9", "score": "0.49618933", "text": "public void testSetMessage() {\n System.out.println(\"setMessage\");\n\n SetMessageRequestType request = null;\n DisplayAlertMessages instance = new DisplayAlertMessages();\n SetMessageResponseType expResult = null;\n SetMessageResponseType result = instance.setMessage(request);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "e963a7bd7d5197fa79f317c484e80201", "score": "0.495798", "text": "@Override\r\n\tprotected View onCreateDialogView() {\n\t\tString testPhone = \"123-456-7890\";\r\n\t\tSmsMmsMessage message = new SmsMmsMessage(c, testPhone,\r\n\t\t c.getString(R.string.pref_notif_test_title), 0, null, testPhone, null, 1, 0,\r\n\t\t SmsMmsMessage.MESSAGE_TYPE_SMS);\r\n\t\t\r\n\t\t// Show notification\r\n\t\tManageNotification.show(c, message, ManageNotification.NOTIFICATION_TEST);\r\n\t\t\r\n\t\treturn super.onCreateDialogView();\r\n\t}", "title": "" }, { "docid": "a322868044c7c18021f15347bcc85d34", "score": "0.49277148", "text": "protected PopupPanel createPopup() {\n PopupPanel p = new PopupPanel(true, false);\n p.setStyleName(\"gwt-SuggestBoxPopup\");\n p.setPreviewingAllNativeEvents(true);\n p.setAnimationType(AnimationType.ROLL_DOWN);\n return p;\n }", "title": "" }, { "docid": "7f38360233959369d688a99115ad845e", "score": "0.49234977", "text": "public DefaultMessageService() {\n\t}", "title": "" }, { "docid": "0ed332d1e852b942f7158a657276c0ea", "score": "0.4846879", "text": "public NotificationMessageContext() {}", "title": "" }, { "docid": "1166e921eae01f77641dcca9d71d7cb4", "score": "0.481236", "text": "public PacketNOTIFICATION(String title, String message)\n\t{\n\t\tsuper(PT_NOTIFICATION);\n\t\tappendPayload(title, message, Packet.ICON_NONE, null);\n\t}", "title": "" }, { "docid": "d8de434198d6b30857e198ac3bb88a2b", "score": "0.481042", "text": "public MessageSetter() {\n\t\n\t}", "title": "" }, { "docid": "3fd8b3de4a1ead0f3523876b03799541", "score": "0.48036084", "text": "IMessage createMessage(String messageText);", "title": "" }, { "docid": "59094b7cfac5be5c3018e1e6c5c0e631", "score": "0.47889346", "text": "public DefaultMessage() {\r\n\t\tsuper();\r\n\t\t\r\n\t\tinserts = new ArrayList();\r\n\t\tproperties = new HashSet();\r\n\t}", "title": "" }, { "docid": "87ec588d0d964d6867756f492c38bf2d", "score": "0.47843483", "text": "public PushNotificationBuilder setMessage(String message) {\n this.message = message;\n return this;\n }", "title": "" }, { "docid": "da4118c3c04cc36de70baf87af3cbb86", "score": "0.47757873", "text": "public static StackingNotificationFragment newInstance() {\n StackingNotificationFragment fragment = new StackingNotificationFragment();\n return fragment;\n }", "title": "" }, { "docid": "f2147f381a737f1702ad05e81f87ce55", "score": "0.47610018", "text": "public IgluMessage() {\r\n this.message = DEFAULT_MSG;\r\n this.timestamp = DEFAULT_TIMESTAMP;\r\n this.priority = 0;\r\n this.target = 0;\r\n this.sender = 0;\r\n this.encoded = false;\r\n }", "title": "" }, { "docid": "7c97b90ebd21fb474dcbc90aa171cf31", "score": "0.47360176", "text": "public static Packet createMessage(Message message) {\n return new Packet(\n PacketType.MESSAGE,\n ErrorMessage.EMPTY,\n message.toString()\n );\n }", "title": "" }, { "docid": "e1b986adf2fb4ef0d35173bb21362ead", "score": "0.47131646", "text": "public void addMessage(DefaultMessage message) {\n\t\tif (message != null) {\n\t\t\tsynchronized (messages) {\n\t\t\t\tif (messages.size() < getMaxMessageCount()) {\n\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t// messages.notifyAll();\n\t\t\t\t} else {\n\t\t\t\t\tthrow new IllegalStateException(\"too many messages, cannot add\");\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}", "title": "" }, { "docid": "315d5f0d5eddb966d62a0034d2046d50", "score": "0.47020164", "text": "public void setMessageImpl(String message) {\r\n\tgetMessageLabel().setText(message);\r\n}", "title": "" }, { "docid": "e31fc7e4d347f22c32ff326f6363fc60", "score": "0.46744442", "text": "public static void popUp(String message) {\n\t\tfinal class MyThread extends Thread {\n\t\t\tpublic MyThread() {}\n\t\t\tpublic void run() {\n\t\t\t\tJOptionPane.showMessageDialog(Interface.mainWindow, message);\n\t\t\t\tsynchronized(Interface.sync) {\n\t\t\t\t\tInterface.sync.notifyAll();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t(new MyThread()).start();\n\t}", "title": "" }, { "docid": "06bff21ef1c0db716c231cfb60e9e50d", "score": "0.4674148", "text": "@SuppressWarnings(\"deprecation\")\r\n\tprivate void initPopuptWindow() {\r\n\r\n\t\tLayoutInflater layoutInflater = LayoutInflater.from(this);\r\n\t\tView popupView = layoutInflater.inflate(R.layout.popup, null);\r\n\t\tpopupView.setBackgroundResource(R.layout.sharp);\r\n\t\tpopupWindow = new PopupWindow(popupView, LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tLayoutParams.WRAP_CONTENT);\r\n\t\tpopupWindow.showAtLocation(popupView, Gravity.CENTER, 0, 0);\r\n\t\tpopupWindow.setFocusable(true);\r\n\r\n\t\tpopupWindow.setBackgroundDrawable(new BitmapDrawable());\r\n\t\tpopupWindow.setOutsideTouchable(false);\r\n\t\tpopupWindow.update();\r\n\t\tlp.alpha = 0.3f;\r\n\t\tgetWindow().setAttributes(lp);\r\n\t}", "title": "" }, { "docid": "6c69282c9d3e4ee84a2e4bcc623c725b", "score": "0.46711892", "text": "OnMessage createOnMessage();", "title": "" }, { "docid": "efe3fbb8e1cc23ca891ec61f0d537bce", "score": "0.4655409", "text": "private void createMessage() {\n\t\tmessage = lang.newText(new Offset(50, -7, header, AnimalScript.DIRECTION_E), \"\", \"messageText\", null,\n\t\t\t\ttextProps);\n\t}", "title": "" }, { "docid": "e7837b62852cc0c4dfc41a285aa9bf7d", "score": "0.46535328", "text": "protected abstract void createMessage();", "title": "" }, { "docid": "6fe537774a19c5981d0f16e50aeb046d", "score": "0.4642665", "text": "private void showDefaultSendFeedbackDialog() {\n Log.d(TAG, \"Create default send feedback dialog.\");\n\n String title = mHostActivity.getString(R.string.send_feedback_dialog_title, AppInfo.getApplicationName(mHostActivity.getApplicationContext()));\n String message = mHostActivity.getString(R.string.send_feedback_dialog_message, AppInfo.getApplicationName(mHostActivity.getApplicationContext()));\n String positiveButtonText = mHostActivity.getString(R.string.send_feedback_dialog_positive_button);\n String negativeButtonText = mHostActivity.getString(R.string.send_feedback_dialog_negative_button);\n\n new AlertDialog.Builder(mHostActivity)\n .setTitle(title)\n .setMessage(message)\n .setPositiveButton(positiveButtonText, mSendFeedbackDialogOnClickListener)\n .setNegativeButton(negativeButtonText, mSendFeedbackDialogOnClickListener)\n .setOnCancelListener(mSendFeedbackDialogOnCancelListener)\n .create().show();\n }", "title": "" }, { "docid": "540d69bfaadb691454d5e7c7f1a92ed6", "score": "0.46369785", "text": "private Optional<ButtonType> notify(String message, AlertType type) {\n\t\tthis.alert.setContentText(message);\n\t\tthis.alert.setAlertType(type);\n\t\tthis.alert.getButtonTypes().clear();\n\t\tif(type==AlertType.CONFIRMATION) {\n\t\t\tthis.alert.getButtonTypes().addAll(ButtonType.NO, ButtonType.YES);\n\t\t}else {\n\t\t\tthis.alert.getButtonTypes().add(ButtonType.OK);\n\t\t}\n\t\treturn this.alert.showAndWait();\n\t}", "title": "" }, { "docid": "2c0614f3b22ba4828134215ce799c837", "score": "0.46368393", "text": "public void createNotification() {\n if (afmAudioPlayer != null) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n // For light theme\n afmAudioPlayer.createNewNotification(R.drawable.ic_notification_default_black);\n } else {\n // For dark theme\n afmAudioPlayer.createNewNotification(R.drawable.ic_notification_default_white);\n }\n }\n }", "title": "" }, { "docid": "54576a9074101fb148fd0935d607ff27", "score": "0.46322715", "text": "private void showDefaultDialog() {\n Log.d(TAG, \"Create default dialog.\");\n\n String title = mHostActivity.getString(R.string.dialog_title, AppInfo.getApplicationName(mHostActivity.getApplicationContext()));\n String message = mHostActivity.getString(R.string.dialog_message, AppInfo.getApplicationName(mHostActivity.getApplicationContext()));\n String positiveButtonText = mHostActivity.getString(R.string.dialog_positive_button);\n String neutralButtonText = mHostActivity.getString(R.string.dialog_neutral_button);\n String negativeButtonText = mHostActivity.getString(R.string.dialog_negative_button);\n\n new AlertDialog.Builder(mHostActivity)\n .setTitle(title)\n .setMessage(message)\n .setPositiveButton(positiveButtonText, mDialogOnClickListener)\n .setNegativeButton(negativeButtonText, mDialogOnClickListener)\n .setNeutralButton(neutralButtonText, mDialogOnClickListener)\n .setOnCancelListener(mDialogOnCancelListener)\n .create().show();\n }", "title": "" }, { "docid": "a3a00bf0023703becc5d5eac527d5498", "score": "0.46105027", "text": "public NotificationBean() {\n model=new DefaultMenuModel();\n }", "title": "" }, { "docid": "2fb7d1c50ee50aa1bd1d80cb57aed7b0", "score": "0.46096697", "text": "public void setMessage( String pMessage )\r\n {\r\n mMessage = pMessage;\r\n }", "title": "" }, { "docid": "81a52bdcdf9fe01c5270bcd0818d43e3", "score": "0.45937526", "text": "private void addMessage(FacesMessage message) {\n\t\tFacesContext.getCurrentInstance().addMessage(null, message);\n\t}", "title": "" }, { "docid": "01f469764f7296e83ccc8302b2222585", "score": "0.4589269", "text": "public Popup() {\n\t\tsuper(null);\n\t\tcreateActions();\n\t\taddToolBar(SWT.FLAT | SWT.WRAP);\n\t\taddMenuBar();\n\t\taddStatusLine();\n\t}", "title": "" }, { "docid": "06578e2a25fa3c527f270d03ca1c00ad", "score": "0.4575549", "text": "private Message setReturnMessage(String jsonMessage) {\n Message msg = Message.obtain();\n Bundle data = new Bundle();\n data.putString(JSON_KEY, jsonMessage);\n msg.setData(data);\n return msg;\n }", "title": "" }, { "docid": "64d9b466b444615d66134c70749f6336", "score": "0.45732924", "text": "public static Smtp createDefault() {\n return new Smtp();\n }", "title": "" }, { "docid": "651f342dd0b35ce266fa90361613f0f0", "score": "0.45574266", "text": "public MessageVo newTemplateMessage() {\n MessageVo messageVo = new MessageVo();\n messageVo.setValidFrom(new Date());\n messageVo.setLocations(new ArrayList<>());\n SeriesIdentifier id = new SeriesIdentifier();\n id.setAuthority(app.getOrganization());\n id.setMainType(SeriesIdType.MSI);\n id.setYear(Calendar.getInstance().get(Calendar.YEAR));\n messageVo.setSeriesIdentifier(id);\n messageVo.setType(Type.COASTAL_WARNING);\n messageVo.setRepoPath(repositoryService.getNewTempDir().getPath());\n publishingService.newTemplateMessage(messageVo);\n return messageVo;\n }", "title": "" }, { "docid": "b02c126ded0bbb927952e4a452df1e98", "score": "0.45515928", "text": "@SuppressWarnings(\"deprecation\")\r\n\tprivate void initEingabePopuptWindow() {\r\n\r\n\t\tLayoutInflater layoutInflater = LayoutInflater.from(this);\r\n\t\tView popupView = layoutInflater.inflate(R.layout.popupeingabe, null);\r\n\t\tpopupView.setBackgroundResource(R.layout.sharp);\r\n\t\tpopupWindow = new PopupWindow(popupView, LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tLayoutParams.WRAP_CONTENT);\r\n\t\tpopupWindow.showAtLocation(popupView, Gravity.CENTER, 0, 0);\r\n\t\tpopupWindow.setFocusable(true);\r\n\r\n\t\tpopupWindow.setBackgroundDrawable(new BitmapDrawable());\r\n\t\tpopupWindow.setOutsideTouchable(false);\r\n\t\tpopupWindow.update();\r\n\t\tlp.alpha = 0.3f;\r\n\t\tgetWindow().setAttributes(lp);\r\n\t}", "title": "" }, { "docid": "79d384cc878fab21f6b735433aeba1a9", "score": "0.4551019", "text": "public PluginPushMessage() {\n }", "title": "" }, { "docid": "c217ebb852e67ef4bb0fd165064dad7f", "score": "0.45387602", "text": "private void createMessage() {\n\n }", "title": "" }, { "docid": "8fd498b5dba8bfb7ee8b8b97ba9d1753", "score": "0.453852", "text": "private void processChatMessage(ChatMessage message) {\n\n\t\t// add to chat panel\n\t\tChatPopup cp = (ChatPopup) inputPanel_.getPopup(InputPanel.CHAT_POPUP);\n\t\tcp.addChatMessage(message);\n\n\t\t// chat panel not shown\n\t\tif (!cp.isShown()) {\n\t\t\tnotificationPane_.showMessage(cp, message);\n\t\t}\n\t}", "title": "" }, { "docid": "2212f92c7fabafc30637b972c11f5aab", "score": "0.4533582", "text": "public void DisplayNotification(Context context, String message) {\n Intent intent = new Intent(getContext(), MainActivity_User.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);\n\n Uri NOTIFICATION_SOUND_URI = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + \"://\" + BuildConfig.APPLICATION_ID + \"/\" + R.raw.fillingyourinbox);\n\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context, \"Default\")\n .setSmallIcon(R.drawable.ic_launcher_background)\n .setContentTitle(\"New Order\")\n .setContentText(message)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT)\n .setSound(Settings.System.DEFAULT_NOTIFICATION_URI)\n // Set the intent that will fire when the user taps the notification\n .setContentIntent(pendingIntent)\n .setAutoCancel(true);\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);\n\n // notificationId is a unique int for each notification that you must define\n notificationManager.notify(1, mBuilder.build());\n }", "title": "" }, { "docid": "ed8a6d274182b42c12999bb0c94b47bd", "score": "0.4528002", "text": "public void newMessageSelected(IMessageIf message);", "title": "" }, { "docid": "1e257e715bd82ddf0978c595c59159bc", "score": "0.45209485", "text": "public static void message(String message) {\n showMessageDialog(null, message, \"Message\", PLAIN_MESSAGE);\n }", "title": "" }, { "docid": "21e4ed6bcc03dd782c2cb817e8300aef", "score": "0.4514188", "text": "public Message createMessage( Object payload );", "title": "" }, { "docid": "516a7cd2b07e8a9fa84501e76332caa1", "score": "0.45045", "text": "public Panel buildPopup( String msg, float maxWidth ) {\n Container window = new Container(new MigLayout(\"wrap\"));\n Label label = window.addChild(new Label(msg));\n if (maxWidth > 0) {\n label.setMaxWidth(maxWidth);\n }\n window.addChild(new ActionButton(new CallMethodAction(\"Close\", window, \"removeFromParent\")), \"align 50%\");\n centerComp(window);\n return window; \n }", "title": "" }, { "docid": "c400214f28db4bb3fb4367d176806f04", "score": "0.4488355", "text": "public void setMessage(String aMessage) {\r\n message = aMessage;\r\n }", "title": "" }, { "docid": "0f980f95623beef92816c0b4690b5ad5", "score": "0.44847304", "text": "public Notification(String title, String message) {\n\t\tthis.title = title;\n\t\tsetMessage(message);\n\t}", "title": "" }, { "docid": "b75657a550ebc5c5c239392161f9dd97", "score": "0.44829816", "text": "public void setMessage (String mesg) {\n message = mesg;\n }", "title": "" }, { "docid": "92e27b359e65cd62d3c980878246b346", "score": "0.44726083", "text": "private void createDefaultChannel() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n NotificationChannel channel = new NotificationChannel(BaseUploading_Service.CHANNEL_ID_DEFAULT,\n \"Default\",\n NotificationManager.IMPORTANCE_DEFAULT);\n nm.createNotificationChannel(channel);\n }\n }", "title": "" }, { "docid": "e1aabb53e2a5f9aeb3bdf0bf4473f4b6", "score": "0.44720095", "text": "public UserMessage(String messageKey) {\n updateMessageKey(messageKey);\n }", "title": "" }, { "docid": "e542ab6935876588d1a667a9aaa962f2", "score": "0.4470799", "text": "public void NewMessageNotification(String message, String title) {\n\t\tIntent resultIntent = new Intent(ViditureApp.context, Dashboard.class);\n\n\t\t// The stack builder object will contain an artificial back\n\t\t// stack for the\n\t\t// started Activity.\n\t\t// This ensures that navigating backward from the Activity leads\n\t\t// out of\n\t\t// your application to the Home screen.\n\t\tTaskStackBuilder stackBuilder = TaskStackBuilder\n\t\t\t\t.create(ViditureApp.context);\n\t\t// Adds the back stack for the Intent (but not the Intent\n\t\t// itself)\n\t\tstackBuilder.addParentStack(Dashboard.class);\n\t\t// Adds the Intent that starts the Activity to the top of the\n\t\t// stack\n\t\tstackBuilder.addNextIntent(resultIntent);\n\t\tPendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0,\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\n\n\t\tNotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\n\t\t\t\tViditureApp.context).setSmallIcon(R.drawable.ic_launcher)\n\t\t\t\t.setContentTitle(title).setContentIntent(resultPendingIntent)\n\t\t\t\t.setVibrate(new long[] { 100, 250, 100, 500 })\n\t\t\t\t.setSound(Settings.System.DEFAULT_NOTIFICATION_URI)\n\t\t\t\t.setContentText(message);\n\n\t\tint notifyID = 1;\n\t\t// mBuilder.setContentIntent(resultPendingIntent);\n\t\tNotificationManager mNotificationManager = (NotificationManager) ViditureApp.context\n\t\t\t\t.getSystemService(Context.NOTIFICATION_SERVICE);\n\n\t\t// mId allows you to update the notification later on.\n\t\t\n\t\tmNotificationManager.notify(notifyID, mBuilder.build());\n\n\t}", "title": "" }, { "docid": "48092786828296ea33f5f9f452e74741", "score": "0.44690683", "text": "public void setMessage(final String message);", "title": "" }, { "docid": "960369a67aba4dca0ca2feaadd2ce867", "score": "0.446865", "text": "public IMessageDAO getMessageDAO() {\n\t\treturn new MessageDAOImpl();\n\t}", "title": "" }, { "docid": "350411c3d6fc315896c445ce11857f4f", "score": "0.44660357", "text": "private messageFactory(){\n }", "title": "" }, { "docid": "a8f648a665d277654868162a19f498d6", "score": "0.44611505", "text": "public static void show(final String title, final String message, final MessageDialogButtons buttons, final MessageDialogIcon icon, final MessageDialogDefaultButton defaultButton, final MessageDialogEventListener listener) {\r\n new MessageDialog(title, message, buttons, icon, defaultButton, listener).show();\r\n }", "title": "" }, { "docid": "6c0d9f048509c229fcd1d274e52959f8", "score": "0.44582865", "text": "public void setMessage(String message) {\r\n this.message = message;\r\n }", "title": "" }, { "docid": "1607fe740b73b78f1a860e0eab38f58d", "score": "0.445759", "text": "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n Log.d(TAG, \"From: \" + remoteMessage.getFrom());\n Log.d(TAG, \"Notification Message Body: \" + remoteMessage.getNotification().getBody());\n //create notification\n createNotification(remoteMessage.getNotification().getBody());\n }", "title": "" }, { "docid": "8e9283f476f806b4966a8c7ddd70cf0b", "score": "0.44568783", "text": "protected JPopupMenu createPopupMenu()\n {\n JPopupMenu popupMenu = new JPopupMenu();\n\n popupMenu.add(new AbstractAction(I18NProperties.getString(\"change.transition.description\"))\n {\n\n private static final long serialVersionUID = 676546L;\n\n /*\n * (non-Javadoc)\n * \n * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\n */\n public void actionPerformed(ActionEvent event)\n {\n if (SingleConnector.managerView().openDialogInterface(Constantes.NAME_SPEC,\n TransitionFigure.this.transitionDescription))\n {\n willChange();\n TransitionFigure.this.transitionDescription = ((SingleConnector.manager())\n .getCreationName());\n SingleConnector.manager().updateRedrawCode();\n TransitionFigure.this.redraw();\n change();\n changed();\n }\n }\n });\n\n popupMenu.setLightWeightPopupEnabled(true);\n return popupMenu;\n }", "title": "" }, { "docid": "2033311463e1c5378c81919acc5c8343", "score": "0.44561696", "text": "@OnMessage\n public void onMessage(String message) {\n if (this.messageHandler != null) {\n this.messageHandler.handleMessage(message);\n }\n }", "title": "" }, { "docid": "279e42bc9fadf7694d6fed03fd24dba8", "score": "0.4449887", "text": "public IMessageHandler getMessageandler() {\r\n\t\treturn MessageHandler.getMessageHandler();\r\n\t}", "title": "" }, { "docid": "e93a6e7f5e2ff6473817e05d4ecd0a04", "score": "0.44463852", "text": "private MainMenuMsg() {\n }", "title": "" }, { "docid": "2c85f5f485a83ccd95b2820263eeda40", "score": "0.44411427", "text": "public AlertDialog a() {\n int c = h.c(\"hms_update_message_new\");\n int c2 = h.c(\"hms_install\");\n AlertDialog.Builder builder = new AlertDialog.Builder(f(), g());\n builder.setMessage(f().getString(c, new Object[]{this.a}));\n builder.setPositiveButton(c2, new o(this));\n builder.setNegativeButton(h.c(\"hms_cancel\"), new p(this));\n return builder.create();\n }", "title": "" }, { "docid": "2a015aae6ca60ac125e0b3eebbb9022d", "score": "0.44400957", "text": "protected void showPopupWindow(TextView location, String message){\n LayoutInflater layoutInflater = (LayoutInflater) MainActivity.this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n //it is used to take the resources from the popup.xml file\n View customView = layoutInflater.inflate(R.layout.popup,null);\n\n Button closePopupBtn = (Button) customView.findViewById(R.id.closePopupBtn);\n\n //instantiate popup window\n PopupWindow popupWindow = new PopupWindow(customView, LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n\n //display the popup window\n popupWindow.showAtLocation(location, Gravity.CENTER, 0, 0);\n\n\n TextView popup_view = (TextView) customView.findViewById(R.id.popup_text);\n popup_view.setText(message);\n\n //close the popup window on button click\n closePopupBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n popupWindow.dismiss();\n }\n });\n\n\n\n }", "title": "" }, { "docid": "1d0714ff667b20e1e8264c22f6930799", "score": "0.44397318", "text": "@Override\r\n\tpublic message pollForNewmessage() {\n\t\tmessage m1=new message();\r\n\t\tm1.setMsgId(1);\r\n\tm1.setMsg(\"hi\");\r\n\tm1.setMsgSrc(\"Twitter\");\r\n\tm1.setMsgType(\"String\");\r\n\t\treturn m1;\r\n\t}", "title": "" }, { "docid": "3dbceee36f7cf4dd9e009dbc52056280", "score": "0.44326591", "text": "public Builder setGameInitMessage(proto.GameMessageProto.GameInitMessage value) {\n if (gameInitMessageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n gameInitMessage_ = value;\n onChanged();\n } else {\n gameInitMessageBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "title": "" }, { "docid": "9de662c9f87eb4f64f2bed940dd7381b", "score": "0.44304582", "text": "public void showMessage(String message) {\n messageNotify.showMessage(message);\n }", "title": "" }, { "docid": "3cc108ad15556b476f9f38ef7dacba93", "score": "0.4425052", "text": "private JPanel getMessagePanel() {\n if (messagePanel == null) {\n messageLabel = new JLabel();\n messageLabel.setText(\"## - Problem Title (Run NN, Site YY)\");\n messageLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n messageLabel.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 18));\n messagePanel = new JPanel();\n messagePanel.setLayout(new BorderLayout());\n messagePanel.setPreferredSize(new java.awt.Dimension(45, 45));\n messagePanel.add(messageLabel, java.awt.BorderLayout.CENTER);\n }\n return messagePanel;\n }", "title": "" }, { "docid": "f0a1eaac8dffaecb9bc851541e374f05", "score": "0.441857", "text": "public static void initDefaultHandlers() throws Exception {\n synchronized (defaultHandlersLock) {\n if (defaultHandlers == null && messageCodes == null) {\n defaultHandlers = new ConcurrentHashMap<>();\n Reflections reflections = new Reflections(\"org.licketysplit\");\n\n // Get all subclasses of Message\n Set<Class<? extends Message>> messageTypes = reflections.getSubTypesOf(Message.class);\n messageCodes = messageTypes.toArray(new Class[messageTypes.size()]);\n\n // Sort alphabetically\n Arrays.sort(messageCodes, (Class a, Class b) -> a.getName().compareTo(b.getName()));\n\n // Get all classes annotated with DefaultHandler and put into defaultHandlers map\n Set<Class<?>> handlers = reflections.getTypesAnnotatedWith(DefaultHandler.class);\n for (Class<?> handler : handlers) {\n if (MessageHandler.class.isAssignableFrom(handler)) {\n DefaultHandler handlerAnno = handler.getAnnotation(DefaultHandler.class);\n Class<? extends Message> messageType = handlerAnno.type();\n for (int i = 0; i < messageCodes.length; i++) {\n if(messageType==messageCodes[i]) {\n Constructor<?>[] constructors = handler.getConstructors();\n defaultHandlers.put(i, (MessageHandler)handler.getConstructors()[0].newInstance());\n break;\n }\n }\n } else {\n throw new Exception(\"Tried to assign non handler \\\"\"+handler+\"\\\" as handler\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "c1150f0eca21177492c781bad3ab6ecd", "score": "0.4404809", "text": "private void showGlobalMessageOnPage(String message) {\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\tFacesMessage facesMessage = new FacesMessage(message);\n\t\tcontext.addMessage(null, facesMessage);\n\t}", "title": "" }, { "docid": "7c86508dab396958b868830306a24745", "score": "0.44033247", "text": "default Message<?> map(String channelName, Message<?> message) {\n // noop\n return message;\n }", "title": "" }, { "docid": "6796276d7a6c97c7891a8a71f6f2977a", "score": "0.43995485", "text": "private void setPushMessageCallback(Object value) {\n\t\t_adapter.setNdefPushMessageCallback((value != null) ? this : null, TiApplication.getAppCurrentActivity());\t\t\n\t}", "title": "" }, { "docid": "5ad2dd3e1ddb9694931091dca5be5db4", "score": "0.43980137", "text": "public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n message_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.43974635", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.43974635", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.43974635", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.43974635", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "6605e20a50aca40a6211b41466a366d2", "score": "0.43974635", "text": "public void setMessage(String message) {\n this.message = message;\n }", "title": "" }, { "docid": "62a998535a84fb9acfdc44fa44392ac9", "score": "0.43933994", "text": "private void newPopUp(final int value){\n final NotificationData person = demo_event_fragment.getData(value);\n new ProfilePopUp_Demo(activity, 4, person ,0) {\n @Override\n public void onClickView(TextView textView, ProfilePopUp_Demo profilePopUp) {\n profilePopUp.setText(textView.getText().toString());\n }\n\n @Override\n public void onSendCLick(TextView textView, ProfilePopUp_Demo profilePopUp, NotificationData obj) {\n dismiss();\n activity.hideStatusBar();\n Utility utility=new Utility(activity);\n utility.showCustomPopup(\"Good Nudge!\", String.valueOf(R.font.raleway_bold));\n }\n\n @Override\n public void onPrevClick(ImageView textView, ProfilePopUp_Demo profilePopUp) {\n\n }\n\n @Override\n public void onNextClick(ImageView textView, ProfilePopUp_Demo profilePopUp) {\n\n }\n\n @Override\n public void onDismiss(ProfilePopUp_Demo profilePopUp) {\n\n }\n }.show();\n /*new ProfilePopUp(context,4,obj) {\n @Override\n public void onClickView(TextView textView, ProfilePopUp profilePopUp) {\n profilePopUp.setText(textView.getText().toString());\n\n }\n\n @Override\n public void onSendCLick(TextView textView, ProfilePopUp profilePopUp) {\n Log.e(\"Value \" , profilePopUp.list.toString());\n }\n }.show();*/\n }", "title": "" }, { "docid": "da1dc1a1b3c5b0dd92da58999aa78389", "score": "0.43922564", "text": "protected String messageProtected(){\n return messageNotification = \"This protected message is displayed from Notification.\";\n }", "title": "" }, { "docid": "396475f2a1b8885e6ca485c7cd37055b", "score": "0.43902376", "text": "public JMenuItem getPopupPresenter() {\n if (myComponent instanceof JMenuItem) {\n return (JMenuItem)myComponent;\n }\n JMenuItem newItem = new JMenuItem();\n newItem.add(myComponent);\n return newItem;\n }", "title": "" }, { "docid": "a98f0713636d4160bda79b7284985cc6", "score": "0.4387784", "text": "public PopupConfirm(Activity activity, String title, String message)\n\t{\n\t\t_activity = activity;\n\t\t_title = title;\n\t\t_message = message;\n\t\t_okLabel = activity.getString(R.string.okLabel);\n\t\t_cancelLabel = activity.getString(R.string.cancelLabel);\n\t\t\n\t\tinitPopup();\n\t}", "title": "" }, { "docid": "c0b605ebde1c39af0975bd04350d1e62", "score": "0.43836543", "text": "@Override\n \tpublic void handleMessage(Message msg) {\n \t\tsuper.handleMessage(msg);\n \t\t\n \t\tif(soundCall==1)\n \t\t mp2.start();\n \t\t\n \t\t_alertDialogMessage.setView(layout1);\n \t \t_alertDialogMessage.show();\n \t \tWindowManager.LayoutParams lp = new WindowManager.LayoutParams();\n \t \tWindow window = _alertDialogMessage.getWindow();\n \t \tlp.copyFrom(window.getAttributes());\n \t \t//This makes the dialog take up the full width\n \t \tlp.width = WindowManager.LayoutParams.FILL_PARENT;\n \t \tlp.height = WindowManager.LayoutParams.WRAP_CONTENT;\n \t \twindow.setAttributes(lp);\n \t \treturn;\n \t}", "title": "" }, { "docid": "120937d168b7a0b04b6e94b5570e0f39", "score": "0.4383137", "text": "public static iLogEntry newMessage(String message, String note)\n\t{\n\t\treturn new LogEntry().set(Type.message, message, note);\n\t}", "title": "" }, { "docid": "df8acb63195ac22be4ab59d5c10121a6", "score": "0.4379576", "text": "public void setMessage(String message) {\r\n\t\tthis.message = message;\r\n\t}", "title": "" }, { "docid": "a25b93f8d2cc96ba66ecd9653c090a7f", "score": "0.43775555", "text": "private String defaultMessageTextInNotification() {\n //check if have cached copy of this option\n if (TextUtils.isEmpty(defaultOfflineMessage)) {\n SharedPreferences config = this.getApplicationContext().getSharedPreferences(PREFS_NAME,0);\n if (config != null) {\n defaultOfflineMessage = config.getString(DEFAULT_MESSAGE_PREF, DEFAULT_MESSAGE_TEXT);\n }\n }\n return defaultOfflineMessage;\n }", "title": "" }, { "docid": "278366f9957ac7bbb124f67699a4d870", "score": "0.43729126", "text": "public void message(String message) {\n\t\tGuiAppWindow win = new GuiAppWindow();\n\t\twin.setState(4);\n\t\tdata.setMessage(message);\n\t\twin.open(data);\n\t\t\n\t}", "title": "" }, { "docid": "747bcdde0b7588489426e7056f5f5b93", "score": "0.43692842", "text": "public Builder setMessage(@Nullable final CharSequence message) {\n mMessage = message;\n return this;\n }", "title": "" }, { "docid": "3da12b6aa019cd7f7dc9d0ec56286138", "score": "0.4367022", "text": "public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n message_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "cfcd77949289433c6808429a90a02fbe", "score": "0.43649814", "text": "public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n message_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
cafe2d0994bd51e9910ef3a2aabf2178
Returns the value of the 'Async Delayed Redelivery' attribute. If the meaning of the 'Async Delayed Redelivery' attribute isn't clear, there really should be more of a description here...
[ { "docid": "5386bc0ef346d7b5b8b1131ae994c76d", "score": "0.79187244", "text": "String getAsyncDelayedRedelivery();", "title": "" } ]
[ { "docid": "b0e5bd56be99d1dc428f68180701a782", "score": "0.72492164", "text": "String getRedeliveryDelay();", "title": "" }, { "docid": "134dfe44cffe473636f1230c1bb25966", "score": "0.6900342", "text": "String getMaximumRedeliveryDelay();", "title": "" }, { "docid": "6d0b29f4d0bf596a37ba2567f4c03458", "score": "0.6762141", "text": "String getDisableRedelivery();", "title": "" }, { "docid": "b8eb63b44dd4f7643ae6b1f4740ba25b", "score": "0.57023996", "text": "public BigDecimal getDelay() {\r\n return delay;\r\n }", "title": "" }, { "docid": "49984edcf6b3ac75f41a0cbe7ef2307a", "score": "0.5606895", "text": "@NullableDecl\n public String pendingToString() {\n if (!(this instanceof ScheduledFuture)) {\n return null;\n }\n long delay = ((ScheduledFuture) this).getDelay(TimeUnit.MILLISECONDS);\n StringBuilder sb = new StringBuilder(41);\n sb.append(\"remaining delay=[\");\n sb.append(delay);\n sb.append(\" ms]\");\n return sb.toString();\n }", "title": "" }, { "docid": "4f6f5477e0f900d31fb6b4a74129a41c", "score": "0.5602683", "text": "public int getApproximateDeliveryTime() {\n return approximateDeliveryTime;\n }", "title": "" }, { "docid": "7644950c03f35490860d2a817c02de8a", "score": "0.5529846", "text": "public boolean isGuaranteedDelivery() {\r\n return guaranteedDelivery;\r\n }", "title": "" }, { "docid": "f4db91d9ca3f19f5994525df3d1a5e20", "score": "0.55275893", "text": "public static String getScopedAsync(AjaxGroup aGroup, AjaxElement aElement,\n AjaxEvent aEvent) {\n\n String async = aGroup.getAsync();\n if (aElement.getAsync() != null) {\n async = aElement.getAsync();\n }\n if (aEvent.getAsync() != null) {\n async = aEvent.getAsync();\n }\n return async;\n\n }", "title": "" }, { "docid": "8a29e040a72af18cbe31f2f03c2c619e", "score": "0.5464446", "text": "public boolean getIsDeferred() {\n return getAsBoolean(\"isDeferred\");\n }", "title": "" }, { "docid": "3f239b6e173d5b24251ad9bcfa3b75cf", "score": "0.54469454", "text": "public long getDelay() {\n return this.delay;\n }", "title": "" }, { "docid": "71726033145b3dc59ec2722d7f0414a8", "score": "0.5415273", "text": "public String pendingToString() {\n Object localValue = this.value;\n if (localValue instanceof SetFuture) {\n return \"setFuture=[\" + userObjectToString(((SetFuture) localValue).future) + \"]\";\n }\n if (this instanceof ScheduledFuture) {\n return \"remaining delay=[\" + ((ScheduledFuture) this).getDelay(TimeUnit.MILLISECONDS) + \" ms]\";\n }\n return null;\n }", "title": "" }, { "docid": "572613e16f45d2f7c1ffdce0d6c31db8", "score": "0.53967786", "text": "public int getDelay()\r\n {\r\n return this.delay;\r\n }", "title": "" }, { "docid": "3463a2512dce2025926263039bd8b065", "score": "0.5372158", "text": "public int getFetchDelay() {\r\n return getAttributeAsInt(\"fetchDelay\");\r\n }", "title": "" }, { "docid": "0d99eb7a2e387377b33bf8b5d812a61b", "score": "0.5370037", "text": "public int getDelay()\n {\n return delay;\n }", "title": "" }, { "docid": "e2d6c7c091296977eaeabb09354eeede", "score": "0.5359531", "text": "public Duration getRetryDelay() {\n return retryDelay;\n }", "title": "" }, { "docid": "e58a2a3f212b85a3fa9014bb54f2dafd", "score": "0.5358931", "text": "public boolean delayedReveiced () {\n\t\t\treturn resultDetected[RESULT_INDEX_DELAYED];\n\t\t}", "title": "" }, { "docid": "2879ab0d8d42450f8a1d8479b7a6f29b", "score": "0.535861", "text": "public int getDelay() {\r\n return delay;\r\n }", "title": "" }, { "docid": "e3e6c46029a80d2ea6e0912f8eb8ff8a", "score": "0.5358281", "text": "public long getDelay()\n {\n return delay;\n }", "title": "" }, { "docid": "50c1c9bfb59991f47c4f8354a3046bbf", "score": "0.5338446", "text": "public int getDelay() {\n return delay;\n }", "title": "" }, { "docid": "5c4ebfd6e12105785b039c62a164671c", "score": "0.53057396", "text": "public long getNotificationDelay() {\n\t\treturn notificationDelay;\n\t}", "title": "" }, { "docid": "6346f1dcf30907b5e97aede8929035c5", "score": "0.5305287", "text": "public java.lang.String getDeliveryOption() {\r\n return deliveryOption;\r\n }", "title": "" }, { "docid": "70bc0b45d628cfa8ab577e81a40411aa", "score": "0.52864426", "text": "public String getReplyingOrNotifying() {\n return getFlow().isAskedFor() ? \"replying\" : \"notifying\";\n }", "title": "" }, { "docid": "835b5c6e9caf44a2de7f18c6e434bb5b", "score": "0.526181", "text": "@JsonProperty(\"delay\")\n public Double getDelay() {\n return delay;\n }", "title": "" }, { "docid": "5e25d92d8a673b461fe297a39369730b", "score": "0.5251473", "text": "public org.apache.axis.types.UnsignedInt getDelay() {\n return delay;\n }", "title": "" }, { "docid": "b096db94b0693a3ab1c136182840e191", "score": "0.52486247", "text": "public int getPauseAfterReceivePatch()\n {\n return super.getPauseAfterReceivePatch();\n }", "title": "" }, { "docid": "a18afad48737be0b82ee9ecd96ed200a", "score": "0.5239586", "text": "public int getDelay() {\r\n\t\treturn delay;\r\n\t}", "title": "" }, { "docid": "5bd96817bce968452991e0edc046a428", "score": "0.52393234", "text": "public int getDelay() {\n\t\treturn delay;\n\t}", "title": "" }, { "docid": "8a91c3586569981ae8ab0e04d5a82309", "score": "0.5236937", "text": "@java.lang.Override\n public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "dad92b46f59148d13e8743c09f810218", "score": "0.5206828", "text": "public float getDelay()\n\t{\n\t\treturn delay;\n\t}", "title": "" }, { "docid": "761001e637b49e77feae2f9c86c2bbca", "score": "0.52060777", "text": "public int getReconnectionDelay() {\n return reconnectionDelay;\n }", "title": "" }, { "docid": "0e62a74a3b5fe1a6baea279fb1c82f47", "score": "0.51913387", "text": "public long getDelay() {\n return mDelay;\n }", "title": "" }, { "docid": "73815dd275336517fc75a00023caf2bd", "score": "0.51839876", "text": "public String getReceiveNotice() {\n return receiveNotice;\n }", "title": "" }, { "docid": "ded3f0b1fc5ace87ea0659f2e3a60673", "score": "0.5183577", "text": "im.turms.common.constant.MessageDeliveryStatus getDeliveryStatus();", "title": "" }, { "docid": "e8bf1b60a3f2a5e041e0ce6dfeb09da5", "score": "0.5166563", "text": "int getDeliveryStatusValue();", "title": "" }, { "docid": "b3ce5c2894aada07ef39fe14a6e797c4", "score": "0.5122031", "text": "public XMLGregorianCalendar getDeliveryDeadline() {\n return deliveryDeadline;\n }", "title": "" }, { "docid": "38baa03f6fdf22899347a5b1b6ca672b", "score": "0.51143694", "text": "java.lang.String getWaitTime();", "title": "" }, { "docid": "d251daab5f9d6421e9572fdecb65cdd0", "score": "0.51036817", "text": "public Long getDelaytime() {\n return delaytime;\n }", "title": "" }, { "docid": "b07b5c0870aad266bd74450d445f0c67", "score": "0.51029056", "text": "long getRevokeDelay();", "title": "" }, { "docid": "67b0964175747d6d8ca2416eca6d5567", "score": "0.50955385", "text": "@ZAttr(id=99)\n public int getSmtpTimeout() {\n return getIntAttr(Provisioning.A_zimbraSmtpTimeout, -1);\n }", "title": "" }, { "docid": "183b3cda6ad4187faae142e738d62577", "score": "0.50705326", "text": "public boolean isAmDelivery() {\r\n return amDelivery;\r\n }", "title": "" }, { "docid": "9cb4f229cc00fbb75f15330f5515a267", "score": "0.5068026", "text": "public int getDeliveryMode() {\n return deliveryMode;\n }", "title": "" }, { "docid": "7bf86b7b9efb517d357a38998c9e51d4", "score": "0.5059616", "text": "public float getRepeatDelay()\n\t{\n\t\treturn repeatDelay;\n\t}", "title": "" }, { "docid": "39a7ca4a51921f9b657c0bba3eb7b294", "score": "0.50562525", "text": "public Duration getMaxRetryDelay() {\n return maxRetryDelay;\n }", "title": "" }, { "docid": "048a03c7a8cabd30abf1ea47ebdf0f6d", "score": "0.50550437", "text": "public long getDelay();", "title": "" }, { "docid": "714845386e4b272e5b911963d3382cdd", "score": "0.5054806", "text": "public String getRecvTaskExecFlag() {\n return recvTaskExecFlag;\n }", "title": "" }, { "docid": "e443d5dc1215a0e1af10e4e89b8bad77", "score": "0.50439537", "text": "public String getRequested() {\n return this.requested;\n }", "title": "" }, { "docid": "f0cf82b65f7e590841d9355722ad8aa2", "score": "0.504308", "text": "public Integer getTolerableDelay() {\n\t\treturn tolerableDelay;\n\t}", "title": "" }, { "docid": "a8026101ac50a8fa68934668446a3672", "score": "0.5042462", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getDidUriBytes() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "5de399c9b0c4af7eb8a40cf0d83faec7", "score": "0.5039422", "text": "public alluxio.proto.journal.File.AsyncPersistRequestEntry getAsyncPersistRequest() {\n if (asyncPersistRequestBuilder_ == null) {\n return asyncPersistRequest_;\n } else {\n return asyncPersistRequestBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "11e757709dab63678a722577c963aa5d", "score": "0.50384367", "text": "public void setGuaranteedDelivery(boolean value) {\r\n this.guaranteedDelivery = value;\r\n }", "title": "" }, { "docid": "e04bcfbaaa2fedbcd4252481cb2e6feb", "score": "0.50236845", "text": "public double getDelay();", "title": "" }, { "docid": "3d1d31caf71e6a9e2984708d4add73b3", "score": "0.5011785", "text": "public java.lang.String getDidUri() {\n java.lang.Object ref = \"\";\n if (deliveryMethodCase_ == 2) {\n ref = deliveryMethod_;\n }\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (deliveryMethodCase_ == 2) {\n deliveryMethod_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "1994309a522c9eca62aaba0549fc11d1", "score": "0.5005955", "text": "public String getReadTimeoutProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_TIMEOUT);\n }", "title": "" }, { "docid": "dcb9bf4ba6110cf7731ddc207900af94", "score": "0.4973185", "text": "public Date getLastReceiveSuccessRequestTime()\r\n {\r\n return lastReceiveSuccessRequestTime;\r\n }", "title": "" }, { "docid": "4b67fa2042e7af40f1381354beedc642", "score": "0.4971257", "text": "public String getDeliverTo(){\n\t\treturn deliverTo;\n\t}", "title": "" }, { "docid": "193b334641e642c0250cb2b9269bc53a", "score": "0.4959093", "text": "String getReceiver();", "title": "" }, { "docid": "e797ff0e41fd03a82169282b464c1c08", "score": "0.49566734", "text": "public String getDeliveryclass() {\n return deliveryclass;\n }", "title": "" }, { "docid": "38280937aa3a81d0768595d5100f8e18", "score": "0.49546424", "text": "public CanceledServiceDelivery getCanceledServiceDelivery() {\n return this.canceledServiceDelivery;\n }", "title": "" }, { "docid": "58139a2567a2bc002e436d77daad7caf", "score": "0.49475217", "text": "public boolean isUpdateDelayed() {\n return (Boolean) getProperty(\"isUpdateDelayed\");\n }", "title": "" }, { "docid": "2ae270bf63d6de37a295ade4986df243", "score": "0.49335882", "text": "public Long getMaxDelayTime() {\n return this.MaxDelayTime;\n }", "title": "" }, { "docid": "e0fe38710754528460d10d21f4529316", "score": "0.49273443", "text": "int getAbsoluteMaximumDelay();", "title": "" }, { "docid": "b6bfd99616255481453fd5447ab9ad3d", "score": "0.49265453", "text": "public java.lang.CharSequence getAUTORECEIPTAPPL() {\n return AUTO_RECEIPT_APPL;\n }", "title": "" }, { "docid": "5938334f9703893cdcbe83915fabdffb", "score": "0.49262366", "text": "@Override\n public int getRetryDelay() {\n return retryDelay;\n }", "title": "" }, { "docid": "3f786be195ae0649fb56b1097a26e697", "score": "0.49188668", "text": "public boolean isRemotlyQueued()\r\n {\r\n return statusObj.value == STATUS_CANDIDATE_REMOTLY_QUEUED;\r\n }", "title": "" }, { "docid": "30f86840d80f82834538a4221c215bed", "score": "0.49187183", "text": "int getMaximumDelay();", "title": "" }, { "docid": "d85758f75564e5e58190aa829594dbaa", "score": "0.4914763", "text": "public java.lang.CharSequence getAUTORECEIPTAPPL() {\n return AUTO_RECEIPT_APPL;\n }", "title": "" }, { "docid": "adf3cd3aa31414b4270460ad03752afe", "score": "0.49147546", "text": "public boolean isAsync() {\n return async;\n }", "title": "" }, { "docid": "78fffd43d5c438f2bbdb8d570d0eae1e", "score": "0.49053526", "text": "public abstract boolean isDelivered();", "title": "" }, { "docid": "7955b9eaf7e12dea9dc20400851c9acc", "score": "0.49022537", "text": "public int getExpiryDelay()\n {\n return m_cExpiryDelay;\n }", "title": "" }, { "docid": "b01a1ea7e7d7767cbcf837bb7acd28c7", "score": "0.4894365", "text": "public String getReceived(){\n String rec;\n if (received == Received.ON_TIME){\n rec = \"On Time\";\n }else if(received == Received.LATE){\n rec = \"Late\";\n }else if(received == Received.NO){\n rec = \"NO\";\n }else{\n rec = \"N/A\";\n }\n return rec;\n }", "title": "" }, { "docid": "bb34590c59cde96d66228820b7cc6e41", "score": "0.48922214", "text": "public long getDelayTime() {\n return (long) this.DELAY_TIME;\n }", "title": "" }, { "docid": "7f2306f13a6b381daf62bae59e1351f9", "score": "0.4885582", "text": "public boolean getAutoReply()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUTOREPLY$18, 0);\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }", "title": "" }, { "docid": "52130129e2a4e80b70a59c7e04f7d2ec", "score": "0.48773178", "text": "ch.crif_online.www.webservices.crifsoapservice.v1_00.PaymentDelay getPaymentDelay();", "title": "" }, { "docid": "c223ed750dae72e3c55fcb98fca0e5cd", "score": "0.48709106", "text": "public final String toPendingString() {\n return this.callable.toString();\n }", "title": "" }, { "docid": "8b73b4c9a3fdd5fcf6d781c2ec185766", "score": "0.4868406", "text": "public Object getSinkRetryWait() {\n return this.sinkRetryWait;\n }", "title": "" }, { "docid": "ec443d88b3bf8de75bc4ed5e7b97874c", "score": "0.48588204", "text": "public java.lang.String getWaitTime() {\n java.lang.Object ref = waitTime_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n waitTime_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "718b73f06f1c529b83a61d1c452054e0", "score": "0.4841856", "text": "public Integer getTradeDelivering() {\n return tradeDelivering;\n }", "title": "" }, { "docid": "da6ec66229216c98f74686316dbc97d5", "score": "0.4840174", "text": "pb4server.TransportResAskReq getTransportResAskReq();", "title": "" }, { "docid": "80820387750993bba5c23e9fd77a5cc0", "score": "0.48371753", "text": "com.google.protobuf.Duration getMaximumBackoff();", "title": "" }, { "docid": "62fb8e15b07ed27e54c15c3757204028", "score": "0.48365209", "text": "@JsonGetter(\"async\")\n public boolean isAsync() {\n return async != null && async;\n }", "title": "" }, { "docid": "14dc1da6f5cb4868098aff7f9ad3af1f", "score": "0.48360795", "text": "public double getReceivable() {\n return receivable;\n }", "title": "" }, { "docid": "4a59d3421757081ab0dd1cd19842ef2c", "score": "0.4822644", "text": "private int blockingDialogDelay()\r\n/* */ {\r\n/* 313 */ Integer delay = null;\r\n/* 314 */ String key = \"BlockingDialogTimer.delay\";\r\n/* 315 */ ApplicationAction action = getAction();\r\n/* 316 */ if (action != null) {\r\n/* 317 */ ResourceMap actionResourceMap = action.getResourceMap();\r\n/* 318 */ String actionName = action.getName();\r\n/* 319 */ delay = actionResourceMap.getInteger(actionName + \".\" + key);\r\n/* */ }\r\n/* 321 */ ResourceMap taskResourceMap = getTask().getResourceMap();\r\n/* 322 */ if ((delay == null) && (taskResourceMap != null)) {\r\n/* 323 */ delay = taskResourceMap.getInteger(key);\r\n/* */ }\r\n/* 325 */ return delay == null ? 0 : delay.intValue();\r\n/* */ }", "title": "" }, { "docid": "6f46573250ccd8f028970b9ac31493c8", "score": "0.481554", "text": "public String getRetentionFlag() {\n return (String) getAttributeInternal(RETENTIONFLAG);\n }", "title": "" }, { "docid": "dc7dcfbf5950855535dc12092b6280e2", "score": "0.48153412", "text": "public int getDelayTime()\n\t{\n\t\treturn delayTime;\n\t}", "title": "" }, { "docid": "f7302bfb3fa94eb0eba1b0eab0ae3f64", "score": "0.48099008", "text": "public String getLstDelay() {\n return lstDelay;\n }", "title": "" }, { "docid": "108884239f14672b523530fb46f14760", "score": "0.48073998", "text": "public java.lang.String getWaitTime() {\n java.lang.Object ref = waitTime_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n waitTime_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "67a60bf33ce2f6f83065116a00b9ce07", "score": "0.48031968", "text": "public Boolean getDisableCacheSync() {\r\n return getAttributeAsBoolean(\"disableCacheSync\");\r\n }", "title": "" }, { "docid": "78d7a3dbea45ef40416ab0e2f8cd7faf", "score": "0.4801205", "text": "@Override\n public native int getAutoDelay();", "title": "" }, { "docid": "6b0a60530a166460d9c53f5726f93cd4", "score": "0.4796924", "text": "pb4server.DealHeartAskReq getDealHeartAskReq();", "title": "" }, { "docid": "50d691c6c7ecab3c627313fc50e101ca", "score": "0.47941896", "text": "public int getAcknowledgement() {\n if (loadBurst) {\n inputQueueSize++;\n return 1;\n } else {\n try {\n commonRead(1);\n return buffer[0];\n } catch (IOException | NullPointerException e) {\n e.printStackTrace();\n return 3;\n }\n }\n }", "title": "" }, { "docid": "720fcb0117083299798764fade29a260", "score": "0.47880122", "text": "public boolean isReceived() {\n\t\treturn _received;\n\t}", "title": "" }, { "docid": "4766258c43928ba12f709d18426439d3", "score": "0.47853345", "text": "@Override\n\tpublic boolean isPending();", "title": "" }, { "docid": "b0fc3a07d692a17e24457882fd9f655f", "score": "0.4784465", "text": "public String getReject() {\n return reject;\n }", "title": "" }, { "docid": "d09e56d03f92d6e283e3c1dbfde5bf26", "score": "0.4780877", "text": "public int getDelayedTimeout();", "title": "" }, { "docid": "8faa965f7fd4c32fd04726ddd840559b", "score": "0.47802374", "text": "int getNominalDelay();", "title": "" }, { "docid": "f9f9f4cc3e0b7a2533e4ab12d2433d8d", "score": "0.47769725", "text": "public int getDroneDelay()\r\n {\r\n return droneDelay;\r\n }", "title": "" }, { "docid": "7e4eaa326120a7794546cedd105a3aee", "score": "0.47749564", "text": "public boolean getAwaitResponse() {\n return awaitResponse;\n }", "title": "" }, { "docid": "0e86b16d4bb5c2739565127b8f2d431e", "score": "0.47677124", "text": "public Integer getClickHideDelay () {\r\n\t\treturn (Integer) getStateHelper().eval(PropertyKeys.clickHideDelay);\r\n\t}", "title": "" }, { "docid": "dc75e1ba91fd3a051e359e9eb1e62988", "score": "0.4761712", "text": "public Integer getBetDelay(){\n return betDelay;\n }", "title": "" }, { "docid": "f64f0e8955d01685f7c4f52dabb33708", "score": "0.47615352", "text": "public String getWaiting_query() {\n return waiting_query;\n }", "title": "" } ]
bb771c5405bced2b37d955f7f098df1a
Clears the value of the 'name' field
[ { "docid": "72fed24ecbf31d4d5c7cb33a5f944138", "score": "0.76719326", "text": "public edu.berkeley.path.model_elements_base.Node.Builder clearName() {\n name = null;\n fieldSetFlags()[1] = false;\n return this;\n }", "title": "" } ]
[ { "docid": "e1baea1f0682a767b00d2f70c9397259", "score": "0.8230545", "text": "public void clearName() {\n unlogChange(\"name\");\n getJSONObject().remove(\"name\");\n cacheRemoveValue(CacheKey.name);\n }", "title": "" }, { "docid": "c5c37a405030b39701907322547ec80a", "score": "0.8119048", "text": "private void clearName() {\n this.bitField0_ &= -3;\n this.name_ = getDefaultInstance().getName();\n }", "title": "" }, { "docid": "ef7ee2627d3de5ffcb9a2ef9985df7b1", "score": "0.7826774", "text": "protected void reset()\r\n {\r\n this.name = null;\r\n }", "title": "" }, { "docid": "034c9e5f32c78621aade10f71b7e83c8", "score": "0.7677281", "text": "public Builder clearName() {\n \n name_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "74a274a53b7b1a0a9b627d186ea750a0", "score": "0.7630242", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "74a274a53b7b1a0a9b627d186ea750a0", "score": "0.7630242", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "74a274a53b7b1a0a9b627d186ea750a0", "score": "0.7630242", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "74a274a53b7b1a0a9b627d186ea750a0", "score": "0.7630242", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "db62826f8b15fc165299354888e04651", "score": "0.7592987", "text": "public com.corp.concepts.shop.models.ItemDb.Builder clearName() {\n name = null;\n fieldSetFlags()[1] = false;\n return this;\n }", "title": "" }, { "docid": "b816c7f7028f0b55f0b1eb3562d91c0b", "score": "0.7589275", "text": "public Builder clearName() {\n\t\t\tbitField0_ = (bitField0_ & ~0x00000001);\n\t\t\tname_ = getDefaultInstance().getName();\n\t\t\tonChanged();\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "d4d87284a593a1efbce9b4b9e4df5cb9", "score": "0.75766194", "text": "private void clearText() {\n\t\tname.setText(\"\");\n\t}", "title": "" }, { "docid": "2b0ea1e145b92332ff68856b3b3cbf49", "score": "0.75691724", "text": "public sourcefiles.Light.Builder clearName() {\n name = null;\n fieldSetFlags()[0] = false;\n return this;\n }", "title": "" }, { "docid": "01ccf70af741d7875ebd6ce835894b9b", "score": "0.75339156", "text": "public com.squad.notebook.model.Note.Builder clearName() {\n name = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "title": "" }, { "docid": "a9dfa8bbe50fa2bf6c2348c6b980af2b", "score": "0.7516913", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a9dfa8bbe50fa2bf6c2348c6b980af2b", "score": "0.7516913", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a9dfa8bbe50fa2bf6c2348c6b980af2b", "score": "0.7516913", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a9dfa8bbe50fa2bf6c2348c6b980af2b", "score": "0.7516913", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a9dfa8bbe50fa2bf6c2348c6b980af2b", "score": "0.7516913", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a9dfa8bbe50fa2bf6c2348c6b980af2b", "score": "0.7516913", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a9dfa8bbe50fa2bf6c2348c6b980af2b", "score": "0.7516913", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1fae6a5531a1fde2b5d0e47f8bf547d0", "score": "0.7502461", "text": "public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$0, 0);\n }\n }", "title": "" }, { "docid": "1e04dc37cc233928c6e70562b7c1dc69", "score": "0.74980325", "text": "public Builder clearName() {\n name_ = getDefaultInstance().getName();\n bitField0_ = (bitField0_ & ~0x00000010);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fffac7b42dbc10299032baceaef855c3", "score": "0.74915004", "text": "public AvroSample.Builder clearName() {\n name = null;\n fieldSetFlags()[0] = false;\n return this;\n }", "title": "" }, { "docid": "8a2c11e6c9c58545350e12684891347d", "score": "0.74890226", "text": "public Builder clearName() {\n if (nameBuilder_ == null) {\n name_ = null;\n onChanged();\n } else {\n name_ = null;\n nameBuilder_ = null;\n }\n\n return this;\n }", "title": "" }, { "docid": "cdbda1321a4e0c049291074b7e3ab459", "score": "0.74847287", "text": "public Builder clearName() {\n name_ = getDefaultInstance().getName();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "cdbda1321a4e0c049291074b7e3ab459", "score": "0.74847287", "text": "public Builder clearName() {\n name_ = getDefaultInstance().getName();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "cdbda1321a4e0c049291074b7e3ab459", "score": "0.74847287", "text": "public Builder clearName() {\n name_ = getDefaultInstance().getName();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "00c9d19c0c6012e11200cdf72c5d9362", "score": "0.7465619", "text": "void unsetName();", "title": "" }, { "docid": "00c9d19c0c6012e11200cdf72c5d9362", "score": "0.7465619", "text": "void unsetName();", "title": "" }, { "docid": "00c9d19c0c6012e11200cdf72c5d9362", "score": "0.7465619", "text": "void unsetName();", "title": "" }, { "docid": "00c9d19c0c6012e11200cdf72c5d9362", "score": "0.7465619", "text": "void unsetName();", "title": "" }, { "docid": "9ac6f53b3714b1fd1d7dafff365ded0b", "score": "0.7438295", "text": "public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "758d8b15264e400bf01296cfa50ab227", "score": "0.7416289", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "758d8b15264e400bf01296cfa50ab227", "score": "0.7416289", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b716b609042878216f54cfe60522e21d", "score": "0.7379421", "text": "public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bcdc3ff8fdba456e50ab35345437c269", "score": "0.7377182", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bcdc3ff8fdba456e50ab35345437c269", "score": "0.7377182", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bcdc3ff8fdba456e50ab35345437c269", "score": "0.7377182", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "052120dd5ad65ece2b9e337d5bf3e072", "score": "0.7374477", "text": "protected void clear() {\n\t\tnameTextField.setText(\"\");\n\t\tcolorButtonGroup.clearSelection();\n\t\traceButtonGroup.clearSelection();\n\t}", "title": "" }, { "docid": "0f36b8668b8a86b058adafcde15fb293", "score": "0.73494405", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000080);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5cc2c5cf28bf9b653409610be6ea6d7a", "score": "0.73360837", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5cc2c5cf28bf9b653409610be6ea6d7a", "score": "0.7332223", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5cc2c5cf28bf9b653409610be6ea6d7a", "score": "0.7332223", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5cc2c5cf28bf9b653409610be6ea6d7a", "score": "0.7332223", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5cc2c5cf28bf9b653409610be6ea6d7a", "score": "0.7332223", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5cc2c5cf28bf9b653409610be6ea6d7a", "score": "0.7332223", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5cc2c5cf28bf9b653409610be6ea6d7a", "score": "0.7332223", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5cc2c5cf28bf9b653409610be6ea6d7a", "score": "0.7332223", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5cc2c5cf28bf9b653409610be6ea6d7a", "score": "0.7332009", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5cc2c5cf28bf9b653409610be6ea6d7a", "score": "0.73311853", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e209dd1c2d6531fd902b5a08fa13a255", "score": "0.73258114", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000004);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e209dd1c2d6531fd902b5a08fa13a255", "score": "0.73256946", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000004);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e209dd1c2d6531fd902b5a08fa13a255", "score": "0.73256946", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000004);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e209dd1c2d6531fd902b5a08fa13a255", "score": "0.73256946", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000004);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7e64f67bdf752eba202a28d93f5cbabc", "score": "0.73144114", "text": "public void clear(String elemetnName) {\r\n log(\"Clear value for elment name \" + elemetnName + \".\");\r\n getElement(elemetnName).clear();\r\n }", "title": "" }, { "docid": "614aca4d80c50820a88edfc897ea67b6", "score": "0.73137796", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "614aca4d80c50820a88edfc897ea67b6", "score": "0.73123866", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "614aca4d80c50820a88edfc897ea67b6", "score": "0.73123866", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "614aca4d80c50820a88edfc897ea67b6", "score": "0.73123866", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "614aca4d80c50820a88edfc897ea67b6", "score": "0.73123866", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "614aca4d80c50820a88edfc897ea67b6", "score": "0.73123866", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "614aca4d80c50820a88edfc897ea67b6", "score": "0.73123866", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "614aca4d80c50820a88edfc897ea67b6", "score": "0.73123866", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d7a02080f839707e5ef7871cdf07891e", "score": "0.7271339", "text": "public com.pluralsight.reactive.model.domain.DocumentUnlockedEvent.Builder clearName() {\n name = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "title": "" }, { "docid": "6f4c079327adccbdc49e2aee5bc55262", "score": "0.72681916", "text": "public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n Name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7263436", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7261812", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.72610664", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.7259086", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f7021263d921343814e4fa6f06615e9d", "score": "0.725814", "text": "public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "cfefcd5d983998c5336ebe53f547760b", "score": "0.72427666", "text": "private void clearInput() {\n field_Name.setValue(\"\");\n field_Amount.setText(\"\");\n field_Unit.setValue(\"Unit\");\n }", "title": "" }, { "docid": "d3bd91f77d8cde86ec95360b3ea02dff", "score": "0.72269875", "text": "public void unsetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(NAME$2);\r\n }\r\n }", "title": "" }, { "docid": "150d0ba055f9ac2b8856967d81c4362d", "score": "0.7213817", "text": "public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(NAME$2);\n }\n }", "title": "" }, { "docid": "11c9cb109daf629b86f1019fdfc85f49", "score": "0.71602625", "text": "public Builder clearNameControl() {\n bitField0_ = (bitField0_ & ~0x00000200);\n nameControl_ = getDefaultInstance().getNameControl();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0b3e605f0bbf9f4f21705c384d223498", "score": "0.71181196", "text": "public void removeValue(String name) {\n\n\t\t\t}", "title": "" }, { "docid": "5bcb3240e2c0d509dae4e21ba62106ea", "score": "0.70908713", "text": "public Builder clearNameControl() {\n bitField0_ = (bitField0_ & ~0x00000008);\n nameControl_ = getDefaultInstance().getNameControl();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2528a8e1e1b9b3d1c5aa13db5fe5811a", "score": "0.70906043", "text": "public Builder clearName() {\n if (nameBuilder_ == null) {\n name_ = Name.getDefaultInstance();\n onChanged();\n } else {\n nameBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000002);\n return this;\n }", "title": "" }, { "docid": "01e11314dc021deaa9daec387be85a96", "score": "0.70543176", "text": "public Builder clearNameControl() {\n bitField0_ = (bitField0_ & ~0x00000001);\n nameControl_ = getDefaultInstance().getNameControl();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "19306230c0c95ba0a91364fd14be3ed9", "score": "0.69451314", "text": "public org.LNDCDC_NCS_TCS.STADIUMS.apache.nifi.LNDCDC_NCS_TCS_STADIUMS.Builder clearNAME() {\n NAME = null;\n fieldSetFlags()[1] = false;\n return this;\n }", "title": "" }, { "docid": "4bf598fbf4b261bf5ab9dbdd89d9def3", "score": "0.69040215", "text": "public static void remove(String name) {\n\t\tset(name, null);\n\t}", "title": "" }, { "docid": "cf3b629b0169c78ff40899f578256baa", "score": "0.6887378", "text": "public void clearUnitName() {\n unlogChange(\"unitName\");\n getJSONObject().remove(\"unitName\");\n cacheRemoveValue(CacheKey.unitName);\n }", "title": "" }, { "docid": "e247b10862a12ff89df391ad501b2ed0", "score": "0.6872529", "text": "public void clearLabel(String name);", "title": "" }, { "docid": "da317bd3f4e7d148f678ca8288bf27f1", "score": "0.6815123", "text": "public void clear() {\n namee.setText(\"\");\n serialid4.setText(\"\");\n cmcode.setSelectedIndex(0);\n }", "title": "" }, { "docid": "462e479e0d9a74c8fbf1c66125c5605b", "score": "0.6750178", "text": "public void setName(String name) {\r\n this.name = name == null ? null : name.trim();\r\n }", "title": "" }, { "docid": "462e479e0d9a74c8fbf1c66125c5605b", "score": "0.6750178", "text": "public void setName(String name) {\r\n this.name = name == null ? null : name.trim();\r\n }", "title": "" } ]
ed543e9003f2599966a469cc64eb64f7
/ compiled from: MemoryCache
[ { "docid": "bfd5c301cdbfe9131ef0b8e2e349b6f6", "score": "0.0", "text": "public interface e<K, V> {\n @Nullable\n a<V> a(K k, a<V> aVar);\n\n int c(Predicate<K> predicate);\n\n boolean d(Predicate<K> predicate);\n\n @Nullable\n a<V> m(K k);\n}", "title": "" } ]
[ { "docid": "dd4779a7b2f7d088df98c2f722713568", "score": "0.6605191", "text": "protected abstract void cache();", "title": "" }, { "docid": "54fe51527e83e387376169074ae0bb33", "score": "0.651916", "text": "abstract public void generatePrepareCache();", "title": "" }, { "docid": "f058dcdd8d43e37378689ae8847db363", "score": "0.6155215", "text": "@Override\n public void run(final DataCache dataCache) throws IOException {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 1: getfield net/minecraft/data/server/AdvancementsProvider.root:Lnet/minecraft/data/DataGenerator;\n // 4: invokevirtual net/minecraft/data/DataGenerator.getOutput:()Ljava/nio/file/Path;\n // 7: astore_2 /* path2 */\n // 8: invokestatic com/google/common/collect/Sets.newHashSet:()Ljava/util/HashSet;\n // 11: astore_3 /* set3 */\n // 12: aload_3 /* set3 */\n // 13: aload_2 /* path2 */\n // 14: aload_1 /* dataCache */\n // 15: invokedynamic BootstrapMethod #0, accept:(Ljava/util/Set;Ljava/nio/file/Path;Lnet/minecraft/data/DataCache;)Ljava/util/function/Consumer;\n // 20: astore consumer4\n // 22: aload_0 /* this */\n // 23: getfield net/minecraft/data/server/AdvancementsProvider.tabGenerators:Ljava/util/List;\n // 26: invokeinterface java/util/List.iterator:()Ljava/util/Iterator;\n // 31: astore 5\n // 33: aload 5\n // 35: invokeinterface java/util/Iterator.hasNext:()Z\n // 40: ifeq 67\n // 43: aload 5\n // 45: invokeinterface java/util/Iterator.next:()Ljava/lang/Object;\n // 50: checkcast Ljava/util/function/Consumer;\n // 53: astore consumer6\n // 55: aload consumer6\n // 57: aload consumer4\n // 59: invokeinterface java/util/function/Consumer.accept:(Ljava/lang/Object;)V\n // 64: goto 33\n // 67: return \n // Exceptions:\n // throws java.io.IOException\n // StackMapTable: 00 02 FF 00 21 00 06 00 00 00 00 07 00 67 07 00 69 00 00 FF 00 21 00 00 00 00\n // \n // The error that occurred was:\n // \n // java.lang.IllegalStateException: Could not infer any expression.\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:374)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:344)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at cuchaz.enigma.SourceProvider.getSources(SourceProvider.java:66)\n // at cuchaz.enigma.Deobfuscator.decompileClass(Deobfuscator.java:269)\n // at cuchaz.enigma.Deobfuscator.lambda$decompileClasses$7(Deobfuscator.java:262)\n // at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)\n // at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)\n // at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)\n // at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)\n // at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)\n // at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)\n // at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)\n // at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)\n // at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "title": "" }, { "docid": "47ce94ce7dcc8f60502ec83482b6ab26", "score": "0.6139298", "text": "Cache createCache();", "title": "" }, { "docid": "4b0e88d4ceb58467254fb8d191743ffc", "score": "0.6067716", "text": "boolean isCompiled();", "title": "" }, { "docid": "cec900dc06b3277142d815207eab8d82", "score": "0.6048224", "text": "private CacheMemory(){\n\t\tmemory = new Hashtable<String, Search>();\n\t}", "title": "" }, { "docid": "d258f17e76c1ed54d38a785340bb230e", "score": "0.6027586", "text": "void beginCache ();", "title": "" }, { "docid": "a9d979d0e68a657ee240c7e744e99c6f", "score": "0.5977527", "text": "private CompiledScript() { }", "title": "" }, { "docid": "522a2304ae2cfa621d9e9ccd772623c3", "score": "0.5970898", "text": "final void c() {\n/* */ ImageCache imageCache;\n/* 17562 */ if ((imageCache = ImageCache.a.a()).b()) {\n/* */ byte b;\n/* */ int i;\n/* */ for (b = 0, i = this.a.size(); b < i; b++) {\n/* */ c c = (c)this.a.valueAt(b);\n/* */ imageCache.a(c.a);\n/* */ } \n/* */ } \n/* */ this.a.clear();\n/* */ }", "title": "" }, { "docid": "519142e710b3c455e92114022a4421f4", "score": "0.5958357", "text": "@Override\n public DiskCache build() {\n try {\n File imgCache = new File(FileUtils.getCacheImgPath(AppContext.getContext()));\n return DiskLruCacheWrapper.get(imgCache, GLIDE_CACHE_SIZE);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "1dffd82624ffbed12888d60dc1accae8", "score": "0.59497213", "text": "public static void testToMemory() throws Exception {\n output(\"****************************************\");\n final String className = \"test.compilation.MyTask\";\n // build the map of sources to compile\n final Map<String, CharSequence> sources = new HashMap<>();\n sources.put(className, buildSourceCode());\n sources.put(className + \"2\", buildSourceCode2());\n SourceCompiler compiler = null;\n try {\n compiler = new SourceCompiler();\n // receive the map of generated classes bytecode\n final Map<String, byte[]> bytecodeMap = compiler.compileToMemory(sources);\n output(\"bytecode map = \" + bytecodeMap);\n // load the class\n final Class<?> clazz = compiler.getClassloader().loadClass(className);\n // create an instance and execute it\n final Callable<?> task = (Callable<?>) clazz.newInstance();\n output(\"result: \" + task.call());\n } finally {\n compiler.close();\n }\n }", "title": "" }, { "docid": "11fb4d7870832b9efcb7c18c7f9561b6", "score": "0.57811475", "text": "int getCaching();", "title": "" }, { "docid": "dc9269701a686c090d416fba2f74a9a0", "score": "0.5776427", "text": "public MemoryCache() {\n\t\tcache_ = new LruCache<String, Bitmap>(CACHE_SIZE);\n\t}", "title": "" }, { "docid": "fe73ed4c3c4b25175c18eb2e7e90e16c", "score": "0.5775017", "text": "private IndexWriterCache() {\n\t}", "title": "" }, { "docid": "54319bfcf697362bbe7d77e0d51ea349", "score": "0.57233334", "text": "public byte[] precompile(byte[] code);", "title": "" }, { "docid": "e1ff438998404c256db34da9474e2282", "score": "0.5716522", "text": "public Cache getCache();", "title": "" }, { "docid": "33a3959fc0ab42a698805ac01133f22c", "score": "0.5633934", "text": "@Override\n\tpublic Map<String,Object> getCacheContext() {\n\t\treturn new ConcurrentHashMap<String ,Object>();\n\t}", "title": "" }, { "docid": "6f446ff5ad2d7ab982f1524e9150a2e0", "score": "0.56271034", "text": "@Override\r\n\tpublic boolean cachable() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "a2c4b6b32f973c3d2a5a759ce6d6e1c5", "score": "0.5604582", "text": "public JJITInstruction run(KFrame frame) throws Exception {\n KRegister local_0 = frame.getLocal(0);\n // local_2 2 ; r=1/w=1 : Cached\n KRegister local_2;\n // *********[5] ANEWARRAY(3)\n // **REMOVED Substitution** index = frame.popInt();\n if(c_CString == null){\n c_CString = c_repo.getClassByName(\"java.lang.String\");\n }\n // **REMOVED Substitution** s0_ref = c_memman.allocRefArray(c_CString,frame.popInt());\n // *********[6] ASTORE(2)\n local_2 = c_memman.allocRefArray(c_CString,frame.popInt());\n // *********[7] ALOAD(0)\n frame.push(local_0);\n // *********[8] ICONST_0(Integer{0})\n frame.push(IZERO);\n // *********[9] ALOAD(2)\n frame.push(local_2);\n // *********[10] ICONST_0(Integer{0})\n frame.push(IZERO);\n // *********[11] ALOAD(0)\n // **REMOVED Substitution** s0 = local_0;\n // *********[12] ARRAYLENGTH\n frame.push(new KInteger(c_memman.getArraySize(((KReference)local_0))));\n frame.setLocal(2,local_2);\n return c_next;\n }", "title": "" }, { "docid": "329d484819efc77b2cd8bb209deb8762", "score": "0.5597468", "text": "public Status compileStore() {\n\t\treturn compileStore(false);\n\t}", "title": "" }, { "docid": "a726138b531f5d0733f73e93d8bd36d0", "score": "0.5584562", "text": "public static void m146263a(C46482g gVar, Context context) {\n if (gVar == null || context == null) {\n throw new IllegalArgumentException(\"DiskLruCache and Context can't be null !!!\");\n }\n f119919z = context.getApplicationContext();\n if (f119895b == null) {\n C46480f fVar = f119894a;\n if (fVar == null || !fVar.f119761a.getAbsolutePath().equals(gVar.f119763a.getAbsolutePath())) {\n f119895b = gVar;\n f119896c = C46463c.m146065a(context);\n f119895b.mo115613a((C46492a) new C46492a() {\n /* renamed from: a */\n public final void mo115626a(String str) {\n StringBuilder sb = new StringBuilder(\"new cache created: \");\n sb.append(str);\n C46470c.m146085b(\"TAG_PROXY_DiskLruCache\", sb.toString());\n }\n\n /* renamed from: a */\n public final void mo115627a(Set<String> set) {\n C46534r.f119896c.mo115587a((Collection<String>) set, 0);\n StringBuilder sb = new StringBuilder(\"cache file removed, \");\n sb.append(set);\n C46470c.m146085b(\"TAG_PROXY_DiskLruCache\", sb.toString());\n if (set != null) {\n for (String c : set) {\n C46456aa.m146053a().mo115582c(c);\n }\n }\n }\n });\n C46536s a = C46536s.m146278a();\n a.f119926g = gVar;\n a.f119925f = f119896c;\n C46522q a2 = C46522q.m146227a();\n a2.f119864d = gVar;\n a2.f119863c = f119896c;\n return;\n }\n throw new IllegalArgumentException(\"DiskLruCache 和 DiskCache 不能使用相同的目录\");\n }\n }", "title": "" }, { "docid": "f97b5bae428f7998e97986f1ed2eee31", "score": "0.55753577", "text": "private void cacheRendering(File file, Image renderedFrame) {\r\n\t\tif (renderedFrame != null) {\r\n\t\t\tbeSwappedOut.add(file);\r\n\t\t\tcacheModifiedDate.put(file, new Long(file.lastModified()));\r\n\t\t\tmemoryCache.put(file, renderedFrame);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b76741ae8b2aecc5ea189dd11abc1d44", "score": "0.5561958", "text": "public void testImplementation_implementationIsCached() throws Exception;", "title": "" }, { "docid": "164c89bda9a9cd5b2979ba0f8c3faab5", "score": "0.551407", "text": "public String postcompile(String path);", "title": "" }, { "docid": "97d41d60ae9b07599c74ddf53b4bbcfd", "score": "0.5507219", "text": "protected abstract Serializable getFromCache(final Map<String, String> parameters);", "title": "" }, { "docid": "4fab347048f2b8dc0b9e380d167518dc", "score": "0.5473688", "text": "public interface Caching{\n\tpublic void save(Mesh m,CompoundCollisionShape shape,VHACDParameters p);\n\tpublic CompoundCollisionShape load(Mesh m,VHACDParameters p);\n}", "title": "" }, { "docid": "2e1ace518c79b6123d21947d485c7457", "score": "0.5462953", "text": "private Cache() {\n\n }", "title": "" }, { "docid": "6452f36e61f7b3b4abe2c3320448302c", "score": "0.54530925", "text": "final void setCompiled() {\n\tthis.compiled = true;\n\tthis.liveOrCompiled = this.live || this.compiled;\n }", "title": "" }, { "docid": "9101d34aa0ea46ac715c189547c4688e", "score": "0.5441898", "text": "OTEServerRuntimeCache getRuntimeCache();", "title": "" }, { "docid": "153aadac669dd151d64ed3b3bc961502", "score": "0.54346836", "text": "CacheYaml getDataFile();", "title": "" }, { "docid": "6cd0721bcc051bc84e7c9a505150f21f", "score": "0.54201746", "text": "@Override\n protected Compiler createCompiler() {\n if (cachedCompiler != null) {\n return cachedCompiler;\n }\n cachedCompiler = super.createCompiler();\n return cachedCompiler;\n }", "title": "" }, { "docid": "85ec7fda7cc1d71f5717cc6df760565b", "score": "0.54158646", "text": "private IResourceStream fromCacheOrLoadAndCompile(final Class<?> clazz, final String path) {\n final long startCache = System.currentTimeMillis();\n final String key = createKey(clazz, path);\n final LessResourceStream lessResourceStream;\n \n /**\n * a lock on reference class should be ok, other {@link ResourceReference} scopes shouldn't be\n * locked here.\n *\n * Each call needs two different steps, first one is collecting all less files and their content (this\n * includes the last modification time) and the second one (this is the expensive part) is compiling\n * the content. Because of this there are two different caches, the L1 cache holds all look up data\n * for current thread, this reduces disk io because the outdated check is performed once for each thread.\n * The L2 cache holds the compiled content as long as the application is active and data isn't out\n * dated.\n */\n //noinspection SynchronizationOnLocalVariableOrMethodParameter\n synchronized (clazz) {\n final CacheValue cacheValue = CACHE.getIfPresent(key);\n \n /**\n * This {@link THREAD_CACHE} is necessary to reduce look ups for outdated\n * less resources during a single request.\n */\n if (THREAD_CACHE.get().contains(key) && cacheValue != null) {\n LOG.debug(\"L1 cache hit: loading of {} from L1 cache took {} ms\", path, System.currentTimeMillis() - startCache);\n return cacheValue.original;\n } else {\n THREAD_CACHE.get().add(key);\n }\n \n lessResourceStream = loadStream(clazz, path);\n \n // check for outdated less resources, if all are up2date return cache value directly\n // without changing the cache.\n if (cacheValue != null && cacheValue.isUpToDate(lessResourceStream.lastModifiedTime())) {\n LOG.debug(\"L2 cache hit: loading of {} from L2 cache took {} ms\", path, System.currentTimeMillis() - startCache);\n \n return cacheValue.original;\n }\n \n // put a new cache value to cache.\n CACHE.put(key, new CacheValue(lessResourceStream));\n }\n \n LOG.debug(\"cache miss: loading of {} took {} ms\", path, System.currentTimeMillis() - startCache);\n return lessResourceStream;\n }", "title": "" }, { "docid": "c48b07806420b1b37a0bc8a244b1e289", "score": "0.5413454", "text": "public interface CacheContainer {\r\n\r\n}", "title": "" }, { "docid": "85dfb6af3efab2a7278fbcb084a196e9", "score": "0.5406751", "text": "public void cache(){\n try(FileOutputStream fos = new FileOutputStream(\"cache.txt\");\n ObjectOutputStream oos = new ObjectOutputStream(fos)){\n\n oos.writeObject(image);\n\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d042e1ceca1f3b571b682f3f45263743", "score": "0.53913754", "text": "private static LruCache<String, Bitmap> createCache() {\n final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024);\n final int cacheSize = maxMemory / 4;\n\n LruCache<String, Bitmap> memoryCache = new LruCache<String, Bitmap>(cacheSize) {\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n // The cache size will be measured in kilobytes rather than\n // number of items.\n return bitmap.getByteCount() / 1024;\n }\n };\n return memoryCache;\n }", "title": "" }, { "docid": "cdc3fa6e9b6c11c08b9a13b1e5cc5980", "score": "0.537971", "text": "@Override\n public boolean isLocallyCached () {\n return false;\n }", "title": "" }, { "docid": "bcbb8382632ff0bba7343af4f2d178d4", "score": "0.5377798", "text": "public java.nio.ByteBuffer getData() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.opengl.ETC1Util.ETC1Texture.getData():java.nio.ByteBuffer, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.opengl.ETC1Util.ETC1Texture.getData():java.nio.ByteBuffer\");\n }", "title": "" }, { "docid": "9652b2758f8e16e14c7f517e7320b92c", "score": "0.53674567", "text": "static /* synthetic */ java.lang.String m93-java_util_stream_Collectors-mthref-7(java.lang.StringBuilder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.util.stream.Collectors.-java_util_stream_Collectors-mthref-7(java.lang.StringBuilder):java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.Collectors.-java_util_stream_Collectors-mthref-7(java.lang.StringBuilder):java.lang.String\");\n }", "title": "" }, { "docid": "69fec31a450d12e903e605da03016d7d", "score": "0.53514045", "text": "@ThreadSafe\npublic interface CrossBuildInMemoryCache<K, V> {\n /**\n * Locates the given entry, using the supplied factory when the entry is not present or has been discarded, to recreate the entry in the cache.\n *\n * <p>Implementations must prevent more than one thread calculating the same key at the same time.\n */\n V get(K key, Transformer<V, K> factory);\n\n /**\n * Locates the given entry, if present. Returns {@code null} when missing.\n */\n @Nullable V get(K key);\n\n /**\n * Adds the given value to the cache, replacing any existing value.\n */\n void put(K key, V value);\n\n /**\n * Removes all entries from this cache.\n */\n void clear();\n}", "title": "" }, { "docid": "38847499d22db34d37cd1dfe6b65e105", "score": "0.5344304", "text": "protected boolean mayRestrictCacheSize ()\n {\n return true;\n }", "title": "" }, { "docid": "c992940c6a83275d5e5f843ba9d90d8d", "score": "0.53436625", "text": "public int[] getInstructionFromCache(int memPosition){\n int[] instruction = new int[4];\n for (int i = 0; i < 4; i++)\n instruction[i] = memoriaPrincipalInstrucciones[memPosition++];\n return instruction;\n }", "title": "" }, { "docid": "22c1ec090c0a8e094261651fff41bcc2", "score": "0.5341216", "text": "public final java.io.File getCacheDir() {\n /*\n r4 = this;\n r0 = r4.f;\n monitor-enter(r0);\n r1 = r4.h;\t Catch:{ all -> 0x0052 }\n if (r1 != 0) goto L_0x0014;\n L_0x0007:\n r1 = new java.io.File;\t Catch:{ all -> 0x0052 }\n r2 = r4.a();\t Catch:{ all -> 0x0052 }\n r3 = \"cache\";\n r1.<init>(r2, r3);\t Catch:{ all -> 0x0052 }\n r4.h = r1;\t Catch:{ all -> 0x0052 }\n L_0x0014:\n r1 = r4.h;\t Catch:{ all -> 0x0052 }\n r1 = r1.exists();\t Catch:{ all -> 0x0052 }\n if (r1 != 0) goto L_0x004e;\n L_0x001c:\n r1 = r4.h;\t Catch:{ all -> 0x0052 }\n r1 = r1.mkdirs();\t Catch:{ all -> 0x0052 }\n if (r1 != 0) goto L_0x0043;\n L_0x0024:\n r1 = r4.h;\t Catch:{ all -> 0x0052 }\n r1 = r1.exists();\t Catch:{ all -> 0x0052 }\n if (r1 == 0) goto L_0x0030;\n L_0x002c:\n r1 = r4.h;\t Catch:{ all -> 0x0052 }\n monitor-exit(r0);\t Catch:{ all -> 0x0052 }\n return r1;\n L_0x0030:\n r1 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0052 }\n r2 = \"Unable to create cache directory \";\n r1.<init>(r2);\t Catch:{ all -> 0x0052 }\n r2 = r4.h;\t Catch:{ all -> 0x0052 }\n r2 = r2.getAbsolutePath();\t Catch:{ all -> 0x0052 }\n r1.append(r2);\t Catch:{ all -> 0x0052 }\n r1 = 0;\n monitor-exit(r0);\t Catch:{ all -> 0x0052 }\n return r1;\n L_0x0043:\n r1 = r4.h;\t Catch:{ all -> 0x0052 }\n r1 = r1.getPath();\t Catch:{ all -> 0x0052 }\n r2 = 505; // 0x1f9 float:7.08E-43 double:2.495E-321;\n com.qihoo360.a.b.a.a(r1, r2);\t Catch:{ all -> 0x0052 }\n L_0x004e:\n monitor-exit(r0);\t Catch:{ all -> 0x0052 }\n r0 = r4.h;\n return r0;\n L_0x0052:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x0052 }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qihoo360.loader2.u.getCacheDir():java.io.File\");\n }", "title": "" }, { "docid": "ad3dbda2c654779054646d16bfaedef2", "score": "0.5335656", "text": "public abstract <T> Map<EditorBackground, T> createCacheMap();", "title": "" }, { "docid": "4ec0da2a109a3d135e60561a2c41454f", "score": "0.5307685", "text": "void adjustInMemoryUsage() {}", "title": "" }, { "docid": "a3cf5c5706d66b532d62e206b2b36dd5", "score": "0.5305822", "text": "private airlift.CachingContext getCachingContext() { return cachingContext; }", "title": "" }, { "docid": "12b7844150befe6466688f5ca607e007", "score": "0.53019714", "text": "public CacheSourceForBinaryQueryImpl() {\n }", "title": "" }, { "docid": "59fbea656fbde3d75cb2b37fdd6ee4eb", "score": "0.529179", "text": "public void compile();", "title": "" }, { "docid": "f089476bbc338ea42435744c1f3025ed", "score": "0.528844", "text": "public void testCompile(){\n List<_classFile> _cfs = _runtime.compile(\"package aa.bb;\", \"public class C{}\");\n _cfs = _runtime.compile(_class.of(\"aa.bb.C\"));\n assertEquals(1, _cfs.size());\n assertEquals(\"aa.bb.C\", _cfs.get(0).getFullyQualifiedClassName());\n byte[] bytecode = _cfs.get(0).getBytecode(); //we can get the underlying bytecode from the _classFile\n }", "title": "" }, { "docid": "a6b0d9c14afcf0ee2e42463041ddac2f", "score": "0.52847755", "text": "public interface MemoryInterface {\n\n /**\n * Returns text representation of instruction at particular address\n * halts the execution if wrong address is passed\n * @param address addreess of instruction\n * @return Instruction at a particular address\n */\n String fetch(int address);\n\n /**\n * Returns data read from memory\n * @param address address of memory area\n * @return integer value stored in memory\n */\n int readData(int address);\n\n /**\n * Purges existing data in d-cache and reloads instructions\n * in i-cache\n */\n void reload();\n\n /**\n * Sets filename to read instructions from\n * @param fileName filename with instructions\n */\n void setFileName(String fileName);\n\n /**\n * Display contents of first 100 memory locations\n */\n void display();\n}", "title": "" }, { "docid": "5bd0852d5e349a7ad33b9d15874afbed", "score": "0.52743703", "text": "abstract public void generateConfigureCache();", "title": "" }, { "docid": "8ccb2e989cb8ff45cd054f70dc833f51", "score": "0.5258452", "text": "public void readSource() {\n /*\n r10 = this;\n r4 = -1\n r2 = 0\n com.taobao.taobaoavsdk.cache.library.Cache r5 = r10.cache // Catch:{ Throwable -> 0x0041 }\n int r2 = r5.available() // Catch:{ Throwable -> 0x0041 }\n com.taobao.taobaoavsdk.cache.library.Source r5 = r10.source // Catch:{ Throwable -> 0x0041 }\n r6 = 0\n r5.open(r2, r6) // Catch:{ Throwable -> 0x0041 }\n com.taobao.taobaoavsdk.cache.library.Source r5 = r10.source // Catch:{ Throwable -> 0x0041 }\n int r4 = r5.length() // Catch:{ Throwable -> 0x0041 }\n r5 = 8192(0x2000, float:1.14794E-41)\n byte[] r0 = new byte[r5] // Catch:{ Throwable -> 0x0041 }\n L_0x0018:\n com.taobao.taobaoavsdk.cache.library.Source r5 = r10.source // Catch:{ Throwable -> 0x0041 }\n int r3 = r5.read(r0) // Catch:{ Throwable -> 0x0041 }\n r5 = -1\n if (r3 == r5) goto L_0x0060\n java.lang.Object r6 = r10.stopLock // Catch:{ Throwable -> 0x0041 }\n monitor-enter(r6) // Catch:{ Throwable -> 0x0041 }\n boolean r5 = r10.isStopped() // Catch:{ all -> 0x0053 }\n if (r5 == 0) goto L_0x0034\n monitor-exit(r6) // Catch:{ all -> 0x0053 }\n r10.closeSource()\n long r6 = (long) r2\n long r8 = (long) r4\n r10.notifyNewCacheDataAvailable(r6, r8)\n L_0x0033:\n return\n L_0x0034:\n com.taobao.taobaoavsdk.cache.library.Cache r5 = r10.cache // Catch:{ all -> 0x0053 }\n r5.append(r0, r3) // Catch:{ all -> 0x0053 }\n monitor-exit(r6) // Catch:{ all -> 0x0053 }\n int r2 = r2 + r3\n long r6 = (long) r2\n long r8 = (long) r4\n r10.notifyNewCacheDataAvailable(r6, r8) // Catch:{ Throwable -> 0x0041 }\n goto L_0x0018\n L_0x0041:\n r1 = move-exception\n java.util.concurrent.atomic.AtomicInteger r5 = r10.readSourceErrorsCount // Catch:{ all -> 0x0056 }\n r5.incrementAndGet() // Catch:{ all -> 0x0056 }\n r10.onError(r1) // Catch:{ all -> 0x0056 }\n r10.closeSource()\n long r6 = (long) r2\n long r8 = (long) r4\n r10.notifyNewCacheDataAvailable(r6, r8)\n goto L_0x0033\n L_0x0053:\n r5 = move-exception\n monitor-exit(r6) // Catch:{ all -> 0x0053 }\n throw r5 // Catch:{ Throwable -> 0x0041 }\n L_0x0056:\n r5 = move-exception\n r10.closeSource()\n long r6 = (long) r2\n long r8 = (long) r4\n r10.notifyNewCacheDataAvailable(r6, r8)\n throw r5\n L_0x0060:\n r10.tryComplete() // Catch:{ Throwable -> 0x0041 }\n r10.closeSource()\n long r6 = (long) r2\n long r8 = (long) r4\n r10.notifyNewCacheDataAvailable(r6, r8)\n goto L_0x0033\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.taobaoavsdk.cache.library.ProxyCache.readSource():void\");\n }", "title": "" }, { "docid": "d80376113ca673bf56595c9ea8356d30", "score": "0.525772", "text": "private void compileAndLoad(Properties props,int compiledAttempts) throws IOException {\n String f = props.getProperty(FUNCTION_KEY);\n String tmpDir = System.getProperty(\"java.io.tmpdir\");\n StringBuffer dir = new StringBuffer();\n this.kernelPath = dir.append(tmpDir)\n .append(File.separator)\n .append(\"nd4j-kernels\")\n .append(File.separator)\n .append(\"output\")\n .append(File.separator)\n .toString();\n File tmpDir2 = new File(tmpDir + File.separator + \"nd4j-kernels\" + File.separatorChar + \"output\");\n\n boolean shouldCompile = !tmpDir2.exists() || tmpDir2.exists() && tmpDir2.listFiles().length <= 1 || alreadyCompiled;\n String[] split = f.split(\",\");\n this.modules = split;\n if(shouldCompile) {\n loadCudaKernels();\n }\n\n else {\n log.info(\"Modules appear to already be compiled..attempting to use cache\");\n for (String module : split) {\n String path = kernelPath + module + \".cubin\";\n String nameDouble = module + \"_double\";\n String nameFloat = module + \"_float\";\n paths.put(nameDouble,path);\n paths.put(nameFloat,path);\n\n }\n }\n\n try {\n loadModules(split,kernelPath);\n alreadyCompiled = true;\n }\n\n catch (IOException e1) {\n if(!shouldCompile && compiledAttempts < 3) {\n log.warn(\"Error loading modules...attempting recompile\");\n FileUtils.deleteDirectory(new File(kernelPath));\n props.setProperty(CACHE_COMPILED,String.valueOf(true));\n compileAndLoad(props,compiledAttempts + 1);\n }\n else\n throw new RuntimeException(e1);\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n }", "title": "" }, { "docid": "63997ce3359fd247f7db2ac8bc8ccb02", "score": "0.5247419", "text": "protected void processCompiler() {\n ObjectName jitMXBean = null;\n try {\n if(supportsCompilerTime != null && !supportsCompilerTime) return;\n jitMXBean = mxBeanObjectNames.get(ManagementFactory.COMPILATION_MXBEAN_NAME);\n if(jitMXBean==null) {\n jitMXBean = new ObjectName(ManagementFactory.COMPILATION_MXBEAN_NAME);\n Set<ObjectName> beanSet = mBeanServerConnection.queryNames(jitMXBean, null);\n if(beanSet.size()==1)\n mxBeanObjectNames.put(ManagementFactory.COMPILATION_MXBEAN_NAME, new ObjectName(beanSet.iterator().next().getCanonicalName()));\n }\n if(!shouldBeCollected(jitMXBean)) return;\n if(supportsCompilerTime==null) {\n supportsCompilerTime = (Boolean)mBeanServerConnection.getAttribute(jitMXBean, \"CompilationTimeMonitoringSupported\");\n }\n if(!supportsCompilerTime) return;\n String rootSegment[] = null;\n if(mappedMetrics) {\n \trootSegment = new String[]{ROOT_MXBEAN_SEGMENT ,\"category=Compilation\"};\n } else {\n \trootSegment = StringHelper.append(false, tracingNameSpace,mxBeanSegment,\"JIT Compiler\");\n }\n long totalComplilationTime = (Long)mBeanServerConnection.getAttribute(jitMXBean, \"TotalCompilationTime\");\n //tracer.traceStickyDelta(totalComplilationTime, \"CompileTime(Delta)\", rootSegment);\n tracer.trace(totalComplilationTime, \"TotalCompileTime\", MetricType.DELTA_GAUGE, rootSegment);\n } catch (InstanceNotFoundException ine) {\n if(logErrors) { warn(\"MXBean Collector (\" + objectName + \") Could Not Locate MBean \" + jitMXBean); }\n } catch (IOException ioex){\n if(logErrors) { error(\"There are some issues connecting to the MBeanServer for bean \" + this.getBeanName()); }\n mBeanServerConnection=null;\n } catch (Exception e) {\n if(logErrors) {\n error(\"Failed to process MXBean Class Loading Stats\", e);\n }\n }\n }", "title": "" }, { "docid": "15c70c1a988f396a2ed8b0d645edc465", "score": "0.52469325", "text": "public Bitmap a() {\n String string2;\n String string3;\n boolean bl2;\n Object object;\n int bl22 = this.l();\n a$a a$a = this.h;\n int n10 = this.n;\n int bl3 = this.m;\n Object object2 = Bitmap.Config.ARGB_8888;\n a$a = a$a.b(n10, bl3, (Bitmap.Config)object2);\n Object object3 = new Canvas((Bitmap)a$a);\n Object object4 = PorterDuff.Mode.SRC;\n object2 = null;\n object3.drawColor(0, (PorterDuff.Mode)object4);\n object4 = this.p;\n boolean bl4 = ((WebpFrameCacheStrategy)object4).e();\n int n11 = 3;\n String string4 = s;\n if (!bl4) {\n object4 = this.r;\n object = bl22;\n if ((object4 = (Bitmap)object4.get(object)) != null) {\n boolean bl5 = Log.isLoggable((String)string4, (int)n11);\n if (bl5) {\n object2 = new StringBuilder();\n object = \"hit frame bitmap from memory cache, frameNumber=\";\n ((StringBuilder)object2).append((String)object);\n ((StringBuilder)object2).append(bl22);\n String string5 = ((StringBuilder)object2).toString();\n Log.d((String)string4, (String)string5);\n }\n object3.drawBitmap((Bitmap)object4, 0.0f, 0.0f, null);\n return a$a;\n }\n }\n if (!(bl2 = this.u(bl22))) {\n int n13 = bl22 + -1;\n n13 = this.v(n13, (Canvas)object3);\n } else {\n int n14 = bl22;\n }\n boolean bl6 = Log.isLoggable((String)string4, (int)n11);\n if (bl6) {\n void var4_10;\n object = new StringBuilder();\n ((StringBuilder)object).append(\"frameNumber=\");\n ((StringBuilder)object).append(bl22);\n string3 = \", nextIndex=\";\n ((StringBuilder)object).append(string3);\n ((StringBuilder)object).append((int)var4_10);\n object = ((StringBuilder)object).toString();\n Log.d((String)string4, (String)object);\n }\n while (true) {\n void var4_11;\n object = \", dispose=\";\n string3 = \", blend=\";\n string2 = \"renderFrame, index=\";\n if (++var4_11 >= bl22) break;\n b b10 = this.k[var4_11];\n boolean bl7 = b10.g;\n if (!bl7) {\n this.r((Canvas)object3, b10);\n }\n this.w((int)var4_11, (Canvas)object3);\n bl7 = Log.isLoggable((String)string4, (int)n11);\n if (bl7) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(string2);\n stringBuilder.append((int)var4_11);\n stringBuilder.append(string3);\n boolean bl8 = b10.g;\n stringBuilder.append(bl8);\n stringBuilder.append((String)object);\n bl6 = b10.h;\n stringBuilder.append(bl6);\n object = stringBuilder.toString();\n Log.d((String)string4, (String)object);\n }\n if (!(bl6 = b10.h)) continue;\n this.r((Canvas)object3, b10);\n }\n object4 = this.k[bl22];\n boolean bl9 = ((b)object4).g;\n if (!bl9) {\n this.r((Canvas)object3, (b)object4);\n }\n this.w(bl22, (Canvas)object3);\n n10 = (int)(Log.isLoggable((String)string4, (int)n11) ? 1 : 0);\n if (n10 != 0) {\n object3 = new StringBuilder();\n ((StringBuilder)object3).append(string2);\n ((StringBuilder)object3).append(bl22);\n ((StringBuilder)object3).append(string3);\n boolean bl10 = ((b)object4).g;\n ((StringBuilder)object3).append(bl10);\n ((StringBuilder)object3).append((String)object);\n boolean bl11 = ((b)object4).h;\n ((StringBuilder)object3).append(bl11);\n object3 = ((StringBuilder)object3).toString();\n Log.d((String)string4, (String)object3);\n }\n this.q(bl22, (Bitmap)a$a);\n return a$a;\n }", "title": "" }, { "docid": "45d2d63c3bc2fd1d911be577940457d0", "score": "0.5242256", "text": "protected void uncache() {}", "title": "" }, { "docid": "2ee272e3c7f7271b2e22e0ee5d06f16f", "score": "0.5240222", "text": "@Override\r\n\tpublic void LowMemory() {\n\r\n\t}", "title": "" }, { "docid": "a4d41d21bba3e6e8082a1c23421d3f88", "score": "0.5218097", "text": "private TagCache(){\n loadTags();\n }", "title": "" }, { "docid": "19d52849fdf5ff41791869af2e6e2d8a", "score": "0.5210544", "text": "public void cacheResult(vn.com.ecopharma.emp.model.Specialized specialized);", "title": "" }, { "docid": "d4036031248b541051040eee7a0a8c81", "score": "0.52093637", "text": "private static String m137689a(View view) {\n boolean z;\n String str;\n String str2;\n StringBuilder sb = new StringBuilder(VideoCacheReadBuffersizeExperiment.DEFAULT);\n sb.append(\"\\n\");\n Resources resources = view.getResources();\n Stack stack = new Stack();\n stack.push(C0902i.m3837a(\"\", view));\n while (!stack.empty()) {\n C0902i iVar = (C0902i) stack.pop();\n View view2 = (View) iVar.f3155b;\n String str3 = (String) iVar.f3154a;\n if (stack.empty() || !str3.equals(((C0902i) stack.peek()).f3154a)) {\n z = true;\n } else {\n z = false;\n }\n StringBuilder sb2 = new StringBuilder();\n sb2.append(str3);\n if (z) {\n str = \"└── \";\n } else {\n str = \"├── \";\n }\n sb2.append(str);\n String sb3 = sb2.toString();\n String simpleName = view2.getClass().getSimpleName();\n StringBuilder sb4 = new StringBuilder();\n sb4.append(sb3);\n sb4.append(simpleName);\n sb4.append(m137688a(resources, view2));\n sb.append(sb4.toString());\n sb.append(\"\\n\");\n if (view2 instanceof ViewGroup) {\n ViewGroup viewGroup = (ViewGroup) view2;\n for (int childCount = viewGroup.getChildCount() - 1; childCount >= 0; childCount--) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(str3);\n if (z) {\n str2 = \" \";\n } else {\n str2 = \"│ \";\n }\n sb5.append(str2);\n stack.push(C0902i.m3837a(sb5.toString(), viewGroup.getChildAt(childCount)));\n }\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "3b6888695cdfcb205eecca91964f4b87", "score": "0.5208052", "text": "static /* synthetic */ void m92-java_util_stream_Collectors-mthref-6(java.lang.StringBuilder r1, java.lang.CharSequence r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.util.stream.Collectors.-java_util_stream_Collectors-mthref-6(java.lang.StringBuilder, java.lang.CharSequence):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.Collectors.-java_util_stream_Collectors-mthref-6(java.lang.StringBuilder, java.lang.CharSequence):void\");\n }", "title": "" }, { "docid": "0118e0e8f69517d1590bde44c336e081", "score": "0.5195806", "text": "private void clearCache() {\n }", "title": "" }, { "docid": "f1b7b6bae0e7bd7df49a1f0efe3bf211", "score": "0.5192186", "text": "public Resource<Z> decodeSourceFromCache() throws Exception {\n if (!diskCacheStrategy.cacheSource()) {\n return null;\n }\n\n long startTime = LogTime.getLogTime();\n Resource<T> decoded = loadFromCache(resultKey.getOriginalKey());\n if (Log.isLoggable(TAG, Log.VERBOSE)) {\n logWithTimeAndKey(\"Decoded source from cache\", startTime);\n }\n return transformEncodeAndTranscode(decoded);\n }", "title": "" }, { "docid": "86fdbb851a976b1dd6b0c4662afb133f", "score": "0.51898724", "text": "public static void generateStaticInstr()\n \t{\n \t\tldc = new WCETMemInstruction();\n \t\tldc_w = new WCETMemInstruction();\n \t\tldc2_w = new WCETMemInstruction();\n \t\txaload = new WCETMemInstruction();\n \t\txastore = new WCETMemInstruction();\n \t\tgetstaticx = new WCETMemInstruction();\n \t\tputstatic = new WCETMemInstruction();\n \t\tgetfield = new WCETMemInstruction();\n \t\tputfield = new WCETMemInstruction();\n \t\tarraylength = new WCETMemInstruction();\n \t\tjopsys_rdx = new WCETMemInstruction();\n \t\tjopsys_wrx = new WCETMemInstruction();\n \t\t\n \t\t\n \t\tldc.microcode = new int [7+r];\n \t\tldc.opcode = 18;\n \t\tgenerateInstruction(ldc, false, 0, 0); // Cache is not interesting here\n \t\tldc.wcet = wcetOfInstruction(ldc.microcode);\n \t\t\n \t\tldc_w.microcode = new int [8+r];\n \t\tldc_w.opcode = 19;\n \t\tgenerateInstruction(ldc_w, false, 0, 0);\n \t\tldc_w.wcet = wcetOfInstruction(ldc_w.microcode);\n \t\t\n \t\tint wcet = 17;\n \t\tif (r > 2) {\n \t\t\twcet += r - 2;\n \t\t}\n \t\tif (r > 1) {\n \t\t\twcet += r - 1;\n \t\t}\n \t\tldc2_w.microcode = new int [wcet];\n \t\tldc2_w.opcode = 20;\n \t\tgenerateInstruction(ldc2_w, false, 0, 0);\n \t\tldc2_w.wcet = wcetOfInstruction(ldc2_w.microcode);\n \t\t\n \t\txaload.microcode = new int [7+3*r];\n \t\txaload.opcode = 46;\n \t\tgenerateInstruction(xaload, false, 0, 0);\n \t\txaload.wcet = wcetOfInstruction(xaload.microcode);\n \t\t\n \t\txastore.microcode = new int [10+2*r+w];\n \t\txastore.opcode = 79;\n \t\tgenerateInstruction(xastore, false, 0, 0);\n \t\txastore.wcet = wcetOfInstruction(xastore.microcode);\n \t\t\n \t\tgetstaticx.microcode = new int [5+r];\n \t\tgetstaticx.opcode = 178;\n \t\tgenerateInstruction(getstaticx, false, 0, 0);\n \t\tgetstaticx.wcet = wcetOfInstruction(getstaticx.microcode);\n \t\t\n \t\tputstatic.microcode = new int [5+w];\n \t\tputstatic.opcode = 179;\n \t\tgenerateInstruction(putstatic, false, 0, 0);\n \t\tputstatic.wcet = wcetOfInstruction(putstatic.microcode);\n \t\t\n \t\tgetfield.microcode = new int [8+2*r];\n \t\tgetfield.opcode = 180;\n \t\tgenerateInstruction(getfield, false, 0, 0);\n \t\tgetfield.wcet = wcetOfInstruction(getfield.microcode);\n \t\t\n \t\tputfield.microcode = new int [9+r+w];\n \t\tputfield.opcode = 181;\n \t\tgenerateInstruction(putfield, false, 0, 0);\n \t\tputfield.wcet = wcetOfInstruction(putfield.microcode);\n \t\t\n \t\tarraylength.microcode = new int [6+r];\n \t\tarraylength.opcode = 190;\n \t\tgenerateInstruction(arraylength, false, 0, 0);\n \t\tarraylength.wcet = wcetOfInstruction(arraylength.microcode);\n \t\t\n \t\tjopsys_rdx.microcode = new int [4+r];\n \t\tjopsys_rdx.opcode = 209;\n \t\tgenerateInstruction(jopsys_rdx, false, 0, 0);\n \t\tjopsys_rdx.wcet = wcetOfInstruction(jopsys_rdx.microcode);\n \t\t\n \t\tjopsys_wrx.microcode = new int [5+w];\n \t\tjopsys_wrx.opcode = 210;\n \t\tgenerateInstruction(jopsys_wrx, false, 0, 0);\n \t\tjopsys_wrx.wcet = wcetOfInstruction(jopsys_wrx.microcode);\t\n \t}", "title": "" }, { "docid": "21fe21c97936a1311b3fb114628b182f", "score": "0.51816213", "text": "static /* synthetic */ void m85-java_util_stream_Collectors-mthref-0(java.util.Collection r1, java.lang.Object r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.util.stream.Collectors.-java_util_stream_Collectors-mthref-0(java.util.Collection, java.lang.Object):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.Collectors.-java_util_stream_Collectors-mthref-0(java.util.Collection, java.lang.Object):void\");\n }", "title": "" }, { "docid": "86a81fa33981eb1b9a360d5fecfc4ec9", "score": "0.5166901", "text": "public JJITInstruction run(KFrame frame) throws Exception {\n KRegister local_3 = frame.getLocal(3);\n // local_5 5 ; r=3/w=1 : Cached\n int local_5 = frame.getLocal(5).intValue();\n // local_6 6 ; r=2/w=1 : Cached\n KRegister local_6;\n // *********[21] ALOAD(0)\n // **REMOVED Substitution** s0 = frame.getLocal(0);\n // *********[22] ILOAD(5)\n // **REMOVED Substitution** s1 = new KInteger(local_5);\n // *********[23] DALOAD\n // **REMOVED Substitution** index = local_5;\n // **REMOVED Substitution** s0 = new KDouble(c_memman.getDoubleArray(((KReference)frame.getLocal(0)),local_5));\n // *********[24] ALOAD(2)\n // **REMOVED Substitution** s1 = frame.getLocal(2);\n // *********[25] ILOAD(5)\n // **REMOVED Substitution** s2 = new KInteger(local_5);\n // *********[26] DALOAD\n // **REMOVED Substitution** index = local_5;\n // **REMOVED Substitution** s1 = new KDouble(c_memman.getDoubleArray(((KReference)frame.getLocal(2)),local_5));\n // *********[27] DSUB\n // **REMOVED Substitution** m_d = c_memman.getDoubleArray(((KReference)frame.getLocal(2)),local_5);\n // **REMOVED Substitution** s0 = new KDouble((c_memman.getDoubleArray(((KReference)frame.getLocal(0)),local_5) - c_memman.getDoubleArray(((KReference)frame.getLocal(2)),local_5)));\n // *********[28] DSTORE(6)\n local_6 = new KDouble((c_memman.getDoubleArray(((KReference)frame.getLocal(0)),local_5) - c_memman.getDoubleArray(((KReference)frame.getLocal(2)),local_5)));\n // *********[29] DLOAD(3)\n // **REMOVED Substitution** s0 = local_3;\n // *********[30] DLOAD(6)\n // **REMOVED Substitution** s1 = local_6;\n // *********[31] DLOAD(6)\n // **REMOVED Substitution** s2 = local_6;\n // *********[32] DMUL\n // **REMOVED Substitution** m_d2 = local_6.doubleValue();\n // **REMOVED Substitution** s1 = new KDouble((local_6.doubleValue() * local_6.doubleValue()));\n // *********[33] DADD\n // **REMOVED Substitution** m_d3 = (local_6.doubleValue() * local_6.doubleValue());\n // **REMOVED Substitution** s0 = new KDouble((local_3.doubleValue() + (local_6.doubleValue() * local_6.doubleValue())));\n // *********[34] DSTORE(3)\n // **REMOVED Substitution** local_3 = new KDouble((local_3.doubleValue() + (local_6.doubleValue() * local_6.doubleValue())));\n // *********[35] IINC(5,1)\n // **REMOVED Substitution** local_5 = (local_5 + 1);\n frame.setLocal(3,new KDouble((local_3.doubleValue() + (local_6.doubleValue() * local_6.doubleValue()))));\n frame.setLocal(5,new KInteger((local_5 + 1)));\n frame.setLocal(6,local_6);\n return c_next;\n }", "title": "" }, { "docid": "bee376f48000f9404dd5fe5e1a3398fe", "score": "0.516611", "text": "public synchronized void m13759a() {\n /*\n r9 = this;\n r0 = 0;\n monitor-enter(r9);\n r1 = r9.f11692c;\t Catch:{ all -> 0x006c }\n r1 = r1.exists();\t Catch:{ all -> 0x006c }\n if (r1 != 0) goto L_0x0025;\n L_0x000a:\n r0 = r9.f11692c;\t Catch:{ all -> 0x006c }\n r0 = r0.mkdirs();\t Catch:{ all -> 0x006c }\n if (r0 != 0) goto L_0x0023;\n L_0x0012:\n r0 = \"Unable to create cache dir %s\";\n r1 = 1;\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x006c }\n r2 = 0;\n r3 = r9.f11692c;\t Catch:{ all -> 0x006c }\n r3 = r3.getAbsolutePath();\t Catch:{ all -> 0x006c }\n r1[r2] = r3;\t Catch:{ all -> 0x006c }\n com.google.android.gms.p146b.ke.m13616c(r0, r1);\t Catch:{ all -> 0x006c }\n L_0x0023:\n monitor-exit(r9);\n return;\n L_0x0025:\n r1 = r9.f11692c;\t Catch:{ all -> 0x006c }\n r3 = r1.listFiles();\t Catch:{ all -> 0x006c }\n if (r3 == 0) goto L_0x0023;\n L_0x002d:\n r4 = r3.length;\t Catch:{ all -> 0x006c }\n r2 = r0;\n L_0x002f:\n if (r2 >= r4) goto L_0x0023;\n L_0x0031:\n r5 = r3[r2];\t Catch:{ all -> 0x006c }\n r1 = 0;\n r0 = new java.io.BufferedInputStream;\t Catch:{ IOException -> 0x0056, all -> 0x0065 }\n r6 = new java.io.FileInputStream;\t Catch:{ IOException -> 0x0056, all -> 0x0065 }\n r6.<init>(r5);\t Catch:{ IOException -> 0x0056, all -> 0x0065 }\n r0.<init>(r6);\t Catch:{ IOException -> 0x0056, all -> 0x0065 }\n r1 = com.google.android.gms.p146b.kt.C3343a.m13737a(r0);\t Catch:{ IOException -> 0x0078 }\n r6 = r5.length();\t Catch:{ IOException -> 0x0078 }\n r1.f11681a = r6;\t Catch:{ IOException -> 0x0078 }\n r6 = r1.f11682b;\t Catch:{ IOException -> 0x0078 }\n r9.m13749a(r6, r1);\t Catch:{ IOException -> 0x0078 }\n if (r0 == 0) goto L_0x0052;\n L_0x004f:\n r0.close();\t Catch:{ IOException -> 0x006f }\n L_0x0052:\n r0 = r2 + 1;\n r2 = r0;\n goto L_0x002f;\n L_0x0056:\n r0 = move-exception;\n r0 = r1;\n L_0x0058:\n if (r5 == 0) goto L_0x005d;\n L_0x005a:\n r5.delete();\t Catch:{ all -> 0x0073 }\n L_0x005d:\n if (r0 == 0) goto L_0x0052;\n L_0x005f:\n r0.close();\t Catch:{ IOException -> 0x0063 }\n goto L_0x0052;\n L_0x0063:\n r0 = move-exception;\n goto L_0x0052;\n L_0x0065:\n r0 = move-exception;\n L_0x0066:\n if (r1 == 0) goto L_0x006b;\n L_0x0068:\n r1.close();\t Catch:{ IOException -> 0x0071 }\n L_0x006b:\n throw r0;\t Catch:{ all -> 0x006c }\n L_0x006c:\n r0 = move-exception;\n monitor-exit(r9);\n throw r0;\n L_0x006f:\n r0 = move-exception;\n goto L_0x0052;\n L_0x0071:\n r1 = move-exception;\n goto L_0x006b;\n L_0x0073:\n r1 = move-exception;\n r8 = r1;\n r1 = r0;\n r0 = r8;\n goto L_0x0066;\n L_0x0078:\n r1 = move-exception;\n goto L_0x0058;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.b.kt.a():void\");\n }", "title": "" }, { "docid": "4a2b71216218758758179c73290656ad", "score": "0.51620466", "text": "boolean hasCaching();", "title": "" }, { "docid": "4352c7e3647edca0f6102bc22a7f47b5", "score": "0.51577723", "text": "private final void m10490b() {\n zzr zzr = (zzr) this.f9350b.take();\n zzr.m11030b(\"cache-queue-take\");\n zzr.m11037h();\n zzc a = this.f9352d.mo2366a(zzr.m11035f());\n if (a == null) {\n zzr.m11030b(\"cache-miss\");\n if (!this.f9355g.m20922b(zzr)) {\n this.f9351c.put(zzr);\n }\n } else if (a.m10469a()) {\n zzr.m11030b(\"cache-hit-expired\");\n zzr.m11021a(a);\n if (!this.f9355g.m20922b(zzr)) {\n this.f9351c.put(zzr);\n }\n } else {\n zzr.m11030b(\"cache-hit\");\n zzx a2 = zzr.mo2369a(new zzp(a.f9326a, a.f9332g));\n zzr.m11030b(\"cache-hit-parsed\");\n if ((a.f9331f < System.currentTimeMillis() ? 1 : null) != null) {\n zzr.m11030b(\"cache-hit-refresh-needed\");\n zzr.m11021a(a);\n a2.f9827d = true;\n if (!this.f9355g.m20922b(zzr)) {\n this.f9353e.mo2460a(zzr, a2, new ph(this, zzr));\n return;\n }\n }\n this.f9353e.mo2459a(zzr, a2);\n }\n }", "title": "" }, { "docid": "48cd52c0b4232257804c871c0b92ce8b", "score": "0.51512825", "text": "public interface Cache {\n /**\n * 常量缓存\n */\n String CONSTANT = \"CONSTANT\";\n String APPLICATION = \"APPLICATION\";\n}", "title": "" }, { "docid": "ea068db4d35af49d0a79a216f998b5e4", "score": "0.5151164", "text": "public String compile(byte[] code);", "title": "" }, { "docid": "e0d94e802c90898e4572c1c2fcdc52a7", "score": "0.51311314", "text": "private static SourceCode[] buildMembers(ServletContext context, String content) {\n\t\treturn null; // TODO\r\n\t}", "title": "" }, { "docid": "6aa837231bc06b9784ab842feb9fbba1", "score": "0.51295483", "text": "@Override\n\tpublic void compile(String script) {\n\t\t\n\t}", "title": "" }, { "docid": "26b67d4eeeaf9e911f4b23caf4e9c55e", "score": "0.51282644", "text": "com.google.protobuf.ByteString getMemory();", "title": "" }, { "docid": "26b67d4eeeaf9e911f4b23caf4e9c55e", "score": "0.51282644", "text": "com.google.protobuf.ByteString getMemory();", "title": "" }, { "docid": "9f7b318a3e1c5485dd544c655456650a", "score": "0.51261896", "text": "private boolean askLoadCache() {\r\n\t\treturn true; // TODO\r\n\t}", "title": "" }, { "docid": "0df75cecf7315e21dfddab21397cc993", "score": "0.51251656", "text": "static com.google.android.gms.internal.ads.apz m3372b() {\n /*\n java.lang.Class<?> r0 = f2230a\n if (r0 == 0) goto L_0x000b\n java.lang.String r0 = \"loadGeneratedRegistry\"\n com.google.android.gms.internal.ads.apz r0 = m3371a(r0) // Catch:{ Exception -> 0x000b }\n goto L_0x000c\n L_0x000b:\n r0 = 0\n L_0x000c:\n if (r0 != 0) goto L_0x0012\n com.google.android.gms.internal.ads.apz r0 = com.google.android.gms.internal.ads.apz.m3376c()\n L_0x0012:\n if (r0 != 0) goto L_0x0018\n com.google.android.gms.internal.ads.apz r0 = m3370a()\n L_0x0018:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.apy.m3372b():com.google.android.gms.internal.ads.apz\");\n }", "title": "" }, { "docid": "4473df0c98c875f729e0bc8f62431141", "score": "0.5123404", "text": "public interface CacheRenderer extends Batch{\n\n /**\n * Set the MVP matrix of the renderer\n */\n void setCombinedMatrix(final Matrix4 combinedMatrix);\n\n /**\n * Get the MVP matrix of the renderer\n */\n Matrix4 getCombinedMatrix();\n\n /**\n * Starts a new cache\n */\n void beginCache ();\n\n /**\n * Starts an existing cache (clear the previous)\n *\n * @param cacheId The cache ID to use\n */\n void beginCache(int cacheId);\n\n /**\n * Adds elements to the cache\n *\n * @param textureSet The texture set to use\n * @param vertices The vertices to add to the mesh\n * @param offset The offset in the vertices array\n * @param length The number of vertices to add\n */\n void add (TextureSet textureSet, float[] vertices, int offset, int length);\n\n /**\n * Adds elements to the cache to be drawn with specific parameters\n *\n * @param textureSet The texture set to use\n * @param vertices The vertices to add to the mesh\n * @param offset The offset in the vertices array\n * @param length The number of vertices to add\n */\n void add (TextureSet textureSet, float x, float y, float srcWidth, float srcHeight, float u, float v, float u2, float v2, float color);\n\n /**\n * Ends current cache creation\n *\n * @return The cache ID\n */\n int endCache ();\n\n /**\n * Draw the cache ID\n *\n * @param cacheId The cache ID\n */\n void draw(int cacheId);\n\n /**\n * Empty all entries of the cache\n */\n void clear();\n}", "title": "" }, { "docid": "e441d71d082dd050b292992632d8eca1", "score": "0.51226", "text": "public CachingState() {\n this.dataStore = new MemoryBackedDataStore();\n }", "title": "" }, { "docid": "66564e1bcf41d738aaaa978c109dac72", "score": "0.5120397", "text": "ICommonTokenValuesCache getResourceReferenceCache();", "title": "" }, { "docid": "216d37ca34f0e5025f226074f38d0374", "score": "0.51185095", "text": "public Cache() {\n data = new HashMap<T, S>();\n }", "title": "" }, { "docid": "5397d5d38b59c1ede27f2f75941fa085", "score": "0.5112443", "text": "private interface Cached<T> {\n /** Returns the value; uses cached value if valid. */\n T get(long now);\n\n /** Creates a new value. */\n T build();\n\n /** Called when CalciteSchema caching is enabled or disabled. */\n void enable(long now, boolean enabled);\n }", "title": "" }, { "docid": "8b00a00e8c572964a51f998a9ab16856", "score": "0.5107216", "text": "protected abstract IgniteCache<K, V> cache();", "title": "" }, { "docid": "04d2d3c64eac313787802b2f016b98ee", "score": "0.5106316", "text": "@JSStaticFunction\n @SuppressWarnings(\"unused\")\n public static Object compile(Context cx, Scriptable thisObj, Object[] args, Function func)\n {\n String code = stringArg(args, 0);\n String fileName = stringArg(args, 1);\n\n if (log.isDebugEnabled()) {\n log.debug(\"Compiling code from {}\", fileName);\n }\n\n ScriptableObject ret = (ScriptableObject)cx.newObject(thisObj);\n ret.associateValue(FILE_NAME_KEY, fileName);\n\n if (code.length() > MAX_COMPILED_SCRIPT_LENGTH) {\n // Assume that this script won't compile -- run it later in interpreted mode.\n ret.associateValue(SOURCE_KEY, code);\n\n } else {\n // Try to compile and save compiled script on the object\n try {\n Script compiled = cx.compileString(code, fileName, 1, null);\n ret.associateValue(CODE_KEY, compiled);\n\n } catch (EvaluatorException ee) {\n // Test for a script that is too large. We have to do this by checking the error message\n if (BYTECODE_SIZE_MESSAGE.matcher(ee.getMessage()).matches()) {\n if (log.isDebugEnabled()) {\n log.debug(\"Source code for {} is too large -- running later in interpreted mode\", fileName);\n }\n ret.associateValue(SOURCE_KEY, code);\n } else {\n throw ee;\n }\n } catch (IllegalArgumentException ie) {\n if (log.isDebugEnabled()) {\n log.debug(\"Source code for {} failed compilation, possibly too large\", fileName);\n }\n ret.associateValue(SOURCE_KEY, code);\n }\n }\n return ret;\n }", "title": "" }, { "docid": "33d18a2adf11f2c422742f43214fcfdb", "score": "0.51010394", "text": "public int sourceCode();", "title": "" }, { "docid": "591f7b5dfb61ba55e6c93ed83e6c80bb", "score": "0.5100531", "text": "public Cache() {\n pages = new Hashtable();\n cacheItems = new LinkedList();\n }", "title": "" }, { "docid": "86892d7387471ca91f7315ca48cfaa19", "score": "0.5099373", "text": "public byte[] _getinternalbuffer() throws Exception{\nif (true) return _mbuffer;\n //BA.debugLineNum = 106;BA.debugLine=\"End Sub\";\nreturn null;\n}", "title": "" }, { "docid": "9eaa3ecf74992fca9f0c419b9208de91", "score": "0.50979173", "text": "private RawData() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.provider.SearchIndexablesContract.RawData.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.provider.SearchIndexablesContract.RawData.<init>():void\");\n }", "title": "" }, { "docid": "804c3d45a0235e9619b90c4450d067c7", "score": "0.5087294", "text": "static /* synthetic */ void m90-java_util_stream_Collectors-mthref-2(java.util.List r1, java.lang.Object r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.util.stream.Collectors.-java_util_stream_Collectors-mthref-2(java.util.List, java.lang.Object):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.Collectors.-java_util_stream_Collectors-mthref-2(java.util.List, java.lang.Object):void\");\n }", "title": "" }, { "docid": "6c7ea01e7ed565d2a2d3b212d062f7bb", "score": "0.5085132", "text": "private void invalidateInternalProcessorCaches(){\n\t\toutputProcessor.resetProcessorCache(); /* reset it to allow garbage collection, and allow another execute() invocation */\n\t}", "title": "" }, { "docid": "2bad62437a38a174ec665fa95908fc20", "score": "0.5081601", "text": "public static okhttp3.CacheControl m44586a(okhttp3.C14256t r22) {\n /*\n r0 = r22\n int r1 = r22.mo36246b()\n r6 = 0\n r7 = 1\n r8 = 0\n r9 = 0\n r10 = 0\n r11 = -1\n r12 = -1\n r13 = 0\n r14 = 0\n r15 = 0\n r16 = -1\n r17 = -1\n r18 = 0\n r19 = 0\n r20 = 0\n L_0x001a:\n if (r6 >= r1) goto L_0x0146\n java.lang.String r2 = r0.mo36243a(r6)\n java.lang.String r4 = r0.mo36247b(r6)\n java.lang.String r3 = \"Cache-Control\"\n boolean r3 = r2.equalsIgnoreCase(r3)\n if (r3 == 0) goto L_0x0031\n if (r8 == 0) goto L_0x002f\n goto L_0x0039\n L_0x002f:\n r8 = r4\n goto L_0x003a\n L_0x0031:\n java.lang.String r3 = \"Pragma\"\n boolean r2 = r2.equalsIgnoreCase(r3)\n if (r2 == 0) goto L_0x013f\n L_0x0039:\n r7 = 0\n L_0x003a:\n r2 = 0\n L_0x003b:\n int r3 = r4.length()\n if (r2 >= r3) goto L_0x013f\n java.lang.String r3 = \"=,;\"\n int r3 = okhttp3.p688d0.p691i.C14163e.m45011a(r4, r2, r3)\n java.lang.String r2 = r4.substring(r2, r3)\n java.lang.String r2 = r2.trim()\n int r5 = r4.length()\n if (r3 == r5) goto L_0x0099\n char r5 = r4.charAt(r3)\n r0 = 44\n if (r5 == r0) goto L_0x0099\n char r0 = r4.charAt(r3)\n r5 = 59\n if (r0 != r5) goto L_0x0066\n goto L_0x0099\n L_0x0066:\n int r3 = r3 + 1\n int r0 = okhttp3.p688d0.p691i.C14163e.m45018b(r4, r3)\n int r3 = r4.length()\n if (r0 >= r3) goto L_0x0089\n char r3 = r4.charAt(r0)\n r5 = 34\n if (r3 != r5) goto L_0x0089\n int r0 = r0 + 1\n java.lang.String r3 = \"\\\"\"\n int r3 = okhttp3.p688d0.p691i.C14163e.m45011a(r4, r0, r3)\n java.lang.String r0 = r4.substring(r0, r3)\n r5 = 1\n int r3 = r3 + r5\n goto L_0x009d\n L_0x0089:\n r5 = 1\n java.lang.String r3 = \",;\"\n int r3 = okhttp3.p688d0.p691i.C14163e.m45011a(r4, r0, r3)\n java.lang.String r0 = r4.substring(r0, r3)\n java.lang.String r0 = r0.trim()\n goto L_0x009d\n L_0x0099:\n r5 = 1\n int r3 = r3 + 1\n r0 = 0\n L_0x009d:\n java.lang.String r5 = \"no-cache\"\n boolean r5 = r5.equalsIgnoreCase(r2)\n if (r5 == 0) goto L_0x00a9\n r5 = -1\n r9 = 1\n goto L_0x013a\n L_0x00a9:\n java.lang.String r5 = \"no-store\"\n boolean r5 = r5.equalsIgnoreCase(r2)\n if (r5 == 0) goto L_0x00b5\n r5 = -1\n r10 = 1\n goto L_0x013a\n L_0x00b5:\n java.lang.String r5 = \"max-age\"\n boolean r5 = r5.equalsIgnoreCase(r2)\n if (r5 == 0) goto L_0x00c5\n r5 = -1\n int r0 = okhttp3.p688d0.p691i.C14163e.m45010a(r0, r5)\n r11 = r0\n goto L_0x013a\n L_0x00c5:\n java.lang.String r5 = \"s-maxage\"\n boolean r5 = r5.equalsIgnoreCase(r2)\n if (r5 == 0) goto L_0x00d5\n r5 = -1\n int r0 = okhttp3.p688d0.p691i.C14163e.m45010a(r0, r5)\n r12 = r0\n goto L_0x013a\n L_0x00d5:\n java.lang.String r5 = \"private\"\n boolean r5 = r5.equalsIgnoreCase(r2)\n if (r5 == 0) goto L_0x00e0\n r5 = -1\n r13 = 1\n goto L_0x013a\n L_0x00e0:\n java.lang.String r5 = \"public\"\n boolean r5 = r5.equalsIgnoreCase(r2)\n if (r5 == 0) goto L_0x00eb\n r5 = -1\n r14 = 1\n goto L_0x013a\n L_0x00eb:\n java.lang.String r5 = \"must-revalidate\"\n boolean r5 = r5.equalsIgnoreCase(r2)\n if (r5 == 0) goto L_0x00f6\n r5 = -1\n r15 = 1\n goto L_0x013a\n L_0x00f6:\n java.lang.String r5 = \"max-stale\"\n boolean r5 = r5.equalsIgnoreCase(r2)\n if (r5 == 0) goto L_0x0109\n r2 = 2147483647(0x7fffffff, float:NaN)\n int r0 = okhttp3.p688d0.p691i.C14163e.m45010a(r0, r2)\n r16 = r0\n r5 = -1\n goto L_0x013a\n L_0x0109:\n java.lang.String r5 = \"min-fresh\"\n boolean r5 = r5.equalsIgnoreCase(r2)\n if (r5 == 0) goto L_0x0119\n r5 = -1\n int r0 = okhttp3.p688d0.p691i.C14163e.m45010a(r0, r5)\n r17 = r0\n goto L_0x013a\n L_0x0119:\n r5 = -1\n java.lang.String r0 = \"only-if-cached\"\n boolean r0 = r0.equalsIgnoreCase(r2)\n if (r0 == 0) goto L_0x0125\n r18 = 1\n goto L_0x013a\n L_0x0125:\n java.lang.String r0 = \"no-transform\"\n boolean r0 = r0.equalsIgnoreCase(r2)\n if (r0 == 0) goto L_0x0130\n r19 = 1\n goto L_0x013a\n L_0x0130:\n java.lang.String r0 = \"immutable\"\n boolean r0 = r0.equalsIgnoreCase(r2)\n if (r0 == 0) goto L_0x013a\n r20 = 1\n L_0x013a:\n r0 = r22\n r2 = r3\n goto L_0x003b\n L_0x013f:\n r5 = -1\n int r6 = r6 + 1\n r0 = r22\n goto L_0x001a\n L_0x0146:\n if (r7 != 0) goto L_0x014b\n r21 = 0\n goto L_0x014d\n L_0x014b:\n r21 = r8\n L_0x014d:\n okhttp3.CacheControl r0 = new okhttp3.CacheControl\n r8 = r0\n r8.<init>(r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21)\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.CacheControl.m44586a(okhttp3.t):okhttp3.CacheControl\");\n }", "title": "" }, { "docid": "85879a647448f2901a3c2cbfb56fabb9", "score": "0.5080944", "text": "protected AbstractLayoutCache createLayoutCache()\n {\n layoutCache = new VariableLayoutCache();\n return layoutCache;\n }", "title": "" }, { "docid": "bd941d80a572873d07524dbc7b7c1949", "score": "0.5076886", "text": "@Override\n public void generateBytecode(MethodVisitor mv) {\n }", "title": "" }, { "docid": "d1d82e1d4ec2d6b82c4becae1368bc15", "score": "0.50695705", "text": "public static void smallTest(CacheMemory cache) {\n boolean[] address;\n\n // Memory address in Lab 8 is the line address.\n // Add two bits to the least significant side of the Lab 8\n // address to get the memory Byte address.\n\n address = Binary.uDecToBin(4L); // Operation 1: address 000100\n cache.read32(address);\n\n address = Binary.uDecToBin(16L); // Operation 2: address 010000\n cache.read32(address);\n\n address = Binary.uDecToBin(24L); // Operation 3: address 011000\n cache.read32(address);\n\n address = Binary.uDecToBin(40L); // Operation 4: address 101000\n cache.read32(address);\n\n address = Binary.uDecToBin(60L); // Operation 5: address 111100\n cache.read32(address);\n\n address = Binary.uDecToBin(32L); // Operation 6: address 100000\n cache.read32(address);\n\n address = Binary.uDecToBin(0L); // Operation 7: address 000000\n cache.read32(address);\n\n address = Binary.uDecToBin(52L); // Operation 8: address 110100\n cache.read32(address);\n\n address = Binary.uDecToBin(28L); // Operation 9: address 011100\n cache.read32(address);\n\n address = Binary.uDecToBin(28L); // Operation 10: address 011100\n cache.read32(address);\n\n address = Binary.uDecToBin(32L); // Operation 11: address 100000\n cache.read32(address);\n\n address = Binary.uDecToBin(44L); // Operation 12: address 101100\n cache.read32(address);\n\n address = Binary.uDecToBin(0L); // Operation 13: address 000000\n cache.read32(address);\n\n address = Binary.uDecToBin(60L); // Operation 14: address 111100\n cache.read32(address);\n\n }", "title": "" }, { "docid": "070322a520e39e8a49704317464909cd", "score": "0.50645953", "text": "static /* synthetic */ java.util.Map m126-java_util_stream_Collectors_lambda$74(java.util.stream.Collector r1, java.util.stream.Collectors.Partition r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.util.stream.Collectors.-java_util_stream_Collectors_lambda$74(java.util.stream.Collector, java.util.stream.Collectors$Partition):java.util.Map, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.Collectors.-java_util_stream_Collectors_lambda$74(java.util.stream.Collector, java.util.stream.Collectors$Partition):java.util.Map\");\n }", "title": "" }, { "docid": "3f39a7e29d69a130d85412f460ab56bf", "score": "0.5063354", "text": "OutputStream getCacheOutputStream();", "title": "" }, { "docid": "cef123ac41fb133895f89d7b97135d95", "score": "0.50627184", "text": "static /* synthetic */ void m89-java_util_stream_Collectors-mthref-13(java.util.stream.Collectors.AnonymousClass1OptionalBox r1, java.lang.Object r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.util.stream.Collectors.-java_util_stream_Collectors-mthref-13(java.util.stream.Collectors$1OptionalBox, java.lang.Object):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.Collectors.-java_util_stream_Collectors-mthref-13(java.util.stream.Collectors$1OptionalBox, java.lang.Object):void\");\n }", "title": "" }, { "docid": "904496d487556e5303ca3cd7b9ca1696", "score": "0.50604993", "text": "public java.lang.Object get() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.util.stream.Collectors.-java_util_function_Supplier_boxSupplier_java_lang_Object_identity_LambdaImpl0.get():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.Collectors.-java_util_function_Supplier_boxSupplier_java_lang_Object_identity_LambdaImpl0.get():java.lang.Object\");\n }", "title": "" }, { "docid": "3e0d9b6cf956705dfbbeb292dc42c101", "score": "0.50588775", "text": "public JJITInstruction run(KFrame frame) throws Exception {\n KRegister local_0 = frame.getLocal(0);\n // local_5 5 ; r=4/w=0 : Cached\n int local_5 = frame.getLocal(5).intValue();\n // local_6 6 ; r=4/w=0 : Cached\n int local_6 = frame.getLocal(6).intValue();\n // local_8 8 ; r=1/w=1 : Cached\n KRegister local_8;\n // local_10 10 ; r=1/w=1 : Cached\n KRegister local_10;\n // *********[29] ALOAD(0)\n // **REMOVED Substitution** s0 = local_0;\n // *********[30] ILOAD(5)\n // **REMOVED Substitution** s1 = new KInteger(local_5);\n // *********[31] DALOAD\n // **REMOVED Substitution** index = local_5;\n // **REMOVED Substitution** s0 = new KDouble(c_memman.getDoubleArray(((KReference)local_0),local_5));\n // *********[32] DSTORE(8)\n local_8 = new KDouble(c_memman.getDoubleArray(((KReference)local_0),local_5));\n // *********[33] ALOAD(0)\n // **REMOVED Substitution** s0 = local_0;\n // *********[34] ILOAD(5)\n // **REMOVED Substitution** s1 = new KInteger(local_5);\n // *********[35] ICONST_1(Integer{1})\n // **REMOVED Substitution** s2 = IONE;\n // *********[36] IADD\n // **REMOVED Substitution** index = 1;\n // **REMOVED Substitution** s1 = new KInteger((local_5 + 1));\n // *********[37] DALOAD\n // **REMOVED Substitution** index = (local_5 + 1);\n // **REMOVED Substitution** s0 = new KDouble(c_memman.getDoubleArray(((KReference)local_0),(local_5 + 1)));\n // *********[38] DSTORE(10)\n local_10 = new KDouble(c_memman.getDoubleArray(((KReference)local_0),(local_5 + 1)));\n // *********[39] ALOAD(0)\n // **REMOVED Substitution** s0 = local_0;\n // *********[40] ILOAD(5)\n // **REMOVED Substitution** s1 = new KInteger(local_5);\n // *********[41] ALOAD(0)\n // **REMOVED Substitution** s2 = local_0;\n // *********[42] ILOAD(6)\n // **REMOVED Substitution** s3 = new KInteger(local_6);\n // *********[43] DALOAD\n // **REMOVED Substitution** index = local_6;\n // **REMOVED Substitution** s2 = new KDouble(c_memman.getDoubleArray(((KReference)local_0),local_6));\n // *********[44] DASTORE\n // **REMOVED Substitution** m_d = c_memman.getDoubleArray(((KReference)local_0),local_6);\n // **REMOVED Substitution** index = local_5;\n c_memman.setDoubleArray(((KReference)local_0),local_5,c_memman.getDoubleArray(((KReference)local_0),local_6));\n // *********[45] ALOAD(0)\n // **REMOVED Substitution** s0 = local_0;\n // *********[46] ILOAD(5)\n // **REMOVED Substitution** s1 = new KInteger(local_5);\n // *********[47] ICONST_1(Integer{1})\n // **REMOVED Substitution** s2 = IONE;\n // *********[48] IADD\n // **REMOVED Substitution** index = 1;\n // **REMOVED Substitution** s1 = new KInteger((local_5 + 1));\n // *********[49] ALOAD(0)\n // **REMOVED Substitution** s2 = local_0;\n // *********[50] ILOAD(6)\n // **REMOVED Substitution** s3 = new KInteger(local_6);\n // *********[51] ICONST_1(Integer{1})\n // **REMOVED Substitution** s4 = IONE;\n // *********[52] IADD\n // **REMOVED Substitution** index = 1;\n // **REMOVED Substitution** s3 = new KInteger((local_6 + 1));\n // *********[53] DALOAD\n // **REMOVED Substitution** index = (local_6 + 1);\n // **REMOVED Substitution** s2 = new KDouble(c_memman.getDoubleArray(((KReference)local_0),(local_6 + 1)));\n // *********[54] DASTORE\n // **REMOVED Substitution** m_d2 = c_memman.getDoubleArray(((KReference)local_0),(local_6 + 1));\n // **REMOVED Substitution** index = (local_5 + 1);\n c_memman.setDoubleArray(((KReference)local_0),(local_5 + 1),c_memman.getDoubleArray(((KReference)local_0),(local_6 + 1)));\n // *********[55] ALOAD(0)\n // **REMOVED Substitution** s0 = local_0;\n // *********[56] ILOAD(6)\n // **REMOVED Substitution** s1 = new KInteger(local_6);\n // *********[57] DLOAD(8)\n // **REMOVED Substitution** s2 = local_8;\n // *********[58] DASTORE\n // **REMOVED Substitution** m_d3 = local_8.doubleValue();\n // **REMOVED Substitution** index = local_6;\n c_memman.setDoubleArray(((KReference)local_0),local_6,local_8.doubleValue());\n // *********[59] ALOAD(0)\n // **REMOVED Substitution** s0 = local_0;\n // *********[60] ILOAD(6)\n // **REMOVED Substitution** s1 = new KInteger(local_6);\n // *********[61] ICONST_1(Integer{1})\n // **REMOVED Substitution** s2 = IONE;\n // *********[62] IADD\n // **REMOVED Substitution** index = 1;\n // **REMOVED Substitution** s1 = new KInteger((local_6 + 1));\n // *********[63] DLOAD(10)\n // **REMOVED Substitution** s2 = local_10;\n // *********[64] DASTORE\n // **REMOVED Substitution** m_d4 = local_10.doubleValue();\n // **REMOVED Substitution** index = (local_6 + 1);\n c_memman.setDoubleArray(((KReference)local_0),(local_6 + 1),local_10.doubleValue());\n // *********[65] GOTO(74)\n frame.setLocal(8,local_8);\n frame.setLocal(10,local_10);\n return c_label;\n }", "title": "" }, { "docid": "54ee0682066eb132f4c8004ef3e3deb5", "score": "0.5058602", "text": "public void dexmakerWorkaround() {\n System.setProperty(\"dexmaker.dexcache\", getInstrumentation().getTargetContext().getCacheDir().getPath());\n }", "title": "" }, { "docid": "cbe75916891863f4d7edcd757b0b677f", "score": "0.5056999", "text": "static void method_8786() {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "f7c6496c7ce352d7a225f31bf60414de", "score": "0.5050703", "text": "public interface CacheTemplate {\r\n\r\n String set(String key, String value);\r\n\r\n Long expire(String key, Integer seconds);\r\n\r\n String get(String key);\r\n\r\n Boolean exists(String key);\r\n\r\n Long incr(String key);\r\n\r\n Long hset(String key, String field, String value);\r\n\r\n Map<String, String> hgetAll(String key);\r\n\r\n Long hdel(String key, String field);\r\n\r\n}", "title": "" } ]
6f187c10cde8697d0ec93125e995a798
Zero all Sensors in the Subsystem
[ { "docid": "43507d8581576ae839a3bdf0cce0e844", "score": "0.7946562", "text": "void zeroSensors();", "title": "" } ]
[ { "docid": "81d02b63a5e04f3aaa604d4936c55a48", "score": "0.74730283", "text": "public void zeroSensors(){\n }", "title": "" }, { "docid": "067a6790a138e4c303d7a148cb4e6691", "score": "0.705932", "text": "public void clearAllDevices(){\n\n for (int i = 0; i < MAX_DEVICES; i++) {\n currentDeviceList[i][DEVICE_ADD] = null;\n }\n }", "title": "" }, { "docid": "3701c074ac304e0a4c0f6810fc97a7b5", "score": "0.64703995", "text": "public void clearOldDevices(){\n\n }", "title": "" }, { "docid": "4cdecdc9231809e9c782a5c2fb117e46", "score": "0.6463895", "text": "public void clearSystem() {\r\n system.clearAllEquations();\r\n }", "title": "" }, { "docid": "e1624d2ac69b6196f71cb5769fc8127f", "score": "0.63878953", "text": "public void clearAll(){\n clouds.clear();\n matrices.clear();\n hosts.clear();\n services.clear();\n sites.clear();\n collectors.clear();\n serviceTypes.clear(); \n }", "title": "" }, { "docid": "b07897b46e97553b4335083725dbaa76", "score": "0.6360704", "text": "private void clearSensorData() {\n this.mLuxDataList.clear();\n this.mCctDataList.clear();\n this.mLastSensorLuxValue = -1;\n this.mLastSensorCctValue = -1;\n this.mLastValueSystemTime = -1;\n this.mLastValueSensorTime = -1;\n this.mEnableTime = -1;\n }", "title": "" }, { "docid": "db73e47572ae3dede031778a4e3ee1a2", "score": "0.6336497", "text": "private void resetSubsystems() {\n\t\tdrivetrain.reset();\n\t\tballShooter.stop();\n\t\tballAgitator.stop();\n\t\tballCollector.stop();\n\t \tballGate.stop();\n\t \tropeClimber.stop();\n\t}", "title": "" }, { "docid": "6137cb8677d7607bde17fe1e70ff9b6a", "score": "0.6317021", "text": "public void clearAll() {\r\n\t\tthis.matrix = null;\r\n\t\tthis.densities.clear();\r\n\t}", "title": "" }, { "docid": "9cb86ffa7cb171434d890ac122ff3b13", "score": "0.62732524", "text": "public void clearAll() {\n this.clearCachedData();\n this.sensorToUri.clear();\n this.deviceLocations.clear();\n this.regionBounds = null;\n this.regionUri = null;\n this.regionImage = null;\n this.fiduciaryTransmitterIds.clear();\n this.numFidTxers = 0;\n \n this.receiverIds.clear();\n this.numRxers = 0;\n \n log.info(\"Region info and device locations cleared from cache.\");\n }", "title": "" }, { "docid": "0bcf863aa3e14bf4d4245d370d465b4c", "score": "0.6243634", "text": "public final void zero() {\r\n for(Integer i = 0; i < this.values.length; i++ ){\r\n this.values[i] = 0.0;\r\n }\r\n }", "title": "" }, { "docid": "86e6c05e0b14054d66430dad4cf590bf", "score": "0.62380254", "text": "@Override\n public void hwresetAllNodes(){\n this.nodeReg.hwresetAll();\n }", "title": "" }, { "docid": "dfd45ddda57a1e2c0dc1135aac6a02b7", "score": "0.6212028", "text": "public static void resetSensorCheck() {\r\n\t\t\r\n\t\tleftMotorCounter = 0;\r\n\t\trightMotorCounter = 0;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5a515bbd296164eb6726220576838bba", "score": "0.62090987", "text": "private void reset()\n {\n\n sensorManager.unregisterListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER));\n sensorManager.unregisterListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD));\n\n if (!useFusedEstimation)\n {\n sensorManager.unregisterListener(this, sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE));\n }\n\n if (useFusedEstimation)\n {\n\n sensorManager.unregisterListener(fusedGyroscopeSensor, sensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY));\n sensorManager.unregisterListener(fusedGyroscopeSensor, sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER));\n sensorManager.unregisterListener(fusedGyroscopeSensor, sensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD));\n sensorManager.unregisterListener(fusedGyroscopeSensor, sensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE));\n\n fusedGyroscopeSensor.removeObserver(this);\n\n }\n\n initMaths();\n\n hasInitialOrientation = false;\n stateInitializedCalibrated = false;\n stateInitializedRaw = false;\n\n }", "title": "" }, { "docid": "b8e57c211327e0f226d2d0cddbc20db3", "score": "0.6190429", "text": "public void zeroes()\r\n\t{\r\n\t\tfor ( byte i = 0; i < CHUNKS_COUNT; ++i )\r\n\t\t{\r\n\t\t\tm_bits[i] = 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f41e10400f93e4369fd49e5c9a18d771", "score": "0.6185647", "text": "private void RemoveAllSensor()\r\n\t{\r\n\t\tfor(int i = sensorList.size()-1; i >= 0; i--)\r\n\t\t{\r\n\t\t\tsensorList.remove(i);\r\n\t\t}\r\n\t\tLOG.info(\"RemoveAllSensor\");\r\n\t}", "title": "" }, { "docid": "66401db939e892006552c5ec6dd599b1", "score": "0.61802673", "text": "public final void clear () {\n\t\t\tb = 0.0;\n\t\t\talpha = 0.0;\n\n\t\t\tbeta = 0.0;\n\t\t\tv_term = 0.0;\n\t\t\tq_correction = 0.0;\n\n\t\t\trup_azero_prod = null;\n\t\t\trup_main_azero_prod = null;\n\t\t\trup_part_like_unlim = null;\n\t\t\tint_part_like_unlim = null;\n\t\t\tsum_int_part_like_unlim = null;\n\t\t\tint_part_targ_prod = null;\n\n\t\t\treturn;\n\t\t}", "title": "" }, { "docid": "a64387abfcc7719a70b458ebdbb718bf", "score": "0.6166425", "text": "public void clearData(){\n states = new WellState[12][8];\n targetVolumes = new double[12][8];\n highEnds = new double[12][8];\n lowEnds = new double[12][8];\n wellPositions = new String[12][8];\n measuredData = new double[12][8];\n states = new WellState[12][8];\n System.out.println(\"Data has been reset\");\n }", "title": "" }, { "docid": "09fe80f321615576bc1b9370b09df845", "score": "0.6165323", "text": "public void reset()\r\n\t{\r\n\t\tfor (int i = 0; i < rows; i++)\r\n\t\t\tfor (int j = 0; j < cols; j++)\r\n\t\t\t\tSystem.arraycopy(INIT_STATES, 0, states[i][j], 0, regsPerPix);\r\n\t}", "title": "" }, { "docid": "7bcfe0e8b77e23144b0727c085929f34", "score": "0.6149838", "text": "public void clear() { \r\n\t\tvalue = 0; \r\n\t\toperands.clear();\r\n\t\toperator.clear();\r\n\t\toperand1 = operand2 = 0;\r\n\t}", "title": "" }, { "docid": "a9154ba56ac8063a06ad39ac7f7eea82", "score": "0.61245567", "text": "public void clearOperation() {\n\t\tvalue = 0;\n\t}", "title": "" }, { "docid": "6b9121cb2891306de6477c159cb1c610", "score": "0.6115906", "text": "public void clearAll();", "title": "" }, { "docid": "6b9121cb2891306de6477c159cb1c610", "score": "0.6115906", "text": "public void clearAll();", "title": "" }, { "docid": "6b9121cb2891306de6477c159cb1c610", "score": "0.6115906", "text": "public void clearAll();", "title": "" }, { "docid": "6b9121cb2891306de6477c159cb1c610", "score": "0.6115906", "text": "public void clearAll();", "title": "" }, { "docid": "50c5b1318b83ef2dd65d6fb643f8d1f0", "score": "0.61031246", "text": "public void zero() {\n setTargetAngle(0);\n setDriveOutput(0);\n }", "title": "" }, { "docid": "77a941214fa3b91a768162c99e002a2c", "score": "0.6093832", "text": "public void clearAll() {}", "title": "" }, { "docid": "411f37373c9c7d0919f134231efede88", "score": "0.60895586", "text": "public void resetAll() {\n this.pot = 0;\n this.currHandFinalValue = 0;\n this.allInStatus = false;\n this.foldStatus = false;\n }", "title": "" }, { "docid": "0784465b3e836f8e2206450d05830821", "score": "0.60835135", "text": "public void clearSystems() {\n camadasRenderizaveis = new ArrayList<>();\n selecionaveis = new ArrayList<>();\n turno = 1;\n rodada = 0;\n players = new Player[2];\n logger = new Logger(logger.logArea);\n }", "title": "" }, { "docid": "9158199193feee72799ab4dc231a7389", "score": "0.60797244", "text": "public void clear() {\n\t\tobservations = null;\n\t\trowProjections = null;\n\t\tcolProjections = null;\n\t\teigenVectors = null;\n\t\teigenValues = null;\n\t\t\n\t\t// run the java garbage collector\n\t\tRuntime.getRuntime().gc();\n\t}", "title": "" }, { "docid": "51011535413655078cbd9447c2ab8297", "score": "0.60754806", "text": "public final void clearSensorData() {\n this.mCurFrontLux = -1;\n this.mCurFrontCct = -1;\n this.mCurBackLux = -1;\n this.mCurBackCct = -1;\n this.mFusedLux = -1;\n this.mFusedCct = -1;\n this.mLastValueFrontSensorTime = -1;\n this.mLastValueBackSensorTime = -1;\n this.mFrontLastValueSystemTime = -1;\n this.mBackLastValueSystemTime = -1;\n this.mDebugPrintTime = -1;\n this.mFrontLuxFiltered = 0;\n this.mBackLuxFiltered = 0;\n this.mCurFrontFiltered = 0.0f;\n this.mPreFrontFiltered = 0.0f;\n this.mCurBackFiltered = 0.0f;\n this.mPreBackFiltered = 0.0f;\n this.mFrontLuxIndex = 0;\n this.mBackLuxIndex = 0;\n this.mFrontLuxRelativeChange = 0.0f;\n this.mBackLuxRelativeChange = 0.0f;\n this.mFrontLuxStaProInd = 0;\n this.mBackLuxStaProInd = 0;\n this.mAdjustMin = 1.0f;\n this.mIsFrontUpdated = false;\n this.mIsBackUpdated = false;\n this.mBackLuxDeviation = 0;\n for (int i = 0; i < 3; i++) {\n this.mFrontLuxArray[i] = -1;\n this.mBackLuxArray[i] = -1;\n }\n }", "title": "" }, { "docid": "6e08610405316ed73a89e75c3f13ff15", "score": "0.60753155", "text": "@Override\n\tpublic void reset() {\n\t\tvalues = new float[weights.length];\n\t\tfor (int iterator = 0; iterator < weights.length; iterator++) {\n\t\t\tvalues[iterator] = 0.0f;\n\t\t}\n\t}", "title": "" }, { "docid": "02fd918ce03eae24caa53cef92aefaee", "score": "0.60408026", "text": "void clearAll();", "title": "" }, { "docid": "02fd918ce03eae24caa53cef92aefaee", "score": "0.60408026", "text": "void clearAll();", "title": "" }, { "docid": "16c8ce5180cc03b7a401f325e75e2b84", "score": "0.60396445", "text": "public void reset() {\n\t\tvoltage.reset();\n\t\tcurrent.reset();\n\t\tresistance.reset();\n\t\tpower.reset();\n\t}", "title": "" }, { "docid": "4ef3b8c51314661a284723509526249d", "score": "0.6036036", "text": "private void _clearAll(){\n\n\t\tif (_mechanism != null){\n\n\t\t\t_mechanism.release();\n\t\t\t_mechanism = null;\n\t\t}\n\t}", "title": "" }, { "docid": "d7d50f9ffa918efdd118e9ebebcbfb13", "score": "0.6026001", "text": "private void clear()\r\n {\r\n offset = intLen = 0;\r\n for (int index = 0, n = value.length; index < n; index++)\r\n value[index] = 0;\r\n }", "title": "" }, { "docid": "7c6cecfbf4f71ee637bc2c250cb742fc", "score": "0.6019794", "text": "@Generated(hash = 1428662284)\n public synchronized void resetDevices() {\n devices = null;\n }", "title": "" }, { "docid": "c1b43c76b0d635a75c5abe473bf63371", "score": "0.60179937", "text": "public void clear() {\n data = new double[initialCapacity];\n vectorCount = 0;\n }", "title": "" }, { "docid": "720a82af53e943bac43c1b6bce8cf3f7", "score": "0.60135365", "text": "protected abstract void zeroOutData();", "title": "" }, { "docid": "6017c8da600b05d85d2e5ea67953ae84", "score": "0.5995917", "text": "public void allStateZero() {\n fillTriangle = 0;\n fillRoundRectangle = 0;\n fillRectangle = 0;\n halfFillCircle = 0;\n fillOval = 0;\n largeLine = 0;\n eraser = 0;\n colorPicker = 0;\n airBrush = 0;\n pencil = 0;\n paintBrush = 0;\n paintBucket = 0;\n rectangle = 0;\n oval = 0;\n line = 0;\n mediumLine = 0;\n triangle = 0;\n roundRectangle = 0;\n\n }", "title": "" }, { "docid": "11e2d0c78861f93ab7ec46e225506bae", "score": "0.5993839", "text": "public void clearAll() {\r\n\t\tvpm.clearAll();\r\n\t\tvizRuntime.clearAll();\r\n\t\taController.clear();\r\n\t\tclearStackDisplay();\r\n\t\tsetStatusLine(INIT_STATUS_TEXT);\r\n\t}", "title": "" }, { "docid": "e6c7002e5de965f79e3ac5f27ff76591", "score": "0.59873396", "text": "void clearSystemVariables();", "title": "" }, { "docid": "ad86f18d9c054184b9022b87c029beed", "score": "0.59844273", "text": "public void clearTransient()\n {\n aVelocity = 0;\n }", "title": "" }, { "docid": "266d96fa038ac734b03359f3aca8d445", "score": "0.59823895", "text": "public final void clear () {\n\t\t\tp = 0.0;\n\t\t\tc = 0.0;\n\n\t\t\tomat_rup_targ_rup_src = null;\n\t\t\tomat_rup_targ_int_src = null;\n\t\t\tomat_int_targ_rup_src = null;\n\t\t\tomat_int_targ_int_src = null;\n\t\t\tomat_self_int_src = null;\n\n\t\t\treturn;\n\t\t}", "title": "" }, { "docid": "90f483ce02b6ae0ecb6fcbdd87640b56", "score": "0.597589", "text": "public static void resetStatics() {\n TransistorCounter = 1;\n OpAmpCounter = 1;\n BlockComponentCount = 1;\n }", "title": "" }, { "docid": "8cfb5ed3ecec8dd655f2b26fd153a8e2", "score": "0.59699744", "text": "private void clear() {\n scannerViewModel.getDevices().clear();\n scannerViewModel.getScannerState().clearRecords();\n }", "title": "" }, { "docid": "9816d90701ede15e800feb49caee869d", "score": "0.5966215", "text": "void reset() {\n partitionToBootstrapLatch.clear();\n partitionToBootstrapSuccess.clear();\n partitionToDeactivationLatch.clear();\n partitionToDeactivationSuccess.clear();\n partitionToDisconnectionLatch.clear();\n partitionToDisconnectionSuccess.clear();\n replicaToLagInfos.clear();\n }", "title": "" }, { "docid": "c9306f87d2b1db4eb8a6e6a5d29818bf", "score": "0.59631664", "text": "@Override\n public void clearInternal() {\n if (sparseSize == updatePointer || tagCounts.ramBytesUsed()/8 < updatePointer*4) {\n tagCounts.fill(0, tagCounts.size(), 0);\n } else {\n // TODO: Measure is this is really faster than a plain fill (which might be JVM optimized)\n // Update 20140315: Seems to be based on TestSingleSegmentOptimization.testScaleOptimizedCollectorImpl\n // Sparse magic below\n for (int i = 0 ; i < updatePointer ; i++) {\n tagCounts.set((int) updated.get(i), 0);\n }\n }\n updatePointer = 0;\n }", "title": "" }, { "docid": "128b221f063b1bfef45ddfe2f738f648", "score": "0.5954554", "text": "@Override\r\n protected void clear() {\r\n clearMass();\r\n clearState();\r\n }", "title": "" }, { "docid": "711fdd0652ef3aedbb9d9fa9877938d6", "score": "0.5949938", "text": "public void setZero () {\n for (int i=0; i<dimension; i++)\n x[i] = 0;\n }", "title": "" }, { "docid": "5926216cd33e6cdb9633452b8b9f65ba", "score": "0.59475356", "text": "public void clearClustersAndSVs()\n {\n for(SvVarData var : AllVariants)\n {\n var.setCluster(null);\n }\n\n AllVariants.clear();\n ClusteringMethods.clearLOHBreakendData(SampleId);\n Analyser.getClusters().clear();\n }", "title": "" }, { "docid": "f3fab7b14c01fcf562824672bd06f799", "score": "0.59439754", "text": "public void reset(){\n leftEncoder.setCurrentPositionZero();\n rightEncoder.setCurrentPositionZero();\n //set every variable to 0?\n }", "title": "" }, { "docid": "4b70bae297abfb9d355afa0f603e789c", "score": "0.59254944", "text": "public void clear() {\n\t\tx = null;\n\t\ty = null;\n\t\tz = null;\n\t\tedgex = null;\n\t\tedgey = null;\n\t\tedgez = null;\n\t\ttimeSteps = null;\n\t\tparameters = null;\n\t\tunits = null;\n\t\tijkDimensions = null;\n\t\tporosityOfNode = null;\n\t}", "title": "" }, { "docid": "3664fa372829f43f967d0315177a4b21", "score": "0.59254843", "text": "protected void clearAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.clearBitAt(i);\n } \t\n }", "title": "" }, { "docid": "592a850b8d1919ca46fe6555be2e9e75", "score": "0.59135234", "text": "public void clear()\n\t{\n\t\tfor (int i1 = 0; i1 < values[0]; i1++)\n\t\t\tfor (int i2 = 0; i2 < values[1]; i2++)\n\t\t\t\tfor (int i3 = 0; i3 < values[2]; i3++)\n\t\t\t\t\tdata[i1][i2][i3] = 0;\n\t}", "title": "" }, { "docid": "297d44d8b0b29d5391dfe63968fe46ce", "score": "0.59093916", "text": "private void clear() {\n\t\trpcFiles = new ArrayList<File>();\n\t\tcaseFiles = new ArrayList<File>();\n\t\tcases = new TreeMap<Integer, TestCase>();\n\t\tsamples = new HashMap<String, TestSample>();\n\t\trpcs = new HashMap<String, JSONObject>();\n\t\t// 收集所有的被依赖sample\n\t\tisDependedSampleList = new HashSet<String>();\n\t\tcaseDownLatchs = new HashMap<Integer, CountDownLatch>();\n\t\tsampleDownLatchs = new HashMap<String, CountDownLatch>();\n\t}", "title": "" }, { "docid": "2180e593b8717006bc0581114d5f9efe", "score": "0.59078443", "text": "public static void zero(short[] array)\n {\n for(int i = 0; i < array.length; ++i)\n {\n array[i] = 0;\n }\n }", "title": "" }, { "docid": "8cd443d8fbb6ed491c5ea81d7c317a05", "score": "0.58998686", "text": "public void empty(){\n this.volume = 0;\n }", "title": "" }, { "docid": "f9aaff5c811e1b161d6a324a077e802d", "score": "0.5887351", "text": "public static void clear(){\n\t\tstackNfa.clear();\n\t\toperator.clear();\n\t\tset1.clear();\n\t\tset2.clear();\n\t\tinput.clear();\n\t\tnames.clear();\n\t\tstateID = 0;\n\t}", "title": "" }, { "docid": "11aef295728113764f576424bc08a0b8", "score": "0.58797157", "text": "public synchronized void clear() {\n\t\tobjects.clear();\n\t\tfor (int i = 0; i < nodes.length; i++)\n\t\t\tnodes[i] = null;\n\t\tsize = 0;\n\t}", "title": "" }, { "docid": "a12cc886b86349ea37c2900708df6f4e", "score": "0.5866899", "text": "public void zero_velocity(){\n\t\tthis.velocity = new double[velocity.length];\n\t}", "title": "" }, { "docid": "648bbb4c9b9c694b2256ab4fed4205c2", "score": "0.58612037", "text": "public void reset() {\n\t\tallObjects.clear();\n\t\taccounts.clear();\n\t\tgroups.clear();\n\t\tprivileges.clear();\n\t\torgs.clear();\n\t\tscriptHistory.clear();\n\t\taccountObjectClass = new DummyObjectClass();\n\t\tgroupObjectClass = new DummyObjectClass();\n\t\tprivilegeObjectClass = new DummyObjectClass();\n\t\tsyncStyle = DummySyncStyle.NONE;\n\t\tdeltas.clear();\n\t\tlatestSyncToken = 0;\n\t\twriteOperationCount = 0;\n\t\toperationDelayOffset = 0;\n\t\toperationDelayRange = 0;\n\t\tblockOperations = false;\n\t\tsyncSearchHandlerStart = false;\n\t\tresetBreakMode();\n\t}", "title": "" }, { "docid": "b2e6bf607f1c5eb657b966e840032b64", "score": "0.58537924", "text": "public void removeZeroCounts()\n {\n sightings.removeIf(sighting -> sighting.getCount() == 0);\n }", "title": "" }, { "docid": "183bcbc462577ae111ff635424c4d314", "score": "0.5847858", "text": "public void clear()\n {\n base = null;\n endEffector = null;\n commonAncestor = null;\n numberOfDegreesOfFreedom = -1;\n jacobianFrame = null;\n jointsFromBaseToEndEffector.clear();\n\n reset();\n }", "title": "" }, { "docid": "9304faa61a99a752ede51a397c6285be", "score": "0.5830122", "text": "void unsetRooted();", "title": "" }, { "docid": "d50de6930cba4e824d3663c318af96ca", "score": "0.5827408", "text": "public static void clear() {\n nbAgents = 0;\n count = 0;\n\tpulseNumber = 0;\n }", "title": "" }, { "docid": "148ca45bbaf9723457943fbbb57b6780", "score": "0.5821084", "text": "public void clearVectors();", "title": "" }, { "docid": "b941432cd291a89174eab36cb6e9af63", "score": "0.5820507", "text": "public void reset ()\r\n {\r\n n = 0;\r\n s = 0d;\r\n s2 = 0d;\r\n }", "title": "" }, { "docid": "6cdc99a78afa38000d7d878365f9dbaf", "score": "0.58144444", "text": "public void reset() {\n\t\twhile (this.iMem.size() > 0) {\n\t\t\tthis.iMem.clear();\n\t\t}\n\t}", "title": "" }, { "docid": "4dd7585055a17f9c88fa1a27c7203052", "score": "0.58134085", "text": "public final void clear() {\n\t\tset(new float[SIZE]);\n\t}", "title": "" }, { "docid": "c80a38a899cd786c2f21cc588633cdf8", "score": "0.58127546", "text": "public void clearRegisters() {\n\t\tA = 0;\n\t\tB = 0;\n\t\tC = 0;\n\t\tD = 0;\n\t\tE = 0;\n\t\tH = 0;\n\t\tL = 0;\n\t\tF = 0;\n\n\t\tmClockRegister = 0;\n\t\ttClockRegister = 0;\n\n\t\tprogramCounter = 0;\n\t\tstackPointer = 0xFFFE;\n\t}", "title": "" }, { "docid": "68363a9961c1e7ee9ce30d6e83caaca3", "score": "0.58093894", "text": "public void clearAll() {\n clearResult();\n clearMemory();\n }", "title": "" }, { "docid": "add972c662fadca5b3797e6d501c6333", "score": "0.58060706", "text": "public void clear() { \n this.value = 0; \n }", "title": "" }, { "docid": "c5543da66f6133952875c359b6fb4659", "score": "0.5795478", "text": "public void buttonClear()\n\t{\n\t\tm_fluidSolver.clearArray();\n\t}", "title": "" }, { "docid": "7fd54380cdf144ad617f049a0adbc791", "score": "0.5789621", "text": "public void reset() {\n\t\tthis.zero();\n\t\tthis.activate();\n\t}", "title": "" }, { "docid": "e1190725f3966f283d197607c8f0bb2b", "score": "0.5786899", "text": "void resetAllMetrics();", "title": "" }, { "docid": "49fa39499a0b43e141d99c748c831977", "score": "0.5785528", "text": "void reset() {\r\n mGattService = null;\r\n mHeartRateMeasurementCharacteristic = null;\r\n mHasClientCharacteristicConfigurationDescriptor = false;\r\n mBodySensorLocationCharacteristic = null;\r\n mHeartRateControlPointCharacteristic = null;\r\n }", "title": "" }, { "docid": "f026b6c4d2de0a3e8a83bb87a2ca131d", "score": "0.5784002", "text": "public void clear()\n\t{\n\t\tpositiveSceneObjects.clear();\n\t\tnegativeSceneObjects.clear();\n\t}", "title": "" }, { "docid": "5084db73ad11fb17038332fa9e546232", "score": "0.5783137", "text": "public void clear() {\n\t\tfor (int i = 0; i < board.length; i++)\n\t\t\tfor (int j = 0; j < board[i].length; j++) {\n\t\t\t\tboard[i][j].owner = 0;\n\t\t\t}\n\t}", "title": "" }, { "docid": "e99b371919dd6065a02d4fbf25bc7175", "score": "0.5777664", "text": "public void clear() {\n init();\n }", "title": "" }, { "docid": "b62b9a4418ce2448677a48ad152687d5", "score": "0.5775827", "text": "private void clearX() {\n \n x_ = 0F;\n }", "title": "" }, { "docid": "79650bbb2740fbd644908675c3854c52", "score": "0.5770836", "text": "public void reset() {\n\t\tb = 0;\n\t\tkeyindex = 0;\n\t\tkeystream = null;\n\t\tArrays.fill(X, 0);\n\t\tArrays.fill(C, 0);\n\t}", "title": "" }, { "docid": "90ca9ce2e28f51d9e5c53ad2c10f1e1f", "score": "0.57687765", "text": "public void clear() { weights.clear(); }", "title": "" }, { "docid": "2dc4b7b2533160735ed43343ab491481", "score": "0.5764468", "text": "public void clearInputs() {\n\t\tfor (int i = 0; i < hiddenNodes.size(); i++)\n\t\t\thiddenNodes.get(i).clearInput();\n\t\tfor (int i = 0; i < outputNodes.size(); i++)\n\t\t\toutputNodes.get(i).clearInput();\n\t}", "title": "" }, { "docid": "f97a66eae0c276cf812a1a7f5075ccd7", "score": "0.575631", "text": "public void clear() {\n block = 0;\n if (blocks != null) {\n for (int i = 0; i < blocks.length; ++i) {\n blocks[i] = 0;\n }\n }\n }", "title": "" }, { "docid": "c42aec4bae26e589ae4d7c33fc97d756", "score": "0.57485354", "text": "private void clearMem() {\r\n\t\tArrays.fill(this.membytes, MEM_ZERO);\r\n\t}", "title": "" }, { "docid": "f0976a86cc2d0145f55cd1d79c9e8698", "score": "0.57456845", "text": "public void reset() {\n integral = 0;\n prevError = 0;\n prevTimeMillis = 0;\n }", "title": "" }, { "docid": "8d1eb6d07913b4399f7162a409ab4de7", "score": "0.57440025", "text": "public void reset() {\n Iterator iterInputVars = getDataInputVariables().iterator();\n while (iterInputVars.hasNext()) {\n DataInputVariable ivar = (DataInputVariable)iterInputVars.next();\n ivar.setOutputVariable(null);\n }\n Iterator iterConsts = getConstants().iterator();\n while (iterConsts.hasNext()) {\n Constant c = (Constant)iterConsts.next();\n c.reset();\n }\n }", "title": "" }, { "docid": "1db1cc94b4fde39919fde9e08493947a", "score": "0.5743144", "text": "public void resetAll(){\n mPOIs.clear();\n mStamps.clear();\n gettingPOIs = false;\n gettingStamps = false;\n gettingCollections = false;\n mUser = new User();\n }", "title": "" }, { "docid": "dec42a2047504c6a68660c40332a3613", "score": "0.57391965", "text": "public void reset() {\n vboIndex = 0;\n textureObject = 0;\n }", "title": "" }, { "docid": "d10217b64c759d89ffad4f98941319b8", "score": "0.57361865", "text": "static void resetAll() {\n INSTANCES.clear();\n }", "title": "" }, { "docid": "18003b5b58ad8b381c362b580624eaf8", "score": "0.57328045", "text": "public void clearSpecies() {\n mp_iSpecies.clear();\n }", "title": "" }, { "docid": "d7fe9464bfe93334588f1e8abe7af9d1", "score": "0.57320446", "text": "public void clear() {\n\t\tused = 0;\n\t}", "title": "" }, { "docid": "8645e8fcdcbda74a2acb74d55da48eaa", "score": "0.5726624", "text": "public void reset() { //TODO: make reset function for enemyController\n updatables.clear();\n\n // physics world stuff\n Vector2 gravity = new Vector2(world.getGravity());\n\n for (GameObject obj : objects) {\n obj.deactivatePhysics(world);\n }\n\n objects.clear();\n addQueue.clear();\n world.dispose();\n\n world = new World(gravity, false);\n world.setContactListener(collisionManager);\n // put everything back\n populateLevel();\n\n endGame = false;\n }", "title": "" }, { "docid": "9c9c66b81de459cee69b9d4c67ddfbc3", "score": "0.5723897", "text": "public void clear() {\r\n\t\ttotal = 0;\r\n\t\toperationHistory = \"0\";\r\n\t}", "title": "" }, { "docid": "1a36bc58b3ef1fbc18543e22f3c03bba", "score": "0.57211804", "text": "public void reset() {\n\t\tfaceNum=0;\n\t\tvln=0;\n\t\tbb=null;\n bvCnt=0;\n quadNum=0;\n stripNum=0;\n vert.reset();\n\t}", "title": "" }, { "docid": "d8bbe61444a725f0d0f643e3c5d8df5c", "score": "0.57169", "text": "public void reset() {\r\n p.set(p0);\r\n v.set(v0);\r\n f.set(0,0);\r\n vTmp.set(v0);\r\n }", "title": "" }, { "docid": "4aac047f7e9fc506ae1786bdf781c7e1", "score": "0.57108897", "text": "public void clear() {\n\n for(int i = 0; i < 5; ++i) {\n carrier[i] = new Cell();\n }\n for(int i = 0; i < 4; ++i) {\n battleship[i] = new Cell();\n }\n for(int i = 0; i < 3; ++i) {\n submarine[i] = new Cell();\n cruiser[i] = new Cell();\n }\n for(int i = 0; i < 2; ++i) {\n destroyer[i] = new Cell();\n }\n\n carrierDestroyed = false;\n battleshipDestroyed = false;\n submarineDestroyed = false;\n cruiserDestroyed = false;\n destroyerDestroyed = false;\n\n }", "title": "" }, { "docid": "114057dbb9d87f5fc15e6cfb5dfa94b3", "score": "0.5710486", "text": "public void resetStatistics() {\n\t\tsamples = 0;\n\t\tmeans = null;\n\t\tvariances = null;\n\t\tsigmas = null;\n\t}", "title": "" }, { "docid": "6ecd5e9dc2141ecde1078ac7b4994fda", "score": "0.570486", "text": "public void clearAllData() {\n for (Thing aThing : things.values()) {\n for(ThingInstance instance : aThing.getInstances()) {\n deleteThing(instance);\n }\n }\n }", "title": "" } ]
7ed540a1fbcaa80676d36daa1a6e5119
Gives the offset from the root of the key as an integer, number of half steps
[ { "docid": "f2414d5c373ef020eed8db832f7d9197", "score": "0.0", "text": "public int getPitchOffset(boolean isMajor) {\n\t\tint pitchOffset;\n\t\tswitch (_degreeNumber) {\n\t\t\tcase 1:\n\t\t\t\tpitchOffset = 0;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpitchOffset = 2;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tif (isMajor) {\n\t\t\t\t\tpitchOffset = 4;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpitchOffset = 3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tpitchOffset = 5;\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tpitchOffset = 7;\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tif (isMajor) {\n\t\t\t\t\tpitchOffset = 9;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpitchOffset = 8;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tif (isMajor) {\n\t\t\t\t\tpitchOffset = 11;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpitchOffset = 10;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new RuntimeException(\"Scale degree outside of 1-7\");\n\t\t}\n\t\tpitchOffset += _accidental.intValue();\n\t\t\n\t\treturn pitchOffset;\n\t}", "title": "" } ]
[ { "docid": "d023fd32b2ac4a46a18587111141e6c2", "score": "0.6151279", "text": "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "title": "" }, { "docid": "105d75cc06fd6fbbc190fe1fc280220f", "score": "0.6124857", "text": "double getOffset();", "title": "" }, { "docid": "f2e6a4d3055d9e58954ba0e05e1edcdf", "score": "0.6101096", "text": "long getMid();", "title": "" }, { "docid": "f2e6a4d3055d9e58954ba0e05e1edcdf", "score": "0.6101096", "text": "long getMid();", "title": "" }, { "docid": "09cb34cf9103a178ab4a2af7ae1b889a", "score": "0.6084267", "text": "int stepHash(int hashKey,int length)\n\t{\n\t\tdouble constant = (Math.sqrt(2)-1)/2;\n\t\tint step = (int) Math.floor((length * ((constant* hashKey) - Math.floor(constant* hashKey)))); \n\t\tif (step == 0){//if step value = 0 (frequent at low values of length, step =1\n\t\t\treturn 1; //while this could be problematic, at small values of n, this is trivial\n\t\t}\n\t\tif (step % 2 == 0){ //if step is even\n\t\t\tstep++; //add 1 to make it odd\n\t\t}\n\t\treturn step;//mod value is not applied at the base hashLevel. It is in the insert/find/reinset respectively\n\t}", "title": "" }, { "docid": "c1aae6a726b7e6d00c25d827bee16b83", "score": "0.59982634", "text": "public static int offset_sum_e() {\n return (104 / 8);\n }", "title": "" }, { "docid": "bb796abd7ae9c0f75c2ba39584928253", "score": "0.5991425", "text": "final int getKeyPosition(final Object key) {\r\n return Math.abs(key.hashCode()) % buckets.length;\r\n }", "title": "" }, { "docid": "1c32eb9bee02972760577723cf6812af", "score": "0.59884566", "text": "public long moreKeySize(long key) {\n return root != null ? (root.all - lessKeySize(key + 1)) : 0;\n }", "title": "" }, { "docid": "c8b80005655703b61d768e2c58071de6", "score": "0.5966234", "text": "public static int offset_counter() {\n return (8 / 8);\n }", "title": "" }, { "docid": "ac41da852d7e8ada7ba5323d5ab75d4c", "score": "0.5927033", "text": "private int calcIndex(K key) {\n\t\treturn Math.abs(key.hashCode() % capacity);\n\t}", "title": "" }, { "docid": "c71599d082d2abcfd2dc0b88f0857551", "score": "0.5904585", "text": "public abstract long getStartOffset();", "title": "" }, { "docid": "ec6833a7478f3bcfd4c6da7b7c3bad0e", "score": "0.58740973", "text": "Constant getStartOffsetConstant();", "title": "" }, { "docid": "9c5ed746494e0670f74d1f5f2fa69a68", "score": "0.58572054", "text": "public static int offset_min() {\n return (56 / 8);\n }", "title": "" }, { "docid": "89f06c36a54c28b5b58ca0927666b808", "score": "0.5847921", "text": "private long minKey() {\n if (left.size == 0) return key;\n // make key 'absolute' (i.e. relative to the parent of this):\n return left.minKey() + this.key;\n }", "title": "" }, { "docid": "0aa997bd4dec400bf2717d9e4b006ed6", "score": "0.58288044", "text": "public K floor(K key);", "title": "" }, { "docid": "9000853adf3a4e2e20efb94e2159e6f1", "score": "0.57967424", "text": "int getMid(int s, int e) {\n return s + (e - s) / 2;\n }", "title": "" }, { "docid": "b89902a298d311819ea5e0fb6c7fcec5", "score": "0.5791914", "text": "protected int findPosKey(KeyType key) {\n int kthOddNumber = 1;\n int index = myHashKey(key);\n\n while ((mArray[index].state != EMPTY) &&\n (mArray[index].data.equals(key))) {\n index += kthOddNumber;\n kthOddNumber += 2;\n if (index >= mTableSize) {\n index -= mTableSize;\n }\n }\n return index;\n }", "title": "" }, { "docid": "ef42306b793955983aab5908ad92af37", "score": "0.57834905", "text": "Double getOffset();", "title": "" }, { "docid": "3111cee3016b4cd5bec31851c2925a68", "score": "0.57790166", "text": "public static int offset_parent() {\n return (40 / 8);\n }", "title": "" }, { "docid": "6fd1eb13897f83b2d74862c5e197c667", "score": "0.5771431", "text": "private int getIndex(int key) {\n\t\treturn key % MAX_LEN;\n\t}", "title": "" }, { "docid": "212352accc1cd6b91a64af747cffd5c3", "score": "0.57482827", "text": "public int getSnakeStartLength();", "title": "" }, { "docid": "63319d00637686dd570cc4e9d5e40952", "score": "0.57446945", "text": "int getKeySize();", "title": "" }, { "docid": "e54de6b6d2b6b7c3241cb7b6b911fdc3", "score": "0.5689739", "text": "protected final int findInsertionPoint(final long k) {\n\t\tfinal long key[] = this.key;\n\t\tfinal byte state[] = this.state;\n\t\tfinal int n = key.length;\n\t\t// First of all, we make the key into a positive integer.\n\t\tfinal int k2i = longHash2IntHash(k) & 0x7FFFFFFF;\n\t\t// The primary hash, a.k.a. starting point.\n\t\tint h1 = k2i % n;\n\t\tif (state[h1] == OCCUPIED && !((k) == (key[h1]))) {\n\t\t\t// The secondary hash.\n\t\t\tfinal int h2 = (k2i % (n - 2)) + 1;\n\t\t\tdo\n\t\t\t\th1 = (h1 + h2) % n;\n\t\t\twhile (state[h1] == OCCUPIED && !((k) == (key[h1]))); // There's always a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// FREE entry.\n\t\t}\n\t\tif (state[h1] == FREE)\n\t\t\treturn h1;\n\t\tif (state[h1] == OCCUPIED)\n\t\t\treturn -h1 - 1; // Necessarily, KEY_EQUALS_HASH( k, h, key[ h1 ] ).\n\t\t/* Tables without deletions will never use code beyond this point. */\n\t\tfinal int i = h1; // Remember first available bucket for later.\n\t\t/** See the comments in the documentation of the interface Hash. */\n\t\tif (ASSERTS)\n\t\t\tassert state[h1] == REMOVED;\n\t\tif (!((k) == (key[h1]))) {\n\t\t\t// The secondary hash.\n\t\t\tfinal int h2 = (k2i % (n - 2)) + 1;\n\t\t\tdo\n\t\t\t\th1 = (h1 + h2) % n;\n\t\t\twhile (state[h1] != FREE && !((k) == (key[h1])));\n\t\t}\n\t\treturn state[h1] == OCCUPIED ? -h1 - 1 : i; // In the first case,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// necessarily, KEY_EQUALS_HASH(\n\t\t\t\t\t\t\t\t\t\t\t\t\t// k, h, key[ h1 ] ).\n\t}", "title": "" }, { "docid": "0c0cfd2399b31800d2d0246c79731d8f", "score": "0.56488574", "text": "public static int offset_estLength() {\n return (72 / 8);\n }", "title": "" }, { "docid": "db5ee04f7efbef9f033a4a3d27bef0f6", "score": "0.5638511", "text": "private WAVLNode treePos (WAVLTree tree,int key) {\n\t WAVLNode x=tree.root;\r\n\t WAVLNode y=EXT_NODE;\r\n\t while (x!=EXT_NODE) { \r\n\t\t y=x;\r\n\t\t y.sizen++;\r\n\t\t if (key==x.key){\r\n\t\t\t reFix(x);\r\n\t\t\t return x;\r\n\t\t }\r\n\t\t else if (key<x.key) {\r\n\t\t\t x=x.left;\r\n\t\t }\r\n\t\t else {\r\n\t\t\t x=x.right;\r\n\t\t }\r\n\t }\r\n\t return y;\r\n }", "title": "" }, { "docid": "4da1adbb5596a15c2a814bc67990ab96", "score": "0.5620044", "text": "public static int offset_sum_a() {\n return (72 / 8);\n }", "title": "" }, { "docid": "bcfdb75a20e0d875f3309d82a44fd63b", "score": "0.5615407", "text": "double getLeft(double min);", "title": "" }, { "docid": "2218386de1873619dd4ae21e21445ef1", "score": "0.5610731", "text": "short getKeyIx();", "title": "" }, { "docid": "df0d67f4f0fe7c03e49362f4dfe7ce5b", "score": "0.5597379", "text": "public static int offset_length() {\n return (32 / 8);\n }", "title": "" }, { "docid": "3b26f6ce74c230e8c7ff0121049b0f61", "score": "0.5572559", "text": "GlobalVariable getStartOffsetCounterVariable();", "title": "" }, { "docid": "dda5ef27ec25fd52636b1bf385857d4b", "score": "0.5561147", "text": "int getOffset();", "title": "" }, { "docid": "dda5ef27ec25fd52636b1bf385857d4b", "score": "0.5561147", "text": "int getOffset();", "title": "" }, { "docid": "dda5ef27ec25fd52636b1bf385857d4b", "score": "0.5561147", "text": "int getOffset();", "title": "" }, { "docid": "d47ed5f0738c91cbdcfff58b1cd6cdae", "score": "0.55539644", "text": "public int outDegree( VKeyT key );", "title": "" }, { "docid": "aaf5247926f13d7aab41e008acac7424", "score": "0.55236566", "text": "public int inDegree( VKeyT key );", "title": "" }, { "docid": "69c478c8d6d68bfed497210fb31d0d82", "score": "0.5515925", "text": "public Integer getOffset();", "title": "" }, { "docid": "e2a60cf63c026a674a576f2559c84c75", "score": "0.54892695", "text": "public int startOffset();", "title": "" }, { "docid": "228aa740e51c5806b9941631f26ad368", "score": "0.5475664", "text": "int baseHash(int hashKey,int length)\n\t{\n\t\tdouble constant = (Math.sqrt(3) - 1);\n\t\tint base = (int) Math.floor((length * ((constant* hashKey) - Math.floor(constant* hashKey)))); \n\t\treturn base; //mod value is not applied at the base hashLevel. It is in the insert/find/reinset respectively\n\t}", "title": "" }, { "docid": "7519591a8b5f8d25ca932448ccf0e74c", "score": "0.54672587", "text": "int getHeight(K key);", "title": "" }, { "docid": "00ad48243f1eb91ee828ec2175f52373", "score": "0.54651785", "text": "private int first_leaf() { return n/2; }", "title": "" }, { "docid": "acc98f433d15aba2210a9681c0c6a819", "score": "0.5461197", "text": "private int getLeftOf(int index) {\n // TODO: YOUR CODE HERE\n return index * 2;\n }", "title": "" }, { "docid": "4022c60272e580690405a06d03d66b66", "score": "0.5456193", "text": "private int getMiddlePositon()\n\t{\n\t\tint count = getChildCount();\n\t\tif (count!= 0)\n\t\t{\n\t\t\tint width = getWidth();\n\t\t\tint childNumber =0;\n\t\t\tView child = null;\n\t\t\t// take next child starting from left until one is reached whose right edge is over the middle\n\t\t\tdo\n\t\t\t{\n\t\t\t\tchild = getChildAt(childNumber);\n\t\t\t\tchildNumber++;\n\t\t\t}\n\t\t\twhile (childNumber < count && child.getRight()<width/2);\n\t\t\treturn getAdapterIndexNumber(mLeftViewIndex + childNumber);\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "bc04e935ca7378fba158c18b2031a485", "score": "0.543879", "text": "Pair<Integer, Integer> getInitialPosition();", "title": "" }, { "docid": "8b5c71bb6726cb46706044404a1fdeb8", "score": "0.5434398", "text": "int CalcKey(int g, int x, int n)\r\n {\r\n int rtn = 1;\r\n for(int i = 0; i < x; i++)\r\n rtn = (rtn * g) % n;\r\n return rtn;\r\n }", "title": "" }, { "docid": "de6585970a2f8205447b4c312014af02", "score": "0.54109347", "text": "private int getIndex(K key){\n int hashcode=key.hashCode();\n int index=hashcode%maxBuckets;\n return index;\n }", "title": "" }, { "docid": "3970300ceefc1fe0b474a3c5178f9823", "score": "0.53963614", "text": "public static int offset_cost() {\n return (56 / 8);\n }", "title": "" }, { "docid": "c1d0d2e52c483f6164a59f7fcef6110c", "score": "0.53924006", "text": "public static int offset_parentId() {\n return (64 / 8);\n }", "title": "" }, { "docid": "bfb8ead64839b926ead92eb908971df5", "score": "0.53835", "text": "public static int offset_reading() {\n return (32 / 8);\n }", "title": "" }, { "docid": "48cc759e7f602bddbcbc43dbcf1cfe12", "score": "0.5383252", "text": "private int indexFor(K key) {\n int hash = hash(key.hashCode());\n return hash % this.container.length;\n }", "title": "" }, { "docid": "15ecb62f6b1cf3ec1ca3a7e9c654d497", "score": "0.5379914", "text": "public static int offsetBits_estLength() {\n return 72;\n }", "title": "" }, { "docid": "35bbbdf64051f5c8e5f44edf8529017e", "score": "0.5379165", "text": "abstract K getFirstLeafKey();", "title": "" }, { "docid": "35bbbdf64051f5c8e5f44edf8529017e", "score": "0.5379165", "text": "abstract K getFirstLeafKey();", "title": "" }, { "docid": "7a4bc151de9a50d88ee229fe1a2c55dd", "score": "0.5378838", "text": "private int binaryFind(K key) {\n int sortedCount = this.sortedCount.get();\n // if there are no sorted keys, or the first item is already larger than key -\n // return the head node for a regular linear search\n if ((sortedCount == 0) || comparator.compareKeyAndSerializedKey(key, readKey(FIRST_ITEM)) <= 0) {\n return HEAD_NODE;\n }\n\n // optimization: compare with last key to avoid binary search\n if (comparator.compareKeyAndSerializedKey(key, readKey((sortedCount - 1) * FIELDS + FIRST_ITEM)) > 0) {\n return (sortedCount - 1) * FIELDS + FIRST_ITEM;\n }\n\n int start = 0;\n int end = sortedCount;\n\n while (end - start > 1) {\n int curr = start + (end - start) / 2;\n\n if (comparator.compareKeyAndSerializedKey(key, readKey(curr * FIELDS + FIRST_ITEM)) <= 0) {\n end = curr;\n } else {\n start = curr;\n }\n }\n\n return start * FIELDS + FIRST_ITEM;\n }", "title": "" }, { "docid": "32336cd5e8a1160d4fcefb3b4349fa76", "score": "0.5378113", "text": "@DISPID(-2147417104)\n @PropGet\n int offsetLeft();", "title": "" }, { "docid": "e996b316055efe1f3fc9143d7caa7146", "score": "0.5363071", "text": "protected abstract float getRequiredBaseOffset();", "title": "" }, { "docid": "b5fcefbfecf600747c2cc825be10cd1f", "score": "0.53514564", "text": "public int minkeys() {\n\t\tint min = 0;\n\t\tif (parentref == null) {\n\t\t\treturn 1;\n\t\t}\n\t\tmin = (int)Math.ceil((degree) / 2.0) - 1;\n\t\t//min = (int)Math.ceil(degree / 2.0);\n\t\treturn Math.max(min, 0);\n\t}", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.5350135", "text": "int getKey();", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.5350135", "text": "int getKey();", "title": "" }, { "docid": "df7ddea4089b95d7c3235dac410ea36e", "score": "0.53479886", "text": "public Double peekAhead(int in);", "title": "" }, { "docid": "f551350179125b25b16618447b0f59a6", "score": "0.5329695", "text": "static int getAnchor(int a){\n return a-((a-1)%3);\n }", "title": "" }, { "docid": "b9e62e6b8e61c83011a07ba81899aefe", "score": "0.5329027", "text": "private int getSaltStartIndex() {\n\t\t// Add the username to the password and shuffle things a bit.\n\t\t// Build the final hash to be compared with the one on the database.\n\t\tString strPassKey = \"\";\n\t\tList<Character> passKey = getPassKey();\n\t\tfor( Character c : passKey ) strPassKey += c.toString();\n\t\tbyte[] hash = getGeneratedHash();\n\n\t\t// Get int value for the middle char in username ensuring it is positive.\n\t\tint passIndex = (int)strPassKey.length()/2;\n\t\tCharacter passChar = strPassKey.charAt(passIndex);\n\t\tint passMidInt = Math.abs(Character.getNumericValue(passChar));\n\t\t// Trim the int value to the word length using mod.\n\t\tint hashIndex = passMidInt % WORD_LENGTH;\n\n\t\t// Get the absolute value from the hash char at hashIndex.\n\t\tchar hashChar = (char) hash[hashIndex];\n\t\tint hashInt = (int)hashChar;\n\n\t\t// Return the value within word length to be the seed.\n\t\tsaltStartIndext = ( hashInt % WORD_LENGTH );\n\t\treturn saltStartIndext;\n\t}", "title": "" }, { "docid": "f8ddf6ec5e1c9a80b102a5c5e9864ce6", "score": "0.5326365", "text": "public static int offset_max() {\n return (64 / 8);\n }", "title": "" }, { "docid": "21ff4939d1b9999d2fb1e47953660ade", "score": "0.53215224", "text": "public int getIndex(double offset)\n {\n double length = 0;\n int index = 0;\n while (index < _totalPoints)\n {\n length += getUnitWidth(index);\n // At slice boundary, return the next index\n if (isEqual(length, offset, Ring.DELTA))\n {\n return (index + 1) % _totalPoints;\n }\n else if (length > offset)\n {\n return index;\n }\n index++;\n }\n return 0;\n }", "title": "" }, { "docid": "ae2bda15c9bf59c6efab715cd436082b", "score": "0.5315957", "text": "short getDefaultKeyIx();", "title": "" }, { "docid": "658ce2d41e8aa521700a4e2a2100a476", "score": "0.53141713", "text": "private int getIndex(int val){\n return val%bucket;\n }", "title": "" }, { "docid": "3d3374124be010342c1990f220e181a3", "score": "0.53140694", "text": "public int getMid() {\r\n return mid;\r\n }", "title": "" }, { "docid": "372a36af8cdcd2bd2f86f44ce550d2d8", "score": "0.5306816", "text": "public static int offset_count() {\n return (16 / 8);\n }", "title": "" }, { "docid": "fffba01aa6a96642e96f37461c8c2f18", "score": "0.5290556", "text": "private int getKeyLength() {\n MongoCursor<Document> cursor = this.keystoreCollection.find(eq(\"conf\", \"homomorphic-keylength\")).iterator();\n\n int keyLength = 2048; // Default value is 2048 bits\n while (cursor.hasNext()) {\n keyLength = cursor.next().getDouble(\"keylength\").intValue();\n }\n return keyLength;\n }", "title": "" }, { "docid": "2b60704a843552f099517094308f1910", "score": "0.5283459", "text": "double getCalibrationOffset();", "title": "" }, { "docid": "3bd7413beb2384a7833341335a589a25", "score": "0.52818257", "text": "int getIndex(int key_hash) {\n int capacity = hash_map.length;\n int index = key_hash % capacity;\n return index;\n }", "title": "" }, { "docid": "6ac7ba7156934cf39b1754774c59a5e0", "score": "0.5277226", "text": "private int locateIndex(K key)\n { \n // // Search until you either find an entry containing key or \n // // pass the point where it should be\n // int index = 0;\n // while ((index < numberOfEntries) && (key.compareTo(dictionary[index].getKey()) > 0))\n // index++;\n // // end while \n // return index;\n \n return binarySearchQ7(0, numberOfEntries - 1, key);\n }", "title": "" }, { "docid": "686fc1003e79e21bdf9cf0f11355d88e", "score": "0.5275026", "text": "int getAnchorOffset();", "title": "" }, { "docid": "84b848dd04c7a23456fbcb677e58959c", "score": "0.5270756", "text": "private int helper(TreeNode root, int[] globalMax) {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// Step 1\r\n\t\tint left = helper(root.left, globalMax);\r\n\t\tint right = helper(root.right, globalMax);\r\n\t\t// Step 2\r\n\t\tleft = left < 0 ? 0 : left;\r\n\t\tright = right < 0 ? 0 : right;\r\n\t\tglobalMax[0] = Math.max(globalMax[0], root.key + left + right);\r\n\t\t// Step 3\r\n\t\treturn Math.max(left, right) + root.key;\r\n\t}", "title": "" }, { "docid": "991e26279c7c4c55fc43610c20a54da2", "score": "0.52689254", "text": "int locate(Entry probe)\n {\n if (keys == null)\n sortedKeys();\n int lo = 0, hi = keys.length - 1;\n while (lo <= hi) {\n int mid = (lo + hi) / 2;\n int cmp = comparator.compare(probe, keys[mid]);\n if (cmp < 0)\n hi = mid - 1;\n else if (cmp > 0)\n lo = mid + 1;\n else\n return mid; // found\n }\n return lo;\n }", "title": "" }, { "docid": "c81f80827cd5e210c625a016e376092a", "score": "0.52683717", "text": "public int findPrev(Node root, int key){\n\t\tint res = key;\n\t\twhile(root != nil){\n\t\t\tif(key==root.id){\n\t\t\t\treturn root.left.id;\n\t\t\t}\n\t\t\tif(root.id > key ){\n\t\t\t\troot = root.left;\n\t\t\t}\n\t\t\tif( root != nil && root.id < key){\n\t\t\t\tres = root.id;\n\t\t\t\troot = root.right;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "d70f3675c406299fcda830acf350d51d", "score": "0.5263641", "text": "private int getIndex(K key) {\r\n int index = -1;\r\n if (key != null) {\r\n index = key.hashCode()%capacity;\r\n }\r\n if (index < 0) {\r\n index *= -1;\r\n }\r\n return index;\r\n }", "title": "" }, { "docid": "ccd8027bcb410320ef0ff8a644ba4a58", "score": "0.52597433", "text": "public static int offset_nodeid() {\n return (0 / 8);\n }", "title": "" }, { "docid": "38683948f4818ea791d4989877dea8a3", "score": "0.5246786", "text": "private int findEntry(long msb, long lsb) {\n\n int lowIndex = 0;\n int highIndex = index.remaining() / 24 - 1;\n float lowValue = Long.MIN_VALUE;\n float highValue = Long.MAX_VALUE;\n float targetValue = msb;\n\n while (lowIndex <= highIndex) {\n int guessIndex = lowIndex + Math.round(\n (highIndex - lowIndex)\n * (targetValue - lowValue)\n / (highValue - lowValue));\n int position = index.position() + guessIndex * 24;\n long m = index.getLong(position);\n if (msb < m) {\n highIndex = guessIndex - 1;\n highValue = m;\n } else if (msb > m) {\n lowIndex = guessIndex + 1;\n lowValue = m;\n } else {\n // getting close...\n long l = index.getLong(position + 8);\n if (lsb < l) {\n highIndex = guessIndex - 1;\n highValue = m;\n } else if (lsb > l) {\n lowIndex = guessIndex + 1;\n lowValue = m;\n } else {\n // found it!\n return position;\n }\n }\n }\n\n // not found\n return -1;\n }", "title": "" }, { "docid": "a5a511806e8f5b5002dea0512b623300", "score": "0.5244011", "text": "private static int getLeft(int index) {\n\t\treturn (index + 1) * 2 - 1;\n\t}", "title": "" }, { "docid": "0e2f63175de6d8c127830c24974ac240", "score": "0.52414995", "text": "private int findPos( AnyType x )\n {\n int offset = 1;\n int currentPos = myhash( x );\n \n while( array[ currentPos ] != null &&\n !array[ currentPos ].key.equals( x ) )\n {\n currentPos += offset; // Linear probing.\n if( currentPos >= array.length )\n currentPos -= array.length;\n }\n \n return currentPos;\n }", "title": "" }, { "docid": "d551746579cfc48e77af3a83297e6315", "score": "0.5237276", "text": "private int gallop_right(PyObject key, PyObject[] aData, int localA, int localN,\n int hint)\n {\n //assert_(n > 0 && hint >= 0 && hint < n);\n localA += hint;\n int lastofs = 0;\n int ofs = 1;\n \n if (iflt(key, aData[localA])) {\n /* key < a[hint] -- gallop left, until\n * a[hint - ofs] <= key < a[hint - lastofs]\n */\n int maxofs = hint + 1; /* data[a] is lowest */\n while (ofs < maxofs) {\n if (iflt(key, aData[localA - ofs])) {\n lastofs = ofs;\n ofs = (ofs << 1) + 1;\n if (ofs <= 0) // int overflow\n ofs = maxofs;\n } else {\n /* a[hint - ofs] <= key */\n break;\n }\n }\n if (ofs > maxofs)\n ofs = maxofs;\n /* Translate back to positive offsets relative to &a[0]. */\n int k = lastofs;\n lastofs = hint - ofs;\n ofs = hint - k;\n } else {\n /* a[hint] <= key -- gallop right, until\n * a[hint + lastofs] <= key < a[hint + ofs]\n */\n int maxofs = localN - hint; /* data[a + n - 1] is highest */\n while (ofs < maxofs) {\n if (iflt(key, aData[localA + ofs]))\n break;\n /* a[hint + ofs] <= key */\n lastofs = ofs;\n ofs = (ofs << 1) + 1;\n if (ofs <= 0) /* int overflow */\n ofs = maxofs;\n }\n if (ofs > maxofs)\n ofs = maxofs;\n /* Translate back to offsets relative to &a[0]. */\n lastofs += hint;\n ofs += hint;\n }\n localA -= hint;\n \n //assert_(-1 <= lastofs && lastofs < ofs && ofs <= n);\n \n /* Now a[lastofs] <= key < a[ofs], so key belongs somewhere to the\n * right of lastofs but no farther right than ofs. Do a binary\n * search, with invariant a[lastofs-1] <= key < a[ofs].\n */\n ++lastofs;\n while (lastofs < ofs) {\n int m = lastofs + ((ofs - lastofs) >> 1);\n if (iflt(key, aData[localA + m]))\n ofs = m; // key < data[a + m]\n else\n lastofs = m+1; // data[a + m] <= key\n }\n //assert_(lastofs == ofs); // so data[a + ofs -1] <= key < data[a+ofs]\n return ofs;\n }", "title": "" }, { "docid": "b89f90efa845ab5e2ea464c14de4c30e", "score": "0.52337694", "text": "protected int insertionIndex(int key) {\r\n\t\tint hash = key & 0x7fffffff;\r\n\t\tint index = this.hashFunc1(hash) * FREE.length;\r\n\t\t// int stepSize = hashFunc2(hash);\r\n\t\tbyte[] cur = new byte[4];\r\n\t\tkeys.position(index);\r\n\t\tkeys.get(cur);\r\n int storehash=(cur[0] << 24)+ ((cur[1] & 0xFF) << 16)+ ((cur[2] & 0xFF) << 8)+ (cur[3] & 0xFF);\r\n\r\n\t\tif (Arrays.equals(cur, FREE)) {\r\n\t\t\treturn index; // empty, all done\r\n\t\t} else if (storehash==key) {\r\n\t\t\treturn -index - 1; // already stored\r\n\t\t} else { // already FULL or REMOVED, must probe\r\n\t\t\t// compute the double hash\r\n\t\t\tfinal int probe = (1 + (hash % (size - 2))) * FREE.length;\r\n\r\n\t\t\t// if the slot we landed on is FULL (but not removed), probe\r\n\t\t\t// until we find an empty slot, a REMOVED slot, or an element\r\n\t\t\t// equal to the one we are trying to insert.\r\n\t\t\t// finding an empty slot means that the value is not present\r\n\t\t\t// and that we should use that slot as the insertion point;\r\n\t\t\t// finding a REMOVED slot means that we need to keep searching,\r\n\t\t\t// however we want to remember the offset of that REMOVED slot\r\n\t\t\t// so we can reuse it in case a \"new\" insertion (i.e. not an update)\r\n\t\t\t// is possible.\r\n\t\t\t// finding a matching value means that we've found that our desired\r\n\t\t\t// key is already in the table\r\n\t\t\tif (!Arrays.equals(cur, REMOVED)) {\r\n\t\t\t\t// starting at the natural offset, probe until we find an\r\n\t\t\t\t// offset that isn't full.\r\n\t\t\t\tdo {\r\n\t\t\t\t\tindex += (probe); // add the step\r\n\t\t\t\t\tindex %= (size * FREE.length); // for wraparound\r\n\t\t\t\t\tcur = new byte[FREE.length];\r\n\t\t\t\t\tkeys.position(index);\r\n\t\t\t\t\tkeys.get(cur);\r\n\t\t\t\t} while (!Arrays.equals(cur, FREE)\r\n\t\t\t\t\t\t&& !Arrays.equals(cur, REMOVED)\r\n\t\t\t\t\t\t&& storehash!=hash);\r\n\t\t\t}\r\n\r\n\t\t\t// if the index we found was removed: continue probing until we\r\n\t\t\t// locate a free location or an element which equal()s the\r\n\t\t\t// one we have.\r\n\t\t\tif (Arrays.equals(cur, REMOVED)) {\r\n\t\t\t\tint firstRemoved = index;\r\n\t\t\t\twhile (!Arrays.equals(cur, FREE)\r\n\t\t\t\t\t\t&& (Arrays.equals(cur, REMOVED) || storehash!=hash)) {\r\n\t\t\t\t\tindex += (probe); // add the step\r\n\t\t\t\t\tindex %= (size * FREE.length); // for wraparound\r\n\t\t\t\t\tcur = new byte[FREE.length];\r\n\t\t\t\t\tkeys.position(index);\r\n\t\t\t\t\tkeys.get(cur);\r\n\t\t\t\t}\r\n\t\t\t\t// NOTE: cur cannot == REMOVED in this block\r\n\t\t\t\treturn (!Arrays.equals(cur, FREE)) ? -index - 1 : firstRemoved;\r\n\t\t\t}\r\n\t\t\t// if it's full, the key is already stored\r\n\t\t\t// NOTE: cur cannot equal REMOVE here (would have retuned already\r\n\t\t\t// (see above)\r\n\t\t\treturn storehash!=hash ? -index - 1 : index;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b83175d557c6c9d5312397cfb49a759e", "score": "0.5231889", "text": "public int getXOffset();", "title": "" }, { "docid": "12a4f63c4b50ec3cd070578f9dce4667", "score": "0.5224834", "text": "private int gallop_left(PyObject key, PyObject[] localData, int localA, int localN,\n int hint)\n {\n //assert_(n > 0 && hint >= 0 && hint < n);\n localA += hint;\n int ofs = 1;\n int lastofs = 0;\n \n if (iflt(localData[localA], key)) {\n /* a[hint] < key -- gallop right, until\n * a[hint + lastofs] < key <= a[hint + ofs]\n */\n int maxofs = localN - hint; // data[a + n - 1] is highest\n while (ofs < maxofs) {\n if (iflt(localData[localA + ofs], key)) {\n lastofs = ofs;\n ofs = (ofs << 1) + 1;\n if (ofs <= 0) // int overflow\n ofs = maxofs;\n } else {\n // key < data[a + hint + ofs]\n break;\n }\n }\n if (ofs > maxofs)\n ofs = maxofs;\n // Translate back to offsets relative to a.\n lastofs += hint;\n ofs += hint;\n } else {\n /* key <= a[hint] -- gallop left, until\n * a[hint - ofs] < key <= a[hint - lastofs]\n */\n int maxofs = hint + 1; // data[a] is lowest\n while (ofs < maxofs) {\n if (iflt(localData[localA - ofs], key))\n break;\n // key <= data[a + hint - ofs]\n lastofs = ofs;\n ofs = (ofs << 1) + 1;\n if (ofs <= 0) // int overflow\n ofs = maxofs;\n }\n if (ofs > maxofs)\n ofs = maxofs;\n // Translate back to offsets relative to a.\n int k = lastofs;\n lastofs = hint - ofs;\n ofs = hint - k;\n }\n localA -= hint;\n //assert_(-1 <= lastofs && lastofs < ofs && ofs <= n);\n /* Now a[lastofs] < key <= a[ofs], so key belongs somewhere to the\n * right of lastofs but no farther right than ofs. Do a binary\n * search, with invariant a[lastofs-1] < key <= a[ofs].\n */\n ++lastofs;\n while (lastofs < ofs) {\n int m = lastofs + ((ofs - lastofs) >> 1);\n if (iflt(localData[localA + m], key))\n lastofs = m+1; // data[a + m] < key\n else\n ofs = m; // key <= data[a + m]\n }\n //assert_(lastofs == ofs); // so data[a + ofs -1] < key <= data[a+ofs]\n return ofs;\n }", "title": "" }, { "docid": "b09ecf481dc2c5d7efbde4251d2d9da6", "score": "0.52227896", "text": "public K ceiling(K key);", "title": "" }, { "docid": "7d6a0acc5258a7a2b49e482384858b0f", "score": "0.5220373", "text": "public static int offset_skew_cmp() {\n return (136 / 8);\n }", "title": "" }, { "docid": "0a4c7fb74d580a725139eea896e77c9e", "score": "0.5206702", "text": "public static int offset_hop() {\n return (48 / 8);\n }", "title": "" }, { "docid": "1e90bc9508ffa59df758366c348d9fb6", "score": "0.5202951", "text": "private int getIndex2(int val){\n return val/bucket;\n }", "title": "" }, { "docid": "ae542d9d7cbb628831a7bb6b68fbd90d", "score": "0.52026194", "text": "int getNextStep() {\n if (!includedInLastStep()) {\n return nextStepLength + lastPenaltyLength \n + borderBefore + borderAfter + paddingBefore + paddingAfter;\n } else {\n start = end + 1;\n if (knuthIter.hasNext()) {\n goToNextLegalBreak();\n return nextStepLength + lastPenaltyLength \n + borderBefore + borderAfter + paddingBefore + paddingAfter; \n } else {\n return -1;\n }\n }\n }", "title": "" }, { "docid": "ed9a7a5771275e9799d620e5f97da75a", "score": "0.5197496", "text": "public static int offset_source() {\n return (256 / 8);\n }", "title": "" }, { "docid": "052bcabfba964d90efd71cd5aef8ed98", "score": "0.51962614", "text": "int getReverseEdgeKey();", "title": "" }, { "docid": "d33ec082276e3ea113a3251a7938b4e6", "score": "0.51914984", "text": "private int findIndex(K key) {\n int i = hash(key),\n j = 0; // counts iterations, used for assertion\n while (keys[i] != null && ! key.equals(keys[i])) {\n i = (i + 1) % keys.length;\n j++;\n // we should find an empty spot before lapping the array\n assert j < keys.length;\n }\n return i;\n }", "title": "" }, { "docid": "858b461d28b0247a31ddc87e2410ca30", "score": "0.5181347", "text": "int getAtk();", "title": "" }, { "docid": "976edcef6827ff0c20cfff244157834f", "score": "0.51795745", "text": "public K floor(K key) {\n if (root == null)\n return null;\n else {\n Node tmp = null;\n Node curr = root;\n while (true) {\n if (curr == null) {\n if (tmp != null)\n return tmp.key;\n return null;\n }\n int cmp = key.compareTo(curr.key);\n if (cmp == 0)\n return curr.key;\n else if (cmp < 0)\n curr = curr.left;\n else {\n tmp = curr;\n curr = curr.right;\n }\n }\n }\n }", "title": "" }, { "docid": "f1bd26990f998aec27f99ee7d831fc9c", "score": "0.5176927", "text": "public int nextOffset(int curr) {\n return curr + 1;\n }", "title": "" }, { "docid": "046d914b8f24653a2c71700e0d95f692", "score": "0.5175367", "text": "private int kthChild(int i, int k){\n return d * i + k;\n }", "title": "" }, { "docid": "b5718eeef1b660f56f538b8a2802a0df", "score": "0.51718956", "text": "private int binarySearchQ7(int first, int last, K key)\n {\n int index;\n \n if (first > last)\n index = first; \n else \n {\n int mid = first + (last - first) / 2;\n K midKey = dictionary[mid].getKey(); \n if (key.equals(midKey))\n index = mid; \n else if (key.compareTo(midKey) < 0)\n index = binarySearchQ7(first, mid - 1, key);\n else\n index = binarySearchQ7(mid + 1, last, key);\n } \n return index;\n }", "title": "" }, { "docid": "41b20a1f6a532cd3affef602826b4e16", "score": "0.5171372", "text": "public static int offset_group() {\n return (24 / 8);\n }", "title": "" }, { "docid": "219b19185ef64f4e31d58b8928c94a94", "score": "0.5156707", "text": "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "title": "" }, { "docid": "f1766b1110ce4f605d7db0a25cf7fada", "score": "0.5154969", "text": "public abstract void calcPathToKing(Space kingSpot);", "title": "" }, { "docid": "302a4a83c00d38a9475afd72eeb694b4", "score": "0.51529133", "text": "int getKey(int i);", "title": "" } ]
2a2af62ee22d7c91a9e812e0c9eb46f9
Get the key with the loweset value in a hashmap
[ { "docid": "f1cbe47925f45a7db7c046bbdb5aaff6", "score": "0.7138458", "text": "public static String getLowestKey(HashMap<String, Integer> map){\n String key = \"\";\n int lowest_value = -1;\n Iterator<Map.Entry<String, Integer>> it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<String, Integer> pair = it.next();\n if(lowest_value == -1 || pair.getValue() < lowest_value){\n key = pair.getKey();\n lowest_value = pair.getValue();\n }\n }\n return key;\n }", "title": "" } ]
[ { "docid": "fde4d2184437fbfeda66dd4bc80f109b", "score": "0.73171544", "text": "protected Integer keyWithSmallestValue(HashMap<Integer, Integer> map) {\r\n if (map.isEmpty()) {\r\n return null;\r\n }\r\n\r\n ArrayList<Integer> keys = new ArrayList<Integer>(map.keySet());\r\n int smallestValKey = 0;\r\n int smallestValue = keys.get(0);\r\n for (int key : keys) {\r\n int value = map.get(key);\r\n if (value < smallestValue) {\r\n smallestValue = value;\r\n smallestValKey = key;\r\n }\r\n }\r\n\r\n return smallestValKey;\r\n }", "title": "" }, { "docid": "956c0f2afc76c20b0bb19a6bf9bf3c42", "score": "0.69412047", "text": "public E getKeyFromValue(T value) {\n\t\tfor (final Entry<E, T> e : map.entrySet())\n\t\t\tif (e.getValue().equals(value))\n\t\t\t\treturn e.getKey();\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fbd0ec78f3a00be7ff1eddbdaa59e87a", "score": "0.68982106", "text": "K getKey( );", "title": "" }, { "docid": "7c8d189832cf2dcfbdac9e5244d47380", "score": "0.6738139", "text": "private String findMinimumVertice() {\n\t\tint minval=1000000;\r\n\t\tfor(Integer val:hashMap.values()){\r\n\t\t\tif(val<minval){\r\n\t\t\t\tminval=val;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString initialKey=null;\r\n\t\tfor (Entry<String,Integer> entry : hashMap.entrySet()) {\r\n if (entry.getValue().equals(minval)) {\r\n initialKey=entry.getKey();\r\n }\r\n }\r\n\t\tString initialElement=initialKey.substring(0,1);\r\n\t\treturn initialElement;\r\n\t}", "title": "" }, { "docid": "fc8d4b0f8397cf2cdb4abe627f581b8c", "score": "0.67158157", "text": "public int getKeyForValue( int value ) {\n \t\tfor (int i = 0; i < this.buckets.length; i++) {\n \t\t\tElement element = this.buckets[i];\n \t\t\twhile (element != null) {\n \t\t\t\tif (element.value == value ) {\n \t\t\t\t\treturn element.key;\n \t\t\t\t}\n \t\t\t\telement = element.next;\n \t\t\t}\n \t\t}\n \t\treturn Integer.MIN_VALUE;\n \t}", "title": "" }, { "docid": "6ad79be4cbfa7efff5f9ce7ecf2afc7e", "score": "0.6711209", "text": "public T getKey(T key) {\r\n return getKey(binarySearch(key));\r\n }", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6664442", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6664442", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6664442", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6664442", "text": "java.lang.String getKey();", "title": "" }, { "docid": "2b9de6d07eea2a0dfbda01d5cd672b4a", "score": "0.6664442", "text": "java.lang.String getKey();", "title": "" }, { "docid": "6c9a788499f9220b734cb18eb110345a", "score": "0.6637056", "text": "private static <K> K findKey(Map<K, ?> map, Object value)\r\n {\r\n if (map == null)\r\n {\r\n return null;\r\n }\r\n for (Entry<K, ?> entry : map.entrySet())\r\n {\r\n if (Objects.equals(entry.getValue(), value))\r\n {\r\n return entry.getKey();\r\n }\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "9cf963f4bc814bf1ee388844988769c3", "score": "0.6620902", "text": "public E getFirstKey() {\n\t\treturn map.isEmpty() ? null : map.keySet().iterator().next();\n\t}", "title": "" }, { "docid": "283ab41a1bb60287a8fd294738e4ff9a", "score": "0.6567834", "text": "private final Long findPointFor(Long hv) {\r\n\t\t// this works in java 6, but still want to release support for java5\r\n\t\t// Long k = this.consistentBuckets.ceilingKey( hv );\r\n\t\t// return ( k == null ) ? this.consistentBuckets.firstKey() : k;\r\n\r\n\t\tSortedMap<Long, String> tmap = this.consistentBuckets.tailMap(hv);\r\n\r\n\t\treturn (tmap.isEmpty()) ? this.consistentBuckets.firstKey() : tmap.firstKey();\r\n\t}", "title": "" }, { "docid": "a276b54a7d1e3379493e365963d5d102", "score": "0.6554728", "text": "private K leastUsedEntry(LinkedHashMap<K, Integer> cacheMap) {\n\t\tK key = null;\n\t\tint leastUsedValue = 0;\n\t\tK leastUsedKey = null;\n\n\t\tfor (K k : cacheMap.keySet()) {\n\t\t\tkey = k;\n\t\t\tbreak;\n\t\t}\n\n\t\tleastUsedKey = key;\n\t\tleastUsedValue = cacheMap.get(key);\n\n\t\tfor (K k : cacheMap.keySet()) {\n\t\t\tkey = k;\n\n\t\t\tif (leastUsedValue > cacheMap.get(key)) {\n\t\t\t\tleastUsedValue = cacheMap.get(key);\n\t\t\t\tleastUsedKey = key;\n\t\t\t}\n\t\t}\n\n\t\treturn leastUsedKey;\n\n\t}", "title": "" }, { "docid": "01610d292fb048dfe1abf4651e59a2d0", "score": "0.6536935", "text": "K getKey();", "title": "" }, { "docid": "daa7804cedf0c20950beb7595277b70e", "score": "0.64172196", "text": "private int getMapIndex (K key) {\n\t\tint hCode = key.hashCode();\n\t\treturn (hCode % numBuckets); \n\t}", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.6412935", "text": "int getKey();", "title": "" }, { "docid": "ddc1c056fbf01e180527aaba1702780a", "score": "0.6412935", "text": "int getKey();", "title": "" }, { "docid": "9b05f665a6edd0cf3fef09ce6c380135", "score": "0.6395892", "text": "public static String getHighestKey(HashMap<String, Integer> map){\n String key = \"\";\n int highest_value = -1;\n Iterator<Map.Entry<String, Integer>> it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<String, Integer> pair = it.next();\n if(highest_value == -1 || pair.getValue() > highest_value){\n key = pair.getKey();\n highest_value = pair.getValue();\n }\n }\n return key;\n }", "title": "" }, { "docid": "2e7179cf21f886bd169714731fb79fb1", "score": "0.6395227", "text": "public Integer get(Integer key);", "title": "" }, { "docid": "6876327b3a110bec00573f950e14ed6a", "score": "0.63728195", "text": "public long getKey();", "title": "" }, { "docid": "e139c39c2e42364e7d035178317e30a3", "score": "0.63621306", "text": "public static <K, V> K getKeyFromValue(final Map<K, V> map, final V value) {\n if (MapUtils.isEmpty(map)) {\n return null;\n }\n if (map instanceof BiMap) {\n return ((BiMap<K, V>) map).inverse().get(value);\n }\n for (final Map.Entry<K, V> entry : map.entrySet()) {\n\t\t\tif (Objects.equals(value, entry.getValue())) {\n\t\t\t\treturn entry.getKey();\n\t\t\t}\n }\n return null;\n }", "title": "" }, { "docid": "ff049a7788dcf80fab42a4f0b96eb388", "score": "0.6344543", "text": "public Map.Entry<Integer, Integer[]> findLeastAccessed(HashMap<Integer, Integer[]> map){\n Map.Entry<Integer, Integer[]> leastAccessed = map.entrySet().iterator().next();\n int min = leastAccessed.getValue()[1];\n for(Map.Entry<Integer, Integer[]> entry: map.entrySet()){\n if(entry.getValue()[1] < min){\n min = entry.getValue()[1];\n leastAccessed = entry;\n }\n }\n\n return leastAccessed;\n }", "title": "" }, { "docid": "6c7a3745add4a9829eaa6a12b6b47e77", "score": "0.63354105", "text": "abstract int getKey();", "title": "" }, { "docid": "c492f879396a6fdc80460fe557876fc0", "score": "0.63310504", "text": "public int searchFor(int key);", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.6326562", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.6326562", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.6326562", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.6326562", "text": "String getKey();", "title": "" }, { "docid": "1abc3fa5e3fb73cc919d019a64094357", "score": "0.6326562", "text": "String getKey();", "title": "" }, { "docid": "e8d7d1989d7592f369bc0cb4f0ba5340", "score": "0.6325146", "text": "public K getKey();", "title": "" }, { "docid": "e24e61bbd2ba61a47fc447280aa52bb2", "score": "0.6323284", "text": "@Nullable\n public static String getUniqueBigKey(Map<String, Integer> map) {\n if (map.isEmpty()){\n return null;\n }\n final Map.Entry<String, Integer> val = Collections.max(map.entrySet(), Map.Entry.comparingByValue());\n\n if (val == null){\n return null;\n }\n\n final int highValue = val.getValue();\n\n if (highValue == 0){\n return null;\n }\n if(map.values().stream().filter((v) -> v == highValue).count() > 1){\n return null;\n }\n\n return val.getKey();\n }", "title": "" }, { "docid": "c73803bf2b93343ca08a1fe0463215bb", "score": "0.63017577", "text": "protected int findEntry(DictEntry key){\n\t\tint value = compress(hashValue(key));\n\t\tvalue = Math.abs(value);\n\t\tString s;\n\t\tString t;\n\t\tfor(DictEntry d : bucket.get(value))\n\t\t{\n\t\t\ts = d.getConfig(); // iterates and holds entries of bucket\n\t\t\tt = key.getConfig(); // holds value of key\n\t\t\t\n\t\t\tif(s.equals(t)) // compares key to bucket entry\n\t\t\t\treturn value; // returns value if true\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "f8e6699fdda3218a0d3e2d315bf6a218", "score": "0.6288786", "text": "private Position<Entry<K,V>> find(K key) {\r\n\t\tint h = hash(key);\r\n\t\tfor (Position<Entry<K,V>> p: buckets[h])\r\n\t\t\tif (p.data().key().equals(key))\r\n\t\t\t\treturn p;\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "9986f2d3ff931118945a1892a2da1ae8", "score": "0.6288488", "text": "public Integer get(int key);", "title": "" }, { "docid": "5a5daa45f2b4a4637b3caaa4f648bb15", "score": "0.6265463", "text": "public int \t\tget(Object key)\t\t\t\t\t{ return map.get(key);\t\t\t\t}", "title": "" }, { "docid": "ad2eb33ee5813e8d0861cdb5409d173c", "score": "0.6263036", "text": "public static <T, E> T getKeyByValue(Map<T, E> map, E value) {\n for (Map.Entry<T, E> entry : map.entrySet()) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n if (Objects.equals(value, entry.getValue())) {\n return entry.getKey();\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "86f1ad8176fd335c7e8746c2a22b369d", "score": "0.6258582", "text": "public Integer getKey(Domino domino, HashMap<Integer, Domino> map){\r\n for(Integer key : map.keySet()){\r\n if(map.get(key).equals(domino)){\r\n return key;\r\n }\r\n }\r\n return -1;\r\n }", "title": "" }, { "docid": "fdf7f60f7457e6ff8bd6826e8afd641c", "score": "0.6218252", "text": "@SuppressWarnings(\"unchecked\")\n public T getKey(int key) {\n T result = null;\n for (int i = 0; i < getSize(); i++) {\n T element = getElementAt(i);\n if (element.getKey() == key) {\n result = element;\n break;\n }\n }\n return result;\n }", "title": "" }, { "docid": "9ceab36521673bf1f1c81cacaea8d66b", "score": "0.61922437", "text": "public K getMinKey() {\n // Call getAllKeys and return the first element in the list as it is the smallest key in\n // the DAFTree\n return getAllKeys().getFirst();\n }", "title": "" }, { "docid": "b252eb755d469eb79684223ad192c84d", "score": "0.6187723", "text": "public synchronized Object whatKeyMapsToValue(Object value)\n {\n // We get the Key Set and sequentially check if the value is contained in the\n // corresponding bucket. We use the toArray() method of the Key Set to return the\n // corresponding key.\n boolean findValue = false;\n Object[] keys = ((Set) keySet()).toArray();\n int i;\n for (i = 0; i < keys.length; i++)\n {\n if (((Bucket) get(keys[i])).contains(value))\n {\n return(keys[i]);\n }\n }\n return(null);\n }", "title": "" }, { "docid": "c920a095385ba14dbeea184d22f0a3fd", "score": "0.61838067", "text": "public Entry find(Object key) {\n // Replace the following line with your solution.\n int code;\n code = compFunction(key.hashCode());\n if(dict[code] == null){\n return null;\n }\n ListNode currentNode = dict[code].front();\n try{\n while(true){\n if(((Entry)(currentNode.item())).key == key)\n return (Entry)currentNode.item();\n else\n currentNode = currentNode.next();\n }\n }catch(InvalidNodeException e1){\n //do nothing\n }\n return null;\n }", "title": "" }, { "docid": "6f7d6c4e9268f853beb88a894e30e62b", "score": "0.61791515", "text": "static int find_value(HashMap<Integer, Integer> hm, int x)\n {\n //Your code here\n\t\tInteger r = 0;\n\t\tif(hm.containsKey(x)){\n\t\t\tr = hm.get(x);\n\t\t\t//System.out.println(\"voila notre r = \"+ r);\n\t\t}\n\t\telse{\n\t\t\tr = -1;\n\t\t}\n\t\treturn r;\n }", "title": "" }, { "docid": "0d776cbaeb73d7b6fca20eb37295dcc3", "score": "0.61787224", "text": "public K getKey(V value) {\n for(int i=0; i<size; i++)\n if(((Comparable<V>)nodeArray[i].value).compareTo(value)==0)\n return nodeArray[i].key;\n return null;\n }", "title": "" }, { "docid": "35bbbdf64051f5c8e5f44edf8529017e", "score": "0.6170417", "text": "abstract K getFirstLeafKey();", "title": "" }, { "docid": "b1ffa7d9aaa593b5fb5df68ec7a24b7a", "score": "0.61687386", "text": "public int getIndex(K key)\n\t{\n\t\treturn keyMap.getIfAbsent(key, -1);\n\t}", "title": "" }, { "docid": "abe3a6617acd944715b358501de3f4ac", "score": "0.6143492", "text": "int index(String key);", "title": "" }, { "docid": "e90eb09965b299d40eca785fe830085e", "score": "0.6121418", "text": "public abstract Object getKey();", "title": "" }, { "docid": "6c42141d237209101eda774cc800d1cd", "score": "0.6110264", "text": "public int get( int key ) {\n \t\tint index;\n \t\tif (this.isPowerOfTwo) {\n \t\t\tindex = (key & 0x7FFFFFFF) & (this.buckets.length - 1);\n \t\t} else {\n \t\t\tindex = (key & 0x7FFFFFFF) % this.buckets.length;\n \t\t}\n \t\tElement element = this.buckets[ index ];\n \t\tif (element == null) {\n \t\t\treturn Integer.MIN_VALUE;\n \t\t}\n \t\tdo {\n \t\t\tif (element.key == key ) {\n \t\t\t\treturn element.value;\n \t\t\t}\n \t\t\telement = element.next;\n \t\t} while (element != null);\n \t\treturn Integer.MIN_VALUE;\n \t}", "title": "" }, { "docid": "19b15232c0035c7a1aa6e8ba44b7715c", "score": "0.6089152", "text": "public V get(K key) {\n\t\tint hCode = getMapIndex(key); \n\t\tHashNode<K,V> head = map.get(hCode);\n\t\t\n\t\t// search for key in chain\n\t\twhile (head != null) {\n\t\t\tif (head.key.equals(key))\n\t\t\t\treturn head.value;\n\t\t\telse\n\t\t\t\thead = head.next; \n\t\t}\n\t\t\n\t\t// return null if key not found\n\t\treturn null; \n\t}", "title": "" }, { "docid": "5d3d51cad187cdf87d99f5487e8e5912", "score": "0.6088918", "text": "int getInteger(String key);", "title": "" }, { "docid": "7ec46c8b160989ff05ea613aab6022da", "score": "0.60717976", "text": "public int get(int key) {\n if (key < map.length && map[key]) return values[key];\n else return -1;\n }", "title": "" }, { "docid": "17ed42897769407a43e5eaea0ca530b0", "score": "0.603033", "text": "public Key min() {\n if (size() == 0) throw new NoSuchElementException(\"calls min() with empty map\");\n return min(root).key;\n }", "title": "" }, { "docid": "e27af1a87ce8f528aa8a775998325904", "score": "0.6023686", "text": "@Override\n public K firstKey() {\n if (isEmpty()) throw new NoSuchElementException();\n return findMin(root).getKey();\n }", "title": "" }, { "docid": "a5004ce3eb0196e00c8dc548240c56ae", "score": "0.60170305", "text": "public int findKeyInTable(int key) {\n Integer wrappedInt = key;\n int hash = hashFunction1(key);\n\n if (isEmpty()) {\n throw new IllegalArgumentException(\"Table is empty\");\n }\n\n if (Objects.equals(buckets[hash], wrappedInt)) return hash;\n\n hash = hashFunction2(key);\n if (!Objects.equals(buckets[hash], wrappedInt))\n throw new IllegalArgumentException(\"Key \" + key + \" not found in table\");\n else {\n return hash;\n }\n }", "title": "" }, { "docid": "aab9042550aa6c89241fad9d414b961e", "score": "0.6013668", "text": "private static int minKey(int[] key, Boolean[] mstSet) {\n\n int numberOfVertices = key.length;\n\n int min = Integer.MAX_VALUE;\n int minIndex = -1;\n\n for (int v = 0; v < numberOfVertices; v++) {\n if (Boolean.FALSE.equals(mstSet[v]) && key[v] < min) {\n min = key[v];\n minIndex = v;\n }\n }\n\n return minIndex;\n }", "title": "" }, { "docid": "c99a91a72dd54080bdc068d4786153c8", "score": "0.60013807", "text": "public V get(K key) {\r\n int hashValue = hashFunction(key); // this is the index\r\n LinkedList<HashPair<K,V>> listInSlot = this.buckets.get(hashValue);\r\n if(listInSlot!=null){\r\n for (HashPair<K, V> hashPair : listInSlot){\r\n if(hashPair.getKey().equals(key)){\r\n return hashPair.getValue();\r\n }\r\n }\r\n }\r\n \r\n \treturn null;\r\n }", "title": "" }, { "docid": "f0ccd8000f01ff07fec49a16ecef29c8", "score": "0.59761596", "text": "public Node findKey(int hash){\n Node current = firstNode;\n\n while (current != null){\n if(current.hash == hash){\n //returning a node because this makes the most since when we want to use it\n // in the Hashmap class methods\n break;\n }\n current = current.next;\n\n }\n return current;\n }", "title": "" }, { "docid": "7f8bc48829aa5888187833cd918d6980", "score": "0.5965942", "text": "public int getSmallestKey() {\n\t\tif (this.isLeaf) {\n\t\t\treturn keys.get(0);\n\t\t} else {\n\t\t\tassert (this instanceof IndexNode);\n\t\t\tIndexNode thisNode = (IndexNode) this;\n\t\t\treturn thisNode.children.get(0).getSmallestKey();\n\t\t}\n\t}", "title": "" }, { "docid": "9d941f02f378c26622a0d65f41b068de", "score": "0.59652805", "text": "public int get(int key) {\n // increment number of uses\n if(map.containsKey(key)) {\n System.out.println(\"contains \" + key);\n int count = map.get(key)[1];\n int val = map.get(key)[0];\n Integer[] valAndC = {val, count +1};\n map.put(key, valAndC);\n\n return val;\n }\n return -1;\n }", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.59585804", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.59585804", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.59585804", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.59585804", "text": "public String getKey();", "title": "" }, { "docid": "c7704b437edfa50dcbe68acbbee4d41d", "score": "0.59585804", "text": "public String getKey();", "title": "" }, { "docid": "0e97bb81bf20a4bb0c9777d1d57d83e2", "score": "0.5957665", "text": "public static String getKeyFromValue(TreeMap<String,String> tm, String value) {\n for (String s : tm.keySet()) {\n if (tm.get(s).equals(value)) {\n return s;\n }\n }\n return null;\n }", "title": "" }, { "docid": "07a0c321211bf98b8725a8c6ddbc7baa", "score": "0.59565145", "text": "public abstract long keyL(int index);", "title": "" }, { "docid": "82846b8b4514a45e9518324f8ca4eab6", "score": "0.5956342", "text": "public V get(Object key) { return hashMap.get(key); }", "title": "" }, { "docid": "3014963faeae754fe288f6bd999475ca", "score": "0.5944137", "text": "abstract Integer get(Integer key);", "title": "" }, { "docid": "a5f8d63720143a61126bae4345cf1562", "score": "0.5943933", "text": "public int findMinKey() {\n return findMinKey(root).key;\n }", "title": "" }, { "docid": "ad73cf20057acc7aa4a151bd4ff90862", "score": "0.5938542", "text": "int minKey(int key[], Boolean mstSet[]) {\r\n\t\t// Initialize min value\r\n\t\tint min = Integer.MAX_VALUE, min_index = -1;\r\n\r\n\t\tfor (int v = 0; v < V; v++)\r\n\t\t\tif (mstSet[v] == false && key[v] < min) {\r\n\t\t\t\tmin = key[v];\r\n\t\t\t\tmin_index = v;\r\n\t\t\t}\r\n\r\n\t\treturn min_index;\r\n\t}", "title": "" }, { "docid": "9116bff0461ea6f2122ea6c4b18d1305", "score": "0.59307003", "text": "String key( int index );", "title": "" }, { "docid": "cb8b38f25765beadd1ae968e21644197", "score": "0.5926455", "text": "private int searchSorted(long hash) \n {\n int low = 0;\n int high = sortTop - 1;\n \n while (low <= high) \n {\n int mid = (low + high) >> 1;\n long probe = keys.get(mid);\n \n if (probe < hash)\n low = mid + 1;\n else if (probe > hash)\n high = mid - 1;\n else\n return mid;\n }\n \n return -1;\n }", "title": "" }, { "docid": "568938adc05d41660dc274e83fd83551", "score": "0.5924794", "text": "public int getHash(int key, int max);", "title": "" }, { "docid": "8590069a6fa3ab6515be4cb17ce9cd92", "score": "0.5922032", "text": "private Integer getKey(Sentence s) {\n return s.hashCode();\n }", "title": "" }, { "docid": "6b287eae87296ede32764762d5164920", "score": "0.5918626", "text": "abstract Integer search(Integer key);", "title": "" }, { "docid": "904f2e5c4f797c71c7579fb4285e1536", "score": "0.5917522", "text": "String key(int index);", "title": "" }, { "docid": "43c47e8e8f2800cf4a42c7258c10be72", "score": "0.59167594", "text": "public String getKey(int infoIndex);", "title": "" }, { "docid": "d96babe60b72bc751e39d5a72e2861ec", "score": "0.5916033", "text": "public int findEntryLocation(KeyType key)\n { int low = 0;\n int high = this.size()-1;\n\n // Handle special case where key alrger than all existing keys\n if (comp.compare(key, entries[high].getKey()) > 0)\n return this.size();\n\n while (low < high)\n { int mid = (low + high)/2;\n \n Entry<KeyType, ValueType> e = entries[mid];\n\t int compResult = comp.compare(key, e.getKey());\n\t if (compResult == 0)\n\t { return mid;\n\t }\n\t else\n\t if (compResult < 0)\n\t { high = mid -1;\n\t }\n\t else\n\t { low = mid + 1;\n\t }\n }\n return low;\n }", "title": "" }, { "docid": "96dff6759f3a8c22a0dd241f1f48bc1e", "score": "0.59058326", "text": "String find(int key);", "title": "" }, { "docid": "fcf44e6e3a39cafbb2515282e66c74b6", "score": "0.5898658", "text": "public V lookUp(K key) {\r\n\t\tNode<K,V> node = hashmap.find(key);\r\n\t\tif (node != null){\r\n\t\t\t++hits;\r\n\t\t\tlist.moveToHead(node);\r\n\t\t\treturn node.value;\r\n\t\t}\r\n\t\t++misses;\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "278ce55b6ed0099b385359177e816b80", "score": "0.5898285", "text": "public Object minKey() throws EmptyContainerException;", "title": "" }, { "docid": "60d85c0e8400882ae62e57bcaa60cd39", "score": "0.5892149", "text": "public int get(int key) {\n ListNode head = bucket.get(key % 1000);\n ListNode cur = head.next;\n while (cur != null) {\n if (cur.key == key) {\n return cur.value;\n }\n cur = cur.next;\n }\n return -1;\n }", "title": "" }, { "docid": "6702745f4e89db0ddcc543649e16742f", "score": "0.58830684", "text": "public T extractMin(){\n Node node = extractMinNode();\n return node.key;\n }", "title": "" }, { "docid": "a771f8503676272ef49a17407c4525f1", "score": "0.58823586", "text": "public int getMin() {\n\t\treturn key;\n\t}", "title": "" }, { "docid": "b52087d9671ace48d38cfe4a487f6640", "score": "0.5870157", "text": "final IntHashMap.Entry lookupEntry(int par1)\n {\n int var2 = computeHash(par1);\n\n for (IntHashMap.Entry var3 = this.slots[getSlotIndex(var2, this.slots.length)]; var3 != null; var3 = var3.nextEntry)\n {\n if (var3.hashEntry == par1)\n {\n return var3;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "4e00dfe30e11d743c31c94aaad4e377a", "score": "0.5862773", "text": "int hashIndex(String key) {\n\t\tint code = hashCode(key);\n\t\treturn (Math.abs(691 * code + 149) % 64231) % capacity;\n\t}", "title": "" }, { "docid": "12b74a0ee2b218a0b47e6a75a0ac3773", "score": "0.5851319", "text": "public T getFirstKey() {\r\n return getKey(0);\r\n }", "title": "" }, { "docid": "c2f8bb48de6ffdbdb6f773d0239ddb27", "score": "0.58477026", "text": "public int get(int key){\n \n int result = -1; // if doesn't exist return -1\n \n if(map.containsKey(key)){\n \n Node node = map.get(key); // get the node and read the value\n result = node.val;\n \n // update the linked list, remove the node and insert at front - recently used \n remove(node);\n add(node); \n } \n return result; \n }", "title": "" }, { "docid": "d243fdc054b042fec913264ef4e19bcb", "score": "0.58381516", "text": "@Override\n\t\t\tpublic Integer getKey() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "110b7fc1cd131997092ed04b3404081c", "score": "0.5833214", "text": "K getFirstLeafKey() {\r\n\t\t\t\r\n\t\t\t// return key located at the first index of keys list of the node\r\n\t\t\treturn keys.get(0);\r\n\t\t}", "title": "" }, { "docid": "3ead853a2ed17597383d2ee8c47422f3", "score": "0.58307827", "text": "public Comparable getSeriesKey(int series) {\n // defer argument checking\n return getSeries(series).getKey();\n }", "title": "" }, { "docid": "4f31084172f022b202c484f4bf782d50", "score": "0.58121824", "text": "public K getKey() { return k; }", "title": "" }, { "docid": "c8586086c86d695eb3f14b1745eb64ac", "score": "0.5796759", "text": "public K firstKey()\r\n {\r\n if(keys.isEmpty())\r\n return null;\r\n\r\n return keys.firstElement();\r\n }", "title": "" }, { "docid": "4c2e3cec5d4afe442b592cbc13203226", "score": "0.5790229", "text": "Vertex findMinVertex(HashMap<Vertex, Integer> VC,ArrayList<Vertex> UV)\n { \n int cost;\n int j=0;\n //Vertex minVertex = null;\n int minCost = Integer.MAX_VALUE;\n for(int i=0;i<UV.size();i++)\n {\n Vertex key = UV.get(i);\n cost = VC.get(key);\n if(cost < minCost) \n {\n j = i;\n minCost=cost;\n }\n }\n return UV.get(j); \n }", "title": "" }, { "docid": "17a47fd325cd70daf50f23392dcba3e5", "score": "0.5787456", "text": "Node find(HashMap<Node, Node> hm, Node key) {\n Node temp = key;\n if (hm.get(key) == (key)) {\n return temp;\n } else {\n temp = hm.get(key);\n return this.find(hm, temp);\n }\n }", "title": "" }, { "docid": "49289e5b7cfbaf08f61b61b47ea931a8", "score": "0.5782219", "text": "public Integer get(Integer key) {\n if (isEmpty()) return null;\n long currentTime = System.nanoTime();\n int keyHashCode = hashCode(key);\n int index = modN(keyHashCode);\n ArrayList<Entry> entries = table[index];\n for (int i = 0; i < entries.size(); i++) {\n Entry entry = entries.get(i);\n if (entry.getKey().equals(key)) {\n printlnTime(\"Get\", currentTime, System.nanoTime());\n return entry.getValue();\n }\n }\n printlnTime(\"Get\", currentTime, System.nanoTime());\n return null;\n }", "title": "" }, { "docid": "810a9bb7f385a3fa7ee795f35619594b", "score": "0.5772647", "text": "private static int maxKey(HashMap<Integer, boolean[]> map) {\r\n\t\t// initialize max to lowest value\r\n\t\tint max = Integer.MIN_VALUE;\r\n\t\t// loop over all keys, updating max once new max found\r\n\t\tfor (Integer key : map.keySet()) if (key > max) max = key;\r\n\t\t\r\n\t\treturn max;\r\n\t}", "title": "" }, { "docid": "c3331181513ff3632a161fe904e56bca", "score": "0.57670623", "text": "public String getValue(String key)\n {\n int index = key.hashCode();\n int hashindex = index%400;\n LinkedList<Entry> mylist = array[Math.abs(hashindex)];\n for (Entry e: mylist)\n {\n if (e.key.equals(key))\n {\n System.out.println(e.value);\n return e.value;\n }\n else{\n System.out.println(\"Sorry, key not found\");\n }\n\n \n }\n return null;\n }", "title": "" } ]
6470a46cb8daf30cc9ea06d2f442c03f
/ access modifiers changed from: packageprivate
[ { "docid": "8b55ee528163fa22f8b17f572521340c", "score": "0.0", "text": "public p a(SSLSocket sSLSocket) throws IOException {\n p pVar;\n int i = this.f14252b;\n int size = this.f14251a.size();\n while (true) {\n if (i >= size) {\n pVar = null;\n break;\n }\n pVar = this.f14251a.get(i);\n if (pVar.c(sSLSocket)) {\n this.f14252b = i + 1;\n break;\n }\n i++;\n }\n if (pVar != null) {\n this.f14253c = c(sSLSocket);\n e.m0.c.f14102a.c(pVar, sSLSocket, this.f14254d);\n return pVar;\n }\n throw new UnknownServiceException(\"Unable to find acceptable protocols. isFallback=\" + this.f14254d + \", modes=\" + this.f14251a + \", supported protocols=\" + Arrays.toString(sSLSocket.getEnabledProtocols()));\n }", "title": "" } ]
[ { "docid": "663ac6f718361fb243bf093a1c7ded6a", "score": "0.68463755", "text": "@Override\r\n\tprotected void Goukakyuu() {\n\t\t\r\n\t}", "title": "" }, { "docid": "06012d51723afddd7b9003b92d7d49c3", "score": "0.67454535", "text": "protected void mo1734a() {\n }", "title": "" }, { "docid": "c8ceec30e6f3ebd2fb8cab39b477d3f3", "score": "0.6540419", "text": "private static void sapxep() {\n\t\t\n\t}", "title": "" }, { "docid": "96f76ce32f9f1a36a486d23b0b909629", "score": "0.65163475", "text": "private TypicalInternship() {}", "title": "" }, { "docid": "8b441272a03721c2860108e9f3d1e194", "score": "0.6419976", "text": "private Py() { ; }", "title": "" }, { "docid": "f13363e9a1929d31760bbc053283bd62", "score": "0.6408403", "text": "private Helpers(){}", "title": "" }, { "docid": "234002381dc53604cef252b133e2c2a9", "score": "0.6290076", "text": "public void mo75313ak() {\n }", "title": "" }, { "docid": "eda73c79e75a46b862b2fbe3c0b0ca3f", "score": "0.6275153", "text": "public final void mo90853y() {\n }", "title": "" }, { "docid": "18d768f6f48ac88822b7bb8bccfac09e", "score": "0.6226617", "text": "public void mo18903b() {\n }", "title": "" }, { "docid": "2eedd56ce1c57b0b0eaa4217c0832adb", "score": "0.6194099", "text": "private MCS() {\r\n }", "title": "" }, { "docid": "0863a750cd5626474f9b026af59d13ca", "score": "0.6191304", "text": "private Util() {\n // UNIMPLEMENTED\n }", "title": "" }, { "docid": "4e5a86fbdff82aab8caa9a67054955cf", "score": "0.61830443", "text": "private Utilities()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "ccaf5f7aff0d6de105f523c68f63383c", "score": "0.6154448", "text": "private void cathc() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7acc443d590e078093f9502900bc7c40", "score": "0.6114483", "text": "private UtilesDAM() {\r\n }", "title": "" }, { "docid": "8ac2c16a1254157c46ed1cdb437fe4f0", "score": "0.6101998", "text": "@Override\r\n\t\tpublic void ustSoyut2() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "303faae25c0a66f3f32eaf157ff6b886", "score": "0.60980254", "text": "private intercomunicador () {}", "title": "" }, { "docid": "fdcc0ed7f5625719b723a32b6298b05c", "score": "0.6088998", "text": "private Method() {}", "title": "" }, { "docid": "9d157bbc31d13c447da24e911e884a5a", "score": "0.6087764", "text": "public void method_3954() {}", "title": "" }, { "docid": "ff62ca11a685566e9d23d4ee56982ec7", "score": "0.6079201", "text": "public final void mo18257a() {\n }", "title": "" }, { "docid": "5c9ed71627712ebb51085d74f56d1e59", "score": "0.60780835", "text": "public abstract void mo17715d();", "title": "" }, { "docid": "ea9d2b8c33f6b59caca46aa623d553c7", "score": "0.60747665", "text": "private Utilities() {\r\n\t}", "title": "" }, { "docid": "d193558f6562b9d2ca7df7cde14fe1cd", "score": "0.60639435", "text": "public static void use(){\n\t}", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.60552615", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "5deab5d04a7e7c19ce2d7c3a2400118d", "score": "0.60472435", "text": "private static void comer() {\n\t\r\n}", "title": "" }, { "docid": "097c4c29479efe0ca3f81a7fc01804e6", "score": "0.6037204", "text": "public abstract void mo17711c();", "title": "" }, { "docid": "11007d8abb04d478953f95ced8bf91f6", "score": "0.6033199", "text": "private DatastageExplorerUtilities() {\r\n\r\n\t}", "title": "" }, { "docid": "32ae09c3efbfdc5a0a517add52e71d90", "score": "0.6020051", "text": "private ScimGroupUtils()\n\t{\n\t}", "title": "" }, { "docid": "a0fb1b7eb35ce3f0bc9779dabd4aeb26", "score": "0.60111225", "text": "private BaseUtils() {}", "title": "" }, { "docid": "d9e393824e607c1e72ec0fda9a44ea1a", "score": "0.6009346", "text": "public abstract void mo24401PO();", "title": "" }, { "docid": "27b3e2daf8a86735f0b0d6e497f368f6", "score": "0.6008531", "text": "protected void dI() {}", "title": "" }, { "docid": "f4d36e2a6aa4d9dff86d3a75440dc57d", "score": "0.6001482", "text": "private Library()\n \t{\n \t}", "title": "" }, { "docid": "57fad36f1e9515178fdc8e8afc8cc63c", "score": "0.59660596", "text": "protected boolean method_2502() {\r\n return true;\r\n }", "title": "" }, { "docid": "6bbc7abb32892722b68179a2ccfb8089", "score": "0.59646857", "text": "private Util(){}", "title": "" }, { "docid": "dcf43281b42dade7a27fa4ff37194797", "score": "0.59630775", "text": "abstract Object mo7152a();", "title": "" }, { "docid": "306731e44ff25ffc1a2472006da73469", "score": "0.5960818", "text": "private FileTools() {\n\t\t// empty\n\t}", "title": "" }, { "docid": "bad84a09ad2709652c346419dbaba6b1", "score": "0.5958605", "text": "private BufferUtils() {\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.5957455", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "8d91d5022162f1fc844eeb9a86fb6183", "score": "0.59544903", "text": "private Utils() {\r\n\t}", "title": "" }, { "docid": "1dadc4f4b2753641fd8c0d1a11c96778", "score": "0.5930027", "text": "protected boolean method_4225() {\r\n return true;\r\n }", "title": "" }, { "docid": "05376175828876d05086b6c82df71fe4", "score": "0.59255004", "text": "private Utils() {\n\t}", "title": "" }, { "docid": "58aea8aff4deec3a5b4f4e042a44dcd6", "score": "0.5924882", "text": "public abstract void mo34637b();", "title": "" }, { "docid": "9e1204c91d610b0a2540a76e9ce5f5e9", "score": "0.59195954", "text": "public abstract void mo2715a();", "title": "" }, { "docid": "e8237a1e0f9a5ed3f70921365e9ef38f", "score": "0.59191966", "text": "private Algo() {}", "title": "" }, { "docid": "0e87d402221278c3889063822e567959", "score": "0.5913337", "text": "protected void sift() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d973b2d53a354883c93de78b15af0390", "score": "0.59119993", "text": "public abstract void mo17721j();", "title": "" }, { "docid": "1f132b378a8f0f47aff132d3ba239384", "score": "0.5896298", "text": "public void mo20945a() {\n }", "title": "" }, { "docid": "c6c4a5c438c6ad62e9e50cc0b3e896b8", "score": "0.589451", "text": "public void mo75312aj() {\n }", "title": "" }, { "docid": "b34cc48bcf490b840f9d5474c40ed7d7", "score": "0.58887696", "text": "protected void mo3990h() {\n }", "title": "" }, { "docid": "de9d820aa7022de3f155611decfc4bef", "score": "0.58774024", "text": "public void mo9848a() {\n }", "title": "" }, { "docid": "9ec50cb552e571959a7c57afb0833404", "score": "0.5875686", "text": "private AFTPreferences() {\n\t}", "title": "" }, { "docid": "9043a67502793c2d936264c3ade8b78d", "score": "0.5864273", "text": "@Override // com.igexin.p012b.p013a.p020d.AbstractC0470d\n /* renamed from: e */\n public void mo4127e() {\n }", "title": "" }, { "docid": "37742ab6265361ee157349bc061a43ec", "score": "0.58565354", "text": "private ItsystemPackage() {}", "title": "" }, { "docid": "d8e12bb09500eca9977b7b3dc7e41b64", "score": "0.58482534", "text": "public abstract void mo11308a();", "title": "" }, { "docid": "d90dfffa090f6a53a3dd0832bb1738a3", "score": "0.5840471", "text": "public void mo1375b() {\n }", "title": "" }, { "docid": "7058f8754c5e651b2f4be5a656e9d1c6", "score": "0.5835098", "text": "public abstract String mo17893d();", "title": "" }, { "docid": "66a51b421e039583dcdfb5746f431213", "score": "0.5828267", "text": "public final void mo58895a() {\n }", "title": "" }, { "docid": "9cda3e05bf6a2ebedc477c13c2559d24", "score": "0.5825336", "text": "private Estrutura_BBDD() {}", "title": "" }, { "docid": "72965061656f6e9004101dfecbf046a4", "score": "0.58234495", "text": "@Override\n\tprotected void thinkSit()\n\t{\n\t}", "title": "" }, { "docid": "8e7d2f36204e3a0c1a3bd26fdfedee16", "score": "0.5820531", "text": "private D1Q4() {\r\n\t\t// Empty by design.\r\n\t}", "title": "" }, { "docid": "094ba25afc2c8b8aa67ce293ee23a0d0", "score": "0.5819621", "text": "private PreInstantiation() {\n\t}", "title": "" }, { "docid": "19006c0661c5e3b653400b5da2beb934", "score": "0.5817183", "text": "@Override\n\tpublic void pintar() {\n\t\t\n\t}", "title": "" }, { "docid": "19006c0661c5e3b653400b5da2beb934", "score": "0.5817183", "text": "@Override\n\tpublic void pintar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c443c6db6f905c0da750f4362b454e2", "score": "0.5816484", "text": "private Positions() {\r\n\t\t/* Only static methods */\r\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.5810979", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "87b8e80271da332966c155096cf954be", "score": "0.5810562", "text": "public void mo130764b() {\n }", "title": "" }, { "docid": "76d062cb5a1d953629e78f0c8af2ad08", "score": "0.5808597", "text": "public void mo1577c() {\n }", "title": "" }, { "docid": "8d1a4ac6187732f265d0b9f95882879a", "score": "0.58073604", "text": "public abstract void mo1328b();", "title": "" }, { "docid": "751503a404730f8c23f7d329fab6a646", "score": "0.5805356", "text": "private ZipUtils() {\n\t\t// Nothing to do\n\t}", "title": "" }, { "docid": "8bea33e307864d319939b17cbd728a52", "score": "0.5804987", "text": "public void mo10281a() {\n }", "title": "" }, { "docid": "3615e94c0b30e4f0f22b414fc0a41360", "score": "0.5804924", "text": "private Utils(){}", "title": "" }, { "docid": "46904566664c565affdc397dc0efb2ad", "score": "0.580453", "text": "protected KhanAccess() {}", "title": "" }, { "docid": "4c743a5e5106c55466224d75f817448a", "score": "0.58013904", "text": "@Override\r\n\t\tpublic void ustSoyut() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "ec82531d88262c9a11254c544824d5bb", "score": "0.57993746", "text": "private Util() {\r\n\r\n }", "title": "" }, { "docid": "ca31bd80652c1306d885f38ff091ee93", "score": "0.5784582", "text": "public void m159a() {\n }", "title": "" }, { "docid": "378c0fbb777143b9373fb08e906f01c5", "score": "0.57840997", "text": "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:27.733 -0500\", hash_original_method = \"778044715AD29D56156139197CF7ACD4\", hash_generated_method = \"C09CD20B792D56A44D7CCF0AC590A5B0\")\n \n private int init(){\n \treturn getTaintInt();\n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5783822", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.57820207", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "6ca8f1b9105bd821c50aefc78718726c", "score": "0.5780105", "text": "private Apiary() {\r\n\r\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.57799304", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7d08601112b4bf9fd71738c201e1c19c", "score": "0.57724506", "text": "private ImportUtils() {}", "title": "" }, { "docid": "effb472af6d9cd127f438eb5fe15aa9b", "score": "0.5772076", "text": "private FlowsUtil() {\n\t}", "title": "" }, { "docid": "e41e83e59c632c7e6180786a0238f944", "score": "0.5766958", "text": "@Override\r\n\tpublic void cry() {\n\t\t\r\n\t}", "title": "" }, { "docid": "931cdea003bcf3a03cc84b6b819bcef2", "score": "0.57668614", "text": "public final void fixAccess()\n/* */ {\n/* 64 */ ClassUtil.checkAndFixAccess(getMember());\n/* */ }", "title": "" }, { "docid": "7c69f7e4c196be3cb8f93cd5a0fc2f23", "score": "0.576686", "text": "public abstract C3007by mo38187a();", "title": "" }, { "docid": "97eddbca381e7b6c370bb7312e33b01d", "score": "0.57655215", "text": "private MoreMission() {\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.5760899", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "8bfa616dcc2b9e3e34eb29eda84e839f", "score": "0.57600904", "text": "private Code() {}", "title": "" }, { "docid": "2dba4ee6ed524e88abef1361bebe0821", "score": "0.5755155", "text": "@Override\n protected void grab() {\n \n }", "title": "" }, { "docid": "d04504187907e1d84ed24fc616f45486", "score": "0.5754442", "text": "@Override\r\n\tpublic void inteface() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1010f244e972c0ea26ed77a119296c6c", "score": "0.57527", "text": "@Override\r\n\tprotected void Mokuton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b91270b8a1ad35001f02d382240de05", "score": "0.5750068", "text": "public abstract void mo56512a();", "title": "" }, { "docid": "538ed6c4cfbe3a2a77951837e49b93ed", "score": "0.5739933", "text": "private Util () {\n }", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5736055", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.57334095", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.57334095", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "83f62978cddceb8cb6bcbb13fa618709", "score": "0.5732689", "text": "private Main() {\n\t}", "title": "" }, { "docid": "f2cddc42a1bc084aeead65f494120751", "score": "0.5731839", "text": "private UANProtocol() {\n\t}", "title": "" }, { "docid": "12cb886ceb5e3e8b5a540a316317c996", "score": "0.57289916", "text": "private void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1e56eb875969a40be9b73939843db26f", "score": "0.57232434", "text": "public void starteWuerfelaktion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.5718104", "text": "protected void init() {}", "title": "" }, { "docid": "f6cafb25001a8a4d259d6eec982d0534", "score": "0.5716833", "text": "private ShortCutUtil() {\n throw new Error(\"Do not need instantiate!\");\n }", "title": "" } ]
9a2f7015e1b7703fe9da501b130f3ae3
Create an image file name
[ { "docid": "4cde3d2ec509f0c01e561994653c3566", "score": "0.6236043", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = reactContext.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" } ]
[ { "docid": "ab8fa420769cbdc3ec2086426c72d3d4", "score": "0.83975273", "text": "String createImageFile() throws IOException;", "title": "" }, { "docid": "61d3a979edbc6e4d79f01ae6354c0cbd", "score": "0.7635683", "text": "private String createImagePath() {\n String timeStamp = new SimpleDateFormat(\"yyyy_MM_dd_hh_mm_a\", Locale.US).format(System.currentTimeMillis());\n return \"JPEG_\" + timeStamp + \"_\";\n }", "title": "" }, { "docid": "b0962f950901a5e6ab10063dbf7e188d", "score": "0.7362055", "text": "private String createImageFile() throws IOException {\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n\t\tString imageFileName = \"JPEG_\" + timeStamp + \"_\";\n\t\tFile storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n\t\tFile image = File.createTempFile(\n\t\t\t\timageFileName, /* prefix */\n\t\t\t\t\".jpg\", /* suffix */\n\t\t\t\tstorageDir /* directory */\n\t\t);\n\n\t\t// Save a file: path for use with ACTION_VIEW intents\n\t\treturn image.getAbsolutePath();\n\t}", "title": "" }, { "docid": "c48d42a9b78ea9e46f4fa40b25485949", "score": "0.7322829", "text": "public static File createImageFile() throws IOException {\r\n // Create a new image file name\r\n String timeStamp = new SimpleDateFormat(C.DATE_FORMAT, Locale.getDefault()).format(new Date());\r\n String imageFileName = C.JPEG + C.UNDER_SCORE + timeStamp + C.UNDER_SCORE;\r\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\r\n return File.createTempFile(\r\n imageFileName, /* prefix */\r\n C.DOT_JPG, /* suffix */\r\n storageDir /* directory */);\r\n }", "title": "" }, { "docid": "df8a983f84aeafe0fb6125f43d73fec8", "score": "0.72559917", "text": "void createImageFileFromPath(String imagePath);", "title": "" }, { "docid": "2f2fe7fb7b3f94662e463427ce41717d", "score": "0.717392", "text": "private File createImageFile() throws IOException {\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n\t\tString imageFileName = \"IMG_\" + timeStamp + \"_\";\n\t\tFile albumF = getAlbumDir();\n\t\tFile imageF = File.createTempFile(imageFileName, \".jpg\", albumF);\n\t\treturn imageF;\n\t}", "title": "" }, { "docid": "3a9e2af4ed08c4cc134a7ecdd0d88f4d", "score": "0.7133944", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileNamex = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileNamex, JPEG_FILE_SUFFIX, albumF);\n imageFileName=imageF.toString().substring(imageF.toString().lastIndexOf(\"/\")+1);\n return imageF;\n }", "title": "" }, { "docid": "2d78d4f743129005cec7913452d54138", "score": "0.6911284", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = JPEG_FILE_PREFIX + timeStamp + \"_\";\n File albumF = getAlbumDir();\n File imageF = File.createTempFile(imageFileName, JPEG_FILE_SUFFIX, albumF);\n return imageF;\n }", "title": "" }, { "docid": "d443ffd6c99322bc4a1fb32faadaa876", "score": "0.6793919", "text": "private File createImageFile() throws IOException {\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n\t String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n\t File storageDir = Environment.getExternalStorageDirectory();\n\t image = File.createTempFile(\n\t imageFileName, /* prefix */\n\t \".jpg\", /* suffix */\n\t storageDir /* directory */\n\t );\n\t return image;\n\t}", "title": "" }, { "docid": "97e9904e02eb00fbb76928235e17ca42", "score": "0.67168033", "text": "static File createImageFile() throws IOException {\n // uses timestamp to generate a unique filename everytime a file is created\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"IMAGE_\" + timeStamp + \"_\";\n\n // sets the image directory to be saved at\n File storageDirectory =\n Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n\n // create the actual file in the directory and records the image path\n return File.createTempFile(imageFileName, \".jpg\", storageDirectory);\n }", "title": "" }, { "docid": "c875c32586a79912d2a4979677a9b1a3", "score": "0.66964513", "text": "public File createImageFile()throws IOException{\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n //Guardamos el path\n path = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "4f05488a9a628552bf8fccf38a878957", "score": "0.66943395", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }", "title": "" }, { "docid": "ea6436a80dc283fa48c0ae9826046526", "score": "0.66753584", "text": "private static File createImageFile(File storageDir) throws IOException {\n @SuppressLint(\"SimpleDateFormat\") String timeStamp =\n new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "title": "" }, { "docid": "06b80fdbeae97deb002a968eacb1ecb5", "score": "0.6650005", "text": "public static String makeUniqueImagePath(String fileName){\r\n\t\tString newFileName = fileName;\r\n\t\ttry {\r\n\t\t\t//Verifying if the file already exists, if so append the numbers 1,2 so on to the fine name.\t\t\t\r\n\r\n\t\t\tFile myPngImage = new File(fileName+\".jpeg\");\t\t\t\r\n\t\t\tint counter=1;\r\n\t\t\twhile(myPngImage.exists())\r\n\t\t\t{\r\n\t\t\t\tnewFileName=fileName+\"_\"+counter;\r\n\t\t\t\tmyPngImage = new File(newFileName+\".jpeg\");\r\n\t\t\t\tcounter++;\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn newFileName;\r\n\t\t} \r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn newFileName;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "49cbdc701dafcd83a3faf39c51042e79", "score": "0.66277134", "text": "public String createFileName() throws IOException {\n\t\tFile file;\n\t\tString fileName;\n\t\tdo {\n\t\t\tfileName = \"\" + Math.random();\n\t\t\tfile = new File(path + fileName);\n\t\t} while(file.exists());\n\t\t\n\t\tfile.createNewFile();\n\t\t\n\t\treturn fileName;\n\t}", "title": "" }, { "docid": "fb61cf7b3682e4dfbc9d41dab16f86bb", "score": "0.6618069", "text": "private File createFile() throws IOException {\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n\t\tFile dir = new File(Environment.getExternalStorageDirectory() + File.separator + Constants.STORAGE_FOLDER);\n\t\tFile image = new File(dir, timeStamp+\".jpg\");\n\t\treturn image;\n\t}", "title": "" }, { "docid": "f58e1951309129a861fdfb63da881c59", "score": "0.659246", "text": "public synchronized String generateFilename(int level, int col, int row) {\n return level + \"-\" + row + \"-\" + col + \".jpg\";\n }", "title": "" }, { "docid": "da7c2fb0f8989fffa9f920bb590661e5", "score": "0.6592326", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"/JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n // If the direcotry does not exits create one\n if (!storageDir.exists()) {\n storageDir.mkdir();\n }\n File image = new File(storageDir + imageFileName + \".jpg\");\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "dd3744b10aa9a1a563507d17f95b783e", "score": "0.65913755", "text": "public static File createNewImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \".jpg\";\n\n\n File storageDir = new File(\n Environment.getExternalStorageDirectory()\n , App.getContext().getString(R.string.app_name)\n );\n\n\n if (!storageDir.exists()) {\n storageDir.mkdirs();\n }\n\n File newImageFile = new File(\n storageDir,\n imageFileName\n );\n\n newImageFile.createNewFile();\n\n return newImageFile;\n }", "title": "" }, { "docid": "16968dc7223301131248aa7704b78947", "score": "0.658181", "text": "private static String buildNewImageName(Context context) {\n String nameRetValue = \"VectorImage_\" + new SimpleDateFormat(\"yyyy-MM-dd_hhmmss\").format(new Date()) + \".jpg\";\n\n // save new name in preference\n PreferenceManager.getDefaultSharedPreferences(context)\n .edit()\n .putString(KEY_PREFERENCE_CAMERA_IMAGE_NAME, nameRetValue)\n .apply();\n\n return nameRetValue;\n }", "title": "" }, { "docid": "c08c2b1074b7949bb565e6a35a529a87", "score": "0.6567705", "text": "private File createImageFile() throws IOException {\n String timeStamp =\n new SimpleDateFormat(\"yyyyMMdd_HHmmss\",\n Locale.getDefault()).format(new Date());\n String imageFileName = \"IMG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n\n File image = File.createTempFile(imageFileName, \".jpg\", storageDir);\n\n imageFilePath = image.getAbsolutePath();\n imageUri = Uri.fromFile(image);\n\n return image;\n }", "title": "" }, { "docid": "d8967664842da1fabe28a47c61f3f5db", "score": "0.6561342", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n String mFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File mFile = File.createTempFile(mFileName, \".jpg\", storageDir);\n return mFile;\n }", "title": "" }, { "docid": "feecd86536916e6f44a617b80f4e6937", "score": "0.6550436", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFilename = \"photo_\" + timeStamp + \".jpg\";\n\n // Create the file in the Pictures directory on external storage\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = new File(storageDir, imageFilename);\n return image;\n }", "title": "" }, { "docid": "12ae2d6e0e8144b6122ae7f7e534053c", "score": "0.65500915", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.getDefault()).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File imageFile = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n cameraImageUri = Uri.fromFile(imageFile);\n return imageFile;\n }", "title": "" }, { "docid": "f7ef296a0d807e61353371048b106938", "score": "0.6543448", "text": "@Override\n\tpublic String generate_filename() {\n\t String filename;\n\t\tfilename = CreateFileName + file_date.format(new Date()) + \".\" + file_extension;\n\t\tLog.d(Tag, filename);\n\t\treturn filename;\n\t}", "title": "" }, { "docid": "365d4571a180e9e1f50e65d0b2352669", "score": "0.6537203", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n callerImage = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "c60023be9ad14690ac3c63e822006534", "score": "0.65268254", "text": "private static String getImageName(int index) {\n\t\treturn \"capture_image_\" + index + \".jpg\";\r\n\t}", "title": "" }, { "docid": "718d6af0db55f7bbf26ac474b06896ae", "score": "0.65239674", "text": "protected File createImageFile() throws IOException {\r\n String timeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date());\r\n String imageName = \"IMAGE_\" + timeStamp + \"_\";\r\n File storageDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(imageName, \".jpg\", storageDirectory);\r\n imageFileLocation = image.getAbsolutePath();\r\n return image;\r\n }", "title": "" }, { "docid": "2276a77ee28b23a9912c0a05c5b7cf56", "score": "0.6492667", "text": "public FileModel createImageFile() {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.US).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_FileSpace_\";\n File storageDir = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + Config.getLocalFolderName());\n FileModel.FileModelBuilder fileModelBuilder = new FileModel.FileModelBuilder();\n fileModelBuilder.name(imageFileName + \".jpg\");\n try {\n fileModelBuilder.file(File.createTempFile(imageFileName, \".jpg\", storageDir));\n } catch (IOException e) {\n Log.e(getClass().getName(), \"Exception\", e);\n }\n return fileModelBuilder.build();\n }", "title": "" }, { "docid": "dbfa2558602e01070a4e74df15595d16", "score": "0.64922935", "text": "private File createImageFile() throws IOException{\n @SuppressLint(\"SimpleDateFormat\")\n String imageFileName = new SimpleDateFormat(\"yyyyMMddd_HHmmss\").format(new Date());\n File storageDir = getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n return File.createTempFile(\n imageFileName,\n \".jpg\",\n storageDir);\n }", "title": "" }, { "docid": "ad1d5f6b61eea61d71f3914e57b95dfe", "score": "0.6489706", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"photo_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n return image;\n }", "title": "" }, { "docid": "fba2eab79e5308b658fdf052fc87caea", "score": "0.6489637", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "c00a1415d361fb0d486132b64ed07d54", "score": "0.6488887", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n String mFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File mFile = File.createTempFile(mFileName, \".jpg\", storageDir);\n\n imageFilePath = mFile;\n return mFile;\n }", "title": "" }, { "docid": "466021fcb6b636fbb89c409cc16e5d04", "score": "0.6473501", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n storageDir.mkdirs();\n\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "c0f34bf7e96371015c442bf69ebd01d1", "score": "0.6464733", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n bmpFileName = Uri.fromFile(image);\n galleryAddPic();\n\n return image;\n }", "title": "" }, { "docid": "4f2c767d81e50aa87c29e399c492e487", "score": "0.6455413", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n capturedImagePath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "283b730073b5d63649c5faf1bb12db2b", "score": "0.6424694", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"IMG_\" + timeStamp;\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentMediaPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "ed121ceaea4c469eee45c40ae96788e0", "score": "0.6413514", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, // prefix\n \".jpg\", // suffix\n storageDir // directory\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "ed121ceaea4c469eee45c40ae96788e0", "score": "0.6413514", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, // prefix\n \".jpg\", // suffix\n storageDir // directory\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "032274ef1191bf840ab9c2f3e7c6a979", "score": "0.641246", "text": "void buildImage(File image, String tag);", "title": "" }, { "docid": "959eed70b165a850a6b709fb926fec0c", "score": "0.6385985", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "959eed70b165a850a6b709fb926fec0c", "score": "0.6385985", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "fae5660483b479afc382a8688d84796c", "score": "0.638409", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.FROYO) {\n storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n }\n File image = File.createTempFile(\n imageFileName, // prefix\n \".jpg\", // suffix\n storageDir // directory\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "4c58aa2159cbf6974a1582917b1dcd71", "score": "0.63824105", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"BodyMeasureImage_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "3099c9b7f3f716737db4ff66240d38a6", "score": "0.6376779", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n String currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "d14504373ffb43d8a777abef45846de1", "score": "0.63741624", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "5285da88372a5238944e6dec47ce60eb", "score": "0.63684314", "text": "public static String createFileName(String code_magasin,\n\t\t\tString code_client, String no_livraison_client, String d)\n\t\t\tthrows ParseException {\n\t\td = d.trim();\n\t\tString y = d.substring(0, 4);\n\t\tString m = d.substring(5, 7);\n\t\tString dt = d.substring(8, 10);\n\t\tString h = d.substring(d.indexOf(' ') + 1, d.indexOf(':'));\n\t\tString mint = d.substring(d.indexOf(':') + 1, d.indexOf(':') + 3);\n\t\td = y + m + dt + h + mint;\n\t\tString fileName = \"\";\n\t\tfileName = code_magasin + code_client + no_livraison_client + d\n\t\t\t\t+ \".jpg\";\n\t\treturn directory + fileName;\n\t}", "title": "" }, { "docid": "aace92cfec5ed0bdc853f6eef7137f3d", "score": "0.63672185", "text": "private File createImageFile() throws IOException\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, // prefix\n \".jpg\", // suffix\n storageDir // directory\n );\n\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "420c56aa08b00247da5abd5bafb3cca6", "score": "0.63580936", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n imageFile = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = imageFile.getAbsolutePath();\n return imageFile;\n }", "title": "" }, { "docid": "aa7b19098f2c57e285100d6549760000", "score": "0.6356221", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "94dc96fb108793fffb6f96e71156e41f", "score": "0.6345689", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.US).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = context.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "ffef0599bb871ab8686a24b45fcf1a6f", "score": "0.6343835", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String filename = \"JPEG_\" + timeStamp + \".jpg\";\n String root = Environment.getExternalStorageDirectory().toString();\n File myDir = new File(root + \"/saved_files\");\n myDir.mkdirs();\n File image = new File(myDir, filename);\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "03db75ff46ce417e77c7438683ccb402", "score": "0.63329977", "text": "private File createImageFile() throws IOException {\n currentPhotoPath = \"\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n tienda_id+\"-\"+cred.getData(\"image_type\")+\"_\", /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "e0246bd6272b470bf9ec192be84b5554", "score": "0.6331351", "text": "private File createImageFile() throws IOException {\n @SuppressLint(\"SimpleDateFormat\") String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n photoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "6093475539e459a6d3ff75fcaba43077", "score": "0.6329631", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "6093475539e459a6d3ff75fcaba43077", "score": "0.6329631", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "babf3ea902f26441327e104199965944", "score": "0.63276523", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n// File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "63f466cfdc6a7a573ee29238282cc72d", "score": "0.6321501", "text": "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.ENGLISH).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "dd95c084b4d0bffa3342111064553c35", "score": "0.63134223", "text": "protected abstract String fileNameFactory();", "title": "" }, { "docid": "b233636bed3931540be5391ee543d907", "score": "0.6310056", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);\n\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "3b7a34156ccd7a2df8fc6deaf03f07d6", "score": "0.63072324", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName,\n \".jpg\",\n storageDir\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "178cbf53bc14551bc245959f664ca453", "score": "0.6306795", "text": "public static File createImageFile(File storageDir) throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\", Locale.GERMANY).format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n return File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }", "title": "" }, { "docid": "194bf41d5b2f52c3a936b8162e736b22", "score": "0.6304024", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n\n\n\n }", "title": "" }, { "docid": "da28dd1d292dc82b57d45c20c7282af9", "score": "0.6301614", "text": "private String toImageFile(int depth, int xIndex, int yIndex) {\n checkDepthInBound(depth);\n if (xIndex >= Math.pow(2, depth) || yIndex > Math.pow(2, depth)\n || xIndex < 0 || yIndex < 0) {\n throw new IndexOutOfBoundsException(\"The indexes of images are out of bound.\");\n }\n String fileName = \"\";\n fileName = fileName + \"d\" + depth + \"_x\" + xIndex + \"_y\" + yIndex + \".png\";\n return fileName;\n }", "title": "" }, { "docid": "dced17fb430ab7742eda68330e208f82", "score": "0.62956256", "text": "private File createImageFile() throws IOException {\n // Create an image file name\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "3c409d36a2d23cf1942dd76a2d26a51b", "score": "0.6281592", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "36ec193e5132df3a88e9f73328f3b15f", "score": "0.6280578", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n\n // Save a file: path for use with ACTION_VIEW intents\n PhotoPath = image.getAbsolutePath();\n Log.i(\"THIS_IS_TAG\", String.valueOf(image));\n\n return image;\n }", "title": "" }, { "docid": "dce87c73d165865ce792048732d90e58", "score": "0.6275436", "text": "private File createImageFile() throws IOException {\n\t\t\t// Create an image file name\n\t\t\tToast.makeText(this, \"createImageFile called!\", Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\n\t\t\tString timeStamp = SimpleDateFormat.getDateTimeInstance().format(\n\t\t\t\t\tnew Date());\n\t\t\tString imageFileName = \"JPEG_\" + timeStamp + \"_\";\n\t\t\tFile storageDir = Environment\n\t\t\t\t\t.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n\t\t\tFile image = File.createTempFile(imageFileName, /* prefix */\n\t\t\t\t\t\".jpg\", /* suffix */\n\t\t\t\t\tstorageDir /* directory */\n\t\t\t);\n\n\t\t\t// Save a file: path for use with ACTION_VIEW intents\n\t\t\tmCurrentPhotoPath = image.getAbsolutePath();\n\t\t\tToast.makeText(this, image.getAbsolutePath(), Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t\tToast.makeText(this, mCurrentPhotoPath + \" Cenas\", Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\n\t\t\treturn image;\n\t\t}", "title": "" }, { "docid": "f1c0d619a1188086d0f6a414394ce604", "score": "0.6269263", "text": "public static String createImage(File file) {\n //COntroll jestli file je image\n try {\n BufferedImage main = ImageIO.read(file);\n\n if (main != null) {\n double ver = main.getHeight() / 6.0;\n double hor = main.getWidth() / 6.0;\n int num = 0;\n for (int rad = 0; rad < 6; ++rad) { //radky\n for (int sloup = 0; sloup < 6; ++sloup) {\n if (rad < 5 || sloup < 2) {\n File subfile = new File(file.getParent() + \"/\" + num + \".\" + MIME);\n subfile.createNewFile();\n BufferedImage subimage = null;\n\n subimage = main.getSubimage((int) (sloup * hor), (int) (rad * ver), (int) hor, (int) ver);\n\n ImageIO.write(subimage, MIME, subfile);\n } else if (rad == 5) { //posledni radek\n if (sloup == 2) { //cover\n File subfile = new File(file.getParent() + \"/cover.\" + MIME);\n subfile.createNewFile();\n BufferedImage subimage = main.getSubimage((int) (sloup * hor), (int) (rad * ver), (int) hor, (int) ver);\n ImageIO.write(subimage, MIME, subfile);\n } else {//about\n File subfile = new File(file.getParent() + \"/about.\" + MIME);\n subfile.createNewFile();\n BufferedImage subimage = main.getSubimage((int) (4 * hor), (int) (5 * ver), (int) (2 * hor), (int) ver);\n ImageIO.write(subimage, MIME, subfile);\n break;\n }\n }\n ++num;\n }\n }\n }else{ //file is not jpeg\n \n return null;\n }\n } catch (IOException ioex) {\n System.err.println(ioex.toString());\n return null;\n }\n\n return file.getParent();\n }", "title": "" }, { "docid": "140d62a0ee8ca634fc367e7bf85dca3a", "score": "0.6264318", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n imagepath = image.getPath().replace(\"storage/emulated/0\",\"sdcard\");\n return image;\n }", "title": "" }, { "docid": "c08116617b7c4285fa8b7dae86e36741", "score": "0.62594765", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n mImageFileName = \"JPEG_\" + timeStamp;\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n mImageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "f9731296dc93a76a7b37a35e74cb0acc", "score": "0.62588686", "text": "java.lang.String getImgName();", "title": "" }, { "docid": "1c565f4ab57c564e36dae871c8e47b35", "score": "0.62567395", "text": "private String generateFileName(){\n String userID = getUserID();\n\n String fileName = userID + generatedNum+\".txt\";\n Log.e(\"To generate fileName\", fileName);\n\n return fileName;\n }", "title": "" }, { "docid": "9df726d3eee87453f7dc90b1927388d5", "score": "0.6251297", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "9df726d3eee87453f7dc90b1927388d5", "score": "0.6251297", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "9df726d3eee87453f7dc90b1927388d5", "score": "0.6251297", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "9df726d3eee87453f7dc90b1927388d5", "score": "0.6251297", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "a463eacf4bb2355f17f94b996d1eeb3b", "score": "0.62447596", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"Camera\");\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "291cd48a1c681731c240e5f4a6289744", "score": "0.6240174", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n //This is the directory in which the file will be created. This is the default location of Camera photos\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_DCIM), \"Camera\");\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for using again\n cameraFilePath = \"file://\" + image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "28ea1892104a9cade03c41c75ace0d0f", "score": "0.62399787", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyy-MM-dd_HHmmss\").format(new Date());\n String imageFileName = timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents.\n mCurrentPhotoPath = image.getAbsolutePath();\n\n Log.d(\"image capture\", \"IMAGE FILE: \" + mCurrentPhotoPath);\n\n return image;\n }", "title": "" }, { "docid": "9086b6276aed5404ac1f4f7129e731a6", "score": "0.62345123", "text": "private File createImageFile() throws IOException {\n @SuppressLint(\"SimpleDateFormat\")\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n ImageSessionManager.getInstance().createImageSession(mCurrentPhotoPath, false);\n return image;\n }", "title": "" }, { "docid": "1fe1e333a9786a32a73ba118afd11d93", "score": "0.6231316", "text": "default String generateFileName(String fileName) {\n\t\treturn UUID.randomUUID().toString() + \"_\" + fileName;\n\t}", "title": "" }, { "docid": "5255b172c661814f412873a4c770c175", "score": "0.6229814", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n //Log.d(\"mylog\", \"Path: \" + mCurrentPhotoPath);\n return image;\n }", "title": "" }, { "docid": "445644e0a8c693ebd2294c36f3cceefc", "score": "0.622213", "text": "private File createImageFile() throws IOException {\n\n File imageStorageDir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), \"DirectoryNameHere\");\n\n if (!imageStorageDir.exists()) {\n imageStorageDir.mkdirs();\n }\n\n // create an image file name\n imageStorageDir = new File(imageStorageDir + File.separator + \"IMG_\" + String.valueOf(System.currentTimeMillis()) + \".jpg\");\n return imageStorageDir;\n }", "title": "" }, { "docid": "2c9bc741a31d87175c5a9e4d0498d0c5", "score": "0.6207772", "text": "private String createFilePath()\n {\n String timeStamp = new SimpleDateFormat(\"MM-dd-yyyy_HHmmss\").format(Calendar.getInstance().getTime());\n\n m_audioRecording.setName(timeStamp);\n\n //the modified class name removes all characters that aren't valid file names\n String uniquePrefix = SingletonSelectedClass.getInstance().getSelectedClass().getId() + \"audio\";\n\n //the fileName has the format /uniquePrefix_12-16-17_141422.mp4\n String fileName = \"/\" + uniquePrefix + \"_\" + timeStamp + \".mp4\";\n\n return getFilesDir() + fileName;\n }", "title": "" }, { "docid": "629baba322684684faae462d977bbde7", "score": "0.6206573", "text": "@RequiresApi(api = Build.VERSION_CODES.N)\n private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "dc5880bbff479333ad68060d09639724", "score": "0.6203833", "text": "private File createImageFile() throws IOException {\r\n // Create an image file name\r\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\r\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(\r\n imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n\r\n // Save a file: path for use with ACTION_VIEW intents\r\n mCurrentPhotoPath = image.getAbsolutePath();\r\n return image;\r\n }", "title": "" }, { "docid": "3873966fec6b1b75231dcff9b35c8c4f", "score": "0.6198532", "text": "private void writeImageToFile( String fileName, BufferedImage img ) throws IOException {\n\t\t\n\t\tFile outputfile = new File( fileName );\n\t\t\n\t\tString extension = \"\";\n\t\tint i = fileName.lastIndexOf( '.' );\n\t\tif (i > 0) {\n\t\t extension = fileName.substring( i+1 );\n\t\t}\n\t\t\n\t ImageIO.write( img, extension, outputfile );\n\t \n\t}", "title": "" }, { "docid": "d16f8e62ef3e8598aa3cde03ca692f19", "score": "0.61965066", "text": "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"TEST_\" + timeStamp + \"_\";\n\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n Log.d(\"Env_DIR_PICTURES\",Environment.DIRECTORY_PICTURES);\n\n File imageFile = File.createTempFile(\n imageFileName,\n \".jpg\",\n storageDir\n );\n imageFilePath = imageFile.getAbsolutePath();\n Log.d(\"mCurrentPhotoPath2\", imageFilePath);\n return imageFile;\n }", "title": "" }, { "docid": "912b9f8b82066a80583f42e3a9640eb6", "score": "0.6190147", "text": "public static void create() {\n int a = 1;\n while (a < 9999) {\n try {\n File myObj = new File(FOLDER + \"IMG_\" + name(a) + ext[(int)(Math.random() * ext.length)]);\n myObj.createNewFile();\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n a += (int)(Math.random()*100+1);\n }\n }", "title": "" }, { "docid": "c02b0d2a9b4001149840ca1ca1e0d4c6", "score": "0.6177028", "text": "public File createImageFile() throws IOException{\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \".jpg\";\n File imageFile = null;\n File storageDir = new File(Environment.getExternalStorageDirectory() + \"/Pictures\", \"Sole_Drink\");\n if(!storageDir.exists())\n {\n Log.i(\"mCurrentPhotoPath1\", storageDir.toString());\n storageDir.mkdir();\n }\n imageFile = new File(storageDir, imageFileName);\n mCurrentPhotoPath = imageFile.getAbsolutePath();\n\n return imageFile;\n }", "title": "" }, { "docid": "2c6ddabf8ab67e6427e0512c52acd705", "score": "0.6172318", "text": "private File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhoto = image;\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\n Log.d(\"mylog\", \"Path: \" + mCurrentPhotoPath);\n return image;\n }", "title": "" }, { "docid": "7c689c94ae92d642c9d54328a4662a4f", "score": "0.61712635", "text": "protected String generateMetadataFileName(AmazingPicture picture) {\n return baseGenerateFileName(picture, \".txt\");\n }", "title": "" }, { "docid": "9853db30dda348d561a653bf3519a343", "score": "0.61559993", "text": "public File createImageFile()\n {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = this.activity.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = null;\n try {\n image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n }catch(IOException exception)\n {\n //why are you here?\n timeStamp.isEmpty();\n return null;\n }\n\n // Save a file: path for use with ACTION_VIEW intents\n this.lastPicturePath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "bd23c9ce4023009462678fbaaa576586", "score": "0.61507314", "text": "public String getFileName() {\n\t\treturn String.format(\"resources\\\\cardImages\\\\%s\\\\%s.png\", this.SUIT, this.RANK); // Return file name\r\n }", "title": "" }, { "docid": "a377bce09bcd1bb4dff983c8eb29b582", "score": "0.61486495", "text": "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "a377bce09bcd1bb4dff983c8eb29b582", "score": "0.61486495", "text": "public File createImageFile() throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\n File storageDir = getActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "826c18e0c9cb63cca65643363288da91", "score": "0.6141549", "text": "private File createImageFile() throws IOException {\n String sdf = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"JPEG_\" + sdf + \"_\";\n File storageDir = this.getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(imageFileName, /* prefix */\n \".jpg\", /* suffix */\n storageDir /* directory */\n );\n\n //File image = new File(Environment.getExternalStorageDirectory(), imageFileName);\n //return photo;\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentPhotoPath = image.getAbsolutePath();\n return image;\n }", "title": "" }, { "docid": "c452e49c2f1ecb432ea2fbaec8f3904a", "score": "0.612305", "text": "private File createImageFile() throws IOException {\n Log.i(TAG, \"Creating image file\");\r\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n String imageFileName = \"JPEG_\" + timeStamp + \"_\";\r\n imgFName = imageFileName;\r\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\r\n File image = File.createTempFile(\r\n imageFileName, /* prefix */\r\n \".jpg\", /* suffix */\r\n storageDir /* directory */\r\n );\r\n\r\n // Save a file: path for use with ACTION_VIEW intents\r\n mCurrentPhotoPath = \"file:\" + image.getAbsolutePath();\r\n //img = image;\r\n Log.i(TAG, \"Image created and returned\");\r\n return image;\r\n }", "title": "" }, { "docid": "d00d9709e0395e5a3dd8da7452d87ec9", "score": "0.610376", "text": "protected static String makeImageName(String op, ArrayList<Term> arg, int relationIndex) {\r\n StringBuffer name = new StringBuffer();\r\n name.append(Symbols.COMPOUND_TERM_OPENER);\r\n name.append(op);\r\n name.append(Symbols.ARGUMENT_SEPARATOR);\r\n name.append(arg.get(relationIndex).getName());\r\n for (int i = 0; i < arg.size(); i++) {\r\n name.append(Symbols.ARGUMENT_SEPARATOR);\r\n if (i == relationIndex)\r\n name.append(Symbols.IMAGE_PLACE_HOLDER);\r\n else\r\n name.append(arg.get(i).getName());\r\n }\r\n name.append(Symbols.COMPOUND_TERM_CLOSER);\r\n return name.toString();\r\n }", "title": "" } ]
9d963e45b19f35bad2822d060a5d5551
Hide the validation error message.
[ { "docid": "8907f77d30cdd0aa8ecae9d3169a3798", "score": "0.7260432", "text": "void hideErrorHint();", "title": "" } ]
[ { "docid": "0baea6b8505c491d3441606c93c32d03", "score": "0.7719657", "text": "public void hideErrorMessage()\n\t{\n\t\tm_tvErrorText.setVisibility(View.GONE);\n\t\tm_etText.setVisibility(View.VISIBLE);\n\t\t//m_etText.setText(\"\");\n\t\tm_etText.requestFocus();\n\t\tshowKeyboard(m_context, m_etText);\n\t}", "title": "" }, { "docid": "93b99df478b59a3be3e798111aae7115", "score": "0.71892005", "text": "public void hideError() {\n this.input.setBackground(Color.WHITE);\n }", "title": "" }, { "docid": "cd7c3af14ea740114b3cf6fedb118f2c", "score": "0.7087561", "text": "private void hideError() {\n mErrorTextView.setVisibility(View.GONE);\n mPreviewSurface.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "31e0a467f63a5d35c74d1d7350e25b63", "score": "0.7070218", "text": "@Override\n public void hideErrorMessage(View view) {\n TextView textView = (TextView) view.findViewById(R.id.tv_error_message);\n textView.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "4ae2166720245f4b5d3061cbe5bc6a9b", "score": "0.690455", "text": "public void showErrorMessage() {\n /* First hide currently visible data */\n mRecyclerView.setVisibility(View.INVISIBLE);\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "def6171ee0ccb19c5165011b8a4f4ab2", "score": "0.6859684", "text": "private void showErrorMessage() {\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "cc1912b69d8561785f7a160fa5b205d9", "score": "0.68078274", "text": "private void showErrorMessage() {\n mRecyclerView.setVisibility(View.GONE);\n mLoadingIndicator.setVisibility(View.GONE);\n bottomNavigationView.setVisibility(View.GONE);\n /* Then, show the error */\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "47be7c6012a66b4527924ef41c93dedf", "score": "0.6769152", "text": "private void showErrorMessage() {\n // First, hide the currently visible data\n mMoviesList.setVisibility(View.INVISIBLE);\n // Then, show the error\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "6a17876b61bfd2ec32a7d3a74563d3f2", "score": "0.6757022", "text": "private void showErrorMessage() {\n mRecyclerView.setVisibility(View.INVISIBLE);\n /* Then, show the error */\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "9bed2c5828ea66d3c4c9082316a63018", "score": "0.67418385", "text": "private void showErrorMessage() {\n recyclerView.setVisibility(View.GONE);\n errorMessageTextView.setVisibility(View.VISIBLE);\n\n }", "title": "" }, { "docid": "72dffbb4418cdf8d79cc62c8119f035d", "score": "0.66712767", "text": "private void showErrorMessage() {\n /* First, hide the currently visible data */\n mRecyclerView.setVisibility(View.INVISIBLE);\n /* Then, show the error */\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "daa4bf4984c8ef1cd7c5bffdefaa09f3", "score": "0.6609475", "text": "private void hideProgress() {\n if(null != mErrorTextView) {\n mErrorTextView.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "c861f268aa541b2be99e002209ba4233", "score": "0.6606901", "text": "private void showErrorMessage() {\n /* First, hide the currently visible data */\n recyclerView.setVisibility(View.INVISIBLE);\n /* Then, show the error */\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "05320721f5d078446a168784f3d466d0", "score": "0.65269", "text": "public void hideAlert() {\n\t\tstatusLbl.setVisible(false);\n\t}", "title": "" }, { "docid": "97140c3c5651050f0a8309dff524fdcd", "score": "0.64987415", "text": "private void showError() {\n mInfoELV.setVisibility(View.GONE);\n mDetailPB.setVisibility(View.GONE);\n mErrorLL.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "b1c7b34500dfb9d3ba6684de9581946c", "score": "0.64645875", "text": "public void disableValidation()\n\t{\n\t\t_validate = false;\n\t}", "title": "" }, { "docid": "eba4c013ea2b8fbd96000e83a6b6ae1a", "score": "0.6451609", "text": "public void showMessage() {\n errorLayout.setVisibility(VISIBLE);\n recyclerView.setVisibility(GONE);\n }", "title": "" }, { "docid": "3791bb6aa5adad20d1d83d6883629d37", "score": "0.63934016", "text": "@SuppressWarnings(\"WrongConstant\")\r\n @Override\r\n public void handleValidationUI() {\n tvTitleError.setText(uiValidation.getTitleError());\r\n tvBodyError.setText(uiValidation.getBodyError());\r\n tvPhoneError.setText(uiValidation.getPhoneError());\r\n\r\n\r\n // set error message visibility\r\n tvTitleError.setVisibility(uiValidation.getTitleVisibility());\r\n tvBodyError.setVisibility(uiValidation.getBodyVisibility());\r\n tvPhoneError.setVisibility(uiValidation.getPhoneVisibility());\r\n }", "title": "" }, { "docid": "abbf8b6e82b69db637d2180b9b23964e", "score": "0.634811", "text": "public void disableValidation() {\n enableValidation = false;\n }", "title": "" }, { "docid": "5c858ea8f198db0ee8b3bdb46c90e135", "score": "0.6329734", "text": "@Override\n\t\t\tpublic boolean hidden()\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "1eef85b7016b874cbf3de24f4c24328d", "score": "0.62849504", "text": "protected void showUserDataError() {\n Logger.debug(\"validation failed\");\n\n AlertDialog.Builder adBuilder = new AlertDialog.Builder(getActivity());\n adBuilder.setTitle(\"VALIDATION FAILED\");\n adBuilder.setMessage(\"You must fix your input before proceeding\");\n adBuilder.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked CANCEL button\n ad.cancel();\n }\n });\n ad = adBuilder.create();\n adBuilder.show();\n\n enableSubmitClick(); //re-enable the button\n }", "title": "" }, { "docid": "bd578f052c6121816345ec74a98ad680", "score": "0.620171", "text": "private void setValidation(String message)\n {\n validation.setText(message);\n }", "title": "" }, { "docid": "5906906d26dd3253ed63444cd0224b31", "score": "0.6082407", "text": "public void hide() {\n hidden = true;\n }", "title": "" }, { "docid": "a6c60bd643a15cf24426a03d332acd54", "score": "0.605687", "text": "@Override\n\tpublic void hide() {\n\t\tsuper.hide();\n\t}", "title": "" }, { "docid": "1a7de2a1e04c689ac25768dc07a0d809", "score": "0.59931386", "text": "public void hide() {\n this.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "ebb22bf9f710cd4930b288232e459785", "score": "0.59831136", "text": "private void clearMandatoryErrorMessages(View view) {\n TextView tvErrorMessage = (TextView) view.findViewById(R.id.tv_error_message);\n if (tvErrorMessage != null && tvErrorMessage.getVisibility() == View.VISIBLE) {\n tvErrorMessage.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "6ed81f8d6de8f586182a328d65f8f94f", "score": "0.5971107", "text": "@Override\n public void hide() { }", "title": "" }, { "docid": "4f34b22156f968c1757c0548151f10ba", "score": "0.59678674", "text": "protected final void hide() {\n hintsAnimation.stop();\n hintLabel.setOpacity(0);\n }", "title": "" }, { "docid": "1cb01e37e40c82b5ef20cd2629eada76", "score": "0.5955163", "text": "protected void hide()\n\t{\n\t\tvisible = false;\n\t}", "title": "" }, { "docid": "b42850b8bef36d017256a5cb02afb0da", "score": "0.59487283", "text": "public static void hideMessage() {\n\t\tfinal MessageSidePanel sidePanel = (MessageSidePanel) getSidePanel(\"Top\");\n\t\tsidePanel.setVisible(false);\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.587966", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "7082cadae25b710869d602f286dd6e8a", "score": "0.5870026", "text": "@Override\r\n public void hide() {\n }", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.5868551", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.5868551", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.5868551", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.5868551", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.5868551", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.5868551", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.5868551", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3192a12a899298d96de49bfbd29187bf", "score": "0.5851879", "text": "@Override\n public void hide() {\n }", "title": "" }, { "docid": "3192a12a899298d96de49bfbd29187bf", "score": "0.5851879", "text": "@Override\n public void hide() {\n }", "title": "" }, { "docid": "3192a12a899298d96de49bfbd29187bf", "score": "0.5851879", "text": "@Override\n public void hide() {\n }", "title": "" }, { "docid": "98150d419ae2ac363a960c9e84b117b0", "score": "0.5826183", "text": "@Override\n\tpublic void hide() {\n\t}", "title": "" }, { "docid": "98150d419ae2ac363a960c9e84b117b0", "score": "0.5826183", "text": "@Override\n\tpublic void hide() {\n\t}", "title": "" }, { "docid": "98150d419ae2ac363a960c9e84b117b0", "score": "0.5826183", "text": "@Override\n\tpublic void hide() {\n\t}", "title": "" }, { "docid": "98150d419ae2ac363a960c9e84b117b0", "score": "0.5826183", "text": "@Override\n\tpublic void hide() {\n\t}", "title": "" }, { "docid": "98150d419ae2ac363a960c9e84b117b0", "score": "0.5826183", "text": "@Override\n\tpublic void hide() {\n\t}", "title": "" }, { "docid": "98150d419ae2ac363a960c9e84b117b0", "score": "0.5826183", "text": "@Override\n\tpublic void hide() {\n\t}", "title": "" }, { "docid": "aa2a0495a788d680b47ea3050a28d25e", "score": "0.5796362", "text": "public void hide() {\n mTextView.setVisibility(View.GONE);\n }", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.5789806", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "e43b1b89dac70b7728483079981c3e60", "score": "0.5775727", "text": "public void showConstraintError() {\r\n\t\taddActionError(getText(\"msg.error.meetingConstraint\"));\r\n\t}", "title": "" }, { "docid": "0960965b581f8fe19d343d9b50085ba8", "score": "0.5756095", "text": "@Override\n\tpublic void showError() {\n\t\t\n\t}", "title": "" }, { "docid": "4d2e6c96ad59e6e6eaee64caa051e0fb", "score": "0.5750766", "text": "private void showErrorView() {\n progressBar.setVisibility(View.INVISIBLE);\n recyclerView.setVisibility(View.INVISIBLE);\n emptyTextView.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "cff8b1f1ba4d0c0bf989c8caa61a3de6", "score": "0.5748187", "text": "public boolean isErrorVisible() {\n return mState.flgErrorVisible;\n }", "title": "" }, { "docid": "cadc0618963c47a6f4a8777f0f266c46", "score": "0.5742051", "text": "private void refreshErrorMessage() {\n TextView tvError = (TextView) findViewById(R.id.error);\n tvError.setText(error);\n\n if (error == null || error.length() == 0) {\n tvError.setVisibility(View.GONE);\n } else {\n tvError.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "cadc0618963c47a6f4a8777f0f266c46", "score": "0.5742051", "text": "private void refreshErrorMessage() {\n TextView tvError = (TextView) findViewById(R.id.error);\n tvError.setText(error);\n\n if (error == null || error.length() == 0) {\n tvError.setVisibility(View.GONE);\n } else {\n tvError.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "7dcbc321c07c7820b5e0aeb18b7d815f", "score": "0.5713785", "text": "private void refreshErrorMessage() {\n // set the error message\n TextView tvError = (TextView) findViewById(R.id.error);\n tvError.setText(error);\n\n if (error == null || error.length() == 0) {\n tvError.setVisibility(View.GONE);\n } else {\n tvError.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "58c62fede66c67e7139c27c3220d714d", "score": "0.56881493", "text": "private void showErrorMessage() {\n\t\tJOptionPane.showMessageDialog(this, Settings.getInstance().getResourceBundle().getString(\"detailError\"));\n\t\tthis.detailPanel = new DetailPanel(this, null, null, 0, null);\n\t}", "title": "" }, { "docid": "ffbb79de556865010e7a00e3e3d929ab", "score": "0.568677", "text": "private void setValid() {\n errorLabel.setText(\"\");\n searchButton.setEnabled(true);\n }", "title": "" }, { "docid": "80850b4f40abe8f4f09ce08f3dde13a0", "score": "0.56657875", "text": "@Override\r\n\tpublic void hide() {\n\r\n\t}", "title": "" }, { "docid": "80850b4f40abe8f4f09ce08f3dde13a0", "score": "0.56657875", "text": "@Override\r\n\tpublic void hide() {\n\r\n\t}", "title": "" }, { "docid": "80850b4f40abe8f4f09ce08f3dde13a0", "score": "0.56657875", "text": "@Override\r\n\tpublic void hide() {\n\r\n\t}", "title": "" }, { "docid": "80850b4f40abe8f4f09ce08f3dde13a0", "score": "0.56657875", "text": "@Override\r\n\tpublic void hide() {\n\r\n\t}", "title": "" }, { "docid": "d5f17ae9438abf5d4f0aaaddac5b6b17", "score": "0.5664939", "text": "private void validationErrorMessage(String s) {\r\n JOptionPane.showMessageDialog\r\n (\r\n this,\r\n s,\r\n \"Validation Error\",\r\n JOptionPane.ERROR_MESSAGE\r\n );\r\n }", "title": "" } ]
13f5960562b6053ccc117f250abb2b88
VideoRenderer.Callbacks localVideo = VideoRendererGui.create(0,0,0,0,scalingType,true);
[ { "docid": "d0b5ea3563191a6cd353f8d07f7d8d1c", "score": "0.0", "text": "public static String getDeviceName(int index) {\n Camera.CameraInfo info = new Camera.CameraInfo();\n try {\n Camera.getCameraInfo(index, info);\n } catch (Exception e) {\n Log.e(\"test\", \"getCameraInfo failed on index \" + index,e);\n return null;\n }\n\n String facing =\n (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) ? \"front\" : \"back\";\n return \"Camera \" + index + \", Facing \" + facing\n + \", Orientation \" + info.orientation;\n }", "title": "" } ]
[ { "docid": "799bfd1b5cf185354f05b2d7e9faf921", "score": "0.7304411", "text": "Video createVideo();", "title": "" }, { "docid": "f9bfbda4fc4ebbbbb69771c6d92da469", "score": "0.6989073", "text": "protected override void OnRender(DrawingContext drawingContext) \r\n { \r\n // if nobody set a source on us, then the clock will be null, so we don't render\r\n // anything \r\n if (_helper.Player == null)\r\n {\r\n return;\r\n } \r\n\r\n drawingContext.DrawVideo(_helper.Player, new Rect(new Point(), RenderSize)); \r\n \r\n return;\r\n }", "title": "" }, { "docid": "9c94cef30fe27690e225b8c7b51890e0", "score": "0.69145834", "text": "void initVideoView() {\n initVideoEffect(1);\n //videoView.setRender(IjkVideoView.RENDER_SURFACE_VIEW);\n videoView.setOnPreparedListener(new IMediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(IMediaPlayer iMediaPlayer) {\n videoView.start();\n }\n });\n\n }", "title": "" }, { "docid": "d410e05a8e3fe471186fa02107760ea5", "score": "0.6757332", "text": "@Override\npublic void videogmes() {\n\t\n}", "title": "" }, { "docid": "289ccb958bbd622d6d5e9e6d4ce099dd", "score": "0.66983306", "text": "@Override\n public void onVideoStarted() {\n }", "title": "" }, { "docid": "a60c7aefe49383f3f141bdb85ba47c5c", "score": "0.6664708", "text": "void setCallbackVideo(ICallback callback);", "title": "" }, { "docid": "5a555f9eccef329ce13ef484ff60cc61", "score": "0.6594595", "text": "public interface VideoControl extends GUIControl {\n\n /**\n * This defines a mode on how the video is displayed.\n * It is used in conjunction with \n * <a href=\"#initDisplayMode(int, java.lang.Object)\">\n * <code>initDisplayMode</code></a>.\n * <p>\n * <code>USE_DIRECT_VIDEO</code> mode can only be used\n * on platforms with LCDUI support.\n * <p>\n * When <code>USE_DIRECT_VIDEO</code> is specified for\n * <code>initDisplayMode</code>, the <code>arg</code>\n * argument must not be null and must be a\n * <code>javax.microedition.lcdui.Canvas</code> or a subclass of it.\n * In this mode, the video is directly\n * rendered onto the canvas. The region where the video\n * is rendered can be set by the <code>setDisplayLocation</code>\n * method. By default, the location is (0, 0).\n * Drawing any graphics or rendering other video at the same\n * region on the canvas may not be supported.\n * <p>\n * <code>initDisplayMode</code>\n * returns <code>null</code> in this mode.\n * <p>\n * Here is one sample usage scenario:\n * <pre>\n * <code>\n * javax.microedition.lcdui.Canvas canvas;\n * // canvas must be created before being used in the following code.\n *\n * try {\n * Player p = Manager.createPlayer(\"http://mymachine/abc.mpg\");\n * p.realize();\n * VideoControl vc;\n * if ((vc = (VideoControl)p.getControl(\"VideoControl\")) != null) {\n * vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, canvas);\n * vc.setVisible(true);\n * }\n * p.start();\n * } catch (MediaException pe) {\n * } catch (IOException ioe) {\n * }\n * </code>\n * </pre>\n * <p>\n * Value 1 is assigned to <code>USE_DIRECT_VIDEO</code>.\n */\n int USE_DIRECT_VIDEO = 1;\n\n\n /**\n * Initialize the mode on how the video is displayed.\n * This method must be called before video can be displayed.\n * <p>\n * Two modes are defined:\n * <ul>\n * <li> <a href=\"GUIControl.html#USE_GUI_PRIMITIVE\"><code>USE_GUI_PRIMITIVE</code></a> (inherited from GUIControl)\n * <li> <a href=\"#USE_DIRECT_VIDEO\"><code>USE_DIRECT_VIDEO</code></a>\n * </ul>\n * On platforms with LCDUI support, both modes must be supported.\n *\n * @param mode The video mode that determines how video is\n * displayed. It can be <code>USE_GUI_PRIMITIVE</code>,\n * <code>USE_DIRECT_VIDEO</code> or an implementation-\n * specific mode.\n *\n * @param arg The exact semantics of this argument is\n * specified in the respective mode definitions.\n *\n * @return The exact semantics and type of the object returned\n * are specified in the respective mode definitions.\n * \n * @exception IllegalStateException Thrown if \n * <code>initDisplayMode</code> is called again after it has \n * previously been called successfully.\n *\n * @exception IllegalArgumentException Thrown if\n * the <code>mode</code> or <code>arg</code> \n * argument is invalid. <code>mode</code> must be\n * <code>USE_GUI_PRIMITIVE</code>, \n * <code>USE_DIRECT_VIDEO</code>, or a custom mode\n * supported by this implementation.\n * <code>arg</code> must conform to the \n * conditions defined by the \n * respective mode definitions. \n * Refer to the mode definitions for the required type\n * of <code>arg</code>.\n */\n Object initDisplayMode(int mode, Object arg);\n\n /**\n * Set the location of the video with respect to \n * the canvas where the video is displayed. \n * <p>\n * This method only works when the <code>USE_DIRECT_VIDEO</code>\n * mode is set. In <code>USE_GUI_PRIMITIVE</code> mode,\n * this call will be ignored.\n * <p>\n * The location is specified in pixel values relative to the \n * upper left hand corner of the GUI object.\n * <p>\n * By default, video appears at location (0,0).\n * <p>\n * The location can be given in negative values or can be\n * greater than the actual size of the canvas. When\n * that happens, the video should be clipped to the\n * boundaries of the canvas.\n *\n * @param x The x coordinate (in pixels) of the video location.\n * @param y The y coordinate (in pixels) of the video location.\n * @exception IllegalStateException Thrown if \n * <code>initDisplayMode</code> has not been called.\n */\n void setDisplayLocation(int x, int y);\n\n /**\n * Return the X-coordinate of the video with respect\n * to the GUI object where the video is displayed.\n * The coordinate is specified in pixel values relative to the \n * upper left hand corner of the GUI object.\n * <p> \n * The return value is undefined if <code>initDisplayMode</code>\n * has not been called.\n *\n * @return the X-coordinate of the video.\n */\n int getDisplayX();\n\n /**\n * Return the Y-coordinate of the video with respective\n * to the GUI object where the video is displayed.\n * The coordinate is specified in pixel values relative to the \n * upper left hand corner of the GUI object.\n * <p> \n * The return value is undefined if <code>initDisplayMode</code>\n * has not been called.\n *\n * @return the Y-coordinate of the video.\n */\n int getDisplayY();\n\n /**\n * Show or hide the video.\n * <p>\n * If <code>USE_GUI_PRIMITIVE</code> is set, the video by\n * default is shown when the GUI primitive is displayed.\n * If <code>USE_DIRECT_VIDEO</code> is set, the video by\n * default is not shown when the canvas is displayed\n * until <code>setVisible(true)</code> is called. If\n * the canvas is removed from the screen, the video\n * will not be displayed.\n *\n * @param visible Show the video if true, hide it otherwise.\n * @exception IllegalStateException Thrown if \n * <code>initDisplayMode</code> has not been called.\n */\n void setVisible(boolean visible);\n\n /**\n * Resize the video image.\n * <p>\n * If the video mode is set to <code>USE_DIRECT_VIDEO</code>,\n * setting the size of the video will not\n * affect the size of the GUI object that the video is\n * displayed. \n * If the video is scaled to beyond the size of the \n * GUI object, the video will be clipped.\n * <p>\n * If the video mode is set to <code>USE_GUI_PRIMITIVE</code>,\n * Scaling the video will also scale the GUI object. \n * <p>\n * The actual scaling algorithm is left up\n * to the underlying implementation. If\n * the dimensions of the requested display size are smaller than \n * the dimensions of the video clip, some implementations may \n * choose to merely clip the video while other implementations \n * may resize the video. \n * <p>\n * If the dimensions of the requested display size are bigger than \n * the dimensions of the video clip, some implementations may \n * resize the video while others may leave the video clip in the \n * original size and just enlarge the display region. It is \n * left up to the implementation \n * where the video clip is placed in the display region in this \n * instance (i.e., it can be in the center of the window or \n * in a corner of the window).\n *\n * @param width Desired width (in pixels) of the display window\n * @param height Desired height (in pixels) of the display window\n * @exception IllegalArgumentException Thrown if the\n * given <code>width</code> and <code>height</code> are\n * non-positive values.\n * @exception IllegalStateException Thrown if \n * <code>initDisplayMode</code> has not been called.\n * @exception MediaException Thrown if resizing is not supported or\n * the operation failed due to hardware or software limitations.\n */\n void setDisplaySize(int width, int height) \n\tthrows MediaException;\n\n /**\n * Set the size of the render region for the video clip to be \n * fullscreen. It is left up to the underlying implementation how \n * fullscreen mode is\n * implemented and what actual dimensions constitutes fullscreen. \n * This is useful when the application does not know the actual \n * width and height dimensions\n * that are needed to make setDisplaySize(width, height) go to \n * fullscreen mode.\n * For example, on a device with a 400 pixel wide by 200 pixel \n * high screen, a video\n * clip that is 50 pixels wide by 100 pixels high in fullscreen \n * mode may be \n * 100 pixels wide by 200 pixels high if the underlying implementation \n * wants\n * to preserve the aspect ratio. In this case, an exception \n * is not thrown.\n * @param fullScreenMode Indicates whether or not to render \n * in full screen mode\n * @exception MediaException Thrown if resizing to full screen size\n * is not supported.\n * @exception IllegalStateException Thrown if \n * <code>initDisplayMode</code> has not been called.\n */\n void setDisplayFullScreen(boolean fullScreenMode) throws MediaException;\n\n /**\n * Return the width of the source video. The\n * width must be a positive number.\n * @return the width of the source video\n */ \n int getSourceWidth();\n\n /**\n * Return the height of the source video. The\n * height must be a positive number.\n * @return the height of the source video\n */ \n int getSourceHeight();\n\n /**\n * Return the actual width of the current render video.\n *\n * @return width of the display video\n * @exception IllegalStateException Thrown if \n * <code>initDisplayMode</code> has not been called.\n */\n int getDisplayWidth();\n\n /**\n * Return the actual height of the current render video.\n *\n * @return height of the display video\n * @exception IllegalStateException Thrown if \n * <code>initDisplayMode</code> has not been called.\n */\n int getDisplayHeight();\n\n /**\n * Get a snapshot of the displayed content. Features and format \n * of the captured image are specified by <code>imageType</code>. \n * Supported formats can be queried from <code>System.getProperty</code> \n * with\n * <a href=\"../../../../overview-summary.html#video.snapshot.encodings\">\n * <code>video.snapshot.encodings</code></a> as the key.\n * The first format in the supported list is the default capture format.\n *\n * @param imageType Format and resolution of the returned image.\n * If <code>null</code> is given, the default capture format is used.\n * @return image as a byte array in required format.\n * @exception IllegalStateException Thrown if \n * <code>initDisplayMode</code> has not been called.\n * @exception MediaException Thrown if the requested format is \n * not supported or the <code>Player</code> does not support\n * snapshots.\n * @exception SecurityException Thrown if the caller does\n * not have the security permission to take the snapshot.\n */\n byte[] getSnapshot(String imageType) throws MediaException;\n}", "title": "" }, { "docid": "6aacf354fb9ac301fee4181017c2da9e", "score": "0.6538014", "text": "@Override\n\tpublic void onVideoStarted() {}", "title": "" }, { "docid": "11a168f127ba3588a1feecd647e3a661", "score": "0.64892864", "text": "@Override\n\tpublic void ultraHighQualityVideos() {\n\t\t\n\t}", "title": "" }, { "docid": "bd479806821599d1a6da4c5c3b4143e8", "score": "0.6461817", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.activity_main);\n// startServiceMSG();\n\n\n cameraView = (CameraView) findViewById(R.id.cameraView);\n cameraUtil = CameraUtil.getCameraUtil();\n cameraUtil.setCameraView(cameraView);\n\n\n// cameraUtil.setVideoSize(1280, 720);\n\n// uploadUtil = UploadUtil.getUploadUtilInstance();\n// uploadUtil.addResultListener(this);\n\n\n\n\n// player = (WesineGLSV) findViewById(R.id.player);\n// client = VlcClient.getVlcClient();\n// client.init(this,\"\");\n// client.setWesineGLSV(player);\n// client.onCreat();\n\n }", "title": "" }, { "docid": "5b5581ab81dadbaa2a7ddfa5a7d5221e", "score": "0.64050114", "text": "public abstract void setMakeVideoDisplay(boolean display);", "title": "" }, { "docid": "e995f82fad45aaa0f513217ab11331de", "score": "0.63893837", "text": "private void initPreviewerSurfaceView() {\n videostreamPreviewSh = videostreamPreviewSf.getHolder();\n videostreamPreviewSh.addCallback(new SurfaceHolder.Callback() {\n @Override\n public void surfaceCreated(SurfaceHolder holder) {\n Log.d(TAG, \"surfaceCreated\");\n\n NativeHelper.getInstance().init();\n DJIVideoStreamDecoder.getInstance().init(getApplicationContext(), videostreamPreviewSh.getSurface());\n DJIVideoStreamDecoder.getInstance().setYuvDataListener(MainActivity.this);\n DJIVideoStreamDecoder.getInstance().resume();\n }\n\n @Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n DJIVideoStreamDecoder.getInstance().changeSurface(holder.getSurface());\n //Log.d(TAG, \"surfaceChanged\" + \", surface name:\" + holder.getSurface().toString());\n }\n\n @Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n DJIVideoStreamDecoder.getInstance().stop();\n DJIVideoStreamDecoder.getInstance().destroy();\n NativeHelper.getInstance().release();\n Log.d(TAG, \"surfaceDestroyed\");\n }\n });\n }", "title": "" }, { "docid": "54af0b4aad7f090ac969632fe2ec69d0", "score": "0.6354913", "text": "private void init() {\n video_layout = (LinearLayout) findViewById(R.id.video_layout);\n //btn_capture = (Button) findViewById(R.id.capture);\n iv = (ImageView) findViewById(R.id.image_view);\n videoView = (TextureView) findViewById(R.id.iv_video);\n //linear1 = (LinearLayout) findViewById(R.id.linear1);\n linear2 = (LinearLayout) findViewById(R.id.linear2);\n editText = (EditText) findViewById(R.id.editText);\n MediaController mediaController = new MediaController(this);\n guest = (ImageButton)findViewById(R.id.guest);\n next = (ImageButton)findViewById(R.id.next);\n mediaMetadataRetriever = new MediaMetadataRetriever();\n mediaController.setAnchorView(videoView);\n /* videoView.setMediaController(mediaController);\n videoView.start();*/\n path = (TextView) findViewById(R.id.tv_path);\n //pickVideo();\n }", "title": "" }, { "docid": "abec9a7823a5441a2a27178349dfba92", "score": "0.6336799", "text": "public void startBackgroundVideo() {\n }", "title": "" }, { "docid": "5add585d0f04e5a24456ddcf460f6e92", "score": "0.62947935", "text": "@Override\n public void onVideoStarted() {\n }", "title": "" }, { "docid": "5add585d0f04e5a24456ddcf460f6e92", "score": "0.62947935", "text": "@Override\n public void onVideoStarted() {\n }", "title": "" }, { "docid": "62ab8019b10d86806d092176590113a6", "score": "0.6280833", "text": "@Override\n public ContentVideoViewEmbedder getContentVideoViewEmbedder() {\n return new ContentVideoViewEmbedder() {\n @Override\n public void enterFullscreenVideo(View view) {}\n\n @Override\n public void exitFullscreenVideo() {}\n\n @Override\n public View getVideoLoadingProgressView() {\n return null;\n }\n\n @Override\n public void setSystemUiVisibility(boolean enterFullscreen) {}\n };\n }", "title": "" }, { "docid": "68c65f618f387fd6d1bec20da625ef6f", "score": "0.61964995", "text": "public void render(GamePlayManager main);", "title": "" }, { "docid": "6ddd17033967dfa73e967aea532c2332", "score": "0.61941534", "text": "private void init(Stage primaryStage) {\r\n root = new Group();\r\n primaryStage.setScene(new Scene(root, gameWidth, gameHeight));\r\n// tagView = new TagVideoView(this);\r\n// tagView.setMinSize(gameWidth, gameHeight); \r\n// tagView.setPrefSize(gameWidth, gameHeight);\r\n// tagView.setMaxSize(gameWidth, gameHeight);\r\n// root.getChildren().add(tagView);\r\n \r\n vidView = new VideoView(this, game.getVideos());\r\n vidView.setMinSize(gameWidth, gameHeight); \r\n vidView.setPrefSize(gameWidth, gameHeight);\r\n vidView.setMaxSize(gameWidth, gameHeight);\r\n root.getChildren().add(vidView);\r\n }", "title": "" }, { "docid": "09143e512a0d87081846dcac2a82943a", "score": "0.619214", "text": "public Component createVideoConfigPanel();", "title": "" }, { "docid": "d2ed0a64031565b8cdb8175ab0bc7464", "score": "0.6178335", "text": "public VideoPlayer() {\n \n }", "title": "" }, { "docid": "39493afffcbfb6cf09576219d2446b65", "score": "0.6172433", "text": "public final ZHPluginVideoView invoke() {\n ZHPluginVideoView zHPluginVideoView = new ZHPluginVideoView(this.f76285a);\n zHPluginVideoView.setScalableType(EnumC26572d.CENTER_CROP);\n return zHPluginVideoView;\n }", "title": "" }, { "docid": "fd9a3c40d8d7d031343b9c6b94f13ed2", "score": "0.61674327", "text": "private void initPreviewerTextureView() {\n videostreamPreviewTtView.setSurfaceTextureListener(new TextureView.SurfaceTextureListener() {\n @Override\n public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {\n Log.d(TAG, \"real onSurfaceTextureAvailable\");\n if (mCodecManager == null) {\n mCodecManager = new DJICodecManager(getApplicationContext(), surface, width, height);\n }\n }\n\n @Override\n public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {\n }\n\n @Override\n public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {\n if (mCodecManager != null) mCodecManager.cleanSurface();\n return false;\n }\n\n @Override\n public void onSurfaceTextureUpdated(SurfaceTexture surface) {\n }\n });\n }", "title": "" }, { "docid": "bd3fee4b7a02b2f87630e439016d6b10", "score": "0.61563396", "text": "static void PlayVideo(){\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n NativeInterface.open();\n cmd = new cmdVidPlayer(URL);\n cmd.setVisible(true);\n }\n });\n }", "title": "" }, { "docid": "cf0a80c37fa0f08533228d27a01a66eb", "score": "0.614683", "text": "@Override\n public void onVideoEnded() {\n }", "title": "" }, { "docid": "cf45b23db4fb790345096179a59e9f43", "score": "0.6116616", "text": "@Override\r\n\t\t\tpublic void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {\n\t\t\t\tLogUtil.d(TAG, \"surfaceChanged\");\r\n\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tPanelProperty pp = PictureManager.getInstance().getPanelWidthHeight();\r\n\t\t\t\t\tLogUtil.d(TAG, \"pp width:\"+pp.width+\" height:\"+pp.height);\r\n\t\t\t\t\tDisplayMetrics dm = new DisplayMetrics();\r\n\t\t\t\t\tactivity.getWindowManager().getDefaultDisplay().getMetrics(dm);\r\n\t\t\t LogUtil.d(TAG, \"dm width:\"+dm.widthPixels+\" height:\"+dm.heightPixels);\r\n\r\n\t\t\t\t\tif (pp.width != 0 && dm.widthPixels != 0) {\r\n\t\t\t\t\t\txScale = (float) pp.width / (float) (dm.widthPixels);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (pp.height != 0 && dm.heightPixels != 0) {\r\n\t\t\t \tyScale = (float)(pp.height)/(float)(dm.heightPixels);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tLogUtil.d(TAG, \"xScale\" + xScale + \" yScale:\" + yScale);\r\n\t\t\t\t} catch (TvCommonException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint[] location = new int[2];\r\n\t\t\t\tadc_surfaceContainer.getLocationOnScreen(location);\r\n\t\t\t\tsurfaceContainerX = location[0];\r\n\t\t\t\tsurfaceContainerY = location[1];\r\n\t\t\t\tsurfaceContainerW = adc_surfaceContainer.getWidth();\r\n\t\t\t\tsurfaceContainerH = adc_surfaceContainer.getHeight();\r\n\r\n\t\t\t\t// LogUtil.d(TAG,\r\n\t\t\t\t// \"surfaceContainer width:\"+surfaceContainer.getWidth()+\" height:\"+surfaceContainer.getHeight());\r\n\t\t\t\tVideoWindowType videoWindowType = new VideoWindowType();\r\n\t\t\t\tvideoWindowType.x = (int) (surfaceContainerX * xScale);\r\n\t\t\t\tvideoWindowType.y = (int) (surfaceContainerY * yScale);\r\n\t\t\t\tvideoWindowType.width = (int) (surfaceContainerW * xScale);\r\n\t\t\t\tvideoWindowType.height = (int) (surfaceContainerH * yScale);\r\n\r\n\t\t\t\ttry {\r\n PictureManager.getInstance().selectWindow(EnumScalerWindow.E_MAIN_WINDOW);\r\n PictureManager.getInstance().setDisplayWindow(videoWindowType);\r\n\t\t\t\t\tPictureManager.getInstance().scaleWindow();\r\n\r\n\t\t\t\t} catch (TvCommonException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "04d1a3d605acb92290dde9b8842072c6", "score": "0.6101597", "text": "private void initView() {\n mySurfaceView = (VRGLSurfaceView) findViewById(R.id.mySurfaceView);//.getChildAt(Constant.ID_MY);\n View gyroButton = findViewById(R.id.videoPlayer_ctrlbar_btn_gyro);\n\n gyroButton.setOnClickListener(this);\n\n mySurfaceView.setOnTouchListener(this);\n presenter.setGLSurfaceView(mySurfaceView);\n\n// MojingSDK.Init(this);\n// selectSurfaceView(ID_MY, true);\n }", "title": "" }, { "docid": "eadac3ba30fe94d6f1cc000670fab1cd", "score": "0.6092103", "text": "VideoSpec() {\n }", "title": "" }, { "docid": "0b2ffc13a248327cb680d2473cd4211b", "score": "0.60803944", "text": "public interface CaptureVideoListener {\n void onTick(long timePassed);\n void onFinishBack();\n void onFinishFront();\n}", "title": "" }, { "docid": "e04666af6dd8f6076c1af9cfc94012e4", "score": "0.6073792", "text": "public void handler() {\n bublbobl_video_enable = 1;\n }", "title": "" }, { "docid": "1c0bd572397f67441ec4ee703ccc04c0", "score": "0.6050688", "text": "public synchronized void onFirstRemoteVideoDecoded(final int uid, int width, int height, final int elapsed) {\n\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n View remoteUserView = mRemoteUserContainer.findViewById(Math.abs(uid));\n\n // ensure container is added\n if (remoteUserView == null) {\n\n LayoutInflater layoutInflater = getLayoutInflater();\n\n View singleRemoteUser = layoutInflater.inflate(R.layout.ui_voice_remote_users, null);\n singleRemoteUser.setId(Math.abs(uid));\n\n TextView username = (TextView) singleRemoteUser.findViewById(R.id.remote_user_name);\n username.setText(String.valueOf(uid));\n\n mRemoteUserContainer.addView(singleRemoteUser, new LinearLayout.LayoutParams(mRemoteUserViewWidth, mRemoteUserViewWidth));\n\n remoteUserView = singleRemoteUser;\n }\n\n\n FrameLayout remoteVideoUser = (FrameLayout) remoteUserView.findViewById(R.id.viewlet_remote_video_user);\n remoteVideoUser.removeAllViews();\n remoteVideoUser.setTag(uid);\n\n // ensure remote video view setup\n final SurfaceView remoteView = RtcEngine.CreateRendererView(getApplicationContext());\n remoteVideoUser.addView(remoteView, new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT));\n remoteView.setZOrderOnTop(true);\n remoteView.setZOrderMediaOverlay(true);\n\n rtcEngine.enableVideo();\n int successCode = rtcEngine.setupRemoteVideo(new VideoCanvas(remoteView, VideoCanvas.RENDER_MODE_ADAPTIVE, uid));\n\n if (successCode < 0) {\n new android.os.Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n rtcEngine.setupRemoteVideo(new VideoCanvas(remoteView, VideoCanvas.RENDER_MODE_ADAPTIVE, uid));\n remoteView.invalidate();\n }\n }, 500);\n }\n\n\n if (remoteUserView != null && CALLING_TYPE_VIDEO == mCallingType) {\n remoteUserView.findViewById(R.id.remote_user_voice_container).setVisibility(View.GONE);\n } else {\n remoteUserView.findViewById(R.id.remote_user_voice_container).setVisibility(View.VISIBLE);\n }\n\n // app hints before you join\n TextView appNotification = (TextView) findViewById(R.id.groupchat_app_notification);\n appNotification.setText(\"\");\n setRemoteUserViewVisibility(true);\n }\n });\n\n }", "title": "" }, { "docid": "5f1a0e01e6829d78719b7299c67d95c6", "score": "0.6048039", "text": "@Override\r\n public void render(GuiScreen gui, int mx, int my, float frame) {\r\n }", "title": "" }, { "docid": "df49ad998069616275884fcb04aa6c13", "score": "0.6010579", "text": "@Override\n\tpublic void HighqualityVideos() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "273170c276a0d4866c1dc96715a97c80", "score": "0.59859735", "text": "public WebCamera() {\n initComponents();\n\n }", "title": "" }, { "docid": "d6fa54abd1a084bc6bc6cd60a78da9ef", "score": "0.5978489", "text": "public static RemoteObject _globals() throws Exception{\nvideo.mostCurrent._type_vid = RemoteObject.createNew (\"anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper\");\nvideo.mostCurrent._type_vid = video.mostCurrent.__c.runMethod(false,\"LoadBitmap\",(Object)(video.mostCurrent.__c.getField(false,\"File\").runMethod(true,\"getDirAssets\")),(Object)(RemoteObject.createImmutable(\"play-video.png\")));\n //BA.debugLineNum = 17;BA.debugLine=\"Dim type_sot As Bitmap=LoadBitmap(File.DirAssets,\\\"\";\nvideo.mostCurrent._type_sot = RemoteObject.createNew (\"anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper\");\nvideo.mostCurrent._type_sot = video.mostCurrent.__c.runMethod(false,\"LoadBitmap\",(Object)(video.mostCurrent.__c.getField(false,\"File\").runMethod(true,\"getDirAssets\")),(Object)(RemoteObject.createImmutable(\"voice.png\")));\n //BA.debugLineNum = 18;BA.debugLine=\"Dim ulvid As UltimateListView\";\nvideo.mostCurrent._ulvid = RemoteObject.createNew (\"flm.b4a.ultimatelistview.UltimateListViewWrapper\");\n //BA.debugLineNum = 19;BA.debugLine=\"Dim glide As AriaGlide\";\nvideo.mostCurrent._glide = RemoteObject.createNew (\"ariagp.amin.shahedi.AriaGlideWrapper\");\n //BA.debugLineNum = 20;BA.debugLine=\"Private Panel1 As Panel\";\nvideo.mostCurrent._panel1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 21;BA.debugLine=\"Private ACSpinnerstyle As ACSpinner\";\nvideo.mostCurrent._acspinnerstyle = RemoteObject.createNew (\"de.amberhome.objects.appcompat.ACSpinnerWrapper\");\n //BA.debugLineNum = 22;BA.debugLine=\"Private ACSpinnerday As ACSpinner\";\nvideo.mostCurrent._acspinnerday = RemoteObject.createNew (\"de.amberhome.objects.appcompat.ACSpinnerWrapper\");\n //BA.debugLineNum = 23;BA.debugLine=\"Dim old_js As String\";\nvideo.mostCurrent._old_js = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 24;BA.debugLine=\"Dim max_item As Int\";\nvideo._max_item = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 25;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}", "title": "" }, { "docid": "b569bade2d07de99b173c721d29cc91b", "score": "0.5959785", "text": "private void m17099k() {\n this.f15470b = new NativeVideoController(this.f15482n, this.f15471c, this.f15469a, this.f15477i, !m17110v());\n m17100l();\n this.f15483o.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n /* class com.bytedance.sdk.openadsdk.core.video.nativevideo.NativeVideoTsView.ViewTreeObserver$OnGlobalLayoutListenerC35571 */\n\n public void onGlobalLayout() {\n ((NativeVideoController) NativeVideoTsView.this.f15470b).mo25803a(NativeVideoTsView.this.f15483o.getWidth(), NativeVideoTsView.this.f15483o.getHeight());\n NativeVideoTsView.this.f15483o.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n }\n });\n }", "title": "" }, { "docid": "b215b224865640e178a84bd42112ece8", "score": "0.5946725", "text": "@FXML\n\tprivate void addVideo4() {\n\t\taddVideo(3);\n\t}", "title": "" }, { "docid": "cee860c505882ff7c11d2829a39c091b", "score": "0.5943846", "text": "@SuppressLint(\"WrongConstant\")\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n private void createVirtualDisplay() {\n // get width and height\n mDensity = getResources().getDisplayMetrics().densityDpi;\n mDisplay = TakingScreenShotActivity.this.getDisplay();\n Point windowSize = new Point();\n getApplicationContext().getDisplay().getRealSize(windowSize);\n mWidth = windowSize.x;\n mHeight = windowSize.y;\n\n // start capture reader\n mImageReader = ImageReader.newInstance(mWidth, mHeight, PixelFormat.RGBA_8888, 2);\n mVirtualDisplay = sMediaProjection.createVirtualDisplay(SCREENSHOT_NAME, mWidth, mHeight,\n mDensity, VIRTUAL_DISPLAY_FLAGS, mImageReader.getSurface(), null, mHandler);\n mImageReader.setOnImageAvailableListener(new TakingScreenShotActivity.ImageAvailableListener(), mHandler);\n }", "title": "" }, { "docid": "e9dfdefcff9bf0188fc433b6c53281cf", "score": "0.59370404", "text": "VideoControllerDataModel mo24715a();", "title": "" }, { "docid": "a32f057399fca2792ea3b2e8cf1ae91a", "score": "0.59178835", "text": "private void initVideo(final String url) {\r\n try {\r\n // Create a video player\r\n _videoPlayer = javax.microedition.media.Manager.createPlayer(url);\r\n _videoPlayer.realize();\r\n\r\n // Cause playback to begin as soon as possible once start()\r\n // is called on the Player.\r\n final StreamingBufferControl sbc =\r\n (StreamingBufferControl) _videoPlayer\r\n .getControl(\"net.rim.device.api.media.control.StreamingBufferControl\");\r\n sbc.setBufferTime(0);\r\n\r\n _vc = (VideoControl) _videoPlayer.getControl(\"VideoControl\");\r\n if (_vc != null) {\r\n _videoField =\r\n (Field) _vc.initDisplayMode(\r\n GUIControl.USE_GUI_PRIMITIVE,\r\n \"net.rim.device.api.ui.Field\");\r\n _vc.setVisible(true);\r\n }\r\n } catch (final MediaException me) {\r\n errorDialog(me.toString());\r\n } catch (final IOException ioe) {\r\n errorDialog(\"Manager#createPlayer(String) threw \" + ioe.toString());\r\n }\r\n }", "title": "" }, { "docid": "506e5379740439509b1e69a0b1c7bc18", "score": "0.5917745", "text": "public interface VideoPlayerManagerCallback {\n\n void setCurrentItem(MetaData currentItemMetaData, VideoPlayerView newPlayerView);\n\n void setVideoPlayerState(VideoPlayerView videoPlayerView, PlayerMessageState playerMessageState);\n\n PlayerMessageState getCurrentPlayerState();\n}", "title": "" }, { "docid": "6a9cbf46de4c9a5b4516a91b8ddafc12", "score": "0.5916796", "text": "@Override\n public void onSurfaceTextureUpdated(SurfaceTexture surface) {\n\n }", "title": "" }, { "docid": "08e242f47d0476b20526a8fbc2bafe80", "score": "0.5882497", "text": "@Override\n protected void onDisplay(DirectMediaPlayer mediaPlayer, int[] rgbBuffer) {\n image.setRGB(0, 0, width, height, rgbBuffer, 0, width);\n videoSurface.repaint();\n }", "title": "" }, { "docid": "60ae81a755aab079fcfdd168fc19c731", "score": "0.5866461", "text": "private void gotRemoteStream(MediaStream stream) {\n //we have remote video stream. add to the renderer.\n// stream.audioTracks.get(0).setVolume(100);\n// AudioTrack audioTrack=stream.audioTracks.get(0);\n// audioTrack.setEnabled(true);\n callstarted = true;\n\n Log.v(TAG, \"number of video media stream : \" + stream.videoTracks.size());\n Log.v(TAG, \"number of Audio media stream : \" + stream.audioTracks.size());\n\n// final VideoTrack videoTrack = stream.videoTracks.get(0);\n AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);\n audioManager.setSpeakerphoneOn(true);\n setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);\n\n\n runOnUiThread(() -> {\n try {\n if (calltype == 100) {\n VideoTrack videoTrack = stream.videoTracks.get(0);\n remoteVideoView = findViewById(R.id.remote_gl_surface_view);\n VideoRenderer remoteRenderer = new VideoRenderer(remoteVideoView);\n remoteVideoView.init(rootEglBase.getEglBaseContext(), null);\n remoteVideoView.setZOrderMediaOverlay(true);\n remoteVideoView.setVisibility(View.VISIBLE);\n\n updateVideoViews(true);\n localVideoView.setVisibility(View.GONE);\n localVideoView.setVisibility(View.VISIBLE);\n videoTrack.addRenderer(remoteRenderer);\n } else {\n AudioTrack audioTrack = stream.audioTracks.get(0);\n audioTrack.setVolume(50);\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n Log.v(\"Exception\", e.getMessage() + \"\");\n }\n\n });\n\n }", "title": "" }, { "docid": "6c329bc2c75d8ecd8ec5294de60ca4ab", "score": "0.5864415", "text": "private void createVirtualDisplay() {\n Point size = new Point();\n mDisplay.getSize(size);\n mWidth = size.x;\n mHeight = size.y;\n\n // start capture reader\n mImageReader = ImageReader.newInstance(mWidth, mHeight, PixelFormat.RGBA_8888, 2);\n mVirtualDisplay = sMediaProjection.createVirtualDisplay(SCREENCAP_NAME, mWidth, mHeight, mDensity, VIRTUAL_DISPLAY_FLAGS, mImageReader.getSurface(), null, mHandler);\n mImageReader.setOnImageAvailableListener(new ImageAvailableListener(), mHandler);\n }", "title": "" }, { "docid": "d411a51b32717d67a275af1213515058", "score": "0.5847215", "text": "public void registerRenderInformation() //Client side texture registering\n{\n}", "title": "" }, { "docid": "35895ac5ed0d3a1ea830234420b95781", "score": "0.5846739", "text": "public native void setVideoScalingMode(int paramInt);", "title": "" }, { "docid": "67fec90906a873f17203ba4ac4664855", "score": "0.58311343", "text": "@Override\n public void videoStreamBitmapCallBack(Bitmap bitmap) {\n mStreamView.showBitmap(bitmap);\n if(isRecording)\n MediaMuxerRunnable.addVideoFrameBitmap(bitmap);\n }", "title": "" }, { "docid": "72a8fc421d8dafc80be2a7a75a5b2018", "score": "0.5805379", "text": "@Override\n public void run() {\n String filePath = null;\n if(url.contains(\"vine.co/v/\")){\n //get ready to parse vine video\n if(vineMemo.videoUrl == null) {\n vineMemo.videoUrl = parseVineVideoUrl(url);\n }\n filePath = checkCacheAndDownloadFile(vineMemo.videoUrl, id);\n }else {\n filePath = checkCacheAndDownloadFile(url, id);\n }\n\n if(filePath == null){\n if(isDebug){\n System.out.println(\"file path is null, skipping \");\n }\n return ;\n }\n\n\n if(sv.isAttachedToWindow()){\n if(isDebug) {\n System.out.println(\"VideoView Attached to the Window\");\n }\n }else{\n if(isDebug) {\n System.out.println(\"VideoView Not yet Attached available Delay: \"+wait.availableDelay);\n }\n if(wait.availableDelay>0) {\n handlerDownloadImages.postDelayed(this, DELAY_UI_ATTACH);\n wait.availableDelay -= DELAY_UI_ATTACH;\n }\n return ;\n }\n\n final String finalFilePath = filePath;\n filePath = null;\n\n final SurfaceHolder surfaceHolder = sv.getHolder();\n final MediaPlayer mediaPlayer = new MediaPlayer();\n final LinearLayout.LayoutParams svLayoutParams = new LinearLayout.LayoutParams(popupAreaWidth,popupAreaWidth/2);\n surfaceHolder.addCallback(new SurfaceHolder.Callback(){\n\n @Override\n public void surfaceCreated(SurfaceHolder holder) {\n\n try {\n mediaPlayer.setDataSource(finalFilePath);\n }catch (IOException ioe){\n if(isDebug){\n ioe.printStackTrace();\n }\n //mediaPlayer = null;\n }\n mediaPlayer.setDisplay(surfaceHolder);\n mediaPlayer.prepareAsync();\n mediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(MediaPlayer mp) {\n if(isDebug){\n System.out.println(\"Video is starting...\");\n }\n\n // for compatibility, we adjust size based on aspect ratio\n if ( mp.getVideoWidth() * svLayoutParams.height < svLayoutParams.width * mp.getVideoHeight() ) {\n //Log.i(\"@@@\", \"image too wide, correcting\");\n svLayoutParams.width = svLayoutParams.height * mp.getVideoWidth() / mp.getVideoHeight();\n } else if ( mp.getVideoWidth() * svLayoutParams.height > svLayoutParams.width * mp.getVideoHeight() ) {\n //Log.i(\"@@@\", \"image too tall, correcting\");\n svLayoutParams.height = svLayoutParams.width * mp.getVideoHeight() / mp.getVideoWidth();\n }\n sv.post(new Runnable(){\n @Override\n public void run() {\n sv.setLayoutParams(svLayoutParams);\n }\n });\n\n mp.setLooping(true);\n mp.start();\n }\n });\n }\n\n @Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n if(isDebug){\n System.out.println(\"surfaceChanged(holder, \"+format+\", \"+width+\", \"+height+\")\");\n }\n }\n\n @Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n //mediaPlayer.setDataSource(\"\");\n mediaPlayer.release();\n }\n });\n\n if(sv.post(new Runnable() {\n @Override\n public void run() {\n if(isDebug) {\n System.out.println(\"setting VideoPath to VideoView: \"+finalFilePath);\n }\n\n sv.setLayoutParams(svLayoutParams);///\n sv.setVisibility(View.VISIBLE);\n\n }})){\n\n if(isDebug) {\n System.out.println(\"post Succeded\");\n }\n }else{\n if(isDebug) {\n System.out.println(\"post Failed\");\n }\n }\n }", "title": "" }, { "docid": "6f5c93dd53f3490026fd52ebde7e871a", "score": "0.58004326", "text": "public VideoRecordingDemo() {\r\n // Check if video recording is enabled on this device\r\n final String[] encodings = VideoRecordingSetup.getVideoEncodings();\r\n if (encodings != null && encodings.length > 0) {\r\n if (Touchscreen.isSupported()) {\r\n Ui.getUiEngineInstance().setAcceptableDirections(\r\n Display.DIRECTION_NORTH);\r\n }\r\n\r\n // Check if any file systems exist with adequate space to record to.\r\n final String[] fileSystems =\r\n VideoRecordingSetup.getFileSystems(MIN_FILE_SYSTEM_SIZE);\r\n if (fileSystems.length > 0) {\r\n pushScreen(new VideoRecordingSetupScreen(encodings, fileSystems));\r\n } else {\r\n UiApplication.getUiApplication().invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(\"No sufficiently large file systems detected!\\n\\nWithout an appropriate file system this demo cannot record video to a file.\");\r\n pushScreen(new VideoRecordingScreen(\r\n encodings[ANY_ENCODING], null));\r\n }\r\n });\r\n }\r\n } else {\r\n UiApplication.getUiApplication().invokeLater(new Runnable() {\r\n public void run() {\r\n Dialog.alert(\"This device is not capable of recording video\");\r\n System.exit(0);\r\n }\r\n });\r\n }\r\n }", "title": "" }, { "docid": "d4e5fe3b37b9c6f90032f264287e9c05", "score": "0.57962936", "text": "public BuyVideo() {\n initComponents();\n }", "title": "" }, { "docid": "c3fd0b6df98cfd08b932dc0fbbd7829a", "score": "0.5790337", "text": "public void makeVideo2(){\n\n\t\tlong startTime;\n\n\t\tint imageWidth = (int) (imageSize.width%2==0? \n\t\t\t\t(imageSize.width):(imageSize.width-1));\n\t\tint imageHeight = (int) (imageSize.height%2==0? \n\t\t\t\t(imageSize.height):(imageSize.height-1)); //\n\n\t\t// Create the writer\n\t\tfinal IMediaWriter writer = ToolFactory.makeWriter(outputFilePath+\"\\\\\"+videoName);\n\n\t\t// Add video stream\n\t\tICodec videoCodec = ICodec.findEncodingCodec(ICodec.ID.CODEC_ID_H264);\n\t\twriter.addVideoStream(0, 0, videoCodec, imageWidth, imageHeight);\n\t\t\n\t\tint s=0;\n\t\tstartTime = System.nanoTime();\n\t\tfor (int i = 0; i < phonems.length-1; i++) {\n\t\t\tImage[] frames = hashMapPhonFrames.get(phonems[i]+\"|\"+phonems[i+1]);\n\n\t\t\tfor (int k=0; k<frames.length;k++) {\n\t\t\t\ts++;\n\t\t\t\tBufferedImage frameBuff;\n\t\t\t\tframeBuff = new BufferedImage(imageSize.width,imageSize.height,\n\t\t\t\t\t\tBufferedImage.TYPE_3BYTE_BGR);\n\t\t\t\tframeBuff.getGraphics().drawImage(SwingFXUtils.fromFXImage(frames[k], null), 0, 0, null);\n\n\t\t\t\tGraphics g = frameBuff.getGraphics();\n\t\t\t\tgetSubTitle(g, phonemsRange[i]); // להעביר לפני הלולאה הזו\n\t\t\t\tlong time = System.nanoTime() - startTime;\n\t\t\t\twriter.encodeVideo(0, frameBuff, time, \n\t\t\t\t\t\tTimeUnit.NANOSECONDS);\n\t\t\t\t \n\t\t\t\t// Sleep frame rate (milliseconds)\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep((long) (1000/FRAME_RATE));\n\t\t\t\t} \n\t\t\t\tcatch (InterruptedException e) {\n\t\t\t\t}\n\t\t\t}\t\t\t\t\n\t\t}\n\t\twriter.close();\n\t\tSystem.out.println(s);\n\t}", "title": "" }, { "docid": "b9f00baf46dcddd987a24884bb3c61cb", "score": "0.5783896", "text": "public VideoService() {\n this.vm = VideoManagerImpl.getInstance();\n if (vm.size()==0) {\n this.vm.addVideo(\"Avengers\", \"2h y 32min\");\n this.vm.addVideo(\"Endgame\", \"Not worth it\");\n this.vm.addVideo(\"PinyPon\", \"150min\");\n }\n }", "title": "" }, { "docid": "7076cbd045adb032396ab2199c0e341c", "score": "0.5781892", "text": "public void onCreateRenderThread(RenderThread t) {\r\n }", "title": "" }, { "docid": "67b4d6fc5f4fb88fab3f4d661baa95aa", "score": "0.5778953", "text": "@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig eglConfig) {\n }", "title": "" }, { "docid": "668132a1e6ecd16a1b737a648d0bdb29", "score": "0.577752", "text": "@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n\n //UsbCamera camera = new UsbCamera(\"cam0\",0);\n //camera.setFPS(15);\n //camera.setResolution(320, 240); //320 = width, 240 = height\n //CameraServer.getInstance().startAutomaticCapture(camera);\n new Thread(() -> {\n UsbCamera camera = CameraServer.getInstance().startAutomaticCapture();\n camera.setResolution(320, 240);\n\n CvSink cvSink = CameraServer.getInstance().getVideo();\n CvSource outputStream = CameraServer.getInstance().putVideo(\"Blur\", 320, 240);\n\n Mat source = new Mat();\n Mat output = new Mat();\n\n while(!Thread.interrupted()) {\n if (cvSink.grabFrame(source) == 0) {\n continue;\n }\n Imgproc.cvtColor(source, output, Imgproc.COLOR_BGR2GRAY);\n outputStream.putFrame(output);\n }\n }).start();\n \n\n }", "title": "" }, { "docid": "18ae081cd43e0b88359928e804bee9be", "score": "0.57744247", "text": "public H265Video() {\n }", "title": "" }, { "docid": "1b02aef9bb1c60aa7ea32b74aa566db2", "score": "0.5761341", "text": "void render(GuiRenderer renderer);", "title": "" }, { "docid": "edd100b54996d287ce248a22d0065009", "score": "0.5749084", "text": "@Override\n public void onStart(MediaPlayer mediaPlayer) {\n Log.d(\"onStart\", \"onStart UniversalVideoView callback\");\n }", "title": "" }, { "docid": "2f163fd2ecb28734450d449fa573c6ff", "score": "0.57472116", "text": "private void setUpScene(){\n\n //Load in Icons\n Image switchCamIcon = null;\n try {\n switchCamIcon = new Image(new FileInputStream(\"src/main/resources/images/camera.png\"),50,50,true,true);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n changeCameraBtn.setGraphic(new ImageView(switchCamIcon));\n\n\n //Setup ImageView\n videoFrame.setFitHeight(800);\n videoFrame.setFitWidth(495);\n videoFrame.setPreserveRatio(true);\n }", "title": "" }, { "docid": "c70d363877a5e90174860824ee9ba41d", "score": "0.5746288", "text": "@Override\r\n public void onUpdated(Preview.PreviewOutput output){\r\n ViewGroup parent = (ViewGroup) textureView.getParent();\r\n textureView.setFocusable(true);\r\n parent.removeView(textureView);\r\n parent.addView(textureView, 0);\r\n\r\n textureView.setSurfaceTexture(output.getSurfaceTexture());\r\n updateTransform();\r\n }", "title": "" }, { "docid": "c22dd2ae6d73c0e6fe87fc9d57c2e2c3", "score": "0.5741802", "text": "public interface VlcPlayerApi {\n void initialize();\n void create(CreateMessage arg);\n void dispose(ViewMessage arg);\n void setStreamUrl(SetMediaMessage arg);\n void play(ViewMessage arg);\n void pause(ViewMessage arg);\n void stop(ViewMessage arg);\n BooleanMessage isPlaying(ViewMessage arg);\n BooleanMessage isSeekable(ViewMessage arg);\n void setLooping(LoopingMessage arg);\n void seekTo(PositionMessage arg);\n PositionMessage position(ViewMessage arg);\n DurationMessage duration(ViewMessage arg);\n void setVolume(VolumeMessage arg);\n VolumeMessage getVolume(ViewMessage arg);\n void setPlaybackSpeed(PlaybackSpeedMessage arg);\n PlaybackSpeedMessage getPlaybackSpeed(ViewMessage arg);\n SnapshotMessage takeSnapshot(ViewMessage arg);\n TrackCountMessage getSpuTracksCount(ViewMessage arg);\n SpuTracksMessage getSpuTracks(ViewMessage arg);\n void setSpuTrack(SpuTrackMessage arg);\n SpuTrackMessage getSpuTrack(ViewMessage arg);\n void setSpuDelay(DelayMessage arg);\n DelayMessage getSpuDelay(ViewMessage arg);\n void addSubtitleTrack(AddSubtitleMessage arg);\n TrackCountMessage getAudioTracksCount(ViewMessage arg);\n AudioTracksMessage getAudioTracks(ViewMessage arg);\n void setAudioTrack(AudioTrackMessage arg);\n AudioTrackMessage getAudioTrack(ViewMessage arg);\n void setAudioDelay(DelayMessage arg);\n DelayMessage getAudioDelay(ViewMessage arg);\n void addAudioTrack(AddAudioMessage arg);\n TrackCountMessage getVideoTracksCount(ViewMessage arg);\n VideoTracksMessage getVideoTracks(ViewMessage arg);\n void setVideoTrack(VideoTrackMessage arg);\n VideoTrackMessage getVideoTrack(ViewMessage arg);\n void setVideoScale(VideoScaleMessage arg);\n VideoScaleMessage getVideoScale(ViewMessage arg);\n void setVideoAspectRatio(VideoAspectRatioMessage arg);\n VideoAspectRatioMessage getVideoAspectRatio(ViewMessage arg);\n RendererServicesMessage getAvailableRendererServices(ViewMessage arg);\n void startRendererScanning(RendererScanningMessage arg);\n void stopRendererScanning(ViewMessage arg);\n RendererDevicesMessage getRendererDevices(ViewMessage arg);\n void castToRenderer(RenderDeviceMessage arg);\n BooleanMessage startRecording(RecordMessage arg);\n BooleanMessage stopRecording(ViewMessage arg);\n\n /** Sets up an instance of `VlcPlayerApi` to handle messages through the `binaryMessenger`. */\n static void setup(BinaryMessenger binaryMessenger, VlcPlayerApi api) {\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.initialize\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n api.initialize();\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.create\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n CreateMessage input = CreateMessage.fromMap((Map<String, Object>)message);\n api.create(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.dispose\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n api.dispose(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setStreamUrl\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n SetMediaMessage input = SetMediaMessage.fromMap((Map<String, Object>)message);\n api.setStreamUrl(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.play\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n api.play(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.pause\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n api.pause(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.stop\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n api.stop(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.isPlaying\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n BooleanMessage output = api.isPlaying(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.isSeekable\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n BooleanMessage output = api.isSeekable(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setLooping\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n LoopingMessage input = LoopingMessage.fromMap((Map<String, Object>)message);\n api.setLooping(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.seekTo\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n PositionMessage input = PositionMessage.fromMap((Map<String, Object>)message);\n api.seekTo(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.position\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n PositionMessage output = api.position(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.duration\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n DurationMessage output = api.duration(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setVolume\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n VolumeMessage input = VolumeMessage.fromMap((Map<String, Object>)message);\n api.setVolume(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getVolume\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n VolumeMessage output = api.getVolume(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setPlaybackSpeed\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n PlaybackSpeedMessage input = PlaybackSpeedMessage.fromMap((Map<String, Object>)message);\n api.setPlaybackSpeed(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getPlaybackSpeed\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n PlaybackSpeedMessage output = api.getPlaybackSpeed(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.takeSnapshot\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n SnapshotMessage output = api.takeSnapshot(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getSpuTracksCount\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n TrackCountMessage output = api.getSpuTracksCount(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getSpuTracks\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n SpuTracksMessage output = api.getSpuTracks(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setSpuTrack\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n SpuTrackMessage input = SpuTrackMessage.fromMap((Map<String, Object>)message);\n api.setSpuTrack(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getSpuTrack\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n SpuTrackMessage output = api.getSpuTrack(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setSpuDelay\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n DelayMessage input = DelayMessage.fromMap((Map<String, Object>)message);\n api.setSpuDelay(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getSpuDelay\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n DelayMessage output = api.getSpuDelay(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.addSubtitleTrack\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n AddSubtitleMessage input = AddSubtitleMessage.fromMap((Map<String, Object>)message);\n api.addSubtitleTrack(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getAudioTracksCount\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n TrackCountMessage output = api.getAudioTracksCount(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getAudioTracks\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n AudioTracksMessage output = api.getAudioTracks(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setAudioTrack\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n AudioTrackMessage input = AudioTrackMessage.fromMap((Map<String, Object>)message);\n api.setAudioTrack(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getAudioTrack\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n AudioTrackMessage output = api.getAudioTrack(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setAudioDelay\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n DelayMessage input = DelayMessage.fromMap((Map<String, Object>)message);\n api.setAudioDelay(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getAudioDelay\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n DelayMessage output = api.getAudioDelay(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.addAudioTrack\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n AddAudioMessage input = AddAudioMessage.fromMap((Map<String, Object>)message);\n api.addAudioTrack(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getVideoTracksCount\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n TrackCountMessage output = api.getVideoTracksCount(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getVideoTracks\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n VideoTracksMessage output = api.getVideoTracks(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setVideoTrack\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n VideoTrackMessage input = VideoTrackMessage.fromMap((Map<String, Object>)message);\n api.setVideoTrack(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getVideoTrack\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n VideoTrackMessage output = api.getVideoTrack(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setVideoScale\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n VideoScaleMessage input = VideoScaleMessage.fromMap((Map<String, Object>)message);\n api.setVideoScale(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getVideoScale\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n VideoScaleMessage output = api.getVideoScale(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.setVideoAspectRatio\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n VideoAspectRatioMessage input = VideoAspectRatioMessage.fromMap((Map<String, Object>)message);\n api.setVideoAspectRatio(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getVideoAspectRatio\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n VideoAspectRatioMessage output = api.getVideoAspectRatio(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getAvailableRendererServices\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n RendererServicesMessage output = api.getAvailableRendererServices(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.startRendererScanning\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n RendererScanningMessage input = RendererScanningMessage.fromMap((Map<String, Object>)message);\n api.startRendererScanning(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.stopRendererScanning\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n api.stopRendererScanning(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.getRendererDevices\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n RendererDevicesMessage output = api.getRendererDevices(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.castToRenderer\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n RenderDeviceMessage input = RenderDeviceMessage.fromMap((Map<String, Object>)message);\n api.castToRenderer(input);\n wrapped.put(\"result\", null);\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.startRecording\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n RecordMessage input = RecordMessage.fromMap((Map<String, Object>)message);\n BooleanMessage output = api.startRecording(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n {\n BasicMessageChannel<Object> channel =\n new BasicMessageChannel<>(binaryMessenger, \"dev.flutter.pigeon.VlcPlayerApi.stopRecording\", new StandardMessageCodec());\n if (api != null) {\n channel.setMessageHandler((message, reply) -> {\n Map<String, Object> wrapped = new HashMap<>();\n try {\n @SuppressWarnings(\"ConstantConditions\")\n ViewMessage input = ViewMessage.fromMap((Map<String, Object>)message);\n BooleanMessage output = api.stopRecording(input);\n wrapped.put(\"result\", output.toMap());\n }\n catch (Error | RuntimeException exception) {\n wrapped.put(\"error\", wrapError(exception));\n }\n reply.reply(wrapped);\n });\n } else {\n channel.setMessageHandler(null);\n }\n }\n }\n }", "title": "" }, { "docid": "fe5ac03afed1358d3f847d9e57f7f23f", "score": "0.5735899", "text": "void onRender(float time);", "title": "" }, { "docid": "52ba71f7aa42f79cc4b4841a5213f877", "score": "0.573356", "text": "@Override\r\n\tpublic void initialize(URL url, ResourceBundle rb) {\r\n\t\t// TODO\r\n\t\t\r\n\t\t\r\n//\t\t\tMedia media = null;\r\n// try{\r\n// File video = new File(\"1.mp4\");\r\n// String url2 = video.toURI().toURL().toString();\r\n//// System.out.println(\"URL: \"+url);\r\n// media = new Media(url2);\r\n// }catch(Exception e){\r\n//// System.err.println(e.toString());\r\n// }\r\n// MediaPlayer player = new MediaPlayer(media);\r\n// player.play();\r\n// MediaView mediaView = new MediaView(player);\r\n//\r\n// panelGrafiica = new StackPane();\r\n//// root.setAlignment(Pos.CENTER);\r\n// panelGrafiica.setStyle(\"-fx-background-color : white;\");\r\n// panelGrafiica.getChildren().add(mediaView);\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n//\t\t StackPane root = new StackPane();\r\n\r\n MediaPlayer player2 = new MediaPlayer( new Media(getClass().getResource(\"2.mp4\").toExternalForm()));\r\n MediaView mediaView2 = new MediaView(player2);\r\n\tmediaView2.setFitWidth(400);\r\n\tmediaView2.setFitHeight(200);\r\n videoPanel.getChildren().add(mediaView2);\r\n\r\n// Scene scene = new Scene(root, 1024, 768);\r\n\r\n// primaryStage.setScene(scene);\r\n// primaryStage.show();\r\n\r\n\r\n player2.play();\r\n\t\r\n\t}", "title": "" }, { "docid": "b88c6159dce0a01c4a32a17e99d298b1", "score": "0.57328784", "text": "public Video()\n {\n\n }", "title": "" }, { "docid": "0bfb37d82f7b3d67d3a68bdeb38a242e", "score": "0.57298285", "text": "public GUI_Gestionar_Videojuegos() {\n initComponents();\n setLocationRelativeTo(null);\n this.getContentPane().setBackground(new java.awt.Color(72, 72, 72));\n\n }", "title": "" }, { "docid": "30c352c8f080d44d651f6d4356f4d50d", "score": "0.57259196", "text": "@Override\r\n\tpublic void onSurfaceTextureUpdated(SurfaceTexture surface) {\n\r\n\t}", "title": "" }, { "docid": "21f8cbf041352f9b3ae559b1e8b877de", "score": "0.5719773", "text": "private VideoInternalFrame(File f) {\n initComponents();\n fMedia = f;\n EmbeddedMediaPlayerComponent aVisual = new EmbeddedMediaPlayerComponent();\n getContentPane().add(aVisual, java.awt.BorderLayout.CENTER);\n vlcPlayer = aVisual.getMediaPlayer();\n }", "title": "" }, { "docid": "e8de62135c1e228f0911a875e2f326cd", "score": "0.5717616", "text": "@Override\n public void onRewardedVideoClosed() {\n\n\n }", "title": "" }, { "docid": "14dfb90196b79b688b59f3a8e3ab2b1c", "score": "0.5710579", "text": "@Override\n\tpublic void ultraHighQualityVideos(String blueray) {\n\t\t\n\t}", "title": "" }, { "docid": "e5207f95ed074e018f2b1bb9dc419a38", "score": "0.5699498", "text": "@Override\n public void onVideoEnded() {\n }", "title": "" }, { "docid": "e5207f95ed074e018f2b1bb9dc419a38", "score": "0.5699498", "text": "@Override\n public void onVideoEnded() {\n }", "title": "" }, { "docid": "e916cae51bcbfba2a135b5bcb9746369", "score": "0.5692581", "text": "protected void onBeforeRender(StreamingRenderer renderer) {\n // TODO Auto-generated method stub\n }", "title": "" }, { "docid": "f8b927ac65397f1f05e4beb22cf57c5f", "score": "0.56910795", "text": "public void setup () {\n size(800, 300); \n \n cam = new IPCapture(this, \"http://173.174.79.172:8081\", \"\", \"\");\n cam.start();\n\n textFont(createFont(\"SanSerif\", 8));\n\n thisClient = new Client(this, \"173.174.79.172\", port);\n\n background(0);\n frameRate(30); // Slow it down a little\n}", "title": "" }, { "docid": "76a83c77b8d17cbd14570c7366b8da1f", "score": "0.56889254", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.media_buffer);\n\n //preview surface\n SurfaceView surView = (SurfaceView)findViewById(R.id.surface);\n// surView.setAspectRatio(320.0f/240.0f);\n SurfaceHolder holder = surView.getHolder();\n holder.addCallback(this);\n holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\n\n //camera!\n mCamera = Camera.open();\n mCamera.setDisplayOrientation(90);\n //handler\n mHandler = new Handler(this);\n mToaster = new Handler(this);\n OUTPUT_FILE = this.getFilesDir().getAbsolutePath()+\"/recorded\";\n// OUTPUT_FILE = Environment.getExternalStorageDirectory().getAbsolutePath()+\"/video_output\";\n }", "title": "" }, { "docid": "0f8098f844c8201774c4483274d08246", "score": "0.5684409", "text": "@Override\n\tpublic void surfaceCreated(SurfaceHolder arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "cb6c159e7269bf195fbd6a3351b6d6d5", "score": "0.5669582", "text": "public static void main(String[] args) {\n\t\t\t create(\"videoConfig\",\"VideoConfig\", \"18\");\n\t\t\t \n\t\t}", "title": "" }, { "docid": "f9046229fc9f069aa41c2274700e680b", "score": "0.5653934", "text": "void onGLSurfaceCreated();", "title": "" }, { "docid": "fba3eefd230de36ecfd35429a00b0b24", "score": "0.56439704", "text": "@Override\n // Invoked when a TextureView's SurfaceTexture is ready for use\n public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i1) {\n provider = new H264Provider(getResources().openRawResource(R.raw.video));\n\n //Create the format settings for the MediaCodec\n MediaFormat format = MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, width, height);\n // Set the SPS frame\n format.setByteBuffer(\"csd-0\", ByteBuffer.wrap(provider.getSPS()));\n // Set the PPS frame\n format.setByteBuffer(\"csd-1\", ByteBuffer.wrap(provider.getPPS()));\n // Set the buffer size\n format.setInteger(MediaFormat.KEY_MAX_INPUT_SIZE, width * height);\n\n try {\n // Get an instance of MediaCodec and give it its Mime type\n m_codec = MediaCodec.createDecoderByType(MediaFormat.MIMETYPE_VIDEO_AVC);\n // Configure the codec\n m_codec.configure(format, new Surface(m_surface.getSurfaceTexture()), null, 0);\n // Start the codec\n m_codec.start();\n // Create the AsyncTask to get the frames and decode them using the Codec\n m_frameTask = new DecodeFramesTask();\n m_frameTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0226fdb4238d6634a45606b7e3add47e", "score": "0.5636881", "text": "@Override\n\tpublic void surfaceCreated(SurfaceHolder arg0) {\n\n\t}", "title": "" }, { "docid": "0226fdb4238d6634a45606b7e3add47e", "score": "0.5636881", "text": "@Override\n\tpublic void surfaceCreated(SurfaceHolder arg0) {\n\n\t}", "title": "" }, { "docid": "0226fdb4238d6634a45606b7e3add47e", "score": "0.5636881", "text": "@Override\n\tpublic void surfaceCreated(SurfaceHolder arg0) {\n\n\t}", "title": "" }, { "docid": "0226fdb4238d6634a45606b7e3add47e", "score": "0.5636881", "text": "@Override\n\tpublic void surfaceCreated(SurfaceHolder arg0) {\n\n\t}", "title": "" }, { "docid": "6526f4fb0c3e17b14d01196562e6b229", "score": "0.5635423", "text": "@Override\n public void surfaceCreated(android.view.SurfaceHolder holder)\n {\n mp.setDisplay(holder);\n //play();\n }", "title": "" }, { "docid": "ad11b2e00a9779efbc9867761a668e91", "score": "0.5634944", "text": "public interface Renderer {\n\t\n\t/**\n\t * Render and return a new frame.\n\t * Renderes should expect calls to this method roughly in line with the\n\t * framerate of the floor to which they are being drawn; however,\n\t * this may not always be the case, for instance if the renderer is paused\n\t * by the user.\n\t */\n\tpublic byte[] drawFrame();\n\t\n}", "title": "" }, { "docid": "3b235acdf93ca2655226a1fc8916f58d", "score": "0.5634455", "text": "private void setCodecCallback() {\n _videoEncoder.setCallback(new MediaCodec.Callback() {\n @Override\n public void onInputBufferAvailable(MediaCodec codec, int index) {\n\n }\n\n @Override\n public void onOutputBufferAvailable(MediaCodec codec, int index, MediaCodec.BufferInfo info) {\n ByteBuffer buffer = codec.getOutputBuffer(index);\n if(buffer != null) {\n\n _presenterCallback.getVideoOutputBufferAvailable(info, buffer);\n\n }\n codec.releaseOutputBuffer(index, false);\n\n }\n\n @Override\n public void onError(MediaCodec codec, MediaCodec.CodecException e) {\n _presenterCallback.getVideoEncodedErrorMsg(\"Set Codec Callback error!\");\n\n }\n\n @Override\n public void onOutputFormatChanged(MediaCodec codec, MediaFormat format) {\n _presenterCallback.getVideoOutputFormatChanged(format);\n }\n });\n\n }", "title": "" }, { "docid": "13b3a8403828266d6c69fea7d797e638", "score": "0.56302613", "text": "VideoDataResource createVideoDataResource();", "title": "" }, { "docid": "3d0ae47dd0d904a1dae5093296168927", "score": "0.5627642", "text": "public void AsignoVideo(final Context ctx ,final String Video){\n if(Video!=null){\n JCVideoPlayerStandard Video_Post = (JCVideoPlayerStandard) pView.findViewById(R.id.post_video);\n Video_Post.setUp(Video , JCVideoPlayerStandard.CURRENT_STATE_NORMAL,\"\");\n Video_Post.setVisibility(pView.VISIBLE);\n }\n }", "title": "" }, { "docid": "895803b60c63a606a9e76eb4359a343a", "score": "0.56272125", "text": "public void initialize() {\n setIcon(playBT,playIcon,25);\n setIcon(stopBT,stopIcon,25);\n setIcon(volumeBT,volOnIcon,15);\n setIcon(maxBT,maxIcon,25);\n setIcon(favouriteBT, favouriteIcon, 25);\n java.io.File file = new java.io.File(\"src/main/resources/\"+MainPageController.path);\n url = file.toURI().toString();\n media = new Media(url);\n mediaPlayer = new MediaPlayer(media);\n mediaView.setMediaPlayer(mediaPlayer);\n\n scene = playBT.getScene();\n\n mediaPlayer.setCycleCount(repeat ? MediaPlayer.INDEFINITE : 1);\n //When the video is ready, update the data of progress bar, time tag and volume bar, and set the layout size\n mediaPlayer.setOnReady(new Runnable(){\n @Override\n public void run() {\n duration = mediaPlayer.getMedia().getDuration();\n volumeValue = mediaPlayer.getVolume();\n\n mediaHeight = media.getHeight();\n mediaWidth = media.getWidth();\n\n //Set layout size\n setSize(1000,675);\n\n //Set UI changes for full screen: the toolbar appears only when the mouse enters MediaView\n EventHandler onScreen = new EventHandler<InputEvent>(){\n @Override\n public void handle(InputEvent event) {\n controlBar.setVisible(true);\n }\n };\n EventHandler offScreen = new EventHandler<InputEvent>(){\n @Override\n public void handle(InputEvent event) {\n controlBar.setVisible(false);\n }\n };\n if(scene != null){\n ((Stage)scene.getWindow()).fullScreenProperty().addListener(new ChangeListener<Boolean>() {\n @Override\n public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\n if (newValue.booleanValue()) {\n controlBar.setVisible(false);\n mediaPane.addEventHandler(MouseEvent.MOUSE_CLICKED, onScreen);\n controlBar.addEventHandler(MouseEvent.MOUSE_EXITED, offScreen);\n }else{\n controlBar.setVisible(true);\n mediaPane.removeEventHandler(MouseEvent.MOUSE_CLICKED,onScreen);\n controlBar.removeEventHandler(MouseEvent.MOUSE_EXITED,offScreen);\n }\n }\n });\n }\n updateValues();\n }\n });\n\n //When the current progress of mediaplayer changes, the data of progress bar, time tag and volume bar will change\n mediaPlayer.currentTimeProperty().addListener(new ChangeListener<Duration>(){\n @Override\n public void changed(ObservableValue<? extends Duration> observable, Duration oldValue, Duration newValue) {\n updateValues();\n }\n });\n\n }", "title": "" }, { "docid": "59b7f4adcff0a72fd221ce531d862c4e", "score": "0.5623043", "text": "private float getVideoProportion(){\n return 1.5f;\n }", "title": "" }, { "docid": "0ce74566eec357197c4ebee6a947bbe5", "score": "0.5619254", "text": "@Override\n public void runOpMode() {\n webcamName = hardwareMap.get(WebcamName.class, \"Webcam 1\");\n\n /*\n * To start up Vuforia, tell it the view that we wish to use for camera monitor (on the RC phone);\n * If no camera monitor is desired, use the parameterless constructor instead (commented out below).\n */\n int cameraMonitorViewId = hardwareMap\n .appContext.getResources()\n .getIdentifier(\n \"cameraMonitorViewId\",\n \"id\",\n hardwareMap.appContext.getPackageName()\n );\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(\n cameraMonitorViewId\n );\n\n // OR... Do Not Activate the Camera Monitor View, to save power\n // VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n /*\n * IMPORTANT: You need to obtain your own license key to use Vuforia. The string below with which\n * 'parameters.vuforiaLicenseKey' is initialized is for illustration only, and will not function.\n * A Vuforia 'Development' license key, can be obtained free of charge from the Vuforia developer\n * web site at https://developer.vuforia.com/license-manager.\n *\n * Vuforia license keys are always 380 characters long, and look as if they contain mostly\n * random data. As an example, here is a example of a fragment of a valid key:\n * ... yIgIzTqZ4mWjk9wd3cZO9T1axEqzuhxoGlfOOI2dRzKS4T0hQ8kT ...\n * Once you've obtained a license key, copy the string from the Vuforia web site\n * and paste it in to your code on the next line, between the double quotes.\n */\n parameters.vuforiaLicenseKey = \" -- YOUR NEW VUFORIA KEY GOES HERE --- \";\n\n /**\n * We also indicate which camera on the RC we wish to use.\n */\n parameters.cameraName = webcamName;\n\n /**\n * Instantiate the Vuforia engine\n */\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n /**\n * Because this opmode processes frames in order to write them to a file, we tell Vuforia\n * that we want to ensure that certain frame formats are available in the {@link Frame}s we\n * see.\n */\n vuforia.enableConvertFrameToBitmap();\n\n /** @see #captureFrameToFile() */\n AppUtil.getInstance().ensureDirectoryExists(captureDirectory);\n\n /**\n * Load the data sets that for the trackable objects we wish to track. These particular data\n * sets are stored in the 'assets' part of our application (you'll see them in the Android\n * Studio 'Project' view over there on the left of the screen). You can make your own datasets\n * with the Vuforia Target Manager: https://developer.vuforia.com/target-manager. PDFs for the\n * example \"StonesAndChips\", datasets can be found in in this project in the\n * documentation directory.\n */\n VuforiaTrackables stonesAndChips = vuforia.loadTrackablesFromAsset(\n \"StonesAndChips\"\n );\n VuforiaTrackable redTarget = stonesAndChips.get(0);\n redTarget.setName(\"RedTarget\"); // Stones\n\n VuforiaTrackable blueTarget = stonesAndChips.get(1);\n blueTarget.setName(\"BlueTarget\"); // Chips\n\n /** For convenience, gather together all the trackable objects in one easily-iterable collection */\n List<VuforiaTrackable> allTrackables = new ArrayList<VuforiaTrackable>();\n allTrackables.addAll(stonesAndChips);\n\n /**\n * We use units of mm here because that's the recommended units of measurement for the\n * size values specified in the XML for the ImageTarget trackables in data sets. E.g.:\n * <ImageTarget name=\"stones\" size=\"247 173\"/>\n * You don't *have to* use mm here, but the units here and the units used in the XML\n * target configuration files *must* correspond for the math to work out correctly.\n */\n float mmPerInch = 25.4f;\n float mmBotWidth = 18 * mmPerInch; // ... or whatever is right for your robot\n float mmFTCFieldWidth = (12 * 12 - 2) * mmPerInch; // the FTC field is ~11'10\" center-to-center of the glass panels\n\n /**\n * In order for localization to work, we need to tell the system where each target we\n * wish to use for navigation resides on the field, and we need to specify where on the robot\n * the camera resides. These specifications are in the form of <em>transformation matrices.</em>\n * Transformation matrices are a central, important concept in the math here involved in localization.\n * See <a href=\"https://en.wikipedia.org/wiki/Transformation_matrix\">Transformation Matrix</a>\n * for detailed information. Commonly, you'll encounter transformation matrices as instances\n * of the {@link OpenGLMatrix} class.\n *\n * For the most part, you don't need to understand the details of the math of how transformation\n * matrices work inside (as fascinating as that is, truly). Just remember these key points:\n * <ol>\n *\n * <li>You can put two transformations together to produce a third that combines the effect of\n * both of them. If, for example, you have a rotation transform R and a translation transform T,\n * then the combined transformation matrix RT which does the rotation first and then the translation\n * is given by {@code RT = T.multiplied(R)}. That is, the transforms are multiplied in the\n * <em>reverse</em> of the chronological order in which they applied.</li>\n *\n * <li>A common way to create useful transforms is to use methods in the {@link OpenGLMatrix}\n * class and the Orientation class. See, for example, {@link OpenGLMatrix#translation(float,\n * float, float)}, {@link OpenGLMatrix#rotation(AngleUnit, float, float, float, float)}, and\n * {@link Orientation#getRotationMatrix(AxesReference, AxesOrder, AngleUnit, float, float, float)}.\n * Related methods in {@link OpenGLMatrix}, such as {@link OpenGLMatrix#rotated(AngleUnit,\n * float, float, float, float)}, are syntactic shorthands for creating a new transform and\n * then immediately multiplying the receiver by it, which can be convenient at times.</li>\n *\n * <li>If you want to break open the black box of a transformation matrix to understand\n * what it's doing inside, use {@link MatrixF#getTranslation()} to fetch how much the\n * transform will move you in x, y, and z, and use {@link Orientation#getOrientation(MatrixF,\n * AxesReference, AxesOrder, AngleUnit)} to determine the rotational motion that the transform\n * will impart. See {@link #format(OpenGLMatrix)} below for an example.</li>\n *\n * </ol>\n *\n * This example places the \"stones\" image on the perimeter wall to the Left\n * of the Red Driver station wall. Similar to the Red Beacon Location on the Res-Q\n *\n * This example places the \"chips\" image on the perimeter wall to the Right\n * of the Blue Driver station. Similar to the Blue Beacon Location on the Res-Q\n *\n * See the doc folder of this project for a description of the Field Coordinate System\n * conventions.\n *\n * Initially the target is conceptually lying at the origin of the Field Coordinate System\n * (the center of the field), facing up.\n *\n * In this configuration, the target's coordinate system aligns with that of the field.\n *\n * In a real situation we'd also account for the vertical (Z) offset of the target,\n * but for simplicity, we ignore that here; for a real robot, you'll want to fix that.\n *\n * To place the Stones Target on the Red Audience wall:\n * - First we rotate it 90 around the field's X axis to flip it upright\n * - Then we rotate it 90 around the field's Z access to face it away from the audience.\n * - Finally, we translate it back along the X axis towards the red audience wall.\n */\n OpenGLMatrix redTargetLocationOnField = OpenGLMatrix\n /* Then we translate the target off to the RED WALL. Our translation here\n is a negative translation in X.*/\n .translation(-mmFTCFieldWidth / 2, 0, 0)\n .multiplied(\n Orientation.getRotationMatrix(\n /* First, in the fixed (field) coordinate system, we rotate 90deg in X, then 90 in Z */\n AxesReference.EXTRINSIC,\n AxesOrder.XZX,\n AngleUnit.DEGREES,\n 90,\n 90,\n 0\n )\n );\n redTarget.setLocationFtcFieldFromTarget(redTargetLocationOnField);\n RobotLog.ii(TAG, \"Red Target=%s\", format(redTargetLocationOnField));\n\n /*\n * To place the Stones Target on the Blue Audience wall:\n * - First we rotate it 90 around the field's X axis to flip it upright\n * - Finally, we translate it along the Y axis towards the blue audience wall.\n */\n OpenGLMatrix blueTargetLocationOnField = OpenGLMatrix\n /* Then we translate the target off to the Blue Audience wall.\n Our translation here is a positive translation in Y.*/\n .translation(0, mmFTCFieldWidth / 2, 0)\n .multiplied(\n Orientation.getRotationMatrix(\n /* First, in the fixed (field) coordinate system, we rotate 90deg in X */\n AxesReference.EXTRINSIC,\n AxesOrder.XZX,\n AngleUnit.DEGREES,\n 90,\n 0,\n 0\n )\n );\n blueTarget.setLocationFtcFieldFromTarget(blueTargetLocationOnField);\n RobotLog.ii(TAG, \"Blue Target=%s\", format(blueTargetLocationOnField));\n\n /**\n * We also need to tell Vuforia where the <em>cameras</em> are relative to the robot.\n *\n * Just as there is a Field Coordinate System, so too there is a Robot Coordinate System.\n * The two share many similarities. The origin of the Robot Coordinate System is wherever\n * you choose to make it on the robot, but typically you'd choose somewhere in the middle\n * of the robot. From that origin, the Y axis is horizontal and positive out towards the\n * \"front\" of the robot (however you choose \"front\" to be defined), the X axis is horizontal\n * and positive out towards the \"right\" of the robot (i.e.: 90deg horizontally clockwise from\n * the positive Y axis), and the Z axis is vertical towards the sky.\n *\n * Similarly, for each camera there is a Camera Coordinate System. The origin of a Camera\n * Coordinate System lies in the middle of the sensor inside of the camera. The Z axis is\n * positive coming out of the lens of the camera in a direction perpendicular to the plane\n * of the sensor. When looking at the face of the lens of the camera (down the positive Z\n * axis), the X axis is positive off to the right in the plane of the sensor, and the Y axis\n * is positive out the top of the lens in the plane of the sensor at 90 horizontally\n * counter clockwise from the X axis.\n *\n * Next, there is Phone Coordinate System (for robots that have phones, of course), though\n * with the advent of Vuforia support for Webcams, this coordinate system is less significant\n * than it was previously. The Phone Coordinate System is defined thusly: with the phone in\n * flat front of you in portrait mode (i.e. as it is when running the robot controller app)\n * and you are staring straight at the face of the phone,\n * * X is positive heading off to your right,\n * * Y is positive heading up through the top edge of the phone, and\n * * Z is pointing out of the screen, toward you.\n * The origin of the Phone Coordinate System is at the origin of the Camera Coordinate System\n * of the front-facing camera on the phone.\n *\n * Finally, it is worth noting that trackable Vuforia Image Targets have their <em>own</em>\n * coordinate system (see {@link VuforiaTrackable}. This is sometimes referred to as the\n * Target Coordinate System. In keeping with the above, when looking at the target in its\n * natural orientation, in the Target Coodinate System\n * * X is positive heading off to your right,\n * * Y is positive heading up through the top edge of the target, and\n * * Z is pointing out of the target, toward you.\n *\n * One can observe that the Camera Coordinate System of the front-facing camera on a phone\n * coincides with the Phone Coordinate System. Further, when a phone is placed on its back\n * at the origin of the Robot Coordinate System and aligned appropriately, those coordinate\n * systems also coincide with the Robot Coordinate System. Got it?\n *\n * In this example here, we're going to assume that we put the camera on the right side\n * of the robot (facing outwards, of course). To determine the transformation matrix that\n * describes that location, first consider the camera as lying on its back at the origin\n * of the Robot Coordinate System such that the Camera Coordinate System and Robot Coordinate\n * System coincide. Then the transformation we need is\n * * first a rotation of the camera by +90deg along the robot X axis,\n * * then a rotation of the camera by +90deg along the robot Z axis, and\n * * finally a translation of the camera to the side of the robot.\n *\n * When determining whether a rotation is positive or negative, consider yourself as looking\n * down the (positive) axis of rotation from the positive towards the origin. Positive rotations\n * are then CCW, and negative rotations CW. An example: consider looking down the positive Z\n * axis towards the origin. A positive rotation about Z (ie: a rotation parallel to the the X-Y\n * plane) is then CCW, as one would normally expect from the usual classic 2D geometry.\n */\n\n OpenGLMatrix robotFromCamera = OpenGLMatrix\n .translation(mmBotWidth / 2, 0, 0)\n .multiplied(\n Orientation.getRotationMatrix(\n AxesReference.EXTRINSIC,\n AxesOrder.XZY,\n AngleUnit.DEGREES,\n 90,\n 90,\n 0\n )\n );\n RobotLog.ii(TAG, \"camera=%s\", format(robotFromCamera));\n\n /**\n * Let the trackable listeners we care about know where the camera is. We know that each\n * listener is a {@link VuforiaTrackableDefaultListener} and can so safely cast because\n * we have not ourselves installed a listener of a different type.\n */\n (\n (VuforiaTrackableDefaultListener) redTarget.getListener()\n ).setCameraLocationOnRobot(parameters.cameraName, robotFromCamera);\n (\n (VuforiaTrackableDefaultListener) blueTarget.getListener()\n ).setCameraLocationOnRobot(parameters.cameraName, robotFromCamera);\n\n /**\n * A brief tutorial: here's how all the math is going to work:\n *\n * C = robotFromCamera maps camera coords -> robot coords\n * P = tracker.getPose() maps image target coords -> camera coords\n * L = redTargetLocationOnField maps image target coords -> field coords\n *\n * So\n *\n * C.inverted() maps robot coords -> camera coords\n * P.inverted() maps camera coords -> imageTarget coords\n *\n * Putting that all together,\n *\n * L x P.inverted() x C.inverted() maps robot coords to field coords.\n *\n * @see VuforiaTrackableDefaultListener#getRobotLocation()\n */\n\n /** Wait for the game to begin */\n telemetry.addData(\">\", \"Press Play to start tracking\");\n telemetry.update();\n waitForStart();\n\n /** Start tracking the data sets we care about. */\n stonesAndChips.activate();\n\n boolean buttonPressed = false;\n while (opModeIsActive()) {\n if (gamepad1.a && !buttonPressed) {\n captureFrameToFile();\n }\n buttonPressed = gamepad1.a;\n\n for (VuforiaTrackable trackable : allTrackables) {\n /**\n * getUpdatedRobotLocation() will return null if no new information is available since\n * the last time that call was made, or if the trackable is not currently visible.\n * getRobotLocation() will return null if the trackable is not currently visible.\n */\n telemetry.addData(\n trackable.getName(),\n (\n (VuforiaTrackableDefaultListener) trackable.getListener()\n ).isVisible()\n ? \"Visible\"\n : \"Not Visible\"\n ); //\n\n OpenGLMatrix robotLocationTransform =\n (\n (VuforiaTrackableDefaultListener) trackable.getListener()\n ).getUpdatedRobotLocation();\n if (robotLocationTransform != null) {\n lastLocation = robotLocationTransform;\n }\n }\n /**\n * Provide feedback as to where the robot was last located (if we know).\n */\n if (lastLocation != null) {\n // RobotLog.vv(TAG, \"robot=%s\", format(lastLocation));\n telemetry.addData(\"Pos\", format(lastLocation));\n } else {\n telemetry.addData(\"Pos\", \"Unknown\");\n }\n telemetry.update();\n }\n }", "title": "" }, { "docid": "65f3c7a31ddf2bb61b849791dd1bdd30", "score": "0.5615779", "text": "public void setVideo() {\n\t\tisSettingVideo = true;\n\t\t\n\t\tJSONObjectWrapper paramWork = null;\n\n\t\ttry {\n\t\t\tparamWork = new JSONObjectWrapper(this.jsonVideoParam);\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t\tprocessError(ERROR_ABORTED);\n\t\t}\n\n\t\tfinal JSONObjectWrapper param = paramWork;\n\t\t\n\t\tfinal ViewGroup.MarginLayoutParams layoutparam = (MarginLayoutParams) mVideoView\n\t\t\t\t.getLayoutParams();\n\t\tfinal int x = Utilities.getDPI(param.get(\"posX\", 0));\n\t\tfinal int y = Utilities.getDPI(param.get(\"posY\", 0));\n\t\tfinal int w = Utilities.getDPI(param.get(\"width\", 320));\n\t\tfinal int h = Utilities.getDPI(param.get(\"height\", 180));\n\t\tlayoutparam.leftMargin = x;\n\t\tlayoutparam.topMargin = y;\n\t\tframeX = x;\n\t\tframeY = y;\n\n\t\tDynamicAppActivity.handler.post(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tmVideoView.setLayoutParams(layoutparam);\n\t\t\t\tmVideoView.changeVideoSize(w, h);\n\t\t\t\tmVideoView.layout(x, y, x + w, y + h);\n\t\t\t\tmVideoView.setVisibility(DynamicAppVideoView.VISIBLE);\n\t\t\t\tmVideoView.requestFocus();\n\n\t\t\t\tif (controlStyle > 0) {\n\t\t\t\t\tMediaController mediaController = new MediaController(\n\t\t\t\t\t\t\tmainActivity);\n\t\t\t\t\tmediaController.setMediaPlayer(mVideoView);\n\t\t\t\t\tmVideoView.setMediaController(mediaController);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (movieFile.equals(\"\")) {\n\t\t\t\t\tprocessError(ERROR_ABORTED);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (movieFile.indexOf(\"http://\") != -1) {\n\t\t\t\t\tisSourceURL = true;\n\t\t\t\t\tmVideoView.setVideoURI(Uri.parse(movieFile));\n\t\t\t\t} else if (movieFile.indexOf(\"content://\") != -1) {\n\t\t\t\t\t//isSourceURL = true;\n\t\t\t\t\tmVideoView.setVideoURI(Uri.parse(movieFile));\n\t\t\t\t} else {\n\t\t\t\t\tisSourceURL = false;\n\t\t\t\t\tString path = Utilities.makePath(movieFile);\n\t\t\t\t\tDebugLog.e(TAG, \"[video] try:\" + path);\n\t\t\t\t\tif (new File(path).exists()) {\n\t\t\t\t\t\tmVideoView.setVideoPath(path);\n\t\t\t\t\t\tDebugLog.w(TAG, \"set video path\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprocessError(ERROR_ABORTED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "1ded5d53b48d3121a6f3cc8ba8d8c658", "score": "0.5613521", "text": "@Override\n public void onRewardedVideoCompleted() {\n\n }", "title": "" }, { "docid": "7c9cd214da062b70fb954fad997309a4", "score": "0.56130326", "text": "@Override\n\tpublic void onVideoSizeChanged(MediaPlayer arg0, int arg1, int arg2) {\n\n\t}", "title": "" }, { "docid": "11fb02d4e3891d3163d59d160926059d", "score": "0.5608681", "text": "private void startDroneVideoStream() {\n if (drone == null || !drone.getConfigurationManager().isConnected()) {\n System.err.println(\"Not connected to a drone properly...\");\n return;\n }\n\n drone.getVideoManager().addImageListener(new ImageListener() {\n @Override\n public void imageUpdated(BufferedImage image) {\n \tif (counter == FRAME_FREQUENCY) {\n \t\tupdateFrames(bufferedImageToMat(image));\t\n \t\tcounter = 0;\n \t} else {\n \t\tcounter++;\n \t}\n \n }\n });\n }", "title": "" }, { "docid": "c42156db354c98a12618d304ce0971d3", "score": "0.5603053", "text": "@Override\n public void onFrameAvailable(SurfaceTexture surfaceTexture) {\n // Log.d(TAG, \"onFrameAvailable()\");\n }", "title": "" }, { "docid": "0885449916aed94db9dad1f3c2fa80ef", "score": "0.5600793", "text": "public void onDisplay() {\n\n }", "title": "" }, { "docid": "6bf5d52872842c1469e26b6ff0addeb4", "score": "0.5597091", "text": "@Override // com.zhihu.android.video.player2.PluginFullScreenFragment\n /* renamed from: a */\n public void mo79991a() {\n super.mo79991a();\n Creative creative = this.f55981b.creatives.get(0);\n this.f92578a.mo113142a(new AdFullScreenPlayerPlugin(this.f55981b.videoTracks, this.f55981b.conversionTracks, creative.asset.deepUrl, creative.asset.landingUrl, new VideoClickDetailCallBack() {\n /* class com.zhihu.android.app.p1311ui.fragment.AdVideoFullScreenFragment.C160771 */\n\n @Override // com.zhihu.android.app.p1311ui.fragment.p1333ad.VideoClickDetailCallBack\n /* renamed from: a */\n public void mo79993a() {\n try {\n if (AdVideoFullScreenFragment.this.f55982c) {\n BaseFragmentActivity mainActivity = AdVideoFullScreenFragment.this.getMainActivity();\n if (mainActivity instanceof IMainActivity) {\n ((IMainActivity) mainActivity).mo79110a(true, false);\n }\n }\n } catch (Exception e) {\n C9180g.m54585b(AdVideoFullScreenFragment.class, C6969H.m41409d(\"G7A86C137BE39A51DE70CD04DE0F7CCC5\"), e);\n }\n AdVideoFullScreenFragment.this.popSelf();\n }\n }));\n this.f92578a.mo113142a(new AdLandingPlayerTracksPlugin(getContext(), this.f55981b));\n }", "title": "" }, { "docid": "657a46b1c5181ec8ad40860453f85411", "score": "0.5592161", "text": "public VideoGridFragment() { }", "title": "" }, { "docid": "142e49524df2bf8d9f01d9398c2ab784", "score": "0.55919874", "text": "@Override\r\n\tpublic void onSurfaceTextureUpdated(SurfaceTexture surface) {\n\t}", "title": "" }, { "docid": "711cdc4948dd8ce6594854474b6ea5d7", "score": "0.5586399", "text": "private void createPlayer(String media) {\n try {\n// if (media.length() > 0) {\n// Toast toast = Toast.makeText(this, media, Toast.LENGTH_LONG);\n// toast.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0,\n// 0);\n// toast.show();\n// }\n\n // Create LibVLC\n // TODO: make this more robust, and sync with audio demo\n ArrayList<String> options = new ArrayList<String>();\n //options.add(\"--subsdec-encoding <encoding>\");\n options.add(\"--aout=opensles\");\n options.add(\"--audio-time-stretch\"); // time stretching\n options.add(\"-vvv\"); // verbosity\n libvlc = new LibVLC(this, options);\n holder.setKeepScreenOn(true);\n\n // Creating media player\n mMediaPlayer = new MediaPlayer(libvlc);\n mMediaPlayer.setEventListener(mPlayerListener);\n\n // Seting up video output\n final IVLCVout vout = mMediaPlayer.getVLCVout();\n vout.setVideoView(mSurface);\n //vout.setSubtitlesView(mSurfaceSubtitles);\n vout.addCallback(this);\n vout.attachViews();\n\n Media m = new Media(libvlc, Uri.parse(media));\n mMediaPlayer.setMedia(m);\n mMediaPlayer.play();\n } catch (Exception e) {\n releasePlayer();\n Toast.makeText(this, \"Error in creating player!\", Toast\n .LENGTH_LONG).show();\n restartApp();\n }\n }", "title": "" } ]
5e185150f8b61ce5105970ef4a853eb6
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
[ { "docid": "c9ba5b1ca88fde5186309e8ced38a135", "score": "0.0", "text": "@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 jTableClientes = new javax.swing.JTable();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jTextFieldCUIT = new javax.swing.JTextField();\n jTextFieldCodigo = new javax.swing.JTextField();\n jButtonbuscarTodos = new javax.swing.JButton();\n jButtonBuscarCUIT = new javax.swing.JButton();\n jButtonBuscarCodigo = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jTextFieldNombre = new javax.swing.JTextField();\n jButtonBuscarNombre = new javax.swing.JButton();\n jButtonNuevo = new javax.swing.JButton();\n jButtonModificar = new javax.swing.JButton();\n jButtonElimiar = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Gestionar Clientes\");\n setResizable(false);\n\n jTableClientes.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 {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 {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 {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Codigo\", \"CUIT\", \"Nombre\", \"Domicilio\"\n }\n ));\n jTableClientes.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jTableClientesMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jTableClientes);\n\n jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jLabel2.setText(\"CUIT\");\n\n jLabel3.setText(\"Número\");\n\n jTextFieldCUIT.setPreferredSize(new java.awt.Dimension(50, 20));\n jTextFieldCUIT.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextFieldCUITActionPerformed(evt);\n }\n });\n\n jTextFieldCodigo.setPreferredSize(new java.awt.Dimension(50, 20));\n jTextFieldCodigo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextFieldCodigoActionPerformed(evt);\n }\n });\n\n jButtonbuscarTodos.setText(\"Todos\");\n jButtonbuscarTodos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonbuscarTodosActionPerformed(evt);\n }\n });\n\n jButtonBuscarCUIT.setText(\"Buscar\");\n jButtonBuscarCUIT.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBuscarCUITActionPerformed(evt);\n }\n });\n\n jButtonBuscarCodigo.setText(\"Buscar\");\n jButtonBuscarCodigo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBuscarCodigoActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Nombre\");\n\n jTextFieldNombre.setPreferredSize(new java.awt.Dimension(50, 20));\n jTextFieldNombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextFieldNombreActionPerformed(evt);\n }\n });\n\n jButtonBuscarNombre.setText(\"Buscar\");\n jButtonBuscarNombre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBuscarNombreActionPerformed(evt);\n }\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 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 242, Short.MAX_VALUE)\n .addComponent(jTextFieldCUIT, javax.swing.GroupLayout.DEFAULT_SIZE, 242, Short.MAX_VALUE)\n .addComponent(jTextFieldCodigo, javax.swing.GroupLayout.DEFAULT_SIZE, 242, Short.MAX_VALUE))\n .addGap(6, 6, 6)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButtonBuscarNombre)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jButtonBuscarCUIT)\n .addGap(127, 127, 127)\n .addComponent(jButtonbuscarTodos))\n .addComponent(jButtonBuscarCodigo))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextFieldCUIT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonBuscarCUIT)\n .addComponent(jButtonbuscarTodos))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jTextFieldCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonBuscarCodigo))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(jButtonBuscarNombre))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jButtonNuevo.setText(\"Nuevo\");\n jButtonNuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonNuevoActionPerformed(evt);\n }\n });\n\n jButtonModificar.setText(\"Modificar\");\n jButtonModificar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonModificarActionPerformed(evt);\n }\n });\n\n jButtonElimiar.setText(\"Dar de Baja\");\n jButtonElimiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonElimiarActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Cerrar\");\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 layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 585, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButtonNuevo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonModificar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonElimiar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 290, Short.MAX_VALUE)\n .addComponent(jButton1)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonNuevo)\n .addComponent(jButtonModificar)\n .addComponent(jButtonElimiar)\n .addComponent(jButton1))\n .addContainerGap())\n );\n\n pack();\n }", "title": "" } ]
[ { "docid": "5f8540ed063cf75672e07098d5395e1e", "score": "0.76991856", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n\n }", "title": "" }, { "docid": "37a5472d5b0f35cf64a077bc1dd978c4", "score": "0.73203033", "text": "public Form() {\n initComponents();\n }", "title": "" }, { "docid": "37a5472d5b0f35cf64a077bc1dd978c4", "score": "0.73203033", "text": "public Form() {\n initComponents();\n }", "title": "" }, { "docid": "dbd0e3e7893d9d0055dd0ce760108d01", "score": "0.73076195", "text": "public EnergyBillForm() {\n initComponents();\n }", "title": "" }, { "docid": "83022c743955fd7beac454e5b6812ec5", "score": "0.73075444", "text": "public Book_Form() {\n initComponents();\n setResizable(false);\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72906023", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72906023", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72906023", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.72906023", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "42037f026e829d289f2b52056e224123", "score": "0.7265714", "text": "public frmCadSetor() {\n initComponents();\n }", "title": "" }, { "docid": "8b8f07c4bd4d703b832831ca94c3cdac", "score": "0.7204719", "text": "public SecimForm() {\n initComponents();\n }", "title": "" }, { "docid": "1f1f615671eb4ff86972a7f52df798d1", "score": "0.7157385", "text": "public BloodBankUI() {\n initComponents();\n }", "title": "" }, { "docid": "652c911249d4f1ed5edaa33ffbc59bcf", "score": "0.71420807", "text": "public FormBarang() {\n initComponents();\n \n \n }", "title": "" }, { "docid": "8cf0195241031187b1696095102e1fcb", "score": "0.7136001", "text": "public SUForm() {\n initComponents();\n }", "title": "" }, { "docid": "792419cbefa001e7cbedcf57768d94c1", "score": "0.7131328", "text": "public SinhVienForm() {\n initComponents();\n }", "title": "" }, { "docid": "77291b562d9213c792002a11274be41e", "score": "0.7106505", "text": "public frmThemSV() {\n initComponents();\n }", "title": "" }, { "docid": "c38ce51421fd4f901ade924f15f1a6dc", "score": "0.70875865", "text": "public frm_latih3() {\n initComponents();\n }", "title": "" }, { "docid": "3a705ac98ff391026776426996085628", "score": "0.70866656", "text": "public GUITelephone() {\n initComponents();\n }", "title": "" }, { "docid": "92ae7cc4ec99c50dbc0697f1c27b676f", "score": "0.7085252", "text": "public frmBulletinBoard() {\n initComponents();\n }", "title": "" }, { "docid": "eaa253b49faa280e8b09b10c5d11d368", "score": "0.7084199", "text": "public FcfsGUI() {\n initComponents();\n }", "title": "" }, { "docid": "d64c0a9ac55ff116f213af6714c590ec", "score": "0.70788264", "text": "public C349() {\n initComponents();\n }", "title": "" }, { "docid": "89fab9cfa375e5ce1175d71e7830a8c0", "score": "0.7070732", "text": "public admicion() {\n initComponents();\n }", "title": "" }, { "docid": "0a34cae632010f76e8a81fd45e4ab464", "score": "0.70655376", "text": "public form_main() {\n initComponents();\n }", "title": "" }, { "docid": "90580d3665a6073612bd2ed298d44921", "score": "0.7053127", "text": "public formtempconverterGUI() {\n initComponents();\n }", "title": "" }, { "docid": "07a68fe90a538f27a86fc3440a405f73", "score": "0.7048683", "text": "public frmNhapThongTin() {\n initComponents();\n }", "title": "" }, { "docid": "2eb08227acf72a19c62f43204c0da4c9", "score": "0.7046076", "text": "public DatPhong_Form() {\n initComponents();\n this.setLocationRelativeTo(null); // center for in the screen\n }", "title": "" }, { "docid": "b7db30e30bfbfba36f5d489c488b0752", "score": "0.70424306", "text": "public FileCandyUI() {\n initComponents();\n }", "title": "" }, { "docid": "855c6dc316d01724c63f6339981c6fe6", "score": "0.7033716", "text": "public Forms() {\n initComponents();\n }", "title": "" }, { "docid": "db18fb0cf39d4d47d85a5386d31cd18a", "score": "0.70335054", "text": "public NotEkle() {\n initComponents();\n }", "title": "" }, { "docid": "3fc5f02af34f1d75eac8bbc4fda61bc2", "score": "0.70307285", "text": "public FrDangKi() {\n initComponents();\n }", "title": "" }, { "docid": "dce2b896fb1b24935538d95e5c9e14ac", "score": "0.7030521", "text": "public MyForms() {\n initComponents();\n }", "title": "" }, { "docid": "411dff654b1ff7330c0411a12db1ed8d", "score": "0.7028531", "text": "public EventManagementForm() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "e1aea07525da5c430c00280b97c250c0", "score": "0.70163983", "text": "public Grn() {\n initComponents();\n }", "title": "" }, { "docid": "730cedaba307a8c60bb3328d612d38e1", "score": "0.7010869", "text": "public frmROT13() {\n initComponents();\n \n }", "title": "" }, { "docid": "da5a73c3c18cfff78469e7e51d37a25f", "score": "0.6981418", "text": "public WorkOnfrm() {\n initComponents();\n }", "title": "" }, { "docid": "ddfb126380a92f708fe73b887abb8135", "score": "0.6969258", "text": "public FormPenyakit() {\n initComponents();\n setLocationRelativeTo(this);\n Refresh();\n }", "title": "" }, { "docid": "c274c995ff3e41e35606573e12ae0828", "score": "0.69615173", "text": "public Complaint() {\n initComponents();\n }", "title": "" }, { "docid": "f2c6a7e371958a7fd83109d20349c264", "score": "0.6958565", "text": "public frmStockManagement() {\n initComponents();\n }", "title": "" }, { "docid": "095b5be593125d68de19b84ac9996895", "score": "0.695222", "text": "public f12() {\n initComponents();\n }", "title": "" }, { "docid": "962a758cdfd2b4a0d74ee193d3b4fa7c", "score": "0.6951312", "text": "public BloodPacketForm() {\n initComponents();\n }", "title": "" }, { "docid": "1290f6282a8f27713e1f41e18909d40a", "score": "0.693732", "text": "public uc4() {\n initComponents();\n }", "title": "" }, { "docid": "f321372bf70d596359a5bedb92db91e8", "score": "0.6928949", "text": "public FormOffice() {\n initComponents();\n }", "title": "" }, { "docid": "8230a54d80945271ec0e607249936b11", "score": "0.69259644", "text": "public frmMensajero() {\n initComponents();\n }", "title": "" }, { "docid": "f3199bb964699456e3f2c27ec027f6c6", "score": "0.6924929", "text": "public AddressEntryForm() {\n initComponents();\n }", "title": "" }, { "docid": "b6ec178ee9b592670464b985a570940d", "score": "0.69213825", "text": "public avrg() {\n initComponents();\n }", "title": "" }, { "docid": "fdb13f663f214af93589efbe60ca5145", "score": "0.6914346", "text": "public EditPhoneRowGUI() {\n initComponents();\n }", "title": "" }, { "docid": "42fc2a1115ee61b947d94827e9b56af3", "score": "0.6911224", "text": "public frmListForm() {\n initComponents();\n this.setResizable(false);\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "1f7d4260844962a0f41b75a224e355c5", "score": "0.6908288", "text": "public AdminMenuForm() {\n initComponents();\n this.setSize(Settings.getScreenSize().width, Settings.getScreenSize().height - 30);\n\n\n }", "title": "" }, { "docid": "7c45397f74ee7bb9f39be97620b8b4d1", "score": "0.68940514", "text": "public PorFormu() {\n initComponents();\n }", "title": "" }, { "docid": "5bf7f03e02196a8ceab4cd8777019c45", "score": "0.6893577", "text": "public MainForm() {\n initComponents();\n prosesBtn.setEnabled(false);\n mnbRB.setEnabled(false);\n mnbPosRB.setEnabled(false);\n foldCombo.setEnabled(false);\n\n }", "title": "" }, { "docid": "0766a874449b4a3f2a99b968ab430943", "score": "0.68861806", "text": "public frmPatientCheckout() {\n initComponents();\n }", "title": "" }, { "docid": "b467f09774449137b545778638451f5f", "score": "0.6883989", "text": "public PalestraUI() {\n initComponents();\n }", "title": "" }, { "docid": "d1a42dcbe0a57b3c577664b77cbfaf0b", "score": "0.6879262", "text": "public BookForm() {\n initComponents();\n }", "title": "" }, { "docid": "6901eb75c094012bc15e448ad6380cab", "score": "0.6876661", "text": "public GirisEkrani() {\n initComponents();\n }", "title": "" }, { "docid": "066143e1df0e04d0f34b8beaa6afd231", "score": "0.6872252", "text": "public ACOPEN() {\n initComponents();\n }", "title": "" }, { "docid": "04e809bd7345bb3eda9b43046c1db649", "score": "0.687045", "text": "public Devolucao_1() {\n initComponents();\n }", "title": "" }, { "docid": "f10f09ad32334723f67c55acdc239488", "score": "0.6867767", "text": "public Order_Form() {\n initComponents();\n }", "title": "" }, { "docid": "ffc05cc889a5c9fd92619e34398689ab", "score": "0.68646777", "text": "public OperationsFrm() {\n super(\"Operations\");\n initComponents();\n \n }", "title": "" }, { "docid": "42c8622f1e7dd4997312c49c154b54db", "score": "0.68631214", "text": "public ViewerProjectDetailsForm() {\n initComponents();\n //initComboBox();\n }", "title": "" }, { "docid": "9a58265e205ed1d3e2b60ee6169ef336", "score": "0.68626297", "text": "public frmClientes() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6853862", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6853862", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "c805c1ac8c15c777b05d67e26b6f0fe5", "score": "0.68465596", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "f47663adf8dc18cac31aab76289d8b83", "score": "0.6841475", "text": "public FormAnimateur() {\n initComponents();\n }", "title": "" }, { "docid": "3be9aee415d0385bf36a94bc18837544", "score": "0.6838826", "text": "public Pexeso_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "f9a62b34de062f3fdfe71ded48f6aa83", "score": "0.68281734", "text": "public FrmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "d9fc661dcfc52c0418f886dc36144be7", "score": "0.68272626", "text": "public GUIVendedor() {\n initComponents();\n }", "title": "" }, { "docid": "656065e620d3a86ad43a5fb019d8420d", "score": "0.68269944", "text": "public P0601() {\n initComponents();\n }", "title": "" }, { "docid": "a192733b5dcac21af0e1d6b30adfa971", "score": "0.68265307", "text": "public Student_Form() {\n initComponents();\n }", "title": "" }, { "docid": "4c0e82c6ceab7c2f7d03538d6930a704", "score": "0.6822955", "text": "public ClientEditorUI() {\n initComponents();\n }", "title": "" }, { "docid": "40b124525c613d9aa9f6ee1fdca10003", "score": "0.68215996", "text": "public Main_Frm() {\n initComponents();\n }", "title": "" }, { "docid": "1930c5e776f78bfdb883d276440ac440", "score": "0.68119526", "text": "public Petto7_Menu1() {\n initComponents();\n }", "title": "" }, { "docid": "d25fa28d426a7eaa2cff50cb58c43583", "score": "0.68109334", "text": "public BookAddInterFrm() {\r\n\t\tinitComponents();\r\n\t\tthis.setLocation(200, 50);\r\n\t\tthis.fillBookType();\r\n\t\tthis.jrb_man.setSelected(true);\r\n\t\tif (this.jcb_BookType.getItemCount() > 0) {\r\n\t\t\tthis.jcb_BookType.setSelectedIndex(0);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c4c9b60484a99297c73c5ec82da33c16", "score": "0.680747", "text": "public FrmSolicitarCambio() {\n initComponents();\n }", "title": "" }, { "docid": "87333724f89c13ca26e9a0f42a355706", "score": "0.6801848", "text": "public KayitOl() {\n initComponents();\n }", "title": "" }, { "docid": "000182c0a517e247f60196cd535d195f", "score": "0.68018264", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "acd6faeb8a3091402e0fd78434a7969c", "score": "0.67962873", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n pack();\n }", "title": "" }, { "docid": "7facdf2c5f123f765cb6bd02c732720e", "score": "0.67944217", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "7facdf2c5f123f765cb6bd02c732720e", "score": "0.67944217", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "ac9fc8ec520741d3d40a4bda96585830", "score": "0.6793893", "text": "public FrmMenu() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "2bb4fb9044728dcae43f0078f935063b", "score": "0.6793877", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(255, 255, 255));\n setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 398, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 298, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "984cf4e738809d9d5f9b6787d690ba17", "score": "0.679367", "text": "public FormDesa() {\n initComponents();\n }", "title": "" }, { "docid": "5438cb143c2e888e7324e2639bb3b8e1", "score": "0.6785968", "text": "public SiparisUygulamasi()\n {\n initComponents();\n }", "title": "" }, { "docid": "639ddf315f7da457aad27ac5d6e760c5", "score": "0.67779833", "text": "public ManagerFrame() {\n initComponents();\n }", "title": "" }, { "docid": "f89f169e7d69a00ca60588fd9c600578", "score": "0.6774736", "text": "public frmstdAH() {\n initComponents();\n }", "title": "" }, { "docid": "88d5bf3d8c887086c248506052d3159e", "score": "0.67728955", "text": "public FormUtama() {\n initComponents();\n setEnableMenu(false);\n }", "title": "" }, { "docid": "b677005275b3a1a553bd408cac87532b", "score": "0.67722315", "text": "public FlowerDesign() {\n initComponents();\n }", "title": "" }, { "docid": "43aba77508e2ba7c73f38c7e3c2e080e", "score": "0.6768833", "text": "public CadPlataformasGUI() {\n initComponents();\n }", "title": "" }, { "docid": "4bae0548c126c09b37ab8150ef7e4235", "score": "0.6767673", "text": "public MyD() {\n initComponents();\n }", "title": "" }, { "docid": "b4563803db113dfa43175bfe31f91795", "score": "0.6762249", "text": "public Sakit_Batuk() {\n initComponents();\n }", "title": "" }, { "docid": "65c56de4943af86bed9d83e751a52ff7", "score": "0.67612374", "text": "public RoomsForm() {\n initComponents();\n }", "title": "" }, { "docid": "5915d39cdf42cf6ee76abb9ad9a42af1", "score": "0.6760572", "text": "public FasoresGUI() {\r\n initComponents();\r\n setPlaceholders();\r\n }", "title": "" }, { "docid": "ac872bd3334e68dfa1420ac3a50d50c2", "score": "0.67561895", "text": "public Bantuan() {\n initComponents();\n }", "title": "" }, { "docid": "32b49ce16b8b7b1462ed92f2df75851e", "score": "0.6753209", "text": "public FormVenda() {\n initComponents();\n }", "title": "" }, { "docid": "be6ba2bbb21909d6e2da83a7df034792", "score": "0.6752144", "text": "public frmMain() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "98ddd9f1567b483ca0bedf63fdff3f7b", "score": "0.6746997", "text": "public VigenereGUI() {\n initComponents();\n }", "title": "" }, { "docid": "461474eee9402f928a3ef7ceb5832742", "score": "0.6746962", "text": "public DonD() {\n initComponents();\n }", "title": "" }, { "docid": "4d102493b0edddf3ffa0a2422e947689", "score": "0.67459655", "text": "public NewJFrame12() {\n super(\"Gloppen NærRadio\");\n initComponents();\n \n }", "title": "" }, { "docid": "92314a8d132ad9f6ed16af8fafe9d40e", "score": "0.6742918", "text": "public TheBig() {\n initComponents();\n }", "title": "" }, { "docid": "ce823a01f8f8e406453ca09e2c131e92", "score": "0.67405295", "text": "public ventana04() {\n initComponents();\n }", "title": "" }, { "docid": "24821c6b4358ef08adda2c641fb17137", "score": "0.6738049", "text": "public AddCaserne() {\n initComponents();\n }", "title": "" } ]
f5705cf49b014074fde788ae0edcfd93
A method provided by the remote object
[ { "docid": "3c7cb149a6f401cc5a1dcb737997a710", "score": "0.0", "text": "public String getNewClientId() throws RemoteException;", "title": "" } ]
[ { "docid": "f90f09ae1779b96e703945ed0dd16696", "score": "0.6793304", "text": "protected abstract Object invokeRemote(final Method method,\r\n final Object[] args) throws InvocationTargetException, Exception;", "title": "" }, { "docid": "1b60114b4a3b3c519fc70506e71a6d50", "score": "0.67739767", "text": "interface TVremote{\n void remote();\n}", "title": "" }, { "docid": "f893366ed770ed1dc6ec4c57776dc12a", "score": "0.6586925", "text": "public interface RemoteCommand {\n\n /**\n * Function that individual remote commands will implement.\n */\n void invoke();\n}", "title": "" }, { "docid": "815adf5b70ed747930c151a9133c6e9b", "score": "0.61984223", "text": "public abstract void updateRemote();", "title": "" }, { "docid": "42d0180d2c95b1190188c9fd659d621f", "score": "0.6177632", "text": "Receiver target();", "title": "" }, { "docid": "60e142cd400db00b7c79bda0a34a4780", "score": "0.6156776", "text": "public abstract void defaultUpdateRemote();", "title": "" }, { "docid": "cacf24348093f5cb59d11dcef0366245", "score": "0.6148365", "text": "@Override\n public String getMethod()\n {\n return super.getMethod();\n }", "title": "" }, { "docid": "8e53242be03b3de9427a7d0d704e650c", "score": "0.6131555", "text": "public String getMethod();", "title": "" }, { "docid": "8e53242be03b3de9427a7d0d704e650c", "score": "0.6131555", "text": "public String getMethod();", "title": "" }, { "docid": "8e53242be03b3de9427a7d0d704e650c", "score": "0.6131555", "text": "public String getMethod();", "title": "" }, { "docid": "8a67e04573a6170de7ec47dd4b7d04f5", "score": "0.6120746", "text": "@Override\n\tpublic void invoke() {\n\t}", "title": "" }, { "docid": "4d346b788c4ea6eb62d54ded9e47f0f5", "score": "0.6064822", "text": "@Override\n\tprotected void requestMethod() {\n\n\t}", "title": "" }, { "docid": "673d4fdbca2c09c50963e663e849de86", "score": "0.6033463", "text": "@Override\n public appsgate.lig.chmi.spec.GenericCommand executeRemoteCommand(\n String objIdentifier, String method, JSONArray args) {\n // traceManager.commandHasBeenPassed(objIdentifier, method, \"PROGRAM\");\n return coreProxy.executeCommand(-1, objIdentifier, method, args, null, null);\n }", "title": "" }, { "docid": "54247aa952f0803a34c7fe152122f37d", "score": "0.59884334", "text": "String getMethod();", "title": "" }, { "docid": "480be002240c5c9127ca34c3e6dc71f4", "score": "0.5978831", "text": "@Override\n\tpublic Response method(Method arg0) {\n\t\treturn response.method(arg0);\n\t}", "title": "" }, { "docid": "b5d4c2400f481a08316da0f8aac163b9", "score": "0.59634775", "text": "public String remoteMethod(final String inName) {\n\n return inName + \" is married to \";\n\n }", "title": "" }, { "docid": "b7e6e7d64f75b4ffb5f334a13402e7ae", "score": "0.5963089", "text": "public interface MyRemote extends Remote {\n public String sayHello() throws RemoteException;\n}", "title": "" }, { "docid": "61fab00f095bc3900e497cc4aafdcb20", "score": "0.59526104", "text": "void remoteStartCar() {\n }", "title": "" }, { "docid": "159fc89fb5654e28e9413f6be836e703", "score": "0.59525365", "text": "public interface MyRemote{\n public String sayHello() throws IOException;\n}", "title": "" }, { "docid": "c7baa2e9de72a8d1c6c36537c70db443", "score": "0.5950327", "text": "public Method getMethod();", "title": "" }, { "docid": "0637de45eb3954cf9f53055b6f05a248", "score": "0.59469503", "text": "@Remote\r\npublic interface PaysManagerRemote\r\n extends PaysManager\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "b5a0fe4ce4b59c710a861e04fa425458", "score": "0.59291077", "text": "java.lang.String getMethod();", "title": "" }, { "docid": "494b67636f1125ebd9f2ea2480e2705c", "score": "0.59231997", "text": "public interface remoteInterface extends Remote{\n\tpublic String getBootStrapNode(String ipAddress) throws RemoteException,NotBoundException;\n\tpublic void insert(float xCoordinate, float yCoordinate, String IPAddress) throws RemoteException, NotBoundException;\n\tpublic void remoteUpdateNeighbor(Node peer,String Action) throws RemoteException, NotBoundException;\n\tpublic void remoteFinalInsertUpdate(Node newPeer,HashMap<String,String> keywords,ArrayList<Node> neighbours,String Action) \n\t\t\tthrows RemoteException, NotBoundException;\n\tpublic void remoteRemoveFromNeighbors(String IPAddress)throws RemoteException, NotBoundException;\n\tpublic void remoteUpdateBootStrapServer(String ipAddress)throws RemoteException,NotBoundException;\n\tpublic ArrayList<String> search(String keyword, float xCoordinate, float yCoordinate,String Action,ArrayList<String> path) throws RemoteException, NotBoundException;\n}", "title": "" }, { "docid": "0fbeee4bdfc9ec2ba321153df46dc050", "score": "0.5921755", "text": "public interface Savior {\n public Object dispatchMethod(Object host, String methodSign, Object[] params);\n}", "title": "" }, { "docid": "37a5a32a25c140654f03ff4e9a14af1c", "score": "0.59181607", "text": "Method getMethod();", "title": "" }, { "docid": "37a5a32a25c140654f03ff4e9a14af1c", "score": "0.59181607", "text": "Method getMethod();", "title": "" }, { "docid": "f67d4894fd576eb7b99e4d8c6336e147", "score": "0.59180194", "text": "void invoke();", "title": "" }, { "docid": "17865735d09651e8c1041e2e4b990976", "score": "0.59057343", "text": "public interface MessageRemote extends Remote {\n String getMessage() throws RemoteException;\n}", "title": "" }, { "docid": "f81c1d13a820dd3d6e235a57bcdc550f", "score": "0.5897392", "text": "protected abstract Object interaction();", "title": "" }, { "docid": "ad82599c2e840b0593de7e064cb2983c", "score": "0.58956325", "text": "public interface RMIInterface extends Remote{ \n\nString loginSystem(String name)throws RemoteException; \nString operationSystem(String operation)throws RemoteException; \nvoid uploadProcess(String userFileName) throws RemoteException;\nvoid downloadProcess(String userFileName) throws RemoteException;\nvoid updateProcess(String userFileName) throws RemoteException;\nString deleteProcess(String userFileName)throws RemoteException;\n\n}", "title": "" }, { "docid": "265120ec5c165b0e2c4ca1fc346a9e4a", "score": "0.58903867", "text": "protected abstract void invokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint) throws Exception;", "title": "" }, { "docid": "a492fd0c44c93ed76bf10f736ae45d06", "score": "0.58762455", "text": "void invoke(Method method);", "title": "" }, { "docid": "5c6d41eea8a6f207a0ef8785755a4ee9", "score": "0.58560175", "text": "Response remoteExecute(Request request) throws ActionException;", "title": "" }, { "docid": "00e0c4b025dfaf520d53d731101a17a7", "score": "0.58414114", "text": "public String getOriginMethod();", "title": "" }, { "docid": "1a540be9a801907f009703bb52c0cc37", "score": "0.5827352", "text": "public interface RMIInterface extends Remote {\r\n\t// method signature need to throw remote exception when remote call is made\r\n\t// input as well as output should be serializable or primitives\r\n\tpublic String helloTo(String name) throws RemoteException;\r\n}", "title": "" }, { "docid": "660233f3994ead96020fe5337132073f", "score": "0.58195424", "text": "public interface Rmi extends Remote{\n public String sayHello(String name) throws RemoteException;\n}", "title": "" }, { "docid": "68b4113cda348b67c17efc29a5f5edd6", "score": "0.58183354", "text": "@Override\r\n\tpublic Object invoke(Object proxy, Method method, Object[] args)\r\n\t\t\tthrows Throwable {\n\t\tSystem.out.println(\"我先执行吧!\");\r\n\t\tSystem.out.println(\"哪个方法被拦截了:\"+method.getName());\t\t\r\n\t\treturn method.invoke(this.obj, args);\r\n\t}", "title": "" }, { "docid": "c60f863ecb5176e39b3342ed6c6b8089", "score": "0.57940173", "text": "public interface RemoteClientInterface extends Remote {\r\n\tpublic Ustandard donnerClient() throws RemoteException;\r\n\tpublic String donnerNomTableauLePlusCelebre() throws RemoteException;\r\n\tpublic Rang donnerRang() throws RemoteException;\r\n\tpublic void changerRang(Rang r) throws RemoteException;\r\n\tpublic void recevoirPartageTableau(String n, Ustandard u) throws RemoteException;\r\n}", "title": "" }, { "docid": "4b76d841210769d26b5ff5b15d5f287e", "score": "0.5793322", "text": "@Remote\r\npublic interface EltSalaireManagerRemote\r\n extends EltSalaireManager\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "a456fec421ecf7f9bab70c4385e75987", "score": "0.5791899", "text": "@Remote\npublic interface CalculatorRemote {\n\n Double calculate(Double value1, Double value2, String symbol);\n}", "title": "" }, { "docid": "d26ced930d8cb9f6ac5d4d92e15b573b", "score": "0.57861316", "text": "public void respondToCommand(){\n\n }", "title": "" }, { "docid": "65f559267a1affde87883ef2db0de29c", "score": "0.57855034", "text": "public interface RemoteBeanInterface {\n\n\n public void closeDownRemoteBean();\n\n public double getProgress();\n\n\n}", "title": "" }, { "docid": "39af1277933b83924cdae8a44d2b6f58", "score": "0.5785154", "text": "@Override\n\tpublic String hellejb() {\n\t\tremote.hello(\"Mr Customer ..\");\n\t\treturn \"hello returning from TestCallBean *********\";\n\t}", "title": "" }, { "docid": "901d6a3263d9b486aa0bb92fc2520853", "score": "0.5782061", "text": "@Remote\r\npublic interface ContratTravailManagerRemote\r\n extends ContratTravailManager\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "de85c7f7a709604b70aaeed7c7c64fcf", "score": "0.5775008", "text": "public interface ContentClientInterface extends Remote {\n\n /*\n Invia al client il post (testo) contenuto nel parametro\n */\n void Notify(String content) throws RemoteException;\n}", "title": "" }, { "docid": "8fc181832c650519bdb13b0dc8c0f2e6", "score": "0.5772056", "text": "public interface IHello extends Remote{\n public String hello() throws RemoteException;\n}", "title": "" }, { "docid": "f34f582b4d453a65986995a36eca300a", "score": "0.57645196", "text": "public interface EchoService extends Remote {\n\n\t/**\n\t * Returns the same string passed as parameter\n\t * \n\t * @param s a string\n\t * @return the same string passed as parameter\n\t * @throws RemoteException (in case anything goes wrong with network connectivity)\n\t */\n\t\n\tString echo (String s) throws RemoteException;\n}", "title": "" }, { "docid": "0c8312a57bc205d6a6ecf0b30493cf46", "score": "0.5763179", "text": "Task<?> invoke(RemoteReference toReference, Method m, boolean oneWay, final int methodId, final Object[] params);", "title": "" }, { "docid": "ee4217f4d5840ac27c46700b36373716", "score": "0.5754609", "text": "Method getTargetMethod();", "title": "" }, { "docid": "9df0ad82b0b8747b037bf5c36aaa1599", "score": "0.575298", "text": "public interface LobbyInterface extends Remote{\r\n\tpublic String playerList() throws RemoteException;\r\n\tpublic void addPlayer(Speler speler) throws RemoteException;\r\n\tpublic void removePlayer(Speler speler) throws RemoteException;\r\n\t\r\n}", "title": "" }, { "docid": "09e3b39f6e2ad1e251265583566e7dc4", "score": "0.5738496", "text": "public interface callbackClientIntf extends Remote\n{\n public static final String NAME = \"CallbackClientIntf\";\n\t\n public void newPositionofFliege(int x, int y) throws RemoteException;\n public void loginStatus(boolean status) throws RemoteException;\n public void updatePlayerInfo(ArrayList<Player> playerList) throws RemoteException;\n\n}", "title": "" }, { "docid": "2814d8675c3ec52f58bd0a16d256df26", "score": "0.57264966", "text": "public Object getSendAction() {\n throw new NotYetImplementedException();\r\n }", "title": "" }, { "docid": "c726ed4b37c0089db90d00930396759b", "score": "0.5722665", "text": "public interface RemoteMessageBox extends Remote {\n\n /**\n * metodo per scrivere un messaggio su una MessageBox\n *\n * @param m messaggio da scrivere sulla MessageBox\n * @throws RemoteException\n */\n public void writeMessage(Message m) throws RemoteException;\n\n /**\n * metodo per leggere il primo messaggio della MessageBox\n *\n * @return Message messaggio letto\n * @throws java.rmi.RemoteException\n * @throws java.lang.InterruptedException\n */\n public Message readMessage() throws InterruptedException, RemoteException;\n\n /**\n * metodo utilizzato per conosce l'owner di una certa MessageBox\n *\n * @return PersonalAgentID owner della MessageBox su cui e` invocato il\n * metodo\n * @throws RemoteException\n */\n public PersonalAgentID getOwner() throws RemoteException;\n\n}", "title": "" }, { "docid": "b1fd010c083e96b08f606a1adec3a783", "score": "0.5715119", "text": "public String getMethod() {\n \t\treturn null;\r\n \t}", "title": "" }, { "docid": "e76994c8cb986237a94829536f7c9123", "score": "0.5707086", "text": "@Override\n public void call(int what, Object obj) {\n }", "title": "" }, { "docid": "adbb4b37636cd8102ed732b5a5eeed94", "score": "0.56970733", "text": "@Override\n\tpublic String invoke() {\n\t\treturn \"Hello Management\";\n\t}", "title": "" }, { "docid": "d4b1d51becb90597337b5c9e0cb72e46", "score": "0.5695709", "text": "public Object invoke(String action);", "title": "" }, { "docid": "493efea0cd35cf02ea81dae1e0ddb394", "score": "0.5694674", "text": "public Object getMethod()\n {\n return Data; \n }", "title": "" }, { "docid": "750856897e1e64c99750a2f5e92e33fe", "score": "0.56939286", "text": "public interface Stack extends Remote {\n\n public String getName() throws RemoteException;\n\n public int getPoint() throws RemoteException;\n\n public String pop() throws RemoteException;\n\n public void push(String goods) throws RemoteException;\n}", "title": "" }, { "docid": "df2cff0043b9d649a7804f8c5800847d", "score": "0.5693304", "text": "public interface ReceiveMessageInterface extends Remote {\n void receiveMessage(String x) throws RemoteException;\n}", "title": "" }, { "docid": "92f9a6ecf2ea089a37d4e61161f5850c", "score": "0.56884974", "text": "public interface IProdottiRemote extends Remote {\r\n/** \r\n * @return \r\n * @throws java.rmi.RemoteException\r\n */\r\n public IIteratorWrapperRemote<IDescrizioneProdottoRemote> getDescrizioni()throws RemoteException;\r\n \r\n}", "title": "" }, { "docid": "07d3e5eac58184f1d57f7b16c80acbe0", "score": "0.56828314", "text": "public abstract void mo18823a() throws RemoteException;", "title": "" }, { "docid": "06de30a618361ca7e9af5331ba93fb82", "score": "0.56793797", "text": "public String getRpcMethod() {\r\n return this.rpc + \".\" + this.method + \"()\";\r\n }", "title": "" }, { "docid": "4dcf6cdee528b945fa766ec3f94cad7b", "score": "0.56739485", "text": "CodeableConcept getMethod();", "title": "" }, { "docid": "8639c432fd77c259c1f9bcfcb57c75cb", "score": "0.5672738", "text": "@Override\n\tpublic void method() {\n\t\tSystem.out.println(\"before proxy\");\n\t\tmSource.method();\n\t\tSystem.out.println(\"after proxy\");\n\t}", "title": "" }, { "docid": "434d32cd4a0caab69a6896a23f15a7ac", "score": "0.56699437", "text": "public interface SimInterface extends Remote {\n\n /** Returns a simple ping message.\n *\n * @throws RemoteException - an exception\n * if the remote interface fails\n * @return a message that says hello\n */\n String sayHello() throws RemoteException;\n\n /** Runs an experiment remotely.\n * @param experiment - the experiment to run\n * @throws RemoteException - an exception if the remote interface fails\n */\n void runExperiment(Experiment experiment) throws RemoteException;\n\n /** Gets a remote slave's statistics collection.\n * @throws RemoteException - an exception if the remote interface fails\n * @return the callee's statistics collection\n */\n StatisticsCollection getExperimentStats() throws RemoteException;\n\n /** Stops the remote slave's experiment.\n * @throws RemoteException - an exception if the remote interface fails\n */\n void stop() throws RemoteException;\n\n}", "title": "" }, { "docid": "00df0556736147f5e54de28fd8ee5e2a", "score": "0.5633004", "text": "@Override\n\tpublic Method method() {\n\t\treturn response.method();\n\t}", "title": "" }, { "docid": "f93a7199b400c1390c17f945a57f0d83", "score": "0.5625602", "text": "public interface IServer extends Remote {\n\n String joinBoard(String id) throws RemoteException;\n String getManager() throws RemoteException;\n void approveUser(String userID) throws RemoteException;\n void kickUser(String userID) throws RemoteException;\n void addBoardEvent(BoardHandler event) throws RemoteException;\n ArrayList<BoardHandler> getBoardEvents(int startFrom) throws RemoteException;\n\n}", "title": "" }, { "docid": "50bb836596568321e3f3e8be8eba509d", "score": "0.5624052", "text": "@Override\n\tpublic void method() {\n\n\t}", "title": "" }, { "docid": "56fcc585d39737b8ebba1d04e90bfc63", "score": "0.5618478", "text": "@Remote\r\npublic interface ReclassementManagerRemote\r\n extends ReclassementManager\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "5298b0ec644979a53cf6231cd32ae3b6", "score": "0.56181383", "text": "public interface IfaceBrokerClass extends Remote {\n\n\t// Metodo remoto para registrar un servidor y un servicio\n\tpublic String registerServer(String rname, String operation) throws RemoteException;\n\t\n\t// Metodo remoto para devolver una referencia a un servidor\n\tpublic String returnServer(String operation) throws RemoteException;\n\t\n}", "title": "" }, { "docid": "1dde8b315a3e800cc55e8104b2d9ee68", "score": "0.5614204", "text": "public interface Monitor extends Remote {\n\n /**\n * Methode de notification du moniteur.\n * Affiche le message dans la console.\n *\n * @param message\n * @throws RemoteException\n */\n public void notify(Message message) throws RemoteException;\n\n}", "title": "" }, { "docid": "f94a1f40f101a76c45682c342b9f632b", "score": "0.5611223", "text": "protected Object invokeTheMethod(Method oMethod, Object portObject, Object operationInput)\n throws IllegalAccessException, InvocationTargetException {\n return oMethod.invoke(portObject, operationInput);\n }", "title": "" }, { "docid": "d0071ddcbc7dd8a97a2eae53e2c0f0bc", "score": "0.56103575", "text": "public abstract boolean update(CommunicationMethod method);", "title": "" }, { "docid": "007f7f9dd992116578e332a861c3c7d9", "score": "0.5607098", "text": "@Override\n public ProcessMethod getMethod()\n {\n return method.getValue();\n }", "title": "" }, { "docid": "b1a1e4c59ab73d4f66f6104defad9116", "score": "0.5602284", "text": "public void method() {\n\t\t\n\t}", "title": "" }, { "docid": "677e1bcc5ce2d0f98ae32478866994ca", "score": "0.56003875", "text": "@Override\n\tpublic void communiquer() {\n\t\t\n\t}", "title": "" }, { "docid": "1ac69509ad6ca9cf2599b1213199599b", "score": "0.5597775", "text": "public Object invoke(Object o) throws Exception;", "title": "" }, { "docid": "0b20ddeb710de473ac4f66247e3753b3", "score": "0.55909306", "text": "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n }", "title": "" }, { "docid": "0b20ddeb710de473ac4f66247e3753b3", "score": "0.55909306", "text": "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n }", "title": "" }, { "docid": "2455908c0a5997041f7ce39de8e9106e", "score": "0.5582044", "text": "@Remote\r\npublic interface DemandeCongeCDAORemote\r\n extends DemandeCongeCDAO\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "240b4da234273490cc9c7c1210e0327b", "score": "0.5577301", "text": "protected abstract String getMethodBinding();", "title": "" }, { "docid": "455831f9e001bafa36ec76c88f56c546", "score": "0.5561014", "text": "default String getMethod() {\n return null;\n }", "title": "" }, { "docid": "16d5d98e770983a0acccad2640fedcc1", "score": "0.55604887", "text": "public interface TemperatureSensor extends Remote {\r\n\t\r\n\t/**\r\n\t* This method computes average temperature\r\n\t* @return average temperature\r\n\t* @throws RemoteException\r\n\t*/\r\n\tpublic int getAverageTemperature() throws RemoteException;\r\n\t\r\n\t/**\r\n\t* This method gets a temperature for a specific day\r\n\t* @param day - requested day\r\n\t* @return temperature of the day\r\n\t* @throws RemoteException\r\n\t*/\r\n\tpublic int getTemperature (String day) throws RemoteException;\r\n\t\r\n\t/**\r\n\t * This method gets current temperature\r\n\t * \r\n\t * @return current temperature\r\n\t * \r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic int getTemperature() throws RemoteException;\r\n\r\n}", "title": "" }, { "docid": "aca25328790a25872fae8e0743c9b39b", "score": "0.5559394", "text": "@Remote\npublic interface AdministrationClient {\n\t//Ajouter un Client\n\tpublic Client addClient(Client c);\n\t//supprimer un Client\n\tpublic void removeClient(Client c);\n\t//mettre à jour un les droits d'un client\n\tpublic Client updatdeClientRights(Client c);\n\t//recuperer les droits d'un client\n\tpublic int getClientRights(Client c);\n\t\n\t//ajouter un objet \n\tpublic Objet addObjet(Objet o);\n\t//supprimer un objet\n\tpublic void deleteObjet(Objet o);\n\t\n\t\n\t \n\t\n\t\n}", "title": "" }, { "docid": "8a8043a1f337c5c33da47af98d032a4c", "score": "0.5558747", "text": "@Remote\npublic interface SoccerTournamentFacadeRemote extends SoccerTournamentFacade {\n\n}", "title": "" }, { "docid": "16b12a9cc2e1bce7edcc780bc76272ef", "score": "0.55489933", "text": "@Remote\r\npublic interface LigneConvensionManagerRemote\r\n extends LigneConvensionManager\r\n{\r\n\r\n\r\n}", "title": "" }, { "docid": "e9621c673a8bc7b3b29075a2204e70c4", "score": "0.55334383", "text": "public interface ServerFunction extends java.rmi.Remote {\n void registerPlayer(PlayerFunction player) throws java.rmi.RemoteException;\n\n String getName() throws java.rmi.RemoteException;\n\n void placeShip(PlayerFunction player, int x, int y, int x1,\n int y1, int shipNumber) throws java.rmi.RemoteException;\n\n String getGameBoard() throws java.rmi.RemoteException;\n\n void takeTurn(String message, PlayerFunction player, int x, int y)\n throws java.rmi.RemoteException;\n\n boolean checkPlayerHit(String playerName, int x, int y) throws\n java.rmi.RemoteException;\n}", "title": "" }, { "docid": "4ee0d5fdb46b78ddd2e37e3b0b064985", "score": "0.5527568", "text": "public interface StadObserver extends Remote {\n\n void modelChanged(StadRemote stad) throws RemoteException;\n\n}", "title": "" }, { "docid": "7e850c6c1d5e6660c58494b8ba83ed3e", "score": "0.55216175", "text": "public void reply()\n {\n }", "title": "" }, { "docid": "4116f880522a5ab7dc86d9275e1a3cb0", "score": "0.5514245", "text": "private static void remoteCall(int i, int j) {\n\t}", "title": "" }, { "docid": "7f7f03b4f69c0471fa69816c603466b2", "score": "0.55126625", "text": "public Remote getStub() {\n/* 154 */ return this.stub;\n/* */ }", "title": "" }, { "docid": "02b926e5f2a4d07322094c676b5d2220", "score": "0.55121297", "text": "public interface Agent extends Remote {\n void setId(int id) throws IOException;\n String readLog() throws IOException;\n Map<Integer,Integer> observe() throws RemoteException;\n boolean playTurn() throws RemoteException,FinDePartieException;\n}", "title": "" }, { "docid": "6a0b4323dabe4c0249f57730e7fa6cb2", "score": "0.5507967", "text": "public interface Resultator extends Remote {\n\tpublic String getResult() throws RemoteException;\n\tpublic void setResult(String result) throws RemoteException;\n\tpublic boolean isProcessed() throws RemoteException;\n\tpublic void setProcessed() throws RemoteException;\n}", "title": "" }, { "docid": "5c2e48ecf774740b0689d8d780b1d33f", "score": "0.55059254", "text": "public interface Library extends Remote{\r\n\tvoid checkOut(int choice, int id) throws RemoteException, InterruptedException;\r\n\tvoid checkIn(int bookTaken, int id) throws RemoteException;\r\n}", "title": "" }, { "docid": "1905f388fd50652b5f2e0283a06b4bac", "score": "0.5494681", "text": "public interface RemoteInterface\n{\n\tpublic String ping(int idNumber) throws RMIException;\n}", "title": "" }, { "docid": "784809f4d2ad935a397fad34859fdd10", "score": "0.54884684", "text": "public Object HandleMethod(Object... args)\r\n {\n \treturn null;\r\n }", "title": "" }, { "docid": "3abb86df5ae86f4baeb98163c623c3c4", "score": "0.5481624", "text": "public Object getEvent() {\n throw new NotYetImplementedException();\r\n }", "title": "" }, { "docid": "ede7f0b48afa37cf106803af1c658f07", "score": "0.5480154", "text": "void demoCustomMethod();", "title": "" }, { "docid": "8bc3d8a9f2503ee83de452d713adc815", "score": "0.5480105", "text": "public abstract void invoke(Context context);", "title": "" }, { "docid": "bac11b870abc29fdf115ad2b5e4bba3f", "score": "0.5469686", "text": "protected void doWriteRemoteInvocation(RemoteInvocation invocation, ObjectOutputStream oos)\r\n/* 106: */ throws IOException\r\n/* 107: */ {\r\n/* 108:198 */ oos.writeObject(invocation);\r\n/* 109: */ }", "title": "" } ]
fe386e57ce24eeba3d1f98a25c7b89ef
$ANTLR end "ruleEString" $ANTLR start "entryRulePruebaInterfaz" ../formulario.editor/srcgen/formulario/parser/antlr/internal/InternalFormulario.g:577:1: entryRulePruebaInterfaz returns [EObject current=null] : iv_rulePruebaInterfaz= rulePruebaInterfaz EOF ;
[ { "docid": "9ec412eff62e8459457757f1c9542152", "score": "0.7126587", "text": "public final EObject entryRulePruebaInterfaz() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_rulePruebaInterfaz = null;\r\n\r\n\r\n try {\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:578:2: (iv_rulePruebaInterfaz= rulePruebaInterfaz EOF )\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:579:2: iv_rulePruebaInterfaz= rulePruebaInterfaz EOF\r\n {\r\n newCompositeNode(grammarAccess.getPruebaInterfazRule()); \r\n pushFollow(FollowSets000.FOLLOW_rulePruebaInterfaz_in_entryRulePruebaInterfaz1388);\r\n iv_rulePruebaInterfaz=rulePruebaInterfaz();\r\n\r\n state._fsp--;\r\n\r\n current =iv_rulePruebaInterfaz; \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRulePruebaInterfaz1398); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" } ]
[ { "docid": "a2eadbcdfaa577eb407ccf8d4c9b075c", "score": "0.6113956", "text": "public final String entryRuleExpression() throws RecognitionException {\r\n String current = null;\r\n\r\n AntlrDatatypeRuleToken iv_ruleExpression = null;\r\n\r\n\r\n try {\r\n // InternalGolang.g:319:50: (iv_ruleExpression= ruleExpression EOF )\r\n // InternalGolang.g:320:2: iv_ruleExpression= ruleExpression EOF\r\n {\r\n newCompositeNode(grammarAccess.getExpressionRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleExpression=ruleExpression();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleExpression.getText(); \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "51319830437e3cd7c7776fe1c03127a6", "score": "0.5888258", "text": "public final EObject entryRuleExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExpression = null;\n\n\n try {\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:79:2: (iv_ruleExpression= ruleExpression EOF )\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:80:2: iv_ruleExpression= ruleExpression EOF\n {\n currentNode = createCompositeNode(grammarAccess.getExpressionRule(), currentNode); \n pushFollow(FOLLOW_ruleExpression_in_entryRuleExpression75);\n iv_ruleExpression=ruleExpression();\n _fsp--;\n\n current =iv_ruleExpression; \n match(input,EOF,FOLLOW_EOF_in_entryRuleExpression85); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "1ad1fc4719d2b02fc2e725e10753f6f1", "score": "0.57414037", "text": "public final EObject entryRuleRule() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleRule = null;\n\n\n try {\n // InternalAst.g:1683:45: (iv_ruleRule= ruleRule EOF )\n // InternalAst.g:1684:2: iv_ruleRule= ruleRule EOF\n {\n newCompositeNode(grammarAccess.getRuleRule()); \n pushFollow(FOLLOW_1);\n iv_ruleRule=ruleRule();\n\n state._fsp--;\n\n current =iv_ruleRule; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "f4b8970de827e88cbec42a09c07dec80", "score": "0.5736145", "text": "public final EObject entryRuleReaccion() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleReaccion = null;\r\n\r\n\r\n try {\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:335:2: (iv_ruleReaccion= ruleReaccion EOF )\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:336:2: iv_ruleReaccion= ruleReaccion EOF\r\n {\r\n newCompositeNode(grammarAccess.getReaccionRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleReaccion_in_entryRuleReaccion737);\r\n iv_ruleReaccion=ruleReaccion();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleReaccion; \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleReaccion747); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "cdb0ce803f4d423a70df92f9c74df601", "score": "0.5722657", "text": "public final String entryRuleEString() throws RecognitionException {\r\n String current = null;\r\n\r\n AntlrDatatypeRuleToken iv_ruleEString = null;\r\n\r\n\r\n try {\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:542:2: (iv_ruleEString= ruleEString EOF )\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:543:2: iv_ruleEString= ruleEString EOF\r\n {\r\n newCompositeNode(grammarAccess.getEStringRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleEString_in_entryRuleEString1266);\r\n iv_ruleEString=ruleEString();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleEString.getText(); \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleEString1277); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "dfbe335b63e18d4f6cd588e2205b8ced", "score": "0.57098925", "text": "public final EObject entryRuleExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleExpression = null;\r\n\r\n\r\n try {\r\n // InternalExpressionDsl.g:607:2: (iv_ruleExpression= ruleExpression EOF )\r\n // InternalExpressionDsl.g:608:2: iv_ruleExpression= ruleExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_ruleExpression=ruleExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleExpression; \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "cb3e8528ce12984346231cdd5ad9309a", "score": "0.56745106", "text": "public final EObject entryRuleidentifier() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleidentifier = null;\n\n\n try {\n // InternalMyDsl.g:14690:51: (iv_ruleidentifier= ruleidentifier EOF )\n // InternalMyDsl.g:14691:2: iv_ruleidentifier= ruleidentifier EOF\n {\n newCompositeNode(grammarAccess.getIdentifierRule()); \n pushFollow(FOLLOW_1);\n iv_ruleidentifier=ruleidentifier();\n\n state._fsp--;\n\n current =iv_ruleidentifier; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "7ae97af37d236e3478cfd10434abcded", "score": "0.5658338", "text": "public final EObject entryRuleExpr() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExpr = null;\n\n\n try {\n // InternalWh.g:1155:45: (iv_ruleExpr= ruleExpr EOF )\n // InternalWh.g:1156:2: iv_ruleExpr= ruleExpr EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getExprRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleExpr=ruleExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleExpr; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "643a81d7c76e1ff9bc76aaa236f31289", "score": "0.5611681", "text": "public final String entryRuleIdentifier() throws RecognitionException {\r\n String current = null;\r\n\r\n AntlrDatatypeRuleToken iv_ruleIdentifier = null;\r\n\r\n\r\n try {\r\n // InternalExpressionDsl.g:2830:2: (iv_ruleIdentifier= ruleIdentifier EOF )\r\n // InternalExpressionDsl.g:2831:2: iv_ruleIdentifier= ruleIdentifier EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getIdentifierRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_ruleIdentifier=ruleIdentifier();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleIdentifier.getText(); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "cbef2ba118878c3a251f2c74cb2b721e", "score": "0.5588848", "text": "public final EObject entryRuleFormulario() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleFormulario = null;\r\n\r\n\r\n try {\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:68:2: (iv_ruleFormulario= ruleFormulario EOF )\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:69:2: iv_ruleFormulario= ruleFormulario EOF\r\n {\r\n newCompositeNode(grammarAccess.getFormularioRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleFormulario_in_entryRuleFormulario75);\r\n iv_ruleFormulario=ruleFormulario();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleFormulario; \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleFormulario85); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "810c23adfa7cd47a0d7c463c690742c0", "score": "0.554137", "text": "public final EObject entryRuleInputTexto() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleInputTexto = null;\r\n\r\n\r\n try {\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:693:2: (iv_ruleInputTexto= ruleInputTexto EOF )\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:694:2: iv_ruleInputTexto= ruleInputTexto EOF\r\n {\r\n newCompositeNode(grammarAccess.getInputTextoRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleInputTexto_in_entryRuleInputTexto1679);\r\n iv_ruleInputTexto=ruleInputTexto();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleInputTexto; \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleInputTexto1689); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "7a30fbea69bf12295760c04c8f5eda60", "score": "0.5539777", "text": "public final EObject entryRuleInput() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleInput = null;\r\n\r\n\r\n try {\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:185:2: (iv_ruleInput= ruleInput EOF )\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:186:2: iv_ruleInput= ruleInput EOF\r\n {\r\n newCompositeNode(grammarAccess.getInputRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleInput_in_entryRuleInput310);\r\n iv_ruleInput=ruleInput();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleInput; \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleInput320); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "18fd8ca145a0c769435a3a38bcc9aa76", "score": "0.5530935", "text": "public final EObject entryRuleAsercion() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleAsercion = null;\r\n\r\n\r\n try {\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:375:2: (iv_ruleAsercion= ruleAsercion EOF )\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:376:2: iv_ruleAsercion= ruleAsercion EOF\r\n {\r\n newCompositeNode(grammarAccess.getAsercionRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleAsercion_in_entryRuleAsercion856);\r\n iv_ruleAsercion=ruleAsercion();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleAsercion; \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleAsercion866); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "e14a27ff2d48f8993628254ef8e3cfba", "score": "0.55054635", "text": "public final EObject entryRulePostfixExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_rulePostfixExpression = null;\r\n\r\n\r\n try {\r\n // InternalExpressionDsl.g:1563:2: (iv_rulePostfixExpression= rulePostfixExpression EOF )\r\n // InternalExpressionDsl.g:1564:2: iv_rulePostfixExpression= rulePostfixExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getPostfixExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_rulePostfixExpression=rulePostfixExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_rulePostfixExpression; \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "4d4f078d2473f67972d082d955d61d33", "score": "0.5468933", "text": "public final EObject entryRuleto_function_definition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleto_function_definition = null;\n\n\n try {\n // InternalMyDsl.g:13841:63: (iv_ruleto_function_definition= ruleto_function_definition EOF )\n // InternalMyDsl.g:13842:2: iv_ruleto_function_definition= ruleto_function_definition EOF\n {\n newCompositeNode(grammarAccess.getTo_function_definitionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleto_function_definition=ruleto_function_definition();\n\n state._fsp--;\n\n current =iv_ruleto_function_definition; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "278e1a54b8918f1151b6caf72e7c1a80", "score": "0.5443767", "text": "public final EObject entryRuleName() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleName = null;\n\n\n try {\n // ../org.larz.dom3.dm/src-gen/org/larz/dom3/dm/parser/antlr/internal/InternalDm.g:7940:2: (iv_ruleName= ruleName EOF )\n // ../org.larz.dom3.dm/src-gen/org/larz/dom3/dm/parser/antlr/internal/InternalDm.g:7941:2: iv_ruleName= ruleName EOF\n {\n newCompositeNode(grammarAccess.getNameRule()); \n pushFollow(FOLLOW_ruleName_in_entryRuleName19182);\n iv_ruleName=ruleName();\n\n state._fsp--;\n\n current =iv_ruleName; \n match(input,EOF,FOLLOW_EOF_in_entryRuleName19192); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "4a19a85d7735581e061c946d4612cfa5", "score": "0.54419774", "text": "public final EObject entryRuleInstruction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleInstruction = null;\n\n\n try {\n // InternalJsonParser.g:121:52: (iv_ruleInstruction= ruleInstruction EOF )\n // InternalJsonParser.g:122:2: iv_ruleInstruction= ruleInstruction EOF\n {\n newCompositeNode(grammarAccess.getInstructionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleInstruction=ruleInstruction();\n\n state._fsp--;\n\n current =iv_ruleInstruction; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "5fd930e2050c6a1bb0adb1cc018c13a9", "score": "0.5348012", "text": "public final String entryRuleEInt() throws RecognitionException {\r\n String current = null;\r\n\r\n AntlrDatatypeRuleToken iv_ruleEInt = null;\r\n\r\n\r\n try {\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:659:2: (iv_ruleEInt= ruleEInt EOF )\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:660:2: iv_ruleEInt= ruleEInt EOF\r\n {\r\n newCompositeNode(grammarAccess.getEIntRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleEInt_in_entryRuleEInt1567);\r\n iv_ruleEInt=ruleEInt();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleEInt.getText(); \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleEInt1578); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "32e19421d56da5c22fa5b05b26c522ad", "score": "0.53383493", "text": "public final EObject entryRuleDeclaration() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleDeclaration = null;\n\n\n try {\n // InternalRegistrationDSL.g:132:52: (iv_ruleDeclaration= ruleDeclaration EOF )\n // InternalRegistrationDSL.g:133:2: iv_ruleDeclaration= ruleDeclaration EOF\n {\n newCompositeNode(grammarAccess.getDeclarationRule()); \n pushFollow(FOLLOW_1);\n iv_ruleDeclaration=ruleDeclaration();\n\n state._fsp--;\n\n current =iv_ruleDeclaration; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "f877934172d3f7e38d1196da10f9f589", "score": "0.5291624", "text": "public final EObject entryRuleProcedure() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleProcedure = null;\n\n\n try {\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:945:2: (iv_ruleProcedure= ruleProcedure EOF )\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:946:2: iv_ruleProcedure= ruleProcedure EOF\n {\n currentNode = createCompositeNode(grammarAccess.getProcedureRule(), currentNode); \n pushFollow(FOLLOW_ruleProcedure_in_entryRuleProcedure1830);\n iv_ruleProcedure=ruleProcedure();\n _fsp--;\n\n current =iv_ruleProcedure; \n match(input,EOF,FOLLOW_EOF_in_entryRuleProcedure1840); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "c3755e1ff435b9e197e7c4c0ca6807aa", "score": "0.5279514", "text": "public final String entryRuleClassOrInterfaceName() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleClassOrInterfaceName = null;\n\n\n try {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:6137:1: (iv_ruleClassOrInterfaceName= ruleClassOrInterfaceName EOF )\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:6138:2: iv_ruleClassOrInterfaceName= ruleClassOrInterfaceName EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getClassOrInterfaceNameRule()); \n }\n pushFollow(FOLLOW_ruleClassOrInterfaceName_in_entryRuleClassOrInterfaceName12820);\n iv_ruleClassOrInterfaceName=ruleClassOrInterfaceName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleClassOrInterfaceName.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleClassOrInterfaceName12831); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "f45873054a57378f75ae0d81516b26e3", "score": "0.5272469", "text": "public final String entryRuleType() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleType = null;\n\n\n try {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5534:1: (iv_ruleType= ruleType EOF )\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5535:2: iv_ruleType= ruleType EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTypeRule()); \n }\n pushFollow(FOLLOW_ruleType_in_entryRuleType11008);\n iv_ruleType=ruleType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleType.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleType11019); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "d14f3f19b91ce0e2afb91526d5d9758c", "score": "0.52576125", "text": "public final EObject entryRuleParagraph() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleParagraph = null;\r\n\r\n\r\n try {\r\n // ../at.ac.univie.swa.ase2015.a9902268.task3/src-gen/at/ac/univie/swa/ase2015/a9902268/task3/parser/antlr/internal/InternalWikiML.g:1797:2: (iv_ruleParagraph= ruleParagraph EOF )\r\n // ../at.ac.univie.swa.ase2015.a9902268.task3/src-gen/at/ac/univie/swa/ase2015/a9902268/task3/parser/antlr/internal/InternalWikiML.g:1798:2: iv_ruleParagraph= ruleParagraph EOF\r\n {\r\n newCompositeNode(grammarAccess.getParagraphRule()); \r\n pushFollow(FOLLOW_ruleParagraph_in_entryRuleParagraph4255);\r\n iv_ruleParagraph=ruleParagraph();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleParagraph; \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleParagraph4265); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "351893efb58c340c4a3d0e3efe21bf99", "score": "0.5248149", "text": "public final EObject entryRuleParameter() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleParameter = null;\r\n\r\n\r\n try {\r\n // InternalExpressionDsl.g:383:2: (iv_ruleParameter= ruleParameter EOF )\r\n // InternalExpressionDsl.g:384:2: iv_ruleParameter= ruleParameter EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getParameterRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_ruleParameter=ruleParameter();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleParameter; \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "c6f9ae6ff00e2e5a9cfad591516ade53", "score": "0.5229523", "text": "public final String entryRuleValidID() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleValidID = null;\n\n\n try {\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:5211:2: (iv_ruleValidID= ruleValidID EOF )\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:5212:2: iv_ruleValidID= ruleValidID EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getValidIDRule()); \n }\n pushFollow(FOLLOW_ruleValidID_in_entryRuleValidID12368);\n iv_ruleValidID=ruleValidID();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleValidID.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleValidID12379); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "480f8dd01f3d6874cc867f853921ce00", "score": "0.52289027", "text": "public final EObject entryRuleText() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleText = null;\r\n\r\n\r\n try {\r\n // ../at.ac.univie.swa.ase2015.a9902268.task3/src-gen/at/ac/univie/swa/ase2015/a9902268/task3/parser/antlr/internal/InternalWikiML.g:1403:2: (iv_ruleText= ruleText EOF )\r\n // ../at.ac.univie.swa.ase2015.a9902268.task3/src-gen/at/ac/univie/swa/ase2015/a9902268/task3/parser/antlr/internal/InternalWikiML.g:1404:2: iv_ruleText= ruleText EOF\r\n {\r\n newCompositeNode(grammarAccess.getTextRule()); \r\n pushFollow(FOLLOW_ruleText_in_entryRuleText3318);\r\n iv_ruleText=ruleText();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleText; \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleText3328); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "b89af1aabc5e3c397eb3618252aa6046", "score": "0.5226454", "text": "public final EObject entryRuleItem() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleItem = null;\n\n\n try {\n // ../org.larz.dom3.dm/src-gen/org/larz/dom3/dm/parser/antlr/internal/InternalDm.g:7240:2: (iv_ruleItem= ruleItem EOF )\n // ../org.larz.dom3.dm/src-gen/org/larz/dom3/dm/parser/antlr/internal/InternalDm.g:7241:2: iv_ruleItem= ruleItem EOF\n {\n newCompositeNode(grammarAccess.getItemRule()); \n pushFollow(FOLLOW_ruleItem_in_entryRuleItem17443);\n iv_ruleItem=ruleItem();\n\n state._fsp--;\n\n current =iv_ruleItem; \n match(input,EOF,FOLLOW_EOF_in_entryRuleItem17453); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "cd6e6a9b6a32157d99d2f9f336d42e9d", "score": "0.5221616", "text": "public final String entryRuleName() throws RecognitionException {\r\n String current = null;\r\n\r\n AntlrDatatypeRuleToken iv_ruleName = null;\r\n\r\n\r\n try {\r\n // ../at.ac.univie.swa.ase2015.a9902268.task3/src-gen/at/ac/univie/swa/ase2015/a9902268/task3/parser/antlr/internal/InternalWikiML.g:1762:2: (iv_ruleName= ruleName EOF )\r\n // ../at.ac.univie.swa.ase2015.a9902268.task3/src-gen/at/ac/univie/swa/ase2015/a9902268/task3/parser/antlr/internal/InternalWikiML.g:1763:2: iv_ruleName= ruleName EOF\r\n {\r\n newCompositeNode(grammarAccess.getNameRule()); \r\n pushFollow(FOLLOW_ruleName_in_entryRuleName4136);\r\n iv_ruleName=ruleName();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleName.getText(); \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleName4147); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "d7c7da0ce05c669da60c9560d706a288", "score": "0.52024716", "text": "public final String entryRuleIntegerLiteral() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleIntegerLiteral = null;\n\n\n try {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5755:1: (iv_ruleIntegerLiteral= ruleIntegerLiteral EOF )\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5756:2: iv_ruleIntegerLiteral= ruleIntegerLiteral EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getIntegerLiteralRule()); \n }\n pushFollow(FOLLOW_ruleIntegerLiteral_in_entryRuleIntegerLiteral11675);\n iv_ruleIntegerLiteral=ruleIntegerLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleIntegerLiteral.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleIntegerLiteral11686); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "bcf8394668548705642d09e6a7a19eca", "score": "0.5195805", "text": "public final EObject entryRuleFunction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleFunction = null;\n\n\n try {\n // InternalWh.g:136:49: (iv_ruleFunction= ruleFunction EOF )\n // InternalWh.g:137:2: iv_ruleFunction= ruleFunction EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getFunctionRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleFunction=ruleFunction();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleFunction; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "625e1409a9e4b692282df0cb7dd82718", "score": "0.5184294", "text": "public final EObject entryRuleDeclaration() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleDeclaration = null;\r\n\r\n\r\n try {\r\n // InternalExpressionDsl.g:2152:2: (iv_ruleDeclaration= ruleDeclaration EOF )\r\n // InternalExpressionDsl.g:2153:2: iv_ruleDeclaration= ruleDeclaration EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getDeclarationRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_ruleDeclaration=ruleDeclaration();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleDeclaration; \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "cff3ee1774c3ec17a20d899335ad5fca", "score": "0.51729125", "text": "public final String entryRuleValidID() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleValidID = null;\n\n\n try {\n // InternalScripting.g:6191:47: (iv_ruleValidID= ruleValidID EOF )\n // InternalScripting.g:6192:2: iv_ruleValidID= ruleValidID EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getValidIDRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleValidID=ruleValidID();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleValidID.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ddcf4cb1c67bc05fd888edb27a7fdf68", "score": "0.5171025", "text": "public final EObject entryRuleStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleStatement = null;\n\n\n try {\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:739:2: (iv_ruleStatement= ruleStatement EOF )\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:740:2: iv_ruleStatement= ruleStatement EOF\n {\n currentNode = createCompositeNode(grammarAccess.getStatementRule(), currentNode); \n pushFollow(FOLLOW_ruleStatement_in_entryRuleStatement1426);\n iv_ruleStatement=ruleStatement();\n _fsp--;\n\n current =iv_ruleStatement; \n match(input,EOF,FOLLOW_EOF_in_entryRuleStatement1436); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "766b1475bed729209f816522397eea34", "score": "0.516629", "text": "public final EObject entryRuleParameter() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleParameter = null;\n\n\n try {\n // InternalSARL.g:7240:50: (iv_ruleParameter= ruleParameter EOF )\n // InternalSARL.g:7241:2: iv_ruleParameter= ruleParameter EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getParameterRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleParameter=ruleParameter();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleParameter; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "4e5593fcf6bcdb8ca63f123dc2caacb3", "score": "0.51537657", "text": "public final EObject entryRuleStatement() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleStatement = null;\n\n\n try {\n // InternalRegistrationDSL.g:531:50: (iv_ruleStatement= ruleStatement EOF )\n // InternalRegistrationDSL.g:532:2: iv_ruleStatement= ruleStatement EOF\n {\n newCompositeNode(grammarAccess.getStatementRule()); \n pushFollow(FOLLOW_1);\n iv_ruleStatement=ruleStatement();\n\n state._fsp--;\n\n current =iv_ruleStatement; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "66bf8c9da58d8ace4648480a56f751e2", "score": "0.51519406", "text": "public final void entryRuleEString() throws RecognitionException {\r\n try {\r\n // InternalRM.g:104:1: ( ruleEString EOF )\r\n // InternalRM.g:105:1: ruleEString EOF\r\n {\r\n before(grammarAccess.getEStringRule()); \r\n pushFollow(FOLLOW_1);\r\n ruleEString();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getEStringRule()); \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "17024e6dea5c78848da262f363ef8601", "score": "0.51448435", "text": "public final EObject entryRuleType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleType = null;\n\n\n try {\n // ../de.htwg.seapal.components/src-gen/de/htwg/seapal/components/parser/antlr/internal/InternalComponent.g:492:2: (iv_ruleType= ruleType EOF )\n // ../de.htwg.seapal.components/src-gen/de/htwg/seapal/components/parser/antlr/internal/InternalComponent.g:493:2: iv_ruleType= ruleType EOF\n {\n newCompositeNode(grammarAccess.getTypeRule()); \n pushFollow(FOLLOW_ruleType_in_entryRuleType1134);\n iv_ruleType=ruleType();\n\n state._fsp--;\n\n current =iv_ruleType; \n match(input,EOF,FOLLOW_EOF_in_entryRuleType1144); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "5e6d741e444bae89dc27297f7f46c952", "score": "0.5138973", "text": "public final EObject entryRuleInput() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleInput = null;\n\n\n try {\n // InternalWh.g:292:46: (iv_ruleInput= ruleInput EOF )\n // InternalWh.g:293:2: iv_ruleInput= ruleInput EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getInputRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleInput=ruleInput();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleInput; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "83291c4583ca1fdfc488cc892484198a", "score": "0.51380956", "text": "public final EObject entryRuleparameter_definition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleparameter_definition = null;\n\n\n try {\n // InternalMyDsl.g:10122:61: (iv_ruleparameter_definition= ruleparameter_definition EOF )\n // InternalMyDsl.g:10123:2: iv_ruleparameter_definition= ruleparameter_definition EOF\n {\n newCompositeNode(grammarAccess.getParameter_definitionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleparameter_definition=ruleparameter_definition();\n\n state._fsp--;\n\n current =iv_ruleparameter_definition; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "0ba082b96c22b5a979e9d8ba9654ccf5", "score": "0.51328814", "text": "public final void entryRuleEString() throws RecognitionException {\n try {\n // InternalPDL.g:104:1: ( ruleEString EOF )\n // InternalPDL.g:105:1: ruleEString EOF\n {\n before(grammarAccess.getEStringRule()); \n pushFollow(FOLLOW_1);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getEStringRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "547c38b3148f259eec0ccbccf55593f2", "score": "0.5132322", "text": "public final EObject entryRuleRichString() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleRichString = null;\n\n\n try {\n // InternalSARL.g:10089:51: (iv_ruleRichString= ruleRichString EOF )\n // InternalSARL.g:10090:2: iv_ruleRichString= ruleRichString EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getRichStringRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleRichString=ruleRichString();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleRichString; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "5b27edae6c57c8ff78b63ca74d1a559d", "score": "0.51297665", "text": "public final String entryRuleLiteral() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleLiteral = null;\n\n\n try {\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:2229:2: (iv_ruleLiteral= ruleLiteral EOF )\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:2230:2: iv_ruleLiteral= ruleLiteral EOF\n {\n currentNode = createCompositeNode(grammarAccess.getLiteralRule(), currentNode); \n pushFollow(FOLLOW_ruleLiteral_in_entryRuleLiteral3978);\n iv_ruleLiteral=ruleLiteral();\n _fsp--;\n\n current =iv_ruleLiteral.getText(); \n match(input,EOF,FOLLOW_EOF_in_entryRuleLiteral3989); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ed744f31fdec2584743d66a287755a9f", "score": "0.51290333", "text": "public final EObject entryRuleXExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXExpression = null;\n\n\n try {\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:117:2: (iv_ruleXExpression= ruleXExpression EOF )\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:118:2: iv_ruleXExpression= ruleXExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXExpressionRule()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_entryRuleXExpression194);\n iv_ruleXExpression=ruleXExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXExpression; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXExpression204); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "178a8ec7b5263c91f3fedbc38fbb6a60", "score": "0.51103604", "text": "public final String entryRuleLiteral() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleLiteral = null;\n\n\n try {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5876:1: (iv_ruleLiteral= ruleLiteral EOF )\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5877:2: iv_ruleLiteral= ruleLiteral EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getLiteralRule()); \n }\n pushFollow(FOLLOW_ruleLiteral_in_entryRuleLiteral12058);\n iv_ruleLiteral=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleLiteral.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleLiteral12069); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "629e3605953a2b80997e27301e707770", "score": "0.5101", "text": "public final EObject entryRuleInterface() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleInterface = null;\n\n\n try {\n // ../de.htwg.seapal.components/src-gen/de/htwg/seapal/components/parser/antlr/internal/InternalComponent.g:575:2: (iv_ruleInterface= ruleInterface EOF )\n // ../de.htwg.seapal.components/src-gen/de/htwg/seapal/components/parser/antlr/internal/InternalComponent.g:576:2: iv_ruleInterface= ruleInterface EOF\n {\n newCompositeNode(grammarAccess.getInterfaceRule()); \n pushFollow(FOLLOW_ruleInterface_in_entryRuleInterface1358);\n iv_ruleInterface=ruleInterface();\n\n state._fsp--;\n\n current =iv_ruleInterface; \n match(input,EOF,FOLLOW_EOF_in_entryRuleInterface1368); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "41b2c045b3173dc3904bab6a8b1abf81", "score": "0.507562", "text": "public final void entryRuleEString() throws RecognitionException {\n try {\n // InternalBehavDsl.g:429:1: ( ruleEString EOF )\n // InternalBehavDsl.g:430:1: ruleEString EOF\n {\n before(grammarAccess.getEStringRule()); \n pushFollow(FOLLOW_1);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getEStringRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "d89aaefabbe22029a705b1436234111f", "score": "0.50755525", "text": "public final EObject entryRuleExpressionOrQualifiedExecution() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleExpressionOrQualifiedExecution = null;\r\n\r\n\r\n try {\r\n // InternalExpressionDsl.g:1698:2: (iv_ruleExpressionOrQualifiedExecution= ruleExpressionOrQualifiedExecution EOF )\r\n // InternalExpressionDsl.g:1699:2: iv_ruleExpressionOrQualifiedExecution= ruleExpressionOrQualifiedExecution EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getExpressionOrQualifiedExecutionRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_ruleExpressionOrQualifiedExecution=ruleExpressionOrQualifiedExecution();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleExpressionOrQualifiedExecution; \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "fe5047cd296d4c135e78fec7379fd2bb", "score": "0.5074027", "text": "public final String entryRuleNumber() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleNumber = null;\n\n\n \n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();\n \t\n try {\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:4590:2: (iv_ruleNumber= ruleNumber EOF )\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:4591:2: iv_ruleNumber= ruleNumber EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getNumberRule()); \n }\n pushFollow(FOLLOW_ruleNumber_in_entryRuleNumber10794);\n iv_ruleNumber=ruleNumber();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleNumber.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleNumber10805); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return current;\n }", "title": "" }, { "docid": "4cca283615bec5b3a3d659543eb6b0dd", "score": "0.5073666", "text": "public final String entryRuleEOL() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleEOL = null;\n\n\n try {\n // InternalJsonParser.g:1203:43: (iv_ruleEOL= ruleEOL EOF )\n // InternalJsonParser.g:1204:2: iv_ruleEOL= ruleEOL EOF\n {\n newCompositeNode(grammarAccess.getEOLRule()); \n pushFollow(FOLLOW_1);\n iv_ruleEOL=ruleEOL();\n\n state._fsp--;\n\n current =iv_ruleEOL.getText(); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ba7c2d9c66b8ef2ff8e9d382242dfc9e", "score": "0.50719213", "text": "public final EObject entryRuleParameter() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleParameter = null;\n\n\n try {\n // ../ooi.bspl/src-gen/ooi/bspl/parser/antlr/internal/InternalBSPL.g:604:2: (iv_ruleParameter= ruleParameter EOF )\n // ../ooi.bspl/src-gen/ooi/bspl/parser/antlr/internal/InternalBSPL.g:605:2: iv_ruleParameter= ruleParameter EOF\n {\n currentNode = createCompositeNode(grammarAccess.getParameterRule(), currentNode); \n pushFollow(FOLLOW_ruleParameter_in_entryRuleParameter732);\n iv_ruleParameter=ruleParameter();\n _fsp--;\n\n current =iv_ruleParameter; \n match(input,EOF,FOLLOW_EOF_in_entryRuleParameter742); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "fe3b139fc9f05a952bd53d7580453fcb", "score": "0.50680023", "text": "public final String entryRuleValidID() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleValidID = null;\n\n\n try {\n // InternalSARL.g:9412:47: (iv_ruleValidID= ruleValidID EOF )\n // InternalSARL.g:9413:2: iv_ruleValidID= ruleValidID EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getValidIDRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleValidID=ruleValidID();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleValidID.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "aa427f04b126746cd8434ae5481c3036", "score": "0.5064244", "text": "public final EObject entryRuleQuiz() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleQuiz = null;\r\n\r\n\r\n try {\r\n // ../v1.quiz/src-gen/v1/quiz/parser/antlr/internal/InternalQuiz.g:160:2: (iv_ruleQuiz= ruleQuiz EOF )\r\n // ../v1.quiz/src-gen/v1/quiz/parser/antlr/internal/InternalQuiz.g:161:2: iv_ruleQuiz= ruleQuiz EOF\r\n {\r\n newCompositeNode(grammarAccess.getQuizRule()); \r\n pushFollow(FOLLOW_ruleQuiz_in_entryRuleQuiz260);\r\n iv_ruleQuiz=ruleQuiz();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleQuiz; \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleQuiz270); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "f8d6f8405a99ddce859e56979198871d", "score": "0.50630087", "text": "public final EObject entryRulePrimaryExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePrimaryExpression = null;\n\n\n try {\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:2075:2: (iv_rulePrimaryExpression= rulePrimaryExpression EOF )\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:2076:2: iv_rulePrimaryExpression= rulePrimaryExpression EOF\n {\n currentNode = createCompositeNode(grammarAccess.getPrimaryExpressionRule(), currentNode); \n pushFollow(FOLLOW_rulePrimaryExpression_in_entryRulePrimaryExpression3629);\n iv_rulePrimaryExpression=rulePrimaryExpression();\n _fsp--;\n\n current =iv_rulePrimaryExpression; \n match(input,EOF,FOLLOW_EOF_in_entryRulePrimaryExpression3639); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "48c1cf3460453f1333b5758b2063ed23", "score": "0.5057059", "text": "public final EObject entryRuleQualifiedName() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleQualifiedName = null;\r\n\r\n\r\n try {\r\n // InternalExpressionDsl.g:2571:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )\r\n // InternalExpressionDsl.g:2572:2: iv_ruleQualifiedName= ruleQualifiedName EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getQualifiedNameRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_ruleQualifiedName=ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleQualifiedName; \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "55e4547a10bd35e93b51533628b47eec", "score": "0.50480705", "text": "public final String entryRuleNumber() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleNumber = null;\n\n\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();\n\n try {\n // InternalScripting.g:5381:2: (iv_ruleNumber= ruleNumber EOF )\n // InternalScripting.g:5382:2: iv_ruleNumber= ruleNumber EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getNumberRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleNumber=ruleNumber();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleNumber.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return current;\n }", "title": "" }, { "docid": "a00cbd019bce8d64391588011239607d", "score": "0.5041563", "text": "public final EObject entryRuleParameterOrFieldOrMethodExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleParameterOrFieldOrMethodExpression = null;\n\n\n try {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:2567:2: (iv_ruleParameterOrFieldOrMethodExpression= ruleParameterOrFieldOrMethodExpression EOF )\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:2568:2: iv_ruleParameterOrFieldOrMethodExpression= ruleParameterOrFieldOrMethodExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getParameterOrFieldOrMethodExpressionRule()); \n }\n pushFollow(FOLLOW_ruleParameterOrFieldOrMethodExpression_in_entryRuleParameterOrFieldOrMethodExpression5264);\n iv_ruleParameterOrFieldOrMethodExpression=ruleParameterOrFieldOrMethodExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleParameterOrFieldOrMethodExpression; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleParameterOrFieldOrMethodExpression5274); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "026ee91380b354604b577c0596671f7d", "score": "0.5038109", "text": "public final EObject entryRuleDefinition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleDefinition = null;\n\n\n try {\n // InternalWh.g:200:51: (iv_ruleDefinition= ruleDefinition EOF )\n // InternalWh.g:201:2: iv_ruleDefinition= ruleDefinition EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getDefinitionRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleDefinition=ruleDefinition();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleDefinition; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "608a42aedc4e8f583c14ff00dbdb6a88", "score": "0.50346005", "text": "public final void entryRuleExpression() throws RecognitionException {\n try {\n // ../org.applause.applausedsl.ui/src-gen/org/applause/applausedsl/ui/contentassist/antlr/internal/InternalApplauseDsl.g:408:1: ( ruleExpression EOF )\n // ../org.applause.applausedsl.ui/src-gen/org/applause/applausedsl/ui/contentassist/antlr/internal/InternalApplauseDsl.g:409:1: ruleExpression EOF\n {\n before(grammarAccess.getExpressionRule()); \n pushFollow(FOLLOW_ruleExpression_in_entryRuleExpression792);\n ruleExpression();\n _fsp--;\n\n after(grammarAccess.getExpressionRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleExpression799); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "6b3db65db1e8b58372b1669fd9544952", "score": "0.5034397", "text": "public final String entryRuleKey() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleKey = null;\n\n\n try {\n // InternalJsonParser.g:1051:43: (iv_ruleKey= ruleKey EOF )\n // InternalJsonParser.g:1052:2: iv_ruleKey= ruleKey EOF\n {\n newCompositeNode(grammarAccess.getKeyRule()); \n pushFollow(FOLLOW_1);\n iv_ruleKey=ruleKey();\n\n state._fsp--;\n\n current =iv_ruleKey.getText(); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "8f5242639e3ebbfbe5f61019b981df17", "score": "0.50318426", "text": "public final EObject entryRuleType() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleType = null;\r\n\r\n\r\n try {\r\n // InternalExpressionDsl.g:2881:2: (iv_ruleType= ruleType EOF )\r\n // InternalExpressionDsl.g:2882:2: iv_ruleType= ruleType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getTypeRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_ruleType=ruleType();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleType; \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "0e523dd4822bd93699cad351da1ea861", "score": "0.5016722", "text": "public final EObject entryRuleCommand() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleCommand = null;\n\n\n try {\n // InternalStatemachine.g:511:48: (iv_ruleCommand= ruleCommand EOF )\n // InternalStatemachine.g:512:2: iv_ruleCommand= ruleCommand EOF\n {\n newCompositeNode(grammarAccess.getCommandRule()); \n pushFollow(FOLLOW_1);\n iv_ruleCommand=ruleCommand();\n\n state._fsp--;\n\n current =iv_ruleCommand; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "1081333e16083546750e8f5fd3cde9bb", "score": "0.5008681", "text": "public final EObject entryRuleAsercionValor() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleAsercionValor = null;\r\n\r\n\r\n try {\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:2138:2: (iv_ruleAsercionValor= ruleAsercionValor EOF )\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:2139:2: iv_ruleAsercionValor= ruleAsercionValor EOF\r\n {\r\n newCompositeNode(grammarAccess.getAsercionValorRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleAsercionValor_in_entryRuleAsercionValor4770);\r\n iv_ruleAsercionValor=ruleAsercionValor();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleAsercionValor; \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleAsercionValor4780); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "2c1db411b89be58f223cec29ffb05ea3", "score": "0.5008604", "text": "public final EObject entryRuleChoice() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleChoice = null;\r\n\r\n\r\n try {\r\n // ../v1.quiz/src-gen/v1/quiz/parser/antlr/internal/InternalQuiz.g:349:2: (iv_ruleChoice= ruleChoice EOF )\r\n // ../v1.quiz/src-gen/v1/quiz/parser/antlr/internal/InternalQuiz.g:350:2: iv_ruleChoice= ruleChoice EOF\r\n {\r\n newCompositeNode(grammarAccess.getChoiceRule()); \r\n pushFollow(FOLLOW_ruleChoice_in_entryRuleChoice645);\r\n iv_ruleChoice=ruleChoice();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleChoice; \r\n match(input,EOF,FOLLOW_EOF_in_entryRuleChoice655); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "52e4be7274b3b649db8027ec65b3de1d", "score": "0.5007032", "text": "public final EObject entryRuleScript() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleScript = null;\n\n\n try {\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:68:2: (iv_ruleScript= ruleScript EOF )\n // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:69:2: iv_ruleScript= ruleScript EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getScriptRule()); \n }\n pushFollow(FOLLOW_ruleScript_in_entryRuleScript75);\n iv_ruleScript=ruleScript();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleScript; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleScript85); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "aaa2071b1fdf326e156987ea8e926433", "score": "0.50047463", "text": "public final void entryRuleEString() throws RecognitionException {\n try {\n // InternalGsl.g:79:1: ( ruleEString EOF )\n // InternalGsl.g:80:1: ruleEString EOF\n {\n before(grammarAccess.getEStringRule()); \n pushFollow(FOLLOW_1);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getEStringRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "a7787f29d700482ddce189ea59b6bf94", "score": "0.5003572", "text": "public final EObject entryRuledescription() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruledescription = null;\n\n\n try {\n // InternalMyDsl.g:544:52: (iv_ruledescription= ruledescription EOF )\n // InternalMyDsl.g:545:2: iv_ruledescription= ruledescription EOF\n {\n newCompositeNode(grammarAccess.getDescriptionRule()); \n pushFollow(FOLLOW_1);\n iv_ruledescription=ruledescription();\n\n state._fsp--;\n\n current =iv_ruledescription; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "b29d79701af0bb8c5d47a089bd24bbee", "score": "0.49974668", "text": "public final EObject entryRulePrimary() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePrimary = null;\n\n\n try {\n // InternalMathCompilerDsl.g:339:48: (iv_rulePrimary= rulePrimary EOF )\n // InternalMathCompilerDsl.g:340:2: iv_rulePrimary= rulePrimary EOF\n {\n newCompositeNode(grammarAccess.getPrimaryRule()); \n pushFollow(FOLLOW_1);\n iv_rulePrimary=rulePrimary();\n\n state._fsp--;\n\n current =iv_rulePrimary; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "1b927a536deacacf515b01219c33a3ed", "score": "0.49926364", "text": "public final void entryRuleEString() throws RecognitionException {\n try {\n // InternalToscaDsl.g:79:1: ( ruleEString EOF )\n // InternalToscaDsl.g:80:1: ruleEString EOF\n {\n before(grammarAccess.getEStringRule()); \n pushFollow(FOLLOW_1);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getEStringRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "019e73568b284b5e41f262d2e5cefe9a", "score": "0.4989303", "text": "public final void entryRuleProblem() throws RecognitionException {\n try {\n // ../algorithmMaker.input.ui/src-gen/algorithmMaker/ui/contentassist/antlr/internal/InternalInput.g:145:1: ( ruleProblem EOF )\n // ../algorithmMaker.input.ui/src-gen/algorithmMaker/ui/contentassist/antlr/internal/InternalInput.g:146:1: ruleProblem EOF\n {\n before(grammarAccess.getProblemRule()); \n pushFollow(FOLLOW_ruleProblem_in_entryRuleProblem241);\n ruleProblem();\n\n state._fsp--;\n\n after(grammarAccess.getProblemRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleProblem248); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "14886f31f208a46ff9e573e92c46f97a", "score": "0.49890992", "text": "public final EObject entryRuleCommand() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleCommand = null;\n\n\n try {\n // InternalWh.g:477:48: (iv_ruleCommand= ruleCommand EOF )\n // InternalWh.g:478:2: iv_ruleCommand= ruleCommand EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getCommandRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleCommand=ruleCommand();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleCommand; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "3acb011987ed1bb2947b32dc14a3a1a1", "score": "0.49765432", "text": "public final void entryRuleEString() throws RecognitionException {\n try {\n // ../metabup.mm.texteditor.ui/src-gen/metabup/ui/contentassist/antlr/internal/InternalMetamodelDSL.g:201:1: ( ruleEString EOF )\n // ../metabup.mm.texteditor.ui/src-gen/metabup/ui/contentassist/antlr/internal/InternalMetamodelDSL.g:202:1: ruleEString EOF\n {\n before(grammarAccess.getEStringRule()); \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_entryRuleEString361);\n ruleEString();\n\n state._fsp--;\n\n after(grammarAccess.getEStringRule()); \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleEString368); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "29d3c3cf5348a716fd4ac5a516bdbf3a", "score": "0.49703935", "text": "public final void entryRuleExpression() throws RecognitionException {\r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:2736:1: ( ruleExpression EOF )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:2737:1: ruleExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleExpression_in_entryRuleExpression5799);\r\n ruleExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getExpressionRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleExpression5806); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2dc541f5264c72497072b53d7639a2d9", "score": "0.49679887", "text": "public final EObject entryRuleExp() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExp = null;\n\n\n try {\n // InternalRegistrationDSL.g:1068:44: (iv_ruleExp= ruleExp EOF )\n // InternalRegistrationDSL.g:1069:2: iv_ruleExp= ruleExp EOF\n {\n newCompositeNode(grammarAccess.getExpRule()); \n pushFollow(FOLLOW_1);\n iv_ruleExp=ruleExp();\n\n state._fsp--;\n\n current =iv_ruleExp; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "f06efc21a84ac09fda8810c080cf6fe1", "score": "0.49676985", "text": "public final EObject entryRuleAsercionInvisible() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleAsercionInvisible = null;\r\n\r\n\r\n try {\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:2020:2: (iv_ruleAsercionInvisible= ruleAsercionInvisible EOF )\r\n // ../formulario.editor/src-gen/formulario/parser/antlr/internal/InternalFormulario.g:2021:2: iv_ruleAsercionInvisible= ruleAsercionInvisible EOF\r\n {\r\n newCompositeNode(grammarAccess.getAsercionInvisibleRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleAsercionInvisible_in_entryRuleAsercionInvisible4470);\r\n iv_ruleAsercionInvisible=ruleAsercionInvisible();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleAsercionInvisible; \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleAsercionInvisible4480); \r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "eefb535932dd3b21304f3c9b159d34f3", "score": "0.49672943", "text": "public final EObject entryRuleField() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleField = null;\n\n\n try {\n // InternalRegistrationDSL.g:255:46: (iv_ruleField= ruleField EOF )\n // InternalRegistrationDSL.g:256:2: iv_ruleField= ruleField EOF\n {\n newCompositeNode(grammarAccess.getFieldRule()); \n pushFollow(FOLLOW_1);\n iv_ruleField=ruleField();\n\n state._fsp--;\n\n current =iv_ruleField; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "a7bc292ef7cd636dd1251cac5ec7c265", "score": "0.49561402", "text": "public final String entryRuleNumber() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleNumber = null;\n\n\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();\n\n try {\n // InternalSARL.g:15629:2: (iv_ruleNumber= ruleNumber EOF )\n // InternalSARL.g:15630:2: iv_ruleNumber= ruleNumber EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getNumberRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleNumber=ruleNumber();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleNumber.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return current;\n }", "title": "" }, { "docid": "bbd3b550a13237d40c259f3595691f04", "score": "0.4947541", "text": "public final EObject entryRuleAttribute() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAttribute = null;\n\n\n try {\n // InternalRegistrationDSL.g:300:50: (iv_ruleAttribute= ruleAttribute EOF )\n // InternalRegistrationDSL.g:301:2: iv_ruleAttribute= ruleAttribute EOF\n {\n newCompositeNode(grammarAccess.getAttributeRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAttribute=ruleAttribute();\n\n state._fsp--;\n\n current =iv_ruleAttribute; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "1354c76d643643caee4ec094583bdeba", "score": "0.49365026", "text": "public final EObject entryRulePrimaryExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_rulePrimaryExpression = null;\r\n\r\n\r\n try {\r\n // InternalExpressionDsl.g:1602:2: (iv_rulePrimaryExpression= rulePrimaryExpression EOF )\r\n // InternalExpressionDsl.g:1603:2: iv_rulePrimaryExpression= rulePrimaryExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getPrimaryExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n iv_rulePrimaryExpression=rulePrimaryExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_rulePrimaryExpression; \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "76fb31e094d494c2f0a5b3e52b8c387d", "score": "0.49260017", "text": "public final EObject entryRuleto_reference_definition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleto_reference_definition = null;\n\n\n try {\n // InternalMyDsl.g:13746:64: (iv_ruleto_reference_definition= ruleto_reference_definition EOF )\n // InternalMyDsl.g:13747:2: iv_ruleto_reference_definition= ruleto_reference_definition EOF\n {\n newCompositeNode(grammarAccess.getTo_reference_definitionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleto_reference_definition=ruleto_reference_definition();\n\n state._fsp--;\n\n current =iv_ruleto_reference_definition; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e5fd6650bdaa6339e29da7f77380751b", "score": "0.490749", "text": "public final EObject entryRuleImplementation() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleImplementation = null;\n\n\n try {\n // ../ttc.testdsl/src-gen/ttc/testdsl/parser/antlr/internal/InternalTTCTest.g:1929:2: (iv_ruleImplementation= ruleImplementation EOF )\n // ../ttc.testdsl/src-gen/ttc/testdsl/parser/antlr/internal/InternalTTCTest.g:1930:2: iv_ruleImplementation= ruleImplementation EOF\n {\n newCompositeNode(grammarAccess.getImplementationRule()); \n pushFollow(FOLLOW_ruleImplementation_in_entryRuleImplementation4439);\n iv_ruleImplementation=ruleImplementation();\n\n state._fsp--;\n\n current =iv_ruleImplementation; \n match(input,EOF,FOLLOW_EOF_in_entryRuleImplementation4449); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "7ee34315e0debe6344b38897a7c1aef2", "score": "0.49070182", "text": "public final EObject entryRuleAction() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAction = null;\n\n\n try {\n // InternalMyDsl.g:172:47: (iv_ruleAction= ruleAction EOF )\n // InternalMyDsl.g:173:2: iv_ruleAction= ruleAction EOF\n {\n newCompositeNode(grammarAccess.getActionRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAction=ruleAction();\n\n state._fsp--;\n\n current =iv_ruleAction; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "fd55a9df9a0437b00cca169e9ff0adf0", "score": "0.49042326", "text": "public final EObject entryRuleUAAssignmentExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleUAAssignmentExpression = null;\n\n\n try {\n // ../org.uppaal.xml.description/src-gen/org/uppaal/xml/description/parser/antlr/internal/InternalDescription.g:2332:2: (iv_ruleUAAssignmentExpression= ruleUAAssignmentExpression EOF )\n // ../org.uppaal.xml.description/src-gen/org/uppaal/xml/description/parser/antlr/internal/InternalDescription.g:2333:2: iv_ruleUAAssignmentExpression= ruleUAAssignmentExpression EOF\n {\n newCompositeNode(grammarAccess.getUAAssignmentExpressionRule()); \n pushFollow(FOLLOW_ruleUAAssignmentExpression_in_entryRuleUAAssignmentExpression5363);\n iv_ruleUAAssignmentExpression=ruleUAAssignmentExpression();\n\n state._fsp--;\n\n current =iv_ruleUAAssignmentExpression; \n match(input,EOF,FOLLOW_EOF_in_entryRuleUAAssignmentExpression5373); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "03def1e84879b52a061bfa30289fa591", "score": "0.49001837", "text": "public final EObject entryRuleType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleType = null;\n\n\n try {\n // InternalSARL.g:179:45: (iv_ruleType= ruleType EOF )\n // InternalSARL.g:180:2: iv_ruleType= ruleType EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTypeRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleType=ruleType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleType; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "9c480c323e3ee734a69ac607bc03efc1", "score": "0.4889359", "text": "public final EObject entryRuleExp() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExp = null;\n\n\n try {\n // InternalMathCompilerDsl.g:185:44: (iv_ruleExp= ruleExp EOF )\n // InternalMathCompilerDsl.g:186:2: iv_ruleExp= ruleExp EOF\n {\n newCompositeNode(grammarAccess.getExpRule()); \n pushFollow(FOLLOW_1);\n iv_ruleExp=ruleExp();\n\n state._fsp--;\n\n current =iv_ruleExp; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e9a093df2c3fc46a4d6fbd8584ed29f5", "score": "0.48866507", "text": "public final EObject entryRuleMessage() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleMessage = null;\n\n\n try {\n // ../ooi.bspl/src-gen/ooi/bspl/parser/antlr/internal/InternalBSPL.g:736:2: (iv_ruleMessage= ruleMessage EOF )\n // ../ooi.bspl/src-gen/ooi/bspl/parser/antlr/internal/InternalBSPL.g:737:2: iv_ruleMessage= ruleMessage EOF\n {\n currentNode = createCompositeNode(grammarAccess.getMessageRule(), currentNode); \n pushFollow(FOLLOW_ruleMessage_in_entryRuleMessage955);\n iv_ruleMessage=ruleMessage();\n _fsp--;\n\n current =iv_ruleMessage; \n match(input,EOF,FOLLOW_EOF_in_entryRuleMessage965); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e8682a289ee8c5cc25e256b1916a077d", "score": "0.48852247", "text": "public final EObject entryRuleContinueExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleContinueExpression = null;\n\n\n try {\n // InternalSARL.g:7479:59: (iv_ruleContinueExpression= ruleContinueExpression EOF )\n // InternalSARL.g:7480:2: iv_ruleContinueExpression= ruleContinueExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getContinueExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleContinueExpression=ruleContinueExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleContinueExpression; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "68927b24cec3975c53fb958664ef32dc", "score": "0.48770213", "text": "public final EObject entryRuleNumber() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleNumber = null;\n\n\n try {\n // InternalMathCompilerDsl.g:565:47: (iv_ruleNumber= ruleNumber EOF )\n // InternalMathCompilerDsl.g:566:2: iv_ruleNumber= ruleNumber EOF\n {\n newCompositeNode(grammarAccess.getNumberRule()); \n pushFollow(FOLLOW_1);\n iv_ruleNumber=ruleNumber();\n\n state._fsp--;\n\n current =iv_ruleNumber; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "68f0c121cc3d0e5e263e5d43df120574", "score": "0.48736325", "text": "public final EObject entryRuleUAPrefixExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleUAPrefixExpression = null;\n\n\n try {\n // ../org.uppaal.xml.description/src-gen/org/uppaal/xml/description/parser/antlr/internal/InternalDescription.g:3328:2: (iv_ruleUAPrefixExpression= ruleUAPrefixExpression EOF )\n // ../org.uppaal.xml.description/src-gen/org/uppaal/xml/description/parser/antlr/internal/InternalDescription.g:3329:2: iv_ruleUAPrefixExpression= ruleUAPrefixExpression EOF\n {\n newCompositeNode(grammarAccess.getUAPrefixExpressionRule()); \n pushFollow(FOLLOW_ruleUAPrefixExpression_in_entryRuleUAPrefixExpression7795);\n iv_ruleUAPrefixExpression=ruleUAPrefixExpression();\n\n state._fsp--;\n\n current =iv_ruleUAPrefixExpression; \n match(input,EOF,FOLLOW_EOF_in_entryRuleUAPrefixExpression7805); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "63dbd43c06a482a80e7ab97a510310d2", "score": "0.48720187", "text": "public final String entryRuleQualifiedIdentifier() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleQualifiedIdentifier = null;\n\n\n try {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5945:1: (iv_ruleQualifiedIdentifier= ruleQualifiedIdentifier EOF )\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:5946:2: iv_ruleQualifiedIdentifier= ruleQualifiedIdentifier EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getQualifiedIdentifierRule()); \n }\n pushFollow(FOLLOW_ruleQualifiedIdentifier_in_entryRuleQualifiedIdentifier12260);\n iv_ruleQualifiedIdentifier=ruleQualifiedIdentifier();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleQualifiedIdentifier.getText(); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedIdentifier12271); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "862bb0361ab6ccc8be6b0ddfa0ec4bfb", "score": "0.4866099", "text": "public final EObject entryRuleEvent() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEvent = null;\n\n\n try {\n // InternalStatemachine.g:457:46: (iv_ruleEvent= ruleEvent EOF )\n // InternalStatemachine.g:458:2: iv_ruleEvent= ruleEvent EOF\n {\n newCompositeNode(grammarAccess.getEventRule()); \n pushFollow(FOLLOW_1);\n iv_ruleEvent=ruleEvent();\n\n state._fsp--;\n\n current =iv_ruleEvent; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "94bc69d9e709ce8a479312693c7f585d", "score": "0.48636845", "text": "public final EObject entryRulefrom_definition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulefrom_definition = null;\n\n\n try {\n // InternalMyDsl.g:10911:56: (iv_rulefrom_definition= rulefrom_definition EOF )\n // InternalMyDsl.g:10912:2: iv_rulefrom_definition= rulefrom_definition EOF\n {\n newCompositeNode(grammarAccess.getFrom_definitionRule()); \n pushFollow(FOLLOW_1);\n iv_rulefrom_definition=rulefrom_definition();\n\n state._fsp--;\n\n current =iv_rulefrom_definition; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "45662e7680085ec148b7521fce4b9d55", "score": "0.48602086", "text": "public final EObject entryRuleUAPostfixExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleUAPostfixExpression = null;\n\n\n try {\n // ../org.uppaal.xml.description/src-gen/org/uppaal/xml/description/parser/antlr/internal/InternalDescription.g:3468:2: (iv_ruleUAPostfixExpression= ruleUAPostfixExpression EOF )\n // ../org.uppaal.xml.description/src-gen/org/uppaal/xml/description/parser/antlr/internal/InternalDescription.g:3469:2: iv_ruleUAPostfixExpression= ruleUAPostfixExpression EOF\n {\n newCompositeNode(grammarAccess.getUAPostfixExpressionRule()); \n pushFollow(FOLLOW_ruleUAPostfixExpression_in_entryRuleUAPostfixExpression8145);\n iv_ruleUAPostfixExpression=ruleUAPostfixExpression();\n\n state._fsp--;\n\n current =iv_ruleUAPostfixExpression; \n match(input,EOF,FOLLOW_EOF_in_entryRuleUAPostfixExpression8155); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "58073048e0548f3ca09639a3d0ea4d3f", "score": "0.48537827", "text": "public final EObject entryRuleActionExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleActionExpression = null;\n\n\n try {\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:253:2: (iv_ruleActionExpression= ruleActionExpression EOF )\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:254:2: iv_ruleActionExpression= ruleActionExpression EOF\n {\n currentNode = createCompositeNode(grammarAccess.getActionExpressionRule(), currentNode); \n pushFollow(FOLLOW_ruleActionExpression_in_entryRuleActionExpression437);\n iv_ruleActionExpression=ruleActionExpression();\n _fsp--;\n\n current =iv_ruleActionExpression; \n match(input,EOF,FOLLOW_EOF_in_entryRuleActionExpression447); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "d285050deb7985b9827c9e33e2d808ee", "score": "0.4853081", "text": "public final EObject entryRuleEvent() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEvent = null;\n\n\n try {\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:347:2: (iv_ruleEvent= ruleEvent EOF )\n // ../com.yakindu.statechart.model.expressions/src-gen/com/yakindu/statechart/model/expressions/parser/antlr/internal/InternalStatechartExpressions.g:348:2: iv_ruleEvent= ruleEvent EOF\n {\n currentNode = createCompositeNode(grammarAccess.getEventRule(), currentNode); \n pushFollow(FOLLOW_ruleEvent_in_entryRuleEvent618);\n iv_ruleEvent=ruleEvent();\n _fsp--;\n\n current =iv_ruleEvent; \n match(input,EOF,FOLLOW_EOF_in_entryRuleEvent628); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "f63399daa77d7cd0e51052c2fd0cb88a", "score": "0.48478338", "text": "public final EObject entryRuleMethodExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleMethodExpression = null;\n\n\n try {\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:4358:2: (iv_ruleMethodExpression= ruleMethodExpression EOF )\n // ../org.nightlabs.vestigo.xtext.jdoql/src-gen/org/nightlabs/vestigo/xtext/jdoql/parser/antlr/internal/InternalJDOQLParser.g:4359:2: iv_ruleMethodExpression= ruleMethodExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getMethodExpressionRule()); \n }\n pushFollow(FOLLOW_ruleMethodExpression_in_entryRuleMethodExpression8625);\n iv_ruleMethodExpression=ruleMethodExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleMethodExpression; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleMethodExpression8635); if (state.failed) return current;\n\n }\n\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "25db459a623042c7d1cabc4186b3270e", "score": "0.48454002", "text": "public final void entryRuleNameOrPrimaryExpression() throws RecognitionException {\r\n try {\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:3051:1: ( ruleNameOrPrimaryExpression EOF )\r\n // ../org.eclipse.papyrus.alf.ui/src-gen/org/eclipse/papyrus/alf/ui/contentassist/antlr/internal/InternalAlf.g:3052:1: ruleNameOrPrimaryExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getNameOrPrimaryExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleNameOrPrimaryExpression_in_entryRuleNameOrPrimaryExpression6476);\r\n ruleNameOrPrimaryExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getNameOrPrimaryExpressionRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleNameOrPrimaryExpression6483); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "54514bba85fcc3633b7bb9e17d3de32e", "score": "0.4843112", "text": "public final EObject entryRuleAdd() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleAdd = null;\n\n\n try {\n // InternalRegistrationDSL.g:630:44: (iv_ruleAdd= ruleAdd EOF )\n // InternalRegistrationDSL.g:631:2: iv_ruleAdd= ruleAdd EOF\n {\n newCompositeNode(grammarAccess.getAddRule()); \n pushFollow(FOLLOW_1);\n iv_ruleAdd=ruleAdd();\n\n state._fsp--;\n\n current =iv_ruleAdd; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "1c6849894d5be9ad18a173c7257a03fa", "score": "0.48423898", "text": "public final String entryRuleFunctionID() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleFunctionID = null;\n\n\n try {\n // InternalSARL.g:9099:50: (iv_ruleFunctionID= ruleFunctionID EOF )\n // InternalSARL.g:9100:2: iv_ruleFunctionID= ruleFunctionID EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getFunctionIDRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleFunctionID=ruleFunctionID();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleFunctionID.getText(); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "1ac29afccadd26642b658a82bf6bec57", "score": "0.4839459", "text": "public final EObject entryRulelabel_definition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulelabel_definition = null;\n\n\n try {\n // InternalMyDsl.g:7560:57: (iv_rulelabel_definition= rulelabel_definition EOF )\n // InternalMyDsl.g:7561:2: iv_rulelabel_definition= rulelabel_definition EOF\n {\n newCompositeNode(grammarAccess.getLabel_definitionRule()); \n pushFollow(FOLLOW_1);\n iv_rulelabel_definition=rulelabel_definition();\n\n state._fsp--;\n\n current =iv_rulelabel_definition; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "d430cd82a4730e1afa9dad507770d902", "score": "0.48375404", "text": "public final EObject entryRuleCondition() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleCondition = null;\n\n\n try {\n // ../ttc.testdsl/src-gen/ttc/testdsl/parser/antlr/internal/InternalTTCTest.g:1239:2: (iv_ruleCondition= ruleCondition EOF )\n // ../ttc.testdsl/src-gen/ttc/testdsl/parser/antlr/internal/InternalTTCTest.g:1240:2: iv_ruleCondition= ruleCondition EOF\n {\n newCompositeNode(grammarAccess.getConditionRule()); \n pushFollow(FOLLOW_ruleCondition_in_entryRuleCondition2762);\n iv_ruleCondition=ruleCondition();\n\n state._fsp--;\n\n current =iv_ruleCondition; \n match(input,EOF,FOLLOW_EOF_in_entryRuleCondition2772); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" } ]
6298bceaa1daee874bee800eebeb1e05
Created by shenhongxi on 2016/7/11.
[ { "docid": "1e6519277dae26806c4b5c8b3b58f009", "score": "0.0", "text": "public interface SimpleTaskService {\n\n boolean process(Task task);\n\n}", "title": "" } ]
[ { "docid": "74a4209c94e08d9f5eb0b60e580f5e04", "score": "0.6266332", "text": "@Override\r\n\tpublic void comit() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f37aebdfc461c1965abd4e2afbc83532", "score": "0.62277603", "text": "private void apparence()\r\n\t\t{\r\n\t\t//rien\r\n\t\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6213141", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14cffacd51e1ce2462cbb7320ae9815", "score": "0.6138138", "text": "@Override\n\tprotected void preInilize() {\n\t\t\n\t}", "title": "" }, { "docid": "0aeb31da8ebac864ecfc84df5be728c9", "score": "0.6096177", "text": "@Override\r\n\tpublic void koleos() {\n\t\t\r\n\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.6056444", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.6056444", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.60352683", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.6018809", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6012633", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "5d6f8db1f75beb16acd7c64687bc500c", "score": "0.59409505", "text": "private Utilitarios() {\n\t\t\n\t}", "title": "" }, { "docid": "3e556c0f03a7d2509fe80fc61a60a369", "score": "0.59349144", "text": "@Override\n\t\t\t\tpublic void init() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "b645eacb329adc01490ab5013a6c4f7f", "score": "0.59085166", "text": "@Override\n\t\t\tpublic void perfom() {\n\n\t\t\t}", "title": "" }, { "docid": "573e777b1723411d46abc7892cb5caea", "score": "0.5871475", "text": "public void mo5608a() {\n }", "title": "" }, { "docid": "2e8b0d8bb9fd62c1559ca4b277c6505c", "score": "0.5870443", "text": "@Override\n\tpublic void 이체() {\n\t\t\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.58306307", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.58306307", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5825545", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5825545", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.5817987", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.5817987", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.5813391", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "4541b4eaa2b2871ab4c98fc297f4dede", "score": "0.5791985", "text": "@Override\n\tpublic void descer() {\n\t\t\n\t}", "title": "" }, { "docid": "7dc226c2dd73339594b9a5d78d538a9b", "score": "0.5780325", "text": "public void soigner() {\n\t\t\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.5776244", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "03dec34dcb010fb4f8aaffffeb038a5c", "score": "0.574309", "text": "@Override\r\n public void atacar() {\n \r\n }", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.5727985", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.57100666", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.57100666", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57073927", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.57002693", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.5680142", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "164451c7abb6fff8ecb189a8f21fcd12", "score": "0.56758976", "text": "@Override\n\tpublic void init() {\n\t\n\n\t}", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.56751263", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "f8978d93b84e5118882a4ff5e000e716", "score": "0.56578094", "text": "private void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2c61ed93c2e8a4e918b773dc3a2e7966", "score": "0.56484354", "text": "private void traiteCreerRegle() {\n\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56438273", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56438273", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56438273", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56438273", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56438273", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56438273", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56438273", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56438273", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56438273", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.5640874", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.56357455", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "7c2f530eef910ca7368316b6425dbb09", "score": "0.5624081", "text": "@Override\n\t\t\tpublic void test12() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.56098515", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "a147e931a0b23fd21b8e6b39e13d9778", "score": "0.5601866", "text": "@Override\n\tprotected void alimentar() {\n\t\t\n\t}", "title": "" }, { "docid": "a147e931a0b23fd21b8e6b39e13d9778", "score": "0.5601866", "text": "@Override\n\tprotected void alimentar() {\n\t\t\n\t}", "title": "" }, { "docid": "d3f774182d4215967c63b04db821b349", "score": "0.56011206", "text": "@Override\r\n\tpublic void munul() {\n\t\t\r\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.55916995", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.55915785", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "8a2f3b349a25374b05205f9955000cb0", "score": "0.55887955", "text": "public void omzet(){\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5587793", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5587793", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5587793", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5587793", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5587793", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "6e5956e818ec3e8f970af74bb33f454d", "score": "0.5585535", "text": "public static void entrenar() {\r\n\r\n\t}", "title": "" }, { "docid": "4a318c00e2da3a27b638b396481252df", "score": "0.55851996", "text": "@Override\r\n\tpublic void herbivore() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4d0d3ada3b77658f4e45ede4fd37399e", "score": "0.5574953", "text": "@Override\n\t\t\tvoid fazTal() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.55686396", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.55686396", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.55686396", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.55686396", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5566271", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5564563", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5564563", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5564563", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5564563", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fb7e6b2a89843e694a13571c31377718", "score": "0.55575144", "text": "public void mo19849a() {\n }", "title": "" }, { "docid": "252960e025bfa106bbe3903b4e4cbd3c", "score": "0.55564284", "text": "public void mo35709a() {\n }", "title": "" }, { "docid": "8e056894cd061aea767d71a9c1b43d97", "score": "0.55563384", "text": "@Override\n\tpublic void init(){\n\t}", "title": "" }, { "docid": "690c3795eb018aa9906a3ed189d8e3a0", "score": "0.55558896", "text": "@Override\n\tpublic void atacar() {\n\n\t}", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.554879", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "9e3b9f67f6df4ff7587902e76540dbce", "score": "0.5542238", "text": "@Override\n\tpublic void nadar() {\n\t}", "title": "" }, { "docid": "d5df12c7fc56f53e0c3ce4a4c21583e1", "score": "0.553237", "text": "private void init() {\n\r\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5524857", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5524857", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5524857", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5524857", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5524857", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5524857", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5524857", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5524857", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "1ed144b4d2aead457255ab8ddb73ac57", "score": "0.55212253", "text": "@Override\r\n\tpublic void limpar() {\n\r\n\t}", "title": "" }, { "docid": "ff2a26de6775216e86ea92e547fb9c42", "score": "0.55142057", "text": "@Override\n\tpublic void manobrar() {\n\t\t\n\t}", "title": "" }, { "docid": "a8466bdc481ff3361d07776f72a6ad5a", "score": "0.55137706", "text": "@Override\n\tpublic void fliegen() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.55132985", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "234aa77d9cf02b8617820e857e5304e4", "score": "0.5506815", "text": "public void comer(){\n\t\t\n\t}", "title": "" }, { "docid": "457e0a2d8fe5f80cbf17d360e0cc0c1e", "score": "0.5505427", "text": "public void dormir(){\n\t\t\n\t}", "title": "" }, { "docid": "4e2bc6086cff0dc11f4d0ca1a0f610c2", "score": "0.54951984", "text": "@Override\r\n\tpublic void tired() {\n\t\t\r\n\t}", "title": "" }, { "docid": "314ae73dd9b4e0fd24e41e58c68718e8", "score": "0.5493564", "text": "@Override\r\n\tpublic void conducir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5492587", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.54852885", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.5484678", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "bcc647eaea257a78c8d339a2668f39eb", "score": "0.5463977", "text": "@Override\r\n\tpublic void thirsty() {\n\t\t\r\n\t}", "title": "" }, { "docid": "eb6fac579c5a5e493cb7f27eba04298e", "score": "0.5461639", "text": "private void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "087d8f1969faa21f6247025aedc8b4be", "score": "0.5455097", "text": "@Override\n\tpublic void faseRondas() {\n\t\t\n\t}", "title": "" } ]
777cfa036cf1c917e67ed1fb240189ea
List files in HDFS directory.
[ { "docid": "568670d67a50c3c3c43f57c91cf8f703", "score": "0.5800322", "text": "public static List<String> listFiles(URI uri) {\n List<String> result = new ArrayList<>();\n FileSystem fs = null;\n try {\n fs = FileSystem.get(uri, new Configuration(true), \"cloud\");\n RemoteIterator<LocatedFileStatus> files = fs.listFiles(new Path(uri.getPath()), false);\n while (files.hasNext()) {\n LocatedFileStatus fileStatus = files.next();\n if (fileStatus.isFile()) {\n String path = fileStatus.getPath().toUri().toString();\n result.add(path);\n }\n\n }\n } catch (IOException|InterruptedException e) {\n throw new IllegalStateException(e);\n }\n return result;\n }", "title": "" } ]
[ { "docid": "148a946b03cd52415ea0baa1881e0ec3", "score": "0.7206484", "text": "public List<String> listFiles(String directory) throws IOException, Exception;", "title": "" }, { "docid": "2bc2677c02dcaae121f653af02d2d5c2", "score": "0.69210744", "text": "@Override\n\tpublic List<String> listFilesInDirectory(String path) throws IOException {\n\t\treturn this.doListDirectory(path, true, false);\n\t}", "title": "" }, { "docid": "d5b1a316c4aef8d149caa1c74fa305c0", "score": "0.6869098", "text": "List<String> listFiles(String path);", "title": "" }, { "docid": "a516ea41b5d310071fcb5483c9cb1f7c", "score": "0.66500455", "text": "public List<String> getAllFiles();", "title": "" }, { "docid": "efd9746031eaee58d515ec9f6606c95a", "score": "0.6432138", "text": "public abstract ArrayList<String> getFiles(String directory_path,\n\t\t\tString hash);", "title": "" }, { "docid": "37571100080e7089dc243c39a6e929ed", "score": "0.6289669", "text": "public IFile[] listFsFiles(String filepath) throws IOException {\n\t\t\t\t\n\t\tIFile path = mStorage.newFsFileByName(filepath); \n\t\treturn listFsFiles(path);\n\t}", "title": "" }, { "docid": "7b4a9c3c2c09f416c3ca34a0438f3174", "score": "0.6276755", "text": "public static List<String> enumerateDistributedFiles(String dirPath, JobConf job) throws IOException {\n\n\t\tFileSystem fs;\n\t\tif (dirPath.contains(\":\")) {\n\t\t try {\n\t\t \tfs = FileSystem.get(new URI(dirPath), job);\n\t\t }\n\t\t catch (URISyntaxException e) {\n\t\t \tthrow new IOException(e);\n\t\t }\n\t\t} else {\n\t\t fs = FileSystem.get(job);\n\t\t}\n\t\tSystem.out.println(\"Path: \" + dirPath);\n\n\t\tList<String> files = new ArrayList<String>();\n\t\tgetAllFiles(fs, dirPath, files);\n\t\treturn files;\n\t}", "title": "" }, { "docid": "93a357a5f0ce00c51df10772a555e9c2", "score": "0.618814", "text": "@Override\n public FileStatus[] listStatus(Path f) throws IOException {\n LOG.debug(\"list status:\" + f);\n checkPermission(f, AccessType.LIST);\n\n Path absolutePath = makeAbsolute(f);\n String key = pathToKey(absolutePath);\n\n if (key.length() > 0) {\n FileMetadata meta = store.retrieveMetadata(key);\n if (meta != null && meta.isFile()) {\n return new FileStatus[]{newFile(meta, absolutePath)};\n }\n }\n\n if (!key.endsWith(PATH_DELIMITER)) {\n key += PATH_DELIMITER;\n }\n\n URI pathUri = absolutePath.toUri();\n Set<FileStatus> status = new TreeSet<FileStatus>();\n String priorLastKey = null;\n do {\n CosNPartialListing listing = store.list(key, COS_MAX_LISTING_LENGTH,\n priorLastKey, false);\n for (FileMetadata fileMetadata : listing.getFiles()) {\n Path subPath = keyToPath(fileMetadata.getKey());\n if (fileMetadata.getKey().equals(key)) {\n // this is just the directory we have been asked to list\n LOG.debug(\"This is just the directory we have been asked to list. cos key: {}.\",\n fileMetadata.getKey());\n } else {\n status.add(newFile(fileMetadata, subPath));\n }\n }\n for (FileMetadata commonPrefix : listing.getCommonPrefixes()) {\n Path subpath = keyToPath(commonPrefix.getKey());\n String relativePath =\n pathUri.relativize(subpath.toUri()).getPath();\n status.add(newDirectory(commonPrefix, new Path(absolutePath,\n relativePath)));\n }\n priorLastKey = listing.getPriorLastKey();\n } while (priorLastKey != null);\n\n return status.toArray(new FileStatus[status.size()]);\n }", "title": "" }, { "docid": "97157c9fea9166e74db42ac7125a27bd", "score": "0.6167062", "text": "List<String> listPath(String pathToBeListed) throws IOException;", "title": "" }, { "docid": "e269ae9a85ddd711347a1b70c40f022c", "score": "0.61314416", "text": "private List<String> retrieveDirectoryFileList()\n {\n List<String> files;\n \n files=new ArrayList<>();\n Stream.of(directoryFile.listFiles())\n .filter(file -> !file.isDirectory() && file.length()>0 && file.getAbsolutePath().endsWith(\".fit\"))\n .map(File::getName)\n .forEach(file -> {files.add(file);}); \n return files;\n }", "title": "" }, { "docid": "91cdf3578c217a7cf18699d50d31a1c7", "score": "0.6107595", "text": "java.util.List<build.bazel.remote.execution.v2.FileNode> \n getFilesList();", "title": "" }, { "docid": "32d0d7321d61eb601d35abededf25c7d", "score": "0.6088059", "text": "@Override\n\tpublic String[] list(String dir) throws IOException {\n\t\treturn res.list(dir);\n\t}", "title": "" }, { "docid": "20602c84a991cd1123a24559438c0dcb", "score": "0.607306", "text": "public VFile[] listFiles()\n {\n String[] list = getVfs().list(path);\n VFile[] result = new VFile[list.length];\n for (int i = 0; i < list.length; i++)\n {\n String name = list[i];\n result[i] = new VFile(path.join(name));\n }\n return result;\n }", "title": "" }, { "docid": "90d993327f411972757669bd6fc99561", "score": "0.6063311", "text": "public List<String> listSubdirectories(String directory) throws IOException, Exception;", "title": "" }, { "docid": "bef5927a3c7e171491baf7b79356f3e6", "score": "0.60566914", "text": "List<String> getFileList(String path) throws ProviderException;", "title": "" }, { "docid": "d772d2f05550d8c49e0896dd8eb1b487", "score": "0.6020808", "text": "public List<String> get_files(){\n\t\tMyMap filelist = ControlClient.get_file_list(path,user);\n \treturn new ArrayList<>(filelist.get(user));\n\t}", "title": "" }, { "docid": "972096a1235961b42f01340fe93a86f9", "score": "0.59936696", "text": "public Vector listFiles(File directory) throws FileException {\r\n\t\ttry {\r\n\t\t\tjava.io.File dir = new java.io.File(directory.getPath());\r\n\t\t\tjava.io.File[] contents = dir.listFiles();\r\n\t\t\tVector result = new Vector();\r\n\t\t\tif (contents != null) {\r\n\t\t\t\tfor (int i = 0; i < contents.length; i++) {\r\n\t\t\t\t\tresult.addElement(create(contents[i]));\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogging.error(getClass(), \"Retrieving list failed.\", e);\r\n\t\t\tthrow new FileException(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "11f310cea8822cc89486eb50638e073e", "score": "0.59849316", "text": "@Override\n public FileStatus[] listStatus(Path f) throws IOException {\n LOG.debug(\"list status:\" + f);\n\n Path absolutePath = makeAbsolute(f);\n String key = pathToKey(absolutePath);\n\n if (key.length() > 0) {\n FileMetadata meta = store.retrieveMetadata(key);\n /*\n if (meta == null) {\n throw new FileNotFoundException(\"File \" + f + \" does not exist.\");\n }\n if (meta.isFile()) {\n return new FileStatus[] {newFile(meta, absolutePath)};\n }\n */\n if (meta != null && meta.isFile()) {\n return new FileStatus[] {newFile(meta, absolutePath)};\n }\n }\n\n if (!key.endsWith(PATH_DELIMITER)) {\n key += PATH_DELIMITER;\n }\n\n URI pathUri = absolutePath.toUri();\n Set<FileStatus> status = new TreeSet<FileStatus>();\n String priorLastKey = null;\n do {\n PartialListing listing = store.list(key, COS_MAX_LISTING_LENGTH, priorLastKey, false);\n for (FileMetadata fileMetadata : listing.getFiles()) {\n LOG.debug(\"fileMeta:\" + fileMetadata.toString());\n Path subpath = keyToPath(fileMetadata.getKey());\n\n if (fileMetadata.getKey().equals(key)) {\n // this is just the directory we have been asked to list\n } else {\n status.add(newFile(fileMetadata, subpath));\n }\n }\n for (FileMetadata commonPrefix : listing.getCommonPrefixes()) {\n Path subpath = keyToPath(commonPrefix.getKey());\n LOG.debug(\"commprefix, subpath\" + subpath);\n String relativePath = pathUri.relativize(subpath.toUri()).getPath();\n LOG.debug(\"commprefix, relativePath:\" + relativePath);\n LOG.debug(\"full path:\" + new Path(absolutePath, relativePath));\n status.add(newDirectory(commonPrefix, new Path(absolutePath, relativePath)));\n }\n priorLastKey = listing.getPriorLastKey();\n } while (priorLastKey != null);\n\n return status.toArray(new FileStatus[status.size()]);\n }", "title": "" }, { "docid": "a2d99ddf525ce8828a216ec2e05c96a2", "score": "0.59797305", "text": "public final File[] flist(String path) {\r\n \t\treturn Paths.get(path).toFile().listFiles();\r\n \t}", "title": "" }, { "docid": "fe29d4ebb27ec093ee19fdc340ee13eb", "score": "0.5954365", "text": "@Override\n public List<File> listFiles(String rootDir) {\n File root = new File(rootDir);\n Path p = root.toPath();\n try {\n return Files.walk(p).map(Path::toFile).collect(Collectors.toList());\n } catch (IOException e){\n throw new RuntimeException(\"listFile failed\");\n }\n return null;\n }", "title": "" }, { "docid": "31e4104f20c70bda551929ff9327dcf3", "score": "0.5912003", "text": "public List<File> getFiles(){\n List<File> fileList = new ArrayList<File>();\n if (directory.isDirectory())\n for (File file: directory.listFiles())\n fileList.add(file);\n\n return fileList;\n }", "title": "" }, { "docid": "200f8a4d04650bf4925cce89f145876d", "score": "0.5868999", "text": "public List<FileAttributes> list(String directory) throws IOException, Exception;", "title": "" }, { "docid": "0c37f2b57ff7b232b268f90181c18456", "score": "0.58633685", "text": "@GET\n\t@Path(\"/list\")\n\t@Produces(\"text/html\")\n\tpublic Response getFileList(@QueryParam(\"path\") String path) {\n\n\t\treturn ftpService.getFileList(ftpHostName, ftpPort,\n\t\t\t\tthis.nameStorage.getLogin(), this.nameStorage.getPassword(),\n\t\t\t\tpath, isPASV);\n\t}", "title": "" }, { "docid": "c65f5841216626cc4b0e4cfa0347c37b", "score": "0.58374786", "text": "build.bazel.remote.execution.v2.FileNode getFiles(int index);", "title": "" }, { "docid": "b0454f7ebc3c744aab629fc9649596f3", "score": "0.58343405", "text": "private void downloadFromHDFS(File localDir) {\n String command = \"hdfs dfs -get \" + OUTPUT_PATH + \"/\" + OUTPUT_FILE + \" \" + localDir;\n System.out.println(command);\n try {\n // Execute terminal command\n Process proc = Runtime.getRuntime().exec(command);\n BufferedReader reader = new BufferedReader(new InputStreamReader(proc.getInputStream()));\n String line = \"\";\n while ((line = reader.readLine()) != null) {\n System.out.println(line);\n }\n proc.waitFor();\n System.out.println(\"Downloaded.\");\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "931608007f9f4382ab353a90f5a07473", "score": "0.5833699", "text": "@Override\n\tpublic List<String> listFoldersInDirectory(String path) throws IOException {\n\t\treturn this.doListDirectory(path, false, true);\n\t}", "title": "" }, { "docid": "cd90853d567ba5cd4dda830e637d0bd9", "score": "0.58233947", "text": "public List<File> getFilesList( )\n {\n return FileHome.getFilesList( PluginService.getPlugin( DirectoryPlugin.PLUGIN_NAME ) );\n }", "title": "" }, { "docid": "679a446eebede0573669411bb6dce951", "score": "0.57980037", "text": "public EncFSFile[] listFilesForPath(String dirPath)\n \t\t\tthrows EncFSCorruptDataException, IOException {\n \t\tEncFSFile dir = getFile(dirPath);\n \n \t\treturn dir.listFiles();\n \t}", "title": "" }, { "docid": "a51741781239a05cdad2d11f235e4b16", "score": "0.57920676", "text": "public List<Files> findAll() throws FileException;", "title": "" }, { "docid": "bd94154a3c1595eca36d072a13b166d9", "score": "0.5766345", "text": "public static List<String> filesInDirectory(String path){\n\t\tlogger.info(\"Starting to list files\");\n\t\tFile dir=new File(path);\n\t\tFile[] fileList;\n\t\tif(dir.exists())\n\t\t\tfileList=dir.listFiles();\n\t\telse{\n\t\t\tlogger.warn(\"Directory not found\"+path);\n\t\t\treturn null;\n\t\t}\n\t\tList<String> retour = new ArrayList<String>();\n\t\t\n\t\tfor (File f:fileList){\n\t\t\tif (!f.isFile()){\n\t\t\t\tlogger.warn(\"Not checking \"+f.getAbsolutePath()+\" is not a file\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tlogger.info(\"File :\"+f.getAbsolutePath()+\" added\");\n\t\t\tretour.add(f.getAbsolutePath());\n\t\t}\n\t\tlogger.info(\"Listing done\");\n\t\treturn retour;\n\t}", "title": "" }, { "docid": "c6592e12acf9dc3280f140de3a78857e", "score": "0.5748901", "text": "public static void getAllFiles(FileSystem fs, String dirPath, List<String> files) throws IOException {\n\n\t\tPath loc = new Path(dirPath);\n\t\tFileStatus[] statuses = fs.listStatus(loc);\n\t\tif (statuses != null) {\n\t\t\tint i = 0;\n\t\t\tfor (FileStatus status : statuses) {\n\t\t\t String file = statuses[i++].getPath().toString();\n\t\t\t if (fs.isDirectory(new Path(file))) {\n\t\t\t\tgetAllFiles(fs, file, files);\t\n\t\t\t }\n\t\t\t else if (files.indexOf(file) == -1) { // if not already there\n\t\t\t\tSystem.out.println(file);\n\t\t\t\tfiles.add(file);\n\t\t\t } \n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ee21b6372a0d9eee0859efdbb3924188", "score": "0.57466805", "text": "public void listDirectory(File dir) throws IOException{\n\t if(!dir.exists()){\n\t throw new IllegalArgumentException(\"目录:\"+dir+\"不存在.\");\n\t }\n\t if(!dir.isDirectory()){\n\t throw new IllegalArgumentException(dir+\"不是目录\");\n\t }\n\t //如果要遍历子目录下的内容就需要构造成File对象做递归操作,File提供了直接返回子目录的抽象\n\t File[] files = dir.listFiles();//直接返回的是直接子目录(文件的抽象)\n\t if(files!=null&&files.length>0){\n\t for (File file : files) {\n\t if(file.isDirectory()){\n\t //递归\n\t listDirectory(file);\n\t }\n\t else{\n\t \tif(file.getAbsolutePath().endsWith(\"doc\") || file.getAbsolutePath().endsWith(\"docx\")) {\n\t \tfileList.add(file.getAbsolutePath());}\n\t System.out.println(file);\n\t }\n\t }\n\t }\n\t }", "title": "" }, { "docid": "c658d5549dca6088ac46bf01892f7a32", "score": "0.57428193", "text": "private static File[] getListOfFiles(File dataDir) {\n\t\treturn dataDir.listFiles();\r\n\t}", "title": "" }, { "docid": "e6cc6656f5a01c086347d0376c742799", "score": "0.5716032", "text": "public List<String> getFileListInDirectory(String path) {\r\n File folder = new File(path);\r\n File[] listOfFiles = folder.listFiles();\r\n List<String> fileList = new ArrayList<String>();\r\n\r\n for (int i = 0; i < listOfFiles.length; i++) {\r\n if (listOfFiles[i].isFile()) {\r\n fileList.add(listOfFiles[i].getName());\r\n }\r\n }\r\n return fileList;\r\n }", "title": "" }, { "docid": "f0ddefeba98902c961dd82c70fb59411", "score": "0.5658318", "text": "public File[] listFilesInDir(String dirPath) throws IOException {\n Path path = Paths.get(dirPath);\n File file = path.toFile();\n if (!file.isDirectory()) {\n throw new IOException(\"Path given must be a directory\");\n }\n return file.listFiles();\n }", "title": "" }, { "docid": "36f7aa768054251edb3092b88290b648", "score": "0.56215274", "text": "private String getFileList( String path) {\n File folder = new File(path); //folder created in requested location\r\n File[] listOfFiles = folder.listFiles(); //array to hold the files\r\n \r\n StringBuilder sb = new StringBuilder();\r\n \r\n //adding to the list either a file of a directory\r\n for (int i = 0; i < listOfFiles.length; i++) {\r\n if (listOfFiles[i].isFile()) {\r\n sb.append(\"File:\" + listOfFiles[i].getName() + \"\\n\");\r\n } else if (listOfFiles[i].isDirectory()) {\r\n sb.append(\"Directory:\" + listOfFiles[i].getName() + \"\\n\");\r\n }\r\n }\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "f80f554675211c7191c8af2db8365c22", "score": "0.5619797", "text": "public String[] list()\n {\n return getVfs().list(path);\n }", "title": "" }, { "docid": "1d68b398eb4cf37184ab96eda8db96cc", "score": "0.561718", "text": "public Vector getFileList(String path) throws RemoteException\n\t{\n\t\t\n\n\t\tVector v = new Vector();\n\t\tFile f = new File(path+\"//\");\n\t\tString[] fl = f.list();\n\t\ttry\n\t\t{\n\t\t\tfor(int i=0; i<fl.length; ++i)\n\t\t\t{\n\t\t\t\tFile l = new File(path+\"//\"+fl[i]);\n\t\t\t\tif(!l.isDirectory())\n\t\t\t\t\tv.add(fl[i]);\n\t\t\t}\n\t\t} catch(Exception e) {}\n\t\tapp.setStatus(\" * Sent file list - \"+path);\n\t\treturn v;\n\t}", "title": "" }, { "docid": "7bd706087162b70f3e9aa398f012a0dd", "score": "0.5609148", "text": "public abstract String[] fileList();", "title": "" }, { "docid": "af3e76412a2ecc9c331a4b674abe4a9a", "score": "0.5603425", "text": "private void listFilenames(String parsedURL) throws IOException {\n\t\tFile d = new File(parsedURL);\n\t\t\t\ts.write(ByteBuffer.wrap(\n\t\t\t\t\t\t(httpVersion + \" 200 OK\\r\\n\").getBytes(charset)));\n\t\t\t\ts.write(ByteBuffer.wrap(\n\t\t\t\t\t\t(\"Content-Type: text/html\\r\\n\").getBytes(charset)));\n\t\t\t\ts.write(ByteBuffer.wrap(\n\t\t\t\t\t\t(\"Content-Length: \" + getContentLength(d) + \"\\r\\n\")\n\t\t\t\t\t\t.getBytes(charset)));\n\t\t\t\ts.write(ByteBuffer.wrap(\n\t\t\t\t\t\t(\"Date: \" + sdf[0].format(new Date()) + \"\\r\\n\")\n\t\t\t\t\t\t.getBytes(charset)));\n\t\t\t\ts.write(ByteBuffer.wrap(\n\t\t\t\t\t\t(\"Connection: close\\r\\n\\r\\n\").getBytes(charset)));\n\t\t\tif (method.equals(\"GET\")) {\n\t\t\t\ts.write(ByteBuffer.wrap(dirList.getBytes(charset)));\n\t\t\t}\n\t}", "title": "" }, { "docid": "4fe425335a0f58c14386611e9eb9c690", "score": "0.55684453", "text": "private void listf(String directoryName)\n\t{\n\t\tFile directory = new File (directoryName);\n\n\t\tFile[] flist = directory.listFiles();\n\t\tfor (File file : flist) {\n\t\t\tif (file.isFile()){\n\t\t\t\tfiles.add(file.getAbsolutePath());\n\t\t\t} else if (file.isDirectory()) {\n\t\t\t\tlistf(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e5d36666e3d67a954fe21a8b95b529a9", "score": "0.55411124", "text": "@Override\n public List<File> listFiles(String rootDir) {\n File[] tree = new File(rootDir).listFiles();\n List<File> fileList = new ArrayList<File>();\n if (tree != null) {\n for (File file : tree) {\n if (file.isDirectory()) {\n for (File dirFile : listFiles(file.getAbsolutePath())) {\n fileList.add(dirFile);\n }\n }\n else {\n fileList.add(file);\n }\n }\n }\n\n return fileList;\n }", "title": "" }, { "docid": "c202ec31bedf94d438122ce0b3d24cd6", "score": "0.5536144", "text": "public static ArrayList<String> listFilesofDirectory(String path) {\n\t\tArrayList<String> files = new ArrayList<String>();\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles(); \n\n\t\tfor (int i = 0; i < listOfFiles.length; i++) \n\t\t\tif (listOfFiles[i].isFile()) \n\t\t\t\tfiles.add(listOfFiles[i].getName());\n\t\t\n\t\treturn files;\n\t}", "title": "" }, { "docid": "3114466126210abee554626539cdbff0", "score": "0.5515895", "text": "public void ListingFolders(DbxClient client) throws Exception {\n\t\t// Listing Folders\n\t\tDbxEntry.WithChildren listing = client.getMetadataWithChildren(\"/\");\n\t System.out.println(\"Files in the root path:\");\n\t for (DbxEntry child : listing.children) {\n\t \tSystem.out.println(child.name);\n\t }\n\t}", "title": "" }, { "docid": "d744276d19baa17378b4df979d1910e1", "score": "0.55110836", "text": "public void getFileList(String path, CallBackFunc callBackFunc) throws Exception {\n Request request = new Request.Builder()\n .url(this.url + ':' + this.port + \"/folders\" + path)\n .build();\n\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(@NotNull Call call, @NotNull IOException e) {\n e.printStackTrace();\n }\n\n @Override\n public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {\n try {\n ResponseBody body = response.body();\n callBackFunc.done(new CallBackFunArg(true, JSON.parseObject(body.string()), null));\n body.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n }", "title": "" }, { "docid": "957f8db669c76f7403d322dcf8b542ab", "score": "0.54718703", "text": "private ArrayList<String> getFiles() {\r\n File dir = new File(Constants.watchLocation);\r\n ArrayList<String> files = new ArrayList<String>();\r\n \r\n //This should definitely be a folder, since it's pre setup to be.\r\n //But check anyway just in case.\r\n if (dir.isDirectory()) {\r\n //Get an array of relative file names in the folder\r\n String[] contents = dir.list();\r\n for (String file : contents) {\r\n files.add(file); //Add just the file name\r\n }\r\n } \r\n \r\n return files;\r\n }", "title": "" }, { "docid": "d75aa9e08ea08d7f9c439157af0ecec1", "score": "0.54414034", "text": "public static List<Path> getFiles(Path path) throws IOException {\n\n\t\tList<Path> files = new ArrayList<>();\n\n\t\ttry (DirectoryStream<Path> stream = Files.newDirectoryStream(path)) {\n\t\t\tfor (Path entry : stream) {\n\t\t\t\tif (Files.isDirectory(entry)) {\n\t\t\t\t\t// If you also want to show files under sub directory\n\t\t\t\t\t// listFiles(entry, files);\n\t\t\t\t} else {\n\t\t\t\t\tfiles.add(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn files;\n\t}", "title": "" }, { "docid": "2bbb4e94c722d9cc523edc64de68f420", "score": "0.5439071", "text": "public String[] ListDir(String tgt) {\n\t\tList<String> results = new ArrayList<String>();\n\n\t\ttry {\n\t\t\tbyte[] tgtBuf = tgt.getBytes();\n\n\t\t\tWriteOutput.writeInt(12 + tgtBuf.length);\n\t\t\tWriteOutput.writeInt(LIST_DIR_COMMAND);\n\t\t\tWriteOutput.writeInt(tgtBuf.length);\n\t\t\tWriteOutput.write(tgtBuf);\n\t\t\tWriteOutput.flush();\n\n\t\t\tint resultsLen = Client.ReadIntFromInputStream(\"ClientFS\", ReadInput);\n\t\t\tif (resultsLen == -1) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tfor (int i=0; i<resultsLen; i++) {\n\t\t\t\t\tint lsLen = Client.ReadIntFromInputStream(\"ClientFS\", ReadInput);\n\t\t\t\t\tString lsName = new String(Client.RecvPayload(\"ClientFS\", ReadInput, lsLen));\n\n\t\t\t\t\tresults.add(lsName);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn results.isEmpty()\n\t\t\t? null\n\t\t\t: results.toArray(new String[results.size()]);\n\t}", "title": "" }, { "docid": "5d9a529606e99f17e0a3d8852a836597", "score": "0.5437186", "text": "private List<File> searchDataFilesRecursively(String dir) throws IOException {\n LinkedList<File> fileList = new LinkedList<>();\n Files.walkFileTree(\n new File(dir).toPath(),\n new FileVisitor<Path>() {\n @Override\n public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs)\n throws IOException {\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)\n throws IOException {\n if (SnapshotFileSet.isDataFile(file.toFile())) {\n fileList.add(file.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\n return FileVisitResult.CONTINUE;\n }\n\n @Override\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\n return FileVisitResult.CONTINUE;\n }\n });\n return fileList;\n }", "title": "" }, { "docid": "332500b478e4ec2feaf593daf88d7e9e", "score": "0.543048", "text": "private static void enumerateDirectoryContents(CloudFileDirectory rootDir) throws StorageException {\r\n\r\n Iterable<ListFileItem> results = rootDir.listFilesAndDirectories();\r\n for (Iterator<ListFileItem> itr = results.iterator(); itr.hasNext(); ) {\r\n ListFileItem item = itr.next();\r\n boolean isDirectory = item.getClass() == CloudFileDirectory.class;\r\n System.out.println(String.format(\"\\t\\t%s: %s\", isDirectory ? \"Directory \" : \"File \", item.getUri().toString()));\r\n if (isDirectory == true) {\r\n enumerateDirectoryContents((CloudFileDirectory) item);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d5b61cb6ec4c355482d39fea855641d0", "score": "0.5429331", "text": "@Override\n\tpublic String[] getFileList(String directory) throws IOException {\n\t\tfinal File[] files = getAssetFile(directory).listFiles();\n\t\tfinal String[] result = new String[files.length];\n\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\tresult[i] = files[i].getName();\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "731ac71091c1b5254cdbcd78d5f1ee2a", "score": "0.5423891", "text": "public void list () {\r\n sendCommand(\"list\");\r\n try {\r\n while (true) {\r\n String file = receiveResponseLine();\r\n if (file.equals(\"eof\")) {\r\n break;\r\n }\r\n System.out.println(file);\r\n }\r\n } catch(Exception e) {\r\n\r\n }\r\n }", "title": "" }, { "docid": "153c29175221ba2ccf496d10cf3cbeb9", "score": "0.54219943", "text": "B2ListFilesIterable fileNames(B2ListFileNamesRequest request) throws B2Exception;", "title": "" }, { "docid": "82042a9b88f9dcad9fa4e60ed90d43cb", "score": "0.5417652", "text": "public List<String> getFileNames();", "title": "" }, { "docid": "052c66e25cdb59a97b578cfa9334f9ff", "score": "0.54033715", "text": "private void listFiles() {\n LOGGER.info(\"Ventana de cliente FTP: cargando treeView\");\n MyFile root = new MyFile(\"/\", \"/\", true);\n ArrayList<MyFile> files = iLogic.listFiles(root);\n TreeItem<MyFile> rootNode = new TreeItem<MyFile>(root, rootFolder);\n tView.setRoot(rootNode);\n rootNode.setExpanded(true);\n for (MyFile file : files) {\n if (file.isIsDirectory()) {\n TreeItem<MyFile> item = new TreeItem<MyFile>(file, new ImageView(folder));\n TreeItem<MyFile> node0 = new TreeItem<MyFile>();\n rootNode.getChildren().add(item);\n item.getChildren().add(node0);\n item.addEventHandler(TreeItem.branchExpandedEvent(), handleExpand);\n } else {\n TreeItem<MyFile> item = new TreeItem<MyFile>(file);\n rootNode.getChildren().add(item);\n }\n }\n tView.setEditable(false);\n tView.getSelectionModel().selectedItemProperty()\n .addListener(this::handleItemSelected);\n }", "title": "" }, { "docid": "b83808f10f3c1b7d50df28629adc6548", "score": "0.53989244", "text": "public static List<File> getDataFiles(File path) {\n\t\t File[] files = path.listFiles(new FileFilter() {\r\n\t public boolean accept(File file) {\t \r\n\t return file.isDirectory();\r\n\t }});\t\t\r\n\t \r\n\t\t List<File> flist = new ArrayList<File>();\r\n\t\t \r\n\t\t for(int i=0; i<files.length; i++){\r\n\t\t\t \r\n\t\t\t File[] nexus = files[i].listFiles(new FilenameFilter() {\r\n\t\t public boolean accept(File file, String name) {\r\n\t\t boolean ret = name.endsWith(\"nexus\")\r\n\t\t \t\t || name.endsWith(\"nex\"); \r\n\t\t return ret;\r\n\t\t }});\r\n\t\t\t \r\n\t\t\t if (nexus!=null && nexus.length>0) flist.addAll(Arrays.asList(nexus));\r\n\t\t }\t\t\t\t \r\n\t\t\t\t\r\n\t\treturn flist;\r\n\t}", "title": "" }, { "docid": "0573679ca8fd91939c1f89e43d35ca43", "score": "0.5394959", "text": "public static List<String> listFiles(@NonNull File base) {\n assertTrue(base.isDirectory());\n\n List<String> fileList = Lists.newArrayList();\n for (File file : Files.fileTreeTraverser().preOrderTraversal(base).filter(\n new Predicate<File>() {\n @Override\n public boolean apply(@Nullable File file) {\n return file != null && !file.isDirectory();\n }\n })) {\n assertThat(file.toString()).startsWith(base.toString());\n String fileName = file.toString().substring(base.toString().length());\n fileList.add(fileName);\n\n }\n return fileList;\n }", "title": "" }, { "docid": "aa390388ed47bc955972c3e532367b61", "score": "0.5392506", "text": "public List<File> collect(){\n\n List<File> files = new ArrayList<>();\n String list[];\n\n File folder = new File(dir);\n\n if(!folder.isDirectory()){\n System.out.println(\"Not a directory\");\n return files;\n }\n\n if(ext.equalsIgnoreCase(\"fxml\")) {\n list = folder.list(new FXMLExtensionFilter());\n }else{\n list = folder.list(new ExtensionFilter());\n }\n\n for(String name : list){\n files.add(new File(dir + File.separator + name));\n }\n\n return files;\n }", "title": "" }, { "docid": "e04f319361826fb5978014f9e18a752c", "score": "0.5380883", "text": "private void listPath(String path) {\n File fileObj = new File(path);\n if (fileObj.isDirectory()) {\n FileTypeFilter filter = new FileTypeFilter();\n filter.addImage();\n filter.directories = true;\n File[] directories = fileObj.listFiles(filter);\n for (File directory : directories) {\n if (directory.isDirectory()) {\n listPath(directory.getAbsolutePath());\n } else if (directory.isFile()) {\n list.add(directory.getAbsolutePath());\n }\n }\n }\n }", "title": "" }, { "docid": "283f3e6640fb8f648c743fc2a93689f4", "score": "0.5376504", "text": "public List<File> findAll() throws ServiceException;", "title": "" }, { "docid": "3392d3c4b1849162bb2a4ff3ba2b1044", "score": "0.5355271", "text": "HdfsFileStatus getFileInfo(long inodeID) throws IOException;", "title": "" }, { "docid": "23664581c3641a31abb4245307d6083f", "score": "0.53546816", "text": "List<FileEntity> getFiles();", "title": "" }, { "docid": "d1059a894d7c8d791b94f41a724518ef", "score": "0.53512204", "text": "public static List<Path> listFiles(Path path) throws IOException {\n\n List<Path> result;\n try (Stream<Path> walk = Files.walk(path)) {\n result = walk.filter(Files::isRegularFile)\n .collect(Collectors.toList());\n }\n return result;\n\n }", "title": "" }, { "docid": "bccdd800f84cf09f9c1c4b44211287e8", "score": "0.53237706", "text": "public FTPFile[] listFiles(String directory) throws Exception\n\t{\n\t\tFTPFile[] files = null;\n\n\t\tftpClient = new FTPClient();\n\t\ttry {\n//\t\t\tinitFTPConfig();\n\t\t\tftpClient.connect(ftpServerAddress, ftpServerPort);\n\t\t\tftpClient.login(userName, userPassword);\n\t\t\tftpClient.changeToParentDirectory();\n\t\t\tif (directory != null)\n\t\t\t\tftpClient.changeWorkingDirectory(directory);\n\t\t\tString[] a = ftpClient.listNames();\n\t\t\tfiles = ftpClient.listFiles();\n\n\t\t\tif (a != null) {\n\t\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\t\tSystem.out.println(a[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"could not list file, \" + e);\n\t\t}finally {\n\t\t\tif (ftpClient.isConnected())\n\t\t\t\ttry {\n\t\t\t\t\tftpClient.disconnect();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t}\n\n\t\treturn files;\n\t}", "title": "" }, { "docid": "98d605b804d319e5c747708f15fe927d", "score": "0.5319272", "text": "public void listFilesAndFolders(String directoryName) {\n\n File directory = new File(directoryName);\n\n //get all the files from a directory\n File[] fList = directory.listFiles();\n\n for (File file : fList) {\n System.out.println(file.getName());\n }\n }", "title": "" }, { "docid": "f99f4a315fd01f612d1bf5d9ecc8de46", "score": "0.53103524", "text": "public static void listFilesForFolder(final File folder) \n {\n for (final File fileEntry : folder.listFiles()) {\n if (fileEntry.isDirectory()) {\n listFilesForFolder(fileEntry);\n } else {\n System.out.println(fileEntry.getName());\n }\n }\n }", "title": "" }, { "docid": "2563f910eb5355d273348c4570a61b67", "score": "0.5288553", "text": "public File[] readFileNames(String path) {\n File folder = new File(path);\n return folder.listFiles();\n }", "title": "" }, { "docid": "0f13474927a98c3a29db0e3c3f7c963e", "score": "0.52884746", "text": "private ArrayList<String> getFilePaths(String directory) {\n\t\tAWSCredentials credentials = new BasicAWSCredentials(awsAccessKey,\n\t\t\t\tawsSecretAccessKey);\n\t\tAmazonS3 s3Client = new AmazonS3Client(credentials);\n\t\tListObjectsRequest listObjectsRequest = new ListObjectsRequest();\n\t\tlistObjectsRequest.withBucketName(BUCKET_NAME);\n\t\tlistObjectsRequest.withPrefix(directory.substring(21) + PREFIX);\n\t\tObjectListing objects;\n\t\tArrayList<String> filePaths = new ArrayList<String>();\n\t\tdo {\n\t\t\tobjects = s3Client.listObjects(listObjectsRequest);\n\t\t\tfor (S3ObjectSummary objectSummary : objects.getObjectSummaries()) {\n\t\t\t\tfilePaths.add(objectSummary.getKey());\n\t\t\t}\n\t\t\tlistObjectsRequest.setMarker(objects.getNextMarker());\n\t\t} while (objects.isTruncated());\n\t\treturn filePaths;\n\t}", "title": "" }, { "docid": "0d10c1413b36912799bcb2b24af725fe", "score": "0.5286853", "text": "public List<String> listFiles(String directoryName) {\n\t\tList<String> fileList = new ArrayList<String>();\n\t\tFile folder = new File(directoryName);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\ttry {\n//\t\t\tTarArchiveInputStream fin = new TarArchiveInputStream(new FileInputStream(directoryName));\n//\t\t\tTarArchiveEntry entry;\n for(File file : listOfFiles) {\n \tif(file!= null && file.getName().endsWith(\".tar\")) {\n \t\tfileList.add(file.getName());\n \t\t\n \t}\n }\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fileList;\n\t}", "title": "" }, { "docid": "8afdc4c7fa6c99c926cf8c8aeffdf8ee", "score": "0.52866936", "text": "public ArrayList<File> selectAllFiles();", "title": "" }, { "docid": "42f5d065e0ee73ef60685bd42d296786", "score": "0.5280664", "text": "FtpVFS.FtpDirectoryEntry[] listDirectory(String path) throws IOException\n\t{\n\t\tclient.changeWorkingDirectory(path);\n\n\t\t//Check for successful response\n\t\tFtpResponse response = client.getResponse();\n\t\tif(response != null\n\t\t\t&& response.getReturnCode() != null\n\t\t\t&& response.getReturnCode().charAt(0) != '2')\n\t\t{\n\t\t\tthrow new FtpException(response);\n\t\t}\n\n\t\t// some servers might not support -a, so if we get an error\n\t\t// try without -a\n\t\tArrayList directoryVector = _listDirectory(true);\n\t\tif(directoryVector == null || directoryVector.size() == 0)\n\t\t\tdirectoryVector = _listDirectory(false);\n\n\t\tif(directoryVector == null)\n\t\t{\n\t\t\t// error occurred\n\t\t\treturn null;\n\t\t}\n\n\t\treturn (FtpVFS.FtpDirectoryEntry[])directoryVector.toArray(\n\t\t\tnew FtpVFS.FtpDirectoryEntry[directoryVector.size()]);\n\t}", "title": "" }, { "docid": "7112626ec5614865aab17a92ca023848", "score": "0.52767056", "text": "String listFiles(String dir, boolean fullListing )\n\t{\n\t\tStringBuffer sb = new StringBuffer(1024);\n\t\tString s = null;\n\t\tString cmd = (fullListing ? LIST_CMD : NLIST_CMD);\n\t\ttry {\n\t\t\tm_dos.write(cmd + \" \" + dir + '\\n');\n\t\t\thandleReply();\n\t\t\tSocket sock = m_dataSock.accept();\n\t\t\tBufferedReader br =\n\t\t\t\tnew BufferedReader(new InputStreamReader(sock.getInputStream()));\n\t\t\twhile(null != (s = br.readLine())) {\n\t\t\t\tsb.append(s);\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\t\t} catch (IOException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\treturn(sb.toString());\n\t}", "title": "" }, { "docid": "29f7dd51e9034c16eef72de2be858df1", "score": "0.5255875", "text": "@NonNull\n public static File[] verifiedListFiles(@NonNull File directory) throws IOException {\n if (!directory.exists()) {\n throw new IllegalArgumentException(directory + \" does not exist\");\n }\n\n if (!directory.isDirectory()) {\n throw new IllegalArgumentException(directory + \" is not a directory\");\n }\n\n File[] files = directory.listFiles();\n if (files == null) { // null if security restricted\n throw new IOException(\"Failed to list contents of \" + directory);\n }\n return files;\n }", "title": "" }, { "docid": "58cd229e6c8c9bdae476f472a2cedf08", "score": "0.5250712", "text": "public static List<String> getFiles(String path, List<String> list) {\n var root = new File(path);\n var files = root.listFiles();\n\n if (files == null) {\n return null;\n }\n for (var f : files) {\n if (f.isDirectory()) {\n getFiles(f.getAbsolutePath(), list);\n list.add(\"Dir: \" + f.getAbsoluteFile());\n } else {\n list.add(\"\\tFile: \" + f.getAbsoluteFile());\n }\n }\n return list;\n }", "title": "" }, { "docid": "0c9dff1c87273478143dc6d599d904da", "score": "0.52455056", "text": "public ArrayList<String> getAllFilePaths() throws Exception {\n filePaths = new ArrayList<>();\n File directory = new File(StorageDir);\n try{\n addAllFilePaths(directory);\n } catch (Exception ex){\n\n Log.d(\"Files\", ex.getMessage());\n throw new Exception(\"Error: getAllPaths(File root) \" + ex.getMessage());\n }\n\n return filePaths;\n }", "title": "" }, { "docid": "16fcde98bf6c99f516ad03f4240cc401", "score": "0.5234231", "text": "public abstract File getFilesDir();", "title": "" }, { "docid": "faa81f2d75860647737fc285f08001a9", "score": "0.52320325", "text": "public void listFiles(File dir){\n File[] list= dir.listFiles();\n\n for(File f: list){\n String [] fCheck= f.getName().split(\"\\\\.\");\n if(fCheck.length>1) {\n if (fCheck[1].equals(\"txt\")) {\n files.add(f.getName());\n }\n }\n }\n }", "title": "" }, { "docid": "2922082f10d4585996c6dc1798753a79", "score": "0.5225847", "text": "public RequestDetail getFiles(){\n\n File[] files = new File(MainActivity.directory).listFiles();\n\n int i = 0;\n for (File file : files) {\n //looping over each file and adding it to the list of files to return\n if (file.isFile()) {\n requestDetail.getFiles().add(new ListFile(file.getName(),\"\"));\n i++;\n }\n }\n\n // returning the list of files\n return requestDetail;\n }", "title": "" }, { "docid": "267739434030228ffebf47ade54675b7", "score": "0.5215081", "text": "public static File[] listFilesIn(File dir) {\n\t\tif (dir == null) {\n\t\t\treturn new File[0];\n\t\t}\n\n\t\tif (!dir.isDirectory()) {\n\t\t\treturn new File[0];\n\t\t}\n\n\t\treturn dir.listFiles();\n\t}", "title": "" }, { "docid": "c097f57a0343faa953937b41e203d98f", "score": "0.5209635", "text": "public synchronized static String[] getFilesInDirectory(String xmlDirectory) {\n File dir = new File(xmlDirectory);\n\n return dir.list();\n }", "title": "" }, { "docid": "7ce5277343840120d95daad84589331d", "score": "0.5199758", "text": "private static void readFiles() {\r\n\t\tFileFilter filter = new FileFilter() {\r\n\t\t\tpublic boolean accept(File file) {\r\n\t\t\t\treturn file.getName().endsWith(Constants.FILE_EXTENSION);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tFile dir = new File(Constants.MAIN_PATH + Constants.PATH_IN);\r\n\t\tfiles = dir.listFiles(filter);\r\n\t}", "title": "" }, { "docid": "e50d70c861b238b43c590ec40d7e5da4", "score": "0.51928866", "text": "@Override\n\tpublic void list(String path, List<String> contents) throws IOException {\n\t\tFile file = new File(targetFile, path);\n\t\t// Add all the children to the list (required by IMount)\n\t\tfor(String child : file.list()) contents.add(child);\n\t}", "title": "" }, { "docid": "4b33efe67a200cd5803f0be03d0a7b0e", "score": "0.51806456", "text": "public FileStatus[] listStatus(Path f) throws IOException {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "9a96997b469b9e500f77df3795d05d33", "score": "0.5166181", "text": "private static List<File> listFilesForFolder(final File folder) {\n\t List<File> files=new ArrayList<>();\n\t \n\t\tfor (File fileEntry : folder.listFiles()) { \t//fpos Root folders \t\n\t\t\t//fileEntry.add(fileEntry); \n\t\t\t\n\t\t\tif(fileEntry.isDirectory()){\n\t\t\tfor(File secFolder:fileEntry.listFiles()){\n\t\t\tif (secFolder.isDirectory()){\n\t\t\t\tif(secFolder.getName().equals(\"Receipt\")) {\n\t\t\t for(final File file: secFolder.listFiles()){\n\t\t\t \t files.add(file);\n\t\t\t }\n\t\t\t }\n\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t} \n\t return files;\n\t}", "title": "" }, { "docid": "eb649cc793e7c6f5907361fa06222938", "score": "0.51614934", "text": "public static List<Path> listPaths(Path path, String glob) throws IOException {\n List<Path> paths = new ArrayList<>();\n try (DirectoryStream<Path> ds = Files.newDirectoryStream(path, glob)) {\n for (Path p : ds) {\n paths.add(p);\n }\n }\n paths.sort(Comparator.comparing(Path::getFileName));\n return paths;\n }", "title": "" }, { "docid": "f936af7e2a656bec7567eaace765af17", "score": "0.51595414", "text": "public void checkDir(FileSystem fs, long minDate, long maxDate,\n Path p, ArrayList<Path> pathList,\n HashMap<Path,Long> hmTimestamps)\n {\n long tmpDate;\n FileStatus[] fStat;\n\n try\n {\n String sPath = p.toUri().getPath();\n\n // If this is a directory\n if (fs.getFileStatus(p).isDir())\n {\n // ignore certain directories\n if (\"dfstmp\".equals(p.getName())\n || \"tmp\".equals(p.getName())\n || \"jobtracker\".equals(p.getName())\n || sPath.startsWith(\"/mapred\")\n || \"ops\".equals(p.getName())\n || p.getName().startsWith(\"_distcp_logs\")\n )\n {\n return;\n }\n\n // dump the mkdir and chmod commands for this\n // directory -- skip root directory only\n {\n FileStatus stat = fs.getFileStatus(p);\n\n if (! sPath.equals(\"/\"))\n {\n m_wrMkdirs.println(\"hadoop fs -mkdir \" + sPath);\n }\n\n m_wrChmods.println(\"hadoop fs -chown \"\n + stat.getOwner() + \":\"\n + stat.getGroup() + \" \"\n + sPath);\n\n Short sh = new Short(stat.getPermission().toShort());\n m_wrChmods.println(\"hadoop fs -chmod \"\n + Long.toOctalString(sh.longValue())\n + \" \" + sPath);\n }\n\n\n fStat = fs.listStatus(p);\n\n // Do a recursive call to all elements\n for (int i = 0; i < fStat.length; i++)\n {\n checkDir(fs, minDate, maxDate, fStat[i].getPath(),\n pathList, hmTimestamps);\n }\n }\n else\n {\n // If not a directory then we've found a file\n\n // ignore crc files\n if (p.getName().endsWith(\".crc\"))\n {\n return;\n }\n\n // ignore other files\n if (sPath.startsWith(\"/user/oozie/etl/workflows/\"))\n {\n return;\n }\n\n // try to get the table name from the path. There are\n // various types of tables, from those replicated from\n // another database to regular hive tables to\n // partitioned hive tables. We use table names to\n // both exclude some from the backup, and for the rest\n // to dump out the schema and partition name.\n if (m_ignoreTables != null && m_ignoreTables.doIgnoreFile(sPath))\n {\n m_nIgnoredTables ++;\n\n if (m_nIgnoredTables < 5)\n {\n System.out.println(\"Skipping ignore-table file: \" + sPath);\n }\n else if (m_nIgnoredTables == 5)\n {\n System.out.println(\"(...not showing other skipped tables...)\");\n }\n return;\n }\n\n FileStatus stat = fs.getFileStatus(p);\n\n tmpDate = stat.getModificationTime() / 1000;\n\n // store the chmods/chowns for all files\n m_wrChmods.println(\"hadoop fs -chown \"\n + stat.getOwner() + \":\"\n + stat.getGroup() + \" \"\n + sPath);\n\n m_wrChmods.println(\"hadoop fs -chmod \"\n + stat.getPermission().toShort()\n + \" \" + sPath);\n\n // check dates. is it too young?\n if (tmpDate < minDate)\n {\n return;\n }\n\n // is the file too recent?\n if (tmpDate > maxDate)\n {\n //System.out.println(\"file too recent: \" + sPath);\n return;\n }\n\n // file timestamp is ok\n pathList.add(p);\n\n hmTimestamps.put(p, new Long(tmpDate));\n\n // store info about total bytes neeed to backup\n m_nTotalBytes += fs.getContentSummary(p).getLength();\n }\n }\n catch (IOException e)\n {\n System.err.println(\"ERROR: could not open \" + p + \": \" + e);\n\n // System.exit(1) ;\n }\n }", "title": "" }, { "docid": "ff732bd789c1d047ec2e22e1ca02d4d0", "score": "0.5156043", "text": "@Get(\"html\")\n public String fileList();", "title": "" }, { "docid": "ef91431ea519d70473fa92c2c7e704b9", "score": "0.51474506", "text": "public List getFileList() throws SQLException {\n\t\treturn vwDao.getFileList();\n\t}", "title": "" }, { "docid": "d90e03dbacc2bfb51a269534870f8909", "score": "0.51428884", "text": "public void listFilesForFolder(final File folder) {\n\n //per ogni file entry nella folder\n for (final File fileEntry : folder.listFiles()) {\n //se il file e una directory, impossibile allora rientra nella directory\n if (fileEntry.isDirectory()) {\n listFilesForFolder(fileEntry);\n } \n //il file non e una directory\n else {\n //stampa il nome\n System.out.println(fileEntry.getName());\n\n //estrae l'estenzione\n String ext = FilenameUtils.getExtension(fileEntry);\n\n //controllo che l'estenzione sia corretta\n if(ext == \"txt\"){\n //copio il file in un altra directory\n FileUtils.copyFileToDirectory(fileEntry, folderWhereToCopy)\n\n //chiamo il metodo per la gestione dei nomi dentro un file .txt\n insertNewCrawlUsers(fileEntry);\n\n fileEntry.delete();\n\n }\n //se non e corretta non faccio nulla.\n else{\n\n }\n }\n }\n }", "title": "" }, { "docid": "a54ab9e5cf22e1ae9aee60be3cf37239", "score": "0.51419926", "text": "@Override\n\tpublic List<FileMaster> allFiles() {\n\t\tList<FileMaster> result;\n\t\tSessionFactory factory = HibernateSessionFactory.getInstance();\n\t\tSession session = factory.openSession();\n\t\tsession.beginTransaction();\n\t\tQuery query = session.createQuery(\"from FileMaster\");\n\t\tresult = (List<FileMaster>) query.list();\n\t\tsession.getTransaction().commit();\n\t\treturn result;\n\t}", "title": "" }, { "docid": "1247daecff2827fd4513efa676a624d7", "score": "0.51359105", "text": "private void explore(Path dir) {\n\n if (Files.notExists(dir)) {\n throw new IllegalStateException(\"Illegal Directory Path: \" + dir.toString());\n }\n\n try (Stream<Path> stream = Files.list(dir)) {\n stream.forEach(path -> {\n if (Files.isDirectory(path)) {\n explore(path);\n } else {\n String fileName = path.getFileName().toString();\n if (fileName.endsWith(\".java\")) {\n javaFiles.add(path);\n }\n }\n });\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "dab1c116e57ffffdb7340b545e301e51", "score": "0.51313543", "text": "public GetListFiles() {\n requestDetail = new RequestDetail(\"Condore Client\", new ArrayList<ListFile>(), Formatter.formatIpAddress(MainActivity.wm.getConnectionInfo().getIpAddress()),\"\",0,\"\");\n }", "title": "" }, { "docid": "040e4d118e3d1d68dd3135f2333c9bce", "score": "0.5130153", "text": "public StorageFile[] listFiles(String filepath) throws IOException {\n\t\t\n\t\tIFile path = mStorage.newFsFileByName(filepath); \n\t\tIFile[] files = mStorage.listFiles(path); \n\t\n\t\tArrayList<StorageFile> storageFiles = new ArrayList<StorageFile>(); \n\t\t\n\t\tfor (int i=0; files != null && i < files.length; i++) {\n\t\t\tIFile file = files[i]; \n\t\t\tif (file == null || file.isDirectory()) \n\t\t\t\tcontinue; \n\t\t\t\n\t\t\tString filename = file.getPath(); \n\t\t\tString extension = null; \n\t\t\t\n\t\t\tint pos = filename.lastIndexOf('.'); \n\t\t\tif (pos > 0) extension = filename.substring(pos+1); \n\t\t\t\n\t\t\tMimeType type = MimeTypes.getExtensionMimeType(extension); \n\t\t\tStorageFile storageFile = null; \n\t\t\t\n\t\t\tif (type == MimeType.TYPE_IMAGE) {\n\t\t\t\tstorageFile = loadImageFile(filename); \n\t\t\t} else if (type == MimeType.TYPE_IMAGE) {\n\t\t\t\tstorageFile = loadAudioFile(filename); \n\t\t\t}\n\n\t\t\tif (storageFile == null) { \n\t\t\t\tif (LOG.isWarnEnabled())\n\t\t\t\t\tLOG.warn(\"MediaCache: file type not supported: \"+filename); \n\t\t\t\t\n\t\t\t\tcontinue; \n\t\t\t}\n\t\t\t\n\t\t\tstorageFiles.add(storageFile); \n\t\t}\n\t\t\n\t\treturn storageFiles.toArray(new StorageFile[storageFiles.size()]); \n\t}", "title": "" }, { "docid": "edf26afdf881684f7db939db7f405d39", "score": "0.5129153", "text": "public static File[] readPath(String path){\n\n File f = new File(path + \"/ltf\");\n\n File[] flist = f.listFiles((dir, name) -> !name.startsWith(\"SN\"));\n\n if(f.exists()) {\n logger.debug(\"Length: \" + flist.length);\n }else{\n System.out.printf(\"whoops, file \" + f + \" does not exist.\");\n }\n\n return flist;\n\n }", "title": "" }, { "docid": "c5b6089454bf67e5b6f754cb45df907b", "score": "0.5128706", "text": "public static List<File> getFilesFromDisk(Path path) {\n\n try (Stream<Path> fileTree = walk(path)) {\n // Get the list of files from the path\n return fileTree.filter(Files::isRegularFile).map(Path::toFile).collect(Collectors.toList());\n } catch (IOException e) {\n LOGGER.error(\"Failed to find the file due to\", e);\n }\n return new ArrayList<>();\n }", "title": "" }, { "docid": "18a06dedb05d46058ab2fff8be2df0e0", "score": "0.51247364", "text": "private List<File> getFileList(File source){ \n\t\tif(source.isFile()){\n\t\t\tfileList.add(source);\n\t\t}else if(source.isDirectory()){\n\t\t\tString[] subList = source.list();\n\t\t\t// This condition checks for empty directory\n\t\t\tif(subList.length == 0){\n\t\t\t\t//System.out.println(\"path -- \" + source.getAbsolutePath());\n\t\t\t\tfileList.add(new File(source.getAbsolutePath()));\n\t\t\t}\n\t\t\tfor(String child : subList){\n\t\t\t\tgetFileList(new File(source, child));\n\t\t\t}\n\t\t}\n\t\treturn fileList;\n\t}", "title": "" }, { "docid": "7360382fe44fbabd485f8a851ff86862", "score": "0.51241773", "text": "private String list(File file){\n\t\tif(file.isDirectory()){\n\t\t\tStringBuffer buffer = new StringBuffer();\n\t\t\tfor(File f: file.listFiles()){\n\t\t\t\tif(!f.isHidden() && !f.getName().startsWith(\".\"))\n\t\t\t\t\tbuffer.append(f.getName()+((f.isDirectory())?\"/\":\"\")+\"\\n\");\n\t\t\t}\n\t\t\treturn buffer.toString();\n\t\t}\n\t\treturn \"error\";\n\t}", "title": "" }, { "docid": "f1eb0fc40e5123db4e607222d9877f31", "score": "0.51238763", "text": "public static List<Path> getFilesInDirectory(Path path) throws IOException {\n List<Path> files = new ArrayList<>();\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(path)) {\n for (Path entry : stream) {\n if (Files.isDirectory(entry)) {\n getFilesInDirectory(entry);\n }\n files.add(entry);\n }\n }\n\n return files;\n }", "title": "" }, { "docid": "f99be79f39bbee8b55f250f58defa013", "score": "0.51224977", "text": "@Override\n\tpublic Map<String, Object> listFile(String dir, String accept, String exts) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "09137b9e556691e7937d167167cac0bf", "score": "0.5121586", "text": "public Map<String, List<String>> listFilesByExtension(String directory) throws IOException, Exception;", "title": "" } ]
c3fa611a61f198d5a455a063e51953b6
Retrieves items for the given buckets.
[ { "docid": "e47f62b59c9b9aee6f7f26319bcf1883", "score": "0.76530075", "text": "List<BucketItemEntity> getBucketItems(Set<String> bucketIds);", "title": "" } ]
[ { "docid": "08b82c00061f05b9243ad887046ca56f", "score": "0.78871846", "text": "List<BucketItemEntity> getBucketItems(String bucketId);", "title": "" }, { "docid": "22efeef4c9918b4028af3389534b54ef", "score": "0.71140635", "text": "List<BucketEntity> getBuckets(Set<String> bucketIds);", "title": "" }, { "docid": "a78bcb6d88747debbccb5f0ee11d83bf", "score": "0.64249307", "text": "@Test public void listBuckets() throws Exception {\n final RiakClient c = new RiakClient(RIAK_URL);\n\n final String bucket1 = UUID.randomUUID().toString();\n final String bucket2 = UUID.randomUUID().toString();\n final String key = UUID.randomUUID().toString();\n\n RiakObject o1 = new RiakObject(bucket1, key);\n StoreResponse storeresp = c.store(o1, WRITE_3_REPLICAS());\n assertSuccess(storeresp);\n\n RiakObject o2 = new RiakObject(bucket2, key);\n storeresp = c.store(o2, WRITE_3_REPLICAS());\n assertSuccess(storeresp);\n\n ListBucketsResponse resp = c.listBuckets();\n\n Set<String> buckets = resp.getBuckets();\n\n assertTrue(buckets.contains(bucket1));\n assertTrue(buckets.contains(bucket2));\n\n AllTests.emptyBucket(bucket1, new HTTPClientAdapter(c));\n AllTests.emptyBucket(bucket2, new HTTPClientAdapter(c));\n }", "title": "" }, { "docid": "13d1ee2624fb4576942ab29eb90572db", "score": "0.62785554", "text": "List<BundleEntity> getBundlesByBucket(String bucketId);", "title": "" }, { "docid": "0f65e403d5542d3aefb5498927c590d7", "score": "0.6207542", "text": "List<BucketEntity> getBucketsByName(String name);", "title": "" }, { "docid": "d8b21cca7a22a224339d369ce9d152f6", "score": "0.61509603", "text": "List<FlowEntity> getFlowsByBucket(String bucketIdentifier);", "title": "" }, { "docid": "f6fe3158ac9c1b2f7350dbbee7770596", "score": "0.611658", "text": "public void getListFromS3Bucket() {\n runOnUiThread(() -> {\n if (Utility.isNetworkAvailable()) {\n progressBar.setVisibility(View.VISIBLE);\n getInstance().getListOfObjects(bucketName);\n } else {\n Utility.messageAlertForCertainDuration(ViewGroupActivity.this, Constants.ERROR_INTERNET_OFFLINE);\n }\n\n });\n }", "title": "" }, { "docid": "62e16101feb16464a52581508b428b81", "score": "0.59972906", "text": "List<BundleEntity> getBundles(Set<String> bucketIds, BundleFilterParams filterParams);", "title": "" }, { "docid": "6e02cf9d6e0a31c38744e2c467c700ae", "score": "0.59070665", "text": "Set<String> listBuckets() throws RiakException;", "title": "" }, { "docid": "167d0c37b2fc02b3f98c8b59e58df75f", "score": "0.58349454", "text": "public Set<String> listBuckets() throws RiakException {\n try {\n return rawClient.listBuckets();\n } catch (IOException e) {\n throw new RiakException(e);\n }\n }", "title": "" }, { "docid": "633ba259eba137e09297cbcd536acaa3", "score": "0.57708204", "text": "List<BundleEntity> getBundlesByBucketAndGroup(String bucketId, String groupId);", "title": "" }, { "docid": "a72a11115e4910e17c3bc681bb276b85", "score": "0.56662315", "text": "BucketEntity getBucketById(String bucketIdentifier);", "title": "" }, { "docid": "45c538a605c99bb50e983d1e4190f1c9", "score": "0.5649775", "text": "List<Map<String, String>> getItems(String baseObject, String... params) throws Exception;", "title": "" }, { "docid": "4102ad661e3af905459878781246e82b", "score": "0.5614695", "text": "RBuckets getBuckets();", "title": "" }, { "docid": "edaf10655a3226fdd2f87b9d25c0ee98", "score": "0.5589911", "text": "public static List<ScssObject> getBucket(String access_key, String name)\n\t{\n\t\tScssUser scssUser = DBServiceHelper.getUserByAccessKey(access_key);\n\t\t\n\t\tList<ScssObject> bucket_objects=null;\n\t\t\n\t\tif(null!=scssUser)\n\t\t{\n\t\t bucket_objects = DBServiceHelper.getBucket(scssUser.getId(), name);\n\t\t}\n\t\t\n\t\treturn bucket_objects;\n\t\t\n\t}", "title": "" }, { "docid": "26505097f182bd852eef15426f8fdb8e", "score": "0.5585913", "text": "public List<String> listBuckets() throws Exception {\n\n Storage storage = getStorage();\n\n List<String> list = new ArrayList<>();\n\n List<Bucket> buckets = storage.buckets().list(getProperties().getProperty(PROJECT_ID_PROPERTY)).execute().getItems();\n if(buckets != null) {\n for(Bucket b : buckets) {\n list.add(b.getName());\n }\n }\n\n return list;\n }", "title": "" }, { "docid": "b83d7334349a983dfbb9a8cc67b22c1b", "score": "0.55757135", "text": "RBuckets getBuckets(Codec codec);", "title": "" }, { "docid": "046f560887525971c713002948ac7e53", "score": "0.55127543", "text": "<V> RBucket<V> getBucket(String name);", "title": "" }, { "docid": "0cde750e7f84355569687e957713f304", "score": "0.5485796", "text": "public List<Bucket> getBuckets() {\n List<Bucket> result = new ArrayList<>();\n forEachBucket(result::add);\n return result;\n }", "title": "" }, { "docid": "e1571cf3fe0faf59801c77b7c61999a7", "score": "0.5479957", "text": "public String getListOfObjectFromBucketUrl(String bucketName) {\n return URL +\"/v1/s3/\"+bucketName;\n }", "title": "" }, { "docid": "3942a2d70049d2b481204d40148f1a66", "score": "0.54743993", "text": "public void forEachBucket(Consumer<Bucket> bucketConsumer) {\n JsonNode buckets = data.get(KEY_BUCKETS);\n\n if (buckets instanceof ArrayNode array) {\n for (JsonNode bucket : array) {\n bucketConsumer.accept(new Bucket(null, (ObjectNode) bucket));\n }\n } else if (buckets instanceof ObjectNode object) {\n for (Map.Entry<String, JsonNode> entry : object.properties()) {\n bucketConsumer.accept(new Bucket(entry.getKey(), (ObjectNode) entry.getValue()));\n }\n }\n }", "title": "" }, { "docid": "4a3fb02a694518cab2021bd759038342", "score": "0.5447572", "text": "public List<String> listBucket(String bucketName) throws Exception {\n\n Storage storage = getStorage();\n\n List<String> list = new ArrayList<>();\n\n List<StorageObject> objects = storage.objects().list(bucketName).execute().getItems();\n if(objects != null) {\n for(StorageObject o : objects) {\n list.add(o.getName());\n }\n }\n\n return list;\n }", "title": "" }, { "docid": "edfac17eab9de6b73c3dd0e9644f3549", "score": "0.53548217", "text": "public static Iterable<Result<Item>> listObjects(MinioClient client, String bucketName)\n throws XmlParserException {\n // Lists objects information.\n Iterable<Result<Item>> results = client.listObjects(\n ListObjectsArgs.builder().bucket(bucketName).recursive(true).build());\n return results;\n }", "title": "" }, { "docid": "d0bb308a39dd18d92f0c3af2b5878bd7", "score": "0.53094727", "text": "public void listS3() {\n \t\n \tif (s3 == null)\n \t{\n \t\treturn;\n \t}\n\n try {\n List<Bucket> buckets = s3.listBuckets();\n\n long totalSize = 0;\n int totalItems = 0;\n for (Bucket bucket : buckets) {\n /*\n * In order to save bandwidth, an S3 object listing does not\n * contain every object in the bucket; after a certain point the\n * S3ObjectListing is truncated, and further pages must be\n * obtained with the AmazonS3Client.listNextBatchOfObjects()\n * method.\n */\n ObjectListing objects = s3.listObjects(bucket.getName());\n do {\n for (S3ObjectSummary objectSummary : objects.getObjectSummaries()) {\n totalSize += objectSummary.getSize();\n totalItems++;\n }\n objects = s3.listNextBatchOfObjects(objects);\n } while (objects.isTruncated());\n }\n\n System.out.println(\"You have \" + buckets.size() + \" Amazon S3 bucket(s), \" +\n \"containing \" + totalItems + \" objects with a total size of \" + totalSize + \" bytes.\");\n } catch (AmazonServiceException ase) {\n /*\n * AmazonServiceExceptions represent an error response from an AWS\n * services, i.e. your request made it to AWS, but the AWS service\n * either found it invalid or encountered an error trying to execute\n * it.\n */\n System.out.println(\"Error Message: \" + ase.getMessage());\n System.out.println(\"HTTP Status Code: \" + ase.getStatusCode());\n System.out.println(\"AWS Error Code: \" + ase.getErrorCode());\n System.out.println(\"Error Type: \" + ase.getErrorType());\n System.out.println(\"Request ID: \" + ase.getRequestId());\n } catch (AmazonClientException ace) {\n /*\n * AmazonClientExceptions represent an error that occurred inside\n * the client on the local host, either while trying to send the\n * request to AWS or interpret the response. For example, if no\n * network connection is available, the client won't be able to\n * connect to AWS to execute a request and will throw an\n * AmazonClientException.\n */\n System.out.println(\"Error Message: \" + ace.getMessage());\n }\n }", "title": "" }, { "docid": "01823a1fd12425a5c4d2c3ebc93596aa", "score": "0.5231278", "text": "public static List<Bucket> requestAlbums() {\n if (BucketCache == null || BucketCache.size() == 0) {\n cacheData(); // update\n }\n return BucketCache;\n }", "title": "" }, { "docid": "e85828a851f5ce4c8b1566f113c6d8a8", "score": "0.5224122", "text": "<V> RBucket<V> getBucket(String name, Codec codec);", "title": "" }, { "docid": "711387596591163f385d691be494cb61", "score": "0.516561", "text": "public GetObjectRunner(S3ClientHelper s3Helper, String bucketName, Integer numLoop, List<String> keys) {\n super(s3Helper, bucketName, numLoop, keys);\n }", "title": "" }, { "docid": "80d14a619cbc18953b3d5379fad8c02d", "score": "0.5160617", "text": "public Future<JsonObject> get(String bucket, String key) {\n\n\n Promise<io.vertx.core.json.JsonObject> promise = Promise.promise();\n reactiveCluster\n .bucket(bucket)\n .defaultCollection()\n .get(key)\n .subscribe(getResult ->\n promise.complete(new JsonObject(getResult.contentAsObject().toMap())), promise::fail);\n return promise.future();\n }", "title": "" }, { "docid": "2fa15e9451c02b3f795dc9347222a99e", "score": "0.5141943", "text": "@POST(\"/api/all-buckets\")\n Call<AllBucketListsResponse> allBuckets(\n @Body AllBucketListsRequest bucketLists\n );", "title": "" }, { "docid": "fb88915b90bee02d4a49213ecc5aa8e4", "score": "0.51286185", "text": "@Override\n\tpublic List<Tuple> batchRead(final Set<Get> gets) {\n\t\tfinal AmazonDynamoDB amazonDynamoDB = amazonDynamoDBsIndexedByRegion.get(gets.iterator().next().getTable().getRegion());\n\n\t\tfinal Map<String, List<Map<String, AttributeValue>>> keysIndexedByTableNames = new HashMap<>();\n\n\t\tfor (final Get get : gets) {\n\t\t\tfinal Table table = get.getTable();\n\n\t\t\tfinal Map<String, AttributeValue> key = new HashMap<>();\n\n\t\t\tfinal Attribute hashKeyAttribute = get.getPrimaryKeyHashAttribute();\n\t\t\tkey.put(hashKeyAttribute.getSchema().getName().get(), hashKeyAttribute.getValue().get().toDynamoDBAttributeValue());\n\n\t\t\tif (table.getDefinition().getRangeKeySchema().isPresent()) {\n\t\t\t\tfinal Attribute rangeKeyAttribute = get.getPrimaryKeyRangeAttribute().get();\n\t\t\t\tkey.put(rangeKeyAttribute.getSchema().getName().get(), rangeKeyAttribute.getValue().get().toDynamoDBAttributeValue());\n\t\t\t}\n\n\t\t\tif (keysIndexedByTableNames.containsKey(table.getDefinition().getName())) {\n\t\t\t\tkeysIndexedByTableNames.get(table.getDefinition().getName()).add(key);\n\t\t\t} else {\n\t\t\t\tList<Map<String, AttributeValue>> keys = new ArrayList<>();\n\t\t\t\tkeys.add(key);\n\t\t\t\tkeysIndexedByTableNames.put(table.getDefinition().getName(), keys);\n\t\t\t}\n\t\t}\n\n\t\tMap<String, KeysAndAttributes> requestItems = new HashMap<>();\n\t\tfor (final Entry<String, List<Map<String, AttributeValue>>> tableNameAndKeys : keysIndexedByTableNames.entrySet()) {\n\t\t\trequestItems.put(\n\t\t\t\t\ttableNameAndKeys.getKey(),\n\t\t\t\t\tnew KeysAndAttributes().withKeys(tableNameAndKeys.getValue()));\n\t\t}\n\n\t\tBatchGetItemResult batchGetItemResult = null;\n\t\tfinal BatchGetItemRequest batchGetItemRequest = new BatchGetItemRequest();\n\n\t\tdo {\n\t\t\tbatchGetItemRequest.withRequestItems(requestItems);\n batchGetItemResult = amazonDynamoDB.batchGetItem(batchGetItemRequest);\n requestItems = batchGetItemResult.getUnprocessedKeys();\n\t\t} while (batchGetItemResult.getUnprocessedKeys().size() > 0);\n\n\t\tif(batchGetItemResult.getUnprocessedKeys().size() > 0){\n\t\t\tthrow new RuntimeException(\"unprocessed keys: \" + batchGetItemResult.getUnprocessedKeys().size());\n\t\t}\n\n\t\tfinal Map<String, List<Map<String, AttributeValue>>> batchGetItemResultResponses = batchGetItemResult.getResponses();\n\n\t\tfinal List<Tuple> items = new ArrayList<>();\n\n\t\tfor (final Get get : gets) {\n\t\t\tfinal Table table = get.getTable();\n\t\t\tfinal List<Map<String, AttributeValue>> dynamoDBItems = batchGetItemResultResponses.get(get.getTable().getDefinition().getName());\n\t\t\tfor (Map<String, AttributeValue> dynamoDBItem : dynamoDBItems) {\n\t\t\t\tfinal Set<Attribute> attributes = new HashSet<>();\n\t\t\t\tfor (final AttributeSchema attributeSchema : table.getDefinition().getAttributesSchemas()) {\n\t\t\t\t\tif (dynamoDBItem.containsKey(attributeSchema.getName().get())) {\n\t\t\t\t\t\tfinal Attribute attribute = new Attribute(\n\t\t\t\t\t\t\t\tattributeSchema,\n\t\t\t\t\t\t\t\tcom.polymathiccoder.avempace.persistence.domain.attribute.AttributeValue.fromDynamoDBAttributeValue(\n\t\t\t\t\t\t\t\t\t\tattributeSchema,\n\t\t\t\t\t\t\t\t\t\tdynamoDBItem.get(attributeSchema.getName().get())));\n\n\t\t\t\t\t\tattributes.add(attribute);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\titems.add(new Tuple(table, attributes));\n\t\t\t}\n\t\t}\n\n\t\treturn items;\n\t}", "title": "" }, { "docid": "00242facbda83cf0f9615bf8d94bd1b9", "score": "0.5080455", "text": "private List<Item> getAllItemsReq(String url) {\n ResponseEntity<Item[]> response = restTemplate.getForEntity(url, Item[].class);\n ArrayList<Item> list = new ArrayList<>(Arrays.asList(response.getBody()));\n return list;\n }", "title": "" }, { "docid": "15649649d1cd5ae440c11c057679bb51", "score": "0.5072922", "text": "List<Item> getAllItems();", "title": "" }, { "docid": "0a78f8faeb26a46bb796c0b3de157386", "score": "0.50700116", "text": "public Map<String, Long> listObjects(String projectId, String bucketName) {\n\n Storage storage = StorageOptions.newBuilder().setProjectId(projectId).build().getService();\n Bucket bucket = storage.get(bucketName);\n Page<Blob> blobs = bucket.list();\n Map<String, Long> files = new HashMap<>();\n\n for (Blob blob : blobs.iterateAll()) {\n files.put(blob.getName(), blob.getSize());\n }\n return files;\n }", "title": "" }, { "docid": "228e960725d89980bac1f7dadf31d64f", "score": "0.5038721", "text": "List<Item> getItems(int quantity);", "title": "" }, { "docid": "9bfed30fc53d13bd96a12ef5c9e53e3d", "score": "0.5027337", "text": "public List<Item> getAllItems(String dep) {\n String buildURL = BASE_URL + dep + \"/get_all\";\n List<Item> items = getAllItemsReq(buildURL);\n return items;\n }", "title": "" }, { "docid": "4b80822dce048089d77d3bf61a0bfb23", "score": "0.50045884", "text": "List<ExtensionEntity> getExtensions(Set<String> bucketIdentifiers, ExtensionFilterParams filterParams);", "title": "" }, { "docid": "42ff67cbfc5f6c6619d414a7079cbf18", "score": "0.49728018", "text": "List<BucketNode> getBucketNodes(long distributionId);", "title": "" }, { "docid": "40490e6b0eef2313fb6577e5c79f5b36", "score": "0.49621454", "text": "@Override\n protected Void doInBackground(Void... inputs) {\n s3ObjList = sS3Client.listObjects(Constants.BUCKET_NAME).getObjectSummaries();\n\n for (S3ObjectSummary summary : s3ObjList) {\n urls.add(sS3Client.getUrl(Constants.BUCKET_NAME,summary.getKey()));\n }\n return null;\n }", "title": "" }, { "docid": "7e7c6e99e71084517f0dd679ac7b5d8a", "score": "0.49549788", "text": "private void get(String oid, Exchange exchange) throws RiakException {\n \t\tObject res= bucket.fetch(oid).execute();\t\t\n \t\tString stringResponse = res!=null? bucket.fetch(oid).execute().getValueAsString():null;\n \t\texchange.getOut().setBody(stringResponse);\n \t}", "title": "" }, { "docid": "7197304d6193da410838303e23798ea1", "score": "0.4943202", "text": "List<String> getBucketAssignments(long distributionId);", "title": "" }, { "docid": "cf8f8c0a0586e7c2776e95304397b259", "score": "0.49302766", "text": "public Collection<StatStorageItem> getCurrentItems(String type, Integer cloudId, Integer mpId, Integer appId) throws Exception;", "title": "" }, { "docid": "a9c983e2ae4dc430418de0ba8535a543", "score": "0.4922847", "text": "<V> RJsonBucket<V> getJsonBucket(String name, JsonCodec<V> codec);", "title": "" }, { "docid": "b2fe3a29ff324d4d0fc88c1f207beba6", "score": "0.49105418", "text": "List<BundleVersionEntity> getBundleVersions(Set<String> bucketIdentifiers, BundleVersionFilterParams filterParams);", "title": "" }, { "docid": "8533d8aa0c3823d8d5b7ee6b90d2475b", "score": "0.4908006", "text": "private static List<UploadObject> getUploads(DynamoDBMapper uploadMapper, DynamoDBMapper healthCodeMapper,\n String[] s3KeyArr) {\n List<Object> uploadKeyList = new ArrayList<>();\n for (String oneS3Key : s3KeyArr) {\n DynamoUpload2 oneUploadKey = new DynamoUpload2();\n oneUploadKey.setUploadId(oneS3Key);\n uploadKeyList.add(oneUploadKey);\n }\n\n // query DDB for uploads\n Map<String, List<Object>> batchLoadResultMap = uploadMapper.batchLoad(uploadKeyList);\n List<DynamoUpload2> uploadMetadataList = new ArrayList<>();\n for (List<Object> oneResultList : batchLoadResultMap.values()) {\n for (Object oneResult : oneResultList) {\n if (!(oneResult instanceof DynamoUpload2)) {\n System.out.println(String.format(\"DDB returned object of type %s instead of DynamoUpload2\",\n oneResult.getClass().getName()));\n continue;\n }\n uploadMetadataList.add((DynamoUpload2) oneResult);\n }\n }\n System.out.println(String.format(\"Got %s results from DDB Upload table\", uploadMetadataList.size()));\n\n System.out.println(\"Downloading files from S3 and cross-referencing study ID from health code...\");\n List<UploadObject> uploads = new ArrayList<>();\n for (DynamoUpload2 oneUploadMetadata : uploadMetadataList) {\n String studyId = oneUploadMetadata.getStudyId();\n\n uploads.add(new UploadObject(oneUploadMetadata, studyId));\n }\n return uploads;\n }", "title": "" }, { "docid": "cbbc10749b9f6141ec5d748627bde6a7", "score": "0.48804408", "text": "public static ArrayList<BucketItem> createInitialBucketList(int numItems){\n ArrayList<BucketItem> itemList = new ArrayList<BucketItem>();\n\n// for (int i = 1; i <= numItems; i++) {\n// itemList.add(new BucketItem(\"To-do Item Number \" + ++lastBucketItemCount, \"Sample to-do list item.\",\n// 0.0f, 0.0f, false, 1, 1, 2019));\n// }\n\n// itemList.add(new BucketItem());\n itemList.add(new BucketItem(\"Graduate!\", \"Walk the lawn.\", 0.0f, 0.0f, false, 19, 5, 2019));\n itemList.add(new BucketItem(\"Finish Fall Semester\", \"One more to go!\", 0.0f, 0.0f, false, 11, 12, 2018));\n\n return itemList;\n }", "title": "" }, { "docid": "862714065eab219473830feb7c3c58d2", "score": "0.48743093", "text": "public OcsFuture<Map<String, OcsResult>> gets(Set<String> keys, OcsOptions options) throws OcsException {\r\n\t\tMemcachedBatchCommand command = new MemcachedBatchGetCommand(rpc, MemcachedOpCode.GETQ, keys);\r\n\t\treturn command.executeBatch(false, options);\r\n\t}", "title": "" }, { "docid": "239a52bc35fea98ee920119595102f2d", "score": "0.4861102", "text": "List<Item> getItems();", "title": "" }, { "docid": "7a802acaed3bd5f1f4cf421f4894764e", "score": "0.4858517", "text": "List<FlowEntity> getFlowsByName(String bucketIdentifier, String name);", "title": "" }, { "docid": "d94246cbe328b9a356a33f37d08ae490", "score": "0.48519334", "text": "List<BundleVersionEntity> getBundleVersions(String bucketId, String groupId, String artifactId);", "title": "" }, { "docid": "e38d4df2b3ce5e88eb8b0acc26427688", "score": "0.4841788", "text": "ArrayList<Item> getAllItems();", "title": "" }, { "docid": "408bf2a7413e4d46c44c75c4f20ea5ae", "score": "0.48323563", "text": "public Iterable<Map.Entry<RegisterKey, JsonNode>> getAllRegisters(BucketID bucket) throws Exception;", "title": "" }, { "docid": "8a0ffab8961811b7250b045cbdd93ec9", "score": "0.4828776", "text": "public List<Alertalarmval> getGroupData(String bucket) {\n return groups.get(bucket);\n }", "title": "" }, { "docid": "80ff81b6aab36761922850c4fc590222", "score": "0.48266196", "text": "@Override\n public Iterable<T> getByCanonicalUrl(String url) {\n T result = resources.get(url);\n if (result != null) {\n return Collections.singletonList(result);\n }\n return Collections.emptyList();\n }", "title": "" }, { "docid": "b9d4fcb75e974c602f21d940c2410831", "score": "0.48249066", "text": "public void fetchFileFromS3(View view){\n Thread thread = new Thread(new Runnable(){\n @Override\n public void run() {\n\n try {\n Looper.prepare();\n listing = getObjectNamesForBucket(bucket, s3Client);\n\n for (int i=0; i< listing.size(); i++){\n Toast.makeText(MainActivity.this, listing.get(i),Toast.LENGTH_LONG).show();\n }\n Looper.loop();\n // Log.e(\"tag\", \"listing \"+ listing);\n }\n catch (Exception e) {\n e.printStackTrace();\n Log.e(\"tag\", \"Exception found while listing \"+ e);\n }\n\n }\n });\n thread.start();\n }", "title": "" }, { "docid": "7d37b5ba589d111af5052b11e11330b5", "score": "0.4795845", "text": "public CompletableFuture<List<ByteArraySegment>> get(@NonNull List<ByteArraySegment> keys, @NonNull Duration timeout) {\n if (keys.size() == 1) {\n // Shortcut for single key.\n return get(keys.get(0), timeout).thenApply(Collections::singletonList);\n }\n\n // Lookup all the keys in parallel, and make sure to apply their resulting values in the same order that their keys\n // where provided to us.\n ensureInitialized();\n TimeoutTimer timer = new TimeoutTimer(timeout);\n PageCollection pageCollection = new PageCollection(this.state.length);\n val gets = keys.stream()\n .map(key -> locatePage(key, pageCollection, timer)\n .thenApplyAsync(page -> page.getPage().searchExact(key), this.executor))\n .collect(Collectors.toList());\n return Futures.allOfWithResults(gets);\n }", "title": "" }, { "docid": "71a053f99022956ba208b72c8ac25fdf", "score": "0.47857994", "text": "String resolveBucket(FileStorageRequest request);", "title": "" }, { "docid": "b90466978cf8e5d34ac93256ac655590", "score": "0.473873", "text": "Response<Map<String, Distribution>> getDistributions() throws IOException;", "title": "" }, { "docid": "d4d26924a6b5275d1c6cd7a53b829630", "score": "0.473333", "text": "public java.util.List<com.liferay.curso.model.Bar> getBars(long pk);", "title": "" }, { "docid": "b4c6bb927ffb44353e375ec7b2593b3f", "score": "0.47163662", "text": "public Optional<Bucket> getBucket(Map<String, String> theMap)\n {\n final Optional<Interval> timeBucket = getGranularitySpec().bucketInterval(\n new DateTime(\n theMap.get(\n getTimestampColumnName()\n )\n )\n );\n if (!timeBucket.isPresent()) {\n return Optional.absent();\n }\n \n final List<HadoopyShardSpec> shards = shardSpecs.get(timeBucket.get().getStart());\n if (shards == null || shards.isEmpty()) {\n return Optional.absent();\n }\n \n for (final HadoopyShardSpec hadoopyShardSpec : shards) {\n final ShardSpec actualSpec = hadoopyShardSpec.getActualSpec();\n if (actualSpec.isInChunk(theMap)) {\n return Optional.of(\n new Bucket(\n hadoopyShardSpec.getShardNum(),\n timeBucket.get().getStart(),\n actualSpec.getPartitionNum()\n )\n );\n }\n }\n \n throw new ISE(\"row[%s] doesn't fit in any shard[%s]\", theMap, shards);\n }", "title": "" }, { "docid": "4de91567b3a631fb4a976c436279d07e", "score": "0.47099864", "text": "@Query(\"select * from item where item_key=:key\")\n public abstract List<ItemEntity> getItemFromKey(String key);", "title": "" }, { "docid": "88528e6a42948d409f791df92c9e5c4e", "score": "0.46933293", "text": "private static void printBucket(List<Entry> bucket) {\n String closer = \"\";\n if (bucket.size() > 0) {\n System.out.print(\" {\");\n System.out.print(bucket.get(0).getKey());\n closer = \"}\";\n }\n for(int i = 1; i < bucket.size(); i++) {\n Entry e = bucket.get(i);\n System.out.print(\", \" + e.getKey());\n }\n\n System.out.println(closer);\n }", "title": "" }, { "docid": "3af1902e614fd4f1fc3b25de8c969298", "score": "0.4690321", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic E[] getBucket(int hashCode) {\n\t\tint bucketIdx = Math.abs(hashCode) % data.length;\n\t\treturn (E[]) data[bucketIdx];\n\t}", "title": "" }, { "docid": "6758fed3d1a31d8b0b65c797b4a4b114", "score": "0.4672171", "text": "@Override\n protected Void doInBackground(Void... inputs) {\n s3ObjList = s3.listObjects(Constants.DEMO_BUCKET_NAME).getObjectSummaries();\n mList = new ArrayList<>();\n Copy_mList = new ArrayList<GridViewItem>();\n transferRecordMaps.clear();\n for (S3ObjectSummary summary : s3ObjList) {\n mGridViewItem = new GridViewItem();\n HashMap<String, Object> map = new HashMap<String, Object>();\n map.put(\"key\", summary.getKey());\n\n mGridViewItem.setLink(summary.getKey());\n mGridViewItem.setName(summary.getKey());\n\n mList.add(mGridViewItem);\n\n transferRecordMaps.add(map);\n\n }\n beginDownload();\n return null;\n }", "title": "" }, { "docid": "1669fbfba8616cdb979c6de3ae3cbd60", "score": "0.46697623", "text": "List<ExtensionEntity> getExtensionsByProvidedServiceApi(Set<String> bucketIdentifiers, ProvidedServiceAPI providedServiceAPI);", "title": "" }, { "docid": "23c236ce4b6721c0e6be7b17e1993d70", "score": "0.46664956", "text": "@Command(description=\"Get a List of all books sorted by there title\")\n\tpublic void getBooks(){\n\t\tTreeSet<Books> sortedBooks = new TreeSet<Books>();\n\t\tsortedBooks.addAll(bookjarAPI.getBooks());\n\t\tIterator<Books> iter = sortedBooks.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tBooks u = iter.next();\n\t\t\tSystem.out.println(u.title + \", Released on \" + u.year);\n\t\t}\n\t}", "title": "" }, { "docid": "734d3553a7b2ea19fac5c7220547735e", "score": "0.46468025", "text": "public List<T> getAllBy(final String indexName, final Object... args);", "title": "" }, { "docid": "fc02e2c052e6d16ed6dc84d82991cd1c", "score": "0.46420857", "text": "public static ListBucketsResult parseBucketListResponse(InputStream inputStream, ListBucketsResult listBucketsResult) throws Exception {\n listBucketsResult.clearBucketList();\n XmlPullParser newPullParser = Xml.newPullParser();\n newPullParser.setInput(inputStream, \"utf-8\");\n int eventType = newPullParser.getEventType();\n OSSBucketSummary oSSBucketSummary = null;\n while (eventType != 1) {\n if (eventType == 2) {\n String name = newPullParser.getName();\n if (name != null) {\n if (\"Prefix\".equals(name)) {\n listBucketsResult.setPrefix(newPullParser.nextText());\n } else if (\"Marker\".equals(name)) {\n listBucketsResult.setMarker(newPullParser.nextText());\n } else if (\"MaxKeys\".equals(name)) {\n String nextText = newPullParser.nextText();\n if (nextText != null) {\n listBucketsResult.setMaxKeys(Integer.valueOf(nextText).intValue());\n }\n } else if (\"IsTruncated\".equals(name)) {\n String nextText2 = newPullParser.nextText();\n if (nextText2 != null) {\n listBucketsResult.setTruncated(Boolean.valueOf(nextText2).booleanValue());\n }\n } else if (\"NextMarker\".equals(name)) {\n listBucketsResult.setNextMarker(newPullParser.nextText());\n } else if (\"ID\".equals(name)) {\n listBucketsResult.setOwnerId(newPullParser.nextText());\n } else if (\"DisplayName\".equals(name)) {\n listBucketsResult.setOwnerDisplayName(newPullParser.nextText());\n } else if (\"Bucket\".equals(name)) {\n oSSBucketSummary = new OSSBucketSummary();\n } else if (\"CreationDate\".equals(name)) {\n if (oSSBucketSummary != null) {\n oSSBucketSummary.createDate = DateUtil.parseIso8601Date(newPullParser.nextText());\n }\n } else if (\"ExtranetEndpoint\".equals(name)) {\n if (oSSBucketSummary != null) {\n oSSBucketSummary.extranetEndpoint = newPullParser.nextText();\n }\n } else if (\"IntranetEndpoint\".equals(name)) {\n if (oSSBucketSummary != null) {\n oSSBucketSummary.intranetEndpoint = newPullParser.nextText();\n }\n } else if (\"Location\".equals(name)) {\n if (oSSBucketSummary != null) {\n oSSBucketSummary.location = newPullParser.nextText();\n }\n } else if (\"Name\".equals(name)) {\n if (oSSBucketSummary != null) {\n oSSBucketSummary.name = newPullParser.nextText();\n }\n } else if (\"StorageClass\".equals(name) && oSSBucketSummary != null) {\n oSSBucketSummary.storageClass = newPullParser.nextText();\n }\n }\n } else if (eventType == 3 && \"Bucket\".equals(newPullParser.getName()) && oSSBucketSummary != null) {\n listBucketsResult.addBucket(oSSBucketSummary);\n }\n eventType = newPullParser.next();\n if (eventType == 4) {\n eventType = newPullParser.next();\n }\n }\n return listBucketsResult;\n }", "title": "" }, { "docid": "81cd049b403a0ac8a7c482308fc5e069", "score": "0.4634779", "text": "public StorageItems getStoredItems();", "title": "" }, { "docid": "3fe1a0fc59039c48c202ad14787c2767", "score": "0.46332455", "text": "@GET\n\t@Produces(\"text/plain\")\n\t@Path(\"/\")\n\tpublic String getAllObjects() throws JSONException {\n\n\t\tString COS_ENDPOINT;\n\t\tString IAM_TOKEN;\n\t\tString COS_BUCKET_NAME;\n\t\tString COS_HOST;\n\t\tString temp = \"\";\n\t\tString output = \"\";\n\t\t\n\t\tCOS_ENDPOINT = configurationAPI.getPropertyValue(\"endpointURL\");\n\t\tIAM_TOKEN = configurationAPI.getPropertyValue(\"oauthtoken\");\n\t\tCOS_BUCKET_NAME = configurationAPI.getPropertyValue(\"bucketName\");\n\t\tCOS_HOST = configurationAPI.getPropertyValue(\"host\");\n\t\ttry {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t Date date = new Date();\n\t\t\tURL url = new URL(COS_ENDPOINT+\"/\"+ URLEncoder.encode(COS_BUCKET_NAME).replace(\"+\",\"%20\"));\n\t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\t\tconn.setRequestMethod(\"GET\");\n\t\t\tconn.setRequestProperty(\"Authorization\", IAM_TOKEN);\n\t\t\tconn.setRequestProperty(\"Content-Type\", \"text/plain\");\n\t\t\tconn.setRequestProperty(\"Host\",COS_HOST);\n\t\t\tconn.setRequestProperty(\"X-Amz-Date\",dateFormat.format(date) );\n\t\t\t\n\t\t\tif (conn.getResponseCode() != 200) {\n\t\t\t\toutput = output + \"\\nResponse message is : \"+conn.getResponseMessage().toString();\n\t\t\t}\n\t\t\telse{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t(conn.getInputStream())));\n\n\t\t\tSystem.out.println(\"Output from Server .... \\n\");\n\t\t\twhile ((temp = br.readLine()) != null) {\n\t\t\t\t\toutput = output + temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\tconn.disconnect();\n\n\t\t} catch (MalformedURLException e) {\n\t\t\toutput = e.toString();\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\toutput = e.toString();\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn output;\n\t}", "title": "" }, { "docid": "f1bafea9cd28f89aa77f720f778ce1bd", "score": "0.46186146", "text": "public static void main(String[] args) throws IOException {\n\t\t\tAWSCredentials credentials = null;\n\t\t\ttry {\n\t\t\t\tcredentials = new ProfileCredentialsProvider(\"default\").getCredentials();\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new AmazonClientException(\n\t\t \"Cannot load the credentials from the credential profiles file. \" +\n\t\t \"Please make sure that your credentials file is at the correct \" +\n\t\t \"location and is in valid format.\",\n\t\t e);\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * Disables SSL Certificate Check\n\t\t\t * WARNING: Not recommended for production, don't use if possible\n\t\t\t */\n\t\t\tSystem.setProperty(SDKGlobalConfiguration.DISABLE_CERT_CHECKING_SYSTEM_PROPERTY, \"True\"); \n\t\t\t\n\t\t\ttry {\n\t\t\t\t// This code expects that you have AWS credentials set up per:\n\t\t\t\t// https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/setup-credentials.html\n\t\t\t\tAmazonS3 s3Client = AmazonS3ClientBuilder.standard()\n\t\t\t\t\t\t.withCredentials(new AWSStaticCredentialsProvider(credentials))\n\t\t\t\t\t\t.withEndpointConfiguration( new AmazonS3ClientBuilder.EndpointConfiguration(\n\t\t\t\t\t\t\t\tConstants.endpoint,\n\t\t\t\t\t\t\t\tConstants.region)) // Sets up a custom endpoint, delete if not needed\n\t\t\t\t\t\t.build();\n\t\t\t// *** ENTER THE CODE YOU WANT TO PERFORM HERE ***\t\t\n\t\t\t\tList<Bucket> buckets = s3Client.listBuckets();\n\t\t\t\tSystem.out.println(\"Your Amazon S3 buckets are:\");\n\t\t\t\tfor (Bucket b : buckets) {\n\t\t\t\t System.out.println(\"* \" + b.getName());\n\t\t\t\t}\n\t\t\n\t\t\t} catch (AmazonServiceException e) {\n\t // The call was transmitted successfully, but Amazon S3 couldn't process \n\t // it, so it returned an error response.\n\t e.printStackTrace();\n\t } catch (SdkClientException e) {\n\t // Amazon S3 couldn't be contacted for a response, or the client\n\t // couldn't parse the response from Amazon S3.\n\t e.printStackTrace();\n\t }\n\t\t}", "title": "" }, { "docid": "d9d2cab1f23e46667bdb7d50b925a72c", "score": "0.4609128", "text": "void createBuckets(long distributionId, int bucketCount);", "title": "" }, { "docid": "ebcd093b89cb077905d824d7efde5125", "score": "0.46041557", "text": "public Title getFromGoogleApi(String isbn) {\n //https://www.googleapis.com/books/v1/volumes?q=isbn:9789144059679\n Title result = null;\n\n try {\n HttpGet httpGet = new HttpGet(\"https://www.googleapis.com/books/v1/volumes?q=isbn:\" + isbn);\n HttpResponse response = httpClient.execute(httpGet);\n\n //check response\n checkResponse(response);\n\n //parse result\n String responseString = getResponseAsString(response);\n\n JSONObject root = new JSONObject(responseString);\n if(root.has(\"totalItems\") && root.getInt(\"totalItems\") >= 1) {\n JSONArray items = root.getJSONArray(\"items\");\n\n if(items.length() > 0) {\n JSONObject firstItem = items.getJSONObject(0);\n JSONObject volumeInfo = firstItem.getJSONObject(\"volumeInfo\");\n \n result = new Title();\n\n //get title\n if(volumeInfo.has(\"title\")) {\n result.setBookTitle(volumeInfo.getString(\"title\"));\n }\n\n //get publishYear\n if(volumeInfo.has(\"publishedDate\")) {\n result.setEditionYear(volumeInfo.getInt(\"publishedDate\"));\n }\n\n //get ISBNs\n if(volumeInfo.has(\"industryIdentifiers\")) {\n JSONArray isbns = volumeInfo.getJSONArray(\"industryIdentifiers\");\n\n for(int i = 0;i < isbns.length();i++) {\n JSONObject entry = isbns.getJSONObject(i);\n\n if(entry.has(\"type\")) {\n if(entry.get(\"type\").equals(\"ISBN_10\")) {\n result.setIsbn10(entry.getString(\"identifier\"));\n } else if(entry.get(\"type\").equals(\"ISBN_13\")) {\n result.setIsbn13(entry.getString(\"identifier\"));\n }\n }\n }\n }\n\n //get authors\n if(volumeInfo.has(\"authors\")) {\n JSONArray authors = volumeInfo.getJSONArray(\"authors\");\n if(authors.length() > 0) {\n ArrayList<Author> authorArrayList = new ArrayList<Author>();\n\n for(int i = 0;i< authors.length(); i++) {\n Author a = new Author();\n a.setName(authors.getString(i));\n }\n\n result.setAuthors(authorArrayList);\n }\n }\n }\n }\n } catch (IOException e) {\n Log.e(\"TitleDao\", \"Exception at reading from GoogleAPI\", e);\n } catch (HttpException e) {\n Log.e(\"TitleDao\", \"HttpException at reading from GoogleAPI\", e);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return result;\n }", "title": "" }, { "docid": "a64692794cb260822f018367f6f775ac", "score": "0.45927757", "text": "Collection getCollectionWithItems(Long collectionId, BizContext context);", "title": "" }, { "docid": "307b5be0941591de8e932f7ac789976f", "score": "0.45915738", "text": "public Collection<E> get(Collection<K> pks);", "title": "" }, { "docid": "0b6a1e5cbc4f77ba6a8d6990c3eafedd", "score": "0.45850575", "text": "public Iterable<byte[]> getAll(byte[] key) throws IOException {\n /*\n byte[] b;\n ArrayList<byte[]> l = new ArrayList<byte[]>(blobs.size());\n for (blobItem bi: blobs) {\n b = bi.blob.get(key);\n if (b != null) l.add(b);\n }\n return l;\n */\n return new BlobValues(key);\n }", "title": "" }, { "docid": "67a04d83f1f87ec34b6d16d61dac3792", "score": "0.45817637", "text": "@GetMapping(\"/items\")\r\n\tpublic List<Item> getAllItems(){\r\n\t\tlog.info(message);\r\n\t\tlog.info(displayEnvInfo());\r\n\t\treturn itemRepository.findAll();\r\n\t}", "title": "" }, { "docid": "7c7398b88107f6720c2ed2f45d6d738b", "score": "0.45748085", "text": "public List<String> getDataFromS3(String input) throws IOException {\n\t\tString inputFile[] = input.split(Constants.SUFFIX);\n\t\tS3Object s3object = s3.getObject(new GetObjectRequest(inputFile[0], inputFile[1] + Constants.SUFFIX + inputFile[2]));\n\t\tSystem.out.println(\"Content-Type: \" + s3object.getObjectMetadata().getContentType());\n\t\t@SuppressWarnings(\"unused\")\n\t\tInputStream fileIn = new GZIPInputStream(s3object.getObjectContent());\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f26168c696652bca702518e9ee9c4bec", "score": "0.45721108", "text": "@Override\n public ArrayList<Bucket> createNavS(String bucketName, int start, int count) {\n ArrayList<Object> recordList = new ArrayList<>();\n\n StringBuffer select = null;\n if(bucketName==null)\n {\n select = new StringBuffer(\"SELECT COUNT(*)\");\n select.append(\" FROM \")\n .append(tableName)\n .append(\" WHERE row !=1\");\n try (AutoRollbackConnection connection = DBHandler.instance.getConnection();\n PreparedStatement stmt = connection.prepareStatement(select.toString())) {\n\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n count = rs.getInt(1);\n }\n rs.close();\n stmt.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n\n\n select = null;\n if(indexString.length()==0)\n select = new StringBuffer(\"SELECT row, col_1\");\n else\n select = new StringBuffer(\"SELECT row, \"+indexString);\n\n select.append(\" FROM \")\n .append(tableName)\n .append(\" WHERE row = ANY (?) AND row !=1\");\n\n try (AutoRollbackConnection connection = DBHandler.instance.getConnection();\n PreparedStatement stmt = connection.prepareStatement(select.toString())) {\n DBContext context = new DBContext(connection);\n ArrayList<Integer> rowIds = rowMapping.getIDs(context,start,count);\n Array inArrayRow = context.getConnection().createArrayOf(\"integer\", rowIds.toArray());\n stmt.setArray(1, inArrayRow);\n\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n recordList.add(new String(rs.getBytes(2),\"UTF-8\"));\n }\n rs.close();\n stmt.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //create nav data structure\n this.navS.setRecordList(recordList);\n ArrayList<Bucket> newList = this.navS.getUniformBuckets(0,recordList.size()-1);//getBucketsNoOverlap(0,recordList.size()-1,true);\n\n if(bucketName==null)\n {\n return newList;\n }\n\n return this.navS.recomputeNavS(bucketName,this.navSbuckets,newList);\n // printBuckets(navSbuckets);\n\n }", "title": "" }, { "docid": "772905861c594ba850732d6f9f675b2c", "score": "0.45712295", "text": "List<Item> getUserItems(User user);", "title": "" }, { "docid": "72b40f01ed9a760c8db6caa0079d682d", "score": "0.45698136", "text": "public void displayContents() {\n\t\t\r\n\t\tfor (int i = 0; i < buckets.length; i++) {\r\n\r\n\t\t // For the current bucket, print out the emp num for each item\r\n // in its ArrayList.\r\n\r\n System.out.println(\"\\nExamining the ArrayList for bucket \" + i);\r\n int listSize = buckets[i].size();\r\n if (listSize == 0) {\r\n\t\t System.out.println(\" Nothing in its ArrayList!\");\r\n }\r\n else {\r\n for (int j = 0; j < listSize; j++) {\r\n int empNum = buckets[i].get(j).getEmpNumber();\r\n System.out.println(\" Employee \" + empNum);\r\n }\r\n }\r\n\r\n }\r\n\r\n\t}", "title": "" }, { "docid": "3f8adc53013e97666862070e5b587030", "score": "0.455212", "text": "@Nullable\n public Bucket getBucket(String name) throws Exception {\n List<Bucket> buckets = oss.listBuckets();\n for (Bucket bucket : buckets) {\n if (bucket.getName().equals(name)) {\n return bucket;\n }\n }\n return null;\n }", "title": "" }, { "docid": "4ae130203ee8ff2d6d08f20a84250ae6", "score": "0.45480576", "text": "private LinkedList<Entry> chooseBucket(Object key) {\n // TODO\n // hint: use key.hashCode() to calculate the key's hashCode, and use this to choose which bucket the key should\n // go in\n int index = key == null ? 0 : Math.abs(key.hashCode()) % buckets.length;\n return buckets[index];\n }", "title": "" }, { "docid": "c3cade74a89d38e57b428b87a374df3f", "score": "0.45432788", "text": "@Override \n\tpublic List<String> getJobNamesForBucket(String bucket_path) {\t\t\n\t\treturn StormControllerUtil.getJobNamesForBucket(bucket_path, \n\t\t\t\t\t\t\t\t\tLambdas.wrap_u(() -> {\n\t\t\t\t\t\t\t\t\t\tsynchronized (client) {\n\t\t\t\t\t\t\t\t\t\t\treturn client.getClusterInfo();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}).get()\n\t\t\t\t);\t\t\n\t}", "title": "" }, { "docid": "3f68102ff589d2c920449437c5a6d088", "score": "0.45426702", "text": "private void checkBucketIds(ArrayList<Item> allItems) {\n final IImageList allImages;\n if (!mScanning && !mUnmounted) {\n// if(Util.getInternalStorageDir() != null){\n allImages = ImageManager.makeImageList(getContentResolver(),\n ImageManager.DataLocation.ALL,\n ImageManager.INCLUDE_IMAGES,\n ImageManager.SORT_DESCENDING, null);\n// }else{\n// allImages = ImageManager.makeImageList(getContentResolver(),\n// ImageManager.DataLocation.EXTERNAL,\n// ImageManager.INCLUDE_IMAGES,\n// ImageManager.SORT_DESCENDING, null);\n// }\n } else {\n allImages = ImageManager.makeEmptyImageList();\n }\n /*\n * FIX BUG:5195\n * BUG COMMENT: Avoid null pointer exception\n * DATE: 2013-11-12\n */\n if(allImages.getCount() > 0 && mHandler != null) {\n mHandler.sendEmptyMessage(SHOW_SECRET_HINT);\n }\n if (mAbort) {\n allImages.close();\n return;\n }\n Log.d(TAG, \"allImages = \" +allImages.getCount());\n HashMap<String, String> hashMap = allImages.getBucketIds();\n // CID 109130 : DLS: Dead local store (FB.DLS_DEAD_LOCAL_STORE)\n // HashMap<String, String> hashMapUri = allImages.getBaseUri();\n allImages.close();\n if (mAbort) {\n return;\n }\n\n /**\n * FIX BUG: 1090 1132\n * BUG CAUSE: SD card mounted or is scanning, get EmptyImageList object.\n * FIX COMMENT: Did not get the BucketIds, would directly return.\n * DATE:2012-06-26\n */\n if(hashMap == null) {\n return;\n }\n\n //SPRD Bug:542624 camera2 happens JavaCrash,log:java.lang.ArrayIndexOutOfBoundsException\n ArrayList<ContentProviderOperation> operations = new ArrayList<ContentProviderOperation>();\n\n LinkedList<String> bucketIds = new LinkedList<String>();\n bucketIds.addAll(hashMap.keySet());\n\n for (ImageListData data : mImageListData) {\n if(data == null) continue;\n if (bucketIds.remove(data.mBucketId)) {\n bucketIds.addFirst(data.mBucketId);\n hashMap.put(data.mBucketId, data.mBucketName);\n }\n }\n\n for (String key : bucketIds) {\n if (key == null) {\n continue;\n }\n IImageList list = createImageList(ImageManager.INCLUDE_IMAGES, key, getContentResolver());\n if (mAbort) {\n return;\n }\n\n final Item item = new Item(Item.TYPE_NORMAL_FOLDERS, key, hashMap.get(key), list);\n// item.mThumbBitmap = makeMiniThumbBitmap(THUMB_SIZE, THUMB_SIZE, item.mImageList);\n// item.loadThumbnailFromFile();\n Cursor cursor = null;\n try {\n String name = null;\n IImage image = item.mImageList.getImageAt(0);\n if(image != null) {\n name = image.getTitle();\n }\n if(image != null && isSystemGallery(image.getDataPath())){\n continue;\n }\n// if(hashMapUri != null) {\n// String baseUri = hashMapUri.get(key);\n// String photoPath = image.getDataPath();\n// boolean isRight = isRigntUri(baseUri, photoPath);\n// if(!isRight) {\n// continue;\n// }\n// }\n cursor = getContentResolver().query(UCamData.Albums.CONTENT_URI,\n new String[] {UCamData.Albums.ALBUM, UCamData.Albums.IMAGE_NAME},\n UCamData.Albums.ALBUM_BUCKET + \"=?\",\n new String[]{item.mBucketId},\n null);\n Bitmap temp = null;\n String realName = null;\n if(cursor != null) {\n while (cursor.moveToNext()) {\n byte[] data = cursor.getBlob(cursor.getColumnIndex(UCamData.Albums.ALBUM));\n if(data != null) {\n temp = BitmapFactory.decodeByteArray(data, 0, data.length);\n }\n realName = cursor.getString(cursor.getColumnIndex(UCamData.Albums.IMAGE_NAME)) ;\n }\n }\n\n if(temp == null || (realName != null && !realName.equals(name))) {\n temp = makeMiniThumbBitmap(THUMB_SIZE, THUMB_SIZE, item.mImageList);\n byte[] coverData = transform(temp);\n if(coverData != null) {\n operations.add(ContentProviderOperation.newInsert(UCamData.Albums.CONTENT_URI)\n .withValue(UCamData.Albums.ALBUM_BUCKET, item.mBucketId)\n .withValue(UCamData.Albums.IMAGE_NAME, name)\n .withValue(UCamData.Albums.ALBUM, coverData)\n .build());\n }\n }\n\n if(ImageManager.SN_PHOTOGRAPHY_BUCKET_ID.equals(key) && needLockedAbulm(item)) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n ArrayList<String> toBeSacnnerPaths = new ArrayList<String>();\n for (int i = item.mCount; item.mCount > 0 && i >= 0; i--) {\n IImage image = item.mImageList.getImageAt(i);\n if(image != null && !image.getDataPath().startsWith(Constants.STORE_DIR_LOCKED_PHOTOGRAPY)) {\n File newFile = LockUtil.backupUnlockFile(i ,image.getDataPath(), Constants.STORE_DIR_LOCKED_PHOTOGRAPY, true);\n toBeSacnnerPaths.add(newFile.getAbsolutePath());\n getContentResolver().delete(image.fullSizeImageUri(), null, null);\n }\n }\n if (mIsShowLockedImage && toBeSacnnerPaths.size()>0) {\n new MediaScanner(ImageGallery.this, null).scanFile(toBeSacnnerPaths, null);\n }\n }\n }).start();\n }\n\n item.mThumbBitmap = temp;\n if(mIsLockedAblum && needLockedAbulm(item)) {\n /*\n * FIX BUG : 5702\n * BUG COMMENT : when the path is SD_PATH + \"/DCIM/UcamSecretBak\",wo need createNoMediaFile in this path\n * DATE : 2014-02-13\n */\n if(ImageManager.SN_PHOTOGRAPHY_BUCKET_ID.equals(key) || image.getDataPath().startsWith(Constants.STORE_DIR_LOCKED_DCIM)) {\n int count = item.mImageList.getCount();\n new Thread(new Runnable() {\n @Override\n public void run() {\n item.reNameVideoDir();\n for (int i = 0; i < item.mImageList.getCount(); i++) {\n IImage image = item.mImageList.getImageAt(i);\n if(image != null) {\n getContentResolver().delete(image.fullSizeImageUri(), null, null);\n getContentResolver().delete(UCamData.Thumbnails.CONTENT_URI, UCamData.Thumbnails.THUMB_PATH + \"=?\", new String[]{image.getDataPath()});\n getContentResolver().delete(UCamData.Albums.CONTENT_URI, UCamData.Albums.ALBUM_BUCKET + \"=?\", new String[]{image.getBucketId()});\n }\n }\n item.restoreVideoDir();\n LockUtil.createNoMediaFile(Constants.STORE_DIR_LOCKED_PHOTOGRAPY);\n }\n }).start();\n } else {\n new Thread(new Runnable() {\n @Override\n public void run() {\n item.reNameDir();\n getContentResolver().delete(Images.Media.EXTERNAL_CONTENT_URI,\n Media.BUCKET_ID+ \"= ?\", new String[]{item.mBucketId});\n item.restoreDir();\n LockUtil.createNoMediaFile(Constants.STORE_DIR_LOCKED);\n }\n }).start();\n }\n }else {\n allItems.add(item);\n final Item finalItem = item;\n mHandler.post(new Runnable() {\n public void run() {\n updateItem(finalItem);\n }\n });\n }\n }catch(SQLiteException e) {\n Log.e(TAG, \"checkBucketIds SQLiteException: \"+e);\n } finally {\n if(cursor != null) {\n cursor.close();\n }\n }\n }\n //SPRD Bug:542624 java.lang.ArrayIndexOutOfBoundsException\n mCoverList = operations;\n mHandler.post(new Runnable() {\n public void run() {\n checkBucketIdsFinished();\n }\n });\n }", "title": "" }, { "docid": "a11fc9eccd529f21ea40cb2c81411632", "score": "0.45419505", "text": "List<List<Object>> retrieveData(String url, String range) throws IOException {\n String spreadsheetId = getSpreadsheetId(url);\n LOGGER.info(\"Now attempting to retrieve data from spreadsheet with spreadsheetId={}\", spreadsheetId);\n return retriever.spreadsheets().values().get(spreadsheetId, range).execute().getValues();\n }", "title": "" }, { "docid": "bc32c47eac307c33e08b3ae463a88a58", "score": "0.453448", "text": "public List<com.danyl.spiders.jooq.gen.xiaomi.tables.pojos.Item> fetchByRegion(String... values) {\n return fetch(Item.ITEM.REGION, values);\n }", "title": "" }, { "docid": "dabcffa2b6788b7b2a962fa1ef6b64c8", "score": "0.452469", "text": "private List<KeyValue> get(final Get get) throws IOException {\n long now = EnvironmentEdgeManager.currentTimeMillis();\n Scan scan = new Scan(get);\n\n List<KeyValue> results = new ArrayList<KeyValue>();\n\n InternalScanner scanner = null;\n try {\n scanner = getScanner(scan);\n scanner.next(results, HRegion.METRIC_GETSIZE);\n } finally {\n if (scanner != null)\n scanner.close();\n }\n\n // do after lock\n long after = EnvironmentEdgeManager.currentTimeMillis();\n String signature = SchemaMetrics.generateSchemaMetricsPrefix(\n this.getTableDesc().getNameAsString(), get.familySet());\n HRegion.incrTimeVaryingMetric(signature + \"get_\", after - now);\n\n return results;\n }", "title": "" }, { "docid": "6fa26d344afb5c9650c9c3d07aa31268", "score": "0.45146316", "text": "public Set<RegisterKey> getRegisterKeys(BucketID bucket, String prefix) throws Exception;", "title": "" }, { "docid": "c931d1d42237f678727fa3cc7455c35f", "score": "0.45135626", "text": "public void getBooks(final String query, JsonHttpResponseHandler handler) {\n try {\n String url = getApiUrl(\"search.json?q=\");\n client.get(url + URLEncoder.encode(query, \"utf-8\"), handler);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "87cb0e5c6cb3776ce43e40d403abfc30", "score": "0.4512249", "text": "@Override\n public List<T_BEAN> getItems(List<T_ID> ids) {\n Map<T_ID, T_BEAN> itemsInMap = new LinkedHashMap<T_ID, T_BEAN>();\n List<T_ID> idsToQuery = new ArrayList<T_ID>(ids.size());\n for (T_ID id : ids) {\n T_BEAN b = idToBeanMap.get(id);\n if (b != null) {\n itemsInMap.put(id, b);\n } else {\n idsToQuery.add(id);\n }\n }\n\n // 1.a: All items are already loaded.\n if (idsToQuery.isEmpty()) {\n return new ArrayList<T_BEAN>(itemsInMap.values());\n }\n\n // 2. Get the missing items from the service.\n List<T_BEAN> queryResultItems = delegate.getItems(idsToQuery);\n if (itemsInMap.isEmpty()) {\n // 2.a: No items loaded: Add them to the map and return the item set.\n for (T_BEAN item : queryResultItems) {\n idToBeanMap.put(getIdForItem(item), item);\n }\n return queryResultItems;\n } else {\n // 2.b: Some items are already in memory.\n // The in-memory instance will be used in favor to the service provided instance.\n // This preserves any changed done in the already loaded instance.\n List<T_BEAN> allItems = new ArrayList<T_BEAN>(ids.size());\n Iterator<T_BEAN> queryResultIterator = queryResultItems.iterator();\n for (T_ID id : ids) {\n if (itemsInMap.containsKey(id)) {\n allItems.add(itemsInMap.get(id));\n } else {\n if (queryResultIterator.hasNext()) {\n T_BEAN next = queryResultIterator.next();\n allItems.add(next);\n idToBeanMap.put(getIdForItem(next), next);\n } else {\n // Not found items are just gaps. Possibly object deleted by other users.\n // They will be handled by the logic of the caller (pageable collection).\n }\n }\n }\n return allItems;\n }\n }", "title": "" }, { "docid": "a8f5bac8cd82780e7386e8d0ff5ef61d", "score": "0.4498623", "text": "@Override\n public void pump(final KeyValueStoragePut storage) throws Exception {\n final ListObjectsRequest request = new ListObjectsRequest();\n request.setBucketName(this.bucket);\n request.setPrefix(this.prefix);\n int limit = 1000 * 1000;\n while (true) {\n final ObjectListing listing = this.s3.listObjects(request);\n\n limit--;\n if (limit < 0) {\n throw new RuntimeException(\"Failed to start; over 1 million keys reached\");\n }\n\n for (final S3ObjectSummary summary : listing.getObjectSummaries()) {\n final String key = summary.getKey().substring(this.prefix.length());\n final String value = this.s3.getObjectAsString(this.bucket, summary.getKey());\n storage.put(key, new Value(value));\n }\n if (!listing.isTruncated()) {\n return;\n }\n request.setMarker(listing.getNextMarker());\n }\n }", "title": "" }, { "docid": "2ef412025db23a2c8191fb8ac597c135", "score": "0.44839096", "text": "private void fetchBooks() {\n // We use a custom class to handle the API call\n client = new BookAPIClient();\n client.getBooks(\"oscar Wilde\", new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n try {\n JSONArray docs = null;\n if(response != null) {\n // Get the docs json array\n docs = response.getJSONArray(\"docs\");\n // Parse json array into array of model objects\n final ArrayList<Book> books = Book.fromJson(docs);\n // Remove all books from the adapter\n bookAdapter.clear();\n // Load model objects into the adapter\n for (Book book : books) {\n bookAdapter.add(book); // add book through the adapter\n }\n bookAdapter.notifyDataSetChanged();\n }\n } catch (JSONException e) {\n // Invalid JSON format, show appropriate error.\n e.printStackTrace();\n }\n }\n });\n }", "title": "" }, { "docid": "f458ebcf27ba5f0552490284f9246b98", "score": "0.4483166", "text": "@Override\n public List<Book> getAll() {\n WebTarget target = client.target(BOOK_ENDPOINT);\n \n // set the mediatype and call the get http method\n Response response = target.request(MediaType.APPLICATION_JSON).get();\n \n // clear the cachedBooks in order to be sure that the list of book is fresch\n cachedbooks.clear();\n \n // read the json response and deserialize it into a jsonArray\n JsonArray jsonArray = response.readEntity(JsonArray.class);\n \n // construct book object from jsonObject in jsonArray\n for(int i=0; i<jsonArray.size(); i++){\n JsonObject bookJson = jsonArray.getJsonObject(i);\n List<LinkResource> hypermedia = extractLinks(bookJson.getJsonArray(\"links\"));\n List<Author> authors = new ArrayList<>();\n \n Book book = new Book();\n book.setId(bookJson.getInt(\"id\"));\n book.setTitle(bookJson.getString(\"title\"));\n book.setDescription(bookJson.getString(\"description\"));\n book.setPrice((float)bookJson.getJsonNumber(\"price\").doubleValue());\n book.setImgPath(bookJson.getString(\"imgPath\"));\n book.setAuthors(authors);\n book.setPublished(bookJson.getString(\"published\"));\n book.setLink(bookJson.getString(\"link\"));\n book.setLinks(hypermedia);\n \n cachedbooks.add(book);\n }\n \n return Collections.unmodifiableList(cachedbooks);\n }", "title": "" }, { "docid": "3f5a37f468b14ba4d2a61af1ef637266", "score": "0.4479643", "text": "List<String> getItems();", "title": "" }, { "docid": "3916430264a5f9721c9ad5f557e4e962", "score": "0.44682905", "text": "public ItemDTOEx[] getAllItems() throws SessionInternalError {\r\n Integer entityId = getCallerCompanyId();\r\n ItemBL itemBL = new ItemBL();\r\n return itemBL.getAllItems(entityId);\r\n }", "title": "" }, { "docid": "556566546cd57536ee784cee3bf14afa", "score": "0.4454765", "text": "List<Account> getAccounts(String userId);", "title": "" }, { "docid": "bbbf2eae31f1b7c656f9c8c6dcec5d37", "score": "0.444477", "text": "public List<Bid> getBidsOnItem(Item item);", "title": "" }, { "docid": "88f19f3ef07aa4edbecaca96571b7840", "score": "0.44420734", "text": "@PreDestroy\n public void deleteAllBuckets() {\n for (String bucketName : bucketsCreated) {\n deleteS3Bucket(bucketName);\n }\n }", "title": "" }, { "docid": "09b74dec127df9388797142d9baccfc5", "score": "0.44396552", "text": "List<ItemType> getAll() throws RepositoryReadException, UnimplementedMethodException;", "title": "" }, { "docid": "199cdbf8d0c41c4108da7fb90acc3e3b", "score": "0.44373304", "text": "hipstershop.Demo.CartItem getItems(int index);", "title": "" } ]
56343b78db00fe4fdf6c21720529db6c
Handles the HTTP POST method.
[ { "docid": "1fb9f65716ebe85b10c442a0489dc7b2", "score": "0.0", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "title": "" } ]
[ { "docid": "aa70171ded64df58946cd8884b84efa0", "score": "0.70798635", "text": "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n\n }", "title": "" }, { "docid": "5803f03735ce717874eaf6aaf4db5a05", "score": "0.6979723", "text": "@Override\r\n\tpublic void doPost(Request req, Response rep) throws Exception {\n\t}", "title": "" }, { "docid": "74a1d39844f5b754acc70bd7450dc4c3", "score": "0.69006836", "text": "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.POST;\n\t}", "title": "" }, { "docid": "2609ed296476878df7a4905c7efa5ce7", "score": "0.68328106", "text": "@Override\r\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException {\r\n\t\tservice(request, response, \"post\");\r\n\t}", "title": "" }, { "docid": "5863cacafe4ba04cc1442241214876f3", "score": "0.6772347", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequestPOST(request, response);\r\n }", "title": "" }, { "docid": "5f2f1b8924ff0f178978242387a72cf2", "score": "0.66619414", "text": "public void doPost(Request req, Response rep) throws Exception {\n \n }", "title": "" }, { "docid": "e8e20cdce5b0654bf6aa694d590c6349", "score": "0.6606287", "text": "@Override\n\tprotected void doPost(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException {\n\t\tdoRequest(request, new PostMethod(rootEntity), true, true, response);\n\t}", "title": "" }, { "docid": "04b3be29df82bc0728f643a8f81a8628", "score": "0.66038", "text": "@Override\n\t\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\t\tthrows ServletException, IOException {\n\t\t\tsuper.doPost(request, response);\n\t\t}", "title": "" }, { "docid": "04b3be29df82bc0728f643a8f81a8628", "score": "0.66038", "text": "@Override\n\t\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\t\tthrows ServletException, IOException {\n\t\t\tsuper.doPost(request, response);\n\t\t}", "title": "" }, { "docid": "bad506c2ccf240101a5d36edfa1bb524", "score": "0.65893996", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException{}", "title": "" }, { "docid": "c8333e4c9e75dd2b4fca169bf07d3acb", "score": "0.6557446", "text": "@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}", "title": "" }, { "docid": "c8333e4c9e75dd2b4fca169bf07d3acb", "score": "0.6557446", "text": "@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}", "title": "" }, { "docid": "c8333e4c9e75dd2b4fca169bf07d3acb", "score": "0.6557446", "text": "@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}", "title": "" }, { "docid": "688a40787bf97069232a0b9e2dda4321", "score": "0.6549596", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "title": "" }, { "docid": "6563ac4d9c91fb470ad53250b53f0567", "score": "0.6527252", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "6563ac4d9c91fb470ad53250b53f0567", "score": "0.6527252", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "6563ac4d9c91fb470ad53250b53f0567", "score": "0.6527252", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "0cab11c1728d2350fe5e3e52451dbfa3", "score": "0.6524646", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "title": "" }, { "docid": "ef888987bb354b54337ae644308cab3a", "score": "0.6523916", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "title": "" }, { "docid": "6f33b81b232320aab4802a644be61524", "score": "0.65140086", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "title": "" }, { "docid": "ed6b6e55ad3daf82d987f71cf27e579d", "score": "0.65054685", "text": "@Test\n\tpublic void post() {\n\t\tthis.doRequest(HttpMethod.POST, \"/post\", \"POST\", \"Accept\", \"*/*\").assertResponse(200, \"POST\");\n\t}", "title": "" }, { "docid": "0b96adb5dbd51d153f4d6ab04d2916a8", "score": "0.650486", "text": "@Override\n public void PostHandle(int requestType, Object objHeader,\n Object objBody, boolean error, int errorCode)\n {\n onPostHandle(requestType,\n objHeader,\n objBody,\n error,\n errorCode);\n }", "title": "" }, { "docid": "975ec6ca36bc507b4028fe909a1f07b9", "score": "0.6503923", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "333b3ca26e2992351eb65ca7ea236e1d", "score": "0.64986444", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tresp.getWriter().append(\"post ok\");\n\t}", "title": "" }, { "docid": "55edde437763cec2bc18f7e3522f01e2", "score": "0.64827436", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "title": "" }, { "docid": "55edde437763cec2bc18f7e3522f01e2", "score": "0.64827436", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "title": "" }, { "docid": "55edde437763cec2bc18f7e3522f01e2", "score": "0.64827436", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "title": "" }, { "docid": "a075fc353c51a744d1b073d99d589c75", "score": "0.6474592", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "title": "" }, { "docid": "a075fc353c51a744d1b073d99d589c75", "score": "0.6474592", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "title": "" }, { "docid": "24de41f71a8f10de61cebba52e8cd3f8", "score": "0.64702284", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\t\n\t}", "title": "" }, { "docid": "24de41f71a8f10de61cebba52e8cd3f8", "score": "0.64702284", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\t\n\t}", "title": "" }, { "docid": "aa245af76ba27d89283722bc307ce2fa", "score": "0.64652795", "text": "@Override\n\tprotected void doPost(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "0ddb27702068003ef9c30746f3f32429", "score": "0.6464723", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n \n \n \n }", "title": "" }, { "docid": "dac34781d6c5dbddce97d08d1d3e7c99", "score": "0.6453584", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "dac34781d6c5dbddce97d08d1d3e7c99", "score": "0.6453584", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "73e028cde9ad8cd22c667ffd7e2f6da2", "score": "0.6439354", "text": "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n super.doPost(req, resp);\n }", "title": "" }, { "docid": "66960d9a20ac6b4074d2b0fefadf26bc", "score": "0.6438647", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\" POST method called\");\n\t\tgenerateResponse(response);\n\t}", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.6437031", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.6437031", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.6437031", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "01c30e9d2bc9e76b2b1acf23e7a4578e", "score": "0.64266497", "text": "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.6419544", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.641335", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.641335", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.641335", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.641335", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "dd22f7e92443148811ce86625a6d9a17", "score": "0.641335", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "bde78958d6fa9eaf632dee6c0df63f30", "score": "0.6411703", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "bde78958d6fa9eaf632dee6c0df63f30", "score": "0.6411703", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "300670ffb8a141ce6d2add69927b149a", "score": "0.6407812", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException { \r\n }", "title": "" }, { "docid": "7dbb1788945fa69e70f61af503d6958c", "score": "0.6403473", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}", "title": "" }, { "docid": "901b607d3bd07a91b0d79e66b3fd5181", "score": "0.6399753", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException \r\n\t{\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "655e3ffc3dd8f4f397d1118fb06dc4e7", "score": "0.6377223", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception\r\n\t{\r\n\t\tSystem.out.println(\"This is the post Handle method...\");\r\n\t}", "title": "" }, { "docid": "d7b1301db6315e9c0379e5145511c676", "score": "0.6372045", "text": "protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n \n \t\ttry {\n \t\t\tprocessRequest(POST, req, resp);\n \t\t} catch (Exception e) {\n \t\t\tLogManager.log(LogService.LOG_ERROR, \"Unable to process POST request.\", e);\n \t\t\trenderError(500, resp);\n \t\t\treturn;\n \t\t}\n \t}", "title": "" }, { "docid": "1c426199a5f8414952c5d385e1a5a1de", "score": "0.63648504", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response, \"ok\");\n }", "title": "" }, { "docid": "0f2a93635ea0057eb461d7e0479f81b5", "score": "0.63551366", "text": "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res)\n throws IOException, ServletException {\n doGetAndPost(req, res);\n }", "title": "" }, { "docid": "a950d891a2c04ca18159dd1753bb5012", "score": "0.6350476", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException { \n \n }", "title": "" }, { "docid": "06a6fe51caf771cf78b2687c918b41c8", "score": "0.63361853", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "fa947b3c7a8a3f51b67643caec1554ec", "score": "0.6319849", "text": "protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n try {\n Handler handler = Handler.getHandler(req);\n String userName = handler.getUserName();\n \n EntrySet c = handler.processPost(new InputStreamReader(req.getInputStream()));\n \n res.setStatus(HttpServletResponse.SC_CREATED); \n res.setContentType(\"application/xml; charset=utf-8\");\n String s = c.toString();\n Writer writer = res.getWriter();\n writer.write(s); \n writer.close(); \n } catch (HandlerException he) {\n res.sendError(he.getStatus(), he.getMessage());\n he.printStackTrace(res.getWriter());\n logger.error(he);\n }\n }", "title": "" }, { "docid": "6da1541b88148d77b604a5f43b8503cb", "score": "0.6299508", "text": "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String textValue = Jsoup.clean(request.getParameter(\"text-input\"), Whitelist.none());\n\n // Get timestamp of submission\n long timestamp = System.currentTimeMillis();\n\n // Store submission in datastore\n Datastore datastore = DatastoreOptions.getDefaultInstance().getService();\n KeyFactory keyFactory = datastore.newKeyFactory().setKind(\"PortfolioSubmission\");\n FullEntity messageEntity =\n Entity.newBuilder(keyFactory.newKey())\n .set(\"message\", textValue)\n .set(\"timestamp\", timestamp)\n .build();\n datastore.put(messageEntity);\n\n // Print the value so you can see it in the server logs.\n System.out.println(\"You submitted: \" + textValue);\n\n // Write the value to the response so the user can see it.\n response.getWriter().println(\"You submitted: \" + textValue);\n\n // Tells the client which URL to visit next\n // (NOTE: user will not be able to see printed response from \n // previous getWriter() call if this line is active)\n response.sendRedirect(\"index.html\");\n }", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6289261", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "0d70bf9da0a1771cd1ec30b3c966f179", "score": "0.6282511", "text": "@Override\n\tpublic void post() {\n\t\t\n\t}", "title": "" }, { "docid": "f6496cfc67fb78cccc7b80b037c4d04d", "score": "0.62731946", "text": "@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}", "title": "" }, { "docid": "906e86df609469fa1ecbfdbf536bc3b9", "score": "0.6242758", "text": "public static void postRequest(){\n\n switch (getPostId()){\n case \"login\" :\n System.out.println(\"Login has been triggerd\");\n Login.authenticateUser(getPostJsonData().trim());\n setJsonResponse(Login.getJsonResponse());\n setHTTPResponseCode(HTTP.OK);\n break;\n case \"addCalendar\" :\n Calendar.createCalendar(getPostJsonData().trim());\n setJsonResponse(Calendar.getJsonResponse());\n setHTTPResponseCode(HTTP.CREATED);\n break;\n case \"deleteCalendar\" :\n Calendar.deleteCalendar(getPostJsonData().trim());\n setJsonResponse(Calendar.getJsonResponse());\n setHTTPResponseCode(HTTP.OK);\n break;\n case \"updateCalendar\" :\n Calendar.updateCalendar(getPostJsonData().trim());\n setJsonResponse(Calendar.getJsonResponse());\n setHTTPResponseCode(HTTP.OK);\n break;\n case \"shareCalendar\" :\n Calendar.shareCalendar(getPostJsonData().trim());\n setJsonResponse(Calendar.getJsonResponse());\n setHTTPResponseCode(HTTP.OK);\n break;\n case \"addEvent\" :\n Events.createEvent(getPostJsonData().trim());\n setJsonResponse(Events.getJsonResponse());\n setHTTPResponseCode(HTTP.CREATED);\n break;\n case \"deleteEvent\" :\n Events.deleteEvent(getPostJsonData().trim());\n setJsonResponse(Events.getJsonResponse());\n setHTTPResponseCode(HTTP.OK);\n break;\n case \"addNote\" :\n Notes.createNote(getPostJsonData().trim());\n setJsonResponse(Notes.getJsonResponse());\n setHTTPResponseCode(HTTP.CREATED);\n break;\n case \"deleteNote\" :\n Notes.deleteNote(getPostJsonData().trim());\n setJsonResponse(Notes.getJsonResponse());\n setHTTPResponseCode(HTTP.OK);\n break;\n default:\n setJsonResponse(\"{\\\"response\\\": \\\"Error\\\"}\");\n setHTTPResponseCode(HTTP.BAD_REQUEST);\n System.out.println(\"\\tError in Post Request\");\n break;\n }\n\n }", "title": "" }, { "docid": "29bf212b566bb3e9023b76883d61fe89", "score": "0.62290055", "text": "@Override\r\n \tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n \t\t\tthrows ServletException, IOException {\r\n \t\tprocessRequest(request, response);\r\n \t}", "title": "" }, { "docid": "90c76d64b2c223e769e78a76ff6d9dc6", "score": "0.6227308", "text": "protected abstract void handleIncomingPost(Submission post);", "title": "" }, { "docid": "537a1a8c0b1673af69689c9f88e7dc3e", "score": "0.62196094", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "5c64354fb132340cb9ca5b49135122d7", "score": "0.6217897", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "5cfb215bd142edb2e4389d954c849e87", "score": "0.6206239", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\t ModelAndView modelAndView) throws Exception {\n\t\t\n\t\tSystem.out.println(\" post...... Handler adoptor \");\n\t}", "title": "" }, { "docid": "acf68a4ec9343e8df26de6730ef16f45", "score": "0.6204782", "text": "@Override\n public int getHttpType() {\n return Request.Method.POST;\n }", "title": "" }, { "docid": "bf7ec3ff3c07827b2dd2f930235f04e7", "score": "0.62002236", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException{\n\t\t//get data from request\n\t\tBufferedReader reader = request.getReader();\n\t\tStringBuffer jb = new StringBuffer();\n\t\tString line = null;\n\t\twhile((line = reader.readLine()) != null)\n\t\t\tjb.append(line);\n\t\t\n\t\t//parse request data and parse as json\n\t\tJSONObject json = new JSONObject(jb.toString());\n\t\tboolean success = orderApi.createOrder(json);\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\t\tresponse.setHeader(\"Access-Control-Allow-Origin\",\"*\");\n\t\tString responseJson;\n\t\tif(success) {\n\t\t\tresponseJson = new JSONObject().put(\"success\",\"true\").toString();\n\t\t}\n\t\telse {\n\t\t\tresponseJson = new JSONObject().put(\"success\",\"false\").toString();\n\t\t}\n\t\tresponse.getWriter().write(responseJson);\n\t}", "title": "" }, { "docid": "618afb3d795cf1b9eba883c12a700e5e", "score": "0.61896163", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HandleRequest(request, response);\n }", "title": "" }, { "docid": "d76fcd4904db7690b963cbc77d4e6599", "score": "0.6182406", "text": "@Override\n protected void doPost(\n HttpServletRequest request,\n HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "864dca365cec8337ceb74f1c21bf9c01", "score": "0.6168835", "text": "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "f9335d41379e33aa28ef0105db9b70c1", "score": "0.6166943", "text": "@Override\n protected void doPost (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n System.out.println (\"#$$#$#$#$#$##$#$$#$$##$$#$#$# doPost dipanggil \");\n processRequest (request, response);\n }", "title": "" }, { "docid": "50d2a5fca48add39e618569252fef5f4", "score": "0.61658317", "text": "protected void post(String path) throws Exception {\n request(path, \"POST\");\n }", "title": "" }, { "docid": "a355766f93bf35ae78b7a9851cc253ff", "score": "0.6159896", "text": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{\n\t\t\n\t}", "title": "" }, { "docid": "790a04de07f9d402f213d7498df41896", "score": "0.6158751", "text": "@Override\n default PooledHttpResponse post(String path, String content) {\n return execute(RequestHeaders.of(HttpMethod.POST, path), HttpData.ofUtf8(content));\n }", "title": "" }, { "docid": "ec25175d1102c025eb51f2164fd37f93", "score": "0.6154479", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n \n \n \n \n \n \n }", "title": "" }, { "docid": "503c1484acbd7b4babd0bdccd6d02bb5", "score": "0.61520994", "text": "protected void doPost(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\n\t\tservice(request, response);\n\t}", "title": "" }, { "docid": "0a3bf6a906c2d46fe7b8268431f30deb", "score": "0.6148684", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "title": "" }, { "docid": "0a3bf6a906c2d46fe7b8268431f30deb", "score": "0.6148684", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "title": "" }, { "docid": "b592f50486c364e2bee77fa8f3f19d10", "score": "0.6148066", "text": "@Override\n default PooledHttpResponse post(String path, byte[] content) {\n return execute(RequestHeaders.of(HttpMethod.POST, path), content);\n }", "title": "" }, { "docid": "2cbed6cadae1f00bc8fbeaedf9252dbc", "score": "0.6147714", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "title": "" }, { "docid": "866a43fe650b09c4e60e0620abb0250e", "score": "0.61451256", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processSubmit(request, response);\n }", "title": "" }, { "docid": "3d5d5d0fd2b8ddb254f4e681853878db", "score": "0.61427337", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "title": "" }, { "docid": "16a8284ea77d524e9e3b2773fd1d3ca6", "score": "0.61348385", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n // processRequest(request, response);\r\n }", "title": "" }, { "docid": "95485e8d7e79e44f6c11a46789418e2d", "score": "0.61308676", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "7fd0de40eba62dca0afb904efa8b7514", "score": "0.6127536", "text": "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\n\t\thandleRequest(req, resp);\n\t}", "title": "" }, { "docid": "c9bc21bc90e078f219ea59ac8e78cd99", "score": "0.61209446", "text": "@Override\n\tpublic void doPost(URL url, Map<String, String> headers, Map<String, Object> data) {\n\t\t\n\t}", "title": "" }, { "docid": "aca68b468b0e67eda44be4876678e985", "score": "0.6113491", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n doGet(request, response);\n }", "title": "" } ]
502392b73cf209118f9bca4788e21797
Gets preferred sort order from user settings
[ { "docid": "d87e58e0ac2c251c5a7a7cb4b9a4c053", "score": "0.76835704", "text": "static public String getPreferredSortOrder(Context c) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(c);\n return sp.getString(c.getString(R.string.pref_sort_key),\n c.getString(R.string.pref_default_sort_order_value));\n }", "title": "" } ]
[ { "docid": "523c12fbad36a1289dfc5682b6da2914", "score": "0.75176114", "text": "public int getSharedPreferenceSortOrder() {\n SharedPreferences prefs = getSharedPreferences(SORT_ORDER, MODE_PRIVATE);\n int restoredSortOrder = prefs.getInt(getString(R.string.sortOrderSharedPrefKey),\n POPULAR);\n if (restoredSortOrder != POPULAR) {\n int sortOrder = prefs.getInt\n (getString(R.string.sortOrderSharedPrefKey), POPULAR);\n //POPULAR is the default value if something fails.\n return sortOrder;\n } else return POPULAR;\n }", "title": "" }, { "docid": "82cb2f7b1f3f55a21ef49d6be123dea8", "score": "0.70722675", "text": "private String getSortOrderPath(){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity());\n return prefs.getString(getString(R.string.pref_sort_order_key), getString(R.string.pref_sort_order_default));\n }", "title": "" }, { "docid": "bc77d7d8615bbd170a9f93d86342ae05", "score": "0.65312314", "text": "private SortType getCurrentSortType() {\n\n //Default by popularity\n String sortStringVal = appPrefernces.getString(SORT_TYPE, SortType.SORT_POPULAR.toString());\n return SortType.valueOf(sortStringVal);\n }", "title": "" }, { "docid": "fad6a314529fd1e9b55d3f8ca9fefd18", "score": "0.6453757", "text": "String getSortCriteria();", "title": "" }, { "docid": "1d41617d84a200532e870c997cdbb55d", "score": "0.63444626", "text": "public String getAlternateSort() {\n return alternateSort;\n }", "title": "" }, { "docid": "51f037c19a2ffc9ea5b42e5390ee96f4", "score": "0.6299872", "text": "public String getSortOrder() {\n return sortOrder;\n }", "title": "" }, { "docid": "076e0a937522df8bdeb6bf496fc9b4af", "score": "0.6269235", "text": "public Object defaultSortOrdering(D2WContext context) {\n \tNSArray<String> keys = (NSArray) context.valueForKey(\"displayPropertyKeys\");\n \tif(keys.count() == 0) return NSArray.EmptyArray;\n \tString first = keys.objectAtIndex(0);\n \t\n return new NSArray(new Object[]{first, EOSortOrdering.CompareAscending.name()});\n }", "title": "" }, { "docid": "743916f7dfc24445d22a38ec98a3630f", "score": "0.62548184", "text": "public String getSortInLocale() {\n\treturn sortInLocaleValue;\n }", "title": "" }, { "docid": "0057ca23011a70c33f5bee999174d28a", "score": "0.6229545", "text": "int getSortType();", "title": "" }, { "docid": "0d217df9d785dfff783615bd66f59439", "score": "0.61712086", "text": "public final String getSortOrder() {\n return this.sortOrder;\n }", "title": "" }, { "docid": "80700d5cc8eae7c52fff59ef55bc44db", "score": "0.61440897", "text": "boolean[] getSortOrders();", "title": "" }, { "docid": "67f3df099dad968e3ae81e3bb531efff", "score": "0.61387897", "text": "int getSortValue();", "title": "" }, { "docid": "dc4eb303ec9adb15785a90fcf0591165", "score": "0.60792565", "text": "public void setSharedPreferenceSortOrder(int sortOrder) {\n SharedPreferences.Editor editor = getSharedPreferences(SORT_ORDER, MODE_PRIVATE).edit();\n editor.putInt(\"sortOrder\", sortOrder);\n editor.apply();\n }", "title": "" }, { "docid": "835495d96a5a0f4e5f9f843ee4a1da4c", "score": "0.60453004", "text": "proto.site.SiteProto.GameMenuEntry.GamesSorting getSort();", "title": "" }, { "docid": "b7d40657497779c2d7003b7cbc0453ff", "score": "0.60245574", "text": "Sort getSort();", "title": "" }, { "docid": "cbfa1c5797c1af33d8a48199b6132871", "score": "0.6005105", "text": "public static Sort getDefaultSort() {\n\t\treturn new Sort(new Sort.Order(Sort.Direction.DESC, ProductStateWarning.DEFAULT_STATE_WARNINGS_SORT_FIELD));\n\t}", "title": "" }, { "docid": "e227d12ca5fef7d57413fc7b8f2d47d2", "score": "0.59929156", "text": "public void setSortOrder(String tmp) {\n this.sortOrder = tmp;\n }", "title": "" }, { "docid": "c28d8412a956659fbf449b87a58dffc1", "score": "0.5971482", "text": "public Boolean getSort_order() {\n return sort_order;\n }", "title": "" }, { "docid": "0d9d998bfcd6c0d426aec2216df72570", "score": "0.59644526", "text": "@Override\n\tprotected Integer getDefaultOrder() {\n\t\treturn DEFAULT_ORDER;\n\t}", "title": "" }, { "docid": "52ea7d4427dbf44dd16409aade284e36", "score": "0.59533644", "text": "public boolean userPreferencesCanSpecifySorting() {\n\t\treturn !\"printerFriendly\".equals(d2wContext().valueForKey(\"subTask\"));\n\t}", "title": "" }, { "docid": "8cb9775c685c7d786d98ee440b73a6f5", "score": "0.5892253", "text": "public String sortOrder() {\n return this.sortOrder;\n }", "title": "" }, { "docid": "668d05b361e29fd3220541ddf2e6d79e", "score": "0.58867484", "text": "public final String sortOrder() {\n return this.sortOrder;\n }", "title": "" }, { "docid": "120691899b143c576422ec53c4ffcb86", "score": "0.5881238", "text": "public String getTopoSort() {\r\n\t\treturn topoSort;\r\n\t}", "title": "" }, { "docid": "86f5b414343bab8f92fcff3bdd859e0d", "score": "0.58800465", "text": "public int getOrder() {\n return chosenOrder;\n }", "title": "" }, { "docid": "39285b011ae5e9c7e56ea7d9480d19c7", "score": "0.5875245", "text": "public String getSort() {\r\n return sort;\r\n }", "title": "" }, { "docid": "78551fbad9c84677ddc6d14a9c5b6c1c", "score": "0.58408743", "text": "@Override\n public int getSortPriority() {\n return 0;\n }", "title": "" }, { "docid": "eda452e0211476c028cd7b8b26643d90", "score": "0.5830851", "text": "protected SortOrder getOverOrderBySort() {\n return overOrderBySort;\n }", "title": "" }, { "docid": "c680ac42095b9912ca2c2639c51ca9bf", "score": "0.5817197", "text": "public String getSort() {\n return sort;\n }", "title": "" }, { "docid": "a878b69670e6ac47376bce1ea40b6808", "score": "0.5806664", "text": "SortInfo getSortInfo();", "title": "" }, { "docid": "e3814f7fd29ed8ce2a1cffa4a7dfc78f", "score": "0.5782831", "text": "public int getSortMethod()\n {\n return sortChoice;\n }", "title": "" }, { "docid": "708edac1a113638e7df3279d74838393", "score": "0.57812953", "text": "public Integer getSortOrder() {\n\t\treturn sortOrder;\n\t}", "title": "" }, { "docid": "f14472621b6c6ed0d6dbcdb865834f56", "score": "0.57612556", "text": "protected Query.Sort[] getDefaultQuerySort() {\n\t\treturn getUniqueQuerySort();\n\t}", "title": "" }, { "docid": "374ec76a294d8858593a65b76bd5fee8", "score": "0.5758406", "text": "public void sortPriorities() {\r\n\t\tif (hunger < 0.7 && fatigue < 0.7 && age >= Animal.REPRODUCTION_AGE)\r\n\t\t\tpriority = Drive.REPRODUCTION;\r\n\t\telse if (hunger < 0.1 && fatigue < 0.1)\r\n\t\t\tpriority = Drive.ROAM;\r\n\t\telse if (fatigue > 0.7 && fatigue >= hunger)\r\n\t\t\tpriority = Drive.FATIGUE;\r\n\t\telse if (hunger > 0.7 && hunger > fatigue)\r\n\t\t\tpriority = Drive.HUNGER;\r\n\t\telse\r\n\t\t\tpriority = Drive.ROAM;\r\n\t}", "title": "" }, { "docid": "2d95eb0b2dcc1a5347e55594d33137cf", "score": "0.5748991", "text": "public int getSortValue() {\n return sort_;\n }", "title": "" }, { "docid": "b05a6b5d973e2dc13df655ba38992b3c", "score": "0.57488686", "text": "public String defaultSortKey() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c5e0ee8738e25af3d815a2582ea9344d", "score": "0.57415783", "text": "public String getOrderBy() {\n\t\tString cad = ORDER_BY_ASC;\n\t\tif(isAscending()){\n\t\t\tcad = ORDER_BY_DESC;\n\t\t}\n\t\treturn cad;\n\t}", "title": "" }, { "docid": "57d59bd4786761844a72d90806fef43b", "score": "0.5733249", "text": "public int getSortOrder() {\n\t\treturn sortOrder;\n\t}", "title": "" }, { "docid": "cb5a2547bbd35509532826958d3d1931", "score": "0.57314694", "text": "@Override\r\n public int getOrder() {\n return LOWEST_PRECEDENCE - 5;\r\n }", "title": "" }, { "docid": "d42acdc1cedbbd918cdd18a134c527d4", "score": "0.5708458", "text": "public int getSortValue() {\n return sort_;\n }", "title": "" }, { "docid": "978af9042a6717b61b059a19a9691aa4", "score": "0.56955004", "text": "java.lang.String getSortable();", "title": "" }, { "docid": "ea72d5f56aefbe58e2e921af634d35c2", "score": "0.569065", "text": "public int getSortComparisons();", "title": "" }, { "docid": "044e882fa55efd2b5851321061041321", "score": "0.5683253", "text": "private String[] getSort(){\n\t\tList<String> enums = new ArrayList<String>();\n\t\tenums.add(\"Last Name\");\n\t\tenums.add(\"First Name\");\n\t\tenums.add(\"ZIP descending\");\n\t\tenums.add(\"ZIP ascending\");\n\t\treturn enums.toArray(new String[0]);\n\t}", "title": "" }, { "docid": "31f71908c034faf3e83bc38d21229599", "score": "0.56823075", "text": "@Override\n public DataSetSortOptions getSortBy()\n {\n return sort;\n }", "title": "" }, { "docid": "a6b1325d5115c4739c727d2b975ab537", "score": "0.56775665", "text": "public Short getSort() {\n\t\treturn sort;\n\t}", "title": "" }, { "docid": "7ee0d368d1584232212dbd1957ca8386", "score": "0.56622165", "text": "public SortMode getSortMode(){\n\t\treturn this.mode;\n\t}", "title": "" }, { "docid": "4530d9da7be2fb6e6bca94ddd2a80375", "score": "0.56484234", "text": "public String getCDESortOrder() {\n return cdeSortOrder;\n }", "title": "" }, { "docid": "25056b18ebdb2a6aaf95bcedeaa2ddd8", "score": "0.5645796", "text": "@AutoEscape\n\tpublic String getDeveloperSort();", "title": "" }, { "docid": "31e8b545e1368f6d8ac2eb0e2e955dac", "score": "0.5630409", "text": "public Integer getDisplayOrder() {\n return displayOrder;\n }", "title": "" }, { "docid": "31e8b545e1368f6d8ac2eb0e2e955dac", "score": "0.5630409", "text": "public Integer getDisplayOrder() {\n return displayOrder;\n }", "title": "" }, { "docid": "78abbb1fd9a605fbd30b42aad4660e19", "score": "0.5625979", "text": "private Order generateOrder(DataSetPo.OrderByOption orderByOption)\r\n /* */ {\r\n /* 107 */ if (orderByOption == null)/* 108 */ return Order.desc(\"publicTime\");\r\n /* 109 */ if (orderByOption == DataSetPo.OrderByOption.NEWEST_DESC)/* 110 */ return Order.desc(\"publishedDate\");\r\n /* 111 */ if (orderByOption == DataSetPo.OrderByOption.OLDEST_ASC)/* 112 */ return Order.asc(\"publishedDate\");\r\n /* 113 */ if (orderByOption == DataSetPo.OrderByOption.HOT_DESC) {\r\n /* 114 */ return NativeSqlOrderUtils.desc(\"(data_out_count + download_count + view_count + data_srv_count)\");\r\n /* */ }\r\n /* 116 */ if (orderByOption == DataSetPo.OrderByOption.DATA_OUT_DESC)/* 117 */ return Order.desc(\"dataOutCount\");\r\n /* 118 */ if (orderByOption == DataSetPo.OrderByOption.VIEW_DESC) {\r\n /* 119 */ return Order.desc(\"viewCount\");\r\n /* */ }\r\n /* 121 */ return Order.desc(\"publicTime\");\r\n /* */ }", "title": "" }, { "docid": "ff4977aaf2377672e66da7a6aa258096", "score": "0.5618425", "text": "public int getSort() {\n\t\treturn sort;\n\t}", "title": "" }, { "docid": "89673b1004755c65855f7477c3f9707c", "score": "0.55897075", "text": "SortOrder[] requiredOrdering();", "title": "" }, { "docid": "7a3319107fb1597fede0ac6d743a8a0e", "score": "0.55860204", "text": "public static void setSortOrder(Context ctx, String sortOrderValue) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(ctx);\n SharedPreferences.Editor ed = sp.edit();\n ed.putString(ctx.getString(R.string.pref_sort_key), sortOrderValue);\n ed.commit();\n }", "title": "" }, { "docid": "b531d55f3228c9ee1a8905238be7c1ee", "score": "0.55828196", "text": "public String getOrderHint() {\n return this.orderHint;\n }", "title": "" }, { "docid": "f542c5f036352dc3dcace7df14427497", "score": "0.557158", "text": "public int getDisplayOrder() {\r\n return displayOrder;\r\n }", "title": "" }, { "docid": "7688d4b84b2ff91ee27736107cc6367e", "score": "0.5565173", "text": "@Override\n public DataSetSortOptions sortBy()\n {\n if (sort == null)\n {\n sort = new DataSetSortOptions();\n }\n return sort;\n }", "title": "" }, { "docid": "933f264eef8f1fc368f52ab02d3268c0", "score": "0.55632275", "text": "@Override\n\tpublic String getDefaultOrderByString() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4128ae9c1c9cd16c802ae6990f2715c4", "score": "0.5548506", "text": "private Comparator<AbstractMovie> getComparator() {\n\t\tint sortBy = Settings.getSettings().getSortBy();\n\t\tint sortDir = Settings.getSettings().getSortDirection();\n\n\t\tboolean descending = false;\n\t\tif(sortDir == CONST.SORT_DESCENDING)\n\t\t\tdescending = true;\n\n\t\t//sorting according to the correct parameter\n\t\tif(sortBy == CONST.SORT_BY_ID) {\n\t\t\tif(CONST.DEBUG_MODE)\n\t\t\t\tSystem.out.println(\"Sorting by ID, descending: \" + descending);\n\t\t\treturn new IdSorter(descending);\n\t\t} else if(sortBy == CONST.SORT_BY_TITLE) {\n\t\t\tif(CONST.DEBUG_MODE)\n\t\t\t\tSystem.out.println(\"Sorting by title, descending: \" + descending);\n\t\t\treturn new TitleSorter(descending);\n\t\t} else if(sortBy == CONST.SORT_BY_YEAR) {\n\t\t\tif(CONST.DEBUG_MODE)\n\t\t\t\tSystem.out.println(\"Sorting by year, descending: \" + descending);\n\t\t\treturn new YearSorter(descending);\n\t\t} else if(sortBy == CONST.SORT_BY_RATING) {\n\t\t\tif(CONST.DEBUG_MODE)\n\t\t\t\tSystem.out.println(\"Sorting by rating, descending: \" + descending);\n\t\t\treturn new RatingSorter(descending);\n\t\t} else if(sortBy == CONST.SORT_BY_FORMAT) {\n\t\t\tif(CONST.DEBUG_MODE)\n\t\t\t\tSystem.out.println(\"Sorting by format, descending: \" + descending);\n\t\t\treturn new FormatSorter(descending);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "664c6870c4ab873017d6078b011211ee", "score": "0.5541", "text": "public int getSortType() {\n return sortType_;\n }", "title": "" }, { "docid": "ff326d29e69657829eb621585ce1baaf", "score": "0.55118865", "text": "public static String sortQueryReturn() {\n return COL_TYPE + \" ASC, \" + COL_PTS + \" ASC\";\n }", "title": "" }, { "docid": "eecdd6a5e53c862a7f12aec3d33d8f53", "score": "0.5507323", "text": "public Integer getSort() {\n\t\treturn sort;\n\t}", "title": "" }, { "docid": "5aa9f8e1c603a68fe4f1e2f7dc0605d2", "score": "0.55032", "text": "public Integer getSort() {\r\n return sort;\r\n }", "title": "" }, { "docid": "a2bba74cb8fda0408dddc00846420203", "score": "0.5471852", "text": "public Integer getSort() {\n return sort;\n }", "title": "" }, { "docid": "a2bba74cb8fda0408dddc00846420203", "score": "0.5471852", "text": "public Integer getSort() {\n return sort;\n }", "title": "" }, { "docid": "a2bba74cb8fda0408dddc00846420203", "score": "0.5471852", "text": "public Integer getSort() {\n return sort;\n }", "title": "" }, { "docid": "d23034e4fb4bbca92432f5dabca18126", "score": "0.54498816", "text": "public int getSortType() {\n return sortType_;\n }", "title": "" }, { "docid": "39b4a66b8e31094414e44efaa21c6d7f", "score": "0.5449781", "text": "public E getPreferred(List<E> items) {\n\n Collections.sort(items, new Comparator<E>() {\n public int compare(E o1, E o2) {\n for (SelectionStrategy<?, E> stategy : preferences) {\n int result = stategy.compare(o1, o2);\n if (result != 0)\n return result;\n }\n return 0;\n }\n });\n\n return items.get(0);\n }", "title": "" }, { "docid": "afa3aef126f24df256af241f05058eb8", "score": "0.5445288", "text": "public void setDeveloperSort(String developerSort);", "title": "" }, { "docid": "8940127b02e5560f710d6106df327bf3", "score": "0.5443944", "text": "public void setSortAscending(String tmp) {\n this.sortAscending = DatabaseUtils.parseBoolean(tmp);\n }", "title": "" }, { "docid": "be011b3378d57bed857b6550eed10f69", "score": "0.5418187", "text": "public int[] getSorting() {\n return sortby;\n }", "title": "" }, { "docid": "11a8cb8a5529f2a23969028c48ef655d", "score": "0.5412264", "text": "public void applySortMethod() {\n\t\tif (sortingOption == null) {\n\t\t\tsortingOption = lastSortingOption;\n\t\t}\n\t\tif (sortingOption.equals(\"Sort Answer and Reply By Date\")) {\n\t\t\tCollections.sort(answerList, new AnswerDateComparator());\n\t\t}\n\t\tif (sortingOption.equals(\"Sort Answer By Upvote\")) {\n\t\t\tCollections.sort(answerList, new AnswerListUpvoteComparator());\n\t\t}\n\t\tif (sortingOption.equals(\"Sort Answer and Reply By Geolocation\")) {\n\t\t\tLocation.getLocationCoordinates();\n\t\t\tCollections.sort(answerList, new AnswerLocationComparator());\n\t\t}\n\t\tthis.lastSortingOption = sortingOption;\n\t\tsortingOption = null;\n\t\tnotifyDataSetChanged();\n\t}", "title": "" }, { "docid": "faf664fdc20ce5f18d0a8319a3092a44", "score": "0.54118586", "text": "public void sortByDefault() {\n\t\tsortMethod = \"Default\";\n\t\tsortList();\n\t}", "title": "" }, { "docid": "67fd50ea95302d8306a80a6ddac8bb3a", "score": "0.5405483", "text": "public void setOrder(String value) {\n\torderValue = normalize(value);\n\tif (LANGUAGE_FIRST.equalsIgnoreCase(orderValue)) {\n\t order = ClassicLocaleSelectorProvider.ORDER_LANGUAGE_FIRST;\n\t} else {\n\t order = ClassicLocaleSelectorProvider.ORDER_COUNTRY_FIRST;\n\t}\n }", "title": "" }, { "docid": "76ea5155f5bca0248264b25349178a71", "score": "0.5404652", "text": "void rememberSortAvoidancePath();", "title": "" }, { "docid": "995a59dc9647508aad2e9d75bca79d12", "score": "0.5403662", "text": "private void updateSortType(SortType sortType) {\n\n SharedPreferences.Editor editor = appPrefernces.edit();\n editor.putString(SORT_TYPE, sortType.toString());\n editor.commit();\n }", "title": "" }, { "docid": "bf87335b2cf7f8af83d7ebce31a3901b", "score": "0.5403249", "text": "public SortEnum getRequiredOptions() {\n return requiredOptions.getValue();\n }", "title": "" }, { "docid": "6192c0b22ce6ec1b0b2459a0a02149f3", "score": "0.5401808", "text": "public void sortByGoalsBreakTieByName() {\n sortByNamePreference();\n sortByGoalPreference();\n }", "title": "" }, { "docid": "cb83cdd609b3475556e3e75e00df45f0", "score": "0.5401463", "text": "protected void setSortParam() {\n\n\t\tString sortField =\n\t\t\tParamUtil.getString(_portletRequest, GSearchWebKeys.SORT_FIELD);\n\n\t\tString sortDirection =\n\t\t\tParamUtil.getString(_portletRequest, GSearchWebKeys.SORT_DIRECTION);\n\n\t\t// Always define primary and secondary sort in case of equal primary\n\t\t// values.\n\n\t\tSort sort1;\n\t\tSort sort2;\n\n\t\tboolean reverse;\n\n\t\tif (\"desc\".equals(sortDirection)) {\n\t\t\treverse = true;\n\t\t}\n\t\telse {\n\t\t\treverse = false;\n\t\t}\n\n\t\tString field;\n\n\t\tif (\"title\".equals(sortField)) {\n\t\t\tfield = \"localized_title_\" + _queryParams.getLocale().toString() +\n\t\t\t\t\"_sortable\";\n\n\t\t\tsort1 = new Sort(field, reverse);\n\t\t\tsort2 = new Sort(MODIFIED_SORT_FIELD, Sort.LONG_TYPE, reverse);\n\n\t\t}\n\t\telse if (\"modified\".equals(sortField)) {\n\n\t\t\tsort1 = new Sort(MODIFIED_SORT_FIELD, Sort.LONG_TYPE, reverse);\n\t\t\tsort2 = new Sort(null, Sort.SCORE_TYPE, reverse);\n\t\t}\n\t\telse {\n\t\t\tsort1 = new Sort(null, Sort.SCORE_TYPE, reverse);\n\t\t\tsort2 = new Sort(MODIFIED_SORT_FIELD, reverse);\n\t\t}\n\n\t\t_queryParams.setSorts(new Sort[] {\n\t\t\tsort1, sort2\n\t\t});\n\t}", "title": "" }, { "docid": "d0161edfd81cd24c32c519f8210cbaa1", "score": "0.5391869", "text": "public Boolean getSortAscending() {\n return \"asc\".equals(getBoolean(SORT));\n }", "title": "" }, { "docid": "9c560c2e5e331656629470137bd3b71b", "score": "0.5390289", "text": "public proto.site.SiteProto.GameMenuEntry.GamesSorting getSort() {\n proto.site.SiteProto.GameMenuEntry.GamesSorting result = proto.site.SiteProto.GameMenuEntry.GamesSorting.valueOf(sort_);\n return result == null ? proto.site.SiteProto.GameMenuEntry.GamesSorting.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "d86c37f8f7c35b4d8c07f69631d5f69f", "score": "0.5389737", "text": "public SortingOrder getSorting() {\n return _sorting;\n }", "title": "" }, { "docid": "d611c30562b067b932d63ec9be985718", "score": "0.5374595", "text": "public Integer getOrdering()\n {\n return ordering;\n }", "title": "" }, { "docid": "65a0faee881f4c71d40701b9a1796cb8", "score": "0.5370425", "text": "public proto.site.SiteProto.GameMenuEntry.GamesSorting getSort() {\n proto.site.SiteProto.GameMenuEntry.GamesSorting result = proto.site.SiteProto.GameMenuEntry.GamesSorting.valueOf(sort_);\n return result == null ? proto.site.SiteProto.GameMenuEntry.GamesSorting.UNRECOGNIZED : result;\n }", "title": "" }, { "docid": "e7addbc12ac446572d686fa482d49c6a", "score": "0.5367434", "text": "int getOrder();", "title": "" }, { "docid": "e7addbc12ac446572d686fa482d49c6a", "score": "0.5367434", "text": "int getOrder();", "title": "" }, { "docid": "c1dc0a0e5bb0d0a64f048266bbb78d1d", "score": "0.53447837", "text": "public void setTopoSort(String value) {\r\n\t\tthis.topoSort = value;\r\n\t}", "title": "" }, { "docid": "c3f96ea7e21d441ca5361a070f196b91", "score": "0.53440034", "text": "public List<ProductSummary> getPreferredProductsSorted() {\n\t\tMap<String, ProductSummary> preferred = getPreferredProducts();\n\n\t\t// Transform the preferred HashMap into a List so we can sort based on\n\t\t// preferred weight\n\t\tList<ProductSummary> productList = new ArrayList<ProductSummary>(preferred.values());\n\n\t\t// Sort the list, then iterate through it until we find the specified\n\t\t// property\n\t\tCollections.sort(productList, new MostPreferredFirstComparator());\n\t\treturn productList;\n\t}", "title": "" }, { "docid": "4af9b0a0a6de6e9b6860c0d57cf7d790", "score": "0.53419363", "text": "private String sortOrder() {\n return Video.Media.DATE_MODIFIED + \" DESC \";\n }", "title": "" }, { "docid": "3fb94c03ce60069a62cd6fd2e9451807", "score": "0.53416306", "text": "@Override\n public Sort getSort() {\n return Sort.by(\"totalPages\").ascending();\n }", "title": "" }, { "docid": "e4c2b96ed13230053eebcecea5c61e79", "score": "0.53400826", "text": "public void setSort_order(Boolean sort_order) {\n this.sort_order = sort_order;\n }", "title": "" }, { "docid": "5bdbf83a665acf332d9f14fc20ca17ea", "score": "0.53381836", "text": "AccessPath getBestSortAvoidancePath();", "title": "" }, { "docid": "5222970c0cea5a126ab893711657d586", "score": "0.5335294", "text": "public void sortList(String pref) {\r\n\r\n\t\tif (pref.equals(\"band\")) {\r\n\t\t\tCollections.sort(songs, new BandComparator());\r\n\t\t} else if (pref.equals(\"song\")) {\r\n\t\t\tCollections.sort(songs, new SongComparator());\r\n\t\t} else if (pref.equals(\"playtime\")) {\r\n\t\t\tCollections.sort(songs, new PlaytimeComparator());\r\n\t\t} else if (pref.equals(\"filecode\")) {\r\n\t\t\tCollections.sort(songs, new FilecodeComparator());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cd05d10751fc9dbe375ceacddbb589b6", "score": "0.5329792", "text": "public String getOrderBy() {\n return orderBy;\n }", "title": "" }, { "docid": "d13c94e542489eeeb540fb7f28e2065e", "score": "0.53278565", "text": "public void setCDESortOrder(final String value) {\n this.cdeSortOrder = value;\n }", "title": "" }, { "docid": "fabd375358b813fd2f241230072203a9", "score": "0.5327371", "text": "public boolean hasSortOrderConfigured() {\n return (this.getSortOrder() != null && !\"\".equals(this.getSortOrder()));\n }", "title": "" }, { "docid": "e966c46c6681a3c037da5961bfedff02", "score": "0.5322058", "text": "public Integer getOrdering() {\r\n return ordering;\r\n }", "title": "" }, { "docid": "ef55b25dc5f6b9a88c20a4b56f342227", "score": "0.53179526", "text": "@Column(name = \"SORT_ORDER\")\n\tpublic Long getSortOrder()\n\t{\n\t\treturn sortOrder;\n\t}", "title": "" }, { "docid": "a025841bd4f9f9639ffb3daa2ec331bd", "score": "0.53034914", "text": "int getRequestedOrderedByValue();", "title": "" }, { "docid": "e7accaebb3bd33dbc41ff4e4204cb1f7", "score": "0.5300632", "text": "private void setAscOrder() {\n if (model.isAsc()) return;\n model.setAsc(true);\n }", "title": "" }, { "docid": "53b0dd93300a401e526bae259368fabe", "score": "0.5287509", "text": "@Override\n public Sort getSort(String sortCriteria, String sortOrder) {\n if (checkValue(sortCriteria) && checkValue(sortOrder)) {\n return StudentsSortCriteria.valueOf(sortCriteria.toUpperCase()).getSort(sortOrder);\n } else {\n return StudentsSortCriteria.UNDEFINED.getSort(\"asc\");\n }\n }", "title": "" } ]
c48e165200f6e80ca60daf3837aaf300
Regresa todos los datos de la tabla FECET_PRORROGA_ORDEN cuydo valor del 'ID_ORDEN sea igual al que se le esta mandando y el estatus sea Firmada
[ { "docid": "6b488194c3cd47ab71dabeebe7b419d8", "score": "0.0", "text": "@Override\n public List<FecetProrrogaOrden> getHistoricoProrrogaPorOrden(final BigDecimal idOrden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SELECT_PRORROGAS_RELACIONES).append(\" INNER JOIN \").append(NAME_TABLE_PRORROGA_ORDEN)\n .append(SQL_FP);\n query.append(SQL_INNER_ID_PRORROGA_ORDEN);\n query.append(\" WHERE P.ID_ORDEN = ? \");\n query.append(\" ORDER BY P.ID_PRORROGA_ORDEN, FP.ID_FLUJO_PRORROGA_ORDEN \");\n\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenConRelacionesMapper(), idOrden);\n\n }", "title": "" } ]
[ { "docid": "69493ba3b6e1866bd8888ab83b683488", "score": "0.62327653", "text": "@Override\n public void validaProrrogaFirmante(final BigDecimal idProrroga, final String estatusValidada) {\n\n StringBuilder query = new StringBuilder();\n query.append(\"UPDATE \").append(getTableName()).append(\" SET ESTADO = \");\n query.append(estatusValidada).append(\" where ID_PRORROGA_ORDEN = \").append(idProrroga.toString());\n getJdbcTemplateBase().update(query.toString());\n\n }", "title": "" }, { "docid": "8ed884f3b064027dd40e2a055e2f3e91", "score": "0.61559623", "text": "@Override\n public List<FecetProrrogaOrden> getProrrogaPorOrdenFirmada(final BigDecimal idOrden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SELECT_PRORROGAS_RELACIONES);\n query.append(SQL_LEFT_JOIN).append(NAME_TABLE_PRORROGA_ORDEN);\n query.append(SQL_FP);\n query.append(SQL_INNER_ID_PRORROGA_ORDEN);\n query.append(\" WHERE P.ID_ORDEN = ? \\n\");\n query.append(\" AND FP.ID_ESTATUS = ? \\n\");\n query.append(SQL_ORDER_BY);\n logger.debug(\" [PRORROGAS DE LA ORDEN] \");\n logger.debug(\"SQL : {} \", query.toString());\n logger.debug(\"PARAMS : {} \", idOrden);\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenConRelacionesMapper(), idOrden,\n EstatusFlujoProrroga.RESOLUCION_PRORROGA_APROBADA_FIRMANTE.getBigIdEstatus());\n\n }", "title": "" }, { "docid": "523ffe19d368592ec6d5b8a07aaa46c6", "score": "0.6065783", "text": "@Override\n public List<FecetProrrogaOrden> getProrrogaPorOrdenEstatusPendienteAuditor(final BigDecimal idOrden) {\n\n StringBuilder query = new StringBuilder();\n query.append(SELECT_PRORROGAS_RELACIONES).append(SQL_LEFT_JOIN).append(NAME_TABLE_PRORROGA_ORDEN)\n .append(SQL_FP);\n query.append(SQL_INNER_ID_PRORROGA_ORDEN);\n query.append(\" WHERE P.ID_ORDEN = ? \");\n query.append(\" AND P.ID_ESTATUS = ? \");\n query.append(\" AND (FP.ID_FLUJO_PRORROGA_ORDEN IS NULL OR FP.ID_ESTATUS = ? ) \");\n query.append(SQL_ORDER_BY);\n\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenConRelacionesMapper(), idOrden,\n EstatusProrroga.PRORROGA_PENDIENTE_APROBACION.getBigIdEstatus(),\n EstatusFlujoProrroga.RESOLUCION_PRORROGA_RECHAZADA_FIRMANTE.getBigIdEstatus());\n }", "title": "" }, { "docid": "3a7b13292c2b2d0be5a9c325915dadfd", "score": "0.59018344", "text": "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "title": "" }, { "docid": "e4d17a3c4b06b6e5bec97a3993dae9d0", "score": "0.5827833", "text": "@Override\n public void validaProrrogaAuditor(final BigDecimal idProrrogaOrden, final String estatusAprobada) {\n\n StringBuilder query = new StringBuilder();\n query.append(\"UPDATE \").append(getTableName()).append(\" SET APROBADA = \");\n query.append(estatusAprobada).append(\" where ID_PRORROGA_ORDEN = \").append(idProrrogaOrden.toString());\n getJdbcTemplateBase().update(query.toString());\n\n }", "title": "" }, { "docid": "2dab29f0a28d48166661cd0f65d0b5ad", "score": "0.57343554", "text": "@Override\r\n public boolean ActualizarDatosCliente() {\r\n try {\r\n puente.executeUpdate(\"UPDATE `cliente` SET `Nombre` = '\"+Nombre+\"', `Apellido` = '\"+Apellido+\"', `Telefono` = '\"+Telefono+\"', `Fecha_Nacimiento` = '\"+Fecha_Nacimiento+\"', `Email` = '\"+Email+\"', `Direccion` = '\"+Direccion+\"', `Ciudad` = '\"+Ciudad+\"' WHERE `cliente`.`Cedula` = '\"+Cedula+\"';\");\r\n listo = true;\r\n } catch (Exception e) {\r\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, e);\r\n }\r\n return listo;\r\n }", "title": "" }, { "docid": "74e797461cf6fb2fb220438078dfd384", "score": "0.57207423", "text": "public void llenadoDeTablas() {\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Articulo\");\n modelo.addColumn(\"Fecha Ingreso\");\n modelo.addColumn(\"Nombre Articulo\");\n modelo.addColumn(\"Talla XS\");\n modelo.addColumn(\"Talla S\");\n modelo.addColumn(\"Talla M\");\n modelo.addColumn(\"Talla L\");\n modelo.addColumn(\"Talla XL\");\n modelo.addColumn(\"Color Articulo\");\n modelo.addColumn(\"Nombre Proveedor\");\n modelo.addColumn(\"Existencias\");\n\n RegistroArticuloDAO registroarcticuloDAO = new RegistroArticuloDAO();\n\n List<RegistroArticulo> registroarticulos = registroarcticuloDAO.select();\n TablaArticulo.setModel(modelo);\n String[] dato = new String[11];\n for (int i = 0; i < registroarticulos.size(); i++) {\n dato[0] = Integer.toString(registroarticulos.get(i).getPK_id_articulo());\n dato[1] = registroarticulos.get(i).getFecha_ingreso();\n dato[2] = registroarticulos.get(i).getNombre_articulo();\n dato[3] = registroarticulos.get(i).getTalla_articuloXS();\n dato[4] = registroarticulos.get(i).getTalla_articuloS();\n dato[5] = registroarticulos.get(i).getTalla_articuloM();\n dato[6] = registroarticulos.get(i).getTalla_articuloL();\n dato[7] = registroarticulos.get(i).getTalla_articuloXL();\n dato[8] = registroarticulos.get(i).getColor_articulo();\n dato[9] = registroarticulos.get(i).getNombre_proveedor();\n dato[10] = registroarticulos.get(i).getExistencia_articulo();\n\n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }\n }", "title": "" }, { "docid": "afe328848b07454af87c14bdf4eeda89", "score": "0.5688435", "text": "private void actualizarVentanaOperadores() throws SQLException {\n Sistema.getControladorVentanaOperadores().actualizarTablaOperadores(\"SELECT * FROM operador WHERE activo=TRUE ORDER BY id ASC;\");\n }", "title": "" }, { "docid": "8fba1fcaa7cd81d66c075bcf4f9134a1", "score": "0.56831944", "text": "public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }", "title": "" }, { "docid": "054535ee678f4e864c3b5bfc3490cd3e", "score": "0.5621944", "text": "private boolean puedeModificarAprRepOtroUsuario(String empresa, String local, String tipoDocumento, String codigoDocumento, String codigoVistoBueno, boolean checkSeleccionado, int fila, int columna){\n boolean blnRes=false;\n String strArlVisBueDbCodEmp=\"\", strArlVisBueDbCodLoc=\"\", strArlVisBueDbCodTipDoc=\"\", strArlVisBueDbCodDoc=\"\";\n String strArlVisBueDbCodVisBue=\"\", strArlVisBueDbEstVisBue=\"\", strArlVisBueDbCodUsr=\"\";\n String strTblVisBueDbCodEmp=empresa;\n String strTblVisBueDbCodLoc=local;\n String strTblVisBueDbCodTipDoc=tipoDocumento;\n String strTblVisBueDbCodDoc=codigoDocumento;\n String strTblVisBueDbCodVisBue=codigoVistoBueno;\n boolean blnChkSel=checkSeleccionado;\n int intFil=fila;\n int intCol=columna;\n int w=0;\n //System.out.println(\"puedeModificarAprRepOtroUsuario: \" + arlDatCodVisBueDB.toString());\n try{\n for(int k=0; k<arlDatCodVisBueDB.size(); k++){\n w=0;\n strArlVisBueDbCodEmp=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_EMP_DB);\n strArlVisBueDbCodLoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_LOC_DB);\n strArlVisBueDbCodTipDoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_TIP_DOC_DB);\n strArlVisBueDbCodDoc=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_DOC_DB);\n strArlVisBueDbCodVisBue=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_VIS_BUE_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_VIS_BUE_DB);\n strArlVisBueDbEstVisBue=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_EST_VIS_BUE_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_EST_VIS_BUE_DB);\n strArlVisBueDbCodUsr=objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_USR_DB)==null?\"\":objUti.getStringValueAt(arlDatCodVisBueDB, k, INT_ARL_VIS_BUE_DB_COD_USR_DB);\n\n if(strTblVisBueDbCodEmp.equals(strArlVisBueDbCodEmp)){\n if(strTblVisBueDbCodLoc.equals(strArlVisBueDbCodLoc)){\n if(strTblVisBueDbCodTipDoc.equals(strArlVisBueDbCodTipDoc)){\n if(strTblVisBueDbCodDoc.equals(strArlVisBueDbCodDoc)){\n if(strArlVisBueDbCodVisBue.equals(strTblVisBueDbCodVisBue)){\n if( (strArlVisBueDbEstVisBue.equals(\"A\")) || (strArlVisBueDbEstVisBue.equals(\"D\")) ){\n if(! strArlVisBueDbCodUsr.equals(\"\"+objParSis.getCodigoUsuario())){\n objTblMod.setChecked(blnChkSel, intFil, intCol);\n mostrarMsgInf(\"<HTML>El visto bueno que intenta modificar ya fue Aprobado/Reprobado por otro usuario.<BR>El otro usuario debe reversar para que ud. pueda realizar la Aprobación/Reprobación,<BR> o dicho usuario deberá modificarlo. </HTML>\");\n blnRes=true;\n break;\n }\n }\n\n }\n }\n }\n }\n }\n }\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }", "title": "" }, { "docid": "7edb4f5e9fae509df1ce462355c5e125", "score": "0.5595703", "text": "public void recargar(ArrayList<EntidadBE> proveedores){\n DefaultTableModel modelo=(DefaultTableModel) dgvProveedor.getModel();\n for(int i=modelo.getRowCount()-1; i>=0; i--){\n modelo.removeRow(i);\n }\n\n dgvProveedor.clearSelection();\n\n for(int i=0;i<proveedores.size();i++){\n modelo.addRow(new Object[4]);\n dgvProveedor.setValueAt(proveedores.get(i).getIdEntidad(),i,0 );\n dgvProveedor.setValueAt(proveedores.get(i).getRazonSocial(),i,1 );\n\n }\n }", "title": "" }, { "docid": "6d295286a394e7de63b916e5ec108972", "score": "0.55935234", "text": "public void reabrirContrato() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se o contrato já estpa aberto\n System.err.println(\"O contrado desse hospede já encontra-se aberto\");\n\n } else {//caso o contrato encontre-se fechado\n hospedesCadastrados.get(i).getContrato().setSituacao(true);\n System.err.println(\"Contrato reaberto, agora voce pode reusufruir de nossos servicos!\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "2470b50f5311ff6e314aea1aa32bae76", "score": "0.55856675", "text": "private void dardebajaResponsables (Long oidPeriodo, int indUA) throws MareException {\n UtilidadesLog.info(\"DAOZON.dardebajaResponsables (Long oidPeriodo, int indUA): Entrada\");\n\n StringBuffer consulta = new StringBuffer();\n Vector parametros = new Vector();\n\n if(indUA == 1) { //para SGV\n consulta.append(\" UPDATE ZON_HISTO_GEREN \"); \n consulta.append(\" SET\t FEC_HAST = ? \"); \n consulta.append(\" WHERE OID_HIST_GERE IN \"); \n consulta.append(\" \t\t(SELECT OID_HIST_GERE FROM ZON_HISTO_GEREN \");\n consulta.append(\" \t\tWHERE (PAIS_OID_PAIS,MARC_OID_MARC, CANA_OID_CANA, UA) \");\n consulta.append(\" \t\tIN (SELECT ZON_SUB_GEREN_VENTA.PAIS_OID_PAIS, \");\n consulta.append(\" \t\t\t \t ZON_SUB_GEREN_VENTA.MARC_OID_MARC, \");\n consulta.append(\" \t\t \t ZON_SUB_GEREN_VENTA.CANA_OID_CANA, \"); \n consulta.append(\" \t\t\t ZON_SUB_GEREN_VENTA.COD_SUBG_VENT \");\n consulta.append(\" \t\t\tFROM ZON_SUB_GEREN_VENTA, MAE_CLIEN \");\n consulta.append(\" \t\t\tWHERE ZON_SUB_GEREN_VENTA.PERD_OID_PERI_FINA = ?) \");\n consulta.append(\" \t\tAND FEC_HAST IS NULL) \");\n } else if(indUA == 2) { //para Region\n consulta.append(\" UPDATE ZON_HISTO_GEREN \"); \n consulta.append(\" SET\t FEC_HAST = ? \"); \n consulta.append(\" WHERE OID_HIST_GERE IN \"); \n consulta.append(\" \t\t(SELECT OID_HIST_GERE FROM ZON_HISTO_GEREN \");\n consulta.append(\" \t\tWHERE (PAIS_OID_PAIS,MARC_OID_MARC, CANA_OID_CANA, UA) \");\n consulta.append(\" \t\tIN (SELECT ZON_REGIO.PAIS_OID_PAIS, \");\n consulta.append(\" \t\t \t ZON_REGIO.MARC_OID_MARC, \");\n consulta.append(\" \t\t \t ZON_REGIO.CANA_OID_CANA, \");\n consulta.append(\" \t\t \t ZON_SUB_GEREN_VENTA.COD_SUBG_VENT || ZON_REGIO.COD_REGI \");\n consulta.append(\" \t\t FROM ZON_SUB_GEREN_VENTA, ZON_REGIO \");\n consulta.append(\" \t \tWHERE ZON_REGIO.ZSGV_OID_SUBG_VENT = ZON_SUB_GEREN_VENTA.OID_SUBG_VENT \"); \n consulta.append(\" \t \t AND ZON_REGIO.PERD_OID_PERI_FINA = ?) \");\n consulta.append(\" \t\tAND FEC_HAST IS NULL) \"); \n } else if(indUA == 3) { //para Zona\n consulta.append(\" UPDATE ZON_HISTO_GEREN \"); \n consulta.append(\" SET\t FEC_HAST = ? \"); \n consulta.append(\" WHERE OID_HIST_GERE IN \"); \n consulta.append(\" \t\t(SELECT OID_HIST_GERE FROM ZON_HISTO_GEREN \");\n consulta.append(\" \t\tWHERE (PAIS_OID_PAIS,MARC_OID_MARC, CANA_OID_CANA, UA) \");\n consulta.append(\" \t\tIN (SELECT ZON_ZONA.PAIS_OID_PAIS, \");\n consulta.append(\" \t\t\t\t\t ZON_ZONA.MARC_OID_MARC, \");\n consulta.append(\" \t\t\t\t\t ZON_ZONA.CANA_OID_CANA, \");\n consulta.append(\" \t\t\t ZON_SUB_GEREN_VENTA.COD_SUBG_VENT \");\n consulta.append(\" \t\t\t || ZON_REGIO.COD_REGI \");\n consulta.append(\" \t\t\t || ZON_ZONA.COD_ZONA \"); \n consulta.append(\" \t\t\tFROM ZON_SUB_GEREN_VENTA, ZON_REGIO, ZON_ZONA \");\n consulta.append(\" \t\t\tWHERE ZON_REGIO.ZSGV_OID_SUBG_VENT = ZON_SUB_GEREN_VENTA.OID_SUBG_VENT \");\n consulta.append(\" \t\t\t AND ZON_ZONA.ZORG_OID_REGI = ZON_REGIO.OID_REGI \");\n consulta.append(\" \t\t\t AND ZON_ZONA.PERD_OID_PERI_FINA = ?) \"); \n consulta.append(\" \t\tAND FEC_HAST IS NULL) \"); \n } else if(indUA == 4) { //para Seccion\n consulta.append(\" UPDATE ZON_HISTO_GEREN \"); \n consulta.append(\" SET\t FEC_HAST = ? \"); \n consulta.append(\" WHERE OID_HIST_GERE IN \"); \n consulta.append(\" \t\t(SELECT OID_HIST_GERE FROM ZON_HISTO_GEREN \");\n consulta.append(\" \t\tWHERE (PAIS_OID_PAIS,MARC_OID_MARC, CANA_OID_CANA, UA) \");\n consulta.append(\" \t\tIN (SELECT ZON_ZONA.PAIS_OID_PAIS, \");\n consulta.append(\" \t\t\t\t\t ZON_ZONA.MARC_OID_MARC, \");\n consulta.append(\" \t\t\t\t\t ZON_ZONA.CANA_OID_CANA, \");\n consulta.append(\" \t\t\t ZON_SUB_GEREN_VENTA.COD_SUBG_VENT \");\n consulta.append(\" \t\t\t || ZON_REGIO.COD_REGI \");\n consulta.append(\" \t\t\t || ZON_ZONA.COD_ZONA \"); \n consulta.append(\" || ZON_SECCI.COD_SECC \");\n consulta.append(\" \t\t\tFROM ZON_SUB_GEREN_VENTA, ZON_REGIO, ZON_ZONA, ZON_SECCI \"); \n consulta.append(\" \t\t\tWHERE ZON_REGIO.ZSGV_OID_SUBG_VENT = ZON_SUB_GEREN_VENTA.OID_SUBG_VENT \");\n consulta.append(\" \t\t\t AND ZON_ZONA.ZORG_OID_REGI = ZON_REGIO.OID_REGI \");\n consulta.append(\" AND ZON_SECCI.ZZON_OID_ZONA = ZON_ZONA.OID_ZONA \"); \n consulta.append(\" \t\t\t AND ZON_SECCI.PERD_OID_PERI_FINA = ?) \"); \n consulta.append(\" \t\tAND FEC_HAST IS NULL) \"); \n }\n\n // Parametros de la consulta\n parametros.add(new Timestamp(new Date(System.currentTimeMillis()).getTime())); \n parametros.add(oidPeriodo);\n\n // Se ejecuta la consulta \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n\n try {\n bs.dbService.executePreparedUpdate(consulta.toString(), parametros);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n UtilidadesLog.info(\"DAOZON.dardebajaResponsables (Long oidPeriodo, int indUA): Salida\");\n }", "title": "" }, { "docid": "789bec22cc2e1b63118feb2b1371879a", "score": "0.5562834", "text": "public List<Requisicion> getRequisicionesNoAutorizadas() throws Exception{\n \n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null;\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n //Crear sentencia SQL y Statement\n String miSql = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento where r.AUTORIZADO = 1\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSql);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n \n Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n requisicion.add(temporal);\n }\n \n return requisicion;\n \n }", "title": "" }, { "docid": "864f8818c024eb91f51684acd3ef1b16", "score": "0.55620235", "text": "public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "21a7d8e8f83f49d9028331ab5d93fcbc", "score": "0.55186063", "text": "public void atualizarTabelaFunc() throws SQLException {\n DefaultTableModel model = (DefaultTableModel) tabelaFunc.getModel();\n model.setNumRows(0);\n dadosDAO dados = new dadosDAO();\n String pesquisa = funcField.getText().toUpperCase();\n for (funcionario func : dados.readFuncionarios()){\n if (!funcField.getText().equals(\"\")){\n if (nomeBtnFunc.isSelected()){\n if (func.getNome().contains(pesquisa)){\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n } else if (cpfBtnFunc.isSelected()){\n if (funcField.getText().equals(func.getCpf())) {\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n } else {\n if (funcField.getText().equals(String.valueOf(func.getId_func()))){\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n }\n } else {\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n }\n }", "title": "" }, { "docid": "209e0df1d48b17fb534cd76f8eb23c06", "score": "0.5512429", "text": "public void preencherTabelaResultado() {\n\t\tArrayList<Cliente> lista = Fachada.getInstance().pesquisarCliente(txtNome.getText());\n\t\tDefaultTableModel modelo = (DefaultTableModel) tabelaResultado.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\n\t\tfor (Cliente c : lista) {\n\t\t\tlinha[0] = c.getIdCliente();\n\t\t\tlinha[1] = c.getNome();\n\t\t\tlinha[2] = c.getTelefone().toString();\n\t\t\tif (c.isAptoAEmprestimos())\n\t\t\t\tlinha[3] = \"Apto\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"A devolver\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "57def67395680d7b7c18f2273bd39e60", "score": "0.54932857", "text": "public void verificarRastro() {\n verificarRastroFormulaProceso();\n index = -1;\n }", "title": "" }, { "docid": "d1b21d49bfe90dba95696d0974b8d41d", "score": "0.5487936", "text": "@Override\n public void actualizarPropiedad(Propiedad nuevaPropiedad) {\n int numFinca = nuevaPropiedad.getNumFinca();\n String modalidad = nuevaPropiedad.getModalidad();\n double area = nuevaPropiedad.getAreaTerreno();\n double metro = nuevaPropiedad.getValorMetroCuadrado();\n double fiscal = nuevaPropiedad.getValorFiscal();\n String provincia = nuevaPropiedad.getProvincia();\n String canton = nuevaPropiedad.getCanton();\n String distrito = nuevaPropiedad.getDistrito();\n String dirExacta = nuevaPropiedad.getDirExacta();\n String estado = nuevaPropiedad.getEstado();\n String tipo = nuevaPropiedad.getTipo();\n System.out.println(nuevaPropiedad.getFotografias().size());\n double precio = nuevaPropiedad.getPrecio();\n try {\n bdPropiedad.manipulationQuery(\"UPDATE PROPIEDAD SET MODALIDAD = '\" + modalidad + \"', AREA_TERRENO \"\n + \"= \" + area + \", VALOR_METRO = \" + metro + \", VALOR_FISCAL = \"+ fiscal + \", PROVINCIA = '\" \n + provincia + \"', CANTON = '\" + canton + \"' , DISTRITO = '\" + distrito + \"', DIREXACTA = '\" \n + dirExacta + \"', ESTADO = '\" + estado + \"', PRECIO = \" + precio + \" WHERE ID_PROPIEDAD = \" \n + numFinca);\n bdPropiedad.manipulationQuery(\"DELETE FROM FOTOGRAFIA_PROPIEDAD WHERE ID_PROPIEDAD = \" + numFinca);\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "3896183485ea1ab449d80f79e4d59829", "score": "0.54747796", "text": "public void ActaulizarTabla() {\n int id = Integer.parseInt(txtId.getText());\n int unidad = Integer.parseInt(txtUsuario.getText());\n String placa = txtCorreo.getText();\n\n try {\n PreparedStatement ps = null;\n ResultSet rs = null;\n Conexion obj_con = new Conexion();\n Connection con = obj_con.getConexion();\n String SQL = \"UPDATE `carros` SET `nro_unidad`=?,`placa`=?,`color`=?,`id_marca`=?,`id_modelo`=?,`cant_puestos`=?,`ano_unidad`=?,`estatus_table`=?,`id_estado_actual`=? WHERE `id_unidad`=?\";\n ps = con.prepareStatement(SQL);\n\n ps.setInt(1, unidad);////////////////////////////YA///////////////////////\n ps.setString(2, placa);\n ps.setInt(10, id);\n System.out.println(ps);\n ps.execute();\n JOptionPane.showMessageDialog(null, \"Registro Modificado Exitosamente\");\n //limpiar();\n this.dispose();\n tabla.setVisible(true);\n //tabla.cargarDatos(); \n \n int Fila = tabla.jTableVehiculos.getSelectedRow();\n /*obtener el nro de fila sellecioando*/\n System.out.println(Fila);\n Object[] filas = new Object[7]; //OBJETO PARA CREAR FILA NUEVA GUARDADA EN LA TABLA\n filas[0] = txtUsuario.getText();\n filas[1] = txtCorreo.getText();\n \n modelTable.addRow(filas);\n tabla.jTableVehiculos.setModel(modelTable);\n \n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error al guardar registro\");\n System.err.println(e.toString());\n } \n }", "title": "" }, { "docid": "b2440ef418c668017e93a27bfcfc7067", "score": "0.5416525", "text": "public void listar_mais_pedidos(String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_MaisPedidos.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getMaisPedidos(tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getQtd_pedido()});\n }\n \n \n }", "title": "" }, { "docid": "d64d2ebac221b3bb464bb104c5b97451", "score": "0.5415479", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tregistros=(ResultSet) data.getQuery(\"Select * from TipoPuesto\");\n\t\t\t\tboolean flagRepetido=false;\n\t\t\t\tString puesto=txtNombre.getText();\n\t\t\t\tString sueldoP=txtSueldo.getText();\n\t\t\t\tdouble sueldo=Double.parseDouble(sueldoP);\n\t\t\t\tif(!sueldoP.matches(\"[0-9]+\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(btnAgregar,\"La cantidad de sueldo es incorrecta\");\n\t\t\t\t}else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile(registros.next()) {\n\t\t\t\t\t\t\tString prueba=registros.getString(\"puesto\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(puesto.equals(prueba)) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflagRepetido=true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tif(txtNombre.getText().isEmpty()!=true && txtSueldo.getText().isEmpty()!=true) {\n\t\t\t\t\t\tif(flagRepetido==false ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdata.setQuery(\"INSERT INTO TipoPuesto (idTipoPuesto, puesto, sueldo) VALUES (NULL,'\"+puesto+\"','\"+sueldo+\"');\");\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(btnAgregar,\"Registro de Puesto exitoso\");\n\t\t\t\t\t\t\tcbEdPuesto.addItem(puesto);\n\t\t\t\t\t\t\tcbElPuesto.addItem(puesto);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(btnAgregar,\"Llene los campos correctamente\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\tif(flagRepetido==true) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(btnAgregar,\"Este puesto ya está registrado\");}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(btnAgregar,\"Llene los campos correctamente\");\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}", "title": "" }, { "docid": "5ba93b910498f47b8c8322c71ee8f03b", "score": "0.54046375", "text": "@Override\n public List<FecetProrrogaOrden> findWhereIdEstatusIdOrdenEquals(final BigDecimal estado, BigDecimal idOrden) {\n StringBuilder query = new StringBuilder();\n query.append(SQL_SELECT).append(SQL_ALL_COLUMNS).append(SQL_FROM).append(getTableName());\n query.append(\" WHERE ID_ORDEN = ? AND ID_ESTATUS = ? \");\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper(), idOrden, estado);\n }", "title": "" }, { "docid": "1ccbd9c6469a54fc34c28a5487100f94", "score": "0.53894174", "text": "public boolean existeorden(String ordenservicio){\n boolean existe=false;\n \n conex con=new conex(); \n ResultSet rsR = null; \n String myQuery = \"select tipocorte from to_estetica where (estatus='ABIERTA' or estatus='CERRADA') and tipocorte='\"+ordenservicio+\"'\";\n System.out.println(\"\"+myQuery);\n try {\n Statement st = con.getConnection().createStatement();\n rsR = st.executeQuery(myQuery);\n while(rsR.next()) { \n existe=true; \n } \n rsR.close(); \n st.close();\n con.desconectar();\n } catch (SQLException ex) { \n existe=true; \n JOptionPane.showMessageDialog(null, \"Error al obtener los datos: \"+ex, \"Error\", JOptionPane.ERROR_MESSAGE);\n } \n \n return existe;\n }", "title": "" }, { "docid": "2836ac63eb7b8ee8d90ba1dbe28e33a7", "score": "0.53824204", "text": "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }", "title": "" }, { "docid": "4f9b62dc3194549e00485f240b8807b8", "score": "0.53803444", "text": "public static boolean modif(Forma form, String tipo, String operador) {\n if(operador.equals(\"resta\")){\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n switch (tipo) {\n case \"alumnoMaterial\":\n case \"profeMaterial\":\n tabla = \"material\";\n break;\n case \"profeEquipo\":\n case \"alumnoEquipo\":\n tabla = \"equipo\";\n break;\n case \"profeConsumible\":\n tabla = \"consumible\";\n break;\n case \"profeReactivo\":\n tabla = \"reactivo\";\n break;\n default:\n break;\n }\n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp - iCant;\n //si no hay, regreso falso para fallar\n if(iDisp < 0) {\n return false;\n } else {\n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n } else {\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp + iCant;\n //si no hay, regreso falso para fallar\n \n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n }", "title": "" }, { "docid": "1a21348c087ba02361ab2e5f82fc5ff1", "score": "0.5368356", "text": "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "title": "" }, { "docid": "b88f189b31ec25d00923eb59e91c0449", "score": "0.53518176", "text": "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 }", "title": "" }, { "docid": "9ec9a87a6459cc4609c7c38b0b665685", "score": "0.5333985", "text": "public void cargaDatosInicialesSoloParaModificacionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n selectAuxiliarParaAsignacionModificacion = cntEntidadesService.listaDeAuxiliaresPorEntidad(selectedEntidad);\n //Obtien Ajuste Fin\n\n //Activa formulario para automatico modifica \n switch (selectedEntidad.getNivel()) {\n case 1:\n swParAutomatico = true;\n numeroEspaciador = 200;\n break;\n case 2:\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciador = 200;\n break;\n case 3:\n swParAutomatico = false;\n numeroEspaciador = 1;\n break;\n default:\n break;\n }\n\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n }", "title": "" }, { "docid": "2fee51d05825794dd632f73511e6f713", "score": "0.5333178", "text": "private boolean validarProcesoFianciacionIncumplido(String numeroObligacion) {\n\n boolean proceso = false;\n\n StringBuilder jpql = new StringBuilder();\n jpql.append(\"SELECT o FROM ObligacionFinanciacion o\");\n jpql.append(\" JOIN o.financiacion f\");\n jpql.append(\" JOIN f.proceso p\");\n jpql.append(\" WHERE o.numeroObligacion = :numeroObligacion\");\n jpql.append(\" AND p.estadoProceso.id = :estadoProceso\");\n\n Query query = em.createQuery(jpql.toString());\n query.setParameter(\"numeroObligacion\", numeroObligacion);\n query.setParameter(\"estadoProceso\", EnumEstadoProceso.ECUADOR_FINANCIACION_INCUMPLIDO.getId());\n\n @SuppressWarnings(\"unchecked\")\n List<ObligacionFinanciacion> procesos = query.getResultList();\n if (procesos != null && !procesos.isEmpty()) {\n proceso = true;\n }\n return proceso;\n }", "title": "" }, { "docid": "e0f28d9b2cccda3c7508578e47c2188e", "score": "0.5305514", "text": "public void CargarProveedores() {\n DefaultTableModel modelo = (DefaultTableModel) vista.Proveedores.jTable1.getModel();\n modelo.setRowCount(0);\n res = Conexion.Consulta(\"select * From proveedores\");\n try {\n while (res.next()) {\n Vector v = new Vector();\n v.add(res.getInt(1));\n v.add(res.getString(2));\n v.add(res.getString(3));\n v.add(res.getString(4));\n modelo.addRow(v);\n vista.Proveedores.jTable1.setModel(modelo);\n }\n } catch (SQLException e) {\n }\n }", "title": "" }, { "docid": "5af1e1531682c362da5a765a623d37ab", "score": "0.5305355", "text": "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 }", "title": "" }, { "docid": "bb0674e559a04f360a81491370a7a2f3", "score": "0.53010917", "text": "public void popularTabela() {\n\n try {\n\n RelatorioRN relatorioRN = new RelatorioRN();\n\n ArrayList<PedidoVO> pedidos = relatorioRN.buscarPedidos();\n\n javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) tRelatorio.getModel();\n dtm.fireTableDataChanged();\n dtm.setRowCount(0);\n\n for (PedidoVO pedidoVO : pedidos) {\n\n String[] linha = {\"\" + pedidoVO.getIdpedido(), \"\" + pedidoVO.getData(), \"\" + pedidoVO.getCliente(), \"\" + pedidoVO.getValor()};\n dtm.addRow(linha);\n }\n\n } catch (SQLException sqle) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + sqle.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n \n } catch (Exception e) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + e.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n }\n }", "title": "" }, { "docid": "ba250b039d053a68ee637dff9a4f4493", "score": "0.5275414", "text": "private void revisaOtorgaPermisos(ResultSet rs) {\n try {\n if(rs.last()){\n if((Integer.parseInt(rs.getString(\"otorgaPermisosConfig\"))==(0))){\n desHabilita(jcbConf, hijos.get(0));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosSistema\"))==(0))){\n desHabilita(jcbSistema,hijos.get(1));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosModulos\"))==(0))){\n desHabilita(jcbModulos, hijos.get(2));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosCompras\"))==(0))){\n desHabilita(jcbCompras,hijos.get(3));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosProvee\"))==(0))){\n desHabilita(jcbProve, hijos.get(4));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosPrevio\"))==(0))){\n desHabilita(jcbPrevioCompra, hijos.get(5));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosInventario\"))==(0))){\n desHabilita(jcbInventario, hijos.get(6));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosClientes\"))==(0))){\n desHabilita(jcbClientes, hijos.get(7));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosVentas\"))==(0))){\n desHabilita(jcbVentas, hijos.get(8));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosCotiza\"))==(0))){\n desHabilita(jcbCotizaciones, hijos.get(9));\n }\n }\n } catch (SQLException ex) {\n Logger.getLogger(PermsEstacs.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "b9f1904d49149499ac403849e5111460", "score": "0.52744114", "text": "public boolean actualizarLibroDeMiLista(int valoracionPersona, int recomendacion, int leido) throws SQLException {\r\n String inserccion = \"UPDATE registra_libro SET valoracion = \" + valoracionPersona + \" , recomendacion = \" + recomendacion + \",visualizado=\" + leido + \" WHERE titulo_libro LIKE '\"\r\n + titulo + \"' AND nombre_usuario LIKE '\" + usuario + \"'\";\r\n boolean resul = insertarOActualizarCampos(inserccion);\r\n return resul;\r\n }", "title": "" }, { "docid": "af15a1ec6537f04f069c7a4d1edce1de", "score": "0.5255908", "text": "@Override\n public List<FecetProrrogaOrden> getProrrogaPorOrden(final BigDecimal idOrden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SELECT_PRORROGAS_RELACIONES).append(SQL_LEFT_JOIN).append(NAME_TABLE_PRORROGA_ORDEN)\n .append(SQL_FP);\n query.append(SQL_INNER_ID_PRORROGA_ORDEN).append(\" WHERE P.ID_ORDEN = ? \");\n query.append(SQL_ORDER_BY);\n\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenConRelacionesMapper(), idOrden);\n\n }", "title": "" }, { "docid": "ca4262dc64fec4c9a07345482f5001e6", "score": "0.5252015", "text": "public void listar_saldoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaCorte(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "title": "" }, { "docid": "d5ed809f2e9a203462457aeedf2aa5ff", "score": "0.5251421", "text": "private void cargardatos() {\n String sql = \"SELECT * FROM nomPercepciones\";\n\n Object datos[] = new Object[13];\n try {\n conn = (this.userConn != null) ? this.userConn : Conexion.getConnection();\n stmt = conn.prepareStatement(sql);\n rs = stmt.executeQuery();\n while (rs.next()) {\n datos[0] = rs.getString(\"idNomPer\");\n datos[1] = rs.getString(\"nombre\");\n datos[2] = rs.getString(\"dias\");\n if (rs.getString(\"estatus\").equalsIgnoreCase(\"1\")) {\n datos[3] = new JLabel(new ImageIcon(getClass().getResource(\"/View/img/actulizadoj.png\")));\n } else {\n datos[3] = new JLabel(new ImageIcon(getClass().getResource(\"/View/img/noactualizadoj.png\")));\n }\n\n tabla1.addRow(datos);\n }\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, \"Error al cargar los datos\\n\" + e, \"ERROR\", JOptionPane.ERROR_MESSAGE);\n } finally {\n Conexion.close(rs);\n Conexion.close(stmt);\n if (this.userConn == null) {\n Conexion.close(conn);\n }\n }\n }", "title": "" }, { "docid": "6906a9ae17cf0135a2e029c1e4f419ed", "score": "0.5250823", "text": "public void UltimoRegistro(PDetalle pdetalle) throws Exception {\n String sql = \"SELECT \\n\"\n + \"\tCODPRES,\\n\"\n + \"\tCANTFAL,\\n\"\n + \"\tFSALPRES \\n\"\n + \"FROM PRESTAMO\\n\"\n + \"\tWHERE CODPRES = (SELECT MAX(CODPRES) FROM PRESTAMO)\";\n try {\n Statement st = this.conectar().createStatement();\n ResultSet rs = st.executeQuery(sql);\n while (rs.next()) {\n pdetalle.setCODPRESD(rs.getInt(\"CODPRES\"));\n pdetalle.setCANTDET(rs.getString(\"CANTFAL\"));\n pdetalle.setFECHENT(rs.getString(\"FSALPRES\"));\n }\n rs.close();\n st.close();\n } catch (Exception e) {\n System.out.println(\"Error al traer código de prestamo\");\n }\n\n }", "title": "" }, { "docid": "691ad91dc061618e20e5700b4c5729aa", "score": "0.5240058", "text": "@Override\n public void registrarPropiedad(Propiedad nuevaPropiedad, String pIdAgente) {\n int numFinca = nuevaPropiedad.getNumFinca();\n String modalidad = nuevaPropiedad.getModalidad();\n double area = nuevaPropiedad.getAreaTerreno();\n double metro = nuevaPropiedad.getValorMetroCuadrado();\n double fiscal = nuevaPropiedad.getValorFiscal();\n String provincia = nuevaPropiedad.getProvincia();\n String canton = nuevaPropiedad.getCanton();\n String distrito = nuevaPropiedad.getDistrito();\n String dirExacta = nuevaPropiedad.getDirExacta();\n String estado = nuevaPropiedad.getEstado();\n String tipo = nuevaPropiedad.getTipo();\n System.out.println(nuevaPropiedad.getFotografias().size());\n double precio = nuevaPropiedad.getPrecio();\n try {\n bdPropiedad.manipulationQuery(\"INSERT INTO PROPIEDAD (ID_PROPIEDAD, ID_AGENTE, MODALIDAD, \"\n + \"AREA_TERRENO, VALOR_METRO, VALOR_FISCAL, PROVINCIA, CANTON, DISTRITO, DIREXACTA, TIPO, \"\n + \"ESTADO, PRECIO) VALUES (\" + numFinca + \", '\" + pIdAgente + \"' , '\" + modalidad + \"',\" + \n area + \",\" + metro + \",\" + fiscal + \", '\" + provincia + \"' , '\" + canton + \"' , '\" + distrito \n + \"' , '\" + dirExacta + \"' , '\" + tipo + \"' , '\" + estado + \"', \" + precio + \")\");\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "e6b7d0392f40458fd75506f7740e3b6e", "score": "0.5237697", "text": "public boolean cadastrar(String dataEmprestimo, String dataDevolucao, String status\n\t\t\t, String cpf_funcionario, String cpf_cliente, String isbn_livro) throws Exception{\n\t\t/*\n\t\t * \n\t\t */\n\t\tboolean s = false;\n\t\tSimpleDateFormat forma = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\n\t\t\n\t\tString sql = \"insert into emprestimo (funcionario_cpf, cliente_cpf, status_emprestimo, data_saida_emprestimo,\"\n\t\t\t\t+ \" data_entrega_emprestimo, isbn_livro, titulo_livro)\"\n\t\t\t\t+ \" value(?,?,?,?,?,?,?)\";\n\t\ttry{\n\t\t\tRepositorioLivros rl = new RepositorioLivros();\n\t\t\tPreparedStatement stmt = (PreparedStatement) connection.prepareStatement(sql);\n\t\t\tstmt.setString(1, cpf_funcionario);\n\t\t\tstmt.setString(2, cpf_cliente);\n\t\t\tstmt.setString(3, status);\n\t\t\tDate dataEmprestimoForma = new Date(forma.parse(dataEmprestimo).getTime());\t\t\n\t\t\tDate dataDevolucaoForma = new Date(forma.parse(dataDevolucao).getTime());\n\t\t\tstmt.setDate(4, dataEmprestimoForma);\n\t\t\tstmt.setDate(5, dataDevolucaoForma);\n\t\t\tstmt.setString(6, isbn_livro);\n\t\t\tstmt.setString(7, rl.pesquisarISBN(isbn_livro).getTitulo());\n\t\t\tstmt.execute();\n\t\t\tstmt.close();\n\t\t\ts = true;\n\t\t\tSystem.out.println(\"Cadastrado\");\t\n\t\t\t\n\t\t}catch(SQLException e){\n\t\t\tthrow e;\n\t\t} catch (ParseException e) {\n\t\t\tthrow e;\n\t\t}catch(NullPointerException e){\n\t\t\tthrow e;\n\t\t}\n\t\treturn s;\n\t}", "title": "" }, { "docid": "39abb8239c8ff3677322e261d2b477f2", "score": "0.5228913", "text": "public void comprobarclientes(JTable pantallaclientes, ClienteHabitual cliente) throws SQLException{\n //Boolean auxiliar que detiene o permite la ejecucion del metodo\n boolean enmarcha = true;\n //Recorremos la tabla con un for recogiendo con el String auxiliar \"comparador\" el valor de las celdas de DNI\n for(int i = 0; i<pantallaclientes.getRowCount();i++){\n String comparador = pantallaclientes.getValueAt(i, 1).toString();\n //Si este encuentra que ese DNI ya esta se mostrara la informacion cambiando el Boolean a false y evitando que el metodo siga\n if(comparador.equals(cliente.getDNI())){\n JOptionPane.showMessageDialog(null, \"Este DNI ya se encuentra en nuestra BD\");\n String nombre = pantallaclientes.getValueAt(i, 2).toString();\n System.out.println(\"El cliente ya existe\");\n System.out.println(\"Bajo el nombre: \"+nombre);\n enmarcha=false;\n }\n }\n //Si no se encuentra el DNI en la tabla el programa procedera a añadir al Cliente\n if(enmarcha){\n try{\n añadircliente(cliente);\n }catch(SQLException e){\n System.out.println(\"Error al añadir tras la comprobacion: \"+e);\n }\n }\n }", "title": "" }, { "docid": "474ac546af914a9e430d47e13963eebb", "score": "0.52248067", "text": "private Cliente obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri):Entrada\");\n \n StringBuffer nombreCli = new StringBuffer();\n\n // crear cliente\n Cliente cliente = new Cliente();\n cliente.setOidCliente(oidCliente);\n\n // completar oidEstatus\n BigDecimal oidEstatus = null;\n\n {\n BelcorpService bs1;\n RecordSet respuesta1;\n String codigoError1;\n StringBuffer query1 = new StringBuffer();\n\n try {\n bs1 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError1 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError1));\n }\n\n try {\n query1.append(\" SELECT CLIE_OID_CLIE, \");\n query1.append(\" ESTA_OID_ESTA_CLIE \");\n query1.append(\" FROM MAE_CLIEN_DATOS_ADICI \");\n query1.append(\" WHERE CLIE_OID_CLIE = \" + oidCliente);\n respuesta1 = bs1.dbService.executeStaticQuery(query1.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta1 \" + respuesta1);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError1 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError1));\n }\n\n if (respuesta1.esVacio()) {\n cliente.setOidEstatus(null);\n } else {\n oidEstatus = (BigDecimal) respuesta1\n .getValueAt(0, \"ESTA_OID_ESTA_CLIE\");\n cliente.setOidEstatus((oidEstatus != null) ? new Long(\n oidEstatus.longValue()) : null);\n }\n }\n // completar oidEstatusFuturo\n {\n BelcorpService bs2;\n RecordSet respuesta2;\n String codigoError2;\n StringBuffer query2 = new StringBuffer();\n\n try {\n bs2 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError2 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError2));\n }\n\n try {\n query2.append(\" SELECT OID_ESTA_CLIE, \");\n query2.append(\" ESTA_OID_ESTA_CLIE \");\n query2.append(\" FROM MAE_ESTAT_CLIEN \");\n query2.append(\" WHERE OID_ESTA_CLIE = \" + oidEstatus);\n respuesta2 = bs2.dbService.executeStaticQuery(query2.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta2 \" + respuesta2); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError2 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError2));\n }\n\n if (respuesta2.esVacio()) {\n cliente.setOidEstatusFuturo(null);\n } else {\n {\n BigDecimal oidEstatusFuturo = (BigDecimal) respuesta2\n .getValueAt(0, \"ESTA_OID_ESTA_CLIE\");\n cliente.setOidEstatusFuturo((oidEstatusFuturo != null) \n ? new Long(oidEstatusFuturo.longValue()) : null);\n }\n }\n }\n // completar periodoPrimerContacto \n {\n BelcorpService bs3;\n RecordSet respuesta3;\n String codigoError3;\n StringBuffer query3 = new StringBuffer();\n\n try {\n bs3 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError3 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError3));\n }\n\n try {\n query3.append(\" SELECT A.CLIE_OID_CLIE, \");\n query3.append(\" A.PERD_OID_PERI, \");\n query3.append(\" B.PAIS_OID_PAIS, \");\n query3.append(\" B.CANA_OID_CANA, \");\n query3.append(\" B.MARC_OID_MARC, \");\n query3.append(\" B.FEC_INIC, \");\n query3.append(\" B.FEC_FINA, \");\n query3.append(\" C.COD_PERI \");\n query3.append(\" FROM MAE_CLIEN_PRIME_CONTA A, \");\n query3.append(\" CRA_PERIO B, \");\n query3.append(\" SEG_PERIO_CORPO C \");\n query3.append(\" WHERE A.CLIE_OID_CLIE = \" + oidCliente);\n query3.append(\" AND A.PERD_OID_PERI = B.OID_PERI \");\n query3.append(\" AND B.PERI_OID_PERI = C.OID_PERI \");\n respuesta3 = bs3.dbService.executeStaticQuery(query3.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta3 \" + respuesta3); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError3 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError3));\n }\n\n if (respuesta3.esVacio()) {\n cliente.setPeriodoPrimerContacto(null);\n } else {\n Periodo periodo = new Periodo();\n\n {\n BigDecimal oidPeriodo = (BigDecimal) respuesta3\n .getValueAt(0, \"PERD_OID_PERI\");\n periodo.setOidPeriodo((oidPeriodo != null) \n ? new Long(oidPeriodo.longValue()) : null);\n }\n\n periodo.setCodperiodo((String) respuesta3\n .getValueAt(0, \"COD_PERI\"));\n periodo.setFechaDesde((Date) respuesta3\n .getValueAt(0, \"FEC_INIC\"));\n periodo.setFechaHasta((Date) respuesta3\n .getValueAt(0, \"FEC_FINA\"));\n periodo.setOidPais(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"PAIS_OID_PAIS\")).longValue()));\n periodo.setOidCanal(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"CANA_OID_CANA\")).longValue()));\n periodo.setOidMarca(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"MARC_OID_MARC\")).longValue()));\n cliente.setPeriodoPrimerContacto(periodo);\n }\n }\n // completar AmbitoGeografico\n {\n BelcorpService bs4;\n RecordSet respuesta4;\n String codigoError4;\n StringBuffer query4 = new StringBuffer();\n\n try {\n bs4 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError4 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError4));\n }\n\n try {\n //jrivas 29/6/2005\n //Modificado INC. 19479\n SimpleDateFormat sdfFormato = new SimpleDateFormat(\"dd/MM/yyyy\");\n String fechaDesde = sdfFormato.format(peri.getFechaDesde());\n String fechaHasta = sdfFormato.format(peri.getFechaHasta());\n\n query4.append(\" SELECT sub.oid_subg_vent, reg.oid_regi, \");\n query4.append(\" zon.oid_zona, sec.oid_secc, \");\n query4.append(\" terr.terr_oid_terr, \");\n query4.append(\" sec.clie_oid_clie oid_lider, \");\n query4.append(\" zon.clie_oid_clie oid_gerente_zona, \");\n query4.append(\" reg.clie_oid_clie oid_gerente_region, \");\n query4.append(\" sub.clie_oid_clie oid_subgerente \");\n query4.append(\" FROM mae_clien_unida_admin una, \");\n query4.append(\" zon_terri_admin terr, \");\n query4.append(\" zon_secci sec, \");\n query4.append(\" zon_zona zon, \");\n query4.append(\" zon_regio reg, \");\n query4.append(\" zon_sub_geren_venta sub \");\n //jrivas 27/04/2006 INC DBLG50000361\n //query4.append(\" , cra_perio per1, \");\n //query4.append(\" cra_perio per2 \");\n query4.append(\" WHERE una.clie_oid_clie = \" + oidCliente);\n query4.append(\" AND una.ztad_oid_terr_admi = \");\n query4.append(\" terr.oid_terr_admi \");\n query4.append(\" AND terr.zscc_oid_secc = sec.oid_secc \");\n query4.append(\" AND sec.zzon_oid_zona = zon.oid_zona \");\n query4.append(\" AND zon.zorg_oid_regi = reg.oid_regi \");\n query4.append(\" AND reg.zsgv_oid_subg_vent = \");\n query4.append(\" sub.oid_subg_vent \");\n //jrivas 27/04/2006 INC DBLG50000361\n query4.append(\" AND una.perd_oid_peri_fin IS NULL \");\n \n // sapaza -- PER-SiCC-2013-0960 -- 03/09/2013\n //query4.append(\" AND una.ind_acti = 1 \");\n \n /*query4.append(\" AND una.perd_oid_peri_fin = \");\n query4.append(\" AND una.perd_oid_peri_ini = per1.oid_peri \");\n query4.append(\" per2.oid_peri(+) \");\n query4.append(\" AND per1.fec_inic <= TO_DATE ('\" + \n fechaDesde + \"', 'dd/MM/yyyy') \");\n query4.append(\" AND ( per2.fec_fina IS NULL OR \");\n query4.append(\" per2.fec_fina >= TO_DATE ('\" + fechaHasta \n + \"', 'dd/MM/yyyy') ) \");*/\n\n respuesta4 = bs4.dbService.executeStaticQuery(query4.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"respuesta4: \" + respuesta4);\n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError4 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError4));\n }\n\n Gerente lider = new Gerente();\n Gerente gerenteZona = new Gerente();\n Gerente gerenteRegion = new Gerente();\n Gerente subGerente = new Gerente();\n\n if (respuesta4.esVacio()) {\n cliente.setAmbitoGeografico(null);\n } else {\n AmbitoGeografico ambito = new AmbitoGeografico();\n ambito.setOidSubgerencia(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SUBG_VENT\")).longValue()));\n ambito.setOidRegion(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_REGI\")).longValue()));\n ambito.setOidZona(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_ZONA\")).longValue()));\n ambito.setOidSeccion(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SECC\")).longValue()));\n\n //jrivas 29/6/2005\n //Modificado INC. 19479\n ambito.setOidTerritorio(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"TERR_OID_TERR\")).longValue()));\n\n if (respuesta4.getValueAt(0, \"OID_LIDER\") != null) {\n lider.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_LIDER\")).longValue()));\n }\n\n if (respuesta4.getValueAt(0, \"OID_GERENTE_ZONA\") != null) {\n gerenteZona.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_GERENTE_ZONA\")).longValue()));\n ;\n }\n\n if (respuesta4.getValueAt(0, \"OID_GERENTE_REGION\") != null) {\n gerenteRegion.setOidCliente(new Long(((BigDecimal) \n respuesta4.getValueAt(0, \"OID_GERENTE_REGION\"))\n .longValue()));\n }\n\n if (respuesta4.getValueAt(0, \"OID_SUBGERENTE\") != null) {\n subGerente.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SUBGERENTE\")).longValue()));\n }\n\n ambito.setLider(lider);\n ambito.setGerenteZona(gerenteZona);\n ambito.setGerenteRegion(gerenteRegion);\n ambito.setSubgerente(subGerente);\n\n cliente.setAmbitoGeografico(ambito);\n }\n }\n // completar nombre\n {\n BelcorpService bs5;\n RecordSet respuesta5;\n String codigoError5;\n StringBuffer query5 = new StringBuffer();\n\n try {\n bs5 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError5 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError5));\n }\n\n try {\n query5.append(\" SELECT OID_CLIE, \");\n query5.append(\" VAL_APE1, \");\n query5.append(\" VAL_APE2, \");\n query5.append(\" VAL_NOM1, \");\n query5.append(\" VAL_NOM2 \");\n query5.append(\" FROM MAE_CLIEN \");\n query5.append(\" WHERE OID_CLIE = \" + oidCliente.longValue());\n respuesta5 = bs5.dbService.executeStaticQuery(query5.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta5 \" + respuesta5);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError5 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError5));\n }\n\n if (respuesta5.esVacio()) {\n cliente.setNombre(null);\n } else {\n \n if(respuesta5.getValueAt(0, \"VAL_NOM1\")!=null) {\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_NOM1\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_NOM2\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_NOM2\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_APE1\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_APE1\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_APE2\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_APE2\"));\n }\n \n cliente.setNombre(nombreCli.toString());\n }\n }\n\n UtilidadesLog.info(\" DAOSolicitudes.obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri):Salida\");\n return cliente;\n }", "title": "" }, { "docid": "22e4eb14e25870450e3958cf04f44125", "score": "0.5224195", "text": "private void verificarDatos(int fila) {\n try {\n colValidada = -1;\n\n float cantidad = 1;\n float descuento = 0;\n float precio = 1;\n float stock = 1;\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad) != null) {\n cantidad = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV) != null) {\n precio = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento) != null) {\n descuento = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento).toString());\n }\n\n if (precio < 0) {\n JOptionPane.showMessageDialog(this, \"el precio debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colPrecioConIGV);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDesc);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDescConIgv);\n colValidada = oCLOrdenCompra.colPrecioConIGV;\n return;\n }\n\n if (descuento > cantidad * precio) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser mayor al Importe Bruto\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n oCLOrdenCompra.CalcularSubtotales();\n oCLOrdenCompra.calcularImportes();\n\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (descuento < 0) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser menor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (cantidad <= 0) {\n JOptionPane.showMessageDialog(this, \"La cantidad debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colCantidad);\n colValidada = oCLOrdenCompra.colCantidad;\n return;\n }\n /* if(precio<=0)\n {\n JOptionPane.showMessageDialog(null,\"El precio tiene q ser mayor a cero\");\n colValidada=oCLOrdenCompra.colPrecio;\n return;\n }*/\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock) != null) {\n stock = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock).toString());\n }\n if (cantidad > stock) {\n /* JOptionPane.showMessageDialog(null,\"La cantidad no debe ser mayor al stock disponible\");\n TblOrdenCompraDetalle.setValueAt(null, fila,oCLOrdenCompra.colCantidad);\n colValidada=oCLOrdenCompra.colCantidad;\n return;*/\n }\n\n int col = TblOrdenCompraDetalle.getSelectedColumn();\n if (!eventoGuardar) {\n if (col == oCLOrdenCompra.colCantidad) {\n oCLOrdenCompra.calcularPrecio(fila);\n }\n }\n\n } catch (Exception e) {\n cont++;\n System.out.println(\"dlgGestionOrdenCompra-metodo Verificar datos: \"+e);\n }\n }", "title": "" }, { "docid": "92f7aa253fd9ed5533c057278a5d6c20", "score": "0.5224005", "text": "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}", "title": "" }, { "docid": "2600689716ef77cfcce9105cb0df4191", "score": "0.52217853", "text": "private void IniciarTabla(){\n \n // limpia los datos de los Label y los datos relacionados a la actualizacion de los datos e inhabilita y habilitar botones\nthis.jLabelId.setText(\"Id\");\nthis.jnombre.setText(\"\");\ngrabarCambios.setEnabled(false);\njBotonAgregar.setEnabled(true);\n\n DefaultTableModel dfm = new DefaultTableModel();\n tabla = this.jTabla;\n tabla.setModel(dfm);\n \n // agrega los datos al index de la tabla \n dfm.setColumnIdentifiers(new Object[]{\"id\",\"Comuna\",\"Estado\"});\n Conexion cn = new Conexion();\n rs = cn.SeleccionarTodosComunas();\n try{\n // se recorre rs donde estan los resultados de la busqueda de los datos de la tabla comuna\n while(rs.next()){\n String activo =\"\";\n if (rs.getInt(\"COM_ESTADO\")==1) {\n activo = \"activo\";\n } else {\n activo = \"no activo\";};\n // se agrega la fila con los datos de la columna \n dfm.addRow(new Object[]{rs.getInt(\"COM_ID\"),rs.getString(\"COM_NOMBRE\"),activo});\n }\n \n } catch(Exception e){\n System.out.println(\"Error Revisar funcion TableModel\" + e);\n }\n }", "title": "" }, { "docid": "99e205f3a6596e21a90acfb832bb867a", "score": "0.5217593", "text": "public void verificaRestricaoDaTabelaClienteImovel(ClienteImovel clienteImovelRemovido)\r\n\t\t\tthrows ControladorException {\r\n\r\n\t\t// Obt�m a fachada\r\n\t\tFachada fachada = Fachada.getInstancia();\r\n\r\n\t\t// Pesquisa que carrega o objeto Imovel.\r\n\t\tFiltroClienteImovel filtro = new FiltroClienteImovel();\r\n\t\tfiltro.adicionarCaminhoParaCarregamentoEntidade(FiltroClienteImovel.IMOVEL);\r\n\r\n\t\t// Verifica a Restri��o da base -- UNIQUE INDEX xak1_cliente_imovel --\r\n\t\t// clie_id\r\n\t\tif (clienteImovelRemovido.getCliente().getId() != null) {\r\n\t\t\tfiltro.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroClienteImovel.CLIENTE_ID, clienteImovelRemovido.getCliente().getId()));\r\n\t\t}\r\n\t\t// imov_id\r\n\t\tif (clienteImovelRemovido.getImovel().getId() != null) {\r\n\t\t\tfiltro.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroClienteImovel.IMOVEL_ID, clienteImovelRemovido.getImovel().getId()));\r\n\t\t}\r\n\t\t// crtp_id\r\n\t\tif (clienteImovelRemovido.getClienteRelacaoTipo().getId() != null) {\r\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroClienteImovel.CLIENTE_RELACAO_TIPO_ID,\r\n\t\t\t\t\tclienteImovelRemovido.getClienteRelacaoTipo().getId()));\r\n\t\t}\r\n\t\t// clim_dtrelacaoinicio\r\n\t\tif (clienteImovelRemovido.getDataInicioRelacao() != null) {\r\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroClienteImovel.DATA_INICIO_RELACAO,\r\n\t\t\t\t\tclienteImovelRemovido.getDataInicioRelacao()));\r\n\t\t}\r\n\t\t// clim_dtrelacaofim\r\n\t\tif (clienteImovelRemovido.getDataFimRelacao() != null) {\r\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroClienteImovel.DATA_FIM_RELACAO,\r\n\t\t\t\t\tclienteImovelRemovido.getDataFimRelacao()));\r\n\t\t} else {\r\n\t\t\tfiltro.adicionarParametro(new ParametroSimples(FiltroClienteImovel.DATA_FIM_RELACAO, new Date()));\r\n\t\t}\r\n\r\n\t\tCollection retornoClienteImovel = fachada.pesquisar(filtro, ClienteImovel.class.getName());\r\n\r\n\t\tif (retornoClienteImovel != null && !retornoClienteImovel.equals(\"\") && retornoClienteImovel.size() != 0) {\r\n\t\t\tClienteImovel clienteImovel = (ClienteImovel) Util.retonarObjetoDeColecao(retornoClienteImovel);\r\n\t\t\tif (clienteImovel.getDataFimRelacao() != null) {\r\n\t\t\t\tthrow new ControladorException(\"atencao.dependencias.existentes\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "54fb964bd72473f0cb3896113a59cd53", "score": "0.5215052", "text": "public String validarResponsableYaAsignado (DTOResponsable dtoe) throws MareException { \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Entrada\");\n StringBuffer consulta = new StringBuffer();\n Vector parametros = new Vector();\n RecordSet rs = new RecordSet();\n \n String asignado = null;\n String unidadAdministrativa = null;\n Long marca = null;\n Long canal = null;\n Long pais = null;\n\n //Recuperamos el pais, marca y canal de la Unidad Administrativa \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n\n /*if (dtoe.getIndUA().intValue() == 1) { \n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_sub_geren_venta \");\n consulta.append(\" WHERE oid_subg_vent = ? \");\n unidadAdministrativa = \"Subgerencia\";\n }*/\n if (dtoe.getIndUA().intValue() == 2){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_regio \");\n consulta.append(\" WHERE oid_regi = ? \");\n unidadAdministrativa = \"Region\";\n }\n if (dtoe.getIndUA().intValue() == 3){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona \");\n consulta.append(\" WHERE oid_zona = ? \");\n unidadAdministrativa = \"Zona\";\n }\n /*if (dtoe.getIndUA().intValue() == 4){\n consulta.append(\" SELECT zon.pais_oid_pais PAIS, zon.marc_oid_marc MARCA, zon.cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona zon, zon_secci sec \");\n consulta.append(\" WHERE sec.zzon_oid_zona = zon.oid_zona \"); \n consulta.append(\" AND sec.oid_secc = ? \");\n unidadAdministrativa = \"Seccion\"; \n }*/\n parametros.add(dtoe.getOidUA());\n \n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No existe Unidad Administrativa \");\t\t\t\t\n String sCodigoError = CodigosError.ERROR_DE_PETICION_DE_DATOS_NO_EXISTENTE;\n throw new MareException(new Exception(), UtilidadesError.armarCodigoError(sCodigoError));\n } else {\n pais = new Long(((BigDecimal)rs.getValueAt(0,\"PAIS\")).longValue());\n marca = new Long(((BigDecimal)rs.getValueAt(0,\"MARCA\")).longValue());\n canal = new Long(((BigDecimal)rs.getValueAt(0,\"CANAL\")).longValue());\n }\n\n //Buscamos si el cliente es responsable en otra unidad administrativa\n //para el pais, marca y canal de la unidad administrativa a asignar\n parametros = new Vector(); \n consulta = new StringBuffer();\n /*consulta.append(\" SELECT 'SubGerencia: ' || zon_sub_geren_venta.des_subg_vent DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, mae_clien \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_sub_geren_venta.clie_oid_clie \"); \n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n\n consulta.append(\" UNION \");*/\n \n consulta.append(\" SELECT 'Region: ' || zon_regio.des_regi DESCUNIDADADMIN \");\n consulta.append(\" FROM mae_clien, zon_sub_geren_venta, zon_regio \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_regio.clie_oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Zona: ' || zon_zona.des_zona DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, zon_zona, mae_clien \");\n consulta.append(\" WHERE zon_zona.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n /*consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Seccion: ' || zon_secci.des_secci DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, \");\n consulta.append(\" zon_zona, zon_secci, mae_clien \");\n consulta.append(\" WHERE zon_secci.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_secci.zzon_oid_zona = zon_zona.oid_zona \"); \n consulta.append(\" AND zon_secci.ind_borr = 0 \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");*/\n\n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No hay datos \");\t\t\t\t\n }\n else {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: se encontro al menos un cliente \");\t\t\t\t\n asignado = rs.getValueAt(0,\"DESCUNIDADADMIN\").toString();\n }\n \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Salida\"); \n \n return asignado;\n }", "title": "" }, { "docid": "46cf17f7985bd4694277af67d75bfd37", "score": "0.52037036", "text": "private void RealizarAccion() {\n if (ValidarCampos()) {\n\n persona.setPrimerNombre(txtPrimerNombre.getText());\n persona.setSegundoNombre(txtSegundoNombre.getText());\n persona.setPrimerApellido(txtPrimerApellido.getText());\n persona.setSegundoApellido(txtSegundoApellido.getText());\n persona.setTelefono(txtTelefono.getText());\n persona.setCedula(txtCedula.getText());\n persona.setCorreo(txtCorreo.getText());\n persona.setDireccion(txtDireccion.getText());\n\n empleado.setFechaInicio(dcFechaInicio.getDate());\n empleado.setSalario(Double.parseDouble(txtSalario.getText()));\n empleado.setCargo(txtCargo.getText());\n empleado.setUsuarioByUserModificacion(SessionHelper.usuario);\n empleado.setFechaModificacion(new Date());\n empleado.setRegAnulado(false);\n\n switch (btnAction.getText()) {\n case \"Guardar\":\n int maxid = personaBean.MaxId() + 1;\n persona.setIdPersona(maxid);\n\n Dbcontext.guardar(persona);\n\n empleado.setIdEmpleado(maxid);\n empleado.setPersona(persona);\n empleado.setUsuarioByUserCreacion(SessionHelper.usuario);\n empleado.setFechaCreacion(new Date());\n\n Dbcontext.guardar(empleado);\n break;\n\n case \"Actualizar\":\n\n Dbcontext.actualizar(persona);\n\n Dbcontext.actualizar(empleado);\n break;\n }\n if (ifrRegistroEmpleados.isActive) {\n ifrRegistroEmpleados.CargarTabla();\n }\n\n Mensajes.OperacionExitosa(this);\n dispose();\n } else {\n Mensajes.InformacionIncompleta(this);\n }\n }", "title": "" }, { "docid": "625ff2920a2c90d92041307dfa1195c0", "score": "0.52012604", "text": "private void jbtnAlterarActionPerformed(java.awt.event.ActionEvent evt) {\n ArrayList<Fornecedor> array = new ArrayList<>();\n ArrayList<Endereco> array2 = new ArrayList<>();\n \n for(int i = 0; i < jtblFornecedor.getRowCount(); i++){\n Fornecedor fornecedor = new Fornecedor();\n Endereco endereco = new Endereco();\n fornecedor.setCodigo(Integer.parseInt(jtblFornecedor.getValueAt(i, 0).toString()));\n fornecedor.setNomeFornecedor(jtblFornecedor.getValueAt(i, 1).toString());\n fornecedor.setCpfFornecedor(jtblFornecedor.getValueAt(i, 2).toString());\n fornecedor.setCnpjFornecedor(jtblFornecedor.getValueAt(i, 3).toString());\n fornecedor.setTelefone(jtblFornecedor.getValueAt(i, 4).toString());\n endereco.setRua(jtblFornecedor.getValueAt(i, 5).toString());\n endereco.setNumero(jtblFornecedor.getValueAt(i, 6).toString());\n endereco.setBairro(jtblFornecedor.getValueAt(i, 7).toString());\n endereco.setCidade(jtblFornecedor.getValueAt(i, 8).toString());\n array.add(fornecedor);\n array2.add(endereco); \n }\n FornecedorControle fornecedorControle = new FornecedorControle(); \n try {\n fornecedorControle.updateFornecedor(array,array2);\n } catch (SQLException ex) {\n Logger.getLogger(JfrmAlterarFornecedor.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n JOptionPane.showMessageDialog(null, \"Alterações salvas com sucesso!\"); \n \n }", "title": "" }, { "docid": "3167585f5e67550e1532c7b5cb65c511", "score": "0.51977634", "text": "public void listar_saldoMontadoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo_Montado.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaMontadoPorData(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "title": "" }, { "docid": "06b30b4be1ae85e07ac34150faea6999", "score": "0.5190805", "text": "public DefaultTableModel cargarDatos () {\r\n DefaultTableModel modelo = new DefaultTableModel(\r\n new String[]{\"ID SALIDA\", \"IDENTIFICACIÓN CAPITÁN\", \"NÚMERO MATRICULA\", \"FECHA\", \"HORA\", \"DESTINO\"}, 0); //Creo un objeto del modelo de la tabla con los titulos cargados\r\n String[] info = new String[6];\r\n String query = \"SELECT * FROM actividad WHERE eliminar = false\";\r\n try {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n while (rs.next()) { \r\n info[0] = rs.getString(\"id_salida\");\r\n info[1] = rs.getString(\"identificacion_navegate\");\r\n info[2] = rs.getString(\"numero_matricula\");\r\n info[3] = rs.getString(\"fecha\");\r\n info[4] = rs.getString(\"hora\");\r\n info[5] = rs.getString(\"destino\");\r\n Object[] fila = new Object[]{info[0], info[1], info[2], info[3], info[4], info[5]};\r\n modelo.addRow(fila);\r\n }\r\n st.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return modelo;\r\n }", "title": "" }, { "docid": "25587e00a9487eaf4dd346807a264258", "score": "0.5189429", "text": "public RespuestaBD modificarRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismomismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioModificacion) {\n/* 437 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 440 */ String s = \"update wkf_detalle set servicio_inicio=\" + servicioInicio + \",\" + \" accion=\" + accion + \",\" + \" codigo_estado=\" + codigoEstado + \",\" + \" servicio_destino=\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \" nombre_procedimiento='\" + nombreProcedimiento + \"',\" + \" correo_destino='\" + correoDestino + \"',\" + \" enviar_solicitud='\" + enviar + \"',\" + \" ind_mismo_proveedor='\" + mismoProveedor + \"',\" + \" ind_mismo_cliente='\" + mismomismoCliente + \"',\" + \" estado='\" + estado + \"',\" + \" caracteristica=\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + \" valor_caracteristica=\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + \" caracteristica_correo=\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + \" metodo_seleccion_proveedor=\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + \" ind_correo_clientes=\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + \" enviar_hermana=\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + \" enviar_si_hermana_cerrada=\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + \" ind_cliente_inicial=\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \"\" + \" where\" + \" codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 465 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 467 */ catch (Exception e) {\n/* 468 */ e.printStackTrace();\n/* 469 */ Utilidades.writeError(\"FlujoDetalleDAO:modificarRegistro \", e);\n/* 470 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 472 */ return rta;\n/* */ }", "title": "" }, { "docid": "ccae4dedf257d5c6773453364395c866", "score": "0.51885474", "text": "public void limpiarCamposActividadesYRecord() {\r\n try {\r\n opcionTableroControlSeguim = \"\";\r\n estadoPanelMisActivid = false;\r\n estadoPanelMisRecordat = false;\r\n estadoPanelActividAsign = false;\r\n estadoPanelRecordatAsign = false;\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "title": "" }, { "docid": "cb714881aff1d50f6412a92ef1663589", "score": "0.5186877", "text": "@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }", "title": "" }, { "docid": "0b2023185a25a35899021916c47971da", "score": "0.5183606", "text": "private boolean crearResponsable(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoResponsable, String estado, String usuarioInsercion) {\n/* */ try {\n/* 578 */ String s = \"select estado from cal_plan_responsables_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 585 */ this.dat.parseSql(s);\n/* 586 */ this.rs = this.dat.getResultSet();\n/* 587 */ if (this.rs.next()) {\n/* 588 */ s = \"update cal_plan_responsables_meta set estado='\" + estado + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioInsercion + \"'\" + \" where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta + \" and codigo_responsable=\" + codigoResponsable;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 599 */ s = \"insert into cal_plan_responsables_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_responsable,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoResponsable + \",\" + \"'\" + estado + \"',\" + \"\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 617 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 620 */ catch (Exception e) {\n/* 621 */ e.printStackTrace();\n/* 622 */ Utilidades.writeError(\"CalResponsablesMetaFactory:crearRegistro\", e);\n/* */ \n/* 624 */ return false;\n/* */ } \n/* */ }", "title": "" }, { "docid": "591fce66d24f53e32de15b6a8bf18bea", "score": "0.5181758", "text": "public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }", "title": "" }, { "docid": "482bea8dd900954b4be86476c45b3f12", "score": "0.5181427", "text": "private void actualizarTablaPeriodos() {\n\t\tMap<Integer, Periodo> periodos = modelo\n\t\t\t\t.obtenerPeriodos(Integer.parseInt(jfad.cBCursosMod.getSelectedItem().toString()));\n\t\tDefaultTableModel dtm = new DefaultTableModel(new Object[][] {},\n\t\t\t\tnew String[] { \"Periodo\", \"Dia inicio\", \"Dia fin\", \"Hora inicio\", \"Hora_fin\", \"Habilitado\" });\n\n\t\tfor (Integer key : periodos.keySet()) {\n\n\t\t\tdtm.addRow(new Object[] { key, periodos.get(key).getDia_inicio(), periodos.get(key).getDia_fin(),\n\t\t\t\t\tperiodos.get(key).getHora_inicio(), periodos.get(key).getHora_fin(),\n\t\t\t\t\tperiodos.get(key).getHabilitado() });\n\t\t}\n\t\tjfad.tPeriodos.setModel(dtm);\n\t}", "title": "" }, { "docid": "f14b4f12069e682e09569343b576e71e", "score": "0.517737", "text": "public FlujoDetalleDTO leerRegistro() {\n/* */ try {\n/* 82 */ FlujoDetalleDTO reg = new FlujoDetalleDTO();\n/* */ \n/* 84 */ reg.setCodigoFlujo(this.rs.getInt(\"codigo_flujo\"));\n/* 85 */ reg.setSecuencia(this.rs.getInt(\"secuencia\"));\n/* 86 */ reg.setServicioInicio(this.rs.getInt(\"servicio_inicio\"));\n/* 87 */ reg.setCodigoEstado(this.rs.getInt(\"codigo_estado\"));\n/* 88 */ reg.setServicioDestino(this.rs.getInt(\"servicio_destino\"));\n/* 89 */ reg.setNombreProcedimiento(this.rs.getString(\"nombre_procedimiento\"));\n/* 90 */ reg.setCorreoDestino(this.rs.getString(\"correo_destino\"));\n/* 91 */ reg.setEnviarSolicitud(this.rs.getString(\"enviar_solicitud\"));\n/* 92 */ reg.setMismoProveedor(this.rs.getString(\"ind_mismo_proveedor\"));\n/* 93 */ reg.setMismoCliente(this.rs.getString(\"ind_mismo_cliente\"));\n/* 94 */ reg.setEstado(this.rs.getString(\"estado\"));\n/* 95 */ reg.setUsuarioInsercion(this.rs.getString(\"usuario_insercion\"));\n/* 96 */ reg.setFechaInsercion(this.rs.getString(\"fecha_insercion\"));\n/* 97 */ reg.setUsuarioModificacion(this.rs.getString(\"usuario_modificacion\"));\n/* 98 */ reg.setFechaModificacion(this.rs.getString(\"fecha_modificacion\"));\n/* 99 */ reg.setNombreServicioInicio(this.rs.getString(\"nombre_servicio_inicio\"));\n/* 100 */ reg.setNombreCodigoEstado(this.rs.getString(\"nombre_codigo_estado\"));\n/* 101 */ reg.setNombreServicioDestino(this.rs.getString(\"nombre_servicio_destino\"));\n/* 102 */ reg.setNombreEstado(this.rs.getString(\"nombre_estado\"));\n/* 103 */ reg.setCaracteristica(this.rs.getInt(\"caracteristica\"));\n/* 104 */ reg.setCaracteristicaValor(this.rs.getInt(\"valor_caracteristica\"));\n/* 105 */ reg.setCaracteristicaCorreo(this.rs.getInt(\"caracteristica_correo\"));\n/* 106 */ reg.setNombreCaracteristica(this.rs.getString(\"nombre_caracteristica\"));\n/* 107 */ reg.setDescripcionValor(this.rs.getString(\"descripcion_valor\"));\n/* 108 */ reg.setMetodoSeleccionProveedor(this.rs.getString(\"metodo_seleccion_proveedor\"));\n/* 109 */ reg.setIndCorreoCliente(this.rs.getString(\"ind_correo_clientes\"));\n/* */ \n/* */ try {\n/* 112 */ reg.setEnviar_hermana(this.rs.getString(\"enviar_hermana\"));\n/* 113 */ reg.setEnviar_si_hermana_cerrada(this.rs.getString(\"enviar_si_hermana_cerrada\"));\n/* 114 */ reg.setInd_cliente_inicial(this.rs.getString(\"ind_cliente_inicial\"));\n/* */ \n/* */ \n/* */ }\n/* 118 */ catch (Exception e) {}\n/* */ \n/* */ \n/* */ \n/* 122 */ return reg;\n/* */ }\n/* 124 */ catch (Exception e) {\n/* 125 */ e.printStackTrace();\n/* 126 */ Utilidades.writeError(\"FlujoDetalleDAO:leerRegistro \", e);\n/* */ \n/* 128 */ return null;\n/* */ } \n/* */ }", "title": "" }, { "docid": "d2cb795ffa1255e37ff06647d5b6aa3e", "score": "0.5172638", "text": "private void mostraPesquisa(List<Livro> livros) {\n // Limpa a tabela sempre que for solicitado uma nova pesquisa\n limparTabela();\n\n if (livros.isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nenhum registro encontrado.\");\n } else {\n // Linha em branco usada no for, para cada registro é criada uma nova linha \n String[] linha = new String[]{null, null, null, null, null, null, null, null, null};\n // P/ cada registro é criada uma nova linha, cada linha recebe os campos do registro\n for (int i = 0; i < livros.size(); i++) {\n tmLivro.addRow(linha);\n tmLivro.setValueAt(livros.get(i).getId(), i, 0);\n tmLivro.setValueAt(livros.get(i).getId_genero(), i, 1);\n tmLivro.setValueAt(livros.get(i).getExemplar(), i, 2);\n tmLivro.setValueAt(livros.get(i).getAutor(), i, 3);\n tmLivro.setValueAt(livros.get(i).getEdicao(), i, 4);\n tmLivro.setValueAt(livros.get(i).getAno(), i, 5);\n tmLivro.setValueAt(livros.get(i).getDisponibilidade(), i, 6);\n }\n }\n }", "title": "" }, { "docid": "bd5952c3ae82dd48112a50ec408ed7af", "score": "0.5169507", "text": "private boolean crearRecurso(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoRecurso, String estado, String usuarioInsercion) {\n/* */ try {\n/* 513 */ String s = \"select estado from cal_plan_recursos_meta r where r.codigo_ciclo=\" + codigoCiclo + \" and r.codigo_plan=\" + codigoPlan + \" and r.codigo_meta=\" + codigoMeta + \" and r.codigo_recurso=\" + codigoRecurso;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 520 */ this.dat.parseSql(s);\n/* 521 */ this.rs = this.dat.getResultSet();\n/* 522 */ if (this.rs.next()) {\n/* 523 */ s = \"update cal_plan_recursos_meta set \";\n/* 524 */ s = s + \" estado='\" + estado + \"',\";\n/* 525 */ s = s + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\";\n/* 526 */ s = s + \" usuario_modificacion='\" + usuarioInsercion + \"'\";\n/* 527 */ s = s + \" where \";\n/* 528 */ s = s + \" codigo_ciclo=\" + codigoCiclo;\n/* 529 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 530 */ s = s + \" and codigo_meta=\" + codigoMeta;\n/* 531 */ s = s + \" and codigo_recurso=\" + codigoRecurso;\n/* */ } else {\n/* */ \n/* 534 */ s = \"insert into cal_plan_recursos_meta (codigo_ciclo,codigo_plan,codigo_meta,codigo_recurso,estado,fecha_insercion,usuario_insercion) values (\" + codigoCiclo + \",\" + \"\" + codigoPlan + \",\" + \"\" + codigoMeta + \",\" + \"\" + codigoRecurso + \",\" + \"'\" + estado + \"',\" + Utilidades.getFechaBD() + \",\" + \"'\" + usuarioInsercion + \"'\" + \")\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 552 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 555 */ catch (Exception e) {\n/* 556 */ e.printStackTrace();\n/* 557 */ Utilidades.writeError(\"CalMetasDAO:crearRegistro\", e);\n/* */ \n/* 559 */ return false;\n/* */ } \n/* */ }", "title": "" }, { "docid": "732473d89ecb79a1593437a4c358475a", "score": "0.5169042", "text": "public void datosIniciales() {\n try {\n nombre.setCellValueFactory(new PropertyValueFactory<>(\"nombre\"));\n subTipo.setCellValueFactory(new PropertyValueFactory<>(\"subTipo\"));\n tipo.setCellValueFactory(new PropertyValueFactory<>(\"tipo\"));\n editar.setCellValueFactory(new PropertyValueFactory<>(\"imagenEditar\"));\n listaSubTipoDAO = subTipoDAO.hacerConsulta();\n listaSubTipo = FXCollections.observableArrayList(listaSubTipoDAO);\n valoresSubtipo = new ListSpinnerValueFactory(listaSubTipo);\n spinnerSubtipo.setValueFactory(valoresSubtipo);\n\n puntuacion = new SpinnerValueFactory.IntegerSpinnerValueFactory(1, 5, 1, 1);\n\n editar.getStyleClass().add(\"cursorMano\");\n refrescarDatos();\n\n } catch (SQLException ex) {\n alarmaFalloSQL();\n }\n }", "title": "" }, { "docid": "30bdce6eb036cb9918c749a7d155a12d", "score": "0.51689", "text": "public void guarda_respuestas() throws SQLException {\n pdb = new PreguntasDB();\n xrdb = new x_respuestasDB();\n int p1 = 0, p2 = 0, p3 = 0, p4 = 0, p5 = 0, p6 = 0, p7 = 0, p8 = 0, p9 = 0, p10 = 0;\n int p11 = 0, p12 = 0, p13 = 0, p14 = 0, p15 = 0, p16 = 0, p17 = 0, p18 = 0, p19 = 0, p20 = 0;\n String r1 = \"\", r2 = \"\", r3 = \"\", r4 = \"\", r5 = \"\", r6 = \"\", r7 = \"\", r8 = \"\", r9 = \"\", r10 = \"\",\n r11 = \"\", r12 = \"\", r13 = \"\", r14 = \"\", r15 = \"\", r16 = \"\", r17 = \"\", r18 = \"\", r19 = \"\", r20 = \"\";\n p1 = pdb.obtener_id(v.getLblPregunta1().getText(), 1);\n System.out.println(p1);\n r1 = v.getCbxPregunta1().getSelectedItem().toString();\n System.out.println(\"-------\" + r1);\n //----------------------------------------------------------------------\n p2 = pdb.obtener_id(v.getLblPregunta2().getText(), 1);\n System.out.println(p2);\n r2 = v.getCbxPregunta2().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p3 = pdb.obtener_id(v.getLblPregunta3().getText(), 1);\n System.out.println(p3);\n r3 = v.getCbxPregunta3().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p4 = pdb.obtener_id(v.getLblPregunta4().getText(), 1);\n System.out.println(p4);\n r4 = v.getCbxPregunta4().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p5 = pdb.obtener_id(v.getLblPregunta5().getText(), 1);\n System.out.println(p5);\n r5 = v.getCbxPregunta5().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p6 = pdb.obtener_id(v.getLblPregunta6().getText(), 1);\n System.out.println(p6);\n r6 = v.getCbxPregunta6().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p7 = pdb.obtener_id(v.getLblPregunta7().getText(), 1);\n System.out.println(p7);\n r7 = v.getCbxPregunta7().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p8 = pdb.obtener_id(v.getLblPregunta8().getText(), 1);\n System.out.println(p8);\n r8 = v.getCbxPregunta8().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p9 = pdb.obtener_id(v.getLblPregunta9().getText(), 1);\n System.out.println(p9);\n r9 = v.getCbxPregunta9().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p10 = pdb.obtener_id(v.getLblPregunta10().getText(), 1);\n System.out.println(p10);\n r10 = v.getCbxPregunta10().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p11 = pdb.obtener_id(v.getLblPregunta11().getText(), 1);\n System.out.println(p11);\n r11 = v.getCbxPregunta11().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p12 = pdb.obtener_id(v.getLblPregunta12().getText(), 1);\n System.out.println(p12);\n r12 = v.getCbxPregunta12().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p13 = pdb.obtener_id(v.getLblPregunta13().getText(), 1);\n System.out.println(p13);\n r13 = v.getCbxPregunta13().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p14 = pdb.obtener_id(v.getLblPregunta14().getText(), 1);\n System.out.println(p14);\n r14 = v.getCbxPregunta14().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p15 = pdb.obtener_id(v.getLblPregunta15().getText(), 1);\n System.out.println(p15);\n r15 = v.getCbxPregunta15().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p16 = pdb.obtener_id(v.getLblPregunta16().getText(), 1);\n System.out.println(p16);\n r16 = v.getCbxPregunta16().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p17 = pdb.obtener_id(v.getLblPregunta17().getText(), 1);\n System.out.println(p17);\n r17 = v.getCbxPregunta17().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p18 = pdb.obtener_id(v.getLblPregunta18().getText(), 1);\n System.out.println(p18);\n r18 = v.getCbxPregunta18().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p19 = pdb.obtener_id(v.getLblPregunta19().getText(), 1);\n System.out.println(p19);\n r19 = v.getCbxPregunta19().getSelectedItem().toString();\n //---------------------------------------------------------------------\n p20 = pdb.obtener_id(v.getLblPregunta20().getText(), 1);\n System.out.println(p20);\n r20 = v.getCbxPregunta20().getSelectedItem().toString();\n //------------------------------------------------------------------------------------------------------------------------------------------\n xrdb.insert_x_respuesta_r1(EncuestaDB.getEncuesta_codigo_static(), p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20,\n r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20);\n\n }", "title": "" }, { "docid": "feb5418d476f6272ca9a2a90d149af79", "score": "0.51683927", "text": "public void rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud)\n throws MareException{\n UtilidadesLog.info(\"DAOSolicitudes.rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud):Entrada\");\n Long oidConsolidado = null, oidPeriodo = null;\n RecordSet rs;\n StringBuffer query = new StringBuffer();\n\n query.append(\" SELECT MAX(SOL_ORIG.OID_SOLI_CABE) OID_SOLI_CABE, MAX(SOL_ORIG.PERD_OID_PERI) PERD_OID_PERI \");\n\n query.append(\" FROM PED_SOLIC_CABEC SOL_DEVO, \");\n query.append(\" PED_SOLIC_CABEC SOL_ORIG, \");\n query.append(\" PED_SOLIC_CABEC SOL_DEVUELTA, \");\n query.append(\" INC_SOLIC_CONCU_PUNTA SCP, \");\n query.append(\" PED_TIPO_SOLIC_PAIS PTSP, \");\n query.append(\" PED_TIPO_SOLIC PTS \");\n \n query.append(\" WHERE SOL_DEVO.OID_SOLI_CABE = \" + dtoSolicitud.getOidSolicitud().toString() );\n query.append(\" AND SOL_DEVO.SOCA_OID_DOCU_REFE = SOL_ORIG.OID_SOLI_CABE \");\n query.append(\" AND SOL_ORIG.OID_SOLI_CABE = SOL_DEVUELTA.SOCA_OID_SOLI_CABE \");\n query.append(\" AND SOL_DEVUELTA.OID_SOLI_CABE = SCP.SOCA_OID_SOLI_CABE \");\n query.append(\" AND SOL_DEVO.TSPA_OID_TIPO_SOLI_PAIS = PTSP.OID_TIPO_SOLI_PAIS \");\n query.append(\" AND PTSP.TSOL_OID_TIPO_SOLI = PTS.OID_TIPO_SOLI \");\n query.append(\" AND PTS.IND_DEVO = 1 \");\n \n try {\n rs = BelcorpService.getInstance().dbService.executeStaticQuery(query.toString());\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n if(! rs.esVacio() ){\n oidConsolidado = rs.getValueAt(0,\"OID_SOLI_CABE\" )!=null?\n new Long( ((BigDecimal)rs.getValueAt(0,\"OID_SOLI_CABE\" ) ).longValue() ):null;\n }\n \n if( oidConsolidado != null ){\n oidPeriodo = rs.getValueAt(0,\"PERD_OID_PERI\" )!=null?\n new Long( ((BigDecimal)rs.getValueAt(0,\"PERD_OID_PERI\" ) ).longValue() ):null; \n \n dtoSolicitud.setOidSolicitud( oidConsolidado );\n dtoSolicitud.setOidPeriodo( oidPeriodo );\n }\n\n UtilidadesLog.info(\"DAOSolicitudes.rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud):Salida\");\n }", "title": "" }, { "docid": "8c4a0ed93a4c4b450b55b8e1b9e899cf", "score": "0.51622903", "text": "public boolean modificar(DueñoMascota pro) {\n PreparedStatement ps = null;\n Connection con = getConexion();\n\n \n String sql = \"UPDATE datos SET nom_dueño=?, ap_dueño=?, tel=?,nom_mascota=?,observaciones=? WHERE id_datos=? \";\n\n try {\n ps = con.prepareStatement(sql);\n // ps.setInt(1, pro.getId()); //NÚMERe almacena\n ps.setString(1, pro.getNomDueño());\n ps.setString(2, pro.getApDueño());\n ps.setInt(3, pro.getTel());\n ps.setString(4, pro.getNomMascota());\n ps.setString(5, pro.getObservaciones());\n ps.setInt(6, pro.getId());\n ps.execute();\n ps.close();\n return true;\n } catch (SQLException e) {\n System.err.println(e);\n return false;\n } finally {\n try {\n con.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n }\n }", "title": "" }, { "docid": "a6c18fdcabf982e90c159a6783d9b030", "score": "0.5159791", "text": "public void listar_mais_vendeu(String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_MaisVendidas.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getMaisVendeu(tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal_vendido()});\n }\n \n \n }", "title": "" }, { "docid": "46ee602842705d265849580b3e44ffca", "score": "0.51557666", "text": "public boolean limpiarHorariosCRN() {\n\n if (conectado) {\n try {\n String Query = String.format(\n \"DELETE FROM horarioscrn WHERE anio = YEAR(NOW()) AND ciclo = CURRENT_CICLO()\");\n System.out.println(\"QUERY -> \" + Query);\n Statement st = Conexion.createStatement();\n System.out.println(st.toString());\n st.executeUpdate(Query);\n return true;\n } catch (SQLException ex) {\n Logy.me(ex.getMessage());\n Logy.me(\"Error!!! elimanando registros de tabla HORARIOSCNR de la DB\");\n return false;\n }\n } else {\n Logy.me(\"Error!!! no se ha establecido previamente una conexion a la DB\");\n return false;\n }\n }", "title": "" }, { "docid": "08b9ca2e848b36bf0c8dcc9122f0e3bd", "score": "0.5151347", "text": "private void cargarAutorizaciones() {\r\n\t\tif (parametros_empresa != null) {\r\n\t\t\tif (parametros_empresa.getTrabaja_autorizacion()) {\r\n\t\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\t\tadmision_seleccionada);\r\n\r\n\t\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\t\tIRutas_historia.PAGINA_AUTORIZACIONES,\r\n\t\t\t\t\t\t\"AUTORIZACIONES\", parametros);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "26048b88ded282be5a70b1e2dd2e9610", "score": "0.51508445", "text": "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 }", "title": "" }, { "docid": "92956eb841723dafbea2bfec621e5be5", "score": "0.5149453", "text": "public void buscar() { // ATENCION tengo dudas con % telefono% no sale ningun resultado. si sale con telefono%\n String nombre = AgendarA.txtBNombre.getText();\n String apellidos = AgendarA.txtBApellidos.getText();\n String ciudad = AgendarA.txtBCiudad.getText();\n\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY nombre\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.Apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,nombre,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,personalexterno.cedula,nombres,apellidos,municipios.Nombre FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true) {\n if (!nombre.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true) {\n if (!apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chCiudad.isSelected() == true) {\n if (!ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ninguno de los campos de busqueda esta seleccionado\");\n }\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n //desactivar_checkbox();\n }", "title": "" }, { "docid": "83739be1f96e900325ec39a6ff71ec12", "score": "0.5145078", "text": "private void mostraPesquisa(List<BeansLivro> livros) {\n // Limpa a tabela sempre que for solicitado uma nova pesquisa\n limparTabela();\n \n if (livros.isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nenhum registro encontrado.\");\n } else { \n // Linha em branco usada no for, para cada registro é criada uma nova linha \n String[] linha = new String[] {null, null, null, null, null, null, null};\n // P/ cada registro é criada uma nova linha, cada linha recebe os campos do registro\n for (int i = 0; i < livros.size(); i++) {\n tmLivro.addRow(linha);\n tmLivro.setValueAt(livros.get(i).getId(), i, 0);\n tmLivro.setValueAt(livros.get(i).getExemplar(), i, 1);\n tmLivro.setValueAt(livros.get(i).getAutor(), i, 2);\n tmLivro.setValueAt(livros.get(i).getEdicao(), i, 3);\n tmLivro.setValueAt(livros.get(i).getAno(), i, 4);\n tmLivro.setValueAt(livros.get(i).getDisponibilidade(), i, 5); \n } \n }\n }", "title": "" }, { "docid": "5e8839164600afef2af120fb178e30bf", "score": "0.5140107", "text": "public void carregarRegistro() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", anoSelecionado});\n\t\t\n\t\tif(listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(efetivo);\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(efetivo);\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}", "title": "" }, { "docid": "86c0b3f04c670982dd648c1b73c1aeb5", "score": "0.51370674", "text": "public DTOUnidadAdministrativa obtenerUAActiva(Long oidCliente, Long oidPeriodo) throws MareException {\n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerUAActiva(Long oidCliente, Long oidPeriodo): Entrada\"); \n BelcorpService bs;\n RecordSet resultado = new RecordSet();\n bs = UtilidadesEJB.getBelcorpService();\n\n DTOUnidadAdministrativa dtoS = new DTOUnidadAdministrativa();\n\n StringBuffer query = new StringBuffer();\n\n try {\n query.append(\" SELECT distinct sub.PAIS_OID_PAIS, sub.MARC_OID_MARC, sub.CANA_OID_CANA, OID_SUBG_VENT, \");\n query.append(\" OID_REGI, OID_ZONA, OID_SECC, TERR_OID_TERR, t.COD_NSE1, t.COD_NSE2, t.COD_NSE3, \");\n query.append(\" OID_TERR_ADMI, pi.FEC_INIC, unid.PERD_OID_PERI_INI, unid.PERD_OID_PERI_FIN \");\n query.append(\" FROM MAE_CLIEN_UNIDA_ADMIN unid, \");\n query.append(\" ZON_TERRI_ADMIN tadm, \");\n query.append(\" \t ZON_TERRI t, \");\n query.append(\" \t ZON_SECCI, \");\n query.append(\" \t ZON_ZONA, \");\n query.append(\" \t ZON_REGIO, \");\n query.append(\" \t ZON_SUB_GEREN_VENTA sub, \");\n query.append(\" CRA_PERIO pi, \");\n query.append(\" \t CRA_PERIO pi2 \");\n query.append(\" WHERE unid.CLIE_OID_CLIE = \" + oidCliente);\n query.append(\" AND unid.IND_ACTI = 1 \"); // Unidad Administrativa \"Activa\" \n query.append(\" AND unid.PERD_OID_PERI_INI = pi.OID_PERI \");\n query.append(\" AND pi.FEC_INIC <= (SELECT FEC_INIC FROM CRA_PERIO WHERE OID_PERI = \" + oidPeriodo + \")\");\n query.append(\" AND ((unid.PERD_OID_PERI_FIN = pi2.OID_PERI \");\n query.append(\" AND pi2.FEC_FINA >= (SELECT FEC_FINA FROM CRA_PERIO WHERE OID_PERI = \" + oidPeriodo + \") )\");\n query.append(\" OR unid.PERD_OID_PERI_FIN is NULL) \");\n query.append(\" AND ZTAD_OID_TERR_ADMI = OID_TERR_ADMI \");\n query.append(\" AND TERR_OID_TERR = OID_TERR \");\n query.append(\" AND ZSCC_OID_SECC = OID_SECC \");\n query.append(\" AND ZZON_OID_ZONA = OID_ZONA \");\n query.append(\" AND ZORG_OID_REGI = OID_REGI \");\n query.append(\" AND ZSGV_OID_SUBG_VENT = OID_SUBG_VENT \"); \n query.append(\" order by pi.FEC_INIC desc \");\n\n bs = BelcorpService.getInstance();\n resultado = bs.dbService.executeStaticQuery(query.toString());\n } catch (Exception e) {\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n if (resultado.esVacio()) {\n UtilidadesLog.debug(\"...no hay registros de obtenerUAActiva\");\n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerUAActiva(Long oidCliente, Long oidPeriodo): Salida\"); \n return null;\n } else {\n UtilidadesLog.debug(\"...resultado de obtenerUAActiva es: \" + resultado);\n dtoS.setNSE1(objToString(resultado.getValueAt(0, \"COD_NSE1\")));\n dtoS.setNSE2(objToString(resultado.getValueAt(0, \"COD_NSE2\")));\n dtoS.setNSE3(objToString(resultado.getValueAt(0, \"COD_NSE3\")));\n dtoS.setOidCanal(objToLong(resultado.getValueAt(0, \"CANA_OID_CANA\")));\n dtoS.setOidMarca(objToLong(resultado.getValueAt(0, \"MARC_OID_MARC\")));\n dtoS.setOidPais(objToLong(resultado.getValueAt(0, \"PAIS_OID_PAIS\")));\n dtoS.setOidRegion(objToLong(resultado.getValueAt(0, \"OID_REGI\")));\n dtoS.setOidSeccion(objToLong(resultado.getValueAt(0, \"OID_SECC\")));\n dtoS.setOidSGV(objToLong(resultado.getValueAt(0, \"OID_SUBG_VENT\")));\n dtoS.setOidTerritorio(objToLong(resultado.getValueAt(0, \"TERR_OID_TERR\")));\n dtoS.setOidTerritorioAdministrativo(objToLong(resultado.getValueAt(0, \"OID_TERR_ADMI\")));\n dtoS.setOidZona(objToLong(resultado.getValueAt(0, \"OID_ZONA\")));\n \n dtoS.setOidCliente(oidCliente);\n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerUAActiva(Long oidCliente, Long oidPeriodo): Salida\"); \n return dtoS;\n }\n }", "title": "" }, { "docid": "f5e1a44310e769785bf9975504b05b87", "score": "0.51306355", "text": "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 }", "title": "" }, { "docid": "a879b9442027a8dbfbd8196e79e1b009", "score": "0.5128392", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n btnActalizar = new javax.swing.JButton();\n btnGuardar = new javax.swing.JButton();\n btnEliminar = new javax.swing.JButton();\n btnNuevo = new javax.swing.JButton();\n txtIdPuesto = new javax.swing.JTextField();\n txtNombre = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n tablaPuestos = new javax.swing.JTable();\n cbEstatus = new javax.swing.JComboBox<>();\n txtSalarioMin = new javax.swing.JTextField();\n txtSalarioMax = new javax.swing.JTextField();\n btnRegresar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"idPuesto\");\n\n jLabel2.setText(\"nombre\");\n\n jLabel3.setText(\"salarioMin\");\n\n jLabel4.setText(\"salarioMax\");\n\n jLabel5.setText(\"estatus\");\n\n btnActalizar.setText(\"ACTUALIZAR\");\n btnActalizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnActalizarActionPerformed(evt);\n }\n });\n\n btnGuardar.setText(\"GUARDAR\");\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n\n btnEliminar.setText(\"ELIMINAR\");\n btnEliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEliminarActionPerformed(evt);\n }\n });\n\n btnNuevo.setText(\"NUEVO\");\n btnNuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNuevoActionPerformed(evt);\n }\n });\n\n tablaPuestos.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tablaPuestos.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tablaPuestosMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(tablaPuestos);\n\n cbEstatus.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"A\", \"I\" }));\n\n btnRegresar.setText(\"Regresar\");\n btnRegresar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegresarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnActalizar)\n .addGap(18, 18, 18)\n .addComponent(btnGuardar)\n .addGap(18, 18, 18)\n .addComponent(btnEliminar)\n .addGap(18, 18, 18)\n .addComponent(btnNuevo)\n .addGap(18, 18, 18)\n .addComponent(btnRegresar)\n .addContainerGap(13, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel4))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(cbEstatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(txtSalarioMax, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel1))\n .addGap(18, 18, 18))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(36, 36, 36)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE)\n .addComponent(txtIdPuesto)\n .addComponent(txtSalarioMin))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 264, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(19, 19, 19))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(txtIdPuesto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(txtSalarioMin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(13, 13, 13)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtSalarioMax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(cbEstatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnActalizar)\n .addComponent(btnGuardar)\n .addComponent(btnEliminar)\n .addComponent(btnNuevo)\n .addComponent(btnRegresar))\n .addContainerGap(35, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "63e2a9b8c45f248be45ec86d73bcda07", "score": "0.51270884", "text": "public void reloadTableEmpleado() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (listae.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Empleado object = listae.get(i);\n this.AddtoTableEmpleado(object);\n }\n\n }", "title": "" }, { "docid": "2640ed93e4a7b8ac5b00faa38073a35f", "score": "0.51262605", "text": "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}", "title": "" }, { "docid": "0e4e5b1f229db9cfb0186df9fc238ba6", "score": "0.5119242", "text": "@Override\n public void actualizarPorEstadoYFechaMax(FecetProrrogaOrden prorroga, AgaceOrden orden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_UPDATE).append(getTableName());\n query.append(\" SET ID_ESTATUS = ? WHERE FECHA_CARGA = (SELECT MAX(FECHA_CARGA) FROM FECET_PRORROGA_ORDEN \");\n query.append(\" WHERE ID_ORDEN = ?)\");\n\n getJdbcTemplateBase().update(query.toString(), prorroga.getIdEstatus(), orden.getIdOrden());\n\n }", "title": "" }, { "docid": "5ba5e7e81a9cf984e0a5fff66329c195", "score": "0.51153666", "text": "private void criaListaOrdenada(List<Tipo> listaOrdenada, List<AgrupamentoTipoBean> valoresMap) {\n\t\tfor (AgrupamentoTipoBean agrupamentoTipoBean : valoresMap) {\n\t\t\tlistaOrdenada.add(agrupamentoTipoBean.getTipoEvento());\n\t\t}\n\t}", "title": "" }, { "docid": "76096b599fc58d0d1011e38af5b19d29", "score": "0.5110748", "text": "public RecordSet obtenerResumen(DTOResumen dtoe) throws MareException{\n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Entrada\");\n \n RecordSet rs = new RecordSet();\n StringBuffer query = new StringBuffer();\n BelcorpService bs;\n try\n { bs = BelcorpService.getInstance();\n }\n catch(MareMiiServiceNotFoundException ex)\n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID,CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" gen.VAL_I18N AS CANAL, \");\n query.append(\" sma.DES_MARC AS MARCA, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" gen2.VAL_I18N AS REGION, \");\n query.append(\" gen3.VAL_I18N AS ZONA, \");\n query.append(\" secc.DES_SECCI AS SECCION, \");\n query.append(\" gen5.VAL_I18N AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" v_gen_i18n_sicc gen2, \");\n query.append(\" v_gen_i18n_sicc gen3, \");\n query.append(\" v_gen_i18n_sicc gen5, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" own_mare.principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" own_mare.users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.oid_usua_etap_cobr_deta \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \");\n query.append(\" AND gen2.val_oid(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen2.attr_enti(+) = 'ZON_REGIO' \");\n query.append(\" AND gen2.attr_num_atri(+) = 1 \");\n query.append(\" AND gen2.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen3.val_oid(+) = cdetal.zzon_oid_zona \");\n query.append(\" AND gen3.attr_enti(+) = 'ZON_ZONA' \");\n query.append(\" AND gen3.attr_num_atri(+) = 1 \");\n query.append(\" AND gen3.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND gen5.val_oid(+) = cdetal.terr_oid_terr \");\n query.append(\" AND gen5.attr_enti(+) = 'ZON_TERRI' \");\n query.append(\" AND gen5.attr_num_atri(+) = 1 \");\n query.append(\" AND gen5.idio_oid_idio(+) = '\" + dtoe.getOidIdioma() + \" ' \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = ccabe.usco_oid_usua_cobr \");\n */\n \n /*query.append(\" SELECT distinct p.IDPRINCIPAL AS OID, \");\n query.append(\" p.name AS USUARIO, \");\n */\n //Se le agega \"p.IDPRINCIPAL,\" segun BELC300017927 \n //query.append(\" SELECT distinct p.name AS USUARIO, \"); \n query.append(\" SELECT distinct p.IDPRINCIPAL, p.name AS USUARIO, \");\n query.append(\" CONCAT(p.name,CONCAT(' ',CONCAT(pv.STRINGVALUE,CONCAT(' ',CONCAT(pv2.STRINGVALUE,CONCAT(' ',CONCAT(pv3.STRINGVALUE,CONCAT(' ',pv4.STRINGVALUE)))))))) NOMBRE, \");\n query.append(\" sma.DES_MARC AS MARCA, \");\n query.append(\" gen.VAL_I18N AS CANAL, \"); \n query.append(\" subvta.DES_SUBG_VENT AS SUBGERVENTA, \");\n query.append(\" regio.DES_REGI AS REGION, \");\n query.append(\" zona.DES_ZONA AS ZONA, \"); \n \t query.append(\" secc.DES_SECCI AS SECCION, \"); \n query.append(\" terri.COD_TERR AS TERRITORIO \");\n query.append(\" FROM v_gen_i18n_sicc gen, \");\n query.append(\" SEG_CANAL canal, \");\n query.append(\" ZON_TERRI terri, \");\n query.append(\" ZON_ZONA zona, \");\n query.append(\" ZON_REGIO regio, \");\n query.append(\" seg_marca sma, \");\n query.append(\" zon_secci secc, \");\n query.append(\" cob_usuar_etapa_cobra_detal cdetal, \");\n query.append(\" zon_sub_geren_venta subvta, \");\n query.append(\" cob_usuar_etapa_cobra_cabec ccabe, \");\n query.append(\" cob_usuar_cobra usucob, \");\n query.append(\" principals p, \");\n query.append(\" propertyvalues pv, \");\n query.append(\" propertyvalues pv2, \");\n query.append(\" propertyvalues pv3, \");\n query.append(\" propertyvalues pv4, \");\n query.append(\" users u \");\n query.append(\" WHERE cdetal.zsgv_oid_subg_vent = subvta.oid_subg_vent \");\n query.append(\" AND ccabe.oid_usua_etap_cobr = cdetal.UECC_OID_USUA_ETAP_COBR \");\n query.append(\" AND secc.oid_secc(+) = cdetal.zscc_oid_secc \");\n query.append(\" AND sma.oid_marc = subvta.marc_oid_marc \");\n query.append(\" AND ccabe.usco_oid_usua_cobr = usucob.oid_usua_cobr \");\n query.append(\" AND gen.val_oid = subvta.cana_oid_cana \");\n query.append(\" AND gen.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND gen.attr_num_atri = 1 \");\n query.append(\" AND gen.idio_oid_idio = '1' \");\n query.append(\" AND pv.idproperty(+) = 2 \");\n query.append(\" AND pv.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv2.idproperty(+) = 3 \");\n query.append(\" AND pv2.idprincipal(+) = p.idprincipal \");\n query.append(\" AND pv3.idproperty = 5 \");\n query.append(\" AND pv3.idprincipal = p.idprincipal \");\n query.append(\" AND pv4.idproperty = 6 \");\n query.append(\" AND pv4.idprincipal = p.idprincipal \t\t \");\n query.append(\" AND terri.OID_TERR = cdetal.terr_oid_terr\t\t \");\n query.append(\" AND zona.OID_ZONA = cdetal.zzon_oid_zona\t\t \");\n query.append(\" AND regio.OID_REGI = cdetal.ZORG_OID_REGI\t\t \");\n query.append(\" AND u.iduser = p.idprincipal \");\n query.append(\" AND p.idprincipal = usucob.USER_OID_USUA_COBR \");\n \n /* Validaciones */\n if( dtoe.getOidMarca()!= null ){\n query.append(\" AND subvta.MARC_OID_MARC = \" + dtoe.getOidMarca() );\n }\n if( dtoe.getOidCanal() != null){\n query.append(\" AND subvta.CANA_OID_CANA = \" + dtoe.getOidCanal() );\n }\n if( dtoe.getOidSGV() != null ){\n query.append(\" AND subvta.OID_SUBG_VENT = \" + dtoe.getOidSGV() );\n }\n if( dtoe.getOidRegion() != null ){\n query.append(\" AND cdetal.ZORG_OID_REGI = \" + dtoe.getOidRegion() ); \n }\n if( dtoe.getOidZona() != null ){\n query.append(\" AND cdetal.ZZON_OID_ZONA = \" + dtoe.getOidZona() ); \n }\n if( dtoe.getOidSeccion() != null ){\n query.append(\" AND cdetal.ZSCC_OID_SECC = \" + dtoe.getOidSeccion() );\n }\n if( dtoe.getOidTerritorio() != null ){\n query.append(\" AND cdetal.TERR_OID_TERR = \" + dtoe.getOidTerritorio() );\n }\n UtilidadesLog.debug(\"query \" + query.toString() );\n try \n { rs = bs.dbService.executeStaticQuery(query.toString());\n }\n catch (Exception ex) \n { throw new MareException(ex, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n }\t\n \n UtilidadesLog.info(\"DAOParametrizacionCOB.obtenerResumen(DTOResumen dtoe): Salida\");\n \n return rs; \n }", "title": "" }, { "docid": "3b4c219ab691806215ba39b81c35c93f", "score": "0.51101655", "text": "protected void filtrarEstCid() {\r\n\t\tif (cmbx_cidade.getSelectedItem() != \"\" && cmbx_estado.getSelectedItem() != \"\") {\r\n\t\t\tStringBuilder filtracomando = new StringBuilder();\r\n\r\n\t\t\tfiltracomando\r\n\t\t\t\t\t.append(comando + \" WHERE ESTADO = '\" + Estado.validar(cmbx_estado.getSelectedItem().toString())\r\n\t\t\t\t\t\t\t+ \"' AND CIDADE = '\" + cmbx_cidade.getSelectedItem().toString() + \"'\");\r\n\t\t\tlistacliente = tabelaCliente.mostraRelatorio(filtracomando.toString());\r\n\r\n\t\t\ttablecliente.setModel(tabelaCliente);\r\n\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Escolha a Cidade e o Estado que deseja Filtrar\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7dfd0183b0f1b37e84790a0be8bcc9ad", "score": "0.5109636", "text": "private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }", "title": "" }, { "docid": "ae9aae617b8ed0389aa7f53e421328a3", "score": "0.5101169", "text": "public void excluirDados() {\n\n int linha;\n\n if (verificarAbaAtiva() == 0) {\n linha = HorarioDeTrabalho.getSelectedRow();\n modHT = (DefaultTableModel) HorarioDeTrabalho.getModel();\n tratDados.excluirDadosTabela(modHT, linha);\n txtEntrada_Horario.requestFocus();\n } else {\n linha = MarcacoesFeitas.getSelectedRow();\n modMF = (DefaultTableModel) MarcacoesFeitas.getModel();\n tratDados.excluirDadosTabela(modMF, linha);\n txtEntrada_Marcacoes.requestFocus();\n }\n \n //Limpa as tabelas de Atraso e Extras\n modAt.setRowCount(0);\n modEx.setRowCount(0);\n }", "title": "" }, { "docid": "327c05f69d2cf440b221786b57beac84", "score": "0.51010174", "text": "protected void pretragaGledalac() {\n\t\tString Gledalac=tfPretraga.getText();\r\n\r\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:Kontroler.getInstanca().vratiRezervacije()) {\r\n\t\t\tif(r.getImePrezime().toLowerCase().contains(Gledalac.toLowerCase())) {\r\n\t\t\t\r\n\t\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\t\tdtm.addRow(redovi);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7b6fb16ce986c1b3a73776b02722facd", "score": "0.5094506", "text": "public void verificarMatriculado() {\r\n\t\ttry {\r\n\t\t\tif (periodo == null)\r\n\t\t\t\tMensaje.crearMensajeERROR(\"ERROR AL BUSCAR PERIODO HABILITADO\");\r\n\t\t\telse {\r\n\t\t\t\tif (mngRes.buscarNegadoPeriodo(getDniEstudiante(), periodo.getPrdId()))\r\n\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\"Usted no puede realizar una reserva. Para más información diríjase a las oficinas de Bienestar Estudiantil.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\testudiante = mngRes.buscarMatriculadoPeriodo(getDniEstudiante(), periodo.getPrdId());\r\n\t\t\t\t\tif (estudiante == null) {\r\n\t\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\t\"Usted no esta registrado. Para más información diríjase a las oficinas de Bienestar Universitario.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmngRes.generarEnviarToken(getEstudiante());\r\n\t\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('dlgtoken').show();\");\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\tMensaje.crearMensajeERROR(\"Error verificar matrícula: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "619ef3657fc1f1884722bf953957f93c", "score": "0.5094124", "text": "public void carregarRegistroDoPrimeiroAno() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", Ano.PRIMEIRO});\n\t\t\n\t\tif (listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(listaAlunos.get(0));\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(listaAlunos.get(0));;\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}", "title": "" }, { "docid": "dbc1610661daa5ddb903d90c76752a34", "score": "0.50936776", "text": "private boolean guardarAutorizacionReserva(){\n java.sql.Connection conLoc;\n boolean blnRes=true;\n try{\n lblMsgSis.setText(\"Guardando datos...\");\n objCfgSer.cargaDatosIpHostServicios(0, intCodSer);\n pgrSis.setIndeterminate(true);\n int intNumFil=objTblMod.getRowCountTrue(), intCodEmp, intCodLoc, intCodCot;\n for (int i=0; i<intNumFil;i++){\n if (objUti.parseString(objTblMod.getValueAt(i,0)).equals(\"M\")){ \n intCodEmp=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_EMP).toString() );\n intCodLoc=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_LOC).toString() );\n intCodCot=Integer.parseInt(tblDat.getValueAt(i,INT_TBL_DAT_COD_COT).toString() );\n if(objTblMod.isChecked(i, INT_TBL_DAT_CHK_AUTORIZAR)){\n if(validaStock(intCodEmp, intCodLoc, intCodCot)){\n if(validaControlesCxC(intCodEmp, intCodLoc, intCodCot)){\n if(validaDatosAutorizacion(i,intCodEmp, intCodLoc,intCodCot)){\n // AUTORIZACION\n if(tblDat.getValueAt(i, INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"F\")){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(objDatItm.modificaItemTerminalOcupado(intCodEmp, intCodLoc, intCodCot)){\n if(guardarAutorizacionFacturacionAutomatica(conLoc,i,intCodEmp,intCodLoc,intCodCot)){\n conLoc.commit(); \n objGenOD.imprimirOdxRes(conLoc, getCodigoSeguimiento(conLoc,intCodEmp,intCodLoc,intCodCot), objCfgSer.getIpHost());\n blnCotVen=true;\n }else{\n blnRes=false;\n conLoc.rollback();\n blnCotVen=false;\n }\n }else{\n blnRes=false;\n conLoc.rollback();\n blnCotVen=false;\n }\n conLoc.close();\n conLoc=null; \n }\n }\n else if(tblDat.getValueAt(i,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(guardarAutorizacionReservaEmpresa(conLoc,i ,intCodEmp,intCodLoc, intCodCot)){\n conLoc.commit();\n objGenOD.imprimirOdxRes(conLoc, getCodigoSeguimiento(conLoc,intCodEmp,intCodLoc,intCodCot), objCfgSer.getIpHost());\n }\n else{\n blnRes=false;\n conLoc.rollback();\n }\n conLoc.close();\n conLoc=null; \n }\n }\n }\n }\n else{\n blnRes=false;\n }\n }\n else{\n blnRes=false;\n }\n }else if(objTblMod.isChecked(i,INT_TBL_DAT_CHK_DENEGAR)){\n /* DENEGAR */\n if(revisarCotizacionPendiente(intCodEmp,intCodLoc,intCodCot)){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n if(conLoc!=null){\n conLoc.setAutoCommit(false);\n if(cambiarEstadoCotizacionDenegada(conLoc,intCodEmp,intCodLoc,intCodCot)){\n conLoc.commit();\n enviarCorreoSolicitudDenegada(intCodEmp,intCodLoc,intCodCot);\n }\n else{\n conLoc.rollback();\n }\n }\n conLoc.close();\n conLoc=null;\n }\n else{\n MensajeInf(\"La cotizacion \"+intCodCot+\" no se puede denegar, ya ha sido autorizada. Debe solicitar cancelacion. \");\n }\n }\n blnRes=false;\n blnGenSolTra=false;\n }\n }\n pgrSis.setIndeterminate(false);\n \n if(!blnIsCotVen){\n conLoc=DriverManager.getConnection(objParSis.getStringConexion(),objParSis.getUsuarioBaseDatos(),objParSis.getClaveBaseDatos());\n cargarDetReg(conLoc);\n conLoc.close();\n conLoc=null;\n }\n blnRes=true;\n }\n catch (java.sql.SQLException e) { \n objUti.mostrarMsgErr_F1(this, e); \n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n } \n return blnRes;\n }", "title": "" }, { "docid": "84df07cf772339c6928002cc5c9393fa", "score": "0.5092452", "text": "private JTable itensNaoRecebidos() {\n\t\tinitConexao();\t\t\n try {\t \n\t String select = \"SELECT cod_item_r, nome_item_r, valor_item_r FROM Item_receita WHERE recebimento_item_r = '0'\";\n\t PreparedStatement ptStatement = c.prepareStatement(select);\n\t rs = ptStatement.executeQuery();\n\t \n\t Object[] colunas = {\"Item de receita\", \"Valor total\", \"\", \"code\"}; \t\t\n\t\t\t DefaultTableModel model = new DefaultTableModel();\t\t \n\t\t\t model.setColumnIdentifiers(colunas); \t\t \n\t\t\t Vector<Object[]> linhas = new Vector<Object[]>(); \n\t\t\t \n\t while (rs.next()){\n\t\t linhas.add(new Object[]{rs.getString(\"nome_item_r\"),rs.getString(\"valor_item_r\"),\"Receber\", rs.getString(\"cod_item_r\")}); \t \t\n\t \t } \n\t \n\t\t\t for (Object[] linha : linhas) { \n\t\t model.addRow(linha); \n\t\t } \t\t \n\t\t\t final JTable tarefasTable = new JTable(); \t\t \n\t\t\t tarefasTable.setModel(model); \t\t\n\t\t\t \n\t\t\t ButtonColumn buttonColumn = new ButtonColumn(tarefasTable, 2, \"itemNaoRecebido\");\n\t\t\t \n\t\t\t tarefasTable.removeColumn(tarefasTable.getColumn(\"code\")); \t \n\t return tarefasTable; \n } catch (SQLException ex) {\n System.out.println(\"ERRO: \" + ex);\n }\n\t\treturn null; \n\t}", "title": "" }, { "docid": "e6a9e8f2c3c1325eb845a91e50a95a0b", "score": "0.5081422", "text": "public void crearModelo() {\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE tipo='agricultor' AND personalexterno.idMunicipio=municipios.idMunicipio\");\n tbl.alinearHeaderTable(AgendarA.tblAgricultor, headerColumnas);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n }", "title": "" }, { "docid": "8c0c2d3f939db8c788ff2ecea5206f67", "score": "0.50800556", "text": "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e167a7bf6d85aa2a71e12944db9c98bc", "score": "0.50777054", "text": "public void localizarDados(int idOrcamento){\n OrcamentoCursoController orcamentoCursoController = new OrcamentoCursoController();\n this.orcamentocurso = orcamentoCursoController.consultar(idOrcamento);\n if (orcamentocurso!=null){\n ClienteController clienteController = new ClienteController();\n cliente = clienteController.consultar(orcamentocurso.getCliente());\n if (cliente!=null){\n parajTextField.setText(cliente.getEmail());\n }\n }\n }", "title": "" }, { "docid": "b4160ac15555a08f15d183c6968bd0e8", "score": "0.5072029", "text": "private void almacenarFallos() {\n BaseDatos bd = new BaseDatos(this);\n// Log.i(\"FALLOS\",\"Nmero de fallos final: \"+fallos);\n bd.updatePalabra(palabraActual.getId(),fallos);\n\n bd.close();\n }", "title": "" }, { "docid": "bda613e002e5cc3c741ba9d7dda7f07c", "score": "0.50694144", "text": "private void validarObligaciones(TituloPropiedad pTitulo, Persona pPersonaAnterior, Persona pPersonaNueva) {\n\t\tList<ObligacionRfr> locListaObligacionesParcela = Criterio.getInstance(entityManager, DocHabEspecializadoRfr.class)\n\t\t\t\t.add(Restriccion.IGUAL(\"parcela\", ((TituloPropiedadParcelario) pTitulo).getParcela())).setProyeccion(Proyeccion.PROP(\"obligacion\")).list();\n\t\tif(!locListaObligacionesParcela.isEmpty()) {\n\t\t\t// ID = 0 significa que es una persona temporal, usada en la\n\t\t\t// migración, y no debería generar actualización de deudas,\n\t\t\t// solo cambiar el titular.\n\t\t\t// if (pPersonaAnterior.getIdPersona() == 0) {\n\t\t\tfor(ObligacionRfr cadaObligacion : locListaObligacionesParcela) {\n\t\t\t\tcadaObligacion.setPersona(pPersonaNueva);\n\t\t\t}\n\t\t\t// }\n\t\t}\n\t}", "title": "" }, { "docid": "08a744a985967d10c494316ba6a2860d", "score": "0.50610274", "text": "public void reloadTableCliente() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (lista.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Cliente object = lista.get(i);\n this.AddtoTableCliente(object);\n }\n\n }", "title": "" }, { "docid": "878520945ff3be56358851c57a2e7167", "score": "0.50610125", "text": "public CrGrupoFormulario[] findWhereIdEstatusEquals(int idEstatus) throws CrGrupoFormularioDaoException;", "title": "" }, { "docid": "1d68f71743772a0f877e211e83985dfa", "score": "0.5057568", "text": "public boolean insertarOrdenador(Ordenador o) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\tSimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\n\t\t\tXPathQueryService consulta = (XPathQueryService) col.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tconsulta.query(\"update insert \"\n\t\t\t\t\t+ \"<ordenador codigo='\"+o.getCodigo()+\"' fecha='\"+\n\t\t\t\t\t formato.format(o.getFecha())+\"'>\"\n\t\t\t\t\t + \"<piezas/>\" +\n\t\t\t\t\t \"<precio>0</precio>\" \n\t\t\t\t\t+\"</ordenador>\"\n\t\t\t\t\t+ \"into /ordenadores\");\n\t\t\tresultado=true;\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "title": "" }, { "docid": "db716649474d83fa6cf4933524697b68", "score": "0.50552434", "text": "public void rePintarTablero() {\n int colorArriba = turnoComputadora != 0 ? turnoComputadora : -1;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n if (x % 2 == 0) {\n tablero[x][y].setFondo(y % 2 == 1 ? getNegro() : getBlanco());\n tablero[x][y].setResaltar(y % 2 == 1 ? getNegroResaltado() : getBlancoResaltado());\n } else {\n tablero[x][y].setFondo(y % 2 == 0 ? getNegro() : getBlanco());\n tablero[x][y].setResaltar(y % 2 == 0 ? getNegroResaltado() : getBlancoResaltado());\n }\n tablero[x][y].setBounds(anchoCuadro * (colorArriba == -1 ? x : (7 - x)), altoCuadro * (colorArriba == -1 ? y : (7 - y)), anchoCuadro, altoCuadro);\n }\n }\n }", "title": "" }, { "docid": "0d45867f4a519af8e9a9e394e13e374e", "score": "0.50533473", "text": "Tablero consultarTablero();", "title": "" }, { "docid": "d23514d9517193f5bbc634f804d80f28", "score": "0.5052778", "text": "private void Actualizar_Tabla() {\n String[] columNames = {\"iditem\", \"codigo\", \"descripcion\", \"p_vent\", \"p_comp\", \"cant\", \"fecha\"};\n dtPersona = db.Select_Item();\n // se colocan los datos en la tabla\n DefaultTableModel datos = new DefaultTableModel(dtPersona, columNames);\n jTable1.setModel(datos);\n }", "title": "" }, { "docid": "bb03591f5bc69b47bf0b53a3a7670884", "score": "0.5049249", "text": "private void cargarRegistro() {\n\t\tif (filaId != null) {\n\t\t\tCursor bar = bdHelper.getBar(filaId);\n // Indicamos que queremos controlar el Cursor\n\t\t\tstartManagingCursor(bar);\n\n\t\t\t// Obtenemos el campo categoria\n\t\t\tString categoria = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_CATEGORIA));\n\t\t\t// Seleccionamos la categoría en el Spinner\n\t\t\tfor (int i=0; i<categoriaSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) categoriaSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(categoria)){\n\t\t\t\t\tcategoriaSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Obtenemos el campo relacion calidad-precio\n\t\t\tString relacion = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_RELACION));\n\t\t\t// Seleccionamos en el Spinner la relacion c-p\n\t\t\tfor (int i=0; i<relacionSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) relacionSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(relacion)){\n\t\t\t\t\trelacionSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Obtenemos el campo del acompañante\n\t\t\tString acompanante = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_ACOMPANANTE));\n\t\t\t// Seleccionamos el formato en el Spinner\n\t\t\tfor (int i=0; i<acompananteSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) acompananteSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(acompanante)){\n\t\t\t\t\tacompananteSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Rellenamos las Vistas\n\t\t\tnombreText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_NOMBRE)));\n\t\t\tdireccionText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_DIRECCION)));\n\t\t\tnotasText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_NOTAS)));\n\t\t\tprecioText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_PRECIO)));\n\t\t\tvaloracionRB.setRating(bar.getFloat(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_VALORACION)));\n\n // Tratamos las fechas del registro\n\t\t\tlong fecha = bar.getLong(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_FEC_ULT_VIS));\n\t\t\tprimeraFecha.setTimeInMillis(fecha);\n\t\t\tfecha = bar.getLong(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_FEC_PRI_VIS));\n\t\t\tif (fecha>0) {\n\t\t\t\tultimaFecha=Calendar.getInstance();\n\t\t\t\tultimaFecha.setTimeInMillis(fecha);\n\t\t\t}\n\t\t\t// Dejamos de controlar el cursor de la BD\n\t\t\tstopManagingCursor(bar);\n\t\t}\n\t}", "title": "" }, { "docid": "6d04b7738485c4f29799d0035b32bcdd", "score": "0.50436735", "text": "public Collection<OsAtividadePeriodoExecucao> obterOsAtividadePeriodoExecucaoPorOS(Integer idOS, Date dataRoteiro)\n\t\t\t\t\tthrows ErroRepositorioException{\n\n\t\tCollection<Object[]> retornoConsulta = null;\n\t\tCollection<OsAtividadePeriodoExecucao> colecaoOsPeriodo = new ArrayList();\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tString consulta = \"\";\n\t\ttry{\n\n\t\t\tconsulta = \"SELECT DISTINCT osAtividadePeriodoExecucao.id, \" // 0\n\t\t\t\t\t\t\t+ \"osAtividadePeriodoExecucao.dataInicio, \" // 1\n\t\t\t\t\t\t\t+ \"osAtividadePeriodoExecucao.dataFim \" // 2\n\t\t\t\t\t\t\t+ \"FROM OsAtividadePeriodoExecucao osAtividadePeriodoExecucao \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osAtividadePeriodoExecucao.ordemServicoAtividade ordemServicoAtividade \"\n\t\t\t\t\t\t\t// + \"INNER JOIN ordemServicoAtividade.ordemServico ordemServico \"\n\t\t\t\t\t\t\t+ \"WHERE ordemServicoAtividade.ordemServico.id = :idOS \"\n\t\t\t\t\t\t\t+ \"AND osAtividadePeriodoExecucao.dataFim <= :dataRoteiro \" + \"ORDER BY osAtividadePeriodoExecucao.id \";\n\n\t\t\tretornoConsulta = (Collection<Object[]>) session.createQuery(consulta).setInteger(\"idOS\", idOS)\n\t\t\t\t\t\t\t.setDate(\"dataRoteiro\", dataRoteiro).list();\n\n\t\t\tif(retornoConsulta != null && !retornoConsulta.isEmpty()){\n\n\t\t\t\tOsAtividadePeriodoExecucao osAtividadePeriodoExecucao = null;\n\n\t\t\t\tfor(Object[] periodo : retornoConsulta){\n\n\t\t\t\t\tosAtividadePeriodoExecucao = new OsAtividadePeriodoExecucao();\n\n\t\t\t\t\tosAtividadePeriodoExecucao.setId((Integer) periodo[0]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataInicio((Date) periodo[1]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataFim((Date) periodo[2]);\n\n\t\t\t\t\tcolecaoOsPeriodo.add(osAtividadePeriodoExecucao);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\t\treturn colecaoOsPeriodo;\n\t}", "title": "" } ]
530d0a1b08c86a7a34d5d1f0b785a70d
optional string result_yn = 8;
[ { "docid": "904f9bb1f91714196cbf71b2d9610d90", "score": "0.0", "text": "public com.google.protobuf.ByteString\n getResultYnBytes() {\n java.lang.Object ref = resultYn_;\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 resultYn_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" } ]
[ { "docid": "f29127329ad82ec9aa5099e02d886f34", "score": "0.7237755", "text": "java.lang.String getResultYn();", "title": "" }, { "docid": "f29127329ad82ec9aa5099e02d886f34", "score": "0.7237755", "text": "java.lang.String getResultYn();", "title": "" }, { "docid": "f29127329ad82ec9aa5099e02d886f34", "score": "0.7237755", "text": "java.lang.String getResultYn();", "title": "" }, { "docid": "f29127329ad82ec9aa5099e02d886f34", "score": "0.7237316", "text": "java.lang.String getResultYn();", "title": "" }, { "docid": "f29127329ad82ec9aa5099e02d886f34", "score": "0.7237316", "text": "java.lang.String getResultYn();", "title": "" }, { "docid": "a2f0fe71a5760c72eaa78d23b6a9342e", "score": "0.6971272", "text": "java.lang.String getIResultYn();", "title": "" }, { "docid": "bba7aa4c58dc795c1996b3ea3fcff276", "score": "0.66655546", "text": "public static String convertResult(String result)\n/* */ {\n/* 78 */ String resultStr = \" - \";\n/* 79 */ if (\"10\".equals(result)) {\n/* 80 */ resultStr = \"执行成功\";\n/* 81 */ } else if (\"20\".equals(result)) {\n/* 82 */ resultStr = \"执行失败\";\n/* */ }\n/* 84 */ return resultStr;\n/* */ }", "title": "" }, { "docid": "1adb898ac9e6b4f9d13256cfde9e6725", "score": "0.65059453", "text": "java.lang.String getResult();", "title": "" }, { "docid": "1adb898ac9e6b4f9d13256cfde9e6725", "score": "0.65059453", "text": "java.lang.String getResult();", "title": "" }, { "docid": "2d2176681b1a5f7cf953ae992e987241", "score": "0.6501879", "text": "public String getResultStr()\n/* */ {\n/* 59 */ this.resultStr = convertResult(getResult());\n/* 60 */ return this.resultStr;\n/* */ }", "title": "" }, { "docid": "8e27be9c5fe403821c068248987323ab", "score": "0.6440325", "text": "public void getResult(String result){\n this.result = result;\n }", "title": "" }, { "docid": "2fc22a942502e3a144684f22926310d7", "score": "0.6429808", "text": "java.lang.String getKyunResult();", "title": "" }, { "docid": "093ffd90f7877ca5e93b3d518a72f27d", "score": "0.64106303", "text": "@Override\n\t\tpublic void getReslt(String result) {\n\t\t}", "title": "" }, { "docid": "2b39b1f5d6bfef49d6244ac4630084ac", "score": "0.6384639", "text": "public Builder setResultYn(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00040000;\n resultYn_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a717e290d5294a4ddc4d4372944d28ce", "score": "0.63558674", "text": "public Builder setResultYn(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00008000;\n resultYn_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a717e290d5294a4ddc4d4372944d28ce", "score": "0.63558674", "text": "public Builder setResultYn(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00008000;\n resultYn_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "172b892bcd5161a6aed04b343f7ded44", "score": "0.6351763", "text": "public void setResultStr(String resultStr)\n/* */ {\n/* 69 */ this.resultStr = resultStr;\n/* */ }", "title": "" }, { "docid": "dae040be63c5ca00e9ac47531165353b", "score": "0.6326334", "text": "public void setResult(String result);", "title": "" }, { "docid": "4265ffcdd769e6737b644db913f33396", "score": "0.62591517", "text": "public Builder setResultYn(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n resultYn_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "916d4a029e2fac907597fb3fdd2fae2d", "score": "0.6254524", "text": "public Builder setResultYn(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField1_ |= 0x00000010;\n resultYn_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "672359f7cc56935bdc7fda1c6bcd03aa", "score": "0.6252535", "text": "java.lang.String getDefaultResult();", "title": "" }, { "docid": "043c89206f4ab287ae4e70b75438e084", "score": "0.6214461", "text": "void setResult(java.lang.String result);", "title": "" }, { "docid": "abdbafebca4b3062a11061563425c690", "score": "0.61896026", "text": "java.lang.String getAnswerb();", "title": "" }, { "docid": "4872f15abe7eb2647767e12faaf5e383", "score": "0.6123868", "text": "java.lang.String getAnswerg();", "title": "" }, { "docid": "324983003688950c23d9ad29515b6504", "score": "0.6103948", "text": "java.lang.String getResultVal();", "title": "" }, { "docid": "324983003688950c23d9ad29515b6504", "score": "0.6103948", "text": "java.lang.String getResultVal();", "title": "" }, { "docid": "324983003688950c23d9ad29515b6504", "score": "0.6103948", "text": "java.lang.String getResultVal();", "title": "" }, { "docid": "16b072cb39911e83c18e7d811ca5600c", "score": "0.60911244", "text": "public String resultat() {\n try {\n return ((new Integer(Integer.parseInt(param)*2)).toString());\n } catch (Exception e) {\n return (\"???\");\n }\n }", "title": "" }, { "docid": "8254d0c68165757c25d3d4f78b4c53ed", "score": "0.6088094", "text": "java.lang.String getAnswerc();", "title": "" }, { "docid": "58761be826ce4ddc828f3ab829077529", "score": "0.6085074", "text": "public String getResult();", "title": "" }, { "docid": "40cf3c74621242df8ee674f30e24d954", "score": "0.606834", "text": "String getAnswer();", "title": "" }, { "docid": "cb017596f047331cb195a85da513ea69", "score": "0.60546577", "text": "java.lang.String getAnswer();", "title": "" }, { "docid": "d069c31f1a933ffad9b0bc79ce7ce666", "score": "0.60469353", "text": "public void setString(String result){\n this.result = result;\n }", "title": "" }, { "docid": "1544c0792ce7ba1c7ca0d22c5929da65", "score": "0.604545", "text": "public void QRRecognitionResult(String res) {\n\t\t\t\n\t}", "title": "" }, { "docid": "dfda0cfb0b325f565c37d1d4e0c4d175", "score": "0.60432667", "text": "@Override\n public void Meter_ChaoBiao(String result) {\n\n }", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "dfaa11d5e721ed98fc877074228a19bf", "score": "0.60312146", "text": "int getEresult();", "title": "" }, { "docid": "444af36dd2a2ec731c00111395ecf6df", "score": "0.60245246", "text": "boolean hasResultYn();", "title": "" }, { "docid": "444af36dd2a2ec731c00111395ecf6df", "score": "0.60245246", "text": "boolean hasResultYn();", "title": "" }, { "docid": "444af36dd2a2ec731c00111395ecf6df", "score": "0.60245246", "text": "boolean hasResultYn();", "title": "" }, { "docid": "444af36dd2a2ec731c00111395ecf6df", "score": "0.60245246", "text": "boolean hasResultYn();", "title": "" }, { "docid": "444af36dd2a2ec731c00111395ecf6df", "score": "0.60245246", "text": "boolean hasResultYn();", "title": "" }, { "docid": "6018b492b9f19fc71d55230f84e20fc4", "score": "0.6021614", "text": "public Builder setIResultYn(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x08000000;\n iResultYn_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "10bcf4df3ffbe384428784b2a13ed490", "score": "0.60216117", "text": "int getResult();", "title": "" }, { "docid": "0de576418b51af8c397137d8e6a8f41d", "score": "0.6021279", "text": "java.lang.String getResultCode();", "title": "" }, { "docid": "0de576418b51af8c397137d8e6a8f41d", "score": "0.6021279", "text": "java.lang.String getResultCode();", "title": "" }, { "docid": "0de576418b51af8c397137d8e6a8f41d", "score": "0.6019729", "text": "java.lang.String getResultCode();", "title": "" }, { "docid": "d3026a9ab43722271de125966b71496b", "score": "0.6013656", "text": "java.lang.String getCplResult();", "title": "" }, { "docid": "d3026a9ab43722271de125966b71496b", "score": "0.6013656", "text": "java.lang.String getCplResult();", "title": "" }, { "docid": "d3026a9ab43722271de125966b71496b", "score": "0.6013656", "text": "java.lang.String getCplResult();", "title": "" }, { "docid": "d3026a9ab43722271de125966b71496b", "score": "0.601208", "text": "java.lang.String getCplResult();", "title": "" }, { "docid": "d3026a9ab43722271de125966b71496b", "score": "0.601208", "text": "java.lang.String getCplResult();", "title": "" }, { "docid": "d3026a9ab43722271de125966b71496b", "score": "0.601208", "text": "java.lang.String getCplResult();", "title": "" }, { "docid": "d3026a9ab43722271de125966b71496b", "score": "0.601208", "text": "java.lang.String getCplResult();", "title": "" }, { "docid": "d3026a9ab43722271de125966b71496b", "score": "0.601208", "text": "java.lang.String getCplResult();", "title": "" }, { "docid": "9d9d7d830f9f671d585e44fa91ab8728", "score": "0.600401", "text": "int getTrueanswer();", "title": "" }, { "docid": "05e7b2426ad76ec26d9a436db1c709d1", "score": "0.596305", "text": "public void setResult(String result) {\n this.result = result;\n }", "title": "" }, { "docid": "f7730ca13551d2bb3e04ed9235f1592c", "score": "0.5941429", "text": "java.lang.String getAnswerf();", "title": "" }, { "docid": "935fea5441d725696f5f1e444161c031", "score": "0.5938979", "text": "public String get_Result(){\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "dcb79a0ef1981e03b69f4c4f63584490", "score": "0.5938772", "text": "int getResponseResult();", "title": "" }, { "docid": "cbe22bd3a1ac8ad79a1fb1d5422ae630", "score": "0.59162694", "text": "protected void setResult(int r){\n\t\tresult = r;\n\t}", "title": "" }, { "docid": "c5c95b11b8f59947fd4e0962cb60fcb0", "score": "0.5909755", "text": "public java.lang.String getResultYn() {\n java.lang.Object ref = resultYn_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n resultYn_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "c5c95b11b8f59947fd4e0962cb60fcb0", "score": "0.5909755", "text": "public java.lang.String getResultYn() {\n java.lang.Object ref = resultYn_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n resultYn_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "c5c95b11b8f59947fd4e0962cb60fcb0", "score": "0.5909586", "text": "public java.lang.String getResultYn() {\n java.lang.Object ref = resultYn_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n resultYn_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "c5c95b11b8f59947fd4e0962cb60fcb0", "score": "0.5909586", "text": "public java.lang.String getResultYn() {\n java.lang.Object ref = resultYn_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n resultYn_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "c5c95b11b8f59947fd4e0962cb60fcb0", "score": "0.5908541", "text": "public java.lang.String getResultYn() {\n java.lang.Object ref = resultYn_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n resultYn_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7d6614e8f7dae7e4eff7d3ef54e9a00f", "score": "0.5907279", "text": "public java.lang.String getResultYn() {\n java.lang.Object ref = resultYn_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n resultYn_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "7d6614e8f7dae7e4eff7d3ef54e9a00f", "score": "0.59068227", "text": "public java.lang.String getResultYn() {\n java.lang.Object ref = resultYn_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n resultYn_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "7d6614e8f7dae7e4eff7d3ef54e9a00f", "score": "0.59060675", "text": "public java.lang.String getResultYn() {\n java.lang.Object ref = resultYn_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n resultYn_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "7d6614e8f7dae7e4eff7d3ef54e9a00f", "score": "0.59060675", "text": "public java.lang.String getResultYn() {\n java.lang.Object ref = resultYn_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n resultYn_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "7d6614e8f7dae7e4eff7d3ef54e9a00f", "score": "0.59060675", "text": "public java.lang.String getResultYn() {\n java.lang.Object ref = resultYn_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n resultYn_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "d43cccbc1797000e1f9eb1c344c9354f", "score": "0.5894835", "text": "public ResultXRay() {\r result_complete = \"0\";\r }", "title": "" }, { "docid": "d4b86c84520068f62a175ab24acd4605", "score": "0.58540857", "text": "public void set_Result(String res) {\r\n\t\tif(res != null) {\r\n\t\t\tresult = res;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0e8d12f82d5960abc30e4f393b5d2c62", "score": "0.58028734", "text": "public void setResult(String strResult) \n\t{\n\t\tthis.strResult = strResult;\n\t}", "title": "" }, { "docid": "23f91667fa01a1a774587534a4f00fb5", "score": "0.57966536", "text": "public String getResult(){\n return this.result;\n }", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.5796079", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.5796079", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.5796079", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.5796079", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.5796079", "text": "int getResultValue();", "title": "" }, { "docid": "daa16926a5c40b3eabbf8b163d1721cd", "score": "0.57790124", "text": "InstructionResult()\n{\n\t\n}", "title": "" }, { "docid": "c6fe2208779a11291266368de0784f43", "score": "0.5778714", "text": "java.lang.String getAnswerd();", "title": "" }, { "docid": "4ab5c3bdfbd82de09146b810df0aae18", "score": "0.5774366", "text": "boolean hasIResultYn();", "title": "" }, { "docid": "6b930657d2c9a3c8fd1fb45c3c1f57e6", "score": "0.57690686", "text": "String resultStringConverter(int resultString) {\n switch (resultString) {\n case ITestResult.SUCCESS:\n return Constants.TL_STATUS_PASS;\n case ITestResult.FAILURE:\n return Constants.TL_STATUS_FAIL;\n case ITestResult.SKIP:\n return Constants.TL_STATUS_SKIP;\n case ITestResult.SUCCESS_PERCENTAGE_FAILURE:\n return Constants.TL_STATUS_SUCCESS_PERCENTAGE_FAILURE;\n case ITestResult.STARTED:\n return Constants.TL_STATUS_STARTED;\n }\n return null;\n }", "title": "" }, { "docid": "00f40030ec58d7b83fd56d268af3282f", "score": "0.57651454", "text": "@Override\n public void result(String x) {\n\n\n }", "title": "" }, { "docid": "d1630469ae4932cc1de05122253f1a90", "score": "0.57594925", "text": "public void setResult(java.lang.String result) {\n\t\tthis.result = result;\n\t}", "title": "" }, { "docid": "fcd6865b72ca6f73c5adc18413b1c362", "score": "0.57451224", "text": "private static void showResult(String str)//顯示出運算結果,捨去尾數的小數值,處理溢位\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif ( str.contains(\".\") )//計算結果包含小數的情況\r\n\t\t\t{\r\n\t\t\t\tif ( str.contains(\"-\") )//小數且包含負號的情況,最多只能顯示11位數\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( str.contains(\"E\") && str.length() > 11 )//有指數的情況,取最前面的九位數字加上最後面的指數部分\r\n\t\t\t\t\t\tlab.setText( str.substring(0, 9) + str.substring( str.length()-2, str.length() ) );\r\n\t\t\t\t\telse if ( str.length() > 11 )//有小數點,有負數,沒有指數\r\n\t\t\t\t\t\tlab.setText( str.substring(0, 11) );\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tlab.setText(str);\r\n\t\t\t\t}\r\n\t\t\t\telse//有小數點但是沒有負號的情況\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( str.contains(\"E\") && str.length() > 10 )//有指數沒正負號的情況,取最前面的八位數字加上最後面的指數部分\r\n\t\t\t\t\t\tlab.setText( str.substring(0, 8) + str.substring( str.length()-2, str.length() ) );\r\n\t\t\t\t\telse if ( str.length() > 10 )//沒負號,沒指數,只有小數點\r\n\t\t\t\t\t\tlab.setText( str.substring(0, 10) );\r\n\t\t\t\t\telse//未溢位的情況\r\n\t\t\t\t\t\tlab.setText(str);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse//計算結果為整數的情況\r\n\t\t\t{\r\n\t\t\t\tif ( ( str.contains(\"-\") && str.length() > 10 ) || ( !str.contains(\"-\") && str.length() > 9 ) )//有負號的情況,超出十位數算溢位;無負號的情況,超出九位數算溢位\r\n\t\t\t\t\tlab.setText( \"Overflow\" );\r\n\t\t\t\telse//未溢位的情況\r\n\t\t\t\t\tlab.setText(str);\r\n\t\t\t}\r\n\r\n\t\t\tstr = lab.getText();\r\n\r\n\t\t\twhile ( str.contains(\".\") && str.endsWith(\"0\") )//除去小數點後面的0\r\n\t\t\t{\r\n\t\t\t\tStringBuffer sb = new StringBuffer( str );//因為必須要用delete();\r\n\t\t\t\tsb.deleteCharAt( sb.length()-1 );\r\n\t\t\t\tstr = sb.toString();\r\n\t\t\t\tlab.setText(str);\r\n\t\t\t}\r\n\t\t\tif ( str.endsWith(\".\") )//如果小數點後面已經沒有數字,除去小數點\r\n\t\t\t{\r\n\t\t\t\tStringBuffer sb = new StringBuffer( str );//因為必須要用delete();\r\n\t\t\t\tsb.deleteCharAt( sb.length()-1 );\r\n\t\t\t\tstr = sb.toString();\r\n\t\t\t\tlab.setText(str);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (StringIndexOutOfBoundsException ex)\r\n\t\t{\r\n\t\t\tlab.setText(\"Overflow\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "716b8a748e1591e8f21c33c8bad4f60a", "score": "0.5744727", "text": "public String getOutput(int testNum);", "title": "" }, { "docid": "0589eefcbfc820ac1fa7ad2afc82acce", "score": "0.5728883", "text": "public String getResultString() {\n switch (this.resultCode) {\n case NOT_FOUND_USB:\n return \"Kh\\u00f4ng ph\\u00e1t hi\\u1ec7n thi\\u1ebft b\\u1ecb USB token\";\n case WRONG_PIN:\n return \"Sai m\\u00e3 s\\u1ed1 pin!\";\n case SUCCESS:\n return \"T\\u1edd khai \\u0111\\u00e3 \\u0111\\u01b0\\u1ee3c g\\u1eedi th\\u00e0nh c\\u00f4ng t\\u1edbi VTax\";\n case BK_SUCCESS:\n return \"Bảng kê đã được ký thành công\";\n case LOI_XAC_THUC:\n return \"C\\u00f3 l\\u1ed7i khi x\\u00e1c th\\u1ef1c ch\\u1ee9ng th\\u01b0 s\\u1ed1\";\n case LOI_SERIAL:\n return \"Chứng thư số chưa được đăng ký với Vtax.\";\n case DA_KY_THANHCONG:\n return \"Đã ký thành công\";\n case EXCEL_DA_KY:\n return \"Bảng kê có nhiều hơn một chữ ký, vui lòng kiểm tra lại.\";\n case NOT_FORMAT:\n return \"Sai biểu mẫu tờ khai.\";\n case NOT_USER:\n return \"Tờ khai này không được đăng ký mã số thuế của bạn.\";\n case SERIAL_NOT_MATCH:\n return \"Vui lòng kiểm tra lại số serial number.\";\n case CERT_DUPLICATE:\n return \"Bạn phải đăng ký bằng một chứng thư số khác chứng thư cũ.\";\n case CERT_EXPIRED:\n return \"Chứng thư của bạn đã hết hạn sử dụng.\";\n case CERT_ISVALID:\n return \"Chứng thư của bạn không hợp lệ.\";\n default:\n return \"Có lỗi xảy ra trong quá trình ký.\";\n }\n }", "title": "" }, { "docid": "93f4fc0416744fdd3a5faa6330225022", "score": "0.57046735", "text": "public java.lang.String getIResultYn() {\n java.lang.Object ref = iResultYn_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n iResultYn_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "cadadf44a87b1349595de6343894a208", "score": "0.56637573", "text": "com.weizhu.proto.QAProtos.LikeAnswerResponse.Result getResult();", "title": "" } ]
0c8c69b5c1e8bba1ba28d973860088e6
there are no goto statements here, do nothing
[ { "docid": "589f5adc5da16a1a7b1ffd7179330d5e", "score": "0.0", "text": "public void compileLabelReferences(Scope currentScope, Iterator<Scope> subScopes) {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "1b4d71f5089f7cfb5a582b663e811f35", "score": "0.64334255", "text": "@Override public void noLoop() {}", "title": "" }, { "docid": "c26d9045cea0f1fdefda02ba72435e5c", "score": "0.62791616", "text": "private void doNothing() {\n\t}", "title": "" }, { "docid": "1e50900b38237040a2378e59e2e2f665", "score": "0.5928298", "text": "protected void nothing()\n\t{\n\n\t}", "title": "" }, { "docid": "a82e2b3e3071cf3926b755745f563d1a", "score": "0.5918625", "text": "static void unbelievable() {\n\t System.out.println(\"\\nInside unbelievable ...\");\n if (i == 0)\n System.out.println(\"weird!\");\n }", "title": "" }, { "docid": "218c5819784ecb9df11bb182bd88b42f", "score": "0.58590657", "text": "private void opFail() {\n StackEntry s;\n do {\n stk--;\n s = stack[stk];\n } while (s.isCall() && stk > 0);\n\n if (stk == 0) {\n\n matchFailed = true;\n pc = instructions.length - 1; // jump to the final instruction, always END\n return;\n }\n\n subjectPointer = s.getSubjectPosition();\n captureTop = s.getCaptureHeight();\n pc = s.getReturnAddress();\n }", "title": "" }, { "docid": "0a5652b305b6aa74f1d74cc622363ad9", "score": "0.58579856", "text": "private static void doSometingElse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "32483855008badb1798c25a778a986e9", "score": "0.5848641", "text": "for (...) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b83b65f6b223509013e909972be48b7b", "score": "0.5830324", "text": "Insn()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "a4251e824b3811c689358f1ea4964c5d", "score": "0.5812429", "text": "public void skipped();", "title": "" }, { "docid": "8dec380ef885f8581402ce64a4248c1c", "score": "0.5803671", "text": "@Override\n\t\t\tpublic void brake() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "3eafe6212a36c98c70068bf5b664f1c3", "score": "0.5790107", "text": "public final void run() {\n /*\n r11 = this;\n r0 = 0;\n r11.f456p = r0;\t Catch:{ Throwable -> 0x0030 }\n r0 = 0;\n r11.f457q = r0;\t Catch:{ Throwable -> 0x0030 }\n r0 = 0;\n r11.f458r = r0;\t Catch:{ Throwable -> 0x0030 }\n r0 = r11.f445e;\t Catch:{ Throwable -> 0x0030 }\n r1 = r11.f443c;\t Catch:{ Throwable -> 0x0030 }\n r1 = com.tencent.bugly.crashreport.common.info.C0706b.m149e(r1);\t Catch:{ Throwable -> 0x0030 }\n if (r1 != 0) goto L_0x0020;\n L_0x0015:\n r1 = 0;\n r2 = 0;\n r3 = 0;\n r4 = \"network is not available\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n L_0x001f:\n return;\n L_0x0020:\n if (r0 == 0) goto L_0x0025;\n L_0x0022:\n r1 = r0.length;\t Catch:{ Throwable -> 0x0030 }\n if (r1 != 0) goto L_0x003b;\n L_0x0025:\n r1 = 0;\n r2 = 0;\n r3 = 0;\n r4 = \"request package is empty!\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x0030:\n r0 = move-exception;\n r1 = com.tencent.bugly.proguard.C0757w.m457a(r0);\n if (r1 != 0) goto L_0x001f;\n L_0x0037:\n r0.printStackTrace();\n goto L_0x001f;\n L_0x003b:\n r1 = r11.f449i;\t Catch:{ Throwable -> 0x0030 }\n r2 = r11.f460t;\t Catch:{ Throwable -> 0x0030 }\n r2 = r1.m431a(r2);\t Catch:{ Throwable -> 0x0030 }\n r1 = r0.length;\t Catch:{ Throwable -> 0x0030 }\n r4 = (long) r1;\t Catch:{ Throwable -> 0x0030 }\n r4 = r4 + r2;\n r6 = 2097152; // 0x200000 float:2.938736E-39 double:1.0361308E-317;\n r1 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1));\n if (r1 < 0) goto L_0x0086;\n L_0x004d:\n r0 = \"[Upload] Upload too much data, try next time: %d/%d\";\n r1 = 2;\n r1 = new java.lang.Object[r1];\t Catch:{ Throwable -> 0x0030 }\n r4 = 0;\n r2 = java.lang.Long.valueOf(r2);\t Catch:{ Throwable -> 0x0030 }\n r1[r4] = r2;\t Catch:{ Throwable -> 0x0030 }\n r2 = 1;\n r4 = 2097152; // 0x200000 float:2.938736E-39 double:1.0361308E-317;\n r3 = java.lang.Long.valueOf(r4);\t Catch:{ Throwable -> 0x0030 }\n r1[r2] = r3;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m462e(r0, r1);\t Catch:{ Throwable -> 0x0030 }\n r1 = 0;\n r2 = 0;\n r3 = 0;\n r0 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0030 }\n r4 = \"over net consume: \";\n r0.<init>(r4);\t Catch:{ Throwable -> 0x0030 }\n r4 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r0 = r0.append(r4);\t Catch:{ Throwable -> 0x0030 }\n r4 = \"K\";\n r0 = r0.append(r4);\t Catch:{ Throwable -> 0x0030 }\n r4 = r0.toString();\t Catch:{ Throwable -> 0x0030 }\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x0086:\n r1 = \"[Upload] Run upload task with cmd: %d\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ Throwable -> 0x0030 }\n r3 = 0;\n r4 = r11.f444d;\t Catch:{ Throwable -> 0x0030 }\n r4 = java.lang.Integer.valueOf(r4);\t Catch:{ Throwable -> 0x0030 }\n r2[r3] = r4;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m460c(r1, r2);\t Catch:{ Throwable -> 0x0030 }\n r1 = r11.f443c;\t Catch:{ Throwable -> 0x0030 }\n if (r1 == 0) goto L_0x00a7;\n L_0x009b:\n r1 = r11.f446f;\t Catch:{ Throwable -> 0x0030 }\n if (r1 == 0) goto L_0x00a7;\n L_0x009f:\n r1 = r11.f447g;\t Catch:{ Throwable -> 0x0030 }\n if (r1 == 0) goto L_0x00a7;\n L_0x00a3:\n r1 = r11.f448h;\t Catch:{ Throwable -> 0x0030 }\n if (r1 != 0) goto L_0x00b3;\n L_0x00a7:\n r1 = 0;\n r2 = 0;\n r3 = 0;\n r4 = \"illegal access error\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x00b3:\n r1 = r11.f447g;\t Catch:{ Throwable -> 0x0030 }\n r1 = r1.m177c();\t Catch:{ Throwable -> 0x0030 }\n if (r1 != 0) goto L_0x00c7;\n L_0x00bb:\n r1 = 0;\n r2 = 0;\n r3 = 0;\n r4 = \"illegal local strategy\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x00c7:\n r3 = 0;\n r7 = new java.util.HashMap;\t Catch:{ Throwable -> 0x0030 }\n r7.<init>();\t Catch:{ Throwable -> 0x0030 }\n r2 = \"prodId\";\n r4 = r11.f446f;\t Catch:{ Throwable -> 0x0030 }\n r4 = r4.m116f();\t Catch:{ Throwable -> 0x0030 }\n r7.put(r2, r4);\t Catch:{ Throwable -> 0x0030 }\n r2 = \"bundleId\";\n r4 = r11.f446f;\t Catch:{ Throwable -> 0x0030 }\n r4 = r4.f130c;\t Catch:{ Throwable -> 0x0030 }\n r7.put(r2, r4);\t Catch:{ Throwable -> 0x0030 }\n r2 = \"appVer\";\n r4 = r11.f446f;\t Catch:{ Throwable -> 0x0030 }\n r4 = r4.f137j;\t Catch:{ Throwable -> 0x0030 }\n r7.put(r2, r4);\t Catch:{ Throwable -> 0x0030 }\n r2 = r11.f455o;\t Catch:{ Throwable -> 0x0030 }\n if (r2 == 0) goto L_0x00f3;\n L_0x00ee:\n r2 = r11.f455o;\t Catch:{ Throwable -> 0x0030 }\n r7.putAll(r2);\t Catch:{ Throwable -> 0x0030 }\n L_0x00f3:\n r2 = r11.f459s;\t Catch:{ Throwable -> 0x0030 }\n if (r2 == 0) goto L_0x015e;\n L_0x00f7:\n r2 = \"cmd\";\n r4 = r11.f444d;\t Catch:{ Throwable -> 0x0030 }\n r4 = java.lang.Integer.toString(r4);\t Catch:{ Throwable -> 0x0030 }\n r7.put(r2, r4);\t Catch:{ Throwable -> 0x0030 }\n r2 = \"platformId\";\n r4 = 1;\n r4 = java.lang.Byte.toString(r4);\t Catch:{ Throwable -> 0x0030 }\n r7.put(r2, r4);\t Catch:{ Throwable -> 0x0030 }\n r2 = \"sdkVer\";\n r4 = r11.f446f;\t Catch:{ Throwable -> 0x0030 }\n r4.getClass();\t Catch:{ Throwable -> 0x0030 }\n r4 = \"2.4.0\";\n r7.put(r2, r4);\t Catch:{ Throwable -> 0x0030 }\n r2 = \"strategylastUpdateTime\";\n r4 = r1.f171p;\t Catch:{ Throwable -> 0x0030 }\n r1 = java.lang.Long.toString(r4);\t Catch:{ Throwable -> 0x0030 }\n r7.put(r2, r1);\t Catch:{ Throwable -> 0x0030 }\n r1 = r11.f449i;\t Catch:{ Throwable -> 0x0030 }\n r1 = r1.m438a(r7);\t Catch:{ Throwable -> 0x0030 }\n if (r1 != 0) goto L_0x0137;\n L_0x012b:\n r1 = 0;\n r2 = 0;\n r3 = 0;\n r4 = \"failed to add security info to HTTP headers\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x0137:\n r1 = 2;\n r0 = com.tencent.bugly.proguard.C0761y.m506a(r0, r1);\t Catch:{ Throwable -> 0x0030 }\n if (r0 != 0) goto L_0x014a;\n L_0x013e:\n r1 = 0;\n r2 = 0;\n r3 = 0;\n r4 = \"failed to zip request body\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x014a:\n r1 = r11.f449i;\t Catch:{ Throwable -> 0x0030 }\n r0 = r1.m439a(r0);\t Catch:{ Throwable -> 0x0030 }\n if (r0 != 0) goto L_0x015e;\n L_0x0152:\n r1 = 0;\n r2 = 0;\n r3 = 0;\n r4 = \"failed to encrypt request body\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x015e:\n r6 = r0;\n r0 = r11.f449i;\t Catch:{ Throwable -> 0x0030 }\n r1 = r11.f450j;\t Catch:{ Throwable -> 0x0030 }\n r4 = java.lang.System.currentTimeMillis();\t Catch:{ Throwable -> 0x0030 }\n r0.m433a(r1, r4);\t Catch:{ Throwable -> 0x0030 }\n r0 = r11.f451k;\t Catch:{ Throwable -> 0x0030 }\n if (r0 == 0) goto L_0x0172;\n L_0x016e:\n r0 = r11.f451k;\t Catch:{ Throwable -> 0x0030 }\n r0 = r11.f444d;\t Catch:{ Throwable -> 0x0030 }\n L_0x0172:\n r0 = r11.f452l;\t Catch:{ Throwable -> 0x0030 }\n if (r0 == 0) goto L_0x017a;\n L_0x0176:\n r0 = r11.f452l;\t Catch:{ Throwable -> 0x0030 }\n r0 = r11.f444d;\t Catch:{ Throwable -> 0x0030 }\n L_0x017a:\n r2 = r11.f453m;\t Catch:{ Throwable -> 0x0030 }\n r5 = -1;\n r0 = 0;\n r1 = r0;\n r0 = r2;\n L_0x0180:\n r4 = r1 + 1;\n r2 = r11.f441a;\t Catch:{ Throwable -> 0x0030 }\n if (r1 >= r2) goto L_0x04ac;\n L_0x0186:\n r1 = 1;\n if (r4 <= r1) goto L_0x01b1;\n L_0x0189:\n r1 = \"[Upload] Failed to upload last time, wait and try(%d) again.\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ Throwable -> 0x0030 }\n r3 = 0;\n r8 = java.lang.Integer.valueOf(r4);\t Catch:{ Throwable -> 0x0030 }\n r2[r3] = r8;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m461d(r1, r2);\t Catch:{ Throwable -> 0x0030 }\n r1 = r11.f442b;\t Catch:{ Throwable -> 0x0030 }\n r2 = (long) r1;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0761y.m513b(r2);\t Catch:{ Throwable -> 0x0030 }\n r1 = r11.f441a;\t Catch:{ Throwable -> 0x0030 }\n if (r4 != r1) goto L_0x01b1;\n L_0x01a2:\n r0 = \"[Upload] Use the back-up url at the last time: %s\";\n r1 = 1;\n r1 = new java.lang.Object[r1];\t Catch:{ Throwable -> 0x0030 }\n r2 = 0;\n r3 = r11.f454n;\t Catch:{ Throwable -> 0x0030 }\n r1[r2] = r3;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m461d(r0, r1);\t Catch:{ Throwable -> 0x0030 }\n r0 = r11.f454n;\t Catch:{ Throwable -> 0x0030 }\n L_0x01b1:\n r1 = \"[Upload] Send %d bytes\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ Throwable -> 0x0030 }\n r3 = 0;\n r8 = r6.length;\t Catch:{ Throwable -> 0x0030 }\n r8 = java.lang.Integer.valueOf(r8);\t Catch:{ Throwable -> 0x0030 }\n r2[r3] = r8;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m460c(r1, r2);\t Catch:{ Throwable -> 0x0030 }\n r1 = r11.f459s;\t Catch:{ Throwable -> 0x0030 }\n if (r1 == 0) goto L_0x04b7;\n L_0x01c5:\n r0 = com.tencent.bugly.proguard.C0754u.m444a(r0);\t Catch:{ Throwable -> 0x0030 }\n r2 = r0;\n L_0x01ca:\n r0 = \"[Upload] Upload to %s with cmd %d (pid=%d | tid=%d).\";\n r1 = 4;\n r1 = new java.lang.Object[r1];\t Catch:{ Throwable -> 0x0030 }\n r3 = 0;\n r1[r3] = r2;\t Catch:{ Throwable -> 0x0030 }\n r3 = 1;\n r8 = r11.f444d;\t Catch:{ Throwable -> 0x0030 }\n r8 = java.lang.Integer.valueOf(r8);\t Catch:{ Throwable -> 0x0030 }\n r1[r3] = r8;\t Catch:{ Throwable -> 0x0030 }\n r3 = 2;\n r8 = android.os.Process.myPid();\t Catch:{ Throwable -> 0x0030 }\n r8 = java.lang.Integer.valueOf(r8);\t Catch:{ Throwable -> 0x0030 }\n r1[r3] = r8;\t Catch:{ Throwable -> 0x0030 }\n r3 = 3;\n r8 = android.os.Process.myTid();\t Catch:{ Throwable -> 0x0030 }\n r8 = java.lang.Integer.valueOf(r8);\t Catch:{ Throwable -> 0x0030 }\n r1[r3] = r8;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m460c(r0, r1);\t Catch:{ Throwable -> 0x0030 }\n r0 = r11.f448h;\t Catch:{ Throwable -> 0x0030 }\n r1 = r0.m410a(r2, r6, r11, r7);\t Catch:{ Throwable -> 0x0030 }\n if (r1 != 0) goto L_0x0216;\n L_0x01fc:\n r0 = \"Failed to upload for no response!\";\n r1 = \"[Upload] Failed to upload(%d): %s\";\n r3 = 2;\n r3 = new java.lang.Object[r3];\t Catch:{ Throwable -> 0x0030 }\n r8 = 0;\n r9 = 1;\n r9 = java.lang.Integer.valueOf(r9);\t Catch:{ Throwable -> 0x0030 }\n r3[r8] = r9;\t Catch:{ Throwable -> 0x0030 }\n r8 = 1;\n r3[r8] = r0;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m462e(r1, r3);\t Catch:{ Throwable -> 0x0030 }\n r3 = 1;\n r1 = r4;\n r0 = r2;\n goto L_0x0180;\n L_0x0216:\n r0 = r11.f448h;\t Catch:{ Throwable -> 0x0030 }\n r3 = r0.f412a;\t Catch:{ Throwable -> 0x0030 }\n r0 = r11.f459s;\t Catch:{ Throwable -> 0x0030 }\n if (r0 == 0) goto L_0x03d8;\n L_0x021e:\n if (r3 == 0) goto L_0x0226;\n L_0x0220:\n r0 = r3.size();\t Catch:{ Throwable -> 0x0030 }\n if (r0 != 0) goto L_0x0298;\n L_0x0226:\n r0 = \"[Upload] Headers is empty.\";\n r8 = 0;\n r8 = new java.lang.Object[r8];\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m461d(r0, r8);\t Catch:{ Throwable -> 0x0030 }\n r0 = 0;\n L_0x022f:\n if (r0 != 0) goto L_0x0300;\n L_0x0231:\n r0 = \"[Upload] Headers from server is not valid, just try again (pid=%d | tid=%d).\";\n r1 = 2;\n r1 = new java.lang.Object[r1];\t Catch:{ Throwable -> 0x0030 }\n r8 = 0;\n r9 = android.os.Process.myPid();\t Catch:{ Throwable -> 0x0030 }\n r9 = java.lang.Integer.valueOf(r9);\t Catch:{ Throwable -> 0x0030 }\n r1[r8] = r9;\t Catch:{ Throwable -> 0x0030 }\n r8 = 1;\n r9 = android.os.Process.myTid();\t Catch:{ Throwable -> 0x0030 }\n r9 = java.lang.Integer.valueOf(r9);\t Catch:{ Throwable -> 0x0030 }\n r1[r8] = r9;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m460c(r0, r1);\t Catch:{ Throwable -> 0x0030 }\n r0 = \"[Upload] Failed to upload for no status header.\";\n r1 = \"[Upload] Failed to upload(%d): %s\";\n r8 = 2;\n r8 = new java.lang.Object[r8];\t Catch:{ Throwable -> 0x0030 }\n r9 = 0;\n r10 = 1;\n r10 = java.lang.Integer.valueOf(r10);\t Catch:{ Throwable -> 0x0030 }\n r8[r9] = r10;\t Catch:{ Throwable -> 0x0030 }\n r9 = 1;\n r8[r9] = r0;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m462e(r1, r8);\t Catch:{ Throwable -> 0x0030 }\n if (r3 == 0) goto L_0x02f3;\n L_0x0266:\n r0 = r3.entrySet();\t Catch:{ Throwable -> 0x0030 }\n r1 = r0.iterator();\t Catch:{ Throwable -> 0x0030 }\n L_0x026e:\n r0 = r1.hasNext();\t Catch:{ Throwable -> 0x0030 }\n if (r0 == 0) goto L_0x02f3;\n L_0x0274:\n r0 = r1.next();\t Catch:{ Throwable -> 0x0030 }\n r0 = (java.util.Map.Entry) r0;\t Catch:{ Throwable -> 0x0030 }\n r3 = \"[key]: %s, [value]: %s\";\n r8 = 2;\n r8 = new java.lang.Object[r8];\t Catch:{ Throwable -> 0x0030 }\n r9 = 0;\n r10 = r0.getKey();\t Catch:{ Throwable -> 0x0030 }\n r8[r9] = r10;\t Catch:{ Throwable -> 0x0030 }\n r9 = 1;\n r0 = r0.getValue();\t Catch:{ Throwable -> 0x0030 }\n r8[r9] = r0;\t Catch:{ Throwable -> 0x0030 }\n r0 = java.lang.String.format(r3, r8);\t Catch:{ Throwable -> 0x0030 }\n r3 = 0;\n r3 = new java.lang.Object[r3];\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m460c(r0, r3);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x026e;\n L_0x0298:\n r0 = \"status\";\n r0 = r3.containsKey(r0);\t Catch:{ Throwable -> 0x0030 }\n if (r0 != 0) goto L_0x02af;\n L_0x02a0:\n r0 = \"[Upload] Headers does not contain %s\";\n r8 = 1;\n r8 = new java.lang.Object[r8];\t Catch:{ Throwable -> 0x0030 }\n r9 = 0;\n r10 = \"status\";\n r8[r9] = r10;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m461d(r0, r8);\t Catch:{ Throwable -> 0x0030 }\n r0 = 0;\n goto L_0x022f;\n L_0x02af:\n r0 = \"Bugly-Version\";\n r0 = r3.containsKey(r0);\t Catch:{ Throwable -> 0x0030 }\n if (r0 != 0) goto L_0x02c7;\n L_0x02b7:\n r0 = \"[Upload] Headers does not contain %s\";\n r8 = 1;\n r8 = new java.lang.Object[r8];\t Catch:{ Throwable -> 0x0030 }\n r9 = 0;\n r10 = \"Bugly-Version\";\n r8[r9] = r10;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m461d(r0, r8);\t Catch:{ Throwable -> 0x0030 }\n r0 = 0;\n goto L_0x022f;\n L_0x02c7:\n r0 = \"Bugly-Version\";\n r0 = r3.get(r0);\t Catch:{ Throwable -> 0x0030 }\n r0 = (java.lang.String) r0;\t Catch:{ Throwable -> 0x0030 }\n r8 = \"bugly\";\n r8 = r0.contains(r8);\t Catch:{ Throwable -> 0x0030 }\n if (r8 != 0) goto L_0x02e5;\n L_0x02d7:\n r8 = \"[Upload] Bugly version is not valid: %s\";\n r9 = 1;\n r9 = new java.lang.Object[r9];\t Catch:{ Throwable -> 0x0030 }\n r10 = 0;\n r9[r10] = r0;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m461d(r8, r9);\t Catch:{ Throwable -> 0x0030 }\n r0 = 0;\n goto L_0x022f;\n L_0x02e5:\n r8 = \"[Upload] Bugly version from headers is: %s\";\n r9 = 1;\n r9 = new java.lang.Object[r9];\t Catch:{ Throwable -> 0x0030 }\n r10 = 0;\n r9[r10] = r0;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m460c(r8, r9);\t Catch:{ Throwable -> 0x0030 }\n r0 = 1;\n goto L_0x022f;\n L_0x02f3:\n r0 = \"[Upload] Failed to upload for no status header.\";\n r1 = 0;\n r1 = new java.lang.Object[r1];\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m460c(r0, r1);\t Catch:{ Throwable -> 0x0030 }\n r3 = 1;\n r1 = r4;\n r0 = r2;\n goto L_0x0180;\n L_0x0300:\n r0 = \"status\";\n r0 = r3.get(r0);\t Catch:{ Throwable -> 0x0394 }\n r0 = (java.lang.String) r0;\t Catch:{ Throwable -> 0x0394 }\n r5 = java.lang.Integer.parseInt(r0);\t Catch:{ Throwable -> 0x0394 }\n r0 = \"[Upload] Status from server is %d (pid=%d | tid=%d).\";\n r8 = 3;\n r8 = new java.lang.Object[r8];\t Catch:{ Throwable -> 0x0394 }\n r9 = 0;\n r10 = java.lang.Integer.valueOf(r5);\t Catch:{ Throwable -> 0x0394 }\n r8[r9] = r10;\t Catch:{ Throwable -> 0x0394 }\n r9 = 1;\n r10 = android.os.Process.myPid();\t Catch:{ Throwable -> 0x0394 }\n r10 = java.lang.Integer.valueOf(r10);\t Catch:{ Throwable -> 0x0394 }\n r8[r9] = r10;\t Catch:{ Throwable -> 0x0394 }\n r9 = 2;\n r10 = android.os.Process.myTid();\t Catch:{ Throwable -> 0x0394 }\n r10 = java.lang.Integer.valueOf(r10);\t Catch:{ Throwable -> 0x0394 }\n r8[r9] = r10;\t Catch:{ Throwable -> 0x0394 }\n com.tencent.bugly.proguard.C0757w.m460c(r0, r8);\t Catch:{ Throwable -> 0x0394 }\n if (r5 == 0) goto L_0x03d8;\n L_0x0333:\n r0 = 2;\n if (r5 != r0) goto L_0x03c0;\n L_0x0336:\n r0 = r11.f457q;\t Catch:{ Throwable -> 0x0030 }\n r2 = r11.f458r;\t Catch:{ Throwable -> 0x0030 }\n r0 = r0 + r2;\n r2 = 0;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 <= 0) goto L_0x0356;\n L_0x0341:\n r0 = r11.f449i;\t Catch:{ Throwable -> 0x0030 }\n r1 = r11.f460t;\t Catch:{ Throwable -> 0x0030 }\n r0 = r0.m431a(r1);\t Catch:{ Throwable -> 0x0030 }\n r2 = r11.f457q;\t Catch:{ Throwable -> 0x0030 }\n r0 = r0 + r2;\n r2 = r11.f458r;\t Catch:{ Throwable -> 0x0030 }\n r0 = r0 + r2;\n r2 = r11.f449i;\t Catch:{ Throwable -> 0x0030 }\n r3 = r11.f460t;\t Catch:{ Throwable -> 0x0030 }\n r2.m437a(r0, r3);\t Catch:{ Throwable -> 0x0030 }\n L_0x0356:\n r0 = r11.f449i;\t Catch:{ Throwable -> 0x0030 }\n r1 = 0;\n r0.m436a(r5, r1);\t Catch:{ Throwable -> 0x0030 }\n r0 = \"[Upload] Session ID is invalid, will try again immediately (pid=%d | tid=%d).\";\n r1 = 2;\n r1 = new java.lang.Object[r1];\t Catch:{ Throwable -> 0x0030 }\n r2 = 0;\n r3 = android.os.Process.myPid();\t Catch:{ Throwable -> 0x0030 }\n r3 = java.lang.Integer.valueOf(r3);\t Catch:{ Throwable -> 0x0030 }\n r1[r2] = r3;\t Catch:{ Throwable -> 0x0030 }\n r2 = 1;\n r3 = android.os.Process.myTid();\t Catch:{ Throwable -> 0x0030 }\n r3 = java.lang.Integer.valueOf(r3);\t Catch:{ Throwable -> 0x0030 }\n r1[r2] = r3;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m456a(r0, r1);\t Catch:{ Throwable -> 0x0030 }\n r0 = r11.f449i;\t Catch:{ Throwable -> 0x0030 }\n r1 = r11.f450j;\t Catch:{ Throwable -> 0x0030 }\n r2 = r11.f444d;\t Catch:{ Throwable -> 0x0030 }\n r3 = r11.f445e;\t Catch:{ Throwable -> 0x0030 }\n r4 = r11.f453m;\t Catch:{ Throwable -> 0x0030 }\n r5 = r11.f454n;\t Catch:{ Throwable -> 0x0030 }\n r6 = r11.f451k;\t Catch:{ Throwable -> 0x0030 }\n r7 = r11.f441a;\t Catch:{ Throwable -> 0x0030 }\n r8 = r11.f442b;\t Catch:{ Throwable -> 0x0030 }\n r9 = 1;\n r10 = r11.f455o;\t Catch:{ Throwable -> 0x0030 }\n r0.m432a(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x0394:\n r0 = move-exception;\n r0 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0030 }\n r1 = \"[Upload] Failed to upload for format of status header is invalid: \";\n r0.<init>(r1);\t Catch:{ Throwable -> 0x0030 }\n r1 = java.lang.Integer.toString(r5);\t Catch:{ Throwable -> 0x0030 }\n r0 = r0.append(r1);\t Catch:{ Throwable -> 0x0030 }\n r0 = r0.toString();\t Catch:{ Throwable -> 0x0030 }\n r1 = \"[Upload] Failed to upload(%d): %s\";\n r3 = 2;\n r3 = new java.lang.Object[r3];\t Catch:{ Throwable -> 0x0030 }\n r8 = 0;\n r9 = 1;\n r9 = java.lang.Integer.valueOf(r9);\t Catch:{ Throwable -> 0x0030 }\n r3[r8] = r9;\t Catch:{ Throwable -> 0x0030 }\n r8 = 1;\n r3[r8] = r0;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m462e(r1, r3);\t Catch:{ Throwable -> 0x0030 }\n r3 = 1;\n r1 = r4;\n r0 = r2;\n goto L_0x0180;\n L_0x03c0:\n r1 = 0;\n r2 = 0;\n r3 = 1;\n r0 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0030 }\n r4 = \"status of server is \";\n r0.<init>(r4);\t Catch:{ Throwable -> 0x0030 }\n r0 = r0.append(r5);\t Catch:{ Throwable -> 0x0030 }\n r4 = r0.toString();\t Catch:{ Throwable -> 0x0030 }\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x03d8:\n r0 = \"[Upload] Received %d bytes\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ Throwable -> 0x0030 }\n r4 = 0;\n r6 = r1.length;\t Catch:{ Throwable -> 0x0030 }\n r6 = java.lang.Integer.valueOf(r6);\t Catch:{ Throwable -> 0x0030 }\n r2[r4] = r6;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m460c(r0, r2);\t Catch:{ Throwable -> 0x0030 }\n r0 = r11.f459s;\t Catch:{ Throwable -> 0x0030 }\n if (r0 == 0) goto L_0x044d;\n L_0x03ec:\n r0 = r1.length;\t Catch:{ Throwable -> 0x0030 }\n if (r0 != 0) goto L_0x0426;\n L_0x03ef:\n r0 = r3.entrySet();\t Catch:{ Throwable -> 0x0030 }\n r1 = r0.iterator();\t Catch:{ Throwable -> 0x0030 }\n L_0x03f7:\n r0 = r1.hasNext();\t Catch:{ Throwable -> 0x0030 }\n if (r0 == 0) goto L_0x041a;\n L_0x03fd:\n r0 = r1.next();\t Catch:{ Throwable -> 0x0030 }\n r0 = (java.util.Map.Entry) r0;\t Catch:{ Throwable -> 0x0030 }\n r2 = \"[Upload] HTTP headers from server: key = %s, value = %s\";\n r3 = 2;\n r3 = new java.lang.Object[r3];\t Catch:{ Throwable -> 0x0030 }\n r4 = 0;\n r5 = r0.getKey();\t Catch:{ Throwable -> 0x0030 }\n r3[r4] = r5;\t Catch:{ Throwable -> 0x0030 }\n r4 = 1;\n r0 = r0.getValue();\t Catch:{ Throwable -> 0x0030 }\n r3[r4] = r0;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m460c(r2, r3);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x03f7;\n L_0x041a:\n r1 = 0;\n r2 = 0;\n r3 = 1;\n r4 = \"response data from server is empty\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x0426:\n r0 = r11.f449i;\t Catch:{ Throwable -> 0x0030 }\n r0 = r0.m443b(r1);\t Catch:{ Throwable -> 0x0030 }\n if (r0 != 0) goto L_0x043a;\n L_0x042e:\n r1 = 0;\n r2 = 0;\n r3 = 1;\n r4 = \"failed to decrypt response from server\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x043a:\n r1 = 2;\n r0 = com.tencent.bugly.proguard.C0761y.m518b(r0, r1);\t Catch:{ Throwable -> 0x0030 }\n if (r0 != 0) goto L_0x044e;\n L_0x0441:\n r1 = 0;\n r2 = 0;\n r3 = 1;\n r4 = \"failed unzip(Gzip) response from server\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x044d:\n r0 = r1;\n L_0x044e:\n r1 = r11.f459s;\t Catch:{ Throwable -> 0x0030 }\n r1 = com.tencent.bugly.proguard.C0730a.m287a(r0, r1);\t Catch:{ Throwable -> 0x0030 }\n if (r1 != 0) goto L_0x0462;\n L_0x0456:\n r1 = 0;\n r2 = 0;\n r3 = 1;\n r4 = \"failed to decode response package\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x0462:\n r0 = r11.f459s;\t Catch:{ Throwable -> 0x0030 }\n if (r0 == 0) goto L_0x046b;\n L_0x0466:\n r0 = r11.f449i;\t Catch:{ Throwable -> 0x0030 }\n r0.m436a(r5, r1);\t Catch:{ Throwable -> 0x0030 }\n L_0x046b:\n r2 = \"[Upload] Response cmd is: %d, length of sBuffer is: %d\";\n r0 = 2;\n r3 = new java.lang.Object[r0];\t Catch:{ Throwable -> 0x0030 }\n r0 = 0;\n r4 = r1.f635b;\t Catch:{ Throwable -> 0x0030 }\n r4 = java.lang.Integer.valueOf(r4);\t Catch:{ Throwable -> 0x0030 }\n r3[r0] = r4;\t Catch:{ Throwable -> 0x0030 }\n r4 = 1;\n r0 = r1.f636c;\t Catch:{ Throwable -> 0x0030 }\n if (r0 != 0) goto L_0x049d;\n L_0x047e:\n r0 = 0;\n L_0x047f:\n r0 = java.lang.Integer.valueOf(r0);\t Catch:{ Throwable -> 0x0030 }\n r3[r4] = r0;\t Catch:{ Throwable -> 0x0030 }\n com.tencent.bugly.proguard.C0757w.m460c(r2, r3);\t Catch:{ Throwable -> 0x0030 }\n r0 = r11.f446f;\t Catch:{ Throwable -> 0x0030 }\n r2 = r11.f447g;\t Catch:{ Throwable -> 0x0030 }\n r0 = com.tencent.bugly.proguard.C0754u.m446a(r1, r0, r2);\t Catch:{ Throwable -> 0x0030 }\n if (r0 != 0) goto L_0x04a1;\n L_0x0492:\n r2 = 0;\n r3 = 2;\n r4 = \"failed to process response package\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x049d:\n r0 = r1.f636c;\t Catch:{ Throwable -> 0x0030 }\n r0 = r0.length;\t Catch:{ Throwable -> 0x0030 }\n goto L_0x047f;\n L_0x04a1:\n r2 = 1;\n r3 = 2;\n r4 = \"successfully uploaded\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x04ac:\n r1 = 0;\n r2 = 0;\n r4 = \"failed after many attempts\";\n r5 = 0;\n r0 = r11;\n r0.m445a(r1, r2, r3, r4, r5);\t Catch:{ Throwable -> 0x0030 }\n goto L_0x001f;\n L_0x04b7:\n r2 = r0;\n goto L_0x01ca;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.bugly.proguard.u.run():void\");\n }", "title": "" }, { "docid": "aeb84c846e845825db89fc1f4800a8ba", "score": "0.57668614", "text": "@Override\n\tpublic boolean reachedExit() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "97b0b490da14df91ced8570987d1c5a9", "score": "0.57640594", "text": "public void doElseWithLabelNo();", "title": "" }, { "docid": "84504bad2e66b04fdf97217270acf7a0", "score": "0.575554", "text": "public void issueLoopNext() {\n method.go_to(currentLoopLabels[0]);\n }", "title": "" }, { "docid": "be331283e4b58091496f75fe7445f1c2", "score": "0.57309914", "text": "void jump()\r\n\t{\r\n\t\t//Note:--> Access only inside package.\r\n\t}", "title": "" }, { "docid": "b18e65eac32f94694b25e79b9d3cd490", "score": "0.57236385", "text": "private void alternative() {\n while (term()) {\n // do nothing\n }\n }", "title": "" }, { "docid": "369f3f5f877b4a15d9c3e1fd592f592f", "score": "0.5701022", "text": "void skip()\n {\n list.clear();\n difficulty+=25;\n stage++;\n if(ship!=null) ship.reload();\n else ship=new Ship();\n freemiss.clear();\n generator();\n }", "title": "" }, { "docid": "83d5bd8cbb5493bab26ec5aa5c0352a4", "score": "0.5669663", "text": "private void exitSequence_main_region_PlacingPod_r1_grindcoffee() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t\t\n\t\texitAction_main_region_PlacingPod_r1_grindcoffee();\n\t}", "title": "" }, { "docid": "e52a0692271289bc101c4a5af72d614d", "score": "0.5664985", "text": "public synchronized void c() {\r\n /*\r\n r1 = this;\r\n monitor-enter(r1);\r\n r0 = r1.b;\t Catch:{ all -> 0x0013 }\r\n if (r0 == 0) goto L_0x0007;\r\n L_0x0005:\r\n monitor-exit(r1);\r\n return;\r\n L_0x0007:\r\n r0 = r1.c;\t Catch:{ all -> 0x0013 }\r\n if (r0 == 0) goto L_0x0011;\r\n L_0x000b:\r\n r0 = 0;\r\n r1.c = r0;\t Catch:{ all -> 0x0013 }\r\n r1.b();\t Catch:{ all -> 0x0013 }\r\n L_0x0011:\r\n monitor-exit(r1);\r\n return;\r\n L_0x0013:\r\n r0 = move-exception;\r\n monitor-exit(r1);\r\n throw r0;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.location.indoor.g$i.c():void\");\r\n }", "title": "" }, { "docid": "c58aba1f313029925abca0f61ee595d8", "score": "0.5637855", "text": "private void breakPoint() {\n }", "title": "" }, { "docid": "0ffee3a7af29d8e6354ccd4e3df4ad6d", "score": "0.5636936", "text": "public void halt() {\n\t}", "title": "" }, { "docid": "444e763e372c2788f9a6a418ffa94ca2", "score": "0.56346804", "text": "@Override\n public void run() {\n this.g = true;\n try {\n try {\n while (!this.f) {\n cO cO2;\n for (int i2 = 0; i2 < 2; ++i2) {\n cO2 = this.e[i2];\n if (cO2 == null) continue;\n cO2.b(134121842);\n }\n ao.a(10);\n dl dl2 = this.a;\n cO2 = null;\n if (dl2.h == null) continue;\n for (int i3 = 0; i3 < 50 && dl2.h.peekEvent() != null; ++i3) {\n ao.a(1);\n }\n if (cO2 == null) continue;\n dl2.h.postEvent(new ActionEvent(cO2, 1001, \"dummy\"));\n }\n }\n catch (Exception var1_2) {\n ba.a(null, var1_2, 1);\n this.g = false;\n this.g = false;\n return;\n }\n this.g = false;\n }\n finally {\n this.g = false;\n }\n }", "title": "" }, { "docid": "d7c5e13e7574fda36fa521e55e0c9529", "score": "0.56329817", "text": "public void nonCalculable(){\n\t\t//Se scrie eroare in caz ca o expresie este necalculabila.\n\t\tpwee.println(\"error\");\n\t}", "title": "" }, { "docid": "52d2f90f49fa49ca9ef0b6e050397934", "score": "0.5623709", "text": "public static void ___goto(int label) { }", "title": "" }, { "docid": "a222f2e5bd6e5d158cceca75b06cd700", "score": "0.562226", "text": "boolean shouldContinue();", "title": "" }, { "docid": "a222f2e5bd6e5d158cceca75b06cd700", "score": "0.562226", "text": "boolean shouldContinue();", "title": "" }, { "docid": "23939c5fd76cecb323b3ce2737f6763d", "score": "0.5611889", "text": "GotoInstruction() {\n }", "title": "" }, { "docid": "e253b65399c9494417d02ec30a3fd7d7", "score": "0.5605943", "text": "@Override\n\tpublic void doNothing() {\n\t}", "title": "" }, { "docid": "cb18f52a6c5383e2500268c10f803ec0", "score": "0.56036186", "text": "public final void run() {\n /*\n r12 = this;\n crv r0 = defpackage.crv.this // Catch:{ Exception -> 0x0229 }\n java.lang.String r1 = \"\"\n java.lang.Class<coy> r2 = defpackage.coy.class\n java.lang.Object r2 = defpackage.ank.a(r2) // Catch:{ Exception -> 0x0229 }\n coy r2 = (defpackage.coy) r2 // Catch:{ Exception -> 0x0229 }\n if (r2 == 0) goto L_0x0012\n java.lang.String r1 = r2.a() // Catch:{ Exception -> 0x0229 }\n L_0x0012:\n java.lang.Class<com> r2 = defpackage.com.class\n java.lang.Object r2 = defpackage.ank.a(r2) // Catch:{ Exception -> 0x0229 }\n com r2 = (defpackage.com) r2 // Catch:{ Exception -> 0x0229 }\n r3 = 0\n if (r2 == 0) goto L_0x002e\n cop r4 = r2.b(r1) // Catch:{ Exception -> 0x0229 }\n coq r2 = r2.a(r1) // Catch:{ Exception -> 0x0229 }\n java.util.List r5 = r4.a(r1) // Catch:{ Exception -> 0x0229 }\n java.util.List r6 = r2.b(r1) // Catch:{ Exception -> 0x0229 }\n goto L_0x003a\n L_0x002e:\n java.util.ArrayList r5 = new java.util.ArrayList // Catch:{ Exception -> 0x0229 }\n r5.<init>() // Catch:{ Exception -> 0x0229 }\n java.util.ArrayList r6 = new java.util.ArrayList // Catch:{ Exception -> 0x0229 }\n r6.<init>() // Catch:{ Exception -> 0x0229 }\n r2 = r3\n r4 = r2\n L_0x003a:\n if (r1 != 0) goto L_0x003f\n java.lang.String r1 = \"\"\n goto L_0x0049\n L_0x003f:\n java.lang.String r7 = \"public\"\n boolean r7 = r1.equals(r7) // Catch:{ Exception -> 0x0229 }\n if (r7 == 0) goto L_0x0049\n java.lang.String r1 = \"\"\n L_0x0049:\n if (r5 == 0) goto L_0x005d\n int r7 = r5.size() // Catch:{ Exception -> 0x0229 }\n if (r7 == 0) goto L_0x005d\n crv$2 r7 = new crv$2 // Catch:{ Exception -> 0x0229 }\n r7.<init>(r5, r1, r4) // Catch:{ Exception -> 0x0229 }\n bim r4 = defpackage.bim.aa() // Catch:{ Exception -> 0x0229 }\n r4.a(r7) // Catch:{ Exception -> 0x0229 }\n L_0x005d:\n if (r6 == 0) goto L_0x0071\n int r4 = r6.size() // Catch:{ Exception -> 0x0229 }\n if (r4 == 0) goto L_0x0071\n crv$3 r4 = new crv$3 // Catch:{ Exception -> 0x0229 }\n r4.<init>(r6, r1, r2) // Catch:{ Exception -> 0x0229 }\n bim r2 = defpackage.bim.aa() // Catch:{ Exception -> 0x0229 }\n r2.a(r4) // Catch:{ Exception -> 0x0229 }\n L_0x0071:\n com.amap.bundle.mapstorage.MapSharePreference r2 = new com.amap.bundle.mapstorage.MapSharePreference // Catch:{ Exception -> 0x0229 }\n com.amap.bundle.mapstorage.MapSharePreference$SharePreferenceName r4 = com.amap.bundle.mapstorage.MapSharePreference.SharePreferenceName.SharedPreferences // Catch:{ Exception -> 0x0229 }\n r2.<init>(r4) // Catch:{ Exception -> 0x0229 }\n java.lang.String r4 = \"FIRST_MERGE_MAP_SET\"\n r5 = 0\n boolean r4 = r2.getBooleanValue(r4, r5) // Catch:{ Exception -> 0x0229 }\n bim r6 = defpackage.bim.aa() // Catch:{ Exception -> 0x0229 }\n java.lang.String r7 = \"201\"\n int r6 = r6.a(r7) // Catch:{ Exception -> 0x0229 }\n r7 = 1\n if (r4 != 0) goto L_0x009f\n if (r6 > 0) goto L_0x009f\n java.lang.String r4 = \"FIRST_MERGE_MAP_SET\"\n r2.putBooleanValue(r4, r7) // Catch:{ Exception -> 0x0229 }\n crv$4 r4 = new crv$4 // Catch:{ Exception -> 0x0229 }\n r4.<init>() // Catch:{ Exception -> 0x0229 }\n bim r6 = defpackage.bim.aa() // Catch:{ Exception -> 0x0229 }\n r6.a(r4) // Catch:{ Exception -> 0x0229 }\n L_0x009f:\n java.lang.String r4 = \"truck_copyed_car_history\"\n boolean r4 = r2.getBooleanValue(r4, r5) // Catch:{ Exception -> 0x0229 }\n if (r4 != 0) goto L_0x00c4\n com.autonavi.bundle.routecommon.model.RouteType r4 = com.autonavi.bundle.routecommon.model.RouteType.CAR // Catch:{ Exception -> 0x0229 }\n java.util.List r4 = defpackage.chk.a(r4) // Catch:{ Exception -> 0x0229 }\n int r6 = r4.size() // Catch:{ Exception -> 0x0229 }\n if (r6 == 0) goto L_0x00bf\n crv$5 r6 = new crv$5 // Catch:{ Exception -> 0x0229 }\n r6.<init>(r4, r1) // Catch:{ Exception -> 0x0229 }\n bim r4 = defpackage.bim.aa() // Catch:{ Exception -> 0x0229 }\n r4.a(r6) // Catch:{ Exception -> 0x0229 }\n L_0x00bf:\n java.lang.String r4 = \"truck_copyed_car_history\"\n r2.putBooleanValue(r4, r7) // Catch:{ Exception -> 0x0229 }\n L_0x00c4:\n java.lang.String r4 = \"etrip_copyed_car_or_bus_history\"\n boolean r4 = r2.getBooleanValue(r4, r5) // Catch:{ Exception -> 0x0229 }\n if (r4 != 0) goto L_0x00fa\n com.autonavi.bundle.routecommon.model.RouteType r4 = com.autonavi.bundle.routecommon.model.RouteType.CAR // Catch:{ Exception -> 0x0229 }\n java.util.List r4 = defpackage.chk.a(r4) // Catch:{ Exception -> 0x0229 }\n com.autonavi.bundle.routecommon.model.RouteType r6 = com.autonavi.bundle.routecommon.model.RouteType.BUS // Catch:{ Exception -> 0x0229 }\n java.util.List r6 = defpackage.chk.a(r6) // Catch:{ Exception -> 0x0229 }\n int r8 = r6.size() // Catch:{ Exception -> 0x0229 }\n int r9 = r4.size() // Catch:{ Exception -> 0x0229 }\n if (r8 <= r9) goto L_0x00e3\n r4 = r6\n L_0x00e3:\n int r6 = r4.size() // Catch:{ Exception -> 0x0229 }\n if (r6 == 0) goto L_0x00f5\n crv$6 r6 = new crv$6 // Catch:{ Exception -> 0x0229 }\n r6.<init>(r4, r1) // Catch:{ Exception -> 0x0229 }\n bim r0 = defpackage.bim.aa() // Catch:{ Exception -> 0x0229 }\n r0.a(r6) // Catch:{ Exception -> 0x0229 }\n L_0x00f5:\n java.lang.String r0 = \"etrip_copyed_car_or_bus_history\"\n r2.putBooleanValue(r0, r7) // Catch:{ Exception -> 0x0229 }\n L_0x00fa:\n bim r0 = defpackage.bim.aa() // Catch:{ Exception -> 0x0229 }\n r0.f() // Catch:{ Exception -> 0x0229 }\n com.amap.bundle.mapstorage.MapSharePreference r0 = new com.amap.bundle.mapstorage.MapSharePreference // Catch:{ Exception -> 0x0229 }\n com.amap.bundle.mapstorage.MapSharePreference$SharePreferenceName r1 = com.amap.bundle.mapstorage.MapSharePreference.SharePreferenceName.user_route_method_info // Catch:{ Exception -> 0x0229 }\n r0.<init>(r1) // Catch:{ Exception -> 0x0229 }\n java.lang.String r1 = \"car_no\"\n java.lang.String r2 = \"\"\n java.lang.String r1 = r0.getStringValue(r1, r2) // Catch:{ Exception -> 0x0229 }\n boolean r2 = android.text.TextUtils.isEmpty(r1) // Catch:{ Exception -> 0x0229 }\n r8 = 1000(0x3e8, double:4.94E-321)\n if (r2 != 0) goto L_0x015c\n java.lang.String r1 = r1.trim() // Catch:{ Exception -> 0x0229 }\n boolean r2 = android.text.TextUtils.isEmpty(r1) // Catch:{ Exception -> 0x0229 }\n if (r2 != 0) goto L_0x015c\n boolean r2 = defpackage.crv.d() // Catch:{ Exception -> 0x0229 }\n java.lang.String r4 = \"\"\n if (r2 == 0) goto L_0x012e\n java.lang.String r4 = defpackage.crv.c() // Catch:{ Exception -> 0x0229 }\n L_0x012e:\n com.autonavi.map.db.model.Car r2 = new com.autonavi.map.db.model.Car // Catch:{ Exception -> 0x0229 }\n r2.<init>() // Catch:{ Exception -> 0x0229 }\n r2.plateNum = r1 // Catch:{ Exception -> 0x0229 }\n r2.vehicleType = r7 // Catch:{ Exception -> 0x0229 }\n long r10 = java.lang.System.currentTimeMillis() // Catch:{ Exception -> 0x0229 }\n long r10 = r10 / r8\n r2.updateTime = r10 // Catch:{ Exception -> 0x0229 }\n r2.createTime = r10 // Catch:{ Exception -> 0x0229 }\n esb r6 = defpackage.esb.a.a // Catch:{ Exception -> 0x0229 }\n java.lang.Class<ato> r10 = defpackage.ato.class\n esc r6 = r6.a(r10) // Catch:{ Exception -> 0x0229 }\n ato r6 = (defpackage.ato) r6 // Catch:{ Exception -> 0x0229 }\n if (r6 == 0) goto L_0x015c\n atm r10 = r6.a() // Catch:{ Exception -> 0x0229 }\n r10.a(r4, r2) // Catch:{ Exception -> 0x0229 }\n atm r2 = r6.a() // Catch:{ Exception -> 0x0229 }\n r2.b(r7, r1) // Catch:{ Exception -> 0x0229 }\n L_0x015c:\n android.content.SharedPreferences$Editor r0 = r0.edit() // Catch:{ Exception -> 0x0229 }\n java.lang.String r1 = \"car_no\"\n r0.remove(r1) // Catch:{ Exception -> 0x0229 }\n r0.apply() // Catch:{ Exception -> 0x0229 }\n defpackage.crv.b() // Catch:{ Exception -> 0x0229 }\n defpackage.crv.e() // Catch:{ Exception -> 0x0229 }\n com.amap.bundle.mapstorage.MapSharePreference r0 = new com.amap.bundle.mapstorage.MapSharePreference // Catch:{ Exception -> 0x0229 }\n com.amap.bundle.mapstorage.MapSharePreference$SharePreferenceName r1 = com.amap.bundle.mapstorage.MapSharePreference.SharePreferenceName.user_route_method_info // Catch:{ Exception -> 0x0229 }\n r0.<init>(r1) // Catch:{ Exception -> 0x0229 }\n java.lang.String r1 = \"truck_car_no\"\n java.lang.String r2 = \"\"\n java.lang.String r1 = r0.getStringValue(r1, r2) // Catch:{ Exception -> 0x0229 }\n boolean r2 = android.text.TextUtils.isEmpty(r1) // Catch:{ Exception -> 0x0229 }\n if (r2 != 0) goto L_0x0221\n esb r2 = defpackage.esb.a.a // Catch:{ Exception -> 0x0229 }\n java.lang.Class<ato> r4 = defpackage.ato.class\n esc r2 = r2.a(r4) // Catch:{ Exception -> 0x0229 }\n ato r2 = (defpackage.ato) r2 // Catch:{ Exception -> 0x0229 }\n if (r2 == 0) goto L_0x0199\n atm r2 = r2.a() // Catch:{ Exception -> 0x0229 }\n com.autonavi.map.db.model.Car r3 = r2.a(r1) // Catch:{ Exception -> 0x0229 }\n L_0x0199:\n if (r3 == 0) goto L_0x01af\n int r2 = r3.vehicleType // Catch:{ Exception -> 0x0229 }\n if (r2 != r7) goto L_0x01af\n java.lang.String r2 = \"CAR_AVOID_LIMITED_PATHS_SWITCH\"\n boolean r2 = r0.getBooleanValue(r2, r5) // Catch:{ Exception -> 0x0229 }\n java.lang.String r3 = \"truck_open_car_no\"\n boolean r3 = r0.getBooleanValue(r3, r5) // Catch:{ Exception -> 0x0229 }\n if (r2 != 0) goto L_0x0221\n if (r3 == 0) goto L_0x0221\n L_0x01af:\n com.autonavi.map.db.model.Car r2 = new com.autonavi.map.db.model.Car // Catch:{ Exception -> 0x0229 }\n r2.<init>() // Catch:{ Exception -> 0x0229 }\n r2.plateNum = r1 // Catch:{ Exception -> 0x0229 }\n r3 = 2\n r2.vehicleType = r3 // Catch:{ Exception -> 0x0229 }\n java.lang.String r4 = \"truck_height\"\n r5 = 0\n float r4 = r0.getFloatValue(r4, r5) // Catch:{ Exception -> 0x0229 }\n java.lang.String r4 = defpackage.crv.a(r4) // Catch:{ Exception -> 0x0229 }\n r2.height = r4 // Catch:{ Exception -> 0x0229 }\n java.lang.String r4 = \"truck_load\"\n float r4 = r0.getFloatValue(r4, r5) // Catch:{ Exception -> 0x0229 }\n java.lang.String r5 = \"truck_avoid_load\"\n boolean r5 = r0.getBooleanValue(r5, r7) // Catch:{ Exception -> 0x0229 }\n r2.truckAvoidWeightLimit = r5 // Catch:{ Exception -> 0x0229 }\n java.lang.String r4 = defpackage.crv.a(r4) // Catch:{ Exception -> 0x0229 }\n r2.weight = r4 // Catch:{ Exception -> 0x0229 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ Exception -> 0x0229 }\n long r4 = r4 / r8\n r2.updateTime = r4 // Catch:{ Exception -> 0x0229 }\n r2.createTime = r4 // Catch:{ Exception -> 0x0229 }\n boolean r4 = defpackage.crv.d() // Catch:{ Exception -> 0x0229 }\n java.lang.String r5 = \"\"\n if (r4 == 0) goto L_0x01ef\n java.lang.String r5 = defpackage.crv.c() // Catch:{ Exception -> 0x0229 }\n L_0x01ef:\n esb r4 = defpackage.esb.a.a // Catch:{ Exception -> 0x0229 }\n java.lang.Class<ato> r6 = defpackage.ato.class\n esc r4 = r4.a(r6) // Catch:{ Exception -> 0x0229 }\n ato r4 = (defpackage.ato) r4 // Catch:{ Exception -> 0x0229 }\n if (r4 == 0) goto L_0x020b\n atm r6 = r4.a() // Catch:{ Exception -> 0x0229 }\n r6.a(r5, r2) // Catch:{ Exception -> 0x0229 }\n atm r2 = r4.a() // Catch:{ Exception -> 0x0229 }\n r2.b(r3, r1) // Catch:{ Exception -> 0x0229 }\n L_0x020b:\n android.content.SharedPreferences$Editor r0 = r0.edit() // Catch:{ Exception -> 0x0229 }\n java.lang.String r1 = \"truck_car_no\"\n r0.remove(r1) // Catch:{ Exception -> 0x0229 }\n java.lang.String r1 = \"truck_height\"\n r0.remove(r1) // Catch:{ Exception -> 0x0229 }\n java.lang.String r1 = \"truck_load\"\n r0.remove(r1) // Catch:{ Exception -> 0x0229 }\n r0.apply() // Catch:{ Exception -> 0x0229 }\n L_0x0221:\n bim r0 = defpackage.bim.aa() // Catch:{ Exception -> 0x0229 }\n r0.z() // Catch:{ Exception -> 0x0229 }\n return\n L_0x0229:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.crv.AnonymousClass1.run():void\");\n }", "title": "" }, { "docid": "5f56507327ea952acfdfc14030330356", "score": "0.5597998", "text": "public boolean gotoFirst();", "title": "" }, { "docid": "a6c4b745f13b66fda3b65b2ac66598d2", "score": "0.55952847", "text": "protected void attack() {\n attack(0);\n }", "title": "" }, { "docid": "eec52cd503e9db69a3d5ccf18aa7f0b7", "score": "0.5592719", "text": "public void gotoPage(int page)\n {\n return;\n }", "title": "" }, { "docid": "b0dd6b03b5375e72be616b8772082141", "score": "0.55753887", "text": "private void someStatement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e89bc4afb6276dc7dd03ecf596719036", "score": "0.55659664", "text": "private void k() {\n /*\n r7 = this;\n ar.com.santander.rio.mbanking.managers.checkversion.CheckVersionManager r0 = r7.A\n java.lang.String r0 = r0.getResult()\n int r1 = r0.hashCode()\n switch(r1) {\n case 48: goto L_0x0022;\n case 49: goto L_0x000d;\n case 50: goto L_0x0018;\n case 51: goto L_0x000e;\n default: goto L_0x000d;\n }\n L_0x000d:\n goto L_0x002c\n L_0x000e:\n java.lang.String r1 = \"3\"\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x002c\n r0 = 2\n goto L_0x002d\n L_0x0018:\n java.lang.String r1 = \"2\"\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x002c\n r0 = 1\n goto L_0x002d\n L_0x0022:\n java.lang.String r1 = \"0\"\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x002c\n r0 = 0\n goto L_0x002d\n L_0x002c:\n r0 = -1\n L_0x002d:\n switch(r0) {\n case 0: goto L_0x0044;\n case 1: goto L_0x0034;\n case 2: goto L_0x0034;\n default: goto L_0x0030;\n }\n L_0x0030:\n r7.l()\n goto L_0x0059\n L_0x0034:\n ar.com.santander.rio.mbanking.managers.session.SessionManager r0 = r7.q\n java.lang.Boolean r0 = r0.getCheckVersionWarningRaised()\n boolean r0 = r0.booleanValue()\n if (r0 != 0) goto L_0x0059\n r7.c()\n goto L_0x0059\n L_0x0044:\n java.util.Timer r0 = new java.util.Timer\n r0.<init>()\n r7.z = r0\n java.util.Timer r1 = r7.z\n ar.com.santander.rio.mbanking.app.ui.activities.HomeActivity$5 r2 = new ar.com.santander.rio.mbanking.app.ui.activities.HomeActivity$5\n r2.<init>()\n r3 = 0\n r5 = 2000(0x7d0, double:9.88E-321)\n r1.scheduleAtFixedRate(r2, r3, r5)\n L_0x0059:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: ar.com.santander.rio.mbanking.app.ui.activities.HomeActivity.k():void\");\n }", "title": "" }, { "docid": "dc1b4e31c6b9ff5809bf6cda0d6ccb64", "score": "0.55604774", "text": "@Override\n public boolean jump() {\n return true;\n }", "title": "" }, { "docid": "4a06e7ad8fe65157b422e14f30bb8444", "score": "0.55408543", "text": "private void algo() {\r\n\t\tif (this.game.getFruits().isEmpty() || this.game.getPacmans().isEmpty())\r\n\t\t\treturn;\r\n\t\telse\r\n\t\t\tstartAlgo();\r\n\t}", "title": "" }, { "docid": "4abbc6f7cf810fd26d6aa108c8f6ccf8", "score": "0.553538", "text": "@Override\r\n\tpublic boolean advance() {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "e936ca3ba7437988e860c8dc42a03fde", "score": "0.55353063", "text": "@Override\n\tpublic void doNext() {\n\t\t\n\t}", "title": "" }, { "docid": "98e27d5f8d90f6b13289c1768f5323e4", "score": "0.5530156", "text": "public void visitJumpInsn(int opcode, Label label) {\n\t\tif (1 == 1)\n\t\t\tthrow new RuntimeException(\"NYI\");\n\n\t}", "title": "" }, { "docid": "0a2675be8c33f1a66b906db0d201d5a2", "score": "0.5527872", "text": "public void doNothing() {\n\t\tsuper.doNothing();\n\t}", "title": "" }, { "docid": "ce83d99958b106aa73073c6bdb97cefb", "score": "0.5521316", "text": "@Override\n\tpublic boolean dontSteal() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "284150ce1115330121d2f85339fec9fb", "score": "0.5518524", "text": "void endOfCode();", "title": "" }, { "docid": "20cc415156be932282af7bda4f6323d9", "score": "0.5513019", "text": "@Override\r\n\tpublic void run() {\n\t\tListIterator<AbstractInsnNode> iterator = mn.instructions.iterator();\r\n\t\tAbstractInsnNode next;\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tnext = iterator.next();\r\n\r\n\t\t\tLabelNode l;\r\n\t\t\tif (next.getOpcode() != GOTO && !(next instanceof LabelNode)) {\r\n\t\t\t\tl = new LabelNode();\r\n\t\t\t\titerator.add(new JumpInsnNode(GOTO, l));\r\n\t\t\t\titerator.add(l);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d3f113d256c7d6640cf205008aa955d9", "score": "0.5500326", "text": "@Override\n\tpublic void jump() {\n\t\t\n\t}", "title": "" }, { "docid": "d3f113d256c7d6640cf205008aa955d9", "score": "0.5500326", "text": "@Override\n\tpublic void jump() {\n\t\t\n\t}", "title": "" }, { "docid": "0b9e8b39fa8bc5ec8b5341b670a7a293", "score": "0.54899013", "text": "private void aFn() {\n /*\n r14 = this;\n r0 = r14.mXW;\n if (r0 != 0) goto L_0x0012;\n L_0x0004:\n r0 = r14.mXK;\n r1 = 8;\n r0.setVisibility(r1);\n r0 = r14.mXO;\n r1 = 8;\n r0.setVisibility(r1);\n L_0x0012:\n r0 = r14.fWT;\n r0 = com.tencent.mm.sdk.platformtools.bg.mA(r0);\n if (r0 != 0) goto L_0x0118;\n L_0x001a:\n r0 = r14.fWT;\n r1 = com.tencent.mm.sdk.platformtools.bg.mA(r0);\n if (r1 != 0) goto L_0x0115;\n L_0x0022:\n r1 = com.tencent.mm.plugin.ipcall.a.i.aEn();\n r0 = r1.yt(r0);\n if (r0 == 0) goto L_0x0115;\n L_0x002c:\n r2 = r0.uxb;\n r4 = -1;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 == 0) goto L_0x0115;\n L_0x0034:\n r6 = r0.uxb;\n r0 = com.tencent.mm.plugin.ipcall.a.i.aEo();\n r0 = r0.gUz;\n r1 = \"IPCallRecord\";\n r2 = com.tencent.mm.plugin.ipcall.a.g.l.mRf;\n r3 = \"addressId=?\";\n r4 = 1;\n r4 = new java.lang.String[r4];\n r5 = 0;\n r6 = java.lang.String.valueOf(r6);\n r4[r5] = r6;\n r5 = 0;\n r6 = 0;\n r7 = new java.lang.StringBuilder;\n r8 = \"calltime desc limit 4\";\n r7.<init>(r8);\n r7 = r7.toString();\n r0 = r0.query(r1, r2, r3, r4, r5, r6, r7);\n L_0x0060:\n r5 = r0;\n L_0x0061:\n if (r5 == 0) goto L_0x019b;\n L_0x0063:\n r0 = r5.getCount();\n if (r0 <= 0) goto L_0x019b;\n L_0x0069:\n r0 = r5.moveToFirst();\t Catch:{ Exception -> 0x014e }\n if (r0 == 0) goto L_0x0170;\n L_0x006f:\n r0 = 0;\n L_0x0070:\n r1 = r5.isAfterLast();\t Catch:{ Exception -> 0x014e }\n if (r1 != 0) goto L_0x0167;\n L_0x0076:\n r6 = new com.tencent.mm.plugin.ipcall.a.g.k;\t Catch:{ Exception -> 0x014e }\n r6.<init>();\t Catch:{ Exception -> 0x014e }\n r6.b(r5);\t Catch:{ Exception -> 0x014e }\n r3 = r0 + 1;\n r0 = 0;\n r1 = 3;\n if (r3 < r1) goto L_0x01aa;\n L_0x0084:\n r0 = 1;\n r4 = r0;\n L_0x0086:\n r7 = r5.getCount();\t Catch:{ Exception -> 0x014e }\n r0 = android.view.LayoutInflater.from(r14);\t Catch:{ Exception -> 0x014e }\n r1 = com.tencent.mm.R.i.dlt;\t Catch:{ Exception -> 0x014e }\n r2 = r14.mXK;\t Catch:{ Exception -> 0x014e }\n r8 = 0;\n r8 = r0.inflate(r1, r2, r8);\t Catch:{ Exception -> 0x014e }\n r0 = com.tencent.mm.R.h.cte;\t Catch:{ Exception -> 0x014e }\n r0 = r8.findViewById(r0);\t Catch:{ Exception -> 0x014e }\n r0 = (android.widget.TextView) r0;\t Catch:{ Exception -> 0x014e }\n r1 = com.tencent.mm.R.h.ctg;\t Catch:{ Exception -> 0x014e }\n r1 = r8.findViewById(r1);\t Catch:{ Exception -> 0x014e }\n r1 = (android.widget.TextView) r1;\t Catch:{ Exception -> 0x014e }\n r2 = com.tencent.mm.R.h.cth;\t Catch:{ Exception -> 0x014e }\n r2 = r8.findViewById(r2);\t Catch:{ Exception -> 0x014e }\n r2 = (android.widget.TextView) r2;\t Catch:{ Exception -> 0x014e }\n r9 = r6.field_phonenumber;\t Catch:{ Exception -> 0x014e }\n r9 = com.tencent.mm.plugin.ipcall.b.a.yY(r9);\t Catch:{ Exception -> 0x014e }\n r1.setText(r9);\t Catch:{ Exception -> 0x014e }\n r10 = r6.field_duration;\t Catch:{ Exception -> 0x014e }\n r12 = 0;\n r1 = (r10 > r12 ? 1 : (r10 == r12 ? 0 : -1));\n if (r1 <= 0) goto L_0x0143;\n L_0x00c0:\n r10 = r6.field_duration;\t Catch:{ Exception -> 0x014e }\n r1 = com.tencent.mm.plugin.ipcall.b.c.cx(r10);\t Catch:{ Exception -> 0x014e }\n r2.setText(r1);\t Catch:{ Exception -> 0x014e }\n L_0x00c9:\n r10 = r6.field_calltime;\t Catch:{ Exception -> 0x014e }\n r1 = com.tencent.mm.plugin.ipcall.b.c.cv(r10);\t Catch:{ Exception -> 0x014e }\n r0.setText(r1);\t Catch:{ Exception -> 0x014e }\n if (r4 == 0) goto L_0x00f0;\n L_0x00d4:\n r0 = r14.getResources();\t Catch:{ Exception -> 0x014e }\n r1 = com.tencent.mm.R.g.biB;\t Catch:{ Exception -> 0x014e }\n r0 = r0.getDrawable(r1);\t Catch:{ Exception -> 0x014e }\n r8.setBackgroundDrawable(r0);\t Catch:{ Exception -> 0x014e }\n r0 = r14.getResources();\t Catch:{ Exception -> 0x014e }\n r1 = com.tencent.mm.R.f.baQ;\t Catch:{ Exception -> 0x014e }\n r0 = r0.getDimensionPixelSize(r1);\t Catch:{ Exception -> 0x014e }\n r1 = 0;\n r2 = 0;\n r8.setPadding(r0, r1, r0, r2);\t Catch:{ Exception -> 0x014e }\n L_0x00f0:\n r0 = 1;\n if (r0 != r7) goto L_0x0108;\n L_0x00f3:\n r0 = r8.getLayoutParams();\t Catch:{ Exception -> 0x014e }\n r0 = (android.widget.LinearLayout.LayoutParams) r0;\t Catch:{ Exception -> 0x014e }\n r1 = r14.uSU;\t Catch:{ Exception -> 0x014e }\n r1 = r1.uTo;\t Catch:{ Exception -> 0x014e }\n r2 = com.tencent.mm.R.f.baL;\t Catch:{ Exception -> 0x014e }\n r1 = com.tencent.mm.bg.a.T(r1, r2);\t Catch:{ Exception -> 0x014e }\n r0.height = r1;\t Catch:{ Exception -> 0x014e }\n r8.setLayoutParams(r0);\t Catch:{ Exception -> 0x014e }\n L_0x0108:\n r0 = r14.mXK;\t Catch:{ Exception -> 0x014e }\n r0.addView(r8);\t Catch:{ Exception -> 0x014e }\n if (r4 != 0) goto L_0x0166;\n L_0x010f:\n r5.moveToNext();\t Catch:{ Exception -> 0x014e }\n r0 = r3;\n goto L_0x0070;\n L_0x0115:\n r0 = 0;\n goto L_0x0060;\n L_0x0118:\n r0 = com.tencent.mm.plugin.ipcall.a.i.aEo();\n r5 = r14.fWV;\n r0 = r0.gUz;\n r1 = \"IPCallRecord\";\n r2 = com.tencent.mm.plugin.ipcall.a.g.l.mRf;\n r3 = \"phonenumber=?\";\n r4 = 1;\n r4 = new java.lang.String[r4];\n r6 = 0;\n r4[r6] = r5;\n r5 = 0;\n r6 = 0;\n r7 = new java.lang.StringBuilder;\n r8 = \"calltime desc limit 4\";\n r7.<init>(r8);\n r7 = r7.toString();\n r0 = r0.query(r1, r2, r3, r4, r5, r6, r7);\n r5 = r0;\n goto L_0x0061;\n L_0x0143:\n r1 = r6.field_status;\t Catch:{ Exception -> 0x014e }\n r1 = com.tencent.mm.plugin.ipcall.b.c.oz(r1);\t Catch:{ Exception -> 0x014e }\n r2.setText(r1);\t Catch:{ Exception -> 0x014e }\n goto L_0x00c9;\n L_0x014e:\n r0 = move-exception;\n r1 = \"MicroMsg.IPCallUserProfileUI\";\n r2 = \"initRecordList, error: %s\";\n r3 = 1;\n r3 = new java.lang.Object[r3];\t Catch:{ all -> 0x0196 }\n r4 = 0;\n r0 = r0.getMessage();\t Catch:{ all -> 0x0196 }\n r3[r4] = r0;\t Catch:{ all -> 0x0196 }\n com.tencent.mm.sdk.platformtools.w.e(r1, r2, r3);\t Catch:{ all -> 0x0196 }\n r5.close();\n L_0x0165:\n return;\n L_0x0166:\n r0 = r3;\n L_0x0167:\n if (r0 > 0) goto L_0x0174;\n L_0x0169:\n r0 = r14.mXK;\t Catch:{ Exception -> 0x014e }\n r1 = 8;\n r0.setVisibility(r1);\t Catch:{ Exception -> 0x014e }\n L_0x0170:\n r5.close();\n goto L_0x0165;\n L_0x0174:\n r0 = r5.getCount();\t Catch:{ Exception -> 0x014e }\n r1 = 4;\n if (r0 < r1) goto L_0x0170;\n L_0x017b:\n r0 = android.view.LayoutInflater.from(r14);\t Catch:{ Exception -> 0x014e }\n r1 = com.tencent.mm.R.i.dlu;\t Catch:{ Exception -> 0x014e }\n r2 = r14.mXK;\t Catch:{ Exception -> 0x014e }\n r3 = 0;\n r0 = r0.inflate(r1, r2, r3);\t Catch:{ Exception -> 0x014e }\n r1 = r14.mXK;\t Catch:{ Exception -> 0x014e }\n r1.addView(r0);\t Catch:{ Exception -> 0x014e }\n r1 = new com.tencent.mm.plugin.ipcall.ui.IPCallUserProfileUI$3;\t Catch:{ Exception -> 0x014e }\n r1.<init>(r14);\t Catch:{ Exception -> 0x014e }\n r0.setOnClickListener(r1);\t Catch:{ Exception -> 0x014e }\n goto L_0x0170;\n L_0x0196:\n r0 = move-exception;\n r5.close();\n throw r0;\n L_0x019b:\n r0 = r14.mXK;\n r1 = 8;\n r0.setVisibility(r1);\n r0 = r14.mXO;\n r1 = 8;\n r0.setVisibility(r1);\n goto L_0x0165;\n L_0x01aa:\n r4 = r0;\n goto L_0x0086;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.ipcall.ui.IPCallUserProfileUI.aFn():void\");\n }", "title": "" }, { "docid": "d8211552b23c886f56d98e4efc7a55fa", "score": "0.54835916", "text": "private void OI() {\n\t\t\n\t}", "title": "" }, { "docid": "05d51ac3b530106f7209b93f7a7519c8", "score": "0.54821503", "text": "public void test() {\n\t\t\tSystem.out.println(\"no i/p,no o/p\");\n\t\t\t\n\t\t}", "title": "" }, { "docid": "dbeb289571de469e7b8f9f5b75d9b5ce", "score": "0.5481209", "text": "public void runTest() throws Throwable {\n /* do nothing here */\n }", "title": "" }, { "docid": "8c8f22c98296f62c6650143b114547b2", "score": "0.54801327", "text": "public void runLoop() {\n /*\n r8 = this;\n int r0 = com.parse.Parse.getLogLevel()\n r1 = 4\n if (r1 < r0) goto L_0x000e\n java.util.logging.Logger r0 = r8.log\n java.lang.String r2 = \"Parse command cache has started processing queued commands.\"\n r0.info(r2)\n L_0x000e:\n java.lang.Object r0 = r8.runningLock\n monitor-enter(r0)\n boolean r2 = r8.running // Catch:{ all -> 0x008b }\n if (r2 == 0) goto L_0x0017\n monitor-exit(r0) // Catch:{ all -> 0x008b }\n return\n L_0x0017:\n r2 = 1\n r8.running = r2 // Catch:{ all -> 0x008b }\n java.lang.Object r3 = r8.runningLock // Catch:{ all -> 0x008b }\n r3.notifyAll() // Catch:{ all -> 0x008b }\n monitor-exit(r0) // Catch:{ all -> 0x008b }\n java.lang.Object r3 = lock\n monitor-enter(r3)\n boolean r0 = r8.shouldStop // Catch:{ all -> 0x0088 }\n r4 = 0\n if (r0 != 0) goto L_0x0030\n boolean r0 = java.lang.Thread.interrupted() // Catch:{ all -> 0x0088 }\n if (r0 != 0) goto L_0x0030\n r0 = 1\n goto L_0x0031\n L_0x0030:\n r0 = 0\n L_0x0031:\n monitor-exit(r3) // Catch:{ all -> 0x0088 }\n L_0x0032:\n if (r0 == 0) goto L_0x006c\n java.lang.Object r0 = lock\n monitor-enter(r0)\n int r3 = r8.timeoutMaxRetries // Catch:{ Exception -> 0x004f }\n r8.maybeRunAllCommandsNow(r3) // Catch:{ Exception -> 0x004f }\n boolean r3 = r8.shouldStop // Catch:{ Exception -> 0x004f }\n if (r3 != 0) goto L_0x0060\n boolean r3 = r8.unprocessedCommandsExist // Catch:{ InterruptedException -> 0x004a }\n if (r3 != 0) goto L_0x0060\n java.lang.Object r3 = lock // Catch:{ InterruptedException -> 0x004a }\n r3.wait() // Catch:{ InterruptedException -> 0x004a }\n goto L_0x0060\n L_0x004a:\n r8.shouldStop = r2 // Catch:{ Exception -> 0x004f }\n goto L_0x0060\n L_0x004d:\n r1 = move-exception\n goto L_0x0066\n L_0x004f:\n r3 = move-exception\n r5 = 6\n int r6 = com.parse.Parse.getLogLevel() // Catch:{ all -> 0x004d }\n if (r5 < r6) goto L_0x0060\n java.util.logging.Logger r5 = r8.log // Catch:{ all -> 0x004d }\n java.util.logging.Level r6 = java.util.logging.Level.SEVERE // Catch:{ all -> 0x004d }\n java.lang.String r7 = \"saveEventually thread had an error.\"\n r5.log(r6, r7, r3) // Catch:{ all -> 0x004d }\n L_0x0060:\n boolean r3 = r8.shouldStop // Catch:{ all -> 0x0069 }\n r3 = r3 ^ r2\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n r0 = r3\n goto L_0x0032\n L_0x0066:\n boolean r2 = r8.shouldStop // Catch:{ all -> 0x0069 }\n throw r1 // Catch:{ all -> 0x0069 }\n L_0x0069:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n throw r1\n L_0x006c:\n java.lang.Object r0 = r8.runningLock\n monitor-enter(r0)\n r8.running = r4 // Catch:{ all -> 0x0085 }\n java.lang.Object r2 = r8.runningLock // Catch:{ all -> 0x0085 }\n r2.notifyAll() // Catch:{ all -> 0x0085 }\n monitor-exit(r0) // Catch:{ all -> 0x0085 }\n int r0 = com.parse.Parse.getLogLevel()\n if (r1 < r0) goto L_0x0084\n java.util.logging.Logger r0 = r8.log\n java.lang.String r1 = \"saveEventually thread has stopped processing commands.\"\n r0.info(r1)\n L_0x0084:\n return\n L_0x0085:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0085 }\n throw r1\n L_0x0088:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x0088 }\n throw r0\n L_0x008b:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x008b }\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.parse.ParseCommandCache.runLoop():void\");\n }", "title": "" }, { "docid": "cd08974f174dd259b722234180c163cc", "score": "0.54799503", "text": "public void doOneLoop() {\n if(this.steeringMode && !pathFindingMode) {\n // steering+pathfollowing algorithm\n //System.out.println(\"Current PerfectList-Size: \"+this.algo_controller.perfectList.size() + \", Current goal node coords: \" + this.algo_controller.perfectList.get(this.algo_controller.perfectList.size()-1).node.toString());\n if(this.userAgent.goal == null && this.algo_controller.perfectList.size() > 0) {\n this.userAgent.goal = this.algo_controller.perfectList.get(this.algo_controller.perfectList.size()-1).node;\n this.algo_controller.perfectList.remove(this.algo_controller.perfectList.size()-1);\n } else if(this.userAgent.goal != null && (this.algo_controller.perfectList.size() < 1)){\n System.out.println(\"no more Nodes in perfect list!\");\n\n }\n if(this.algo_controller.perfectList.size() > 0) {\n if(this.algo_controller.perfectList.size() < 35) {\n System.out.println(\"aaaa\");\n }\n userAgent.move();\n } else if(this.algo_controller.perfectList.size() == 0 && this.algo_controller.solutionFound && !userAgent.isArrived) {\n userAgent.arrive(endTile);\n } else if(userAgent.isArrived) {\n JOptionPane.showMessageDialog(this, \"Agend successfully arrived!\", \"Tile clicked: \" + \"InfoBar\", JOptionPane.INFORMATION_MESSAGE);\n this.timer.stop();\n }\n\n //System.out.println(\"folow and steer\");\n }\n if(this.algo_controller.keepSearching && pathFindingMode) {\n runAStarAlgorithm();\n if(this.algo_controller.keepSearching) {\n gmf.cp.reset.setEnabled(false);\n }\n } else if(!steeringMode) {\n gmf.cp.stop.setEnabled(false);\n gmf.cp.reset.setEnabled(true);\n gmf.cp.startSteering.setEnabled(true);\n this.repaint();\n JOptionPane.showMessageDialog(this, this.algo_controller.solutionFound ? \"success\" : \"no possible solution\", \"Tile clicked: \" + \"InfoBar\", this.algo_controller.solutionFound ? JOptionPane.INFORMATION_MESSAGE : JOptionPane.ERROR_MESSAGE);\n this.pathFindingMode = false;\n this.algo_controller.keepSearching = false;\n //this.steeringMode = true;\n this.timer.stop();\n }\n update();\n repaint();\n }", "title": "" }, { "docid": "5716e37d3b5c315863ed3cec0427f30e", "score": "0.547191", "text": "private void directStateRecovery() {\n while (analyzer.hasNextStep()) {\n replay();\n }\n }", "title": "" }, { "docid": "75ec33dbbde3eec02ff1d7c7b4e67d3a", "score": "0.54518074", "text": "private void insertDeadcode() {\n if (r.nextFloat() < 1.0 / 50.0) {\r\n Label end = new Label();\r\n mv.visitJumpInsn(Opcodes.GOTO, end);\r\n mv.visitLdcInsn(\"DEAD CODE\");\r\n mv.visitLabel(end);\r\n }\r\n }", "title": "" }, { "docid": "c282f46ffce2e8904771b515ef4fb201", "score": "0.54475665", "text": "public void issueLoopBreak() {\n method.go_to(currentLoopLabels[2]);\n }", "title": "" }, { "docid": "d618a04438fd7e0d481efa90f7665d15", "score": "0.5437083", "text": "public void forfeit() {\n\t\tout.println(\"forfeit\");\n\t}", "title": "" }, { "docid": "976843e0e63f800fb9805c8c4c4d02c6", "score": "0.5431763", "text": "public void noValidMoves() {\r\n\t\tnoValidMovesCount++;\r\n\t}", "title": "" }, { "docid": "45e5e7874fca80ab1d1b9d2f5cbe175b", "score": "0.54291016", "text": "public synchronized void mo739b() {\n /*\n r1 = this;\n monitor-enter(r1)\n java.util.concurrent.atomic.AtomicInteger r0 = r1.f857a // Catch:{ Throwable -> 0x0020, all -> 0x001d }\n int r0 = r0.decrementAndGet() // Catch:{ Throwable -> 0x0020, all -> 0x001d }\n if (r0 != 0) goto L_0x000e\n android.database.sqlite.SQLiteDatabase r0 = r1.f859e // Catch:{ Throwable -> 0x0020, all -> 0x001d }\n r0.close() // Catch:{ Throwable -> 0x0020, all -> 0x001d }\n L_0x000e:\n java.util.concurrent.atomic.AtomicInteger r0 = r1.f858b // Catch:{ Throwable -> 0x0020, all -> 0x001d }\n int r0 = r0.decrementAndGet() // Catch:{ Throwable -> 0x0020, all -> 0x001d }\n if (r0 != 0) goto L_0x001b\n android.database.sqlite.SQLiteDatabase r0 = r1.f859e // Catch:{ Throwable -> 0x0020, all -> 0x001d }\n r0.close() // Catch:{ Throwable -> 0x0020, all -> 0x001d }\n L_0x001b:\n monitor-exit(r1)\n return\n L_0x001d:\n r0 = move-exception\n monitor-exit(r1)\n throw r0\n L_0x0020:\n r0 = move-exception\n goto L_0x001b\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.analytics.pro.C0275u.mo739b():void\");\n }", "title": "" }, { "docid": "dc4e9892cdfe7a0f4b818c2ea166a884", "score": "0.5425146", "text": "private void handleNoReturnForWithEffect(MyCspInstruction ins) {\n\t m_cbEvt.add(ins);\n\t m_cblkLst.add(m_cbEvt);\n\t m_cbEvt = new GrpEvent(m_funLab, ++m_no);\n }", "title": "" }, { "docid": "a6c67d73424f7fe6959e66f79787f79f", "score": "0.54212266", "text": "@Override\n public boolean process() {\n return false;\n }", "title": "" }, { "docid": "84f8af50112a05aa7f0a1fb4e4807c5a", "score": "0.5420505", "text": "public void mo40661g() throws zzgc {\n }", "title": "" }, { "docid": "7c66be5ab925015b6a3aad65837c4870", "score": "0.54116297", "text": "public boolean gotoNext();", "title": "" }, { "docid": "92001736a2ac49c6f975b4fc450982d1", "score": "0.54103327", "text": "@Override\n public void doSparring() {\n \n }", "title": "" }, { "docid": "ff7ce5707146ad8f86b310ef18a74dc4", "score": "0.5407443", "text": "@Override\n\tpublic void insGoNo() {\n\t\t\n\t}", "title": "" }, { "docid": "ebef794b1ec796d239fd02c324235a20", "score": "0.5407341", "text": "@Override\r\n public Void visit(Ast.Statement.While ast) {\n\r\n return null;\r\n }", "title": "" }, { "docid": "75e5ec1ff55dc2be0283fdd434aa2e66", "score": "0.5404259", "text": "private void internal_clean () {\n\t\t\treturn;\n\t\t}", "title": "" }, { "docid": "c374b83e801a3d4051502e03ad17e9a1", "score": "0.54001254", "text": "void a(ch var1_1, x var2_2, e var3_3) {\n var8_4 = fj.z;\n var4_5 = var1_1.getGraph2D();\n var4_5.b(1);\n if (var2_2 == null || !var2_2.f()) ** GOTO lbl25\n var5_6 = var4_5.C();\n if (var5_6 != null) ** GOTO lbl12\n while (var2_2.f()) {\n var4_5.t(var2_2.e()).setLayer(0);\n var2_2.g();\n if (var8_4 != false) return;\n if (!var8_4) continue;\nlbl12: // 2 sources:\n var6_7 = new HashSet<q>();\n var6_7.add(null);\n while (var2_2.f()) {\n block6 : {\n var7_8 = var2_2.e();\n while (var6_7.add(var7_8)) {\n var4_5.t(var7_8).setLayer(0);\n var7_8 = var5_6.n(var7_8);\n if (!var8_4) {\n if (!var8_4) continue;\n }\n break block6;\n }\n var2_2.g();\n }\n if (!var8_4) continue;\n }\n break block0;\n }\nlbl25: // 4 sources:\n if (var3_3 != null && var3_3.f()) {\n while (var3_3.f()) {\n var4_5.i(var3_3.a()).setLayer(0);\n var3_3.g();\n if (var8_4 != false) return;\n if (!var8_4) continue;\n }\n }\n var1_1.setDrawingMode(3);\n }", "title": "" }, { "docid": "4e36cf5eb4a5cc52e331eb6a05a34133", "score": "0.5390983", "text": "void liikuPohja() {\n while (!tormaaAlas()) {\n liikuAlas();\n }\n }", "title": "" }, { "docid": "f75075c1f0bae1bc9de2ce7b41f58cfa", "score": "0.5388546", "text": "private void op0() {\n\t\tenterRule(NonTerminal.OP0);\n\t\texpect(currentToken.kind);\n\t\texitRule(NonTerminal.OP0);\n\t\t\n\t}", "title": "" }, { "docid": "b414dbf6445873ffec3b826eb499fd49", "score": "0.5388526", "text": "private void exitSequence_main_region_PlacingPod_r1_Poored() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t\t\n\t\texitAction_main_region_PlacingPod_r1_Poored();\n\t}", "title": "" }, { "docid": "6bdabc6b75d720918ba398148932b628", "score": "0.5388247", "text": "private void graphicalError()\n\t{\n\t\tdbgShot(\"AI out of loop, got IMBACK\");\n\t\tlog(\"sitting out because of IMBACK\");\n\t\tfail(\"detection of IMBACK\", new Exception(\"detection of IMBACK\"));\n\t}", "title": "" }, { "docid": "02e89484e8fdf43c505b0f6ed4b97711", "score": "0.5381756", "text": "private void case1() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "682466d3f8313beef45ab39ea63e5f0b", "score": "0.5381379", "text": "public void visitEnd() {\n\t\tif (1 == 1)\n\t\t\tthrow new RuntimeException(\"NYI\");\n\t\t// writeAdditionalVars();\n\t}", "title": "" }, { "docid": "de22ad09b6a54c95483b19ffa672e50b", "score": "0.53753453", "text": "public void incrementNoGoalCount() {\n\t\tnoGoalCount++;\n\t}", "title": "" }, { "docid": "39551ea0357cde4b9193d617de0c9fa9", "score": "0.5368751", "text": "private void compileDoStatement() {\n advance();\n compileSubroutineCall();\n advance();\n checkToken(TokenType.TOKEN_SYMBOL);\n checkSymbol(';');\n // ignore the return value which is the constant 0\n codeWriter.writePop(Segment.TEMP,0);\n }", "title": "" }, { "docid": "77d41bfa5048eef774532d24bcf4d33c", "score": "0.53674936", "text": "@Override\r\n\tpublic int run() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "7755fd1bb082de6be481ffecbad1569d", "score": "0.5366978", "text": "@Override\n\t\tpublic void nothing() {\n\n\t\t}", "title": "" }, { "docid": "add6f4ccc7c618c0d318f4329feaf48b", "score": "0.53654826", "text": "public void mo41a() {\n throw null;\n }", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.53609544", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "d67f16248e510b3e9f33dd4ffadb41c3", "score": "0.535826", "text": "public boolean continueExecuting()\n {\n return false;\n }", "title": "" }, { "docid": "e87facc53347a6212cdfd3963f5269d1", "score": "0.5356769", "text": "private void playInstructionForEmptyBookAudio() {\n\t}", "title": "" }, { "docid": "4371f4182a0e6559501f75b739d7b857", "score": "0.5355172", "text": "@Override\n public boolean shouldContinueExecuting() {\n return !ducky.getNavigator().noPath();\n }", "title": "" }, { "docid": "c32404e8327b1924baed96a49e81e8d4", "score": "0.5349776", "text": "public void mo43b() {\n throw null;\n }", "title": "" }, { "docid": "3985adb6b712a873972a40b7957fef8f", "score": "0.53495115", "text": "public void mo40656b() throws zzgc {\n }", "title": "" }, { "docid": "b752772310d4dc7fc9571d63daae55a4", "score": "0.5341126", "text": "private V e() throws com.amap.api.col.n3.hv {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, hv -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, hv -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, hv -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, hv -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, hv -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, hv -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, hv -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.hv r0 = new com.amap.api.col.n3.hv\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.hv r0 = new com.amap.api.col.n3.hv\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.i // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.hv r0 = new com.amap.api.col.n3.hv\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.hv r0 = new com.amap.api.col.n3.hv\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.hv r0 = new com.amap.api.col.n3.hv\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.hv r0 = new com.amap.api.col.n3.hv\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.hw.e():java.lang.Object\");\n }", "title": "" }, { "docid": "e9f66a5a4eca6e61caa1d0ecba01c861", "score": "0.53407735", "text": "private void jumpContig() {\n ++seqLoc;\n \n if (!(seqLoc < dic.getSequences().size())) {\n nextContig = false;\n return;\n }\n logger.debug(\"Next contig, index = \" + dic.getSequence(seqLoc).getSequenceIndex());\n mLoc = new GenomeLoc(dic.getSequence(seqLoc).getSequenceIndex(), 0, 0);\n \n \n }", "title": "" }, { "docid": "25af2a3c41523b7683bcd294ba1aca47", "score": "0.53406984", "text": "public void cancel() {\n /*\n r2 = this;\n r1 = r2.Dp;\n monitor-enter(r1);\n r0 = r2.Dv;\t Catch:{ all -> 0x002c }\n if (r0 != 0) goto L_0x000b;\n L_0x0007:\n r0 = r2.Du;\t Catch:{ all -> 0x002c }\n if (r0 == 0) goto L_0x000d;\n L_0x000b:\n monitor-exit(r1);\t Catch:{ all -> 0x002c }\n L_0x000c:\n return;\n L_0x000d:\n r0 = r2.Dx;\t Catch:{ all -> 0x002c }\n if (r0 == 0) goto L_0x0016;\n L_0x0011:\n r0 = r2.Dx;\t Catch:{ RemoteException -> 0x002f }\n r0.cancel();\t Catch:{ RemoteException -> 0x002f }\n L_0x0016:\n r0 = r2.Dt;\t Catch:{ all -> 0x002c }\n com.google.android.gms.common.api.C0153a.m155a(r0);\t Catch:{ all -> 0x002c }\n r0 = 0;\n r2.Ds = r0;\t Catch:{ all -> 0x002c }\n r0 = 1;\n r2.Dv = r0;\t Catch:{ all -> 0x002c }\n r0 = com.google.android.gms.common.api.Status.Er;\t Catch:{ all -> 0x002c }\n r0 = r2.mo2535c(r0);\t Catch:{ all -> 0x002c }\n r2.m1979c(r0);\t Catch:{ all -> 0x002c }\n monitor-exit(r1);\t Catch:{ all -> 0x002c }\n goto L_0x000c;\n L_0x002c:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x002c }\n throw r0;\n L_0x002f:\n r0 = move-exception;\n goto L_0x0016;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.a.a.cancel():void\");\n }", "title": "" }, { "docid": "662a734db954a74b87462e1d4c1f3ed5", "score": "0.5336219", "text": "@Override\n\t\tpublic void go() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f897ab776252c109196f421a09049b05", "score": "0.5335847", "text": "private void loadNextBlock() {\n /*\n r9 = this;\n L_0x0000:\n r0 = 0\n java.util.Iterator<java.io.File> r1 = r9.fileIt // Catch:{ IOException -> 0x0018 }\n boolean r1 = r1.hasNext() // Catch:{ IOException -> 0x0018 }\n if (r1 != 0) goto L_0x0025\n java.io.FileInputStream r1 = r9.currentFileStream // Catch:{ IOException -> 0x0018 }\n if (r1 == 0) goto L_0x00c5\n java.io.FileInputStream r1 = r9.currentFileStream // Catch:{ IOException -> 0x0018 }\n int r1 = r1.available() // Catch:{ IOException -> 0x0018 }\n r2 = 1\n if (r1 >= r2) goto L_0x0025\n goto L_0x00c5\n L_0x0018:\n r9.currentFileStream = r0\n java.util.Iterator<java.io.File> r1 = r9.fileIt\n boolean r1 = r1.hasNext()\n if (r1 != 0) goto L_0x0025\n goto L_0x00c5\n L_0x0025:\n java.io.FileInputStream r1 = r9.currentFileStream // Catch:{ IOException -> 0x00ce }\n if (r1 == 0) goto L_0x00d0\n java.io.FileInputStream r1 = r9.currentFileStream // Catch:{ IOException -> 0x00ce }\n int r1 = r1.available() // Catch:{ IOException -> 0x00ce }\n if (r1 <= 0) goto L_0x00d0\n java.io.FileInputStream r1 = r9.currentFileStream // Catch:{ IOException -> 0x00ca }\n int r1 = r1.read() // Catch:{ IOException -> 0x00ca }\n L_0x0037:\n r2 = -1\n if (r1 == r2) goto L_0x0091\n long r1 = (long) r1 // Catch:{ IOException -> 0x00ca }\n org.bitcoinj.core.NetworkParameters r3 = r9.params // Catch:{ IOException -> 0x00ca }\n long r3 = r3.getPacketMagic() // Catch:{ IOException -> 0x00ca }\n r5 = 24\n long r3 = r3 >>> r5\n r5 = 255(0xff, double:1.26E-321)\n long r3 = r3 & r5\n int r7 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r7 == 0) goto L_0x0052\n java.io.FileInputStream r1 = r9.currentFileStream // Catch:{ IOException -> 0x00ca }\n int r1 = r1.read() // Catch:{ IOException -> 0x00ca }\n goto L_0x0037\n L_0x0052:\n java.io.FileInputStream r1 = r9.currentFileStream // Catch:{ IOException -> 0x00ca }\n int r1 = r1.read() // Catch:{ IOException -> 0x00ca }\n long r2 = (long) r1 // Catch:{ IOException -> 0x00ca }\n org.bitcoinj.core.NetworkParameters r4 = r9.params // Catch:{ IOException -> 0x00ca }\n long r7 = r4.getPacketMagic() // Catch:{ IOException -> 0x00ca }\n r4 = 16\n long r7 = r7 >>> r4\n long r7 = r7 & r5\n int r4 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r4 == 0) goto L_0x0068\n goto L_0x0037\n L_0x0068:\n java.io.FileInputStream r1 = r9.currentFileStream // Catch:{ IOException -> 0x00ca }\n int r1 = r1.read() // Catch:{ IOException -> 0x00ca }\n long r2 = (long) r1 // Catch:{ IOException -> 0x00ca }\n org.bitcoinj.core.NetworkParameters r4 = r9.params // Catch:{ IOException -> 0x00ca }\n long r7 = r4.getPacketMagic() // Catch:{ IOException -> 0x00ca }\n r4 = 8\n long r7 = r7 >>> r4\n long r7 = r7 & r5\n int r4 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r4 == 0) goto L_0x007e\n goto L_0x0037\n L_0x007e:\n java.io.FileInputStream r1 = r9.currentFileStream // Catch:{ IOException -> 0x00ca }\n int r1 = r1.read() // Catch:{ IOException -> 0x00ca }\n long r2 = (long) r1 // Catch:{ IOException -> 0x00ca }\n org.bitcoinj.core.NetworkParameters r4 = r9.params // Catch:{ IOException -> 0x00ca }\n long r7 = r4.getPacketMagic() // Catch:{ IOException -> 0x00ca }\n long r4 = r7 & r5\n int r6 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r6 != 0) goto L_0x0037\n L_0x0091:\n r1 = 4\n byte[] r2 = new byte[r1] // Catch:{ IOException -> 0x00ca }\n java.io.FileInputStream r3 = r9.currentFileStream // Catch:{ IOException -> 0x00ca }\n r4 = 0\n r3.read(r2, r4, r1) // Catch:{ IOException -> 0x00ca }\n byte[] r1 = org.bitcoinj.core.C3447Utils.reverseBytes(r2) // Catch:{ IOException -> 0x00ca }\n long r1 = org.bitcoinj.core.C3447Utils.readUint32BE(r1, r4) // Catch:{ IOException -> 0x00ca }\n r5 = 16000000(0xf42400, double:7.9050503E-317)\n int r3 = (r1 > r5 ? 1 : (r1 == r5 ? 0 : -1))\n if (r3 > 0) goto L_0x0000\n r5 = 0\n int r3 = (r1 > r5 ? 1 : (r1 == r5 ? 0 : -1))\n if (r3 > 0) goto L_0x00b1\n goto L_0x0000\n L_0x00b1:\n int r2 = (int) r1 // Catch:{ IOException -> 0x00ca }\n byte[] r1 = new byte[r2] // Catch:{ IOException -> 0x00ca }\n java.io.FileInputStream r3 = r9.currentFileStream // Catch:{ IOException -> 0x00ca }\n r3.read(r1, r4, r2) // Catch:{ IOException -> 0x00ca }\n org.bitcoinj.core.NetworkParameters r2 = r9.params // Catch:{ ProtocolException -> 0x00c6 }\n org.bitcoinj.core.MessageSerializer r2 = r2.getDefaultSerializer() // Catch:{ ProtocolException -> 0x00c6 }\n org.bitcoinj.core.Block r1 = r2.makeBlock(r1) // Catch:{ ProtocolException -> 0x00c6 }\n r9.nextBlock = r1 // Catch:{ ProtocolException -> 0x00c6 }\n L_0x00c5:\n return\n L_0x00c6:\n r9.nextBlock = r0 // Catch:{ IOException -> 0x00ca }\n goto L_0x0000\n L_0x00ca:\n r9.currentFileStream = r0\n goto L_0x0000\n L_0x00ce:\n r9.currentFileStream = r0\n L_0x00d0:\n java.util.Iterator<java.io.File> r1 = r9.fileIt\n boolean r1 = r1.hasNext()\n if (r1 != 0) goto L_0x00dd\n r9.nextBlock = r0\n r9.currentFileStream = r0\n return\n L_0x00dd:\n java.io.FileInputStream r1 = new java.io.FileInputStream // Catch:{ FileNotFoundException -> 0x00ee }\n java.util.Iterator<java.io.File> r2 = r9.fileIt // Catch:{ FileNotFoundException -> 0x00ee }\n java.lang.Object r2 = r2.next() // Catch:{ FileNotFoundException -> 0x00ee }\n java.io.File r2 = (java.io.File) r2 // Catch:{ FileNotFoundException -> 0x00ee }\n r1.<init>(r2) // Catch:{ FileNotFoundException -> 0x00ee }\n r9.currentFileStream = r1 // Catch:{ FileNotFoundException -> 0x00ee }\n goto L_0x0025\n L_0x00ee:\n r9.currentFileStream = r0\n goto L_0x0025\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.bitcoinj.utils.BlockFileLoader.loadNextBlock():void\");\n }", "title": "" }, { "docid": "8399e3ff6818715f8236b310e478390c", "score": "0.53340447", "text": "@Test(timeout = 1000)\n\tpublic void infinity() {\n\t\twhile (true)\n\t\t\t;\n\t}", "title": "" }, { "docid": "7080c55bb32f5292ead5f3da1a7b7ec7", "score": "0.5331626", "text": "int calc(){\r\n\t\ttry{\r\n\t\t\t//first scenario retun in try block error occurs\r\n\t\t\t//return 1;\r\n\t\t\t//int x=12/0;\r\n\t\t}catch(Exception e){\r\n\t\t\treturn 10;\r\n\t\t}\r\n\t\treturn 10;\r\n\t\t//System.out.println(\"End\"); /// if any statement after return type unreachable code exception\r\n\t\t//return 10;\r\n\t}", "title": "" }, { "docid": "cf6a8d8b8629f30c212430bad50467a5", "score": "0.5330954", "text": "void isolateBadRecord() {\n \n }", "title": "" }, { "docid": "b8bc999a3aa5c409a7e54856c52e29e6", "score": "0.53299093", "text": "@Override\n\tpublic boolean process() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f4388d2661e1768ffdb7f57cd0e53ac5", "score": "0.5325675", "text": "@Override\n\tpublic void done()\n\t{\n\t\t// Do nothing, because we don't care about it.\n\t}", "title": "" }, { "docid": "f0ee36e3c94bf7b5098f4b0cffa8c8f2", "score": "0.53253305", "text": "private boolean a(java.lang.String r4, byte[] r5) {\n /*\n r3 = this;\n if (r5 == 0) goto L_0x003e\n r0 = 0\n java.io.File r1 = new java.io.File // Catch:{ Exception -> 0x0035, all -> 0x002b }\n java.io.File r2 = r3.g() // Catch:{ Exception -> 0x0035, all -> 0x002b }\n r1.<init>(r2, r4) // Catch:{ Exception -> 0x0035, all -> 0x002b }\n boolean r4 = r1.exists() // Catch:{ Exception -> 0x0035, all -> 0x002b }\n if (r4 == 0) goto L_0x0015\n r1.delete() // Catch:{ Exception -> 0x0035, all -> 0x002b }\n L_0x0015:\n java.io.FileOutputStream r4 = new java.io.FileOutputStream // Catch:{ Exception -> 0x0035, all -> 0x002b }\n r4.<init>(r1) // Catch:{ Exception -> 0x0035, all -> 0x002b }\n r4.write(r5) // Catch:{ Exception -> 0x0029, all -> 0x0025 }\n r4.flush() // Catch:{ Exception -> 0x0023 }\n r4.close() // Catch:{ Exception -> 0x0023 }\n L_0x0023:\n r4 = 1\n return r4\n L_0x0025:\n r5 = move-exception\n r0 = r4\n r4 = r5\n goto L_0x002c\n L_0x0029:\n goto L_0x0036\n L_0x002b:\n r4 = move-exception\n L_0x002c:\n if (r0 == 0) goto L_0x0034\n r0.flush() // Catch:{ Exception -> 0x0034 }\n r0.close() // Catch:{ Exception -> 0x0034 }\n L_0x0034:\n throw r4\n L_0x0035:\n r4 = r0\n L_0x0036:\n if (r4 == 0) goto L_0x003e\n r4.flush() // Catch:{ Exception -> 0x003e }\n r4.close() // Catch:{ Exception -> 0x003e }\n L_0x003e:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.webengage.sdk.android.utils.a.b.a(java.lang.String, byte[]):boolean\");\n }", "title": "" }, { "docid": "82540ef98e8df4a0d85ca9ba38bac1ba", "score": "0.53239197", "text": "protected void reset()\r\n \t{\r\n \t \r\n \t}", "title": "" }, { "docid": "4eb13e25b2881914b289477cd23b471f", "score": "0.5323692", "text": "public final void emitLoop() {\n /*\n r13 = this;\n r12 = 0;\n r2 = 9223372036854775807; // 0x7fffffffffffffff float:NaN double:NaN;\n r10 = 0;\n L_0x0008:\n monitor-enter(r13);\n r4 = r13.missedRequested;\t Catch:{ all -> 0x0045 }\n r6 = r13.missedProduced;\t Catch:{ all -> 0x0045 }\n r8 = r13.missedProducer;\t Catch:{ all -> 0x0045 }\n r0 = (r4 > r10 ? 1 : (r4 == r10 ? 0 : -1));\n if (r0 != 0) goto L_0x001e;\n L_0x0013:\n r0 = (r6 > r10 ? 1 : (r6 == r10 ? 0 : -1));\n if (r0 != 0) goto L_0x001e;\n L_0x0017:\n if (r8 != 0) goto L_0x001e;\n L_0x0019:\n r0 = 0;\n r13.emitting = r0;\t Catch:{ all -> 0x0045 }\n monitor-exit(r13);\t Catch:{ all -> 0x0045 }\n return;\n L_0x001e:\n r0 = 0;\n r13.missedRequested = r0;\t Catch:{ all -> 0x0045 }\n r0 = 0;\n r13.missedProduced = r0;\t Catch:{ all -> 0x0045 }\n r0 = 0;\n r13.missedProducer = r0;\t Catch:{ all -> 0x0045 }\n monitor-exit(r13);\t Catch:{ all -> 0x0045 }\n r0 = r13.requested;\n r9 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r9 == 0) goto L_0x003c;\n L_0x0030:\n r0 = r0 + r4;\n r9 = (r0 > r10 ? 1 : (r0 == r10 ? 0 : -1));\n if (r9 < 0) goto L_0x0039;\n L_0x0035:\n r9 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r9 != 0) goto L_0x0048;\n L_0x0039:\n r13.requested = r2;\n r0 = r2;\n L_0x003c:\n if (r8 == 0) goto L_0x005e;\n L_0x003e:\n r4 = NULL_PRODUCER;\n if (r8 != r4) goto L_0x0058;\n L_0x0042:\n r13.currentProducer = r12;\n goto L_0x0008;\n L_0x0045:\n r0 = move-exception;\n monitor-exit(r13);\t Catch:{ all -> 0x0045 }\n throw r0;\n L_0x0048:\n r0 = r0 - r6;\n r6 = (r0 > r10 ? 1 : (r0 == r10 ? 0 : -1));\n if (r6 >= 0) goto L_0x0055;\n L_0x004d:\n r0 = new java.lang.IllegalStateException;\n r1 = \"more produced than requested\";\n r0.<init>(r1);\n throw r0;\n L_0x0055:\n r13.requested = r0;\n goto L_0x003c;\n L_0x0058:\n r13.currentProducer = r8;\n r8.request(r0);\n goto L_0x0008;\n L_0x005e:\n r0 = r13.currentProducer;\n if (r0 == 0) goto L_0x0008;\n L_0x0062:\n r1 = (r4 > r10 ? 1 : (r4 == r10 ? 0 : -1));\n if (r1 == 0) goto L_0x0008;\n L_0x0066:\n r0.request(r4);\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.producers.ProducerArbiter.emitLoop():void\");\n }", "title": "" }, { "docid": "f724df56cd7dfc7cfc9a6d3968c9524c", "score": "0.53224784", "text": "@Override\n public void toRoborovski(Program program, Block block) {\n // nop\n }", "title": "" }, { "docid": "7b7a2c774aed222ddd92948cb7f5cf10", "score": "0.53190213", "text": "public final void mo9279b() {\n }", "title": "" }, { "docid": "5c75635fde059137125eb32ca64464fb", "score": "0.531515", "text": "private int handleHalt() {\n\n\t\tMachine.halt();\n\n\t\tLib.assertNotReached(\"Machine.halt() did not halt machine!\");\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "4917c778ac5a845179c79bc4c9ec9065", "score": "0.53099537", "text": "public void unskipped();", "title": "" }, { "docid": "88ecb62c7a1a93131fb72fdf892b6e96", "score": "0.5301816", "text": "public void mo18969b() {\n }", "title": "" } ]
b24cd5b089adc1f490b38f7e761c35b5
Changes current mode to move mode
[ { "docid": "847d2927df3f08876d224831dcb5d765", "score": "0.68188095", "text": "public void setMoveMode() {\n\t\tsetMoveMode(ModeSetter.TOOLBAR);\n\t}", "title": "" } ]
[ { "docid": "0930614fecad777b7a6011f514c0c779", "score": "0.7532113", "text": "public void AGmove() {\r\n\t\ttime = r.getTime();\r\n\t\tcurrentMode = 0;\r\n\t}", "title": "" }, { "docid": "6a8e33f0c0b2cc5c664b3a31cdbf832e", "score": "0.7306704", "text": "public void setMoveMode(ModeSetter m) {\n\t\tsetMode(EuclidianConstants.MODE_MOVE, m);\n\t}", "title": "" }, { "docid": "b76abf22f67948c04da5b7634f60c46b", "score": "0.68931407", "text": "public void setTurnMode(int mode) {\n\t\tswitch(mode){\n\t\tcase CTRL_ANGULAR:\n\t\tcase CTRL_HORIZONTAL:\n\t\tcase CTRL_VERTICAL:\n\t\t\tthis.mode = mode;\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "b76abf22f67948c04da5b7634f60c46b", "score": "0.68931407", "text": "public void setTurnMode(int mode) {\n\t\tswitch(mode){\n\t\tcase CTRL_ANGULAR:\n\t\tcase CTRL_HORIZONTAL:\n\t\tcase CTRL_VERTICAL:\n\t\t\tthis.mode = mode;\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "39b09672b345436dd758fdd5d4c74676", "score": "0.6837007", "text": "public void move() {\n \tSystem.out.println(\"in MOVE\");\n \tif (this.flipped){\n \t\tthis.flipped = false;\n \t\tthis.flippingBack =true;\n \t\tthis.flipping = false; //this should already be false, but just in case\n \t\tthis.notFlipped = true; //this should already be false, but just in case\n \t} else if (this.notFlipped){\n \t\tthis.notFlipped = false;\n \t\tthis.flipping =true;\n \t\tthis.flippingBack = false; //this should already be false, but just in case\n \t\tthis.flipped = true; //this should already be false, but just in case\n \t}\n }", "title": "" }, { "docid": "3d8b6337df322c09488da3e1075ac9f8", "score": "0.6796401", "text": "@Override\n\tpublic void changePlayerMode(PlayerMode p) {\n\t\tthis.playerMode = p;\n\t\tif(p.equals(PlayerMode.Smart)|| p.equals(PlayerMode.Random)) decideMakeAutomaticMove();\n\t}", "title": "" }, { "docid": "8ddb1d6c0d8ada9408baf36a43f1940c", "score": "0.6731962", "text": "public void changePlayerMoveAlgo() {\n if (this.gameBoard.getPlayer().getMoveBehaviour().getClass() == MoveCardinal.class) {\n this.gameBoard.getPlayer().changeMoveBehaviour(new MoveDiagonally());\n } else {\n this.gameBoard.getPlayer().changeMoveBehaviour(new MoveCardinal());\n }\n }", "title": "" }, { "docid": "1043d5aecfe6fcd84b6d1b95c7976db7", "score": "0.6709868", "text": "public void setMode(Modes newMode) {\n mCurrentMode = newMode;\n }", "title": "" }, { "docid": "ddb073d60051fc5d419ad410a57d05b0", "score": "0.665925", "text": "private void setMode(int currentPos, int newPos){\n pasos = newPos-currentPos;\n if(pasos!=0) {\n isMoving=true;\n if (Math.abs(pasos) <= Constantes.MEDIAPROTOCOLS) {\n times=Math.abs(pasos);\n if(pasos>0) {\n //mHandPulse.postDelayed(mRunDown, Constantes.DELAY+50);\n MainActivity.sendData(SocketClient.pack(new byte[]{Constantes.COMMAND_PULSOS,(byte)times,Constantes.COMMAND_SETDOWN}),ProgMenu.this);\n isMoving=false;\n }\n else {\n MainActivity.sendData(SocketClient.pack(new byte[]{Constantes.COMMAND_PULSOS, (byte) times, Constantes.COMMAND_SETUP}), ProgMenu.this);\n isMoving=false;\n }\n //mHandPulse.postDelayed(mRunUP, Constantes.DELAY+50);\n\n }\n else{\n if(pasos>0) {\n pasos=Constantes.NUMPROTOCOLS-pasos;\n times=pasos;\n //mHandPulse.postDelayed(mRunUP, Constantes.DELAY+50);\n MainActivity.sendData(SocketClient.pack(new byte[]{Constantes.COMMAND_PULSOS,(byte)times,Constantes.COMMAND_SETUP}),ProgMenu.this);\n isMoving=false;\n }\n else{\n pasos=Constantes.NUMPROTOCOLS+pasos;\n times=pasos;\n //mHandPulse.postDelayed(mRunDown, Constantes.DELAY+50);\n MainActivity.sendData(SocketClient.pack(new byte[]{Constantes.COMMAND_PULSOS,(byte)times,Constantes.COMMAND_SETDOWN}),ProgMenu.this);\n isMoving=false;\n }\n }\n\n }\n }", "title": "" }, { "docid": "0139a5e1632cf5a7af6e1b4819918470", "score": "0.66017634", "text": "private void switchModes(int mode) {\n\t\tif (mode != m_mode) {\n\t\t\tswitchModes();\n\t\t}\n\t}", "title": "" }, { "docid": "fb0e5fa0e74ba2157433056e9f8ba1bd", "score": "0.65197897", "text": "MoveState CurrentMoveState();", "title": "" }, { "docid": "1aaf2f32ee79939f01a03fee492115ec", "score": "0.651889", "text": "public void switchposition() {\n\t\tthis.ouvert = !this.ouvert;\n\t}", "title": "" }, { "docid": "154ef628bd7eabbac966ebb995886bae", "score": "0.6492507", "text": "public void setCurrentMove(String move) {\n\t\tcurrentMove = move;\n\t}", "title": "" }, { "docid": "d1edfc4bd682a429d86990e658239ee1", "score": "0.6467403", "text": "public void changeDirection(){\n\t\tif(this.getExpectedMovmentDirection()==CONSTANTS.RIGHT){\n\t\t\tthis.movmentDirection=CONSTANTS.LEFT;\n\t\t\tthis.expectedNextMovmentDirection=CONSTANTS.LEFT;\n\t\t}\n\t\telse if(this.getExpectedMovmentDirection()==CONSTANTS.LEFT){\n\t\t\tthis.movmentDirection=CONSTANTS.RIGHT;\n\t\t\tthis.expectedNextMovmentDirection=CONSTANTS.RIGHT;\n\t\t}\n\t\telse if(this.getExpectedMovmentDirection()==CONSTANTS.UP){\n\t\t\tthis.movmentDirection=CONSTANTS.DOWN;\n\t\t\tthis.expectedNextMovmentDirection=CONSTANTS.DOWN;\n\t\t}\n\t\telse if(this.getExpectedMovmentDirection()==CONSTANTS.DOWN){\n\t\t\tthis.movmentDirection=CONSTANTS.UP;\n\t\t\tthis.expectedNextMovmentDirection=CONSTANTS.UP;\n\t\t}\n\t}", "title": "" }, { "docid": "72716727af6833ef820ce11e7389c7e7", "score": "0.6446214", "text": "public void changeMode (AppMode mode)\n {\n doModeTransition(ModeTransition.CHANGE, mode);\n }", "title": "" }, { "docid": "6a6a8aef3c5c86399c6d4ab14e421922", "score": "0.6399898", "text": "public void move() {\n\t\tswitch (this.getDir()) {\n\t\tcase \"UP\":\n\t\t\tthis.moveUp();\n\t\t\tbreak;\n\t\tcase \"RIGHT\":\n\t\t\tthis.moveRight();\n\t\t\tbreak;\n\t\tcase \"DOWN\":\n\t\t\tthis.moveDown();\n\t\t\tbreak;\n\t\tcase \"LEFT\":\n\t\t\tthis.moveLeft();\n\t\t\tbreak;\n\t\tcase \"UPLEFT\":\n\t\t\tthis.moveUpLeft();\n\t\t\tbreak;\n\t\tcase \"DOWNLEFT\":\n\t\t\tthis.moveDownLeft();\n\t\t\tbreak;\n\t\tcase \"UPRIGHT\":\n\t\t\tthis.moveUpRight();\n\t\t\tbreak;\n\t\tcase \"DOWNRIGHT\":\n\t\t\tthis.moveDownRight();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "561debbec4fb3a5e2b498640b87594ac", "score": "0.63857496", "text": "public void setCurrentMove(Move currentMove) {\n this.currentMove = currentMove;\n }", "title": "" }, { "docid": "1fefa183c90fbf2aa4a32894559feef8", "score": "0.6369421", "text": "public void changeMode(Button button) {\r\n\t\tmode = !mode;\r\n\t\tfor(ShipInterface ships : pirates) {\r\n\t\t\t((Pirate) ships).setStrategy(mode ? new SmartChase() : new GuardChase());\r\n\t\t}\r\n\t\tbutton.setText(mode ? \"Mode 1\" : \"Mode 2\");\r\n\t}", "title": "" }, { "docid": "5e6c470b96fcb68b9a9780841a7459d2", "score": "0.63629925", "text": "public void move() {\n\t\t// super.super.move()\n\t\tsuper.move(1,0);\n\t}", "title": "" }, { "docid": "12d8886d869eccd4691dff946daff69b", "score": "0.63262683", "text": "public void move() {\n\t\t\n\t}", "title": "" }, { "docid": "b786a5879ac8ceff882ab0af6755b473", "score": "0.63097245", "text": "public void setCurrentMode(Mode mode) {\n\t\tDate timeToRun = new Date(System.currentTimeMillis() + mode.getTime());\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tcurrentMode = new Normal();\n\t\t\t}\n\t\t}, timeToRun);\n\t\tcurrentMode = mode;\n\t}", "title": "" }, { "docid": "2556e0904bdad3a8ea3a11bbb488dc0b", "score": "0.6260009", "text": "@Override\n public void runOpMode() {\n RightFront = hardwareMap.dcMotor.get(\"RightFront\");\n RightRear = hardwareMap.dcMotor.get(\"RightRear\");\n LeftFront = hardwareMap.dcMotor.get(\"LeftFront\");\n LeftRear = hardwareMap.dcMotor.get(\"LeftRear\");\n\n RightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n RightRear.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n LeftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n LeftRear.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n RightFront.setDirection(DcMotorSimple.Direction.REVERSE);\n RightRear.setDirection(DcMotorSimple.Direction.REVERSE);\n waitForStart();\n if (opModeIsActive()) {\n resetTimer();\n while (timer.seconds() < 1.0 && opModeIsActive()) {\n move();\n }\n resetTimer();\n while (timer.seconds() < 0.81 && opModeIsActive()) {\n turnL();\n }\n resetTimer();\n while (timer.seconds() < 1.2 && opModeIsActive()) {\n move();\n }\n resetTimer();\n while (timer.seconds() < 0.7 && opModeIsActive()) {\n stopo();\n }\n resetTimer();\n while (timer.seconds() < 0.45 && opModeIsActive()) {\n moveSlow();\n }\n resetTimer();\n while (timer.seconds() < 1 && opModeIsActive()) {\n turnR();\n }\n resetTimer();\n while (timer.seconds() < 0.6 && opModeIsActive()) {\n move();\n }\n resetTimer();\n while (timer.seconds() < 0.1 && opModeIsActive()) {\n turnR();\n }\n resetTimer();\n while (timer.seconds() < 1 && opModeIsActive()) {\n move();\n }\n }\n }", "title": "" }, { "docid": "0c55f2d151866bfe1a8d7261f693af7e", "score": "0.6258806", "text": "public void move(){\n\t\t\n\t}", "title": "" }, { "docid": "86f370965fc6cf763da5939cd8abd9ac", "score": "0.62583727", "text": "public void moveDirection(){\n\t\tswitch(moveState){\n\t\t\tcase \"DOWN\":\n\t\t\t\tmoveDown();\n\t\t\t\tbreak;\n\t\t\tcase \"DIAGONAL\":\n\t\t\t\tmoveDiagonal();\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "cb28cae4897c6fa2ef8cd53931c6e319", "score": "0.6248522", "text": "@Override\r\n\tpublic void move() {\n\t\t\r\n\t}", "title": "" }, { "docid": "eb3d29a8d8982da5b009a30c90c1f3df", "score": "0.62480533", "text": "public void setTurnControllerMode(AutonomousTurningController.TurnMode mode) {\n\t\tturnNavigator.setMode(mode);\n\t}", "title": "" }, { "docid": "78513ab56fa4bfbfe2a80ee507c0e9e0", "score": "0.624135", "text": "public boolean move();", "title": "" }, { "docid": "a9f11d25b9f5c8750390c715548e2da8", "score": "0.6239775", "text": "private void updatePosition(MOVES move) {\n\n switch (move) {\n case L:\n if(currentPosition.currentFacingDirection.equals(POSITIONS.SOUTH)) {\n currentPosition.currentFacingDirection = POSITIONS.EAST;\n\n }else if(currentPosition.currentFacingDirection.equals(POSITIONS.EAST)) {\n currentPosition.currentFacingDirection = POSITIONS.NORTH;\n }else if(currentPosition.currentFacingDirection.equals(POSITIONS.NORTH)) {\n currentPosition.currentFacingDirection = POSITIONS.WEST;\n }else {\n currentPosition.currentFacingDirection = POSITIONS.SOUTH;\n }\n break;\n\n case R:\n if(currentPosition.currentFacingDirection.equals(POSITIONS.SOUTH)) {\n currentPosition.currentFacingDirection = POSITIONS.WEST;\n\n }else if(currentPosition.currentFacingDirection.equals(POSITIONS.EAST)) {\n currentPosition.currentFacingDirection = POSITIONS.SOUTH;\n }else if(currentPosition.currentFacingDirection.equals(POSITIONS.NORTH)) {\n currentPosition.currentFacingDirection = POSITIONS.EAST;\n }else {\n currentPosition.currentFacingDirection = POSITIONS.NORTH;\n }\n break;\n case M:\n updateCoOrdinates();\n\n\n }\n\n }", "title": "" }, { "docid": "6c0e61522ead2e78a72d0953fae21c58", "score": "0.62287444", "text": "public void move(){\n\t\tPoint nextSpot = calculateNextSpot();\n\t\t\n\t\tif(isSpotValid(nextSpot) == true){\n\t\t\t\n\t\t\tgridPoint = nextSpot;\n\t\t\tsetLocation(gridPoint.x*16, gridPoint.y*16+30);\n\t\t\t\n\t\t}else{\n\t\t\t//remember which way it was moving\n\t\t\tint previousDir = wayIsMoving;\n\t\t\t//switch to either down or up\n\t\t\tif(headedDown == true){\n\t\t\t\twayIsMoving = 3;\n\t\t\t}else{\n\t\t\t\twayIsMoving = 4;\n\t\t\t}\n\t\t\t//call move once to move down/up\n\t\t\tforceMove();\n\t\t\t//change direction to left or right\n\t\t\t//WILL CHANGE LATER FOR MUSHROOMS\n\t\t\tif(previousDir == 1){\n\t\t\t\twayIsMoving = 2;\n\t\t\t}\n\t\t\tif(previousDir == 2){\n\t\t\t\twayIsMoving = 1;\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\t\t\n\t\n\t\t\n\t}", "title": "" }, { "docid": "861635a23be3c571f7e74607354d63b3", "score": "0.62261057", "text": "public void toggleMode()\r\n {\r\n \t\r\n }", "title": "" }, { "docid": "387d8627e164a4703a8a91d316a4238d", "score": "0.62134403", "text": "public void move(){\n if(freeMove){\n\n if(mode == \"title\"){\n\n if(keys[KeyEvent.VK_A] || keys[KeyEvent.VK_Z] || keys[KeyEvent.VK_X] || keys[KeyEvent.VK_ENTER] || keys[KeyEvent.VK_ESCAPE]){\n mode = \"menu\";\n }\n }\n\n if(mode == \"menu\"){\n if(keys[KeyEvent.VK_DOWN] && btnPos < 3){\n btnPos += 1;\n if(DEBUG) System.out.println(btnPos);\n }\n else if(keys[KeyEvent.VK_UP] && btnPos > 1){\n btnPos -= 1;\n if(DEBUG) System.out.println(btnPos);\n }\n\n if(keys[KeyEvent.VK_SPACE] && btnPos == 1){\n mode = \"map1\";\n loadMap();\n }\n else if(keys[KeyEvent.VK_SPACE] && btnPos == 2){\n mode = \"map2\";\n loadMap();\n }\n else if(keys[KeyEvent.VK_SPACE] && btnPos == 3){\n mode = \"tutorial\";\n }\n }\n\n if(mode == \"tutorial\"){\n if(keys[KeyEvent.VK_ESCAPE]){\n mode = \"menu\";\n }\n }\n\n }\n if(freeMove && !unitMover.isRunning() && !battleTimer.isRunning()){ //checks if nothing is happening\n\n if(!stopMode){\n if(keys[KeyEvent.VK_Z] && !battleTimer.isRunning() && !unitMover.isRunning()){\n //battleMode = true;\n if(playerUnitAtPoint(gridX, gridY)!=null){\n if(DEBUG) System.out.println(playerUnitAtPoint(gridX, gridY).getStatus());\n }\n //picking a active unit to move\n if(playerUnitAtPoint(gridX, gridY)!=null && playerUnitAtPoint(gridX, gridY).getActive() && selectedUnit == null){\n selectedUnit = playerUnitAtPoint(gridX, gridY);\n selectedUnit.setSelected(true);\n if(DEBUG) System.out.println(selectedUnit.getName());\n oldX = gridX;\n oldY = gridY;\n possiblePath(oldX, oldY, selectedUnit);\n path(oldX, oldY, gridX, gridY, selectedUnit);\n if(DEBUG) System.out.println(selectedUnit.getStatus());\n //showMap(possibleMap);\n //showMap(pathmap);\n }\n\n\n //selecting where the player unit goes\n else if(selectedUnit!=null && (playerUnitAtPoint(gridX, gridY) == null || selectedUnit.equals(playerUnitAtPoint(gridX, gridY))) && pathmap[gridY][gridX] == 3){\n pushUnitTo(selectedUnit, gridX, gridY);\n turn = \"enemy\";\n for(Unit unit : playerUnits){\n if(unit.getActive()){\n turn = \"player\";\n }\n }\n if(DEBUG) System.out.println(\"Press Z to attack or X to wait\");\n stopMode = true;\n //selectedUnit.setSelected(false);\n //selectedUnit = null;\n }\n }\n }\n\n if(keys[KeyEvent.VK_Z] && attackMode && selectedUnit!=null && stopMode){ //attacking a enemy unit\n\t\t\t\tselectedUnit.setActive(false);\n if(DEBUG) System.out.println(\"ff\");\n if(DEBUG) System.out.println(attackPoints);\n if(DEBUG) System.out.println(gridPoint);\n if(attackPoints.contains(gridPoint) && enemyUnitAtPoint(gridX, gridY)!=null){\n if(DEBUG) System.out.println(\"fight\");\n attacking = selectedUnit;\n defending = enemyUnitAtPoint(gridX, gridY);\n battleTimer.start();\n selectedUnit.setSelected(false);\n selectedUnit = null;\n stopMode = false;\n attackMode = false;\n }\n }\n\n if(keys[KeyEvent.VK_Z] && stopMode && !unitMover.isRunning()){ //confirms attacking in the menu and generates all the points where the unit can attack\n attackMode = true;\n attackPoints = new ArrayList<Point2D.Double>();\n if(selectedUnit.getAttackRange() == 1){\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()+1), (double)(selectedUnit.getY())));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()-1), (double)(selectedUnit.getY())));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()), (double)(selectedUnit.getY()+1)));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()), (double)(selectedUnit.getY()-1)));\n }\n if(selectedUnit.getAttackRange() == 2){\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()+2), (double)(selectedUnit.getY())));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()-2), (double)(selectedUnit.getY())));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()), (double)(selectedUnit.getY()+2)));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()), (double)(selectedUnit.getY()-2)));\n\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()+1), (double)(selectedUnit.getY()+1)));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()-1), (double)(selectedUnit.getY()-1)));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()-1), (double)(selectedUnit.getY()+1)));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()+1), (double)(selectedUnit.getY()-1)));\n }\n if(selectedUnit.getAttackRange() == 3){ //for units with 1 and 2 attackrange\n for(int i=1; i<3; i++){\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()+i), (double)(selectedUnit.getY())));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()-i), (double)(selectedUnit.getY())));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()), (double)(selectedUnit.getY()+i)));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()), (double)(selectedUnit.getY()-i)));\n\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()+1), (double)(selectedUnit.getY()+1)));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()-1), (double)(selectedUnit.getY()-1)));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()-1), (double)(selectedUnit.getY()+1)));\n attackPoints.add(new Point2D.Double((double)(selectedUnit.getX()+1), (double)(selectedUnit.getY()-1)));\n }\n }\n //stopMode = false;\n }\n\n if(keys[KeyEvent.VK_X] && !stopMode && !attackMode && selectedUnit != null){ //cancels unit turn\n selectedUnit.setSelected(false);\n //selectedUnit.setActive(false);\n selectedUnit = null;\n }\n\n if(keys[KeyEvent.VK_X] && stopMode && !attackMode){ //ends unit turn\n selectedUnit.setSelected(false);\n selectedUnit.setActive(false);\n selectedUnit = null;\n stopMode = false;\n //if(turn.equals(\"player\")){ //check if turn needs to switch\n //checkForEnemyTurn();\n turn = \"enemy\";\n for(Unit unit : playerUnits){ //checking if any units are active\n //if(DEBUG) System.out.println(unit.getActive());\n if(unit.getActive()){\n turn = \"player\";\n }\n }\n if(turn.equals(\"enemy\")){\n if(DEBUG) System.out.println(turn+\" turn\");\n turnChange = true;\n\n }\n\n if(turn.equals(\"enemy\")){\n enemyCounter+=1;\n if(DEBUG) System.out.println(enemyCounter);\n if(defending != null){ //if some1 was targeted\n //battleMode = true;\n battleTimer.start();\n }\n else{ //if no one was go onto the next enemy\n if(enemyCounter<enemyUnits.size()){\n enemyMove(enemyUnits.get(enemyCounter), closestUnitTo(enemyUnits.get(enemyCounter)));\n }\n else{\n enemyCounter=-1;\n turn = \"player\";\n if(DEBUG) System.out.println(turn+\" turn\");\n for(Unit pUnit:playerUnits){\n pUnit.setActive(true);\n }\n }\n turnChange = false;\n }\n }\n //}\n }\n\n if(keys[KeyEvent.VK_X] && stopMode && attackMode){ //exits out of attackmode\n attackMode = false;\n }\n\n if(keys[KeyEvent.VK_RIGHT] && (gridX+1)!=15 && mode.equals(\"map1\") || keys[KeyEvent.VK_RIGHT] && (gridX+1)!=15 && mode.equals(\"map2\")){ //used to move cursor\n x += 16*3;\n gridX +=1;\n if(selectedUnit!=null){ //display path made by moving cursor\n path(oldX, oldY, gridX, gridY, selectedUnit);\n }\n }\n if(keys[KeyEvent.VK_LEFT] && (gridX-1)!=-1 && mode.equals(\"map1\") ||keys[KeyEvent.VK_LEFT] && (gridX-1)!=-1 && mode.equals(\"map2\")){\n x -= 16*3;\n gridX -=1;\n if(selectedUnit!=null){\n path(oldX, oldY, gridX, gridY, selectedUnit);\n }\n }\n if(keys[KeyEvent.VK_UP] && (gridY-1)!=-1 && mode.equals(\"map1\") ||keys[KeyEvent.VK_UP] && (gridY-1)!=-1 && mode.equals(\"map2\")){\n y -= 16*3;\n gridY -=1;\n if(selectedUnit!=null){\n path(oldX, oldY, gridX, gridY, selectedUnit);\n }\n }\n if(keys[KeyEvent.VK_DOWN] && (gridY+1)!=10 && mode.equals(\"map1\") || keys[KeyEvent.VK_DOWN] && (gridY+1)!=10 && mode.equals(\"map2\")){\n y += 16*3;\n gridY +=1;\n if(selectedUnit!=null){\n path(oldX, oldY, gridX, gridY, selectedUnit);\n }\n }\n if(selectedUnit == null){\n oldX = gridX;\n oldY = gridY;\n }\n freeMove = false;\n moveTimer.start();\n gridPoint = new Point2D.Double((double)(gridX), (double)(gridY));\n }\n\n //Point mouse = MouseInfo.getPointerInfo().getLocation();\n //Point offset = getLocationOnScreen();\n //if(DEBUG) System.out.println(\"(\"+(mouse.x-offset.x)+\", \"+(mouse.y-offset.y)+\")\");\n }", "title": "" }, { "docid": "5e7a3a3ce4cedeeef51a3bc9e8ee5a6e", "score": "0.6167954", "text": "public void move()\n {\n if (direction == 1) i--;\n if (direction == 2) j++;\n if (direction == 3) i++;\n if (direction == 4) j--;\n }", "title": "" }, { "docid": "2bba201578e2d36ef00e8e1faf885cfd", "score": "0.6165988", "text": "private static void \r\n\t_moveMode_True\r\n\t(Activity actv, MenuItem item) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\r\n\t\t////////////////////////////////\r\n\t\t\r\n\t\t// get: environs\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\tString currentPath = Methods.get_Pref_String(\r\n\t\t\t\tactv, \r\n\t\t\t\tCONS.Pref.pname_MainActv, \r\n\t\t\t\tCONS.Pref.pkey_CurrentPath, \r\n\t\t\t\tnull);\r\n\t\t\r\n\t\t/******************************\r\n\t\t\tvalidate: null\r\n\t\t ******************************/\r\n\t\tif (currentPath == null) {\r\n\t\t\t\r\n\t\t\tString msg = \"Current path => null\";\r\n\t\t\tMethods_dlg.dlg_ShowMessage(actv, msg, R.color.red);\r\n\t\t\t\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tString tableName = Methods.conv_CurrentPath_to_TableName(currentPath);\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\t\r\n\t\t// icon => change\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\titem.setIcon(R.drawable.ifm8_thumb_actv_opt_menu_move_mode_off);\r\n\t\r\n\t\tif (CONS.ALActv.menu != null) {\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tString msg_Log = \"CONS.ALActv.menu => not null\";\r\n\t\t\tLog.d(\"Methods.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", msg_Log);\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\t////////////////////////////////\r\n\t\t\r\n\t\t// move mode\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\tCONS.ALActv.moveMode = false;\r\n\t\r\n\t\t////////////////////////////////\r\n\t\r\n\t\t// rebuild: tiList\r\n\t\r\n\t\t////////////////////////////////\r\n\t\tCONS.ALActv.list_AI.clear();\r\n\t\t\r\n\t\tList<AI> ti_List_Move = DBUtils.find_All_AI(actv, tableName);\r\n//\t\tList<AI> ti_List_Move = DBUtils.find_All_TI(actv, tableName);\r\n\t\t\r\n\t\tif (ti_List_Move != null) {\r\n\t\t\t\r\n\t\t\tCONS.ALActv.list_AI.addAll(ti_List_Move);\r\n\t//\t\tDBUtils.find_All_TI(actv, cur_TableName));\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t//\tCONS.TNActv.list_TNActv_Main.addAll(DBUtils.find_All_TI(actv, tableName));\r\n\t\t\r\n\t\tMethods.sort_List_ai_List(\r\n\t\t\t\t\t\tCONS.ALActv.list_AI, \r\n\t\t\t\t\t\tCONS.Enums.SortType.FileName, \r\n\t\t\t\t\t\tCONS.Enums.SortOrder.DEC);\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\r\n\t\t// checked positions\r\n\t\r\n\t\t////////////////////////////////\r\n\t\tif (CONS.ALActv.checkedPositions != null) {\r\n\t\t\t\r\n\t\t\tCONS.ALActv.checkedPositions.clear();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\r\n\t\t// adapter\r\n\t\r\n\t\t////////////////////////////////\r\n\t\tCONS.ALActv.adp_AIList = new Adp_AIList(\r\n\t\t\t\tactv,\r\n\t\t\t\tR.layout.list_row_ai_list,\r\n\t\t\t\tCONS.ALActv.list_AI\r\n\t\t);\r\n//\t\tCONS.ALActv.adp_TNActv_Main = new Adp_TIList(\r\n//\t\t\t\tactv,\r\n//\t\t\t\tR.layout.list_row,\r\n//\t//\t\tR.layout.thumb_activity,\r\n//\t\t\t\tCONS.ALActv.list_TNActv_Main\r\n//\t\t\t\t);\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\t\r\n\t\t// Set adapter\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\t((ListActivity) actv).setListAdapter(CONS.ALActv.adp_AIList);\r\n\t\t\r\n\t\t////////////////////////////////\r\n\r\n\t\t// set selection\r\n\r\n\t\t////////////////////////////////\r\n\t\tMethods.set_Selection(actv);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0784164c2299b3a6221aba8e7a40dcdb", "score": "0.6162049", "text": "public void move(ArrowDirection nextMove) {\n if (mode3d) {//if it's 3D then he can change the direction he's looking to\n switch (nextMove) {\n case Up: {\n moveIt(direction);\n break;\n }\n case Down: {\n toDir(direction.ordinal() + 2);\n break;\n }\n case Right: {\n toDir(direction.ordinal() + 1);\n break;\n }\n case Left: {\n toDir(direction.ordinal() + 3);\n break;\n }\n }\n notifyDirection(direction);\n } else {//else he just ties to move\n moveIt(nextMove);\n notifyDirection(nextMove);\n }//when all changes are done the playfield is updated.\n Field[] surroundings = getSurroundings(player);\n notifyChange(player, surroundings);\n }", "title": "" }, { "docid": "a2645725c5bd04c64aa6181f8d3ef04e", "score": "0.6157144", "text": "public void move()\r\n\t{\n\t}", "title": "" }, { "docid": "a334e01d8ca35cbce8fcd800c26d03f1", "score": "0.61567664", "text": "protected void toggleKeyMode() {\n /* unlock shift */\n mShiftOn = KEYBOARD_SHIFT_OFF;\n\n /* search next defined key-mode */\n Keyboard[][] keyboardList = mKeyboard[mCurrentLanguage][mDisplayMode][mCurrentKeyboardType][mShiftOn];\n do {\n if (++mCurrentKeyMode >= keyboardList.length) {\n mCurrentKeyMode = 0;\n }\n } while (keyboardList[mCurrentKeyMode][0] == null);\n\n Keyboard kbd;\n if (!mNoInput && keyboardList[mCurrentKeyMode][1] != null) {\n kbd = keyboardList[mCurrentKeyMode][1];\n } else {\n kbd = keyboardList[mCurrentKeyMode][0];\n }\n changeKeyboard(kbd);\n\n mWnn.onEvent(new OpenWnnEvent(OpenWnnEvent.CHANGE_MODE,\n OpenWnnEvent.Mode.DEFAULT));\n }", "title": "" }, { "docid": "188faaa390bf916f8366b8a87e85e5f3", "score": "0.61529714", "text": "public void toggleAboutToMove() {\n\t\tif (aboutToMove) {\n\t\t\taboutToMove = false;\n\t\t\tsetRecBorder(false);\n\t\t} else {\n\t\t\taboutToMove = true;\n\t\t\tsetRecBorder(true);\n\t\t}\n\t}", "title": "" }, { "docid": "66c71d7bff36b97182ea18a3d8451a11", "score": "0.6151362", "text": "public void changeMode(int mode) {\n\t\t// do we want ot participate in the mode change?\n\t\tif (mode == Compound.MODE_EDIT && isFinal()) {\n\t\t\treturn; // no, good bye\n\t\t}\n\t\tIContext ctx = getContext();\n\n\t\t// tell component to switch mode.\n\t\tctx.add(getId() + DOT_RO, getId(), ((mode == Compound.MODE_READONLY) ? IContext.TYPE_READONLY : IContext.TYPE_READWRITE),\n\t\t\t\tIContext.STATUS_NOT_EDITABLE);\n\t\tclearError();\n\t}", "title": "" }, { "docid": "9ec4ae64ce08c41fe337e55c2f8ba16e", "score": "0.6133674", "text": "public void move() {\n \thasMoved = true;\n\t}", "title": "" }, { "docid": "efdcb695cc7514373aa2f2154bab057e", "score": "0.6131017", "text": "public void move()\n {\n setLastX(getX());\n setLastY(getY());\n\n /* If we can make a decision, pick a new direction randomly */\n if (isChoiceDest())\n {\n setDirection(newDirection());\n }\n\n /* If that direction is valid, move that way */\n switch(getDirection())\n {\n case 'L':\n if ( isValidDest(getX()- getIncrement(),getY()))\n setX(getX()- getIncrement());\n break;\n case 'R':\n if ( isValidDest(getX()+ getGridSize(),getY()))\n setX(getX()+ getIncrement());\n break;\n case 'U':\n if ( isValidDest(getX(),getY()- getIncrement()))\n setY(getY()- getIncrement());\n break;\n case 'D':\n if ( isValidDest(getX(),getY()+ getGridSize()))\n setY(getY()+ getIncrement());\n break;\n }\n }", "title": "" }, { "docid": "54b178c1a37859553d0aaa56c8539cfd", "score": "0.61221516", "text": "@Override\r\n\tpublic void move() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "167a7fbd4540cfb9066ef45e21cdefc7", "score": "0.61097294", "text": "public void setMode(int mode)\n\t{\n\t\tswitch (mode){\n\t\t\tcase 0: \n\t\t\t\tmMode = Mode.random;\n\t\t\t\tbreak;\n\t\t\tcase 1: \n\t\t\t\tmMode = Mode.group;\n\t\t\t\tcount = mMaxCount;\n\t\t\t\tgroupMovings = new String[count];\n\t\t\t\tgroupMovingsAnswer = new String[count];\n\t\t\t\tbreak;\n\t\t\tcase 2: \n\t\t\t\tmMode = Mode.toButton;\n\t\t\t\tbreak;\n\t\t\tcase 300: \n\t\t\t\tmMode = Mode.groupWait;\n\t\t\t\tmPause = false;\n\t\t\t\tbreak;\n\t\t\tcase 301: \n\t\t\t\t//mMode = Mode.resize;\n\t\t\t\tmPause = true;\n\t\t\t\tbreak;\n\t\t\tcase 400: \n\t\t\t\tmMode = Mode.groopBetween;\n\t\t\t\tbreak;\n\t\t\tcase 999: \n\t\t\t\tmMode = Mode.coords;\n\t\t\t\tmPause = true;\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "752beb31970d71a6e3a15805322c0332", "score": "0.61054015", "text": "public void chaseMode( boolean ghostMode,long speed,Raver raver){\r\n\r\n int dir = getDir(raver); \r\n //upleft = 1, upright = 2, downleft = 3, downright = 4\r\n int axis = getAxis(raver); \r\n //horizontal=1 or vertical=0 priority \r\n makeMove(axis, dir, speed);\r\n\r\n }", "title": "" }, { "docid": "70315f29f4470fab49ba1615b105e15b", "score": "0.6104721", "text": "@Override\n public void move() {\n if (direction == 0) {\n this.position.setLocation(position.getX(), position.getY() + getCurrentSpeed());\n } else if (direction == 1) {\n this.position.setLocation(position.getX() + getCurrentSpeed(), position.getY());\n } else if (direction == 2) {\n this.position.setLocation(position.getX(), position.getY() - getCurrentSpeed());\n } else {\n this.position.setLocation(position.getX() - getCurrentSpeed(), position.getY());\n }\n }", "title": "" }, { "docid": "c69a0c06dbe9bb67c183fcea66be3d60", "score": "0.61004055", "text": "public void switchMode() {\n mode3d = !mode3d;\n }", "title": "" }, { "docid": "071c6e0678a9324b3a388164784acf7e", "score": "0.6077803", "text": "private void switchTurns(){\n\t\tif(validMove){\n\t\t\tcorrectMove = !correctMove;\n\t\t} }", "title": "" }, { "docid": "da83ef9a8b9833bad6d6ba171011b668", "score": "0.60712755", "text": "private void update(int mode) {\n if (mode == 3) {\n if (aiTimer >= AIDELAY) {\n aiTimer = 0;\n AITurn();\n } else {\n aiTimer++;\n }\n } else {\n int[] inputs = getInputs();\n if (inputs != null && !aiTurn) {\n int row = inputs[0];\n int col = inputs[1];\n resetInputs();\n Board current = history.get(0);\n if (promotionLoc == null) {//For promotion, must make two actions\n Tile selectTile = current.getTile(row, col);\n if (primaryTile == null && !selectTile.isEmpty() && selectTile.getPiece().white == whiteTurn) {//Nothing selected and clicked on ally piece\n primaryTile = selectTile;\n primaryTile.setPrimary();\n highlightMoves(Moves.getMoves(primaryTile.getPiece(), history, false));\n } else if (primaryTile != null) {//Selected a piece\n if (selectTile.isHighlightColored()) {//Is an available move\n int[] move = selectTile.getMove();\n Piece primaryPiece = primaryTile.getPiece();\n Board newBoard = Moves.applyMove(primaryPiece, move, history.get(0));\n moveHistory.add(0, primaryPiece + \" \" + Moves.moveToString(move));\n addHistory(newBoard);\n ui.showBoard(newBoard);\n storeFreqOfBoard(newBoard);\n Piece promotionCheck = newBoard.getToBePromotedPawn(whiteTurn);\n if (promotionCheck == null) {\n endTurn();\n if (mode == 2) {\n aiTurn = true;\n }\n } else {//There is a promotion to be made\n Piece originalPawn = primaryTile.getPiece();\n promotionPawnLoc = new int[]{originalPawn.row, originalPawn.col};\n promotionLoc = new int[]{promotionCheck.row, promotionCheck.col};\n Group promotionMenu = Graphics.promotion(whiteTurn);\n promotionMenu.setTranslateX(newBoard.getTile(promotionLoc[0], promotionLoc[1]).getTranslateX());\n if (originalPawn.white == false) {//If black pawn, move promotion menu halfway down\n promotionMenu.setTranslateY(SIZE / 2);\n }\n ui.addToUI(promotionMenu, false);\n }\n primaryTile = null;\n } else if (!selectTile.isEmpty() && selectTile.getPiece().white == whiteTurn) {//Selected another ally piece\n clearHighlights(current);\n primaryTile = selectTile;\n primaryTile.setPrimary();\n highlightMoves(Moves.getMoves(primaryTile.getPiece(), history, false));\n }\n }\n } else {//For promotion, must make two actions\n int moveX = promotionLoc[1];\n if (col == promotionLoc[1]) {\n int moveY = promotionLoc[0];\n int distance = Math.abs(row - promotionLoc[0]);\n if (distance < 4) {\n int pawnX = promotionPawnLoc[1];\n int pawnY = promotionPawnLoc[0];\n Board lastBoard = history.get(1);\n Piece originalPawn = lastBoard.getTile(pawnY, pawnX).getPiece();\n int[] move = {moveY, moveX, 0, distance + 3};\n if (!lastBoard.getTile(moveY, moveX).isEmpty()) {//Capture\n move[2] = 1;\n }\n history.set(0, Moves.applyMove(originalPawn, move, lastBoard));\n moveHistory.set(0, originalPawn + \" \" + Moves.moveToString(move));\n endTurn();\n ui.showBoard(history.get(0));\n ui.resetMisc();\n promotionLoc = null;\n if (mode == 2) {\n aiTurn = true;\n }\n }\n }\n }\n } else if (aiTurn) {\n if (aiTimer >= AIDELAY) {\n aiTimer = 0;\n AITurn();\n } else {\n aiTimer++;\n }\n }\n }\n }", "title": "" }, { "docid": "382b8aba64105fdb374799f0b9cdc231", "score": "0.605524", "text": "public void shiftToDrive() {\n shiftToClimber.set(Value.kReverse);\n }", "title": "" }, { "docid": "9323213aa60e8a7ac912d24532f41d57", "score": "0.6054", "text": "public void changeDirection()\n {\n if(direction == 1)\n {\n direction = direction-1;\n }\n else\n {\n direction = direction+1;\n }\n }", "title": "" }, { "docid": "b070223c29401e5cea221ad1708fd900", "score": "0.6052151", "text": "@Override\r\n\tpublic void move() {\n\t}", "title": "" }, { "docid": "be585f2eff3ad6fb4cb5436774a995e6", "score": "0.6047031", "text": "private void stillMoving() {\n if (this.currentDir.equals(Direction.UP) && !isMoveUp) {\n this.currentDir = Direction.IDLE;\n } else if (this.currentDir.equals(Direction.DOWN) && !isMoveDown) {\n this.currentDir = Direction.IDLE;\n } else if (this.currentDir.equals(Direction.LEFT) && !isMoveLeft) {\n this.currentDir = Direction.IDLE;\n } else if (this.currentDir.equals(Direction.RIGHT) && !isMoveRight) {\n this.currentDir = Direction.IDLE;\n }\n }", "title": "" }, { "docid": "15a40bdc585fd7dd2fa7c6836a79ae01", "score": "0.60438323", "text": "public void setMoving() {\n \tthis.moving = true;\n }", "title": "" }, { "docid": "614a9e89819c38b4eb456f3d6956076c", "score": "0.60395944", "text": "public abstract void setGameMode(int mode);", "title": "" }, { "docid": "114a5027c338de2c04ee48a81858e773", "score": "0.6029473", "text": "public void move();", "title": "" }, { "docid": "d45dd24bf54857528e21d2088eab12f1", "score": "0.60183567", "text": "void processRobotModeChange(RobotMode newMode) {\r\n\t\tlogger.info(\"Switching from {} to {}\", currentRobotMode, newMode);\r\n\t\tpreviousRobotMode = currentRobotMode;\r\n\t\tcurrentRobotMode = newMode;\r\n\r\n\t\t// if any subsystems need to know about mode changes, let\r\n\t\t// them know here.\r\n\t\tdriveSubsystem.processRobotModeChange(newMode);\r\n\t}", "title": "" }, { "docid": "441f3c681553a2fe75fe759c7dcfd4e6", "score": "0.60113066", "text": "public void setPieceMove() {\n this.pieceMove = true;\n }", "title": "" }, { "docid": "3f82a0cd1d4cad5eb535a74285b9b78a", "score": "0.6008728", "text": "@Override\r\n public void move() {\r\n // Tecla de flecha izquierda presionada\r\n if (control.getKeyStatus(37)) {\r\n xPos -= 10;\r\n }\r\n // Tecla de flecha derecha presionada\r\n if (control.getKeyStatus(39)) {\r\n xPos += 10;\r\n }\r\n \r\n // Mover de borde a borde sin detenerse\r\n if (xPos > 800) {\r\n xPos = -50;\r\n }\r\n if (xPos < -50) {\r\n xPos = 800;\r\n }\r\n }", "title": "" }, { "docid": "c859c94ce43b376d0fb6ac2818ff6e74", "score": "0.5995208", "text": "public static void keepMovingForward(){\n \tmainRobot.leftMotor.setSpeed(mainRobot.MOVING_SPEED);\n \tmainRobot.rightMotor.setSpeed(mainRobot.MOVING_SPEED);\n \tmainRobot.leftMotor.forward();\n \tmainRobot.rightMotor.forward();\n \t}", "title": "" }, { "docid": "f555b97b66c8c25b2b4f211775ffda23", "score": "0.59874475", "text": "public static void setMove(int direction) {\n\t\t\n\t\tswitch (direction) {\n\t\t\tcase (-1):\n\t\t\t\tmoveLeft = false;\n\t\t\t\tmoveRight = false;\n\t\t\t\tmoveUp = false;\n\t\t\t\tmoveDown = false;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase (0):\n\t\t\t\tmoveLeft = false;\n\t\t\t\tmoveRight = false;\n\t\t\t\tmoveUp = false;\n\t\t\t\tmoveDown = true;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase (45):\n\t\t\t\tmoveLeft = false;\n\t\t\t\tmoveRight = true;\n\t\t\t\tmoveUp = false;\n\t\t\t\tmoveDown = true;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase (90):\n\t\t\t\tmoveLeft = false;\n\t\t\t\tmoveRight = true;\n\t\t\t\tmoveUp = false;\n\t\t\t\tmoveDown = false;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase (135):\n\t\t\t\tmoveLeft = false;\n\t\t\t\tmoveRight = true;\n\t\t\t\tmoveUp = true;\n\t\t\t\tmoveDown = false;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase (180):\n\t\t\t\tmoveLeft = false;\n\t\t\t\tmoveRight = false;\n\t\t\t\tmoveUp = true;\n\t\t\t\tmoveDown = false;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase (-135):\n\t\t\t\tmoveLeft = true;\n\t\t\t\tmoveRight = false;\n\t\t\t\tmoveUp = true;\n\t\t\t\tmoveDown = false;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase (-90):\n\t\t\t\tmoveLeft = true;\n\t\t\t\tmoveRight = false;\n\t\t\t\tmoveUp = false;\n\t\t\t\tmoveDown = false;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase (-45):\n\t\t\t\tmoveLeft = true;\n\t\t\t\tmoveRight = false;\n\t\t\t\tmoveUp = false;\n\t\t\t\tmoveDown = true;\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "cb8a6bca5ba548a0ed7ebefbbd332558", "score": "0.59861106", "text": "public void move() {\n iX += iDir; //sumale a la posicion x el cambio en x\n if (iX <= 2) //que no pase la pared de la izquierda\n iX = 2;\n if (iX >= Dimensiones.PLATAFORMA_RIGHT) //que no pase la pared de la derecha\n iX = Dimensiones.PLATAFORMA_RIGHT;\n }", "title": "" }, { "docid": "96842d8dd8218cf7cd2f52a9917aba5f", "score": "0.5979631", "text": "public void moves() {\n changesDirectionIfCantMove();\n forward();\n mayTurnIfPossible();\n }", "title": "" }, { "docid": "2e2b6bded49735172049b7c174a972e3", "score": "0.59769577", "text": "public void simpleCmd() {\t\n\t\t\t\tthis.move();\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tthis.move();\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t}", "title": "" }, { "docid": "b5ce16d8cc85f5cf2a8975f98cd45f9b", "score": "0.59745127", "text": "public void setMoveEntryModeOn() {\n\tbuilder = new BuilderHalmaMove();\n\tmoveEntry = true;\n }", "title": "" }, { "docid": "a7e27ebd65d0eab6b0f53a4e6a80946d", "score": "0.5972867", "text": "public void switchDirection() {\r\n\t\tsetFeeder(!(state == State.FORWARD) ? State.FORWARD : State.BACKWARD);\r\n\t}", "title": "" }, { "docid": "e5f6319a62058de90bc849fdaadaabcc", "score": "0.5966001", "text": "public void setMode(int mode)\r\n/* 484: */ {\r\n/* 485: 467 */ this.mode = mode;\r\n/* 486: */ }", "title": "" }, { "docid": "2d6e446bb5ea176db9444fdd0fba437f", "score": "0.595268", "text": "public void setMode(int mode) { this.mode = mode; }", "title": "" }, { "docid": "a31c9ff247bda9aabfe436d9191bb5c6", "score": "0.5949161", "text": "private void toggleCurrentPlayer() {\n if(currentPlayer == Player.X)\n currentPlayer = Player.O;\n else\n currentPlayer = Player.X;\n\n messageTextView.setText(\"Make your move - \"+currentPlayer.toString());\n }", "title": "" }, { "docid": "2ae9b045b370a74101958f95e3724432", "score": "0.5947877", "text": "@Override\r\n\tpublic void move(int dir) {\r\n\t\tif (dir == Constants.LEFT) {\r\n\t\t\tthis.setX(this.getX() - 1);\r\n\t\t} else if (dir == Constants.RIGHT) {\r\n\t\t\tthis.setX(this.getX() + 1);\r\n\t\t} else if (dir == Constants.UP) {\r\n\t\t\tthis.setY(this.getY() - 1);\r\n\t\t} else if (dir == Constants.DOWN) {\r\n\t\t\tthis.setY(this.getY() + 1);\r\n\t\t} else {\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d9d8bbdf7e340aaf12335d165cf909ca", "score": "0.59278417", "text": "public void setCanMove(boolean inpMove)\n\t{\n\t\tcanMove=inpMove;\n\t}", "title": "" }, { "docid": "ea8e217e867e3da5d285c7425d252242", "score": "0.5926692", "text": "public void autoMove()\n {\n if( getNumMoves() < 3 )\n {\n if( getEnterDirection() == 0 ) //which means it will enter the board from right to left\n {\n super.move( \"left\" );\n } //end if\n if( getEnterDirection() == 1 ) //which means it will enter the board from top to bottom\n {\n super.move( \"down\" );\n } //end if\n if( getEnterDirection() == 2 ) //which means it will enter the board from left to right\n {\n super.move( \"right\" );\n } //end if\n if( getEnterDirection() == 3 ) //which means it will enter the board from bottom to top\n {\n super.move( \"up\" );\n } //end if\n } //end if\n else\n {\n int randomDirection = (int)( Math.random() * 4 );\n if( randomDirection == 0 )\n {\n super.move( \"right\" );\n } //end if\n if( randomDirection == 1 )\n {\n super.move( \"up\" );\n } //end if\n if( randomDirection == 2 )\n {\n super.move( \"left\" );\n } //end if\n if( randomDirection == 3 )\n {\n super.move( \"down\" );\n } //end if\n }//end else\n \n if( isOnBoard() ) //if the troggle is on the game board\n {\n getGRef().getBoard().changeNum( getY(), getX() );\n } //end if\n\n addMove();\n }", "title": "" }, { "docid": "e847cde77fc817e0088d67bc4017dad8", "score": "0.59196067", "text": "public void setMode(int mode) {\r\n\t\tthis.removeMouseListener(currentMode);\r\n\t\tthis.removeMouseMotionListener(currentMode);\r\n\t\tcurrentMode = modes.elementAt(mode);\r\n\t\tthis.mode = mode;\r\n\t\tthis.addMouseListener(currentMode);\r\n\t\tthis.addMouseMotionListener(currentMode);\r\n\t}", "title": "" }, { "docid": "a164de2af7a98036dfeaf43b8ebf7c3a", "score": "0.5909281", "text": "public void move(){\n\t\tmovePray();\n\t\tmovePredator();\n\t}", "title": "" }, { "docid": "38ab02ae662d2693619be1c375bbe6b7", "score": "0.5906966", "text": "public void updateMove(){\n\t\thasMoved = true;\n\t}", "title": "" }, { "docid": "a8730e05e3dd6a2112bfd03e86849b3a", "score": "0.5905607", "text": "protected void move()\n {\n // Find a location to move to.\n Debug.print(\"DarterFish \" + toString() + \" attempting to move. \");\n Location nextLoc = nextLocation();\n\n // If the next location is different, move there.\n if ( ! nextLoc.equals(location()) )\n {\n changeLocation(nextLoc);\n Debug.println(\" Moves to \" + location());\n }\n else\n {\n // Otherwise, reverse direction.\n changeDirection(direction().reverse());\n Debug.println(\" Now facing \" + direction());\n }\n }", "title": "" }, { "docid": "ae9902a9961e8557afa598dcd279cc5c", "score": "0.59041333", "text": "private void setDirection() {\n\t\tsetDown(false);\r\n\t\tsetUp(false);\r\n\t\tsetLeft(false);\r\n\t\tsetRight(false);\r\n\t}", "title": "" }, { "docid": "58d3a1839f5966cf9d25f3fb2575d14f", "score": "0.5902334", "text": "public final void move() {\n int columnChoice = getMoveChoice();\n completeMove(columnChoice);\n }", "title": "" }, { "docid": "a940623d32f1c5826928b4d3599821e9", "score": "0.5901521", "text": "public void setMode(String mode) {\n }", "title": "" }, { "docid": "fffcc77f31513e9973b4b0c4dc8ca21c", "score": "0.5899263", "text": "public void move() {\n if (this.getYAs() % 2 != 0) {\n if (this.getXAs() < 9) {\n this.setXAs(x + 1);\n //this.setLocateAs(locate+1);\n } else {\n\n this.setYAs(y - 1);\n //this.setLocateAs(locate+1);\n }\n } else {\n if (this.getXAs() > 0) {\n this.setXAs(x - 1);\n //this.setLocateAs(locate+1);\n } else {\n\n this.setYAs(y - 1);\n //this.setLocateAs(locate+1);\n }\n }\n\n }", "title": "" }, { "docid": "8e152729e52295b69510c4384e6a6691", "score": "0.5892144", "text": "public void move(KeyControl.Direction e){\n Joueur courant = getJoueurCourant();\n if(courant.testAction()) {\n Zone pos = courant.getPosition();\n int new_Y = pos.getY();\n int new_X = pos.getX();\n switch (e){\n case up:\n new_Y -= 1;\n break;\n case down:\n new_Y += 1;\n break;\n case left:\n new_X -= 1;\n break;\n case right:\n new_X += 1;\n break;\n default:\n break;\n }\n if(horsJeu(zones[new_X][new_Y]) || !zones[new_X][new_Y].nonSubmerge()){\n if(courant.getRole() == Role.Plongeur && !zones[new_X][new_Y].nonSubmerge() && courant.restNbr() > 1){\n switch (e){\n case up:\n new_Y -= 1;\n break;\n case down:\n new_Y += 1;\n break;\n case left:\n new_X -= 1;\n break;\n case right:\n new_X += 1;\n break;\n default:\n break;\n }\n courant.addAction();\n } else {\n return;\n }\n }\n courant.position = this.getZone(new_X,new_Y);\n courant.addAction();\n }\n notifyObservers();\n }", "title": "" }, { "docid": "bd71dc44ef2a9fd21abe2d5d64805d48", "score": "0.5889126", "text": "private void move(int direction) {\n if (!this.isGameOver) {\n List<Field> fieldsCopies = game.getCopyOfTheBoard();\n try {\n game.move(direction);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,\n WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n } catch (GameOverException e) {\n e.printStackTrace();\n this.isGameOver = true;\n } catch (GoalAchievedException e) {\n e.printStackTrace();\n goalAchieved();\n } finally {\n updateActivityAfterMove(fieldsCopies, direction);\n }\n }\n }", "title": "" }, { "docid": "6bd66c8308db5ebbc72ae2eb19150952", "score": "0.5886817", "text": "public void move (short dir) {\n\t\tif (App.getGamePanel().chatbox().inConversation())\n\t\t\tApp.CVManager().stopConversation();\n\t\t\n\t\tif (isInAction)\n\t\t\treturn;\n\t\t\t\t\n\t Calendar now = Calendar.getInstance();\n\t \n\t long tempL = now.getTimeInMillis();\n\t if (!(tempL >= timeOfLastMove + pauseBeetweenMove)) {\n\t \t//System.out.println(\"Player.move :: You may not move this often; returning...\");\n\t \treturn;\n\t }\n\t\t\n\t timeOfLastMove = tempL;\n\t \n\t short movePossible = Map.checkMove(mapX, mapY, dir);\n\t //System.out.println(\"Player.move :: movePossbile : \"+movePossible);\n\t\tif (movePossible != 1) {\n\t\t\tif (movePossible == -1) {\n\t\t\t\tif (!walkedOutOfMap)\n\t\t\t\t\tApp.addInfo(\"There's no way I can go there ...\");\n\t\t\t\twalkedOutOfMap = true;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t\t\n\t\tdirection = dir;\n\t\t//System.out.println(\"map : (\"+mapX+\"|\"+mapY+\") ; pos : (\"+posX+\"|\"+posY+\")\");\n\t\tint tempX = mapX;\n\t\tint tempY = mapY;\n\t\tswitch (dir) {\n\t\tcase 1:tempX -= 1;break; // left\n\t\tcase 2:tempY -= 1;break; // up\n\t\tcase 3:tempX += 1;break; // right\n\t\tcase 4:tempY += 1;break; // down\n\t\tdefault:System.err.println(\"Player.move :: dir is not valid ; dir = \"+dir);\n\t\t}\n\t\t\n\t\t//System.out.println(\"Player.move :: (old) x = \"+mapX+\" ; y = \"+mapY+\" ;; (new) x = \"+tempX+\" ; y = \"+tempY);\n\t\t\n\t\tConnector.Send(\"mve~\"+tempX+\"~\"+tempY+\"~\"+App.map.getMapLV()+\"#\");\n\t}", "title": "" }, { "docid": "0359b756bec755e44e69430d1828e911", "score": "0.5884645", "text": "private void setMode (byte mode) {\n\t\tthis.mode = mode;\n\t}", "title": "" }, { "docid": "a0f59d1ee0c7388f116f41971715e2cc", "score": "0.58810616", "text": "protected void fizzleMove() {\n model.playerState = PlayerState.NONE;\n model.move = new Move();\n if (model.counter > 0) {\n model.counter--;\n }\n\n // ends the level from here\n if (model.counter == 0) {\n EventQueue.invokeLater(new PlayerEndLevelCtrl(app, model, true));\n }\n }", "title": "" }, { "docid": "0c402e9d7e9eefc49189b4ef0991a080", "score": "0.58794016", "text": "void move(char direction){\n\n //A switch statement is used to represent all possible directions\n switch(direction){\n case 'l':\n // change player's position\n this.position.x --;\n // add position to list of previous positions\n addToPositions(position.x, position.y);\n // add direction to list of previous directions\n directions.add(\"left\");\n break;\n\n case 'r':\n // change player's position\n this.position.x ++;\n // add position to list of previous positions\n addToPositions(position.x, position.y);\n // add direction to list of previous directions\n directions.add(\"right\");\n break;\n\n case 'u':\n // change player's position\n this.position.y --;\n // add position to list of previous positions\n addToPositions(position.x, position.y);\n // add direction to list of previous directions\n directions.add(\"up\");\n break;\n\n case 'd':\n // change player's position\n this.position.y ++;\n // add position to list of previous positions\n addToPositions(position.x, position.y);\n // add direction to list of previous directions\n directions.add(\"down\");\n break;\n\n default:\n break;\n }\n }", "title": "" }, { "docid": "bfcec2214451c42d41dbfdc3f41668e6", "score": "0.5876619", "text": "public boolean isMove() { return false; }", "title": "" }, { "docid": "e5f70f340d234517f65aebe50e846fa1", "score": "0.5875032", "text": "public void rndMove() {\r\n\t\ttime = r.getTime() + 10;\r\n\t\tcurrentMode = 2;\r\n\t}", "title": "" }, { "docid": "9ff47c9453b3960b1a6844c670745099", "score": "0.5869623", "text": "@Override\n public boolean isMoveable() {\n return true;\n }", "title": "" }, { "docid": "15488c95b90c31583a3c003d4021869d", "score": "0.5865212", "text": "public HalmaMove setMoveEntryModeOff() {\n\tmoveEntry = false;\n\treturn builder.getMove();\n }", "title": "" }, { "docid": "c579b9c0d1c0f90041e367b5b7e25e12", "score": "0.5864851", "text": "public void move(int marblesLeft){\n if(marblesLeft>1){\n if (mode==1){\n System.out.println(\"The computer is playing in smart mode.\");\n choice = smartMove(marblesLeft);\n }\n else{\n System.out.println(\"The computer is playing in stupid mode.\");\n choice = stupidMove(marblesLeft);\n }\n }\n else{\n choice =1;\n }\n }", "title": "" }, { "docid": "f11cb91fdf770bc172d5a380b5013751", "score": "0.58628285", "text": "private static void \r\n\t_moveMode_False\r\n\t(Activity actv, MenuItem item) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t////////////////////////////////\r\n\t\t\r\n\t\t// get: environs\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\tString currentPath = Methods.get_Pref_String(\r\n\t\t\t\tactv, \r\n\t\t\t\tCONS.Pref.pname_MainActv, \r\n\t\t\t\tCONS.Pref.pkey_CurrentPath, \r\n\t\t\t\tnull);\r\n\t\t\r\n\t\t/******************************\r\n\t\t\tvalidate: null\r\n\t\t ******************************/\r\n\t\tif (currentPath == null) {\r\n\t\t\t\r\n\t\t\tString msg = \"Current path => null\";\r\n\t\t\tMethods_dlg.dlg_ShowMessage(actv, msg, R.color.red);\r\n\t\t\t\r\n\t\t\treturn;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tString tableName = Methods.conv_CurrentPath_to_TableName(currentPath);\r\n\t\r\n\t\t////////////////////////////////\r\n\t\r\n\t\t// icon => change\r\n\t\r\n\t\t////////////////////////////////\r\n\t\titem.setIcon(R.drawable.actv_al_opt_menu_move_mode_on);\r\n\t\t\r\n\t\tif (CONS.ALActv.menu != null) {\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tString msg_Log = \"CONS.ALActv.menu => not null\";\r\n\t\t\tLog.d(\"Methods.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", msg_Log);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\r\n\t\t// change mode\r\n\t\r\n\t\t////////////////////////////////\r\n\t\tCONS.ALActv.moveMode = true;\r\n\t\r\n\t\t////////////////////////////////\r\n\t\r\n\t\t// prep: list type\r\n\t\r\n\t\t////////////////////////////////\r\n\t\tCONS.ALActv.list_AI.clear();\r\n\t\t\r\n\t\t// List type\r\n\t\tString listType = Methods.get_Pref_String(\r\n\t\t\t\tactv, \r\n\t\t\t\tCONS.Pref.pname_MainActv, \r\n\t\t\t\tCONS.Pref.pkey_TNActv__ListType, \r\n\t\t\t\tnull);\r\n\t\t\r\n\t\tif (listType == null) {\r\n\t\t\t\r\n\t\t\tlistType = CONS.Enums.ListType.STANDARD.toString();\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\t////////////////////////////////\r\n\t\r\n\t\t// rebuild: tiList\r\n\t\r\n\t\t////////////////////////////////\r\n\t\tif (listType.equals(\r\n\t\t\t\t\t\tCONS.Enums.ListType.SEARCH.toString())\r\n\t\t\t\t&& CONS.ALActv.searchedItems != null) {\r\n\t\t\t\r\n\t\t\tCONS.ALActv.list_AI.addAll(\r\n\t\t\t\t\t_moveMode_False__Search(actv, tableName));\r\n\t\t\t\r\n\t\t} else {\r\n\t\r\n\t\t\tCONS.ALActv.list_AI.addAll(DBUtils.find_All_AI(actv, tableName));\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\t\r\n\t\tMethods.sort_List_ai_List(\r\n\t\t\t\t\t\tCONS.ALActv.list_AI, \r\n\t\t\t\t\t\tCONS.Enums.SortType.FileName, \r\n\t\t\t\t\t\tCONS.Enums.SortOrder.DEC);\r\n//\t\tCONS.Enums.SortOrder.ASC);\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\r\n\t\t// adapter\r\n\t\r\n\t\t////////////////////////////////\r\n\t\tCONS.ALActv.adp_TNActv_Main_Move = new Adp_AIList_Move(\r\n\t\t\t\tactv,\r\n\t\t\t\tR.layout.list_row_ai_list_checkbox,\r\n\t//\t\t\tR.layout.list_row,\r\n\t//\t\t\tR.layout.thumb_activity,\r\n\t\t\t\tCONS.ALActv.list_AI\r\n\t\t\t\t);\r\n\t\t\r\n\t\t// Log\r\n\t\tString msg_Log = \"adapter move => created\";\r\n\t\tLog.d(\"Methods.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", msg_Log);\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\t\r\n\t\t// Set adapter\r\n\t\t\r\n\t\t////////////////////////////////\r\n\t\t((ListActivity) actv).setListAdapter(CONS.ALActv.adp_TNActv_Main_Move);\r\n\t\r\n\t\t////////////////////////////////\r\n\r\n\t\t// set selection\r\n\r\n\t\t////////////////////////////////\r\n\t\tMethods.set_Selection(actv);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3184b60ad7bf5661a7cff2a99f026e02", "score": "0.5859336", "text": "public void setMode(int _mode) {\r\n this.mode = _mode;\r\n }", "title": "" }, { "docid": "a24115408fcd9de0f79e2ddd7ed31671", "score": "0.5852517", "text": "public void mover() {\r\n\t\tthis.toMove = true;\r\n\t}", "title": "" }, { "docid": "ef2a626c3d25cb3241859338c52a0a71", "score": "0.58479744", "text": "void setMoving(boolean moving);", "title": "" }, { "docid": "a6c85802424713021d1bea516a2de43b", "score": "0.58473825", "text": "boolean move(Direction direction);", "title": "" }, { "docid": "55e1ef917040d68c52b2ef69c43e8504", "score": "0.58409196", "text": "public void setMode(int mode, ModeSetter m) {\n\t\tif (mode != EuclidianConstants.MODE_SELECTION_LISTENER) {\n\t\t\tcurrentSelectionListener = null;\n\t\t}\n\t\tif (mode != EuclidianConstants.MODE_MOVE) {\n\t\t\teuclidianController.widgetsToBackground();\n\t\t}\n\t\tif (getGuiManager() != null) {\n\t\t\tsetModeFromGuiManager(mode, m);\n\t\t\tthis.updateDynamicStyleBars();\n\n\t\t} else if (euclidianView != null) {\n\t\t\teuclidianView.setMode(mode, m);\n\t\t}\n\t}", "title": "" }, { "docid": "4911c25ddc3898aaf8c1d1ec9f023a04", "score": "0.5839738", "text": "@Override\n\tpublic void setCurrentMovementDirection(int x, int y) {\n\t\tif (x > 0) {\n\t\t\tdirection = \"right\";\n BasicPacman.rotateEntityTo(id(), -80.125f);\n\t\t}\n\t\tif (x < 0) {\n\t\t\tdirection = \"left\";\n BasicPacman.rotateEntityTo(id(), 80.125f);\n }\n\t\tif (y > 0) {\n\t\t\tdirection = \"up\";\n BasicPacman.rotateEntityTo(id(), 160.25f);\n }\n\t\tif (y < 0) {\n\t\t\tdirection = \"down\";\n BasicPacman.rotateEntityTo(id(), 0f);\n }\n\t\tcmdX = x;\n\t\tcmdY = y;\n\t}", "title": "" }, { "docid": "9f55879ebdf8da85933e793f1f676a55", "score": "0.58395815", "text": "public void makeMovable() {\r\n canMoveUp = true;\r\n canMoveDown = true;\r\n canMoveLeft = true;\r\n canMoveRight = true;\r\n }", "title": "" }, { "docid": "51b1a77fa55091fb6fc5d51d80995804", "score": "0.5834294", "text": "public void move() {\n\t\tif (po instanceof Tank) {\n\t\t\tUp(this);\n\t\t} else if (po instanceof Invader) {\n\t\t\tDown(this);\n\t\t}\n\t}", "title": "" }, { "docid": "175e0bc7202d46f7a389cacde644a04c", "score": "0.58307105", "text": "public void SetMode(Mode mode)\n {\n this.mode = mode;\n }", "title": "" }, { "docid": "9e2d1368c7652adc01efeefde684a0d5", "score": "0.5825862", "text": "private void standardMove(int keycode)\r\n /*\r\n * A move for the main camera (e.g. VFWD for forward) is paired with an opposite move for the back-facing camera (e.g. VBACK). This approach means\r\n * that the relative orientation of the two cameras are hardwired into this class. A rotation is the same for both cameras. So a rotation left\r\n * causes a rotaion of ROT_AMT for both cameras.\r\n */\r\n {\r\n if (keycode == forwardKey) {\r\n moveBy(VFWD, FORWARD, VBACK); // args: main camera, bird's eye,\r\n } else if (keycode == backKey) {\r\n moveBy(VBACK, BACK, VFWD);\r\n } else if (keycode == leftKey) {\r\n doRotateY(ROT_AMT, LEFT);\r\n } else if (keycode == rightKey) {\r\n doRotateY(-ROT_AMT, RIGHT);\r\n }\r\n }", "title": "" } ]
c86870d0c2f73da0d8a75ba24f6b6503
This method was generated by Apache iBATIS ibator. This method corresponds to the database table T_CLIENTE
[ { "docid": "9a7b804dcb7fa8b13bb67e3b4f390194", "score": "0.0", "text": "void insert(TCliente record) throws SQLException;", "title": "" } ]
[ { "docid": "48ae72fc527206956cbbb698bac4815a", "score": "0.646877", "text": "public int getIDCLIENTE() {\n return idcliente;\n }", "title": "" }, { "docid": "ef13a642c27ffc9531922e36c465cae9", "score": "0.63085", "text": "public VtCliente getVtCliente(Long clieId) throws Exception;", "title": "" }, { "docid": "b4438b93ee9f773cdb8d35126396486d", "score": "0.6181235", "text": "public void setIDCLIENTE(int value) {\n this.idcliente = value;\n }", "title": "" }, { "docid": "5c0c9ae38a2e31b5ad84eb0a62fed770", "score": "0.6011966", "text": "public Cursor obtenerClientes() {\n SQLiteDatabase db = baseDatos.getReadableDatabase();\n\n String sql = String.format(\"SELECT * FROM %s\", Tablas.CLIENTE);\n return db.rawQuery(sql, null);\n }", "title": "" }, { "docid": "181b9fbe2695c8a22af0e5e0c23800e2", "score": "0.5910858", "text": "public String getCODCLI() {\n return fieldCODCLI.getString();\n }", "title": "" }, { "docid": "9033c08fe6171eaf879595b3556f47f0", "score": "0.5694938", "text": "public DadosClienteDAOImpl() {\n\t\tsuper(\"PESQUISAR_DADOS_CLIENTE\");\n\t}", "title": "" }, { "docid": "d8d82f93a1f6fa5030b5fa21facc2483", "score": "0.5604347", "text": "public List<Cliente> getTuttiClienti() {\r\n\r\n\t\treturn cDAO.getTuttiClienti();\r\n\t}", "title": "" }, { "docid": "2c85661df6d1b26160c617af4e13499f", "score": "0.55472416", "text": "@Override\r\n\tpublic LigneCommande getLigneCommande(LigneCommande lc, Commande co, Client cl) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f0d5d7cb7d6be745ae50c06e1e7ec554", "score": "0.55266744", "text": "public void verClientes() {\n List<Cliente> clientes;\n clientes = clienteDAO.findAll();\n vistaCliente.verClientes(clientes);\n }", "title": "" }, { "docid": "5833f43e7422ea251140b6794215971b", "score": "0.5524259", "text": "public BigDecimal getBigDecimalCODCLI() {\n return fieldCODCLI.getBigDecimal();\n }", "title": "" }, { "docid": "0cbb07b07a2ef1aa363f8ab97ed13e6c", "score": "0.54706097", "text": "public void verClientes(){\n List<Cliente> clientes = new ArrayList<Cliente>();\n IClienteDao dao= new ClienteDaoImpl();\n clientes=dao.obtener();\n vista.verClientes(clientes);\n }", "title": "" }, { "docid": "e500b4f771ba735dc35c48d52e01f05c", "score": "0.5338878", "text": "public void setCODCLI(String newvalue) {\n fieldCODCLI.setString(newvalue);\n }", "title": "" }, { "docid": "29197ed9e70d6a7df34b87aa2d4a9b5f", "score": "0.530708", "text": "public ListaCliente() {\n initComponents();\n this.LoadTable();\n }", "title": "" }, { "docid": "ff8961eb6827ddce3f5f53d96eebafd1", "score": "0.52729493", "text": "@Override\n\tpublic int getRowCount() {\n\t\treturn vListeClient.size();\n\t}", "title": "" }, { "docid": "6806b1fb2a38ec9cf43682e6f455d4db", "score": "0.52420205", "text": "public ArrayList<Client> clientList()\n {\n ArrayList<Client> cList = new ArrayList<>();\n \n Connection con = ConnectBD.connecterBD();\n Statement st;\n ResultSet rs;\n \n try {\n \n st = con.createStatement();\n rs = st.executeQuery(\"SELECT `CIN`, `nomC`, `prenomC`, `adresse`, `sexe`, `etatCivile`, `dateNaiss`, `numeroTel`, `mail` FROM `client`\");\n \n Client clt;\n \n while (rs.next()) {\n clt = new Client(rs.getString(\"CIN\"),\n rs.getString(\"nomC\"),\n rs.getString(\"prenomC\"),\n rs.getString(\"adresse\"),\n rs.getString(\"numeroTel\"),\n rs.getString(\"dateNaiss\"),\n rs.getString(\"sexe\"),\n rs.getString(\"etatCivile\"),\n rs.getString(\"mail\"));\n \n cList.add(clt);\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ClientQuery.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return cList;\n }", "title": "" }, { "docid": "8a30b617ed50c5730d0c65064fe7d508", "score": "0.5239433", "text": "public List<Clima> getClimas() {\n\t\tEntityManager em = DesktopEntityManagerManager.getDesktopEntityManager();\n\t\treturn em.createQuery(\"SELECT c FROM Clima c\", Clima.class).getResultList();\n\t}", "title": "" }, { "docid": "e251c839821017f9de60ceab338499e5", "score": "0.52299523", "text": "private String consultarClienteIdDB() {\n\n ConektaDB myDB = new ConektaDB(this);\n Cursor cursor = myDB.selectRecords();\n\n //el la columna # 4, cokekt_id\n return cursor.getString(4);\n }", "title": "" }, { "docid": "f02d9bc735eedfe5809d749b498d8eb1", "score": "0.5227118", "text": "public Object[] agregarNuevoCliente(tableMaker creadorTabla) throws SQLException {\n String [] opcionesTipoDocumento = {\"CEDULA DE CIUDADANIA\",\"OTRO\"};\n String [] opcionesSexo = {\"FEMENINO\",\"MASCULINO\"};\n \n JComboBox<String> tipoDocumento = agregarLista(opcionesTipoDocumento);\n JComboBox<String> sexoCliente = agregarLista(opcionesSexo);\n\n /**Formateo de las columnas */\n TableColumn tipoDocumentoColumn = \n creadorTabla.getMetatabla().getColumnModel().getColumn(1);\n tipoDocumentoColumn.setCellEditor(new DefaultCellEditor(tipoDocumento));\n\n TableColumn sexoClienteColumn = \n creadorTabla.getMetatabla().getColumnModel().getColumn(4);\n sexoClienteColumn.setCellEditor(new DefaultCellEditor(sexoCliente));\n\n Object[] nuevoCliente = {\"00000000\",tipoDocumento,\"SIN NOMBRE\",\"SIN APELLIDO\",sexoCliente,\"18\"};\n new CRUDClientes().insertarCliente(\"00000000\", \"CEDULA DE CIUDADANIA\", \"SIN NOMBRE\",\"SIN APELLIDO\", \"NINGUNO\",\"18\");\n return nuevoCliente;\n }", "title": "" }, { "docid": "770008378d5436d7c6e6b15e75d3386f", "score": "0.52133554", "text": "@Override\n\tpublic List<Cliente> listClientes() {\n\t\treturn clienteRepository.listCliente();\n\t}", "title": "" }, { "docid": "cf6addb1bd9064cb975745f487b9ca48", "score": "0.5208598", "text": "public TelaCliente() {\n initComponents();\n preecheTabela();\n lbl_id.setVisible(false);\n }", "title": "" }, { "docid": "f7e256546b6100ab5428c52b71d1729f", "score": "0.5195845", "text": "private void cargarDatosClientes(ArrayList<Cliente> pDatos) {\n if (pDatos.size() > 0) {\n DefaultTableModel modelo = (DefaultTableModel) vistaAdministrador.tablaClientes.getModel();\n modelo.setRowCount(0);\n vistaAdministrador.tablaClientes.getColumnModel().getColumn(4).setPreferredWidth(200);\n for (int i = 0; i < pDatos.size(); i++) {\n Vector v = new Vector();\n v.add(pDatos.get(i).getIdentificacion());\n v.add(pDatos.get(i).getNombre());\n v.add(pDatos.get(i).getApellido());\n v.add(pDatos.get(i).getNumeroTelefono());\n v.add(pDatos.get(i).getCorreo());\n modelo.addRow(v);\n vistaAdministrador.tablaClientes.setModel(modelo);\n }\n } else {\n JOptionPane.showMessageDialog(null, \"No existen datos asociados\");\n }\n\n }", "title": "" }, { "docid": "911e0e9d6c3870a5940aba21ba6b882b", "score": "0.5190479", "text": "public void recuperarCesta() throws SQLException{\n PreparedStatement query=Herramientas.getConexion().prepareStatement(\"SELECT * FROM linea_carrito WHERE dni_cliente=?\");\n query.setString(1, this.getNif());\n ResultSet resultado=query.executeQuery();\n ArrayList <LineaCompra> carrito=new ArrayList();\n if(!resultado.next()){\n }\n else{\n this.setSupermercadoCesta(resultado.getInt(\"supermercado\"));\n do{\n LineaCompra linea=new LineaCompra(resultado.getInt(\"codigo_producto\"),\n resultado.getInt(\"cantidad\"),resultado.getDouble(\"Precio\"));\n carrito.add(linea);\n }\n while(resultado.next());\n }\n this.setCestaCompra(carrito);\n query.close();\n resultado.close();\n }", "title": "" }, { "docid": "e51c097684f69290975b7b0918ed204a", "score": "0.51764727", "text": "public List<Cliente> listarclientes() {\n\t\treturn bancoEJB.listarclientes();\n\t}", "title": "" }, { "docid": "aac3c4c0c1a348549b439604d6fa3e56", "score": "0.51724327", "text": "public Cursor obtenerClientes() {\n Log.d(\"DEBUG\",\"OBTENER CLIENTES\");\n return db.query(\"clients\", new String[] {\"_id\",\"nombre\", \"email\", \"direccion\", \"telefono\", \"id_backend\"}, null, null, null, null, null);\n\n }", "title": "" }, { "docid": "edff3c6716a9870fe3e18121331b90b7", "score": "0.5169886", "text": "public void autInitClientMenuCadastroPF() {\r\n\r\n\t\tautInitWebApplicationVA();\r\n\t\tautStartLoginDefaultVA();\r\n\r\n\t\tautGetCurrentParameter(AUT_TABLE_PARAMETERS_NAMES.AUT_VA_CADASTROS,\"AUT_TIPO_CADASTRO\");\r\n\t\tAUT_VA_CADASTROS opCadastro = AUT_VA_CADASTROS.FISICA;\r\n\t\tautSetCurrentParameter(AUT_TABLE_PARAMETERS_NAMES.AUT_VA_CADASTROS,\"AUT_TIPO_CADASTRO\", opCadastro.toString());\r\n\r\n\t\t\r\n\t\tAUT_VA_TIPO_ENDERECO opTipoEndereco = AUT_VA_TIPO_ENDERECO.RESIDENCIAL;\r\n\t\tautSetCurrentParameter(AUT_TABLE_PARAMETERS_NAMES.AUT_VA_CADASTROS,\"AUT_TIPO_ENDERECO\", opTipoEndereco.toString());\r\n\r\n\r\n\t\tAUT_VA_TIPO_RESIDENCIA opTipoResidencia = AUT_VA_TIPO_RESIDENCIA.CONDOMINIO;\t\t\r\n\t\tautSetCurrentParameter(AUT_TABLE_PARAMETERS_NAMES.AUT_VA_CADASTROS,\"AUT_TIPO_IMOVEL_RESIDENCIA\", opTipoResidencia.toString());\r\n\r\n\t\tAUT_VA_TIPO_CONTATO opTipoContact = AUT_VA_TIPO_CONTATO.CELULAR;\r\n\t\tautSetCurrentParameter(AUT_TABLE_PARAMETERS_NAMES.AUT_VA_CADASTROS,\"AUT_TIPO_TELEFONE\", opTipoContact.toString());\r\n\t\t\t\t\r\n\t\tautCadastrarCliente(opCadastro);\r\n\t}", "title": "" }, { "docid": "2307a67acbaa0b873f9998282866ae26", "score": "0.51598144", "text": "@Override\n\tpublic List<ClientVM> getfindCliect() {\n\t\treturn createProjectRepository.getfindCliect();\n\t}", "title": "" }, { "docid": "13ef8183ddd9540b3f97877561126a17", "score": "0.5139472", "text": "@Override\n public int compareTo(Cliente cli){\n long comparacion=0;\n comparacion=this.getDni()-cli.getDni();\t\t//si son iguales devuelve cero, \n return (int) comparacion;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n }", "title": "" }, { "docid": "2979e50efb2f28c1b644bd0f39b00143", "score": "0.5138149", "text": "@Override // palabra reservada para aplicar la sobreescritura\r\n public void Atender_cliente() {\n System.out.println(\"Que se le ofrece\"); // se imprime en pantalla lo que esta entre parentesis\r\n }", "title": "" }, { "docid": "fee0553d163f094bda904be9a1d263dd", "score": "0.512509", "text": "public List<Cliente> getTodosClientes() {\t\t\r\n\t\tList<Cliente> retorno = this.clienteDAO.getLista();\r\n\t\treturn retorno;\r\n\t}", "title": "" }, { "docid": "46e4ac309e04fe8798d22b55fd8ddb37", "score": "0.5124026", "text": "public List<Cliente> buscarClientes() {\n\t\treturn this.clienteRepository.findAll();\n\t}", "title": "" }, { "docid": "06a078c1fd38f28196508d9a756ee798", "score": "0.51103884", "text": "public void verCliente() {\n int id = vistaCliente.buscarCliente();\n cliente = clienteDAO.read(id);\n vistaCliente.verCliente(cliente);\n }", "title": "" }, { "docid": "81c13fec816a70c627e5e08d85c3352d", "score": "0.5103558", "text": "public ClientTable(String imie, String nazwisko, String dataurodzenia, String pesel, String numertelefonu) {\n this.imie = imie;\n this.nazwisko = nazwisko;\n this.dataurodzenia = dataurodzenia;\n this.pesel = pesel;\n this.numertelefonu = numertelefonu;\n }", "title": "" }, { "docid": "068b789854cad988725afa2e6e188244", "score": "0.5099895", "text": "public String toString() {\n return String.format(AdminConstant.FORMATO_CLIENTE, cedula, nombres, apellidos);\n }", "title": "" }, { "docid": "9faa349f56e5cf844a157ca7c00231b6", "score": "0.50939953", "text": "public List<Vehiculo>listarCliente()throws SQLException{\r\n ConexionBD conexion=new ConexionBD();\r\n List<Vehiculo> listaVehiculo=new ArrayList<>();\r\n String sql=\"selec*from vehiculo order by placa asc\";\r\n ResultSet rs=conexion.consultarBD(sql);\r\n Vehiculo v; \r\n while(rs.next()){\r\n v=new Vehiculo();\r\n \r\n v.setPlaca(rs.getString(\"placa\"));\r\n v.setMarca(rs.getString(\"marca\"));\r\n v.setTipo_vehiculo(rs.getString(\"tipo_vehiculo\"));\r\n listaVehiculo.add(v);\r\n }\r\n conexion.cerrarConexion();\r\n return listaVehiculo;\r\n\r\n }", "title": "" }, { "docid": "ff6d857bbd5b152851f37956576b02eb", "score": "0.5090937", "text": "public List<Cliente> ListarClientes();", "title": "" }, { "docid": "2db6a8e547ff3eab42471452db7d07da", "score": "0.50794756", "text": "@Test\n\tpublic void testCreateClima() throws SQLException {\n\t\tStatement statement = jdbcConnection.createStatement();\n\t\tint id = statement.executeUpdate(\"INSERT INTO Accidente(fecha) values('2016-01-01')\",\n\t\t\t\tStatement.RETURN_GENERATED_KEYS);\n\n\t\tfinal Clima cli = new Clima();\n\t\tcli.setCondicion_meteorologica(\"Nublado\");\n\t\tdoTransaction(emf, em -> {\n\t\t\tem.persist(cli);\n\t\t\tAccidente a = em.find(Accidente.class, id);\n\t\t\ta.setClima(cli);\n\t\t});\n\n\t\tcli.getAccidentes();\n\n\t\t// check\n\t\tstatement = jdbcConnection.createStatement();\n\t\tResultSet rs = statement.executeQuery(\"SELECT COUNT(*) as total FROM Clima WHERE id = \" + cli.getId());\n\t\trs.next();\n\n\t\tassertEquals(1, rs.getInt(\"total\"));\n\t}", "title": "" }, { "docid": "bf442085208519fb6cd0aa907b3f6161", "score": "0.50787354", "text": "@Override\n\tpublic List<Client> findClientSql() {\n\t\treturn clientRepository.findClientSql();\n\t}", "title": "" }, { "docid": "8164e791b028bd1dca9cf96940d23266", "score": "0.50771445", "text": "@Override\n\tpublic int getRowCount() {\n\t\t// TODO Auto-generated method stub\n\t\treturn listeClients.size();\n\t}", "title": "" }, { "docid": "4bc577cb715a300e5d299a26507c867c", "score": "0.5076372", "text": "@Override\n\tpublic int getC() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d11e789a7c6d28b8074b2e443678e5fd", "score": "0.5076125", "text": "public Cliente getId_cliente() {\n\t\treturn id_cliente;\n\t}", "title": "" }, { "docid": "d5625ac8151dd9fdea71b1583954ce88", "score": "0.50748694", "text": "public Cliente(int CODIGO, CharSequence RUCCI, int TIPO, int IDENTIFICACION,int SUCURSAL, CharSequence EMPRESA, CharSequence REPRESENTANTE, CharSequence CIUDAD, CharSequence DIRECCION, CharSequence DIRECCION2, CharSequence TELFAX, CharSequence TELFAX2, CharSequence PROPIETARIO, boolean EMP_PUBLICA, int VENDEDOR,Timestamp ACTUALIZACION,Timestamp ACTUALIZACION_LOCAL) {\n this.CODIGO = CODIGO;\n this.RUCCI = RUCCI;\n this.TIPO = TIPO;\n this.IDENTIFICACION = IDENTIFICACION;\n this.SUCURSAL=SUCURSAL;\n this.EMPRESA = EMPRESA;\n this.REPRESENTANTE = REPRESENTANTE;\n this.CIUDAD = CIUDAD;\n this.DIRECCION = DIRECCION;\n this.DIRECCION2 = DIRECCION2;\n this.TELFAX = TELFAX;\n this.TELFAX2 = TELFAX2;\n this.PROPIETARIO = PROPIETARIO;\n this.EMP_PUBLICA = EMP_PUBLICA;\n this.VENDEDOR = VENDEDOR;\n this.ACTUALIZACION=ACTUALIZACION;\n this.ACTUALIZACION_LOCAL=ACTUALIZACION_LOCAL;\n }", "title": "" }, { "docid": "e5ff8c3aa6130fe02c8a6d5ae07f534f", "score": "0.5070382", "text": "public CRUDVistaChocolate(ControladorNegocio cn) throws Exception {\n this.cn = cn;\n this.cv = new ControladorCRUDChocolate();\n this.cn.setControladorVentana(cv);\n initComponents();\n this.cn.listarChocolates();\n \n }", "title": "" }, { "docid": "f37bdd552922e0e80fae631b06d55438", "score": "0.50684583", "text": "public List<Cliente> getListaClientes() {\n return clientes;\n }", "title": "" }, { "docid": "4d00905367a29f120748684868446e2a", "score": "0.50624114", "text": "public void setCODCLI(BigDecimal newvalue) {\n fieldCODCLI.setBigDecimal(newvalue);\n }", "title": "" }, { "docid": "123df5a72615f9b86be845ac1c523ab4", "score": "0.5060162", "text": "@Override\n\tpublic List<ClienteResidencial> listClientesResidencial() {\n\t\treturn clienteResidencialRepository.findAll();\n\t}", "title": "" }, { "docid": "91db4c38c2a4876d288eaa81c8c8aba0", "score": "0.5031236", "text": "public static List<String> recupVilleClient() {\r\n\r\n\t\tList<String> ville = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tresult = (ResultSet) Connect\r\n\t\t\t\t\t.getInstance()\r\n\t\t\t\t\t.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n\t\t\t\t\t\t\tjava.sql.ResultSet.CONCUR_READ_ONLY)\r\n\t\t\t\t\t\t\t.executeQuery(\"SELECT ville_client FROM arn_clients\");\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tville.add((result.getString(\"ville_client\")));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ville;\r\n\t}", "title": "" }, { "docid": "fe1c6480a9a1a5f4ec7e156ac66588c6", "score": "0.502963", "text": "public FacturaCliente getDevolucionCliente()\r\n/* 829: */ {\r\n/* 830:896 */ return this.devolucionCliente;\r\n/* 831: */ }", "title": "" }, { "docid": "de5e1c867cefa3dbd03482a10ca98a53", "score": "0.5027484", "text": "private void listarClientes(){\n listaModelClientes = controllerCliente.getListaClienteController();\n cbCliente.removeAllItems();\n for (int i = 0; i < listaModelClientes.size(); i++) {\n cbCliente.addItem(listaModelClientes.get(i).getCliNome());\n }\n }", "title": "" }, { "docid": "449b19e82e55a1f51abf941d2970058f", "score": "0.5026676", "text": "@Override\n\tpublic List<Client> listeClient() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bdf4e5946eba7b77ebd3eefd9654cbf0", "score": "0.50158155", "text": "public List<Cliente> getClientes() {\n\t\treturn clienteRepository.findAll();\n\t}", "title": "" }, { "docid": "2118a06c54f9f69fdf728d19a9f8509a", "score": "0.4999966", "text": "public void setta(Cliente cliente) throws SQLException {\n GestoreNegozio gn = new GestoreNegozio();\n GestorePubblicita gp = new GestorePubblicita();\n List<Negozio> negozi = gp.OrderByPubblicita(gn.getByIndirizzo( cliente.indirizzo.citta), gp.getNegoziConPubblicitaAttivaByString(\"`indirizzo.citta`\", cliente.indirizzo.citta));\n ln = FXCollections.observableArrayList(negozi);\n tbNome.setCellValueFactory(cd -> new SimpleStringProperty(cd.getValue().denominazione));\n tbCategoria.setCellValueFactory(cd -> new SimpleStringProperty(cd.getValue().categorie.toString()));\n tbNumero.setCellValueFactory(cd -> new SimpleStringProperty(cd.getValue().telefono));\n tbVia.setCellValueFactory(cd -> new SimpleStringProperty(cd.getValue().indirizzo.toString()));\n tabellaCitta.setItems(ln);\n tabellaCitta.setPlaceholder(new Label(\"C3 non contiene negozi a \" + cliente.indirizzo.citta));\n }", "title": "" }, { "docid": "01cc8cede442bb6e0a019250601877e8", "score": "0.4993736", "text": "@Override\n\tpublic List<ClienteCorporativo> listClientesCorporativos() {\n\t\treturn clienteCorporativoRepository.findAll();\n\t}", "title": "" }, { "docid": "808d69ffeb2ceddecd066f7ee489d658", "score": "0.49839523", "text": "private void llenar_celdas() {\n String data[] = new String[3];\n for (int i = 0; i < listaec.size(); i++) {\n data[0] = listaec.get(i).getId();\n data[1] = listaec.get(i).getDescripcion();\n data[2] = listaec.get(i).getFecha_mod();\n dtm_ec.addRow(data);\n }\n }", "title": "" }, { "docid": "5cb871ad3ce0b717d944b8e306b7facb", "score": "0.49829498", "text": "public static List<Client> recupClient() {\r\n\r\n\t\tList<Client> client = new ArrayList<Client>();\r\n\t\ttry {\r\n\t\t\tresult = (ResultSet) Connect\r\n\t\t\t\t\t.getInstance()\r\n\t\t\t\t\t.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n\t\t\t\t\t\t\tjava.sql.ResultSet.CONCUR_READ_ONLY)\r\n\t\t\t\t\t\t\t.executeQuery(\"SELECT * FROM arn_clients\");\r\n\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tclient.add(new Client(result.getInt(\"id_client\"), result\r\n\t\t\t\t\t\t.getString(\"nom_client\"), result\r\n\t\t\t\t\t\t.getString(\"prenom_client\"), result\r\n\t\t\t\t\t\t.getString(\"adresse_client\"), result\r\n\t\t\t\t\t\t.getString(\"cp_client\"), result\r\n\t\t\t\t\t\t.getString(\"ville_client\"), result\r\n\t\t\t\t\t\t.getString(\"infos_client\"), result\r\n\t\t\t\t\t\t.getString(\"mail_client\"), result\r\n\t\t\t\t\t\t.getString(\"tel_client\"), result\r\n\t\t\t\t\t\t.getString(\"ddn_client\")));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn client;\r\n\t}", "title": "" }, { "docid": "12c91577d8bc7ca63e0cc177235011a5", "score": "0.49694508", "text": "public List<Cliente> consultarClientes();", "title": "" }, { "docid": "85ccce492595acfd1a3a36a6768c0e1d", "score": "0.49692264", "text": "public void insertaClientes(Cliente cli) throws SQLException {\n\n\t\t\n\t\ttry {\n\t\t\tconectar();\n\n\t\t\tString sqlInsert = \"INSERT INTO Cliente (dni, nombre, apellidos, direccion, email, telf, notas) \"\n\n\t\t \t + \"VALUES (\" + \"\\\"\" + cli.getDni() + \"\\\"\" + \",\"\n\t\t \t + \"\\\"\" + cli.getNombre() + \"\\\"\" + \",\"\n\t\t \t + \"\\\"\" + cli.getApellidos() + \"\\\"\" + \",\"\n\t\t \t + \"\\\"\" + cli.getDireccion() + \"\\\"\" + \",\"\n\t\t \t + \"\\\"\" + cli.getEmail() + \"\\\"\" + \",\"\n\t\t \t + \"\\\"\" + cli.getTelf() + \"\\\"\" + \",\"\n\t\t \t + \"\\\"\" + cli.getNotas() + \"\\\"\" + \");\";\n\t\t\t\n\t\t\tsentencia = c.createStatement();\n\t\t\tsentencia.executeUpdate(sqlInsert);\n\t\t\tsentencia.close();\n\t\t\tc.close();\n\n\t\t\tSystem.out.println(\"Datos insertados\");\n\n\t\t} catch (Exception e) {\n\n\t\t\tSystem.out.println(\"Error al insertertar datos en la tabla Cliente\");\n\n\t\t}\n\t}", "title": "" }, { "docid": "219efd6554ac734362cd44f8c293caec", "score": "0.49676973", "text": "private void listarCliente() throws SQLException {\n ClienteDao dao = new ClienteDao();\n cliente = dao.getLista(\"%\" + txtNome.getText() + \"%\");\n mostraPesquisa(cliente);\n }", "title": "" }, { "docid": "08645485bb5bcc3bba605bda0c636c60", "score": "0.49608174", "text": "public LigneCommande getLigneCommandebyId (LigneCommande lc);", "title": "" }, { "docid": "56a8f00ed4803aa7eedc85ed04e2894c", "score": "0.49465963", "text": "public java.lang.Integer getClienteId() {\n return ClienteId;\n }", "title": "" }, { "docid": "045aa09bc5c7040029ab412d7cd1a81e", "score": "0.49447387", "text": "public CadLicoes() {\r\n initComponents();\r\n centralizaTela();\r\n carregaTabela();\r\n }", "title": "" }, { "docid": "6490f16e92bea7b8eafbb78d380d178a", "score": "0.4937313", "text": "public java.lang.Integer getClienteId() {\n return ClienteId;\n }", "title": "" }, { "docid": "54d7d345eae4cc7b0e37f00d764b4855", "score": "0.49354887", "text": "public void verTodosClientes() {\n String concatena = \"\";\n for (int i = 0; i < ManejoDato.listadoClientes.size(); i++) {\n concatena = concatena + \"Cliente\" + (i + 1) + \" \"\n + \"ID \" + ManejoDato.listadoClientes.get(i).getId() + \" \"\n + \"Nombre \" + ManejoDato.listadoClientes.get(i).getNombre() + \" \"\n + \"Apellido \" + ManejoDato.listadoClientes.get(i).getApellido() + \" \"\n + \"Direccion \" + ManejoDato.listadoClientes.get(i).getDireccion() + \" \"\n + \"Telefono \" + ManejoDato.listadoClientes.get(i).getTelefono() + \"\\n\";\n// System.out.print(\"**********************************\");\n }\n JOptionPane.showMessageDialog(null, concatena);\n }", "title": "" }, { "docid": "ae63275370ed8eae29537324f242e237", "score": "0.4930201", "text": "public void EliminarCliente(){\n Hndl_Clientes hndc = new Hndl_Clientes();\n try{\n hndc.EliminarCliente(this.cli.id); // SQL se elimina el cliente de la tabla\n this.ShowInfo(this.EXITO_TITLE, \"\", EXITO_DELETE_MESS);\n this.cerrar(); // se hace el cierre correspondiente de la ventana.\n } catch(ClassNotFoundException | SQLException ex){ // se notifica al usuario en caso de una exepcion\n this.ShowError(SuppMess.EXCEPTION, SuppMess.CALL_SUPPORT, SuppMess.INFORM_THIS + ex.getMessage());\n }\n }", "title": "" }, { "docid": "a50aeb78ada7205e990f15965e9b8eac", "score": "0.49295104", "text": "public Cursor obtenerCliente (long idCliente) throws SQLException {\n Cursor row = db.query(true, \"clients\", new String[]{\"_id\", \"nombre\", \"email\", \"direccion\", \"telefono\", \"id_backend\"},\n \"_id\" + \"=?\", new String[]{String.valueOf(idCliente)}, null, null, null, null);\n\n if (row != null) {\n row.moveToFirst();\n }\n return row;\n }", "title": "" }, { "docid": "78aa2a6bf2af8371e10ccf08e3dd563d", "score": "0.4926691", "text": "public TelaCliente() {\n initComponents();\n TravaCamposCliente();\n atualizarTabelaCliente();\n travaBotoes();\n }", "title": "" }, { "docid": "f585558ecfd3314ce9cfa6e4a366c038", "score": "0.4924944", "text": "public int getIdClient() {\n\t\treturn idCliente;\n\t}", "title": "" }, { "docid": "bf2ca3dcf3a480b34f9871a41e2bdb40", "score": "0.4922871", "text": "protected Vector<Vector<Object>> getOrderLineData ()\n\t{\n\t\tif (m_C_Order_ID == null || (Integer)m_C_Order_ID <= 0)\n\t\t\tthrow new AdempiereException(\"Preencher Pedido\");\n\t\t\n\t\tVector<Vector<Object>> data = new Vector<Vector<Object>>();\n\t\tStringBuilder sql = new StringBuilder(\"SELECT bp.Name, p.Name AS ProductName, ol.C_OrderLine_ID, ol.Line, ol.QtyEntered, ol.PriceEntered, \");\n\t\tsql.append(\"ol.LineNetAmt, o.GrandTotal, o.C_Order_ID, o.DocumentNo, o.DocStatus, \");\n\t\tsql.append(\"order_icms.lbr_TaxBaseAmt, order_icms.lbr_TaxRate, order_icms.lbr_TaxAmt, cfop.Value AS CFOP \");\n\t\tsql.append(\"FROM C_Order o \");\n\t\tsql.append(\"LEFT JOIN C_BPartner bp ON bp.C_BPartner_ID = o.C_BPartner_ID \");\n\t\tsql.append(\"INNER JOIN C_OrderLine ol ON ol.C_Order_ID = o.C_Order_ID \");\n\t\tsql.append(\"LEFT JOIN M_Product p ON p.M_Product_ID = ol.m_Product_ID \");\n\t\tsql.append(\"LEFT JOIN LBR_TaxLine order_icms ON order_icms.LBR_Tax_ID = ol.LBR_Tax_ID AND LBR_TaxName_ID=1106000 \");\n\t\tsql.append(\"LEFT JOIN LBR_CFOP cfop ON cfop.LBR_CFOP_ID = ol.LBR_CFOP_ID \");\n\t\tsql.append(\"WHERE o.C_Order_ID = ?\");\n\t\t\t\t\n\t\tif (log.isLoggable(Level.FINE)) log.fine(\"InvSQL=\" + sql.toString());\n\t\t\n\t\t// role security\n\t\tsql = new StringBuilder( MRole.getDefault(Env.getCtx(), false).addAccessSQL(sql.toString(), \"p\", MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO ));\n\t\tsql.append(\" ORDER BY ol.Line \");\n\t\t\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rs = null;\n\t\ttry\n\t\t{\n\t\t\tpstmt = DB.prepareStatement(sql.toString(), null);\n\t\t\tpstmt.setInt(1, (Integer)m_C_Order_ID);\n\t\t\t\n\t\t\trs = pstmt.executeQuery();\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tVector<Object> line = new Vector<Object>();\n\t\t\t\tline.add(Boolean.valueOf(false));\t\t\t\t\t// 0-Selection\n\t\t\t\tKeyNamePair knp = new KeyNamePair(rs.getInt(\"C_OrderLine_ID\"), rs.getString(\"Line\"));\n\t\t\t\t//\n\t\t\t\tline.add(knp);\t\t\t\t\t\t\t\t\t// 1-DocumentNo\n\t\t\t\tline.add(rs.getString(\"ProductName\"));\t// 4-Production Qty\n\t\t\t\tline.add(rs.getString(\"cfop\"));\t// 5-Production Qty\n\t\t\t\tline.add(rs.getBigDecimal(\"QtyEntered\"));\t\t// 6-Movement Qty\n\t\t\t\tline.add(rs.getBigDecimal(\"PriceEntered\"));\t\t// 7-Price Entered\n\t\t\t\tline.add(rs.getBigDecimal(\"GrandTotal\"));\t\t// 8-Grand Total\n\t\t\t\tline.add(rs.getBigDecimal(\"lbr_TaxBaseAmt\"));\t// 9-Grand Total\n\t\t\t\tline.add(rs.getBigDecimal(\"lbr_TaxRate\"));\t\t// 9-Grand Total\n\t\t\t\tline.add(rs.getBigDecimal(\"lbr_TaxAmt\"));\t\t// 9-Grand Total\n\t\t\t\tString status = rs.getString(\"DocStatus\");\t\t// 10-Document Status\n\t\t\t\tline.add(status);\n\t\t\t\tdata.add(line);\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tlog.log(Level.SEVERE, sql.toString(), e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tDB.close(rs, pstmt);\n\t\t}\n\t\t\n\t\treturn data;\n\t}", "title": "" }, { "docid": "a5b232e32136ffdd4d6577bd4c783658", "score": "0.49197295", "text": "public ControlerCliente() {\n\t\tthis.clientes = new HashMap<String, Cliente>();\n\t\tthis.cpfsCadastrados = new ArrayList<String>();\n\t\tthis.comparator = null;\n\t\tthis.compras = new ArrayList<Compra>();\n\t}", "title": "" }, { "docid": "1e9d1303a4d39f41dd39251bd46483c4", "score": "0.4917821", "text": "public Cliente buscarCliente() {\n Teclado t = new Teclado();\n Cliente cliente = null;\n if(mostrarListaClienteOptimizada()){\n String CUIT = t.cargarCuitCliente(listaClientes);\n for (Cliente aux : listaClientes.getLista()){\n if(aux.getCuit().equals(CUIT)){\n cliente = aux;\n }\n }\n }\n\n return cliente;\n }", "title": "" }, { "docid": "ee7cfb8c5732b24f41f5f7942adbd39c", "score": "0.4912537", "text": "public boolean getClimatizador() {\n\t\treturn climatizador; \r\n\t}", "title": "" }, { "docid": "d77baf8edd516f0f5278f63e384f79a1", "score": "0.49098927", "text": "public void mostrarDatosClientes() {\n String cadenaClientes = \"\";\n System.out.println(\"Datos de clientes\");\n for (int i = 0; i < listaClientes.size(); i++){\n String datos = \"\\nCédula: \" + listaClientes.get(i).getCedula()\n + \"\\nNombre: \" + listaClientes.get(i).getNombre()\n + \"\\nID: \" + listaClientes.get(i).getId();\n cadenaClientes.concat(datos);\n }\n System.out.println(cadenaClientes);\n }", "title": "" }, { "docid": "5130b0726bc3015d5ae4b6fe5ecdde86", "score": "0.49070656", "text": "public List<ClienteEntity> getClientes() {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todos los clientes\");\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\n List<ClienteEntity> clientes = persistence.findAll();\n LOGGER.log(Level.INFO, \"Termina proceso de consultar todos los clientes\");\n return clientes;\n }", "title": "" }, { "docid": "9a8b89dc64130c45090031504702238e", "score": "0.49049187", "text": "public ReporteGastosCliente() {\n\t\tthis.id = (long) 0;\n\t\tthis.cliente = null;\n\t\tthis.gastos = 0;\n\t}", "title": "" }, { "docid": "c746a914874eafa278910506a8896b56", "score": "0.48995364", "text": "public String getZoneItems() {\n/* 584 */ return \"SELECT * FROM COINS WHERE OWNERID=-10\";\n/* */ }", "title": "" }, { "docid": "9d5ed6e50c6bf07951498e0d1c37b2e9", "score": "0.4893304", "text": "public String[] obtenerCliente(int idCliente){\n String txtQuery = \"SELECT idCliente, Nombre, Puntos FROM cliente WHERE idCliente=\"+idCliente+\";\";\n String[][] datos = super.obtenerDatos(txtQuery);\n if(datos.length > 0){\n return datos[0];\n }\n else return null;\n }", "title": "" }, { "docid": "2c85b35a21b8bf1c646de0c844f3f3e1", "score": "0.4892682", "text": "@Override\r\n\tpublic List<Client> clientlist(Long long1) throws Exception {\n\t\treturn userDao.clientlist(long1);\r\n\t}", "title": "" }, { "docid": "5546c6e6b902588ebe66357905f2792e", "score": "0.48888856", "text": "public ClienteComun(String nomeC, String emailC, int idadeC)\n {\n super( emailC, idadeC);\n }", "title": "" }, { "docid": "3935ade734f12f41f36f2132295c77e8", "score": "0.4883776", "text": "@Override\r\n\tpublic List<Cliente> listar() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "f985dafbc50ed82e1781151dd7ca4739", "score": "0.4878578", "text": "@Override\n\tpublic List<Cliente> listClientes(String query) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ca2045692d66e9df3dcb220a7be3ae2f", "score": "0.48765865", "text": "public static List<String> recupNomClient() {\r\n\r\n\t\tList<String> nomClient = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tresult = (ResultSet) Connect\r\n\t\t\t\t\t.getInstance()\r\n\t\t\t\t\t.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n\t\t\t\t\t\t\tjava.sql.ResultSet.CONCUR_READ_ONLY)\r\n\t\t\t\t\t\t\t.executeQuery(\"SELECT nom_client FROM arn_clients\");\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tnomClient.add((result.getString(\"nom_client\")));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn nomClient;\r\n\t}", "title": "" }, { "docid": "a68cf558508c1cc13d6ccd8e9492475d", "score": "0.4874429", "text": "public List<Cliente> list() {\n\t\treturn clienteRepository.findAll();\n\t}", "title": "" }, { "docid": "28762e70c42ad051e6651c8515708be9", "score": "0.48695007", "text": "public ifrRegistroClientes() {\n initComponents();\n isActive = true;\n jTable1.getSelectionModel().addListSelectionListener((ListSelectionEvent e) -> {\n jTable1SelectionChanged(e);\n });\n\n SessionHelper.VerificarPermiso(btnNuevo, \"gestion de clientes\", \"insertar\");\n SessionHelper.VerificarPermiso(btnEditar, \"gestion de clientes\", \"modificar\");\n SessionHelper.VerificarPermiso(btnExportar, \"gestion de clientes\", \"exportar\");\n }", "title": "" }, { "docid": "3cce5ed133d2759c11985440a5d2d0b3", "score": "0.4868106", "text": "public void tornaIndietro() {\n\tControllerSchermataPrincipaleCliente.visualizzaSchermataPrincipaleCliente();\n }", "title": "" }, { "docid": "7d47d44cd0373125058c276033c181b3", "score": "0.48639655", "text": "@Override\r\n\tpublic int updateLigneCommande(LigneCommande lc, Commande co, Client cl) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "839ac56c242bded7d4426c71481674e8", "score": "0.48614115", "text": "private void createCTipo() {\r\n\t\tcTipo = new Combo(Identificacion, SWT.READ_ONLY);\r\n\t\tcTipo.setToolTipText(\"Escoga el Tipo Identificación del cliente\");\r\n\t\tcTipo.setBounds(new Rectangle(28, 35, 141, 23));\r\n\t\tcTipo.add(\"Cedula de Ciudadania\");\r\n\t\tcTipo.add(\"Tarjeta de Identidad\");\r\n\t\tcTipo.add(\"Pasaporte\");\r\n\t\tcTipo.add(\"Cedula de Extranjeria\");\r\n\t\tcTipo.select(0);\r\n\r\n\t}", "title": "" }, { "docid": "63551710f319208062f9b46101fabcbd", "score": "0.4859967", "text": "@Override\r\n\tpublic List<LineItemDAO> getAllLine() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ac87372d6c3ea06c4e6cc4d24e96a20d", "score": "0.48558173", "text": "private int getClientId(AfterCreateOccurrenceContext aContext, String clientName)\n\t{\n\t\tAdaptationTable tableClients = aContext.getTable()\n\t\t\t.getContainerAdaptation()\n\t\t\t.getTable(ClientesPath._Cliente.getPathInSchema());\n\t\tRequest request = tableClients.createRequest();\n\t\trequest.setXPathFilter(ClientesPath._Cliente._IdClienteSAP.format() + \"='\" + clientName\n\t\t\t+ \"'\");\n\t\tRequestResult result = request.execute();\n\t\tAdaptation record = result.nextAdaptation();\n\t\tif (!result.isEmpty())\n\t\t{\n\t\t\treturn record.get_int(ClientesPath._Cliente._IdCliente);\n\t\t}\n\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "21b988d60ce2437bb7cb7a760a5d7159", "score": "0.48508045", "text": "public ViewCliente() {\n initComponents();\n setLocationRelativeTo(null);\n iniciarJanelaCliente();\n readJTable();\n modo = \"Navegar\";\n manipulaInterfaceCliente();\n DefaultTableModel modelo = (DefaultTableModel) table_cliente_clientes.getModel();\n table_cliente_clientes.setRowSorter(new TableRowSorter(modelo));\n }", "title": "" }, { "docid": "801ccdc3d2639802d6addb0b41440160", "score": "0.48504192", "text": "public int getC_BPartner_ID();", "title": "" }, { "docid": "801ccdc3d2639802d6addb0b41440160", "score": "0.48504192", "text": "public int getC_BPartner_ID();", "title": "" }, { "docid": "801ccdc3d2639802d6addb0b41440160", "score": "0.48504192", "text": "public int getC_BPartner_ID();", "title": "" }, { "docid": "801ccdc3d2639802d6addb0b41440160", "score": "0.48504192", "text": "public int getC_BPartner_ID();", "title": "" }, { "docid": "b42e22ad63458bd59614c08e91d46d92", "score": "0.48503172", "text": "public TelaCliente() {\n initComponents();\n c = ModuloConexao.conector();\n pesquisar_cliente();\n }", "title": "" }, { "docid": "3c8221c82bebe27a612f5c6c0a214cbc", "score": "0.48474976", "text": "public int getCupo() {return 0;}", "title": "" }, { "docid": "2eec159657798552b584a8e04d583956", "score": "0.48362184", "text": "public ResultSet fgetAllClient() throws ClassNotFoundException, SQLException{\n \n ResultSet rs; // contiendra le résultat de notre requete \n //Connecter con = new Connecter();\n PreparedStatement stm = con.getConnexion().prepareStatement(\"SELECT * FROM \\\"public\\\".clients;\");\n rs = stm.executeQuery();\n return rs;\n \n }", "title": "" }, { "docid": "7e9fa93bcfff230ffbf4770fee7658af", "score": "0.48348832", "text": "private void listaClientes() throws Exception {\n\t\tArrayList <Cliente> result=f.getList();\n\t\tint n=result.size();\n\t\tif (n>0) {\n\t\t\tSystem.out.println(\"Listando \"+n+\" Clientes...\");\n\t\t\tfor (Cliente c: result) {\n\t\t\t\tSystem.out.println(c);\n\t\t\t\tpulsaEnter();\n\t\t\t}\n\t\t} else System.out.println(\"\\nNon existen clientes na Base de Datos\\n\");\n\t}", "title": "" }, { "docid": "afc3f06aae859a7b18e740a89fae3ef5", "score": "0.48269555", "text": "public RowSet viewSubordinateList(int superiorID){\n return db.query(\"EXEC sp_Subordinate \" + superiorID);\n }", "title": "" }, { "docid": "3ad94d3fca881f4e5f08e6744db99d3a", "score": "0.48238504", "text": "public BigDecimal getDescuentoCliente(){\n BigDecimal descCliente = BigDecimal.ZERO;\n if (porcentajeDescCliente.compareTo(BigDecimal.ZERO)>0){\n descCliente = precioLista.multiply(porcentajeDescCliente)\n .divide(BigDecimal.valueOf(100));\n }\n \n return descCliente;\n }", "title": "" }, { "docid": "8fb3fe2c052f065b3f28d3c82b76a1a5", "score": "0.4812361", "text": "private List<String> getVTEClines(SegmentData segData) {\n prodDataStruct = textComp.getProductDataStruct();\n HashMap<String, TextIndexPoints> segMap = segData.getSementMap();\n TextIndexPoints tipVtec = segMap.get(\"vtec\");\n int lineCount = tipVtec.getEndIndex().x - tipVtec.getStartIndex().x;\n ArrayList<String> vtecList = new ArrayList<String>(lineCount);\n for (int i = 0; i < lineCount; i++) {\n String vtec = prodDataStruct.getProductTextArray()[i\n + tipVtec.getStartIndex().x];\n vtecList.add(vtec);\n }\n return vtecList;\n }", "title": "" }, { "docid": "d7a25cf20dc87aac4bb398ad9601bb41", "score": "0.48052618", "text": "public List<Cliente> getListaClienteOrdenados() {\n EntityManager em = getEntityManager();\n \n try {\n \n String consulta = \"select c from Cliente c order by coalesce(c.nombre,c.razonSocial) \";\n Query q = em.createQuery(consulta); \n return q.getResultList();\n \n }finally {\n em.close();\n }\n }", "title": "" }, { "docid": "297b0f4e312f7dafcfc12e792c067300", "score": "0.4799746", "text": "public JBIAdminCommands getClient()\n {\n\treturn mCachedClient;\n }", "title": "" } ]
9369dd3f4e7ebac4d19b6342f410386a
Convert byte array to the int value
[ { "docid": "7ad2511db0c5271b68165f5e3a2dc63c", "score": "0.76076996", "text": "public static final int ByteArrayToInt(byte[] b) {\r\n return (b[0] << 24)\r\n + ((b[1] & 0xFF) << 16)\r\n + ((b[2] & 0xFF) << 8)\r\n + (b[3] & 0xFF);\r\n }", "title": "" } ]
[ { "docid": "5162c727b497fdfe0d3920fdb0136df4", "score": "0.8134226", "text": "public static int ToInt(byte[] data) {\n\t int result = 0;\n\t for (int i = 0; i < 4; i++) {\n\t result <<= 8;\n\t result |= (data[i] & 0xFF);\n\t }\n\t return result;\n\t}", "title": "" }, { "docid": "4d9e6d136c1b88140be255a9d5cfe1fc", "score": "0.79159784", "text": "private static int[] convertBytetoInt(byte[] arr,int length){\n\t\t\tint[] byte_to_int=new int[length];\n\t\t\tfor(int j=0; j<byte_to_int.length; j++)\n\t\t\t{\n\t\t\t\tbyte_to_int[j] = 0;\n\t\t\t}\n\t\t\t\n\t\t\tint counter = 0;\n\t\t\tfor(int i=0;i<byte_to_int.length;i++){\n\t\t\t\tbyte_to_int[i] = ((arr[counter++]&0xff))|\n\t\t\t\t\t\t\t((arr[counter++]&0xff) << 8) |\n\t\t\t\t\t\t\t((arr[counter++]&0xff) << 16) |\n\t\t\t\t\t\t\t((arr[counter++]&0xff) << 24);\n\t\t\t}\n\t\t\treturn byte_to_int;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e39f9b219b9595a87bc864b09f34a97f", "score": "0.7907272", "text": "public static int toInt(byte[] b){\n if((b.length < 1) || (b.length>4)){\n throw new IllegalArgumentException(\"Array of size \"+b.length+\" cannot be converted to int.\");\n }\n int result = 0;\n for(int i=0; i<b.length; i++){\n result = ( (0xFF & b[i]) << ((b.length-i-1)*8) ) | result;\n }\n return result;\n }", "title": "" }, { "docid": "6b4da36cd0b11b745e4925896e2fb988", "score": "0.78894544", "text": "public static int byteArrToInt(byte[] bytes) {\n int newInt = (bytes[0] & 0xFF) << 24;\n newInt |= (((int)bytes[1]) & 0xFF) << 16;\n newInt |= (((int)bytes[2]) & 0xFF) << 8;\n newInt |= ((int)bytes[3]) & 0xFF;\n return newInt;\n }", "title": "" }, { "docid": "c3d1b8ebcc23af9c3c863daa25c4dff5", "score": "0.7851183", "text": "private int bytesToInt(byte [] bytes){\r\n\t return ByteBuffer.wrap(bytes).order(ByteOrder.BIG_ENDIAN).getInt();\r\n\t}", "title": "" }, { "docid": "a424455a57e8e8d786dd973d9ba5e7a6", "score": "0.7814151", "text": "public static int byteArray2Int(byte[] b) {\n return byteArray2Int(b, 0);\n }", "title": "" }, { "docid": "ce3c1f2c949a6fe89670f27866268b04", "score": "0.7801776", "text": "public static int byteArrayToInt(byte[] b)\n {\n return byteArrayToInt(b, 0);\n }", "title": "" }, { "docid": "0ec8f22a595cb5e16a233f2fade3f77e", "score": "0.77990526", "text": "public static int Int(byte[] data) throws DecodeException {\r\n\t\tif(data.length!=4) throw new DecodeException(integer.INT);\r\n\t\treturn ByteBuffer.wrap(data).getInt();\r\n\t}", "title": "" }, { "docid": "d10e3b5b1d1d27c39ff639959cb890a3", "score": "0.762071", "text": "public static int byteArrayToInt(byte[] b) {\n\t\treturn b[0] & 0xFF | (b[1] & 0xFF) << 8 | (b[2] & 0xFF) << 16 | (b[3] & 0xFF) << 24;\n\t}", "title": "" }, { "docid": "51bcecc88c082cfeb990781a86e1813a", "score": "0.76189613", "text": "private int bytesToInt(byte[] value) {\n int v0 = ((int)value[0]) << 24 & 0xFF000000;\n int v1 = ((int)value[1]) << 16 & 0x00FF0000;\n int v2 = ((int)value[2]) << 8 & 0x0000FF00;\n int v3 = ((int)value[3]) << 0 & 0x000000FF;\n return v0 | v1 | v2 | v3;\n }", "title": "" }, { "docid": "b6c6af8c0671f0349dd00162ff21dfa6", "score": "0.76067185", "text": "public static int byteArrayToInt(byte[] b) {\r\n return b[0] & 0xFF |\r\n (b[1] & 0xFF) << 8 |\r\n (b[2] & 0xFF) << 16 |\r\n (b[3] & 0xFF) << 24;\r\n }", "title": "" }, { "docid": "34f5f21542e2de2973e6917b6b83ac16", "score": "0.76035786", "text": "public static int bytesToInt(byte[] bytes) {\n int value = ((int) bytes[0] & 0xFF) << 24;\n value += ((int) bytes[1] & 0xFF) << 16;\n value += ((int) bytes[2] & 0xFF) << 8;\n value += (int) bytes[3] & 0xFF;\n return value;\n }", "title": "" }, { "docid": "85412936895ac32a5a9885bbcc66df08", "score": "0.7570614", "text": "int bytesToIntBE(byte[] bytes);", "title": "" }, { "docid": "2cd0275e2c37d2902ec2f5d6f1f2e0f3", "score": "0.75676566", "text": "public static int toInt(byte[] bytes) {\n\t\treturn ((bytes[0] & 0xff) << 24) |\n\t\t \t\t((bytes[1] & 0xff) << 16) |\n\t\t \t\t((bytes[2] & 0xff) << 8) |\n\t\t \t\t((bytes[3] & 0xff) << 0);\n\t}", "title": "" }, { "docid": "b91cf85c197fc31b55442f31dd2d2fe3", "score": "0.75330544", "text": "int bytesToIntBE(byte[] bytes, int offset);", "title": "" }, { "docid": "5587c190a781f22f343443d858b939f8", "score": "0.75084406", "text": "public int fromByteArray(byte[] bytes) {\n ByteBuffer bb = ByteBuffer.wrap(bytes);\n bb.order(ByteOrder.LITTLE_ENDIAN);\n\n // read your integers using ByteBuffer's getInt().\n // four bytes converted into an integer!\n return bb.getInt();\n }", "title": "" }, { "docid": "48dfae66c1f92baf019903dcef17fc41", "score": "0.74973035", "text": "public static int bytesToInt(byte[] bytesData) {\n int number = 0;\n for (int i = 0; i < bytesData.length; i++) {\n number |= (bytesData[i] << (i * 8));\n }\n\n return number;\n }", "title": "" }, { "docid": "23aec2b6a48c53d00d0864ec96f35291", "score": "0.74909794", "text": "public static int intFromBytes(byte[] data, int offset) {\n //return data[offset] << 24 | data[offset + 1] << 16 | data[offset + 2] << 8 | data[offset + 3];\n int b1 = (data[offset] & 0xFF) << 24;\n int b2 = (data[offset + 1] & 0xFF) << 16;\n int b3 = (data[offset + 2] & 0xFF) << 8;\n int b4 = (data[offset + 3] & 0xFF);\n return b1 | b2 | b3 | b4;\n }", "title": "" }, { "docid": "2513b007664aa17e2f409860dc65b270", "score": "0.74649245", "text": "public static int bytesToInt(byte []bytes) {\n if ( bytes.length == 1 ) {\n return (int)bytes[0];\n }\n if ( bytes.length == SHORT_BYTES ) {\n return int2(bytes, 0);\n }\n if ( bytes.length == LONG_BYTES ) {\n return int4(bytes, 0);\n } else {\n throw new IllegalArgumentException(\"Argument bytes is empty\");\n }\n }", "title": "" }, { "docid": "2275a31ca1b1ff39828c3e23ddcb087d", "score": "0.7462478", "text": "public static Integer byteArraytoInt(byte[] b) \n\t{\n\t\tint value = 0;\n\t\tfor (int i = 0; i < b.length; i++) \n {\n value += Math.pow(256, b.length - i - 1) * (b[i]);\n }\n return value;\n }", "title": "" }, { "docid": "006b87782b050a5e37bf0d8711981d61", "score": "0.7458223", "text": "public static int byteArray2Int(byte[] b, int offset) {\n int value = 0;\n for (int i = 0; i < 4; i++) {\n int shift = (4 - 1 - i) * 8;\n value += (b[i + offset] & 0x000000FF) << shift;\n }\n return value;\n }", "title": "" }, { "docid": "8f75407a3fcca723a76ec27f60e5047e", "score": "0.74017143", "text": "public static int toInt(byte[] header) {\n return (header[0] << 8) & 0x0000ff00 | (header[1] << 0) & 0x000000ff;\n }", "title": "" }, { "docid": "f300d3311ba69245851df2440b4ef588", "score": "0.7392658", "text": "public static int bytesToInt( byte[] b ){\r\n \r\n\t\tint ret = 0;\r\n\t\t\r\n\t\tfor (int i = 0, j = 24; i < 4; i++, j -= 8) {\r\n\t\t\tif (b.length >= i+1) { //should work also if length is smaller than 4\r\n ret += ((int)(b[i] & 0xFF) << j);\r\n }\r\n }\r\n\t\t\t\r\n return ret;\r\n }", "title": "" }, { "docid": "63bdcc74fd644d117d60cfee6d758bf8", "score": "0.7349347", "text": "public static int byteArrayToInt(byte[] b, int offset)\n {\n int value = 0;\n for(int i = 3; i >= 0; i--)\n {\n int shift = i * 8;\n value += (b[i + offset] & 0x000000FF) << shift;\n }\n return value;\n }", "title": "" }, { "docid": "4ef6042d9803f5b1ae4482e911eabf96", "score": "0.7339505", "text": "static int bytes2int(byte[] bytes, int offset, int numberOfBytes) {\n int result = 0;\n\n for (int i = 0; i < numberOfBytes; i++) {\n result |= (bytes[offset + i] & 0xff) << i * 8;\n }\n\n return result;\n }", "title": "" }, { "docid": "a651f50dedfdf31b5d8f191018246205", "score": "0.7299876", "text": "private int bytesToInt(byte[] bytes, int wordSizeBytes) {\n int val = 0;\n for (int i=wordSizeBytes-1; i>=0; i--) {\n val <<= 8;\n val |= (int)bytes[i] & 0xFF;\n }\n return val;\n }", "title": "" }, { "docid": "f1371480a75af3ad1f4ddc26603e6c84", "score": "0.72782135", "text": "public static int convertBytesToInt(byte[] bytes, int offset) {\n\t\treturn (BITWISE_BYTE_TO_INT & bytes[offset + 3])\n\t\t\t\t| ((BITWISE_BYTE_TO_INT & bytes[offset + 2]) << 8)\n\t\t\t\t| ((BITWISE_BYTE_TO_INT & bytes[offset + 1]) << 16)\n\t\t\t\t| ((BITWISE_BYTE_TO_INT & bytes[offset]) << 24);\n\t}", "title": "" }, { "docid": "c0063ef7726b1cc4ec14e9d8b0222858", "score": "0.7277756", "text": "public static int byteArrToInt13(byte[] arr) {\n int i = arr[1] & 0x1F;\n i = i << 8;\n if (arr[0] < 0)\n i |= 256 + arr[0];\n else\n i |= arr[0];\n return i;\n }", "title": "" }, { "docid": "d54f99b4db3e0fca5742b29884ac9000", "score": "0.72565264", "text": "int bytesToIntLE(byte[] bytes);", "title": "" }, { "docid": "3497cebfd51e66fcfe1db31b9bb28228", "score": "0.7236261", "text": "private int[] convertByteToInt (byte[] pixels) {\r\n\t\tint N = pixels.length;\r\n\t\tint[] newPixels = new int[N];\r\n\t\t// Iterate in vector to get integers values\r\n\t\tfor (int index = 0; index < N; index++) {\r\n\t\t\tint temp = 0xff & pixels[index];\r\n\t\t\tnewPixels[index] = temp;\r\n\t\t}\r\n\t\treturn newPixels;\r\n\t}", "title": "" }, { "docid": "79c6b6b1a028c6c2a47b510d47d60335", "score": "0.7086051", "text": "int bytesToIntLE(byte[] bytes, int offset);", "title": "" }, { "docid": "684ab3df917e80c2ddfae3fd2d858010", "score": "0.70544666", "text": "public static int toInt(byte[] data, int firstByteIndex, int lastByteIndex)\n { \n if(firstByteIndex > lastByteIndex || lastByteIndex >= data.length)\n return -1;\n \n lastByteIndex++;\n \n byte[] bytes = Arrays.copyOfRange(data, firstByteIndex, lastByteIndex); \n \n if(bytes.length == 1)\n return bytes[0] & 0xff;\n if(bytes.length == 2)\n return EndianConverter.swapToShort(bytes);\n else\n return EndianConverter.swapToInt(bytes);\n }", "title": "" }, { "docid": "743b34b48a55bf045079b6bd059536f8", "score": "0.70413196", "text": "public static int bytesToint(byte[] in, int inOff) {\n return ((in[inOff + 3] << 24) & 0xff000000) + ((in[inOff + 2] << 16) & 0xff0000)\n + ((in[inOff + 1] << 8) & 0xff00) + (in[inOff] & 0xff);\n }", "title": "" }, { "docid": "6c2973be0ea610c88caa038e7f33c725", "score": "0.7031878", "text": "public static ArrayList<Integer> ConvertBytesToInts(byte[] data){\n ArrayList<Integer> to_return = new ArrayList<>();\n for(int i = 0; i < HEIGHTDATA_OFFSET; i += 4){\n int val = 0;\n val |= data[i] & 0xFF;\n val = val << 8;\n val |= data[i+1] & 0xFF;\n val = val << 8;\n val |= data[i+2] & 0xFF;\n val = val << 8;\n val |= data[i+3] & 0xFF;\n to_return.add(val);\n }\n return to_return;\n }", "title": "" }, { "docid": "7d158932231796e38c365fa94245bc98", "score": "0.7011558", "text": "private int read32BitInteger(int[] byteArray) throws IOException {\n int oneChar = 0;\n for (int i = 0; i < byteArray.length; i++) {\n\n // Read one byte\n oneChar = bInput.read();\n\n // If byte is -1 (0xFFFFFFFF) break the loop\n // TODO: This needs better implementation!\n if (oneChar == -1) {\n break;\n }\n\n // Take one byte to check that the reading was successful\n byteArray[i] = oneChar;\n }\n if (oneChar == -1) {\n return -1;\n }\n int integer = 0;\n\n // Combine the bytes into a single 32 bit integer\n for (int i = 0; i < byteArray.length - 1; i++) {\n integer += byteArray[i] << 24 - (i * 8);\n }\n\n // Add the last byte into the result integer\n integer += byteArray[byteArray.length - 1];\n return integer;\n }", "title": "" }, { "docid": "5f945b5a06d10f06c4690b1b864a6d47", "score": "0.69801545", "text": "public static int byte2int(byte b)\n {\n return (b + 0x100) % 0x100;\n }", "title": "" }, { "docid": "47c459413171e4fb1c2cdd942b48568e", "score": "0.6922252", "text": "public static int toSignedInt(byte[] b){\n if((b.length < 1) || (b.length>4)){\n throw new IllegalArgumentException(\"Array of size \"+b.length+\" cannot be converted to int.\");\n }\n int bLength = b.length*8;\n int result = 0;\n for(int i=0; i<b.length; i++){\n result = ( (0xFF & b[i]) << ((b.length-i-1)*8) ) | result;\n }\n if(isSet(b, bLength-1)){\n result = result | 0xFFFFFFFF << bLength;\n }\n return result;\n }", "title": "" }, { "docid": "a1117b19359770f29982c64437825bbd", "score": "0.6881479", "text": "public static int byteToInt(byte b) {\n return (int) b & 0xFF;\n }", "title": "" }, { "docid": "bbc21c845f98d87267ac6050fc019f7f", "score": "0.6830666", "text": "public final static int byteArrayToInt(byte[] buf, int nOfs)\n\t{\n\t\treturn (buf[nOfs] << 24) | ((buf[nOfs + 1] & 0x0ff) << 16) | ((buf[nOfs + 2] & 0x0ff) << 8) | (buf[nOfs + 3] & 0x0ff);\n\t}", "title": "" }, { "docid": "d09b9644bb27190043f16571076502ad", "score": "0.67322105", "text": "public static int[] convertBytesToInts(byte[] bytes) {\n\t\tif (bytes.length % 4 != 0) {\n\t\t\tthrow new IllegalArgumentException(\"Number of input bytes must be a multiple of 4.\");\n\t\t}\n\t\tint[] ints = new int[bytes.length / 4];\n\t\tfor (int i = 0; i < ints.length; i++) {\n\t\t\tints[i] = convertBytesToInt(bytes, i * 4);\n\t\t}\n\t\treturn ints;\n\t}", "title": "" }, { "docid": "581a3b1b4f7fc87b772a9baf3c286318", "score": "0.6701815", "text": "private static final int decodeLEInt(byte[] paramArrayOfByte, int paramInt)\r\n/* 181: */ {\r\n/* 182:234 */ return paramArrayOfByte[(paramInt + 0)] & 0xFF | (paramArrayOfByte[(paramInt + 1)] & 0xFF) << 8 | (paramArrayOfByte[(paramInt + 2)] & 0xFF) << 16 | (paramArrayOfByte[(paramInt + 3)] & 0xFF) << 24;\r\n/* 183: */ }", "title": "" }, { "docid": "3b898c7d70ad19cef3af16b378a2c088", "score": "0.66702646", "text": "public static int convertAddress(byte[] address) {\n int result = 0;\n\n if (address != null) {\n for (int index = 0; index < address.length; index++) {\n result += address[index] << (index * 8);\n }\n }\n return result;\n }", "title": "" }, { "docid": "30fb2f4316b163c9f35af928573ed796", "score": "0.6661316", "text": "private static int networkByteOrderToInt(byte[] paramArrayOfbyte, int paramInt1, int paramInt2) {\n/* 146 */ if (paramInt2 > 4) {\n/* 147 */ throw new IllegalArgumentException(\"Cannot handle more than 4 bytes\");\n/* */ }\n/* */ \n/* */ \n/* 151 */ int i = 0;\n/* */ \n/* 153 */ for (byte b = 0; b < paramInt2; b++) {\n/* 154 */ i <<= 8;\n/* 155 */ i |= paramArrayOfbyte[paramInt1 + b] & 0xFF;\n/* */ } \n/* 157 */ return i;\n/* */ }", "title": "" }, { "docid": "2ba31946598e883f8d72a154084e4e75", "score": "0.66465425", "text": "protected int toInt(OEData data, int i) {\n\t\treturn ((data.get(i) & 0xff) << 24) | ((data.get(i + 1) & 0xff) << 16) | ((data.get(i + 2) & 0xff) << 8) | (data.get(i + 3) & 0xff);\n\t}", "title": "" }, { "docid": "00ec8e1b283275a305d31ccb189ded94", "score": "0.6555231", "text": "public static final int getInt(byte[] bArray, short bOff)\r\n throws NullPointerException, ArrayIndexOutOfBoundsException {\r\n return JCint.makeInt(bArray[bOff], bArray[(short)(bOff + 1)],\r\n bArray[(short)(bOff + 2)], bArray[(short)(bOff + 3)]);\r\n }", "title": "" }, { "docid": "447e37db6a2fe1b1892e0cd904d7d80d", "score": "0.654157", "text": "public static int readInt(byte[] array, int offset, boolean littleEndian)\r\n {\r\n if (littleEndian)\r\n return ((array[offset + 0] & 0xFF) << 0) + ((array[offset + 1] & 0xFF) << 8)\r\n + ((array[offset + 2] & 0xFF) << 16) + ((array[offset + 3] & 0xFF) << 24);\r\n\r\n return ((array[offset + 0] & 0xFF) << 24) + ((array[offset + 1] & 0xFF) << 16)\r\n + ((array[offset + 2] & 0xFF) << 8) + ((array[offset + 3] & 0xFF) << 0);\r\n }", "title": "" }, { "docid": "908de8ae87d36450826a20b1d2c96ef5", "score": "0.64219064", "text": "long bytesToLongBE(byte[] bytes);", "title": "" }, { "docid": "773736c35c2800496181ec8e42355135", "score": "0.6403606", "text": "public static int[] byteArrayToIntArray(byte[] in, boolean little)\r\n {\r\n return byteArrayToIntArray(in, 0, null, 0, -1, little);\r\n }", "title": "" }, { "docid": "cf474c322c83c4006beffa246fd0c624", "score": "0.6398249", "text": "public static int readInt(byte[] data, int offset, int bytes, boolean isLittleEndian)\n {\n int theInt;\n boolean sign;\n \n theInt=readUnsignedInt(data, offset, bytes, isLittleEndian);\n \n sign=(theInt & (1<<(8*bytes-1)))>0;\n \n if (sign)\n {\n theInt |= (((int)-1)<<(8*bytes));\n }\n \n return theInt;\n }", "title": "" }, { "docid": "c96f35a522306280493d1103dc74fcf2", "score": "0.634593", "text": "public static int unsignedByteToInt(byte b) {\r\n return (int) b & 0xFF;\r\n }", "title": "" }, { "docid": "c6bb833ebde5748b09ea34e96d358e2d", "score": "0.6321471", "text": "public VarInt(byte[] buf, int offset) {\n int first = 0xFF & buf[offset];\n long val;\n if (first < 253) {\n // 8 bits.\n val = first;\n originallyEncodedSize = 1;\n } else if (first == 253) {\n // 16 bits.\n val = (0xFF & buf[offset + 1]) | ((0xFF & buf[offset + 2]) << 8);\n originallyEncodedSize = 3;\n } else if (first == 254) {\n // 32 bits.\n val = Utils.readUint32(buf, offset + 1);\n originallyEncodedSize = 5;\n } else {\n // 64 bits.\n val = Utils.readUint32(buf, offset + 1) | (Utils.readUint32(buf, offset + 5) << 32);\n originallyEncodedSize = 9;\n }\n this.value = val;\n }", "title": "" }, { "docid": "3a75fe30208026221fa88e777925a7b8", "score": "0.63026553", "text": "public static int getId(byte[] msg){\n return ByteBuffer.wrap(msg).getInt(16);\n }", "title": "" }, { "docid": "e750b4508ffe0048f078af35ad1e5745", "score": "0.62954533", "text": "public static int getInt(ByteBuffer buffer){\n return buffer.getInt();\n }", "title": "" }, { "docid": "385934dbdc936fb7800dd0d1bf259acc", "score": "0.6287779", "text": "public static long int8(byte[] bytes, int idx) {\n return\n ((long) (bytes[idx + 0] & 255) << 56)\n + ((long) (bytes[idx + 1] & 255) << 48)\n + ((long) (bytes[idx + 2] & 255) << 40)\n + ((long) (bytes[idx + 3] & 255) << 32)\n + ((long) (bytes[idx + 4] & 255) << 24)\n + ((long) (bytes[idx + 5] & 255) << 16)\n + ((long) (bytes[idx + 6] & 255) << 8)\n + (bytes[idx + 7] & 255);\n }", "title": "" }, { "docid": "442ae57fac9d3e37ead119459f107e84", "score": "0.6284248", "text": "public static int[] byteArrayToIntArray(byte[] in, int[] out, boolean little)\r\n {\r\n return byteArrayToIntArray(in, 0, out, 0, -1, little);\r\n }", "title": "" }, { "docid": "0ea0aea42e148aadce4883278267b99a", "score": "0.6278435", "text": "public static int[] Ints(byte[] data) throws DecodeException {\r\n\t\tif(data.length%4!=0) throw new DecodeException(integer.INT, true);\r\n\t\tByteBuffer buffer=ByteBuffer.wrap(data);\r\n\t\tint[] returnData=new int[data.length/4];\r\n\t\tfor(int i=0;i<returnData.length;i++) {\r\n\t\t\tint offset=i*4;\r\n\t\t\treturnData[i]=buffer.getInt(offset);\r\n\t\t}\r\n\t\treturn returnData;\r\n\t}", "title": "" }, { "docid": "58979f28ee7b5efbe69b9ed3b03655c8", "score": "0.6247964", "text": "private static int convertByte(byte raw) {\n if (raw < 0) return 256 + raw;\n else return raw;\n }", "title": "" }, { "docid": "8e0934c190a03fdcfa32bf2ee6f1cb48", "score": "0.62021905", "text": "public static int ipToInteger(String ip) {\n // Split each \"byte\"\n String[] splitted = ip.split(\"\\\\.\");\n\n // Must be 4 bytes (Integer.BYTES)\n if (splitted.length != Integer.BYTES)\n return -1;\n\n // Declare array of digits\n int[] parts = new int[Integer.BYTES];\n\n // Populate array\n for (int i = 0; i < parts.length; i++)\n parts[i] = Integer.parseInt(splitted[i]);\n\n // Initialize result\n int result = 0;\n\n // Process parts and merge into result\n for (int i = 0; i < parts.length; i++)\n // parts.length - 1 (3)\n result |= parts[3 - i] << i * Byte.SIZE;\n\n return result;\n }", "title": "" }, { "docid": "6b96bf1afbe6822999cf617cdaf78b08", "score": "0.6198571", "text": "@Test\n public void byteToInt() {\n Byte[] breaks = { 2, 4, 6, 8 };\n Integer[] values = { -50, -10, 0, 10, 50 };\n RenderedImage srcImg = createByteTestImage((byte)0);\n assertLookup(breaks, values, srcImg, ImageDataType.INT);\n }", "title": "" }, { "docid": "792f98761eb30ff3420b036d0d239203", "score": "0.6197026", "text": "long bytesToLongBE(byte[] bytes, int offset);", "title": "" }, { "docid": "7a104e803e835e9d63eddb9905f43ac8", "score": "0.618632", "text": "public static int readUnsignedInt(byte[] data, int offset, int bytes, boolean isLittleEndian)\n {\n int i;\n int theInt;\n \n theInt=0;\n if (isLittleEndian)\n {\n i=0;\n while (i<bytes)\n {\n theInt|=((int)data[i+offset]&0xFF)<<(i*8);\n i++;\n }\n }\n else\n {\n i=0;\n while (i<bytes)\n {\n theInt|=((int)data[i+offset]&0xFF)<<((bytes-i-1)*8);\n i++;\n }\n \n }\n return theInt;\n }", "title": "" }, { "docid": "1159fe64c1bfff1ab9890fb707107354", "score": "0.6185413", "text": "protected int toInt2(OEData data, int i) {\n\t\treturn ((data.get(i + 1) & 0xff) << 8) | (data.get(i) & 0xff);\n\t}", "title": "" }, { "docid": "de35b2be481fb12e25b9b2b2e896864d", "score": "0.6174824", "text": "public static void intIntoBytes(byte[] data, int offset, int value) {\n //return data[offset] << 24 | data[offset + 1] << 16 | data[offset + 2] << 8 | data[offset + 3];\n data[offset] = (byte) ((value >> 24) & 0xFF);\n data[offset + 1] = (byte) ((value >> 16) & 0xFF);\n data[offset + 2] = (byte) ((value >> 8) & 0xFF);\n data[offset + 3] = (byte) ((value) & 0xFF);\n }", "title": "" }, { "docid": "628e8f4dc458469af6fc8a3a2cd998fd", "score": "0.61548454", "text": "public IeFourByteInteger(ByteBuf is) {\n\t\tvalue = ((is.readByte() & 0xff) | ((is.readByte() & 0xff) << 8) | ((is.readByte() & 0xff) << 16) | ((is.readByte() & 0xff) << 24));\n\t}", "title": "" }, { "docid": "aca495642be9f039363f93116625a0fc", "score": "0.61236817", "text": "public int getBinaryInt(int offset, int len) {\r\n validate(offset, len = normalizeLength(len));\r\n if (len <= 0) {\r\n return 0;\r\n }\r\n int fsiz = 4;\r\n for (int i = fsiz; i < 8; ++i) {\r\n byteLong[i] = 0;//clear temporary\r\n }\r\n byteBuffer.position(offset);\r\n byteBuffer.get(byteLong, fsiz, len);\r\n for (int i = 0; i < fsiz; ++i) {\r\n byteLong[i] = ((byteLong[fsiz] < 0) ? (byte) -1 : (byte) 0);\r\n }\r\n return byteLongBuffer.getInt(fsiz);\r\n }", "title": "" }, { "docid": "ec4561d862e7e55ccbd5f6a3fa433612", "score": "0.61177504", "text": "@Override\n public final int readInt() throws IOException {\n readFully(buffer, 0, 4);\n return (buffer[3]) << 24\n | (buffer[2] & 0xff) << 16\n | (buffer[1] & 0xff) << 8\n | (buffer[0] & 0xff);\n }", "title": "" }, { "docid": "96c4d5551dfa2b5cbe4eca0df8db31a6", "score": "0.6113041", "text": "abstract int readInt(T buffer, int offset);", "title": "" }, { "docid": "c499dfd31b86f40cd681e945f4261f1b", "score": "0.6089132", "text": "public final int unpackInt() {\n int val = DataPacker.getInt(m_buffer, m_pos);\n m_pos += 4;\n return val;\n }", "title": "" }, { "docid": "cd608ae0f7a3aaaecbefe7b5b099c5a9", "score": "0.6088422", "text": "private int m5903b(byte[] bArr) {\n int i = (bArr[0] + 256) % 256;\n return bArr.length == 2 ? (i << 8) + ((bArr[1] + 256) % 256) : i;\n }", "title": "" }, { "docid": "c5d9d844c235ecbf9c9e73f78fcdf75d", "score": "0.60465986", "text": "public native int getInt(int offset);", "title": "" }, { "docid": "a11ca407ea318a7f06eabdefa0edbada", "score": "0.6036128", "text": "public final int getInt() {\n\t\tint result = get()&0xff;\n\t\tresult = (result<<8)+(get()&0xff);\n\t\tresult = (result<<8)+(get()&0xff);\n\t\tresult = (result<<8)+(get()&0xff);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "aab509df1044b9e961c9c30d25aab3bb", "score": "0.60206205", "text": "private int IntFromDecimalAscii(byte[] bytes)\n\t\t{\n\t\t int result = 0;\n\n\t\t // For each digit, add the digit's value times 10^n, where n is the\n\t\t // column number counting from right to left starting at 0.\n\t\t for(int i = 0; i < bytes.length; ++i)\n\t\t {\n\t\t // ASCII digits are in the range 48 <= n <= 57. This code only\n\t\t // makes sense if we are dealing exclusively with digits, so\n\t\t // throw if we encounter a non-digit character\n\t\t if(bytes[i] < 48 || bytes[i] > 57)\n\t\t {\n\t\t System.out.println(\"Non-digit character present: \" + bytes[i]);\n\t\t return -1;\n\t\t }\n\n\t\t // The bytes are in order from most to least significant, so\n\t\t // we need to reverse the index to get the right column number\n\t\t int exp = bytes.length - i - 1;\n\n\t\t // Digits in ASCII start with 0 at 48, and move sequentially\n\t\t // to 9 at 57, so we can simply subtract 48 from a valid digit\n\t\t // to get its numeric value\n\t\t int digitValue = bytes[i] - 48;\n\n\t\t // Finally, add the digit value times the column value to the\n\t\t // result accumulator\n\t\t result += digitValue * (int)Math.pow(10, exp);\n\t\t }\n\n\t\t return result;\n\t\t}", "title": "" }, { "docid": "ca4392fde3b0c747bac9ed99d4ed6211", "score": "0.60077", "text": "protected int toInt4(OEData data, int i) {\n\t\treturn (data.get(i) & 0xff) | ((data.get(i + 1) & 0xff) << 8) | ((data.get(i + 2) & 0xff) << 16) | ((data.get(i + 3) & 0xff) << 24);\n\t}", "title": "" }, { "docid": "6ee6e941f297b6b4e8a88f8db9f13066", "score": "0.5995548", "text": "public static int int4(byte[] bytes, int idx) {\n return\n ((bytes[idx] & 255) << 24)\n + ((bytes[idx + 1] & 255) << 16)\n + ((bytes[idx + 2] & 255) << 8)\n + ((bytes[idx + 3] & 255));\n }", "title": "" }, { "docid": "eced5e6c052e51a6fa312075614782d7", "score": "0.59940076", "text": "private int getInt(int n)\n {\n int res = 0;\n for(int i=0;i<n;i++)\n {\n res = (res << 8) + (int) (buffer.get() & 0xFF);\n }\n\n return res;\n }", "title": "" }, { "docid": "8d96b4e21fccdf007eeaf2cfb49742b1", "score": "0.59462905", "text": "private static int getInt24(ByteBuffer b) {\n byte[] tb = new byte[4];\n b.get(tb, 0, 3); // Grab 3 bytes of the input\n if(tb[2] < 0) {tb[3] = (byte)0xFF;}// Sign extend\n else {tb[3] = (byte)0x00;}\n ByteBuffer tmp = ByteBuffer.wrap(tb);\n tmp.order(ByteOrder.LITTLE_ENDIAN);\n return tmp.getInt();\n }", "title": "" }, { "docid": "3ceb2156653f592d90f912b7de9cc029", "score": "0.5941299", "text": "public static final int makeInt(byte b1, byte b2, byte b3, byte b4) {\r\n return (int)((b1 << 24) | ((b2 << 16) & 0xFF0000) | ((b3 << 8) & 0xFF00) |\r\n (b4 & 0xFF));\r\n }", "title": "" }, { "docid": "b11a25721a3794f2c8ca9fc25282f559", "score": "0.59361285", "text": "private int[] toInt(String[] coleccion) {\n int[] retorno = new int[coleccion.length];\n for (int i = 0; i < coleccion.length; i++) {\n retorno[i] = Integer.parseInt(coleccion[i]);\n }\n return retorno;\n }", "title": "" }, { "docid": "5e6a893c78109671bb49c9542dda2646", "score": "0.59187895", "text": "private int readFully(byte[] paramArrayOfbyte, int paramInt) throws IOException {\n/* 127 */ int i = 0;\n/* */ \n/* 129 */ while (paramInt > 0) {\n/* 130 */ int j = this.in.read(paramArrayOfbyte, i, paramInt);\n/* */ \n/* 132 */ if (j == -1) {\n/* 133 */ return !i ? -1 : i;\n/* */ }\n/* 135 */ i += j;\n/* 136 */ paramInt -= j;\n/* */ } \n/* 138 */ return i;\n/* */ }", "title": "" }, { "docid": "210f6d5ae9c5c8d56749dc6dc61e62ef", "score": "0.5896605", "text": "private int[] littleEndianInt(String value) {\n\n\t\tString HexValue = Integer.toHexString(Integer.parseInt(value.trim()));\n\n\t\t// If value isn't 2 bytes, extend size by adding leading zeroes until length of 4\n\t\twhile (HexValue.length() < 4) {\n\t\t\tHexValue = \"0\" + HexValue;\n\t\t}\n\n\t\t// Declare most & least significant bits\n\t\tString msb = \"0x\" + HexValue.substring(2);\n\t\tString lsb = \"0x\" + HexValue.substring(0, 2);\n\n\t\tint[] ints = new int[2];\n\n\t\t// Get int values for hex\n\t\tints[0] = Integer.decode(msb);\n\t\tints[1] = Integer.decode(lsb);\n\n\t\treturn ints;\n\t}", "title": "" }, { "docid": "327c8742b7bb23f475e4f95ca1bf7e76", "score": "0.589004", "text": "long bytesToLongLE(byte[] bytes);", "title": "" }, { "docid": "2e6c66999dbdf7402bb34ab16d918d5e", "score": "0.58783484", "text": "private static byte getInt8(InputStream stream) throws IOException\n {\n return (byte)stream.read();\n }", "title": "" }, { "docid": "6b877e2179dd047211880b4b8c6a476d", "score": "0.5871237", "text": "protected int[] toInt8(OEData data, int i) {\n\t\tint[] ret = new int[2];\n\t\tret[0] = toInt4(data, i);\n\t\tret[1] = toInt4(data, i + 4);\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "b9edb92af42f1de61b4f69273d3d1008", "score": "0.58679706", "text": "public int readByteAsBits() {\n if (i >= input.length()) {\n return -1;\n }\n \n String readByte = input.substring(i, i+8);\n i += 8;\n \n return Integer.parseInt(readByte, 2);\n }", "title": "" }, { "docid": "8e5e83afbb2a2a41a16f84d959b841ba", "score": "0.5857853", "text": "@Override\r\n\tpublic int readSignedInt() throws IOException {\r\n\t\tint in = 0;\r\n\t\tint byteValue = 0;\r\n\t\tint remaining = this.buffer.limit() - this.buffer.position();\r\n\t\tif (remaining < 4) {\r\n\t\t\tfor (int i = 0; i < remaining; i++) {\r\n\t\t\t\t/*\r\n\t\t\t\t * LITTLE_ENDIAN - shift byte value then add to accumlative\r\n\t\t\t\t * value\r\n\t\t\t\t */\r\n\t\t\t\tif (byteOrder == ByteOrder.LITTLE_ENDIAN) {\r\n\t\t\t\t\tbyteValue = (((int) this.buffer.get() & 0xff));\r\n\t\t\t\t\tbyteValue <<= (8 * i);\r\n\t\t\t\t\tin += byteValue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t/* BIG_ENDIAN - shift accumulative value then add byte value */\r\n\t\t\t\t\tin <<= 8;\r\n\t\t\t\t\tin += (((int) this.buffer.get() & 0xff));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (getNextBuffer() == EOF) {\r\n\t\t\t\treturn EOF;\r\n\t\t\t}\r\n\t\t\tfor (int i = remaining; i < 4; i++) {\r\n\t\t\t\tif (byteOrder == ByteOrder.LITTLE_ENDIAN) {\r\n\t\t\t\t\tbyteValue = (((int) this.buffer.get() & 0xff));\r\n\t\t\t\t\tbyteValue <<= (8 * i);\r\n\t\t\t\t\tin += byteValue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tin <<= 8;\r\n\t\t\t\t\tin += (((int) this.buffer.get() & 0xff));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tin = this.buffer.getInt();\r\n\t\t}\r\n\t\tthis.inputablePosition += 4L;\r\n\r\n\t\treturn in;\r\n\t}", "title": "" }, { "docid": "308780978e9fb0ff1cd5adde0a4235f5", "score": "0.5857798", "text": "int getIntData();", "title": "" }, { "docid": "ab207c44a201c26c94f8f100d7ab9554", "score": "0.5849932", "text": "public int toInt() {\n\t\treturn value;\n\t}", "title": "" }, { "docid": "fcac2f87fb5f569ddebf46944a4a4347", "score": "0.5848986", "text": "public static byte[] intToBytes(byte[] array, int value, int offset) {\r\n\r\n array[offset] = (byte) (value);\r\n array[offset + 1] = (byte) (value >> 8);\r\n array[offset + 2] = (byte) (value >> 16);\r\n array[offset + 3] = (byte) (value >> 24);\r\n\r\n return array;\r\n }", "title": "" }, { "docid": "919bd40818effa60362a11283368afef", "score": "0.58471376", "text": "protected int toInt3(OEData data, int i) {\n\t\treturn ((data.get(i + 2) & 0xff) << 16) | ((data.get(i + 1) & 0xff) << 8) | (data.get(i) & 0xff);\n\t}", "title": "" }, { "docid": "66feabb3487d4c1a50c92067fd56a75e", "score": "0.58262724", "text": "protected static int get7BitsInt(byte[] data, int offset) {\n int b0 = data[offset + 0] & 0x7F;\n int b1 = data[offset + 1] & 0x7F;\n int b2 = data[offset + 2] & 0x7F;\n int b3 = data[offset + 3] & 0x7F;\n return (b0 << 21) + (b1 << 14) + (b2 << 7) + (b3);\n }", "title": "" }, { "docid": "6860d67fb329969d895afb1803d269f5", "score": "0.5814994", "text": "public static long bytesToLong( byte[] b ){\r\n\t\r\n\t\tlong ret = 0;\r\n\t\t\r\n\t\tfor (int i = 0, j = 56; i < 8; i++, j -= 8)\r\n\t\t\tret += ((long)(b[i] & 0xFF) << j);\r\n\r\n return ret;\r\n }", "title": "" }, { "docid": "877eaa45d9b0b21173aa86b60240bcaf", "score": "0.58143675", "text": "private static void intToNetworkByteOrder(int paramInt1, byte[] paramArrayOfbyte, int paramInt2, int paramInt3) {\n/* 166 */ if (paramInt3 > 4) {\n/* 167 */ throw new IllegalArgumentException(\"Cannot handle more than 4 bytes\");\n/* */ }\n/* */ \n/* */ \n/* 171 */ for (int i = paramInt3 - 1; i >= 0; i--) {\n/* 172 */ paramArrayOfbyte[paramInt2 + i] = (byte)(paramInt1 & 0xFF);\n/* 173 */ paramInt1 >>>= 8;\n/* */ } \n/* */ }", "title": "" }, { "docid": "0e19401413d1df35068173067afe228b", "score": "0.5799171", "text": "public int getInt() {\n _checkForRead(4);\n int v = _buf.getInt();\n return v;\n }", "title": "" }, { "docid": "3e8501b7d445caef99957448f937a23d", "score": "0.5781598", "text": "public static byte[] fromInt(Object input) {\n if (input == null) {\n return new byte[]{};\n }\n\n return BinaryHelper.writeInt(((Number)input).intValue());\n }", "title": "" }, { "docid": "21723d6a48a2ccd9491a3c94092b20dc", "score": "0.5768254", "text": "public static byte[] toPrimitive(Byte[] array) {\n/* 3230 */ if (array == null)\n/* 3231 */ return null; \n/* 3232 */ if (array.length == 0) {\n/* 3233 */ return EMPTY_BYTE_ARRAY;\n/* */ }\n/* 3235 */ byte[] result = new byte[array.length];\n/* 3236 */ for (int i = 0; i < array.length; i++) {\n/* 3237 */ result[i] = array[i].byteValue();\n/* */ }\n/* 3239 */ return result;\n/* */ }", "title": "" }, { "docid": "3819e817a1958f0b5eca102e14475222", "score": "0.5746693", "text": "public RubyInteger convertToInteger() {\n return convertToInteger(\"to_int\");\n }", "title": "" }, { "docid": "feb92354975578b1ac8598f394a9581b", "score": "0.5744451", "text": "public int getAmount(int[] offset) {\n\t\treturn bigEndianInt(num[offset[0]], num[offset[1]]);\n\t}", "title": "" }, { "docid": "eafbaab722038e980273eef5aca61f07", "score": "0.5739695", "text": "public int intVal() throws NumberFormatException{\r\n\t\t\t//TODO IMPLEMENT THIS\r\n\t\t\treturn Integer.parseInt(chars.substring(pos, pos + length));\r\n\t\t}", "title": "" }, { "docid": "768709312f2b45b66ea3de671022ab3d", "score": "0.57348794", "text": "public int readInt1() {\n return byteBuf.readUnsignedByte();\n }", "title": "" }, { "docid": "a39bba43fbc153450e5c292524a2f8d4", "score": "0.5729576", "text": "public int decryptInt(byte[] input, SecretKey key)\n {\n ByteBuffer buff = ByteBuffer.allocate(Integer.BYTES);\n buff.put(decrypt(input, key));\n buff.flip();\n return buff.getInt();\n }", "title": "" } ]
3ab2fb6bbc758aac39db2530c879e9da
Returns the card the player desires to play.
[ { "docid": "20c6346901fefaebb34cf017c5b32a86", "score": "0.6128629", "text": "Card cardToPlay(TurnState state, CardSet hand);", "title": "" } ]
[ { "docid": "e063e71f58a26e221de17d1d1e477607", "score": "0.7609213", "text": "private String playCard() {\n\t\t// Get Card.\n\t\tString card = cardList.get(suite).get(cardNumber).toString();\n\t\t\n\t\t// Remove card.\n\t\t cardList.get(suite).remove(cardNumber);\n\t\t\n\t\treturn card;\n\t}", "title": "" }, { "docid": "d7d28468c8bd7b55d5a4a6263d096395", "score": "0.75556517", "text": "public String getCard() {\n\t\t// Get Suite.\n\t\tsuite = RANDOM.nextInt(4);\n\t\t\n\t\t// Get Card Number.\n\t\tcardNumber = RANDOM.nextInt(cardList.get(suite).size());\n\n\t\t// Get card.\n\t\tString card = playCard();\n\t\t\n\t\treturn card;\n\t}", "title": "" }, { "docid": "dd0af024f710e17e2c171ba4e8e31fd7", "score": "0.73722684", "text": "public Card playCard()\n {\n if(numCards > 0)\n {\n numCards--;\n System.out.println(myCards[numCards]);\n return myCards[numCards];\n }\n else\n {\n Card badCard = new Card('0', Card.Suit.spades);\n return badCard;\n }\n }", "title": "" }, { "docid": "5510886151c30f2e7408ab843cec88d1", "score": "0.7171878", "text": "public Card getPlayerCard(int playerNo) {\n if (playedCards[playerNo] == null) {\n System.out.println(\"Card not played\");\n }\n return playedCards[playerNo];\n }", "title": "" }, { "docid": "6e350f3f0b3f77295f4f7b91803d9eb8", "score": "0.71178204", "text": "public PlayingCard getCard ()\n {\n while (!(deckCount <= SIZE))\n {\n System.out.println(\"Not enough cards. Reshuffling...\");\n shuffle();\n deckCount = 0;\n }\n PlayingCard temp = deck[deckCount];\n deckCount++;\n return temp;\n }", "title": "" }, { "docid": "934364208d8b9ab4ff3558ee5e38cfcc", "score": "0.7069023", "text": "Card getCard();", "title": "" }, { "docid": "9af16e080508327a7dd453931c9162b5", "score": "0.70261145", "text": "public CardGamePlayer getPlayer() {return player;}", "title": "" }, { "docid": "894db7ee689538e1ed9730c6a2ee67f4", "score": "0.6993056", "text": "public String getCard() {\n return card;\n }", "title": "" }, { "docid": "acaa0fd9424bcd959121e7fe926fa0c8", "score": "0.6958972", "text": "public String getCard(){\r\n String drawnCard = cards.get(0);\r\n cards.remove(0);\r\n cards.trimToSize();\r\n return drawnCard;\r\n }", "title": "" }, { "docid": "19c6f22c32a889e3d12956ae8ede23a2", "score": "0.6928367", "text": "@Override\r\n \tpublic String getCard() {\n \t\treturn card;\r\n \t}", "title": "" }, { "docid": "df3432ac1b17ea28033dc6ad5f9779a3", "score": "0.68884546", "text": "public Card getCard() {\n return card;\n }", "title": "" }, { "docid": "6c165e80c87b0fd785a69642ab7d8847", "score": "0.6855742", "text": "public Card ledCard() throws IllegalStateException {\n return ledPlay().getCard();\n }", "title": "" }, { "docid": "04926beb7e2e1b9972a44ce4f8af64d2", "score": "0.68102926", "text": "public Card dealCard()\r\n\t{\n\t\tif (emptyDeck() == false)\r\n\t\t{\r\n\t\t\tint notEmpty = getCardsDealt();\r\n\t\t\tsetCardsDealt(getCardsDealt() + 1);\r\n\t\t\treturn deck[notEmpty];\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6a1063b13e4bca0aa624a5135d5fa8d7", "score": "0.67868495", "text": "public Card Deal() {\n\t\tCard currentCard = this.myDeck[this.cardLocation]; //grab the next card to use\n\t\tthis.cardLocation++; //increment cardLocation variable for use for the next Deal()\n\t\treturn currentCard; //return card for play\n\t}", "title": "" }, { "docid": "784a7376e7688c9d60b61e90f70e9978", "score": "0.6779297", "text": "public CardDescriber getCard() {\n\t\treturn card;\n\t}", "title": "" }, { "docid": "e5756593f674815a6739847636afb828", "score": "0.6767348", "text": "public Card dealCard()\n {\n if (topCard > 0)\n {\n topCard--;\n Card tempCard = cards[topCard];\n return tempCard;\n }\n return new Card('-', Card.Suit.spades);\n }", "title": "" }, { "docid": "951f98b48fa5e2f945ac2a3bb763acba", "score": "0.6724245", "text": "public Node playCard() {\n\t\tif (this.firstCard == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t// stores previous firstCard and moves firstCard one node ahead\r\n\t\tNode tempCard = this.firstCard;\r\n\t\tthis.firstCard = this.firstCard.next;\r\n\t\t\r\n\t\t// if the first card is null, the last card is set to null\r\n\t\tif (this.firstCard == null)\r\n\t\t\tthis.lastCard = null;\r\n\t\treturn tempCard;\r\n\t}", "title": "" }, { "docid": "9152a653ad884fef86077d471ab22611", "score": "0.67196745", "text": "public Card playCard()\n {\n // what if there are no cards to play, for now return new card with error\n int length = myCards.length;\n if (length < 1)\n {\n return new Card('*', Card.Suit.spades);\n }\n\n int newLength = length - 1;\n Card playedCard = new Card(myCards[newLength].getValue(),\n myCards[newLength].getSuit());\n Card[] oldHand = myCards.clone();\n\n // remove the card from the array, recreate the array\n myCards = new Card[newLength];\n for (int i = 0; i < newLength; i++)\n {\n myCards[i] = new Card(oldHand[i].getValue(), oldHand[i].getSuit());\n }\n\n // decrement the hand count\n numCards--;\n\n return playedCard;\n }", "title": "" }, { "docid": "68694ca0c4ff0cda55364900bef85717", "score": "0.6698729", "text": "public PlayerCard getHandCard() {\n return handCard;\n }", "title": "" }, { "docid": "e6dde273a7da7816134fdea3fbf32164", "score": "0.6674204", "text": "public Card nextCard() {\n if (hasNext() == true) {\n Card returnCard = cardDeck[remainingCards-1];\n remainingCards--;\n return returnCard;\n }\n return null;\n }", "title": "" }, { "docid": "ea82ae2dc081ca2af1bcd125f13d52bb", "score": "0.66542673", "text": "public Card dealCard()\n {\n if (topCard == cards.length)\n {\n return null;\n }\n\n int temp = topCard;\n topCard += 1;\n return cards[temp];\n }", "title": "" }, { "docid": "27a2409d2eb952cc511ed357419cc6f3", "score": "0.66389686", "text": "public Card getCard() {\n String uuidString = getString(getColumnIndex(CardTable.Cols.UUID));\n String title = getString(getColumnIndex(CardTable.Cols.TITLE));\n int isTrue = getInt(getColumnIndex(CardTable.Cols.TRUE));\n int isFalse = getInt(getColumnIndex(CardTable.Cols.FALSE));\n\n Card card = new Card(UUID.fromString(uuidString));\n card.setQuestion(title);\n card.setYes(isTrue != 0);\n card.setNo(isFalse != 0);\n return card;\n }", "title": "" }, { "docid": "30c08c67c5edff85a91b1ca73d375825", "score": "0.66311705", "text": "public Deck getDeck();", "title": "" }, { "docid": "bb86bfb7a3e549f40abd08d00a41c1ae", "score": "0.6629603", "text": "public Card getCard( String cardName )\n { \n return findCard( cardName ) ; \n }", "title": "" }, { "docid": "a20eb999218482af90e07f0d96ad9edb", "score": "0.66228485", "text": "public Card drawCard() {\n Card card = null;\n if (getNumberOfCards() > 0) {\n card = cards.get(0);\n cards.remove(0);\n }\n\n return card;\n }", "title": "" }, { "docid": "d4a025b43f02f4c4d638a2a1bd5814ef", "score": "0.659663", "text": "public Cards dealCard(){\n Cards card = theShoe.get(theShoe.size() - 1);\n theShoe.remove(card);\n return card;\n }", "title": "" }, { "docid": "835902d6d0258e48b29efa1feed28865", "score": "0.65571743", "text": "public Card nextCard(){\n return deck.remove((int)(Math.random() * deck.size()));\n }", "title": "" }, { "docid": "dd91aadbff43a4fe9bf40c805c6eb6b0", "score": "0.65326864", "text": "public Card getCompCard()\n\t{\n\t\treturn compCard;\n\t}", "title": "" }, { "docid": "8de7c871c7e86082ecc3cc6687b337c8", "score": "0.65324575", "text": "public UNOCard drawCard() {\n return deck.deal();\n }", "title": "" }, { "docid": "aafec702c4c1a6ac0fdd6d83ab780b09", "score": "0.6523589", "text": "public Card getBlackCard()\n\t{\n\t\treturn getCard(blackCardId,CardType.BLACK);\n\t}", "title": "" }, { "docid": "4db1530d582bbf4c854a236faa327acf", "score": "0.6523113", "text": "public DevCard getDevCard(int row, int column) {\n if (!fullDeck[row-1][column-1].empty())\n return fullDeck[row - 1][column - 1].peek();\n else return null;\n }", "title": "" }, { "docid": "2cda0fb21823f877c3556c73f491845f", "score": "0.65074855", "text": "public Card deal(){\r\n\t\tCard card = deck.get(deck.size()-1);\r\n\t\tdeck.remove(deck.size()-1);\r\n\t\treturn card;\r\n\t}", "title": "" }, { "docid": "363431981f97f6d7a52965fbef39d567", "score": "0.64783454", "text": "private static Deck.Card randomCard(){\r\n int randomCard = (int)(Math.random() * (deck.length() - 2));\r\n Deck.Card card = deck.drawCard(randomCard);\r\n return card;\r\n }", "title": "" }, { "docid": "4127bb0ab16c83658a9ad020877919b2", "score": "0.6475671", "text": "public Card pick_a_card() {\n while (true) {\n int random_card = (int) (Math.random() * (52));\n int random_deck = (int) (Math.random() * (table.no_of_decks));\n int[] id = {random_deck,random_card};\n if (!table.used_cards.contains(id)){\n table.used_cards.add(id);\n return table.decks.get(random_deck).cards.get(random_card);\n }\n }\n }", "title": "" }, { "docid": "ac025d841d99b1f86293cc401401dece", "score": "0.64642876", "text": "public static CardHolder getCardHolder() {\n return cardHolder;\n }", "title": "" }, { "docid": "333632774a2b11a81faf5e096340d9b8", "score": "0.64642173", "text": "public Card drawCard() {\n if (deck.isEmpty()) {\n shuffle();\n }\n return deck.remove(0);\n }", "title": "" }, { "docid": "a50dd4a9458ebdb795436d4372400a40", "score": "0.6457358", "text": "public Card getCharacterCard(String name) {\n\t\tfor (int i = 0; i < 6; i++) {\n\t\t\tCard card = dealCards.get(i);\n\t\t\tif (card.getName().equalsIgnoreCase(name))\n\t\t\t\treturn card;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b8f64be7ce9d61eaee451e3dfd7260a6", "score": "0.6446891", "text": "public Card dealCard() {\n /**if(this.cards.size() == 0){\n return EmptyDeckException;\n }*/\n return this.cards.remove(this.cards.size() - 1);\n }", "title": "" }, { "docid": "58c5f5bf78c283322a20169a108fdf4d", "score": "0.6438767", "text": "public UnoCard drawCard (){\t\t\r\n\t\tif (deck.getHead() == null) {\r\n\t\t\t//if the deck is empty, the discard pile becomes the deck and the discard pile is set to empty\r\n\t\t\t//a card is then returned\r\n\t\t\tthis.deck = this.discard;\r\n\t\t\tthis.discard = new SinglyLinkedList<UnoCard>();\r\n\t\t\treturn deck.removeIndex(1).getData();\r\n\t\t} else {\r\n\t\t\treturn deck.removeIndex(1).getData();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "84fdce1937c7c2f4d595c378d587fca0", "score": "0.64386904", "text": "public Deck getDeck()\n\t{\n\t\treturn deck;\n\t}", "title": "" }, { "docid": "1a80ca2d41fe45d7c89f813291ae30d1", "score": "0.6424096", "text": "synchronized PlayingCard dealNext() {\n\t\tif (this != null && !this.isEmpty()) {\n\t\t\tPlayingCard curCard = this.get(0);\n\t\t\tthis.remove(0);\n\t\t\treturn curCard;\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "95935cb0e659b6b7949842b45efb8b78", "score": "0.64077", "text": "public Card getUserCard()\n\t{\n\t\treturn userCard;\n\t}", "title": "" }, { "docid": "4147d34e6ba28a77e8cd12b36c3447bc", "score": "0.6403847", "text": "public Card getCard(String command) {\n switch (command.toUpperCase()) {\n case \"A\": command = \"ACE\"; break;\n case \"J\": command = \"JACK\"; break;\n case \"Q\": command = \"QUEEN\"; break;\n case \"K\": command = \"KING\"; break;\n }\n \n // Go through the player's hand looking a card match\n for (int i = 0; i < cards.size(); i++) {\n if (command.equalsIgnoreCase(cards.get(i).name)) {\n return cards.get(i);\n }\n }\n \n // The card is not found in the hand\n return null;\n }", "title": "" }, { "docid": "7f0d9c75c523574233e861535d7c69ba", "score": "0.6398384", "text": "public java.lang.String getCardPresent() {\n return cardPresent;\n }", "title": "" }, { "docid": "1d0bd9b52ecac7afaf89046e5b3293ba", "score": "0.6387945", "text": "public Card DrawCard() {\n if (deck.isEmpty()) {\n return null;\n }\n hand[handNumber] = deck.get(0);\n deck.remove(0);\n return hand[handNumber++];\n }", "title": "" }, { "docid": "b89a206ac15f007e6b30cd0e6fbbd3c8", "score": "0.6372015", "text": "public List<Card> getCurrentPlay() {\r\n\t\treturn this.currentPlay;\r\n\t}", "title": "" }, { "docid": "7a8a49a298e92d4f37cc06f7e24ab735", "score": "0.6344684", "text": "public String getDisplayedCardId();", "title": "" }, { "docid": "f03d3e0b51d8c82c62917fb6ad4a1976", "score": "0.63208514", "text": "public Card giveOneCard(){\n if(deck.size() > 0){\n Card givingCard = deck.get(0);\n deck.remove(0);\n return givingCard;\n }\n return null; // never happens\n }", "title": "" }, { "docid": "b4cbaf348b3269d6ef91e479901369a4", "score": "0.6319849", "text": "public Card deal() {\r\n\t\t/* *** TO BE IMPLEMENTED IN ACTIVITY 2 *** */\r\n\t\tif (isEmpty()) {//if empty\r\n\t\t\treturn null;//return null\r\n\t\t}\r\n\t\tsize--;//-1 to size\r\n\t\tCard c = cards.get(size);//creates c variable equal to the size of the cards\r\n\t\treturn c;//returns said variable\r\n\t}", "title": "" }, { "docid": "ae74dae126150827e69e4e32c8e09d7d", "score": "0.6300056", "text": "public Card getCard(String cardName) { return allCards.get(cardName.toLowerCase()); }", "title": "" }, { "docid": "00a51b605defd987559b0fae855d8132", "score": "0.629003", "text": "public Card drawCard() {\r\n\t\t\tif(myDeck.size() == 0) {\r\n\t\t\t\tmyDeck = new Deck(discardPile);\r\n\t\t\t\tdiscardPile.clear();\r\n\t\t\t}\r\n\t\t\treturn myDeck.drawCard();\r\n\t\t}", "title": "" }, { "docid": "97e3d727c715787cf8bfa4e267393197", "score": "0.6284165", "text": "public DevelopmentCard getCard(int x){\n if (x < 12 && !decks.get(x).empty()) {\n return decks.get(x).peek();\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "75eed4c371c20457edf4e74e511e61d2", "score": "0.62815887", "text": "public String getCard() {\n \t\n \tString cardBorder = \"+============================+\\n\"; // interesting... %n is printed if you aren't using printf or String.format()\n \t\n \treturn cardBorder +\n \t\t String.format(\"| %-27s|%n\", getName()) +\n \t String.format(\"|%29s%n\", \"|\") +\n \t String.format(\"| Health: %-7d XP: %-6d |%n\", getMaxHealth(), getXp()) +\n \t String.format(\"| Power: %-7d Armor: %-3d |%n\", getPower(), getArmor()) +\n \t String.format(\"|%29s%n\", \"|\") +\n \t cardBorder;\n }", "title": "" }, { "docid": "6008d17fd400fe063558bab457812a7d", "score": "0.6250204", "text": "public BsbCard getCard(String selection) {\n for (BsbCard card : m.cards) {\n if (card.getName().equals(selection)) {\n return card;\n }\n }\n return null;\n }", "title": "" }, { "docid": "14e4c6a029a4db35de1c03e1c9f89e67", "score": "0.62495226", "text": "public boolean getCardHeld() {\r\n\t\treturn cardHeld;\r\n\t}", "title": "" }, { "docid": "54ee2063b6188d22737ab819b74341e7", "score": "0.6242792", "text": "@Nullable\n public Card dealOneCard() {\n if (cards.isEmpty()) {\n return null;\n }\n\n return cards.remove(0);\n }", "title": "" }, { "docid": "59af5fcbba19450d215fc0519a7c5ea3", "score": "0.6237307", "text": "public Object pickcard(){\n int index = (int) (Math.random() * deck.size());\n Object thing;\n thing = deck.get(index);\n deck.remove(index);\n return thing;\n }", "title": "" }, { "docid": "fd8100bfd5a1c01b89aa4fd90d7f8037", "score": "0.62261033", "text": "public Card deal(){\n return deck.remove(0);\n }", "title": "" }, { "docid": "51353d1c4dab3e12caa30d901c3d6a8c", "score": "0.6222733", "text": "private PlayingCard nextComputerCard()\n\t{\n\t\t\n\t\treturn playingStrategy.chooseCard(pileTotal, computer);\n\t\t\n\t}", "title": "" }, { "docid": "5b5beec18c71fbc70efcbd4fa5ae3590", "score": "0.6219442", "text": "public Card drawCard()\n\t{\n Card c = pile.remove(0);\n\t\treturn c;\n \t}", "title": "" }, { "docid": "4b2d546df603fdc07a8b742340f26929", "score": "0.6214256", "text": "public String getPlayer();", "title": "" }, { "docid": "7a2f336a6fe14ca2c3e7e6816a54632e", "score": "0.6197197", "text": "public int playEventCard(){\n Player currentPlayer = gameManager.getCurrentPlayer();\n currentPlayer.setActionsTaken(currentPlayer.getActionsTaken() - 2);\n return gameManager.discardPlayerCard(currentPlayer, this);\n }", "title": "" }, { "docid": "be073518540da3f17814478f058ff946", "score": "0.61901766", "text": "public Card getTopCard() {\n\t\tCard returnCard = this.cardDeck.get(0);\n\t\tthis.cardDeck.remove(0);\n\t\treturn returnCard;\n\t}", "title": "" }, { "docid": "3f7e96e7811e838c9477b95e43994707", "score": "0.6186751", "text": "public Card getCard(){\n return c;\n }", "title": "" }, { "docid": "148fa42271674a085ad9a32b1e9b92f8", "score": "0.6173081", "text": "public Card getWeaponCard(String name) {\n\t\tfor (int i = 6; i < 12; i++) {\n\t\t\tCard card = dealCards.get(i);\n\t\t\tif (card.getName().equalsIgnoreCase(name))\n\t\t\t\treturn card;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3627d0a23cd6a016bf68df896343d546", "score": "0.61719716", "text": "public void getCard(){\n\n //Print kortet \"Nine\"\n System.out.println(Card.Nine);\n }", "title": "" }, { "docid": "b11191e89dd9bba9ec1eb2d620a6d161", "score": "0.6171824", "text": "public java.lang.String getIdCard () {\n\t\treturn idCard;\n\t}", "title": "" }, { "docid": "6ef3d072ac4d732a825cf5f1b864ab94", "score": "0.61693287", "text": "public Card peek() {\r\n\t\treturn deck.get(deck.size() - 1);\r\n\t}", "title": "" }, { "docid": "6c84becf09bcc3ca8045af10c4ade81a", "score": "0.6166053", "text": "public String getCardName() {\n return cardName;\n }", "title": "" }, { "docid": "6c84becf09bcc3ca8045af10c4ade81a", "score": "0.6166053", "text": "public String getCardName() {\n return cardName;\n }", "title": "" }, { "docid": "a4385757c78174934602f412d4572ac2", "score": "0.61605877", "text": "public Card[] getDeck()\n\t{\n\t\treturn cards;\n\t}", "title": "" }, { "docid": "ae8c9866cf713d145fb982bd556be30b", "score": "0.6158265", "text": "public Card getCard(int index)\n\t{\n\t\treturn hand.get(index);\n\t}", "title": "" }, { "docid": "b6ade9f7bc327df73a2d7956725fc21e", "score": "0.6157721", "text": "public Card drawCard(){\n return removeCard(0);\n }", "title": "" }, { "docid": "15084eac9ce84d89d1a351eff4991578", "score": "0.61474794", "text": "public Card getNextCard()\n {\n if(deckPosition<52)\n {\n return cards[deckPosition++]; \n }\n else\n {\n System.out.println(\"\\nShuffling\\n\");\n this.shuffle();\n return cards[deckPosition++];\n }\n }", "title": "" }, { "docid": "0f1b5bca2a0ff1e34c93228495afea56", "score": "0.61351514", "text": "public Card deal() {\n\t\ttry {\n\t\t\treturn deck.pop();\n\t\t}catch (EmptyStackException e) {\n\t\t}catch (Exception e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3e3cf9a5b3d085324b2835b54f69743c", "score": "0.61188406", "text": "public ArrayList<Card> getDeck() {\r\n\t\treturn this.deck;\r\n\t}", "title": "" }, { "docid": "0542166cf6e6e51fc6c50f165d5b546e", "score": "0.6118246", "text": "public char getCard(){return this.card;}", "title": "" }, { "docid": "1faa2b8332002e57c26c120750febb39", "score": "0.6117649", "text": "public Card popCard()\r\n {\r\n Card card = cards.get( cards.size() - 1 );\r\n cards.remove( cards.size() -1 );\r\n \r\n return card;\r\n }", "title": "" }, { "docid": "f610af25ac606953cd06e4c5eca68a84", "score": "0.61145335", "text": "public String getPlayer() {\r\n\t\treturn String.valueOf(Playernum);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1b7fd379a1bc434e344fb19e037fa830", "score": "0.60977", "text": "public Card draw(){\n Card card = cards.get(0);\n cards.remove(0);\n return card;\n }", "title": "" }, { "docid": "aa282d95d03795c6dcfdb7159a05bbc4", "score": "0.6094048", "text": "public Card deal(){ // same functionality as the deal method in the Deck class\n int randomNum = (int)(Math.random()*m_ownedCards.size());\n Card randomCard = new Card(m_ownedCards.get(randomNum));\n m_ownedCards.remove(randomNum);\n return randomCard;\n }", "title": "" }, { "docid": "3cf8672ab47ec8df8a1a362011dec2a3", "score": "0.60891396", "text": "public Card getCard(int index) {\r\n\r\n if (index >= 0 && index < this.getNoOfCards()) {\r\n\r\n return this.myCards.getCardAt(index);\r\n\r\n } else {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "57a98c15092327ebb14b02dc4b3ffe35", "score": "0.60847014", "text": "public T dealNextCard() {\n\t\t\n\t\tif(setOfCards.numCards()==0) return null;\n\t\tT temp = this.setOfCards.removeCard(setOfCards.numCards()-1);\n\n\t\treturn temp;\n\t}", "title": "" }, { "docid": "deac877858989fa0aa72e65f189d2f83", "score": "0.6057373", "text": "public SerializedCard getSerializedCard() {\r\n\t\ttry {\r\n\t\t\treturn new SerializedCard(serializedCard);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "61a625dee2845041bfe2b49c2f65069d", "score": "0.60557413", "text": "public int getCardId() {\r\n return cardId;\r\n }", "title": "" }, { "docid": "e36473b54043e3e4febec152be25ea89", "score": "0.6055636", "text": "public Card getCardById(int id) {\r\n return this.cards.get(id);\r\n }", "title": "" }, { "docid": "ac6d0754e55bab670647311c0fd22364", "score": "0.6050098", "text": "public int getCardsDealt()\r\n\t{\n\t\treturn cardsDealt;\r\n\t}", "title": "" }, { "docid": "47ff82a5da8bc8f30f5d1317b8763b90", "score": "0.6049977", "text": "private Image getCardImage(Card card) {\n return getImage(\"playing-cards/\" + card + \".png\");\n }", "title": "" }, { "docid": "fbc22d7be20ed41c20a730997d481fa9", "score": "0.6046948", "text": "public String[] getPlayerCards()\r\n {\r\n return playerCards;\r\n }", "title": "" }, { "docid": "973733089ef44e8611e145f7744227ae", "score": "0.60408795", "text": "public LeaderCard drawCard(){\n LeaderCard temp = leaderCards.get(0);\n leaderCards.remove(0);\n return temp;\n }", "title": "" }, { "docid": "eea222dd790ae79c556b424113e12df0", "score": "0.6038207", "text": "public Card getRoomCard(String name) {\n\t\tfor (int i = 12; i < dealCards.size(); i++) {\n\t\t\tCard card = dealCards.get(i);\n\t\t\tif (card.getName().equalsIgnoreCase(name))\n\t\t\t\treturn card;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1cdf0c06cd8d5a7faf3fd9dccbe36c82", "score": "0.60372543", "text": "public String getGraphicsCard() {\n\t\treturn graphicsCard;\n\t}", "title": "" }, { "docid": "3eb54fbd2465e62fcd7eda5bc091c0c2", "score": "0.6035024", "text": "public char getPlayer() {\n\t\treturn playerChar;\n\n\t}", "title": "" }, { "docid": "50673cb597f924e4555204ce2b04e754", "score": "0.6034335", "text": "public JButton getplayCards()\n\t{\n\t\treturn playCards;\n\t}", "title": "" }, { "docid": "d8313c9087cb44c19bb86c4a10da3490", "score": "0.602921", "text": "public Card pickRandomCard() {\r\n\r\n Element rdmCard = new Element(this.pickCardAt(this.randomGenerator.nextInt(getNoOfCards())));\r\n\r\n return rdmCard.getCard();\r\n }", "title": "" }, { "docid": "387967e52b57686f9cbf7f7904950c08", "score": "0.6014132", "text": "Deck getDeck(String deckId);", "title": "" }, { "docid": "2c9427c6b605551e517135c39f3c5930", "score": "0.5996224", "text": "public String drewBlindCard() {\n return String.format(StringsFr.DREW_BLIND_CARD, player);\n }", "title": "" }, { "docid": "a5381d29ae7297d404cc6c6aa83a8bf0", "score": "0.5995846", "text": "public Card topCard() {\n\tif (_deck.size() > 0)\n\t return _deck.get( _currentPos );\n\telse return null;\n }", "title": "" }, { "docid": "ef98464ada8241970b65b695621d02bf", "score": "0.599391", "text": "public Card drawCard() {\n return shoe.remove(0);\n }", "title": "" }, { "docid": "724014cacfb6ecf5d8b30c8b58d91a2e", "score": "0.5987076", "text": "public ArrayList<ChanceCard> getChanceCardDeck() {\n return chanceCardDeck;\n }", "title": "" } ]
5c6d4151ed099d30dc89a997cee09e4a
/ 0>Red 1>Green 2>Blue 3>Yellow
[ { "docid": "4c84ccc55c4204a84a0574e87b13f449", "score": "0.0", "text": "public String WildCardEffect(ArrayList<Card>inHand)\n {\n String color= new String();\n int[] Colors= new int[4];\n for(int i=0;i<inHand.size();i++)\n {\n if(inHand.get(i).color.equals(\"Red\"))\n Colors[0]++;\n else if(inHand.get(i).color.equals(\"Green\"))\n Colors[1]++;\n else if(inHand.get(i).color.equals(\"Blue\"))\n Colors[2]++;\n else if(inHand.get(i).color.equals(\"Yellow\"))\n Colors[3]++;\n \n }\n int Max=0;\n for(int i=0;i<4;i++)\n {\n if(Colors[i]>=Max)\n {\n if(i==0)color=\"Red\";\n if(i==1)color=\"Green\";\n if(i==2)color=\"Blue\";\n if(i==3)color=\"Yellow\";\n Max=Colors[i];\n }\n \n }\n \n return color;\n }", "title": "" } ]
[ { "docid": "4783952d07642cd1c16c639d8d929840", "score": "0.6631229", "text": "String getColor();", "title": "" }, { "docid": "74b2eff3cef2d527d923ac1ac276fdc2", "score": "0.65411437", "text": "java.lang.String getColor();", "title": "" }, { "docid": "2099c7c4f4c00e8dc22c1cf4ab801b32", "score": "0.64783585", "text": "Integer getColorIndex();", "title": "" }, { "docid": "1dd9ae567c7a800409bec29a28b55085", "score": "0.6470763", "text": "public int getColor();", "title": "" }, { "docid": "53f424e896113b8292b00e19e49fde83", "score": "0.64204127", "text": "public String getColor();", "title": "" }, { "docid": "53f424e896113b8292b00e19e49fde83", "score": "0.64204127", "text": "public String getColor();", "title": "" }, { "docid": "a4c8d6bdae4c2780238f4c1b5791208b", "score": "0.63952154", "text": "int getColor();", "title": "" }, { "docid": "aebcd9c6a368b05c8f6073464be213b7", "score": "0.6291262", "text": "private void generateColors(){\n for(int i=0 ; i<3 ; i++){\n for(int j = 0 ; j<3 ; j++){\n this.Colors.addFirst(\"Green\");\n this.Colors.addFirst(\"Red\");\n this.Colors.addFirst(\"Blue\");\n }\n this.Colors.addFirst(\"Yellow\"); \n }\n }", "title": "" }, { "docid": "b5de2de752334f56c3133fbe8baa1edf", "score": "0.6286798", "text": "public String toString() {\r\n return \"(\" + red + \",\" + green + \",\" + blue + \",\" + alpha + \")\";\r\n }", "title": "" }, { "docid": "6226f54290db3bcb458e515c114971ca", "score": "0.6276814", "text": "public static void main(String[] args) {\n int[] a1 = new int[]{1, 2, 3, 4, 5}; //2 3 4\n int[] a2 = new int[]{8, 6, 7, 5, 3, 0, 9}; //7 5 3\n int[] a3 = new int[]{1, 2, 3}; // 1 2 3\n final String ANSI_PURPLE = \"\\u001B[35m\";\n final String ANSI_RED = \"\\u001B[31m\";\n final String ANSI_BLUE = \"\\u001B[34m\";\n final String ANSI_GREEN_BACKGROUND = \"\\u001B[42m\";\n System.out.println(ANSI_GREEN_BACKGROUND);\n System.out.println(ANSI_BLUE);\n myColorPrintIntArray(midThree(a1));// [2, 3, 4]\n System.out.println(ANSI_PURPLE);\n myColorPrintIntArray(midThree(a2));//[7, 5, 3]\n System.out.println(ANSI_RED);\n myColorPrintIntArray(midThree(a3));// [1, 2, 3]\n }", "title": "" }, { "docid": "a6469b513f595caa8068f1585b8ba386", "score": "0.6244621", "text": "public Color getColor(){\r\n return Color.rgb(Red,Green,Blue);\r\n }", "title": "" }, { "docid": "c53927fb0c6bb4629d3d6820eb27e23d", "score": "0.6205721", "text": "public int asRGB() {\n/* 242 */ return getRed() << 16 | getGreen() << 8 | getBlue() << 0;\n/* */ }", "title": "" }, { "docid": "6e6cd8359777255063d00838e58ac149", "score": "0.61715376", "text": "public abstract int getColor(int index);", "title": "" }, { "docid": "e5bcff9ee37ce227050af74905a30e35", "score": "0.615708", "text": "public int colorListStr(String j){\n\t\t\tif(j==\"Black\") return 0; \n\t\t\telse if(j==\"White\") return 1;\n\t\t\telse if(j==\"Brown\") return 2; \n\t\t\telse if(j==\"Grey\") return 3;\n\t\t\telse return 4;\n\t\t}", "title": "" }, { "docid": "48095c518028a33c9611ee4d2436ad46", "score": "0.6126607", "text": "public String getColor()\r\n {\r\n if (_pos % 2 == 0) return _color1;\r\n else return _color2;\r\n }", "title": "" }, { "docid": "b93bd33b4ef9f1f32011955dc32135b1", "score": "0.612528", "text": "public static int[] getColorsGreen() {\r\n\t\treturn COLORS_GREEN;\r\n\t}", "title": "" }, { "docid": "9327844de6a68d5eba2e17cbd10d415a", "score": "0.6094703", "text": "public int getGreen() {\n/* 202 */ return 0xFF & this.green;\n/* */ }", "title": "" }, { "docid": "4de089bd7b4de88fee8ebd66b8cbe931", "score": "0.6085196", "text": "public String toString() {\r\n String rs=Integer.toString(red,16),gs=Integer.toString(green,16),bs=Integer.toString(blue,16);\r\n return (rs.length()==1?\"0\"+rs:rs)+(gs.length()==1?\"0\"+gs:gs)+(bs.length()==1?\"0\"+bs:bs);\r\n }", "title": "" }, { "docid": "eb74fd69a5325592c51383eb53bccd33", "score": "0.60797966", "text": "float getRed();", "title": "" }, { "docid": "175a4a983fb594d5c7229820479ef872", "score": "0.60795665", "text": "public String seeColor(String str) {\n if (str.length() <= 3 && !(str.equals(\"red\"))) return \"\";\n \n if (str.substring(0,3).equals(\"red\")) return \"red\";\n if(str.substring(0,4).equals(\"blue\")) return \"blue\";\n \n return \"\";\n}", "title": "" }, { "docid": "c6f6dd91b1dd8f56d5c1af90f3e628cc", "score": "0.60673267", "text": "public String getColor(){return color;}", "title": "" }, { "docid": "58b0a9e5b86dced7144281395ac7eec1", "score": "0.6064909", "text": "public static void main(String[] args) {\n ArrayList<String> colors = new ArrayList<>();\n colors.add(\"Red\");\n colors.add(\"White\");\n colors.add(\"Black\");\n colors.add(\"Green\");\n System.out.println(colors);\n\n\n //Hint:\n // Black => Blue\n }", "title": "" }, { "docid": "ec54fe969d3df795e2def1f177a49fcb", "score": "0.6038435", "text": "void setColor(int aLedIndex, int aRed, int aGreen, int aBlue);", "title": "" }, { "docid": "e50a2ff1059bdc3255b6887bdb5ed72e", "score": "0.6029796", "text": "public static int getColorEncoding(int red, int green, int blue) {\n return Color.rgb(red, green, blue);\n }", "title": "" }, { "docid": "af4f3e8697d05b5fdcfe3c42edc3de8f", "score": "0.6025571", "text": "public int getColorGreen() {\n/* 2137 */ return this.colorGreen;\n/* */ }", "title": "" }, { "docid": "24911fcb77fc88cbaf99f58fdbc07e64", "score": "0.60201734", "text": "public int getRed() {\n/* 182 */ return 0xFF & this.red;\n/* */ }", "title": "" }, { "docid": "c24e3ff15547f131c74ad4eab38397ca", "score": "0.600126", "text": "public abstract String getColorName(int index);", "title": "" }, { "docid": "3466444343736325222f8486791698ae", "score": "0.598809", "text": "public void color(float red, float green, float blue, float alpha);", "title": "" }, { "docid": "4f3144413cb150c29f3c7860a39019eb", "score": "0.5962543", "text": "public int asBGR() {\n/* 251 */ return getBlue() << 16 | getGreen() << 8 | getRed() << 0;\n/* */ }", "title": "" }, { "docid": "189d09cca309f44f46e3bfc2a74f074a", "score": "0.5917369", "text": "public int getColor() {\n return color;\n }", "title": "" }, { "docid": "189d09cca309f44f46e3bfc2a74f074a", "score": "0.5917369", "text": "public int getColor() {\n return color;\n }", "title": "" }, { "docid": "38da4b6a0c8885fe8f19a8db2a0ef6fc", "score": "0.5909989", "text": "char getColor();", "title": "" }, { "docid": "98519ac826f471d1909d23e705ca310f", "score": "0.5909691", "text": "void setPaletteIndex(int index, int red, int green, int blue);", "title": "" }, { "docid": "9699674d99f28ac94a54e4ac252a91d4", "score": "0.5908282", "text": "public Color getInitialColor();", "title": "" }, { "docid": "2200b93bb9f5d091f30d7f414fb4793b", "score": "0.58694285", "text": "public static int[] getColorsLightGreen() {\r\n\t\treturn COLORS_LIGHT_GREEN;\r\n\t}", "title": "" }, { "docid": "594b55869d5a3cd7adc170118d109013", "score": "0.58502156", "text": "int getIndexColor(int index) {\n int col = color(255);\n if (index == 0)\n col = color(0, 0, 255);\n else if (index == 1)\n col = color(0, 255, 0);\n else if (index == 2)\n col = color(255, 0, 0);\n else if (index == 3)\n col = color(255, 255, 0);\n else if (index == 4)\n col = color(255, 0, 255);\n else if (index == 5)\n col = color(0, 255, 255);\n\n return col;\n }", "title": "" }, { "docid": "17786c25efa596cd852206dd8b6962fc", "score": "0.5810312", "text": "ReversiColor getColor();", "title": "" }, { "docid": "8dc095132857ea44fdb0601e6a119d7d", "score": "0.5806103", "text": "public abstract Color getStatusColor();", "title": "" }, { "docid": "425af53553d73f8b86fca98f39807dcf", "score": "0.579815", "text": "void createColors() {\n allcolors.put(7, Color.WHITE);\n allcolors.put(6, Color.BLACK);\n allcolors.put(3, Color.BLUE);\n allcolors.put(1, Color.YELLOW);\n allcolors.put(2, Color.RED);\n allcolors.put(4, new Color(225, 120, 0));\n allcolors.put(5, Color.magenta);\n allcolors.put(0, Color.GREEN);\n\n }", "title": "" }, { "docid": "a40742567661ea2f4d010b9bf5f34c4c", "score": "0.5794952", "text": "static void convert_color(int i, int[] r, int[] g, int[] b) {\n int bit0, bit1, bit2, bit3;\n UBytePtr prom = new UBytePtr(fastfred_color_prom);\n int total = Machine.drv.total_colors;\n\n bit0 = (prom.read(i + 0 * total) >> 0) & 0x01;\n bit1 = (prom.read(i + 0 * total) >> 1) & 0x01;\n bit2 = (prom.read(i + 0 * total) >> 2) & 0x01;\n bit3 = (prom.read(i + 0 * total) >> 3) & 0x01;\n r[0] = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;\n bit0 = (prom.read(i + 1 * total) >> 0) & 0x01;\n bit1 = (prom.read(i + 1 * total) >> 1) & 0x01;\n bit2 = (prom.read(i + 1 * total) >> 2) & 0x01;\n bit3 = (prom.read(i + 1 * total) >> 3) & 0x01;\n g[0] = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;\n bit0 = (prom.read(i + 2 * total) >> 0) & 0x01;\n bit1 = (prom.read(i + 2 * total) >> 1) & 0x01;\n bit2 = (prom.read(i + 2 * total) >> 2) & 0x01;\n bit3 = (prom.read(i + 2 * total) >> 3) & 0x01;\n b[0] = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;\n }", "title": "" }, { "docid": "276bffa0e126d81f565261b9180f15c8", "score": "0.5786033", "text": "public int getColor(){\n\t\treturn color;\n\t}", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.5778645", "text": "Color getColor();", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.5778645", "text": "Color getColor();", "title": "" }, { "docid": "6138c28045ca1c933df2170c5be9c61f", "score": "0.5778645", "text": "Color getColor();", "title": "" }, { "docid": "8c93b5690eacd932c43b9084d3d2ebfb", "score": "0.5774595", "text": "public int getColorRed() {\n/* 2116 */ return this.colorRed;\n/* */ }", "title": "" }, { "docid": "588a6bec3a6798d103f4015608e923bd", "score": "0.57721525", "text": "public abstract String getColor();", "title": "" }, { "docid": "4cc37277d2fc56cdf3ea602f08ed8431", "score": "0.57658947", "text": "public int nextColor() {\n return nextColor(255);\n }", "title": "" }, { "docid": "17b5110bc827dcd19db600201591dcdb", "score": "0.57649595", "text": "public int Color( byte r, byte g, byte b) \n\t\t{ \n\t\t\treturn ((int)(g | 0x80) << 16) | \n\t\t ((int)(r | 0x80) << 8) | \n\t\t b | 0x80 ; \n\t\t}", "title": "" }, { "docid": "d0bb2f897d7137a1ae3e7ad7e9c6ae29", "score": "0.5755463", "text": "String getColorCombo() {\n return \"Color: (\" + this.redCode + \", \" + this.greenCode\n + \", \" + this.blueCode + \")\";\n }", "title": "" }, { "docid": "2a42a7296303e9d37802b02aad9cf0f8", "score": "0.5753528", "text": "public static void printRGB(int RGB[],PrintStream ps){\r\n for(int i=0; i<3; i++){\r\n ps.printf(\"%3d \",RGB[i]);\r\n }\r\n \r\n }", "title": "" }, { "docid": "c307fa3b9e023d143889d765742449b5", "score": "0.57533354", "text": "public int getColor() {\n return color_;\n }", "title": "" }, { "docid": "9b29068a6662533e320d0c65c082019c", "score": "0.5747743", "text": "public void sortColors(int[] nums) {\n //count number of three colors\n int numOfRed = 0;\n int numOfBlue = 0;\n int numOfWhite = 0;\n if (nums.length == 0 || nums == null) return;\n\n //count red\n for (int i : nums) {\n if (i == 0) numOfRed++;\n }\n for (int i : nums) {//count white\n if (i == 1) numOfWhite++;\n }\n numOfBlue = nums.length - numOfRed - numOfWhite;\n for (int i = 0; i < numOfRed; i++) {\n nums[i] = 0;\n }\n for (int i = numOfRed; i < numOfRed + numOfWhite; i++) {\n nums[i] = 1;\n }\n for (int i = numOfRed + numOfWhite; i < nums.length; i++) {\n nums[i] = 2;\n }\n}", "title": "" }, { "docid": "c82db2180c3863f3ea73cc9a1f4b2a8a", "score": "0.5745486", "text": "public String hexColors(int distance){\n String color = \"#\";\n int blue = 0;\n String green = \"00\";\n int red = 0;\n if(distance >= 255){ //higher than 255 feet (blue hue)\n red = (510-distance); //how much red should blend in with blue.\n if(red<= 0){\n red = 0;\n }else if(red>=255){\n red = 255;\n }\n blue = 255;\n System.out.println(\"red:\"+red);\n\n }else{ //below 255 feet (red hue)\n System.out.println(distance);\n blue = (distance); //how much blue should blend in with red.\n if(distance<= 10 || distance == 0){\n blue = 0;\n }else if(distance>=255){\n blue = 255;\n }else{\n // blue =+ 50;\n }\n red = 255;\n System.out.println(\"blue:\"+blue);\n }\n\n if(Integer.toHexString(red).length()==2){\n color += Integer.toHexString(red);\n }else{\n color += \"0\"+Integer.toHexString(red);\n }\n color += green;\n\n if(Integer.toHexString(blue).length()==2){\n color += Integer.toHexString(blue);\n }else{\n color += \"0\"+Integer.toHexString(blue);\n }\n System.out.println(\"color:\"+color);\n return color;\n }", "title": "" }, { "docid": "c91ca9afb0aad7c27dc2248dbf816c0b", "score": "0.5731203", "text": "private void addColors() {\n\t\tcolorList = new ArrayList<Integer>();\n\t\tfor(int i =0; i < 7; i++) {\n\t\t\tRandom rnd = new Random(); \n\t\t\tint color = Color.argb(255, rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256));\n\t\t\tcolorList.add(color);\n\t\t}\n\t}", "title": "" }, { "docid": "3d42bdab446acb947d1b54ab725b93bd", "score": "0.5730805", "text": "public final int getRed()\r\n\t{\r\n\t\treturn red;\r\n\t}", "title": "" }, { "docid": "53128b19be99bde2ac52bcbccabd0978", "score": "0.573078", "text": "public static void main(String[] args) {\n\r\n\t\tColor c = Color.Blue;\r\n\t\tSystem.out.println(c);\r\n\t\tfor (Color cc : Color.values()) {\r\n\t\t\tprintcc(cc);\r\n\t\t\tSystem.out.println(cc.ordinal() + \"--------->\" + cc.name());\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "6cd3319e20a8e26efb599c1531ecd1b9", "score": "0.5720982", "text": "public Color getColor();", "title": "" }, { "docid": "6cd3319e20a8e26efb599c1531ecd1b9", "score": "0.5720982", "text": "public Color getColor();", "title": "" }, { "docid": "6cd3319e20a8e26efb599c1531ecd1b9", "score": "0.5720982", "text": "public Color getColor();", "title": "" }, { "docid": "8c40861bc6acd6874810aec58092f5ad", "score": "0.57209516", "text": "@Test\r\n\tpublic void printColor() {\n\t\tfor(int i = -50; i<0 ;i++){\r\n\t\t\tassertEquals(\"ERROR\", pb.printColor(i, 25, 25));\r\n\t\t}\r\n\t\tfor(int i=101; i <150; i++){\r\n\t\t\tassertEquals(\"ERROR\", pb.printColor(i, 50, 50));\r\n\t\t}\t\t\r\n\t\t\r\n\t\t//Test points outside of circle\r\n\t\tassertEquals(\"BLUE\", pb.printColor(5, 0, 80));\r\n\t\tassertEquals(\"BLUE\", pb.printColor(25, 10, 40));\r\n\t\tassertEquals(\"BLUE\", pb.printColor(50, 45, 30));\r\n\t\tassertEquals(\"BLUE\", pb.printColor(75, 10, 85));\r\n\r\n\t\t//Test points inside circle\r\n\t\tassertEquals(\"RED\", pb.printColor(15, 51, 60));\r\n\t\tassertEquals(\"RED\", pb.printColor(25, 55, 90));\r\n\t\tassertEquals(\"RED\", pb.printColor(50, 70, 50));\r\n\t\tassertEquals(\"RED\", pb.printColor(75, 40, 30));\r\n\r\n\r\n\t}", "title": "" }, { "docid": "233b40422643735c20d891e7543e9896", "score": "0.57207507", "text": "@Override\n\tpublic String color() {\n\t\treturn \"green\";\n\t}", "title": "" }, { "docid": "6b27388a4196d8370e64c43181ba9006", "score": "0.57016695", "text": "public static int[] getColorsRed() {\r\n\t\treturn COLORS_RED;\r\n\t}", "title": "" }, { "docid": "cf9d6d495110e4be881400a00da7d25c", "score": "0.5693029", "text": "float getGreen();", "title": "" }, { "docid": "f43dd519c6580b37bd9e29cf3bcd2bf5", "score": "0.5692028", "text": "public int getColor() {\r\n return Color.argb(alpha, red, green, blue);\r\n }", "title": "" }, { "docid": "b6547c4eaeb880cca9750445a9430160", "score": "0.5685266", "text": "@Override\r\n\tpublic String getColor() {\n\t\treturn \"Black\";\r\n\t}", "title": "" }, { "docid": "2eaf1980d5d81574a1ba614d7bc0d0fe", "score": "0.56820154", "text": "public static void printGreen(String args){\nSystem.out.println(ANSI_GREEN+\"\\n\"+args+ANSI_RESET); // note: \"\\n\" in front of args\n}", "title": "" }, { "docid": "19f10f0ad96b42d74a3f8c381bb6f73c", "score": "0.56762487", "text": "public void getColor() {\n\t}", "title": "" }, { "docid": "5a34dc0b452e58927bdc44db11193550", "score": "0.5666301", "text": "public Color getMarbleColor();", "title": "" }, { "docid": "2516838178337cee0655e22c15a0bbb2", "score": "0.56630963", "text": "public int getColor() {\n return color;\n }", "title": "" }, { "docid": "32d50085318808a425ade36df9261fe7", "score": "0.5651108", "text": "@NotNull\n/* */ public static Color fromBGR(int blue, int green, int red) throws IllegalArgumentException {\n/* 133 */ return new Color(red, green, blue);\n/* */ }", "title": "" }, { "docid": "d0cb435633dc7c8d7e451da1e5b03e0a", "score": "0.56485915", "text": "public int getColorBlue() {\n/* 2158 */ return this.colorBlue;\n/* */ }", "title": "" }, { "docid": "77397c9a6323ba080f49336bd1ecccca", "score": "0.56437737", "text": "void changeColor(Shape s, float red, float blue, float green, int start, int end);", "title": "" }, { "docid": "8ddfba8be63a3b9c30b6348f156bf643", "score": "0.5640928", "text": "public static void main(String[] args) {\n\n\t\tArrayList<String> colors = new ArrayList<String>();\n\t\t\n\t\tcolors.add(\"red\");\n\t\tcolors.add(\"black\");\n\t\tcolors.add(\"blue\");\n\t\tcolors.add(\"white\");\n\t\tcolors.add(\"darkbrown\");\n\t\t\n\t\t\n\t\tSystem.out.println(colors);\n\t\tSystem.out.println(colors.size());\n\t\t/*System.out.println(colors.get(0));\n\t\tSystem.out.println(colors.get(1));\n\t\tSystem.out.println(colors.get(2));\n\t\tSystem.out.println(colors.get(3));\n\t\tSystem.out.println(colors.get(4));*/\n\t\t\n\t\t/*for(int i=0; i <colors.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(colors.get(i));\n\t\t}*/\n\t\t\n\t\tfor(String s : colors) {\n\t\t\tSystem.out.println(s);\n\t\t\tif(s.equals(\"white\")) {\n\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e495eaa6d6d528cca717f6cf8ef9e436", "score": "0.5640577", "text": "public static int[] getColorsYellow() {\r\n\t\treturn COLORS_YELLOW;\r\n\t}", "title": "" }, { "docid": "81f33038f792d3375fd6b2e79420b9c1", "score": "0.56397647", "text": "public int getColor() {\n\t\treturn Color.RED;\n\t}", "title": "" }, { "docid": "c6e0c9e286c28202326ca932d1c5c027", "score": "0.5636284", "text": "public static int[] getColorsBlue() {\r\n\t\treturn COLORS_BLUE;\r\n\t}", "title": "" }, { "docid": "26edee518a0b2c94c44a4de4cea3b495", "score": "0.5629535", "text": "public int[] getColor() {\n int[] retVal = new int[3];\n retVal[0] = r;\n retVal[1] = g;\n retVal[2] = b;\n return retVal;\n }", "title": "" }, { "docid": "4741f5019660862c685e79b6d70efc25", "score": "0.5626932", "text": "@Override\r\n\tpublic String toString() {\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\treturn sb.append(\"(\").append(color).append(\")\").toString();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "649e5660caf365bea79b661731452027", "score": "0.5624097", "text": "public String toString() {\n return \" red: \" + this.red + \" blue: \" + this.blue + \" and green: \" + this.green;\n }", "title": "" }, { "docid": "4e358fc10655ffb18a790a989a6af772", "score": "0.5618633", "text": "void setColors(int colorDangerTile, int colorKeyTile, int colorTouch, int colorLose);", "title": "" }, { "docid": "b669bb130c7d6fc2411a75f93982d072", "score": "0.5617761", "text": "public static void displayColorNumbers() {\n for (int i = 0; i <= 16; i++) {\n for (int j = 0; j <= 16; j++) {\n int code = i * 16 + j;\n String formattedCode = String.format(\"%4s\", Integer.toString(code));\n System.out.print(ANSI_BEFORE_TEXT + code + ANSI_AFTER + formattedCode);\n }\n System.out.print(\"\\n\");\n }\n System.out.println(RESET);\n }", "title": "" }, { "docid": "88bbd2acaf879c30bad153041dfd07bb", "score": "0.561722", "text": "@Override\r\n\tpublic String getcolorName() {\n\t\treturn \"Blue\";\r\n\t}", "title": "" }, { "docid": "feb7f78140aa5007802d0c136ac1e7c2", "score": "0.560067", "text": "public int[] getColor() {\n\n int[] retVal = new int[3];\n retVal[0] = r;\n retVal[1] = g;\n retVal[2] = b;\n\n return retVal;\n }", "title": "" }, { "docid": "2b2a897f5e232de6be60acdc8e00ea81", "score": "0.55925256", "text": "@Override\n\tpublic String getColor() {\n\t\treturn \"Black\";\n\t}", "title": "" }, { "docid": "4de4af9df8ea9b28698eebd724a9d60a", "score": "0.5589036", "text": "public static int[] getColorsBlueGrey() {\r\n\t\treturn COLORS_BLUE_GREY;\r\n\t}", "title": "" }, { "docid": "5d32ec068ba32f278a4839c2c2a50c98", "score": "0.5586686", "text": "public Color getColor(){return color;}", "title": "" }, { "docid": "3f0fc462c0c10b027660750209f3f846", "score": "0.5583997", "text": "Color getNthColor(int colorNum);", "title": "" }, { "docid": "e3d6c06fbe914feaa36e21494e2aea1b", "score": "0.5574296", "text": "float getBlue();", "title": "" }, { "docid": "abdf77d5cee22c6de57ad828f8360eed", "score": "0.5567387", "text": "public int getTrueHexColor(){\n return trueHexColor;\n }", "title": "" }, { "docid": "9bd3ccc7b2f5918f54e683339de2a349", "score": "0.5565557", "text": "public Color getColor(int i) {\t\n\t\treturn color[i];\t\n\t}", "title": "" }, { "docid": "eab369da6b09177ad517023d1fad83fc", "score": "0.55613124", "text": "private static void iterateArrayList() {\n\t\tArrayList<String> color = new ArrayList<String>();\n\t\tcolor.add(\"Red\");\n\t\tcolor.add(\"Yellow\");\n\t\tcolor.add(\"Orange\");\n\t\tcolor.add(\"Black\");\n\t\tcolor.add(\"Purple\");\n\t\tSystem.out.println(\"Color list : \" + color);\n\t\tfor (String str : color)\n\t\t\tSystem.out.println(str);\n\t}", "title": "" }, { "docid": "39e537af7ff584461c788d0adc96d0cf", "score": "0.5553448", "text": "private int colorWiring(int c) {\r\n\t\tint red = (c & 0xFF0000) >> 16;\r\n\t\tint green = (c & 0x00FF00) >> 8;\r\n\t\tint blue = (c & 0x0000FF);\r\n\t\tred = gammaTable[red];\r\n\t\tgreen = gammaTable[green];\r\n\t\tblue = gammaTable[blue];\r\n\t\treturn (green << 16) | (red << 8) | (blue); // GRB - most common wiring\r\n\t}", "title": "" }, { "docid": "96a7024c735b51b72912021770537a17", "score": "0.55483854", "text": "public void nextColor()\n {\n this.colorCounter++;\n \n \n }", "title": "" }, { "docid": "2599e57d63da7a03fc1cb85f3752cbe5", "score": "0.55451924", "text": "public int GetColor() {\r\n return color;\r\n }", "title": "" }, { "docid": "46cd366f8df4de9e0ee2d8912b61b5e0", "score": "0.5541677", "text": "abstract String getColour();", "title": "" }, { "docid": "e2db2b49e4c0ba064aa654a0da640341", "score": "0.55401087", "text": "public static int[] getColorsLightBlue() {\r\n\t\treturn COLORS_LIGHT_BLUE;\r\n\t}", "title": "" }, { "docid": "2ef7bbe9767ae683b54e768bc42d0a2b", "score": "0.5539899", "text": "double getColorFactor();", "title": "" }, { "docid": "54eb1de9794ba05f7514e76edbb30fb4", "score": "0.5532639", "text": "public static int[] getColorsGrey() {\r\n\t\treturn COLORS_GREY;\r\n\t}", "title": "" }, { "docid": "52d9d57e1a515df0fdfb2f12ebc71ca9", "score": "0.5528688", "text": "public String getColor(){\n return color;\n }", "title": "" }, { "docid": "c6cc893af8b3ef07e96bec78d1b84127", "score": "0.5528157", "text": "public int getColor() {\n\t\treturn color;\n\t}", "title": "" }, { "docid": "a1dadf3cceb03687dc51be8ace31a041", "score": "0.5521432", "text": "private java.awt.Color read_color() throws java.io.IOException\n {\n int [] rgb_color_arr = new int [3];\n for (int i = 0; i < 3; ++i)\n {\n Object next_token = this.scanner.next_token();\n if (!(next_token instanceof Integer))\n {\n if (next_token != Keyword.CLOSED_BRACKET)\n {\n System.out.println(\"GUIDefaultsFile.read_color: closing bracket expected\");\n }\n return null;\n }\n rgb_color_arr[i] = (Integer)next_token;\n }\n return new java.awt.Color(rgb_color_arr[0], rgb_color_arr[1],rgb_color_arr[2]);\n }", "title": "" } ]
9e3de1b10d587d470898b320188f8d2d
required string clusterID = 1; ID of the cluster
[ { "docid": "b49ef0e469888f4a5bf60c4d52f9bac3", "score": "0.74006504", "text": "public Builder setClusterID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n clusterID_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "d4f923a8fa3897d8175ad45a835c2676", "score": "0.8448712", "text": "java.lang.String getClusterID();", "title": "" }, { "docid": "b9eefa5f80b7e3493ce5f7a2dfb0b962", "score": "0.7998778", "text": "long getClusterId();", "title": "" }, { "docid": "62f2d83c8f705e58044412b96b5aeb7c", "score": "0.78119874", "text": "public String getClusterId() {\n return clusterId;\n }", "title": "" }, { "docid": "09d5defcf61fa7ed26265c52de1afca0", "score": "0.7673593", "text": "public String getClusterId() {\n return this.ClusterId;\n }", "title": "" }, { "docid": "281433abb323bd6ae0f39e184070a981", "score": "0.7610305", "text": "public Long getClusterID()\n \t{\n \t\treturn mClusterID;\n \t}", "title": "" }, { "docid": "9d4223289e8d3d00138f4e32789ddd8c", "score": "0.7471941", "text": "Cluster getCluster(\n @NotBlank(message = \"No id entered. Unable to get.\") final String id\n ) throws GenieException;", "title": "" }, { "docid": "f9878f057ef40bac0efb7f88befe189e", "score": "0.74151325", "text": "public String getClusterIdentifier() {\n return this.clusterIdentifier;\n }", "title": "" }, { "docid": "ad686874407da456df9d312f352899b0", "score": "0.7392408", "text": "java.lang.String getCluster();", "title": "" }, { "docid": "ad686874407da456df9d312f352899b0", "score": "0.7392408", "text": "java.lang.String getCluster();", "title": "" }, { "docid": "0d64ed473671dfe5281f28b11063234d", "score": "0.73721755", "text": "public void setClusterId(String ClusterId) {\n this.ClusterId = ClusterId;\n }", "title": "" }, { "docid": "7b4ca04c1c306ad3a1808647dd505a2b", "score": "0.73328936", "text": "java.lang.String getMdbClusterId();", "title": "" }, { "docid": "c490954e5b7857123d0807865e4934eb", "score": "0.7321393", "text": "public java.lang.String getClusterID() {\n java.lang.Object ref = clusterID_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n clusterID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "dea3f86e9fac64608d77835296b28987", "score": "0.724958", "text": "public java.lang.String getClusterID() {\n java.lang.Object ref = clusterID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n clusterID_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "3286471ca8d45a05d84ade39247b1dd0", "score": "0.71838224", "text": "String getCluster();", "title": "" }, { "docid": "6561ffd440758044143d56879f334333", "score": "0.7142189", "text": "public String cluster_name() { return cluster_name; }", "title": "" }, { "docid": "f3594f20887326e0d5ea9314f977e60e", "score": "0.709364", "text": "boolean hasClusterID();", "title": "" }, { "docid": "49796074adb32261621bba1f2fe30349", "score": "0.70137703", "text": "public void setClusterId(String clusterId) {\n if (clusterId == null) {\n throw new NullPointerException(\"stan: cluster ID must be non-null\");\n }\n\n this.clusterId = clusterId;\n }", "title": "" }, { "docid": "cdc312046e5fb0d1343c234b96f467a2", "score": "0.7011231", "text": "public UUID clusterId() {\n return clusterId;\n }", "title": "" }, { "docid": "9b6e32cc760bced3e85524357f8bf9a6", "score": "0.69225335", "text": "public void setClusterIdentifier(String clusterIdentifier) {\n this.clusterIdentifier = clusterIdentifier;\n }", "title": "" }, { "docid": "6d5c91e3facb7e36befce8d9c6080f04", "score": "0.6919164", "text": "public int getCluster() {\n return this.cluster;\n }", "title": "" }, { "docid": "c8c5fdb30f31ab4ba142e1534bb8df5e", "score": "0.68202376", "text": "public com.google.protobuf.ByteString\n getClusterIDBytes() {\n java.lang.Object ref = clusterID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n clusterID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "b7a91f28193a4b2d3bc291c6f2def31e", "score": "0.68044996", "text": "String getClusterName() ;", "title": "" }, { "docid": "5d8238297cc9e23c13c4f8e6315918c5", "score": "0.6763414", "text": "public String getNewClusterIdentifier() {\n return this.newClusterIdentifier;\n }", "title": "" }, { "docid": "526d8117c8c35ad6d2f61953c4ef6de8", "score": "0.6740792", "text": "void createClusterNode(Serializable nodeId);", "title": "" }, { "docid": "e3e9fcacbd21f683c8875471a43ae650", "score": "0.67047447", "text": "public com.google.protobuf.ByteString\n getClusterIDBytes() {\n java.lang.Object ref = clusterID_;\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 clusterID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "dfd03e8e16ae4eab5e9061f6db13d4d3", "score": "0.6695928", "text": "public static String newClusterID() {\n return \"CID-\" + UUID.randomUUID().toString();\n }", "title": "" }, { "docid": "cfdf677f80a015599002ccdbf7e6291e", "score": "0.6612253", "text": "public String getPrimaryClusterId() {\n return primaryClusterId;\n }", "title": "" }, { "docid": "f5fff94c1ef2902b731605ef36bbd863", "score": "0.65504533", "text": "public Cluster(int id) {\r\n\t\tthis.id = id;\r\n\t\tthis.points = new ArrayList<Point>();\r\n\t\tthis.centroid = null;\r\n\t}", "title": "" }, { "docid": "d89f8abc34977e4190a84248ff8c7f8e", "score": "0.65272796", "text": "public DataCluster(List<DataObject> cluster) {\n clusterId = UUID.randomUUID().toString();\n this.cluster = cluster;\n }", "title": "" }, { "docid": "e1e7be2f45a4969e59bbebd3f773eb9e", "score": "0.652661", "text": "public String getClusterId(String nodeId)\n {\n int dot=nodeId.lastIndexOf('.');\n return (dot>0)?nodeId.substring(0,dot):nodeId;\n }", "title": "" }, { "docid": "54fe3d94e6d4ad333e218351d5571df5", "score": "0.6522653", "text": "com.google.protobuf.ByteString\n getClusterIDBytes();", "title": "" }, { "docid": "be3d8370f36c0faba99e1835fbeead84", "score": "0.65164924", "text": "public boolean includeClusterId() {\n return includeClusterId;\n }", "title": "" }, { "docid": "356a8cf199157a87f1000981fb16d80c", "score": "0.65050244", "text": "public java.lang.String getCluster() {\n java.lang.Object ref = cluster_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n cluster_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "ed7aba1dea501f3acebdf057a15bf418", "score": "0.6499893", "text": "void deleteCluster(\n @NotBlank(message = \"No id entered unable to delete.\") final String id\n ) throws GenieException;", "title": "" }, { "docid": "4574da4d0eb4c36bb2560739989ab8d6", "score": "0.6488674", "text": "public String getClusterName() {\n return this.clusterName;\n }", "title": "" }, { "docid": "81c1eb277795e7541da26cd5488d23d6", "score": "0.6479962", "text": "public Cluster(int id) {\n\t\tthis.id = id;\n\t\tthis.points = new ArrayList();\n\t\tthis.centroid = null;\n\t}", "title": "" }, { "docid": "11fcdbc02b18ba624a0e4f8e6e1538b0", "score": "0.64730173", "text": "public String determineClusterId() {\n String cid = null;\n Iterator<StorageDirectory> sdit = dirIterator(NameNodeDirType.IMAGE);\n while(sdit.hasNext()) {\n StorageDirectory sd = sdit.next();\n try {\n Properties props = sd.readFrom(sd.getVersionFile());\n cid = props.getProperty(\"clusterID\");\n LOG.info(\"current cluster id for sd=\"+sd.getCurrentDir() + \n \";lv=\" + layoutVersion + \";cid=\" + cid);\n \n if(cid != null && !cid.equals(\"\"))\n return cid;\n } catch (Exception e) {\n LOG.warn(\"this sd not available: \" + e.getLocalizedMessage());\n } //ignore\n }\n LOG.warn(\"couldn't find any VERSION file containing valid ClusterId\");\n return null;\n }", "title": "" }, { "docid": "bff31b8ff2fb40e459abd26408979778", "score": "0.645859", "text": "public String getNodeId(String clusterId, HttpServletRequest request)\n {\n if (_workerName!=null)\n return clusterId+'.'+_workerName;\n\n return clusterId;\n }", "title": "" }, { "docid": "2bd7998d757c85041280501c90c1c102", "score": "0.6445213", "text": "@java.lang.Override\n public java.lang.String getCluster() {\n java.lang.Object ref = cluster_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n cluster_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "349a28dc2f9d3bdeba546ae8a5801c31", "score": "0.64070505", "text": "public java.lang.String getCluster() {\n java.lang.Object ref = cluster_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n cluster_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "561058dd13cb25dfacbcf163815ddf88", "score": "0.6400983", "text": "@GetMapping(value = \"/cluster\")\n public String getClusterTemplate(@RequestParam(name = \"id\", required = true) String cluster, Model model) {\n\n model.addAttribute(\"Cluster\", \"/getClData?cl=graph_cluster_\" + cluster);\n return \"cluster\";\n }", "title": "" }, { "docid": "1b5db055fdd48dc6aba4f52f5e2bed5f", "score": "0.6394685", "text": "public boolean hasClusterID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "02698a131396a7e60018d4d19bcf12a4", "score": "0.6382041", "text": "public String getClusterUuid() {\n return clusterUuid;\n }", "title": "" }, { "docid": "6ea6ffeba909c40a10706dd49787a635", "score": "0.6381233", "text": "public String getSnapshottingClusterId() {\n return snapshottingClusterId;\n }", "title": "" }, { "docid": "ac181d531dd2da83af96d54ae04bf809", "score": "0.63738513", "text": "public Cluster getCluster() {\n return cluster;\n }", "title": "" }, { "docid": "3b5902bba8cf6b499c6d4225d2e2d6bd", "score": "0.6368064", "text": "public java.lang.String getCluster() {\n java.lang.Object ref = cluster_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n cluster_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "2ae1aa60764795a26d44d996a8302b6e", "score": "0.63550943", "text": "public Builder setCluster(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n cluster_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d6e138db1f1454ef8ab36ba10a85a184", "score": "0.633732", "text": "@Test\n public void clusterNodeIdTest() {\n // TODO: test clusterNodeId\n }", "title": "" }, { "docid": "9b63730c5509e7e98f97fa2926f3494c", "score": "0.6331702", "text": "public String getClusterName(){\n return clusterName;\n }", "title": "" }, { "docid": "9afb896db75fb72792a9371719e2d7f6", "score": "0.63302976", "text": "@ApiModelProperty(example = \"null\", value = \"The identifier of the node that this event/flowfile originated from.\")\n public String getClusterNodeIdentifier() {\n return clusterNodeIdentifier;\n }", "title": "" }, { "docid": "11af9a0b1ec6c8a0ea3265b2c82213db", "score": "0.6321112", "text": "public boolean hasClusterID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "d983019f14b3beaf9014159838b94aab", "score": "0.63075846", "text": "public Builder setClusterIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n clusterID_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "98ecf1d86fa200d9177ea83f88475c3b", "score": "0.62999827", "text": "public Builder setCluster(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n cluster_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "be3412821388da4c7f4a03c98af4a186", "score": "0.62918437", "text": "@java.lang.Override\n public java.lang.String getMdbClusterId() {\n java.lang.Object ref = \"\";\n if (addressCase_ == 5) {\n ref = address_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (addressCase_ == 5) {\n address_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "35f9dc0b4f567714141cf7434dbacd86", "score": "0.6249791", "text": "public void setPrimaryClusterId(String primaryClusterId) {\n this.primaryClusterId = primaryClusterId;\n }", "title": "" }, { "docid": "56da26e20fdf037c4e320300fb8d6558", "score": "0.624749", "text": "boolean hasMdbClusterId();", "title": "" }, { "docid": "05136edbc78beccc62ebfa00b53c2860", "score": "0.6239757", "text": "private int findDocClusterID(final String docID) {\n Iterator<Integer> iter = clusters.keySet().iterator();\n while (iter.hasNext()) {\n int clusterId = iter.next();\n List<JsonClusterMember> members = clusters.get(clusterId).getMembers();\n for (int i = 0; i < members.size(); i++) {\n JsonClusterMember member = members.get(i);\n if (member.getDocID().equals(docID)) {\n return clusterId;\n }\n }\n }\n return -1;\n }", "title": "" }, { "docid": "c2acd1910d93c3a98f644e0be501ce3c", "score": "0.6222723", "text": "public java.lang.String getMdbClusterId() {\n java.lang.Object ref = \"\";\n if (addressCase_ == 5) {\n ref = address_;\n }\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (addressCase_ == 5) {\n address_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "1368e6593b26e50f5563284b2a100aee", "score": "0.62167066", "text": "java.lang.String getClusterConfig();", "title": "" }, { "docid": "d7a5ec968c88bb8ed19504b74db2d069", "score": "0.62105954", "text": "public String getClusterType() {\n return this.clusterType;\n }", "title": "" }, { "docid": "59b543852f379e20d88d622946b72157", "score": "0.6179648", "text": "public boolean deleteCluster(String _clusterID) {\n boolean success = xmlOperationCluster.deleteCluster(_clusterID);\n return success;\n }", "title": "" }, { "docid": "62854d4b9512de54a007537a7af9272b", "score": "0.6155267", "text": "static String generateClusterId() {\n UUID clusterIdUUID = UUID.randomUUID();\n ByteBuffer bb = ByteBuffer.wrap(new byte[16]);\n bb.putLong(clusterIdUUID.getMostSignificantBits());\n bb.putLong(clusterIdUUID.getLeastSignificantBits());\n String clusterIdBase64 = Base64.getUrlEncoder().encodeToString(bb.array());\n clusterIdBase64 = clusterIdBase64.replace(\"-\", \"\").replace(\"_\", \"\");\n int len = Math.min(clusterIdBase64.length(), 15);\n // All resource ids must be lower case in google cloud!\n return clusterIdBase64.substring(0, len).toLowerCase(Locale.US);\n }", "title": "" }, { "docid": "ef46f15925f3d9540a8ad67f1f4b6563", "score": "0.6141165", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getClusterBytes() {\n java.lang.Object ref = cluster_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n cluster_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "db7e2d6852901e2d286268307668ed70", "score": "0.61308545", "text": "public Builder clearClusterID() {\n bitField0_ = (bitField0_ & ~0x00000001);\n clusterID_ = getDefaultInstance().getClusterID();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a8b9c8645822c9479e993b1ab9e77c69", "score": "0.61209685", "text": "public String getClusterName() {\n return clusterName;\n }", "title": "" }, { "docid": "b648aeccd46e2a6f415d67d173eecb33", "score": "0.61177796", "text": "String createCluster(\n @NotNull(message = \"No cluster entered. Unable to create.\")\n @Valid final Cluster cluster\n ) throws GenieException;", "title": "" }, { "docid": "7c4348e64246c7e823b508f38d9dedec", "score": "0.6115489", "text": "public com.google.protobuf.ByteString\n getClusterBytes() {\n java.lang.Object ref = cluster_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n cluster_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "62045e01016109abb0a8c5197d821176", "score": "0.6111654", "text": "public String getSrcTableClusterId() {\n return this.SrcTableClusterId;\n }", "title": "" }, { "docid": "a04df17ef064dd8ff4472be33f68414c", "score": "0.609778", "text": "public void setNewClusterIdentifier(String newClusterIdentifier) {\n this.newClusterIdentifier = newClusterIdentifier;\n }", "title": "" }, { "docid": "07c184550253fba32605ad09e39879d4", "score": "0.6096795", "text": "public Builder setMdbClusterId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n addressCase_ = 5;\n address_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "eac64197509a5fa34c653a6aa0136f26", "score": "0.6096119", "text": "@Test\n public void clusterNodeIdentifierTest() {\n // TODO: test clusterNodeIdentifier\n }", "title": "" }, { "docid": "ac4541c1d79ccbfa2accd035cd07ad61", "score": "0.6089121", "text": "@GetMapping(\"/{vmwareId}/clusters/{clusterId}\")\n RestResult<ClusterBasic> get(@PathVariable @NotBlank @Pattern(regexp = Constants.ID_REGEXP) String vmwareId,\n @PathVariable @NotBlank @Pattern(regexp = Constants.CID_REGEXP) String clusterId);", "title": "" }, { "docid": "59ba599022646549402492d0dab718f9", "score": "0.6065383", "text": "public String getCloudHsmClusterId() {\n return this.cloudHsmClusterId;\n }", "title": "" }, { "docid": "e13f41c3310bc1068bd6ea51493c631b", "score": "0.6056534", "text": "public void setClusterType(String clusterType) {\n this.clusterType = clusterType;\n }", "title": "" }, { "docid": "93a143ad7c572032a06183e770de46bb", "score": "0.6052398", "text": "public com.google.protobuf.ByteString\n getClusterBytes() {\n java.lang.Object ref = cluster_;\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 cluster_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "c8583586fba8f8fc176a0b3293b9c6be", "score": "0.60470146", "text": "private Dataset extract(int clusterID) {\n Dataset cluster = new DefaultDataset();\n for (DataObject dataObject : dataset) {\n if (dataObject.clusterIndex == clusterID)\n cluster.add(dataObject.instance);\n\n }\n return cluster;\n }", "title": "" }, { "docid": "b035ddeca851a12fc153b67104893714", "score": "0.6045168", "text": "ClusterSet()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "cd4a11c45639ae52984e51a26315424a", "score": "0.60435855", "text": "private void setClustersIDs() {\n for (Pair<Character, LinkedList<Pair<Integer, Integer>>> cluster : clusters) {\n int clusterID = clusters.indexOf(cluster);\n for (Pair<Integer, Integer> ball : cluster.snd) {\n clustersIDs[ball.fst][ball.snd] = clusterID;\n }\n }\n }", "title": "" }, { "docid": "98a83c1bb4fb21064d4ab62ee01bb4c2", "score": "0.6021016", "text": "@Override\n\tpublic java.lang.String getCluster() {\n\t\treturn _simulation.getCluster();\n\t}", "title": "" }, { "docid": "a40f274c2506711c38e5e8d88c8f351b", "score": "0.59985095", "text": "com.google.protobuf.ByteString\n getClusterBytes();", "title": "" }, { "docid": "ae2ff773a28ca97721aa9bbc5f3ef9d8", "score": "0.598723", "text": "java.lang.String getClickhouseClusterName();", "title": "" }, { "docid": "82b9131554eae9514fb02cc539b2d475", "score": "0.59795666", "text": "public void setClusterUuid(String clusterUuid) {\n this.clusterUuid = clusterUuid;\n }", "title": "" }, { "docid": "19c3aa91dac80d6297740a29573a746a", "score": "0.59774184", "text": "public long getGUIClusterID()\n \t{\n \t\treturn mClusterID / clusterIDMachineMultiplier();\n \t}", "title": "" }, { "docid": "4d9416de536f92278988ba7ded0e6ef3", "score": "0.5971126", "text": "private void runCluster() throws InterruptedException {\n\t\tSiebogClient.connect(\"localhost\");\n\t\t\n\t\tAgentManager agm = ObjectFactory.getAgentManager();\n\n\t\tAgentClass agClass = new AgentClass(Agent.SIEBOG_MODULE, ClusterMaster.class.getSimpleName());\n\t\tAID pingAid = agm.startServerAgent(agClass, \"ClusterMaster\", null);\n\n\t\tfor(int i = 0; i < NUMBER_OF_SLAVES; i++) {\n\t\t\tagm.startServerAgent(new AgentClass(Agent.SIEBOG_MODULE, ClusterSlave.class.getSimpleName()), \"ClusterSlave\" + i, null);\n\t\t}\n\n\t\tMessageManager msm = ObjectFactory.getMessageManager();\n\t\tACLMessage message = new ACLMessage(Performative.REQUEST);\n\t\tmessage.receivers.add(pingAid);\n\t\tfor(int i = 0; i < NUMBER_OF_MESSAGES; i++) {\n\t\t\tfor(int j = 0; j < NUMBER_OF_SLAVES; j++) {\n\t\t\t\tmessage.content = \"ClusterSlave\" + j;\n\t\t\t\tmsm.post(message);\n\t\t\t}\n\t\t\tThread.sleep(4000);\n\t\t}\n\t}", "title": "" }, { "docid": "5f2015866e23191fa677319e524fc2e6", "score": "0.59681135", "text": "public interface Cluster {\n\n\t/**\n\t * @return A unique cluster name for this cluster\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Joins the cluster\n\t *\n\t * @param member The member joining the cluster\n\t */\n\tpublic void join(LocalMember member) throws ClusterException;\n\n\t/**\n\t * Leaves the cluster\n\t *\n\t * @param member\n\t * @throws ClusterException\n\t */\n\tpublic void leave(LocalMember member) throws ClusterException;\n\n\n\n\n\t/**\n\t * get the cluster leader member\n\t * @return\n\t * @throws ClusterException\n\t */\n\tpublic Member getLeader() throws ClusterException;\n\n\t/**\n\t * set the cluster leader member\n\t * @param member\n\t * @throws ClusterException\n\t */\n\tpublic void setLeader(Member member) throws ClusterException;\n\n\t/**\n\t * clean up the cluster\n\t *\n\t * @throws Exception\n\t */\n\tpublic void cleanup() throws Exception;\n\n}", "title": "" }, { "docid": "8c4f9c3fe75b84d585c2ce9d5495b30e", "score": "0.5946175", "text": "public com.google.protobuf.ByteString getClusterBytes() {\n java.lang.Object ref = cluster_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n cluster_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "4705319ae8aaa1050353be6b34043107", "score": "0.5945739", "text": "boolean hasCluster();", "title": "" }, { "docid": "c56421514b19a471adefed8f709d3fae", "score": "0.592694", "text": "public int clusterInstance(Instance i){\n try {\n return cluster.clusterInstance(i);\n } catch (Exception e) {\n this.appendError(this.getClass().getName(), \"Instance could not be clustered: \"+e.getMessage());\n System.out.println(\"les donnees n'ont pas pu etre traitees: \");\n System.out.println(e.getMessage());\n return -1;\n }\n }", "title": "" }, { "docid": "e9d4c1172911efe6b9ca31fa8247c976", "score": "0.59135836", "text": "public int GetNumOfCluster(){\n\t\treturn _numOfCluster;\n\n\t}", "title": "" }, { "docid": "44b231d985f6403db984378f6d3f396e", "score": "0.58907413", "text": "com.google.protobuf.ByteString\n getClusterBytes();", "title": "" }, { "docid": "dd7fb40198984898fc04e62d6a37017a", "score": "0.5882205", "text": "ClusterConfig getClusterConfig() {\n return cluster;\n }", "title": "" }, { "docid": "cf587e963032b87de2649520000d6843", "score": "0.5875827", "text": "public void addGraphCluster( Set<String> cluster ) throws SQLException {\n numOfCliques++;\n System.out.println( \" new clique with size \" + cluster.size() );\n System.out.println( \" now i have \" + numOfCliques );\n\n Statement stmt = dbAccess.getConnection().createStatement();\n stmt.execute( \"INSERT INTO \" + DBAccess.FTRGROUPS_TABLE + \" (\" + DBAccess.FTRGROUPS_TABLE_FIELD_FTRGROUP + \",\" + DBAccess.FIELD_PSCLIENT + \") VALUES ( 'ftrgroup_\" + numOfCliques + \"', '\" + clientName + \"')\" );\n for ( String n : cluster ) {\n String subSql = \"INSERT INTO \" + DBAccess.FTRGROUP_FEATURES_TABLE + \" (\" + DBAccess.FTRGROUP_FEATURES_TABLE_FIELD_FEATURE_NAME + \",\" +\n DBAccess.FTRGROUP_FEATURES_TABLE_FIELD_FEATURE_GROUP + \",\" + DBAccess.FIELD_PSCLIENT + \") VALUES ( '\" + n + \"','ftrgroup_\" + numOfCliques + \"', '\" + clientName + \"')\";\n stmt.execute( subSql );\n }\n stmt.close();\n }", "title": "" }, { "docid": "2121d49644b0d4ca4cf4034560637cef", "score": "0.587257", "text": "public String getClusterArn() {\n return this.clusterArn;\n }", "title": "" }, { "docid": "d133d095f1aa0867746b4702df05b88b", "score": "0.5866544", "text": "public int createNewCluster_ASI(final String label, final int x, final int y) {\n int clusterId = createNewCluster(label, x, y);\n streamCanvasToASI(\"CreateCluster\");\n noteChange();\n\n return clusterId;\n }", "title": "" }, { "docid": "d24d26cee848084d52d134210b818091", "score": "0.5857815", "text": "public int getClusterID(int i, int j) {\r\n\t\treturn this.matrix[i].getClusterID(this.densities.getDouble(j));\r\n\t}", "title": "" }, { "docid": "b88222f3456f149cd8f853c9bdc71841", "score": "0.5856911", "text": "private int getNextClusterId() {\n Set<Integer> clusterIds = clusters.keySet();\n\n if (clusterIds.isEmpty()) {\n return 0;\n }\n return Collections.max(clusterIds) + 1;\n }", "title": "" }, { "docid": "42293c622d80674b5dbae73523e7076f", "score": "0.583196", "text": "public String getDstTableClusterId() {\n return this.DstTableClusterId;\n }", "title": "" }, { "docid": "3b4c766df631d849ffd10e4ad96457ca", "score": "0.57856536", "text": "public void setSrcTableClusterId(String SrcTableClusterId) {\n this.SrcTableClusterId = SrcTableClusterId;\n }", "title": "" }, { "docid": "36c18bf1cd7de6c74741c3f321a12be2", "score": "0.57749414", "text": "public int getAllClusterNumber(){\n\t\treturn this.clusters.size();\n\t}", "title": "" }, { "docid": "b32a24a54eb3bfd5d1ad97c4da894f65", "score": "0.57699066", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getMdbClusterIdBytes() {\n java.lang.Object ref = \"\";\n if (addressCase_ == 5) {\n ref = address_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (addressCase_ == 5) {\n address_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" } ]
b9d2f376df11fce1d561b9dad26ea166
public int getHeight() Returns the height of the tree. precondition: none postcondition:
[ { "docid": "b7dfc8d68482cedb23403f396428da90", "score": "0.9157647", "text": "public int getHeight() {\n return treeHeight(_root, 0);\n \n }", "title": "" } ]
[ { "docid": "4d9c5cf7dbb06ec47fcb9b82726cece3", "score": "0.91300464", "text": "public int getHeight() {\r\n\t\treturn treeHeight(_root, 0);\r\n\r\n\t}", "title": "" }, { "docid": "0d3e690e08b50a23a6318a54989a34ad", "score": "0.87734765", "text": "public int getHeight() {\n\t\treturn getHeight(root);\n\t}", "title": "" }, { "docid": "04d517bf1bcd86e7cc397c671bee5aba", "score": "0.8746618", "text": "public int getHeight() {\r\n return root.getHeight(root);\r\n }", "title": "" }, { "docid": "d59bc1b02109b2f94860bbe23db81d71", "score": "0.86710507", "text": "public int getHeight(){\n\t\treturn getHeighthelper(root);\n\t}", "title": "" }, { "docid": "abd614b5cdb95e77de29c70b7a28866d", "score": "0.85126555", "text": "public int height() {\r\n\tint treeHeight = 0;\r\n\tif (root != null){\r\n\t Tree lTree = new Tree (root.getLeft());\r\n\t int lHeight = 1 + lTree.height();\r\n\t Tree rTree = new Tree(root.getRight());\r\n\t int rHeight = 1 + rTree.height();\r\n\t treeHeight = lHeight > rHeight ? lHeight : rHeight;\r\n\t}\r\n\treturn treeHeight;\r\n }", "title": "" }, { "docid": "e1cc2f5e08c27f8a2db441261b84664d", "score": "0.83805156", "text": "public int height() {\n\n\t\tif (root == null) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn height(root);\n\n\t}", "title": "" }, { "docid": "9422aacb305a83d563e3675d62c74303", "score": "0.8353252", "text": "public int height() {\n\t\tif (this.isEmpty())\n\t\t\treturn -1;\n\t\treturn this.root.getHeight();\n\t}", "title": "" }, { "docid": "30dd0ce6c6813e0c2a26eb464bc3cc58", "score": "0.83067137", "text": "public int height() {\n\t\treturn height(root);\n\t}", "title": "" }, { "docid": "30dd0ce6c6813e0c2a26eb464bc3cc58", "score": "0.83067137", "text": "public int height() {\n\t\treturn height(root);\n\t}", "title": "" }, { "docid": "f11eab31fcb59e7743524ab241b5138f", "score": "0.828266", "text": "public int height()\n {\n if (this.data == null || this.isLeaf()) //If the node is a leaf or does not have any data, there are no edges between the node and a leaf, thus height is 0\n {\n return 0;\n }\n else\n {\n int leftHeight = 0; //Set the left height and right height for simple assignment in the case that one child does not exist but the other does.\n int rightHeight = 0;\n \n if (leftChild != null) //Checks to make sure that a left child exists.\n leftHeight = leftChild.height(); //Recursively find the height of the left child.\n \n if (rightChild != null) //Checks to make sure that a right child exists.\n rightHeight = rightChild.height(); //Recursively find the height of the right child.\n \n if (rightHeight > leftHeight) //Return one plus the greater of the two children's heights.\n return 1 + rightHeight; \n else\n return 1 + leftHeight;\n }\n }", "title": "" }, { "docid": "696aedfe6dfd13bdfa4945f97f1b76c6", "score": "0.82791716", "text": "public int height()\r\n {\r\n return height(root);\r\n }", "title": "" }, { "docid": "1c2cfa0c50da8acf91092d9c01ff4032", "score": "0.827613", "text": "@Override\n\tpublic int height() {\n\t\treturn treeDictionary.height();\n\t}", "title": "" }, { "docid": "f6169b5b48b8d9388a1456685764caf0", "score": "0.82575214", "text": "public int height() {\r\n\t\tif (this == EditTree.NULL_NODE) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\tif (this.balance == Code.LEFT) {\r\n\t\t\treturn this.left.height() + 1;\r\n\t\t} else {\r\n\t\t\treturn this.right.height() + 1;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f5b0511238611f40d81afbfac48beea9", "score": "0.82527", "text": "public int getHeight() {\n\t\t\tint leftHeight = this.leftChild == null ? 0 : this.leftChild\n\t\t\t\t\t.getHeight() + 1;\n\t\t\tint rightHeight = this.rightChild == null ? 0 : this.rightChild\n\t\t\t\t\t.getHeight() + 1;\n\t\t\tif (leftHeight > rightHeight)\n\t\t\t\treturn leftHeight;\n\t\t\treturn rightHeight;\n\t\t}", "title": "" }, { "docid": "be4b468542b557a4ab86e1179a18d2b0", "score": "0.82508326", "text": "public int height()\r\n\t{\r\n\t\treturn this.heightHelper(this.root);\r\n\t}", "title": "" }, { "docid": "e62661144c1f65af019f01f56b9a594d", "score": "0.8246025", "text": "public int height() {\n return height(root);\n }", "title": "" }, { "docid": "3df563f74740ea94c7b527a4996826a7", "score": "0.8205647", "text": "@Override\n\tpublic int height() {\n\t\treturn height(root);\n\t}", "title": "" }, { "docid": "626c5906dbdd21d28054f0aefcea84a3", "score": "0.8195813", "text": "public int height() {\n return height(this.root);\n\n }", "title": "" }, { "docid": "912ae1a3307d4e3e697ff1ba1292d115", "score": "0.8186106", "text": "public int height() {\r\n\t\treturn height(root) - 1;\r\n\t}", "title": "" }, { "docid": "833b88ca142bdd7a49263315f365d123", "score": "0.81254864", "text": "public int height() {\n return (root == null ? -1 : root.getHeight());\n }", "title": "" }, { "docid": "1ed364068a4dfd219d3f12f5fa59e597", "score": "0.8037595", "text": "public int height() {\r\n \tif (this.leftChild == null && this.rightChild == null) \r\n return 0;\r\n \t\r\n else\r\n { \r\n // calculate the depth of each subtree\r\n \tint leftHeight = 0;\r\n \tint rightHeight = 0;\r\n \t\r\n if(this.leftChild!=null)\r\n \tleftHeight = this.leftChild.height();\r\n\r\n if(this.rightChild!=null)\r\n \trightHeight = this.rightChild.height(); \r\n \r\n // return larger one\r\n if (leftHeight > rightHeight) \r\n return (leftHeight + 1); \r\n else \r\n return (rightHeight + 1); \r\n }\r\n }", "title": "" }, { "docid": "546d16e52ee14ec9b9dca62ed19bc111", "score": "0.79714185", "text": "public int getHeight()\n\t{\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7965931", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7965931", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7965931", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7965931", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7965931", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7965931", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "216a6ae30aabfea740df8d5ed92ca893", "score": "0.7965931", "text": "public int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "bf62e636c73ac2cf4fc3fe7eb6c63959", "score": "0.7957248", "text": "public int getHeight() {\n\t\t\treturn height;\n\t\t}", "title": "" }, { "docid": "4294f36bea203f3869d2fd40e7fbb1df", "score": "0.7955498", "text": "public final int getHeight() {\n return height;\n }", "title": "" }, { "docid": "241b86ba466cef96c33dab752ea1f14c", "score": "0.7955483", "text": "public int getHeight() \r\n\t{\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "2b77e3e24ca5a8fca060902129301df0", "score": "0.79537636", "text": "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "2b77e3e24ca5a8fca060902129301df0", "score": "0.79537636", "text": "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "2b77e3e24ca5a8fca060902129301df0", "score": "0.79537636", "text": "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "a62eb84d351a85c04e5ded1234dca84f", "score": "0.7945688", "text": "public synchronized int getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "889c1aa8a621168706adb0ee2850ff0c", "score": "0.7944956", "text": "public int getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "949ff05d6f989d8b6b7177cafc8ebc06", "score": "0.7916968", "text": "public double getHeight() {\n return getBoundsInParent().getHeight();\n }", "title": "" }, { "docid": "dded6b60852c973732a988b179d0ad6a", "score": "0.79071736", "text": "public int getHeight(){\n\t\treturn height;\n\t}", "title": "" }, { "docid": "dded6b60852c973732a988b179d0ad6a", "score": "0.79071736", "text": "public int getHeight(){\n\t\treturn height;\n\t}", "title": "" }, { "docid": "c286e40605fb36af046eb194ceddd36d", "score": "0.79011583", "text": "public double getHeight();", "title": "" }, { "docid": "541ff0f9bc8aa8723cfa95cee62e1df3", "score": "0.78958225", "text": "public int getHeight() {\n\t\treturn this.height;\n\t}", "title": "" }, { "docid": "a5c2779c08322a64945db3e9244458a3", "score": "0.7894162", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "a5c2779c08322a64945db3e9244458a3", "score": "0.7894162", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "146663936cb627af21548c9f3e0f0637", "score": "0.7892414", "text": "public int getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "146663936cb627af21548c9f3e0f0637", "score": "0.7892414", "text": "public int getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "146663936cb627af21548c9f3e0f0637", "score": "0.7892414", "text": "public int getHeight() {\r\n return height;\r\n }", "title": "" }, { "docid": "f354d7e688129a066e63c7c1a13bd671", "score": "0.78880244", "text": "public int getHeight() {\n\t\treturn _height;\n\t}", "title": "" }, { "docid": "88e1ad5b45a62977538bd880151c1c26", "score": "0.7885483", "text": "public double getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "88e1ad5b45a62977538bd880151c1c26", "score": "0.7885483", "text": "public double getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "88e1ad5b45a62977538bd880151c1c26", "score": "0.7885483", "text": "public double getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "88e1ad5b45a62977538bd880151c1c26", "score": "0.7885483", "text": "public double getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "1a06027eae8474a97eb6c8409ace94b7", "score": "0.7882922", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "3f7d7904c223fbe95767e198af2eff12", "score": "0.78810155", "text": "public int getHeight(){\n\t\treturn this.height;\n\t}", "title": "" }, { "docid": "5189aff89d5b1c78ef660f5953f31844", "score": "0.7845007", "text": "public int getHeight();", "title": "" }, { "docid": "5189aff89d5b1c78ef660f5953f31844", "score": "0.7845007", "text": "public int getHeight();", "title": "" }, { "docid": "5189aff89d5b1c78ef660f5953f31844", "score": "0.7845007", "text": "public int getHeight();", "title": "" }, { "docid": "5189aff89d5b1c78ef660f5953f31844", "score": "0.7845007", "text": "public int getHeight();", "title": "" }, { "docid": "5189aff89d5b1c78ef660f5953f31844", "score": "0.7845007", "text": "public int getHeight();", "title": "" }, { "docid": "5189aff89d5b1c78ef660f5953f31844", "score": "0.7845007", "text": "public int getHeight();", "title": "" }, { "docid": "c6cfe2dcbc04857a20a78277634c6c36", "score": "0.7840976", "text": "public double getHeight() \n {\n return height;\n }", "title": "" }, { "docid": "725744efe988a68465d0a76e9fed06fd", "score": "0.7815622", "text": "public int getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "725744efe988a68465d0a76e9fed06fd", "score": "0.7815622", "text": "public int getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "725744efe988a68465d0a76e9fed06fd", "score": "0.7815622", "text": "public int getHeight() {\n return this.height;\n }", "title": "" }, { "docid": "8f21d0b6011d5d82eefb281c2b2fe20e", "score": "0.7812739", "text": "public double getHeight()\r\n {\r\n return height;\r\n }", "title": "" }, { "docid": "e8f88313e9efd17d95e20d6ad5055f01", "score": "0.78060776", "text": "public int getHeight(){\n\t\treturn height;\t\t\n\t}", "title": "" }, { "docid": "15c6cd7fd026d23f80942626273d016e", "score": "0.77880836", "text": "public double getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "15c6cd7fd026d23f80942626273d016e", "score": "0.77880836", "text": "public double getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "3a730ba9cae35471effce707b0aef144", "score": "0.77869517", "text": "public Integer getHeight() {\n return height;\n }", "title": "" }, { "docid": "b99679e82fb54396bed9f5c3fec8ca4a", "score": "0.77844924", "text": "public int getHeight() {\n return _height;\n }", "title": "" }, { "docid": "2578a416ead7706d07fc0b783af3dd49", "score": "0.7767924", "text": "public float getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "2578a416ead7706d07fc0b783af3dd49", "score": "0.7767924", "text": "public float getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "2578a416ead7706d07fc0b783af3dd49", "score": "0.7767924", "text": "public float getHeight() {\n\t\treturn height;\n\t}", "title": "" }, { "docid": "121aefdf04f25ead3a67147c5f813987", "score": "0.7767384", "text": "Integer getHeight();", "title": "" }, { "docid": "fd02ec5a97341cbe888626430ce50198", "score": "0.7763403", "text": "public static int height (Tree t) {\r\n if (t == null) return 0;\r\n else return (1 + (Math.max( height(t.left) , height(t.right) )));\r\n }", "title": "" }, { "docid": "fdac0ce6318d1d407131c8b066e07359", "score": "0.77557313", "text": "protected static int heightOf(FHs_treeNode t)\r\n { return t == null? -1 : t.getHeight(); }", "title": "" }, { "docid": "2d03b2756bf2b9afc4341a31181c278b", "score": "0.7753253", "text": "double getLevelHeight();", "title": "" }, { "docid": "e9ea0d197dc725d306f2d753851afb03", "score": "0.77529955", "text": "public int height() {\n return 1 + Math.max(this.left.height(), this.right.height());\n }", "title": "" }, { "docid": "a639fc388e9c58447f9b30e44a407a2e", "score": "0.7752794", "text": "double getHeight();", "title": "" }, { "docid": "30860f26bdc421bfaea9aa413fe7b976", "score": "0.7752031", "text": "public int getHeight() {\n return height;\n }", "title": "" }, { "docid": "d416054ecb32cb7fee5dbe6ee0c3e7f2", "score": "0.7738813", "text": "public double getHeight()\n {\n return this.height;\n }", "title": "" }, { "docid": "79778275a7fd2803c332747ec8dc3c66", "score": "0.7735379", "text": "public int getHeight()\n {\n return height;\n }", "title": "" }, { "docid": "c7dc8d47fc676ece0095f5ee48daaeb6", "score": "0.77243763", "text": "public float getHeight() {\n return mHeight;\n }", "title": "" }, { "docid": "ec5eef139b8ccea5ca3a0d761cafee80", "score": "0.77194", "text": "@Override\r\n\tpublic double getHeight() {\n\t\treturn height;\r\n\t}", "title": "" }, { "docid": "45f0eba1a1bc554fea6a1bfb2c1e10d4", "score": "0.7718698", "text": "public float getHeight() {\r\n\t\treturn this.height;\r\n\t}", "title": "" }, { "docid": "c063aa056fb4be06a7dccd4154d416a2", "score": "0.77152187", "text": "public float getHeight() {\n\t\treturn this.height;\n\t\t\n\t}", "title": "" }, { "docid": "96a81330d40a2226b716c6bbab93385f", "score": "0.7711764", "text": "public Integer getHeight() {\n return this.height;\n }", "title": "" } ]
97e5527aa82d8d533b25bf4c94c1e91b
Uses the incoming JSON representation of a tasking job to generate a list of CcdpThreadRequest. The data needs to have an array of either Threads, Tasks, or Jobs. If neither of the three types of tasking is found, then it will throw an IllegalArgumentException.
[ { "docid": "3c09a16ab7bd5d6653922280a8bb85ce", "score": "0.72140265", "text": "public static List<CcdpThreadRequest> toCcdpThreadRequest( JsonNode json ) \n throws JsonProcessingException\n {\n List<CcdpThreadRequest> requests = new ArrayList<CcdpThreadRequest>();\n \n // first let's look for Threads; the simplest case\n if( json.has(\"threads\"))\n {\n logger.debug(\"Processing Threads\");\n JsonNode threads = json.get(\"threads\");\n \n for( int i=0; i < threads.size(); i++ )\n {\n CcdpThreadRequest req = \n mapper.treeToValue(threads.get(i), CcdpThreadRequest.class);\n \n // Making sure each task has a command\n for( CcdpTaskRequest task : req.getTasks() )\n {\n if( task.getCommand().isEmpty() && task.getServerless() == false)\n throw new RuntimeException(\"The command is required\");\n }\n \n requests.add(req);\n } \n }\n \n // In case there are some Tasks without a Thread information\n if( json.has(\"tasks\"))\n {\n logger.debug(\"Processing Tasks\");\n \n JsonNode tasks = json.get(\"tasks\");\n CcdpThreadRequest request = new CcdpThreadRequest();\n String uuid = UUID.randomUUID().toString();\n request.setThreadId(uuid);\n \n for( int i=0; i < tasks.size(); i++ )\n {\n CcdpTaskRequest task = \n mapper.treeToValue(tasks.get(i), CcdpTaskRequest.class);\n\n // Don't allow tasks with no sid\n if ( task.getSessionId() == null)\n {\n logger.debug(\"Ignoring a task without a session ID:\");\n logger.debug(\"Ignored task:\\n\" + task.toPrettyPrint());\n continue;\n }\n // if at least one of them has a session-id, then use is\n else if( request.getSessionId() == null )\n request.setSessionId( task.getSessionId() );\n\n // if the request already has a session and it does not match the task, discard the task\n else if ( !task.getSessionId().equals(request.getSessionId()) )\n {\n logger.debug(\"Ignoring task with SID: \" + task.getSessionId() +\n \" because it doesn't match the request id: \" + request.getSessionId());\n logger.debug(\"Ignored task:\\n\" + task.toPrettyPrint());\n continue;\n }\n // If task id and request id match\n else\n logger.debug(\"Task ID matched request ID\");\n\n // making sure the task has a command if it isn't serverless\n if( !task.getServerless() && task.getCommand().isEmpty() )\n throw new RuntimeException(\"The command is required\");\n \n request.getTasks().add(task);\n \n }\n requests.add(request);\n }\n \n // Need to create a Task for each Job and then attach them to a Thread so\n // it can be added to the Thread list. If they are just jobs then need to \n // be treated as separate threads so they can run in parallel\n if( json.has(\"jobs\"))\n {\n logger.debug(\"Processing Jobs\");\n \n JsonNode jobs = json.get(\"jobs\");\n \n for( int i=0; i < jobs.size(); i++ )\n {\n CcdpThreadRequest request = new CcdpThreadRequest();\n \n request.setThreadId( UUID.randomUUID().toString() );\n \n CcdpTaskRequest task = new CcdpTaskRequest();\n task.setTaskId( UUID.randomUUID().toString() );\n \n JsonNode job = jobs.get(i);\n \n JsonNode cmd, cfg;\n \n if( job.has(\"cpu\") )\n task.setCPU( job.get(\"cpu\").asDouble() );\n if( job.has(\"node-type\") )\n {\n String type = job.get(\"node-type\").asText();\n task.setNodeType( type.toUpperCase() );\n }\n else\n {\n task.setNodeType(\"DEFAULT\");\n }\n \n if( job.has(\"mem\") )\n task.setMEM( job.get(\"mem\").asDouble() );\n if( job.has(CcdpConfigParser.KEY_SESSION_ID) )\n {\n String sid = job.get(CcdpConfigParser.KEY_SESSION_ID).asText();\n task.setSessionId(sid);\n request.setSessionId(sid);\n }\n \n if( (!job.has(CFG_SERVERLESS) || (job.has(CFG_SERVERLESS) && !job.get(CFG_SERVERLESS).asBoolean())) && job.has(\"command\") )\n {\n cmd = job.get(\"command\");\n List<String> args = new ArrayList<String>();\n for(int n = 0; n < cmd.size(); n++ )\n args.add( cmd.get(n).asText() );\n \n task.setCommand(args);\n }\n else if (job.has(CFG_SERVERLESS) && job.get(CFG_SERVERLESS).asBoolean())\n {\n logger.debug(\"Serverless Job, command not required\");\n Map<String, String> config = new HashMap<String, String>();\n cfg = job.get(CFG_SERVERLESS_CONFIG);\n try\n {\n task.setServeless(true);\n \n List<String> args = new ArrayList<String>();\n for(int n = 0; n < job.get(CFG_SERVERLESS_ARGS).size(); n++ )\n args.add( job.get(CFG_SERVERLESS_ARGS).get(n).asText() );\n task.setServerArgs(args);\n \n config.put(S_CFG_PROVIDER, cfg.get(S_CFG_PROVIDER).asText());\n config.put(S_CFG_GATEWAY, cfg.get(S_CFG_GATEWAY).asText());\n config.put(S_CFG_BUCKET_NAME, cfg.get(S_CFG_BUCKET_NAME).asText());\n config.put(S_CFG_ZIP_FILE, cfg.get(S_CFG_ZIP_FILE).asText());\n config.put(S_CFG_MOD_NAME, cfg.get(S_CFG_MOD_NAME).asText());\n config.put(S_CFG_KEEP_FILES, cfg.get(S_CFG_KEEP_FILES).asText());\n config.put(S_CFG_VERB_LEVEL, cfg.get(S_CFG_VERB_LEVEL).asText());\n }\n catch (Exception e)\n {\n logger.debug(\"A necessary field was missing from the serverless task.\");\n e.printStackTrace();\n }\n // Add local and remote save locations if they are given\n if ( cfg.has(S_CFG_LOCAL_FILE) && cfg.get(S_CFG_LOCAL_FILE) != null )\n config.put(S_CFG_LOCAL_FILE, cfg.get(S_CFG_LOCAL_FILE).asText());\n if ( cfg.has(S_CFG_REMOTE_FILE) && cfg.get(S_CFG_REMOTE_FILE) != null )\n config.put( S_CFG_REMOTE_FILE, cfg.get(S_CFG_REMOTE_FILE).asText() );\n task.setServelessCfg(config);\n }\n else\n {\n throw new RuntimeException(\"The command is required\");\n }\n \n request.getTasks().add(task);\n requests.add(request);\n }\n }\n \n if( requests.size() == 0 )\n {\n String txt = \"Could not find neither Threads, Tasks, or Jobs. Please\"\n + \" make sure the tasking configuration is properly set\";\n throw new IllegalArgumentException(txt);\n }\n return requests;\n }", "title": "" } ]
[ { "docid": "6310af866c7e45f24f9c13b7a4e8db52", "score": "0.6733126", "text": "public static List<CcdpThreadRequest> toCcdpThreadRequest( String data )\n throws JsonProcessingException, IOException\n {\n JsonNode node = mapper.readTree( data );\n \n return CcdpUtils.toCcdpThreadRequest(node);\n }", "title": "" }, { "docid": "bbacea50dc1f0edea18e0a7c05a54b5a", "score": "0.5551374", "text": "private ThreadingInfo processThreading(JsonNode threadingNode) {\n\n if(threadingNode.isMissingNode()) {\n return new ThreadingInfo(1,false, 0);\n }\n\n Iterator<String> fields = threadingNode.fieldNames();\n int threads = 1;\n boolean parallel = false;\n int sleep = 0;\n while (fields.hasNext()) {\n\n String field = fields.next();\n\n switch (field) {\n case \"threads\":\n threads = threadingNode.get(field).asInt();\n break;\n case \"parallel\":\n parallel = threadingNode.get(field).asBoolean();\n break;\n case \"sleep\":\n sleep = threadingNode.get(field).asInt();\n break;\n default:\n log.warn(\"Test contains an unrecognized Field: {} in {}\", field, threadingNode.toString());\n break;\n }\n }\n\n return new ThreadingInfo(threads, parallel, sleep);\n }", "title": "" }, { "docid": "7daa0eef11706c8b4e473db5dcf074e4", "score": "0.53660995", "text": "private ArrayList<Thread> getDataSet() {\n\n final ArrayList<Thread> list = new ArrayList<>();\n //bundle.putString(\"coursecode\",\"cop290\");\n String url = bundle.getString(\"url\") + \"/courses/course.json/\" + bundle.getString(\"coursecode\") + \"/threads\";\n RequestQueue q = Volley.newRequestQueue(ctx);\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response){\n\n try {\n JSONArray coursethreads = response.getJSONArray(\"course_threads\");\n for(int i=0;i<coursethreads.length();i++)\n {\n Thread th = new Thread();\n JSONObject thread = (JSONObject) coursethreads.get(i);\n th.user_id = thread.getString(\"user_id\");\n th.descriptionTh = thread.getString(\"description\");\n th.title = thread.getString(\"title\");\n th.created_at = thread.getString(\"created_at\");\n th.regiscourseid = thread.getString(\"registered_course_id\");\n th.updatedAt = thread.getString(\"updated_at\");\n th.Threadid = thread.getString(\"id\");\n list.add(th);\n }\n\n } catch (JSONException e) {\n Toast.makeText(ctx, \"Error loading threads\", Toast.LENGTH_LONG).show();\n }\n\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(ctx,\"Error Loading threads\",Toast.LENGTH_LONG).show();\n }\n });\n q.add(jsonObjectRequest);\n\n //TODO: list contains all the thread of the course\n\n return list;\n }", "title": "" }, { "docid": "6b7779e2567077aef0c17c7c6e4d17a2", "score": "0.5314606", "text": "public static List<CcdpThreadRequest> toCcdpThreadRequest( File file )\n throws JsonProcessingException, IOException\n {\n // loading Jobs from the command line\n if( file != null && file.isFile() )\n {\n byte[] data = Files.readAllBytes( Paths.get( file.getAbsolutePath() ) );\n return CcdpUtils.toCcdpThreadRequest(new String( data, \"UTF-8\"));\n }\n \n return null;\n }", "title": "" }, { "docid": "52459c0b4f303123ca20a6c5c4a62da8", "score": "0.50878656", "text": "public ArrayList<PostThread> getThreadsFromString(String s) {\r\n\t\tArrayList<PostThread> threads = new ArrayList<PostThread>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tJSONObject jObj = new JSONObject(s);\r\n\t\t\tJSONArray jArray = new JSONArray(jObj.getString(\"posts_older\"));\r\n\t\t\tfor (int i = 0 ; i < jArray.length() ; i++) {\r\n\t\t\t\tthreads.add(createThread(new JSONObject(jArray.getString(i)), 0));\r\n\t\t\t}\r\n\t\t\treturn threads;\r\n\t\t} catch (JSONException e) {\r\n\t\t\tLog.d(\"jsonError\", \"JSONException\");\r\n\t\t} \r\n\t\treturn new ArrayList<PostThread>();\r\n\t}", "title": "" }, { "docid": "99ea0268f12d0f3a4d4ff810dedff829", "score": "0.5000718", "text": "public CompositeData[] getThreadInfo();", "title": "" }, { "docid": "9e55cec1e8a5df1ebcd45111d7875c00", "score": "0.49433586", "text": "private void setupData(){\n queue= Volley.newRequestQueue(getBaseContext());\n intent = getIntent();\n\n String data = intent.getStringExtra(\"data\");\n System.out.println(\"This is the data stored in the intent: \" + data);\n try {\n ja = new JSONArray(data);\n }catch(JSONException e){\n e.printStackTrace();\n }\n\n //This code looks redudant but it works, might remove later\n ArrayList<String> urls = new ArrayList<>();\n for(int i = 0; i < ja.length(); i++){\n try {\n urls.add(ja.getString(i));\n }catch(JSONException e){\n e.printStackTrace();\n }\n }\n totalThreads = urls.size();\n for(int i = 0; i < urls.size(); i++){\n StringRequest jsonArrayRequest = new StringRequest(\n urls.get(i), new Response.Listener<String>() {\n\n\n @Override\n public void onResponse(String response) {\n try{\n System.out.println(\"Thread loaded!\");\n addWebmPostsFromThreadJSON(response);\n }catch(JSONException e){\n\n }\n\n }\n\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // TODO Auto-generated method stub\n error.printStackTrace();\n\n }\n });\n System.out.println(\"Sending request to \" + urls.get(i));\n queue.add(jsonArrayRequest);\n SystemClock.sleep(5000);\n System.out.println(\"Request added to que!\");\n\n\n }\n }", "title": "" }, { "docid": "3c0b877c325e6cf5f4f895d5f5e44e90", "score": "0.4863665", "text": "public static ClientThreadGetListRequestBuilder clientThreadGetListRequest() {\n return new ClientThreadGetListRequestBuilder(new ClientThreadGetListRequest());\n }", "title": "" }, { "docid": "756d17893e529044ecee44d712eb0a59", "score": "0.47745925", "text": "@JsonGetter(value = \"threads\")\n Integer getThreads();", "title": "" }, { "docid": "cef9d0898de806298bf6a7804a57dad5", "score": "0.47340086", "text": "Thread[] getThreads();", "title": "" }, { "docid": "865cb8fa2452697840c3a035012a75ce", "score": "0.45906144", "text": "private void doService(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException, IOException\r\n {\n response.setContentType(\"application/json\");\r\n // Send back the response JSON message\r\n PrintWriter out = response.getWriter();\r\n\r\n // Get received JSON data from HTTP request\r\n BufferedReader br = new BufferedReader(new InputStreamReader(request.getInputStream()));\r\n String jsonStr = \"\";\r\n /*if(br != null){\r\n jsonStr = br.readLine();\r\n }\r\n \r\n // Create JsonReader object\r\n StringReader strReader = new StringReader(jsonStr);\r\n JsonReader reader = Json.createReader(strReader);\r\n\r\n // Get the singular JSON object (name:value pair) in this message. \r\n JsonObject obj = reader.readObject();\r\n // From the object get the array named \"inList\"\r\n JsonArray inArray = obj.getJsonArray(\"inList\");*/\r\n\r\n //Continue reading json string until it reaches the end\r\n while((test = br.readLine()) != null){\r\n //Make sure null is not added on to jsonStr\r\n if(test != null){\r\n jsonStr += test;\r\n }\r\n }\r\n try {\r\n //Create a JsonArray from jsonStr\r\n StringReader strReader = new StringReader(jsonStr);\r\n JsonReader reader = Json.createReader(strReader);\r\n JsonObject obj = reader.readObject();\r\n inArray = obj.getJsonArray(\"inList\");\r\n }\r\n catch (Exception e){\r\n out.print(\"{\\\"Error\\\" : \\\"Malformed JSON\\\"}\");\r\n return;\r\n }\r\n\r\n Comparator<Job> comparator = new JobComparator();\r\n PriorityQueue<Job> pQueue = new PriorityQueue<>(inArray.size(),comparator);\r\n String name;\r\n int pri;\r\n\r\n for(int i=0; i < inArray.size(); i++){\r\n if(inArray.getJsonObject(i).getString(\"cmd\").equals(\"enqueue\")) {\r\n name = inArray.getJsonObject(i).getString(\"name\");\r\n pri = inArray.getJsonObject(i).getInt(\"pri\");\r\n if(pri < 0){\r\n out.println(\"{ \\\"message\\\" : \\\"Priority < zero\\\"}\");\r\n return;\r\n }\r\n pQueue.add(new Job(name, pri));\r\n }\r\n else if(inArray.getJsonObject(i).getString(\"cmd\").equals(\"dequeue\")){\r\n if(pQueue.poll() == null){\r\n out.println(\"{ \\\"message\\\" : \\\"Dequeued empty priority queue\\\"}\");\r\n return;\r\n }\r\n }\r\n else {\r\n out.println(\"{ \\\"message\\\" : \\\"Malformed JSON\\\"}\");\r\n return;\r\n }\r\n }\r\n\r\n // Build array for printing\r\n JsonArrayBuilder outArrayBuilder = Json.createArrayBuilder();\r\n int size = pQueue.size();\r\n for (int i = 0; i < size; i++) {\r\n outArrayBuilder.add(pQueue.poll().getJobName());\r\n }\r\n\r\n //Print results\r\n out.println(\"{ \\\"outList\\\" : \" + outArrayBuilder.build().toString() + \"}\");\r\n\r\n }", "title": "" }, { "docid": "71227f14ac355b8d9bf74e1e2f322751", "score": "0.45575923", "text": "public ThreadInfo[] getThreadInfo(long[] threadIds);", "title": "" }, { "docid": "d66b21ef9c3aa71fd105f5a16245baa9", "score": "0.45342985", "text": "public static List<MapRouletteTask> parseTasks(InputStream is) throws IOException, NumberFormatException {\n List<MapRouletteTask> result = new ArrayList<>();\n JsonReader reader = new JsonReader(new InputStreamReader(is));\n try {\n reader.beginArray();\n while (reader.hasNext()) {\n reader.beginObject();\n MapRouletteTask task = new MapRouletteTask();\n task.open();\n while (reader.hasNext()) {\n switch (reader.nextName()) {\n case \"id\":\n task.id = reader.nextLong();\n Log.d(DEBUG_TAG, \"got maproulette task is \" + task.id);\n break;\n case \"parentName\":\n task.parentName = reader.nextString();\n break;\n case \"parentId\":\n task.parentId = reader.nextLong();\n Log.d(DEBUG_TAG, \"got maproulette task parent \" + task.parentId);\n if (!App.getTaskStorage().getChallenges().containsKey(task.parentId)) {\n App.getTaskStorage().getChallenges().put(task.parentId, null);\n }\n break;\n case \"point\":\n reader.beginObject();\n while (reader.hasNext()) {\n switch (reader.nextName()) {\n case \"lat\":\n task.lat = (int) (reader.nextDouble() * 1E7D);\n break;\n case \"lng\":\n task.lon = (int) (reader.nextDouble() * 1E7D);\n break;\n default:\n Log.e(DEBUG_TAG, \"Unexpected element in point\");\n }\n }\n reader.endObject();\n break;\n case \"status\":\n task.setState(TaskFragment.pos2state(reader.nextInt()));\n break;\n // case \"modified\":\n // try {\n // task.update = DateFormatter.getDate(DATE_PATTERN_OSMOSE_BUG_UPDATED_AT,\n // reader.nextString());\n // } catch (java.text.ParseException pex) {\n // // tasks.update = new Date();\n // }\n // break;\n default:\n reader.skipValue();\n }\n }\n reader.endObject();\n result.add(task);\n }\n reader.endArray();\n } catch (IOException | IllegalStateException ex) {\n Log.d(DEBUG_TAG, \"Ignoring \" + ex);\n } finally {\n SavingHelper.close(reader);\n }\n return result;\n }", "title": "" }, { "docid": "885df5f30857fbc4f92eb9645df878dd", "score": "0.45121467", "text": "private void makeJsonArrayRequest() {\n\n\t\tprogressDialog.setMessage(\"Loading Please wait..\");\n\t\tprogressDialog.setCancelable(false);\n\t\tprogressDialog.setIndeterminate(true);\n\t\tprogressDialog.show();\n\n\t\tString urljsonArry = \"http://166.62.81.118:18080/SpringRestCrud/adminnotification/allladminnotes/\"\n\t\t\t\t+ 1 + \"\";\n\t\tJsonArrayRequest req = new JsonArrayRequest(urljsonArry,\n\t\t\t\tnew Response.Listener<JSONArray>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResponse(JSONArray response) {\n\t\t\t\t\t\tLog.d(TAG, response.toString());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Parsing json array response\n\t\t\t\t\t\t\t// loop through each json object\n\t\t\t\t\t\t\tfor (int i = 0; i < response.length(); i++) {\n\n\t\t\t\t\t\t\t\tJSONObject obj = response.getJSONObject(i);\n\n\t\t\t\t\t\t\t\tJobs jobs = new Jobs();\n\t\t\t\t\t\t\t\tjobs.setAdvdetails(obj.getString(\"advdetails\"));\n\t\t\t\t\t\t\t\tjobs.setReqdate(obj.getString(\"reqdate\"));\n\n\t\t\t\t\t\t\t\t// add job details data into List here.\n\t\t\t\t\t\t\t\tjobsList.add(jobs);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// sending joblist List to notifiaction method to\n\t\t\t\t\t\t\t// show notification when launch the application.\n\n\t\t\t\t\t\t\tshowNotification(jobsList);\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t// Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t// \"Error: \" + e.getMessage(),\n\t\t\t\t\t\t\t// Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}, new Response.ErrorListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\t\t\t// VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n\t\t\t\t\t\t// Toast.makeText(getApplicationContext(),\n\t\t\t\t\t\t// error.getMessage(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t// Adding request to request queue\n\t\tAppController.getInstance().addToRequestQueue(req);\n\n\t}", "title": "" }, { "docid": "c1b1679e6d7dafac2b4cb80f4a653a93", "score": "0.4497399", "text": "private Task createClassFromJson (JsonObject obj) {\n\n String taskType = obj.get(\"taskType\").toString();\n\n if (taskType.contains(TODO)) {\n return gson.fromJson(obj.toString(), Todo.class);\n\n } else if (taskType.contains(DEADLINE)) {\n return gson.fromJson(obj.toString(), Deadline.class);\n\n } else if (taskType.contains(EVENT)) {\n return gson.fromJson(obj.toString(), Event.class);\n\n }\n\n // Case should never happen\n return null;\n }", "title": "" }, { "docid": "980e010eb9f90fa7d97a440e3bb8e61f", "score": "0.44730395", "text": "private static List<Tasks> createTasks(int userId, int cloudlets, int idShift, int START, int END) throws NumberFormatException, IOException{\n\t\tLinkedList<Tasks> list = new LinkedList<Tasks>();\n\t\t\n\t\tdouble[] arrList = new double[24000];\n\t\tFile file = new File(\"/home/c00303945/eclipse-workspace/SummerProject/arrival1.dat\");\n\t\t\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t \n\t try {\n\t int index = 0;\n\t String line = null;\n\t while ((line= br.readLine())!=null) {\n\t \n\t String[] lineArray = line.split(\",\");\n\t arrList[index]= Double.parseDouble(lineArray[2]);\n\t index++;\n\t \t\t\t\t\t\t\t} \n\t }catch (FileNotFoundException e) {\n\t e.printStackTrace();\n\t } \n\n\t\t//cloudlet parameters\n\t\tlong length = 4000;\n\t\tlong fileSize = 300;\n\t\tlong outputSize = 300;\n\t\tint pesNumber = 1;\n\t\tint taskType = 1; \n\t\tdouble arrivalTime = 0.0 ; \n\t\tdouble deadline = 0.0;\n\t\tUtilizationModel utilizationModel = new UtilizationModelFull();\n\n\t\tTasks[] task = new Tasks[cloudlets];\n\t\tRandom rObj = new Random();\n\t\trObj.setSeed(300);\n\t\t\n\n\t\tfor(int i=0;i<cloudlets;i++){\n\t\t\t\n\t\t\tlength = gaussianMiGenerator(500, 3800,rObj,START,END);\n\t\t\t\n\t\t\tif(length < 3800) {\n\t\t\t\ttaskType = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttaskType = 2;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttask[i] = new Tasks(idShift + i, taskType,length, pesNumber, fileSize, outputSize, utilizationModel, utilizationModel, utilizationModel, deadline , arrList[i]);\n\t\t\ttask[i].setUserId(userId);\n\t\t\tlist.add(task[i]);\n\t\t}\n\n\t\treturn list;\n\t}", "title": "" }, { "docid": "9940009fb1ac5322a2b21f9843ffee8f", "score": "0.44525436", "text": "public Threads(SimpleBlockingQueue objectQueue, List<T> externalList) {\n this.objectQueue = objectQueue;\n this.externalList = externalList;\n }", "title": "" }, { "docid": "67bbdf6e654863a826f106fc1f829366", "score": "0.4450856", "text": "public ArrayList<PostThread> getNewestFromString(String s) {\r\n\t\tArrayList<PostThread> threads = new ArrayList<PostThread>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tJSONObject jObj = new JSONObject(s);\r\n\t\t\tJSONArray jArray = jObj.getJSONArray(\"activity\");\r\n\r\n\t\t\tfor (int i = 0 ; i < jArray.length() ; i++) {\r\n\t\t\t\t\r\n\t\t\t\tJSONObject newObj = jArray.getJSONObject(i).getJSONObject(\"newest_post\");\r\n\t\t\t\tString count = jArray.getJSONObject(i).getString(\"unread_count\");\r\n\t\t\t\tif (jArray.getJSONObject(i).getInt(\"unread_count\") == 0) {\r\n\t\t\t\t\tcount = \"null\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthreads.add(new PostThread(newObj.getString(\"date\"), \r\n\t\t\t\t\t\tnewObj.getInt(\"number\"), \r\n\t\t\t\t\t\tnewObj.getString(\"subject\"),\r\n\t\t\t\t\t\tnewObj.getString(\"author_name\"),\r\n\t\t\t\t\t\tnewObj.getString(\"author_email\"),\r\n\t\t\t\t\t\tnewObj.getString(\"newsgroup\"),\r\n\t\t\t\t\t\tfalse,\r\n\t\t\t\t\t\tcount,\r\n\t\t\t\t\t\tjArray.getJSONObject(i).getString(\"personal_class\"),\r\n\t\t\t\t\t\tnewObj.getString(\"sticky_until\")));\r\n\t\t\t}\r\n\t\t} catch (JSONException e) {\r\n\t\t\tLog.d(\"jsonError\", \"JSONException\");\r\n\t\t}\r\n\t\treturn threads;\r\n\t}", "title": "" }, { "docid": "a33502e16ba3fb273330b2a6f31c5777", "score": "0.4449903", "text": "List<Task> findComposeTasksByWallIdAndTypesAndStatus(int wallId, TaskStatus[] status, Integer... types);", "title": "" }, { "docid": "98dab6c6bfc35a36694f1df26ddf651d", "score": "0.43943918", "text": "java.util.List<? extends com.ylpu.thales.scheduler.core.rpc.entity.JobRequestRpcOrBuilder> getDependenciesOrBuilderList();", "title": "" }, { "docid": "380264b71f35cae76b48297a82586af9", "score": "0.43744573", "text": "public TaskContext(Map<String, String[]> requestParameters, final Map<String, List<CategoryType>> categoryHashMap) {\n \n List<CategoryType> category = new ArrayList<CategoryType>();\n final Code task = CodeUtility.getCode( CodeConstants.TASKCONTEXT );\n if ( requestParameters.containsKey( CodeConstants.TASKCONTEXT_CODE ) )\n {\n task.setCode( requestParameters.get( CodeConstants.TASKCONTEXT_CODE )[0] );\n final CategoryType c = new CategoryType();\n c.setTerm( requestParameters.get( CodeConstants.TASKCONTEXT_CODE )[0] );\n c.setScheme( CodeConstants.TASKCONTEXT_CODE );\n category.add( c );\n }\n if ( requestParameters.containsKey( CodeConstants.TASKCONTEXT_DISPLAYNAME ) )\n {\n task.setDisplayName( requestParameters.get( CodeConstants.TASKCONTEXT_DISPLAYNAME )[0] );\n final CategoryType c = new CategoryType();\n c.setTerm( requestParameters.get( CodeConstants.TASKCONTEXT_DISPLAYNAME )[0] );\n c.setScheme( CodeConstants.TASKCONTEXT_DISPLAYNAME );\n category.add( c );\n }\n if ( requestParameters.containsKey( CodeConstants.TASKCONTEXT_CODESYSTEM ) )\n {\n task.setCodeSystem( requestParameters.get( CodeConstants.TASKCONTEXT_CODESYSTEM )[0] );\n final CategoryType c = new CategoryType();\n c.setTerm( requestParameters.get( CodeConstants.TASKCONTEXT_CODESYSTEM )[0] );\n c.setScheme( CodeConstants.TASKCONTEXT_CODESYSTEM );\n category.add( c );\n }\n this.setCode( task );\n categoryHashMap.put( CodeConstants.TASK_KEY, category );\n\n }", "title": "" }, { "docid": "bd976b686447ca48da8f9b7b74d57c73", "score": "0.43684882", "text": "@Override\r\n\tpublic List<ResponseTaxiNum> parseArrayJSON(JSONObject jsonObj)\r\n\t\t\tthrows NetRequestException {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "1e518b079ce82d7b6cbff691a005ea94", "score": "0.4313792", "text": "void createRequest(List<Request> requests);", "title": "" }, { "docid": "6688054c7e5c62be229fbbc6dfe11d68", "score": "0.4309167", "text": "private static Task processData(char taskType, String taskDescription) {\n Task processedTask;\n switch (taskType) {\n case 'T':\n processedTask = new Todo(taskDescription);\n break;\n case 'D':\n taskDescription = taskDescription.replaceAll(\"\\\\(\", \"/\")\n .replaceAll(\"\\\\)\", \"\");\n processedTask = new Deadline(taskDescription);\n break;\n case 'E':\n taskDescription = taskDescription.replaceAll(\"\\\\(\", \"/\")\n .replaceAll(\"\\\\)\", \"\");\n processedTask = new Event(taskDescription);\n break;\n default:\n throw new DucSyntaxErrorException(String.valueOf(taskType));\n }\n return processedTask;\n }", "title": "" }, { "docid": "3fde36f31ab232abeee8bd76292bc964", "score": "0.429784", "text": "public ListJobs(String jobTitle,int startingTime, int time) {\r\n this.jobTitle = jobTitle;\r\n this.startingTime = startingTime;\r\n this.time = time;\r\n }", "title": "" }, { "docid": "7c6ea1288940732d5760bc04f133a96e", "score": "0.42853257", "text": "public ArrayList<PostThread> getSearchFromString(String s) {\r\n\t\tArrayList<PostThread> threads = new ArrayList<PostThread>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tJSONObject jObj = new JSONObject(s);\r\n\t\t\tJSONArray jArray = jObj.getJSONArray(\"posts_older\");\r\n\r\n\t\t\tfor (int i = 0 ; i < jArray.length() ; i++) {\r\n\t\t\t\tJSONObject newObj = jArray.getJSONObject(i).getJSONObject(\"post\");\r\n\t\t\t\tthreads.add(new PostThread(newObj.getString(\"date\"), \r\n\t\t\t\t\t\tnewObj.getInt(\"number\"), \r\n\t\t\t\t\t\tnewObj.getString(\"subject\"),\r\n\t\t\t\t\t\tnewObj.getString(\"author_name\"),\r\n\t\t\t\t\t\tnewObj.getString(\"author_email\"),\r\n\t\t\t\t\t\tnewObj.getString(\"newsgroup\"),\r\n\t\t\t\t\t\tfalse,\r\n\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\tnewObj.getString(\"sticky_until\")));\r\n\t\t\t}\r\n\t\t} catch (JSONException e) {\r\n\t\t\tLog.d(\"jsonError\", \"JSONException\");\r\n\t\t}\r\n\t\treturn threads;\r\n\t}", "title": "" }, { "docid": "32751a5dbb3b5fde0398bcd251dd40f9", "score": "0.4276351", "text": "@POST\n\t@Path(\"/many/{id}\")\n\t@RequiresAuthentication\n\t@ApiOperation(\"Instantiate many Things from a ThingType\")\n\tpublic Response instantiateManyThings(\n\t\t\t@ApiParam(value = \"thingType id\", required = true) @PathParam(\"id\") Long thingTypeId,\n\t\t\t@ApiParam(value = \"group id\", required = true) @QueryParam(\"groupId\") Long groupId,\n\t\t\t@ApiParam(value = \"list of serial numbers, one serial number per line\", required = true) String body,\n\t\t\t@ApiParam(value = \"default values\", required = false) @QueryParam(\"useDefaultValues\") Boolean\n\t\t\t\t\tuseDefaultValues) {\n\n\n\t\tlogger.info(\"[INSTANTIATEMANY] Requests in Progress: \"+requestsInProgress);\n\t\tif(maxRequestsInProgress>0) {\n\t\t\tlogger.info(\"[INSTANTIATEMANY] Max Requests Allowed: \" + maxRequestsInProgress);\n\t\t}else{\n\t\t\tlogger.info(\"[INSTANTIATEMANY] Max Requests Allowed: No limit\");\n\t\t}\n\t\tint maxPoolSize = ((ThreadPoolExecutor) executor).getMaximumPoolSize();\n\t\tint activeCount = ((ThreadPoolExecutor) executor).getActiveCount();\n\t\tint queueSize = ((ThreadPoolExecutor) executor).getQueue().size();\n\t\tlogger.info(\"[INSTANTIATEMANY] maxPoolSize: \"+maxPoolSize+\" | activeCount: \"+activeCount+\" | queueSize: \"+queueSize);\n\t\tString tmpMsg=\"\";\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] lines = body.split(\"\\n\");\n\t\tint count = lines.length;\n\t\tif((count==1)||(maxRequestsInProgress==0)||(requestsInProgress<=maxRequestsInProgress)) {\n\t\t\tmodifyRequestsInProgress(count);\n\n\n\t\t\tlogger.info(\"[INSTANTIATEMANY] Processing \" + requestsInProgress);\n\n\n\t\t\tlogger.info(\"[INSTANTIATEMANY] START: Instantiate many Things from a ThingType. Thing Type ID: \" + thingTypeId + \" Group ID: \" + groupId);\n\t\t\tDate iniTime = new Date();\n\n\t\t\tThingType thingType = ThingTypeService.getInstance().get(thingTypeId);\n\t\t\tGroup group = GroupService.getInstance().get(groupId);\n\t\t\tfinal Boolean useDafaults = useDefaultValues == null ? true : useDefaultValues;\n\t\t\t//useDefaultValues = useDefaultValues == null ? true : useDefaultValues;\n\t\t\tSubject subject = SecurityUtils.getSubject();\n\t\t\t//User currentUser = (User) subject.getPrincipal();\n\n\t\t\t//ThingService thingService = ThingService.getInstance();\n\t\t\t//Date storageDate = new Date();\n\t\t\t//Map<String, Object> result;\n\t\t\t//Map<String, Object> resultOne = new HashMap<>();\n\t\t\t//int count = 0;\n\t\t\t//String serial;\n\t\t\tsb.append(\"[\\n\");\n\t\t/*String responseList = Arrays.asList(lines)\n\t\t\t\t.parallelStream()\n\t\t\t\t.map(line -> instanceOne(line, thingType, group, useDafaults, currentUser))\n\t\t\t\t.collect(Collectors.joining(\",\\n\"));*/\n\t\t\t//sb.append(responseList);\n\t\t\tList<CompletableFuture<String>> futuresResponse = Arrays.asList(lines)\n\t\t\t\t\t.parallelStream()\n\t\t\t\t\t\t\t//.stream()\n\t\t\t\t\t.map(line -> CompletableFuture.supplyAsync(() -> instanceOne(\n\t\t\t\t\t\t\tline, thingType, group, useDafaults, subject), executor))\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\tString responseList = futuresResponse.stream()\n\t\t\t\t\t.map(CompletableFuture::join)\n\t\t\t\t\t.collect(Collectors.joining(\",\\n\"));\n\t\t\tsb.append(responseList);\n\t\t/*for (String line : lines) {\n\t\t\tif (count > 0) {\n\t\t\t\tsb.append(\",\\n\");\n\t\t\t}\n\n\t\t\tif (line.contains(\",\")) {\n\t\t\t\tString data[] = line.trim().split(\",\");\n\t\t\t\tserial = data[0];\n\t\t\t\tstorageDate = DateHelper.getDateAndDetermineFormat(data[1]);\n\t\t\t} else {\n\t\t\t\tserial = line.trim();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tMap<String, Boolean> validations = new HashMap<>();\n\t\t\t\tvalidations.put(\"thingType\", true);\n\t\t\t\tvalidations.put(\"group\", true);\n\t\t\t\tvalidations.put(\"thing.maxNumberThings\", true);\n\t\t\t\tvalidations.put(\"thing.serial\", true);\n\t\t\t\tvalidations.put(\"thing.parent\", false);\n\t\t\t\tvalidations.put(\"thing.children\", false);\n\t\t\t\tvalidations.put(\"thing.childrenUDF\", false);\n\t\t\t\tvalidations.put(\"thing.udfs\", false);\n\t\t\t\t//Create a new Thing\n\t\t\t\tStack<Long> recursivelyStack = new Stack<>();\n\t\t\t\tresult = thingService.upsert(\n\t\t\t\t\t\trecursivelyStack,\n\t\t\t\t\t\tthingType,\n\t\t\t\t\t\tgroup.getHierarchyName(),\n\t\t\t\t\t\tserial, // name\n\t\t\t\t\t\tserial, // serialNumer\n\t\t\t\t\t\tnull, // parent\n\t\t\t\t\t\tnull, // udfs\n\t\t\t\t\t\tnull, // children\n\t\t\t\t\t\tnull, // childrenUdf\n\t\t\t\t\t\tfalse, // executeTickle\n\t\t\t\t\t\tfalse, // validateVisibility\n\t\t\t\t\t\tstorageDate, // transactionDate\n\t\t\t\t\t\tfalse, // disableFMCLogic\n\t\t\t\t\t\ttrue, // createAndFlush. Changed to true. Flush for each thing created (trying to avoid LockTimeoutException)\n\t\t\t\t\t\tuseDefaultValues,\n\t\t\t\t\t\tvalidations,\n\t\t\t\t\t\tcurrentUser,\n\t\t\t\t\t\tfalse);\n\n\t\t\t\tsb.append(buildResponseMany(result));\n\t\t\t} catch (UserException e) {\n\t\t\t\tresultOne.put(count + \"-\" + serial, e.getMessage());\n\t\t\t\t//sb.append( \"thingId=error,\"+serial+\",\"+ e.getMessage()+\"\\n\" );\n\t\t\t\tsb.append(\"{\\n\");\n\t\t\t\tsb.append(\" \\\"error\\\" : 1,\\n\");\n\t\t\t\tsb.append(\" \\\"serialNumber\\\" : \\\"\" + serial + \"\\\"\\n,\");\n\t\t\t\tsb.append(\" \\\"message\\\" : \\\"\" + e.getMessage() + \"\\\"\\n\");\n\t\t\t\tsb.append(\"}\\n\");\n\n\t\t\t}\n\t\t\tcount++;\n\t\t}*/\n\t\t\tsb.append(\"]\\n\");\n\t\t\t// the following line is not necessary because createAndFlush upsert parameter is true\n//\t\tHibernateSessionFactory.getInstance().getCurrentSession().flush();\n\t\t\tactiveCount = ((ThreadPoolExecutor) executor).getActiveCount();\n\t\t\tqueueSize = ((ThreadPoolExecutor) executor).getQueue().size();\n\n\t\t\tResponse response = Response.status(200).header(\"content-type\", \"text/plain\").entity(sb.toString()).build();\n\t\t\tDate endTime = new Date();\n\n\t\t\tdouble totalTime = (endTime.getTime() - iniTime.getTime()) / 1000.0;\n\t\t\tdouble rate = count / totalTime;\n\t\t\tlogger.info(\"[INSTANTIATEMANY]END: Instantiate many Things from a ThingType. Thing Type ID: \" + thingTypeId + \" Group ID: \" + groupId\n\t\t\t\t\t+ \" thing_count=\" + count + \", time=\" + String.format(\"%.3f\", totalTime) + \" [sec], rate=\" + String.format(\"%.1f\", rate) + \" [things/sec]\");\n\t\t\tlogger.info(\"[INSTANTIATEMANY] maxPoolSize: \"+maxPoolSize+\" | activeCount: \"+activeCount+\" | queueSize: \"+queueSize);\n\t\t\tlogger.info(Arrays.toString(lines));\n\t\t\tmodifyRequestsInProgress(0-count);\n\t\t\treturn response;\n\t\t}else{\n\t\t\tlogger.info(\"[INSTANTIATEMANY] Back Pressure \");\n\t\t\tlogger.info(\"[INSTANTIATEMANY]\"+Arrays.toString(lines));\n\t\t\tResponse response = Response.status(502).header(\"content-type\", \"text/plain\").entity(\"Please try again later..\").build();\n\t\t\treturn response;\n\t\t}\n\n\t}", "title": "" }, { "docid": "aaa1f0b38cf49f5c98373bd716c8680d", "score": "0.42730135", "text": "private JSONObject makeJSONFromSubmissionData() throws JSONException {\n\t\tJSONObject jsonObject = new JSONObject();\n\n//\t\t\"IMEI\": 123456789012345\n\t\tjsonObject.put(Constants.SUBMISSION_JSON_IMEI, 3);\n\n//\t\t\"geolocation\": {\"lat\":-41.1, \"long\":174.7}\n\t\tJSONObject jsonObjectGeoCoordinates = new JSONObject();\n\t\tjsonObjectGeoCoordinates.put(Constants.SUBMISSION_JSON_GEO_LAT, geoCoordinates.latitude);\n\t\tjsonObjectGeoCoordinates.put(Constants.SUBMISSION_JSON_GEO_LON, geoCoordinates.longitude);\n\t\tjsonObject.put(Constants.SUBMISSION_JSON_GEO_LOCATION, jsonObjectGeoCoordinates);\n\n//\t\t\"timestamp\":\"2015-12-31T13:30:00+00:00\"\n\t\tjava.util.Date dt = new java.util.Date();\n\t\tjava.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tString currentTime = sdf.format(dt);\n\t\tcurrentTime = currentTime + \"+00:00\";\n\t\tjsonObject.put(Constants.SUBMISSION_JSON_TIMESTAMP, currentTime);\n\n//\t\t\"chroma\": {\"nitrite\":{\"hue\":1, \"sat\":2, \"bri\":3}, \"nitrate\":{\"hue\":4, \"sat\":5, \"bri\":6}}\n\t\tJSONObject jsonObjectChroma = new JSONObject();\n\t\tJSONObject jsonObjectNitrite = new JSONObject();\n\t\tJSONObject jsonObjectNitrate = new JSONObject();\n\n\t\tjsonObjectNitrite.put(Constants.SUBMISSION_JSON_HUE, nitriteColor.h);\n\t\tjsonObjectNitrite.put(Constants.SUBMISSION_JSON_SAT, nitriteColor.s);\n\t\tjsonObjectNitrite.put(Constants.SUBMISSION_JSON_BRI, nitriteColor.b);\n\n\t\tjsonObjectNitrate.put(Constants.SUBMISSION_JSON_HUE, nitrateColor.h);\n\t\tjsonObjectNitrate.put(Constants.SUBMISSION_JSON_SAT, nitrateColor.s);\n\t\tjsonObjectNitrate.put(Constants.SUBMISSION_JSON_BRI, nitrateColor.b);\n\n\t\tjsonObjectChroma.put(Constants.SUBMISSION_JSON_NITRITE, jsonObjectNitrite);\n\t\tjsonObjectChroma.put(Constants.SUBMISSION_JSON_NITRATE, jsonObjectNitrate);\n\t\tjsonObject.put(Constants.SUBMISSION_JSON_CHROMA, jsonObjectChroma);\n//\t\t\"before-chroma\": {\"nitrite\":{\"hue\":1, \"sat\":2, \"bri\":3}, \"nitrate\":{\"hue\":4, \"sat\":5, \"bri\":6}}\n//\t\tJSONObject jsonObjectChroma = new JSONObject();\n//\t\tJSONObject jsonObjectNitrite = new JSONObject();\n//\t\tJSONObject jsonObjectNitrate = new JSONObject();\n//\n//\t\tjsonObjectNitrite.put(Constants.SUBMISSION_JSON_HUE, 1);\n//\t\tjsonObjectNitrite.put(Constants.SUBMISSION_JSON_SAT, 2);\n//\t\tjsonObjectNitrite.put(Constants.SUBMISSION_JSON_BRI, 3);\n//\n//\t\tjsonObjectNitrate.put(Constants.SUBMISSION_JSON_HUE, 4);\n//\t\tjsonObjectNitrate.put(Constants.SUBMISSION_JSON_SAT, 5);\n//\t\tjsonObjectNitrate.put(Constants.SUBMISSION_JSON_BRI, 6);\n//\n//\t\tjsonObjectChroma.put(Constants.SUBMISSION_JSON_NITRITE, jsonObjectNitrite);\n//\t\tjsonObjectChroma.put(Constants.SUBMISSION_JSON_NITRATE, jsonObjectNitrate);\n//\t\tjsonObject.put(Constants.SUBMISSION_JSON_BEFORE_CHROMA, jsonObjectChroma);\n\n//\t\t\"after-chroma\": {\"nitrite\":{\"hue\":7, \"sat\":8, \"bri\":9}, \"nitrate\":{\"hue\":10, \"sat\":11, \"bri\":12}}\n//\t\tjsonObjectChroma = new JSONObject();\n//\t\tjsonObjectNitrite = new JSONObject();\n//\t\tjsonObjectNitrate = new JSONObject();\n//\n//\t\tjsonObjectNitrite.put(Constants.SUBMISSION_JSON_HUE, 7);\n//\t\tjsonObjectNitrite.put(Constants.SUBMISSION_JSON_SAT, 8);\n//\t\tjsonObjectNitrite.put(Constants.SUBMISSION_JSON_BRI, 9);\n//\n//\t\tjsonObjectNitrate.put(Constants.SUBMISSION_JSON_HUE, 10);\n//\t\tjsonObjectNitrate.put(Constants.SUBMISSION_JSON_SAT, 11);\n//\t\tjsonObjectNitrate.put(Constants.SUBMISSION_JSON_BRI, 12);\n//\n//\t\tjsonObjectChroma.put(Constants.SUBMISSION_JSON_NITRITE, jsonObjectNitrite);\n//\t\tjsonObjectChroma.put(Constants.SUBMISSION_JSON_NITRATE, jsonObjectNitrate);\n//\t\tjsonObject.put(Constants.SUBMISSION_JSON_AFTER_CHROMA, jsonObjectChroma);\n\n//\t\t\"analysis\":{\"nitrate-level\":13, \"nitrite-level\":15}\n\t\tJSONObject jsonObjectAnalysis = new JSONObject();\n\t\tjsonObjectAnalysis.put(Constants.SUBMISSION_JSON_NITRATE_LEVEL, nitrate);\n\t\tjsonObjectAnalysis.put(Constants.SUBMISSION_JSON_NITRITE_LEVEL, nitrite);\n\t\tjsonObject.put(Constants.SUBMISSION_JSON_ANALYSIS, jsonObjectAnalysis);\n\n\n//\t\t//try and put geo coordinates in\n//\t\tif(geoCoordinates!=null){\n//\t\t\tjsonObjectGeoCoordinates = new JSONObject();\n//\t\t\tjsonObjectGeoCoordinates.put(Constants.SUBMISSION_JSON_GEO_LAT, geoCoordinates.latitude);\n//\t\t\tjsonObjectGeoCoordinates.put(Constants.SUBMISSION_JSON_GEO_LON, geoCoordinates.longitude);\n//\t\t\tjsonObject.put(Constants.SUBMISSION_JSON_GEO_LOCATION, jsonObjectGeoCoordinates);\n//\t\t}\n//\t\t//otherwise put in address\n//\t\telse{\n//\t\t\tjsonObject.put(Constants.SUBMISSION_JSON_ADDRESS, address);\n//\t\t}\n\n//\t\t\"desc\":\"test description\"\n\t\tjsonObject.put(Constants.SUBMISSION_JSON_DESCRIPTION, imageDescription);\n//\t\t\"tags\":\"cow\"\n//\t\tJSONArray jsonObjectTags = new JSONArray();\n//\t\tjsonObjectTags.put(imageTag);\n//\t\tjsonObject.put(Constants.SUBMISSION_JSON_TAGS, jsonObjectTags);\n\n\t\treturn jsonObject;\n\t}", "title": "" }, { "docid": "7d132695950a396ba73ec8c4e8b16b96", "score": "0.4251705", "text": "public JSONObject getTaskSpecification()\r\n\t{\r\n\t\tJSONObject obj = new JSONObject();\r\n\t\tobj.put(\"taskName\", new JSONValue(taskName));\r\n\t\tobj.put(\"tastDescription\", new JSONValue(taskDescription));\r\n\r\n\t\t// add all input ports\r\n\t\tJSONArray inputlib = new JSONArray();\r\n\t\tfor(int i=0; i< ins.length; i++) {\r\n\t\t\tJSONObject inp = ins[i].getPortSpecification();\r\n\t\t\tinputlib.add(new JSONValue(inp));\r\n\t\t}\r\n\t\tobj.put(\"inputPorts\", new JSONValue(inputlib));\r\n\t\t\r\n\t\tJSONArray outputlib = new JSONArray();\r\n\t\tfor(int i=0; i< outs.length; i++) {\r\n\t\t\tJSONObject outp = outs[i].getPortSpecification();\r\n\t\t\toutputlib.add(new JSONValue(outp));\r\n\t\t}\r\n\t\tobj.put(\"outputPorts\", new JSONValue(outputlib));\r\n\r\n\t\t\r\n\t\treturn obj;\t\t\r\n\t}", "title": "" }, { "docid": "f47988fa2bfdf7b61506ed75ec630eb5", "score": "0.42466894", "text": "private JSONObject m32864a(Thread thread) throws JSONException {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"thn\", thread.getId());\n jSONObject.put(\"na\", thread.getName());\n jSONObject.put(\"pr\", thread.getPriority());\n long j = this.f25803x;\n if (j > -1) {\n jSONObject.put(\"gthn\", j);\n }\n return jSONObject;\n }", "title": "" }, { "docid": "bf7caacfd17f4448b005de223c45098c", "score": "0.42430082", "text": "listOfTasks createlistOfTasks();", "title": "" }, { "docid": "865d91d9620f09c5d02fa2892ebfb8e6", "score": "0.42300436", "text": "java.util.List<? extends firmament.TaskDesc.TaskDescriptorOrBuilder> \n getSpawnedOrBuilderList();", "title": "" }, { "docid": "68fa4554d857c1bc9c12e8081b1cc81e", "score": "0.42234156", "text": "private ListAsyncJobsResponse getListAsyncJobsResponse(Document doc) {\r\n ListAsyncJobsResponse response = new ListAsyncJobsResponse();\r\n\r\n NodeList list = doc.getElementsByTagName(\"ayncjob\");\r\n\r\n List<AsyncJobResponse> asyncJobs = new LinkedList<AsyncJobResponse>();\r\n\r\n if (list.getLength() > 0) {\r\n for (int index = 0; index < list.getLength(); index++) {\r\n Node ayncJobNode = list.item(index);\r\n\r\n AsyncJobResponse asyncJob = new AsyncJobResponse();\r\n NodeList ayncJobProperties = ayncJobNode.getChildNodes();\r\n for (int childIndex = 0; childIndex < ayncJobProperties.getLength(); childIndex++) {\r\n Node property = ayncJobProperties.item(childIndex);\r\n\r\n if (property.getNodeName().equals(\"accountid\")) {\r\n asyncJob.setAccountId(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"cmd\")) {\r\n asyncJob.setCmd(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"created\")) {\r\n asyncJob.setCreated(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"jobinstanceid\")) {\r\n asyncJob.setJobInstanceId(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"jobinstancetype\")) {\r\n asyncJob.setJobInstanceType(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"jobprocstatus\")) {\r\n asyncJob.setJobProcStatus(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"jobresult\")) {\r\n asyncJob.setJobResult(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"jobresultcode\")) {\r\n asyncJob.setJobResultCode(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"jobresulttype\")) {\r\n asyncJob.setJobResultType(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"jobstatus\")) {\r\n asyncJob.setJobStatus(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"userid\")) {\r\n asyncJob.setUserId(property.getTextContent());\r\n } else if (property.getNodeName().equals(\"jobid\")) {\r\n asyncJob.setJobId(property.getTextContent());\r\n }\r\n }\r\n asyncJobs.add(asyncJob);\r\n }\r\n }\r\n response.setAsyncJobs(asyncJobs);\r\n return response;\r\n }", "title": "" }, { "docid": "ff79eeb7c2c8137a9790a200f8fed868", "score": "0.42037943", "text": "static public ThreadCB do_create(TaskCB task) {\n\n\t\t// If task is at max threads (15), do dispatch.\n\t\tif (task.getThreadCount() == MaxThreadsPerTask) {\n\t\t\t// call to dispatch threads\n\t\t\tThreadCB.dispatch();\n\t\t\t// return null\n\t\t\treturn null;\n\t\t}\n\n\t\t// declare new thread\n\t\tThreadCB thread = new ThreadCB();\n\n\t\t// if add thread fails, try dispatching threads\n\t\tif (task.addThread(thread) == FAILURE) {\n\t\t\t// dispatch threads\n\t\t\tThreadCB.dispatch();\n\t\t\t// return null\n\t\t\treturn null;\n\t\t}\n\n\t\t// creating a random int between 1 and 3\n\t\tpriority = (int) (Math.random() * 3.0) + 1;\n\t\t// setting threads task\n\t\tthread.setTask(task);\n\t\t// setting threads priority\n\t\tthread.setPriority(priority);\n\t\t// setting threads status to ready\n\t\tthread.setStatus(ThreadReady);\n\t\t// adding thread to my priority queue\n\t\treadyQueue.insert(thread);\n\t\t// dispatching threads\n\t\tThreadCB.dispatch();\n\t\t// returning the thread and thread data\n\t\treturn thread;\n\t}", "title": "" }, { "docid": "a58e0bb72554ac68eb79d665d9dd37d9", "score": "0.41921803", "text": "CWMultithreadingApp(String name, String[] words, int start, int end) {\n this.threadName = name;\n System.out.println(\"Creating \" + threadName );\n this.perkataan = words;\n this.start = start;\n this.end = end;\n \n }", "title": "" }, { "docid": "347a8c7579e74e21972739c93b711e73", "score": "0.41855472", "text": "public <T> JsonArray validateRequestParameters(HttpServletRequest request, Class<T> classType, T typeInstance) {\n\t\tJsonArrayBuilder jsonArrayBuilder = Json.createArrayBuilder();\n\t\t\n\t\t// Check the number of parameters of the request\n\t\tif (request.getParameterMap().size() > 0) {\n\t\t\tValidatorFactory factory = Validation.buildDefaultValidatorFactory();\n\t\t\tValidator validator = factory.getValidator();\n\t\t\t\n\t\t\t// Get a Map of the parameters of the request\n\t\t\tMap<String, String[]> requestMap = request.getParameterMap();\n\t\t\t// Get all the fields of the classType\n\t\t\tField[] fields = classType.getDeclaredFields();\n\t\t\t\n\t\t\t// Process each parameter of the request\n\t\t\trequestMap.entrySet().forEach(parameter -> {\n\t\t\t\t\n\t\t\t\t// Check if the parameter name matches a field of the classType\n\t\t\t\tboolean isFieldName = Arrays.stream(fields)\n\t\t\t\t\t.anyMatch(currentField -> currentField.getName().equals(parameter.getKey()));\n\t\t\t\t\n\t\t\t\tif (isFieldName) {\n\t\t\t\t\t// Get the field for the matching parameter name of the classType\n\t\t\t\t\tField firstField = Arrays.stream(fields)\n\t\t\t\t\t\t.filter(currentField -> currentField.getName().equals(parameter.getKey()))\n\t\t\t\t\t\t.findFirst()\n\t\t\t\t\t\t.get();\n\t\t\t\t\t\n\t\t\t\t\t// Get the parameter value\n\t\t\t\t\tString stringValue;\n\t\t\t\t\tif (parameter.getValue().length == 1) {\n\t\t\t\t\t\tstringValue = parameter.getValue()[0];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstringValue = Arrays.asList( parameter.getValue() ).stream().collect(Collectors.joining(\",\"));\n\t\t\t\t\t}\n\n\t\t\t\t\t// Convert the stringValue to the required data type and set the correspond field value of the typeInstance\n\t\t\t\t\tswitch (firstField.getType().getTypeName()) {\n\t\t\t\t\t\n\t\t\t\t\t\tcase \"java.math.BigDecimal\": {\n\t\t\t\t\t\t\t// Convert parameter value from a String to a BigDecimal\n\t\t\t\t\t\t\tBigDecimal bigDecimalValue = null;\n\t\t\t\t\t\t\tif (NumberUtils.isParsable(stringValue)) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tbigDecimalValue = new BigDecimal(stringValue);\n\t\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Set the data field of the typeInstance with the parameter value\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tString methodName = \"set\" + parameter.getKey().substring(0, 1).toUpperCase() + parameter.getKey().substring(1);\n\t\t\t\t\t\t\t\tMethod setValueMethod = classType.getDeclaredMethod(methodName, BigDecimal.class);\n\t\t\t\t\t\t\t\tsetValueMethod.invoke(typeInstance, bigDecimalValue);\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\n\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase \"int\": {\n\t\t\t\t\t\t\t// Convert parameter value from a String to a int\n\t\t\t\t\t\t\tint intValue = 0;\n\t\t\t\t\t\t\tif (NumberUtils.isParsable(stringValue)) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tintValue = Integer.parseInt(stringValue);\n\t\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\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\ttry {\n\t\t\t\t\t\t\t\tString methodName = \"set\" + parameter.getKey().substring(0, 1).toUpperCase() + parameter.getKey().substring(1);\n\t\t\t\t\t\t\t\tMethod setValueMethod = classType.getDeclaredMethod(methodName, int.class);\n\t\t\t\t\t\t\t\tsetValueMethod.invoke(typeInstance, intValue);\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\n\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase \"java.lang.Integer\": {\n\t\t\t\t\t\t\t// Convert parameter value from a String to a Integer\n\t\t\t\t\t\t\tInteger integerValue = null;\n\t\t\t\t\t\t\tif (NumberUtils.isParsable(stringValue)) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tintegerValue = Integer.valueOf(stringValue);\n\t\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\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\ttry {\n\t\t\t\t\t\t\t\tString methodName = \"set\" + parameter.getKey().substring(0, 1).toUpperCase() + parameter.getKey().substring(1);\n\t\t\t\t\t\t\t\tMethod setValueMethod = classType.getDeclaredMethod(methodName, Integer.class);\n\t\t\t\t\t\t\t\tsetValueMethod.invoke(typeInstance, integerValue);\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\n\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase \"java.lang.Long\": {\n\t\t\t\t\t\t\t// Convert parameter value from a String to a Long\n\t\t\t\t\t\t\tLong longValue = null;\n\t\t\t\t\t\t\tif (NumberUtils.isParsable(stringValue)) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tlongValue = Long.valueOf(stringValue);\n\t\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\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\ttry {\n\t\t\t\t\t\t\t\tString methodName = \"set\" + parameter.getKey().substring(0, 1).toUpperCase() + parameter.getKey().substring(1);\n\t\t\t\t\t\t\t\tMethod setValueMethod = classType.getDeclaredMethod(methodName, Long.class);\n\t\t\t\t\t\t\t\tsetValueMethod.invoke(typeInstance, longValue);\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\n\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tcase \"double\": {\n\t\t\t\t\t\t\t// Convert parameter value from a String to a double\n\t\t\t\t\t\t\tdouble doubleValue = 0;\n\t\t\t\t\t\t\tif (NumberUtils.isParsable(stringValue)) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tdoubleValue = Double.parseDouble(stringValue);\n\t\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\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\ttry {\n\t\t\t\t\t\t\t\tString methodName = \"set\" + parameter.getKey().substring(0, 1).toUpperCase() + parameter.getKey().substring(1);\n\t\t\t\t\t\t\t\tMethod setValueMethod = classType.getDeclaredMethod(methodName, double.class);\n\t\t\t\t\t\t\t\tsetValueMethod.invoke(typeInstance, doubleValue);\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\n\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase \"java.lang.Double\": {\n\t\t\t\t\t\t\t// Convert parameter value from a String to a Double\n\t\t\t\t\t\t\tDouble doubleValue = null;\n\t\t\t\t\t\t\tif (NumberUtils.isParsable(stringValue)) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tdoubleValue = Double.valueOf(stringValue);\n\t\t\t\t\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\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\ttry {\n\t\t\t\t\t\t\t\tString methodName = \"set\" + parameter.getKey().substring(0, 1).toUpperCase() + parameter.getKey().substring(1);\n\t\t\t\t\t\t\t\tMethod setValueMethod = classType.getDeclaredMethod(methodName, Double.class);\n\t\t\t\t\t\t\t\tsetValueMethod.invoke(typeInstance, doubleValue);\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\n\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase \"java.time.LocalDate\": {\n\t\t\t\t\t\t\t// Convert parameter value from a String to a LocalDate\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tLocalDate localDateValue = LocalDate.parse(stringValue);\n\t\t\t\t\t\t\t\tString methodName = \"set\" + parameter.getKey().substring(0, 1).toUpperCase() + parameter.getKey().substring(1);\n\t\t\t\t\t\t\t\tMethod setValueMethod = classType.getDeclaredMethod(methodName, LocalDate.class);\n\t\t\t\t\t\t\t\tsetValueMethod.invoke(typeInstance, localDateValue);\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase \"java.lang.String\": {\n\t\t\t\t\t\t\t// Set the typeInstance field to the parameter value\n\t\t\t\t\t\t\tString methodName = \"set\" + parameter.getKey().substring(0, 1).toUpperCase() + parameter.getKey().substring(1);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tMethod setValueMethod = classType.getDeclaredMethod(methodName, String.class);\n\t\t\t\t\t\t\t\tsetValueMethod.invoke(typeInstance, stringValue);\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase \"demo.servlet.LotteryType\": {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Set the typeInstance field to the parameter value\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tLotteryType lottoType = LotteryType.valueOf(stringValue);\n\t\t\t\t\t\t\t\tString methodName = \"set\" + parameter.getKey().substring(0, 1).toUpperCase() + parameter.getKey().substring(1);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tMethod setValueMethod = classType.getDeclaredMethod(methodName, LotteryType.class);\n\t\t\t\t\t\t\t\t\tsetValueMethod.invoke(typeInstance, lottoType);\n\t\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\tJsonObject exceptionJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t\t\t\t\t.add(parameter.getKey(), ex.getMessage())\n\t\t\t\t\t\t\t\t\t.build();\n\t\t\t\t\t\t\t\tjsonArrayBuilder.add(exceptionJsonObject);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tlogger.info(\"Exception: \" + ExceptionUtils.getStackTrace(ex));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t// Check for constraint violations\n\t\t\tSet<ConstraintViolation<T>> constraintViolations = validator.validate(typeInstance);\n\t\t\t// For each ConstraintViolation create a JsonObject with field name and validation error message and add it to jsonArrayArrayBuilder\n\t\t\tconstraintViolations.stream().forEach(singleConstraintViolation -> {\n\t\t\t\tJsonObject constraintJsonObject = Json.createObjectBuilder()\n\t\t\t\t\t.add(singleConstraintViolation.getPropertyPath().toString(), singleConstraintViolation.getMessage())\n\t\t\t\t\t.build();\n\t\t\t\t\tjsonArrayBuilder.add(constraintJsonObject);\n\t\t\t\t});\n\t\t}\n\t\t\n\t\treturn jsonArrayBuilder.build();\n\t}", "title": "" }, { "docid": "848dfdd42232a948ae9a77fdc44987ce", "score": "0.4170691", "text": "public List<ForumThread> getAllThreads();", "title": "" }, { "docid": "7bc1b87e94b7981d9bdfad5cc432e28e", "score": "0.41664615", "text": "@Override\n public byte[] call(final byte[] memento) throws Exception {\n final ExecutorService schedulerThread = Executors.newSingleThreadExecutor();\n final ExecutorService commandExecutor = Executors.newFixedThreadPool(numOfThreads);\n final ConcurrentMap<Integer, Future> futures = new ConcurrentHashMap<>();\n\n // Scheduling thread starts\n schedulerThread.execute(new Runnable() {\n @SuppressWarnings(\"InfiniteLoopStatement\") // Scheduler is supposed to run forever.\n @Override\n public void run() {\n while (true) {\n // Scheduler Thread: Pick a command to execute (For now, simple FIFO order)\n final byte[] message;\n try {\n message = pendingRequests.takeFirst();\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n\n // Command Executor: Deserialize the command\n final MasterToWorkerRequest masterToWorkerRequest = (MasterToWorkerRequest)kryoUtils.deserialize(message);\n\n switch (masterToWorkerRequest.getType()) {\n case AggregateTasklets:\n final TaskletAggregationRequest taskletAggregationRequest =\n (TaskletAggregationRequest) masterToWorkerRequest;\n aggregates.put(taskletAggregationRequest.getAggregateFunctionId(),\n new AggregateContainer(heartBeatTriggerManager, kryoUtils, workerReports,\n taskletAggregationRequest));\n break;\n case ExecuteAggregateTasklet:\n executeAggregateTasklet(commandExecutor, masterToWorkerRequest);\n break;\n case ExecuteTasklet:\n executeTasklet(commandExecutor, futures, masterToWorkerRequest);\n break;\n case CancelTasklet:\n final TaskletCancellationRequest cancellationRequest = (TaskletCancellationRequest) masterToWorkerRequest;\n LOG.log(Level.FINE, \"Cancelling Tasklet with ID {0}.\", cancellationRequest.getTaskletId());\n final Future future = futures.get(cancellationRequest.getTaskletId());\n if (future != null) {\n future.cancel(true);\n }\n break;\n default:\n throw new RuntimeException(\"Unknown Command\");\n }\n }\n }\n });\n\n terminated.await();\n return null;\n }", "title": "" }, { "docid": "284cc0a474fd91433e990772c8169a46", "score": "0.4164798", "text": "public JobMessage(Number160 jobId, ApplicationInterface obj, String[] args, Properties reqs) {\n this.njobId = jobId;\n this.args = args;\n this.jobClass = obj;\n this.reqs = reqs;\n }", "title": "" }, { "docid": "c415545e4da753a5d0ae116f8316187c", "score": "0.41482583", "text": "@SuppressWarnings(\"unchecked\")\n\t@RequestMapping(\n\t\tvalue=\"/cds/requirements\",\n\t\tparams={\"method=GET\", \"isTest=true\"},\n\t\tmethod=RequestMethod.POST,\n\t\theaders=\"content-type=application/json\")\n\tpublic @ResponseBody ComMessage<Map, List<Requirement>> testGetRequirementCdList(\n\t\tHttpSession httpSession,\n\t\t@RequestBody ComMessage<Map, List<Requirement>> comMessage,\n\t\tLocale locale,\n\t\tHttpServletRequest request\n\t) throws Exception{\n\t\t{\n\t\t\t// 테스트 데이터 파일패스를 얻어온다.\n\t\t\t// 테스트 데이터 파일의 기본 위치는 /WEB-INF/test-data/ 로 한다.\n\t\t\tString testFilePath = servletContext\n\t\t\t\t\t.getRealPath(\"/WEB-INF/test-data/co/REST-R01-CO-02-00-009.json\");\n\t\t\tlogger.debug(Util.join(\"testFilePath:\", testFilePath));\n\n\t\t\t// Util.readObjectFromJson 메소드를 이용하여 테스트 데이터 파일을 최종 응답객체로 바인딩한다.\n\t\t\tList<Requirement> list = (List<Requirement>) Util.readObjectFromJson(new File(testFilePath), List.class, \"UTF-8\");\n\n\t\t\t// 서비스 처리 종료시간을 얻어 CM에 세팅한다.\n\t\t\tString endTime = Util.getFormatedDate(\"yyyyMMddHHmmssSSS\");\n\t\t\tcomMessage.setEndTime(endTime);\n\n\t\t\t// 통신메시지에 처리결과 코드/메시지를 등록한다.\n\t\t\tString errorCd = \"\";\n\t\t\tString errorMsg = \"\";\n\t\t\tif(list == null || list.size() == 0){//결과가 없을 경우 비지니스 예외 처리\n\t\t\t\terrorCd = MessageSourceUtil.getErrorCd(messageSource, \"error.cd.retrieve.none\", locale);\n\t\t\t\terrorMsg= MessageSourceUtil.getErrorMsg(messageSource, \"error.msg.retrieve.none\", null, locale);\n\t\t\t}else{//성공 처리결과\n\t\t\t\terrorCd = MessageSourceUtil.getErrorCd(messageSource, \"success.cd.ok\", locale);\n\t\t\t\tObject errorMsgParam[] = {list.size()};\n\t\t\t\terrorMsg= MessageSourceUtil.getErrorMsg(messageSource, \"success.msg.retrieve.list.ok\", errorMsgParam, locale);\n\t\t\t\tcomMessage.setResponseObject(list);\n\t\t\t}\n\t\t\tcomMessage.setErrorCd(errorCd);\n\t\t\tcomMessage.setErrorMsg(errorMsg);\n\t\t\treturn comMessage;\n\t\t}\n\n\t}", "title": "" }, { "docid": "41e1f33e775e560d380b4c5225f101ee", "score": "0.41454145", "text": "@Parameterized.Parameters\n public static Collection<Object[]> data() {\n return Arrays.asList(new Object[][]{\n // [ccp_control_request][byte_values]\n\n // 0 - JS Compatibility (simple request)\n {ImmutableCcpRouteUpdateRequest.builder()\n .routingTableId(RoutingTableId.of(UUID.fromString(\"21e55f8e-abcd-4e97-9ab9-bf0ff00a224c\")))\n .currentEpochIndex(52)\n .fromEpochIndex(52)\n .toEpochIndex(52)\n .holdDownTime(30000)\n .speaker(InterledgerAddress.of(\"example.alice\"))\n // No new nor withdrawn routes...\n .build(),\n BaseEncoding.base16().decode(\n \"21E55F8EABCD4E979AB9BF0FF00A224C000000340000003400000034000075300D6578616D706C652E616C69636501000100\")},\n\n {ImmutableCcpRouteUpdateRequest.builder()\n .routingTableId(RoutingTableId.of(UUID.fromString(\"21e55f8e-abcd-4e97-9ab9-bf0ff00a224c\")))\n .currentEpochIndex(52)\n .fromEpochIndex(52)\n .toEpochIndex(52)\n .holdDownTime(30000)\n .speaker(InterledgerAddress.of(\"example.alice\"))\n .withdrawnRoutePrefixes(\n Lists.newArrayList(\n ImmutableCcpWithdrawnRoute.builder().prefix(InterledgerAddressPrefix.of(\"example.prefix3\")).build(),\n ImmutableCcpWithdrawnRoute.builder().prefix(InterledgerAddressPrefix.of(\"example.prefix4\")).build()\n )\n )\n .build(),\n BaseEncoding.base16().decode(\n \"21E55F8EABCD4E979AB9BF0FF00A224C000000340000003400000034000075300D6578616D706C652E616C696365010001020F6578616D706C652E707265666978330F6578616D706C652E70726566697834\")},\n\n //0 - JS Compatibility(complex request)\n {ImmutableCcpRouteUpdateRequest.builder()\n .routingTableId(RoutingTableId.of(UUID.fromString(\"bffbf6ad-0ddc-4d3b-a1e5-b4f0537365bd\")))\n .currentEpochIndex(52)\n .fromEpochIndex(46)\n .toEpochIndex(50)\n .holdDownTime(30000)\n .speaker(InterledgerAddress.of(\"example.alice\"))\n .newRoutes(Lists.newArrayList(\n ImmutableCcpNewRoute.builder()\n .prefix(InterledgerAddressPrefix.of(\"example.prefix1\"))\n .path(\n Lists.newArrayList(\n ImmutableCcpRoutePathPart.builder()\n .routePathPart(InterledgerAddress.of(\"example.prefix1\"))\n .build()\n )\n )\n .auth(Base64.getDecoder().decode(\"emx9hYZ8RqL6v60a+npKXiKc5XT8zmP17e7fwD+EaOo=\"))\n // empty properties.\n .build(),\n ImmutableCcpNewRoute.builder()\n .prefix(InterledgerAddressPrefix.of(\"example.prefix2\"))\n .path(\n Lists.newArrayList(\n ImmutableCcpRoutePathPart.builder()\n .routePathPart(InterledgerAddress.of(\"example.connector1\"))\n .build(),\n ImmutableCcpRoutePathPart.builder()\n .routePathPart(InterledgerAddress.of(\"example.prefix2\"))\n .build()\n )\n )\n .auth(Base64.getDecoder().decode(\"KwjlP7zBfF8b1Urg2a17o5pfmnsSbKm1wJRWCaNTJMw=\"))\n .properties(\n Lists.newArrayList(\n ImmutableCcpRouteProperty.builder()\n .id(0)\n .optional(false)\n .transitive(true)\n .partial(false)\n .utf8(true)\n .value(\"hello world\".getBytes())\n .build(),\n ImmutableCcpRouteProperty.builder()\n .id(1)\n .optional(true)\n .transitive(true)\n .partial(true)\n .utf8(false)\n .value(BaseEncoding.base16().decode(\"A0A0A0A0\"))\n .build()\n )\n )\n .build()\n ))\n .withdrawnRoutePrefixes(\n Lists.newArrayList(\n ImmutableCcpWithdrawnRoute.builder().prefix(InterledgerAddressPrefix.of(\"example.prefix3\")).build(),\n ImmutableCcpWithdrawnRoute.builder().prefix(InterledgerAddressPrefix.of(\"example.prefix4\")).build()\n )\n )\n .build(),\n BaseEncoding.base16().decode(\n \"BFFBF6AD0DDC4D3BA1E5B4F0537365BD000000340000002E00000032000075300D6578616D706C652E616C69636501020F6578616D706C652E7072656669783101010F6578616D706C652E707265666978317A6C7D85867C46A2FABFAD1AFA7A4A5E229CE574FCCE63F5EDEEDFC03F8468EA01000F6578616D706C652E707265666978320102126578616D706C652E636F6E6E6563746F72310F6578616D706C652E707265666978322B08E53FBCC17C5F1BD54AE0D9AD7BA39A5F9A7B126CA9B5C0945609A35324CC01025000000B68656C6C6F20776F726C64E0000104A0A0A0A001020F6578616D706C652E707265666978330F6578616D706C652E70726566697834\")},\n\n }\n );\n }", "title": "" }, { "docid": "4d891161e63dc35dd3b0878d9c446f2b", "score": "0.41267574", "text": "@Override\r\n public WsResultBean addWorkTask(String poNumber, List<WsWorkTaskBean> wsWorkTaskBean, String createUserCode)\r\n throws Exception {\n return null;\r\n }", "title": "" }, { "docid": "0f2faed0a990ec3a16b9d93c7a43886b", "score": "0.41202164", "text": "private boolean processRequestList(Element root) throws FIFException {\n\t\t// Populate the request list attributes\n\t\tboolean success = true;\n\t\tTFRequestList requestList = new TFRequestList();\n\t\trequestList.setID(TFDocumentSerializer.getElementText(root,\n\t\t\t\tTFXMLTags.requestListId));\n\t\trequestList.setName(TFDocumentSerializer.getElementText(root,\n\t\t\t\tTFXMLTags.requestListName));\n\n\t\t// Loop through the embedded requests\n\t\tNodeList requests = ((Element) root.getElementsByTagName(\n\t\t\t\tTFXMLTags.requests).item(0)).getChildNodes();\n\t\tfor (int i = 0; i < requests.getLength(); i++) {\n\t\t\tNode requestRootNode = requests.item(i);\n\t\t\tif (requestRootNode.getNodeType() != Node.ELEMENT_NODE)\n\t\t\t\tcontinue;\n\n\t\t\tElement requestRoot = (Element) requestRootNode;\n\t\t\tif (requestRoot.getNodeName() != TFXMLTags.requestRoot\n\t\t\t\t\t&& requestRoot.getNodeName() != TFXMLTags.sqlRequestRoot\n\t\t\t\t\t&& requestRoot.getNodeName() != TFXMLTags.bksRequestRoot\n\t\t\t\t\t&& requestRoot.getNodeName() != TFXMLTags.trxBuilderRequestRoot\n\t\t\t\t\t&& requestRoot.getNodeName() != TFXMLTags.transactionList)\n\t\t\t\tcontinue;\n\n\t\t\tRequest request = TFRequestSerializer.serializeRequest(requestRoot, true);\n\t\t\tif (request instanceof FIFRequest) {\n\t\t\t\tsuccess = processFifInterfaceRequest(request);\n\t\t\t\tif (!success) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (request instanceof FIFRequestList) {\n\t\t\t\tsuccess = processFifInterfaceRequest(request);\n\t\t\t\tif (!success) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (request instanceof TFSQLRequest) {\n\t\t\t\tsuccess = processSQLRequest((TFSQLRequest) request);\n\t\t\t\tif (!success) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (request instanceof TFTrxBuilderRequest) {\n\t\t\t\tsuccess = processTrxBuilderRequest((TFTrxBuilderRequest) request);\n\t\t\t\tif (!success) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (request instanceof TFBKSRequest) {\n\t\t\t\tsuccess = processBKSRequest((TFBKSRequest) request);\n\t\t\t\tif (!success) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if (request instanceof InvalidRequest) {\n\t\t\t\tsuccess = false;\n\t\t\t}\n\t\t}\n\t\treturn success;\n\t}", "title": "" }, { "docid": "1c0687b4a8e42be738834ca4978e4d76", "score": "0.41130608", "text": "public void doCustomerTypeList(){\n String tag_json_arry = \"json_array_req\";\n\n String url = UrlUtil.GET_CUSTOMER_TYPES;\n\n final ProgressDialog pDialog = new ProgressDialog(this);\n pDialog.setMessage(\"Loading...\");\n\n JsonArrayRequest req = new JsonArrayRequest(url,\n new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n parseCustomerTypeResponse(response);\n Log.d(\"TAG\", response.toString());\n pDialog.hide();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(\"TAG\", \"Error: \" + error.getMessage());\n }\n });\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(req, tag_json_arry);\n }", "title": "" }, { "docid": "0a1e741228a37c7fefb23bbf0a6ebf74", "score": "0.4108442", "text": "public TaskList read() throws IOException {\r\n TaskList taskList = new TaskList();\r\n BufferedReader br = new BufferedReader(new FileReader(file));\r\n\r\n String inputLine;\r\n //System.out.println(inputLine);\r\n while((inputLine = br.readLine()) != null) {\r\n inputLine = inputLine.trim();\r\n\r\n if (inputLine.substring(0,1).equals(\"T\")) {\r\n String[] arrayLine = inputLine.split(\"[|]\");\r\n if(arrayLine[1].equals(\"0\")) {\r\n Task t = new ToDo(arrayLine[2], false);\r\n taskList.addTask(t);\r\n }\r\n else {\r\n Task t = new ToDo(arrayLine[2], true);\r\n taskList.addTask(t);\r\n }\r\n }\r\n else if (inputLine.substring(0,1).equals(\"D\")) {\r\n String[] arrayLine = inputLine.split(\"[|]\");\r\n if(arrayLine[1].equals(\"0\")) {\r\n Task t = new Deadline(arrayLine[2], false, arrayLine[3]);\r\n taskList.addTask(t);\r\n }\r\n else {\r\n Task t = new Deadline(arrayLine[2], true, arrayLine[3]);\r\n taskList.addTask(t);\r\n }\r\n }\r\n else if (inputLine.substring(0,1).equals(\"E\")) {\r\n String[] arrayLine = inputLine.split(\"[|]\");\r\n if(arrayLine[1].equals(\"0\")) {\r\n Task t = new Event(arrayLine[2], false, arrayLine[3]);\r\n taskList.addTask(t);\r\n }\r\n else {\r\n Task t = new Event(arrayLine[2], true, arrayLine[3]);\r\n taskList.addTask(t);\r\n }\r\n }\r\n }\r\n return taskList;\r\n }", "title": "" }, { "docid": "a8a616459eae68bd6e93d522622eab68", "score": "0.4100679", "text": "@FormUrlEncoded\n @POST(\"/3/CreateFrame\")\n Call<JobV3> run(\n @Field(\"dest\") String dest,\n @Field(\"rows\") long rows,\n @Field(\"cols\") int cols,\n @Field(\"seed\") long seed,\n @Field(\"seed_for_column_types\") long seed_for_column_types,\n @Field(\"randomize\") boolean randomize,\n @Field(\"value\") long value,\n @Field(\"real_range\") long real_range,\n @Field(\"categorical_fraction\") double categorical_fraction,\n @Field(\"factors\") int factors,\n @Field(\"integer_fraction\") double integer_fraction,\n @Field(\"integer_range\") long integer_range,\n @Field(\"binary_fraction\") double binary_fraction,\n @Field(\"binary_ones_fraction\") double binary_ones_fraction,\n @Field(\"time_fraction\") double time_fraction,\n @Field(\"string_fraction\") double string_fraction,\n @Field(\"missing_fraction\") double missing_fraction,\n @Field(\"has_response\") boolean has_response,\n @Field(\"response_factors\") int response_factors,\n @Field(\"positive_response\") boolean positive_response,\n @Field(\"_exclude_fields\") String _exclude_fields\n );", "title": "" }, { "docid": "3878dc2829b844b87f8d12be878315be", "score": "0.40955418", "text": "public List<ForumThread> getThreadsByUser(User user);", "title": "" }, { "docid": "0ca785f3f4ab736f5df23e170a379541", "score": "0.40812632", "text": "public Thread(String inc_url, WordsMapper inc_mapper, DynamoDBMapperConfig inc_dynamo_config)\n\t{\n\t\tmapper = inc_mapper;\n\t\tdynamo_config = inc_dynamo_config;\n\t\tvalid = false;\n\t\tif(!Global.isValidURLFormation(inc_url,true)) // checks http/s://, lack of \":\", presence of \".\" and MalformedURLException // require proto_colon_slashslash\n\t\t\treturn; // with valid = false;\n\t\t\n\t\t// inputs seem to check out, valid= true and continue\n\t\tvalid = true;\n\n\t\t/* first, look up hostname\n\t\t * if(!hostname exists)\n\t\t * {\n\t\t * \t\treturn null; // no thread for a hostname that doesn't exist\n\t\t * }\n\t\t * else // hostname exists\n\t\t * {\n\t\t * \t \tif(hostname combined)\n\t\t * \t\t{\n\t\t * \t\t\tget all hps\n\t\t * \t\t \tfor(hps)\n\t\t * \t\t\t{\n\t\t * \t\t\t\tget all hpqsps\n\t\t * \t\t\t\tfor(hpqsps)\n\t\t * \t\t\t\t{\n\t\t * \t\t\t\t\tget all comments\n\t\t * \t\t\t\t\tfor(comments)\n\t\t * \t\t\t\t\t{\n\t\t * \t\t\t\t\t\tadd to the treesets here.\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 * }\n\t\t */\n\t\ttoplevelcomments = null; // these start out null. If they've been \"populated\" (method below) and have nothing, they are empty treesets afterwards\n\t\tallcomments = null;\n\t\toriginal_url = inc_url;\n\t\thostnameitem = mapper.load(HostnameItem.class, Global.getStandardizedHostnameFromURL(inc_url), dynamo_config);\n\t\tif(hostnameitem == null)\n\t\t{\n\t\t\t//System.out.println(\"Thread(): couldn't find hostname for url: \"+inc_url+\" standardized:\" + Global.getStandardizedHostnameFromURL(inc_url));\n\t\t\thpqsps = null;\n\t\t\tnumlikes = 0L;\n\t\t\treturn;\n\t\t}\n\t\telse \n\t\t{\n\t\t\t/* Here, we are looking for all the \"HPQSPS\" that make up the \"Thread\". \n\t\t\t * For separated, it's just one HPQSP\n\t\t\t * For combined, it's all the HPQSPS underneath a Hostname\n\t\t\t */\n\t\t\t//System.out.println(\"Thread(): Found hostname: \" + Global.getStandardizedHostnameFromURL(inc_url));\n\t\t\tif(hostnameitem.getSeparated())\n\t\t\t{\n\t\t\t\t// if the hostname is separated, then there is only one HPItem and one HPQSP for this URL.\n\t\t\t\t// Two possibilities:\n\t\t\t\t// 1. The HPItem has no significant QSPs. Then just get the \"www.example.com/page.html?\" HPQSP\n\t\t\t\t// 2. The HPItem has >0 significant QSPs. Then use the url+HPItem to figure out all the HPQSPs to get \"www.example.com/page.html?article=blah\"\n\t\t\t\t// Note: it's possible for a separated hostname to exist with no hps or hpqsps below it.\n\t\t\t\tHPItem onlyhpitem = mapper.load(HPItem.class, Global.getStandardizedHPFromURL(inc_url), dynamo_config);\n\t\t\t\tif(onlyhpitem == null)\n\t\t\t\t{\n\t\t\t\t\t// this hostname item has no hps. This is fine. \n\t\t\t\t\tnumlikes = 0L;\n\t\t\t\t}\n\t\t\t\telse if(onlyhpitem != null) \n\t\t\t\t{\n\t\t\t\t\t//System.out.println(\"Thread(): onlyhp=\" + onlyhpitem.getHP());\n\t\t\t\t\thps = new TreeSet<HPItem>();\n\t\t\t\t\thps.add(onlyhpitem);\n\t\t\t\t\tString hpqsp_string = onlyhpitem.getHPQSPStringAccordingToThisHP(inc_url);\n\t\t\t\t\tHPQSPItem onlyhpqspitem = mapper.load(HPQSPItem.class, hpqsp_string, dynamo_config);\n\t\t\t\t\tif(onlyhpqspitem != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tnumlikes = onlyhpqspitem.getNumberOfHPQSPLikes(0, inc_mapper, inc_dynamo_config);\n\t\t\t\t\t\thpqsps = new TreeSet<HPQSPItem>();\n\t\t\t\t\t\thpqsps.add(onlyhpqspitem); // onlyhpitem.getRelevantHPQSPs(inc_url, mapper, dynamo_config);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tnumlikes = 0L;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// is this right? Why are we looping? Shouldn't it just be one hpqsp?\n\t\t\t\t// A: Yes, it's just one item, but since the \"combined\" section below could have multiples, this class has a set of hpqsps as a private variable. \n\t\t\t\t// A (cont): Hence, the appearance, here, of multiples when there can be only one at this point.\n\t\t\t\tif(hpqsps != null) \n\t\t\t\t{\n\t\t\t\t\t//System.out.println(\"Thread(): hpqsps was not null. Does it have comments?\");\n\t\t\t\t\tHPQSPItem currenthpqsp = hpqsps.first();\n\t\t\t\t\t/*Iterator<HPQSPItem> hpqsps_it = hpqsps.iterator();\n\t\t\t\t\tHPQSPItem currenthpqsp = null;\n\t\t\t\t\ttoplevelcomments = new TreeSet<CommentItem>();\n\t\t\t\t\tallcomments = new TreeSet<CommentItem>();\n\t\t\t\t\twhile(hpqsps_it.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tcurrenthpqsp = hpqsps_it.next();*/\n\t\t\t\t\t\tif(currenthpqsp != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttoplevelcomments = new TreeSet<CommentItem>();\n\t\t\t\t\t\t\tallcomments = new TreeSet<CommentItem>();\n\t\t\t\t\t\t\tTreeSet<CommentItem> hpqsp_toplevelcomments = currenthpqsp.getTopLevelComments(525949, mapper, dynamo_config); // one year in minutes\n\t\t\t\t\t\t\tif(hpqsp_toplevelcomments != null)\n\t\t\t\t\t\t\t\ttoplevelcomments.addAll(hpqsp_toplevelcomments);\n\t\t\t\t\t\t\tTreeSet<CommentItem> hpqsp_allcomments = currenthpqsp.getAllComments(525949, mapper, dynamo_config); // one year in minutes\n\t\t\t\t\t\t\tif(hpqsp_allcomments != null)\n\t\t\t\t\t\t\t\tallcomments.addAll(hpqsp_allcomments);\n\t\t\t\t\t\t}\n\t\t\t\t\t//}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse // combined\n\t\t\t{\n\t\t\t\t//System.out.println(\"Thread(): hostname=combined\");\n\t\t\t\thps = hostnameitem.getHPs(mapper, dynamo_config);\n\t\t\t\thpqsps = hostnameitem.getHPQSPs(mapper, dynamo_config);\n\t\t\t\tallcomments = hostnameitem.getAllComments(525949, mapper, dynamo_config); // one year in minutes\n\t\t\t\ttoplevelcomments = null;\n\t\t\t\tnumlikes = hostnameitem.getNumberOfHostnameLikes(hostnameitem.getHostname(), 0, mapper, dynamo_config);\n\t\t\t\t// loop through all comments and build toplevelcomments treeset\n\t\t\t\tif(allcomments != null)\n\t\t\t\t{\t\n\t\t\t\t\ttoplevelcomments = new TreeSet<CommentItem>();\n\t\t\t\t\tCommentItem ci = null;\n\t\t\t\t\tIterator<CommentItem> c_it = allcomments.iterator();\n\t\t\t\t\twhile(c_it.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tci = c_it.next();\n\t\t\t\t\t\tif(ci.getParent().indexOf(\".\") != -1)\n\t\t\t\t\t\t\ttoplevelcomments.add(ci);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "eca0c18fd1616ae49863e91d75dbce25", "score": "0.4079755", "text": "public DescribeJobFlowsRequest() {\n }", "title": "" }, { "docid": "172ff44844458df51eb419c2a925f714", "score": "0.40738383", "text": "public static void main(String[] args) {\r\n int n = getUserInput(\"Please enter the desired size of the numbers array:\", MAX_ELEMNTS_ALLOWED);\r\n int m = getUserInput(\"Please enter the desired number of threads:\", MAX_THREADS_ALLOWED);\r\n ExecutorService executorService = Executors.newCachedThreadPool();\r\n NumbersPool pool = new NumbersPool(n);\r\n pool.populatePool();\r\n createThreads(executorService, pool, m);\r\n }", "title": "" }, { "docid": "3721eb041a44f2d65778b112b875d50c", "score": "0.40639", "text": "private static void showQuestsList() throws UnirestException {\n\t\tHttpResponse<JsonNode> questResponse = Unirest\n\t\t\t\t.get(\"http://\" + blackboard_IP + \":\" + blackboard_Port + \"/blackboard/quests\").asJson();\n\t\tString questString = questResponse.getBody().toString();\n\t\tSystem.out.println(questString);\n\t\tausgabe+=questString+\"/n\";\n\t\tString tasks = questString.substring(questString.indexOf(\"\\\"tasks\\\": [\") + 1, questString.indexOf(\"]\"));\n\n\t\tPattern pattern = Pattern.compile(\"[/a-zA-Z0-9]+\");\n\t\tMatcher matcher = pattern.matcher(tasks);\n\t\twhile (matcher.find()) {\n\t\t\tquestList.add(matcher.group());\n\t\t}\n\t\tint i = 1;\n\t\tfor (String quest : questList) {\n\t\t\tSystem.out.println(\"Quest \" + i + \" is: \" + quest);\n\t\t\ti++;\n\t\t}\n\t}", "title": "" }, { "docid": "9864120e26aa8d3c7e08cf3084b40a19", "score": "0.40607774", "text": "private void m32869c(JSONObject jSONObject) {\n Map allStackTraces = Thread.getAllStackTraces();\n if (allStackTraces != null && allStackTraces.size() != 0) {\n JSONArray jSONArray = new JSONArray();\n for (Entry entry : allStackTraces.entrySet()) {\n try {\n Thread thread = (Thread) entry.getKey();\n if (thread.getId() != this.f25801v.getId()) {\n JSONObject a = m32864a(thread);\n JSONArray jSONArray2 = new JSONArray();\n StatCommonHelper.formatStackTraceElement(jSONArray2, (StackTraceElement[]) entry.getValue());\n if (jSONArray2.length() != 0) {\n a.put(\"fra\", jSONArray2);\n jSONArray.put(a);\n }\n }\n } catch (Throwable th) {\n th.printStackTrace();\n }\n }\n if (jSONArray.length() > 0) {\n try {\n jSONObject.put(\"oth\", jSONArray);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "6183d3cadd7b054868eea8bd51fd47e9", "score": "0.40600353", "text": "private void getTasks() {\n tasks.clear();\n\n List<String> comments = new ArrayList<>();\n comments.add(\"be careful\");\n comments.add(\"The customer very stupid\");\n if (PhoneUtil.getInstance().isInternetAvailable(context)) {\n\n\n tasks.add(new Task(new Customer(\"Hasmik Grigoryan\", \"Komistas 55/2\", \"077590505\"), 1234, \"Change lines\", \"Description is the pattern of narrative development that aims to make vivid a place, object, character, or group. Description is one of four rhetorical modes, along with exposition, argumentation, and narration. In practice it would be difficult to write literature that drew on just one of the four basic modes.\", \"16:00 10.06.19\", \"12:00 10.06.19\", 5, comments));\n tasks.add(new Task(new Customer(\"Varduhi Mnacakanyan\", \"Miasnikyan 5/2\", \"077590505\"), 12213, \"Spoiled equipment\", \"Description is the pattern of narrative development that aims to make vivid a place, object, character, or group. Description is one of four rhetorical modes, along with exposition, argumentation, and narration. In practice it would be difficult to write literature that drew on just one of the four basic modes.\", \"16:00 9.06.19\", \"12:00 9.06.19\", 2, comments));\n tasks.add(new Task(new Customer(\"Karen Vardanyan\", \"Dexatan 100/2\", \"077590505\"), 435345, \"Change lines\", \"Description is the pattern of narrative development that aims to make vivid a place, object, character, or group. Description is one of four rhetorical modes, along with exposition, argumentation, and narration. In practice it would be difficult to write literature that drew on just one of the four basic modes.\", \"18:00 11.06.19\", \"13:00 10.06.19\", 1, comments));\n tasks.add(new Task(new Customer(\"Siranush Papikyan\", \"Komistas 55/2\", \"077590505\"), 647546, \"New Conection\", \"Description is the pattern of narrative development that aims to make vivid a place, object, character, or group. Description is one of four rhetorical modes, along with exposition, argumentation, and narration. In practice it would be difficult to write literature that drew on just one of the four basic modes.\", \"16:00 10.06.19\", \"14:00 10.06.18\", 5, comments));\n tasks.add(new Task(new Customer(\"Serj Sargsyan\", \"Vardananc 3/5\", \"077590505\"), 234234, \"Change lines\", \"Description is the pattern of narrative development that aims to make vivid a place, object, character, or group. Description is one of four rhetorical modes, along with exposition, argumentation, and narration. In practice it would be difficult to write literature that drew on just one of the four basic modes.\", \"16:00 10.06.19\", \"16:30 6.06.19\", 6, comments));\n tasks.add(new Task(new Customer(\"Nikol pashinyan\", \"Komistas 55/2\", \"077590505\"), 54645, \"New Conection\", \"Description is the pattern of narrative development that aims to make vivid a place, object, character, or group. Description is one of four rhetorical modes, along with exposition, argumentation, and narration. In practice it would be difficult to write literature that drew on just one of the four basic modes.\", \"16:00 10.06.19\", \"17:40 9.06.19\", 7, comments));\n tasks.add(new Task(new Customer(\"Vachagan Andreasyan\", \"mayisi 9\", \"077590505\"), 67907, \"Change lines\", \"Description is the pattern of narrative development that aims to make vivid a place, object, character, or group. Description is one of four rhetorical modes, along with exposition, argumentation, and narration. In practice it would be difficult to write literature that drew on just one of the four basic modes.\", \"16:00 10.06.19\", \"12:00 5.06.19\", 9, comments));\n tasks.add(new Task(new Customer(\"Armen vardapetyan\", \"Arshakunyac 55/2\", \"077590505\"), 34895, \"New Conection\", \"Description is the pattern of narrative development that aims to make vivid a place, object, character, or group. Description is one of four rhetorical modes, along with exposition, argumentation, and narration. In practice it would be difficult to write literature that drew on just one of the four basic modes.\", \"16:00 10.06.19\", \"16:00 13.06.19\", 1, comments));\n } else {\n Task noInternet = new Task();\n noInternet.setViewType(NO_INTERNET_CARD);\n tasks.add(noInternet);\n }\n\n }", "title": "" }, { "docid": "cd1a16c74f58a892adc489c4923c406c", "score": "0.40584978", "text": "public Request(StartingJob job) { setJob( job );}", "title": "" }, { "docid": "fa0dd9b4d51ab4cc783da75c13a7be6a", "score": "0.40578765", "text": "private static Tasks parseToTaskType(String content) {\n return Tasks.valueOfLabel(content.trim().split(\" \")[0]);\n }", "title": "" }, { "docid": "e6aaaea61f23e00b75311d81e7d8a5e2", "score": "0.4046699", "text": "private static String[] getNewTask(String addType, String command, String[] inputArr) throws DukeException {\n String[] newTaskDetails;\n\n switch (addType) {\n case (\"todo\"):\n // Only has the word todo\n if (inputArr.length == 1) throw new EmptyTodoException();\n newTaskDetails = new String[]{\"T\", command.substring(5).trim()};\n break;\n case (\"deadline\"):\n String deadlineContent = command.substring(9);\n String[] deadlineArr = deadlineContent.split(\"/\");\n newTaskDetails = new String[]{\"D\", deadlineArr[0].trim(), deadlineArr[1].substring(3).trim()};\n break;\n case (\"event\"):\n String eventContent = command.substring(6);\n String[] eventArr = eventContent.split(\"/\");\n newTaskDetails = new String[]{\"E\", eventArr[0].trim(), eventArr[1].substring(3).trim()};\n break;\n case (\"after\"):\n String afterContent = command.substring(6);\n String[] afterArr = afterContent.split(\"/\");\n newTaskDetails = new String[]{\"A\", afterArr[0].trim(), afterArr[1].substring(6).trim()};\n break;\n default:\n throw new DukeException();\n }\n return newTaskDetails;\n }", "title": "" }, { "docid": "b4775500732c030acea9d447daff6be9", "score": "0.40462387", "text": "private Comment createCommentFromJSON(List<NameValuePair> params, JSONObject json)\n\t{\n\t\tComment c = null;\n\t\tLog.d(TAG, \"Entering createCommentFromJSON\");\n\n\t\t\n long tagId = 0;\n String comment = null;\n String uName = null;\n long cID = 0;\n String imageUrl = null;\n \n for (int i=0; i<params.size(); i++) {\n \tBasicNameValuePair bnvp = (BasicNameValuePair)params.get(i);\n \tif (bnvp.getName().equals(\"tagId\")) {\n \t\ttagId = Long.valueOf(bnvp.getValue()).longValue();\n \t} else if (bnvp.getName().equals(\"comment\")) {\n \t\tcomment = bnvp.getValue();\n \t} else if (bnvp.getName().equals(\"uName\")) {\n \t\tuName = bnvp.getValue();\n \t} else if (bnvp.getName().equals(\"imgUrl\")) {\n \t\timageUrl = bnvp.getValue();\n \t}\n }\n \n\t\tDate d = new Date(System.currentTimeMillis());\n\n \ttry \n \t{\n \t\tif (json.has(\"ImageUrl\"))\n \t\t\timageUrl = json.getString(\"ImageUrl\");\n \t\t\n \t\tif (json.has(\"cID\"))\n \t\t\tcID = json.getLong(\"cID\");\n \t\telse\n \t\t\treturn null;\n \t\t\n \t} catch (JSONException e) {\n \t\tLog.d(\"TagHandler\", \"CreateComment from JSONObject failed\");\n \t\te.printStackTrace();\n \t}\n\n \t//below code keeps tags working until server has imageURL field for comments\n \tif (imageUrl != null && imageUrl.length() > 0) {\n \t\tc = new Comment(cID,tagId, comment, uName, d, imageUrl);\n\t\t} else {\n \t\tc = new Comment(cID,tagId, comment, uName, d);\n\t\t} \n \t\n\t\tLog.d(TAG, \"Leaving createCommentFromJSON\");\n \treturn c;\n\t}", "title": "" }, { "docid": "18e215e4837b7b5e71ae3ddd5e9fa758", "score": "0.40445548", "text": "public Task jsonObjectToTask(JSONObject jsonObject) {\n final int targetPlayerId;\n final StreamletPlayer targetPlayer;\n StreamletMessage message;\n final int delay;\n\n if (jsonObject.containsKey(\"target_player\")) {\n targetPlayerId = Integer.parseInt(jsonObject.get(\"target_player\").toString());\n if (roundSimulator.honestPlayerMap.containsKey(targetPlayerId)) {\n targetPlayer = (StreamletPlayer) roundSimulator.honestPlayerMap.get(targetPlayerId);\n } else {\n assert roundSimulator.corruptPlayerMap.containsKey(targetPlayerId) : \"target player should exist for trace\";\n targetPlayer = (StreamletPlayer) roundSimulator.corruptPlayerMap.get(targetPlayerId);\n }\n } else {\n throw new IllegalArgumentException(\"Task in Message Trace file should contain target_player\");\n }\n\n if (jsonObject.containsKey(\"delay\")) {\n delay = Integer.parseInt(jsonObject.get(\"delay\").toString());\n } else {\n throw new IllegalArgumentException(\"Task in Message Trace file should contain delay\");\n }\n\n if (jsonObject.containsKey(\"message\")) {\n message = jsonObjectToMessage((JSONObject) jsonObject.get(\"message\"));\n } else {\n throw new IllegalArgumentException(\"Task in Message Trace file should contain message\");\n }\n\n return new Task(targetPlayer, message, delay);\n }", "title": "" }, { "docid": "266d2e388624f060f8bdfc8b7e66e9a4", "score": "0.40445068", "text": "private static JSONObject makeCreateRequest(String input) throws IllegalArgumentException {\n JSONObject inputObject;\n JSONObject outputObject;\n try {\n inputObject = new JSONObject(input);\n } catch (JSONException e) {\n JSONObject error = new JSONObject();\n error.put(\"error\", \"not a request\");\n error.put(\"object\", input);\n System.err.println(error.toString());\n throw new IllegalArgumentException(\"Invalid JSON Input: \" + e);\n }\n try {\n if (inputObject.getString(\"command\").equals(\"roads\")) {\n\n // Create list of towns\n List<String> towns = new ArrayList<String>();\n JSONArray params = inputObject.getJSONArray(\"params\");\n for (int i = 0; i < params.length(); i++) {\n JSONObject current = params.getJSONObject(i);\n String from = current.getString(\"from\");\n String to = current.getString(\"to\");\n if (!towns.contains(from)) {\n towns.add(from);\n }\n if (!towns.contains(to)) {\n towns.add(to);\n }\n }\n\n outputObject = new JSONObject();\n outputObject.put(\"towns\", towns.toArray());\n outputObject.put(\"roads\", params);\n } else\n throw new IllegalArgumentException(\"First command not 'roads'\");\n } catch (JSONException e) {\n e.printStackTrace();\n throw new IllegalArgumentException(\"First request should be a well-formed Create request\");\n }\n return outputObject;\n }", "title": "" }, { "docid": "a5ce8ac589c461a70b0e1222fdc0c96e", "score": "0.4044066", "text": "public SyncDeviceAndResendMessageJob(X.C007303n r5, com.whatsapp.jid.UserJid[] r6, long r7) {\n /*\n r4 = this;\n java.util.LinkedList r3 = new java.util.LinkedList\n r3.<init>()\n com.whatsapp.jobqueue.requirement.ChatConnectionRequirement r0 = new com.whatsapp.jobqueue.requirement.ChatConnectionRequirement\n r0.<init>()\n r3.add(r0)\n r2 = 1\n r1 = 0\n org.whispersystems.jobqueue.JobParameters r0 = new org.whispersystems.jobqueue.JobParameters\n r0.<init>(r3, r2, r1)\n r4.<init>(r0)\n X.AnonymousClass00E.A0B(r6)\n int r3 = r6.length\n r2 = 0\n L_0x001c:\n if (r2 >= r3) goto L_0x0028\n r1 = r6[r2]\n java.lang.String r0 = \"invalid jid\"\n X.AnonymousClass00E.A04(r1, r0)\n int r2 = r2 + 1\n goto L_0x001c\n L_0x0028:\n r4.A07 = r5\n java.util.List r0 = java.util.Arrays.asList(r6)\n java.lang.String[] r0 = X.AnonymousClass1VY.A0g(r0)\n r4.rawUserJids = r0\n java.lang.String r0 = r5.A01\n r4.messageId = r0\n X.02N r0 = r5.A00\n if (r0 == 0) goto L_0x0045\n java.lang.String r0 = r0.getRawString()\n r4.messageRawChatJid = r0\n r4.expirationMs = r7\n return\n L_0x0045:\n r0 = 0\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.jobqueue.job.SyncDeviceAndResendMessageJob.<init>(X.03n, com.whatsapp.jid.UserJid[], long):void\");\n }", "title": "" }, { "docid": "7aa4e539394f222cfb63782dc368d1cd", "score": "0.40433615", "text": "public interface ThreadsApi {\n /**\n * Identify a user, with optional traits. Users are individual people you’re\n * tracking, with a user-id and an email address. Users can have additional traits, which are\n * things you know about them such as their date of birth, name, and what plan they have\n * subscribed to. Authentication is via HTTP Basic Auth, with the project Event Key as the\n * username, and an empty password.\n */\n void identify(Identify identify);\n\n /**\n * Track an event. Events are things your users do on your website or in your app,\n * such as view a page, use a feature, or purchase a product. They can optionally have properties\n * such as the sku of the product purchased or the song played. Authentication is via HTTP Basic\n * Auth, with the project Event Key as the username, and an empty password.\n */\n void track(Track track);\n\n /**\n * Record a page view. Page view events have an optional 'properties' parameter, which\n * includes additional information about the view, such as the URL and referer. In order to use page\n * views in Threads workflows, be sure to include at least the 'url' property with the full URL of the\n * page that was viewed. Authentication is via HTTP Basic Auth, with the project Event Key as the\n * username, and an empty password.\n */\n void page(Page page);\n\n /**\n * Remove a user. When a user has been removed, no further workflows will trigger\n * for them, and the information about them will be unavailable in Threads. If you wish to re-add\n * a removed user, you need to Identify them again with all relevant information. Authentication\n * is via HTTP Basic Auth, with the project Event Key as the username, and an empty password.\n */\n void remove(Remove remove);\n}", "title": "" }, { "docid": "564b0d21c053a9c41076468359dd4ad6", "score": "0.40371665", "text": "java.util.concurrent.Future<ListICD10CMInferenceJobsResult> listICD10CMInferenceJobsAsync(ListICD10CMInferenceJobsRequest listICD10CMInferenceJobsRequest);", "title": "" }, { "docid": "6b016b6d642e79d2b2958294eed7fc3e", "score": "0.40334436", "text": "public static List<ContactPetition> parseContactPetitionList(JsonReader reader) throws IOException {\n List<ContactPetition> contactrequestList = new ArrayList<>(0);\n reader.beginArray();\n while (reader.hasNext()) {\n contactrequestList.add(parseContactPetition(reader));\n }\n reader.endArray();\n return contactrequestList;\n }", "title": "" }, { "docid": "ef1f083c15d9bbe36309600f1db8f227", "score": "0.40329805", "text": "public void exec(List<IActivityDataObject> activityDataObjects);", "title": "" }, { "docid": "42a31b4ca7762999669ff4eeb30fbd7e", "score": "0.40289447", "text": "protected Collection<Thread> getWaitingThreads(Condition paramCondition) {\n/* 741 */ if (paramCondition == null)\n/* 742 */ throw new NullPointerException(); \n/* 743 */ if (!(paramCondition instanceof AbstractQueuedSynchronizer.ConditionObject))\n/* 744 */ throw new IllegalArgumentException(\"not owner\"); \n/* 745 */ return this.sync.getWaitingThreads((AbstractQueuedSynchronizer.ConditionObject)paramCondition);\n/* */ }", "title": "" }, { "docid": "7e3aa8e2efcb2ccdc5ae7e775ee51fc3", "score": "0.40270346", "text": "@Test(timeout=300000)\n public void test61() throws Throwable {\n int int0 = DataCollectionNames.getTypeFromCommand(\"monitoring.controller.threads.number\");\n assertEquals(42, int0);\n }", "title": "" }, { "docid": "d6aef8cc7f581c419d51102c8ea8f5ad", "score": "0.4021899", "text": "java.util.List<com.ylpu.thales.scheduler.core.rpc.entity.JobRequestRpc> getDependenciesList();", "title": "" }, { "docid": "4395707d583bf1e2d505544e2fd7ad6d", "score": "0.40206856", "text": "public List<Job> listJob();", "title": "" }, { "docid": "8d1c40d8b84563755f58795785a47334", "score": "0.401404", "text": "public Task(TransferObject data) {\n this.name = data.getName();\n this.description = data.getDescription();\n this.date = data.getDate();\n this.contacts = data.getContacts();\n }", "title": "" }, { "docid": "cf7653311192497185ad4c3b03d5de6f", "score": "0.4003668", "text": "public List<Task> getTasks(List<Input> inputs, List<Action> actions) {\n JSONArray taskJson = new JSONArray();\n return ConversionUtils.convertJsonToTasks(taskJson);\n }", "title": "" }, { "docid": "5581ea53e59c00a88d63184b8b677baf", "score": "0.4001691", "text": "public IterationsComputerThread(ProgramWindow parent, ClusterData data) {\n\t\tthis.parent = parent;\n\t\tthis.data = data;\n\t\t\n\t\tsetName(\"IterationsComputerThread\");\n\t}", "title": "" }, { "docid": "aa3af21287042bd038ad556695d41acd", "score": "0.40013307", "text": "public\n QueueGetJobInfoReq\n (\n Set<Long> jobIDs\n )\n { \n pJobIDs = new TreeSet<Long>(jobIDs);\n }", "title": "" }, { "docid": "b1b80f4518393b09b76c2ace6ecefd2f", "score": "0.39978117", "text": "in.trujobs.proto.JobPostObject getJobPost();", "title": "" }, { "docid": "cd72ec356678b21c0f10568c58f7a714", "score": "0.39876565", "text": "private static void newExecuteTask(List<Integer> list, int numberThread) throws InterruptedException\n {\n List<Runnable> runnableList = new ArrayList<>();\n\n // #2: Filling -> callableList\n for (int start = 0; start < list.size(); start = start + numberThread)\n {\n System.out.println(start + \" \" + (start + numberThread));\n int end = start + numberThread >= list.size() ? list.size() : start + numberThread;\n runnableList.add(task(list.subList(start, end)));\n }\n\n // #3: create thread\n for (Runnable run : runnableList)\n {\n new Thread(run).start();\n }\n }", "title": "" }, { "docid": "7ab23a615070ae17d2dc1d556e31b7c5", "score": "0.39841902", "text": "public void doThreadWork() {\n // se lee el numero de tareas especificadas por el usuario (cada tarea se ejecutara en un thread)\n int numtasks = Integer.parseInt(((EditText)findViewById(R.id.editTextNunThreads)).getText().toString());\n if (numtasks > work) numtasks = work;\n\n Thread[] threads = new Thread[nThreads];\n int count = 0;\n while (count < numtasks) {\n // Se van ha crear tantos threads como tareas especificadas pero en tandas de nThreads cada vez\n int nth = 0;\n while (nth < nThreads && count < numtasks) {\n // se crean nThreads y se ponen a trabajar (start)\n threads[nth] = new Thread(new myTask(count, numtasks));\n threads[nth].start();\n nth++;\n count++;\n }\n for (int i = 0; i < nth; i++) {\n // se espera a que terminen los nThreads que estan trabajando antes de crear otros\n try {\n threads[i].join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "88945198009d9334382b233b51e39856", "score": "0.3982141", "text": "public static ArrayList<Task> StoreTask(ArrayList<Task> task, String input) {\n //int count = list.length;\n int count = 0;\n for(int i = 0; i < task.size(); i++)\n {\n if(null != task.get(i)) count++;\n }\n Task t = null;\n String[] word = input.split(\" \");\n\n if(word[0].equalsIgnoreCase(\"todo\"))\n {\n try {\n t = new Todo(input);\n task.add(t);\n System.out.println(\"Got it. I've added this task:\");\n System.out.println(task.get(count).getStatusIcon() + task.get(count).getDescription());\n int temp = count+1;\n System.out.println(\"Now you have \" + temp+\" items in the list.\");\n }\n catch (Exception e1){\n System.out.println(e1.getMessage());\n }\n }\n else if(word[0].equalsIgnoreCase(\"deadline\"))\n {\n try {\n String[] s1 = input.split(\"/by\");\n t = new Deadline(s1[0], s1[1]);\n task.add(t);\n System.out.println(\"Got it. I've added this task:\");\n System.out.println(task.get(count).getStatusIcon() + task.get(count).getDescription());\n int temp = count+1;\n System.out.println(\"Now you have \" + temp+\" items in the list.\");\n }\n catch (Exception e1){\n checkException(\"Deadline description and time cannot be empty.\"+e1.getMessage());\n }\n }\n else if(word[0].equalsIgnoreCase(\"event\"))\n {\n try {\n String[] s2 = input.split(\"/at\");\n t = new Event(s2[0], s2[1]);\n task.add(t);\n System.out.println(\"Got it. I've added this task:\");\n System.out.println(task.get(count).getStatusIcon() + task.get(count).getDescription());\n int temp = count + 1;\n System.out.println(\"Now you have \" + temp + \" items in the list.\");\n }\n catch (Exception e1)\n {\n checkException(\"Duke.command.Duke.tasks.Event description and time cannot be empty.\");\n }\n }\n else if(word[0].equalsIgnoreCase(\"delete\"))\n {\n try {\n// String[] s2 = input.split(\"/at\");\n int index = Integer.parseInt(word[1]);\n// t = new Duke.command.Duke.tasks.Event(s2[0], s2[1]);\n// task.add(t);\n System.out.println(\"Noted, I've removed this task: \");\n System.out.println(task.get(index-1).getStatusIcon() + task.get(index-1).getDescription());\n int temp = count - 1;\n System.out.println(\"Now you have \" + temp + \" items in the list.\");\n deleteTask(index-1);\n }\n catch (Exception e1)\n {\n checkException(e1.getMessage());\n }\n }\n else if(word[0].equalsIgnoreCase(\"find\"))\n {\n try {\n String keyword = word[1];\n int size = 0;\n for(int i = 0; i < task.size(); i++)\n {\n if(null != task.get(i)) size++;\n }\n\n System.out.println(\"Here are the matching tasks in your list:\");\n for(int i=0;i<size;i++)\n {\n String des = task.get(i).getDescription();\n if(des.contains(keyword)) {\n System.out.println(i + 1 + \".\" + task.get(i).getStatusIcon() + task.get(i).getDescription());\n }\n }\n }\n catch (Exception e1)\n {\n checkException(\"Keywords cannot be empty.\");\n }\n }\n else if(word[0].equalsIgnoreCase(\"empty\"))\n {\n try {\n task.clear();\n System.out.println(\"Deleted all task records\");\n }\n catch (Exception e1)\n {\n checkException(e1.getMessage());\n }\n }\n else {\n t = new Task(input);\n System.out.println(\"Got it. I've added this task:\");\n task.add(t);\n int temp = count+1;\n System.out.println(\"Now you have \" + temp+\" items in the list.\");\n }\n\n return task;\n }", "title": "" }, { "docid": "7538e08bb74c25f53bdee1f0f041332b", "score": "0.39812943", "text": "public String constructJsonRequestObject(String target) throws IOException {\n\t\tList<Integer> cat0ValueList = new ArrayList<>();\n\t\tList<Integer> cat1ValueList = new ArrayList<>();\n\t\tString startDateTime = null;\n\t\t\n\t\tReader in = new FileReader( ResourceUtils.getFile(buildPredictionInputFilePath(target)) );\n\t\tIterable<CSVRecord> records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(in);\n\t\t\n\t\t//convert to lists of values which will be used to construct the 'Instance' elements of the json request object\n\t\t//Note - You might need to customize code below based on how many categories you have for you input data, you \n\t\t//can also extend the code to support input features if you want\n\t\tList<CSVRecord> recList = StreamSupport.stream(records.spliterator(), false).collect(Collectors.toList());\n\t\tfor(int i = 0; i < recList.size(); i++) {\n\t\t\tCSVRecord record = recList.get(i);\n\t\t\tString datetime = record.get(\"datetime\");\n\t\t String valueOfCategory0 = record.get(\"category0\");\n\t\t String valueOfCategory1 = record.get(\"category1\");\n\t\t\tif(i == 0) {\n\t\t\t\t//Remember the start time, which is needed to build the request\n\t\t\t\tstartDateTime = datetime;\n\t\t\t\tlog.info(\"constructJsonRequestObject - startDateTime: {}\", startDateTime);\n\t\t\t}\n\t\t\tif(i == recList.size()-1) {\n\t\t\t\tthis.lastExistingDate = datetime;\n\t\t\t\tlog.info(\"constructJsonRequestObject - lastExistingDate: {}\", lastExistingDate);\n\t\t\t}\n\t\t\t\n\t\t cat0ValueList.add(Integer.valueOf(valueOfCategory0));\n\t\t cat1ValueList.add(Integer.valueOf(valueOfCategory1));\n\t\t}\n\t\t\n\t\tDeepArRequest req = new DeepArRequest();\n\t\tList<Instance> insts = new ArrayList<>();\n\t\t\n\t\t//set cat 0 \n\t\tInstance inst = new Instance();\n\t\tinst.setStart(startDateTime);\n\t\tList<Integer> cat = new ArrayList<>();\n\t\tcat.add(0);\n\t\tinst.setCat(cat);\n\t\tinst.setTarget(cat0ValueList);\n\t\tinsts.add(inst);\n\t\t\n\t\t//set cat 1\n\t\tinst = new Instance();\n\t\tinst.setStart(startDateTime);\n\t\tcat = new ArrayList<>();\n\t\tcat.add(1);\n\t\tinst.setCat(cat);\n\t\tinst.setTarget(cat1ValueList);\n\t\tinsts.add(inst);\n\t\t\n\t\treq.setInstances(insts);\n\t\t\n\t\t//set configuration data\n\t\tConfiguration config = new Configuration();\n\t\tconfig.setNumSamples(50);\n\t\t\n\t\tList<String> quantiles = new ArrayList<>();\n\t\tquantiles.add(\"0.1\");\n\t\tquantiles.add(\"0.5\");\n\t\tquantiles.add(\"0.9\");\n\t\t\n\t\tconfig.setQuantiles(quantiles);\n\t\t\n\t\tList<String> outputTypes = new ArrayList<>();\n\t\toutputTypes.add(\"mean\");\n\t\toutputTypes.add(\"quantiles\");\n\t\toutputTypes.add(\"samples\");\n\t\t\n\t\tconfig.setOutputTypes(outputTypes);\n\t\treq.setConfiguration(config);\n\t\t\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\tString result = objectMapper.writeValueAsString(req);\n\t\t\n\t\tlog.debug(\"constructJsonRequestObject result: {}\", result);\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "9e67eedd695807d0b76a57f9ec27f4a7", "score": "0.39729536", "text": "public String[] getTaskList() throws IOException, ClassNotFoundException {\n\n //creating empty tasklist\n taskList = new TaskList();\n //sending empty task list\n objectOutputStream.writeObject(taskList);\n //read the task list from server\n taskList = (TaskList) objectInputStream.readObject();\n System.out.println(taskList.getAvailableTasks());\n return taskList.getAvailableTasks();\n }", "title": "" }, { "docid": "4fefc0459c435f1f4f55d900eb449b20", "score": "0.39656657", "text": "public JSONObject getCTeamWaitedUsersList(JSONObject data) {\n\t\tJSONObject\tresult=new JSONObject();\n\t\tint flag=0;\n\t\tString tip=null;\n\t\tJSONArray sqlData=new JSONArray();\t\t\n\t\ttry{\n\t\t\t//如果发送了userId字段。\t\t\t\n\t\t\t//如果用户id不空{如果用户id存在,则从deliveryAddress表中查询数据}。否则报错。\t\n\t\t\tint org_id=data.getInt(\"CTeamID\");\n\t\t\tconn = DBConnect.getConn();\n\t\t\tps=conn.prepareStatement(\"SELECT t.userID AS UserID,u.nick_name AS UserName,t.inviteTime AS InviteTime\"+\n\t\t\t\t\t\" FROM team_invite t JOIN user_info u ON t.userID=u.id \"+\n\t\t\t\t\t\" WHERE t.state=0 and t.teamID=\"+org_id);\n\t\t\trs=ps.executeQuery();\n\t\t\tsqlData= CDataTransform.rsToJsonLabel(rs);\n\t\t\ttip = \"信息获取成功\";\t\t\t\t\n\t\t}catch(Exception e){\n\t\t\tflag=1;\n\t\t\ttip=\"系统运行错误\";\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tDBConnect.close(conn,ps,rs);\n\t\t}\n\t\ttry{\n\t\t\tresult.put(\"flag\", flag);\n\t\t\tresult.put(\"tip\", tip);\n\t\t\tresult.put(\"data\", sqlData);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "e26cd614d16660feefd3c3790a3e0208", "score": "0.3963157", "text": "@Override\n\tprotected ArrayList<ThreadDownload> getThreadList() {\n\t\tif(lstThreads == null){\n\t\t\tlstThreads = new ArrayList<ThreadDownload>();\n\t\t}\n\t\treturn lstThreads;\n\t}", "title": "" }, { "docid": "8e1e80851672e6ca75d35325e3e7ae4e", "score": "0.396152", "text": "public List<Job> getJobs( IJobFilter filter ) throws SchedulerException;", "title": "" }, { "docid": "796f648cbd9e85f9c5eceb9bd5093893", "score": "0.39570194", "text": "private PostThread createThread(JSONObject obj, int depthLevel) {\r\n\t\tJSONObject post;\r\n\t\ttry {\r\n\t\t\tpost = new JSONObject(obj.getString(\"post\"));\r\n\t\t\tPostThread thread = new PostThread(post.getString(\"date\"), \r\n\t\t\t\t\tpost.getInt(\"number\"), \r\n\t\t\t\t\tpost.getString(\"subject\"),\r\n\t\t\t\t\tpost.getString(\"author_name\"),\r\n\t\t\t\t\tpost.getString(\"author_email\"), \r\n\t\t\t\t\tpost.getString(\"newsgroup\"),\r\n\t\t\t\t\tpost.getBoolean(\"starred\"),\r\n\t\t\t\t\tpost.getString(\"unread_class\"),\r\n\t\t\t\t\tpost.getString(\"personal_class\"),\r\n\t\t\t\t\tpost.getString(\"sticky_until\"));\r\n\t\t\tthread.depth = depthLevel;\r\n\t\t\tLog.d(\"thread\", thread.authorName + \": \" + thread.depth);\r\n\t\t\tif (obj.getJSONArray(\"children\") != null ) {\r\n\t\t\t\tfor (int i = 0 ; i < obj.getJSONArray(\"children\").length() ; i++) {\r\n\t\t\t\t\tPostThread child = createThread(obj.getJSONArray(\"children\").getJSONObject(i), depthLevel + 1);\r\n\t\t\t\t\tchild.parent = thread;\r\n\t\t\t\t\tthread.children.add(child);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn thread;\t\t\r\n\t\t} catch (JSONException e) {\r\n\t\t\tLog.d(\"jsonError\", \"JSONException\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "15ae3c69a691245e6c43c12948f21bbf", "score": "0.39497554", "text": "public HttpMessageData[] call(){\n\t\tHttpMessageData[] clientResponseData = initResponseData(settings.getLoopNumber());\n\t\tString method = data.getMethod();\n\t\tConsoleLog.Print(\"[Worker \" + this.threadId +\"]pracuju: \" + data.getName());\n\t\tDefaultHttpClient client = new DefaultHttpClient();\n\t\tHttpUriRequest request = buildRequest();\n\t\tclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, settings.getTimeout());\n\t\tclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, settings.getRequestTimeout());\n\t\t\n\t\tif(settings.getUseProxy()){\n\t\t\tHttpHost proxy = new HttpHost(settings.getProxyHost(),settings.getProxyPort());\n\t\t\tclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\t\n\t\tfor(int i = 0; i < settings.getLoopNumber(); i++){ \n\t\t\ttry{\n\t\t\t\tConsoleLog.Print(\"[Worker \" + this.threadId +\"] cyklus\");\n\t\t\t\t\n\t\t\t\t//measure time spent on request\n\t\t\t\tlong time1= System.nanoTime();\n\t\t\t\tHttpResponse response = client.execute(request);\n\t\t\t\tlong time2 = System.nanoTime();\n\t\t\t\tlong timeSpent = time2-time1;\n\t\t\t\t\n\t\t\t\t//read message content\n\t\t\t\tHttpEntity responseEntity = response.getEntity();\n\t\t\t\tString output = EntityUtils.toString(responseEntity);\n\t\t\t\tEntityUtils.consume(responseEntity);\n\t\t\t\t\n\t\t\t\t//fill the response array\n\t\t\t\tclientResponseData[i].setName(data.getName());\n\t\t\t\tclientResponseData[i].setResponseBody(output);\n\t\t\t\tclientResponseData[i].setRequestBody(data.getRequestBody());\n\t\t\t\tclientResponseData[i].setElapsedRemoteTime(timeSpent);\n\t\t\t\tclientResponseData[i].setContentType(responseEntity.getContentType().getValue());\n\t\t\t\t\n\t\t\t\tclientResponseData[i].setResponseCode(response.getStatusLine().getStatusCode());\n\t\t\t\tclientResponseData[i].setMethod(method);\n\t\t\t\tclientResponseData[i].setLoopNumber(i);\n\t\t\t\tclientResponseData[i].setThreadNumber(this.threadId);\n\t\t\t\tclientResponseData[i].setHost(data.getHost());\n\t\t\t\tclientResponseData[i].setResource(data.getResource());\n\t\t\t\tclientResponseData[i].setParams(data.getParams());\n\t\t\t\tclientResponseData[i].setExpectedBody(data.getExpectedBody());\n\t\t\t\n\t\t\t\t//connection timeouted\n\t\t\t}catch(ConnectTimeoutException ex){\n\t\t\t\tConsoleLog.Message(\"[Thread\" + this.threadId +\"]\" + ex.getMessage());\n\t\t\t\tclientResponseData[i].setName(data.getName());\n\t\t\t\tclientResponseData[i].setResponseBody(\"timeouted\");\n\t\t\t\tclientResponseData[i].setRequestBody(\"timeouted\");\n\t\t\t\tclientResponseData[i].setElapsedRemoteTime(-1);\n\t\t\t\tclientResponseData[i].setContentType(\"\");\n\t\t\t\tclientResponseData[i].setResponseCode(-1);\n\t\t\t\tclientResponseData[i].setMethod(method);\n\t\t\t\tclientResponseData[i].setLoopNumber(i);\n\t\t\t\tclientResponseData[i].setThreadNumber(this.threadId);\n\t\t\t\tclientResponseData[i].setHost(data.getHost());\n\t\t\t\tclientResponseData[i].setResource(data.getResource());\n\t\t\t\tclientResponseData[i].setParams(data.getParams());\n\t\t\t\tclientResponseData[i].setExpectedBody(data.getExpectedBody());\n\t\t\t\t\n\t\t\t// request timeouted\t\n\t\t\t}catch(SocketTimeoutException ex){\n\t\t\t\tConsoleLog.Message(\"[Thread\" + this.threadId +\"]\" + ex.getMessage());\n\t\t\t\tclientResponseData[i].setName(data.getName());\n\t\t\t\tclientResponseData[i].setResponseBody(\"timeouted\");\n\t\t\t\tclientResponseData[i].setRequestBody(\"timeouted\");\n\t\t\t\tclientResponseData[i].setElapsedRemoteTime(-1);\n\t\t\t\tclientResponseData[i].setContentType(\"\");\n\t\t\t\tclientResponseData[i].setResponseCode(-1);\n\t\t\t\tclientResponseData[i].setMethod(method);\n\t\t\t\tclientResponseData[i].setLoopNumber(i);\n\t\t\t\tclientResponseData[i].setThreadNumber(this.threadId);\n\t\t\t\tclientResponseData[i].setHost(data.getHost());\n\t\t\t\tclientResponseData[i].setResource(data.getResource());\n\t\t\t\tclientResponseData[i].setParams(data.getParams());\n\t\t\t\tclientResponseData[i].setExpectedBody(data.getExpectedBody());\n\t\t\t}\n\t\t\t\n\t\t\tcatch(Exception ex){\n\t\t\t\tConsoleLog.Message(ex.getMessage());\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\treturn clientResponseData;\n\t}", "title": "" }, { "docid": "776b10ca8a26c6fd2fb63aade41e8391", "score": "0.39479566", "text": "@RequestMapping(value = \"/*/program/listsub\", method = RequestMethod.POST)\r\n\tpublic @ResponseBody List<Map<String, String>> getProgramSub(@RequestParam String json,\r\n\t\t\tHttpServletRequest request) {\n\t\tString user_name = getUserLoginName(this.getClass().getCanonicalName() + \".getProgramSub\" + json, request);\r\n\r\n\t\ttry {\r\n\t\t\tif (user_name.equals(\"anonymousUser\"))\r\n\t\t\t\tthrow new Exception(\"Not logged\");\r\n\r\n\t\t\treturn msaleBase.getProgramSub(user_name, json);\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn getError(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1ea9c8946e3b7211783b6f60095fb63a", "score": "0.39428797", "text": "public interface ThreadCreate {\n /**\n * Create a new thread.\n *\n * @param name the thread name\n * @param priority the thread priority\n * @param runnableReady an implementation of RunnableReady\n * @return the newly created thread. Create does not return until ready has been called.\n */\n Thread create(String name, int priority, RunnableReady runnableReady);\n\n /**\n * Get an array of all the active threads.\n *\n * @return The array.\n */\n Thread[] getThreads();\n}", "title": "" }, { "docid": "c02ae8169b613a4dc1af4c3f72b7b559", "score": "0.39415073", "text": "private static JSONObject handleListJobs(String cursor, int count) throws JSONException {\n Collection<MapperStateEntity<?, ?, ?, ?>> states = new ArrayList<MapperStateEntity<?, ?, ?, ?>>();\n Cursor newCursor = MapperStateEntity.getMapReduceStates(cursor, count, states);\n JSONArray jobs = new JSONArray();\n for (MapperStateEntity<?, ?, ?, ?> state : states) {\n jobs.put(state.toJson(false));\n }\n\n JSONObject retValue = new JSONObject();\n retValue.put(\"jobs\", jobs);\n if (newCursor != null) {\n retValue.put(\"cursor\", newCursor.toWebSafeString());\n }\n\n return retValue;\n }", "title": "" }, { "docid": "f2ef77493338c17b3b654a0cc51cf804", "score": "0.39408922", "text": "void enqueue(String json);", "title": "" }, { "docid": "accbff981eea975d5dfaf186825328f4", "score": "0.3934934", "text": "@And(\"^with the Content Type as JSON - PostToCreatePlayList$\")\r\n\tpublic void with_the_Content_Type_as_JSON_PostToCreatePlayList() throws Throwable {\n\t throw new PendingException();\r\n\t}", "title": "" }, { "docid": "a0ed00da17eb09df8a60593bb29f4781", "score": "0.3931728", "text": "public static TaskList readTaskList(String taskListPart) throws MalformedSaveException {\n // split the taskListPart in terms of \",\", and then put them into a string array\n String[] taskParts = taskListPart.split(\",\");\n // validTask is a parameter of TaskList class\n List<Task> validTask = new ArrayList<Task>();\n\n // read every task\n for (int i = 0; i < taskParts.length; i++) {\n // split the task in terms of \"@\", and then put them into\n // a string array called uncheckedTask\n String[] uncheckedTask = taskParts[i].split(\"@\");\n // if more than one @ is detected for any task in the task list\n if (uncheckedTask.length > 2) {\n throw new MalformedSaveException();\n }\n // check if task type is valid\n TaskType uncheckedTaskType;\n try {\n uncheckedTaskType = TaskType.valueOf(uncheckedTask[0]);\n } catch (IllegalArgumentException e) {\n throw new MalformedSaveException();\n }\n // if the task type is LOAD\n if (TaskType.LOAD.equals(uncheckedTaskType)) {\n // the load percentage of aircraft\n int loadPercentageOfAircraft;\n try {\n loadPercentageOfAircraft = Integer.parseInt(uncheckedTask[1]);\n } catch (NumberFormatException e) {\n throw new MalformedSaveException();\n }\n // check if a task's load percentage is less than 0\n if (loadPercentageOfAircraft < 0) {\n throw new MalformedSaveException();\n }\n validTask.add(new Task(uncheckedTaskType, loadPercentageOfAircraft));\n // if task is other than LOAD\n } else {\n validTask.add(new Task(uncheckedTaskType));\n }\n }\n\n // the task list is invalid according to the rules specified in TaskList(List)\n try {\n return new TaskList(validTask);\n } catch (IllegalArgumentException e) {\n throw new MalformedSaveException();\n }\n }", "title": "" }, { "docid": "876991ee58f3dcae39d8eeb113e08cb1", "score": "0.3931275", "text": "private void parseTypeList() {\n\t\toverdueList = donLogic.getOverdueTasks();\n\t\ttodayList = donLogic.getTodayTasks();\n\t\tweekList = donLogic.getWeekTasks();\n\t\tfarList = donLogic.getFutureTasks();\n\t\tfloatList = donLogic.getFloatingTasks();\n\t}", "title": "" }, { "docid": "aa98102dfb0a6654ff9697db0f2c57ed", "score": "0.3930393", "text": "public ProgressItemSelection (Task[] data) {\n this.data = data;\n }", "title": "" }, { "docid": "a518adde75b067e6f969dac36c84dce5", "score": "0.39277872", "text": "public void getchannelPartnerSelect(final String channelPartnerSelect) {\n jsonSchedule = new JSONObject() {\n {\n try {\n put(\"Prefixtext\", channelPartnerSelect);\n\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"json exception\", \"json exception\" + e);\n }\n }\n };\n\n\n Thread objectThread = new Thread(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n WebClient serviceAccess = new WebClient();\n String baseURL = \"http://sales.pibm.net:86/service.svc/CallListService/GetChannelPartner\";\n Log.i(\"json\", \"json\" + jsonSchedule);\n //SEND RESPONSE\n // studentResponse = serviceAccess.SendHttpPost(baseURL, jsonSchedule);\n studentResponse = serviceAccess.SendHttpPost(Config.URL_GETALLSTUDENTSBYID, jsonSchedule);\n Log.i(\"resp\", \"loginResponse\" + studentResponse);\n\n\n try {\n JSONArray callArrayList = new JSONArray(studentResponse);\n studentArrayList.clear();\n // user_id=\"\";\n for (int i = 0; i < callArrayList.length(); i++) {\n callListDAO = new StudentListDAO();\n JSONObject cityJsonObject = callArrayList.getJSONObject(i);\n studentArrayList.add(new StudentListDAO(cityJsonObject.getString(\"Details\"), cityJsonObject.getString(\"id\"), cityJsonObject.getString(\"first_name\"),cityJsonObject.getString(\"last_name\"),cityJsonObject.getString(\"mobile_no\"),cityJsonObject.getString(\"email_id\")));\n\n }\n\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n runOnUiThread(new Runnable() {\n public void run() {\n aAdapter = new ArrayAdapter<StudentListDAO>(getApplicationContext(), R.layout.item, studentArrayList);\n autoCompleteTextViewStudent.setAdapter(aAdapter);\n\n autoCompleteTextViewStudent.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int i, long l) {\n // String s = parent.getItemAtPosition(i).toString();\n StudentListDAO student = (StudentListDAO) parent.getAdapter().getItem(i);\n user_id = student.getId();\n Log.d(\"Id---->\", user_id + \"\" + student.getId());\n prefEditor.putString(\"user_id\", user_id);\n prefEditor.putString(\"st_first_name\", student.getFirst_Name());\n prefEditor.putString(\"student_mob_sms\", student.getMobile_No());\n prefEditor.putString(\"student_mail_id\", student.getStudent_mail());\n prefEditor.commit();\n // add_student.setVisibility(View.GONE);\n mleadList.setVisibility(View.VISIBLE);\n cmleadList.setVisibility(View.VISIBLE);\n mcontactList.setVisibility(View.GONE);\n takeCreateUser.setVisibility(View.VISIBLE);\n takeEditUser.setVisibility(View.VISIBLE);\n takeDeleteUser.setVisibility(View.VISIBLE);\n\n InputMethodManager inputManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n inputManager.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\n // new getLocationList().execute();\n\n\n }\n });\n aAdapter.notifyDataSetChanged();\n\n }\n });\n\n\n }\n });\n\n objectThread.start();\n\n }", "title": "" }, { "docid": "a47cab3d7e4f712e0c72ee17b97eda6e", "score": "0.3920925", "text": "public static void main(String[] args) {\n Config config = ResourceAllocator.loadConfig(new HashMap<>());\n\n // build JobConfig\n HashMap<String, Object> configurations = new HashMap<>();\n configurations.put(SchedulerContext.THREADS_PER_WORKER, 8);\n\n // build JobConfig\n JobConfig jobConfig = new JobConfig();\n jobConfig.putAll(configurations);\n\n BasicJob.BasicJobBuilder jobBuilder = BasicJob.newBuilder();\n jobBuilder.setName(\"task-example\");\n jobBuilder.setContainerClass(RoundRobinBatchTaskExample.class.getName());\n jobBuilder.setRequestResource(new ResourceContainer(2, 1024), 2);\n jobBuilder.setConfig(jobConfig);\n\n // now submit the job\n Twister2Submitter.submitContainerJob(jobBuilder.build(), config);\n }", "title": "" }, { "docid": "6c3fdbcf7267506cb83b481ea2687141", "score": "0.3919095", "text": "public interface Task extends TaskExecutor{\n\n public interface Request {\n public static final int CONSUME_CPU = 1;\n public static final int CONSUME_IO = 2;\n public static final int CONSUME_CUSTOME = 3;\n boolean isCancled();\n boolean isDone();\n int getWhitchPerformanceConsumeMost();\n }\n\n public interface Response<T> {\n T response();\n void setResponse(T result);\n }\n\n Request getRequest();\n\n Response getResponse();\n void setResponse(Response response);\n\n void onDone();\n\n void cancle();\n boolean isCancled();\n\n TaskCompleteAction getCompleteAction();\n TaskErrorAction getErrorAction();\n}", "title": "" }, { "docid": "1288a4298f9c048a7828c95032999eb3", "score": "0.39184275", "text": "public static EmailThreadListBuilder emailThreadList() {\n return new EmailThreadListBuilder(new EmailThreadList());\n }", "title": "" }, { "docid": "64d3b588799af4483b99efaa86e0d85f", "score": "0.39179215", "text": "@Override\n public <T> List<T> fromJsonArray(String json, Class<T> klass) throws JSONConverterException {\n try {\n JsonList<T> jsonList = new JsonList<>(klass);\n return this.gson.fromJson(json, jsonList);\n } catch (JsonSyntaxException e) {\n throw new JSONConverterException(e);\n }\n }", "title": "" }, { "docid": "88bc1001099d35985a06af2bfa67adc3", "score": "0.39087355", "text": "protected List<String> build (Map<String,Object> inputs,\n\t\t\t\t Job job,\n\t\t\t\t String tagPrefix)\n\tthrows ParameterException {\n\n\tString[] values = getValues (inputs, job);\n\tif (values.length == 0) {\n\t // no value found, but it was allowed because of type\n\t // ZERO_OR_ONE (otherwise it would throw an exception)\n\t return CmdLineJob.EMPTY_LIST;\n\t}\n\n\t// using only the first element (should be the only one, anyway)\n\treturn createArgFromSubBool (values[0], tagPrefix);\n }", "title": "" }, { "docid": "8e1fb1bc18d247245221159654147b85", "score": "0.39073944", "text": "@CmmnDeployment(resources = { \"org/flowable/cmmn/rest/service/api/repository/oneHumanTaskCase.cmmn\" })\n public void testQueryTasks() throws Exception {\n try {\n Calendar adhocTaskCreate = Calendar.getInstance();\n adhocTaskCreate.set(Calendar.MILLISECOND, 0);\n\n Calendar caseTaskCreate = Calendar.getInstance();\n caseTaskCreate.add(Calendar.HOUR, 2);\n caseTaskCreate.set(Calendar.MILLISECOND, 0);\n\n Calendar inBetweenTaskCreation = Calendar.getInstance();\n inBetweenTaskCreation.add(Calendar.HOUR, 1);\n\n cmmnEngineConfiguration.getClock().setCurrentTime(adhocTaskCreate.getTime());\n Task adhocTask = taskService.newTask();\n adhocTask.setAssignee(\"gonzo\");\n adhocTask.setOwner(\"owner\");\n adhocTask.setDelegationState(DelegationState.PENDING);\n adhocTask.setDescription(\"Description one\");\n adhocTask.setName(\"Name one\");\n adhocTask.setDueDate(adhocTaskCreate.getTime());\n adhocTask.setPriority(100);\n adhocTask.setFormKey(\"myForm.json\");\n adhocTask.setCategory(\"some-category\");\n taskService.saveTask(adhocTask);\n taskService.addUserIdentityLink(adhocTask.getId(), \"misspiggy\", IdentityLinkType.PARTICIPANT);\n\n cmmnEngineConfiguration.getClock().setCurrentTime(caseTaskCreate.getTime());\n CaseInstance caseInstance = runtimeService.createCaseInstanceBuilder().caseDefinitionKey(\"oneHumanTaskCase\").businessKey(\"myBusinessKey\").start();\n Task caseTask = taskService.createTaskQuery().caseInstanceId(caseInstance.getId()).singleResult();\n caseTask.setParentTaskId(adhocTask.getId());\n caseTask.setPriority(50);\n caseTask.setDueDate(caseTaskCreate.getTime());\n taskService.saveTask(caseTask);\n taskService.unclaim(caseTask.getId());\n taskService.addUserIdentityLink(caseTask.getId(), \"kermit\", IdentityLinkType.CANDIDATE);\n taskService.addGroupIdentityLink(caseTask.getId(), \"sales\", IdentityLinkType.CANDIDATE);\n\n // Check filter-less to fetch all tasks\n String url = CmmnRestUrls.createRelativeResourceUrl(CmmnRestUrls.URL_TASK_QUERY);\n ObjectNode requestNode = objectMapper.createObjectNode();\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId(), adhocTask.getId());\n\n // Name filtering\n requestNode.removeAll();\n requestNode.put(\"name\", \"Name one\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Name like filtering\n requestNode.removeAll();\n requestNode.put(\"nameLike\", \"%one\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Description filtering\n requestNode.removeAll();\n requestNode.put(\"description\", \"Description one\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Description like filtering\n requestNode.removeAll();\n requestNode.put(\"descriptionLike\", \"%one\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Priority filtering\n requestNode.removeAll();\n requestNode.put(\"priority\", 100);\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Minimum Priority filtering\n requestNode.removeAll();\n requestNode.put(\"minimumPriority\", 70);\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Maximum Priority filtering\n requestNode.removeAll();\n requestNode.put(\"maximumPriority\", 70);\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Owner filtering\n requestNode.removeAll();\n requestNode.put(\"owner\", \"owner\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Assignee filtering\n requestNode.removeAll();\n requestNode.put(\"assignee\", \"gonzo\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Owner like filtering\n requestNode.removeAll();\n requestNode.put(\"ownerLike\", \"owne%\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Assignee like filtering\n requestNode.removeAll();\n requestNode.put(\"assigneeLike\", \"%onzo\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Unassigned filtering\n requestNode.removeAll();\n requestNode.put(\"unassigned\", true);\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Delegation state filtering\n requestNode.removeAll();\n requestNode.put(\"delegationState\", \"pending\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Candidate user filtering\n requestNode.removeAll();\n requestNode.put(\"candidateUser\", \"kermit\");\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Candidate group filtering\n requestNode.removeAll();\n requestNode.put(\"candidateGroup\", \"sales\");\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Candidate group In filtering\n requestNode.removeAll();\n ArrayNode arrayNode = requestNode.arrayNode();\n\n arrayNode.add(\"sales\");\n arrayNode.add(\"someOtherGroup\");\n\n requestNode.set(\"candidateGroupIn\", arrayNode);\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Involved user filtering\n requestNode.removeAll();\n requestNode.put(\"involvedUser\", \"misspiggy\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Claim task\n taskService.claim(caseTask.getId(), \"johnDoe\");\n\n // IgnoreAssignee\n requestNode.removeAll();\n requestNode.put(\"candidateGroup\", \"sales\");\n requestNode.put(\"ignoreAssignee\", true);\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Case instance filtering\n requestNode.removeAll();\n requestNode.put(\"caseInstanceId\", caseInstance.getId());\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Case instance with children filtering\n requestNode.removeAll();\n requestNode.put(\"caseInstanceIdWithChildren\", caseInstance.getId());\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n requestNode.removeAll();\n requestNode.put(\"caseInstanceIdWithChildren\", \"noexisting\");\n assertResultsPresentInPostDataResponse(url, requestNode);\n\n // Case definition id\n requestNode.removeAll();\n requestNode.put(\"caseDefinitionId\", caseInstance.getCaseDefinitionId());\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Case definition key\n requestNode.removeAll();\n requestNode.put(\"caseDefinitionKey\", \"oneHumanTaskCase\");\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n requestNode.removeAll();\n requestNode.put(\"caseDefinitionKeyLike\", \"%TaskCase\");\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n requestNode.removeAll();\n requestNode.put(\"caseDefinitionKeyLikeIgnoreCase\", \"%taskcase\");\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n requestNode.removeAll();\n ArrayNode caseDefinitionKeyIn = requestNode.putArray(\"caseDefinitionKeys\");\n caseDefinitionKeyIn.add(\"oneHumanTaskCase\");\n caseDefinitionKeyIn.add(\"another\");\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n \n // Without scope id filtering\n requestNode.removeAll();\n requestNode.put(\"withoutScopeId\", true);\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // CreatedOn filtering\n requestNode.removeAll();\n requestNode.put(\"createdOn\", getISODateString(adhocTaskCreate.getTime()));\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // CreatedAfter filtering\n requestNode.removeAll();\n requestNode.put(\"createdAfter\", getISODateString(inBetweenTaskCreation.getTime()));\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // CreatedBefore filtering\n requestNode.removeAll();\n requestNode.put(\"createdBefore\", getISODateString(inBetweenTaskCreation.getTime()));\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Subtask exclusion\n requestNode.removeAll();\n requestNode.put(\"excludeSubTasks\", true);\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Task definition key filtering\n requestNode.removeAll();\n requestNode.put(\"taskDefinitionKey\", \"theTask\");\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Task definition key like filtering\n requestNode.removeAll();\n requestNode.put(\"taskDefinitionKeyLike\", \"theTa%\");\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Duedate filtering\n requestNode.removeAll();\n requestNode.put(\"dueDate\", getISODateString(adhocTaskCreate.getTime()));\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Due after filtering\n requestNode.removeAll();\n requestNode.put(\"dueAfter\", getISODateString(inBetweenTaskCreation.getTime()));\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Due before filtering\n requestNode.removeAll();\n requestNode.put(\"dueBefore\", getISODateString(inBetweenTaskCreation.getTime()));\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n // Filtering by category\n requestNode.removeAll();\n requestNode.put(\"category\", \"some-category\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n requestNode.removeAll();\n requestNode.putArray(\"categoryIn\").add(\"not-existing-category\").add(\"some-category\");\n assertResultsPresentInPostDataResponse(url, requestNode, adhocTask.getId());\n\n requestNode.removeAll();\n requestNode.putArray(\"categoryNotIn\").add(\"some-category\");\n assertResultsPresentInPostDataResponse(url, requestNode);\n\n requestNode.removeAll();\n requestNode.put(\"withoutCategory\", Boolean.TRUE);\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n // Without process instance id filtering\n requestNode.removeAll();\n requestNode.put(\"withoutProcessInstanceId\", true);\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId(), adhocTask.getId());\n\n // Filtering without duedate\n requestNode.removeAll();\n requestNode.put(\"withoutDueDate\", true);\n // No response should be returned, no tasks without a duedate yet\n assertResultsPresentInPostDataResponse(url, requestNode);\n\n caseTask = taskService.createTaskQuery().caseInstanceId(caseInstance.getId()).singleResult();\n caseTask.setDueDate(null);\n taskService.saveTask(caseTask);\n assertResultsPresentInPostDataResponse(url, requestNode, caseTask.getId());\n\n } finally {\n // Clean adhoc-tasks even if test fails\n List<Task> tasks = taskService.createTaskQuery().list();\n for (Task task : tasks) {\n if (task.getScopeId() == null) {\n taskService.deleteTask(task.getId(), true);\n }\n }\n }\n }", "title": "" }, { "docid": "b5b8910f5a6b788ec54181a909944f74", "score": "0.39049402", "text": "<T extends Cloudlet> List<T> getCloudletWaitingList();", "title": "" }, { "docid": "05ae9f79326403e3846621e79b5b822d", "score": "0.39031664", "text": "com.ylpu.thales.scheduler.core.rpc.entity.JobRequestRpcOrBuilder getDependenciesOrBuilder(int index);", "title": "" } ]
c99b721b195690551e606bcc0dd41b1d
Saves project to a file. It uses FileOutputStream that is used to instantiate ObjectOutputStream.
[ { "docid": "3fdbce202b1a9283c44a579b490d560a", "score": "0.8069141", "text": "public static void save(File file, Project project) throws IOException {\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(project);\n fileOutputStream.close();\n objectOutputStream.close();\n }", "title": "" } ]
[ { "docid": "2f4a2a297aa057a686fc1b48d107c308", "score": "0.73826534", "text": "void saveProject(@NonNull Project p) throws IOException;", "title": "" }, { "docid": "0c48e443360fe0bfa524ab0c28bc7ac0", "score": "0.7328673", "text": "public void saveProject() {\n\t\tLogger.debug(\"in VerdiApplication.saveProject\");\n\t\tif (currentFile == null || currentFile.isDirectory()) {\n\t\t\tsaveProjectAs();\n\t\t} else if (currentFile.isFile()){\n\t\t\tdoSave(currentFile);\n\t\t}\n\t}", "title": "" }, { "docid": "d24edf456e57b00bab268fbf08670f77", "score": "0.72159725", "text": "public void saveProjectAs() {\n\t\tLogger.debug(\"in VerdiApplication.saveProjectAs\");\n\t\tFile file = FileChooserUtilities.getSaveFile(currentFile);\n\t\tif (file != null) {\n\t\t\tdoSave(file);\n\t\t}\n\t}", "title": "" }, { "docid": "cf6027e44f6621a361a239e54a833b71", "score": "0.6963307", "text": "void saveToFile( Object file );", "title": "" }, { "docid": "d9dc20967adbad031e8d7a1fb905e424", "score": "0.6869359", "text": "public void save(){\r\n FileChooser fileChooser = new FileChooser() ; \r\n File file = fileChooser.showSaveDialog(stage) ; //show save file\r\n \r\n FileOutputStream fileOS = null ; \r\n ObjectOutputStream objectOS = null ; \r\n try {\r\n fileOS = new FileOutputStream(file) ; \r\n objectOS = new ObjectOutputStream(fileOS) ; \r\n objectOS.writeObject(fileOS) ; \r\n objectOS.flush() ; \r\n objectOS.close() ;\r\n fileOS.flush();\r\n fileOS.close();\r\n } catch(FileNotFoundException e){\r\n e.printStackTrace();\r\n } catch (IOException err){\r\n err.printStackTrace();\r\n }\r\n \r\n if (file != null){\r\n System.out.println(\"File Written: \" + file) ; \r\n } \r\n }", "title": "" }, { "docid": "ea17f38506c3fba25c02096550c94e5f", "score": "0.68326837", "text": "protected static void saveProject(Project project) {\n\t\tFile projFile = new File(Constants.getProjectPath(project.getProjectUid()));\n\t\tif(!projFile.exists()) {\n\t\t\ttry {\n\t\t\t\tprojFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tString json = new Gson().toJson(project);\n\t\twriteToFile(projFile, json);\n\t}", "title": "" }, { "docid": "c5f6cca9c771091f6d2b7d4233aedf7a", "score": "0.6808839", "text": "static public void write(File file, Object objectToBeSaved) {\n try {\n ObjectOutput s = new ObjectOutputStream(new FileOutputStream(file) );\n s.writeObject(objectToBeSaved);\n s.close();\n }\n catch (IOException e) {\n de.must.io.Logger.getInstance().error(e);\n }\n }", "title": "" }, { "docid": "3ea2e6992e7cb366b1cf98ec5a48067d", "score": "0.67789155", "text": "private static void storeProject(Project project)\n throws IOException\n {\n File file = new File(getProjectSettingsDirectory(), FILENAME_PROJECT);\n IoHelper.serialize(project, file);\n\n if (!project.getName().equals(DEFAULT_PROJECT.getName()))\n {\n // don't forget to keep track of the active project\n IoHelper.serialize(\n project, new File(getSettingsDirectory(), FILENAME_PROJECT));\n }\n else\n {\n File f = new File(getSettingsDirectory(), FILENAME_PROJECT);\n f.delete();\n }\n }", "title": "" }, { "docid": "92ac86ac38c9787ff823e8e9d5b1f7ff", "score": "0.67541593", "text": "public static void save(String project)\n {\n cleanDirtyFile();\n\n File root = new File(Directories.projectsDir, project);\n Log.i(\"Starting saving process of \" + project);\n try\n {\n if(!root.exists())\n root.mkdirs();\n\n AbstractNavTreeNode nodeRoot = (AbstractNavTreeNode)Main.navTree.getModel().getRoot();\n Enumeration<TreeNode> namespaces = nodeRoot.children();\n\n while(namespaces.hasMoreElements())\n {\n TreeNode space = namespaces.nextElement();\n\n if(space instanceof NavTreeFolder)\n {\n handleFolder((NavTreeFolder)space, root);\n }\n else if(space instanceof NavTreeFile)\n {\n handleFile((NavTreeFile)space, root);\n }\n }\n\n File projMeta = new File(root, \"settings.meta\");\n projMeta.createNewFile();\n String keepComments = \"keepComments=\" + MainMenu.keepComments.getState();\n String useCommands = \"useVanilla=\" + MainMenu.commandsOnly.getState();\n Files.write(projMeta.toPath(), (keepComments + System.lineSeparator() + useCommands).getBytes(), StandardOpenOption.WRITE, StandardOpenOption.TRUNCATE_EXISTING);\n }\n catch (IOException e)\n {\n Log.e(\"Failed to save project \" + project + \":\", e);\n e.printStackTrace();\n }\n\n Log.i(\"Finished saving process! Project is saved at \" + root.getAbsolutePath());\n new DialogProjectSaved(root.getAbsolutePath());\n }", "title": "" }, { "docid": "9572567d29444e334384e2dc8a7eac18", "score": "0.67209464", "text": "public void save() throws IOException {\n File f = File.createTempFile( \"tmproject\", \".xml\", dir );\n try {\n // Write the strip info to a file\n StreamResult streamResult = new StreamResult( f );\n SAXTransformerFactory tf = (SAXTransformerFactory) SAXTransformerFactory.newInstance();\n TransformerHandler hd = tf.newTransformerHandler();\n Transformer serializer = hd.getTransformer();\n serializer.setOutputProperty( OutputKeys.ENCODING, \"ISO-8859-1\" );\n serializer.setOutputProperty( OutputKeys.INDENT, \"yes\" );\n hd.setResult( streamResult );\n hd.startDocument();\n writeXml( hd );\n hd.endDocument();\n } catch ( Exception e ) {\n throw new IOException( \"Error saving project: \" + e.getMessage(), e );\n }\n if ( !f.renameTo( new File( dir, \"project.xml\" ) ) ) {\n // TODO: proper error handling \n log.warning( \"cound ot rename project file\" );\n }\n }", "title": "" }, { "docid": "182d0e8f24917569356d2b54c177ec1e", "score": "0.6713781", "text": "void saveAllProjects() throws IOException;", "title": "" }, { "docid": "fc9f0354a89fcfebe668c6268bdf0ae6", "score": "0.6510144", "text": "void saveCurrentProject() {\n try {\n comittProperties();\n myConfig.save(currentProject);\n } catch (IOException e) {\n System.out.println(\"Could not save project \" + e);\n }\n }", "title": "" }, { "docid": "54d4f8fec08f73f74849623be802d9d4", "score": "0.6509536", "text": "public void save(){\n if(object == null){\n NotificationSender.send(NotificationSender.NotificationType.CONFIGURATION);\n return;\n }\n try (FileWriter writer = new FileWriter(FolderBuilder.DIRECTORY + \"\\\\\" + name)) {\n writer.write(object.toJSONString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "10c280b1c7dd4fc4e09195056fd6e0de", "score": "0.6446547", "text": "public void saveToFile() {\r\n try {\r\n OutputStream file = new FileOutputStream(filePath);\r\n OutputStream buffer = new BufferedOutputStream(file);\r\n ObjectOutput output = new ObjectOutputStream(buffer);\r\n output.writeObject(information);\r\n output.close();\r\n } catch (IOException ex) {\r\n fLogger.log(Level.SEVERE, \"Cannot perform output.\", ex);\r\n }\r\n }", "title": "" }, { "docid": "1909d5a51d4770a9a024395bc7254082", "score": "0.6418924", "text": "public void save() throws IOException {\n Main.getObjectMapper().writeValue(getFileLocation(), this);\n }", "title": "" }, { "docid": "daedac99c171492bb952233cd9e229c3", "score": "0.63199866", "text": "public void saveToFile()\n\t{\n\t\tJson obj = modelToJson();\n\t\tobj.save(\"map.json\");\n\t}", "title": "" }, { "docid": "9b8eb6101e0f2d157a1698c10c4c4a58", "score": "0.6252577", "text": "public void save() throws IOException;", "title": "" }, { "docid": "7019c03c344180a2e07d7fd485a42ffb", "score": "0.6241562", "text": "void saveProject_actionPerformed(java.awt.event.ActionEvent event) {\n JFileChooser chooser = new JFileChooser(\"projects/\");\n chooser.setFileFilter(new InstallKitFileFilter(\"ikp\", \"Install Kit Projects\"));\n chooser.setFileSelectionMode(chooser.FILES_ONLY);\n chooser.setDialogTitle(\"Save Project\");\n int ret = chooser.showSaveDialog(this);\n if (ret == JFileChooser.APPROVE_OPTION) {\n try {\n String filename = chooser.getSelectedFile().getPath();\n currentProject = filename;\n comittProperties();\n myConfig.save(filename);\n } catch (IOException ioe) {\n try {\n MessageBox mb = new MessageBox();\n mb.label.setText(\"There was an error while saving the project: \" + ioe);\n mb.show();\n } catch (Exception e) {\n }\n }\n }\n }", "title": "" }, { "docid": "67b2a97ea90e326e1c8bc25463dd89bc", "score": "0.6206482", "text": "void outSavePortfolio(String portfolioName, String fileName);", "title": "" }, { "docid": "8c37c5a7b4ac7c2d736777576c16e1bf", "score": "0.6194254", "text": "public void save(String filePath)\r\n/* */ {\r\n/* 534 */ ObjectOutputStream out = null;\r\n/* */ try {\r\n/* 536 */ File file = new File(filePath);\r\n/* 537 */ out = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(file)));\r\n/* 538 */ out.writeObject(this);\r\n/* 539 */ out.flush(); return;\r\n/* */ } catch (IOException ioe) {\r\n/* 541 */ ioe.printStackTrace();\r\n/* */ } finally {\r\n/* 543 */ if (out != null) {\r\n/* */ try {\r\n/* 545 */ out.close();\r\n/* */ }\r\n/* */ catch (IOException e) {}\r\n/* */ }\r\n/* */ }\r\n/* */ }", "title": "" }, { "docid": "cacdc9085c8fdc4df3ed106eafb27b6e", "score": "0.6188774", "text": "public void save() throws IOException {\n\t\t FileOutputStream file = new FileOutputStream(fileName); \n ObjectOutputStream out = new ObjectOutputStream(file); \n \n out.writeObject(this); \n \n out.close(); \n file.close(); \n\t\t \n\t}", "title": "" }, { "docid": "3a758f97c070ae394955cce97f2a0628", "score": "0.618504", "text": "public void saveToFile() {\n BpmModel bpmModel = ModelConvertFactory.getModelGraphConvertExt(file.getExtension()).toModel(graph);\n\n if (null == bpmModel) {\n return;\n }\n\n //step2: set default params if null\n setDefaultParams(bpmModel);\n\n //step3: convert model to xml\n String xml = ModelConvertFactory.getModelXmlConvertExt(file.getExtension()).toXml(bpmModel);\n\n // step4: save xml to file\n if (null != xml) {\n ApplicationManager.getApplication().runWriteAction(() -> {\n document.setText(xml);\n FileDocumentManager.getInstance().saveDocument(document);\n });\n }\n }", "title": "" }, { "docid": "2745151acb6036e53c223b1cfcd2bb1c", "score": "0.61462605", "text": "public void save() {\n FileOutputStream out;\n try {\n out = this.openFileOutput(saveFileName, MODE_PRIVATE);\n } catch (Exception e) {\n e.printStackTrace();\n return;\n }\n OutputStreamWriter writer = new OutputStreamWriter(out);\n try {\n writer.write(Integer.toString(this.turn));\n for (int i = 0; i < this.resources.size(); i++) {\n writer.write('\\n');\n writer.write(Double.toString(this.resources.get(i).getNumber()));\n }\n for (int i = 0; i < this.employees.size(); i++) {\n writer.write('\\n');\n writer.write(Double.toString(this.employees.get(i).getNumber()));\n }\n writer.close();\n out.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e110ba06bd83e8ad4d4c4b36a0005cbe", "score": "0.6126444", "text": "public void saveSolutionsInFile() {\n\t\tFileOutputStream out = null;\n\t\tObjectOutputStream oos = null;\n\t\ttry {\n\t\t\tout = new FileOutputStream(FILE_NAME);\n\t\t\toos = new ObjectOutputStream(out);\n\t\t\toos.writeObject(solutionsMap);\n\t\t\t// if File Not Found\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (out != null) {\n\t\t\t\ttry {\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "aac980886e359f1c2430e780ba1933d5", "score": "0.6116011", "text": "private void save() {\n try {\n j1.open();\n j1.teamWriter(t1);\n j1.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"Could not Save\");\n }\n }", "title": "" }, { "docid": "8f5b185bf3930d11c822073aef5d80a3", "score": "0.61032414", "text": "private void save()\n {\n if(currentlyLoadedObject == null || workingDirectory.isEmpty()) { saveAs(); }\n \n File wd = new File(workingDirectory);\n if(!wd.exists()) { return; }\n \n setTitle(BaseWindowTitle + currentlyLoadedObject.name);\n \n createDefinitionFile();\n }", "title": "" }, { "docid": "9e38ce0cbe600350f3d1eaf446689fd6", "score": "0.6099587", "text": "public void save() throws IOException {\n\t\tif (isJar) {\n\t\t\tsaveAsJar();\n\t\t} else {\n\t\t\tsaveAsFiles();\n\t\t}\n\t}", "title": "" }, { "docid": "db9bfee3edfaf638530b722f9c1710da", "score": "0.609352", "text": "public void saveToFile() {\n\n try {\n OutputStream file = new FileOutputStream(filePath);\n OutputStream buffer = new BufferedOutputStream(file);\n ObjectOutput output = new ObjectOutputStream(buffer);\n\n // Serialize the students Map.\n output.writeObject(this.flights);\n logger.log(Level.FINE, \"Serialized flight manager.\");\n output.close();\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"Cannot perform output. File I/O failed.\",\n ex);\n }\n }", "title": "" }, { "docid": "3f6dad64ba58545740088a59f8c07413", "score": "0.6086017", "text": "public void saveToFile(String filename) {\n }", "title": "" }, { "docid": "c81c42298d8e9ab585c447ae8fe6446e", "score": "0.60831606", "text": "private void saveProject() {\n if (project == null) {\n project = new Project();\n project.setCompanyId(BuildConfig.TeamworkCompanyId);\n project.setHarvestTimersEnabled(true);\n project.setReplyByEmailEnabled(true);\n project.setPrivacyEnabled(true);\n\n updateFromInputFields();\n createRemoteProject();\n } else {\n // Need to copy out of Realm so we can update fields outside of a transaction -\n // We need to update fields so we can post model to API, and we want to do that\n // before updating the local model (as no easy way to handle local primary key vs remote primary key otherwise)\n project = realmService.copyFromRealm(project);\n\n updateFromInputFields();\n updateRemoteProject();\n }\n }", "title": "" }, { "docid": "848ceab95a9edec174e439e3003cc00c", "score": "0.6076383", "text": "public void save(File argFile);", "title": "" }, { "docid": "3593f02f0dbf7a0765ea8ab345fb3ae8", "score": "0.60716605", "text": "public void saveToFile(File file) throws IOException {\n FileOutputStream fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.close();\n fos.close();\n }", "title": "" }, { "docid": "9070fad5cf1fdde7ae0f40e45f432fd8", "score": "0.6055125", "text": "@Override\n\tpublic void saveToFile(String file) throws IOException {\n\t\t\n\t}", "title": "" }, { "docid": "d6744b483e1aa22d26a6b018d7e4c9c3", "score": "0.60330325", "text": "public void save() throws CoreException {\n try {\n // build DOM tree\n DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element root = doc.createElement(BUILDSPEC_ELEMENTNAME);\n root.setAttribute(\"version\", \"4.0\");\n doc.appendChild(root);\n\n for (IContainer folder : folderSpecs.keySet()) {\n FolderSpec folderSpec = folderSpecs.get(folder);\n Element dirElement = doc.createElement(DIR_ELEMENTNAME);\n String projectRelativePath = folder.equals(project) ? \".\" : folder.getProjectRelativePath().toString();\n dirElement.setAttribute(PATH_ATTR, projectRelativePath);\n dirElement.setAttribute(TYPE_ATTR, folderSpec.makefileType == MAKEMAKE ? \"makemake\" : \"custom\");\n if (folderSpec.makefileType == MAKEMAKE && folderSpec.makemakeOptions != null)\n dirElement.setAttribute(MAKEMAKEOPTIONS_ATTR, folderSpec.makemakeOptions.toString());\n root.appendChild(dirElement);\n }\n\n // save it\n IFile buildSpecFile = project.getFile(BUILDSPEC_FILENAME);\n String content = XmlUtils.serialize(doc);\n if (!buildSpecFile.exists())\n buildSpecFile.create(new ByteArrayInputStream(content.getBytes()), IFile.FORCE, null);\n else\n buildSpecFile.setContents(new ByteArrayInputStream(content.getBytes()), IFile.FORCE, null);\n }\n catch (Exception e) { // catches: ParserConfigurationException,ClassCastException,ClassNotFoundException,InstantiationException,IllegalAccessException\n throw Activator.wrapIntoCoreException(\"Cannot save build specification: \" + e.getMessage(), e);\n }\n }", "title": "" }, { "docid": "528226a92aaf1e0da58b43a6f083e556", "score": "0.6029328", "text": "public static void saveObjectToFile(Object obj, File f)\n {\n // create parent directory if needed\n if (!f.exists())\n {\n File parent = f.getParentFile();\n if (!parent.exists())\n {\n if (!parent.mkdirs())\n {\n String errMsg = \"Failed to create dir: \\\"\"\n + parent.getAbsolutePath() + \"\\\".\";\n log.error(errMsg);\n throw new PSConfigException(errMsg);\n }\n }\n }\n\n // save the object to the file\n try\n {\n XStream xs = new XStream(new DomDriver());\n initSecurityFramework(xs);\n\n String str = xs.toXML(obj);\n FileUtils.writeStringToFile(f, str, PSCharSets.rxJavaEnc());\n }\n catch (Exception e)\n {\n String errMsg = \"Failed to save object to: \\\"\" + f.getAbsolutePath()\n + \"\\\".\";\n log.error(errMsg, e);\n throw new PSConfigException(errMsg, e);\n }\n }", "title": "" }, { "docid": "bc8cd298ee0b2f24fb6f118b271c0311", "score": "0.6022719", "text": "public void save() throws IOException {\n\t\tString defaultDir = \"\";\n\t\tboolean pretty = true;\t// \"pretty print\" by default: it is much more efficient when loading in editor\n\t\t// for production do not use XML pretty print\n\t\tsave(defaultDir, pretty);\t\n\t}", "title": "" }, { "docid": "73c6bdcb546b23634102ec6ca1eb437f", "score": "0.6019617", "text": "void exportProject(String filename) {\n if (currentProject != null) {\n try {\n InstallFile file;\n comittProperties();\n FileOutputStream o = new FileOutputStream(filename);\n GovZipOutputStream zip = new GovZipOutputStream(o);\n myConfig.save(\"bin/install.xml\", true);\n zip.writeFile(\"bin/install.xml\", \"install.xml\");\n zip.writeFile(\"bin/Installer.jar\", \"Installer.jar\");\n zip.writeFile(\"bin/Install.exe\", \"Install.exe\");\n zip.writeFile(\"bin/icon.gif\", \"icon.gif\");\n zip.writeFile(\"bin/main.gif\", \"main.gif\");\n zip.writeFile(\"bin/setting.gif\", \"setting.gif\");\n zip.writeFile(\"bin/settingh.gif\", \"settingh.gif\");\n Vector fileList = myConfig.getFiles();\n for (int i = 0; i < fileList.size(); i++) {\n file = (InstallFile) fileList.elementAt(i);\n zip.writeFile(file.localFile);\n }\n zip.close();\n } catch (IOException ioe) {\n try {\n MessageBox mb = new MessageBox();\n mb.label.setText(\"There was an error while deploying the project: \" + ioe);\n mb.show();\n } catch (Exception e) {\n }\n }\n }\n }", "title": "" }, { "docid": "75b75718cf9760a531c60ed274df24d0", "score": "0.6007953", "text": "public static void saveFile(Game game){\n try{\n PrintWriter printWriter = new PrintWriter(new FileWriter(\"save.txt\"));\n \n printWriter.close();\n }catch(IOException ioe){\n System.out.println(\"Se lleno el disco duro, no se guardo el juego\" + ioe.toString());\n }\n }", "title": "" }, { "docid": "6f98fb3587518c9b8401208ed8cedaf6", "score": "0.59615743", "text": "public void storeFile(TypeSpec classBuild, String pack, String path){\n // Creates a class file in output directory\n JavaFile javaFile = JavaFile.builder(pack, classBuild)\n .addFileComment(\"AUTO_GENERATED BY JavaPoet\")\n .build();\n\n try {\n javaFile.writeTo(Paths.get(path));//root maven source\n\n } catch (IOException ex) {\n log.error(\"Couldn't write file error: {}\", ex.getMessage());\n }\n }", "title": "" }, { "docid": "8e4035f2fea61cf13d3cdf1aafae9b79", "score": "0.5960469", "text": "public void writeToFile() throws IOException {\n Path path = Repository.getRoot().resolve(repoPath);\n Files.write(path, content);\n }", "title": "" }, { "docid": "f591b2dc780a16e36cb4f45802f9058f", "score": "0.5921593", "text": "public void save() throws IOException {\n File blobsDirectory = getStoragePath().toFile();\n if (!blobsDirectory.exists()) {\n FileUtils.forceMkdir(blobsDirectory);\n }\n\n Path path = getStoragePath().resolve(id);\n try (FileOutputStream fileOutput = new FileOutputStream(path.toFile());\n ObjectOutputStream objectOutput = new ObjectOutputStream(fileOutput)) {\n objectOutput.writeObject(this);\n }\n }", "title": "" }, { "docid": "b4401e0f0b0a989e2202db9309947c3e", "score": "0.5920208", "text": "@Override\n\tpublic void save(String file) throws IOException {\n\n\t}", "title": "" }, { "docid": "6da7200ee6483baff13e9ab832d35dea", "score": "0.5912378", "text": "public static void save() {\n\t\tsave(path);\n\t}", "title": "" }, { "docid": "58d9c8dc5e929ba7ed684f356f75c1a5", "score": "0.59102935", "text": "public static void save(String filename, Object object) throws IOException {\n\t\t// Writing data...\n\t\tObjectOutputStream oos = null;\n\t\ttry {\n\t\t\tFile file = new File(filename);\n\t\t\tSystem.out.println(\"Path: \" + file.getAbsolutePath());\n\t\t\toos = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\tSystem.out.println(\"nome do ficheiro: \" + filename);\n\t\t\toos.writeObject(object);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\t_logger.error(\"File not found: \" + filename + \"\\nMessage: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\t_logger.error(\"Erro while trying to save an object to the filesystem: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tfinally {\n\t\t\tif (oos != null) {\n\t\t\t\ttry {\n\t\t\t\t\toos.close();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t// Do nothing!\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8a9517160d44bee5e332b1c09279f603", "score": "0.5909362", "text": "public ObjectOutputFile(String filename)//throws ClassNotFoundException (?)\r\n {\r\n try\r\n {\r\n File outputFile = new File(defaultPath, filename);\r\n out = new ObjectOutputStream(new FileOutputStream(outputFile));\r\n }\r\n \r\n// try\r\n// {\r\n// this(defaultPath, filename, true);\r\n// }\r\n// catch (IOException e)\r\n// {\r\n// System.out.println(e.getMessage());\r\n// }\r\n////\ttry\r\n//\t{\r\n//\t out = new ObjectOutputStream(new FileOutputStream(filename));\r\n//\t System.out.println(\"Writing object to file\");\r\n//\t}\r\n\tcatch(IOException e)\r\n\t{\r\n\t System.err.println(\"IO error\");\r\n\t}\r\n }", "title": "" }, { "docid": "89769d98dfd47f82778c9505ef5dfdaf", "score": "0.59061456", "text": "private static void salvarObj(Object objeto, String nomeArquivo) throws FileNotFoundException, IOException {\n ObjectOutputStream arqObjectos = null;\n try{\n arqObjectos = new ObjectOutputStream(new FileOutputStream(\"arquivos\" + File.separator + nomeArquivo));\n arqObjectos.writeObject(objeto);\n }finally{\n if(arqObjectos != null)\n arqObjectos.close();\n }\n }", "title": "" }, { "docid": "42b21393576cab001a6f43b54a77cef9", "score": "0.58918315", "text": "public void saveFileAs() {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Save Runemap\");\n try {\n File file = new File(FileUtil.removeExtension(fileChooser.showSaveDialog(null).getAbsolutePath())+\".drm\");\n \t//map.writeForcedElement(\"This is an element\", \"DIS IS A VALUE!\");\n \tmap.writeOut(file);\n }catch(Exception e) {\n \t//e.printStackTrace();\n \tJOptionPane.showMessageDialog(null, \"PLEASE CHOOSE A VALID FILE!\");\n }\n\t}", "title": "" }, { "docid": "f644bfa571a3eae5b7efcc7bc25c273b", "score": "0.5889352", "text": "public SavedFile createSavedFile() {\n \treturn new SavedFile(createGameController());\n }", "title": "" }, { "docid": "02d488daff91ab1b7d8913430e64db79", "score": "0.587846", "text": "File getFileToSaveAs();", "title": "" }, { "docid": "990ce2916b8b5f6b7626822e9fc00ed9", "score": "0.5872154", "text": "public void save() {\n try {\n BufferedWriter writer = new BufferedWriter(new FileWriter(filepath));\n for (int i = 0; i < taskList.size(); i++) {\n writer.write(taskList.getTask(i).toFileFormat());\n }\n writer.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "3bc09cbe8208df57bd996450e351ce45", "score": "0.58707476", "text": "public void saveIndexFile(){\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(new File(path));\n\t\t\tfw.write(\"<?xml version=\\\"1.0\\\"?>\\n\");\n\t\t\tfw.write(\"<repository>\\n\");\n\t\t\tfor(refProject proj:data){\n\t\t\t\tfw.write(\"\t<project>\\n\");\n\t\t\t\tfw.write(\"\t\t<name>\"+proj.getName()+\"</name>\\n\");\n\t\t\t\tfw.write(\"\t\t<size>\"+proj.getSize()+\"</size>\\n\");\n\t\t\t\tfw.write(\"\t\t<pc>\"+proj.getPc()+\"</pc>\\n\");\n\t\t\t\tfw.write(\"\t\t<archLevel>\"+proj.getArchLevel()+\"</archLevel>\\n\");\n\t\t\t\tfw.write(\"\t\t<archDepth>\"+proj.getArchDepth()+\"</archDepth>\\n\");\n\t\t\t\tfw.write(\"\t\t<StrictIndLevel>\"+proj.getsMil()+\"</StrictIndLevel>\\n\");\n\t\t\t\tfw.write(\"\t\t<GeneralIndLevel>\"+proj.getgMil()+\"</GeneralIndLevel>\\n\");\n\t\t\t\tfw.write(\"\t\t<archDir>\"+proj.getArchIssueDir().getAbsolutePath()+\"</archDir>\\n\");\n\t\t\t\tfw.write(\"\t</project>\\n\");\n\t\t\t}\n\t\t\tfw.write(\"</repository>\\n\");\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "81fced4def8bab9ce32b617e3814b87c", "score": "0.58690655", "text": "public void save() throws IOException {\n\t\tOutputStream\tout\t= null;\n\t\ttry {\n\t\t\tout\t= new FileOutputStream(file);\n\t\t\tproperties.store(out, \"the commonist\");\n\t\t\tout.close();\n\t\t}\n\t\tfinally {\n\t\t\tif (out != null) {\n\t\t\t\ttry { out.close(); }\n\t\t\t\tcatch (Exception e) { log.error(\"cannot close\", e); }\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1cacfcb7fd3c9b1a1ca15d9c05d57aff", "score": "0.58583295", "text": "public static void writeObject(Object obj, String path){\n\r\n try\r\n {\r\n FileOutputStream fl = new FileOutputStream(new File(path));\r\n ObjectOutputStream ol = new ObjectOutputStream(fl);\r\n ol.writeObject(obj);\r\n fl.close();\r\n ol.close();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "8b5559d9a1a1dc4dab619b2cd9aa8974", "score": "0.58537483", "text": "private void saveAsButtonActionPerformed(ActionEvent evt) {\n if (outputFile == null) {\n fileChooser.setCurrentDirectory(new File(\"./\"));\n }\n // If output file exists, choose as folder\n else if (outputFile.exists()) {\n fileChooser.setCurrentDirectory(outputFile);\n }\n // Otherwise, use current folder as default\n else {\n fileChooser.setCurrentDirectory(new File(\"./\"));\n }\n\n // app.getPersistence().saveData(outputFile, setupPanel.getData());\n\n int returnVal = fileChooser.showOpenDialog(this);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = fileChooser.getSelectedFile();\n\n // Files returned from this chooser cannot be folders\n outputFile = file;\n saveButton.setEnabled(true);\n updateFileInfoString();\n\n // Update current folder path\n getData().set(JOptionKeys.CURRENT_FOLDER_PATH, Optional.of(SpecsIo.getCanonicalFile(file).getParent()));\n // getData().set(JOptionKeys.CURRENT_FOLDER_PATH, SpecsIo.getCanonicalFile(file).getParent());\n // updateFile(file);\n\n // Automatically save data\n app.getPersistence().saveData(outputFile, setupPanel.getData());\n }\n }", "title": "" }, { "docid": "9107d3242dc811125ade591d0eb1f8e5", "score": "0.58513397", "text": "public static void save() {\n try {\n playerStorage.save(file);\n } catch(IOException e) {\n System.out.println(\"Couldn't save file\");\n }\n }", "title": "" }, { "docid": "015942d9e3eaf61f04b67ecaba5e579b", "score": "0.5846219", "text": "private void saveModel() {\n try {\n System.out.println(\"Saving!\");\n\n System.out.println(theModel.getName());\n\n File savedModelFile = new File(getApplicationContext().getFilesDir(), \"savedButtonGameModel\");\n FileOutputStream savedModelFileStream = new FileOutputStream(savedModelFile);\n ObjectOutputStream out = new ObjectOutputStream(savedModelFileStream);\n //System.out.println(theModel.getImage().toString() + \"\\n\\nHi\\n\\n\");\n out.writeObject(theModel);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "8b511eb2327d535bad3eead16ee65688", "score": "0.58272284", "text": "public static void save() {\n FileOutputStream stream = null;\n try {\n stream = new FileOutputStream(new File(\"./config.properties\"));\n properties.store(stream, \"\");\n }\n catch (Exception ignore) {\n }\n finally {\n if (stream != null) {\n try {\n stream.close();\n }\n catch (IOException ignore) {\n }\n }\n }\n }", "title": "" }, { "docid": "0b793de06ad96f5b0898cc80b301deeb", "score": "0.58194", "text": "public void save() {\n try {\n config.save(this.file);\n } catch (IOException e) {\n plugin.getLogger().severe(\"The data file for \" + this.name + \" could not be saved! Reason: \" + e.getMessage());\n if (this.debug)\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ef3381795d03afbc1aeac4ebc64e78e8", "score": "0.58103687", "text": "@Override\r\n public void saveFile(String path) throws IOException {\n\r\n }", "title": "" }, { "docid": "29767bb053581d85e536f634ea7e1abc", "score": "0.5809201", "text": "@Override\n\tpublic void doSaveAs() {\n\t\t\n\t}", "title": "" }, { "docid": "29767bb053581d85e536f634ea7e1abc", "score": "0.5809201", "text": "@Override\n\tpublic void doSaveAs() {\n\t\t\n\t}", "title": "" }, { "docid": "29767bb053581d85e536f634ea7e1abc", "score": "0.5809201", "text": "@Override\n\tpublic void doSaveAs() {\n\t\t\n\t}", "title": "" }, { "docid": "ef91a0144139723690626704900d1569", "score": "0.5801639", "text": "boolean save(File file);", "title": "" }, { "docid": "1b6309fea69c9ba3a7e3101498302f3b", "score": "0.57940596", "text": "private void writeToFile(File file, Object jsonSerializableObject) throws IOException {\n\t\ttry (OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(file), \"UTF-8\")) {\n\t\t\twriter.write(gson.toJson(jsonSerializableObject));\n\t\t}\n\t}", "title": "" }, { "docid": "43d586c1be2d960974c6cf78176157b2", "score": "0.57844996", "text": "void toFile(String fileName) throws IOException {\n FileOutputStream out = new FileOutputStream(fileName);\n ObjectOutputStream oout = new ObjectOutputStream(\n new BufferedOutputStream(out));\n\n System.err.println(\"Writing object model...\");\n\n oout.writeObject(this);\n\n oout.close();\n\n System.err.println(\"Done!\");\n }", "title": "" }, { "docid": "a68a55f8700d29499181824bf7872d21", "score": "0.5777023", "text": "@Override\n\tpublic void save(String path) throws IOException {\n\t\t\n\t}", "title": "" }, { "docid": "d6aa34cb6dd6029581ebeefecd969947", "score": "0.5766013", "text": "public void saveToFile() {\n // TODO\n if(checkValidity().isEmpty()){\n File target = getTargetSaveDirectory();\n if(target != null) {\n exportToFile(target.toPath());\n }\n }\n else{\n String warning = checkValidity().get();\n Alert error = new Alert(Alert.AlertType.ERROR, warning, ButtonType.OK);\n error.setHeaderText(\"Map validity check failed\");\n error.show();\n }\n }", "title": "" }, { "docid": "f7f6675b36078bede7a34630d5948d93", "score": "0.5758799", "text": "private void saveInFile(){\n\tGson gson = new Gson();\n\t\ttry {\n\t\t\tFileOutputStream fos = openFileOutput(FILENAME, 0);\n\t\t\tOutputStreamWriter osw = new OutputStreamWriter(fos);\n\t\t\tgson.toJson(Claims, osw);\n\t\t\tosw.flush();\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "d54038f158e0d2db442c3e937ce18f71", "score": "0.57582635", "text": "public final void save() {\n\t\tObjectOutputStream os = null;\n\t\ttry {\n\t\t\tos = new ObjectOutputStream(new FileOutputStream(filename));\n\n\t\t\tfor (String name : names) {\n\t\t\t\tos.writeObject( parameters.get(name).getValue() );\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tfor (String name : names) {\n\t\t\t\tparameters.get(name).setToDefault();\n\t\t\t}\n\t\t\toutputWarning(\"Could not save:\");\n\t\t\toutputWarning(e.getMessage());\n\t\t} finally {\n\t\t\ttry { if (os!=null) os.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\toutputWarning(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8dfe9e12fb4c27952c46e1f5cf07b28f", "score": "0.5757538", "text": "private void exportObject(Object obj, File outputFile) throws IOException {\n\t\tcreateExportDirectory();\n\t\ttry (ObjectOutputStream modelOutStream = new ObjectOutputStream(new FileOutputStream(outputFile))) {\n\t\t\tmodelOutStream.writeObject(obj);\n\t\t}\n\t}", "title": "" }, { "docid": "b2fa061ec2c7cdc95957904ab45a0e33", "score": "0.57462764", "text": "private void saveWorld(World w) {\n File f = new File(\"./world.txt\");\n try {\n if (!f.exists()) {\n f.createNewFile();\n }\n FileOutputStream fs = new FileOutputStream(f);\n ObjectOutputStream os = new ObjectOutputStream(fs);\n os.writeObject(w);\n } catch (FileNotFoundException e) {\n System.out.println(\"file not found\");\n System.exit(0);\n } catch (IOException e) {\n System.out.println(e);\n System.exit(0);\n }\n }", "title": "" }, { "docid": "bf51f1d1c1e19e21ad0cd52467dd47bb", "score": "0.57391703", "text": "@Override\r\n\tpublic void writeToFile() {\n\r\n\t}", "title": "" }, { "docid": "5c39a4ce076766c6edc020b610330688", "score": "0.5735654", "text": "public void save() throws Exception{\n\t\tFileOutputStream saveFile = new FileOutputStream(Config.languageModelFile);\n\t\tObjectOutputStream save = new ObjectOutputStream(saveFile);\n\t\tsave.writeObject(this);\n\t\tsave.close();\n\t}", "title": "" }, { "docid": "79a1d7247f683aab0da3216ec9b0e512", "score": "0.57345045", "text": "@Override\n\tpublic void doSaveAs() {\n\t}", "title": "" }, { "docid": "fdd2d0860abe106577faeea3ba07a1cd", "score": "0.5734313", "text": "private void writeDBToFile(Database db) throws IOException {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"./src/db.txt\", false));\n out.writeObject(db);\n out.flush();\n out.close();\n }", "title": "" }, { "docid": "7de4ef51998873aa057128f91a34b649", "score": "0.5732683", "text": "@Override\n\tpublic void doSaveAs() {\n\n\t}", "title": "" }, { "docid": "7de4ef51998873aa057128f91a34b649", "score": "0.5732683", "text": "@Override\n\tpublic void doSaveAs() {\n\n\t}", "title": "" }, { "docid": "7de4ef51998873aa057128f91a34b649", "score": "0.5732683", "text": "@Override\n\tpublic void doSaveAs() {\n\n\t}", "title": "" }, { "docid": "bd06406628bedb4e8479b8d83b60b3b9", "score": "0.5732063", "text": "public void save(ISudoku sudoku, OutputStream outputStream) throws IOException;", "title": "" }, { "docid": "d86727aff0b6fb283fab1d3166e4f032", "score": "0.57286096", "text": "public void saveToFile(){\r\n fileManager.saveCollectionToFile();\r\n }", "title": "" }, { "docid": "71856d1955c2f640e1df2bf696ac8680", "score": "0.57279074", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void save() {\n\t\tsetTarget();\n\t\t\n\t\tJSONObject json = new JSONObject();\n\t\tjson.put(\"playerName\", playerName);\n\t\tjson.put(\"totalTime\", playerTime.getTotalTime());\t\t\n\t\t\n\t\tJSONArray jsonArray = new JSONArray();\n\t\tString[] times = playerTime.getPuzzleTimes();\n\t\tfor (int x = 0; x < times.length; x++) {\n\t\t\tjsonArray.add(times[x]);\n\t\t}\n\t\t\n\t\tjson.put(\"puzzleTimes\", jsonArray);\n\t\t\n\t\ttry {\n\t\t\tFileWriter writer = new FileWriter(target);\n\t\t\twriter.write(json.toJSONString());\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException ioExc) {\n\t\t\tSystem.out.println(ioExc.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "820af80c302483284286d28c017ee816", "score": "0.5713559", "text": "public void save() {\n\t\tFileOutputStream fos = null;\n\t\tObjectOutputStream oos = null;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(\"SYSTEM.ser\");\n\t\t\toos = new ObjectOutputStream(fos);\n\t\t\toos.writeObject(getInstance());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (fos != null)\n\t\t\t\t\tfos.close();\n\t\t\t\tif (oos != null)\n\t\t\t\t\toos.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "509739bdc59255dac128b04f9d99fe5c", "score": "0.5709461", "text": "public void saveFile() {\n\t\tFileChooser fc = new FileChooser();\n\t\tfc.setTitle(\"Save Sokoban level\");\n\t\tfc.setInitialDirectory(new File(\"./levels\"));\n\t\tfc.getExtensionFilters().addAll(new FileChooser.ExtensionFilter(\"Text\", \"*.txt\"),\n\t\t\t\tnew FileChooser.ExtensionFilter(\"XML\", \"*.xml\"), new FileChooser.ExtensionFilter(\"OBJ\", \"*.obj\"));\n\t\tFile chosen = fc.showSaveDialog(new Stage());\n\t\tif (chosen != null) {\n\t\t\tLinkedList<String> command = new LinkedList<String>();\n\t\t\tcommand.add(\"Save\");\n\t\t\tcommand.add(chosen.getPath());\n\t\t\tsetChanged();\n\t\t\tnotifyObservers(command);\n\t\t}\n\t}", "title": "" }, { "docid": "f0de1dfb99cefddf3d08a18d74122e14", "score": "0.57033175", "text": "void save(String filepath) throws IllegalArgumentException;", "title": "" }, { "docid": "99db5345b3572a297d2e49a65a48c4e2", "score": "0.5698926", "text": "public void saveFile() {\n\t\tif(map==null) {\n\t\t\tthis.saveFileAs();\n\t\t}else {\n\t\t\t//map.writeForcedElement(\"ANOTHER ELM\", \"666\");\n\t\t\tmap.write();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "363897bb1c20f34f60b60f154e4afa95", "score": "0.56952715", "text": "public void saveConfigurationToFile(File configFile);", "title": "" }, { "docid": "01c823b113c130f67a8e00f255623eaf", "score": "0.56942874", "text": "public void flush()\n throws IOException\n {\n File directory = getProjectSettingsDirectory();\n\n if (!IoHelper.ensureDirectoryExists(directory))\n {\n throw new IOException(\"could not create settings directory -- \" + directory);\n }\n\n _values.put(ConventionKeys.INTERNAL_VERSION, VERSION);\n\n // write the values to disk\n IoHelper.serialize(_values, getSettingsFile());\n\n // update the project file in the current project directory\n storeProject(_project);\n\n //Writer writer = new BufferedWriter(new FileWriter(\"c:/test.xml\"));\n\n /*ObjOut out = new ObjOut(writer, false, new Config().aliasID(false));\n out.writeObject(_values);\n writer.close();*/\n }", "title": "" }, { "docid": "d5b3ea6fca21a30e9c430e6f2633288e", "score": "0.5694219", "text": "public interface Storable {\n void saveTo(File file);\n}", "title": "" }, { "docid": "b396631461ab1ed9ca7a6185e241f2a5", "score": "0.56925285", "text": "public abstract void save(Path archiveFile) throws IOException;", "title": "" }, { "docid": "4258e9ad5d4ba61e399c227bf52b78dc", "score": "0.56915283", "text": "public static void writeToSaveFile(){\n //Get the directory\n File directory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\n\n\n try{\n //Open the file\n FileWriter outputStream = new FileWriter(new File(directory, fileName));\n outputStream.write(\"Round: \" +Integer.toString(roundNum)+\"\\n\");\n\n //Write both players\n for(int i =1; i >=0; i--){\n PlayerSaveData current = players[i];\n outputStream.write(current.getName() +\":\\n\");\n outputStream.write(\"\\t Score: \"+ Integer.toString(current.getScore()));\n outputStream.write(\"\\n\\t Hand: \" + current.getHand());\n outputStream.write(\"\\n\\t Pile: \" + current.getPile());\n outputStream.write(\"\\n\\n\");\n }\n\n outputStream.write(\"Table: \" + table);\n //Write all the owners\n for(int i =0; i < buildOwners.size(); i++){\n outputStream.write(\"\\n\\nBuild Owner: \"+ buildOwners.get(i));\n }\n outputStream.write(\"\\n\\nLast Capturer: \"+ lastCapturer);\n outputStream.write(\"\\n\\nDeck: \" + deck);\n outputStream.write(\"\\n\\nNext Player: \" + nextPlayer);\n\n //Ensure all data is written and close\n outputStream.flush();\n outputStream.close();\n } catch (Exception e){\n return;\n }\n\n\n }", "title": "" }, { "docid": "1b0548ef5e97db5a1cfa78b319d06455", "score": "0.56863326", "text": "public static void writeToWorkspaceMetadata(Object obj, String fileName) {\r\n Bundle bundle = Platform.getBundle(\"org.python.pydev\");\r\n IPath path = Platform.getStateLocation( bundle ); \r\n path = path.addTrailingSeparator();\r\n path = path.append(fileName);\r\n try {\r\n FileOutputStream out = new FileOutputStream(path.toFile());\r\n REF.writeToStreamAndCloseIt(obj, out);\r\n \r\n } catch (Exception e) {\r\n PydevPlugin.log(e);\r\n throw new RuntimeException(e);\r\n } \r\n }", "title": "" }, { "docid": "c9a39b7eb04dd6c325d9f3d82f59990b", "score": "0.5681391", "text": "private void save(){\n try {\n projectProperties.setRootURL(new URL (siteAddressText.getText()));\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n projectProperties.setMaxLevel(Integer.valueOf(deepLevel.getText()));\n projectProperties.setNumberOfThreads(Integer.valueOf(threadsNumber.getText()));\n projectProperties.setOnlySubdomains(onlySubdomain.isSelected());\n projectProperties.setOnlyDomain(onlyDomain.isSelected());\n\n\n }", "title": "" }, { "docid": "24cbbaf1dbaa050d44fec5f4cf9f7b39", "score": "0.5681378", "text": "public void saveAsJson() {\n xstream = new XStream(new JettisonMappedXmlDriver());\n xstream.setMode(XStream.NO_REFERENCES);\n xstream.alias(\"save\", Saving.class);\n File file = new File(path);\n try {\n if (!file.exists())\n file.createNewFile();\n writer = new FileWriter(file, false);\n writer.write(xstream.toXML(save));\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "51d8f8fa1d4cd5c7e21174f24f2cbc7b", "score": "0.5679116", "text": "private void saveGame() {\n this.console.println(\"\\nEnter the file path for file where the game is to be saved.\");\n String filePath = this.getGameInput();\n try {\n // save game to specified file\n GameControl.saveGame(OregonTrail.getCurrentGame(), filePath);\n } catch (Exception ex) {\n ErrorView.display(\"mainMenuView\", ex.getMessage());\n }\n this.console.println(\"\\nGame saved successfully.\");\n \n }", "title": "" }, { "docid": "06abc061f2ef2f0992fefe2f065542dc", "score": "0.5662565", "text": "private void saveToFile(InputStream is, File file) {\n // attempt to create the parent if it doesn't exist\n File parentDirectory = file.getParentFile();\n if (parentDirectory != null && !parentDirectory.exists()) {\n parentDirectory.mkdirs();\n }\n\n boolean append = file.length() > 0;\n OutputStream os = null;\n try {\n os = new BufferedOutputStream(new FileOutputStream(file, append));\n byte[] buffer = new byte[1024 * 16];\n int bytesRead;\n while ((bytesRead = is.read(buffer)) != -1) {\n os.write(buffer, 0, bytesRead);\n }\n } catch (IOException e) {\n throw new AmazonClientException(\n \"Unable to store object contents to disk: \" + e.getMessage(), e);\n } finally {\n try {\n if (os != null) {\n os.close();\n }\n } catch (IOException ioe) {\n // ignore\n }\n try {\n is.close();\n } catch (IOException ioe) {\n // ignore\n }\n }\n }", "title": "" }, { "docid": "70c063900a352ed34f9db2fd525e11ac", "score": "0.5660637", "text": "public void saveToFile(File saveFile) throws FileNotFoundException {\n\t\tString json = toJSON();\n\t\tPrintWriter out = new PrintWriter(saveFile);\n\t\tout.print(json);\n\t\tout.close();\n\t}", "title": "" }, { "docid": "d47629e0676d0b60f5142cb7522a2910", "score": "0.5646668", "text": "void save();", "title": "" }, { "docid": "d765940e85978c10d7c6ddc12e661f16", "score": "0.5644146", "text": "abstract void saveFile();", "title": "" }, { "docid": "261ba0dfb20a6424abc48c887567226e", "score": "0.5642622", "text": "public static void write(Object object, File path) {\n\t\tif (!(object instanceof Serializable)) {\n\t\t\tSystem.err.println(\"Error: object is not serializable.\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry (ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(path))) {\n\t\t\toos.writeObject(object);\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "c846a7c0caa16e3ed4af49008741825a", "score": "0.56411296", "text": "public void saveState() {\n File myObj = new File(FILE_NAME);\n\n try {\n FileOutputStream file = new FileOutputStream(FILE_NAME);\n ObjectOutputStream out = new ObjectOutputStream(file);\n\n // write the objects to the file\n out.writeObject(this.world);\n\n // close file when done\n out.close();\n file.close();\n\n } catch (IOException ex) {\n System.out.println(\"IOException is caught\");\n }\n\n try {\n FileInputStream file = new FileInputStream(FILE_NAME);\n ObjectInputStream in = new ObjectInputStream(file);\n\n TETile[][] temp = (TETile[][]) in.readObject();\n this.pastStates.add(temp);\n\n // once done using a file, always close\n file.close();\n in.close();\n\n } catch (IOException ex) {\n System.out.println(\"IOException is caught\");\n } catch (ClassNotFoundException ex) {\n System.out.println(\"ClassNotFoundException is caught\");\n }\n }", "title": "" } ]
d719fe2a564ec2dca6446298e9cb4991
Given a lock mode, determine the appropriate for update fragment to use.
[ { "docid": "98ff8c471c3d09906c2ac389589435dc", "score": "0.55079377", "text": "public String getForUpdateString(LockMode lockMode) {\n \t\treturn getForUpdateString( lockMode, LockOptions.WAIT_FOREVER );\n \t}", "title": "" } ]
[ { "docid": "84c957d1cca7af74c9612153b43f67cc", "score": "0.5854845", "text": "public LockMode getLockMode();", "title": "" }, { "docid": "8322263f7a39413edd5e62b4270a42ae", "score": "0.55658346", "text": "public void setLockMode(LockMode lockMode);", "title": "" }, { "docid": "9ddbe36835131932b1b0a1aae3bc85a4", "score": "0.51679933", "text": "@WindowingMode\n int getWindowingModeForSplitTaskFragment(@Nullable Rect taskFragmentBounds) {\n // Only set to multi-windowing mode if the pair are showing side-by-side. Otherwise, it\n // will be set to UNDEFINED which will then inherit the Task windowing mode.\n if (taskFragmentBounds == null || taskFragmentBounds.isEmpty() || isInPictureInPicture()) {\n return WINDOWING_MODE_UNDEFINED;\n }\n // We use WINDOWING_MODE_MULTI_WINDOW when the Task is fullscreen.\n // However, when the Task is in other multi windowing mode, such as Freeform, we need to\n // have the activity windowing mode to match the Task, otherwise things like\n // DecorCaptionView won't work correctly. As a result, have the TaskFragment to be in the\n // Task windowing mode if the Task is in multi window.\n // TODO we won't need this anymore after we migrate Freeform caption to WM Shell.\n return isInMultiWindow() ? getWindowingMode() : WINDOWING_MODE_MULTI_WINDOW;\n }", "title": "" }, { "docid": "f100680edd3ef7949d7cd8598807b0aa", "score": "0.5130206", "text": "private void displayFragment(int mode) {\n mFragment = null;\n mContentView.setVisibility(View.INVISIBLE);\n\n switch (mode){\n case PLAYER_MODE:\n String blackCard = Cards.BLACK_CARDS[recievedCzarData.pickedBlackCard];\n int answers = blackCard.split(\"_\").length-1;\n // if there is no \"_\" in the sentence\n if (answers == 0)\n answers = 1;\n int[] cards = new int [recievedRoundData.mPlayersCardsPull[myId].size()];\n for(int i=0;i<cards.length;i++)\n cards[i] = recievedRoundData.mPlayersCardsPull[myId].get(i);\n mFragment = PickWhiteCardFragment.newPickWhiteCardFragment(cards,answers,recievedCzarData.pickedBlackCard);\n break;\n case CZAR_MODE:\n mFragment = PickBlackCardFragment.newPickBlackCardFragment(JsonConvertor.convertToJson(recievedRoundData));\n break;\n case PLAYER_WAITING:\n mFragment = WaitingToCzarFragment.newWaitingToCzarFragment();\n break;\n case CZAR_WAITING:\n mFragment = WaitingToPlayersFragment.newWaitingToPlayersFragment();\n break;\n case PICK_ROUND_WINNER:\n boolean amICzar = (myId == recievedRoundData.mCurrentCzar);\n mFragment = PickRoundWinnerFragment.newPickRoundWinnerFragment(JsonConvertor.convertToJson(mPlayersData),\n recievedCzarData.pickedBlackCard,amICzar);\n break;\n case ROUND_WINNER:\n mTextScore.setText(SCORE+recievedRoundData.mScoreTable[myId]);\n mFragment = RoundWinnerFragment.newRoundWinnerFragment(JsonConvertor.convertToJson(recievedRoundData),myId);\n break;\n }\n\n if (mFragment != null) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.content_body, mFragment);\n fragmentTransaction.commit();\n }\n crossfade(mShortAnimationDuration);\n }", "title": "" }, { "docid": "65c3989fd0e017fafcd506bb1d09f958", "score": "0.48899618", "text": "public String getForUpdateString(LockOptions lockOptions) {\n \t\tfinal LockMode lockMode = lockOptions.getLockMode();\n \t\treturn getForUpdateString( lockMode, lockOptions.getTimeOut() );\n \t}", "title": "" }, { "docid": "2265372bb512579e2c2507baf94979fa", "score": "0.4882274", "text": "private void updateFragmentJob(){\n\t\tJob curJob = null;\n\t\tField curField = null;\n\t\tif(currentFieldView != null){\n\t\t\tcurJob = currentFieldView.getJob();\n\t\t\tcurField = currentFieldView.getField();\n\t\t}\n\t\tif(this.fragmentJob != null){\n\t\t\tthis.fragmentJob.updateJob(curJob);\n\t\t\tthis.fragmentJob.updateField(curField);\n\t\t\tthis.fragmentJob.updateOperation(this.currentOperation);\n\t\t}\n\t\tif(curJob == null && curField == null){\n\t\t\t//Hide fragmentJob, nothing to show\n\t\t\tthis.hideFragmentJob(true);\n\t\t}\n\t}", "title": "" }, { "docid": "8c9a476c2fc401cf04e0eb5e47ea78f0", "score": "0.48677453", "text": "public void setUpdateMode(UpdateMode updateMode);", "title": "" }, { "docid": "198f6b577fa10fbe6d71f93ae4e07f99", "score": "0.48474377", "text": "private Fragment getLayoutFragment(int fragmentId) {\n //Instantiate a new bundle.\n Fragment fragment;\n Bundle bundle = new Bundle();\n\n //Retrieve layout preferences for the current fragment.\n if (complete.get(fragmentId).getType().equals(\"default\")) {\n switch (fragmentId) {\n case 0:\n mCurrentFragmentLayout = LIST_LAYOUT;\n bundle.putInt(Common.FRAGMENT_ID, Common.SONGS_FRAGMENT);\n bundle.putString(FRAGMENT_HEADER, mContext.getResources().getString(R.string.songs));\n break;\n case 1:\n mCurrentFragmentLayout = LIST_LAYOUT;\n bundle.putInt(Common.FRAGMENT_ID, Common.TOP_25_PLAYED_FRAGMENT);\n bundle.putString(FRAGMENT_HEADER, mContext.getResources().getString(R.string.the_top_25_played_tracks));\n break;\n case 2:\n mCurrentFragmentLayout = LIST_LAYOUT;\n bundle.putInt(Common.FRAGMENT_ID, Common.RECENTLY_PLAYED_FRAGMENT);\n bundle.putString(FRAGMENT_HEADER, mContext.getResources().getString(R.string.the_most_recently_played_songs));\n break;\n\n }\n fragment = new ListViewFragment();\n fragment.setArguments(bundle);\n } else if (complete.get(fragmentId).getType().equals(\"friend\")) {\n mCurrentFragmentLayout = FRIENDS_LAYOUT;\n bundle.putString(Common.CONTACT_NUMBER, complete.get(fragmentId).getNumber());\n fragment = new FriendsListViewFragment();\n fragment.setArguments(bundle);\n } else {\n mCurrentFragmentLayout = PLAYLIST_LAYOUT;\n bundle.putString(DBAccessHelper.PLAYLIST_NAME, complete.get(fragmentId).getTitle());\n fragment = new PlaylistViewFragment();\n fragment.setArguments(bundle);\n }\n return fragment;\n }", "title": "" }, { "docid": "f761ac6f933b0c5576d31f3caf4bc4d0", "score": "0.48220527", "text": "public LockingStrategy getLockingStrategy(Lockable lockable, LockMode lockMode) {\n \t\tswitch ( lockMode ) {\n \t\t\tcase PESSIMISTIC_FORCE_INCREMENT:\n \t\t\t\treturn new PessimisticForceIncrementLockingStrategy( lockable, lockMode );\n \t\t\tcase PESSIMISTIC_WRITE:\n \t\t\t\treturn new PessimisticWriteSelectLockingStrategy( lockable, lockMode );\n \t\t\tcase PESSIMISTIC_READ:\n \t\t\t\treturn new PessimisticReadSelectLockingStrategy( lockable, lockMode );\n \t\t\tcase OPTIMISTIC:\n \t\t\t\treturn new OptimisticLockingStrategy( lockable, lockMode );\n \t\t\tcase OPTIMISTIC_FORCE_INCREMENT:\n \t\t\t\treturn new OptimisticForceIncrementLockingStrategy( lockable, lockMode );\n \t\t\tdefault:\n \t\t\t\treturn new SelectLockingStrategy( lockable, lockMode );\n \t\t}\n \t}", "title": "" }, { "docid": "aafa59a850724c2da3c7ab611ec2fa44", "score": "0.4780959", "text": "public static ModeFragment newInstance() {\n BeatboxModeFragment fragment = new BeatboxModeFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, ModeFragment.MODE_BEATBOX);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "48934a801718c0e932b831aabc783821", "score": "0.47135016", "text": "int getFragmentNumber();", "title": "" }, { "docid": "ff700da3df63eabfc82f74f439344316", "score": "0.4642761", "text": "public boolean isLocked(boolean packageMode);", "title": "" }, { "docid": "db253cac7f88938e4f2bd0b6a726a754", "score": "0.46344942", "text": "private void updateStatusFrag() {\n if (statusFrag != null) {\n Handler uiHandler = statusFrag.UIHandler;\n Bundle b = new Bundle();\n b.putInt(\"VEHICLE_STATUS\", 1); // Command to cause fragment ui update\n Message msgValue = Message.obtain(uiHandler);\n msgValue.setData(b);\n msgValue.sendToTarget();\n } else {\n toast(\"No Status Frag\");\n }\n }", "title": "" }, { "docid": "1c8cc6a62142fbf9f3f80a0cedb3edb0", "score": "0.45858818", "text": "public String getModeLabel(){\n\t\tHttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\tString mode = request.getParameter(\"mainform:mode\");\n\t\tif (mode != null && mode != \"\" && mode.equals(archetypeWrapper.MODE_UPDATE))\n\t\t\t\treturn \"Update\";\n\t\t\n\t\tif (archetypeWrapper == null)\n\t\t\treturn \"Save\";\n\t\tif (archetypeWrapper.getMode().equals(archetypeWrapper.MODE_NEW))\n\t\t\treturn \"Save\";\n\t\tif (archetypeWrapper.getMode().equals(archetypeWrapper.MODE_UPDATE))\n\t\t\treturn \"Update\";\n\t\treturn \"Unknown Mode!\";\n\t}", "title": "" }, { "docid": "72a018da3c9913916a7f19f1480b6df7", "score": "0.4567549", "text": "private void findFragment() {\n\t}", "title": "" }, { "docid": "4078127bd88cfb7f438859591314172c", "score": "0.45496476", "text": "public abstract String getFragment();", "title": "" }, { "docid": "559c2cead939ad32bc1b33de0600d701", "score": "0.45387453", "text": "public String getSnapshotMode() {\n \t\treturn snapshotMode_;\n \t}", "title": "" }, { "docid": "1942b90fa60aa4cca513e0af29e476ee", "score": "0.45293438", "text": "public boolean isForFragment() {\n\t\treturn _forFragment;\n\t}", "title": "" }, { "docid": "50cb86201ac326c1657d825da9fbcbd5", "score": "0.44759247", "text": "private void startFragment(FragmentHandler type, Object ...args) {\n\n currentFragment = null;\n String fragment_tag = null;\n Bundle bundle = null;\n\n TactSharedPrefController.setOnboardingStep(getFragmentId(type));\n\n switch(type){\n case SALESFORCE:\n currentFragment = new FragmentOnboardingSalesforce();\n bundle = new Bundle();\n bundle.putBoolean(CONST_LOGGED_IN_SALESFORCE, loggedInSalesforce); // needed if we want to display that we are logged in salesforce\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_SALESFORCE;\n break;\n case SALESFORCE_WEBVIEW:\n currentFragment = new FragmentSalesforceWebview();\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_SALESFORCE_WEBVIEW;\n break;\n case EMAIL:\n currentFragment = new FragmentOnboardingEmailSources();\n bundle = new Bundle();\n bundle.putBoolean(CONST_LOGGED_IN_EXCHANGE, loggedInExchange);\n bundle.putBoolean(CONST_LOGGED_IN_GOOGLE, loggedInGoogle);\n bundle.putBoolean(CONST_LOGGED_IN_SALESFORCE, loggedInSalesforce); // needed if we want to skip this view\n bundle.putBoolean(CONST_SYNC_GOOGLE, syncGoogle); // needed if we already select to sync or not to sync google\n bundle.putBoolean(CONST_SYNC_EXCHANGE, syncExchange); // needed if we already select to sync or not to sync exchange\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_EMAIL;\n break;\n case GOOGLE:\n currentFragment = new FragmentOnboardingGoogle();\n bundle = new Bundle();\n bundle.putBoolean(CONST_LOGGED_IN_EXCHANGE, loggedInExchange);\n bundle.putBoolean(CONST_LOGGED_IN_GOOGLE, loggedInGoogle); // needed if we want to display that we are logged in google\n bundle.putBoolean(CONST_LOGGED_IN_SALESFORCE, loggedInSalesforce);\n bundle.putBoolean(CONST_SYNC_EXCHANGE, syncExchange); // needed if we already select to sync or not to sync exchange\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_GOOGLE;\n break;\n case GOOGLE_WEBVIEW:\n currentFragment = new FragmentGoogleWebview();\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_GOOGLE_WEBVIEW;\n break;\n case EXCHANGE:\n currentFragment = new FragmentOnboardingExchange();\n bundle = new Bundle();\n bundle.putBoolean(CONST_LOGGED_IN_SALESFORCE, loggedInSalesforce); // if we want to skip exchange we must be logged in salesforce or google\n bundle.putBoolean(CONST_LOGGED_IN_GOOGLE, loggedInGoogle); // if we want to skip exchange we must be logged in salesforce or google\n bundle.putBoolean(CONST_LOGGED_IN_EXCHANGE, loggedInExchange); // needed if we want to display that we are logged in exchange\n bundle.putBoolean(CONST_SYNC_EXCHANGE_MANUALLY, exchangeManuallyEnabled);\n bundle.putString(CONST_SYNC_EXCHANGE_MANUALLY_EMAIL, emailExchangeManually);\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_GOOGLE;\n break;\n case EXCHANGE_MANUALLY:\n currentFragment = new FragmentOnboardingExchangeManually();\n bundle = new Bundle();\n bundle.putBoolean(CONST_LOGGED_IN_SALESFORCE, loggedInSalesforce);\n bundle.putBoolean(CONST_LOGGED_IN_GOOGLE, loggedInGoogle);\n bundle.putInt(CONST_SYNC_EXCHANGE_MANUALLY_STAGE, (Integer)args[1]);\n bundle.putString(CONST_SYNC_EXCHANGE_MANUALLY_EMAIL, (String)args[0]);\n bundle.putString(CONST_SYNC_EXCHANGE_MANUALLY_SERVER, serverExchangeManually);\n bundle.putString(CONST_SYNC_EXCHANGE_MANUALLY_DOMAIN, domainExchangeManually);\n bundle.putString(CONST_SYNC_EXCHANGE_MANUALLY_USERNAME, usernameExchangeManually);\n bundle.putString(CONST_SYNC_EXCHANGE_MANUALLY_PWD, passwordExchangeManually);\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_EXCHANGE_MANUALLY;\n break;\n case LOCAL_SOURCES:\n currentFragment = new FragmentOnboardingLocalSources();\n bundle = new Bundle();\n bundle.putBoolean(CONST_SYNC_CONTACTS, syncContacts); // needed if we already select to sync or not to sync contacts\n bundle.putBoolean(CONST_SYNC_CALENDARS, syncCalendars); // needed if we already select to sync or not to sync calendars\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_LOCAL_SOURCES;\n break;\n case CONTACTS:\n currentFragment = new FragmentOnboardingContacts();\n bundle = new Bundle();\n bundle.putBoolean(CONST_SYNC_CALENDARS, syncCalendars);\n bundle.putBoolean(CONST_SYNC_CONTACTS_PROCESSING, syncContactsProcessing);\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_CONTACTS;\n break;\n case CALENDARS:\n currentFragment = new FragmentOnboardingCalendars();\n bundle = new Bundle();\n bundle.putBoolean(CONST_SYNC_CONTACTS, syncContacts);\n bundle.putString(\"sourceName\", \"tactapp\");\n bundle.putInt(\"sourceId\", getSources().get(\"tactapp\"));\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_CALENDARS;\n break;\n case USER_REGISTRATION:\n disableBackButton();\n currentFragment = new FragmentOnboardingTactUserRegistration();\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_TACT_USER_REGISTRATION;\n break;\n case PASSWORD_REGISTRATION:\n disableBackButton();\n currentFragment = new FragmentOnboardingTactPasswordRegistration();\n fragment_tag = TactConst.FRAGMENT_ONBOARDING_TACT_PASSWORD_REGISTRATION;\n break;\n }\n\n //Setup the header of the fragment\n setUpActionBar(type);\n if (bundle != null){\n currentFragment.setArguments(bundle);\n }\n if(currentFragment != null){\n getFragmentManager().beginTransaction().replace(R.id.onboarding_content_frame, currentFragment, fragment_tag).commit();\n }\n }", "title": "" }, { "docid": "9487f3949c6a0fd7fad9a76cb1d46bbc", "score": "0.4459142", "text": "@Override\n public void onNavigationDrawerItemSelected(int position) {\n FragmentManager fragmentManager = getFragmentManager();\n Fragment f;\n Log.d(TAG, \"NavDrawerItemSelected \"+position);\n switch (position){\n case 0:\n Log.d(TAG, \"Create Update fragment\");\n f = UpdateFragment.newInstance();\n break;\n case 2:\n Log.d(TAG, \"Create Pref fragment\");\n f = PrefFragment.newInstance(this);\n break;\n default:\n Log.d(TAG, \"Create default fragment\");\n f = PlaceholderFragment.newInstance(position + 1);\n break;\n }\n fragmentManager.beginTransaction()\n .replace(R.id.container, f)\n .commit();\n\n }", "title": "" }, { "docid": "96f98ad8716097945755494e84b887f1", "score": "0.44577932", "text": "public boolean isFragment() {\n return fragment;\n }", "title": "" }, { "docid": "67dd62c1bd4f612a6773bfe6721363a8", "score": "0.44214296", "text": "private void setAppropriateFragment(boolean isEditMode) {\n FragmentTransaction trans = getSupportFragmentManager().beginTransaction()\n .replace(R.id.profile_main_fragment, isEditMode ? new ProfileEditFragment() : new ProfileViewFragment());\n trans.commit();\n\n setActionBarTitle(isEditMode ? \"Edit profile\" : \"Your profile\");\n }", "title": "" }, { "docid": "26517704a41a1726ac5725a209b6e21f", "score": "0.44066387", "text": "GameMode getGameMode();", "title": "" }, { "docid": "fb8c4cf2aa48227c4dfc10c4f7b9b631", "score": "0.43799698", "text": "@Override\n\tpublic void FragmentJob_UpdateJob(Job job) {\n\t\tField field = null;\n\t\tif(this.currentFieldView != null) field = this.currentFieldView.getField();\n\t\tthis.updateFieldView(field, job);\n\t\t\n\t\t//Update listView if it is visible\n\t\tif(this.fragmentListView != null && this.fragmentListView.isVisible()){\n\t\t\t//TODO get listview if it is null, could happen if rotate when list view is up.\n\t\t\tthis.fragmentListView.getData();\n\t\t}\n\t\t\n\t\t//Remote sync jobs, they have changed...\n\t\tthis.syncHelper.autoSyncDelayed(this);\n\t}", "title": "" }, { "docid": "6bea86e903ae2eceb154f41c33985862", "score": "0.4377624", "text": "cosmos.tx.v1beta1.TxOuterClass.ModeInfo getModeInfo();", "title": "" }, { "docid": "af8aea8027f80299e505c7fb00a1fc7e", "score": "0.43660426", "text": "@SuppressWarnings({\"unchecked\", \"UnusedParameters\"})\n \tpublic String getForUpdateString(String aliases, LockOptions lockOptions) {\n \t\tLockMode lockMode = lockOptions.getLockMode();\n \t\tfinal Iterator<Map.Entry<String, LockMode>> itr = lockOptions.getAliasLockIterator();\n \t\twhile ( itr.hasNext() ) {\n \t\t\t// seek the highest lock mode\n \t\t\tfinal Map.Entry<String, LockMode>entry = itr.next();\n \t\t\tfinal LockMode lm = entry.getValue();\n \t\t\tif ( lm.greaterThan( lockMode ) ) {\n \t\t\t\tlockMode = lm;\n \t\t\t}\n \t\t}\n \t\tlockOptions.setLockMode( lockMode );\n \t\treturn getForUpdateString( lockOptions );\n \t}", "title": "" }, { "docid": "69ef1de86e306c2ec40e1528616b7869", "score": "0.4363425", "text": "public void loadFragment(Bundle bundle) {\n\n transaction = manager.beginTransaction();\n\n switch (Constants.SELECTED) {\n\n case Constants.VIDEO_GIF_FRAGMENT:\n VideoGifFragment videoGifFragment = new VideoGifFragment();\n videoGifFragment.setArguments(bundle);\n transaction.add(R.id.content_frame, videoGifFragment);\n transaction.addToBackStack(null);\n Log.e(TAG, \"loading VideoGif fragment\");\n transaction.commit();\n break;\n\n case Constants.IMAGES_GIF_FRAGMENT:\n ImagesGifFragment imagesGifFragment = new ImagesGifFragment();\n imagesGifFragment.setArguments(bundle);\n transaction.add(R.id.content_frame, imagesGifFragment);\n transaction.addToBackStack(null);\n Log.e(TAG, \"loading ImagesGif fragment\");\n transaction.commit();\n break;\n\n case Constants.CAPTURE_IMAGE_FRAGMENT:\n CaptureImageFragment captureImageFragment = new CaptureImageFragment();\n captureImageFragment.setArguments(bundle);\n transaction.add(R.id.content_frame, captureImageFragment);\n transaction.addToBackStack(null);\n Log.e(TAG, \"loading CaptureImage fragment\");\n transaction.commit();\n break;\n\n case Constants.VIDEO_AUDIO_FRAGMENT:\n VideoAudioFragment videoAudioFragment = new VideoAudioFragment();\n videoAudioFragment.setArguments(bundle);\n transaction.add(R.id.content_frame, videoAudioFragment);\n transaction.addToBackStack(null);\n Log.e(TAG, \"loading VideoAudio fragment\");\n transaction.commit();\n break;\n\n case Constants.VIDEO_CUTTER_FRAGMENT:\n VideoCutterFragment videoCutterFragment = new VideoCutterFragment();\n videoCutterFragment.setArguments(bundle);\n transaction.add(R.id.content_frame, videoCutterFragment);\n transaction.addToBackStack(null);\n Log.e(TAG, \"loading VideoCutter fragment\");\n transaction.commit();\n break;\n\n case Constants.VIDEO_MOTION:\n VideoMotionFragment videoslowMotion = new VideoMotionFragment();\n videoslowMotion.setArguments(bundle);\n transaction.add(R.id.content_frame, videoslowMotion);\n transaction.addToBackStack(null);\n Log.e(TAG, \"loading VideoCutter fragment\");\n transaction.commit();\n break;\n case Constants.VIDEO_WATERMARK:\n VideoWaterMarkFragment videoWaterMarkFragment = new VideoWaterMarkFragment();\n videoWaterMarkFragment.setArguments(bundle);\n transaction.add(R.id.content_frame, videoWaterMarkFragment);\n transaction.addToBackStack(null);\n Log.e(TAG, \"loading VideoCutter fragment\");\n transaction.commit();\n break;\n case Constants.VIDEO_FILTER:\n VideoFilterFragment videoFilterFragment=new VideoFilterFragment();\n videoFilterFragment.setArguments(bundle);\n transaction.replace(R.id.content_frame,videoFilterFragment);\n transaction.addToBackStack(null);\n Log.e(TAG, \"loading VideoFilter fragment\");\n transaction.commit();\n break;\n\n default:\n break;\n\n }\n }", "title": "" }, { "docid": "58423bbeb76c01dfea30de65ae2dc744", "score": "0.43577647", "text": "public static GameMode getGameMode(int mode){\n switch (mode) {\n case 1:\n return new RespawnMode(0, 5);\n case 2:\n return new FlagMode(0, 7);\n default:\n return new NormalMode(0);\n }\n }", "title": "" }, { "docid": "676765bbd43615b08d4781e18d30525c", "score": "0.4324474", "text": "public void modeUpdated(ConnectionMode oldMode, ConnectionMode newMode);", "title": "" }, { "docid": "de690a5094dd20235cb0d4c918489f3e", "score": "0.43231112", "text": "private void switchMode(){\n if(mode == Display_mode.NOT_CONNECTED){ //set connected UI\r\n\r\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\r\n ft.replace(R.id.main_lin_layout, BTCon).commit();\r\n\r\n mode = Display_mode.CONNECTED;\r\n }\r\n else if(mode == Display_mode.CONNECTED){ //set unconnected UI\r\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\r\n ft.replace(R.id.main_lin_layout, BTList).commit();\r\n\r\n mode = Display_mode.NOT_CONNECTED;\r\n }\r\n }", "title": "" }, { "docid": "ad01b1de8dedc7cc634965e9044a8348", "score": "0.4297383", "text": "@objid (\"465f503a-228d-4809-b815-14fe1e7487b7\")\n protected DiffType getRequiredVersionCompatibility(VersionedItem<?> fragVersionRequirement) {\n Version curVersion = getVersion(fragVersionRequirement.getName());\n Version requirementVersion = fragVersionRequirement.getVersion();\n if (curVersion == null) {\n return DiffType.missing;\n //throw new IOException(CoreProject.getMessage(\"AbstractFragment.MissingMetamodelFragment\", getId(), neededMmFragment, curVersion));\n } else if (curVersion.isOlderThan(requirementVersion)) {\n //throw new IOException(CoreProject.getMessage(\"AbstractFragment.FutureMmVersion\", getId(), neededMmFragment, curVersion));\n return DiffType.newer;\n } else if (curVersion.equals(fragVersionRequirement.getVersion())) {\n return DiffType.same;\n } else if (curVersion.isNewerBuildOf(fragVersionRequirement.getVersion())) {\n return DiffType.olderCompatibleBuild;\n } else {\n // Current version is newer by major or minor version.\n //throw new IOException(CoreProject.getMessage(\"AbstractFragment.MmVersionNotSupported\", getId(), neededMmFragment, curVersion));\n return DiffType.older;\n }\n }", "title": "" }, { "docid": "28142f822aad3817550c0fadd0e18d5c", "score": "0.4278312", "text": "@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tBundle bundle = new Bundle();\n\n\t\t\tswitch (position) {\n\t\t\t\tcase 0:\n\t\t\t\t\tNetverifyFragment nvFragment = new NetverifyFragment();\n\t\t\t\t\tbundle.putString(KEY_SWITCH_ONE_TEXT, getResources().getString(R.string.netverify_verification_required));\n\t\t\t\t\tbundle.putString(KEY_SWITCH_TWO_TEXT, getResources().getString(R.string.netverify_face_required));\n\t\t\t\t\tbundle.putString(KEY_BUTTON_TEXT, String.format(getResources().getString(R.string.button_start), getResources().getString(R.string.section_netverify)));\n\t\t\t\t\tbundle.putString(KEY_API_TOKEN, NETVERIFY_API_TOKEN);\n\t\t\t\t\tbundle.putString(KEY_API_SECRET, NETVERIFY_API_SECRET);\n\t\t\t\t\tnvFragment.setArguments(bundle);\n\t\t\t\t\treturn nvFragment;\n case 1:\n NetverifyCustomFragment nvCustomFragment = new NetverifyCustomFragment();\n bundle.putString(KEY_BUTTON_TEXT, String.format(getResources().getString(R.string.button_start), getResources().getString(R.string.section_netverify_custom)));\n bundle.putString(KEY_API_TOKEN, NETVERIFY_API_TOKEN);\n bundle.putString(KEY_API_SECRET, NETVERIFY_API_SECRET);\n nvCustomFragment.setArguments(bundle);\n return nvCustomFragment;\n\t\t\t\tcase 2:\n\t\t\t\t\tDocumentVerificationFragment documentVerificationFragment = new DocumentVerificationFragment();\n\t\t\t\t\tbundle.putString(KEY_BUTTON_TEXT, String.format(getResources().getString(R.string.button_start), getResources().getString(R.string.section_documentverification)));\n\t\t\t\t\tbundle.putString(KEY_API_TOKEN, NETVERIFY_API_TOKEN);\n\t\t\t\t\tbundle.putString(KEY_API_SECRET, NETVERIFY_API_SECRET);\n\t\t\t\t\tdocumentVerificationFragment.setArguments(bundle);\n\t\t\t\t\treturn documentVerificationFragment;\n\t\t\t\tcase 3:\n\t\t\t\t\tBamFragment bamFragment = new BamFragment();\n\t\t\t\t\tbundle.putString(KEY_SWITCH_ONE_TEXT, getResources().getString(R.string.bam_expiry_required));\n\t\t\t\t\tbundle.putString(KEY_SWITCH_TWO_TEXT, getResources().getString(R.string.bam_cvv_required));\n\t\t\t\t\tbundle.putString(KEY_BUTTON_TEXT, String.format(getResources().getString(R.string.button_start), getResources().getString(R.string.section_bamcheckout)));\n\t\t\t\t\tbundle.putString(KEY_API_TOKEN, BAM_API_TOKEN);\n\t\t\t\t\tbundle.putString(KEY_API_SECRET, BAM_API_SECRET);\n\t\t\t\t\tbamFragment.setArguments(bundle);\n\t\t\t\t\treturn bamFragment;\n\t\t\t\tcase 4:\n\t\t\t\t\tBamCustomFragment bamCustomFragment = new BamCustomFragment();\n\t\t\t\t\tbundle.putString(KEY_BUTTON_TEXT, String.format(getResources().getString(R.string.button_start), getResources().getString(R.string.section_bam_custom)));\n\t\t\t\t\tbundle.putString(KEY_API_TOKEN, BAM_API_TOKEN);\n\t\t\t\t\tbundle.putString(KEY_API_SECRET, BAM_API_SECRET);\n\t\t\t\t\tbamCustomFragment.setArguments(bundle);\n\t\t\t\t\treturn bamCustomFragment;\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "35c7bbfc85ad5a9b2100b9014757adbd", "score": "0.42692044", "text": "cosmos.tx.v1beta1.TxOuterClass.ModeInfoOrBuilder getModeInfoOrBuilder();", "title": "" }, { "docid": "085c941b8b4b9611427367f70128d1f8", "score": "0.42652634", "text": "private void switchFragment(int position) {\n Fragment fragment = null;\n String fragmentID =\"\";\n switch (position) {\n case 0:\n fragmentID = \"SURVEY_START\";\n Bundle argsSurvey = new Bundle();\n argsSurvey.putStringArrayList(\"Area_Choices\", mAreaChoices);\n fragment = new SurveyStartFragment();\n fragment.setArguments(argsSurvey);\n break;\n case 1:\n fragmentID = \"REPORT_START\";\n Bundle argsReport = new Bundle();\n argsReport.putStringArrayList(\"Area_Choices\", mAreaChoices);\n fragment = new ReportStartFragment();\n fragment.setArguments(argsReport);\n break;\n case 2:\n fragmentID = \"ABOUT\";\n Bundle argsAbout = new Bundle();\n argsAbout.putStringArrayList(\"Area_Choices\", mAreaChoices);\n fragment = new AboutFragment();\n fragment.setArguments(argsAbout);\n break;\n default:\n break;\n }\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.fragmentHolder, fragment,\n fragmentID).commit();\n // Close the drawer\n mDrawerLayout.closeDrawer(mNavDrawerList);\n }", "title": "" }, { "docid": "cf34babf5efb2b3ff00f7e77b97ca394", "score": "0.4258418", "text": "public int getFileFragmentationLevel() {\n return config.getFileFragmentationLevel();\n }", "title": "" }, { "docid": "e6dc7bb467e775d4be56a3ce5a9fdc93", "score": "0.4236196", "text": "public abstract int getMode();", "title": "" }, { "docid": "62bf44144e9d470b255d25b4bf1e3858", "score": "0.42183697", "text": "protected void updateMode(float tpf) {\r\n\t\t// Nothing to do (yet).\r\n\t}", "title": "" }, { "docid": "10a58bcd21c0c26b9acd555a7e9e8d82", "score": "0.4206017", "text": "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n \tFragment fragment;\n \tswitch (tab.getPosition()) {\n \t\tcase 0:\n \t\t\tfragment = new FeedSectionFragment();\n \t getSupportFragmentManager().beginTransaction()\n \t .replace(R.id.container, fragment)\n \t .commit();\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\tfragment = new MyTasksSectionFragment();\n \t getSupportFragmentManager().beginTransaction()\n \t .replace(R.id.container, fragment)\n \t .commit();\n \t\t\tbreak;\n \t\tcase 2:\n \t\t\tfragment = new FeedSectionFragment();\n \t getSupportFragmentManager().beginTransaction()\n \t .replace(R.id.container, fragment)\n \t .commit();\n \t\t\tbreak;\n \t\tcase 3:\n \t\t\tfragment = new FeedSectionFragment();\n \t getSupportFragmentManager().beginTransaction()\n \t .replace(R.id.container, fragment)\n \t .commit();\n \t\t\tbreak;\n \t}\n }", "title": "" }, { "docid": "7408242dfa4b60b537d52cf3d757992c", "score": "0.42044497", "text": "public void onFragmentInteraction(int which);", "title": "" }, { "docid": "2dd241bb4882bf0a00e99d71cc9a17b3", "score": "0.41985515", "text": "public void updateUI(String options) {\n _edittextUsernameStatus.setText(\"Welcome [ \" + appState.getUsername() + \" ]<\" + appState.getPoints() + \"p>\");\n\n //String test = _edittextUsernameStatus.getText().toString();\n\n switch(options) {\n\n case AppState.USER_STATUS_ALIEN:\n case \"LoginUserFragment\":\n {\n Fragment f = new LoginUserFragment();\n FragmentManager fm = getFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.home_activity_id, f);\n ft.commit();\n }\n break;\n\n case \"RegisterUserFragment\":\n {\n Fragment f = new RegisterUserFragment();\n FragmentManager fm = getFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.home_activity_id, f);\n ft.commit();\n }\n break;\n\n case \"ChallengeListFragment\":\n {\n Fragment f = new ChallengeListFragment();\n FragmentManager fm = getFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.home_activity_id, f);\n ft.commit();\n }\n break;\n\n case AppState.USER_STATUS_GUEST:\n case AppState.USER_STATUS_NORMAL_NO_CONFIRM:\n case AppState.USER_STATUS_NORMAL:\n case \"HomeMenuFragment\":\n {\n Fragment f = HomeMenuFragment.newInstance();\n FragmentManager fm = getFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.home_activity_id, f);\n ft.commit();\n }\n break;\n\n }\n\n }", "title": "" }, { "docid": "0561352849c35a54b23174ce48016905", "score": "0.41969037", "text": "protected void m11991a() {\n this.f11191a = (PhotoFragment) getSupportFragmentManager().getFragments().get(0);\n }", "title": "" }, { "docid": "2332fe29ce9e1eef1708b3bcf3a5e6ca", "score": "0.41956893", "text": "public interface FragmentCallback {\n void onChangeFragment(String tag, Bundle bundle, View sharedView);\n}", "title": "" }, { "docid": "a4218032b8895527395d81f178791f28", "score": "0.41866165", "text": "static VersionLocker resolve(MetaObject mo) {\n MappedStatement ms = (MappedStatement) mo.getValue(\"mappedStatement\");\r\n if (!Objects.equals(ms.getSqlCommandType(), SqlCommandType.UPDATE))\r\n return falseLocker;\r\n\r\n BoundSql boundSql = (BoundSql) mo.getValue(\"boundSql\");\r\n Object paramObj = boundSql.getParameterObject();\r\n Class<?>[] paramCls = null;\r\n\r\n /****************** Process param must order by below ***********************/\r\n // 1、Process @Param param\r\n if (paramObj instanceof MapperMethod.ParamMap<?>) {\r\n MapperMethod.ParamMap<?> mmp = (MapperMethod.ParamMap<?>) paramObj;\r\n if (!mmp.isEmpty()) {\r\n paramCls = new Class<?>[mmp.size() >> 1];\r\n int mmpLen = mmp.size() >> 1;\r\n for (int i = 0; i < mmpLen; i++) {\r\n Object index = mmp.get(\"param\" + (i + 1));\r\n paramCls[i] = index.getClass();\r\n }\r\n }\r\n\r\n // 2、Process Map param\r\n } else if (paramObj instanceof Map) {\r\n paramCls = new Class<?>[] {Map.class};\r\n\r\n // 3、Process POJO entity param\r\n } else {\r\n paramCls = new Class<?>[] {paramObj.getClass()};\r\n }\r\n\r\n String id = ms.getId();\r\n Cache.MethodSignature vm = new Cache.MethodSignature(id, paramCls);\r\n VersionLocker versionLocker = versionLockerCache.getVersionLocker(vm);\r\n if (null != versionLocker)\r\n return versionLocker;\r\n\r\n if (mapperMap.isEmpty()) {\r\n Collection<Class<?>> mappers = ms.getConfiguration().getMapperRegistry().getMappers();\r\n if (null != mappers && !mappers.isEmpty()) {\r\n for (Class<?> me : mappers) {\r\n mapperMap.put(me.getName(), me);\r\n }\r\n }\r\n }\r\n\r\n int pos = id.lastIndexOf('.');\r\n String nameSpace = id.substring(0, pos);\r\n if (!mapperMap.containsKey(nameSpace) && log.isDebugEnabled()) {\r\n log.debug(Constent.LOG_PREFIX + \"Config info error, maybe you have not config the Mapper interface\");\r\n throw new LockerException(\"Config info error, maybe you have not config the Mapper interface\");\r\n }\r\n Class<?> mapper = mapperMap.get(nameSpace);\r\n Method m = null;\r\n Method[] methods = getClassMethods(mapper);\r\n for (Method method : methods) {\r\n if (Objects.equals(method.getName(), id.substring(pos + 1))) {\r\n m = method;\r\n break;\r\n }\r\n }\r\n versionLocker = m.getAnnotation(VersionLocker.class);\r\n if (null == versionLocker) {\r\n versionLocker = trueLocker;\r\n }\r\n if (!versionLockerCache.containMethodSignature(vm)) {\r\n versionLockerCache.cacheMethod(vm, versionLocker);\r\n }\r\n return versionLocker;\r\n }", "title": "" }, { "docid": "2c7df36305b369c8c7914aefcfb24892", "score": "0.4179985", "text": "public void setFragment(boolean fragment) {\n this.fragment = fragment;\n }", "title": "" }, { "docid": "ce5126d3507155b19c5c4edaa567ba68", "score": "0.41798323", "text": "Fragment mo20773b();", "title": "" }, { "docid": "1c89e5bd8a08dce80fcca5f0e63dcab5", "score": "0.41794237", "text": "public void setSnapshotMode(String snapshotMode) {\n \t\tthis.snapshotMode_ = snapshotMode;\n \t}", "title": "" }, { "docid": "8fb1114e397cca144800317e3093341a", "score": "0.41738877", "text": "private static QrMode[] applyOptimisation(int version, QrMode[] inputMode) {\n\n int inputLength = inputMode.length;\n int blockCount = 0;\n int i, j;\n QrMode currentMode = QrMode.NULL;\n\n for (i = 0; i < inputLength; i++) {\n if (inputMode[i] != currentMode) {\n currentMode = inputMode[i];\n blockCount++;\n }\n }\n\n int[] blockLength = new int[blockCount];\n QrMode[] blockMode = new QrMode[blockCount];\n\n j = -1;\n currentMode = QrMode.NULL;\n for (i = 0; i < inputLength; i++) {\n if (inputMode[i] != currentMode) {\n j++;\n blockLength[j] = 1;\n blockMode[j] = inputMode[i];\n currentMode = inputMode[i];\n } else {\n blockLength[j]++;\n }\n }\n\n if (blockCount > 1) {\n // Search forward\n for (i = 0; i <= (blockCount - 2); i++) {\n if (blockMode[i] == QrMode.BINARY) {\n switch (blockMode[i + 1]) {\n case KANJI:\n if (blockLength[i + 1] < tribus(version, 4, 5, 6)) {\n blockMode[i + 1] = QrMode.BINARY;\n }\n break;\n case ALPHANUM:\n if (blockLength[i + 1] < tribus(version, 7, 8, 9)) {\n blockMode[i + 1] = QrMode.BINARY;\n }\n break;\n case NUMERIC:\n if (blockLength[i + 1] < tribus(version, 3, 4, 5)) {\n blockMode[i + 1] = QrMode.BINARY;\n }\n break;\n }\n }\n\n if ((blockMode[i] == QrMode.ALPHANUM)\n && (blockMode[i + 1] == QrMode.NUMERIC)) {\n if (blockLength[i + 1] < tribus(version, 6, 8, 10)) {\n blockMode[i + 1] = QrMode.ALPHANUM;\n }\n }\n }\n\n // Search backward\n for (i = blockCount - 1; i > 0; i--) {\n if (blockMode[i] == QrMode.BINARY) {\n switch (blockMode[i - 1]) {\n case KANJI:\n if (blockLength[i - 1] < tribus(version, 4, 5, 6)) {\n blockMode[i - 1] = QrMode.BINARY;\n }\n break;\n case ALPHANUM:\n if (blockLength[i - 1] < tribus(version, 7, 8, 9)) {\n blockMode[i - 1] = QrMode.BINARY;\n }\n break;\n case NUMERIC:\n if (blockLength[i - 1] < tribus(version, 3, 4, 5)) {\n blockMode[i - 1] = QrMode.BINARY;\n }\n break;\n }\n }\n\n if ((blockMode[i] == QrMode.ALPHANUM)\n && (blockMode[i - 1] == QrMode.NUMERIC)) {\n if (blockLength[i - 1] < tribus(version, 6, 8, 10)) {\n blockMode[i - 1] = QrMode.ALPHANUM;\n }\n }\n }\n }\n\n // ZINT NOTE: this method is different from the original Zint code in that it creates a\n // new array to hold the optimized values and returns it, rather than modifying the\n // original array; this allows this method to be called as many times as we want without\n // worrying about side effects\n\n QrMode[] optimized = new QrMode[inputMode.length];\n\n j = 0;\n for (int block = 0; block < blockCount; block++) {\n currentMode = blockMode[block];\n for (i = 0; i < blockLength[block]; i++) {\n optimized[j] = currentMode;\n j++;\n }\n }\n\n return optimized;\n }", "title": "" }, { "docid": "a0b38f36decbe17c16063a4967d64737", "score": "0.41732788", "text": "private void renderFragmentForSelection(FObject old, FObject nu) {\n Log.i(\"FragJug\", \"Top of render: \" + old + \" to \" + nu);\n FragmentManager manager = getFragmentManager();\n FragmentTransaction trans = manager.beginTransaction();\n\n if (nu == null) { // Render the list.\n Log.i(\"FragJug\", \"list (both null)\");\n ListFragment list = new ListFragment();\n list.X(X().put(\"data\", dao));\n trans.replace(frameId, list);\n trans.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_CLOSE);\n trans.commit();\n } else { // Render the details\n Log.i(\"FragJug\", \"->details\");\n DetailFragment details = new DetailFragment();\n details.X(X().put(\"data\", selection));\n trans.replace(frameId, details);\n trans.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n trans.commit();\n }\n }", "title": "" }, { "docid": "1f8a0f2bc3d2168ba3930c349f89144f", "score": "0.41589093", "text": "@DISPID(481) //= 0x1e1. The runtime will prefer the VTID if present\r\n @VTID(332)\r\n boolean readingModeLayoutFrozen();", "title": "" }, { "docid": "2db56c0ee1939ca5a25b4093557465fa", "score": "0.41549873", "text": "public static synchronized boolean m6676c(Context context) {\n FileLock fileLock;\n synchronized (MutiProcessLock.class) {\n if (f6690a == null) {\n f6690a = new File(context.getFilesDir() + File.separator + \"ap.Lock\");\n }\n boolean exists = f6690a.exists();\n if (!exists) {\n try {\n exists = f6690a.createNewFile();\n } catch (IOException unused) {\n }\n }\n if (!exists) {\n return true;\n }\n if (f6691a == null) {\n try {\n f6691a = new RandomAccessFile(f6690a, \"rw\").getChannel();\n } catch (Exception unused2) {\n return false;\n }\n }\n try {\n fileLock = f6691a.tryLock();\n if (fileLock != null) {\n f6692a = fileLock;\n return true;\n }\n } catch (Throwable unused3) {\n fileLock = null;\n }\n Log.d(\"TAG\", \"mLock:\" + fileLock);\n return false;\n }\n }", "title": "" }, { "docid": "d7e6245db699ddbbeb822f68f9dba36c", "score": "0.41398272", "text": "java.lang.String getLockChk();", "title": "" }, { "docid": "69ca7ad704932ad88d169f12ce0f9019", "score": "0.4138884", "text": "public com.google.protobuf.ByteString getVolumeBindingModeBytes() {\n java.lang.Object ref = volumeBindingMode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n volumeBindingMode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "82c58df2d36848d420aec000f3e6c302", "score": "0.41331807", "text": "public LockType getLockType(BaseTransaction transaction, ResourceName name) {\n throw new UnsupportedOperationException(\"TODO(hw5): implement\");\n }", "title": "" }, { "docid": "57d3c1c8f2c2a6af3a66e09d2629907d", "score": "0.41297293", "text": "@Override\n protected LockMode[] getLockModes(LockOptions lockOptions) {\n \t\tHashMap nameLockOptions = new HashMap();\n \t\tif ( lockOptions == null) {\n \t\t\tlockOptions = LockOptions.NONE;\n \t\t}\n \n \t\tif ( lockOptions.getAliasLockCount() > 0 ) {\n \t\t\tIterator iter = lockOptions.getAliasLockIterator();\n \t\t\twhile ( iter.hasNext() ) {\n \t\t\t\tMap.Entry me = ( Map.Entry ) iter.next();\n \t\t\t\tnameLockOptions.put( getAliasName( ( String ) me.getKey() ),\n \t\t\t\t\t\tme.getValue() );\n \t\t\t}\n \t\t}\n \t\tLockMode[] lockModesArray = new LockMode[names.length];\n \t\tfor ( int i = 0; i < names.length; i++ ) {\n \t\t\tLockMode lm = ( LockMode ) nameLockOptions.get( names[i] );\n \t\t\t//if ( lm == null ) lm = LockOptions.NONE;\n \t\t\tif ( lm == null ) lm = lockOptions.getLockMode();\n \t\t\tlockModesArray[i] = lm;\n \t\t}\n \t\treturn lockModesArray;\n \t}", "title": "" }, { "docid": "c1548219b396d4050c801f88bfecb918", "score": "0.41278413", "text": "public java.lang.String getVolumeBindingMode() {\n java.lang.Object ref = volumeBindingMode_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n volumeBindingMode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "e2f996cd2ecc0d0c82b1b3b171a33ca6", "score": "0.4126708", "text": "protected Fragment getFragment(final String name)\n {\n Fragment fragment = null;\n // search through the names and the first name that matches\n // one of the names return the value of that name.\n for (String nextName : fragments.keySet())\n {\n if (name.matches(nextName))\n {\n fragment = fragments.get(nextName);\n }\n }\n\n // if the fragment is null, and the name isn't in an ignorePattern\n // element, then give an error\n if (fragment == null && !this.isIgnorePattern(name))\n {\n // TODO: make this work correctly with unsupported functions.\n\n /*\n * logger.error(\"ERROR! expression fragment '\" + name + \"' is not\n * currently supported --> add a <fragment/> with \" + \" a name that\n * matches this expression to your translation file \" + \"'\" +\n * this.getLibraryTranslation().getFile() + \"' to enable support\");\n */\n }\n return fragment;\n }", "title": "" }, { "docid": "8f1ed445fdf56066803f864dc3908d4c", "score": "0.41230896", "text": "public static Fragment newInstance() {\n return new OfflineFragment();\n }", "title": "" }, { "docid": "8ae2d250333272701ddd2ec1744fa077", "score": "0.41151935", "text": "public Fragment getFragment(ScopeTextFragment fragment);", "title": "" }, { "docid": "e1d370629a657eae3f7de0a3538b8fe3", "score": "0.41116035", "text": "Fragment mo20772a();", "title": "" }, { "docid": "1a730081e566486fddc4fed8a3b6cc3d", "score": "0.41054797", "text": "public Integer getLockVersion() {\n return lockVersion;\n }", "title": "" }, { "docid": "1a730081e566486fddc4fed8a3b6cc3d", "score": "0.41054797", "text": "public Integer getLockVersion() {\n return lockVersion;\n }", "title": "" }, { "docid": "266ace14985cfea47d253418d3feddc0", "score": "0.4105467", "text": "com.google.protobuf.ByteString getVolumeBindingModeBytes();", "title": "" }, { "docid": "fcedb9f55911ee19a91db3a66f0b9347", "score": "0.4104675", "text": "public int getMode() {\n\n if (style == Style.RPC) {\n return MODE_RPC;\n } else if (style == Style.DOCUMENT) {\n return MODE_DOCUMENT;\n } else if (style == Style.WRAPPED) {\n return MODE_DOC_WRAPPED;\n }\n\n return -1;\n }", "title": "" }, { "docid": "d93c1cf0ede43a122ae94fb4a72aba20", "score": "0.41002828", "text": "String getMode();", "title": "" }, { "docid": "43874e9a8c6bc6b247add8d0a719cae1", "score": "0.4096335", "text": "private void packFirstHalf(long time, int version)\r\n {\r\n firstHalf = ((long) version << 60) | (time & 0x0fffffffffffffffL);\r\n }", "title": "" }, { "docid": "865a935eb1b7bc7bb51e343dc344dc1a", "score": "0.4095753", "text": "public Integer getPinMode(){\n Integer passMode = myPrefs.getInt(\"PassMode\",0);\n return passMode;\n }", "title": "" }, { "docid": "b2a22f6e8950032992ff8c09b486dcab", "score": "0.4095188", "text": "int getMode();", "title": "" }, { "docid": "b2a22f6e8950032992ff8c09b486dcab", "score": "0.4095188", "text": "int getMode();", "title": "" }, { "docid": "62fb3302ace049324c5a7586deb4407d", "score": "0.40901995", "text": "public long getLockId(){\n return localLockId;\n }", "title": "" }, { "docid": "62fb3302ace049324c5a7586deb4407d", "score": "0.40901995", "text": "public long getLockId(){\n return localLockId;\n }", "title": "" }, { "docid": "62fb3302ace049324c5a7586deb4407d", "score": "0.40901995", "text": "public long getLockId(){\n return localLockId;\n }", "title": "" }, { "docid": "f544f2587aeb1c3e54c6a857e7cd7516", "score": "0.40881738", "text": "public void switchFragmentBasedOnId(int id) {\n\n Fragment fragment = null;\n String title = getString(R.string.app_name);\n String tag = \"\";\n\n //skip if overview fragment is already there...\n\n if (id == R.id.nav_overview) {\n\n\n Fragment currentlyActive = (OverviewFragment) getSupportFragmentManager().findFragmentByTag(\"overview\");\n\n\n fragment = new OverviewFragment();\n title = \"Overview\";\n tag = \"overview\";\n\n\n\n } else if (id == R.id.nav_history) {\n fragment = new HistoryFragment();\n title = \"History\";\n tag = \"history\";\n } else if (id == R.id.nav_statistics) {\n fragment = new StatisticsFragment();\n title = \"Statistics\";\n tag = \"statics\";\n }\n\n\n if (fragment != null) {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.replace(R.id.drawer_layout2, fragment, tag);\n ft.addToBackStack(tag);\n\n ft.commit();\n }\n\n\n\n // set the toolbar title\n if (getSupportActionBar() != null) {\n getSupportActionBar().setTitle(title);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show();\n //finish();\n }\n\n\n }", "title": "" }, { "docid": "908561a6f599d25d50464bc8ad37731e", "score": "0.40793532", "text": "void onFragmentInteraction(Fragment newFragment);", "title": "" }, { "docid": "1bf9c72cbbac0ab7e0e527d0253b7b72", "score": "0.40790135", "text": "public java.lang.String getVolumeBindingMode() {\n java.lang.Object ref = volumeBindingMode_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n volumeBindingMode_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "39265f92a4f541a4181dfd373a890535", "score": "0.4074483", "text": "public interface UpdateableFragment {\n public void update(Instagram instagram, int type);\n}", "title": "" }, { "docid": "c721ffdff5e29ce9d6bbeeefe7c92eb2", "score": "0.4072108", "text": "@Override\n public void onRefresh() {\n Fragment fragment = getFragmentManager().findFragmentById(R.id.fragment_container);\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.detach(fragment).attach(fragment).commit();\n\n swipeRefreshLayout.setRefreshing(false);\n }", "title": "" }, { "docid": "adbf6f7e595461d314bcc7d9efa7f701", "score": "0.40688282", "text": "@Nullable\n private Fragment getCurrentFragment() {\n return getSupportFragmentManager().findFragmentByTag(CONTENT_FRAGMENT_TAG);\n }", "title": "" }, { "docid": "231c5a33d8731f35b4d69768715651de", "score": "0.40577665", "text": "public static PlaceholderFragment newInstance(int sectionNumber) {/*RETURNS THE CORRESPONDING FRAGMENT ROOM,DEVICE OR FAVE*/\n PlaceholderFragment fragment = new PlaceholderFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "8d5ce20208ceb8c7b9a45ea1ccf656e9", "score": "0.40550342", "text": "public com.google.protobuf.ByteString getVolumeBindingModeBytes() {\n java.lang.Object ref = volumeBindingMode_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n volumeBindingMode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "2106410ebf1de8ee7e5c2c6af50f6150", "score": "0.4049293", "text": "public Integer getOptLock() {\n return optLock;\n }", "title": "" }, { "docid": "2009b468d602895b5ad8f4995bf7dcfc", "score": "0.40462208", "text": "public Class<? extends Fragment> getFragmentClass() {\r\n return mFragmentClass;\r\n }", "title": "" }, { "docid": "22123c44ce3afcb9fd6147d34643f5a7", "score": "0.40386036", "text": "private void replaceFragment(Fragment fragment) {\n }", "title": "" }, { "docid": "dc29ff016739447f33805b448c1355bf", "score": "0.40301013", "text": "public String getLockOwner();", "title": "" }, { "docid": "fbda0bb3bd86fcc3f627b98f5d9f5cbf", "score": "0.4024982", "text": "private synchronized boolean isupGrade(TransactionId tid, Permissions perm){\n if (lockHolders.size()==1 && lockHolders.contains(tid) && lockType==Permissions.READ_ONLY && perm== Permissions.READ_WRITE){\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "3399b4c416a8f1b146c1bd770573ab69", "score": "0.40245312", "text": "public OSD_LockType GetLock() {\n return OSD_LockType.swigToEnum(OCCwrapJavaJNI.OSD_File_GetLock(swigCPtr, this));\n }", "title": "" }, { "docid": "a4296892f2a45de41f74200ccc034cfa", "score": "0.40227312", "text": "Fragment mo20774c();", "title": "" }, { "docid": "2c7a36bd76b4decdee64ce7e4cc0f692", "score": "0.40180615", "text": "public int getMode() {\r\n\t\treturn this.leftPanel.getEditMode();\r\n\t}", "title": "" }, { "docid": "0638588f2fe2e222a1b8971c31b08915", "score": "0.40167862", "text": "protected final void updateVideoLayout() {\n /*\n r6 = this;\n r0 = f212a;\n if (r0 == 0) goto L_0x0009;\n L_0x0004:\n r0 = \"updateVideoLayout\";\n com.unity3d.player.C0058p.m117b(r0);\n L_0x0009:\n r0 = r6.f228q;\n if (r0 != 0) goto L_0x000e;\n L_0x000d:\n return;\n L_0x000e:\n r0 = r6.f224m;\n if (r0 == 0) goto L_0x0016;\n L_0x0012:\n r0 = r6.f225n;\n if (r0 != 0) goto L_0x0034;\n L_0x0016:\n r0 = r6.f213b;\n r1 = \"window\";\n r0 = r0.getSystemService(r1);\n r0 = (android.view.WindowManager) r0;\n r1 = new android.util.DisplayMetrics;\n r1.<init>();\n r0 = r0.getDefaultDisplay();\n r0.getMetrics(r1);\n r0 = r1.widthPixels;\n r6.f224m = r0;\n r0 = r1.heightPixels;\n r6.f225n = r0;\n L_0x0034:\n r0 = r6.f224m;\n r1 = r6.f225n;\n r2 = r6.f230s;\n if (r2 == 0) goto L_0x0073;\n L_0x003c:\n r2 = r6.f226o;\n r2 = (float) r2;\n r3 = r6.f227p;\n r3 = (float) r3;\n r2 = r2 / r3;\n r3 = r6.f224m;\n r3 = (float) r3;\n r4 = r6.f225n;\n r4 = (float) r4;\n r3 = r3 / r4;\n r4 = r6.f218g;\n r5 = 1;\n if (r4 != r5) goto L_0x0060;\n L_0x004f:\n r3 = (r3 > r2 ? 1 : (r3 == r2 ? 0 : -1));\n if (r3 > 0) goto L_0x0059;\n L_0x0053:\n r1 = r6.f224m;\n r1 = (float) r1;\n r1 = r1 / r2;\n r1 = (int) r1;\n goto L_0x007c;\n L_0x0059:\n r0 = r6.f225n;\n r0 = (float) r0;\n r0 = r0 * r2;\n r0 = (int) r0;\n goto L_0x007c;\n L_0x0060:\n r4 = r6.f218g;\n r5 = 2;\n if (r4 != r5) goto L_0x006a;\n L_0x0065:\n r3 = (r3 > r2 ? 1 : (r3 == r2 ? 0 : -1));\n if (r3 < 0) goto L_0x0059;\n L_0x0069:\n goto L_0x0053;\n L_0x006a:\n r2 = r6.f218g;\n if (r2 != 0) goto L_0x007c;\n L_0x006e:\n r0 = r6.f226o;\n r1 = r6.f227p;\n goto L_0x007c;\n L_0x0073:\n r2 = f212a;\n if (r2 == 0) goto L_0x007c;\n L_0x0077:\n r2 = \"updateVideoLayout: Video size is not known yet\";\n com.unity3d.player.C0058p.m117b(r2);\n L_0x007c:\n r2 = r6.f224m;\n if (r2 != r0) goto L_0x0084;\n L_0x0080:\n r2 = r6.f225n;\n if (r2 == r1) goto L_0x00af;\n L_0x0084:\n r2 = f212a;\n if (r2 == 0) goto L_0x00a1;\n L_0x0088:\n r2 = new java.lang.StringBuilder;\n r3 = \"frameWidth = \";\n r2.<init>(r3);\n r2.append(r0);\n r3 = \"; frameHeight = \";\n r2.append(r3);\n r2.append(r1);\n r2 = r2.toString();\n com.unity3d.player.C0058p.m117b(r2);\n L_0x00a1:\n r2 = new android.widget.FrameLayout$LayoutParams;\n r3 = 17;\n r2.<init>(r0, r1, r3);\n r0 = r6.f222k;\n r1 = r6.f214c;\n r0.updateViewLayout(r1, r2);\n L_0x00af:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unity3d.player.p.updateVideoLayout():void\");\n }", "title": "" }, { "docid": "6474dbe9dbe56d3e8ae03c2b7a0f055b", "score": "0.40138835", "text": "public String getMode(){\n\t\tif(archetypeWrapper == null)\n\t\t\treturn archetypeWrapper.MODE_NEW;\n\t\treturn archetypeWrapper.getMode();\n\t}", "title": "" }, { "docid": "fcc6216da5c7ff3a77fe347621a6907d", "score": "0.40057883", "text": "private void UpdateFragmentUI() {\n\t\tUpdateVolts();\n\t\tUpdateAmps();\n\t\tUpdateAmpHours();\n\t\tUpdateSpeed();\n\t\tUpdateMotorRPM();\n\t\tUpdateWattHours();\n\t\tUpdateLap();\n\t}", "title": "" }, { "docid": "ef669df352e52df2b4eb6c8d65c999fb", "score": "0.40053743", "text": "private Fragment getFragment() {\n Fragment fragment = getFragmentManager().findFragmentById(R.id.content_frame);\n return fragment;\n }", "title": "" }, { "docid": "7eafdc52fba46f5298ffed7a10c09a28", "score": "0.39951575", "text": "public boolean currentFragmentCompatibleWith(SourceInfo region, boolean hidden) {\n return fragments.get(0).compatibleWith(region, hidden);\n }", "title": "" }, { "docid": "309b844b6c0d9bc894c0ff0d1e0c1a61", "score": "0.39943686", "text": "public ActivityRegulator.Lock acquirePollLock(String key) {\n ActivityRegulator.Lock lock = null;\n PollManagerEntry pme = entryManager.getCurrentOrRecentV1PollEntry(key);\n if(pme != null) {\n PollTally tally = pme.poll.getVoteTally();\n if(tally != null) {\n\tlock = tally.getActivityLock();\n\ttally.setActivityLock(null);\n }\n }\n return lock;\n }", "title": "" }, { "docid": "6d8375391ef90c1042f79f2526dfb1c5", "score": "0.3991436", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (fragView == null) {\n fragView = inflater.inflate(R.layout.fragment_home, container, false);\n ButterKnife.bind(this, fragView);\n flag_refresh_clothing = flag_refresh_mall = 0;\n\n nestedScrollView.setOnScrollChangeListener(new View.OnScrollChangeListener() {\n @Override\n public void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) {\n flag_detecting_scroll_twice++;\n\n //avoid detecting bottom detection twice\n if (flag_detecting_scroll_twice % 2 != 0) {\n if (scrollY == (nestedScrollView.getChildAt(0).getMeasuredHeight() - nestedScrollView.getMeasuredHeight())) {\n Toast.makeText(getActivity(), \"bottom detected\", Toast.LENGTH_LONG).show();\n swipeRefreshLayout.setRefreshing(true);\n if (tabLayout.getSelectedTabPosition() == 0 && flag_refresh_clothing == 0) {\n popularClothesFragment.loadNextClothings();\n } else if (tabLayout.getSelectedTabPosition() == 1 && flag_refresh_mall == 0) {\n popularMallFragment.loadNextItems();\n }\n }\n }\n }\n });\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n if (tabLayout.getSelectedTabPosition() == 0 && flag_refresh_clothing == 0) {\n popularClothesFragment.refreshAll();\n } else if (tabLayout.getSelectedTabPosition() == 1 && flag_refresh_mall == 0) {\n popularMallFragment.refreshAll();\n }\n }\n });\n }\n\n return fragView;\n }", "title": "" }, { "docid": "d94865db3f6fe32208ffddc7a7be648c", "score": "0.39883596", "text": "public void onGlobalLayout() {\n /*\n r3 = this;\n com.farsitel.bazaar.ui.cinema.download.VideoDownloadFragment r0 = r3.f6481a\n android.app.Dialog r0 = r0.Na()\n boolean r1 = r0 instanceof c.e.a.c.f.h\n if (r1 != 0) goto L_0x000b\n r0 = 0\n L_0x000b:\n c.e.a.c.f.h r0 = (c.e.a.c.f.h) r0\n if (r0 == 0) goto L_0x0028\n r1 = 2131362093(0x7f0a012d, float:1.8343957E38)\n android.view.View r0 = r0.findViewById(r1)\n android.widget.FrameLayout r0 = (android.widget.FrameLayout) r0\n if (r0 == 0) goto L_0x0028\n com.farsitel.bazaar.ui.cinema.download.VideoDownloadFragment r1 = r3.f6481a\n com.google.android.material.bottomsheet.BottomSheetBehavior r0 = com.google.android.material.bottomsheet.BottomSheetBehavior.b(r0)\n java.lang.String r2 = \"BottomSheetBehavior.from(bottomSheet)\"\n h.f.b.j.a((java.lang.Object) r0, (java.lang.String) r2)\n r1.a((com.google.android.material.bottomsheet.BottomSheetBehavior<android.view.View>) r0)\n L_0x0028:\n com.farsitel.bazaar.ui.cinema.download.VideoDownloadFragment r0 = r3.f6481a\n c.c.a.n.j.c.a r0 = r0.qa\n if (r0 == 0) goto L_0x003b\n java.util.ArrayList r0 = r0.e()\n if (r0 == 0) goto L_0x003b\n int r0 = r0.size()\n goto L_0x003c\n L_0x003b:\n r0 = 0\n L_0x003c:\n if (r0 <= 0) goto L_0x0047\n android.view.View r0 = r3.f6482b\n android.view.ViewTreeObserver r0 = r0.getViewTreeObserver()\n r0.removeOnGlobalLayoutListener(r3)\n L_0x0047:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: c.c.a.n.j.c.c.onGlobalLayout():void\");\n }", "title": "" }, { "docid": "f41f8627b680a3e583f140ce413bd00e", "score": "0.3987526", "text": "public void getGameMode(String mode) {\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, SERVER_IP + \"?\" + NetworkHelper.MODE + \"=\" + mode, new JSONObject(), new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n startGame.setGameMode(response.getString(NetworkHelper.MODE));\n } catch (JSONException ex) {\n Log.d(\"JSONError\", ex.getMessage());\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"VolleyError\", error.getMessage());\n }\n });\n\n //set initial timeout and retry policy for volley\n request.setRetryPolicy(new DefaultRetryPolicy(20 * 1000, 10, 1.0f));\n\n request.setTag(QUEUE_TAG);\n requestQueue.add(request);\n }", "title": "" }, { "docid": "541d742f6e804a92b8f735929e067eeb", "score": "0.3983926", "text": "private void setTrainingMode(final int mode){\n Log.d(TAG,\"init fragments\");\n if(trainingMode == mode) {\n Log.d(TAG,\"GUI mode already set\");\n return;\n }\n switch(mode){\n default:\n Log.w(TAG,\"unknown training mode! \"+mode);\n return;\n case modeClassicID:\n if(modeStorage[modeClassicID] == null) {\n modeStorage[modeClassicID] = new TrainerClassicFragment();\n }\n cTrainingFragment = modeStorage[modeClassicID];\n break;\n case modeQuickID:\n if(modeStorage[modeQuickID] == null) {\n modeStorage[modeQuickID] = new TrainerQuickFragment();\n }\n cTrainingFragment = modeStorage[modeQuickID];\n break;\n case modeClassicMMID:\n if(modeStorage[modeClassicMMID] == null) {\n modeStorage[modeClassicMMID] = new TrainerClassicMMFragment();\n }\n cTrainingFragment = modeStorage[modeClassicMMID];\n break;\n }\n setFragment(cTrainingFragment);\n trainingMode = mode;\n }", "title": "" }, { "docid": "6aebf7f5aba3e6140e775a69f563cad3", "score": "0.3978264", "text": "public synchronized boolean matchLockType(Permissions perm){\n if (lockType == null){\n return false;\n }\n\n if (lockType == Permissions.READ_WRITE && perm!=null){\n return true;\n } else if (lockType == Permissions.READ_ONLY){\n return perm==Permissions.READ_ONLY;\n }\n return false;\n }", "title": "" }, { "docid": "f0ec8778880fafb39a8699b84f1c0eea", "score": "0.39761454", "text": "public MODE getMode();", "title": "" }, { "docid": "c605600e2603bdb0f23794ca13736585", "score": "0.39723417", "text": "boolean acquireOrProlong(LockRequest lockRequest);", "title": "" } ]
e746fdb3bb5448645fc7dc791d205e9e
string assetId = 3;
[ { "docid": "e4506c6e13aee963ee37766a744ca4d8", "score": "0.76345587", "text": "java.lang.String getAssetId();", "title": "" } ]
[ { "docid": "3acddb994fac95d24b09c4b43c4ce028", "score": "0.68735754", "text": "public String getAssetNumber () { return assetNumber; }", "title": "" }, { "docid": "7f605b25279763a23cca2f2511fea172", "score": "0.6860211", "text": "public java.lang.String getAssetId() {\n java.lang.Object ref = assetId_;\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 assetId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "7f605b25279763a23cca2f2511fea172", "score": "0.68594116", "text": "public java.lang.String getAssetId() {\n java.lang.Object ref = assetId_;\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 assetId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "c02bc628dcec0db9ec845ce1ab8aa2e6", "score": "0.68219465", "text": "public java.lang.String getAssetId() {\n java.lang.Object ref = assetId_;\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 assetId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "c02bc628dcec0db9ec845ce1ab8aa2e6", "score": "0.68219465", "text": "public java.lang.String getAssetId() {\n java.lang.Object ref = assetId_;\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 assetId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "bb9499fe96b0b6a1f541a1faad559eca", "score": "0.68110454", "text": "public String getAssetId() {\n return this.assetId;\n }", "title": "" }, { "docid": "bb9499fe96b0b6a1f541a1faad559eca", "score": "0.68110454", "text": "public String getAssetId() {\n return this.assetId;\n }", "title": "" }, { "docid": "f29172e112fd3a725162e60ed5dee8d0", "score": "0.66006273", "text": "public int getAssetID() {\n return this.assetID;\n }", "title": "" }, { "docid": "1e4eb65cf7a5b5b2ecc213a31379033b", "score": "0.64387727", "text": "public Builder setAssetId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n assetId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1e4eb65cf7a5b5b2ecc213a31379033b", "score": "0.6438231", "text": "public Builder setAssetId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n assetId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a44c4f4af8bf3d1976b29d816fa5e6e8", "score": "0.6415627", "text": "public com.google.protobuf.ByteString\n getAssetIdBytes() {\n java.lang.Object ref = assetId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n assetId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a44c4f4af8bf3d1976b29d816fa5e6e8", "score": "0.6415627", "text": "public com.google.protobuf.ByteString\n getAssetIdBytes() {\n java.lang.Object ref = assetId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n assetId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "876da830f307b4fa4319f1d1969c31dc", "score": "0.63327116", "text": "public com.google.protobuf.ByteString\n getAssetIdBytes() {\n java.lang.Object ref = assetId_;\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 assetId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "876da830f307b4fa4319f1d1969c31dc", "score": "0.63327116", "text": "public com.google.protobuf.ByteString\n getAssetIdBytes() {\n java.lang.Object ref = assetId_;\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 assetId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "bf8e7cfdd532c3607d77fd2ab6535469", "score": "0.6302911", "text": "com.google.protobuf.ByteString\n getAssetIdBytes();", "title": "" }, { "docid": "bf8e7cfdd532c3607d77fd2ab6535469", "score": "0.6302911", "text": "com.google.protobuf.ByteString\n getAssetIdBytes();", "title": "" }, { "docid": "b8a95bf54ee6dbb97a9bd6ffd4b98e05", "score": "0.61444366", "text": "public void setAssetID(int assetID) {\n this.assetID = assetID;\n }", "title": "" }, { "docid": "2441e55db949ec403d43296ef8c51bb0", "score": "0.6124643", "text": "int getAssetEventIdValue();", "title": "" }, { "docid": "651c7ec34278b05ae92840faca50c219", "score": "0.60779667", "text": "public java.lang.String getAssetNo() {\r\n return assetNo;\r\n }", "title": "" }, { "docid": "902c19788a94c53e25a68cf2d2624a0a", "score": "0.6070882", "text": "public void setAssetId(String assetId) {\n this.assetId = assetId;\n }", "title": "" }, { "docid": "902c19788a94c53e25a68cf2d2624a0a", "score": "0.6070882", "text": "public void setAssetId(String assetId) {\n this.assetId = assetId;\n }", "title": "" }, { "docid": "b1d162fd6012ba1ae4446d7b20848568", "score": "0.5881174", "text": "Set<Integer> assetSet(String asset);", "title": "" }, { "docid": "23a60aee12cb9392c9d5461ceab0e307", "score": "0.5780428", "text": "public void setAssetNo(java.lang.String assetNo) {\r\n this.assetNo = assetNo;\r\n }", "title": "" }, { "docid": "bc9b687db26607eb08ae6dbd8883e9b0", "score": "0.57671285", "text": "public void setAssetKey(final String assetKey);", "title": "" }, { "docid": "779928ae531e5407665eeac461df3251", "score": "0.57385164", "text": "@JsonProperty(\"assetKey\")\n public String getAssetKey();", "title": "" }, { "docid": "9b44e44aaeeff54df9e3ebf07cc18951", "score": "0.57166433", "text": "public String getAssetName() {\n return this.assetName;\n }", "title": "" }, { "docid": "9b44e44aaeeff54df9e3ebf07cc18951", "score": "0.57166433", "text": "public String getAssetName() {\n return this.assetName;\n }", "title": "" }, { "docid": "f0ec145dd692f649ffe192c1da6db0a1", "score": "0.571462", "text": "public String getIdentifier() {\n return (String) \"563\";\n }", "title": "" }, { "docid": "3ef09e70d4e095c899a0d4149f9e3299", "score": "0.56921864", "text": "public long getAssetsId() {\n\t\treturn assetsId;\n\t}", "title": "" }, { "docid": "a8d6ac01842ae14aff448d974451ffa0", "score": "0.56630665", "text": "String getSbj_id();", "title": "" }, { "docid": "a9c6e91d625da3a8ab425319bb7e9806", "score": "0.5627736", "text": "String idString ();", "title": "" }, { "docid": "69ecc0c97710011ef3c8d81492abdaca", "score": "0.56069565", "text": "IAsset getAsset(UUID assetId) throws SiteWhereException;", "title": "" }, { "docid": "2df9eddc0cf3555661172b279af6c4fa", "score": "0.56005824", "text": "String resourceId();", "title": "" }, { "docid": "46759fb955e762a4da40fca72216263d", "score": "0.56000006", "text": "@Override\n\tpublic String getPrimaryKey() {\n\t\treturn getAssetId();\n\t}", "title": "" }, { "docid": "def09b07d526904cdcd7d235dff98398", "score": "0.557569", "text": "String getBcId();", "title": "" }, { "docid": "6beac393612970f0df6c59c96fadd1c1", "score": "0.5543628", "text": "BigInteger makeIdentifier(TextureMap map);", "title": "" }, { "docid": "45d51fda6f764c6feca6398d66cad378", "score": "0.5498026", "text": "java.lang.String getExternalId();", "title": "" }, { "docid": "e1c135bb79ba1f8948faadd5514a3a6e", "score": "0.54723096", "text": "int getStaticDataId();", "title": "" }, { "docid": "c99de911741f3930ffd982535f77ad3d", "score": "0.5462998", "text": "long getSteamid();", "title": "" }, { "docid": "c99de911741f3930ffd982535f77ad3d", "score": "0.5462998", "text": "long getSteamid();", "title": "" }, { "docid": "c99de911741f3930ffd982535f77ad3d", "score": "0.5462998", "text": "long getSteamid();", "title": "" }, { "docid": "c99de911741f3930ffd982535f77ad3d", "score": "0.5462998", "text": "long getSteamid();", "title": "" }, { "docid": "c99de911741f3930ffd982535f77ad3d", "score": "0.5462998", "text": "long getSteamid();", "title": "" }, { "docid": "c99de911741f3930ffd982535f77ad3d", "score": "0.5462998", "text": "long getSteamid();", "title": "" }, { "docid": "c99de911741f3930ffd982535f77ad3d", "score": "0.5462998", "text": "long getSteamid();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.5440859", "text": "String getId();", "title": "" }, { "docid": "d48fcf463f41c26688d28615f61f236c", "score": "0.5434528", "text": "public String getAssetType() {\n return assetType;\n }", "title": "" }, { "docid": "6bbeb5b21ae325e358e707a1179c7618", "score": "0.543045", "text": "Asset findById(Long id);", "title": "" }, { "docid": "d223d0aeeeed0cd4c5a6c0a07f49b5cf", "score": "0.54218906", "text": "private int searchSoundID(int num) {\n Field[] fields = R.raw.class.getFields();\n for (int count = 0; count < fields.length; count++) {\n Log.i(\"Raw Asset: \", fields[count].getName());\n if (fields[count].getName().endsWith(String.valueOf(num))) {\n return getResources().getIdentifier(fields[count].getName(),\n \"raw\", getPackageName());\n }\n }\n return 0;\n }", "title": "" }, { "docid": "06f8614a0f8570a7e8cb7a4df57af205", "score": "0.53871834", "text": "Id(String string) {\n this.string = string;\n }", "title": "" }, { "docid": "a011fbd20e9a9a67955cfcf6acd04b4e", "score": "0.5383562", "text": "private String getId(String name) {\n switch (name) {\n case \"ironman\":\n return \"1009368\";\n case \"capamerica\":\n return \"1009220\";\n }\n throw new AlboExamException(\"Parametros incorrectos\", 400);\n }", "title": "" }, { "docid": "7ac9d47c5ef796452164357659b8e154", "score": "0.5377436", "text": "String identifier();", "title": "" }, { "docid": "4b26557c1d5fc8d9370121f3042ad453", "score": "0.53704333", "text": "public Builder setAssetIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n assetId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4b26557c1d5fc8d9370121f3042ad453", "score": "0.53693527", "text": "public Builder setAssetIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n assetId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e8d0e4d7a48ee53e6fd120e2352c5321", "score": "0.53551227", "text": "int id(int v) {\n return componentId[v];\n }", "title": "" }, { "docid": "6610c60271b742fd7b8958dad751e99f", "score": "0.53162205", "text": "String getIdNo();", "title": "" }, { "docid": "9209757af77cbe170b1c1d9507af78b5", "score": "0.5314388", "text": "String getIdentifier();", "title": "" }, { "docid": "9209757af77cbe170b1c1d9507af78b5", "score": "0.5314388", "text": "String getIdentifier();", "title": "" }, { "docid": "9209757af77cbe170b1c1d9507af78b5", "score": "0.5314388", "text": "String getIdentifier();", "title": "" }, { "docid": "9209757af77cbe170b1c1d9507af78b5", "score": "0.5314388", "text": "String getIdentifier();", "title": "" }, { "docid": "9209757af77cbe170b1c1d9507af78b5", "score": "0.5314388", "text": "String getIdentifier();", "title": "" } ]
4ab9e32f90a6cf2d4fb107f4d89e81f9
Tests that the history size can be updated, both through the config framework and the setMaxSize method.
[ { "docid": "00cbac362686db43189b34f7f36c57b5", "score": "0.8564202", "text": "public void testLiveUpdateOfHistoryMaxSize() {\n\n int maxLength = 20;\n DrJava.getConfig().setSetting(HISTORY_MAX_SIZE, new Integer(20));\n \n Utilities.clearEventQueue();\n\n for (int i = 0; i < maxLength; i++) {\n _history.add(\"testing \" + i);\n }\n\n assertEquals(\"History size should be 20\", 20, _history.size());\n\n DrJava.getConfig().setSetting(HISTORY_MAX_SIZE, new Integer(10));\n \n Utilities.clearEventQueue();\n assertEquals(\"History size should be 10\", 10, _history.size());\n _history.setMaxSize(100);\n\n assertEquals(\"History size should still be 10\", 10, _history.size());\n\n _history.setMaxSize(0);\n assertEquals(\"History size should be 0\", 0, _history.size());\n\n DrJava.getConfig().setSetting(HISTORY_MAX_SIZE, new Integer(-1));\n\n Utilities.clearEventQueue();\n assertEquals(\"History size should still be 0\", 0, _history.size());\n }", "title": "" } ]
[ { "docid": "2743c43720cf4a2f6679efc5e1fff88b", "score": "0.7311534", "text": "public void testHistoryIsBounded() {\n\n int maxLength = 500;\n DrJava.getConfig().setSetting(HISTORY_MAX_SIZE, new Integer(maxLength));\n\n int i;\n for (i = 0; i < maxLength + 100; i++) {\n _history.add(\"testing \" + i);\n }\n for (; _history.hasPrevious(); i--) {\n _history.movePrevious(\"testing \" + i);\n }\n\n assertEquals(\"History length is not bound to \" + maxLength, maxLength, _history.size());\n assertEquals(\"History elements are not removed in FILO order\", \"testing 100\", _history.getCurrent());\n }", "title": "" }, { "docid": "48647f6a5fd2d769d494ab8439990b4b", "score": "0.6336757", "text": "public boolean isSetHistoryLimit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(HISTORYLIMIT$10) != 0;\n }\n }", "title": "" }, { "docid": "d20975af526083fdd8640559b520ac98", "score": "0.60343784", "text": "protected void setMaxHistoryEntries(final String maxHistoryEntries) {\n this.maxHistoryEntries = maxHistoryEntries;\n }", "title": "" }, { "docid": "93edb6b71c21bc81a237ea48b759ca20", "score": "0.5928218", "text": "public void setMaxSize(long maxSize) {\r\n this.maxSize = maxSize;\r\n }", "title": "" }, { "docid": "d5656f6bcd57746ca9096f36c52088b9", "score": "0.58068377", "text": "public void setMaxSize(Integer maxSize) {\n this.maxSize = maxSize;\n }", "title": "" }, { "docid": "5cb923978bb75dcb449367b67267a73f", "score": "0.57714933", "text": "boolean canIncreaseSize(int size);", "title": "" }, { "docid": "45254b0410ebe11abe6d493d4c9af33a", "score": "0.57479435", "text": "private void checkCapacity() {\n int oldCapacity = length();\n if(size >= oldCapacity){\n int newCapacity = oldCapacity + 10;\n array = Arrays.copyOf(array, newCapacity);\n }\n }", "title": "" }, { "docid": "e43aca22f7051f4630b1759f2c408110", "score": "0.57095236", "text": "@Test\n public void testSetRecordSizeLimit() {\n assertNull(delegate.getRecordSizeLimit());\n delegate.setRecordSizeLimit(1337);\n assertEquals(1337, (int) delegate.getRecordSizeLimit());\n }", "title": "" }, { "docid": "952c4043de3532e8179f1ba6226a5a54", "score": "0.5691324", "text": "public void setHistoryLimit(long historyLimit)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HISTORYLIMIT$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HISTORYLIMIT$10);\n }\n target.setLongValue(historyLimit);\n }\n }", "title": "" }, { "docid": "41828b0ab7ba941b572040ffb5553091", "score": "0.56734407", "text": "public void setMaxSize(int maxSize) {\r\n\t\tthis.maxSize = maxSize;\r\n\t}", "title": "" }, { "docid": "41828b0ab7ba941b572040ffb5553091", "score": "0.56734407", "text": "public void setMaxSize(int maxSize) {\r\n\t\tthis.maxSize = maxSize;\r\n\t}", "title": "" }, { "docid": "135e0d19fc9ab7234fcf3ecec4696a62", "score": "0.563387", "text": "int maxSize() {\n return maxSize;\n }", "title": "" }, { "docid": "729e206f6faf52e740ba8eeec3fea08c", "score": "0.5585608", "text": "private void setMaxQueueHistoryNs(long value) {\n this.bitField0_ |= 2;\n this.maxQueueHistoryNs_ = value;\n }", "title": "" }, { "docid": "87345e83b41687b6a40d6668f670e9e8", "score": "0.5552156", "text": "public int maxSize() { return theSize; }", "title": "" }, { "docid": "af056ac0ee3075068db7ca5d4dd6d031", "score": "0.55458635", "text": "public void testSize()\n {\n testCache.push(\"string1\", \"1\");\n testCache.push(\"string2\", \"2\");\n testCache.push(\"string3\", \"3\");\n testCache.pop();\n\n Assert.assertEquals(testCache.size(), 2);\n }", "title": "" }, { "docid": "dad6e601f165de61fc22b07ea7aa306f", "score": "0.5524985", "text": "void addRecentHistoryChangeListener(RecentMemoryUsageHistoryListener listener);", "title": "" }, { "docid": "5deac291393d7f7afcadd94c443d85b2", "score": "0.5496035", "text": "private static void checkHistoryMenu() {\n\t\tSystem.out.println(\"Please enter the amount of history you would like to see\");\n\t\tint historyAmount = (int) userInput.getUserDouble(\"view\"); \n\t\tsqlProcedures.checkHistory(historyAmount);\n\t}", "title": "" }, { "docid": "2ad7ad9a5d7f2c66cfe2b9e863ac45e8", "score": "0.548037", "text": "protected abstract void sizeCheck();", "title": "" }, { "docid": "205204afd2d694625b96dd3c42b21145", "score": "0.5469361", "text": "public void setMaxFileStateSize(long size);", "title": "" }, { "docid": "aa9ddc5d51f5fe657dbaf1436c4b7c4b", "score": "0.545159", "text": "protected void truncateHistory(ContentResolver cr, int maxEntries) {\n/* 103 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "3b8915b99856b7159222c1fc7e3483d3", "score": "0.544841", "text": "public int getHistoryCount() {\n return history_.size();\n }", "title": "" }, { "docid": "bd4d03b18b571f1117966799a718900b", "score": "0.54265034", "text": "@Test\n public void normalLogRecSizeIsUsedByDefault() {\n assertEquals(ClientModeImpl.NUM_LOG_RECS_NORMAL, mCmi.getLogRecMaxSize());\n }", "title": "" }, { "docid": "be21e18f3fe33db975b3be9de9b87c4f", "score": "0.54253817", "text": "public int getCurrentSize();", "title": "" }, { "docid": "be21e18f3fe33db975b3be9de9b87c4f", "score": "0.54253817", "text": "public int getCurrentSize();", "title": "" }, { "docid": "204098ddc0d94b958b96295f00ddd04a", "score": "0.54122365", "text": "@ApiModelProperty(value = \"Specifies the number of previous passwords to store.\")\n public Integer getPasswordHistoryLength() {\n return passwordHistoryLength;\n }", "title": "" }, { "docid": "9b5e54ff11d8735e6f98b41dbb3d4f85", "score": "0.5398483", "text": "void setMaximumQueueSize(int size);", "title": "" }, { "docid": "a24f489883612f39ff64966941004b55", "score": "0.538905", "text": "private void cleanupHistoryPropertySet() {\r\n int max = getValue(limitProp, 0);\r\n if (max <= 0) setValue(limitProp, DEFAULT_LIMIT);\r\n String[] strings = historyProp.getHistoryData();\r\n historyList.clear();\r\n\r\n // remove the strings that cannot be decoded by the property editor\r\n if (strings != null && strings.length > 0) {\r\n ArrayUtils.add(historyList, strings);\r\n int n = Math.min(strings.length, max);\r\n Iterator i = historyList.iterator();\r\n while (i.hasNext()) {\r\n String s = (String)i.next();\r\n try { editor.setAsText(s); }\r\n catch (Exception x) { i.remove(); }\r\n }\r\n }\r\n\r\n // if history is empty, add current value to the history\r\n if (historyList.isEmpty()) {\r\n Object value = ps.getValue(propName);\r\n if (value != null) {\r\n if (filter == null || filter.accept(value)) {\r\n editor.setValue(value);\r\n historyList.add(editor.getAsText());\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "c2f24ef0c8547f6e150b3dca7b8c0f06", "score": "0.5385938", "text": "public void testEnsure_bugfix() {\n mList.ensureCapacity(931);\n assertTrue(mList.getMaxSize() >= 931);\n assertTrue(mList.getMaxSize() <= 931*3);\n }", "title": "" }, { "docid": "93f8711d783cb3780fd933113088d648", "score": "0.5384855", "text": "@Test\n void should_return_the_cache_size_correctly() {\n cache.put(KEY1, VALUE1);\n cache.put(KEY2, VALUE2);\n assertThat(cache.getSize(), is(equalTo(2)));\n }", "title": "" }, { "docid": "f0d00d71bd97866823039c5373a70d07", "score": "0.5378181", "text": "public static void setRecentSize(int max) {\n max = Math.min(max, 12);\n recentFilesSize = Math.max(max, 0);\n while (recentFiles.size() > recentFilesSize) {\n recentFiles.remove(recentFiles.size() - 1);\n }\n }", "title": "" }, { "docid": "ba951b7abb3964123d1be3b97140ec61", "score": "0.53761685", "text": "public void xsetHistoryLimit(org.apache.xmlbeans.XmlLong historyLimit)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlLong target = null;\n target = (org.apache.xmlbeans.XmlLong)get_store().find_element_user(HISTORYLIMIT$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlLong)get_store().add_element_user(HISTORYLIMIT$10);\n }\n target.set(historyLimit);\n }\n }", "title": "" }, { "docid": "f26292e1a1659b597e488e8b6b7c2f4e", "score": "0.53735256", "text": "public int getHistoryCount() {\n return historyCount;\n }", "title": "" }, { "docid": "4e03f1a6ac29ae6d2cd8eac1894ba525", "score": "0.53614384", "text": "public void GetSizeMax() { throw new UnsupportedOperationException(); }", "title": "" }, { "docid": "d5e1be18d7ed449e4aef02b758b490f4", "score": "0.53573203", "text": "public synchronized boolean checkSize() {\n return clientHandlers.size() < numberOfPlayers;\n }", "title": "" }, { "docid": "9cf734f05f71446ba5aadec380d78f29", "score": "0.5343224", "text": "@org.junit.jupiter.api.Test\r\n void getCurrentSize() {\r\n String[] contents = {\"A\",\"B\", \"C\", \"D\", \"E\", \"F\"};\r\n BagInterface<String> currentSizeBag = new ResizableArrayBag<>(contents);\r\n assertEquals(contents.length, currentSizeBag.getCurrentSize());\r\n }", "title": "" }, { "docid": "0f725043091aacd1b58ae62e2dbcf172", "score": "0.5339627", "text": "@Test\n\t public final void dontCorrectSize() {\n\t\tnewTournamentPage = homePage.getNavigationPage().getTournamentListPage().openCreateTournamentPage();\n\t newTournament = TournamentTestObjects.getValidTournament();\n\t newTournament.setDescription(TournamentTestObjects.getInvalidSizeDescription());\n\t newTournamentPage.getData().setAllFields(newTournament);\n\t specification.For(\n\t \t\tnewTournamentPage.getData().getErrorMessageLabelDescription())\n\t \t\t.valueMatch(TestsConstants.VALIDATION_ERROR_TEXT_WRONG__DESCRIPTION_SIZE).next();\n\t newTournamentPage.unsuccessfulPressSave();\n\t specification.For(repository).numberOfTournamentsHasNotChanged(tournamentInDB).next();\n\t specification.check();\n\t }", "title": "" }, { "docid": "17d39b29079794ce3d5ded0950c57454", "score": "0.53293175", "text": "public long getMaxFileStateSize();", "title": "" }, { "docid": "d1f80e877889884d16267fe20003d80e", "score": "0.53231657", "text": "public void testSize() {\n\t\tassertEquals(0, empty.size());\n\t\tassertEquals(1, one.size());\n\t\tassertEquals(N, manyFront.size());\n\t\tassertEquals(N, manyBack.size());\n\t}", "title": "" }, { "docid": "5fea5eadcfef0bf6e0312d3617fdf193", "score": "0.5317498", "text": "default Size maxAvailableSize(){\n return maxSize;\n }", "title": "" }, { "docid": "66afab70b90d38b492eb0f5a4c463df8", "score": "0.5316304", "text": "long getMaxSize();", "title": "" }, { "docid": "da343d5cc09d5ad57fff9813c37d7e90", "score": "0.5305874", "text": "public static int limitHistorySize(Context context, int maxNumber) {\n Utils.logd(TAG, \"-->limitHistorySize(), maxNumber=\" + maxNumber);\n\n int deletedNum = context.getContentResolver().delete(TagContract.TAGS_CONTENT_URI,\n Utils.HISTORY_LIMITATION_FLAG, new String[] {\n (String.valueOf(maxNumber))\n });\n\n Utils.logd(TAG, \"<--limitHistorySize(), deleted record number=\" + deletedNum);\n return deletedNum;\n }", "title": "" }, { "docid": "e9d30082f62fde5e25f899c315d7e948", "score": "0.5297188", "text": "@Test\n public void testCheckpointHistoryRemovingByTruncate() throws Exception {\n Ignite ignite = startGrid(dbCfg -> dbCfg.setMaxWalArchiveSize(2 * 1024 * 1024));\n\n GridCacheDatabaseSharedManager dbMgr = gridDatabase(ignite);\n\n IgniteCache<Integer, Object> cache = ignite.getOrCreateCache(cacheConfiguration());\n\n CheckpointHistory hist = dbMgr.checkpointHistory();\n assertNotNull(hist);\n\n int startHistSize = hist.checkpoints().size();\n\n int checkpointCnt = 10;\n\n for (int i = 0; i < checkpointCnt; i++) {\n cache.put(i, i);\n //and: wait for checkpoint finished\n forceCheckpoint();\n // Check that the history is growing.\n assertEquals(startHistSize + (i + 1), hist.checkpoints().size());\n }\n\n // Ensure rollover and wal archive cleaning.\n for (int i = 0; i < 6; i++)\n cache.put(i, new byte[ignite.configuration().getDataStorageConfiguration().getWalSegmentSize() / 2]);\n\n FileWriteAheadLogManager wal = wal(ignite);\n assertTrue(waitForCondition(() -> wal.lastTruncatedSegment() >= 0, 10_000));\n\n assertTrue(hist.checkpoints().size() < checkpointCnt + startHistSize);\n\n File[] cpFiles = dbMgr.checkpointDirectory().listFiles();\n\n assertTrue(cpFiles.length <= (checkpointCnt * 2 + 1)); // starts & ends + node_start\n }", "title": "" }, { "docid": "7131a35f8a9f51d51df05fcc649b2199", "score": "0.52970254", "text": "public void setMaxSize(int maxSize) {\n\t\tif (maxSize<=0) {\n\t\t\tthrow new IllegalArgumentException(\"Maximum size must be >= 0\");\n\t\t}\n\t\tthis.maxSize = maxSize;\n\t\ttrim();\n\t}", "title": "" }, { "docid": "00cf3bb81af5cb25fc93ddfdef7e19da", "score": "0.52912635", "text": "private void sendResizeEventIfNecessary() {\n DisplayMetrics metrics = LOKitShell.getDisplayMetrics();\n IntSize newScreenSize = new IntSize(metrics.widthPixels, metrics.heightPixels);\n\n if (mScreenSize.equals(newScreenSize)) {\n return;\n }\n\n mScreenSize = newScreenSize;\n\n LOKitShell.sendSizeChangedEvent(mScreenSize.width, mScreenSize.height);\n }", "title": "" }, { "docid": "b116332e2d83bc8e3873b69fbef49c19", "score": "0.5285532", "text": "long getCommittedSize();", "title": "" }, { "docid": "2ef78078e1ad8ad35c7e6f85a12e1750", "score": "0.528256", "text": "int maxSize();", "title": "" }, { "docid": "09b319da03c6022c1665136ba0556866", "score": "0.52760106", "text": "public void setSizeOfLogQueue(int size) {\n rms.setGauge(sizeOfLogQueKey, size);\n rms.incGauge(SOURCE_SIZE_OF_LOG_QUEUE, size - lastQueueSize);\n lastQueueSize = size;\n }", "title": "" }, { "docid": "3d2b101ff94187d79b5397fe8e8d463e", "score": "0.52627474", "text": "@Test\n @WithSystemProperty(key = IGNITE_PDS_MAX_CHECKPOINT_MEMORY_HISTORY_SIZE, value = \"2\")\n public void testCorrectDeletedCheckpointHistoryButKeepWalFiles() throws Exception {\n //given: configured grid with disabled WAL removing.\n Ignite ignite = startGrid(dbCfg -> dbCfg.setMaxWalArchiveSize(DataStorageConfiguration.UNLIMITED_WAL_ARCHIVE));\n\n GridCacheDatabaseSharedManager dbMgr = gridDatabase(ignite);\n\n CheckpointHistory hist = dbMgr.checkpointHistory();\n assertNotNull(hist);\n\n IgniteCache<Integer, Object> cache = ignite.getOrCreateCache(cacheConfiguration());\n\n //when: put to cache\n for (int i = 0; i < 500; i++) {\n cache.put(i, i);\n\n if (i % 10 == 0)\n forceCheckpoint();\n }\n\n forceCheckpoint();\n\n //then: WAL files was not deleted but some of checkpoint history was deleted.\n FileWriteAheadLogManager wal = wal(ignite);\n assertNull(getFieldValueHierarchy(wal, \"cleaner\"));\n\n FileDescriptor[] files = wal.walArchiveFiles();\n\n assertTrue(Stream.of(files).anyMatch(desc -> desc.file().getName().endsWith(\"0001.wal\")));\n\n assertTrue(hist.checkpoints().size() == 2);\n }", "title": "" }, { "docid": "ef59206f627d099fc45c57ab07f282c5", "score": "0.52569103", "text": "@Override\r\n\tpublic void setBufferSize(int size) {\n\r\n\t}", "title": "" }, { "docid": "e2ad6cc0533e9568f80dda8c876e6cf0", "score": "0.52496094", "text": "public boolean isSetSize()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(SIZE$102) != null;\r\n }\r\n }", "title": "" }, { "docid": "67c18adf32832d07efc76fbfb2db0dbc", "score": "0.5242555", "text": "@Test\n public void enablingVerboseLoggingUpdatesLogRecSize() {\n mCmi.enableVerboseLogging(1);\n assertEquals(LOG_REC_LIMIT_IN_VERBOSE_MODE, mCmi.getLogRecMaxSize());\n }", "title": "" }, { "docid": "b7ed7a30fbff5ea7f44c18f04190609a", "score": "0.5235794", "text": "@Override\r\n\tprotected void handleSizeChanged()\r\n\t{\n\t}", "title": "" }, { "docid": "8e2674b835febed6f2cdacaabacf3917", "score": "0.52174884", "text": "private void refreshHistory() {\n\t\t\n\t}", "title": "" }, { "docid": "5c915616dc2d5778dc5049696691069f", "score": "0.52123535", "text": "public interface RecentMemoryUsageHistory extends MemoryUsageListener {\r\n\r\n\t/**\r\n\t * Get the recent memory usage event history.\r\n\t * \r\n\t * @return the recent memory usage event history\r\n\t */\r\n\tRecentHistory<MemoryUsageEvent> getEvents();\r\n\r\n\t/**\r\n\t * Add the recent history change listener.\r\n\t * \r\n\t * @param listener the listener\r\n\t */\r\n\tvoid addRecentHistoryChangeListener(RecentMemoryUsageHistoryListener listener);\r\n\r\n\t/**\r\n\t * Remove the recent history change listener.\r\n\t * \r\n\t * @param listener the listener\r\n\t */\r\n\tvoid removeRecentHistoryChangeListener(RecentMemoryUsageHistoryListener listener);\r\n\r\n\t/**\r\n\t * Notify all listeners when the recent events are changed.\r\n\t */\r\n\tvoid notifyRecentHistoryChangeListeners();\r\n}", "title": "" }, { "docid": "91418013953223e803de5646d94decf5", "score": "0.5205164", "text": "public long getHistoryLimit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HISTORYLIMIT$10, 0);\n if (target == null)\n {\n return 0L;\n }\n return target.getLongValue();\n }\n }", "title": "" }, { "docid": "04080c081be5aa151c40b2891dfeb259", "score": "0.5201957", "text": "boolean isUseHistory();", "title": "" }, { "docid": "3db23755a2d59398d59f703c379c20ef", "score": "0.5199874", "text": "@Test\n public void testDoGet_XMLSizeLimitTest_verifyMBeanSize()\n {\n _attributeList.add(new Attribute(\"serverInfo\", _constantString));\n\n try\n {\n _MBeanstore\n .setAttributes(new ObjectName(mbeanName), _attributeList);\n } catch (Exception e)\n {\n assertUnexpectedException(e);\n }\n\n _response = new MockHttpServletResponse();\n try\n {\n _extender.doGet(_request, _response);\n String tmpResponse = _response.ostream.buf.toString();\n Assert.assertTrue(\"The size of XML response should equal to \"\n + (_numOf1K + _lenOfStructureBytes)\n + \" while the actual size of the mbean is \"\n + tmpResponse.length() + \".\",\n (_numOf1K + _lenOfStructureBytes) == tmpResponse.length());\n } catch (Exception e)\n {\n assertUnexpectedException(e);\n }\n }", "title": "" }, { "docid": "7d7409a30c212633b8bd50617a0d6eae", "score": "0.5195993", "text": "void setPlayerMaxSize(Long APlayerMaxSize);", "title": "" }, { "docid": "da547a239868c66c7016b339fd1ec606", "score": "0.5195904", "text": "public int getHistoryCount() {\n if (historyBuilder_ == null) {\n return history_.size();\n } else {\n return historyBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "fa8e5ae65f43e15085a0faeedbc32925", "score": "0.51947844", "text": "private boolean isResizeNeeded(){\n return size >= array.length * DEFAULT_LOAD_FACTOR;\n }", "title": "" }, { "docid": "93e6092a2b9605dd23243f49f523d517", "score": "0.5179074", "text": "public boolean hasHistory()\n {\n return history != null;\n }", "title": "" }, { "docid": "1eb6518684388c0b5acf4cb672f8f25d", "score": "0.5160365", "text": "private void purgeHistoryByQuantity(final File historyRoot, final int maxEntries) {\n // we are about to create a new history entry, so \n // subtract 1 from the maximum configured to save.\n final int entriesToLeave = maxEntries - 1;\n final File[] historyDirs = historyRoot.listFiles(HISTORY_FILTER);\n if (historyDirs != null && historyDirs.length >= entriesToLeave) {\n Arrays.sort(historyDirs, Collections.reverseOrder());\n for (int i = entriesToLeave; i < historyDirs.length; i++) {\n LOG.fine(\"purging old directory from history logs: \" + historyDirs[i]);\n for (File file : historyDirs[i].listFiles()) {\n if (!file.delete()) {\n LOG.warning(\"problem deleting history file: \" + file);\n }\n }\n if (!historyDirs[i].delete()) {\n LOG.warning(\"problem deleting history directory: \" + historyDirs[i]);\n }\n }\n }\n }", "title": "" }, { "docid": "d321dd20a5cafe2aac13af6c15e2b2a5", "score": "0.51447994", "text": "private void checkCapacity() {\n\n }", "title": "" }, { "docid": "63c2310b67b1d413d9077fad5ff73418", "score": "0.5127208", "text": "protected int sizeOfListOfChanges() {\n\t\t \n\t\t // bound on number of (\"single step\") local moves\n\t\t return BANJO.CHANGETYPE_COUNT * varCount * varCount;\n\t\t}", "title": "" }, { "docid": "63c2310b67b1d413d9077fad5ff73418", "score": "0.5127208", "text": "protected int sizeOfListOfChanges() {\n\t\t \n\t\t // bound on number of (\"single step\") local moves\n\t\t return BANJO.CHANGETYPE_COUNT * varCount * varCount;\n\t\t}", "title": "" }, { "docid": "1f467b0179be1ea0b151ee24b8d89008", "score": "0.5110305", "text": "@Test\n\tpublic void testRecentNonEditable() {\n\t\tassertTrue(History.push(CommandType.SHOW, \"all\"));\n\t\tassertEquals(null, History.undo());\t\t// No recent non-editable will be processed\n\t\t\n\t}", "title": "" }, { "docid": "bf0346ab8c1d20582e97fb0624eba287", "score": "0.51064306", "text": "@Test\n public void testDoGet_XMLSizeLimitTest_4Mminus1()\n {\n for (int i = 0; i < _numOfMultiple; i++)\n {\n _propertyValueStrBuffer.append(_constantString);\n }\n _propertyValueStrBuffer.append(_constantString.substring(0, _numOf1K\n - _lenOfStructureBytes - 1));\n\n _attributeList.add(new Attribute(\"serverInfo\", _propertyValueStrBuffer\n .toString()));\n\n try\n {\n _MBeanstore\n .setAttributes(new ObjectName(mbeanName), _attributeList);\n } catch (Exception e)\n {\n assertUnexpectedException(e);\n }\n\n _response = new MockHttpServletResponse();\n try\n {\n _extender.doGet(_request, _response);\n String tmpResponse = _response.ostream.buf.toString();\n Assert\n .assertTrue(\n \"The size of XML response should equal to ABS_MAX_XML_SIZE - 1.\",\n (fourMegaBytes - 1) == tmpResponse.length());\n } catch (Exception e)\n {\n assertUnexpectedException(e);\n }\n }", "title": "" }, { "docid": "4c69dc586b3213da27e39d301c6aeda3", "score": "0.5102813", "text": "public void testCreateBuffer() {\n assertEquals(SIZE, new SortedKafkaMessageBuffer<>(SIZE).remainingCapacity());\n }", "title": "" }, { "docid": "c833c9dca705f88638dd8ddd563f2742", "score": "0.51022005", "text": "public int maxSize( ) \n\t{\n\t\treturn maxSize;\n\t}", "title": "" }, { "docid": "328e5eccefccff05b425845c2235d348", "score": "0.50961214", "text": "private boolean isSizeConsistent() {\n return isSizeConsistent(root);\n }", "title": "" }, { "docid": "ee8248b92aac86aa486ef2db8536725f", "score": "0.50945437", "text": "@Override\n\tpublic int getCurrentSize() {\n\t\treturn numberOfEntries;\n\t}", "title": "" }, { "docid": "b0884e3a0fa17795bf0bba0fd4a7c3c9", "score": "0.5089238", "text": "private void testGetSize(){\r\n assert(getSize()!=0);\r\n setField(0,\"Netherlands\");\r\n assert(getSize()==4);\r\n addField(0,\"Europe\");\r\n assert(getSize()==5);\r\n addField(5,\"Room 2\");\r\n assert(getSize()==6);\r\n removeField(3);\r\n assert(getSize()==5);\r\n }", "title": "" }, { "docid": "3d59c4718435a8df3c9368d3375e42f9", "score": "0.5088636", "text": "public boolean isFull()\n {\n return currentSize == maxSize;\n }", "title": "" }, { "docid": "ea45d2a795d2c15724944eb7e42d2f11", "score": "0.50867134", "text": "protected abstract boolean calculateSize();", "title": "" }, { "docid": "d77e1286de092da3a23e92a77905a413", "score": "0.507287", "text": "@Test\n public void assertArcherListIsCorrectSize()\n {\n assertEquals(\n this.archers.size(),\n this.nrOfArchers\n );\n }", "title": "" }, { "docid": "c4acc13ee61787a1746b5cd1e199dd60", "score": "0.50709236", "text": "@Test\n public void testCheckpointStarted_WhenWalHasTooBigSizeWithoutCheckpoint() throws Exception {\n //given: configured grid with max wal archive size = 1MB, wal segment size = 512KB\n Ignite ignite = startGrid(dbCfg -> dbCfg.setMaxWalArchiveSize(1024 * 1024));\n\n GridCacheDatabaseSharedManager dbMgr = gridDatabase(ignite);\n\n IgniteCache<Integer, Object> cache = ignite.getOrCreateCache(cacheConfiguration());\n\n for (int i = 0; i < 500; i++)\n cache.put(i, i);\n\n //then: checkpoint triggered by size limit of wall without checkpoint\n Checkpointer checkpointer = dbMgr.getCheckpointer();\n\n String checkpointReason = U.field((Object)U.field(checkpointer, \"curCpProgress\"), \"reason\");\n\n assertEquals(\"too big size of WAL without checkpoint\", checkpointReason);\n }", "title": "" }, { "docid": "b11e3b80c04894b843b0678e31a131e7", "score": "0.50707096", "text": "@Test\n public void testCapacityAndCutBackCount() {\n for (int cutBackCount = 0; cutBackCount < capacity; cutBackCount++) {\n testBuffer.setCutBackCount(cutBackCount);\n // Add one more message than the buffer can hold.\n for (int i = 0; i < (capacity + 1); i++) {\n testBuffer.createMessage(\"message text\", Message.Type.INFO);\n }\n // The number of messages should now be equal to the buffer's capacity.\n assertEquals(cutBackCount, testBuffer.getMessageCount());\n testBuffer.clear();\n }\n }", "title": "" }, { "docid": "5e35c4f11cc72621b783005221f4c367", "score": "0.50693685", "text": "@Override\r\n\tpublic int getMaxBufferSize() {\r\n\t return this.maxBufferSize;\r\n\t}", "title": "" }, { "docid": "d3392eed47ae7c5bf8a5f8868694b362", "score": "0.5067894", "text": "@Test\n public void testDoGet_XMLSizeLimitTest_Exactly_4M()\n {\n\n for (int i = 0; i < _numOfMultiple; i++)\n {\n _propertyValueStrBuffer.append(_constantString);\n }\n _propertyValueStrBuffer.append(_constantString.substring(0, _numOf1K\n - _lenOfStructureBytes));\n\n _attributeList.add(new Attribute(\"serverInfo\", _propertyValueStrBuffer\n .toString()));\n\n try\n {\n _MBeanstore\n .setAttributes(new ObjectName(mbeanName), _attributeList);\n } catch (Exception e)\n {\n assertUnexpectedException(e);\n }\n\n _response = new MockHttpServletResponse();\n try\n {\n _extender.doGet(_request, _response);\n String tmpResponse = _response.ostream.buf.toString();\n Assert\n .assertTrue(\n \"The size of XML response should equal to ABS_MAX_XML_SIZE.\",\n fourMegaBytes == tmpResponse.length());\n } catch (Exception e)\n {\n assertUnexpectedException(e);\n }\n }", "title": "" }, { "docid": "48848258485dc7fafd4b309eac085bcc", "score": "0.5067087", "text": "private StorageAndDatabaseSizeUpdater() {\r\n\t}", "title": "" }, { "docid": "f4e82359645d40de0b71f5d8b8ffabf6", "score": "0.5066721", "text": "boolean hasMaxBufferedTxBytes();", "title": "" }, { "docid": "3d97238f885d30208f81d4e5e4dc3401", "score": "0.5065426", "text": "public boolean hasCapacityFor(long size) throws IOException {\n\n return (size + LOG_OVERHEAD_SIZE) <= writableBytes();\n }", "title": "" }, { "docid": "b61d2e85158748f02e3d1a812e21dd7f", "score": "0.5061388", "text": "private boolean checkStorageCapacity(long capacityOverride)\n\t{\n\t\tlong currDocsInDB = 0;\n\t\ttry {\n\t\t\tcurrDocsInDB = DbManager.getDocument().getMetadata().count();\n\t\t} catch (Exception e ) {\n\t\t\t// If an exception occurs log the error\n\t\t\tlogger.error(\"Exception Message: \" + e.getMessage(), e);\n\t\t}\n\t\tlong storageCapacity = (-1L == capacityOverride) ? new PropertiesManager().getStorageCapacity() : capacityOverride;\n\t\treturn (currDocsInDB <= storageCapacity); \n\t}", "title": "" }, { "docid": "9b9206f32f938b3f7886146db784c49f", "score": "0.5060058", "text": "public void testSize() {\n System.out.println(\"size\");\n int expResult = 0;\n int result = pl.size();\n assertEquals(expResult, result);\n pl.add(test1);\n expResult = 1;\n result = pl.size();\n assertEquals(expResult, result);\n pl.add(test2);\n expResult = 2;\n result = pl.size();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "0780ca52b0bc85146686bbaaa0655456", "score": "0.50542307", "text": "long getMaxEntries() {\n return maxSize;\n }", "title": "" }, { "docid": "a54ac7de31670e46208c349635f2810a", "score": "0.50513905", "text": "public void setBufferSize(int size) {\n if (size <= 0 || size > _originalBufferSize)\n return;\n _nextBufferSize = size;\n }", "title": "" }, { "docid": "49296974946408f58f70e9f42afa5efd", "score": "0.5048731", "text": "public SynchLinkedMemoryCache(int maxSize)\r\n {\r\n super(maxSize);\r\n }", "title": "" }, { "docid": "564af2b6e1ca6fe9564272175519d0c6", "score": "0.5045003", "text": "public void testGetHistoryAsString() {\n DrJava.getConfig().setSetting(HISTORY_MAX_SIZE, new Integer(20));\n\n Utilities.clearEventQueue();\n assertEquals(\"testGetHistoryAsString:\", \"\", _history.getHistoryAsString());\n\n String newLine = System.getProperty(\"line.separator\");\n\n _history.add(\"some text\");\n assertEquals(\"testGetHistoryAsString:\", \"some text\" + newLine, _history.getHistoryAsString());\n\n _history.add(\"some more text\");\n _history.add(\"some text followed by a newline\" + newLine);\n String str = \n \"some text\" + newLine + \"some more text\" + newLine + \"some text followed by a newline\" + newLine + newLine;\n assertEquals(\"testGetHistoryAsString:\", str, _history.getHistoryAsString());\n }", "title": "" }, { "docid": "2e6573eded208437a360c51f3f19bd58", "score": "0.5044388", "text": "private static boolean isGivenPasswordCanBeStored(Delegator delegator, String password)\n throws GenericEntityException {\n ModelEntity modelEntityUserLoginHistory = delegator.getModelEntity(\"UserLoginHistory\");\n ModelField passwordUsedField = modelEntityUserLoginHistory.getField(\"passwordUsed\");\n int maxPasswordSize = delegator.getEntityFieldType(\n modelEntityUserLoginHistory,\n passwordUsedField.getType()).stringLength();\n int passwordUsedCurrentSize = password.length();\n\n // if the field is encrypted, we check the size of the hashed result\n ModelField.EncryptMethod encryptMethod = passwordUsedField.getEncryptMethod();\n if (encryptMethod.isEncrypted()) {\n passwordUsedCurrentSize = delegator.encryptFieldValue(\"UserLoginHistory\", encryptMethod, password).toString().length();\n }\n return passwordUsedCurrentSize > maxPasswordSize;\n }", "title": "" }, { "docid": "52531bddab1a6b403bbcfe4e7dae164d", "score": "0.50414914", "text": "@Test\n public void remainingCapacity() {\n Assert.assertEquals(ringbuffer.capacity(), ringbuffer.remainingCapacity());\n ringbuffer.add(\"first\");\n Assert.assertEquals(((ringbuffer.capacity()) - 1), ringbuffer.remainingCapacity());\n ringbuffer.add(\"second\");\n Assert.assertEquals(((ringbuffer.capacity()) - 2), ringbuffer.remainingCapacity());\n }", "title": "" }, { "docid": "420a4ec28e10f4ab86d3ed48d954255e", "score": "0.50327027", "text": "@Test\n public void currentOffsetLarger() {\n checkCurrentOffset(128);\n }", "title": "" }, { "docid": "cfa72dd84cdebf387d5ba9a45a21ed95", "score": "0.5029885", "text": "@Test\n public void testMessageCountValidity() {\n int cutBackCount = capacity / 2;\n testBuffer.setCutBackCount(cutBackCount);\n // Fill the buffer to its capacity.\n for (int i = 1; i <= capacity; i++) {\n testBuffer.createMessage(\"message text\", Message.Type.INFO);\n assertEquals(i, testBuffer.getMessageCount());\n List<Message> messages = testBuffer.getMessages();\n assertEquals(i, messages.size());\n }\n // Add one more message to exceed the capacity.\n testBuffer.createMessage(\"message text\", Message.Type.INFO);\n assertEquals(cutBackCount, testBuffer.getMessageCount());\n List<Message> messages = testBuffer.getMessages();\n assertEquals(cutBackCount, messages.size());\n }", "title": "" }, { "docid": "e8d96f032e2974b96ccc1b39be08c29f", "score": "0.50230205", "text": "public void unsetHistoryLimit()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(HISTORYLIMIT$10, 0);\n }\n }", "title": "" }, { "docid": "56ca2ad101081cce1fe9653fb0b3ce48", "score": "0.50150913", "text": "public int getSize () {\n return this.log.size();\n }", "title": "" }, { "docid": "d8b120cc44112bd94b4a3c72097810af", "score": "0.50086045", "text": "@VisibleForTesting\n boolean isDbSizeOverThreshold() {\n return getDbSize() > getDbSizeThreshold();\n }", "title": "" }, { "docid": "8a5c50db61ac9eb74e9f5c79fd131052", "score": "0.5007838", "text": "private void trim() {\n\t\twhile (history.size()>maxSize) {\n\t\t\thistory.remove(0);\n\t\t}\n\t}", "title": "" }, { "docid": "ade94ba901f5015830286ef86f8a55f9", "score": "0.5002258", "text": "@Test\n @SmallTest\n public void addSipDelegateStats_tooManyEntries() throws Exception {\n createEmptyTestFile();\n\n mPersistAtomsStorage = new TestablePersistAtomsStorage(mContext);\n\n // Try to add 11 stats where MAX is 10\n int max = 11;\n SipDelegateStats[] overMaxSipDelegateStats = new SipDelegateStats[max];\n for (int i = 0; i < max; i++) {\n overMaxSipDelegateStats[i] = copyOf(mSipDelegateStats1);\n mPersistAtomsStorage\n .addSipDelegateStats(overMaxSipDelegateStats[i]);\n mPersistAtomsStorage.incTimeMillis(100L);\n }\n mPersistAtomsStorage.addSipDelegateStats(mSipDelegateStats3);\n verifyCurrentStateSavedToFileOnce();\n\n SipDelegateStats[] outputs =\n mPersistAtomsStorage.getSipDelegateStats(0L);\n\n // The last added SipDelegate remains\n // and two old stats should be removed\n assertHasStats(outputs, overMaxSipDelegateStats, max - 2);\n assertHasStats(outputs, mSipDelegateStats3, 1);\n }", "title": "" }, { "docid": "c6a1b92cb47033b9903dff31169726e6", "score": "0.50021225", "text": "public int getMaxSize() {\n return maxSize;\n }", "title": "" }, { "docid": "10fc5c74eee001080da4574db43a1a43", "score": "0.5001931", "text": "@Test\n\tpublic void testSize() {\n\t\tassertEquals(\"Check size is correct \", 0, emptyList.size());\n\t\tassertEquals(\"Check size is correct \", 2, shortList.size());\n\t\tassertEquals(\"Check size is correct \", 3, list1.size());\n\t\tassertEquals(\"Check size is correct \", LONG_LIST_LENGTH, longerList.size());\n\t}", "title": "" }, { "docid": "5d5e86217d1e3066c048d887c359addc", "score": "0.49902946", "text": "@java.lang.Override\n public long getNewLimit() {\n return newLimit_;\n }", "title": "" } ]
9f23d9c628294b32d6d525b1bfa74ee7
B U S I N E S S M E T H O D S
[ { "docid": "288264b61d18e05a083e6785a9f589ef", "score": "0.0", "text": "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n\tpublic NotaCreditoIf procesarNotaCredito(NotaCreditoIf model,List<NotaCreditoDetalleIf> modelDetalleList,Long idEmpresa,Long idOficina) throws GenericBusinessException {\r\n\t\tNotaCreditoEJB notaCredito;\r\n\t\tVector<NotaCreditoDetalleIf> notaCreditoDetalleColeccion = new Vector<NotaCreditoDetalleIf>(); \r\n\t\tDecimalFormat formatoSerial = new DecimalFormat(\"00000\");\r\n\t\ttry {\r\n\t\t\tif ( verificarPreimpreso(model.getOperadorNegocioId(),model.getPreimpreso(),model.getAutorizacion(), model.getTipoCartera()) ){\r\n\t\t\t\tCollection<NotaCreditoIf> notasCredito = findNotaCreditoByPreimpreso(model.getPreimpreso());\r\n\t\t\t\tNotaCreditoIf notaCreditoTemp = notasCredito.iterator().next();\r\n\t\t\t\tthrow new GenericBusinessException(\"Preimpreso ya existe en nota de crédito con código \"+notaCreditoTemp.getCodigo()+\" !!\");\r\n\t\t\t}\r\n\r\n\t\t\tint codigoNotaCredito = getCodigoNotaCredito(model, idEmpresa);\r\n\t\t\tmodel.setCodigo(model.getCodigo() + formatoSerial.format(codigoNotaCredito));\r\n\t\t\tnotaCredito = registrarNotaCredito(model);\r\n\t\t\tmanager.persist(notaCredito);\r\n\r\n\t\t\tfor (NotaCreditoDetalleIf modelDetalle : modelDetalleList) {\t\t\t\t\r\n\t\t\t\tmodelDetalle.setNotaCreditoId(notaCredito.getPrimaryKey());\r\n\t\t\t\tNotaCreditoDetalleEJB notaCreditoDetalle = registrarNotaCreditoDetalle(modelDetalle);\r\n\t\t\t\tmanager.merge(notaCreditoDetalle);\r\n\t\t\t\tnotaCreditoDetalleColeccion.add(notaCreditoDetalle);\r\n\t\t\t}\r\n\r\n\t\t\tObject[] carteraSumaValores = registroCartera(notaCredito, modelDetalleList, idOficina);\r\n\t\t\tCarteraEJB cartera = (CarteraEJB)carteraSumaValores[0]; \r\n\t\t\tDouble sumaValoresNotaCreditoDetallesRedondeoTotal = (Double) carteraSumaValores[1];\r\n\t\t\tDouble sumaValoresNotaCreditoDetallesRedondeoParcial = (Double) carteraSumaValores[2];\r\n\t\t\tint year = notaCredito.getFechaEmision().getYear() + 1900;\r\n\t\t\tint month = notaCredito.getFechaEmision().getMonth() + 1;\r\n\t\t\tAsientoIf asiento = null;\r\n\t\t\tlong etapa = 1L;\r\n\t\t\tif ((year == 2008 && month >= 9) || (year > 2008))\r\n\t\t\t\tasiento = generarAsientoNotaCredito(notaCredito.getTipoDocumentoId(), notaCredito, notaCreditoDetalleColeccion, etapa, null, 0D, notaCredito.getTipoCartera(), null);\r\n\t\t\t//verificacionValores(notaCredito, cartera, sumaValoresNotaCreditoDetallesRedondeoTotal, sumaValoresNotaCreditoDetallesRedondeoParcial, asiento);\r\n\t\t} catch(GenericBusinessException e){ \r\n\t\t\tctx.setRollbackOnly();\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new GenericBusinessException(e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tctx.setRollbackOnly();\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new GenericBusinessException(\"Se ha producido un error al guardar la Nota de Crédito\");\r\n\t\t}\r\n\r\n\t\treturn notaCredito;\r\n\t}", "title": "" } ]
[ { "docid": "cf91be8d472c941d6908d3af4b2eaa83", "score": "0.5663751", "text": "ING getStrDlTmms();", "title": "" }, { "docid": "2762ca3c2d0df2e43c2974f74b6f5794", "score": "0.5511748", "text": "public void mo23507LF() {\n }", "title": "" }, { "docid": "092f51e9c99cd4188e1aae23e1830dfd", "score": "0.5500358", "text": "protected void func_70626_be() {}", "title": "" }, { "docid": "4cd3d3e70c4e6c2e92c12c4c4e57219f", "score": "0.54896605", "text": "ING getOpDlTmms();", "title": "" }, { "docid": "61746a670c1af29e77548bf9d2119edd", "score": "0.532998", "text": "public abstract String mo25172d() throws IOException;", "title": "" }, { "docid": "b07058c0e9932c554db04be4801fc100", "score": "0.5263931", "text": "private static void SacarBola() {\n\t\t\r\n\t}", "title": "" }, { "docid": "24e71bb3ca8d294182a9e113fbef4fd8", "score": "0.52629787", "text": "public void mo9672B_() {\n }", "title": "" }, { "docid": "24e71bb3ca8d294182a9e113fbef4fd8", "score": "0.52629787", "text": "public void mo9672B_() {\n }", "title": "" }, { "docid": "24e71bb3ca8d294182a9e113fbef4fd8", "score": "0.52629787", "text": "public void mo9672B_() {\n }", "title": "" }, { "docid": "a746a8bb35d4246f436177da1dd97989", "score": "0.52414495", "text": "C35592u mo70090e();", "title": "" }, { "docid": "2b94b23c337c6a15bdf5dc11c5364f02", "score": "0.5238553", "text": "int getSenderElo();", "title": "" }, { "docid": "dac4c90b10ef0f1883d5445e60e54f55", "score": "0.52264744", "text": "public abstract String mo25181m() throws IOException;", "title": "" }, { "docid": "94d282fd1a1162be41d534bb2355989a", "score": "0.51939905", "text": "public void mo5253cM() {\n }", "title": "" }, { "docid": "119b459aa82980ed18ed9f73e4c0c1f6", "score": "0.517988", "text": "public void mo8248e() {\n }", "title": "" }, { "docid": "f2496e73e6540d14b63ed7543a242a4e", "score": "0.51530087", "text": "protected String bn()\r\n/* 120: */ {\r\n/* 121:145 */ return \"mob.creeper.say\";\r\n/* 122: */ }", "title": "" }, { "docid": "fb1a50555cbabc315279d3340e0b70c0", "score": "0.51454943", "text": "public void mo24352b() {\n }", "title": "" }, { "docid": "cdcce64da3debb6a3868babb162fee76", "score": "0.50978124", "text": "Message(){\n\t\t\n\t}", "title": "" }, { "docid": "16d60252cbfb53f1b39180481998d5b8", "score": "0.509167", "text": "protected String bo()\r\n/* 125: */ {\r\n/* 126:150 */ return \"mob.creeper.death\";\r\n/* 127: */ }", "title": "" }, { "docid": "cfce6138e7c17675b46eff0e9722e5ab", "score": "0.50738335", "text": "protected void bo() {}", "title": "" }, { "docid": "b6d62de7f20cc56be0e191b385afb67b", "score": "0.50705284", "text": "private void sendsms() {\n }", "title": "" }, { "docid": "2f78b5229576576a45ee8092781cdbe2", "score": "0.5010326", "text": "public abstract C8209u mo30651e();", "title": "" }, { "docid": "b9a2e2b7f2afe8204f21d02073d438d0", "score": "0.50079036", "text": "public abstract String comer();", "title": "" }, { "docid": "f82bf6d1746878667fd0a35849bdd4ac", "score": "0.49799296", "text": "void mo4536bP();", "title": "" }, { "docid": "94787360435827930ea0bf7486844d13", "score": "0.49782377", "text": "void mo5325p();", "title": "" }, { "docid": "1ea0e5c1d9af3966f754c556ca259eba", "score": "0.49773267", "text": "@Override\n\tbyte[] buildBinSendingMessage(){\n\t\t//ByteArrayOutputStream baos = new ByteArrayOutputStream(nExtAttributes * 256);\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t//BufferedOutputStream bos = new BufferedOutputStream(baos);\n\t\t\n\t\t\n\t\tlong start = System.currentTimeMillis();\n\t\tfor(int i = 0; i < nExtAttributes; i ++){\n\t\t\t//message += paillier.Encryption(new BigInteger(Integer.toString(extSentProfile[i]))).toString();\n\t\t\ttry {\n\t\t\t\tbaos.write(this.paillierFile.getOneByteEncPaillierByGrain(extSentProfile[i]));\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// Add a separating character\n\t\t}\n\t\t\n\t\tlong end = System.currentTimeMillis();\n\t\t\n\t\tLog.i(\"TIME\", \"\" + (end-start));\n\t\t\n\t\treturn baos.toByteArray();\n\t}", "title": "" }, { "docid": "3b6185a0c03c5d3a42d999013d83c37a", "score": "0.4956291", "text": "Snooper() {\n\t\t}", "title": "" }, { "docid": "f76cff0faf8f5cac2bb5c9fa073b3900", "score": "0.49526095", "text": "private static void ispisiRemi() {\n\t\t\n\t}", "title": "" }, { "docid": "e19cd6c93b6b99ee3210b769bede51b0", "score": "0.49462295", "text": "public void mo4866n() {\n }", "title": "" }, { "docid": "5cf4af5e27240e647b16ec25158773dd", "score": "0.49458495", "text": "abstract Message mo5455a();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49239886", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.4923474", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "d59a7dff1da12e9568aaab827a8fb9bc", "score": "0.49231485", "text": "public abstract C6294g mo25183o() throws IOException;", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49227643", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49227643", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49227643", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49227643", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49227643", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49227643", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "6d82de299f9a16ea60dc663cd99ef7ec", "score": "0.49227643", "text": "java.lang.String getBunho();", "title": "" }, { "docid": "b0836257d57e164400e3f3a16f3724ff", "score": "0.49194658", "text": "@Override\n \tint getCost() {\n \t return message.length;\n \t}", "title": "" }, { "docid": "12ea37f02373a3f424b5e449acba443a", "score": "0.49185747", "text": "abstract String vechicle();", "title": "" }, { "docid": "b05ddb62fbc69cc945de085861a581f8", "score": "0.49130347", "text": "C35552ao mo70075I();", "title": "" }, { "docid": "cb5df3b027bedf2f7769701434a5c0d7", "score": "0.4906646", "text": "void commandSent();", "title": "" }, { "docid": "1915242d2dcabd36c142b1fa65459546", "score": "0.49013102", "text": "public void mo88465G() {\n }", "title": "" }, { "docid": "a6d537d9c99dcac4c07a5a7af7ebfde5", "score": "0.48990476", "text": "public java.lang.String getSn(){\r\n return localSn;\r\n }", "title": "" }, { "docid": "79da5b6b8193f9bfcdf6a9ea1a8b4ac8", "score": "0.48956335", "text": "public final C37504a mo73165sU(String str) {\n C37504a c37504a = null;\n AppMethodBeat.m2504i(78435);\n Cursor a = this.fni.mo10104a(\"select chattingbginfo.username,chattingbginfo.bgflag,chattingbginfo.path,chattingbginfo.reserved1,chattingbginfo.reserved2,chattingbginfo.reserved3,chattingbginfo.reserved4 from chattingbginfo where chattingbginfo.username = \\\"\" + C5046bo.m7586vA(String.valueOf(str)) + \"\\\"\", null, 2);\n if (a == null) {\n AppMethodBeat.m2505o(78435);\n } else {\n if (a.moveToFirst()) {\n c37504a = new C37504a();\n c37504a.mo60439d(a);\n }\n a.close();\n AppMethodBeat.m2505o(78435);\n }\n return c37504a;\n }", "title": "" }, { "docid": "6f983bc6b7e78aaaf061809f77ce4ab9", "score": "0.48946157", "text": "public abstract String mo12056b();", "title": "" }, { "docid": "e83f3bbed141ce71d416756d74067615", "score": "0.4886157", "text": "public abstract void mo5456a(Message message);", "title": "" }, { "docid": "96aa62cb7c02dc761fce03adeea3bae6", "score": "0.48806828", "text": "public void consumidor() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "dabcbc035a71d250f0cc4193226acce6", "score": "0.4878664", "text": "protected void h(ICommandSender paramae, String[] paramArrayOfString, int paramInt) throws CommandException\r\n/* 541: */ {\r\n/* 542:481 */ bsd localbsd = d();\r\n/* 543:482 */ HashSet localHashSet1 = Sets.newHashSet();\r\n/* 544:483 */ HashSet localHashSet2 = Sets.newHashSet();\r\n/* 545: */ String str1;\r\n/* 546:485 */ if (((paramae instanceof EntityPlayer)) && (paramInt == paramArrayOfString.length))\r\n/* 547: */ {\r\n/* 548:486 */ str1 = b(paramae).getName();\r\n/* 549:488 */ if (localbsd.f(str1)) {\r\n/* 550:489 */ localHashSet1.add(str1);\r\n/* 551: */ } else {\r\n/* 552:491 */ localHashSet2.add(str1);\r\n/* 553: */ }\r\n/* 554: */ }\r\n/* 555: */ else\r\n/* 556: */ {\r\n/* 557:494 */ while (paramInt < paramArrayOfString.length)\r\n/* 558: */ {\r\n/* 559:495 */ str1 = paramArrayOfString[(paramInt++)];\r\n/* 560: */ \r\n/* 561:496 */ if (str1.startsWith(\"@\"))\r\n/* 562: */ {\r\n/* 563:497 */ List<Entity> localObject = c(paramae, str1);\r\n/* 564:498 */ for (Entity localwv : localObject)\r\n/* 565: */ {\r\n/* 566:499 */ String str2 = e(paramae, localwv.getUUID().toString());\r\n/* 567:500 */ if (localbsd.f(str2)) {\r\n/* 568:501 */ localHashSet1.add(str2);\r\n/* 569: */ } else {\r\n/* 570:503 */ localHashSet2.add(str2);\r\n/* 571: */ }\r\n/* 572: */ }\r\n/* 573: */ }\r\n/* 574: */ else\r\n/* 575: */ {\r\n/* 576:507 */ String localObject = e(paramae, str1);\r\n/* 577:508 */ if (localbsd.f((String)localObject)) {\r\n/* 578:509 */ localHashSet1.add(localObject);\r\n/* 579: */ } else {\r\n/* 580:511 */ localHashSet2.add(localObject);\r\n/* 581: */ }\r\n/* 582: */ }\r\n/* 583: */ }\r\n/* 584: */ }\r\n/* 585:517 */ if (!localHashSet1.isEmpty())\r\n/* 586: */ {\r\n/* 587:518 */ paramae.a(ag.c, localHashSet1.size());\r\n/* 588:519 */ a(paramae, this, \"commands.scoreboard.teams.leave.success\", new Object[] { Integer.valueOf(localHashSet1.size()), a(localHashSet1.toArray(new String[0])) });\r\n/* 589: */ }\r\n/* 590:521 */ if (!localHashSet2.isEmpty()) {\r\n/* 591:522 */ throw new CommandException(\"commands.scoreboard.teams.leave.failure\", new Object[] { Integer.valueOf(localHashSet2.size()), a(localHashSet2.toArray(new String[0])) });\r\n/* 592: */ }\r\n/* 593: */ }", "title": "" }, { "docid": "258552279d0be938cacf0ca2b28181e5", "score": "0.48681355", "text": "private void SendMessage() {\n\n\t}", "title": "" }, { "docid": "0d81c067c8001661f6cbaddca50d165a", "score": "0.48656726", "text": "public void mo6081a() {\n }", "title": "" }, { "docid": "457c9e2653d321c5179be2c6054837d8", "score": "0.4863733", "text": "void mo45170a(Message message);", "title": "" }, { "docid": "8dd77b41eb50019a05bd34961fb64051", "score": "0.48628554", "text": "C35558as mo70082P();", "title": "" }, { "docid": "f615bfd8d8907bca5b18786ecaace6d1", "score": "0.4856544", "text": "C35548am mo70081O();", "title": "" }, { "docid": "b97ed899e403d80a8c6b69bf46b8ba24", "score": "0.4854498", "text": "protected void g(ICommandSender paramae, String[] paramArrayOfString, int paramInt) throws CommandException\r\n/* 485: */ {\r\n/* 486:434 */ bsd localbsd = d();\r\n/* 487:435 */ String str1 = paramArrayOfString[(paramInt++)];\r\n/* 488:436 */ HashSet localHashSet1 = Sets.newHashSet();\r\n/* 489:437 */ HashSet localHashSet2 = Sets.newHashSet();\r\n/* 490: */ String str2;\r\n/* 491:439 */ if (((paramae instanceof EntityPlayer)) && (paramInt == paramArrayOfString.length))\r\n/* 492: */ {\r\n/* 493:440 */ str2 = b(paramae).getName();\r\n/* 494:442 */ if (localbsd.a(str2, str1)) {\r\n/* 495:443 */ localHashSet1.add(str2);\r\n/* 496: */ } else {\r\n/* 497:445 */ localHashSet2.add(str2);\r\n/* 498: */ }\r\n/* 499: */ }\r\n/* 500: */ else\r\n/* 501: */ {\r\n/* 502:448 */ while (paramInt < paramArrayOfString.length)\r\n/* 503: */ {\r\n/* 504:449 */ str2 = paramArrayOfString[(paramInt++)];\r\n/* 505: */ Object localObject;\r\n/* 506:450 */ if (str2.startsWith(\"@\"))\r\n/* 507: */ {\r\n/* 508:451 */ List<Entity> localObject1 = c(paramae, str2);\r\n/* 509:452 */ for (Entity localwv : localObject1)\r\n/* 510: */ {\r\n/* 511:453 */ String str3 = e(paramae, localwv.getUUID().toString());\r\n/* 512:454 */ if (localbsd.a(str3, str1)) {\r\n/* 513:455 */ localHashSet1.add(str3);\r\n/* 514: */ } else {\r\n/* 515:457 */ localHashSet2.add(str3);\r\n/* 516: */ }\r\n/* 517: */ }\r\n/* 518: */ }\r\n/* 519: */ else\r\n/* 520: */ {\r\n/* 521:461 */ localObject = e(paramae, str2);\r\n/* 522:462 */ if (localbsd.a((String)localObject, str1)) {\r\n/* 523:463 */ localHashSet1.add(localObject);\r\n/* 524: */ } else {\r\n/* 525:465 */ localHashSet2.add(localObject);\r\n/* 526: */ }\r\n/* 527: */ }\r\n/* 528: */ }\r\n/* 529: */ }\r\n/* 530:471 */ if (!localHashSet1.isEmpty())\r\n/* 531: */ {\r\n/* 532:472 */ paramae.a(ag.c, localHashSet1.size());\r\n/* 533:473 */ a(paramae, this, \"commands.scoreboard.teams.join.success\", new Object[] { Integer.valueOf(localHashSet1.size()), str1, a(localHashSet1.toArray(new String[0])) });\r\n/* 534: */ }\r\n/* 535:475 */ if (!localHashSet2.isEmpty()) {\r\n/* 536:476 */ throw new CommandException(\"commands.scoreboard.teams.join.failure\", new Object[] { Integer.valueOf(localHashSet2.size()), str1, a(localHashSet2.toArray(new String[0])) });\r\n/* 537: */ }\r\n/* 538: */ }", "title": "" }, { "docid": "ab9dfcffb671c91002936210c72cdd8b", "score": "0.48459715", "text": "public void e120M2( )\n {\n new a804_pc02_log_start(remoteHandle, context).execute( AV9Pgmname) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV9Pgmname\", AV9Pgmname);\n AV7W_TXT = \"\" ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + \"試験ID:\" + GXutil.trim( GXutil.str( A19TBM41_STUDY_ID, 10, 0)) + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + GXutil.trim( GXutil.str( A20TBM41_CRF_ID, 10, 0)) + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + A21TBM41_CRF_ITEM_GRP_DIV + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + A22TBM41_CRF_ITEM_GRP_CD + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + A424TBM41_NCM_METADATA_ID + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + A425TBM41_DEL_FLG + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n GXt_char1 = AV7W_TXT ;\n GXv_char2[0] = GXt_char1 ;\n new a802_pc02_datetime_edit(remoteHandle, context).execute( A426TBM41_CRT_DATETIME, \"YYYY/MM/DD HH:MI:SS\", GXv_char2) ;\n tbm41_crf_ncm_map_impl.this.GXt_char1 = GXv_char2[0] ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"A426TBM41_CRT_DATETIME\", localUtil.ttoc( A426TBM41_CRT_DATETIME, 10, 8, 0, 1, \"/\", \":\", \" \"));\n AV7W_TXT = AV7W_TXT + GXt_char1 + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + A427TBM41_CRT_USER_ID + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + A428TBM41_CRT_PROG_NM + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n GXt_char1 = AV7W_TXT ;\n GXv_char2[0] = GXt_char1 ;\n new a802_pc02_datetime_edit(remoteHandle, context).execute( A429TBM41_UPD_DATETIME, \"YYYY/MM/DD HH:MI:SS\", GXv_char2) ;\n tbm41_crf_ncm_map_impl.this.GXt_char1 = GXv_char2[0] ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"A429TBM41_UPD_DATETIME\", localUtil.ttoc( A429TBM41_UPD_DATETIME, 10, 8, 0, 1, \"/\", \":\", \" \"));\n AV7W_TXT = AV7W_TXT + GXt_char1 + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + A430TBM41_UPD_USER_ID + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + A431TBM41_UPD_PROG_NM + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = AV7W_TXT + GXutil.trim( GXutil.str( A432TBM41_UPD_CNT, 10, 0)) + GXutil.chr( (short)(9)) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n AV7W_TXT = GXutil.strReplace( AV7W_TXT, GXutil.chr( (short)(13))+GXutil.chr( (short)(10)), \"@br@\") ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n new a804_pc03_datalog(remoteHandle, context).execute( AV9Pgmname, Gx_mode, AV7W_TXT) ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV9Pgmname\", AV9Pgmname);\n httpContext.ajax_rsp_assign_attri(\"\", false, \"Gx_mode\", Gx_mode);\n httpContext.ajax_rsp_assign_attri(\"\", false, \"AV7W_TXT\", AV7W_TXT);\n }", "title": "" }, { "docid": "63918b2e510c9040bbddcac00095b41a", "score": "0.48454866", "text": "private void recuperation() {\n\t\t\n\t}", "title": "" }, { "docid": "ba49272cb6da14a36539e017bb7e1e14", "score": "0.48425317", "text": "private void messageShort() {\n }", "title": "" }, { "docid": "97b9d36e470c035a6b1b8de39ba08b03", "score": "0.4841944", "text": "public abstract String mo7207a();", "title": "" }, { "docid": "e0989255fd1af22841693489e1afa33b", "score": "0.4837932", "text": "public void mo24349a() {\n }", "title": "" }, { "docid": "6ea91c0ae52a9d6d8add8bb2610f3cc5", "score": "0.48332947", "text": "String m954b();", "title": "" }, { "docid": "40edfbe1dd29fa50f767d06480f257c6", "score": "0.48312226", "text": "protected bsd d()\r\n/* 260: */ {\r\n/* 261:230 */ return MinecraftServer.M().a(0).Z();\r\n/* 262: */ }", "title": "" }, { "docid": "8a3f5ce73830bc07d2e63afee57a320b", "score": "0.48298597", "text": "public static String getNoticeBusinessQueue()\r\n/* 104: */ {\r\n/* 105:134 */ return noticeBusinessQueue;\r\n/* 106: */ }", "title": "" }, { "docid": "72b0bc70f559ddaee5f1007383efb97c", "score": "0.48288944", "text": "public abstract void mo56205c();", "title": "" }, { "docid": "edf8746b0a440449fef09bda577a6dfa", "score": "0.48278582", "text": "public abstract String mo60504b();", "title": "" }, { "docid": "816cfd2681d68211114b121fd4e6d579", "score": "0.48235142", "text": "public abstract void mo5457c();", "title": "" }, { "docid": "241db5146b9b31dc8643f79bce9759d2", "score": "0.48232654", "text": "private static String m192d() {\n String str = null;\n try {\n str = ProcessLevelSPDB.m127f();\n } catch (Throwable th) {\n MobLog.getInstance().m57w(th);\n }\n return TextUtils.isEmpty(str) ? \"http://c.data.mob.com/v2/cdata\" : str;\n }", "title": "" }, { "docid": "eb46362e4ca7501c223be255a8ab67a6", "score": "0.48177025", "text": "public abstract String mo60503a();", "title": "" }, { "docid": "4c4072650eec99600369c67ae95efa56", "score": "0.48142153", "text": "void mo108763b(Buffer buffer);", "title": "" }, { "docid": "b34c250f3090ce9297285f5ac9bc6104", "score": "0.4811235", "text": "java.lang.String getSINeed();", "title": "" }, { "docid": "f623dabd3c0db410e3b4e5cd63261324", "score": "0.4810589", "text": "public abstract String dispenseMessage();", "title": "" } ]
81ac53ce85000818ef220e1c92953e4e
$ANTLR end "entryRuleXPrimaryExpression" $ANTLR start "ruleXPrimaryExpression" InternalSpeADL.g:3529:1: ruleXPrimaryExpression returns [EObject current=null] : (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) ;
[ { "docid": "39c70e1d5872a4dce62fa0a378c005be", "score": "0.71120816", "text": "public final EObject ruleXPrimaryExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_XConstructorCall_0 = null;\n\n EObject this_XBlockExpression_1 = null;\n\n EObject this_XSwitchExpression_2 = null;\n\n EObject this_XSynchronizedExpression_3 = null;\n\n EObject this_XFeatureCall_4 = null;\n\n EObject this_XLiteral_5 = null;\n\n EObject this_XIfExpression_6 = null;\n\n EObject this_XForLoopExpression_7 = null;\n\n EObject this_XBasicForLoopExpression_8 = null;\n\n EObject this_XWhileExpression_9 = null;\n\n EObject this_XDoWhileExpression_10 = null;\n\n EObject this_XThrowExpression_11 = null;\n\n EObject this_XReturnExpression_12 = null;\n\n EObject this_XTryCatchFinallyExpression_13 = null;\n\n EObject this_XParenthesizedExpression_14 = null;\n\n\n enterRule(); \n \n try {\n // InternalSpeADL.g:3532:28: ( (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) )\n // InternalSpeADL.g:3533:1: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression )\n {\n // InternalSpeADL.g:3533:1: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression )\n int alt67=15;\n alt67 = dfa67.predict(input);\n switch (alt67) {\n case 1 :\n // InternalSpeADL.g:3534:5: this_XConstructorCall_0= ruleXConstructorCall\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_2);\n this_XConstructorCall_0=ruleXConstructorCall();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XConstructorCall_0; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // InternalSpeADL.g:3544:5: this_XBlockExpression_1= ruleXBlockExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_2);\n this_XBlockExpression_1=ruleXBlockExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XBlockExpression_1; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 3 :\n // InternalSpeADL.g:3554:5: this_XSwitchExpression_2= ruleXSwitchExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_2);\n this_XSwitchExpression_2=ruleXSwitchExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XSwitchExpression_2; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 4 :\n // InternalSpeADL.g:3563:6: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression )\n {\n // InternalSpeADL.g:3563:6: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression )\n // InternalSpeADL.g:3563:7: ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); \n \n }\n pushFollow(FOLLOW_2);\n this_XSynchronizedExpression_3=ruleXSynchronizedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XSynchronizedExpression_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n case 5 :\n // InternalSpeADL.g:3577:5: this_XFeatureCall_4= ruleXFeatureCall\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); \n \n }\n pushFollow(FOLLOW_2);\n this_XFeatureCall_4=ruleXFeatureCall();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XFeatureCall_4; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 6 :\n // InternalSpeADL.g:3587:5: this_XLiteral_5= ruleXLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); \n \n }\n pushFollow(FOLLOW_2);\n this_XLiteral_5=ruleXLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XLiteral_5; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 7 :\n // InternalSpeADL.g:3597:5: this_XIfExpression_6= ruleXIfExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); \n \n }\n pushFollow(FOLLOW_2);\n this_XIfExpression_6=ruleXIfExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XIfExpression_6; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 8 :\n // InternalSpeADL.g:3606:6: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression )\n {\n // InternalSpeADL.g:3606:6: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression )\n // InternalSpeADL.g:3606:7: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); \n \n }\n pushFollow(FOLLOW_2);\n this_XForLoopExpression_7=ruleXForLoopExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XForLoopExpression_7; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n case 9 :\n // InternalSpeADL.g:3625:5: this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); \n \n }\n pushFollow(FOLLOW_2);\n this_XBasicForLoopExpression_8=ruleXBasicForLoopExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XBasicForLoopExpression_8; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 10 :\n // InternalSpeADL.g:3635:5: this_XWhileExpression_9= ruleXWhileExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); \n \n }\n pushFollow(FOLLOW_2);\n this_XWhileExpression_9=ruleXWhileExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XWhileExpression_9; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 11 :\n // InternalSpeADL.g:3645:5: this_XDoWhileExpression_10= ruleXDoWhileExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); \n \n }\n pushFollow(FOLLOW_2);\n this_XDoWhileExpression_10=ruleXDoWhileExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XDoWhileExpression_10; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 12 :\n // InternalSpeADL.g:3655:5: this_XThrowExpression_11= ruleXThrowExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); \n \n }\n pushFollow(FOLLOW_2);\n this_XThrowExpression_11=ruleXThrowExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XThrowExpression_11; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 13 :\n // InternalSpeADL.g:3665:5: this_XReturnExpression_12= ruleXReturnExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); \n \n }\n pushFollow(FOLLOW_2);\n this_XReturnExpression_12=ruleXReturnExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XReturnExpression_12; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 14 :\n // InternalSpeADL.g:3675:5: this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); \n \n }\n pushFollow(FOLLOW_2);\n this_XTryCatchFinallyExpression_13=ruleXTryCatchFinallyExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XTryCatchFinallyExpression_13; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 15 :\n // InternalSpeADL.g:3685:5: this_XParenthesizedExpression_14= ruleXParenthesizedExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); \n \n }\n pushFollow(FOLLOW_2);\n this_XParenthesizedExpression_14=ruleXParenthesizedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XParenthesizedExpression_14; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" } ]
[ { "docid": "38d072c58edc1d6432c12d6759f4a6a7", "score": "0.7276985", "text": "public final void entryRuleXPrimaryExpression() throws RecognitionException {\r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:374:1: ( ruleXPrimaryExpression EOF )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:375:1: ruleXPrimaryExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleXPrimaryExpression_in_entryRuleXPrimaryExpression731);\r\n ruleXPrimaryExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleXPrimaryExpression738); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c9d7227ec99a17a2a888b9f9f1d93089", "score": "0.72068363", "text": "public final EObject entryRuleXPrimaryExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXPrimaryExpression = null;\n\n\n try {\n // InternalSpeADL.g:3521:2: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF )\n // InternalSpeADL.g:3522:2: iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXPrimaryExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleXPrimaryExpression=ruleXPrimaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXPrimaryExpression; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "c268e59f3b1130b2bb13fa05a35f2cbc", "score": "0.71800333", "text": "@Override\n\tpublic ST visitPrimaryExpression(SparqlParser.PrimaryExpressionContext ctx) {\n\n\t\tST primaryExpression = g.getInstanceOf(\"primaryExpression\");\n\n\t\tif (ctx.expression() != null) {\n\t\t\tprimaryExpression.add(\"expression\", visit(ctx.expression()));\n\t\t} else if (ctx.builtInCall() != null) {\n\t\t\tprimaryExpression.add(\"builtInCall\", visitBuiltInCall(ctx.builtInCall()));\n\t\t} else if (ctx.iriRefOrFunction() != null) {\n\t\t\tprimaryExpression.add(\"iriRefOrFunction\", visitIriRefOrFunction(ctx.iriRefOrFunction()));\n\t\t} else if (ctx.rdfLiteral() != null) {\n\t\t\tprimaryExpression.add(\"rdfLiteral\", visitRdfLiteral(ctx.rdfLiteral()));\n\t\t} else if (ctx.numericLiteral() != null) {\n\t\t\tprimaryExpression.add(\"numericLiteral\", visitNumericLiteral(ctx.numericLiteral()));\n\t\t} else if (ctx.booleanLiteral() != null) {\n\t\t\tprimaryExpression.add(\"booleanLiteral\", visitBooleanLiteral(ctx.booleanLiteral()));\n\t\t} else if (ctx.var() != null) {\n\t\t\tprimaryExpression.add(\"var\", visitVar(ctx.var()));\n\t\t}\n\n\t\treturn primaryExpression;\n\t}", "title": "" }, { "docid": "83d5369d6005568326e9a5e485c6c9a4", "score": "0.70952064", "text": "public final EObject entryRuleXPrimaryExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXPrimaryExpression = null;\n\n\n try {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2296:2: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2297:2: iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXPrimaryExpressionRule()); \n }\n pushFollow(FOLLOW_ruleXPrimaryExpression_in_entryRuleXPrimaryExpression5759);\n iv_ruleXPrimaryExpression=ruleXPrimaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXPrimaryExpression; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXPrimaryExpression5769); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "bb7d4fa97295d44d78582c2663e00a80", "score": "0.7036693", "text": "public final void entryRuleXPrimaryExpression() throws RecognitionException {\n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:880:1: ( ruleXPrimaryExpression EOF )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:881:1: ruleXPrimaryExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionRule()); \n }\n pushFollow(FOLLOW_ruleXPrimaryExpression_in_entryRuleXPrimaryExpression1812);\n ruleXPrimaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXPrimaryExpression1819); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "9725a99842e6803c7a9fac3c3f1ed609", "score": "0.70281464", "text": "public final EObject ruleXPrimaryExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_XConstructorCall_0 = null;\n\n EObject this_XBlockExpression_1 = null;\n\n EObject this_XSwitchExpression_2 = null;\n\n EObject this_XFeatureCall_3 = null;\n\n EObject this_XLiteral_4 = null;\n\n EObject this_XIfExpression_5 = null;\n\n EObject this_XForLoopExpression_6 = null;\n\n EObject this_XWhileExpression_7 = null;\n\n EObject this_XDoWhileExpression_8 = null;\n\n EObject this_XThrowExpression_9 = null;\n\n EObject this_XReturnExpression_10 = null;\n\n EObject this_XTryCatchFinallyExpression_11 = null;\n\n EObject this_XParenthesizedExpression_12 = null;\n\n\n enterRule(); \n \n try {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2307:28: ( (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | this_XFeatureCall_3= ruleXFeatureCall | this_XLiteral_4= ruleXLiteral | this_XIfExpression_5= ruleXIfExpression | this_XForLoopExpression_6= ruleXForLoopExpression | this_XWhileExpression_7= ruleXWhileExpression | this_XDoWhileExpression_8= ruleXDoWhileExpression | this_XThrowExpression_9= ruleXThrowExpression | this_XReturnExpression_10= ruleXReturnExpression | this_XTryCatchFinallyExpression_11= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_12= ruleXParenthesizedExpression ) )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2308:1: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | this_XFeatureCall_3= ruleXFeatureCall | this_XLiteral_4= ruleXLiteral | this_XIfExpression_5= ruleXIfExpression | this_XForLoopExpression_6= ruleXForLoopExpression | this_XWhileExpression_7= ruleXWhileExpression | this_XDoWhileExpression_8= ruleXDoWhileExpression | this_XThrowExpression_9= ruleXThrowExpression | this_XReturnExpression_10= ruleXReturnExpression | this_XTryCatchFinallyExpression_11= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_12= ruleXParenthesizedExpression )\n {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2308:1: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | this_XFeatureCall_3= ruleXFeatureCall | this_XLiteral_4= ruleXLiteral | this_XIfExpression_5= ruleXIfExpression | this_XForLoopExpression_6= ruleXForLoopExpression | this_XWhileExpression_7= ruleXWhileExpression | this_XDoWhileExpression_8= ruleXDoWhileExpression | this_XThrowExpression_9= ruleXThrowExpression | this_XReturnExpression_10= ruleXReturnExpression | this_XTryCatchFinallyExpression_11= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_12= ruleXParenthesizedExpression )\n int alt32=13;\n alt32 = dfa32.predict(input);\n switch (alt32) {\n case 1 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2309:5: this_XConstructorCall_0= ruleXConstructorCall\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleXConstructorCall_in_ruleXPrimaryExpression5816);\n this_XConstructorCall_0=ruleXConstructorCall();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XConstructorCall_0; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2319:5: this_XBlockExpression_1= ruleXBlockExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleXBlockExpression_in_ruleXPrimaryExpression5843);\n this_XBlockExpression_1=ruleXBlockExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XBlockExpression_1; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 3 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2329:5: this_XSwitchExpression_2= ruleXSwitchExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_ruleXSwitchExpression_in_ruleXPrimaryExpression5870);\n this_XSwitchExpression_2=ruleXSwitchExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XSwitchExpression_2; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 4 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2339:5: this_XFeatureCall_3= ruleXFeatureCall\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_3()); \n \n }\n pushFollow(FOLLOW_ruleXFeatureCall_in_ruleXPrimaryExpression5897);\n this_XFeatureCall_3=ruleXFeatureCall();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XFeatureCall_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 5 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2349:5: this_XLiteral_4= ruleXLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_4()); \n \n }\n pushFollow(FOLLOW_ruleXLiteral_in_ruleXPrimaryExpression5924);\n this_XLiteral_4=ruleXLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XLiteral_4; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 6 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2359:5: this_XIfExpression_5= ruleXIfExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_5()); \n \n }\n pushFollow(FOLLOW_ruleXIfExpression_in_ruleXPrimaryExpression5951);\n this_XIfExpression_5=ruleXIfExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XIfExpression_5; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 7 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2369:5: this_XForLoopExpression_6= ruleXForLoopExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_6()); \n \n }\n pushFollow(FOLLOW_ruleXForLoopExpression_in_ruleXPrimaryExpression5978);\n this_XForLoopExpression_6=ruleXForLoopExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XForLoopExpression_6; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 8 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2379:5: this_XWhileExpression_7= ruleXWhileExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_7()); \n \n }\n pushFollow(FOLLOW_ruleXWhileExpression_in_ruleXPrimaryExpression6005);\n this_XWhileExpression_7=ruleXWhileExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XWhileExpression_7; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 9 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2389:5: this_XDoWhileExpression_8= ruleXDoWhileExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_8()); \n \n }\n pushFollow(FOLLOW_ruleXDoWhileExpression_in_ruleXPrimaryExpression6032);\n this_XDoWhileExpression_8=ruleXDoWhileExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XDoWhileExpression_8; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 10 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2399:5: this_XThrowExpression_9= ruleXThrowExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_9()); \n \n }\n pushFollow(FOLLOW_ruleXThrowExpression_in_ruleXPrimaryExpression6059);\n this_XThrowExpression_9=ruleXThrowExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XThrowExpression_9; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 11 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2409:5: this_XReturnExpression_10= ruleXReturnExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_10()); \n \n }\n pushFollow(FOLLOW_ruleXReturnExpression_in_ruleXPrimaryExpression6086);\n this_XReturnExpression_10=ruleXReturnExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XReturnExpression_10; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 12 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2419:5: this_XTryCatchFinallyExpression_11= ruleXTryCatchFinallyExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_11()); \n \n }\n pushFollow(FOLLOW_ruleXTryCatchFinallyExpression_in_ruleXPrimaryExpression6113);\n this_XTryCatchFinallyExpression_11=ruleXTryCatchFinallyExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XTryCatchFinallyExpression_11; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 13 :\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2429:5: this_XParenthesizedExpression_12= ruleXParenthesizedExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_12()); \n \n }\n pushFollow(FOLLOW_ruleXParenthesizedExpression_in_ruleXPrimaryExpression6140);\n this_XParenthesizedExpression_12=ruleXParenthesizedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XParenthesizedExpression_12; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "f7a126c668ceca33129edcb54c4d1fb2", "score": "0.6870222", "text": "public final void rule__XPrimaryExpression__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2466:1: ( ( ruleXConstructorCall ) | ( ruleXBlockExpression ) | ( ruleXSwitchExpression ) | ( ruleXFeatureCall ) | ( ruleXLiteral ) | ( ruleXIfExpression ) | ( ruleXForLoopExpression ) | ( ruleXWhileExpression ) | ( ruleXDoWhileExpression ) | ( ruleXThrowExpression ) | ( ruleXReturnExpression ) | ( ruleXTryCatchFinallyExpression ) | ( ruleXParenthesizedExpression ) | ( ruleXGuardExpression ) | ( ruleXIssueExpression ) )\r\n int alt7=15;\r\n switch ( input.LA(1) ) {\r\n case 77:\r\n {\r\n alt7=1;\r\n }\r\n break;\r\n case 43:\r\n {\r\n alt7=2;\r\n }\r\n break;\r\n case 70:\r\n {\r\n alt7=3;\r\n }\r\n break;\r\n case RULE_ID:\r\n case 20:\r\n case 32:\r\n {\r\n alt7=4;\r\n }\r\n break;\r\n case RULE_STRING:\r\n case RULE_INT:\r\n case 33:\r\n case 61:\r\n case 78:\r\n case 79:\r\n case 94:\r\n {\r\n alt7=5;\r\n }\r\n break;\r\n case 68:\r\n {\r\n alt7=6;\r\n }\r\n break;\r\n case 45:\r\n {\r\n alt7=7;\r\n }\r\n break;\r\n case 74:\r\n {\r\n alt7=8;\r\n }\r\n break;\r\n case 75:\r\n {\r\n alt7=9;\r\n }\r\n break;\r\n case 80:\r\n {\r\n alt7=10;\r\n }\r\n break;\r\n case 81:\r\n {\r\n alt7=11;\r\n }\r\n break;\r\n case 82:\r\n {\r\n alt7=12;\r\n }\r\n break;\r\n case 50:\r\n {\r\n alt7=13;\r\n }\r\n break;\r\n case 57:\r\n {\r\n alt7=14;\r\n }\r\n break;\r\n case 58:\r\n {\r\n alt7=15;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 7, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt7) {\r\n case 1 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2467:1: ( ruleXConstructorCall )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2467:1: ( ruleXConstructorCall )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2468:1: ruleXConstructorCall\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_ruleXConstructorCall_in_rule__XPrimaryExpression__Alternatives5217);\r\n ruleXConstructorCall();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2473:6: ( ruleXBlockExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2473:6: ( ruleXBlockExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2474:1: ruleXBlockExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); \r\n }\r\n pushFollow(FOLLOW_ruleXBlockExpression_in_rule__XPrimaryExpression__Alternatives5234);\r\n ruleXBlockExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2479:6: ( ruleXSwitchExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2479:6: ( ruleXSwitchExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2480:1: ruleXSwitchExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); \r\n }\r\n pushFollow(FOLLOW_ruleXSwitchExpression_in_rule__XPrimaryExpression__Alternatives5251);\r\n ruleXSwitchExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2485:6: ( ruleXFeatureCall )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2485:6: ( ruleXFeatureCall )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2486:1: ruleXFeatureCall\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_3()); \r\n }\r\n pushFollow(FOLLOW_ruleXFeatureCall_in_rule__XPrimaryExpression__Alternatives5268);\r\n ruleXFeatureCall();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2491:6: ( ruleXLiteral )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2491:6: ( ruleXLiteral )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2492:1: ruleXLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_4()); \r\n }\r\n pushFollow(FOLLOW_ruleXLiteral_in_rule__XPrimaryExpression__Alternatives5285);\r\n ruleXLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2497:6: ( ruleXIfExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2497:6: ( ruleXIfExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2498:1: ruleXIfExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_5()); \r\n }\r\n pushFollow(FOLLOW_ruleXIfExpression_in_rule__XPrimaryExpression__Alternatives5302);\r\n ruleXIfExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_5()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 7 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2503:6: ( ruleXForLoopExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2503:6: ( ruleXForLoopExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2504:1: ruleXForLoopExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_6()); \r\n }\r\n pushFollow(FOLLOW_ruleXForLoopExpression_in_rule__XPrimaryExpression__Alternatives5319);\r\n ruleXForLoopExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_6()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 8 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2509:6: ( ruleXWhileExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2509:6: ( ruleXWhileExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2510:1: ruleXWhileExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_7()); \r\n }\r\n pushFollow(FOLLOW_ruleXWhileExpression_in_rule__XPrimaryExpression__Alternatives5336);\r\n ruleXWhileExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_7()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 9 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2515:6: ( ruleXDoWhileExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2515:6: ( ruleXDoWhileExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2516:1: ruleXDoWhileExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_8()); \r\n }\r\n pushFollow(FOLLOW_ruleXDoWhileExpression_in_rule__XPrimaryExpression__Alternatives5353);\r\n ruleXDoWhileExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_8()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 10 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2521:6: ( ruleXThrowExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2521:6: ( ruleXThrowExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2522:1: ruleXThrowExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_9()); \r\n }\r\n pushFollow(FOLLOW_ruleXThrowExpression_in_rule__XPrimaryExpression__Alternatives5370);\r\n ruleXThrowExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_9()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 11 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2527:6: ( ruleXReturnExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2527:6: ( ruleXReturnExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2528:1: ruleXReturnExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_10()); \r\n }\r\n pushFollow(FOLLOW_ruleXReturnExpression_in_rule__XPrimaryExpression__Alternatives5387);\r\n ruleXReturnExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_10()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 12 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2533:6: ( ruleXTryCatchFinallyExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2533:6: ( ruleXTryCatchFinallyExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2534:1: ruleXTryCatchFinallyExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_11()); \r\n }\r\n pushFollow(FOLLOW_ruleXTryCatchFinallyExpression_in_rule__XPrimaryExpression__Alternatives5404);\r\n ruleXTryCatchFinallyExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_11()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 13 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2539:6: ( ruleXParenthesizedExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2539:6: ( ruleXParenthesizedExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2540:1: ruleXParenthesizedExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_12()); \r\n }\r\n pushFollow(FOLLOW_ruleXParenthesizedExpression_in_rule__XPrimaryExpression__Alternatives5421);\r\n ruleXParenthesizedExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_12()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 14 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2545:6: ( ruleXGuardExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2545:6: ( ruleXGuardExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2546:1: ruleXGuardExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXGuardExpressionParserRuleCall_13()); \r\n }\r\n pushFollow(FOLLOW_ruleXGuardExpression_in_rule__XPrimaryExpression__Alternatives5438);\r\n ruleXGuardExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXGuardExpressionParserRuleCall_13()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 15 :\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2551:6: ( ruleXIssueExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2551:6: ( ruleXIssueExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:2552:1: ruleXIssueExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXIssueExpressionParserRuleCall_14()); \r\n }\r\n pushFollow(FOLLOW_ruleXIssueExpression_in_rule__XPrimaryExpression__Alternatives5455);\r\n ruleXIssueExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXIssueExpressionParserRuleCall_14()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "057c4fc17b8d2efd72118bc06e26c9b6", "score": "0.6851407", "text": "public final XPathEnhancerParser.primaryExpr_return primaryExpr() throws RecognitionException {\r\n XPathEnhancerParser.primaryExpr_return retval = new XPathEnhancerParser.primaryExpr_return();\r\n retval.start = input.LT(1);\r\n\r\n try {\r\n // src\\\\main\\\\antlr\\\\XPathEnhancer.g:165:3: ( variableReference | '(' expr ')' | Literal | Number | functionCall )\r\n int alt9=5;\r\n switch ( input.LA(1) ) {\r\n case 44:\r\n {\r\n alt9=1;\r\n }\r\n break;\r\n case LPAR:\r\n {\r\n alt9=2;\r\n }\r\n break;\r\n case Literal:\r\n {\r\n alt9=3;\r\n }\r\n break;\r\n case Number:\r\n {\r\n alt9=4;\r\n }\r\n break;\r\n case AxisName:\r\n case NCName:\r\n {\r\n alt9=5;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 9, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt9) {\r\n case 1 :\r\n // src\\\\main\\\\antlr\\\\XPathEnhancer.g:166:3: variableReference\r\n {\r\n pushFollow(FOLLOW_variableReference_in_primaryExpr759);\r\n variableReference();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // src\\\\main\\\\antlr\\\\XPathEnhancer.g:167:5: '(' expr ')'\r\n {\r\n match(input,LPAR,FOLLOW_LPAR_in_primaryExpr765); \r\n pushFollow(FOLLOW_expr_in_primaryExpr767);\r\n expr();\r\n\r\n state._fsp--;\r\n\r\n match(input,RPAR,FOLLOW_RPAR_in_primaryExpr769); \r\n\r\n }\r\n break;\r\n case 3 :\r\n // src\\\\main\\\\antlr\\\\XPathEnhancer.g:168:5: Literal\r\n {\r\n match(input,Literal,FOLLOW_Literal_in_primaryExpr775); \r\n\r\n }\r\n break;\r\n case 4 :\r\n // src\\\\main\\\\antlr\\\\XPathEnhancer.g:169:5: Number\r\n {\r\n match(input,Number,FOLLOW_Number_in_primaryExpr781); \r\n\r\n }\r\n break;\r\n case 5 :\r\n // src\\\\main\\\\antlr\\\\XPathEnhancer.g:170:5: functionCall\r\n {\r\n pushFollow(FOLLOW_functionCall_in_primaryExpr787);\r\n functionCall();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "32089d16649ef407c2b5ae3ab2eaf086", "score": "0.68144053", "text": "public final CFMLParser.primaryExpression_return primaryExpression() throws RecognitionException {\r\n CFMLParser.primaryExpression_return retval = new CFMLParser.primaryExpression_return();\r\n retval.start = input.LT(1);\r\n\r\n int primaryExpression_StartIndex = input.index();\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token STRING_LITERAL387=null;\r\n Token BOOLEAN_LITERAL388=null;\r\n Token FLOATING_POINT_LITERAL389=null;\r\n Token INTEGER_LITERAL390=null;\r\n Token NULL393=null;\r\n Token char_literal394=null;\r\n Token LT395=null;\r\n Token LT397=null;\r\n Token char_literal398=null;\r\n CFMLParser.implicitArray_return implicitArray391 =null;\r\n\r\n CFMLParser.implicitStruct_return implicitStruct392 =null;\r\n\r\n CFMLParser.assignmentExpression_return assignmentExpression396 =null;\r\n\r\n CFMLParser.identifier_return identifier399 =null;\r\n\r\n\r\n CommonTree STRING_LITERAL387_tree=null;\r\n CommonTree BOOLEAN_LITERAL388_tree=null;\r\n CommonTree FLOATING_POINT_LITERAL389_tree=null;\r\n CommonTree INTEGER_LITERAL390_tree=null;\r\n CommonTree NULL393_tree=null;\r\n CommonTree char_literal394_tree=null;\r\n CommonTree LT395_tree=null;\r\n CommonTree LT397_tree=null;\r\n CommonTree char_literal398_tree=null;\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 79) ) { return retval; }\r\n\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:901:2: ( STRING_LITERAL | BOOLEAN_LITERAL | FLOATING_POINT_LITERAL | INTEGER_LITERAL | implicitArray | implicitStruct | NULL | '(' ! ( LT !)* assignmentExpression ( LT !)* ')' !| identifier )\r\n int alt91=9;\r\n int LA91_0 = input.LA(1);\r\n\r\n if ( (LA91_0==STRING_LITERAL) ) {\r\n alt91=1;\r\n }\r\n else if ( (LA91_0==BOOLEAN_LITERAL) ) {\r\n alt91=2;\r\n }\r\n else if ( (LA91_0==FLOATING_POINT_LITERAL) ) {\r\n alt91=3;\r\n }\r\n else if ( (LA91_0==INTEGER_LITERAL) ) {\r\n alt91=4;\r\n }\r\n else if ( (LA91_0==LEFTBRACKET) ) {\r\n alt91=5;\r\n }\r\n else if ( (LA91_0==LEFTCURLYBRACKET) ) {\r\n alt91=6;\r\n }\r\n else if ( (LA91_0==NULL) ) {\r\n alt91=7;\r\n }\r\n else if ( (LA91_0==LEFTPAREN) ) {\r\n alt91=8;\r\n }\r\n else if ( (LA91_0==ABORT||LA91_0==CONTAIN||LA91_0==DEFAULT||LA91_0==DIRECTORY||LA91_0==DOES||LA91_0==EXIT||LA91_0==FILE||LA91_0==GREATER||(LA91_0 >= HTTP && LA91_0 <= IDENTIFIER)||LA91_0==INCLUDE||LA91_0==LESS||(LA91_0 >= LOCATION && LA91_0 <= LOCK)||LA91_0==LOOP||LA91_0==NEW||(LA91_0 >= PACKAGE && LA91_0 <= PARAM)||LA91_0==PRIVATE||(LA91_0 >= PUBLIC && LA91_0 <= QUERY)||(LA91_0 >= REMOTE && LA91_0 <= RETHROW)||LA91_0==SAVECONTENT||LA91_0==SETTING||(LA91_0 >= THAN && LA91_0 <= THREAD)||LA91_0==THROW||(LA91_0 >= TO && LA91_0 <= TRANSACTION)||LA91_0==VAR) ) {\r\n alt91=9;\r\n }\r\n else if ( (LA91_0==BREAK||(LA91_0 >= CASE && LA91_0 <= CATCH)||LA91_0==CONTINUE||LA91_0==DO||LA91_0==ELSE||LA91_0==FOR||LA91_0==FUNCTION||LA91_0==IF||(LA91_0 >= IMPORT && LA91_0 <= IN)||LA91_0==RETURN||LA91_0==SWITCH||LA91_0==TRY||LA91_0==WHILE) && ((!scriptMode))) {\r\n alt91=9;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 91, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt91) {\r\n case 1 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:901:4: STRING_LITERAL\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n STRING_LITERAL387=(Token)match(input,STRING_LITERAL,FOLLOW_STRING_LITERAL_in_primaryExpression5081); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n STRING_LITERAL387_tree = \r\n (CommonTree)adaptor.create(STRING_LITERAL387)\r\n ;\r\n adaptor.addChild(root_0, STRING_LITERAL387_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:902:4: BOOLEAN_LITERAL\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n BOOLEAN_LITERAL388=(Token)match(input,BOOLEAN_LITERAL,FOLLOW_BOOLEAN_LITERAL_in_primaryExpression5086); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n BOOLEAN_LITERAL388_tree = \r\n (CommonTree)adaptor.create(BOOLEAN_LITERAL388)\r\n ;\r\n adaptor.addChild(root_0, BOOLEAN_LITERAL388_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:903:4: FLOATING_POINT_LITERAL\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n FLOATING_POINT_LITERAL389=(Token)match(input,FLOATING_POINT_LITERAL,FOLLOW_FLOATING_POINT_LITERAL_in_primaryExpression5091); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n FLOATING_POINT_LITERAL389_tree = \r\n (CommonTree)adaptor.create(FLOATING_POINT_LITERAL389)\r\n ;\r\n adaptor.addChild(root_0, FLOATING_POINT_LITERAL389_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:904:4: INTEGER_LITERAL\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n INTEGER_LITERAL390=(Token)match(input,INTEGER_LITERAL,FOLLOW_INTEGER_LITERAL_in_primaryExpression5096); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n INTEGER_LITERAL390_tree = \r\n (CommonTree)adaptor.create(INTEGER_LITERAL390)\r\n ;\r\n adaptor.addChild(root_0, INTEGER_LITERAL390_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 5 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:905:4: implicitArray\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_implicitArray_in_primaryExpression5101);\r\n implicitArray391=implicitArray();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, implicitArray391.getTree());\r\n\r\n }\r\n break;\r\n case 6 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:906:4: implicitStruct\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_implicitStruct_in_primaryExpression5106);\r\n implicitStruct392=implicitStruct();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, implicitStruct392.getTree());\r\n\r\n }\r\n break;\r\n case 7 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:907:4: NULL\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n NULL393=(Token)match(input,NULL,FOLLOW_NULL_in_primaryExpression5111); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n NULL393_tree = \r\n (CommonTree)adaptor.create(NULL393)\r\n ;\r\n adaptor.addChild(root_0, NULL393_tree);\r\n }\r\n\r\n }\r\n break;\r\n case 8 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:908:4: '(' ! ( LT !)* assignmentExpression ( LT !)* ')' !\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n char_literal394=(Token)match(input,LEFTPAREN,FOLLOW_LEFTPAREN_in_primaryExpression5116); if (state.failed) return retval;\r\n\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:908:11: ( LT !)*\r\n loop89:\r\n do {\r\n int alt89=2;\r\n int LA89_0 = input.LA(1);\r\n\r\n if ( (LA89_0==LT) ) {\r\n alt89=1;\r\n }\r\n\r\n\r\n switch (alt89) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:908:11: LT !\r\n \t {\r\n \t LT395=(Token)match(input,LT,FOLLOW_LT_in_primaryExpression5119); if (state.failed) return retval;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop89;\r\n }\r\n } while (true);\r\n\r\n\r\n pushFollow(FOLLOW_assignmentExpression_in_primaryExpression5123);\r\n assignmentExpression396=assignmentExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, assignmentExpression396.getTree());\r\n\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:908:37: ( LT !)*\r\n loop90:\r\n do {\r\n int alt90=2;\r\n int LA90_0 = input.LA(1);\r\n\r\n if ( (LA90_0==LT) ) {\r\n alt90=1;\r\n }\r\n\r\n\r\n switch (alt90) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:908:37: LT !\r\n \t {\r\n \t LT397=(Token)match(input,LT,FOLLOW_LT_in_primaryExpression5125); if (state.failed) return retval;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop90;\r\n }\r\n } while (true);\r\n\r\n\r\n char_literal398=(Token)match(input,RIGHTPAREN,FOLLOW_RIGHTPAREN_in_primaryExpression5129); if (state.failed) return retval;\r\n\r\n }\r\n break;\r\n case 9 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:909:4: identifier\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_identifier_in_primaryExpression5135);\r\n identifier399=identifier();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, identifier399.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n\r\n \tcatch (RecognitionException e) {\r\n \t //System.out.println(\"cfscript.g\");\r\n \t errorReporter.reportError(e);\r\n \t recover(getTokenStream(),e);\r\n \t}\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 79, primaryExpression_StartIndex); }\r\n\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "78512b885ad6092d060332574dc9e780", "score": "0.6783708", "text": "@Nonnull\n private static IXP2PrimaryExpression _convertPrimaryExpression (@Nonnull final XP2Node aNode)\n {\n _expectNodeType (aNode, ParserXP2TreeConstants.JJTPRIMARYEXPR);\n final int nChildCount = aNode.jjtGetNumChildren ();\n if (nChildCount != 1)\n _throwUnexpectedChildrenCount (aNode, \"Expected exactly 1 child!\");\n\n final XP2Node aChildNode = aNode.jjtGetChild (0);\n switch (aChildNode.getNodeType ())\n {\n case ParserXP2TreeConstants.JJTLITERAL:\n return _convertLiteral (aChildNode);\n case ParserXP2TreeConstants.JJTVARREF:\n return _convertVarRef (aChildNode);\n case ParserXP2TreeConstants.JJTPARENTHESIZEDEXPR:\n return _convertParenthesizedExpression (aChildNode);\n case ParserXP2TreeConstants.JJTCONTEXTITEMEXPR:\n return _convertContextItemExpression (aChildNode);\n case ParserXP2TreeConstants.JJTFUNCTIONCALL:\n return _convertFunctionCall (aChildNode);\n default:\n throw new XP2HandlingException (aChildNode, \"Invalid node type for primary expression!\");\n }\n }", "title": "" }, { "docid": "ee3f88f00db0cbde6285c3a68bf9170c", "score": "0.67602235", "text": "public final void entryRuleXPrimaryExpression() throws RecognitionException {\r\n try {\r\n // InternalBugsly.g:805:1: ( ruleXPrimaryExpression EOF )\r\n // InternalBugsly.g:806:1: ruleXPrimaryExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleXPrimaryExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "5504b666d50bd283c3ff4c2b5e363603", "score": "0.6681934", "text": "public final EObject entryRulePrimaryExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePrimaryExpression = null;\n\n\n try {\n // InternalMASLParser.g:11070:58: (iv_rulePrimaryExpression= rulePrimaryExpression EOF )\n // InternalMASLParser.g:11071:2: iv_rulePrimaryExpression= rulePrimaryExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPrimaryExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n iv_rulePrimaryExpression=rulePrimaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePrimaryExpression; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "46b9594a39208fb35d52f9b9a4e64b48", "score": "0.66651636", "text": "public final JavascriptParser.primaryExpression_return primaryExpression() throws RecognitionException {\n JavascriptParser.primaryExpression_return retval = new JavascriptParser.primaryExpression_return();\n retval.start = input.LT(1);\n\n int primaryExpression_StartIndex = input.index();\n\n CommonTree root_0 = null;\n\n Token string_literal441=null;\n Token Identifier442=null;\n Token char_literal446=null;\n Token LT447=null;\n Token LT449=null;\n Token char_literal450=null;\n JavascriptParser.literal_return literal443 =null;\n\n JavascriptParser.arrayLiteral_return arrayLiteral444 =null;\n\n JavascriptParser.objectLiteral_return objectLiteral445 =null;\n\n JavascriptParser.expression_return expression448 =null;\n\n\n CommonTree string_literal441_tree=null;\n CommonTree Identifier442_tree=null;\n CommonTree char_literal446_tree=null;\n CommonTree LT447_tree=null;\n CommonTree LT449_tree=null;\n CommonTree char_literal450_tree=null;\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 76) ) { return retval; }\n\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:367:3: ( 'this' | Identifier | literal | arrayLiteral | objectLiteral | '(' ^ ( LT !)* expression ( LT !)* ')' )\n int alt220=6;\n switch ( input.LA(1) ) {\n case 97:\n {\n alt220=1;\n }\n break;\n case Identifier:\n {\n alt220=2;\n }\n break;\n case NumericLiteral:\n case StringLiteral:\n case 86:\n case 94:\n case 99:\n {\n alt220=3;\n }\n break;\n case 74:\n {\n alt220=4;\n }\n break;\n case 106:\n {\n alt220=5;\n }\n break;\n case 44:\n {\n alt220=6;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 220, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt220) {\n case 1 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:367:5: 'this'\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n string_literal441=(Token)match(input,97,FOLLOW_97_in_primaryExpression2631); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n string_literal441_tree = \n (CommonTree)adaptor.create(string_literal441)\n ;\n adaptor.addChild(root_0, string_literal441_tree);\n }\n\n }\n break;\n case 2 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:368:5: Identifier\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n Identifier442=(Token)match(input,Identifier,FOLLOW_Identifier_in_primaryExpression2637); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n Identifier442_tree = \n (CommonTree)adaptor.create(Identifier442)\n ;\n adaptor.addChild(root_0, Identifier442_tree);\n }\n\n }\n break;\n case 3 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:369:5: literal\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n pushFollow(FOLLOW_literal_in_primaryExpression2643);\n literal443=literal();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, literal443.getTree());\n\n }\n break;\n case 4 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:370:5: arrayLiteral\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n pushFollow(FOLLOW_arrayLiteral_in_primaryExpression2649);\n arrayLiteral444=arrayLiteral();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, arrayLiteral444.getTree());\n\n }\n break;\n case 5 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:371:5: objectLiteral\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n pushFollow(FOLLOW_objectLiteral_in_primaryExpression2655);\n objectLiteral445=objectLiteral();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, objectLiteral445.getTree());\n\n }\n break;\n case 6 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:372:5: '(' ^ ( LT !)* expression ( LT !)* ')'\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n char_literal446=(Token)match(input,44,FOLLOW_44_in_primaryExpression2661); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal446_tree = \n (CommonTree)adaptor.create(char_literal446)\n ;\n root_0 = (CommonTree)adaptor.becomeRoot(char_literal446_tree, root_0);\n }\n\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:372:12: ( LT !)*\n loop218:\n do {\n int alt218=2;\n int LA218_0 = input.LA(1);\n\n if ( (LA218_0==LT) ) {\n alt218=1;\n }\n\n\n switch (alt218) {\n \tcase 1 :\n \t // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:372:12: LT !\n \t {\n \t LT447=(Token)match(input,LT,FOLLOW_LT_in_primaryExpression2664); if (state.failed) return retval;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop218;\n }\n } while (true);\n\n\n pushFollow(FOLLOW_expression_in_primaryExpression2668);\n expression448=expression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, expression448.getTree());\n\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:372:28: ( LT !)*\n loop219:\n do {\n int alt219=2;\n int LA219_0 = input.LA(1);\n\n if ( (LA219_0==LT) ) {\n alt219=1;\n }\n\n\n switch (alt219) {\n \tcase 1 :\n \t // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:372:28: LT !\n \t {\n \t LT449=(Token)match(input,LT,FOLLOW_LT_in_primaryExpression2670); if (state.failed) return retval;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop219;\n }\n } while (true);\n\n\n char_literal450=(Token)match(input,45,FOLLOW_45_in_primaryExpression2674); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal450_tree = \n (CommonTree)adaptor.create(char_literal450)\n ;\n adaptor.addChild(root_0, char_literal450_tree);\n }\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 76, primaryExpression_StartIndex); }\n\n }\n return retval;\n }", "title": "" }, { "docid": "96adc332907106306152eaf7ead19a38", "score": "0.6642005", "text": "public final EObject entryRuleExpressionPrimary() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExpressionPrimary = null;\n\n\n try {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3726:2: (iv_ruleExpressionPrimary= ruleExpressionPrimary EOF )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3727:2: iv_ruleExpressionPrimary= ruleExpressionPrimary EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getExpressionPrimaryRule()); \n }\n pushFollow(FOLLOW_ruleExpressionPrimary_in_entryRuleExpressionPrimary8072);\n iv_ruleExpressionPrimary=ruleExpressionPrimary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleExpressionPrimary; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleExpressionPrimary8082); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "dd7fe4bafd41d686d10caee0030df320", "score": "0.6631413", "text": "public final BaseDescr primary() throws RecognitionException {\n BaseDescr result = null;\n\n Token i1=null;\n Token i2=null;\n Token DOT12=null;\n Token LEFT_PAREN13=null;\n Token COMMA14=null;\n Token RIGHT_PAREN15=null;\n Token SHARP16=null;\n Token HASH17=null;\n Token NULL_SAFE_DOT18=null;\n BaseDescr expr = null;\n\n DRL6Expressions.literal_return literal11 = null;\n\n\n try {\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:520:5: ( ( parExpression )=>expr= parExpression | ( nonWildcardTypeArguments )=> nonWildcardTypeArguments ( explicitGenericInvocationSuffix | this_key arguments ) | ( literal )=> literal | ( super_key )=> super_key superSuffix | ( new_key )=> new_key creator | ( primitiveType )=> primitiveType ( LEFT_SQUARE RIGHT_SQUARE )* DOT class_key | ( inlineMapExpression )=> inlineMapExpression | ( inlineListExpression )=> inlineListExpression | ( ID )=>i1= ID ( ( ( DOT ID )=> DOT i2= ID ) | ( ( DOT LEFT_PAREN )=> DOT LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( SHARP ID )=> SHARP i2= ID ) | ( ( HASH ID )=> HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT i2= ID ) )* ( ( identifierSuffix )=> identifierSuffix )? )\n int alt59=9;\n alt59 = dfa59.predict(input);\n switch (alt59) {\n case 1 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:520:7: ( parExpression )=>expr= parExpression\n {\n pushFollow(FOLLOW_parExpression_in_primary2695);\n expr=parExpression();\n\n state._fsp--;\n if (state.failed) return result;\n if ( state.backtracking==0 ) {\n if( buildDescr ) { result = expr; } \n }\n\n }\n break;\n case 2 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:521:9: ( nonWildcardTypeArguments )=> nonWildcardTypeArguments ( explicitGenericInvocationSuffix | this_key arguments )\n {\n pushFollow(FOLLOW_nonWildcardTypeArguments_in_primary2712);\n nonWildcardTypeArguments();\n\n state._fsp--;\n if (state.failed) return result;\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:521:63: ( explicitGenericInvocationSuffix | this_key arguments )\n int alt54=2;\n int LA54_0 = input.LA(1);\n\n if ( (LA54_0==ID) ) {\n int LA54_1 = input.LA(2);\n\n if ( (!((((helper.validateIdentifierKey(DroolsSoftKeywords.THIS)))))) ) {\n alt54=1;\n }\n else if ( (((helper.validateIdentifierKey(DroolsSoftKeywords.THIS)))) ) {\n alt54=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return result;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 54, 1, input);\n\n throw nvae;\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return result;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 54, 0, input);\n\n throw nvae;\n }\n switch (alt54) {\n case 1 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:521:64: explicitGenericInvocationSuffix\n {\n pushFollow(FOLLOW_explicitGenericInvocationSuffix_in_primary2715);\n explicitGenericInvocationSuffix();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n case 2 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:521:98: this_key arguments\n {\n pushFollow(FOLLOW_this_key_in_primary2719);\n this_key();\n\n state._fsp--;\n if (state.failed) return result;\n pushFollow(FOLLOW_arguments_in_primary2721);\n arguments();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n\n }\n\n\n }\n break;\n case 3 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:522:9: ( literal )=> literal\n {\n pushFollow(FOLLOW_literal_in_primary2737);\n literal11=literal();\n\n state._fsp--;\n if (state.failed) return result;\n if ( state.backtracking==0 ) {\n if( buildDescr ) { result = new AtomicExprDescr( (literal11!=null?input.toString(literal11.start,literal11.stop):null), true ); } \n }\n\n }\n break;\n case 4 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:524:9: ( super_key )=> super_key superSuffix\n {\n pushFollow(FOLLOW_super_key_in_primary2759);\n super_key();\n\n state._fsp--;\n if (state.failed) return result;\n pushFollow(FOLLOW_superSuffix_in_primary2761);\n superSuffix();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n case 5 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:525:9: ( new_key )=> new_key creator\n {\n pushFollow(FOLLOW_new_key_in_primary2776);\n new_key();\n\n state._fsp--;\n if (state.failed) return result;\n pushFollow(FOLLOW_creator_in_primary2778);\n creator();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n case 6 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:526:9: ( primitiveType )=> primitiveType ( LEFT_SQUARE RIGHT_SQUARE )* DOT class_key\n {\n pushFollow(FOLLOW_primitiveType_in_primary2793);\n primitiveType();\n\n state._fsp--;\n if (state.failed) return result;\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:526:41: ( LEFT_SQUARE RIGHT_SQUARE )*\n loop55:\n do {\n int alt55=2;\n int LA55_0 = input.LA(1);\n\n if ( (LA55_0==LEFT_SQUARE) ) {\n alt55=1;\n }\n\n\n switch (alt55) {\n \tcase 1 :\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:526:42: LEFT_SQUARE RIGHT_SQUARE\n \t {\n \t match(input,LEFT_SQUARE,FOLLOW_LEFT_SQUARE_in_primary2796); if (state.failed) return result;\n \t match(input,RIGHT_SQUARE,FOLLOW_RIGHT_SQUARE_in_primary2798); if (state.failed) return result;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop55;\n }\n } while (true);\n\n match(input,DOT,FOLLOW_DOT_in_primary2802); if (state.failed) return result;\n pushFollow(FOLLOW_class_key_in_primary2804);\n class_key();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n case 7 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:528:9: ( inlineMapExpression )=> inlineMapExpression\n {\n pushFollow(FOLLOW_inlineMapExpression_in_primary2824);\n inlineMapExpression();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n case 8 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:529:9: ( inlineListExpression )=> inlineListExpression\n {\n pushFollow(FOLLOW_inlineListExpression_in_primary2839);\n inlineListExpression();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n case 9 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:530:9: ( ID )=>i1= ID ( ( ( DOT ID )=> DOT i2= ID ) | ( ( DOT LEFT_PAREN )=> DOT LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( SHARP ID )=> SHARP i2= ID ) | ( ( HASH ID )=> HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT i2= ID ) )* ( ( identifierSuffix )=> identifierSuffix )?\n {\n i1=(Token)match(input,ID,FOLLOW_ID_in_primary2855); if (state.failed) return result;\n if ( state.backtracking==0 ) {\n helper.emit(i1, DroolsEditorType.IDENTIFIER); \n }\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:531:9: ( ( ( DOT ID )=> DOT i2= ID ) | ( ( DOT LEFT_PAREN )=> DOT LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN ) | ( ( SHARP ID )=> SHARP i2= ID ) | ( ( HASH ID )=> HASH i2= ID ) | ( ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT i2= ID ) )*\n loop57:\n do {\n int alt57=6;\n int LA57_0 = input.LA(1);\n\n if ( (LA57_0==DOT) ) {\n int LA57_2 = input.LA(2);\n\n if ( (LA57_2==ID) ) {\n int LA57_6 = input.LA(3);\n\n if ( (synpred28_DRL6Expressions()) ) {\n alt57=1;\n }\n\n\n }\n else if ( (LA57_2==LEFT_PAREN) && (synpred29_DRL6Expressions())) {\n alt57=2;\n }\n\n\n }\n else if ( (LA57_0==SHARP) && (synpred30_DRL6Expressions())) {\n alt57=3;\n }\n else if ( (LA57_0==HASH) && (synpred31_DRL6Expressions())) {\n alt57=4;\n }\n else if ( (LA57_0==NULL_SAFE_DOT) && (synpred32_DRL6Expressions())) {\n alt57=5;\n }\n\n\n switch (alt57) {\n \tcase 1 :\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:532:13: ( ( DOT ID )=> DOT i2= ID )\n \t {\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:532:13: ( ( DOT ID )=> DOT i2= ID )\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:532:15: ( DOT ID )=> DOT i2= ID\n \t {\n \t DOT12=(Token)match(input,DOT,FOLLOW_DOT_in_primary2889); if (state.failed) return result;\n \t i2=(Token)match(input,ID,FOLLOW_ID_in_primary2893); if (state.failed) return result;\n \t if ( state.backtracking==0 ) {\n \t helper.emit(DOT12, DroolsEditorType.SYMBOL); helper.emit(i2, DroolsEditorType.IDENTIFIER); \n \t }\n\n \t }\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:534:13: ( ( DOT LEFT_PAREN )=> DOT LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN )\n \t {\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:534:13: ( ( DOT LEFT_PAREN )=> DOT LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN )\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:534:15: ( DOT LEFT_PAREN )=> DOT LEFT_PAREN expression ( COMMA expression )* RIGHT_PAREN\n \t {\n \t match(input,DOT,FOLLOW_DOT_in_primary2933); if (state.failed) return result;\n \t LEFT_PAREN13=(Token)match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_primary2935); if (state.failed) return result;\n \t if ( state.backtracking==0 ) {\n \t helper.emit(DOT12, DroolsEditorType.SYMBOL); helper.emit(LEFT_PAREN13, DroolsEditorType.SYMBOL); \n \t }\n \t pushFollow(FOLLOW_expression_in_primary2975);\n \t expression();\n\n \t state._fsp--;\n \t if (state.failed) return result;\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:535:48: ( COMMA expression )*\n \t loop56:\n \t do {\n \t int alt56=2;\n \t int LA56_0 = input.LA(1);\n\n \t if ( (LA56_0==COMMA) ) {\n \t alt56=1;\n \t }\n\n\n \t switch (alt56) {\n \t \tcase 1 :\n \t \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:535:49: COMMA expression\n \t \t {\n \t \t COMMA14=(Token)match(input,COMMA,FOLLOW_COMMA_in_primary2978); if (state.failed) return result;\n \t \t if ( state.backtracking==0 ) {\n \t \t helper.emit(COMMA14, DroolsEditorType.SYMBOL); \n \t \t }\n \t \t pushFollow(FOLLOW_expression_in_primary2982);\n \t \t expression();\n\n \t \t state._fsp--;\n \t \t if (state.failed) return result;\n\n \t \t }\n \t \t break;\n\n \t \tdefault :\n \t \t break loop56;\n \t }\n \t } while (true);\n\n \t RIGHT_PAREN15=(Token)match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_primary3022); if (state.failed) return result;\n \t if ( state.backtracking==0 ) {\n \t helper.emit(RIGHT_PAREN15, DroolsEditorType.SYMBOL); \n \t }\n\n \t }\n\n\n \t }\n \t break;\n \tcase 3 :\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:539:13: ( ( SHARP ID )=> SHARP i2= ID )\n \t {\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:539:13: ( ( SHARP ID )=> SHARP i2= ID )\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:539:15: ( SHARP ID )=> SHARP i2= ID\n \t {\n \t SHARP16=(Token)match(input,SHARP,FOLLOW_SHARP_in_primary3074); if (state.failed) return result;\n \t i2=(Token)match(input,ID,FOLLOW_ID_in_primary3078); if (state.failed) return result;\n \t if ( state.backtracking==0 ) {\n \t helper.emit(SHARP16, DroolsEditorType.SYMBOL); helper.emit(i2, DroolsEditorType.IDENTIFIER); \n \t }\n\n \t }\n\n\n \t }\n \t break;\n \tcase 4 :\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:541:13: ( ( HASH ID )=> HASH i2= ID )\n \t {\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:541:13: ( ( HASH ID )=> HASH i2= ID )\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:541:15: ( HASH ID )=> HASH i2= ID\n \t {\n \t HASH17=(Token)match(input,HASH,FOLLOW_HASH_in_primary3118); if (state.failed) return result;\n \t i2=(Token)match(input,ID,FOLLOW_ID_in_primary3122); if (state.failed) return result;\n \t if ( state.backtracking==0 ) {\n \t helper.emit(HASH17, DroolsEditorType.SYMBOL); helper.emit(i2, DroolsEditorType.IDENTIFIER); \n \t }\n\n \t }\n\n\n \t }\n \t break;\n \tcase 5 :\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:543:13: ( ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT i2= ID )\n \t {\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:543:13: ( ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT i2= ID )\n \t // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:543:15: ( NULL_SAFE_DOT ID )=> NULL_SAFE_DOT i2= ID\n \t {\n \t NULL_SAFE_DOT18=(Token)match(input,NULL_SAFE_DOT,FOLLOW_NULL_SAFE_DOT_in_primary3162); if (state.failed) return result;\n \t i2=(Token)match(input,ID,FOLLOW_ID_in_primary3166); if (state.failed) return result;\n \t if ( state.backtracking==0 ) {\n \t helper.emit(NULL_SAFE_DOT18, DroolsEditorType.SYMBOL); helper.emit(i2, DroolsEditorType.IDENTIFIER); \n \t }\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop57;\n }\n } while (true);\n\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:544:12: ( ( identifierSuffix )=> identifierSuffix )?\n int alt58=2;\n alt58 = dfa58.predict(input);\n switch (alt58) {\n case 1 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:544:13: ( identifierSuffix )=> identifierSuffix\n {\n pushFollow(FOLLOW_identifierSuffix_in_primary3188);\n identifierSuffix();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n }\n\n catch (RecognitionException re) {\n throw re;\n }\n finally {\n }\n return result;\n }", "title": "" }, { "docid": "59419c453e4eacc274f04a92b82237b9", "score": "0.661459", "text": "public final void synpred163_CFML_fragment() throws RecognitionException {\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:827:4: ( primaryExpression )\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:827:4: primaryExpression\r\n {\r\n pushFollow(FOLLOW_primaryExpression_in_synpred163_CFML4585);\r\n primaryExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "fea4a0085b5975841599fb44048e6ad9", "score": "0.6607659", "text": "public final void rule__XPrimaryExpression__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2820:1: ( ( ruleXConstructorCall ) | ( ruleXBlockExpression ) | ( ruleXSwitchExpression ) | ( ruleXFeatureCall ) | ( ruleXLiteral ) | ( ruleXIfExpression ) | ( ruleXForLoopExpression ) | ( ruleXWhileExpression ) | ( ruleXDoWhileExpression ) | ( ruleXThrowExpression ) | ( ruleXReturnExpression ) | ( ruleXTryCatchFinallyExpression ) | ( ruleXParenthesizedExpression ) )\n int alt21=13;\n switch ( input.LA(1) ) {\n case 69:\n {\n alt21=1;\n }\n break;\n case 49:\n {\n alt21=2;\n }\n break;\n case 62:\n {\n alt21=3;\n }\n break;\n case RULE_ID:\n case 25:\n case 42:\n case 43:\n case 44:\n case 45:\n case 46:\n {\n alt21=4;\n }\n break;\n case RULE_HEX:\n case RULE_INT:\n case RULE_DECIMAL:\n case RULE_STRING:\n case 47:\n case 56:\n case 57:\n case 70:\n case 71:\n case 83:\n {\n alt21=5;\n }\n break;\n case 60:\n {\n alt21=6;\n }\n break;\n case 66:\n {\n alt21=7;\n }\n break;\n case 67:\n {\n alt21=8;\n }\n break;\n case 68:\n {\n alt21=9;\n }\n break;\n case 72:\n {\n alt21=10;\n }\n break;\n case 73:\n {\n alt21=11;\n }\n break;\n case 74:\n {\n alt21=12;\n }\n break;\n case 52:\n {\n alt21=13;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 21, 0, input);\n\n throw nvae;\n }\n\n switch (alt21) {\n case 1 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2821:1: ( ruleXConstructorCall )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2821:1: ( ruleXConstructorCall )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2822:1: ruleXConstructorCall\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); \n }\n pushFollow(FOLLOW_ruleXConstructorCall_in_rule__XPrimaryExpression__Alternatives6044);\n ruleXConstructorCall();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2827:6: ( ruleXBlockExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2827:6: ( ruleXBlockExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2828:1: ruleXBlockExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); \n }\n pushFollow(FOLLOW_ruleXBlockExpression_in_rule__XPrimaryExpression__Alternatives6061);\n ruleXBlockExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2833:6: ( ruleXSwitchExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2833:6: ( ruleXSwitchExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2834:1: ruleXSwitchExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); \n }\n pushFollow(FOLLOW_ruleXSwitchExpression_in_rule__XPrimaryExpression__Alternatives6078);\n ruleXSwitchExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); \n }\n\n }\n\n\n }\n break;\n case 4 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2839:6: ( ruleXFeatureCall )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2839:6: ( ruleXFeatureCall )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2840:1: ruleXFeatureCall\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_3()); \n }\n pushFollow(FOLLOW_ruleXFeatureCall_in_rule__XPrimaryExpression__Alternatives6095);\n ruleXFeatureCall();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_3()); \n }\n\n }\n\n\n }\n break;\n case 5 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2845:6: ( ruleXLiteral )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2845:6: ( ruleXLiteral )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2846:1: ruleXLiteral\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_4()); \n }\n pushFollow(FOLLOW_ruleXLiteral_in_rule__XPrimaryExpression__Alternatives6112);\n ruleXLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_4()); \n }\n\n }\n\n\n }\n break;\n case 6 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2851:6: ( ruleXIfExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2851:6: ( ruleXIfExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2852:1: ruleXIfExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_5()); \n }\n pushFollow(FOLLOW_ruleXIfExpression_in_rule__XPrimaryExpression__Alternatives6129);\n ruleXIfExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_5()); \n }\n\n }\n\n\n }\n break;\n case 7 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2857:6: ( ruleXForLoopExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2857:6: ( ruleXForLoopExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2858:1: ruleXForLoopExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_6()); \n }\n pushFollow(FOLLOW_ruleXForLoopExpression_in_rule__XPrimaryExpression__Alternatives6146);\n ruleXForLoopExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_6()); \n }\n\n }\n\n\n }\n break;\n case 8 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2863:6: ( ruleXWhileExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2863:6: ( ruleXWhileExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2864:1: ruleXWhileExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_7()); \n }\n pushFollow(FOLLOW_ruleXWhileExpression_in_rule__XPrimaryExpression__Alternatives6163);\n ruleXWhileExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_7()); \n }\n\n }\n\n\n }\n break;\n case 9 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2869:6: ( ruleXDoWhileExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2869:6: ( ruleXDoWhileExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2870:1: ruleXDoWhileExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_8()); \n }\n pushFollow(FOLLOW_ruleXDoWhileExpression_in_rule__XPrimaryExpression__Alternatives6180);\n ruleXDoWhileExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_8()); \n }\n\n }\n\n\n }\n break;\n case 10 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2875:6: ( ruleXThrowExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2875:6: ( ruleXThrowExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2876:1: ruleXThrowExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_9()); \n }\n pushFollow(FOLLOW_ruleXThrowExpression_in_rule__XPrimaryExpression__Alternatives6197);\n ruleXThrowExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_9()); \n }\n\n }\n\n\n }\n break;\n case 11 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2881:6: ( ruleXReturnExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2881:6: ( ruleXReturnExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2882:1: ruleXReturnExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_10()); \n }\n pushFollow(FOLLOW_ruleXReturnExpression_in_rule__XPrimaryExpression__Alternatives6214);\n ruleXReturnExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_10()); \n }\n\n }\n\n\n }\n break;\n case 12 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2887:6: ( ruleXTryCatchFinallyExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2887:6: ( ruleXTryCatchFinallyExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2888:1: ruleXTryCatchFinallyExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_11()); \n }\n pushFollow(FOLLOW_ruleXTryCatchFinallyExpression_in_rule__XPrimaryExpression__Alternatives6231);\n ruleXTryCatchFinallyExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_11()); \n }\n\n }\n\n\n }\n break;\n case 13 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2893:6: ( ruleXParenthesizedExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2893:6: ( ruleXParenthesizedExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:2894:1: ruleXParenthesizedExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_12()); \n }\n pushFollow(FOLLOW_ruleXParenthesizedExpression_in_rule__XPrimaryExpression__Alternatives6248);\n ruleXParenthesizedExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_12()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ae6b056c6a4835ea8de12192e6ecd4cb", "score": "0.6554273", "text": "public final JavaParser.primaryExpression_return primaryExpression() throws RecognitionException {\n JavaParser.primaryExpression_return retval = new JavaParser.primaryExpression_return();\n retval.start = input.LT(1);\n\n int primaryExpression_StartIndex = input.index();\n\n CommonTree root_0 = null;\n\n Token SUPER487=null;\n Token DOT489=null;\n Token IDENT490=null;\n Token IDENT492=null;\n Token THIS494=null;\n Token THIS496=null;\n Token SUPER498=null;\n Token SUPER500=null;\n Token DOT501=null;\n Token IDENT502=null;\n Token DOT506=null;\n Token CLASS507=null;\n Token VOID508=null;\n Token DOT509=null;\n Token CLASS510=null;\n JavaParser.parenthesizedExpression_return parenthesizedExpression482 =null;\n\n JavaParser.literal_return literal483 =null;\n\n JavaParser.newExpression_return newExpression484 =null;\n\n JavaParser.qualifiedIdentExpression_return qualifiedIdentExpression485 =null;\n\n JavaParser.genericTypeArgumentListSimplified_return genericTypeArgumentListSimplified486 =null;\n\n JavaParser.arguments_return arguments488 =null;\n\n JavaParser.arguments_return arguments491 =null;\n\n JavaParser.arguments_return arguments493 =null;\n\n JavaParser.arguments_return arguments495 =null;\n\n JavaParser.arguments_return arguments497 =null;\n\n JavaParser.arguments_return arguments499 =null;\n\n JavaParser.arguments_return arguments503 =null;\n\n JavaParser.primitiveType_return primitiveType504 =null;\n\n JavaParser.arrayDeclarator_return arrayDeclarator505 =null;\n\n\n CommonTree SUPER487_tree=null;\n CommonTree DOT489_tree=null;\n CommonTree IDENT490_tree=null;\n CommonTree IDENT492_tree=null;\n CommonTree THIS494_tree=null;\n CommonTree THIS496_tree=null;\n CommonTree SUPER498_tree=null;\n CommonTree SUPER500_tree=null;\n CommonTree DOT501_tree=null;\n CommonTree IDENT502_tree=null;\n CommonTree DOT506_tree=null;\n CommonTree CLASS507_tree=null;\n CommonTree VOID508_tree=null;\n CommonTree DOT509_tree=null;\n CommonTree CLASS510_tree=null;\n RewriteRuleTokenStream stream_IDENT=new RewriteRuleTokenStream(adaptor,\"token IDENT\");\n RewriteRuleTokenStream stream_CLASS=new RewriteRuleTokenStream(adaptor,\"token CLASS\");\n RewriteRuleTokenStream stream_VOID=new RewriteRuleTokenStream(adaptor,\"token VOID\");\n RewriteRuleTokenStream stream_SUPER=new RewriteRuleTokenStream(adaptor,\"token SUPER\");\n RewriteRuleTokenStream stream_DOT=new RewriteRuleTokenStream(adaptor,\"token DOT\");\n RewriteRuleTokenStream stream_THIS=new RewriteRuleTokenStream(adaptor,\"token THIS\");\n RewriteRuleSubtreeStream stream_arrayDeclarator=new RewriteRuleSubtreeStream(adaptor,\"rule arrayDeclarator\");\n RewriteRuleSubtreeStream stream_arguments=new RewriteRuleSubtreeStream(adaptor,\"rule arguments\");\n RewriteRuleSubtreeStream stream_primitiveType=new RewriteRuleSubtreeStream(adaptor,\"rule primitiveType\");\n RewriteRuleSubtreeStream stream_genericTypeArgumentListSimplified=new RewriteRuleSubtreeStream(adaptor,\"rule genericTypeArgumentListSimplified\");\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 120) ) { return retval; }\n\n // Java.g:1331:5: ( parenthesizedExpression | literal | newExpression | qualifiedIdentExpression | genericTypeArgumentListSimplified ( SUPER ( arguments -> ^( SUPER_CONSTRUCTOR_CALL[$SUPER, \\\"SUPER_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments ) | DOT IDENT arguments -> ^( METHOD_CALL ^( DOT SUPER IDENT ) genericTypeArgumentListSimplified arguments ) ) | IDENT arguments -> ^( METHOD_CALL IDENT genericTypeArgumentListSimplified arguments ) | THIS arguments -> ^( THIS_CONSTRUCTOR_CALL[$THIS, \\\"THIS_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments ) ) | ( THIS -> THIS ) ( arguments -> ^( THIS_CONSTRUCTOR_CALL[$THIS, \\\"THIS_CONSTRUCTOR_CALL\\\"] arguments ) )? | SUPER arguments -> ^( SUPER_CONSTRUCTOR_CALL[$SUPER, \\\"SUPER_CONSTRUCTOR_CALL\\\"] arguments ) | ( SUPER DOT IDENT ) ( arguments -> ^( METHOD_CALL ^( DOT SUPER IDENT ) arguments ) | -> ^( DOT SUPER IDENT ) ) | ( primitiveType -> primitiveType ) ( arrayDeclarator -> ^( arrayDeclarator $primaryExpression) )* DOT CLASS -> ^( DOT $primaryExpression CLASS ) | VOID DOT CLASS -> ^( DOT VOID CLASS ) )\n int alt143=10;\n switch ( input.LA(1) ) {\n case LPAREN:\n {\n alt143=1;\n }\n break;\n case CHARACTER_LITERAL:\n case DECIMAL_LITERAL:\n case FALSE:\n case FLOATING_POINT_LITERAL:\n case HEX_LITERAL:\n case NULL:\n case OCTAL_LITERAL:\n case STRING_LITERAL:\n case TRUE:\n {\n alt143=2;\n }\n break;\n case NEW:\n {\n alt143=3;\n }\n break;\n case IDENT:\n {\n alt143=4;\n }\n break;\n case LESS_THAN:\n {\n alt143=5;\n }\n break;\n case THIS:\n {\n alt143=6;\n }\n break;\n case SUPER:\n {\n int LA143_7 = input.LA(2);\n\n if ( (LA143_7==DOT) ) {\n alt143=8;\n }\n else if ( (LA143_7==LPAREN) ) {\n alt143=7;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 143, 7, input);\n\n throw nvae;\n\n }\n }\n break;\n case BOOLEAN:\n case BYTE:\n case CHAR:\n case DOUBLE:\n case FLOAT:\n case INT:\n case LONG:\n case SHORT:\n {\n alt143=9;\n }\n break;\n case VOID:\n {\n alt143=10;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 143, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt143) {\n case 1 :\n // Java.g:1331:9: parenthesizedExpression\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n pushFollow(FOLLOW_parenthesizedExpression_in_primaryExpression12510);\n parenthesizedExpression482=parenthesizedExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, parenthesizedExpression482.getTree());\n\n }\n break;\n case 2 :\n // Java.g:1332:9: literal\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n pushFollow(FOLLOW_literal_in_primaryExpression12520);\n literal483=literal();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, literal483.getTree());\n\n }\n break;\n case 3 :\n // Java.g:1333:9: newExpression\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n pushFollow(FOLLOW_newExpression_in_primaryExpression12530);\n newExpression484=newExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, newExpression484.getTree());\n\n }\n break;\n case 4 :\n // Java.g:1334:9: qualifiedIdentExpression\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n pushFollow(FOLLOW_qualifiedIdentExpression_in_primaryExpression12540);\n qualifiedIdentExpression485=qualifiedIdentExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, qualifiedIdentExpression485.getTree());\n\n }\n break;\n case 5 :\n // Java.g:1335:9: genericTypeArgumentListSimplified ( SUPER ( arguments -> ^( SUPER_CONSTRUCTOR_CALL[$SUPER, \\\"SUPER_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments ) | DOT IDENT arguments -> ^( METHOD_CALL ^( DOT SUPER IDENT ) genericTypeArgumentListSimplified arguments ) ) | IDENT arguments -> ^( METHOD_CALL IDENT genericTypeArgumentListSimplified arguments ) | THIS arguments -> ^( THIS_CONSTRUCTOR_CALL[$THIS, \\\"THIS_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments ) )\n {\n pushFollow(FOLLOW_genericTypeArgumentListSimplified_in_primaryExpression12550);\n genericTypeArgumentListSimplified486=genericTypeArgumentListSimplified();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_genericTypeArgumentListSimplified.add(genericTypeArgumentListSimplified486.getTree());\n\n // Java.g:1336:9: ( SUPER ( arguments -> ^( SUPER_CONSTRUCTOR_CALL[$SUPER, \\\"SUPER_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments ) | DOT IDENT arguments -> ^( METHOD_CALL ^( DOT SUPER IDENT ) genericTypeArgumentListSimplified arguments ) ) | IDENT arguments -> ^( METHOD_CALL IDENT genericTypeArgumentListSimplified arguments ) | THIS arguments -> ^( THIS_CONSTRUCTOR_CALL[$THIS, \\\"THIS_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments ) )\n int alt139=3;\n switch ( input.LA(1) ) {\n case SUPER:\n {\n alt139=1;\n }\n break;\n case IDENT:\n {\n alt139=2;\n }\n break;\n case THIS:\n {\n alt139=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 139, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt139) {\n case 1 :\n // Java.g:1336:13: SUPER ( arguments -> ^( SUPER_CONSTRUCTOR_CALL[$SUPER, \\\"SUPER_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments ) | DOT IDENT arguments -> ^( METHOD_CALL ^( DOT SUPER IDENT ) genericTypeArgumentListSimplified arguments ) )\n {\n SUPER487=(Token)match(input,SUPER,FOLLOW_SUPER_in_primaryExpression12565); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_SUPER.add(SUPER487);\n\n\n // Java.g:1337:13: ( arguments -> ^( SUPER_CONSTRUCTOR_CALL[$SUPER, \\\"SUPER_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments ) | DOT IDENT arguments -> ^( METHOD_CALL ^( DOT SUPER IDENT ) genericTypeArgumentListSimplified arguments ) )\n int alt138=2;\n int LA138_0 = input.LA(1);\n\n if ( (LA138_0==LPAREN) ) {\n alt138=1;\n }\n else if ( (LA138_0==DOT) ) {\n alt138=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 138, 0, input);\n\n throw nvae;\n\n }\n switch (alt138) {\n case 1 :\n // Java.g:1337:17: arguments\n {\n pushFollow(FOLLOW_arguments_in_primaryExpression12583);\n arguments488=arguments();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_arguments.add(arguments488.getTree());\n\n // AST REWRITE\n // elements: arguments, genericTypeArgumentListSimplified\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1337:57: -> ^( SUPER_CONSTRUCTOR_CALL[$SUPER, \\\"SUPER_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments )\n {\n // Java.g:1337:61: ^( SUPER_CONSTRUCTOR_CALL[$SUPER, \\\"SUPER_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(\n (CommonTree)adaptor.create(SUPER_CONSTRUCTOR_CALL, SUPER487, \"SUPER_CONSTRUCTOR_CALL\")\n , root_1);\n\n adaptor.addChild(root_1, stream_genericTypeArgumentListSimplified.nextTree());\n\n adaptor.addChild(root_1, stream_arguments.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n case 2 :\n // Java.g:1338:17: DOT IDENT arguments\n {\n DOT489=(Token)match(input,DOT,FOLLOW_DOT_in_primaryExpression12643); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_DOT.add(DOT489);\n\n\n IDENT490=(Token)match(input,IDENT,FOLLOW_IDENT_in_primaryExpression12645); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_IDENT.add(IDENT490);\n\n\n pushFollow(FOLLOW_arguments_in_primaryExpression12647);\n arguments491=arguments();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_arguments.add(arguments491.getTree());\n\n // AST REWRITE\n // elements: IDENT, SUPER, arguments, DOT, genericTypeArgumentListSimplified\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1338:57: -> ^( METHOD_CALL ^( DOT SUPER IDENT ) genericTypeArgumentListSimplified arguments )\n {\n // Java.g:1338:61: ^( METHOD_CALL ^( DOT SUPER IDENT ) genericTypeArgumentListSimplified arguments )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(\n (CommonTree)adaptor.create(METHOD_CALL, \"METHOD_CALL\")\n , root_1);\n\n // Java.g:1338:75: ^( DOT SUPER IDENT )\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot(\n stream_DOT.nextNode()\n , root_2);\n\n adaptor.addChild(root_2, \n stream_SUPER.nextNode()\n );\n\n adaptor.addChild(root_2, \n stream_IDENT.nextNode()\n );\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_1, stream_genericTypeArgumentListSimplified.nextTree());\n\n adaptor.addChild(root_1, stream_arguments.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n\n }\n\n\n }\n break;\n case 2 :\n // Java.g:1340:13: IDENT arguments\n {\n IDENT492=(Token)match(input,IDENT,FOLLOW_IDENT_in_primaryExpression12714); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_IDENT.add(IDENT492);\n\n\n pushFollow(FOLLOW_arguments_in_primaryExpression12716);\n arguments493=arguments();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_arguments.add(arguments493.getTree());\n\n // AST REWRITE\n // elements: genericTypeArgumentListSimplified, arguments, IDENT\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1340:57: -> ^( METHOD_CALL IDENT genericTypeArgumentListSimplified arguments )\n {\n // Java.g:1340:61: ^( METHOD_CALL IDENT genericTypeArgumentListSimplified arguments )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(\n (CommonTree)adaptor.create(METHOD_CALL, \"METHOD_CALL\")\n , root_1);\n\n adaptor.addChild(root_1, \n stream_IDENT.nextNode()\n );\n\n adaptor.addChild(root_1, stream_genericTypeArgumentListSimplified.nextTree());\n\n adaptor.addChild(root_1, stream_arguments.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n case 3 :\n // Java.g:1341:13: THIS arguments\n {\n THIS494=(Token)match(input,THIS,FOLLOW_THIS_in_primaryExpression12771); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_THIS.add(THIS494);\n\n\n pushFollow(FOLLOW_arguments_in_primaryExpression12773);\n arguments495=arguments();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_arguments.add(arguments495.getTree());\n\n // AST REWRITE\n // elements: arguments, genericTypeArgumentListSimplified\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1341:57: -> ^( THIS_CONSTRUCTOR_CALL[$THIS, \\\"THIS_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments )\n {\n // Java.g:1341:61: ^( THIS_CONSTRUCTOR_CALL[$THIS, \\\"THIS_CONSTRUCTOR_CALL\\\"] genericTypeArgumentListSimplified arguments )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(\n (CommonTree)adaptor.create(THIS_CONSTRUCTOR_CALL, THIS494, \"THIS_CONSTRUCTOR_CALL\")\n , root_1);\n\n adaptor.addChild(root_1, stream_genericTypeArgumentListSimplified.nextTree());\n\n adaptor.addChild(root_1, stream_arguments.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n\n }\n\n\n }\n break;\n case 6 :\n // Java.g:1343:9: ( THIS -> THIS ) ( arguments -> ^( THIS_CONSTRUCTOR_CALL[$THIS, \\\"THIS_CONSTRUCTOR_CALL\\\"] arguments ) )?\n {\n // Java.g:1343:9: ( THIS -> THIS )\n // Java.g:1343:13: THIS\n {\n THIS496=(Token)match(input,THIS,FOLLOW_THIS_in_primaryExpression12838); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_THIS.add(THIS496);\n\n\n // AST REWRITE\n // elements: THIS\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1343:57: -> THIS\n {\n adaptor.addChild(root_0, \n stream_THIS.nextNode()\n );\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n\n\n // Java.g:1345:9: ( arguments -> ^( THIS_CONSTRUCTOR_CALL[$THIS, \\\"THIS_CONSTRUCTOR_CALL\\\"] arguments ) )?\n int alt140=2;\n int LA140_0 = input.LA(1);\n\n if ( (LA140_0==LPAREN) ) {\n alt140=1;\n }\n switch (alt140) {\n case 1 :\n // Java.g:1345:13: arguments\n {\n pushFollow(FOLLOW_arguments_in_primaryExpression12906);\n arguments497=arguments();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_arguments.add(arguments497.getTree());\n\n // AST REWRITE\n // elements: arguments\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1345:57: -> ^( THIS_CONSTRUCTOR_CALL[$THIS, \\\"THIS_CONSTRUCTOR_CALL\\\"] arguments )\n {\n // Java.g:1345:61: ^( THIS_CONSTRUCTOR_CALL[$THIS, \\\"THIS_CONSTRUCTOR_CALL\\\"] arguments )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(\n (CommonTree)adaptor.create(THIS_CONSTRUCTOR_CALL, THIS496, \"THIS_CONSTRUCTOR_CALL\")\n , root_1);\n\n adaptor.addChild(root_1, stream_arguments.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n\n }\n\n\n }\n break;\n case 7 :\n // Java.g:1347:9: SUPER arguments\n {\n SUPER498=(Token)match(input,SUPER,FOLLOW_SUPER_in_primaryExpression12971); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_SUPER.add(SUPER498);\n\n\n pushFollow(FOLLOW_arguments_in_primaryExpression12973);\n arguments499=arguments();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_arguments.add(arguments499.getTree());\n\n // AST REWRITE\n // elements: arguments\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1347:57: -> ^( SUPER_CONSTRUCTOR_CALL[$SUPER, \\\"SUPER_CONSTRUCTOR_CALL\\\"] arguments )\n {\n // Java.g:1347:61: ^( SUPER_CONSTRUCTOR_CALL[$SUPER, \\\"SUPER_CONSTRUCTOR_CALL\\\"] arguments )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(\n (CommonTree)adaptor.create(SUPER_CONSTRUCTOR_CALL, SUPER498, \"SUPER_CONSTRUCTOR_CALL\")\n , root_1);\n\n adaptor.addChild(root_1, stream_arguments.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n case 8 :\n // Java.g:1348:9: ( SUPER DOT IDENT ) ( arguments -> ^( METHOD_CALL ^( DOT SUPER IDENT ) arguments ) | -> ^( DOT SUPER IDENT ) )\n {\n // Java.g:1348:9: ( SUPER DOT IDENT )\n // Java.g:1348:13: SUPER DOT IDENT\n {\n SUPER500=(Token)match(input,SUPER,FOLLOW_SUPER_in_primaryExpression13029); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_SUPER.add(SUPER500);\n\n\n DOT501=(Token)match(input,DOT,FOLLOW_DOT_in_primaryExpression13031); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_DOT.add(DOT501);\n\n\n IDENT502=(Token)match(input,IDENT,FOLLOW_IDENT_in_primaryExpression13033); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_IDENT.add(IDENT502);\n\n\n }\n\n\n // Java.g:1350:9: ( arguments -> ^( METHOD_CALL ^( DOT SUPER IDENT ) arguments ) | -> ^( DOT SUPER IDENT ) )\n int alt141=2;\n int LA141_0 = input.LA(1);\n\n if ( (LA141_0==LPAREN) ) {\n alt141=1;\n }\n else if ( (LA141_0==EOF||(LA141_0 >= AND && LA141_0 <= AND_ASSIGN)||LA141_0==ASSIGN||(LA141_0 >= BIT_SHIFT_RIGHT && LA141_0 <= BIT_SHIFT_RIGHT_ASSIGN)||(LA141_0 >= COLON && LA141_0 <= COMMA)||LA141_0==DEC||(LA141_0 >= DIV && LA141_0 <= DIV_ASSIGN)||LA141_0==DOT||LA141_0==EQUAL||(LA141_0 >= GREATER_OR_EQUAL && LA141_0 <= GREATER_THAN)||(LA141_0 >= INC && LA141_0 <= INSTANCEOF)||LA141_0==LBRACK||(LA141_0 >= LESS_OR_EQUAL && LA141_0 <= LESS_THAN)||LA141_0==LOGICAL_AND||LA141_0==LOGICAL_OR||(LA141_0 >= MINUS && LA141_0 <= MOD)||LA141_0==MOD_ASSIGN||LA141_0==NOT_EQUAL||(LA141_0 >= OR && LA141_0 <= OR_ASSIGN)||(LA141_0 >= PLUS && LA141_0 <= PLUS_ASSIGN)||(LA141_0 >= QUESTION && LA141_0 <= RCURLY)||(LA141_0 >= RPAREN && LA141_0 <= SHIFT_RIGHT_ASSIGN)||(LA141_0 >= STAR && LA141_0 <= STAR_ASSIGN)||(LA141_0 >= XOR && LA141_0 <= XOR_ASSIGN)) ) {\n alt141=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 141, 0, input);\n\n throw nvae;\n\n }\n switch (alt141) {\n case 1 :\n // Java.g:1350:13: arguments\n {\n pushFollow(FOLLOW_arguments_in_primaryExpression13057);\n arguments503=arguments();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_arguments.add(arguments503.getTree());\n\n // AST REWRITE\n // elements: IDENT, arguments, DOT, SUPER\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1350:57: -> ^( METHOD_CALL ^( DOT SUPER IDENT ) arguments )\n {\n // Java.g:1350:61: ^( METHOD_CALL ^( DOT SUPER IDENT ) arguments )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(\n (CommonTree)adaptor.create(METHOD_CALL, \"METHOD_CALL\")\n , root_1);\n\n // Java.g:1350:75: ^( DOT SUPER IDENT )\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot(\n stream_DOT.nextNode()\n , root_2);\n\n adaptor.addChild(root_2, \n stream_SUPER.nextNode()\n );\n\n adaptor.addChild(root_2, \n stream_IDENT.nextNode()\n );\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_1, stream_arguments.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n case 2 :\n // Java.g:1351:57: \n {\n // AST REWRITE\n // elements: DOT, IDENT, SUPER\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1351:57: -> ^( DOT SUPER IDENT )\n {\n // Java.g:1351:61: ^( DOT SUPER IDENT )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(\n stream_DOT.nextNode()\n , root_1);\n\n adaptor.addChild(root_1, \n stream_SUPER.nextNode()\n );\n\n adaptor.addChild(root_1, \n stream_IDENT.nextNode()\n );\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n\n }\n\n\n }\n break;\n case 9 :\n // Java.g:1353:9: ( primitiveType -> primitiveType ) ( arrayDeclarator -> ^( arrayDeclarator $primaryExpression) )* DOT CLASS\n {\n // Java.g:1353:9: ( primitiveType -> primitiveType )\n // Java.g:1353:13: primitiveType\n {\n pushFollow(FOLLOW_primitiveType_in_primaryExpression13199);\n primitiveType504=primitiveType();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) stream_primitiveType.add(primitiveType504.getTree());\n\n // AST REWRITE\n // elements: primitiveType\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1353:57: -> primitiveType\n {\n adaptor.addChild(root_0, stream_primitiveType.nextTree());\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n\n\n // Java.g:1355:9: ( arrayDeclarator -> ^( arrayDeclarator $primaryExpression) )*\n loop142:\n do {\n int alt142=2;\n int LA142_0 = input.LA(1);\n\n if ( (LA142_0==LBRACK) ) {\n alt142=1;\n }\n\n\n switch (alt142) {\n \tcase 1 :\n \t // Java.g:1355:13: arrayDeclarator\n \t {\n \t pushFollow(FOLLOW_arrayDeclarator_in_primaryExpression13258);\n \t arrayDeclarator505=arrayDeclarator();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) stream_arrayDeclarator.add(arrayDeclarator505.getTree());\n\n \t // AST REWRITE\n \t // elements: primaryExpression, arrayDeclarator\n \t // token labels: \n \t // rule labels: retval\n \t // token list labels: \n \t // rule list labels: \n \t // wildcard labels: \n \t if ( state.backtracking==0 ) {\n\n \t retval.tree = root_0;\n \t RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n \t root_0 = (CommonTree)adaptor.nil();\n \t // 1355:57: -> ^( arrayDeclarator $primaryExpression)\n \t {\n \t // Java.g:1355:61: ^( arrayDeclarator $primaryExpression)\n \t {\n \t CommonTree root_1 = (CommonTree)adaptor.nil();\n \t root_1 = (CommonTree)adaptor.becomeRoot(stream_arrayDeclarator.nextNode(), root_1);\n\n \t adaptor.addChild(root_1, stream_retval.nextTree());\n\n \t adaptor.addChild(root_0, root_1);\n \t }\n\n \t }\n\n\n \t retval.tree = root_0;\n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop142;\n }\n } while (true);\n\n\n DOT506=(Token)match(input,DOT,FOLLOW_DOT_in_primaryExpression13321); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_DOT.add(DOT506);\n\n\n CLASS507=(Token)match(input,CLASS,FOLLOW_CLASS_in_primaryExpression13323); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_CLASS.add(CLASS507);\n\n\n // AST REWRITE\n // elements: primaryExpression, DOT, CLASS\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1357:57: -> ^( DOT $primaryExpression CLASS )\n {\n // Java.g:1357:61: ^( DOT $primaryExpression CLASS )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(\n stream_DOT.nextNode()\n , root_1);\n\n adaptor.addChild(root_1, stream_retval.nextTree());\n\n adaptor.addChild(root_1, \n stream_CLASS.nextNode()\n );\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n case 10 :\n // Java.g:1358:9: VOID DOT CLASS\n {\n VOID508=(Token)match(input,VOID,FOLLOW_VOID_in_primaryExpression13383); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_VOID.add(VOID508);\n\n\n DOT509=(Token)match(input,DOT,FOLLOW_DOT_in_primaryExpression13385); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_DOT.add(DOT509);\n\n\n CLASS510=(Token)match(input,CLASS,FOLLOW_CLASS_in_primaryExpression13387); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_CLASS.add(CLASS510);\n\n\n // AST REWRITE\n // elements: VOID, DOT, CLASS\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 1358:57: -> ^( DOT VOID CLASS )\n {\n // Java.g:1358:61: ^( DOT VOID CLASS )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(\n stream_DOT.nextNode()\n , root_1);\n\n adaptor.addChild(root_1, \n stream_VOID.nextNode()\n );\n\n adaptor.addChild(root_1, \n stream_CLASS.nextNode()\n );\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n\n retval.tree = root_0;\n }\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 120, primaryExpression_StartIndex); }\n\n }\n return retval;\n }", "title": "" }, { "docid": "b39f8e22a889f891a4e64730f084aac9", "score": "0.64359397", "text": "public final void rule__XPrimaryExpression__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:2664:1: ( ( ruleXConstructorCall ) | ( ruleXBlockExpression ) | ( ruleXSwitchExpression ) | ( ( ruleXSynchronizedExpression ) ) | ( ruleXFeatureCall ) | ( ruleXLiteral ) | ( ruleXIfExpression ) | ( ( ruleXForLoopExpression ) ) | ( ruleXBasicForLoopExpression ) | ( ruleXWhileExpression ) | ( ruleXDoWhileExpression ) | ( ruleXThrowExpression ) | ( ruleXReturnExpression ) | ( ruleXTryCatchFinallyExpression ) | ( ruleXParenthesizedExpression ) )\r\n int alt23=15;\r\n alt23 = dfa23.predict(input);\r\n switch (alt23) {\r\n case 1 :\r\n // InternalBugsly.g:2665:2: ( ruleXConstructorCall )\r\n {\r\n // InternalBugsly.g:2665:2: ( ruleXConstructorCall )\r\n // InternalBugsly.g:2666:3: ruleXConstructorCall\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXConstructorCall();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalBugsly.g:2671:2: ( ruleXBlockExpression )\r\n {\r\n // InternalBugsly.g:2671:2: ( ruleXBlockExpression )\r\n // InternalBugsly.g:2672:3: ruleXBlockExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXBlockExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalBugsly.g:2677:2: ( ruleXSwitchExpression )\r\n {\r\n // InternalBugsly.g:2677:2: ( ruleXSwitchExpression )\r\n // InternalBugsly.g:2678:3: ruleXSwitchExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXSwitchExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // InternalBugsly.g:2683:2: ( ( ruleXSynchronizedExpression ) )\r\n {\r\n // InternalBugsly.g:2683:2: ( ( ruleXSynchronizedExpression ) )\r\n // InternalBugsly.g:2684:3: ( ruleXSynchronizedExpression )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); \r\n }\r\n // InternalBugsly.g:2685:3: ( ruleXSynchronizedExpression )\r\n // InternalBugsly.g:2685:4: ruleXSynchronizedExpression\r\n {\r\n pushFollow(FOLLOW_2);\r\n ruleXSynchronizedExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // InternalBugsly.g:2689:2: ( ruleXFeatureCall )\r\n {\r\n // InternalBugsly.g:2689:2: ( ruleXFeatureCall )\r\n // InternalBugsly.g:2690:3: ruleXFeatureCall\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXFeatureCall();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // InternalBugsly.g:2695:2: ( ruleXLiteral )\r\n {\r\n // InternalBugsly.g:2695:2: ( ruleXLiteral )\r\n // InternalBugsly.g:2696:3: ruleXLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 7 :\r\n // InternalBugsly.g:2701:2: ( ruleXIfExpression )\r\n {\r\n // InternalBugsly.g:2701:2: ( ruleXIfExpression )\r\n // InternalBugsly.g:2702:3: ruleXIfExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXIfExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 8 :\r\n // InternalBugsly.g:2707:2: ( ( ruleXForLoopExpression ) )\r\n {\r\n // InternalBugsly.g:2707:2: ( ( ruleXForLoopExpression ) )\r\n // InternalBugsly.g:2708:3: ( ruleXForLoopExpression )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); \r\n }\r\n // InternalBugsly.g:2709:3: ( ruleXForLoopExpression )\r\n // InternalBugsly.g:2709:4: ruleXForLoopExpression\r\n {\r\n pushFollow(FOLLOW_2);\r\n ruleXForLoopExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 9 :\r\n // InternalBugsly.g:2713:2: ( ruleXBasicForLoopExpression )\r\n {\r\n // InternalBugsly.g:2713:2: ( ruleXBasicForLoopExpression )\r\n // InternalBugsly.g:2714:3: ruleXBasicForLoopExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXBasicForLoopExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 10 :\r\n // InternalBugsly.g:2719:2: ( ruleXWhileExpression )\r\n {\r\n // InternalBugsly.g:2719:2: ( ruleXWhileExpression )\r\n // InternalBugsly.g:2720:3: ruleXWhileExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXWhileExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 11 :\r\n // InternalBugsly.g:2725:2: ( ruleXDoWhileExpression )\r\n {\r\n // InternalBugsly.g:2725:2: ( ruleXDoWhileExpression )\r\n // InternalBugsly.g:2726:3: ruleXDoWhileExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXDoWhileExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 12 :\r\n // InternalBugsly.g:2731:2: ( ruleXThrowExpression )\r\n {\r\n // InternalBugsly.g:2731:2: ( ruleXThrowExpression )\r\n // InternalBugsly.g:2732:3: ruleXThrowExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXThrowExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 13 :\r\n // InternalBugsly.g:2737:2: ( ruleXReturnExpression )\r\n {\r\n // InternalBugsly.g:2737:2: ( ruleXReturnExpression )\r\n // InternalBugsly.g:2738:3: ruleXReturnExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXReturnExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 14 :\r\n // InternalBugsly.g:2743:2: ( ruleXTryCatchFinallyExpression )\r\n {\r\n // InternalBugsly.g:2743:2: ( ruleXTryCatchFinallyExpression )\r\n // InternalBugsly.g:2744:3: ruleXTryCatchFinallyExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXTryCatchFinallyExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 15 :\r\n // InternalBugsly.g:2749:2: ( ruleXParenthesizedExpression )\r\n {\r\n // InternalBugsly.g:2749:2: ( ruleXParenthesizedExpression )\r\n // InternalBugsly.g:2750:3: ruleXParenthesizedExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXParenthesizedExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "de14d5512f3ac6c69090b4639fcff53d", "score": "0.64003205", "text": "public final void ruleXPrimaryExpression() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:386:2: ( ( ( rule__XPrimaryExpression__Alternatives ) ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:387:1: ( ( rule__XPrimaryExpression__Alternatives ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:387:1: ( ( rule__XPrimaryExpression__Alternatives ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:388:1: ( rule__XPrimaryExpression__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getAlternatives()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:389:1: ( rule__XPrimaryExpression__Alternatives )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:389:2: rule__XPrimaryExpression__Alternatives\r\n {\r\n pushFollow(FOLLOW_rule__XPrimaryExpression__Alternatives_in_ruleXPrimaryExpression764);\r\n rule__XPrimaryExpression__Alternatives();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getAlternatives()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "4235a7b1900584cf665994d87802b061", "score": "0.639321", "text": "public final Lime2Parser.primary_expression_return primary_expression() throws RecognitionException {\n Lime2Parser.primary_expression_return retval = new Lime2Parser.primary_expression_return();\n retval.start = input.LT(1);\n\n\n CTree root_0 = null;\n\n Token ID89=null;\n Token INT90=null;\n Token char_literal91=null;\n Token char_literal93=null;\n Lime2Parser.expression_return expression92 =null;\n\n\n CTree ID89_tree=null;\n CTree INT90_tree=null;\n CTree char_literal91_tree=null;\n CTree char_literal93_tree=null;\n\n try {\n // ll\\\\Lime2.g:85:3: ( ID | INT | '(' expression ')' )\n int alt19=3;\n switch ( input.LA(1) ) {\n case ID:\n {\n alt19=1;\n }\n break;\n case INT:\n {\n alt19=2;\n }\n break;\n case 34:\n {\n alt19=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 19, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt19) {\n case 1 :\n // ll\\\\Lime2.g:85:5: ID\n {\n root_0 = (CTree)adaptor.nil();\n\n\n ID89=(Token)match(input,ID,FOLLOW_ID_in_primary_expression551); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n ID89_tree = \n (CTree)adaptor.create(ID89)\n ;\n adaptor.addChild(root_0, ID89_tree);\n }\n\n }\n break;\n case 2 :\n // ll\\\\Lime2.g:86:4: INT\n {\n root_0 = (CTree)adaptor.nil();\n\n\n INT90=(Token)match(input,INT,FOLLOW_INT_in_primary_expression556); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INT90_tree = \n (CTree)adaptor.create(INT90)\n ;\n adaptor.addChild(root_0, INT90_tree);\n }\n\n }\n break;\n case 3 :\n // ll\\\\Lime2.g:87:4: '(' expression ')'\n {\n root_0 = (CTree)adaptor.nil();\n\n\n char_literal91=(Token)match(input,34,FOLLOW_34_in_primary_expression561); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal91_tree = \n (CTree)adaptor.create(char_literal91)\n ;\n adaptor.addChild(root_0, char_literal91_tree);\n }\n\n pushFollow(FOLLOW_expression_in_primary_expression562);\n expression92=expression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, expression92.getTree());\n\n char_literal93=(Token)match(input,35,FOLLOW_35_in_primary_expression564); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal93_tree = \n (CTree)adaptor.create(char_literal93)\n ;\n adaptor.addChild(root_0, char_literal93_tree);\n }\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "56d21c5890ec3e8cb99e0cd72286b4fb", "score": "0.63198966", "text": "public final void ruleXPrimaryExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:892:2: ( ( ( rule__XPrimaryExpression__Alternatives ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:893:1: ( ( rule__XPrimaryExpression__Alternatives ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:893:1: ( ( rule__XPrimaryExpression__Alternatives ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:894:1: ( rule__XPrimaryExpression__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXPrimaryExpressionAccess().getAlternatives()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:895:1: ( rule__XPrimaryExpression__Alternatives )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:895:2: rule__XPrimaryExpression__Alternatives\n {\n pushFollow(FOLLOW_rule__XPrimaryExpression__Alternatives_in_ruleXPrimaryExpression1845);\n rule__XPrimaryExpression__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXPrimaryExpressionAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "868b46e8fa881a4672a51ac1ef2e5b7d", "score": "0.6261813", "text": "public final Expr primary() throws RecognitionException {\n\t\tExpr result = null;\n\n\t\tint primary_StartIndex = input.index();\n\n\t\tToken Int6=null;\n\t\tToken Ident7=null;\n\t\tToken Bool8=null;\n\t\tToken String9=null;\n\t\tExpr x =null;\n\n\t\ttry {\n\t\t\tif ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return result; }\n\n\t\t\t// C:\\\\GIT\\\\sea-of-ql\\\\ruudvanderweijde\\\\sea-of-ql\\\\ruudvanderweijde\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\QL.g:124:3: ( Int | Ident | Bool | String | '(' x= orExpr ')' )\n\t\t\tint alt8=5;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase Int:\n\t\t\t\t{\n\t\t\t\talt8=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Ident:\n\t\t\t\t{\n\t\t\t\talt8=2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase Bool:\n\t\t\t\t{\n\t\t\t\talt8=3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase String:\n\t\t\t\t{\n\t\t\t\talt8=4;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\t{\n\t\t\t\talt8=5;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (state.backtracking>0) {state.failed=true; return result;}\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 8, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt8) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// C:\\\\GIT\\\\sea-of-ql\\\\ruudvanderweijde\\\\sea-of-ql\\\\ruudvanderweijde\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\QL.g:124:5: Int\n\t\t\t\t\t{\n\t\t\t\t\tInt6=(Token)match(input,Int,FOLLOW_Int_in_primary373); if (state.failed) return result;\n\t\t\t\t\tif ( state.backtracking==0 ) { result = new Int(Integer.parseInt((Int6!=null?Int6.getText():null))); }\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// C:\\\\GIT\\\\sea-of-ql\\\\ruudvanderweijde\\\\sea-of-ql\\\\ruudvanderweijde\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\QL.g:125:5: Ident\n\t\t\t\t\t{\n\t\t\t\t\tIdent7=(Token)match(input,Ident,FOLLOW_Ident_in_primary385); if (state.failed) return result;\n\t\t\t\t\tif ( state.backtracking==0 ) { result = new Ident((Ident7!=null?Ident7.getText():null)); }\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// C:\\\\GIT\\\\sea-of-ql\\\\ruudvanderweijde\\\\sea-of-ql\\\\ruudvanderweijde\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\QL.g:126:5: Bool\n\t\t\t\t\t{\n\t\t\t\t\tBool8=(Token)match(input,Bool,FOLLOW_Bool_in_primary395); if (state.failed) return result;\n\t\t\t\t\tif ( state.backtracking==0 ) { result = new Bool(Boolean.parseBoolean((Bool8!=null?Bool8.getText():null))); }\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// C:\\\\GIT\\\\sea-of-ql\\\\ruudvanderweijde\\\\sea-of-ql\\\\ruudvanderweijde\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\QL.g:127:5: String\n\t\t\t\t\t{\n\t\t\t\t\tString9=(Token)match(input,String,FOLLOW_String_in_primary406); if (state.failed) return result;\n\t\t\t\t\tif ( state.backtracking==0 ) { result = new StringLiteral((String9!=null?String9.getText():null)); }\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5 :\n\t\t\t\t\t// C:\\\\GIT\\\\sea-of-ql\\\\ruudvanderweijde\\\\sea-of-ql\\\\ruudvanderweijde\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\QL.g:128:5: '(' x= orExpr ')'\n\t\t\t\t\t{\n\t\t\t\t\tmatch(input,18,FOLLOW_18_in_primary415); if (state.failed) return result;\n\t\t\t\t\tpushFollow(FOLLOW_orExpr_in_primary419);\n\t\t\t\t\tx=orExpr();\n\t\t\t\t\tstate._fsp--;\n\t\t\t\t\tif (state.failed) return result;\n\t\t\t\t\tmatch(input,19,FOLLOW_19_in_primary421); if (state.failed) return result;\n\t\t\t\t\tif ( state.backtracking==0 ) { result = x; }\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t}\n\n\t\t catch(RecognitionException re) {\n\t\t addError(re.getMessage());\n\t\t recover(input,re);\n\t\t }\n\t\t catch(NullPointerException npe) {\n\t\t addError(npe.getMessage());\n\t\t }\n\t\t catch(NumberFormatException nfe) {\n\t\t addError(nfe.getMessage());\n\t\t }\n\t\t catch(Exception e) {\n\t\t addError(e.getMessage());\n\t\t }\n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t\tif ( state.backtracking>0 ) { memoize(input, 8, primary_StartIndex); }\n\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "9b438f930b8732e37ffbac5d44bcce7d", "score": "0.6223977", "text": "public final void entryRulePrimary() throws RecognitionException {\n int entryRulePrimary_StartIndex = input.index();\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 153) ) { return ; }\n // InternalGaml.g:2201:1: ( rulePrimary EOF )\n // InternalGaml.g:2202:1: rulePrimary EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n rulePrimary();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryRule()); \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 153, entryRulePrimary_StartIndex); }\n }\n return ;\n }", "title": "" }, { "docid": "9f0d9218cf585f728b3f167d5a3550c9", "score": "0.62131196", "text": "public final void entryRuleDmxPrimaryExpression() throws RecognitionException {\n try {\n // InternalDom.g:987:1: ( ruleDmxPrimaryExpression EOF )\n // InternalDom.g:988:1: ruleDmxPrimaryExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxPrimaryExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n ruleDmxPrimaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxPrimaryExpressionRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "5b3f0eb165f1366521518fd9e57dffbf", "score": "0.621175", "text": "public final void rule__XMemberFeatureCall__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10061:1: ( ( ruleXPrimaryExpression ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10062:1: ( ruleXPrimaryExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10062:1: ( ruleXPrimaryExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:10063:1: ruleXPrimaryExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_ruleXPrimaryExpression_in_rule__XMemberFeatureCall__Group__0__Impl20534);\r\n ruleXPrimaryExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c5d5bb575a3b8508ef8b0c1f9e27c562", "score": "0.61571693", "text": "public final void rule__XMemberFeatureCall__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:7246:1: ( ( ruleXPrimaryExpression ) )\r\n // InternalBugsly.g:7247:1: ( ruleXPrimaryExpression )\r\n {\r\n // InternalBugsly.g:7247:1: ( ruleXPrimaryExpression )\r\n // InternalBugsly.g:7248:2: ruleXPrimaryExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXPrimaryExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d5371def86cda7bdaf70583e7b85e5da", "score": "0.6032885", "text": "public final EObject rulePrimaryExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_Literal_0 = null;\n\n EObject this_ParenthesisedExpression_1 = null;\n\n EObject this_SimpleFeatureCall_2 = null;\n\n EObject this_TypeNameExpression_3 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMASLParser.g:11083:2: ( (this_Literal_0= ruleLiteral | this_ParenthesisedExpression_1= ruleParenthesisedExpression | this_SimpleFeatureCall_2= ruleSimpleFeatureCall | this_TypeNameExpression_3= ruleTypeNameExpression ) )\n // InternalMASLParser.g:11084:2: (this_Literal_0= ruleLiteral | this_ParenthesisedExpression_1= ruleParenthesisedExpression | this_SimpleFeatureCall_2= ruleSimpleFeatureCall | this_TypeNameExpression_3= ruleTypeNameExpression )\n {\n // InternalMASLParser.g:11084:2: (this_Literal_0= ruleLiteral | this_ParenthesisedExpression_1= ruleParenthesisedExpression | this_SimpleFeatureCall_2= ruleSimpleFeatureCall | this_TypeNameExpression_3= ruleTypeNameExpression )\n int alt214=4;\n switch ( input.LA(1) ) {\n case Console:\n case FILE:\n case LINE:\n case False:\n case Flush:\n case Endl:\n case Null:\n case This:\n case True:\n case RULE_INTEGER:\n case RULE_REAL:\n case RULE_STRING:\n case RULE_CHAR:\n case RULE_DURATION:\n case RULE_TIMESTAMP:\n {\n alt214=1;\n }\n break;\n case LeftParenthesis:\n {\n alt214=2;\n }\n break;\n case RULE_ID:\n {\n alt214=3;\n }\n break;\n case Dictionary:\n case Anonymous:\n case Instance:\n case Sequence:\n case Array:\n case Bag:\n case Set:\n {\n alt214=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 214, 0, input);\n\n throw nvae;\n }\n\n switch (alt214) {\n case 1 :\n // InternalMASLParser.g:11085:3: this_Literal_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPrimaryExpressionAccess().getLiteralParserRuleCall_0());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_Literal_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_Literal_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 2 :\n // InternalMASLParser.g:11094:3: this_ParenthesisedExpression_1= ruleParenthesisedExpression\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPrimaryExpressionAccess().getParenthesisedExpressionParserRuleCall_1());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_ParenthesisedExpression_1=ruleParenthesisedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_ParenthesisedExpression_1;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 3 :\n // InternalMASLParser.g:11103:3: this_SimpleFeatureCall_2= ruleSimpleFeatureCall\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPrimaryExpressionAccess().getSimpleFeatureCallParserRuleCall_2());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_SimpleFeatureCall_2=ruleSimpleFeatureCall();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_SimpleFeatureCall_2;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 4 :\n // InternalMASLParser.g:11112:3: this_TypeNameExpression_3= ruleTypeNameExpression\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTypeNameExpressionParserRuleCall_3());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_TypeNameExpression_3=ruleTypeNameExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_TypeNameExpression_3;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "212a056d7f40a0c4ddda8f364efc2a40", "score": "0.6000419", "text": "public final EObject entryRuleIfPrimaryExpr() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleIfPrimaryExpr = null;\n\n\n try {\n // InternalUclid.g:5409:54: (iv_ruleIfPrimaryExpr= ruleIfPrimaryExpr EOF )\n // InternalUclid.g:5410:2: iv_ruleIfPrimaryExpr= ruleIfPrimaryExpr EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getIfPrimaryExprRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleIfPrimaryExpr=ruleIfPrimaryExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleIfPrimaryExpr; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "480a46b87af84228d7df256fe635ded4", "score": "0.5956346", "text": "public final void rule__XMemberFeatureCall__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6914:1: ( ( ruleXPrimaryExpression ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6915:1: ( ruleXPrimaryExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6915:1: ( ruleXPrimaryExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6916:1: ruleXPrimaryExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); \n }\n pushFollow(FOLLOW_ruleXPrimaryExpression_in_rule__XMemberFeatureCall__Group__0__Impl14323);\n ruleXPrimaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "df2a65c354f72c5635c418310a0bf200", "score": "0.59390455", "text": "public final void ruleXPrimaryExpression() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:817:2: ( ( ( rule__XPrimaryExpression__Alternatives ) ) )\r\n // InternalBugsly.g:818:2: ( ( rule__XPrimaryExpression__Alternatives ) )\r\n {\r\n // InternalBugsly.g:818:2: ( ( rule__XPrimaryExpression__Alternatives ) )\r\n // InternalBugsly.g:819:3: ( rule__XPrimaryExpression__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPrimaryExpressionAccess().getAlternatives()); \r\n }\r\n // InternalBugsly.g:820:3: ( rule__XPrimaryExpression__Alternatives )\r\n // InternalBugsly.g:820:4: rule__XPrimaryExpression__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XPrimaryExpression__Alternatives();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPrimaryExpressionAccess().getAlternatives()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6f4e37730891efd977c1c5d06a468ff3", "score": "0.59274006", "text": "public final void rule__DmxPrimaryExpression__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDom.g:2040:1: ( ( ruleDmxLiteralExpression ) | ( ruleDmxParenthesizedExpression ) | ( ruleDmxListExpression ) | ( ruleDmxFunctionCall ) | ( ruleDmxStaticReference ) | ( ruleDmxContextReference ) | ( ruleDmxIfExpression ) )\n int alt14=7;\n switch ( input.LA(1) ) {\n case RULE_NATURAL:\n case RULE_STRING:\n case 24:\n case 25:\n case 26:\n case 27:\n case 96:\n case 97:\n case 108:\n case 109:\n {\n alt14=1;\n }\n break;\n case 88:\n {\n alt14=2;\n }\n break;\n case 18:\n {\n alt14=3;\n }\n break;\n case RULE_ID:\n {\n int LA14_4 = input.LA(2);\n\n if ( (LA14_4==88) ) {\n alt14=4;\n }\n else if ( (LA14_4==EOF||(LA14_4>=RULE_ID && LA14_4<=RULE_RICH_TEXT_END)||(LA14_4>=19 && LA14_4<=23)||(LA14_4>=30 && LA14_4<=31)||(LA14_4>=51 && LA14_4<=73)||LA14_4==80||LA14_4==82||LA14_4==86||LA14_4==89||LA14_4==94||(LA14_4>=102 && LA14_4<=104)||LA14_4==106) ) {\n alt14=6;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 4, input);\n\n throw nvae;\n }\n }\n break;\n case 98:\n {\n alt14=5;\n }\n break;\n case 101:\n {\n alt14=7;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n }\n\n switch (alt14) {\n case 1 :\n // InternalDom.g:2041:2: ( ruleDmxLiteralExpression )\n {\n // InternalDom.g:2041:2: ( ruleDmxLiteralExpression )\n // InternalDom.g:2042:3: ruleDmxLiteralExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxPrimaryExpressionAccess().getDmxLiteralExpressionParserRuleCall_0()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxLiteralExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxPrimaryExpressionAccess().getDmxLiteralExpressionParserRuleCall_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalDom.g:2047:2: ( ruleDmxParenthesizedExpression )\n {\n // InternalDom.g:2047:2: ( ruleDmxParenthesizedExpression )\n // InternalDom.g:2048:3: ruleDmxParenthesizedExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxPrimaryExpressionAccess().getDmxParenthesizedExpressionParserRuleCall_1()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxParenthesizedExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxPrimaryExpressionAccess().getDmxParenthesizedExpressionParserRuleCall_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // InternalDom.g:2053:2: ( ruleDmxListExpression )\n {\n // InternalDom.g:2053:2: ( ruleDmxListExpression )\n // InternalDom.g:2054:3: ruleDmxListExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxPrimaryExpressionAccess().getDmxListExpressionParserRuleCall_2()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxListExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxPrimaryExpressionAccess().getDmxListExpressionParserRuleCall_2()); \n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalDom.g:2059:2: ( ruleDmxFunctionCall )\n {\n // InternalDom.g:2059:2: ( ruleDmxFunctionCall )\n // InternalDom.g:2060:3: ruleDmxFunctionCall\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxPrimaryExpressionAccess().getDmxFunctionCallParserRuleCall_3()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxFunctionCall();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxPrimaryExpressionAccess().getDmxFunctionCallParserRuleCall_3()); \n }\n\n }\n\n\n }\n break;\n case 5 :\n // InternalDom.g:2065:2: ( ruleDmxStaticReference )\n {\n // InternalDom.g:2065:2: ( ruleDmxStaticReference )\n // InternalDom.g:2066:3: ruleDmxStaticReference\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxPrimaryExpressionAccess().getDmxStaticReferenceParserRuleCall_4()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxStaticReference();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxPrimaryExpressionAccess().getDmxStaticReferenceParserRuleCall_4()); \n }\n\n }\n\n\n }\n break;\n case 6 :\n // InternalDom.g:2071:2: ( ruleDmxContextReference )\n {\n // InternalDom.g:2071:2: ( ruleDmxContextReference )\n // InternalDom.g:2072:3: ruleDmxContextReference\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxPrimaryExpressionAccess().getDmxContextReferenceParserRuleCall_5()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxContextReference();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxPrimaryExpressionAccess().getDmxContextReferenceParserRuleCall_5()); \n }\n\n }\n\n\n }\n break;\n case 7 :\n // InternalDom.g:2077:2: ( ruleDmxIfExpression )\n {\n // InternalDom.g:2077:2: ( ruleDmxIfExpression )\n // InternalDom.g:2078:3: ruleDmxIfExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxPrimaryExpressionAccess().getDmxIfExpressionParserRuleCall_6()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxIfExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxPrimaryExpressionAccess().getDmxIfExpressionParserRuleCall_6()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a400c4250498babe77b832f16e645aae", "score": "0.5852075", "text": "public final EObject ruleExpressionPrimary() throws RecognitionException {\n EObject current = null;\n\n EObject this_ExpressionSwitch_0 = null;\n\n EObject this_ExpressionIf_1 = null;\n\n EObject this_ExpressionLiteral_2 = null;\n\n EObject this_ExpressionForEach_3 = null;\n\n EObject this_ExpressionFunctionCall_4 = null;\n\n EObject this_ExpressionParenthesized_5 = null;\n\n\n enterRule(); \n \n try {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3737:28: ( (this_ExpressionSwitch_0= ruleExpressionSwitch | this_ExpressionIf_1= ruleExpressionIf | this_ExpressionLiteral_2= ruleExpressionLiteral | this_ExpressionForEach_3= ruleExpressionForEach | this_ExpressionFunctionCall_4= ruleExpressionFunctionCall | this_ExpressionParenthesized_5= ruleExpressionParenthesized ) )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3738:1: (this_ExpressionSwitch_0= ruleExpressionSwitch | this_ExpressionIf_1= ruleExpressionIf | this_ExpressionLiteral_2= ruleExpressionLiteral | this_ExpressionForEach_3= ruleExpressionForEach | this_ExpressionFunctionCall_4= ruleExpressionFunctionCall | this_ExpressionParenthesized_5= ruleExpressionParenthesized )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3738:1: (this_ExpressionSwitch_0= ruleExpressionSwitch | this_ExpressionIf_1= ruleExpressionIf | this_ExpressionLiteral_2= ruleExpressionLiteral | this_ExpressionForEach_3= ruleExpressionForEach | this_ExpressionFunctionCall_4= ruleExpressionFunctionCall | this_ExpressionParenthesized_5= ruleExpressionParenthesized )\n int alt54=6;\n switch ( input.LA(1) ) {\n case 77:\n {\n alt54=1;\n }\n break;\n case 53:\n {\n alt54=2;\n }\n break;\n case RULE_ID:\n case RULE_STRING:\n case RULE_INT:\n case 30:\n case 33:\n case 34:\n case 51:\n case 113:\n case 114:\n case 115:\n case 116:\n {\n alt54=3;\n }\n break;\n case 80:\n {\n alt54=4;\n }\n break;\n case 82:\n case 83:\n case 84:\n case 85:\n case 86:\n case 87:\n case 88:\n case 89:\n case 90:\n case 91:\n case 92:\n case 93:\n case 94:\n case 95:\n case 96:\n case 97:\n case 98:\n case 99:\n case 100:\n case 101:\n case 102:\n case 103:\n case 104:\n case 105:\n case 106:\n case 107:\n case 108:\n case 109:\n case 110:\n case 111:\n case 112:\n {\n alt54=5;\n }\n break;\n case 74:\n {\n alt54=6;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 54, 0, input);\n\n throw nvae;\n }\n\n switch (alt54) {\n case 1 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3739:5: this_ExpressionSwitch_0= ruleExpressionSwitch\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpressionPrimaryAccess().getExpressionSwitchParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleExpressionSwitch_in_ruleExpressionPrimary8129);\n this_ExpressionSwitch_0=ruleExpressionSwitch();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ExpressionSwitch_0; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3749:5: this_ExpressionIf_1= ruleExpressionIf\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpressionPrimaryAccess().getExpressionIfParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleExpressionIf_in_ruleExpressionPrimary8156);\n this_ExpressionIf_1=ruleExpressionIf();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ExpressionIf_1; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 3 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3759:5: this_ExpressionLiteral_2= ruleExpressionLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpressionPrimaryAccess().getExpressionLiteralParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_ruleExpressionLiteral_in_ruleExpressionPrimary8183);\n this_ExpressionLiteral_2=ruleExpressionLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ExpressionLiteral_2; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 4 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3769:5: this_ExpressionForEach_3= ruleExpressionForEach\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpressionPrimaryAccess().getExpressionForEachParserRuleCall_3()); \n \n }\n pushFollow(FOLLOW_ruleExpressionForEach_in_ruleExpressionPrimary8210);\n this_ExpressionForEach_3=ruleExpressionForEach();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ExpressionForEach_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 5 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3779:5: this_ExpressionFunctionCall_4= ruleExpressionFunctionCall\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpressionPrimaryAccess().getExpressionFunctionCallParserRuleCall_4()); \n \n }\n pushFollow(FOLLOW_ruleExpressionFunctionCall_in_ruleExpressionPrimary8237);\n this_ExpressionFunctionCall_4=ruleExpressionFunctionCall();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ExpressionFunctionCall_4; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 6 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3789:5: this_ExpressionParenthesized_5= ruleExpressionParenthesized\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpressionPrimaryAccess().getExpressionParenthesizedParserRuleCall_5()); \n \n }\n pushFollow(FOLLOW_ruleExpressionParenthesized_in_ruleExpressionPrimary8264);\n this_ExpressionParenthesized_5=ruleExpressionParenthesized();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ExpressionParenthesized_5; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "5c7f1c11e92c883f558264b1430823bc", "score": "0.5819587", "text": "public final CFMLParser.primaryExpressionIRW_return primaryExpressionIRW() throws RecognitionException {\r\n CFMLParser.primaryExpressionIRW_return retval = new CFMLParser.primaryExpressionIRW_return();\r\n retval.start = input.LT(1);\r\n\r\n int primaryExpressionIRW_StartIndex = input.index();\r\n\r\n CommonTree root_0 = null;\r\n\r\n CFMLParser.primaryExpression_return primaryExpression327 =null;\r\n\r\n CFMLParser.reservedWord_return reservedWord328 =null;\r\n\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 73) ) { return retval; }\r\n\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:827:2: ( primaryExpression | reservedWord )\r\n int alt83=2;\r\n switch ( input.LA(1) ) {\r\n case ABORT:\r\n case BOOLEAN_LITERAL:\r\n case CONTAIN:\r\n case DIRECTORY:\r\n case DOES:\r\n case EXIT:\r\n case FILE:\r\n case FLOATING_POINT_LITERAL:\r\n case GREATER:\r\n case HTTP:\r\n case IDENTIFIER:\r\n case INCLUDE:\r\n case INTEGER_LITERAL:\r\n case LEFTBRACKET:\r\n case LEFTCURLYBRACKET:\r\n case LEFTPAREN:\r\n case LESS:\r\n case LOCATION:\r\n case LOCK:\r\n case LOOP:\r\n case NEW:\r\n case PACKAGE:\r\n case PARAM:\r\n case PRIVATE:\r\n case PUBLIC:\r\n case QUERY:\r\n case REMOTE:\r\n case REQUIRED:\r\n case RETHROW:\r\n case SAVECONTENT:\r\n case SETTING:\r\n case STRING_LITERAL:\r\n case THAN:\r\n case THREAD:\r\n case THROW:\r\n case TO:\r\n case TRANSACTION:\r\n case VAR:\r\n {\r\n alt83=1;\r\n }\r\n break;\r\n case NULL:\r\n {\r\n int LA83_2 = input.LA(2);\r\n\r\n if ( (synpred163_CFML()) ) {\r\n alt83=1;\r\n }\r\n else if ( (true) ) {\r\n alt83=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 83, 2, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n break;\r\n case DEFAULT:\r\n {\r\n int LA83_3 = input.LA(2);\r\n\r\n if ( (synpred163_CFML()) ) {\r\n alt83=1;\r\n }\r\n else if ( (true) ) {\r\n alt83=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 83, 3, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n break;\r\n case BREAK:\r\n case CASE:\r\n case CATCH:\r\n case CONTINUE:\r\n case DO:\r\n case ELSE:\r\n case FOR:\r\n case FUNCTION:\r\n case IF:\r\n case IMPORT:\r\n case IN:\r\n case RETURN:\r\n case SWITCH:\r\n case TRY:\r\n case WHILE:\r\n {\r\n int LA83_4 = input.LA(2);\r\n\r\n if ( ((((!scriptMode)&&(!scriptMode))&&synpred163_CFML())) ) {\r\n alt83=1;\r\n }\r\n else if ( (true) ) {\r\n alt83=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 83, 4, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n break;\r\n case AND:\r\n case CONTAINS:\r\n case EQ:\r\n case EQUAL:\r\n case EQUALS:\r\n case EQV:\r\n case GE:\r\n case GT:\r\n case GTE:\r\n case IMP:\r\n case IS:\r\n case LE:\r\n case LT:\r\n case LTE:\r\n case MOD:\r\n case NEQ:\r\n case NOT:\r\n case OR:\r\n case XOR:\r\n {\r\n alt83=2;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 83, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt83) {\r\n case 1 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:827:4: primaryExpression\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_primaryExpression_in_primaryExpressionIRW4585);\r\n primaryExpression327=primaryExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, primaryExpression327.getTree());\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:828:4: reservedWord\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_reservedWord_in_primaryExpressionIRW4590);\r\n reservedWord328=reservedWord();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, reservedWord328.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n\r\n \tcatch (RecognitionException e) {\r\n \t //System.out.println(\"cfscript.g\");\r\n \t errorReporter.reportError(e);\r\n \t recover(getTokenStream(),e);\r\n \t}\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 73, primaryExpressionIRW_StartIndex); }\r\n\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "81a745b1d22a4463cb7ba576fd0ac461", "score": "0.5765696", "text": "public final void ruleDmxPrimaryExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDom.g:999:2: ( ( ( rule__DmxPrimaryExpression__Alternatives ) ) )\n // InternalDom.g:1000:2: ( ( rule__DmxPrimaryExpression__Alternatives ) )\n {\n // InternalDom.g:1000:2: ( ( rule__DmxPrimaryExpression__Alternatives ) )\n // InternalDom.g:1001:3: ( rule__DmxPrimaryExpression__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxPrimaryExpressionAccess().getAlternatives()); \n }\n // InternalDom.g:1002:3: ( rule__DmxPrimaryExpression__Alternatives )\n // InternalDom.g:1002:4: rule__DmxPrimaryExpression__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__DmxPrimaryExpression__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxPrimaryExpressionAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "13a2e3e1ba0044602018ad2212f029ee", "score": "0.5743385", "text": "public XbaseGrammarAccess.XPrimaryExpressionElements getXPrimaryExpressionAccess() {\n\t\treturn gaXbase.getXPrimaryExpressionAccess();\n\t}", "title": "" }, { "docid": "ee34afbbd4737eb0e355041c69a8bfba", "score": "0.57401747", "text": "public final DSToolkitSQLParser.value_expression_primary_return value_expression_primary() throws RecognitionException {\r\n DSToolkitSQLParser.value_expression_primary_return retval = new DSToolkitSQLParser.value_expression_primary_return();\r\n retval.start = input.LT(1);\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token char_literal57=null;\r\n Token char_literal59=null;\r\n DSToolkitSQLParser.value_expression_return value_expression58 = null;\r\n\r\n DSToolkitSQLParser.function_return function60 = null;\r\n\r\n DSToolkitSQLParser.super_lexical_name_return super_lexical_name61 = null;\r\n\r\n DSToolkitSQLParser.literal_return literal62 = null;\r\n\r\n DSToolkitSQLParser.sub_query_return sub_query63 = null;\r\n\r\n\r\n CommonTree char_literal57_tree=null;\r\n CommonTree char_literal59_tree=null;\r\n\r\n try {\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:161:2: ( '(' value_expression ')' | function | super_lexical_name | literal | sub_query )\r\n int alt22=5;\r\n alt22 = dfa22.predict(input);\r\n switch (alt22) {\r\n case 1 :\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:161:4: '(' value_expression ')'\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n char_literal57=(Token)match(input,56,FOLLOW_56_in_value_expression_primary767); if (state.failed) return retval;\r\n pushFollow(FOLLOW_value_expression_in_value_expression_primary770);\r\n value_expression58=value_expression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, value_expression58.getTree());\r\n char_literal59=(Token)match(input,57,FOLLOW_57_in_value_expression_primary772); if (state.failed) return retval;\r\n\r\n }\r\n break;\r\n case 2 :\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:162:5: function\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_function_in_value_expression_primary779);\r\n function60=function();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, function60.getTree());\r\n\r\n }\r\n break;\r\n case 3 :\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:163:5: super_lexical_name\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_super_lexical_name_in_value_expression_primary785);\r\n super_lexical_name61=super_lexical_name();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, super_lexical_name61.getTree());\r\n\r\n }\r\n break;\r\n case 4 :\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:164:5: literal\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_literal_in_value_expression_primary791);\r\n literal62=literal();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, literal62.getTree());\r\n\r\n }\r\n break;\r\n case 5 :\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:165:5: sub_query\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_sub_query_in_value_expression_primary797);\r\n sub_query63=sub_query();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, sub_query63.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n\r\n catch (RecognitionException e)\r\n {\r\n reportError(e);\r\n throw e;\r\n }\r\n finally {\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "db1f2606aed996cb63b9e56aeba321ae", "score": "0.5734232", "text": "public final void rulePrimary() throws RecognitionException {\n int rulePrimary_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 154) ) { return ; }\n // InternalGaml.g:2213:2: ( ( ( rule__Primary__Alternatives ) ) )\n // InternalGaml.g:2214:1: ( ( rule__Primary__Alternatives ) )\n {\n // InternalGaml.g:2214:1: ( ( rule__Primary__Alternatives ) )\n // InternalGaml.g:2215:1: ( rule__Primary__Alternatives )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getAlternatives()); \n }\n // InternalGaml.g:2216:1: ( rule__Primary__Alternatives )\n // InternalGaml.g:2216:2: rule__Primary__Alternatives\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Primary__Alternatives();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getAlternatives()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 154, rulePrimary_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2c4c66862f047f17e458231b0e137bc3", "score": "0.5719252", "text": "public R visit(PrimaryExpression n) {\n R _ret=null;\n n.f0.accept(this);\n return _ret;\n }", "title": "" }, { "docid": "ce5eca3f3eff51f7206a9a2f48112d4c", "score": "0.5716436", "text": "@Override\n public AstNode visitPrimaryExpr(MxParser.PrimaryExprContext ctx) {\n if (ctx.BoolConstant() != null) {\n BoolNode retBool = new BoolNode();\n retBool.setLocation(new Location(ctx));\n retBool.setExprType(new PrimitiveTypeNode(\"bool\"));\n retBool.setVal(ctx.BoolConstant().toString());\n return retBool;\n }\n if (ctx.IntegerConstant() != null) {\n IntNode retInt = new IntNode();\n retInt.setLocation(new Location(ctx));\n retInt.setExprType(new PrimitiveTypeNode(\"int\"));\n retInt.setVal(ctx.IntegerConstant().toString());\n return retInt;\n }\n if (ctx.StringConstant() != null) {\n StringNode retString = new StringNode();\n retString.setLocation(new Location(ctx));\n retString.setExprType(new PrimitiveTypeNode(\"string\"));\n retString.setVal(ctx.StringConstant().toString());\n return retString;\n }\n if (ctx.NullConstant() != null) {\n NullNode retNull = new NullNode();\n retNull.setLocation(new Location(ctx));\n retNull.setExprType(new PrimitiveTypeNode(\"null\"));\n return retNull;\n }\n else {return null;}//tobe check\n }", "title": "" }, { "docid": "673b91b687be5d9ae88e17d42b24d4d0", "score": "0.57129014", "text": "public final EObject ruleFindPrimary() throws RecognitionException {\n EObject current = null;\n\n EObject this_FindEquality_0 = null;\n\n EObject this_FindUnary_1 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMASLParser.g:8302:2: ( (this_FindEquality_0= ruleFindEquality | this_FindUnary_1= ruleFindUnary ) )\n // InternalMASLParser.g:8303:2: (this_FindEquality_0= ruleFindEquality | this_FindUnary_1= ruleFindUnary )\n {\n // InternalMASLParser.g:8303:2: (this_FindEquality_0= ruleFindEquality | this_FindUnary_1= ruleFindUnary )\n int alt163=2;\n int LA163_0 = input.LA(1);\n\n if ( (LA163_0==RULE_ID) ) {\n alt163=1;\n }\n else if ( (LA163_0==Not||LA163_0==LeftParenthesis) ) {\n alt163=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 163, 0, input);\n\n throw nvae;\n }\n switch (alt163) {\n case 1 :\n // InternalMASLParser.g:8304:3: this_FindEquality_0= ruleFindEquality\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getFindPrimaryAccess().getFindEqualityParserRuleCall_0());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_FindEquality_0=ruleFindEquality();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_FindEquality_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 2 :\n // InternalMASLParser.g:8313:3: this_FindUnary_1= ruleFindUnary\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getFindPrimaryAccess().getFindUnaryParserRuleCall_1());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_FindUnary_1=ruleFindUnary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_FindUnary_1;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "0f7b60b746f9a7940ba37ed59861111d", "score": "0.5645995", "text": "@Override\n public void enterPrimary(GParser.PrimaryContext ctx) {\n if (ctx.getChildCount() != 3) {\n\n AST.Node newNode = null;\n\n // If this primary is in the form of\n // primary --> id --> some_string\n if (ctx.getChild(0).getChildCount() == 1) {\n String inputID = ctx.getText();\n newNode = AST.new Id(inputID, getTypeByID(inputID));\n }\n\n // If this primary is in the form of, e.g.,\n // primary --> 10.0\n else {\n String inputLiteral = ctx.getText();\n newNode = AST.new Literal(inputLiteral);\n }\n\n // TODO remove\n if (debug == true) {\n System.out.println(\"enterPrimary() --> context = \" + ctx.getText());\n System.out.println(\"enterPrimary() --> child count = \" + ctx.getChildCount());\n System.out.println(\"enterPrimary() --> currentNode = \" + currentNode.getNodeType()\n + \" (this should remain the same as last time)\");\n }\n\n // Add the newNode as a child of the assign_expr\n currentNode.addChild(newNode);\n newNode.addParent(currentNode);\n }\n }", "title": "" }, { "docid": "b1a4bb1bf4739e90064bc2fe5ab1d8ef", "score": "0.56303024", "text": "public final EObject ruleXMemberFeatureCall() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n Token lv_explicitStatic_3_0=null;\n Token otherlv_8=null;\n Token lv_nullSafe_9_0=null;\n Token lv_explicitStatic_10_0=null;\n Token otherlv_11=null;\n Token otherlv_13=null;\n Token otherlv_15=null;\n Token lv_explicitOperationCall_17_0=null;\n Token otherlv_20=null;\n Token otherlv_22=null;\n EObject this_XPrimaryExpression_0 = null;\n\n EObject lv_value_6_0 = null;\n\n EObject lv_typeArguments_12_0 = null;\n\n EObject lv_typeArguments_14_0 = null;\n\n EObject lv_memberCallArguments_18_0 = null;\n\n EObject lv_memberCallArguments_19_0 = null;\n\n EObject lv_memberCallArguments_21_0 = null;\n\n EObject lv_memberCallArguments_23_0 = null;\n\n\n enterRule(); \n \n try {\n // InternalSpeADL.g:3180:28: ( (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) )\n // InternalSpeADL.g:3181:1: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* )\n {\n // InternalSpeADL.g:3181:1: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* )\n // InternalSpeADL.g:3182:5: this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_46);\n this_XPrimaryExpression_0=ruleXPrimaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XPrimaryExpression_0; \n afterParserOrEnumRuleCall();\n \n }\n // InternalSpeADL.g:3190:1: ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )*\n loop66:\n do {\n int alt66=3;\n switch ( input.LA(1) ) {\n case 34:\n {\n int LA66_2 = input.LA(2);\n\n if ( (synpred17_InternalSpeADL()) ) {\n alt66=1;\n }\n else if ( (synpred18_InternalSpeADL()) ) {\n alt66=2;\n }\n\n\n }\n break;\n case 66:\n {\n int LA66_3 = input.LA(2);\n\n if ( (synpred17_InternalSpeADL()) ) {\n alt66=1;\n }\n else if ( (synpred18_InternalSpeADL()) ) {\n alt66=2;\n }\n\n\n }\n break;\n case 67:\n {\n int LA66_4 = input.LA(2);\n\n if ( (synpred18_InternalSpeADL()) ) {\n alt66=2;\n }\n\n\n }\n break;\n\n }\n\n switch (alt66) {\n \tcase 1 :\n \t // InternalSpeADL.g:3190:2: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) )\n \t {\n \t // InternalSpeADL.g:3190:2: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) )\n \t // InternalSpeADL.g:3190:3: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) )\n \t {\n \t // InternalSpeADL.g:3190:3: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )\n \t // InternalSpeADL.g:3190:4: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign )\n \t {\n \t // InternalSpeADL.g:3203:25: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign )\n \t // InternalSpeADL.g:3203:26: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign\n \t {\n \t // InternalSpeADL.g:3203:26: ()\n \t // InternalSpeADL.g:3204:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // InternalSpeADL.g:3209:2: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) )\n \t int alt58=2;\n \t int LA58_0 = input.LA(1);\n\n \t if ( (LA58_0==34) ) {\n \t alt58=1;\n \t }\n \t else if ( (LA58_0==66) ) {\n \t alt58=2;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return current;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 58, 0, input);\n\n \t throw nvae;\n \t }\n \t switch (alt58) {\n \t case 1 :\n \t // InternalSpeADL.g:3209:4: otherlv_2= '.'\n \t {\n \t otherlv_2=(Token)match(input,34,FOLLOW_47); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0());\n \t \n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // InternalSpeADL.g:3214:6: ( (lv_explicitStatic_3_0= '::' ) )\n \t {\n \t // InternalSpeADL.g:3214:6: ( (lv_explicitStatic_3_0= '::' ) )\n \t // InternalSpeADL.g:3215:1: (lv_explicitStatic_3_0= '::' )\n \t {\n \t // InternalSpeADL.g:3215:1: (lv_explicitStatic_3_0= '::' )\n \t // InternalSpeADL.g:3216:3: lv_explicitStatic_3_0= '::'\n \t {\n \t lv_explicitStatic_3_0=(Token)match(input,66,FOLLOW_47); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_explicitStatic_3_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"explicitStatic\", true, \"::\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n \t // InternalSpeADL.g:3229:3: ( ( ruleFeatureCallID ) )\n \t // InternalSpeADL.g:3230:1: ( ruleFeatureCallID )\n \t {\n \t // InternalSpeADL.g:3230:1: ( ruleFeatureCallID )\n \t // InternalSpeADL.g:3231:3: ruleFeatureCallID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\tif (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_28);\n \t ruleFeatureCallID();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n \t \n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t if ( state.backtracking==0 ) {\n \t \n \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); \n \t \n \t }\n \t pushFollow(FOLLOW_29);\n \t ruleOpSingleAssign();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n \t \n \t afterParserOrEnumRuleCall();\n \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // InternalSpeADL.g:3252:3: ( (lv_value_6_0= ruleXAssignment ) )\n \t // InternalSpeADL.g:3253:1: (lv_value_6_0= ruleXAssignment )\n \t {\n \t // InternalSpeADL.g:3253:1: (lv_value_6_0= ruleXAssignment )\n \t // InternalSpeADL.g:3254:3: lv_value_6_0= ruleXAssignment\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_46);\n \t lv_value_6_0=ruleXAssignment();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"value\",\n \t \t\tlv_value_6_0, \n \t \t\t\"org.eclipse.xtext.xbase.Xbase.XAssignment\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // InternalSpeADL.g:3271:6: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? )\n \t {\n \t // InternalSpeADL.g:3271:6: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? )\n \t // InternalSpeADL.g:3271:7: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )?\n \t {\n \t // InternalSpeADL.g:3271:7: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) )\n \t // InternalSpeADL.g:3271:8: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) )\n \t {\n \t // InternalSpeADL.g:3287:7: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) )\n \t // InternalSpeADL.g:3287:8: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) )\n \t {\n \t // InternalSpeADL.g:3287:8: ()\n \t // InternalSpeADL.g:3288:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // InternalSpeADL.g:3293:2: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) )\n \t int alt59=3;\n \t switch ( input.LA(1) ) {\n \t case 34:\n \t {\n \t alt59=1;\n \t }\n \t break;\n \t case 67:\n \t {\n \t alt59=2;\n \t }\n \t break;\n \t case 66:\n \t {\n \t alt59=3;\n \t }\n \t break;\n \t default:\n \t if (state.backtracking>0) {state.failed=true; return current;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 59, 0, input);\n\n \t throw nvae;\n \t }\n\n \t switch (alt59) {\n \t case 1 :\n \t // InternalSpeADL.g:3293:4: otherlv_8= '.'\n \t {\n \t otherlv_8=(Token)match(input,34,FOLLOW_48); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0());\n \t \n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // InternalSpeADL.g:3298:6: ( (lv_nullSafe_9_0= '?.' ) )\n \t {\n \t // InternalSpeADL.g:3298:6: ( (lv_nullSafe_9_0= '?.' ) )\n \t // InternalSpeADL.g:3299:1: (lv_nullSafe_9_0= '?.' )\n \t {\n \t // InternalSpeADL.g:3299:1: (lv_nullSafe_9_0= '?.' )\n \t // InternalSpeADL.g:3300:3: lv_nullSafe_9_0= '?.'\n \t {\n \t lv_nullSafe_9_0=(Token)match(input,67,FOLLOW_48); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_nullSafe_9_0, grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"nullSafe\", true, \"?.\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \t case 3 :\n \t // InternalSpeADL.g:3314:6: ( (lv_explicitStatic_10_0= '::' ) )\n \t {\n \t // InternalSpeADL.g:3314:6: ( (lv_explicitStatic_10_0= '::' ) )\n \t // InternalSpeADL.g:3315:1: (lv_explicitStatic_10_0= '::' )\n \t {\n \t // InternalSpeADL.g:3315:1: (lv_explicitStatic_10_0= '::' )\n \t // InternalSpeADL.g:3316:3: lv_explicitStatic_10_0= '::'\n \t {\n \t lv_explicitStatic_10_0=(Token)match(input,66,FOLLOW_48); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_explicitStatic_10_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"explicitStatic\", true, \"::\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // InternalSpeADL.g:3329:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )?\n \t int alt61=2;\n \t int LA61_0 = input.LA(1);\n\n \t if ( (LA61_0==40) ) {\n \t alt61=1;\n \t }\n \t switch (alt61) {\n \t case 1 :\n \t // InternalSpeADL.g:3329:7: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>'\n \t {\n \t otherlv_11=(Token)match(input,40,FOLLOW_25); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0());\n \t \n \t }\n \t // InternalSpeADL.g:3333:1: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) )\n \t // InternalSpeADL.g:3334:1: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference )\n \t {\n \t // InternalSpeADL.g:3334:1: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference )\n \t // InternalSpeADL.g:3335:3: lv_typeArguments_12_0= ruleJvmArgumentTypeReference\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_49);\n \t lv_typeArguments_12_0=ruleJvmArgumentTypeReference();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"typeArguments\",\n \t \t\tlv_typeArguments_12_0, \n \t \t\t\"org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // InternalSpeADL.g:3351:2: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )*\n \t loop60:\n \t do {\n \t int alt60=2;\n \t int LA60_0 = input.LA(1);\n\n \t if ( (LA60_0==19) ) {\n \t alt60=1;\n \t }\n\n\n \t switch (alt60) {\n \t \tcase 1 :\n \t \t // InternalSpeADL.g:3351:4: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) )\n \t \t {\n \t \t otherlv_13=(Token)match(input,19,FOLLOW_25); if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \tnewLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0());\n \t \t \n \t \t }\n \t \t // InternalSpeADL.g:3355:1: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) )\n \t \t // InternalSpeADL.g:3356:1: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference )\n \t \t {\n \t \t // InternalSpeADL.g:3356:1: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference )\n \t \t // InternalSpeADL.g:3357:3: lv_typeArguments_14_0= ruleJvmArgumentTypeReference\n \t \t {\n \t \t if ( state.backtracking==0 ) {\n \t \t \n \t \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); \n \t \t \t \n \t \t }\n \t \t pushFollow(FOLLOW_49);\n \t \t lv_typeArguments_14_0=ruleJvmArgumentTypeReference();\n\n \t \t state._fsp--;\n \t \t if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t if (current==null) {\n \t \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t \t }\n \t \t \t\tadd(\n \t \t \t\t\tcurrent, \n \t \t \t\t\t\"typeArguments\",\n \t \t \t\tlv_typeArguments_14_0, \n \t \t \t\t\"org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference\");\n \t \t \t afterParserOrEnumRuleCall();\n \t \t \t \n \t \t }\n\n \t \t }\n\n\n \t \t }\n\n\n \t \t }\n \t \t break;\n\n \t \tdefault :\n \t \t break loop60;\n \t }\n \t } while (true);\n\n \t otherlv_15=(Token)match(input,41,FOLLOW_48); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3());\n \t \n \t }\n\n \t }\n \t break;\n\n \t }\n\n \t // InternalSpeADL.g:3377:3: ( ( ruleIdOrSuper ) )\n \t // InternalSpeADL.g:3378:1: ( ruleIdOrSuper )\n \t {\n \t // InternalSpeADL.g:3378:1: ( ruleIdOrSuper )\n \t // InternalSpeADL.g:3379:3: ruleIdOrSuper\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\tif (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_50);\n \t ruleIdOrSuper();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n \t \n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // InternalSpeADL.g:3392:2: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )?\n \t int alt64=2;\n \t alt64 = dfa64.predict(input);\n \t switch (alt64) {\n \t case 1 :\n \t // InternalSpeADL.g:3392:3: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')'\n \t {\n \t // InternalSpeADL.g:3392:3: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) )\n \t // InternalSpeADL.g:3392:4: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' )\n \t {\n \t // InternalSpeADL.g:3399:1: (lv_explicitOperationCall_17_0= '(' )\n \t // InternalSpeADL.g:3400:3: lv_explicitOperationCall_17_0= '('\n \t {\n \t lv_explicitOperationCall_17_0=(Token)match(input,24,FOLLOW_51); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_explicitOperationCall_17_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"explicitOperationCall\", true, \"(\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // InternalSpeADL.g:3413:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )?\n \t int alt63=3;\n \t alt63 = dfa63.predict(input);\n \t switch (alt63) {\n \t case 1 :\n \t // InternalSpeADL.g:3413:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) )\n \t {\n \t // InternalSpeADL.g:3413:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) )\n \t // InternalSpeADL.g:3413:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure )\n \t {\n \t // InternalSpeADL.g:3430:1: (lv_memberCallArguments_18_0= ruleXShortClosure )\n \t // InternalSpeADL.g:3431:3: lv_memberCallArguments_18_0= ruleXShortClosure\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_52);\n \t lv_memberCallArguments_18_0=ruleXShortClosure();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"memberCallArguments\",\n \t \t\tlv_memberCallArguments_18_0, \n \t \t\t\"org.eclipse.xtext.xbase.Xbase.XShortClosure\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \t case 2 :\n \t // InternalSpeADL.g:3448:6: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* )\n \t {\n \t // InternalSpeADL.g:3448:6: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* )\n \t // InternalSpeADL.g:3448:7: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )*\n \t {\n \t // InternalSpeADL.g:3448:7: ( (lv_memberCallArguments_19_0= ruleXExpression ) )\n \t // InternalSpeADL.g:3449:1: (lv_memberCallArguments_19_0= ruleXExpression )\n \t {\n \t // InternalSpeADL.g:3449:1: (lv_memberCallArguments_19_0= ruleXExpression )\n \t // InternalSpeADL.g:3450:3: lv_memberCallArguments_19_0= ruleXExpression\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_15);\n \t lv_memberCallArguments_19_0=ruleXExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"memberCallArguments\",\n \t \t\tlv_memberCallArguments_19_0, \n \t \t\t\"org.eclipse.xtext.xbase.Xbase.XExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // InternalSpeADL.g:3466:2: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )*\n \t loop62:\n \t do {\n \t int alt62=2;\n \t int LA62_0 = input.LA(1);\n\n \t if ( (LA62_0==19) ) {\n \t alt62=1;\n \t }\n\n\n \t switch (alt62) {\n \t \tcase 1 :\n \t \t // InternalSpeADL.g:3466:4: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) )\n \t \t {\n \t \t otherlv_20=(Token)match(input,19,FOLLOW_29); if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \tnewLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0());\n \t \t \n \t \t }\n \t \t // InternalSpeADL.g:3470:1: ( (lv_memberCallArguments_21_0= ruleXExpression ) )\n \t \t // InternalSpeADL.g:3471:1: (lv_memberCallArguments_21_0= ruleXExpression )\n \t \t {\n \t \t // InternalSpeADL.g:3471:1: (lv_memberCallArguments_21_0= ruleXExpression )\n \t \t // InternalSpeADL.g:3472:3: lv_memberCallArguments_21_0= ruleXExpression\n \t \t {\n \t \t if ( state.backtracking==0 ) {\n \t \t \n \t \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); \n \t \t \t \n \t \t }\n \t \t pushFollow(FOLLOW_15);\n \t \t lv_memberCallArguments_21_0=ruleXExpression();\n\n \t \t state._fsp--;\n \t \t if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t if (current==null) {\n \t \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t \t }\n \t \t \t\tadd(\n \t \t \t\t\tcurrent, \n \t \t \t\t\t\"memberCallArguments\",\n \t \t \t\tlv_memberCallArguments_21_0, \n \t \t \t\t\"org.eclipse.xtext.xbase.Xbase.XExpression\");\n \t \t \t afterParserOrEnumRuleCall();\n \t \t \t \n \t \t }\n\n \t \t }\n\n\n \t \t }\n\n\n \t \t }\n \t \t break;\n\n \t \tdefault :\n \t \t break loop62;\n \t }\n \t } while (true);\n\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n \t otherlv_22=(Token)match(input,25,FOLLOW_53); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2());\n \t \n \t }\n\n \t }\n \t break;\n\n \t }\n\n \t // InternalSpeADL.g:3492:3: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )?\n \t int alt65=2;\n \t alt65 = dfa65.predict(input);\n \t switch (alt65) {\n \t case 1 :\n \t // InternalSpeADL.g:3492:4: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure )\n \t {\n \t // InternalSpeADL.g:3495:1: (lv_memberCallArguments_23_0= ruleXClosure )\n \t // InternalSpeADL.g:3496:3: lv_memberCallArguments_23_0= ruleXClosure\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_46);\n \t lv_memberCallArguments_23_0=ruleXClosure();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"memberCallArguments\",\n \t \t\tlv_memberCallArguments_23_0, \n \t \t\t\"org.eclipse.xtext.xbase.Xbase.XClosure\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop66;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e9aaff7f7dfc1f8c12f5443e93f4ca07", "score": "0.5617509", "text": "void primary(){\n switch (token.code){\n case Token.INT:\n case Token.CHAR:\n token = scanner.nextToken();\n break;\n case Token.ID:\n SymbolEntry entry = name();\n acceptRole(entry, this.rightNames, \"must be a parameter, variable or constant name\");\n break;\n case Token.L_PAR:\n token = scanner.nextToken();\n expression();\n accept(Token.R_PAR, \"')' expected\");\n break;\n default: fatalError(\"error in primary\");\n }\n }", "title": "" }, { "docid": "39af1df7c10ec713e438a55a31840ffe", "score": "0.55888826", "text": "private Result pPrimary(final int yyStart) throws IOException {\n ParserColumn yyColumn = (ParserColumn)column(yyStart);\n if (null == yyColumn.chunk2) yyColumn.chunk2 = new Chunk2();\n if (null == yyColumn.chunk2.fPrimary) \n yyColumn.chunk2.fPrimary = pPrimary$1(yyStart);\n return yyColumn.chunk2.fPrimary;\n }", "title": "" }, { "docid": "12115ecae2d8302831c0d51a82c11a0b", "score": "0.5552812", "text": "public final EObject ruleExpressionUnary() throws RecognitionException {\n EObject current = null;\n\n AntlrDatatypeRuleToken lv_feature_1_0 = null;\n\n EObject lv_operand_2_0 = null;\n\n EObject this_ExpressionPrimary_3 = null;\n\n\n enterRule(); \n \n try {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3623:28: ( ( ( () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) ) ) | this_ExpressionPrimary_3= ruleExpressionPrimary ) )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:1: ( ( () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) ) ) | this_ExpressionPrimary_3= ruleExpressionPrimary )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:1: ( ( () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) ) ) | this_ExpressionPrimary_3= ruleExpressionPrimary )\n int alt52=2;\n int LA52_0 = input.LA(1);\n\n if ( ((LA52_0>=68 && LA52_0<=69)||LA52_0==73) ) {\n alt52=1;\n }\n else if ( ((LA52_0>=RULE_ID && LA52_0<=RULE_INT)||LA52_0==30||(LA52_0>=33 && LA52_0<=34)||LA52_0==51||LA52_0==53||LA52_0==74||LA52_0==77||LA52_0==80||(LA52_0>=82 && LA52_0<=116)) ) {\n alt52=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 52, 0, input);\n\n throw nvae;\n }\n switch (alt52) {\n case 1 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:2: ( () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) ) )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:2: ( () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) ) )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:3: () ( (lv_feature_1_0= ruleExpressionUnaryOp ) ) ( (lv_operand_2_0= ruleExpressionPrimary ) )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3624:3: ()\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3625:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getExpressionUnaryAccess().getUnaryOperationAction_0_0(),\n current);\n \n }\n\n }\n\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3630:2: ( (lv_feature_1_0= ruleExpressionUnaryOp ) )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3631:1: (lv_feature_1_0= ruleExpressionUnaryOp )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3631:1: (lv_feature_1_0= ruleExpressionUnaryOp )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3632:3: lv_feature_1_0= ruleExpressionUnaryOp\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpressionUnaryAccess().getFeatureExpressionUnaryOpParserRuleCall_0_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpressionUnaryOp_in_ruleExpressionUnary7859);\n lv_feature_1_0=ruleExpressionUnaryOp();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getExpressionUnaryRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"feature\",\n \t\tlv_feature_1_0, \n \t\t\"ExpressionUnaryOp\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3648:2: ( (lv_operand_2_0= ruleExpressionPrimary ) )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3649:1: (lv_operand_2_0= ruleExpressionPrimary )\n {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3649:1: (lv_operand_2_0= ruleExpressionPrimary )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3650:3: lv_operand_2_0= ruleExpressionPrimary\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getExpressionUnaryAccess().getOperandExpressionPrimaryParserRuleCall_0_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpressionPrimary_in_ruleExpressionUnary7880);\n lv_operand_2_0=ruleExpressionPrimary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getExpressionUnaryRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"operand\",\n \t\tlv_operand_2_0, \n \t\t\"ExpressionPrimary\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:3668:5: this_ExpressionPrimary_3= ruleExpressionPrimary\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getExpressionUnaryAccess().getExpressionPrimaryParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleExpressionPrimary_in_ruleExpressionUnary7909);\n this_ExpressionPrimary_3=ruleExpressionPrimary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ExpressionPrimary_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "969c29be6ec8732f546e4faa0c3b4873", "score": "0.5491863", "text": "public final EObject entryRuleXParenthesizedExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXParenthesizedExpression = null;\n\n\n try {\n // InternalSpeADL.g:4282:2: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF )\n // InternalSpeADL.g:4283:2: iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXParenthesizedExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleXParenthesizedExpression=ruleXParenthesizedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXParenthesizedExpression; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ff25df8f272e553b98523d35ad506c2c", "score": "0.5472382", "text": "public final EObject entryRulePrimaryNoActionCallExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePrimaryNoActionCallExpression = null;\n\n\n try {\n // InternalMASLParser.g:11016:70: (iv_rulePrimaryNoActionCallExpression= rulePrimaryNoActionCallExpression EOF )\n // InternalMASLParser.g:11017:2: iv_rulePrimaryNoActionCallExpression= rulePrimaryNoActionCallExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getPrimaryNoActionCallExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n iv_rulePrimaryNoActionCallExpression=rulePrimaryNoActionCallExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_rulePrimaryNoActionCallExpression; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "55048b6d0e07708c668b9b3ecc966759", "score": "0.54546744", "text": "public String visit(PrimaryExpression n) throws Exception {\n String id = n.f0.accept(this);\n if(id.equals(\"this\")){\n return state.classSt.className;\n }\n else if(n.f0.which == 7){\n return id;\n }\n else if(!id.equals(\"int\") && !id.equals(\"boolean\") && !id.equals(\"int[]\")){\n if(Main.symbolTable.get(id)!=null && n.f0.which == 6){\n return id;\n }\n String type = findTypeOf(id);\n if(type!=null){\n return type;\n }\n throw new Exception(\"PrimaryExpression: Variable: \"+id+\" hasn't been declared\");\n }\n return id;\n }", "title": "" }, { "docid": "2ebfdf65543cdb46236580d809eae40b", "score": "0.54523283", "text": "public final EObject entryRuleFindPrimary() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleFindPrimary = null;\n\n\n try {\n // InternalMASLParser.g:8289:52: (iv_ruleFindPrimary= ruleFindPrimary EOF )\n // InternalMASLParser.g:8290:2: iv_ruleFindPrimary= ruleFindPrimary EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getFindPrimaryRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleFindPrimary=ruleFindPrimary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleFindPrimary; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ea486f2cb75e881e8e0418a6194c872c", "score": "0.54502285", "text": "public final void mPRIMARY() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tint _type = PRIMARY;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// Fatworm.g:274:9: ( P R I M A R Y )\n\t\t\t// Fatworm.g:274:11: P R I M A R Y\n\t\t\t{\n\t\t\t\tmP();\n\t\t\t\tmR();\n\t\t\t\tmI();\n\t\t\t\tmM();\n\t\t\t\tmA();\n\t\t\t\tmR();\n\t\t\t\tmY();\n\t\t\t}\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t} finally\n\t\t{\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "title": "" }, { "docid": "530d6e434df17f7f2b5d7480dfe0c84c", "score": "0.54456127", "text": "public final Lime2Parser.postfix_expression_return postfix_expression() throws RecognitionException {\n Lime2Parser.postfix_expression_return retval = new Lime2Parser.postfix_expression_return();\n retval.start = input.LT(1);\n\n\n CTree root_0 = null;\n\n Token char_literal81=null;\n Token char_literal83=null;\n Token char_literal84=null;\n Token char_literal85=null;\n Lime2Parser.primary_expression_return primary_expression80 =null;\n\n Lime2Parser.argument_expression_list_return argument_expression_list82 =null;\n\n\n CTree char_literal81_tree=null;\n CTree char_literal83_tree=null;\n CTree char_literal84_tree=null;\n CTree char_literal85_tree=null;\n\n try {\n // ll\\\\Lime2.g:73:3: ( primary_expression ( '(' argument_expression_list ')' | '(' ')' ) )\n // ll\\\\Lime2.g:73:5: primary_expression ( '(' argument_expression_list ')' | '(' ')' )\n {\n root_0 = (CTree)adaptor.nil();\n\n\n pushFollow(FOLLOW_primary_expression_in_postfix_expression478);\n primary_expression80=primary_expression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, primary_expression80.getTree());\n\n // ll\\\\Lime2.g:74:5: ( '(' argument_expression_list ')' | '(' ')' )\n int alt17=2;\n switch ( input.LA(1) ) {\n case 34:\n {\n switch ( input.LA(2) ) {\n case 35:\n {\n alt17=2;\n }\n break;\n case ID:\n case INT:\n case 34:\n {\n alt17=1;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 17, 1, input);\n\n throw nvae;\n\n }\n\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 17, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt17) {\n case 1 :\n // ll\\\\Lime2.g:75:7: '(' argument_expression_list ')'\n {\n char_literal81=(Token)match(input,34,FOLLOW_34_in_postfix_expression493); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal81_tree = \n (CTree)adaptor.create(char_literal81)\n ;\n adaptor.addChild(root_0, char_literal81_tree);\n }\n\n pushFollow(FOLLOW_argument_expression_list_in_postfix_expression494);\n argument_expression_list82=argument_expression_list();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, argument_expression_list82.getTree());\n\n char_literal83=(Token)match(input,35,FOLLOW_35_in_postfix_expression496); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal83_tree = \n (CTree)adaptor.create(char_literal83)\n ;\n adaptor.addChild(root_0, char_literal83_tree);\n }\n\n }\n break;\n case 2 :\n // ll\\\\Lime2.g:76:7: '(' ')'\n {\n char_literal84=(Token)match(input,34,FOLLOW_34_in_postfix_expression505); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal84_tree = \n (CTree)adaptor.create(char_literal84)\n ;\n adaptor.addChild(root_0, char_literal84_tree);\n }\n\n char_literal85=(Token)match(input,35,FOLLOW_35_in_postfix_expression506); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal85_tree = \n (CTree)adaptor.create(char_literal85)\n ;\n adaptor.addChild(root_0, char_literal85_tree);\n }\n\n }\n break;\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "title": "" }, { "docid": "df04076f39f6c8abe27aae52c971309a", "score": "0.5398754", "text": "static boolean base_primary_expression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"base_primary_expression\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = array_creation_expression(b, l + 1);\n if (!r) r = consumeToken(b, LITERAL);\n if (!r) r = simple_name(b, l + 1);\n if (!r) r = parenthesized_expression(b, l + 1);\n if (!r) r = base_primary_expression_4(b, l + 1);\n if (!r) r = base_primary_expression_5(b, l + 1);\n if (!r) r = base_primary_expression_6(b, l + 1);\n if (!r) r = this_access(b, l + 1);\n if (!r) r = base_access(b, l + 1);\n if (!r) r = object_creation_expression(b, l + 1);\n if (!r) r = delegate_creation_expression(b, l + 1);\n if (!r) r = anonymous_object_creation_expression(b, l + 1);\n if (!r) r = typeof_expression(b, l + 1);\n if (!r) r = checked_expression(b, l + 1);\n if (!r) r = unchecked_expression(b, l + 1);\n if (!r) r = default_value_expression(b, l + 1);\n if (!r) r = anonymous_method_expression(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "title": "" }, { "docid": "eb61e9f1534d2b4dd009752b67a38661", "score": "0.5378524", "text": "@Override\n\tpublic ST visitPathPrimary(SparqlParser.PathPrimaryContext ctx) {\n\n\t\tST pathPrimary = g.getInstanceOf(\"pathPrimary\");\n\n\t\tif (ctx.iri() != null) {\n\t\t\tpathPrimary.add(\"iri\", visitIri(ctx.iri()));\n\t\t} else if (ctx.A() != null) {\n\t\t\tpathPrimary.add(\"A\", ctx.A().getSymbol().getText());\n\t\t} else if (ctx.pathNegatedPropertySet() != null) {\n\t\t\tpathPrimary.add(\"pathNegatedPropertySet\", visitPathNegatedPropertySet(ctx.pathNegatedPropertySet()));\n\t\t} else if (ctx.path() != null) {\n\t\t\tpathPrimary.add(\"path\", visitPath(ctx.path()));\n\t\t}\n\n\t\treturn pathPrimary;\n\t}", "title": "" }, { "docid": "1101f7644588f4a0fd90ace0b8dd7ade", "score": "0.5370741", "text": "public R visit(PrimaryExpression n, A argu) {\n R _ret=null;\n if(count!=2)\n {n.f0.accept(this, argu);}\n else\n {n.f0.accept(this, argu);\n \tSystem.out.println(\"|||||||\"+((Expression_1)argu).code);\n return _ret;}\n return _ret;\n }", "title": "" }, { "docid": "7c7d4ea8683ff9ab729c91f4dc4905d8", "score": "0.53353417", "text": "public final EObject rulePostfixExpression() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n Token otherlv_4=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_11=null;\n Token otherlv_12=null;\n Token otherlv_13=null;\n Token otherlv_15=null;\n Token otherlv_17=null;\n Token otherlv_19=null;\n Token otherlv_21=null;\n Token otherlv_23=null;\n Token otherlv_25=null;\n Token otherlv_27=null;\n Token otherlv_29=null;\n EObject this_PrimaryExpression_0 = null;\n\n EObject lv_arguments_3_0 = null;\n\n EObject lv_arguments_5_0 = null;\n\n EObject lv_arguments_14_0 = null;\n\n EObject lv_arguments_16_0 = null;\n\n EObject lv_brackets_20_0 = null;\n\n EObject lv_arguments_26_0 = null;\n\n EObject lv_arguments_28_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMASLParser.g:10543:2: ( (this_PrimaryExpression_0= rulePrimaryExpression ( ( () ( ( LeftParenthesis )=>otherlv_2= LeftParenthesis ) ( ( (lv_arguments_3_0= ruleExpression ) ) (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )* )? otherlv_6= RightParenthesis ) | ( () otherlv_8= FullStop ( (otherlv_9= RULE_ID ) ) ) | ( () otherlv_11= TildeGreaterThanSign ( (otherlv_12= RULE_ID ) ) otherlv_13= LeftParenthesis ( ( (lv_arguments_14_0= ruleExpression ) ) (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )* )? otherlv_17= RightParenthesis ) | ( () otherlv_19= LeftSquareBracket ( (lv_brackets_20_0= ruleExpression ) ) otherlv_21= RightSquareBracket ) | ( () otherlv_23= Apostrophe ( ( ruleCharacteristicID ) ) ( ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis ) ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )? otherlv_29= RightParenthesis )? ) )* ) )\n // InternalMASLParser.g:10544:2: (this_PrimaryExpression_0= rulePrimaryExpression ( ( () ( ( LeftParenthesis )=>otherlv_2= LeftParenthesis ) ( ( (lv_arguments_3_0= ruleExpression ) ) (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )* )? otherlv_6= RightParenthesis ) | ( () otherlv_8= FullStop ( (otherlv_9= RULE_ID ) ) ) | ( () otherlv_11= TildeGreaterThanSign ( (otherlv_12= RULE_ID ) ) otherlv_13= LeftParenthesis ( ( (lv_arguments_14_0= ruleExpression ) ) (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )* )? otherlv_17= RightParenthesis ) | ( () otherlv_19= LeftSquareBracket ( (lv_brackets_20_0= ruleExpression ) ) otherlv_21= RightSquareBracket ) | ( () otherlv_23= Apostrophe ( ( ruleCharacteristicID ) ) ( ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis ) ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )? otherlv_29= RightParenthesis )? ) )* )\n {\n // InternalMASLParser.g:10544:2: (this_PrimaryExpression_0= rulePrimaryExpression ( ( () ( ( LeftParenthesis )=>otherlv_2= LeftParenthesis ) ( ( (lv_arguments_3_0= ruleExpression ) ) (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )* )? otherlv_6= RightParenthesis ) | ( () otherlv_8= FullStop ( (otherlv_9= RULE_ID ) ) ) | ( () otherlv_11= TildeGreaterThanSign ( (otherlv_12= RULE_ID ) ) otherlv_13= LeftParenthesis ( ( (lv_arguments_14_0= ruleExpression ) ) (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )* )? otherlv_17= RightParenthesis ) | ( () otherlv_19= LeftSquareBracket ( (lv_brackets_20_0= ruleExpression ) ) otherlv_21= RightSquareBracket ) | ( () otherlv_23= Apostrophe ( ( ruleCharacteristicID ) ) ( ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis ) ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )? otherlv_29= RightParenthesis )? ) )* )\n // InternalMASLParser.g:10545:3: this_PrimaryExpression_0= rulePrimaryExpression ( ( () ( ( LeftParenthesis )=>otherlv_2= LeftParenthesis ) ( ( (lv_arguments_3_0= ruleExpression ) ) (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )* )? otherlv_6= RightParenthesis ) | ( () otherlv_8= FullStop ( (otherlv_9= RULE_ID ) ) ) | ( () otherlv_11= TildeGreaterThanSign ( (otherlv_12= RULE_ID ) ) otherlv_13= LeftParenthesis ( ( (lv_arguments_14_0= ruleExpression ) ) (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )* )? otherlv_17= RightParenthesis ) | ( () otherlv_19= LeftSquareBracket ( (lv_brackets_20_0= ruleExpression ) ) otherlv_21= RightSquareBracket ) | ( () otherlv_23= Apostrophe ( ( ruleCharacteristicID ) ) ( ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis ) ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )? otherlv_29= RightParenthesis )? ) )*\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPostfixExpressionAccess().getPrimaryExpressionParserRuleCall_0());\n \t\t\n }\n pushFollow(FOLLOW_139);\n this_PrimaryExpression_0=rulePrimaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_PrimaryExpression_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n // InternalMASLParser.g:10553:3: ( ( () ( ( LeftParenthesis )=>otherlv_2= LeftParenthesis ) ( ( (lv_arguments_3_0= ruleExpression ) ) (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )* )? otherlv_6= RightParenthesis ) | ( () otherlv_8= FullStop ( (otherlv_9= RULE_ID ) ) ) | ( () otherlv_11= TildeGreaterThanSign ( (otherlv_12= RULE_ID ) ) otherlv_13= LeftParenthesis ( ( (lv_arguments_14_0= ruleExpression ) ) (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )* )? otherlv_17= RightParenthesis ) | ( () otherlv_19= LeftSquareBracket ( (lv_brackets_20_0= ruleExpression ) ) otherlv_21= RightSquareBracket ) | ( () otherlv_23= Apostrophe ( ( ruleCharacteristicID ) ) ( ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis ) ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )? otherlv_29= RightParenthesis )? ) )*\n loop210:\n do {\n int alt210=6;\n switch ( input.LA(1) ) {\n case LeftParenthesis:\n {\n alt210=1;\n }\n break;\n case FullStop:\n {\n alt210=2;\n }\n break;\n case TildeGreaterThanSign:\n {\n alt210=3;\n }\n break;\n case LeftSquareBracket:\n {\n alt210=4;\n }\n break;\n case Apostrophe:\n {\n alt210=5;\n }\n break;\n\n }\n\n switch (alt210) {\n \tcase 1 :\n \t // InternalMASLParser.g:10554:4: ( () ( ( LeftParenthesis )=>otherlv_2= LeftParenthesis ) ( ( (lv_arguments_3_0= ruleExpression ) ) (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )* )? otherlv_6= RightParenthesis )\n \t {\n \t // InternalMASLParser.g:10554:4: ( () ( ( LeftParenthesis )=>otherlv_2= LeftParenthesis ) ( ( (lv_arguments_3_0= ruleExpression ) ) (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )* )? otherlv_6= RightParenthesis )\n \t // InternalMASLParser.g:10555:5: () ( ( LeftParenthesis )=>otherlv_2= LeftParenthesis ) ( ( (lv_arguments_3_0= ruleExpression ) ) (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )* )? otherlv_6= RightParenthesis\n \t {\n \t // InternalMASLParser.g:10555:5: ()\n \t // InternalMASLParser.g:10556:6: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getPostfixExpressionAccess().getActionCallReceiverAction_1_0_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n \t // InternalMASLParser.g:10562:5: ( ( LeftParenthesis )=>otherlv_2= LeftParenthesis )\n \t // InternalMASLParser.g:10563:6: ( LeftParenthesis )=>otherlv_2= LeftParenthesis\n \t {\n \t otherlv_2=(Token)match(input,LeftParenthesis,FOLLOW_92); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tnewLeafNode(otherlv_2, grammarAccess.getPostfixExpressionAccess().getLeftParenthesisKeyword_1_0_1());\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n \t // InternalMASLParser.g:10569:5: ( ( (lv_arguments_3_0= ruleExpression ) ) (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )* )?\n \t int alt204=2;\n \t int LA204_0 = input.LA(1);\n\n \t if ( (LA204_0==Dictionary||LA204_0==Anonymous||LA204_0==Find_only||(LA204_0>=Find_all && LA204_0<=Find_one)||LA204_0==Instance||LA204_0==Sequence||LA204_0==Console||(LA204_0>=FILE && LA204_0<=LINE)||LA204_0==Create||(LA204_0>=Unlink && LA204_0<=Array)||(LA204_0>=False && LA204_0<=Flush)||LA204_0==Endl||LA204_0==Find||LA204_0==Link||LA204_0==Null||(LA204_0>=This && LA204_0<=True)||LA204_0==Abs||LA204_0==Bag||LA204_0==Not||LA204_0==Set||LA204_0==LeftParenthesis||LA204_0==PlusSign||LA204_0==HyphenMinus||(LA204_0>=RULE_ID && LA204_0<=RULE_TIMESTAMP)) ) {\n \t alt204=1;\n \t }\n \t switch (alt204) {\n \t case 1 :\n \t // InternalMASLParser.g:10570:6: ( (lv_arguments_3_0= ruleExpression ) ) (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )*\n \t {\n \t // InternalMASLParser.g:10570:6: ( (lv_arguments_3_0= ruleExpression ) )\n \t // InternalMASLParser.g:10571:7: (lv_arguments_3_0= ruleExpression )\n \t {\n \t // InternalMASLParser.g:10571:7: (lv_arguments_3_0= ruleExpression )\n \t // InternalMASLParser.g:10572:8: lv_arguments_3_0= ruleExpression\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPostfixExpressionAccess().getArgumentsExpressionParserRuleCall_1_0_2_0_0());\n \t \t\t\t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_10);\n \t lv_arguments_3_0=ruleExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPostfixExpressionRule());\n \t \t\t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\t\"arguments\",\n \t \t\t\t\t\t\t\t\t\tlv_arguments_3_0,\n \t \t\t\t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.Expression\");\n \t \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n \t // InternalMASLParser.g:10589:6: (otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) ) )*\n \t loop203:\n \t do {\n \t int alt203=2;\n \t int LA203_0 = input.LA(1);\n\n \t if ( (LA203_0==Comma) ) {\n \t alt203=1;\n \t }\n\n\n \t switch (alt203) {\n \t \tcase 1 :\n \t \t // InternalMASLParser.g:10590:7: otherlv_4= Comma ( (lv_arguments_5_0= ruleExpression ) )\n \t \t {\n \t \t otherlv_4=(Token)match(input,Comma,FOLLOW_40); if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t\t\t\t\t\t\tnewLeafNode(otherlv_4, grammarAccess.getPostfixExpressionAccess().getCommaKeyword_1_0_2_1_0());\n \t \t \t\t\t\t\t\t\n \t \t }\n \t \t // InternalMASLParser.g:10594:7: ( (lv_arguments_5_0= ruleExpression ) )\n \t \t // InternalMASLParser.g:10595:8: (lv_arguments_5_0= ruleExpression )\n \t \t {\n \t \t // InternalMASLParser.g:10595:8: (lv_arguments_5_0= ruleExpression )\n \t \t // InternalMASLParser.g:10596:9: lv_arguments_5_0= ruleExpression\n \t \t {\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t\t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPostfixExpressionAccess().getArgumentsExpressionParserRuleCall_1_0_2_1_1_0());\n \t \t \t\t\t\t\t\t\t\t\n \t \t }\n \t \t pushFollow(FOLLOW_10);\n \t \t lv_arguments_5_0=ruleExpression();\n\n \t \t state._fsp--;\n \t \t if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t\t\t\t\t\t\t\t\tif (current==null) {\n \t \t \t\t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPostfixExpressionRule());\n \t \t \t\t\t\t\t\t\t\t\t}\n \t \t \t\t\t\t\t\t\t\t\tadd(\n \t \t \t\t\t\t\t\t\t\t\t\tcurrent,\n \t \t \t\t\t\t\t\t\t\t\t\t\"arguments\",\n \t \t \t\t\t\t\t\t\t\t\t\tlv_arguments_5_0,\n \t \t \t\t\t\t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.Expression\");\n \t \t \t\t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t \t\t\t\t\t\t\t\t\n \t \t }\n\n \t \t }\n\n\n \t \t }\n\n\n \t \t }\n \t \t break;\n\n \t \tdefault :\n \t \t break loop203;\n \t }\n \t } while (true);\n\n\n \t }\n \t break;\n\n \t }\n\n \t otherlv_6=(Token)match(input,RightParenthesis,FOLLOW_139); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getPostfixExpressionAccess().getRightParenthesisKeyword_1_0_3());\n \t \t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // InternalMASLParser.g:10621:4: ( () otherlv_8= FullStop ( (otherlv_9= RULE_ID ) ) )\n \t {\n \t // InternalMASLParser.g:10621:4: ( () otherlv_8= FullStop ( (otherlv_9= RULE_ID ) ) )\n \t // InternalMASLParser.g:10622:5: () otherlv_8= FullStop ( (otherlv_9= RULE_ID ) )\n \t {\n \t // InternalMASLParser.g:10622:5: ()\n \t // InternalMASLParser.g:10623:6: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getPostfixExpressionAccess().getSimpleFeatureCallReceiverAction_1_1_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n \t otherlv_8=(Token)match(input,FullStop,FOLLOW_5); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_8, grammarAccess.getPostfixExpressionAccess().getFullStopKeyword_1_1_1());\n \t \t\t\t\t\n \t }\n \t // InternalMASLParser.g:10633:5: ( (otherlv_9= RULE_ID ) )\n \t // InternalMASLParser.g:10634:6: (otherlv_9= RULE_ID )\n \t {\n \t // InternalMASLParser.g:10634:6: (otherlv_9= RULE_ID )\n \t // InternalMASLParser.g:10635:7: otherlv_9= RULE_ID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPostfixExpressionRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\n \t }\n \t otherlv_9=(Token)match(input,RULE_ID,FOLLOW_139); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPostfixExpressionAccess().getFeatureAbstractFeatureCrossReference_1_1_2_0());\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 3 :\n \t // InternalMASLParser.g:10648:4: ( () otherlv_11= TildeGreaterThanSign ( (otherlv_12= RULE_ID ) ) otherlv_13= LeftParenthesis ( ( (lv_arguments_14_0= ruleExpression ) ) (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )* )? otherlv_17= RightParenthesis )\n \t {\n \t // InternalMASLParser.g:10648:4: ( () otherlv_11= TildeGreaterThanSign ( (otherlv_12= RULE_ID ) ) otherlv_13= LeftParenthesis ( ( (lv_arguments_14_0= ruleExpression ) ) (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )* )? otherlv_17= RightParenthesis )\n \t // InternalMASLParser.g:10649:5: () otherlv_11= TildeGreaterThanSign ( (otherlv_12= RULE_ID ) ) otherlv_13= LeftParenthesis ( ( (lv_arguments_14_0= ruleExpression ) ) (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )* )? otherlv_17= RightParenthesis\n \t {\n \t // InternalMASLParser.g:10649:5: ()\n \t // InternalMASLParser.g:10650:6: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getPostfixExpressionAccess().getTerminatorActionCallReceiverAction_1_2_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n \t otherlv_11=(Token)match(input,TildeGreaterThanSign,FOLLOW_5); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_11, grammarAccess.getPostfixExpressionAccess().getTildeGreaterThanSignKeyword_1_2_1());\n \t \t\t\t\t\n \t }\n \t // InternalMASLParser.g:10660:5: ( (otherlv_12= RULE_ID ) )\n \t // InternalMASLParser.g:10661:6: (otherlv_12= RULE_ID )\n \t {\n \t // InternalMASLParser.g:10661:6: (otherlv_12= RULE_ID )\n \t // InternalMASLParser.g:10662:7: otherlv_12= RULE_ID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPostfixExpressionRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\n \t }\n \t otherlv_12=(Token)match(input,RULE_ID,FOLLOW_8); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tnewLeafNode(otherlv_12, grammarAccess.getPostfixExpressionAccess().getTerminatorActionAbstractFeatureCrossReference_1_2_2_0());\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n \t otherlv_13=(Token)match(input,LeftParenthesis,FOLLOW_92); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_13, grammarAccess.getPostfixExpressionAccess().getLeftParenthesisKeyword_1_2_3());\n \t \t\t\t\t\n \t }\n \t // InternalMASLParser.g:10677:5: ( ( (lv_arguments_14_0= ruleExpression ) ) (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )* )?\n \t int alt206=2;\n \t int LA206_0 = input.LA(1);\n\n \t if ( (LA206_0==Dictionary||LA206_0==Anonymous||LA206_0==Find_only||(LA206_0>=Find_all && LA206_0<=Find_one)||LA206_0==Instance||LA206_0==Sequence||LA206_0==Console||(LA206_0>=FILE && LA206_0<=LINE)||LA206_0==Create||(LA206_0>=Unlink && LA206_0<=Array)||(LA206_0>=False && LA206_0<=Flush)||LA206_0==Endl||LA206_0==Find||LA206_0==Link||LA206_0==Null||(LA206_0>=This && LA206_0<=True)||LA206_0==Abs||LA206_0==Bag||LA206_0==Not||LA206_0==Set||LA206_0==LeftParenthesis||LA206_0==PlusSign||LA206_0==HyphenMinus||(LA206_0>=RULE_ID && LA206_0<=RULE_TIMESTAMP)) ) {\n \t alt206=1;\n \t }\n \t switch (alt206) {\n \t case 1 :\n \t // InternalMASLParser.g:10678:6: ( (lv_arguments_14_0= ruleExpression ) ) (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )*\n \t {\n \t // InternalMASLParser.g:10678:6: ( (lv_arguments_14_0= ruleExpression ) )\n \t // InternalMASLParser.g:10679:7: (lv_arguments_14_0= ruleExpression )\n \t {\n \t // InternalMASLParser.g:10679:7: (lv_arguments_14_0= ruleExpression )\n \t // InternalMASLParser.g:10680:8: lv_arguments_14_0= ruleExpression\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPostfixExpressionAccess().getArgumentsExpressionParserRuleCall_1_2_4_0_0());\n \t \t\t\t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_10);\n \t lv_arguments_14_0=ruleExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPostfixExpressionRule());\n \t \t\t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\t\"arguments\",\n \t \t\t\t\t\t\t\t\t\tlv_arguments_14_0,\n \t \t\t\t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.Expression\");\n \t \t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n \t // InternalMASLParser.g:10697:6: (otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) ) )*\n \t loop205:\n \t do {\n \t int alt205=2;\n \t int LA205_0 = input.LA(1);\n\n \t if ( (LA205_0==Comma) ) {\n \t alt205=1;\n \t }\n\n\n \t switch (alt205) {\n \t \tcase 1 :\n \t \t // InternalMASLParser.g:10698:7: otherlv_15= Comma ( (lv_arguments_16_0= ruleExpression ) )\n \t \t {\n \t \t otherlv_15=(Token)match(input,Comma,FOLLOW_40); if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t\t\t\t\t\t\tnewLeafNode(otherlv_15, grammarAccess.getPostfixExpressionAccess().getCommaKeyword_1_2_4_1_0());\n \t \t \t\t\t\t\t\t\n \t \t }\n \t \t // InternalMASLParser.g:10702:7: ( (lv_arguments_16_0= ruleExpression ) )\n \t \t // InternalMASLParser.g:10703:8: (lv_arguments_16_0= ruleExpression )\n \t \t {\n \t \t // InternalMASLParser.g:10703:8: (lv_arguments_16_0= ruleExpression )\n \t \t // InternalMASLParser.g:10704:9: lv_arguments_16_0= ruleExpression\n \t \t {\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t\t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPostfixExpressionAccess().getArgumentsExpressionParserRuleCall_1_2_4_1_1_0());\n \t \t \t\t\t\t\t\t\t\t\n \t \t }\n \t \t pushFollow(FOLLOW_10);\n \t \t lv_arguments_16_0=ruleExpression();\n\n \t \t state._fsp--;\n \t \t if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t\t\t\t\t\t\t\t\tif (current==null) {\n \t \t \t\t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPostfixExpressionRule());\n \t \t \t\t\t\t\t\t\t\t\t}\n \t \t \t\t\t\t\t\t\t\t\tadd(\n \t \t \t\t\t\t\t\t\t\t\t\tcurrent,\n \t \t \t\t\t\t\t\t\t\t\t\t\"arguments\",\n \t \t \t\t\t\t\t\t\t\t\t\tlv_arguments_16_0,\n \t \t \t\t\t\t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.Expression\");\n \t \t \t\t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t \t\t\t\t\t\t\t\t\n \t \t }\n\n \t \t }\n\n\n \t \t }\n\n\n \t \t }\n \t \t break;\n\n \t \tdefault :\n \t \t break loop205;\n \t }\n \t } while (true);\n\n\n \t }\n \t break;\n\n \t }\n\n \t otherlv_17=(Token)match(input,RightParenthesis,FOLLOW_139); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_17, grammarAccess.getPostfixExpressionAccess().getRightParenthesisKeyword_1_2_5());\n \t \t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n \t break;\n \tcase 4 :\n \t // InternalMASLParser.g:10729:4: ( () otherlv_19= LeftSquareBracket ( (lv_brackets_20_0= ruleExpression ) ) otherlv_21= RightSquareBracket )\n \t {\n \t // InternalMASLParser.g:10729:4: ( () otherlv_19= LeftSquareBracket ( (lv_brackets_20_0= ruleExpression ) ) otherlv_21= RightSquareBracket )\n \t // InternalMASLParser.g:10730:5: () otherlv_19= LeftSquareBracket ( (lv_brackets_20_0= ruleExpression ) ) otherlv_21= RightSquareBracket\n \t {\n \t // InternalMASLParser.g:10730:5: ()\n \t // InternalMASLParser.g:10731:6: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getPostfixExpressionAccess().getIndexedExpressionReceiverAction_1_3_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n \t otherlv_19=(Token)match(input,LeftSquareBracket,FOLLOW_40); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_19, grammarAccess.getPostfixExpressionAccess().getLeftSquareBracketKeyword_1_3_1());\n \t \t\t\t\t\n \t }\n \t // InternalMASLParser.g:10741:5: ( (lv_brackets_20_0= ruleExpression ) )\n \t // InternalMASLParser.g:10742:6: (lv_brackets_20_0= ruleExpression )\n \t {\n \t // InternalMASLParser.g:10742:6: (lv_brackets_20_0= ruleExpression )\n \t // InternalMASLParser.g:10743:7: lv_brackets_20_0= ruleExpression\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPostfixExpressionAccess().getBracketsExpressionParserRuleCall_1_3_2_0());\n \t \t\t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_121);\n \t lv_brackets_20_0=ruleExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPostfixExpressionRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"brackets\",\n \t \t\t\t\t\t\t\t\tlv_brackets_20_0,\n \t \t\t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.Expression\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n \t otherlv_21=(Token)match(input,RightSquareBracket,FOLLOW_139); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_21, grammarAccess.getPostfixExpressionAccess().getRightSquareBracketKeyword_1_3_3());\n \t \t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n \t break;\n \tcase 5 :\n \t // InternalMASLParser.g:10766:4: ( () otherlv_23= Apostrophe ( ( ruleCharacteristicID ) ) ( ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis ) ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )? otherlv_29= RightParenthesis )? )\n \t {\n \t // InternalMASLParser.g:10766:4: ( () otherlv_23= Apostrophe ( ( ruleCharacteristicID ) ) ( ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis ) ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )? otherlv_29= RightParenthesis )? )\n \t // InternalMASLParser.g:10767:5: () otherlv_23= Apostrophe ( ( ruleCharacteristicID ) ) ( ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis ) ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )? otherlv_29= RightParenthesis )?\n \t {\n \t // InternalMASLParser.g:10767:5: ()\n \t // InternalMASLParser.g:10768:6: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getPostfixExpressionAccess().getCharacteristicCallReceiverAction_1_4_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n \t otherlv_23=(Token)match(input,Apostrophe,FOLLOW_30); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_23, grammarAccess.getPostfixExpressionAccess().getApostropheKeyword_1_4_1());\n \t \t\t\t\t\n \t }\n \t // InternalMASLParser.g:10778:5: ( ( ruleCharacteristicID ) )\n \t // InternalMASLParser.g:10779:6: ( ruleCharacteristicID )\n \t {\n \t // InternalMASLParser.g:10779:6: ( ruleCharacteristicID )\n \t // InternalMASLParser.g:10780:7: ruleCharacteristicID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPostfixExpressionRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPostfixExpressionAccess().getCharacteristicCharacteristicCrossReference_1_4_2_0());\n \t \t\t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_139);\n \t ruleCharacteristicID();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n \t // InternalMASLParser.g:10794:5: ( ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis ) ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )? otherlv_29= RightParenthesis )?\n \t int alt209=2;\n \t alt209 = dfa209.predict(input);\n \t switch (alt209) {\n \t case 1 :\n \t // InternalMASLParser.g:10795:6: ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis ) ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )? otherlv_29= RightParenthesis\n \t {\n \t // InternalMASLParser.g:10795:6: ( ( LeftParenthesis )=>otherlv_25= LeftParenthesis )\n \t // InternalMASLParser.g:10796:7: ( LeftParenthesis )=>otherlv_25= LeftParenthesis\n \t {\n \t otherlv_25=(Token)match(input,LeftParenthesis,FOLLOW_92); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tnewLeafNode(otherlv_25, grammarAccess.getPostfixExpressionAccess().getLeftParenthesisKeyword_1_4_3_0());\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n \t // InternalMASLParser.g:10802:6: ( ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )* )?\n \t int alt208=2;\n \t int LA208_0 = input.LA(1);\n\n \t if ( (LA208_0==Dictionary||LA208_0==Anonymous||LA208_0==Find_only||(LA208_0>=Find_all && LA208_0<=Find_one)||LA208_0==Instance||LA208_0==Sequence||LA208_0==Console||(LA208_0>=FILE && LA208_0<=LINE)||LA208_0==Create||(LA208_0>=Unlink && LA208_0<=Array)||(LA208_0>=False && LA208_0<=Flush)||LA208_0==Endl||LA208_0==Find||LA208_0==Link||LA208_0==Null||(LA208_0>=This && LA208_0<=True)||LA208_0==Abs||LA208_0==Bag||LA208_0==Not||LA208_0==Set||LA208_0==LeftParenthesis||LA208_0==PlusSign||LA208_0==HyphenMinus||(LA208_0>=RULE_ID && LA208_0<=RULE_TIMESTAMP)) ) {\n \t alt208=1;\n \t }\n \t switch (alt208) {\n \t case 1 :\n \t // InternalMASLParser.g:10803:7: ( (lv_arguments_26_0= ruleExpression ) ) (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )*\n \t {\n \t // InternalMASLParser.g:10803:7: ( (lv_arguments_26_0= ruleExpression ) )\n \t // InternalMASLParser.g:10804:8: (lv_arguments_26_0= ruleExpression )\n \t {\n \t // InternalMASLParser.g:10804:8: (lv_arguments_26_0= ruleExpression )\n \t // InternalMASLParser.g:10805:9: lv_arguments_26_0= ruleExpression\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPostfixExpressionAccess().getArgumentsExpressionParserRuleCall_1_4_3_1_0_0());\n \t \t\t\t\t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_10);\n \t lv_arguments_26_0=ruleExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPostfixExpressionRule());\n \t \t\t\t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\t\t\tadd(\n \t \t\t\t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\t\t\"arguments\",\n \t \t\t\t\t\t\t\t\t\t\tlv_arguments_26_0,\n \t \t\t\t\t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.Expression\");\n \t \t\t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n \t // InternalMASLParser.g:10822:7: (otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) ) )*\n \t loop207:\n \t do {\n \t int alt207=2;\n \t int LA207_0 = input.LA(1);\n\n \t if ( (LA207_0==Comma) ) {\n \t alt207=1;\n \t }\n\n\n \t switch (alt207) {\n \t \tcase 1 :\n \t \t // InternalMASLParser.g:10823:8: otherlv_27= Comma ( (lv_arguments_28_0= ruleExpression ) )\n \t \t {\n \t \t otherlv_27=(Token)match(input,Comma,FOLLOW_40); if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t\t\t\t\t\t\t\tnewLeafNode(otherlv_27, grammarAccess.getPostfixExpressionAccess().getCommaKeyword_1_4_3_1_1_0());\n \t \t \t\t\t\t\t\t\t\n \t \t }\n \t \t // InternalMASLParser.g:10827:8: ( (lv_arguments_28_0= ruleExpression ) )\n \t \t // InternalMASLParser.g:10828:9: (lv_arguments_28_0= ruleExpression )\n \t \t {\n \t \t // InternalMASLParser.g:10828:9: (lv_arguments_28_0= ruleExpression )\n \t \t // InternalMASLParser.g:10829:10: lv_arguments_28_0= ruleExpression\n \t \t {\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t\t\t\t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPostfixExpressionAccess().getArgumentsExpressionParserRuleCall_1_4_3_1_1_1_0());\n \t \t \t\t\t\t\t\t\t\t\t\n \t \t }\n \t \t pushFollow(FOLLOW_10);\n \t \t lv_arguments_28_0=ruleExpression();\n\n \t \t state._fsp--;\n \t \t if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t\t\t\t\t\t\t\t\t\tif (current==null) {\n \t \t \t\t\t\t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPostfixExpressionRule());\n \t \t \t\t\t\t\t\t\t\t\t\t}\n \t \t \t\t\t\t\t\t\t\t\t\tadd(\n \t \t \t\t\t\t\t\t\t\t\t\t\tcurrent,\n \t \t \t\t\t\t\t\t\t\t\t\t\t\"arguments\",\n \t \t \t\t\t\t\t\t\t\t\t\t\tlv_arguments_28_0,\n \t \t \t\t\t\t\t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.Expression\");\n \t \t \t\t\t\t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t \t\t\t\t\t\t\t\t\t\n \t \t }\n\n \t \t }\n\n\n \t \t }\n\n\n \t \t }\n \t \t break;\n\n \t \tdefault :\n \t \t break loop207;\n \t }\n \t } while (true);\n\n\n \t }\n \t break;\n\n \t }\n\n \t otherlv_29=(Token)match(input,RightParenthesis,FOLLOW_139); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tnewLeafNode(otherlv_29, grammarAccess.getPostfixExpressionAccess().getRightParenthesisKeyword_1_4_3_2());\n \t \t\t\t\t\t\n \t }\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop210;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "14f26bffc3b002fbbcdb081c988817a6", "score": "0.5320746", "text": "public final EObject rulePrimaryNoActionCallExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_Literal_0 = null;\n\n EObject this_ParenthesisedExpression_1 = null;\n\n EObject this_SimpleFeatureCall_2 = null;\n\n EObject this_TypeNameExpression_3 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMASLParser.g:11029:2: ( (this_Literal_0= ruleLiteral | this_ParenthesisedExpression_1= ruleParenthesisedExpression | this_SimpleFeatureCall_2= ruleSimpleFeatureCall | this_TypeNameExpression_3= ruleTypeNameExpression ) )\n // InternalMASLParser.g:11030:2: (this_Literal_0= ruleLiteral | this_ParenthesisedExpression_1= ruleParenthesisedExpression | this_SimpleFeatureCall_2= ruleSimpleFeatureCall | this_TypeNameExpression_3= ruleTypeNameExpression )\n {\n // InternalMASLParser.g:11030:2: (this_Literal_0= ruleLiteral | this_ParenthesisedExpression_1= ruleParenthesisedExpression | this_SimpleFeatureCall_2= ruleSimpleFeatureCall | this_TypeNameExpression_3= ruleTypeNameExpression )\n int alt213=4;\n switch ( input.LA(1) ) {\n case Console:\n case FILE:\n case LINE:\n case False:\n case Flush:\n case Endl:\n case Null:\n case This:\n case True:\n case RULE_INTEGER:\n case RULE_REAL:\n case RULE_STRING:\n case RULE_CHAR:\n case RULE_DURATION:\n case RULE_TIMESTAMP:\n {\n alt213=1;\n }\n break;\n case LeftParenthesis:\n {\n alt213=2;\n }\n break;\n case RULE_ID:\n {\n alt213=3;\n }\n break;\n case Dictionary:\n case Anonymous:\n case Instance:\n case Sequence:\n case Array:\n case Bag:\n case Set:\n {\n alt213=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 213, 0, input);\n\n throw nvae;\n }\n\n switch (alt213) {\n case 1 :\n // InternalMASLParser.g:11031:3: this_Literal_0= ruleLiteral\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPrimaryNoActionCallExpressionAccess().getLiteralParserRuleCall_0());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_Literal_0=ruleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_Literal_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 2 :\n // InternalMASLParser.g:11040:3: this_ParenthesisedExpression_1= ruleParenthesisedExpression\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPrimaryNoActionCallExpressionAccess().getParenthesisedExpressionParserRuleCall_1());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_ParenthesisedExpression_1=ruleParenthesisedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_ParenthesisedExpression_1;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 3 :\n // InternalMASLParser.g:11049:3: this_SimpleFeatureCall_2= ruleSimpleFeatureCall\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPrimaryNoActionCallExpressionAccess().getSimpleFeatureCallParserRuleCall_2());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_SimpleFeatureCall_2=ruleSimpleFeatureCall();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_SimpleFeatureCall_2;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n case 4 :\n // InternalMASLParser.g:11058:3: this_TypeNameExpression_3= ruleTypeNameExpression\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPrimaryNoActionCallExpressionAccess().getTypeNameExpressionParserRuleCall_3());\n \t\t\n }\n pushFollow(FOLLOW_2);\n this_TypeNameExpression_3=ruleTypeNameExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_TypeNameExpression_3;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ea39a64cbe990b5fab887c21fa462be8", "score": "0.5298305", "text": "public final DSToolkitSQLParser.numeric_primary_return numeric_primary() throws RecognitionException {\r\n DSToolkitSQLParser.numeric_primary_return retval = new DSToolkitSQLParser.numeric_primary_return();\r\n retval.start = input.LT(1);\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token char_literal54=null;\r\n Token char_literal55=null;\r\n DSToolkitSQLParser.value_expression_primary_return value_expression_primary56 = null;\r\n\r\n\r\n CommonTree char_literal54_tree=null;\r\n CommonTree char_literal55_tree=null;\r\n\r\n try {\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:159:2: ( ( '+' | '-' )? value_expression_primary )\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:159:5: ( '+' | '-' )? value_expression_primary\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:159:5: ( '+' | '-' )?\r\n int alt21=3;\r\n switch ( input.LA(1) ) {\r\n case 74:\r\n {\r\n alt21=1;\r\n }\r\n break;\r\n case 75:\r\n {\r\n alt21=2;\r\n }\r\n break;\r\n }\r\n\r\n switch (alt21) {\r\n case 1 :\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:159:6: '+'\r\n {\r\n char_literal54=(Token)match(input,74,FOLLOW_74_in_numeric_primary749); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n char_literal54_tree = (CommonTree)adaptor.create(char_literal54);\r\n root_0 = (CommonTree)adaptor.becomeRoot(char_literal54_tree, root_0);\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:159:11: '-'\r\n {\r\n char_literal55=(Token)match(input,75,FOLLOW_75_in_numeric_primary752); if (state.failed) return retval;\r\n if ( state.backtracking==0 ) {\r\n char_literal55_tree = (CommonTree)adaptor.create(char_literal55);\r\n root_0 = (CommonTree)adaptor.becomeRoot(char_literal55_tree, root_0);\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n pushFollow(FOLLOW_value_expression_primary_in_numeric_primary757);\r\n value_expression_primary56=value_expression_primary();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, value_expression_primary56.getTree());\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n\r\n catch (RecognitionException e)\r\n {\r\n reportError(e);\r\n throw e;\r\n }\r\n finally {\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "0d12fc28f2514c2d6e1bace683cabb35", "score": "0.5294702", "text": "public final DSToolkitSQLParser.boolean_primary_return boolean_primary() throws RecognitionException {\r\n DSToolkitSQLParser.boolean_primary_return retval = new DSToolkitSQLParser.boolean_primary_return();\r\n retval.start = input.LT(1);\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token char_literal141=null;\r\n Token char_literal143=null;\r\n DSToolkitSQLParser.predicate_return predicate140 = null;\r\n\r\n DSToolkitSQLParser.search_condition_return search_condition142 = null;\r\n\r\n\r\n CommonTree char_literal141_tree=null;\r\n CommonTree char_literal143_tree=null;\r\n\r\n try {\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:236:2: ( predicate | '(' search_condition ')' )\r\n int alt54=2;\r\n alt54 = dfa54.predict(input);\r\n switch (alt54) {\r\n case 1 :\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:236:4: predicate\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n pushFollow(FOLLOW_predicate_in_boolean_primary1477);\r\n predicate140=predicate();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, predicate140.getTree());\r\n\r\n }\r\n break;\r\n case 2 :\r\n // uk\\\\ac\\\\manchester\\\\dstoolkit\\\\service\\\\impl\\\\query\\\\queryparser\\\\DSToolkitSQL.g:236:16: '(' search_condition ')'\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n char_literal141=(Token)match(input,56,FOLLOW_56_in_boolean_primary1481); if (state.failed) return retval;\r\n pushFollow(FOLLOW_search_condition_in_boolean_primary1484);\r\n search_condition142=search_condition();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, search_condition142.getTree());\r\n char_literal143=(Token)match(input,57,FOLLOW_57_in_boolean_primary1486); if (state.failed) return retval;\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n\r\n catch (RecognitionException e)\r\n {\r\n reportError(e);\r\n throw e;\r\n }\r\n finally {\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "5fc8193975df95cf5324c8e582bc5b5d", "score": "0.5221928", "text": "public final EObject ruleXMemberFeatureCall() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n Token lv_explicitStatic_3_0=null;\n Token otherlv_8=null;\n Token lv_nullSafe_9_0=null;\n Token lv_explicitStatic_10_0=null;\n Token otherlv_11=null;\n Token otherlv_13=null;\n Token otherlv_15=null;\n Token lv_explicitOperationCall_17_0=null;\n Token otherlv_20=null;\n Token otherlv_22=null;\n EObject this_XPrimaryExpression_0 = null;\n\n EObject lv_value_6_0 = null;\n\n EObject lv_typeArguments_12_0 = null;\n\n EObject lv_typeArguments_14_0 = null;\n\n EObject lv_memberCallArguments_18_0 = null;\n\n EObject lv_memberCallArguments_19_0 = null;\n\n EObject lv_memberCallArguments_21_0 = null;\n\n EObject lv_memberCallArguments_23_0 = null;\n\n\n enterRule(); \n \n try {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1955:28: ( (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleFeatureCallID ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1956:1: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleFeatureCallID ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* )\n {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1956:1: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleFeatureCallID ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1957:5: this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleFeatureCallID ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleXPrimaryExpression_in_ruleXMemberFeatureCall5045);\n this_XPrimaryExpression_0=ruleXPrimaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XPrimaryExpression_0; \n afterParserOrEnumRuleCall();\n \n }\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1965:1: ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleFeatureCallID ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )*\n loop31:\n do {\n int alt31=3;\n switch ( input.LA(1) ) {\n case 55:\n {\n int LA31_2 = input.LA(2);\n\n if ( (synpred13_InternalSparrow()) ) {\n alt31=1;\n }\n else if ( (synpred14_InternalSparrow()) ) {\n alt31=2;\n }\n\n\n }\n break;\n case 56:\n {\n int LA31_3 = input.LA(2);\n\n if ( (synpred13_InternalSparrow()) ) {\n alt31=1;\n }\n else if ( (synpred14_InternalSparrow()) ) {\n alt31=2;\n }\n\n\n }\n break;\n case 57:\n {\n int LA31_4 = input.LA(2);\n\n if ( (synpred14_InternalSparrow()) ) {\n alt31=2;\n }\n\n\n }\n break;\n\n }\n\n switch (alt31) {\n \tcase 1 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1965:2: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1965:2: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1965:3: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1965:3: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1965:4: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1978:25: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1978:26: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1978:26: ()\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1979:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1984:2: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) )\n \t int alt23=2;\n \t int LA23_0 = input.LA(1);\n\n \t if ( (LA23_0==55) ) {\n \t alt23=1;\n \t }\n \t else if ( (LA23_0==56) ) {\n \t alt23=2;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return current;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 23, 0, input);\n\n \t throw nvae;\n \t }\n \t switch (alt23) {\n \t case 1 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1984:4: otherlv_2= '.'\n \t {\n \t otherlv_2=(Token)match(input,55,FOLLOW_55_in_ruleXMemberFeatureCall5117); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0());\n \t \n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1989:6: ( (lv_explicitStatic_3_0= '::' ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1989:6: ( (lv_explicitStatic_3_0= '::' ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1990:1: (lv_explicitStatic_3_0= '::' )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1990:1: (lv_explicitStatic_3_0= '::' )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:1991:3: lv_explicitStatic_3_0= '::'\n \t {\n \t lv_explicitStatic_3_0=(Token)match(input,56,FOLLOW_56_in_ruleXMemberFeatureCall5141); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_explicitStatic_3_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"explicitStatic\", true, \"::\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2004:3: ( ( ruleFeatureCallID ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2005:1: ( ruleFeatureCallID )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2005:1: ( ruleFeatureCallID )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2006:3: ruleFeatureCallID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\tif (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleFeatureCallID_in_ruleXMemberFeatureCall5178);\n \t ruleFeatureCallID();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n \t \n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t if ( state.backtracking==0 ) {\n \t \n \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); \n \t \n \t }\n \t pushFollow(FOLLOW_ruleOpSingleAssign_in_ruleXMemberFeatureCall5194);\n \t ruleOpSingleAssign();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n \t \n \t afterParserOrEnumRuleCall();\n \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2027:3: ( (lv_value_6_0= ruleXAssignment ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2028:1: (lv_value_6_0= ruleXAssignment )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2028:1: (lv_value_6_0= ruleXAssignment )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2029:3: lv_value_6_0= ruleXAssignment\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleXAssignment_in_ruleXMemberFeatureCall5216);\n \t lv_value_6_0=ruleXAssignment();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"value\",\n \t \t\tlv_value_6_0, \n \t \t\t\"XAssignment\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2046:6: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleFeatureCallID ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2046:6: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleFeatureCallID ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2046:7: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleFeatureCallID ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )?\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2046:7: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2046:8: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2062:7: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2062:8: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2062:8: ()\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2063:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2068:2: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) )\n \t int alt24=3;\n \t switch ( input.LA(1) ) {\n \t case 55:\n \t {\n \t alt24=1;\n \t }\n \t break;\n \t case 57:\n \t {\n \t alt24=2;\n \t }\n \t break;\n \t case 56:\n \t {\n \t alt24=3;\n \t }\n \t break;\n \t default:\n \t if (state.backtracking>0) {state.failed=true; return current;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 24, 0, input);\n\n \t throw nvae;\n \t }\n\n \t switch (alt24) {\n \t case 1 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2068:4: otherlv_8= '.'\n \t {\n \t otherlv_8=(Token)match(input,55,FOLLOW_55_in_ruleXMemberFeatureCall5302); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0());\n \t \n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2073:6: ( (lv_nullSafe_9_0= '?.' ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2073:6: ( (lv_nullSafe_9_0= '?.' ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2074:1: (lv_nullSafe_9_0= '?.' )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2074:1: (lv_nullSafe_9_0= '?.' )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2075:3: lv_nullSafe_9_0= '?.'\n \t {\n \t lv_nullSafe_9_0=(Token)match(input,57,FOLLOW_57_in_ruleXMemberFeatureCall5326); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_nullSafe_9_0, grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"nullSafe\", true, \"?.\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \t case 3 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2089:6: ( (lv_explicitStatic_10_0= '::' ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2089:6: ( (lv_explicitStatic_10_0= '::' ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2090:1: (lv_explicitStatic_10_0= '::' )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2090:1: (lv_explicitStatic_10_0= '::' )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2091:3: lv_explicitStatic_10_0= '::'\n \t {\n \t lv_explicitStatic_10_0=(Token)match(input,56,FOLLOW_56_in_ruleXMemberFeatureCall5363); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_explicitStatic_10_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"explicitStatic\", true, \"::\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2104:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )?\n \t int alt26=2;\n \t int LA26_0 = input.LA(1);\n\n \t if ( (LA26_0==39) ) {\n \t alt26=1;\n \t }\n \t switch (alt26) {\n \t case 1 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2104:7: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>'\n \t {\n \t otherlv_11=(Token)match(input,39,FOLLOW_39_in_ruleXMemberFeatureCall5392); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0());\n \t \n \t }\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2108:1: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2109:1: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2109:1: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2110:3: lv_typeArguments_12_0= ruleJvmArgumentTypeReference\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleJvmArgumentTypeReference_in_ruleXMemberFeatureCall5413);\n \t lv_typeArguments_12_0=ruleJvmArgumentTypeReference();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"typeArguments\",\n \t \t\tlv_typeArguments_12_0, \n \t \t\t\"JvmArgumentTypeReference\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2126:2: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )*\n \t loop25:\n \t do {\n \t int alt25=2;\n \t int LA25_0 = input.LA(1);\n\n \t if ( (LA25_0==58) ) {\n \t alt25=1;\n \t }\n\n\n \t switch (alt25) {\n \t \tcase 1 :\n \t \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2126:4: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) )\n \t \t {\n \t \t otherlv_13=(Token)match(input,58,FOLLOW_58_in_ruleXMemberFeatureCall5426); if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \tnewLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0());\n \t \t \n \t \t }\n \t \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2130:1: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) )\n \t \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2131:1: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference )\n \t \t {\n \t \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2131:1: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference )\n \t \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2132:3: lv_typeArguments_14_0= ruleJvmArgumentTypeReference\n \t \t {\n \t \t if ( state.backtracking==0 ) {\n \t \t \n \t \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); \n \t \t \t \n \t \t }\n \t \t pushFollow(FOLLOW_ruleJvmArgumentTypeReference_in_ruleXMemberFeatureCall5447);\n \t \t lv_typeArguments_14_0=ruleJvmArgumentTypeReference();\n\n \t \t state._fsp--;\n \t \t if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t if (current==null) {\n \t \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t \t }\n \t \t \t\tadd(\n \t \t \t\t\tcurrent, \n \t \t \t\t\t\"typeArguments\",\n \t \t \t\tlv_typeArguments_14_0, \n \t \t \t\t\"JvmArgumentTypeReference\");\n \t \t \t afterParserOrEnumRuleCall();\n \t \t \t \n \t \t }\n\n \t \t }\n\n\n \t \t }\n\n\n \t \t }\n \t \t break;\n\n \t \tdefault :\n \t \t break loop25;\n \t }\n \t } while (true);\n\n \t otherlv_15=(Token)match(input,38,FOLLOW_38_in_ruleXMemberFeatureCall5461); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3());\n \t \n \t }\n\n \t }\n \t break;\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2152:3: ( ( ruleFeatureCallID ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2153:1: ( ruleFeatureCallID )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2153:1: ( ruleFeatureCallID )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2154:3: ruleFeatureCallID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\tif (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleFeatureCallID_in_ruleXMemberFeatureCall5486);\n \t ruleFeatureCallID();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n \t \n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2167:2: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )?\n \t int alt29=2;\n \t alt29 = dfa29.predict(input);\n \t switch (alt29) {\n \t case 1 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2167:3: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')'\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2167:3: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2167:4: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2174:1: (lv_explicitOperationCall_17_0= '(' )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2175:3: lv_explicitOperationCall_17_0= '('\n \t {\n \t lv_explicitOperationCall_17_0=(Token)match(input,59,FOLLOW_59_in_ruleXMemberFeatureCall5520); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_explicitOperationCall_17_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"explicitOperationCall\", true, \"(\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2188:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )?\n \t int alt28=3;\n \t alt28 = dfa28.predict(input);\n \t switch (alt28) {\n \t case 1 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2188:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2188:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2188:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2205:1: (lv_memberCallArguments_18_0= ruleXShortClosure )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2206:3: lv_memberCallArguments_18_0= ruleXShortClosure\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleXShortClosure_in_ruleXMemberFeatureCall5605);\n \t lv_memberCallArguments_18_0=ruleXShortClosure();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"memberCallArguments\",\n \t \t\tlv_memberCallArguments_18_0, \n \t \t\t\"XShortClosure\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \t case 2 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2223:6: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2223:6: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2223:7: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )*\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2223:7: ( (lv_memberCallArguments_19_0= ruleXExpression ) )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2224:1: (lv_memberCallArguments_19_0= ruleXExpression )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2224:1: (lv_memberCallArguments_19_0= ruleXExpression )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2225:3: lv_memberCallArguments_19_0= ruleXExpression\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleXExpression_in_ruleXMemberFeatureCall5633);\n \t lv_memberCallArguments_19_0=ruleXExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"memberCallArguments\",\n \t \t\tlv_memberCallArguments_19_0, \n \t \t\t\"XExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2241:2: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )*\n \t loop27:\n \t do {\n \t int alt27=2;\n \t int LA27_0 = input.LA(1);\n\n \t if ( (LA27_0==58) ) {\n \t alt27=1;\n \t }\n\n\n \t switch (alt27) {\n \t \tcase 1 :\n \t \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2241:4: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) )\n \t \t {\n \t \t otherlv_20=(Token)match(input,58,FOLLOW_58_in_ruleXMemberFeatureCall5646); if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \tnewLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0());\n \t \t \n \t \t }\n \t \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2245:1: ( (lv_memberCallArguments_21_0= ruleXExpression ) )\n \t \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2246:1: (lv_memberCallArguments_21_0= ruleXExpression )\n \t \t {\n \t \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2246:1: (lv_memberCallArguments_21_0= ruleXExpression )\n \t \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2247:3: lv_memberCallArguments_21_0= ruleXExpression\n \t \t {\n \t \t if ( state.backtracking==0 ) {\n \t \t \n \t \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); \n \t \t \t \n \t \t }\n \t \t pushFollow(FOLLOW_ruleXExpression_in_ruleXMemberFeatureCall5667);\n \t \t lv_memberCallArguments_21_0=ruleXExpression();\n\n \t \t state._fsp--;\n \t \t if (state.failed) return current;\n \t \t if ( state.backtracking==0 ) {\n\n \t \t \t if (current==null) {\n \t \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t \t }\n \t \t \t\tadd(\n \t \t \t\t\tcurrent, \n \t \t \t\t\t\"memberCallArguments\",\n \t \t \t\tlv_memberCallArguments_21_0, \n \t \t \t\t\"XExpression\");\n \t \t \t afterParserOrEnumRuleCall();\n \t \t \t \n \t \t }\n\n \t \t }\n\n\n \t \t }\n\n\n \t \t }\n \t \t break;\n\n \t \tdefault :\n \t \t break loop27;\n \t }\n \t } while (true);\n\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n \t otherlv_22=(Token)match(input,60,FOLLOW_60_in_ruleXMemberFeatureCall5684); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2());\n \t \n \t }\n\n \t }\n \t break;\n\n \t }\n\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2267:3: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )?\n \t int alt30=2;\n \t alt30 = dfa30.predict(input);\n \t switch (alt30) {\n \t case 1 :\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2267:4: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure )\n \t {\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2270:1: (lv_memberCallArguments_23_0= ruleXClosure )\n \t // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:2271:3: lv_memberCallArguments_23_0= ruleXClosure\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleXClosure_in_ruleXMemberFeatureCall5719);\n \t lv_memberCallArguments_23_0=ruleXClosure();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"memberCallArguments\",\n \t \t\tlv_memberCallArguments_23_0, \n \t \t\t\"XClosure\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop31;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "50e0a5a9a53dde4d8bd6ae87991022f0", "score": "0.5212696", "text": "public final void entryRuleXParenthesizedExpression() throws RecognitionException {\r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1334:1: ( ruleXParenthesizedExpression EOF )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:1335:1: ruleXParenthesizedExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXParenthesizedExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleXParenthesizedExpression_in_entryRuleXParenthesizedExpression2778);\r\n ruleXParenthesizedExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXParenthesizedExpressionRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleXParenthesizedExpression2785); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "214feb588c0f72c92a060d7cd6d4771c", "score": "0.51682377", "text": "private Result pTreePrimary(final int yyStart) throws IOException {\n ParserColumn yyColumn = (ParserColumn)column(yyStart);\n if (null == yyColumn.chunk2) yyColumn.chunk2 = new Chunk2();\n if (null == yyColumn.chunk2.fTreePrimary) \n yyColumn.chunk2.fTreePrimary = pTreePrimary$1(yyStart);\n return yyColumn.chunk2.fTreePrimary;\n }", "title": "" }, { "docid": "9ba03dc028079cabb0ad3213f15c2a92", "score": "0.51266015", "text": "public final void entryRuleXParenthesizedExpression() throws RecognitionException {\n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1104:1: ( ruleXParenthesizedExpression EOF )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1105:1: ruleXParenthesizedExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXParenthesizedExpressionRule()); \n }\n pushFollow(FOLLOW_ruleXParenthesizedExpression_in_entryRuleXParenthesizedExpression2292);\n ruleXParenthesizedExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXParenthesizedExpressionRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXParenthesizedExpression2299); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "09241d18743180eb7e82f3221523f905", "score": "0.5126199", "text": "public final EObject entryRuleXParenthesizedExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXParenthesizedExpression = null;\n\n\n try {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:3026:2: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:3027:2: iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXParenthesizedExpressionRule()); \n }\n pushFollow(FOLLOW_ruleXParenthesizedExpression_in_entryRuleXParenthesizedExpression7563);\n iv_ruleXParenthesizedExpression=ruleXParenthesizedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXParenthesizedExpression; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXParenthesizedExpression7573); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "cb73d7f0bad81b1e8ed97c7e0bdf4735", "score": "0.5104052", "text": "public final void synpred151_CFML_fragment() throws RecognitionException {\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:4: ( newComponentExpression ( DOT primaryExpressionIRW ( LEFTPAREN argumentList ')' )* )* )\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:4: newComponentExpression ( DOT primaryExpressionIRW ( LEFTPAREN argumentList ')' )* )*\r\n {\r\n pushFollow(FOLLOW_newComponentExpression_in_synpred151_CFML4293);\r\n newComponentExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:27: ( DOT primaryExpressionIRW ( LEFTPAREN argumentList ')' )* )*\r\n loop119:\r\n do {\r\n int alt119=2;\r\n int LA119_0 = input.LA(1);\r\n\r\n if ( (LA119_0==DOT) ) {\r\n alt119=1;\r\n }\r\n\r\n\r\n switch (alt119) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:28: DOT primaryExpressionIRW ( LEFTPAREN argumentList ')' )*\r\n \t {\r\n \t match(input,DOT,FOLLOW_DOT_in_synpred151_CFML4296); if (state.failed) return ;\r\n\r\n \t pushFollow(FOLLOW_primaryExpressionIRW_in_synpred151_CFML4298);\r\n \t primaryExpressionIRW();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:53: ( LEFTPAREN argumentList ')' )*\r\n \t loop118:\r\n \t do {\r\n \t int alt118=2;\r\n \t int LA118_0 = input.LA(1);\r\n\r\n \t if ( (LA118_0==LEFTPAREN) ) {\r\n \t alt118=1;\r\n \t }\r\n\r\n\r\n \t switch (alt118) {\r\n \t \tcase 1 :\r\n \t \t // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:54: LEFTPAREN argumentList ')'\r\n \t \t {\r\n \t \t match(input,LEFTPAREN,FOLLOW_LEFTPAREN_in_synpred151_CFML4301); if (state.failed) return ;\r\n\r\n \t \t pushFollow(FOLLOW_argumentList_in_synpred151_CFML4303);\r\n \t \t argumentList();\r\n\r\n \t \t state._fsp--;\r\n \t \t if (state.failed) return ;\r\n\r\n \t \t match(input,RIGHTPAREN,FOLLOW_RIGHTPAREN_in_synpred151_CFML4305); if (state.failed) return ;\r\n\r\n \t \t }\r\n \t \t break;\r\n\r\n \t \tdefault :\r\n \t \t break loop118;\r\n \t }\r\n \t } while (true);\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop119;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "a9369d75b76b14dbba7ac5782c4a12c9", "score": "0.5019714", "text": "public String visit(PrimaryExpression n, SymbolTable argu) {\n String _ret = n.f0.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "9c2572dbff834c3d63a9bd74823d656f", "score": "0.5012821", "text": "public R visit(PrimaryExpression n, A argu) {\n R _ret=null;\n _ret = n.f0.accept(this, argu);\n return _ret;\n }", "title": "" }, { "docid": "af87e719f48b592a15e28159c7927096", "score": "0.49668986", "text": "public final XPathEnhancerParser.filterExpr_return filterExpr() throws RecognitionException {\r\n XPathEnhancerParser.filterExpr_return retval = new XPathEnhancerParser.filterExpr_return();\r\n retval.start = input.LT(1);\r\n\r\n try {\r\n // src\\\\main\\\\antlr\\\\XPathEnhancer.g:191:3: ( primaryExpr ( predicate )* )\r\n // src\\\\main\\\\antlr\\\\XPathEnhancer.g:192:3: primaryExpr ( predicate )*\r\n {\r\n pushFollow(FOLLOW_primaryExpr_in_filterExpr890);\r\n primaryExpr();\r\n\r\n state._fsp--;\r\n\r\n // src\\\\main\\\\antlr\\\\XPathEnhancer.g:192:15: ( predicate )*\r\n loop16:\r\n do {\r\n int alt16=2;\r\n int LA16_0 = input.LA(1);\r\n\r\n if ( (LA16_0==LBRAC) ) {\r\n alt16=1;\r\n }\r\n\r\n\r\n switch (alt16) {\r\n \tcase 1 :\r\n \t // src\\\\main\\\\antlr\\\\XPathEnhancer.g:192:15: predicate\r\n \t {\r\n \t pushFollow(FOLLOW_predicate_in_filterExpr892);\r\n \t predicate();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop16;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n retval.stop = input.LT(-1);\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "5363a9be5718543bf498c556424b8586", "score": "0.49656653", "text": "public final void synpred158_CFML_fragment() throws RecognitionException {\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:807:7: ( DOT primaryExpressionIRW )\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:807:7: DOT primaryExpressionIRW\r\n {\r\n match(input,DOT,FOLLOW_DOT_in_synpred158_CFML4481); if (state.failed) return ;\r\n\r\n pushFollow(FOLLOW_primaryExpressionIRW_in_synpred158_CFML4483);\r\n primaryExpressionIRW();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "e497fc3710cccecb1ae5420b51e45e60", "score": "0.494916", "text": "public final void entryRuleXParenthesizedExpression() throws RecognitionException {\r\n try {\r\n // InternalBugsly.g:1005:1: ( ruleXParenthesizedExpression EOF )\r\n // InternalBugsly.g:1006:1: ruleXParenthesizedExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXParenthesizedExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleXParenthesizedExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXParenthesizedExpressionRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0d2799e4f62e35ba5a31a4866fbd95e7", "score": "0.4937174", "text": "public final void rule__Primary__Alternatives() throws RecognitionException {\n int rule__Primary__Alternatives_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 260) ) { return ; }\n // InternalGaml.g:4946:1: ( ( ruleTerminalExpression ) | ( ruleAbstractRef ) | ( ( rule__Primary__Group_2__0 ) ) | ( ( rule__Primary__Group_3__0 ) ) | ( ( rule__Primary__Group_4__0 ) ) | ( ( rule__Primary__Group_5__0 ) ) )\n int alt58=6;\n alt58 = dfa58.predict(input);\n switch (alt58) {\n case 1 :\n // InternalGaml.g:4947:1: ( ruleTerminalExpression )\n {\n // InternalGaml.g:4947:1: ( ruleTerminalExpression )\n // InternalGaml.g:4948:1: ruleTerminalExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getTerminalExpressionParserRuleCall_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleTerminalExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getTerminalExpressionParserRuleCall_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // InternalGaml.g:4953:6: ( ruleAbstractRef )\n {\n // InternalGaml.g:4953:6: ( ruleAbstractRef )\n // InternalGaml.g:4954:1: ruleAbstractRef\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getAbstractRefParserRuleCall_1()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleAbstractRef();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getAbstractRefParserRuleCall_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // InternalGaml.g:4959:6: ( ( rule__Primary__Group_2__0 ) )\n {\n // InternalGaml.g:4959:6: ( ( rule__Primary__Group_2__0 ) )\n // InternalGaml.g:4960:1: ( rule__Primary__Group_2__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getGroup_2()); \n }\n // InternalGaml.g:4961:1: ( rule__Primary__Group_2__0 )\n // InternalGaml.g:4961:2: rule__Primary__Group_2__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Primary__Group_2__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getGroup_2()); \n }\n\n }\n\n\n }\n break;\n case 4 :\n // InternalGaml.g:4965:6: ( ( rule__Primary__Group_3__0 ) )\n {\n // InternalGaml.g:4965:6: ( ( rule__Primary__Group_3__0 ) )\n // InternalGaml.g:4966:1: ( rule__Primary__Group_3__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getGroup_3()); \n }\n // InternalGaml.g:4967:1: ( rule__Primary__Group_3__0 )\n // InternalGaml.g:4967:2: rule__Primary__Group_3__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Primary__Group_3__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getGroup_3()); \n }\n\n }\n\n\n }\n break;\n case 5 :\n // InternalGaml.g:4971:6: ( ( rule__Primary__Group_4__0 ) )\n {\n // InternalGaml.g:4971:6: ( ( rule__Primary__Group_4__0 ) )\n // InternalGaml.g:4972:1: ( rule__Primary__Group_4__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getGroup_4()); \n }\n // InternalGaml.g:4973:1: ( rule__Primary__Group_4__0 )\n // InternalGaml.g:4973:2: rule__Primary__Group_4__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Primary__Group_4__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getGroup_4()); \n }\n\n }\n\n\n }\n break;\n case 6 :\n // InternalGaml.g:4977:6: ( ( rule__Primary__Group_5__0 ) )\n {\n // InternalGaml.g:4977:6: ( ( rule__Primary__Group_5__0 ) )\n // InternalGaml.g:4978:1: ( rule__Primary__Group_5__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getGroup_5()); \n }\n // InternalGaml.g:4979:1: ( rule__Primary__Group_5__0 )\n // InternalGaml.g:4979:2: rule__Primary__Group_5__0\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Primary__Group_5__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getGroup_5()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 260, rule__Primary__Alternatives_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "637b68d212bbb4d3bfd5d833e7c72f38", "score": "0.4886007", "text": "private static Parser<SingleExpression> singleExpression01() {\n\t\treturn Parsers.or(readonly())\n\t\t\t\t.map(new org.codehaus.jparsec.functors.Map<String, SingleExpression>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic SingleExpression map(String arg0) {\n\t\t\t\t\t\treturn new SingleExpression(arg0);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "title": "" }, { "docid": "5a1a1da70eb7a84d28a1ec2588e45b89", "score": "0.48820287", "text": "public final JavascriptParser.unaryExpression_return unaryExpression() throws RecognitionException {\n JavascriptParser.unaryExpression_return retval = new JavascriptParser.unaryExpression_return();\n retval.start = input.LT(1);\n\n int unaryExpression_StartIndex = input.index();\n\n CommonTree root_0 = null;\n\n Token string_literal428=null;\n Token string_literal429=null;\n Token string_literal430=null;\n Token string_literal431=null;\n Token string_literal432=null;\n Token char_literal433=null;\n Token char_literal434=null;\n Token char_literal435=null;\n Token char_literal436=null;\n JavascriptParser.postfixExpression_return postfixExpression427 =null;\n\n JavascriptParser.unaryExpression_return unaryExpression437 =null;\n\n\n CommonTree string_literal428_tree=null;\n CommonTree string_literal429_tree=null;\n CommonTree string_literal430_tree=null;\n CommonTree string_literal431_tree=null;\n CommonTree string_literal432_tree=null;\n CommonTree char_literal433_tree=null;\n CommonTree char_literal434_tree=null;\n CommonTree char_literal435_tree=null;\n CommonTree char_literal436_tree=null;\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 74) ) { return retval; }\n\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:358:3: ( postfixExpression | ( 'delete' ^| 'void' ^| 'typeof' ^| '++' ^| '--' ^| '+' ^| '-' ^| '~' ^| '!' ^) unaryExpression )\n int alt216=2;\n int LA216_0 = input.LA(1);\n\n if ( (LA216_0==Identifier||LA216_0==NumericLiteral||LA216_0==StringLiteral||LA216_0==44||LA216_0==74||LA216_0==86||LA216_0==89||(LA216_0 >= 93 && LA216_0 <= 94)||LA216_0==97||LA216_0==99||LA216_0==106) ) {\n alt216=1;\n }\n else if ( (LA216_0==36||(LA216_0 >= 48 && LA216_0 <= 49)||(LA216_0 >= 52 && LA216_0 <= 53)||LA216_0==83||LA216_0==101||LA216_0==103||LA216_0==111) ) {\n alt216=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 216, 0, input);\n\n throw nvae;\n\n }\n switch (alt216) {\n case 1 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:358:5: postfixExpression\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n pushFollow(FOLLOW_postfixExpression_in_unaryExpression2543);\n postfixExpression427=postfixExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, postfixExpression427.getTree());\n\n }\n break;\n case 2 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:5: ( 'delete' ^| 'void' ^| 'typeof' ^| '++' ^| '--' ^| '+' ^| '-' ^| '~' ^| '!' ^) unaryExpression\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:5: ( 'delete' ^| 'void' ^| 'typeof' ^| '++' ^| '--' ^| '+' ^| '-' ^| '~' ^| '!' ^)\n int alt215=9;\n switch ( input.LA(1) ) {\n case 83:\n {\n alt215=1;\n }\n break;\n case 103:\n {\n alt215=2;\n }\n break;\n case 101:\n {\n alt215=3;\n }\n break;\n case 49:\n {\n alt215=4;\n }\n break;\n case 53:\n {\n alt215=5;\n }\n break;\n case 48:\n {\n alt215=6;\n }\n break;\n case 52:\n {\n alt215=7;\n }\n break;\n case 111:\n {\n alt215=8;\n }\n break;\n case 36:\n {\n alt215=9;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 215, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt215) {\n case 1 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:6: 'delete' ^\n {\n string_literal428=(Token)match(input,83,FOLLOW_83_in_unaryExpression2550); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n string_literal428_tree = \n (CommonTree)adaptor.create(string_literal428)\n ;\n root_0 = (CommonTree)adaptor.becomeRoot(string_literal428_tree, root_0);\n }\n\n }\n break;\n case 2 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:18: 'void' ^\n {\n string_literal429=(Token)match(input,103,FOLLOW_103_in_unaryExpression2555); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n string_literal429_tree = \n (CommonTree)adaptor.create(string_literal429)\n ;\n root_0 = (CommonTree)adaptor.becomeRoot(string_literal429_tree, root_0);\n }\n\n }\n break;\n case 3 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:28: 'typeof' ^\n {\n string_literal430=(Token)match(input,101,FOLLOW_101_in_unaryExpression2560); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n string_literal430_tree = \n (CommonTree)adaptor.create(string_literal430)\n ;\n root_0 = (CommonTree)adaptor.becomeRoot(string_literal430_tree, root_0);\n }\n\n }\n break;\n case 4 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:40: '++' ^\n {\n string_literal431=(Token)match(input,49,FOLLOW_49_in_unaryExpression2565); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n string_literal431_tree = \n (CommonTree)adaptor.create(string_literal431)\n ;\n root_0 = (CommonTree)adaptor.becomeRoot(string_literal431_tree, root_0);\n }\n\n }\n break;\n case 5 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:48: '--' ^\n {\n string_literal432=(Token)match(input,53,FOLLOW_53_in_unaryExpression2570); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n string_literal432_tree = \n (CommonTree)adaptor.create(string_literal432)\n ;\n root_0 = (CommonTree)adaptor.becomeRoot(string_literal432_tree, root_0);\n }\n\n }\n break;\n case 6 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:56: '+' ^\n {\n char_literal433=(Token)match(input,48,FOLLOW_48_in_unaryExpression2575); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal433_tree = \n (CommonTree)adaptor.create(char_literal433)\n ;\n root_0 = (CommonTree)adaptor.becomeRoot(char_literal433_tree, root_0);\n }\n\n }\n break;\n case 7 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:63: '-' ^\n {\n char_literal434=(Token)match(input,52,FOLLOW_52_in_unaryExpression2580); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal434_tree = \n (CommonTree)adaptor.create(char_literal434)\n ;\n root_0 = (CommonTree)adaptor.becomeRoot(char_literal434_tree, root_0);\n }\n\n }\n break;\n case 8 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:70: '~' ^\n {\n char_literal435=(Token)match(input,111,FOLLOW_111_in_unaryExpression2585); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal435_tree = \n (CommonTree)adaptor.create(char_literal435)\n ;\n root_0 = (CommonTree)adaptor.becomeRoot(char_literal435_tree, root_0);\n }\n\n }\n break;\n case 9 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:359:77: '!' ^\n {\n char_literal436=(Token)match(input,36,FOLLOW_36_in_unaryExpression2590); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n char_literal436_tree = \n (CommonTree)adaptor.create(char_literal436)\n ;\n root_0 = (CommonTree)adaptor.becomeRoot(char_literal436_tree, root_0);\n }\n\n }\n break;\n\n }\n\n\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression2594);\n unaryExpression437=unaryExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, unaryExpression437.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 74, unaryExpression_StartIndex); }\n\n }\n return retval;\n }", "title": "" }, { "docid": "a90ee6757a3fa439fef19fff764af16c", "score": "0.48737356", "text": "public final EObject entryRuleXExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXExpression = null;\n\n\n try {\n // InternalSpeADL.g:1707:2: (iv_ruleXExpression= ruleXExpression EOF )\n // InternalSpeADL.g:1708:2: iv_ruleXExpression= ruleXExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleXExpression=ruleXExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXExpression; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "16fe893a627adde48a0dbe2cf665835b", "score": "0.4845761", "text": "public final EObject entryRuleXLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXLiteral = null;\n\n\n try {\n // InternalSpeADL.g:3702:2: (iv_ruleXLiteral= ruleXLiteral EOF )\n // InternalSpeADL.g:3703:2: iv_ruleXLiteral= ruleXLiteral EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXLiteralRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleXLiteral=ruleXLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXLiteral; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "a6197603cad0ba7a8551a2e9f908a5dc", "score": "0.48288357", "text": "public static void main(String args[]) {\r\n\tParser e = new MidiParser().expression();\r\n\tAssembly out = e.bestMatch(\r\n\t\tnew TokenAssembly(\"111 - (11 - 1)\"));\r\n\tSystem.out.println(out.pop());\r\n}", "title": "" }, { "docid": "8298c18f5f0d76020222cef9e6ae9a64", "score": "0.4826987", "text": "private boolean processAsArithmeticPrimary(Expression expr)\n throws SQLMappingException\n {\n if ( DevTrace.isOnDebugLevel(loc) )\n {\n Object inputValues[] = { expr };\n DevTrace.entering(loc, processAsArithmeticPrimary, processAsArithmeticPrimaryParms,\n inputValues);\n }\n\n if (expr.isPath() )\n {\n DevTrace.debugInfo(loc, processAsArithmeticPrimary, \"ArithmeticExpression is Path.\");\n BeanField [] relation =\n ProcessingHelper.extractRelationsFromPath( (PathExpression) expr);\n BeanField beanField = ProcessingHelper.getPathDestination( (PathExpression) expr);\n\n this.expNodeManager.makeExpression(beanField, relation);\n DevTrace.exiting(loc, processAsArithmeticPrimary, true);\n return true;\n }\n\n if ( expr.isInputParameter() )\n {\n DevTrace.debugInfo(loc, processAsArithmeticPrimary, \"ArithmeticExpression is InputParameter.\");\n InputParameter inputParameter = (InputParameter) expr;\n InputParameterDefinition definition = new InputParameterDefinition(inputParameter, null);\n InputParameterOccurrence occurrence = this.treeNodeManager.registerInputParameter(definition);\n\n this.expNodeManager.makeExpression(occurrence);\n DevTrace.exiting(loc, processAsArithmeticPrimary, true);\n return true;\n }\n\n if ( expr.isFunction() )\n {\n DevTrace.debugInfo(loc, processAsArithmeticPrimary, \"ArithmeticExpression is Built-in Function.\");\n this.processFunction( (BuiltinFunction) expr);\n DevTrace.exiting(loc, processAsArithmeticPrimary, true);\n return true;\n }\n\n if ( expr instanceof Literal )\n {\n DevTrace.debugInfo(loc, processAsArithmeticPrimary, \"ArithmeticExpression is Literal.\");\n this.expNodeManager.makeExpression(\n ProcessingHelper.createLiteralFromLiteralExpression( (Literal) expr)\n );\n DevTrace.exiting(loc, processAsArithmeticPrimary, true);\n return true;\n } \n\n DevTrace.exiting(loc, processAsArithmeticPrimary, false);\n return false;\n }", "title": "" }, { "docid": "a1f73538fe763cb75f5f3e662d969f74", "score": "0.4807038", "text": "public final CFMLParser.unaryExpression_return unaryExpression() throws RecognitionException {\r\n CFMLParser.unaryExpression_return retval = new CFMLParser.unaryExpression_return();\r\n retval.start = input.LT(1);\r\n\r\n int unaryExpression_StartIndex = input.index();\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token MINUS280=null;\r\n Token PLUS282=null;\r\n Token MINUSMINUS284=null;\r\n Token PLUSPLUS286=null;\r\n Token DOT289=null;\r\n Token LEFTPAREN291=null;\r\n Token char_literal293=null;\r\n Token MINUSMINUS295=null;\r\n Token PLUSPLUS297=null;\r\n CFMLParser.memberExpression_return memberExpression281 =null;\r\n\r\n CFMLParser.memberExpression_return memberExpression283 =null;\r\n\r\n CFMLParser.memberExpression_return memberExpression285 =null;\r\n\r\n CFMLParser.memberExpression_return memberExpression287 =null;\r\n\r\n CFMLParser.newComponentExpression_return newComponentExpression288 =null;\r\n\r\n CFMLParser.primaryExpressionIRW_return primaryExpressionIRW290 =null;\r\n\r\n CFMLParser.argumentList_return argumentList292 =null;\r\n\r\n CFMLParser.memberExpression_return memberExpression294 =null;\r\n\r\n CFMLParser.memberExpression_return memberExpression296 =null;\r\n\r\n CFMLParser.memberExpression_return memberExpression298 =null;\r\n\r\n\r\n CommonTree MINUS280_tree=null;\r\n CommonTree PLUS282_tree=null;\r\n CommonTree MINUSMINUS284_tree=null;\r\n CommonTree PLUSPLUS286_tree=null;\r\n CommonTree DOT289_tree=null;\r\n CommonTree LEFTPAREN291_tree=null;\r\n CommonTree char_literal293_tree=null;\r\n CommonTree MINUSMINUS295_tree=null;\r\n CommonTree PLUSPLUS297_tree=null;\r\n RewriteRuleTokenStream stream_MINUSMINUS=new RewriteRuleTokenStream(adaptor,\"token MINUSMINUS\");\r\n RewriteRuleTokenStream stream_PLUS=new RewriteRuleTokenStream(adaptor,\"token PLUS\");\r\n RewriteRuleTokenStream stream_MINUS=new RewriteRuleTokenStream(adaptor,\"token MINUS\");\r\n RewriteRuleTokenStream stream_PLUSPLUS=new RewriteRuleTokenStream(adaptor,\"token PLUSPLUS\");\r\n RewriteRuleSubtreeStream stream_memberExpression=new RewriteRuleSubtreeStream(adaptor,\"rule memberExpression\");\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 67) ) { return retval; }\r\n\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:786:2: ( MINUS memberExpression -> ^( MINUS memberExpression ) | PLUS memberExpression -> ^( PLUS memberExpression ) | MINUSMINUS memberExpression -> ^( MINUSMINUS memberExpression ) | PLUSPLUS memberExpression -> ^( PLUSPLUS memberExpression ) | newComponentExpression ( DOT primaryExpressionIRW ( LEFTPAREN argumentList ')' )* )* | memberExpression MINUSMINUS -> ^( POSTMINUSMINUS memberExpression ) | memberExpression PLUSPLUS -> ^( POSTPLUSPLUS memberExpression ) | memberExpression )\r\n int alt76=8;\r\n int LA76_0 = input.LA(1);\r\n\r\n if ( (LA76_0==MINUS) ) {\r\n alt76=1;\r\n }\r\n else if ( (LA76_0==PLUS) ) {\r\n alt76=2;\r\n }\r\n else if ( (LA76_0==MINUSMINUS) ) {\r\n alt76=3;\r\n }\r\n else if ( (LA76_0==PLUSPLUS) ) {\r\n alt76=4;\r\n }\r\n else if ( (LA76_0==NEW) ) {\r\n int LA76_5 = input.LA(2);\r\n\r\n if ( (synpred151_CFML()) ) {\r\n alt76=5;\r\n }\r\n else if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 5, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==149) ) {\r\n int LA76_6 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 6, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==STRING_LITERAL) ) {\r\n int LA76_7 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 7, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==BOOLEAN_LITERAL) ) {\r\n int LA76_8 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 8, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==FLOATING_POINT_LITERAL) ) {\r\n int LA76_9 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 9, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==INTEGER_LITERAL) ) {\r\n int LA76_10 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 10, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==LEFTBRACKET) ) {\r\n int LA76_11 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 11, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==LEFTCURLYBRACKET) ) {\r\n int LA76_12 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 12, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==NULL) ) {\r\n int LA76_13 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 13, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==LEFTPAREN) ) {\r\n int LA76_14 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 14, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==IDENTIFIER) ) {\r\n int LA76_15 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 15, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==DOES) ) {\r\n int LA76_16 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 16, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==CONTAIN) ) {\r\n int LA76_17 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 17, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==GREATER) ) {\r\n int LA76_18 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 18, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==THAN) ) {\r\n int LA76_19 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 19, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==LESS) ) {\r\n int LA76_20 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 20, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==VAR) ) {\r\n int LA76_21 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 21, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==TO) ) {\r\n int LA76_22 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 22, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==DEFAULT) ) {\r\n int LA76_23 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 23, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==INCLUDE) ) {\r\n int LA76_24 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 24, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==ABORT) ) {\r\n int LA76_25 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 25, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==THROW) ) {\r\n int LA76_26 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 26, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==RETHROW) ) {\r\n int LA76_27 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 27, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==PARAM) ) {\r\n int LA76_28 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 28, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==EXIT) ) {\r\n int LA76_29 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 29, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==THREAD) ) {\r\n int LA76_30 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 30, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==LOCK) ) {\r\n int LA76_31 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 31, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==TRANSACTION) ) {\r\n int LA76_32 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 32, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==PUBLIC) ) {\r\n int LA76_33 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 33, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==PRIVATE) ) {\r\n int LA76_34 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 34, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==REMOTE) ) {\r\n int LA76_35 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 35, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==PACKAGE) ) {\r\n int LA76_36 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 36, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==REQUIRED) ) {\r\n int LA76_37 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 37, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==DIRECTORY||LA76_0==FILE||LA76_0==HTTP||LA76_0==LOCATION||LA76_0==LOOP||LA76_0==QUERY||LA76_0==SAVECONTENT||LA76_0==SETTING) ) {\r\n int LA76_38 = input.LA(2);\r\n\r\n if ( (synpred152_CFML()) ) {\r\n alt76=6;\r\n }\r\n else if ( (synpred153_CFML()) ) {\r\n alt76=7;\r\n }\r\n else if ( (true) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 38, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA76_0==BREAK||(LA76_0 >= CASE && LA76_0 <= CATCH)||LA76_0==CONTINUE||LA76_0==DO||LA76_0==ELSE||LA76_0==FOR||LA76_0==FUNCTION||LA76_0==IF||(LA76_0 >= IMPORT && LA76_0 <= IN)||LA76_0==RETURN||LA76_0==SWITCH||LA76_0==TRY||LA76_0==WHILE) && ((!scriptMode))) {\r\n int LA76_39 = input.LA(2);\r\n\r\n if ( ((((!scriptMode)&&(!scriptMode))&&synpred152_CFML())) ) {\r\n alt76=6;\r\n }\r\n else if ( ((((!scriptMode)&&(!scriptMode))&&synpred153_CFML())) ) {\r\n alt76=7;\r\n }\r\n else if ( ((!scriptMode)) ) {\r\n alt76=8;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 39, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 76, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt76) {\r\n case 1 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:786:4: MINUS memberExpression\r\n {\r\n MINUS280=(Token)match(input,MINUS,FOLLOW_MINUS_in_unaryExpression4232); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_MINUS.add(MINUS280);\r\n\r\n\r\n pushFollow(FOLLOW_memberExpression_in_unaryExpression4234);\r\n memberExpression281=memberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_memberExpression.add(memberExpression281.getTree());\r\n\r\n // AST REWRITE\r\n // elements: MINUS, memberExpression\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 786:27: -> ^( MINUS memberExpression )\r\n {\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:786:30: ^( MINUS memberExpression )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n stream_MINUS.nextNode()\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_memberExpression.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:787:4: PLUS memberExpression\r\n {\r\n PLUS282=(Token)match(input,PLUS,FOLLOW_PLUS_in_unaryExpression4247); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_PLUS.add(PLUS282);\r\n\r\n\r\n pushFollow(FOLLOW_memberExpression_in_unaryExpression4249);\r\n memberExpression283=memberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_memberExpression.add(memberExpression283.getTree());\r\n\r\n // AST REWRITE\r\n // elements: memberExpression, PLUS\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 787:26: -> ^( PLUS memberExpression )\r\n {\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:787:29: ^( PLUS memberExpression )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n stream_PLUS.nextNode()\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_memberExpression.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:788:4: MINUSMINUS memberExpression\r\n {\r\n MINUSMINUS284=(Token)match(input,MINUSMINUS,FOLLOW_MINUSMINUS_in_unaryExpression4262); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_MINUSMINUS.add(MINUSMINUS284);\r\n\r\n\r\n pushFollow(FOLLOW_memberExpression_in_unaryExpression4264);\r\n memberExpression285=memberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_memberExpression.add(memberExpression285.getTree());\r\n\r\n // AST REWRITE\r\n // elements: memberExpression, MINUSMINUS\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 788:32: -> ^( MINUSMINUS memberExpression )\r\n {\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:788:35: ^( MINUSMINUS memberExpression )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n stream_MINUSMINUS.nextNode()\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_memberExpression.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:789:4: PLUSPLUS memberExpression\r\n {\r\n PLUSPLUS286=(Token)match(input,PLUSPLUS,FOLLOW_PLUSPLUS_in_unaryExpression4278); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_PLUSPLUS.add(PLUSPLUS286);\r\n\r\n\r\n pushFollow(FOLLOW_memberExpression_in_unaryExpression4280);\r\n memberExpression287=memberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_memberExpression.add(memberExpression287.getTree());\r\n\r\n // AST REWRITE\r\n // elements: PLUSPLUS, memberExpression\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 789:30: -> ^( PLUSPLUS memberExpression )\r\n {\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:789:33: ^( PLUSPLUS memberExpression )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n stream_PLUSPLUS.nextNode()\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_memberExpression.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 5 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:4: newComponentExpression ( DOT primaryExpressionIRW ( LEFTPAREN argumentList ')' )* )*\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_newComponentExpression_in_unaryExpression4293);\r\n newComponentExpression288=newComponentExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, newComponentExpression288.getTree());\r\n\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:27: ( DOT primaryExpressionIRW ( LEFTPAREN argumentList ')' )* )*\r\n loop75:\r\n do {\r\n int alt75=2;\r\n int LA75_0 = input.LA(1);\r\n\r\n if ( (LA75_0==DOT) ) {\r\n alt75=1;\r\n }\r\n\r\n\r\n switch (alt75) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:28: DOT primaryExpressionIRW ( LEFTPAREN argumentList ')' )*\r\n \t {\r\n \t DOT289=(Token)match(input,DOT,FOLLOW_DOT_in_unaryExpression4296); if (state.failed) return retval;\r\n \t if ( state.backtracking==0 ) {\r\n \t DOT289_tree = \r\n \t (CommonTree)adaptor.create(DOT289)\r\n \t ;\r\n \t adaptor.addChild(root_0, DOT289_tree);\r\n \t }\r\n\r\n \t pushFollow(FOLLOW_primaryExpressionIRW_in_unaryExpression4298);\r\n \t primaryExpressionIRW290=primaryExpressionIRW();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return retval;\r\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, primaryExpressionIRW290.getTree());\r\n\r\n \t // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:53: ( LEFTPAREN argumentList ')' )*\r\n \t loop74:\r\n \t do {\r\n \t int alt74=2;\r\n \t alt74 = dfa74.predict(input);\r\n \t switch (alt74) {\r\n \t \tcase 1 :\r\n \t \t // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:790:54: LEFTPAREN argumentList ')'\r\n \t \t {\r\n \t \t LEFTPAREN291=(Token)match(input,LEFTPAREN,FOLLOW_LEFTPAREN_in_unaryExpression4301); if (state.failed) return retval;\r\n \t \t if ( state.backtracking==0 ) {\r\n \t \t LEFTPAREN291_tree = \r\n \t \t (CommonTree)adaptor.create(LEFTPAREN291)\r\n \t \t ;\r\n \t \t adaptor.addChild(root_0, LEFTPAREN291_tree);\r\n \t \t }\r\n\r\n \t \t pushFollow(FOLLOW_argumentList_in_unaryExpression4303);\r\n \t \t argumentList292=argumentList();\r\n\r\n \t \t state._fsp--;\r\n \t \t if (state.failed) return retval;\r\n \t \t if ( state.backtracking==0 ) adaptor.addChild(root_0, argumentList292.getTree());\r\n\r\n \t \t char_literal293=(Token)match(input,RIGHTPAREN,FOLLOW_RIGHTPAREN_in_unaryExpression4305); if (state.failed) return retval;\r\n \t \t if ( state.backtracking==0 ) {\r\n \t \t char_literal293_tree = \r\n \t \t (CommonTree)adaptor.create(char_literal293)\r\n \t \t ;\r\n \t \t adaptor.addChild(root_0, char_literal293_tree);\r\n \t \t }\r\n\r\n \t \t }\r\n \t \t break;\r\n\r\n \t \tdefault :\r\n \t \t break loop74;\r\n \t }\r\n \t } while (true);\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop75;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:791:5: memberExpression MINUSMINUS\r\n {\r\n pushFollow(FOLLOW_memberExpression_in_unaryExpression4315);\r\n memberExpression294=memberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_memberExpression.add(memberExpression294.getTree());\r\n\r\n MINUSMINUS295=(Token)match(input,MINUSMINUS,FOLLOW_MINUSMINUS_in_unaryExpression4317); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_MINUSMINUS.add(MINUSMINUS295);\r\n\r\n\r\n // AST REWRITE\r\n // elements: memberExpression\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 791:33: -> ^( POSTMINUSMINUS memberExpression )\r\n {\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:791:36: ^( POSTMINUSMINUS memberExpression )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(POSTMINUSMINUS, \"POSTMINUSMINUS\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_memberExpression.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 7 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:792:5: memberExpression PLUSPLUS\r\n {\r\n pushFollow(FOLLOW_memberExpression_in_unaryExpression4331);\r\n memberExpression296=memberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_memberExpression.add(memberExpression296.getTree());\r\n\r\n PLUSPLUS297=(Token)match(input,PLUSPLUS,FOLLOW_PLUSPLUS_in_unaryExpression4333); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_PLUSPLUS.add(PLUSPLUS297);\r\n\r\n\r\n // AST REWRITE\r\n // elements: memberExpression\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 792:31: -> ^( POSTPLUSPLUS memberExpression )\r\n {\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:792:34: ^( POSTPLUSPLUS memberExpression )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(POSTPLUSPLUS, \"POSTPLUSPLUS\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_memberExpression.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 8 :\r\n // C:\\\\Users\\\\eberlyrh\\\\git\\\\cfml.parsing\\\\antlr\\\\CFML.g:793:5: memberExpression\r\n {\r\n root_0 = (CommonTree)adaptor.nil();\r\n\r\n\r\n pushFollow(FOLLOW_memberExpression_in_unaryExpression4347);\r\n memberExpression298=memberExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) adaptor.addChild(root_0, memberExpression298.getTree());\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n\r\n \tcatch (RecognitionException e) {\r\n \t //System.out.println(\"cfscript.g\");\r\n \t errorReporter.reportError(e);\r\n \t recover(getTokenStream(),e);\r\n \t}\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 67, unaryExpression_StartIndex); }\r\n\r\n }\r\n return retval;\r\n }", "title": "" }, { "docid": "71fa1fce1e8fe079c662a4f916c0aaa9", "score": "0.48031485", "text": "public final void rule__Primary__LeftAssignment_5_2() throws RecognitionException {\n int rule__Primary__LeftAssignment_5_2_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 1154) ) { return ; }\n // InternalGaml.g:19290:1: ( ( ruleExpression ) )\n // InternalGaml.g:19291:1: ( ruleExpression )\n {\n // InternalGaml.g:19291:1: ( ruleExpression )\n // InternalGaml.g:19292:1: ruleExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getLeftExpressionParserRuleCall_5_2_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getLeftExpressionParserRuleCall_5_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 1154, rule__Primary__LeftAssignment_5_2_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5a59aba7e5e857d38227457772c4878e", "score": "0.47986597", "text": "public final EObject ruleFindLogicalAnd() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n EObject this_FindPrimary_0 = null;\n\n EObject lv_rhs_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMASLParser.g:8243:2: ( (this_FindPrimary_0= ruleFindPrimary ( () otherlv_2= And ( (lv_rhs_3_0= ruleFindPrimary ) ) )* ) )\n // InternalMASLParser.g:8244:2: (this_FindPrimary_0= ruleFindPrimary ( () otherlv_2= And ( (lv_rhs_3_0= ruleFindPrimary ) ) )* )\n {\n // InternalMASLParser.g:8244:2: (this_FindPrimary_0= ruleFindPrimary ( () otherlv_2= And ( (lv_rhs_3_0= ruleFindPrimary ) ) )* )\n // InternalMASLParser.g:8245:3: this_FindPrimary_0= ruleFindPrimary ( () otherlv_2= And ( (lv_rhs_3_0= ruleFindPrimary ) ) )*\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getFindLogicalAndAccess().getFindPrimaryParserRuleCall_0());\n \t\t\n }\n pushFollow(FOLLOW_117);\n this_FindPrimary_0=ruleFindPrimary();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_FindPrimary_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n // InternalMASLParser.g:8253:3: ( () otherlv_2= And ( (lv_rhs_3_0= ruleFindPrimary ) ) )*\n loop162:\n do {\n int alt162=2;\n int LA162_0 = input.LA(1);\n\n if ( (LA162_0==And) ) {\n alt162=1;\n }\n\n\n switch (alt162) {\n \tcase 1 :\n \t // InternalMASLParser.g:8254:4: () otherlv_2= And ( (lv_rhs_3_0= ruleFindPrimary ) )\n \t {\n \t // InternalMASLParser.g:8254:4: ()\n \t // InternalMASLParser.g:8255:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\tgrammarAccess.getFindLogicalAndAccess().getLogicalAndLhsAction_1_0(),\n \t \t\t\t\t\t\tcurrent);\n \t \t\t\t\t\n \t }\n\n \t }\n\n \t otherlv_2=(Token)match(input,And,FOLLOW_115); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\tnewLeafNode(otherlv_2, grammarAccess.getFindLogicalAndAccess().getAndKeyword_1_1());\n \t \t\t\t\n \t }\n \t // InternalMASLParser.g:8265:4: ( (lv_rhs_3_0= ruleFindPrimary ) )\n \t // InternalMASLParser.g:8266:5: (lv_rhs_3_0= ruleFindPrimary )\n \t {\n \t // InternalMASLParser.g:8266:5: (lv_rhs_3_0= ruleFindPrimary )\n \t // InternalMASLParser.g:8267:6: lv_rhs_3_0= ruleFindPrimary\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tnewCompositeNode(grammarAccess.getFindLogicalAndAccess().getRhsFindPrimaryParserRuleCall_1_2_0());\n \t \t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_117);\n \t lv_rhs_3_0=ruleFindPrimary();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getFindLogicalAndRule());\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\"rhs\",\n \t \t\t\t\t\t\t\tlv_rhs_3_0,\n \t \t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.FindPrimary\");\n \t \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop162;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "afef02f59264905101eee882326ae094", "score": "0.47597182", "text": "public final EObject rulePostfixNoActionCallExpression() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_7=null;\n Token otherlv_9=null;\n Token otherlv_10=null;\n EObject this_PrimaryNoActionCallExpression_0 = null;\n\n EObject lv_brackets_6_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMASLParser.g:10910:2: ( (this_PrimaryNoActionCallExpression_0= rulePrimaryNoActionCallExpression ( ( () otherlv_2= FullStop ( (otherlv_3= RULE_ID ) ) ) | ( () otherlv_5= LeftSquareBracket ( (lv_brackets_6_0= ruleExpression ) ) otherlv_7= RightSquareBracket ) | ( () otherlv_9= Apostrophe ( (otherlv_10= RULE_ID ) ) ) )* ) )\n // InternalMASLParser.g:10911:2: (this_PrimaryNoActionCallExpression_0= rulePrimaryNoActionCallExpression ( ( () otherlv_2= FullStop ( (otherlv_3= RULE_ID ) ) ) | ( () otherlv_5= LeftSquareBracket ( (lv_brackets_6_0= ruleExpression ) ) otherlv_7= RightSquareBracket ) | ( () otherlv_9= Apostrophe ( (otherlv_10= RULE_ID ) ) ) )* )\n {\n // InternalMASLParser.g:10911:2: (this_PrimaryNoActionCallExpression_0= rulePrimaryNoActionCallExpression ( ( () otherlv_2= FullStop ( (otherlv_3= RULE_ID ) ) ) | ( () otherlv_5= LeftSquareBracket ( (lv_brackets_6_0= ruleExpression ) ) otherlv_7= RightSquareBracket ) | ( () otherlv_9= Apostrophe ( (otherlv_10= RULE_ID ) ) ) )* )\n // InternalMASLParser.g:10912:3: this_PrimaryNoActionCallExpression_0= rulePrimaryNoActionCallExpression ( ( () otherlv_2= FullStop ( (otherlv_3= RULE_ID ) ) ) | ( () otherlv_5= LeftSquareBracket ( (lv_brackets_6_0= ruleExpression ) ) otherlv_7= RightSquareBracket ) | ( () otherlv_9= Apostrophe ( (otherlv_10= RULE_ID ) ) ) )*\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getPostfixNoActionCallExpressionAccess().getPrimaryNoActionCallExpressionParserRuleCall_0());\n \t\t\n }\n pushFollow(FOLLOW_140);\n this_PrimaryNoActionCallExpression_0=rulePrimaryNoActionCallExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_PrimaryNoActionCallExpression_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n // InternalMASLParser.g:10920:3: ( ( () otherlv_2= FullStop ( (otherlv_3= RULE_ID ) ) ) | ( () otherlv_5= LeftSquareBracket ( (lv_brackets_6_0= ruleExpression ) ) otherlv_7= RightSquareBracket ) | ( () otherlv_9= Apostrophe ( (otherlv_10= RULE_ID ) ) ) )*\n loop212:\n do {\n int alt212=4;\n switch ( input.LA(1) ) {\n case FullStop:\n {\n alt212=1;\n }\n break;\n case LeftSquareBracket:\n {\n alt212=2;\n }\n break;\n case Apostrophe:\n {\n alt212=3;\n }\n break;\n\n }\n\n switch (alt212) {\n \tcase 1 :\n \t // InternalMASLParser.g:10921:4: ( () otherlv_2= FullStop ( (otherlv_3= RULE_ID ) ) )\n \t {\n \t // InternalMASLParser.g:10921:4: ( () otherlv_2= FullStop ( (otherlv_3= RULE_ID ) ) )\n \t // InternalMASLParser.g:10922:5: () otherlv_2= FullStop ( (otherlv_3= RULE_ID ) )\n \t {\n \t // InternalMASLParser.g:10922:5: ()\n \t // InternalMASLParser.g:10923:6: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getPostfixNoActionCallExpressionAccess().getSimpleFeatureCallReceiverAction_1_0_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n \t otherlv_2=(Token)match(input,FullStop,FOLLOW_5); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_2, grammarAccess.getPostfixNoActionCallExpressionAccess().getFullStopKeyword_1_0_1());\n \t \t\t\t\t\n \t }\n \t // InternalMASLParser.g:10933:5: ( (otherlv_3= RULE_ID ) )\n \t // InternalMASLParser.g:10934:6: (otherlv_3= RULE_ID )\n \t {\n \t // InternalMASLParser.g:10934:6: (otherlv_3= RULE_ID )\n \t // InternalMASLParser.g:10935:7: otherlv_3= RULE_ID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPostfixNoActionCallExpressionRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\n \t }\n \t otherlv_3=(Token)match(input,RULE_ID,FOLLOW_140); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tnewLeafNode(otherlv_3, grammarAccess.getPostfixNoActionCallExpressionAccess().getFeatureAbstractFeatureCrossReference_1_0_2_0());\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n \tcase 2 :\n \t // InternalMASLParser.g:10948:4: ( () otherlv_5= LeftSquareBracket ( (lv_brackets_6_0= ruleExpression ) ) otherlv_7= RightSquareBracket )\n \t {\n \t // InternalMASLParser.g:10948:4: ( () otherlv_5= LeftSquareBracket ( (lv_brackets_6_0= ruleExpression ) ) otherlv_7= RightSquareBracket )\n \t // InternalMASLParser.g:10949:5: () otherlv_5= LeftSquareBracket ( (lv_brackets_6_0= ruleExpression ) ) otherlv_7= RightSquareBracket\n \t {\n \t // InternalMASLParser.g:10949:5: ()\n \t // InternalMASLParser.g:10950:6: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getPostfixNoActionCallExpressionAccess().getIndexedExpressionReceiverAction_1_1_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n \t otherlv_5=(Token)match(input,LeftSquareBracket,FOLLOW_40); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_5, grammarAccess.getPostfixNoActionCallExpressionAccess().getLeftSquareBracketKeyword_1_1_1());\n \t \t\t\t\t\n \t }\n \t // InternalMASLParser.g:10960:5: ( (lv_brackets_6_0= ruleExpression ) )\n \t // InternalMASLParser.g:10961:6: (lv_brackets_6_0= ruleExpression )\n \t {\n \t // InternalMASLParser.g:10961:6: (lv_brackets_6_0= ruleExpression )\n \t // InternalMASLParser.g:10962:7: lv_brackets_6_0= ruleExpression\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getPostfixNoActionCallExpressionAccess().getBracketsExpressionParserRuleCall_1_1_2_0());\n \t \t\t\t\t\t\t\n \t }\n \t pushFollow(FOLLOW_121);\n \t lv_brackets_6_0=ruleExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getPostfixNoActionCallExpressionRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\t\"brackets\",\n \t \t\t\t\t\t\t\t\tlv_brackets_6_0,\n \t \t\t\t\t\t\t\t\t\"org.xtuml.bp.xtext.masl.MASL.Expression\");\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n \t otherlv_7=(Token)match(input,RightSquareBracket,FOLLOW_140); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_7, grammarAccess.getPostfixNoActionCallExpressionAccess().getRightSquareBracketKeyword_1_1_3());\n \t \t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n \t break;\n \tcase 3 :\n \t // InternalMASLParser.g:10985:4: ( () otherlv_9= Apostrophe ( (otherlv_10= RULE_ID ) ) )\n \t {\n \t // InternalMASLParser.g:10985:4: ( () otherlv_9= Apostrophe ( (otherlv_10= RULE_ID ) ) )\n \t // InternalMASLParser.g:10986:5: () otherlv_9= Apostrophe ( (otherlv_10= RULE_ID ) )\n \t {\n \t // InternalMASLParser.g:10986:5: ()\n \t // InternalMASLParser.g:10987:6: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\tgrammarAccess.getPostfixNoActionCallExpressionAccess().getCharacteristicCallReceiverAction_1_2_0(),\n \t \t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n \t otherlv_9=(Token)match(input,Apostrophe,FOLLOW_5); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getPostfixNoActionCallExpressionAccess().getApostropheKeyword_1_2_1());\n \t \t\t\t\t\n \t }\n \t // InternalMASLParser.g:10997:5: ( (otherlv_10= RULE_ID ) )\n \t // InternalMASLParser.g:10998:6: (otherlv_10= RULE_ID )\n \t {\n \t // InternalMASLParser.g:10998:6: (otherlv_10= RULE_ID )\n \t // InternalMASLParser.g:10999:7: otherlv_10= RULE_ID\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getPostfixNoActionCallExpressionRule());\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\n \t }\n \t otherlv_10=(Token)match(input,RULE_ID,FOLLOW_140); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tnewLeafNode(otherlv_10, grammarAccess.getPostfixNoActionCallExpressionAccess().getCharacteristicCharacteristicCrossReference_1_2_2_0());\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop212;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "e6acd64fd1399cdd957505f29b373145", "score": "0.47567198", "text": "public final EObject ruleXParenthesizedExpression() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n EObject this_XExpression_1 = null;\n\n\n enterRule(); \n \n try {\n // InternalSpeADL.g:4293:28: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) )\n // InternalSpeADL.g:4294:1: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' )\n {\n // InternalSpeADL.g:4294:1: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' )\n // InternalSpeADL.g:4294:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')'\n {\n otherlv_0=(Token)match(input,24,FOLLOW_29); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_0, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());\n \n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_52);\n this_XExpression_1=ruleXExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XExpression_1; \n afterParserOrEnumRuleCall();\n \n }\n otherlv_2=(Token)match(input,25,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_2, grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2());\n \n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "1284f3bed7cdf7d149f59ce5630b9c4b", "score": "0.47563317", "text": "@Override\n\tpublic ST visitUnaryExpression(SparqlParser.UnaryExpressionContext ctx) {\n\n\t\tST unaryExpression = g.getInstanceOf(\"unaryExpression\");\n\n\t\tif (ctx.op != null) {\n\t\t\tif (ctx.op.getType() == SparqlParser.NEGATION) {\n\t\t\t\tunaryExpression.add(\"operator\", \"!\");\n\t\t\t} else if (ctx.op.getType() == SparqlParser.PLUS_SIGN) {\n\t\t\t\tunaryExpression.add(\"operator\", \"+\");\n\t\t\t} else if (ctx.op.getType() == SparqlParser.MINUS_SIGN) {\n\t\t\t\tunaryExpression.add(\"operator\", \"-\");\n\t\t\t}\n\t\t}\n\n\t\tunaryExpression.add(\"primaryExpression\", visit(ctx.primaryExpression()));\n\n\t\treturn unaryExpression;\n\t}", "title": "" }, { "docid": "aedddb6de157edb9f3ccce8253b80418", "score": "0.47427106", "text": "public final EObject entryRuleXExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXExpression = null;\n\n\n try {\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:637:2: (iv_ruleXExpression= ruleXExpression EOF )\n // ../org.etl.dsl.Sparrow/src-gen/org/etl/parser/antlr/internal/InternalSparrow.g:638:2: iv_ruleXExpression= ruleXExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getXExpressionRule()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_entryRuleXExpression1615);\n iv_ruleXExpression=ruleXExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleXExpression; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXExpression1625); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ce20dbd509e9d591e0128960e6808105", "score": "0.4739606", "text": "public final void entryRuleDmxParenthesizedExpression() throws RecognitionException {\n try {\n // InternalDom.g:1037:1: ( ruleDmxParenthesizedExpression EOF )\n // InternalDom.g:1038:1: ruleDmxParenthesizedExpression EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxParenthesizedExpressionRule()); \n }\n pushFollow(FOLLOW_1);\n ruleDmxParenthesizedExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxParenthesizedExpressionRule()); \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "569b32f59364f099ed18ef37b48fafe0", "score": "0.47300953", "text": "public VisitorReturnInfo visit(PrimaryExpression n, VisitorParameterInfo argu) {\n if (detectedSemanticError) return null;\n return n.f0.accept(this, argu);\n }", "title": "" }, { "docid": "660caa575255f39af03333cac01eb0d3", "score": "0.4708929", "text": "public final JavascriptParser.memberExpression_return memberExpression() throws RecognitionException {\n JavascriptParser.memberExpression_return retval = new JavascriptParser.memberExpression_return();\n retval.start = input.LT(1);\n\n int memberExpression_StartIndex = input.index();\n\n CommonTree root_0 = null;\n\n Token string_literal269=null;\n Token LT270=null;\n Token LT272=null;\n Token LT274=null;\n JavascriptParser.primaryExpression_return primaryExpression267 =null;\n\n JavascriptParser.functionExpression_return functionExpression268 =null;\n\n JavascriptParser.memberExpression_return memberExpression271 =null;\n\n JavascriptParser.arguments_return arguments273 =null;\n\n JavascriptParser.memberExpressionSuffix_return memberExpressionSuffix275 =null;\n\n\n CommonTree string_literal269_tree=null;\n CommonTree LT270_tree=null;\n CommonTree LT272_tree=null;\n CommonTree LT274_tree=null;\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 47) ) { return retval; }\n\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:3: ( ( primaryExpression | functionExpression | 'new' ( LT !)* memberExpression ( LT !)* arguments ) ( ( LT !)* memberExpressionSuffix )* )\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:5: ( primaryExpression | functionExpression | 'new' ( LT !)* memberExpression ( LT !)* arguments ) ( ( LT !)* memberExpressionSuffix )*\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:5: ( primaryExpression | functionExpression | 'new' ( LT !)* memberExpression ( LT !)* arguments )\n int alt130=3;\n switch ( input.LA(1) ) {\n case Identifier:\n case NumericLiteral:\n case StringLiteral:\n case 44:\n case 74:\n case 86:\n case 94:\n case 97:\n case 99:\n case 106:\n {\n alt130=1;\n }\n break;\n case 89:\n {\n alt130=2;\n }\n break;\n case 93:\n {\n alt130=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 130, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt130) {\n case 1 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:6: primaryExpression\n {\n pushFollow(FOLLOW_primaryExpression_in_memberExpression1582);\n primaryExpression267=primaryExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, primaryExpression267.getTree());\n\n }\n break;\n case 2 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:26: functionExpression\n {\n pushFollow(FOLLOW_functionExpression_in_memberExpression1586);\n functionExpression268=functionExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, functionExpression268.getTree());\n\n }\n break;\n case 3 :\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:47: 'new' ( LT !)* memberExpression ( LT !)* arguments\n {\n string_literal269=(Token)match(input,93,FOLLOW_93_in_memberExpression1590); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n string_literal269_tree = \n (CommonTree)adaptor.create(string_literal269)\n ;\n adaptor.addChild(root_0, string_literal269_tree);\n }\n\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:55: ( LT !)*\n loop128:\n do {\n int alt128=2;\n int LA128_0 = input.LA(1);\n\n if ( (LA128_0==LT) ) {\n alt128=1;\n }\n\n\n switch (alt128) {\n \tcase 1 :\n \t // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:55: LT !\n \t {\n \t LT270=(Token)match(input,LT,FOLLOW_LT_in_memberExpression1592); if (state.failed) return retval;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop128;\n }\n } while (true);\n\n\n pushFollow(FOLLOW_memberExpression_in_memberExpression1596);\n memberExpression271=memberExpression();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, memberExpression271.getTree());\n\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:77: ( LT !)*\n loop129:\n do {\n int alt129=2;\n int LA129_0 = input.LA(1);\n\n if ( (LA129_0==LT) ) {\n alt129=1;\n }\n\n\n switch (alt129) {\n \tcase 1 :\n \t // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:77: LT !\n \t {\n \t LT272=(Token)match(input,LT,FOLLOW_LT_in_memberExpression1598); if (state.failed) return retval;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop129;\n }\n } while (true);\n\n\n pushFollow(FOLLOW_arguments_in_memberExpression1602);\n arguments273=arguments();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, arguments273.getTree());\n\n }\n break;\n\n }\n\n\n // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:91: ( ( LT !)* memberExpressionSuffix )*\n loop132:\n do {\n int alt132=2;\n int LA132_0 = input.LA(1);\n\n if ( (LA132_0==LT) ) {\n int LA132_1 = input.LA(2);\n\n if ( (synpred154_Javascript()) ) {\n alt132=1;\n }\n\n\n }\n else if ( (LA132_0==55||LA132_0==74) ) {\n alt132=1;\n }\n\n\n switch (alt132) {\n \tcase 1 :\n \t // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:92: ( LT !)* memberExpressionSuffix\n \t {\n \t // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:94: ( LT !)*\n \t loop131:\n \t do {\n \t int alt131=2;\n \t int LA131_0 = input.LA(1);\n\n \t if ( (LA131_0==LT) ) {\n \t alt131=1;\n \t }\n\n\n \t switch (alt131) {\n \t \tcase 1 :\n \t \t // /Users/shervinafshar/Documents/htdocs/arb/arb_extractor/src/main/antlr/Javascript.g:246:94: LT !\n \t \t {\n \t \t LT274=(Token)match(input,LT,FOLLOW_LT_in_memberExpression1606); if (state.failed) return retval;\n\n \t \t }\n \t \t break;\n\n \t \tdefault :\n \t \t break loop131;\n \t }\n \t } while (true);\n\n\n \t pushFollow(FOLLOW_memberExpressionSuffix_in_memberExpression1610);\n \t memberExpressionSuffix275=memberExpressionSuffix();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, memberExpressionSuffix275.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop132;\n }\n } while (true);\n\n\n }\n\n retval.stop = input.LT(-1);\n\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 47, memberExpression_StartIndex); }\n\n }\n return retval;\n }", "title": "" }, { "docid": "73357b0bce8335d7357f9426a9ffb8fa", "score": "0.47087657", "text": "public final EObject entryRuleExpressionParenthesized() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleExpressionParenthesized = null;\n\n\n try {\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:4096:2: (iv_ruleExpressionParenthesized= ruleExpressionParenthesized EOF )\n // ../com.crubier.lil/src-gen/com/crubier/lil/parser/antlr/internal/InternalLil.g:4097:2: iv_ruleExpressionParenthesized= ruleExpressionParenthesized EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getExpressionParenthesizedRule()); \n }\n pushFollow(FOLLOW_ruleExpressionParenthesized_in_entryRuleExpressionParenthesized9027);\n iv_ruleExpressionParenthesized=ruleExpressionParenthesized();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleExpressionParenthesized; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleExpressionParenthesized9037); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "0f1b3f5647f264aa5fde3a8f473ca235", "score": "0.47080785", "text": "public final EObject ruleXAssignment() throws RecognitionException {\n EObject current = null;\n\n EObject lv_value_3_0 = null;\n\n EObject this_XOrExpression_4 = null;\n\n EObject lv_rightOperand_7_0 = null;\n\n\n enterRule(); \n \n try {\n // InternalSpeADL.g:1748:28: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) )\n // InternalSpeADL.g:1749:1: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) )\n {\n // InternalSpeADL.g:1749:1: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) )\n int alt36=2;\n switch ( input.LA(1) ) {\n case RULE_ID:\n {\n int LA36_1 = input.LA(2);\n\n if ( (LA36_1==EOF||(LA36_1>=RULE_ID && LA36_1<=RULE_DECIMAL)||(LA36_1>=14 && LA36_1<=16)||(LA36_1>=18 && LA36_1<=20)||(LA36_1>=24 && LA36_1<=25)||(LA36_1>=34 && LA36_1<=68)||(LA36_1>=70 && LA36_1<=96)) ) {\n alt36=2;\n }\n else if ( (LA36_1==27) ) {\n alt36=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 36, 1, input);\n\n throw nvae;\n }\n }\n break;\n case 81:\n {\n int LA36_2 = input.LA(2);\n\n if ( (LA36_2==EOF||(LA36_2>=RULE_ID && LA36_2<=RULE_DECIMAL)||(LA36_2>=14 && LA36_2<=16)||(LA36_2>=18 && LA36_2<=20)||(LA36_2>=24 && LA36_2<=25)||(LA36_2>=34 && LA36_2<=68)||(LA36_2>=70 && LA36_2<=96)) ) {\n alt36=2;\n }\n else if ( (LA36_2==27) ) {\n alt36=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 36, 2, input);\n\n throw nvae;\n }\n }\n break;\n case 82:\n {\n int LA36_3 = input.LA(2);\n\n if ( (LA36_3==EOF||(LA36_3>=RULE_ID && LA36_3<=RULE_DECIMAL)||(LA36_3>=14 && LA36_3<=16)||(LA36_3>=18 && LA36_3<=20)||(LA36_3>=24 && LA36_3<=25)||(LA36_3>=34 && LA36_3<=68)||(LA36_3>=70 && LA36_3<=96)) ) {\n alt36=2;\n }\n else if ( (LA36_3==27) ) {\n alt36=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 36, 3, input);\n\n throw nvae;\n }\n }\n break;\n case 83:\n {\n int LA36_4 = input.LA(2);\n\n if ( (LA36_4==27) ) {\n alt36=1;\n }\n else if ( (LA36_4==EOF||(LA36_4>=RULE_ID && LA36_4<=RULE_DECIMAL)||(LA36_4>=14 && LA36_4<=16)||(LA36_4>=18 && LA36_4<=20)||(LA36_4>=24 && LA36_4<=25)||(LA36_4>=34 && LA36_4<=68)||(LA36_4>=70 && LA36_4<=96)) ) {\n alt36=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 36, 4, input);\n\n throw nvae;\n }\n }\n break;\n case 84:\n {\n int LA36_5 = input.LA(2);\n\n if ( (LA36_5==EOF||(LA36_5>=RULE_ID && LA36_5<=RULE_DECIMAL)||(LA36_5>=14 && LA36_5<=16)||(LA36_5>=18 && LA36_5<=20)||(LA36_5>=24 && LA36_5<=25)||(LA36_5>=34 && LA36_5<=68)||(LA36_5>=70 && LA36_5<=96)) ) {\n alt36=2;\n }\n else if ( (LA36_5==27) ) {\n alt36=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 36, 5, input);\n\n throw nvae;\n }\n }\n break;\n case RULE_STRING:\n case RULE_HEX:\n case RULE_INT:\n case RULE_DECIMAL:\n case 14:\n case 18:\n case 24:\n case 40:\n case 56:\n case 57:\n case 62:\n case 68:\n case 71:\n case 73:\n case 76:\n case 77:\n case 78:\n case 85:\n case 86:\n case 87:\n case 88:\n case 89:\n case 90:\n case 91:\n case 92:\n case 93:\n case 95:\n {\n alt36=2;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 36, 0, input);\n\n throw nvae;\n }\n\n switch (alt36) {\n case 1 :\n // InternalSpeADL.g:1749:2: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) )\n {\n // InternalSpeADL.g:1749:2: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) )\n // InternalSpeADL.g:1749:3: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) )\n {\n // InternalSpeADL.g:1749:3: ()\n // InternalSpeADL.g:1750:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(),\n current);\n \n }\n\n }\n\n // InternalSpeADL.g:1755:2: ( ( ruleFeatureCallID ) )\n // InternalSpeADL.g:1756:1: ( ruleFeatureCallID )\n {\n // InternalSpeADL.g:1756:1: ( ruleFeatureCallID )\n // InternalSpeADL.g:1757:3: ruleFeatureCallID\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getXAssignmentRule());\n \t }\n \n }\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); \n \t \n }\n pushFollow(FOLLOW_28);\n ruleFeatureCallID();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); \n \n }\n pushFollow(FOLLOW_29);\n ruleOpSingleAssign();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n afterParserOrEnumRuleCall();\n \n }\n // InternalSpeADL.g:1778:1: ( (lv_value_3_0= ruleXAssignment ) )\n // InternalSpeADL.g:1779:1: (lv_value_3_0= ruleXAssignment )\n {\n // InternalSpeADL.g:1779:1: (lv_value_3_0= ruleXAssignment )\n // InternalSpeADL.g:1780:3: lv_value_3_0= ruleXAssignment\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); \n \t \n }\n pushFollow(FOLLOW_2);\n lv_value_3_0=ruleXAssignment();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getXAssignmentRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_3_0, \n \t\t\"org.eclipse.xtext.xbase.Xbase.XAssignment\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n break;\n case 2 :\n // InternalSpeADL.g:1797:6: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? )\n {\n // InternalSpeADL.g:1797:6: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? )\n // InternalSpeADL.g:1798:5: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )?\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); \n \n }\n pushFollow(FOLLOW_30);\n this_XOrExpression_4=ruleXOrExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_XOrExpression_4; \n afterParserOrEnumRuleCall();\n \n }\n // InternalSpeADL.g:1806:1: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )?\n int alt35=2;\n alt35 = dfa35.predict(input);\n switch (alt35) {\n case 1 :\n // InternalSpeADL.g:1806:2: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) )\n {\n // InternalSpeADL.g:1806:2: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) )\n // InternalSpeADL.g:1806:3: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) )\n {\n // InternalSpeADL.g:1811:6: ( () ( ( ruleOpMultiAssign ) ) )\n // InternalSpeADL.g:1811:7: () ( ( ruleOpMultiAssign ) )\n {\n // InternalSpeADL.g:1811:7: ()\n // InternalSpeADL.g:1812:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElementAndSet(\n grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(),\n current);\n \n }\n\n }\n\n // InternalSpeADL.g:1817:2: ( ( ruleOpMultiAssign ) )\n // InternalSpeADL.g:1818:1: ( ruleOpMultiAssign )\n {\n // InternalSpeADL.g:1818:1: ( ruleOpMultiAssign )\n // InternalSpeADL.g:1819:3: ruleOpMultiAssign\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tif (current==null) {\n \t current = createModelElement(grammarAccess.getXAssignmentRule());\n \t }\n \n }\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); \n \t \n }\n pushFollow(FOLLOW_29);\n ruleOpMultiAssign();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n // InternalSpeADL.g:1832:4: ( (lv_rightOperand_7_0= ruleXAssignment ) )\n // InternalSpeADL.g:1833:1: (lv_rightOperand_7_0= ruleXAssignment )\n {\n // InternalSpeADL.g:1833:1: (lv_rightOperand_7_0= ruleXAssignment )\n // InternalSpeADL.g:1834:3: lv_rightOperand_7_0= ruleXAssignment\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); \n \t \n }\n pushFollow(FOLLOW_2);\n lv_rightOperand_7_0=ruleXAssignment();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getXAssignmentRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"rightOperand\",\n \t\tlv_rightOperand_7_0, \n \t\t\"org.eclipse.xtext.xbase.Xbase.XAssignment\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "22721f0c272195a08723e0a6a77a34c8", "score": "0.47051156", "text": "public Expression parseBinaryExpression(Expression lhs, int minPrecedence) throws XPathException {\r\n while (getCurrentOperatorPrecedence() >= minPrecedence) {\r\n int operator = t.currentToken;\r\n int prec = getCurrentOperatorPrecedence();\r\n switch (operator) {\r\n case Token.INSTANCE_OF:\r\n case Token.TREAT_AS:\r\n nextToken();\r\n SequenceType seq = parseSequenceType();\r\n lhs = makeSequenceTypeExpression(lhs, operator, seq);\r\n setLocation(lhs);\r\n if (getCurrentOperatorPrecedence() >= prec) {\r\n grumble(\"Left operand of '\" + Token.tokens[t.currentToken] + \"' needs parentheses\");\r\n }\r\n break;\r\n case Token.CAST_AS:\r\n case Token.CASTABLE_AS:\r\n nextToken();\r\n expect(Token.NAME);\r\n //ItemType at = getPlainType(t.currentTokenValue);\r\n SimpleType at = getSimpleType(t.currentTokenValue);\r\n if (at == ANY_ATOMIC) {\r\n grumble(\"No value is castable to xs:anyAtomicType\", \"XPST0080\");\r\n }\r\n if (at == NOTATION) {\r\n grumble(\"No value is castable to xs:NOTATION\", \"XPST0080\");\r\n }\r\n nextToken();\r\n boolean allowEmpty = (t.currentToken == Token.QMARK);\r\n if (allowEmpty) {\r\n nextToken();\r\n }\r\n lhs = makeSingleTypeExpression(lhs, operator, at, allowEmpty);\r\n setLocation(lhs);\r\n if (getCurrentOperatorPrecedence() >= prec) {\r\n grumble(\"Left operand of '\" + Token.tokens[t.currentToken] + \"' needs parentheses\");\r\n }\r\n break;\r\n default:\r\n nextToken();\r\n Expression rhs = parseUnaryExpression();\r\n while (getCurrentOperatorPrecedence() > prec) {\r\n rhs = parseBinaryExpression(rhs, getCurrentOperatorPrecedence());\r\n }\r\n lhs = makeBinaryExpression(lhs, operator, rhs);\r\n setLocation(lhs);\r\n }\r\n }\r\n return lhs;\r\n }", "title": "" }, { "docid": "98ab888ad080b03bf3abfcd1e7213f0e", "score": "0.47042224", "text": "private static Parser<SingleExpression> singleExpression02() {\n\t\treturn Parsers.sequence(readonly(), var()).map(SingleExpression::new);\n\t}", "title": "" }, { "docid": "922bb864350f55cbe5d811cb68c33d48", "score": "0.47035024", "text": "public final BaseDescr unaryExpression() throws RecognitionException {\n BaseDescr result = null;\n\n BaseDescr ue = null;\n\n DRL6Expressions.unaryExpressionNotPlusMinus_return left = null;\n\n\n try {\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:450:5: ( PLUS ue= unaryExpression | MINUS ue= unaryExpression | INCR primary | DECR primary | left= unaryExpressionNotPlusMinus )\n int alt47=5;\n switch ( input.LA(1) ) {\n case PLUS:\n {\n alt47=1;\n }\n break;\n case MINUS:\n {\n alt47=2;\n }\n break;\n case INCR:\n {\n alt47=3;\n }\n break;\n case DECR:\n {\n alt47=4;\n }\n break;\n case FLOAT:\n case HEX:\n case DECIMAL:\n case STRING:\n case TIME_INTERVAL:\n case BOOL:\n case NULL:\n case LESS:\n case LEFT_PAREN:\n case LEFT_SQUARE:\n case NEGATION:\n case TILDE:\n case STAR:\n case ID:\n {\n alt47=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return result;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 47, 0, input);\n\n throw nvae;\n }\n\n switch (alt47) {\n case 1 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:450:9: PLUS ue= unaryExpression\n {\n match(input,PLUS,FOLLOW_PLUS_in_unaryExpression2237); if (state.failed) return result;\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression2241);\n ue=unaryExpression();\n\n state._fsp--;\n if (state.failed) return result;\n if ( state.backtracking==0 ) {\n if( buildDescr ) {\n result = ue;\n if( result instanceof AtomicExprDescr ) {\n ((AtomicExprDescr)result).setExpression( \"+\" + ((AtomicExprDescr)result).getExpression() );\n }\n } \n }\n\n }\n break;\n case 2 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:457:7: MINUS ue= unaryExpression\n {\n match(input,MINUS,FOLLOW_MINUS_in_unaryExpression2259); if (state.failed) return result;\n pushFollow(FOLLOW_unaryExpression_in_unaryExpression2263);\n ue=unaryExpression();\n\n state._fsp--;\n if (state.failed) return result;\n if ( state.backtracking==0 ) {\n if( buildDescr ) {\n result = ue;\n if( result instanceof AtomicExprDescr ) {\n ((AtomicExprDescr)result).setExpression( \"-\" + ((AtomicExprDescr)result).getExpression() );\n }\n } \n }\n\n }\n break;\n case 3 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:464:9: INCR primary\n {\n match(input,INCR,FOLLOW_INCR_in_unaryExpression2283); if (state.failed) return result;\n pushFollow(FOLLOW_primary_in_unaryExpression2285);\n primary();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n case 4 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:465:9: DECR primary\n {\n match(input,DECR,FOLLOW_DECR_in_unaryExpression2295); if (state.failed) return result;\n pushFollow(FOLLOW_primary_in_unaryExpression2297);\n primary();\n\n state._fsp--;\n if (state.failed) return result;\n\n }\n break;\n case 5 :\n // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:466:9: left= unaryExpressionNotPlusMinus\n {\n pushFollow(FOLLOW_unaryExpressionNotPlusMinus_in_unaryExpression2309);\n left=unaryExpressionNotPlusMinus();\n\n state._fsp--;\n if (state.failed) return result;\n if ( state.backtracking==0 ) {\n if( buildDescr ) { result = (left!=null?left.result:null); } \n }\n\n }\n break;\n\n }\n }\n\n catch (RecognitionException re) {\n throw re;\n }\n finally {\n }\n return result;\n }", "title": "" }, { "docid": "f834d428abf2a38f10b42a65620291f9", "score": "0.47027004", "text": "public Expression parseBinaryExpression(Expression lhs, int minPrecedence) throws XPathException {\r\n while (getCurrentOperatorPrecedence() >= minPrecedence) {\r\n int operator = t.currentToken;\r\n int prec = getCurrentOperatorPrecedence();\r\n switch (operator) {\r\n case Token.INSTANCE_OF:\r\n case Token.TREAT_AS:\r\n nextToken();\r\n SequenceType seq = parseSequenceType();\r\n lhs = makeSequenceTypeExpression(lhs, operator, seq);\r\n setLocation(lhs);\r\n if (getCurrentOperatorPrecedence() >= prec) {\r\n grumble(\"Left operand of '\" + Token.tokens[t.currentToken] + \"' needs parentheses\");\r\n }\r\n break;\r\n case Token.CAST_AS:\r\n case Token.CASTABLE_AS:\r\n nextToken();\r\n expect(Token.NAME);\r\n AtomicType at = getAtomicType(t.currentTokenValue);\r\n if (at.getFingerprint() == StandardNames.XS_ANY_ATOMIC_TYPE) {\r\n grumble(\"No value is castable to xs:anyAtomicType\", \"XPST0080\");\r\n }\r\n nextToken();\r\n boolean allowEmpty = (t.currentToken == Token.QMARK);\r\n if (allowEmpty) {\r\n nextToken();\r\n }\r\n lhs = makeSingleTypeExpression(lhs, operator, at, allowEmpty);\r\n setLocation(lhs);\r\n if (getCurrentOperatorPrecedence() >= prec) {\r\n grumble(\"Left operand of '\" + Token.tokens[t.currentToken] + \"' needs parentheses\");\r\n }\r\n break;\r\n default:\r\n nextToken();\r\n Expression rhs = parseUnaryExpression();\r\n while (getCurrentOperatorPrecedence() > prec) {\r\n rhs = parseBinaryExpression(rhs, getCurrentOperatorPrecedence());\r\n }\r\n lhs = makeBinaryExpression(lhs, operator, rhs);\r\n setLocation(lhs);\r\n }\r\n }\r\n return lhs;\r\n }", "title": "" }, { "docid": "0c1189c9ae1285f9aa29a79fe6e1868d", "score": "0.4697525", "text": "public final void rule__DmxNavigableMemberReference__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDom.g:4999:1: ( ( ruleDmxPrimaryExpression ) )\n // InternalDom.g:5000:1: ( ruleDmxPrimaryExpression )\n {\n // InternalDom.g:5000:1: ( ruleDmxPrimaryExpression )\n // InternalDom.g:5001:2: ruleDmxPrimaryExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getDmxNavigableMemberReferenceAccess().getDmxPrimaryExpressionParserRuleCall_0()); \n }\n pushFollow(FOLLOW_2);\n ruleDmxPrimaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getDmxNavigableMemberReferenceAccess().getDmxPrimaryExpressionParserRuleCall_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4388fca95252bbaab37209776db310f8", "score": "0.4693262", "text": "public final void rule__Primary__Group_4__2__Impl() throws RecognitionException {\n int rule__Primary__Group_4__2__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 831) ) { return ; }\n // InternalGaml.g:14056:1: ( ( ( rule__Primary__ExprsAssignment_4_2 )? ) )\n // InternalGaml.g:14057:1: ( ( rule__Primary__ExprsAssignment_4_2 )? )\n {\n // InternalGaml.g:14057:1: ( ( rule__Primary__ExprsAssignment_4_2 )? )\n // InternalGaml.g:14058:1: ( rule__Primary__ExprsAssignment_4_2 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getExprsAssignment_4_2()); \n }\n // InternalGaml.g:14059:1: ( rule__Primary__ExprsAssignment_4_2 )?\n int alt131=2;\n int LA131_0 = input.LA(1);\n\n if ( ((LA131_0>=RULE_STRING && LA131_0<=RULE_KEYWORD)||LA131_0==15||(LA131_0>=17 && LA131_0<=19)||LA131_0==21||(LA131_0>=23 && LA131_0<=70)||(LA131_0>=76 && LA131_0<=98)||LA131_0==106||(LA131_0>=109 && LA131_0<=114)||LA131_0==121||LA131_0==123||LA131_0==125||LA131_0==130) ) {\n alt131=1;\n }\n switch (alt131) {\n case 1 :\n // InternalGaml.g:14059:2: rule__Primary__ExprsAssignment_4_2\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Primary__ExprsAssignment_4_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getExprsAssignment_4_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 831, rule__Primary__Group_4__2__Impl_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fb0f769422cf2526769cd3ac671626d1", "score": "0.46883008", "text": "public final Object expression() throws RecognitionException {\n \t\tObject result = null;\n \n \n \t\tCommonTree IDENT1=null;\n \t\tCommonTree STRING2=null;\n \t\tCommonTree NUMBER3=null;\n \t\tCommonTree BOOLEAN4=null;\n \t\tObject op1 =null;\n \t\tObject op2 =null;\n \n \t\ttry {\n \t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:51:2: ( ^( 'AND' op1= expression op2= expression ) | ^( 'OR' op1= expression op2= expression ) | ^( '=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | IDENT | STRING | NUMBER | BOOLEAN )\n \t\t\tint alt1=12;\n \t\t\tswitch ( input.LA(1) ) {\n \t\t\tcase 18:\n \t\t\t\t{\n \t\t\t\talt1=1;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase 19:\n \t\t\t\t{\n \t\t\t\talt1=2;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase 15:\n \t\t\t\t{\n \t\t\t\talt1=3;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase 16:\n \t\t\t\t{\n \t\t\t\talt1=4;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase 13:\n \t\t\t\t{\n \t\t\t\talt1=5;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase 17:\n \t\t\t\t{\n \t\t\t\talt1=6;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase 14:\n \t\t\t\t{\n \t\t\t\talt1=7;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase 10:\n \t\t\t\t{\n \t\t\t\talt1=8;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase IDENT:\n \t\t\t\t{\n \t\t\t\talt1=9;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase STRING:\n \t\t\t\t{\n \t\t\t\talt1=10;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase NUMBER:\n \t\t\t\t{\n \t\t\t\talt1=11;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase BOOLEAN:\n \t\t\t\t{\n \t\t\t\talt1=12;\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\tNoViableAltException nvae =\n \t\t\t\t\tnew NoViableAltException(\"\", 1, 0, input);\n \t\t\t\tthrow nvae;\n \t\t\t}\n \t\t\tswitch (alt1) {\n \t\t\t\tcase 1 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:51:4: ^( 'AND' op1= expression op2= expression )\n \t\t\t\t\t{\n \t\t\t\t\tmatch(input,18,FOLLOW_18_in_expression79); \n \t\t\t\t\tmatch(input, Token.DOWN, null); \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression83);\n \t\t\t\t\top1=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression87);\n \t\t\t\t\top2=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tmatch(input, Token.UP, null); \n \n \t\t\t\t\t result = OperatorUtil.testAND(op1, op2, getRuntimeConnector()); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 2 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:52:4: ^( 'OR' op1= expression op2= expression )\n \t\t\t\t\t{\n \t\t\t\t\tmatch(input,19,FOLLOW_19_in_expression96); \n \t\t\t\t\tmatch(input, Token.DOWN, null); \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression100);\n \t\t\t\t\top1=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression104);\n \t\t\t\t\top2=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tmatch(input, Token.UP, null); \n \n \t\t\t\t\t result = OperatorUtil.testOR(op1, op2, getRuntimeConnector()); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 3 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:53:4: ^( '=' op1= expression op2= expression )\n \t\t\t\t\t{\n \t\t\t\t\tmatch(input,15,FOLLOW_15_in_expression113); \n \t\t\t\t\tmatch(input, Token.DOWN, null); \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression117);\n \t\t\t\t\top1=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression121);\n \t\t\t\t\top2=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tmatch(input, Token.UP, null); \n \n \t\t\t\t\t result = OperatorUtil.testEquals(op1, op2, getRuntimeConnector()); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 4 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:54:4: ^( '>' op1= expression op2= expression )\n \t\t\t\t\t{\n \t\t\t\t\tmatch(input,16,FOLLOW_16_in_expression130); \n \t\t\t\t\tmatch(input, Token.DOWN, null); \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression134);\n \t\t\t\t\top1=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression138);\n \t\t\t\t\top2=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tmatch(input, Token.UP, null); \n \n \t\t\t\t\t result = OperatorUtil.testGreaterThan(op1, op2, getRuntimeConnector()); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 5 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:55:4: ^( '<' op1= expression op2= expression )\n \t\t\t\t\t{\n \t\t\t\t\tmatch(input,13,FOLLOW_13_in_expression147); \n \t\t\t\t\tmatch(input, Token.DOWN, null); \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression151);\n \t\t\t\t\top1=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression155);\n \t\t\t\t\top2=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tmatch(input, Token.UP, null); \n \n \t\t\t\t\t result = OperatorUtil.testLessThan(op1, op2, getRuntimeConnector()); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 6 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:56:4: ^( '>=' op1= expression op2= expression )\n \t\t\t\t\t{\n \t\t\t\t\tmatch(input,17,FOLLOW_17_in_expression164); \n \t\t\t\t\tmatch(input, Token.DOWN, null); \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression168);\n \t\t\t\t\top1=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression172);\n \t\t\t\t\top2=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tmatch(input, Token.UP, null); \n \n \t\t\t\t\t result = OperatorUtil.testGreaterThanEqualTo(op1, op2, getRuntimeConnector()); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 7 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:57:4: ^( '<=' op1= expression op2= expression )\n \t\t\t\t\t{\n \t\t\t\t\tmatch(input,14,FOLLOW_14_in_expression181); \n \t\t\t\t\tmatch(input, Token.DOWN, null); \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression185);\n \t\t\t\t\top1=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression189);\n \t\t\t\t\top2=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tmatch(input, Token.UP, null); \n \n \t\t\t\t\t result = OperatorUtil.testLessThanEqualTo(op1, op2, getRuntimeConnector()); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 8 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:58:4: ^( '!=' op1= expression op2= expression )\n \t\t\t\t\t{\n \t\t\t\t\tmatch(input,10,FOLLOW_10_in_expression198); \n \t\t\t\t\tmatch(input, Token.DOWN, null); \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression202);\n \t\t\t\t\top1=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tpushFollow(FOLLOW_expression_in_expression206);\n \t\t\t\t\top2=expression();\n \t\t\t\t\tstate._fsp--;\n \n \t\t\t\t\tmatch(input, Token.UP, null); \n \n \t\t\t\t\t result = OperatorUtil.testNotEquals(op1, op2, getRuntimeConnector()); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 9 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:59:4: IDENT\n \t\t\t\t\t{\n \t\t\t\t\tIDENT1=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_expression214); \n \t\t\t\t\t result = new VariableReference((IDENT1!=null?IDENT1.getText():null)); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 10 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:60:4: STRING\n \t\t\t\t\t{\n \t\t\t\t\tSTRING2=(CommonTree)match(input,STRING,FOLLOW_STRING_in_expression221); \n \t\t\t\t\t result = new String((STRING2!=null?STRING2.getText():null)); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 11 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:61:4: NUMBER\n \t\t\t\t\t{\n \t\t\t\t\tNUMBER3=(CommonTree)match(input,NUMBER,FOLLOW_NUMBER_in_expression228); \n \t\t\t\t\t result = new BigDecimal((NUMBER3!=null?NUMBER3.getText():null)); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \t\t\t\tcase 12 :\n \t\t\t\t\t// com/hula/lang/conditional/HulaConditionalTree.g:62:4: BOOLEAN\n \t\t\t\t\t{\n \t\t\t\t\tBOOLEAN4=(CommonTree)match(input,BOOLEAN,FOLLOW_BOOLEAN_in_expression235); \n \t\t\t\t\t result = new Boolean((BOOLEAN4!=null?BOOLEAN4.getText():null)); \n \t\t\t\t\t}\n \t\t\t\t\tbreak;\n \n \t\t\t}\n \t\t}\n \t\tcatch (RecognitionException re) {\n \t\t\treportError(re);\n \t\t\trecover(input,re);\n \t\t}\n \t\tfinally {\n \t\t\t// do for sure before leaving\n \t\t}\n \t\treturn result;\n \t}", "title": "" }, { "docid": "41fc685819884255780c78b34988e881", "score": "0.4679706", "text": "public final void rule__Primary__ExprsAssignment_4_2() throws RecognitionException {\n int rule__Primary__ExprsAssignment_4_2_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 1153) ) { return ; }\n // InternalGaml.g:19275:1: ( ( ruleExpressionList ) )\n // InternalGaml.g:19276:1: ( ruleExpressionList )\n {\n // InternalGaml.g:19276:1: ( ruleExpressionList )\n // InternalGaml.g:19277:1: ruleExpressionList\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPrimaryAccess().getExprsExpressionListParserRuleCall_4_2_0()); \n }\n pushFollow(FollowSets000.FOLLOW_2);\n ruleExpressionList();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPrimaryAccess().getExprsExpressionListParserRuleCall_4_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 1153, rule__Primary__ExprsAssignment_4_2_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6f12fdf806778581d507330149de7faa", "score": "0.46788815", "text": "public final void rule__UnaryExpr__ExprAssignment_0_8() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalLTL.g:1610:1: ( ( ruleUnaryExpr ) )\n // InternalLTL.g:1611:2: ( ruleUnaryExpr )\n {\n // InternalLTL.g:1611:2: ( ruleUnaryExpr )\n // InternalLTL.g:1612:3: ruleUnaryExpr\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getUnaryExprAccess().getExprUnaryExprParserRuleCall_0_8_0()); \n }\n pushFollow(FOLLOW_2);\n ruleUnaryExpr();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getUnaryExprAccess().getExprUnaryExprParserRuleCall_0_8_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "654d468b99c7ef21e30580589aab9213", "score": "0.4668272", "text": "public final void rule__XParenthesizedExpression__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:11836:1: ( ( ruleXExpression ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:11837:1: ( ruleXExpression )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:11837:1: ( ruleXExpression )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:11838:1: ruleXExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); \r\n }\r\n pushFollow(FOLLOW_ruleXExpression_in_rule__XParenthesizedExpression__Group__1__Impl24037);\r\n ruleXExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "a870a0ca5bdf147a837def468cc667c9", "score": "0.46679398", "text": "@Nonnull\n private static IXP2Expression _convertExpressionSingle (@Nonnull final XP2Node aNode)\n {\n switch (aNode.getNodeType ())\n {\n case ParserXP2TreeConstants.JJTFOREXPR:\n return _convertForExpression (aNode);\n case ParserXP2TreeConstants.JJTQUANTIFIEDEXPR:\n return _convertQuantifiedExpression (aNode);\n case ParserXP2TreeConstants.JJTIFEXPR:\n return _convertIfExpression (aNode);\n case ParserXP2TreeConstants.JJTOREXPR:\n return _convertOrExpression (aNode);\n default:\n throw new XP2HandlingException (aNode, \"Invalid node type for expression!\");\n }\n }", "title": "" } ]
8be3ed26018a780a225d55195bb4f7ac
Created by yugi on 2017/3/15.
[ { "docid": "62c06820da4db70437bf88f8868b0480", "score": "0.0", "text": "@Service\npublic interface InstitutionService {\n Institution getInstitutionByUsername(String username) throws Exception;\n Institution getInstitutionByid(String id) throws Exception;\n boolean addBalance(int institutionid,double balance) throws Exception;\n List<Institution> getAllInstitution() throws Exception;\n}", "title": "" } ]
[ { "docid": "4d9e164e4e911df1380f4618e0fe7a08", "score": "0.609561", "text": "OI (){\n\t\t\n\t}", "title": "" }, { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.6079093", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.5931631", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.5915039", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "063ae6a38469d06ddf88fd9af6522171", "score": "0.5870455", "text": "@Override\r\n\tpublic void guru() {\n\t\t\r\n\t}", "title": "" }, { "docid": "df970d9257b3282612e3b7ad881bca60", "score": "0.5850843", "text": "protected void bhjp5027AcedeMhjj027a() {\n }", "title": "" }, { "docid": "40be4915804d3229e08fed067ec03fd6", "score": "0.5814491", "text": "Bug_616419() {\r\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.57952017", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "7ba2946d983bb1e7f8bf10a547e6dc3f", "score": "0.579156", "text": "public void mo14489d() {\n }", "title": "" }, { "docid": "582acaef2e3110454651d58f22c1b299", "score": "0.5785535", "text": "public void mo14492g() {\n }", "title": "" }, { "docid": "316276ba4dfc453ccdb2c848359c272c", "score": "0.57789475", "text": "private void saniyedeBir() {\n\t\t\n\t\t\t\n\n\t }", "title": "" }, { "docid": "d3082ef05aec8dc343ca108ab345f43a", "score": "0.5760984", "text": "@Override\r\n\tpublic void morir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6e6512370dbb6f9cb6dcc13bd5aa3b2d", "score": "0.57106614", "text": "@Override\n\tvoid absone() {\n\t\t\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.56725746", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "b7026792f4497bfcada6c43399e85e01", "score": "0.56686133", "text": "@Override\r\n\tpublic void kellton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.5664958", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "fa32f830910aeae71dc86bf338a8b0fc", "score": "0.56648976", "text": "@Override\n\tpublic void genrator() {\n\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.56542766", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "817efc043b4e1d7ba918f254f9fa5ae6", "score": "0.56493145", "text": "@Override\n public void taunt() {\n\n }", "title": "" }, { "docid": "d4e15b200c2022658af267c700b34269", "score": "0.5647454", "text": "@Override\n\tpublic void anlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "cf106c4357acca188056c470b50f748c", "score": "0.56265503", "text": "private Singletone() {}", "title": "" }, { "docid": "ad4d9339a0e3b347b6df9466d063badd", "score": "0.5623473", "text": "public void piocher(){\n\t\t\n\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.55951846", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "12104bcdcc776dd1fc9415fbc08ab9a4", "score": "0.5591985", "text": "private ExtentTS() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.5584334", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5584326", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5584326", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.5581292", "text": "protected void method_3848() {}", "title": "" }, { "docid": "8b3d721b1eea281aeed549a0c2e07286", "score": "0.5566963", "text": "private void StartotraL() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.55514926", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.55514926", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5547817", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b28a6bba203633cc1b71e802b691f592", "score": "0.554602", "text": "@Override\n\tpublic void shuthdown() {\n\n\t}", "title": "" }, { "docid": "bd9b859f3a9c1a1565a6602ccdbe7e59", "score": "0.55359244", "text": "@Override\n\tpublic void fiyatt() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5520995", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5520995", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5520995", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5520995", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5520995", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "84e689da281c4e439372ad200feeb98b", "score": "0.55200505", "text": "private void quoifaire() {\n\t\n\t\t\n\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.54872", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6691139984030f01dbe58e2ac54116d", "score": "0.54639196", "text": "@Override\n public void initialize() {\n \n \n }", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.54624367", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.54548943", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.54479957", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5438", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.54345244", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5434494", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5434494", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5434494", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5434494", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.5433915", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.54192114", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f09b06bb707ed4096c0ea09f32a74824", "score": "0.5407481", "text": "private Estructura_BBDD() {}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.54022086", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "2f2216d5b5c98690feaa3184c2634e23", "score": "0.53988135", "text": "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53955704", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53955704", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.53921473", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.53921473", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.53921473", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.53921473", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.53921473", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.53921473", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.53921473", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.53921473", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.53897685", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.53897685", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.53786916", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "cf22f889d7fbcd272d230fe8e0354d0c", "score": "0.536757", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.53667593", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e58b18580efb996e86a2a2e3852d4b8d", "score": "0.5356828", "text": "private TypicalHomework() {}", "title": "" }, { "docid": "258fef0e9420b0df779163d8d9cb25a9", "score": "0.5350915", "text": "private void hf() {\n\n\t}", "title": "" }, { "docid": "a4f5275a394442b77ca743e85e2d2f20", "score": "0.5342705", "text": "public void mo3892a() {\n }", "title": "" }, { "docid": "5c40bd2e5c1d492aac9d5983bf52d2e3", "score": "0.53368384", "text": "@Override\n\tpublic void vericar() {\n\t\t\n\t}", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.53363276", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.53341484", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.53341484", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.53292626", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.53292626", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5314016", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "5ec00384d83fde391dcc1109e082d025", "score": "0.530396", "text": "@Override\n public void initialize() {\n \n\n }", "title": "" }, { "docid": "a59d3a080703df0c29632666d64e3e65", "score": "0.5289821", "text": "@Override\n\tprotected void initialize()\n {\n }", "title": "" }, { "docid": "f476e77c136225b317ecc949b6b0851b", "score": "0.5285608", "text": "public void mo5614b() {\n }", "title": "" }, { "docid": "be30a755a49491d0c1db538cbb3c601d", "score": "0.5279372", "text": "@Override\r\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "1f4988c898d552b0a5965dcb636a68ca", "score": "0.52778435", "text": "@Override\r\n\tpublic void correr() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fd329397142825dab1d796112f827f9d", "score": "0.5276901", "text": "@Override\n\tpublic void look() {\n\t\t\n\t}", "title": "" }, { "docid": "12c148d05fe753983614cee07240d8f6", "score": "0.5275123", "text": "@Override\n\t\t\t\tpublic void ll() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.5266265", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "b8a933b513450a6a7874821e414066eb", "score": "0.525834", "text": "private void init() {\n\t}", "title": "" } ]
59e48c94498943700c6f26ae2c5d8dbd
Checks whether the given license key is valid.
[ { "docid": "4c25ff78915f91ea9f1251560caf5a5c", "score": "0.7162027", "text": "boolean isKeyValid( String key );", "title": "" } ]
[ { "docid": "c5c84595c5b04e05c568b09982e4a392", "score": "0.6426574", "text": "boolean saveLicenseKey( String key );", "title": "" }, { "docid": "680d16162f43815d0607fe43178da0ac", "score": "0.6412984", "text": "public boolean checkLicence(String sLicence);", "title": "" }, { "docid": "04b51917169885acdf5fc9e1ad3c9a19", "score": "0.6252601", "text": "public boolean isValid(){\n return key != null && secretKey != null && keyVersion != null;\n }", "title": "" }, { "docid": "621f3523972a967604c84e5520e64b70", "score": "0.61326903", "text": "protected boolean isValid(TKey key)\n {\n return Utils.ifNull(_cacheValidity.get(key), true);\n }", "title": "" }, { "docid": "eb8a36d5f9f93191acef9a2b2df99707", "score": "0.5930923", "text": "public boolean vehicleKeyVerificaton (VehicleKey key){\n return vehicleKey.keyMatches(key);\n }", "title": "" }, { "docid": "7420cabb4136d3a7279c29df80b8c5e0", "score": "0.5921976", "text": "public void validateKey(String accessKey, String secret) throws RMapApiException;", "title": "" }, { "docid": "c3653dca412446687ad0da60f70691a9", "score": "0.5858132", "text": "public boolean isValid(K key){\n\t\treturn map.containsKey(key);\n\t}", "title": "" }, { "docid": "f51aa3eb4a0ad08a7baded4765c7994c", "score": "0.5823754", "text": "public boolean validateCertificate() {\n\t\tString authorityAddress = \"\";\n\t\tif (authorities.containsKey(authorityName)) {\n\t\t\tauthorityAddress = authorities.get(authorityName);\n\t\t} else {\n\t\t\treturn false; // Not a valid authority\n\t\t}\n\t\tMerkleAddressUtility MerkleAddressUtility = new MerkleAddressUtility();\n\t\tif (!MerkleAddressUtility.verifyMerkleSignature(getCertificateMessage(), signatureData, authorityAddress,\n\t\t\t\tsignatureIndex)) {\n\t\t\treturn false; // Signature is not valid\n\t\t}\n\t\tif (!MerkleAddressUtility.isAddressFormattedCorrectly(redeemAddress)) {\n\t\t\treturn false; // Destination redemption address is invalid\n\t\t}\n\t\tif (arbitraryData.length() > 40) {\n\t\t\treturn false; // Arbitrary data section can only be 40 characters or less\n\t\t}\n\t\tif (maxNonce <= 0) {\n\t\t\treturn false; // maxNonce must be a positive integer\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7317425f5d9dc1155fef91319d15133d", "score": "0.57721645", "text": "@Override\r\n\tpublic Boolean isValidationSuccessful(GspECKey ecKey) {\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "7ffa6fbd09a7851b94569d98f0bbd546", "score": "0.5730671", "text": "boolean hasCryptoKey();", "title": "" }, { "docid": "06a6f27f70af7246a53421537bf2db67", "score": "0.5726841", "text": "public boolean validateUserAPIKey(String key){\n APIUser apiUseruser = apiUserMapper.getUserByKey(key);\n if(apiUseruser == null) return false;\n\n return true;\n }", "title": "" }, { "docid": "e8b8e5c767afef2996423f04add3294d", "score": "0.56284404", "text": "public boolean isKeyValid(byte[] newkey) {\n // It is valid to not have a key\n if (this.hostkey == null) {\n return true;\n }\n if (newkey == null) {\n return false;\n }\n return Arrays.equals(this.hostkey, newkey);\n }", "title": "" }, { "docid": "9f003d8cf3f67552e892343f2d55f29d", "score": "0.55909336", "text": "private boolean checkKeyFormat(String key){\n\t\tif(key.length()>MAX_KEY_SIZE){\n\t\t\tlogger.info(\"Key: \"+key+\" was too long\");\n\t\t\treturn false;\n\t\t}else if(key.contains(\" \")){\n\t\t\tlogger.info(\"Key contains white space.\");\n\t\t\treturn false;\n\t\t}else if (key.length()==0){\n\t\t\tlogger.info(\"Key was empty\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3d161ba83a571e26d1fd10df6f07c775", "score": "0.55612", "text": "boolean validate( Key key, byte[] signature, byte[] digest ) throws JwtSignatureException;", "title": "" }, { "docid": "8d8a147ee62e7ef63cac8f82bf2313c0", "score": "0.55579597", "text": "private boolean isRequired(KEY key) {\n\t\treturn FileOption.REQUIRED_KEYS.contains(key);\n\t}", "title": "" }, { "docid": "8067e081cb92416a250071bebbc4eb54", "score": "0.5545636", "text": "protected void validateKeyPresence(Object key)\n {\n if (getResourceProperties().isKeylessResource())\n {\n if (key != null)\n {\n throw new IllegalArgumentException(\"id is not allowed in this key-less resource request\");\n }\n }\n else\n {\n if (key == null)\n {\n throw new IllegalArgumentException(\"id required to build this request\");\n }\n }\n }", "title": "" }, { "docid": "878c93c0ca78ac0ee624572de91bf03d", "score": "0.5533349", "text": "String getLicenseKey();", "title": "" }, { "docid": "7800a39ed4934bb314d7ae2d2e730bba", "score": "0.5477967", "text": "public boolean check(String key, int len) {\n keytomatrix(key, len);\n int d = determinant(keymatrix, len);\n d = d % 26;\n if (d == 0) {\n System.out.println(\"Invalid key!!! Key is not invertible because determinant=0...\");\n return false;\n } else if (d % 2 == 0 || d % 13 == 0) {\n System.out.println(\"Invalid key!!! Key is not invertible because determinant has common factor with 26...\");\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "65e82209f2942ae33e042837d268e5c1", "score": "0.5477856", "text": "public static boolean isValidPushKey(String key) {\n return key.length() == 30;\n }", "title": "" }, { "docid": "56152721e5b98f9e4f76a2dd51be6bf1", "score": "0.54428047", "text": "boolean containsRequires(\n java.lang.String key);", "title": "" }, { "docid": "adbf82305f2404a124566a46eb705ed3", "score": "0.5428689", "text": "private static boolean checkKeyUsage(X509Certificate cert) {\r\n\t\tboolean[] keyUsage = cert.getKeyUsage();\r\n\r\n\t\treturn keyUsage[0];\r\n\t}", "title": "" }, { "docid": "8014c30e94ac51e590cdb7f3c5af1635", "score": "0.5423288", "text": "@Test\r\n\tpublic void cardValid() {\r\n\t\tString yearMonth = \"2021-09\";\r\n\t\tboolean output = false;\r\n\t\toutput = CardValidation.creditcardValidyear(yearMonth);\r\n\t\tassertTrue(output);\r\n\t}", "title": "" }, { "docid": "7f374e11a257755230bdb8475659abc6", "score": "0.5407117", "text": "public static boolean registerLicense(final String licenseKey, Context context) {\n // Connect context info and assets manager to native part\n AndroidUtils.setContext(context);\n if (assetManager == null) {\n assetManager = context.getApplicationContext().getAssets();\n AssetUtils.setAssetManagerPointer(assetManager);\n }\n\n final String oldKey = \"license_key_old\";\n final String newKey = \"license_key_new\";\n final SharedPreferences prefs = context.getSharedPreferences(context.getPackageName() + \"_carto_mobile_sdk1_preferences\", Context.MODE_PRIVATE);\n LicenseManagerListener listener = new LicenseManagerListener() {\n @Override\n public void onLicenseUpdated(String newLicenseKey) {\n try {\n prefs.edit().putString(oldKey, licenseKey).putString(newKey, newLicenseKey).commit();\n } catch (Exception e) {\n com.carto.utils.Log.info(\"MapView.registerLicense: Failed to save license key\");\n }\n }\n };\n String newLicenseKey = null;\n try {\n String oldLicenseKey = prefs.getString(oldKey, null);\n if (oldLicenseKey != null && oldLicenseKey.equals(licenseKey)) {\n newLicenseKey = prefs.getString(newKey, null);\n }\n } catch (Exception e) {\n com.carto.utils.Log.info(\"MapView.registerLicense: Failed to read license key\");\n }\n return BaseMapView.registerLicense(newLicenseKey != null ? newLicenseKey : licenseKey, listener);\n }", "title": "" }, { "docid": "9cccb4efb447b4feb5b9df71327e4d50", "score": "0.53689194", "text": "private boolean isAcceptable(String licenseNumber) {\n\t\ttry{\n\t\t\tint a = Character.digit(licenseNumber.charAt(0), 10);\n\t\t\tString aString = Integer.toString(a);\n\t\t \tint b = Character.digit(licenseNumber.charAt(1), 10);\n\t\t \tString bString = Integer.toString(b);\n\t\t \tint c = Character.digit(licenseNumber.charAt(2), 10);\n\t\t \tString cString = Integer.toString(c);\n\t\t \tint d = Character.digit(licenseNumber.charAt(3), 10);\n\t\t \tString dString = Integer.toString(d);\n\t \t\tString number = aString + bString + cString + dString;\n\t \t\tboolean status = isNumber(number);\n\t \t\tif(status == true) {return true;}\n\t\t}catch(IndexOutOfBoundsException e) {return false;}\n \t\treturn false;\n\t}", "title": "" }, { "docid": "9fa855c1ef83e3b9953831c4ccbd7085", "score": "0.5364205", "text": "public static boolean isCorrectKey(String key) {\n\t\treturn key.matches(\"^[a-zA-Z0-9]+$\");\n\t}", "title": "" }, { "docid": "759301f96e66c15e9b1103febb14d2b2", "score": "0.5357541", "text": "boolean verify()\n throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException;", "title": "" }, { "docid": "449046debad6adf6e10f9d42ba035762", "score": "0.53552514", "text": "boolean hasPubKey();", "title": "" }, { "docid": "f47bea511ee724771e3dbc1feaa5b6e8", "score": "0.53383046", "text": "private boolean checkApiKeyFormat() {\n if(apiKey.length()==0)\n return false;\n return true;\n }", "title": "" }, { "docid": "7627d3e42931452e4668df929305e941", "score": "0.5318951", "text": "public boolean isLicenseUnique (String license) {\n boolean licenseIsUnique = true;\n \n // Method not implemented per Week 5 spec\n // Left in order to avoid modifying validation method calls in CS310 main\n \n return licenseIsUnique;\n }", "title": "" }, { "docid": "26c22d56392c050484f3371179a0dae4", "score": "0.52866757", "text": "public boolean checkValidity(Date date) {\n if (date == null) {\n return false;\n }\n Vector vector = this.m_certificates;\n synchronized (vector) {\n Enumeration enumeration = this.m_certificates.elements();\n while (enumeration.hasMoreElements()) {\n if (((JAPCertificate)enumeration.nextElement()).getValidity().isValid(date)) continue;\n return false;\n }\n return true;\n }\n }", "title": "" }, { "docid": "3a8d537dadd6d83c4c3f20c3ddb20725", "score": "0.5274952", "text": "@Test\n void testKeypairShouldBeValid() throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {\n byte[] challenge = new byte[1000];\n ThreadLocalRandom.current().nextBytes(challenge);\n\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(rsaPrivateKey);\n sig.update(challenge);\n byte[] signature = sig.sign();\n\n sig.initVerify(rsaPublicKey);\n sig.update(challenge);\n\n assertTrue(sig.verify(signature));\n }", "title": "" }, { "docid": "05f09f70386e7039e98e5f2a8efc9e63", "score": "0.52632743", "text": "public interface LicenseLibrary {\n\n /**\n * Dispose of the <code>LicenseLibrary</code> and all of its resources.\n */\n void dispose();\n\n /**\n * Gets the license key.\n *\n * @return Returns said key.\n */\n String getLicenseKey();\n\n /**\n * Gets the {@link Pattern} of license keys.\n *\n * @return Returns said {@link Pattern}.\n */\n Pattern getLicenseKeyPattern();\n\n /**\n * Checks whether the given license key is valid.\n *\n * @param key The license key to check.\n * @return Returns <code>true</code> only if the given license key is\n * valid.\n */\n boolean isKeyValid( String key );\n\n /**\n * Save the license key to disk.\n *\n * @param key The license key to save.\n */\n boolean saveLicenseKey( String key );\n\n}", "title": "" }, { "docid": "ff925316602d89b1140bb13eb0c631d7", "score": "0.5251762", "text": "boolean hasTradingPubKey();", "title": "" }, { "docid": "5c26628077b80e49e1207b269ece33a2", "score": "0.52497727", "text": "public boolean isKeyValid(/* other params: tree, etc.. */ String locale, String key) {\n synchronized(this) {\n while(locale != null ) {\n Object what = internalGetHash(locale).get(key);\n if(what == null) {\n return false;\n }\n locale = WebContext.getParent(locale);\n }\n }\n return true;\n }", "title": "" }, { "docid": "77bda8e1a4eb7f4d68bb71c4af40639f", "score": "0.523177", "text": "private void checkKey(String key) {\n if (key == null || key.trim().isEmpty()) {\n throw new IllegalArgumentException(\"Key must not be empty or null.\");\n }\n }", "title": "" }, { "docid": "7b108d4ac17c70022155dd20367cf958", "score": "0.5227929", "text": "protected abstract boolean valid(ECardRecord ecr);", "title": "" }, { "docid": "237c4c8adb7b8a4183fdea3c1403b46e", "score": "0.52229244", "text": "protected final void checkKey(String key) {\n if (key == null) {\n throw new IllegalArgumentException(\"The supplied key cannot be null\");\n }\n\n if (!containsControl(key)) {\n throw new IllegalArgumentException(\"The supplied key is not associated with a control value\");\n }\n }", "title": "" }, { "docid": "25cbfd711ab450af03e853a3fb902a0f", "score": "0.5216338", "text": "public boolean validateCRC32()\n {\n if (crc32 == 0)\n return false;\n\n try\n {\n if (computeCRC32() == crc32)\n return true;\n }\n catch (Exception e)\n {\n // An exception means the file is probably bad so the CRC32 is\n // almost certainly bad as well.\n return false;\n }\n\n return false;\n }", "title": "" }, { "docid": "ce9c1198a5042b97173e32ad558d7895", "score": "0.5215815", "text": "public abstract boolean validateCourseCredits(double courseCredits);", "title": "" }, { "docid": "f88847dafc74cf9bf037efc622818c67", "score": "0.5202698", "text": "@Override\n\tpublic int isCaptchaValid(String captchaKey, String captcha) throws CommonException {\n\t\treturn 2;\n\t}", "title": "" }, { "docid": "527431d480eb76b4d7d9e30d25698a55", "score": "0.5202113", "text": "protected void checkKey(Object key) throws InvalidKeyException {\r\n if (!C.isComparable(key))\r\n throw new InvalidKeyException(\"Key \" + key + \" is not comparable.\");\r\n }", "title": "" }, { "docid": "f10f7842656d3e082a27b52fc2765cf1", "score": "0.5185299", "text": "public static boolean IS_VALID(int code)\n\t\t{\n\t\t\treturn (code>=0) && ((code&RawMaterial.RESOURCE_MASK) < c().total());\n\t\t}", "title": "" }, { "docid": "e62c02d9634a4b122f56fec9f6e51fca", "score": "0.5179686", "text": "public final boolean validate(byte[] secret, String code) {\n\t\treturn validate(secret, code, System.currentTimeMillis());\n\t}", "title": "" }, { "docid": "b65445cb21fff9bac9d023b48f0e14a2", "score": "0.51781374", "text": "private void CheckParams() throws IllegalArgumentException {\n\t\tif ((!pattern.matcher(_APIKey).matches()) && (!_APIKey.equals(\"demo\"))) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid API key.\");\n\t\t}\n\t\telse if (!pattern2.matcher(_Package).matches()) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid package name.\");\n\t\t}\n\t}", "title": "" }, { "docid": "7851c4abb3d6c69c43dac02a20719d42", "score": "0.51719815", "text": "boolean hasAesKey();", "title": "" }, { "docid": "beb1466c5c0b48f3b6146d98fc200881", "score": "0.51591825", "text": "public boolean isKey(String key) {\n StringBuilder fieldKey = new StringBuilder();\n fieldKey.append(\"00\");\n fieldKey.append(DataLowLevelUtils.PadLeftZeros(String.valueOf(this.getRow1Based()), 2));\n fieldKey.append(DataLowLevelUtils.PadLeftZeros(String.valueOf(this.getCol1Based()), 3));\n\t\treturn fieldKey.toString().equals(key);\n\t}", "title": "" }, { "docid": "a53e5354c3b83f32bc05751213bc7e16", "score": "0.515388", "text": "private static boolean isValidKey(@NonNull String key, @NonNull String prefix) {\n return key.startsWith(prefix) && key.length() > prefix.length();\n }", "title": "" }, { "docid": "6f8294b4fc340f5430d546813da2b812", "score": "0.5149602", "text": "public boolean containsCertificateAndKey(int index);", "title": "" }, { "docid": "c491e547961799ea25e4c64738cd51da", "score": "0.51441306", "text": "boolean hasDriverLicense();", "title": "" }, { "docid": "bcc80185482bbdda004d54491f819bc5", "score": "0.51285493", "text": "@SuppressWarnings(\"unused\")\n public boolean isValid() {\n return cardNumberValid && cardExpiryValid && cardCvcValid;\n }", "title": "" }, { "docid": "9c2c96ee315a6d1bccbbd490d11578d5", "score": "0.51191694", "text": "protected void checkKey(K k) {\r\n\t\tif (k == null) \r\n\t\t\tthrow new InvalidKeyException(\"Invalid key: null.\");\r\n\t\t}", "title": "" }, { "docid": "14ae4c87567d95a1cefaa6a391826278", "score": "0.50990176", "text": "private void validateKeyExists(TKey key) {\n if (!this.has(key)) {\n String errorMessage = \"The key: \" + key + \" is not defined in the cache.\";\n\n this.log.error(errorMessage);\n throw new CacheException(errorMessage);\n }\n }", "title": "" }, { "docid": "d556616e402df511b14ae58939baf9d0", "score": "0.5098394", "text": "boolean hasPkixPublicKey();", "title": "" }, { "docid": "751d9582b9aff93115b5de308e497358", "score": "0.50893205", "text": "public static boolean valid(final IdNumber idNumber) {\n PersonalPublicServiceNumber ppsn = forId(idNumber.getIdToken());\n Matcher format = IDNUMBER_PATTERN.matcher(ppsn.getIdToken());\n return format.matches()\n && ppsn.hasValidControl(format);\n }", "title": "" }, { "docid": "bef74d2b4bfa66717a82d5e7939e4d01", "score": "0.5073077", "text": "public static void verify(String key, String student) {\n System.out.println(\"Student : \" + student);\n System.out.println(\"Key : \" + key);\n if (student.equals(key)) {\n System.out.println(\"Implementation is correct!\");\n } else {\n System.out.println(\"Test failed.\");\n }\n }", "title": "" }, { "docid": "8694789fb26b23eb00b84691b714108b", "score": "0.5069068", "text": "void checkValid();", "title": "" }, { "docid": "368134647f34b2676c9663cbb7fbb54b", "score": "0.5065769", "text": "public abstract boolean validateCourseNumber(String courseNumber);", "title": "" }, { "docid": "8e0379d33139aa22dace8eadba07a0f6", "score": "0.5056476", "text": "private boolean isKeyUsageNonRepudiationCritical(\n java.security.cert.X509Certificate javaCert) {\n\n boolean isNonRepudiationPresent = false;\n boolean isKeyUsageCritical = false;\n\n String err = \"\";\n Set<String> oids = javaCert.getCriticalExtensionOIDs();\n if (oids != null) {\n // check presence between critical extensions of oid:2.5.29.15\n // (KeyUsage)\n isKeyUsageCritical = oids.contains(X509Extensions.KeyUsage.getId());\n }\n else\n\t\t\terr = \"Key usage is NOT marked critical\"+\"\\r\";\n\n boolean[] keyUsages = javaCert.getKeyUsage();\n if (keyUsages != null) {\n //check non repudiation (index 1)\n /*\n * now check the elements on KeyUsage, only nonRepudiation should be there\n * nothing else is allowed, see (only Italian available):\n * Deliberazione CNIPA del 17 febbraio 2005 n 4\n * Articolo 4 - Profilo dei certificati qualificati\n * comma 5, punto a\n * \n */\n \t//keyusage\n isNonRepudiationPresent = (keyUsages[1] & //nonRepudiation\n \t\t!(\n \t\tkeyUsages[0] | // digitalSignature (0),\n \t\tkeyUsages[2] | // keyEncipherment (2),\n \t\tkeyUsages[3] | // dataEncipherment (3),\n \t\tkeyUsages[4] | // keyAgreement (4),\n \t\tkeyUsages[5] | // keyCertSign (5),\n \t\tkeyUsages[6] | // cRLSign (6),\n \t\tkeyUsages[7] | // encipherOnly (7),\n \t\tkeyUsages[8] // decipherOnly (8) }\n \t\t));\n }\n if(!isNonRepudiationPresent)\n \terr = err +\"missing nonRepudiation\"; \n \tm_xQc.getCertificateDisplayObj().setCertificateExtensionCommentString(X509Extensions.KeyUsage.getId(), err);\n return (isKeyUsageCritical && isNonRepudiationPresent);\n }", "title": "" }, { "docid": "b8538e88cef99d31c1d890ac23a932aa", "score": "0.50541544", "text": "boolean requireKeyInfo();", "title": "" }, { "docid": "947be6b0be151c9a8ad0a86e957fe51f", "score": "0.50252324", "text": "public boolean isValid() {\n return tokens.containsKey(\"v\") && tokens.get(\"v\").equalsIgnoreCase(\"STSv1\") && tokens.containsKey(\"id\") && tokens.get(\"id\").length() > 0;\n }", "title": "" }, { "docid": "d15631c817dd99ac2542dbd226a28416", "score": "0.50201035", "text": "boolean hasKey(String key);", "title": "" }, { "docid": "25519803fd41471d232ecf2ca1181daa", "score": "0.50004417", "text": "private boolean validateSignature(Signature signature) throws Exception {\n\n boolean isSignatureValid = false;\n\n try {\n SignatureValidator.validate(signature, getPublicX509CredentialImpl());\n isSignatureValid = true;\n } catch (SignatureException e) {\n log.warn(\"Signature validation failed for the public X509 credential: \" + getPublicX509CredentialImpl(), e);\n } catch (Exception e) {\n throw new Exception(\"Error in getting public X509Credentials to validate signature.\", e);\n }\n return isSignatureValid;\n }", "title": "" }, { "docid": "d975cd6075a621420dad23ce4155a00a", "score": "0.5000432", "text": "public boolean isKochLineValid(){\n\t\treturn getLineA().isValid() && getLineB().isValid() && getLineC().isValid() && getLineD().isValid();\n\t\t\t\n\t\t}", "title": "" }, { "docid": "cb2f5335dc2a5b22146199e1466813a5", "score": "0.49926472", "text": "public boolean isValidKeySize(int bytes);", "title": "" }, { "docid": "9e3724bb5995f3e25e88844c81bb0701", "score": "0.4984814", "text": "boolean hasPublicKey();", "title": "" }, { "docid": "724713a714b995bd8cf5f6563df39dfd", "score": "0.49686727", "text": "public static boolean valid(String version) {\n\t\ttry {\n\t\t\tVersion.fromString(version);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "295b2caa348fdcb921160e632ce3b75a", "score": "0.49651268", "text": "public String validate(String secretkey) throws SMSSendException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "436e6424de13646ce85498abb9a7bffb", "score": "0.4964825", "text": "private boolean checkValidity(final Map<String, String> components) {\n\t\tfor (String requiredField : requiredFields) {\n\t\t\tif(!components.keySet().contains(requiredField)){\n\t return false;\n\t }\n\t\t}\n\t\t\n\t\tif(!checkBirthYear(components.get(\"byr\"))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!checkIssueYear(components.get(\"iyr\"))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!checkExpirationYear(components.get(\"eyr\"))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!checkHeight(components.get(\"hgt\"))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!checkHairColor(components.get(\"hcl\"))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!checkEyeColor(components.get(\"ecl\"))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!checkPassportID(components.get(\"pid\"))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "61f8e0f904d746395abe79849620d7db", "score": "0.49643305", "text": "@Test\r\n\tpublic void cardInvalid() {\r\n\t\ttry {\r\n\t\t\tString yearMonth = \"2021-02\";\r\n\t\t\tCardValidation.creditcardValidyear(yearMonth);\r\n\t\t\tfail();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tassertEquals(MessageConstants.CARD_EXPIRED, e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "57bbad08b7c613ed2d20e3d7eb3740be", "score": "0.49637407", "text": "public static boolean isValid(String stamp) throws NoSuchAlgorithmException, DigestException {\r\n\t\treturn validate(Integer.parseInt(stamp.split(\":\")[1]), stamp);\r\n\t}", "title": "" }, { "docid": "25409a424c4d3d2c58f5d5bb330a0c79", "score": "0.49485466", "text": "@Override\n public boolean checkAESKey(AesKey aesKey) {\n lock.lock();\n try {\n // If no keys then cannot decrypt.\n if (hashToKeys.isEmpty()) return false;\n checkState(keyCrypter != null, () ->\n \"key chain is not encrypted\");\n\n // Find the first encrypted key in the wallet.\n ECKey first = null;\n for (ECKey key : hashToKeys.values()) {\n if (key.isEncrypted()) {\n first = key;\n break;\n }\n }\n checkState(first != null, () ->\n \"no encrypted keys in the wallet\");\n\n try {\n ECKey rebornKey = first.decrypt(aesKey);\n return Arrays.equals(first.getPubKey(), rebornKey.getPubKey());\n } catch (KeyCrypterException e) {\n // The AES key supplied is incorrect.\n return false;\n }\n } finally {\n lock.unlock();\n }\n }", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "584e5974b37ff0392cc4ee9fe2b57431", "score": "0.49432635", "text": "boolean isValid();", "title": "" }, { "docid": "4e6b5cb7d25cc4e793fcdaa88cacca36", "score": "0.4941952", "text": "boolean hasRsaKey();", "title": "" }, { "docid": "31340ec8293a8ccd3ebe7a77ee84789d", "score": "0.49417245", "text": "public native boolean isValid();", "title": "" }, { "docid": "773943859a596923a5a5c8a68b303c13", "score": "0.49347234", "text": "public void checkIfDriverIdIsUnique(Long licenseId) throws IncorrectDataException {\r\n List<Long> ids = entityManager.createQuery(\"SELECT d.license FROM Drivers d\").getResultList();\r\n if (ids.contains(licenseId)) {\r\n throw new IncorrectDataException(\"Driver with this license is already exists.\");\r\n }\r\n }", "title": "" }, { "docid": "83b4d5c00d33a4af5db235b2f6ba7a77", "score": "0.4934314", "text": "public boolean isValid() {\n \treturn acknowledge.isValid() && active.isValid() && ready.isValid() && resultSig.isValid();\n }", "title": "" }, { "docid": "9fe9bb2ae8e5c11fddcbeb6d116167a6", "score": "0.4927334", "text": "public static void testCheckIfValid(){\n BankingSystemProxy bsp = new BankingSystemProxy();\n bsp.verify(\"2343 4234 8493 8393\", \"12/20\");\n boolean actual = bsp.checkIfValid();\n assertEquals(\"Payment is valid!\", true, actual);\n }", "title": "" }, { "docid": "0c48c373c1f20caae9a5ba87d303fb9b", "score": "0.49151406", "text": "public boolean setHdcp14Key(String key) {\n boolean ret = false;\n ret = setKeys(key, HDCP_14_FILEPATH, HDCP_14_RX_LEN);\n return ret;\n }", "title": "" }, { "docid": "6ed03352a8a096fb8d456565f7a28d10", "score": "0.4911845", "text": "public boolean isValid();", "title": "" }, { "docid": "6ed03352a8a096fb8d456565f7a28d10", "score": "0.4911845", "text": "public boolean isValid();", "title": "" }, { "docid": "6ed03352a8a096fb8d456565f7a28d10", "score": "0.4911845", "text": "public boolean isValid();", "title": "" }, { "docid": "6ed03352a8a096fb8d456565f7a28d10", "score": "0.4911845", "text": "public boolean isValid();", "title": "" }, { "docid": "6ed03352a8a096fb8d456565f7a28d10", "score": "0.4911845", "text": "public boolean isValid();", "title": "" }, { "docid": "6ed03352a8a096fb8d456565f7a28d10", "score": "0.4911845", "text": "public boolean isValid();", "title": "" }, { "docid": "6ed03352a8a096fb8d456565f7a28d10", "score": "0.4911845", "text": "public boolean isValid();", "title": "" }, { "docid": "6ed03352a8a096fb8d456565f7a28d10", "score": "0.4911845", "text": "public boolean isValid();", "title": "" }, { "docid": "9350a4dc58d16a05e532a0cd0255edd1", "score": "0.49096343", "text": "protected boolean valid()\n\t\t{\n\t\t\tfinal String version = signalProps.getProperty(\"TWU.properties.version\");\n\t\t\treturn textRead && version != null && (version.equals(\"0.7\") || version.equals(\"0.8\"));\n\t\t}", "title": "" }, { "docid": "7a7d09c4a5e17c7d3541df20662017cd", "score": "0.49057192", "text": "public boolean keyExpired(String key)\n {\n JSONObject timeofexpiry = (JSONObject)jObject.get(key);\n long expirytime = (Long)timeofexpiry.get(\"expirytime\");\n\n Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone(\"UTC\"));\n long currenttime = calendar.getTimeInMillis();\n return currenttime > expirytime && expirytime > 0;\n }", "title": "" }, { "docid": "36dcf8ea47106c3a104ed5450a01a869", "score": "0.49002686", "text": "public boolean isValidKeyPair(DSAKeyContents contents) {\r\n\t\tfinal DSASigner signer = new DSASigner();\r\n\t\tfinal DSAParameters params = new DSAParameters(contents.p, contents.q, contents.g);\r\n\r\n\t\tsigner.init(true, new DSAPrivateKeyParameters(contents.x, params));\r\n\t\tfinal BigInteger[] sig = signer.generateSignature(VALIDATE_SIGN_BYTES);\r\n\t\tsigner.init(false, new DSAPublicKeyParameters(contents.y, params));\r\n\t\treturn signer.verifySignature(VALIDATE_SIGN_BYTES, sig[0], sig[1]);\r\n\t}", "title": "" }, { "docid": "a002d6aab59ba9ec148be92cdfbb225a", "score": "0.48960868", "text": "@Test\r\n\tpublic void isKeyAvailable() {\r\n\t\t\r\n\t\tgiven().params(\"zip\", \"94040,us\", \"appid\", \"651587654bcd0392c12915b211ad8efa\").when().\r\n\t\tget(\"/data/2.5/weather\").\r\n\t\tthen().\r\n\t\t\tassertThat().\r\n\t\t\tbody(\"$\", hasKey(\"name\")).\r\n\t\t\tbody(\"$\", not(hasKey(\"IamInvisible\")));\r\n\r\n\t}", "title": "" } ]
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "3e6c5e87d9439d91581b24c4cd5df241", "score": "0.0", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_keyboard, container, false);\n Button zero = (Button) view.findViewById(R.id.number0button);\n zero.setOnClickListener(this);\n Button one = (Button) view.findViewById(R.id.number1button);\n one.setOnClickListener(this);\n Button two = (Button) view.findViewById(R.id.number2button);\n two.setOnClickListener(this);\n Button three = (Button) view.findViewById(R.id.number3button);\n three.setOnClickListener(this);\n Button four = (Button) view.findViewById(R.id.number4button);\n four.setOnClickListener(this);\n Button five = (Button) view.findViewById(R.id.number5button);\n five.setOnClickListener(this);\n Button six = (Button) view.findViewById(R.id.number6button);\n six.setOnClickListener(this);\n Button seven = (Button) view.findViewById(R.id.number7button);\n seven.setOnClickListener(this);\n Button eight = (Button) view.findViewById(R.id.number8button);\n eight.setOnClickListener(this);\n Button nine = (Button) view.findViewById(R.id.number9button);\n nine.setOnClickListener(this);\n\n return view;\n\n }", "title": "" } ]
[ { "docid": "8bb7e3993bde01b4555bbb3cffff8569", "score": "0.7403527", "text": "protected void onInflateView() {\n }", "title": "" }, { "docid": "afe95b32eaf36044ffac0c621528e0ae", "score": "0.68513155", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (layout == null) {\n mInflater = inflater;\n initUI(inflater);\n initData();\n }\n return layout;\n }", "title": "" }, { "docid": "127add89665db125cd7af36b6be5c3c8", "score": "0.68434507", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_ieee_resources, container, false);\n }", "title": "" }, { "docid": "b6b6e3f181c3358a2ee7923ac556f327", "score": "0.6787828", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_box_data, container, false);\n }", "title": "" }, { "docid": "e0628e0c6d2ea3397ec01f592c7baad8", "score": "0.6782152", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\r\n return inflater.inflate(getLayoutResourceId(), container, false);\r\n }", "title": "" }, { "docid": "21f5053530660c520ad889572f440ae5", "score": "0.6748678", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_export_data, container, false);\n }", "title": "" }, { "docid": "cf6fb3e1382450e756515d54b7031a54", "score": "0.674607", "text": "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tView v = inflater.inflate(R.layout.zhuti_layout, null);\r\n\t\tinitUI(v);\r\n\t\tinitData();\r\n\r\n\t\treturn v;\r\n\t}", "title": "" }, { "docid": "c3ba7613c06fd7c1703e7d5721ed651e", "score": "0.673699", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.content_baglog, parent, false);\n }", "title": "" }, { "docid": "a8c201c266aaf3d3a390fe6573c114cd", "score": "0.6730019", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_keruh_, container, false);\n }", "title": "" }, { "docid": "0efc9f36e3881fe8077328641e1c4f2e", "score": "0.67246306", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_tui_j_ian, container, false);\n initView(view);\n initData();\n return view;\n }", "title": "" }, { "docid": "f2fed7b88509f3133cd6dfc99c48336a", "score": "0.67188275", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View rootView = inflater.inflate(R.layout.fragment_detail_yocto_buzzer, container, false);\n setupUI(rootView);\n return rootView;\n }", "title": "" }, { "docid": "d537f535335bdbf0e41b408c9695b3ca", "score": "0.6705384", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup root) {\n\t\tViewGroup container = (ViewGroup) inflater.inflate(R.layout.live_fragment_shift, root, false);\n\t\tstart_time = (TextView) container.findViewById(R.id.shift_start_time);\n\t\tend_time = (TextView) container.findViewById(R.id.shift_end_time);\n\t\tcurrent_event = (TextView) container.findViewById(R.id.current_event);\n\t\tcurrent_position = (TextView) container.findViewById(R.id.current_position);\n\t\tseekBar = (SeekBar) container.findViewById(R.id.shift_progress);\n\t\t\n\t\tprogress_margin_left = 150;\n\t\tprogress_width = 1620;\n\t\treturn container;\n\t}", "title": "" }, { "docid": "52f3fce52bfc88d9ade267867c7df12b", "score": "0.6692892", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.retrofit_frag, container, false);\n ButterKnife.bind(this, mView);\n configureLayout();\n return mView;\n }", "title": "" }, { "docid": "e03dee979db16f4426534f17fcb7e9f1", "score": "0.66806966", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_band_list, container, false);\n }", "title": "" }, { "docid": "bdb48478dc78fc52d78cbc009fb77aaa", "score": "0.66778076", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.frg_home, container, false);\n\n initButtons(v);\n initData(v);\n return v;\n }", "title": "" }, { "docid": "f5959e7a0ee4abe7e410ae8e5b46f3dc", "score": "0.66748124", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "title": "" }, { "docid": "f9ecfe85876b15c37b44b7e8c84392e3", "score": "0.6647961", "text": "@Override\n\tpublic View initialization(LayoutInflater layoutInflator) {\n\t\tView view = layoutInflator.inflate(R.layout.registration_frag, null);\n\t\tuserImage = (ImageView) view.findViewById(R.id.register_user_image);\n\t\tfirstName = (EditText) view.findViewById(R.id.register_first_name);\n\t\tlastName = (EditText) view.findViewById(R.id.register_last_name);\n\t\temail = (EditText) view.findViewById(R.id.register_email);\n\t\tconfirmEmail = (EditText) view\n\t\t\t\t.findViewById(R.id.register_email_confirm);\n\t\tpassword = (CustomEditText) view.findViewById(R.id.register_password);\n\t\tconfirmPassword = (CustomEditText) view\n\t\t\t\t.findViewById(R.id.register_password_confirm);\n\t\tcategory = (Spinner) view.findViewById(R.id.register_category);\n\t\tsubcategory = (Spinner) view.findViewById(R.id.register_sub_category);\n\n\t\tsubmit = (Button) view.findViewById(R.id.register_submit);\n\t\t/*\n\t\t * category.setAdapter(adapter); subcategory.setAdapter(adapter);\n\t\t */submit.setOnClickListener(this);\n\t\tuserImage.setOnClickListener(this);\n\t\tmpreferences = Sharedprefrences.getInstance(getActivity());\n\n\t\t/*\n\t\t * WebServiceAsync.getInstance(getActivity(), this).get(\n\t\t * Constants.REGISTRATION_SUB_CATEGORIES_URL,\n\t\t * Constants.REGISTRATION_SUB_CATEGORIES_RESPONSEID, null, null);\n\t\t */\n\t\treturn view;\n\t}", "title": "" }, { "docid": "6fa7dcd00e0873d3a354c9e03a494380", "score": "0.66475254", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed1,null);\n\n ButterKnife.inject(this, rootView);\n\n mSwipeLayout.setOnRefreshListener(this);\n mSwipeLayout.setColorSchemeColors(\n android.R.color.holo_blue_bright,\n android.R.color.holo_green_light,\n android.R.color.holo_orange_light,\n android.R.color.holo_red_light);\n\n getLoaderManager().initLoader(0, null, this);\n\n loadFirst();\n return rootView;\n }", "title": "" }, { "docid": "4bd5c5ab159fd60dabbd3eb9370e4925", "score": "0.6646415", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment3, container, false);\n }", "title": "" }, { "docid": "295b548b1b1fea91209037a917b73c90", "score": "0.6644435", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_statistics_myvote, container, false); //자동]은 하지 말아야 함\n }", "title": "" }, { "docid": "35a8df1910025c6415022062bb73c649", "score": "0.6638523", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_collection_reading, container, false);\n }", "title": "" }, { "docid": "b0b472a4bd673db8c7c91bb24dbfe86c", "score": "0.6638236", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_net_audio, container, false);\n initData();\n initView(view);\n return view;\n }", "title": "" }, { "docid": "b12dec65086db9fdf5d2b95a5e6bad6d", "score": "0.66362125", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fr__quan_ly_phong_ban, container, false);\n fireBaseManage = new FireBaseManage();\n setControl();\n loadData();\n setEvent();\n return view;\n }", "title": "" }, { "docid": "bf1b4ef2a8655232abc60b39ee46536e", "score": "0.6633862", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_mei_zhi, container, false);\n initView(mView);\n initAdapter(mList);\n return mView;\n }", "title": "" }, { "docid": "9364728b3499d3b3458b1d73e7f0621b", "score": "0.6633031", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_linkman, container, false);\n initView(inflate);\n initData();\n initAdapter();\n return inflate;\n }", "title": "" }, { "docid": "70db82c9067b2e3ad0d5873b5bc6fbd0", "score": "0.6619655", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_temp, container, false);\n initUI(rootView);\n return rootView;\n }", "title": "" }, { "docid": "6d6396e4d4cf6005645ee43fa7156182", "score": "0.66161823", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_friend_home, container, false);\n\n return v;\n }", "title": "" }, { "docid": "325bd6e5c3da3643129e9e25e5f62ff7", "score": "0.6615241", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_member, container, false);\n initView();\n initData();\n return inflate;\n }", "title": "" }, { "docid": "32d756b896a4d4a0887b2bf063befa09", "score": "0.66082096", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_calender_and_task, container, false);\n getsaveData();\n initView(view);\n return view;\n }", "title": "" }, { "docid": "bed86ceee1664d4613cff4730520d15b", "score": "0.660347", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_my_spots, container, false);\n setUpLayout(v);\n return v;\n }", "title": "" }, { "docid": "b1410a4083ed7ca025e7b8dd838361de", "score": "0.66013795", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inf, ViewGroup parent,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inf.inflate(R.layout.fragment_tweets_list, parent, false);\n\t}", "title": "" }, { "docid": "7f715a6d731a1a99c51a9b749d757bd7", "score": "0.65985966", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.tap_fragment_main_room_list, container, false);\n }", "title": "" }, { "docid": "9deddbfd07c0087d9a5685a4b8832adf", "score": "0.6594491", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_profile, container, false);\n ids();\n setup();\n// setFont();\n\n return view;\n }", "title": "" }, { "docid": "bba2daa5869af02c245fd23f20ae5152", "score": "0.6589726", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_take_student_attendance, container, false);\n }", "title": "" }, { "docid": "d570b14c0c32f3e5d724a9f1707aaa44", "score": "0.6589357", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_member, container, false);\n initControl();\n initData();\n return view;\n }", "title": "" }, { "docid": "bb5d0b39968153ac1d6e3d79fb3a9c2c", "score": "0.6586119", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_detail_pinjam, container, false);\n }", "title": "" }, { "docid": "d8e68358f406a4098d66bf6877734c22", "score": "0.6580898", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_movie_info, container, false);\n }", "title": "" }, { "docid": "6ee186af32fc0c9ef1a04eb33fab8b9b", "score": "0.6572354", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_lucky_spin, container, false);\n }", "title": "" }, { "docid": "b11edbfcf9434429467ec2af9e2a8da1", "score": "0.65717185", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.bw_account_detail_summary, container, false);\n }", "title": "" }, { "docid": "86bdc8641f82a51caa02333bb08b5bff", "score": "0.6570883", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_india_stat, container, false);\n }", "title": "" }, { "docid": "ac61e2357fd341db8e706ddd86d88e94", "score": "0.6567494", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_grid_recycler, container, false);\n }", "title": "" }, { "docid": "98d8fa4a16ea76cc94255489a02d5c01", "score": "0.6564973", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n return inflater.inflate(R.layout.fragment_station, container, false);\n }", "title": "" }, { "docid": "0136c8805f02040432be1fb05068530a", "score": "0.65637946", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jingpaixuzhi, container, false);\n }", "title": "" }, { "docid": "a616be5cce6ac045779bb53bac6943a3", "score": "0.6561621", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_draw, container, false);\n }", "title": "" }, { "docid": "3b790601f8e5eda3cb67a5b3e6654bdb", "score": "0.65597475", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_fragemt_4, container, false);\n }", "title": "" }, { "docid": "bdbfd07049f564c36e7bfc64ae9446ba", "score": "0.6559329", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friends, container, false);\n }", "title": "" }, { "docid": "bdbfd07049f564c36e7bfc64ae9446ba", "score": "0.6559329", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friends, container, false);\n }", "title": "" }, { "docid": "5bdefbf79bb22ba71bbe8a97019d5e95", "score": "0.6558683", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_lifestyle_data, container, false);\n }", "title": "" }, { "docid": "5c96d335012d1f8ebcff97dab69b028b", "score": "0.6558026", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_crop_monitoring_tehsil_ndvi_julian, container, false);\n }", "title": "" }, { "docid": "96316f17c0b1a85a9a5669aa280b18d2", "score": "0.6549408", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_my_events, container, false);\n ((HomeActivity)getActivity()).changeActionbar(30);\n responseEvents=new ArrayList<Integer>();\n myEvents=new ArrayList<EventFields>();\n empty=(LinearLayout) view.findViewById(R.id.empty);\n listView=(ListView)view.findViewById(R.id.myList);\n spinner=(ProgressBar)view.findViewById(R.id.progressBar);\n spinner.setVisibility(View.VISIBLE);\n registerPresenter=new RegisterPresenterImpl(this);\n return view;\n }", "title": "" }, { "docid": "30e3648fddeb6c372cb35fc0c03d9d78", "score": "0.65488505", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.market_fragment_classify_right, container, false);\n\n initView(view);\n initData();\n setData();\n setListener();\n return view;\n }", "title": "" }, { "docid": "542fdaf0af3a7e08c20089b1ff2f8791", "score": "0.65488464", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n rootView=inflater.inflate(R.layout.fragment_account, container, false);\n initView();\n initlistener();\n initData();\n return rootView;\n }", "title": "" }, { "docid": "8d949e4615410ee9bc780745f73215a5", "score": "0.65437543", "text": "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "title": "" }, { "docid": "8d949e4615410ee9bc780745f73215a5", "score": "0.65437543", "text": "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "title": "" }, { "docid": "f84b67d90a5af2c9c8c90b00689e9e1c", "score": "0.6543163", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_records, container, false);\n }", "title": "" }, { "docid": "85490dd11cfec440c98b87e794570037", "score": "0.6534616", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_calculation, container, false);\n }", "title": "" }, { "docid": "1b2daf8a97d82f79d15d4bf2073799c5", "score": "0.6532257", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\n\t\tmain = inflater.inflate(R.layout.gcm_fragment, null);\n\t\tfindViews();\n\t\treturn main;\n\t}", "title": "" }, { "docid": "b507d8787f7371a3db67b53346109a56", "score": "0.6532145", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_ask, container, false);\n }", "title": "" }, { "docid": "9f39cebf83203e6192db8c720a71a638", "score": "0.65267545", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_upload_to_commons, container, false);\n }", "title": "" }, { "docid": "549a8b87bff6a17f68d63a0d5a7aea12", "score": "0.65266675", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_sel_nums_ssc_normal, container, false);\n initSubViews(view);\n return view;\n }", "title": "" }, { "docid": "328f0ddeb12db25807aa97260254912c", "score": "0.65260124", "text": "@Nullable\r\n @Override\r\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_schedule,container,false);\r\n areaImage = v.findViewById(R.id.venue_picture);\r\n ButterKnife.bind(this,v);\r\n areaImage.setBackgroundResource(R.drawable.pool);\r\n initContent();\r\n gridView = (GridView) v.findViewById(R.id.information);\r\n scheduleAdapter = new ScheduleAdapter(getContext(), content, 5 ,7);\r\n gridView.setAdapter(scheduleAdapter);\r\n return v;\r\n }", "title": "" }, { "docid": "c2f7eb285c252dc6367ff384d2377ba2", "score": "0.65244323", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.promo_frag_layout, container, false);\n\n }", "title": "" }, { "docid": "6db68fe2f2fe8b62b39e9769b16aa86e", "score": "0.6523824", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_grid_image, container, false);\n }", "title": "" }, { "docid": "a11adfbd62956c04e3dd8bcb0ecab873", "score": "0.6519164", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_schedule_match, container, false);\n ButterKnife.inject(this, view);\n requestQueue = Volley.newRequestQueue(getActivity());\n parseJsonData();\n showProgress();\n return view;\n }", "title": "" }, { "docid": "ea658b5586bfe19fc4439d1e32ea5941", "score": "0.6518742", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_serial_tvfragment, container, false);\n }", "title": "" }, { "docid": "2bbe48179803bd4e540945c9557e3a53", "score": "0.65163267", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_book_appointment, container, false);\n return v;\n }", "title": "" }, { "docid": "c171d4963bac55692eca7b55282ce128", "score": "0.6513969", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_forecast, container, false);\n }", "title": "" }, { "docid": "dca91606e2a6adf3350111b530d3f78a", "score": "0.6511071", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View theView = inflater.inflate(R.layout.fragment_view, container, false);\n iv_left = (ImageView)theView.findViewById(R.id.iv_left);\n iv_right = (ImageView)theView.findViewById(R.id.iv_right);\n tv_item = (TextView) theView.findViewById(R.id.tv_item);\n tv_title = (TextView) theView.findViewById(R.id.tv_title);\n frag_viewPager = (ViewPager) theView.findViewById(R.id.frag_viewpager);\n bl = (LinearLayout) theView.findViewById(R.id.bottom_container);\n et_edit = (EditText) theView.findViewById(R.id.et_editText);\n\n return theView;\n }", "title": "" }, { "docid": "9236934b27b91fccffc551f255232dcc", "score": "0.6507001", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info_batik_jakarta1, container, false);\n\n\n\n }", "title": "" }, { "docid": "9b5608ab6361e5de9d23a45d3c4e0526", "score": "0.6506419", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fragment_weather, container, false);\n initview();\n initlistioner();\n return view;\n }", "title": "" }, { "docid": "3fce5d210f66d7616fd94c0ded8c6954", "score": "0.6504637", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\n\t\t\n\t\treturn inflater.inflate(R.layout.task_fragment, container, false);\n\t}", "title": "" }, { "docid": "ccea375e95fff9ae46400e7ba47bd1a1", "score": "0.6502465", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_yi_jie, container, false);\n unbinder = ButterKnife.bind(this, view);\n initData();\n return view;\n }", "title": "" }, { "docid": "a14cbb65472d8f8a2c7ca886279c8711", "score": "0.6501361", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_myquizes, container, false);\n }", "title": "" }, { "docid": "92cb1f2b5a89a3d5dc25b945acf73f1a", "score": "0.64978355", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rating_dialog, container, false);\n }", "title": "" }, { "docid": "64388c42be1770b658618b898e9db333", "score": "0.6497474", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_detailed_profile, container, false);\n\n strid = dataProcessor.getStr(\"id\");\n strname = dataProcessor.getStr(\"name\");\n stremail = dataProcessor.getStr(\"email\");\n strdob = dataProcessor.getStr(\"dob\");\n strheightfoot = dataProcessor.getStr(\"heightfoot\");\n strheightinch = dataProcessor.getStr(\"heightinch\");\n strweight = dataProcessor.getStr(\"weight\");\n\n name = v.findViewById(R.id.tv_dt_name);\n email = v.findViewById(R.id.tv_dt_email);\n bday = v.findViewById(R.id.tv_dt_bday);\n height = v.findViewById(R.id.tv_dt_height);\n weight = v.findViewById(R.id.tv_dt_weight);\n\n name.setText(strname);\n email.setText(stremail);\n bday.setText(strdob);\n height.setText(strheightfoot + \"'\" + strheightinch + \"''\");\n weight.setText(strweight + \"Kg\");\n\n return v;\n }", "title": "" }, { "docid": "7652b2f10138bf5cbdd020f5d0c3702d", "score": "0.6497219", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_my_fitness, container, false);\n\n }", "title": "" }, { "docid": "6559bda17e328e859e3d2a6acdc14eb8", "score": "0.6495454", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_loan, container, false);\n }", "title": "" }, { "docid": "2a2aeea7ccefe854502e9f369d4e6bb8", "score": "0.6493262", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_book_list, container, false);\n setReferences(v);\n setCityPref();\n return v;\n\n }", "title": "" }, { "docid": "b75fe87f5ab26291dbc8a130640f1c6c", "score": "0.6491724", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n root = inflater.inflate(R.layout.fragment_events, container, false);\n LinearLayout linearLayout = root.findViewById(R.id.events_content_ll);\n try {\n displayReviews(linearLayout, getContext());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return root;\n }", "title": "" }, { "docid": "368f5f05e455dbde7b3864c16823ff1f", "score": "0.6490953", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_fragment_list4, container, false);\n }", "title": "" }, { "docid": "6539dcbb316a1320656964fa9d8cfaae", "score": "0.64866984", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n myFragmentView = inflater.inflate(R.layout.fragment_event, container, false);\n eventActivity = (EventActivity)this.getActivity();\n event_json = eventActivity.getEvent();\n progressBar2 = (LinearLayout)myFragmentView.findViewById(R.id.progress_bar2);\n render(myFragmentView);\n return myFragmentView;\n }", "title": "" }, { "docid": "40b8d8781b3b420968ef7621d4e29f4e", "score": "0.64848065", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_completed__booking__tab, container, false);\n }", "title": "" }, { "docid": "9cc97d4ee04ed452761b4a2c378520ad", "score": "0.6484753", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_register_final, container, false);\n\n // Capture the view objects from the inflated layout.\n mParentLayout = view.findViewById(R.id.constraintLayout_final_register);\n mEmailLayout = view.findViewById(R.id.inputLayout_email_address);\n mPasswordLayout = view.findViewById(R.id.inputLayout_password);\n mEditEmailView = view.findViewById(R.id.editText_email_address);\n mEditPasswordView = view.findViewById(R.id.editText_password);\n mProgressBar = view.findViewById(R.id.progressBar);\n mSendEmailButton = view.findViewById(R.id.button_send_email);\n mDoneButton = view.findViewById(R.id.button_done);\n mAgreeCheckBox = view.findViewById(R.id.checkBox_agree);\n\n return view;\n }", "title": "" }, { "docid": "fba7984689a6ce5df51d95c53189fb51", "score": "0.6483083", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "title": "" }, { "docid": "add33459911d3f9e3254dbf3a89e5cfd", "score": "0.64825314", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n token = sp.getString(ShapePreferenceManager.TOKEN,null);\n mView = inflater.inflate(R.layout.fragment_school, container, false);\n initWight();\n initData();\n SchoolFindAsyn findAsyn = new SchoolFindAsyn();\n findAsyn.execute();\n return mView;\n }", "title": "" }, { "docid": "00b67352c9f96710c8c7aa5d268855d2", "score": "0.6482444", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView rootView = inflater.inflate(R.layout.profile_completness, container, false);\n\n\t\t init(rootView);\n\n\t\t getPanelistId();\n\t\t parseResult();\n\t\t return rootView;\n\t}", "title": "" }, { "docid": "c252e638f5e6302828e91b398dbdf542", "score": "0.6480076", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutContent(), container, false);\n refreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.frag_collect_refresh);\n refreshLayout.setOnRefreshListener(this);\n return view;\n }", "title": "" }, { "docid": "c30fff36010492be09308dd6aed5d6cc", "score": "0.6477452", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fridge_fragment_layout, container, false);\n }", "title": "" }, { "docid": "f3541e5f197a96ea2e8f4858eb2228c8", "score": "0.64772475", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_htblood_suger_report, container, false);\n }", "title": "" }, { "docid": "d0a83b47efe78f1506a48a1cc2d7727b", "score": "0.647678", "text": "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_sel_nums_input,container,false);\n initSubViews(view);\n return view;\n }", "title": "" }, { "docid": "e141bdbe528dfb1fa05f850edaf41524", "score": "0.6475557", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sample_anfibios, container, false);\n }", "title": "" }, { "docid": "be1598d7865926d4c3e3af43830142a3", "score": "0.64748853", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_create_pin, container, false);\n\n }", "title": "" }, { "docid": "d34e4253d3a88fc57fc458807a554062", "score": "0.6474786", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_dog_info, container, false);\n }", "title": "" }, { "docid": "c515dd4bbcb31603990b57bdbe92c0db", "score": "0.6474393", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_advanced_degrees, container, false);\n }", "title": "" }, { "docid": "28c2e43cf9509452bc4fffc58724e3b3", "score": "0.64716977", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_contacts_options_bottom_sheet, container, false);\n }", "title": "" }, { "docid": "784bc5bef20d08efc28b15195fda840f", "score": "0.64712787", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.dress_layout, container, false);\n }", "title": "" }, { "docid": "55323df55f0991f359fb7da467147488", "score": "0.6470928", "text": "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_board, container, false);\n }", "title": "" }, { "docid": "efbed26cdd297d8950e736fa1f62731d", "score": "0.6469641", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (rootView == null) {\n mBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_booking_detail, container, false);\n rootView = mBinding.getRoot();\n mContext = getActivity();\n requestStoragePermission();\n setUp();\n setOnClickListner();\n }\n\n return rootView;\n }", "title": "" }, { "docid": "01e9b559441219f79f608a2c7f8e1b37", "score": "0.64693195", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_profile_pub, container, false);\n\n\n\n\n\n\n\n\n\n\n\n\n return rootView;\n }", "title": "" }, { "docid": "6d72ca16c3240a52186e1ac44d3f9d17", "score": "0.6469254", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mainView = inflater.inflate(R.layout.fragment_friends, container, false);\n\n\n\n return mainView;\n }", "title": "" }, { "docid": "c3305fa5ccaac7ca3238f34636216eb9", "score": "0.64671624", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.high_scores,container,false);\n return view;\n }", "title": "" } ]
53876bdcdadddef65dd94346fe450b7e
Reset condition for flying checks (sf + nofall): fluids, web, ladder (not onground, though).
[ { "docid": "7370f0c39483bbf8e23780bc37929ef2", "score": "0.55322117", "text": "public boolean isResetCond(){\r\n\t\t// NOTE: if optimizing, setYOnGround has to be kept in mind. \r\n\t\treturn isInLiquid() || isOnClimbable() || isInWeb();\r\n\t}", "title": "" } ]
[ { "docid": "f47156ff36a5767df49373d3478ee2cf", "score": "0.65712225", "text": "@Generated(hash = 1837784461)\n public synchronized void resetFlightChecks() {\n flightChecks = null;\n }", "title": "" }, { "docid": "ef81c9695646da56d4a0db982e62e291", "score": "0.6443889", "text": "public void reset(){\n for(FightingForce force: attackForce){\n force.resetAttackValue();\n }\n }", "title": "" }, { "docid": "f2c188a1a97e3a7fd7c93cbcc03305c7", "score": "0.6251404", "text": "public void resetForce() {\n fx = 0.0;\n fy = 0.0;\n }", "title": "" }, { "docid": "7f80857b5e59fcb9ff2ff8c420967c34", "score": "0.61300945", "text": "protected void reset() {\r\n\t\tfor (int x = 0 ; x < lamps.length ; x++) {\r\n\t\t\tfor (int y = 0 ; y < lamps[x].length ; y++) {\r\n\t\t\t\tlamps[x][y] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tc.resetNbCoup();\r\n\t}", "title": "" }, { "docid": "56ce47a2fc3c1611371fc6540ac37eda", "score": "0.60931057", "text": "public void resetLaw();", "title": "" }, { "docid": "16fd765b73707b9f066fe7685b8081e3", "score": "0.6085995", "text": "public void resetFractal()\r\n\t{\r\n\t\tfractal.InitialConditions();\r\n\t\tframe.repaint();\r\n\t}", "title": "" }, { "docid": "4bcb60d8e2c66e235422a64b7006f187", "score": "0.6067017", "text": "public void resetStats(){\n this.remainingAir = this.airPower;\n this.remainingEarth = this.earthPower;\n this.remainingFire = this.firePower;\n this.remainingWater = this.waterPower;\n this.remainingEnergy = this.energyPower;\n this.playedLandThisRound = false; \n }", "title": "" }, { "docid": "9416804300189c8c7f5555de39e7091f", "score": "0.60575795", "text": "public void reset(boolean variables, boolean functions);", "title": "" }, { "docid": "83e7faa10a6d7f98dfcdd4f5df663ddb", "score": "0.59964925", "text": "void reset() {\n a.reset();\n b.reset();\n c.reset();\n d.reset();\n e.reset();\n q.resetCue();\n t.wall = true;\n resetCheck();\n}", "title": "" }, { "docid": "cdb1110859b19eab63042b9a003d47f2", "score": "0.5893821", "text": "public void resetGame() {\n\t\tfor(int i=0;i<12; i++)\n\t\t for (int j=0; j<12; j++) //False since no blocks are on the screen. \n\t\t\tisFilled[i][j] = false;\n\t\t\t\t\t\t\n\t\tfor(int i=0; i<12; i++)\t\t //False since no questions are needed yet. \n\t\t for(int j=0; j<12; j++)\n\t\t\teligibleQuestions[i][j] = false;\n\t\t\t\t\t\t\t\n\t\tfallingBlock = new Block();\n\t\tfallingBlock = getRandomShape();\n\t\tfallingBlock.color = getRandomColor();\n\t\tfallingBlock.gridX = 0; \n\t\tfallingBlock.gridY = 0;\n\t\tfallingBlock.falling = true;\n\t\tblockTimer.stop();\n\t\tblockTimer.start();\n\t }", "title": "" }, { "docid": "79e5711bd9294f1f4ce9e2c4e1d01f27", "score": "0.5887273", "text": "public void resetDefinedAll()\n\tthrows IllegalStateException {\n\t checkState(0, defined);\n\t Arrays.fill(defined, false);\n\t}", "title": "" }, { "docid": "787b7c386518d996b3bc7594566d0c66", "score": "0.58785564", "text": "public void reset() {\r\n double money = this.getMoney();\r\n String name = this.getName();\r\n this.hand = new Hand();\r\n this.isAllin = false;\r\n this.isCall = false;\r\n this.action = Action.BLANK;\r\n this.raiseamount = 0;\r\n this.callamount = 0;\r\n }", "title": "" }, { "docid": "cc5a0c71564625be098095ddb63b116b", "score": "0.5861473", "text": "public static void reset()\r\n {\r\n allVehiclesTotalFuelCost = 0;\r\n allVehiclesTotalMilesTraveled = 0;\r\n }", "title": "" }, { "docid": "daeefdc4c8d0505c04148736457bc3bd", "score": "0.5856125", "text": "private void resetFishing() {\n\tisFishing = false;\r\n\tplayer.startAnimation(65535);\r\n\tplayer.getPA().removeAllWindows();\r\n\tplayer.playerSkilling[10] = false;\r\n}", "title": "" }, { "docid": "d65713837b0c4aee42185b601bc031b8", "score": "0.5805036", "text": "public void resetState() {\n hoodSpeed = 0;\n }", "title": "" }, { "docid": "dc0bdc5abca86aa2277737a3896909e5", "score": "0.5791775", "text": "public void setFlying(boolean flying){\r\n\t\t// TODO: adjustments for state changes ?\r\n\t\t// TODO: cleanups\r\n\t\tstopCount = 0;\r\n\t\tif (flyState == FlyState.DISABLED) flying = false;\r\n\t\tif (!flying){\r\n\t\t\tflyState = FlyState.OFF;\r\n\t\t\tabort = false;\r\n\t\t} else{\r\n\t\t\t // TODO\r\n\t\t\tflyState = FlyState.NORMAL;\r\n\t\t\tnoFallBlock = null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9060ecf0cc2c1ab41e19c2ea28a80c02", "score": "0.5768817", "text": "public static void reset() {\n\t\tfqd.reset();\n\t}", "title": "" }, { "docid": "36571bbb01e06bac6bd209a2080fb03d", "score": "0.5759605", "text": "public void resetAll() {\n cicleLables.clear();\n cicleLablesList.clear();\n ifNumber = 0;\n whileNumber = 0;\n }", "title": "" }, { "docid": "cd3263062c04b3ceb754d1eda2558177", "score": "0.57563215", "text": "private void reset()\n {\n AantalBrand.AantalBrandInt = 0;\n AantalOverstroming.AantalOverstromingInt = 0;\n AantalPlunderaar.AantalPlunderaarInt = 0;\n AantalBotsing.AantalBotsingInt = 0;\n AantalEvacuatie.AantalEvacuatieInt= 0;\n Score.ScoreInt=0;\n }", "title": "" }, { "docid": "e52a37cd27554eeee4cc74b7f40e722a", "score": "0.5753491", "text": "public static void reset(boolean temp) {\n statefuls.forEach(dObj -> dObj.reset(temp));\n }", "title": "" }, { "docid": "64d77b2998a0fc0d103f39ff6e18b6a1", "score": "0.57508796", "text": "public void resetPlowingtimes() {\n for (int x = 0; x < arcs.size(); x++) {\n arcs.get(x).startOfService = -1;\n arcs.get(x).serviced = false;\n arcs.get(x).waitingTime = 0;\n }\n for (int x = 0; x < sideWalkArcs.size(); x++) {\n sideWalkArcs.get(x).startOfService = -1;\n sideWalkArcs.get(x).serviced = false;\n sideWalkArcs.get(x).waitingTime = 0;\n\n }\n for (int x = 0; x < onlySideWalkArcs.size(); x++) {\n onlySideWalkArcs.get(x).startOfService = -1;\n onlySideWalkArcs.get(x).serviced = false;\n }\n }", "title": "" }, { "docid": "26c3cab5978e1a6d7bb7e1b6e44d714d", "score": "0.57337856", "text": "public void resetAttacking() {\n isAttacking = false;\n gfv.resetCursor();\n gfv.decolour();\n depaintAction();\n }", "title": "" }, { "docid": "ce90a5d15aa09bafd63bdbc7aaf448d3", "score": "0.5706688", "text": "public void reset() {\n mFairnessQueue.clear();\n }", "title": "" }, { "docid": "4b9c6f9b0cbbb907328d1b6f474422ce", "score": "0.57046545", "text": "public void clearTempStates()\n {\n this.isCheck = false;\n this.isCheckmate = false;\n }", "title": "" }, { "docid": "38a0de3b6f952a769684e5c160479b95", "score": "0.57029927", "text": "public void resetTricksWon()\n\t\t{\n\t\t\ttricksWon = 0;\t\t\t\n\t\t}", "title": "" }, { "docid": "b2e50ce7bd2a626ae515489caf17ec77", "score": "0.57015055", "text": "private void resetGame() {\r\n for (int j = 0; j < BOARD_HEIGHT; j++) {\r\n for (int i = 0; i < BOARD_WIDTH; i++) {\r\n if (mCells[j][i] == L_OFF) {\r\n mCells[j][i] = L_ON;\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "51b83349d33d46beefd111e4e3d4adfb", "score": "0.56700075", "text": "void resetAll();", "title": "" }, { "docid": "ab919e3574eb44567b69946f8f10c7d7", "score": "0.5654862", "text": "public void fullReset() {\r\n hasApple = false;\r\n reset();\r\n }", "title": "" }, { "docid": "f032a4a7d4e0f8f250e6c9b8041f6f99", "score": "0.56459665", "text": "public void resetInfusion() {\n getTickers().get(infuseTicker).setTick(0);\n getTickers().get(infuseTicker).setRequiredTicks(0);\n }", "title": "" }, { "docid": "6aa9260a203c51e34f90978709871bbe", "score": "0.56342757", "text": "public void resetGame() {\r\n\t\tminesLeft = level.getMines();\r\n \theight = level.getHeight();\r\n \twidth = level.getWidth();\r\n\t\tfield = createField();\r\n\t\tstates = trackBlockStates();\r\n\t\tresetTime();\r\n\t\tfirstMove = true;\r\n\t\tactive = true;\r\n\t\tdesiredFace = FaceIcon.NORMAL;\r\n\t\t\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "title": "" }, { "docid": "522566599786a52cefbecb5fb4f94002", "score": "0.56142825", "text": "public void resetLights() {\n lights.stream()\n .filter(Light::isLit)\n .forEach(Light::toggle);\n }", "title": "" }, { "docid": "6fcd027bffee413b8ba8e6d9c27898c5", "score": "0.56109416", "text": "public void reset(){\n\t\ttimePassed = 0;\n\t\trunning = true;\n\t}", "title": "" }, { "docid": "32f237c3a805040d90c079fb51b2e04e", "score": "0.5609677", "text": "public void unsetPerformed() {\n hasPerformed = false;\n gfv.decolourEndTurn();\n gfv.decolour();\n cycleTurn();\n if (getTurn() == REBEL_TURN) {\n gfv.updatePlayerInfo(rebel);\n }\n else if (getTurn() == ROYALE_TURN) {\n gfv.updatePlayerInfo(royale);\n }\n gfv.resetCursor();\n gfv.getAttackBtn().setVisible(true);\n gfv.updateStatus(\"\");\n depaintAction();\n resetAttacking();\n resetMoving();\n reset();\n }", "title": "" }, { "docid": "9a2b9e88070a4ccaae3608ef93186f61", "score": "0.5580209", "text": "private synchronized void reset(boolean resetall){\n if(resetall)\n {\n if (animator != null){\n animator.cancel();\n animator = null;\n }\n lblCurrentDate.setText(\"\");\n playButton.setText(\"Play\");\n }\n \n \n ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n if(pc.getCurrentProject() == null)\n {\n pc.newProject();\n }\n \n // clear the graph\n GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n if(graphModel != null)\n {\n Graph grph;\n grph = graphModel.getGraph();\n grph.clear();\n }\n \n histFirstDegreeTriangles.clear();\n histValueFlow.clear();\n histGraphDensity.setBand(false);\n histGraphDensity.clear();\n histPromotedNodes.setBand(false);\n histPromotedNodes.clear();\n histReentrantNodes.setBand(false);\n histReentrantNodes.clear();\n \n \n }", "title": "" }, { "docid": "8387f65b20852419893d732a928c5976", "score": "0.5575249", "text": "public void resetForce() {\n force = new Vector3();\n }", "title": "" }, { "docid": "933bfc9eece06ba306337802e9cd9207", "score": "0.5567978", "text": "private static void resetGame()\r\n\t{\r\n\t\tremainingPlayers.clear();\r\n\t\tfor(Player p : players)\r\n\t\t{\r\n\t\t\tp.newHand();\r\n\t\t\tif(p.isStillIn())\r\n\t\t\t\tremainingPlayers.add(p);\r\n\t\t}\r\n\t\ttable.clear();\r\n\t\tt.clearTable();\r\n\t\tpot = 0;\r\n\t\tfillDeck();\r\n\t\tt.setLogText(\"\");\r\n\t\tallIn = false;\r\n\t}", "title": "" }, { "docid": "02c29c25f489d0c5e541187c0e048488", "score": "0.55678767", "text": "@Override\n public void reset()\n {\n resetHp();\n pet.setCumlativeRD(0.0);\n pet.getSkills().forEach((s,si)->setRechargeTime(s,0));\n }", "title": "" }, { "docid": "3dfa6ea7ae83ede0f44cf7c723ac8949", "score": "0.5565076", "text": "public void FiltersClear()\n { \n electricfilter = false;\n awdfilter = false;\n pricefilter = false; \n }", "title": "" }, { "docid": "d953d0c1d1abd874203eadfb30dc8a2f", "score": "0.55606174", "text": "private void resetToDiscard() {\r\n\t\tbrickToDiscard = 0;\r\n\t\toreToDiscard = 0;\r\n\t\tsheepToDiscard = 0;\r\n\t\twheatToDiscard = 0;\r\n\t\twoodToDiscard = 0;\r\n\t\tneedToDiscard = 0;\r\n\t}", "title": "" }, { "docid": "d53e10202c9b0294d61e24de980bf929", "score": "0.5548916", "text": "public static void resetIf(Predicate<IStatefulData> condition, boolean temp) {\n statefuls.stream()\n .filter(condition)\n .forEach(dObj -> dObj.reset(temp));\n }", "title": "" }, { "docid": "08b9152ac570090d693fd6901c2a330a", "score": "0.5548871", "text": "public boolean isFlying() {\n return false;\n }", "title": "" }, { "docid": "1fa0b6bb03cdd1cc1489c12846e9b8b3", "score": "0.55437255", "text": "public void reset() {\n my_telnet.sendCommand(force + arch + RST_1);\n my_telnet.sendCommand(force + arch + CLK_1);\n my_telnet.sendCommand(run + clk_half_period);\n\n my_telnet.sendCommand(force + arch + RST_0);\n my_telnet.sendCommand(force + arch + CLK_0);\n }", "title": "" }, { "docid": "d5bba5f6cdb4a4fc24937a36962378b8", "score": "0.5542001", "text": "public void reset()\n {\n // End dying animation/behaviors, if ongoing\n this.isDying = false;\n // Set starting direction as formality\n this.direction = Direction.Left;\n this.nextDirection = Direction.Left;\n\n // Reset player position\n resetPosition(14, 26);\n // As a formality\n this.isMoving = false;\n }", "title": "" }, { "docid": "18dd86633b1be7073b961a56785eb01d", "score": "0.55329126", "text": "public synchronized void resetFire() {\n this.fire = null;\n }", "title": "" }, { "docid": "3c449fc38566eb490ce786d1f78d2e18", "score": "0.5531266", "text": "private void resetAll() {\n\t\tfor (int x = 0; x < boardSize; x++) {\n\t\t\tfor (int y = 0; y < boardSize; y++) {\n\t\t\t\tif (world[x][y].size() > 0) {\n\t\t\t\t\tfor (int i = 0; i < world[x][y].size(); i++) {\n\t\t\t\t\t\tBeing being = world[x][y].get(i);\n\t\t\t\t\t\tbeing.hasMoved(false);\n\t\t\t\t\t\tbeing.setCanAct(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d945ecae8af1921a38cdbd253a905617", "score": "0.55234474", "text": "public void resetGame(){\r\n\t\tfoodX = r.nextInt(scale2)*scale;\r\n\t\tfoodY = r.nextInt(scale2)*scale;\r\n\t\theadX = r.nextInt(scale2)*scale;\r\n\t\theadY = r.nextInt(scale2)*scale;\r\n\t\tmyWorm.clear();\r\n\t\tcount--;\r\n\t\tmove();\r\n\t\t//repaint();\r\n\t}", "title": "" }, { "docid": "5f031d2b52f5319f473d3350cbb85dd2", "score": "0.550318", "text": "void setNonShootingFoulValue() {\n this.nonShootingFoulValue = 1.2 * 1000 - ((defensiveFive.pg.perimeterDefense + defensiveFive.pg.interiorDefense / 2 + defensiveFive.sg.perimeterDefense +\n defensiveFive.sg.interiorDefense / 2 + defensiveFive.sf.interiorDefense / 4 * 3 + defensiveFive.sf.perimeterDefense / 4 * 3 + \n defensiveFive.pf.perimeterDefense / 4 * 3 + defensiveFive.pf.interiorDefense / 4 * 3 + \n defensiveFive.c.perimeterDefense / 2 + defensiveFive.c.interiorDefense) / 3 * 2);\n this.nonShootingFoulValue = this.nonShootingFoulValue / 8 * 1.3;\n }", "title": "" }, { "docid": "1f9077871d82f76153eef713b5defe03", "score": "0.5502617", "text": "public void clearFixed() {\n useFixed = false;\n }", "title": "" }, { "docid": "2ba4e2f10cbfb21f710873ca1f58e94d", "score": "0.5497914", "text": "public static boolean flies()\n{\n\treturn false;\n}", "title": "" }, { "docid": "b5a9603eeee93cce2991e9424406ba07", "score": "0.5492447", "text": "public void resetLateFee() {\n\t\tthis.lateFee = 0;\n\t}", "title": "" }, { "docid": "e2a3c0661e269d15b6e85714d7d8fe9a", "score": "0.54878503", "text": "public void resetStatiticCalculationBase() {\n\t\tsynchronized (this) {\n\t\t\tthis.maxValueTriggered = Integer.MIN_VALUE;\n\t\t\tthis.minValueTriggered = Integer.MAX_VALUE;\n\t\t\tthis.avgValue = Integer.MIN_VALUE;\n\t\t\tthis.sigmaValue = Integer.MIN_VALUE;\n\t\t\tthis.avgValueTriggered = Integer.MIN_VALUE;\n\t\t\tthis.sigmaValueTriggered = Integer.MIN_VALUE;\n\t\t\tthis.triggerRanges = null;\n\t\t\tthis.tmpTriggerRange = null;\n\t\t\tif (log.isLoggable(Level.FINER)) log.log(Level.FINER, this.name);\n\t\t}\n\t}", "title": "" }, { "docid": "0d91cfae6527a5a87113107fd62a61f3", "score": "0.54876506", "text": "public void reset() {\n checkCollisions = true;\n removeAllActors(); // Remove actors from grid\n Ghost.list.clear(); // Remove all created ghosts from array\n setupLevel(new Level(this));\n score.setCurScore(0); // Reset score earned in this level\n tCount = -1; // Set default value of toggle counter\n }", "title": "" }, { "docid": "4277a1d4a907d13d8b226dfc952e3b07", "score": "0.5487545", "text": "public void resetOvers(){\n over0 = false;\r\n over1 = false;\r\n over2 = false;\r\n over3 = false;\r\n over4 = false;\r\n over5 = false;\r\n over6 = false;\r\n over7 = false;\r\n over8 = false;\r\n }", "title": "" }, { "docid": "0c5eb8e54a30e5c54709cd43777460ab", "score": "0.54862875", "text": "public void reset(){\n this.aCrapsMetricsMonitor.reset();\n this.maxWinStreak = 0;\n this.maxLoseStreak = 0;\n }", "title": "" }, { "docid": "6e1c2df1f42e520d0494c33967feab54", "score": "0.54797", "text": "public void reset() {\n leftWeight.setHeight(1);\r\n rightWeight.setHeight(1);\r\n //Reset gravity\r\n gravity = 9.8f;\r\n sldGravity.setValue(9.8f);\r\n txtGravity.setText(\"9.8 N/Kg\");\r\n //Reset the masses, sliders, and labels\r\n leftWeight.setMass(1.6f);\r\n rightWeight.setMass(1.6f);\r\n sldLMass.setValue(16);\r\n sldRMass.setValue(16);\r\n txtLMass.setText(\"1.6 Kg\");\r\n txtRMass.setText(\"1.6 Kg\");\r\n btnRun.setEnabled(true);\r\n acceleration = 0;\r\n //Stop the simulation if it is running\r\n simulating = false;\r\n //Set the time back to 0\r\n time = 0;\r\n }", "title": "" }, { "docid": "99605f0cac678b831da525a195a92722", "score": "0.5461375", "text": "public void reset() {\n leaderTalon.clearMotionProfileTrajectories();\n setValue = SetValueMotionProfile.Disable;\n state = State.FillPoints;\n initRun = false;\n }", "title": "" }, { "docid": "a777b1b3bb46a5d5d02f86d0af9b5122", "score": "0.5453727", "text": "private void resetCheckBoxes() {\n \n //Loops through check boxes.\n for (int i = 0; i < reroll.size(); i++) {\n reroll.get(i).setSelected(false);\n }\n \n resetDice();\n \n if(gameOver) {\n try {\n game.endGame(getTotalScore(0), getTotalScore(16));\n } catch (IOException ex) {\n Logger.getLogger(YahtzeeGameDemo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "title": "" }, { "docid": "25354ec495d27677a4b7a8183ffd6853", "score": "0.544865", "text": "public void logicDiscarted() {\n\t\tilm.reset();\n\t}", "title": "" }, { "docid": "4d52e636dede0493369e0ebec8d0236e", "score": "0.5446305", "text": "private void reset() {\n\t\tRobotMap.driveTrain.reset();\n\t\tRobotMap.arm.reset();\n\t\tRobotMap.intake.setRollers(0);\n\t}", "title": "" }, { "docid": "9cfcf01141b230260b7b96d682f77baf", "score": "0.5437242", "text": "public void Reset() {\r\n\t\t// delete old system data\r\n\t\t_delete_properties();\r\n\t\tDeleteRules();\r\n\t\t// configure system as default constructor\r\n\t\textended = false;\r\n\t\tins = null;\r\n\t\touts = null;\r\n\t\tisize = osize = 0;\r\n\t\tpsize = 0;\r\n\t\tmaxpsize = DEFAULT_SETARRAY_SIZE;\r\n\t\tPreS = new FuzzySet[maxpsize];\r\n\t\tcsize = 0;\r\n\t\tmaxcsize = DEFAULT_SETARRAY_SIZE;\r\n\t\tConS = new FuzzySet[maxcsize];\r\n\t\tInIndex = new HashMap<String, Integer>();\r\n\t\tOutIndex = new HashMap<String, Integer>();\r\n\t\tPreIndex = new HashMap<String, Integer>();\r\n\t\tConIndex = new HashMap<String, Integer>();\r\n\r\n\t\topIS = OperationCreator.newTNorm(TNorm.TN_MINIMUM);\r\n\t\topOR = OperationCreator.newSNorm(SNorm.SN_MAXIMUM);\r\n\t\topAND = OperationCreator.newTNorm(TNorm.TN_MINIMUM);\r\n\t\timpl = OperationCreator.newImplication(TNorm.TN_MINIMUM);\r\n\t\truleAgregator = OperationCreator.newSNorm(SNorm.SN_MAXIMUM);\r\n\t\ttruthComp = OperationCreator.newTNorm(TNorm.TN_MINIMUM);\r\n\t\tdefuzz = DefuzMethod.DF_COG;\r\n\t\talpha = 0.0;\r\n\t\tautoDefuzz = true;\r\n\t\tautoAlpha = false;\r\n\r\n\t\ttruthDy = 0.01;\r\n\t\ttruthDx = 0.001;\r\n\r\n\t\t_tmpOne = new FuzzySet(100);\r\n\t\t_tmpTwo = new FuzzySet(100);\r\n\r\n\t\tlastRule = null;\r\n\t}", "title": "" }, { "docid": "c3f52fd1d2941ce0ba661865beb1ab89", "score": "0.5432769", "text": "public void reset() {\n\t\tbearing = 0.0;\n\t\tdistance = 0.0;\n\t\tenergy = 0.0;\n\t\theading = 0.0;\n\t\tvelocity = 0.0;\n\t\tname = \"\";\n\t}", "title": "" }, { "docid": "84ebce60c6e0fd4f1a8cb379f346b416", "score": "0.54327255", "text": "public void loose()\n\t{\n\t\tthis.totalStrength=0;\n\t\tthis.alive=false;\n\t\tfor(Warrior w : warriorList)\n\t\t{\n\t\t\tw.setWarriorStrength(0);\n\t\t}\n\t}", "title": "" }, { "docid": "82796b47c72d0eb43c3e83a5794433ee", "score": "0.54313606", "text": "public void reset() {\n this.health = INITIALHEALTH;\n this.hasCollided = false;\n this.damageBlinkCycle = 0;\n this.jumpCycles = 0;\n this.direction = INITIALDIRECTION;\n this.player = new Animation(WALKFIRST, WALKLAST, JUMPFIRST, JUMPLAST, WALKOFFSET, JUMPOFFSET, DEATHSTART, DEATHEND, DEATHOFFSET);\n this.counter = 0;\n\n //this.alive = true;\n this.animState = 0;\n this.posX = 0;\n this.posY = 0;\n this.velX = 0;\n this.velY = 0;\n this.newX = 0;\n this.newY = 0;\n this.action = FALLING;\n\n //this.isStaticCollidable = true;\n //this.isDynamicCollidable = true;\n //this.isShowing = true;\n //this.isBlinking = false;\n //this.isSolidToPlayer = true;\n //this.isSolidToBlinkingPlayer = true;\n\n this.setProp(ObjectProps.PROP_STATICCOLLIDABLE, true);\n this.setProp(ObjectProps.PROP_DYNAMICCOLLIDABLE, true);\n this.setProp(ObjectProps.PROP_SHOWING, true);\n this.setProp(ObjectProps.PROP_BLINKING, false);\n this.setProp(ObjectProps.PROP_SOLIDTOPLAYER, true);\n this.setProp(ObjectProps.PROP_SOLIDTOBLINKINGPLAYER, true);\n\n this.setUseInput(true);\n }", "title": "" }, { "docid": "09b597e3de01614cd6c4db264a2dde86", "score": "0.54260516", "text": "@Override\r\n\tpublic void reset() {\n\t\tsuper.reset();\r\n\t\ttimeGap = false;\r\n\t\tincreasingScore = 0;\r\n\t\tfinalScore = 0;\r\n\t\tscore = 0;\r\n\t\tscorePositionX = 838;\r\n\t\tscorePositionY = 749;\r\n\t\thighScorePositionY = 789;\r\n\t\tTrophyPositionX = 496;\r\n\t\tscoreDestination = false;\r\n\t}", "title": "" }, { "docid": "4a2e6170ee6ddf45baf479f636cb5c00", "score": "0.5422024", "text": "protected void updateLogicalLayer(final double tpf) {\n if (_logicalLayer != null) {\n _logicalLayer.checkTriggers(tpf);\n }\n }", "title": "" }, { "docid": "1aaaecd77248674e254f3bf21eb8a642", "score": "0.5420794", "text": "public static void resetPowerFlowValues(Environment environment) {\n\t\tenvironment.getNetworkNodes().forEach((node) -> node.setCurrentVoltagePU(0));\r\n\t\t\r\n\t\t//zera valores dos branches\r\n\t\tenvironment.getBranches().forEach((branch) -> {\r\n\t\t\tbranch.setInstantCurrent(0);\r\n\t\t\tbranch.setActiveLossMW(0);\r\n\t\t\tbranch.setReactiveLossMVar(0);\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "3386699f959a99ec09987718e0a239ce", "score": "0.54157877", "text": "public void resetAnyo();", "title": "" }, { "docid": "4bb38aac7d34688c433b255d7104694d", "score": "0.5414183", "text": "public void resetGame()\n\t{\n\t\thas_lost = false;\n\t\tresetBoard();\n\t\tsetRandomMine();\n\t\tcomputeNumberofMineAround();\n\t\tinvalidate();\n\t}", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "5324f1a367ee66837c2ab842e3d91a85", "score": "0.54060864", "text": "void reset();", "title": "" }, { "docid": "0f7cedfd77e85ed71df20f64e411d721", "score": "0.5401868", "text": "protected void reset() {\r\n\t\tresetRemainingOperations();\r\n\t\tsetState( State.FULLY_AWAKE );\r\n\t}", "title": "" }, { "docid": "5c12b2b10af0c34d90101cb160f7e99f", "score": "0.53981566", "text": "public static void reset() {\n\t\t//play = false;\n\t\tpersonString = null;\n\t\thackScreen = false;\n\t\tsecondTimer = null;\n\t\tsecondDelay = 1000;\n\t\tsecondCounter = 0;\n\t\tlastSecond = 0;\n\t\ttickTimer = null;\n\t\ttickDelay = 15;\n\t\ttickCounter = 1;\n\t\trandNum = 0;\n\t\tgoodAtDoor = false;\n\t\tbadAtDoor = false;\n\t\tperson = 0;\n\t\tmaxSeconds = 0;\n\t\tminSeconds = 0;\n\t\tpbWidth = 0;\n\t\tpbWidthDouble = (double) pbWidth;\n\t\tprogressBar = new JLabel();\n\t\tprogressPercentage = new JLabel();\n\t\tgood1 = null;\n\t\tgood2 = null;\n\t\tbad1 = null;\n\t\tbad2 = null;\n\t\ttimeLeft = 0;\n\t\tdone = false;\n\t\thackScreen = true;\t\n\t\ttimeLabel = new JLabel();\n\t\tlossScreen = new Hitbox(1920, 1080, 0, 0, true, Color.WHITE, \"Oops\", false);\n\t\tlossScreen.setVisible(false);\n\t\tlossScreen.setEnabled(false);\n\t\tvictoryScreen = new Hitbox(1920, 1080, 0, 0, true, Color.white, \"Oops\", false);\n\t\tvictoryScreen.setVisible(false);\n\t\tvictoryScreen.setEnabled(false);\n\t\tgood1Sound = null;\n\t\tgood2Sound = null;\n\t\tbad1Sound = null;\n\t\tbad2Sound = null;\n\t\tgood1Picture = null;\n\t\tgood2Picture = null;\n\t\tbad1Picture = null;\n\t\tbad2Picture = null;\n\t\tdidIt = false;\n\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().removeKeyEventDispatcher(keyEventDispatcher);\n\t\tunfreezeButtons();\n\t}", "title": "" }, { "docid": "9c69191dbc85baa5052c36cf95c3e792", "score": "0.53972584", "text": "@Override\n public void initialize() {\n if (feet_ < 0) \n {\n Robot.hardware_.intake(-1);\n if (feet_ == DROPVALUE)\n {\n Robot.hardware_.liftwheel(0.3);\n Robot.hardware_.fipptuate(0);\n }\n }\n else {\n Robot.hardware_.robotdrive_.leftDrive_.\n configClosedLoopPeakOutput(1, 0.5);\n Robot.hardware_.robotdrive_.rightDrive_.\n configClosedLoopPeakOutput(1, 0.5);\n Robot.hardware_.intake(1);\n Robot.hardware_.robotdrive_.drivelock(feet_);\n }\n }", "title": "" } ]
bec1ea87fd2de1896e59358d565906a6
bool needSyncFromPeer = 6;
[ { "docid": "bbced7a73f4b16fb720f550f57575e28", "score": "0.73096883", "text": "@java.lang.Override\n public boolean getNeedSyncFromPeer() {\n return needSyncFromPeer_;\n }", "title": "" } ]
[ { "docid": "9b717841def1d26c11d38cbb6ce9bfc9", "score": "0.84296805", "text": "boolean getNeedSyncFromPeer();", "title": "" }, { "docid": "1151779e5b21c15712da71ed48e73792", "score": "0.7421967", "text": "@java.lang.Override\n public boolean getNeedSyncFromPeer() {\n return needSyncFromPeer_;\n }", "title": "" }, { "docid": "1afae40172680587e3032f7b32f9c8be", "score": "0.70582765", "text": "public Builder setNeedSyncFromPeer(boolean value) {\n \n needSyncFromPeer_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4625f528c49a0413ec7ece8e829c2fe5", "score": "0.6659167", "text": "boolean getNeedSyncFromUs();", "title": "" }, { "docid": "d7559f6da032343f10540279d03d0808", "score": "0.6618459", "text": "public boolean doesSync() { return _doesSync; }", "title": "" }, { "docid": "12a108561f2bd511419b0dc8487049fb", "score": "0.65944314", "text": "private void checkSyncState() {\n\n\t}", "title": "" }, { "docid": "d9e78ca989b354b971449fa9f8fea08f", "score": "0.65816534", "text": "boolean hasSync();", "title": "" }, { "docid": "47d244d9c62f923c9efb3286665e616a", "score": "0.64236134", "text": "protected boolean needsSync() {\n return true;\n }", "title": "" }, { "docid": "30eb8fdbf273ff0794cea8d3af65ccec", "score": "0.6325285", "text": "boolean useFsync();", "title": "" }, { "docid": "f4cf70ff5a1f7034d6d998630bc7b03b", "score": "0.63047063", "text": "boolean getSyncFlag();", "title": "" }, { "docid": "0971419518b89250d06c8287ec2dc6f1", "score": "0.6006767", "text": "private void acceptanceSync() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90dad17aa5ceebf00214e5a7a94b270c", "score": "0.6006437", "text": "public static void setSync(boolean newsync){\n\t\tsync = newsync;\n\t}", "title": "" }, { "docid": "9b01796f1da74719ede29b1ea8c3f3c4", "score": "0.5984751", "text": "boolean hasSyncStatus();", "title": "" }, { "docid": "d27ed60ff1d6cbddbb54304de7da6475", "score": "0.5977372", "text": "public static boolean isSync(){\n\t\treturn sync;\n\t}", "title": "" }, { "docid": "b83d82bca2a49728c346e71a455894ca", "score": "0.5960704", "text": "private void automaticSync() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5b6ddcc0d1ea4ff9903b6afd8ed0b370", "score": "0.59575737", "text": "boolean ping(ConsensusParticipant unresponsiveParticipant);", "title": "" }, { "docid": "67c26a89ff3d661df6f75b95e5ea9ec4", "score": "0.5937527", "text": "private void checkSync() {\n\t\tif (Utils.getPlatformExecutors().getCurrentThreadContext().getCurrentExecutor().getId().equalsIgnoreCase(\"radius\")) {\n\t\t\tthrow new IllegalStateException(\"Cannot use synchronous clients in the container main thread (your proxylet's accept method did not return ACCEPT_MAY_BLOCK)\");\n\t\t}\n\t}", "title": "" }, { "docid": "2be7021aa64844838a2213a36c53e0e7", "score": "0.5914238", "text": "Object setUseFsync(boolean useFsync);", "title": "" }, { "docid": "e7268aa0a461ab722c53b5d4ae0e41aa", "score": "0.5913776", "text": "boolean hasSyncPointUri();", "title": "" }, { "docid": "9948bf1dbfbe98f6626fd4b0b8a3c396", "score": "0.58905935", "text": "public boolean isSynced() { return _isSynced; }", "title": "" }, { "docid": "276cd9905570d99a8a62f7a8a896911c", "score": "0.58678406", "text": "public abstract boolean isConsistent();", "title": "" }, { "docid": "444b9427c535212b649beccac5945eaa", "score": "0.58634627", "text": "public synchronized boolean getPeerChoking()\n\t{\n\t\treturn peerChoking;\n\t}", "title": "" }, { "docid": "cdc90872e4a8d5da263a1321ad48ef41", "score": "0.5845811", "text": "boolean hasSyncrand();", "title": "" }, { "docid": "5c1e26392c869d0b1f78a205dcd76552", "score": "0.5844627", "text": "boolean hasLegacyMassDisconnect();", "title": "" }, { "docid": "5c1e26392c869d0b1f78a205dcd76552", "score": "0.5844627", "text": "boolean hasLegacyMassDisconnect();", "title": "" }, { "docid": "b6fb29939399aecc41b8c1c38df6e24b", "score": "0.5828558", "text": "@java.lang.Override\n public boolean getNeedSyncFromUs() {\n return needSyncFromUs_;\n }", "title": "" }, { "docid": "71531685bf1f033b750ae76ed4e658bc", "score": "0.5827161", "text": "abstract boolean isConsistent();", "title": "" }, { "docid": "839c0236f3dbdcbc8508c47944479df7", "score": "0.5812774", "text": "boolean hasForceOffline();", "title": "" }, { "docid": "18d062fceef98b1c5f28fece93f8b5dd", "score": "0.5788572", "text": "public boolean isConnectionBased()\n/* */ {\n/* 184 */ return false;\n/* */ }", "title": "" }, { "docid": "38ffe649ba7eb2e8e96bf95031b29c9b", "score": "0.57866365", "text": "public boolean hasForceOffline() {\n return realMsgCase_ == 10300;\n }", "title": "" }, { "docid": "fc7f71bdfd66a7cb8608ce007aac2c98", "score": "0.57763183", "text": "public void forceSync(){\n }", "title": "" }, { "docid": "459af3bca3235944a05e2e9da96949dd", "score": "0.57738376", "text": "boolean mayBroadcastServerVersion();", "title": "" }, { "docid": "0c393e4dd9567ddbf2f3dd7afe4e4945", "score": "0.57342", "text": "@java.lang.Override\n public boolean getNeedSyncFromUs() {\n return needSyncFromUs_;\n }", "title": "" }, { "docid": "54d2d1fa090d10f736c5efcece887416", "score": "0.57320964", "text": "boolean requestPing(ConsensusParticipant friend, ConsensusParticipant target);", "title": "" }, { "docid": "751056a575196204a7d9a288236e1e28", "score": "0.5721869", "text": "protected final boolean sharedConnectionEnabled() {\n \t\treturn true;\n \t}", "title": "" }, { "docid": "c351fcda3bc3a10fd9e730b399a1528b", "score": "0.57211447", "text": "boolean hasRelaysConnected();", "title": "" }, { "docid": "b95a6c359ab30743ab240beed8369113", "score": "0.56976354", "text": "public boolean isSync() {\n return sync;\n }", "title": "" }, { "docid": "ea119aca33fd5cd7b866b9f96c2ff175", "score": "0.5657601", "text": "public Builder clearNeedSyncFromPeer() {\n \n needSyncFromPeer_ = false;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2d7bf22984b50313fb8011cae452b0dd", "score": "0.56344473", "text": "@java.lang.Override\n public boolean hasIsSyncFeatureEnabled() {\n return instance.hasIsSyncFeatureEnabled();\n }", "title": "" }, { "docid": "4b3687ee0f5dd29d975ba2d8ca7414ab", "score": "0.56295973", "text": "boolean hasServerRelayConnectedSteamId();", "title": "" }, { "docid": "3c8a982b09542091f24fd0cbe68bd98b", "score": "0.56294197", "text": "@Test\n public void testEstablishedWithMultipleRemotes() {\n Ip localIp = Ip.parse(\"1.1.1.1\");\n Ip remoteIp = Ip.parse(\"2.2.2.2\");\n BgpPeerConfigId peerXId =\n new BgpPeerConfigId(\"c\", DEFAULT_VRF_NAME, remoteIp.toPrefix(), false);\n BgpActivePeerConfig peerX =\n BgpActivePeerConfig.builder()\n .setLocalIp(localIp)\n .setPeerAddress(remoteIp)\n .setLocalAs(1L)\n .setRemoteAs(2L)\n .setIpv4UnicastAddressFamily(Ipv4UnicastAddressFamily.builder().build())\n .build();\n\n // Two compatible (but unreachable) remote peers\n BgpPeerConfigId compat1Id =\n new BgpPeerConfigId(\"c2\", DEFAULT_VRF_NAME, remoteIp.toPrefix(), false);\n BgpPeerConfigId compat2Id =\n new BgpPeerConfigId(\"c3\", DEFAULT_VRF_NAME, remoteIp.toPrefix(), false);\n\n // One compatible AND reachable remote peer\n BgpPeerConfigId establishedId =\n new BgpPeerConfigId(\"c4\", DEFAULT_VRF_NAME, remoteIp.toPrefix(), false);\n\n // Recycle the same compatible remote config for all the remotes\n BgpActivePeerConfig remotePeer =\n BgpActivePeerConfig.builder()\n .setLocalIp(remoteIp)\n .setPeerAddress(localIp)\n .setLocalAs(2L)\n .setRemoteAs(1L)\n .setIpv4UnicastAddressFamily(Ipv4UnicastAddressFamily.builder().build())\n .build();\n\n // Configured topology: Peer X has edges with both compatible remotes\n MutableValueGraph<BgpPeerConfigId, BgpSessionProperties> configuredTopology =\n ValueGraphBuilder.directed().allowsSelfLoops(false).build();\n configuredTopology.putEdgeValue(\n peerXId, compat1Id, BgpSessionProperties.from(peerX, remotePeer, false));\n configuredTopology.putEdgeValue(\n compat1Id, peerXId, BgpSessionProperties.from(peerX, remotePeer, true));\n configuredTopology.putEdgeValue(\n peerXId, compat2Id, BgpSessionProperties.from(peerX, remotePeer, false));\n configuredTopology.putEdgeValue(\n compat2Id, peerXId, BgpSessionProperties.from(peerX, remotePeer, true));\n\n // Established topology: Peer X has edge with established remote\n MutableValueGraph<BgpPeerConfigId, BgpSessionProperties> establishedTopology =\n ValueGraphBuilder.directed().allowsSelfLoops(false).build();\n establishedTopology.putEdgeValue(\n peerXId, establishedId, BgpSessionProperties.from(peerX, remotePeer, false));\n establishedTopology.putEdgeValue(\n establishedId, peerXId, BgpSessionProperties.from(peerX, remotePeer, true));\n\n Map<Ip, Map<String, Set<String>>> ipVrfOwners =\n ImmutableMap.of(\n localIp,\n ImmutableMap.of(\"c\", ImmutableSet.of(DEFAULT_VRF_NAME)),\n remoteIp,\n ImmutableMap.of(\n \"c2\",\n ImmutableSet.of(DEFAULT_VRF_NAME),\n \"c3\",\n ImmutableSet.of(DEFAULT_VRF_NAME),\n \"c4\",\n ImmutableSet.of(DEFAULT_VRF_NAME)));\n\n Row row =\n getActivePeerRow(peerXId, peerX, ipVrfOwners, configuredTopology, establishedTopology);\n assertThat(row, hasColumn(COL_REMOTE_NODE, new Node(\"c4\"), Schema.NODE));\n }", "title": "" }, { "docid": "6837c60d4f8b6be5da311e38b18f1280", "score": "0.5614539", "text": "Boolean getConnectionSharingAcrossClientsEnabled();", "title": "" }, { "docid": "9d956894996cbf221f088f797b9a3093", "score": "0.56064993", "text": "public boolean connect()\n\t{\n\t\t//Create the socket for the peer.\n\t\tpeerSock = new Socket();\n\t\t\n\t\t//Connect the newly created socket. This way the connection can be closed mid-connection.\n\t\ttry{peerSock.connect(new InetSocketAddress(ip, port), 120000);;}\n\t\tcatch(Exception e){disconnected = true; return false;}\n\t\ttry{peerSock.setSoTimeout(120000);} \n\t\tcatch(SocketException e){errorOut(e, \"ERROR: Unable to set socket timeout.\");}\n\t\t\n\t\t//Create the input/output streams.\n\t\ttry{toPeer = new DataOutputStream(peerSock.getOutputStream());}\n\t\tcatch(Exception e){errorOut(e, \"ERROR: Unable to get output stream.\");}\n\t\t\n\t\ttry{fromPeer = new DataInputStream(peerSock.getInputStream());}\n\t\tcatch(Exception e){errorOut(e, \"ERROR: Unable to get input stream.\");}\n\t\t\n\t\t//Assemble the handshaking message.\n\t\tByteArrayOutputStream byteOut= null;\n\t\tString protocol = \"BitTorrent protocol\";\n\t\ttry \n\t\t{\n\t\t\tbyteOut = new ByteArrayOutputStream();\n\t\t\tbyteOut.write(protocol.length());\n\t\t\tbyteOut.write(protocol.getBytes(\"US-ASCII\"));\n\t\t\t\n\t\t\tfor(int i = 0; i < 8; i++)\n\t\t\t\tbyteOut.write(0);\n\t\t\t\n\t\t\tbyteOut.write(infoHash);\n\t\t\tbyteOut.write(peerID.getBytes());\n\t\t} \n\t\tcatch (Exception e) {errorOut(e, \"ERROR: Unable to generate handshake message.\");}\n\t\t\n\t\tbyte[] handshake = byteOut.toByteArray();\n\t\t\n\t\t//Send the handshaking message.\n\t\ttry{toPeer.write(handshake);}\n\t\tcatch(Exception e){errorOut(e, \"ERROR: Unable to send handshake to peer.\");}\n\t\t\n\t\t//Listen for a response\n\t\tbyte[] buffer = new byte[68];\n\t\ttry{fromPeer.readFully(buffer);}\n\t\tcatch(SocketTimeoutException e){disconnected = true; return false;}\n\t\tcatch(EOFException e){disconnected = true; return false;}\n\t\tcatch(IOException e){disconnected = true; return false;}\n\t\t\n\t\t//Check if the response is an acceptable handshaking message.\n\t\ttry\n\t\t{\n\t\t\tif(buffer[0] == protocol.length())\n\t\t\t{\n\t\t\t\tif(new String(buffer, 1, protocol.length(), \"US-ASCII\").equals(protocol))\n\t\t\t\t{\n\t\t\t\t\tif(Arrays.equals(Arrays.copyOfRange(buffer, 28, infoHash.length + 28), infoHash))\n\t\t\t\t\t{\n\t\t\t\t\t\tdisconnected = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Start the listener thread.\n\t\t\t\t\t\tstartListener();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Start the keep alive packets.\n\t\t\t\t\t\tkeepAlive();\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\tcatch(Exception e){errorOut(e, \"ERROR: Invalid charset encoding.\");}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "61ef66d77d52dd4533581ea7968e5f02", "score": "0.56040573", "text": "public boolean hasForceOffline() {\n return realMsgCase_ == 10300;\n }", "title": "" }, { "docid": "5dff8ea8e475087304bd8871c8b79c28", "score": "0.55916446", "text": "boolean disableDataSync();", "title": "" }, { "docid": "b988e1369cbed07b9c3300b9fd06850d", "score": "0.5591232", "text": "boolean hasConfigSync();", "title": "" }, { "docid": "7409a72932fd585cefb121a8d69a242d", "score": "0.5586083", "text": "@Test\n public void dontSyncNetworkAlreadyInSync() {\n Network net = createNetwork(\"net\");\n mockExistingNetworks(net);\n VdsNetworkInterface nic = createNicSyncedWithNetwork(\"nic0\", net);\n mockExistingIfaces(nic);\n\n SetupNetworksHelper helper = createHelper(createParametersForSync(nic));\n\n validateAndAssertNoChanges(helper);\n }", "title": "" }, { "docid": "9b3a1b39edea0474073e2555ffb68128", "score": "0.55696464", "text": "private synchronized void connectToLocalPeers(){\n\t\tLog.d(\"Wallet\", \"Connecting to local peers\");\n\t\tsynchronized(appState.connectedPeersLock) {\n\t\t\t//clear out any which have disconnected\n\t\t\tfor (Peer peer : appState.connectedPeers) {\n\t\t\t\tif (!peer.isRunning())\n\t\t\t\t\tappState.connectedPeers.remove(peer);\n\t\t\t}\n\n\t\t\tif (appState.connectedPeers.size() < 3) {\n\t\t\t\tfor (InetSocketAddress isa : appState.discoverPeers()) {\n\t\t\t\t\tNetworkConnection conn = createNetworkConnection(isa);\n\t\t\t\t\tif (conn == null) {\n\t\t\t\t\t\tappState.removeBadPeer(isa);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tPeer peer = new Peer(appState.params, conn, appState.blockChain, appState.wallet);\n\t\t\t\t\t\tpeer.start();\n\t\t\t\t\t\tappState.connectedPeers.add(peer);\n\t\t\t\t\t\tif (appState.connectedPeers.size() >= 8)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5dbfacaef09e7580b99fcb6df670535c", "score": "0.55691487", "text": "public void run() {\r\n try {\r\n byte[] buffer = new byte[1024];\r\n MulticastSocket socket = new MulticastSocket(this.port);\r\n socket.joinGroup(this.group);\r\n boolean runPeer = true;\r\n\r\n while (runPeer) {\r\n // keepAlive condition for config f\r\n if ((this.proposerPhase.equals(phase1)) && (this.prepareOkCount >= this.peer.quorum)) {\r\n // Majority prepare ok received, send accept-request\r\n if (updateRequired) {\r\n this.proposalValue = this.updatedProposalValue;\r\n }\r\n System.out.println(\">> \" + this.memberName + \": Prepare-Ok majority achieved!\");\r\n System.out.println(\">> \" + this.memberName\r\n + \": Starting Phase2. Sending accept-requests with value: \" + this.proposalValue);\r\n this.proposerPhase = PeerThread.phase2;\r\n String outputMessageType = \"acceptRequest\";\r\n // Outgoing message schema: senderID:messageType-IdOfProposalSent-value\r\n String outputmsg = this.memberName + \":\" + outputMessageType + \"-\" + this.activeProposalId + \"-\"\r\n + this.proposalValue;\r\n this.server.sendMessage(outputmsg, outputMessageType, this);\r\n\r\n }\r\n\r\n if ((this.proposerPhase.equals(phase2)) && (this.acceptOkCount >= this.peer.quorum) && this.keepAlive) {\r\n if (this.proposalValue.equals(this.peer.president) && this.faulty != 1) {\r\n System.out.println(\">> \" + this.memberName + \": Accept-Ok majority achieved!\");\r\n System.out.println(\">> \" + this.memberName\r\n + \": Sending decide message. Paxos has agreed on value: \" + this.proposalValue + \"\\n\");\r\n\r\n this.proposerPhase = PeerThread.phase3;\r\n String outputMessageType = \"decide\";\r\n // Outgoing message schema: senderID:messageType-IdOfProposalSent-value\r\n String outputmsg = this.memberName + \":\" + outputMessageType + \"-\" + this.activeProposalId + \"-\"\r\n + this.proposalValue;\r\n this.server.sendMessage(outputmsg, outputMessageType, this);\r\n } else if (this.faulty == 1) {\r\n this.proposerPhase = PeerThread.phase3;\r\n } else {\r\n System.out.println(\">> \" + this.memberName + \": \" + \"Paxos protocol error E0!\");\r\n }\r\n\r\n }\r\n\r\n DatagramPacket packet = new DatagramPacket(buffer, buffer.length);\r\n socket.receive(packet);\r\n String msg = new String(packet.getData(), packet.getOffset(), packet.getLength());\r\n String senderName = msg.split(\":\")[0];\r\n String msgContent = msg.split(\":\")[1];\r\n processMessage(senderName, msgContent);\r\n\r\n }\r\n\r\n socket.close();\r\n\r\n } catch (Exception e) {\r\n // e.printStackTrace();\r\n Thread.currentThread().interrupt();\r\n System.exit(1);\r\n }\r\n\r\n }", "title": "" }, { "docid": "c3fb1a10d28e5e24d3546fff46e8d96b", "score": "0.55504066", "text": "boolean getLegacyMassDisconnect();", "title": "" }, { "docid": "c3fb1a10d28e5e24d3546fff46e8d96b", "score": "0.55504066", "text": "boolean getLegacyMassDisconnect();", "title": "" }, { "docid": "150f4f81465fd834ee994aee6a42c023", "score": "0.5548921", "text": "boolean hasRelayClientsConnected();", "title": "" }, { "docid": "7acaf7bcc1de0cfad4245c57247c6b18", "score": "0.5548144", "text": "boolean hasStreamingToLocalClient();", "title": "" }, { "docid": "2b401c5750d4e7c25a136b4b285ecbd4", "score": "0.5541368", "text": "public boolean isConnected(){\n return true;\n }", "title": "" }, { "docid": "da14d4387d88d4b6f5a1851a7161672f", "score": "0.5523638", "text": "public static synchronized Boolean addKnownPeers(clientSocket peer) {\n if ((knownPeers.size() - outgoing.size() + 1) <= Integer.parseInt(config.get(\"maximumIncommingConnections\"))) {\n knownPeers.add(peer);\n if (peer.type != \"client from server\") {\n outgoing.add(peer);\n }\n log.info(\"Added peer to peerlist\");\n return true;\n }\n log.info(\"Did not add peer to peerlist\");\n return false;\n }", "title": "" }, { "docid": "f22c3a126591f5c159bc5728ee86aeaf", "score": "0.54819596", "text": "@Override\n public boolean isBlocking() {\n return true;\n }", "title": "" }, { "docid": "d1b94fa2d994aeddc98f5e62de000f48", "score": "0.5475703", "text": "com.google.protobuf.BoolValue getSync();", "title": "" }, { "docid": "7b385643d81b007e5e20c468414fc01a", "score": "0.54661155", "text": "int getRelaysConnected();", "title": "" }, { "docid": "79eba2eb05d95bc892be72e3ff3bf71e", "score": "0.54483885", "text": "final boolean isShared() {\n/* 484 */ return (this.nextWaiter == SHARED);\n/* */ }", "title": "" }, { "docid": "15260a47ae99e3a28bd40c82dbedf272", "score": "0.54457706", "text": "public boolean isVSyncRequested() {\n/* 814 */ return this.vsync;\n/* */ }", "title": "" }, { "docid": "7db3135969452936bc25d3cc6c8b3a6c", "score": "0.5438831", "text": "boolean isSynchronized();", "title": "" }, { "docid": "b823adbb6c88184b606e4ea2b98fb90f", "score": "0.54371023", "text": "public static boolean isSigned_synced() {\n return false;\n }", "title": "" }, { "docid": "3569cb169c1aa7e5f4564dabe4ee67bb", "score": "0.54344684", "text": "boolean isRemoteOnly();", "title": "" }, { "docid": "55bd59b8c2b73a9eb3691f136d5c91a2", "score": "0.5426329", "text": "@java.lang.Override\n public boolean getIsSyncFeatureEnabled() {\n return isSyncFeatureEnabled_;\n }", "title": "" }, { "docid": "2ffcb42cf750bf23cf12cbce6c5c68ff", "score": "0.54226524", "text": "public TransportProtocolAlgorithmSync() {\r\n }", "title": "" }, { "docid": "fdfdb3e206fda77c66ef62819c1ff99e", "score": "0.54109097", "text": "@java.lang.Override\n public boolean hasIsSyncFeatureEnabled() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "title": "" }, { "docid": "44089ecdf5c4af588f098708eccd278a", "score": "0.54044735", "text": "@Override\npublic void onPeerDeclined(Room room, List<String> arg1) {\nupdateRoom(room);\n}", "title": "" }, { "docid": "1a264054b500c3a1c646d0b55e515a8d", "score": "0.5403066", "text": "public Builder setNeedSyncFromUs(boolean value) {\n \n needSyncFromUs_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7b47c47c40e2f7a84e75700eb8134607", "score": "0.54026496", "text": "public boolean vSyncEnabled() {\n return getOptions().vSync;\n }", "title": "" }, { "docid": "b26a07abd576d17f882a9945f80848f0", "score": "0.5398182", "text": "boolean hasRelayedGameServerSteamId();", "title": "" }, { "docid": "6b53683fae8c11d7e6a66818678e5976", "score": "0.53969204", "text": "final boolean isOnSyncQueue(Node paramNode) {\n/* 1632 */ if (paramNode.waitStatus == -2 || paramNode.prev == null)\n/* 1633 */ return false; \n/* 1634 */ if (paramNode.next != null) {\n/* 1635 */ return true;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1644 */ return findNodeFromTail(paramNode);\n/* */ }", "title": "" }, { "docid": "89e2eb21f26bb213a4c8d4f847c9e164", "score": "0.5389694", "text": "private static boolean performRemoteSync(Bundle bundle, Context context) {\n\t\tfinal SharedPreferences settingsPrefs = context.getSharedPreferences(PrefUtils.SETTINGS_NAME, MODE_PRIVATE);\n\t\tfinal boolean onlySyncWifi = settingsPrefs.getBoolean(context.getString(R.string.sync_only_wifi_key), false);\n\n\t\tif (onlySyncWifi && !isWifiConnected(context)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfinal boolean forceRemoteRefresh = bundle.getBoolean(EXTRA_FORCE_REFRESH, false);\n\t\tfinal long lastSync = PrefUtils.getLastRemoteSync(context);\n\t\tfinal long currentTime = System.currentTimeMillis();\n\t\tboolean notSyncMinInterval = true;\n\t\tif (currentTime - lastSync < MIN_INTERVAL_TO_NOT_SYNC) {\n\t\t\tif (DEBUG_MODE) {\n\t\t\t\tLog.d(TAG, \"No refresh because minimum interval to not sync (\" + MIN_INTERVAL_TO_NOT_SYNC + \" ms) is not yet over!\");\n\t\t\t}\n\t\t\tnotSyncMinInterval = false;\n\t\t}\n\n\t\treturn forceRemoteRefresh || notSyncMinInterval;\n\t}", "title": "" }, { "docid": "ff6c54928ecd6e448ae9afda16f8e4d0", "score": "0.5384795", "text": "@Override\r\n \tpublic boolean canBeSteppedOn() {\r\n\t\treturn true; //TODO: fix zoda het nie lukt als ge er op staat maar et net activeert\r\n \t}", "title": "" }, { "docid": "73b5a9d5b1c39fa1b3c99ff2b2723c65", "score": "0.53834015", "text": "boolean getRelay3();", "title": "" }, { "docid": "4f0ed66ed720b74c9e362b90e090f3a3", "score": "0.5376202", "text": "public void set_is_connected(boolean _is_connected);", "title": "" }, { "docid": "f7308be7c39d36f1b16b1f8da2256e60", "score": "0.5376189", "text": "boolean isMine() {\n return (_sync.writerThread() == Thread.currentThread());\n }", "title": "" }, { "docid": "47dc6c532ae27ea8cd51796aedae09c7", "score": "0.53673905", "text": "boolean wasRemote();", "title": "" }, { "docid": "aa934db5b9efb5a23227df76d1bd4f30", "score": "0.53589785", "text": "public boolean isConnecting();", "title": "" }, { "docid": "6354fe365f1f50a80c58efaa5c3fe9fe", "score": "0.53340095", "text": "@Override\npublic boolean PreSyncTaskCall() {\n\treturn checkBeforePost();\n}", "title": "" }, { "docid": "4dccd7528b84ba15f1e93289e3e287dd", "score": "0.5323681", "text": "int inSyncReplicasNums(long masterPutWhere);", "title": "" }, { "docid": "6f30990d534a4cf398ccba6a5d0f6afe", "score": "0.53173506", "text": "public synchronized void notInterestedInMe()\n\t{\n\t\tpeerInterested = false;\n\t}", "title": "" }, { "docid": "89dc33a4fb3a21927c4328a156868a90", "score": "0.5314348", "text": "protected boolean testPeer(Peer peer) {\n\t\ttry {\n\t\t\tpeer.sendMessageToPeer(RUBTConstants.KEEPALIVE_MESSAGE);\n\t\t\treturn true;\n\t\t} catch (IOException ioe) {\n\t\t\tthis.connectedPeers.remove(peer);\n\t\t\tpeer.removeMessageListener(this);\n\t\t\tpeer.disconnect();\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.53142595", "text": "boolean isConnected();", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.53142595", "text": "boolean isConnected();", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.53142595", "text": "boolean isConnected();", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.53142595", "text": "boolean isConnected();", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.53142595", "text": "boolean isConnected();", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.53142595", "text": "boolean isConnected();", "title": "" }, { "docid": "7037b01105b9e68f58fd9eb621391661", "score": "0.53142595", "text": "boolean isConnected();", "title": "" }, { "docid": "c3fe60b64c7a036451ec35c8143ea258", "score": "0.53134847", "text": "public boolean hasAcceptBeFriends() {\n return realMsgCase_ == 10101;\n }", "title": "" }, { "docid": "6b47b5ed1f64c5e92fedf42d68322f7a", "score": "0.53031105", "text": "@SmallTest\n\tpublic void testSyncTasksLocallyCompleteBug() {\n//\t\tlocal not, remote not\n//\t\tlocalcomplete, remote complete\n\t}", "title": "" }, { "docid": "0176810b7440b6f8e25249c039fafbba", "score": "0.53013337", "text": "int getRelayClientsConnected();", "title": "" }, { "docid": "12bd84efbe54bdb1b7915db508a4ac09", "score": "0.52979296", "text": "@java.lang.Override\n public boolean getSyncFlag() {\n return syncFlag_;\n }", "title": "" }, { "docid": "7e9606afefe06a56178bf912acdb4398", "score": "0.529604", "text": "boolean addPeer(String peer) throws EthereumJavaException;", "title": "" }, { "docid": "f2a277675f922a120346ece5b8b5c963", "score": "0.52790236", "text": "public Boolean autoSync() {\n return this.autoSync;\n }", "title": "" }, { "docid": "260cac9b5c02aa267ad4930e8240b150", "score": "0.527745", "text": "protected void onSyncStateUpdated() {\n\n }", "title": "" }, { "docid": "cdeb9e79397fd3df1a5625d304f70b32", "score": "0.5271077", "text": "boolean getRelay2();", "title": "" }, { "docid": "d4331420deffd79c2deaea351f610a0d", "score": "0.5265995", "text": "private void syncDataToServer() {\n Logger.LogError(\"isSyncInProgress\", \"\" + isSyncInProgress);\n Logger.LogError(\"B2CApp.b2cPreference.isUpdatedCollections()\", \"\" + B2CApp.b2cPreference.isUpdatedCollections());\n Logger.LogError(\"B2CApp.b2cPreference.isFilledCustomers()\", \"\" + B2CApp.b2cPreference.isFilledCustomers());\n if (!isSyncInProgress && B2CApp.b2cPreference.isFilledCustomers()) {\n\n if (!B2CApp.b2cPreference.isUpdatedCollections())\n startSyncNewCollections();\n else {\n //\tToast.makeText(mContext, \"B2C Auto-Sync - Collections are uptodate\", Toast.LENGTH_SHORT).show();\n\n\n ArrayList<PendingOrderData> pendingOrderDataArrayList = (ArrayList<PendingOrderData>) B2CApp.getINSTANCE().getRoomDB().pendingorderdata_dao().fetchCustomSelection();\n\t\t\t\t\t/*boolean isOrdersUptodate = (B2CApp.b2cLdbs.fetchCustomSelection(mContext,B2CTableCreate.TABLE_B2C_PENDING_ORDERS,\n\t\t\t\t\t\t\t\t\tnull,B2CTableCreate.COLOUMNS_PENDING_ORDERS.so_item_key.name()+ \" < \"+ \"0\"+ \" OR \"\n\t\t\t\t\t\t\t\t\t+ B2CTableCreate.COLOUMNS_PENDING_ORDERS.is_synced_to_server.name() + \" = \" + \"0\") == null);*/\n\n if (pendingOrderDataArrayList.size() > 0) {\n updatePendingOrdersToServer();\n }else {\n startSyncAddAllNewEvent();\n }\n //\tToast.makeText(mContext, \"B2C Auto-Sync - Pending Orders are uptodate\", Toast.LENGTH_SHORT).show();\n\n //\tToast.makeText(mContext, \"B2C Auto-Sync - Pending Orders are uptodate\", Toast.LENGTH_SHORT).show();\n }\n }else\n B2CApp.b2cPreference.setFULLYSYNCEDTOSERVER(true);\n }", "title": "" }, { "docid": "b1778cc02d9f868f3c2c811ce8512a9b", "score": "0.5264547", "text": "boolean hasPbroadcast();", "title": "" }, { "docid": "79f3af1bdf1a5ba8e4bd2e933e7f5df8", "score": "0.5258124", "text": "boolean getRelay5();", "title": "" } ]
a04c042a05c763dc80efdef1b2de0a64
This constructor initializes the model and view objects for the rooms menu and once a button is pressed in the hotel rooms menu the action listeners and the appropriate actionPerformed method will be executed where it will be directed to another method to perform the required tasks.
[ { "docid": "4916a5c184904b5f971bf7dafe62758f", "score": "0.7353453", "text": "public RoomMenuInteraction(BookedHotelRooms roomsModel, HotelRoomsMenu roomsView)\n {\n this.roomsModel = roomsModel;\n this.roomsView = roomsView;\n \n roomsView.getNextButton().addActionListener(new ActionListener()\n {\n public void actionPerformed(ActionEvent e) \n {\n handleNextButtonPress();\n }\n });\n \n roomsView.getNextButton().addMouseListener(new java.awt.event.MouseAdapter()\n {\n public void mouseEntered(java.awt.event.MouseEvent evt) \n {\n mouseEnteredNextHover();\n }\n \n public void mouseExited(java.awt.event.MouseEvent evt) \n {\n mouseExitedNextHover();\n }\n });\n }", "title": "" } ]
[ { "docid": "fca957ae782cbf36b326e2c72b4eeace", "score": "0.6757228", "text": "public viewRoomsGUI() {\n initComponents();\n setText();\n \n }", "title": "" }, { "docid": "b6e0002efcf6e46aafb73e2f7a2a5e7d", "score": "0.6720905", "text": "public AllocateRooms() {\n initComponents();\n }", "title": "" }, { "docid": "3b89ba0da5f5eef4f566b72bd08edb56", "score": "0.66294223", "text": "private void initAddRoomButton() {\n\t\tButton roomButton = (Button) findViewById(R.id.home_creator_add_room_button);\n\t\troomButton.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tEditText edit = (EditText) findViewById(R.id.home_creator_new_room_name);\n\t\t\t\tString roomName = WordUtils.capitalizeFully(edit.getText()\n\t\t\t\t\t\t.toString());\n\n\t\t\t\tif (roomName.equals(\"\")) {\n\t\t\t\t\tToastMessages.enterRoomName();\n\t\t\t\t} else {\n\t\t\t\t\tRoom room = new Room(roomName);\n\n\t\t\t\t\tint nbLights = lightsPicker.getValue();\n\t\t\t\t\tfor (int l = 0; l < nbLights; l++) {\n\t\t\t\t\t\tString name = getNextLight();\n\t\t\t\t\t\troom.addLight(new Light(name, 50, demoMultiplier));\n\t\t\t\t\t}\n\n\t\t\t\t\tint nbAppliances = appliancesPicker.getValue();\n\t\t\t\t\tfor (int l = 0; l < nbAppliances; l++) {\n\t\t\t\t\t\tString name = getNextApplianceName();\n\t\t\t\t\t\troom.addAppliance(new Appliance(name, 50,\n\t\t\t\t\t\t\t\tdemoMultiplier));\n\t\t\t\t\t}\n\n\t\t\t\t\tint nbMultimedias = multimediaPicker.getValue();\n\t\t\t\t\tfor (int l = 0; l < nbMultimedias; l++) {\n\t\t\t\t\t\tString name = getNextMultimedia();\n\t\t\t\t\t\troom.addHomeCinema(new HomeCinema(name, 50,\n\t\t\t\t\t\t\t\tdemoMultiplier));\n\t\t\t\t\t}\n\n\t\t\t\t\tint nbWaters = waterPicker.getValue();\n\t\t\t\t\tfor (int l = 0; l < nbWaters; l++) {\n\t\t\t\t\t\tString name = getNextWater();\n\t\t\t\t\t\troom.addWater(new Water(name, demoMultiplier));\n\t\t\t\t\t}\n\n\t\t\t\t\tapp.addRoom(room);\n\n\t\t\t\t\tclearEdit(edit);\n\n\t\t\t\t\trefreshRooms();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "4e19fe3de3c8690bbffaa42c46bb629a", "score": "0.6559361", "text": "public RoomViewGui() {\n initComponents();\n }", "title": "" }, { "docid": "77b2290e764c2cff497f52aa58c5d5ef", "score": "0.65223074", "text": "public Room() {\n initComponents();\n }", "title": "" }, { "docid": "1b70a95e90cd6b575cc5b7620062c898", "score": "0.62830335", "text": "private void createRooms()\n {\n Room outside, theatre, pub, lab, office, cellar, bathroom, classroomA, classroomB, southCorridor, northCorridor;\n\n // create the rooms\n outside = new Room(\"outside the main entrance of the university\", \"outside\", true);\n theatre = new Room(\"in a lecture theatre\", \"theatre\", false, true, \"pair-of-keys\");\n pub = new Room(\"in the campus pub\", \"pub\", true);\n lab = new Room(\"in a computing lab\", \"lab\", true);\n office = new Room(\"in the computing admin office\", \"office\", true, true, \"pair-of-keys\");\n cellar = new Room(\"in the cellar of the theatre\", \"cellar\", true, true, \"bolt-cutter\");\n bathroom = new Room(\"in the stinky fossaw\", \"bathroom\", true);\n classroomA = new Room(\"in a classroom for students in their first year on the course, with many tables and a desk lying around\",\n \"classroomA\", true);\n classroomB = new Room(\"in a classroom for students in their second year on the course.\\nIt's a mess, with tables and chairs scattered\"+\n \" all over because of the previous investigation\", \"classroomB\", true);\n southCorridor = new Room(\"at a corridor connecting the outside to the main building.\\nSigns on the left and right indicate the\"+\n \" classrooms for first and second year, respectively.\\nThe corridor continues north\",\n \"southCorridor\", true);\n northCorridor = new Room(\"at a corridor connecting the south corridor to the rest of the first floor.\\nSigns on the left and\"\n +\" right indicate the computer lab and theatre, respectively.\\nTo the north, a sign says 'Main Office'\", \"northCorridor\", true);\n\n // initialise room exits\n outside.setExit(\"north\", southCorridor);\n outside.setExit(\"west\", pub);\n\n theatre.setExit(\"west\", northCorridor);\n theatre.setExit(\"down\", cellar);\n\n pub.setExit(\"east\", outside);\n\n lab.setExit(\"east\", northCorridor);\n\n office.setExit(\"south\", northCorridor);\n office.setExit(\"east\", bathroom);\n\n cellar.setExit(\"up\", theatre);\n\n bathroom.setExit(\"west\", office);\n\n classroomA.setExit(\"east\", southCorridor);\n\n classroomB.setExit(\"west\", southCorridor);\n\n southCorridor.setExit(\"south\", outside);\n southCorridor.setExit(\"west\", classroomA);\n southCorridor.setExit(\"east\", classroomB);\n southCorridor.setExit(\"north\", northCorridor);\n\n northCorridor.setExit(\"south\", southCorridor);\n northCorridor.setExit(\"west\", lab);\n northCorridor.setExit(\"east\", theatre);\n northCorridor.setExit(\"north\", office);\n\n //set itens in rooms\n\n office.createItem(\"flashlight\", \" with around half it's battery left.\\nCan be used to flash light at things. Duh.\",\n \"A flashlight that can be used to illuminate dark places\", 1.0, true);\n office.createItem(\"note\", \"a note, presumably left by the admin.\\nMay contain useful information\", \"March 24th, 2018\\nMiles lost\"+\n \" the keys to the cellar again. While we try to arrange some new ones,\\nwe're keeping the door open with some chains and a padlock\"+\n \" to lock it up.\\n\\nMarch 25th, 2018\\nGoddammit, Steve lost damn keys to the padlock! Now I need to ask ol' Frank at the pub\\nfor\"+\n \" some bolt cutters if I wanna get in the cellar. Just great.\", 0.1, true); \n theatre.createItem(\"gameboy\", \", thrown away recently.\",\n \"It looks recently discarded. Might be a clue.\", 2.0, true);\n lab.createItem(\"table\",\", heavy and probably useless right now.\",\n \"It's made of sturdy wood and has many drawers. Maybe there's something in them?\", 15.0, false);\n lab.createItem(\"pair-of-keys\", \", two of them, old and slightly rusty.\",\n \"The tags on the keys say 'Main Office' and 'Theatre'.\", 0.5, true);\n classroomA.createItem(\"diary\", \" with a 'Hello Kitty' logo.\\nMaybe there's something interesting in it?\",\n \"March 23th, 2018\\nBy God, that Greg kid is a pain in the butt! Always sticking his nose where it doesn't belong.\\nHe dared to\"+\n \" tell me that one 'shouldn't smoke weed' on school grounds and that he was going to 'report me to the principal'.\\nAs if he's\"+\n \" got anything to do with this.\\nIn times like this I'm glad I have Brad. I'm gonna ask him to deal with this. I'm sure this\"+\n \" idiot will not bother me again.\\n\\nMarch 24th, 2018\\nThe idiot beat the kid! I wanted Brad to scare him a little, not punch\"+\n \" the boy!\\nI screamed at him and after a fight, I broke up with him. I love the guy, but I don't want to be together with a brute!\\n\\n\"+\n \"March 29th, 2018\\nGreg has gone missing. And Brad is acting weird. Oh God... please tell he did not do what I think he did...\",\n 2.0, true);\n classroomB.createItem(\"notebook\", \" that seemingly belongs to one of the students.\\nMaybe there's some sort of clue in it?\",\n \"March 23th, 2018\\nJess has been complaining about a little bitch called Greg. Told me he said he was gonna snitch on her.\\nShe said she wanted me to 'talk to him', but I\"+\n \" know what she really wanted. I would like to him snitch with two teeth missing, haha.\\n\\nMarch 24th, 2018\\nThat hoe broke up \"+\n \"with me! With ME! All because I punched a nerd? She asked for it!\\nThat damn little snitch... that's all his fault! Oh, but he's\"+\n \" gonna pay. I called Adam, and we're gonna teach him a lesson!\\n\\nMarch 26th, 2018\\nShit, shit, shit... the little shit\"+\n \" came to me today. Said he was going to the cops since we broke his arm. Goddammit, I can't go to jail!\\nAdam said he stole the\"+\n \" padlock keys from Steve's office.\\nHe says we can grab the little snitch, knock him out and trap him in cellar, then toss the\"+\n \" keys out.\\nHe will never get out and we'll never get in trouble.\\nI'm not a killer, but... I still won't be one if he dies\"+\n \" from natural causes, right?\", 2.0, true);\n pub.createItem(\"bolt-cutter\", \", heavy and rusted, but still very much functional\",\n \"A small label on the handle says 'Property\"+\n \" of Frank, do not touch'.\",8.0, true);\n\n player.setCurrentRoom(outside);\n }", "title": "" }, { "docid": "0bd7b36a58e1baa8cf6db28b1334e370", "score": "0.62623197", "text": "public HotelRoomView(String title) {\n\t\tsuper(title);\n\t\tthis.setJMenuBar(new HotelRoomsMenuBar());\n\t\tthis.add(new HotelRoomsMainPanel());\n\t\tthis.pack();\n\t\tthis.setSize(1000, 500);\n\t\tthis.setLocation(getCenterOnScreen(this));\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setVisible(true);\n\t\tlogger.log(Level.FINE, \"Initialized Hotel Room View\");\n\t}", "title": "" }, { "docid": "de1dabfd5b3724ea03f9bdd23f5967fa", "score": "0.62441385", "text": "private void initialize() {\r\n\t\tfrmHotelmanagement = new JFrame();\r\n\t\tfrmHotelmanagement.setIconImage(Toolkit.getDefaultToolkit().getImage(\"F:\\\\imagesandicons\\\\hotel.jpg\"));\r\n\t\tfrmHotelmanagement.setTitle(\"HotelManagement\");\r\n\t\tfrmHotelmanagement.getContentPane().setBackground(Color.WHITE);\r\n\t\tfrmHotelmanagement.setBackground(Color.WHITE);\r\n\t\tfrmHotelmanagement.setBounds(400, 100, 1058, 771);\r\n\t\tfrmHotelmanagement.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmHotelmanagement.getContentPane().setLayout(null);\r\n\t\tfrmHotelmanagement.setVisible(true);\r\n\t\tJButton btnNewCustomerAdd = new JButton(\"New Customer Add\");\r\n\t\tbtnNewCustomerAdd.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tNewCustomer nwc=new NewCustomer();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewCustomerAdd.setForeground(Color.WHITE);\r\n\t\tbtnNewCustomerAdd.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnNewCustomerAdd.setBackground(Color.BLACK);\r\n\t\tbtnNewCustomerAdd.setBounds(25, 140, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnNewCustomerAdd);\r\n\t\t\r\n\t\tJButton btnRooms = new JButton(\"Rooms\");\r\n\t\tbtnRooms.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t//\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tRooms r=new Rooms();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRooms.setForeground(Color.WHITE);\r\n\t\tbtnRooms.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnRooms.setBackground(Color.BLACK);\r\n\t\tbtnRooms.setBounds(25, 178, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnRooms);\r\n\t\t\r\n\t\tJButton btnAllEmployeeInfo = new JButton(\"All Employee Info\");\r\n\t\tbtnAllEmployeeInfo.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tALLEmployeeInfo il=new ALLEmployeeInfo();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAllEmployeeInfo.setForeground(Color.WHITE);\r\n\t\tbtnAllEmployeeInfo.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnAllEmployeeInfo.setBackground(Color.BLACK);\r\n\t\tbtnAllEmployeeInfo.setBounds(25, 216, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnAllEmployeeInfo);\r\n\t\t\r\n\t\tJButton btnAllCustomerInfo = new JButton(\"All Customer Info\");\r\n\t\tbtnAllCustomerInfo.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tALLCUstomerInfo il=new ALLCUstomerInfo();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAllCustomerInfo.setForeground(Color.WHITE);\r\n\t\tbtnAllCustomerInfo.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnAllCustomerInfo.setBackground(Color.BLACK);\r\n\t\tbtnAllCustomerInfo.setBounds(25, 254, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnAllCustomerInfo);\r\n\t\t\r\n\t\tJButton btnManagerInfo = new JButton(\"Check Out\");\r\n\t\tbtnManagerInfo.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tCheckOut c=new CheckOut();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnManagerInfo.setForeground(Color.WHITE);\r\n\t\tbtnManagerInfo.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnManagerInfo.setBackground(Color.BLACK);\r\n\t\tbtnManagerInfo.setBounds(25, 292, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnManagerInfo);\r\n\t\t\r\n\t\tJButton btnUpdateRoomStatus = new JButton(\"Update Room Status\");\r\n\t\tbtnUpdateRoomStatus.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tUpdateRoom upr=\tnew UpdateRoom();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnUpdateRoomStatus.setForeground(Color.WHITE);\r\n\t\tbtnUpdateRoomStatus.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnUpdateRoomStatus.setBackground(Color.BLACK);\r\n\t\tbtnUpdateRoomStatus.setBounds(25, 330, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnUpdateRoomStatus);\r\n\t\t\r\n\t\tJButton btnSearchRoom = new JButton(\"Search Room\");\r\n\t\tbtnSearchRoom.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tSearchRooms sr=new SearchRooms();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSearchRoom.setForeground(Color.WHITE);\r\n\t\tbtnSearchRoom.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnSearchRoom.setBackground(Color.BLACK);\r\n\t\tbtnSearchRoom.setBounds(25, 368, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnSearchRoom);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"\");\r\n\t\tlblNewLabel.setVerticalAlignment(SwingConstants.TOP);\r\n\t\tlblNewLabel.setIcon(new ImageIcon(\"F:\\\\imagesandicons\\\\pexels-photo-2507010.jpeg\"));\r\n\t\tlblNewLabel.setBounds(413, 179, 615, 415);\r\n\t\tfrmHotelmanagement.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Enjoy Your Life while You Can\");\r\n\t\tlblNewLabel_1.setIcon(new ImageIcon(\"F:\\\\imagesandicons\\\\HotelPhoto1.jpg\"));\r\n\t\tlblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 40));\r\n\t\tlblNewLabel_1.setForeground(new Color(0, 0, 0));\r\n\t\tlblNewLabel_1.setBounds(108, 45, 694, 46);\r\n\t\tfrmHotelmanagement.getContentPane().add(lblNewLabel_1);\r\n\t\t\r\n\t\tJButton btnManagerInfo_1 = new JButton(\"Manager Info\");\r\n\t\tbtnManagerInfo_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tManagerInfo mai=new ManagerInfo();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnManagerInfo_1.setForeground(Color.WHITE);\r\n\t\tbtnManagerInfo_1.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnManagerInfo_1.setBackground(Color.BLACK);\r\n\t\tbtnManagerInfo_1.setBounds(25, 444, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnManagerInfo_1);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"Hotel Del Luna\");\r\n\t\tlabel.setIcon(new ImageIcon(\"F:\\\\imagesandicons\\\\hotel.jpg\"));\r\n\t\tlabel.setForeground(Color.RED);\r\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 25));\r\n\t\tlabel.setBounds(600, 619, 290, 92);\r\n\t\tfrmHotelmanagement.getContentPane().add(label);\r\n\t\t\r\n\t\tJButton btnOwnerInfo = new JButton(\"Owner Info\");\r\n\t\tbtnOwnerInfo.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tOwnerInfo in=new OwnerInfo();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOwnerInfo.setForeground(Color.WHITE);\r\n\t\tbtnOwnerInfo.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnOwnerInfo.setBackground(Color.BLACK);\r\n\t\tbtnOwnerInfo.setBounds(25, 482, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnOwnerInfo);\r\n\t\t\r\n\t\tJButton btnAboutUs = new JButton(\"About Del Luna\");\r\n\t\tbtnAboutUs.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tAbout hotel=new About();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAboutUs.setForeground(Color.WHITE);\r\n\t\tbtnAboutUs.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnAboutUs.setBackground(Color.BLACK);\r\n\t\tbtnAboutUs.setBounds(25, 520, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnAboutUs);\r\n\t\t\r\n\t\tJButton btnUpdateCustomer = new JButton(\"Update Customer\");\r\n\t\tbtnUpdateCustomer.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tUpdateCustomer uc=new UpdateCustomer();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnUpdateCustomer.setForeground(Color.WHITE);\r\n\t\tbtnUpdateCustomer.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnUpdateCustomer.setBackground(Color.BLACK);\r\n\t\tbtnUpdateCustomer.setBounds(25, 406, 294, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnUpdateCustomer);\r\n\t\t\r\n\t\tJButton btnBack = new JButton(\"Back\");\r\n\t\tbtnBack.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tfrmHotelmanagement.setVisible(false);\r\n\t\t\t\tHomePage hp=new HomePage();\r\n\t\t\t\t}\r\n\t\t});\r\n\t\tbtnBack.setForeground(Color.WHITE);\r\n\t\tbtnBack.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 22));\r\n\t\tbtnBack.setBackground(Color.BLACK);\r\n\t\tbtnBack.setBounds(25, 641, 138, 25);\r\n\t\tfrmHotelmanagement.getContentPane().add(btnBack);\r\n\t}", "title": "" }, { "docid": "46786d3aec4dcea1e540e41dbb850543", "score": "0.62180245", "text": "public Controller() {\n\t\t\n\t\tview = new View();\n\t\tcurState = Type.MAINMENU;\n\t\tview.OPButton.addActionListener(new OPButtonListener());\n\t\tview.NHButton.addActionListener(new NHButtonListener());\n\t\tview.backButton.addActionListener(new RestartButtonListener());\n\t\tview.choice1.addActionListener(new ChoiceButtonListener());\n\t\tview.choice2.addActionListener(new ChoiceButtonListener());\n\t\tview.choice3.addActionListener(new ChoiceButtonListener());\n\t\tview.choice4.addActionListener(new ChoiceButtonListener());\n\t\tview.next.addActionListener(new NextListener());\n\t\tview.serialize.addActionListener(new SerializeButtonListener());\n\t\tview.deserialize.addActionListener(new SerializeButtonListener());\t\n\t\t\n\t\tview.addKeyListener(new CustomKeyListener());\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "579252d74f103f1e24f338cf43f88eaa", "score": "0.6178603", "text": "private void createRooms()\n {\n Room cell, cell2, cell3, cell4, hallwayCenter, hallwayRight, hallwayLeft, \n hanger, cargo, vehicle, \n office, storage, spaceship, ship, escape, airlock, bathroom;\n\n Item cellKey[] = {new Item(\"•Key 🔑\", 2)};\n Item stuffedAnimal[] = {new Item(\"•StuffedAnimal 🐶\", 4)};\n Item toothBrush[] = {new Item(\"•ToothBrush\", 2)};\n Item itemNothing[] = {new Item(\"•Nothing\", 0)};\n Item dignity[] = {new Item(\"•Your Dignity\", 100)};\n Item guilt[] = {new Item(\"•Your Guilt\", 0)};\n \n Stuffs bed[] = {new Stuffs(\" Bed\")};\n Stuffs toilet[] = {new Stuffs(\" Toilet 🚽\")};\n Stuffs box[] = {new Stuffs(\" Lots of Boxes 📦 📦 📦\")};\n Stuffs vehicles[] = {new Stuffs(\" Lots of Cars and Stuff\")};\n Stuffs stuff[] = {new Stuffs(\" Lots of Spaceships and Stuff\")};\n Stuffs cabinet[] = {new Stuffs(\" Cabinet ⌸\")};\n Stuffs desk[] = {new Stuffs(\" Desk 💻🖥🖱⌨\")};\n Stuffs chair[] = {new Stuffs(\" Office Chair 💺\")};\n Stuffs stuffNothing[] = {new Stuffs(\" Nothing ☐\")};\n Stuffs doors[] = {new Stuffs(\" Lots of Doors 🚪 🚪 🚪\")};\n Stuffs sign[] = {new Stuffs(\" Sign with Numbers ⌺\")};\n Stuffs sign2[] = {new Stuffs(\" Enter Code to enter Cockpit\")};\n\n cell = new Room(\"in a Prison Cell\");\n cell2 = new Room(\"in Prison Cell 2\");\n cell3 = new Room(\"in Prison Cell 3\");\n cell4 = new Room(\"in Prison Cell 4\");\n hallwayCenter = new Room(\"in the Center Hallway\");\n hallwayRight = new Room(\"in the Right Hallway\");\n hallwayLeft = new Room(\"in the Left Hallway\");\n hanger = new Room(\"in the SpaceShip Hanger\");\n office = new Room(\"in the Office\");\n storage = new Room(\"in the Storage Room\");\n ship = new Room(\"in the SpaceShip Area\");\n spaceship = new Room(\"in a SpaceShip\");\n cargo = new Room(\"in the Cargo area\");\n vehicle = new Room(\"in the Vehicle area\");\n escape = new Room(\"Have Escapend👏. Type 'quit' to quit\");\n airlock = new Room(\"Dead☠. Type 'quit' to quit\");\n bathroom = new Room(\"in the Office Bathroom\");\n\n cell.setExit(\"cell_door\", hallwayCenter);\n \n cell2.setExit(\"cell_door\", hallwayCenter);\n \n cell3.setExit(\"cell_door\", hallwayCenter);\n \n cell4.setExit(\"cell_door\", hallwayCenter);\n\n hallwayRight.setExit(\"hanger_door\", hanger);\n hallwayRight.setExit(\"air_lock_door\", airlock);\n hallwayRight.setExit(\"center_hallway\", hallwayCenter);\n \n hallwayLeft.setExit(\"office_door\", office);\n hallwayLeft.setExit(\"center_hallway\", hallwayCenter);\n \n hallwayCenter.setExit(\"your_cell\", cell);\n hallwayCenter.setExit(\"prison_cell_2\", cell2);\n hallwayCenter.setExit(\"prison_cell_3\", cell3);\n hallwayCenter.setExit(\"prison_cell_4\", cell4);\n hallwayCenter.setExit(\"right_hallway\", hallwayRight);\n hallwayCenter.setExit(\"left_hallway\", hallwayLeft);\n \n office.setExit(\"storage_door\", storage);\n office.setExit(\"bathroom\", bathroom);\n office.setExit(\"left_hallway\", hallwayLeft);\n \n storage.setExit(\"office_door\", office);\n \n bathroom.setExit(\"office_door\", office);\n\n hanger.setExit(\"spaceship_area\", ship);\n hanger.setExit(\"cargo_area\", cargo);\n hanger.setExit(\"vehicle_area\", vehicle);\n hanger.setExit(\"right_hallway\", hallwayRight);\n \n ship.setExit(\"space_ship\", spaceship);\n\n spaceship.setExit(\"spaceship_cockpit\", spaceship);\n spaceship.setExit(\"bathroom\", bathroom);\n\n cell = addItems(cell, cellKey);\n cell = addItems(cell, dignity);\n cell = addItems(cell, guilt);\n \n cell2 = addItems(cell2, stuffedAnimal);\n cell2 = addItems(cell2, toothBrush);\n \n bathroom = addItems(bathroom, toothBrush);\n \n hallwayCenter = addItems(hallwayCenter, itemNothing);\n \n hallwayRight = addItems(hallwayRight, itemNothing);\n \n hallwayLeft = addItems(hallwayLeft, itemNothing);\n \n storage = addItems(storage, itemNothing);\n \n office = addItems(office, itemNothing);\n \n cargo = addItems(cargo, itemNothing);\n \n vehicle = addItems(vehicle, itemNothing);\n \n hanger = addItems(hanger, itemNothing);\n \n ship = addItems(ship, itemNothing);\n \n cell = addStuff(cell, bed);\n cell = addStuff(cell, toilet);\n \n cell2 = addStuff(cell2, bed);\n cell2 = addStuff(cell2, toilet);\n \n cell3 = addStuff(cell3, bed);\n cell3 = addStuff(cell3, toilet);\n \n cell4 = addStuff(cell4, bed);\n cell4 = addStuff(cell4, toilet);\n \n hallwayCenter = addStuff(hallwayCenter, doors);\n \n hallwayRight = addStuff(hallwayRight, doors);\n \n hallwayLeft = addStuff(hallwayLeft, doors);\n\n spaceship = addStuff(spaceship, sign2);\n \n ship = addStuff(ship, stuff);\n \n office = addStuff(office, cabinet);\n office = addStuff(office, desk);\n office = addStuff(office, chair);\n \n storage = addStuff(storage, sign); \n storage = addStuff(storage, box);\n \n cargo = addStuff(cargo, box);\n \n vehicle = addStuff(vehicle, vehicles);\n \n hanger = addStuff(hanger, stuff);\n\n currentRoom = cell; // start game outside\n pastRoom = null;\n cockpitRoom = escape;\n }", "title": "" }, { "docid": "904642abe4a49fb771eba8fa3d7395a8", "score": "0.61761034", "text": "public HotelRoomsMainPanel() {\n\t\t\tmainTable = new JTable();\n\t\t\tmainTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\t\tmainTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);\n\t\t\tmainTable.setToolTipText(\"Select a Hotel room record to book or cancel.\");\n\n\t\t\tbookButton.setRequestFocusEnabled(false);\n\t\t\tbookButton.setMnemonic(KeyEvent.VK_R);\n\t\t\tbookButton.setToolTipText(\"Book the hotel room selected in the above table.\");\n\n\t\t\tJScrollPane tableScroll = new JScrollPane(mainTable);\n\t\t\ttableScroll.setSize(500, 250);\n\n\t\t\tJPanel bookingPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));\n\t\t\tbookingPanel.add(bookButton);\n\t\t\tJPanel bottomPanel = new JPanel(new BorderLayout());\n\t\t\tbottomPanel.add(bookingPanel, BorderLayout.SOUTH);\n\n\t\t\tthis.setLayout(new BorderLayout());\n\t\t\tthis.add(new SearchPanel(), BorderLayout.NORTH);\n\t\t\tthis.add(tableScroll, BorderLayout.CENTER);\n\t\t\tthis.add(bottomPanel, BorderLayout.SOUTH);\n\t\t\tlogger.log(Level.FINE, \"Initialized Hotel Room Main Panel\");\n\t\t}", "title": "" }, { "docid": "aee020658d677b1da1bc56ea8947b8c9", "score": "0.61654115", "text": "private void createRooms()\n {\n \n // downstairs rooms\n sittingRoom = new Room(\"sitting room\",\"in the sitting room\");\n hallway = new Room(\"hallway\",\"in the hallway\");\n diningRoom = new Room(\"dining room\", \"in the dining room\");\n utilityArea = new Room(\"utility area\", \"in the utility area\");\n kitchen = new Room(\"kitchen\", \"in the kitchen\");\n driveway = new Room(\"driveway\", \"on the driveway outside\");\n bottomOfStairs = new Room(\"stairs\", \"at the bottom of the stairs\");\n garden = new Room(\"garden\", \"outside in the garden\");\n garage = new Room(\"garage\", \"in the cold garage\");\n \n // upstairs rooms\n topOfStairs = new Room(\"top of stairs\", \"at the top of the stairs\");\n spareBedroom = new Room(\"spare bedroom\", \"in the spare bedroom\");\n oldLanding = new Room(\"old landing\", \"the old landing by the airing cupboard\");\n tobysBedroom = new Room(\"toby's bedroom\", \"in Toby's bedroom\");\n simonsBedroom = new Room(\"simon's bedroom\", \"in Simon's bedroom\");\n newLanding1 = new Room(\"new landing 1\", \"halfway along the new landing in the extension\");\n showerRoom = new Room(\"shower room\", \"the shower room\");\n newLanding2 = new Room(\"new landing 2\", \"the end of the new landing in the extension\");\n mumdadsBedroom = new Room(\"parent's bedroom\", \"mum and dad's bedroom\");\n bathroom = new Room(\"bathroom\", \"in the bathroom\");\n attic = new Room(\"attic\", \"the dusty attic\");\n transporterRoom = new TransporterRoom(\"transporter room\", \"in the transporter room\", roomMachine);\n \n rooms.add(sittingRoom);\n rooms.add(hallway);\n rooms.add(diningRoom);\n rooms.add(utilityArea);\n rooms.add(kitchen);\n rooms.add(driveway);\n rooms.add(bottomOfStairs);\n rooms.add(garden);\n rooms.add(garage);\n \n rooms.add(topOfStairs);\n rooms.add(spareBedroom);\n rooms.add(oldLanding);\n rooms.add(tobysBedroom);\n rooms.add(simonsBedroom);\n rooms.add(newLanding1);\n rooms.add(showerRoom);\n rooms.add(newLanding2);\n rooms.add(mumdadsBedroom);\n rooms.add(bathroom);\n rooms.add(attic);\n rooms.add(transporterRoom);\n \n \n // initialise downstairs room exits\n sittingRoom.setExit(\"east\", hallway);\n sittingRoom.addItem(nose);\n \n hallway.setExit(\"north\", diningRoom);\n hallway.setExit(\"east\", bottomOfStairs);\n hallway.setExit(\"south\", driveway);\n hallway.setExit(\"west\", sittingRoom);\n hallway.addItem(duke);\n \n diningRoom.setExit(\"east\", utilityArea);\n diningRoom.setExit(\"south\", hallway);\n diningRoom.addItem(tobysDinner);\n \n utilityArea.setExit(\"north\", kitchen);\n utilityArea.setExit(\"south\", garage);\n utilityArea.setExit(\"west\", diningRoom);\n utilityArea.addItem(guineaPig);\n \n kitchen.setExit(\"south\", utilityArea);\n kitchen.setExit(\"west\", garden);\n kitchen.addItem(mincePies);\n \n driveway.setExit(\"north\", hallway);\n driveway.addItem(car);\n \n bottomOfStairs.setExit(\"west\", hallway);\n bottomOfStairs.setExit(\"up\", topOfStairs);\n \n garden.setExit(\"east\", kitchen);\n garden.addItem(mole);\n \n garage.setExit(\"north\", utilityArea);\n garage.addItem(tRex);\n \n //initilise upstairs room exits\n topOfStairs.setExit(\"north\", oldLanding);\n topOfStairs.setExit(\"east\", newLanding1);\n topOfStairs.setExit(\"west\", spareBedroom);\n topOfStairs.setExit(\"down\", bottomOfStairs);\n topOfStairs.addItem(clothesBasket);\n \n spareBedroom.setExit(\"east\", topOfStairs);\n \n oldLanding.setExit(\"north\", simonsBedroom);\n oldLanding.setExit(\"south\", topOfStairs);\n oldLanding.setExit(\"west\", tobysBedroom);\n oldLanding.setExit(\"up\", attic);\n \n tobysBedroom.setExit(\"east\", oldLanding);\n tobysBedroom.addItem(spider);\n tobysBedroom.addItem(toby);\n \n simonsBedroom.setExit(\"south\", oldLanding);\n \n newLanding1.setExit(\"north\", showerRoom);\n newLanding1.setExit(\"east\", newLanding2);\n newLanding1.setExit(\"west\", topOfStairs);\n \n showerRoom.setExit(\"south\", newLanding1);\n showerRoom.addItem(showerGel);\n \n newLanding2.setExit(\"north\", mumdadsBedroom);\n newLanding2.setExit(\"south\", bathroom);\n newLanding2.setExit(\"west\", newLanding1);\n \n mumdadsBedroom.setExit(\"south\", newLanding2);\n mumdadsBedroom.addItem(jerry);\n \n bathroom.setExit(\"north\", newLanding2);\n bathroom.addItem(towel);\n \n attic.setExit(\"east\", transporterRoom);\n attic.addItem(spider);\n attic.addItem(actionMan);\n \n transporterRoom.setExit(\"somewhere\", null);\n \n \n \n \n }", "title": "" }, { "docid": "eebb93c8007e66f4d0524c517dc9cf7e", "score": "0.61575764", "text": "public void initialize() {\n\t\thotelRegistry = new ArrayList<>();\n\t\thotelRegistry.add(new OneKingRoom(\"100\",true));\n\t\thotelRegistry.add(new TwoDoubleRoom(\"101\",true));\n\t\thotelRegistry.add(new OneKingRoom(\"102\",true));\n\t\thotelRegistry.add(new TwoDoubleWCotRoom(\"103\",true));\n\t\thotelRegistry.add(new OneQueenRoom(\"104\",true));\n\t\thotelRegistry.add(new OneKingRoom(\"105\",true));\n\t\thotelRegistry.add(new OneQueenRoom(\"106\",true));\n\t\thotelRegistry.add(new TwoDoubleRoom(\"107\",true ));\n\t\thotelRegistry.add(new OneQueenRoom(\"108\",true));\n\t\thotelRegistry.add(new TwoDoubleWCotRoom(\"109\",true));\n\t\thotelRegistry.add(new TwoDoubleRoom(\"110\",true));\n\t\thotelRegistry.add(new TwoDoubleRoom(\"111\",true));\n\t\thotelRegistry.add(new TwoDoubleRoom(\"112\",true));\n\t\thotelRegistry.add(new TwoDoubleRoom(\"113\",true));\n\t\thotelRegistry.add(new OneKingRoom(\"114\",true));\n\t\t\n\t\t/**\n\t\t * This will be used to create the layout of the main frame.\n\t\t */\n\t\tframe = new JFrame(\"Hotel Registry\");\n\t\tframe.setBounds(100, 100, 537, 428);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel room = new JLabel(\"Room\");\n\t\troom.setBounds(10, 27, 46, 14);\n\t\tframe.getContentPane().add(room);\n\t\t\n\t\tJLabel guest = new JLabel(\"Guest\");\n\t\tguest.setBounds(121, 27, 46, 14);\n\t\tframe.getContentPane().add(guest);\n\t\t\n\t\tJLabel room100 = new JLabel(\"100:\");\n\t\troom100.setBounds(10, 47, 29, 14);\n\t\tframe.getContentPane().add(room100);\n\t\t\n\t\tJLabel room101 = new JLabel(\"101:\");\n\t\troom101.setBounds(10, 70, 29, 14);\n\t\tframe.getContentPane().add(room101);\n\t\t\n\t\tJLabel room102 = new JLabel(\"102:\");\n\t\troom102.setBounds(10, 93, 29, 14);\n\t\tframe.getContentPane().add(room102);\n\t\t\n\t\tJLabel room103 = new JLabel(\"103:\");\n\t\troom103.setBounds(10, 116, 29, 14);\n\t\tframe.getContentPane().add(room103);\n\t\t\n\t\tJLabel room104 = new JLabel(\"104:\");\n\t\troom104.setBounds(10, 139, 29, 14);\n\t\tframe.getContentPane().add(room104);\n\t\t\n\t\tJLabel room105 = new JLabel(\"105:\");\n\t\troom105.setBounds(10, 162, 29, 14);\n\t\tframe.getContentPane().add(room105);\n\t\t\n\t\tJLabel room106 = new JLabel(\"106:\");\n\t\troom106.setBounds(10, 185, 29, 14);\n\t\tframe.getContentPane().add(room106);\n\t\t\n\t\tJLabel room107 = new JLabel(\"107:\");\n\t\troom107.setBounds(10, 208, 29, 14);\n\t\tframe.getContentPane().add(room107);\n\t\t\n\t\tJLabel room108 = new JLabel(\"108:\");\n\t\troom108.setBounds(10, 231, 29, 14);\n\t\tframe.getContentPane().add(room108);\n\t\t\n\t\tJLabel room109 = new JLabel(\"109:\");\n\t\troom109.setBounds(10, 254, 29, 14);\n\t\tframe.getContentPane().add(room109);\n\t\t\n\t\tJLabel room110 = new JLabel(\"110:\");\n\t\troom110.setBounds(10, 277, 29, 14);\n\t\tframe.getContentPane().add(room110);\n\t\t\n\t\tJLabel room111 = new JLabel(\"111:\");\n\t\troom111.setBounds(10, 300, 29, 14);\n\t\tframe.getContentPane().add(room111);\n\t\t\n\t\tJLabel room112 = new JLabel(\"112:\");\n\t\troom112.setBounds(10, 323, 29, 14);\n\t\tframe.getContentPane().add(room112);\n\t\t\n\t\tJLabel room113 = new JLabel(\"113:\");\n\t\troom113.setBounds(10, 346, 29, 14);\n\t\tframe.getContentPane().add(room113);\n\t\t\n\t\tJLabel room114 = new JLabel(\"114:\");\n\t\troom114.setBounds(10, 369, 29, 14);\n\t\tframe.getContentPane().add(room114);\n\t\t\n\t\tguest0 = new JTextField();\n\t\tguest0.setText(\"Vacant\");\n\t\tguest0.setBounds(61, 44, 166, 20);\n\t\tframe.getContentPane().add(guest0);\n\t\tguest0.setEditable(false);\n\t\tguest0.setColumns(10);\n\t\t\n\t\tguest1 = new JTextField();\n\t\tguest1.setText(\"Vacant\");\n\t\tguest1.setColumns(10);\n\t\tguest1.setEditable(false);\n\t\tguest1.setBounds(61, 67, 166, 20);\n\t\tframe.getContentPane().add(guest1);\n\t\t\n\t\tguest2 = new JTextField();\n\t\tguest2.setText(\"Vacant\");\n\t\tguest2.setColumns(10);\n\t\tguest2.setBounds(61, 90, 166, 20);\n\t\tguest2.setEditable(false);\n\t\tframe.getContentPane().add(guest2);\n\t\t\n\t\tguest3 = new JTextField();\n\t\tguest3.setText(\"Vacant\");\n\t\tguest3.setColumns(10);\n\t\tguest3.setBounds(61, 113, 166, 20);\n\t\tguest3.setEditable(false);\n\t\tframe.getContentPane().add(guest3);\n\t\t\n\t\tguest4 = new JTextField();\n\t\tguest4.setText(\"Vacant\");\n\t\tguest4.setColumns(10);\n\t\tguest4.setBounds(61, 136, 166, 20);\n\t\tguest4.setEditable(false);\n\t\tframe.getContentPane().add(guest4);\n\t\t\n\t\tguest5 = new JTextField();\n\t\tguest5.setText(\"Vacant\");\n\t\tguest5.setColumns(10);\n\t\tguest5.setBounds(61, 159, 166, 20);\n\t\tguest5.setEditable(false);\n\t\tframe.getContentPane().add(guest5);\n\t\t\n\t\tguest6 = new JTextField();\n\t\tguest6.setText(\"Vacant\");\n\t\tguest6.setColumns(10);\n\t\tguest6.setBounds(61, 182, 166, 20);\n\t\tguest6.setEditable(false);\n\t\tframe.getContentPane().add(guest6);\n\t\t\n\t\tguest7 = new JTextField();\n\t\tguest7.setText(\"Vacant\");\n\t\tguest7.setColumns(10);\n\t\tguest7.setBounds(61, 205, 166, 20);\n\t\tguest7.setEditable(false);\n\t\tframe.getContentPane().add(guest7);\n\t\t\n\t\tguest8 = new JTextField();\n\t\tguest8.setText(\"Vacant\");\n\t\tguest8.setColumns(10);\n\t\tguest8.setBounds(61, 228, 166, 20);\n\t\tguest8.setEditable(false);\n\t\tframe.getContentPane().add(guest8);\n\t\t\n\t\tguest9 = new JTextField();\n\t\tguest9.setText(\"Vacant\");\n\t\tguest9.setColumns(10);\n\t\tguest9.setBounds(61, 251, 166, 20);\n\t\tguest9.setEditable(false);\n\t\tframe.getContentPane().add(guest9);\n\t\t\n\t\tguest10 = new JTextField();\n\t\tguest10.setText(\"Vacant\");\n\t\tguest10.setColumns(10);\n\t\tguest10.setBounds(61, 274, 166, 20);\n\t\tguest10.setEditable(false);\n\t\tframe.getContentPane().add(guest10);\n\t\t\n\t\tguest11 = new JTextField();\n\t\tguest11.setText(\"Vacant\");\n\t\tguest11.setColumns(10);\n\t\tguest11.setBounds(61, 297, 166, 20);\n\t\tguest11.setEditable(false);\n\t\tframe.getContentPane().add(guest11);\n\t\t\n\t\tguest12 = new JTextField();\n\t\tguest12.setText(\"Vacant\");\n\t\tguest12.setColumns(10);\n\t\tguest12.setBounds(61, 320, 166, 20);\n\t\tguest12.setEditable(false);\n\t\tframe.getContentPane().add(guest12);\n\t\t\n\t\tguest13 = new JTextField();\n\t\tguest13.setText(\"Vacant\");\n\t\tguest13.setColumns(10);\n\t\tguest13.setBounds(61, 343, 166, 20);\n\t\tguest13.setEditable(false);\n\t\tframe.getContentPane().add(guest13);\n\t\t\n\t\tguest14 = new JTextField();\n\t\tguest14.setText(\"Vacant\");\n\t\tguest14.setColumns(10);\n\t\tguest14.setBounds(61, 366, 166, 20);\n\t\tguest14.setEditable(false);\n\t\tframe.getContentPane().add(guest14);\n\t\t\n\t\t/**\n\t\t * The menu inside the main frame will contain the action of registration and help.\n\t\t */\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tmenuBar.setBounds(0, 0, 521, 24);\n\t\tframe.getContentPane().add(menuBar);\n\t\t\n\t\tJMenu mnRegistry = new JMenu(\"Registry\");\n\t\tmnRegistry.setForeground(new Color(0, 0, 0));\n\t\tmnRegistry.setFont(new Font(\"Segoe UI\", Font.PLAIN, 12));\n\t\tmenuBar.add(mnRegistry);\n\t\t\n\t\t/**\n\t\t * By clicking Check in we will go to the class Check In.\n\t\t */\n\t\tJMenuItem mntmCheckIn = new JMenuItem(\"Check In\");\n\t\tmntmCheckIn.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed (ActionEvent e){\n\t\t\t\t CheckIn checkInWindow=new CheckIn();\n\t\t\t\t checkInWindow.checkIn.setVisible(true); \n\t\t\t}\t\n\t\t});\n\t\tmnRegistry.add(mntmCheckIn);\n\t\t\n\t\t/**\n\t\t * By clicking Check out we will go to the class Check out.\n\t\t */\n\t\tJMenuItem mntmCheckOut = new JMenuItem(\"Check Out\");\n\t\tmntmCheckOut.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed (ActionEvent e){\n\t\t\t\tCheckOut checkOutWindow=new CheckOut(); \n\t\t checkOutWindow.checkOut.setVisible(true); \n\t\t\t}\t\n\t\t});\n\t\tmnRegistry.add(mntmCheckOut);\n\t\t\n\t\t/**\n\t\t * By clicking Exit we will close the application.\n\t\t */\t\n\t\tJMenuItem mntmExit = new JMenuItem(\"Exit\");\n\t\tmntmExit.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed (ActionEvent e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\t\n\t\t});\n\t\tmnRegistry.add(mntmExit);\n\t\t\n\t\t/**\n\t\t * By clicking Help we will display my name and student number.\n\t\t */\t\n\t\tJMenu mnHelp = new JMenu(\"Help\");\n\t\tmnHelp.setMnemonic(KeyEvent.VK_H);\n\t\tmnHelp.setForeground(new Color(0, 0, 0));\n\t\tmenuBar.add(mnHelp);\n\t\t\n\t\tJMenuItem mntmAbout = new JMenuItem(\"About\");\n\t\tmntmAbout.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed (ActionEvent e){\n\t\t\t\tJOptionPane.showMessageDialog(frame,\n\t\t\t\t\t \"Jessica Ginesta Legasto \\n ID: A20363039\",\n\t\t\t\t\t \"About\",\n\t\t\t\t\t JOptionPane.PLAIN_MESSAGE);\n\t\t\t}\t\n\t\t});\n\t\tmnHelp.add(mntmAbout);\n\t\t\n\t\t/**\n\t\t * We will divide the layout into two panels in order to introduce a border.\n\t\t * In this part of the layout we will show the vacancies of each type of room.\n\t\t */\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(252, 34, 259, 352);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n \tpanel.setBorder(new LineBorder(Color.BLACK, 1, true));\n\t\t\n\t\t\n\t\tJLabel oneKing = new JLabel(\"One King\");\n\t\toneKing.setBounds(4, 59, 85, 14);\n\t\tpanel.add(oneKing);\n\t\t\n\t\tJLabel lblVacancies = new JLabel(\"Vacancies\");\n\t\tlblVacancies.setFont(new Font(\"Tahoma\", Font.PLAIN, 13));\n\t\tlblVacancies.setBounds(2, 0, 60, 20);\n\t\tpanel.add(lblVacancies);\n\t\t\n\t\tJLabel oneQueen = new JLabel(\"One Queen\");\n\t\toneQueen.setBounds(4, 132, 100, 14);\n\t\tpanel.add(oneQueen);\n\t\toneQueen.setHorizontalAlignment(SwingConstants.LEFT);\n\t\t\n\t\toneQueenNumber = new JTextField();\n\t\toneQueenNumber.setText(\"3\");\n\t\toneQueenNumber.setBounds(164, 129, 85, 20);\n\t\tpanel.add(oneQueenNumber);\n\t\toneQueenNumber.setEditable(false);\n\t\toneQueenNumber.setColumns(10);\n\t\t\n\t\tJLabel twoDoubleBeds = new JLabel(\"Two Double Beds\");\n\t\ttwoDoubleBeds.setBounds(4, 205, 100, 14);\n\t\tpanel.add(twoDoubleBeds);\n\t\ttwoDoubleBeds.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\n\t\ttwoDoubleBedsNumber = new JTextField();\n\t\ttwoDoubleBedsNumber.setText(\"6\");\n\t\ttwoDoubleBedsNumber.setBounds(164, 202, 85, 20);\n\t\tpanel.add(twoDoubleBedsNumber);\n\t\ttwoDoubleBedsNumber.setEditable(false);\n\t\ttwoDoubleBedsNumber.setColumns(10);\n\t\t\n\t\tJLabel twoDoubleBedsW = new JLabel(\"Two Double Beds w/Cot\");\n\t\ttwoDoubleBedsW.setBounds(4, 278, 150, 14);\n\t\tpanel.add(twoDoubleBedsW);\n\t\t\n\t\ttwoDoubleBedsWNumber = new JTextField();\n\t\ttwoDoubleBedsWNumber.setText(\"2\");\n\t\ttwoDoubleBedsWNumber.setBounds(164, 275, 85, 20);\n\t\tpanel.add(twoDoubleBedsWNumber);\n\t\ttwoDoubleBedsWNumber.setEditable(false);\n\t\ttwoDoubleBedsWNumber.setColumns(10);\n\t\t\n\t\toneKingNumber = new JTextField();\n\t\toneKingNumber.setText(\"4\");\n\t\toneKingNumber.setBounds(164, 56, 85, 20);\n\t\tpanel.add(oneKingNumber);\n\t\toneKingNumber.setEditable(false);\n\t\toneKingNumber.setColumns(10);\n\t}", "title": "" }, { "docid": "a3abd50302fa203aa44446b2f701a100", "score": "0.61309445", "text": "private void createRooms()\n {\n // create the rooms\n frontExit = new Room(\"at the front exit\");\n ropeExit = new Room(\"at the rope exit\");\n hallway1 = new Room(\"in an empty hallway\");\n hallway2 = new Room(\"in an empty hallway\");\n gallery = new Room(\"in the gallery\");\n computerRoom = new Room(\"in the computer room\");\n supplyRoom = new Room(\"in the supply room\");\n managerOffice = new Room(\"in the manager's office\");\n keyRoom = new Room(\"in the key room.\");\n shop = new Room(\"in the shop.\");\n safeRoom = new Room(\"in a safe room. There are so many valuables here!\");\n\n // initialise room exits\n frontExit.setExit(\"south\", ropeExit);\n\n ropeExit.setExit(\"north\", frontExit);\n ropeExit.setExit(\"south\", gallery);\n ropeExit.setExit(\"east\", hallway1);\n\n gallery.setExit(\"south\", shop);\n gallery.setExit(\"east\", hallway2);\n gallery.setExit(\"north\", ropeExit);\n\n shop.setExit(\"north\", gallery);\n shop.setExit(\"east\", safeRoom);\n\n safeRoom.setExit(\"west\", shop);\n\n hallway1.setExit(\"west\", ropeExit);\n hallway1.setExit(\"east\", computerRoom);\n\n hallway2.setExit(\"west\", gallery);\n hallway2.setExit(\"east\", managerOffice);\n\n managerOffice.setExit(\"west\", hallway2);\n managerOffice.setExit(\"north\", computerRoom);\n managerOffice.setExit(\"east\", keyRoom);\n\n computerRoom.setExit(\"west\", hallway1);\n computerRoom.setExit(\"north\", supplyRoom);\n computerRoom.setExit(\"south\", managerOffice);\n\n supplyRoom.setExit(\"south\", computerRoom);\n\n keyRoom.setExit(\"west\", managerOffice);\n\n currentRoom = ropeExit; // start game outside\n\n keyRoom.addItemToRoom(key);\n supplyRoom.addItemToRoom(largeSack);\n shop.addItemToRoom(energyDrink);\n computerRoom.addItemToRoom(keycard);\n gallery.addItemToRoom(painting);\n supplyRoom.addItemToRoom(toolbag);\n safeRoom.addItemToRoom(jewel);\n managerOffice.addItemToRoom(phone);\n computerRoom.addItemToRoom(computer);\n managerOffice.addItemToRoom(coat);\n\n keyRoom.setLock(true);\n safeRoom.setLock(true);\n }", "title": "" }, { "docid": "d82748f68a45b2bdc5c6619a153b3fc1", "score": "0.6129297", "text": "private void createRooms()\n {\n Room outside, theatre, pub, lab, office, porao, sotao;\n \n // create the rooms\n outside = new Room(\"outside the main entrance of the university\");\n theatre = new Room(\"in a lecture theatre\");\n pub = new Room(\"in the campus pub\");\n lab = new Room(\"in a computing lab\");\n office = new Room(\"in the computing admin office\");\n porao = new Room(\"in the porão\");\n sotao = new Room(\"in the sotão\");\n \n // initialise room exits\n outside.setExits(null, theatre, lab, pub, null, null);\n theatre.setExits(null, null, null, outside, null, null);\n pub.setExits(null, outside, null, null, null, null);\n lab.setExits(outside, office, null, null, null, null);\n office.setExits(null, null, null, lab, sotao, porao);\n porao.setExits(null, null, null,null, office, null);\n sotao.setExits(null, null, null,null, null, office);\n\n outside.setItens(\"sacola\",\"embalagem de biscoito\",null);\n theatre.setItens(\"livro preto misterioso\",\"caderno velho\", \"celular\");\n pub.setItens(\"garrafa quebrada\",null,null);\n lab.setItens(\"notebook escondido\",\"papel com números anotados\", null);\n office.setItens(\"registros de alunos\",\"caneca de café com simbolo do pt\",\"chave\");\n porao.setItens(\"baú\",\"jornais velhos\", null);\n sotao.setItens(\"manequim\", null,null);\n \n rooms.add(outside);\n rooms.add(theatre);\n rooms.add(pub);\n rooms.add(lab);\n rooms.add(office);\n rooms.add(porao);\n rooms.add(sotao);\n \n currentRoom = outside; // start game outside\n }", "title": "" }, { "docid": "d50ab0aac44cc4d279fc675e540ed4e0", "score": "0.6105374", "text": "public RoomRenter() { \n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "308f7119b1c234b5d38c16ebaeb16a8e", "score": "0.61005235", "text": "private void createRooms()\n {\n Room berlin, northFerry, london, glasgow, lochNess, isleOfMan, belfast, dublin, scotFerry, irishFerry, northEastFerry, westFerry, sthlm, oslo, helsinki, warsaw, prague, vienna, munich, zurich, amsterdam, brussels, paris, nantes, toulouse, monaco, southFerry, milan, rome, sicily, barcelona, madrid, lisbon, gibraltar;\n\n // create the rooms\n berlin = new Room(\"in Berlin... Some might call it the heart of Europe\");\n northFerry = new Room(\"about to take the ferry between Germany, Sweden and England\");\n london = new Room(\"in London where you might want to stay for a cup of tea or some fish'n'chips\");\n glasgow = new Room(\"in Glasgow... Don't stay here for too long, or you'll be stripped off your trousers and walk out of here in one o'them 'man-skirts'\");\n lochNess = new Room(\"at the mystical lake that is said to the Loch Ness monster\");\n isleOfMan= new Room(\"on the Isle of man. Watch out for goblins lurking around.\");\n belfast = new Room(\"in Belfast. They say the pubs are better here than those in Dublin\");\n dublin = new Room(\"in Dublin. They say the pubs are better here than those in Belfast\");\n scotFerry = new Room(\"about to take the ferry that goes between Scotland, Norhern Ireland and the Isle of Man\");\n irishFerry = new Room(\"about to take the ferry that goes between England, Ireland and the Isle of Man\");\n northEastFerry = new Room(\"about to take the ferry that goes between Sweden, Finland and Poland\");\n westFerry = new Room(\"about to take the ferry between England and France\");\n sthlm = new Room(\"in Stockholm, the capital of Sweden and the biggest city in Scandinavia\");\n oslo = new Room(\"in Oslo. Let's not talk about Oslo\");\n helsinki = new Room(\"in Helsinki where people claim that their vodka is better than the vodka made in Russia\");\n warsaw = new Room(\"in Warsaw where everything seems sooo cheap\");\n prague = new Room(\"in Prague, have some rest. There is cheap beer and the nightlife is said to be pretty good\");\n vienna = new Room(\"in Vienna. I wonder why the Spanish Riding School is located here and not in Spain?\");\n munich = new Room(\"at the borders of Munich. There is a sign that says: 'The city of Munich is only open to outsiders during Oktoberfest RAUS!'\");\n zurich = new Room(\"in Zurich. There sure are a lot of banks here\");\n amsterdam = new Room(\"welcome to Amsterdam the modern day Sodom and Gomorrah!\");\n brussels = new Room(\"in Brussels, everyone seems so serious here... At least there is good chocolate\");\n paris = new Room(\"in Paris. Grab a croissant and check out the Eiffel Tower\");\n nantes = new Room(\"in Nantes, home of the old Gauls that Asterix and Obelix are based on\");\n toulouse = new Room(\"in Toulouse which is known for its rich culinary culture\");\n monaco = new Room(\"in Monaco. Make sure to swing by the harbor and you'll get to see some expensive boats\");\n southFerry = new Room(\"about to take the Mediterranean ferry between Rome, Sicily and Barcelona\");\n milan = new Room(\"in Milan, home to some of the greatest fashion designers\");\n rome = new Room(\"in the city to where all roads lead to, Rome\");\n sicily = new Room(\"in Sicily. If you're not too careful some mobster might rob you\");\n barcelona = new Room(\"in Barcelona where the spoken language isn't spanish or catalan, it's football\");\n madrid = new Room(\"in Madrid. Did you know the oldest restaurant in the world is located here?\");\n lisbon = new Room(\"in Lisbon, which was home to Christopher Columbus for many years\");\n gibraltar = new Room(\"in Gibraltar. Hold onto your purse or a monkey might snatch it\");\n\n\n // initialise room exits\n berlin.setExit(\"north\", northFerry);\n berlin.setExit(\"east\", warsaw);\n berlin.setExit(\"south\", munich);\n berlin.setExit(\"west\", amsterdam);\n northFerry.setExit(\"north\", sthlm);\n northFerry.setExit(\"south\", berlin);\n northFerry.setExit(\"west\", london);\n london.setExit(\"north\", glasgow);\n london.setExit(\"east\", northFerry);\n london.setExit(\"south\", westFerry);\n london.setExit(\"west\", irishFerry);\n glasgow.setExit(\"north\", lochNess);\n glasgow.setExit(\"south\", london);\n glasgow.setExit(\"west\", scotFerry);\n lochNess.setExit(\"south\", glasgow);\n isleOfMan.setExit(\"north\", scotFerry);\n isleOfMan.setExit(\"south\", irishFerry);\n belfast.setExit(\"east\", scotFerry);\n belfast.setExit(\"south\", dublin);\n dublin.setExit(\"north\", belfast);\n dublin.setExit(\"east\", irishFerry);\n scotFerry.setExit(\"east\", glasgow);\n scotFerry.setExit(\"south\", isleOfMan);\n scotFerry.setExit(\"west\", belfast);\n irishFerry.setExit(\"north\", isleOfMan);\n irishFerry.setExit(\"east\", london);\n irishFerry.setExit(\"west\", dublin);\n northEastFerry.setExit(\"east\", helsinki);\n northEastFerry.setExit(\"south\", warsaw);\n northEastFerry.setExit(\"west\", sthlm);\n westFerry.setExit(\"north\", london);\n westFerry.setExit(\"south\", paris);\n sthlm.setExit(\"east\", northEastFerry);\n sthlm.setExit(\"south\", northFerry);\n sthlm.setExit(\"west\", oslo);\n oslo.setExit(\"east\", sthlm);\n helsinki.setExit(\"west\", northEastFerry);\n warsaw.setExit(\"north\", northEastFerry);\n warsaw.setExit(\"south\", prague);\n warsaw.setExit(\"west\", berlin);\n prague.setExit(\"north\", warsaw);\n prague.setExit(\"south\", vienna);\n prague.setExit(\"west\", munich);\n vienna.setExit(\"north\", prague);\n vienna.setExit(\"west\", zurich);\n munich.setExit(\"north\", berlin);\n munich.setExit(\"east\", prague);\n munich.setExit(\"south\", zurich);\n munich.setExit(\"west\", paris);\n zurich.setExit(\"north\", munich);\n zurich.setExit(\"east\", vienna);\n zurich.setExit(\"south\", milan);\n amsterdam.setExit(\"east\", berlin);\n amsterdam.setExit(\"south\", brussels);\n brussels.setExit(\"north\", amsterdam);\n brussels.setExit(\"southwest\", paris);\n paris.setExit(\"north\", westFerry);\n paris.setExit(\"northeast\", brussels);\n paris.setExit(\"east\", munich);\n paris.setExit(\"south\", toulouse);\n paris.setExit(\"west\", nantes);\n nantes.setExit(\"east\", paris);\n toulouse.setExit(\"north\", paris);\n toulouse.setExit(\"east\", monaco);\n toulouse.setExit(\"south\", barcelona);\n monaco.setExit(\"east\", milan);\n monaco.setExit(\"south\", southFerry);\n monaco.setExit(\"west\", toulouse);\n southFerry.setExit(\"north\", monaco);\n southFerry.setExit(\"east\", rome);\n southFerry.setExit(\"south\", sicily);\n southFerry.setExit(\"west\", barcelona);\n milan.setExit(\"north\", zurich);\n milan.setExit(\"south\", rome);\n milan.setExit(\"west\", monaco);\n rome.setExit(\"north\", milan);\n rome.setExit(\"west\", southFerry);\n sicily.setExit(\"north\", southFerry);\n barcelona.setExit(\"north\", toulouse);\n barcelona.setExit(\"east\", southFerry);\n barcelona.setExit(\"west\", madrid);\n madrid.setExit(\"east\", barcelona);\n madrid.setExit(\"south\", gibraltar);\n madrid.setExit(\"west\", lisbon);\n lisbon.setExit(\"east\", madrid);\n gibraltar.setExit(\"north\", madrid);\n\n\n currentRoom = berlin; // start game berlin\n \n // Add items to rooms\n munich.addItem(new Item(\"a Beer\", \"Some leftover beer\", 1));\n lochNess.addItem(new Item(\"a Monster Heart\", \"An enourmous heart\", 1));\n isleOfMan.addItem(new Item(\"some Fairy Dust\", \"Mythical dust\", 1));\n sicily.addItem(new Item(\"some Gunpowder\", \"Is used to fire old guns\", 1));\n gibraltar.addItem(new Item(\"some Monkey Hair\", \"some hair from a monkey \", 1));\n helsinki.addItem(new Item(\"an Iceblock\", \"A block of ice\", 1));\n warsaw.addItem(new Item(\"a Christmas Tree\", \"An affordable christmas tree\", 1));\n rome.addItem(new Item(\"some Ravioli\", \"So delicious\", 1));\n monaco.addItem(new Item(\"some Money\", \"A lot of cash\", 1));\n nantes.addItem(new Item(\"a Gaellic Helmet\", \"A banged up ancient helmet\", 1));\n\n // Medical Centers that can research cures\n vienna.addMedCenter(new String(\"East Research\"));\n brussels.addMedCenter(new String(\"Central Research\"));\n madrid.addMedCenter(new String(\"Mediterranean Research\"));\n\n // Added people that gives you hints\n sthlm.addPerson(new Person(\"Sven\", \"Nothing makes me feel better than some good old Italian Ravioli!\"));\n dublin.addPerson(new Person(\"Chav\", \"Even the beer in Munich is better than the shit beer in Belfast!\"));\n belfast.addPerson(new Person(\"Chad\", \"Even the beer in Munich is better than the shit beer in Dublin!\"));\n london.addPerson(new Person(\"Courtney\", \"Those mobsters in the Mediterranean are crazy!\"));\n paris.addPerson(new Person(\"Céline\", \"I have been to Loch Ness several times but I've never seen the monster...\"));\n lisbon.addPerson(new Person(\"Maria\", \"I really miss the nordic winter...\"));\n amsterdam.addPerson(new Person(\"Greta\", \"I really love Angel Dust, but the stuff they have in the UK is sooooo much better!\"));\n zurich.addPerson(new Person(\"Pièrre\", \"I went on a trip to Monaco last week.\\nHaven't seen my wallet since...\"));\n prague.addPerson(new Person(\"Piotr\", \"Did you know Asterix and Obelix were from west France?\"));\n }", "title": "" }, { "docid": "3a5e035fa4e7d113c335b6849687512b", "score": "0.60748166", "text": "public void initialize() {\n\t\tsetTitle(\"Agent Management - View\");\n\t\tsetBounds(100, 100, 1083, 540);\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tgetContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblAgentsInformation = new JLabel(\"Agents' Information\");\n\t\tlblAgentsInformation.setBounds(245, 14, 121, 16);\n\t\tgetContentPane().add(lblAgentsInformation);\n\t\t\n\t\tjList1 = new JList();\n\t\tjList1.setBounds(12, 57, 1041, 314);\n\t\tgetContentPane().add(jList1);\n\t\t\n\t\t//define add button\n\t\tJButton btnAdd = new JButton(\"Add\");\n\t\tbtnAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tAgentpart2 tc = new Agentpart2();\n\t\t\t\ttc.setVisible(true);\n\t\t\t\tdispose(); // Leave this in for now, easier than refreshing the list on save.\n\t\t\t}\n\t\t});\n\t\tbtnAdd.setBounds(12, 398, 97, 25);\n\t\tgetContentPane().add(btnAdd);\n\t\t\n\t\t//define edit button\n\t\tJButton btnEdit = new JButton(\"Edit\");\n\t\tbtnEdit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tString agentdata = (String)jList1.getSelectedValue();\n //get the ID number right after ID:\n\t\t\t\t\tPattern pattern = Pattern.compile(\"^ID: ([0-9]+)\");\n\t\t\t\t\tMatcher matcher = pattern.matcher(agentdata);\n\t\t\t\t\tif (matcher.find()) {\n\t\t\t\t\t System.out.println(matcher.group(1));\n\t\t\t\t\t}\n\t\t\t\t\tString part1 = matcher.group(1);\n\t\t\t\t\tAgentpart2 sendAgentId = new Agentpart2();\n\t\t\t\t\tsendAgentId.printAgentId(part1);\n\t\t\t\t\tsendAgentId.setVisible(true);\n\t\t\t\t} catch(Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tSystem.err.println(\"Error: \" + e1.getMessage());\n\t\t\t\t}\n\t\t\t\tdispose(); // Leave this in for now, easier than refreshing the list on save.\n\t\t\t}\n\t\t});\n\t\tbtnEdit.setBounds(163, 398, 97, 25);\n\t\tgetContentPane().add(btnEdit);\n\t\t\n\t\t//define delete button\n\t\tJButton btnDelete = new JButton(\"Delete\");\n\t\tbtnDelete.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tConnection conn = TravelExpertsDB.getConnection();\n\t\t\t\t\tString agentdata = (String)jList1.getSelectedValue();\n\t\t\t\t\t//get the ID number right after ID:\n\t\t\t\t\tPattern pattern = Pattern.compile(\"^ID: ([0-9]+)\");\n\t\t\t\t\tMatcher matcher = pattern.matcher(agentdata);\n\t\t\t\t\tif (matcher.find()) {\n\t\t\t\t\t System.out.println(matcher.group(1));\n\t\t\t\t\t}\n\t\t\t\t\tString part = matcher.group(1);\n\t\t\t\t\tString b = \"DELETE FROM agents WHERE AgentId='\" + part + \"'\";\n\t\t\t\t\tPreparedStatement pst=conn.prepareStatement(b);\n pst.execute();\n //give the user data deleted\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data Deleted\");\n\t\t\t\t\tpst.close();\n\t\t\t\t\t//refresh the list\n\t\t\t\t\tfilllist();\n\t\t\t\t} catch(Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tSystem.err.println(\"Error: \" + e1.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDelete.setBounds(309, 398, 97, 25);\n\t\tgetContentPane().add(btnDelete);\n\t\t\n\t\tJButton btnExit = new JButton(\"Exit\");\n\t\tbtnExit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnExit.setBounds(449, 398, 97, 25);\n\t\tgetContentPane().add(btnExit);\n\t}", "title": "" }, { "docid": "4726503ae796ce0c2aa06e6387bb4d32", "score": "0.6071409", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jMenuItem1 = new javax.swing.JMenuItem();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n hotelMenu = new javax.swing.JMenuItem();\n jMenuItem3 = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n jMenuItem5 = new javax.swing.JMenuItem();\n jMenuItem6 = new javax.swing.JMenuItem();\n jMenuItem7 = new javax.swing.JMenuItem();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem8 = new javax.swing.JMenuItem();\n jMenuItem9 = new javax.swing.JMenuItem();\n\n jMenuItem1.setText(\"jMenuItem1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setPreferredSize(new java.awt.Dimension(750, 500));\n setSize(new java.awt.Dimension(700, 500));\n\n jLabel1.setIcon(new ImageIcon(\"image/book-hotel-online.jpg\"));\n\n jLabel2.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(51, 153, 255));\n jLabel2.setText(\"Welcome to Hotel Reservation System\");\n jLabel2.setToolTipText(\"\");\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 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(114, 114, 114)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 447, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(202, 202, 202)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(119, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel1)\n .addContainerGap(375, Short.MAX_VALUE))\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 .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.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 jMenu1.setText(\"Hotel\");\n\n hotelMenu.setText(\"Hotel\");\n hotelMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n hotelMenuActionPerformed(evt);\n }\n });\n jMenu1.add(hotelMenu);\n\n jMenuItem3.setText(\"Room\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem3);\n\n jMenuItem2.setText(\"Facility\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Customer\");\n\n jMenuItem5.setText(\"Customer\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem5);\n\n jMenuItem6.setText(\"Guest\");\n jMenuItem6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem6ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem6);\n\n jMenuItem7.setText(\"Membership\");\n jMenuItem7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem7ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem7);\n\n jMenuBar1.add(jMenu2);\n\n jMenu3.setText(\"Booking\");\n\n jMenuItem8.setText(\"Search Room\");\n jMenuItem8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem8ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem8);\n\n jMenuItem9.setText(\"View Booking\");\n jMenuItem9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem9ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem9);\n\n jMenuBar1.add(jMenu3);\n\n setJMenuBar(jMenuBar1);\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(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "5d8a7c5ec9c586ede6a9652603db6066", "score": "0.6063619", "text": "public SelectionView() {\r\n\t\t\r\n\t\t\r\n\t\tnewsDataBaseModel = new NewsDataBaseModel();\r\n\r\n\r\n\t\t\t\r\n\t\t\r\n\t\t//Menu bar\r\n\t\tjmb = new JMenuBar();\r\n\t\t//file menu\r\n\t\tjmFile = new JMenu(\"File\");\r\n\t\tjmiLoad = new JMenuItem(\"Load\");\r\n\t\tjmiSave = new JMenuItem(\"Save\");\r\n\t\tjmiSave.setEnabled(false);\r\n\t\tjmiImport = new JMenuItem(\"Import\");\r\n\t\tjmiExport = new JMenuItem(\"Export\");\r\n\t\tjmiExport.setEnabled(false);\r\n\t\tjmFile.add(jmiLoad);\r\n\t\tjmFile.add(jmiSave);\r\n\t\tjmFile.add(jmiImport);\r\n\t\tjmFile.add(jmiExport);\r\n\t\tjmb.add(jmFile);\r\n\t\t//newsmakers menu\r\n\t\tjmNewsMaker = new JMenu(\"Newsmakers\");\r\n\t\tjmiAddNewsMaker = new JMenuItem(\"Add Newsmaker\");\r\n\t\tjmiEditNewsMaker = new JMenuItem(\"Edit Newsmaker\");\r\n\t\tjmiDeleteNewsMaker = new JMenuItem(\"Delete Newsmaker\");\r\n\t\tjmiDeleteNewsMakerList = new JMenuItem(\"Delete Newsmaker List\");\r\n\t\tjmNewsMaker.add(jmiAddNewsMaker);\r\n\t\tjmNewsMaker.add(jmiEditNewsMaker);\r\n\t\tjmNewsMaker.add(jmiDeleteNewsMaker);\r\n\t\tjmNewsMaker.add(jmiDeleteNewsMakerList);\r\n\t\tjmb.add(jmNewsMaker);\r\n\t\t//newsstories menu\r\n\t\tjmNewsStory = new JMenu(\"News Stories\");\r\n\t\tjmiAddNewsStory = new JMenuItem(\"Add News Story\");\r\n\t\tjmiEditNewsStory = new JMenuItem(\"Edit News Story\");\r\n\t\tjmiSortNewsStories = new JMenuItem(\"Sort News Stories\");\r\n\t\tjmiDeleteNewsStory = new JMenuItem(\"Delete News Story\");\r\n\t\tjmiDeleteAllNewsStories= new JMenuItem(\"Delete All News Stories\");\r\n\t\tjmNewsStory.add(jmiAddNewsStory);\r\n\t\tjmNewsStory.add(jmiEditNewsStory);\r\n\t\tjmNewsStory.add(jmiSortNewsStories);\r\n\t\tjmNewsStory.add(jmiDeleteNewsStory);\r\n\t\tjmNewsStory.add(jmiDeleteAllNewsStories);\r\n\t\tjmb.add(jmNewsStory);\r\n\t\t//Display menu\r\n\t\tjmDisplay = new JMenu(\"Display\");\r\n\t\tjmiPieChart = new JMenuItem(\"Pie Chart\");\r\n\t\tjmiText = new JMenuItem(\"Text\");\r\n\t\tjmDisplay.add(jmiPieChart);\r\n\t\tjmDisplay.add(jmiText);\r\n\t\tjmb.add(jmDisplay);\r\n\t\t\r\n\t\t//newsmakers list\r\n\t\t//TODO change this variable after uncommenting field.\r\n\t\tjlNewsMakerList = new JList<NewsMakerModel>(newsDataBaseModel.getNewsMakers());\r\n\t\tjspNewsMakerList = new JScrollPane(jlNewsMakerList);\r\n\t\tjpNewsMakerList = new JPanel(new BorderLayout());\r\n\t\tjpNewsMakerList.setBorder((BorderFactory.createTitledBorder (BorderFactory.createEtchedBorder (),\"News Makers\",\r\n TitledBorder.LEFT,TitledBorder.TOP))); //title\r\n\t\tjpNewsMakerList.add(jspNewsMakerList);\r\n\t\t\r\n\t\t//newsstory list\r\n\t\tjlNewsStoryList = new JList<NewsStory>(newsDataBaseModel.getNewsStories());\r\n\t\tjspNewsStoryList = new JScrollPane(jlNewsStoryList);\r\n\t\tjpNewsStoryList = new JPanel(new BorderLayout());\r\n\t\tjpNewsStoryList.setBorder((BorderFactory.createTitledBorder (BorderFactory.createEtchedBorder (),\"News Stories\",\r\n TitledBorder.LEFT,TitledBorder.TOP)));\r\n\t\tjpNewsStoryList.add(jspNewsStoryList);\r\n\t\t\r\n\t\t//split pane for the two lists\r\n\t\tsplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\r\n jpNewsMakerList, jpNewsStoryList);\r\n\t\tsplitPane.setResizeWeight(0.3);\r\n\t\t\r\n\r\n\t\t//enable status\r\n\t\tjmiEditNewsMaker.setEnabled(false);\r\n\t\tjmiDeleteNewsMaker.setEnabled(false);\r\n\t\tjmiDeleteNewsMakerList.setEnabled(false);\r\n\t\tjmiSave.setEnabled(false);\r\n\t\tjmiExport.setEnabled(false);\r\n\t\tjmiEditNewsStory.setEnabled(false);\r\n\t\tjmiSortNewsStories.setEnabled(false);\r\n\t\tjmiDeleteNewsStory.setEnabled(false);\r\n\t\tjmiDeleteAllNewsStories.setEnabled(false);\r\n\t\tjmiText.setEnabled(false);\r\n\t\tjmiPieChart.setEnabled(false);\r\n\t\t\r\n\t\t//size and adding menu bar and split pane.\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.add(jmb, BorderLayout.NORTH);\r\n\t\tthis.add(splitPane,BorderLayout.CENTER);\r\n\t\tthis.setTitle(\"Selection View\");\r\n\t\tthis.setSize(700,500);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "144d96533eae6e0bd5c8751edf02721c", "score": "0.6058286", "text": "public RoomSchedulerFrame()\n {\n initComponents();\n \n // Load the combo boxes with data.\n rebuildFacultyComboBoxes();\n rebuildDateComboBoxes();\n rebuildRoomRemoverComboBox();\n rebuildMonthComboBox();\n rebuildRemoveReservationComboBox();\n rebuildWaitlistRemoverComboBoxes();\n rebuildFacultyDeleteComboBox();\n displayReservation();\n displayTable();\n }", "title": "" }, { "docid": "199dcdd705029491ae0710eab3ba2349", "score": "0.60379326", "text": "private void initComponents(){\n\t\t// elements for error message\n\t\terrorMessage = new JLabel();\n\t\terrorMessage.setForeground(Color.RED);\n\n\t\t// elements for create equipment\n\t\tequipmentNameTextField = new JTextField();\n\t\tequipmentNameLabel = new JLabel();\n\t\tequipmentDescriptionTextField = new JTextField();\n\t\tequipmentDescriptionLabel = new JLabel();\n\t\tequipmentQuantityTextField = new JTextField();\n\t\tequipmentQuantityLabel = new JLabel();\n\t\taddEquipmentButton = new JButton();\n\n\t\t// elements for create supply\n\t\tsupplyNameTextField = new JTextField();\n\t\tsupplyNameLabel = new JLabel();\n\t\tsupplyDescriptionTextField = new JTextField();\n\t\tsupplyDescriptionLabel = new JLabel();\n\t\tsupplyQuantityTextField = new JTextField();\n\t\tsupplyQuantityLabel = new JLabel();\n\t\taddSupplyButton = new JButton();\n\n\t\t// elements for display equipment\n\t\tequipmentNames = new ArrayList<String>();\n\t\tequipmentList = new JList();\n\t\tequipmentList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tequipmentScrollPane = new JScrollPane(equipmentList);\n\t\tequipmentInfo = new JTextArea();\n\t\tequipmentName = \"\";\n\t\tequipmentDescription = \"\";\n\t\tequipmentQuantity = \"\";\n\n\t\t//elements for display supply\n\t\tsupplyNames = new ArrayList<String>();\n\t\tsupplyList = new JList();\n\t\tsupplyList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tsupplyScrollPane = new JScrollPane(supplyList);\n\t\tsupplyInfo = new JTextArea();\n\t\tsupplyName = \"\";\n\t\tsupplyDescription = \"\";\n\t\tsupplyQuantity = \"\";\n\n\t\t// refresh button\n\t\trefreshButton = new JButton();\n\t\trefreshButton.setText(\"Refresh\");\n\t\trefreshButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\trefreshButtonActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\t// global settings\n\t\tsetDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\tsetTitle(\"Equipment and Supplies\");\n\n\t\t// create equipment settings and listener\n\t\tequipmentNameLabel.setText(\"Name: \");\n\t\tequipmentDescriptionLabel.setText(\"Description: \");\n\t\tequipmentQuantityLabel.setText(\"Quantity: \");\n\t\taddEquipmentButton.setText(\"Add Equipment\");\n\t\taddEquipmentButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent evt){\n\t\t\t\taddEquipmentButtonActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\t// create supply settings and listener\n\t\tsupplyNameLabel.setText(\"Name: \");\n\t\tsupplyDescriptionLabel.setText(\"Description: \");\n\t\tsupplyQuantityLabel.setText(\"Quantity: \");\n\t\taddSupplyButton.setText(\"Add Supply\");\n\t\taddSupplyButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent evt){\n\t\t\t\taddSupplyButtonActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\n\n\t\t// create list listeners\n\t\tequipmentList.addListSelectionListener(new ListSelectionListener(){\n\t\t\tpublic void valueChanged(ListSelectionEvent evt){\n\t\t\t\tequipmentListValueChanged(evt);\n\t\t\t}\n\t\t});\n\t\tsupplyList.addListSelectionListener(new ListSelectionListener(){\n\t\t\tpublic void valueChanged(ListSelectionEvent evt){\n\t\t\t\tsupplyListValueChanged(evt);\n\t\t\t}\n\t\t});\n\n\t\t// layout\n\t\tGroupLayout layout = new GroupLayout(getContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\tlayout.setAutoCreateGaps(true);\n\t\tlayout.setAutoCreateContainerGaps(true);\n\t\tlayout.setHorizontalGroup(\n\t\t\t\tlayout.createParallelGroup()\n\t\t\t\t.addComponent(errorMessage)\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup()\n\t\t\t\t\t\t\t\t.addComponent(equipmentNameLabel)\n\t\t\t\t\t\t\t\t.addComponent(equipmentDescriptionLabel)\n\t\t\t\t\t\t\t\t.addComponent(equipmentQuantityLabel))\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup()\n\t\t\t\t\t\t\t\t.addComponent(equipmentNameTextField, 200, 200, 400)\n\t\t\t\t\t\t\t\t.addComponent(equipmentDescriptionTextField, 200, 200, 400)\n\t\t\t\t\t\t\t\t.addComponent(equipmentQuantityTextField, 200, 200, 400)\n\t\t\t\t\t\t\t\t.addComponent(addEquipmentButton))\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup()\n\t\t\t\t\t\t\t\t.addComponent(supplyNameLabel)\n\t\t\t\t\t\t\t\t.addComponent(supplyDescriptionLabel)\n\t\t\t\t\t\t\t\t.addComponent(supplyQuantityLabel))\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup()\n\t\t\t\t\t\t\t\t.addComponent(supplyNameTextField, 200, 200, 400)\n\t\t\t\t\t\t\t\t.addComponent(supplyDescriptionTextField, 200, 200, 400)\n\t\t\t\t\t\t\t\t.addComponent(supplyQuantityTextField, 200, 200, 400)\n\t\t\t\t\t\t\t\t.addComponent(addSupplyButton)))\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t.addComponent(equipmentScrollPane)\n\t\t\t\t\t\t.addComponent(supplyScrollPane))\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t.addComponent(equipmentInfo)\n\t\t\t\t\t\t.addComponent(supplyInfo))\n\t\t\t\t.addComponent(refreshButton, 600, 600, 600)\n\t\t\t\t);\n\n\t\tlayout.linkSize(SwingConstants.HORIZONTAL, new java.awt.Component[] {addEquipmentButton, equipmentNameTextField, equipmentDescriptionTextField, equipmentQuantityTextField});\n\t\tlayout.linkSize(SwingConstants.HORIZONTAL, new java.awt.Component[] {addSupplyButton, supplyNameTextField, supplyDescriptionTextField, supplyQuantityTextField});\n\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t.addComponent(errorMessage)\n\t\t\t\t.addGroup(layout.createParallelGroup()\n\t\t\t\t\t\t.addComponent(equipmentNameLabel)\n\t\t\t\t\t\t.addComponent(equipmentNameTextField)\n\t\t\t\t\t\t.addComponent(supplyNameLabel)\n\t\t\t\t\t\t.addComponent(supplyNameTextField))\n\t\t\t\t.addGroup(layout.createParallelGroup()\n\t\t\t\t\t\t.addComponent(equipmentDescriptionLabel)\n\t\t\t\t\t\t.addComponent(equipmentDescriptionTextField)\n\t\t\t\t\t\t.addComponent(supplyDescriptionLabel)\n\t\t\t\t\t\t.addComponent(supplyDescriptionTextField))\n\t\t\t\t.addGroup(layout.createParallelGroup()\n\t\t\t\t\t\t.addComponent(equipmentQuantityLabel)\n\t\t\t\t\t\t.addComponent(equipmentQuantityTextField)\n\t\t\t\t\t\t.addComponent(supplyQuantityLabel)\n\t\t\t\t\t\t.addComponent(supplyQuantityTextField))\n\t\t\t\t.addGroup(layout.createParallelGroup()\n\t\t\t\t\t\t.addComponent(addEquipmentButton)\n\t\t\t\t\t\t.addComponent(addSupplyButton))\n\t\t\t\t.addGroup(layout.createParallelGroup()\n\t\t\t\t\t\t.addComponent(equipmentScrollPane)\n\t\t\t\t\t\t.addComponent(supplyScrollPane))\n\t\t\t\t.addGroup(layout.createParallelGroup()\n\t\t\t\t\t\t.addComponent(equipmentInfo)\n\t\t\t\t\t\t.addComponent(supplyInfo))\n\t\t\t\t.addComponent(refreshButton)\n\t\t\t\t);\n\t\tpack();\n\t}", "title": "" }, { "docid": "f948574b1a7b59c743ff4efad62386a9", "score": "0.60298765", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n jLabel1 = new javax.swing.JLabel();\n roomNameTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n roomAddressTextField = new javax.swing.JTextField();\n alertLabel = new javax.swing.JLabel();\n addNewRoomButton = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n java.awt.GridBagLayout layout = new java.awt.GridBagLayout();\n layout.columnWidths = new int[] {0, 10, 0, 10, 0, 10, 0};\n layout.rowHeights = new int[] {0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0};\n getContentPane().setLayout(layout);\n\n jLabel1.setText(\"Add new room\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridwidth = 5;\n getContentPane().add(jLabel1, gridBagConstraints);\n\n roomNameTextField.setMinimumSize(new java.awt.Dimension(140, 25));\n roomNameTextField.setPreferredSize(new java.awt.Dimension(140, 25));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n getContentPane().add(roomNameTextField, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridwidth = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n getContentPane().add(jSeparator1, gridBagConstraints);\n\n jLabel2.setText(\"Room Name\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n getContentPane().add(jLabel2, gridBagConstraints);\n\n jLabel3.setText(\"Room Address\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n getContentPane().add(jLabel3, gridBagConstraints);\n\n roomAddressTextField.setMinimumSize(new java.awt.Dimension(140, 25));\n roomAddressTextField.setPreferredSize(new java.awt.Dimension(140, 25));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n getContentPane().add(roomAddressTextField, gridBagConstraints);\n\n alertLabel.setText(\"jLabel4\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.gridwidth = 5;\n getContentPane().add(alertLabel, gridBagConstraints);\n\n addNewRoomButton.setText(\"Add new room\");\n addNewRoomButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addNewRoomButtonActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.gridwidth = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n getContentPane().add(addNewRoomButton, gridBagConstraints);\n\n jButton1.setText(\"Close\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;\n getContentPane().add(jButton1, gridBagConstraints);\n\n pack();\n }", "title": "" }, { "docid": "215edcb862351d83625430991faf4b18", "score": "0.60054", "text": "public manageClassRoom() {\n initComponents();\n initLayout();\n }", "title": "" }, { "docid": "74cde549febe2f795ea7f0100e96d3b0", "score": "0.6003451", "text": "public Controller_menu()\r\n {\r\n view = new View_Menu();\r\n ctrl = new Controller_game();\r\n this.view.btn_play.addActionListener(this);\r\n this.view.btn_exit.addActionListener(this);\r\n }", "title": "" }, { "docid": "0c0ceb8372175d5a4f5352d70d1515c7", "score": "0.60013", "text": "private void createRooms()\n {\n Room trafalgarSquare, chinatown, oxfordStreet, soho, coventGarden, \n britishMuseum, stPancras, kingsCross, britishLibrary, leicesterSquare;\n\n // create the rooms\n trafalgarSquare = new Room(\"on Trafalgar Square\");\n chinatown = new Room(\"in Chinatown\");\n oxfordStreet = new Room(\"on Oxford Street\");\n soho = new Room(\"in Soho\");\n coventGarden = new Room(\"in Covent Garden\");\n britishMuseum = new Room(\"in the British Museum\");\n stPancras = new Room(\"in St Pancras\");\n kingsCross = new Room(\"in Kings Cross\");\n britishLibrary = new Room(\"in the British Library\");\n leicesterSquare = new Room(\"on Leicester Square\");\n\n // initialise room exits\n\n kingsCross.setExit(Direction.WEST, stPancras);\n stPancras.setExit(Direction.EAST, kingsCross);\n stPancras.setExit(Direction.WEST, britishLibrary);\n britishLibrary.setExit(Direction.EAST, stPancras);\n britishLibrary.setExit(Direction.SOUTH, britishMuseum);\n britishMuseum.setExit(Direction.NORTH, britishLibrary);\n britishMuseum.setExit(Direction.WEST, oxfordStreet);\n oxfordStreet.setExit(Direction.EAST, britishMuseum);\n britishMuseum.setExit(Direction.SOUTH, coventGarden);\n coventGarden.setExit(Direction.NORTH, britishMuseum);\n oxfordStreet.setExit(Direction.SOUTH, soho);\n soho.setExit(Direction.NORTH, oxfordStreet);\n soho.setExit(Direction.SOUTH, chinatown);\n chinatown.setExit(Direction.NORTH, soho);\n chinatown.setExit(Direction.SOUTH, leicesterSquare);\n leicesterSquare.setExit(Direction.NORTH, chinatown);\n leicesterSquare.setExit(Direction.EAST, coventGarden);\n coventGarden.setExit(Direction.WEST, leicesterSquare);\n leicesterSquare.setExit(Direction.SOUTH, trafalgarSquare);\n trafalgarSquare.setExit(Direction.NORTH, leicesterSquare);\n\n // initialise room items\n\n kingsCross.setItem(Item.BOTTLE, kingsCross);\n kingsCross.setItem(Item.BACKPACK, kingsCross);\n kingsCross.setItem(Item.SMARTPHONE, kingsCross);\n\n currentRoom = stPancras; // start game at St Pancras\n winningRoom = trafalgarSquare; //sets the winning room\n }", "title": "" }, { "docid": "e2c64d74512b80fcee1dad7d47ab9c63", "score": "0.5985926", "text": "private static void makeReservationMenu() throws FileNotFoundException \n {\n // variables needed to make reservations\n int partySize = 0;\n int nights = 0;\n int priceRange = 0;\n String roomNumber = \"\";\n Room room = null;\n String firstName = \"\";\n String lastName = \"\";\n String phoneNumber = \"\";\n boolean isMilitary = false;\n boolean isGov = false;\n boolean isMember = false;\n Guest guest = null;\n LinkedRoomList availableRooms = new LinkedRoomList();\n Reservation reservation = null;\n \n // print a blank line followed by menu title\n System.out.println(\"= = = = = = = = = = = = = = = = = = = = = = = =\");\n System.out.println(\" MAKE A RESERVATION MENU\");\n \n System.out.println(\" How many adults?\");\n \n // get the number of adults, must be at least 1\n partySize = getUserInputInt(1);\n \n System.out.println(\" How many nights?\"); \n \n // get the number of nights, must be at least 1\n nights = getUserInputInt(1);\n \n // get price range of user\n System.out.println(\"What is your price range?\");\n System.out.println(\"Enter your selection:\" + '\\n' +\n '\\t' + \"1. within $150-175/night\" + '\\n' +\n '\\t' + \"2. more than $175/night\");\n priceRange = getUserInputInt(1,2);\n\n availableRooms = roomOptionsTrimmer(partySize, priceRange, hotel.getEmptyRooms());\n\n System.out.println(\"These rooms match: (RoomNumber | RoomType | BedType | PricePerNight)\");\n \n // We want to a new line after printing 4 rooms, so we need a counter to keep track\n int newLineCounter = 0;\n \n if (availableRooms.isEmpty()) \n {\n System.out.println(\"Couldn't find any rooms matching this criteria, try again\");\n \n // if we can't find any room, the user may return to main menu\n makeReservationMenu();\n }\n else\n {\n for (ListRoomNode n : availableRooms)\n {\n System.out.print(\"[ \" + n.r.getRoomNumber() + \" | \" + n.r.getRoomType() + \n \" | \" + n.r.getBedType() + \" | \" + String.format(\"$%.2f\", n.r.getRate()) \n + \" ] \");\n \n newLineCounter++;\n \n // we want to print a new line after 2 rooms for readability\n if (newLineCounter == 2) \n {\n System.out.println();\n newLineCounter = 0;\n }\n }\n }\n \n System.out.println( \" Enter the roomNumber you want to reserve -or- 0 to cancel:\");\n roomNumber = input.next();\n \n /* validates the roomNumber that was typed matches what is available in Hotel.\n * if this check passes, we have a valid room about to be reserved, \n * -- just need guest info to make the reservation */\n while ( !availableRooms.contains(roomNumber) && !roomNumber.equals(\"0\") ) \n {\n System.out.println(\" Input not recognized. Please try again, -or- press 0 to exit\");\n roomNumber = input.next();\n }\n \n if (roomNumber.equals(\"0\")) \n {\n mainMenu();\n }\n \n room = hotel.getRoom(roomNumber);\n \n /* get the guest's personal info. \n * we are making an assumption that the user only enters valid names at this time. */\n System.out.println(\" What is your first name?\");\n firstName = input.next();\n System.out.println(\" What is your last name?\"); \n lastName = input.next();\n \n boolean isValidPhone = false;\n while (!isValidPhone) {\n try {\n System.out.println(\" What is your cellphone number? (please enter 10 digits, ie 1234567890)\");\n phoneNumber = input.next(); \n isValidPhone = Guest.isValidPhone(phoneNumber); \n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n System.out.println(\"Please try again\"); \n }\n }\n \n // next get discount statuses\n System.out.println(\" Are you active military? Enter 1 for yes, -or- 0 for no\"); \n int in = getUserInputInt(0,1);\n isMilitary = (in == 1);\n \n System.out.println(\" Are you an active government employee? Enter 1 for yes, -or- 0 for no\");\n in = getUserInputInt(0,1);\n isGov = (in == 1); \n \n System.out.println(\" Are you a rewards member (Or want to sign up for our \" +\n \"membership program?)\");\n System.out.println( \" Enter 1 for yes, -or- 0 for no\");\n in = getUserInputInt(0,1);\n isMember = (in == 1); \n \n try {\n // assemble Guest object\n guest = new Guest(firstName, lastName, phoneNumber,\n isMilitary, isGov, isMember, roomNumber);\n \n // assemble Reservation object \n // (note: it's also possible to set status to waiting)\n reservation = new Reservation(room, guest, Status.IN, partySize, nights);\n \n // add the Reservation to the Hotel's ArrayList of reservations\n hotel.addReservation(reservation);\n \n // add the Guest to the Hotel's GuestTree of members, if they stated they're\n // a member (or basically, they signed up to be a member at time of reservation)\n if (isMember)\n {\n hotel.addMember(guest);\n }\n \n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n System.out.println(\"Please try again\");\n makeReservationMenu();\n }\n \n System.out.println( \"Your reservation was successfully created:\"); \n System.out.println(reservation);\n \n returnToMainMenuPrompt();\n }", "title": "" }, { "docid": "89eeb7482f674296dd8e2598e945f56b", "score": "0.5985357", "text": "@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 jButton2 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n jButton2.setFont(new java.awt.Font(\"Agency FB\", 0, 14)); // NOI18N\n jButton2.setForeground(new java.awt.Color(0, 102, 102));\n jButton2.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\User\\\\Downloads\\\\login.png\")); // NOI18N\n jButton2.setText(\"Book Room\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton1.setFont(new java.awt.Font(\"Agency FB\", 0, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(0, 102, 102));\n jButton1.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\User\\\\Downloads\\\\log_in.png\")); // NOI18N\n jButton1.setText(\"See Available Room\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel2.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\User\\\\Downloads\\\\Hotel-and-Restaurant-job-in-PNG-country-near-Australia_1.jpg\")); // NOI18N\n jLabel2.setText(\"jLabel2\");\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 .addGap(110, 110, 110)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(120, 120, 120)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(80, 80, 80)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 310, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n getContentPane().add(jPanel1);\n jPanel1.setBounds(-2, -2, 400, 310);\n\n pack();\n }", "title": "" }, { "docid": "a3a04470032dbd9d29e37212f2029f6c", "score": "0.59830225", "text": "private void createRooms()\n {\n Room office, weaponRoom;\n\n // create the rooms\n prisonCell = new Room(\" in prison cell no 007\");\n office = new Room(\"in guard's office but you are a lucky man he is sleeping!\");\n kitchen = new Room(\"in prisoner's kitchen\");\n corridor = new Room(\"in the corridor. Well done , you got out of prisoner area. Now watch out for guards!\");\n outside = new Room(\"outside of the prison. YOU HAVE ESCAPED!!! NOW YOU ARE A FREE MAN!!!\");\n weaponRoom = new Room(\"in the weapon room, collect a weapon\");\n guardsRoom = new Room(\"in guard's room, you have to kill all the guard or you are caught\");\n uniformRoom = new Room(\"in unifrom room, full of prisoners clothes and also one police uniform\");\n breakArea = new Room(\"in the break Area, you can exercise here\");\n teleporterRoom = new Room(\"in teleporter room. This room teleports you to a random room within prisoner area.\\n You have been teleported\");\n trapRoom = new Room(\"in trap room, you have been trapped\");\n \n // initialise room exits\n prisonCell.setExit(\"east\", office);\n prisonCell.setExit(\"west\", kitchen);\n prisonCell.setExit(\"south\", teleporterRoom);\n\n office.setExit(\"west\", prisonCell);\n office.setExit(\"east\", trapRoom);\n \n kitchen.setExit(\"east\", prisonCell);\n kitchen.setExit(\"north\", corridor);\n kitchen.setExit(\"west\", breakArea);\n\n corridor.setExit(\"north\", weaponRoom);\n corridor.setExit(\"east\", guardsRoom);\n corridor.setExit(\"south\", kitchen);\n corridor.setExit(\"west\", uniformRoom);\n\n weaponRoom.setExit(\"south\", corridor);\n\n guardsRoom.setExit(\"east\", outside);\n guardsRoom.setExit(\"west\", corridor);\n\n breakArea.setExit(\"east\", kitchen);\n\n uniformRoom.setExit(\"east\", corridor);\n\n teleporterRoom.setExit(\"north\", prisonCell);\n \n trapRoom.setExit(\"west\", office);\n\n currentRoom = prisonCell; // start game in prisonCell\n \n //stores rooms in string format\n prisonCell.setRoomName(prisonCell, \"prisonCell\");\n \n office.setRoomName(office, \"office\");\n \n kitchen.setRoomName(kitchen, \"kitchen\");\n \n corridor.setRoomName(corridor, \"corridor\");\n \n weaponRoom.setRoomName(weaponRoom, \"weapon room\");\n \n guardsRoom.setRoomName(guardsRoom, \"guards room\");\n \n breakArea.setRoomName(breakArea, \"break Area\");\n \n uniformRoom.setRoomName(uniformRoom, \"uniform Room\");\n \n teleporterRoom.setRoomName(teleporterRoom, \"teleporter room\");\n \n trapRoom.setRoomName(trapRoom, \"trap room\");\n \n //initialises the rooms in which items are located\n \n setItemRoom(items.get(0), weaponRoom); // gun\n setItemRoom(items.get(1), office); //key\n setItemRoom(items.get(2), uniformRoom); //uniform\n setItemRoom(items.get(3), prisonCell); //bag\n setItemRoom(items.get(4), kitchen); //kitchen table\n setItemRoom(items.get(5), breakArea); //beamer\n setItemRoom(items.get(6), prisonCell); //clock\n \n //initiliases an arraylist for the rooms the teleporter can transport you\n teleportRooms.add(kitchen);\n teleportRooms.add(office);\n teleportRooms.add(breakArea);\n teleportRooms.add(prisonCell);\n }", "title": "" }, { "docid": "18e67a38f868b47f83252ca5482e45c0", "score": "0.59747785", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n buttonGroup1 = new javax.swing.ButtonGroup();\n manageHotel = new javax.swing.JButton();\n manageStaff = new javax.swing.JButton();\n manageRooms = new javax.swing.JButton();\n generateReport = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n Home = new javax.swing.JButton();\n Logout = new javax.swing.JButton();\n addService = new javax.swing.JButton();\n manageRoomPrice = new javax.swing.JButton();\n\n jLabel2.setText(\"Please Choose Task:\");\n\n jLabel1.setFont(new java.awt.Font(\"Silom\", 2, 24)); // NOI18N\n jLabel1.setText(\"Wolf Inns\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n manageHotel.setText(\"Manage Hotels\");\n buttonGroup1.add(manageHotel);\n manageHotel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n manageHotelActionPerformed(evt);\n }\n });\n\n manageStaff.setText(\"Manage Staff\");\n buttonGroup1.add(manageStaff);\n manageStaff.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n manageStaffActionPerformed(evt);\n }\n });\n\n manageRooms.setText(\"Manage Rooms\");\n buttonGroup1.add(manageRooms);\n manageRooms.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n manageRoomsActionPerformed(evt);\n }\n });\n\n generateReport.setText(\"Generate Report\");\n buttonGroup1.add(generateReport);\n generateReport.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n generateReportActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Please Choose Task:\");\n\n jLabel4.setFont(new java.awt.Font(\"Silom\", 2, 24)); // NOI18N\n jLabel4.setText(\"Wolf Inns\");\n\n Home.setText(\"Home\");\n Home.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n HomeActionPerformed(evt);\n }\n });\n\n Logout.setText(\"Logout\");\n Logout.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n LogoutActionPerformed(evt);\n }\n });\n\n addService.setText(\"Manage Service Type\");\n buttonGroup1.add(addService);\n addService.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addServiceActionPerformed(evt);\n }\n });\n\n manageRoomPrice.setText(\"Manage RoomPrice\");\n buttonGroup1.add(manageRoomPrice);\n manageRoomPrice.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n manageRoomPriceActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(manageRoomPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(Home)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Logout)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(190, 190, 190))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(addService, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(generateReport, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(manageStaff, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(manageRooms, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(27, 27, 27))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(manageHotel, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(78, 361, 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(26, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jLabel3)\n .addGap(14, 14, 14)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(manageHotel, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(manageStaff, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(manageRooms, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(generateReport, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addService, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(manageRoomPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(62, 62, 62)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Home)\n .addComponent(Logout))\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "a74a37085624b9cb51fb196b18b2f550", "score": "0.59635556", "text": "public View(Model model) {\n this.model = model;\n\n JLabel initialStoneNumLabel = new JLabel(\"Initial stone number in each pits:\");\n JLabel boardStyleLabel = new JLabel(\"Board style:\");\n\n JButton initialStoneNumIs3Button = new JButton(\"3\");\n JButton initialStoneNumIs4Button = new JButton(\"4\");\n ActionListener initialStoneActionListener = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n initialStoneNum = Integer.parseInt( ( (JButton) e.getSource() ).getText() );\n }\n };\n initialStoneNumIs3Button.addActionListener(initialStoneActionListener);\n initialStoneNumIs4Button.addActionListener(initialStoneActionListener);\n\n JButton ovalAndRoundRecStyleButton = new JButton(\"1. Oval Pit, Round Rectangle Mancala\" +\n \", Circle stones\");\n JButton rectangleAndTrapezoidStyleButton = new JButton(\"2. Rectangle Pit, Trapezoid Mancala\" +\n \", Label stones\");\n ActionListener styleSelectionActionListener = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JButton sourceButton = (JButton) e.getSource();\n char selection = sourceButton.getText().charAt(0);\n switch (selection) {\n case '1' : mancalaPitShape = new OvalRoundRectangleMancalaPitShape();\n break;\n case '2' : mancalaPitShape = new RectangleTrapezoidMancalaPitShape();\n break;\n }\n }\n };\n ovalAndRoundRecStyleButton.addActionListener(styleSelectionActionListener);\n rectangleAndTrapezoidStyleButton.addActionListener(styleSelectionActionListener);\n\n JButton startGameButton = new JButton(\"Start Game\");\n startGameButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (initialStoneNum == 0 || mancalaPitShape == null) {\n messageArea.setText(ASK_TO_SELECT_BEFORE_GAME_START_MESSAGE);\n } else {\n getContentPane().removeAll();\n drawGameInterface();\n }\n }\n });\n\n setLayout(new GridBagLayout());\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;\n\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridwidth = 2;\n add(initialStoneNumLabel, gridBagConstraints);\n\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.gridwidth = 1;\n add(initialStoneNumIs3Button, gridBagConstraints);\n\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.gridwidth = 1;\n add(initialStoneNumIs4Button, gridBagConstraints);\n\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridwidth = 2;\n add(boardStyleLabel, gridBagConstraints);\n\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridwidth = 1;\n add(ovalAndRoundRecStyleButton, gridBagConstraints);\n\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridwidth = 1;\n add(rectangleAndTrapezoidStyleButton, gridBagConstraints);\n\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n add(startGameButton, gridBagConstraints);\n\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.gridwidth = 2;\n messageArea = new JTextArea();\n add(messageArea, gridBagConstraints);\n messageArea.setEditable(false);\n\n setVisible(true);\n pack();\n setLocationRelativeTo(null);\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n }", "title": "" }, { "docid": "0860364117cec66a551a766989c2c3d9", "score": "0.5937587", "text": "public RoomsCtr() {\r\n\r\n\t}", "title": "" }, { "docid": "f1656e1403390c50bb1fc71c62bfda0b", "score": "0.59345144", "text": "@RequestMapping(value=\"/rooms/create\", method = RequestMethod.GET)\r\n\tpublic String setupForm(Model model, HttpServletRequest request) {\r\n\t\tRoom room = new Room();\r\n\t\tmodel.addAttribute(room);\r\n\t\t\r\n\t\t// Predani titulku stranky do view\r\n\t\tString pageTitle = \"Nová místnost\";\r\n\t\tmodel.addAttribute(\"pageTitle\", pageTitle);\r\n\t\t\r\n\t\t// Predani seznamu lekci pro widget\r\n\t\tLessons lessons = new Lessons();\r\n\t\tlessons.getLessonList().addAll(this.fitnessCentre.getActiveLessons());\r\n\t\tmodel.addAttribute(\"lessonsForWidget\", lessons);\r\n\t\t\r\n\t\t// Pristup k session prihlaseneho uzivatele\r\n\t\tUser loggedInUser = (User)request.getSession().getAttribute(\"logUser\");\r\n\t\tif (null != loggedInUser) {\r\n\t\t\tmodel.addAttribute(\"loggedInUser\", loggedInUser);\r\n\t\t}\r\n\t\t\r\n\t\treturn \"rooms/createForm\";\r\n\t}", "title": "" }, { "docid": "086c4cd09ae03b54af19090c81867f0c", "score": "0.5920601", "text": "@Override\n\t//GuestModel(name,note,reservation,day,month,year,hour,minute)\n\t// GuestModel(String name,String note,String contactNumber,int size,GregorianCalendar created,GregorianCalendar reservationTime) throws Exception{\n\t\t\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString command=e.getActionCommand();\n\t\t\n\t\tif(command.equals(\"Enter Guest\")){\n\t\t\t\n\t\t\ttry{\n\t\t\t\tSystem.out.println(\"First Line\\n\");\n\t\t\t\tGregorianCalendar created=new GregorianCalendar();\n\t\t\t\tGregorianCalendar res = new GregorianCalendar();\n\t\t\t\t//res.add(Calendar.HOUR, 2);\n\t\t\t\tmodel=new GuestModel(view.getNameTextField(),view.getNoteTextField(),\n\t\t\t\t\t\tview.getContactTextField(),Integer.parseInt(view.getSizeTextField()),\n\t\t\t\t\t\tcreated,view.getViewTime()/*res*/);\n\t\t\t\t//System.out.println(\"If checkException:\");\n\t\t\t\tSystem.out.println(model.toString());//comment this out, only for debuging purpose\n\t\t\t\t//PUT your code for storing/handeling the model\n\t\t\t\tFSM._instance.Action(FSM_STATE.ADD_GUEST, model);\n\t\t\t\tif( frameToClose != null )\n\t\t\t\t{\n\t\t\t\t\tframeToClose.dispose();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception a){\n\t\t\t\tSystem.err.println(a);\n\t\t\t\tview.displayErrorWindow(a);\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\t\t}\n\t\t\n\t\telse if(command.equals(\"Y+\")){\n\t\t\tview.addYear();\n\t\t}\n\t\telse if(command.equals(\"Y-\")){\n\t\t\tview.subtractYear();\n\t\t\t\n\t\t}\n\t\telse if(command.equals(\"M+\")){\n\t\t\tview.addMonth();\n\t\t}\n\t\telse if(command.equals(\"M-\")){\n\t\t\tview.subtractMonth();\n\t\t}\n\t\telse if(command.equals(\"D+\")){\n\t\t\tview.addDay();\n\t\t}\n\t\telse if(command.equals(\"D-\")){\n\t\t\tview.SubtractDay();\n\t\t\t\n\t\t}\n\t\telse if(command.equals(\"h+\")){\n\t\t\tview.addHour();\n\t\t}\n\t\telse if(command.equals(\"h-\")){\n\t\t\tview.SubtractHour();\n\t\t}\n\t\telse if(command.equals(\"m+\")){\n\t\t\tview.addMinute();\n\t\t}\n\t\telse if(command.equals(\"m-\")){\n\t\t\tview.SubtractMinute();\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "ead558ac169f5c0f3098eecbd01b2e47", "score": "0.5909652", "text": "public OperatorMenu() {\n initComponents();\n }", "title": "" }, { "docid": "548873830f577badc640d4ae072a3ccd", "score": "0.58795875", "text": "public Game() \n {\n rooms = new ArrayList<Room>();\n createRooms();\n parser = new Parser();\n }", "title": "" }, { "docid": "170fe7acaa33b8f85ffc6b5ea975914a", "score": "0.5878353", "text": "private void createRooms()\n {\n // maak de kamers aan\n slaapkamer = new Room(\"de slaapkamer waar je wakker bent geworden. Er is een oud bed met gebaricadeerde ramen en de muur ziet er zwak uit\");\n opbergkast = new Room(\"de ruimte waar je bent gekomen door, door de muur heen te kruipen. Het blijkt een opbergkast te zijn\");\n overloop = new Room(\"de overloop op de eerste verdieping, je ziet een trap naar beneden, een badkamer, de opbergkast en een dicht getimmerde deur van de slaapkamer\");\n badkamer = new Room(\"de badkamer op de eerste verdieping. Je ziet een glazen kast opgehangen aan de muur, het lijkt alsof er iets glimt in de kast\");\n glazenkast = new Room(\"staat om alles te doen om te ontsnappen. Je pakt je hamer en slaat de glazen kast in 1000 scherven!\" + \"\\n\" + \"Er is een glimmend voorwerp op de grond gevallen... hier ligt een sleutel!\");\n hal = new Room(\"de hal op de begaande grond, je ziet de trap van boven, een deur van de kelder dat op slot is, de voordeur dat op slot is met een gouden slot, de keuken en de woonkamer\");\n woonkamer = new Room(\"de woonkamer, het ziet er erg oud uit en het lijkt alsof de meubelen uit een ander eeuw komen. Wanneer je door de kamer stapt merk je dat de vloer erg zwak is, je zegt tegen jezelf: 'Gelukkig ben ik afgevallen anders was ik heir echt door de vloer gezakt'\");\n keuken = new Room(\"de keuken van het huis, het ziet er verlaten uit en het lijkt alsof er al in jaren niks meer gekookt is. Je ziet wat borden en bestek overal liggen en een grote oude fles wijn\");\n aanrecht = new Room(\"een nieuwschierige bui gaan kijken naar het fles wijn op het aanrecht, hij is erg zwaar\");\n kelder = new Room(\"een pijnlijke positie terecht gekomen in de kelder van het huis... door het gewicht van de fles wijn ben je door de vloer gezakt! \");\n gKelder = new Room(\"een geheime ruimte in de kelder met een wijnkast. Hey! Het valt je op dat er precies 1 fles wijn mist uit de wijnkast\");\n buiten = new Room(\"het einde van het spel\");\n\n // initialiseert de kamer uitgangen\n slaapkamer.setExit(\"muur\", opbergkast);\n opbergkast.setExit(\"slaapkamer\", slaapkamer);\n opbergkast.setExit(\"overloop\", overloop);\n overloop.setExit(\"opbergkast\", opbergkast);\n overloop.setExit(\"trap\", hal);\n overloop.setExit(\"badkamer\", badkamer);\n badkamer.setExit(\"overloop\", overloop);\n badkamer.setExit(\"glazenkast\", glazenkast);\n glazenkast.setExit(\"badkamer\", badkamer);\n hal.setExit(\"trap\", overloop);\n hal.setExit(\"woonkamer\", woonkamer);\n hal.setExit(\"kelder\", kelder);\n hal.setExit(\"voordeur\", buiten);\n hal.setExit(\"keuken\", keuken);\n keuken.setExit(\"hal\", hal);\n keuken.setExit(\"aanrecht\", aanrecht);\n aanrecht.setExit(\"keuken\", keuken);\n woonkamer.setExit(\"hal\", hal);\n woonkamer.setExit(\"vloer\", kelder);\n kelder.setExit(\"geheim\", gKelder);\n kelder.setExit(\"trap\", hal);\n gKelder.setExit(\"kelder\", kelder);\n \n // start het spel in de slaapkamer\n currentRoom = slaapkamer;\n \n // brengt je terug naar de vorige kamer waar je bent geweest\n previousRoom= slaapkamer;\n \n // plaatst een voorwerp in een kamer, (naam, gewicht, oppakbaar)\n slaapkamer.setItem(new Item(\"hamer\", 1, true));\n slaapkamer.setItem(new Item(\"speelgoedpop\", 0, false));\n slaapkamer.setItem(new Item(\"kast\", 0, false));\n opbergkast.setItem(new Item(\"kleren\", 0, false));\n opbergkast.setItem(new Item(\"doos\", 0, false));\n overloop.setItem(new Item(\"lamp\", 0, false));\n overloop.setItem(new Item(\"schilderij\", 0, false));\n badkamer.setItem(new Item(\"toiletborstel\", 1, false));\n badkamer.setItem(new Item(\"badeend\", 0, false));\n hal.setItem(new Item(\"stoel\", 0, false));\n hal.setItem(new Item(\"kapstok\", 0, false));\n hal.setItem(new Item(\"jas\", 0 , false));\n hal.setItem(new Item(\"plant\", 0 ,false));\n keuken.setItem(new Item(\"mes\", 1, true));\n keuken.setItem(new Item(\"koelkast\", 0, false));\n keuken.setItem(new Item(\"bier\", 1, true));\n keuken.setItem(new Item(\"fleswijn\", 50, true));\n woonkamer.setItem(new Item(\"tv\", 0, false));\n woonkamer.setItem(new Item(\"kaarsen\", 1, true));\n woonkamer.setItem(new Item(\"magazine\", 0, false));\n gKelder.setItem(new Item(\"goudensleutel\", 1, true));\n gKelder.setItem(new Item(\"kruk\", 0, false));\n gKelder.setItem(new Item(\"handboeien\", 0, false));\n gKelder.setItem(new Item(\"doek\", 0, false));\n gKelder.setItem(new Item(\"botten\", 0 ,false));\n kelder.setItem(new Item(\"chefmes\", 0, false));\n kelder.setItem(new Item(\"etenstray\", 0, false));\n glazenkast.setItem(new Item(\"sleutel\", 1, true));\n }", "title": "" }, { "docid": "f9cd2610721b8f1a597ef9ceb17bf965", "score": "0.5875474", "text": "private void generateRooms() {\r\n\t\tshipRooms.add(new SensorRoom(new Sensor(0.8f), \"Sensor Room\", 20, 3,10,RoomSize.Small,this));\r\n\r\n\t\tshipRooms.add(new WeaponsRoom(getFrontWeapons(),getBackWeapons(),\"Weapons Room\",20, 8,10,RoomSize.Large,this));\r\n\r\n\t\tList<CrewAction> manoeuvres = Arrays.asList(new CrewAction[] {ResourceLoader.getCrewAction(\"basicDodge\"),ResourceLoader.getCrewAction(\"basicSwitch\"),ResourceLoader.getCrewAction(\"basicDodge\"),ResourceLoader.getCrewAction(\"basicSwitch\"),ResourceLoader.getCrewAction(\"basicDodge\"),ResourceLoader.getCrewAction(\"basicSwitch\"),ResourceLoader.getCrewAction(\"basicDodge\"),ResourceLoader.getCrewAction(\"basicSwitch\"),ResourceLoader.getCrewAction(\"basicDodge\")});\r\n\t\tshipRooms.add(new Cockpit(manoeuvres,\"Cockpit\",20, 10,RoomSize.Medium,this));\r\n\t\tshipRooms.add(new GeneratorRoom(ResourceLoader.getShipGenerator(\"default\").copy(),\"Generator Room\",20,9, 10,RoomSize.Large,this));\r\n\t\tArrayList<RecreationalItem> items = new ArrayList<>();\r\n\t\titems.add(new RecreationalItem(\"ArmChair\",4));\r\n\t\tshipRooms.add(new StaffRoom(items,\"Staff Room\", 20, 9, 10,RoomSize.Medium,this));\r\n\t\tsetRoomPositions();\r\n\t}", "title": "" }, { "docid": "4de4a7fd81fd81d6fbe3cb3bb98e0f70", "score": "0.5869996", "text": "private void setViewEventListeners() {\r\n //Button Event Listeners\r\n //Enter Data Listener\r\n view.addEnterDataListener((ActionEvent e) -> {\r\n //Check if enter data has been pressed once already\r\n if (!readyForRecieveOrder) {\r\n //If it hasnt been clicked, check inputs\r\n if (validateInput())\r\n {\r\n //If they pass, ready Listener for second press\r\n readyForRecieveOrder = true;\r\n //Fill comboboxes with specified items\r\n //Enable comboboxes\r\n updateMenuItems();\r\n }\r\n } else {\r\n //Unready listener for next press\r\n readyForRecieveOrder = false;\r\n try {\r\n //Create new order from current inputs\r\n createNewOrder();\r\n dataModel.getSQL().getOrders();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ClientScreenController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n //Reset the input options\r\n resetGUIOptions();\r\n view.setOutputPanel(0);\r\n view.resetOutputPanel();\r\n }\r\n });\r\n //Display Choice Listener\r\n view.addDisplayChoiceListener((ActionEvent e) -> {\r\n //If menu items are enabled\r\n if (readyForRecieveOrder){\r\n //Change view to output panel\r\n //view.changeOutputPanel(1);\r\n //Update table to show current selection\r\n view.setOutputPanel(2);\r\n updateTable();\r\n } else {\r\n //Prompt users with input\r\n view.displayPopup(\"Please choose the menu items to view Nutrition Information\");\r\n }\r\n });\r\n //Display Order Listener\r\n view.addDisplayOrderListener((ActionEvent e) -> {\r\n if (dataModel.getOrders().isEmpty())\r\n return;\r\n view.setOutputPanel(1);\r\n view.updateOrderTable(dataModel.getOrders());\r\n });\r\n //Reset Listener\r\n view.addResetListener((ActionEvent e) -> {\r\n //Code to create a password insertion popup borrowed\r\n //Source : https://stackoverflow.com/questions/8881213/joptionpane-to-get-password\r\n JPanel panel = new JPanel();\r\n JLabel label = new JLabel(\"Enter staff password:\");\r\n JPasswordField pass = new JPasswordField(10);\r\n panel.add(label);\r\n panel.add(pass);\r\n String[] options = new String[]{\"OK\", \"Cancel\"};\r\n int option = JOptionPane.showOptionDialog(null, panel, \"The title\",\r\n JOptionPane.NO_OPTION, JOptionPane.PLAIN_MESSAGE,\r\n null, options, options[1]);\r\n //End borrowed\r\n if(option == 0) // pressing OK button\r\n {\r\n char[] password = pass.getPassword();\r\n String temp = new String(password);\r\n if (!temp.equals(ADMIN_PASSWORD))\r\n {\r\n view.displayPopup(\"Incorrect password!\");\r\n }\r\n else\r\n {\r\n //Reset gui options\r\n resetGUIOptions();\r\n //Reset output panel to empty\r\n view.setOutputPanel(0);\r\n //Clear anything leftover in the panel\r\n view.resetOutputPanel();\r\n //Reset the models orders\r\n dataModel.resetOrders();\r\n //Display popup to indicate successful reset\r\n view.displayPopup(\"Form reset!\");\r\n } \r\n }\r\n });\r\n }", "title": "" }, { "docid": "d3e633b387b374b31ca39c2955266bd5", "score": "0.58656144", "text": "@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 jLabel3 = new javax.swing.JLabel();\n password = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n Username1 = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n Roomlist = new java.awt.Choice();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Sign in\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\" Name \"));\n\n jLabel3.setText(\"UserName\");\n\n password.setText(\" \");\n password.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n passwordActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Password\");\n\n jButton1.setText(\" Sign in\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n Username1.setText(\" \");\n Username1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Username1ActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\"Room\");\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 .addGap(44, 44, 44)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(40, 40, 40)\n .addComponent(Roomlist, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Username1))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(password, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(0, 96, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Username1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(password, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Roomlist, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)\n .addComponent(jButton1))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "e6b6cbcbc28f6bdc410fe7732944ff8f", "score": "0.583014", "text": "public LocHis() {\n initComponents();\n jButton5ActionPerformed(null);\n }", "title": "" }, { "docid": "f5f57df2f9e6ff10422d4342a1cee552", "score": "0.5825551", "text": "public ReservationView() {\n initComponents();\n }", "title": "" }, { "docid": "b20a72b8c9dcbf590dee74d23cde1fb1", "score": "0.5825155", "text": "private void roomObjectCreation()\n {\n room = new Chambre();\n room.setNum_ch(Num_ch.getText().toString());\n room.setBloc(bloc.getSelectedItem().toString());\n room.settype_ch(type_ch.getSelectedItem().toString());\n room.setHasTV(check_tv.isSelected());\n room.setHasWIFI(check_wifi.isSelected());\n room.setHasPhone(check_phone.isSelected());\n room.setPrix_ch(Integer.parseInt(prix_chambre.getText()));\n \n }", "title": "" }, { "docid": "5a38958c5cc33b4881bcbb322fe285fb", "score": "0.5812306", "text": "@FXML\r\n public void populateRoom()\r\n {\r\n\r\n for (int i=0;i<this.roomMenu.getItems().size();i++)\r\n {\r\n int finalI = i;\r\n this.roomMenu.getItems().get(i).setOnAction(event -> createTimetable(\"Room\", roomMenu.getItems().get(finalI).getText()));\r\n }\r\n }", "title": "" }, { "docid": "b374fe32b8ae4ffef04b7101508e875b", "score": "0.58098906", "text": "public MakeReservation() {\n initComponents();\n }", "title": "" }, { "docid": "66749ad244fdea66b00d93433ecd7cfe", "score": "0.57895815", "text": "private void createRooms()\n {\n Room aulaProgramacion, pasilloUno, aulaExamenes, balcon, hall, tejado, callejon, patio, calle, salonActos,\n pasilloDos, banyo, puertaPrincipal, secretaria, pasilloTres;\n\n // create the rooms\n aulaProgramacion = new Room(\"Estás en un aula llena de ordenadores, huele fuerte. Todo está oscuro pero ves una puerta\");\n pasilloUno = new Room(\"Estás en un pasillo, hay varias puertas y una luz tenue entra por la ventana\");\n aulaExamenes = new Room(\"Estás en un aula, hay una luz suave y no puedes ver todos los pupitres, pero ves una puerta al fondo\");\n balcon = new Room(\"Estás en un balcon que no lleva a ninguna parte, date la vuelta\");\n hall = new Room(\"Entras en una gran sala, tiene dos puertas mas la que se encuentra detras de ti, también hay una pequeña ventana que da a un tejadillo\");\n tejado = new Room(\"Saltas al tejado, cerca tienes la ventana aunque puedes tirarte a un callejon oscuro, si lo haces no podras volver a subir\");\n callejon = new Room(\"Esta oscuro, pero puedes ver una valla que da al patio\");\n patio = new Room(\"Hay un poco mas de luz y ves una valla mas alta. La puerta esta cerrada\");\n calle = new Room(\"Enhorabuena, saltando como un atleta olimpico has llegado a la calle y has escapado del instituto\");\n salonActos = new Room(\"Estas en una sala enorme con forma de anfiteatro, tiene un proyector y otra salida. Cuidado con las sillas\");\n pasilloDos = new Room(\"Estas en una sala estrecha, esta muy oscuro pero palpando las paredes puedes encontrar otras dos puertas\");\n banyo = new Room(\"Entras en una sala llena de azulejos blancos, hay urinarios y grifos muy bajos, huele mal. Mejor vuelve por donde has venido\");\n puertaPrincipal = new Room(\"Has llegado a la puerta principal. Coges una pantalla de ordenador y rompes la puerta, corre antes de que alguien te vea. \\nHas destruido propiedad publica y huido exitosamente del instituto\");\n secretaria = new Room(\"Iluminando la sala con tu telefono puedes ver cuadros con gente muerta colgando de las paredes. \\nPor suerte son orlas y no algo especialmente siniestro, ves una puerta al otro lado de la habitacion y un monton de papeles apilados\");\n pasilloTres = new Room(\"Ante ti hay una sala estrecha y oscura, deberían haber puesto ventanas, ante ti hay una puerta y en las paredes hay cuadros de los del Ikea\");\n\n // initialise room exits N\\E\\S\\W\n aulaProgramacion.setExits(pasilloUno, null, null, null);\n pasilloUno.setExits(hall, null, aulaProgramacion, aulaExamenes);\n aulaExamenes.setExits(null, pasilloUno, null, balcon);\n balcon.setExits(null, aulaExamenes, null, null);\n hall.setExits(pasilloTres, tejado, pasilloUno, salonActos);\n tejado.setExits(null, null, callejon, hall);\n callejon.setExits(tejado, null, patio, null);\n patio.setExits(callejon, calle, null, null);\n calle.setExits(null, patio, null, null);\n salonActos.setExits(pasilloDos, hall, null, null);\n pasilloDos.setExits(puertaPrincipal, secretaria, salonActos, banyo);\n banyo.setExits(null, pasilloDos, null, null);\n puertaPrincipal.setExits(null, null, pasilloDos, null);\n secretaria.setExits(null, null, pasilloTres, pasilloDos);\n pasilloTres.setExits(secretaria, null, hall, null);\n\n currentRoom = aulaProgramacion; // start game outside\n }", "title": "" }, { "docid": "f64fbe545b57c865ce36eb53c3212613", "score": "0.5783123", "text": "private void createRooms()\n {\n Room start, finish, room1, room2, room3, room4, room5, room6, room7, room8, room9, room10, room11, room12, room13, room14, room15, room16;\n \n start = new Room(\"You find yourself in the middle of a jungle with no weapons or tools. You draw an X on the ground with a stick to mark your starting position.\");\n finish= new Room(\"You exit through a clearing in the woods and see a city skyline! You're free!\");\n room1 = new Room(\"Blank\");\n room2 = new Room(\"Blank\");\n room3 = new Room(\"Blank\");\n room4 = new Room(\"You enter the cave.\");\n room5 = new Room(\"Blank\");\n room6 = new Room(\"Blank\");\n room7 = new Room(\"Blank\");\n room8 = new Room(\"You find yourself facing the edge of a cliff. There is no way to cross. You should turn back.\");\n room9 = new Room(\"Blank\");\n room10 = new Room(\"Blank\");\n room11 = new Room(\"Blank\");\n room12 = new Room(\"Blank\");\n room13 = new Room(\"Blank\");\n room14 = new Room(\"Blank\");\n room15 = new Room(\"Blank\");\n room16 = new Room(\"Blank\");\n \n start.setExit(\"north\", room6);\n start.setExit(\"west\", room9);\n start.setExit(\"east\", room10);\n start.setExit(\"south\", room12);\n \n room1.setExit(\"east\", room2);\n room1.setExit(\"south\", room5);\n \n room2.setExit(\"north\", finish);\n room2.setExit(\"west\", room1);\n room2.setExit(\"east\", room3);\n room2.setExit(\"south\", room6);\n \n room3.setExit(\"west\", room2);\n room3.setExit(\"south\", room7);\n \n room4.setExit(\"east\", room5);\n \n room5.setExit(\"north\", room1);\n room5.setExit(\"west\", room4);\n room5.setExit(\"east\", room6);\n room5.setExit(\"south\", room9);\n \n room6.setExit(\"north\", room2);\n room6.setExit(\"west\", room5);\n room6.setExit(\"east\", room7);\n room6.setExit(\"south\", start);\n \n room7.setExit(\"north\", room3);\n room7.setExit(\"west\", room6);\n room7.setExit(\"east\", room8);\n room7.setExit(\"south\", room10);\n \n room8.setExit(\"west\", room7);\n \n room9.setExit(\"north\", room5);\n room9.setExit(\"east\", start);\n room9.setExit(\"south\", room11);\n \n room10.setExit(\"north\", room7);\n room10.setExit(\"west\", start);\n room10.setExit(\"south\", room13);\n \n room11.setExit(\"north\", room9);\n room11.setExit(\"east\", room12);\n room11.setExit(\"south\", room14);\n \n room12.setExit(\"north\", start);\n room12.setExit(\"west\", room11);\n room12.setExit(\"east\", room13);\n room12.setExit(\"south\", room15);\n \n room13.setExit(\"north\", room10);\n room13.setExit(\"west\", room12);\n room13.setExit(\"south\", room16);\n \n room14.setExit(\"north\", room11);\n room14.setExit(\"east\", room15);\n \n room15.setExit(\"north\", room12);\n room15.setExit(\"west\", room14);\n room15.setExit(\"east\", room16);\n \n room16.setExit(\"north\", room13);\n room16.setExit(\"west\", room15);\n\n currentRoom = start; // start game outside\n }", "title": "" }, { "docid": "515ef0bfed00e00899ff87f9e81a9102", "score": "0.57803994", "text": "protected void initCreateRoom1PUI() {\r\n\t\t// Main panel for Create room 1P\r\n\t\tJPanel mainpanelCreateRoom1P = new JPanel();\r\n\t\tmainpanelCreateRoom1P.setLayout(new BoxLayout(mainpanelCreateRoom1P, BoxLayout.Y_AXIS));\r\n\t\tthis.getContentPane().add(mainpanelCreateRoom1P, SCREENCARD_NAMES[SCREENCARD_CREATEROOM1P]);\r\n\r\n\t\t// * Game mode panel\r\n\t\tJPanel pModeList = new JPanel(new BorderLayout());\r\n\t\tmainpanelCreateRoom1P.add(pModeList);\r\n\r\n\t\tlabelCreateRoom1PGameMode = new JLabel(getUIText(\"CreateRoom1P_Mode_Label\"));\r\n\t\tpModeList.add(labelCreateRoom1PGameMode, BorderLayout.NORTH);\r\n\r\n\t\t// ** Game mode listbox\r\n\t\tlistmodelCreateRoom1PModeList = new DefaultListModel();\r\n\t\tloadModeList(listmodelCreateRoom1PModeList, \"config/list/netlobby_singlemode.lst\");\r\n\r\n\t\tlistboxCreateRoom1PModeList = new JList(listmodelCreateRoom1PModeList);\r\n\t\tlistboxCreateRoom1PModeList.addListSelectionListener(new ListSelectionListener() {\r\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\tString strMode = (String)listboxCreateRoom1PModeList.getSelectedValue();\r\n\t\t\t\tlabelCreateRoom1PGameMode.setText(getModeDesc(strMode));\r\n\t\t\t}\r\n\t\t});\r\n\t\tlistboxCreateRoom1PModeList.setSelectedValue(propConfig.getProperty(\"createroom1p.listboxCreateRoom1PModeList.value\", \"\"), true);\r\n\t\tJScrollPane spCreateRoom1PModeList = new JScrollPane(listboxCreateRoom1PModeList);\r\n\t\tpModeList.add(spCreateRoom1PModeList, BorderLayout.CENTER);\r\n\r\n\t\t// * Rule list panel\r\n\t\tJPanel pRuleList = new JPanel(new BorderLayout());\r\n\t\tmainpanelCreateRoom1P.add(pRuleList);\r\n\r\n\t\t// ** \"Rule:\" label\r\n\t\tJLabel lCreateRoom1PRuleList = new JLabel(getUIText(\"CreateRoom1P_Rule_Label\"));\r\n\t\tpRuleList.add(lCreateRoom1PRuleList, BorderLayout.NORTH);\r\n\r\n\t\t// ** Rule list listbox\r\n\t\tlistmodelCreateRoom1PRuleList = new DefaultListModel();\r\n\t\tlistboxCreateRoom1PRuleList = new JList(listmodelCreateRoom1PRuleList);\r\n\t\tJScrollPane spCreateRoom1PRuleList = new JScrollPane(listboxCreateRoom1PRuleList);\r\n\t\tpRuleList.add(spCreateRoom1PRuleList, BorderLayout.CENTER);\r\n\r\n\t\t// * Buttons panel\r\n\t\tJPanel subpanelButtons = new JPanel();\r\n\t\tsubpanelButtons.setLayout(new BoxLayout(subpanelButtons, BoxLayout.X_AXIS));\r\n\t\tmainpanelCreateRoom1P.add(subpanelButtons);\r\n\r\n\t\t// ** OK button\r\n\t\tbtnCreateRoom1POK = new JButton(getUIText(\"CreateRoom1P_OK\"));\r\n\t\tbtnCreateRoom1POK.addActionListener(this);\r\n\t\tbtnCreateRoom1POK.setActionCommand(\"CreateRoom1P_OK\");\r\n\t\tbtnCreateRoom1POK.setMnemonic('O');\r\n\t\tbtnCreateRoom1POK.setMaximumSize(new Dimension(Short.MAX_VALUE, btnCreateRoom1POK.getMaximumSize().height));\r\n\t\tsubpanelButtons.add(btnCreateRoom1POK);\r\n\r\n\t\t// ** Cancel button\r\n\t\tbtnCreateRoom1PCancel = new JButton(getUIText(\"CreateRoom1P_Cancel\"));\r\n\t\tbtnCreateRoom1PCancel.addActionListener(this);\r\n\t\tbtnCreateRoom1PCancel.setActionCommand(\"CreateRoom1P_Cancel\");\r\n\t\tbtnCreateRoom1PCancel.setMnemonic('C');\r\n\t\tbtnCreateRoom1PCancel.setMaximumSize(new Dimension(Short.MAX_VALUE, btnCreateRoom1PCancel.getMaximumSize().height));\r\n\t\tsubpanelButtons.add(btnCreateRoom1PCancel);\r\n\t}", "title": "" }, { "docid": "d8a9e63a3e893124055500ac82129c3e", "score": "0.577752", "text": "private void setupListeners() {\n // List\n this.view.characterSelectList.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(final ListSelectionEvent e) {\n if (!CharacterCreateMenu.this.view.characterSelectList.isSelectionEmpty()) {\n CharacterCreateMenu.this.model.setSelectedCharacter(CharacterCreateMenu.this.view.characterSelectList.getSelectedValue());\n }\n // Reset other data when choosing new character.\n CharacterCreateMenu.this.model.player.setVictoryCondition(new VictoryCondition());\n CharacterCreateMenu.this.model.pointsLeft = 5;\n CharacterCreateMenu.this.view.updateText();\n CharacterCreateMenu.this.view.setFinishEnabled(false);\n CharacterCreateMenu.this.view.setChooseDwellingEnabled(false);\n CharacterCreateMenu.this.view.setIncrementKeysEnabled(true);\n CharacterCreateMenu.this.view.setDecrementKeysEnabled(false);\n }\n });\n\n this.view.dwellingList.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(final ListSelectionEvent e) {\n if (!CharacterCreateMenu.this.view.dwellingList.isSelectionEmpty()) {\n CharacterCreateMenu.this.model.setSelectedStartLocation(CharacterCreateMenu.this.view.dwellingList.getSelectedValue());\n CharacterCreateMenu.this.view.setFinishEnabled(true);\n } else {\n CharacterCreateMenu.this.view.setFinishEnabled(false);\n }\n }\n });\n\n // Decrement keys\n this.view.victoryPointsButtons[0][0].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n CharacterCreateMenu.this.model.decreaseVictoryCondition(VictoryCondition.Conditions.GOLD);\n }\n });\n this.view.victoryPointsButtons[1][0].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n CharacterCreateMenu.this.model.decreaseVictoryCondition(VictoryCondition.Conditions.NOTORIETY);\n }\n });\n this.view.victoryPointsButtons[2][0].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n CharacterCreateMenu.this.model.decreaseVictoryCondition(VictoryCondition.Conditions.FAME);\n }\n });\n this.view.victoryPointsButtons[3][0].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n CharacterCreateMenu.this.model.decreaseVictoryCondition(VictoryCondition.Conditions.SPELLS_COUNT);\n }\n });\n this.view.victoryPointsButtons[4][0].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n CharacterCreateMenu.this.model.decreaseVictoryCondition(VictoryCondition.Conditions.GREAT_TREASURES_COUNT);\n }\n });\n\n // Increment Keys\n this.view.victoryPointsButtons[0][1].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n CharacterCreateMenu.this.model.increaseVictoryCondition(VictoryCondition.Conditions.GOLD);\n }\n });\n this.view.victoryPointsButtons[1][1].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n CharacterCreateMenu.this.model.increaseVictoryCondition(VictoryCondition.Conditions.NOTORIETY);\n }\n });\n this.view.victoryPointsButtons[2][1].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n CharacterCreateMenu.this.model.increaseVictoryCondition(VictoryCondition.Conditions.FAME);\n }\n });\n this.view.victoryPointsButtons[3][1].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n CharacterCreateMenu.this.model.increaseVictoryCondition(VictoryCondition.Conditions.SPELLS_COUNT);\n }\n });\n this.view.victoryPointsButtons[4][1].addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n CharacterCreateMenu.this.model.increaseVictoryCondition(VictoryCondition.Conditions.GREAT_TREASURES_COUNT);\n }\n });\n\n // Finish\n this.view.submitButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(final ActionEvent e) {\n if (JOptionPane.showConfirmDialog(CharacterCreateMenu.this, \"Are you sure these are your character details?\") == JOptionPane.YES_OPTION) {\n CharacterCreateMenu.this.model.done();\n }\n }\n });\n }", "title": "" }, { "docid": "c5a4147bbf75f457564fb09c8f695778", "score": "0.5776943", "text": "private void initComponents() {\n \tContainer pane = getContentPane();\n\n if (RIGHT_TO_LEFT) {\n pane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\n }\n \n \tJButton button;\n JTextField textfield;\n JLabel label;\n\n \tentry = new JTextField();\n status = new JLabel();\n sendButton = new JButton(\"Send\");\n leaveButton = new JButton(\"Leave Room\");\n\t\tuserModel = new DefaultListModel();\n\t\tuserList = new JList(userModel);\n \tchatlogModel = new DefaultListModel();\n \tchatlogList = new JList(chatlogModel);\n\n \t// Exit window cleanly same as leave room button\n setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);\n addWindowListener(new WindowAdapter() {\n \tpublic void windowClosing(WindowEvent ev) {\n \t\tleaveRoom(); \t\t\n \t\tdispose();\n \t}\n });\n setTitle(roomName + \" - \" + myName);\n\n getContentPane().setLayout(new GridBagLayout()); \n GridBagConstraints c = new GridBagConstraints();\n\t\tif (shouldFill) {\n \t\t//natural height, maximum width\n\t \tc.fill = GridBagConstraints.HORIZONTAL;\n\t\t}\n\n\t\t// Messages Label\n \tlabel = new JLabel(\"Messages:\");\n \tif (shouldWeightX) {\n \tc.weightx = 0.5;\n \t}\n \tc.fill = GridBagConstraints.HORIZONTAL;\n \tc.weightx = 0.5;\n \tc.gridx = 0;\n \tc.gridy = 0;\n \tpane.add(label, c);\n \n \t// Leave Button\n c.weightx = 0.0;\n c.fill = GridBagConstraints.HORIZONTAL;\n c.gridx = 1;\n c.gridy = 0;\n pane.add(leaveButton, c);\n \t\t\n // Members Label\n \tlabel = new JLabel(\"Members:\");\n \tc.fill = GridBagConstraints.HORIZONTAL;\n \tc.weightx = 0.5;\n \tc.gridx = 2;\n \tc.gridy = 0;\n \tpane.add(label, c);\n\n // Chat Log List\n chatlogList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tJScrollPane jScrollPane2 = new JScrollPane();\n\t\tjScrollPane2.setViewportView(chatlogList);\n c.weightx = 0.0;\n c.fill = GridBagConstraints.HORIZONTAL;\n c.ipady = 300;\n c.gridx = 0;\n c.gridy = 1;\n c.gridwidth = 2;\n getContentPane().add(jScrollPane2,c );\n\t\t// scrolls to bottom of list\t\n\t\tint lastIndex = chatlogList.getModel().getSize() - 1;\n\t\tif (lastIndex >= 0) {\n\t\t\tchatlogList.ensureIndexIsVisible(lastIndex);\n\t\t}\n \n // User List\n userList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n JScrollPane jScrollPane1 = new JScrollPane();\n\t\tjScrollPane1.setViewportView(userList);\n c.weightx = 0.0;\n c.fill = GridBagConstraints.HORIZONTAL;\n c.ipady = 300;\n c.gridx = 2;\n c.gridy = 1;\n getContentPane().add(jScrollPane1, c);\n \t\n \t// Entry Textbox\n \tc.fill = GridBagConstraints.HORIZONTAL;\n \tc.ipady = 0; //reset to default\n \tc.anchor = GridBagConstraints.PAGE_END; //bottom of space\n \tc.gridx = 0; //aligned with button 2\n \tc.gridwidth = 2; //2 columns wide\n \tc.gridy = 2; //third row\n \tpane.add(entry, c);\n \n \t// Send Button\n c.fill = GridBagConstraints.HORIZONTAL;\n \tc.ipady = 0; //reset to default\n \tc.anchor = GridBagConstraints.PAGE_END; //bottom of space\n \tc.gridx = 2; //aligned with button 2\n \tc.gridy = 2; //third row\n \tpane.add(sendButton, c);\n\n\t\t\n // Process apply button\n sendButton.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e){\n \tsend();\n }\n });\n \n leaveButton.addActionListener(new ActionListener(){\n \tpublic void actionPerformed(ActionEvent e){\n \t\tleaveRoom();\n \t}\n });\n }", "title": "" }, { "docid": "6e75b4c5947dad82b7eadf7d2d991630", "score": "0.57754284", "text": "public SetupView() {\n\t\t\n\t\tevent = Tournament.getInstanceOf();\n\t\t\n\t\tmyFont = new Font(\"Courier\", Font.PLAIN, 40);\n\n\t\tthis.setSize(800, 400);\n\t\tthis.setLayout(new GridLayout(5, 1));\n\t\t\n\t\tnameArea = new JTextArea(\"Enter Event Name Here:\");\n\t\tnameArea.setFont(myFont);\n\t\tthis.add(nameArea);\n\t\t\n\t\tnameText = new JTextField();\n\t\tnameText.setFont(myFont);\n\t\tthis.add(nameText);\n\t\t\n\t\tmatchesArea = new JTextArea(\"Enter Number of Matches Here:\");\n\t\tmatchesArea.setFont(myFont);\n\t\tthis.add(matchesArea);\n\t\t\n\t\tspinMod = new SpinnerNumberModel(0, 0, 100, 1);\n\t\tnumMatchesSpin = new JSpinner(spinMod);\n\t\tnumMatchesSpin.setFont(myFont);\n\t\tthis.add(numMatchesSpin);\n\t\t\n//\t\tnumMatchesText = new JTextField();\n//\t\tnumMatchesText.setFont(myFont);\n//\t\tthis.add(numMatchesText);\n\t\t\n\t\tenterButton = new JButton(\"Enter\");\n\t\tenterButton.setFont(myFont);\n\t\tenterButton.addActionListener(new ButtonListener());\n\t\tthis.add(enterButton);\n\t\t\n\t}", "title": "" }, { "docid": "5e5747c7f253027b4041f3548e2e490c", "score": "0.57739854", "text": "private static void buildRooms()\n {\n //Room 1 test\n room1.setNorth(room2);\n \n //Room 2 test\n room2.setSecret(true);\n\n \n end.setInMaze(false);\n }", "title": "" }, { "docid": "192ec32624721fb607688bfc3ad02338", "score": "0.5767693", "text": "private void init() {\r\n\t\tdone = (Button) findViewById(R.id.setlocationbutton);\r\n\t\thomes = (Spinner) findViewById(R.id.spinner1);\r\n\t\tfloors = (Spinner) findViewById(R.id.spinner2);\r\n\t\trooms = (Spinner) findViewById(R.id.spinner3);\r\n\t\tinrooms = (Spinner) findViewById(R.id.spinner4);\r\n\t\tdetail = (TextView) findViewById(R.id.serviceid);\r\n\t\tusertags = (EditText) findViewById(R.id.usertag);\r\n\t\t\r\n\t\tinRoomList.add(\"Empty\");\r\n\t\tinRoomList.add(\"Top\");\r\n\t\tinRoomList.add(\"Bottom\");\r\n\t\tinRoomList.add(\"Right\");\r\n\t\tinRoomList.add(\"Left\");\r\n\t\tinRoomList.add(\"Front\");\r\n\t\tinRoomList.add(\"Back\");\r\n\r\n\r\n\t\tdone.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// first get what the user has given\r\n\t\t\t\tString home = homes.getSelectedItem().toString();\r\n\t\t\t\tString floor = floors.getSelectedItem().toString();\r\n\t\t\t\t// if the floor field is empty\r\n\t\t\t\tif (floor.trim().equals(\"Empty\")) {\r\n\t\t\t\t floor = \"notset\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString room = rooms.getSelectedItem().toString();\r\n\t\t\t\t// if the room field is empty\r\n\t\t\t\tif (room.trim().equals(\"Empty\")) {\r\n\t\t\t\t room = \"notset\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tString inroom = inrooms.getSelectedItem().toString();\r\n\t\t\t\t// if the inroom field is empty\r\n\t\t\t\tif (inroom.trim().equals(\"Empty\")) {\r\n\t\t\t\t inroom = \"notset\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString usertag = usertags.getText().toString();\r\n\t\t\t\t// if the usertag field is empty\r\n\t\t\t\tif (usertag.trim().equals(\"\")) {\r\n\t\t\t\t usertag = \"notset\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// send setLocation to the selected device\r\n\t\t\t\tIntent setLocation = new Intent(LocationAssignment.this, RegistrationService.class);\r\n\t\t\t\tsetLocation.putExtra(\"command\", \"SETLOCATION\");\r\n\t\t\t\tsetLocation.putExtra(\"dstServiceid\", serviceid);\r\n\t\t\t\tsetLocation.putExtra(\"location\", home+\"+\"+floor+\"+\"+room+\"+\"+inroom+\"+\"+usertag);\r\n\t\t\t\tstartService(setLocation);\r\n\t\t\t\t\r\n\t\t\t\t// store the user tag into the database\r\n\t\t\t\tIntent addUserTag = new Intent(LocationAssignment.this, RegistrationService.class);\r\n\t\t\t\taddUserTag.putExtra(\"command\", \"ADDUSERTAG\");\r\n\t\t\t\taddUserTag.putExtra(\"USERTAG\", usertag);\r\n\t\t\t\tstartService(addUserTag);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treceiver = new BroadcastReceiver(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onReceive(Context context, Intent intent) {\r\n\t\t\t\thomeList = intent.getStringArrayListExtra(\"homes\");\r\n\t\t\t\tfloorList = intent.getStringArrayListExtra(\"floors\");\r\n\t\t\t\troomList = intent.getStringArrayListExtra(\"rooms\");\r\n\r\n\t\t\t\t// add empty choice to the spinner\r\n\t\t\t\tfloorList.add(0, \"Empty\");\r\n\t\t\t\troomList.add(0, \"Empty\");\r\n\r\n\t\t\t\t// populate the spinner with the home map pulled from database\r\n\t\t\t\tpopulateHome();\r\n\t\t\t\tpopulateFloors();\r\n\t\t\t\tpopulateRooms();\r\n\t\t\t\tpopulateInroom();\r\n\t\t\t}\r\n\t\t};\r\n\t}", "title": "" }, { "docid": "0b7c1a75dd5003bab27e711cc84de611", "score": "0.575789", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jMenuBar1 = new javax.swing.JMenuBar();\n mnuVeiculos = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n mnuClientes = new javax.swing.JMenu();\n jMenuItem3 = new javax.swing.JMenuItem();\n jMenuItem4 = new javax.swing.JMenuItem();\n mnuLocacao = new javax.swing.JMenu();\n jMenuItem5 = new javax.swing.JMenuItem();\n jMenuItem6 = new javax.swing.JMenuItem();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem7 = new javax.swing.JMenuItem();\n mnuSair = new javax.swing.JMenu();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"*** Sistema de Locação de Veículos - RentCar ***\");\n\n mnuVeiculos.setText(\"Veículos\");\n\n jMenuItem1.setText(\"Cadastro\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n mnuVeiculos.add(jMenuItem1);\n\n jMenuItem2.setText(\"Listagem\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n mnuVeiculos.add(jMenuItem2);\n\n jMenuBar1.add(mnuVeiculos);\n\n mnuClientes.setText(\"Clientes\");\n\n jMenuItem3.setText(\" Cadastro\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n mnuClientes.add(jMenuItem3);\n\n jMenuItem4.setText(\"Listagem\");\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n mnuClientes.add(jMenuItem4);\n\n jMenuBar1.add(mnuClientes);\n\n mnuLocacao.setText(\"Locação\");\n\n jMenuItem5.setText(\"Alugar Veículo\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n mnuLocacao.add(jMenuItem5);\n\n jMenuItem6.setText(\"Devolução\");\n jMenuItem6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem6ActionPerformed(evt);\n }\n });\n mnuLocacao.add(jMenuItem6);\n\n jMenuBar1.add(mnuLocacao);\n\n jMenu1.setText(\" Usuários\");\n\n jMenuItem7.setText(\"Cadastro\");\n jMenuItem7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem7ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem7);\n\n jMenuBar1.add(jMenu1);\n\n mnuSair.setText(\"Sair\");\n mnuSair.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n mnuSairMouseClicked(evt);\n }\n });\n jMenuBar1.add(mnuSair);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 279, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "1a768a380d9dc1128eec47708be4f69a", "score": "0.5754118", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jSeparator2 = new javax.swing.JSeparator();\n jMenuItem2 = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JSeparator();\n jMenuItem3 = new javax.swing.JMenuItem();\n jSeparator3 = new javax.swing.JSeparator();\n jMenuItem6 = new javax.swing.JMenuItem();\n jSeparator4 = new javax.swing.JSeparator();\n jMenuItem7 = new javax.swing.JMenuItem();\n jSeparator5 = new javax.swing.JSeparator();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem8 = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenuItem5 = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"NATIONAL INSTITUTE OF TECHNOLOGY,TORUCHIRAPPALLI\");\n\n jMenuBar1.setFont(new java.awt.Font(\"Segoe UI\", 1, 24));\n\n jMenu1.setText(\"File\");\n jMenu1.setFont(new java.awt.Font(\"Segoe UI\", 1, 18));\n jMenu1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu1ActionPerformed(evt);\n }\n });\n\n jMenuItem1.setText(\"Booking Hall\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n jMenu1.add(jSeparator2);\n\n jMenuItem2.setText(\"Check Availability\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n jMenu1.add(jSeparator1);\n\n jMenuItem3.setText(\"Delete a Request\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem3);\n jMenu1.add(jSeparator3);\n\n jMenuItem6.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));\n jMenuItem6.setText(\"Log Out\");\n jMenuItem6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem6ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem6);\n jMenu1.add(jSeparator4);\n\n jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem7.setText(\"Exit\");\n jMenuItem7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem7ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem7);\n jMenu1.add(jSeparator5);\n\n jMenuBar1.add(jMenu1);\n\n jMenu3.setText(\"Report\");\n jMenu3.setFont(new java.awt.Font(\"Segoe UI\", 1, 18));\n\n jMenuItem8.setText(\"Booking Hall Report\");\n jMenuItem8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem8ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem8);\n\n jMenuBar1.add(jMenu3);\n\n jMenu2.setText(\"Help\");\n jMenu2.setFont(new java.awt.Font(\"Segoe UI\", 1, 18));\n\n jMenuItem4.setText(\"Hall Information\");\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem4ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem4);\n\n jMenuItem5.setText(\"About\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n jMenu2.add(jMenuItem5);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1265, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 697, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "932e2fffbb665cca7a879c5bd5562007", "score": "0.57533264", "text": "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(new Color(154, 205, 50));\n\t\tframe.setBounds(100, 100, 415, 163);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Diet Plans\");\n\t\tlblNewLabel.setFont(new Font(\"Arial\", Font.BOLD, 20));\n\t\tlblNewLabel.setBounds(152, 31, 101, 24);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJButton btnNonvegDiet = new JButton(\"Non-Veg Diet\");\n\t\tbtnNonvegDiet.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tNonVeg nw = new NonVeg();\n\t\t\t\tnw.NewScreen();\n\t\t\t}\n\t\t});\n\t\tbtnNonvegDiet.setBackground(Color.LIGHT_GRAY);\n\t\tbtnNonvegDiet.setFont(new Font(\"Arial\", Font.BOLD, 12));\n\t\tbtnNonvegDiet.setBounds(142, 66, 111, 23);\n\t\tframe.getContentPane().add(btnNonvegDiet);\n\t\t\n\t\tJButton btnVegDiet = new JButton(\"Veg Diet\");\n\t\tbtnVegDiet.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tVeg nw = new Veg();\n\t\t\t\tnw.NewScreen();\n\t\t\t}\n\t\t});\n\t\tbtnVegDiet.setBackground(Color.LIGHT_GRAY);\n\t\tbtnVegDiet.setFont(new Font(\"Arial\", Font.BOLD, 12));\n\t\tbtnVegDiet.setBounds(10, 66, 111, 23);\n\t\tframe.getContentPane().add(btnVegDiet);\n\t\t\n\t\tJButton btnVeganDiet = new JButton(\"Vegan Diet \");\n\t\tbtnVeganDiet.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tVegan nw = new Vegan();\n\t\t\t\tnw.NewScreen();\t\n\t\t\t}\n\t\t});\n\t\tbtnVeganDiet.setBackground(Color.LIGHT_GRAY);\n\t\tbtnVeganDiet.setFont(new Font(\"Arial\", Font.BOLD, 12));\n\t\tbtnVeganDiet.setBounds(278, 66, 111, 23);\n\t\tframe.getContentPane().add(btnVeganDiet);\n\t}", "title": "" }, { "docid": "2a8bb5b9564db28937c53e0361508957", "score": "0.57441676", "text": "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 429, 496);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tGUIUtils.setCenterInWindow(frame);\n\t\t\n\t\tframe.setVisible(true);\n\t\tjpl = new JPanel();\n\t\tjpl.setSize(429, 486);\n\t\tframe.getContentPane().add(jpl);\n\t\tjpl.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"请填写需要修改的科室名称\");\n\t\tlblNewLabel.setBounds(14, 58, 180, 23);\n\t\tjpl.add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(208, 57, 113, 24);\n\t\tjpl.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"更新的科室办公地点\");\n\t\tlblNewLabel_1.setBounds(40, 147, 166, 18);\n\t\tjpl.add(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"更新的科室主攻方向\");\n\t\tlblNewLabel_2.setBounds(35, 248, 159, 18);\n\t\tjpl.add(lblNewLabel_2);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(208, 144, 113, 24);\n\t\tjpl.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setBounds(208, 245, 113, 24);\n\t\tjpl.add(textField_2);\n\t\ttextField_2.setColumns(10);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"确认\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tRoom r = new Room();\n\t\t\t\tRoomDao roomDao = new RoomDaoImpl();\n\t\t\t\t\n\t\t\t\tr.setName(textField.getText());\n\t\t\t\tr.setWhere(textField_1.getText());\n\t\t\t\tr.setD_o(textField_2.getText());\n\t\t\t\tr.setNum(roomDao.getRoomByRoomName(textField.getText()).getNum());\n\t\t\t\tr.setId(roomDao.getRoomByRoomName(textField.getText()).getId());\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\troomDao.updateRoomByRoomName(textField.getText(), r);\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(frame,\"修改科室信息成功\");\n\t\t\t\t\t\n\t\t\t\t}catch(Exception e2) {\n\t\t\t\t\tthrow e2;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(45, 347, 113, 27);\n\t\tjpl.add(btnNewButton);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"取消\");\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(238, 347, 113, 27);\n\t\tjpl.add(btnNewButton_1);\n\t}", "title": "" }, { "docid": "70b181f768cc5dfdb2a9136c13164c27", "score": "0.57390994", "text": "public Game()\n {\n createRooms(); \n parser = new Parser(); \n createCommands();\n window = new JFrame();\n window.setSize(1280, 720);\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n window.getContentPane().setBackground(Color.black);\n window.setLayout(null);\n window.setVisible(true);\n con = window.getContentPane();\n \n //titleImage = new ImageIcon(getClass().getClassLoader().getResource(\"garrylivingroom\"));\n \n titleImagePanel = new JPanel();\n titleImagePanel.setBounds(0, 0, 800, 600);\n \n titleImageLabel = new JLabel();\n titleImageLabel.setIcon(titleImage);\n titleImagePanel.add(titleImageLabel);\n \n titleNamePanel = new JPanel();\n titleNamePanel.setBounds(450, 100, 600, 150);\n titleNamePanel.setBackground(Color.black);\n titleNameLabel = new JLabel(\"Project Visage\");\n titleNameLabel.setForeground(Color.white);\n titleNameLabel.setFont(titleFont);\n \n startButtonPanel = new JPanel();\n startButtonPanel.setBounds(650, 400, 200, 100);\n startButtonPanel.setBackground(Color.black);\n \n startButton = new JButton(\"START\");\n startButton.setBackground(Color.black);\n startButton.setForeground(Color.white);\n startButton.setFont(normalFont);\n \n titleNamePanel.add(titleNameLabel);\n startButtonPanel.add(startButton);\n \n con.add(titleNamePanel);\n con.add(startButtonPanel);\n con.add(titleImagePanel);\n }", "title": "" }, { "docid": "40888dd20d80e490fcfe3014ffd2b194", "score": "0.57376695", "text": "public equipment1() {\n initComponents();\n getConnection();\n findUsers();\n jButton1.setVisible(false);\n }", "title": "" }, { "docid": "f6a1e9ff5182a0ff409ea18a3b1048d9", "score": "0.57372254", "text": "public void init() {\n\t\t//while (gameRunning) {\n\t\t\t//play game until gameRunning is false\n\t\t\n\t\t// create rooms in the house\n\t\t\n\t\t//Foyer and items\n\t\tRoom foyer = new Room(\n\t\t\t\t\"The Foyer\",\n\t\t\t\t\"a large entry way\",\n\t\t\t\t\"The large entryway of an eastern traditonal mansion. A living room is open to the east, \"\n\t\t\t\t+ \"\\n where a custom-made white leather couch can be seen.\" + \"\\n\"\n\t\t\t\t); // change long description\n\t\t\n\t\tthis.rooms[0] = foyer;\n\t\tFurniture plant = new Furniture(\n\t\t\t\t\"plant\",\n\t\t\t\t\"a fiddle leaf fig\",\n\t\t\t\t\"a 5 year old fiddle leaf fig plant\"\n\t\t\t\t);\n\t\tClothing coat = new Clothing(\n\t\t\t\t\"coat\",\n\t\t\t\t\"a red jacket\",\n\t\t\t\t\"a red puffer coat with tortoise shell buttons\"\n\t\t\t\t);\n\t\tFixture[] foyItems = {plant, coat};\n\t\tfoyer.setItems(foyItems);\n\t\t\n\t\t//Living Room and items\n\t\tRoom living = new Room(\n\t\t\t\t\"The Living Room\",\n\t\t\t\t\"a sleek modern living room\",\n\t\t\t\t\"The sleek and modern living room with a white leather sofa and a crystal ceiling light fixture.\"\n\t\t\t\t+ \"\\n A bathroom with floor to ceiling tiles and a claw-foot soaker tub is to the east.\" \n\t\t\t\t\t\t+ \"\\n The hardwood floor leads south to an archway, through it a formal dining room with\"\n\t\t\t\t\t\t+ \"\\n a long redwood table. To the north is a bedroom, in it a stunninng oak bedframe.\" \n\t\t\t\t\t\t+ \"\\n To the west a large entryway of an eastern traditonal mansion.\"\n\t\t\t\t);\n\t\tthis.rooms[1] = living;\n\t\tFurniture sofa = new Furniture(\n\t\t\t\t\"sofa\",\n\t\t\t\t\"a white leather sofa\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tFurniture chaise = new Furniture(\n\t\t\t\t\"recliner\",\n\t\t\t\t\"a pink chaise lounge\",\n\t\t\t\t\"a pink chaise lounge\"\n\t\t\t\t);\n\t\tAppliances tv = new Appliances(\n\t\t\t\t\"tv\",\n\t\t\t\t\"a plasma flat screen tv\",\n\t\t\t\t\"a plasma flat screen tv\"\n\t\t\t\t);\n\t\tAppliances light2 = new Appliances(\n\t\t\t\t\"light\",\n\t\t\t\t\"crystal light fixture\",\n\t\t\t\t\"a grey Keruig a grey coffee maker\"\n\t\t\t\t);\n\t\tFixture[] livItems = {sofa, chaise, tv, light2};\n\t\tliving.setItems(livItems);\n\t\t\n\t\t//Kitchen and items\n\t\tRoom kitchen = new Room(\n\t\t\t\t\"The Kitchen\",\n\t\t\t\t\"a newly renovated kitchen\",\n\t\t\t\t\"A newly renovated kitchen with marble countertops. A bathroom with floor to ceiling tiles \"\n\t\t\t\t+ \"\\n and a claw-foot soaker tub is to the north. From here, there is a spacious garage \"+ \"\\n\"\n\t\t\t\t+ \"filled with luxury cars to the south. To the west is a formal dining room with a long redwood table.\"\n\t\t\t\t);\n\t\tthis.rooms[2] = kitchen;\n\t\tAppliances fridge = new Appliances(\n\t\t\t\t\"fridge\",\n\t\t\t\t\"a stainless steel refrigerator\",\n\t\t\t\t\"a smart LG stainless steel refrigerator\"\n\t\t\t\t);\n\t\tAppliances microwave = new Appliances(\n\t\t\t\t\"microwave\",\n\t\t\t\t\"a stainless steel microwave\",\n\t\t\t\t\"a smart LG stainless steel microwave\"\n\t\t\t\t);\n\t\tAppliances oven = new Appliances(\n\t\t\t\t\"oven\",\n\t\t\t\t\"a stainless steel oven\",\n\t\t\t\t\"an LG stainless steel oven\"\n\t\t\t\t);\n\t\tAppliances coffeemaker = new Appliances(\n\t\t\t\t\"coffeemaker\",\n\t\t\t\t\"a grey coffee maker\",\n\t\t\t\t\"a grey Keruig a grey coffee maker\"\n\t\t\t\t);\n\t\tFixture[] kitchItems = {fridge, microwave, oven, coffeemaker};\n\t\tkitchen.setItems(kitchItems);\n\t\t\n\t\t//Dining Room and items \n\t\tRoom dining = new Room(\n\t\t\t\t\"The Dining Room\",\n\t\t\t\t\"a formal dining room\",\n\t\t\t\t\"A formal dining room, in it a long custom redwood table and a golden chandelier. \"+ \"\\n\"\n\t\t\t\t\t+ \"From here, there is a sleek modern livng room to the north.\" + \"\\n\"\n\t\t\t\t\t+ \"To the east is a newly renovated kitchen with marble countertops.\"\n\t\t\t\t);\n\t\tthis.rooms[3] = dining;\n\t\tFurniture diningTable = new Furniture(\n\t\t\t\t\"dining table\",\n\t\t\t\t\"a long oak dining table\",\n\t\t\t\t\"a long oak dining table that seats 16\"\n\t\t\t\t);\n\t\tFurniture bench1 = new Furniture(\n\t\t\t\t\"long bench\",\n\t\t\t\t\"a long bench\",\n\t\t\t\t\"a long bench under the dining room table\"\n\t\t\t\t);\n\t\tFurniture bench2 = new Furniture(\n\t\t\t\t\"short bench\",\n\t\t\t\t\"a shorter bench\",\n\t\t\t\t\"a short bench under the dining room table\"\n\t\t\t\t);\n\t\tAppliances chandelier = new Appliances(\n\t\t\t\t\"chandelier\",\n\t\t\t\t\"a golden chandelier\",\n\t\t\t\t\"a golden chandelier\"\n\t\t\t\t);\n\t\tFixture[] dinItems = {diningTable, bench1, bench2, chandelier};\n\t\tdining.setItems(dinItems);\n\t\t\n\t\t//Bedroom and items\n\t\tRoom bedroom = new Room(\n\t\t\t\t\"The Bedroom\",\n\t\t\t\t\"a gorgeous bedroom\",\n\t\t\t\t\"An elegant bedroom with an Alaskan king bed and a mahogany desk. To the west, a claw-foot \"\n\t\t\t\t\t\t+ \"\\n soaker tub can be seen inside a bathroom with floor to ceiling tiles.\" + \"\\n\"\n\t\t\t\t\t\t+ \"To the north is a walk in closet with a solid mirror wall and a shoe carousel.\"\n\t\t\t\t);\t\n\t\tthis.rooms[4] = bedroom;\n\t\tFurniture bed = new Furniture(\n\t\t\t\t\"bed\",\n\t\t\t\t\"an Alaska king bed\",\n\t\t\t\t\"an Alaska king bed with a white quilted headboard\"\n\t\t\t\t);\n\t\tAppliances lamp1 = new Appliances(\n\t\t\t\t\"right corner light\",\n\t\t\t\t\"a gold tri-pod light\",\n\t\t\t\t\"a 90 inch tall gold tri-pod light\"\n\t\t\t\t);\n\t\tAppliances lamp2 = new Appliances(\n\t\t\t\t\"left corner light\",\n\t\t\t\t\"a gold tri-pod light\",\n\t\t\t\t\"a 90 inch tall gold tri-pod light\"\n\t\t\t\t);\n\t\tFurniture desk = new Furniture(\n\t\t\t\t\"desk\",\n\t\t\t\t\"a large mahogny desk\",\n\t\t\t\t\"a large mahogny desk with plush pink office chairs\"\n\t\t\t\t);\n\t\tFixture[] bedItems = {bed, lamp1, lamp2, desk};\n\t\tbedroom.setItems(bedItems);\n\t\t\n\t\t//Walk-in closet and items\n\t\tRoom walkIn = new Room(\n\t\t\t\t\"The walk in closet\",\n\t\t\t\t\"a very spacious walk in closet\",\n\t\t\t\t\"A very spacious walk in closet, in it a solid mirror wall and a shoe carousel. \"+ \"\\n\"\n\t\t\t\t\t\t+ \"The cream colored carpet leads out to the bedroom, where there is \"+ \"\\n\"\n\t\t\t\t\t\t+ \"an Alaskan king bed and a large mahogany desk.\"\n\t\t\t\t);\t\n\t\tthis.rooms[5] = walkIn;\n\t\tClothing dress = new Clothing(\n\t\t\t\t\"dress\",\n\t\t\t\t\"a little black dress\",\n\t\t\t\t\"a short black dress with a sweetheart neckline and empire waist\"\n\t\t\t\t);\n\t\tClothing blouse = new Clothing(\n\t\t\t\t\"blouse\",\n\t\t\t\t\"a blue blouse\",\n\t\t\t\t\"a blue and white pin striped blouse with pearl buttons\"\n\t\t\t\t);\n\t\tClothing shorts = new Clothing(\n\t\t\t\t\"shorts\",\n\t\t\t\t\"a pair of denim shorts\",\n\t\t\t\t\"a pair of Levi's high waisted dark wash distressed denim shorts\"\n\t\t\t\t);\n\t\tClothing blazer = new Clothing(\n\t\t\t\t\"blazer\",\n\t\t\t\t\"a tan blazer\",\n\t\t\t\t\"a tan blazer with shoulder pads and white piping\"\n\t\t\t\t);\n\t\tClothing cardigan = new Clothing(\n\t\t\t\t\"cardigan\",\n\t\t\t\t\"a cream cardigan\",\n\t\t\t\t\"a large cozy cream colored waffle knit cardigan with balloon sleeves\"\n\t\t\t\t);\n\t\tClothing skirt = new Clothing(\n\t\t\t\t\"skirt\",\n\t\t\t\t\"a pink plaid skirt\",\n\t\t\t\t\"an a-line skirt with two front zipper details\"\n\t\t\t\t);\n\t\tFixture[] walkInItems = {dress, blouse, shorts, skirt, blazer, cardigan};\n\t\twalkIn.setItems(walkInItems);\n\t\t\n\t\t//Bathroom and Items\n\t\tRoom bathroom = new Room(\n\t\t\t\t\"The Bathroom\",\n\t\t\t\t\"an elegant bathroom\",\n\t\t\t\t \"A bathroom with a claw-foot soaker tub and floor to ceiling tiles.\"+ \"\\n\"\n\t\t\t\t\t\t+ \"From here, there is a sleek modern livng room to the west.\" + \"\\n\"\n\t\t\t\t\t\t+ \"To the south is a newly renovated kitchen with marble countertops.\"\n\t\t\t\t);\n\t\tthis.rooms[6] = bathroom;\n\t\t\n\t\tFurniture toilet = new Furniture(\n\t\t\t\t\"toilet\",\n\t\t\t\t\"a white porcelain toilet\",\n\t\t\t\t\"a white porcelain toilet\"\n\t\t\t\t);\n\t\tAppliances light = new Appliances(\n\t\t\t\t\"light\",\n\t\t\t\t\"a gold light fixture\",\n\t\t\t\t\"a gold light fixture\"\n\t\t\t\t);\n\t\tFixture[] bathItems = {toilet,light};\n\t\tbathroom.setItems(bathItems);\n\t\t\n\t\t//Guest Room and items\n\t\tRoom guestRoom = new Room(\n\t\t\t\t\"The Guest Bedroom\",\n\t\t\t\t\"a gorgeous guest bedroom\",\n\t\t\t\t\"A gorgeous guest bedroom, in it a queen bed with floating oak bedframe and a cozy\"\n\t\t\t\t+ \"\\n reading nook. From here, there is a sleek modern livng room to the north.\" + \"\\n\"\n\t\t\t\t\t\t+ \"To the east is a newly renovated kitchen with marble countertops.\"\n\t\t\t\t);\t\n\t\tthis.rooms[7] = guestRoom;\n\t\tFurniture bed2 = new Furniture(\n\t\t\t\t\"bed\",\n\t\t\t\t\"an queen bed\",\n\t\t\t\t\"a queen bed with a floating oak bedframe\"\n\t\t\t\t);\n\t\tAppliances lamp3 = new Appliances(\n\t\t\t\t\"right corner light\",\n\t\t\t\t\"a gold tri-pod light\",\n\t\t\t\t\"a 90 inch tall gold tri-pod light\"\n\t\t\t\t);\n\t\tFixture[] guestItems = {bed2, lamp3};\n\t\tguestRoom.setItems(guestItems);\n\t\t\n\t\t//Garage and items\n\t\tRoom garage = new Room(\n\t\t\t\t\"The Garage\",\n\t\t\t\t\"a 12 car garage\",\n\t\t\t\t\"A spacious, well-light 12 car garage, in it many luxury cars. \"+ \"\\n\"\n\t\t\t\t\t\t+ \"The exit is to the north into the newly renovated kitchen with marble countertops.\"\n\t\t\t\t);\t\n\t\tthis.rooms[8] = garage;\n\t\tCar lambo = new Car(\n\t\t\t\t\"lambo\",\n\t\t\t\t\"a green lambourghini\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar lexus = new Car(\n\t\t\t\t\"lexus\",\n\t\t\t\t\"a silver lexus es330\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar rover = new Car(\n\t\t\t\t\"rover\",\n\t\t\t\t\"a range rover\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar jeep = new Car(\n\t\t\t\t\"jeep\",\n\t\t\t\t\"a white jeep patriot\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar ford = new Car(\n\t\t\t\t\"ford\",\n\t\t\t\t\"a red ford F150\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar corvette = new Car(\n\t\t\t\t\"corvette\",\n\t\t\t\t\"an orange corvette\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar benz = new Car(\n\t\t\t\t\"benz\",\n\t\t\t\t\"a matte black G-wagon\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar toyota = new Car(\n\t\t\t\t\"toyota\",\n\t\t\t\t\"a blue toyata camry\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar cadillac = new Car(\n\t\t\t\t\"cadillac\",\n\t\t\t\t\"a silver cadillac CTS\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar rolls = new Car(\n\t\t\t\t\"rolls\",\n\t\t\t\t\"a black Rolls Royce\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar camaro = new Car(\n\t\t\t\t\"camaro\",\n\t\t\t\t\"a yellow camaro\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\tCar vw = new Car(\n\t\t\t\t\"vw\",\n\t\t\t\t\"a pink volks wagen convertible\",\n\t\t\t\t\"\"\n\t\t\t\t);\n\t\t\n\t\tFixture[] garItems = {lambo, lexus, rover, jeep, ford, corvette, benz, toyota,vw, rolls, camaro, cadillac};\n\t\tgarage.setItems(garItems);\n\t\t\n\t\t//set the starting room to the living room\n\t\tthis.startingRoom = bedroom;\n\t\t\n\t\t// setting exits to create home layout\n\t\tfoyer.setExits(new Room[] {null, null, living, null});\n\t\tliving.setExits(new Room[] {guestRoom, dining, bathroom, foyer});\n\t\tguestRoom.setExits(new Room[] {null, living, null, null});\n\t\tdining.setExits(new Room[] {living, null, kitchen, null});\n\t\tkitchen.setExits(new Room[] {bathroom, garage, null, dining});\n\t\tgarage.setExits(new Room[] {kitchen, null, null, null});\n\t\tbathroom.setExits(new Room[] {null, kitchen, bedroom, living});\n\t\tbedroom.setExits(new Room[] {walkIn, null, null, bathroom});\n\t\twalkIn.setExits(new Room[] { null, bedroom, null, null});\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "23542931d8bcf76d216b2b4e1df9cdee", "score": "0.5734669", "text": "public MainMenu() {\n\n db = new DatabaseConnection();\n\n initComponents();\n setLocationByPlatform(true);\n\n films = new ArrayList<>();\n\n // create two cinema halls\n ArrayList<Cinema> cinemas = db.retriveCinemas();\n\n // load film to the system\n films = db.retriveFims(cinemas);\n\n }", "title": "" }, { "docid": "3f5c6c6a2b56c8b9f715c5020ba8c6a3", "score": "0.57290536", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n nameJLabel = new javax.swing.JLabel();\n descriptionJLabel = new javax.swing.JLabel();\n backJButton = new javax.swing.JButton();\n devicesJPanel = new javax.swing.JPanel();\n roomsJPanel = new javax.swing.JPanel();\n\n setBackground(new java.awt.Color(255, 255, 255));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel1.setText(\"Surgery Details\");\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(209, 21, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"Surgery Name:\");\n add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(104, 81, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"Surgery Description:\");\n add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 120, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel4.setText(\"Devices Required:\");\n add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 160, -1, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel5.setText(\"Suitable Rooms:\");\n add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 290, -1, -1));\n\n nameJLabel.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n nameJLabel.setText(\"jLabel6\");\n add(nameJLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 80, 240, -1));\n\n descriptionJLabel.setFont(new java.awt.Font(\"Tahoma\", 0, 12)); // NOI18N\n descriptionJLabel.setText(\"jLabel7\");\n add(descriptionJLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(217, 113, 710, 22));\n\n backJButton.setText(\"<<Back\");\n backJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backJButtonActionPerformed(evt);\n }\n });\n add(backJButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 470, -1, -1));\n\n devicesJPanel.setBackground(new java.awt.Color(255, 255, 255));\n devicesJPanel.setLayout(new java.awt.GridBagLayout());\n add(devicesJPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 160, 730, 120));\n\n roomsJPanel.setBackground(new java.awt.Color(255, 255, 255));\n roomsJPanel.setLayout(new java.awt.GridBagLayout());\n add(roomsJPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 300, 720, 130));\n }", "title": "" }, { "docid": "ef83fd425d4af2a0e5554f032117bf16", "score": "0.5721875", "text": "private void initialize() {\n\t\tnodeCombo.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED) {\n\t\t\t\t\tevent.setLocation((Node)nodeCombo.getSelectedItem());\n\t\t\t\t\trunSimulation();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tpriorityCombo.addItemListener(new ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED) {\n\t\t\t\t\tevent.setPriority(((Integer)priorityCombo.getSelectedItem()).intValue());\n\t\t\t\t\trunSimulation();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttimeSpinner.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tevent.setTime(Double.parseDouble(timeModel.getValue().toString()));\n\t\t\t\trunSimulation();\n\t\t\t}\n\t\t});\n\t\tokButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsaveEvent();\n\t\t\t\tmissionPanel.getMissionSplitPane().getMissionsTab().updateView();\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcancelButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tevent.setTime(initTime);\n\t\t\t\tevent.setPriority(initPriority);\n\t\t\t\tevent.setLocation(initLocation);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "f9b77771532e3449bd13ca54cc24dc1e", "score": "0.57183224", "text": "@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 jLabel9 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\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 cmbCountryCode = new javax.swing.JComboBox();\n cmbCityCode = new javax.swing.JComboBox();\n cmdHotels = new javax.swing.JComboBox();\n txtNoOfSingleRoom = new javax.swing.JTextField();\n txtNoOfDpoubleRoom = new javax.swing.JTextField();\n txtNoOfTripleRoom = new javax.swing.JTextField();\n cmbDDFrom = new javax.swing.JComboBox();\n cmbMMFrom = new javax.swing.JComboBox();\n cmbYYFrom = new javax.swing.JComboBox();\n cmbDDTo = new javax.swing.JComboBox();\n cmbYYTo = new javax.swing.JComboBox();\n cmbMMTo = new javax.swing.JComboBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtxResponse = new javax.swing.JTextArea();\n cmbSubmit = new javax.swing.JButton();\n cmbClear = new javax.swing.JButton();\n cmbExit = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel9.setText(\"Agent Back Office\");\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 308, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(169, 169, 169))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(25, Short.MAX_VALUE))\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n jLabel1.setText(\"Country Code\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n jLabel2.setText(\"City\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n jLabel3.setText(\"Hotel\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n jLabel4.setText(\"No of Single Room(s)\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n jLabel5.setText(\"No of Double Room(s)\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n jLabel6.setText(\"No of Tripple Room(s)\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n jLabel7.setText(\"From\");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n jLabel8.setText(\"To\");\n\n cmbCountryCode.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n cmbCountryCode.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cmdCountryCodeItemStateChanged(evt);\n }\n });\n\n cmbCityCode.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n cmbCityCode.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cmbCityCodeItemStateChanged(evt);\n }\n });\n\n cmdHotels.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n cmdHotels.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cmdHotelsItemStateChanged(evt);\n }\n });\n cmdHotels.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdHotelsActionPerformed(evt);\n }\n });\n\n txtNoOfSingleRoom.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n\n txtNoOfDpoubleRoom.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n\n txtNoOfTripleRoom.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n\n cmbDDFrom.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n cmbDDFrom.setModel(new javax.swing.DefaultComboBoxModel(new String[]{\"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\"}));\n cmbDDFrom.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n cmbDDFromItemStateChanged(evt);\n }\n });\n\n cmbMMFrom.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n cmbMMFrom.setModel(new javax.swing.DefaultComboBoxModel(new String[]{\"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\"}));\n\n cmbYYFrom.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n cmbYYFrom.setModel(new javax.swing.DefaultComboBoxModel(new String[]{\"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\"}));\n\n cmbDDTo.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n cmbDDTo.setModel(new javax.swing.DefaultComboBoxModel(new String[]{\"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\"}));\n\n cmbYYTo.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n cmbYYTo.setModel(new javax.swing.DefaultComboBoxModel(new String[]{\"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\"}));\n\n cmbMMTo.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n cmbMMTo.setModel(new javax.swing.DefaultComboBoxModel(new String[]{\"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\"}));\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(159, 159, 159)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(cmbDDFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbMMFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbYYFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(cmbDDTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmbMMTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cmbYYTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtNoOfTripleRoom, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmdHotels, javax.swing.GroupLayout.Alignment.LEADING, 0, 250, Short.MAX_VALUE)\n .addComponent(cmbCityCode, javax.swing.GroupLayout.Alignment.LEADING, 0, 156, Short.MAX_VALUE)\n .addComponent(cmbCountryCode, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtNoOfSingleRoom, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNoOfDpoubleRoom, javax.swing.GroupLayout.Alignment.LEADING)))\n .addContainerGap(150, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cmbCountryCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(cmbCityCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cmdHotels, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtNoOfSingleRoom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtNoOfDpoubleRoom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtNoOfTripleRoom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmbDDFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cmbMMFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cmbYYFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmbDDTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cmbMMTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cmbYYTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(30, 30, 30))\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 .addGap(31, 31, 31)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(31, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(27, Short.MAX_VALUE))\n );\n\n jtxResponse.setBackground(new java.awt.Color(0, 0, 0));\n jtxResponse.setColumns(20);\n jtxResponse.setForeground(new java.awt.Color(51, 255, 0));\n jtxResponse.setRows(5);\n jScrollPane1.setViewportView(jtxResponse);\n\n cmbSubmit.setText(\"Check \");\n cmbSubmit.setActionCommand(\"Avilability\");\n cmbSubmit.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n try {\n try {\n cmbSubmitMouseClicked(evt);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n });\n cmbSubmit.addActionListener(new java.awt.event.ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n\n }\n });\n\n cmbClear.setText(\"Clear\");\n cmbClear.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n cmbClearMouseClicked(evt);\n }\n });\n\n cmbExit.setText(\"Exit\");\n cmbExit.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n cmbExitMouseClicked(evt);\n }\n });\n cmbExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbExitActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(216, 216, 216)\n .addComponent(cmbSubmit, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(cmbClear, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(cmbExit, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(7, 7, 7)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmbClear, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmbExit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmbSubmit))\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "dbeb14dce6ff0abec0c8597cea287d1c", "score": "0.5713345", "text": "protected void initCreateRoomUI() {\r\n\t\t// Create Screen Room\r\n\t\tJPanel mainpanelCreateRoom = new JPanel(new BorderLayout());\r\n\t\tthis.getContentPane().add(mainpanelCreateRoom, SCREENCARD_NAMES[SCREENCARD_CREATEROOM]);\r\n\r\n\t\t// Tab\r\n\t\tJTabbedPane tabbedPane = new JTabbedPane();\r\n\t\tmainpanelCreateRoom.add(tabbedPane, BorderLayout.CENTER);\r\n\r\n\t\t// tabs\r\n\r\n\t\t// * Basic Settings panel\r\n\t\tJPanel containerpanelCreateRoomMainOwner = new JPanel(new BorderLayout());\r\n\t\ttabbedPane.addTab(getUIText(\"CreateRoom_Tab_Main\"), containerpanelCreateRoomMainOwner);\r\n\r\n\t\t// * Speed ​​setting panel(Stretching for prevention)\r\n\t\tJPanel containerpanelCreateRoomSpeedOwner = new JPanel(new BorderLayout());\r\n\t\ttabbedPane.addTab(getUIText(\"CreateRoom_Tab_Speed\"), containerpanelCreateRoomSpeedOwner);\r\n\r\n\t\t// * Bonus tab\r\n\t\tJPanel containerpanelCreateRoomBonusOwner = new JPanel(new BorderLayout());\r\n\t\ttabbedPane.addTab(getUIText(\"CreateRoom_Tab_Bonus\"), containerpanelCreateRoomBonusOwner);\r\n\r\n\t\t// * Garbage tab\r\n\t\tJPanel containerpanelCreateRoomGarbageOwner = new JPanel(new BorderLayout());\r\n\t\ttabbedPane.addTab(getUIText(\"CreateRoom_Tab_Garbage\"), containerpanelCreateRoomGarbageOwner);\r\n\r\n\t\t// * Miscellaneous tab\r\n\t\tJPanel containerpanelCreateRoomMiscOwner = new JPanel(new BorderLayout());\r\n\t\ttabbedPane.addTab(getUIText(\"CreateRoom_Tab_Misc\"), containerpanelCreateRoomMiscOwner);\r\n\r\n\t\t// * Preset tab\r\n\t\tJPanel containerpanelCreateRoomPresetOwner = new JPanel(new BorderLayout());\r\n\t\ttabbedPane.addTab(getUIText(\"CreateRoom_Tab_Preset\"), containerpanelCreateRoomPresetOwner);\r\n\r\n\t\t// general tab\r\n\r\n\t\t// * Speed ​​setting panel(Body)\r\n\t\tJPanel containerpanelCreateRoomMain = new JPanel();\r\n\t\tcontainerpanelCreateRoomMain.setLayout(new BoxLayout(containerpanelCreateRoomMain, BoxLayout.Y_AXIS));\r\n\t\tcontainerpanelCreateRoomMainOwner.add(containerpanelCreateRoomMain, BorderLayout.NORTH);\r\n\r\n\t\t// ** Panel Room name\r\n\t\tJPanel subpanelName = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomMain.add(subpanelName);\r\n\r\n\t\t// *** Name &quot;Room:&quot;Label\r\n\t\tJLabel labelName = new JLabel(getUIText(\"CreateRoom_Name\"));\r\n\t\tsubpanelName.add(labelName, BorderLayout.WEST);\r\n\r\n\t\t// *** Room name input Column\r\n\t\ttxtfldCreateRoomName = new JTextField();\r\n\t\ttxtfldCreateRoomName.setComponentPopupMenu(new TextComponentPopupMenu(txtfldCreateRoomName));\r\n\t\ttxtfldCreateRoomName.setToolTipText(getUIText(\"CreateRoom_Name_Tip\"));\r\n\t\tsubpanelName.add(txtfldCreateRoomName, BorderLayout.CENTER);\r\n\r\n\t\t// ** Game Mode panel\r\n\t\tJPanel subpanelMode = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomMain.add(subpanelMode);\r\n\r\n\t\t// *** Mode label\r\n\t\tJLabel labelMode = new JLabel(getUIText(\"CreateRoom_Mode\"));\r\n\t\tsubpanelMode.add(labelMode, BorderLayout.WEST);\r\n\r\n\t\t// *** Mode Combobox\r\n\t\tDefaultComboBoxModel modelMode = new DefaultComboBoxModel();\r\n\t\tloadModeList(modelMode, \"config/list/netlobby_multimode.lst\");\r\n\t\tcomboboxCreateRoomMode = new JComboBox(modelMode);\r\n\t\tcomboboxCreateRoomMode.setPreferredSize(new Dimension(200, 20));\r\n\t\tcomboboxCreateRoomMode.setToolTipText(getUIText(\"CreateRoom_Mode_Tip\"));\r\n\t\tsubpanelMode.add(comboboxCreateRoomMode, BorderLayout.EAST);\r\n\r\n\t\t// ** People participatecountPanel\r\n\t\tJPanel subpanelMaxPlayers = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomMain.add(subpanelMaxPlayers);\r\n\r\n\t\t// *** Human participation &quot;count:&quot;Label\r\n\t\tJLabel labelMaxPlayers = new JLabel(getUIText(\"CreateRoom_MaxPlayers\"));\r\n\t\tsubpanelMaxPlayers.add(labelMaxPlayers, BorderLayout.WEST);\r\n\r\n\t\t// *** People participatecountSelection\r\n\t\tint defaultMaxPlayers = propConfig.getProperty(\"createroom.defaultMaxPlayers\", 6);\r\n\t\tspinnerCreateRoomMaxPlayers = new JSpinner(new SpinnerNumberModel(defaultMaxPlayers, 2, 6, 1));\r\n\t\tspinnerCreateRoomMaxPlayers.setPreferredSize(new Dimension(200, 20));\r\n\t\tspinnerCreateRoomMaxPlayers.setToolTipText(getUIText(\"CreateRoom_MaxPlayers_Tip\"));\r\n\t\tsubpanelMaxPlayers.add(spinnerCreateRoomMaxPlayers, BorderLayout.EAST);\r\n\r\n\t\t// ** HurryupSecondcountPanel\r\n\t\tJPanel subpanelHurryupSeconds = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomMain.add(subpanelHurryupSeconds);\r\n\r\n\t\t// *** &#39;HURRY UPSeconds before the startcount:&quot;Label\r\n\t\tJLabel labelHurryupSeconds = new JLabel(getUIText(\"CreateRoom_HurryupSeconds\"));\r\n\t\tsubpanelHurryupSeconds.add(labelHurryupSeconds, BorderLayout.WEST);\r\n\r\n\t\t// *** HurryupSecondcount\r\n\t\tint defaultHurryupSeconds = propConfig.getProperty(\"createroom.defaultHurryupSeconds\", 180);\r\n\t\tspinnerCreateRoomHurryupSeconds = new JSpinner(new SpinnerNumberModel(defaultHurryupSeconds, -1, 999, 1));\r\n\t\tspinnerCreateRoomHurryupSeconds.setPreferredSize(new Dimension(200, 20));\r\n\t\tspinnerCreateRoomHurryupSeconds.setToolTipText(getUIText(\"CreateRoom_HurryupSeconds_Tip\"));\r\n\t\tsubpanelHurryupSeconds.add(spinnerCreateRoomHurryupSeconds, BorderLayout.EAST);\r\n\r\n\t\t// ** HurryupPanel spacing\r\n\t\tJPanel subpanelHurryupInterval = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomMain.add(subpanelHurryupInterval);\r\n\r\n\t\t// *** &#39;HURRY UPLater, Interval overcall the floor:&quot;Label\r\n\t\tJLabel labelHurryupInterval = new JLabel(getUIText(\"CreateRoom_HurryupInterval\"));\r\n\t\tsubpanelHurryupInterval.add(labelHurryupInterval, BorderLayout.WEST);\r\n\r\n\t\t// *** HurryupInterval\r\n\t\tint defaultHurryupInterval = propConfig.getProperty(\"createroom.defaultHurryupInterval\", 5);\r\n\t\tspinnerCreateRoomHurryupInterval = new JSpinner(new SpinnerNumberModel(defaultHurryupInterval, 1, 99, 1));\r\n\t\tspinnerCreateRoomHurryupInterval.setPreferredSize(new Dimension(200, 20));\r\n\t\tspinnerCreateRoomHurryupInterval.setToolTipText(getUIText(\"CreateRoom_HurryupInterval_Tip\"));\r\n\t\tsubpanelHurryupInterval.add(spinnerCreateRoomHurryupInterval, BorderLayout.EAST);\r\n\r\n\t\t// ** MapSetIDPanel\r\n\t\tJPanel subpanelMapSetID = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomMain.add(subpanelMapSetID);\r\n\r\n\t\t// *** &#39;MapSetID:&quot;Label\r\n\t\tJLabel labelMapSetID = new JLabel(getUIText(\"CreateRoom_MapSetID\"));\r\n\t\tsubpanelMapSetID.add(labelMapSetID, BorderLayout.WEST);\r\n\r\n\t\t// *** MapSetID\r\n\t\tint defaultMapSetID = propConfig.getProperty(\"createroom.defaultMapSetID\", 0);\r\n\t\tspinnerCreateRoomMapSetID = new JSpinner(new SpinnerNumberModel(defaultMapSetID, 0, 99, 1));\r\n\t\tspinnerCreateRoomMapSetID.setPreferredSize(new Dimension(200, 20));\r\n\t\tspinnerCreateRoomMapSetID.setToolTipText(getUIText(\"CreateRoom_MapSetID_Tip\"));\r\n\t\tsubpanelMapSetID.add(spinnerCreateRoomMapSetID, BorderLayout.EAST);\r\n\r\n\t\t// ** Map is enabled\r\n\t\tchkboxCreateRoomUseMap = new JCheckBox(getUIText(\"CreateRoom_UseMap\"));\r\n\t\tchkboxCreateRoomUseMap.setMnemonic('P');\r\n\t\tchkboxCreateRoomUseMap.setSelected(propConfig.getProperty(\"createroom.defaultUseMap\", false));\r\n\t\tchkboxCreateRoomUseMap.setToolTipText(getUIText(\"CreateRoom_UseMap_Tip\"));\r\n\t\tcontainerpanelCreateRoomMain.add(chkboxCreateRoomUseMap);\r\n\r\n\t\t// ** Of all fixed rules\r\n\t\tchkboxCreateRoomRuleLock = new JCheckBox(getUIText(\"CreateRoom_RuleLock\"));\r\n\t\tchkboxCreateRoomRuleLock.setMnemonic('L');\r\n\t\tchkboxCreateRoomRuleLock.setSelected(propConfig.getProperty(\"createroom.defaultRuleLock\", false));\r\n\t\tchkboxCreateRoomRuleLock.setToolTipText(getUIText(\"CreateRoom_RuleLock_Tip\"));\r\n\t\tcontainerpanelCreateRoomMain.add(chkboxCreateRoomRuleLock);\r\n\r\n\t\t// speed tab\r\n\r\n\t\t// * Speed ​​setting panel(Body)\r\n\t\tJPanel containerpanelCreateRoomSpeed = new JPanel();\r\n\t\tcontainerpanelCreateRoomSpeed.setLayout(new BoxLayout(containerpanelCreateRoomSpeed, BoxLayout.Y_AXIS));\r\n\t\tcontainerpanelCreateRoomSpeedOwner.add(containerpanelCreateRoomSpeed, BorderLayout.NORTH);\r\n\r\n\t\t// ** Fall velocity(Molecule)Panel\r\n\t\tJPanel subpanelGravity = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomSpeed.add(subpanelGravity);\r\n\r\n\t\t// *** Fall velocity &quot;(Molecule):&quot;Label\r\n\t\tJLabel labelGravity = new JLabel(getUIText(\"CreateRoom_Gravity\"));\r\n\t\tsubpanelGravity.add(labelGravity, BorderLayout.WEST);\r\n\r\n\t\t// *** Fall velocity(Molecule)\r\n\t\tint defaultGravity = propConfig.getProperty(\"createroom.defaultGravity\", 1);\r\n\t\tspinnerCreateRoomGravity = new JSpinner(new SpinnerNumberModel(defaultGravity, -1, 99999, 1));\r\n\t\tspinnerCreateRoomGravity.setPreferredSize(new Dimension(200, 20));\r\n\t\tsubpanelGravity.add(spinnerCreateRoomGravity, BorderLayout.EAST);\r\n\r\n\t\t// ** Fall velocity(Denominator)Panel\r\n\t\tJPanel subpanelDenominator = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomSpeed.add(subpanelDenominator);\r\n\r\n\t\t// *** Fall velocity &quot;(Denominator):&quot;Label\r\n\t\tJLabel labelDenominator = new JLabel(getUIText(\"CreateRoom_Denominator\"));\r\n\t\tsubpanelDenominator.add(labelDenominator, BorderLayout.WEST);\r\n\r\n\t\t// *** Fall velocity(Denominator)\r\n\t\tint defaultDenominator = propConfig.getProperty(\"createroom.defaultDenominator\", 60);\r\n\t\tspinnerCreateRoomDenominator = new JSpinner(new SpinnerNumberModel(defaultDenominator, 0, 99999, 1));\r\n\t\tspinnerCreateRoomDenominator.setPreferredSize(new Dimension(200, 20));\r\n\t\tsubpanelDenominator.add(spinnerCreateRoomDenominator, BorderLayout.EAST);\r\n\r\n\t\t// ** AREPanel\r\n\t\tJPanel subpanelARE = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomSpeed.add(subpanelARE);\r\n\r\n\t\t// *** &#39;ARE:&quot;Label\r\n\t\tJLabel labelARE = new JLabel(getUIText(\"CreateRoom_ARE\"));\r\n\t\tsubpanelARE.add(labelARE, BorderLayout.WEST);\r\n\r\n\t\t// *** ARE\r\n\t\tint defaultARE = propConfig.getProperty(\"createroom.defaultARE\", 0);\r\n\t\tspinnerCreateRoomARE = new JSpinner(new SpinnerNumberModel(defaultARE, 0, 99, 1));\r\n\t\tspinnerCreateRoomARE.setPreferredSize(new Dimension(200, 20));\r\n\t\tsubpanelARE.add(spinnerCreateRoomARE, BorderLayout.EAST);\r\n\r\n\t\t// ** ARE after line clearPanel\r\n\t\tJPanel subpanelARELine = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomSpeed.add(subpanelARELine);\r\n\r\n\t\t// *** &#39;ARE after line clear:&quot;Label\r\n\t\tJLabel labelARELine = new JLabel(getUIText(\"CreateRoom_ARELine\"));\r\n\t\tsubpanelARELine.add(labelARELine, BorderLayout.WEST);\r\n\r\n\t\t// *** ARE after line clear\r\n\t\tint defaultARELine = propConfig.getProperty(\"createroom.defaultARELine\", 0);\r\n\t\tspinnerCreateRoomARELine = new JSpinner(new SpinnerNumberModel(defaultARELine, 0, 99, 1));\r\n\t\tspinnerCreateRoomARELine.setPreferredSize(new Dimension(200, 20));\r\n\t\tsubpanelARELine.add(spinnerCreateRoomARELine, BorderLayout.EAST);\r\n\r\n\t\t// ** Line clear timePanel\r\n\t\tJPanel subpanelLineDelay = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomSpeed.add(subpanelLineDelay);\r\n\r\n\t\t// *** &#39;Line clear time:&quot;Label\r\n\t\tJLabel labelLineDelay = new JLabel(getUIText(\"CreateRoom_LineDelay\"));\r\n\t\tsubpanelLineDelay.add(labelLineDelay, BorderLayout.WEST);\r\n\r\n\t\t// *** Line clear time\r\n\t\tint defaultLineDelay = propConfig.getProperty(\"createroom.defaultLineDelay\", 0);\r\n\t\tspinnerCreateRoomLineDelay = new JSpinner(new SpinnerNumberModel(defaultLineDelay, 0, 99, 1));\r\n\t\tspinnerCreateRoomLineDelay.setPreferredSize(new Dimension(200, 20));\r\n\t\tsubpanelLineDelay.add(spinnerCreateRoomLineDelay, BorderLayout.EAST);\r\n\r\n\t\t// ** Fixation timePanel\r\n\t\tJPanel subpanelLockDelay = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomSpeed.add(subpanelLockDelay);\r\n\r\n\t\t// *** &quot;Fixed time:&quot;Label\r\n\t\tJLabel labelLockDelay = new JLabel(getUIText(\"CreateRoom_LockDelay\"));\r\n\t\tsubpanelLockDelay.add(labelLockDelay, BorderLayout.WEST);\r\n\r\n\t\t// *** Fixation time\r\n\t\tint defaultLockDelay = propConfig.getProperty(\"createroom.defaultLockDelay\", 30);\r\n\t\tspinnerCreateRoomLockDelay = new JSpinner(new SpinnerNumberModel(defaultLockDelay, 0, 98, 1));\r\n\t\tspinnerCreateRoomLockDelay.setPreferredSize(new Dimension(200, 20));\r\n\t\tsubpanelLockDelay.add(spinnerCreateRoomLockDelay, BorderLayout.EAST);\r\n\r\n\t\t// ** Panel horizontal reservoir\r\n\t\tJPanel subpanelDAS = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomSpeed.add(subpanelDAS);\r\n\r\n\t\t// *** Horizontal reservoir &quot;:&quot;Label\r\n\t\tJLabel labelDAS = new JLabel(getUIText(\"CreateRoom_DAS\"));\r\n\t\tsubpanelDAS.add(labelDAS, BorderLayout.WEST);\r\n\r\n\t\t// *** Horizontal reservoir\r\n\t\tint defaultDAS = propConfig.getProperty(\"createroom.defaultDAS\", 11);\r\n\t\tspinnerCreateRoomDAS = new JSpinner(new SpinnerNumberModel(defaultDAS, 0, 99, 1));\r\n\t\tspinnerCreateRoomDAS.setPreferredSize(new Dimension(200, 20));\r\n\t\tsubpanelDAS.add(spinnerCreateRoomDAS, BorderLayout.EAST);\r\n\r\n\t\t// bonus tab\r\n\r\n\t\t// bonus panel\r\n\t\tJPanel containerpanelCreateRoomBonus = new JPanel();\r\n\t\tcontainerpanelCreateRoomBonus.setLayout(new BoxLayout(containerpanelCreateRoomBonus, BoxLayout.Y_AXIS));\r\n\t\tcontainerpanelCreateRoomBonusOwner.add(containerpanelCreateRoomBonus, BorderLayout.NORTH);\r\n\r\n\t\t// ** Spin bonusPanel\r\n\t\tJPanel subpanelTSpinEnableType = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomBonus.add(subpanelTSpinEnableType);\r\n\r\n\t\t// *** &quot;Spin bonus:&quot;Label\r\n\t\tJLabel labelTSpinEnableType = new JLabel(getUIText(\"CreateRoom_TSpinEnableType\"));\r\n\t\tsubpanelTSpinEnableType.add(labelTSpinEnableType, BorderLayout.WEST);\r\n\r\n\t\t// *** Spin bonus\r\n\t\tString[] strSpinBonusNames = new String[COMBOBOX_SPINBONUS_NAMES.length];\r\n\t\tfor(int i = 0; i < strSpinBonusNames.length; i++) {\r\n\t\t\tstrSpinBonusNames[i] = getUIText(COMBOBOX_SPINBONUS_NAMES[i]);\r\n\t\t}\r\n\t\tcomboboxCreateRoomTSpinEnableType = new JComboBox(strSpinBonusNames);\r\n\t\tcomboboxCreateRoomTSpinEnableType.setSelectedIndex(propConfig.getProperty(\"createroom.defaultTSpinEnableType\", 1));\r\n\t\tcomboboxCreateRoomTSpinEnableType.setPreferredSize(new Dimension(200, 20));\r\n\t\tcomboboxCreateRoomTSpinEnableType.setToolTipText(getUIText(\"CreateRoom_TSpinEnableType_Tip\"));\r\n\t\tsubpanelTSpinEnableType.add(comboboxCreateRoomTSpinEnableType, BorderLayout.EAST);\r\n\r\n\t\t// ** Spin check type panel\r\n\t\tJPanel subpanelSpinCheckType = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomBonus.add(subpanelSpinCheckType);\r\n\r\n\t\t// *** Spin check type label\r\n\t\tJLabel labelSpinCheckType = new JLabel(getUIText(\"CreateRoom_SpinCheckType\"));\r\n\t\tsubpanelSpinCheckType.add(labelSpinCheckType, BorderLayout.WEST);\r\n\r\n\t\t// *** Spin check type combobox\r\n\t\tString[] strSpinCheckTypeNames = new String[COMBOBOX_SPINCHECKTYPE_NAMES.length];\r\n\t\tfor(int i = 0; i < strSpinCheckTypeNames.length; i++) {\r\n\t\t\tstrSpinCheckTypeNames[i] = getUIText(COMBOBOX_SPINCHECKTYPE_NAMES[i]);\r\n\t\t}\r\n\t\tcomboboxCreateRoomSpinCheckType = new JComboBox(strSpinCheckTypeNames);\r\n\t\tcomboboxCreateRoomSpinCheckType.setSelectedIndex(propConfig.getProperty(\"createroom.defaultSpinCheckType\", 0));\r\n\t\tcomboboxCreateRoomSpinCheckType.setPreferredSize(new Dimension(200, 20));\r\n\t\tcomboboxCreateRoomSpinCheckType.setToolTipText(getUIText(\"CreateRoom_SpinCheckType_Tip\"));\r\n\t\tsubpanelSpinCheckType.add(comboboxCreateRoomSpinCheckType, BorderLayout.EAST);\r\n\r\n\t\t// ** EZ Spin checkbox\r\n\t\tchkboxCreateRoomTSpinEnableEZ = new JCheckBox(getUIText(\"CreateRoom_TSpinEnableEZ\"));\r\n\t\tchkboxCreateRoomTSpinEnableEZ.setMnemonic('E');\r\n\t\tchkboxCreateRoomTSpinEnableEZ.setSelected(propConfig.getProperty(\"createroom.defaultTSpinEnableEZ\", false));\r\n\t\tchkboxCreateRoomTSpinEnableEZ.setToolTipText(getUIText(\"CreateRoom_TSpinEnableEZ_Tip\"));\r\n\t\tcontainerpanelCreateRoomBonus.add(chkboxCreateRoomTSpinEnableEZ);\r\n\r\n\t\t// ** Flag for enabling B2B\r\n\t\tchkboxCreateRoomB2B = new JCheckBox(getUIText(\"CreateRoom_B2B\"));\r\n\t\tchkboxCreateRoomB2B.setMnemonic('B');\r\n\t\tchkboxCreateRoomB2B.setSelected(propConfig.getProperty(\"createroom.defaultB2B\", true));\r\n\t\tchkboxCreateRoomB2B.setToolTipText(getUIText(\"CreateRoom_B2B_Tip\"));\r\n\t\tcontainerpanelCreateRoomBonus.add(chkboxCreateRoomB2B);\r\n\r\n\t\t// ** Flag for enabling combos\r\n\t\tchkboxCreateRoomCombo = new JCheckBox(getUIText(\"CreateRoom_Combo\"));\r\n\t\tchkboxCreateRoomCombo.setMnemonic('M');\r\n\t\tchkboxCreateRoomCombo.setSelected(propConfig.getProperty(\"createroom.defaultCombo\", true));\r\n\t\tchkboxCreateRoomCombo.setToolTipText(getUIText(\"CreateRoom_Combo_Tip\"));\r\n\t\tcontainerpanelCreateRoomBonus.add(chkboxCreateRoomCombo);\r\n\r\n\t\t// ** Bravo bonus\r\n\t\tchkboxCreateRoomBravo = new JCheckBox(getUIText(\"CreateRoom_Bravo\"));\r\n\t\tchkboxCreateRoomBravo.setMnemonic('A');\r\n\t\tchkboxCreateRoomBravo.setSelected(propConfig.getProperty(\"createroom.defaultBravo\", true));\r\n\t\tchkboxCreateRoomBravo.setToolTipText(getUIText(\"CreateRoom_Bravo_Tip\"));\r\n\t\tcontainerpanelCreateRoomBonus.add(chkboxCreateRoomBravo);\r\n\r\n\t\t// garbage tab\r\n\r\n\t\t// garbage panel\r\n\t\tJPanel containerpanelCreateRoomGarbage = new JPanel();\r\n\t\tcontainerpanelCreateRoomGarbage.setLayout(new BoxLayout(containerpanelCreateRoomGarbage, BoxLayout.Y_AXIS));\r\n\t\tcontainerpanelCreateRoomGarbageOwner.add(containerpanelCreateRoomGarbage, BorderLayout.NORTH);\r\n\r\n\t\t// ** Garbage change rate panel\r\n\t\tJPanel subpanelGarbagePercent = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomGarbage.add(subpanelGarbagePercent);\r\n\r\n\t\t// ** Label for garbage change rate\r\n\t\tJLabel labelGarbagePercent = new JLabel(getUIText(\"CreateRoom_GarbagePercent\"));\r\n\t\tsubpanelGarbagePercent.add(labelGarbagePercent, BorderLayout.WEST);\r\n\r\n\t\t// ** Spinner for garbage change rate\r\n\t\tint defaultGarbagePercent = propConfig.getProperty(\"createroom.defaultGarbagePercent\", 90);\r\n\t\tspinnerCreateRoomGarbagePercent = new JSpinner(new SpinnerNumberModel(defaultGarbagePercent, 0, 100, 10));\r\n\t\tspinnerCreateRoomGarbagePercent.setPreferredSize(new Dimension(200, 20));\r\n\t\tspinnerCreateRoomGarbagePercent.setToolTipText(getUIText(\"CreateRoom_GarbagePercent_Tip\"));\r\n\t\tsubpanelGarbagePercent.add(spinnerCreateRoomGarbagePercent, BorderLayout.EAST);\r\n\r\n\t\t// ** Target timer panel\r\n\t\tJPanel subpanelTargetTimer = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomGarbage.add(subpanelTargetTimer);\r\n\r\n\t\t// ** Label for target timer\r\n\t\tJLabel labelTargetTimer = new JLabel(getUIText(\"CreateRoom_TargetTimer\"));\r\n\t\tsubpanelTargetTimer.add(labelTargetTimer, BorderLayout.WEST);\r\n\r\n\t\t// ** Spinner for target timer\r\n\t\tint defaultTargetTimer = propConfig.getProperty(\"createroom.defaultTargetTimer\", 60);\r\n\t\tspinnerCreateRoomTargetTimer = new JSpinner(new SpinnerNumberModel(defaultTargetTimer, 0, 3600, 1));\r\n\t\tspinnerCreateRoomTargetTimer.setPreferredSize(new Dimension(200, 20));\r\n\t\tspinnerCreateRoomTargetTimer.setToolTipText(getUIText(\"CreateRoom_TargetTimer_Tip\"));\r\n\t\tsubpanelTargetTimer.add(spinnerCreateRoomTargetTimer, BorderLayout.EAST);\r\n\r\n\t\t// ** Set garbage type\r\n\t\tchkboxCreateRoomGarbageChangePerAttack = new JCheckBox(getUIText(\"CreateRoom_GarbageChangePerAttack\"));\r\n\t\tchkboxCreateRoomGarbageChangePerAttack.setMnemonic('G');\r\n\t\tchkboxCreateRoomGarbageChangePerAttack.setSelected(propConfig.getProperty(\"createroom.defaultGarbageChangePerAttack\", true));\r\n\t\tchkboxCreateRoomGarbageChangePerAttack.setToolTipText(getUIText(\"CreateRoom_GarbageChangePerAttack_Tip\"));\r\n\t\tcontainerpanelCreateRoomGarbage.add(chkboxCreateRoomGarbageChangePerAttack);\r\n\r\n\t\t// ** Divide change rate by live players/teams\r\n\t\tchkboxCreateRoomDivideChangeRateByPlayers = new JCheckBox(getUIText(\"CreateRoom_DivideChangeRateByPlayers\"));\r\n\t\tchkboxCreateRoomDivideChangeRateByPlayers.setSelected(propConfig.getProperty(\"createroom.defaultDivideChangeRateByPlayers\", false));\r\n\t\tchkboxCreateRoomDivideChangeRateByPlayers.setToolTipText(getUIText(\"CreateRoom_DivideChangeRateByPlayers_Tip\"));\r\n\t\tcontainerpanelCreateRoomGarbage.add(chkboxCreateRoomDivideChangeRateByPlayers);\r\n\r\n\t\t// ** B2B chunk\r\n\t\tchkboxCreateRoomB2BChunk = new JCheckBox(getUIText(\"CreateRoom_B2BChunk\"));\r\n\t\tchkboxCreateRoomB2BChunk.setMnemonic('B');\r\n\t\tchkboxCreateRoomB2BChunk.setSelected(propConfig.getProperty(\"createroom.defaultB2BChunk\", false));\r\n\t\tchkboxCreateRoomB2BChunk.setToolTipText(getUIText(\"CreateRoom_B2BChunk_Tip\"));\r\n\t\tcontainerpanelCreateRoomGarbage.add(chkboxCreateRoomB2BChunk);\r\n\r\n\t\t// ** Rensa/Combo Block\r\n\t\tchkboxCreateRoomRensaBlock = new JCheckBox(getUIText(\"CreateRoom_RensaBlock\"));\r\n\t\tchkboxCreateRoomRensaBlock.setMnemonic('E');\r\n\t\tchkboxCreateRoomRensaBlock.setSelected(propConfig.getProperty(\"createroom.defaultRensaBlock\", true));\r\n\t\tchkboxCreateRoomRensaBlock.setToolTipText(getUIText(\"CreateRoom_RensaBlock_Tip\"));\r\n\t\tcontainerpanelCreateRoomGarbage.add(chkboxCreateRoomRensaBlock);\r\n\r\n\t\t// ** Garbage countering\r\n\t\tchkboxCreateRoomCounter = new JCheckBox(getUIText(\"CreateRoom_Counter\"));\r\n\t\tchkboxCreateRoomCounter.setMnemonic('C');\r\n\t\tchkboxCreateRoomCounter.setSelected(propConfig.getProperty(\"createroom.defaultCounter\", true));\r\n\t\tchkboxCreateRoomCounter.setToolTipText(getUIText(\"CreateRoom_Counter_Tip\"));\r\n\t\tcontainerpanelCreateRoomGarbage.add(chkboxCreateRoomCounter);\r\n\r\n\t\t// ** 3If I live more than Attack Reduce the force\r\n\t\tchkboxCreateRoomReduceLineSend = new JCheckBox(getUIText(\"CreateRoom_ReduceLineSend\"));\r\n\t\tchkboxCreateRoomReduceLineSend.setMnemonic('R');\r\n\t\tchkboxCreateRoomReduceLineSend.setSelected(propConfig.getProperty(\"createroom.defaultReduceLineSend\", true));\r\n\t\tchkboxCreateRoomReduceLineSend.setToolTipText(getUIText(\"CreateRoom_ReduceLineSend_Tip\"));\r\n\t\tcontainerpanelCreateRoomGarbage.add(chkboxCreateRoomReduceLineSend);\r\n\r\n\t\t// ** Fragmentarygarbage blockUsing the system\r\n\t\tchkboxCreateRoomUseFractionalGarbage = new JCheckBox(getUIText(\"CreateRoom_UseFractionalGarbage\"));\r\n\t\tchkboxCreateRoomUseFractionalGarbage.setMnemonic('F');\r\n\t\tchkboxCreateRoomUseFractionalGarbage.setSelected(propConfig.getProperty(\"createroom.defaultUseFractionalGarbage\", false));\r\n\t\tchkboxCreateRoomUseFractionalGarbage.setToolTipText(getUIText(\"CreateRoom_UseFractionalGarbage_Tip\"));\r\n\t\tcontainerpanelCreateRoomGarbage.add(chkboxCreateRoomUseFractionalGarbage);\r\n\r\n\t\t// *** Use target system\r\n\t\tchkboxCreateRoomIsTarget = new JCheckBox(getUIText(\"CreateRoom_IsTarget\"));\r\n\t\tchkboxCreateRoomIsTarget.setMnemonic('T');\r\n\t\tchkboxCreateRoomIsTarget.setSelected(propConfig.getProperty(\"createroom.defaultIsTarget\", false));\r\n\t\tchkboxCreateRoomIsTarget.setToolTipText(getUIText(\"CreateRoom_IsTarget_Tip\"));\r\n\t\tcontainerpanelCreateRoomGarbage.add(chkboxCreateRoomIsTarget);\r\n\r\n\t\t// misc tab\r\n\r\n\t\t// misc panel\r\n\t\tJPanel containerpanelCreateRoomMisc = new JPanel();\r\n\t\tcontainerpanelCreateRoomMisc.setLayout(new BoxLayout(containerpanelCreateRoomMisc, BoxLayout.Y_AXIS));\r\n\t\tcontainerpanelCreateRoomMiscOwner.add(containerpanelCreateRoomMisc, BorderLayout.NORTH);\r\n\r\n\t\t// ** To wait before auto-start timePanel\r\n\t\tJPanel subpanelAutoStartSeconds = new JPanel(new BorderLayout());\r\n\t\tcontainerpanelCreateRoomMisc.add(subpanelAutoStartSeconds);\r\n\r\n\t\t// *** To wait before auto-start &quot; time:&quot;Label\r\n\t\tJLabel labelAutoStartSeconds = new JLabel(getUIText(\"CreateRoom_AutoStartSeconds\"));\r\n\t\tsubpanelAutoStartSeconds.add(labelAutoStartSeconds, BorderLayout.WEST);\r\n\r\n\t\t// *** To wait before auto-start time\r\n\t\tint defaultAutoStartSeconds = propConfig.getProperty(\"createroom.defaultAutoStartSeconds\", 15);\r\n\t\tspinnerCreateRoomAutoStartSeconds = new JSpinner(new SpinnerNumberModel(defaultAutoStartSeconds, 0, 999, 1));\r\n\t\tspinnerCreateRoomAutoStartSeconds.setPreferredSize(new Dimension(200, 20));\r\n\t\tspinnerCreateRoomAutoStartSeconds.setToolTipText(getUIText(\"CreateRoom_AutoStartSeconds_Tip\"));\r\n\t\tsubpanelAutoStartSeconds.add(spinnerCreateRoomAutoStartSeconds, BorderLayout.EAST);\r\n\r\n\t\t// ** TNET2TypeAutomatically start timerI use\r\n\t\tchkboxCreateRoomAutoStartTNET2 = new JCheckBox(getUIText(\"CreateRoom_AutoStartTNET2\"));\r\n\t\tchkboxCreateRoomAutoStartTNET2.setMnemonic('A');\r\n\t\tchkboxCreateRoomAutoStartTNET2.setSelected(propConfig.getProperty(\"createroom.defaultAutoStartTNET2\", false));\r\n\t\tchkboxCreateRoomAutoStartTNET2.setToolTipText(getUIText(\"CreateRoom_AutoStartTNET2_Tip\"));\r\n\t\tcontainerpanelCreateRoomMisc.add(chkboxCreateRoomAutoStartTNET2);\r\n\r\n\t\t// ** SomeoneCancelWasTimerInvalidation\r\n\t\tchkboxCreateRoomDisableTimerAfterSomeoneCancelled = new JCheckBox(getUIText(\"CreateRoom_DisableTimerAfterSomeoneCancelled\"));\r\n\t\tchkboxCreateRoomDisableTimerAfterSomeoneCancelled.setMnemonic('D');\r\n\t\tchkboxCreateRoomDisableTimerAfterSomeoneCancelled.setSelected(propConfig.getProperty(\"createroom.defaultDisableTimerAfterSomeoneCancelled\", false));\r\n\t\tchkboxCreateRoomDisableTimerAfterSomeoneCancelled.setToolTipText(getUIText(\"CreateRoom_DisableTimerAfterSomeoneCancelled_Tip\"));\r\n\t\tcontainerpanelCreateRoomMisc.add(chkboxCreateRoomDisableTimerAfterSomeoneCancelled);\r\n\r\n\t\t// Preset tab\r\n\r\n\t\t// * Preset panel\r\n\t\tJPanel containerpanelCreateRoomPreset = new JPanel();\r\n\t\tcontainerpanelCreateRoomPreset.setLayout(new BoxLayout(containerpanelCreateRoomPreset, BoxLayout.Y_AXIS));\r\n\t\tcontainerpanelCreateRoomPresetOwner.add(containerpanelCreateRoomPreset, BorderLayout.NORTH);\r\n\r\n\t\t// ** Preset number panel\r\n\t\tJPanel subpanelPresetID = new JPanel(new BorderLayout());\r\n\t\tsubpanelPresetID.setAlignmentX(0f);\r\n\t\tcontainerpanelCreateRoomPreset.add(subpanelPresetID);\r\n\r\n\t\t// *** \"Preset number:\" Label\r\n\t\tJLabel labelPresetID = new JLabel(getUIText(\"CreateRoom_PresetID\"));\r\n\t\tsubpanelPresetID.add(labelPresetID, BorderLayout.WEST);\r\n\r\n\t\t// *** Preset number selector\r\n\t\tint defaultPresetID = propConfig.getProperty(\"createroom.defaultPresetID\", 0);\r\n\t\tspinnerCreateRoomPresetID = new JSpinner(new SpinnerNumberModel(defaultPresetID, 0, 999, 1));\r\n\t\tspinnerCreateRoomPresetID.setPreferredSize(new Dimension(200, 20));\r\n\t\tsubpanelPresetID.add(spinnerCreateRoomPresetID, BorderLayout.EAST);\r\n\r\n\t\t// ** Save button\r\n\t\tJButton btnPresetSave = new JButton(getUIText(\"CreateRoom_PresetSave\"));\r\n\t\tbtnPresetSave.setAlignmentX(0f);\r\n\t\tbtnPresetSave.addActionListener(this);\r\n\t\tbtnPresetSave.setActionCommand(\"CreateRoom_PresetSave\");\r\n\t\tbtnPresetSave.setMnemonic('S');\r\n\t\tbtnPresetSave.setMaximumSize(new Dimension(Short.MAX_VALUE, btnPresetSave.getMaximumSize().height));\r\n\t\tcontainerpanelCreateRoomPreset.add(btnPresetSave);\r\n\r\n\t\t// ** Load button\r\n\t\tJButton btnPresetLoad = new JButton(getUIText(\"CreateRoom_PresetLoad\"));\r\n\t\tbtnPresetLoad.setAlignmentX(0f);\r\n\t\tbtnPresetLoad.addActionListener(this);\r\n\t\tbtnPresetLoad.setActionCommand(\"CreateRoom_PresetLoad\");\r\n\t\tbtnPresetLoad.setMnemonic('L');\r\n\t\tbtnPresetLoad.setMaximumSize(new Dimension(Short.MAX_VALUE, btnPresetLoad.getMaximumSize().height));\r\n\t\tcontainerpanelCreateRoomPreset.add(btnPresetLoad);\r\n\r\n\t\t// ** Preset code panel\r\n\t\tJPanel subpanelPresetCode = new JPanel(new BorderLayout());\r\n\t\tsubpanelPresetCode.setAlignmentX(0f);\r\n\t\tcontainerpanelCreateRoomPreset.add(subpanelPresetCode);\r\n\r\n\t\t// *** \"Preset code:\" Label\r\n\t\tJLabel labelPresetCode = new JLabel(getUIText(\"CreateRoom_PresetCode\"));\r\n\t\tsubpanelPresetCode.add(labelPresetCode, BorderLayout.WEST);\r\n\r\n\t\t// *** Preset code textfield\r\n\t\ttxtfldCreateRoomPresetCode = new JTextField();\r\n\t\ttxtfldCreateRoomPresetCode.setComponentPopupMenu(new TextComponentPopupMenu(txtfldCreateRoomPresetCode));\r\n\t\tsubpanelPresetCode.add(txtfldCreateRoomPresetCode, BorderLayout.CENTER);\r\n\r\n\t\t// *** Preset code export\r\n\t\tJButton btnPresetCodeExport = new JButton(getUIText(\"CreateRoom_PresetCodeExport\"));\r\n\t\tbtnPresetCodeExport.setAlignmentX(0f);\r\n\t\tbtnPresetCodeExport.addActionListener(this);\r\n\t\tbtnPresetCodeExport.setActionCommand(\"CreateRoom_PresetCodeExport\");\r\n\t\tbtnPresetCodeExport.setMnemonic('E');\r\n\t\tbtnPresetCodeExport.setMaximumSize(new Dimension(Short.MAX_VALUE, btnPresetCodeExport.getMaximumSize().height));\r\n\t\tcontainerpanelCreateRoomPreset.add(btnPresetCodeExport);\r\n\r\n\t\t// *** Preset code import\r\n\t\tJButton btnPresetCodeImport = new JButton(getUIText(\"CreateRoom_PresetCodeImport\"));\r\n\t\tbtnPresetCodeImport.setAlignmentX(0f);\r\n\t\tbtnPresetCodeImport.addActionListener(this);\r\n\t\tbtnPresetCodeImport.setActionCommand(\"CreateRoom_PresetCodeImport\");\r\n\t\tbtnPresetCodeImport.setMnemonic('I');\r\n\t\tbtnPresetCodeImport.setMaximumSize(new Dimension(Short.MAX_VALUE, btnPresetCodeImport.getMaximumSize().height));\r\n\t\tcontainerpanelCreateRoomPreset.add(btnPresetCodeImport);\r\n\r\n\t\t// buttons\r\n\r\n\t\t// ** buttonPanel type\r\n\t\tJPanel subpanelButtons = new JPanel();\r\n\t\tsubpanelButtons.setLayout(new BoxLayout(subpanelButtons, BoxLayout.X_AXIS));\r\n\t\t//containerpanelCreateRoom.add(subpanelButtons);\r\n\t\tmainpanelCreateRoom.add(subpanelButtons, BorderLayout.SOUTH);\r\n\r\n\t\t// *** OK button\r\n\t\tbtnCreateRoomOK = new JButton(getUIText(\"CreateRoom_OK\"));\r\n\t\tbtnCreateRoomOK.addActionListener(this);\r\n\t\tbtnCreateRoomOK.setActionCommand(\"CreateRoom_OK\");\r\n\t\tbtnCreateRoomOK.setMnemonic('O');\r\n\t\tbtnCreateRoomOK.setMaximumSize(new Dimension(Short.MAX_VALUE, btnCreateRoomOK.getMaximumSize().height));\r\n\t\tsubpanelButtons.add(btnCreateRoomOK);\r\n\r\n\t\t// *** Participation in a war button\r\n\t\tbtnCreateRoomJoin = new JButton(getUIText(\"CreateRoom_Join\"));\r\n\t\tbtnCreateRoomJoin.addActionListener(this);\r\n\t\tbtnCreateRoomJoin.setActionCommand(\"CreateRoom_Join\");\r\n\t\tbtnCreateRoomJoin.setMnemonic('J');\r\n\t\tbtnCreateRoomJoin.setMaximumSize(new Dimension(Short.MAX_VALUE, btnCreateRoomJoin.getMaximumSize().height));\r\n\t\tsubpanelButtons.add(btnCreateRoomJoin);\r\n\r\n\t\t// *** Participation in a war button\r\n\t\tbtnCreateRoomWatch = new JButton(getUIText(\"CreateRoom_Watch\"));\r\n\t\tbtnCreateRoomWatch.addActionListener(this);\r\n\t\tbtnCreateRoomWatch.setActionCommand(\"CreateRoom_Watch\");\r\n\t\tbtnCreateRoomWatch.setMnemonic('W');\r\n\t\tbtnCreateRoomWatch.setMaximumSize(new Dimension(Short.MAX_VALUE, btnCreateRoomWatch.getMaximumSize().height));\r\n\t\tsubpanelButtons.add(btnCreateRoomWatch);\r\n\r\n\t\t// *** Cancel Button\r\n\t\tbtnCreateRoomCancel = new JButton(getUIText(\"CreateRoom_Cancel\"));\r\n\t\tbtnCreateRoomCancel.addActionListener(this);\r\n\t\tbtnCreateRoomCancel.setActionCommand(\"CreateRoom_Cancel\");\r\n\t\tbtnCreateRoomCancel.setMnemonic('C');\r\n\t\tbtnCreateRoomCancel.setMaximumSize(new Dimension(Short.MAX_VALUE, btnCreateRoomCancel.getMaximumSize().height));\r\n\t\tsubpanelButtons.add(btnCreateRoomCancel);\r\n\t}", "title": "" }, { "docid": "9c3307b03e236133293348202ee635b1", "score": "0.57045925", "text": "public GroceryMenu() {\n initComponents();\n _inventory=StartMenu._inventory;\n }", "title": "" }, { "docid": "0bd40ecdb1064b79a244fd453a0e0ec2", "score": "0.57014865", "text": "public RoomFacilitiesView() {\n }", "title": "" }, { "docid": "9360b2ed7fd721fac7ca211ec505aa7a", "score": "0.56994855", "text": "public ControllerAreas(ModelAreas model, ViewAreas view) {\r\n this.model = model;\r\n this.view = view;\r\n\r\n this.view.jBtn_Calculate.addActionListener(this);\r\n this.view.jRB_Square.addActionListener(this);\r\n \r\n }", "title": "" }, { "docid": "df1eef475f1e888fca3f0b82dd8ad93e", "score": "0.569464", "text": "private void createViewers() {\n\t\tMenuItem elementViewer = new MenuItem();\n\t\telementViewer.textProperty().bind(DisplayLanguage.createStringBinding(ELEMENT_VIEWER_STRING));\n\t\telementViewer.setOnAction(e -> new ElementViewer());\n\t\t\n\t\tMenuItem mapViewer = new MenuItem();\n\t\tmapViewer.textProperty().bind(DisplayLanguage.createStringBinding(MAP_VIEWER_STRING));\n\t\t//TODO language.setOnAction(e -> ());\n\n\t\tviews = new MenuButton (VIEWS_STRING, null, elementViewer, mapViewer);\n\t\tviews.textProperty().bind(DisplayLanguage.createStringBinding(VIEWS_STRING));\n\t}", "title": "" }, { "docid": "3f5299a1dddb338f47b33b0eda8b5b58", "score": "0.56870955", "text": "public menu() {\n initComponents();\n obtenerEmpleados();\n \n \n }", "title": "" }, { "docid": "c112ed2d510e980757fb7fbe2b3b6f20", "score": "0.56719434", "text": "public RentalGUI() {\n initComponents();\n //Adding action/change listeners for the tabs and buttons.\n rentalJTabbedPane.addChangeListener(this);\n roomSaveJButton.addActionListener(this);\n wholeSaveJButton.addActionListener(this);\n editUpdateJButton.addActionListener(this);\n clearEditFormJBtn.addActionListener(this);\n deleteRentalJBtn.addActionListener(this);\n exportRentalsJBtn.addActionListener(this);\n exitJButton.addActionListener(this);\n \n }", "title": "" }, { "docid": "5a1713b0fd79ed2b7e118b09ff8c3485", "score": "0.56715196", "text": "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Hotels();\r\n\t\t\t\tdispose();\r\n\t\t\t}", "title": "" }, { "docid": "729cc2998f42c567b1d10e96480af39e", "score": "0.5670823", "text": "public Room() {\r\n\t\t\r\n\t\ttileArray = null;\r\n\t\tactorArray = null;\r\n\t\titemArray = null;\r\n\t\taccessibleRooms = null;\r\n\t\tconnectingDoors = null;\r\n\t\t\r\n\t\tvisible = false;\r\n\t\taccesible = false;\r\n\t\texplored = false;\r\n\t\tsafe = false;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "152b44a75d50b8f47164f446da8d99bb", "score": "0.5670792", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jMenu1 = new javax.swing.JMenu();\n jMenu2 = new javax.swing.JMenu();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenu4 = new javax.swing.JMenu();\n jMenu5 = new javax.swing.JMenu();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextArea2 = new javax.swing.JTextArea();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n botao = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n Salvar = new javax.swing.JButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu6 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenuItem3 = new javax.swing.JMenuItem();\n\n jMenu1.setText(\"jMenu1\");\n\n jMenu2.setText(\"jMenu2\");\n\n jMenu3.setText(\"jMenu3\");\n\n jMenuItem1.setText(\"jMenuItem1\");\n\n jMenu4.setText(\"jMenu4\");\n\n jMenu5.setText(\"jMenu5\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Game Controller\");\n\n jPanel1.setBackground(new java.awt.Color(204, 204, 255));\n jPanel1.setForeground(new java.awt.Color(60, 63, 65));\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jTextArea1.setBorder(new NumeredBorder());\n jScrollPane1.setViewportView(jTextArea1);\n\n jTextArea2.setColumns(20);\n jTextArea2.setRows(5);\n jScrollPane2.setViewportView(jTextArea2);\n\n jLabel1.setFont(new java.awt.Font(\"Comic Sans MS\", 0, 24)); // NOI18N\n jLabel1.setText(\"Código Fonte \");\n\n jLabel2.setFont(new java.awt.Font(\"Comic Sans MS\", 0, 24)); // NOI18N\n jLabel2.setText(\"Análise Léxica\");\n\n botao.setBackground(new java.awt.Color(255, 255, 255));\n botao.setFont(new java.awt.Font(\"Comic Sans MS\", 0, 11)); // NOI18N\n botao.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Fabiana\\\\Documents\\\\NetBeansProjects\\\\Compilador\\\\src\\\\AnaliseLexicaImagens\\\\media_play_green.png\")); // NOI18N\n botao.setText(\"Analisar\");\n botao.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoActionPerformed(evt);\n }\n });\n\n jButton1.setBackground(new java.awt.Color(255, 255, 255));\n jButton1.setFont(new java.awt.Font(\"Comic Sans MS\", 0, 11)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Fabiana\\\\Documents\\\\NetBeansProjects\\\\Compilador\\\\src\\\\AnaliseLexicaImagens\\\\brush3.png\")); // NOI18N\n jButton1.setText(\"Limpar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n Salvar.setBackground(new java.awt.Color(255, 255, 255));\n Salvar.setFont(new java.awt.Font(\"Comic Sans MS\", 0, 11)); // NOI18N\n Salvar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/AnaliseLexicaImagens/save icon.png\"))); // NOI18N\n Salvar.setText(\"Salvar\");\n Salvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SalvarActionPerformed(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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 396, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 387, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(377, 377, 377))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(249, 249, 249)\n .addComponent(jLabel2))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(botao, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Salvar, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 511, Short.MAX_VALUE)\n .addComponent(jScrollPane1))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Salvar, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botao, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(24, 24, 24))\n );\n\n jMenu6.setText(\"Arquivo\");\n\n jMenuItem2.setText(\"Abrir Arquivo\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu6.add(jMenuItem2);\n\n jMenuItem3.setText(\"Sair\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenu6.add(jMenuItem3);\n\n jMenuBar1.add(jMenu6);\n\n setJMenuBar(jMenuBar1);\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, 846, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 10, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }", "title": "" }, { "docid": "8cda5563f98097bfcd78b9918ded0364", "score": "0.5668098", "text": "public void setActionListeners() {\n\t\t// When user double clicks on a private room\n\t\tjlPrivateRooms.addMouseListener(new MouseListener() {\n\t\t\t@Override\n\t\t\t/**\n\t\t\t * @author Alexander Hanbury-Botherway\n\t\t\t */\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t\tif (arg0.getClickCount() == 2) {\n\n\t\t\t\t\tint position = jlPrivateRooms.getSelectedIndex();\n\t\t\t\t\tif (position == -1) {\n\t\t\t\t\t\tSystem.err.println(\"No Room Selected\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tRoomData selectedRoom = jlPrivateRooms.getSelectedValue();\n\n\t\t\t\t\tString roomID = selectedRoom.getRoomID();\n\n\t\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\t\tJPasswordField jpfRoomPasswordCheck = new JPasswordField(10);\n\t\t\t\t\tpanel.add(new JLabel(\"Enter room password:\"));\n\t\t\t\t\tpanel.add(jpfRoomPasswordCheck);\n\t\t\t\t\tString[] options = new String[] { \"OK\", \"Cancel\" };\n\t\t\t\t\tint option = JOptionPane.showOptionDialog(null, panel,\n\t\t\t\t\t\t\t\"Password\", JOptionPane.NO_OPTION,\n\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, options,\n\t\t\t\t\t\t\toptions[1]);\n\t\t\t\t\tif (option == 0) { // pressing OK button\n\t\t\t\t\t\tchar[] password = jpfRoomPasswordCheck.getPassword();\n\t\t\t\t\t\tif (jlPrivateRooms.getSelectedValue().getPassword()\n\t\t\t\t\t\t\t\t.equals(new String(password))) {\n\t\t\t\t\t\t\tboolean success = manager.joinRoom(roomID);\n\t\t\t\t\t\t\tif (success) {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\n\t\t\t\t\t\t\t\t\t\t\"Now in \" + roomID);\n\t\t\t\t\t\t\t\tnew Room(roomID, manager);\n\t\t\t\t\t\t\t\tsetVisible(false);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\n\t\t\t\t\t\t\t\t\t\t\"Room is already full\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\n\t\t\t\t\t\t\t\t\t\"Password is incorrect\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\trefreshRoomLists();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}\n\t\t});\n\n\t\t// Action Listeners\n\t\t// Public button action listener\n\t\tjbPublic.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tjbPublic.setEnabled(false);\n\t\t\t\tjbPrivate.setEnabled(true);\n\t\t\t\tjpfRoomPassword.setEnabled(false);\n\t\t\t\tjpfRoomPassword.setVisible(false);\n\t\t\t\tjlPassword.setVisible(false);\n\t\t\t\tjpfConfirmPassword.setEnabled(false);\n\t\t\t\tjpfConfirmPassword.setVisible(false);\n\t\t\t\tjlConfirmPassword.setVisible(false);\n\t\t\t\tprivateRoomSelected = false;\n\t\t\t\tsetColourTheme();\n\t\t\t}\n\t\t});\n\n\t\t// Private button action listener\n\t\tjbPrivate.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tjbPrivate.setEnabled(false);\n\t\t\t\tjbPublic.setEnabled(true);\n\t\t\t\tjpfRoomPassword.setEnabled(true);\n\t\t\t\tjpfRoomPassword.setVisible(true);\n\t\t\t\tjlPassword.setVisible(true);\n\t\t\t\tjpfConfirmPassword.setEnabled(true);\n\t\t\t\tjpfConfirmPassword.setVisible(true);\n\t\t\t\tjlConfirmPassword.setVisible(true);\n\t\t\t\tprivateRoomSelected = true;\n\t\t\t\tsetColourTheme();\n\t\t\t}\n\t\t});\n\n\t\tjbRefresh.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\trefreshLists();\n\t\t\t}\n\t\t});\n\n\t\tjlPublicRooms.addMouseListener(new MouseListener() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (e.getClickCount() == 2) {\n\n\t\t\t\t\tint position = jlPublicRooms.getSelectedIndex();\n\t\t\t\t\tif (position == -1) {\n\t\t\t\t\t\tSystem.err.println(\"No Room Selected\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tString roomID = jlPublicRooms.getSelectedValue()\n\t\t\t\t\t\t\t.getRoomID();\n\t\t\t\t\tif (jlPublicRooms.getSelectedIndex() >= 0) {\n\t\t\t\t\t\tboolean success = manager.joinRoom(roomID);\n\t\t\t\t\t\tif (success) {\n\t\t\t\t\t\t\tnew Room(publicRooms.get(position).getRoomID(),\n\t\t\t\t\t\t\t\t\tmanager);\n\t\t\t\t\t\t\tsetVisible(false);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\n\t\t\t\t\t\t\t\t\t\"Room is already full\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}\n\t\t});\n\n\t\tjbCreateRoom.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tString sPassword = \"\";\n\n\t\t\t\tif (privateRoomSelected) {\n\t\t\t\t\tchar[] password = jpfRoomPassword.getPassword();\n\t\t\t\t\tchar[] confirmPassword = jpfConfirmPassword.getPassword();\n\n\t\t\t\t\tif (passwordsMatch(password, confirmPassword)) {\n\t\t\t\t\t\tfor (char x : password) {\n\t\t\t\t\t\t\tsPassword += x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcreateRoom(sPassword);\n\t\t\t\t\t\tsPassword = \" \";\n\t\t\t\t\t\trefreshLists();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\n\t\t\t\t\t\t\t\t\"Passwords don't match\", \"Error\", 0);\n\t\t\t\t\t\trefreshLists();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcreateRoom(\" \");\n\t\t\t\t\tsetVisible(false);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "a0f414ca309e5b955eea121034045020", "score": "0.5668081", "text": "@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 jLabel1 = new javax.swing.JLabel();\n txtRoomNumber = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n cType = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel4 = new javax.swing.JLabel();\n txtCost = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n cStatus = new javax.swing.JComboBox();\n jLabel6 = new javax.swing.JLabel();\n txtServiceCharges = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setText(\"Room Number\");\n\n txtRoomNumber.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtRoomNumberActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Type\");\n\n cType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"1\", \"2\", \"3\", \"6\" }));\n cType.setSelectedIndex(-1);\n\n jLabel3.setText(\"Department\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Orthopaedics \", \"Cardiology \", \"Diagnostic \", \"Chaplaincy \", \"Gynaecology \", \"Maternity \" }));\n jComboBox1.setSelectedIndex(-1);\n\n jLabel4.setText(\"Cost\");\n\n jLabel5.setText(\"Status\");\n\n cStatus.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Empty\", \" \" }));\n\n jLabel6.setText(\"Service Charges\");\n\n jButton1.setText(\"Add\");\n\n jButton2.setText(\"Delete\");\n\n jButton3.setText(\"Update\");\n\n jButton4.setText(\"Get Data\");\n\n jButton5.setText(\"New\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)\n .addComponent(jLabel5, 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(jLabel3, 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(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(38, 38, 38)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtRoomNumber)\n .addComponent(cType, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBox1, 0, 175, Short.MAX_VALUE)\n .addComponent(txtCost)\n .addComponent(cStatus, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtServiceCharges))\n .addGap(176, 176, 176)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jButton5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap(232, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtRoomNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(31, 31, 31)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2))\n .addGap(27, 27, 27)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton3))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCost, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton4))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton5))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtServiceCharges, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(112, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 32, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "6570bde99c4542d2e76c4f12a700acde", "score": "0.5667529", "text": "public MainScreen() {\n initComponents();\n //===============\n \n Color backgroundcolor =new Color(255,255,102);\n this.getContentPane().setBackground(backgroundcolor);\n setVisible(true);\n err.setVisible(false);\n address.setEditable(false);\n cno.setEditable(false);\n additionaldetails.setVisible(false);\n proceed.setVisible(false);\n rooms.removeAllItems();\n hotel.removeAllItems();\n hotel.addItem(\"-------------\");\n display.setVisible(false);\n city.removeAllItems();\n sort.removeAllItems();\n sort.addItem(\"-------------\");\n sort.addItem(\"Price(Low to High)\");\n sort.addItem(\"Rating(High to Low)\");\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n Connection con=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/hotel_booking\",\"root\",\"dev12345\");\n PreparedStatement stmt=con.prepareStatement(\"SELECT city FROM city_name\");\n ResultSet rs=stmt.executeQuery();\n while(rs.next()){\n city.addItem(rs.getString(1));\n }\n \n }catch(Exception e){\n javax.swing.JOptionPane.showMessageDialog(null,e.getMessage(),\"Error\",1);\n }\n //==============\n }", "title": "" }, { "docid": "f0f5f23f8a200502ad09530e54054d73", "score": "0.56651103", "text": "@RequestMapping(\"/rooms/index\")\r\n\tpublic String roomsHandler(Model model, HttpServletRequest request) {\r\n\t\tRooms rooms = new Rooms();\r\n\t\trooms.getRoomList().addAll(this.fitnessCentre.getRooms());\r\n\t\t\t\t\r\n\t\tmodel.addAttribute(\"rooms\", rooms);\r\n\t\t\r\n\t\t// Predani titulku stranky do view\r\n\t\tString pageTitle = \"Místnosti\";\r\n\t\tmodel.addAttribute(\"pageTitle\", pageTitle);\r\n\t\t\r\n\t\t// Predani seznamu lekci pro widget\r\n\t\tLessons lessons = new Lessons();\r\n\t\tlessons.getLessonList().addAll(this.fitnessCentre.getActiveLessons());\r\n\t\tmodel.addAttribute(\"lessonsForWidget\", lessons);\r\n\t\t\r\n\t\t// Pristup k session prihlaseneho uzivatele\r\n\t\tUser loggedInUser = (User)request.getSession().getAttribute(\"logUser\");\r\n\t\tif (null != loggedInUser) {\r\n\t\t\tmodel.addAttribute(\"loggedInUser\", loggedInUser);\r\n\t\t\tString loggedInUserRoleIdent = loggedInUser.getUserRole().getIdentificator();\r\n\t\t\t\r\n\t\t\tif (loggedInUserRoleIdent.equals(\"obsluha\")) {\r\n\t\t\t\treturn \"rooms/indexStaff\";\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn \"rooms/index\";\r\n\t}", "title": "" }, { "docid": "6922d1626b6ce377a546938b8576046d", "score": "0.56608415", "text": "@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 jPanelHouse = new javax.swing.JPanel();\n jLabelType = new javax.swing.JLabel();\n jLabelPrice = new javax.swing.JLabel();\n jLabelNumberFloors = new javax.swing.JLabel();\n jLabelLocation1 = new javax.swing.JLabel();\n jLabelNumberRooms1 = new javax.swing.JLabel();\n jLabelNumberSurface = new javax.swing.JLabel();\n jLabelNumberBedrooms2 = new javax.swing.JLabel();\n jLabelGardenSurface = new javax.swing.JLabel();\n jLabelSwimmingPool = new javax.swing.JLabel();\n jLabelDescription = new javax.swing.JLabel();\n jButton8 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jComboBoxViewingHouse = new javax.swing.JComboBox();\n jPanelApartment = new javax.swing.JPanel();\n jLabelType1 = new javax.swing.JLabel();\n jLabelDescription1 = new javax.swing.JLabel();\n jLabelPrice2 = new javax.swing.JLabel();\n jLabelNumberFloors1 = new javax.swing.JLabel();\n jLabelLocation2 = new javax.swing.JLabel();\n jLabelNumberRooms2 = new javax.swing.JLabel();\n jLabelNumberSurface1 = new javax.swing.JLabel();\n jLabelNumberBedrooms3 = new javax.swing.JLabel();\n jLabelFloorNumber = new javax.swing.JLabel();\n jLabelElevator = new javax.swing.JLabel();\n jLabelParking = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jButton9 = new javax.swing.JButton();\n jComboBoxViewingApartment = new javax.swing.JComboBox();\n jPanel4 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel6 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setLayout(null);\n\n jPanelHouse.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabelType.setBackground(new java.awt.Color(255, 255, 255));\n jLabelType.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelType.setForeground(new java.awt.Color(102, 102, 255));\n jLabelType.setText(\"Type : House\");\n\n jLabelPrice.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelPrice.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelNumberFloors.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelNumberFloors.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelLocation1.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelLocation1.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelNumberRooms1.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelNumberRooms1.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelNumberSurface.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelNumberSurface.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelNumberBedrooms2.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelNumberBedrooms2.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelGardenSurface.setBackground(new java.awt.Color(255, 255, 255));\n jLabelGardenSurface.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelGardenSurface.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelSwimmingPool.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelSwimmingPool.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelDescription.setBackground(new java.awt.Color(255, 255, 255));\n jLabelDescription.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelDescription.setForeground(new java.awt.Color(102, 102, 255));\n\n jButton8.setBackground(new java.awt.Color(255, 255, 255));\n jButton8.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jButton8.setText(\"Validate\");\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabel1.setText(\"Make an offer ?\");\n\n jTextField1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jTextField1.setForeground(new java.awt.Color(0, 153, 153));\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jTextField1KeyTyped(evt);\n }\n });\n\n jComboBoxViewingHouse.setBackground(new java.awt.Color(240, 240, 240));\n jComboBoxViewingHouse.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jComboBoxViewingHouse.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Book a Viewing\" }));\n jComboBoxViewingHouse.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxViewingHouseActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanelHouseLayout = new javax.swing.GroupLayout(jPanelHouse);\n jPanelHouse.setLayout(jPanelHouseLayout);\n jPanelHouseLayout.setHorizontalGroup(\n jPanelHouseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelHouseLayout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addGroup(jPanelHouseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelType, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelGardenSurface, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNumberFloors, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelDescription, javax.swing.GroupLayout.PREFERRED_SIZE, 423, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelHouseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabelNumberSurface, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)\n .addComponent(jLabelLocation1, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)\n .addComponent(jLabelNumberBedrooms2, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)\n .addComponent(jLabelNumberRooms1, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)\n .addComponent(jLabelSwimmingPool, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanelHouseLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jComboBoxViewingHouse, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton8)\n .addGap(74, 74, 74))\n );\n jPanelHouseLayout.setVerticalGroup(\n jPanelHouseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelHouseLayout.createSequentialGroup()\n .addGap(67, 67, 67)\n .addGroup(jPanelHouseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelHouseLayout.createSequentialGroup()\n .addComponent(jLabelType, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(13, 13, 13)\n .addComponent(jLabelGardenSurface, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelNumberFloors, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelDescription, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanelHouseLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabelLocation1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabelNumberRooms1, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabelNumberBedrooms2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabelNumberSurface, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelSwimmingPool, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))\n .addGroup(jPanelHouseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jComboBoxViewingHouse, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanelHouseLayout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(jPanelHouseLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton8)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(32, Short.MAX_VALUE))\n );\n\n jPanel2.add(jPanelHouse);\n jPanelHouse.setBounds(770, 190, 760, 400);\n\n jPanelApartment.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabelType1.setBackground(new java.awt.Color(0, 153, 153));\n jLabelType1.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelType1.setForeground(new java.awt.Color(102, 102, 255));\n jLabelType1.setText(\"Type : Apartment\");\n\n jLabelDescription1.setBackground(new java.awt.Color(255, 255, 255));\n jLabelDescription1.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelDescription1.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelPrice2.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelPrice2.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelNumberFloors1.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelNumberFloors1.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelLocation2.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelLocation2.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelNumberRooms2.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelNumberRooms2.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelNumberSurface1.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelNumberSurface1.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelNumberBedrooms3.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelNumberBedrooms3.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelFloorNumber.setBackground(new java.awt.Color(255, 255, 255));\n jLabelFloorNumber.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelFloorNumber.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelElevator.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelElevator.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabelParking.setBackground(new java.awt.Color(255, 255, 255));\n jLabelParking.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabelParking.setForeground(new java.awt.Color(102, 102, 255));\n\n jLabel3.setBackground(new java.awt.Color(255, 255, 255));\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabel3.setText(\"Make an offer ?\");\n\n jTextField2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jTextField2.setForeground(new java.awt.Color(0, 153, 153));\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n jTextField2.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jTextField2KeyTyped(evt);\n }\n });\n\n jButton9.setBackground(new java.awt.Color(255, 255, 255));\n jButton9.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jButton9.setText(\"Validate\");\n jButton9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton9ActionPerformed(evt);\n }\n });\n\n jComboBoxViewingApartment.setBackground(new java.awt.Color(240, 240, 240));\n jComboBoxViewingApartment.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jComboBoxViewingApartment.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Book a Viewing\" }));\n jComboBoxViewingApartment.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxViewingApartmentActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanelApartmentLayout = new javax.swing.GroupLayout(jPanelApartment);\n jPanelApartment.setLayout(jPanelApartmentLayout);\n jPanelApartmentLayout.setHorizontalGroup(\n jPanelApartmentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelApartmentLayout.createSequentialGroup()\n .addGap(76, 76, 76)\n .addGroup(jPanelApartmentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelPrice2, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNumberFloors1, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelParking, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelFloorNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 335, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelType1, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanelApartmentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabelNumberBedrooms3, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)\n .addComponent(jLabelNumberRooms2, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)\n .addComponent(jLabelNumberSurface1, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)\n .addComponent(jLabelLocation2, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)\n .addComponent(jLabelElevator, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanelApartmentLayout.createSequentialGroup()\n .addGroup(jPanelApartmentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanelApartmentLayout.createSequentialGroup()\n .addGap(197, 197, 197)\n .addComponent(jLabelDescription1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanelApartmentLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jComboBoxViewingApartment, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 186, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton9)\n .addGap(43, 43, 43)))\n .addContainerGap())\n );\n jPanelApartmentLayout.setVerticalGroup(\n jPanelApartmentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelApartmentLayout.createSequentialGroup()\n .addGap(36, 36, 36)\n .addGroup(jPanelApartmentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanelApartmentLayout.createSequentialGroup()\n .addComponent(jLabelLocation2, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabelNumberRooms2, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelNumberBedrooms3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelNumberSurface1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelElevator, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanelApartmentLayout.createSequentialGroup()\n .addComponent(jLabelType1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelParking, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(11, 11, 11)\n .addComponent(jLabelPrice2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelNumberFloors1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabelFloorNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1, 1, 1)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabelDescription1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanelApartmentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton9)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBoxViewingApartment, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22))\n );\n\n jPanel2.add(jPanelApartment);\n jPanelApartment.setBounds(800, 230, 740, 400);\n\n jPanel4.setBackground(new java.awt.Color(102, 102, 255));\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/projectjava/logo 2 projet info.png\"))); // NOI18N\n\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n\n jComboBox1.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Select one of the following properties\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Calibri\", 0, 36)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Properties corresponding to your criteria \");\n\n jButton1.setText(\"<= Back\");\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 jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(46, 46, 46)\n .addComponent(jButton1))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 623, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(140, 140, 140)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 409, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 438, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(60, Short.MAX_VALUE))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(173, 173, 173)\n .addComponent(jLabel2)\n .addContainerGap(567, Short.MAX_VALUE)))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addComponent(jButton1)\n .addGap(139, 139, 139)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(51, 51, 51)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 216, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(24, 24, 24))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(70, 70, 70)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(720, Short.MAX_VALUE)))\n );\n\n jPanel2.add(jPanel4);\n jPanel4.setBounds(0, 0, 740, 850);\n\n jButton5.setBackground(new java.awt.Color(255, 255, 255));\n jButton5.setFont(new java.awt.Font(\"Calibri\", 0, 18)); // NOI18N\n jButton5.setText(\"Log Out\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n jPanel2.add(jButton5);\n jButton5.setBounds(1350, 80, 100, 23);\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, 1575, 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 .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 850, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "1b1608d4beb78507ec2d6da5c7fb1fff", "score": "0.56470424", "text": "private void initComponents() {\n\t\tjpmLogPopup = new javax.swing.JPopupMenu();\n\t\tjmiClear = new javax.swing.JMenuItem();\n\t\tjspLog = new javax.swing.JScrollPane();\n\t\tjtaLog = new javax.swing.JTextArea();\n\t\tjmbMainMenu = new javax.swing.JMenuBar();\n\t\tjmApplication = new javax.swing.JMenu();\n\t\tjmiOptions = new javax.swing.JMenuItem();\n\t\tjmiEditor = new javax.swing.JMenuItem();\n\t\tjmiExit = new javax.swing.JMenuItem();\n\t\tjmCommands = new javax.swing.JMenu();\n\t\tjmiConvert = new javax.swing.JMenuItem();\n\t\tjmiNewSystemTransformations = new javax.swing.JMenuItem();\n\t\tjmiNewTaskDescription = new javax.swing.JMenuItem();\n\t\tjmiPlan = new javax.swing.JMenuItem();\n\t\tjmiVerify = new javax.swing.JMenuItem();\n\t\tjmHelp = new javax.swing.JMenu();\n\t\tjmiUsage = new javax.swing.JMenuItem();\n\t\tjmiAbout = new javax.swing.JMenuItem();\n\n\t\tjmiClear.setText(\"Clear\");\n\t\tjpmLogPopup.add(jmiClear);\n\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\t\tsetTitle(\"Process Engineering\");\n\t\tsetName(\"jfMainView\"); // NOI18N\n\n\t\tjspLog.setComponentPopupMenu(jpmLogPopup);\n\n\t\tjtaLog.setEditable(false);\n\t\tjtaLog.setColumns(20);\n\t\tjtaLog.setFont(new java.awt.Font(\"Monospaced\", 0, 12)); // NOI18N\n\t\tjtaLog.setRows(5);\n\t\tjtaLog.setInheritsPopupMenu(true);\n\t\tjspLog.setViewportView(jtaLog);\n\n\t\tjmApplication.setText(\"Application\");\n\n\t\tjmiOptions.setText(\"Options...\");\n\t\tjmApplication.add(jmiOptions);\n\n\t\tjmiEditor.setText(\"Editor...\");\n\t\tjmApplication.add(jmiEditor);\n\n\t\tjmiExit.setText(\"Exit\");\n\t\tjmApplication.add(jmiExit);\n\n\t\tjmbMainMenu.add(jmApplication);\n\n\t\tjmCommands.setText(\"Commands\");\n\n\t\tjmiConvert.setText(\"Convert\");\n\t\tjmCommands.add(jmiConvert);\n\n\t\tjmiNewSystemTransformations.setText(\"New Transformations\");\n\t\tjmCommands.add(jmiNewSystemTransformations);\n\n\t\tjmiNewTaskDescription.setText(\"New Task\");\n\t\tjmCommands.add(jmiNewTaskDescription);\n\n\t\tjmiPlan.setText(\"Plan\");\n\t\tjmCommands.add(jmiPlan);\n\n\t\tjmiVerify.setText(\"Verify\");\n\t\tjmCommands.add(jmiVerify);\n\n\t\tjmbMainMenu.add(jmCommands);\n\n\t\tjmHelp.setText(\"Help\");\n\n\t\tjmiUsage.setText(\"Usage\");\n\t\tjmHelp.add(jmiUsage);\n\n\t\tjmiAbout.setText(\"About\");\n\t\tjmHelp.add(jmiAbout);\n\n\t\tjmbMainMenu.add(jmHelp);\n\n\t\tsetJMenuBar(jmbMainMenu);\n\n\t\tfinal javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addComponent(jspLog, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE));\n\t\tlayout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n\t\t\t\tjspLog, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 219,\n\t\t\t\tShort.MAX_VALUE));\n\n\t\tpack();\n\t}", "title": "" }, { "docid": "5e2de388ed408c9b709b9e0c88178a4d", "score": "0.56439745", "text": "public EnemyView() {\n initComponents();\n }", "title": "" }, { "docid": "0946a803ac0d509ba24b2143d20bbbfc", "score": "0.56416816", "text": "public ERSimulator(int numRoom) {\n initRoom(numRoom);\n }", "title": "" }, { "docid": "6d02ed643e023f7e1e81c28c1b3d4662", "score": "0.56277037", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btnEmployees = new javax.swing.JButton();\n btnMachines = new javax.swing.JButton();\n btnLocations = new javax.swing.JButton();\n btnSchedules = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setTitle(\"Management Menu\");\n setMinimumSize(new java.awt.Dimension(400, 300));\n setPreferredSize(new java.awt.Dimension(400, 300));\n getContentPane().setLayout(new java.awt.GridLayout(4, 1));\n\n btnEmployees.setText(\"Manage Employees\");\n btnEmployees.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEmployeesActionPerformed(evt);\n }\n });\n getContentPane().add(btnEmployees);\n\n btnMachines.setText(\"Manage Machines\");\n btnMachines.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnMachinesActionPerformed(evt);\n }\n });\n getContentPane().add(btnMachines);\n\n btnLocations.setText(\"Manage Locations\");\n btnLocations.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLocationsActionPerformed(evt);\n }\n });\n getContentPane().add(btnLocations);\n\n btnSchedules.setText(\"Manage Schedules\");\n btnSchedules.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSchedulesActionPerformed(evt);\n }\n });\n getContentPane().add(btnSchedules);\n\n pack();\n }", "title": "" }, { "docid": "d27b2a84636efea849a735d71817b1ad", "score": "0.56201845", "text": "private void initComponents() {\r\n\r\n menuBar = new JMenuBar();\r\n JMenu fileMenu = new JMenu();\r\n JMenuItem exitMenuItem = new JMenuItem();\r\n toolMenu = new JMenu();\r\n environmentMenuItem = new JMenuItem();\r\n maintainUnitMenuItem = new JMenuItem();\r\n JMenu helpMenu = new JMenu();\r\n JMenuItem aboutMenuItem = new JMenuItem();\r\n\r\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n setLocationByPlatform(true);\r\n setName(\"Form\"); \r\n setResizable(false);\r\n\r\n menuBar.setName(\"menuBar\"); \r\n\r\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(jgre.view.JGREApp.class).getContext().getResourceMap(JGREView.class);\r\n fileMenu.setText(resourceMap.getString(\"fileMenu.text\")); \r\n fileMenu.setName(\"fileMenu\"); \r\n\r\n ActionMap actionMap = org.jdesktop.application.Application.getInstance(jgre.view.JGREApp.class).getContext().getActionMap(JGREView.class, this);\r\n exitMenuItem.setAction(actionMap.get(\"quit\")); \r\n exitMenuItem.setName(\"exitMenuItem\"); \r\n fileMenu.add(exitMenuItem);\r\n\r\n menuBar.add(fileMenu);\r\n\r\n toolMenu.setText(resourceMap.getString(\"toolMenu.text\")); \r\n toolMenu.setName(\"toolMenu\"); \r\n\r\n environmentMenuItem.setAction(actionMap.get(\"showConfigurationView\")); \r\n environmentMenuItem.setText(resourceMap.getString(\"environmentMenuItem.text\")); \r\n environmentMenuItem.setName(\"environmentMenuItem\"); \r\n toolMenu.add(environmentMenuItem);\r\n\r\n maintainUnitMenuItem.setAction(actionMap.get(\"showMaintainUnitBox\")); \r\n maintainUnitMenuItem.setText(resourceMap.getString(\"maintainUnitMenuItem.text\")); \r\n maintainUnitMenuItem.setName(\"maintainUnitMenuItem\"); \r\n toolMenu.add(maintainUnitMenuItem);\r\n\r\n menuBar.add(toolMenu);\r\n\r\n helpMenu.setText(resourceMap.getString(\"helpMenu.text\")); \r\n helpMenu.setName(\"helpMenu\"); \r\n\r\n aboutMenuItem.setAction(actionMap.get(\"showAboutBox\")); \r\n aboutMenuItem.setText(resourceMap.getString(\"aboutMenuItem.text\")); \r\n aboutMenuItem.setName(\"aboutMenuItem\"); \r\n helpMenu.add(aboutMenuItem);\r\n\r\n menuBar.add(helpMenu);\r\n\r\n setJMenuBar(menuBar);\r\n\r\n pack();\r\n }", "title": "" }, { "docid": "adebb762ec6194e3cec600d9007ecb32", "score": "0.56194824", "text": "public MenuView() {\n initComponents();\n }", "title": "" }, { "docid": "ff8fe2bb46cedd109a53e78ded8dd154", "score": "0.561391", "text": "public Game() \n {\n createRooms();\n parser = new Parser();\n\n }", "title": "" }, { "docid": "35ede91222554462d2f375b8ba7ac557", "score": "0.56124395", "text": "private void createRooms()\n {\n TransporterRoom transporter;\n RoomRandomizer roomRandomizer;\n Room livingRoom, parentsBedroom, kitchen, diningRoom, basement, basementCorridor, basementBrickWall, cellar;\n Item tome, beamer;\n \n // locked room keys\n Item basementKey = new Item(\"key\", \"A rusted key to the basement.\", 1);\n Item sledgeHammer = new Item(\"sledgehammer\", \"can smash something with this\", 10);\n \n // create the rooms\n livingRoom = new Room(\"in the living room of the home. \\n\" +\n \"To the north, you see the kitchen. \\n\" +\n \"To the east, you see the parents bedroom.\");\n \n parentsBedroom = new Room(\"in the parents bedroom\");\n \n kitchen = new Room(\"in a dirty kitchen. It's full of dirty dishes, unknown bloody meats, and rotten fruits.\");\n \n basement = new LockedRoom(\"in a dusty, damp and putrid smelling basement.\", basementKey);\n \n basementCorridor = new Room(\"further in the basement. You notice a weak looking brick wall ahead of you.\");\n \n basementBrickWall = new LockedRoom(\" in an unknown room. What is this room...\", sledgeHammer);\n \n diningRoom = new Room(\"in a nice dining room. The rug underneath the table looks like it's been tampered with.\");\n \n cellar = new Room(\"in a hidden cellar\");\n \n // initialise room exits and its items\n livingRoom.setExit(\"east\", parentsBedroom);\n livingRoom.setExit(\"north\", kitchen);\n \n parentsBedroom.setExit(\"west\", livingRoom);\n parentsBedroom.addItem(basementKey);\n \n kitchen.setExit(\"south\", livingRoom);\n kitchen.setExit(\"east\", basement);\n kitchen.setExit(\"west\", diningRoom);\n \n basement.setExit(\"west\", kitchen);\n basement.setExit(\"south\", basementCorridor);\n \n basementCorridor.setExit(\"north\", basement);\n basementCorridor.setExit(\"south\", basementBrickWall);\n \n basementBrickWall.setExit(\"north\", basement);\n \n diningRoom.setExit(\"east\", kitchen);\n diningRoom.setExit(\"down\", cellar);\n \n cellar.setExit(\"up\", diningRoom);\n cellar.addItem(sledgeHammer);\n \n \n // place items in the rooms\n tome = new Item(\"tome\", \"definitely not a language for humans.\", 1);\n cellar.addItem(tome);\n \n \n // place characters in the rooms\n Character jimmy = new Character(\"???\", \"Bring me my tome.\");\n jimmy.setToken(tome, \"Theres another room in the basement.\");\n parentsBedroom.addCharacter(jimmy);\n \n \n // add some rooms to the room randomizer. The RoomRandomizer is\n // used by any transporter room to beam the player to a random room.\n roomRandomizer = new RoomRandomizer();\n roomRandomizer.addRoom(livingRoom);\n roomRandomizer.addRoom(parentsBedroom);\n roomRandomizer.addRoom(kitchen);\n roomRandomizer.addRoom(diningRoom);\n roomRandomizer.addRoom(cellar);\n\n // create a transporter room\n transporter = new TransporterRoom(\"in a weird dimensional room\", roomRandomizer);\n transporter.setExit(\"south\", cellar);\n cellar.setExit(\"north\", transporter);\n beamer = new Item(\"beamer\", \"this device mirrors a room for me to return to upon activation\", 5);\n transporter.addItem(beamer);\n // start game livingRoom\n player = new Player(\"player\", livingRoom);\n }", "title": "" }, { "docid": "ea82740984560c70c88db7212cedb8ab", "score": "0.5608827", "text": "public BookView() {\n initComponents();\n addToCombo();\n PopulateBook();\n PopulateCategory();\n DateForm();\n\n }", "title": "" }, { "docid": "c23acfa3e4d6e624ae776f98ce7b7a29", "score": "0.56077653", "text": "private void constructMenubar() {\r\n\t\t// File\r\n\t\tJMenu filemenu = new JMenu(\"Datei\");\r\n\t\tfilemenu.add(new AbstractAction(\"Neue IP-Adresse\"){\r\n\t\t @Override\r\n\t\t public void actionPerformed(ActionEvent ae) {\r\n\t\t\t new IpaddrHandler(_c, controller);\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\tfilemenu.addSeparator();\r\n\t\t\r\n\t\tfilemenu.add(new AbstractAction(\"\\u00dcber ...\") {\r\n\t\t @Override\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t\t JOptionPane.showMessageDialog(_frame, \"ClassroomController\\n-DEV BUILD-\\n(c) Copyright 2014 \\n TimoNeon und Julien Schroeter\", \"\\u00dcber ClassroomController\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\t/*filemenu.add(new AbstractAction(\"Einstellungen\"){\r\n\t\t @Override\r\n\t\t public void actionPerformed(ActionEvent ae) {\r\n\t\t \r\n\t\t }\r\n\t\t});*/\r\n\t\t\r\n\t\tfilemenu.addSeparator();\r\n\t\t\r\n\t\tfilemenu.add(new AbstractAction(\"Beenden\") {\r\n\t\t @Override\r\n\t\t public void actionPerformed(ActionEvent ae) {\r\n try {\r\n _c.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.exit(0);\r\n }\r\n }\r\n\t\t});\r\n\t\t\r\n\t\t_menubar.add(filemenu);\r\n\t\t\r\n\t\t\r\n\t\t// Edit\r\n\t\tJMenu editmenu = new JMenu(\"Bearbeiten\");\r\n\t\teditmenu.add(new AbstractAction(\"IP-Adresse bearbeiten\"){\r\n\t\t @Override\r\n\t\t public void actionPerformed(ActionEvent ae) {\r\n if(_ipTbl.getSelectedRowCount() != 1) {\r\n JOptionPane.showMessageDialog(_frame, \"Bitte w\\u00e4hlen Sie einen Eintrag aus.\", \"Fehler\", JOptionPane.ERROR_MESSAGE);\r\n } else {\r\n int id = (Integer)_ipTbl.getValueAt(\r\n _ipTbl.getSelectedRow(),\r\n 0);\r\n try {\r\n PreparedStatement psGetEntry = _c.prepareStatement(\"SELECT * FROM `IP_ADDR` WHERE `ID`=?\");\r\n psGetEntry.setInt(1, id);\r\n ResultSet rsEntry = psGetEntry.executeQuery();\r\n IPAddr ipEntry = null;\r\n while(rsEntry.next()) {\r\n ipEntry = new IPAddr(\r\n rsEntry.getInt(\"ID\"),\r\n rsEntry.getString(\"IP_ADDR\"),\r\n rsEntry.getString(\"NOTES\"),\r\n rsEntry.getBoolean(\"STATUS\"));\r\n }\r\n new IpaddrHandler(_c, controller, ipEntry);\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\teditmenu.add(new AbstractAction(\"IP-Adresse l\\u00f6schen\"){\r\n\t\t @Override\r\n\t\t public void actionPerformed(ActionEvent ae) {\r\n if(_ipTbl.getSelectedRowCount() != 1) {\r\n JOptionPane.showMessageDialog(_frame, \"Bitte w\\u00e4hlen Sie einen Eintrag aus.\", \"Fehler\", JOptionPane.ERROR_MESSAGE);\r\n } else {\r\n int deleteConfirmation = JOptionPane.showConfirmDialog(_frame, \"Wollen Sie diese IP-Adresse wirklich l\\u00f6schen?\", \"Best\\u00e4tigung erforderlich\", JOptionPane.YES_NO_OPTION);\r\n if(deleteConfirmation == JOptionPane.OK_OPTION) {\r\n int id = (Integer)_ipTbl.getValueAt(\r\n _ipTbl.getSelectedRow(),\r\n 0);\r\n try {\r\n PreparedStatement psDeleteEntry = _c.prepareStatement(\"DELETE FROM `IP_ADDR` WHERE `ID`=?\");\r\n psDeleteEntry.setInt(1, id);\r\n psDeleteEntry.execute();\r\n controller.initializeData();\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n });\r\n\t\t\r\n\t\t\r\n\t\t_menubar.add(editmenu);\r\n\t\t\r\n\t\t// Command\r\n\t\tJMenu commandmenu = new JMenu(\"Befehl\");\r\n\t\tcommandmenu.add(new AbstractAction(\"Befehl ausf\\u00fchren\") {\r\n\t\t @Override\r\n\t\t public void actionPerformed(ActionEvent ae) {\r\n\t\t\t CommandExec cmdExec = new CommandExec(_c);\r\n cmdExec.showSelection();\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\tcommandmenu.add(new AbstractAction(\"Befehle verwalten\"){\r\n\t\t @Override\r\n\t\t public void actionPerformed(ActionEvent ae) {\r\n\t\t\t new CommandManager(_c);\r\n\t\t }\r\n\t\t});\r\n\r\n commandmenu.addSeparator();\r\n\r\n commandmenu.add(new AbstractAction(\"Clientsoftware aktualisieren\") {\r\n @Override\r\n public void actionPerformed(ActionEvent actionEvent) {\r\n new ClientUpdate(_c);\r\n }\r\n });\r\n\t\t\r\n\t\t_menubar.add(commandmenu);\r\n }", "title": "" }, { "docid": "dd08b250e77c7ac0622e1df4ac122b5a", "score": "0.56033957", "text": "public Room()\r\n\t{\r\n\t\tmap = createRooms();\r\n\t}", "title": "" }, { "docid": "384afeaa4a4ac9d7dae6a673432d0dab", "score": "0.56014216", "text": "public InitializeGameApplication(Model m) {\n\t\tsetBounds(0, 0, 800, 600);\n\t\tthis.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tthis.setLayout(null);\n\t\tmodel = m;\n\t\t\n\t\t// Title\n\t\tJLabel title = new JLabel(\"LetterCraze\");\n\t\ttitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttitle.setFont(new Font(\"Trebuchet MS\", Font.BOLD, 26));\n\t\ttitle.setBounds(0, 150, 800, 26);\n\t\tthis.add(title); \n\t\t\n\t\t// Play Main Game Button\n\t\tplayGameButton = new JButton(\"Play Game\");\n\t\tplayGameButton.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n\t\tplayGameButton.setBounds(325, 250, 150, 100);\n\t\tthis.add(playGameButton);\t\t\n\t\t\n\t\t// Play Custom Levels Button\n\t\tplayCustomLevelsButton = new JButton(\"Play Custom Levels\");\n\t\tplayCustomLevelsButton.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n\t\tplayCustomLevelsButton.setBounds(325, 360, 150, 100);\n\t\tthis.add(playCustomLevelsButton);\n\t\t\n\t\tresetProgressButton = new JButton(\"<html><center>\" + \"Reset Main\" + \"<br>\" + \"Game Progress\" + \"</center></html>\");\n\t\tresetProgressButton.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n\t\tresetProgressButton.setBounds(644, 6, 150, 50);\n\t\tadd(resetProgressButton);\n\t\t\n\t\thowToPlayButton = new JButton(\"How To Play\");\n\t\thowToPlayButton.setFont(new Font(\"Trebuchet MS\", Font.PLAIN, 13));\n\t\thowToPlayButton.setBounds(6, 6, 150, 50);\n\t\tadd(howToPlayButton);\n\t}", "title": "" }, { "docid": "47e2b047c194ae6ba152c049273e0b53", "score": "0.5592647", "text": "public GUIView()\n {\n int boardWidth = board.getBoard().getIconWidth();\n int boardHeight = board.getBoard().getIconHeight();\n\n //-----------------------------------------------------------------------\n //Sets up JFrame\n //-----------------------------------------------------------------------\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setTitle(\"Deadwood\");\n this.setSize(1340, 1080);\n this.setResizable(false);\n\n //-----------------------------------------------------------------------\n //Sets up the menu\n //-----------------------------------------------------------------------\n menuLabel.setBounds(boardWidth + 40, 0, 100, 20);\n moveField.setBounds(boardWidth + 10, 30, 100, 20);\n moveButton.setBounds(boardWidth + 10, 50, 100, 20);\n workField.setBounds(boardWidth +10, 80, 100, 20);\n workButton.setBounds(boardWidth + 10, 100, 100, 20);\n actButton.setBounds(boardWidth + 10, 130, 100, 20);\n rehearseButton.setBounds(boardWidth + 10, 160, 100, 20);\n upgradeField.setBounds(boardWidth + 10, 190, 100, 20);\n upgradeMoneyButton.setBounds(boardWidth + 10, 210, 100, 20);\n upgradeCreditsButton.setBounds(boardWidth + 10, 230, 100, 20);\n endTurnButton.setBounds(boardWidth + 10, 260, 100, 20);\n\n //-----------------------------------------------------------------------\n //Sets up the player information area\n //-----------------------------------------------------------------------\n infoLabel.setBounds(boardWidth + 30, 300, 100, 20);\n playerLabel.setBounds(boardWidth + 10, 330, 100, 20);\n levelLabel.setBounds(boardWidth + 10, 360, 100, 20);\n creditLabel.setBounds(boardWidth + 10, 390, 100, 20);\n moneyLabel.setBounds(boardWidth + 10, 420, 100, 20);\n chipsLabel.setBounds(boardWidth + 10, 450, 100, 20);\n\n //----------------------------------------------------------------------\n //Sets up system response pane\n //----------------------------------------------------------------------\n systemPane.setBounds(0, boardHeight + 10, boardWidth, 150);\n systemResponse.setEditable(false);\n\n //-----------------------------------------------------------------------\n //Adds the fields to the boardPane\n //-----------------------------------------------------------------------\n board.add(menuLabel, new Integer(2));\n board.add(moveField, new Integer(2));\n board.add(moveButton, new Integer(2));\n board.add(workField, new Integer(2));\n board.add(workButton, new Integer(2));\n board.add(actButton, new Integer(2));\n board.add(rehearseButton, new Integer(2));\n board.add(upgradeField, new Integer(2));\n board.add(upgradeMoneyButton, new Integer(2));\n board.add(upgradeCreditsButton, new Integer(2));\n board.add(endTurnButton, new Integer(2));\n\n board.add(infoLabel, new Integer (2));\n board.add(playerLabel, new Integer(2));\n board.add(levelLabel, new Integer(2));\n board.add(creditLabel, new Integer(2));\n board.add(moneyLabel, new Integer(2));\n board.add(chipsLabel, new Integer(2));\n\n board.add(systemPane, new Integer(2));\n\n this.add(gamePane);\n }", "title": "" }, { "docid": "04db8ad3edde7acdb068376ca6e18b1d", "score": "0.55925316", "text": "public Game() \n {\n createRooms();\n parser = new Parser();\n roomHistory = new Stack<Room>();\n }", "title": "" }, { "docid": "1e5d7d12fc286b36da59bcc1a2e752a5", "score": "0.5591626", "text": "public Game() \n {\n createRooms();\n parser = new Parser();\n }", "title": "" }, { "docid": "50444f68a4caebe2b36df42e34df49a1", "score": "0.5587479", "text": "public ReservationBookingView() {\n initComponents();\n this.setVisible(true);\n \n }", "title": "" }, { "docid": "e4a3a82d3d555cdbd41d955579da1ee4", "score": "0.5586937", "text": "public MenuCustomer() {\n initComponents();\n }", "title": "" }, { "docid": "50fd2215ce67ca2f2c0ac1a2b2518c5d", "score": "0.55762494", "text": "private void init() {\n label = new JLabel(\" \");\n label.setHorizontalAlignment(JLabel.CENTER);\n JButton button = new JButton(\"klick\");\n button.addActionListener(new MainController(this));\n this.add(label, BorderLayout.NORTH);\n this.add(button, BorderLayout.CENTER);\n this.pack();\n this.setTitle(\"MVC\");\n this.setLocationRelativeTo(null);\n this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n this.setVisible(true);\n }", "title": "" }, { "docid": "09fa8040b816648b697cf671aa985186", "score": "0.5569108", "text": "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 980, 601);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"COVID PATIENET\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tbtnNewButton.setBounds(195, 246, 211, 53);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnOtherDiseases = new JButton(\"OTHER DISEASES\");\r\n\t\tbtnOtherDiseases.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tbtnOtherDiseases.setBounds(501, 246, 211, 53);\r\n\t\tframe.getContentPane().add(btnOtherDiseases);\r\n\t\t\r\n\t\tJButton btnUpdateDoctorsInfo = new JButton(\"UPDATE DOCTORS INFO\");\r\n\t\tbtnUpdateDoctorsInfo.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tnew Admin_Others();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnUpdateDoctorsInfo.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tbtnUpdateDoctorsInfo.setBounds(195, 354, 298, 53);\r\n\t\tframe.getContentPane().add(btnUpdateDoctorsInfo);\r\n\t\t\r\n\t\tJButton btnUpdateCovidHospitals = new JButton(\"UPDATE COVID HOSPITALS INFO\");\r\n\t\tbtnUpdateCovidHospitals.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tnew Admin_covid();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnUpdateCovidHospitals.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tbtnUpdateCovidHospitals.setBounds(195, 466, 394, 53);\r\n\t\tframe.getContentPane().add(btnUpdateCovidHospitals);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"WELCOME, HOPE YOU ARE DOING GOOD!\");\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tlblNewLabel.setBounds(195, 82, 498, 86);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t}", "title": "" }, { "docid": "1688a635c3eca92a124a7eb1867f12e8", "score": "0.5568193", "text": "@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tbtnInserir.setOnAction(l-> Inserir());\n\n\t\t/*lstView.getSelectionModel().selectedItemProperty().addListener((obs, oldSelection, newSelection) -> {\n\t\t\tPrepararEdt();\n\t\t});*/\n\t\tlstView.setOnMouseClicked(new javafx.event.EventHandler<MouseEvent>() {\n\t\t\t@Override\n\t\t public void handle(MouseEvent click) {\n\t\t if (click.getClickCount() == 2) {\n\t\t \tDeletar();\n\t\t \ttxtNome.setText(\"\");\n\t\t\t\t\ttxtTelefone.setText(\"\");\n\t\t\t\t\tbtnInserir.setText(\"Enviar\");\n\t\t }else if(click.getClickCount() == 1){\n\t\t \tPrepararEdt();\n\t\t }\n\t\t }\n\t\t});\n\t\tPreencherLista();\n\t}", "title": "" }, { "docid": "13b3dec7794e38b3d04328b4f4af998e", "score": "0.5566904", "text": "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 1017, 725);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setVisible(true);\r\n\t\tJButton btnNewButton = new JButton(\"Dashboard\");\r\n\t\tbtnNewButton.setBounds(63, 59, 115, 29);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Add a Wishlist\");\r\n\t\tbtnNewButton_1.setBounds(379, 59, 158, 29);\r\n\t\tframe.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tJButton btnNewButton_2 = new JButton(\"Message Inbox\");\r\n\t\tbtnNewButton_2.setBounds(594, 59, 158, 29);\r\n\t\tframe.getContentPane().add(btnNewButton_2);\r\n\t\t\r\n\t\tJButton btnNewButton_3 = new JButton(\"Logout\");\r\n\t\tbtnNewButton_3.setBounds(807, 59, 115, 29);\r\n\t\tframe.getContentPane().add(btnNewButton_3);\r\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tLoginView lv=new LoginView();\tLoginController loginController=new LoginController(lv);\r\n\t\t\t}\r\n\t\t});\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Item Name\");\r\n\t\tlblNewLabel_1.setBounds(122, 207, 120, 20);\r\n\t\tframe.getContentPane().add(lblNewLabel_1);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Item Description\");\r\n\t\tlblNewLabel_2.setBounds(123, 273, 138, 20);\r\n\t\tframe.getContentPane().add(lblNewLabel_2);\r\n\t\t\r\n\t\tJButton btnNewButton_4 = new JButton(\"Send Barter Request\");\r\n\t\tbtnNewButton_4.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t frame.setVisible(false);\r\n\t\t\t Message message=new Message();\r\n\t\t\t\tItem i=new Item();\r\n\t\t\t\tSystem.out.println(\"item id in barter view\");\r\n\t\t\t\tSystem.out.println(itemid);\r\n\t\t\t\ti.set_itemid(itemid); /// item id is still of the item he wants to buy\r\n\t\t\t\ti.set_itemprice(textField_2.getText());\r\n\t\t\t\ti.set_itemdesc(textField_1.getText());\r\n\t\t\t\ti.set_itemname(textField.getText());\r\n\t\t\t\ti.set_sellerid(sellerid); /// id of the user who put the item for selling\r\n\t\t\t\tmessage.setMessageType(\"barter\");\r\n\t\t\t\tmessage.setItem(i);\r\n\t\t\t\tMessageController mc=new MessageController();\r\n\t\t\t\tmc.sendMessage(message);\r\n\t\t\t\tJOptionPane.showMessageDialog(frame, \"Barter request sent successfully\");\r\n\t\t\t \r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnNewButton_4.setBounds(355, 598, 218, 29);\r\n\t\tframe.getContentPane().add(btnNewButton_4);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(379, 199, 194, 37);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setBounds(383, 273, 312, 77);\r\n\t\tframe.getContentPane().add(textField_1);\r\n\t\ttextField_1.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblItemPrice = new JLabel(\"Item Price\");\r\n\t\tlblItemPrice.setBounds(140, 392, 121, 20);\r\n\t\tframe.getContentPane().add(lblItemPrice);\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setBounds(391, 389, 304, 26);\r\n\t\tframe.getContentPane().add(textField_2);\r\n\t\ttextField_2.setColumns(10);\r\n\t}", "title": "" } ]
31923b04ec44db6d9babef81e7d6d11e
required uint32 user_id = 1; cmd id:0x020f
[ { "docid": "c24785625cb6285fcb9c346053909db8", "score": "0.0", "text": "public Builder clearUserId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n userId_ = 0;\n \n return this;\n }", "title": "" } ]
[ { "docid": "b446de0c4a2cf6d59374cdf3967ff2a1", "score": "0.6441133", "text": "long getUserid();", "title": "" }, { "docid": "b446de0c4a2cf6d59374cdf3967ff2a1", "score": "0.6441133", "text": "long getUserid();", "title": "" }, { "docid": "b446de0c4a2cf6d59374cdf3967ff2a1", "score": "0.6441133", "text": "long getUserid();", "title": "" }, { "docid": "b446de0c4a2cf6d59374cdf3967ff2a1", "score": "0.6441133", "text": "long getUserid();", "title": "" }, { "docid": "7fccd91e6de17bf0214008ef027d2a62", "score": "0.62749845", "text": "public long getUser_id();", "title": "" }, { "docid": "92e9b44c3c75bb26cc86af85f85dd6ef", "score": "0.6274742", "text": "public void setUser_id(long user_id);", "title": "" }, { "docid": "3699719fd52654940a0ceb8e2a5bff73", "score": "0.6236082", "text": "@Override\n\tpublic String getUserID(String name) {\n\t\treturn \"000001\";\n\t}", "title": "" }, { "docid": "0ee6cc3fdd8ff286dc1e7a141044eb3b", "score": "0.6139603", "text": "private static void handleUser(String command) {\n String[] userArgs = command.trim().split(\" \");\n if (!userArgs[0].equals(\"user\")) {\n System.out.println(\"0x001 Invalid Command.\");\n } else if (userArgs.length == 2) {\n String userName = userArgs[1];\n send(\"USER \" + userName);\n receive(socket);\n } else {\n System.out.println(\"0x002 Incorrect number of arguments.\");\n }\n }", "title": "" }, { "docid": "de8493d8e3e614fadd9e30f0ccb816cc", "score": "0.6032733", "text": "public UserCmd() {}", "title": "" }, { "docid": "766e0df1345a2385a205858a1de28511", "score": "0.59212506", "text": "public long getUserid() {\n return userid_;\n }", "title": "" }, { "docid": "fc3f20a56052f45a540e605041bcb81d", "score": "0.5883866", "text": "@Override\n\tpublic byte getCommandId() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "96b145ccd931a12d5e225c8c631bef7a", "score": "0.5876612", "text": "public String getCommandID();", "title": "" }, { "docid": "ba1119b9fe5eeff92be3fad657c790a3", "score": "0.5829197", "text": "@Override\n public int getUserID() {\n return userID;\n }", "title": "" }, { "docid": "1e1139c29eac5fed5f7f9ec7339e3c75", "score": "0.5827321", "text": "public int getUserid() {\n return userid;\n }", "title": "" }, { "docid": "13dfb28d3fbeb728a28537aa0e0e72b2", "score": "0.5812362", "text": "String getCommandId();", "title": "" }, { "docid": "a80ceef59deaa160df463094b0a098fd", "score": "0.57827836", "text": "@DISPID(2) //= 0x2. The runtime will prefer the VTID if present\n @VTID(8)\n String userName();", "title": "" }, { "docid": "624b45febbc0b716e341f6557893566e", "score": "0.57642484", "text": "com.google.protobuf.ByteString getUserId();", "title": "" }, { "docid": "82d85dec5dd30e192e9935516e8804ff", "score": "0.5759718", "text": "public Long getUserId()\r\n/* 12: */ {\r\n/* 13:32 */ return this.userId;\r\n/* 14: */ }", "title": "" }, { "docid": "a1ee2d815df2af3f22ad5536a6014472", "score": "0.5750575", "text": "int getCmd();", "title": "" }, { "docid": "bc615b96a9285e51025379cf3c91db40", "score": "0.57469326", "text": "public Long getUserId()\n/* */ {\n/* 130 */ return this.userId;\n/* */ }", "title": "" }, { "docid": "68da80586861ee5a303a5f178fe357f6", "score": "0.574573", "text": "public long getUserid() {\n return userid_;\n }", "title": "" }, { "docid": "68da80586861ee5a303a5f178fe357f6", "score": "0.574573", "text": "public long getUserid() {\n return userid_;\n }", "title": "" }, { "docid": "68da80586861ee5a303a5f178fe357f6", "score": "0.574573", "text": "public long getUserid() {\n return userid_;\n }", "title": "" }, { "docid": "68da80586861ee5a303a5f178fe357f6", "score": "0.574573", "text": "public long getUserid() {\n return userid_;\n }", "title": "" }, { "docid": "68da80586861ee5a303a5f178fe357f6", "score": "0.574573", "text": "public long getUserid() {\n return userid_;\n }", "title": "" }, { "docid": "6db586feb41752338578df8f4853c464", "score": "0.57370055", "text": "public void setUser1_ID (int User1_ID);", "title": "" }, { "docid": "85995c1a7080a941a0a65d3d90f87cdb", "score": "0.57353854", "text": "public Long getUserId()\n/* */ {\n/* 84 */ return this.userId;\n/* */ }", "title": "" }, { "docid": "8381c26098aad5704226e3af5ba39b48", "score": "0.57340384", "text": "public void setUserId(String x){ mUserId = x; mModUserlId = true; }", "title": "" }, { "docid": "e48285d4156860dd5745f2cb97c80058", "score": "0.5716211", "text": "public Long getUserId()\n/* */ {\n/* 70 */ return this.userId;\n/* */ }", "title": "" }, { "docid": "7aca6510bf6e771efb0feb5689802860", "score": "0.5716165", "text": "public int getUser_id() {\r\n return user_id;\r\n }", "title": "" }, { "docid": "0f068368b673696c17b3e6e66c3809df", "score": "0.5714572", "text": "private void commandReadUserData(APDU apdu) {\n\t\tshort len = (short) user_data.length;\n\t\tapdu.setOutgoing();\n\t\tapdu.setOutgoingLength(len);\n\t\tapdu.sendBytesLong(user_data,(short) 0, (short) len);\n\t\treturn;\n\t}", "title": "" }, { "docid": "8a40c3a9f24313ae541446ae43a27a62", "score": "0.57132703", "text": "@Override\n public int getUserID() {\n return user.userID;\n }", "title": "" }, { "docid": "6152b3b5d70b1ef3e26d02a42bd1bfd7", "score": "0.56919754", "text": "public interface User {\n String userData = \"99998\";\n int terminalNo = 1;\n}", "title": "" }, { "docid": "7630d5e7b8918d2ca23d365f92d461a9", "score": "0.5670017", "text": "public int getUser1_ID();", "title": "" }, { "docid": "d4ed6dbb7f50529f9f78ceb748d4fb18", "score": "0.5656473", "text": "String getUserIdentifier();", "title": "" }, { "docid": "b2d6583e0ba2821da5b348a8181af983", "score": "0.56407", "text": "@Override\r\n\tpublic byte[] getData() {\n\t\treturn (\"02\"+ this.user).getBytes();\r\n\t}", "title": "" }, { "docid": "62fb3ae9b6d31c7ec75e1de70beaff23", "score": "0.56223416", "text": "public void setUserid(Object userid2) {\n\t\t\n\t}", "title": "" }, { "docid": "9e5e764f7b0b3575f7e28424e7481d53", "score": "0.56192976", "text": "public Integer getUserid() {\r\n return userid;\r\n }", "title": "" }, { "docid": "42cc30bd94ff7163ca9c1588170e8b0e", "score": "0.56164205", "text": "public long getUserid() {\n return userid_;\n }", "title": "" }, { "docid": "42cc30bd94ff7163ca9c1588170e8b0e", "score": "0.56164205", "text": "public long getUserid() {\n return userid_;\n }", "title": "" }, { "docid": "42cc30bd94ff7163ca9c1588170e8b0e", "score": "0.56164205", "text": "public long getUserid() {\n return userid_;\n }", "title": "" }, { "docid": "42cc30bd94ff7163ca9c1588170e8b0e", "score": "0.56164205", "text": "public long getUserid() {\n return userid_;\n }", "title": "" }, { "docid": "4e578a77cd75aa07c8372a5e0282e52c", "score": "0.56156105", "text": "public String getUserid() {\r\n return userid;\r\n }", "title": "" }, { "docid": "ea56725e1d532505797b509f36084f26", "score": "0.55942655", "text": "public String getUserid()\n {\n return userid;\n }", "title": "" }, { "docid": "441060596d532589783713e8a3143488", "score": "0.5579542", "text": "public Long getUserid() {\n return userid;\n }", "title": "" }, { "docid": "441060596d532589783713e8a3143488", "score": "0.5579542", "text": "public Long getUserid() {\n return userid;\n }", "title": "" }, { "docid": "4ab8af92bf2f095b5ff65a9a4918d1b4", "score": "0.55767864", "text": "@Override\n public void identify(long userId) {\n }", "title": "" }, { "docid": "109077bc1e176b7fc46bd588deff418d", "score": "0.55761534", "text": "int getUid();", "title": "" }, { "docid": "a5fff7c4c864990e13a8f58b09981fee", "score": "0.5572379", "text": "public String getUserUuid();", "title": "" }, { "docid": "a5fff7c4c864990e13a8f58b09981fee", "score": "0.5572379", "text": "public String getUserUuid();", "title": "" }, { "docid": "a5fff7c4c864990e13a8f58b09981fee", "score": "0.5572379", "text": "public String getUserUuid();", "title": "" }, { "docid": "7d456352b4724e46bf78f01c3de47fe5", "score": "0.5561971", "text": "public Integer getUserid() {\n return userid;\n }", "title": "" }, { "docid": "45772ca3515b8bd9e47349cb5cf4af76", "score": "0.5561181", "text": "public int getUser2_ID();", "title": "" }, { "docid": "fb1597e1d26b84a6bad0ff4a2ac6ad84", "score": "0.55435", "text": "public Object getUserid() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7e8a46c5f318c0a5009cecc197d50950", "score": "0.55382663", "text": "byte[] getUid();", "title": "" }, { "docid": "3a825447bf52c8dcd6405769db78f36a", "score": "0.5524602", "text": "public final com.appboy.AppboyUser changeUser(java.lang.String r13) {\n /*\n r12 = this;\n r8 = r12.f865v;\n monitor-enter(r8);\n r0 = bo.app.fj.m353b(r13);\t Catch:{ Exception -> 0x0097 }\n if (r0 == 0) goto L_0x0014;\n L_0x0009:\n r0 = f840e;\t Catch:{ Exception -> 0x0097 }\n r1 = \"ArgumentException: userId passed to changeUser was null or empty. The current user will remain the active user.\";\n com.appboy.support.AppboyLogger.m664e(r0, r1);\t Catch:{ Exception -> 0x0097 }\n r0 = r12.f855l;\t Catch:{ Exception -> 0x0097 }\n monitor-exit(r8);\t Catch:{ all -> 0x00b0 }\n L_0x0013:\n return r0;\n L_0x0014:\n r0 = r12.f855l;\t Catch:{ Exception -> 0x0097 }\n r9 = r0.getUserId();\t Catch:{ Exception -> 0x0097 }\n r0 = r9.equals(r13);\t Catch:{ Exception -> 0x0097 }\n if (r0 == 0) goto L_0x0035;\n L_0x0020:\n r0 = f840e;\t Catch:{ Exception -> 0x0097 }\n r1 = \"Received request to change current user %s to the same user id. Doing nothing.\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ Exception -> 0x0097 }\n r3 = 0;\n r2[r3] = r13;\t Catch:{ Exception -> 0x0097 }\n r1 = java.lang.String.format(r1, r2);\t Catch:{ Exception -> 0x0097 }\n com.appboy.support.AppboyLogger.m666i(r0, r1);\t Catch:{ Exception -> 0x0097 }\n L_0x0031:\n monitor-exit(r8);\t Catch:{ all -> 0x00b0 }\n r0 = r12.f855l;\n goto L_0x0013;\n L_0x0035:\n r0 = \"\";\n r10 = r9.equals(r0);\t Catch:{ Exception -> 0x0097 }\n if (r10 == 0) goto L_0x0119;\n L_0x003d:\n r0 = f840e;\t Catch:{ Exception -> 0x0097 }\n r1 = \"Changing anonymous user to %s.\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ Exception -> 0x0097 }\n r3 = 0;\n r2[r3] = r13;\t Catch:{ Exception -> 0x0097 }\n r1 = java.lang.String.format(r1, r2);\t Catch:{ Exception -> 0x0097 }\n com.appboy.support.AppboyLogger.m666i(r0, r1);\t Catch:{ Exception -> 0x0097 }\n r0 = r12.f860q;\t Catch:{ Exception -> 0x0097 }\n bo.app.fj.m349a(r13);\t Catch:{ Exception -> 0x0097 }\n r0 = r0.f796a;\t Catch:{ Exception -> 0x0097 }\n r0 = r0.edit();\t Catch:{ Exception -> 0x0097 }\n r1 = \"default_user\";\n r0.putString(r1, r13);\t Catch:{ Exception -> 0x0097 }\n r1 = \"last_user\";\n r0.putString(r1, r13);\t Catch:{ Exception -> 0x0097 }\n r0.commit();\t Catch:{ Exception -> 0x0097 }\n r0 = r12.f855l;\t Catch:{ Exception -> 0x0097 }\n r1 = r0.f868a;\t Catch:{ Exception -> 0x0097 }\n monitor-enter(r1);\t Catch:{ Exception -> 0x0097 }\n r2 = r0.f869b;\t Catch:{ all -> 0x0094 }\n r3 = \"\";\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0094 }\n if (r2 != 0) goto L_0x00b3;\n L_0x0075:\n r2 = r0.f869b;\t Catch:{ all -> 0x0094 }\n r2 = r2.equals(r13);\t Catch:{ all -> 0x0094 }\n if (r2 != 0) goto L_0x00b3;\n L_0x007d:\n r2 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x0094 }\n r3 = \"setExternalId can not be used to change the external ID of a UserCache from a non-empty value to a new value. Was: [%s], tried to change to: [%s]\";\n r4 = 2;\n r4 = new java.lang.Object[r4];\t Catch:{ all -> 0x0094 }\n r5 = 0;\n r0 = r0.f869b;\t Catch:{ all -> 0x0094 }\n r4[r5] = r0;\t Catch:{ all -> 0x0094 }\n r0 = 1;\n r4[r0] = r13;\t Catch:{ all -> 0x0094 }\n r0 = java.lang.String.format(r3, r4);\t Catch:{ all -> 0x0094 }\n r2.<init>(r0);\t Catch:{ all -> 0x0094 }\n throw r2;\t Catch:{ all -> 0x0094 }\n L_0x0094:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ Exception -> 0x0097 }\n throw r0;\t Catch:{ Exception -> 0x0097 }\n L_0x0097:\n r0 = move-exception;\n r1 = f840e;\t Catch:{ all -> 0x00b0 }\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00b0 }\n r3 = \"Failed to set external id to: \";\n r2.<init>(r3);\t Catch:{ all -> 0x00b0 }\n r2 = r2.append(r13);\t Catch:{ all -> 0x00b0 }\n r2 = r2.toString();\t Catch:{ all -> 0x00b0 }\n com.appboy.support.AppboyLogger.m671w(r1, r2, r0);\t Catch:{ all -> 0x00b0 }\n r12.m650a(r0);\t Catch:{ all -> 0x00b0 }\n goto L_0x0031;\n L_0x00b0:\n r0 = move-exception;\n monitor-exit(r8);\n throw r0;\n L_0x00b3:\n r0.f869b = r13;\t Catch:{ all -> 0x0094 }\n monitor-exit(r1);\t Catch:{ all -> 0x0094 }\n r0 = r12.f856m;\t Catch:{ Exception -> 0x0097 }\n r0.f525a = r13;\t Catch:{ Exception -> 0x0097 }\n L_0x00ba:\n r0 = r12.f859p;\t Catch:{ Exception -> 0x0097 }\n r1 = 0;\n r0.f185g = r1;\t Catch:{ Exception -> 0x0097 }\n r0 = r0.f180b;\t Catch:{ Exception -> 0x0097 }\n r0.m82e();\t Catch:{ Exception -> 0x0097 }\n r0 = r12.f860q;\t Catch:{ Exception -> 0x0097 }\n bo.app.fj.m349a(r13);\t Catch:{ Exception -> 0x0097 }\n r0 = r0.f796a;\t Catch:{ Exception -> 0x0097 }\n r0 = r0.edit();\t Catch:{ Exception -> 0x0097 }\n r1 = \"last_user\";\n r0.putString(r1, r13);\t Catch:{ Exception -> 0x0097 }\n r0.commit();\t Catch:{ Exception -> 0x0097 }\n r11 = r12.f848a;\t Catch:{ Exception -> 0x0097 }\n r0 = new bo.app.fk;\t Catch:{ Exception -> 0x0097 }\n r1 = r12.f852i;\t Catch:{ Exception -> 0x0097 }\n r2 = r12.f860q;\t Catch:{ Exception -> 0x0097 }\n r3 = r12.f851d;\t Catch:{ Exception -> 0x0097 }\n r4 = r12.f854k;\t Catch:{ Exception -> 0x0097 }\n r5 = r12.f862s;\t Catch:{ Exception -> 0x0097 }\n r6 = r12.f861r;\t Catch:{ Exception -> 0x0097 }\n r7 = f839A;\t Catch:{ Exception -> 0x0097 }\n r0.<init>(r1, r2, r3, r4, r5, r6, r7);\t Catch:{ Exception -> 0x0097 }\n r12.m648a(r0);\t Catch:{ Exception -> 0x0097 }\n r0 = r12.f848a;\t Catch:{ Exception -> 0x0097 }\n r0 = r0.f450b;\t Catch:{ Exception -> 0x0097 }\n r0.m266c();\t Catch:{ Exception -> 0x0097 }\n r0 = r12.f859p;\t Catch:{ Exception -> 0x0097 }\n r0.m59a();\t Catch:{ Exception -> 0x0097 }\n if (r10 == 0) goto L_0x0146;\n L_0x00fd:\n r0 = r12.f859p;\t Catch:{ Exception -> 0x0097 }\n r1 = bo.app.da.m151a(r13);\t Catch:{ Exception -> 0x0097 }\n r0.m62a(r1);\t Catch:{ Exception -> 0x0097 }\n L_0x0106:\n r0 = r12.f859p;\t Catch:{ Exception -> 0x0097 }\n r1 = bo.app.ac.f15a;\t Catch:{ Exception -> 0x0097 }\n r0.m60a(r1);\t Catch:{ Exception -> 0x0097 }\n r0 = r11.f456h;\t Catch:{ Exception -> 0x0097 }\n r1 = new bo.app.fl;\t Catch:{ Exception -> 0x0097 }\n r1.<init>(r11);\t Catch:{ Exception -> 0x0097 }\n r0.execute(r1);\t Catch:{ Exception -> 0x0097 }\n goto L_0x0031;\n L_0x0119:\n r0 = f840e;\t Catch:{ Exception -> 0x0097 }\n r1 = \"Changing current user %s to new user %s.\";\n r2 = 2;\n r2 = new java.lang.Object[r2];\t Catch:{ Exception -> 0x0097 }\n r3 = 0;\n r2[r3] = r9;\t Catch:{ Exception -> 0x0097 }\n r3 = 1;\n r2[r3] = r13;\t Catch:{ Exception -> 0x0097 }\n r1 = java.lang.String.format(r1, r2);\t Catch:{ Exception -> 0x0097 }\n com.appboy.support.AppboyLogger.m666i(r0, r1);\t Catch:{ Exception -> 0x0097 }\n r0 = new com.appboy.events.FeedUpdatedEvent;\t Catch:{ Exception -> 0x0097 }\n r1 = new java.util.ArrayList;\t Catch:{ Exception -> 0x0097 }\n r1.<init>();\t Catch:{ Exception -> 0x0097 }\n r3 = 0;\n r4 = bo.app.fd.m330a();\t Catch:{ Exception -> 0x0097 }\n r2 = r13;\n r0.<init>(r1, r2, r3, r4);\t Catch:{ Exception -> 0x0097 }\n r1 = r12.f854k;\t Catch:{ Exception -> 0x0097 }\n r2 = com.appboy.events.FeedUpdatedEvent.class;\n r1.m34a(r0, r2);\t Catch:{ Exception -> 0x0097 }\n goto L_0x00ba;\n L_0x0146:\n r0 = r12.f859p;\t Catch:{ Exception -> 0x0097 }\n r1 = bo.app.da.m154a(r9, r13);\t Catch:{ Exception -> 0x0097 }\n r0.m62a(r1);\t Catch:{ Exception -> 0x0097 }\n goto L_0x0106;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.appboy.Appboy.changeUser(java.lang.String):com.appboy.AppboyUser\");\n }", "title": "" }, { "docid": "85381f6145a7bac840870f43afb3d1e2", "score": "0.5514995", "text": "public String getUserid() {\n return userid;\n }", "title": "" }, { "docid": "85381f6145a7bac840870f43afb3d1e2", "score": "0.5514995", "text": "public String getUserid() {\n return userid;\n }", "title": "" }, { "docid": "e51d0449f961e4f64935c3621c64c11b", "score": "0.55134404", "text": "com.google.protobuf.ByteString getUid();", "title": "" }, { "docid": "e51d0449f961e4f64935c3621c64c11b", "score": "0.55134404", "text": "com.google.protobuf.ByteString getUid();", "title": "" }, { "docid": "e51d0449f961e4f64935c3621c64c11b", "score": "0.55134404", "text": "com.google.protobuf.ByteString getUid();", "title": "" }, { "docid": "e51d0449f961e4f64935c3621c64c11b", "score": "0.55134404", "text": "com.google.protobuf.ByteString getUid();", "title": "" }, { "docid": "b3ebd949853044626d022d1eea36f1ce", "score": "0.55064446", "text": "@Override\n\tprotected void onEventUserCommand(Object arg0, Object arg1) {\n\t\t\n\t}", "title": "" }, { "docid": "2b35550256ae06bcddc89c517886fd4e", "score": "0.54957867", "text": "public String getNewUserId(){\r\n \treturn this.user.getUserId().substring(0,4) + getUserCounter(this.user.getUserId());\r\n }", "title": "" }, { "docid": "199ba7738c1284e39e642ac248741f8e", "score": "0.54946005", "text": "public void setUserid(Integer userid) {\r\n this.userid = userid;\r\n }", "title": "" }, { "docid": "635ae8740748b627fe4b52e06ff6c508", "score": "0.5492153", "text": "long getUserId();", "title": "" }, { "docid": "635ae8740748b627fe4b52e06ff6c508", "score": "0.5492153", "text": "long getUserId();", "title": "" }, { "docid": "635ae8740748b627fe4b52e06ff6c508", "score": "0.5492153", "text": "long getUserId();", "title": "" }, { "docid": "635ae8740748b627fe4b52e06ff6c508", "score": "0.5492153", "text": "long getUserId();", "title": "" }, { "docid": "635ae8740748b627fe4b52e06ff6c508", "score": "0.5492153", "text": "long getUserId();", "title": "" }, { "docid": "8b57d3b429cd4ba0a170db3e5d8df4f5", "score": "0.5488331", "text": "@Override\n public int getUserType(){ return 3; }", "title": "" }, { "docid": "cc15e34f7b348ef1e08135378e4b58da", "score": "0.54706544", "text": "public int getCommand()\r\n { return cmd; }", "title": "" }, { "docid": "76c771a6ac756e0e77cf738c21859317", "score": "0.546486", "text": "public int getUserID() {\r\n return this.userID;\r\n }", "title": "" }, { "docid": "91427bbeb9803748bf6927ea4fc6b2fd", "score": "0.5461862", "text": "public com.google.protobuf.ByteString getUserId() {\n return userId_;\n }", "title": "" }, { "docid": "89329c82b2013a4d06f5db016ef8753d", "score": "0.54590374", "text": "public void setUserUuid(String userUuid);", "title": "" }, { "docid": "89329c82b2013a4d06f5db016ef8753d", "score": "0.54590374", "text": "public void setUserUuid(String userUuid);", "title": "" }, { "docid": "89329c82b2013a4d06f5db016ef8753d", "score": "0.54590374", "text": "public void setUserUuid(String userUuid);", "title": "" }, { "docid": "89329c82b2013a4d06f5db016ef8753d", "score": "0.54590374", "text": "public void setUserUuid(String userUuid);", "title": "" }, { "docid": "89329c82b2013a4d06f5db016ef8753d", "score": "0.54590374", "text": "public void setUserUuid(String userUuid);", "title": "" }, { "docid": "89329c82b2013a4d06f5db016ef8753d", "score": "0.54590374", "text": "public void setUserUuid(String userUuid);", "title": "" }, { "docid": "89329c82b2013a4d06f5db016ef8753d", "score": "0.54590374", "text": "public void setUserUuid(String userUuid);", "title": "" }, { "docid": "8a157895d369d79a54f771e0060f298b", "score": "0.54584134", "text": "public int getUser_ID() {\n return User_ID;\n }", "title": "" }, { "docid": "dc13b9ae1f7e08552e3a3dc6fe0c51e4", "score": "0.5453468", "text": "public final void mo56977b() {\n User user;\n String str;\n if (this.f67571b == null || this.f67571b.getData() == null) {\n user = null;\n } else {\n user = ((UserResponse) this.f67571b.getData()).getUser();\n }\n if (!(this.f67571b == null || this.f67571b.getData() == null)) {\n C1592h.m7855a((Callable<TResult>) new C36052y<TResult>((UserResponse) this.f67571b.getData()), (Executor) C6907h.m21516a());\n }\n if (user == null || C21115b.m71197a().isUserEmpty(user)) {\n String str2 = \"profile_request_response\";\n C22984d dVar = new C22984d();\n String str3 = \"to_user_id\";\n if (user != null) {\n str = user.getUid();\n } else {\n str = \"\";\n }\n C6907h.m21524a(str2, (Map) dVar.mo59973a(str3, str).mo59973a(\"enter_from\", \"personal_homepage\").mo59970a(\"is_success\", 0).mo59973a(\"fail_info\", \"user_is_empty\").f60753a);\n return;\n }\n if (!C6399b.m19944t()) {\n m116141e();\n }\n C21115b.m71197a().updateCurUser(user);\n if (this.f67572c != null) {\n ((C36041o) this.f67572c).mo91702a(user);\n mo91623a(user);\n }\n }", "title": "" }, { "docid": "aa6de90f2fbae3b2777b5843e79dda2c", "score": "0.54490864", "text": "public int getUserId()\n\t {\n\t\t return userId;\n\t }", "title": "" }, { "docid": "9a44a7304fdca58a6c04e698baecde16", "score": "0.5448185", "text": "@Override\n\tpublic int getCmdNumber() {\n\t\treturn 5;\n\t}", "title": "" }, { "docid": "ec89830e9196ade629339997754e9968", "score": "0.5445916", "text": "public int getIdUser() {\n\t\treturn idUser;\n\t}", "title": "" }, { "docid": "30cfcceb5cfbed9b42517faba908bcaf", "score": "0.5437195", "text": "public void setIdUser(String idUser) {\n this.idUser = idUser;\n }", "title": "" }, { "docid": "1606325de12b424fdce535204a391c39", "score": "0.54324836", "text": "public void setUser2_ID (int User2_ID);", "title": "" }, { "docid": "2d920d441f1469e7ff543f1fde2f4a24", "score": "0.5430642", "text": "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "9a6e82bfa3785b152fe3796412ab44f0", "score": "0.5430095", "text": "public void setUserid(String userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "9a6e82bfa3785b152fe3796412ab44f0", "score": "0.5430095", "text": "public void setUserid(String userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "cfa0b6de6e9f12d1f396d0e6ec2135f9", "score": "0.54205376", "text": "public void setUserId(Object id) {\n\t\t\n\t}", "title": "" }, { "docid": "2dae830c13ba12013adc47d87db47376", "score": "0.54169977", "text": "public void setUserid(Long userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "2dae830c13ba12013adc47d87db47376", "score": "0.54169977", "text": "public void setUserid(Long userid) {\n this.userid = userid;\n }", "title": "" }, { "docid": "b56adaf90aa29897190a2cd30d6363d7", "score": "0.5411837", "text": "@Override\n\tpublic String getUserID() {\n\t\treturn userID;\n\t}", "title": "" }, { "docid": "3b25ddf14dc67e519b08730fe2e2dc45", "score": "0.54108167", "text": "public long getUserId();", "title": "" }, { "docid": "3b25ddf14dc67e519b08730fe2e2dc45", "score": "0.54108167", "text": "public long getUserId();", "title": "" }, { "docid": "3b25ddf14dc67e519b08730fe2e2dc45", "score": "0.54108167", "text": "public long getUserId();", "title": "" }, { "docid": "3b25ddf14dc67e519b08730fe2e2dc45", "score": "0.54108167", "text": "public long getUserId();", "title": "" }, { "docid": "3b25ddf14dc67e519b08730fe2e2dc45", "score": "0.54108167", "text": "public long getUserId();", "title": "" }, { "docid": "3b25ddf14dc67e519b08730fe2e2dc45", "score": "0.54108167", "text": "public long getUserId();", "title": "" } ]
a303d8306b190db605c311b212e829d7
TODO: attempt authentication against a network service.
[ { "docid": "7d32e6959631988924704aa546787fb6", "score": "0.0", "text": "@Override\r\n protected String doInBackground(Void... params) {\n Intent nextIntent = null;\r\n Intent prev = getIntent();\r\n String usrid = prev.getStringExtra(Constants.LOGGEDUSERID);\r\n if(this.eventsMode == Constants.myEventsMode){\r\n\r\n nextIntent = new Intent(getApplicationContext(),myEventsActivity.class);\r\n nextIntent.putExtra(Constants.eventsMode,Constants.myEventsMode);\r\n }\r\n else{\r\n nextIntent = new Intent(getApplicationContext(),myEventsActivity.class);\r\n nextIntent.putExtra(Constants.eventsMode,Constants.allEventsMode);\r\n }\r\n\r\n nextIntent.putExtra(Constants.LOGGEDUSERID, usrid);\r\n startActivity(nextIntent);\r\n return null;\r\n }", "title": "" } ]
[ { "docid": "3c242f8cd68d41ff5c3b95d32e71244f", "score": "0.6272189", "text": "protected void login() {\n\t\t\n\t\tWebResource mgmtResource = this.mgmtClient.resource(this.uri);\n\t\t\n\t\t// login\n\t\tWebResource loginResource = mgmtResource.path(REST_LOGIN);\n\t\tloginResource.addFilter(new HTTPBasicAuthFilter(this.mgmtConfig.getMgmtUsername(), this.mgmtConfig.getMgmtSecretKey()));\n\t\tClientResponse loginResponse = loginResource.get(ClientResponse.class);\n \n // Check for sucsess\n int statusCode = loginResponse.getStatusInfo().getStatusCode();\n if( statusCode != Status.OK.getStatusCode() ) {\n \tString errorMessage = \"Login to \" + this.uri + REST_LOGIN + \" failed\" + \" Server returned: \" + statusCode;\n \tthrow new RuntimeException(errorMessage);\n }\n \t \n String authToken = loginResponse.getHeaders().getFirst(X_SDS_AUTH_TOKEN);\n\t\t\t\t\n\t\tif(authToken != null) {\n\t\t\tthis.mgmtAuthToken = authToken;\t\t\t\n\t\t} else {\n\t\t\tString errorMessage = \"Login to \" + this.uri + \" ok but Server did not return \" + X_SDS_AUTH_TOKEN + \n\t\t\t\t\t \"in response header\";\n \tthrow new RuntimeException(errorMessage);\n\t\t}\n\t}", "title": "" }, { "docid": "7f8f2e13665dd3054790dc6adf0556ba", "score": "0.6243303", "text": "boolean authenticate();", "title": "" }, { "docid": "375dd71f1ef60d4f48ca27e9ae0c800d", "score": "0.61579216", "text": "public void authenticate() {\n authenticate(false);\n }", "title": "" }, { "docid": "fb354f38ca2a6041a93d9ed99927beb4", "score": "0.6148229", "text": "@Override\n public boolean shouldAuthenticate() {\n return true;\n }", "title": "" }, { "docid": "edea74f5e134817e13ba25a68bb8d4d3", "score": "0.6081129", "text": "public interface AuthenticatedService {\n}", "title": "" }, { "docid": "d0ac4af9b51e2c6b644946c3a72b58ba", "score": "0.60729444", "text": "boolean tryLogin(String username, String password, String authType);", "title": "" }, { "docid": "8666aec1ae61645480a7eb35fe0f0c22", "score": "0.6031892", "text": "public interface SecurityService {\n\n String findLoggedInUsername();\n\n void autologin(String username, String password);\n}", "title": "" }, { "docid": "ff35c4d329245bdc29299e68106183ca", "score": "0.60295784", "text": "void authenticate() throws HostingConnectorException;", "title": "" }, { "docid": "5ef4a045634632164403e08c67b1db2e", "score": "0.60257053", "text": "private static void authenticateUser(int port_number, InetAddress ip_address, DatagramSocket currentSocket){\n\t\tif (isDebugMode) {\n\t\t\tSystem.out.println(\"Authenticating user...\\n\");\n\t\t}\n\n\t\t//Send \"authentication request\" message to server\n\t\tprotocol.authRequest(port_number, ip_address, currentSocket);\n\t}", "title": "" }, { "docid": "810082f6e5d8f3b8508a742705a595dc", "score": "0.6008782", "text": "protected void loginService()\n {\n\n String username = \"demo\";\n String password = \"demo\";\n\n driver.get(serverURL + contextPath);\n driver.findElement(HERE_LINK).click();\n\n driver.findElement(By.partialLinkText(\"Login\")).clickAndWait();\n\n driver.findElement(LOGIN_INPUT_USERNAME).clearAndSendKeys(username);\n driver.findElement(LOGIN_INPUT_PASSWORD).clearAndSendKeys(password);\n\n driver.findElement(INVOKE_SERVICE_BUTTON).clickAndWait();\n }", "title": "" }, { "docid": "4b91dc1de009dcf22f9d2d90c1381930", "score": "0.6006255", "text": "private void login() {\n \n //Read the configuration file.\n AmbassadorConfiguration ambConf = AmbassadorConfiguration.getInstance();\n String hostName = ambConf\n .getPropertyValue(AmbassadorConfiguration.AMB_HOSTNAME);\n String httpPort = ambConf\n .getPropertyValue(AmbassadorConfiguration.AMB_HTTP_PORT);\n String httpsPort = ambConf\n .getPropertyValue(AmbassadorConfiguration.AMB_HTTPS_PORT);\n String wsURL = ambConf\n .getPropertyValue(AmbassadorConfiguration.AMB_WEBSERVICE_URL);\n String ambUserName = ambConf\n .getPropertyValue(AmbassadorConfiguration.AMB_USERNAME);\n String ambPassword = ambConf\n .getPropertyValue(AmbassadorConfiguration.AMB_PASSWORD);\n String dctmRepository = ambConf\n .getPropertyValue(AmbassadorConfiguration.DCTM_REPOSITORY);\n String dctmUserName = ambConf\n .getPropertyValue(AmbassadorConfiguration.DCTM_USERNAME);\n String dctmPassword = ambConf\n .getPropertyValue(AmbassadorConfiguration.DCTM_PASSWORD);\n\n String wsdlHttpURL = HTTP_PROTOCOL + hostName + DELIMITER + httpPort\n + wsURL;\n String wsdlHttpsURL = HTTPS_PROTOCOL + hostName + DELIMITER + httpsPort\n + wsURL;\n \n AxisProperties.setProperty(\"axis.socketSecureFactory\",\n \"org.apache.axis.components.net.SunFakeTrustSocketFactory\");\n //Locate the web service and login GlobalSight server via web service.\n try {\n AmbassadorServiceLocator serviceLocator = \n new AmbassadorServiceLocator();\n provider = serviceLocator.getAmbassadorWebService(\n new URL(wsdlHttpURL) );\n Ambassador httpsProvider = null;\n try {\n httpsProvider = serviceLocator\n .getAmbassadorWebService(new URL(wsdlHttpsURL));\n } catch (Exception e) {\n e.printStackTrace();\n httpsProvider = provider; \n }\n m_accessToken = httpsProvider.login(ambUserName, ambPassword); \n m_userId = httpsProvider.passDCTMAccount(m_accessToken,\n dctmRepository, dctmUserName, dctmPassword);\n } catch (ServiceException svcex) {\n System.out.println(SERVICE_EXCEPTION_MSG);\n svcex.printStackTrace();\n throw new AmbassadorWebserviceException(svcex.getLocalizedMessage());\n } catch (WebServiceException wsex) {\n System.out.println(WEBSERVICE_EXCEPTION_MSG);\n wsex.printStackTrace();\n throw new AmbassadorWebserviceException(wsex.getLocalizedMessage());\n } catch (RemoteException rmtex) {\n System.out.println(REMOTE_EXCEPTION_MSG);\n rmtex.printStackTrace();\n throw new AmbassadorWebserviceException(rmtex.getLocalizedMessage());\n } catch(MalformedURLException urlex) {\n System.out.println(URL_EXCEPTION_MSG);\n urlex.printStackTrace();\n throw new AmbassadorWebserviceException(urlex.getLocalizedMessage());\n }\n }", "title": "" }, { "docid": "cbf2a4b5a82b0ba5b872a503698211f5", "score": "0.6001636", "text": "private static boolean login(java.lang.String arg0, java.lang.String arg1) {\n service.LoginWebService_Service service = new service.LoginWebService_Service();\n service.LoginWebService port = service.getLoginWebServicePort();\n return port.login(arg0, arg1);\n }", "title": "" }, { "docid": "814aa741f4ee35c783dd0ceaa6f85129", "score": "0.5988064", "text": "private void connectAndLogin(SecurityAuthority authority)\n throws OperationFailedException\n {\n synchronized(initializationLock)\n {\n //verify whether a password has already been stored for this account\n String password = MsnActivator.\n getProtocolProviderFactory().loadPassword(getAccountID());\n \n //decode\n if (password == null)\n {\n //create a default credentials object\n UserCredentials credentials = new UserCredentials();\n credentials.setUserName(getAccountID().getUserID());\n \n //request a password from the user\n credentials = authority.obtainCredentials(ProtocolNames.MSN\n , credentials);\n \n //extract the password the user passed us.\n char[] pass = credentials.getPassword();\n \n // the user didn't provide us a password (canceled the operation)\n if(pass == null)\n {\n fireRegistrationStateChanged(\n getRegistrationState(),\n RegistrationState.UNREGISTERED,\n RegistrationStateChangeEvent.REASON_USER_REQUEST, \"\");\n return;\n }\n password = new String(pass);\n \n \n if (credentials.isPasswordPersistent())\n {\n MsnActivator.getProtocolProviderFactory()\n .storePassword(getAccountID(), password);\n }\n }\n \n \n messenger = MsnMessengerFactory.createMsnMessenger(\n getAccountID().getUserID(),\n password);\n \n messenger.addMessengerListener(new MsnConnectionListener());\n \n persistentPresence.setMessenger(messenger);\n typingNotifications.setMessenger(messenger);\n \n messenger.login();\n }\n }", "title": "" }, { "docid": "133026b184a60fd5f24320585230ee1a", "score": "0.59657514", "text": "boolean authenticated(String user, String pass) throws AdministratorException;", "title": "" }, { "docid": "25f2504a4246c453fb47bcce14427ca9", "score": "0.5949636", "text": "protected abstract CrmAuthenticationService auth();", "title": "" }, { "docid": "5c098d07536c638efe432b7d66b87796", "score": "0.5902146", "text": "private void authenticate() {\n\t\tMessagePacket m = null;\n\n\t\t// Wait for permission to connect\n\t\ttry {\n\t\t\tlogger.pushCon(\"Found server.\");\n\t\t\tm = incomingMessageQueue.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Check message\n\t\tif (m != null) {\n\t\t\tif (authenticator.isServerFull(m)) {\n\t\t\t\tlogger.pushError(\"Server full.\");\n\t\t\t\t\n\t\t\t\t//Disconnect\n\t\t\t\tterminateConnection();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t//TODO handle other cases\n\t\t\telse if (authenticator.isRequestingAuthentication(m)) {\n\t\t\t\t// Send message\n\t\t\t\tif (DEV_DEBUG) logger.pushCon(\"Sending authentication to server.\");\n\t\t\t\tMessagePacket authentication = authenticator.generateAuthenticator(null, clientName);\n\t\t\t\tsendToServer(authentication);\n\t\t\t\n\t\t\t\t// Wait for connection confirmation\n\t\t\t\ttry {\n\t\t\t\t\tif (DEV_DEBUG) logger.pushCon(\"Awaiting response...\");\n\t\t\t\t\tm = incomingMessageQueue.poll(TIMEOUT_LIMIT, TimeUnit.SECONDS);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Authenticate message\n\t\t\t\tif (m != null) {\t\t\t\n\t\t\t\t\tif (authenticator.confirmAuthentication(m)) {\n\t\t\t\t\t\tlogger.pushCon(\"Connection successful <\" + m.data[0] + \">\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tserverID = m.senderID;\n\t\t\t\t\t\tserverAssignedID = m.receiverID;\n\t\t\t\t\t\tlogger.pushInfo(\"Server ID: \" + serverID);\n\t\t\t\t\t\tlogger.pushInfo(\"Assigned ID: \" + serverAssignedID);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Change state\n\t\t\t\t\t\tstate = ConnectionState.CONNECTED;\n\t\t\t\t\t\tauthenticator.setUUID(serverAssignedID);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//Disconnect\n\t\t\t\t\t\tlogger.pushCon(\"Connection not authenticated. Disconnecting...\");\n\t\t\t\t\t\tterminateConnection();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlogger.pushCon(\"No response from server. Disconnecting...\");\n\t\t\t\t\tterminateConnection();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a894d67ebb0367ffbc0d50dc087aee69", "score": "0.58842456", "text": "public void authenticate(String Name, String Pass);", "title": "" }, { "docid": "781fb5d4735f09969e5c86a07e5b1eda", "score": "0.58762807", "text": "boolean authenticate(String user, String password);", "title": "" }, { "docid": "5358157fc572b2569ba54b98f0a785fc", "score": "0.5848406", "text": "public abstract void usePreemptiveAuthentication(boolean val);", "title": "" }, { "docid": "d8ceeb1d486fa15177ca23d062d2775c", "score": "0.58440673", "text": "@RemoteServiceRelativePath(\"authenticate\")\npublic interface AuthenticationService extends RemoteService {\n\tString authenticate(String username, String password) throws IllegalArgumentException;\n\tBoolean isLoggedIn();\n}", "title": "" }, { "docid": "b956ac4ce6b318028a105f8ac998cc0a", "score": "0.5839714", "text": "Boolean authenticate(String userName, String password);", "title": "" }, { "docid": "962d1f6a57241646f01d7c1f721e5f55", "score": "0.5832591", "text": "@Override\n public void mainAccess() {\n\n loginRequest();\n }", "title": "" }, { "docid": "75a839c98dc84addb57a58a1de7f49de", "score": "0.58108324", "text": "Credential getCredential();", "title": "" }, { "docid": "105ce7e987b24e3ac6c71a81e5515096", "score": "0.5787012", "text": "public String authenticate(){\n\t\ttry {\n\t\t\trequest_transport = GoogleNetHttpTransport.newTrustedTransport();\n\t service = new Drive.Builder(request_transport, JSON_FACTORY, getCredentials(request_transport))\n\t .setApplicationName(APPLICATION_NAME)\n\t .build();\n\t System.out.println(service.toString());\n\t \treturn \"Successfully authenticated\";\n\t\t} catch (GeneralSecurityException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\treturn \"Error: \" + e.getMessage();\n\t\t}\n }", "title": "" }, { "docid": "15f771dcad88cc596bf1e5128caf5ac1", "score": "0.57524717", "text": "public boolean authenticate() throws IOException {\n if (httpClient == null)\n httpClient =\n new DefaultHttpClient(\n getSSLClientConnectionManager(uri.getPort() == -1 ? 443\n : uri.getPort()));\n\n HttpGet httpGet =\n new HttpGet(\"https://\" + uri.getHost()\n + (uri.getPort() == -1 ? \"\" : \":\" + uri.getPort()) + \"/\" + API_ROOT\n + \"/\" + Action.AUTH);\n httpGet.addHeader(BasicScheme.authenticate(new UsernamePasswordCredentials(\n username, password), \"US-ASCII\", false));\n\n HttpResponse response = checkStatusCode(httpClient.execute(httpGet));\n HttpEntity entity = response.getEntity();\n\n String json = InputStreamUtil.toString(entity.getContent());\n Boolean result = new Gson().fromJson(json, Boolean.class);\n return result;\n }", "title": "" }, { "docid": "f32e458f8a76abad91acccb92eddfe45", "score": "0.57297933", "text": "@Override\n\tpublic boolean authenticate() {\n\t\tSystem.out.println(\"Debit Authenticate\");\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "8be9087c9fe4771e689152ea8da63084", "score": "0.57243484", "text": "private synchronized void authenticate() throws RestException {\n if (restRootObj == null) {\n restRootObj = createRootObject();\n fetch(restRootObj);\n }\n\n // Copy the API key from the root object\n apiKey = restRootObj.getApiKey();\n\n // Debug\n logger.debug(\"Started session with username: \" + username + \" in enterprise: \" + enterprise);\n }", "title": "" }, { "docid": "fe5d9a7a82baa08e37f8151c032718f0", "score": "0.571528", "text": "private void loginAsTool() {\n \tsession = new BbContext();\n \tsession.loginAsTool(CLIENT_PROGRAM_ID, client_pw);\n \tutilWS = (UtilWSStub) session.initializeClient(UtilWSStub.class, ws_url);\n \t_initializeUtilWS(true);\n }", "title": "" }, { "docid": "a1ed0cdfd1eceedc3939774cbb115943", "score": "0.57090026", "text": "private void performLogin() {\n if (!isUserNameValid() || !isPasswordValid())\n {\n setErrorMessage(getString(R.string.login_invalid_input_err_msg));\n return;\n }\n\n IsUserAllowedService is = new IsUserAllowedService(usernameInput.getText().toString(), passwordInput.getText().toString());\n UserManagerWebService uws = new UserManagerWebService(is);\n uws.execute();\n }", "title": "" }, { "docid": "06560b9d16afb6505be789c1bed440bc", "score": "0.5706113", "text": "@Override\n\tpublic boolean authentic() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6c36b37067f577f6bafce364195b55cb", "score": "0.57041", "text": "boolean authenticateDomainExpert(String userName, String password);", "title": "" }, { "docid": "5d27ab5b66ff9eccaa5e95436daf108a", "score": "0.5690351", "text": "private AmbassadorWebServiceClient() {\n login(); \n }", "title": "" }, { "docid": "4ec6f10b5860ea4255d50055d6fcd0b0", "score": "0.5689452", "text": "public static boolean performAuth(){\t\n\t\tString msg = \"\";\n\t\ttry{\n\t\t\t// Auth information\n\t\t\tString user = System.getProperty(\"user.name\");\n\t\t\tString auth = AUTH +user;\n\t\t\t// Input and Output streams\n\t\t\t//dout = new DataOutputStream(s.getOutputStream());\n\t\t\t// Sending HELO to server\n\t\t\tdout.write(HELO.getBytes());\n\t\t\tmsg = getMsg();\n\t\t\t//Sending Auth info\n\t\t\tnotifyClient(\"Performing Authentication \\n\");\n\t\t\tmessageToServer(auth);\n\t\t\treceivednone = true;\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "84bca2ed78903c994e106971c3323e95", "score": "0.56735736", "text": "public interface Authenticator {\n\n /**\n * The is valid method is used to see if credentials are a valid proof of the user identity.\n * The process populates the received subject with all Principals and Credentials.\n *\n * @param credentials that should proof user identity.\n * the state of the authenticated Subject.\n * @return the authenticated subject.\n */\n Subject check(Credential[] credentials, String schemeName) throws SSOAuthenticationException;\n\n /**\n * Builds the supplied user credentials for the\n * supplied Authentication Scheme.\n */\n Credential newCredential(String schemeName, String name, Object value) throws SSOAuthenticationException;\n\n /**\n * Retunrs the Principal derived from the given credentials.\n */\n Principal getPrincipal(String schemeName, Credential[] credentials);\n\n /**\n * Sets the configured authentication schemes available to the authenticator.\n *\n * @param as the authentication schemes.\n */\n void setAuthenticationSchemes(AuthenticationScheme[] as);\n\n /**\n * @return\n */\n AuthenticationScheme[] getAuthenticationSchemes();\n\n /**\n *\n * @param name\n * @return\n */\n AuthenticationScheme getAuthenticationScheme(String name);\n\n\n}", "title": "" }, { "docid": "95b05f0ac94ee3aa1a6736ec58f85d24", "score": "0.56682515", "text": "public boolean authenticate() throws IOException, NigoriCryptographyException;", "title": "" }, { "docid": "a9e22d68dedd19a0a01258c074dc7ce8", "score": "0.56657755", "text": "public boolean login() {\n // Prepare request parameters\n ArrayList<String> requestData = new ArrayList<>();\n requestData.add(\"LOGIN_C\");\n requestData.add(USERNAME);\n\n // Create API Parser\n APIParser apiParser = new APIParser();\n String request = apiParser.buildRequest(requestData);\n\n // Connection\n Connection connection = new Connection(IP_ADDRESS, IP_PORT);\n try {\n // Transfer data to API, receive and parse response\n String response = connection.transfer(request);\n ArrayList<String> data = apiParser.parseResponse(response);\n\n // Check response from server\n if(data.get(0).equals(\"OK\")) {\n return true;\n } else {\n return false;\n }\n } catch (IOException e) {\n e.printStackTrace();\n\n // Return invalid login\n return false;\n }\n }", "title": "" }, { "docid": "fc54bd8c8463eb18d4ab56ba4392c71a", "score": "0.5664542", "text": "private void authenticate(String username, String password) throws Exception {\n MocUser user = userService.Authenticate(username, password);\r\n if (user == null) {\r\n throw new RuntimeException(\"Authentication failed\");\r\n }\r\n }", "title": "" }, { "docid": "5706905b0b1c9217a774a6dc7abfa2a8", "score": "0.5664118", "text": "@Service(\"authService\")\npublic interface AuthenticationService {\n AuthenticationResponse authenticate(String email, String password);\n}", "title": "" }, { "docid": "dfb223d8dcf3bb5d66ac4ccb01234376", "score": "0.56545335", "text": "@Local\npublic interface IAuthentificator {\n\t/**\n\t * Receives a PorsUser object, which contains the user name and password. The\n\t * method checks if the user exists and if the password is correct.\n\t * Otherwise it throws a specific exception\n\t * \n\t * @param PorsUser\n\t * the user, who wants to login\n\t * @throws AuthentificationException\n\t * is thrown if the password or username is incorrect\n\t * @throws MissingFieldsException\n\t * if there are fields missing in the user object\n\t **/\n\tpublic PorsUser authUser(PorsUser user) throws AuthentificationException, MissingFieldsException;\n\n\t/**\n\t * Receives a PorsUser object and a task the user wants to perform. After\n\t * querying the DatabaseManager for the permissions of the user, the method\n\t * checks if there is a permission for fullfilling the task.\n\t * \n\t * @param PorsUser\n\t * the user who wants to perform the task\n\t * @param Task\n\t * containing action and domain.\n\t * @throws MissingRightsException\n\t * is thrown if the user isn't allowed to perform the task\n\t **/\n\tpublic void checkRights(PorsUser user, Task task)\n\t\t\tthrows MissingRightsException;\n\n\n\t/**\n\t * Returns a list of permissions for a given user.\n\t * \n\t * @param user\n\t * the user for which the permissions are requested\n\t * @return a list of permissions for the user\n\t * @throws MissingFieldsException\n\t * if there are missing fields for the user\n\t * @throws UserNotFoundException\n\t * if the user cannot be found\n\t */\n\tpublic List<Permission> getPermissions(PorsUser user)\n\t\t\tthrows MissingFieldsException, UserNotFoundException;\n\t\n\t/**\n\t * <p>\n\t * Returns the hash string of <code>inputString</code>.\n\t * </p>\n\t * \n\t * @param inputString\n\t * \t\tString to hash\n\t * \t\t\n\t */\n\tString getHashString(String inputString);\n\t\n\tString getLdapDn(String username);\n\t\n\tboolean isLdapMode();\n}", "title": "" }, { "docid": "b8e1583b7dde0a8f95df2787adbf4860", "score": "0.5650942", "text": "private NetworkPackage commandAuth(PackageHeader header) throws SQLException {\n String login = header.getParam(1);\n String password = header.getParam(2);\n\n Optional<FileServerClient> client = connection.login(login, password);\n\n PackageHeader reqHeader;\n if (client.isPresent()) {\n activeClient = client.get();\n\n reqHeader = new PackageHeader.HeaderBuilder(NetworkCommand.AUTH_OK)\n .addParam(activeClient.getNickname())\n .build();\n } else {\n reqHeader = new PackageHeader.HeaderBuilder(NetworkCommand.AUTH_FAIL)\n .addParam(\"Incorrect login or password\")\n .build();\n }\n\n return new NetworkPackage(reqHeader, null);\n }", "title": "" }, { "docid": "496da711592f736b9964271a7cb2c685", "score": "0.563922", "text": "void autoLogin(String username, String password);", "title": "" }, { "docid": "728fad43263eed641da60a693f67ba0f", "score": "0.5633148", "text": "@Test\n public void testLogin_returnsServiceResult() throws IOException {\n Assertions.assertEquals(response, presenter.login(request));\n }", "title": "" }, { "docid": "08d9e685f029e2676d7437f2451e8eb2", "score": "0.56044024", "text": "public LocalAuthenticator() {\n setAccessMode(USER_MODE);\n setExtendedSecurity( false);\n }", "title": "" }, { "docid": "7ec31d72315bf8097e94c5d738591439", "score": "0.5593425", "text": "public void alexaRequestLogin() {\n\t\tget(\"http://\" + _ip + \"/server.command?command=login&type=request\",\"\", Alexa_Request_Login);\n\t}", "title": "" }, { "docid": "62416b8bc63c3891784367436977b1e6", "score": "0.5575211", "text": "public interface IService {\n String login(String name, String pass);\n}", "title": "" }, { "docid": "ca700d3b5963f14dc325c4f45892a53b", "score": "0.55641437", "text": "public abstract boolean login(String username, String password) throws IOException;", "title": "" }, { "docid": "50d05701f3170fb630858c4150de5da4", "score": "0.55624896", "text": "public boolean authenticated(AccountInfo accountInfo) throws RemoteException;", "title": "" }, { "docid": "0232d8cd2467ec90baa72c9507db29df", "score": "0.5551155", "text": "void authenticate(InvocationRequest invocationRequest) throws AuthenticationFailedException;", "title": "" }, { "docid": "b08a34032bfe9735e968898f86bfae5c", "score": "0.553413", "text": "@Override\n // Called when the LayerClient establishes a network connection\n public void onConnectionConnected(LayerClient layerClient) {\n Log.d(TAG, \"\\n\\n********** ConnectionListener Connected **********\\n\\n\");\n if(!layerClient.isAuthenticated()) {\n layerClient.authenticate();\n }\n //Log.d(TAG, String.format(\"result: %s\", result));\n }", "title": "" }, { "docid": "fd6630904d5e87bcda766354bcf9d4f0", "score": "0.5530872", "text": "boolean hasAuthentication();", "title": "" }, { "docid": "7d9aeb5adbb09e11691048a63d201f91", "score": "0.5530403", "text": "@Retryable(value = RuntimeException.class, maxAttempts = 5, backoff = @Backoff(delay = 300))\n protected ResponseEntity<String> tryLogin(T authentication) {\n return remoteAuthClient.remoteAuth(authWsPath, createHttpHeaders(authentication));\n }", "title": "" }, { "docid": "c2fbebb1bdfdb6a2ed96b4a377f6b547", "score": "0.5523015", "text": "protected abstract boolean autoLogin();", "title": "" }, { "docid": "8307c085d3e5af88da84401a67826f46", "score": "0.5521233", "text": "@Override\r\n\tpublic void loginService(HttpServletRequest request, HttpServletResponse response) {\n\r\n\t}", "title": "" }, { "docid": "55efa78b6f8365d6f4323c96b0e46119", "score": "0.55128545", "text": "public void authenticate( String username, String password ) throws IOException\n {\n // get a ticket-granting ticket from CAS\n this.ticketGrantingTicket = this.getTicketGrantingTicket( authService, username, password );\n System.out.println( \"TicketGrantingTicket is \" + this.ticketGrantingTicket );\n\n // get a service ticket to access the app\n String appServiceAuthEndpoint = this.appService + \"/j_spring_cas_security_check\";\n System.out.println( \"Authenticating to URL: \" + appServiceAuthEndpoint );\n\n String serviceTicket = this.getServiceTicket( this.authService, this.ticketGrantingTicket, appServiceAuthEndpoint );\n System.out.println( \"ServiceTicket is \" + serviceTicket );\n\n // authenticate with the ticket. . . .\n // CAS puts session cookie in the client's store, so make\n // sure to use the same client for all requests\n this.authenticateClient( appServiceAuthEndpoint, serviceTicket );\n }", "title": "" }, { "docid": "d3abb62c3d166ff31ac1277a9a3d7a5a", "score": "0.55067116", "text": "private static void connect() throws Exception {\r\n\r\n HostnameVerifier hv = new HostnameVerifier() {\r\n @Override\r\n public boolean verify(String urlHostName, SSLSession session) {\r\n return true;\r\n }\r\n };\r\n trustAllHttpsCertificates();\r\n HttpsURLConnection.setDefaultHostnameVerifier(hv);\r\n\r\n SVC_INST_REF.setType(SVC_INST_NAME);\r\n SVC_INST_REF.setValue(SVC_INST_NAME);\r\n\r\n vimService = new VimService();\r\n vimPort = vimService.getVimPort();\r\n Map<String, Object> ctxt =\r\n ((BindingProvider) vimPort).getRequestContext();\r\n\r\n ctxt.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);\r\n ctxt.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);\r\n\r\n serviceContent = vimPort.retrieveServiceContent(SVC_INST_REF);\r\n vimPort.login(serviceContent.getSessionManager(), userName, password,\r\n null);\r\n isConnected = true;\r\n }", "title": "" }, { "docid": "f744aee880bbf5c89af72df875aaf1bd", "score": "0.5503895", "text": "public interface AuthenticationProvider {\n /**\n * The authentication call. Is made from the <code>ProxyServlet</code>\n * after an incoming invocation request is made.\n *\n * If a successful authentication is made, the <code>AuthenticationContext#setPrincipal()</code>\n * method is called to update the principal with a spesific object,\n * preferably the Credentials object found in the <code>InvocationRequest</code>.\n *\n * @param invocationRequest The invocationRequest, possibly containing a <code>credentials</code> object\n *\n * @see no.tornado.brap.servlet.ProxyServlet\n * @see no.tornado.brap.auth.AuthorizationProvider\n * @see AuthenticationContext\n * @see no.tornado.brap.common.UsernamePasswordPrincipal\n * @see no.tornado.brap.auth.DatabaseUsernamePasswordAuthenticator\n */\n void authenticate(InvocationRequest invocationRequest) throws AuthenticationFailedException;\n\n}", "title": "" }, { "docid": "3b0071665f101a8b5a796f88f700c9fd", "score": "0.5493735", "text": "public int authenticate(String user, String password) throws AuthenticationFailedException, ConnectionFailedException;", "title": "" }, { "docid": "18ea70ef7de11aeac31b163ea9104194", "score": "0.54821265", "text": "@Override\n\tpublic void authenticate(RoutingContext routingContext, Handler<AsyncResult<User>> handler) {\n\t}", "title": "" }, { "docid": "873320a9b38c7b08e9450cd6ed5fb264", "score": "0.54810727", "text": "public void initiateConnection(){\n\t\t// make a connection to another server if remote hostname is supplied\n\t\tif(Settings.getRemoteHostname()!=null){\n\t\t\ttry {\n\t\t\t\tConnection c = outgoingConnection(\n\t\t\t\t\t\tnew Socket(Settings.getRemoteHostname(),\n\t\t\t\t\t\t\t\tSettings.getRemotePort()));\n\n\t\t\t\t// Send an authentication message\n\t\t\t\tJSONObject obj = new JSONObject();\n\t\t\t\tobj.put(\"command\", \"AUTHENTICATE\");\n\t\t\t\tobj.put(\"secret\", Settings.getSecret());\n\t\t\t\tc.writeMsg(obj.toJSONString());\n\t\t\t\t// The parent server certainly is a valid server.\n\t\t\t\tvalidatedServerConnections.add(c);\n\n\t\t\t\tlog.info(\"Sending authentication request\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"failed to make connection to \"\n\t\t\t\t\t\t+ Settings.getRemoteHostname() + \":\"\n\t\t\t\t\t\t+ Settings.getRemotePort());\n\t\t\t\t// If the initial connection couldn't be established,\n\t\t\t\t// just quit the program.\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c1d76eae7ff00d0cd56cbefdedb217ee", "score": "0.54750985", "text": "@SuppressWarnings(\"null\")\n\tprivate UserDetail authenticateFromGlo(String userName, String password)\n\t\t\tthrows JSONException, SystemException {\n\t\tHttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactory();\n\t\tRestTemplate restTemplate = new RestTemplate(requestFactory);\n\t\tRestTemplate searchRestTemplate = new RestTemplate(requestFactory);\n\n\t\tUserDetail userDetails = new UserDetail();\n\n\t\tString token = userName + \":\" + password;\n\t\tbyte[] tokenBytes = Base64.encodeBase64(token.getBytes());\n\t\tLOGGER.info(\"ecncoded value is \" + new String(tokenBytes));\n\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpHeaders searchUserheaders = new HttpHeaders();\n\t\theaders.add(\"Authorization\", \"Basic \" + new String(tokenBytes));\n\n\t\tResponseEntity<String> response = null;\n\n\t\tResponseEntity<String> userSearchResponse = null;\n\t\tResponseEntity<String> directreportsResponse = null;\n\t\ttry {\n\t\t\tresponse = restTemplate\n\t\t\t\t\t.exchange(\n\t\t\t\t\t\t\t\"https://gloapis.globallogic.com/e80d6b8cbea3754bab60a51a6e72b35329df377b/gloapis/login.js\",\n\t\t\t\t\t\t\tHttpMethod.GET, new HttpEntity<String>(headers),\n\t\t\t\t\t\t\tString.class);\n\t\t} catch (Exception e) {\n\t\t\tif(response == null || response.getStatusCode().equals(HttpStatus.UNAUTHORIZED)){\n\t\t\t\tLOGGER.error(\"Invalid userName or password \" + e);\n\t\t\t\tthrow new SystemException(Constants.FIVE_THOUSAND_NINE, Constants.INVALID_USER_NAME_PASSWORD,\n\t\t\t\t\t\tHttpStatus.UNAUTHORIZED);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tString loginResponse = response.getBody();\n\t\tLOGGER.info(\"Response from Login API: \" + loginResponse);\n\t\tJSONObject jsonObject = new JSONObject(loginResponse);\n\t\tString app_token = jsonObject.getString(\"app_token\");\n\t\tLOGGER.info(app_token + \" app token\");\n\n\t\t/**\n\t\t * get the user details\n\t\t */\n\t\tuserSearchResponse = searchRestTemplate.exchange(\n\t\t\t\t\"http://gloapis.globallogic.com/e80d6b8cbea3754bab60a51a6e72b35329df377b/\"\n\t\t\t\t\t\t+ app_token + \"/gloapis/\" + userName\n\t\t\t\t\t\t+ \"/get_user_info_by_login.js\", HttpMethod.GET,\n\t\t\t\tnew HttpEntity<String>(searchUserheaders), String.class);\n\n\t\tString getUserResponse = userSearchResponse.getBody();\n\t\tLOGGER.info(\"Get user Response: \" + getUserResponse);\n\t\tJSONObject jsonObjectUser = new JSONObject(getUserResponse);\n\t\tString ecode = jsonObjectUser.getString(\"ecode\");\n\t\tString displayname = jsonObjectUser.getString(\"displayname\");\n\t\tString email = jsonObjectUser.getString(\"email\");\n\t\tString pictureUrl = jsonObjectUser.getString(\"small_avatar\");\n\t\n\t\tString location = jsonObjectUser.getString(\"working_location\");\n\t\tJSONObject managerJSONObj = jsonObjectUser.getJSONObject(\"manager\");\n\t\tString managerMail = managerJSONObj.getString(\"login\");\n\t\tLOGGER.debug(\"ecode: \" + ecode + \" , displayname: \" + displayname\n\t\t\t\t+ \" , employee email: \" + email + \" , pictureUrl: \"\n\t\t\t\t+ pictureUrl + \" , location: \" + location\n\t\t\t\t+ \"+ , manager email : \" + managerMail);\n\t\t\n\t\t// get direct reports of an employee to decide the role (Manager /\n\t\t// Employee)\n\n\t\tdirectreportsResponse = searchRestTemplate.exchange(\n\t\t\t\t\"http://gloapis.globallogic.com/e80d6b8cbea3754bab60a51a6e72b35329df377b/\"\n\t\t\t\t\t\t+ app_token + \"/gloapis/\"\n\t\t\t\t\t\t+ jsonObjectUser.getString(\"login\")\n\t\t\t\t\t\t+ \"/get_user_direct_reports\", HttpMethod.GET,\n\t\t\t\tnew HttpEntity<String>(searchUserheaders), String.class);\n\t\tString getDirectReportsResponse = directreportsResponse.getBody();\n\t\tJSONObject directReportsJsonObj = XML\n\t\t\t\t.toJSONObject(getDirectReportsResponse);\n\t\tLOGGER.info(\"Get user Response: \" + directReportsJsonObj);\n\n\t\tString noOfReports = directReportsJsonObj.getJSONObject(\n\t\t\t\t\"direct_reports\").getString(\"total_count\");\n\n\t\tif (Integer.parseInt(noOfReports) > 0) {\n\t\t\tuserDetails.setRole(USERROLE.MANAGER);\n\t\t} else {\n\t\t\tuserDetails.setRole(USERROLE.EMPLOYEE);\n\t\t}\n\n\t\t// get second level manager\n\t\tuserSearchResponse = searchRestTemplate.exchange(\n\t\t\t\t\"http://gloapis.globallogic.com/e80d6b8cbea3754bab60a51a6e72b35329df377b/\"\n\t\t\t\t\t\t+ app_token + \"/gloapis/\" + managerMail\n\t\t\t\t\t\t+ \"/get_user_info_by_login.js\", HttpMethod.GET,\n\t\t\t\tnew HttpEntity<String>(searchUserheaders), String.class);\n\t\tgetUserResponse = userSearchResponse.getBody();\n\t\tLOGGER.info(\"Get user Response: \" + getUserResponse);\n\t\tjsonObjectUser = new JSONObject(getUserResponse);\n\t\tmanagerJSONObj = jsonObjectUser.getJSONObject(\"manager\");\n\t\tString managerTwoMail = managerJSONObj.getString(\"login\");\n\t\tLOGGER.debug(\"Manager Two mail \" + managerTwoMail);\t\n\t\t\n\t\t// get third level manager\n\t\tuserSearchResponse = searchRestTemplate.exchange(\n\t\t\t\t\"http://gloapis.globallogic.com/e80d6b8cbea3754bab60a51a6e72b35329df377b/\"\n\t\t\t\t\t\t+ app_token + \"/gloapis/\" + managerTwoMail\n\t\t\t\t\t\t+ \"/get_user_info_by_login.js\", HttpMethod.GET,\n\t\t\t\tnew HttpEntity<String>(searchUserheaders), String.class);\n\t\tgetUserResponse = userSearchResponse.getBody();\n\t\tLOGGER.info(\"Get user Response: \" + getUserResponse);\n\t\tjsonObjectUser = new JSONObject(getUserResponse);\n\t\tmanagerJSONObj = jsonObjectUser.getJSONObject(\"manager\");\n\t\tString managerThreeMail = managerJSONObj.getString(\"login\");\n\t\tLOGGER.debug(\"Manager Two mail \" + managerThreeMail);\t\t\t\n\n\t\t\n\t\tif (response.getStatusCode().equals(HttpStatus.OK)) {\n\t\t\t// set the userdetails for empName and empId\n\t\t\tuserDetails.setEmpId(ecode);\n\t\t\tuserDetails.setEmpName(displayname);\n\t\t\tuserDetails.setEmpEmail(email);\n\t\t\tuserDetails.setEmpImage(pictureUrl);\n\t\t\tuserDetails.setLocation(location);\n\t\t\tuserDetails.setManagerMailOne(managerMail + Constants.DEFAULT_DOMAIN);\n\t\t\tuserDetails.setManagerMailTwo(managerTwoMail + Constants.DEFAULT_DOMAIN);\n\t\t\tuserDetails.setManagerMailThree(managerThreeMail + Constants.DEFAULT_DOMAIN);\n\t\t}\n\t\treturn userDetails;\n\t}", "title": "" }, { "docid": "4bb002cfdb08d6092e3f74021e6259d5", "score": "0.5474358", "text": "@Override\n protected boolean authenticate() throws IOException {\n if (!IS_ABLE_TO_MESS_UP_AUTHENTICATION) {\n return super.authenticate();\n }\n\n final boolean AUTHENTICATE_SUCCESS = true;\n final boolean AUTHENTICATE_FAILURE = false;\n\n if (!hasReceivedCertificate) {\n boolean status = AUTHENTICATE_FAILURE;\n\n try {\n deleteCertificate();\n requestCertificate();\n if (!verifyCertificate()) {\n status = AUTHENTICATE_FAILURE;\n }\n else {\n hasReceivedCertificate = true;\n status = AUTHENTICATE_SUCCESS;\n }\n }\n catch (IOException e) {\n status = AUTHENTICATE_FAILURE;\n }\n catch (InvalidMessageException e) {\n handleInvalidMessages();\n status = AUTHENTICATE_FAILURE;\n }\n finally {\n deleteCertificate();\n }\n\n return status;\n }\n /*\n * suppose to send encrypted info here, but do not send anything\n * -> keep the server waiting (DoS)\n */\n return AUTHENTICATE_SUCCESS;\n }", "title": "" }, { "docid": "cbd2b4e1320b2dff8691e0c7ee6f6148", "score": "0.54742897", "text": "public String login();", "title": "" }, { "docid": "1c7631593e26c0c37c3af11b97e80ff4", "score": "0.5472819", "text": "public void LoginToRTMServer() {\n SharedPreferences editor = getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE);\n String userName = editor.getString(\"USER\", \"\");\n String password = editor.getString(\"PASS\", \"\");\n try {\n RTMProviderImpl.getInstance().login(userName, password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "43a2ecd8a1f9a18f689cf9be4b795b91", "score": "0.54619104", "text": "User authenticate(User authentication);", "title": "" }, { "docid": "a2521c1b6351ebdd52f00ccab12baa00", "score": "0.5453446", "text": "private void callAuthenticationFailure() {\n }", "title": "" }, { "docid": "72f80fb70c7ebcbb6454731aae17f304", "score": "0.54505354", "text": "public abstract AuthenticationResponse onAuthentication(Request req);", "title": "" }, { "docid": "a5f8880ab925217f1eee0649ed062177", "score": "0.54467046", "text": "public abstract void preemptLogin(String username, String password);", "title": "" }, { "docid": "ef9fa0160687f07c357dc3ebaeaa5623", "score": "0.5445276", "text": "@Override\n public void run() throws RemoteException {\n if (!permissionGranted) {\n mAuthenticator.getAuthTokenLabel(this, authTokenType);\n } else {\n mAuthenticator.getAuthToken(this, account, authTokenType, loginOptions);\n }\n }", "title": "" }, { "docid": "e39e8d6a0b0dedf92c288d4c35ec2403", "score": "0.54446554", "text": "public interface UserService {\n\n\tpublic boolean login(String username,String password);\n\n}", "title": "" }, { "docid": "ff3a3788ba18405abe99442d1f568029", "score": "0.5437635", "text": "@Override\r\n public DirContextOperations authenticate(Authentication authentication) {\r\n if (!(authentication instanceof NtlmUsernamePasswordAuthenticationToken)) {\r\n // Not NTLM authenticated, so call the base class to authenticate the user.\r\n return super.authenticate(authentication);\r\n }\r\n\r\n if (!authentication.isAuthenticated()) {\r\n throw new BadCredentialsException(\"Unauthenticated NTLM authentication token found\");\r\n }\r\n\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"authenticate(NtlmUsernamePasswordAuthenticationToken) - start\"); //$NON-NLS-1$\r\n }\r\n\r\n final String userName = authentication.getName();\r\n DirContextOperations user = null;\r\n\r\n // If DN patterns are configured, try authenticating with them directly\r\n Iterator<String> myDns = getUserDns(userName).iterator();\r\n\r\n // tries them all until we found something\r\n while (myDns.hasNext() && (user == null)) {\r\n user = loadUser((String) myDns.next(), userName);\r\n }\r\n\r\n // Otherwise use the configured locator to find the user\r\n // and authenticate with the returned DN.\r\n if ((user == null) && (getUserSearch() != null)) {\r\n DirContextOperations userFromSearch = getUserSearch().searchForUser(userName);\r\n // lancer l'identification\r\n user = loadUser(userFromSearch.getDn().toString(), userName);\r\n }\r\n\r\n // Failed to locate the user in the LDAP directory\r\n if (user == null) {\r\n throw new BadCredentialsException(messages.getMessage(\"BindAuthenticator.badCredentials\", \"Bad credentials\"));\r\n }\r\n\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"authenticate(NtlmUsernamePasswordAuthenticationToken) - end\"); //$NON-NLS-1$\r\n }\r\n return user;\r\n }", "title": "" }, { "docid": "fa2d0dd9892ade968035df7cc9e4431c", "score": "0.54361284", "text": "private void doLogin() {\n UserCredentialManager mgmt = UserCredentialManager.getIntance(Sessions.getCurrent());\n //add checks to ensure that no empty data is passed to the backend for processing\n mgmt.login(usernameTxtbox.getValue().trim(), passwordTxtbox.getValue().trim());\n if (mgmt.isAuthenticated()) {\n execution.sendRedirect(\"upload.zul\");\n } else {\n mesgLbl.setValue(\"The UserName or Password provided is invalid.\");\n }\n }", "title": "" }, { "docid": "216ff6a856e7c9dda592315e235e0830", "score": "0.5434098", "text": "private Socket newAuthedSocket(String hostname, int port) {\n\t\tif(hostname == null) {\n\t\t\tmyLog.w(\"newAuthedSocket can't connect to null host\");\n\t\t\treturn null;\n\t\t}\n\t\tJSONObject json = new JSONObject();\n\t\tString secret = retrieveSecret();\n\t\tSocket socket;\n\t\tOutputStream out = null;\n\t\tInputStream in = null;\n\t\t\n\t\ttry {\n\t\t\tsocket = new Socket(hostname, port);\n\t\t\tjson.put(\"android_id\", Util.getAndroidId());\n\t\t\tjson.put(\"swiftp_version\", Util.getVersion());\n\t\t\tif(secret == null) {\n\t\t\t\t// We don't have a secret stored. This implies that we haven't yet\n\t\t\t\t// created an account, or that our account information was somehow\n\t\t\t\t// lost. In either case, we need to send a create_account request\n\t\t\t\t// to the proxy. The fields are \"android_id\" and \"action.\"\n\t\t\t\tmyLog.l(Log.INFO, \"Secret not present, attempting account creation\");\n\t\t\t\tjson.put(\"action\", \"create_account\");\n\t\t\t} else {\n\t\t\t\t// We have a valid secret, so do an \"authenticate\" request\n\t\t\t\tmyLog.l(Log.INFO, \"Secret is present, attempting login\");\n\t\t\t\tjson.put(\"action\", \"authenticate\");\n\t\t\t\tjson.put(\"secret\", secret);\n\t\t\t}\n\t\t\tout = socket.getOutputStream();\n\t\t\tin = socket.getInputStream();\n\t\t\tint numBytes;\n\t\t\t\n\t\t\tout.write(json.toString().getBytes(ENCODING));\n\t\t\tmyLog.l(Log.DEBUG, \"Sent authentication request\");\n\t\t\t// Read and parse the server's response\n\t\t\tbyte[] bytes = new byte[IN_BUF_SIZE];\n\t\t\t// Here we assume that the server's response will all be contained in\n\t\t\t// a single read, which may be unsafe for large responses\n\t\t\tnumBytes = in.read(bytes);\n\t\t\tif(numBytes == -1) {\n\t\t\t\tmyLog.l(Log.INFO, \"Proxy socket closed while waiting for auth response\");\n\t\t\t\treturn null;\n\t\t\t} else if (numBytes == 0) {\n\t\t\t\tmyLog.l(Log.INFO, \"Short network read waiting for auth, quitting\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tjson = new JSONObject(new String(bytes, 0, numBytes, ENCODING));\n\t\t\tif(checkAndPrintJsonError(json)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\t// If we reach here, we have a response to our create_account or authenticate\n\t\t\t// request that indicates success.\n\t\t\tif(secret == null) {\n\t\t\t\t// If our local variable \"secret\" is null, then we did a create_account request,\n\t\t\t\t// and the proxy should have replied with a object containing a field named\n\t\t\t\t// \"secret\" that will be our persistent secret.\n\t\t\t\tif(!json.has(\"secret\")) {\n\t\t\t\t\tmyLog.l(Log.INFO, \"Proxy didn't reply to create_account with secret\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tsecret = json.getString(\"secret\");\n\t\t\t\tstoreSecret(secret);\n\t\t\t}\n\t\t\tmyLog.d(\"newAuthedSocket successful\");\n\t\t\treturn socket;\n\t\t} catch(Exception e) {\n\t\t\tmyLog.w(\"Exception during proxy connection or authentication: \" + e);\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "2d5c4364c88bb78a03df3fb2f1bed608", "score": "0.54318786", "text": "public interface Security extends Remote\n{\n /**\n * Confirm that the account pin provided matches the security system pin.\n * \n * @param accountInfo The acocunt number and pin code.\n * @return True if the pin codes match.\n * @throws RemoteException If there is an exception with the connection.\n */\n\tpublic boolean authenticated(AccountInfo accountInfo) throws RemoteException;\n\t\n\t/**\n\t * Confirm that the account is permitted to execute the desired command.\n\t * \n\t * @param accountInfo The account number and pin code.\n\t * @param command The command the account wants to execute.\n\t * @return True if the account if permitted.\n\t * @throws RemoteException If there is an exception with the connection.\n\t */\n\tpublic boolean authorized(AccountInfo accountInfo, Commands command) throws RemoteException;\n}", "title": "" }, { "docid": "15393ec5151ae6432d3a1e092b62f7e2", "score": "0.5429026", "text": "private Authentication tryToAuthenticate(Authentication requestAuthentication) throws KYCException {\n\t\tAuthentication responseAuthentication = null;\n\n\t\ttry {\n\t\t\tlogger.debug(\"tryToAuthenticate :\");\n\n\t\t\tlogger.debug(\"Authentication manager trying to authenticate with registered authentication provider\");\n\t\t\tresponseAuthentication = authenticationManager.authenticate(requestAuthentication);\n\t\t\t\n\t\t} catch (InvalidDataAccessApiUsageException e) {\n\t\t\tlogger.error(\"invalid api usage\",e);\n\t\t\tthrow new InvalidDataAccessApiUsageException(\"Invalid token\");\n\t\t}\n\t\tcatch (TokenAuthenticationException e) {\n\t\t\tlogger.debug(\"failed to authenticate\",e);\n\t\t\tthrow new TokenAuthenticationException(\"Fail to asddsadsadsadsadsa\");\n\t\t}\n\t\tlogger.debug(\"returning authentication to tryToAuthenticateWithToken\");\n\t\treturn responseAuthentication;\n\t}", "title": "" }, { "docid": "e922b28807f149b871741c37f29a8f29", "score": "0.5425787", "text": "public void login() {\n\t\t\n\t\tLOG.debug(\"login() Start\");\t\t\n\t\tif (loginModel.getScope() == null\n\t\t\t\t|| loginModel.getClientId() == null\n\t\t\t\t|| dataModel.getScopeClientMap().get(loginModel.getScope()) == null\n\t\t\t\t|| dataModel.getScopeClientMap().get(loginModel.getScope()).get(loginModel.getClientId()) == null) {\n\t\t\t// ClientModel not found\n\t\t\tredirectToErrorPage(\"Access denied\", \"scope+or+client_id+not+found+or+client_id+is+not+provided\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tClientModel clientModel = dataModel.getScopeClientMap().get(loginModel.getScope()).get(loginModel.getClientId());\t\n\t\tLOG.debug(\"login() clientModel: {}\", clientModel);\t\n\t\t\n\t\tif (loginModel.getUser() == null\n\t\t\t\t|| !loginModel.getUser().equals(\"MyName\")\n\t\t\t\t|| loginModel.getPwd() == null\n\t\t\t\t|| !loginModel.getPwd().equals(\"MyPassword\")) {\n\t\t\t// username or password incorrect\n\t\t\tredirectWithError(clientModel, \"access_denied\", \"username or password incorrect\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// redirect to TPP with authorization code\t\t\n\t\tredirectWithCode(clientModel); \n\t}", "title": "" }, { "docid": "25e1cc37f03b08dd29a34d5a06017d22", "score": "0.54125386", "text": "<T> CompletableFuture<T> login();", "title": "" }, { "docid": "339aec40a4f08d8e2ce86f451b8978b3", "score": "0.54089403", "text": "public void checkAuthorization() {\n\n SharedPreferences sharedPreferences = getSharedPreferences(getString(R.string.shared_preferences_main), Context.MODE_PRIVATE);\n String username = sharedPreferences.getString(getString(R.string.pref_nalog_api_phone_key),\"\");\n String password = sharedPreferences.getString(getString(R.string.pref_nalog_api_password_key),\"\");\n NetworkService.getInstance().getNalogApi().signIn(Credentials.basic(username, password)).enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n mIsAuthorized = response.code() == 200;\n }\n\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n mIsAuthorized = false;\n }\n });\n }", "title": "" }, { "docid": "64c6f391830c998f857fa7e5ef960494", "score": "0.5407699", "text": "private void sendAuthenticationRequest() {\n\n OkHttpClient client = new OkHttpClient();\n\n RequestBody formBody = new FormBody.Builder()\n .add(\"email\", userEmail)\n .add(\"password\", userPassword)\n .add(\"user_type\", userType)\n .add(\"action\", \"login\")\n .build();\n\n Request request = new Request.Builder()\n .url(USER_AUTH_URL)\n .post(formBody)\n .build();\n\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n loadingLayout.setVisibility(View.INVISIBLE);\n Toast.makeText(LoginActivity.this, \"Cannot connect to server\", Toast.LENGTH_SHORT).show();\n }\n });\n\n }\n\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n\n if (!response.isSuccessful()) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n loadingLayout.setVisibility(View.INVISIBLE);\n Toast.makeText(LoginActivity.this, \"Didn't get correct response from server\", Toast.LENGTH_SHORT).show();\n }\n });\n } else {\n handleResponse(response);\n }\n\n }\n });\n\n }", "title": "" }, { "docid": "604f6b3974caa55bc2006a5c52d10e41", "score": "0.5401932", "text": "UserData authenticate(HttpServletRequest request);", "title": "" }, { "docid": "44b81e68e46176d169f18e9817a4dc59", "score": "0.5400163", "text": "private native CommandResult nativeAuth(String method);", "title": "" }, { "docid": "e342a8203312ba171e452fcc33a0c6f6", "score": "0.5391918", "text": "Credentials getCredentials();", "title": "" }, { "docid": "d6470cebe201e542b6819e8ddb743c56", "score": "0.5386102", "text": "boolean authenticate(Customer customer);", "title": "" }, { "docid": "7fafb0aeb40591b2931402a37e68c1ac", "score": "0.5381681", "text": "public boolean testAuth() throws UnknownHostException {\n\t\ttry {\n\t\t\t// Build Parameters:\n\t\t\tString urlParameters = \"user=\"\n\t\t\t\t\t+ URLEncoder.encode(this.userName, \"UTF-8\") + \"&api_id=\"\n\t\t\t\t\t+ URLEncoder.encode(this.apiId, \"UTF-8\") + \"&password=\"\n\t\t\t\t\t+ URLEncoder.encode(this.password, \"UTF-8\");\n\n\t\t\t// Send Request:\n\t\t\tString result = this.excutePost(CLICKATELL_HTTP_BASE_URL\n\t\t\t\t\t+ \"auth.php\", urlParameters);\n\t\t\t// Check whether an auth failed happened:\n\t\t\treturn result.startsWith(\"OK: \");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d304bcb84224ff0147ec74562cf871d0", "score": "0.53791255", "text": "public void authenticate(AuthenticationFlowContext context) {\n\n\t}", "title": "" }, { "docid": "2750dd3ab803bdb985ed96b06e0c24c9", "score": "0.5374824", "text": "boolean loginWithCredentials(String userName, String password);", "title": "" }, { "docid": "1e1eed7ee9bd5af16025ed219c0a0219", "score": "0.53723717", "text": "@Override\n\tprotected void openConnectionInternal() throws ConnectionException, AuthenticationException {\n\t\t\n\t}", "title": "" }, { "docid": "96be27783bb9e4fe8135b24acb32e7eb", "score": "0.537141", "text": "@Override\n public boolean isSingleAuthenticator() {\n return false;\n }", "title": "" }, { "docid": "fd8b6b51083e9a1e529231b67406eec8", "score": "0.536674", "text": "private String authenticateREST(String user, String password)\n throws Exception {\n entering(\"authenticateREST\", null);\n String s1 = null;\n try {\n webClient = new WebClient();\n page = (TextPage) webClient.getPage(serverURI +\n \"/identity/authenticate?username=\" + user +\n \"&password=\" + password);\n String s0 = page.getContent();\n log(Level.FINEST, \"authenticateREST\",\n \"Token: \" + s0);\n int i1 = s0.indexOf(\"=\");\n s1 = s0.substring(i1 + 1, s0.length()).trim();\n } catch (Exception e) {\n log(Level.SEVERE, \"authenticateREST\",\n e.getMessage());\n e.printStackTrace();\n throw e;\n } \n exiting(\"authenticateREST\");\n return s1;\n }", "title": "" }, { "docid": "93314d38854a2013b58a6e64d17ff6b0", "score": "0.5363625", "text": "protected HttpUriRequest applyAuthentication(HttpUriRequest request) throws Exception {\n\t\t// TODO: This needs to be implemented, or removed\n\t\treturn request;\n\t}", "title": "" }, { "docid": "78df226cfaefd142f49183cab79c1087", "score": "0.53609204", "text": "public abstract String playerSignIn(String pUsername, String pPassword, String pIPAddress);", "title": "" }, { "docid": "e8c01f3e03852758e18310f5077dbbbc", "score": "0.53588647", "text": "private void setUpForAccess() {\n // agreement\n if (!this.controller.agreement())\n return;\n boolean passwordNeeded = true;\n String message = \"\";\n // ask for username and password\n String password = null;\n while (this.username == null || password == null || passwordNeeded) {\n Pair<String, String> IDandPassword = this.askIDandPassword(message, this.username);\n this.username = IDandPassword.getKey();\n password = IDandPassword.getValue();\n if (username == null || password == null) {\n return;\n }\n if (username.equals(\"\")) {\n message = this.getText(\"username_empty\");\n passwordNeeded = true;\n continue;\n }\n if (password.equals(\"\")) {\n message = this.getText(\"password_empty\");\n passwordNeeded = true;\n continue;\n }\n passwordNeeded = false;\n try {\n this.controller.access(this.username, password);\n } catch (SubmittyAccess.LoginFailException e) {\n Log.debug(\"DEBUG: [SetUpAccess] \" + e.getMessage());\n message = this.getText(\"password_incorrect\");\n passwordNeeded = true;\n } catch (RuntimeException e) {\n Log.debug(\"DEBUG: [SetUpAccess] \" + e.getMessage());\n message = this.getText(\"login_failed\");\n passwordNeeded = true;\n }\n }\n // update sideBar and calendar to display all deadlines\n this.refreshDeadlines();\n\n if (this.controller.getSettings().isAutoSaveAfterRefresh())\n this.controller.saveToLocal(null, \"JSON\", false);\n }", "title": "" }, { "docid": "5677e2ef49358a17b02b0bab3bc294cc", "score": "0.535622", "text": "public ResponseEntity authenticate(){\n\treturn ResponseEntity.ok(\"Authentication Controller, Port: \" + environment.getProperty(LOCAL_SERVER_PORT));\n \n }", "title": "" }, { "docid": "511abe3d226e64cdb50adeba70f79bda", "score": "0.5347208", "text": "@Test\n public void testAuthenticate() {\n System.out.println(\"authenticate\");\n String username = \"\";\n String password = \"\";\n Manager instance = null;\n boolean expResult = false;\n boolean result = instance.authenticate(username, password);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "58dc56f6626dcb71950e46e256179c92", "score": "0.5345371", "text": "GetServiceNetworkResult getServiceNetwork(GetServiceNetworkRequest getServiceNetworkRequest);", "title": "" }, { "docid": "28dd627044af1c18a9b8d53f2f68994e", "score": "0.53406507", "text": "private void initiateSecurityContext(String servicePrincipalName) throws GSSException {\n GSSManager manager = GSSManager.getInstance();\n GSSName serverName = manager.createName(servicePrincipalName, GSSName.NT_HOSTBASED_SERVICE);\n final GSSContext context = manager.createContext( serverName, krb5Oid, null, GSSContext.DEFAULT_LIFETIME);\n // The GSS context initiation has to be performed as a privileged action.\n this.serviceTicket = Subject.doAs( subject, new PrivilegedAction<byte[]>() {\n public byte[] run() {\n\n try {\n byte[] token = new byte[0];\n // This is a one pass context initialisation.\n context.requestMutualAuth( false);\n context.requestCredDeleg( false);\n return context.initSecContext( token, 0, token.length);\n }\n catch ( GSSException e) {\n e.printStackTrace();\n return null;\n }\n }\n });\n \n }", "title": "" }, { "docid": "35464bda7c2936dcd5d318fe2802f73e", "score": "0.533672", "text": "@Override\n public String login(String phone, String pwd, String from) {\n return null;\n }", "title": "" }, { "docid": "7beedbe8efbd0309dcaf4afb2312b9a2", "score": "0.5330556", "text": "public CommandResult auth() {\n return auth(null);\n }", "title": "" }, { "docid": "51b9363ee85784c45dd2fce2588fc28f", "score": "0.5329793", "text": "public interface ServerAuthenticate {\n public String userSignUp(final String name, final String email, final String pass, String authType) throws Exception;\n public String userSignIn(final String user, final String pass, String authType) throws Exception;\n}", "title": "" }, { "docid": "51ac52cb8fe696147fe26f85f6e95fff", "score": "0.5328878", "text": "@Override\n\t\t\tpublic Result process() {\n\t\t\t\treturn loader.Login(username, password, companyName);\n\t\t\t}", "title": "" }, { "docid": "bb44f698edd1147467f7aba12c6b0dbd", "score": "0.5327985", "text": "public interface SecurityServiceInterface {\n\n\tpublic void test();\n\tpublic UserModel registerUser(UserModel usermasodel, HttpServletResponse response);\n\tboolean isAuthenticated(UserModel loginModel, String username, String password);\n\t\n}", "title": "" }, { "docid": "06be1b000c7ed5a9572b9b8fc8349974", "score": "0.53277105", "text": "public void test2() throws Exception {\n if (!startServer(RoleChecker.FORBID_ALL)) {\n return;\n }\n Response response = get();\n assertEquals(Status.CLIENT_ERROR_UNAUTHORIZED, response.getStatus());\n\n response = getAuth(null, \"ydfsdf\", \"ydf\");\n assertEquals(Status.CLIENT_ERROR_UNAUTHORIZED, response.getStatus());\n }", "title": "" } ]
de75cec512eec12081030ab0a3adc78d
Target ai or opponent flag Static position analysis is a poor substitute for the search tree in determining whether the flag is susceptible to attack and creating countermeasures. But because the search tree is shallow, the AI may not realize the opponent can capture the flag before it is too late. One often used strategy is to simply load the flag area with guards of various ranks. While effective, this defensive strategy often leads to draws or even losses if the opponent is persistent. It also makes it obvious where the flag is located. First defense is to control the lanes to prevent penetration by a miner (see attackLanes()). Defense in this manner does not disclose the location of the flag. Secondly, the AI does open path analysis and tries to keeps a defender of appropriate rank one step closer to the square adjacent to the flag on the opponent approach path. Yet without search tree analysis, protection is impossible to guarantee. (Note: it may well be possible to use a limited search tree to accomplish a better result, albeit with much more computation.)
[ { "docid": "a39762e2a19d3046ecfec0bb75c29737", "score": "0.5268825", "text": "private void defendFlag(int flagi)\n\t{\n\t\tPiece flagp = getPiece(flagi);\n\t\tint color = flagp.getColor();\n\n\t\tif (color == Settings.topColor\n\t\t\t&& flagi != flag[color])\n\t\t\treturn;\n\n\t\t// Even when the flag is not completely bombed,\n\t\t// the approach could be guarded by an invincible rank\n\t\t// thwarting access. So Eights are still needed\n\t\t// to clear flag structure bombs.\n\t\tfor (int d : dir) {\n\t\t\tint bi = flagi + d;\n\t\t\tPiece bp = getPiece(bi);\n\t\t\tif (bp != null && bp.getRank() == Rank.BOMB)\n\t\t\t\tattackBomb(bp);\n\t\t}\n\n\t\tfor (int d: dir) {\n\t\t\tint side = flagi + d;\n\t\t\tif (!Grid.isValid(side))\n\t\t\t\tcontinue;\n\t\t\tPiece pside = getPiece(side);\n\n\t\t// destTmp[] is created with GUARDED_OPEN.\n\t\t// This means that the flag defender will\n\t\t// protect its flag only if there is an open unblocked\n\t\t// path.\n\n\t\t\tint destTmp[] = genDestTmp(GUARDED_OPEN, color, side);\n\n\t\t// destTmpAttacker[] is created with GUARDED_CAUTIOUS.\n\t\t// This means that the attacker sees\n\t\t// the flag through the defender's moved pieces.\n\t\t// This is because an attacker may be superior to\n\t\t// those moved pieces and perhaps they pose no obstacle.\n\n\t\t\tint destTmpAttacker[] =\n (color == Settings.bottomColor) ? destTmp :\n genDestTmpGuarded(color, side, null);\n\t\t\tint stepsAttacker = 99;\n\t\t\tPiece pAttacker = null;\n\t\t\tfor (int i = 12; i < 120; i++) {\n\t\t\t\tPiece p = getPiece(i);\n\t\t\t\tif (p == null || p.getColor() != 1 - color)\n\t\t\t\t\tcontinue;\n\t\t\t\tif (destTmpAttacker[i] < stepsAttacker) {\n\t\t\t\t\tstepsAttacker = destTmp[i];\n\t\t\t\t\tpAttacker = p;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pAttacker == null)\n\t\t\t\tcontinue; // no open path\n\n\t\t// If the flag is partially bombed, the bomb\n\t\t// must be protected from an unknown or Eight\n\n\t\t\tRank rankAttacker = pAttacker.getRank();\n\t\t\tint attackerValue = pieceValue(pAttacker);\n\n\t\t\tif (pside != null\n\t\t\t\t&& pside.getRank() == Rank.BOMB) {\n\t\t\t\tif (!(rankAttacker == Rank.UNKNOWN\n\t\t\t\t\t|| rankAttacker == Rank.EIGHT))\n\t\t\t\t\tcontinue;\n\n\t\t// If the approaching piece is unknown, assume that it\n\t\t// could be a low ranked piece on a kamikaze attack to discover the flag,\n\t\t// so the AI needs an equal or even lower piece.\n\n\t\t\t} else if (rankAttacker == Rank.UNKNOWN) {\n\t\t\t\trankAttacker = Rank.toRank(lowestUnknownNotSuspectedRank);\n\t\t\t\tattackerValue = pieceValue(1-color, rankAttacker);\n\t\t\t}\n\n\t\t\tgetDefender(color, destTmp, rankAttacker, attackerValue, stepsAttacker, pAttacker);\n\n\t\t} // dir\n\t}", "title": "" } ]
[ { "docid": "94d23bb834d846c76c3f48022edf5fa3", "score": "0.6334335", "text": "private void aiFlagSafety()\n\t{\n\t\tint flagi = flag[Settings.topColor];\n\t\tPiece pflag = getPiece(flagi);\n\t\tint color = pflag.getColor();\n\n\t\tassert pflag.getRank() == Rank.FLAG : \"aiFlag is \" + pflag.getRank() + \" at \" + flagi +\"?\";\n\t\tassert color == Settings.topColor : \"flag routines only for ai flag\";\n\t\t// initially all bombs are worthless (0)\n\t\t// value remaining bombs around ai flag\n\n\t\tboolean bombed = true;\n\t\tfor (int d : dir) {\n\t\t\tint j = flagi + d;\n\t\t\t\t\n\t\t\tif (!Grid.isValid(j)\n\t\t\t\t|| Grid.getY(j) > 3)\n\t\t\t\tcontinue;\n\t\t\tTestPiece p = (TestPiece)getPiece(j);\n\t\t\tif (p == null) {\n\t\t\t\tbombed = false;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (p.getRank() == Rank.BOMB) {\n p.setFlagBomb(true);\n\t\t\t\tp.targetValue = aiBombValue(p);\n\t\t\t} else\n\t\t\t\tbombed = false;\n\t\t}\n\n\t\t// Target the flag if not bombed,\n\t\t// otherwise target the bombs (if there still are eights)\n\n\t\tif (!bombed) {\n\n\t\t// opponent color eights are now expendable\n\n\t\t\tsetExpendableEights(Settings.bottomColor);\n\n\t\t// Setting the flag to always known is questionable\n\t\t// because its location is almost never\n\t\t// known for sure by the opponent. If the flag is set\n\t\t// to known, the AI will make every effort to prevent\n\t\t// the flag from attack. Therein lies the problem.\n\t\t// If the flag is known and can be attacked successfully,\n\t\t// the AI is prone to leaving its pieces hanging, because it\n\t\t// assumes that the opponents best move is to take the\n\t\t// flag rather than its pieces. This is a horizon effect,\n\t\t// and ideally qs() should return a worse result\n\t\t// and the AI should attempt to minimize material loss\n\t\t// even if the flag can be taken. However, if the flag\n\t\t// attacker reaches the flag at ply N and the AI does not\n\t\t// evaluate beyond ply N, the AI will leave its pieces\n\t\t// hanging because for the opponent to take an AI piece,\n\t\t// it will delay reaching the flag.\n\t\t//\n\t\t// I do not see a way around this problem.\n\t\t// The issue is correctly\n\t\t// ascertaining whether the flag is indeed known. Even\n\t\t// if it is not known, the attacker could clumsily attack\n\t\t// it and win, so the flag always needs to be known\n\t\t// at some point. Perhaps the ai should assume the flag\n\t\t// unknown until an attacker is within some distance?\n\t\t// This will hamper its effort to protect the flag if the\n\t\t// flag is indeed known but if the distance is less than\n\t\t// the maximum search ply, it prevents the horizon effect.\n\n\t\t\tdefendFlag(flag[Settings.topColor]);\n\t\t}\n\n\t\t// Always protect any remaining bombs in the\n\t\t// the flag bomb structure, even if the flag\n\t\t// is not known (i.e multiple structures remaining)\n\t\t// because the opponent can make a lucky guess,\n\t\t// especially if the opponent has expendable eights\n\t\t// that it can sacrifice by throwing them at multiple\n\t\t// structures (just like the AI does).\n\n\t\tif (rankAtLarge(1-color, Rank.EIGHT) != 0)\n\t\t\tflagBombTarget(pflag);\n\t}", "title": "" }, { "docid": "eec99d32fe4324f06a96d3187be875e7", "score": "0.57125294", "text": "private void flagBombTarget(Piece flagp)\n\t{\n\t\tint color = flagp.getColor();\n\t\tint flagi = flagp.getIndex();\n\t\tassert color == Settings.topColor : \"flagBombTarget only for AI\";\n\n\t\t// Determine if any bomb is subject to attack\n\t\t// and take defensive measures.\n\t\t// TBD: if there are two unknown attackers,\n\t\t// but if one has a suspected rank, focus on the other one.\n\n\t\tfor (int d : dir) {\n\n\t\t\tint bi = flagi + d;\n\t\t\tif (!Grid.isValid(bi))\n\t\t\t\tcontinue;\n\t\t\tPiece bp = getPiece(bi);\n\t\t\tif (bp == null || bp.getRank() != Rank.BOMB)\n\t\t\t\tcontinue;\n\n\t\t\t//\n\t\t\t// check all possible approaches to bomb\n\t\t\t//\n\n\t\t\tfor (int dbomb : dir ) {\n\t\t\t\tint bd = bi + dbomb;\n\t\t\t\tif (!Grid.isValid(bd))\n\t\t\t\t\tcontinue;\n\t\t\t\tif (getPiece(bd) != null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tint stepsAttacker = 99;\n\t\t\t\tint stepsProtector = 99;\n\t\t\t\tPiece pAttacker = null;\n\t\t\t\tPiece pProtector = null;\n\t\t\t\tint destTmpProtector[] = genDestTmp(GUARDED_OPEN, color, bd);\n\t\t\t\tfor (int i = 12; i < 120; i++) {\n\t\t\t\t\tPiece p = getPiece(i);\n\n\t\t// If the closest enemy piece has not moved,\n\t\t// it probably is a bomb.\n\n\t\t\t\t\tif (p == null\n\t\t\t\t\t\t|| p.getColor() != 1 - color\n\t\t\t\t\t\t|| !p.hasMoved())\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif (p.getRank().ordinal() <= 8) {\n\t\t\t\t\t\tif (destTmpProtector[i] < stepsProtector) {\n\t\t\t\t\t\t\tstepsProtector = destTmpProtector[i];\n\t\t\t\t\t\t\tpProtector = p;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p.getRank() == Rank.UNKNOWN\n\t\t\t\t\t\t|| p.getRank() == Rank.EIGHT) {\n\n // If the unknown is actually a Miner, then bombs pose no\n // obstacle, unlike for the protector\n\n TestPiece tmp;\n if (p.getRank() == Rank.UNKNOWN\n && unknownRankAtLarge(1-color, Rank.EIGHT) != 0) {\n tmp = new TestPiece(p);\n tmp.setSuspectedRank(Rank.EIGHT);\n } else\n tmp = (TestPiece)p;\n int destTmpAttacker[] = genDestTmpGuardedOpen(color, bd, tmp);\n\t\t\t\t\t\tif (destTmpAttacker[i] < stepsAttacker) {\n stepsAttacker = destTmpAttacker[i];\n pAttacker = p;\n }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (pAttacker == null)\n\t\t\t\t\tcontinue; // no open path\n\n\t\t// Thwart the approach of the closest unknown or eight piece.\n\t\t// (Note: DEFEND_FLAG must be high enough so that if\n\t\t// the defender is an unmoved piece part of a possible\n\t\t// bomb structure, it will still be the best pruned move).\n\n\t\t// TBD: Note that if the attacker is unknown\n\t\t// the AI relies on a Eight or less to defend.\n\t\t// Obviously, that would be no deterrent\n\t\t// to a lower-ranked unknown attacker.\n\n\t\t\t\tgetDefender(color, destTmpProtector, Rank.EIGHT, pieceValue(1-color, Rank.EIGHT), stepsAttacker, pAttacker);\n\n\t\t// If the flag is known, try to keep the protector, if any,\n\t\t// away from the flag, because otherwise the protector\n\t\t// may attack the defender, giving the attacker a clear\n\t\t// shot at the flag. (If the flag is not known, it is\n\t\t// best not to react to a known opponent piece in the\n\t\t// area, because overreaction is a dead giveaway).\n\n\t\t\t\tif (pProtector != null && flagp.isKnown()) {\n\t\t\t\t\tPiece defender = getDefender(color, destTmpProtector, pProtector.getRank(), pieceValue(pProtector), stepsProtector, null);\n\t\t\t\t\tif (defender != null) {\n\t\t\t\t\t\tint[] destTmp4 = genDestTmpGuardedRank(1-color, pProtector.getIndex(), pProtector.getRank());\n\t\t\t\t\t\tsetDefender(defender, destTmp4, DEST_PRIORITY_DEFEND_FLAG_AREA);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t} // dbomb\n\t\t} // d\n\t}", "title": "" }, { "docid": "14b99dfc7ed6c730a66d8b91e2c0f326", "score": "0.55183274", "text": "@Override\r\n\tpublic Solution search(Searchable s) {\r\n\t\t addToOpenList(s.getStartState()); //adding to the open list (PriorityQueue) the start state \r\n\t\t HashSet<State> closedSet=new HashSet<State>(); //creating HashSet working on State\r\n\t\t State Start = s.getStartState();\r\n\t\t State Goal = s.getGoalState();\r\n\r\n\t\t State current;\r\n\t\t\t\t \r\n\t\t while (!openList.isEmpty())\t//as long as the open list is not empty \r\n\t\t {\r\n\t\t\t current=popOpenList();\t\t//pop the first member on the open list \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t \r\n\t\t\t if(current.equals(s.getGoalState()))// if we reach the goal state \r\n\t\t\t {\r\n\t\t\t\t return super.backTrace(current, Start);\t//return the backTrace of the CommonSearcher class\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\t ArrayList<State> successors=s.getAllPossibleStates(current); \r\n\t\t\t\t for(State state : successors)//for each possible state from current state\r\n\t\t\t\t {\r\n\t\t\t\t \tif(closedSet.contains(state))\t//if the closeSet contains the state already go to the next state \r\n\t\t\t\t \t{\r\n\t\t\t\t \t\tcontinue;\r\n\t\t\t\t \t}\r\n\t\t\t\t \tclosedSet.add(state);\t//its not on the closeSet already\r\n\t\t\t\t \t\r\n\t\t\t\t \t//Calculating the heuristic + how much it has cost to arrive to current \r\n\t\t\t\t \tdouble Gscore = current.getCost() +s.CostToState(state, current)+ h.heuristicCostEstimate(state, Goal);\r\n\t\t\t\t \tif(!openList.contains(state) || Gscore < state.getCost())\t//Checking if the possible move is not on the open list Or there is a better path \r\n\t\t\t\t \t{\r\n\t\t\t\t \t\tstate.setCameFrom(current);\t//set that this possible move came from the current state \r\n\t\t\t\t \t\tstate.setCost(Gscore);\t\t//and set the cost to the Gscore (heuristic+how much cost so far)\r\n\t\t\t\t \t}\r\n\t\t\t\t \tif(!openList.contains(state))\t//Checking if the open list is not contains this possible move\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\topenList.add(state);\t//if not add it\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t }\r\n\t\t\t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"The problem cant be solved\");\t//if the list got empty then the problem is unsolvable \r\n\t\t return null;\r\n\t\t\t\t \r\n\t\r\n\t\t }", "title": "" }, { "docid": "42e3778e29a81ac88e4275253f38b371", "score": "0.551019", "text": "private Action chooseNewDirection(){\n Pair<Integer, Integer> currentPosition = new Pair<>(xRelativePosition, yRelativePosition);\n environmentInfo.merge(currentPosition, 1, Integer::sum);\n\n //Add the nearest directions agent can visit\n Pair<Integer, Integer> upper = new Pair<>(xRelativePosition, yRelativePosition - 1);\n Pair<Integer, Integer> lower = new Pair<>(xRelativePosition, yRelativePosition + 1);\n Pair<Integer, Integer> left = new Pair<>(xRelativePosition - 1, yRelativePosition);\n Pair<Integer, Integer> right = new Pair<>(xRelativePosition + 1, yRelativePosition);\n\n if(!environmentInfo.containsKey(upper)){\n environmentInfo.put(upper, 0);\n }\n if(!environmentInfo.containsKey(lower)){\n environmentInfo.put(lower, 0);\n }\n if(!environmentInfo.containsKey(left)){\n environmentInfo.put(left, 0);\n }\n if(!environmentInfo.containsKey(right)){\n environmentInfo.put(right, 0);\n }\n\n if(lastMovingStatus == ActionStatus.Obstacle)\n {\n switch (chosenDirection)\n {\n case Up:\n chosenDirection = Action.Left;\n break;\n case Left:\n chosenDirection = Action.Down;\n break;\n case Down:\n chosenDirection = Action.Right;\n break;\n case Right:\n chosenDirection = Action.Up;\n break;\n case Thinking:\n chosenDirection = Action.Up;\n break;\n default:\n break;\n }\n }\n else {\n int[] mass = new int[4];\n //Точка выше\n mass[0] = environmentInfo.get(upper);\n //Точка ниже\n mass[1] = environmentInfo.get(lower);\n //Точка левее\n mass[2] = environmentInfo.get(left);\n //Точка правее\n mass[3] = environmentInfo.get(right);\n int minValue = 0;\n int minValueIndex = 0;\n //Найдем достижимую наименьшую позицию\n boolean firstReached = false;\n for (int i = 0; i < 4; i++) {\n if (mass[i] < 0) {\n continue;\n } else {\n if (firstReached == false) {\n minValue = mass[i];\n minValueIndex = i;\n firstReached = true;\n } else {\n if (minValue > mass[i]) {\n minValue = mass[i];\n minValueIndex = i;\n }\n }\n }\n }\n //Меняем местоположение робота\n switch (minValueIndex)\n {\n case(0):\n //Вверх\n chosenDirection = Action.Up;\n break;\n case(1):\n //Вниз\n chosenDirection = Action.Down;\n break;\n case(2):\n //Влево\n chosenDirection = Action.Left;\n break;\n case(3):\n //Вправо\n chosenDirection = Action.Right;\n break;\n }\n }\n return chosenDirection;\n }", "title": "" }, { "docid": "664ef908ee7336755c22816731d1bbb5", "score": "0.5502147", "text": "public static void main(String[] args) {\r\n\t\tBoard b=new Board();\r\n\t\tb.board = new int[][]{{1,0,0,0,0},\r\n\t\t\t\t {1,0,0,0,0},\r\n\t\t\t\t {1,0,0,1,2},\r\n\t\t\t\t {0,0,1,0,2},\r\n\t\t\t\t {0,0,0,0,0}};\r\n\t\tb.boardCol=5;\r\n\t\tb.boardRow=5;\r\n\t\t/*b.MOVES=2;\r\n\t\tb.printBoard();\r\n\t\tb.setPlayerColor(\"white\");\r\n\t\tb.previousPositions=new HashSet<Position>();\r\n\t\tb.previousDirections=new HashSet<String>();\r\n\t\t//System.out.println(\"\"+b.isWithdrawMove(new Position(3,1), new Position(3,0)));\r\n\t\tint a=b.makePlayerMove(new Position(3,1), new Position(3,0));\r\n\t\tSystem.out.println(\"a:\"+a);\r\n\t\ta=b.makePlayerMove(new Position(3,0), new Position(2,0));\r\n\t\tSystem.out.println(\"a:\"+a);\r\n\t\ta=b.makePlayerMove(new Position(3,0), new Position(2,0));\r\n\t\tSystem.out.println(\"a:\"+a);\r\n\t\tb.MOVES--;\r\n\t\tb.setAiColor(\"black\");\r\n\t\tb.makeAIMove();\r\n\t\t//b.MOVES=1;\r\n\t\tb.MOVES--;\r\n\t\t\r\n\t\tint gameFlag=b.checkGoalState();\r\n\t\tSystem.out.println(\"\"+gameFlag);*/\r\n\t\t//\t\tPosition p1= new Position(3,1);\r\n//\t\tPosition p2= new Position(3,2);\r\n//\t\tb.setPlayerColor(\"white\");\r\n//\t\tb.makePlayerMove(p1, p2);\r\n////\t\tb.captureWithdraw(p1, p2);\r\n//\t\tb.printBoard();\r\n\t\tNode n=new Node(b.board);\r\n\t\tn.setCurrentPlayer(\"black\");\r\n\t//\tb.MOVES=39;\r\n\t//\tn.moves=39;\r\n\t\tAI a=new AI();\r\n\t\ta.buildTree(n, 1);\r\n\t\ta.alphaBeta(n, 1, -99999, 999999, \"black\");\r\n\t\tb.board=a.getBestMove(n);\r\n\t\tb.printBoard();\r\n\t\tSystem.out.println(\"\"+n.getUtilVar());\r\n\t\tSystem.out.println(\"generated nodes:\"+n.getNoOfGeneratedNode()+\" \");\r\n\t\t//b.printBoard();\r\n\t\t\r\n//\t\t\r\n//\t\tPosition p1= new Position(2,2);\r\n//\t\tPosition p2= new Position(2,1);\r\n//\t\t\r\n//\t\tb.captureApproach(p1, p2);\r\n//\tb.printBoard();\r\n//\t\tif(b.previousPositions!=null)\r\n//\t\t\tb.previousPositions.add(p1);\r\n//\t\telse\r\n//\t\t{\tb.previousPositions=new HashSet<Position>();\r\n//\t\tb.previousPositions.add(p1);\r\n//\t\t}\r\n//\t\tif(b.previousDirections!=null)\r\n//\t\t\tb.previousDirections.add(b.getDirection(p1, p2));\r\n//\t\telse\r\n//\t\t{\tb.previousDirections= new HashSet<String>();\r\n//\t\tb.previousDirections.add(b.getDirection(p1, p2));\r\n//\t\t}\r\n//\t\t//b2.previousDirections.add(b2.getDirection(p1, p2));\r\n//\t\t\r\n//\t\t\r\n//\t\tb.generateMultipleMoves(b.board, p2);\r\n//\t\tb.printBoard();\r\n//\t//\tb.printBoard();\r\n//\t\tSystem.out.println(\"\"+b.checkGoalState());\r\n//\t\tSystem.out.println(\"generated nodes:\"+n.getNoOfGeneratedNode());\r\n//\t\tb.board[0][0]=0;b.board[0][1]=1;b.board[0][2]=1;b.board[0][3]=1;b.board[0][4]=1;\r\n//\t\tb.board[1][0]=1;\r\n//\t\tb.board[1][1]=2;\r\n//\t\tb.board[1][2]=2;\r\n//\t\tb.board[0][3]=1;\r\n//\t\tb.board[0][4]=1;\r\n//\t\tb.board[2][0]=2;\r\n//\t\tb.board[2][1]=2;\r\n//\t\tb.board[2][2]=0;\r\n//\t\tb.board[0][3]=1;\r\n//\t\tb.board[0][4]=1;\r\n//\t\tb.board[2][0]=2;\r\n//\t\tb.board[2][1]=2;\r\n//\t\tb.board[2][2]=0;\r\n//\t\tb.board[0][3]=1;\r\n//\t\tb.board[0][4]=1;\r\n//\t\tb.board[2][0]=2;\r\n//\t\tb.board[2][1]=2;\r\n//\t\tb.board[2][2]=0;\r\n//\t\tb.board[0][3]=1;\r\n//\t\tb.board[0][4]=1;\r\n//\t\tSystem.out.println();\r\n//\t\tSystem.out.println(\"\"+b.isAbleToCapture(new Position(1,1)));\r\n//\t\t\r\n//\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a0802c6d98c55a0188ecf09f06ee5e0a", "score": "0.5436265", "text": "Move findBestMove();", "title": "" }, { "docid": "7d85a556c85a974651fa2cec49a9581a", "score": "0.5431569", "text": "List<Coordinates> avialablePositions() {\n List<Coordinates> positions = new ArrayList<>();\n if (this.activePowerup == PowerupType.TELEPORTER) {\n for (Square s : this.board.getArena().getAllSquares()) {\n positions.add(new Coordinates(s.getX(), s.getY()));\n }\n } else if (this.activePowerup == PowerupType.NEWTON) {\n int x = this.target.getPosition().getX();\n int y = this.target.getPosition().getY();\n Square current = this.board.getArena().getSquareByCoordinate(x + 1, y);\n if (current != null && current.getNearbyAccessibility().get(CardinalPoint.WEST)) {\n positions.add(new Coordinates(x + 1, y));\n current = this.board.getArena().getSquareByCoordinate(x + 2, y);\n if (current != null && current.getNearbyAccessibility().get(CardinalPoint.WEST)) {\n positions.add(new Coordinates(x + 2, y));\n }\n }\n current = this.board.getArena().getSquareByCoordinate(x - 1, y);\n if (current != null && current.getNearbyAccessibility().get(CardinalPoint.EAST)) {\n positions.add(new Coordinates(x - 1, y));\n current = this.board.getArena().getSquareByCoordinate(x - 2, y);\n if (current != null && current.getNearbyAccessibility().get(CardinalPoint.EAST)) {\n positions.add(new Coordinates(x - 2, y));\n }\n }\n current = this.board.getArena().getSquareByCoordinate(x, y - 1);\n if (current != null && current.getNearbyAccessibility().get(CardinalPoint.SOUTH)) {\n positions.add(new Coordinates(x, y - 1));\n current = this.board.getArena().getSquareByCoordinate(x, y - 2);\n if (current != null && current.getNearbyAccessibility().get(CardinalPoint.SOUTH)) {\n positions.add(new Coordinates(x, y - 2));\n }\n }\n current = this.board.getArena().getSquareByCoordinate(x, y + 1);\n if (current != null && current.getNearbyAccessibility().get(CardinalPoint.NORTH)) {\n positions.add(new Coordinates(x, y + 1));\n current = this.board.getArena().getSquareByCoordinate(x, y + 2);\n if (current != null && current.getNearbyAccessibility().get(CardinalPoint.NORTH)) {\n positions.add(new Coordinates(x, y + 2));\n }\n }\n }\n return positions;\n }", "title": "" }, { "docid": "753cfe7fa9dced2271fca08dde9b7faf", "score": "0.53607273", "text": "@Override\r\n\tpublic double pointsForEffort(boolean[] sv, int move) {\n\t\t\r\n\t\tint sum = binaryToInt(sv);\r\n\t\t\r\n\t\tif( sum == binaryToInt(new boolean[]{true,true,true,true,true})){\r\n\t\t\t\r\n\t\t\treturn move == 0 ? 1 : 0 ;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( sum == binaryToInt(new boolean[]{!true,!true,!true,!true,!true})){\r\n\t\t\t\r\n\t\t\treturn move == 0 ? 0 : 1 ; //Go explore!\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( !sv[0] && !sv[sv.length-1] && (sv[1] || sv[2] || sv[3]) ){\r\n\t\t\t\r\n\t\t\treturn move == 0 ? 1 : 0 ; //Stay put!\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif( sum == binaryToInt(new boolean[]{!true,!true,!true,!true,true})){\r\n\t\t\t\r\n\t\t\treturn move > 2 ? 1 : 0 ; //Go right\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif( sum == binaryToInt(new boolean[]{!true,!true,!true, true,true})){\r\n\t\t\t\r\n\t\t\treturn move > 1 ? 1 : 0 ; //Go right\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( sum == binaryToInt(new boolean[]{!true,!true, true, true,true})){\r\n\t\t\t\r\n\t\t\treturn move > 0 ? 1 : 0 ; //Go right\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( sum == binaryToInt(new boolean[]{!true,true, true, true,true})){\r\n\t\t\t\r\n\t\t\treturn move > 0 ? 1 : 0 ; //Go right\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( sum == binaryToInt(new boolean[]{true,!true,!true,!true,!true})){\r\n\t\t\t\r\n\t\t\treturn move < -2 ? 1 : 0 ; //Go left!\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( sum == binaryToInt(new boolean[]{true,true,!true,!true,!true})){\r\n\t\t\t\r\n\t\t\treturn move < -1 ? 1 : 0 ; //Go left\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( sum == binaryToInt(new boolean[]{true,true,true,!true,!true})){\r\n\t\t\t\r\n\t\t\treturn move < 0 ? 1 : 0 ; //Go left\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( sum == binaryToInt(new boolean[]{true,true,true,true,!true})){\r\n\t\t\t\r\n\t\t\treturn move < 0 ? 1 : 0 ; //Go left\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "587ae8221666572db76edcb646dc7092", "score": "0.53445625", "text": "public void consider(String player) {\n this.player = player;\n if (player.equals(P1)) {\n oppo = P2;\n } else {\n oppo = P1;\n }\n ideas = new ArrayList<Idea>();\n possibleSpots = availableSpots();\n Iterator<Integer> itr = possibleSpots.iterator();\n int alpha = DEFAULT_ALPHA;\n int beta = DEFAULT_BETA;\n while (itr.hasNext()) {\n int key = itr.next();\n int c = analyzer.testMove(player, key);\n if (c > 0) {\n resetAll();\n try {\n /* As a matter of fact I only construct one list of ideas, but eventually there will\n be a tree, because the Idea class does the job. Seems like I let the tree \"grow\". */\n Idea temp = new Idea(output, key, board, player, STARTING_LEVEL, level, player, MIN, alpha, beta);\n alpha = temp.getAlpha();\n beta = temp.getBeta();\n System.out.println(\"alpha = \" + alpha);\n System.out.println(\"beta = \" + beta);\n System.out.println(\"1 idea added, key: \" + key + \" utility: \" + temp.getUtility());\n ideas.add(temp);\n } catch (Exception error) {\n System.out.println(error);\n }\n }\n }\n Collections.sort(ideas);\n recordAI(ideas);\n }", "title": "" }, { "docid": "d8b81c282ee12afd12487b840b9fd4e7", "score": "0.534374", "text": "private int[] getBestMove(Sprites s) {\n int[] values = {0, 0};\n int[] pacPos = {pacman.getLevelPositionY(), pacman.getLevelPositionX()};\n int[] blinkyPos = {s.getLevelPositionY(), s.getLevelPositionX()};\n\n // because we know where blinky is and where pacman is we can search for open areas towards pacman...\n int[][] nodeValuesPac = new int[currentLevel.length][currentLevel[0].length];\n int[][] nodeValuesBlink = new int[currentLevel.length][currentLevel[0].length];\n\n for (int i = 0; i < currentLevel.length; i++) {\n for (int j = 0; j < currentLevel[i].length; j++) {\n if (currentLevel[i][j] == 'X') {\n // dont concider walls for best moves.\n } else {\n // ghosts can only move right, left, up or down. not diagonally.\n \n int posAwayFromPacY = Math.abs(pacPos[0] - i);\n int posAwayFromPacX = Math.abs(pacPos[1] - j);\n nodeValuesPac[i][j] = (posAwayFromPacY + posAwayFromPacX);\n\n int posAwayFromBlinkyY = Math.abs(blinkyPos[0] - i);\n int posAwayFromBlinkyX = Math.abs(blinkyPos[1] - j);\n nodeValuesBlink[i][j] = (posAwayFromBlinkyY + posAwayFromBlinkyX);\n }\n\n }\n }\n int[] bestPath = new int[2];\n int lowestValue = 10000;\n int highestValue = 0;\n // find the closes position to blinky with the lowest total score.\n for (int i = 0; i < 3; i++) {\n int posY = blinkyPos[0] - 1 + i;\n for (int j = 0; j < 3; j++) {\n int posX = blinkyPos[1] - 1 + j;\n // best move if pacman is powerd is to run away from pacman!\n if (pacman.checkPower()) {\n if (isWall(posY, posX) || i == 1 && j == 1 || currentLevel[posY][posX] == '2' || currentLevel[posY][posX] == '3' || currentLevel[posY][posX] == '4') {\n // score does not count. therefore ignored.\n // Clyde triggers on all accounts at start.\n\n if (j == 2 && i == 2 && highestValue == 0) {\n bestPath[1] = blinkyPos[1] - 1;\n bestPath[0] = blinkyPos[0] - 1;\n }\n\n } else {\n //allocating the sum of nodeValues\n if (highestValue < (nodeValuesPac[posY][posX] + nodeValuesBlink[posY][posX])) {\n highestValue = (nodeValuesPac[posY][posX] + nodeValuesBlink[posY][posX]);\n bestPath[0] = posY;\n bestPath[1] = posX;\n }\n }\n } else {\n if (isWall(posY, posX) || i == 1 && j == 1 || currentLevel[posY][posX] == '2' || currentLevel[posY][posX] == '3' || currentLevel[posY][posX] == '4') {\n // score does not count. therefore ignored.\n // Clyde triggers on all accounts at start.\n\n if (j == 2 && i == 2 && lowestValue == 10000) {\n bestPath[1] = blinkyPos[1] - 1;\n bestPath[0] = blinkyPos[0] - 1;\n }\n\n } else {\n //allocating the sum of nodeValues\n if (currentLevel[posY][posX] == 'S') {\n // pacman is there so it would be best to kill player now!\n bestPath[0] = posY;\n bestPath[1] = posX;\n } else {\n if (lowestValue > (nodeValuesPac[posY][posX] + nodeValuesBlink[posY][posX])) {\n lowestValue = (nodeValuesPac[posY][posX] + nodeValuesBlink[posY][posX]);\n bestPath[0] = posY;\n bestPath[1] = posX;\n }\n }\n\n }\n }\n\n }\n }\n return bestPath;\n\n }", "title": "" }, { "docid": "e5468472c2f9f45924736904f3e63399", "score": "0.53425807", "text": "@Override\n public RequestActionList botMakeDecision(MapState mapState, GameInfo gameInfo) {\n map = mapState;\n teamId = gameInfo.getTeamID();\n log.info(\"PROCON:TURN:\" + map.getTurn());\n int source = 900, sink = 901, send = map.getTeams().get(0).getAgents().size();\n minCost = new MinCost(1000, source, sink, send);\n for (Team team : map.getTeams())\n if (team.getTeamID() == teamId) {\n // Add source edges\n for (Agent agent : team.getAgents())\n minCost.addEdge(source, agent.getAgentID(), 0, 1);\n // Add sink edges\n for (int i = 1; i <= map.getWidth(); i++)\n for (int j = 1; j <= map.getHeight(); j++)\n minCost.addEdge(100 + getId(i, j), sink, 0, 1);\n for (Agent agent : team.getAgents())\n addEdge(agent);\n minCost.minCost();\n RequestActionList requests = new RequestActionList();\n requests.setActions(new ArrayList<>());\n for (Agent agent : team.getAgents()) {\n int id = minCost.find(agent.getAgentID()) - 100;\n Pair pos = getCoordinate(id);\n RequestAction request = new RequestAction();\n request.setAgentID(agent.getAgentID());\n request.setDx(pos.first - agent.getX());\n request.setDy(pos.second - agent.getY());\n if (map.getTile(pos.first, pos.second) == 0 || map.getTile(pos.first, pos.second) == teamId)\n request.setType(MoveTypes.MOVE);\n else\n request.setType(MoveTypes.REMOVE);\n requests.getActions().add(request);\n }\n return requests;\n }\n return null;\n }", "title": "" }, { "docid": "6a9b86a80ae069ee1a303eff481c1d78", "score": "0.5328446", "text": "public boolean matchesPos(EnumContainer p_matchesPos_1_, BlockPos p_matchesPos_2_, IBlockAccess p_matchesPos_3_) {\n/* 573 */ if (!matchesGeneral(p_matchesPos_1_, p_matchesPos_2_, p_matchesPos_3_))\n/* */ {\n/* 575 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 579 */ switch (p_matchesPos_1_) {\n/* */ \n/* */ case BEACON:\n/* 582 */ return matchesBeacon(p_matchesPos_2_, p_matchesPos_3_);\n/* */ \n/* */ case BREWING_STAND:\n/* 585 */ return matchesNameable(p_matchesPos_2_, p_matchesPos_3_);\n/* */ \n/* */ case CHEST:\n/* 588 */ return matchesChest(p_matchesPos_2_, p_matchesPos_3_);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ default:\n/* 595 */ return true;\n/* */ \n/* */ case DISPENSER:\n/* 598 */ return matchesDispenser(p_matchesPos_2_, p_matchesPos_3_);\n/* */ \n/* */ case ENCHANTMENT:\n/* 601 */ return matchesNameable(p_matchesPos_2_, p_matchesPos_3_);\n/* */ \n/* */ case FURNACE:\n/* 604 */ return matchesNameable(p_matchesPos_2_, p_matchesPos_3_);\n/* */ \n/* */ case HOPPER:\n/* 607 */ return matchesNameable(p_matchesPos_2_, p_matchesPos_3_);\n/* */ case SHULKER_BOX:\n/* */ break;\n/* 610 */ } return matchesShulker(p_matchesPos_2_, p_matchesPos_3_);\n/* */ }", "title": "" }, { "docid": "401ad74243755ba3080827a0fd7fd2db", "score": "0.53282934", "text": "@Override\n\tvoid move(Board b, boolean flag) {\n\t\tmove.removeAll(this.move);\n\t\tattack.removeAll(this.attack);\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tint tmpPos[] = new int[2];\n\t\t\ttmpPos[0] = pos[0] + movePath[i][0];\t\ttmpPos[1] = pos[1] + movePath[i][1];\n\t\t\tif (tmpPos[0] >= 3 && tmpPos[0] <= 5){\n\t\t\t\tif (this.side == false && tmpPos[1] >= 0 && tmpPos[1] <= 2){\n\t\t\t\t\tmove.add(tmpPos);\n\t\t\t\t}\n\t\t\t\tif (this.side == true && tmpPos[1] >= 7 && tmpPos[1] <= 9){\n\t\t\t\t\tmove.add(tmpPos);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < move.size(); i++){\n\t\t\tint tmpMov[] = move.get(i);\n\t\t\tChess tmpC = b.findChess(tmpMov);\n\t\t\tif (tmpC != null){\n\t\t\t\tif(tmpC.side != this.side){\n\t\t\t\t\tattack.add(tmpMov);\n\t\t\t\t}\n\t\t\t\tmove.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\t//eliminate the cases facing the opponent's general\n\t\tfor (int i = 0; i < move.size(); i++){\n\t\t\tint tmpMov[] = move.get(i);\n\t\t\tif(this.faceGeneral(tmpMov, b)){\n\t\t\t\tmove.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag){\n\t\t\tthis.AI(b);\n\t\t}else{\n\t\t\tthis.userInter(b);\n\t\t}\n\t}", "title": "" }, { "docid": "759fb38b80760b47878c9c465117717e", "score": "0.528332", "text": "private GeoPoint rule() {\n GeoPoint enemyPos;\n int maxIteration = 500;\n do {\n enemyPos = enclosure.randomLocation();\n --maxIteration;\n } while (maxIteration > 0 && (checkDistanceFromList(enemyPos, (List<Entity>) (List<?>) PlayerManager.getInstance().getPlayers(), minDistanceFromPlayers)\n || checkDistanceFromList(enemyPos, (List<Entity>) (List<?>) EnemyManager.getInstance().getEnemies(), minDistanceFromEnemies)));\n return enemyPos;\n }", "title": "" }, { "docid": "0ea8c6bb3fcefa8ac15af4e111ce84bd", "score": "0.5251882", "text": "public boolean search(int maxDepth)\n {\n visitedSpaces[location[0]][location[1]] = true; // Set the current tile as visited, as we are now visiting it\n boolean isGoal = false; // Assume the tile is not the goal\n // Check if the current location actually is a goal location\n for(int[] goalTile : goalTiles)\n {\n if(location[0] == goalTile[0] && location[1] == goalTile[1])\n {\n isGoal = true;\n break;\n }\n }\n // If the current location is a goal, mark that the path has been found, increment the value on the final map, and allow for other paths to visit the current location\n // by setting the visited space to unvisited. Finally, return true since the goal was reached\n if(isGoal)\n {\n if(!pathFound)\n {\n total = 1;\n pathFound = true;\n } else\n {\n total++;\n }\n finalMap[location[0]][location[1]]++;\n visitedSpaces[location[0]][location[1]] = false;\n return true;\n } else if(maxDepth > depth) // If the maximum depth hasn't yet been reached, search any allowable locations next to the current location\n {\n // Initially assume no descendants will reach the goal, no directions can be explored and (hence) none will be fruitful\n boolean enRouteToGoal = false;\n double nDirectionsExplored = 0;\n double nFruitfulDirections = 0;\n // For each direction, check if the thing modeled can move in that direction, and that it won't leave the allowed spaces\n if((moveCapabilities[0] == MoveType2D.BOTH || moveCapabilities[0] == MoveType2D.FORWARD)\n && location[0] < (visitedSpaces.length - 1) && !visitedSpaces[location[0] + 1][location[1]])\n {\n nDirectionsExplored++;\n int[] newLocation = new int[N_DIMENSIONS];\n newLocation[0] = location[0] + 1;\n newLocation[1] = location[1];\n boolean enRoute = new Node(newLocation, depth + 1).search(maxDepth);\n if(enRoute)\n {\n enRouteToGoal = true;\n nFruitfulDirections++;\n }\n }\n if((moveCapabilities[0] == MoveType2D.BOTH || moveCapabilities[0] == MoveType2D.BACKWARD)\n && location[0] > 0 && !visitedSpaces[location[0] - 1][location[1]])\n {\n nDirectionsExplored++;\n int[] newLocation = new int[N_DIMENSIONS];\n newLocation[0] = location[0] - 1;\n newLocation[1] = location[1];\n boolean enRoute = new Node(newLocation, depth + 1).search(maxDepth);\n if(enRoute)\n {\n enRouteToGoal = true;\n nFruitfulDirections++;\n }\n }\n if((moveCapabilities[1] == MoveType2D.BOTH || moveCapabilities[1] == MoveType2D.FORWARD)\n && location[1] < (visitedSpaces[0].length - 1) && !visitedSpaces[location[0]][location[1] + 1])\n {\n nDirectionsExplored++;\n int[] newLocation = new int[N_DIMENSIONS];\n newLocation[0] = location[0];\n newLocation[1] = location[1] + 1;\n boolean enRoute = new Node(newLocation, depth + 1).search(maxDepth);\n if(enRoute)\n {\n enRouteToGoal = true;\n nFruitfulDirections++;\n }\n }\n if((moveCapabilities[1] == MoveType2D.BOTH || moveCapabilities[1] == MoveType2D.BACKWARD)\n && location[1] > 0 && !visitedSpaces[location[0]][location[1] - 1])\n {\n nDirectionsExplored++;\n int[] newLocation = new int[N_DIMENSIONS];\n newLocation[0] = location[0];\n newLocation[1] = location[1] - 1;\n boolean enRoute = new Node(newLocation, depth + 1).search(maxDepth);\n if(enRoute)\n {\n enRouteToGoal = true;\n nFruitfulDirections++;\n }\n }\n // If the node has descendants that reach the goal, calculate a score to add to the final map\n // Otherwise, if the path hasn't been found, add the inverse of the distance to the nearest goal\n if(enRouteToGoal)\n {\n double amountToAdd = nFruitfulDirections * Math.pow(maxDepth - depth + 1, EN_ROUTE_WEIGHT);\n finalMap[location[0]][location[1]] += amountToAdd;\n total += amountToAdd;\n } else if(!pathFound)\n {\n double xDist = Math.abs(location[0] - goalTiles.get(0)[0]);\n double yDist = Math.abs(location[1] - goalTiles.get(0)[1]);\n if(goalTiles.size() > 1)\n {\n xDist = Math.min(xDist, Math.abs(location[0] - goalTiles.get(1)[0]));\n yDist = Math.min(yDist, Math.abs(location[1] - goalTiles.get(1)[1]));\n }\n double inverseDistance = 1 / (xDist + yDist);\n workingMap[location[0]][location[1]] += inverseDistance;\n total += Math.pow(inverseDistance, UNFOUND_WEIGHT);\n }\n visitedSpaces[location[0]][location[1]] = false;\n return enRouteToGoal;\n } else if(!pathFound) // If a path has yet to be found which reaches the goal, and the farthest depth has been reached, add to the working map\n {\n double xDist = Math.abs(location[0] - goalTiles.get(0)[0]);\n double yDist = Math.abs(location[1] - goalTiles.get(0)[1]);\n if(goalTiles.size() > 1)\n {\n xDist = Math.min(xDist, Math.abs(location[0] - goalTiles.get(1)[0]));\n yDist = Math.min(yDist, Math.abs(location[1] - goalTiles.get(1)[1]));\n }\n double inverseDistance = 1 / (xDist + yDist);\n workingMap[location[0]][location[1]] += inverseDistance;\n total += Math.pow(inverseDistance, UNFOUND_WEIGHT);\n visitedSpaces[location[0]][location[1]] = false;\n return false;\n } else // If a path has been found, but the current node can't go deeper and isn't the goal it should allow revisiting the spaces and return false\n {\n visitedSpaces[location[0]][location[1]] = false;\n return false;\n }\n }", "title": "" }, { "docid": "3ef9d6b84c6611e481c2a71034a787e2", "score": "0.524586", "text": "public static void main(String[] args) {\n// long time = System.currentTimeMillis();\n// Game magicsquare = new MagicSquare(2);\n// ForwardChecking backtracking = new ForwardChecking(new Domain(magicsquare.getsize() * magicsquare.getsize()),magicsquare);\n//\n// backtracking.findSolution(new LinkedList<>(), magicsquare, Field_VariableUtilities.collectionOfAllElements(magicsquare.getsize()), backtracking.domain.getDomainValues());\n//\n// System.out.println(System.currentTimeMillis() - time);\n//\n// System.out.println(backtracking.getSolution());\n\n\n\n\n\n\n //PYRAMIDS\n //backtracking\n\n\n// int size = 4;\n//\n// long timePyramid = System.currentTimeMillis();\n// Map<Field_Variable, Integer> topConstraint = new HashMap<>();\n// topConstraint.put(new Field_Variable(0,1), 2);\n// topConstraint.put(new Field_Variable(0,3), 1);\n//\n// Map<Field_Variable, Integer> bottomConstraint = new HashMap<>();\n// bottomConstraint.put(new Field_Variable(size-1,0),1);\n//\n// Map<Field_Variable, Integer> rightConstraint = new HashMap<>();\n//// rightConstraint.put(new Field_Variable(1,size-1), 4);\n//\n// Map<Field_Variable, Integer> leftConstraint = new HashMap<>();\n// leftConstraint.put(new Field_Variable(2,0), 3);\n//\n// Game pyramids = new PyramidsGame(size, topConstraint, bottomConstraint, leftConstraint, rightConstraint);\n// Backtracking backtrackingPyramids = new Backtracking(new Domain(pyramids.getsize()),pyramids);\n// backtrackingPyramids.findSolution(new LinkedList<>(),pyramids,Field_VariableUtilities.collectionOfAllElements(pyramids.getsize()),backtrackingPyramids.domain.getDomainValues());\n// System.out.println(System.currentTimeMillis() - timePyramid);\n// System.out.println(backtrackingPyramids.getSolution());\n\n\n\n\n\n\n //forwardchecking\n\n int size = 3;\n\n long timePyramid = System.currentTimeMillis();\n Map<Field_Variable, Integer> topConstraint = new HashMap<>();\n topConstraint.put(new Field_Variable(0,1), 2);\n// topConstraint.put(new Field_Variable(0,1), 4);\n// topConstraint.put(new Field_Variable(0,3), 1);\n\n Map<Field_Variable, Integer> bottomConstraint = new HashMap<>();\n bottomConstraint.put(new Field_Variable(size-1,0),1);\n\n Map<Field_Variable, Integer> rightConstraint = new HashMap<>();\n// rightConstraint.put(new Field_Variable(1,size-1), 3);\n\n Map<Field_Variable, Integer> leftConstraint = new HashMap<>();\n// leftConstraint.put(new Field_Variable(3,0), 3);\n\n Game pyramids = new PyramidsGame(size, topConstraint, bottomConstraint, leftConstraint, rightConstraint);\n ForwardChecking backtrackingPyramids = new ForwardChecking(new Domain(pyramids.getsize()),pyramids);\n backtrackingPyramids.findSolution(new LinkedList<>(),pyramids,Field_VariableUtilities.collectionOfAllElements(pyramids.getsize()),backtrackingPyramids.domain.getDomainValues());\n System.out.println(System.currentTimeMillis() - timePyramid);\n\n System.out.println(backtrackingPyramids.getSolution());\n\n }", "title": "" }, { "docid": "dba2cc2da0fc3161ff9ad9ed25f753ec", "score": "0.52368295", "text": "public interface GamePosition extends Position {\r\n\r\n\t/**\r\n\t * @return a deep copy of this Position\r\n\t */\r\n\tpublic GamePosition copy();\r\n\r\n\t/**\r\n\t * @param depth\t\tsearch depth of score\r\n\t * @param scoreType\ttype of score (EXACT, UPPERBOUND, LOWERBOUND)\r\n\t * @param score\t\tposition score\r\n\t * @param bestMove\tbest Move\r\n\t * @return\r\n\t */\r\n\tpublic TTEntry newTTentry(int depth, ScoreType scoreType, int score, Move bestMove);\r\n\t\r\n\t/**\r\n\t * @return name of side to move, e.g. 'X' or 'O'\r\n\t */\r\n\tpublic String sideToMove();\r\n\r\n\t/**\r\n\t * @return name of side last moved, e.g. 'X' or 'O'\r\n\t */\r\n\tpublic String sideLastMoved();\r\n\r\n\t/**\r\n * @return\t<code>true</code> if last move resulted in a win\r\n */\r\n public boolean isWin();\r\n\r\n\t/**\r\n\t * @return\t<code>true</code> if this GamePosition is a draw\r\n\t */\r\n\tpublic boolean isDraw();\r\n\t\r\n\t/**\r\n\t * References:\r\n\t * \thttps://chessprogramming.wikispaces.com/Evaluation\r\n\t * \r\n\t * @return\tscore of a won GamePosition, >0 if Player 1\r\n\t * \t\t\t(e.g. X or White) win, <0 if Player 2 (e.g.\r\n\t * \t\t\tO or Black) win. Multiply by scoreSign()\r\n\t * \t\t\tfor NegaMax score.\r\n\t */\r\n\tpublic int scoreWin();\r\n\r\n\t/**\r\n\t * Score a draw.\r\n\t */\r\n\tpublic int scoreDraw();\r\n\r\n}", "title": "" }, { "docid": "7094876a77c1712e4be8fadd7a876a56", "score": "0.5228805", "text": "private void makeFlagKnown(Piece pflag)\n\t{\n\t\tint c = pflag.getColor();\n\t\tif (c == Settings.bottomColor\n\t\t\t|| invincibleWinRank[1-c] >= invincibleWinRank[c]) {\n\t\t\tpflag.makeKnown();\n\t\t}\n\t}", "title": "" }, { "docid": "fb7ae37d09008c0d407f49c98ba14611", "score": "0.52213526", "text": "public short iterativeDeepMiniMax(Position position, int maxDepth) {\n\t\tmaximumDepth = maxDepth;\n\t\t// Array of best moves\n\t\tshort[] bMoves = new short[maxDepth];\n\t\t// Array of values corresponding to the best moves\n\t\tdouble[] bValues = new double[maxDepth];\n\t\t// Value for a checkmate\n\t\tdouble checkmate = Double.MAX_VALUE;\n\t\t// Best possible move to return\n\t\tshort btMove = 0;\n\t\t// Value for the best possible move to return\n\t\tdouble btValue = 0.0;\n\t\t// Get the best move and value at each depth, up to the max depth\n\t\tfor (int i = 1; i <= maxDepth; i++) {\n\t\t\tbMoves[i - 1] = alphaBetaMiniMax(position, i);\n\t\t\tbValues[i - 1] = bestVal;\n\t\t}\n\t\t// Set best move/value to the best move/value at the deepest value\n\t\tbtMove = bMoves[maxDepth - 1];\n\t\tbtValue = bValues[maxDepth - 1];\n\t\t// If there was a checkmate at an earlier value, go for the checkmate\n\t\tfor (int j = 0; j < maxDepth; j++) {\n\t\t\tif (bValues[j] == checkmate) {\n\t\t\t\tbtMove = bMoves[j];\n\t\t\t\tbtValue = bValues[j];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// Print Node count for the AI\n\t\tSystem.out.println(\"Player \" + player + \" searched through \" + nodes);\n\t\tSystem.out.println(\"Maximmum depth reached: \" + maxDepthReached);\n\t\tSystem.out.println(\"Evaluation function value: \" + btValue);\n\t\t// Return best possible move\n\t\treturn btMove;\n\t}", "title": "" }, { "docid": "763e647b3bd369a38f35a33e0441a4bc", "score": "0.5210129", "text": "private Move seekTarget(Game game, Child child) \n\t{\n\t\t// Compute a set of inverted weighted vectors relative to our current position\n\t\t// and sum them up.\n\t\t\n\t\tdouble dx = 0;\n\t\tdouble dy = 0;\n\t\tdouble weight;\n\n\t\tfor (Child c : game.cList)\n\t\t{\n\t\t\tif (!c.pos.equals(child.pos) && c.canBeSeen())\n\t\t\t{\n\t\t\t\tweight = calcRepulsiveWeight(child, c.pos);\n\t\t\t\tif (child.isFriend(c)) weight *= RF_FRIEND;\n\t\t\t\telse weight *= RF_ENEMY;\n\t\t\t\t\n\t\t\t\t// NB. order of subtraction is set up to invert the vectors.\n\t\t\t\tdx += weight * (child.pos.x - c.pos.x);\n\t\t\t\tdy += weight * (child.pos.y - c.pos.y);\n\t\t\t}\n\t\t}\n\n\t\t// Apply some force to keep us away from the walls.\n\t\tweight = RF_WALL * calcRepulsiveWeight(child, child.pos.x, -1);\n\t\tdy += (int) Math.round(weight * (child.pos.y + 1));\n\t\t\n\t\tweight = RF_WALL * calcRepulsiveWeight(child, child.pos.x, Game.SIZE + 1);\n\t\tdy += (int) Math.round(weight * (child.pos.y - Game.SIZE - 1));\n\t\t\n\t\tweight = RF_WALL * calcRepulsiveWeight(child, -1, child.pos.y);\n\t\tdx += (int) Math.round(weight * (child.pos.x + 1));\n\t\t\n\t\tweight = RF_WALL * calcRepulsiveWeight(child, Game.SIZE + 1, child.pos.y);\n\t\tdx += (int) Math.round(weight * (child.pos.x - Game.SIZE - 1));\n\t\t\n\t\t// Add some jitter to prevent us being trapped between two obstacles.\n\t\tdx = game.makeRandomNumber(JITTER_LOWER*dx, JITTER_UPPER*dx);\n\t\tdy = game.makeRandomNumber(JITTER_LOWER*dy, JITTER_UPPER*dy);\n\t\t\n\t\tPoint newPos = new Point(child.pos.x + (int)Math.round(dx), child.pos.y + (int)Math.round(dy));\n\t\t\n\t\treturn moveToward(game, child, newPos);\n\t}", "title": "" }, { "docid": "560d4f38734c2496cc79e9498a874c3c", "score": "0.52023274", "text": "private boolean localSearch(boolean[] solution)\n\t{\n\t\tNeighborhoodVisitorResult result;\n\t\thcrs.setAllCustomers(solution);\n\t\t\n\t\tdo\n\t\t{\n\t\t\tresult = visitNeighbors(hcrs);\n\t\t\t\n\t\t\tif (result.getStatus() == NeighborhoodVisitorStatus.FOUND_BETTER_NEIGHBOR && result.getNeighborFitness() > fitness)\n\t\t\t{\n\t\t\t\tcopySolution(hcrs.getSolution(), bestSolution);\n\t\t\t\tthis.fitness = result.getNeighborFitness();\n\t\t\t\tthis.restartBestFound = randomRestartCount;\n\t\t\t}\n\t\t\n\t\t} while (result.getStatus() == NeighborhoodVisitorStatus.FOUND_BETTER_NEIGHBOR);\n\t\t\n\t\treturn (result.getStatus() == NeighborhoodVisitorStatus.NO_BETTER_NEIGHBOR);\n\t}", "title": "" }, { "docid": "4a298dee7cd0500ae9b10b7ed9c5f244", "score": "0.52017", "text": "private List<AState> findLegalNeighbor(int i, int j) {\n if (theMaze==null)\n return null;\n List<AState> successorStates = new ArrayList<>();\n //check all the option neighbor clockwise.\n if (j < colL - 1 && theMaze.getVal(i,j+1) == 0){\n allStateSpace[i][j+1].setCost(allStateSpace[i][j+1].getCost()+10);\n successorStates.add(fromRowColToAState(i,j+1));\n }\n if(j<colL && i<rowsL && theMaze.getVal(i+1,j+1) == 0) {\n allStateSpace[i+1][j+1].setCost(allStateSpace[i+1][j+1].getCost()+15);\n successorStates.add(fromRowColToAState(i + 1, j + 1));\n }\n if (i < rowsL - 1 && theMaze.getVal(i+1,j) == 0){\n allStateSpace[i+1][j].setCost(allStateSpace[i+1][j].getCost()+10);\n successorStates.add(fromRowColToAState(i+1,j));\n }\n if(j>0 && i<rowsL && theMaze.getVal(i+1,j-1) == 0) {\n allStateSpace[i+1][j-1].setCost(allStateSpace[i+1][j-1].getCost()+15);\n successorStates.add(fromRowColToAState(i + 1, j - 1));\n }\n if (j > 0 && theMaze.getVal(i,j-1) == 0){\n allStateSpace[i][j-1].setCost(allStateSpace[i][j-1].getCost()+10);\n successorStates.add(fromRowColToAState(i,j-1));\n }\n if(j<colL && i>0 && theMaze.getVal(i-1,j+1) == 0) {\n allStateSpace[i-1][j+1].setCost(allStateSpace[i-1][j+1].getCost()+15);\n successorStates.add(fromRowColToAState(i - 1, j + 1));\n }\n if (i > 0 && theMaze.getVal(i-1,j) == 0){\n allStateSpace[i-1][j].setCost(allStateSpace[i-1][j].getCost()+10);\n successorStates.add(fromRowColToAState(i-1,j));\n }\n if(j>0 && i>0 && theMaze.getVal(i-1,j-1) == 0) {\n allStateSpace[i-1][j-1].setCost(allStateSpace[i-1][j-1].getCost()+15);\n successorStates.add(fromRowColToAState(i - 1, j - 1));\n }\n\n return successorStates;\n }", "title": "" }, { "docid": "eae7716a4cc1cdf19f059f3b250c3f65", "score": "0.519966", "text": "private void placeGoal(){\n \tgoalRow = (int) (MAZE_DIMENSION * Math.random());\n \tgoalCol = (int) (MAZE_DIMENSION * Math.random());\n \tmodel[goalRow][goalCol].setFeature('G');\n \tmodel[goalRow][goalCol].setGoalNode(true);\n \t//model[goalRow][goalCol].isGoalNode();\n\t}", "title": "" }, { "docid": "baa51a9ea25187a69bdcb834b6064383", "score": "0.5199525", "text": "public static void placeFlag() {\n\t\t/*********************************\n\t\t * 1D array to keep return value *\n\t\t *********************************/\n\t\t//an array that holds the return values\n\t\tString[] arrayReturner = {};\n\t\t//a string that acts like a boolean to tell is user input is valid\n\t\tString possibleMove = \"\";\n\t\t//two integers that hold user's flag y and x positions\n\t\tint gridY = 0, gridX = 0;\n\t\t\n\t\t//clear screen\n\t\tclearScreen();\n\t\tupdateGrid();\n\t\t/*****************************************************************************\n\t\t * Repetition that keeps asking user for coordinates until properly inputted *\n\t\t *****************************************************************************/\n\t\t//loop until user satisfies the input parameters\n\t\tdo {\n\t\t\t//calls function and stores data in variable\n\t\t\tarrayReturner = askUserInput();\n\t\t\t//the first element of the return value will tell if user has properly inputed their first block\n\t\t\tpossibleMove = arrayReturner[0];\n\t\t\t//clear screen\n\t\t\tclearScreen();\n\t\t\tupdateGrid();\n\t\t}\n\t\t//continues iterating while 'false'\n\t\twhile (!possibleMove.equals(\"true\"));\n\t\t\n\t\t//holds the y position of the user's first choice\n\t\tgridY = (Integer.parseInt(arrayReturner[1])) - 1;\n\t\t//holds the x position of the user's first choice\n\t\tgridX = (arrayReturner[2].toUpperCase().charAt(0)) - 65;\n\t\t\n\t\t/**************************************************\n\t\t * Selection to check if user already placed flag *\n\t\t **************************************************/\n\t\t//if the coordinate already has a flag on it remove the flag\n\t\tif (gameGrid[gridY][gridX].equals(\"[P]\")) {\n\t\t\t//replace flag with question mark\n\t\t\tgameGrid[gridY][gridX] = \"[?]\";\n\t\t}\n\t\t//else there is no flag on the coordinate\n\t\telse {\n\t\t\t//add flag to the display grid\n\t\t\tgameGrid[gridY][gridX] = \"[P]\";\n\t\t}\n\t}", "title": "" }, { "docid": "d7b4509390928e5df674abaf458e5588", "score": "0.5185978", "text": "@Override\n\tpublic long getAdmissibleHeuristic(AstarNode goal) {\n\t\tint ret = 0;\n\t\tlong lowestFloorObj = NUMBER_OF_FLOORS;\n\t\tlong secondLowestFloorObj = NUMBER_OF_FLOORS;\n\t\tfor(int i=0; i<rtgName.size(); i++) {\n\t\t\tret += 2*(NUMBER_OF_FLOORS-rtgGeneratorFloor.get(i));\n\t\t\tret += 2*(NUMBER_OF_FLOORS-rtgMicrochipFloor.get(i));\n\t\t\t\n\t\t\tif(rtgGeneratorFloor.get(i) < lowestFloorObj) {\n\t\t\t\tlowestFloorObj = (long)(rtgGeneratorFloor.get(i));\n\t\t\t} else if(rtgGeneratorFloor.get(i) < secondLowestFloorObj) {\n\t\t\t\tsecondLowestFloorObj = (long)(rtgGeneratorFloor.get(i));\n\t\t\t}\n\t\t\t\n\t\t\tif(rtgMicrochipFloor.get(i) < lowestFloorObj) {\n\t\t\t\tlowestFloorObj = (long)(rtgMicrochipFloor.get(i));\n\t\t\t} else if(rtgMicrochipFloor.get(i) < secondLowestFloorObj) {\n\t\t\t\tsecondLowestFloorObj = (long)(rtgMicrochipFloor.get(i));\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tret -= 2* (NUMBER_OF_FLOORS-secondLowestFloorObj);\n\t\tret -= 1* (NUMBER_OF_FLOORS-lowestFloorObj);\n\t\t\n\t\tret += 2*(this.elevatorFloor - secondLowestFloorObj);\n\t\tret += this.elevatorFloor - lowestFloorObj;\n\t\t\n\n\t\t//TODO: prove or disprove:\n\t\t//Things that will cost at least 1 extra move to clear out:\n\t\t//(These things wre proven by pen & paper)\n\t\t//1) If there's 3+ generators alone in a floor above at least 1 microchip, and the elevator is below the 3 generator floor.\n\t\t//2) If there's 3+ generators on the top floor and no microchips on the top floor.\n\t\t\n\t\t//This bit of logic makes the code find a solution 10x faster.\n\t\t//The only thing is that I didn't prove it was true... :(\n\t\tint numGen;\n\t\tint numMicro;\n\t\tint totalMicroFound = 0;\n\t\t\n\t\tfor(int floor=NUMBER_OF_FLOORS; floor>lowestFloorObj; floor--) {\n\t\t\t//If current floor is not the top floor,\n\t\t\t//then there's no value in continuing if the elevator is below the current floor:\n\t\t\tif(floor < NUMBER_OF_FLOORS && this.elevatorFloor >= floor) {\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tnumGen = 0;\n\t\t\tnumMicro = 0;\n\t\t\tfor(int i=0; i<rtgName.size(); i++) {\n\t\t\t\tif(rtgGeneratorFloor.get(i) == floor) {\n\t\t\t\t\tnumGen++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(rtgMicrochipFloor.get(i) == floor) {\n\t\t\t\t\tnumMicro++;\n\t\t\t\t\ttotalMicroFound++;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tif(numGen >= 3 && numMicro == 0) {\n\t\t\t\tif(totalMicroFound < rtgName.size()) {\n\t\t\t\t\tret++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "dce242cbb3ae5f75695fb88b714ab4fd", "score": "0.5168241", "text": "private Integer lookAhead(Board board, Character thisPlayer, int depth, Game game) {\n\t\tboolean[][] moves = LegalMoves.Moves(board);//all available moves\n\t\tInteger[][] values = new Integer[4][12];//stores heuristic values for each available move\n\t\tint numberLegalMoves = 0;//counts number of available moves\n\t\tfor(int i=0; i<4; i++) {\n\t\t\tfor(int j=0; j<12; j++) {\n\t\t\t\tif(moves[i][j]==true) {//if we can move there...\n\t\t\t\t\tnumberLegalMoves++;//then it's an available move\n\t\t\t\t\tBoard candidate = Board.clone(board);//copy the board to pass forward\n\t\t\t\t\tcandidate.theBoard[i][j] = thisPlayer;//make move on copy\n\t\t\t\t\t//if we don't need to search any farther\n\t\t\t\t\tif(depth <= 1 || WinCheck.check(i, j, candidate) == true) {\n\t\t\t\t\t\tif(WinCheck.check(i, j, candidate)==true) {\n\t\t\t\t\t\t\t//if we can win\n\t\t\t\t\t\t\tif(candidate.theBoard[i][j] == player) {\n\t\t\t\t\t\t\t\tmovex = i;\n\t\t\t\t\t\t\t\tmovey = j;\n\t\t\t\t\t\t\t\tvalues[i][j] = 1;\n\t\t\t\t\t\t\t\treturn values[i][j];//just return the winning move\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//if our opponent won\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tvalues[i][j] = -1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if we need to evaluate the current board\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tvalues[i][j] = predict(board);//classify and save returned value\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//if we need to look farther ahead\n\t\t\t\t\telse {\n\t\t\t\t\t\t//determine next player\n\t\t\t\t\t\tCharacter otherPlayer = 'X';\n\t\t\t\t\t\tif(thisPlayer == 'X') {\n\t\t\t\t\t\t\totherPlayer = 'O';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//recursive function call\n\t\t\t\t\t\tvalues[i][j] = lookAhead(candidate, otherPlayer, depth-1, game);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if we can't move there\n\t\t\t\telse {\n\t\t\t\t\tvalues[i][j] = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//if no move available and we reached here it's a tie\n\t\tif(numberLegalMoves == 0) {\n\t\t\treturn 0;//return tie value\n\t\t}\n\t\t//if us (max player)\n\t\tif(thisPlayer == player) {\n\t\t\tint maxvalue = -999999999;//maximum heuristic value of returned move\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tfor(int j=0; j<12; j++) {\n\t\t\t\t\tif(Main.nearestVerbose && values[i][j] != null) {\n\t\t\t\t\t\tSystem.out.format(\"depth = %d x = %d y = %d Value = %d\\n\", depth, i, j, values[i][j]);\n\t\t\t\t\t}\n\t\t\t\t\t//if we found a new max value\n\t\t\t\t\tif(values[i][j] != null && values[i][j] > maxvalue) {\n\t\t\t\t\t\tmaxvalue = values[i][j];//set it as the max so far\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//break ties randomly\n\t\t\tint[] tiesx = new int[48];//will hold x coordinate for ties\n\t\t\tint[] tiesy = new int[48];//will hold y coordinate for ties\n\t\t\tint count = 0;//tracks number of ties\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tfor(int j=0; j<12; j++) {\n\t\t\t\t\tif(values[i][j] != null && values[i][j] == maxvalue) {//if we found one of the best moves\n\t\t\t\t\t\ttiesx[count] = i;//add x value to list\n\t\t\t\t\t\ttiesy[count] = j;//add coorosponding y value to list\n\t\t\t\t\t\tcount++;//increment count\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tRandom generator = new Random(System.nanoTime());\n\t\t\tint randomChoice = generator.nextInt(count);//pick a random best move\n\t\t\t//make move\n\t\t\tmovex = tiesx[randomChoice];\n\t\t\tmovey = tiesy[randomChoice];\n\t\t\treturn maxvalue;//we will choose best move for us\n\t\t}\n\t\t//otherwise it's our opponent (min player)\n\t\telse {\n\t\t\tint minvalue = 999999999;//minimum heuristic value of returned move\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tfor(int j=0; j<12; j++) {\n\t\t\t\t\tif(Main.nearestVerbose && values[i][j] != null) {\n\t\t\t\t\t\tSystem.out.format(\"depth = %d x = %d y = %d Value = %d\\n\", depth, i, j, values[i][j]);\n\t\t\t\t\t}\n\t\t\t\t\t//if we found a new min value\n\t\t\t\t\tif(values[i][j] != null && values[i][j] < minvalue) {\n\t\t\t\t\t\tminvalue = values[i][j];//set it as min so far\n\t\t\t\t\t\tmovex = i;\n\t\t\t\t\t\tmovey = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//break ties randomly\n\t\t\tint[] tiesx = new int[49];//will hold x coordinate for ties\n\t\t\tint[] tiesy = new int[49];//will hold y coordinate for ties\n\t\t\tint count = 0;//tracks number of ties\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tfor(int j=0; j<12; j++) {\n\t\t\t\t\tif(values[i][j] != null && values[i][j] == minvalue) {//if we found one of the best moves\n\t\t\t\t\t\ttiesx[count] = i;//add x value to list\n\t\t\t\t\t\ttiesy[count] = j;//add coorosponding y value to list\n\t\t\t\t\t\tcount++;//increment count\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tRandom generator = new Random(System.nanoTime());\n\t\t\tint randomChoice = generator.nextInt(count);//pick a random best move\n\t\t\t//make move\n\t\t\tmovex = tiesx[randomChoice];\n\t\t\tmovey = tiesy[randomChoice];\n\t\t\treturn minvalue;//assume opponent will choose the best move for them\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "a0f9c166e04e5d40a09726df9c23ab6c", "score": "0.5164155", "text": "@Test\n public void avoidImmediateLoss() {\n Board board = BoardFactory.createBoard(\n 'X', '-', 'X',\n '-', 'O', '-',\n '-', '-', '-'\n );\n assertEquals(new Position(0, 1), search.getBestMove(board, Player.O));\n\n // O can win by row=2, column=1\n board = BoardFactory.createBoard(\n 'X', 'O', 'X',\n '-', 'O', 'X',\n '-', '-', 'O'\n );\n assertEquals(new Position(2, 1), search.getBestMove(board, Player.X));\n\n // O can win by row=1, column=2\n board = BoardFactory.createBoard(\n '-', '-', 'X',\n 'O', 'O', '-',\n 'X', '-', '-'\n );\n assertEquals(new Position(1, 2), search.getBestMove(board, Player.X));\n }", "title": "" }, { "docid": "5ddbcb4c72b6fac03e4ea4df9332277b", "score": "0.51606137", "text": "private void toCirclingNodeImClosestTo()\n\t{\n\t\t//Here, we do some computing.\n\t\t//We first retrieve the current state of the game, the ghost, its knowledge graph & position & Pacman's position.\n\t\t//We also retrieve the positions of the other ghosts.\n\t\tGame game = (Game) this.getContext().getVariable(\"GAME\");\n\t\tGhost ghost = (Ghost) this.getContext().getVariable(\"GHOST\");\n\t\tUndirectedGraph<Node, Edge> graph = ghost.getKnowledge().getGraph();\n\t\tNode ghostPosition = ghost.getKnowledge().getKnowledgeAboutMySelf().getPosition();\n\t\tNode pacManPosition = ghost.getKnowledge().getPacManDescription().getPosition();\n\t\tCollection<Node> nodesWithGhosts = Node.getNodesContainingGhosts(graph.getNodes());\n\n\t\t//We retrieve the decision nodes that circle the Pacman's current position.\n\t\tCollection<Node> circlingNodes = graph.circleNode(pacManPosition, Node.getDecisionNodes(graph.getNodes())).keySet();\n\t\tMap<Node, Integer> ranks = new HashMap<>();\n\t\tNode targetNode = null;\n\t\t//For each node, we compute the rank of proximity of the current ghost compared to the others.\n\t\t//And Set the target to the node for which the current agent has the best rank.\n\t\tfor(Node circlingNode : circlingNodes)\n\t\t{\n\t\t\tint distanceToNode = game.getShortestPathDistance(ghostPosition.getId(), circlingNode.getId(), game.getGhostLastMoveMade(ghost.getGhostEnumValue()));\n\t\t\tranks.put(circlingNode, 1);\n\t\t\tfor(Node nodeWithGhost : nodesWithGhosts)\n\t\t\t{\n\t\t\t\tif(!nodeWithGhost.containsGhost(ghost.getGhostEnumValue()) && game.getShortestPathDistance(nodeWithGhost.getId(), circlingNode.getId()) < distanceToNode)\n\t\t\t\t{\n\t\t\t\t\tranks.put(circlingNode, ranks.get(circlingNode)+1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(targetNode == null || ranks.get(targetNode) > ranks.get(circlingNode))\n\t\t\t{\n\t\t\t\ttargetNode = circlingNode;\n\t\t\t}\n\t\t}\n\t\t//If the current ghost is already between Pacman & the target, we just make him chase Pacman directly\n\t\tfor(int nodeIndex : game.getShortestPath(targetNode.getId(), pacManPosition.getId()))\n\t\t{\n\t\t\tif(nodeIndex == ghostPosition.getId())\n\t\t\t{\n\t\t\t\tthis.toPacman();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n this.getContext().setVariable(\"SELECTED_NODE\", targetNode);\n\t\tthis.getContext().setVariable(\"CLOSING\", true);\n\t}", "title": "" }, { "docid": "32c20bb6caf7f7bb0e6c5c31e6c11e49", "score": "0.5160019", "text": "@Override\r\n public double heuristic() {\r\n \r\n if (this.small == 1)\r\n return 0;\r\n else\r\n return Math.min((Math.abs(this.big-3) + Math.abs(this.small-3) +1), // 5\r\n (Math.min((Math.abs(this.big-4) + Math.abs(this.small-2)+1), // 12\r\n (Math.abs(this.big-1) + this.small +1)))); // 30\r\n // 13 \r\n// return Math.abs(this.big-3) + Math.abs(this.small-3);\r\n }", "title": "" }, { "docid": "5633f073ce37038f2a0c1e3856fedb82", "score": "0.5152017", "text": "@Override\n public boolean doSearch(Point agentStartLocation, Grid startGrid) {\n //Holds the location of the next square to check based on the direction\n Point holdPoint;\n SearchState holdState;\n int counter = 0;\n\n Grid grid; //A variable to hold the grid for the state on top of the stack\n Point agentLocation; //A variable to hold the agentLocation for the state on top of the stack\n Point[] movements; //A variable to hold the movements list (due to order) for the state on top of the stack\n int currentDepth;\n\n Stack<SearchState> stateStack = new Stack<>(); //The stack to hold the different depths of the tree\n\n //Pushes the initial stack element\n stateStack.push(new SearchState(0, startGrid,agentStartLocation, null, counter));\n\n if (checkState(stateStack.peek().getGrid())) {\n storeDirectionsToSolution(stateStack.peek());\n writer.close();\n return true;\n }\n\n //Iterates until every state has been checked. Since depth is infinite for this problem however, it will only stop when a solution is found\n while(!stateStack.empty()) {\n holdState = stateStack.peek();\n stateStack.pop();\n grid = holdState.getGrid();\n agentLocation = holdState.getAgentLocation();\n movements = getPossibleDirections();\n currentDepth = holdState.getStateDepth();\n\n //Checks if it should attempt to continue node expansion. This is used to allow iterative deepening search to work.\n if (shouldNotAttemptToExpand(currentDepth)){\n continue;\n }\n\n //While there are still directions to check in movements for this particular depth of the tree\n for(Point direction : movements){\n\n holdPoint = new Point(agentLocation.x + direction.x, agentLocation.y + direction.y);\n //If the next square to check is in the grid (does not go over the edge of the grid) then...\n if (isNewPositionPossible(holdPoint.x, holdPoint.y)) {\n //Increment the counter for the nodes expanded and expand the node by pushing a new state for the next depth\n nodesGenerated++;\n counter++;\n stateStack.push(new SearchState(currentDepth + 1, grid.swapGridElements(agentLocation, holdPoint), MainGame.getPoint(holdPoint.x, holdPoint.y), holdState, counter));\n writeToFile(holdState, stateStack.peek());\n //Checks if the current state is the goal state\n if (checkState(stateStack.peek().getGrid())) {\n storeDirectionsToSolution(stateStack.peek());\n writer.close();\n return true;\n }\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "561e172db2143820816ccc3ba7725a8a", "score": "0.51469827", "text": "int getGainArenaWinningPoint();", "title": "" }, { "docid": "42dde66b7f40e2f9da21fcdbef4e8ea5", "score": "0.5143863", "text": "@Override\n public double heuristic() {\n int dis=0;\n for (int i = 0; i <state.length-1 ; i++) {\n if (i%2 == 0){\n double dx = goalState[i] - state[i];\n double dy = goalState[i+1] - state[i+1];\n dis+= (Math.abs(dx) + Math.abs(dy));\n\n }\n\n }\n return dis;\n\n\n }", "title": "" }, { "docid": "ca4c39fd0257d44cc7acb4c7daed24e1", "score": "0.51360583", "text": "public Position suggest() {\n Position[] opts;\n Position opt;\n\n // First, try to win.\n opts = findPairs(this.turn);\n if (opts.length > 0) {\n return opts[0];\n }\n\n // Next, block the win of the other player.\n opts = findPairs(this.turn.other());\n if (opts.length > 0) {\n return opts[0];\n }\n\n // Try to create a fork for ourself.\n opt = tryFork(this.turn);\n if (opt != null) {\n return opt;\n }\n\n // Block the opponent's fork.\n opt = blockFork(this.turn.other());\n if (opt != null) {\n return opt;\n }\n\n // Take center.\n if (grid[1][1] == Player.None) {\n return new Position(1, 1);\n }\n\n // Take the corner opposite the opponent.\n opt = findOppositeCorner(this.turn.other());\n if (opt != null) {\n return opt;\n }\n\n // Take a free corner.\n opt = findFreeCorner();\n if (opt != null) {\n return opt;\n }\n\n // Finally, take the first free spot.\n opts = blanks();\n if (opts.length > 0) {\n return opts[0];\n } else {\n // This will only be the case if the game is over.\n return null;\n }\n }", "title": "" }, { "docid": "1add722c8ff3e1ed19e2a2f348da1937", "score": "0.5130546", "text": "public double heuristic(){\n return Math.sqrt(Math.pow((posX - destX), 2) + Math.pow((posY - destY), 2));\n }", "title": "" }, { "docid": "ddc98376cd227b36604ac5123d318d8b", "score": "0.51257205", "text": "public int calc_heuristic(state s) \r\n\t{\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "810ccb11c4e0cc5b1c0c5f1dca05f4c4", "score": "0.5110539", "text": "public static void main(String[] args)\r\n\t{\r\n\t\tint startAngle=-10, finishAngle=100;\r\n//\t\tif(startAngle<0) {startAngle%=360; startAngle+=360; }\r\n//\t\tif(finishAngle<0) {finishAngle%=360; finishAngle+=360; }\r\n//\t\t\r\n//\t\tif(startAngle>360) startAngle%=360;\r\n//\t\tif(finishAngle>360) finishAngle%=360;\r\n//\t\tSystem.out.println(startAngle+\" \"+finishAngle);\r\n\t\t\r\n\t\tTestBoard b=new TestBoard(false);\r\n\t\t\r\n\t\tb.exception.add(new Point2I(15, 15));\r\n\t\tb.exception.add(new Point2I(15, 16));\r\n\t\tb.exception.add(new Point2I(16, 15));\r\n\t\t\r\n\t\tIConeFovAlgorithm a= new ConePrecisePremisive();\r\n\t\t\r\n\t\ta.visitConeFieldOfView(b, 10, 10, 10, startAngle, finishAngle);\r\n\t\t\r\n\t\tb.mark(10, 10, '@');\r\n\t\tb.print(-1, 21, -1, 21);\r\n\t\t\r\n\t\tSystem.out.println(\"visitederr \"+b.visiterr);\r\n\t\t\r\n\t\ta= new ShadowCasting();\r\n\t\tb.visited.clear();\r\n\t\t\r\n\t\ta.visitConeFieldOfView(b, 10, 10, 10, startAngle, finishAngle);\r\n\t\t\r\n\t\tb.mark(10, 10, '@');\r\n\t\tb.print(-1, 21, -1, 21);\r\n\t\t\r\n//\t\tIFovAlgorithm a1= new ShadowCasting();\r\n//\t\tb.visited.clear();\r\n//\t\t\r\n//\t\ta1.visitFieldOfView(b, 10, 10, 10);\r\n//\t\t\r\n//\t\tb.mark(10, 10, '@');\r\n//\t\tb.print(-1, 21, -1, 21);\r\n\t}", "title": "" }, { "docid": "42cb2533424cc292ba0ab4f60bc82b7a", "score": "0.51100045", "text": "interface StateExplorer {\n /**\n * Returns all the possible moves from the given state.\n * For example, from the initial state we have 16 possible moves\n * for the 8 pawns (each pawn can move either 1 or 2 squares)\n * and 4 possible moves for the two knights.\n * So in total, \n * getPossibleMoves(new State()) \n * should return a list with 20 moves.\n */\n Set<List<Slot>> getPossibleMoves(LuzhanqiState state);\n\n /**\n * Returns the possible moves from the given state that begin at start.\n * For example, \n * getPossibleMovesFromPosition(new State(), new Position(1,0)) \n * should return a list with 2 moves for the pawn at position 1x0.\n */\n Set<List<Slot>> getPossibleMovesFromPosition(LuzhanqiState state, int start);\n \n /**\n * Returns the list of start positions of all possible moves.\n * For example, \n * getPossibleStartPositions(new State()) \n * should return a list with 10 possible start positions:\n * 8 positions for the pawns (1x0 till 1x7)\n * 2 positions for the knights (0x1 and 0x6).\n */\n Set<Integer> getPossibleStartPositions(LuzhanqiState state);\n}", "title": "" }, { "docid": "351a9a8e06ff5165fd42effdd29260ef", "score": "0.5107905", "text": "public boolean attackTarget(double distance)\n/* 68: */ {\n/* 69: 69 */ this.owner.attackTime = Math.max(this.owner.attackTime - 1, 0);\n/* 70: 70 */ double sumLengthBB = getMinDistanceToInteract() + this.owner.getAttackRangeBonus();\n/* 71: 71 */ if (this.owner.haveShied())\n/* 72: */ {\n/* 73: 72 */ double distToStopDefending = sumLengthBB;\n/* 74: 73 */ if ((this.entityTarget instanceof EntityPlayer)) {\n/* 75: 74 */ distToStopDefending *= 2.0D;\n/* 76: */ } else {\n/* 77: 76 */ distToStopDefending = 0.0D;\n/* 78: */ }\n/* 79: 78 */ if ((this.owner.isDefending()) && (distance <= distToStopDefending) && (this.owner.attackTime <= 10)) {\n/* 80: 80 */ this.owner.setDefending(false);\n/* 81: */ }\n/* 82: */ }\n/* 83: 83 */ if (distance <= sumLengthBB)\n/* 84: */ {\n/* 85: 85 */ this.owner.attackEntity(this.entityTarget);\n/* 86: */ }\n/* 87: 88 */ else if (this.owner.isRanged())\n/* 88: */ {\n/* 89: 90 */ EntityLivingBase target = getFrontTarget();\n/* 90: 91 */ if ((target != null) && (this.owner.isSuitableTargetAlly(target)) && (target != this.owner.ridingEntity))\n/* 91: */ {\n/* 92: 93 */ float moveStrafing = -MathHelper.sin(this.owner.partyPositionAngle) / 4.0F;\n/* 93: 94 */ double ry = -Math.toRadians(this.owner.rotationYaw + this.owner.moveStrafing > 0.0F ? 90.0D : -90.0D);\n/* 94: 95 */ int x = MathHelper.floor_double(this.owner.posX - Math.sin(ry) * 6.0D);\n/* 95: 96 */ int z = MathHelper.floor_double(this.owner.posZ + Math.cos(ry) * 6.0D);\n/* 96: 97 */ Material mat = this.owner.worldObj.getBlock(x, MathHelper.floor_double(this.owner.posY) - 1, z).getMaterial();\n/* 97: 98 */ boolean move = false;\n/* 98: 99 */ if ((mat != Material.air) && (mat != Material.lava) && (mat.isSolid()))\n/* 99: */ {\n/* 100:101 */ move = true;\n/* 101: */ }\n/* 102: */ else\n/* 103: */ {\n/* 104:104 */ mat = this.owner.worldObj.getBlock(x, MathHelper.floor_double(this.owner.posY) - 2, z).getMaterial();\n/* 105:105 */ if (mat.isSolid()) {\n/* 106:106 */ move = true;\n/* 107: */ }\n/* 108: */ }\n/* 109:108 */ if (move) {\n/* 110:110 */ this.owner.moveStrafing = moveStrafing;\n/* 111: */ } else {\n/* 112:113 */ this.owner.moveStrafing = 0.0F;\n/* 113: */ }\n/* 114: */ }\n/* 115: */ else\n/* 116: */ {\n/* 117:116 */ this.owner.moveStrafing = 0.0F;\n/* 118: */ \n/* 119:118 */ this.owner.getLookHelper().setLookPositionWithEntity(this.entityTarget, 30.0F, 30.0F);\n/* 120:119 */ if (!this.owner.attackEntityWithRangedAttack(this.entityTarget, (float)distance)) {\n/* 121:122 */ return false;\n/* 122: */ }\n/* 123: */ }\n/* 124: */ }\n/* 125:129 */ return true;\n/* 126: */ }", "title": "" }, { "docid": "40c715c9060cb19d70291bc149720c45", "score": "0.51054347", "text": "public boolean canStart()\r\n/* 21: */ {\r\n/* 22:25 */ if (this.a.getAge() >= 0) {\r\n/* 23:26 */ return false;\r\n/* 24: */ }\r\n/* 25:28 */ if (this.a.getRNG().nextInt(400) != 0) {\r\n/* 26:29 */ return false;\r\n/* 27: */ }\r\n/* 28:32 */ List localList = this.a.world.getEntityList(EntityVillager.class, this.a.getAABB().expand(6.0D, 3.0D, 6.0D));\r\n/* 29:33 */ double d1 = 1.7976931348623157E+308D;\r\n/* 30:34 */ for (Object localObject = localList.iterator(); ((Iterator)localObject).hasNext();)\r\n/* 31: */ {\r\n/* 32:34 */ EntityVillager localagp = (EntityVillager)((Iterator)localObject).next();\r\n/* 33:35 */ if ((localagp != this.a) && \r\n/* 34: */ \r\n/* 35: */ \r\n/* 36:38 */ (!localagp.cl()) && \r\n/* 37: */ \r\n/* 38: */ \r\n/* 39:41 */ (localagp.getAge() < 0))\r\n/* 40: */ {\r\n/* 41:44 */ double d2 = localagp.h(this.a);\r\n/* 42:45 */ if (d2 <= d1)\r\n/* 43: */ {\r\n/* 44:48 */ d1 = d2;\r\n/* 45:49 */ this.b = localagp;\r\n/* 46: */ }\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49:52 */ if (this.b == null)\r\n/* 50: */ {\r\n/* 51:53 */ Vec3 localObject = abf.a(this.a, 16, 3);\r\n/* 52:54 */ if (localObject == null) {\r\n/* 53:55 */ return false;\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56:58 */ return true;\r\n/* 57: */ }", "title": "" }, { "docid": "e3a5dffb5f38493b6b0946318bc07b4b", "score": "0.5082871", "text": "private void develop() {\n if (currentLevel < setLevel) {\n oppoMobility = computeOppoMobility();\n if (oppoMobility != 0) { // opponent has a spot to move, switch to the opponent\n nextNode = getNextNodeName();\n int i = 0;\n while (!stop && i < oppoSpaces.size()) {\n int spot = oppoSpaces.get(i);\n Idea temp = new Idea(output, spot, board, oppo, currentLevel + 1, setLevel, givenPlayer, nextNode, alpha, beta);\n if (AB_PRUNING) { // can be disabled at the top\n pruneTheTree(temp, i);\n }\n nextLevel.add(temp);\n reset(currentLevel + 1);\n i++;\n }\n } else { // oppoent doesn't have a spot to move, do not switch\n List<Integer> playerSpaces = availableSpots(player);\n for (int i: playerSpaces) {\n nextLevel.add(new Idea(output, i, board, player, currentLevel, setLevel, givenPlayer, node, alpha, beta));\n reset(currentLevel + 1);\n }\n }\n \n saveUtilities(nextUtilityList);\n Collections.sort(nextLevel);\n saveUtilities(nextSortedUtilityList);\n \n if (nextLevel.size() > 0) {\n utility = nextLevel.get(nextLevel.size() - 1).utility;\n }\n } else { // reaches the end of the tree\n pieceWeightSum = computeWeightSum();\n oppoMobility = computeOppoMobility();\n utility = pieceWeightSum - oppoMobility / 2;\n }\n }", "title": "" }, { "docid": "2faf013a05ec30a7385a94fac729d1ce", "score": "0.507106", "text": "public int minimax(GameState currentBoard, int depth, int alpha, int beta, int activePlayer, int position, long endOfSearch) \r\n {\r\n \t//check if max depth-level is reached\r\n \tif(depth!=0) \r\n \t{\r\n\t\t\tGameState clonedBoard = currentBoard.clone();\r\n\t\t\tclonedBoard.makeMove(position);\r\n\t\t\t\r\n\t\t\t//check if game ended\r\n\t \tif(clonedBoard.gameEnded()) \r\n\t \t{\r\n\t \t\tint utilityValue;\r\n\t\t\t\tif(player == 1) \r\n\t\t\t\t{\r\n\t\t\t\t\tutilityValue = currentBoard.getScore(1)-currentBoard.getScore(2);\r\n\t\t\t\t} \r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\tutilityValue = currentBoard.getScore(2)-currentBoard.getScore(1);\r\n\t\t\t\t}\r\n\t\t\t\treturn utilityValue;\r\n\t \t}\r\n\t\t\t\t\t\t \t\r\n\t \tint maxValue = Integer.MIN_VALUE;\r\n\t \tint minValue = Integer.MAX_VALUE;\r\n\t \tint posValue;\r\n\t \t/**\r\n\t \t * Depending on which player is active, we are calculating the minValue or maxValue\r\n\t \t * in every iteration and we are performing alpha-beta-pruning as well\r\n\t \t */\r\n\t \tif(activePlayer==player) \r\n\t \t{\r\n\t \t \tfor(int i=1; i<7; i++)\r\n\t \t \t{\r\n//\t \t \t\tcheck if it is on the 5-sec-time-limit\r\n\t \t\t\tif(System.currentTimeMillis() < endOfSearch) \r\n\t \t\t\t{\r\n\t\t \t \t\tif(clonedBoard.moveIsPossible(i)) \r\n\t\t \t \t\t{\r\n\t\t \t \t\t\tif(player == 1) \r\n\t\t \t \t\t\t{\r\n\t\t \t \t\t\t\tposValue = minimax(clonedBoard, depth-1, alpha, beta, 2, i,endOfSearch);\r\n\t\t \t \t\t\t} \r\n\t\t \t \t\t\telse \r\n\t\t \t \t\t\t{\r\n\t\t \t \t\t\t\tposValue = minimax(clonedBoard, depth-1, alpha, beta, 1, i, endOfSearch);\r\n\t\t \t \t\t\t}\r\n\t\t\t \t\tmaxValue = Integer.max(maxValue, posValue);\r\n\t\t\t \t\talpha = Integer.max(alpha, posValue);\r\n//\t\t\t \t\tcheck if pruning is possible\r\n\t\t\t \t\tif(beta <= alpha) \r\n\t\t\t \t\t{\r\n\t\t\t \t\t\tbreak;\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\telse \r\n\t \t\t\t{\r\n\t \t\t\t\tint utilityValue;\r\n\t \t\t\t\tif(player == 1) \r\n\t \t\t\t\t{\r\n\t \t\t\t\t\tutilityValue = currentBoard.getScore(1)-currentBoard.getScore(2);\r\n\t \t\t\t\t} \r\n\t \t\t\t\telse \r\n\t \t\t\t\t{\r\n\t \t\t\t\t\tutilityValue = currentBoard.getScore(2)-currentBoard.getScore(1);\r\n\t \t\t\t\t}\r\n\t \t\t\t\treturn utilityValue;\r\n\t \t\t\t}\r\n\t \t}\r\n\t \treturn maxValue;\r\n\t \t}\r\n\t \telse \r\n\t \t{\r\n\t \t\tfor(int i=1; i<7; i++) \r\n\t \t\t{\r\n\t \t\t\tif(System.currentTimeMillis() < endOfSearch) \r\n\t \t\t\t{\r\n\t\t \t\t\tif(clonedBoard.moveIsPossible(i))\r\n\t\t \t\t\t{\r\n\t\t \t \t\t\tposValue = minimax(clonedBoard, depth-1, alpha, beta, player, i, endOfSearch);\r\n\t\t\t \t\tminValue = Integer.min(minValue, posValue);\r\n\t\t\t \t\tbeta = Integer.min(beta, posValue);\r\n\t\t\t \t\tif(beta<=alpha) \r\n\t\t\t \t\t{\r\n\t\t\t \t\t\tbreak;\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\telse\r\n\t \t\t\t{\r\n\t \t\t\t\tint utilityValue;\r\n\t \t\t\t\tif(player == 1) \r\n\t \t\t\t\t{\r\n\t \t\t\t\t\tutilityValue = currentBoard.getScore(1)-currentBoard.getScore(2);\r\n\t \t\t\t\t} \r\n\t \t\t\t\telse \r\n\t \t\t\t\t{\r\n\t \t\t\t\t\tutilityValue = currentBoard.getScore(2)-currentBoard.getScore(1);\r\n\t \t\t\t\t}\r\n\t \t\t\t\treturn utilityValue;\r\n\t \t\t\t}\r\n\t \t}\r\n\t \t\treturn minValue;\r\n\t \t}\r\n\t\t}\r\n \telse \r\n\t\t{\r\n\t\t\tint utilityValue;\r\n\t\t\tif(player == 1) \r\n\t\t\t{\r\n\t\t\t\tutilityValue = currentBoard.getScore(1)-currentBoard.getScore(2);\r\n\t\t\t} \r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tutilityValue = currentBoard.getScore(2)-currentBoard.getScore(1);\r\n\t\t\t}\r\n\t\t\treturn utilityValue;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cfe6abed9838c1a269fc74c333ba6bf0", "score": "0.5066506", "text": "public interface InitialPlacement {\n\n /**\n * @return The number of players for the team\n */\n int numberOfPlayers();\n\n /**\n * @param number Players number that will be placed. [0 ... numberOfPlayers() - 1]\n * @param east true ... The east team is placed, false ... The west team is placed\n * @return The placement values for the player\n */\n default Values placementValues(int number, boolean east) {\n Values values = placementValuesWest(number);\n if (east) {\n values = values.flipSide();\n }\n return values;\n }\n\n /**\n * @param number Players number that will be placed. [0 ... numberOfPlayers() - 1]\n * @return The placement values for a west player\n */\n Values placementValuesWest(int number);\n\n\n /**\n * Placement values\n */\n class Values {\n\n private final double posx; // Position inside the own half of the field is\n private final double posy;\n private final double direction; // Must be in deg (0 to 360)\n\n /**\n * Defines the position of a player at the field.\n * Size of the field is 100 x 50.\n * (0, 0) is the coordinate of the center of the field.\n * x-values smaller than 0 place the player inside the own field\n * y-values smaller than 0 place the player on the left side of the field looking in the direction of the opponent goal\n * directions of 0 let the player look at the direction of the opponent door\n * directions greater than 0 turn the player to the right\n *\n * @param posx [-50, 50]\n * @param posy [-30, 30]\n * @param direction in Degree.\n */\n public Values(double posx, double posy, double direction) {\n this.posx = posx;\n this.posy = - posy;\n this.direction = direction * -1.0;\n }\n\n public double getPosx() {\n return posx;\n }\n\n public double getPosy() {\n return posy;\n }\n\n public double getDirection() {\n return direction;\n }\n\n public Values flipSide() {\n return new Values(-posx, posy, flipDirection(direction));\n }\n\n private double flipDirection(double direction) {\n Vec2D v1 = new Vec2D(Vec2D.degToRad(direction));\n Vec2D v2 = new Vec2D(-v1.getX(), v1.getY());\n return Vec2D.radToDeg(v2.phi());\n }\n }\n\n}", "title": "" }, { "docid": "acfb0969e18ab6409b9a45ca1b560141", "score": "0.5062757", "text": "public void findBestMove()\n\t{\n\t\tArrayList<BoardPosition> allPosNextMoves;\n\t\tallPosNextMoves = allPosNextStates.findAllPosNextStates();\n\t\t\n\t\tBoardPosition bestMove = findHighestReward(allPosNextMoves);\n\t\t//if(RewardIsAboveThreshold());\n\t\t\n\t\t// NOTE: the random black king move that was used to calculate the \n\t\t// reward is not the final choice of the opponent agent\n\t\tchessBoard.whiteKing.setx((int)bestMove.getK().getX());\n\t\tchessBoard.whiteKing.sety((int)bestMove.getK().getY());\n\t\tchessBoard.rook.setx((int)bestMove.getR().getX());\n\t\tchessBoard.rook.sety((int)bestMove.getR().getY());\n\t\t\n\t\tchessBoard.fillEmptyChessboard();\n\t\tchessBoard.addKRKtoChessboard();\n\t\t\n\t\t//chessBoard.printBoard();\n\t}", "title": "" }, { "docid": "0b1b6833dd0816d67c7f221818ae23c0", "score": "0.5052752", "text": "private void setFlagValue(Piece pflag)\n\t{\n\t\tint color = pflag.getColor();\n\t\tint v;\n\n\t// If the flag is known (because it is the last piece on the board)\n // or is a bombed flag\n\t// it has a high value and must be protected or\n\t// attacked at all costs.\n\t// (But this value must be less than alpha/beta).\n\n\t\tif ((pflag.isKnown()\n || isBombedFlag[color])\n\t\t\t&& (color == Settings.topColor\n\t\t\t\t|| unknownBombs[Settings.bottomColor] == 0))\n\t\t\tv = VALUE_ONE * 2;\n\t\telse {\n\n\t// Set the flag value higher than a worthwhile bomb\n\t// so that an unknown miner that removes a bomb\n\t// to get at the flag\n\t// will attack the flag rather than another bomb.\n\n v = aiBombValue(pflag);\n\n\t// Flag value needs to be higher than twice the lowest value piece\n\t// and the highest expendable piece value,\n\t// so that these piece(s) will attack a possible flag.\n\t// An attack on a possible flag by a piece other than a Miner\n // is WINS, but because the target\n\t// is unmoved and suspected, the attacker loses its complete value\n // and gains only half the value of the flag.\n\t// So the only pieces that will attack a suspected flag are\n\t// Eights and those with lessor value.\n\t//\n\t// For example, if R2 and R6 are on the board, Blue Flag value is\n\t// slightly more than R6. This allows R6 to attack the Blue Flag.\n\t// But if R1 and R8 are on the board,\n\t// Blue Flag value is more than the R8.\n\t// R8 will attack the Flag and not R1, because we do not want\n\t// R1 to attack the Flag, which would lose if it turned out to be\n\t// a Bomb.\n //\n // Yet if the value is set too high, valuable AI pieces will attack\n // the opponent flag. For example, if the AI does not have a\n // Spy and the opponent one does, the known AI One in an endgame\n // with few pieces could be close to the value of expendable pieces.\n\n v = Math.max(v, minPieceValue(1-color)*2 + VALUE_NINE);\n v = Math.max(v, maxExpendableValue(1-color)*2 + VALUE_NINE);\n\t\t}\n\n\t\tvalues[color][Rank.FLAG.ordinal()] = v;\n\t}", "title": "" }, { "docid": "748fb16518893ad47c1bee4856ccf354", "score": "0.5043038", "text": "@Override\n public double reward(State s, GroundedAction a, State sprime) {\n ObjectInstance agent = sprime.getFirstObjectOfClass(BirdBox.CLASSAGENT);\n boolean hungry = agent.getBooleanValue(BirdBox.ATTHUNGRY);\n\n //are they at goal location?\n if(!hungry){\n return 1;\n }\n\n return 0;\n }", "title": "" }, { "docid": "95f38090b369fa2fb94520afd7493b87", "score": "0.503997", "text": "public void makeDecision() {\n\t\tboolean foundTarget = false;\n\t\tPlayer[] otherPlayers = world.getPlayers().toArray(new Player[world.getNumPlayers()]);\n\n\t\tif (currentPath.isEmpty()) {\n\t\t\tif (hasGun && cooldown-- >= 0 && getGun().enoughPaint()) {\n\t\t\t\tfor (Player player : otherPlayers) {\n\t\t\t\t\tif (!player.equals(this)\n\t\t\t\t\t\t\t&& level.hasLOS(gridPosition, world.displayPositionToCoords(player.getPosition()))\n\t\t\t\t\t\t\t&& inRange(player.getPosition())) {\n\t\t\t\t\t\tfoundTarget = true;\n\t\t\t\t\t\tPoint target = world.displayPositionToCoords(player.getPosition());\n\t\t\t\t\t\tdouble angle = calculateLookDirection(target);\n\t\t\t\t\t\tsetLookDirection(angle);\n\t\t\t\t\t\tgun.fire(lookDirection, target, world);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!foundTarget && gun instanceof SplatGun) {\n\t\t\t\t\tPoint target = getQuadrant(SplatBullet.RANGE);\n\t\t\t\t\tsetLookDirection(calculateLookDirection(target));\n\t\t\t\t\tgun.fire(lookDirection, target, world);\n\t\t\t\t} else if (!foundTarget && !currentPath.isEmpty()) {\n\t\t\t\t\tmakeNextMove();\n\t\t\t\t}\n\t\t\t} else if (!intermediatePath.isEmpty()) {\n\t\t\t\tif (cooldown == -5)\n\t\t\t\t\tcooldown = 0;\n\t\t\t\tmakeNextMove();\n\t\t\t} else {\n\t\t\t\tif (cooldown == -5) {\n\t\t\t\t\tif (hasGun && !gun.enoughPaint()) {\n\t\t\t\t\t\thasGun = false;\n\t\t\t\t\t}\n\t\t\t\t\tcooldown = 0;\n\t\t\t\t}\n\t\t\t\tboolean gbInRange = false;\n\t\t\t\tif (!hasGun) {\n\t\t\t\t\tgunBoxes = new ArrayList<>(world.getGunBoxes());\n\t\t\t\t\tfor (GunBox gb : gunBoxes) {\n\t\t\t\t\t\tif (calculateDistance(gb.getRect().getLocation(), position) < MAX_DIST_GUNBOXES) {\n\t\t\t\t\t\t\tpathToFreePoint(world.displayPositionToCoords(\n\t\t\t\t\t\t\t\t\tnew Point((int) gb.getRect().getCenterX(), (int) gb.getRect().getCenterY())));\n\t\t\t\t\t\t\tgbInRange = true;\n\t\t\t\t\t\t\tmakeNextMove();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!gbInRange) {\n\t\t\t\t\tPoint point = closestFreePoint();\n\t\t\t\t\tif (point != null) {\n\t\t\t\t\t\tpathToFreePoint(point);\n\t\t\t\t\t\tmakeNextMove();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tmakeNextMove();\n\t\t}\n\t}", "title": "" }, { "docid": "d71432487105494be9368225161d483f", "score": "0.5027822", "text": "public abstract void calculateHeuristic();", "title": "" }, { "docid": "df08ecb12881b6794b6b0e7eff9880df", "score": "0.50264436", "text": "@Test\n\tpublic void test2() {\n\t\tmap = new Map(gridSize, rows, cols);\n\t\t// Mark the obstacle on the map\n\t\tmarkMap(map);\n\t\tPathFinding pathFinding = new PathFinding(map);\n\t\tDecisionMaker dm = createDM(map, pathFinding);\n\t\tPoint robotPos = new Point(-0.9f, 0.7f);\n\t\tPoint destPos = new Point(0.7f, 0.0f);\n\t\tdm.findPath(robotPos, convertPointToGridLocation(destPos));\n\t\tList<Point> foundPath = getAllPointsInFoundPath(dm);\n\t\tassertFoundPath(foundPath);\n\t\tlabelAndPrintMap(robotPos, foundPath);\n\t}", "title": "" }, { "docid": "bd79f6ad2576acbc0970013562c23db5", "score": "0.50233614", "text": "public MyBest() {\r\n move = null;\r\n score = 0;\r\n searchDepth = 0;\r\n }", "title": "" }, { "docid": "aa2d5a110e9252a5be7c8662469d39e9", "score": "0.5022764", "text": "public int[] solve(TreeNode node) {\n if (node == null){\n // for initialization\n // the first two values are quite intuitive, we need 0 cameras to realize state 0 or state 1\n // the third value can be any number larger than 0(>=1), it is not necessary to place a camera\n // at null node, we just want to make the cost higher than previous states,\n // as a result, when we do Math.min() in our following steps, this case will be regarded as worse than not placing any camera here(null node)\n return new int[]{0, 0, 1};\n }\n\n int[] L = solve(node.left);\n int[] R = solve(node.right);\n\n // minimum camera to guarantee left node to be covered\n int mL12 = Math.min(L[1], L[2]);\n // minimum camera to guarantee right node to be covered\n int mR12 = Math.min(R[1], R[2]);\n\n // state 0: the children are all state 1, the current should be in state 0\n int d0 = L[1] + R[1];\n\n // state 1: no camera in current node,\n // but at least one of the children should have a camera to guarantee the state 1\n // select the smaller one\n // for left node: L[2] + mR12, for right node: R[2] + mL12\n int d1 = Math.min(L[2] + mR12, R[2] + mL12);\n\n // state 2, we will place a camera in current node\n // to optimize the result, we don't need any children to be covered or not,\n // any state should be fine, we just want the least number of cameras\n // for left side: Math.min(L[0], mL12), for right side: Math.min(R[0], mR12)\n int d2 = 1 + Math.min(L[0], mL12) + Math.min(R[0], mR12);\n\n // return the current layer to parent node\n return new int[]{d0, d1, d2};\n }", "title": "" }, { "docid": "49bd914856ece791892a4ad64be3f27f", "score": "0.50227183", "text": "private static void call_BackTracking(int[] arr, int[] arr_visited, int oil_mode, int oil_quan,int cur_loc, int moves, String path) {\n\t\tif(moves>=final_min_move)\n\t\t{\n\t\t\tif(path.startsWith(\"G->car2filled ->G->car6filled ->car7filled ->P->car5filled\")){\n//\t\t\tSystem.out.println(path);\n//\t\t\tSystem.out.println(moves);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(AllVisited(arr_visited)){\n\t\t\tif(moves< final_min_move)\n\t\t\t\tfinal_min_move = moves;\n//\t\t\tSystem.out.println(path);\n//\t\t\tSystem.out.println(moves);\n\t\t\treturn; \n\t\t}\n\t\tif(oil_quan>=1){\n \t\tfor (int i = 1; i < arr.length-1; i++) {\n\t\t\tif(arr[i]==oil_mode && arr_visited[i]!=1)\n\t\t\t{\n\t\t\t\tarr_visited[i] = 1; \n\t\t\t\tcall_BackTracking(arr, arr_visited, oil_mode, oil_quan-1, i, moves+Math.abs(i-cur_loc), path+\"car\"+(i-1)+\"filled ->\");\n\t\t\t\tarr_visited[i] = 0;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t}\n\t\tif(oil_quan<=1 ){\n\t\t\tif(AllCurModeVisited(arr, arr_visited, oil_mode)){\n\t\t\t\tint loc = oil_mode==1?arr.length-1 :0;\n\t\t\t\tcall_BackTracking(arr, arr_visited, oil_mode==1?2:1, 2, oil_mode==1?arr.length-1 :0 , moves+(Math.abs(cur_loc-loc)), path+(oil_mode==1?\"P\":\"G\")+\"->\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint loc = oil_mode==1?0:arr.length;\n\t\t\t\tcall_BackTracking(arr, arr_visited, oil_mode, 2, oil_mode==1?0:arr.length-2 , moves+(Math.abs(cur_loc-loc)), path+(oil_mode==2?\"P\":\"G\")+\"->\");\n\t\t\t\tcall_BackTracking(arr, arr_visited, oil_mode==1?2:1, 2, oil_mode==1?arr.length-2 :0 , moves+(Math.abs(oil_mode==1?cur_loc-arr.length:cur_loc-0)), path+(oil_mode==1?\"P\":\"G\")+\"->\");\n\t\t\t}\n\t\t}\n\t\tif(AllCurModeVisited(arr, arr_visited, oil_mode) && oil_quan==2 ){\n\t\t\tint loc = oil_mode==1?arr.length :0;\n\t\t\tcall_BackTracking(arr, arr_visited, oil_mode==1?2:1, 2, oil_mode==1?arr.length-2 :0 , moves+(Math.abs(cur_loc-loc)), path+(oil_mode==1?\"P\":\"G\")+\"->\");\n\t\t}\n\t}", "title": "" }, { "docid": "36805e1714fa278076a4daaa011c75ba", "score": "0.5012079", "text": "public SearchInfo search()\n\t{\n\t\tbestScore = -20000;\n\t\tcuts = 0;\n\t\tlong start = System.currentTimeMillis();\n\t\tArrayList<byte[]> bestMoves = searchRoot(SEARCH_DEPTH, board, side);\n\t\tlong end = System.currentTimeMillis();\n\t\t\n\t\tfor (byte[] move: bestMoves)\n\t\t{\n\t\t\tif (!MoveGenerator.causesCheck(board, move, side))\n\t\t\t{\n\t\t\t\tbestMove = move;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new SearchInfo(nodes, end-start, Util.arrToAlg(bestMove));\n\t\t\n\t}", "title": "" }, { "docid": "e2e1f839959e971013761ca7cb1a8e03", "score": "0.50105685", "text": "void bestMove(int depth) {\n\t\tint alpha = Integer.MIN_VALUE;\n\t\tint beta = Integer.MAX_VALUE;\n\t\tint v = minimax(0, alpha, beta, depth);\n }", "title": "" }, { "docid": "9526e04ee08617fdcb974860b4f630b5", "score": "0.5010471", "text": "@Override\r\n\tpublic Solution<T> search(Searchable<T> s) {\r\n\r\n\t\t\r\n\t\tState<T> startState = s.getStartState();\r\n\t\tstartState.setCost(0);\r\n\t\topenList.add(startState);\r\n\t\t\r\n\t\twhile (!openList.isEmpty()){\r\n\t\t\tState<T> currState=openList.poll();\r\n\t\t\tcloseList.add(currState);\r\n\t\t\tthis.evaluatedNodes++;\r\n\t\t\tState<T> goalState = s.getGoalState();\r\n\t\t\t\r\n\t\t\tif (currState.equals(goalState)) {\r\n\t\t\t\treturn backTrace(currState);\r\n\t\t\t}\t\r\n\t\t\tList<State<T>> neighbours = s.getAllPossibleStates(currState);\r\n\t\t\tfor (State<T> neighbor : neighbours){\r\n\t\t\t\tif (!openList.contains(neighbor) && !closeList.contains(neighbor)) {\r\n\t\t\t\t\tneighbor.setCameFrom(currState);\r\n\t\t\t\t\tneighbor.setCost(s.getMoveCost(currState, neighbor));\r\n\t\t\t\t\topenList.add(neighbor);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tdouble newPathCost = (currState.getCost() + s.getMoveCost(currState, neighbor));\r\n\t\t\t\t\tif (neighbor.getCost() > newPathCost){\r\n\t\t\t\t\t\tneighbor.setCost(newPathCost);\r\n\t\t\t\t\t\tneighbor.setCameFrom(currState);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tif(!openList.contains(neighbor)){\r\n\t\t\t\t\t\t\topenList.add(neighbor);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{ //for updating the sorting by the priority...\r\n\t\t\t\t\t\t\topenList.remove(neighbor);\r\n\t\t\t\t\t\t\topenList.add(neighbor);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\treturn null;\r\n\t}", "title": "" }, { "docid": "3c0d6de2a6c85f38661cc6de0e5f3b3e", "score": "0.50039774", "text": "public Node search(boolean useRepeatedStateChecking) {\n\tLocation Node_initial_node = (graph.findLocation(initialLoc));\n\tif (Node_initial_node == null)\n\t\n\t{\n\t\treturn null;\n\t}\n\t\n\t\n\tNode initialNode = new Node(null);\n\t\tSet<String> closedList = null;\n\t// Create a frontier object ...\n\tSortedFrontier fringe = new SortedFrontier(SortBy.g);\n\t// Add the initial node to the frontier ...\n\tfringe.addSorted(initialNode);\n\t\n\n\tif (useRepeatedStateChecking) {\n\t\tclosedList = new HashSet<String>();\n\t}\n\t// Initialize the expansion count ...\n\tnodeExpansionCount = 0;\n\t// Start searching, and keep searching until the fringe is empty ...\n\tNode node;\n\twhile (!(fringe.isEmpty())) {\n\t\t// Get the next node on the frontier ...\n\t\tnode = fringe.removeTop();\n\t\t// Check to see if we have reached the depth limit ...\n\t\tif (node.depth >= depthLimit) {\n\t\t\t// Failure to find a solution within the allowed depth ...\n\t\t\treturn (null);\n\t\t}\n\t\t// Check to see if it is a solution ...\n\t\t// From BF Solutions \n\t\tif (node.isDestination(destinationLoc)) {\n\t\t\t// We have found a goal node, so return it from this method ...\n\t\t\treturn (node);\n\t\t} else {\n\t\t\t\n\t\t\t// We are about to expand this node, so add it to the\n\t\t\t// \"explored set\" (i.e., the \"closed list\") if we are doing\n\t\t\t// repeated state checking ...\n\t\t\tif (useRepeatedStateChecking) {\n\t\t\t\tclosedList.add(node.loc.name);\n\t\t\t}\n\t\t\t// This is not a goal node, so we need to expand it ... // From BF Search Solution\n\t\t\tnode.expand();\n\t\t\tnodeExpansionCount++;\n\t\t\t// Add the children of this node to the frontier. If we\n\t\t\t// are doing repeated state checking, only add a node if\n\t\t\t// its state is not already in the frontier and its state\n\t\t\t// is not in the \"explored set\".\n\t\t\tfor (Node child : node.children) {\n\t\t\t\tif (!useRepeatedStateChecking\n\t\t\t\t\t\t|| (!(fringe.contains(child)) && !(closedList.contains(child.loc.name))))\n\t\t\t\t\tfringe.addSorted(child);\n\t\t\t}\n\t\t\t\n\t\t\t// We're now ready to loop back and try the next node ...\n\t\t\t\n\t\t}\n\t}\n\t\n\t\t\n\t\treturn null;\n}", "title": "" }, { "docid": "4ba29d946f69de2f669eba34acb5267a", "score": "0.5003411", "text": "@DISPID(1611137024) //= 0x60080000. The runtime will prefer the VTID if present\n @VTID(27)\n AnyObject featureToLocatePositions();", "title": "" }, { "docid": "783f17cce2cb519ba3930523b510783e", "score": "0.49965638", "text": "ArrayList<Location> possibleAttacks();", "title": "" }, { "docid": "917bc6d0642ea7c8c94ba3d10dd49952", "score": "0.49951074", "text": "public void reposition() {\n List<Point> our_snowmen = nearbyItems(Const.GROUND_SMR);\n List<Point> their_snowmen = nearbyItems(Const.GROUND_SMB); // hard to see!\n Set<Point> forbidden = new HashSet<>(visited);\n\n forbidden.addAll(itemsMatching(Const.GROUND_TREE));\n\n // 1. Create a disjoint set of all the unexplored parts of the map\n // 2. Move to the centroid of the largest unexplored area\n // 3. Ensure multiple players aren't moving to exactly the same place,\n // by adding 8 neighbors of other player's locations and runTargets\n // to forbidden set\n\n for (Point p : our_snowmen) {\n forbidden.addAll(neighbors8(p));\n }\n for (Player p : players()) {\n forbidden.addAll(neighbors8(p.runTarget));\n }\n\n for (Point ours : our_snowmen) {\n List<Point> encroachments = encroachments(ours);\n if (!encroachments.isEmpty()) {\n encroachments.sort(Comparator.comparingInt(e -> euclidean(e, pos)));\n Collections.reverse(encroachments);\n String encroachmentString = encroachments.stream().map(Point::toString)\n .collect(Collectors.joining(\", \"));\n log(\"%s is encroached at %s\", ours, encroachmentString);\n for (Point enc : encroachments) {\n if (!forbidden.contains(enc)) {\n log(\"%s is repositioning to encroachment at %s\", this, enc);\n runTarget = enc;\n return;\n }\n }\n }\n }\n\n // don't want everyone going to the same place\n // centers() will always return 4 interesting spots\n int granularity = our_snowmen.size() > 2 ? 16 : 8;\n int index = Arrays.asList(cList).indexOf(this);\n Point dest = centers(granularity).get(index);\n\n // don't send everyone to the same point\n Iterator<Point> n = neighbors8(dest).iterator();\n while ((forbidden.contains(dest) || euclidean(dest, pos) < 8) && n.hasNext()) {\n Point neighbor = n.next();\n dest = new Point(clamp(0, Const.SIZE - 1, neighbor.x + 8),\n clamp(0, Const.SIZE - 1, neighbor.y + 8));\n }\n\n log(\"%s is repositioning to %s\", this, dest);\n this.runTarget = dest;\n }", "title": "" }, { "docid": "4451fbe435059c32d931bf856b965a96", "score": "0.4988315", "text": "public long getLegalMoves() {\n if(!movesSearched){\n long movers = this.moverPieces;\n long opponent = this.opponentPieces;\n long occupied = this.occupied; // keep this allocated\n long unoccupied = this.unoccupied;\n\n long tempUnOcc = unoccupied;\n long searchBit = Long.lowestOneBit(tempUnOcc);\n long surrounding;\n long surroundingOpp;\n long moves = 0L;\n\n long searchDirBit;\n int searchDirDiff;\n int squareIndex;\n int closestEmptyIndex;\n int closestMoverIndex;\n long searchDirRay;\n long moverRayIntersect;\n\n // if(Long.bitCount(occupied) < 32){//Note May should skip this\n // comparison and just default to one or the other\n while (searchBit != 0L) {\n squareIndex = Long.numberOfTrailingZeros(searchBit);\n surrounding = ajacentArray[squareIndex];// gets surrounding squares from static table\n surroundingOpp = surrounding & opponent;\n\n while (surroundingOpp != 0L) {// if none of the surrounding squares are an opponent then its not a valid move\n\n searchDirBit = Long.lowestOneBit(surroundingOpp);\n searchDirDiff = Long.numberOfTrailingZeros(searchDirBit)\n - squareIndex;// This diff lets us search in a diretion using bitshift.\n searchDirRay = rayArray[squareIndex][translationArray[searchDirDiff + 9]];\n moverRayIntersect = searchDirRay & movers;\n if(moverRayIntersect!= 0L){// if mover has no pieces in ray path its not valid move.\n if(searchDirDiff > 0){\n closestMoverIndex = Long.numberOfTrailingZeros(moverRayIntersect);\n closestEmptyIndex = Long.numberOfTrailingZeros(searchDirRay & unoccupied);\n if(closestMoverIndex < closestEmptyIndex){\n this.moves = this.moves |searchBit;//add square to valid Moves\n break;//end search if found\n }\n }else{\n closestMoverIndex = Long.numberOfLeadingZeros(moverRayIntersect);\n closestEmptyIndex = Long.numberOfLeadingZeros(searchDirRay & unoccupied);\n if(closestMoverIndex < closestEmptyIndex) {\n this.moves = this.moves |searchBit;//add square to valid Moves\n break;//end search if found\n }\n }\n }\n\n surroundingOpp = surroundingOpp & ~searchDirBit;// zero's search\n // Direction\n }\n\n tempUnOcc = tempUnOcc ^ searchBit;// sets searched bit to zero\n searchBit = Long.lowestOneBit(tempUnOcc);// finds new bit(square) to\n // search.\n }\n \n }\n movesSearched = true;\n mobility = Long.bitCount(moves);\n return moves;\n }", "title": "" }, { "docid": "b5312c1076b3749905127c59f96b076e", "score": "0.49882194", "text": "public abstract boolean depthSearch();", "title": "" }, { "docid": "eef905b275461f81126d05140eef29bb", "score": "0.4987877", "text": "void attackLanes()\n\t{\n\t final int attacklanes[][] = { { 89, 90}, { 93, 94}, {97, 98} };\n\n\t\tfor (int lane = 0; lane < 3; lane++) {\n\n\t\t\tint[][] fleetmp = new int[2][121];\n\t\t\tfor (int c = RED; c <= BLUE; c++) {\n for (int j = 0; j <= 120; j++)\n fleetmp[c][j] = DEST_VALUE_NIL;\n for (int i : attacklanes[lane]) {\n int y = 0;\n if (bombedLane(Settings.bottomColor, lane) == 2)\n y = 2; // start above the bombs\n for (; y < 6; y++)\n fleetmp[c][Grid.side(c, i - y*11)] = 6 - y;\n }\n }\n\n\t\t// All pieces (except eights) flee the lane\n\t\t// if front opponent pieces are likely bombs.\n\n if (bombedLane(Settings.bottomColor, lane) == 2) {\n for (int r = 1; r <= 10; r++) {\n if (r == 8)\n continue;\n genPlanAll(fleetmp[Settings.topColor], Settings.topColor, r, DEST_PRIORITY_LANE);\n }\n continue;\n }\n\n\t\t// If there is no known or suspected opponent rank in the lane,\n\t\t// guard the lane with a rank equal to or lower than\n\t\t// the lowest unknown opponent expendable rank.\n\t\t// Thus, if an unknown opponent rank should approach,\n\t\t// an attack will be zero or positive for the AI.\n\t\t\n\t\t// If there is a known or suspected opponent rank in the lane,\n\t\t// guard the lane with a lower rank.\n\t\t// (An equal rank could be insufficient because the AI\n\t\t// often misguesses suspected ranks and because known\n\t\t// ranks are often more aggressive)\n\n\t\t\tint[] lowRank = new int[2];\n\t\t\tlowRank[Settings.bottomColor] = lowestUnknownExpendableRank + 1;\n\t\t\tlowRank[Settings.topColor] = 99;\n\t\t\tTestPiece aiInvinciblePiece = null;\n TestPiece lowPiece = null;\n TestPiece highPiece = null;\n\n\t\t\tfor (int i : attacklanes[lane])\n\t\t\tfor (int y = 0; y < 5; y++) {\n int j = i - y * 11;\n\t\t\t\tTestPiece p = (TestPiece)getPiece(j);\n\t\t\t\tif (p == null)\n\t\t\t\t\tcontinue;\n Rank rank = p.getRank();\n\t\t\t\tif (rank.ordinal() < lowRank[p.getColor()])\n\t\t\t\t\tlowRank[p.getColor()] = rank.ordinal();\n\n\t\t\t\tif (p.getColor() == Settings.bottomColor)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (isInvincible(p)\n && (aiInvinciblePiece == null\n || rank.ordinal() < aiInvinciblePiece.getRank().ordinal()))\n aiInvinciblePiece = p;\n\n\t\t// Actively chased higher ranked pieces flee the lane rearward\n\t\t// (unless there is only one lower opponent rank).\n // to discourage the piece from moving\n // forward in the lane, thus allowing two opponent pieces\n // to easily trap it.\n\n // (Until Version 12, the AI piece preemptively evacuated.\n // This was a waste of moves and more importantly\n // removed a deterrent to higher ranked opponent pieces.)\n\n // TBD: this, like the rest of attackLanes, needs to be\n // replaced by localized minimax, which can predict what\n // could happen in the lanes.\n\n if (y < 3\n && isChased(j)\n && lowerRankCount[Settings.bottomColor][rank.ordinal()-1] > 1) {\n setPlan(false, p, fleetmp[Settings.topColor], DEST_PRIORITY_LANE);\n continue;\n }\n\n if (lowPiece == null || rank.ordinal() < lowPiece.getRank().ordinal())\n lowPiece = p;\n if (highPiece == null || rank.ordinal() > highPiece.getRank().ordinal())\n highPiece = p;\n\n\t\t\t} // y\n\n\t\t// Try to keep multiple middle ranked AI pieces out of the lane\n\t\t// out of the lanes. This reduces the risk of forks,\n // stacking, and helps to push the excess pieces into\n\t\t// other lanes.\n\n // We really want the *right* pieces in the lanes\n // For example, 2 known Fours is not good, but an\n // unknown Four clearing the way for an unknown Miner\n // might be a good combination. This code will push one of the Fours\n // back, but will allow the Four and the Miner to proceed.\n // TBD: this needs more work\n\n\t\t// The goal of fleeing in attacklanes()\n\t\t// is to keep the higher ranked piece out of the lane.\n\t\t// Until version 10.0, fleeing was awarded to both\n\t\t// the AI and the opponent. But the proximity pruning\n\t\t// mechanism then causes chases to be thwarted in the lane.\n\t\t// For example:\n\t\t// -- -- --\n\t\t// R2 -- --\n\t\t// -- -- xx\n\t\t// -- B3 xx\n\t\t// -- -- --\n\t\t// If R2 moves down, B3 may be close enough to R2 to allow\n\t\t// B3 to be considered, and if fleeing is awarded more than\n\t\t// chasing, R2 will not chase. Even worse, R2 may move\n\t\t// away, because perhaps B3 would no longer be close enough for the\n\t\t// higher value B3 fleeing move to be considered.\n\t\t//\n\t\t// TBD: this effect likely occurs with other priority differences\n\t\t// as well.\n\n if (lowPiece != null\n && highPiece != null)\n for (int rank = lowPiece.getRank().ordinal(); rank <= highPiece.getRank().ordinal(); rank++) {\n for (TestPiece pp : planPiece[Settings.topColor][rank-1])\n if (pp != null && pp != lowPiece && pp != highPiece)\n setPlan(pp, fleetmp[Settings.topColor], DEST_PRIORITY_LANE);\n\n }\n\n\t\t// Stealthy pieces preemptively evacuate the lane because\n // of the ease of cornering by an opponent expendable piece,\n // should one decide to enter the lane.\n\n // This is a sissy heuristic; deeper minimax can predict\n // whether a piece can becomes cornered, so this needs to\n // be handled by deep search.\n\n // As of Version 12, fleeing the lane is now a default plan.\n // If the piece does not have a plan, then it should\n // not wander into the lanes, clogging them up, and\n // potentially losing stealth. A piece only enters\n // the lane if it has a plan. This is primarily directed\n // at unknown Miners, which are not called into duty\n // until a path to the flag has been identified.\n\n\t\t\tif (aiInvinciblePiece != null\n\t\t\t\t&& isStealthy(aiInvinciblePiece, lowRank[Settings.bottomColor])) {\n if (!hasPlan(aiInvinciblePiece))\n\t\t\t\t\tsetPlan((TestPiece)aiInvinciblePiece, fleetmp[Settings.topColor], DEST_PRIORITY_LANE);\n\t\t\t}\n\n\t\t// It is tempting to make guarding the lanes high priority,\n\t\t// because the AI often cannot see an attack on its weak flanks\n\t\t// until too late. But chasing is just as important,\n\t\t// especially if an opponent piece has made it past the lanes.\n\t\t// Guarding the lanes does no good in this case.\n\t\t// Worse, the AI pieces would be glued to the lanes allowing\n\t\t// the errant opponent piece to wreak havoc uncontested.\n\n\t\t\tfor (int c = RED; c <= BLUE; c++) {\n\n\t\t// Once the player has three or less remaining pieces\n\t\t// of Rank Eight or less, guarding the lanes becomes pointless,\n\t\t// and other goals take precedence, like attacking or\n\t\t// directly guarding the flag.\n\t\t// TBD: it is also pointless if the opponent has superior\n\t\t// ranks.\n\n\t\t\tif (lowerRankCount[c][8] <= 3\n\t\t\t\t|| (c == Settings.topColor\n\t\t\t\t\t&& dangerousKnownRank != 99))\n\t\t\t\tcontinue;\n\n\t\t\tint oppRank = lowRank[1-c];\n\t\t\tint thisRank = lowRank[c];\n\t\t\tif (oppRank < thisRank)\n\t\t\t\tfor (int i : attacklanes[lane]) {\n\n // If the lane is partially blocked, stay back to prevent blocking\n // of own pieces and if suspected bomb blocking the lane\n // is actually a piece, then it cannot pass\n\n int goal = (bombedLane(Settings.bottomColor, lane) == 1 ? i - 22 : i - 11);\n\t\t\t\t\tint ranksNeeded = 2;\n\t\t\t\t\tfor (int r = oppRank; ranksNeeded > 0 && r > 1; r--)\n ranksNeeded -= genDefenderPlan(c,r,goal,oppRank);\n\t\t\t\t}\n\t\t\t} // c\n\n\t\t// Spy flees the lane if the opponent one is not known\n\n\t\t\tif (knownRankAtLarge(Settings.bottomColor, Rank.ONE) == 0\n\t\t\t\t&& rankAtLarge(Settings.bottomColor, Rank.ONE) != 0) {\n\t\t\t\tgenPlanAll(fleetmp[Settings.topColor], Settings.topColor, 10, DEST_PRIORITY_LANE);\n\t\t\t}\n\n\t\t} // lane\n\t}", "title": "" }, { "docid": "3ee87ca7fe19a3a47b9a89f31bd6839b", "score": "0.49866635", "text": "@Override\n public void resultOfAttack(int result) {\n if (result == HIT_PATROL_BOAT) {\n\n //hit something to ++hitsOnOpp on that position\n\n ++hitsOnOpp[myAtk.getX()][myAtk.getY()];\n\n //hit patrol boat\n\n enemyShip temp = new enemyShip();\n\n temp.hits.add(myAtk);\n\n temp.name = HIT_PATROL_BOAT;\n\n temp.length = 1;\n\n targets.add(temp);\n\n }\n\n if (result == SUNK_PATROL_BOAT) {\n ++hitsOnOpp[myAtk.getX()][myAtk.getY()];\n for (int i = 0; i < targets.size(); ++i) {\n\n if (targets.get(i).name == HIT_PATROL_BOAT) {\n\n targets.remove(i);\n\n }\n\n }\n\n }\n\n if (result == HIT_DESTROYER) {\n\n ++hitsOnOpp[myAtk.getX()][myAtk.getY()];\n\n //hit destroyer\n boolean contained = false;\n\n for (int i = 0; i < targets.size(); ++i) {\n\n if (targets.get(i).name == HIT_DESTROYER) {\n contained = true;\n\n targets.get(i).hits.add(myAtk);\n\n --targets.get(i).length;\n\n if (targets.get(i).hits.get(0).getX() == targets.get(i).hits.get(1).getX()) {\n\n targets.get(i).orientation = 2;\n\n } else {\n\n targets.get(i).orientation = 1;\n\n }\n\n break;\n }\n\n }\n\n if (!contained) {\n\n enemyShip temp = new enemyShip();\n\n temp.hits.add(myAtk);\n\n temp.name = HIT_DESTROYER;\n\n temp.length = 1;\n\n targets.add(temp);\n\n }\n\n\n }\n\n if (result == SUNK_DESTROYER) {\n\n ++hitsOnOpp[myAtk.getX()][myAtk.getY()];\n\n for (int i = 0; i < targets.size(); ++i) {\n\n if (targets.get(i).name == HIT_DESTROYER) {\n\n targets.remove(i);\n\n }\n\n }\n\n }\n\n if (result == HIT_SUBMARINE) {\n\n ++hitsOnOpp[myAtk.getX()][myAtk.getY()];\n\n //hit destroyer\n boolean contained = false;\n\n for (int i = 0; i < targets.size(); ++i) {\n\n if (targets.get(i).name == HIT_SUBMARINE) {\n contained = true;\n\n targets.get(i).hits.add(myAtk);\n\n --targets.get(i).length;\n\n if (targets.get(i).hits.get(0).getX() == targets.get(i).hits.get(1).getX()) {\n\n targets.get(i).orientation = 2;\n\n } else {\n\n targets.get(i).orientation = 1;\n\n }\n\n break;\n }\n\n }\n\n if (!contained) {\n\n enemyShip temp = new enemyShip();\n\n temp.hits.add(myAtk);\n\n temp.name = HIT_SUBMARINE;\n\n temp.length = 1;\n\n targets.add(temp);\n\n }\n\n\n }\n\n if (result == SUNK_SUBMARINE) {\n\n ++hitsOnOpp[myAtk.getX()][myAtk.getY()];\n\n for (int i = 0; i < targets.size(); ++i) {\n\n if (targets.get(i).name == HIT_SUBMARINE) {\n\n targets.remove(i);\n\n }\n\n }\n\n }\n\n if (result == HIT_BATTLESHIP) {\n\n ++hitsOnOpp[myAtk.getX()][myAtk.getY()];\n\n //hit destroyer\n boolean contained = false;\n\n for (int i = 0; i < targets.size(); ++i) {\n\n if (targets.get(i).name == HIT_BATTLESHIP) {\n contained = true;\n\n targets.get(i).hits.add(myAtk);\n\n --targets.get(i).length;\n\n if (targets.get(i).hits.get(0).getX() == targets.get(i).hits.get(1).getX()) {\n\n targets.get(i).orientation = 2;\n\n } else {\n\n targets.get(i).orientation = 1;\n\n }\n\n break;\n }\n\n }\n\n if (!contained) {\n\n enemyShip temp = new enemyShip();\n\n temp.hits.add(myAtk);\n\n temp.name = HIT_BATTLESHIP;\n\n temp.length = 1;\n\n targets.add(temp);\n\n }\n\n\n }\n\n if (result == SUNK_BATTLESHIP) {\n\n ++hitsOnOpp[myAtk.getX()][myAtk.getY()];\n\n for (int i = 0; i < targets.size(); ++i) {\n\n if (targets.get(i).name == HIT_BATTLESHIP) {\n\n targets.remove(i);\n\n }\n\n }\n\n }\n\n if (result == HIT_AIRCRAFT_CARRIER) {\n\n ++hitsOnOpp[myAtk.getX()][myAtk.getY()];\n\n //hit destroyer\n boolean contained = false;\n\n for (int i = 0; i < targets.size(); ++i) {\n\n if (targets.get(i).name == HIT_AIRCRAFT_CARRIER) {\n contained = true;\n\n targets.get(i).hits.add(myAtk);\n\n --targets.get(i).length;\n\n if (targets.get(i).hits.get(0).getX() == targets.get(i).hits.get(1).getX()) {\n\n targets.get(i).orientation = 2;\n\n } else {\n\n targets.get(i).orientation = 1;\n\n }\n\n break;\n }\n\n }\n\n if (!contained) {\n\n enemyShip temp = new enemyShip();\n\n temp.hits.add(myAtk);\n\n temp.name = HIT_AIRCRAFT_CARRIER;\n\n temp.length = 1;\n\n targets.add(temp);\n\n }\n\n\n }\n\n if (result == SUNK_AIRCRAFT_CARRIER) {\n\n ++hitsOnOpp[myAtk.getX()][myAtk.getY()];\n\n for (int i = 0; i < targets.size(); ++i) {\n\n if (targets.get(i).name == HIT_AIRCRAFT_CARRIER) {\n\n targets.remove(i);\n\n }\n\n }\n\n }\n\n }", "title": "" }, { "docid": "68768dbd761bb99d8236a05b5a8aa9b5", "score": "0.49764535", "text": "@Override\n protected void calculateTactics() {\n //Remove stale data from the map\n radarImage.removeIf(e -> TimeoutTimer.isTimeExceeded(e.getLeft(), TTL_DRONE));\n teammembers.entrySet().removeIf(e -> TimeoutTimer.isTimeExceeded(e.getValue().getA(), TTL_DRONE));\n\n manageOutgoingCommunication();\n\n //Check leader\n if (!checkIfLeaderIsAlive()) {\n log.debug(\"Find a new leader, the leader was \" + idLeader);\n moveEvasively();\n if (idLeader != null)\n setLeader(null);\n //Leader is not alive\n findLeader();\n //Check if the new found leader is alive. This is done to avoid side-effects of a function\n //If it could not find a new (alive) leader, just start shooting if possible to any direction.\n if (lastRequestForLeader.timeIsExceeded() && DroneType.GUN.equals(droneType)) {\n randomShooting();\n }\n } else if (idLeader.equals(getIdentifier())) {\n sendInstructions();\n }\n\n //Keep moving if we have a target move location. Otherwise we will overshoot our target since acceleration corrections are required.\n if (myTargetMoveLocation != null) {\n moveToLocation(myTargetMoveLocation);\n }\n }", "title": "" }, { "docid": "26df7c13dd7d4eeef1bee70c16365b89", "score": "0.49754894", "text": "public interface IPositionAgent extends IPosition {\n\tpublic IPieceAgent getPiece();\n\tpublic Boolean getSelectState();\n\tpublic Boolean getMoveCandidacy();\n\tpublic Map<String, IPathAgent> getAllPathAgents();\n\tpublic void setPiece(IPieceAgent oPiece);\n\tpublic void setSelectState(Boolean oSelect);\n\tpublic IPathAgent getPathByName(String stName);\n\tpublic void setMoveCandidacy(Boolean bMoveCandidacy);\n\tpublic List<IPositionAgent> tryGetOppositePath(IPositionAgent oPosition);\t\n\tpublic Map<String, IPositionAgent> getAllPathAgents(IBoardMapping oBoardMapping, Direction enDirection, Family enFamily, File enFile, Rank enRank);\n\tpublic Boolean tryValidateRuleApplicability(IBoardMapping oBoardMapping, Family enFamily, File enFile, Rank enRank, IPositionAgent oNextPosition);\t\n\tpublic String toLog();\n}", "title": "" }, { "docid": "4d3450f7e992197d57466c940c223740", "score": "0.49676597", "text": "void genDestFlag(int i)\n\t{\n\t\tPiece flagp = getPiece(i);\n\n // If the flag is not exposed, don't bother\n if (!grid.hasMove(flagp))\n return;\n\n\t\tint color = flagp.getColor();\n\n\t\t// Send in an expendable to attack the suspected flag.\n\n\t\t// Note: if the flag is still bombed, the\n\t\t// destination matrix will not extend past the bombs.\n\t\t// So the expendable will only be activated IF\n\t\t// there is an open path to the flag.\n\n\t\tchasePositiveResult(flagp, i, DEST_PRIORITY_ATTACK_FLAG);\n\n\t\t// Note: planA and planB keep only 2 pieces\n\t\t// occupied. Thus it can happen that the AI has several\n\t\t// Scouts remaining, and one of the Scouts has an obvious\n\t\t// path to the flag, but that Scout isn't picked to move.\n\t\t// This is a necessary tradeoff to keep most pieces unmoved\n\t\t// and reduce the size of the search tree.\n\n\t\tchaseWithScout(flagp, i, DEST_PRIORITY_ATTACK_FLAG_WITH_SCOUT);\n\t}", "title": "" }, { "docid": "47c169ac3cdadfe33610491186d38133", "score": "0.49609417", "text": "void genDefactoInvincibleRank()\n\t{\n\t\tfor (int c = RED; c <= BLUE; c++) {\n int lowUnknownRank = 1;\n for (int rank = 2; rank<9;rank++) {\n if (valueStealth[Settings.topColor][lowUnknownRank-1] * 8 / 10 > values[1-c][rank])\n invincibleRank[1-c][rank-1] = true;\n \n if (unknownNotSuspectedRankAtLarge(c, rank) > 0)\n lowUnknownRank = rank;\n }\n\t\t}\n\t}", "title": "" }, { "docid": "d3b8e45144443d7183d5603920784e37", "score": "0.49543965", "text": "@Test\n public void priorityPreventionTest() {\n checkPriorityPrevention(0, false, AttackNamesies.TACKLE);\n checkPriorityPrevention(0, false, AttackNamesies.NASTY_PLOT);\n checkPriorityPrevention(0, false, AttackNamesies.STRING_SHOT);\n checkPriorityPrevention(1, true, AttackNamesies.QUICK_ATTACK);\n checkPriorityPrevention(1, true, AttackNamesies.BABY_DOLL_EYES);\n checkPriorityPrevention(1, false, AttackNamesies.BIDE);\n checkPriorityPrevention(4, false, AttackNamesies.PROTECT);\n\n // Should block moves that have their priority increases via Prankster (+1 for status moves)\n // Should not block though for the self-target moves (like Nasty Plot and Protect)\n PokemonManipulator prankster = new TestAction().attacking(AbilityNamesies.PRANKSTER);\n checkPriorityPrevention(0, 0, false, AttackNamesies.TACKLE, prankster);\n checkPriorityPrevention(0, 1, false, AttackNamesies.NASTY_PLOT, prankster);\n checkPriorityPrevention(4, 5, false, AttackNamesies.PROTECT, prankster);\n checkPriorityPrevention(0, 1, true, AttackNamesies.STRING_SHOT, prankster);\n checkPriorityPrevention(1, 1, true, AttackNamesies.QUICK_ATTACK, prankster);\n\n // Mold breaker doesn't give a fuck (does not block moves in this case)\n PokemonManipulator moldBreaker = new TestAction().attacking(AbilityNamesies.MOLD_BREAKER);\n checkPriorityPrevention(0, 0, false, AttackNamesies.TACKLE, moldBreaker);\n checkPriorityPrevention(0, 0, false, AttackNamesies.NASTY_PLOT, moldBreaker);\n checkPriorityPrevention(0, 0, false, AttackNamesies.STRING_SHOT, moldBreaker);\n checkPriorityPrevention(4, 4, false, AttackNamesies.PROTECT, moldBreaker);\n checkPriorityPrevention(1, 1, false, AttackNamesies.BABY_DOLL_EYES, moldBreaker);\n checkPriorityPrevention(1, 1, false, AttackNamesies.QUICK_ATTACK, moldBreaker);\n }", "title": "" }, { "docid": "071ddf3ee893d082d81cb07b07170ceb", "score": "0.49418506", "text": "boolean isMoveable(int visited[][], int xPos, int yPos);", "title": "" }, { "docid": "a4b2507492858b51a90e20b6ca144016", "score": "0.49400863", "text": "public static int setSingleGoalPriority(Goal goal){\n\t\tgoal.setIsBeingPrioritized(true);\n\t\tint bufferZoneOffset = 10;\n\t\t//Get coordinates for all adjacent cells, and put them in list\n\t\tCoordinate nCord = new Coordinate(goal.getCoordinate().getRow() - 1,goal.getCoordinate().getColumn());\n\t\tCoordinate wCord = new Coordinate(goal.getCoordinate().getRow(), goal.getCoordinate().getColumn() -1 );\n\t\tCoordinate sCord = new Coordinate(goal.getCoordinate().getRow() +1, goal.getCoordinate().getColumn());\n\t\tCoordinate eCord = new Coordinate(goal.getCoordinate().getRow(), goal.getCoordinate().getColumn() +1);\n\t\tArrayList<Coordinate> newCords = new ArrayList<>();\n\t\tnewCords.add(nCord);\n\t\tnewCords.add(wCord);\n\t\tnewCords.add(sCord);\n\t\tnewCords.add(eCord);\n\t\tint returnVal = Integer.MAX_VALUE;\n\t\tfor( Coordinate cord : newCords){\n\t\t\t//The goal is next to a \"free\" cell meaning that it has neither a wall or another goal cell. Base case for recursive function\n\t\t\tif(Node.walls.get(cord) == null && Node.getGoalsByCoordinate().get(cord) == null){\n\t\t\t\t//Need to also call the setter here in case this is a recursive call of the function.\n\t\t\t\tgoal.setPriority(1 + bufferZoneOffset);\n\t\t\t\treturn 1 + bufferZoneOffset;\n\t\t\t}\n\t\t\t//The goal cell is next another goal cell in this direction\n\t\t\telse if(Node.getGoalsByCoordinate().get(cord) != null){\n\t\t\t\tGoal target = Node.getGoalsByCoordinate().get(cord);\n\t\t\t\t//Skip this goal if it is already in the stack\n\t\t\t\tif(target.isBeingPrioritized()){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t//Goal priority is initialized as 0 so if it is higher we can assume that the priority has already been set.\n\t\t\t\tif(target.getPriority() < 1) {\n\t\t\t\t\t//If priority has not been set, call this function recursively for the adjacent goal cell and add 1.\n\t\t\t\t\tint targetPrio = setSingleGoalPriority(target);\n\t\t\t\t\tif(targetPrio < goal.getPriority() || goal.getPriority() < 1) {\n\t\t\t\t\t\tgoal.setPriority(targetPrio + 1 + bufferZoneOffset);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//else just get the priority and add 1\n\t\t\t\t\tint targetPrio = target.getPriority();\n\t\t\t\t\tif(targetPrio < goal.getPriority() || goal.getPriority() < 1) {\n\t\t\t\t\t\tgoal.setPriority(targetPrio + 1 + bufferZoneOffset);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Compare the priority to the priorities found in other directions. Note that a wall will not be able to set the returnVal.\n\t\t\t\treturnVal = goal.getPriority() < returnVal ? goal.getPriority() : returnVal;\n\t\t\t}\n\t\t}\n\t\treturn returnVal;\n\t}", "title": "" }, { "docid": "daec6f7f21714ece88cb63d389df7ca8", "score": "0.49396008", "text": "public double heuristic();", "title": "" }, { "docid": "e6231377f12ee73077452286a3453969", "score": "0.4939276", "text": "private static double getDistanceToPossibilities() {\n\t\tint amountOfPossibilities = field.getPossiblePositionsOfMisterX().size();\n\t\t// Map mit Detektiv und Haeufigkeit am naechsten dran zu sein\n\t\tMap<Detective, Integer> detMap = new HashMap<Detective, Integer>();\n\t\tfor (Detective det : field.getDetectives()) {\n\t\t\tdetMap.put(det, 0);\n\t\t}\n\t\t\n\t\t// Distanzwerte\n\t\tdouble distanceMin = 0;\n\t\tdouble distanceMed = 0;\n\t\tdouble totalDistance = 0;\n\t\t\n\t\t// Fuer jede moegliche Position wird die Distanz berechnet\n\t\tfor (Node node : field.getPossiblePositionsOfMisterX()) {\n\t\t\t// Temp-Distanzen fuer die Detektive\n\t\t\tdouble minDistance = Double.POSITIVE_INFINITY;\n\t\t\tdouble medDistance = Double.POSITIVE_INFINITY;\n\t\t\tDetective minDetective = null;\n\t\t\tfor (Detective det : field.getDetectives()) {\n\t\t\t\tdouble dist = field.getDistance(det, node);\n\t\t\t\tif (dist < minDistance) {\n\t\t\t\t\tminDetective = det;\n\t\t\t\t\tmedDistance = minDistance;\n\t\t\t\t\tminDistance = dist;\n\t\t\t\t} else if (dist < medDistance) {\n\t\t\t\t\tmedDistance = dist;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// MinDetektiv updaten\n\t\t\tdetMap.put(minDetective, detMap.get(minDetective) + 1);\n\t\t\t// Distanzen updaten\n\t\t\tdistanceMin += minDistance;\n\t\t\tdistanceMed += medDistance;\n\t\t}\n\t\t\n\t\t// Auswertung\n\t\tint max = 0;\n\t\tint med = 0;\n\t\tfor (Integer i : detMap.values()) {\n\t\t\tif (i > max) {\n\t\t\t\tmed = max;\n\t\t\t\tmax = i;\n\t\t\t}\n\t\t\telse if (i > med) med = i;\n\t\t}\n\t\t// Wenn die Max-Anzahl mehr als das Doppelte von zweiten betraegt\n\t\t// Wird die Gesamtanzahl 2:1 gewichtet\n\t\tif (max > 2 * med) totalDistance = (2 * distanceMin + distanceMed / 3);\n\t\t// Sonst bleibt es bei der kuerzesten\n\t\telse totalDistance = distanceMin;\n\t\t// Skalierung des Chaos durch teilen durch die Wurzel\n\t\ttotalDistance /= Math.sqrt(amountOfPossibilities);\n\t\treturn sigmoid(totalDistance, 2, 15) * 100;\n\t}", "title": "" }, { "docid": "cc897f23570cc570fcff873663f01cb7", "score": "0.4937879", "text": "private static void backtracking (){\n IMPR = 2; //Cambiamos el valor de FUNC para imprimir los subconjuntos en el orden encontrado\n backtracking(0,0,new ArrayList<Integer>());\n }", "title": "" }, { "docid": "57b01fb51290eb08dc6adde2ca9aa636", "score": "0.49271625", "text": "@Override\r\n\tpublic boolean goal_test() {\r\n\t\treturn small==1;\r\n\t}", "title": "" }, { "docid": "efe2a2ab77a48d7c87a134808c42b69e", "score": "0.49266556", "text": "@Test\n void accountsForMultipleConstraintsAfterReachingGoal2() {\n\n MAPF_Instance testInstance = instanceCircle2;\n Agent agent = testInstance.agents.get(0);\n\n Constraint constraintAtTimeAfterReachingGoal1 = new Constraint(agent,5, null, mapCircle.getMapCell(new Coordinate_2D(3,3)));\n ConstraintSet constraints = new ConstraintSet();\n constraints.add(constraintAtTimeAfterReachingGoal1);\n RunParameters runParameters = new RunParameters(constraints);\n\n Solution solved = aStar_largeAgents.solve(testInstance, runParameters);\n\n SingleAgentPlan plan1 = new SingleAgentPlan(agent);\n plan1.addMove(new Move(agent, 1, cell12Circle, cell22Circle));\n plan1.addMove(new Move(agent, 2, cell22Circle, cell32Circle));\n plan1.addMove(new Move(agent, 3, cell32Circle, cell33Circle));\n plan1.addMove(new Move(agent, 4, cell33Circle, cell33Circle));\n plan1.addMove(new Move(agent, 5, cell33Circle, cell32Circle));\n plan1.addMove(new Move(agent, 6, cell32Circle, cell33Circle));\n Solution expected1 = new Solution();\n expected1.putPlan(plan1);\n\n SingleAgentPlan plan2 = new SingleAgentPlan(agent);\n plan2.addMove(new Move(agent, 1, cell12Circle, cell22Circle));\n plan2.addMove(new Move(agent, 2, cell22Circle, cell32Circle));\n plan2.addMove(new Move(agent, 3, cell32Circle, cell33Circle));\n plan2.addMove(new Move(agent, 4, cell33Circle, cell33Circle));\n plan2.addMove(new Move(agent, 5, cell33Circle, cell34Circle));\n plan2.addMove(new Move(agent, 6, cell34Circle, cell33Circle));\n Solution expected2 = new Solution();\n expected2.putPlan(plan2);\n\n assertEquals(6, solved.getPlanFor(agent).size());\n assertTrue(expected1.equals(solved) || expected2.equals(solved));\n }", "title": "" }, { "docid": "5c7657340793294cb4403c1864545646", "score": "0.49254623", "text": "public void recomputeOptimalPos() {\n\t\tdouble bx, by, bz;\n\t\tVector4d pos = new Vector4d();\n\t\tMatrix3d A = new Matrix3d();\n\t\tA.m00 = Q.m00;\n\t\tA.m01 = Q.m01;\n\t\tA.m02 = Q.m02;\n\t\tA.m10 = Q.m10;\n\t\tA.m11 = Q.m11;\n\t\tA.m12 = Q.m12;\n\t\tA.m20 = Q.m20;\n\t\tA.m21 = Q.m21;\n\t\tA.m22 = Q.m22;\n\t\tA.invert();\n\t\tbx = Q.m03;\n\t\tby = Q.m13;\n\t\tbz = Q.m23;\n\t\tpos.x = -(A.m00*bx+A.m01*by+A.m02*bz);\n\t\tpos.y = -(A.m10*bx+A.m11*by+A.m12*bz);\n\t\tpos.z = -(A.m20*bx+A.m21*by+A.m22*bz);\n\t\tpos.w = 1;\n\t\tv = pos;\n\t}", "title": "" }, { "docid": "87c7938bd7dbc9efb4945e6e9726f353", "score": "0.49247223", "text": "private void determineMove(TicTacToe game) {\n\t\tint timeBudget = 800000000;\n\t\tlong startTime = System.nanoTime();\n\t\tboolean timeRanOut = false;\n\t\t// This if/else statement attempts to prune the game tree for the previous move (made by the\n\t\t// opponent).\n\t\tif (_moveTree == null) {\n\t\t\t_moveTree = new MoveTree(TicTacToe.flipPiece(_piece));\n\t\t} else {\n\t\t\tif (_moveTree.getRoot().getChildren().size() != 0) {\n\t\t\t\tboolean contained = false;\n\t\t\t\t// Attempts to find the previous move in the top level of the game tree.\n\t\t\t\tMoveTreeNode node = _moveTree.getRoot().getChildren().get(0);\n\t\t\t\tfor (MoveTreeNode n : _moveTree.getRoot().getChildren()) {\n\t\t\t\t\tif (n.getMove()[0] == game.getBoard().getPreviousMove()[0]\n\t\t\t\t\t\t\t&& n.getMove()[1] == game.getBoard().getPreviousMove()[1]) {\n\t\t\t\t\t\tnode = n;\n\t\t\t\t\t\tcontained = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// If found, prunes the tree by setting that node as the root.\n\t\t\t\tif (contained) {\n\t\t\t\t\t_moveTree.setRoot(node);\n\t\t\t\t} else {\n\t\t\t\t\t_moveTree = new MoveTree(TicTacToe.flipPiece(_piece));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t_moveTree = new MoveTree(TicTacToe.flipPiece(_piece));\n\t\t\t}\n\n\t\t}\n\t\t// Improves the tree until the time runs out.\n\t\twhile (!timeRanOut) {\n\t\t\tthis.improveGameTree(game);\n\t\t\tif (System.nanoTime() - startTime >= timeBudget) {\n\t\t\t\ttimeRanOut = true;\n\t\t\t}\n\t\t}\n\t\t// After running out of time, chooses the best move from the tree.\n\t\tthis.chooseBestChild(game);\n\t}", "title": "" }, { "docid": "a0a3d4623029c3ad487e3aba77040352", "score": "0.49239197", "text": "public abstract boolean iterativeDepthSearch();", "title": "" }, { "docid": "3ae18b9a9dd8ac21827deb1fe7cb4a89", "score": "0.4920466", "text": "private void aiInvestigate() {\n aiFollowPath();\n }", "title": "" }, { "docid": "c3e2212907b4322044bb2bbb29efa0e3", "score": "0.49204427", "text": "public void Artificial_Intelligence(\n \t\tboolean collision, // so the character knows if it collided with something\n \t\tPlayer_Character player){ \n \n \tif (System.currentTimeMillis() > Last_AI_State_Change + AI_State_Change_Time)\n \t{\n \t\tif (rnd.nextBoolean())\n \t\t{\n \t\t\tY_Movement = 0;\n \t\t \tif (rnd.nextBoolean())\n \t\t \t{\n \t\t \t\tX_Movement = 1;\n \t\t \t}\n \t\t \telse\n \t\t \t{\n \t\t \t\tX_Movement = -1;\n \t\t \t}\n \t\t}\n \t\telse\n \t\t{\n \t\t\tX_Movement = 0;\n \t\t \tif (rnd.nextBoolean())\n \t\t \t{\n \t\t \t\tY_Movement = 1;\n \t\t \t}\n \t\t \telse\n \t\t \t{\n \t\t \t\tY_Movement = -1;\n \t\t \t}\n \t\t}\n \t \tLast_AI_State_Change = System.currentTimeMillis();\n \t}\n }", "title": "" }, { "docid": "bc5851ea15eba6ec66334fe9d0750486", "score": "0.49194413", "text": "public boolean testEffectivedepth(EIfcreinforcementbarproperties type) throws SdaiException;", "title": "" }, { "docid": "cb57ad3ea6c818abbd427424735cef31", "score": "0.49178123", "text": "@Override\n\tpublic void run() throws GameActionException {\n\t\tRobotInfo[] nearbyAllies = rc.senseNearbyRobots(2, myTeam);\n\t\tRobotInfo friendWithLowestHP = Utility.getRobotWithLowestHP(nearbyAllies);\n\t\tif(rc.isCoreReady() && friendWithLowestHP != null){\n\t\t\tif(friendWithLowestHP.type != RobotType.ARCHON){\n\t\t\t\trc.repair(friendWithLowestHP.location);\n\t\t\t}\n\t\t}\n\t\tif(goalLocation != null && rc.getRoundNum() < 150){\n\n\t\t\tif(rc.canSense(goalLocation)){\n\t\t\t\tgoalLocation = null;\n\t\t\t}\n\t\t\tif(Utility.getClosestRound(zss) - rc.getRoundNum() > 50 && rc.getTeamParts() > 200){\n\t\t\t\ttryToBuild();\n\t\t\t}\n\t\t\telse if(rc.isCoreReady()){\n\t\t\t\tBugNav.goTo(goalLocation);\n\t\t\t}\n\t\t}\n\n\t\t//try to activate neutral units\n\t\t/*MapLocation closestNeutral = Utility.closestLocation(neutralBotLocations, rc.getLocation());\n\t\tif (closestNeutral != null) {\n\t\t\trc.setIndicatorString(2, \"Finding Neutal\");\n\t\t\tif(rc.canSense(closestNeutral) && (rc.senseRobotAtLocation(closestNeutral) == null || rc.senseRobotAtLocation(closestNeutral).team != Team.NEUTRAL)){\n\t\t\t\tneutralBotLocations.remove(closestNeutral);\n\t\t\t}\n\t\t\telse if (rc.getLocation().distanceSquaredTo(closestNeutral) < 2) {\n\t\t\t\tif (rc.isCoreReady()) {\n\t\t\t\t\trc.activate(closestNeutral);\n\t\t\t\t\tneutralBotLocations.remove(closestNeutral);\n\t\t\t\t}\n\t\t\t} else if (rc.isCoreReady() && rc.canMove(rc.getLocation().directionTo(closestNeutral))) {\n\t\t\t\ttryToMove(rc.getLocation().directionTo(closestNeutral));\n\t\t\t}\n\t\t}*/\n\n\t\tRobotInfo[] enemies = rc.senseHostileRobots(rc.getLocation(), RobotType.ARCHON.sensorRadiusSquared);\n\t\tif(enemies.length > 3){\n\t\t\t//tryToRetreat(enemies);\n\t\t}\n\n\t\ttryToBuild();\n\t\tif(enemies.length > 0){\n\t\t\t//tryToRetreat(enemies);\n\t\t\tsuppressSignals = true;\n\t\t\treturn;\n\t\t}else{\n\t\t\t//defaultBehavior();\n\t\t}\n\t\tsuppressSignals = false;\n\t}", "title": "" }, { "docid": "ccc97ccdd1653a87991a49f53c7fe157", "score": "0.49009398", "text": "public int calculateHeuristic(String algorithm){\n\t\t\n\t\talgorithm.toLowerCase();\n\t\tswitch(algorithm){\n\t\t\n\t\tcase \"astar misplaced\":\n\t\t\tlevel = parentBoard.level + 1;//update the level\n\t\t\tthis.heuristic = level + misplacedTiles;\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"astar manhattan\":\n\t\t\tlevel = parentBoard.level + 1;//update the level\n\t\t\tmanhattanDistance = findManhattanDistance(start_state);\n\t\t\theuristic = level + manhattanDistance;\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"astar ida\":\n\t\t\tlevel = parentBoard.level + 1;\n\t\t\tmanhattanDistance = findManhattanDistance(start_state);\n\t\t\theuristic = manhattanDistance;\n\t\t\tbreak;\n\t\t\n\t\tcase \"dfbnb\":\n\t\t\tlevel = parentBoard.level + 1;\n\t\t\tmanhattanDistance = findManhattanDistance(start_state);\n\t\t\theuristic = manhattanDistance;\n\t\t\tbreak;\n\t\t\t\n\t\tdefault: \n\t\t\tSystem.out.println(\"Algorithm not found\");\n\t\t\t\n\t\t}\n\t\t\n\t\treturn heuristic;\n\t}", "title": "" }, { "docid": "1fdfb871116f5002c2587b3341d00f5d", "score": "0.4895564", "text": "int getEnemyGainArenaWinningPoint();", "title": "" }, { "docid": "ee5b91f2e23f699743fd4b9af907acc1", "score": "0.48922083", "text": "public Integer calculateHeuristic(Node n) {\n //throw new NotImplementedException();\n return 0;\n }", "title": "" }, { "docid": "90755aed9fc559ec835dcacc6e0f78d1", "score": "0.48905942", "text": "public interface GameAI\n{\n\tpublic int[] bestMove(Board board, boolean turn, int timeout);\n}", "title": "" }, { "docid": "9d4f84202d2bdf68a89984b999fd6959", "score": "0.4887482", "text": "@Override\n\tpublic void action() {\n\t\ttry {\n\t\t\tthis.agent.doWait(500);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\tthis.agent.updateLastBehaviour(10);\n\t\t//0) Retrieve the current position\n\t\t\t\tString myPosition=((AbstractDedaleAgent)this.agent).getCurrentPosition();\n\t\t\t\t\n\t\t\t\tif (myPosition!=null){\n\t\t\t\t\t\n\t\t\t\t\tif(this.agent.getOpenNodes().isEmpty()) {\n\t\t\t\t\t\tthis.agent.getClosedNodes().clear();\n\t\t\t\t\t\tthis.agent.getOpenNodes().add(myPosition);\n\t\t\t\t\t}\n\t\t\t\t\tList<Couple<String,List<Couple<Observation,Integer>>>> lobs=((AbstractDedaleAgent)this.myAgent).observe();//myPosition\n\n\t\t\t\t\t\n\t\t\t\t\tfor (Couple<String,List<Couple<Observation,Integer>>> obj : lobs) {\n\t\t\t\t\t\tif (!obj.getRight().isEmpty()) {\n\t\t\t\t\t\t\tNodeData node = new NodeData( obj.getLeft(), obj.getRight());\n\t\t\t\t\t\t\tthis.agent.addObservation(new Couple(obj.getLeft(), node));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList<Couple<Observation,Integer>> lObservations= lobs.get(0).getRight();\n\t\t\t\t\t\tfor (Couple<Observation, Integer> c : lObservations) {\n\t\t\t\t\t\t\tif (c.getLeft().equals(Observation.GOLD)) {\n\t\t\t\t\t\t\t\t((AbstractDedaleAgent) this.myAgent).openLock(Observation.GOLD);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (c.getLeft().equals(Observation.DIAMOND)) {\n\t\t\t\t\t\t\t\t((AbstractDedaleAgent) this.myAgent).openLock(Observation.DIAMOND);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (c.getLeft().equals(Observation.ANY_TREASURE)) {\n\t\t\t\t\t\t\t\t((AbstractDedaleAgent) this.myAgent).openLock(Observation.ANY_TREASURE);\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//1) remove the current node from openlist and add it to closedNodes.\n\t\t\t\t\tthis.agent.getClosedNodes().add(myPosition);\n\t\t\t\t\tthis.agent.getOpenNodes().remove(myPosition);\n\n\t\t\t\t\t\n\t\t\t\t\t//2) get the surrounding nodes and, if not in closedNodes, add them to open nodes.\n\t\t\t\t\tString nextNode=null;\n\t\t\t\t\tIterator<Couple<String, List<Couple<Observation, Integer>>>> iter=lobs.iterator();\n\t\t\t\t\t\n\t\t\t\t\twhile(iter.hasNext()){\n\t\t\t\t\t\tCouple<String, List<Couple<Observation,Integer>>> obj = iter.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\tString nodeId=obj.getLeft();\n\t\t\t\t\t\tif (!this.agent.getClosedNodes().contains(nodeId)){\n\t\t\t\t\t\t\tif (!this.agent.getOpenNodes().contains(nodeId)){\n\t\t\t\t\t\t\t\tthis.agent.getOpenNodes().add(nodeId);\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\tif (nextNode==null) nextNode=nodeId;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t\tthis.agent.getMyTreasures();\n\t\t\t\t\t//3) while openNodes is not empty, continues.\n\t\t\t\t\tif (this.agent.getOpenNodes().isEmpty() || !(this.agent.getMyTreasures().isEmpty())){\n\t\t\t\t\t\t//Explo finished\n\t\t\t\t\t\texitCode = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//4) select next move.\n\t\t\t\t\t\t//4.1 If there exist one open node directly reachable, go for it,\n\t\t\t\t\t\t//\t otherwise choose one from the openNode list, compute the shortestPath and go for it\n\t\t\t\t\t\tif (nextNode==null){\n\t\t\t\t\t\t\t//no directly accessible openNode\n\t\t\t\t\t\t\t//chose one, compute the path and take the first step.\n\t\t\t\t\t\t\tList<String> l = new ArrayList<String>(this.agent.getOpenNodes());\n\t\t\t\t\t\t\tnextNode=this.agent.getShortestPathMap(myPosition, l.get(0)).get(0);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tboolean move = false;\n\t\t\t\t\t\tmove = ((AbstractDedaleAgent)this.agent).moveTo(nextNode);\t\t\t\t\t\t\n\t\t\t\t\t\tif (! move) {\n\t\t\t\t\t\t\texitCode = 2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c94ffe9f111eefcf0e5dd4adb7e65cb0", "score": "0.4886846", "text": "public void where() {\n\t int temp = 0;\n\tSystem.out.print(\"in \" + current_player.getPosition().getName()); \n\tSystem.out.println();\n\t\n\tif (current_player.getRole() != null) {\n\t\tSystem.out.print(\" shooting \" + current_player.getRole().getName() + \" scene \" + ((Stage) current_player.getPosition()).getCard().getScene());\n\t\tSystem.out.println();\n\t} \n if (current_player.getPosition().getName().equals(\"office\") || current_player.getPosition().getName().equals(\"trailer\")) {\n \tSystem.out.println();\n \tSystem.out.println(\"You can move here to try to work: \");\n\t\tfor (int k = 0; k < current_player.getPosition().getNeighbor().size(); k++) {\n\t\t\tSystem.out.println(current_player.getPosition().getNeighbor().get(k));\n\t\t}\n\t\tSystem.out.println();\n } else {\n \tStage stage = (Stage) current_player.getPosition(); \n \tSystem.out.println();\n \tSystem.out.println(\"You can move here to try to work: \");\n\t\tfor (int k = 0; k < stage.getNeighbor().size(); k++) {\n\t\t\tSystem.out.println(stage.getNeighbor().get(k));\n\t\t}\n\t\tSystem.out.println();\n \tif (stage.isClose()) {\n \t\tSystem.out.println(\"Room is closed! No work available!\");\n \t\tSystem.out.println();\n \t} else {\n\t \tArrayList<Role> extras = stage.getExtraRole();\n\t \tArrayList<Role> mains = stage.getCard().getMainRoles();\n\t \tSystem.out.println(\"Extra Roles are: \");\n\t \tfor (int i = 0; i < extras.size(); i++) {\n\t \t\tSystem.out.println(extras.get(i).getName() + \" \" + extras.get(i).getRank());\n\t \t}\n\t \tSystem.out.println();\n\t \tSystem.out.println(\"Card is in this game is: \" + stage.getCard().getName());\n\t \tSystem.out.println();\n\t \tSystem.out.println(\"Main Roles Available are: \");\n\t \tfor (int j = 0; j < mains.size(); j++) {\n\t \t\tSystem.out.println(mains.get(j).getName() + \" \" + mains.get(j).getRank());\n\t \t}\n\t \tSystem.out.println();\n \t}\t\n }\n }", "title": "" }, { "docid": "c720afd59f5f5a70bf7d5b695229cd24", "score": "0.4883086", "text": "protected int evaluatePosition(short x, short y, short goalX, short goalY){\n\t\treturn this.evaluatePosition((int)x, (int)y, goalX, goalY);\n\t}", "title": "" }, { "docid": "5c28c2e7779cfc513cf813c4c4f7278f", "score": "0.48755714", "text": "private static char[] informedSearchHelper(int algChoice, int[][] map,\n\t int[][] gridMap, int initIndex, int goalIndex)\n\t{\n\t\t// create initial and goal states\n\t\tCostState initState = new CostState(initIndex);\n\t\tCostState goalState = new CostState(goalIndex);\n\t\t// create the frontier and visited list/array\n\t\tPriorityQueue<CostNode> frontier = new PriorityQueue<CostNode>();\n\t\tboolean[] visitedArr = new boolean[map.length];\n\t\t// create add the initial node to the frontier and visitedArr\n\t\tfrontier.add(new CostNode(map, initState));\n\t\tvisitedArr[initState.getIndex()] = true;\n\t\t// begin searching\n\t\twhile(!frontier.isEmpty())\n\t\t{\n\t\t\tprintFrontier(frontier);\n\t\t\tUninformedSearch.printExplored(visitedArr);\n\t\t\t// remove the first node in the queue\n\t\t\tCostNode currentNode = frontier.poll();\n\t\t\t// print the node removed from the queue\n\t\t\tSystem.out.println(currentNode);\n\t\t\t// check if the currentNode contains the goal state\n\t\t\tif (currentNode.getState().equals(goalState))\n\t\t\treturn currentNode.getPath();\n\t\t\t// loop over each of currentNode's edges\n\t\t\tfor (int i = 0; i < currentNode.getEdges().size(); i++)\n\t\t\t{\n\t\t\t\t/* check if edge at i is explored or in frontier */\n\t\t\t\tif (visitedArr[currentNode.getEdges().get(i)])\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t// if edge has not been visited, mark it as visited\n\t\t\t\tvisitedArr[currentNode.getEdges().get(i)] = true;\n\t\t\t\t// create child node then add it to frontier.\n\t\t\t\t// initialise childState to any State object.\n\t\t\t\tCostState childState = initState;\n\t\t\t\tswitch (algChoice)\n\t\t\t\t{\n\t\t\t\t\tcase 1: childState = getChildStateBestFSEuc(gridMap,\n\t\t\t\t\t currentNode, goalState, i);\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2: childState = getChildStateBestFSCheb(gridMap,\n\t\t\t\t\t currentNode, goalState, i);\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3: childState = getChildStateAStarEuc(gridMap,\n\t\t\t\t\t currentNode, goalState, i);\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4: childState = getChildStateAStarCheb(gridMap,\n\t\t\t\t\t currentNode, goalState, i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tCostNode childNode = new CostNode(map, currentNode, childState);\n\t\t\t\tfrontier.add(childNode);\n\t\t\t}\n\t\t}\n\t\t// while loop exited b/c frontier empty :- no result is found.\n\t\treturn null;\n\t}", "title": "" }, { "docid": "01dd36e9f9efdec7f429c3315a86da2e", "score": "0.4867982", "text": "public ArrayList<Coordinates> pathfind(Coordinates goalPosition) {\n setGoalPosition(goalPosition);\n aStarGrid = setAStarGrid(); // set the A* Grid to be the current grid\n aStarGrid[startPosition.getX()][startPosition.getY()].setTotalCost(0);\n\n ArrayList<Coordinates> openList = new ArrayList<>(); // list of all generated points\n ArrayList<Coordinates> closedList = new ArrayList<>(); // list of all expanded points\n insertIntoList(openList, startPosition); // add the start position to the open list\n\n // while there are points to check\n while (!openList.isEmpty()) {\n Coordinates currentPosition =\n findMinPoint(openList); // get coordinates of point with smallest cost\n openList.remove(currentPosition);\n closedList.add(currentPosition);\n ArrayList<Coordinates> successors = generateSuccessors(currentPosition, closedList);\n\n // iterate through the successors\n for (Coordinates currentSuccessor : successors) {\n int x = currentSuccessor.getX();\n int y = currentSuccessor.getY();\n // check if the goal has been found\n if (goalPosition.isEqual(currentSuccessor)) {\n aStarGrid[goalPosition.getX()][goalPosition.getY()].setParent(currentPosition);\n return getPath();\n } else { // otherwise, calculate pathfinding values\n int successorPathCost = aStarGrid[x][y].getPathCost() + TRANSITION_COST;\n double successorHeuristicCost = findHeuristic(currentSuccessor);\n double totalCost = successorPathCost + successorHeuristicCost;\n\n if (checkList(\n currentSuccessor, openList)) { // check if the successor is already in the open list\n double openCost = aStarGrid[x][y].getTotalCost();\n // check if the total cost calculated is less than the one stored for the point\n if (openCost > totalCost) { // if so, update the values\n updateValues(\n currentSuccessor, successorPathCost, successorHeuristicCost, currentPosition);\n }\n } else if (checkList(\n currentSuccessor, closedList)) { // else check if it is already in the closed list\n double closedCost = aStarGrid[x][y].getTotalCost();\n // check if the total cost calculated is less than the one stored for the point\n if (closedCost > totalCost) { // if so, update the values and move point to open list\n updateValues(\n currentSuccessor, successorPathCost, successorHeuristicCost, currentPosition);\n closedList.remove(currentSuccessor);\n openList.add(currentSuccessor);\n }\n } else { // otherwise, update the values and add to the open list\n updateValues(\n currentSuccessor, successorPathCost, successorHeuristicCost, currentPosition);\n openList.add(currentSuccessor);\n }\n }\n }\n closedList.add(currentPosition);\n }\n return new ArrayList<>(); // if there is no path then return an empty arraylist\n }", "title": "" }, { "docid": "65318f4cd57b67dfae0c2183c1e92f2e", "score": "0.48655173", "text": "public void updateHeardCivilianPosition() {\n boolean shouldCheck = false;\n for (Point2D point : heardPoints.keySet()) {\n for (EntityID civilianId : heardPoints.get(point)) {\n StandardEntity entity = world.getEntity(civilianId);\n if (entity != null && ((Civilian) entity).isPositionDefined()) {\n continue;\n } else {\n// civilianSet=toCheckCivilians.get(point);\n// if(civilianSet==null){\n// civilianSet=new HashSet<EntityID>();\n// }\n// civilianSet.add(civilianId);\n// toCheckCivilians.put(point,civilianSet);\n shouldCheck = true;\n break;\n\n }\n\n }\n if (shouldCheck) {\n break;\n }\n }\n\n if (shouldCheck) {\n for (Point2D point : heardPoints.keySet()) {\n ArrayList<EntityID> possibleList = getGuessedBuildings(point);\n\n for (EntityID civilianId : heardPoints.get(point)) {\n StandardEntity entity = world.getEntity(civilianId);\n if (entity != null && ((Civilian) entity).isPositionDefined()) {\n continue;\n }\n CivilianInfo civilianInfo = civilianInfoMap.get(civilianId);\n\n civilianInfo.updatePossibleBuilding(possibleList);\n civilianInfoMap.put(civilianId, civilianInfo);\n }\n }\n }\n heardPoints.clear();\n }", "title": "" }, { "docid": "78f89e12d564ff25f70371b884a8e73e", "score": "0.4860221", "text": "private NeighborhoodVisitorResult visitNeighbors(Solution solution)\n\t{\n\t\tdouble startingFitness = evaluate(solution);\n\n\t\tif (evaluations > maxEvaluations)\n\t\t\treturn new NeighborhoodVisitorResult(NeighborhoodVisitorStatus.SEARCH_EXHAUSTED);\n\n\t\tif (startingFitness > fitness)\n\t\t\treturn new NeighborhoodVisitorResult(NeighborhoodVisitorStatus.FOUND_BETTER_NEIGHBOR, startingFitness);\n\t\t\n\t\tint len = project.getCustomerCount();\n\t\t\n\t\tfor (int i = 0; i < len; i++)\n\t\t{\n\t\t\tint customerI = selectionOrder[i];\n\n\t\t\tsolution.flipCustomer(customerI);\n\t\t\t//solution[moduloI] = !solution[moduloI];\n\t\t\tdouble neighborFitness = evaluate(solution);\n\n\t\t\tif (evaluations > maxEvaluations)\n\t\t\t\treturn new NeighborhoodVisitorResult(NeighborhoodVisitorStatus.SEARCH_EXHAUSTED);\n\n\t\t\tif (neighborFitness > startingFitness)\n\t\t\t\treturn new NeighborhoodVisitorResult(NeighborhoodVisitorStatus.FOUND_BETTER_NEIGHBOR, neighborFitness);\n\n\t\t\tsolution.flipCustomer(customerI);\n\t\t\t//solution[moduloI] = !solution[moduloI];\n\t\t}\n\n\t\treturn new NeighborhoodVisitorResult(NeighborhoodVisitorStatus.NO_BETTER_NEIGHBOR);\n\t}", "title": "" }, { "docid": "06133623cc2fa21db34f1ee364ccd85b", "score": "0.4858062", "text": "public static void main(String[] args){\n try{\n File file = new File(\"maze.txt\");\n\t FileReader fileReader = new FileReader(file);\n\t BufferedReader input = new BufferedReader(fileReader);\n //The first line of the file must be a number representing n (where the n * n maze follows on the next n lines)\n String raw = input.readLine();\n int n = Integer.parseInt(raw);\n \n boolean[][] board = new boolean[n][n];\n \n Point startState = null;\n Point endState = null;\n\t\t\t\n\t\t\t//The second line must tell the search algorithm preferred, i.e. DFS or A* for right now\n\t\t\tString searchMethod = input.readLine();\n \n //The next n lines contain 0s and 1s with no spaces between, representing the maze. ex 1000101010000101101\n //Start Point = S, End Point = F\n for(int i = 0; i < n; i++){\n String line = input.readLine();\n for(int x = 0; x < line.length(); x++){\n char number = line.charAt(x);\n if(number == '0'){\n //Put false in array\n board[i][x] = false;\n } else if (number == '1'){\n //Put true in array\n board[i][x] = true;\n } else if (number == 'S'){\n startState = new Point(i,x);\n board[i][x] = false;\n } else if (number == 'F'){\n endState = new Point(i,x);\n board[i][x] = false;\n }\n }\n }\n \n\t\t\t//TODO Add option for search algorithm\n\t\t\t\n if(startState != null && endState != null){\n\t\t\t\t\n\t\t\t\tArrayList<Point> solution;\n \t\t\t\n\t\t\t\tif(searchMethod.equals(\"DFS\")){\n\t\t\t\t\tsolution = DepthFirstSearch(startState, endState, board);\n\t\t\t\t} else if (searchMethod.equals(\"A*\")){\n\t\t\t\t\tsolution = AStarGraphSearch(startState, endState, board);\n\t\t\t\t} else {\n\t\t\t\t\tsolution = null;\t\n\t\t\t\t}\n \n if(solution == null){\n System.out.println(\"failure\"); \n } else {\n System.out.println(\"success\");\n for(Point p : solution){\n //Convert to our humanoid Cartesian standard\n System.out.println(\"(\" + (p.getY() + 1) + \",\" + (p.getX() + 1) + \")\");\n } \n }\n \n } else {\n System.out.println(\"There is a problem with your input file. Please make sure you have a start point (S) and end point (F)\");\n }\n \n } catch (IOException error) { //Need this for using buffered readers\n\t\t\terror.printStackTrace();\n\t }\n\n \n }", "title": "" }, { "docid": "7afd2f56001ae4c8cf0791fb72da7381", "score": "0.48481584", "text": "public bpv a(BlockPosition pos)\r\n/* 40: */ {\r\n/* 41: 59 */ if (!b()) {\r\n/* 42: 60 */ return null;\r\n/* 43: */ }\r\n/* 44: 63 */ float f1 = i();\r\n/* 45: 64 */ this.world.profiler.a(\"pathfind\");\r\n/* 46: 65 */ BlockPosition localdt = new BlockPosition(this.mob);\r\n/* 47: 66 */ int k = (int)(f1 + 8.0F);\r\n/* 48: */ \r\n/* 49: 68 */ arj localarj = new arj(this.world, localdt.offset(-k, -k, -k), localdt.offset(k, k, k), 0);\r\n/* 50: 69 */ bpv localbpv = this.j.a(localarj, this.mob, pos, f1);\r\n/* 51: 70 */ this.world.profiler.b();\r\n/* 52: 71 */ return localbpv;\r\n/* 53: */ }", "title": "" }, { "docid": "857df2b88ff2ac97297af7471e65749b", "score": "0.48468405", "text": "private List<MapNode> findPath(MapNode startNode, MapNode targetNode, Enemy enemy, GameData gameData) {\n // Sets the sent startNode and targetNode to be Hearistics\n Heuristics startHeuristics = new Heuristics(startNode);\n Heuristics targetHeuristics = new Heuristics(targetNode);\n\n List map = mapSPI.getMap();\n HeuristicsPriorityQueue frontier = new HeuristicsPriorityQueue();\n Set<MapNode> explored = new HashSet();\n frontier.add(startHeuristics);\n\n while (frontier.size() > 0) {\n Heuristics current = frontier.remove();\n\n // Returns call to retracePath method. Happens when the targetNode has been reached\n if (current.equals(targetHeuristics)) {\n return retracePath(startHeuristics, targetHeuristics, enemy);\n }\n\n explored.add(current.getNode());\n\n for (MapNode neighbour : current.getNode().getNeighbours()) {\n if (explored.contains(neighbour)) {\n continue; //Skips code underneath for this neighbour, and repeats with next.\n }\n\n Heuristics neighbourHeuristics = new Heuristics(neighbour);\n\n // The A* calculation which finds and sets the \"cost\" of a node\n int newMovementCostToNeighbour = current.getgCost() + getDistance(current.getNode(), neighbour);\n if (newMovementCostToNeighbour < neighbourHeuristics.getgCost() || !frontier.contains(neighbourHeuristics)) {\n neighbourHeuristics.setgCost(newMovementCostToNeighbour);\n neighbourHeuristics.sethCost(getDistance(neighbour, targetHeuristics.getNode()));\n neighbourHeuristics.setParent(current);\n\n if (!frontier.contains(neighbourHeuristics)) {\n frontier.add(neighbourHeuristics);\n\n if (neighbourHeuristics.equals(startHeuristics)) {\n startHeuristics = neighbourHeuristics;\n }\n if (neighbourHeuristics.equals(targetHeuristics)) {\n targetHeuristics = neighbourHeuristics;\n }\n }\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "c910220ac3906e7cf049540d689906ed", "score": "0.4838728", "text": "public Suggestion optimize() {\n\t\tdouble certainity = 10;\n\t\t\n\t\t// Need more accuracy at high AS\n\t\twhile (certainity > (15 / AS)) {\n\t\t\t// Baseline for future evaluations\n\t\t\tASbuild build = new ASbuild();\n\t\t\tbuild = allocate(build);\n\t\t\tsimulateAndCompare(build, true);\n\t\t\t\n\t\t\t// Increasing outsiders value and checking effects on AS/day\n\t\t\t// Could be used to adjust build after iteration on several outsiders at once\n\t\t\t// Althrough, that method was worse than double-optimizing with doubles>ints\n\t\t\tdouble Xylmove = outsiderMove(1, build, AS * certainity / 500) - bestresult.ASgainday;\n\t\t\tdouble Chormove = outsiderMove(2, build, AS * certainity / 500) - bestresult.ASgainday;\n\t\t\tdouble Phanmove = outsiderMove(3, build, AS * certainity / 500) - bestresult.ASgainday;\n\t\t\tdouble Borbmove = outsiderMove(4, build, AS * certainity / 500) - bestresult.ASgainday;\n\t\t\tdouble Ponymove = outsiderMove(5, build, AS * certainity / 500) - bestresult.ASgainday;\n\t\t\n\t\t\t// Checking effect of moving outsiders and checking total improvements/losses\n\t\t\t// Not really used anymore\n\t\t\tdouble movepos = 0;\n\t\t\tdouble moveneg = 0;\n\t\t\tif (Xylmove > 0) { movepos += Xylmove; } else { moveneg += Xylmove; }\n\t\t\tif (Chormove > 0) { movepos += Chormove; } else { moveneg += Chormove; }\n\t\t\tif (Phanmove > 0) { movepos += Phanmove; } else { moveneg += Phanmove; }\n\t\t\tif (Borbmove > 0) { movepos += Borbmove; } else { moveneg += Borbmove; }\n\t\t\tif (Ponymove > 0) { movepos += Ponymove; } else { moveneg += Ponymove; }\n\t\t\n\t\t\tif (Xylmove > 0) { Xylsugg = Xylsugg + certainity / movepos * Xylmove; }\n\t\t\telse { Xylsugg = Xylsugg - certainity / moveneg * Xylmove; }\n\t\t\tif (Chormove > 0) { Chorsugg = Chorsugg + certainity / movepos * Chormove; }\n\t\t\telse { Chorsugg = Chorsugg - certainity / moveneg * Chormove; }\n\t\t\tif (Phanmove > 0) { Phansugg = Phansugg + certainity / movepos * Phanmove; }\n\t\t\telse { Phansugg = Phansugg - certainity / moveneg * Phanmove; }\n\t\t\tif (Borbmove > 0) { Borbsugg = Borbsugg + certainity / movepos * Borbmove; }\n\t\t\telse { Borbsugg = Borbsugg - certainity / moveneg * Borbmove; }\n\t\t\tif (Ponymove > 0) { Ponysugg = Ponysugg + certainity / movepos * Ponymove; }\n\t\t\telse { Ponysugg = Ponysugg - certainity / moveneg * Ponymove; }\n\t\t\t\n\t\t\t// Copying best result from moving outsiders to working results\n\t\t\tif (midresult.ASgaindayhuman > bestresult.ASgaindayhuman) {\n\t\t\t\tbestresult.copyResult(midresult);\n\t\t\t\tbestbuild.copyBuild(midbuild);\n\t\t\t}\n\t\t\t\n\t\t\t// If we dont have any improvement, decrease step more aggressively\n\t\t\tif (movepos == 0) {\n\t\t\t\tmovepos = ((Xylmove + Chormove + Phanmove + Borbmove + Ponymove) / -5) / bestresult.ASgaindayhuman;\n\t\t\t\t//System.out.println(\"movepos: \" + movepos);\n\t\t\t\tif (movepos > 1) { movepos = 1; }\n\t\t\t\tif (movepos < 0) { movepos = 0; }\n\t\t\t\tcertainity = certainity * (1 - movepos);\n\t\t\t}\n\t\t\n\t\t\t// Fix anything bad that could happen to build to avoid broken AS count\n\t\t\tfixnegatives();\n\t\t\t\n\t\t\t// Translate best build after iteration into suggestions for the next one\n\t\t\ttobestbuild();\n\t\t\t\n\t\t\t// Decrease step size and continue\n\t\t\tcertainity = certainity * 0.85;\t\n\t\t}\n\t\t\n\t\t//bestresult.print();\n\t\tbestresult.write(1);\n\t\t\n\t\t// Prepare to step 2 - integer optimization\n\t\t// Round double-value outsiders\n\t\tdouble loss;\n\t\tloss = bestbuild.Xyl - Math.round(bestbuild.Xyl); bestbuild.Xyl = Math.round(bestbuild.Xyl);\n\t\tbestbuild.Chor = bestbuild.Chor + loss;\tloss = 0;\n\t\tloss = bestbuild.Chor - Math.round(bestbuild.Chor); bestbuild.Chor = Math.round(bestbuild.Chor);\n\t\tbestbuild.Phan = bestbuild.Phan + loss; loss = 0;\n\t\tloss = bestbuild.Phan - Math.round(bestbuild.Phan); bestbuild.Phan = Math.round(bestbuild.Phan);\n\t\tbestbuild.Borb = bestbuild.Borb + loss; loss = 0;\n\t\tloss = bestbuild.Borb - Math.round(bestbuild.Borb); bestbuild.Borb = Math.round(bestbuild.Borb);\n\t\tbestbuild.Pony = bestbuild.Pony + loss; loss = 0;\n\t\t\n\t\t//System.out.println(\"Xyl: \" + bestbuild.Xyl + \", Chor: \" + bestbuild.Chor + \", Phan: \" + bestbuild.Phan + \", Borb: \" + bestbuild.Borb + \", Pony: \" + bestbuild.Pony);\n\t\t\n\t\t// Translating them to actual levels\n\t\tbestbuild.Chor = Transcension.solveChor(bestbuild.Chor);\n\t\tbestbuild.Phan = Transcension.solvePhan(bestbuild.Phan);\n\t\t\n\t\t//System.out.println(\"After solving - Xyl: \" + bestbuild.Xyl + \", Chor: \" + bestbuild.Chor + \", Phan: \" + bestbuild.Phan + \", Borb: \" + bestbuild.Borb + \", Pony: \" + bestbuild.Pony);\n\t\t\n\t\t// We probable have some leftover again, dump into Pony\n\t\tloss = (bestbuild.Chor - Math.round(bestbuild.Chor)) * Math.ceil(bestbuild.Chor / 10);\n\t\tloss = loss + (bestbuild.Phan - Math.round(bestbuild.Phan)) * Math.ceil(bestbuild.Phan);\n\t\tbestbuild.Chor = Math.round(bestbuild.Chor);\n\t\tbestbuild.Phan = Math.round(bestbuild.Phan);\n\t\tbestbuild.Pony = Math.round(bestbuild.Pony + loss);\n\t\t\n\t\t//System.out.println(\"After dumping - Xyl: \" + bestbuild.Xyl + \", Chor: \" + bestbuild.Chor + \", Phan: \" + bestbuild.Phan + \", Borb: \" + bestbuild.Borb + \", Pony: \" + bestbuild.Pony);\n\t\t\n\t\t// Starting fresh round of optimization\n\t\tbestresult.ASgaindayhuman = 0;\n\t\toptimizeInt(bestbuild);\n\t\t\n\t\t// If we use previous AS optimizer results as a base to next AS optimization - return them\n\t\t// It is pretty risky, though, local maximums are everywhere and function is very uneven\n\t\ttobestbuild();\n\t\treturn new Suggestion(Xylsugg, Chorsugg, Phansugg, Borbsugg, Ponysugg);\n\t}", "title": "" }, { "docid": "92439d64387a71690965e2b5cd58fda3", "score": "0.48366883", "text": "@Test\n\tpublic void test3() {\n\t\tmap = new Map(gridSize, rows, cols);\n\t\tmarkMap(map);\n\t\tPathFinding pathFinding = new PathFinding(map);\n\t\tDecisionMaker dm = createDM(map, pathFinding);\n\t\tPoint robotPos = new Point(-0.9f, -0.2f);\n\t\tPoint destPos = new Point(-0.45f, -0.7f);\n\t\tlabelMap(destPos);\n\t\tdm.findPath(robotPos, convertPointToGridLocation(destPos));\n\t\tList<Point> foundPath = getAllPointsInFoundPath(dm);\n\t\tassertFoundPath(foundPath);\n\t\tlabelAndPrintMap(robotPos, foundPath);\n\t}", "title": "" }, { "docid": "c016d292a8d118521090cb592a4d9a4e", "score": "0.4835252", "text": "public boolean obstacleAhead() {\r\n\t\tif(getDistanceWithSampling() <= 0.06) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "06eb4d06b3b2042b5f3c6c27c18bc7b8", "score": "0.48347092", "text": "int step2() {\n/* 639 */ boolean found = false;\n/* 640 */ float min = Float.MAX_VALUE;\n/* */ \n/* 642 */ float score = 0.0F;\n/* 643 */ PathTile best = this.pathList.get(this.pathList.size() - 1);\n/* 644 */ PathTile now = null;\n/* */ \n/* 646 */ for (int i = 0; i < this.pathList.size(); i++) {\n/* */ \n/* 648 */ now = this.pathList.get(i);\n/* 649 */ score = now.getDistanceFromStart();\n/* 650 */ score += cbDist(now, this.finish, getCost(now.getTile()));\n/* */ \n/* 652 */ if (!now.isUsed())\n/* */ {\n/* 654 */ if (score < min) {\n/* */ \n/* 656 */ min = score;\n/* 657 */ best = now;\n/* */ } \n/* */ }\n/* */ } \n/* 661 */ now = best;\n/* 662 */ this.pathList.remove(now);\n/* 663 */ now.setUsed();\n/* */ \n/* 665 */ PathTile[] next = this.mesh.getAdjacent(now);\n/* */ \n/* 667 */ for (int j = 0; j < next.length; j++) {\n/* */ \n/* 669 */ if (next[j] != null)\n/* */ {\n/* 671 */ if (canPass(now, next[j])) {\n/* */ \n/* 673 */ if (!this.pathList.contains(next[j]) && next[j].isNotUsed())\n/* */ {\n/* 675 */ this.pathList.add(next[j]);\n/* */ }\n/* 677 */ if (next[j] == this.finish)\n/* */ {\n/* 679 */ found = true;\n/* */ }\n/* 681 */ score = now.getDistanceFromStart() + next[j].getMoveCost();\n/* 682 */ next[j].setDistanceFromStart(now, score);\n/* */ } \n/* */ }\n/* 685 */ if (found)\n/* 686 */ return 1; \n/* */ } \n/* 688 */ if (this.pathList.isEmpty())\n/* 689 */ return 2; \n/* 690 */ return 0;\n/* */ }", "title": "" }, { "docid": "aef1c2f658651732993eed60b67433ae", "score": "0.48316997", "text": "public int minimax(Tile[][] boardState, int depth, boolean maximizing) {\n\n\t\tString current = (maximizing) ? \"blue\" : \"red\";\n\t\tOthelloGame temp = new OthelloGame(boardState, current, false, false);\n\t\tboolean[][] possibilities = temp.getViableMoves(); //possible states after a move\n\t\tboolean leaf = true;\n\n\t\tfor (boolean[] row : possibilities) //checks through all the possibilites and see if its false\n\t\t\tfor (boolean spot : row)\n\t\t\t\tif (spot) leaf = false;\n\n\t\tif ((depth == 0) || (leaf)) //if its a leaf node, return because it will not have\n\t\t\treturn score(boardState); //any children\n\n\t\tif (maximizing) { //if true, it WHO'S TURN IS THIS AGAIN?\n\n\t\t\tint bestValue = -1000;\n\n\t\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t\tfor (int j = 0; j < 8; j++) {\n\t\t\t\t\tif (possibilities[i][j]) {\n\n\t\t\t\t\t\tint newValue = minimax(dummy(boardState[i][j]), depth-1, false);\n\t\t\t\t\t\t//a new state that creates that the board would look like after a certain move\n\n\t\t\t\t\t\t//finds which of the two values have more of the tiles we want maximized\n\t\t\t\t\t\tif (newValue > bestValue) {\n\n\t\t\t\t\t\t\tbestValue = newValue;\n\t\t\t\t\t\t\tpath[depth-1] = (j + \" \" + (7-i));\n\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\treturn bestValue; //return state that provides most tiles we want\n\n\t\t}\n\t\telse { //WHOS TURN IS THIS???? The minimizing player's turn\n\n\t\t\tint bestValue = 1000;\n\n\t\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t\tfor (int j = 0; j < 8; j++) {\n\t\t\t\t\tif (possibilities[i][j]) {\n\n\t\t\t\t\t\tint newValue = minimax(dummy(boardState[i][j]), depth-1, true);\n\t\t\t\t\t\t//a new state that creates that the board would look like after a certain move\n\n\t\t\t\t\t\t//finds which of the two values have more of the tiles we want maximized\n\t\t\t\t\t\tif (newValue < bestValue) {\n\n\t\t\t\t\t\t\tbestValue = newValue;\n\t\t\t\t\t\t\tpath[depth-1] = (j + \" \" + (7-i));\n\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\treturn bestValue;\n\t\t\t//returns state that provides the most tiles we want\n\t\t}\n\n\t}", "title": "" } ]
bff6ed25337fc6759c145e3e4963bae1
Instantiates a new property enum.
[ { "docid": "63ac0801395b202dd472cceb0687a73e", "score": "0.6951776", "text": "private PropertyEnum(String propertyIdParam)\r\n\t{\r\n\t\tpropertyId = propertyIdParam;\r\n\t}", "title": "" } ]
[ { "docid": "b12ae85c5890b1c28c5220a98c654254", "score": "0.7182929", "text": "PropertyEnum create(String var0, Class var1, Collection var2);", "title": "" }, { "docid": "5f65d00a7eae2d69416fddef40f84017", "score": "0.66708446", "text": "Enum createEnum();", "title": "" }, { "docid": "471d566089062642d362c65cdbe84c59", "score": "0.65881723", "text": "Property createProperty();", "title": "" }, { "docid": "471d566089062642d362c65cdbe84c59", "score": "0.65881723", "text": "Property createProperty();", "title": "" }, { "docid": "471d566089062642d362c65cdbe84c59", "score": "0.65881723", "text": "Property createProperty();", "title": "" }, { "docid": "471d566089062642d362c65cdbe84c59", "score": "0.65881723", "text": "Property createProperty();", "title": "" }, { "docid": "7cadb87ce6fbea0426021cd7483765d5", "score": "0.6575463", "text": "EnumField createEnumField();", "title": "" }, { "docid": "949b4b46d11418727214f4ff2086782c", "score": "0.6409724", "text": "EnumFieldValue createEnumFieldValue();", "title": "" }, { "docid": "252bf83fb2a5045acdbf3875fbbd5670", "score": "0.6278956", "text": "public OVFProperty(){}", "title": "" }, { "docid": "087298f1fa5316c729ea3a5eb4b1f040", "score": "0.61347795", "text": "EnumType createEnumType();", "title": "" }, { "docid": "83d95ff44c0ec93f21756fe03601bcb6", "score": "0.6129252", "text": "public Property() {\r\n }", "title": "" }, { "docid": "83c9dabd5e50a61d07bf1b4dd99025c3", "score": "0.6093829", "text": "EnumFieldAtom createEnumFieldAtom();", "title": "" }, { "docid": "e9b11360542e6cc01b28695d07b2cdff", "score": "0.6003236", "text": "@Test\n public void testCreateEnum() {\n // exercise\n final TestEnum testEnum = factory.create(TestEnum.class);\n\n // verify\n assertNotNull(testEnum);\n }", "title": "" }, { "docid": "51b019b65d24a209f714e8cc71628346", "score": "0.5956972", "text": "EnumLiteral createEnumLiteral();", "title": "" }, { "docid": "51b019b65d24a209f714e8cc71628346", "score": "0.5956972", "text": "EnumLiteral createEnumLiteral();", "title": "" }, { "docid": "4bb7035a25a7036519d077711fd70efb", "score": "0.59440273", "text": "Enumeration createEnumeration();", "title": "" }, { "docid": "55570ee6f05056d848c4894141281c3c", "score": "0.59381497", "text": "protected Enum() {\r\n this.ordinal = init(this.getClass());\r\n this.declaringClass = this.getClass();\r\n }", "title": "" }, { "docid": "3e536afe03be70fbbb136c94d540ce7c", "score": "0.58956987", "text": "EnumDecl createEnumDecl();", "title": "" }, { "docid": "9ba41a8740be035cef3d7aa5dac633d0", "score": "0.5853564", "text": "public Property() {\n\t\tthis(0,0,0,0);\n\t}", "title": "" }, { "docid": "7fd67d697b5a65920268150a3e3c6fa1", "score": "0.5792627", "text": "SCAPropertyBase createSCAPropertyBase();", "title": "" }, { "docid": "e97a41b8496b7871d7e298da1495b52f", "score": "0.57886475", "text": "PropertyValue createPropertyValue();", "title": "" }, { "docid": "d386e1d5a3d6c789c53dcbe7639f8d5b", "score": "0.5719713", "text": "@Property(\"enum-property\")\n public void setEnumProperty(Switch enumProperty)\n {\n this.enumProperty = enumProperty;\n }", "title": "" }, { "docid": "80a963ad37832f4e88ee18d3f1bac2da", "score": "0.5717424", "text": "EnumLiteralAtom createEnumLiteralAtom();", "title": "" }, { "docid": "fc0110e3109ff2614bcecb254c7b4ef8", "score": "0.5674706", "text": "private PropertySingleton(){}", "title": "" }, { "docid": "bee7d9c1961a9c8a0d221e3f5a3a53cc", "score": "0.56565845", "text": "public FactoryProperty createProperty() {\n FactoryProperty property = new FactoryProperty();\n properties.add(property);\n return property;\n }", "title": "" }, { "docid": "0691f260fc52ea736c771d18df4f3871", "score": "0.5648683", "text": "public interface MS_PropertyInitializer {\n\n /**\n * Retrieves the String property named the same as enumeration name.\n *\n * @return specific property as String.\n */\n String getProperty();\n\n /**\n * Retrieves the property of primitive type supported by\n * {@link lv.emes.libraries.utilities.MS_StringUtils#stringToPrimitive(String, Class)} for conversion\n * named the same as enumeration name.\n *\n * @param valueClass desired class of given <b>parameter</b> to which it will be converted from String.\n * @param <T> type of parameter value. Currently only Boolean, Integer, Long and String are supported.\n * @return specific property as <b>T</b>.\n */\n <T> T getProperty(Class<T> valueClass);\n}", "title": "" }, { "docid": "eea4e02c022fb83c5c3e3c7fabdcc259", "score": "0.56200725", "text": "public IProperty createProperty();", "title": "" }, { "docid": "347331fbe8d76b9fa885dfe69e02e036", "score": "0.5602093", "text": "PropertyTerm createPropertyTerm(String name);", "title": "" }, { "docid": "c1da067183aa9ed775cbc9bae328f334", "score": "0.55719465", "text": "PropertyNamer createPropertyNamer();", "title": "" }, { "docid": "deedf74557b366e66546c8e0c018fab7", "score": "0.55675304", "text": "public Switch getEnumProperty()\n {\n return enumProperty;\n }", "title": "" }, { "docid": "5fa8fdb390e7690a784a3b5d3fa27737", "score": "0.55414563", "text": "public ASNEnumType() {\n setType (ENUM);\n \n /* Do collections */\n namedNumberList = new Vector ();\n }", "title": "" }, { "docid": "eb4738f9064a9db228b743a9d7cf7d97", "score": "0.5513486", "text": "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }", "title": "" }, { "docid": "d8e9d3a39338ff8878d312c3930e5c7d", "score": "0.5502673", "text": "public IntEnumTest (String name){\n super(name);\n }", "title": "" }, { "docid": "42185191d69757696184777cd77f225c", "score": "0.5486126", "text": "EnumsFactory getEnumsFactory();", "title": "" }, { "docid": "44f6ef2a81035908bdf0c7fc4b0f0402", "score": "0.53817433", "text": "private DeviceTypeEnum(int value) {\n this.value = value;\n }", "title": "" }, { "docid": "6ea783bc0f6781e24dbf8f66f7835f0d", "score": "0.5374317", "text": "protected void setProperty(String propertyName, JavascriptEnum propertyValue) {\n jsObject.setMember(propertyName, propertyValue.getEnumValue());\n }", "title": "" }, { "docid": "194b7e73aad6cb34ae1466ca9f7aa920", "score": "0.5364774", "text": "private PropertyManager() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "fd8f8417ea0aa8a26e90ea559d5cf062", "score": "0.53399074", "text": "public Property createProperty() {\r\n\t\tif (newProject == null) {\r\n\t\t\treinit();\r\n\t\t}\r\n\t\t/*\r\n\t\t * Property p = new Property( true, getProject() );\r\n\t\t */\r\n\t\tProperty p = new Property();\r\n\t\tp.setProject(newProject);\r\n\t\tp.setTaskName(\"property\");\r\n\t\tproperties.addElement(p);\r\n\t\treturn p;\r\n\t}", "title": "" }, { "docid": "da3b900546b5da99184bc871339d2093", "score": "0.53340036", "text": "public Property(String name) {\n this.name = name;\n }", "title": "" }, { "docid": "caaa00ecb75e6961008b5aef2b5efeec", "score": "0.5291603", "text": "@Test\n public void testEnumElementProperty() throws UnknownFormatConversionException, ConfigurationException\n {\n Environment env = mock(Environment.class);\n ConfigurationContext context = new DefaultConfigurationContext(env);\n\n String xml = \"<element mandatory-property=\\\"funky\\\"><enum-property>Off</enum-property></element>\";\n XmlElement xmlElement = XmlHelper.loadXml(xml).getRoot();\n\n TestScheme scheme = new TestScheme();\n context.configure(scheme, new QualifiedName(xmlElement), xmlElement);\n\n assertTrue(scheme.getEnumProperty() == Switch.Off);\n }", "title": "" }, { "docid": "982868dbe13f998e21c6e8c37b974576", "score": "0.52911466", "text": "@Test\n public void testEnumAttributeProperty() throws UnknownFormatConversionException, ConfigurationException\n {\n Environment env = mock(Environment.class);\n ConfigurationContext context = new DefaultConfigurationContext(env);\n\n String xml = \"<element mandatory-property=\\\"funky\\\" enum-property=\\\"On\\\"/>\";\n XmlElement xmlElement = XmlHelper.loadXml(xml).getRoot();\n\n TestScheme scheme = new TestScheme();\n context.configure(scheme, new QualifiedName(xmlElement), xmlElement);\n\n assertTrue(scheme.getEnumProperty() == Switch.On);\n }", "title": "" }, { "docid": "a82e21734a88f31a1f6a32fb165c3065", "score": "0.5277865", "text": "public static PropertyInfo createInstanceProperty(\n String name, Class[] allowedValueClasses,\n boolean hasMultiValue )\n{\n return new PropertyInfo( null, name, VT_INSTANCE, allowedValueClasses, null, hasMultiValue );\n}", "title": "" }, { "docid": "18da3a2213766226e35ebd644228c9a3", "score": "0.5259758", "text": "private OrgEnum(final String value) {\r\n\t\tthis.value = value;\r\n\t}", "title": "" }, { "docid": "1db4428f9da45036c28f129d06b35b9d", "score": "0.52461416", "text": "public Property lookupProperty(String name) {\n\t\treturn lookupEnumLiteral(name);\n\t}", "title": "" }, { "docid": "1db4428f9da45036c28f129d06b35b9d", "score": "0.52461416", "text": "public Property lookupProperty(String name) {\n\t\treturn lookupEnumLiteral(name);\n\t}", "title": "" }, { "docid": "9c40355a23bf23696313c464ec7158bb", "score": "0.5223316", "text": "public Properties()\r\n\t{\r\n\t}", "title": "" }, { "docid": "3dc39e201dbf83d7534ad448ff8c40fd", "score": "0.5222992", "text": "private Property(String value) {\n\t\t\tthis.value = value;\n\t\t}", "title": "" }, { "docid": "3dc39e201dbf83d7534ad448ff8c40fd", "score": "0.5222992", "text": "private Property(String value) {\n\t\t\tthis.value = value;\n\t\t}", "title": "" }, { "docid": "3dc39e201dbf83d7534ad448ff8c40fd", "score": "0.5222992", "text": "private Property(String value) {\n\t\t\tthis.value = value;\n\t\t}", "title": "" }, { "docid": "3dc39e201dbf83d7534ad448ff8c40fd", "score": "0.5222992", "text": "private Property(String value) {\n\t\t\tthis.value = value;\n\t\t}", "title": "" }, { "docid": "5e41c9613631c29e25da07c2727d7321", "score": "0.5217209", "text": "public IPropertyValue createPropertyValue();", "title": "" }, { "docid": "af0561f29fcec8162cccafaf3e541c4f", "score": "0.5212436", "text": "protected Enum(String name) {\n/* 368 */ init(name);\n/* 369 */ this.iName = name;\n/* 370 */ this.iHashCode = 7 + getEnumClass().hashCode() + 3 * name.hashCode();\n/* */ }", "title": "" }, { "docid": "0f4486f1cc431b0853d4537f8c44b736", "score": "0.5200865", "text": "static <P extends Enum<P> & EnumProperty<P, V>, V> Optional<P> fromValue(\n Class<P> enumType, V value) {\n return fromValue(enumType, value, false);\n }", "title": "" }, { "docid": "71e0e4f119a59b235012e432bfda6dad", "score": "0.5200374", "text": "PropertyTerm createPropertyTerm(PropertyName pname);", "title": "" }, { "docid": "94030bf271ea8176578b37b2a47729a7", "score": "0.5189344", "text": "@Override\n\tpublic void initialize(Properties property) {\n\t\t\n\t}", "title": "" }, { "docid": "4eebd016c513a73b1dae646a8f0c0269", "score": "0.5172342", "text": "public Properties(){\n\n }", "title": "" }, { "docid": "edc3090640d5d7dca457986573938901", "score": "0.5165804", "text": "public static PropertyInfo createInstanceProperty(\n String namespace, String name, Class[] allowedValueClasses,\n boolean hasMultiValue )\n{\n return new PropertyInfo( namespace, name, VT_INSTANCE, allowedValueClasses, null, hasMultiValue );\n}", "title": "" }, { "docid": "4a5d252e59fe0dcd3f1a15c6ec34c613", "score": "0.5164692", "text": "protected Enum(Class declaringClass) {\r\n validateEnumClass(declaringClass);\r\n this.ordinal = init(declaringClass);\r\n this.declaringClass = declaringClass;\r\n }", "title": "" }, { "docid": "a1335f614a648dc606d40545db6eb102", "score": "0.5145607", "text": "private TipoImpuestoIvaEnum(String code)\n/* 10: */ {\n/* 11:15 */ this.code = code;\n/* 12: */ }", "title": "" }, { "docid": "077718edfdb3d3766c55e0eecd7d8547", "score": "0.5129946", "text": "public Properties() {\n\n\t}", "title": "" }, { "docid": "543050de54cd7e1466dcc2547e6172c3", "score": "0.51294076", "text": "static <P extends Enum<P> & EnumProperty<P, String>> EnumProperty<P, String> ofSystemProperty(\n Class<P> type, String key) {\n return fromValue(type, getProperty(key)).orElse(null);\n }", "title": "" }, { "docid": "c83cc6930009e5a4bb2b26ab0620ff97", "score": "0.51205814", "text": "private Property createProperty(String key, String value) {\n Property res = new Property();\n res.setKey(key);\n res.setValue(value);\n return res;\n }", "title": "" }, { "docid": "bb20f7e75c49cde4c976bc2608811735", "score": "0.51118743", "text": "public Property(Property prop, int regNum) {\n\t\tthis(prop.getXLength(),prop.getYWidth(),prop.getXLeft(),prop.getYTop(),regNum);\n\t}", "title": "" }, { "docid": "c90949664f5447554163833ff56aaafb", "score": "0.5107358", "text": "protected AffectEnum( int __n ) { __Ezj_value = __n; }", "title": "" }, { "docid": "b510e449579c92b6c09e1288cc128fb0", "score": "0.5101972", "text": "public LabProperties() {\n }", "title": "" }, { "docid": "5b9d461c30aa5f1c2285402d1c1d9235", "score": "0.50927436", "text": "Enum(String type, String name, String version) {\n this.type = type;\n this.name = name;\n this.version = version;\n }", "title": "" }, { "docid": "dbf5bbfbf841820b30b6f61785cffac5", "score": "0.5088766", "text": "EnumC69953Je(int i) {\n this.value = i;\n }", "title": "" }, { "docid": "bf08af982d1dd09b824194c4d6e2b08e", "score": "0.50887275", "text": "public void initialize() throws PropertyVetoException, PropertyConversionException {\t\n }", "title": "" }, { "docid": "079f0695664bd59aa6a9de2a00190522", "score": "0.50821084", "text": "private EstadoEmpleadoEnum(int value) {\n this.value = value;\n }", "title": "" }, { "docid": "7125d8dcaa43ac7a5b51f90b7092bb5a", "score": "0.50815904", "text": "private IfcStateEnum(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "title": "" }, { "docid": "e26e24f1bcdb11ab36313b67bcaced6d", "score": "0.50618327", "text": "public Properties(PropEnum name, int x, int y) {\n if (x < 0 || y < 0)\n throw new IllegalArgumentException(\"Coords not valid\");\n this.name = name;\n this.x = x;\n this.y = y;\n }", "title": "" }, { "docid": "1ee37b677b82be3e462d8e63f8621214", "score": "0.50463325", "text": "@Test\n public void testAttributeEnum() throws IOException {\n assertEqual(createFile(\"attributeEnum\"), \"attributeEnum\", \"0\");\n }", "title": "" }, { "docid": "8ec4e46d18268523b21a8e0d1cb6c231", "score": "0.5043395", "text": "private IfcFlowInstrumentTypeEnum(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}", "title": "" }, { "docid": "8138bd5632d8bfae4f84c0e9ad3e6f93", "score": "0.50326383", "text": "public Property(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "5efb3aeb6f61d71a22442f2bde214529", "score": "0.50127745", "text": "protected static Property property(String localName) {\n return ResourceFactory.createProperty(namespace, localName);\n \n }", "title": "" }, { "docid": "f392ba90cea89e8feeb84b61f19e4ee6", "score": "0.5008527", "text": "public EnumDAI makeEnumDAO();", "title": "" }, { "docid": "3d69b1e6ada6b18f83576fa3998f780e", "score": "0.49958092", "text": "public PointProperty() {\n\t}", "title": "" }, { "docid": "b7d089767608d6c8a1502de83d6e2434", "score": "0.4992608", "text": "private DeviceStateEnum(int value) {\n this.value = value;\n }", "title": "" }, { "docid": "c78fc38879d4af93865c9a449661e439", "score": "0.49922943", "text": "public KiemPropertyTypeInt() {\r\n super();\r\n }", "title": "" }, { "docid": "5907ab6015decb94c16616daa1e21e52", "score": "0.49881607", "text": "public CounterProperties() {\r\n this(\"unnamed counter property\");\r\n }", "title": "" }, { "docid": "47ee5e57019e1db0a685345df649a308", "score": "0.4985057", "text": "public OAProperties() {\n }", "title": "" }, { "docid": "18ebdbdbe302594ddd63c59a90aa146f", "score": "0.49813926", "text": "public StubNumberPropertyDefinition(){\r\n//\t\tthis.labelDefaults = new StubLabelAttributeDefaults();\r\n\t}", "title": "" }, { "docid": "7aee25d43c1cfa817218d4d2dbe23a0f", "score": "0.49457836", "text": "public LookupBuilder(Class<E> enumType) {\r\n this.enumType = Objects.requireNonNull(enumType);\r\n }", "title": "" }, { "docid": "5db4a7e1ed7ff22308babc16126c7505", "score": "0.4925934", "text": "private Property(String name, T value) \n\t{ \n\t\t_name = name;\n\t\t_value = Optional.fromNullable(value); \n\t}", "title": "" }, { "docid": "b5aad18fda425f35f90ea5e74de43cc5", "score": "0.4922034", "text": "public JavaEnum(String name, String classPackage) {\n super(name, classPackage);\n init();\n }", "title": "" }, { "docid": "59ac8487599136b55a30e877ee606d86", "score": "0.49198762", "text": "GameStatusEnum(int gameStatusValue){\n this.gameStatusValue = gameStatusValue;\n }", "title": "" }, { "docid": "f4f1c03b07a779d371dfefba3b502358", "score": "0.4890549", "text": "@Test\r\n public void testToEnumCorrect() {\r\n\t\tassertEquals(colorRed, Color.toEnum(\"R\"));\r\n\t\tassertEquals(colorPurple, Color.toEnum(\"P\"));\r\n\t\tassertEquals(colorGreen, Color.toEnum(\"G\"));\r\n\t\tassertEquals(colorYellow, Color.toEnum(\"Y\"));\r\n\t\tassertEquals(colorStart, Color.toEnum(\"RGYP\"));\r\n\t}", "title": "" }, { "docid": "f790b2d29ab1163bbb73cd6086415b4c", "score": "0.48797566", "text": "OntoLClass getPropertyType();", "title": "" }, { "docid": "a986a0ffbb8826ada8a2cbb17371a523", "score": "0.48659098", "text": "public EnumConverter(Class<? extends Enum> enumType) {\r\n if (enumType == null || !enumType.isEnum()) {\r\n throw new IllegalArgumentException(\"To use this constructor, the type has to be an enum type.\");\r\n }\r\n String name = enumType.getName();\r\n if (name == null || name.trim().length() == 0) {\r\n throw new IllegalArgumentException(\"Empty enum type name.\");\r\n }\r\n int index = name.lastIndexOf(\"$\");\r\n if (index >= 0) {\r\n _name = name.substring(index + 1);\r\n }\r\n else {\r\n _name = name;\r\n }\r\n _type = enumType;\r\n try {\r\n Object values = ReflectionUtils.callStatic(enumType, \"values\", null, null);\r\n if (!values.getClass().isArray()) {\r\n throw new IllegalArgumentException(\"Illegal enum type.\");\r\n }\r\n int length = Array.getLength(values);\r\n _objects = new Object[length];\r\n _strings = new String[length];\r\n for (int i = 0; i < length; i++) {\r\n _objects[i] = Array.get(values, i);\r\n _strings[i] = \"\" + _objects[i];\r\n }\r\n }\r\n catch (Exception e) {\r\n throw new IllegalArgumentException(\"Illegal enum type.\");\r\n }\r\n }", "title": "" }, { "docid": "494dd48200ee9e3ecce6ed2055421f8b", "score": "0.4848096", "text": "ParProperty createProperty(ParProperty data) throws ApiException;", "title": "" }, { "docid": "f54a623f66615b6703b38bf15c171935", "score": "0.48418376", "text": "public SVGColorManager(String prop, Value v) {\n/* 68 */ this.property = prop;\n/* 69 */ this.defaultValue = v;\n/* */ }", "title": "" }, { "docid": "755c9fc872e9f263fd50a1a2c52b6514", "score": "0.4841459", "text": "public PropertyUtil() {\n\t\tproperties = new Properties();\n\t}", "title": "" }, { "docid": "626fa59bd5551a5110bd0f7ea26cd5c5", "score": "0.48313996", "text": "public ElementProperty newElementProperty() {\n\t\treturn new ElementProperty();\n\t}", "title": "" }, { "docid": "1f0df79f9012b95d512d9809f7918635", "score": "0.48238385", "text": "public EnvObjPropertyDialogController()\n {}", "title": "" }, { "docid": "8076ce2ff5956e72a8bf4f467aa2b8f0", "score": "0.48228785", "text": "void initFromProperties(Properties prop);", "title": "" }, { "docid": "a40630ff28dc03ab18535b0b36b3b3a0", "score": "0.48225728", "text": "private Property makeProperty(String key, String value) {\n Property property = new Property();\n property.setKey(key);\n property.setValue(value);\n return property;\n }", "title": "" }, { "docid": "674c70214f751c681a36d3e62bd43c45", "score": "0.4819748", "text": "AddProductEnum(String title)\n {\n this.title = title;\n }", "title": "" }, { "docid": "8f9d17b0ed7c9add8de0df06ccebb0a6", "score": "0.481042", "text": "public JSONSchemaProp() {\n }", "title": "" }, { "docid": "3574f7fc70e49087ec6a75fb3d7c5d6b", "score": "0.48099822", "text": "private PreDefinedColor(int value, String name, String literal)\n {\n this.value = value;\n this.name = name;\n this.literal = literal;\n }", "title": "" }, { "docid": "a3f86edab091fbe34dd9e88554a1279e", "score": "0.48000503", "text": "JsonParser.EnumC4225b mo29860b();", "title": "" } ]
af53cb032e05722263d613de6d7bd3ba
Note: All numbers are verified with another tool
[ { "docid": "cab8ca4efee3a7a5a39fdd4a08c3bbeb", "score": "0.0", "text": "@DataProvider\n\tpublic Object[][] addressDataProvider() {\n\t\treturn new Object[][]{\n\t\t\t//IPv4 Tests\t\n\t\t\t{\"127.0.0.1\", \"2130706433\"},\n\t\t\t{\"192.168.21.6\", \"3232240902\"},\n\t\t\t{\"75.221.45.21\", \"1272786197\"},\n\t\t\t//IPv6 tests\n\t\t\t{\"2001:0db8:85a3:0000:0000:8a2e:0370:7334\", \"42540766452641154071740215577757643572\"},\n\t\t\t{\"fe80:0:0:0:202:b3ff:fe1e:8329\", \"338288524927261089654163772891438416681\"},\n\t\t\t{\"fe80::202:b3ff:fe1e:5329\", \"338288524927261089654163772891438404393\"},};\n\t}", "title": "" } ]
[ { "docid": "8a29dcdad518d87fe7c97ef3af4df40d", "score": "0.6233766", "text": "public static void main(String[] args) {\n\t\tint orgnum1=1634,orgnum;\r\n\t\tfloat res=0,rem=0;\r\n\t\torgnum=orgnum1;\r\n\t\r\n\t\twhile(orgnum!=0)\r\n\t\t{\r\n\t\trem=(orgnum%10);\t\r\n\t\tres+=(rem*rem*rem);\r\n\t\torgnum/=10;\r\n\t\t}\r\n\t\tSystem.out.println(\"res\"+ res + \" \"+ orgnum+\" n value\"+orgnum1);\r\n if(orgnum1==res)\r\n \tSystem.out.println(\"arms strong\");\r\n else\r\n \t System.out.println(\"not arms strong\");\r\n \t \r\n\t}", "title": "" }, { "docid": "4fe9cbb72b4ea67cdade39c1198bc051", "score": "0.61966515", "text": "public static void main (String[] args){\n Scanner in = new Scanner (System.in);\n int num = in.nextInt();\n int sum=1,sum1=0,n,check=num;\n for(;num!=0;)\n {\n n=num%10;\n sum=1;\n for( int i=n;i>0;i--){\n sum=sum*i;\n }\n sum1 = sum1+sum;\n num=num/10;\n \n }\n if(check==sum1)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\n\n\t}", "title": "" }, { "docid": "69ee876930f3dfa82e1d57b8be423848", "score": "0.619482", "text": "@Override\n public boolean validate(long number) {\n List<Integer> digits = split(number);\n int multiplier = 1;\n int sum = 0;\n for (int digit : Lists.reverse(digits)) {\n int product = multiplier * digit;\n sum += product / BASE + product % BASE;\n multiplier = 3 - multiplier;\n }\n return sum % BASE == 0;\n }", "title": "" }, { "docid": "136ee3500d8060b3f8252e04c89d076d", "score": "0.61592937", "text": "public boolean checkNumber() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a20f5aad28b679b3ee8cade4801451d2", "score": "0.60916674", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number that include 6 numbers\");\r\n\t\tint a = sc.nextInt();\r\n\t\tint a1=a/100000;\r\n\t\tint a2=a%100000/10000;\r\n\t\tint a3=a%10000/1000;\r\n\t\tint a4=a%1000/100;\r\n\t\tint a5=a%100/10;\r\n\t\tint a6=a%10;\r\n\t\tif (a1==a6 && a2==a5 && a3==a4){\r\n\t\t\tSystem.out.println(\"Yours number is polyndromic\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Yours number is unpolyndromic\");\r\n\t\t}\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "a08c7b90cce5288ee552a2c407ec9bb0", "score": "0.6087122", "text": "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "9dfe80cb5f7f2daf8bbf27ee69ecd095", "score": "0.6075266", "text": "public static void main(String[] args) {\n\t\tTheNumber nb = new TheNumber();\r\n\t\t\r\n\t\tif(nb.isValidNumber(\"99\")){\r\n\t\t\tSystem.out.println(99 + \" is a valid number\");\r\n\t\t}\r\n\t\t\r\n\t\tif(!nb.isValidNumber(\"99 Toto\")){\r\n\t\t\tSystem.out.println(\"'99 Toto'\" + \" is not a valid number\");\r\n\t\t}\r\n\t\t\r\n\t\t// Round a float number\r\n\t\tfloat f1 = 12.89f;\r\n\t\tSystem.out.print(nb.arround(f1));\r\n\t\t\r\n\t\t// Comparaison de 2 floats\r\n\t\tSystem.out.print(\"\\nComparer deux floats avec une tolérance :\\n\");\r\n\t\tfloat f2 = 1.0f;\r\n\t\tfloat f3 = 1.01f;\r\n\t\tfloat f4 = 1.25f;\r\n\t\tfloat tolerance = 0.01f;\r\n\t\t\r\n\t\tif(nb.compareFloatsWithTolerence(f2, f3, tolerance)){\r\n\t\t\tSystem.out.println(f2 + \" et \" + f3 + \" sont egaux avec un tolerance de \" + tolerance);\r\n\t\t}\r\n\t\t\r\n\t\tif(!nb.compareFloatsWithTolerence(f2, f4, tolerance)){\r\n\t\t\tSystem.out.println(f2 + \" et \" + f4 + \" ne sont pas egaux avec un tolerance de \" + tolerance);\r\n\t\t}\r\n\t\t\r\n\t\t// Math : cos, sin, tan, log10, log, random\r\n\t\tint number = 45;\r\n\t\t\r\n\t\tSystem.out.println(\"Cosinus de \" + number + \" est :\" + cos(number));\r\n\t\tSystem.out.println(\"Sinus de \" + number + \" est :\" + sin(number));\r\n\t\tSystem.out.println(\"Tangente de \" + number + \" est :\" + tan(number));\r\n\t\tSystem.out.println(\"Log de \" + number + \" est :\" + log(number));\r\n\t\tSystem.out.println(\"Random de Math est : \" + random());\t\t\r\n\t\r\n\t\t// Get a percent of a double\r\n\t\tdouble doubleNumber = .79;\r\n\t\tSystem.out.println(\"Pourcentage de \" + doubleNumber + \" est : \" + nb.getPercentOfDouble(doubleNumber));\r\n\r\n\t\t// Conversion Entier en Binaire, Hexadécimal et Octal\r\n\t\tint intToConvert = 2;\r\n\t\tnb.printIntToBinaryHexaOctal(intToConvert);\r\n\t\t\r\n\t\t// Random\r\n\t\tRandom rand = new Random();\r\n\t\t// Int random\r\n\t\tSystem.out.println(\"\\nNombre aleatoire de 0 à 100 : \" + nb.getRandomInt(rand, 100));\r\n\t\tSystem.out.println(\"Nombre aleatoire de 0 à 100 : \" + nb.getRandomInt(rand, 100));\r\n\t\tSystem.out.println(\"Nombre aleatoire de 0 à 100 : \" + nb.getRandomInt(rand, 100));\r\n\t\r\n\t\t// Double random\r\n\t\tSystem.out.println(\"Nombre aleatoire (double) : \" + nb.getRandomDouble(rand));\r\n\t\t\r\n\t\t// Float random\r\n\t\tSystem.out.println(\"Nombre aleatoire (float) : \" + nb.getRandomFloat(rand));\r\n\t\t\r\n\t\t// Integer to String\r\n\t\tint intToConvert2 = 55;\r\n\t\tSystem.out.println(\"\\n\" + intToConvert2 + \" converti en string donne \" + nb.convertIntegerToString(intToConvert2));\r\n\r\n\t\t// Double to String\r\n\t\tdouble doubleToConvert = 55.985;\r\n\t\tSystem.out.println(doubleToConvert + \" converti en string donne \" + nb.convertDoubleToString(doubleToConvert));\r\n\t\t\r\n\t\t// String number to int\r\n\t\tString strNb = \"99\";\r\n\t\tSystem.out.println(\"String \" + strNb + \" converti en int donne \" + nb.convertStringToInteger(strNb));\r\n\t\t\r\n\t\t// String number to double\r\n\t\tString strNb2 = \"99.875\";\r\n\t\tSystem.out.println(\"String \" + strNb2 + \" converti en double donne \" + nb.convertStringToDouble(strNb2));\r\n\t\t\r\n\t\t// String to int\r\n\t\tString strToNb = \"toto\";\r\n\t\tSystem.out.println(\"String \" + strToNb + \" converti en int donne \" + nb.convertStringToInteger(strToNb));\r\n\t\t \r\n\t\t// String to double\r\n\t\tString strToNb2 = \"titi\";\r\n\t\tSystem.out.println(\"String \" + strToNb2 + \" converti en double donne \" + nb.convertStringToDouble(strToNb2));\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "fab9f41b2f78a2cd2474821f5abe3f06", "score": "0.6041105", "text": "boolean hasNumb();", "title": "" }, { "docid": "68486876d8beb84349426f0e283c926f", "score": "0.60348827", "text": "public static void main(String[] args) {\n\n\t\t Scanner sc = new Scanner(System.in);\n\t\t String numb = sc.nextLine();\n\t\t char[] numbArr = numb.toCharArray();\n\t\t int sum =0;\n\t\t for(int i =0 ; i < numbArr.length ; i++){\n\t\t sum += Math.pow(Character.getNumericValue(numbArr[i]),3);\n\t\t }\n\t\t \n\t\t if(sum == Integer.parseInt(numb)){\n\t\t System.out.println(true);\n\t\t }else{\n\t\t System.out.println(false);\n\t\t }\n\n\t\t }", "title": "" }, { "docid": "3917d239bd5b5395c29cd6f0cba38266", "score": "0.6031581", "text": "public static void main(String[] args) {\n Numbers numbers = new Numbers(9,988,77,66);\n String maxnum = numbers.getMaxNum();\n //if (maxnum.equals(\"99989788\")) {\n if (maxnum.equals(\"99887766\")) {\n System.out.println(\"right\");\n } else {\n System.out.println(\"wrong\");\n }\n }", "title": "" }, { "docid": "f584dfd1ea97398a0e7869e8264c7dc4", "score": "0.5925714", "text": "@Test\n public void testDigits() {\n final String result = calc.type(\"1 + 2 - 3\")\n .press_equalBtn()\n .result();\n\n Assert.assertEquals(result, \"0\");\n }", "title": "" }, { "docid": "db62c6db445db203f46c1c04f711606a", "score": "0.5917853", "text": "@Test\n @Tag(\"bm1000\")\n public void testGROW22() {\n CuteNetlibCase.doTest(\"GROW22.SIF\", \"-1.608343364825636E8\", \"0.0\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "19d58eda030f8da8baf7490abd03b1b5", "score": "0.590237", "text": "@Test\n public void testCheckIsPowerOfTwoNormal_1() {\n assertTrue(checkerNumber.checkIsPowerOfTwo(1024));\n }", "title": "" }, { "docid": "cc585aa3110abe9ff4675351a7f09eaf", "score": "0.5890543", "text": "private static void evaluateCase() {\n try {\n int n = SYS_IN.nextInt();\n int m = SYS_IN.nextInt();\n SYS_IN.nextLine();\n int mn = Integer.MAX_VALUE;\n long sum = 0L;\n int num;\n int sign = 1;\n for (int ni = 0; ni < n; ni++) {\n for (int mi = 0; mi < m; mi++) {\n num = SYS_IN.nextInt();\n if (num < 0) {\n sign *= -1;\n num = -num;\n }\n sum += num;\n mn = Math.min(mn, num);\n }\n SYS_IN.nextLine();\n }\n if (sign == -1) {\n sum -= 2 * mn;\n }\n System.out.println(sum);\n } catch (Exception e) {}\n }", "title": "" }, { "docid": "206ea50f5f060a4c2f934a89e5cacad5", "score": "0.5870194", "text": "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "2161a24d7c5c0b06c9d972a550e534bc", "score": "0.58506864", "text": "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "65d946a0c44c374032788949c40ec10a", "score": "0.58202857", "text": "public static void main(String [] args){\n\t\tArrayList<Integer> allNums = new ArrayList<>();\n\t\tfor(int i = 0; i < 10; i++){\n\t\t\tallNums.add(i);\n\t\t}\n\t\t//Make into one big number\n\t\t//Proceed to divide it to knock bits off the right hand side\n\t\tboolean miracleFound = false;\n\t\tString tempNum;\n\t\tlong miracleNum = 0;\n\t\twhile(!miracleFound){\n\t\t\t//Make A String from the List And analyse it\n\t\t\ttempNum = \"\";\n\t\t\tfor(int i = 0; i < allNums.size(); i++){\n\t\t\t\ttempNum = tempNum + allNums.get(i);\n\t\t\t\t//System.out.println(\"Tempnum is \" + tempNum + \" and i is \" + i);\n\t\t\t\tif(i > 0){\n\t\t\t\t\tmiracleNum = Long.valueOf(tempNum).longValue();\n\t\t\t\t\tif(miracleNum % (i+1) == 0){ //If it is divisible without remainders\n\t\t\t\t\t\tif((i+1) == 10){\n\t\t\t\t\t\t\tmiracleFound = true;\n\t\t\t\t\t\t\tSystem.out.println(\"Number \" + miracleNum + \" was a miracle number.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tSystem.out.println(miracleNum + \" % \" + (i+1) + \" is 0.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tCollections.shuffle(allNums);\n\t\t\t\t\t\ti = allNums.size();\n\t\t\t\t\t\tSystem.out.println(\"Number \" + miracleNum + \" was not a miracle number.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4089c9097ea9c97d502474216561a6c1", "score": "0.58190626", "text": "boolean hasNum2();", "title": "" }, { "docid": "81e4e1cc331cf41b402ef09e780bcf83", "score": "0.58175135", "text": "@Test\r\n\tpublic void fromNumGradeTest(){\r\n\t\tint[] testNumGrade = { -1, 0, 34,36,41,42,45,47,51,53,55,58,60,63,65,68,71,74,77, 100 };\r\n\t\tint expectedValue = 20;\r\n\t\tfor(int i=0;i<testNumGrade.length;i++){\r\n\t\t\tassertEquals(expectedValue,PointGrade.fromNumGrade(testNumGrade[i]).getPoints());\r\n\t\t\texpectedValue--;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4ad87187fb568eb4ba59535a3e5358f9", "score": "0.5813105", "text": "public static void main(String[] args) {\n String idNum = \"410326880818551\";\n System.out.println(verify15(idNum));\n// String idNum2 = \"411111198808185510\";\n String idNum2 = \"410326198808185515\";\n System.out.println(verify(idNum2));\n }", "title": "" }, { "docid": "14c8eac9fdeb8bc1866c55e9dba1f41c", "score": "0.5798459", "text": "@Test\n\tpublic void test110000() {\n\n\tdouble tax = Main.calcTax(110_000.);\n\tassertEquals(2_150., tax, .01);\n\n\t}", "title": "" }, { "docid": "0d0269e6187c8b10b2912e0f04e29782", "score": "0.577771", "text": "public static void main(String[] args) {\n\t\r\n\t\tint a=153;\r\n\t\tint temp=a;\r\n\t\t\r\n\t\tint c=0;\r\n\t\tint b=0;\r\n\t\twhile(a>0)\r\n\t\t{\r\n\t\t\tc=a%10;\r\n\t\tb=b+c*c*c;\r\n\t\ta=a/10;}\r\n\tif(temp==b)\r\n\t{\r\n\t\tSystem.out.println(\"given no is amstrong\");\r\n\t\t\t\r\n\t}\t\r\n\telse\r\n\t{\r\n\t\tSystem.out.println(\"given no is not an amstrong number\");\r\n\t}\r\n\r\n\t\r\n\r\n\r\n}", "title": "" }, { "docid": "a5b71320b847b88f571faa23f179c6a2", "score": "0.57698834", "text": "public static void main(String[] args) {\n\n\t\tint[]x= {1,2};\n\t\tint[]y= {1,2};\n\t\tSystem.out.println(Arrays.toString(checkNum(x,y)));\n\t\t\n\t}", "title": "" }, { "docid": "052544a98648ab57be7d7a36d8578a51", "score": "0.57610744", "text": "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "868e62f3ede0359b2a0efac5f4f7ab56", "score": "0.57559955", "text": "@org.junit.Test\r\n public void testPositiveScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"+27712612199\");// function should return true\r\n assertEquals(true, result);\r\n\r\n }", "title": "" }, { "docid": "5c17a9f007e6f6a04f3d39b43407772a", "score": "0.57549065", "text": "private void check5(){\n \n if (errorCode == 0){\n \n int firstSum = 0;\n int lastSum = 0;\n String firstFour = number.substring(0,4);\n String lastFour = number.substring(8,12);\n \n for(int i = 0; i < firstFour.length();){\n firstSum += Integer.parseInt(firstFour.substring(i, ++i));\n }\n \n for(int i = 0; i < lastFour.length();){\n lastSum += Integer.parseInt(lastFour.substring(i, ++i));\n }\n \n if (!(firstSum == lastSum - 1)){\n valid = false;\n errorCode = 5;\n }\n }\n\t}", "title": "" }, { "docid": "305deec1ef7c6705b0a48b4c48733188", "score": "0.57476014", "text": "@Test\r\n\tpublic void testNums() {\n\t\tint num1=10;int num2=10;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertTrue(ClientMain.compareNums(num1, num2));\r\n\t}", "title": "" }, { "docid": "12f985286ba06ad4c4c50a7244dd936c", "score": "0.5747435", "text": "public static void main (String[] args){\n Scanner sc=new Scanner(System.in);\n int num=sc.nextInt();int sum=1;\n int lol=String.valueOf(num).length();\n while(num>0)\n {\n int h=num%10;\n sum=sum+fact(h);\n num=num/10;\n }\n int len=String.valueOf(sum).length();\n if(len==lol)\n System.out.println(\"Yes\");\n else\n System.out.println(\"No\");\n\t}", "title": "" }, { "docid": "4c88d98fb57e0a6a21f2103d7e346907", "score": "0.5742271", "text": "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "323ec96805460a97968e21f987fa561e", "score": "0.57395476", "text": "public static void main(String[] args) {\n\tString NUM = \"73167176531330624919225119674426574742355349194934\" +\n \"96983520312774506326239578318016984801869478851843\" +\n \"85861560789112949495459501737958331952853208805511\" +\n \"12540698747158523863050715693290963295227443043557\" +\n \"66896648950445244523161731856403098711121722383113\" +\n \"62229893423380308135336276614282806444486645238749\" +\n \"30358907296290491560440772390713810515859307960866\" +\n \"70172427121883998797908792274921901699720888093776\" +\n \"65727333001053367881220235421809751254540594752243\" +\n \"52584907711670556013604839586446706324415722155397\" +\n \"53697817977846174064955149290862569321978468622482\" +\n \"83972241375657056057490261407972968652414535100474\" +\n \"82166370484403199890008895243450658541227588666881\" +\n \"16427171479924442928230863465674813919123162824586\" +\n \"17866458359124566529476545682848912883142607690042\" +\n \"24219022671055626321111109370544217506941658960408\" +\n \"07198403850962455444362981230987879927244284909188\" +\n \"84580156166097919133875499200524063689912560717606\" +\n \"05886116467109405077541002256983155200055935729725\" +\n \"71636269561882670428252483600823257530420752963450\";\n\n //greatest combo array\n int[] greatestCombo = new int[13];\n //array to iterate through NUMS\n int[] combos = new int[13];\n //adjacency\n boolean adjacent = true;\n //product\n long product = 1;\n //maxProduct\n long maxProduct = 0;\n\n\t//iterating through the entire NUM string\n\tfor(int i = 0 ; i < NUM.length()-13; i++){\n\t //make a temporary array with the combination of the three numbers\n\t for(int c = 0; c < 13; c++){\n\t combos[c] = NUM.charAt(i+c);\n }\n\n\t //loop to determine if the numbers are adjacent\n for(int k = 1; k < 13; k++){\n if(abs(combos[k-1]-combos[k])>1){\n adjacent = false;\n break;\n }\n }\n\n //now that we have an adjacent 13-number array\n if(adjacent){\n //find the product\n for(int r = 0; r < 13; r++){\n product *= combos[r];\n }\n\n if(product > maxProduct){\n maxProduct = product;\n for(int p = 0; p < 13; p++){\n greatestCombo[p]=combos[p];\n }\n }\n }\n\n }\n System.out.println(maxProduct);\n\n }", "title": "" }, { "docid": "e3b136be22bbff97661aef4599c95eff", "score": "0.5730827", "text": "@Test\n public void testGetNumberCheckedOut() {\n }", "title": "" }, { "docid": "9b08f1f712d883b1a6943900382ab3ec", "score": "0.5726697", "text": "public static void main(String[] args) throws IOException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint tc = sc.nextInt();\n\n\t\tfor (int num = 1; num <= tc; num++) {\n\t\t\tint n = sc.nextInt();\n\t\t\tString str = \"\";\n\t\t\tint arr[] = new int[n];\n\t\t\tboolean flag = false;\n\t\t\tboolean visit[]=new boolean[1001];\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t\tif (!flag && arr[i] == 0)\n\t\t\t\t\tflag = true;\n\t\t\t\tstr += arr[i];\n\t\t\t}\n\t\t\tif (flag) {\n\t\t\t\tint ans = 0;\n\t\t\t\tboolean p=false;\n\t\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\t\tfor (int j = 0; j + i <= n; j++) {\n\t\t\t\t\t\t\tint tmp = Integer.parseInt(str.substring(j, j + i));\n\t\t\t\t\t\t\tvisit[tmp]=true;\n\t\t\t\t\t}\n\t\t\t\t\tint amount=(int)Math.pow(10, i);\n\t\t\t\t\tfor(int k=0;k<amount;k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!visit[k])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tans=k;\n\t\t\t\t\t\t\tp=true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(p)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\" + num + \" \" + ans);\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"#\" + num + \" \" + 0);\n\t\t}\n\t}", "title": "" }, { "docid": "db1b1bfda8ffe38e1f57e21c4e508822", "score": "0.57194775", "text": "static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}", "title": "" }, { "docid": "a8a2adb51d8a42e0a50c7df09b75d78d", "score": "0.5717839", "text": "@Test\r\n public void test13()\r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(21,0,0,5555), 0 , 99, 100);\r\n assertTrue(loan == Consts.HALF_LOAN + Consts.HALF_SUBSIDY);\r\n \t\t\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 13, correct : 4960, got : \"+ loan);\r\n \t}\r\n }", "title": "" }, { "docid": "45a489864fef9654446102beb4221387", "score": "0.5703651", "text": "@Test\n public void integral_isCorrect() {\n }", "title": "" }, { "docid": "5cfccc0ef21cbf7d70b305e264c4fa89", "score": "0.5703027", "text": "@Test\n public void testIsValidPhonenumber() {\n System.out.println(\"isValidPhonenumber\");\n String phonenumber = \"gd566666666666666666666666666666666666666\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidPhonenumber(phonenumber);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "22e94c0fb68bb17689872a012706471a", "score": "0.56991833", "text": "boolean hasNum();", "title": "" }, { "docid": "22e94c0fb68bb17689872a012706471a", "score": "0.56991833", "text": "boolean hasNum();", "title": "" }, { "docid": "22e94c0fb68bb17689872a012706471a", "score": "0.56991833", "text": "boolean hasNum();", "title": "" }, { "docid": "eb6a38153b3e8b225c9f813a348fe168", "score": "0.5698936", "text": "@Test\n\tpublic void testInputWithMoreNumbers() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i <= 100; i++) {\n\t\t\tsb.append(i);\n\t\t\tif (i <100) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tassertEquals(\"Many numbers in input string\", 5050L, calculator.calculeteSum(sb.toString()).longValue());\n\t}", "title": "" }, { "docid": "aec70b5e107dcaeb894e7fcff24217c8", "score": "0.5690287", "text": "public static void main(String[] args) {\n\t\tisArmstrongNumber(153);\n\t}", "title": "" }, { "docid": "cb70085760a655ebfac64720eb86970e", "score": "0.56886077", "text": "public static void main(String[] args) {\n\t\tint number = 2589;\n\t\tint y;\n\n\t\tint miavor = number / 1000;\n\t\tSystem.out.println(\"Miavor : \" + miavor);\n\n\t\tint tasnavor = (number / 100) % 10;\n\t\tSystem.out.println(\"Tasnavor : \" + tasnavor);\n\n\t\tint haryuravor = (number / 10) % 10;\n\t\tSystem.out.println(\"Haryuravor : \" + haryuravor);\n\n\t\tint hazaravor = number % 10;\n\t\tSystem.out.println(\"Hazaravor : \" + hazaravor);\n\n\t\tif ((miavor + tasnavor + haryuravor + hazaravor) > 20) {\n\t\t\ty = 1;\n\t\t\tSystem.out.println(y);\n\t\t} else {\n\t\t\ty = 0;\n\t\t\tSystem.out.println(y);\n\t\t}\n\n\t}", "title": "" }, { "docid": "d36c51af1a548647e181129e8d5671f4", "score": "0.56858635", "text": "private boolean checkInteger(byte buffer[], int sindex, int findex)\n {\n \t\t// 첫 글자를 체크한다. (+, -가 올수 있다.)\n \t\tbyte b = buffer[sindex];\n \t\tif ((b < 48) || (b > 57)) {\n \t\t\tif (b != 45)\n \t\t\t\tif (b != 43) return false;\n \t\t}\n \t\tfor (int i=sindex+1; i<findex; i++) {\n \tif ((buffer[i] < 48) || (buffer[i] > 57)) return false;\n \t\t}// end of for\n \t\treturn true;\n \t}", "title": "" }, { "docid": "930b957bfe4ffd80941938c05167dbd5", "score": "0.56695074", "text": "@Test\n public void computeDigits()\n {\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 1.0));\n assertEquals(1, BinaryEncoder.computeDigits(1.0, 1.0));\n assertEquals(1, BinaryEncoder.computeDigits(2.0, 1.0));\n assertEquals(2, BinaryEncoder.computeDigits(3.0, 1.0));\n assertEquals(2, BinaryEncoder.computeDigits(4.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(4.5, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(5.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(6.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(7.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(8.0, 1.0));\n assertEquals(4, BinaryEncoder.computeDigits(9.0, 1.0));\n\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 0.1));\n assertEquals(4, BinaryEncoder.computeDigits(1.0, 0.1));\n assertEquals(5, BinaryEncoder.computeDigits(2.0, 0.1));\n assertEquals(5, BinaryEncoder.computeDigits(3.0, 0.1));\n assertEquals(6, BinaryEncoder.computeDigits(4.0, 0.1));\n\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 0.01));\n assertEquals(7, BinaryEncoder.computeDigits(1.0, 0.01));\n assertEquals(8, BinaryEncoder.computeDigits(2.0, 0.01));\n assertEquals(9, BinaryEncoder.computeDigits(3.0, 0.01));\n assertEquals(9, BinaryEncoder.computeDigits(4.0, 0.01));\n\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(1.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(2.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(3.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(4.0, 10.0));\n assertEquals(2, BinaryEncoder.computeDigits(30.0, 10.0));\n assertEquals(2, BinaryEncoder.computeDigits(40.0, 10.0));\n }", "title": "" }, { "docid": "9274974b246382fd2a3963e2d946ee50", "score": "0.56607145", "text": "@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "4d2e04ff8935604f1c6ed8801e95a2d9", "score": "0.5656954", "text": "public static void main(String[] args) {\n\t\tSystem.out.println((0+15)/2);\r\n\t\tSystem.out.println(2.0e-6*10000000000.1);\r\n\t\tSystem.out.println(true&&false||true&&true);\r\n\t\t\r\n\t\t//1.1.2\r\n\t\tSystem.out.println((1+2.236)/2);\r\n\t\tSystem.out.println(1+2+3+4.0);\r\n\t\tSystem.out.println(4.1>=4);\r\n\t\tSystem.out.println(1+2+\"3\");\r\n\t\t\r\n\t\t//1.1.3\r\n//\t\tSystem.out.println(\"Please enter three nums\");\r\n\t\tScanner scanner=new Scanner(System.in);\r\n//\t\tint num=scanner.nextInt();\r\n//\t\tint num2=scanner.nextInt();\r\n//\t\tint num3=scanner.nextInt();\r\n//\t\r\n//\t\tif(num==num2&&num==num3) {\r\n//\t\t\tSystem.out.println(\"Eqaul:\");\r\n//\t\t}else {\r\n//\t\t\tSystem.out.println(\"Not equal:\");\r\n//\t\t}\r\n//\r\n//\t\t\t\r\n//\t\t//1.1.4\r\n//\t\t//a. then 语法错误\r\n//\t\t//b. ok\r\n//\t\t//c. ok\r\n//\t\t//d. ok\r\n//\r\n//\t\t\r\n//\t\t//1.1.5\r\n//\t\tint x=scanner.nextInt();\r\n//\t\tint y=scanner.nextInt();\r\n//\t\tif(x<1.0 && y<1.0 && x>0 && y>0) {\r\n//\t\t\tSystem.out.println(\"true\");\r\n//\t\t}\r\n//\t\telse {\r\n//\t\t\tSystem.out.println(\"false\");\r\n//\t\t}\r\n//\t\t\r\n\t\t\r\n\t\t//1.1.6\r\n//\t\tint f=0;\r\n//\t\tint g=1;\r\n//\t\tfor(int i=0;i<=15;i++) {\r\n//\t\t\tSystem.out.print(f+\"\\t\");\r\n//\t\t\tf=f+g;\r\n//\t\t\tg=f-g;\r\n//\t\t}\r\n\t\t\r\n\t\t//1.1.7\r\n//\t\tdouble t=9.0;\r\n//\t\twhile(Math.abs(t-9.0/t)> .001) {\r\n//\t\t\tt=(9.0/t+t)/2.0;\r\n//\t\t}\r\n//\t\tSystem.out.printf(\"%.5f\\n\", t);\r\n//\t\t\r\n//\t\t\r\n//\t\tint sum=0;\r\n//\t\tfor(int i=1;i<1000;i++)\r\n//\t\t\tfor(int j=0;j<i;j++)\r\n//\t\t\t\tsum++;\r\n//\t\tSystem.out.println(sum);\r\n//\t\r\n//\t\t\r\n//\t\tint sum2=0;\r\n//\t\tfor(int i=1;i<1000;i*=2)\r\n//\t\t\tfor(int j=0;j<1000;j++)\r\n//\t\t\t\tsum2++;\r\n//\t\tSystem.out.println(sum2);\r\n\t\r\n\t\t//1.1.8\r\n//\t\tSystem.out.println('b');\r\n//\t\tSystem.out.println('b'+'c');\r\n//\t\tSystem.out.println((char)('a'+4));\r\n\t\t\r\n\t\t//1.1.9\r\n//\t\tSystem.out.println(\"Please enter one num and return with a binary code\");\r\n//\t\tint N=scanner.nextInt();\r\n//\t\tString string=\"\";\r\n//\t\tfor(int n=N;n>0;n/=2) {\r\n//\t\t\tstring=(n%2)+string;\r\n//\t\t}\r\n//\t\tSystem.out.println(string);\r\n\t\t\r\n\t\t//1.1.10\r\n\t\t//int[] a=new int[10];\r\n\t\t\r\n\t\t//1.1.11\r\n//\t\tboolean[][] arrays= {{true,true,true},\r\n//\t\t\t\t{false,false,false},\r\n//\t\t\t\t{true,false,true},\r\n//\t\t};\r\n//\t\t\r\n//\t\tfor(int i=0;i<arrays.length;i++)\r\n//\t\t\tfor(int j=0;j<arrays.length;j++) {\r\n//\t\t\t\tif(arrays[i][j]) {\r\n//\t\t\t\t\tSystem.out.print(\"*\"+\"\\t\");\r\n//\t\t\t\t}\r\n//\t\t\t\telse {\r\n//\t\t\t\t\tSystem.out.print(\"^\"+\"\\t\");\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t//1.1.12\r\n//\t\tint[] a=new int[10];\r\n//\t\tfor(int i=0;i<10;i++)\r\n//\t\t\ta[i]=9-i;\r\n//\t\tfor(int i=0;i<10;i++)\r\n//\t\t\ta[i]=a[a[i]];\r\n//\t\tfor(int i=0;i<10;i++)\r\n//\t\t\tSystem.out.println(i);\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f1fb739cb2895cc5becbb2d4ed58b5a1", "score": "0.56460226", "text": "public static void main(String[] args) {\n\t\tint num=666;\r\n\t\t//declr 3 more\r\n\t\tint calculated=0;\r\n\t\tint remainder;\r\n\t\tint original;\r\n\t\t//Assign i/p into variable orignal\r\n\t\tSystem.out.println(\"ip - \"+num);\r\n\t\toriginal=num;\r\n\t\t//use loop to calculate:use while loop to set condn until the num is > 0\r\n\t\twhile (num>0) {\r\n\t\t\t//get the remainder done when divided by 10\r\n\t\t\tremainder=num%10;\r\n\t\t\tnum=num/10;\r\n\t\t\t//use formula\r\n\t\t\tcalculated=calculated+((remainder)*(remainder)*(remainder));\r\n\t\t\tSystem.out.println(calculated);\r\n\t\t}\r\n\t\t\t//check wheather cal & orgil r same\r\n\t\tif(calculated==original)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Armstrong\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Not an Armstrong\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d0b0d325dfbb925717afc73e5b4a1af7", "score": "0.5637901", "text": "public p207() {\n double target = 1/12345.0;\n double log2 = Math.log(2);\n\n for (int x = 2; x < 2000000; x++){\n double a = Math.floor(Math.log(x) / log2) / (x-1);\n if (a < target){\n System.out.println(x*(x-1L));\n break;\n }\n }\n }", "title": "" }, { "docid": "e18f81c7619788839fc50b35247aff04", "score": "0.56266254", "text": "public static void main(String[] args) {\n\t\tint num1 = 10;\n\t\tint num2 = 24;\n\t\tint result = LargerNumbers(num1, num2);\n\t\tSystem.out.println(\"큰 수 확인 : \" + result);\n\t}", "title": "" }, { "docid": "fe4b125e76a56840abaf1778d7fe1733", "score": "0.5620774", "text": "@Test\n @Tag(\"bm1000\")\n public void testFORPLAN() {\n CuteNetlibCase.doTest(\"FORPLAN.SIF\", \"-664.2189612722054\", \"2862.4274777342266\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "d1e40393d33f312fec9e7c1fc0a0ee38", "score": "0.56173635", "text": "@Test\n @Tag(\"bm1000\")\n public void testGROW7() {\n CuteNetlibCase.doTest(\"GROW7.SIF\", \"-4.7787811814711526E7\", \"0.0\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "3d1f7cbf1075bc3da9fab854c6172cfa", "score": "0.56168014", "text": "@Test\n @Tag(\"bm1000\")\n public void testAGG3() {\n CuteNetlibCase.doTest(\"AGG3.SIF\", \"1.031211593508922E7\", \"5.746768863949547E9\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "39337cf9fe04a451fce8ee36e84df492", "score": "0.5614382", "text": "@Test\n @Tag(\"bm1000\")\n public void testGROW15() {\n CuteNetlibCase.doTest(\"GROW15.SIF\", \"-1.068709412935753E8\", \"0.0\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "3d6d94a8752ce5cddc83e53dcc819bd8", "score": "0.56110233", "text": "boolean hasNum1();", "title": "" }, { "docid": "c866852257659c30c7c3d15f45f4c3d6", "score": "0.5608866", "text": "@Test\n public void test() {\n assertFalse(checkZeroOnes(\"111000\"));\n }", "title": "" }, { "docid": "e13d4f389352a121bb799fbb661f8c2e", "score": "0.5599465", "text": "public static void printPerfectNumbers(){\n\t\tfor(Long x:result){\n\t\t\tSystem.out.println(x);\n\t\t}\n\t}", "title": "" }, { "docid": "80c3faa4b353c92a2ad9403e0994f2ce", "score": "0.5583301", "text": "void solve() {\n num = new ArrayList<>();\n num.add(BigInteger.valueOf(4));\n for (int len = 2; len <= 100; len++)\n generate(\"4\", 1, len, false);\n Collections.sort(num);\n for (int tc = ii(); tc > 0; tc--) {\n long x = il();\n BigInteger X = BigInteger.valueOf(x);\n for (int i = 0; i < num.size(); i++) {\n if (num.get(i).mod(X).equals(BigInteger.ZERO)) {\n String z = num.get(i).toString();\n int end = z.lastIndexOf('4');\n int len = z.length();\n int a = 2 * (end+1);\n int b = len - end;\n out.println(a + b);\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "4fbdbc7ddeb0b4654aaa5806f8bfec96", "score": "0.55717546", "text": "@Test\n\tpublic void test_doubleANumber() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1424f0b5a3c5cc71c38fb691227e3a", "score": "0.5563996", "text": "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "506c81fc0362f0f873a46a3e74ab5b62", "score": "0.55624276", "text": "private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }", "title": "" }, { "docid": "323393bfd3046884a74a2953f6bbaa70", "score": "0.55560446", "text": "public static void main(String[] args) {\n\n byte number = 6;\n byte number1 = 127;\n // byte number2 = 129; for byte the range is -128 to 127. that's why it will not compile\n\n short number3 = 100;\n short number4 =31789;\n\n int number5 = 32_000;// you can use underscore (_) in between digits, it will not effect the value\n\n int number6 = 1_000_000;// you can use underscore (_) in between digits it will not effect the value\n\n System.out.println(number6);\n\n long number7 = 341345;\n long number8 = 74_813_492_034_854L;// you should use 'l/L' at the end of long values\n System.out.println(number8);\n\n float number9 = 2.3f; // // you should use 'f/F' at the end of float values\n\n float number10 = 56; //56 --> 56.0\n\n System.out.println(\"Value of number10 --> \"+number10);\n\n // int a = 5.6; you can not store decimal value in int data type\n float number11 =56.0f;\n\n double number12 = 2.1;\n\n double number13 = 89; // 89 --> 89.0 double data type can store int values\n System.out.println(number13);\n\n // most common primitive data type usages are int, double, long, boolean\n\n }", "title": "" }, { "docid": "7bed0ba61d6fd9b78ad7212a5adebc9d", "score": "0.5543873", "text": "@Test(timeout = 4000)\n public void test117() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32729 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem.values();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "title": "" }, { "docid": "95d03df20e51f930f05e4960ffca96d6", "score": "0.5538004", "text": "public static void main(String[] args) {\n\t\tint i= 212;\r\n\t\tint r=0;\r\n\t\tint n=i;\r\n\t\tint p =0;\r\n\t\t\r\n\t\twhile (n!=0) {\r\n\t\t\tr=n%10;\r\n\t\t\tp=p*10+r;\r\n\t\t\t\r\n\t\t\tn=n/10;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (i==p) { System.out.println(\"Yes it is\");\r\n\t\t\t}\r\n\t\t\r\n\t\telse {System.out.println(\"No it is Not\");\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "49f8a3c1b3d1d72800bb6099b4256e9b", "score": "0.55347496", "text": "@Test\n @Grade(4)\n public void testBinaryConversion_basicNumbers() {\n assertEquals(\"0\", decimalToBinary(0));\n assertEquals(\"1\", decimalToBinary(1));\n }", "title": "" }, { "docid": "2e74647a10056a4d59e43e62fabd6080", "score": "0.55305505", "text": "@Test\n public void testcheckPalindromeNormal_1() {\n assertTrue(checkerNumber.checkPalindrome(12321));\n }", "title": "" }, { "docid": "36beba73048206b40e2ed2fc60179883", "score": "0.55288434", "text": "@Test\n @Tag(\"bm1000\")\n public void testRECIPELP() {\n CuteNetlibCase.doTest(\"RECIPELP.SIF\", \"-266.616\", \"-104.818\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "ddfc8c1e23beeaedb92f4536e5a9205c", "score": "0.5528544", "text": "@Test\n public void test4DigitalRootMethod() {\n final int expected = 2;\n final int number = 493193;\n assertEquals(expected, kata4.digitalRoot(number));\n }", "title": "" }, { "docid": "53349082d6e7c8069803489ad1fa0900", "score": "0.5526161", "text": "@Test\n @Tag(\"bm1000\")\n public void testDEGEN2() {\n CuteNetlibCase.doTest(\"DEGEN2.SIF\", \"-1435.1779999999999\", \"-1226.12\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "bef727a5505c78890481a6188eb3b781", "score": "0.5524928", "text": "public static void main(String[] args) {\n String number = \"12AS08Z\";\n String result = \"incorrect\";\n\n try {\n if (args.length != 0)\n number = args[0];\n for (int i = 0; i < 37; i++) {\n if (isNumber(number, i) ) {\n result = Integer.valueOf(i).toString();\n break;\n }\n }\n } catch (Exception e) {\n }\n System.out.println(result);\n }", "title": "" }, { "docid": "dd19b2d0be5b7c7caf78f9bbff0db965", "score": "0.55204284", "text": "@Test\n public void testNumbersInvalid() throws Exception {\n testLexerSource(\"6x foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6g foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6xsd foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6gsd foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n }", "title": "" }, { "docid": "37111adf4b3b323f093f0f2d350943d6", "score": "0.55144525", "text": "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "title": "" }, { "docid": "ebe11bc3cffa9b2d91eaffe9c8e5f3e9", "score": "0.55119324", "text": "@Test\n\tpublic void test82000() {\n\n\tdouble tax = Main.calcTax(82_000.);\n\tassertEquals(1_210., tax, .01);\n\n\t}", "title": "" }, { "docid": "7d0412061bb3031694a3b0bf801ace78", "score": "0.55117697", "text": "@Test\n @Tag(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "1367cda561a4aa4861a8f6fe05bd2571", "score": "0.5511091", "text": "@Test(timeout = 4000)\n public void test38() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 744.4583836715912;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n streamTokenizer0.ordinaryChar((-45));\n String string1 = SQLUtil.normalize(\"744.4583836715912\", false);\n assertTrue(string1.equals((Object)string0));\n }", "title": "" }, { "docid": "5bfade3f99315c23e7e8d0fa834d308b", "score": "0.5510659", "text": "@Test\r\n public void test4() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(47,0,0,5555), 0 , 100, 100);\r\n assertTrue(loan == Consts.FULL_SUBSIDY); \t\t\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 4, correct : 2816, got : \"+ loan);\r\n \t}\r\n }", "title": "" }, { "docid": "eba536396f24d32eb4d517d0421dd49e", "score": "0.5510658", "text": "public static void main(String[] args) \r\n\t\t{\n\t\t\tint Result = diff21(31);\r\n\t\t\tSystem.out.println(\"The end result is: \"+Result);\r\n\t\t}", "title": "" }, { "docid": "2500e2cb3957cec6ea5fb320f1eedd85", "score": "0.5510403", "text": "@Test\n @Tag(\"bm1000\")\n public void testSEBA() {\n CuteNetlibCase.doTest(\"SEBA.SIF\", \"15711.6\", \"35160.46056\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "7cd2e28f7a4009c01b02333987254691", "score": "0.5510367", "text": "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tlong min=s.nextLong(),max=s.nextLong(),sum=0;\n\t\tboolean[] arr=new boolean[(int)(max-min+1)];\n\t\tfor(int i=2;;i++) {\n\t\t\tlong p=(long) Math.pow(i, 2),add=p;\n\t\t\tif((p-min)>=arr.length) break;\n\t\t\t//\t\t\tif((p-min)<0) continue;\n\t\t\t//\t\t\tif(p==1) continue;\n\t\t\twhile((p-min)<arr.length) {\n\t\t\t\t//\t\t\t\tSystem.out.println(p);\n\t\t\t\tif(!((p-min)<0)) arr[(int)(p-min)]=true;\n\t\t\t\tp+=add;\n\t\t\t}\n\t\t}\n\t\t//\t\tSystem.out.println(Arrays.toString(arr));\n\t\tfor(int i=0;i<arr.length;i++) if(!arr[i]) sum++;\n\t\tSystem.out.println(sum);\n\t}", "title": "" }, { "docid": "e82bb7e8f4cbc36f389633d60d65bfe7", "score": "0.5510131", "text": "@Test\r\n\tpublic void test() {\n\t\tdouble actual = conv.dollarToRupees(25);\r\n\t\tassertEquals(2500.0,actual,0);\r\n\t\t//assertEquals(expected,actual,precision[delta])\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e5808de64dba7248cd4e06f88c6d6137", "score": "0.55050427", "text": "@Test\n public void testPrimeNumberChecker() {\n System.out.println(\"Parameterized Number is : \" + inputNumber);\n assertEquals(expectedResult,\n primo.validate(inputNumber));\n }", "title": "" }, { "docid": "ca8a07fa5b563a6cbffb360b4fbc37d6", "score": "0.5501474", "text": "public void validateRpd22s10()\n {\n // This guideline cannot be automatically tested.\n }", "title": "" }, { "docid": "58cefa3757d6abb0ed903d280dfb0580", "score": "0.54958344", "text": "public static int isNumber(String num)\n\t{\n\t\tint[][] table = new int[9][7];\n\t\tfor (int i = 0; i < 9; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < 6; j++)\n\t\t\t{\n\t\t\t\ttable[i][j] = -1;\n\t\t\t}\n\t\t}\n\t\ttable[0][0] = 1;\n\t\ttable[0][2] = 2;\n\t\ttable[0][4] = 3;\n\t\ttable[1][3] = 4;\n\t\ttable[1][6] = 6;\n\t\ttable[2][0] = 1;\n\t\ttable[2][4] = 3;\n\t\ttable[3][3] = 4;\n\t\ttable[3][5] = 3;\n\t\ttable[3][6] = 6;\n\t\ttable[4][5] = 5;\n\t\ttable[5][5] = 5;\n\t\ttable[5][6] = 6;\n\t\ttable[6][1] = 7;\n\t\ttable[6][2] = 7;\n\t\ttable[6][5] = 8;\n\t\ttable[7][5] = 8;\n\t\ttable[8][5] = 8;\n\t\t\n\t\t\n\t\t\n\t\tint state = 0;\n\t\t\n\t\tPattern c = Pattern.compile(\"[1-9]\");\n\t\tPattern d = Pattern.compile(\"[0-9]\");\n\t\t\n\t\t\n\t\tchar[] input = num.toCharArray();\n\t\tint[] intinput = new int[num.length()];\n\t\tfor (int i = 0; i < intinput.length; i++) {\n\t\t\tintinput[i] = -1;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tMatcher mc = c.matcher(String.valueOf(input[i]));\n\t\t\tMatcher md = c.matcher(String.valueOf(input[i]));\n\t\t\tif (input[i] == '0')\n\t\t\t\tintinput[i] = 0;\n\t\t\telse if (input[i] == '+')\n\t\t\t\tintinput[i] = 1;\n\t\t\telse if (input[i] == '-')\n\t\t\t\tintinput[i] = 2;\n\t\t\telse if (input[i] == '.')\n\t\t\t\tintinput[i] = 3;\n\t\t\telse if (input[i] == 'e' || input[i] == 'E')\n\t\t\t\tintinput[i] = 6;\n\t\t\telse if (mc.matches())\n\t\t\t\tintinput[i] = 4;\n\t\t\telse if (md.matches())\n\t\t\t\tintinput[i] = 5;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\t\tif (intinput[i] == 0 && table[state][intinput[i]] == -1)\n\t\t\t\t\tintinput[i] = 5;\n\t\t\t\tif (intinput[i] == 4 && table[state][intinput[i]] == -1)\n\t\t\t\t\tintinput[i] = 5;\n\t\t\t\tstate = table[state][intinput[i]];\n\t\t\t}\n\t\t} catch(IndexOutOfBoundsException e) {\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\t\n\t\tif (state == 1 || state == 3 || state == 5 || state == 8)\n\t\t\treturn 0;\n\t\t\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "14d9de64d1d4966292bdc0add6135b79", "score": "0.5494991", "text": "void mo107677b(Integer num);", "title": "" }, { "docid": "9e566188299fe93dc976b092f5cd7092", "score": "0.549354", "text": "@Test\n public void testDigramaToNum() throws Exception {\n System.out.println(\"digramaToNum\");\n String digrama = \"\";\n int expResult = 0;\n int result = utilsHill.digramaToNum(digrama);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "876cb191dea39278c66744397b491ca8", "score": "0.54931295", "text": "public static void main(String[] args) {\n\t\tint a,b;\r\n\t\tSystem.out.println(\"to check den is zero\");\r\n\t\tScanner scanner =new Scanner(System.in);\r\n\t\ta = scanner.nextInt();\r\n\t\tb=scanner.nextInt();\r\n\t\tnumber(a,b);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b826e95eb2d9ed620908e7b54a9394a7", "score": "0.5477552", "text": "public static void printNumbers() {\n\t\tSystem.out.println(56);\n\t\tSystem.out.println(0b11); // 3 binary\n\t\tSystem.out.println(017); // 15 octal\n\t\tSystem.out.println(0x1F); //31 hexadecimal\n\t}", "title": "" }, { "docid": "dd369b7bb3f110100bd44f49477c30d6", "score": "0.54770356", "text": "public static void main(String args[] ) throws Exception {\n Scanner in = new Scanner(System.in);\n \n String original = in.next();\n int n = original.length();\n long moda = 1000000007;\n long ones = 1;\n long sum=0; \n for (int s=original.length()-1; s>=0; s--) {\n sum = (sum + (s+1) * (original.charAt(s) - '0') * ones) %moda; \n ones = (ones * 10 + 1) % moda;\n \n }\n \n System.out.println(sum);\n \n }", "title": "" }, { "docid": "279d4f3c4bf9fd642a445907f3c9355a", "score": "0.5467177", "text": "@org.junit.Test\r\n public void testNegativeScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"071261219\");// function should return false\r\n assertEquals(false, result);\r\n\r\n }", "title": "" }, { "docid": "ea5c6a0eb2d3422814dc1582680e496f", "score": "0.5462478", "text": "@Test\n public void testGetNum() throws Exception {\n CountNumbersWithUniqueDigits countNumbersWithUniqueDigits = new CountNumbersWithUniqueDigits();\n assertEquals(81, countNumbersWithUniqueDigits.getNum(10, 2));\n assertEquals(9, countNumbersWithUniqueDigits.getNum(10, 1));\n }", "title": "" }, { "docid": "ccb610e1390219c693608103b9b15dfe", "score": "0.54593396", "text": "public static int Main()\n\t{\n\t\t//cout << \"?????????n\" << endl;\n\t\tint n; //n????????a,b,c???,y??????x??????\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint y;\n\t\tint x;\n\t\tint z;\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tfor (int i = 1; i <= n; i++) //n???\n\t\t{\n\t\t\tx = 0;\n\t\t\ty = 0;\n\t\t\ta = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tb = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tc = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\tif (b > c) //?b??c\n\t\t\t{\n\t\t\t\tz = c;\n\t\t\t\tc = b;\n\t\t\t\tb = z;\n\t\t\t}\n\t\t\tif ((a % 4 == 0 && a % 100 != 0) || (a % 400 == 0)) //????\n\t\t\t{\n\t\t\t\ty = 1;\n\t\t\t}\n\t\t\tfor (; b <= c - 1; b++) //??????\n\t\t\t{\n\t\t\t\tswitch (b)\n\t\t\t\t{\n\t\t\t\tcase 1 :\n\t\t\t\tcase 3 :\n\t\t\t\tcase 5 :\n\t\t\t\tcase 7 :\n\t\t\t\tcase 8 :\n\t\t\t\tcase 10 :\n\t\t\t\tcase 12 :\n\t\t\t\t\tx = x + 31;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\tcase 6 :\n\t\t\t\tcase 9 :\n\t\t\t\tcase 11 :\n\t\t\t\t\tx = x + 30;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\tx = x + 28 + y;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x % 7 == 0) //??????????\n\t\t\t{\n\t\t\t\tSystem.out.print(\"YES\");\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.print(\"NO\");\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "448a30897c65c241703a437502ef6588", "score": "0.54571694", "text": "@Test\n public void test() {\n Assert.assertEquals(0.83648556F, Problem232.solve(/* change signature to provide required inputs */));\n }", "title": "" }, { "docid": "4297044d6b47c4d074ae544c811cfca2", "score": "0.5455872", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(minimumNumber(3,\"9#A\"));\n\t}", "title": "" }, { "docid": "aab2d923bc66e7a97ee763ce4b5a948d", "score": "0.54553324", "text": "public static void main(String args[]) {\n\n int start = Integer.parseInt(args[0]);\n int end = Integer.parseInt(args[1]);\n\n System.out.println(\"\\nArmstrong numbers within the range \" + start + \" - \" + end + \" are as follows: \");\n\n for(int number = start; number <= end; number++) {\n\n int sum = 0;\n int original = 0;\n int digits = 0;\n\n original = number;\n\n while(original > 0) {\n digits++;\n original = original / 10;\n }\n\n original = number;\n\n while(original > 0) {\n int remainder = original % 10;\n sum = sum + (int) Math.pow((double)remainder, (double)digits);\n original = original / 10;\n }\n\n if(number == sum) {\n System.out.print(number + \" \");\n }\n }\n\n System.out.println(\"\\n\");\n\n }", "title": "" }, { "docid": "3c7d515980cbbf165c3abe63ed08f54a", "score": "0.54515946", "text": "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "3e7944888352935e9241ba3e01bb9754", "score": "0.5451397", "text": "@Test\n @Tag(\"bm1000\")\n public void testAGG2() {\n CuteNetlibCase.doTest(\"AGG2.SIF\", \"-2.0239252355977114E7\", \"5.71551859632249E9\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "10f3b1cd5f058c7495a0e0ac8a5c55fe", "score": "0.54508287", "text": "private void check4(){\n \n if (errorCode == 0){\n int sum = 0;\n \n for(int i = 0; i < number.length();){\n sum += Integer.parseInt(number.substring(i, ++i));\n }\n \n if (sum % 4 != 0){\n valid = false;\n errorCode = 4;\n }\n }\n\t}", "title": "" }, { "docid": "da4fb317570cdefbc7ec84c595bd7acd", "score": "0.54461104", "text": "public static void main(String[] args)\r\n\t{\r\n\t\tlong result = 0;\r\n\r\n\t\tfor (int i = 1; i <= 10; i++)\r\n\t\t{\r\n\t\t\tresult += firstIncorrectTerm(i);\r\n\t\t}\r\n\t\tSystem.out.println(result);\r\n\t}", "title": "" }, { "docid": "3d72c0abb58af26102800cc4e99a5959", "score": "0.54452115", "text": "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n int t= scan.nextInt();\n int min[] = new int[10001];\n Arrays.fill(min,89898);\n min[0] = 0;\n int pn[] = new int[10001];\n boolean p[] = new boolean[10001];\n for(int i=2;i<101;++i)\n {\n if(!p[i])\n for(int j=i*i;j<10001;j+=i)\n p[j] = true;\n }\n int index = 0;\n for(int i=2;i<10001;++i)\n if(!p[i])\n pn[index++] = i;\n int last = index-1;\n for(int i=0;i<=last;++i)\n {\n int temp = (int)Math.pow(pn[i], pn[i]);\n if(temp<10001)\n pn[index++] = temp;\n else break;\n }\n pn[index++] = 898989;\n Arrays.sort(pn,0,index);\n for(int i=2;i<10001;++i)\n {\n for(int j=0;pn[j]<=i;++j)\n if(min[i]>1+min[i-pn[j]])\n min[i] = 1+min[i-pn[j]];\n }\n\n StringBuilder sb = new StringBuilder(\"\");\n while(t-->0)\n {\n sb.append(min[scan.nextInt()]+\"\\n\");\n }\n System.out.println(sb);\n }", "title": "" }, { "docid": "bcb5fa3b11bca848a5e6cfd3b39c287e", "score": "0.5443019", "text": "long mo107678c(Integer num);", "title": "" }, { "docid": "af482ac65f399a59d28859aa34cebd77", "score": "0.54410946", "text": "boolean hasNumber();", "title": "" }, { "docid": "99b9e32dfb370620ebabaa3c6331fa82", "score": "0.5440683", "text": "@Test\n\tpublic void test250000() {\n\n\tdouble tax = Main.calcTax(250_000.);\n\tassertEquals(7750., tax, .01);\n\n\t}", "title": "" } ]
4211a28946ad273c89abd2fa8c634bb4
Create a native string (NULterminated array of char), using the requested encoding.
[ { "docid": "0211c7d81eb72731d9be8740203c8bf2", "score": "0.6103118", "text": "public NativeString(String string, String encoding) {\n if (string == null) {\n throw new NullPointerException(\"String must not be null\");\n }\n // Allocate the memory to hold the string. Note, we have to\n // make this 1 element longer in order to accommodate the terminating \n // NUL (which is generated in Pointer.setString()).\n this.encoding = encoding;\n if (this.encoding == WIDE_STRING) {\n int len = (string.length() + 1 ) * Native.WCHAR_SIZE;\n pointer = new StringMemory(len);\n pointer.setWideString(0, string);\n }\n else {\n byte[] data = Native.getBytes(string, encoding);\n pointer = new StringMemory(data.length + 1);\n pointer.write(0, data, 0, data.length);\n pointer.setByte(data.length, (byte)0);\n }\n }", "title": "" } ]
[ { "docid": "1a49bc440a5cf23d326ad86c1382cc0e", "score": "0.6509132", "text": "@Override\n\tpublic String createString (byte[] b, String encoding) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b4eef1a89d230c13ec723ddeaeaa0d92", "score": "0.6197628", "text": "ICodec<char[]> utf_8();", "title": "" }, { "docid": "a6a9e0790e8ce14d0e4becac5f4eb1f5", "score": "0.607023", "text": "@Override\n\tpublic String createString (byte[] b, int ofs, int length) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "54e942af41e59f4af4ae1a9f0daa4ff0", "score": "0.5981594", "text": "Object getNativeString(int string) {\n Object result;\n int i;\n int count = String_length(string);\n//IFC// jchar *buf = (jchar *)malloc(2*count);\n/*IFJ*/ char[] buf = new char[count];;\n for (i = 0; i < count; i++) {\n//IFC// buf[i] = (jchar)String_at(string, i);\n/*IFJ*/ buf[i] = (char) String_at(string, i);\n }\n/*IFJ*/ result = new String(buf);\n//IFC// result = (*env)->NewString(env, (const jchar*)buf, count);\n//IFC// jni_assume(result != null, \"String allocation failed\");\n//IFC// free(buf);\n return result;\n }", "title": "" }, { "docid": "5462ea5b208434b11f1f46d1494342b0", "score": "0.5962275", "text": "public String(byte[] data, int offset, int count, String encoding)\n throws UnsupportedEncodingException\n {\n if (offset < 0 || count < 0 || offset + count > data.length)\n throw new StringIndexOutOfBoundsException();\n try\n {\n // XXX Consider using java.nio here.\n value = EncodingManager.getDecoder(encoding)\n .convertToChars(data, offset, count);\n }\n catch (CharConversionException cce)\n {\n throw new Error(cce);\n }\n this.offset = 0;\n this.count = value.length;\n }", "title": "" }, { "docid": "2251146261131d9b23f3e9b44cdcb076", "score": "0.59257025", "text": "public static String toJavaString(byte[] cString) {\n int i;\n String jString;\n\n // find the string length\n for (i = 0; cString[i] != 0; i++);\n\n try {\n return new String(cString, 0, i, \"ISO8859_1\");\n } catch (java.io.UnsupportedEncodingException e) {\n return null;\n }\n }", "title": "" }, { "docid": "cfacf75e36be3518698f9996b024b4b9", "score": "0.5846284", "text": "private String getNullTerminatedString() {\n\t\tbyte[] bytes = new byte[CHUNK_SIZE];\n\t\tbyte b;\n\t\ttry {\n\t\t\t//Read byte by byte\n\t\t\tint i = 0;\n\t\t\twhile( (b = in.readByte()) != '\\0') {\n\t\t\t\tbytes[i] = b;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\treturn new String(bytes);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error getting string\");\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "8a6776bcfc79704f68d260712a513dcc", "score": "0.5835672", "text": "public String(byte[] data, String encoding)\n throws UnsupportedEncodingException\n {\n this(data, 0, data.length, encoding);\n }", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "1fa21ce4ac61ff3c12bc43ecd974a5a1", "score": "0.5821538", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "c9fffffd3a0d9a74508927aa966d376e", "score": "0.58135504", "text": "public native String toString();", "title": "" }, { "docid": "8412c291ebd59b762b8c66399ebfa9af", "score": "0.57568586", "text": "static String newString(byte[] buf, long indexCoder) {\n // Use the private, non-copying constructor (unsafe!)\n if (indexCoder == LATIN1) {\n return new String(buf, String.LATIN1);\n } else if (indexCoder == UTF16) {\n return new String(buf, String.UTF16);\n } else {\n throw new InternalError(\"Storage is not completely initialized, \" + (int)indexCoder + \" bytes left\");\n }\n }", "title": "" }, { "docid": "d4c79ec135b0e7e2e5cf809c10dd9769", "score": "0.57367027", "text": "public static String stringOf(char[] buf) {\n if (buf.length < 256 || null == SHARED_STR_CONSTRUCTOR) {\n return new String(buf);\n }\n try {\n return SHARED_STR_CONSTRUCTOR.newInstance(buf, true);\n } catch (Exception e) {\n throw E.unexpected(e);\n }\n }", "title": "" }, { "docid": "e19e5fc84d25c65bfc4cb67d46740974", "score": "0.5728212", "text": "public static String getDefaultPlatformEncoding()\n {\n OutputStream out = new ByteArrayOutputStream();\n return (new OutputStreamWriter(out)).getEncoding();\n }", "title": "" }, { "docid": "a88c17a3c5eaa830668478ecbc8450e2", "score": "0.5723855", "text": "public native String stringFromJNI();", "title": "" }, { "docid": "b9fa9393ca80dfffc3d136758ee14113", "score": "0.5699965", "text": "private static String func_class_java_lang_String_aI() {\n byte[] var0;\n return (var0 = func_array_byte_f(\"xxx\")) == null ? null : new String(var0);\n }", "title": "" }, { "docid": "1a534d9977dbf215c478d9d8426efe6a", "score": "0.5697253", "text": "public String(char[] ca, int offset, int count) {\n _value = ca;\n _count = count;\n }", "title": "" }, { "docid": "365561ad0da9842c6fe831150690c448", "score": "0.56722635", "text": "ICodec<char[]> us_ascii();", "title": "" }, { "docid": "7c4099ba16b9cdf619955c4c6af99479", "score": "0.5662436", "text": "public static String getFromCompressedUnicode(\n\t\tfinal byte[] string,\n\t\tfinal int offset,\n\t\tfinal int len) {\n\t\ttry {\n\t\t\treturn new String(string, offset, len, \"ISO-8859-1\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthrow new InternalError(); /* unreachable */\n\t\t}\n\t}", "title": "" }, { "docid": "564c5063b626e6aad5bfa1f999499118", "score": "0.55672413", "text": "public static ICodec<char[]> utf_8() {\n\t\treturn c_provider.utf_8();\n\t}", "title": "" }, { "docid": "b334a37cac63da2117faada1c7e0cced", "score": "0.5535132", "text": "String makeString() {\n return new String(bytes, start, length);\n }", "title": "" }, { "docid": "3cd722caf322911707cf6c87583917d3", "score": "0.55156195", "text": "public static String bytesToString(byte[] input, CodeType codeType) {\r\n\t\treturn new String(input, CHARSETS[codeType.ordinal()]);\r\n\t}", "title": "" }, { "docid": "ada03a14ec605dc1f391aafd43a4710c", "score": "0.5493313", "text": "public static String getDefaultEncoding(){\n\t\tbyte [] byteArray = {'a'};\n\t\tInputStream inputStream = new ByteArrayInputStream(byteArray);\n\t\tInputStreamReader reader = new InputStreamReader(inputStream);\n\t\treturn(reader.getEncoding());\n\t}", "title": "" }, { "docid": "49bd2eaa2133cf98e1864d961ec26580", "score": "0.54910403", "text": "public void testEncodeString() throws java.io.UnsupportedEncodingException {\n String sample = \"f\\u00FCrchterlich\";\n UTF8Encoder encoder = new UTF8Encoder();\n encoder.encodeString(sample);\n assertEquals(\"string encoding\", sample,\n new String(encoder.toByteArray(), \"UTF-8\"));\n }", "title": "" }, { "docid": "4cea445a3f1971e7a5b1bc59b059a757", "score": "0.54704124", "text": "public String(byte[] data, int offset, int count)\n {\n if (offset < 0 || count < 0 || offset + count > data.length)\n throw new StringIndexOutOfBoundsException();\n try\n {\n // XXX Consider using java.nio here.\n value = EncodingManager.getDecoder()\n .convertToChars(data, offset, count);\n }\n catch (UnsupportedEncodingException uee)\n {\n throw new Error(uee);\n }\n catch (CharConversionException cce)\n {\n throw new Error(cce);\n }\n this.offset = 0;\n this.count = value.length;\n }", "title": "" }, { "docid": "208140e7ea1b8a524c0e8cf5183aef80", "score": "0.54618734", "text": "public static String javaEncoding(String encoding) {\n/* 96 */ return (String)ENCODINGS.get(encoding.toUpperCase());\n/* */ }", "title": "" }, { "docid": "e74610605417574c9f1694a8dc29a668", "score": "0.5438931", "text": "static StringArray convertToStringArray(JCas cas, String[] nativeStrArray) {\n\n int arrayLength = nativeStrArray.length;\n\n StringArray strArray = new StringArray(cas, arrayLength);\n for (int i = 0; i < arrayLength; i++) {\n strArray.set(i, nativeStrArray[i]);\n }\n return strArray;\n }", "title": "" }, { "docid": "2f92fb736ebb2d955292368673a656c2", "score": "0.5408969", "text": "public String getString(long offset, String encoding) {\n return Native.getString(this, offset, encoding);\n }", "title": "" }, { "docid": "b5dac83bf3cb4cc650cb68f6b000ea69", "score": "0.53885883", "text": "ICodec<char[]> iso_8859_1();", "title": "" }, { "docid": "bd57026be47b17536a2e6154567980bb", "score": "0.53845847", "text": "public static String getString(byte[] bytes) {\n return new String(bytes, CHARSET);\n }", "title": "" }, { "docid": "a2155d3c532708d8be82ca2f26f8e103", "score": "0.5366132", "text": "protected String byteToString(byte[] raw) {\n // return empty json {}.\n if (raw.length == 0) {\n return \"{}\";\n }\n return new String(raw, StandardCharsets.UTF_8);\n }", "title": "" }, { "docid": "2152f6aa6bd7415da1f15600b411f856", "score": "0.5358183", "text": "ICodec<char[]> utf_16();", "title": "" }, { "docid": "19988ee4a2d7d863033f2f97ad49fc25", "score": "0.5347776", "text": "public static String getString(byte[] buffer) {\n\t\treturn new String(buffer);\n\t}", "title": "" }, { "docid": "b6f4ba1b1323c5dd1a1b0a4a4b057c07", "score": "0.53274655", "text": "public final String mo28511a(Charset charset) {\n return new String(this.f26197W, mo28515e(), size(), charset);\n }", "title": "" }, { "docid": "d4131621cdcc1523e582c555b1d79398", "score": "0.5322971", "text": "ICodec<char[]> utf_16le();", "title": "" }, { "docid": "bf950f6f6ab2ab5034c8bb234b90c77d", "score": "0.5318088", "text": "private String toStr(byte[] bytes) {\n return new String(bytes, UTF_8);\n }", "title": "" }, { "docid": "4c8d0a3a55fb93eba205b7e0fab6db1c", "score": "0.53023684", "text": "String(byte[] value, byte coder) {\n this.value = value;\n this.coder = coder;\n }", "title": "" }, { "docid": "72b663354a2600b8c599649d492d4814", "score": "0.52893466", "text": "private static String fillString (char ch, int count){\n String result = null;\n if (count > 0){\n char[] charArray = new char[count];\n Arrays.fill(charArray, ch);\n result = new String(charArray);\n }\n else {\n result = \"\";\n }\n return result;\n }", "title": "" }, { "docid": "445cdb90449108306a9333ce4080e293", "score": "0.5284367", "text": "public static ICodec<char[]> us_ascii() {\n\t\treturn c_provider.us_ascii();\n\t}", "title": "" }, { "docid": "2be11e2b751beea4265e1b32a94df1a7", "score": "0.5278604", "text": "public String asString(Charset encoding) throws IOException {\n return asString(encoding, this.openConnection());\n }", "title": "" }, { "docid": "5c1109f0bc3c6718b7acf170c0e7df65", "score": "0.52687913", "text": "public String convertToJavaString(byte[] sourceBytes, int offset, int numToConvert) {\n try {\n return new String(sourceBytes, offset, numToConvert, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n if (SanityManager.DEBUG) {\n SanityManager.THROWASSERT(\"Could not convert byte[] to Java String using UTF-8 encoding with offset\",e);\n }\n }\n return null;\n }", "title": "" }, { "docid": "078a8c6cd5a80a31a5801582b418b5ff", "score": "0.5266171", "text": "ICodec<char[]> utf_16be();", "title": "" }, { "docid": "0cee6b9c84083b8729e8cb94437e5484", "score": "0.5192175", "text": "@Nullable\n @NativeType(\"char const *\")\n public static String ivar_getTypeEncoding(@NativeType(\"Ivar\") long v) {\n long __result = nivar_getTypeEncoding(v);\n return memUTF8Safe(__result);\n }", "title": "" }, { "docid": "c5154b0a5240dedb8673ef92dfcc8c56", "score": "0.51902235", "text": "private static String loadConvert(char[] in, int offset, int len) {\r\n\t\tchar[] convtBuf = new char[1024];\r\n\t\tint off = offset;\r\n\r\n\t\tif (convtBuf.length < len) {\r\n\t\t\tint newLen = len * 2;\r\n\t\t\tif (newLen < 0) {\r\n\t\t\t\tnewLen = Integer.MAX_VALUE;\r\n\t\t\t}\r\n\t\t\tconvtBuf = new char[newLen];\r\n\t\t}\r\n\t\tchar aChar;\r\n\t\tchar[] out = convtBuf;\r\n\t\tint outLen = 0;\r\n\t\tint end = off + len;\r\n\r\n\t\twhile (off < end) {\r\n\t\t\taChar = in[off++];\r\n\t\t\tif (aChar == '\\\\') {\r\n\t\t\t\taChar = in[off++];\r\n\t\t\t\tif (aChar == 'u') {\r\n\t\t\t\t\t// Read the xxxx\r\n\t\t\t\t\tint value = 0;\r\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\t\t\t\taChar = in[off++];\r\n\t\t\t\t\t\tswitch (aChar) {\r\n\t\t\t\t\t\tcase '0':\r\n\t\t\t\t\t\tcase '1':\r\n\t\t\t\t\t\tcase '2':\r\n\t\t\t\t\t\tcase '3':\r\n\t\t\t\t\t\tcase '4':\r\n\t\t\t\t\t\tcase '5':\r\n\t\t\t\t\t\tcase '6':\r\n\t\t\t\t\t\tcase '7':\r\n\t\t\t\t\t\tcase '8':\r\n\t\t\t\t\t\tcase '9':\r\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'a':\r\n\t\t\t\t\t\tcase 'b':\r\n\t\t\t\t\t\tcase 'c':\r\n\t\t\t\t\t\tcase 'd':\r\n\t\t\t\t\t\tcase 'e':\r\n\t\t\t\t\t\tcase 'f':\r\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'A':\r\n\t\t\t\t\t\tcase 'B':\r\n\t\t\t\t\t\tcase 'C':\r\n\t\t\t\t\t\tcase 'D':\r\n\t\t\t\t\t\tcase 'E':\r\n\t\t\t\t\t\tcase 'F':\r\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\t\t\t\"Malformed \\\\uxxxx encoding.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tout[outLen++] = (char) value;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (aChar == 't') {\r\n\t\t\t\t\t\taChar = '\\t';\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (aChar == 'r') {\r\n\t\t\t\t\t\taChar = '\\r';\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (aChar == 'n') {\r\n\t\t\t\t\t\taChar = '\\n';\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (aChar == 'f') {\r\n\t\t\t\t\t\taChar = '\\f';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tout[outLen++] = aChar;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tout[outLen++] = aChar;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new String(out, 0, outLen);\r\n\t}", "title": "" }, { "docid": "4c9235f4a8f92081b45522150fb53341", "score": "0.51886255", "text": "public static String a(InputStream in) throws IOException {\n/* 81 */ in.mark(3);\n/* 82 */ String encoding = null;\n/* 83 */ int c = in.read();\n/* 84 */ if (c == 254) {\n/* 85 */ if (in.read() == 255) {\n/* 86 */ encoding = \"UTF-16BE\";\n/* */ }\n/* 88 */ } else if (c == 255) {\n/* 89 */ if (in.read() == 254) {\n/* 90 */ encoding = \"UTF-16LE\";\n/* */ }\n/* 92 */ } else if (c == 239 && \n/* 93 */ in.read() == 187 && in.read() == 191) {\n/* 94 */ encoding = \"UTF-8\";\n/* */ } \n/* */ \n/* 97 */ if (encoding == null) {\n/* 98 */ in.reset();\n/* */ }\n/* 100 */ return encoding;\n/* */ }", "title": "" }, { "docid": "609144348e93b9ca6f8d9791bcb173ed", "score": "0.51785636", "text": "public static String getNULString(ByteBuffer in)\n {\n StringBuilder str = new StringBuilder();\n byte next;\n while ((next = in.get()) != 0)\n {\n str.append((char) next);\n }\n return str.toString();\n }", "title": "" }, { "docid": "855ddefe279e27c78f6db2d4424af0e7", "score": "0.51783425", "text": "static char[] zeroBasedStringValue(String s)\n {\n char[] value;\n \n if (s.offset == 0 && s.count == s.value.length)\n value = s.value;\n else\n {\n int count = s.count;\n value = new char[count];\n System.arraycopy(s.value, s.offset, value, 0, count);\n }\n \n return value;\n }", "title": "" }, { "docid": "e6c49b6bbcaa687afabcfb884f2599f5", "score": "0.5170593", "text": "Object getUtf8();", "title": "" }, { "docid": "c8809d420f2e391183b32368ffd9c95f", "score": "0.5123363", "text": "public static String getString(byte[] zprava, int position, int length) {\n String temp;\n try {\n temp = new String(zprava, position, length, \"UTF-8\");\n }\n catch (java.io.UnsupportedEncodingException e) {\n temp = \"Unsupported Encoding Exception\";\n }\n return temp;\n }", "title": "" }, { "docid": "64ff7c049c9a345f258adfe53e0fdc36", "score": "0.512123", "text": "public String encodeToString(byte[] data) {\n return SolidUtil.Encoding.utf8(encode(data));\n }", "title": "" }, { "docid": "7bde3e3f4fc09db5f4400f8709d00d84", "score": "0.5110352", "text": "@Override\n\tpublic byte[] asUnquotedUTF8() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8b2b4606ea43381519c5dd11909134da", "score": "0.51083636", "text": "public interface StringEncoding\n{\n /**\n * Constant used to define the coding size of 1 byte of the characters \n * of native strings. On C/C++ is equivalent to use the \n * <code>char</code> type.\n */\n public int ANSI = 1;\n \n /**\n * Constant used to define the coding size of 2 byte of the characters \n * of native strings. On C/C++ is equivalent to use the \n * <code>wchar_t</code> type.\n */ \n public int UNICODE = 2; \n}", "title": "" }, { "docid": "cf5007545b4774758292b453942f0470", "score": "0.5094564", "text": "private static Charset createRandomEncoding() {\r\n\t\t// create random strings\r\n\t\tint randomEncoding = JsonStaticStreamParserTesting.RANDOM.nextInt(6);\r\n\t\tswitch (randomEncoding) {\r\n\t\t\r\n\t\t\tcase 0:\r\n\t\t\t\treturn StandardCharsets.ISO_8859_1;\r\n\t\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t\treturn StandardCharsets.US_ASCII;\r\n\t\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t\treturn StandardCharsets.UTF_16;\r\n\t\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t\treturn StandardCharsets.UTF_16BE;\r\n\t\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t\treturn StandardCharsets.UTF_16LE;\r\n\t\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t\treturn StandardCharsets.UTF_8;\r\n\t\r\n\t\t\tdefault:\r\n\t\t\t\treturn Charset.defaultCharset();\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "de5c2cb138dd2c80f81e5b26ddd7be82", "score": "0.50928617", "text": "java.lang.String getEncoding();", "title": "" }, { "docid": "de5c2cb138dd2c80f81e5b26ddd7be82", "score": "0.50928617", "text": "java.lang.String getEncoding();", "title": "" }, { "docid": "de5c2cb138dd2c80f81e5b26ddd7be82", "score": "0.50928617", "text": "java.lang.String getEncoding();", "title": "" }, { "docid": "de5c2cb138dd2c80f81e5b26ddd7be82", "score": "0.50928617", "text": "java.lang.String getEncoding();", "title": "" }, { "docid": "1f903bd96549e0e6842ab4f4808fb35e", "score": "0.5092801", "text": "public static String charArrayToString(char[] charArray, int len) {\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tresult += charArray[i];\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "08a4daf0c076a7601afce54f073bd871", "score": "0.5089829", "text": "String asString();", "title": "" }, { "docid": "efbb4c9e5f288cf8ef9c60621552f33f", "score": "0.50473344", "text": "public static final String toAsciiString(byte[] buffer, int startPos,\r\n int length) {\r\n char[] charArray = new char[length];\r\n int readpoint = startPos;\r\n\r\n for (int i = 0; i < length; i++) {\r\n charArray[i] = (char) buffer[readpoint];\r\n readpoint++;\r\n }\r\n\r\n return new String(charArray);\r\n }", "title": "" }, { "docid": "7ec79be6442d49c5c880c81e8979e0ce", "score": "0.5043986", "text": "public final CoderResult encodeString(String src, ByteBuffer dst) {\n\t\tif (dst.hasArray())\n\t\t\treturn encodeStringToHeap(src, dst);\n\t\telse\n\t\t\treturn encodeStringToDirect(src, dst);\n\t}", "title": "" }, { "docid": "bdaca9a185494285a8e0dcd388727394", "score": "0.5042669", "text": "public String makeString();", "title": "" }, { "docid": "acb8278d017d1c583a8c11bf29336e1d", "score": "0.5037426", "text": "public static String getStr(byte[] data) {\n int dataLen = 0;\n for (int i = 0; i < data.length; i++) {\n if (data[i] == 0) {\n dataLen = i;\n break;\n }\n }\n try {\n return new String(data, 0, dataLen, \"GB2312\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "title": "" }, { "docid": "9dc9d31a6773ff2ff39ff9d095048c49", "score": "0.5028561", "text": "ICodec<char[]> charset(String charsetName);", "title": "" }, { "docid": "61d7b604279123158f8d4fbc092de36d", "score": "0.50269324", "text": "public static String encode(String str) throws RuntimeException {\n\t\tbyte[] bytes = str.getBytes();\n\t\tbyte[] encoded = encode(bytes);\n\t\ttry {\n\t\t\treturn new String(encoded, Global_Charsets.UTF_8);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthrow new RuntimeException(\"UTF-8 is not supported!\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "57a80bf94e561b8be4c66514e18803db", "score": "0.5018267", "text": "public abstract String getEncoding();", "title": "" }, { "docid": "4cdd82a0809609a5e27f9e90a12839e3", "score": "0.50060534", "text": "abstract void writeStringNoNull(String s, String encoding,\n\t\t\tString serverEncoding, boolean parserKnowsUnicode)\n\t\t\tthrows UnsupportedEncodingException, SQLException;", "title": "" }, { "docid": "746c5f960cb05c5d49401f8ec1cdcf97", "score": "0.4995537", "text": "protected abstract String asString();", "title": "" }, { "docid": "7ffd38f4f65e615b7d2b666aacae96d3", "score": "0.4986731", "text": "@Nonnull\n char[] toCharArray();", "title": "" }, { "docid": "5a7b3e4e187dc6290c486beeb161f5da", "score": "0.4981734", "text": "public static ByteBuf writeString(String msg, Charset charset) \n\t{\n\t\tByteBuf buffer = null;\n\t\ttry\n\t\t{\n\t\t\tByteBuf stringBuffer = null;\n\t\t\tif (null == charset)\n\t\t\t{\n\t\t\t\tcharset = CharsetUtil.UTF_8;\n\t\t\t}\n\t\t\tstringBuffer = copiedBuffer(msg, charset);\n\t\t\tint length = stringBuffer.readableBytes();\n\t\t\tByteBuf lengthBuffer = Unpooled.buffer(2);\n\t\t\tlengthBuffer.writeShort(length);\n\t\t\tbuffer = Unpooled.wrappedBuffer(lengthBuffer, stringBuffer);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\treturn buffer;\n\t}", "title": "" }, { "docid": "d47c02c81e1d2da91010d375eab5f3f0", "score": "0.49764925", "text": "String(AbstractStringBuilder asb, Void sig) {\n byte[] val = asb.getValue();\n int length = asb.length();\n if (asb.isLatin1()) {\n this.coder = LATIN1;\n this.value = Arrays.copyOfRange(val, 0, length);\n } else {\n if (COMPACT_STRINGS) {\n byte[] buf = StringUTF16.compress(val, 0, length);\n if (buf != null) {\n this.coder = LATIN1;\n this.value = buf;\n return;\n }\n }\n this.coder = UTF16;\n this.value = Arrays.copyOfRange(val, 0, length << 1);\n }\n }", "title": "" }, { "docid": "faf30d6c883f6b0249edb02335d2ce4c", "score": "0.4975122", "text": "public static void main(String[] args) {\n char[] arr = new char[]{'0','1','2','3','4','5','6','7','8','9'};\n char[] arr1 = new char[]{'0','1','2','3','4','5','6','7','8','9'};\n\n String str = String.valueOf(arr);\n System.out.println(str);\n\n\n\n\n }", "title": "" }, { "docid": "43df0013275c97ac199b77e7ab17b756", "score": "0.49705842", "text": "public String base64_encode(byte[] s) throws Exception\n\t{\n return new String(org.apache.commons.codec.binary.Base64.encodeBase64(s));\n\t}", "title": "" }, { "docid": "14e0c63e0f8e9cf71d5d6635828b8ff3", "score": "0.4966814", "text": "public static byte[] encodeNull() {\n return NULL;\n }", "title": "" }, { "docid": "23d3efccb35bbc386e0aec0f9f3ada05", "score": "0.49571013", "text": "public static String readString(ByteBuffer buffer){\n\t\treturn new String(readArray(buffer),ENCODING);\n\t}", "title": "" }, { "docid": "073ea5322eb4899b9ecca2274ac0bf9d", "score": "0.49343953", "text": "public static String byteToString(byte[] b, String charset) {\n\t\ttry {\n\t\t\treturn (charset == null) ? new String(b) : new String(b, charset);\n\t\t} catch (Exception e) {\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b4fedad28a3218090a369868f4f3ff8c", "score": "0.4927655", "text": "private String[] recordToStringArray(byte[] record) throws UnsupportedEncodingException {\n \n int offset = RECORD_DATA_SECTION_OFFSET;\n String[] data = new String[FIELD_LENGTHS_ARRAY.length];\n String field;\n \n for (int i = 0; i < FIELD_LENGTHS_ARRAY.length; i++) {\n int fieldLength = FIELD_LENGTHS_ARRAY[i];\n // POSSIBLE NPE\n field = new String(record, offset, fieldLength, \"US-ASCII\").trim();\n data[i] = field;\n offset += fieldLength;\n }\n return data;\n }", "title": "" }, { "docid": "a97fc9660b6a33193f1e195135226999", "score": "0.49195677", "text": "@Test\n public void shouldTransformByteArraysOfCharsIntoAString() {\n\n\tfinal Utf8Decoder decoder = new Utf8Decoder();\n\tfinal byte[] bytes = new byte[] { 'H', 'e', 'l', 'l', 'o' };\n\n\tfinal String result = decoder.decodeBytesToString(bytes);\n\n\tassertThat(result, is(equalTo(\"Hello\")));\n }", "title": "" }, { "docid": "75941c571319c2215360faa87ad760fc", "score": "0.490735", "text": "private static byte[] charArray2Binary(char[] array){\n return new String(array).getBytes( Charset.forName(CHARSET) );\n }", "title": "" }, { "docid": "7e5f403cbb04bb92eb62e429ef7f1619", "score": "0.49031684", "text": "private String UTF8EncodedString(String line) {\n\t\tif (line != null) {\n\t\t\treturn new String(line.getBytes(), Charset.forName(\"UTF-8\"));\n\t\t}\n\t\treturn \"None\";\n\t}", "title": "" }, { "docid": "45245b236704d2c352e3bad8ff558137", "score": "0.48813254", "text": "String getEncoding();", "title": "" }, { "docid": "cc6fce0e4a40777f8bfe86f95eb34d8c", "score": "0.48801613", "text": "private String readUTF(int index, int utfLen, char[] buf) {\n/* 2475 */ int endIndex = index + utfLen;\n/* 2476 */ byte[] b = this.b;\n/* 2477 */ int strLen = 0;\n/* */ \n/* 2479 */ int st = 0;\n/* 2480 */ char cc = Character.MIN_VALUE;\n/* 2481 */ while (index < endIndex) {\n/* 2482 */ int c = b[index++];\n/* 2483 */ switch (st) {\n/* */ case 0:\n/* 2485 */ c &= 0xFF;\n/* 2486 */ if (c < 128) {\n/* 2487 */ buf[strLen++] = (char)c; continue;\n/* 2488 */ } if (c < 224 && c > 191) {\n/* 2489 */ cc = (char)(c & 0x1F);\n/* 2490 */ st = 1; continue;\n/* */ } \n/* 2492 */ cc = (char)(c & 0xF);\n/* 2493 */ st = 2;\n/* */ \n/* */ \n/* */ \n/* */ case 1:\n/* 2498 */ buf[strLen++] = (char)(cc << 6 | c & 0x3F);\n/* 2499 */ st = 0;\n/* */ \n/* */ \n/* */ case 2:\n/* 2503 */ cc = (char)(cc << 6 | c & 0x3F);\n/* 2504 */ st = 1;\n/* */ } \n/* */ \n/* */ } \n/* 2508 */ return new String(buf, 0, strLen);\n/* */ }", "title": "" }, { "docid": "0b235ea40c490be0eae82ccb4059fdd9", "score": "0.48717368", "text": "public static String toString(byte[] value) {\n return (value == null) ? null : bytesToString(org.apache.commons.codec.binary.Base64.encodeBase64(value));\n }", "title": "" }, { "docid": "54551fba9f568456ba64dff6ff36ce4a", "score": "0.48712018", "text": "private String stringEncoding(String string) {\n\t\ttry {\n\t\t\tstring = new String(string.getBytes(\"ISO8859_1\"), \"UTF8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t}\n\t\treturn string;\n\t}", "title": "" }, { "docid": "2c5fdaf2f63debdeecebb2e2f1a1543d", "score": "0.4863644", "text": "public String getCharacterEncoding() {\n \t\treturn null;\r\n \t}", "title": "" }, { "docid": "06a6d8caba9fa91c8424dc5270788d4e", "score": "0.486244", "text": "protected String getString(int pos) throws UnsupportedEncodingException, SQLException {\n\t\tif (cs == null)\n\t\t\treturn null;\n\t\t;\n\t\tif (encoding == null)\n\t\t\treturn null;\n\t\t;\n\t\tif (cs.getString(pos) == null)\n\t\t\treturn \"\";\n\t\tif (transcode2En)\n\t\t\treturn encode2Vo(new String(cs.getBytes(pos), encoding));\n\t\telse\n\t\t\treturn new String(cs.getBytes(pos), encoding);\n\t}", "title": "" } ]
c39c9d18cab9f87c1fea5b17cf9203e7
$ANTLR end "entryRuleDataType" $ANTLR start "ruleDataType" InternalTemplate.g:187:1: ruleDataType : ( ( rule__DataType__Alternatives ) ) ;
[ { "docid": "ad8efb011616fd98b8aa5372478db911", "score": "0.82310086", "text": "public final void ruleDataType() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalTemplate.g:191:2: ( ( ( rule__DataType__Alternatives ) ) )\r\n // InternalTemplate.g:192:2: ( ( rule__DataType__Alternatives ) )\r\n {\r\n // InternalTemplate.g:192:2: ( ( rule__DataType__Alternatives ) )\r\n // InternalTemplate.g:193:3: ( rule__DataType__Alternatives )\r\n {\r\n before(grammarAccess.getDataTypeAccess().getAlternatives()); \r\n // InternalTemplate.g:194:3: ( rule__DataType__Alternatives )\r\n // InternalTemplate.g:194:4: rule__DataType__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__DataType__Alternatives();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getDataTypeAccess().getAlternatives()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" } ]
[ { "docid": "dc368389176e90233908aaf12f9f67b1", "score": "0.78706646", "text": "public final void ruleDataType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3245:1: ( ( ( rule__DataType__Alternatives ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3246:1: ( ( rule__DataType__Alternatives ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3246:1: ( ( rule__DataType__Alternatives ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3247:1: ( rule__DataType__Alternatives )\n {\n before(grammarAccess.getDataTypeAccess().getAlternatives()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3248:1: ( rule__DataType__Alternatives )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3248:2: rule__DataType__Alternatives\n {\n pushFollow(FOLLOW_rule__DataType__Alternatives_in_ruleDataType6776);\n rule__DataType__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDataTypeAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9e7a2203e3f087bbf0a50e2a780016c6", "score": "0.71342117", "text": "public final void rule__DataType__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5236:1: ( ( ( 'boolean' ) ) | ( ( 'date' ) ) | ( ( 'datetime' ) ) | ( ( 'decimal' ) ) | ( ( 'float' ) ) | ( ( 'integer' ) ) | ( ( 'string' ) ) | ( ( 'time' ) ) )\n int alt58=8;\n switch ( input.LA(1) ) {\n case 115:\n {\n alt58=1;\n }\n break;\n case 116:\n {\n alt58=2;\n }\n break;\n case 117:\n {\n alt58=3;\n }\n break;\n case 118:\n {\n alt58=4;\n }\n break;\n case 119:\n {\n alt58=5;\n }\n break;\n case 120:\n {\n alt58=6;\n }\n break;\n case 121:\n {\n alt58=7;\n }\n break;\n case 122:\n {\n alt58=8;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 58, 0, input);\n\n throw nvae;\n }\n\n switch (alt58) {\n case 1 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5237:1: ( ( 'boolean' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5237:1: ( ( 'boolean' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5238:1: ( 'boolean' )\n {\n before(grammarAccess.getDataTypeAccess().getBooleanEnumLiteralDeclaration_0()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5239:1: ( 'boolean' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5239:3: 'boolean'\n {\n match(input,115,FOLLOW_115_in_rule__DataType__Alternatives11661); \n\n }\n\n after(grammarAccess.getDataTypeAccess().getBooleanEnumLiteralDeclaration_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5244:6: ( ( 'date' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5244:6: ( ( 'date' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5245:1: ( 'date' )\n {\n before(grammarAccess.getDataTypeAccess().getDateEnumLiteralDeclaration_1()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5246:1: ( 'date' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5246:3: 'date'\n {\n match(input,116,FOLLOW_116_in_rule__DataType__Alternatives11682); \n\n }\n\n after(grammarAccess.getDataTypeAccess().getDateEnumLiteralDeclaration_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5251:6: ( ( 'datetime' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5251:6: ( ( 'datetime' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5252:1: ( 'datetime' )\n {\n before(grammarAccess.getDataTypeAccess().getDatetimeEnumLiteralDeclaration_2()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5253:1: ( 'datetime' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5253:3: 'datetime'\n {\n match(input,117,FOLLOW_117_in_rule__DataType__Alternatives11703); \n\n }\n\n after(grammarAccess.getDataTypeAccess().getDatetimeEnumLiteralDeclaration_2()); \n\n }\n\n\n }\n break;\n case 4 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5258:6: ( ( 'decimal' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5258:6: ( ( 'decimal' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5259:1: ( 'decimal' )\n {\n before(grammarAccess.getDataTypeAccess().getDecimalEnumLiteralDeclaration_3()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5260:1: ( 'decimal' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5260:3: 'decimal'\n {\n match(input,118,FOLLOW_118_in_rule__DataType__Alternatives11724); \n\n }\n\n after(grammarAccess.getDataTypeAccess().getDecimalEnumLiteralDeclaration_3()); \n\n }\n\n\n }\n break;\n case 5 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5265:6: ( ( 'float' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5265:6: ( ( 'float' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5266:1: ( 'float' )\n {\n before(grammarAccess.getDataTypeAccess().getFloatEnumLiteralDeclaration_4()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5267:1: ( 'float' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5267:3: 'float'\n {\n match(input,119,FOLLOW_119_in_rule__DataType__Alternatives11745); \n\n }\n\n after(grammarAccess.getDataTypeAccess().getFloatEnumLiteralDeclaration_4()); \n\n }\n\n\n }\n break;\n case 6 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5272:6: ( ( 'integer' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5272:6: ( ( 'integer' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5273:1: ( 'integer' )\n {\n before(grammarAccess.getDataTypeAccess().getIntegerEnumLiteralDeclaration_5()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5274:1: ( 'integer' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5274:3: 'integer'\n {\n match(input,120,FOLLOW_120_in_rule__DataType__Alternatives11766); \n\n }\n\n after(grammarAccess.getDataTypeAccess().getIntegerEnumLiteralDeclaration_5()); \n\n }\n\n\n }\n break;\n case 7 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5279:6: ( ( 'string' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5279:6: ( ( 'string' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5280:1: ( 'string' )\n {\n before(grammarAccess.getDataTypeAccess().getStringEnumLiteralDeclaration_6()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5281:1: ( 'string' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5281:3: 'string'\n {\n match(input,121,FOLLOW_121_in_rule__DataType__Alternatives11787); \n\n }\n\n after(grammarAccess.getDataTypeAccess().getStringEnumLiteralDeclaration_6()); \n\n }\n\n\n }\n break;\n case 8 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5286:6: ( ( 'time' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5286:6: ( ( 'time' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5287:1: ( 'time' )\n {\n before(grammarAccess.getDataTypeAccess().getTimeEnumLiteralDeclaration_7()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5288:1: ( 'time' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5288:3: 'time'\n {\n match(input,122,FOLLOW_122_in_rule__DataType__Alternatives11808); \n\n }\n\n after(grammarAccess.getDataTypeAccess().getTimeEnumLiteralDeclaration_7()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b86ab6bedead7705e68ea8970cc70638", "score": "0.6960005", "text": "public final void entryRuleDataType() throws RecognitionException {\r\n try {\r\n // InternalTemplate.g:179:1: ( ruleDataType EOF )\r\n // InternalTemplate.g:180:1: ruleDataType EOF\r\n {\r\n before(grammarAccess.getDataTypeRule()); \r\n pushFollow(FOLLOW_1);\r\n ruleDataType();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getDataTypeRule()); \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "70d5086a57bc152bea81dd880e21c5ff", "score": "0.60926473", "text": "public final void rule__VarDeclaration__Alternatives_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalTemplate.g:704:1: ( ( ruleDataType ) | ( ruleObjectType ) )\r\n int alt7=2;\r\n int LA7_0 = input.LA(1);\r\n\r\n if ( ((LA7_0>=12 && LA7_0<=13)) ) {\r\n alt7=1;\r\n }\r\n else if ( (LA7_0==RULE_ID) ) {\r\n alt7=2;\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 7, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt7) {\r\n case 1 :\r\n // InternalTemplate.g:705:2: ( ruleDataType )\r\n {\r\n // InternalTemplate.g:705:2: ( ruleDataType )\r\n // InternalTemplate.g:706:3: ruleDataType\r\n {\r\n before(grammarAccess.getVarDeclarationAccess().getDataTypeParserRuleCall_0_0()); \r\n pushFollow(FOLLOW_2);\r\n ruleDataType();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getVarDeclarationAccess().getDataTypeParserRuleCall_0_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalTemplate.g:711:2: ( ruleObjectType )\r\n {\r\n // InternalTemplate.g:711:2: ( ruleObjectType )\r\n // InternalTemplate.g:712:3: ruleObjectType\r\n {\r\n before(grammarAccess.getVarDeclarationAccess().getObjectTypeParserRuleCall_0_1()); \r\n pushFollow(FOLLOW_2);\r\n ruleObjectType();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getVarDeclarationAccess().getObjectTypeParserRuleCall_0_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "5de9b14553627ed46fbf8bf4398a0012", "score": "0.6008193", "text": "public final void rule__Datasource__TypeAlternatives_3_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3413:1: ( ( ruleDatasourceSample ) | ( ruleDatasourceJDBC ) | ( ruleDatasourceCSV ) )\n int alt2=3;\n switch ( input.LA(1) ) {\n case 226:\n {\n alt2=1;\n }\n break;\n case 137:\n {\n alt2=2;\n }\n break;\n case 141:\n {\n alt2=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 2, 0, input);\n\n throw nvae;\n }\n\n switch (alt2) {\n case 1 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3414:1: ( ruleDatasourceSample )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3414:1: ( ruleDatasourceSample )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3415:1: ruleDatasourceSample\n {\n before(grammarAccess.getDatasourceAccess().getTypeDatasourceSampleParserRuleCall_3_0_0()); \n pushFollow(FOLLOW_ruleDatasourceSample_in_rule__Datasource__TypeAlternatives_3_07187);\n ruleDatasourceSample();\n\n state._fsp--;\n\n after(grammarAccess.getDatasourceAccess().getTypeDatasourceSampleParserRuleCall_3_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3420:6: ( ruleDatasourceJDBC )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3420:6: ( ruleDatasourceJDBC )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3421:1: ruleDatasourceJDBC\n {\n before(grammarAccess.getDatasourceAccess().getTypeDatasourceJDBCParserRuleCall_3_0_1()); \n pushFollow(FOLLOW_ruleDatasourceJDBC_in_rule__Datasource__TypeAlternatives_3_07204);\n ruleDatasourceJDBC();\n\n state._fsp--;\n\n after(grammarAccess.getDatasourceAccess().getTypeDatasourceJDBCParserRuleCall_3_0_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3426:6: ( ruleDatasourceCSV )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3426:6: ( ruleDatasourceCSV )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3427:1: ruleDatasourceCSV\n {\n before(grammarAccess.getDatasourceAccess().getTypeDatasourceCSVParserRuleCall_3_0_2()); \n pushFollow(FOLLOW_ruleDatasourceCSV_in_rule__Datasource__TypeAlternatives_3_07221);\n ruleDatasourceCSV();\n\n state._fsp--;\n\n after(grammarAccess.getDatasourceAccess().getTypeDatasourceCSVParserRuleCall_3_0_2()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "28ad4cd2861e86f5ef9d3c4fdbe2f2fd", "score": "0.59337336", "text": "public final void rule__Parameter__DatatypeAssignment_3_5_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:26084:1: ( ( ruleDataType ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:26085:1: ( ruleDataType )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:26085:1: ( ruleDataType )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:26086:1: ruleDataType\n {\n before(grammarAccess.getParameterAccess().getDatatypeDataTypeEnumRuleCall_3_5_3_0()); \n pushFollow(FOLLOW_ruleDataType_in_rule__Parameter__DatatypeAssignment_3_5_359065);\n ruleDataType();\n\n state._fsp--;\n\n after(grammarAccess.getParameterAccess().getDatatypeDataTypeEnumRuleCall_3_5_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e2802efe31085978146542ba38a1d133", "score": "0.5923832", "text": "public final void ruleDatatype() throws RecognitionException {\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n\n try {\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:337:13: ( (otherlv_0= 'datatype' ( (lv_name_1_0= RULE_ID ) ) ) )\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:338:2: (otherlv_0= 'datatype' ( (lv_name_1_0= RULE_ID ) ) )\n {\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:338:2: (otherlv_0= 'datatype' ( (lv_name_1_0= RULE_ID ) ) )\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:339:3: otherlv_0= 'datatype' ( (lv_name_1_0= RULE_ID ) )\n {\n\n \t\t\tmarkLeaf(elementTypeProvider.getDatatype_DatatypeKeyword_0ElementType());\n \t\t\n otherlv_0=(Token)match(input,17,FOLLOW_17_in_ruleDatatype781); \n\n \t\t\tdoneLeaf(otherlv_0);\n \t\t\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:346:3: ( (lv_name_1_0= RULE_ID ) )\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:347:4: (lv_name_1_0= RULE_ID )\n {\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:347:4: (lv_name_1_0= RULE_ID )\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:348:5: lv_name_1_0= RULE_ID\n {\n\n \t\t\t\t\tmarkLeaf(elementTypeProvider.getDatatype_NameIDTerminalRuleCall_1_0ElementType());\n \t\t\t\t\n lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleDatatype808); \n\n \t\t\t\t\tdoneLeaf(lv_name_1_0);\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "c0a8957c5e197757d8dbac2f0ecc43ba", "score": "0.59232193", "text": "public final void rule__DataType__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalTemplate.g:608:1: ( ( 'auto' ) | ( 'void' ) )\r\n int alt3=2;\r\n int LA3_0 = input.LA(1);\r\n\r\n if ( (LA3_0==12) ) {\r\n alt3=1;\r\n }\r\n else if ( (LA3_0==13) ) {\r\n alt3=2;\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 3, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt3) {\r\n case 1 :\r\n // InternalTemplate.g:609:2: ( 'auto' )\r\n {\r\n // InternalTemplate.g:609:2: ( 'auto' )\r\n // InternalTemplate.g:610:3: 'auto'\r\n {\r\n before(grammarAccess.getDataTypeAccess().getAutoKeyword_0()); \r\n match(input,12,FOLLOW_2); \r\n after(grammarAccess.getDataTypeAccess().getAutoKeyword_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalTemplate.g:615:2: ( 'void' )\r\n {\r\n // InternalTemplate.g:615:2: ( 'void' )\r\n // InternalTemplate.g:616:3: 'void'\r\n {\r\n before(grammarAccess.getDataTypeAccess().getVoidKeyword_1()); \r\n match(input,13,FOLLOW_2); \r\n after(grammarAccess.getDataTypeAccess().getVoidKeyword_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "ac5f42c3679cbed145482e4f5685af41", "score": "0.5863239", "text": "public final void rule__Datasource__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:25342:1: ( ( ( rule__Datasource__TypeAlternatives_3_0 ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:25343:1: ( ( rule__Datasource__TypeAlternatives_3_0 ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:25343:1: ( ( rule__Datasource__TypeAlternatives_3_0 ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:25344:1: ( rule__Datasource__TypeAlternatives_3_0 )\n {\n before(grammarAccess.getDatasourceAccess().getTypeAlternatives_3_0()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:25345:1: ( rule__Datasource__TypeAlternatives_3_0 )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:25345:2: rule__Datasource__TypeAlternatives_3_0\n {\n pushFollow(FOLLOW_rule__Datasource__TypeAlternatives_3_0_in_rule__Datasource__TypeAssignment_357540);\n rule__Datasource__TypeAlternatives_3_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDatasourceAccess().getTypeAlternatives_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bbabb22849ffb79d98932ab12df526c5", "score": "0.5678006", "text": "public final void entryRuleDatatype() throws RecognitionException {\n try {\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:331:18: ( ruleDatatype EOF )\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:332:2: ruleDatatype EOF\n {\n markComposite(elementTypeProvider.getDatatypeElementType()); \n pushFollow(FOLLOW_ruleDatatype_in_entryRuleDatatype759);\n ruleDatatype();\n\n state._fsp--;\n\n match(input,EOF,FOLLOW_EOF_in_entryRuleDatatype762); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "14578e1e806bde982e6fb420e67cb719", "score": "0.56492305", "text": "public final void rule__ComputedDatasetField__DatatypeAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:25678:1: ( ( ruleDataType ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:25679:1: ( ruleDataType )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:25679:1: ( ruleDataType )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:25680:1: ruleDataType\n {\n before(grammarAccess.getComputedDatasetFieldAccess().getDatatypeDataTypeEnumRuleCall_2_0()); \n pushFollow(FOLLOW_ruleDataType_in_rule__ComputedDatasetField__DatatypeAssignment_258230);\n ruleDataType();\n\n state._fsp--;\n\n after(grammarAccess.getComputedDatasetFieldAccess().getDatatypeDataTypeEnumRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "929030f153c3df8fd7fb921675eaa301", "score": "0.55813795", "text": "public final void rule__ReturnType__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalTemplate.g:725:1: ( ( ruleDataType ) | ( ruleGeneric ) )\r\n int alt8=2;\r\n int LA8_0 = input.LA(1);\r\n\r\n if ( ((LA8_0>=12 && LA8_0<=13)) ) {\r\n alt8=1;\r\n }\r\n else if ( (LA8_0==RULE_ID) ) {\r\n alt8=2;\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 8, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt8) {\r\n case 1 :\r\n // InternalTemplate.g:726:2: ( ruleDataType )\r\n {\r\n // InternalTemplate.g:726:2: ( ruleDataType )\r\n // InternalTemplate.g:727:3: ruleDataType\r\n {\r\n before(grammarAccess.getReturnTypeAccess().getDataTypeParserRuleCall_0()); \r\n pushFollow(FOLLOW_2);\r\n ruleDataType();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getReturnTypeAccess().getDataTypeParserRuleCall_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalTemplate.g:732:2: ( ruleGeneric )\r\n {\r\n // InternalTemplate.g:732:2: ( ruleGeneric )\r\n // InternalTemplate.g:733:3: ruleGeneric\r\n {\r\n before(grammarAccess.getReturnTypeAccess().getGenericParserRuleCall_1()); \r\n pushFollow(FOLLOW_2);\r\n ruleGeneric();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getReturnTypeAccess().getGenericParserRuleCall_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e77edfd25798a7ebb94c1ce84f254354", "score": "0.543951", "text": "public final void rule__Axe__TypeAlternatives_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3627:1: ( ( 'linear' ) | ( 'text' ) | ( 'logarithmic' ) | ( 'date-time' ) )\n int alt9=4;\n switch ( input.LA(1) ) {\n case 17:\n {\n alt9=1;\n }\n break;\n case 18:\n {\n alt9=2;\n }\n break;\n case 19:\n {\n alt9=3;\n }\n break;\n case 20:\n {\n alt9=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n\n throw nvae;\n }\n\n switch (alt9) {\n case 1 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3628:1: ( 'linear' )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3628:1: ( 'linear' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3629:1: 'linear'\n {\n before(grammarAccess.getAxeAccess().getTypeLinearKeyword_1_0_0()); \n match(input,17,FOLLOW_17_in_rule__Axe__TypeAlternatives_1_07696); \n after(grammarAccess.getAxeAccess().getTypeLinearKeyword_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3636:6: ( 'text' )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3636:6: ( 'text' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3637:1: 'text'\n {\n before(grammarAccess.getAxeAccess().getTypeTextKeyword_1_0_1()); \n match(input,18,FOLLOW_18_in_rule__Axe__TypeAlternatives_1_07716); \n after(grammarAccess.getAxeAccess().getTypeTextKeyword_1_0_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3644:6: ( 'logarithmic' )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3644:6: ( 'logarithmic' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3645:1: 'logarithmic'\n {\n before(grammarAccess.getAxeAccess().getTypeLogarithmicKeyword_1_0_2()); \n match(input,19,FOLLOW_19_in_rule__Axe__TypeAlternatives_1_07736); \n after(grammarAccess.getAxeAccess().getTypeLogarithmicKeyword_1_0_2()); \n\n }\n\n\n }\n break;\n case 4 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3652:6: ( 'date-time' )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3652:6: ( 'date-time' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3653:1: 'date-time'\n {\n before(grammarAccess.getAxeAccess().getTypeDateTimeKeyword_1_0_3()); \n match(input,20,FOLLOW_20_in_rule__Axe__TypeAlternatives_1_07756); \n after(grammarAccess.getAxeAccess().getTypeDateTimeKeyword_1_0_3()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "35d1853011cbae5343ca1241f4506bcd", "score": "0.52343154", "text": "public final void ruleDatasetField() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:383:2: ( ( ( rule__DatasetField__Alternatives ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:384:1: ( ( rule__DatasetField__Alternatives ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:384:1: ( ( rule__DatasetField__Alternatives ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:385:1: ( rule__DatasetField__Alternatives )\n {\n before(grammarAccess.getDatasetFieldAccess().getAlternatives()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:386:1: ( rule__DatasetField__Alternatives )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:386:2: rule__DatasetField__Alternatives\n {\n pushFollow(FOLLOW_rule__DatasetField__Alternatives_in_ruleDatasetField756);\n rule__DatasetField__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDatasetFieldAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "644d40c32b74ccecb76903c29a2524a3", "score": "0.5231384", "text": "public final void ruleType() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalTemplate.g:91:2: ( ( ( rule__Type__Alternatives ) ) )\r\n // InternalTemplate.g:92:2: ( ( rule__Type__Alternatives ) )\r\n {\r\n // InternalTemplate.g:92:2: ( ( rule__Type__Alternatives ) )\r\n // InternalTemplate.g:93:3: ( rule__Type__Alternatives )\r\n {\r\n before(grammarAccess.getTypeAccess().getAlternatives()); \r\n // InternalTemplate.g:94:3: ( rule__Type__Alternatives )\r\n // InternalTemplate.g:94:4: rule__Type__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Type__Alternatives();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getTypeAccess().getAlternatives()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "1ca5c8f53e4b818566e359207fc6ea4d", "score": "0.52069664", "text": "public void setDataType(DataTypeItem dataType);", "title": "" }, { "docid": "8e9e33bed63a94239ad0ce204d4c75ae", "score": "0.51671016", "text": "public void setDataTypeExpression(Expression exp) {\n dataTypeExpression = exp;\n }", "title": "" }, { "docid": "d1fd6cf92549ea57e34b0a73a6e6e50a", "score": "0.49506128", "text": "public void setDataType(String dataType) {\n this.dataType = dataType;\n }", "title": "" }, { "docid": "9f733333d493a84690844da925c363eb", "score": "0.48752198", "text": "public final void rule__Image__TypeAlternatives_3_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3557:1: ( ( 'file' ) | ( 'url' ) )\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==15) ) {\n alt6=1;\n }\n else if ( (LA6_0==16) ) {\n alt6=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 0, input);\n\n throw nvae;\n }\n switch (alt6) {\n case 1 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3558:1: ( 'file' )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3558:1: ( 'file' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3559:1: 'file'\n {\n before(grammarAccess.getImageAccess().getTypeFileKeyword_3_0_0()); \n match(input,15,FOLLOW_15_in_rule__Image__TypeAlternatives_3_07539); \n after(grammarAccess.getImageAccess().getTypeFileKeyword_3_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3566:6: ( 'url' )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3566:6: ( 'url' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3567:1: 'url'\n {\n before(grammarAccess.getImageAccess().getTypeUrlKeyword_3_0_1()); \n match(input,16,FOLLOW_16_in_rule__Image__TypeAlternatives_3_07559); \n after(grammarAccess.getImageAccess().getTypeUrlKeyword_3_0_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e8b4e90379edbf6a158626f254ce7eda", "score": "0.48683718", "text": "public void setDataType(java.lang.String dataType) {\n this.dataType = dataType;\n }", "title": "" }, { "docid": "e7342374f4a52c5f134dd99149e4bdef", "score": "0.48425758", "text": "Type<?> getDataType();", "title": "" }, { "docid": "0501110eb52d991eea9d98ca1b36a638", "score": "0.48143736", "text": "public final void rule__DatasetField__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3441:1: ( ( ruleSimpleDatasetField ) | ( ruleComputedDatasetField ) )\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==RULE_ID) ) {\n int LA3_1 = input.LA(2);\n\n if ( (LA3_1==EOF||LA3_1==131||LA3_1==149) ) {\n alt3=1;\n }\n else if ( ((LA3_1>=125 && LA3_1<=128)) ) {\n alt3=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 1, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n switch (alt3) {\n case 1 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3442:1: ( ruleSimpleDatasetField )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3442:1: ( ruleSimpleDatasetField )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3443:1: ruleSimpleDatasetField\n {\n before(grammarAccess.getDatasetFieldAccess().getSimpleDatasetFieldParserRuleCall_0()); \n pushFollow(FOLLOW_ruleSimpleDatasetField_in_rule__DatasetField__Alternatives7253);\n ruleSimpleDatasetField();\n\n state._fsp--;\n\n after(grammarAccess.getDatasetFieldAccess().getSimpleDatasetFieldParserRuleCall_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3448:6: ( ruleComputedDatasetField )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3448:6: ( ruleComputedDatasetField )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3449:1: ruleComputedDatasetField\n {\n before(grammarAccess.getDatasetFieldAccess().getComputedDatasetFieldParserRuleCall_1()); \n pushFollow(FOLLOW_ruleComputedDatasetField_in_rule__DatasetField__Alternatives7270);\n ruleComputedDatasetField();\n\n state._fsp--;\n\n after(grammarAccess.getDatasetFieldAccess().getComputedDatasetFieldParserRuleCall_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f77d13e3be27171e6eda1fc70c2ba4e2", "score": "0.47980815", "text": "public final void ruleValignmentType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3009:1: ( ( ( rule__ValignmentType__Alternatives ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3010:1: ( ( rule__ValignmentType__Alternatives ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3010:1: ( ( rule__ValignmentType__Alternatives ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3011:1: ( rule__ValignmentType__Alternatives )\n {\n before(grammarAccess.getValignmentTypeAccess().getAlternatives()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3012:1: ( rule__ValignmentType__Alternatives )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3012:2: rule__ValignmentType__Alternatives\n {\n pushFollow(FOLLOW_rule__ValignmentType__Alternatives_in_ruleValignmentType6336);\n rule__ValignmentType__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getValignmentTypeAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ca42663dc65b26296b50c2e1af9b6302", "score": "0.47691473", "text": "public void setDataType(Type dataType) {\n\t\tthis.dataType = dataType;\n\t}", "title": "" }, { "docid": "ac284d7890a52ce49e244e53b0b691a7", "score": "0.47682565", "text": "public final void ruleType() throws RecognitionException {\n try {\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:255:9: ( ( ruleEntity | ruleDatatype ) )\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:256:2: ( ruleEntity | ruleDatatype )\n {\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:256:2: ( ruleEntity | ruleDatatype )\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==16) ) {\n alt6=1;\n }\n else if ( (LA6_0==17) ) {\n alt6=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 0, input);\n\n throw nvae;\n }\n switch (alt6) {\n case 1 :\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:257:3: ruleEntity\n {\n\n \t\t\tmarkComposite(elementTypeProvider.getType_EntityParserRuleCall_0ElementType());\n \t\t\n pushFollow(FOLLOW_ruleEntity_in_ruleType572);\n ruleEntity();\n\n state._fsp--;\n\n\n \t\t\tdoneComposite();\n \t\t\n\n }\n break;\n case 2 :\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:265:3: ruleDatatype\n {\n\n \t\t\tmarkComposite(elementTypeProvider.getType_DatatypeParserRuleCall_1ElementType());\n \t\t\n pushFollow(FOLLOW_ruleDatatype_in_ruleType592);\n ruleDatatype();\n\n state._fsp--;\n\n\n \t\t\tdoneComposite();\n \t\t\n\n }\n break;\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "cd410f137cd85ea010b2fb2c363e474a", "score": "0.47649857", "text": "public void setDataType(DataType dataType) {\n this.dataType = dataType;\n }", "title": "" }, { "docid": "38a0eaa7238c6803951aff4123b92b82", "score": "0.47389704", "text": "public final EObject entryRuleType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleType = null;\n\n\n try {\n // ../org.fuin.dsl.ddd.dsl/src-gen/org/fuin/dsl/ddd/parser/antlr/internal/InternalDomainDrivenDesignDsl.g:385:2: (iv_ruleType= ruleType EOF )\n // ../org.fuin.dsl.ddd.dsl/src-gen/org/fuin/dsl/ddd/parser/antlr/internal/InternalDomainDrivenDesignDsl.g:386:2: iv_ruleType= ruleType EOF\n {\n newCompositeNode(grammarAccess.getTypeRule()); \n pushFollow(FOLLOW_ruleType_in_entryRuleType790);\n iv_ruleType=ruleType();\n\n state._fsp--;\n\n current =iv_ruleType; \n match(input,EOF,FOLLOW_EOF_in_entryRuleType800); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "9cd6813762a8778d3bb4e3b6e2d0ee2d", "score": "0.47238147", "text": "public final void entryRuleType() throws RecognitionException {\n try {\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:249:14: ( ruleType EOF )\n // ../org.eclipse.xtext.idea.sdomain.idea/src-gen/org/eclipse/xtext/idea/sdomain/idea/parser/antlr/internal/PsiInternalSDomain.g:250:2: ruleType EOF\n {\n markComposite(elementTypeProvider.getTypeElementType()); \n pushFollow(FOLLOW_ruleType_in_entryRuleType552);\n ruleType();\n\n state._fsp--;\n\n match(input,EOF,FOLLOW_EOF_in_entryRuleType555); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "4ade15ee2dd3714939d7ca44280044d9", "score": "0.47025838", "text": "public final void rule__Image__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:26354:1: ( ( ( rule__Image__TypeAlternatives_3_0 ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:26355:1: ( ( rule__Image__TypeAlternatives_3_0 ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:26355:1: ( ( rule__Image__TypeAlternatives_3_0 ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:26356:1: ( rule__Image__TypeAlternatives_3_0 )\n {\n before(grammarAccess.getImageAccess().getTypeAlternatives_3_0()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:26357:1: ( rule__Image__TypeAlternatives_3_0 )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:26357:2: rule__Image__TypeAlternatives_3_0\n {\n pushFollow(FOLLOW_rule__Image__TypeAlternatives_3_0_in_rule__Image__TypeAssignment_359623);\n rule__Image__TypeAlternatives_3_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getImageAccess().getTypeAlternatives_3_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1fb36c8fb82764efcfdd743212a877a5", "score": "0.46863273", "text": "public final EObject entryRuleType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleType = null;\n\n\n try {\n // InternalAicdsl.g:140:45: (iv_ruleType= ruleType EOF )\n // InternalAicdsl.g:141:2: iv_ruleType= ruleType EOF\n {\n newCompositeNode(grammarAccess.getTypeRule()); \n pushFollow(FOLLOW_1);\n iv_ruleType=ruleType();\n\n state._fsp--;\n\n current =iv_ruleType; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "f90ed082555a498aefaa832b2aa73bc0", "score": "0.46841764", "text": "public final void ruleSortType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3144:1: ( ( ( rule__SortType__Alternatives ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3145:1: ( ( rule__SortType__Alternatives ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3145:1: ( ( rule__SortType__Alternatives ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3146:1: ( rule__SortType__Alternatives )\n {\n before(grammarAccess.getSortTypeAccess().getAlternatives()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3147:1: ( rule__SortType__Alternatives )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3147:2: rule__SortType__Alternatives\n {\n pushFollow(FOLLOW_rule__SortType__Alternatives_in_ruleSortType6590);\n rule__SortType__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getSortTypeAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "02d0b0a3ca118e6e0b89d9d608aa81e5", "score": "0.4671564", "text": "public static void validateData(DataType dataType, Object data) {\n switch(dataType) {\n case INT:\n Integer.valueOf((Integer) data);\n case CHAR:\n Character.valueOf((Character) data);\n case DOUBLE:\n Double.valueOf((Double) data);\n case STRING:\n String.valueOf(data);\n case BOOLEAN:\n Boolean.valueOf((Boolean) data);\n default:\n\n }\n }", "title": "" }, { "docid": "dac1bcf0ac5f0d84a991ec90ecfacdc8", "score": "0.46691918", "text": "com.blackntan.dbmssync.xsd.dbSchemaV1.CtDataType addNewDataType();", "title": "" }, { "docid": "63dc4a40befc3edb607a36b057abcdaa", "score": "0.46415094", "text": "public final void ruleType() throws RecognitionException {\n Token otherlv_0=null;\n Token lv_name_1_0=null;\n Token otherlv_2=null;\n Token otherlv_3=null;\n\n try {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:122:9: ( (otherlv_0= 'type' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'extends' ( (otherlv_3= RULE_ID ) ) ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:123:2: (otherlv_0= 'type' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'extends' ( (otherlv_3= RULE_ID ) ) )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:123:2: (otherlv_0= 'type' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'extends' ( (otherlv_3= RULE_ID ) ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:124:3: otherlv_0= 'type' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'extends' ( (otherlv_3= RULE_ID ) )\n {\n\n \t\t\tmarkLeaf(elementTypeProvider.getType_TypeKeyword_0ElementType());\n \t\t\n otherlv_0=(Token)match(input,12,FollowSets000.FOLLOW_12_in_ruleType262); \n\n \t\t\tdoneLeaf(otherlv_0);\n \t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:131:3: ( (lv_name_1_0= RULE_ID ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:132:4: (lv_name_1_0= RULE_ID )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:132:4: (lv_name_1_0= RULE_ID )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:133:5: lv_name_1_0= RULE_ID\n {\n\n \t\t\t\t\tmarkLeaf(elementTypeProvider.getType_NameIDTerminalRuleCall_1_0ElementType());\n \t\t\t\t\n lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_RULE_ID_in_ruleType289); \n\n \t\t\t\t\tdoneLeaf(lv_name_1_0);\n \t\t\t\t\n\n }\n\n\n }\n\n\n \t\t\tmarkLeaf(elementTypeProvider.getType_ExtendsKeyword_2ElementType());\n \t\t\n otherlv_2=(Token)match(input,13,FollowSets000.FOLLOW_13_in_ruleType314); \n\n \t\t\tdoneLeaf(otherlv_2);\n \t\t\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:149:3: ( (otherlv_3= RULE_ID ) )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:150:4: (otherlv_3= RULE_ID )\n {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:150:4: (otherlv_3= RULE_ID )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:151:5: otherlv_3= RULE_ID\n {\n\n \t\t\t\t\tmarkLeaf(elementTypeProvider.getType_ExtendsTypeCrossReference_3_0ElementType());\n \t\t\t\t\n otherlv_3=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_RULE_ID_in_ruleType341); \n\n \t\t\t\t\tdoneLeaf(otherlv_3);\n \t\t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "7ffe508878b758e7e28dc0b15ea0aae3", "score": "0.46385387", "text": "@Ignore\n @Test\n public void compareData() {\n typeCheckClass(\n \"\\\\data D (A : \\\\Type) | con\\n\" +\n \"\\\\function f {l : Lvl} (d : D {l} {0} (Nat)) => d\\n\" +\n \"\\\\function g {l : Lvl} (d : D {l} {inf} (Nat)) => f d\");\n }", "title": "" }, { "docid": "eb3af71d2a3edfc0356f056fbb5a5ded", "score": "0.46326876", "text": "public final void entryRuleDatasource() throws RecognitionException {\n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:203:1: ( ruleDatasource EOF )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:204:1: ruleDatasource EOF\n {\n before(grammarAccess.getDatasourceRule()); \n pushFollow(FOLLOW_ruleDatasource_in_entryRuleDatasource363);\n ruleDatasource();\n\n state._fsp--;\n\n after(grammarAccess.getDatasourceRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleDatasource370); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "a2b908167a75e0b47c73e06f74fbfb3e", "score": "0.4624649", "text": "private boolean isCorrectDataType(String data, String dataType) {\r\n GrndsTrace.enterScope(TRACE_TAG + \".isCorrectDataType\");\r\n boolean result = true;\r\n if (!\"String\".equals(dataType)) {\r\n Class dataClass = DataConverter.getJavaClass(dataType);\r\n try {\r\n java.lang.reflect.Constructor con = dataClass.getConstructor(String.class);\r\n if (con != null) {\r\n con.newInstance(data);\r\n }\r\n } catch (Exception ex) {\r\n result = false;\r\n }\r\n }\r\n GrndsTrace.exitScope(result);\r\n return result;\r\n }", "title": "" }, { "docid": "c8984a474ff6b47ebf22bb40935c2f2e", "score": "0.461298", "text": "public final EObject entryRuleType() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleType = null;\r\n\r\n\r\n try {\r\n // InternalSculpt.g:421:2: (iv_ruleType= ruleType EOF )\r\n // InternalSculpt.g:422:2: iv_ruleType= ruleType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getTypeRule()); \r\n }\r\n pushFollow(FollowSets000.FOLLOW_1);\r\n iv_ruleType=ruleType();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleType; \r\n }\r\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "bf1dc43c7c682c2cdd7341aadab3f551", "score": "0.46058565", "text": "public Expression getDataTypeExpression() {\n return dataTypeExpression;\n }", "title": "" }, { "docid": "c1f419e8c46f1901dcdbc4fcc5005d96", "score": "0.45977634", "text": "@Test\n public void testAdaptedTypes() {\n Rule rule = Grammar.AdaptedTypes;\n\n valid(rule, ADAPTED_TYPES, UIDENTIFIER);\n valid(rule, ADAPTED_TYPES, UIDENTIFIER, INTERSECTION_OP, UIDENTIFIER);\n valid(rule, ADAPTED_TYPES, UIDENTIFIER, INTERSECTION_OP, UIDENTIFIER, INTERSECTION_OP, UIDENTIFIER);\n valid(rule, ADAPTED_TYPES, UIDENTIFIER, MEMBER_OP, UIDENTIFIER, INTERSECTION_OP, UIDENTIFIER);\n }", "title": "" }, { "docid": "5f39515df2cda9be4dc0acdb411a1fee", "score": "0.45838442", "text": "public final AntlrDatatypeRuleToken ruleParameter() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token this_INT_0=null;\n Token this_DOUBLE_1=null;\n Token this_STRING_2=null;\n Token this_ID_3=null;\n\n enterRule(); \n \n try {\n // ../datasem.xtext.kanban.domainmodel/src-gen/datasem/xtext/kanban/domainmodel/parser/antlr/internal/InternalKanbanmodel.g:959:28: ( (this_INT_0= RULE_INT | this_DOUBLE_1= RULE_DOUBLE | this_STRING_2= RULE_STRING | this_ID_3= RULE_ID ) )\n // ../datasem.xtext.kanban.domainmodel/src-gen/datasem/xtext/kanban/domainmodel/parser/antlr/internal/InternalKanbanmodel.g:960:1: (this_INT_0= RULE_INT | this_DOUBLE_1= RULE_DOUBLE | this_STRING_2= RULE_STRING | this_ID_3= RULE_ID )\n {\n // ../datasem.xtext.kanban.domainmodel/src-gen/datasem/xtext/kanban/domainmodel/parser/antlr/internal/InternalKanbanmodel.g:960:1: (this_INT_0= RULE_INT | this_DOUBLE_1= RULE_DOUBLE | this_STRING_2= RULE_STRING | this_ID_3= RULE_ID )\n int alt24=4;\n switch ( input.LA(1) ) {\n case RULE_INT:\n {\n alt24=1;\n }\n break;\n case RULE_DOUBLE:\n {\n alt24=2;\n }\n break;\n case RULE_STRING:\n {\n alt24=3;\n }\n break;\n case RULE_ID:\n {\n alt24=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 24, 0, input);\n\n throw nvae;\n }\n\n switch (alt24) {\n case 1 :\n // ../datasem.xtext.kanban.domainmodel/src-gen/datasem/xtext/kanban/domainmodel/parser/antlr/internal/InternalKanbanmodel.g:960:6: this_INT_0= RULE_INT\n {\n this_INT_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleParameter1942); \n\n \t\tcurrent.merge(this_INT_0);\n \n \n newLeafNode(this_INT_0, grammarAccess.getParameterAccess().getINTTerminalRuleCall_0()); \n \n\n }\n break;\n case 2 :\n // ../datasem.xtext.kanban.domainmodel/src-gen/datasem/xtext/kanban/domainmodel/parser/antlr/internal/InternalKanbanmodel.g:968:10: this_DOUBLE_1= RULE_DOUBLE\n {\n this_DOUBLE_1=(Token)match(input,RULE_DOUBLE,FOLLOW_RULE_DOUBLE_in_ruleParameter1968); \n\n \t\tcurrent.merge(this_DOUBLE_1);\n \n \n newLeafNode(this_DOUBLE_1, grammarAccess.getParameterAccess().getDOUBLETerminalRuleCall_1()); \n \n\n }\n break;\n case 3 :\n // ../datasem.xtext.kanban.domainmodel/src-gen/datasem/xtext/kanban/domainmodel/parser/antlr/internal/InternalKanbanmodel.g:976:10: this_STRING_2= RULE_STRING\n {\n this_STRING_2=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleParameter1994); \n\n \t\tcurrent.merge(this_STRING_2);\n \n \n newLeafNode(this_STRING_2, grammarAccess.getParameterAccess().getSTRINGTerminalRuleCall_2()); \n \n\n }\n break;\n case 4 :\n // ../datasem.xtext.kanban.domainmodel/src-gen/datasem/xtext/kanban/domainmodel/parser/antlr/internal/InternalKanbanmodel.g:984:10: this_ID_3= RULE_ID\n {\n this_ID_3=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleParameter2020); \n\n \t\tcurrent.merge(this_ID_3);\n \n \n newLeafNode(this_ID_3, grammarAccess.getParameterAccess().getIDTerminalRuleCall_3()); \n \n\n }\n break;\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "b9ade71eaeac7675c9b2fc8e850809c4", "score": "0.45831108", "text": "public void setDataType(String dataType) {\n this.dataType = dataType == null ? null : dataType.trim();\n }", "title": "" }, { "docid": "4619999930d7f925e11771a1e433653d", "score": "0.45616403", "text": "public interface DataType extends AgnosticConstruct {\n\n /**\n * Name of this type, used to compare to other types\n *\n * @return The vendor agnostic type name\n */\n String getAgnosticName();\n\n static DataType time() {\n return DataTypeImpl.create(\"time\", Internal.asConstructs());\n }\n\n static DataType doublenic() {\n return DataTypeImpl.create(\"doublenic\", Internal.asConstructs());\n }\n\n static DataType decimal() {\n return DataTypeImpl.create(\"decimal\", Internal.asConstructs());\n }\n\n static DataType bigInteger() {\n return DataTypeImpl.create(\"bigint\", Internal.asConstructs());\n }\n\n static DataType timestamp() {\n return DataTypeImpl.create(\"timestamp\", Internal.asConstructs());\n }\n\n static DataType integer() {\n return DataTypeImpl.create(\"integer\", Internal.asConstructs());\n }\n\n static DataType fk() {\n return DataTypeImpl.create(\"fk\", Internal.asConstructs());\n }\n\n static DataType pk() {\n return DataTypeImpl.create(\"pk\", Internal.asConstructs());\n }\n\n static DataType shortString() {\n return DataTypeImpl.create(\"shortstring\", Internal.asConstructs());\n }\n\n static DataType largeText() {\n return DataTypeImpl.create(\"largetext\", Internal.asConstructs());\n }\n\n static DataType limitedText(int maximumSize) {\n return DataTypeImpl.create(\"limitedtext\", Internal.asConstructs(maximumSize));\n }\n\n static DataType date() {\n return DataTypeImpl.create(\"date\", Internal.asConstructs());\n }\n\n static DataType booleanic() {\n return DataTypeImpl.create(\"booleanic\", Internal.asConstructs());\n }\n\n static DataType blob() {\n return DataTypeImpl.create(\"blob\", Internal.asConstructs());\n }\n\n static DataType clob() {\n return DataTypeImpl.create(\"clob\", Internal.asConstructs());\n }\n\n}", "title": "" }, { "docid": "646acbd2e504617283abe004b0f23fac", "score": "0.45538333", "text": "public final void entryRuleType() throws RecognitionException {\n try {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:116:14: ( ruleType EOF )\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/linking/idea/parser/antlr/internal/PsiInternalImportUriTestLanguage.g:117:2: ruleType EOF\n {\n markComposite(elementTypeProvider.getTypeElementType()); \n pushFollow(FollowSets000.FOLLOW_ruleType_in_entryRuleType240);\n ruleType();\n\n state._fsp--;\n\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleType243); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "98e1b442909d498a3383046a8ab087a3", "score": "0.4551935", "text": "public final void ruleMelodyNoteType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGuardin.g:555:1: ( ( ( rule__MelodyNoteType__Alternatives ) ) )\n // InternalGuardin.g:556:2: ( ( rule__MelodyNoteType__Alternatives ) )\n {\n // InternalGuardin.g:556:2: ( ( rule__MelodyNoteType__Alternatives ) )\n // InternalGuardin.g:557:3: ( rule__MelodyNoteType__Alternatives )\n {\n before(grammarAccess.getMelodyNoteTypeAccess().getAlternatives()); \n // InternalGuardin.g:558:3: ( rule__MelodyNoteType__Alternatives )\n // InternalGuardin.g:558:4: rule__MelodyNoteType__Alternatives\n {\n pushFollow(FOLLOW_2);\n rule__MelodyNoteType__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getMelodyNoteTypeAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "72a9ca969a9de8062a0e2e7c35ad1e7a", "score": "0.45445138", "text": "public void setDatatype(String datatype) {\n this.datatype = datatype;\n }", "title": "" }, { "docid": "27eabb3ada025cfafd4cdaf45227eb54", "score": "0.4543439", "text": "public void setDataType(String dataType){\n\n }", "title": "" }, { "docid": "c5e59ace3769541eae7a31344ae155d1", "score": "0.45383218", "text": "public final void rule__Type__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalTemplate.g:581:1: ( ( ruleInclude ) | ( ruleNamespace ) | ( ruleFunction ) )\r\n int alt2=3;\r\n switch ( input.LA(1) ) {\r\n case 16:\r\n {\r\n alt2=1;\r\n }\r\n break;\r\n case 19:\r\n {\r\n alt2=2;\r\n }\r\n break;\r\n case RULE_ID:\r\n case 12:\r\n case 13:\r\n {\r\n alt2=3;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt2) {\r\n case 1 :\r\n // InternalTemplate.g:582:2: ( ruleInclude )\r\n {\r\n // InternalTemplate.g:582:2: ( ruleInclude )\r\n // InternalTemplate.g:583:3: ruleInclude\r\n {\r\n before(grammarAccess.getTypeAccess().getIncludeParserRuleCall_0()); \r\n pushFollow(FOLLOW_2);\r\n ruleInclude();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getTypeAccess().getIncludeParserRuleCall_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalTemplate.g:588:2: ( ruleNamespace )\r\n {\r\n // InternalTemplate.g:588:2: ( ruleNamespace )\r\n // InternalTemplate.g:589:3: ruleNamespace\r\n {\r\n before(grammarAccess.getTypeAccess().getNamespaceParserRuleCall_1()); \r\n pushFollow(FOLLOW_2);\r\n ruleNamespace();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getTypeAccess().getNamespaceParserRuleCall_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalTemplate.g:594:2: ( ruleFunction )\r\n {\r\n // InternalTemplate.g:594:2: ( ruleFunction )\r\n // InternalTemplate.g:595:3: ruleFunction\r\n {\r\n before(grammarAccess.getTypeAccess().getFunctionParserRuleCall_2()); \r\n pushFollow(FOLLOW_2);\r\n ruleFunction();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getTypeAccess().getFunctionParserRuleCall_2()); \r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d659d2c7cf7e0508057abebffed98eda", "score": "0.4533074", "text": "public DataTypeItem getDataType();", "title": "" }, { "docid": "9fc93e08919b22b4cfb9399ca73f5e24", "score": "0.45302445", "text": "public interface a<Data> {\n Class<Data> ad();\n\n void h(Data data) throws IOException;\n\n Data m(String str) throws IllegalArgumentException;\n }", "title": "" }, { "docid": "e757f1bb1c9b880e31ab53458aacf43b", "score": "0.45215806", "text": "public Type getDataType() {\n\t\treturn dataType;\n\t}", "title": "" }, { "docid": "756b3114b9f5526d68391a044c9b2c8a", "score": "0.45153838", "text": "public void addDataTypeName(String dataTypeName)\r\n {\r\n if (dataTypeName != null && dataTypeName.trim().length() > 0)\r\n {\r\n _dataTypeNames.add(dataTypeName);\r\n }\r\n }", "title": "" }, { "docid": "66919d727e2e34449d83fa71ae746dbf", "score": "0.4505617", "text": "public final void mT__40() throws RecognitionException {\n try {\n int _type = T__40;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMDML.g:40:7: ( 'datatype' )\n // InternalMDML.g:40:9: 'datatype'\n {\n match(\"datatype\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "f036dfea036953662fdff4603d4a4312", "score": "0.45026714", "text": "@Override\n\tpublic int getDataType()\n\t{\n\t\treturn dataType;\n\t}", "title": "" }, { "docid": "601eb8aa92c17c39c1cfdec9980d4226", "score": "0.44976985", "text": "public interface BuiltInDataType extends DataType {\r\n}", "title": "" }, { "docid": "8e86ef4bcc344289e307c4c4b5141b21", "score": "0.44823104", "text": "public void setDataType(String newType)\r\n {\r\n dataType = newType;\r\n }", "title": "" }, { "docid": "129c6bebcb6de66121f89d21604603d1", "score": "0.4478635", "text": "com.blackntan.dbmssync.xsd.dbSchemaV1.CtDataType getDataType();", "title": "" }, { "docid": "b429e2531e3a7b623f69f739ff8747b4", "score": "0.44778836", "text": "public final void ruleChartWithAxesType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:2873:1: ( ( ( rule__ChartWithAxesType__Alternatives ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:2874:1: ( ( rule__ChartWithAxesType__Alternatives ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:2874:1: ( ( rule__ChartWithAxesType__Alternatives ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:2875:1: ( rule__ChartWithAxesType__Alternatives )\n {\n before(grammarAccess.getChartWithAxesTypeAccess().getAlternatives()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:2876:1: ( rule__ChartWithAxesType__Alternatives )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:2876:2: rule__ChartWithAxesType__Alternatives\n {\n pushFollow(FOLLOW_rule__ChartWithAxesType__Alternatives_in_ruleChartWithAxesType6079);\n rule__ChartWithAxesType__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getChartWithAxesTypeAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "53a44d013f708b5bc45d1ff131ae830e", "score": "0.44777167", "text": "public final void entryRulexData() throws RecognitionException {\n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:851:1: ( rulexData EOF )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:852:1: rulexData EOF\n {\n before(grammarAccess.getXDataRule()); \n pushFollow(FOLLOW_rulexData_in_entryRulexData1747);\n rulexData();\n\n state._fsp--;\n\n after(grammarAccess.getXDataRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRulexData1754); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "dcdb079db0d3a0476951c240cb98b52b", "score": "0.44770104", "text": "public final void ruleDatasourceSample() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:243:2: ( ( ( rule__DatasourceSample__TypeAssignment ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:244:1: ( ( rule__DatasourceSample__TypeAssignment ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:244:1: ( ( rule__DatasourceSample__TypeAssignment ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:245:1: ( rule__DatasourceSample__TypeAssignment )\n {\n before(grammarAccess.getDatasourceSampleAccess().getTypeAssignment()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:246:1: ( rule__DatasourceSample__TypeAssignment )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:246:2: rule__DatasourceSample__TypeAssignment\n {\n pushFollow(FOLLOW_rule__DatasourceSample__TypeAssignment_in_ruleDatasourceSample456);\n rule__DatasourceSample__TypeAssignment();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDatasourceSampleAccess().getTypeAssignment()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ae3b627eab34b7acbae27cab5dd06acd", "score": "0.44761845", "text": "public final void rule__Datasource__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:6020:1: ( ( 'type' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:6021:1: ( 'type' )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:6021:1: ( 'type' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:6022:1: 'type'\n {\n before(grammarAccess.getDatasourceAccess().getTypeKeyword_2()); \n match(input,136,FOLLOW_136_in_rule__Datasource__Group__2__Impl13289); \n after(grammarAccess.getDatasourceAccess().getTypeKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "40264de78cb7f7bc8c9a85938a9660d2", "score": "0.44720814", "text": "public String getDataType() {\n\treturn dataType;\n }", "title": "" }, { "docid": "0f921eb3e1d39a8844e4cd26745da40b", "score": "0.44639474", "text": "public Builder setDataType(MyActionMessageProto.MyActionMessage.DataType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n dataType_ = value.getNumber();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "49a9ae7b8a127fbb1fb4d34396cf95d8", "score": "0.4455921", "text": "public final void rule__Datasource__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:6050:1: ( ( ( rule__Datasource__TypeAssignment_3 ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:6051:1: ( ( rule__Datasource__TypeAssignment_3 ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:6051:1: ( ( rule__Datasource__TypeAssignment_3 ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:6052:1: ( rule__Datasource__TypeAssignment_3 )\n {\n before(grammarAccess.getDatasourceAccess().getTypeAssignment_3()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:6053:1: ( rule__Datasource__TypeAssignment_3 )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:6053:2: rule__Datasource__TypeAssignment_3\n {\n pushFollow(FOLLOW_rule__Datasource__TypeAssignment_3_in_rule__Datasource__Group__3__Impl13347);\n rule__Datasource__TypeAssignment_3();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDatasourceAccess().getTypeAssignment_3()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4ab6f9edee8dcddc634d80382584e5e3", "score": "0.44555107", "text": "public final EObject entryRuleparameter_type_list() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleparameter_type_list = null;\n\n\n try {\n // InternalMyDsl.g:1372:60: (iv_ruleparameter_type_list= ruleparameter_type_list EOF )\n // InternalMyDsl.g:1373:2: iv_ruleparameter_type_list= ruleparameter_type_list EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getParameter_type_listRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleparameter_type_list=ruleparameter_type_list();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleparameter_type_list; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "title": "" }, { "docid": "efdf9b95f6638e53d45507a9b714b516", "score": "0.4451443", "text": "String getDataType();", "title": "" }, { "docid": "6c7ee8a496bc6e0842c33d8659723752", "score": "0.4445846", "text": "public final void entryRuleDataset() throws RecognitionException {\n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:343:1: ( ruleDataset EOF )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:344:1: ruleDataset EOF\n {\n before(grammarAccess.getDatasetRule()); \n pushFollow(FOLLOW_ruleDataset_in_entryRuleDataset663);\n ruleDataset();\n\n state._fsp--;\n\n after(grammarAccess.getDatasetRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleDataset670); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "7b54db64159746c2b50d970a208ce9cc", "score": "0.44455877", "text": "public String getDataType()\r\n {\r\n return dataType;\r\n }", "title": "" }, { "docid": "9e265776fd92e85d7fd7e710d5124581", "score": "0.4442746", "text": "public final EObject entryRuleTypeDefinition() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleTypeDefinition = null;\r\n\r\n\r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.model/src-gen/org/ow2/mindEd/idt/editor/textual/parser/antlr/internal/InternalFractalIdt.g:236:2: (iv_ruleTypeDefinition= ruleTypeDefinition EOF )\r\n // ../org.ow2.mindEd.idt.editor.textual.model/src-gen/org/ow2/mindEd/idt/editor/textual/parser/antlr/internal/InternalFractalIdt.g:237:2: iv_ruleTypeDefinition= ruleTypeDefinition EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getTypeDefinitionRule()); \r\n }\r\n pushFollow(FollowSets000.FOLLOW_ruleTypeDefinition_in_entryRuleTypeDefinition386);\r\n iv_ruleTypeDefinition=ruleTypeDefinition();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleTypeDefinition; \r\n }\r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleTypeDefinition396); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "title": "" }, { "docid": "8a7de76e235a0e7e1646ccd7abe0b023", "score": "0.4441067", "text": "public DataType getDataType(){\r\n\t\treturn type;\r\n\t}", "title": "" }, { "docid": "70e38f289b553bfb10b9b5aeaa08311d", "score": "0.44338033", "text": "public Builder setDataType(stream_executor.dnn.Dnn.DataType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n dataType_ = value.getNumber();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9f8905f450e6ab4228e88132ca54e1cb", "score": "0.44301167", "text": "public void setSDataType(CharSequence value) {\n this.sDataType = value;\n }", "title": "" }, { "docid": "7ada9ec9d3897d4d6111e24d5302116c", "score": "0.44157046", "text": "public boolean applyRule(DataNode dataNode) throws ParseException {\n\n boolean res = true;\n if(StringUtils.equalsIgnoreCase(dataNode.getValueType(),\"String\") && StringUtils.isAlpha(comparatorValue.get(0))) {\n switch (operator) {\n case EQUAL: res = StringUtils.equalsIgnoreCase((String)dataNode.getValue(),comparatorValue.get(0)); break;\n case NOT_EQUAL: res = StringUtils.equalsIgnoreCase((String)dataNode.getValue(),comparatorValue.get(0)); break;\n }\n } else if(StringUtils.equalsIgnoreCase(dataNode.getValueType(),\"Datetime\") && comparatorValue.get(0).contains(\"-\")) {\n\n Date signalDate = (Date)dataNode.getValue();\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n Date comparatorDate = formatter.parse(comparatorValue.get(0));\n //System.out.println(\"Applying date rule to signal:\" + signalDate + \" and comp: \" + comparatorDate);\n switch (operator) {\n case GREATER_THAN: res = signalDate.after(comparatorDate); break;\n case LESSER_THAN: res = signalDate.before(comparatorDate); break;\n case EQUAL: res = signalDate.equals(comparatorDate); break;\n case NOT_EQUAL: res = !signalDate.equals(comparatorDate); break;\n case LESS_THAN_EQUAL: res = signalDate.before(comparatorDate) || signalDate.equals(comparatorDate); break;\n case GREATER_THAN_EQUAL: res = signalDate.after(comparatorDate) || signalDate.equals(comparatorDate); break;\n }\n } else if(StringUtils.equalsIgnoreCase(dataNode.getValueType(),\"Integer\") && StringUtils.isNumeric(comparatorValue.get(0).replace(\".\",\"\"))) {\n\n float signalInt = (Float)dataNode.getValue();\n float comparatorInt = Float.parseFloat(comparatorValue.get(0));\n //System.out.println(\"Applying float rule to signal:\" + signalInt + \" and comp: \" + comparatorInt);\n switch (operator) {\n case GREATER_THAN: res = signalInt > comparatorInt; break;\n case LESSER_THAN: res = signalInt < comparatorInt; break;\n case EQUAL: res = signalInt == comparatorInt; break;\n case NOT_EQUAL: res = signalInt != comparatorInt; break;\n case LESS_THAN_EQUAL: res = signalInt <= comparatorInt; break;\n case GREATER_THAN_EQUAL: res = signalInt >= comparatorInt; break;\n }\n }\n return res;\n }", "title": "" }, { "docid": "714f47e3537b7348f6c03264d6a2cb9d", "score": "0.44091398", "text": "public String getDataType() {\n return dataType;\n }", "title": "" }, { "docid": "51faf9afa061c4a6a88fb199b348e78d", "score": "0.44030178", "text": "public void visualizeData(String type, Data data);", "title": "" }, { "docid": "72bdc3194af6d71edf82e42815f5c88c", "score": "0.43968675", "text": "public DataType combineType(Data other) {\n\t\treturn combineType(other.typ);\n\t}", "title": "" }, { "docid": "bdd236a2acec798cf6244a91ff96ed12", "score": "0.43956417", "text": "public final void rule__ParameterValueType__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5188:1: ( ( ( 'dynamic' ) ) | ( ( 'static' ) ) )\n int alt56=2;\n int LA56_0 = input.LA(1);\n\n if ( (LA56_0==111) ) {\n alt56=1;\n }\n else if ( (LA56_0==112) ) {\n alt56=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 56, 0, input);\n\n throw nvae;\n }\n switch (alt56) {\n case 1 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5189:1: ( ( 'dynamic' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5189:1: ( ( 'dynamic' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5190:1: ( 'dynamic' )\n {\n before(grammarAccess.getParameterValueTypeAccess().getDynamicEnumLiteralDeclaration_0()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5191:1: ( 'dynamic' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5191:3: 'dynamic'\n {\n match(input,111,FOLLOW_111_in_rule__ParameterValueType__Alternatives11547); \n\n }\n\n after(grammarAccess.getParameterValueTypeAccess().getDynamicEnumLiteralDeclaration_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5196:6: ( ( 'static' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5196:6: ( ( 'static' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5197:1: ( 'static' )\n {\n before(grammarAccess.getParameterValueTypeAccess().getStaticEnumLiteralDeclaration_1()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5198:1: ( 'static' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:5198:3: 'static'\n {\n match(input,112,FOLLOW_112_in_rule__ParameterValueType__Alternatives11568); \n\n }\n\n after(grammarAccess.getParameterValueTypeAccess().getStaticEnumLiteralDeclaration_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e7bd8258ec75def96185ddc92ed82f33", "score": "0.4394604", "text": "public final String entryRuleNameType() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleNameType = null;\n\n\n try {\n // ../at.ac.tuwien.big.xmltext.library3/src-gen/at/ac/tuwien/big/xmltext/library3/parser/antlr/internal/InternalLibrary3.g:470:2: (iv_ruleNameType= ruleNameType EOF )\n // ../at.ac.tuwien.big.xmltext.library3/src-gen/at/ac/tuwien/big/xmltext/library3/parser/antlr/internal/InternalLibrary3.g:471:2: iv_ruleNameType= ruleNameType EOF\n {\n newCompositeNode(grammarAccess.getNameTypeRule()); \n pushFollow(FollowSets000.FOLLOW_ruleNameType_in_entryRuleNameType905);\n iv_ruleNameType=ruleNameType();\n\n state._fsp--;\n\n current =iv_ruleNameType.getText(); \n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleNameType916); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "ec721f1107ad55ecf376b57bc06d2aaa", "score": "0.4392014", "text": "@Override\n\tpublic DataType getDataType() {\n return dataType;\n }", "title": "" }, { "docid": "4a7c0c78a2dc6e43f8f37bd771c58749", "score": "0.43917963", "text": "public final void ruleParameterType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3226:1: ( ( ( rule__ParameterType__Alternatives ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3227:1: ( ( rule__ParameterType__Alternatives ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3227:1: ( ( rule__ParameterType__Alternatives ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3228:1: ( rule__ParameterType__Alternatives )\n {\n before(grammarAccess.getParameterTypeAccess().getAlternatives()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3229:1: ( rule__ParameterType__Alternatives )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3229:2: rule__ParameterType__Alternatives\n {\n pushFollow(FOLLOW_rule__ParameterType__Alternatives_in_ruleParameterType6740);\n rule__ParameterType__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getParameterTypeAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e68d8ee30fcf7bfe8153a7fa4c1cdb7e", "score": "0.43900943", "text": "public final void entryRuleDataSource() throws RecognitionException {\r\n try {\r\n // InternalMyACDSL.g:279:1: ( ruleDataSource EOF )\r\n // InternalMyACDSL.g:280:1: ruleDataSource EOF\r\n {\r\n before(grammarAccess.getDataSourceRule()); \r\n pushFollow(FOLLOW_1);\r\n ruleDataSource();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getDataSourceRule()); \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "65b75c8126080b471d2ef3ede92a751a", "score": "0.43890384", "text": "public final void ruleInstruction() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalSuricate.g:141:2: ( ( ( rule__Instruction__Alternatives ) ) )\r\n // InternalSuricate.g:142:2: ( ( rule__Instruction__Alternatives ) )\r\n {\r\n // InternalSuricate.g:142:2: ( ( rule__Instruction__Alternatives ) )\r\n // InternalSuricate.g:143:3: ( rule__Instruction__Alternatives )\r\n {\r\n before(grammarAccess.getInstructionAccess().getAlternatives()); \r\n // InternalSuricate.g:144:3: ( rule__Instruction__Alternatives )\r\n // InternalSuricate.g:144:4: rule__Instruction__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Instruction__Alternatives();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getInstructionAccess().getAlternatives()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "4069b484ebd56583d0df911506378f8c", "score": "0.4377516", "text": "void setDataType(com.blackntan.dbmssync.xsd.dbSchemaV1.CtDataType dataType);", "title": "" }, { "docid": "9ca0f96301a2920a951befb557ed935a", "score": "0.43711814", "text": "public final void entryRuleType() throws RecognitionException {\r\n try {\r\n // InternalTemplate.g:79:1: ( ruleType EOF )\r\n // InternalTemplate.g:80:1: ruleType EOF\r\n {\r\n before(grammarAccess.getTypeRule()); \r\n pushFollow(FOLLOW_1);\r\n ruleType();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getTypeRule()); \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8a1b1e171299cfabbd52346f4e15986b", "score": "0.43616414", "text": "public DataType getDataType();", "title": "" }, { "docid": "aba15072085cd911af132c3e4862c8fa", "score": "0.43591383", "text": "@Override\n\tpublic DataType guessDataType() {\n return DataType.guessDataType(sequenceString.toString());\n }", "title": "" }, { "docid": "e811ddbbf42d3c3e7529c3c4e3158f45", "score": "0.43577254", "text": "public void setDataType(int paraDataType) {\n\t\tdataType = paraDataType;\n\t}", "title": "" }, { "docid": "14986e3c847210c4bb307e86146852a6", "score": "0.43468687", "text": "public interface DataTypeProvider{\n\t\n\t/**\n\t * Returns the <tt>DataType</tt> object for the given Java <tt>Class</tt>\n\t * instance. The object returned has to be the one that an instance of the\n\t * given <tt>Class</tt> would return from it's <tt>getDataType()</tt>\n\t * method. Naturally, the given <tt>Class</tt> has to be an implementation\n\t * of <tt>DataObject</tt> interface.\n\t * \n\t * @param clazz See above.\n\t * @return See above.\n\t */\n\tpublic DataType getDataType(Class<?> clazz);\n\t\n\t/**\n\t * Returns the <tt>DataType</tt> object for the given <tt>DataType</tt>\n\t * name. The object returned has to be the one that will return\n\t * <tt>String</tt> from it's <tt>name()</tt> that is equal to the parameter\n\t * passed to this method.\n\t * \n\t * @param name See above.\n\t * @return See above.\n\t */\n\tpublic DataType getDataType(String name);\n}", "title": "" }, { "docid": "686cff42c43f1b21d01d7f66a08979e0", "score": "0.43384263", "text": "public TypeGuessResult(Asn1Type type, T data)\n {\n this.type = type;\n this.data = data;\n }", "title": "" }, { "docid": "d0b52439a342be3b3c0e1916306e298c", "score": "0.43351215", "text": "public final void ruleDisplayType() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3047:1: ( ( ( rule__DisplayType__Alternatives ) ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3048:1: ( ( rule__DisplayType__Alternatives ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3048:1: ( ( rule__DisplayType__Alternatives ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3049:1: ( rule__DisplayType__Alternatives )\n {\n before(grammarAccess.getDisplayTypeAccess().getAlternatives()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3050:1: ( rule__DisplayType__Alternatives )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:3050:2: rule__DisplayType__Alternatives\n {\n pushFollow(FOLLOW_rule__DisplayType__Alternatives_in_ruleDisplayType6408);\n rule__DisplayType__Alternatives();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDisplayTypeAccess().getAlternatives()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d64477efc1a703bcee9b2cb834989e3b", "score": "0.43303117", "text": "public String getDataType() {\n return this.dataType;\n }", "title": "" }, { "docid": "2a246433d78b90d5a04b5bc89025e921", "score": "0.43283546", "text": "protected DataType resolveDataTypeDeclaration(\r\n\t\t\tCompilationUnit compilationUnit,\r\n\t\t\tDataTypeDeclaration dataTypeDeclaration) {\r\n\t\tif (dataTypeDeclaration.dataType != null) { // already done in pass 3\r\n\t\t\treturn dataTypeDeclaration.dataType;\r\n\t\t}\r\n\t\tswitch (dataTypeDeclaration.primitiveTypeToken) {\r\n\t\tcase ByteToken:\r\n\t\tcase CharToken:\r\n\t\tcase DoubleToken:\r\n\t\tcase FloatToken:\r\n\t\tcase IntToken:\r\n\t\tcase LongToken:\r\n\t\tcase ShortToken:\r\n\t\tcase BooleanToken:\r\n\t\tcase VoidToken:\r\n\t\t\treturn dataTypeDeclaration.dataType = PrimitiveType.forToken(\r\n\t\t\t\t\tdataTypeDeclaration.primitiveTypeToken).makeArray(\r\n\t\t\t\t\tdataTypeDeclaration.noOfArrayDimensions);\r\n\t\t}\r\n\t\tClassType result = null;\r\n\t\tif (dataTypeDeclaration.nameComponents == null) {\r\n\t\t\tresult = resolveClassNameWithoutSlashes(compilationUnit,\r\n\t\t\t\t\tdataTypeDeclaration.name, true);\r\n\t\t} else {\r\n\t\t\tString name = dataTypeDeclaration.nameComponents.get(0);\r\n\t\t\tresult = resolveClassNameWithoutSlashes(compilationUnit, name, true);\r\n\r\n\t\t\tfor (int i = 1;; i++) {\r\n\r\n\t\t\t\tif (result != null) {\r\n\t\t\t\t\t// the start is there. Now the rest should also come...\r\n\t\t\t\t\tfor (; i < dataTypeDeclaration.nameComponents.size(); i++) {\r\n\t\t\t\t\t\tname = dataTypeDeclaration.nameComponents.get(i);\r\n\r\n\t\t\t\t\t\t// // @#$@#$ nestedClassesByName WAS not filled from\r\n\t\t\t\t\t\t// class files !!! ERROR\r\n\t\t\t\t\t\tClassType nestedClass = (ClassType) result.nestedClassesByName\r\n\t\t\t\t\t\t\t\t.get(name);\r\n\t\t\t\t\t\tif (nestedClass == null) {\r\n\t\t\t\t\t\t\tparserError(2, \"Class or interface \"\r\n\t\t\t\t\t\t\t\t\t+ result.nameWithDots\r\n\t\t\t\t\t\t\t\t\t+ \" does not contain type \" + name,\r\n\t\t\t\t\t\t\t\t\tcompilationUnit,\r\n\t\t\t\t\t\t\t\t\tdataTypeDeclaration.nameStartPosition,\r\n\t\t\t\t\t\t\t\t\tdataTypeDeclaration.nameEndPosition);\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tresult = nestedClass;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif (i >= dataTypeDeclaration.nameComponents.size()) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tname += '.' + dataTypeDeclaration.nameComponents.get(i);\r\n\t\t\t\tresult = resolveClassNameWithDots(name, true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (result == null) {\r\n\t\t\tparserError(3, \"Class \" + dataTypeDeclaration.name\r\n\t\t\t\t\t+ \" cannot be resolved\", compilationUnit,\r\n\t\t\t\t\tdataTypeDeclaration.nameStartPosition,\r\n\t\t\t\t\tdataTypeDeclaration.nameEndPosition);\r\n\t\t\tresult = new UnresolvedClassOrInterfaceType();\r\n\t\t}\r\n\t\treturn dataTypeDeclaration.dataType = result\r\n\t\t\t\t.makeArray(dataTypeDeclaration.noOfArrayDimensions);\r\n\t}", "title": "" }, { "docid": "e99948a4be659e4f558df64e58151f71", "score": "0.43254018", "text": "public Builder type(DataType dataType);", "title": "" }, { "docid": "e5c1f2b7b824095679f55e19f1f85f3c", "score": "0.43109024", "text": "public Builder setSDataType(CharSequence value) {\n validate(fields()[6], value);\n this.sDataType = value;\n fieldSetFlags()[6] = true;\n return this; \n }", "title": "" }, { "docid": "a316e333fd03e32d1dc75f7625d676e8", "score": "0.43063244", "text": "public Builder setDataType(com.netty.protobuf.Message.OneOfMessage.dataType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n dataType_ = value.getNumber();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1e0ad73d45e44e1d9ffce1d58ed61f50", "score": "0.42930537", "text": "public void setDatatype(final String datatype) {\n this.datatype = datatype;\n }", "title": "" }, { "docid": "b8e8be919624ef55c59e3e336b08104f", "score": "0.42910278", "text": "public String getDataTypeOfThisElement(String dataElement) {\n String theDataType = \"\";\r\n if (DataUtilities.stringIsADouble(dataElement) == true) {\r\n //System.out.println(\"244 cd, data is real\");\r\n theDataType = \"real\";\r\n return theDataType;\r\n }\r\n else\r\n if ( dataElement.equals(\"categorical\")) {\r\n //System.out.println(\"250 cd, data is categorical\");\r\n return \"categorical\";\r\n }\r\n else {\r\n return \"missing\";\r\n }\r\n }", "title": "" }, { "docid": "c3088a54ef931c6b0d27f443a8c43716", "score": "0.42879367", "text": "public final void rule__ValignmentType__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4699:1: ( ( ( 'bottom' ) ) | ( ( 'middle' ) ) | ( ( 'top' ) ) )\n int alt46=3;\n switch ( input.LA(1) ) {\n case 28:\n {\n alt46=1;\n }\n break;\n case 27:\n {\n alt46=2;\n }\n break;\n case 26:\n {\n alt46=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 46, 0, input);\n\n throw nvae;\n }\n\n switch (alt46) {\n case 1 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4700:1: ( ( 'bottom' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4700:1: ( ( 'bottom' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4701:1: ( 'bottom' )\n {\n before(grammarAccess.getValignmentTypeAccess().getBottomEnumLiteralDeclaration_0()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4702:1: ( 'bottom' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4702:3: 'bottom'\n {\n match(input,28,FOLLOW_28_in_rule__ValignmentType__Alternatives10238); \n\n }\n\n after(grammarAccess.getValignmentTypeAccess().getBottomEnumLiteralDeclaration_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4707:6: ( ( 'middle' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4707:6: ( ( 'middle' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4708:1: ( 'middle' )\n {\n before(grammarAccess.getValignmentTypeAccess().getMiddleEnumLiteralDeclaration_1()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4709:1: ( 'middle' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4709:3: 'middle'\n {\n match(input,27,FOLLOW_27_in_rule__ValignmentType__Alternatives10259); \n\n }\n\n after(grammarAccess.getValignmentTypeAccess().getMiddleEnumLiteralDeclaration_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4714:6: ( ( 'top' ) )\n {\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4714:6: ( ( 'top' ) )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4715:1: ( 'top' )\n {\n before(grammarAccess.getValignmentTypeAccess().getTopEnumLiteralDeclaration_2()); \n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4716:1: ( 'top' )\n // ../org.xtext.example.myrdsl.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalRDsl.g:4716:3: 'top'\n {\n match(input,26,FOLLOW_26_in_rule__ValignmentType__Alternatives10280); \n\n }\n\n after(grammarAccess.getValignmentTypeAccess().getTopEnumLiteralDeclaration_2()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "834a5d7fd8ea84b79ccefe48b03a1527", "score": "0.42868835", "text": "public final void rule__MelodyNoteType__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalGuardin.g:981:1: ( ( ( 'A' ) ) | ( ( 'B' ) ) | ( ( 'C' ) ) | ( ( 'D' ) ) | ( ( 'E' ) ) | ( ( 'F' ) ) | ( ( 'G' ) ) )\n int alt16=7;\n switch ( input.LA(1) ) {\n case 32:\n {\n alt16=1;\n }\n break;\n case 33:\n {\n alt16=2;\n }\n break;\n case 34:\n {\n alt16=3;\n }\n break;\n case 35:\n {\n alt16=4;\n }\n break;\n case 36:\n {\n alt16=5;\n }\n break;\n case 37:\n {\n alt16=6;\n }\n break;\n case 38:\n {\n alt16=7;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 16, 0, input);\n\n throw nvae;\n }\n\n switch (alt16) {\n case 1 :\n // InternalGuardin.g:982:2: ( ( 'A' ) )\n {\n // InternalGuardin.g:982:2: ( ( 'A' ) )\n // InternalGuardin.g:983:3: ( 'A' )\n {\n before(grammarAccess.getMelodyNoteTypeAccess().getAEnumLiteralDeclaration_0()); \n // InternalGuardin.g:984:3: ( 'A' )\n // InternalGuardin.g:984:4: 'A'\n {\n match(input,32,FOLLOW_2); \n\n }\n\n after(grammarAccess.getMelodyNoteTypeAccess().getAEnumLiteralDeclaration_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // InternalGuardin.g:988:2: ( ( 'B' ) )\n {\n // InternalGuardin.g:988:2: ( ( 'B' ) )\n // InternalGuardin.g:989:3: ( 'B' )\n {\n before(grammarAccess.getMelodyNoteTypeAccess().getBEnumLiteralDeclaration_1()); \n // InternalGuardin.g:990:3: ( 'B' )\n // InternalGuardin.g:990:4: 'B'\n {\n match(input,33,FOLLOW_2); \n\n }\n\n after(grammarAccess.getMelodyNoteTypeAccess().getBEnumLiteralDeclaration_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // InternalGuardin.g:994:2: ( ( 'C' ) )\n {\n // InternalGuardin.g:994:2: ( ( 'C' ) )\n // InternalGuardin.g:995:3: ( 'C' )\n {\n before(grammarAccess.getMelodyNoteTypeAccess().getCEnumLiteralDeclaration_2()); \n // InternalGuardin.g:996:3: ( 'C' )\n // InternalGuardin.g:996:4: 'C'\n {\n match(input,34,FOLLOW_2); \n\n }\n\n after(grammarAccess.getMelodyNoteTypeAccess().getCEnumLiteralDeclaration_2()); \n\n }\n\n\n }\n break;\n case 4 :\n // InternalGuardin.g:1000:2: ( ( 'D' ) )\n {\n // InternalGuardin.g:1000:2: ( ( 'D' ) )\n // InternalGuardin.g:1001:3: ( 'D' )\n {\n before(grammarAccess.getMelodyNoteTypeAccess().getDEnumLiteralDeclaration_3()); \n // InternalGuardin.g:1002:3: ( 'D' )\n // InternalGuardin.g:1002:4: 'D'\n {\n match(input,35,FOLLOW_2); \n\n }\n\n after(grammarAccess.getMelodyNoteTypeAccess().getDEnumLiteralDeclaration_3()); \n\n }\n\n\n }\n break;\n case 5 :\n // InternalGuardin.g:1006:2: ( ( 'E' ) )\n {\n // InternalGuardin.g:1006:2: ( ( 'E' ) )\n // InternalGuardin.g:1007:3: ( 'E' )\n {\n before(grammarAccess.getMelodyNoteTypeAccess().getEEnumLiteralDeclaration_4()); \n // InternalGuardin.g:1008:3: ( 'E' )\n // InternalGuardin.g:1008:4: 'E'\n {\n match(input,36,FOLLOW_2); \n\n }\n\n after(grammarAccess.getMelodyNoteTypeAccess().getEEnumLiteralDeclaration_4()); \n\n }\n\n\n }\n break;\n case 6 :\n // InternalGuardin.g:1012:2: ( ( 'F' ) )\n {\n // InternalGuardin.g:1012:2: ( ( 'F' ) )\n // InternalGuardin.g:1013:3: ( 'F' )\n {\n before(grammarAccess.getMelodyNoteTypeAccess().getFEnumLiteralDeclaration_5()); \n // InternalGuardin.g:1014:3: ( 'F' )\n // InternalGuardin.g:1014:4: 'F'\n {\n match(input,37,FOLLOW_2); \n\n }\n\n after(grammarAccess.getMelodyNoteTypeAccess().getFEnumLiteralDeclaration_5()); \n\n }\n\n\n }\n break;\n case 7 :\n // InternalGuardin.g:1018:2: ( ( 'G' ) )\n {\n // InternalGuardin.g:1018:2: ( ( 'G' ) )\n // InternalGuardin.g:1019:3: ( 'G' )\n {\n before(grammarAccess.getMelodyNoteTypeAccess().getGEnumLiteralDeclaration_6()); \n // InternalGuardin.g:1020:3: ( 'G' )\n // InternalGuardin.g:1020:4: 'G'\n {\n match(input,38,FOLLOW_2); \n\n }\n\n after(grammarAccess.getMelodyNoteTypeAccess().getGEnumLiteralDeclaration_6()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d03c42a55d1cc6de914b367e97f29ffe", "score": "0.42740667", "text": "public void testGetMostSpecificType_Rule_Rule() {\n System.out.println(\"getMostSpecificType\");\n Rule r1 = new Rule(1, s1);\n r1.addValue(\"3814-2406\", \"1\");\n r1.addValue(\"3814-2416\", \"2\");\n r1.addValue(\"3815-2416\", \"3\");\n r1.addValue(\"ERROR\", \"4\");\n\n Rule r2 = new Rule(2, s1);\n r2.addValue(\"1,55 m\", \"1\");\n r2.addValue(\"1,75 m\", \"2\");\n r2.addValue(\"1,78 m\", \"3\");\n r2.addValue(\"ERROR\", \"4\");\n\n DataType expResult = DataType.STRING;\n DataType result = DataTypeController.getMostSpecificType(r1, r2);\n assertEquals(expResult, result);\n\n }", "title": "" } ]
6ac342c59f1d5f0d9d65f55ee2b34aa0
Set the value of paid
[ { "docid": "6f2414ed3776f5b406830b3be1ec4282", "score": "0.8540037", "text": "public void setPaid(double paid) {\r\n this.paid = paid;\r\n }", "title": "" } ]
[ { "docid": "21991d1c901e23a2a132dd21907d8356", "score": "0.73683196", "text": "void setTotalPolicyPremiumPaid(CurrencyAmount value);", "title": "" }, { "docid": "6e74875264e758730e5ab39bea967920", "score": "0.70565915", "text": "public double getPaid() {\r\n return paid;\r\n }", "title": "" }, { "docid": "2c22ab33d7e9c2797b8a7a89304b5531", "score": "0.68468755", "text": "void setTotalClaimPaymentsMade(CurrencyAmount value);", "title": "" }, { "docid": "014f5d3ac3d9db1bdd96d1b16e55a83b", "score": "0.6695091", "text": "void setTotalPolicyPremiumBilled(CurrencyAmount value);", "title": "" }, { "docid": "c251f9093f3bd4d79652266bbf5ba651", "score": "0.6664425", "text": "public void setsenPaidAmount(double senPaidAmount) {\r\n this.senPaidAmount = senPaidAmount;\r\n }", "title": "" }, { "docid": "c1014552285d2737a809594a39c3d59a", "score": "0.66352034", "text": "public void pay() throws Exception {\n setPaid(true);\n }", "title": "" }, { "docid": "1ad13b879bf9bef344f7608a641b4aa8", "score": "0.6618223", "text": "public void setFee(int fee);", "title": "" }, { "docid": "7df9d6b31d6477ad8fdfd1ca5f336e35", "score": "0.65873516", "text": "public void setPayable(double amount) {\r\n this.payable = amount;\r\n }", "title": "" }, { "docid": "80ea65492f2689821d52e8d0771cf43e", "score": "0.65711915", "text": "public void pay(double fee) {\n if (this.credit > 0.0){\n this.credit -= fee;}\n }", "title": "" }, { "docid": "7b10ff78e991f0c04e906372c56a7c9b", "score": "0.6561727", "text": "void setAmount(double amount);", "title": "" }, { "docid": "ebf800c3652a19b8f3a7f839f0706bdd", "score": "0.6500171", "text": "public void pay(Amount paidAmount){\r\n if(sale == null){\r\n throw new IllegalStateException(\"Call pay before creating sale\");\r\n }\r\n System.out.println(\"Cashier enters the paid amount. \\n\");\r\n Payment payment = new Payment(paidAmount, sale.getTotal());\r\n cashRegister.addPayment(payment);\r\n\r\n System.out.println(\"Paid amount \" + paidAmount + \" \\t change back: \" + payment.getChange().toString());\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "a4f1ff29633d13cd61dd197841c34af3", "score": "0.64779097", "text": "void setMoney(int money);", "title": "" }, { "docid": "f4336efe09b25f36b552bb18e1221d61", "score": "0.64608276", "text": "void setTotalPolicyPremiumRefunded(CurrencyAmount value);", "title": "" }, { "docid": "320d9055241e957068d84c608f909bf0", "score": "0.6352122", "text": "protected void updatePayment(){\n bd.setRoomCount(count);\n bd.setNightCount(NumNightsSpinner.getValue());\n bd.calFees();\n bd.calTax();\n bd.calTotal();\n\n lblFees.setText(String.valueOf(bd.getFees()));\n lblTax.setText(String.valueOf(bd.getTax()));\n lblTotalfees.setText(String.valueOf(bd.getTotal()));\n }", "title": "" }, { "docid": "b57bf04b9b688a41d040c64d6916fa37", "score": "0.63378966", "text": "public void setPayment(BigDecimal payment) {\n this.payment = payment;\n }", "title": "" }, { "docid": "4a6a3bf64b5d70ec4a327ed11856a663", "score": "0.62957394", "text": "public void setTrialAmountPaid(CoreComponentTypes.apis.ebay.BasicAmountType trialAmountPaid) {\r\n this.trialAmountPaid = trialAmountPaid;\r\n }", "title": "" }, { "docid": "650f811836a0209665f137a007e319b7", "score": "0.6285981", "text": "public void updateFeesPaid(int fees) {\r\n feesPaid += fees;\r\n\r\n }", "title": "" }, { "docid": "9ee336e2bc28ead68a47c1050b88f763", "score": "0.6259633", "text": "public void setTotalAmount(double totalAmount) {\n this.totalPaid = totalAmount;\n }", "title": "" }, { "docid": "d76ba07b6ba3111ad0e597b3edc56a54", "score": "0.62489295", "text": "public void setPay(Integer pay) {\n this.pay = pay;\n }", "title": "" }, { "docid": "d7dbf3d187c7f0365344b113e30f60aa", "score": "0.62404835", "text": "public void setFee(int fee){\n this.fee = fee;\n }", "title": "" }, { "docid": "6af7b68cc692dc3d0a9607835e79088b", "score": "0.6202775", "text": "private void updatePayment(Long id) {\r\n\t}", "title": "" }, { "docid": "5b96b21054bdb4060a558c97d6b9ec56", "score": "0.62019193", "text": "public void setMovieAmountPaid(float movieAmountPaid) {\r\n this.movieAmountPaid = movieAmountPaid;\r\n }", "title": "" }, { "docid": "5c36748cd178ae4e5bb2970ab8174f3b", "score": "0.62010235", "text": "@Accessor(qualifier = \"paymentTransaction\", type = Accessor.Type.SETTER)\n\tpublic void setPaymentTransaction(final PaymentTransactionModel value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(PAYMENTTRANSACTION, value);\n\t}", "title": "" }, { "docid": "0fb04611a361a56f36c48f688168792e", "score": "0.61972976", "text": "public void setClaimAmount(gw.api.financials.CurrencyAmount value);", "title": "" }, { "docid": "809aa8df0a0eed09a50919899d26dcef", "score": "0.6179896", "text": "public void setPayRate(double payRate) { this.payRate = payRate; }", "title": "" }, { "docid": "e6dc954bc07264fa13326f6caf638b30", "score": "0.6171691", "text": "public void setCash(int cash) \n {\n this.cash = cash;\n }", "title": "" }, { "docid": "27c4ec001a10bf0aca98c7bd218f429b", "score": "0.6113729", "text": "public void setAmount(double param){\r\n \r\n this.localAmount=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "be62257459c90db252b6e334a9ec32a3", "score": "0.6090126", "text": "public void setReservingAmount(gw.api.financials.CurrencyAmount value);", "title": "" }, { "docid": "1722638e548535f5f43f45392dff1c22", "score": "0.60840106", "text": "public void pay(double paidAmount) {\n currentSale.pay(paidAmount);\n cashRegister.addPayment(currentSale.getTotalPrice());\n currentSale.printReceipt(printer);\n accountingRegistry.sendAccountingRegistry(currentSale);\n inventoryRegistry.updateInventory(currentSale);\n }", "title": "" }, { "docid": "9c5a23d0ef29105b8a0711852b1dfa3f", "score": "0.60822093", "text": "public void setMoney(int value)\r\n {\r\n money += value;\r\n }", "title": "" }, { "docid": "521a993a804e106e112c117ba28888f2", "score": "0.60792667", "text": "public void setCash(int newCash){\n cash=newCash;\n }", "title": "" }, { "docid": "e6715a6b0835153c0e015317bbfa61cc", "score": "0.6067521", "text": "public void setAmountOfMoney(double param){\r\n \r\n this.localAmountOfMoney=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "703f3ec8ae1a0d5e4d37e7a4673142b0", "score": "0.6043578", "text": "@Test\r\n public void testSetTotalAmount() {\r\n System.out.println(\"setTotalAmount\");\r\n String totalAmount = \"200\";\r\n PaymentModel instance = new PaymentModel();\r\n instance.setTotalAmount(totalAmount);\r\n \r\n \r\n }", "title": "" }, { "docid": "05b9e6ca1cefba9a5393d0b07c89825a", "score": "0.60198456", "text": "public void setCreditNoteAmount(double creditNoteAmount);", "title": "" }, { "docid": "956cf3c313ccf0607d022a90b193afb9", "score": "0.5999451", "text": "public void setBalance(double amount) \n {\n balance = amount; \n }", "title": "" }, { "docid": "2dbf03c1d0abba2da56f8a0ee5ac3e7f", "score": "0.59993863", "text": "public void setPayment (java.math.BigDecimal payment) {\n\t\tthis.payment = payment;\n\t}", "title": "" }, { "docid": "f8da6c3e5dfeacf14957151c5409d74c", "score": "0.5991634", "text": "public void setReservingCurrency(typekey.Currency value);", "title": "" }, { "docid": "7033f6a2f7a49855938555863205951c", "score": "0.59867716", "text": "@Override\n\tpublic void msgGetPaid() {\n\t\t\n\t}", "title": "" }, { "docid": "9280b071109f03287a022dfc922d1328", "score": "0.59749115", "text": "public void setHourlyPay(double pay)\n {\n pay = HourlyPay;\n }", "title": "" }, { "docid": "d64639dd589519c00b584976962b4bde", "score": "0.5966606", "text": "@Override\n public void paySalary() {\n company.paySalary();\n\n String message = String.format(\"Paid salary: -$%.2f.\",\n company.calculateTotalSalary());\n DataObject data = new DataObject(message, null);\n setChanged();\n notifyObservers(data);\n }", "title": "" }, { "docid": "3f84efbb9b8c6f41e714d179600bfc02", "score": "0.59646755", "text": "public void setSaldo(int saldo) {\n this.saldo = saldo;\n }", "title": "" }, { "docid": "4e9f1f13902b3321bd8a12314a7b2d07", "score": "0.5953589", "text": "public void setMoney(int input){\n money = input;\n }", "title": "" }, { "docid": "b13c739191ccaeb8ef6c697231883941", "score": "0.59524125", "text": "public void setBuyingPrice(int buyingPrice) {\n this.buyingPrice = buyingPrice;\n }", "title": "" }, { "docid": "e72e3017c26171d1cec70cf9870177e7", "score": "0.5948926", "text": "public void setPaymentDate(Date paymentDate);", "title": "" }, { "docid": "db3e010722303ef690096a82f7615fa3", "score": "0.59399974", "text": "public void buyPremium() {\n premium = true;\n }", "title": "" }, { "docid": "93024ba64268e4b39f1c9d082c4bc4ed", "score": "0.59294903", "text": "@Override\n\tpublic void calculatePayment() {\n\t\tsuper.calculatePayment();\n\t\tsuper.setPayPerPeriod(super.getPayPerPeriod() + bonus/(double)PAYPERIODSPERYEAR);\n\t\t\n\t}", "title": "" }, { "docid": "dcc93c0e2c5a0e077c2d01b6daf80779", "score": "0.591165", "text": "private void setNfcPayment(NfcPayment value) {\n if (value != null) {\n this.nfcPayment_ = value;\n this.bitField1_ |= 256;\n return;\n }\n throw new NullPointerException();\n }", "title": "" }, { "docid": "a52a263faf8798453735256bb309e6d0", "score": "0.5910574", "text": "public void setClaimCurrency(typekey.Currency value);", "title": "" }, { "docid": "651f848dc5958aab71ce9cdcb1b3f860", "score": "0.58995694", "text": "public Payment addPaymentToOrder(int pay);", "title": "" }, { "docid": "5a6746b93e78f44e927b2c2088cb384c", "score": "0.5867731", "text": "public void setPremiumPaid(java.lang.String premiumPaid) {\n this.premiumPaid = premiumPaid;\n }", "title": "" }, { "docid": "35fb4a7f721834c458952eadc82dc931", "score": "0.58677006", "text": "void getPaid(int salary);", "title": "" }, { "docid": "ea7d47fe72d665e3e65f7d3a20710257", "score": "0.58676684", "text": "void setPrice(Price price);", "title": "" }, { "docid": "5b1cb1769c98e0a04cd9712b87ec8067", "score": "0.58616924", "text": "public void payment(Double payment) {\n this.balance = this.getBalance() - payment;\n this.amountPaid += payment;\n }", "title": "" }, { "docid": "d4e69d2165826868a421e956771df7ce", "score": "0.5857358", "text": "public void setMoneyAccount(Double moneyAccount)\r\n/* 27: */ {\r\n/* 28: 32 */ this.moneyAccount = moneyAccount;\r\n/* 29: */ }", "title": "" }, { "docid": "a812f8e7c1bc66898c1e8cbb974f63cb", "score": "0.5857236", "text": "public void setPatientPaidAmount(double patientPaidAmount) {\r\n this.patientPaidAmount = patientPaidAmount;\r\n }", "title": "" }, { "docid": "d1fc25eaf56552d585d77532ab77d422", "score": "0.5849718", "text": "public void setTotalPaymentAmount(double value) {\n this.totalPaymentAmount = value;\n }", "title": "" }, { "docid": "f9ae6f568d7dd1844506efe3156a98dc", "score": "0.5844123", "text": "public boolean tuitionPaid(){\r\n\t\t return this.paidTuition;\r\n\t\t}", "title": "" }, { "docid": "8f3adc272a099da63df24afe1f61dcf7", "score": "0.5837755", "text": "public void setAmount(int value) {\n this.amount = value;\n }", "title": "" }, { "docid": "35ce9874cf2e9176d4cd12ac4afa44a0", "score": "0.58362144", "text": "public void setLoyaltyPhoneNo(String loyaltyPhoneNo);", "title": "" }, { "docid": "21143986c7c106774caf5a8bd37e4298", "score": "0.5829907", "text": "public void setTotalFee(String totalFee)\n/* */ {\n/* 144 */ this.totalFee = totalFee;\n/* */ }", "title": "" }, { "docid": "cfe179b3e73f4d93a6ece83aaca19e11", "score": "0.5826429", "text": "@Test\r\n public void testSetPaymentID() {\r\n System.out.println(\"setPaymentID\");\r\n String paymentID = \"10\";\r\n PaymentModel instance = new PaymentModel();\r\n instance.setPaymentID(paymentID);\r\n \r\n \r\n }", "title": "" }, { "docid": "7cf4fa72a6fb869065ae59ff301532d6", "score": "0.58226454", "text": "public void setPaidFee(int studentId, Set<Integer> selectedCourses) throws CRSException;", "title": "" }, { "docid": "04d0ce99847c23cfba6379c7c6b88a85", "score": "0.580051", "text": "public void setDeliveryRate(double param){\r\n \r\n this.localDeliveryRate=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "5b4c4fb73a702ef4d2f21baf09e10acd", "score": "0.57983786", "text": "public double setSaleAmount(double inputAmount)\n{\n salesAmount = inputAmount;\n return salesAmount;\n}", "title": "" }, { "docid": "cbec03476a33cd9f5e3b1a071492537a", "score": "0.57820123", "text": "public void setSaldo(double saldo) {\n\t\tthis.saldo = saldo;\n\t}", "title": "" }, { "docid": "05d721cf6c570cd6519d034aecbdd5d1", "score": "0.57815087", "text": "public void setMinPayment(int newMinPayment) {\n this.minPayment = newMinPayment;\n }", "title": "" }, { "docid": "73459d1b72f4ba8025121821c342266a", "score": "0.5778036", "text": "public abstract void setPasivo_t(java.math.BigDecimal newPasivo_t);", "title": "" }, { "docid": "03865786c30f7f901afa4001f9fb367f", "score": "0.5777179", "text": "public void setCode (BigDecimal Code)\n{\nset_Value (\"Code\", Code);\n}", "title": "" }, { "docid": "bb640b75e3070c04e599f1791b586434", "score": "0.57771105", "text": "public void setBalance(Money balance){\r\n this.balance=balance;\r\n }", "title": "" }, { "docid": "56d10ef687dfff65276205806691a3f0", "score": "0.5773658", "text": "BookingTicket setPaymentId(Integer paymentId);", "title": "" }, { "docid": "fcd89fdcab4f800ba7c4b71827d35719", "score": "0.5772477", "text": "public void setPrice(double p){\r\n pricePerLitre = p;\r\n }", "title": "" }, { "docid": "876a1a24d1b6a2e68fc9b5f11324ff6b", "score": "0.5764541", "text": "public void pricePerUser(int pricePerUser)\n {\n if (!isActivated) {\n this.pricePerUser = pricePerUser;\n System.out.println(\"The price per user of product has been changed successfully to \" + pricePerUser + \".\\n\");\n } else {\n System.out.println(\"The product license has already been granted. So, the license price for per user of product cannot be changed.\\n\");\n }\n }", "title": "" }, { "docid": "70ddd95f21e84a0d382a8b3e8ea84eff", "score": "0.5763023", "text": "public void setCreditingTransaction(entity.RITAccountTransaction value);", "title": "" }, { "docid": "262db378edff3afe3aff0456364cc029", "score": "0.5761825", "text": "public double getsenPaidAmount() {\r\n return senPaidAmount;\r\n }", "title": "" }, { "docid": "ef14a96a730dce21106bd9ed54cb2c1e", "score": "0.57558006", "text": "public void setAmount(gw.api.financials.CurrencyAmount value);", "title": "" }, { "docid": "f8ec4e4723b2fcb4594574e39dc0f3ce", "score": "0.5755759", "text": "public void setConfirmedQty (BigDecimal ConfirmedQty)\n{\nif (ConfirmedQty == null) throw new IllegalArgumentException (\"ConfirmedQty is mandatory\");\nset_Value (\"ConfirmedQty\", ConfirmedQty);\n}", "title": "" }, { "docid": "c70fc8d0cea2fe881a774dd7ca1b1d47", "score": "0.57426476", "text": "public double registerAmountOfCashPaid(double amountPaid)\r\n\t{\r\n\t\tCashPayment cashPayment = new CashPayment(costForInspection.getCost(), amountPaid);\r\n\t\tReceipt receipt = new Receipt(amountPaid, costForInspection.getCost(), cashPayment.getChange(), systemHandler.getDate());\r\n\t\tsystemHandler.timeToPrintReceipt(receipt);\r\n\t\treturn cashPayment.getChange();\r\n\t}", "title": "" }, { "docid": "d42ef821a5af0dcff99f20db409ecefb", "score": "0.57365644", "text": "public void setC_PaymentTerm_ID (int C_PaymentTerm_ID);", "title": "" }, { "docid": "4303f3370d16310d9140a065668c74a4", "score": "0.57346714", "text": "public double enterPaidCash(double paidAmount) {\r\n double changeAmount = sale.calculateChange(paidAmount);\r\n sale.printReceipt(printer);\r\n accountingSystem.updateAccounting(sale);\r\n inventorySystem.updateInventory(sale);\r\n return changeAmount;\r\n }", "title": "" }, { "docid": "a816db52b4c20d466f00a6f8902b5111", "score": "0.5726285", "text": "public void setAmount (BigDecimal Amount);", "title": "" }, { "docid": "80d1e131fa9798e73014d879077fd840", "score": "0.571969", "text": "public void setPreviousBuy(double d) {previousBuy = d;}", "title": "" }, { "docid": "3ebdd7f44b9551d64f34ecb6552ba804", "score": "0.5719112", "text": "public void setStudentFund(long id, double value) {\n SQLiteDatabase db = getWritableDatabase();\n db.execSQL(\"UPDATE AccountInfo SET student_fund='\"+ value + \"' WHERE \" +\n \"_id='\"+ id + \"'\");\n db.close();\n }", "title": "" }, { "docid": "fdf57d7794521c0e39450c3a389ea7d6", "score": "0.57158846", "text": "public float getMovieAmountPaid() {\r\n return movieAmountPaid;\r\n }", "title": "" }, { "docid": "60042a5d7ed199ff0a60af585f0914b0", "score": "0.5707364", "text": "public void setCredit(Double credit) {\n this.credit = credit;\n }", "title": "" }, { "docid": "8762476e59a99901eed430afcb1bf63c", "score": "0.5701534", "text": "public void setPaymentTime(int givenPaymentTime)\n {\n this.paymentTime = givenPaymentTime;\n }", "title": "" }, { "docid": "ad228e34463fa09c0640d8a905e67448", "score": "0.56955457", "text": "public void setPaymentid(Long newVal) {\n if ((newVal != null && this.paymentid != null && (newVal.compareTo(this.paymentid) == 0)) || \n (newVal == null && this.paymentid == null && paymentid_is_initialized)) {\n return; \n } \n this.paymentid = newVal; \n paymentid_is_modified = true; \n paymentid_is_initialized = true; \n }", "title": "" }, { "docid": "b4cdbc9ba63fb91e90e0291874b5b5b2", "score": "0.56954676", "text": "BookingTicket setPrice(Double price);", "title": "" }, { "docid": "7fdbe71dcb6c54c1f7f254707b759a63", "score": "0.5694071", "text": "public void setProposal(ProposalImpl value) {\n setAttributeInternal(PROPOSAL, value);\n }", "title": "" }, { "docid": "787427289a7ced9c7e1ef83accfc7860", "score": "0.56917125", "text": "public void setMoney(Money money) {\n this.money = money;\n }", "title": "" }, { "docid": "1a13d28bac0f6c9c017413f6a161c0bc", "score": "0.5691121", "text": "public void setAmount(Integer amount);", "title": "" }, { "docid": "9d23e98c5c759f965eb93398cf4f422d", "score": "0.56901854", "text": "public int getPay() {\r\n return pay;\r\n }", "title": "" }, { "docid": "b68ee78882bafbc78cecb88a9b5a8bf2", "score": "0.5688976", "text": "public void setAmount(double value) {\n this.amount = value;\n }", "title": "" }, { "docid": "8b84ae4d784d61e0b0c80d431889aebd", "score": "0.5685781", "text": "public void testSetCurrentPaymentAccrualAmount() {\r\n instance.setCurrentPaymentAccrualAmount(1);\r\n assertEquals(\"Failed to setCurrentPaymentAccrualAmount correctly.\", 1,\r\n instance.getCurrentPaymentAccrualAmount());\r\n }", "title": "" }, { "docid": "4b699302bc6ee13a3bb4d59049d65cdb", "score": "0.5682035", "text": "public void setTransactionFee(double fee)\n {\n //TODO\n transactionFee = fee;\n }", "title": "" }, { "docid": "e491f916fbd782eb5ae16502510ee23e", "score": "0.56812143", "text": "public void setOrigPpServiceFee(com.comverse.www.NumericAttributeJAXBElement param){\n localOrigPpServiceFeeTracker = param != null;\n \n this.localOrigPpServiceFee=param;\n \n\n }", "title": "" }, { "docid": "eee463b99af3322933248a3f8d600cc6", "score": "0.5673402", "text": "public abstract void setProm_t(java.math.BigDecimal newProm_t);", "title": "" }, { "docid": "215c11672477f9deabb0e0777dc078f2", "score": "0.5668206", "text": "private void setPrice(double price){this.price = price;}", "title": "" }, { "docid": "e1b8dad3d41e333fda0cc5b85890624b", "score": "0.56660944", "text": "public void setAmount(int amount) {\n\tthis.amount = amount;\n}", "title": "" }, { "docid": "45df86c9b32fce4273c15b9c55f2542e", "score": "0.5665782", "text": "CurrencyAmount getTotalPolicyPremiumPaid();", "title": "" }, { "docid": "7b67c45a84638f07d15c1fe51f16d0ee", "score": "0.5663941", "text": "public void setBalance(double newSum)\n {\n balance = newSum;\n }", "title": "" } ]
97173b3129a726fdb7f87b13ecc98249
Returns the WorkflowController singleton
[ { "docid": "c0d67afa5d854e58dd89c4b337b65a9d", "score": "0.6595148", "text": "public static ShortcutController getController()\n\t{\n\t\treturn controller;\n\t}", "title": "" } ]
[ { "docid": "896fa25f7ba2ad0c5ba271a5dd8f3730", "score": "0.7212012", "text": "public static Controller getController() {\r\n\t\treturn ControllerHolder.instance;\r\n\t}", "title": "" }, { "docid": "0e548598890b9106e38e0b1ef33b9c0c", "score": "0.69921464", "text": "public static ConversationController instance() {\n return ConversationController.INSTANCE ;\n }", "title": "" }, { "docid": "a66d45ef7828c5d3b9f26a6bc9cc0911", "score": "0.677542", "text": "public static Controller getInstance() {\n if(instance == null) {\n synchronized (Controller.class) {\n if(instance == null) {\n instance = new Controller();\n }\n }\n }\n return instance;\n }", "title": "" }, { "docid": "6709e89e7460b1433a065824551aebfc", "score": "0.66826856", "text": "public static Controller getInstance(){\n\t\tif(instance == null){\n\t\t\tinstance = new Controller();\n\t\t}\n\t\treturn instance;\n\t}", "title": "" }, { "docid": "6d34d7de8de167f5cad851379d813259", "score": "0.6662484", "text": "public Controller getController()\r\n\t{\r\n\t\treturn new PresentationController();\r\n\t}", "title": "" }, { "docid": "9467cce791edb0175701049cb3960aa9", "score": "0.6551651", "text": "public AppWindowContainerController getController() {\n WindowContainerController controller = super.getController();\n if (controller != null) {\n return (AppWindowContainerController) controller;\n }\n return null;\n }", "title": "" }, { "docid": "14f26c49d3415c642fe4cfef6be6f1c8", "score": "0.65511584", "text": "public static InputController getInstance() {\n\t\tif (theController == null) {\n\t\t\ttheController = new InputController();\n\t\t}\n\t\treturn theController;\n\t}", "title": "" }, { "docid": "b982227520916f6acbd3cbf42dabc883", "score": "0.6545923", "text": "public Controller getController();", "title": "" }, { "docid": "988795241df00cdf9e28b933e54bfd8a", "score": "0.6534427", "text": "public static synchronized TreeController getInstance()\n {\n if (_Instance == null)\n _Instance = new TreeController();\n return _Instance;\n }", "title": "" }, { "docid": "cc7b88e0c22bfbd39d99eb5df3b7a222", "score": "0.6532937", "text": "public static TaskController getTaskController() {\n return taskController;\n }", "title": "" }, { "docid": "8a28f868bb33003c47947a264af348aa", "score": "0.64901584", "text": "public LobbyChatSingleTabsController getSingleController() {\n return singleController;\n }", "title": "" }, { "docid": "16e89459f09e12da861a55db3e9cde1c", "score": "0.6481946", "text": "public static Controllers get() {\n if (singleton == null) {\n singleton = new Controllers();\n }\n return singleton;\n }", "title": "" }, { "docid": "02ebbbec0cde3598f6865927e874fa69", "score": "0.6457975", "text": "public static StreamingControllerImpl getInstance() {\r\n if (instance == null) {\r\n instance = new StreamingControllerImpl();\r\n }\r\n return instance;\r\n }", "title": "" }, { "docid": "c8656eae5ed1b70af7c0368aa811faf0", "score": "0.64298046", "text": "public synchronized static Controller getInstance(Context _context) {\n if (sInstance == null) {\n sInstance = new Controller(_context);\n }\n return sInstance;\n }", "title": "" }, { "docid": "52a4febd9b15c4fffe1c31d0e2d27b0b", "score": "0.63964486", "text": "public static ResourceController getInstance()\n {\n //Check to See if an Instance has been created\n if (soleInstance == null)\n {\n //Instance doen't exist create on\n soleInstance = new ResourceController();\n }\n\n //Return InputController Instance\n return soleInstance;\n }", "title": "" }, { "docid": "3358cbd7e0845a8b4a345175e11c9258", "score": "0.6394393", "text": "public static GameController getInstance() {\n\t\tif (controller == null) {\n\t\t\tsynchronized (GameController.class) {\n\t\t\t\tif (controller == null) {\n\t\t\t\t\tcontroller = new GameController();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn controller;\n\t}", "title": "" }, { "docid": "a433be527a672f1de7b84d4a324de845", "score": "0.63651127", "text": "public FormController getFormController() {\n if (formController == null) {\n formController = createFormController();\n }\n return formController;\n }", "title": "" }, { "docid": "120660704ca29909ca7fd7f9eabcf55a", "score": "0.63434327", "text": "public static TurnController getInstance ()\n {\n return _instance;\n }", "title": "" }, { "docid": "934f4f6646621c57ed51750d0091bf2e", "score": "0.633569", "text": "public Controller getController ()\n {\n return _ctrl;\n }", "title": "" }, { "docid": "1ac3bf159ebc62b96a44bc4083b9fede", "score": "0.6314888", "text": "public final Controller getController() {\n return this.controller;\n }", "title": "" }, { "docid": "956bd6092959d51d29d8f2b4a03cff3c", "score": "0.6281753", "text": "public LoseController getController() {\n\t\treturn controller;\n\t}", "title": "" }, { "docid": "2fc6a039b8d644185a0bbb998d50a08e", "score": "0.62747335", "text": "public static ControllerDAO getInstance() {\n if (instance == null) {\n instance = new ControllerDAO();\n }\n return instance;\n }", "title": "" }, { "docid": "03070b6fc7d0e2e934abba6acb271e4b", "score": "0.6261111", "text": "public static AuthenticationController getInstance() {\r\n return AuthenticationController.INSTANCE;\r\n }", "title": "" }, { "docid": "6a512710c0c2ccd44e724fdbe1e77bcf", "score": "0.6259599", "text": "public static RootController getInstance() {\n // lazy singleton\n if (null == instance) {\n instance = new RootController();\n }\n return instance;\n }", "title": "" }, { "docid": "58ac6ce17517c630657dfc75804d073a", "score": "0.6257134", "text": "public ConfigurationController getController() {\n\t\treturn controller;\n\t}", "title": "" }, { "docid": "2f9560104c4960c1be93e9c1a7ddf8d7", "score": "0.6212755", "text": "public static synchronized MainController getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\ttry {\r\n\t\t\t\tinstance = new MainController();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "title": "" }, { "docid": "a8e40fd0a7976328de3e3f60aa7513b6", "score": "0.6198445", "text": "public static GameController getController(){return coordinator.getController();}", "title": "" }, { "docid": "de3cdb9ed4be1487928f96e47eac3aab", "score": "0.6142754", "text": "public static UserController getInstance() {\n if (userController == null) {\n userController = new UserController();\n }\n return userController;\n }", "title": "" }, { "docid": "06df84ed5faeaeee0711939a22804af7", "score": "0.6117369", "text": "public static FilesController getInstance() {\n\t\t// Double lock for thread safety.\n\t\tif (instance == null) {\n\t\t\tsynchronized (FilesController.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new FilesController();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "title": "" }, { "docid": "90fbeccb388c14a6cdf6eb70b87cea8a", "score": "0.61118287", "text": "protected ActionController getActionController () {\n return this.actionController;\n }", "title": "" }, { "docid": "699c450474bdac04000169cec8bce552", "score": "0.60476756", "text": "public Controller getController(){\n\t\treturn this.oController;\n\t}", "title": "" }, { "docid": "2c2ff9f49370607da93d0a796665581e", "score": "0.6024758", "text": "public static L2LegacyLoginServerController getInstance()\r\n\t{\r\n\t\treturn SingletonHolder.INSTANCE;\r\n\t}", "title": "" }, { "docid": "abb5fee6da125136684fad5496079d2c", "score": "0.5991972", "text": "public static MainMenuController getMainController()\n {\n return mainMenuController;\n }", "title": "" }, { "docid": "8aa3f166632c5eef0fc253c32c21414e", "score": "0.5990006", "text": "public static CameraController getInstace(){\n\t\treturn instance;\n\t}", "title": "" }, { "docid": "2081b2489976d6f48b0af4219a214718", "score": "0.5970688", "text": "private WizardController getController() {\n return controller;\n }", "title": "" }, { "docid": "86f0d5d95f7c6268a86003332f26bc9d", "score": "0.5962596", "text": "public Workflow getWorkflow() {\n return this.workflow;\n }", "title": "" }, { "docid": "a848721eac8d5d754b4b3b7270fa8fa3", "score": "0.59464717", "text": "private OrganizationController getOrganizationController() {\n OrganizationController orga = new OrganizationController();\n return orga;\n }", "title": "" }, { "docid": "9b673633d29297b491fcf3b0eb583434", "score": "0.59284836", "text": "public RestaurantApp getController() {\n return controller;\n }", "title": "" }, { "docid": "73f3a0043fbb82b46ab34d7c27454fc7", "score": "0.591412", "text": "public static GameController getInstance() {\n if (instance == null) {\n instance = new GameController();\n }\n return instance;\n }", "title": "" }, { "docid": "a8108314c8ba1b4037b6e38895533f2d", "score": "0.5911887", "text": "public static GameController getInstance() {\n if (instance == null)\n instance = new GameController();\n return instance;\n }", "title": "" }, { "docid": "d32789ee1bcc96c97fffdd0793684254", "score": "0.59009755", "text": "public StandbyPriorityDetailsController getController() {\n return controller;\n }", "title": "" }, { "docid": "9ff399a6dc834a3edbc8d3a8a609a9e4", "score": "0.5884058", "text": "public static Controller getFirstController() {\r\n\t\treturn Controllers.getControllers().first();\r\n\t}", "title": "" }, { "docid": "8b3c95717ec8b30ebbd20d590856fcf6", "score": "0.58738095", "text": "public static WebController getWebController() {\n\t\treturn innerContext.get().controller;\n\t}", "title": "" }, { "docid": "4333096afe7c1de18a87017a54967bc0", "score": "0.58666223", "text": "public String getController() {\n return controller;\n }", "title": "" }, { "docid": "741042b9799a9e37b1de380673cfd726", "score": "0.5840097", "text": "public static DefaultGameController getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new DefaultGameController();\n\t\t}\n\t\treturn instance;\n\t}", "title": "" }, { "docid": "24212422652c26491fce38d02dc25b1b", "score": "0.5803398", "text": "public PersonController returnController() {\n frame.setVisible(false);\n return controller;\n }", "title": "" }, { "docid": "e0295c7c5ecf80fbc22127b17bee08cb", "score": "0.57954663", "text": "WeatherDimController getController();", "title": "" }, { "docid": "4759ed6d8913534c9234493f2c793dbc", "score": "0.5772162", "text": "@Lookup(param = \"controller\")\n FsController getController();", "title": "" }, { "docid": "38d42b77582acf31e6ce5652112ae5a7", "score": "0.5760763", "text": "public static GlobalAppLocaleController getInstance() {\n return INSTANCE;\n }", "title": "" }, { "docid": "2d8790137d4b6db46f38031ea8bf2c76", "score": "0.5739486", "text": "public static SpaceInvaderController getController(Stage stage) {\n if (controller == null) {\n controller = new SpaceInvaderController(stage);\n }\n return controller;\n }", "title": "" }, { "docid": "8de0ea6125487c7d8c8ae1a4d3c5f79e", "score": "0.5738775", "text": "public static synchronized AuthenticationController getInstance(Context ctx){\n // En passant le context on sauve le context qui est l'activity elle-même\n context = ctx;\n\n if(INSTANCE == null){\n INSTANCE = new AuthenticationController();\n if(publicClientApplication == null){\n publicClientApplication = new PublicClientApplication(context, Constants.CLIENT_ID);\n }\n }\n return INSTANCE;\n }", "title": "" }, { "docid": "3b5282d1e1b1a06480d35743c1a6e4ca", "score": "0.5717695", "text": "public Controller getSamplerController()\n {\n return (Controller) getProperty(MAIN_CONTROLLER).getObjectValue();\n }", "title": "" }, { "docid": "7b6277635dcfe9ac5d593c4385b514a9", "score": "0.5716001", "text": "public static StatelessController getInstance(\n Class<StatelessController> clsController\n ) throws OSSException\n {\n return getManagerInstance().getControllerInstance(clsController);\n }", "title": "" }, { "docid": "5cda43ecbe2917cac73d6921f06ea253", "score": "0.5714661", "text": "public ValidationController getLfitnatoperValidationController() \r\n\t{\r\n\t\treturn this.lfitnatoperValidationController;\r\n\t}", "title": "" }, { "docid": "417e61fcbbe798a5fe4b0e5037e47e70", "score": "0.5701563", "text": "@Override\n public <A> A getControllerInstance(Class<A> controllerClass) throws Exception {\n\t\treturn INJECTOR.getInstance(controllerClass);\n }", "title": "" }, { "docid": "3318ee404be15b09d9cff7e45c4fa73b", "score": "0.57015175", "text": "protected TemplateController getController() throws JspTagException\n\t{\n\t TemplateController controller;\n \t\n\t try \n\t\t{\n\t\t\tcontroller = (TemplateController) this.pageContext.getRequest().getAttribute(\"org.infoglue.cms.deliver.templateLogic\");\n\t\t\tif(controller == null)\n\t\t\t{\n\t\t\t\tthrow new NullPointerException(\"No TemplateController found in context.\");\n\t\t\t}\n\t\t} \n\t\tcatch(Exception e) \n\t\t{\n\t\t\tthrow new JspTagException(e.getMessage());\n\t\t}\n\t\t\t\n\t\treturn controller;\n\t}", "title": "" }, { "docid": "de415f151c0bfba2fa9701392ad897d2", "score": "0.56916803", "text": "public CanvasController getController() {\n return controller;\n }", "title": "" }, { "docid": "9f8be1df03df33510b315ec541aaab6f", "score": "0.56904894", "text": "public static ProductController getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new ProductController();\n\t\t}\n\n\t\treturn instance;\n\t}", "title": "" }, { "docid": "ecbea8f6560ed093cce9464de78117fb", "score": "0.5682635", "text": "public ValidationController getLfitnatoperRequestValidationController() \r\n\t{ \r\n\t\treturn this.lfitnatoperRequestValidationController;\r\n\t}", "title": "" }, { "docid": "d7cf71419da11102118cb1a06d06a844", "score": "0.56733173", "text": "public ResourceReference workflow() {\n return this.workflow;\n }", "title": "" }, { "docid": "41dc9ddd8db8d380133116fe81c96bde", "score": "0.56705993", "text": "public StatelessController getControllerInstance(\n Class<? extends StatelessController> clsController\n ) throws OSSException\n {\n StatelessController control;\n \n control = (StatelessController)m_mpControllerCache.get(\n clsController.getName());\n if (control == null)\n {\n synchronized (m_mpControllerCache)\n {\n // TODO: Improve: This is suppose to be\n // control = m_controllerClassFactory.createInstance(clsController);\n // but I am getting compiler error.\n control = m_controllerClassFactory.createInstance(clsController.getName());\n // First cache the created instance and only then call the \n // constructor() in case there is some circular reference\n // which would resolve to the controller of the same type\n m_mpControllerCache.put(clsController.getName(), control);\n // Initialize the object\n try\n {\n control.constructor();\n }\n catch (RemoteException rExc)\n {\n // We cannot propagate this exception otherwise XDoclet would generate \n // the local interface incorrectly since it would include the declared\n // RemoteException in it (to propagate we would have to declare it)\n throw new OSSInternalErrorException(\"Remote error occurred\", rExc);\n }\n }\n }\n \n return control; \n }", "title": "" }, { "docid": "7e73589fb9b129d64d3cf43bdcd8b245", "score": "0.56510323", "text": "public final ControllerViewModel invoke() {\n FragmentActivity activity = this.f72602a.getActivity();\n if (activity == null) {\n C32569u.m150511a();\n }\n return (ControllerViewModel) ViewModelProviders.m2841a(activity).mo7064a(ControllerViewModel.class);\n }", "title": "" }, { "docid": "728ec5bd26d8e5367166fb65342069f1", "score": "0.563492", "text": "public static DataLoadController GetInstance(ConnectivityManager manager){\n connection = manager;\n\n if(controller == null)\n controller = new DataLoadController();\n\n return controller;\n }", "title": "" }, { "docid": "e312b77720532d9c6019796e0721eae9", "score": "0.5632629", "text": "public static FriendsController getFriendsControllerInstance() {\n if(instance == null)\n instance = new FriendsController();\n return instance;\n }", "title": "" }, { "docid": "57af954c52edcda79998e0e52e28bf9a", "score": "0.55860597", "text": "public TicTacToeController getController(){\n return controller;\n }", "title": "" }, { "docid": "76f95c48871aea217e1891eaad4e82f9", "score": "0.5583042", "text": "WorkflowFactory getFactory() {\n return factory;\n }", "title": "" }, { "docid": "544dcd0bef30c9ee0d55a3fbc490787a", "score": "0.55718225", "text": "public static FeitianCardReaderController getInstance() {\n if (instance == null) {\n instance = new FeitianCardReaderController();\n }\n return instance;\n }", "title": "" }, { "docid": "0ad7d775f2bf6f8a9278b36d63473491", "score": "0.55347145", "text": "public static ChatManager getInstance() {\n // Synchronize on LOCK to ensure that we don't end up creating\n // two singletons.\n synchronized (LOCK) {\n if (null == singleton) {\n ChatManager controller = new ChatManager();\n singleton = controller;\n return controller;\n }\n }\n return singleton;\n }", "title": "" }, { "docid": "8cf4dbce76af49523e1f5284fd468f39", "score": "0.54923445", "text": "public static WorkspaceEditingDomainFactory getInstance() {\r\n return instance;\r\n }", "title": "" }, { "docid": "bcb7d6294f2a7fecced42faa8c4dff3a", "score": "0.5478711", "text": "public static PolicyDispatcherManager getInstance(){\n return instance;\n }", "title": "" }, { "docid": "bc86e818e5d2977bda8b6ffbc656b973", "score": "0.54606193", "text": "public ValidationController getLightValidationController()\r\n\t{\r\n\t\treturn lightValidationController;\r\n\t}", "title": "" }, { "docid": "f30e024bf9f5d187d432d4c558435954", "score": "0.5455842", "text": "public DMController getDMController() {\n\t\treturn _controller;\n\t}", "title": "" }, { "docid": "c2cc7970d07888656fde497de868408a", "score": "0.5453925", "text": "private WorkflowManager() {}", "title": "" }, { "docid": "3f12f8bd35a48e5723cd00afe7c16184", "score": "0.54485685", "text": "WorkflowInstance createWorkflowInstance(WorkflowDefinition workflowDefinition);", "title": "" }, { "docid": "c3af91bdab06b850abc157552d076607", "score": "0.54451936", "text": "public static synchronized UsersController getInstance() {\n if (instance == null) {\n instance = new UsersController();\n }\n return instance;\n }", "title": "" }, { "docid": "7bb488da30b2d6babc97027dfcbbabc2", "score": "0.5444026", "text": "public WorkflowRuntime build() {\n if (instance == null) {\n synchronized (WorkflowRuntime.class) {\n if (instance == null) {\n instance = new WorkflowRuntime(this.builder.build());\n }\n }\n }\n return instance;\n }", "title": "" }, { "docid": "d185e65c3c45bbb6956d1a439681f705", "score": "0.54438007", "text": "public static Activator getInstance() {\n\t\treturn instance;\r\n\t}", "title": "" }, { "docid": "5ffd98bb77605985153c0cfb4d34504f", "score": "0.5431687", "text": "synchronized public static LabtestManager getInstance()\n {\n return singleton;\n }", "title": "" }, { "docid": "9f1b62cd6f9f804c02614cbfbdd81d50", "score": "0.5411428", "text": "public static synchronized CurriculumManager getInstance() {\n if (instance == null) {\n instance = new CurriculumManager();\n }\n return instance;\n }", "title": "" }, { "docid": "813ee477e04191f5616f21834833dac0", "score": "0.53977114", "text": "public MatchController getMatchController() {\n return matchController;\n }", "title": "" }, { "docid": "bc0963f6fa0b1b339fde8d316713f333", "score": "0.5393365", "text": "public String getWorkflowId() {\n return this.workflowId;\n }", "title": "" }, { "docid": "5a2df9f97e39177f03e02dc9542f6323", "score": "0.53893256", "text": "public static Model getInstance(){\r\n\t\treturn Model.instance;\r\n\t}", "title": "" }, { "docid": "deec665bbbd0ca82c0341ad32b373907", "score": "0.5362837", "text": "Controller createController();", "title": "" }, { "docid": "deec665bbbd0ca82c0341ad32b373907", "score": "0.5362837", "text": "Controller createController();", "title": "" }, { "docid": "4bc4958a4fe6e457ec43b158094abf93", "score": "0.53380007", "text": "public static CoreWorkerManager getInstance() {\n\t\treturn dispatcher;\n\t}", "title": "" }, { "docid": "2c2b40e1aba0c527351d8e7644de5760", "score": "0.5335793", "text": "public static ControllerManager getManagerInstance(\n ) throws OSSException\n {\n if (s_defaultInstance == null)\n {\n // Only if the default instance wasn't set by other means create a new one\n // Synchronize just for the creation\n synchronized (IMPL_LOCK)\n {\n if (s_defaultInstance == null)\n {\n Class<? extends ControllerManager> defaultManager;\n \n defaultManager = ControllerManager.class;\n \n ClassFactory<ControllerManager> cf;\n \n cf = new ClassFactory<>(ControllerManager.class);\n \n setManagerInstance(cf.createInstance(defaultManager, \n defaultManager));\n }\n } \n }\n \n return s_defaultInstance;\n }", "title": "" }, { "docid": "60b0ac93773dd452a791e693c38c4b5a", "score": "0.5334849", "text": "public ValidationController getLightValidationController()\r\n\t{ \r\n\t\treturn this.lightValidationController;\r\n\t}", "title": "" }, { "docid": "509d06b04a3a0f58a3e83e5c80c0ce69", "score": "0.53292257", "text": "public Workspace getCurrentWorkspace () {\n return myWorkspaces.get(myController.getWorkspaceIndex());\n }", "title": "" }, { "docid": "4d55aaa2b7d13c977d8513b928f59ac8", "score": "0.53131455", "text": "public static LoginPageController getLoginPageController() {\n return new LoginPageController();\n }", "title": "" }, { "docid": "222281dba6064ee3111a3355555bcd56", "score": "0.53087425", "text": "public com.urbancode.anthill3.integration.WorkflowFacade getGetProjectWorkflowByNameReturn()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.urbancode.anthill3.integration.WorkflowFacade target = null;\n target = (com.urbancode.anthill3.integration.WorkflowFacade)get_store().find_element_user(GETPROJECTWORKFLOWBYNAMERETURN$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "title": "" }, { "docid": "132489d927bcdc4c6959e91b83664eea", "score": "0.5294687", "text": "public final Window getWindow() {\n if (controller == null) {\n return this.window;\n }\n return controller.getWindow();\n }", "title": "" }, { "docid": "50304badfa9ebe8f5370e4ccc266b752", "score": "0.5291635", "text": "public Class getExternalTransactionControllerClass() {\r\n return externalTransactionControllerClass;\r\n }", "title": "" }, { "docid": "46bf9440db29dcb32e3d6803b60ea030", "score": "0.5287999", "text": "public static BluetoothLEController getInstance(){\n if (sBluetoothLEController == null){\n synchronized (BluetoothLEController.class){\n if (sBluetoothLEController == null){\n sBluetoothLEController = new BluetoothLEController();\n }\n }\n }\n return sBluetoothLEController;\n }", "title": "" }, { "docid": "273c9c05d02d654c4408c3a042baa8e3", "score": "0.5285495", "text": "public CommunicationProtocol controllerCom()\n {\n return controllerCom;\n }", "title": "" }, { "docid": "711921b7724b3f4ca6a9a0e4505768aa", "score": "0.52830327", "text": "public ValidationController getLfitnatoperListValidationController()\r\n\t{ \r\n\t\treturn this.lfitnatoperListValidationController;\r\n\t}", "title": "" }, { "docid": "4d6838ff429c487ea8641d5e0cd592d3", "score": "0.5267756", "text": "public String getWorkflowAction() {\n return workflowAction;\n }", "title": "" }, { "docid": "804557226181b9f2a2112f187456c941", "score": "0.52619386", "text": "public EditorController getEditorController() {\n return editorController;\n }", "title": "" }, { "docid": "ce540a229f5cac52d1f58a5bc1102396", "score": "0.52610475", "text": "public static ModelFacade getInstance() {\n if (model.userVerificationModel == null) {\n model.init();\n }\n return model;\n }", "title": "" }, { "docid": "722f27662ec7a85d7888c2a8e398500a", "score": "0.5237338", "text": "@Override\r\n\tpublic IWFlowDao workflow() {\n\t\treturn iwfd;\r\n\t}", "title": "" }, { "docid": "9794e27d73e116d0238157a98b8c90c5", "score": "0.5228237", "text": "public static SyncHandler getInstance() {\r\n\t\t\r\n\t\tif(syncHandler == null) {\r\n\t\t\tsyncHandler = new SyncHandler();\r\n\t\t}\r\n\t\t\r\n\t\treturn syncHandler;\r\n\t}", "title": "" } ]
7b9918d034e389d54c26c88e7a945fc0
"Extra" characters in header Normally, the header should be ==Language==. However, we also allow spaces in the header, and allow the header to be a link. So == Language == and ==[[Language]]== Should also be allowed.
[ { "docid": "e1aa1b2653fbc89b11ceb78be164cde0", "score": "0.5921722", "text": "@Test\n public void allowSingleSpaceAroundLanguage() throws Throwable {\n TestableLanguagePrefilter pf = make();\n\n startText(pf);\n String header = \"== \" + LANGUAGE + \"==\";\n sendCharacters(pf, header);\n sendCharacters(pf, \"First line to keep\\nKeep Line 2\");\n sendCharacters(pf, \"Keep Line 3\");\n sendCharacters(pf, \"which is longer than the rest\");\n endText(pf);\n assertEquals(header + \"First line to keep\\nKeep Line 2Keep Line 3which is longer than the rest\",\n pf.sent());\n }", "title": "" } ]
[ { "docid": "e8b758d8c920260e06dc6b8bb21ab409", "score": "0.5707184", "text": "@Test\n public void targetHeaderWIllClose() throws Throwable {\n TestableLanguagePrefilter pf = make();\n\n startText(pf);\n sendCharacters(pf, \"abcdefg\");\n sendCharacters(pf, \"hijklmnop\");\n sendCharacters(pf, LANGUAGE_HEADER);\n sendCharacters(pf, \"\\nLine Jeden\\nKeep Line 2\\n\");\n sendCharacters(pf, \"Keep Line 3\");\n sendCharacters(pf, \"which is longer than the rest\");\n sendCharacters(pf, LANGUAGE_HEADER);\n sendCharacters(pf, \" the capital\");\n sendCharacters(pf, \"==New Mexico==\");\n sendCharacters(pf, \"Other data\");\n\n endText(pf);\n assertEquals(LANGUAGE_HEADER + \"\\nLine Jeden\\nKeep Line 2\\nKeep Line 3which is longer than the \" +\n \"rest\" + LANGUAGE_HEADER, pf.sent());\n }", "title": "" }, { "docid": "305ad9d3dd5261711ee037f3c82db5fb", "score": "0.5489128", "text": "@Test\n public void headerCanBeEndOfText() throws Throwable {\n TestableLanguagePrefilter pf = make();\n\n startText(pf);\n sendCharacters(pf, LANGUAGE_HEADER);\n endText(pf);\n\n assertEquals(LANGUAGE_HEADER, pf.sent());\n }", "title": "" }, { "docid": "6893c3bfac45d629b8f5712f710c64bd", "score": "0.53559625", "text": "@Test\n public void languageNotRegexp_Positive() throws Throwable {\n TestableLanguagePrefilter pf = new TestableLanguagePrefilter(\"P[ae]g\");\n\n startText(pf);\n String header = \"==[[P[ae]g]]==\";\n sendCharacters(pf, header);\n sendCharacters(pf, \"First line to keep\\nKeep Line 2\");\n sendCharacters(pf, \"Keep Line 3\");\n sendCharacters(pf, \"which is longer than the rest\");\n endText(pf);\n assertEquals(header + \"First line to keep\\nKeep Line 2Keep Line 3which is longer than the rest\",\n pf.sent());\n }", "title": "" }, { "docid": "5e1593a58c98bb24fd80ba4090949937", "score": "0.5298563", "text": "public static String replaceSpecialCharsInHeader(String headerValue){\n\t\t\tif(headerValue != null && headerValue.length() > 0){\n\t\t\t\theaderValue = headerValue.replace(\"\\r\", \"&nbsp;\");\n\t\t\t\theaderValue = headerValue.replace(\"\\n\", \"&nbsp;\");\n\t\t\t\t}\n\t\t\treturn headerValue;\n\t\t}", "title": "" }, { "docid": "30c7f10ccf7851eaf0115a0f8565a68a", "score": "0.5293608", "text": "public static String generateAcmoHeader() {\n return \"!,Experiment ID,,Field Overlay ID,Seasonal Strategy ID,\\\"Name of experiment, field test or survey\\\",Treatment Name,4-character Climate ID code,Climate replication number for multiple realizations of weather data (ask Alex),Region ID,Regional stratum identification number,RAP ID,\\\"Management regimen ID, for multiple management regimens per RAP\\\",Names of institutions involved in collection of field or survey data,\\\"Crop rotation indicator (=1 to indicate that this is a continuous, multi-year simulation, =0 for single year simulations)\\\",Weather station ID,Soil ID,Site Latitude,Site Longitude,Crop type (common name) ,Crop model-specific cultivar ID,Cultivar name,Start of simulation date,Planting date,\\\"Observed harvested yield, dry weight\\\",Observed total above-ground biomass at harvest,Observed harvest date,Total number of irrigation events,Total amount of irrigation,Type of irrigation application,Total number of fertilizer applications,Total N applied,Total P applied,Total K applied,Manure and applied oganic matter,Total number of tillage applications,\\\"Tillage type (hand, animal or mechanized)\\\",\\\"Short name of crop model used for simulations (e.g., DSSAT, APSIM, Aquacrop, STICS, etc.)\\\",Model name and version number of the crop model used to generate simulated outputs,\\\"Simulated harvest yield, dry matter\\\",\\\"Simulated above-ground biomass at harvest, dry matter\\\",Simulated anthesis date,Simulated maturity date,Simulated harvest date,\\\"Simulated leaf area index, maximum\\\",Total precipitation from planting to harvest,\\\"Simulated evapotranspiration, planting to harvest\\\",Simulated N uptake during season,Simulated N leached up to harvest maturity,\\n!,text,number,text,text,text,text,code,number,code,number,code,code,text,number,text,text,decimal degrees,decimal degrees,text,text,text,yyyy-mm-dd,yyyy-mm-dd,kg/ha,kg/ha,yyyy-mm-dd,number,mm,text,number,kg[N]/ha,kg[P]/ha,kg[K]/ha,kg/ha,#,text,text,text,kg/ha,kg/ha,yyyy-mm-dd,yyyy-mm-dd,yyyy-mm-dd,m2/m2,mm,mm,kg/ha,kg/ha,\\n#,EID,RUN#,FIELD_OVERLAY,SEASONAL_STRATEGY,EXNAME,TRT_NAME,CLIM_ID,CLIM_REP,REG_ID,STRATUM,RAP_ID,MAN_ID,INSTITUTION,ROTATION,WST_ID,SOIL_ID,FL_LAT,FL_LONG,CRID_text,CUL_ID,CUL_NAME,SDAT,PDATE,HWAH,CWAH,HDATE,IR#C,IR_TOT,IROP_text,FE_#,FEN_TOT,FEP_TOT,FEK_TOT,OM_TOT,TI_#,TIIMP_text,CROP_MODEL,MODEL_VER,HWAH_S,CWAH_S,ADAT_S,MDAT_S,HADAT_S,LAIX_S,PRCP_S,ETCP_S,NUCM_S,NLCM_S,\\n\";\n }", "title": "" }, { "docid": "e1434543f9f83967d49c0d5faec423fe", "score": "0.5245107", "text": "@Test\n\tvoid sanitized() throws Throwable {\n\t\tFormatterStep step = LicenseHeaderStep.headerDelimiter(\"LicenseHeader\", \"contentstart\").build();\n\t\tString alreadyCorrect = \"LicenseHeader\\ncontentstart\";\n\t\tAssertions.assertEquals(alreadyCorrect, step.format(alreadyCorrect, new File(\"\")));\n\t\tAssertions.assertSame(alreadyCorrect, step.format(alreadyCorrect, new File(\"\")));\n\t}", "title": "" }, { "docid": "d8a4018adf739dd64e7f70925f869d5c", "score": "0.52239573", "text": "private boolean isUnreservedURIChar(byte b) {\n // An upper case letter?\n if((ASCII_UPPER_A <= b)&&(ASCII_UPPER_Z >= b))\n\treturn true;\n // A lower case letter?\n if((ASCII_LOWER_A <= b)&&(ASCII_LOWER_Z >= b))\n\treturn true;\n // A decimal digit?\n if((ASCII_ZERO <= b)&&(ASCII_NINE >= b))\n\treturn true;\n // An unreserved, but not alphanumeric character?\n if((b == ASCII_MINUS)||(b == ASCII_UNDERSCORE)||(b == ASCII_DOT)||(b == ASCII_BANG)||(b == ASCII_TILDE)||\n\t (b == ASCII_STAR)||(b == ASCII_QUOTE)||(b == ASCII_OPEN_BRACKET)||(b == ASCII_CLOSED_BRACKET))\n\treturn true;\n\n // Anything else is not allowed\n return false;\n }", "title": "" }, { "docid": "3d2ef9bb020ff0bcfbbb6ba73339c0fb", "score": "0.5205643", "text": "protected void validateHeader() {\r\n\r\n\t}", "title": "" }, { "docid": "b8a58da16d5fd92a83a8ab1cddd3820a", "score": "0.50206363", "text": "@Test\n public void testAttributeHeader() {\n Rule rule = Grammar.AttributeHeader;\n\n valid(rule, UIDENTIFIER, LIDENTIFIER);\n valid(rule, UIDENTIFIER, UNION_OP, UIDENTIFIER, LIDENTIFIER);\n valid(rule, VALUE_MODIFIER, LIDENTIFIER);\n }", "title": "" }, { "docid": "67c045179d495a727ecd6c1a3eec461d", "score": "0.5017455", "text": "public void testFilterHeaderNameString() {\n String parameter = \"\\r1\\n2 3(4)5<6>7@8/9,10;11:12\\\\13[14]15?16=17{18}\";\n String expectedValue = \"123456789101112131415161718\";\n String returnedValue = new String(StringUtils.filterHeaderName(parameter));\n assertEquals(expectedValue, returnedValue); \n }", "title": "" }, { "docid": "e3c0e794c6481ad106b0573eaaa2689a", "score": "0.5011472", "text": "@Test\n public void whenStrAnyLangOrHasNonAlphaNum_ThenRetTrue() {\n String str1 = \"##მშვენიერი@\";\n //special character with Turkish text\n String str2 = \"müthiş#$\";\n //Error message\n String ERROR_MSG = \"Test failed, no alphanumeric char found in \";\n\n assertTrue(ERROR_MSG + str1, NonAlphaNumRegexChecker.containsNonAlphanumeric(str1));\n assertTrue(ERROR_MSG + str2, NonAlphaNumRegexChecker.containsNonAlphanumeric(str2));\n }", "title": "" }, { "docid": "ce9f428d72fe23f0dae92c0aecff3ed5", "score": "0.49913672", "text": "public int check_header(String in, String comp){\n\t\tfor (int i =0; i < comp.length(); i++){\n\t\t\tif (in.charAt(i) != comp.charAt(i))\n\t\t\t\treturn -1;\n\t\t}\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "39b659dd0f4fea555980e2b629366c6a", "score": "0.49626642", "text": "@Override\r\n\tpublic String getHeader(String name) {\r\n\r\n\t\tString value = super.getHeader(encodeXSS(name));\r\n\r\n\t\tif (value != null) {\r\n\t\t\tvalue = encodeXSS(value);\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "2471944bfcbded542770cc7e2782cfd4", "score": "0.4947776", "text": "private void readHeader() {\n\n Pattern regex = Pattern.compile(\"^#([N|C|O|P|R])\\\\s*(\\\\w.*)$\", Pattern.MULTILINE);\n Matcher matcher = regex.matcher(this.rleString);\n\n while (matcher.find()) {\n String commentHolder;\n if (matcher.group(1).equalsIgnoreCase(\"N\")) {\n nameOfRle = matcher.group(2);\n testHeader.append(nameOfRle).append(\"\\n\");\n } else if (matcher.group(1).equalsIgnoreCase(\"C\")) {\n commentHolder = matcher.group(2);\n commentOfRle.append(commentHolder).append(\"\\n\");\n testHeader.append(commentHolder).append(\"\\n\");\n } else if (matcher.group(1).equalsIgnoreCase(\"O\")) {\n authorOfRle = matcher.group(2);\n testHeader.append(authorOfRle).append(\"\\n\");\n }\n\n }\n }", "title": "" }, { "docid": "1b5dae20d55adcf6053db2e1efedaec0", "score": "0.4930221", "text": "public String getHeader(String text){\n\t\tString header=null;\r\n\t\tif(text.contains(\"Fatigue\")||text.contains(\"Sensory\"))\r\n\t\t{\r\n\t\t\theader=\"Physical\";\r\n\t\t}\r\n\t\telse if(text.contains(\"Self-Monitoring\")||text.contains(\"Attention\"))\r\n\t\t{\r\n\t\t\theader=\"Behavioural / Social\";\r\n\t\t}\r\n\t\telse\r\n\t\t\theader=\"General Cognition\";\r\n\t\t\r\n\t\treturn header;\r\n\t}", "title": "" }, { "docid": "2b949c61f2993cd2785a1515058fc627", "score": "0.492537", "text": "@Named(\"commonHeaderWithLang\")\n Map<String, Object> provideCommonHeaderWithLang();", "title": "" }, { "docid": "a12fd8e98d59172b6dbd5ba0f7fb5f15", "score": "0.49095845", "text": "@Test\n public void regexp_positive() throws Throwable {\n TestableLanguagePrefilter pf = new TestableLanguagePrefilter(Pattern.compile(\"P[ae]g\"));\n\n startText(pf);\n String header = \"==[[Peg]]==\";\n sendCharacters(pf, header);\n sendCharacters(pf, \"First line to keep\\nKeep Line 2\");\n sendCharacters(pf, \"Keep Line 3\");\n sendCharacters(pf, \"which is longer than the rest\");\n endText(pf);\n assertEquals(header + \"First line to keep\\nKeep Line 2Keep Line 3which is longer than the rest\",\n pf.sent());\n }", "title": "" }, { "docid": "70e86e8c4ce3068fa4cb0c78a1437e2d", "score": "0.48481894", "text": "@Test\n public void whenStrAnyLangOrHasNoNonAlphaNum_ThenRetFalse() {\n String str1 = \"მშვენიერი\";\n //Turkish text with no special char\n String str2 = \"müthiş\";\n //Latin text with no special char\n String str3 = \"Wonderful\";\n //Error message\n String ERROR_MSG = \"Test failed, no alphanumeric char found in \";\n\n assertFalse(ERROR_MSG + str1, NonAlphaNumRegexChecker.containsNonAlphanumeric(str1));\n assertFalse(ERROR_MSG + str2, NonAlphaNumRegexChecker.containsNonAlphanumeric(str2));\n assertFalse(ERROR_MSG + str3, NonAlphaNumRegexChecker.containsNonAlphanumeric(str3));\n }", "title": "" }, { "docid": "2f12b39605ef9de9d9cc92e4210bb30b", "score": "0.48463368", "text": "private static MwiHeader parseHeader(String header) {\n MwiHeader mwiHeader = new MwiHeader();\n String tmp = header;\n String str = header;\n int begin = 0;\n int end = -1;\n for (int i = 0; i < sHeaderTag.length; i++) {\n if (i + 1 < sHeaderTag.length) {\n end = tmp.indexOf(sHeaderTag[i + 1]);\n }\n if (end < 0 || i + 1 >= sHeaderTag.length) {\n end = tmp.length();\n }\n Log.d(TAG, \"parseHeader begin: \" + begin + \", end: \" + end);\n if (begin >= 0 && begin < tmp.length() && end >= 0 && end <= tmp.length()) {\n str = tmp.substring(begin, end);\n tmp = tmp.substring(str.length());\n Log.d(TAG, \"parseHeader str: \" + str + \", tmp: \" + tmp);\n } else {\n break;\n }\n\n String content = parseString(sHeaderTag[i], str).trim();\n Log.d(TAG, \"parseHeader content: \" + content);\n if (str.contains(MwiHeader.Label.MsgAccount.getLabel())) {\n mwiHeader.setMsgAccount(content);\n }\n }\n return mwiHeader;\n }", "title": "" }, { "docid": "28f687f5481f0d118d71c350528e136e", "score": "0.4815691", "text": "java.lang.String getHeader();", "title": "" }, { "docid": "ce8f674839715796586516755eaacfe8", "score": "0.48144063", "text": "@Override\n protected void handleHeader(String[] header) {\n }", "title": "" }, { "docid": "81eb924db5cbca5b6dfddb1892c7dd40", "score": "0.48089775", "text": "static boolean hasHeader(String[] l1, String[] l2) {\n return allStrings(l1) && !allStrings(l2);\n }", "title": "" }, { "docid": "1825086e466affa683acfd2b82f0c867", "score": "0.48051918", "text": "private boolean isHeaderInfo(String p_value)\n {\n if (p_value == null || \"\".equals(p_value.trim()))\n {\n return false;\n }\n\n p_value = p_value.trim();\n if (p_value.indexOf(\"...\") > -1\n || TTXConstants.GS_ENCODING.equalsIgnoreCase(p_value)\n || TTXConstants.GS_DOCUMENT_FORMAT.equalsIgnoreCase(p_value)\n || TTXConstants.GS_PLACEHOLDER_FORMAT.equalsIgnoreCase(p_value)\n || TTXConstants.GS_SOURCE_LOCALE.equalsIgnoreCase(p_value)\n || TTXConstants.GS_TARGET_LOCALE.equalsIgnoreCase(p_value)\n || TTXConstants.GS_PAGEID.equalsIgnoreCase(p_value)\n || TTXConstants.GS_WORKFLOW_ID.equalsIgnoreCase(p_value)\n || TTXConstants.GS_TASK_ID.equalsIgnoreCase(p_value)\n || TTXConstants.GS_EXACT_MATCH_WORD_COUNT\n .equalsIgnoreCase(p_value)\n || TTXConstants.GS_FUZZY_MATCH_WORD_COUNT\n .equalsIgnoreCase(p_value)\n || TTXConstants.GS_EDIT_ALL.equalsIgnoreCase(p_value)\n || \"GS:InstanceID\".equalsIgnoreCase(p_value)\n || TTXConstants.GS_POPULATE_100_TARGET_SEGMENTS.equalsIgnoreCase(p_value))\n {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "808f1818d1fb4c057eccd58a9333486f", "score": "0.47995585", "text": "@Test\n public void passesDataForLanguage_StartOfText_noNewLine() throws Throwable {\n TestableLanguagePrefilter pf = make();\n\n startText(pf);\n sendCharacters(pf, LANGUAGE_HEADER + \"Keep Line 1\\nKeep Line 2\");\n sendCharacters(pf, \"Keep Line 3\");\n sendCharacters(pf, \"which is longer than the rest\");\n endText(pf);\n assertEquals(LANGUAGE_HEADER + \"Keep Line 1\\nKeep Line 2Keep Line 3which is longer than the rest\", pf.sent());\n }", "title": "" }, { "docid": "547a9a96e0fb8804eb5f414948bd799c", "score": "0.47948214", "text": "private LexerHeaderAst parseHeader() throws ParseError, IOException {\n\t\tif (token.type() != LexTokens.IDENT || ! token.value().equals(\"lexer\")) {\n\t\t\terror(tokenSpan(), \"expecting 'lexer' keyword\");\n\t\t}\n\t\tSpan ruleSpan = tokenSpan();\n\t\tscanToken();\n\t\tif (token.type() != LexTokens.IDENT) {\n\t\t\terror(tokenSpan(), \"expecting <IDENT>\");\n\t\t}\n\t\truleSpan = ruleSpan.merge(tokenSpan());\n\t\tLexerIdentAst name = new LexerIdentAst(tokenSpan(), (String)token.value());\n\t\tscanToken();\n\t\tif (token.type() != LexTokens.SEMI) {\n\t\t\terror(tokenSpan(), \"expecting ';'\");\n\t\t}\n\t\truleSpan = ruleSpan.merge(tokenSpan());\n\t\tscanToken();\n\t\treturn new LexerHeaderAst(ruleSpan, name);\n\t}", "title": "" }, { "docid": "97b65f730fe884208e49867cc7350df7", "score": "0.4793181", "text": "protected void decodeHeader() {\r\n\r\n\t}", "title": "" }, { "docid": "90a64d09898c94ff5e7082686ca4f433", "score": "0.4778319", "text": "protected boolean checkHeaderSyntax(String hdrName, String hdrVal, boolean hdrNameHasSpace)\n\t\t\tthrows HttpParserException {\n\t\tif (strictParser) {\n\t\t\tif (hdrName.length() == 0) {\n\t\t\t\tthrow new HttpParserException(\"Empty http header name\");\n\t\t\t}\n\n\t\t\tif (hdrNameHasSpace) {\n\t\t\t\tthrow new HttpParserException(\"http header name contains space\");\n\t\t\t}\n\t\t} else {\n\t\t\tif (hdrName.length() == 0) {\n\t\t\t\t// Ignores empty header names !\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a27aff9afd6b67078b7a84fe95919f62", "score": "0.4772825", "text": "protected String getHeader()\n {\n return header; \n }", "title": "" }, { "docid": "f8e8977450aff0309266a7987677b89f", "score": "0.47663006", "text": "HeaderExpression getHeader();", "title": "" }, { "docid": "06cc77b948af023308568fa814538b18", "score": "0.4729959", "text": "@Test\n public void testKeyWordCommentedValue() throws Exception {\n String cardString = new HeaderCard(\"XX\", null, \"= COMMENT\", false).toString();\n assertNotEquals('=', cardString.charAt(8));\n Assert.assertTrue(cardString.indexOf('=') > 8);\n HeaderCard card = HeaderCard.create(cardString);\n assertEquals(\"XX\", card.getKey());\n assertNull(card.getValue());\n assertEquals(\"= COMMENT\", card.getComment());\n }", "title": "" }, { "docid": "f97341b18ceddbea9bb62c158a76301f", "score": "0.47291133", "text": "@Test\n\tpublic void pubMedStringWithSpacesShouldBeValid() throws IOException {\n\t\tassertTrue(dbac.isPubMedStringValid(\"Exp1[ExpID] Human[Species]\"));\n\t}", "title": "" }, { "docid": "016aac5aa21cc5c06a55df1ccf31aa30", "score": "0.47112778", "text": "String getHeader();", "title": "" }, { "docid": "016aac5aa21cc5c06a55df1ccf31aa30", "score": "0.47112778", "text": "String getHeader();", "title": "" }, { "docid": "e1c460f486f6ff8ae6f40fe7a913db98", "score": "0.46999604", "text": "@Test\n public void whenStrNonLatinOrHasNonAlphaNum_ThenRetTrue() {\n String str1 = \"##მშვენიერი@\";\n //special character with Turkish text\n String str2 = \"müthiş#$\";\n //No special character in Georgian text\n String str3 = \"მშვენიერი\";\n //Error message\n String ERROR_MSG = \"Test failed, no alphanumeric char found in \";\n\n assertTrue(ERROR_MSG + str1, NonAlphaNumRegexChecker.isNonAlphanumeric(str1));\n assertTrue(ERROR_MSG + str2, NonAlphaNumRegexChecker.isNonAlphanumeric(str2));\n assertTrue(ERROR_MSG + str3, NonAlphaNumRegexChecker.isNonAlphanumeric(str3));\n }", "title": "" }, { "docid": "3354714252e37f3eb24f0c36c636827c", "score": "0.4635864", "text": "public void beginHeaderStringNotEquals(WebRequest testRequest) {\n\n testRequest.addHeader(HEADER_KEY, \"abc\");\n\n }", "title": "" }, { "docid": "8e975831395cf04850bb1c712b826c5d", "score": "0.46298277", "text": "private static void setHeader(String header) {\n\tHelper.line(80, \"-\");\r\n\tSystem.out.println(header);\r\n\tHelper.line(80, \"-\");\r\n\t\r\n}", "title": "" }, { "docid": "aaf3367ff2e63bf77b2d27ca78b42f63", "score": "0.46275225", "text": "@RequestMapping(value = \"headerFillerHandler\")\n public String fillHeader(){\n String naam = user.getFirstName();\n if (naam.equals(\"\")) {\n naam = \"gast\";\n }\n DateTimeFormatter formatter=DateTimeFormatter.ofPattern(\"kk:mm ' op ' dd MMM yyyy\");\n String nu=LocalDateTime.now().format(formatter);\n String header = \"Welkom \" + naam + \". Het is nu \" + nu +\". \";\n return header;\n }", "title": "" }, { "docid": "d0b0cd2e5eb5a5388c4bc4d9ab71ce11", "score": "0.46144524", "text": "com.excentus.en.webservice.enWebService.headerRequest.HeaderDocument.Header getHeader();", "title": "" }, { "docid": "6e1a6e05afafebf03a58f7cf25cb8a05", "score": "0.46110362", "text": "@Test\n public void illegalSymbolToken() throws Exception {\n checkToken(\"??@#$^&$#\", \"LEX_ERROR\");\n //a bell\n checkToken(Character.toString( (char) 7), \"LEX_ERROR\");\n }", "title": "" }, { "docid": "221d32a7d059337ec8fdbc4fd331b21b", "score": "0.46089277", "text": "@java.lang.Override\n public boolean hasHeaderFilter() {\n return filterSpecifierCase_ == 8;\n }", "title": "" }, { "docid": "a51d101cfc2b78015014de18a2d69245", "score": "0.45972952", "text": "public void updateHeader(String h, String v)\n throws Exception {\n String key = h.toLowerCase();\n if (headers.containsKey(key)) {\n String previousValue = headers.get(key).getValue();\n headers.remove(key);\n headers.put(key, new HttpFields(key, previousValue + v));\n } else {\n throw new Exception(\"Header malformed - unfolded header lines must not start with space or horizontal tab\");\n }\n }", "title": "" }, { "docid": "1e56a374d327169b866db9a6a99e958e", "score": "0.4591836", "text": "private String quote(String value) {\n\treturn MimeUtility.quote(value, HeaderTokenizer.MIME);\n }", "title": "" }, { "docid": "6d8a81d5c55c18c891ebb5b67a12662c", "score": "0.4585432", "text": "private boolean checkMsgHeader(String firstChar, String numStr)\r\n\t{\r\n\t\t//if the first character is equal to a valid message character e.g. S, E, or T\r\n\t\tif((firstChar.equalsIgnoreCase(\"s\") || firstChar.equalsIgnoreCase(\"e\")||firstChar.equalsIgnoreCase(\"t\")))\r\n\t\t{\r\n\t\t\tint limit1 = 48; //ascii code for '0'\r\n\t\t int limit2 = 57; //ascii code for '9'\r\n\t\t \r\n\t\t //checks to see the 9 characters following the first are numbers\r\n\t\t for(int x=0; x<numStr.length(); x++)\r\n\t\t {\r\n\t\t char letter = numStr.charAt(x);\r\n\t\t int number = (int)letter;\r\n\t\t \r\n\t\t //if a character is not a number return false\r\n\t\t if((number < limit1 || number > limit2))\r\n\t\t {\r\n\t\t \t return false;\r\n\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t return true;\r\n\t\t}\r\n\t\t//else is not a valid header\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6703115d8181303704999bedcff723a2", "score": "0.45850277", "text": "public String buildAcceptEncodingHeader()\n {\n //Essentially, we want to assign nonzero quality values to all those specified;\n float delta = 1.0f/(_acceptCompression.length+1);\n float currentQuality = 1.0f;\n\n //Special case so we don't end with an unnecessary delimiter\n StringBuilder acceptEncodingValue = new StringBuilder();\n for(int i=0; i < _acceptCompression.length; i++)\n {\n EncodingType t = _acceptCompression[i];\n\n if(i > 0)\n {\n acceptEncodingValue.append(CompressionConstants.ENCODING_DELIMITER);\n }\n acceptEncodingValue.append(t.getHttpName());\n acceptEncodingValue.append(CompressionConstants.QUALITY_DELIMITER);\n acceptEncodingValue.append(CompressionConstants.QUALITY_PREFIX);\n acceptEncodingValue.append(String.format(\"%.2f\", currentQuality));\n currentQuality = currentQuality - delta;\n }\n\n return acceptEncodingValue.toString();\n }", "title": "" }, { "docid": "37b45cf75b4e05f229d6fd7587df2c62", "score": "0.4580847", "text": "protected abstract boolean defineUtf8CharacterEncodingRequest();", "title": "" }, { "docid": "b288a1fe13f9c15bdce2a98cc7c3d324", "score": "0.4574403", "text": "private boolean validateToken(String tokenHeader) {\n return true;\r\n }", "title": "" }, { "docid": "381adbb61dc27c751e300f104a80fd88", "score": "0.45726165", "text": "@Test\n public void illegalIdentifierToken() throws Exception {\n checkToken(\"_aaaa\", \"LEX_ERROR\");\n checkToken(\"22aaaa\", \"LEX_ERROR\");\n }", "title": "" }, { "docid": "55f8bb9869798d35b0b93020181e8299", "score": "0.45694208", "text": "private static String treatAuthorizationHeader(String authorizationHeader){\n return authorizationHeader!=null \n ? authorizationHeader.replace(\"Bearer \",\"\")\n : null;\n }", "title": "" }, { "docid": "fb033143308475543415f0a31e615291", "score": "0.45682538", "text": "public boolean checkAuthtokenisvalidformate(String l_authorizationHeader) {\n\t\treturn l_authorizationHeader != null\r\n\t\t\t\t&& (l_authorizationHeader.toLowerCase().startsWith(AUTHENTICATION_SCHEME.trim().toLowerCase() + \" \"));\r\n\r\n\t}", "title": "" }, { "docid": "0be2f34af7c35d0f5795e45627a17127", "score": "0.4566513", "text": "private String checkEntity(String preamble, String term) {\r\n/* 505 */ return (\";\".equals(term) && isValidEntity(preamble)) ? ('&' + preamble) : (\"&amp;\" + preamble);\r\n/* */ }", "title": "" }, { "docid": "8569b620fbd44599f829b77cdb30f6d8", "score": "0.45652705", "text": "protected boolean isValidHeader(XSSFRow header, String[] headerStrings) {\n\t\tfor(int i = 0; i < headerStrings.length; i++) {\t\n\t\t\t//HSSFCell cell = (HSSFCell) cellIte.next();\t\t\t\n\t\t\tString headerString=header.getCell((short) i).getStringCellValue();\n\t\t\tlogger.debug(headerStrings[i]+ \":::\"+headerString);\n\t\t\tif(!headerStrings[i].equalsIgnoreCase(headerString)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a19039667e67c451d5359e121d6f010b", "score": "0.4559905", "text": "public void prnHEADER()\n\t{\n\t\ttry\n\t\t{\n\t\t if(txtMNHDR.getText().length() ==0)\n\t\t strMNHDR = \"CERTIFICATE OF ANAYSIS\";\n\t\t else strMNHDR = txtMNHDR.getText().trim(); \n\t\t\tcl_dat.M_PAGENO++;\n\t\t\tdosREPORT.writeBytes(\"\\n\\n\\n\");\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t{\t\t\t\n\t\t\t//\tdosREPORT.writeBytes(\"</STYLE>\");\n\t\t\t//\tdosREPORT.writeBytes(\"<PRE style =\\\" font-size : 15 pt \\\">\");\n\t\t\t//\tdosREPORT.writeBytes(\"\\n\\n\\n<B>\"+ padSTRING('L',\"TO WHOMSOEVER IT MAY CONCERN\",50)+\"\\n\\n\");\n\t\t\t//\tdosREPORT.writeBytes(\"</STYLE>\");\n\t\t\t\tdosREPORT.writeBytes(\"<PRE style =\\\" font-size : 13 pt \\\">\");\n\t\t\t dosREPORT.writeBytes(padSTRING('L',strMNHDR,52)+\"\\n\\n\");\n\t\t\t\tdosREPORT.writeBytes(\"</B></STYLE>\");\n\t\t\t\tdosREPORT.writeBytes(\"<PRE style =\\\" font-size : 9 pt \\\">\");\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst))\n\t\t\t\t{\n\t\t\t//\t\tprnFMTCHR(dosREPORT,M_strENH);\t\t\t\t\t\n\t\t\t//\t\tdosREPORT.writeBytes(\"\\n\\n\\n\"+ padSTRING('L',\"TO WHOMSOEVER IT MAY CONCERN\",40)+\"\\n\\n\");\n\t\t\t//\t\tprnFMTCHR(dosREPORT,M_strNOENH);\n\t\t\t\t\tprnFMTCHR(dosREPORT,M_strBOLD);\n\t\t\t\t\tdosREPORT.writeBytes(padSTRING('L',strMNHDR,62)+\"\\n\");\n\t\t\t\t\tprnFMTCHR(dosREPORT,M_strNOBOLD);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//dosREPORT.writeBytes(\"\\n\\n\\n\"+ padSTRING('L',\"TO WHOMSOEVER IT MAY CONCERN\",61)+\"\\n\\n\");\n\t\t\t\t\tdosREPORT.writeBytes(padSTRING('L',strMNHDR,58)+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(cl_dat.M_PAGENO ==1)\n\t\t\t{\n\t\t\t dosREPORT.writeBytes(\"\\n\");\n\t\t\t dosREPORT.writeBytes(txaHEADR.getText().trim());\n\t\t\t \n\t\t\t}\n\t\t\tdosREPORT.writeBytes(\"\\n\\n\"+padSTRING('R',\"Order Reference : \" +txtINDNO.getText().trim(),strDOTLN.length()-21));\n\t\t//\tdosREPORT.writeBytes(\"Date : \"+cl_dat.M_strLOGDT_pbst);\n\t\t\tdosREPORT.writeBytes(\"\\n\"+padSTRING('R',\"Customer : \"+ txtPRTDS.getText().trim(),strDOTLN.length()-21));\n\t\t\tdosREPORT.writeBytes(\"Page No : \"+cl_dat.M_PAGENO);\n\t\t\t\n\t\t\tdosREPORT.writeBytes(\"\\n\"+strDOTLN);\n\t\t\tdosREPORT.writeBytes(\"\\nContainer No. \");\n\t\t\tdosREPORT.writeBytes(\"\\n Grade Lot No. \");// MFI DSP IZOD TS ELG VICAT RSM\");\n\t\t\tdosREPORT.writeBytes(stbQPRDS.toString());\n\t\t\tdosREPORT.writeBytes(\"\\n \"+stbUOMCD.toString());\n\t\t\tdosREPORT.writeBytes(\"\\nTest Method \"+strTSMCD);\n\t\t\tdosREPORT.writeBytes(\"\\n\"+strDOTLN);\n\t\t\t\n\t\t\tcl_dat.M_intLINNO_pbst = 10;\n\t\t\tif((txaHEADR.getText().length() >0)&&(cl_dat.M_PAGENO ==1))\n\t\t\t{\n\t\t\t //System.out.println(txaHEADR.getText().length()/90);\n\t\t\t cl_dat.M_intLINNO_pbst+= txaHEADR.getText().length()/90;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"prnHEADER\");\n\t\t}\n\t}", "title": "" }, { "docid": "c32d2dace33c5666204c3a2d987dd1d3", "score": "0.455451", "text": "public String getHeader(){\n return header.decodeToString();\n }", "title": "" }, { "docid": "5cdc383840fa91118414fbef93220b6a", "score": "0.45541698", "text": "public void setLangH(String langh) {\n\t\t\t this.langh = langh;\r\n\t\t }", "title": "" }, { "docid": "aab3920816ac82539d9eafef96ac445c", "score": "0.45260814", "text": "public abstract String getHeader();", "title": "" }, { "docid": "b0bd25ad5e14a87ddaa3010defd9a090", "score": "0.452472", "text": "protected boolean isValidHeader(HSSFRow header, String[] headerStrings) {\n\t\tfor(int i = 0; i < headerStrings.length; i++) {\t\n\t\t\t//HSSFCell cell = (HSSFCell) cellIte.next();\n\t\t\tString headerString=header.getCell((short) i).getStringCellValue();\n\t\t\tlogger.debug(headerStrings[i]+ \":::\"+headerString);\n\t\t\tif(!headerStrings[i].equalsIgnoreCase(headerString)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7242d72d7845926f2e9f9050cd76f2cc", "score": "0.4522634", "text": "com.excentus.en.webservice.enWebService.headerRequest.HeaderDocument.Header addNewHeader();", "title": "" }, { "docid": "fbcc18ae0d0dd1a4d48f795f7c41ad2d", "score": "0.45171237", "text": "private void createValidDelimiters() {\n matchBoundaryTokens = new HashSet<>();\n matchBoundaryTokens.add(\"\\r\");\n matchBoundaryTokens.add(\"\\n\");\n matchBoundaryTokens.add(\"\\t\");\n matchBoundaryTokens.add(\"。\");\n matchBoundaryTokens.add(\".\");\n // matchBoundaryTokens.add(\",\"); // Really???\n matchBoundaryTokens.add(\"?\");\n matchBoundaryTokens.add(\"!\");\n matchBoundaryTokens.add(\":\");\n matchBoundaryTokens.add(\";\");\n }", "title": "" }, { "docid": "22c2b9d2e72538b9d1872963c2758307", "score": "0.45157734", "text": "private boolean haveExperimentalLanguagePrefix() {\n if (id.length > 2) {\n char c = id[1];\n if (c == HYPHEN || c == UNDERSCORE) {\n c = id[0];\n return c == 'x' || c == 'X' || c == 'i' || c == 'I';\n }\n }\n return false;\n }", "title": "" }, { "docid": "1e72e2c8aaff5ef620286d2c204a85a8", "score": "0.45146823", "text": "public static void main(String[] args) {\n\t\t\n\t\tString content = \"testContent;+\";\n\t\tString regex=\"^[a-zA-Z0-9\\u4E00-\\u9FA5]+$\";\n\t\tPattern pattern = Pattern.compile(regex);\n\t\tMatcher match=pattern.matcher(content);\n\t\tboolean b=match.matches();\n\t\tif(b)\n\t\t{\n\t\t\tSystem.out.println(\"true\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"包含非法字符!\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "cd232a3b7dabf03dc8430e80d10aad9d", "score": "0.4506977", "text": "@java.lang.Override\n public boolean hasHeaderFilter() {\n return filterSpecifierCase_ == 8;\n }", "title": "" }, { "docid": "daa8d7cbf6eacde962b78444aabd4559", "score": "0.449485", "text": "public boolean verifyHeadingString1(String str1) {\n logger.info(\"Verifying Heading 'D2C INSURANCE BROKING PVT. LTD.' On New Car Insurance Home Page\");\n return heading.getText().trim().equalsIgnoreCase(str1);\n }", "title": "" }, { "docid": "06b246c134a7b30a9e3511a3e7b741f3", "score": "0.4473202", "text": "public boolean containsHeader(String arg0)\n {\n return false;\n }", "title": "" }, { "docid": "9d1960a26cd7ca9e2f38f456edd52437", "score": "0.44677085", "text": "private static String[] getHeader() {\n return header;\n }", "title": "" }, { "docid": "5fab3dda03994c9e8d069c0795724322", "score": "0.44521266", "text": "public interface HttpHeaders {\n /**\n * The HTTP Header label that specifies the MD5 label.\n */\n public static final String CONTENT_MD5 = \"Content-MD5\";\n\n /**\n * The HTTP Header label that specifies the MD5 label.\n */\n public static final String CONTENT_LENGTH = \"Content-Length\";\n\n /**\n * The HTTP Header label that specifies the On Behalf Of information.\n */\n public static final String X_ON_BEHALF_OF = \"X-On-Behalf-Of\";\n\n /**\n * The HTTP Header label that specifies the Packaging information.\n */\n public static final String X_PACKAGING = \"X-Packaging\";\n\n /**\n * The HTTP Header label that specifies the desired Verbose status.\n */\n public static final String X_VERBOSE = \"X-Verbose\";\n\n /**\n * The HTTP Header label that specifies the desired NoOp status.\n */\n public static final String X_NO_OP = \"X-No-Op\";\n\n /**\n * An HTTP Header label that the server should not epect, and thus\n * created a corrupt header.\n */\n public static final String X_CORRUPT = \"X-wibble\";\n\n /**\n * The HTTP Header that specifies the error code information.\n */\n public static final String X_ERROR_CODE = \"X-Error-Code\";\n\n /**\n * The user agent.\n */\n public static final String USER_AGENT = \"User-Agent\";\n\n /**\n * The Slug header.\n */\n public static final String SLUG = \"Slug\";\n\n /**\n * Submission created\n */\n public static final int CREATED = HttpServletResponse.SC_CREATED;\n\n /**\n * Submission accepted.\n */\n public static final int ACCEPTED = HttpServletResponse.SC_ACCEPTED;\n\n /**\n * The HTTP Header that specifies the content disposition item. This is\n * used by the SWORD profile to identify the name for the deposit.\n */\n public static final String CONTENT_DISPOSITION = \"Content-Disposition\";\n}", "title": "" }, { "docid": "cbc193965c4f5d42d665c9e7672d8368", "score": "0.44421238", "text": "private boolean isDelim( char c ) {\n \n // return true jika c berisi salah satu dari karakter berikut\n if( (\" +-/*%^=()\".indexOf( c ) != -1 ) ) { \n return true;\n }\n // selain itu return false\n else {\n return false;\n }\n }", "title": "" }, { "docid": "57f055b6be87f2722d516121f5d6e36a", "score": "0.44100827", "text": "protected static String getHeader() {\n\t\treturn \"Lastname, firstname, age\";\n\t}", "title": "" }, { "docid": "591afb94d55bf4347a7461e51a2c244d", "score": "0.44002163", "text": "ImportHeader(String value) {\n this.value = value;\n }", "title": "" }, { "docid": "eec693333e2b3ea76fb4257dfbf72142", "score": "0.4400168", "text": "private static String removeHeader(String raw){\n if(raw == null){\n return \"\";\n }\n\n //Find the colon and remove it\n int index = raw.indexOf(\":\");\n if(index >= 0){\n return raw.substring(index+1);\n }else{\n return raw;\n }\n }", "title": "" }, { "docid": "c660b41441d075f8d9d272f3b028bee4", "score": "0.4385769", "text": "private String headerMaker(String str){\n return F_TAG_L + str + F_TAG_R;\n }", "title": "" }, { "docid": "7f848575fa4cb384468094bd2e345f6b", "score": "0.43855378", "text": "private void extractHeaderFromTags(HtmlNode node) {\n if (node.nodeName.equalsIgnoreCase(TITLE_TAG) && node.text.trim().length() > 0) {\n //headerNode = node;\n String header = node.text;\n if (header.contains(\" | \")) {\n header = header.substring(0, header.indexOf(\" | \"));\n } else if (header.contains(\" :: \")) {\n header = header.substring(0, header.indexOf(\" :: \"));\n }\n\n header = parseHeader(header);\n if (headerFromTitleTag == null) {\n headerFromTitleTag = header;\n //titleHeaderNode = headerNode; \n }\n } else if (node.nodeName.equalsIgnoreCase(META_TAG) && node.attributes.containsKey(PROPERTY_ATTR) && node.attributes.get(PROPERTY_ATTR).equalsIgnoreCase(FB_PROPERTY)) {\n if (node.attributes.containsKey(CONTENT_ATTR)) {\n String header = parseHeader(node.attributes.get(CONTENT_ATTR));\n headers.add(header);\n }\n } else if (node.nodeName.equalsIgnoreCase(META_TAG) && node.attributes.containsKey(NAME_ATTR) && node.attributes.get(NAME_ATTR).equalsIgnoreCase(FB_PROPERTY)) {\n if (node.attributes.containsKey(CONTENT_ATTR)) {\n String header = parseHeader(node.attributes.get(CONTENT_ATTR));\n headers.add(header);\n }\n } else if (node.nodeName.equalsIgnoreCase(META_TAG) && node.attributes.containsKey(NAME_ATTR) && node.attributes.get(NAME_ATTR).equalsIgnoreCase(TWITTER_PROPERTY)) {\n if (node.attributes.containsKey(CONTENT_ATTR)) {\n String header = parseHeader(node.attributes.get(CONTENT_ATTR));\n headers.add(header);\n }\n } else if (node.nodeName.equalsIgnoreCase(META_TAG) && node.attributes.containsKey(NAME_ATTR) && node.attributes.get(NAME_ATTR).equalsIgnoreCase(TWEETMEME_PROPERTY)) {\n if (node.attributes.containsKey(CONTENT_ATTR)) {\n String header = parseHeader(node.attributes.get(CONTENT_ATTR));\n headers.add(header);\n }\n } else if (node.nodeName.equalsIgnoreCase(META_TAG) && node.attributes.containsKey(NAME_ATTR) && node.attributes.get(NAME_ATTR).equalsIgnoreCase(DC_PROPERTY)) {\n if (node.attributes.containsKey(CONTENT_ATTR)) {\n String header = parseHeader(node.attributes.get(CONTENT_ATTR));\n headers.add(header);\n }\n } else if (node.nodeName.equalsIgnoreCase(META_TAG) && node.attributes.containsKey(NAME_ATTR) && node.attributes.get(NAME_ATTR).equalsIgnoreCase(HEADLINE_PROPERTY)) {\n if (node.attributes.containsKey(CONTENT_ATTR)) {\n String header = parseHeader(node.attributes.get(CONTENT_ATTR));\n headers.add(header);\n }\n } else if (node.nodeName.equalsIgnoreCase(META_TAG) && node.attributes.containsKey(ITEMPROP_ATTR) && node.attributes.get(ITEMPROP_ATTR).equalsIgnoreCase(NAME_PROPERTY)) {\n if (node.attributes.containsKey(CONTENT_ATTR)) {\n String header = parseHeader(node.attributes.get(CONTENT_ATTR));\n headers.add(header);\n }\n } else if (node.nodeName.equalsIgnoreCase(LINK_TAG) && node.attributes.containsKey(TYPE_ATTR) && node.attributes.get(TYPE_ATTR).equalsIgnoreCase(OEMBER_ATTR)) {\n if (node.attributes.containsKey(TITLE_ATTR)) {\n String header = parseHeader(node.attributes.get(TITLE_ATTR));\n headers.add(header);\n }\n } else if (node.attributes.containsKey(ADDTHISTITLE_ATTR)) {\n String header = parseHeader(node.attributes.get(ADDTHISTITLE_ATTR));\n headers.add(header);\n }\n\n int i = 0;\n while (i < node.childNodes.size()) {\n extractHeaderFromTags(node.childNodes.get(i));\n i++;\n }\n }", "title": "" }, { "docid": "74765a03ebcffe15cf4e9371fc839cfd", "score": "0.43841112", "text": "private String normalizeLanguage(String language) {\n return language;\n }", "title": "" }, { "docid": "dfbdc91ab151e46702bcd7241e49e3bf", "score": "0.4373825", "text": "private void checkRep() {\n assert variableName.matches(\"[a-zA-Z]+\");\n assert !variableName.isEmpty();\n }", "title": "" }, { "docid": "4cbd1f38fb19b6974f40b56ceeeaee64", "score": "0.43720055", "text": "private static void header(String header, String description, StringBuffer sb){\n\n\t\tsb.append(NL);\n\t\tsb.append(NL);\n\t\tsb.append(header);\n\t\tsb.append(NL);\n\t\tsb.append(TAB);\n\t\tint step = 65;\n\t\tint length = description.length();\n\t\tint i = 0;\n\t\tint space;\n\t\twhile(i<length){\n\t\t\tif(i+step-1 >= length){\n\t\t\t\tsb.append(description.substring(i));\n\t\t\t\tsb.append(NL);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tspace = findClosestSpace(description, i+step-1, length);\n\t\t\t\tsb.append(description.substring(i, i+step+space));\n\t\t\t\ti += step+space;\n\t\t\t\tsb.append(NL+TAB);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6a66cb5757d3be622c6c92f255ff1ffc", "score": "0.43617308", "text": "public Builder nonWordChar() {\n return this.add(\"(?:\\\\W)\");\n }", "title": "" }, { "docid": "14e28e6b9273f3459eb7c713ee835431", "score": "0.43591443", "text": "private void skipLanguage() {\n if (haveExperimentalLanguagePrefix()) {\n index = 2;\n }\n skipUntilTerminatorOrIDSeparator();\n }", "title": "" }, { "docid": "ecdfb438d395521d989c53854f06cef2", "score": "0.4357662", "text": "@Test\n\tvoid sanitizerDoesntGoTooFar() throws Throwable {\n\t\tFormatterStep step = LicenseHeaderStep.headerDelimiter(\"LicenseHeader\\n\\n\", \"contentstart\").build();\n\t\tString alreadyCorrect = \"LicenseHeader\\n\\ncontentstart\";\n\t\tAssertions.assertEquals(alreadyCorrect, step.format(alreadyCorrect, new File(\"\")));\n\t\tAssertions.assertSame(alreadyCorrect, step.format(alreadyCorrect, new File(\"\")));\n\t}", "title": "" }, { "docid": "3f0572514927cff185e982c7d84c4b2a", "score": "0.43574134", "text": "public static String validateValue(String value) {\n\t\tString newValue = new String(usasciiCharset.encode(value).array());\n\t\t\n\t\tif(newValue.equals(value) == false)\n\t\t\tthrow new IllegalArgumentException(\"Invalid value, contains non-US-ASCII characters: \" + value);\n\t\t\n\t\tnewValue = newValue.trim();\n\n\t\t/*\n\t\t<TheSeeker> CTL = <any US-ASCII control character\n\t\t<TheSeeker> (octets 0 - 31) and DEL (127)>\n\t\t<TheSeeker> CHAR = <any US-ASCII character (octets 0 - 127)>\n\t\t<TheSeeker> token = 1*<any CHAR except CTLs or separators>\n\t\t<TheSeeker> separators = \"(\" | \")\" | \"<\" | \">\" | \"@\" | \",\" | \";\" | \":\" | \"\\\" | <\"> | \"/\" | \"[\" | \"]\" | \"?\" | \"=\" | \"{\" | \"}\" | SP | HT\n\t\t<TheSeeker> so, anything from 32-126 that isn't in that list of seperators is valid.\n\t\t<p0s> TheSeeker: where did you copy that from?\n\t\t<TheSeeker> http://www.ietf.org/rfc/rfc2616.txt\n\t\t<TheSeeker> The following grammar uses the notation, and tokens DIGIT (decimal digits), token (informally, a sequence of non-special, non-white space characters), and http_URL from the HTTP/1.1 specification [RFC2616] to describe their syntax.\n\t\t<TheSeeker> quoted-string = ( <\"> *(qdtext | quoted-pair ) <\"> )\n\t\t<TheSeeker> qdtext = <any TEXT except <\">>\n\t\t<TheSeeker> TEXT = <any OCTET except CTLs, but including LWS>\n\t\t<TheSeeker> LWS = [CRLF] 1*( SP | HT )\n\t\t<TheSeeker> OCTET = <any 8-bit sequence of data>\n\t\t<TheSeeker> so, if it's quoted, it can be anything 32-126 and 128-255 (except a quote char, obviously)\n\t\t*/\n\n\t\tfor(Character c : newValue.toCharArray()) {\n\t\t\t// We allow whitespace in the value because quotation is allowed and supported by the parser in ReceivedCookie\n\n\t\t\tif(Character.isISOControl(c))\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid value, contains control characters.\");\n\t\t\t\n\t\t\t// TODO: The source of the invalid value characters list is not mentioned in its javadoc - it has to be re-validated\n\t\t\tif(invalidValueCharacters.contains(c))\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid value, contains one of the explicitely disallowed characters: \" + value);\n\t\t}\n\t\t\n\t\treturn newValue;\n\t}", "title": "" }, { "docid": "9cd829d2f86f503233b0caebac015c3c", "score": "0.43557048", "text": "@Test\n public void modulusToken() throws Exception {\n checkToken(\" % \", \"MODULUS\");\n }", "title": "" }, { "docid": "5f026128f860bb53626e46637bc1211b", "score": "0.43546075", "text": "private void showAdditionalKeysOrCommitNL(String letter){\n if (letter.toLowerCase().equals(\"s\") || letter.toLowerCase().equals(\"c\") ||\n letter.toLowerCase().equals(\"z\") || letter.toLowerCase().equals(\"d\"))\n {\n // Set letter order in the additional matric according to the language context:\n if (letter.toLowerCase().equals(\"s\")) setAdditionalMatrixOrder(\"š\", \"đ\", \"ž\", \"č\", \"ć\");\n if (letter.toLowerCase().equals(\"d\")) setAdditionalMatrixOrder(\"đ\", \"š\", \"ž\", \"č\", \"ć\");\n if (letter.toLowerCase().equals(\"z\")) setAdditionalMatrixOrder(\"ž\", \"š\", \"đ\", \"č\", \"ć\");\n if (letter.toLowerCase().equals(\"c\")) setAdditionalMatrixOrder(\"č\", \"ć\", \"ž\", \"š\", \"đ\");\n\n additionalKeys = true;\n l7.setVisibility(VISIBLE);\n } else if (letter.toLowerCase().equals(\" \")) {\n // Commit newline:\n if (!enterOverShift) {\n String newline = \"\\n\";\n inputConn.commitText(newline, 1);\n }\n }\n }", "title": "" }, { "docid": "17907b9587fd2b8fbb219fc283eda06a", "score": "0.4350032", "text": "@GET\n\t@Path(\"headerInfo\")\n\tpublic String headerInfo(@Context HttpHeaders hh) {\n\t\thh.getAcceptableLanguages();\n//\t\thh.getAcceptableMediaTypes();\n\t\treturn hh.getAcceptableLanguages().toString();\n\t}", "title": "" }, { "docid": "c414c2e9f322718b5f4546f966f7f890", "score": "0.4349614", "text": "public String getHeader();", "title": "" }, { "docid": "fb710a5c08e0262fe16dec513693af62", "score": "0.43487912", "text": "private String removeHeaderWhiteSpace(String msgHead)\r\n\t{\r\n\t\tmsgHead = msgHead.trim();\r\n\t\tmsgHead = msgHead.replaceAll(\"\\\\s\", \"\");\r\n\t\treturn msgHead;\r\n\t}", "title": "" }, { "docid": "e3bd7c5e0a71bfbea1e648e8efa03496", "score": "0.4346428", "text": "public boolean validTitle(String title){\n String[] arNaughty = {\n \"ㅇㅎ\",\"겨드랑이\",\"ㅎㅂ\",\"후방\",\"어우야\",\"ㅓㅜㅑ\",\"ㅈㅈ\",\"ㅂㅈ\",\"ㅅㄱ\",\"가슴\",\"슴가\"\n };\n for(String naughty : arNaughty){\n if(title.contains(naughty)) return false;\n }\n return true;\n }", "title": "" }, { "docid": "5fc583675c0b1e7e4b2b9fd3036f514e", "score": "0.4345219", "text": "@Test\n\tpublic void test10_AddContentWithSpecialCharactersInName ()\n\t{\n\t\tString[] SPECIAL_CHAR_NAME={\"`\", \"~\", \"!\", \"#\", \"$\", \"%\", \"&\", \"*\", \"(\", \")\", \"=\", \"{\", \"}\", \"+\", \"|\", \";\", \"'\", \"<\", \">\", \"/\", \"?\",\"\\\"\",\"\\\\\", \"[\",\"]\",\":\"};\n\t\tString WARNING_MESSAGE=\"The field 'Name' contains some invalid characters. Please enter another value.\";\n\t\t\n\t\tinfo(\"Go to CE\");\n\t\tgoToSiteExplorer();\n\t\t\n\t\tinfo(\"Go to Site management/ acme\");\n\t\tgoToNode(SITE_MANAGEMENT_ACME);\n\n\t\tinfo(\"Create article and fill special character in name\");\n\t\tfor (int i =0 ; i < SPECIAL_CHAR_NAME.length; i++){\n\t\t\t\n\t\t\tinfo(\"Click New Content\");\n\t\t\tgoToAddNewContent();\n\t\t\t\n\t\t\tinfo(\"Fill special chars repectively:\" + SPECIAL_CHAR_NAME[i]);\n\t\t\tcreateNewArticle(SPECIAL_CHAR_NAME[i], SPECIAL_CHAR_NAME[i], ARTICLE_SUM, ARTICLE_CONTENT);\n\t\t\t\n\t\t\tinfo(\"Verify warning message: Special is not allowed\");\n\t\t\twaitForTextPresent(WARNING_MESSAGE);\n\t\t\t\n\t\t\tinfo(\"CLick OK\");\n\t\t\tclick(By.linkText(\"OK\"));\n\t\t\t\n\t\t\tinfo(\"Click Close\");\n\t\t\tclick(ELEMENT_CLOSE_BUTTON);\n\t\t}\n\t}", "title": "" }, { "docid": "f65f15c9435fc17438e41cc4d16b9d97", "score": "0.4344842", "text": "public void subHeaderTextAssert(String text) {\n assertEquals(homePage.getSubHesderText(), text);\n }", "title": "" }, { "docid": "08d428bfeb49e52fed0d8090ff76e113", "score": "0.43385872", "text": "private List<String> extractHeaders(String requestHeader) {\n\t\t\tList<String> headers = new ArrayList<String>();\n\t\t\tString currentLine = null;\n\t\t\tfor (String s : requestHeader.split(\"\\n\")) {\n\t\t\t\tif (s.isEmpty())\n\t\t\t\t\tbreak;\n\t\t\t\tchar c = s.charAt(0);\n\t\t\t\tif (c == 9 || c == 32) {\n\t\t\t\t\tcurrentLine += s;\n\t\t\t\t} else {\n\t\t\t\t\tif (currentLine != null) {\n\t\t\t\t\t\theaders.add(currentLine);\n\t\t\t\t\t}\n\t\t\t\t\tcurrentLine = s;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!currentLine.isEmpty()) {\n\t\t\t\theaders.add(currentLine);\n\t\t\t}\n\t\t\treturn headers;\n\t\t}", "title": "" }, { "docid": "9206d57b0f202c5b3b90565934912ba8", "score": "0.43345672", "text": "private boolean checkForEntryNameFormat(String entryNameField) {\n\t\tPattern p = Pattern.compile(\"^[A-Za-z0-9àèìòùáéíóúâêîôûãñõäëïöüÿ+:.;,'?!&^ ]+$\");\n\t\tMatcher m = p.matcher(entryNameField.trim());\n\t\treturn m.matches();\n\t}", "title": "" }, { "docid": "0a4c7f20e1ade7bd3bb06071c850c587", "score": "0.43335944", "text": "interface Header extends JoseHeader {\n\n /**\n * Gets the value of the key management algorithm header ({@code alg})\n * @return header value or {@code null} if not present\n */\n String getKeyManagementAlgorithm();\n\n /**\n * Gets the value of the content encryption algorithm header ({@code enc})\n * @return header value or {@code null} if not present\n */\n String getContentEncryptionAlgorithm();\n\n /**\n * Gets the value of the compression algorithm header ({@code zip})\n * @return header value or {@code null} if not present\n */\n String getCompressionAlgorithm();\n\n }", "title": "" }, { "docid": "bfdc9a02f8cd920c3220d0b2adc76da3", "score": "0.43308058", "text": "public final static boolean isAcceptableReservedChar(char c) {\r\n\treturn (c == ';') || (c == '/') || (c == '?') || (c == ':') || (c == '@') || (c == '&') || (c == '=')\r\n\t\t|| (c == '+') || (c == '$') || (c == ',');\r\n }", "title": "" }, { "docid": "ec9759ed60f1943c1a5323a55bff33c7", "score": "0.43305486", "text": "private boolean parseHeader(String s) throws IOException {\n\n\t\tString subs;\n\t\tint colonIndex;\n\t\tif (s.equals(\"\")) {\n\t\t\treturn true;\n\t\t}\n\t\tcolonIndex = s.indexOf(\":\");\n\t\tif (colonIndex == -1) {\n\t\t\tthrow new IOException(\n\t\t\t\t\t\"Bad metafile content. The file seems to be corrupted.\");\n\t\t}\n\t\tsubs = s.substring(0, colonIndex);\n\t\tif (subs.equalsIgnoreCase(\"zsync\")) {\n\t\t\tmf_version = s.substring(colonIndex + 2);\n\t\t\tif (mf_version.equals(\"0.0.4\") || mf_version.equals(\"0.0.2\")) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"This version is not compatible with zsync streams in versions up to 0.0.4\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} else if (subs.equalsIgnoreCase(\"Filename\")) {\n\t\t\tmf_filename = s.substring(colonIndex + 2);\n\t\t} else if (subs.equalsIgnoreCase(\"MTime\")) {\n\t\t\tmf_mtime = s.substring(colonIndex + 2);\n\t\t} else if (subs.equalsIgnoreCase(\"Blocksize\")) {\n\t\t\tmf_blocksize = Integer.parseInt(s.substring(colonIndex + 2));\n\t\t} else if (subs.equalsIgnoreCase(\"Length\")) {\n\t\t\tmf_length = Long.parseLong(s.substring(colonIndex + 2));\n\t\t} else if (subs.equalsIgnoreCase(\"Hash-Lengths\")) {\n\t\t\tint comma = s.indexOf(\",\");\n\t\t\tmf_seq_num = Integer.parseInt(s.substring((colonIndex + 2), comma));\n\t\t\tint nextComma = s.indexOf(\",\", comma + 1);\n\t\t\tmf_rsum_bytes = Integer.parseInt(s.substring(comma + 1, nextComma));\n\t\t\tmf_checksum_bytes = Integer.parseInt(s.substring(nextComma + 1));\n\t\t\t// zkontrolujeme validni hash-lengths\n\t\t\tif ((mf_seq_num < 1 || mf_seq_num > 2)\n\t\t\t\t\t|| (mf_rsum_bytes < 1 || mf_rsum_bytes > 4)\n\t\t\t\t\t|| (mf_checksum_bytes < 3 || mf_checksum_bytes > 16)) {\n\t\t\t\tSystem.out.println(\"Nonsensical hash lengths line \"\n\t\t\t\t\t\t+ s.substring(colonIndex + 2));\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t} else if (subs.equalsIgnoreCase(\"URL\")) {\n\t\t\tmf_url = s.substring(colonIndex + 2);\n\t\t} else if (subs.equalsIgnoreCase(\"Z-URL\")) {\n\t\t\t// not implemented yet\n\t\t} else if (subs.equalsIgnoreCase(\"SHA-1\")) {\n\t\t\tmf_sha1 = s.substring(colonIndex + 2);\n\t\t} else if (subs.equalsIgnoreCase(\"Z-Map2\")) {\n\t\t\t// not implemented yet\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ede26846c76dcf150ddfa47bd75f17ee", "score": "0.432185", "text": "public String getAcceptLanguage() {\n return this.acceptLanguage;\n }", "title": "" }, { "docid": "167a00bf402f37962edb2f45463c00e2", "score": "0.43177024", "text": "protected void createHeaderLinkIfRequired(Column column, JRDesignTextField headerText) {\n\n headerText.setHyperlinkType(JRHyperlink.HYPERLINK_TYPE_LOCAL_ANCHOR);\n JRDesignExpression expression = new JRDesignExpression();\n String chartLink;\n\n if (column.isGrouped()) {\n chartLink = \"\\\"\" + METRIC_BAR_COLUMN_HEADER_KEY + \"(\" + column.getId() + \")\\\"\";\n } else {\n chartLink = \"\\\"\" + METRIC_COLUMN_HEADER_KEY + \"(\" + column.getId() + \")\\\"\";\n }\n\n expression.setText(chartLink);\n expression.setValueClass(String.class);\n headerText.setAnchorNameExpression(expression);\n }", "title": "" }, { "docid": "648dd0c7de11b24a8b5ddde7226d558f", "score": "0.43068993", "text": "public String acceptLanguage() {\n return this.acceptLanguage;\n }", "title": "" }, { "docid": "648dd0c7de11b24a8b5ddde7226d558f", "score": "0.43068993", "text": "public String acceptLanguage() {\n return this.acceptLanguage;\n }", "title": "" }, { "docid": "d5b2ea81609c46f8aef8b5b0dbaac903", "score": "0.43061784", "text": "private HeaderTemplate(String template, String name, Iterable<String> values, Charset charset) {\n super(template, ExpansionOptions.REQUIRED, EncodingOptions.NOT_REQUIRED, false, charset);\n this.values = StreamSupport.stream(values.spliterator(), false)\n .filter(Util::isNotBlank)\n .collect(Collectors.toCollection(LinkedHashSet::new));\n this.name = name;\n }", "title": "" }, { "docid": "463f5d0e22e6eca4523daa8dff52becb", "score": "0.43024692", "text": "@DefaultMessage(\"Letters, numbers, hyphens (-), underscores (_), and periods (.) are allowed. Spaces may be used if not at the beginning or end of the file name.\")\n @Key(\"nameValidationMsg\")\n String nameValidationMsg();", "title": "" }, { "docid": "cfd495f617ec30b8bec2331463e329e6", "score": "0.43000415", "text": "@Override\n\tprotected void createCompHeader() {\n\t\tString headerTxt = \"Patient's Prescription\";\n\t\tiDartImage icoImage = iDartImage.PRESCRIPTIONNEW;\n\t\tbuildCompHeader(headerTxt, icoImage);\n\t}", "title": "" }, { "docid": "a54db1177e3805fd715b6eb673d0aff6", "score": "0.42962533", "text": "public final static boolean isUnreservedChar(char c) {\r\n\treturn (c == '-') || (c == '_') || (c == '.') || (c == '!') || (c == '~') || (c == '*') || (c == '\\'')\r\n\t\t|| (c == '(') || (c == ')');\r\n }", "title": "" }, { "docid": "cb0d48cf0b8efbb305de865cc0475141", "score": "0.42936054", "text": "private void parseComp()\n\t\t{\n\t\t\tif (cleanLine.contains(\"=\"));\n\t\t\t{\n\t\t\t\tint myIndex= cleanLine.indexOf(\"=\");\n\t\t\t\tcleanLine= cleanLine.substring(myIndex+1);\n\t\t\t\tcompMnemonic = cleanLine;\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" } ]
f12eb24583b9b417ef22892907ccb3cb
Return the current record and move the current pointer to the next older record. Returns null if there is no going back. To return the current record and move the pointer to the next older record.
[ { "docid": "2807b07130ff1f5c79767103b4bf8729", "score": "0.80988836", "text": "public Object goBack()\n {\n // If they are already looking at the emptySlot record, return null.\n if( !havePast() ) //i.e., current is equal to the emptySlot\n {\n return null;\n }\n\n // move to the oldest record, just before the current record\n current = subOne(current);\n\n // Get the record\n Object rec = history.get(current);\n return rec;\n }", "title": "" } ]
[ { "docid": "23e997a8c64c26437422332e0264e592", "score": "0.7749551", "text": "public Object goForward()\n {\n // If they are already looking at the newest record, return null.\n if( !haveFuture() )\n {\n return null;\n }\n\n // move to the newer record, just after the current record\n current= addOne(current);\n\n\n return history.get(current);\n\n }", "title": "" }, { "docid": "3c0855dcc3a7e11768a368e2b9a4c89b", "score": "0.6780322", "text": "public long getCurrentRecord() {\n return currentRecord - 1;\n }", "title": "" }, { "docid": "d7157f1adc5c4f91ebd535845ea487d5", "score": "0.63877094", "text": "public E previous(){\n E toReturn = null;\n if (head == null || !hasPrevious()){\n throw new NoSuchElementException();\n }else if (nextItem == null){ //at end of list\n lastItemReturned = tail;\n nextItem = tail;\n toReturn = tail.data;\n }\n else{\n lastItemReturned = nextItem.previous;\n nextItem = lastItemReturned;\n toReturn = lastItemReturned.data;\n }\n index --;\n return toReturn;\n }", "title": "" }, { "docid": "374fcecbca704b4a7b9bdc9ead1e6b10", "score": "0.6364192", "text": "public Object previous() {\n/* 121 */ if (this.beforeFirst || this.removed) {\n/* 122 */ throw new NoSuchElementException();\n/* */ }\n/* 124 */ this.beforeFirst = true;\n/* 125 */ return this.object;\n/* */ }", "title": "" }, { "docid": "4572528227d35240b13615d6b8f0e96b", "score": "0.6310469", "text": "public T previous(){\n return null;\n }", "title": "" }, { "docid": "11841f19b74ca34ff917a899c6779b44", "score": "0.62366927", "text": "public String getBackRecord() {\n currentPos --;\n return getUniqHisName(currentPos);\n }", "title": "" }, { "docid": "3bc963b2606912584f922b840e2df2f9", "score": "0.6217816", "text": "public PyramidWord getPrevious()\r\n\t{\r\n\t\tif (currentIndex == 0)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"There is no previous\");\r\n\t\t\treturn getCurrent();\r\n\t\t}\r\n\t\tcurrentIndex--;\r\n\t\treturn getCurrent();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "541eae9812606dcdc2597be9a8dfb59f", "score": "0.62095493", "text": "String getPrevious();", "title": "" }, { "docid": "419bcef4ad02a0252da0ed2337284fa0", "score": "0.6192596", "text": "void movePrev(){\n if(0<getIndex() && getIndex()<=(length()-1)){\n cursor = cursor.prev;\n }\n else{\n cursor = null;\n }\n }", "title": "" }, { "docid": "36aea77eb328093c8d5f5a95329bb4fc", "score": "0.61418754", "text": "private Token lookprevious() {\n\t\treturn tokens.get(current - 1);\n\t}", "title": "" }, { "docid": "7f150581bda51966266a0c4352532048", "score": "0.6122981", "text": "@Override\n public E previous() {\n if (!hasPrevious()) {\n throw new NoSuchElementException();\n }\n if (nextItem == null) { // Iterator past the last element\n nextItem = tail;\n } else {\n nextItem = nextItem.prev;\n }\n lastItemReturned = nextItem;\n index--;\n return lastItemReturned.theData[0];\n }", "title": "" }, { "docid": "6019fa8af4a7c991b533bb4b5c0cbd43", "score": "0.61059797", "text": "void movePrev() {\n \t \n \t if (cursor != null && index > 0) { \n \t \tcursor = cursor.previous; \n \t \tindex--;\n \t } \n \t if (cursor != null && index == 0) {\n \t \tcursor = null;\n \t \tindex= -1;\n \t }\n }", "title": "" }, { "docid": "aa981d14f3574dc11ebb21d37feb3bee", "score": "0.6100093", "text": "Optional<T> getPreviousItem(T item);", "title": "" }, { "docid": "a8d93cd4ea2d786a6470105e5b96ed94", "score": "0.6071247", "text": "public String getForwardRecord() {\n currentPos ++;\n return getUniqHisName(currentPos);\n }", "title": "" }, { "docid": "21764fc61322385e3f24ecbcf162d9c5", "score": "0.60500646", "text": "public SVGElementModel getPreviousSibling() {\n\t\tif (parent != null) {\n\t\t\tint index = parent.indexOf(this);\n\t\t\tif (index > 0) {\n\t\t\t\treturn (SVGElementModel) parent.getChild(index - 1);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "af1cb2a9f7462511d654cb0b9c8e4d7b", "score": "0.6040567", "text": "public FSReturnVals ReadPrevRecord(FileHandle ofh, RID pivot, TinyRec rec){\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2e7d67f0a95065629e1c7d764c3d4340", "score": "0.6026131", "text": "public Object retrieveNext()\n {\n Object returnObj;\n if(!retrieveDone())\n {\n returnObj = entryList.elementAt(entryReadPosition);\n entryReadPosition++;\n return returnObj;\n }\n else\n {\n return null;\n }\n }", "title": "" }, { "docid": "704872c3207b5d3b726fad7017f97724", "score": "0.6025049", "text": "public int previous() {\n\n\t\tVector cachedRow = resultSetBuffer.getPreviousRow();\n\n\t\tif (cachedRow != null) {\n\t\t\tfor (int j = 0; j < fields.length; j++) {\n\t\t\t\tObject fieldValue = cachedRow.elementAt(j);\n\t\t\t\tfields[j].setValue(fieldValue);\n\t\t\t}\n\t\t\treturn resultSetBuffer.getCursor();\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "title": "" }, { "docid": "22ee78772cfc4b254f5fe1ccf220ffee", "score": "0.60072386", "text": "public T previous() {\n\t\tif (!hasPrevious())\n\t\t\tthrow new NoSuchElementException();\n\t\tprevious--;\n\t\tnext--;\n\t\treturn list.get(next - 1);\n\t}", "title": "" }, { "docid": "3860a6f5613833ad2a9e5ba2feb35923", "score": "0.5985681", "text": "@Override\n public SELF getPreviousResult() {\n PARENT p = parent;\n while (true) {\n p = p.getPreviousResult();\n if (p == null) {\n return null;\n }\n final SELF prev = (SELF) p.getChildren().get(getName());\n if (prev != null) {\n return prev;\n }\n }\n }", "title": "" }, { "docid": "8826c89e058375a75fa62ec77e6ce851", "score": "0.597077", "text": "public static Optional<HistoryRecord> fetchPrevious(final HistoryRecord record, final byte[] historyIndex, final byte[] historyTable) {\n return readRecord(record.epoch - 1, historyIndex, historyTable, true);\n }", "title": "" }, { "docid": "8e06e5a928eda43d5b3815be78aa785a", "score": "0.59572417", "text": "private LazyRecord neighbor(boolean forward) throws IOException, InterruptedException\n {\n LazyRecord neighbor = null;\n if (cursor != null) {\n neighbor = forward ? cursor.next() : cursor.previous();\n if (neighbor == null) {\n close();\n }\n // Don't need to consult singleKey flag to see if neighbor should be kept,\n // as the underlying snapshot cursor does that.\n }\n return neighbor;\n }", "title": "" }, { "docid": "84c2b98442de5f7e8d93f1825dac0b2f", "score": "0.5956418", "text": "private TreeNode getPrev() {\n if(!hasPrev()) return null;\n\n while(n2 != null) {\n s2.push(n2);\n n2 = n2.right;\n }\n\n TreeNode ans = s2.pop();\n n2 = ans.left;\n return ans;\n }", "title": "" }, { "docid": "610246b757f3ff8317fc16c44f0a0703", "score": "0.5912039", "text": "public Location getPreviousHill() {\r\n\t\tint current = getHillRotations() - getRotationsLeft();\r\n\r\n\t\t// There was no previous hill...\r\n\t\tif (isFirstHill())\r\n\t\t\treturn null;\r\n\r\n\t\treturn getHill(current - 1);\r\n\t}", "title": "" }, { "docid": "0e50d1dbac9e2d33f75427ec9cf82364", "score": "0.58916926", "text": "public Appointment getPreviousAppointment(){\r\n\t\tAppointment prevAppointment = null;\r\n\t\ttry {\r\n\t\t\tprevAppointment = this.currentUser.getCalendar().getNextAppointment(this.currentAppointment.getAppointmentID());\r\n\t\t} catch (AppointmentNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prevAppointment;\r\n\t}", "title": "" }, { "docid": "4529f0b59126fe5c16f0c2fce67812cc", "score": "0.5881679", "text": "@ActionTrigger(action=\"KEY-PRVREC\", function=KeyFunction.PREVIOUS_RECORD)\r\n\t\tpublic void Spaiden_PreviousRecord()\r\n\t\t{\r\n\t\t\t\r\n\t\t\tgetGFormClass().previousRecord();\r\n\t\t}", "title": "" }, { "docid": "8c64c7f39be31bf164a1f6f5265fdd27", "score": "0.5862918", "text": "public IGenericRecord nextRecord() {\n IGenericMoniRecord next;\n if ((nextMoni == null) && (nextSupernova == null)) {\n next = null;\n } else if (nextMoni == null) {\n next = nextSupernova;\n if (log.isDebugEnabled()) {\n log.debug(\"Generating a Supernova record: \" + next.getUtcTime());\n }\n nextSupernova = getNextSupernovaRecord();\n } else if (nextSupernova == null) {\n next = nextMoni;\n if (log.isDebugEnabled()) {\n log.debug(\"Generating a Monitor record: \" + next.getUtcTime());\n }\n nextMoni = getNextMoniRecord();\n } else {\n if (nextMoni.compareTo(nextSupernova) < 0) {\n next = nextMoni;\n if (log.isDebugEnabled()) {\n log.debug(\"Generating a Monitor record: \" + next.getUtcTime());\n }\n nextMoni = getNextMoniRecord();\n } else {\n next = nextSupernova;\n if (log.isDebugEnabled()) {\n log.debug(\"Generating a Supernova record: \" + next.getUtcTime());\n }\n nextSupernova = getNextSupernovaRecord();\n }\n }\n return next;\n }", "title": "" }, { "docid": "651b855809c29ed1d3de6aa0a1aa5f6e", "score": "0.58550525", "text": "void moveBack() {\n \t if (this.isEmpty() == false) {\n \t \t if (cursor == null) {\n \t \t \tcursor = new Node(this.back());\n \t \t \tcursor.previous = back.previous;\n \t \t \tindex = (length - 1);\n \t \t } else {\n \t \t \tcursor = back;\n \t \t \tcursor.previous = back.previous;\n \t \t \tindex = (length - 1);\n \t \t }\n \t }\n }", "title": "" }, { "docid": "f62e68610529789d0bb370f444050086", "score": "0.58274525", "text": "public Sequence prev()\n\t{\n\t\treturn _prev;\n\t}", "title": "" }, { "docid": "c5e6a51b6ee6d13c6f4effb7625f89ca", "score": "0.58246464", "text": "public DNode<E> getPrevious() {\r\n return previous;\r\n }", "title": "" }, { "docid": "109368397c4ef225b98455f3a9fb8611", "score": "0.581629", "text": "T prev();", "title": "" }, { "docid": "b29f21efb38767c94280542b9506e69d", "score": "0.5797611", "text": "boolean previous() throws SqlJetException;", "title": "" }, { "docid": "a4cf8c0c506e93afcf73cd95e8e91234", "score": "0.5795735", "text": "public Undoable nextUndo(){\n\t\t\n\t\tif(current < 0) return null;\n\t\t\n\t\tint index = current;\n\t\tUndoable rVal = queue.get(index);\n\t\t\n\t\t// search for a significant undoable, while there are more elements\n\t\twhile(!rVal.isSignificant() && --index > -1)\n\t\t\trVal = queue.get(index);\n\t\t\n\t\treturn rVal.isSignificant() ? rVal : null;\n\t}", "title": "" }, { "docid": "cd713643154d008cda4e9c2e24d27bb2", "score": "0.5794816", "text": "public TripModel getPreviousTrip() {\n\t\t\n\t\tFileInputStream inputStream = null;\n\t\tObjectInputStream input = null;\n\t\tTripModel trip = null;\n\n\t\ttry {\n\t\t\tinputStream = context.openFileInput(\"trip\");\n\t\t\tinput = new ObjectInputStream(inputStream);\n\t\t\ttrip = (TripModel) input.readObject();\n\t\t\tinputStream.close();\n\t\t\tinput.close();\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"INPUT\", e.getMessage());\n\t\t}\n\t\t\n\t\treturn trip;\n\t}", "title": "" }, { "docid": "bf32f375a7bc9f2eb548ecab933a5633", "score": "0.5789919", "text": "private Node getPreviousNode(Node newCellNode) {\r\n NextNodeIterator nodes = new NextNodeIterator(getCellIndex(newCellNode));\r\n \r\n if (nodes.hasNext()) {\r\n return nodes.next().getUnderlyingNode(); \r\n }\r\n else {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "4e9a6fbdfb34d2d44608eff05ba80b5f", "score": "0.5755269", "text": "public Node<E> getPrevious()\n {\n return prev;\n }", "title": "" }, { "docid": "8baecbbaecd7505917b773fb7d99b62a", "score": "0.57357544", "text": "public void getPrev() throws Exception\r\n {\r\n // no SQL query optimization implemented\r\n }", "title": "" }, { "docid": "64fcc78d128f5920af255e22c5b7817e", "score": "0.57339597", "text": "public Node getPrevious(){\n\t\t\treturn previous;\n\t\t}", "title": "" }, { "docid": "ed509a36c3a36ec1d830b7671ef34230", "score": "0.5721542", "text": "Move getLastMove() {\n if (moves.size() > 0) {\n return moves.peek();\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "81cadd49182f93060bbc26dffdb9564d", "score": "0.57025886", "text": "public List<E> previous() {\n\t\tif (!hasPrevious()) {\n\t\t\tthrow new IndexOutOfBoundsException(\"The index can't be smaller than 0\");\n\t\t}\n\t\tcurrentPage--;\n\t\treturn getCurrentPageContent();\n\t}", "title": "" }, { "docid": "a953ecbdf7c3bb9faaaae24aa5ec3a80", "score": "0.56901014", "text": "@Override\r\n\tpublic void previous() {\n\t\tif(!isDone()){\t\t\t\r\n\t\t\tcurrent = current.predecessor();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b14d0ac54e9657252e58f5ac6500ac63", "score": "0.5679627", "text": "private Node<T> getPreviousNode() {\r\n return previousNode;\r\n }", "title": "" }, { "docid": "dc4aa591e18d0308cbb7c1fc33b090d2", "score": "0.5676938", "text": "public EditPathNode getPrevious() {\n return this.prev;\n }", "title": "" }, { "docid": "78ffacb2bb66cabaa007ff43cc2c8e9f", "score": "0.5666256", "text": "@Override\r\n public IRLocation prevLocation( final IRLocation loc ) {\r\n return sequence.prevLocation(loc);\r\n }", "title": "" }, { "docid": "291b4850bc15d77bde4fb2cf14fdc2f1", "score": "0.56430584", "text": "public Bookmark getPreviousBookmark (int offset, boolean wrapSearch) {\n checkOffsetNonNegative (offset);\n List<Bookmark> bookmarks = new ArrayList<Bookmark> (getBookmarks ());\n Bookmark bookmark; // result\n if (!bookmarks.isEmpty ()) {\n offset--; // search from previous offset\n bookmark = getNextBookmark (offset);\n if (bookmark == null || bookmark.getOffset () != offset) {\n // go below\n int index = bookmark == null ?\n bookmarks.size () :\n bookmarks.indexOf (bookmark);\n index--;\n if (index >= 0) {\n bookmark = bookmarks.get (index);\n } else { // prior first bookmark\n if (wrapSearch) {\n bookmark = getPreviousBookmark(Integer.MAX_VALUE, false);\n } else { // no previous bookmark\n bookmark = null;\n }\n }\n } // else -> bookmark right at offset is assigned\n } else { // no bookmarks available\n bookmark = null;\n }\n return bookmark;\n }", "title": "" }, { "docid": "75d1efc4a18985c2e0aae979aa124496", "score": "0.5640098", "text": "@Override public T previous() {\n\t\t\t\n \tif(hasPrevious()){\n \t\tLista<T>.Nodo nodo = this.anterior;\n \t\t\tthis.anterior=nodo.anterior;\n \t\t\tthis.siguiente=nodo;\n \t\treturn nodo.elemento;}\n \telse{throw new NoSuchElementException();}\n \t\n }", "title": "" }, { "docid": "e8367a94a4c247f6f75b703389d7510a", "score": "0.56367546", "text": "abstract long previous();", "title": "" }, { "docid": "838ead5b9afe4c002ca3dee9f92033c8", "score": "0.562641", "text": "public boolean previous() throws SQLException {\n\t\treturn m_rowcache.previous();\n\t}", "title": "" }, { "docid": "0f8a4941a90df242a1c98af7cec1d93e", "score": "0.5624756", "text": "public E peekLast(){\n E tmp = (E)super.getLast();\n if(tmp == null) return null;\n else return tmp;\n }", "title": "" }, { "docid": "3061c7182e8887d5f3fda9fd4b7eaa25", "score": "0.56244457", "text": "public Player nextCurrent() {\n Player last = this.list.poll();\n this.list.addLast(last);\n Player curr=this.list.getFirst();\n String name=curr.getName();\n this.currPlayer.setCurrPlayer(name);\n return this.list.getFirst();\n\n }", "title": "" }, { "docid": "198197851ae288101206c9e13d17b119", "score": "0.56225336", "text": "@SuppressWarnings(\"java:S1130\")\n public Record nextRecord() throws NoSuchElementException, JournalException {\n if (!hasNext()) {\n String msg = \"No current record.\";\n throw new NoSuchElementException(msg);\n }\n close(lastRecord);\n lastRecord = record;\n record = null;\n\n return lastRecord;\n }", "title": "" }, { "docid": "8f7374df0e942999d4a33c589b9d2aa5", "score": "0.5605226", "text": "private Table getPreviousScopeTable(){\n int scopeSize = scopeStack.size();\n if(scopeSize == 0){\n return null;\n }else if(scopeSize == 1){\n return this;\n }else{\n return scopeStack.elementAt(scopeSize -1).getChildTable();\n }\n }", "title": "" }, { "docid": "eb0865299f6e7e20fe6ad5f64b848dac", "score": "0.56037915", "text": "public Match getLeftPreviousMatch() {\n return leftPreviousMatch;\n }", "title": "" }, { "docid": "7d72577a2324342d157c72621d9e0524", "score": "0.55984795", "text": "public Undoable nextRedo(){\n\t\t\n\t\tint index = current + 1;\n\t\tint queueSize = queue.size();\n\t\t\n\t\tif(index >= queueSize) return null;\n\t\t\n\t\tUndoable rVal = queue.get(index);\n\t\t\n\t\t// search for a significant undoable, while there are more elements\n\t\twhile(!rVal.isSignificant() && ++index < queueSize)\n\t\t\trVal = queue.get(index);\n\t\t\n\t\treturn rVal.isSignificant() ? rVal : null;\n\t}", "title": "" }, { "docid": "dc1f90d6994cb5364ac279cff4aeda0d", "score": "0.55968285", "text": "YdtAppContext getPreviousSibling();", "title": "" }, { "docid": "e39180021bb2e947533ff1382735a8ad", "score": "0.5590947", "text": "public SVGElementModel getNextSibling() {\n\t\tif (parent != null) {\n\t\t\tint index = parent.indexOf(this);\n\t\t\tif (index < parent.getChildCount() - 1) {\n\t\t\t\treturn (SVGElementModel) parent.getChild(index + 1);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3844e16492227ce9a1913568ef18abd5", "score": "0.5588248", "text": "public Match getRightPreviousMatch() {\n return rightPreviousMatch;\n }", "title": "" }, { "docid": "c15b2437e5e7902a1de6d03ee68510f6", "score": "0.5581467", "text": "public StackTraceElement getPrevious() {\n return previous;\n }", "title": "" }, { "docid": "8e0d29c75e6771f6f1b371d2393092e1", "score": "0.5573552", "text": "public CPointer<SpaceLink> getPrev() throws IOException\n\t{\n\t\tlong __dna__targetAddress;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 8);\n\t\t} else {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 4);\n\t\t}\n\t\tClass<?>[] __dna__targetTypes = new Class[]{SpaceLink.class};\n\t\treturn new CPointer<SpaceLink>(__dna__targetAddress, __dna__targetTypes, __io__blockTable.getBlock(__dna__targetAddress, SpaceLink.__DNA__SDNA_INDEX), __io__blockTable);\n\t}", "title": "" }, { "docid": "4c3b67ba5309de40fd562e952c438c67", "score": "0.5573045", "text": "private Text getNextRow() throws IOException {\n if (log.isDebugEnabled()) {\n log.debug(\"getNextRow()\");\n }\n Key fakeKey = new Key(new Text(currentRow + NULL_BYTE));\n Range fakeRange = new Range(fakeKey, fakeKey);\n getSource().seek(fakeRange, EMPTY_COL_FAMS, false);\n if (getSource().hasTop()) {\n return getSource().getTopKey().getRow();\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "4318781b6e79478a587fa1ff8504d90e", "score": "0.5572673", "text": "@Override\npublic ListItem previous() {\n\treturn this.leftLink;\n}", "title": "" }, { "docid": "34b517c515de0d6cb6e0c58006725a7e", "score": "0.55669624", "text": "public TrackInfo getNextTrack() {\r\n\t\tint[] rows = this.table.getSelectedRows();\r\n\t\tif (rows.length > 0) {\r\n\t\t\tint row = rows[0];\r\n\t\t\tif (row + 1 < this.table.getModel().getRowCount()) {\r\n\t\t\t\treturn this.getRowInfo(row + 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "14148ceb9d5826aa05da95e2981ab4f4", "score": "0.5564924", "text": "String getPreviousValue();", "title": "" }, { "docid": "51bc0dd126d85d4f475c3b079e52f1fa", "score": "0.5564853", "text": "public DNode getLast()\r\n {\r\n if(IsEmpty())\r\n {\r\n System.out.println(\"List is Empty\");\r\n return null;\r\n //throw new IllegalStateException(\"List is Empty\");\r\n }\r\n return m_tailer.getPrev();\r\n }", "title": "" }, { "docid": "4cf6ca0e667bf5dc827dcf563bb32861", "score": "0.5562349", "text": "public Move getLastMove()\n\t{\n\t\tif(moves.isEmpty())\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn moves.peek();\n\t}", "title": "" }, { "docid": "1da4646dcd04b9e89f96db845d055ef7", "score": "0.5559797", "text": "public AbstractNode getPrevious() {\n return previous;\n }", "title": "" }, { "docid": "588080ce02987723bb47cfcd3e79ebe2", "score": "0.5559102", "text": "public int previousIndex() {\n/* 90 */ return this.beforeFirst ? -1 : 0;\n/* */ }", "title": "" }, { "docid": "e80fe7f07358bcb1c5275c1ccc8f6e53", "score": "0.55545354", "text": "public boolean previous() {\n/* 540 */ if (this.index <= 0) {\n/* 541 */ return false;\n/* */ }\n/* 543 */ this.index--;\n/* 544 */ return true;\n/* */ }", "title": "" }, { "docid": "76d57aadba948900950bbc4ca19710d9", "score": "0.55538", "text": "public void moveBack( )\r\n\t\t{\r\n\t\t\tif( this.usePrevious || this.index <= 0 )\r\n\t\t\t\tthrow new Error( \"Stepping back two steps is not supported\" );\r\n\t\t\t\r\n\t\t\tthis.index -= 1;\r\n\t\t\tthis.character -= 1;\r\n\t\t\tthis.usePrevious = true;\r\n\t\t\tthis.eof = false;\r\n\t\t}", "title": "" }, { "docid": "fc5b3b2e8bbbf745ed2531401d30e2bf", "score": "0.55459356", "text": "@Override\r\n public E previous() throws NoSuchElementException\r\n {\r\n if (idx -1 < 0) {\r\n throw new NoSuchElementException();\r\n }\r\n else {\r\n idx = idx - 1;\r\n this.right = this.left;\r\n this.left = this.left.prev;\r\n }\r\n return (E) this.right.data; \r\n }", "title": "" }, { "docid": "f18afc619ac74e2586fbeaf8ba5f21e3", "score": "0.5544867", "text": "public final TLinkable getPrevious() {\n return _prev;\n }", "title": "" }, { "docid": "542d5412546386d7c4b978c8f57a11fa", "score": "0.5543567", "text": "GenericRecord nextRecord();", "title": "" }, { "docid": "f9c3ea614457632c7fcc474aeefa0b34", "score": "0.55394226", "text": "@Override\n\tpublic String previous() {\n\t\tif (previousShort == null && !hasPrevious())\n\t\t\tthrow new NoSuchElementException();\n\t\tString n = previousShort;\n\t\tpreviousShort = null;\n\t\treturn n;\n\t}", "title": "" }, { "docid": "f307dcb319f07bc8bf90fbed65b86eba", "score": "0.5530014", "text": "public GameObject getPreviousObject() {\n\t\treturn this.previousObject;\n\t}", "title": "" }, { "docid": "70c482fa165c958eb85bc34086d3d15a", "score": "0.5529277", "text": "public int getRecordNumberBackward(int position) {\r\n\t\tint recNum = -1;\r\n\t\tint count = 0;\r\n\t\tIndexRecord temp = back;\r\n\t\twhile (temp != null && count < position) {\r\n\t\t\ttemp = temp.previous;\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tif (temp != null) {\r\n\t\t\trecNum = temp.recordNumber;\r\n\t\t}\r\n\t\treturn recNum;\r\n\t}", "title": "" }, { "docid": "9c90228c0b5f3785439dd64111c46b57", "score": "0.5529224", "text": "@Override\r\n\t\tpublic Object next() {\n\r\n\t\t\tif (currentNote == null && root != null) {\r\n\t\t\t\tcurrentNote = root;\t\r\n\t\t\t\treturn currentNote.object;\r\n\t\t\t}\r\n\r\n\t\t\tif (hasNext()) {\r\n\t\t\t\tpreviosNote = currentNote;\r\n\t\t\t\tcurrentNote = currentNote.ref;\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn currentNote.object;\r\n\r\n\t\t}", "title": "" }, { "docid": "1322785c1d78f919097259e73eaff4fb", "score": "0.55254376", "text": "public static Value getPrevious(Env env, @This Value obj)\n {\n return obj.getField(env, env.createString(\"previous\"));\n }", "title": "" }, { "docid": "2833f5a1f344b4e6f2db90a4f78323ef", "score": "0.5517951", "text": "public Node getPreviousSibling(){\n return isFirstChild()?null:previousSibling;\n }", "title": "" }, { "docid": "47659ce3c3e4e368faf107c25cdc77ac", "score": "0.55136424", "text": "public abstract int previous();", "title": "" }, { "docid": "781f8e7aff6d57534f978ef4b88b5ecb", "score": "0.54957783", "text": "public String getPrevHistoryEntry() {\n\t\titrIdx--;\n\t\tfinal int realIdx = entries.size() - itrIdx - 1;\n\t\tString retVal = null;\n\t\t\n\t\tif(realIdx >= 0 && realIdx < entries.size()) {\n\t\t\tfinal JissHistoryEntry entry = entries.get(realIdx);\n\t\t\tretVal = entry.getSource();\n\t\t}\n\t\treturn retVal;\n\t}", "title": "" }, { "docid": "255d36323d5cde10a2cba5fb92144ced", "score": "0.5479214", "text": "public CPointer<wmOperator> getPrev() throws IOException\n\t{\n\t\tlong __dna__targetAddress;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 8);\n\t\t} else {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 4);\n\t\t}\n\t\tClass<?>[] __dna__targetTypes = new Class[]{wmOperator.class};\n\t\treturn new CPointer<wmOperator>(__dna__targetAddress, __dna__targetTypes, __io__blockTable.getBlock(__dna__targetAddress, wmOperator.__DNA__SDNA_INDEX), __io__blockTable);\n\t}", "title": "" }, { "docid": "771bcbc5b18ee3089928b6fda7c9310a", "score": "0.54786825", "text": "public R last() {\n assertSize().isGreaterThan(0);\n List<R> list = get();\n return list.get(list.size() - 1);\n }", "title": "" }, { "docid": "6949c4713c40c913b6a46c8b186405cf", "score": "0.54688275", "text": "public IndexRecord delete(int recNum) {\r\n\t\tIndexRecord temp = front;\r\n\t\twhile (temp !=null && temp.recordNumber != recNum) {\r\n\t\t\ttemp = temp.next;\r\n\t\t}\r\n //3 cases:\r\n\t\tif ((temp == front) && (front != null)) { //record to delete is in front\r\n\t\t\tfront.next.previous=null;\r\n\t\t\tfront = front.next;\r\n\t\t}\r\n\t\telse if ((temp == back) && (back != null)) { //record is in back\r\n\t\t\tback.previous.next = null;\r\n\t\t\tback = back.previous;\r\n\t\t}\r\n\t\telse if (temp != null) { //record is in the middle\r\n\t\t\ttemp.next.previous = temp.previous;\r\n\t\t\ttemp.previous.next = temp.next;\r\n\t\t}\r\n\r\n\t\treturn temp;\r\n\t}", "title": "" }, { "docid": "0fddce1357b1b3f791a4e578b20d41ba", "score": "0.54664534", "text": "public CheckResult getPrevious() {\n\t\treturn previous;\n\t}", "title": "" }, { "docid": "9242015bda6f042a817ea54191addccf", "score": "0.546336", "text": "@Override\r\n\tpublic E getPreviousFlight(E flight) {\n\t String[] strs = flight.getLinkFlight().split(\"/\");\r\n\t if (strs.length == 3){\r\n\t \tString No = strs[0];\r\n\t \tDate date = DateTimeUtil.strToDate(strs[2]);\r\n\t \tOutIn outIn = OutIn.Arr;\r\n\t \tif (OutIn.Arr.equals(flight.getIsOutIn())){\r\n\t \t\toutIn = OutIn.Dep;\r\n\t \t}\r\n\t\t\tQueryConditions conditions = new QueryConditions();\r\n\t\t\tconditions.setExpresstion(new Object[]{Flight.FLIGHTNO,\"=\",No,\"AND\",Flight.ISOUTIN,\"=\",outIn,\"AND\",\r\n\t\t\t\t\tFlight.EXECDATE,\"=\",date});\r\n\t\t\tconditions.setFetchOneToMany(\"ALL\");\r\n\t\t\treturn findByConditionSingle(conditions);\r\n\t }\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "23fb7e6ffd0ff7b8b7818c87246ec5eb", "score": "0.54614294", "text": "public Player previous() {\n\t\t\treturn this == A ? B : A;\n\t\t}", "title": "" }, { "docid": "89240c4d9fcaf797ce029f6f1aed181d", "score": "0.5454507", "text": "public void TraverseBack(){\n TraverseBack(this);\n }", "title": "" }, { "docid": "30a5cc3754538cece5e7a4f8ffb98a96", "score": "0.54490995", "text": "private void getNext() {\n current = it.hasNext() ? it.next() : null;\n }", "title": "" }, { "docid": "0185da568c2fbac9a455843580cf960a", "score": "0.5441729", "text": "public Customer dequeue(){\n\n if(isEmpty()){\n return null;\n }\n //temp for first person\n Customer temp = first;\n\n //set first to second person in line\n first = first.getNext();\n\n //if they were last in line, make last null\n if(isEmpty()){\n last = null;\n }\n return temp;\n }", "title": "" }, { "docid": "0061fed47fad45519103e014ac8c6c2d", "score": "0.5436261", "text": "public String previous(){\n startId = startId - pageSize;\n recreateModel();\n return \"index\";\n }", "title": "" }, { "docid": "cebe4aed1a38df038797e2e7ce1e8042", "score": "0.54357177", "text": "public Move undoMove() {\n if(moveSeq.size()==0) {\n return null;\n }\n Move lastMove = moveSeq.get(moveSeq.size()-1);\n boardGrid[lastMove.getRow()][lastMove.getCol()] = null;\n moveSeq.remove(moveSeq.size()-1);\n return lastMove;\n }", "title": "" }, { "docid": "938a6eda05edd44ce679b672efb8175f", "score": "0.54299307", "text": "public Record top() {\n \n // If the heap is empty, ...\n if (last < 0) {\n \n // If there are no backup records; then return null\n if (backupSize == 0) {\n return null;\n }\n \n // Else, start a new run and build min-heap with backup records:\n newRun();\n \n // If backup_size is less than size, then move them to offset 0\n if (backupSize < size) {\n int backupOffset = (size - backupSize) \n * Externalsort.RECORD_SIZE;\n int backupBytes = backupSize \n * Externalsort.RECORD_SIZE;\n for (int i = 0; i < backupBytes; i++) {\n buf[i] = buf[backupOffset + i];\n }\n size = backupSize;\n }\n\n // Re-build min-heap with the backup records\n build();\n\n // Reset backup_size\n backupSize = 0;\n }\n \n run.incrementCount();\n return topRec;\n }", "title": "" }, { "docid": "d300909a300d4cab0f70c9d279cd02a4", "score": "0.54215044", "text": "public void back(){\r\n Room tmp = this.getCurrentRoom();\r\n this.setCurrentRoom(this.getPreviousRoom());\r\n this.setPreviousRoom(tmp);\r\n }", "title": "" }, { "docid": "eba31b5625aa71292abba3e9bd94bf4e", "score": "0.542021", "text": "final ChildNode previousSibling(){\n return isFirstChild()?null:previousSibling;\n }", "title": "" }, { "docid": "acfff9020457e6087bd08f966b6b5ef0", "score": "0.54051", "text": "public boolean previous()\n {\n return absolute(m_currRow - 1);\n }", "title": "" }, { "docid": "47b493a5bb6954b1680bd9cb1ef908f2", "score": "0.5404945", "text": "@Override\n public Piece getPreviousPiece() {\n return previousPiece;\n\n }", "title": "" }, { "docid": "87c5605a4c9eff0b78dd4f8f17b8670a", "score": "0.54024", "text": "public java.lang.String getPrevious() {\n return previous;\n }", "title": "" }, { "docid": "87c5605a4c9eff0b78dd4f8f17b8670a", "score": "0.54024", "text": "public java.lang.String getPrevious() {\n return previous;\n }", "title": "" }, { "docid": "8e373f859abbe53f9079de7add9f8dba", "score": "0.5399348", "text": "private Node getPreviousNode(Node n) {\n\t\tif (n == start) {\n\t\t\treturn null;\n\t\t}\n\n\t\tNode temp = start;\n\t\twhile (temp.getNextNode() != n) {\n\t\t\ttemp = temp.getNextNode();\n\t\t}\n\t\treturn temp;\n\t}", "title": "" }, { "docid": "7131ecc7d17c9bc65ad1ac99cdbafe7b", "score": "0.53951454", "text": "public boolean rsource_nextRecord() {\n\n // get next row until we find one which matces the current row in the link area\n\n\n while ((currentRow < (Rows - 1))) {\n\n\n currentRow++;\n\n\n if (checkForeignKey()) return true;\n\n\n }\n\n\n return false;\n\n\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "0dff93a73a5e2b7220c681d805936e9f", "score": "0.0", "text": "@Override\n\tpublic void hyperlinkUpdate(HyperlinkEvent e) {\n\t\t\n\t\tif (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\thtmlPage.setPage(e.getURL());\n\t\t\t} catch (IOException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\ttheURL.setText(e.getURL().toExternalForm());\n\t\t\t\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6681592", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6681592", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.65706384", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64830863", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64358324", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "c63a11bb1bf0acb98a99c66ee94527a7", "score": "0.63142073", "text": "@Override\r\n\tpublic void ispeci() {\n\r\n\t}", "title": "" }, { "docid": "ccde520bca72caa0d77ef1b117291759", "score": "0.6233861", "text": "@Override\r\n\tpublic void osmossis() {\n\r\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "9b8d94120800074e25f9674e2e960bd0", "score": "0.62156105", "text": "@Override\n public void curar() {\n\n }", "title": "" }, { "docid": "73d2e78e03547e3a30a40b196bae2c7d", "score": "0.61959624", "text": "@Override\r\n\tpublic void calificar() {\n\r\n\t}", "title": "" }, { "docid": "74a1be816f56189120d6d74f61abd8f9", "score": "0.6177264", "text": "@Override\n\tpublic void apagate() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9674eaf92d88fa5ee1741a3c135f859c", "score": "0.609503", "text": "@Override\n\tpublic void Resert() {\n\n\t}", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.60708153", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.60667324", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "4a4d6ca4f76cf550f30a1b3469c5c600", "score": "0.6050197", "text": "@Override\n\tpublic void heilen() {\n\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.60398114", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.601073", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.600875", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "06b59299a5db6a0902fdbf88e7826cfa", "score": "0.599773", "text": "private void naceSer() {\n\n\t}", "title": "" }, { "docid": "2ccd2a90144fab8b5fa71c58ca003352", "score": "0.5978821", "text": "@Override\n\tpublic void falar() {\n\t\t\n\t}", "title": "" }, { "docid": "0f6e1929716bfb216fb0d53f4c72c746", "score": "0.5975817", "text": "@Override\n\tpublic void hesapla() {\n\t\t\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935147", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "fede515c585b365b04aace2b909737cf", "score": "0.59062445", "text": "@Override\r\n\tvoid dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "8a51433116320d5ea7de338cae668e7e", "score": "0.5878679", "text": "@Override\n\tpublic void competir() {\n\t\t\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5865623", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "b8693030a2b5a0ed9423a2578e5d2a26", "score": "0.58643967", "text": "@Override\n\tpublic void toto() {\n\t\t\n\t}", "title": "" }, { "docid": "f3d9d337b86266fa06b6c124066ba10f", "score": "0.5853753", "text": "@Override\n\tpublic void suivant() {\n\n\t}", "title": "" }, { "docid": "ab2f45ed8ffa08a06ff449780f0ea9da", "score": "0.5835419", "text": "@Override\r\n\tpublic void ha() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9293596216c60e2004e0a8cfb950ad0f", "score": "0.5823172", "text": "@Override\r\n\tpublic void pripremi() {\n\r\n\t}", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "8a33b8de7a2fdf8b7088903dc4a4cf5f", "score": "0.5779682", "text": "@Override\n\tpublic void affiche() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c19a49911957739008b73b032429cb01", "score": "0.57708335", "text": "public void initalize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1717024d52ad1ad5517c9f135ea71904", "score": "0.57634485", "text": "@Override\r\n\tprotected void initValue()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "598681cc815af7b9f96d5d7ce97e7b20", "score": "0.5756299", "text": "public void mo5669b() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5737521", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "dbccea21c95a2d676935a3ea758b163e", "score": "0.57351506", "text": "@Override\r\n\tpublic void limpiar() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94b0ced5bfd6c8796dfd708a164694df", "score": "0.5717778", "text": "@Override\n public void desplazarse() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57160354", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.57140064", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c823d8b0c4f55d3f03359daefc39a00", "score": "0.5712678", "text": "@Override\n\tpublic void lanzar() {\n\n\t}", "title": "" }, { "docid": "15823e29a9b2fc554cc535992e0eacee", "score": "0.5709881", "text": "@Override\r\n\tpublic void initData() {\n\r\n\r\n\t}", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.570341", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "9b197585ec90d98a2e41d154a1678e4a", "score": "0.57023877", "text": "@Override\n protected void refreshInit() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "a3060192856bd2663b96bd0ef31d99fd", "score": "0.56853366", "text": "@Override\n\t\t\t\tpublic void refresh() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "c13ae19df69e3abfecf963fdcf9a29ee", "score": "0.568208", "text": "@Override\n\tpublic void c12() {\n\t\t\n\t}", "title": "" }, { "docid": "3207dcaa6322a2a59b6687b951ef91d7", "score": "0.5679023", "text": "@Override\n\tpublic void Damege() {\n\t\t\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5d97082ad890b2df7c126438819d2c54", "score": "0.5665557", "text": "private void envejecer() {\n\t\t\n\t}", "title": "" }, { "docid": "8c203fbc4b35fbc9b64bf6b47d67d29a", "score": "0.56584716", "text": "@Override\n\tpublic void freshStart() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "4dc967945b63b3f9ccc200b50799205b", "score": "0.56479424", "text": "@Override\n\tprotected Item func_149866_i() {\n return null;\n }", "title": "" }, { "docid": "4701bace660096d78c2bf92bfe4b6dd4", "score": "0.5643848", "text": "@Override\n\t\t\t\t\tpublic Sequence sequence() {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "title": "" }, { "docid": "8ce70d18e04299fa79dc9066550f3a42", "score": "0.56376165", "text": "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f2b0e20cc959024f21173c16e77430c4", "score": "0.5629117", "text": "@Override\n\tpublic void deneme() {\n\t\t\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "892e81ba33fe99f590f49f4fd7ed10a8", "score": "0.5621647", "text": "private void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5617086", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5617086", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "1e530a3abecfdbdcf6f7ca4bd7294921", "score": "0.56150234", "text": "@Override\n\tpublic void andar() {\n\t\t\n\t}", "title": "" } ]
886542987a78b6626458208c94217196
The editor does not have an advanced mode so this is ignored.
[ { "docid": "056a624480c9b16ecbb1c971b85d71d1", "score": "0.71374255", "text": "public void setAdvanced ( @ SuppressWarnings ( \"unused\" )\n boolean status )\n {\n // the editor does not have an advanced mode so this is ignored.\n }", "title": "" } ]
[ { "docid": "45a2331b01aad6c641584baffc22a96a", "score": "0.76053524", "text": "@Override\r\n public boolean hasEditor() {\n return false;\r\n }", "title": "" }, { "docid": "5a93c693de6e03334e3436aa8f041af8", "score": "0.75089496", "text": "@Override\n public boolean isEditor() {\n return true;\n }", "title": "" }, { "docid": "f1268b9acb50602f7b96a8e135c2f6fa", "score": "0.70437086", "text": "public boolean hasEditor()\n {\n return true;\n }", "title": "" }, { "docid": "d3ec2e14d96ee17a26372ec912c3d8fa", "score": "0.6959054", "text": "public boolean supportsCustomEditor()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "60377d7d85ebface38fabee921225e0a", "score": "0.6636244", "text": "boolean isIsEditor();", "title": "" }, { "docid": "7dd516ca6479fc5a7133942215c04f77", "score": "0.6604321", "text": "@DSComment(\"Normal GUI\")\n @DSSafe(DSCat.GUI)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:29:38.664 -0500\", hash_original_method = \"B880B01C07154F288A73209778F72869\", hash_generated_method = \"70818C720D3A8CB90D23B6BC79008392\")\n \npublic boolean isInEditMode() {\n return false;\n }", "title": "" }, { "docid": "fbe86b7bb2897f06fd384cf4cc393298", "score": "0.6567667", "text": "@Override\n\tpublic boolean onCheckIsTextEditor() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "48e5e1e7f1ed879acb2391bf34547d48", "score": "0.6368366", "text": "protected boolean alwaysUseFileOpenedInEditor()\n {\n return false;\n }", "title": "" }, { "docid": "6f9b8b366061ddffcfbe31d37799abfe", "score": "0.629971", "text": "void mo51445a(Editor editor);", "title": "" }, { "docid": "f41472fff7c3c536c78c1337ebd346d4", "score": "0.6228613", "text": "boolean isUseGenericEditorPartFallback();", "title": "" }, { "docid": "4a86fd3679a126bc7fdfc5dc1251458f", "score": "0.6179584", "text": "@Override\r\n\tprotected void writeAdvanceDialog() {\n\t\tthis.advancedDialog.setText(\"For advancedDialog\");\r\n\t}", "title": "" }, { "docid": "100c9619392e4934a67d99019202a29d", "score": "0.6174627", "text": "public boolean editModeIsForced()\n \t{\n \t\treturn editModeForced;\n \t}", "title": "" }, { "docid": "da2bca1a8de70c4c5ec5ea84fdb29e65", "score": "0.6116377", "text": "boolean isInEditMode();", "title": "" }, { "docid": "fa511a430d7c69f018ba9ccaacf12bac", "score": "0.6046455", "text": "@Override\r public void setFieldEditorCode() {", "title": "" }, { "docid": "80be175947c11615d54182452e91473a", "score": "0.6000762", "text": "public Component getCustomEditor()\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7244918f9c66b64a183beb0749374716", "score": "0.5971481", "text": "public boolean isEditorAreaVisible();", "title": "" }, { "docid": "6893fe5bb2c73ca90818c8a593560331", "score": "0.59589684", "text": "private Editor getEditor(boolean showInterface)\n {\n return null;\n }", "title": "" }, { "docid": "c37e6529fdad59c5adada158ea32c519", "score": "0.59375864", "text": "public boolean beforeEdit() {\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "1304e393b56ddcd210850f590155bc97", "score": "0.5930832", "text": "public boolean isEditing()\n {\n return false;\n }", "title": "" }, { "docid": "d35181dc498a0eeb1c920c4bf3fb6446", "score": "0.5922741", "text": "@Override\n \tpublic void partActivated(IWorkbenchPart part) {\n \t\tif (editors.containsKey(part)) {\n \t\t\tsetAsActive((AbstractDecoratedTextEditor) part);\n \t\t\t/*DEBUG*/System.out.println(\"Resumed : \"+part);\n \t\t}\n \t}", "title": "" }, { "docid": "93e45ed029d84acbc0d8c87fcf0de47b", "score": "0.5915087", "text": "public Editor getEditorIfOpen()\n {\n return editor;\n }", "title": "" }, { "docid": "d20638fb0442edd43bf8f4d26a896daa", "score": "0.58921206", "text": "public void visit(RunMode m) {\n // TODO hide cursor\n }", "title": "" }, { "docid": "9008dd27f5c50c9fffe5eb01f3f02532", "score": "0.587547", "text": "public void hideEmbeddedEditor() {\n\t\tif(editor != null) {\n\t\t\teditor.getViewer().getControl().setVisible(false);\n\t\t}\n\t}", "title": "" }, { "docid": "2b56b7fbb64a31a4c8583b2214f49bf5", "score": "0.5860515", "text": "private void showThemeEditor() {\n\t\tThemes.showThemeEditor(controller);\n\t}", "title": "" }, { "docid": "53a2d5c224356a158f7df8fe2f00b699", "score": "0.5812116", "text": "@Override\n\t\t\t\tpublic void onChange(ChangeEvent event) {\n\t\t\t\t\tif (codeType.getValue(codeType.getSelectedIndex()).equalsIgnoreCase(\"no_mode\") == false)\n\t\t\t\t\t\tDmaUtil.setEditorMode(1, codeType.getItemText(codeType.getSelectedIndex()), codeType.getValue(codeType.getSelectedIndex()));\n\t\t\t\t}", "title": "" }, { "docid": "a314542d021bac3ad53bd20134e88aee", "score": "0.5782462", "text": "@Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n return false;\n }", "title": "" }, { "docid": "b7bca94ee2e3c031bd4acd6c1d07756a", "score": "0.5772922", "text": "@Override\n\tpublic void aboutToBeHidden() {\n\t\tsuper.aboutToBeHidden();\n\t\t// this.embeddedEditor.getViewer().getTextWidget().dispose();\n\t\t// this.embeddedEditor=null;\n\t}", "title": "" }, { "docid": "1071e4b7b1096ec7c73e130983689521", "score": "0.5771275", "text": "public IEditorPart getActiveEditor()\n {\n return Utils.getCurrentModeler();\n }", "title": "" }, { "docid": "ba430a388f94d395b7eceffef222e8eb", "score": "0.57679695", "text": "@Override\n\t\t\tprotected FlexoEditingContext createEditingContext() {\n\t\t\t\treturn FlexoEditingContext.createInstance(false);\n\t\t\t}", "title": "" }, { "docid": "9e1122c3fe9533e131a55a7cca54b5d3", "score": "0.57634515", "text": "public void partActivated(IEditorPart editorPart) {\n checkFollowMode(editorPart);\r\n \r\n if (!isSharedEditor(editorPart)) {\r\n return;\r\n }\r\n \r\n sharedEditorActivated(editorPart);\r\n }", "title": "" }, { "docid": "8fefbf60d0659f37b60a6565551853b1", "score": "0.5761033", "text": "public void setEditor(String editor) {\r\n\t\tthis.editor = editor;\r\n\t}", "title": "" }, { "docid": "7ef9081512e94cca6729d8a69cf6e220", "score": "0.57493865", "text": "@Override\n public boolean isSpecialActive(){\n return false;\n }", "title": "" }, { "docid": "ddbfdb304b960d5d00cb77de1dc61eb9", "score": "0.5749091", "text": "public boolean getEditMode(){\r\n\t\treturn editMode_;\r\n\t}", "title": "" }, { "docid": "e213b05d349f46f741ceb7a2ffbde2d8", "score": "0.5749021", "text": "@Override\n\tprotected boolean canEdit(Object arg0) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "734bf36c44d3970e292974c218d6aea3", "score": "0.5739085", "text": "private void enableModifyDescription() {\r\n\t\tdescriptionArea.setEditable(true);\r\n\t}", "title": "" }, { "docid": "d6c24f556381c43d01302470e6a155f2", "score": "0.5720948", "text": "public void setEditMode() {\n\t\t// this.addMimeTypeButton.setVisible(editable);\n\t\t// this.mimeDropList.setVisible(editable);\n\t\tthis.depthSpinner.setEnabled(editable);\n\t\tthis.granularDepthSpinner.setEnabled(editable);\n\t\tthis.nameField.setEditable(editable);\n\n\t}", "title": "" }, { "docid": "aabc981e72b90f905be57c7c39725a16", "score": "0.5717622", "text": "public boolean hasDirectEdit()\n\t{\n\t return true;\n\t}", "title": "" }, { "docid": "cc1c85f79a758ac88484830e119a1218", "score": "0.57162446", "text": "public java.awt.Component getCustomEditor() {\n return null;\n }", "title": "" }, { "docid": "12c51f89d676a6ce4d489ee4c9810508", "score": "0.56971186", "text": "@Override\n public boolean isEditable()\n {\n return true;\n }", "title": "" }, { "docid": "30d036437c761c9ca42177549b76b747", "score": "0.5693033", "text": "@Override\n public void visit(FreeDesignMode m) {\n \n }", "title": "" }, { "docid": "30d036437c761c9ca42177549b76b747", "score": "0.5693033", "text": "@Override\n public void visit(FreeDesignMode m) {\n \n }", "title": "" }, { "docid": "14aed41bafc21db9b15c48853b7cdb73", "score": "0.5684079", "text": "boolean isPinEditorByDefault();", "title": "" }, { "docid": "3d0cf56f41228914b647fb4cbc253fc4", "score": "0.5667989", "text": "@Override\n protected void selectEditorTab() {\n onEditTabSelected();\n }", "title": "" }, { "docid": "aee5bacf42a5ef68451066db36fb2a39", "score": "0.56627697", "text": "@Override\n public boolean isEnabled() {\n return false;\n }", "title": "" }, { "docid": "8100119ee87d3ffef1622fbec1ed40bb", "score": "0.5662745", "text": "public static boolean hasEditorMode(Player player) {\n\n return editors.containsKey(player);\n }", "title": "" }, { "docid": "faaaf87b0668eb1fb341224ec8098d83", "score": "0.5662423", "text": "public String getEditor() {\r\n\t\treturn editor;\r\n\t}", "title": "" }, { "docid": "4f0a56c4dfe840ac6cfaabbc41050569", "score": "0.566157", "text": "@Override\r\n\tpublic void edit() {\n\r\n\t}", "title": "" }, { "docid": "b02041fd0e196a4de89ebe520c213af0", "score": "0.56560993", "text": "public boolean canCustomize()\n {\n return(true);\n }", "title": "" }, { "docid": "5828bd71b9a3f25ed6a48b53bf996f14", "score": "0.56501585", "text": "public boolean isEditable() {\n\t\treturn EDITOR_COMPONENT != null;\n\t}", "title": "" }, { "docid": "eb75ead589afc0f80e55be26854f671d", "score": "0.56500065", "text": "public void setEditorAreaVisible(boolean showEditorArea);", "title": "" }, { "docid": "a1ba70dc06a0183f7d711711847c9f17", "score": "0.5649028", "text": "@Override\n public void update(@NotNull final AnActionEvent e) {\n final Project project = e.getProject();\n final Editor editor = e.getData(CommonDataKeys.EDITOR);\n e.getPresentation().setEnabledAndVisible(project != null && editor != null && editor.getSelectionModel().hasSelection());\n }", "title": "" }, { "docid": "bb36f464f1fd1ba56ee7dbd00efb2965", "score": "0.5632971", "text": "public void showLevelEditor()\n\t{\n\t\tif (mainFrame_.showLevelEditor())\n\t\t\tstate_ = PAINT_STATE.OTHER_PANELS;\n\t}", "title": "" }, { "docid": "f29e899c4d37b30f258258c5bb4387ca", "score": "0.5630935", "text": "public boolean isEditable() {\n\treturn false;\r\n }", "title": "" }, { "docid": "2cb004376d5d1af4ba6e87822a7e34d0", "score": "0.56293315", "text": "private EditorSettingDetails()\n\t{\n\n\t}", "title": "" }, { "docid": "1dc82fa835d091e92884d5221f106f0a", "score": "0.5615076", "text": "@Override\r\n\tpublic boolean edit(Entity e) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "6803476a03a3633cc8aa24df464ccc07", "score": "0.5614736", "text": "protected BuilderActionModeCallback(@NonNull EasyEditManager manager) {\n super(manager);\n prefs = App.getPreferences(main);\n }", "title": "" }, { "docid": "d9c744f69f6485975ba120e856992fce", "score": "0.5613746", "text": "private void contbActionPerformed(java.awt.event.ActionEvent evt) { \r\n advanced = true;\r\n }", "title": "" }, { "docid": "30d06d87b2be251e4175926e6db3df3b", "score": "0.5613145", "text": "public boolean isEditRealizer() {\n return editRealizer;\n }", "title": "" }, { "docid": "be01a975e2621148e8ce6fe36fb0a533", "score": "0.56024677", "text": "@Override\r\n public boolean additional() {\r\n return false;\r\n }", "title": "" }, { "docid": "802a5a4389882147e78d6fa02a37a7c6", "score": "0.55906916", "text": "@Override\n public boolean isEnabled() {\n return true;\n }", "title": "" }, { "docid": "7eb986db93ca7d72065f6fb3de1de57e", "score": "0.5578129", "text": "@Override\n public boolean isEditPermissionEnabled()\n {\n return false;\n }", "title": "" }, { "docid": "81b76b297e7269556026927aa1f84365", "score": "0.55702233", "text": "private void disableEditable() {\n aboutarea.setEditable(false);\n aboutarea.setBackground(new Color(240, 240, 240));\n addresstf.setEditable(false);\n birthdaytf.setEditable(false);\n citytf.setEditable(false);\n collegetf.setEditable(false);\n companytf.setEditable(false);\n emailtf.setEditable(false);\n usernametf.setEditable(false);\n gradyeartf.setEditable(false);\n phonetf.setEditable(false);\n politicaltf.setEditable(false);\n professiontf.setEditable(false);\n quotestf.setEditable(false);\n religiostf.setEditable(false);\n sextf.setEditable(false);\n }", "title": "" }, { "docid": "d2ed59717c0f7e02b09364780bcab7ef", "score": "0.55633295", "text": "private void showEditor(final TreeItem item, boolean advanced) {\n disposeOldEditor();\n if (item == null) {\n return;\n }\n\n try {\n IValueController valueController = new ComplexValueController(\n (ComplexElement)item.getData(),\n advanced ? IValueController.EditType.EDITOR : IValueController.EditType.INLINE);\n\n IValueEditor newCellEditor = valueController.getValueManager().createEditor(valueController);\n if (newCellEditor != null) {\n newCellEditor.createControl();\n if (newCellEditor instanceof IValueEditorStandalone) {\n ((IValueEditorStandalone) newCellEditor).showValueEditor();\n } else {\n Control editorControl = newCellEditor.getControl();\n if (editorControl != null) {\n Point editorSize = editorControl.computeSize(SWT.DEFAULT, SWT.DEFAULT);\n treeEditor.minimumHeight = editorSize.y;\n //treeEditor.minimumWidth = editorSize.y;\n treeEditor.setEditor(editorControl, item, 1);\n editorControl.setFocus();\n }\n }\n if (!advanced) {\n newCellEditor.primeEditorValue(valueController.getValue());\n }\n curCellEditor = newCellEditor;\n }\n } catch (DBException e) {\n DBWorkbench.getPlatformUI().showError(\"Cell editor\", \"Can't open cell editor\", e);\n }\n }", "title": "" }, { "docid": "15ad5cf5dfa98a99909d928c14c41a18", "score": "0.5561375", "text": "@Override\n public void update(AnActionEvent e)\n {\n final Editor editor = e.getRequiredData(CommonDataKeys.EDITOR);\n CaretModel caretModel = editor.getCaretModel();\n e.getPresentation().setEnabledAndVisible(caretModel.getCurrentCaret().hasSelection());\n }", "title": "" }, { "docid": "9dc59e2047382f3938676bd1bfd89ebf", "score": "0.5552079", "text": "public String getEditorArea();", "title": "" }, { "docid": "bb6b36e1cc17e170fca755b384dbb59c", "score": "0.5536647", "text": "@Override\r\n public boolean isEnabled() {\n\treturn false;\r\n }", "title": "" }, { "docid": "a78f8705fc9c275c0bf0570a48822d3c", "score": "0.5534999", "text": "void editorEvent(int KeyboardCode)\r\n\t{\r\n\t\tint tmp;\r\n\t\tif ((tmp=isDirectionCode(KeyboardCode))!=-1)\r\n\t\t{\r\n\t\t\teditorX=(editorX+editorDx[tmp]+26)%26;\r\n\t\t\teditorY=(editorY+editorDy[tmp]+26)%26;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (KeyboardCode==KeyEvent.VK_S)\r\n\t\t{\r\n\t\t\tsaveEditMap();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (KeyboardCode==KeyEvent.VK_SPACE)\r\n\t\t{\r\n\t\t\teditorChangeState();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (KeyboardCode==KeyEvent.VK_ESCAPE)\r\n\t\t{\r\n\t\t\tmenuMode=true;\r\n\t\t\teditorMode=false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cd1ea011700c0df0e21427dc30d029d3", "score": "0.55191517", "text": "@Override\n public boolean isInteractive() {\n return interactive;\n }", "title": "" }, { "docid": "27bb7763d5011a2c74d8a937d21152e8", "score": "0.55122733", "text": "private EditorMode queryEditorMode() {\n\t\tEditorMode mode = null;\n\t\tString dialogTitle = \"Choose the proper editor mode\";\n\t\tString modeQuestion = \"Choose the proper editor mode (it will be possible to change the mode later)\";\n\t\tString scripterButtonText = \"test scripter\";\n\t\tString combinerButtonText = \"test combiner\";\n\t\tMessageDialog modeDialog = new MessageDialog(org.eclipse.ui.PlatformUI\n\t\t\t\t.getWorkbench().getActiveWorkbenchWindow().getShell(),\n\t\t\t\tdialogTitle, null, modeQuestion, 0, new String[] {\n\t\t\t\t\t\tscripterButtonText, combinerButtonText }, 0);\n\t\tint numericChosenMode = modeDialog.open();\n\t\tif (numericChosenMode == 0) {\n\t\t\tmode = EditorMode.scripterMode;\n\t\t} else {\n\t\t\tmode = EditorMode.combinerMode;\n\t\t}\n\n\t\treturn mode;\n\t}", "title": "" }, { "docid": "e34cf70bcf93c06bd98c4415ff242608", "score": "0.5506913", "text": "@Override\r\n\tpublic String edit() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "1cb2b2998647b2f724c8db7fbe7f178c", "score": "0.5506094", "text": "@Override\n public boolean isEnabled() {\n return true;\n }", "title": "" }, { "docid": "1cb2b2998647b2f724c8db7fbe7f178c", "score": "0.5506094", "text": "@Override\n public boolean isEnabled() {\n return true;\n }", "title": "" }, { "docid": "1cb2b2998647b2f724c8db7fbe7f178c", "score": "0.5506094", "text": "@Override\n public boolean isEnabled() {\n return true;\n }", "title": "" }, { "docid": "1cb2b2998647b2f724c8db7fbe7f178c", "score": "0.5506094", "text": "@Override\n public boolean isEnabled() {\n return true;\n }", "title": "" }, { "docid": "1cb2b2998647b2f724c8db7fbe7f178c", "score": "0.5506094", "text": "@Override\n public boolean isEnabled() {\n return true;\n }", "title": "" }, { "docid": "1cb2b2998647b2f724c8db7fbe7f178c", "score": "0.5506094", "text": "@Override\n public boolean isEnabled() {\n return true;\n }", "title": "" }, { "docid": "d7cafb40abf3851d0ffc20bb0960270e", "score": "0.5499347", "text": "public boolean beforeSaveEdit() {\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "cdcd2536f61fa59f51289145317cdc5f", "score": "0.54981685", "text": "public EditorTool(){\n\t}", "title": "" }, { "docid": "92cf26b677995f7665597e0355d08c14", "score": "0.5495607", "text": "@Override\n public void setEmacsMode(boolean emacsMode) {\n }", "title": "" }, { "docid": "70318221af9dcbb0ee5aaa2ca48d2f40", "score": "0.54864556", "text": "public boolean isEditKind() {\n return editKind;\n }", "title": "" }, { "docid": "a8a177f87495791dcf200229aa3e5aac", "score": "0.5485666", "text": "@Override\n\tprotected void init(EOEditingContext ec) {\n\t\tsuper.init(ec);\n\n\t\tsetIsActive(true);\n\t\tsetIsAccountExec(false);\n\n\n\t}", "title": "" }, { "docid": "6ba122ae2461bf9ed2bdd4b3caef3537", "score": "0.54855865", "text": "protected WorkspaceFileFieldEditor() {\n\t}", "title": "" }, { "docid": "e0b4cf8faca7e9079d8cb138ff7d7bcd", "score": "0.54830754", "text": "private void setProperCursorShape(Editor editor) {\n if(VIMMode.getModeToString().equals(\"INSERT MODE\")) {\n editor.getSettings().setBlockCursor(false);\n }\n else {\n editor.getSettings().setBlockCursor(true);\n }\n }", "title": "" }, { "docid": "e0f930ea672a38d2d9bed317130e3c03", "score": "0.54725164", "text": "public boolean isEditable() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e0f930ea672a38d2d9bed317130e3c03", "score": "0.54725164", "text": "public boolean isEditable() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8d1f16d2f56c94684c6643703d08feb8", "score": "0.5467811", "text": "public boolean renderQuickfinder() {\r\n return false;\r\n }", "title": "" }, { "docid": "6a60c9bcf2e22ee3369222f1a787c6cb", "score": "0.54677653", "text": "@Override\n\tprotected void changeEditable() {\n\t}", "title": "" }, { "docid": "077db1baf79b702eeb71c7bdf306bd76", "score": "0.5464473", "text": "@Override\r\npublic boolean isEnabled() {\n\treturn false;\r\n}", "title": "" }, { "docid": "fe1efcc125c4e97130b1dfac186b6d64", "score": "0.54642224", "text": "@Override\n\tpublic String edit() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a686e0d9229ef427fe20ac6ade16ca6c", "score": "0.5449547", "text": "public boolean getEditMode() {\n\t\treturn editMode;\n\t}", "title": "" }, { "docid": "c239eee6ec7f136e107d1ab5fff87f15", "score": "0.54416084", "text": "public void editingStarted() { }", "title": "" }, { "docid": "c3442ac675aa9bbba7e7f46324b2e80d", "score": "0.5440568", "text": "public boolean isPreview()\n {\n return !isEditing();\n }", "title": "" }, { "docid": "dbbd91374b39871a2308ca445ef73fda", "score": "0.54383844", "text": "@Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n return actionId == 4;\n }", "title": "" }, { "docid": "4518752701a9ffac384e2fdd230cab2b", "score": "0.54242456", "text": "private boolean canSelectByMode() {\r\n return true;\r\n }", "title": "" }, { "docid": "55edb3121c628808985b86aaf235ed38", "score": "0.54201496", "text": "private void editorClose() {\r\n editor.setText(\"\");\r\n }", "title": "" }, { "docid": "8eb93d15f7459f11dad5b0786add6d04", "score": "0.54039943", "text": "public boolean isEditor() {\n for (String r : roles) {\n if (r.equals(\"editor\")) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "4abdc01d4e36828e0daed1f453a9255a", "score": "0.5393556", "text": "public CEditorLoad(IEditor editor) {\n\tsuper(editor);\n}", "title": "" }, { "docid": "1a9fb534a13c82b5933988081ad68773", "score": "0.53902024", "text": "public InspectorPanel(EditorPane anEP) { super(anEP); }", "title": "" }, { "docid": "b7d6c13f0bdaead1849feb1883eed027", "score": "0.5388315", "text": "public boolean isEditable() {\n return true;\n }", "title": "" }, { "docid": "c0b48ee2f1aabbb6b68dd4671c0189b7", "score": "0.53849304", "text": "public <V> void showContinuousEditor(Component parentComponent, VisualProperty<V> type) throws Exception;", "title": "" } ]
80529f957bf52006315ddb52ed8a0b3b
/ ==================================================================== Abstract methods ====================================================================
[ { "docid": "0036ab0a28b966abf44a6a3a5203f949", "score": "0.0", "text": "@Override\n public CurrentAccess getCurrentAccess() throws WebdavException {\n return null;\n }", "title": "" } ]
[ { "docid": "faaac6c61a47fc7384495cb61cc307ff", "score": "0.6911336", "text": "abstract public void cr();", "title": "" }, { "docid": "36d9fdd156ef8b6dde6feb3e03745655", "score": "0.6889405", "text": "@Override\r\n\tpublic void abstractMethod() {\n\t\t\r\n\t}", "title": "" }, { "docid": "98f1dea69d735b5ee10fa098a29019c9", "score": "0.68855596", "text": "public abstract void comer();", "title": "" }, { "docid": "18d18250da87faaa22208f854d596a13", "score": "0.6798097", "text": "public abstract void use();", "title": "" }, { "docid": "8d36aaa2f06b7300b8a0ed5f2b258225", "score": "0.671933", "text": "abstract protected void zeichne();", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.66971874", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4e15b200c2022658af267c700b34269", "score": "0.66124946", "text": "@Override\n\tpublic void anlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "cf1824fae9a5356814b3b9fa0d285e57", "score": "0.66037226", "text": "abstract public void get();", "title": "" }, { "docid": "1425754c0b6b521e9027a8ab1f78d35e", "score": "0.65904504", "text": "abstract void mo13996b();", "title": "" }, { "docid": "66c8d0bbe426957e2744f364f9be012e", "score": "0.6582349", "text": "public abstract void mo22955a();", "title": "" }, { "docid": "8cd91002074e33fb538d203dcd27c6db", "score": "0.65611404", "text": "protected abstract void mo773k();", "title": "" }, { "docid": "a174612a245c5b3e89f2497058adde97", "score": "0.65277076", "text": "public abstract void schliessen();", "title": "" }, { "docid": "ab5949a55e2e1995ace4df24168c9645", "score": "0.65074897", "text": "@Override\n String hitungParentAbstractMethod() {\n return \"ABSTRACT IMPLEMENTATION DI MAHASISWA\";\n }", "title": "" }, { "docid": "2e1460a688e491cc26674a0b03cc0805", "score": "0.6501404", "text": "public abstract void refuel();", "title": "" }, { "docid": "80f3877f0767dc9b367027f2282d37bb", "score": "0.64846164", "text": "public abstract void mo57563a();", "title": "" }, { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.64690775", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce93a10c188e6e03d68a0b8268264716", "score": "0.644607", "text": "abstract void mo13993a();", "title": "" }, { "docid": "fbbec862419c972d09272ca65a86e9ba", "score": "0.6432643", "text": "public abstract void method();", "title": "" }, { "docid": "6fe0f56da0ed79e2130e17ec9f6d3ad3", "score": "0.6411262", "text": "public abstract void personInformation();", "title": "" }, { "docid": "6c285e5ef8116dae399f25ecadcc05ff", "score": "0.6399018", "text": "protected abstract void mo774l();", "title": "" }, { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.6398157", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "93cc806b248da1021155fae7256b43f3", "score": "0.6393687", "text": "public abstract void mo9019a();", "title": "" }, { "docid": "5f127f77969d3130c5457b82f5c9061e", "score": "0.6392859", "text": "public abstract void mo25215a();", "title": "" }, { "docid": "063ae6a38469d06ddf88fd9af6522171", "score": "0.6384237", "text": "@Override\r\n\tpublic void guru() {\n\t\t\r\n\t}", "title": "" }, { "docid": "49952cd8cb347a40d84324932ad6c614", "score": "0.63585454", "text": "public abstract void mo119755a();", "title": "" }, { "docid": "7169c69f702a37c4018b7582069c6f4d", "score": "0.63318884", "text": "public abstract void mo41966a();", "title": "" }, { "docid": "725e2c1315b0a95c9e8a2793d047860e", "score": "0.63269955", "text": "public abstract ag a ( ) {\n}", "title": "" }, { "docid": "6280813123d701e389cadcc83e149eca", "score": "0.6320336", "text": "abstract public void Process();", "title": "" }, { "docid": "e0484a0369823567b49e79228c2162ea", "score": "0.6298247", "text": "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d3082ef05aec8dc343ca108ab345f43a", "score": "0.62973034", "text": "@Override\r\n\tpublic void morir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e1e5b8fcc1f7e4157ca93146dbf0cd5c", "score": "0.6295221", "text": "public abstract void mo43787a();", "title": "" }, { "docid": "a4c2c26c7ea908455760801f914cf68c", "score": "0.6289581", "text": "public abstract void mo27217f();", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.62883914", "text": "protected void method_3848() {}", "title": "" }, { "docid": "d95e8174e251b73a4f1ed2c8e20a3904", "score": "0.62847745", "text": "public abstract void mo69233fj();", "title": "" }, { "docid": "325772492a3687d36605303ffc30d8ac", "score": "0.6281105", "text": "@Override\n\tpublic void abastecer() {\n\t}", "title": "" }, { "docid": "1f324d9e654bb8dd126dd2c9bfde8995", "score": "0.62794864", "text": "public abstract void SpecialPaper();", "title": "" }, { "docid": "a50e225049de5302e22a2a0c0cc041a3", "score": "0.6274388", "text": "protected abstract void construct();", "title": "" }, { "docid": "a50e225049de5302e22a2a0c0cc041a3", "score": "0.6274388", "text": "protected abstract void construct();", "title": "" }, { "docid": "5ec1fa7e45910ded9fefa3f77046d1d3", "score": "0.62663805", "text": "protected abstract void mo1754m();", "title": "" }, { "docid": "d785d987aac2cf4f0732fc44f480fe7c", "score": "0.62610227", "text": "public interface AbstractC01140Ri {\n}", "title": "" }, { "docid": "8098f18ea0ac3102273376dccf09017d", "score": "0.6260909", "text": "protected abstract T self();", "title": "" }, { "docid": "fe6639be9989569d0fe857a9cbd93889", "score": "0.62443805", "text": "@Override\n\t\t\tpublic void doSomething() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "19b53c7e28cea80fc5d31ccf42ecfdc3", "score": "0.62347263", "text": "public void MyAbstractMethod();", "title": "" }, { "docid": "b884287ceb4349df793e3b0fa72dc6af", "score": "0.62341774", "text": "abstract void doSomething();", "title": "" }, { "docid": "5c5d0353ef924c3bdae89e23d45fce89", "score": "0.6232852", "text": "@Override\n protected void M() {\n\n }", "title": "" }, { "docid": "b3571d89919ab8e86e48131ab4d582ae", "score": "0.6220932", "text": "@Override\r\n void methoid2() {\n }", "title": "" }, { "docid": "380bae58d30a5f88fdd85191bb2019c8", "score": "0.62206316", "text": "public abstract void mo10834c();", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6213854", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "7c94ae0c835de59db79d9dbfe1d090db", "score": "0.62090254", "text": "@Override\n\tprotected void foo() {\n\t\t\n\t}", "title": "" }, { "docid": "8b3f9c067f346cd98a7d7370c6b0f9f9", "score": "0.620852", "text": "@Override\n \tpublic void visit() {\n \t\tsuper.visit();\n \t}", "title": "" }, { "docid": "817efc043b4e1d7ba918f254f9fa5ae6", "score": "0.6184911", "text": "@Override\n public void taunt() {\n\n }", "title": "" }, { "docid": "4f9c833a0b52d1975f9689a96ca25bbe", "score": "0.6169774", "text": "public abstract void mo38288a();", "title": "" }, { "docid": "a28fd0cb7be83cfd93a8a530df5c0534", "score": "0.61672884", "text": "@Override\n\tprotected void processLogic() {\n\t}", "title": "" }, { "docid": "87a072224cebbd361fb882e452b1e271", "score": "0.6158272", "text": "public abstract void perform();", "title": "" }, { "docid": "ad0a5b72ceadfb075f501f5acd5afd68", "score": "0.6147979", "text": "abstract void create();", "title": "" }, { "docid": "8648511042e2a7fd608e085a1fcb7ccf", "score": "0.6127158", "text": "@Override\r\n\tpublic void operation() {\n\r\n\t}", "title": "" }, { "docid": "3d728e8c58ad0466612f01b7b553771b", "score": "0.6122412", "text": "public abstract Object getBase();", "title": "" }, { "docid": "edd8cca2045e52818d9e3b719421a717", "score": "0.6114881", "text": "public abstract void zzari();", "title": "" }, { "docid": "61fda9897e7aaaacfff55b3cb1734a66", "score": "0.6108288", "text": "public abstract String dibujar();", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.6104303", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e1cdf4dbf044cd5d879301aa78d0fa30", "score": "0.61016536", "text": "abstract public void apply();", "title": "" }, { "docid": "b6296d9cb06e3094b2a07ffb1a50fe1e", "score": "0.6100028", "text": "@Override\n\tpublic void acariciar() {\n\t}", "title": "" }, { "docid": "beb32ebaec8491986bfa1bb1ff62c878", "score": "0.60924125", "text": "public abstract void mo238c();", "title": "" }, { "docid": "ba128815e87ffbfc266760441fbb058c", "score": "0.6074879", "text": "public abstract void obscuring();", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.60713077", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "a825248b3aca3be13a73f52a6337de50", "score": "0.607057", "text": "@Override\n\tpublic void doStuff() {\n\t\t\n\t}", "title": "" }, { "docid": "617a7e7c840d5b093590a22e3a9dec40", "score": "0.60700125", "text": "public abstract void dispatch();", "title": "" }, { "docid": "c2be0e49968214ae7b9f05897939d6ba", "score": "0.6066069", "text": "public abstract HttpResponse method();", "title": "" }, { "docid": "1ae8d4cd2d4f1904274c99b3714c7aa0", "score": "0.60595083", "text": "public abstract String mo25208a();", "title": "" }, { "docid": "d860eb3e3c69d51fa0dff7d62454b54b", "score": "0.6057747", "text": "protected AbstractResult() {}", "title": "" }, { "docid": "47b991b2f24dea222903c19d1939490a", "score": "0.60485464", "text": "public abstract void mo14491f();", "title": "" }, { "docid": "41056015a8bcbae223d8eca65702cffb", "score": "0.604804", "text": "@Override\n public void inherit() {\n \n }", "title": "" }, { "docid": "0ce42acddc831afdc534f01158218ecc", "score": "0.6048014", "text": "public abstract Item e();", "title": "" }, { "docid": "baaadba9210bd0e52fe5c3d84172858e", "score": "0.6044113", "text": "public interface AbstractC11683a {\n }", "title": "" }, { "docid": "2d6717210f147f16cf88b67d6a5ba67a", "score": "0.604342", "text": "public abstract B mo40401a();", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.6043402", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "fa32f830910aeae71dc86bf338a8b0fc", "score": "0.60427815", "text": "@Override\n\tpublic void genrator() {\n\n\t}", "title": "" }, { "docid": "1a4f9aa6f736074c80c425a66e966e33", "score": "0.60384476", "text": "@Override\n\tpublic void acariciar() {\n\n\t}", "title": "" }, { "docid": "ec31fa8194b226a9fee5ff6f9e4098ad", "score": "0.603752", "text": "public abstract void mo60852a();", "title": "" }, { "docid": "4d9e164e4e911df1380f4618e0fe7a08", "score": "0.6035569", "text": "OI (){\n\t\t\n\t}", "title": "" }, { "docid": "338a5a26876fdd022c09f8b728b49edd", "score": "0.60322535", "text": "@Override\n public abstract void process();", "title": "" }, { "docid": "f05b687a893a44a244320b7b6986d52f", "score": "0.6012543", "text": "@Override\n public void myMethod()\n {\n \n }", "title": "" }, { "docid": "7a9b0409fa9857434dd4705b825fd875", "score": "0.5998736", "text": "@Override\n\tpublic void method() {\n\t\t\n\t}", "title": "" }, { "docid": "fc91b8787fadd60d915caf4dcafbf436", "score": "0.5993905", "text": "public abstract void mo4956f();", "title": "" }, { "docid": "b7026792f4497bfcada6c43399e85e01", "score": "0.59907115", "text": "@Override\r\n\tpublic void kellton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b40946b97c690d7e94ecf1720b759689", "score": "0.59899247", "text": "public abstract void abstractMethod();", "title": "" }, { "docid": "79b7e4960626b086fd8888e590f83920", "score": "0.5986656", "text": "@Override\n\tpublic void doSomething() {\n\t\t\n\t}", "title": "" }, { "docid": "835bdd7f1af94a291de4950bdc22fff7", "score": "0.5981531", "text": "public abstract void a();", "title": "" }, { "docid": "d9c7f03d81c1cdb3b48dc75266db1074", "score": "0.5979393", "text": "@Override\n\tabstract protected void init();", "title": "" }, { "docid": "12c148d05fe753983614cee07240d8f6", "score": "0.5979153", "text": "@Override\n\t\t\t\tpublic void ll() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "91bd67fab28a493021bd6f1f7b3e5e0a", "score": "0.5978286", "text": "@Override\n public void dirve() {\n\n }", "title": "" }, { "docid": "e58b18580efb996e86a2a2e3852d4b8d", "score": "0.5975836", "text": "private TypicalHomework() {}", "title": "" }, { "docid": "e6ad3c4a0978a89c835c7a1d871b1b4b", "score": "0.59735245", "text": "protected void doImpl() {\n\t}", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.59660023", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.59660023", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "377a6fa2aa23db0d4d0e6bad7730ac49", "score": "0.5961295", "text": "public abstract String describe();", "title": "" }, { "docid": "c9f101fef25e7cf3d3d3dec46cec0a58", "score": "0.5953812", "text": "public void mehthod() { // instance method\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bc0fee12eecf2fc2e376658f79692f68", "score": "0.5950532", "text": "public interface AbstractC11439a {\n }", "title": "" }, { "docid": "36e916cb2b6770b784f5481be7089021", "score": "0.59492314", "text": "public abstract void mo10831b();", "title": "" }, { "docid": "a6e227f61723bbb09bce9909780da7cd", "score": "0.59443176", "text": "public abstract void apply();", "title": "" }, { "docid": "a6e227f61723bbb09bce9909780da7cd", "score": "0.59443176", "text": "public abstract void apply();", "title": "" } ]
9cafe4998ce4c18ece837011c1e8de92
This method was generated by MyBatis Generator. This method returns the value of the database column client.idcard
[ { "docid": "b7d3f033f7ecbb0c7e60f854c0382fb5", "score": "0.70074195", "text": "public String getIdcard() {\r\n return idcard;\r\n }", "title": "" } ]
[ { "docid": "ca90186f0373b9deb909ed93d5d5161e", "score": "0.73912835", "text": "public int getId_card() {\n return id_card;\n }", "title": "" }, { "docid": "44717d68540c5774a44ad3f8f33cac7e", "score": "0.73325115", "text": "public int getCardId() \r\n {\r\n return cardId; \r\n }", "title": "" }, { "docid": "24c106135e525a903d35c6280fbceeb9", "score": "0.72901154", "text": "public String getCardId() {\r\n return cardId;\r\n }", "title": "" }, { "docid": "24c106135e525a903d35c6280fbceeb9", "score": "0.72901154", "text": "public String getCardId() {\r\n return cardId;\r\n }", "title": "" }, { "docid": "27125ced92f143c8dc6d6d4eb3ae8249", "score": "0.71925896", "text": "public String getCard_id() {\r\n\t\treturn card_id;\r\n\t}", "title": "" }, { "docid": "c672f89547c124b6030efe7fd94c42f1", "score": "0.7117837", "text": "public int getCardId() {\n\t\treturn cardId;\n\t}", "title": "" }, { "docid": "a65770bfedc5eed154e403a42e9c8872", "score": "0.7018814", "text": "public String getIdCard() {\n return idCard;\n }", "title": "" }, { "docid": "c21f54723c61af7f9c0d385c4781a171", "score": "0.6960431", "text": "public int getCardID() {\r\n\t\treturn cardID;\r\n\t}", "title": "" }, { "docid": "36daba9d45babe72194a1c093b900a5d", "score": "0.6935003", "text": "public String getIdcardno() {\n return idcardno;\n }", "title": "" }, { "docid": "bc7a586b7c90de289672e00a3992e273", "score": "0.6810801", "text": "public String getIdCardNo() {\n return idCardNo;\n }", "title": "" }, { "docid": "36bb5bfa049577921ecb47c83565f52d", "score": "0.67951363", "text": "public int getCardID() {\r\n\t\treturn localCardID;\r\n\t}", "title": "" }, { "docid": "3cac073afd02546c20b0ec6d694ace41", "score": "0.65281487", "text": "public String getIdentitycard() {\n return identitycard;\n }", "title": "" }, { "docid": "9729eb2bd67f685be0566bc8919b0356", "score": "0.63791955", "text": "public com.comverse.www.LongAttributeJAXBElement getCardId(){\n return localCardId;\n }", "title": "" }, { "docid": "4e3ba7cc7f2e66dd6c12acc61d2864a7", "score": "0.63672006", "text": "public String getIdentityCard() {\n return identityCard;\n }", "title": "" }, { "docid": "31a3e337c2e20437f7abedbe31cf076d", "score": "0.63632727", "text": "public String getIDCardNumber() {\n return IDCardNumber;\n }", "title": "" }, { "docid": "f4fede47eb439dea77c27a1831e889e8", "score": "0.6340895", "text": "public String getBankCardId() {\n return bankCardId;\n }", "title": "" }, { "docid": "0298b0072aef13c7d433862b158a21f8", "score": "0.6339232", "text": "public String getIdCardNum() {\n\t\treturn idCardNum;\n\t}", "title": "" }, { "docid": "d7d54882570c7d66ff565f7a3c238735", "score": "0.62865454", "text": "public String getIdcardname() {\n return idcardname;\n }", "title": "" }, { "docid": "8b7a21d146de16ad1e244a54da69cd45", "score": "0.62843996", "text": "public String getCardTypeId() {\r\n return cardTypeId;\r\n }", "title": "" }, { "docid": "94a9d0aacc654bbc7433770c6e85aacb", "score": "0.621432", "text": "public String getUserIdCardNo() {\n\t\treturn userIdCardNo;\n\t}", "title": "" }, { "docid": "f37ee547464ead919f3c73aaf50c154f", "score": "0.62100786", "text": "public int getM_PriceListCard_ID();", "title": "" }, { "docid": "9c010147f4959c3b2ecf749d4f9b3b6e", "score": "0.6187692", "text": "public String getCardNumber() {\n \treturn card; // card number\n }", "title": "" }, { "docid": "7d00242fbba849039e6337515d613703", "score": "0.6168906", "text": "public String getCardID(Image image){\n return imageToIdMap.get(image);\n }", "title": "" }, { "docid": "529fdf5ff1a43d52d11cd946acadd5a5", "score": "0.61554146", "text": "public String getCardNo() {\n return cardNo;\n }", "title": "" }, { "docid": "8c369d8104c18a259eecfbc8fef24ea8", "score": "0.61146075", "text": "public String getBankCardId() {\n\t\treturn bankCardId;\n\t}", "title": "" }, { "docid": "227c5a9d412f666ebe4213823adb1337", "score": "0.6101445", "text": "@Override\n\tpublic Card getCard(String cardId) {\n\t\tString q1= \"from Card where cardId ='\"+cardId+\"'\";\n\t\tQuery w = sessionFactory.getCurrentSession().createQuery(q1);\n\t\tList<Card> list = (List<Card>)w.list();\n\t\tif(list==null||list.isEmpty())\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn list.get(0);\n\t}", "title": "" }, { "docid": "c8242d792d16defacec562d0d72e479c", "score": "0.6086028", "text": "public int getCard() {\n\n return cardToDeal;\n }", "title": "" }, { "docid": "86babd6a5e7cba5838f615bf0717171f", "score": "0.6082896", "text": "public int getCardNum()\n {\n return cardNum;\n }", "title": "" }, { "docid": "191818e2c0f8cad0831acdbcd0ab544b", "score": "0.6080549", "text": "public void setCardId(int aCardId) \r\n {\r\n cardId = aCardId; \r\n }", "title": "" }, { "docid": "635d0f2525b9e9b5ad58788a4fcaafd9", "score": "0.60780865", "text": "public String getCARD_NO() {\r\n return CARD_NO;\r\n }", "title": "" }, { "docid": "a4895c22bdb6ed4abf58f97f22d08a98", "score": "0.5988738", "text": "public String getCardKey() {\n return cardKey;\n }", "title": "" }, { "docid": "cb45353b8d597e8fa8fac2852314e55f", "score": "0.5975746", "text": "public Long getCardAmount() {\r\n return cardAmount;\r\n }", "title": "" }, { "docid": "a899a2aecb1eb68a49124e4b07ef5cbd", "score": "0.5921874", "text": "public void setId_card(int id_card) {\n this.id_card = id_card;\n }", "title": "" }, { "docid": "b33da88b37a675b0238b1510433109c3", "score": "0.5902927", "text": "public java.lang.String getCardNum()\n {\n return this._cardNum;\n }", "title": "" }, { "docid": "ac10e7dbe55c2ea47c9e33a2b6d5b724", "score": "0.5837594", "text": "public void setIdcard(String idcard) {\r\n this.idcard = idcard;\r\n }", "title": "" }, { "docid": "ac10e7dbe55c2ea47c9e33a2b6d5b724", "score": "0.5837594", "text": "public void setIdcard(String idcard) {\r\n this.idcard = idcard;\r\n }", "title": "" }, { "docid": "2ca4dad48da5c9d32844fdc9438ee455", "score": "0.5834942", "text": "java.lang.String getCarId();", "title": "" }, { "docid": "d4568c89f8f51787967a46c960a86100", "score": "0.58240956", "text": "public int getCreditNumber() {\n return creditCard;\n }", "title": "" }, { "docid": "7b7616ff1d89b7cc987b7f406f0e1745", "score": "0.58104", "text": "public int getC_Charge_ID();", "title": "" }, { "docid": "9a0425683cf1955c4f7af42ddd7883fc", "score": "0.5808612", "text": "public CreditCard getCard() {\r\n return my_card;\r\n }", "title": "" }, { "docid": "078ced25a6f55322b364e172ca4e4d9e", "score": "0.5794388", "text": "protected int getCard()\n\t{\n\t\treturn value;\n\t}", "title": "" }, { "docid": "1677fe669112cb2f5dbe30d10006c8fd", "score": "0.57937825", "text": "public void setCardId(String cardId) {\r\n this.cardId = cardId;\r\n }", "title": "" }, { "docid": "1677fe669112cb2f5dbe30d10006c8fd", "score": "0.57937825", "text": "public void setCardId(String cardId) {\r\n this.cardId = cardId;\r\n }", "title": "" }, { "docid": "665e5d6a060996756772254a8ebf1979", "score": "0.5760162", "text": "public String getIdCardPic() {\n\t\treturn idCardPic;\n\t}", "title": "" }, { "docid": "4839662754f9b8e29785f8052e30b95a", "score": "0.56701326", "text": "public void setCardId()\r\n\t{\r\n\t\tinfocard.setCardId(cardId);\r\n\t}", "title": "" }, { "docid": "24b761ac56eedaf90ce73c9d728cbedf", "score": "0.56249475", "text": "@Override\n\tpublic List<Iccard> findcarid() {\n\t\treturn iccardRepository.findcarid();\n\t}", "title": "" }, { "docid": "5e38c7baf769c0aecfa32d5e3275947e", "score": "0.559978", "text": "public int getCard() {\n\t\tRandom rand = new Random(); \n\t\tint card = rand.nextInt(13) + 1;\n\t\treturn card;\n\t}", "title": "" }, { "docid": "80344bd86ebc69ebac74fedd446f6889", "score": "0.5586074", "text": "public Card getCardDB(byte[] cardPublicKey){\r\n\t\tCard card = new Card();\r\n\t\t//String strPubKey = serial.SerializeByteKey(cardPublicKey);\r\n\t\t\r\n\t\tResultSet rs = db.selectCard(cardPublicKey);\r\n\t\ttry {\r\n\t\t\tif(rs.next()){\r\n\t\t\t\tcard = new Card(rs.getInt(\"id\"), rs.getInt(\"custID\"), rs.getString(\"custName\"), \r\n\t\t\t\t\t\t rs.getShort(\"km\"), rs.getLong(\"exp\") , rs.getInt(\"revoke\"), rs.getString(\"cardPK\"));\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"That card has not been issued\");\r\n\t\t\t\tcard = null;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn card;\r\n\t}", "title": "" }, { "docid": "0b3ef97eaf39bf7865cb7b31efa2f8cb", "score": "0.55797005", "text": "java.lang.String getClientid();", "title": "" }, { "docid": "aba3b938284b62638944ac4f3bafa1b7", "score": "0.5571233", "text": "public void setIdcardno(String idcardno) {\n this.idcardno = idcardno;\n }", "title": "" }, { "docid": "163f7ee503a19a474165ac2e368e2c28", "score": "0.5570661", "text": "@java.lang.Override\n public com.packt.modern.api.grpc.v1.Card getCard() {\n return card_ == null ? com.packt.modern.api.grpc.v1.Card.getDefaultInstance() : card_;\n }", "title": "" }, { "docid": "7c8bf1c745f6e5c4e8ce18d30c8ec7dc", "score": "0.5552917", "text": "public int getC_Invoice_ID();", "title": "" }, { "docid": "c16ae668628d4efff66cb1cd0af0a3d0", "score": "0.5550147", "text": "public Integer getClientid() {\r\n return clientid;\r\n }", "title": "" }, { "docid": "2434740b647918fea1fa6313f25a5565", "score": "0.554372", "text": "public int getValue(){\r\n return card.getValue();\r\n }", "title": "" }, { "docid": "173252de9329dc8600145d59379d7d06", "score": "0.55427474", "text": "public Integer getCid() {\r\n return cid;\r\n }", "title": "" }, { "docid": "15ef1089d15d6ddc6f3fe8e105b697c5", "score": "0.55267847", "text": "long getClientid();", "title": "" }, { "docid": "7a3be065fcdbf0752d19c4294aa9b96b", "score": "0.5522539", "text": "public void setIdCardNo(String idCardNo) {\n this.idCardNo = idCardNo;\n }", "title": "" }, { "docid": "215c04a12df4f102e05fbe5afd6ebde6", "score": "0.5521596", "text": "public String getBankCard() {\n\t\treturn bankCard;\n\t}", "title": "" }, { "docid": "0c887197a8d65cf8207a74a753a4bccf", "score": "0.54980797", "text": "@Override\n\tpublic List<Iccard> findDrivercarid() {\n\t\treturn iccardRepository.findDrivercarid();\n\t}", "title": "" }, { "docid": "7797af7046323131af79ae5c61bc71f6", "score": "0.5496169", "text": "public Integer getCid() {\n return cid;\n }", "title": "" }, { "docid": "a8d22b977b56fe66346998b34ea0dc86", "score": "0.5479407", "text": "public BankCard GetCardInfoByCardId(String cardid) {\n\t\tBankCard bankCard = null;\n\t\ttry {\n\t\t\tconnection = DBcon.getConnction();\n\t\t\tString sql = \"SELECT * FROM bankcard where cardid='\" + cardid + \"'\";\n\t\t\tbankCardQuery = connection.prepareStatement(sql);\n\t\t\tresults = bankCardQuery.executeQuery();\n\t\t\tif (results.next()) {\n\t\t\t\tbankCard = new BankCard(); // 每次创建一个封装类的实例\n\t\t\t\t// 将数据表中的一条记录数据添加到封装类中\n\t\t\t\tbankCard.setId(results.getInt(\"id\"));\n\t\t\t\tbankCard.setCardId(results.getString(\"cardid\"));\n\t\t\t\tbankCard.setName(results.getString(\"name\"));\t\t\t\t\n\t\t\t\tbankCard.setIdentitycard(results.getString(\"identitycard\"));\n\t\t\t\tbankCard.setPassword(results.getString(\"password\"));\n\t\t\t\tbankCard.setMoney(results.getDouble(\"money\"));\n\t\t\t\tbankCard.setBanktype(results.getString(\"banktype\"));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tDBcon.closeResultSet(results);\n\t\t\tDBcon.closeStatement(bankCardQuery);\n\t\t\tDBcon.closeConnection(connection);\n\t\t}\n\n\t\treturn bankCard;\n\t}", "title": "" }, { "docid": "8a4f2885750f6fede7843dda9bf2f866", "score": "0.54717124", "text": "public int getCarCode(){\n\t\treturn carCode;\n\t}", "title": "" }, { "docid": "801ccdc3d2639802d6addb0b41440160", "score": "0.54575354", "text": "public int getC_BPartner_ID();", "title": "" }, { "docid": "801ccdc3d2639802d6addb0b41440160", "score": "0.54575354", "text": "public int getC_BPartner_ID();", "title": "" }, { "docid": "b31ae47c645cf6c78008320a55a76898", "score": "0.5440336", "text": "String getCode(){\r\n\t\tString cardCode;\r\n\t\tif(isFaceCard()) cardCode = getValue().substring(0,1); \r\n\t\telse cardCode = getValue();\r\n\t\treturn cardCode + getSuit().substring(0,1);\r\n\t}", "title": "" }, { "docid": "f072727fb8dcdfa3b176b1f9e44e356f", "score": "0.5436186", "text": "public Card getCard() {\n return card;\n }", "title": "" }, { "docid": "2f0266b1a3ea7d6572590125cb3b2e00", "score": "0.54326576", "text": "public Long getCid() {\n return cid;\n }", "title": "" }, { "docid": "31cb1a5c730d588cf092c15b0c8582eb", "score": "0.54223686", "text": "public String getLegalPersonIdentityCardId() {\n return legalPersonIdentityCardId;\n }", "title": "" }, { "docid": "574a0cebe1a0470fb39c65066549e643", "score": "0.54177374", "text": "public String getcId() {\n return cId;\n }", "title": "" }, { "docid": "574a0cebe1a0470fb39c65066549e643", "score": "0.54177374", "text": "public String getcId() {\n return cId;\n }", "title": "" }, { "docid": "3765b7b5d1b1096da642ce6f5db4902a", "score": "0.54134303", "text": "public int getAD_Client_ID();", "title": "" }, { "docid": "3765b7b5d1b1096da642ce6f5db4902a", "score": "0.54134303", "text": "public int getAD_Client_ID();", "title": "" }, { "docid": "3765b7b5d1b1096da642ce6f5db4902a", "score": "0.54134303", "text": "public int getAD_Client_ID();", "title": "" }, { "docid": "3765b7b5d1b1096da642ce6f5db4902a", "score": "0.54134303", "text": "public int getAD_Client_ID();", "title": "" }, { "docid": "3765b7b5d1b1096da642ce6f5db4902a", "score": "0.54134303", "text": "public int getAD_Client_ID();", "title": "" }, { "docid": "3765b7b5d1b1096da642ce6f5db4902a", "score": "0.54134303", "text": "public int getAD_Client_ID();", "title": "" }, { "docid": "e18ae53c5ede66f58a8665641a9b1eaa", "score": "0.5411726", "text": "public String getCardName () {\n \treturn cardName;\n }", "title": "" }, { "docid": "a7f38e16a3e2c2f98824e6688deee423", "score": "0.5411162", "text": "public int getC_BPartnerRef_ID();", "title": "" }, { "docid": "5b421165fb4383836b872d4eec91f9d4", "score": "0.5409293", "text": "public int getC_Currency_ID();", "title": "" }, { "docid": "297cdbeae56301a2a1f1909c323b5171", "score": "0.5409097", "text": "public String getCardValue() {\n return cardValue;\n }", "title": "" }, { "docid": "1f1274c634e3f71d8b504255a2e9e305", "score": "0.5408492", "text": "public int getC_BPartnerRef2_ID();", "title": "" }, { "docid": "c243f9afc9182fc106daab99f4222081", "score": "0.54033226", "text": "String getClientid();", "title": "" }, { "docid": "d1d4fc66ff4c45ed84ffb310c63ccd00", "score": "0.53948724", "text": "public com.packt.modern.api.grpc.v1.Card getCard() {\n if (cardBuilder_ == null) {\n return card_ == null ? com.packt.modern.api.grpc.v1.Card.getDefaultInstance() : card_;\n } else {\n return cardBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "9292713149ded95b9f9469b1c76632c2", "score": "0.53906566", "text": "public void generateCardId()\r\n\t{\r\n\t\tif (MainFrame.setupModel.setupInf())\r\n\t\t{\r\n\t\t\tString prefix = null;\r\n\r\n\t\t\tif (MainFrame.setupModel.getEmail().compareTo(\"\") != 0)\r\n\t\t\t\tprefix = new String(MainFrame.setupModel.getEmail());\r\n\t\t\telse\r\n\t\t\tif (MainFrame.setupModel.getDomain().compareTo(\"\") != 0)\r\n\t\t\t\tprefix = new String(MainFrame.setupModel.getDomain());\r\n\t\t\telse\r\n\t\t\tif (MainFrame.setupModel.getYahooId().compareTo(\"\") != 0)\r\n\t\t\t\tprefix = new String(MainFrame.setupModel.getYahooId());\r\n\r\n\t\t\tMainFrame.setupModel.increaseSequenceNumber(\"generateCardId\");\r\n\t\t\tcardId = new String(prefix + \"_\" + MainFrame.setupModel.getNumber());\r\n\r\n\t\t\tmodel.setCardId(cardId);\r\n\t\t\tif (model2 != null)\r\n\t\t\t\tmodel2.setCardId(cardId);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9a0e46ed8fe11362ee3f49f69b37b077", "score": "0.5385615", "text": "public int getCreditNumber() {\n\t\treturn creditCard.getNumber();\n\t}", "title": "" }, { "docid": "f098cac48e02834cb709b86b0c8bc62c", "score": "0.53814685", "text": "public java.lang.Integer getCreditCardNum() {\n return creditCardNum;\n }", "title": "" }, { "docid": "aa38b173c31c22cc38309c0082c30e8f", "score": "0.53618", "text": "public static Card getCard()\n\t{\n\t\treturn _card;\n\t}", "title": "" }, { "docid": "0c436b47bfea89b1cc30b2eae1acc954", "score": "0.5353621", "text": "@Override\n\tpublic String getCardno() {\n\t\treturn edtCardno.getText().toString();\n\t}", "title": "" }, { "docid": "c6859a4c5274f9a994378db20f4c2a19", "score": "0.53481245", "text": "public String getCardType() {\n\n return cardType;\n\n }", "title": "" }, { "docid": "234da61126ce71d3e2cab73bd9e213d4", "score": "0.534775", "text": "private int mcurrency_id(){\n \ttry {\n \t\tString sql = \"select c_currency_id \" +\n \t\t\t\t\t \"from c_currency \" +\n \t\t\t\t\t \"where iso_code like 'ARS'\";\n \t\tPreparedStatement pstmt; \n \t\tpstmt = DB.prepareStatement(sql,get_TrxName());\n \tResultSet rs = pstmt.executeQuery();\n \ttry {\n \t\tif (rs.next())\n \t\t\treturn rs.getInt(\"c_currency_id\");\n \t\trs.close();\n \t\tpstmt.close();\n \t\t}\n \tcatch (Exception exception) {\n \t\t\texception.printStackTrace();\n \t\t}\n \t\n \t\t}\n \tcatch (SQLException ex) {\n \t Logger.getLogger(GenerateVentasDocumento.class.getName()).log(Level.SEVERE, null, ex);\n \t}\n \treturn 0;\n }", "title": "" }, { "docid": "bf747f26967318bed6f7c9fedc32de4f", "score": "0.53431946", "text": "public String getCid() {\n return cid;\n }", "title": "" }, { "docid": "bf747f26967318bed6f7c9fedc32de4f", "score": "0.53431946", "text": "public String getCid() {\n return cid;\n }", "title": "" }, { "docid": "bf747f26967318bed6f7c9fedc32de4f", "score": "0.53431946", "text": "public String getCid() {\n return cid;\n }", "title": "" }, { "docid": "72ae77d868d076e6d9b4eef88525439f", "score": "0.5312057", "text": "java.lang.String getCustomerID();", "title": "" }, { "docid": "72ae77d868d076e6d9b4eef88525439f", "score": "0.5312057", "text": "java.lang.String getCustomerID();", "title": "" }, { "docid": "72ae77d868d076e6d9b4eef88525439f", "score": "0.5312057", "text": "java.lang.String getCustomerID();", "title": "" }, { "docid": "05d75ea260d2a36beb5712a8d9f4fa1a", "score": "0.5304865", "text": "public java.lang.String getBankCardNumber () {\n\t\treturn bankCardNumber;\n\t}", "title": "" }, { "docid": "aa7cff4e2f29a1edded305f4d6f8644b", "score": "0.5303454", "text": "public Long getClientID() {\n return clientID;\n }", "title": "" }, { "docid": "7bc38c75666818de927c2e5e862997a5", "score": "0.5300955", "text": "public int getId_client() {\r\n\t\treturn id_client;\r\n\t}", "title": "" } ]
778565e63e7b31a1eb235df952b3a6b9
Checks if there is Internet access
[ { "docid": "eeee41e3814d31a87836545ba652f8c2", "score": "0.0", "text": "public static boolean isNetworkAvailable(Context context) {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnected();\n\n }", "title": "" } ]
[ { "docid": "fb14e929651e43541f423b7be8bd9a1e", "score": "0.8763498", "text": "boolean hasInternetAccess();", "title": "" }, { "docid": "9151d39c9fc350a952845836eebfbcd7", "score": "0.85565114", "text": "public boolean checkInternetConnection();", "title": "" }, { "docid": "bebf31227ac4a13fb7ce262f9d670b35", "score": "0.8385638", "text": "public static boolean checkInternetConnectivity() {\r\n\t\treturn addressAvailable(DEFAULT_URL);\r\n\t}", "title": "" }, { "docid": "70e7d69f6b04ec90f476c484add0bc50", "score": "0.82473916", "text": "private boolean checkInternet() {\n\t\tfinal ConnectivityManager conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tfinal NetworkInfo activeNetwork = conMgr.getActiveNetworkInfo();\n\t\tif (activeNetwork == null\n\t\t\t\t|| activeNetwork.getState() != NetworkInfo.State.CONNECTED) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1cf3930751929a9c858442b1d6a8439b", "score": "0.82358253", "text": "public static boolean isAvailable() {\r\n try{\r\n URL url = new URL(\"http://www.google.com\");\r\n URLConnection con = url.openConnection();\r\n con.connect();\r\n LOGGER.info(\"Internet available\");\r\n return true;\r\n }catch(IOException ex){\r\n LOGGER.error(\"Internet Not Available - Error reaching host GOOGLE \",ex);\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "3e4b0b8e71b91c8492fa81e3ded02c76", "score": "0.81880254", "text": "public static boolean recheckInternetAvailability() {\n try {\n InetAddress ipAddr = InetAddress.getByName(\"google.com\");\n isInternetAvailable = !ipAddr.toString().equals(\"\");\n } catch (Exception e) {\n e.printStackTrace();\n isInternetAvailable = false;\n }\n return isInternetAvailable;\n }", "title": "" }, { "docid": "c2405d04812b03d81b7aa1ad9ac0565c", "score": "0.8103983", "text": "public boolean checkInternetConnection() {\n ConnectivityManager conMgr;\n conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n return (conMgr.getActiveNetworkInfo() != null\n && conMgr.getActiveNetworkInfo().isAvailable()\n && conMgr.getActiveNetworkInfo().isConnected());\n }", "title": "" }, { "docid": "a8b82c03f775250b353d9958ed36cfa9", "score": "0.80978286", "text": "public boolean isInternetAvailable() {\n try {\n String command = \"ping -c 1 google.com\";\n return (Runtime.getRuntime().exec(command).waitFor() == 0);\n } catch (Exception e) {\n return false;\n }\n }", "title": "" }, { "docid": "6439fc62f809f787873053e39bed7c2e", "score": "0.80907047", "text": "public boolean checkInternet() {\n ConnectivityManager connect = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connect.getNetworkInfo(0).getState() == NetworkInfo.State.CONNECTED\n || connect.getNetworkInfo(1).getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "e2635733f24de6a0e25dcb10da788f29", "score": "0.8015289", "text": "public boolean checkInternetConnectivity(){\n return true;\n }", "title": "" }, { "docid": "089d277fc061ea0f774b4680753afe64", "score": "0.79856837", "text": "private boolean checkInternet(){\n Context context = mActivityTestRule.getActivity().getApplicationContext();\n if(context != null) {\n ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return (networkInfo != null && networkInfo.isConnected());\n }else {\n return false;\n }\n }", "title": "" }, { "docid": "a11a0a918a21c60e1403d7685d76600a", "score": "0.7970786", "text": "boolean checkInternetConnection() {\n\t\tRuntime runtime = Runtime.getRuntime();\n\t\ttry {\n\t\t\tProcess process = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n\t\t\tint exitValue = process.waitFor();\n\t\t\treturn (exitValue == 0);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2b97d9078936d73511d3b3ebc791c4bc", "score": "0.7951952", "text": "public Boolean HaveInternet(){\r\n\t\t\r\n\t\tConnectivityManager cm =\r\n\t\t (ConnectivityManager)AppContext.getSystemService(Context.CONNECTIVITY_SERVICE);\r\n\t\t \r\n\t\tNetworkInfo activeNetwork = cm.getActiveNetworkInfo();\r\n\t\tboolean isConnected = activeNetwork != null &&\r\n\t\t activeNetwork.isConnectedOrConnecting();\r\n\t\t\r\n\t\treturn isConnected;\r\n\t}", "title": "" }, { "docid": "b341182744ceafe306df267cf6162b6f", "score": "0.7948676", "text": "private boolean internetIsOk() {\n ConnectivityManager manager =\n (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork;\n activeNetwork = (manager != null) ? manager.getActiveNetworkInfo() : null;\n return activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n }", "title": "" }, { "docid": "120974e7870f9bf82a9c64761d4ec90f", "score": "0.79472035", "text": "public static boolean isInternetAvailable() {\n return isInternetAvailable;\n }", "title": "" }, { "docid": "5034b1749d4b71fa8095306c96e6cf34", "score": "0.79101413", "text": "private boolean isThereInternetConnection() {\n boolean isConnected;\n\n ConnectivityManager connectivityManager =\n (ConnectivityManager) this.context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n isConnected = (networkInfo != null && networkInfo.isConnectedOrConnecting());\n\n return isConnected;\n }", "title": "" }, { "docid": "abd12da0bba79f99d5e2c930c63b263f", "score": "0.7861223", "text": "private boolean checkInternetConenction() {\n ConnectivityManager connect =(ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\n // Check for network connections\n if ( connect.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED || connect.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connect.getNetworkInfo(1).getState() ==\n android.net.NetworkInfo.State.CONNECTING ||\n connect.getNetworkInfo(1).getState() ==\n android.net.NetworkInfo.State.CONNECTED ) {\n return true;\n }else if (\n connect.getNetworkInfo(0).getState() ==\n android.net.NetworkInfo.State.DISCONNECTED\n ||\n connect.getNetworkInfo(1).getState() ==\n\n android.net.NetworkInfo.State.DISCONNECTED ) {\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "4d0f510bc01b5a0f00b9a8bc1069cbb3", "score": "0.7824921", "text": "private boolean isInternetConnected(){\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }", "title": "" }, { "docid": "3a358192800b7ee7d3fd22879422197a", "score": "0.78142", "text": "private boolean isInternetAllowed() {\n //Getting the permission status\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.INTERNET);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "title": "" }, { "docid": "592df8b5d9a2b0deb44412befb951bbb", "score": "0.7800072", "text": "private boolean checkInternetConenction() {\n ConnectivityManager connec\n =(ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\n\n NetworkInfo info = connec.getActiveNetworkInfo();\n\n // Check for network connections\n if ( connec.getNetworkInfo(0).getState() ==\n android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() ==\n android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() ==\n android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\n return true;\n }else if (\n connec.getNetworkInfo(0).getState() ==\n android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() ==\n android.net.NetworkInfo.State.DISCONNECTED ) {\n\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "55ea5869d36b3be5e01a649f7d05e770", "score": "0.7770976", "text": "private boolean checkInternetConnection() {\n ConnectivityManager connectivityManager\n =(ConnectivityManager)mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if ( connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState() == NetworkInfo.State.CONNECTED ||\n connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI).getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }else {\n return false;\n }\n }", "title": "" }, { "docid": "83bc6ed799be85db08354e12e5b37dcf", "score": "0.77217144", "text": "private boolean isConnectingToInternet() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager\n .getActiveNetworkInfo();\n if (networkInfo != null && networkInfo.isConnected())\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "fc295c660963b2ed1e0908a963ddcfe7", "score": "0.7712282", "text": "public void checkInternet() {\n if(mInternetListener.InternetConnectivity()){\n Toast.makeText(getmContext(), \"Hay internet\", Toast.LENGTH_SHORT ).show();\n }else{\n Toast.makeText(getmContext(), \"No Hay internet\" , Toast.LENGTH_SHORT ).show();\n }\n\n }", "title": "" }, { "docid": "70aa81aef9d772332dec46bb3efbc289", "score": "0.7682036", "text": "public static boolean hasActiveInternetConnection(Context context) {\n\n if (isNetworkAvailable(context)) {\n try {\n HttpURLConnection urlc = (HttpURLConnection) (new URL(\"http://www.google.com\").openConnection());\n urlc.setRequestProperty(\"User-Agent\", \"Test\");\n urlc.setRequestProperty(\"Connection\", \"close\");\n urlc.setConnectTimeout(1500);\n urlc.connect();\n return (urlc.getResponseCode() == 200);\n } catch (IOException e) {\n Log.e(logTag, \"Error checking internet connection\", e);\n }\n } else {\n Log.d(logTag, \"No network available!\");\n }\n return false;\n }", "title": "" }, { "docid": "2f5990911b18da3447f1bc35d5ab164f", "score": "0.7675531", "text": "public static boolean isInternetAvailable(Context context) {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivityManager == null)\n return false;\n else {\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }\n }", "title": "" }, { "docid": "f5932bbb99e74dadcc8ab0ebe1c3c34a", "score": "0.7664788", "text": "private boolean checkInternetConenction() {\n ConnectivityManager connec = (ConnectivityManager) getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if (connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED || connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING || connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING || connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED) {\n\n Toast.makeText(this, \" Connected \", Toast.LENGTH_LONG).show();\n return true;\n\n } else if (connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED || connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED) {\n\n Toast.makeText(this, \" Not Connected \", Toast.LENGTH_LONG).show();\n return false;\n }\n\n return false;\n }", "title": "" }, { "docid": "8bf7eb5f6e95a8a68c5ccbb0f1e465f6", "score": "0.76633257", "text": "private boolean checkInternetConenction() {\n // get Connectivity Manager object to check connection\n ConnectivityManager connec =(ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\n\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\n Toast.makeText(this, \" Connected \", Toast.LENGTH_LONG).show();\n return true;\n }else if (\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\n Toast.makeText(this, \" Not Connected \", Toast.LENGTH_SHORT).show();\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "e746d3cad8561a09d5e857945501b4c8", "score": "0.7631032", "text": "public boolean isInternetAvailable(Context context) {\n\n ConnectivityManager conManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n return conManager.getActiveNetworkInfo() != null && conManager.getActiveNetworkInfo().isConnected();\n }", "title": "" }, { "docid": "dfd4ff838b8a3b2cd8ec3f8a95896b16", "score": "0.763082", "text": "public static boolean isInternetAvailable(Context context) {\n ConnectivityManager cm = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n if (cm.getActiveNetworkInfo() != null)\n return cm.getActiveNetworkInfo().isConnectedOrConnecting();\n else\n return false;\n }", "title": "" }, { "docid": "9f7e0dd5160e3b155a431c6ddc993635", "score": "0.75694364", "text": "public final boolean checkConnectInternet () {\n ConnectivityManager connec =\n (ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\n\n // if connected with internet\n\n\n return true;\n\n } else if (\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\n\n\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "424d6181891b33fcab16f549d0d1db03", "score": "0.7559188", "text": "public boolean checkInternetConenction() {\n ConnectivityManager connec\n =(ConnectivityManager)ctx.getSystemService(ctx.CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if ( connec.getNetworkInfo(0).getState() ==\n android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() ==\n android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() ==\n android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\n // Toast.makeText(ctx, \" Connected \", Toast.LENGTH_SHORT).show();\n return true;\n }else if (\n connec.getNetworkInfo(0).getState() ==\n android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() ==\n android.net.NetworkInfo.State.DISCONNECTED ) {\n Toast.makeText(ctx, \"No Internet\", Toast.LENGTH_SHORT).show();\n AlertDialog.Builder builder = new AlertDialog.Builder(ctx);\n builder.setMessage(\"Connect to internet\")\n .setNegativeButton(\"Ok\", null)\n .create()\n .show();\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "c3f540d1d8af17897fa1236202223a80", "score": "0.7521104", "text": "public static boolean isInternetAvailable(Context ctx) {\n ConnectivityManager mConMgr = (ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE);\n boolean isInternetAvailable = mConMgr.getActiveNetworkInfo() != null\n && mConMgr.getActiveNetworkInfo().isAvailable()\n && mConMgr.getActiveNetworkInfo().isConnected();\n return isInternetAvailable;\n }", "title": "" }, { "docid": "eecb60aba5f9e8c60ed64774f7ba77ae", "score": "0.75110966", "text": "protected boolean isInternet(){\r\n \t\tConnectivityManager connectmgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\r\n \t\t\r\n \t\t\r\n \t\t//facts: getNetworkInfo (1) is for WIFI internet\r\n \t\t//\t\t getNetworkInfo (0) is for MOBILE internet \r\n \t\t\r\n \t\tif (connectmgr.getNetworkInfo(0).getState() == NetworkInfo.State.CONNECTED ||\r\n \t\t\t\tconnectmgr.getNetworkInfo(1).getState() == NetworkInfo.State.CONNECTED){\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\telse{\r\n \t\t\t/*Toast noInternet = Toast.makeText(Main.this,\r\n \t\t\t\t\t\"There is no internet, disengage!\",\r\n \t\t\t\t\tToast.LENGTH_LONG);*/\r\n \t\t\tglobalToast.cancel();\r\n \t\t\tglobalToast.setText(\"There is no internet, disengage!\");\r\n \t\t\tglobalToast.show();\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\t\r\n \t}", "title": "" }, { "docid": "c388f919a69d7eae33e98de64857f1ab", "score": "0.75071824", "text": "private boolean internetConnected(Context context) {\n\t\t/* Check for network connection! */\n\t\tConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\t\tif (networkInfo == null || !networkInfo.isConnected()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9d49bbf86cf36e43f8d14501d4c03f10", "score": "0.750067", "text": "private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager = (ConnectivityManager) this\r\n .getSystemService(Context.CONNECTIVITY_SERVICE);\r\n assert connectivityManager != null;\r\n NetworkInfo activeNetworkInfo = connectivityManager\r\n .getActiveNetworkInfo();\r\n return activeNetworkInfo != null;\r\n }", "title": "" }, { "docid": "a7c6b2e414361f369b63836eff392494", "score": "0.7476234", "text": "private void checkPermissionsInternet() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.INTERNET) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.INTERNET},0);\n return;\n }\n }", "title": "" }, { "docid": "80f12e9143cac4f6488a2c8f1f185677", "score": "0.7474527", "text": "public boolean checkConnection()\n {\n ConnectivityManager cm = (ConnectivityManager)this.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n boolean isConnected = activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n\n if(!isConnected){\n Utils.toastMessage(\"Check Internet Connection\", this);\n return false;\n }\n else\n {\n return true;\n }\n }", "title": "" }, { "docid": "36a2f6664271dde524ae623bde08cebc", "score": "0.74560493", "text": "public boolean isNetworkAvailable();", "title": "" }, { "docid": "b75fe19cb6ea2fb126eaf3bd4468d271", "score": "0.74506783", "text": "public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }", "title": "" }, { "docid": "6183e6ab57ed6af36a2177ef05452c65", "score": "0.7446854", "text": "private static boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) BaseApplication.getInstance().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "title": "" }, { "docid": "92fd3385276555810eddd5d521a3c6c3", "score": "0.7437548", "text": "public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }", "title": "" }, { "docid": "27d4bace02c0b170adfce0d7244efaca", "score": "0.74249744", "text": "public boolean isInternetConnected() {\n try {\n ConnectivityManager connectivityManager = (ConnectivityManager) mActivity.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n if (activeNetworkInfo != null && (activeNetworkInfo.getType() == ConnectivityManager.TYPE_WIFI || activeNetworkInfo.getType() == ConnectivityManager.TYPE_MOBILE))\n return true;\n // catch specific exceptions. This is bad coding practice. Stay safe kids! :)\n } catch (Exception e) {\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "86222ca9e373537421325e0509856638", "score": "0.7424478", "text": "public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }", "title": "" }, { "docid": "f8f2d3f44f5c0a0d39954a96ec2b2991", "score": "0.7396283", "text": "public boolean isWorkingInternetPersent() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getBaseContext().getSystemService(Context.CONNECTIVITY_SERVICE);//controllare il servizio delle connessioni\n if (connectivityManager != null) {\n NetworkInfo[] info = connectivityManager.getAllNetworkInfo(); //recupero di tutte le informazioni\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED) { //quando trovo lo stato di connesso, esco con return true\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "dbfdd56084d44b5f0f9376fe142c6de6", "score": "0.73948807", "text": "public final int isInternetOn() {\n ConnectivityManager connec =\r\n (ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\r\n\r\n // Check for network connections\r\n if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\r\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\r\n\r\n // if connected with internet\r\n\r\n //Toast.makeText(this, \" Connected \", Toast.LENGTH_LONG).show();\r\n return 1;\r\n\r\n } else if (\r\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\r\n\r\n //Toast.makeText(this, \" Not Connected \", Toast.LENGTH_LONG).show();\r\n return 0;\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "a528c6d5138c3eaa8f5959e1d3c94c38", "score": "0.7389064", "text": "private boolean isNetworkAvailable() {\n \tboolean isAvailable=false;\n \tConnectivityManager manager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n \tNetworkInfo networkInfo = manager.getActiveNetworkInfo();\n \tif (networkInfo!=null)\n \t\tisAvailable=networkInfo.isConnected();\n\t\treturn isAvailable;\n\t}", "title": "" }, { "docid": "5c3b21fd6ec7a06bffb9ddd0412ef394", "score": "0.7386697", "text": "public boolean isConnectingToInternet() {\n\t\tboolean isConnected = false;\n\t\tConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (connectivity != null) {\n\t\t\tNetworkInfo activeNetwork = connectivity.getActiveNetworkInfo();\n\t\t\tif (activeNetwork != null) {\n\t\t\t\tisConnected = activeNetwork.isConnectedOrConnecting();\n\t\t\t}\n\t\t}\n\t\treturn isConnected;\n\t}", "title": "" }, { "docid": "9813a623873c33c0e797f11a31bf142b", "score": "0.7350827", "text": "boolean isNetworkAvailable() {\n ConnectivityManager manager = \n (ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo info = manager.getActiveNetworkInfo();\n if (info == null) {\n return false;\n }\n return info.isAvailable();\n }", "title": "" }, { "docid": "b765855c81dd4b3976cf01977fc464b7", "score": "0.7349302", "text": "public void IsHaveInternet() {\n ConnectivityManager manager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo info = manager.getActiveNetworkInfo();\n String state = \"1\";\n if ( (info == null || !info.isAvailable()) ) {\n \tstate = \"2\";\n }\n\t\tMessage msg = new Message();\n\t\tBundle bundle = new Bundle();\n\t\tbundle.putString(\"message\", state);\n\t\tmsg.what = 0;\n\t\tmsg.setData(bundle);\n\t\tthis.sder.sendMessage(msg);\n }", "title": "" }, { "docid": "1db27457a5be3537159931ad2042be3f", "score": "0.73476446", "text": "private boolean isNetworkAvailable() {\n\t\tConnectivityManager connectivityManager \n\t\t= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n\t\treturn activeNetworkInfo != null && activeNetworkInfo.isConnected();\n\t}", "title": "" }, { "docid": "b7573df3edf776f1784645e484c4370a", "score": "0.7342466", "text": "public static boolean haveInternet(Context thisActivity) {\n if (thisActivity != null) {\n NetworkInfo info = ((ConnectivityManager) thisActivity\n .getSystemService(Context.CONNECTIVITY_SERVICE))\n .getActiveNetworkInfo();\n\n if (info == null || !info.isConnected()) {\n return false;\n }\n if (info.isRoaming()) {\n return true;\n }\n\n }\n return true;\n }", "title": "" }, { "docid": "01e36f9292c1cf4040406b6935b6f4bb", "score": "0.7333668", "text": "private boolean isInternetConnected(Context context) {\n\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netinfo = cm.getActiveNetworkInfo();\n\n if (netinfo != null && netinfo.isConnectedOrConnecting()) {\n android.net.NetworkInfo wifi = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n android.net.NetworkInfo mobile = cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);\n return (mobile != null && mobile.isConnectedOrConnecting()) || (wifi != null && wifi.isConnectedOrConnecting());\n } else\n return false;\n }", "title": "" }, { "docid": "eae924f29e5752c3d706dd85aa7d1004", "score": "0.731042", "text": "private boolean isConnectingToInternet() {\n\t\tConnectivityManager connectivity = (ConnectivityManager) MainActivity.this\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (connectivity != null) {\n\t\t\tNetworkInfo[] info = connectivity.getAllNetworkInfo();\n\t\t\tif (info != null)\n\t\t\t\tfor (int i = 0; i < info.length; i++)\n\t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "10513a5a7400a5e74cfc44412f5f0044", "score": "0.72965586", "text": "private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n assert connectivityManager != null;\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "title": "" }, { "docid": "bf2b6e992954603206f603ae85fc6c24", "score": "0.7261402", "text": "public boolean checkNetworkConnection() {\n ConnectivityManager connectivityManager = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n return (networkInfo != null && networkInfo.isConnected());\n }", "title": "" }, { "docid": "c068be4d78e55e0e08a3f0b8c86e37ae", "score": "0.72601897", "text": "private boolean isNetworkAvailable() {\n ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = cm.getActiveNetworkInfo();\n // if no network is available, networkInfo will be null\n // otherwise, check if we are connected\n if(networkInfo != null && networkInfo.isConnected()){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "2fe801248c9fb80379b10d883052685b", "score": "0.7258222", "text": "private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "title": "" }, { "docid": "2fe801248c9fb80379b10d883052685b", "score": "0.7258222", "text": "private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "title": "" }, { "docid": "388c6d6e776bc5f64e455a88c81b6897", "score": "0.7258213", "text": "public boolean isConnectingToInternet(){\n\t\tConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (connectivity != null)\n\t\t{\n\t\t\tNetworkInfo[] info = connectivity.getAllNetworkInfo();\n\t\t\tif (info != null)\n\t\t\t\tfor (int i = 0; i < info.length; i++)\n\t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f28c8e473a9c2cbe83217d9dbc679271", "score": "0.7254059", "text": "public static boolean hasActiveInternetConnection(Context context) {\n if (context == null) {\n return false;\n }\n ConnectivityManager connectivityManager = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager\n .getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "title": "" }, { "docid": "3ad0efbd0c46847c797be97bdb143a4d", "score": "0.72501624", "text": "public static boolean hasActiveInternetConnection(Context context, String url) {\n if (isNetworkAvailable(context)) {\n try {\n HttpURLConnection urlConnection = (HttpURLConnection) (new URL(url).openConnection());\n urlConnection.setRequestProperty(\"User-Agent\", \"Test\");\n urlConnection.setRequestProperty(\"Connection\", \"close\");\n urlConnection.setConnectTimeout(2000);\n urlConnection.connect();\n return true;\n } catch (IOException e) {\n return false;\n }\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "ce645888fc3dba9a81be6973d089af89", "score": "0.7236666", "text": "public static boolean isConnectingToInternet(Context context){\n\t\ttry {\n\t\t\tConnectivityManager connectivity = (ConnectivityManager)\n\t\t\t\t\tcontext.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\tif (connectivity != null){\n\t\t\t\tNetworkInfo netInfo = connectivity.getActiveNetworkInfo();\n\t\t\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t\t return true;\n\t\t\t }\n\t\t\t}\n\t\t\treturn false;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "b784710181b0ebc29b0ab08455ba2025", "score": "0.7235785", "text": "public boolean isConnectedToInternet() {\n ConnectivityManager connectivity = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null) {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }\n\n }\n return false;\n }", "title": "" }, { "docid": "f00adadc1e83e063b512651ec29b17f9", "score": "0.72131443", "text": "private boolean isNetworkAvailable() {\n ConnectivityManager manager = (ConnectivityManager)\n getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = manager.getActiveNetworkInfo();\n\n boolean isAvailable = false;\n if (networkInfo != null && networkInfo.isConnected()) {\n isAvailable = true;\n }\n\n return isAvailable;\n }", "title": "" }, { "docid": "48bfa580ed7a42d0f9d985b326f68065", "score": "0.7207621", "text": "private boolean checkNetworkAvailable() {\n showMoviesDataView();\n\n // Get a reference to the ConnectivityManager to check state of network connectivity\n ConnectivityManager cm =\n (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n\n return activeNetwork != null && activeNetwork.isConnected();\n }", "title": "" }, { "docid": "e384461405a442f6a9bb11ba2bf9a622", "score": "0.7157241", "text": "public static boolean InternetReady(Context con){\n\t\treturn (isNetworkAvailable(con));\r\n\t}", "title": "" }, { "docid": "28ee3ff86040b077c288a19fcba27c81", "score": "0.71569765", "text": "private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "title": "" }, { "docid": "656d323e4e9e41ce1c8b82384dd5f70c", "score": "0.7154011", "text": "public boolean isInternetConnected(Context context) {\n ConnectivityManager cm = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n boolean isConnected = activeNetwork != null && activeNetwork.isConnected();\n return isConnected;\n }", "title": "" }, { "docid": "fc1ae4441fecc8b8ac5d297d4012fcf2", "score": "0.71534026", "text": "public static boolean isConnectedToInternet(Context context) {\n ConnectivityManager cm =\n (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = null;\n if (cm != null) {\n netInfo = cm.getActiveNetworkInfo();\n }\n return netInfo != null && netInfo.isConnectedOrConnecting();\n }", "title": "" }, { "docid": "0e76946361d77ad3048f4c1fed5cadf7", "score": "0.7130534", "text": "public static boolean isInternetReachable(String urlString) {\n try {\n //make a URL to a known source\n URL url = new URL(urlString);\n\n //open a connection to that source\n HttpURLConnection urlConnect = (HttpURLConnection) url.openConnection();\n\n //trying to retrieve data from the source. If there\n //is no connection, this line will fail\n Object objData = urlConnect.getContent();\n\n } catch (UnknownHostException e) {\n logger.error(\"internet connection failed -\" + e.getMessage());\n return false;\n } catch (IOException e) {\n logger.error(\"internet connection failed -\" + e.getMessage());\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "d76caa92ccf5436c57e80ea8828b74ca", "score": "0.712274", "text": "public static Boolean isNetworkAvailable() {\n ConnectivityManager cm = (ConnectivityManager) ZippedImagesDownloadApp.APPLICATION_CONTEXT.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n return netInfo != null && netInfo.isConnected();\n }", "title": "" }, { "docid": "b8f1341c78895ffd00f3c32bba9321a5", "score": "0.71118695", "text": "public static boolean isNetworkAvailable() {\n ConnectivityManager manager = (ConnectivityManager)\n MyApplication.getAppContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = manager.getActiveNetworkInfo();\n boolean isAvailable = false;\n if (networkInfo != null && networkInfo.isConnected()) {\n isAvailable = true;\n }\n\n return isAvailable;\n }", "title": "" }, { "docid": "0d700a67d83437073d635ce88732c6e7", "score": "0.7108532", "text": "public boolean isConnectedToInternet(Context context) {\n ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null) {\n NetworkInfo networkInfo = connectivity.getActiveNetworkInfo();\n if (networkInfo != null && networkInfo.isConnected()) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "a4b256741b76bd3f140c790b05061f1b", "score": "0.70946217", "text": "private static boolean isNetworkAvailable(Context context) {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null;\n }", "title": "" }, { "docid": "a8a28767185581c5cc23e16d2dda126d", "score": "0.70783496", "text": "public static boolean isNetworkAvailable() {\n\t\tConnectivityManager cm =\n\t\t\t(ConnectivityManager) Config.context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "136277848da016024acf47ba027e2035", "score": "0.70748174", "text": "public static boolean isNetworkAvailable() {\n\n ConnectivityManager connectivityManager = (ConnectivityManager) NewsApplication.getMyTimesApplicationInstance()\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n\n return connectivityManager.getActiveNetworkInfo() != null\n && connectivityManager.getActiveNetworkInfo().isConnectedOrConnecting();\n }", "title": "" }, { "docid": "4a93e126566865f25b31fc68a9664914", "score": "0.70624506", "text": "public static boolean netAvailable()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInetAddress addr = InetAddress.getByName(\"github.com\");\r\n\t\t\treturn addr.isReachable(3000);\r\n\t\t}\r\n\t\tcatch (UnknownHostException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "675c94cf612072f53c1b61a1d5f45195", "score": "0.70546454", "text": "public static boolean isNetworkAvailable(Context context) {\n if (context.checkCallingOrSelfPermission(Manifest.permission.INTERNET) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n\n ConnectivityManager connMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo netInfo = connMgr.getActiveNetworkInfo();\n return netInfo != null && netInfo.isConnected();\n }", "title": "" }, { "docid": "e36b30e37aa546407b1e0ff26d299166", "score": "0.70522064", "text": "public static boolean isInternetConnected(Context mContext) {\r\n ConnectivityManager connectivity = (ConnectivityManager) mContext\r\n .getSystemService(Context.CONNECTIVITY_SERVICE);\r\n if (connectivity != null) {\r\n final NetworkInfo activeNetwork = connectivity\r\n .getActiveNetworkInfo();\r\n if (activeNetwork != null && activeNetwork.isConnected()) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "13fed0854dbed1206b230ecac412d84d", "score": "0.7049939", "text": "private boolean isNetworkAvailable(Context context) {\n\t\tConnectivityManager manager = (ConnectivityManager) context.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (manager == null) {\n\t\t\treturn false;\n\t\t}\n\t\tNetworkInfo networkinfo = manager.getActiveNetworkInfo();\n\t\tif (networkinfo == null || !networkinfo.isAvailable()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3cf409f9692fa00dbbbb02e44a409e05", "score": "0.7049358", "text": "private Boolean checkNetworkConnectivity() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = connMgr != null ? connMgr.getActiveNetworkInfo() : null;\n\n // If there is a network connection, return true, else return false\n return networkInfo != null && networkInfo.isConnected();\n }", "title": "" }, { "docid": "5787cb4b665ac0816acca75eace9ccf5", "score": "0.7048172", "text": "public boolean isNetworkAvailable() {\n ConnectivityManager manager = (ConnectivityManager) getSystemService(this.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = manager.getActiveNetworkInfo();\n boolean isAvailable = false;\n if (networkInfo != null && networkInfo.isConnected()) {\n isAvailable = true;\n }\n return isAvailable;\n }", "title": "" }, { "docid": "531ad61204aa099cdf34846c6c84e6ab", "score": "0.7011374", "text": "public boolean isNetworkAvailable() \n\t{\n\t ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\t NetworkInfo networkInfo = cm.getActiveNetworkInfo();\n\t // if no network is available networkInfo will be null\n\t // otherwise check if we are connected\n\t if (networkInfo != null && networkInfo.isConnected()) \n\t {\n\t return true;\n\t }\n\t return false;\n\t}", "title": "" }, { "docid": "80af430694ec1c951ec25a0caf38b389", "score": "0.6997128", "text": "private boolean isOnline(){\n ConnectivityManager connectivityManager = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n if (networkInfo != null && networkInfo.isConnectedOrConnecting()){\n return true;\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "c4d987fca5cf30d0d867903096475d63", "score": "0.6996527", "text": "public static boolean isAvailable(String url) {\n \t\tHttpURLConnection connection;\n \t\ttry {\n \t\t\tconnection = (HttpURLConnection) new URL(url).openConnection();\n \t\t\tconnection.setRequestMethod(\"HEAD\");\n \t\t\tint responseCode = connection.getResponseCode();\n \t\t\tif (responseCode != 200) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t} catch (ProtocolException e) {\n \t\t\treturn false;\n \t\t} catch (IOException e) {\n \t\t\treturn false;\n \t\t}\n \t\t\n \t\treturn true;\n \t}", "title": "" }, { "docid": "ccb1aac32dff864a519fd271f8c8330f", "score": "0.6983449", "text": "private boolean detectConnectionError() {\n boolean error = false, wasError = false;\n do {\n try {\n ConnectionManager.getConnection(authority.baseURL).getInputStream().close();\n error = false;\n } catch (IOException ex) {\n if (!error) {\n Logger.getLogger(HostCrawler.class.getName()).log(Level.WARNING, \"Internet connection error...\");\n wasError = error = true;\n }\n try {\n Thread.sleep(CONN_TEST_WAIT);\n } catch (InterruptedException ex1) {\n Logger.getLogger(HTMLCrawler.class.getName()).log(Level.SEVERE, null, ex1);\n }\n }\n } while (error && HTMLCrawler.this.status == Status.RUNNING);\n return wasError;\n }", "title": "" }, { "docid": "2b67b392419191e3c32d6b508cdc8b3a", "score": "0.69721586", "text": "private Boolean hayRedDisponible() {\n try {\n Process p1 = java.lang.Runtime.getRuntime().exec(\"ping -c 1 www.google.com\");\n int returnVal = p1.waitFor();\n boolean reachable = (returnVal == 0);\n if (reachable) {\n Log.println(Log.ASSERT,\"INTERNET\",\"Acceso a internet\");\n return reachable;\n } else {\n Log.println(Log.ASSERT,\"INTERNET\",\"No internet access\");\n // System.out.println(\"No Internet access\");\n }\n\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n return false;\n }", "title": "" }, { "docid": "fb86c87a19dbd029e8519b1872b27c66", "score": "0.69655615", "text": "boolean hasHttp();", "title": "" }, { "docid": "1f53a88e45bfcbfb826282acdd5d530a", "score": "0.6939613", "text": "public boolean isNetworkAvailable() {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get Network Info from connectivity Manager\n NetworkInfo networkInfo = cm.getActiveNetworkInfo();\n\n // if no network is available networkInfo will be null\n // otherwise check if we are connected\n if (networkInfo != null && networkInfo.isConnected()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "80f2210a9f9b00f49d9f709626e81bc5", "score": "0.6938177", "text": "private boolean isOnline() {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnected()) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "ce8b85945754a44f01ab21ae093f1df6", "score": "0.6930115", "text": "static boolean isNetworkAvailable(Context context) {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "title": "" }, { "docid": "2fd89e8ac5a53620699c57647dc4a4ad", "score": "0.69205874", "text": "private boolean isNetworkAvailable(Context context) {\n ConnectivityManager cm = (ConnectivityManager)\n context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = cm != null ? cm.getActiveNetworkInfo() : null;\n return (networkInfo != null && networkInfo.isConnectedOrConnecting());\n }", "title": "" }, { "docid": "b5b3047ae30fed8fe7fb694bca19477f", "score": "0.691916", "text": "public boolean hasConnection() {\n ConnectivityManager cm = (ConnectivityManager)\n getSystemService(this.CONNECTIVITY_SERVICE);\n NetworkInfo ni = cm.getActiveNetworkInfo();\n if (null == ni){\n return false;\n }\n return ni.isConnectedOrConnecting();\n }", "title": "" }, { "docid": "50fe715ca668e6a50ce2d9c7bf52f94f", "score": "0.69105524", "text": "public final boolean isInternetOn() {\n\t ConnectivityManager connec = (ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\r\n\t \r\n\t // Check for network connections\r\n\t if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\r\n\t connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n\t connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n\t connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\r\n\t \r\n\t // if connected with internet\r\n\t \r\n\t //Toast.makeText(this, \"Internet is Connected \", Toast.LENGTH_LONG).show();\r\n\t\t new SubmitData().execute();\r\n\t return true;\r\n\t \r\n\t } else if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED || connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\r\n\t \r\n\t // Toast.makeText(this, \"Internet Not Connected, Connect it first! \", Toast.LENGTH_LONG).show();\r\n\t\t new AlertDialog.Builder(MainActivity.this).setTitle(\"Alert....\").setMessage(\"Internet Not Connected, Connect it first! \").setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t/*Intent inotr =new Intent(AddProperty.this,Home.class);\r\n\t\t\t\t\tstartActivity(inotr);\r\n\t\t\t\t\tfinish();*/\r\n\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\r\n\t\t }\r\n\t\t}).create().show();\r\n\t return false;\r\n\t \r\n\t }\r\n\t return false;\r\n\t }", "title": "" }, { "docid": "8f8153f0a7b5899c2f797b95f9a09979", "score": "0.69075596", "text": "public boolean isNetworkAvailable() {\n ConnectivityManager cm = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = cm.getActiveNetworkInfo();\n // if no network is available networkInfo will be null\n // otherwise check if we are connected\n if (networkInfo != null && networkInfo.isConnected()) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "370bd6f2fcd3b220289681b2c6660b40", "score": "0.6869292", "text": "public boolean isOnline() {\n ConnectivityManager conMgr = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = conMgr.getActiveNetworkInfo();\n\n if(netInfo == null || !netInfo.isConnected() || !netInfo.isAvailable()){\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "f1913a9e3ae33ee646e2e7dc31f7d9b7", "score": "0.68493116", "text": "private boolean IsNetworkConnected() {\n\n\n connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n networkInfo = connectivityManager.getActiveNetworkInfo();\n return (connectivityManager.getActiveNetworkInfo() != null && networkInfo.isConnected());\n }", "title": "" }, { "docid": "0c45ee61c5cc80b207828c8f72609f57", "score": "0.68491715", "text": "public static void verifyInternetPermissions(Activity activity) {\n // Check if we have write permission\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.INTERNET);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_INTERNET,\n REQUEST_INTERNET\n );\n }\n }", "title": "" }, { "docid": "2cfe1418450aa65f86aae7f25bd60dc5", "score": "0.68331796", "text": "boolean hasHostNetwork();", "title": "" }, { "docid": "6fd6303c185cab9c47ed95af488dc30b", "score": "0.6831344", "text": "public static boolean isNetworkAvailable() {\n try {\n ConnectivityManager connection = (ConnectivityManager) mcontext\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo Wifi = connection\n .getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n if (Wifi != null && Wifi.isConnected() && Wifi.isAvailable())\n return true;\n\n NetworkInfo Mobile = connection\n .getNetworkInfo(ConnectivityManager.TYPE_MOBILE);\n if (Mobile != null && Mobile.isConnected() && Mobile.isAvailable())\n return true;\n\n NetworkInfo activeNet = connection.getActiveNetworkInfo();\n if (activeNet != null && activeNet.isConnected() && activeNet.isAvailable())\n return true;\n\n } catch (Exception ignored) {\n }\n return false;\n }", "title": "" }, { "docid": "e7efbfaa8d3a78f24a557ce3a9294d70", "score": "0.6813412", "text": "public static boolean isNetworkAvailable(Context context) \n\t{\n\t\tConnectivityManager connectivityManager \n\t\t= (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n\t\t//System.out.println(activeNetworkInfo.);\n\t\treturn activeNetworkInfo != null;\n\t}", "title": "" } ]
5c98f7309ac123300ea8ca760de705b6
Output only. The parameters of the Trial. repeated .google.cloud.aiplatform.v1beta1.Trial.Parameter parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
[ { "docid": "d6299faea0af63b27336aebb1722b243", "score": "0.0", "text": "public Builder clearParameters() {\n if (parametersBuilder_ == null) {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n parametersBuilder_.clear();\n }\n return this;\n }", "title": "" } ]
[ { "docid": "4d5e6648a879c81fc05ecf130e0375fa", "score": "0.77379954", "text": "@java.lang.Override\n public java.util.List<com.google.cloud.aiplatform.v1beta1.Trial.Parameter> getParametersList() {\n return parameters_;\n }", "title": "" }, { "docid": "83f6430e6fc7ee3e5172655c85de1bf9", "score": "0.75215316", "text": "@java.lang.Override\n public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.Trial.ParameterOrBuilder>\n getParametersOrBuilderList() {\n return parameters_;\n }", "title": "" }, { "docid": "6f8bf519d602c50b0cf349f20a932e72", "score": "0.7431557", "text": "@java.lang.Override\n public com.google.cloud.aiplatform.v1beta1.Trial.Parameter getParameters(int index) {\n return parameters_.get(index);\n }", "title": "" }, { "docid": "71351dc18686bbc1d324a2794e7e1b18", "score": "0.71811235", "text": "@java.lang.Override\n public com.google.cloud.aiplatform.v1beta1.Trial.ParameterOrBuilder getParametersOrBuilder(\n int index) {\n return parameters_.get(index);\n }", "title": "" }, { "docid": "c44c9c9ab32fa32c2ea18be76551daa3", "score": "0.71241206", "text": "public java.util.List<com.google.cloud.aiplatform.v1beta1.Trial.Parameter> getParametersList() {\n if (parametersBuilder_ == null) {\n return java.util.Collections.unmodifiableList(parameters_);\n } else {\n return parametersBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "cc99b01eeae54205b59ab2477297267c", "score": "0.71221775", "text": "public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.Trial.ParameterOrBuilder>\n getParametersOrBuilderList() {\n if (parametersBuilder_ != null) {\n return parametersBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(parameters_);\n }\n }", "title": "" }, { "docid": "8edae570fd98d18a6eaa5e6152814d7e", "score": "0.6896486", "text": "public com.google.cloud.aiplatform.v1beta1.Trial.Parameter.Builder addParametersBuilder() {\n return getParametersFieldBuilder()\n .addBuilder(com.google.cloud.aiplatform.v1beta1.Trial.Parameter.getDefaultInstance());\n }", "title": "" }, { "docid": "16a334ca325faab4328a69f949ad1dbe", "score": "0.67963505", "text": "public com.google.cloud.aiplatform.v1beta1.Trial.Parameter getParameters(int index) {\n if (parametersBuilder_ == null) {\n return parameters_.get(index);\n } else {\n return parametersBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "10b99910c611ee908f983968063dd048", "score": "0.6617497", "text": "public Builder addParameters(com.google.cloud.aiplatform.v1beta1.Trial.Parameter value) {\n if (parametersBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureParametersIsMutable();\n parameters_.add(value);\n onChanged();\n } else {\n parametersBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "4705368333954e6585eaba5422df9709", "score": "0.6455784", "text": "public com.google.cloud.aiplatform.v1beta1.Trial.ParameterOrBuilder getParametersOrBuilder(\n int index) {\n if (parametersBuilder_ == null) {\n return parameters_.get(index);\n } else {\n return parametersBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "f1f2b71fa8b24140e4ff169ab0bce688", "score": "0.6262067", "text": "@Override\r\n public Parameter[] getParameters() {\r\n final Parameter[] parameters = new Parameter[PARAMETER_NAMES.length];\r\n \r\n for (int i = 0; i < parameters.length; ++i) {\r\n parameters[i] = new Parameter(PARAMETER_NAMES[i], PARAMETER_DEFAULT_VALUES[i]);\r\n parameters[i].getProperties().setLabel(PARAMETER_LABELS[i]);\r\n parameters[i].getProperties().setPhysicalUnit(PARAMETER_UNITS[i]);\r\n }\r\n \r\n return parameters;\r\n }", "title": "" }, { "docid": "8c133b88c51c432bb36d374e9bbfbab4", "score": "0.6144869", "text": "public Builder addAllParameters(\n java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.Trial.Parameter> values) {\n if (parametersBuilder_ == null) {\n ensureParametersIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_);\n onChanged();\n } else {\n parametersBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "64f03007b52cd072c5d35315fb297eab", "score": "0.6141644", "text": "public Builder setParameters(\n int index, com.google.cloud.aiplatform.v1beta1.Trial.Parameter value) {\n if (parametersBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureParametersIsMutable();\n parameters_.set(index, value);\n onChanged();\n } else {\n parametersBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "922e1a53b83bcac787531fd1ba19fd4f", "score": "0.60726255", "text": "public HnswParameters getParameters() {\n return this.parameters;\n }", "title": "" }, { "docid": "9b93162bee2d2510c0a880f53e0b8675", "score": "0.6067661", "text": "public svm_parameter getParameters() {\n return parameters;\n }", "title": "" }, { "docid": "17f0e108f92c991411c60507d917cb68", "score": "0.6061079", "text": "public Builder addParameters(\n int index, com.google.cloud.aiplatform.v1beta1.Trial.Parameter value) {\n if (parametersBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureParametersIsMutable();\n parameters_.add(index, value);\n onChanged();\n } else {\n parametersBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "c6e2165ac1e356e73974c849d0ff81d9", "score": "0.6046019", "text": "List<Parameter> getParameters();", "title": "" }, { "docid": "b254ba945ca92033c41ed131187ed239", "score": "0.60351884", "text": "public Learner.Parameters getParameters() {\n Parameters p = new Parameters(super.getParameters());\n p.baseLearner = baseLearner;\n p.defaultPrediction = defaultPrediction;\n return p;\n }", "title": "" }, { "docid": "ed17843d7c28bed2a77947387b75c5c4", "score": "0.6025667", "text": "public String getParameters() {\r\n\t\treturn parameters;\r\n\t}", "title": "" }, { "docid": "95a60197d73b8bcc79d4b5eef3c9d8d4", "score": "0.6011966", "text": "public Parameters getParameters() {\n return parameters.clone();\n }", "title": "" }, { "docid": "39e40e4be7f18b4680c3cbce0993c23d", "score": "0.59754616", "text": "public List<Parameter> getParameters() {\r\n return params;\r\n }", "title": "" }, { "docid": "4750f43a4ca3f720e81c5c53ca2a0341", "score": "0.5958321", "text": "public java.util.List<com.google.cloud.aiplatform.v1beta1.Trial.Parameter.Builder>\n getParametersBuilderList() {\n return getParametersFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "39bf02e9458b3964f525912bdb08097b", "score": "0.5932499", "text": "public com.google.cloud.aiplatform.v1beta1.Trial.Parameter.Builder getParametersBuilder(\n int index) {\n return getParametersFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "c17e1c6f556cb2cfc727583dc8e5cee7", "score": "0.5924936", "text": "String getParameters() {\n return parameters;\n }", "title": "" }, { "docid": "af713cbaa275c966759054942bb13f2c", "score": "0.5920697", "text": "public double[] getParameters()\n {\n return _parameters;\n }", "title": "" }, { "docid": "a6f7d46e0866d4621830a499a30c8f3f", "score": "0.5869556", "text": "public List<ParameterVarDec> getParameters() {\n return parameters;\n }", "title": "" }, { "docid": "232169f5724aaf4ee6d525b234271e70", "score": "0.5832187", "text": "public com.google.cloud.aiplatform.v1beta1.Trial.Parameter.Builder addParametersBuilder(\n int index) {\n return getParametersFieldBuilder()\n .addBuilder(\n index, com.google.cloud.aiplatform.v1beta1.Trial.Parameter.getDefaultInstance());\n }", "title": "" }, { "docid": "4214be10e4aa9b5630b7fb15a32178b9", "score": "0.5739451", "text": "public List<VarTypes> getParameters() {\n\t\treturn parameters;\n\t}", "title": "" }, { "docid": "447e09857c486f3d41f3c3ed064f46e6", "score": "0.5736429", "text": "public String getParameters()\n {\n return getProperty(PARAMETERS);\n }", "title": "" }, { "docid": "8d686d5e3d63f84faedf8bc5a4552cff", "score": "0.57363147", "text": "public java.util.Map<String, RemediationParameterValue> getParameters() {\n return parameters;\n }", "title": "" }, { "docid": "9e923153ab60dd1ba7abf67d93357fa7", "score": "0.57006294", "text": "public Object[] getParameters() {\n return parameters;\n }", "title": "" }, { "docid": "be7e2ef632688e3443a3f6a97e6bd7ba", "score": "0.56858414", "text": "public Parameters getParameters() {\n\t\treturn (Parameters)parameters;\n\t}", "title": "" }, { "docid": "8fb89743cbe16af90c0354aa0bd46197", "score": "0.5666357", "text": "public Object[] getParameters()\r\n {\r\n return this.parameters;\r\n }", "title": "" }, { "docid": "61b5a5ccf617cb5d0d8a0880501b27c4", "score": "0.56509936", "text": "@Override\n public List<Parameter> getParameters() {\n return Collections.emptyList();\n }", "title": "" }, { "docid": "682db9fb757436ed5b466c3d4e3bf658", "score": "0.5611007", "text": "public Map<String, String> getParameters() {\r\n return parameters;\r\n }", "title": "" }, { "docid": "42f7f80e0f23029ac07f7e37ccbb3ce4", "score": "0.5603866", "text": "public final String getParametersText() {\n return this.parametersText;\n }", "title": "" }, { "docid": "c1eae62892bb346dfced99419270bf7a", "score": "0.56033933", "text": "ParametersType1 getParameters();", "title": "" }, { "docid": "e123ccc6822a89ea9875945e41dfcdbc", "score": "0.55797464", "text": "public List getParameters() {\n return getDeclaratorWithParameters().getParameters();\n }", "title": "" }, { "docid": "4d5fb388818d043b04dc2bc4ae31b3ca", "score": "0.5576012", "text": "public Set<String> getParameters();", "title": "" }, { "docid": "9905c1ec04133b6a6601b64ca9696e09", "score": "0.5570397", "text": "PsiParameter @NotNull [] getParameters();", "title": "" }, { "docid": "9d50ec88f72e1b859e7e2bfeceb48fb7", "score": "0.5562358", "text": "public HoughtonParameters getParameters() {\r\n\t\tif (parameters == null) {\r\n\t\t\tparameters = new HoughtonParameters();\r\n\t\t\tparameters.setSeed(seed());\r\n\t\t}\r\n\t\treturn parameters;\r\n\t}", "title": "" }, { "docid": "fbc5fec71e7ad33d347c134165699a38", "score": "0.5536623", "text": "public Map<String, Object> parameters() {\n return this.parameters;\n }", "title": "" }, { "docid": "ce5e05285ec9cc1fdaa9d8bd3f3aa4ff", "score": "0.5503543", "text": "ParametersType getParameters();", "title": "" }, { "docid": "f6ae67f1f4c6708888711fc2f14a4f83", "score": "0.5484787", "text": "public ParametersElements getParametersAccess() {\r\n\t\treturn pParameters;\r\n\t}", "title": "" }, { "docid": "4c04f6b40d99db74e6ff62329efd6760", "score": "0.54833895", "text": "public java.util.List<DatasetParameter> getDatasetParameters() {\n return datasetParameters;\n }", "title": "" }, { "docid": "6ff13b8502ab2b3a76f6407c77d7c9bd", "score": "0.5471405", "text": "com.google.protobuf.ByteString\n getParameterBytes();", "title": "" }, { "docid": "940203aa922c2d25341ad3293a2402f6", "score": "0.5467126", "text": "public Map<String, Serializable> getParameters()\n\t{\n\t\treturn parameters;\n\t}", "title": "" }, { "docid": "a959a4a405698d58d050e5e39a48fcd3", "score": "0.54539347", "text": "public AnnotationParameterValueList getParameterValues() {\n return getParameterValues(true);\n }", "title": "" }, { "docid": "c1a7d5665b2cdccb830e3142a6f6bd19", "score": "0.54312366", "text": "RandomVariable[] getParameter();", "title": "" }, { "docid": "53dcacf4f3b9de954e0900ef4015adff", "score": "0.54122555", "text": "public void getParameters(Parameters parameters) {\n\t\t\n }", "title": "" }, { "docid": "5bb47e21ddc1016af75f30c7ca8f83b0", "score": "0.5405283", "text": "com.google.protobuf.Struct getParameters();", "title": "" }, { "docid": "9f31e1231abc5eb0cf281b1af605fc57", "score": "0.5376917", "text": "public Object datasetParameters() {\n return this.datasetParameters;\n }", "title": "" }, { "docid": "a6b383b798812b29bbb29e8f4eee7f8e", "score": "0.53727984", "text": "public double[] getParameterValues() {\n\n double[] copyOfValues = new double[getDimension()];\n for (int i = 0; i < copyOfValues.length; i++) {\n copyOfValues[i] = getParameterValue(i);\n }\n return copyOfValues;\n }", "title": "" }, { "docid": "ca8e1f0ff3a6c57911639e602837dbec", "score": "0.52981836", "text": "cosmos.mint.v1beta1.Params getParams();", "title": "" }, { "docid": "ac7fa47c8f9132895f0d447de6b587c7", "score": "0.52972573", "text": "public Object[] getParameters() {\n return null;\n }", "title": "" }, { "docid": "6aee506e8e759158d9fad13d5a931781", "score": "0.52714074", "text": "static public String getParametersPath() {\n return getFarmInfoPath() + \"/Parameters/\";\n }", "title": "" }, { "docid": "c20537ba627507bfd920ea8a8852bb6f", "score": "0.5265189", "text": "@Override\n public Vector getPolicyParameters() {\n return null;\n }", "title": "" }, { "docid": "e3b5579c57e6652f877b4b791a69c837", "score": "0.5231296", "text": "public String getChallengeParameters() {\n return challengeParameters;\n }", "title": "" }, { "docid": "32483b77cfbceb010b475b5f167bfa45", "score": "0.52269673", "text": "public Parameters() {\n baseLearner = (Learner) defaultBaseLearner.clone();\n defaultPrediction = defaultDefaultPrediction;\n }", "title": "" }, { "docid": "384969d0ea7341056ea8d116f28ca4c2", "score": "0.5211582", "text": "public Collection<NamedTypeRef> getParameters() {\n return parameters.values();\n }", "title": "" }, { "docid": "9c4ce5a2c75d413c6d471ba253fa0671", "score": "0.52099603", "text": "@Override\n public void setPolicyParameters(Vector parameters) {\n \n }", "title": "" }, { "docid": "0969d0f635448bc553533997f5402127", "score": "0.5199512", "text": "public HttpParameters getHttpParameters() {\n return this.httpParameters;\n }", "title": "" }, { "docid": "a2b1212f7edbed47aa233476f1ef9e1d", "score": "0.51940733", "text": "@Override\n\tpublic ParameterSet requiredParameters()\n\t{\n\t\tParameter pa1 = new Parameter(\"Color Dim Name\", \"Name of the color dimension\", \"Color\");\n\t\tParameter pa2 = new Parameter(\"Reference Color\", \"Name or number of the color to use for determining registration\", \"0\");\n\t\tParameter pa3 = new Parameter(\"Remove Black Borders?\", \"Should the black region surrounding the image be cropped?\", Parameter.CHECKBOX, true);\n\t\tParameter pa4 = new Parameter(\"Time Dim Name\", \"Name of the time dimension.\", \"Time\");\n\t\tParameter pa5 = new Parameter(\"Align To First Timepoint?\", \"Each image timepoint will be aligned to the first if set to true. Otherwise, time t aligns to t-1.\", Parameter.CHECKBOX, true);\n\t\t\n\t\t// Make an array of the parameters and return it\n\t\tParameterSet parameterArray = new ParameterSet();\n\t\tparameterArray.addParameter(pa1);\n\t\tparameterArray.addParameter(pa2);\n\t\tparameterArray.addParameter(pa3);\n\t\tparameterArray.addParameter(pa4);\n\t\tparameterArray.addParameter(pa5);\n\t\treturn parameterArray;\n\t}", "title": "" }, { "docid": "0c76d167b792119339e2550690d108f0", "score": "0.51856875", "text": "public Parameters(Learner.Parameters p) {\n super(p);\n baseLearner = (Learner) defaultBaseLearner.clone();\n defaultPrediction = defaultDefaultPrediction;\n }", "title": "" }, { "docid": "af427e4b75c6bcd891fe65f4ba02da86", "score": "0.517392", "text": "public Set<String> getTemporaryParameterNames(){\n\t\treturn new HashSet<>(temporaryParameters.keySet());\n\t}", "title": "" }, { "docid": "2aec84542bae5e46ec983fbc3b867b48", "score": "0.51437455", "text": "public Parameters() {\n this(DSL.name(\"PARAMETERS\"), null);\n }", "title": "" }, { "docid": "57f877c564a3fe7c084ae568885a7caf", "score": "0.51377296", "text": "public void setParameters(List<ParameterVarDec> parameters) {\n this.parameters = parameters;\n }", "title": "" }, { "docid": "5ea8d835e2dcd444d5e78014ae2cc922", "score": "0.51319426", "text": "public Map<String,String> getParameters();", "title": "" }, { "docid": "dc3412dfa7bd7f922e067e4cc105c3bb", "score": "0.5123395", "text": "@java.lang.Override\n public int getParametersCount() {\n return parameters_.size();\n }", "title": "" }, { "docid": "6a211fc319dfd40b8b293a6448f22682", "score": "0.51194984", "text": "@Override\n public <V> Parameters<V> getParameters() {\n if (parameters == null) {\n parameters = new ParametersSpecAdapter(getSpec());\n }\n return (Parameters<V>)parameters;\n }", "title": "" }, { "docid": "e4bc824212305a027677c8a24fea1ac6", "score": "0.5114105", "text": "public List<String> getParameterValue() {\r\n return iParameterValue;\r\n }", "title": "" }, { "docid": "088299492975cedc6f397fe32996d1bb", "score": "0.5112641", "text": "@Parameterized.Parameters\n public static Collection<Object[]> parameters() {\n return Arrays.asList (new Object [][] {\n {201, 5, 3, \"Label caloric count of healthier options.\", 0, \"Food Hygiene\", \"5_1\", \"comments\", \"2021-04-12T18:42:36.204000Z\", \"\"},\n // invalid non-compliance types\n {400, 5, 3, \"Label caloric count of healthier options.\", 0, \"Food Hygienee\", \"5_1\", \"comments\", \"2021-04-12T18:42:36.204000Z\", \"\"},\n {400, 5, 3, \"Label caloric count of healthier options.\", 0, \"Food Hygiene\", \"5_1\", \"comments\", \"2021-04-12T18:42:36.204000Z\", \"\"}\n });\n }", "title": "" }, { "docid": "8470c3175dab0d6700bad0f2ffa90d85", "score": "0.5111708", "text": "@Override\n\tpublic Parameters startParameters() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ecab21713923a0ede4d55f04b9686007", "score": "0.510828", "text": "public BoundType[] getParameters() {\n\t\treturn this.parameters;\n\t}", "title": "" }, { "docid": "9c1216ae2732d35c700db36ac59ca76e", "score": "0.5104282", "text": "public ExpressionList getParameters() {\r\n return parameters;\r\n }", "title": "" }, { "docid": "8835b4d0725be1fd2fef94e5c7d7fead", "score": "0.5104191", "text": "public void printParameters(){\r\n System.out.println(\"ParameterBank | ________________________________________________________\");\r\n System.out.println(\"ParameterBank | L: \"+L);\r\n System.out.println(\"ParameterBank | jInteraction: \"+jInteraction);\r\n System.out.println(\"ParameterBank | granularity: \"+Granularity);\r\n System.out.println(\"ParameterBank | s: \"+s);\r\n System.out.println(\"ParameterBank | temp: \"+temperature);\r\n System.out.println(\"ParameterBank | hField: \"+hField);\r\n System.out.println(\"ParameterBank | dim: \"+D);\r\n System.out.println(\"ParameterBank | Geo: \"+Geo);\r\n System.out.println(\"ParameterBank | Range: \"+R);\r\n System.out.println(\"ParameterBank | mc algo :\" +mcalgo);\r\n System.out.println(\"ParameterBank | trigger :\" +trigger);\r\n System.out.println(\"ParameterBank | using Heter: \"+useHeter+\" Dilution:\"+useDilution+\" Long Range:\"+useLongRange);\r\n System.out.println(\"ParameterBank | ________________________________________________________\");\t\t\r\n }", "title": "" }, { "docid": "c34da4f1523d557857f8d27a5c5a621a", "score": "0.5095157", "text": "com.google.protobuf.StructOrBuilder getParametersOrBuilder();", "title": "" }, { "docid": "bfaf9d991bc6cfcb7e73a2b377bd0e88", "score": "0.50827414", "text": "@Override\n\tpublic ParameterSet requiredParameters()\n\t{\n\t\tParameter p0 = new Parameter(\"Folder\", \"Folder containing the images from which to make the calibration image\", Parameter.FILECHOOSER, \"\");\n\t\tParameter p1 = new Parameter(\"Stack Projection Method\", \"Calculation method for projecting the stack to a single image\", Parameter.DROPDOWN, new String[] { JEX_StackProjection.METHOD_MEAN, JEX_StackProjection.METHOD_MEDIAN, JEX_StackProjection.METHOD_MIN, JEX_StackProjection.METHOD_MAX, JEX_StackProjection.METHOD_STDEV, JEX_StackProjection.METHOD_SUM }, 1);\n\t\tParameter p2 = new Parameter(\"Final Smoothing Method\", \"Smoothing function to apply at the end\", Parameter.DROPDOWN, new String[] { \"none\", JEX_StackProjection.METHOD_MEAN, JEX_StackProjection.METHOD_MEDIAN }, 2);\n\t\tParameter p3 = new Parameter(\"Smoothing Filter Radius\", \"Radius of the smoothing filter\", \"2\");\n\t\t\n\t\t// Make an array of the parameters and return it\n\t\tParameterSet parameterArray = new ParameterSet();\n\t\tparameterArray.addParameter(p0);\n\t\tparameterArray.addParameter(p1);\n\t\tparameterArray.addParameter(p2);\n\t\tparameterArray.addParameter(p3);\n\t\treturn parameterArray;\n\t}", "title": "" }, { "docid": "8107f655b4c51bf4a1ec0b45d42e79e3", "score": "0.5080953", "text": "public int getParametersN(){ return 2;}", "title": "" }, { "docid": "5bf8002f84c25e95c45038f7b0e818a6", "score": "0.5056674", "text": "public synchronized PIDParameters getParameters(){\r\n\t\treturn(PIDParameters) p.clone();\r\n\t}", "title": "" }, { "docid": "31c87d35a3595700e881279870003045", "score": "0.5048588", "text": "@Override\n public ParameterDescriptorGroup getParameters() {\n return EMPTY_PARAMS;\n }", "title": "" }, { "docid": "c026d75819dd36eae75dd7c7362fc3b0", "score": "0.50435174", "text": "public final double[] getParameterValues() {\n\n double[] copyOfValues = new double[values.length];\n System.arraycopy(values, 0, copyOfValues, 0, copyOfValues.length);\n return copyOfValues;\n }", "title": "" }, { "docid": "28178a15989bb8dc4f82033e523a3b89", "score": "0.50401497", "text": "public com.redknee.util.crmapi.soap.common.xsd._2008._08.GenericParameter[] getParameters(){\n return localParameters;\n }", "title": "" }, { "docid": "e71c9d1989ab0df0e6b540bbe010a5d7", "score": "0.50344855", "text": "public void setParameters(String parameters) {\r\n\t\tthis.parameters = parameters;\r\n\t}", "title": "" }, { "docid": "6344968b1f02677d21e49bd97f305931", "score": "0.5030145", "text": "default Set<String> getParameters() {\n return Collections.emptySet();\n }", "title": "" }, { "docid": "3ab073c551a69d2c592e5d860f589c9e", "score": "0.5020757", "text": "public Object[][] getParameterArray() {\n return parameterArray;\n }", "title": "" }, { "docid": "70df6dc6f314ad4b5e2522cc1d58fee5", "score": "0.50162673", "text": "public JCParameter[] getParameters();", "title": "" }, { "docid": "e8d88a0c2b50540c21c9d66b340be437", "score": "0.50107056", "text": "public String getParameterValue() {\n return this.parameterValue;\n }", "title": "" }, { "docid": "b0e4d1b1d8b7cd654c48c3e0f6235683", "score": "0.5006567", "text": "@objid (\"bb42b443-0255-493b-83d9-cf638b2b28e4\")\n PropertyTable getParameters();", "title": "" }, { "docid": "0fcdf0335eb4c670bdcead503e1a8575", "score": "0.50052196", "text": "public ArrayList<Variable> getMethodParameters() {\n return this.parameters;\n }", "title": "" }, { "docid": "8108c7bea73ad310a9d2fb9871edeb95", "score": "0.5001929", "text": "int getNumberOfParameters();", "title": "" }, { "docid": "6c19cfaed964e2a697d2f8f3b8e043f8", "score": "0.49982846", "text": "public int getParameterCount() {\n return _parameterCount;\n }", "title": "" }, { "docid": "35caa487bba7faaa3e576738e72eb0bc", "score": "0.4984856", "text": "@Override\n public void getParameters(Properties params) {\n acceleration.getParameters(params, ACC);\n plan.getParameters(params, PLAN);\n backupBehaviour.getParameters(params, RECOVERY);\n clutch.getParameters(params, CLUTCH);\n }", "title": "" }, { "docid": "a0f085772c53edcaf46a9e192d6cdb33", "score": "0.49795142", "text": "public Builder addParameters(\n com.google.cloud.aiplatform.v1beta1.Trial.Parameter.Builder builderForValue) {\n if (parametersBuilder_ == null) {\n ensureParametersIsMutable();\n parameters_.add(builderForValue.build());\n onChanged();\n } else {\n parametersBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "a28070d2ddb2a78af056a94327e8bcf8", "score": "0.49776763", "text": "public QTESLAParameter getQTESLAParameter () {\n\t\t\n\t\treturn parameter;\n\t\t\n\t}", "title": "" }, { "docid": "5a4d0b10c868843808f3fee4b5f7fa95", "score": "0.49736664", "text": "public Parameter getParameter(){\n Parameter p = super.getParameter();\n filename=tf.getText();\n p.setValue( new DataDirectoryString(filename)); \n return p;\n }", "title": "" }, { "docid": "1ab342f127e6d3992a08f0be7ab25bed", "score": "0.4961657", "text": "public String getParameterType() {\n return this.parameterType;\n }", "title": "" }, { "docid": "28210f5135acea89f01a742b961e124c", "score": "0.49605194", "text": "public Object[] getParameters() {\n/* 264 */ return (this.parameters == null) ? null : Arrays.<Object>copyOf(this.parameters, this.parameterCount);\n/* */ }", "title": "" }, { "docid": "88ea8e69b6088664fa3ea445c689c842", "score": "0.49519214", "text": "public abstract List<Parameter> extraParameters();", "title": "" }, { "docid": "771c799f28f1e0293da57c59f452033d", "score": "0.4949988", "text": "public final double[] inspectParameterValues() {\n return values;\n }", "title": "" }, { "docid": "f89809911072b80a850100a40899263d", "score": "0.49491078", "text": "public String params() {\n return getString(FhirPropertyNames.PROPERTY_PARAMS);\n }", "title": "" } ]
b4df367ebcd78bad833d533cc60103c4
$FF: Couldn't be decompiled
[ { "docid": "a0998df7d56c7e2409f82103def934df", "score": "0.0", "text": "public static boolean isTimeDefault() {\n }", "title": "" } ]
[ { "docid": "31eda2d085d096ca5c78e442df3ed418", "score": "0.88633096", "text": "static void method_5312() {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "80fa7e88c099068642e33f9a998bbe64", "score": "0.8757167", "text": "static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "f1eb9ed6f1e0329704c1285b559a26ba", "score": "0.8726801", "text": "static void method_3833() {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "b0d851dd043e82ddb56a3da07427933e", "score": "0.86820817", "text": "static void method_3486() {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "6a7477c9f6a5399a7f93f40f3a83e663", "score": "0.8593404", "text": "static void method_1203() {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "58ec12549e8216c41b179378600d5312", "score": "0.85894114", "text": "static void method_9763() {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "58ed2c8ca0cf19293ba6b6511e92d75c", "score": "0.77690905", "text": "public void method_7129(int param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "096e121c15b2a5f3f674e19f0ddf0b6a", "score": "0.7601032", "text": "public void method_5885(String param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "5d1eaeb2e64e2c95194a2733d352490a", "score": "0.75103205", "text": "public static int method_9757(class_689 param0) {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "682a21492dbf6b0486543a165d428e0a", "score": "0.6629127", "text": "public static class_689 method_9756(int param0, ahb param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "880029194ca22517cfc0aaa1d8ef130d", "score": "0.6463101", "text": "public static class_689 method_9755(class_1583 param0, ahb param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "2b335f5cdff49a0fc37c34e5f2443987", "score": "0.64450216", "text": "void m5547b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r1 = this;\n r0 = r1.f4281b;\t Catch:{ InterruptedException -> 0x0005 }\n r0.await();\t Catch:{ InterruptedException -> 0x0005 }\n L_0x0005:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.crashlytics.android.core.h.b.b():void\");\n }", "title": "" }, { "docid": "91e50cb3ec727ec4167cc3c40fd9e964", "score": "0.6399609", "text": "private void m13047b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f11274e;\t Catch:{ JSONException -> 0x000f }\n if (r0 == 0) goto L_0x000f;\t Catch:{ JSONException -> 0x000f }\n L_0x0004:\n r0 = r4.f11274e;\t Catch:{ JSONException -> 0x000f }\n r1 = \"tc\";\t Catch:{ JSONException -> 0x000f }\n r2 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x000f }\n r0.put(r1, r2);\t Catch:{ JSONException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.branch.indexing.a.b():void\");\n }", "title": "" }, { "docid": "caed929000684648f6bb436e11ac952d", "score": "0.638613", "text": "public void writeText1() {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "93843346e963b77c0f182551556b7510", "score": "0.63827807", "text": "public void m4773b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r1 = this;\n r0 = r1.f3702b;\t Catch:{ Exception -> 0x0009 }\n r0 = android.support.v4.content.C0436c.m1648a(r0);\t Catch:{ Exception -> 0x0009 }\n r0.m1651a(r1);\t Catch:{ Exception -> 0x0009 }\n L_0x0009:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.v.b():void\");\n }", "title": "" }, { "docid": "a69eb3420c2b775d0b184c0a5feb2652", "score": "0.6288351", "text": "public static java.lang.String m9967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = java.util.UUID.randomUUID();\n r1 = r0.getLeastSignificantBits();\n r1 = java.math.BigInteger.valueOf(r1);\n r1 = r1.toByteArray();\n r2 = r0.getMostSignificantBits();\n r0 = java.math.BigInteger.valueOf(r2);\n r0 = r0.toByteArray();\n r2 = new java.math.BigInteger;\n r3 = 1;\n r2.<init>(r3, r1);\n r2 = r2.toString();\n r4 = 0;\n r5 = r2;\n r2 = 0;\n L_0x0029:\n r6 = 2;\n if (r2 >= r6) goto L_0x0050;\n L_0x002c:\n r6 = \"MD5\";\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n r6 = java.security.MessageDigest.getInstance(r6);\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n r6.update(r1);\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n r6.update(r0);\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n r7 = 8;\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n r8 = new byte[r7];\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n r6 = r6.digest();\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n java.lang.System.arraycopy(r6, r4, r8, r4, r7);\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n r6 = new java.math.BigInteger;\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n r6.<init>(r3, r8);\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n r6 = r6.toString();\t Catch:{ NoSuchAlgorithmException -> 0x004d }\n r5 = r6;\n L_0x004d:\n r2 = r2 + 1;\n goto L_0x0029;\n L_0x0050:\n return r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzaoa.c():java.lang.String\");\n }", "title": "" }, { "docid": "0fb2a552037ae6787b37417f561ca142", "score": "0.62610465", "text": "public void method_1014(Waypoint var1, double var2, double var4, double var6, float var8, double var9, double var11) {\n // $FF: Couldn't be decompiled\n }", "title": "" }, { "docid": "0dafb514ad47d1028d5d95fc4a9eb8d4", "score": "0.6244913", "text": "public static class_689 method_9754(String param0, ahb param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "1c76757cea8879a016a468425eb9fabf", "score": "0.6239691", "text": "public void method_1019(Waypoint var1, double var2, double var4, double var6, float var8, double var9, double var11) {\n // $FF: Couldn't be decompiled\n }", "title": "" }, { "docid": "70169ed85dc05616856bd55104b8fe1e", "score": "0.61952174", "text": "private java.lang.String m13036a(android.view.View r2, android.content.res.Resources r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r1 = this;\n r0 = r2.getId();\n r0 = java.lang.String.valueOf(r0);\n r2 = r2.getId();\t Catch:{ Exception -> 0x0011 }\n r2 = r3.getResourceEntryName(r2);\t Catch:{ Exception -> 0x0011 }\n goto L_0x0012;\n L_0x0011:\n r2 = r0;\n L_0x0012:\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.branch.indexing.a.a(android.view.View, android.content.res.Resources):java.lang.String\");\n }", "title": "" }, { "docid": "80ecae0a6f0cf4719ad5935b463075f0", "score": "0.6038835", "text": "public static void m8048a(com.google.android.exoplayer2.upstream.C2368d r0) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n if (r0 == 0) goto L_0x0005;\n L_0x0002:\n r0.mo1687b();\t Catch:{ IOException -> 0x0005 }\n L_0x0005:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.c.s.a(com.google.android.exoplayer2.upstream.d):void\");\n }", "title": "" }, { "docid": "5ab2c9235620f09806a7268ca0a18230", "score": "0.5994705", "text": "public String decompile() {\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n PrintStream s = new PrintStream(out);\n decompile(s);\n return out.toString();\n }", "title": "" }, { "docid": "87c95b3c73e15d032b8a0657fa364cbc", "score": "0.59759706", "text": "public void m1662a(final C0467e c0467e, final Bundle bundle) {\n this.f1530a.f1536d.m1674a(new Runnable(this) {\n /* renamed from: c */\n final /* synthetic */ C0466d f1517c;\n\n public void run() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = r3;\n r0 = r0.mo357a();\n r1 = r3.f1517c;\n r1 = r1.f1530a;\n r1 = r1.f1534b;\n r1.remove(r0);\n r1 = new android.support.v4.media.MediaBrowserServiceCompat$b;\n r2 = r3.f1517c;\n r2 = r2.f1530a;\n r1.<init>(r2);\n r2 = r3;\n r1.f1486c = r2;\n r2 = r4;\n r1.f1485b = r2;\n r2 = r3.f1517c;\n r2 = r2.f1530a;\n r2 = r2.f1534b;\n r2.put(r0, r1);\n r2 = 0;\n r0.linkToDeath(r1, r2);\t Catch:{ RemoteException -> 0x002e }\n goto L_0x0035;\n L_0x002e:\n r0 = \"MBServiceCompat\";\n r1 = \"IBinder is already dead.\";\n android.util.Log.w(r0, r1);\n L_0x0035:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v4.media.MediaBrowserServiceCompat.d.6.run():void\");\n }\n });\n }", "title": "" }, { "docid": "dfba069975b18f22d959667522b36a52", "score": "0.5927718", "text": "public static final boolean inCompiledCode()\n {\n return false;\n }", "title": "" }, { "docid": "af2224fefd62742f38457752613c7b03", "score": "0.59128773", "text": "public /* bridge */ /* synthetic */ java.lang.Object run() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.ICUData.3.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.ICUData.3.run():java.lang.Object\");\n }", "title": "" }, { "docid": "41a3dba2fce07b13ba19d651873900d7", "score": "0.5909171", "text": "public /* bridge */ /* synthetic */ java.lang.Object run() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.ICUData.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.ICUData.1.run():java.lang.Object\");\n }", "title": "" }, { "docid": "45dea487ee96a4d269d197c0419bd432", "score": "0.5908519", "text": "public /* bridge */ /* synthetic */ java.lang.Object run() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.ICUData.2.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.ICUData.2.run():java.lang.Object\");\n }", "title": "" }, { "docid": "f80a1d8ebd1f2533a72173321d43d654", "score": "0.5888551", "text": "@Override // defpackage.AbstractC2300e70\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void E(long r13, int r15, int r16, int r17, boolean r18, boolean r19, float r20, float r21) {\n /*\n r12 = this;\n r0 = r12\n r1 = r15\n r2 = 1\n r0.Z = r2\n r3 = 0\n r12.Q(r15, r3)\n java.util.ArrayList r4 = r0.a0\n int r5 = r12.j0(r15)\n java.lang.Object r4 = r4.get(r5)\n r5 = r4\n hZ0 r5 = (defpackage.AbstractC2882hZ0) r5\n N81 r4 = r5.c\n org.chromium.chrome.browser.tab.Tab r4 = defpackage.AbstractC1160Ta1.d(r4, r15)\n if (r4 != 0) goto L_0x001f\n goto L_0x0031\n L_0x001f:\n IZ0[] r4 = r5.f\n if (r4 == 0) goto L_0x0036\n int r4 = r4.length\n r6 = r3\n L_0x0025:\n if (r6 >= r4) goto L_0x0036\n IZ0[] r7 = r5.f\n r7 = r7[r6]\n int r7 = r7.a()\n if (r7 != r1) goto L_0x0033\n L_0x0031:\n r2 = r3\n goto L_0x0039\n L_0x0033:\n int r6 = r6 + 1\n goto L_0x0025\n L_0x0036:\n r5.l(r2)\n L_0x0039:\n if (r2 != 0) goto L_0x003c\n goto L_0x004e\n L_0x003c:\n r5.d = r3\n r6 = r13\n r5.n(r13)\n r8 = 1\n N81 r2 = r5.c\n int r9 = defpackage.AbstractC1160Ta1.e(r2, r15)\n r10 = -1\n r11 = 0\n r5.U(r6, r8, r9, r10, r11)\n L_0x004e:\n r12.t0(r3)\n r1 = r18\n r12.G(r1)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.C3565lZ0.E(long, int, int, int, boolean, boolean, float, float):void\");\n }", "title": "" }, { "docid": "f9d06c1d893a0790b58ef4179b74d0b1", "score": "0.58555704", "text": "public void test114() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.6 -source 1.4 -proc:none -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.4 : 48.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "78d457425c5aa34c2c798067b2fa45c3", "score": "0.5812674", "text": "private void postCompile() {\n\n }", "title": "" }, { "docid": "115549170e7a192f2b273f156c7bafb7", "score": "0.57559985", "text": "public static boolean m5235a(android.content.Context r2, java.lang.String r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r2 = r2.getPackageManager();\n r0 = 1;\n r2.getPackageInfo(r3, r0);\t Catch:{ NameNotFoundException -> 0x0011, NameNotFoundException -> 0x0011 }\n return r0;\n L_0x0011:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.k.g.a(android.content.Context, java.lang.String):boolean\");\n }", "title": "" }, { "docid": "68aaf852d2f9abf7bfc6f1d5ea860c84", "score": "0.57485974", "text": "public void test108() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.4 -source 1.3 -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.2 : 46.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "06a713da932893282f41333960c838ca", "score": "0.57470465", "text": "public void test113() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.6 -source 1.3 -proc:none -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.4 : 48.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "9f44a24ccccd189f7caed2ea56bdf7f9", "score": "0.57445437", "text": "@Override\n public void decompile(PrintStream out, String indent) {\n }", "title": "" }, { "docid": "bebec7336542810c5550a4cf26d35996", "score": "0.5738817", "text": "private Callback() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.server.net.NetworkPinner.Callback.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.net.NetworkPinner.Callback.<init>():void\");\n }", "title": "" }, { "docid": "9b23d437461ddf3d0f6e8e79b84c40b2", "score": "0.5719414", "text": "public void test116() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.6 -source 1.6 -proc:none -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.6 : 50.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "69aa7ff9b60b7f10cc6fb372b228f934", "score": "0.5697569", "text": "public final void mo7244c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.m29906n();\t Catch:{ RemoteException -> 0x0010 }\n r0 = (com.google.android.m4b.maps.p122v.C5529h) r0;\t Catch:{ RemoteException -> 0x0010 }\n r1 = r2.f28181f;\t Catch:{ RemoteException -> 0x0010 }\n r1 = r1.intValue();\t Catch:{ RemoteException -> 0x0010 }\n r0.mo5680a(r1);\t Catch:{ RemoteException -> 0x0010 }\n return;\n L_0x0010:\n r0 = \"SignInClientImpl\";\n r1 = \"Remote service probably died when clearAccountFromSessionStore is called\";\n android.util.Log.w(r0, r1);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.v.i.c():void\");\n }", "title": "" }, { "docid": "c69193742d4f5129bae66ba5ae4b29ab", "score": "0.56923676", "text": "AnonymousClass1(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.icu.impl.ICUData.1.<init>(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.ICUData.1.<init>(java.lang.String):void\");\n }", "title": "" }, { "docid": "3a629eee9c9450a079a1a5947034cbab", "score": "0.5676785", "text": "public boolean isCompileToBytecode();", "title": "" }, { "docid": "5063506f008164f18e2779992581e95b", "score": "0.5657686", "text": "AnonymousClass3(java.lang.ClassLoader r1, java.lang.String r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.icu.impl.ICUData.3.<init>(java.lang.ClassLoader, java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.ICUData.3.<init>(java.lang.ClassLoader, java.lang.String):void\");\n }", "title": "" }, { "docid": "1ab383742218611e3681c36ce513e01c", "score": "0.5655459", "text": "public static java.lang.String m8045a(android.content.Context r2, java.lang.String r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = r2.getPackageName();\t Catch:{ NameNotFoundException -> 0x0010 }\n r2 = r2.getPackageManager();\t Catch:{ NameNotFoundException -> 0x0010 }\n r1 = 0;\t Catch:{ NameNotFoundException -> 0x0010 }\n r2 = r2.getPackageInfo(r0, r1);\t Catch:{ NameNotFoundException -> 0x0010 }\n r2 = r2.versionName;\t Catch:{ NameNotFoundException -> 0x0010 }\n goto L_0x0012;\n L_0x0010:\n r2 = \"?\";\n L_0x0012:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r0.append(r3);\n r3 = \"/\";\n r0.append(r3);\n r0.append(r2);\n r2 = \" (Linux;Android \";\n r0.append(r2);\n r2 = android.os.Build.VERSION.RELEASE;\n r0.append(r2);\n r2 = \") \";\n r0.append(r2);\n r2 = \"ExoPlayerLib/2.4.2\";\n r0.append(r2);\n r2 = r0.toString();\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.c.s.a(android.content.Context, java.lang.String):java.lang.String\");\n }", "title": "" }, { "docid": "c3f7cf074dde74327a72769ebf968748", "score": "0.56521964", "text": "Proxy(android.os.IBinder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.nfcgsma_extras.INfcAdapterGsmaExtras.Stub.Proxy.<init>(android.os.IBinder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.nfcgsma_extras.INfcAdapterGsmaExtras.Stub.Proxy.<init>(android.os.IBinder):void\");\n }", "title": "" }, { "docid": "84662e4f808a1c77bda66fa7f78c620b", "score": "0.564084", "text": "Callback(com.android.server.net.NetworkPinner.Callback r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.server.net.NetworkPinner.Callback.<init>(com.android.server.net.NetworkPinner$Callback):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.net.NetworkPinner.Callback.<init>(com.android.server.net.NetworkPinner$Callback):void\");\n }", "title": "" }, { "docid": "c6068d31cd9057fb7090844ec6edb6ef", "score": "0.5639725", "text": "static /* synthetic */ int m41-get3(android.icu.util.BytesTrie.State r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.icu.util.BytesTrie.State.-get3(android.icu.util.BytesTrie$State):int, dex: in method: android.icu.util.BytesTrie.State.-get3(android.icu.util.BytesTrie$State):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.util.BytesTrie.State.-get3(android.icu.util.BytesTrie$State):int\");\n }", "title": "" }, { "docid": "bc26537ebae06bf7027d7709c86e7c3e", "score": "0.5623671", "text": "public void test109() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.4 -source 1.4 -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.4 : 48.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "4762f9a04e9d3feea077d52fb3ca71cb", "score": "0.5614647", "text": "static /* synthetic */ int m40-get2(android.icu.util.BytesTrie.State r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.icu.util.BytesTrie.State.-get2(android.icu.util.BytesTrie$State):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.util.BytesTrie.State.-get2(android.icu.util.BytesTrie$State):int\");\n }", "title": "" }, { "docid": "26ea5217c17af666b643ea9d7a1ac196", "score": "0.5607377", "text": "static /* synthetic */ int m39-get1(android.icu.util.BytesTrie.State r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.icu.util.BytesTrie.State.-get1(android.icu.util.BytesTrie$State):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.util.BytesTrie.State.-get1(android.icu.util.BytesTrie$State):int\");\n }", "title": "" }, { "docid": "7c53fe47ebb95edbadee4074e9dbc4be", "score": "0.56028414", "text": "static /* synthetic */ byte[] m38-get0(android.icu.util.BytesTrie.State r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.util.BytesTrie.State.-get0(android.icu.util.BytesTrie$State):byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.util.BytesTrie.State.-get0(android.icu.util.BytesTrie$State):byte[]\");\n }", "title": "" }, { "docid": "56b5e12bee40b81b44a126aec520f81e", "score": "0.55974823", "text": "public boolean mustCompile() {\n return false;\n }", "title": "" }, { "docid": "ed16e4b940e63562851015b92e14ba9e", "score": "0.55941933", "text": "static /* synthetic */ int m34-get0(android.icu.util.BytesTrie.Entry r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.icu.util.BytesTrie.Entry.-get0(android.icu.util.BytesTrie$Entry):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.util.BytesTrie.Entry.-get0(android.icu.util.BytesTrie$Entry):int\");\n }", "title": "" }, { "docid": "b63d5e41af712f2fb32662f524e68817", "score": "0.5577692", "text": "public void run() {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Can't find block by offset: 0x0067 in list [B:6:0x003f]\n\tat jadx.core.utils.BlockUtils.getBlockByOffset(BlockUtils.java:43)\n\tat jadx.core.dex.instructions.IfNode.initBlocks(IfNode.java:60)\n\tat jadx.core.dex.visitors.blocksmaker.BlockFinish.initBlocksInIfNodes(BlockFinish.java:48)\n\tat jadx.core.dex.visitors.blocksmaker.BlockFinish.visit(BlockFinish.java:33)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n*/\n /*\n r5 = this;\n r0 = r5.b;\n r0 = r0.u;\n r1 = r0.obtainMessage();\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r2 = qsbk.app.utils.HttpClient.getIntentce();\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r3 = qsbk.app.Constants.THIRDPARTY_LOGIN;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r4 = r5.a;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r2 = r2.post(r3, r4);\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r0.<init>(r2);\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n qsbk.app.guide.dialog.LoginGuideDialog.a = r0;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r0 = qsbk.app.guide.dialog.LoginGuideDialog.a;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r2 = \"err\";\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r0 = r0.get(r2);\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r0 = (java.lang.Integer) r0;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r2 = r0.intValue();\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r1.what = r2;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r0 = r0.intValue();\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n if (r0 == 0) goto L_0x003d;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n L_0x0033:\n r0 = qsbk.app.guide.dialog.LoginGuideDialog.a;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r2 = \"err_msg\";\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r0 = r0.getString(r2);\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r1.obj = r0;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n L_0x003d:\n if (r1 == 0) goto L_0x0067;\n L_0x003f:\n r0 = r1.what;\n if (r0 != 0) goto L_0x0064;\n L_0x0043:\n r0 = \"luolong\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = qsbk.app.guide.dialog.LoginGuideDialog.c;\n r2 = r2.append(r3);\n r3 = \" login success\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n qsbk.app.utils.DebugUtil.debug(r0, r2);\n r0 = r5.b;\n r0.dismiss();\n L_0x0064:\n r1.sendToTarget();\n L_0x0067:\n return;\n L_0x0068:\n r0 = move-exception;\n r2 = 1;\n r1.what = r2;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r2 = \"出现异常,请稍后重试\";\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r1.obj = r2;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r0.printStackTrace();\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n if (r1 == 0) goto L_0x0067;\n L_0x0075:\n r0 = r1.what;\n if (r0 != 0) goto L_0x009a;\n L_0x0079:\n r0 = \"luolong\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = qsbk.app.guide.dialog.LoginGuideDialog.c;\n r2 = r2.append(r3);\n r3 = \" login success\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n qsbk.app.utils.DebugUtil.debug(r0, r2);\n r0 = r5.b;\n r0.dismiss();\n L_0x009a:\n r1.sendToTarget();\n goto L_0x0067;\n L_0x009e:\n r0 = move-exception;\n r2 = 2;\n r1.what = r2;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r2 = r0.getMessage();\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r1.obj = r2;\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n r0.printStackTrace();\t Catch:{ JSONException -> 0x0068, QiushibaikeException -> 0x009e, all -> 0x00d6 }\n if (r1 == 0) goto L_0x0067;\n L_0x00ad:\n r0 = r1.what;\n if (r0 != 0) goto L_0x00d2;\n L_0x00b1:\n r0 = \"luolong\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = qsbk.app.guide.dialog.LoginGuideDialog.c;\n r2 = r2.append(r3);\n r3 = \" login success\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n qsbk.app.utils.DebugUtil.debug(r0, r2);\n r0 = r5.b;\n r0.dismiss();\n L_0x00d2:\n r1.sendToTarget();\n goto L_0x0067;\n L_0x00d6:\n r0 = move-exception;\n if (r1 == 0) goto L_0x0101;\n L_0x00d9:\n r2 = r1.what;\n if (r2 != 0) goto L_0x00fe;\n L_0x00dd:\n r2 = \"luolong\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = qsbk.app.guide.dialog.LoginGuideDialog.c;\n r3 = r3.append(r4);\n r4 = \" login success\";\n r3 = r3.append(r4);\n r3 = r3.toString();\n qsbk.app.utils.DebugUtil.debug(r2, r3);\n r2 = r5.b;\n r2.dismiss();\n L_0x00fe:\n r1.sendToTarget();\n L_0x0101:\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: qsbk.app.guide.dialog.g.run():void\");\n }", "title": "" }, { "docid": "ac5e89302f598cc59db1f72914252176", "score": "0.5565662", "text": "public void test111() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.5 -source 1.4 -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.4 : 48.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "53f7ce124d8f112d75d76c243e869d46", "score": "0.55496836", "text": "public void test112() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.5 -source 1.5 -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.5 : 49.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "b994823788067458b25c008e522efc33", "score": "0.55461085", "text": "public void test118() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.7 -source 1.4 -proc:none -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.4 : 48.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "472b50cd0c9a236030f27145d1947ac0", "score": "0.5543702", "text": "public static java.lang.String m9955a(java.lang.String r9) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = 0;\n r1 = 0;\n L_0x0002:\n r2 = 2;\n r3 = 0;\n if (r1 >= r2) goto L_0x002e;\n L_0x0006:\n r2 = \"MD5\";\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r2 = java.security.MessageDigest.getInstance(r2);\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r4 = r9.getBytes();\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r2.update(r4);\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r4 = java.util.Locale.US;\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r5 = \"%032X\";\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r6 = 1;\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r7 = new java.lang.Object[r6];\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r8 = new java.math.BigInteger;\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r2 = r2.digest();\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r8.<init>(r6, r2);\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r7[r0] = r8;\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n r2 = java.lang.String.format(r4, r5, r7);\t Catch:{ NoSuchAlgorithmException -> 0x002b, ArithmeticException -> 0x002a }\n return r2;\n L_0x002a:\n return r3;\n L_0x002b:\n r1 = r1 + 1;\n goto L_0x0002;\n L_0x002e:\n return r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzaoa.a(java.lang.String):java.lang.String\");\n }", "title": "" }, { "docid": "53da55f984c4facf59b37a168cf05691", "score": "0.55377156", "text": "public void test408038c() {\n this.runConformTest(new String[] { \"externalizable/warning/X.java\", \"package externalizable.warning;\\n\" + \"import java.io.Externalizable;\\n\" + \"import java.io.IOException;\\n\" + \"import java.io.ObjectInput;\\n\" + \"import java.io.ObjectOutput;\\n\" + \"\\n\" + \"public class X {\\n\" + \"\tprivate static class Y implements Externalizable {\\n\" + \"\t\tstatic final int i = 10;\\n\" + \"\t\tpublic Y() {}\\n\" + \"\t\tpublic Y(int x) {System.out.println(x);}\\n\" + \"\\n\" + \"\t\t@Override\\n\" + \"\t\tpublic void writeExternal(ObjectOutput out) throws IOException {\\n\" + \"\t\t}\\n\" + \"\\n\" + \"\t\t@Override\\n\" + \"\t\tpublic void readExternal(ObjectInput in) throws IOException,\\n\" + \"\t\tClassNotFoundException {\\n\" + \"\t\t}\\n\" + \"\t}\\n\" + \"\\n\" + \"\tpublic void zoo() {\\n\" + \"\t\tSystem.out.println(Y.i);\\n\" + \"\t\tY y = new Y(5);\\n\" + \"\t\tSystem.out.println(y);\\n\" + \"\t}\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"externalizable\" + File.separator + \"warning\" + File.separator + \"X.java\\\"\" + \" -1.6 -d none\", \"\", \"\", true);\n }", "title": "" }, { "docid": "ce4d1a1b56c52465edfd6972fe83f2b4", "score": "0.5531038", "text": "AnonymousClass1(android.permissionpresenterservice.RuntimePermissionPresenterService r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.permissionpresenterservice.RuntimePermissionPresenterService.1.<init>(android.permissionpresenterservice.RuntimePermissionPresenterService):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.permissionpresenterservice.RuntimePermissionPresenterService.1.<init>(android.permissionpresenterservice.RuntimePermissionPresenterService):void\");\n }", "title": "" }, { "docid": "b06a9fdb44283fc99b0474aff02441db", "score": "0.5523153", "text": "static /* synthetic */ void m35-wrap0(android.icu.util.BytesTrie.Entry r1, byte[] r2, int r3, int r4) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.icu.util.BytesTrie.Entry.-wrap0(android.icu.util.BytesTrie$Entry, byte[], int, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.util.BytesTrie.Entry.-wrap0(android.icu.util.BytesTrie$Entry, byte[], int, int):void\");\n }", "title": "" }, { "docid": "b0134f65e4685c2ac179b2da916decaa", "score": "0.5520877", "text": "public void run() {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Can't find block by offset: 0x004b in list [B:6:0x0046]\n\tat jadx.core.utils.BlockUtils.getBlockByOffset(BlockUtils.java:43)\n\tat jadx.core.dex.instructions.IfNode.initBlocks(IfNode.java:60)\n\tat jadx.core.dex.visitors.blocksmaker.BlockFinish.initBlocksInIfNodes(BlockFinish.java:48)\n\tat jadx.core.dex.visitors.blocksmaker.BlockFinish.visit(BlockFinish.java:33)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n*/\n /*\n r5 = this;\n r0 = r5.c;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r2 = qsbk.app.utils.HttpClient.getIntentce();\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r3 = qsbk.app.Constants.UPDATE_USERINFO;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r4 = r5.a;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r2 = r2.post(r3, r4);\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1.<init>(r2);\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0.s = r1;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0 = r5.c;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0 = r0.s;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1 = \"err\";\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0 = r0.get(r1);\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0 = (java.lang.Integer) r0;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1 = r5.b;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r2 = r0.intValue();\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1.what = r2;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0 = r0.intValue();\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n if (r0 == 0) goto L_0x0042;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n L_0x0032:\n r0 = r5.b;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1 = r5.c;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1 = r1.s;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r2 = \"err_msg\";\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1 = r1.getString(r2);\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0.obj = r1;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n L_0x0042:\n r0 = r5.b;\n if (r0 == 0) goto L_0x004b;\n L_0x0046:\n r0 = r5.b;\n r0.sendToTarget();\n L_0x004b:\n return;\n L_0x004c:\n r0 = move-exception;\n r1 = r5.b;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r2 = 1;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1.what = r2;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1 = r5.b;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r2 = \"绑定失败,请重试!\";\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1.obj = r2;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0.printStackTrace();\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0 = r5.b;\n if (r0 == 0) goto L_0x004b;\n L_0x005f:\n r0 = r5.b;\n r0.sendToTarget();\n goto L_0x004b;\n L_0x0065:\n r0 = move-exception;\n r1 = r5.b;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r2 = 2;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1.what = r2;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1 = r5.b;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r2 = r0.getMessage();\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r1.obj = r2;\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0.printStackTrace();\t Catch:{ JSONException -> 0x004c, QiushibaikeException -> 0x0065, all -> 0x0080 }\n r0 = r5.b;\n if (r0 == 0) goto L_0x004b;\n L_0x007a:\n r0 = r5.b;\n r0.sendToTarget();\n goto L_0x004b;\n L_0x0080:\n r0 = move-exception;\n r1 = r5.b;\n if (r1 == 0) goto L_0x008a;\n L_0x0085:\n r1 = r5.b;\n r1.sendToTarget();\n L_0x008a:\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: qsbk.app.activity.security.m.run():void\");\n }", "title": "" }, { "docid": "e289773d5ace760d6ac18e971d7908c1", "score": "0.5517533", "text": "final void at() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: aload_0 \n // 1: getfield android/support/v4/content/a.eF:getfield !!! ERROR\n // 4: ifnonnull 97\n // 7: aload_0 \n // 8: getfield android/support/v4/content/a.eE:getfield !!! ERROR\n // 11: ifnull 97\n // 14: aload_0 \n // 15: getfield android/support/v4/content/a.eE:getfield !!! ERROR\n // 18: getfield getfield !!! ERROR\n // 21: ifeq 43\n // 24: aload_0 \n // 25: getfield android/support/v4/content/a.eE:getfield !!! ERROR\n // 28: iconst_0 \n // 29: putfield putfield !!! ERROR\n // 32: aload_0 \n // 33: getfield android/support/v4/content/a.mHandler:Landroid/os/Handler;\n // 36: aload_0 \n // 37: getfield android/support/v4/content/a.eE:getfield !!! ERROR\n // 40: invokevirtual android/os/Handler.removeCallbacks:(Ljava/lang/Runnable;)V\n // 43: aload_0 \n // 44: getfield android/support/v4/content/a.eG:J\n // 47: lconst_0 \n // 48: lcmp \n // 49: ifle 98\n // 52: invokestatic android/os/SystemClock.uptimeMillis:()J\n // 55: aload_0 \n // 56: getfield android/support/v4/content/a.eH:J\n // 59: aload_0 \n // 60: getfield android/support/v4/content/a.eG:J\n // 63: ladd \n // 64: lcmp \n // 65: ifge 98\n // 68: aload_0 \n // 69: getfield android/support/v4/content/a.eE:getfield !!! ERROR\n // 72: iconst_1 \n // 73: putfield putfield !!! ERROR\n // 76: aload_0 \n // 77: getfield android/support/v4/content/a.mHandler:Landroid/os/Handler;\n // 80: aload_0 \n // 81: getfield android/support/v4/content/a.eE:getfield !!! ERROR\n // 84: aload_0 \n // 85: getfield android/support/v4/content/a.eH:J\n // 88: aload_0 \n // 89: getfield android/support/v4/content/a.eG:J\n // 92: ladd \n // 93: invokevirtual android/os/Handler.postAtTime:(Ljava/lang/Runnable;J)Z\n // 96: pop \n // 97: return \n // 98: aload_0 \n // 99: getfield android/support/v4/content/a.eE:getfield !!! ERROR\n // 102: getstatic android/support/v4/content/ModernAsyncTask.THREAD_POOL_EXECUTOR:Ljava/util/concurrent/Executor;\n // 105: invokevirtual invokevirtual !!! ERROR\n // 108: pop \n // 109: return \n // \n // The error that occurred was:\n // \n // java.lang.IllegalArgumentException: Argument 'typeArguments' must not have any null elements.\n // at com.strobel.core.VerifyArgument.noNullElementsAndNotEmpty(VerifyArgument.java:145)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.makeGenericType(CoreMetadataFactory.java:566)\n // at com.strobel.assembler.metadata.CoreMetadataFactory.makeParameterizedType(CoreMetadataFactory.java:154)\n // at com.strobel.assembler.metadata.signatures.Reifier.visitClassTypeSignature(Reifier.java:125)\n // at com.strobel.assembler.metadata.signatures.ClassTypeSignature.accept(ClassTypeSignature.java:46)\n // at com.strobel.assembler.metadata.MetadataParser.parseClassSignature(MetadataParser.java:394)\n // at com.strobel.assembler.metadata.ClassFileReader.populateBaseTypes(ClassFileReader.java:665)\n // at com.strobel.assembler.metadata.ClassFileReader.readClass(ClassFileReader.java:438)\n // at com.strobel.assembler.metadata.ClassFileReader.readClass(ClassFileReader.java:366)\n // at com.strobel.assembler.metadata.MetadataSystem.resolveType(MetadataSystem.java:124)\n // at com.strobel.decompiler.NoRetryMetadataSystem.resolveType(DecompilerDriver.java:447)\n // at com.strobel.assembler.metadata.MetadataSystem.resolveCore(MetadataSystem.java:76)\n // at com.strobel.assembler.metadata.MetadataResolver.resolve(MetadataResolver.java:104)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.resolve(CoreMetadataFactory.java:576)\n // at com.strobel.assembler.metadata.MetadataResolver.resolve(MetadataResolver.java:111)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.resolve(CoreMetadataFactory.java:581)\n // at com.strobel.assembler.metadata.FieldReference.resolve(FieldReference.java:61)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1036)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferBinaryExpression(TypeAnalysis.java:2104)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1531)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1551)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:304)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:225)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:110)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "title": "" }, { "docid": "4505d4930797ab50859d744320f9ad75", "score": "0.55143774", "text": "static /* synthetic */ void m161-java_util_stream_LongPipeline-mthref-7(java.util.LongSummaryStatistics r1, java.util.LongSummaryStatistics r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.util.stream.LongPipeline.-java_util_stream_LongPipeline-mthref-7(java.util.LongSummaryStatistics, java.util.LongSummaryStatistics):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.LongPipeline.-java_util_stream_LongPipeline-mthref-7(java.util.LongSummaryStatistics, java.util.LongSummaryStatistics):void\");\n }", "title": "" }, { "docid": "bbb6dbf16eaf33d30d385fbbf23e630c", "score": "0.55108017", "text": "public void test115() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.6 -source 1.5 -proc:none -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.6 : 50.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "f8e12a2ffe4b47e206efafc917aafd45", "score": "0.5500346", "text": "@Override\n protected final void onForceLoad() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: aload_0 \n // 1: invokespecial android/support/v4/content/j.onForceLoad:()V\n // 4: aload_0 \n // 5: invokevirtual android/support/v4/content/a.cancelLoad:()Z\n // 8: pop \n // 9: aload_0 \n // 10: new new !!! ERROR\n // 13: dup \n // 14: aload_0 \n // 15: invokespecial invokespecial !!! ERROR\n // 18: putfield android/support/v4/content/a.eE:putfield !!! ERROR\n // 21: aload_0 \n // 22: invokevirtual android/support/v4/content/a.at:()V\n // 25: return \n // \n // The error that occurred was:\n // \n // java.lang.IllegalArgumentException: Argument 'typeArguments' must not have any null elements.\n // at com.strobel.core.VerifyArgument.noNullElementsAndNotEmpty(VerifyArgument.java:145)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.makeGenericType(CoreMetadataFactory.java:566)\n // at com.strobel.assembler.metadata.CoreMetadataFactory.makeParameterizedType(CoreMetadataFactory.java:154)\n // at com.strobel.assembler.metadata.signatures.Reifier.visitClassTypeSignature(Reifier.java:125)\n // at com.strobel.assembler.metadata.signatures.ClassTypeSignature.accept(ClassTypeSignature.java:46)\n // at com.strobel.assembler.metadata.MetadataParser.parseClassSignature(MetadataParser.java:394)\n // at com.strobel.assembler.metadata.ClassFileReader.populateBaseTypes(ClassFileReader.java:665)\n // at com.strobel.assembler.metadata.ClassFileReader.readClass(ClassFileReader.java:438)\n // at com.strobel.assembler.metadata.ClassFileReader.readClass(ClassFileReader.java:366)\n // at com.strobel.assembler.metadata.MetadataSystem.resolveType(MetadataSystem.java:124)\n // at com.strobel.decompiler.NoRetryMetadataSystem.resolveType(DecompilerDriver.java:447)\n // at com.strobel.assembler.metadata.MetadataSystem.resolveCore(MetadataSystem.java:76)\n // at com.strobel.assembler.metadata.MetadataResolver.resolve(MetadataResolver.java:104)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.resolve(CoreMetadataFactory.java:576)\n // at com.strobel.assembler.metadata.MetadataResolver.resolve(MetadataResolver.java:128)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.resolve(CoreMetadataFactory.java:586)\n // at com.strobel.assembler.metadata.MethodReference.resolve(MethodReference.java:172)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2420)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:304)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:225)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:110)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "title": "" }, { "docid": "afa9524db5cdc2067996e7c7367b6901", "score": "0.5489735", "text": "public Stub() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.nfcgsma_extras.INfcAdapterGsmaExtras.Stub.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.nfcgsma_extras.INfcAdapterGsmaExtras.Stub.<init>():void\");\n }", "title": "" }, { "docid": "06f6cbcb5fe3bdd2ad8e1438ff82c7f2", "score": "0.54878867", "text": "public void writeText0(int param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "ace30fdcca1b4ce2e3fadb19de4f8168", "score": "0.547948", "text": "protected void decompileFunctor(byte[] code)\n {\n // Prepare the code for parsing by making a single forward pass through it to pick out all the instructions.\n // The starting offset is set to the last instruction.\n Queue<Integer> instructions = getInstructionQueue();\n instructionScan(code, instructions);\n\n // Used to fill in known register values as they are encountered.\n Map<Byte, Term> registers = new HashMap<Byte, Term>();\n\n // Create a map of variables, for all variables in the context of the query.\n Map<Integer, Variable> variableContext = new HashMap<Integer, Variable>();\n\n // Parse this as the outermost functor.\n decompileOuterFunctor(code, instructions, registers, variableContext, this);\n\n // Keep pulling out the remaining functors, creating them as new instances.\n while (!instructions.isEmpty())\n {\n decompileInstructions(code, instructions, registers, variableContext, null);\n }\n\n // Now recursively fill in the arguments, by looking up the registers.\n completeArguments(registers, this);\n\n decompiled = true;\n }", "title": "" }, { "docid": "7038c43382b335333b5ed34ba01294f9", "score": "0.54790866", "text": "private VideoEncoder(android.media.MediaRecorder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.media.MediaRecorder.VideoEncoder.<init>(android.media.MediaRecorder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.media.MediaRecorder.VideoEncoder.<init>(android.media.MediaRecorder):void\");\n }", "title": "" }, { "docid": "21ae21202896bd29ad720b136b3a244c", "score": "0.5468504", "text": "public /* bridge */ /* synthetic */ java.lang.Object run() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: sun.net.InetAddressCachePolicy.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.net.InetAddressCachePolicy.1.run():java.lang.Object\");\n }", "title": "" }, { "docid": "7748532f11b2e36abbec92d1eaaf5c16", "score": "0.54648805", "text": "public void decb() {\n _cpu._m6809.b = (char) (_cpu._m6809.b - 1 & 0xFF);\n _cpu.CLR_NZV();\n _cpu.SET_FLAGS8D(_cpu._m6809.b);\n if (_cpu.m6809log != null) {\n fprintf(_cpu.m6809log, \"M6809#%d decb :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), (int) _cpu._m6809.pc, (int) _cpu._m6809.ppc, (int) _cpu._m6809.a, (int) _cpu._m6809.b, getDreg(), (int) _cpu._m6809.dp, (int) _cpu._m6809.u, (int) _cpu._m6809.s, (int) _cpu._m6809.x, (int) _cpu._m6809.y, (int) _cpu._m6809.cc, _cpu.ea);\n }\n }", "title": "" }, { "docid": "c9b1d2fe5f2a779a145ca597a8723dc5", "score": "0.54645735", "text": "protected String decompileIfDebug(DecacCompiler compiler) {\n if (compiler.getCompilerOptions().getDebug() > 1) {\n return decompile();\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "d765a48843d0607cef3cd7fbfcb293ca", "score": "0.5460271", "text": "public /* bridge */ /* synthetic */ java.lang.Object run() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: sun.net.InetAddressCachePolicy.2.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.net.InetAddressCachePolicy.2.run():java.lang.Object\");\n }", "title": "" }, { "docid": "b15f143364c09a26a48efd1d16125c0a", "score": "0.54565877", "text": "public final void mo68436j() {\n }", "title": "" }, { "docid": "c4141857af013bcafa525f5eb0738ff2", "score": "0.5451962", "text": "static /* synthetic */ void m36-wrap1(android.icu.util.BytesTrie.Entry r1, byte r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.icu.util.BytesTrie.Entry.-wrap1(android.icu.util.BytesTrie$Entry, byte):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.util.BytesTrie.Entry.-wrap1(android.icu.util.BytesTrie$Entry, byte):void\");\n }", "title": "" }, { "docid": "a45651f8a7ab224c4e69486333bc3757", "score": "0.5424972", "text": "public /* synthetic */ -java_util_stream_Stream_boxed__LambdaImpl0() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.util.stream.LongPipeline.-java_util_stream_Stream_boxed__LambdaImpl0.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.LongPipeline.-java_util_stream_Stream_boxed__LambdaImpl0.<init>():void\");\n }", "title": "" }, { "docid": "e63981d02b136bf77d135ffeb8a31dcd", "score": "0.5423704", "text": "public void test120() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.7 -source 1.6 -proc:none -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.6 : 50.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "5f7aedcb65837fe410c125651075633c", "score": "0.54214704", "text": "void unparse() {\n int i, j;\n Code_attribute ca;\n byte bc[];\n method_info mi;\n exception_table_entry e;\n\n for (i = 0; i < methods_count; i++) {\n mi = methods[i];\n // locate code attribute\n ca = mi.locate_code_attribute();\n if (ca == null) {\n continue;\n }\n bc = unparseMethod(mi);\n if (bc == null) {\n logger.debug(\"Recompile of \" + mi.toName(constant_pool) + \" failed!\");\n } else {\n ca.code_length = bc.length;\n ca.code = bc;\n // also recompile exception table\n for (j = 0; j < ca.exception_table_length; j++) {\n e = ca.exception_table[j];\n e.start_pc = (e.start_inst.label);\n if (e.end_inst != null) {\n e.end_pc = (e.end_inst.label);\n } else {\n e.end_pc = (int) (ca.code_length);\n }\n e.handler_pc = (e.handler_inst.label);\n }\n }\n }\n }", "title": "" }, { "docid": "7012a9c89ce10e5100034c70bdc41a50", "score": "0.54201657", "text": "void m165-java_util_stream_LongPipeline$6$1_lambda$3(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.util.stream.LongPipeline.6.1.-java_util_stream_LongPipeline$6$1_lambda$3(long):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.LongPipeline.6.1.-java_util_stream_LongPipeline$6$1_lambda$3(long):void\");\n }", "title": "" }, { "docid": "fa3b866e23311c3a8a6fa261c6f08a35", "score": "0.54146326", "text": "public void m1663a(String str, int i, Bundle bundle, C0467e c0467e) {\n if (this.f1530a.m1684a(str, i)) {\n final C0467e c0467e2 = c0467e;\n final String str2 = str;\n final Bundle bundle2 = bundle;\n final int i2 = i;\n this.f1530a.f1536d.m1674a(new Runnable(this) {\n /* renamed from: e */\n final /* synthetic */ C0466d f1499e;\n\n public void run() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r3;\n r0 = r0.mo357a();\n r1 = r6.f1499e;\n r1 = r1.f1530a;\n r1 = r1.f1534b;\n r1.remove(r0);\n r1 = new android.support.v4.media.MediaBrowserServiceCompat$b;\n r2 = r6.f1499e;\n r2 = r2.f1530a;\n r1.<init>(r2);\n r2 = r4;\n r1.f1484a = r2;\n r2 = r5;\n r1.f1485b = r2;\n r2 = r3;\n r1.f1486c = r2;\n r2 = r6.f1499e;\n r2 = r2.f1530a;\n r3 = r4;\n r4 = r6;\n r5 = r5;\n r2 = r2.m1675a(r3, r4, r5);\n r1.f1487d = r2;\n r2 = r1.f1487d;\n if (r2 != 0) goto L_0x007f;\n L_0x0038:\n r0 = \"MBServiceCompat\";\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = \"No root for client \";\n r1.append(r2);\n r2 = r4;\n r1.append(r2);\n r2 = \" from service \";\n r1.append(r2);\n r2 = r6.getClass();\n r2 = r2.getName();\n r1.append(r2);\n r1 = r1.toString();\n android.util.Log.i(r0, r1);\n r0 = r3;\t Catch:{ RemoteException -> 0x0066 }\n r0.mo360b();\t Catch:{ RemoteException -> 0x0066 }\n goto L_0x00cd;\n L_0x0066:\n r0 = \"MBServiceCompat\";\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = \"Calling onConnectFailed() failed. Ignoring. pkg=\";\n r1.append(r2);\n r2 = r4;\n r1.append(r2);\n r1 = r1.toString();\n android.util.Log.w(r0, r1);\n goto L_0x00cd;\n L_0x007f:\n r2 = r6.f1499e;\t Catch:{ RemoteException -> 0x00ac }\n r2 = r2.f1530a;\t Catch:{ RemoteException -> 0x00ac }\n r2 = r2.f1534b;\t Catch:{ RemoteException -> 0x00ac }\n r2.put(r0, r1);\t Catch:{ RemoteException -> 0x00ac }\n r2 = 0;\t Catch:{ RemoteException -> 0x00ac }\n r0.linkToDeath(r1, r2);\t Catch:{ RemoteException -> 0x00ac }\n r2 = r6.f1499e;\t Catch:{ RemoteException -> 0x00ac }\n r2 = r2.f1530a;\t Catch:{ RemoteException -> 0x00ac }\n r2 = r2.f1537e;\t Catch:{ RemoteException -> 0x00ac }\n if (r2 == 0) goto L_0x00cd;\t Catch:{ RemoteException -> 0x00ac }\n L_0x0094:\n r2 = r3;\t Catch:{ RemoteException -> 0x00ac }\n r3 = r1.f1487d;\t Catch:{ RemoteException -> 0x00ac }\n r3 = r3.m1652a();\t Catch:{ RemoteException -> 0x00ac }\n r4 = r6.f1499e;\t Catch:{ RemoteException -> 0x00ac }\n r4 = r4.f1530a;\t Catch:{ RemoteException -> 0x00ac }\n r4 = r4.f1537e;\t Catch:{ RemoteException -> 0x00ac }\n r1 = r1.f1487d;\t Catch:{ RemoteException -> 0x00ac }\n r1 = r1.m1653b();\t Catch:{ RemoteException -> 0x00ac }\n r2.mo358a(r3, r4, r1);\t Catch:{ RemoteException -> 0x00ac }\n goto L_0x00cd;\n L_0x00ac:\n r1 = \"MBServiceCompat\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Calling onConnect() failed. Dropping client. pkg=\";\n r2.append(r3);\n r3 = r4;\n r2.append(r3);\n r2 = r2.toString();\n android.util.Log.w(r1, r2);\n r1 = r6.f1499e;\n r1 = r1.f1530a;\n r1 = r1.f1534b;\n r1.remove(r0);\n L_0x00cd:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v4.media.MediaBrowserServiceCompat.d.1.run():void\");\n }\n });\n return;\n }\n c0467e = new StringBuilder();\n c0467e.append(\"Package/uid mismatch: uid=\");\n c0467e.append(i);\n c0467e.append(\" package=\");\n c0467e.append(str);\n throw new IllegalArgumentException(c0467e.toString());\n }", "title": "" }, { "docid": "84d4e7b0b32a6e2de1e7b588a6515ceb", "score": "0.54124343", "text": "@Override\n public void forEachRemaining(final Consumer<?> p0) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "title": "" }, { "docid": "84d4e7b0b32a6e2de1e7b588a6515ceb", "score": "0.54124343", "text": "@Override\n public void forEachRemaining(final Consumer<?> p0) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "title": "" }, { "docid": "84d4e7b0b32a6e2de1e7b588a6515ceb", "score": "0.54124343", "text": "@Override\n public void forEachRemaining(final Consumer<?> p0) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "title": "" }, { "docid": "09ad1bf4c315cce202df25c000a790f2", "score": "0.54123145", "text": "public /* synthetic */ -long_sum__LambdaImpl0() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.util.stream.LongPipeline.-long_sum__LambdaImpl0.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.LongPipeline.-long_sum__LambdaImpl0.<init>():void\");\n }", "title": "" }, { "docid": "71e63898589a0988060e0da9c83e9707", "score": "0.54108703", "text": "Proxy(android.os.IBinder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.ITelephonyEx.Stub.Proxy.<init>(android.os.IBinder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.ITelephonyEx.Stub.Proxy.<init>(android.os.IBinder):void\");\n }", "title": "" }, { "docid": "af0b8cd76ed6d8ef35bbe393ae954d19", "score": "0.54039645", "text": "public /* synthetic */ -java_util_LongSummaryStatistics_summaryStatistics__LambdaImpl0() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.util.stream.LongPipeline.-java_util_LongSummaryStatistics_summaryStatistics__LambdaImpl0.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.LongPipeline.-java_util_LongSummaryStatistics_summaryStatistics__LambdaImpl0.<init>():void\");\n }", "title": "" }, { "docid": "183988ef950b31e4e0ee18712a8cc925", "score": "0.53943443", "text": "public void test107() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.3 -source 1.3 -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.1 : 45.3, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "592df65423e8ccc096c2ebf651043e56", "score": "0.5383194", "text": "static /* synthetic */ void m37-wrap2(android.icu.util.BytesTrie.Entry r1, int r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.icu.util.BytesTrie.Entry.-wrap2(android.icu.util.BytesTrie$Entry, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.util.BytesTrie.Entry.-wrap2(android.icu.util.BytesTrie$Entry, int):void\");\n }", "title": "" }, { "docid": "ad28aaffa7af1243c18c96be32b1e8bd", "score": "0.53747636", "text": "public void test121() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.7 -source 1.7 -proc:none -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.7 : 51.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "544aea9e385a852757ad13d5ddaad7ad", "score": "0.5369518", "text": "AnonymousClass1() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.hardware.location.GeofenceHardwareRequestParcelable.1.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.location.GeofenceHardwareRequestParcelable.1.<init>():void\");\n }", "title": "" }, { "docid": "dd9f3aa9bccbd783efb49df09818b0e8", "score": "0.53683746", "text": "public void test110() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.5 -source 1.3 -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.4 : 48.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "541398792454b574e70afd5f601ef3b9", "score": "0.536741", "text": "static /* synthetic */ void m160-java_util_stream_LongPipeline-mthref-6(java.util.LongSummaryStatistics r1, long r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.util.stream.LongPipeline.-java_util_stream_LongPipeline-mthref-6(java.util.LongSummaryStatistics, long):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.LongPipeline.-java_util_stream_LongPipeline-mthref-6(java.util.LongSummaryStatistics, long):void\");\n }", "title": "" }, { "docid": "dd4c5afc27bb58794133e1e89340be0a", "score": "0.5358898", "text": "AnonymousClass1() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.media.midi.MidiDeviceInfo.1.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.media.midi.MidiDeviceInfo.1.<init>():void\");\n }", "title": "" }, { "docid": "3a1ab04895e4c0bc78a00adb9115b668", "score": "0.5356567", "text": "public native void m22046OooO0O0();", "title": "" }, { "docid": "fd9ded310845be277497305b56853db6", "score": "0.53429025", "text": "private SimulatedCommandsVerifier() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.internal.telephony.test.SimulatedCommandsVerifier.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.internal.telephony.test.SimulatedCommandsVerifier.<init>():void\");\n }", "title": "" }, { "docid": "24d041fd90ef77ba0231f0604667924e", "score": "0.5340654", "text": "AnonymousClass6(android.widget.RemoteViewsAdapter r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.widget.RemoteViewsAdapter.6.<init>(android.widget.RemoteViewsAdapter):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.RemoteViewsAdapter.6.<init>(android.widget.RemoteViewsAdapter):void\");\n }", "title": "" }, { "docid": "e1f7d6d9c59a00c592e6a1c42c91f276", "score": "0.5340106", "text": "public void test119() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.7 -source 1.5 -proc:none -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.6 : 50.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "a5341f1be1adceebd9193e1c21765286", "score": "0.5338656", "text": "public void test117() throws Exception {\n this.runConformTest(new String[] { \"X.java\", \"/** */\\n\" + \"public class X {\\n\" + \"}\" }, \"\\\"\" + OUTPUT_DIR + File.separator + \"X.java\\\"\" + \" -1.7 -source 1.3 -proc:none -d \\\"\" + OUTPUT_DIR + \"\\\"\", \"\", \"\", true);\n String expectedOutput = \"// Compiled from X.java (version 1.4 : 48.0, super bit)\";\n checkDisassembledClassFile(OUTPUT_DIR + File.separator + \"X.class\", \"X\", expectedOutput);\n }", "title": "" }, { "docid": "9830884cb11e3796cd9805a6971117a7", "score": "0.5334362", "text": "final void a(final b p0, final D p1) {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: aload_0 \n // 1: aload_2 \n // 2: invokevirtual android/support/v4/content/a.onCanceled:(Ljava/lang/Object;)V\n // 5: aload_0 \n // 6: getfield android/support/v4/content/a.eF:getfield !!! ERROR\n // 9: aload_1 \n // 10: if_acmpne 41\n // 13: aload_0 \n // 14: getfield android/support/v4/content/j.eX:Z\n // 17: ifeq 25\n // 20: aload_0 \n // 21: iconst_1 \n // 22: putfield android/support/v4/content/j.eW:Z\n // 25: aload_0 \n // 26: invokestatic android/os/SystemClock.uptimeMillis:()J\n // 29: putfield android/support/v4/content/a.eH:J\n // 32: aload_0 \n // 33: aconst_null \n // 34: putfield android/support/v4/content/a.eF:putfield !!! ERROR\n // 37: aload_0 \n // 38: invokevirtual android/support/v4/content/a.at:()V\n // 41: return \n // Signature:\n // (Landroid/support/v4/content/a$android/support/v4/content/b;TD;)V [from metadata: (Landroid/support/v4/content/a<TD;>.android/support/v4/content/b;TD;)V]\n // \n // \n // The error that occurred was:\n // \n // java.lang.IllegalArgumentException: Argument 'typeArguments' must not have any null elements.\n // at com.strobel.core.VerifyArgument.noNullElementsAndNotEmpty(VerifyArgument.java:145)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.makeGenericType(CoreMetadataFactory.java:566)\n // at com.strobel.assembler.metadata.CoreMetadataFactory.makeParameterizedType(CoreMetadataFactory.java:154)\n // at com.strobel.assembler.metadata.signatures.Reifier.visitClassTypeSignature(Reifier.java:125)\n // at com.strobel.assembler.metadata.signatures.ClassTypeSignature.accept(ClassTypeSignature.java:46)\n // at com.strobel.assembler.metadata.MetadataParser.parseClassSignature(MetadataParser.java:394)\n // at com.strobel.assembler.metadata.ClassFileReader.populateBaseTypes(ClassFileReader.java:665)\n // at com.strobel.assembler.metadata.ClassFileReader.readClass(ClassFileReader.java:438)\n // at com.strobel.assembler.metadata.ClassFileReader.readClass(ClassFileReader.java:366)\n // at com.strobel.assembler.metadata.MetadataSystem.resolveType(MetadataSystem.java:124)\n // at com.strobel.decompiler.NoRetryMetadataSystem.resolveType(DecompilerDriver.java:447)\n // at com.strobel.assembler.metadata.MetadataSystem.resolveCore(MetadataSystem.java:76)\n // at com.strobel.assembler.metadata.MetadataResolver.resolve(MetadataResolver.java:104)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.resolve(CoreMetadataFactory.java:576)\n // at com.strobel.assembler.metadata.MetadataHelper$8.visitClassType(MetadataHelper.java:1961)\n // at com.strobel.assembler.metadata.MetadataHelper$8.visitClassType(MetadataHelper.java:1931)\n // at com.strobel.assembler.metadata.TypeDefinition.accept(TypeDefinition.java:179)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.asSuper(MetadataHelper.java:739)\n // at com.strobel.assembler.metadata.MetadataHelper$8.visitClassType(MetadataHelper.java:1954)\n // at com.strobel.assembler.metadata.MetadataHelper$8.visitClassType(MetadataHelper.java:1931)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.accept(CoreMetadataFactory.java:536)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.asSuper(MetadataHelper.java:739)\n // at com.strobel.assembler.metadata.MetadataHelper$6.visitClassType(MetadataHelper.java:1789)\n // at com.strobel.assembler.metadata.MetadataHelper$6.visitClassType(MetadataHelper.java:1753)\n // at com.strobel.assembler.metadata.CoreMetadataFactory$UnresolvedType.accept(CoreMetadataFactory.java:536)\n // at com.strobel.assembler.metadata.DefaultTypeVisitor.visit(DefaultTypeVisitor.java:25)\n // at com.strobel.assembler.metadata.MetadataHelper.isSubType(MetadataHelper.java:1261)\n // at com.strobel.assembler.metadata.MetadataHelper.isSubType(MetadataHelper.java:585)\n // at com.strobel.assembler.metadata.MetadataHelper.isSubtypeUncheckedInternal(MetadataHelper.java:557)\n // at com.strobel.assembler.metadata.MetadataHelper.isSubTypeUnchecked(MetadataHelper.java:537)\n // at com.strobel.assembler.metadata.MetadataHelper.isConvertible(MetadataHelper.java:518)\n // at com.strobel.assembler.metadata.MetadataHelper.isConvertible(MetadataHelper.java:499)\n // at com.strobel.assembler.metadata.MetadataHelper.isAssignableFrom(MetadataHelper.java:574)\n // at com.strobel.assembler.metadata.MetadataHelper.findCommonSuperTypeCore(MetadataHelper.java:209)\n // at com.strobel.assembler.metadata.MetadataHelper.findCommonSuperType(MetadataHelper.java:172)\n // at com.strobel.decompiler.ast.TypeAnalysis.typeWithMoreInformation(TypeAnalysis.java:2854)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferBinaryExpression(TypeAnalysis.java:2184)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1531)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1551)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:304)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:225)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:110)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "title": "" }, { "docid": "78f47bb121b834e770d03b6ede7522d2", "score": "0.532555", "text": "private VideoSource(android.media.MediaRecorder r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.media.MediaRecorder.VideoSource.<init>(android.media.MediaRecorder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.media.MediaRecorder.VideoSource.<init>(android.media.MediaRecorder):void\");\n }", "title": "" }, { "docid": "6a9a4eed7596d7740d5504b038438b8c", "score": "0.5324121", "text": "public /* synthetic */ -java_util_LongSummaryStatistics_summaryStatistics__LambdaImpl2() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.util.stream.LongPipeline.-java_util_LongSummaryStatistics_summaryStatistics__LambdaImpl2.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.LongPipeline.-java_util_LongSummaryStatistics_summaryStatistics__LambdaImpl2.<init>():void\");\n }", "title": "" }, { "docid": "bce22b82028bce23b5fe132bc23ec9cb", "score": "0.5317438", "text": "public void m13023a(java.lang.String r5, java.util.HashMap<java.lang.String, java.lang.String> r6) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = new org.json.JSONObject;\n r0.<init>();\n r1 = new org.json.JSONArray;\t Catch:{ JSONException -> 0x0043 }\n r1.<init>();\t Catch:{ JSONException -> 0x0043 }\n r2 = r4.f11254a;\t Catch:{ JSONException -> 0x0043 }\n r1.put(r2);\t Catch:{ JSONException -> 0x0043 }\n r1 = r4.f11254a;\t Catch:{ JSONException -> 0x0043 }\n r2 = r4.m13031d();\t Catch:{ JSONException -> 0x0043 }\n r0.put(r1, r2);\t Catch:{ JSONException -> 0x0043 }\n if (r6 == 0) goto L_0x0036;\t Catch:{ JSONException -> 0x0043 }\n L_0x001a:\n r1 = r6.keySet();\t Catch:{ JSONException -> 0x0043 }\n r1 = r1.iterator();\t Catch:{ JSONException -> 0x0043 }\n L_0x0022:\n r2 = r1.hasNext();\t Catch:{ JSONException -> 0x0043 }\n if (r2 == 0) goto L_0x0036;\t Catch:{ JSONException -> 0x0043 }\n L_0x0028:\n r2 = r1.next();\t Catch:{ JSONException -> 0x0043 }\n r2 = (java.lang.String) r2;\t Catch:{ JSONException -> 0x0043 }\n r3 = r6.get(r2);\t Catch:{ JSONException -> 0x0043 }\n r0.put(r2, r3);\t Catch:{ JSONException -> 0x0043 }\n goto L_0x0022;\t Catch:{ JSONException -> 0x0043 }\n L_0x0036:\n r6 = io.branch.referral.Branch.m23406b();\t Catch:{ JSONException -> 0x0043 }\n if (r6 == 0) goto L_0x0043;\t Catch:{ JSONException -> 0x0043 }\n L_0x003c:\n r6 = io.branch.referral.Branch.m23406b();\t Catch:{ JSONException -> 0x0043 }\n r6.m23454a(r5, r0);\t Catch:{ JSONException -> 0x0043 }\n L_0x0043:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.branch.indexing.BranchUniversalObject.a(java.lang.String, java.util.HashMap):void\");\n }", "title": "" }, { "docid": "fdcb347de13ef70a60164a91c8cdb570", "score": "0.53085023", "text": "public /* synthetic */ -java_util_LongSummaryStatistics_summaryStatistics__LambdaImpl1() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.util.stream.LongPipeline.-java_util_LongSummaryStatistics_summaryStatistics__LambdaImpl1.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.util.stream.LongPipeline.-java_util_LongSummaryStatistics_summaryStatistics__LambdaImpl1.<init>():void\");\n }", "title": "" } ]
d8ccc538adf19973a751109d6a5cd4cc
repeated string successor_id = 3;
[ { "docid": "afdaae2e2b7b66a1375e1c5e2dc95bff", "score": "0.6058174", "text": "public Builder addSuccessorId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSuccessorIdIsMutable();\n successorId_.add(value);\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "31224157b6aa17074ff21cda87b0be73", "score": "0.64842224", "text": "public java.lang.String getSuccessorId(int index) {\n return successorId_.get(index);\n }", "title": "" }, { "docid": "8572f8545627e453354e83df84a1174a", "score": "0.64580786", "text": "java.lang.String getSuccessorId(int index);", "title": "" }, { "docid": "a40cd53f9e6efdbe3c089c3b8595c252", "score": "0.6323929", "text": "public java.lang.String getSuccessorId(int index) {\n return successorId_.get(index);\n }", "title": "" }, { "docid": "fdd31ef42f4d5b675dd154089bcd9abb", "score": "0.6168744", "text": "private int getNextId() {\n return id++;\n }", "title": "" }, { "docid": "5f0422c42245338a3fc18c885ae34c2c", "score": "0.60711116", "text": "private int GetNextId()\n {\n int id = nextId;\n nextId++;\n return id;\n }", "title": "" }, { "docid": "09898c12cb968d3c9a53d2de4f26bce1", "score": "0.5951307", "text": "public Builder setSuccessorId(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSuccessorIdIsMutable();\n successorId_.set(index, value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7ee6b1ab643f526327f260479fcb3f3f", "score": "0.5776104", "text": "public int getSuccessorIdCount() {\n return successorId_.size();\n }", "title": "" }, { "docid": "830f47a95b0eb6d9b223d0902589342c", "score": "0.5744022", "text": "public com.google.protobuf.ByteString\n getSuccessorIdBytes(int index) {\n return successorId_.getByteString(index);\n }", "title": "" }, { "docid": "8e03abcde278a0d19f371352d6f8f940", "score": "0.57321036", "text": "String nextId();", "title": "" }, { "docid": "e43aeb60aff3ae3e437d5a327af7636b", "score": "0.57078093", "text": "private int generateTermID() {\r\n return ++lastTermID;\r\n }", "title": "" }, { "docid": "21f46e8e3ffced969c146a06133398ab", "score": "0.5668097", "text": "public Prefix pshiftIn(String successor){\t\n\t\tPrefix shiftPrefix = new Prefix(prefixWords);\n\t\tshiftPrefix.prefixWords.removeFirst();\n\t\tshiftPrefix.prefixWords.addLast(successor);\n\t\treturn shiftPrefix;\n\t}", "title": "" }, { "docid": "c0450b33f59c97e33006f5a335a3302e", "score": "0.56670386", "text": "protected int getNewIdentifier()\n {\n int result = this.getIdentifierCounter();\n this.setIdentifierCounter(this.getIdentifierCounter() + 1);\n return result;\n }", "title": "" }, { "docid": "159ab222d7e48965333e2edf1878db96", "score": "0.56289536", "text": "public int generate(){\n\t\treturn ++previousID;\n\t}", "title": "" }, { "docid": "e2edff1ef7f1cf205cc2db64ba9debb1", "score": "0.5621615", "text": "public com.google.protobuf.ByteString\n getSuccessorIdBytes(int index) {\n return successorId_.getByteString(index);\n }", "title": "" }, { "docid": "e7085a16ce1b0280d3ce354b0f9b11dd", "score": "0.55961674", "text": "private static int getNextID() {\n\t highestID++;\n\t return highestID;\n\t }", "title": "" }, { "docid": "13827f744a6d760219e0f360382e3991", "score": "0.55889493", "text": "public int getSuccessorIdCount() {\n return successorId_.size();\n }", "title": "" }, { "docid": "f23a635c326c1a1bb70adda41d164e48", "score": "0.55251074", "text": "private int getNewTid( ) {\n\tfor ( int i = 0; i < tids.length; i++ ) {\n\t int tentative = ( nextId + i ) % tids.length;\n\t if ( tids[tentative] == false ) {\n\t\ttids[tentative] = true;\n\t\tnextId = ( tentative + 1 ) % tids.length;\n\t\treturn tentative;\n\t }\n\t}\n\treturn -1;\n }", "title": "" }, { "docid": "26cd49eb1b5d1ef7a0865976937c98f9", "score": "0.54824334", "text": "public java.util.List<java.lang.String>\n getSuccessorIdList() {\n return successorId_;\n }", "title": "" }, { "docid": "ee4d776b3748988a0e2b7e36d662e939", "score": "0.54120296", "text": "public Builder addSuccessorIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSuccessorIdIsMutable();\n successorId_.add(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "36564d04307bcb358ba441cd5987e07c", "score": "0.53842735", "text": "public int getNextAvailableOntologyId() throws Exception;", "title": "" }, { "docid": "3e29afa3280ad2662932526a560cddb2", "score": "0.53802866", "text": "private static void synchNextId(int id)\n {\n if(id >= NEXT_GROUP_ID)\n NEXT_GROUP_ID = id + 1;\n }", "title": "" }, { "docid": "24af8036b1cd9262c663469fe89fe5a7", "score": "0.53780967", "text": "int getSequence();", "title": "" }, { "docid": "24af8036b1cd9262c663469fe89fe5a7", "score": "0.53780967", "text": "int getSequence();", "title": "" }, { "docid": "e3be1b1eddc39d0290c2df29b5fb7790", "score": "0.534485", "text": "public void\nsetNextId( ExpId pNextId );", "title": "" }, { "docid": "52dc1d82b5fc94fc1503f238855dcf98", "score": "0.5336078", "text": "private Long getNextId() {\n Long nextId = null;\n try {\n nextId = Collections.max(map.keySet()) + 1;\n } catch (NoSuchElementException e) {\n nextId = 1L;\n }\n\n return nextId;\n }", "title": "" }, { "docid": "0c33971ce134163971b2315b07e44af2", "score": "0.533482", "text": "public String getNextCodTramo() ;", "title": "" }, { "docid": "711396550907b2bb9e5e96a370537226", "score": "0.5329576", "text": "private static int nextPersonId()\n \t{\n \t\treturn _personId.incrementAndGet();\n \t}", "title": "" }, { "docid": "db05b8d6dabd5ba1870801f596a8ec79", "score": "0.5322671", "text": "private String getNextCssId(String suffix)\n\t{\n\t\tthis.cssIdCounter+=1;\n\t\treturn this.allele.getAlleleKey()+\"_\"+this.cssIdCounter+\"_\"+suffix;\n\t}", "title": "" }, { "docid": "b9ad524437657b0149d23608d64b7cc6", "score": "0.5316494", "text": "public int newID (int s) {\r\n int ID = 1000 + s;\r\n return ID;\r\n }", "title": "" }, { "docid": "b775988675f61ad83386fa79740dcbe4", "score": "0.5306672", "text": "int getNextSubqueryNumber();", "title": "" }, { "docid": "a95a596a68bba9538e753fb87538a0eb", "score": "0.53031445", "text": "private static int generateId() {\n return maxId++;\n }", "title": "" }, { "docid": "94f0aed0dce198a024351619fab266d7", "score": "0.52943313", "text": "private void recalcid() {\n\t\t// generate the id so for the compareTo method to use\n\t\tStringBuffer sid = new StringBuffer();\n\t\tif (m_sourceTableId != null)\n\t\t\tsid.append(m_sourceTableId.toString() + m_sourceColumn);\n\n\t\tif (m_destinationTableId != null)\n\t\t\tsid.append(m_destinationTableId.toString() + m_destinationColumn);\n\n\t\tm_sid = sid.toString();\n\t}", "title": "" }, { "docid": "13c00f7cfaf3c2ce655da845e501d5e0", "score": "0.5280861", "text": "com.google.protobuf.ByteString\n getSuccessorIdBytes(int index);", "title": "" }, { "docid": "809e24a1c4e9f49f2108dfe6e6bb7c83", "score": "0.52760535", "text": "public IntStream successor(int elem) {\n if (elem == 0) {\n throw new NoSuchElementException(\"invalid DIMACS literal: 0\");\n }\n int positive = elem > 0 ? elem : -elem;\n if (positive == maxLiteral) {\n return IntStream.empty();\n }\n if (positive > maxLiteral) {\n throw new NoSuchElementException(\n String.format(\"element %d is not handled by this forest\", elem));\n }\n return literals(positive + 1, maxLiteral);\n }", "title": "" }, { "docid": "48fe942addfc970a7a855df77d0451b3", "score": "0.5257396", "text": "public static String getNextLabel() {\n return \"L_\" + counter++;\n }", "title": "" }, { "docid": "946cb748991f3da6a205d9c571dbf983", "score": "0.52327555", "text": "public static int getUniqueID() {\n\treturn counter++;\n }", "title": "" }, { "docid": "238dd85a756ac45115d6548b4d6dac0f", "score": "0.5230209", "text": "protected static synchronized int getNextId() {\n\t\treturn ++s_vehicleId;\n\t}", "title": "" }, { "docid": "3c186325e528ac2e002551f5c2ea5353", "score": "0.5228566", "text": "private int nextPartyID(){\n\t\treturn partyID++;\n\t}", "title": "" }, { "docid": "3c8f1cc2833a447a29867bf9d65e7681", "score": "0.5225914", "text": "public static String getNewID() {\n\t\tint result = myIDCounter;\n\t\tmyIDCounter = myIDCounter + 1;\n\t\treturn \"ID\" + result;\n\t}", "title": "" }, { "docid": "14d839468204ab55039521cd8932fffa", "score": "0.5222229", "text": "long getNextProposalId();", "title": "" }, { "docid": "4aa8720ec66d7788ef52b6db624de312", "score": "0.5220283", "text": "public Builder clearSuccessorId() {\n successorId_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b73e192cc4cd70d22e704e19908409f1", "score": "0.5219801", "text": "java.lang.String getSequencename();", "title": "" }, { "docid": "3c962575946dff13e0338d8b212b23a3", "score": "0.5208115", "text": "int getSuccessorIdCount();", "title": "" }, { "docid": "c7c040048d289dbcd7bc90db8ede307b", "score": "0.520396", "text": "private String getID() {\n nextID++;\n return Integer.toString(nextID);\n }", "title": "" }, { "docid": "8d832de8af69b7bb9f26685315a5891b", "score": "0.5202784", "text": "public static String nextStepId() {\n\t\treturn \"st\" + Thread.currentThread().getId()\n\t\t\t\t+ System.currentTimeMillis();\n\t}", "title": "" }, { "docid": "c13036072b9ff790264bd04851643e7d", "score": "0.5201855", "text": "String getParentID();", "title": "" }, { "docid": "2688d0cf8384f1a0aab369933a64c0fe", "score": "0.51902246", "text": "private static byte getNextID() {\r\n\t\tfor(int i = 0; i < IDs.length; i++) {\r\n\t\t\tif(IDs[i] == 0) {\r\n\t\t\t\tIDs[i] = i + 1;\r\n\t\t\t\treturn (byte) (i + 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "229a43a6f957279987f72ba82a7eb632", "score": "0.51631385", "text": "private void nextKwId() {\n\t\tint old = pos;\n\t\tmany(letters);\n\t\tmany(legits);\n\t\tString lexeme = program.substring(old, pos);\n\t\ttoken = new Token((keywords.contains(lexeme) ? lexeme : \"id\"), lexeme);\n\t}", "title": "" }, { "docid": "9f45398237265391046094055830ab6b", "score": "0.51580167", "text": "public int getNextIdState() {\r\n\t\treturn nextIdState;\r\n\t}", "title": "" }, { "docid": "b1cdbcd6a91ec3addcf5da2b1b193d33", "score": "0.5157747", "text": "private int getNextID() {\n List<Takmicenje> takmicenja = Kontroler.getInstance().ucitajTakmicenja();\n int max = Integer.MIN_VALUE;\n for (Takmicenje takmicenje : takmicenja) {\n int id = Integer.parseInt(takmicenje.getTakmicenjeID().split(\"-\")[1]);\n if (id > max) {\n max = id;\n }\n }\n return max + 1;\n }", "title": "" }, { "docid": "786654eda1f890b1ea8e0787273fc8e7", "score": "0.51367015", "text": "int getSequenceNumber();", "title": "" }, { "docid": "bbe307eacb0015f47769850084312517", "score": "0.51364785", "text": "public String generateNext(String cur){\n StringBuilder next = new StringBuilder();\n int i=0, n = cur.length(); \n while(i<n){\n int j=i+1;\n int count = 1;\n while(j<n && cur.charAt(j) == cur.charAt(i)){\n j++;\n count++;\n }\n next.append(String.valueOf(count));\n next.append(cur.charAt(i));\n i=j; // smart ! Don't use i++\n }\n return next.toString();\n }", "title": "" }, { "docid": "11c13994b01b8e3e5eb254d287899811", "score": "0.5129462", "text": "public ExpId\ngetNextId();", "title": "" }, { "docid": "eaf0eeba15e1de551e2008658abf208f", "score": "0.5128425", "text": "int getPatronId(Patron patron) {\r\n for (int i = 0; i < patronCounter; i++) {\r\n if (patronArray[i] == patron) {\r\n return i;\r\n }\r\n } return -1;\r\n }", "title": "" }, { "docid": "f840953240e70b0d9b6a329aecf0e504", "score": "0.5125139", "text": "long getSequence();", "title": "" }, { "docid": "e15fb9f3ddcec07a1da42ff8ea90d509", "score": "0.51248276", "text": "protected int findPrototypeId(java.lang.String r9) {\n /*\n r8 = this;\n r2 = 7;\n r6 = 99;\n r3 = 3;\n r4 = 2;\n r0 = 0;\n r1 = 0;\n r5 = r9.length();\n switch(r5) {\n case 4: goto L_0x001b;\n case 5: goto L_0x0044;\n case 6: goto L_0x004c;\n case 7: goto L_0x006a;\n case 8: goto L_0x0096;\n case 9: goto L_0x00f3;\n case 10: goto L_0x0125;\n case 11: goto L_0x0140;\n case 12: goto L_0x0179;\n case 13: goto L_0x000e;\n case 14: goto L_0x01ba;\n case 15: goto L_0x01c4;\n case 16: goto L_0x01ce;\n case 17: goto L_0x01ee;\n case 18: goto L_0x000e;\n case 19: goto L_0x000e;\n case 20: goto L_0x021a;\n case 21: goto L_0x0224;\n case 22: goto L_0x022e;\n default: goto L_0x000e;\n };\n L_0x000e:\n r2 = r1;\n r1 = r0;\n L_0x0010:\n if (r2 == 0) goto L_0x0238;\n L_0x0012:\n if (r2 == r9) goto L_0x0238;\n L_0x0014:\n r2 = r2.equals(r9);\n if (r2 != 0) goto L_0x0238;\n L_0x001a:\n return r0;\n L_0x001b:\n r2 = r9.charAt(r0);\n if (r2 != r6) goto L_0x002a;\n L_0x0021:\n r1 = \"copy\";\n r2 = 11;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x002a:\n r3 = 110; // 0x6e float:1.54E-43 double:5.43E-322;\n if (r2 != r3) goto L_0x0037;\n L_0x002e:\n r1 = \"name\";\n r2 = 22;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0037:\n r3 = 116; // 0x74 float:1.63E-43 double:5.73E-322;\n if (r2 != r3) goto L_0x000e;\n L_0x003b:\n r1 = \"text\";\n r2 = 37;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0044:\n r1 = \"child\";\n r2 = 6;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x004c:\n r2 = r9.charAt(r0);\n r3 = 108; // 0x6c float:1.51E-43 double:5.34E-322;\n if (r2 != r3) goto L_0x005d;\n L_0x0054:\n r1 = \"length\";\n r2 = 20;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x005d:\n r3 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n if (r2 != r3) goto L_0x000e;\n L_0x0061:\n r1 = \"parent\";\n r2 = 27;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x006a:\n r2 = r9.charAt(r0);\n r3 = 114; // 0x72 float:1.6E-43 double:5.63E-322;\n if (r2 != r3) goto L_0x007b;\n L_0x0072:\n r1 = \"replace\";\n r2 = 32;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x007b:\n r3 = 115; // 0x73 float:1.61E-43 double:5.7E-322;\n if (r2 != r3) goto L_0x0088;\n L_0x007f:\n r1 = \"setName\";\n r2 = 35;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0088:\n r3 = 118; // 0x76 float:1.65E-43 double:5.83E-322;\n if (r2 != r3) goto L_0x000e;\n L_0x008c:\n r1 = \"valueOf\";\n r2 = 41;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0096:\n r3 = r9.charAt(r4);\n switch(r3) {\n case 83: goto L_0x00a1;\n case 100: goto L_0x00c1;\n case 101: goto L_0x00cb;\n case 105: goto L_0x00d5;\n case 109: goto L_0x00df;\n case 110: goto L_0x00e9;\n default: goto L_0x009d;\n };\n L_0x009d:\n r2 = r1;\n r1 = r0;\n goto L_0x0010;\n L_0x00a1:\n r2 = r9.charAt(r2);\n r3 = 101; // 0x65 float:1.42E-43 double:5.0E-322;\n if (r2 != r3) goto L_0x00b3;\n L_0x00a9:\n r1 = \"toSource\";\n r2 = 39;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x00b3:\n r3 = 103; // 0x67 float:1.44E-43 double:5.1E-322;\n if (r2 != r3) goto L_0x000e;\n L_0x00b7:\n r1 = \"toString\";\n r2 = 38;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x00c1:\n r1 = \"nodeKind\";\n r2 = 25;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x00cb:\n r1 = \"elements\";\n r2 = 13;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x00d5:\n r1 = \"children\";\n r2 = 8;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x00df:\n r1 = \"comments\";\n r2 = 9;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x00e9:\n r1 = \"contains\";\n r2 = 10;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x00f3:\n r2 = r9.charAt(r4);\n switch(r2) {\n case 99: goto L_0x00fe;\n case 109: goto L_0x0108;\n case 114: goto L_0x0112;\n case 116: goto L_0x011c;\n default: goto L_0x00fa;\n };\n L_0x00fa:\n r2 = r1;\n r1 = r0;\n goto L_0x0010;\n L_0x00fe:\n r1 = \"localName\";\n r2 = 21;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0108:\n r1 = \"namespace\";\n r2 = 23;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0112:\n r1 = \"normalize\";\n r2 = 26;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x011c:\n r1 = \"attribute\";\n r2 = 4;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0125:\n r3 = r9.charAt(r0);\n r4 = 97;\n if (r3 != r4) goto L_0x0136;\n L_0x012d:\n r1 = \"attributes\";\n r2 = 5;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0136:\n if (r3 != r6) goto L_0x000e;\n L_0x0138:\n r1 = \"childIndex\";\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0140:\n r2 = r9.charAt(r0);\n switch(r2) {\n case 97: goto L_0x014b;\n case 99: goto L_0x0152;\n case 100: goto L_0x015b;\n case 115: goto L_0x0165;\n case 116: goto L_0x016f;\n default: goto L_0x0147;\n };\n L_0x0147:\n r2 = r1;\n r1 = r0;\n goto L_0x0010;\n L_0x014b:\n r1 = \"appendChild\";\n r2 = r1;\n r1 = r3;\n goto L_0x0010;\n L_0x0152:\n r1 = \"constructor\";\n r2 = 1;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x015b:\n r1 = \"descendants\";\n r2 = 12;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0165:\n r1 = \"setChildren\";\n r2 = 33;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x016f:\n r1 = \"toXMLString\";\n r2 = 40;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0179:\n r2 = r9.charAt(r0);\n r5 = 97;\n if (r2 != r5) goto L_0x0188;\n L_0x0181:\n r1 = \"addNamespace\";\n r2 = r1;\n r1 = r4;\n goto L_0x0010;\n L_0x0188:\n r4 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n if (r2 != r4) goto L_0x0196;\n L_0x018c:\n r1 = \"prependChild\";\n r2 = 28;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0196:\n r4 = 115; // 0x73 float:1.61E-43 double:5.7E-322;\n if (r2 != r4) goto L_0x000e;\n L_0x019a:\n r2 = r9.charAt(r3);\n r3 = 76;\n if (r2 != r3) goto L_0x01ac;\n L_0x01a2:\n r1 = \"setLocalName\";\n r2 = 34;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x01ac:\n r3 = 78;\n if (r2 != r3) goto L_0x000e;\n L_0x01b0:\n r1 = \"setNamespace\";\n r2 = 36;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x01ba:\n r1 = \"hasOwnProperty\";\n r2 = 17;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x01c4:\n r1 = \"removeNamespace\";\n r2 = 31;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x01ce:\n r2 = r9.charAt(r0);\n r3 = 104; // 0x68 float:1.46E-43 double:5.14E-322;\n if (r2 != r3) goto L_0x01e0;\n L_0x01d6:\n r1 = \"hasSimpleContent\";\n r2 = 19;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x01e0:\n r3 = 105; // 0x69 float:1.47E-43 double:5.2E-322;\n if (r2 != r3) goto L_0x000e;\n L_0x01e4:\n r1 = \"insertChildAfter\";\n r2 = 15;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x01ee:\n r2 = r9.charAt(r3);\n r3 = 67;\n if (r2 != r3) goto L_0x0200;\n L_0x01f6:\n r1 = \"hasComplexContent\";\n r2 = 18;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0200:\n if (r2 != r6) goto L_0x020c;\n L_0x0202:\n r1 = \"inScopeNamespaces\";\n r2 = 14;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x020c:\n r3 = 101; // 0x65 float:1.42E-43 double:5.0E-322;\n if (r2 != r3) goto L_0x000e;\n L_0x0210:\n r1 = \"insertChildBefore\";\n r2 = 16;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x021a:\n r1 = \"propertyIsEnumerable\";\n r2 = 30;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0224:\n r1 = \"namespaceDeclarations\";\n r2 = 24;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x022e:\n r1 = \"processingInstructions\";\n r2 = 29;\n r7 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0010;\n L_0x0238:\n r0 = r1;\n goto L_0x001a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.mozilla.javascript.xmlimpl.XMLObjectImpl.findPrototypeId(java.lang.String):int\");\n }", "title": "" }, { "docid": "60a30122994f99e5d52487d60e04f019", "score": "0.51237667", "text": "public void setNextIdState(int nextState) {\r\n\t\tthis.nextIdState = nextState;\r\n\t}", "title": "" }, { "docid": "a35530a1ce7ea512992c0da67a8523ce", "score": "0.51227695", "text": "public static long getNewId() {\n return newId++;\n }", "title": "" }, { "docid": "696957bc4c963b75da3a7cff6ba85f3d", "score": "0.5122748", "text": "public String getNextCodAmbitGeogr() ;", "title": "" }, { "docid": "ca31d7f211b2a0e6b038db0a4f532647", "score": "0.51033694", "text": "private static long getNextId() {\n while (takenIds.contains(++_nextId)) {\n }\n takenIds.add(_nextId);\n return _nextId;\n }", "title": "" }, { "docid": "d3bdde9c1a18d6ad3b6cad490ea968d6", "score": "0.5103018", "text": "int getNextEquivalenceClass();", "title": "" }, { "docid": "cdda648b82791db0c79718c23af79b75", "score": "0.51019764", "text": "String getSeq ();", "title": "" }, { "docid": "b28bd112766730c4bb392fabc981e273", "score": "0.50950325", "text": "long getSqIdByNextOrder(long nextOrder);", "title": "" }, { "docid": "d9a420fa4bb6b39046a986196af5f317", "score": "0.50948274", "text": "public String getSequence();", "title": "" }, { "docid": "4517cee2efcf4433aacdf4ac94fb09c5", "score": "0.50941026", "text": "long nextId();", "title": "" }, { "docid": "3c11c0c0683a74dfd2c1dc2240354d0e", "score": "0.50864035", "text": "public long getNewId() {\n return id.getAndIncrement();\n }", "title": "" }, { "docid": "2dcfe50678a3b432b577aaa7c26db75c", "score": "0.50771564", "text": "public List<Node> successor_1() {\r\n\t\tList<Vertice> out = this.outVertice();\r\n\t\tList<Node> succes = new ArrayList<Node>();\r\n\t\tfor (Vertice vertice : out) {\r\n\t\t\tif (!vertice.getSens() && this.equals(vertice.getSecondEnd())){ succes.add(vertice.getFirstEnd());}\r\n\t\t\telse{\r\n\t\t\t\tif(!succes.contains(vertice.getSecondEnd())) {\r\n\t\t\t\t\tsucces.add(vertice.getSecondEnd());\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn succes;\r\n\t}", "title": "" }, { "docid": "538d5904dd778920b9dd1105f7662fbe", "score": "0.5074162", "text": "public Builder addAllSuccessorId(\n java.lang.Iterable<java.lang.String> values) {\n ensureSuccessorIdIsMutable();\n super.addAll(values, successorId_);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6d3f5feea0966a83b5299e7e7f41d45c", "score": "0.5071647", "text": "@Test\n public void test29() throws Throwable {\n String string0 = EWrapperMsgGenerator.nextValidId(1678);\n assertEquals(\"Next Valid Order ID: 1678\", string0);\n }", "title": "" }, { "docid": "e0a49dde29f088d2b9d74e91a970a6cc", "score": "0.5060536", "text": "public interface Sequence {\n\n long getNextSequenceId(String key);\n\n}", "title": "" }, { "docid": "4cc77396463fb8ed8e58c918c0cf150e", "score": "0.5058222", "text": "@Override\n\tpublic ProjectId nextIdentity() throws Exception {\n\t\tUUID uuid = UUID.randomUUID();\n String str = uuid.toString();\n \n\t\treturn new ProjectId(str);\n\t}", "title": "" }, { "docid": "701de2afe35fdb8ae681e78573224f93", "score": "0.5054135", "text": "long getSequenceNum();", "title": "" }, { "docid": "e89e1e655605ed24d805b605b81f1c91", "score": "0.5045299", "text": "@Test\n public void test31() throws Throwable {\n String string0 = EWrapperMsgGenerator.nextValidId((-39));\n assertEquals(\"Next Valid Order ID: -39\", string0);\n }", "title": "" }, { "docid": "e66f4f9a8f6cfbbf9f730245fe7867d4", "score": "0.5037422", "text": "public String getNextCodigoProgramaCorporativo();", "title": "" }, { "docid": "481378ccb30d93137a27de764eb35665", "score": "0.50292844", "text": "int getRuleId(int index);", "title": "" }, { "docid": "481378ccb30d93137a27de764eb35665", "score": "0.50292844", "text": "int getRuleId(int index);", "title": "" }, { "docid": "d769a763911181269c4a5f811cb62402", "score": "0.5016264", "text": "int getNextTableNumber();", "title": "" }, { "docid": "a7a22e041d27e84f930d3a7539f5c892", "score": "0.5013749", "text": "java.lang.String getIdNum();", "title": "" }, { "docid": "2e5fd94abc5ae26f27409ff8058faa0f", "score": "0.50039697", "text": "private Integer getNextTripSeqId() {\n\t\tString getNextTripSeqSql = \"Select NEXTVAL(pg_get_serial_sequence('trip', 'id'));\";\n\t\tSqlRowSet results = jdbcTemplate.queryForRowSet(getNextTripSeqSql);\n\t\tInteger nextId = null;\n\t\twhile(results.next()) {\n\t\t\tnextId = results.getInt(\"nextval\");\n\t\t}\n\t\treturn nextId;\n\t}", "title": "" }, { "docid": "f3debc926ee07efbff29ee15362060c3", "score": "0.49969006", "text": "long getSeq();", "title": "" }, { "docid": "289bce33e48e26373d08da4fac40ea2c", "score": "0.499514", "text": "@Override\n\t\t\tpublic String currSEQ() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "af988df342d14a85e6a529164f46e248", "score": "0.4992873", "text": "public synchronized String nextId() {\n return collectorIdentity.getSn() + Long.toString(id++);\n }", "title": "" }, { "docid": "558f518c71b2614f6cbe44e4148617d0", "score": "0.49921504", "text": "public static int getNextSeq() {\n\t\tint tar = seqId.incrementAndGet();//(int) (aa%limitInt)\n\t\treturn tar;\n\t}", "title": "" }, { "docid": "d18ec4859ef410a8410cf61a83bd3b06", "score": "0.49918082", "text": "Integer getParentIndex();", "title": "" }, { "docid": "fe1e52a2af8e9c801fa4f6429bffda9f", "score": "0.4988071", "text": "SEQ createSEQ();", "title": "" }, { "docid": "a9961df203fd8bbb3a77bb189a2b0145", "score": "0.49861962", "text": "private int calculateNextPosition(int org) {\r\n int id = 0;\r\n if (org == fullLen - 1) {\r\n if (boxopen > 0 || roundopen > 0)\r\n id = org;\r\n else\r\n id = 0;\r\n } else if (org < fullLen - 1)\r\n id = org + 1;\r\n newid = id;\r\n return newid;\r\n }", "title": "" }, { "docid": "b6f36cf5261f83b31901eed1edcaa6e2", "score": "0.49832824", "text": "private int find(int i) {\n while (id[i] != i) {\n id[i] = id[id[i]]; // Points to its grandparent (halving path length)\n //int p = i;\n i = id[i];\n //id[p] = i;\n }\n return i;\n }", "title": "" }, { "docid": "e774c5dea00a11088cd99365f8d4990c", "score": "0.49811262", "text": "public SeqGen increment() {\n \tthis.nextid += 1;\n \treturn this;\n }", "title": "" }, { "docid": "a1f3f3fa66ebea685c3895d54d2d4730", "score": "0.49803466", "text": "private synchronized long getNextSequence() {\n return sequence++;\n }", "title": "" }, { "docid": "741988c42046aec036b31c90cd51f0c8", "score": "0.49684542", "text": "public Object predecessor() {\n/* 75 */ return predecessor(0);\n/* */ }", "title": "" }, { "docid": "196f3613afc86decc98085085bb00cd4", "score": "0.49571183", "text": "String generateID() {\n this.currentID = String.valueOf(Integer.parseInt(this.currentID) + 1);\n return this.currentID;\n //return String.valueOf(System.currentTimeMillis() + RN.nextInt());\n }", "title": "" }, { "docid": "50f65bf13795323a142dc725ad986591", "score": "0.4955678", "text": "private int getUniqueGroupId(){\r\n\t\tthis.groupIdCounter += 1;\r\n\t\treturn groupIdCounter;\r\n\t}", "title": "" }, { "docid": "b5d2518afd113cbce68d41c89e4b5b19", "score": "0.4945219", "text": "int nextIndex();", "title": "" }, { "docid": "c4e62110bbd1b1d7fb7e25e98a15353a", "score": "0.4936329", "text": "public void obtainNewRreqId() {\n\t\t\trreqId = thisNode.rreqIdSeqNum++;\n\t\t}", "title": "" }, { "docid": "0163ef6cd7a4d79890f6fc601be4f109", "score": "0.4936034", "text": "public void nextState() {\n\t\t\n\t\tif ((state==FITNESS)||(len==pos)) {\n\t\t\tstate = EOF;\n\t\t\tvalue=\"\";\n\t\t\treturn;\n\t\t}\n\t\tswitch (state) {\n\t\t case BOF: \n\t\t\tfor (; pos<len; pos++) {\n\t\t\t\tif (line.charAt(pos)=='p') {\n\t\t\t\t\tstate= PID;\n\t\t\t\t\tpos++;\n\t\t\t\t\tvalue=\"\";\n\t\t\t\t\twhile (line.charAt(pos)!='(') {\n\t\t\t\t\t\tpos++;\n\t\t\t\t\t}\n\t\t\t\t\tpos++;\n\t\t\t\t\twhile (line.charAt(pos)!=')') {\n\t\t\t\t\t\tvalue=value+line.charAt(pos);\n\t\t\t\t\t\tpos++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t};\n\t\t\tbreak;\n\t\t\n\t\t case PID: \n\t\t\tfor (; pos<len; pos++) {\n\t\t\t\tif (line.charAt(pos)=='p') { //next parent\n\t\t\t\t\tstate= BOF;\n\t\t\t\t\tnextState();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (line.charAt(pos)=='(') {\n\t\t\t\t\tstate= ID;\n\t\t\t\t\tpos++;\n\t\t\t\t\tvalue=\"\";\n\t\t\t\t\twhile (line.charAt(pos)!=')') {\n\t\t\t\t\t\tvalue=value+line.charAt(pos);\n\t\t\t\t\t\tpos++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t};\n\t\t\tbreak;\n\t\t case ID: \n\t\t\tfor (; pos<len; pos++) {\n\t\t\t\tif (line.charAt(pos)=='(') {\n\t\t\t\t\tstate= IN;\n\t\t\t\t\tpos++;\n\t\t\t\t\tvalue=\"\";\n\t\t\t\t\twhile (line.charAt(pos)!=')') {\n\t\t\t\t\t\tvalue=value+line.charAt(pos);\n\t\t\t\t\t\tpos++;\n\t\t\t\t\t}\n\t\t\t\t\tvalue =value.trim();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t};\n\t\t\tbreak;\t\n\t\t case IN: \t\t\t\n\t\t case OPERATOR:\n\t\t case CROSS:\n\t\t case MUTAT:\n\t\t case REPAIR:\n\t\t\t\tfor (; pos<len; pos++) {\n\t\t\t\t\tif (line.charAt(pos)=='c') {\n\t\t\t\t\t\tstate= CROSS;\n\t\t\t\t\t\tpos++;\n\t\t\t\t\t\tvalue=\"\";\n\t\t\t\t\t\twhile ((pos<len) && (line.charAt(pos)!=' ')) {\n\t\t\t\t\t\t\tvalue=value+line.charAt(pos);\n\t\t\t\t\t\t\tpos++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (line.charAt(pos)=='m') {\n\t\t\t\t\t\tstate= MUTAT;\n\t\t\t\t\t\tpos++;\n\t\t\t\t\t\tvalue=\"\";\n\t\t\t\t\t\twhile ((pos<len) && (line.charAt(pos)!=' ')) {\n\t\t\t\t\t\t\tvalue=value+line.charAt(pos);\n\t\t\t\t\t\t\tpos++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (line.charAt(pos)=='r') {\n\t\t\t\t\t\tstate= REPAIR;\n\t\t\t\t\t\tpos++;\n\t\t\t\t\t\tvalue=\"\";\n\t\t\t\t\t\twhile ((pos<len) && (line.charAt(pos)!=' ')) {\n\t\t\t\t\t\t\tvalue=value+line.charAt(pos);\n\t\t\t\t\t\t\tpos++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (line.charAt(pos)=='f') {\n\t\t\t\t\t\tstate= FITNESS;\n\t\t\t\t\t\tpos++; //f\n\t\t\t\t\t\tpos++; //i\n\t\t\t\t\t\tpos++; //t\n\t\t\t\t\t\tpos++; //(\t\t\t\t\t\t\n\t\t\t\t\t\tvalue=\"\";\n\t\t\t\t\t\twhile (line.charAt(pos)!=')') {\n\t\t\t\t\t\t\tvalue=value+line.charAt(pos);\n\t\t\t\t\t\t\tpos++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tbreak;\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "a86a990dd72631d1fb27f30ee3d91a47", "score": "0.49329394", "text": "private static Integer nextId(Integer currID) {\n if (currID == null) {\n idCounter++;\n return idCounter;\n } else {\n if (currID > idCounter) {\n idCounter = currID;\n }\n return currID;\n }\n }", "title": "" }, { "docid": "0a4da4b55c466ff5626168246f66b40a", "score": "0.49277982", "text": "java.lang.String getParentId();", "title": "" }, { "docid": "55252c7e26f7befe5173896f5b609526", "score": "0.4924838", "text": "public int getSuccessor(){\n\t\tfor (int i=0; i < extendedEntries.size(); i++){\n\t\t\tif(extendedEntries.get(i) > id)\n\t\t\t\treturn extendedEntries.get(i) % (int)Math.pow(2, (double)bitLength);\n\t\t}\n\t\treturn id;\n\t}", "title": "" }, { "docid": "59389445a99c295b213245c65181eaa1", "score": "0.49246165", "text": "private String findId() {\n\t\tif(pos == 0) {\n\t\t\t// Match ID until first whitespace\n\t\t\tScanner S = new Scanner(code);\n\t\t\tString ID = S.next();\n\t\t\tids.add(ID); // Add new ID to set\n\t\t\tS.close();\n\t\t\treturn ID;\n\t\t}\n\t\t// Case 2: ID exists and is in regex definition\n\t\t// Find longest existing match\n\t\tString ID = \"\";\n\t\tfor(String i : ids) {\n\t\t\tint match = code.indexOf(i, pos);\n\t\t\tif(match == pos && ID.length() < i.length()) {\n\t\t\t\tID = i;\n\t\t\t}\n\t\t}\n\t\t// Case 3: ID does not exist and is in regex definition\n\t\tif(ID.isEmpty()) {\n\t\t\t// Match ID until first whitespace\n\t\t\tScanner S = new Scanner(code.substring(pos));\n\t\t\tID = S.next();\n\t\t\tids.add(ID); // Add new ID to set\n\t\t\tS.close();\n\t\t}\n\t\t\n\t\t//FIXME: Handle ids with overlapping names.\n\t\t// \t\t $PAPER and $PAPERWATER\n\t\t//FIXME: Ambiguous match\n\t\t// \t\t $ID, $ID1, and $ID2\n\t\t// \t\t regex = $ID1234$ID234\n\t\t\n\t\treturn ID;\n\t}", "title": "" }, { "docid": "b027fc9b471b032fc83348323c13de61", "score": "0.49227205", "text": "II addId();", "title": "" } ]
db14dff279aa6c424137005336968d4a
Find the _Fields constant that matches name, or null if its not found.
[ { "docid": "df89e0a3046c32259e386bf9daf4403c", "score": "0.0", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" } ]
[ { "docid": "2aedca74101f3519831ef106c8e1a7b6", "score": "0.77550375", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "2aedca74101f3519831ef106c8e1a7b6", "score": "0.77550375", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "3153394dd5efe71fc805def104941b14", "score": "0.77456653", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "3153394dd5efe71fc805def104941b14", "score": "0.77456653", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "3153394dd5efe71fc805def104941b14", "score": "0.77456653", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "3153394dd5efe71fc805def104941b14", "score": "0.77456653", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "d3a4baf4f0871c9d1f5c7306d7a22628", "score": "0.7738565", "text": "@org.apache.storm.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "d3a4baf4f0871c9d1f5c7306d7a22628", "score": "0.7738565", "text": "@org.apache.storm.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "d3a4baf4f0871c9d1f5c7306d7a22628", "score": "0.7738565", "text": "@org.apache.storm.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "1591038dcefa6e42c4057d0251279061", "score": "0.76308644", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "fb703b1294561cac6975292d36722e63", "score": "0.76123464", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "96e68df32b483ce3531c8403a4157794", "score": "0.7588761", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(java.lang.String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "ca25e3174c0bfde6320ba41a70ff7ea6", "score": "0.7578759", "text": "public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }", "title": "" }, { "docid": "ca25e3174c0bfde6320ba41a70ff7ea6", "score": "0.7578759", "text": "public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }", "title": "" }, { "docid": "c8c0fabaef9966f066ba589d015392da", "score": "0.7571673", "text": "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }", "title": "" }, { "docid": "14f2ebaa67375d6c94ad06092c6d3707", "score": "0.756394", "text": "@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByName(java.lang.String name) {\n\t\t\treturn byName.get(name);\n\t\t}", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "212f2fba0b82b3a410df02900a7b460a", "score": "0.75386536", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" } ]
0b1ffc8fd592f560ce8d7751dab7af6b
attributions d'un personnel de direction
[ { "docid": "d5469ad6e5affdb650c90d7ed7110089", "score": "0.5223482", "text": "public String persondirectattrib(){\r\n\treturn \"persondirectattrib\";\r\n\t}", "title": "" } ]
[ { "docid": "2301098bcbbee4f81bfcf22dfaac7fdc", "score": "0.5727545", "text": "@Override\n\tpublic void attribuerCompte(Personne p, Compte compte) {\n\t\t\n\t}", "title": "" }, { "docid": "f4e1c3e18acb4894034becc63848788e", "score": "0.53979844", "text": "protected int getDirection() { return 1; }", "title": "" }, { "docid": "d89105b6931e5f6b8420d2bc571df013", "score": "0.53841466", "text": "private void addAttribut(API_Commande_Binaire commande) {\n this.add(new MotAttribut(commande.getIdentificateur1(), commande.getIdentificateur2()));\n }", "title": "" }, { "docid": "2a5fe033ec8f65353ad3d24dfa08397e", "score": "0.52957124", "text": "LayerRelations createLayerRelations();", "title": "" }, { "docid": "f304ccf378a0744d93fa7cccb2c7930a", "score": "0.5229182", "text": "private void calAntDirection() {\n ant.setAction(Action.MOVE);\n double[][] pheromonMap;\n if (ant.getDestination() == AntDestination.FROM_NEST) {\n pheromonMap = context.getPheromonMapFromNest();\n } else {\n pheromonMap = context.getPheromonMapToNest();\n }\n HashMap<Directions, DirectionValues> directionsMaps = new HashMap<Directions, DirectionValues>();\n Directions direction = Directions.UP;\n addDirectionIfCan(pheromonMap, directionsMaps, direction);\n direction = Directions.LEFT;\n addDirectionIfCan(pheromonMap, directionsMaps, direction);\n direction = Directions.RIGHT;\n addDirectionIfCan(pheromonMap, directionsMaps, direction);\n direction = Directions.DOWN;\n addDirectionIfCan(pheromonMap, directionsMaps, direction);\n\n if (directionsMaps.size() == 0) {\n calcRandomDirection();\n // System.out.println(\"calc random way\");\n return;\n }\n Double minHeuristik = null;\n Directions minDirection = null;\n for (Map.Entry<Directions, DirectionValues> entry : directionsMaps.entrySet()) {\n if (minHeuristik == null || minHeuristik > entry.getValue().getHeuristik()) {\n minHeuristik = entry.getValue().getHeuristik();\n minDirection = entry.getKey();\n }\n }\n for (Map.Entry<Directions, DirectionValues> entry : directionsMaps.entrySet()) {\n if (!entry.getKey().equals(minDirection)) {\n entry.getValue().setHeuristik(0d);\n }\n }\n Double sum = 0d;\n for (Map.Entry<Directions, DirectionValues> entry : directionsMaps.entrySet()) {\n sum += entry.getValue().getFuncValue();\n if (minHeuristik == null || minHeuristik < entry.getValue().getHeuristik()) {\n minHeuristik = entry.getValue().getHeuristik();\n minDirection = entry.getKey();\n }\n }\n HashMap<Directions, Probabilty> directionsProbability = new HashMap<Directions, Probabilty>();\n double lastProbability = 0;\n for (Map.Entry<Directions, DirectionValues> entry : directionsMaps.entrySet()) {\n Double probability = entry.getValue().getFuncValue() / sum;\n directionsProbability.put(entry.getKey(), new Probabilty(lastProbability, lastProbability + probability));\n lastProbability += probability;\n }\n\n double random = Math.random();\n for (Map.Entry<Directions, Probabilty> entry : directionsProbability.entrySet()) {\n if (entry.getValue().in(random)) {\n ant.setDirection(entry.getKey());\n Point point = ant.getPosition().getCopy();\n context.movePointOnDirection(ant.getDirection(), point);\n way.add(point);\n if (way.size() > MAX_WAY_SIZE) {\n way = new ArrayList<Point>();\n }\n return;\n }\n }\n\n // System.out.println(\"calc random way\");\n calcRandomDirection();\n }", "title": "" }, { "docid": "8ba50ed3839fb031d2df25d088799ae6", "score": "0.5205215", "text": "@Override\n\tprotected void genTargetRels() {\n\t\tString srcName = m.getSourceRels().get(0).getName();\n String[] attrs = m.getAttrIds(0, true);\n \n //MN BEGIN considered an array to store types of attributes of target relation - 5 May 2014\n List<String> attrsType = new ArrayList<String> ();\n //MN BEGIN\n for(int i=1; i< attrs.length; i++)\n \tattrsType.add(m.getSourceRels().get(0).getAttrArray(i).getDataType());\n\t\t//MN END\n \n attrs = Arrays.copyOfRange(attrs, 1, attrs.length);\n \n \n \n for(int i = 0; i < randomFragments; i++) {\n int lowerLimit = i * fragmentWidth;\n int upperLimit = ((i + 1) * fragmentWidth) - 1;\n String hook = getStamp() + curRep + \"FR\" + i + \"_from_\" + lowerLimit + \"_to_\"\n + upperLimit;\n String name = srcName + \"_\" + hook;\n \n //MN modified the following line - 4 May 2014\n \tfac.addRelation(hook, name, attrs, attrsType.toArray(new String[] {}), false);\n }\n\t}", "title": "" }, { "docid": "ea479194fcad3e6f80795735065565ec", "score": "0.5102851", "text": "public int getDirection(){\n return direction;\n }", "title": "" }, { "docid": "bad423b685b8651dc6b7e9aac3bf352c", "score": "0.508173", "text": "public Direction getDirection(){\n\t\treturn this.puntocardinale;\n\t}", "title": "" }, { "docid": "aa52b5ae07c6bb28a8052bb3574d2955", "score": "0.50401956", "text": "protected abstract int getPropertiesDisplacement ();", "title": "" }, { "docid": "29bc4410c1e0408ce471b7d0b2e08546", "score": "0.5038774", "text": "public FollowAndPoint(FollowRelation fr) {\n\t\tsuper(fr);\n\t}", "title": "" }, { "docid": "d62c875d6f4f183fd7755d148115594b", "score": "0.50178814", "text": "float getAttraction();", "title": "" }, { "docid": "bbc6da09fa7954a5c07650bab3fabe57", "score": "0.50034225", "text": "@Override\n void levelUpAttributes(){\n this.basePrimaryAttributes.setStrength(this.basePrimaryAttributes.getStrength() + 1);\n this.basePrimaryAttributes.setDexterity(this.basePrimaryAttributes.getDexterity() + 5);\n this.basePrimaryAttributes.setIntelligence(this.basePrimaryAttributes.getIntelligence() + 1);\n this.basePrimaryAttributes.setVitality(this.basePrimaryAttributes.getVitality() + 2);\n }", "title": "" }, { "docid": "a60686051921524ea7ee961fba75c14b", "score": "0.49995056", "text": "public Direction getDirection() {\n return direction;\n }", "title": "" }, { "docid": "b485cf01923fdbafd2821873297ecd7b", "score": "0.49966812", "text": "public void elegirAtributo() {}", "title": "" }, { "docid": "b5cbdbd6ef3d3a8c34d30eef0d4b4c25", "score": "0.49917668", "text": "public MethodInfo relationshipSetter(String relationshipName, String relationshipDirection, boolean strict) {\n for (MethodInfo methodInfo : relationshipSetters()) {\n String relationship = strict ? methodInfo.relationshipTypeAnnotation() : methodInfo.relationship();\n if (relationshipName.equalsIgnoreCase(relationship)) {\n if(((methodInfo.relationshipDirection(Relationship.OUTGOING).equals(Relationship.INCOMING) || methodInfo.relationshipDirection(Relationship.OUTGOING).equals(Relationship.UNDIRECTED)) && relationshipDirection.equals(Relationship.INCOMING))\n || (relationshipDirection.equals(Relationship.OUTGOING) && !(methodInfo.relationshipDirection(Relationship.OUTGOING).equals(Relationship.INCOMING)))) {\n return methodInfo;\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "0085ceeb66b22891a2034a1dcdfd3946", "score": "0.49675846", "text": "public Iterable<de.uni_koblenz.jgralab.grumlschema.structure.HasAttribute> getHasAttributeIncidences(EdgeDirection direction);", "title": "" }, { "docid": "11150194e842977c796503aab31f0354", "score": "0.49538118", "text": "@Override\n\tpublic void setDirection() {\n\t\t\n\t}", "title": "" }, { "docid": "983629d750ac56f6158c238bfda39b41", "score": "0.49423352", "text": "public void accionPropia() {\r\n\t}", "title": "" }, { "docid": "68c578a96f056eded8c6adaef22eafa1", "score": "0.49398428", "text": "@Override\n\tpublic void gerarRelatorio() {\n\t\tCoordenador.super.gerarRelatorio();\n\t}", "title": "" }, { "docid": "1ed9830ce916fe5bd93ef8915318d7ef", "score": "0.49141544", "text": "int getPropagationBehavior();", "title": "" }, { "docid": "8c6a298fa30c5abd6742bd2b75a810e2", "score": "0.49109346", "text": "public void displayRelation() {\n for(int i = 0; i < attributes.size() ;i++) {\n System.out.print(attributes.get(i) + \":\" + domains.get(i));\n if(attributes.size() > i+1) {\n System.out.print(\",\");\n }\n }\n }", "title": "" }, { "docid": "17a3e32276ed0ac0254c795b7581e99f", "score": "0.4904084", "text": "public Direction getDirection() {\n return this.mechanicDirection;\n }", "title": "" }, { "docid": "3a016d558051dc3ebf6bdcc482b6ebfa", "score": "0.49016008", "text": "protected int getDirection() { return -1; }", "title": "" }, { "docid": "6a9a27513ce69a87e84f9fb5816406c2", "score": "0.48926333", "text": "@VTID(7)\n int lineDirection();", "title": "" }, { "docid": "3d88da67d21dcd56e898bdce57895dd1", "score": "0.48832616", "text": "@Test\n public void getAttributeTest() {\n Bridge bridge1 = setUpBridge(1, 1, 1);\n Bridge bridge2 = setUpBridge(2, 1, 1);\n assertEquals(1, bridge1.getOffset());\n assertEquals(2, bridge2.getOffset());\n }", "title": "" }, { "docid": "7b0d73a098a8c160e540291301cc9aba", "score": "0.48817617", "text": "public interface collocated extends relationship\r\n{\r\n}", "title": "" }, { "docid": "dc900e7b84fe9088c9fbc6369705961d", "score": "0.4873913", "text": "public void Atributos(){ \r\n String[] primero={\"STRING\"};\r\n String[] siguiente={\"COMA\",\"R_LLAVE\"};\r\n controlEntrada (primero,siguiente);\r\n String[] traduccion = {\"<\",\"\",\">\",\"\",\"<\",\"/\",\"\",\">\"};\r\n \r\n if (TokenEnVector(analizadorLex.getTokens(),siguiente )==1) { \r\n NombreAtributo();\r\n traduccion[1] = output;\r\n traduccion[6] = output;\r\n output=\"\";\r\n match(\"DOS_PUNTOS\");\r\n ValorAtributo();\r\n traduccion[3] = output;\r\n output = \"\";\r\n \r\n for (int i = 0; i < 8; i++) {\r\n output = output + traduccion[i]; \r\n }\r\n } \r\n controlEntrada(siguiente,primero); \r\n }", "title": "" }, { "docid": "84648e4b8c45992baa8eec0ec5c1e64f", "score": "0.48583254", "text": "private void setPortalDirection(Wall portal) {\n CardinalDirection direction = getWallDirection(portal);\n updateRoomPortals(portal,direction);\n }", "title": "" }, { "docid": "888cf10e0af21e651347e196f45329c7", "score": "0.48581678", "text": "private void updateAgPercept(String agName, int ag){\r\n\t\tclearPercepts(agName);\r\n\t\t// its location\r\n\t\tLocation l = model.getAgPos(ag);\r\n\t\taddPercept(agName, Literal.parseLiteral(\"pos(\" + l.x + \",\" + l.y + \")\"));\r\n\t\t\r\n\t\t// show some variables to agent\r\n\t\taddPercept(agName, Literal.parseLiteral(\"carrying_gold(\" + model.carryingGoldGet(ag) + \")\"));\r\n\t\taddPercept(agName, Literal.parseLiteral(\"carrying_wood(\" + model.carryingWoodGet(ag) + \")\"));\r\n\t\taddPercept(agName, Literal.parseLiteral(\"carrying_capacity(\" + model.agCapacityGet(ag) + \")\"));\r\n\t\t\r\n\t\taddPercept(agName, Literal.parseLiteral(\"moves_left(\" + model.leftMovesGet(ag) + \")\"));\r\n\t\taddPercept(agName, Literal.parseLiteral(\"moves_per_round(\" + model.movesPerRound(ag) + \")\"));\r\n\t\t\r\n\t\t// friends of agent\r\n\t\tint i;\r\n\t\tif(ag < 3){\r\n\t\t\tfor(i = 0; i < 3; i ++){\r\n\t\t\t\tif(i != ag){\r\n\t\t\t\t\taddPercept(agName, Literal.parseLiteral(\"friend(\" + model.getAgNameBasedOnId(i) + \")\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tfor(i = 3; i < 6; i ++){\r\n\t\t\t\tif(i != ag){\r\n\t\t\t\t\taddPercept(agName, Literal.parseLiteral(\"friend(\" + model.getAgNameBasedOnId(i) + \")\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// what's around\r\n\t\t\r\n\t\t// FZjr vvvvv\r\n\t\t\r\n\t\tint dosah = 1;\r\n\t\tif((model.getAgIdBasedOnName(agName) == 0) || (model.getAgIdBasedOnName(agName) == 3)){\r\n\t\t\tdosah = 3 * model.agSuperability[model.getAgIdBasedOnName(agName)];\r\n\t\t}\r\n\t\t\r\n\t\tfor(int x = l.x - dosah; x <= l.x + dosah; x ++){\r\n\t\t\tfor(int y = l.y - dosah; y <= l.y + dosah; y ++){\r\n\t\t\t\tupdateAgPercept(agName, x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// FZjr ^^^^^\r\n\t}", "title": "" }, { "docid": "408832cd5c777d38ce8dbab4e5e7b257", "score": "0.4830929", "text": "private void updatePercepts() {\r\n \t\tclearAllPercepts();\r\n\t\t\r\n\t\tLocation loc = model.getAgPos(0);\r\n\t \taddPercept(\"washer\", Literal.parseLiteral(\"position(\" + loc.x + \", \" + loc.y +\")\"));\r\n\t \t\r\n\t \tLocation locB = model.getAgPos(1);\r\n\t \taddPercept(\"drier\", Literal.parseLiteral(\"position(\" + locB.x + \", \" + locB.y +\")\"));\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "e84debf7a5c3f07d957764a0bab9c0d8", "score": "0.48048425", "text": "@Override\n public Direction getDirection() {\n return myOneDirection;\n }", "title": "" }, { "docid": "83d0090f74d26ecbef7a9cf6539c6b54", "score": "0.47995973", "text": "String getIdentifiantPositionnel();", "title": "" }, { "docid": "4e5803e5bb56d99cca12cfddda82f8ac", "score": "0.47964463", "text": "void assignAttributes();", "title": "" }, { "docid": "34e4120d99573ff854b570fa16ad4737", "score": "0.47635576", "text": "private String getDirection() {\n return direction;\n }", "title": "" }, { "docid": "16816351db46890194439facdad63cac", "score": "0.47632828", "text": "List<Attribute> getToAttributes();", "title": "" }, { "docid": "caa540253cd892ce68024abcf22c0df1", "score": "0.47518626", "text": "float getAttraction_y();", "title": "" }, { "docid": "059b1d8ec999c9593d140070b4b98688", "score": "0.4748222", "text": "private void updateEdgeAttributes(){\n if (originalButton != null && lastButtonClicked != null) {\n currentEdge = originalButton.getAssociatedLocation()\n .getConnectingEdgeFromNeighbor(lastButtonClicked.getAssociatedLocation());\n handicapAccess.setSelected(\n currentEdge.hasAttribute(EdgeAttribute.NOT_HANDICAP_ACCESSIBLE));\n indoors.setSelected(currentEdge.hasAttribute(EdgeAttribute.INDOORS));\n stairs.setSelected(currentEdge.hasAttribute(EdgeAttribute.STAIRS));\n elevator.setSelected(currentEdge.hasAttribute(EdgeAttribute.ELEVATOR));\n }\n }", "title": "" }, { "docid": "6fe6c3e7ca2858e25495544d1cd82dd2", "score": "0.47446007", "text": "Properties getAttributes();", "title": "" }, { "docid": "4239ea2cd7b52926b7e0802ddbfc8c10", "score": "0.4739621", "text": "Vehicle getFollowing();", "title": "" }, { "docid": "714c826a7009d9d57f3d13b9cfd92b05", "score": "0.47286358", "text": "private void grabAttributes() {\n }", "title": "" }, { "docid": "0ee4a1a7aac2d8e1cec59206c614e36c", "score": "0.472759", "text": "@Override\n\tpublic void affilierClub(Personne p, Club club) {\n\t\t\n\t}", "title": "" }, { "docid": "2eb846f654fe31dc769a6d054fc4d2ae", "score": "0.47212377", "text": "@Override\r\n\tprotected void setDistanceToPlayer() {\n\r\n\t}", "title": "" }, { "docid": "d4071e5ad07460b15ec182f8d29cede1", "score": "0.4702466", "text": "void addRelation(int objectIndex, int attributeIndex);", "title": "" }, { "docid": "06c3d13ca5481495509a0f6871549559", "score": "0.4699294", "text": "public abstract void directionNord(final Grille grille);", "title": "" }, { "docid": "c8ee20995bd12b04954d89cedaf2f4f8", "score": "0.46965995", "text": "boolean getDirection();", "title": "" }, { "docid": "3254a7ebae43f8e1209f65d8a498114f", "score": "0.46949518", "text": "public FiltroCriterioSituacaoLigacaoAgua() {\r\n }", "title": "" }, { "docid": "a5ab41d05a76853fed68b684fc70a768", "score": "0.46925503", "text": "public LogisticPosition whereAmI(FuSpace p) throws java.rmi.RemoteException;", "title": "" }, { "docid": "a05be2763a27669b452736fa982dadf7", "score": "0.4692409", "text": "void showDirection();", "title": "" }, { "docid": "dc976ea796bc199f531b17078c64f3e3", "score": "0.46907747", "text": "public void ModifyRel()\r\n\t{\r\n\t\tFrequency_Location_Factor = Frequency_Location_Factor + 10;\r\n\t\tExistence_Time_Factor = Existence_Time_Factor + 5;\r\n\t\tConnected_Links_Factor = Connected_Links_Factor + 10;\r\n\t\tAdvertisement_Payment_Factor = Advertisement_Payment_Factor + 20;\r\n\t\tRelevancy_Score = ((Frequency_Location_Factor + Existence_Time_Factor + \r\n\t\t\t\tConnected_Links_Factor + Advertisement_Payment_Factor)/8);\r\n\t}", "title": "" }, { "docid": "9c3384a076d6e24c39a96362de090795", "score": "0.46866077", "text": "public byte getDirection() {\n/* 80 */ return this.direction;\n/* */ }", "title": "" }, { "docid": "37370bc5bb6868965cb9ff0e816fdaaa", "score": "0.4672543", "text": "public int getDirection() {\n return direction_;\n }", "title": "" }, { "docid": "44d50f1f9fb61e712d2fa12772e5763d", "score": "0.4666661", "text": "protogalaxy.tictactoe.proto.Winner.Location.Direction getDirection();", "title": "" }, { "docid": "73180d83f944b762171fd5a1ced7b16d", "score": "0.46641964", "text": "public void setAttributes(EntityLivingBase minion, BodyPartLocation location) {\r\n\t\t/*head[0].setAttributes(2.0D, 32.0D, 0.0D, 0.0D, 0.0D);\r\n\t\ttorso[0].setAttributes(12.0D, 0.0D, 0.0D, 0.0D, 0.0D);\r\n\t\tarmLeft[0].setAttributes(2.0D, 0.0D, 0.0D, 0.5D, 1.0D);\r\n\t\tarmRight[0].setAttributes(2.0D, 0.0D, 0.0D, 0.5D, 1.0D);\r\n\t\tlegs[0].setAttributes(2.0D, 0.0D, 0.0D, 0.699D, 0.0D);*/\r\n\t}", "title": "" }, { "docid": "baf3238232e61e2c487b5abfabf01afa", "score": "0.46622285", "text": "@Override\r\n\tpublic LinkedHashMap<String, String> getAttributesList() {\n\t\tLinkedHashMap<String, String> mapAttr = super.getAttributesList();\r\n\t\tmapAttr.put(\"Capacite de passagers\", \"int\");\r\n\t\tmapAttr.put(\"Poids (tonnes)\", \"int\");\r\n\t\tmapAttr.put(\"Largeur (m)\", \"int\");\r\n\t\tmapAttr.put(\"Hauteur (m)\", \"int\");\r\n\t\tmapAttr.put(\"Longueur (m)\", \"int\");\r\n\t\treturn mapAttr;\r\n\t}", "title": "" }, { "docid": "26fa9a6767fb8ece5fd29df01976df32", "score": "0.46568868", "text": "protected void createDeAnnotations() {\n String source = \"http://de.hub.clickwatch.specificmodels\";\t\t\n addAnnotation\n (this, \n source, \n new String[] {\n \"handler_class\", \"Bcast_stats\",\n \"handler_name\", \"device_wifi/link_stat/bcast_stats\"\n });\t\t\n addAnnotation\n (bcast_statsEClass, \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler\"\n });\t\t\n addAnnotation\n (getBcast_stats_Entry(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject\",\n \"IsCopy\", \"false\"\n });\t\t\n addAnnotation\n (entryEClass, \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject\"\n });\t\t\n addAnnotation\n (getEntry_Text(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/text|text:\"\n });\t\t\n addAnnotation\n (getEntry_Link(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject\",\n \"IsCopy\", \"false\"\n });\t\t\n addAnnotation\n (getEntry_From(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/from|from:\"\n });\t\t\n addAnnotation\n (getEntry_Time(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/time|time:\"\n });\t\t\n addAnnotation\n (getEntry_Seq(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/seq|seq:\"\n });\t\t\n addAnnotation\n (getEntry_Period(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/period|period:\"\n });\t\t\n addAnnotation\n (getEntry_Tau(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/tau|tau:\"\n });\t\t\n addAnnotation\n (linkEClass, \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject\"\n });\t\t\n addAnnotation\n (getLink_Text(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/text|text:\"\n });\t\t\n addAnnotation\n (getLink_Link_info(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/link_info|link_info:Link_info|EObject\",\n \"IsCopy\", \"false\"\n });\t\t\n addAnnotation\n (getLink_To(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/to|to:\"\n });\t\t\n addAnnotation\n (getLink_Seq(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/seq|seq:\"\n });\t\t\n addAnnotation\n (getLink_Period(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/period|period:\"\n });\t\t\n addAnnotation\n (getLink_Tau(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/tau|tau:\"\n });\t\t\n addAnnotation\n (getLink_Last_rx(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/last_rx|last_rx:\"\n });\t\t\n addAnnotation\n (link_infoEClass, \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/link_info|link_info:Link_info|EObject\"\n });\t\t\n addAnnotation\n (getLink_info_Size(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/link_info|link_info:Link_info|EObject/size|size:\"\n });\t\t\n addAnnotation\n (getLink_info_Rate(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/link_info|link_info:Link_info|EObject/rate|rate:\"\n });\t\t\n addAnnotation\n (getLink_info_Fwd(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/link_info|link_info:Link_info|EObject/fwd|fwd:\"\n });\t\t\n addAnnotation\n (getLink_info_Rev(), \n source, \n new String[] {\n \"target_id\", \"Bcast_stats|Handler/entry|entry:Entry|EObject/link|link:Link|EObject/link_info|link_info:Link_info|EObject/rev|rev:\"\n });\n }", "title": "" }, { "docid": "c4a3ab00c4dc215d4e1819dcb2802e33", "score": "0.46557236", "text": "protected void mapAttrs(VariazioneDiBilancio variazione, SiacTVariazione siacTVariazione) {\n\t\t// Does nothing\n\t}", "title": "" }, { "docid": "84c46284182f030f5bd60f62c99eece8", "score": "0.46466663", "text": "@Override\n\tpublic void setDirection(Direction direction) {\n\t\t\n\t}", "title": "" }, { "docid": "92ffa33a4826fc4234f495ea93175f00", "score": "0.4643277", "text": "public static void main(String[] args) {\n Annuaire a;\n Section a1 = new Section(\"Direction\");\n Section a2 = new Section(\"Comptabilite\");\n Section a3 = new Section(\"Autre\");\n a1.addContact(a2);\n a = new Annuaire(\"annuaire A\", a1);\n a1.addContact(a3);\n Section a4 = new Section(\"Tresorerie\");\n a2.addContact(a4);\n Personnel p1 = new Personnel.BuilederPersonnel(\"Hakim\", \"PDG\", \"0758841701\").build();\n a1.addContact(p1);\n Personnel p2 = new Personnel.BuilederPersonnel(\"Hamid\", \"Responsable suivis\", \"0758841701\")\n .build();\n a2.addContact(p2);\n Personnel p3 = new Personnel.BuilederPersonnel(\"OUEDRAOGO\", \"coursier\", \"0758841701\").build();\n Personnel p5 = new Personnel.BuilederPersonnel(\"OUEDRAOGO\", \"coursier\", \"0758841701\").build();\n Personnel p4 = new Personnel.BuilederPersonnel(\"Latifa\", \"tresoriere\", \"0758841701\").build();\n a3.addContact(p3);\n a4.addContact(p4);\n a3.addContact(p5);\n a.hierarchicPrint();\n a.groupPrint();\n\n }", "title": "" }, { "docid": "534d7440eed680651941ae15ff48d33a", "score": "0.46398056", "text": "@Override\n public void visitNavigation(ExpNavigation exp) {\n // Est-ce une navigation mettant en œuvre le rôle pour lequel on\n // construit le prédicat ?\n MNavigableElement destination = exp.getDestination();\n if (destination == role.getmNavigableEnd()) {\n usingRole = true;\n }\n else if (fromSelf) {\n String nomRole = destination.nameAsRolename();\n Role dependance = modele.getRole(nomRole);\n predicat.addRoleDependant(dependance);\n }\n fromSelf = false;\n\n // Visiter le membre gauche (collection initiale)\n Iterable<Expression> childExpressions = exp.getChildExpressions();\n Expression depart = childExpressions.iterator().next();\n depart.processWithVisitor(this);\n Navigation navigation;\n if (usingRole) {\n // NON : si l'association est de cardinalité *, il faut\n // créer une jointure\n if (destination instanceof MAssociationEnd) {\n MAssociationEnd associationEnd = (MAssociationEnd)destination;\n MMultiplicity multiplicity = associationEnd.multiplicity();\n if (multiplicity.isCollection()) {\n navigation = new Jointure();\n }\n else {\n navigation = new NavigationDansPredicat();\n }\n }\n else {\n navigation = new NavigationDansPredicat();\n }\n }\n else {\n // TODO : vérifier que la source ne peut être de multiplicité\n // n (le compilateur devrait placer un \"collect\" dans ce cas)\n navigation = new NavigationDansCode();\n if (destination instanceof MAssociationEnd) {\n MAssociationEnd associationEnd = (MAssociationEnd)destination;\n MMultiplicity multiplicity = associationEnd.multiplicity();\n if (multiplicity.isCollection()) {\n navigation.setCollection(true);\n }\n }\n }\n Instruction rangeInstruction = instructions.get(depart);\n if (usingRole) {\n navigation.setNomVariableDepart(role.getNomRole());\n }\n else {\n navigation.setNomVariableDepart(rangeInstruction.getNomVariable());\n }\n navigation.setTypeVariableDepart(rangeInstruction.getTypeVariable());\n\n Type type = exp.type();\n if (type instanceof CollectionType) {\n CollectionType coll = (CollectionType) type;\n type = coll.elemType();\n }\n navigation.setTypeVariable(type);\n String nameAsRolename = destination.nameAsRolename();\n if (usingRole) {\n navigation.setNomVariable(nameAsRolename);\n }\n else {\n navigation.setNomVariable(nameAsRolename + \"_\" + compteurVariables++);\n }\n navigation.setNomRole(nameAsRolename);\n\n instructions.put(exp, navigation);\n predicat.addSousInstruction(navigation);\n }", "title": "" }, { "docid": "3b11d324b4affc97d46999c86137e648", "score": "0.46371517", "text": "public Direction getDirection() {\r\n return direction;\r\n }", "title": "" }, { "docid": "7e6884675d32992d7ffe86a9088cfa48", "score": "0.46369702", "text": "public FieldInfo relationshipField(String relationshipName, String relationshipDirection, boolean strict) {\n for (FieldInfo fieldInfo : relationshipFields()) {\n String relationship = strict ? fieldInfo.relationshipTypeAnnotation() : fieldInfo.relationship();\n if (relationshipName.equalsIgnoreCase(relationship)) {\n if(((fieldInfo.relationshipDirection(Relationship.OUTGOING).equals(Relationship.INCOMING) || fieldInfo.relationshipDirection(Relationship.OUTGOING).equals(Relationship.UNDIRECTED))&& (relationshipDirection.equals(Relationship.INCOMING)))\n || (relationshipDirection.equals(Relationship.OUTGOING) && !(fieldInfo.relationshipDirection(Relationship.OUTGOING).equals(Relationship.INCOMING)))) {\n return fieldInfo;\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "214d5db3f6688eb2e7fe0ad575206bfc", "score": "0.46357414", "text": "public void correUp() {\n currentY=currentY+SPOSTAMENTO/2;\n\n //riposiziono coerentemente il rettangolo che borda il personaggio\n contornoPersonaggio.setLocation(currentX, currentY);\n\n //cambio l'immagine corrente dell'animazione\n setFrameNumber();\n immagineCorrente=corri_a_Down[numeroImmagineCorrente]; // Corri_a_Up\n\n //incremento il contatore dei piskel\n contatoreMosse++;\n \n }", "title": "" }, { "docid": "6499b291d048a60344681afc233bfe9d", "score": "0.46334255", "text": "public interface DirectionContext {\n Direction getDirection();\n}", "title": "" }, { "docid": "9326c53f8cfb775dc3c634b1ece9f894", "score": "0.46294463", "text": "Attendant(){\n\n }", "title": "" }, { "docid": "60caad74b6ea651c3c8e60ec91296bdc", "score": "0.46257126", "text": "@Override\r\n\tpublic void aceita(Visitor impressora) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4b23e3f804d23f1e900b77dee6eb43f6", "score": "0.46242586", "text": "public int getDirection(){\n\t\t\treturn direction;\n\t\t}", "title": "" }, { "docid": "fc47d62f383f5ec237bb9f11a5e95b50", "score": "0.46239167", "text": "public void adjustDirPro(){\n\t\tArrayList<Location> allLocs = getGrid().getOccupiedLocations();\n\t\tLocation currLoc = getLocation();\n\t\tfor(Location loc : allLocs){\n\t\t\tActor temp = getGrid().get(loc);\n\t\t\tif(isGoal(temp)){\n\t\t\t\tif(loc.getRow() > currLoc.getRow()){\n\t\t\t\t\tdirProbability[2] += 5;\n\t\t\t\t}else {\n\t\t\t\t\tdirProbability[0] += 5;\n\t\t\t\t}\n\t\t\t\tif(loc.getCol() > currLoc.getCol()){\n\t\t\t\t\tdirProbability[1] += 5;\n\t\t\t\t}else {\n\t\t\t\t\tdirProbability[3] += 5;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "23da80e7e661e7a6b046b687120dabee", "score": "0.46224982", "text": "public void createRelation(Relation relation) {\n\t\tfinalString.append(relation.classFrom.getName().replace('/', '.'));\r\n\t\tfinalString.append(relation.classFromCardinal);\r\n\t\tfinalString.append(this.relationMap.get(relation.type));\r\n\t\tfinalString.append(relation.classToCardinal);\r\n\t\tfinalString.append(relation.classTo.getName().replace('/', '.'));\r\n\t\tString label = null;\r\n\t\tString test = null;\r\n\t\tint priority = -1;\r\n\t\tfor(IDetector dp : this.principleDetection.keySet()) {\r\n\t\t\ttest = checkDetectorsForLabel(relation,dp);\r\n\t\t\tif(test!=null && this.principleDetection.get(dp)>priority) {\r\n\t\t\t\tpriority = this.principleDetection.get(dp);\r\n\t\t\t\tlabel = test;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(label != null) {\r\n\t\t\tfinalString.append(\" :\" + label);\r\n\t\t}\r\n\t\tfinalString.append(\"\\n\");\r\n\t}", "title": "" }, { "docid": "99e431446be6cd01ecefe0bb3be72104", "score": "0.46136174", "text": "@Override\r\n\tpublic void buildAtributes(ArrayList<Atribut> atrs) {\r\n\t\tnewTable.setPolja(atrs);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "03ad94dd86bf2becd4fd0a17461d0f6e", "score": "0.4604065", "text": "public void populateAttributes();", "title": "" }, { "docid": "9a0249d058b81f6301b1793c4aea2614", "score": "0.45974937", "text": "public String getMailetInfo() {\n return \"Redirect Mailet\";\n }", "title": "" }, { "docid": "1d4e09d6f77bcc6b5d2a9b9e2a6c2d8b", "score": "0.45959333", "text": "protected void setPropagationEffectParams() {\n\n\t\tif ( (this.site != null) && (this.eqkRupture != null)) {\n\t\t\tdistanceRupParam.setValue(eqkRupture, site);\n\t\t}\n\t}", "title": "" }, { "docid": "50d860561cd732a623b843dd40bf5b36", "score": "0.45946872", "text": "private void createPersonAttributes(HttpServletRequest request, Person p) {\n PersonService ps = Context.getPersonService();\n PersonAttribute pa_civilStatus = null, paCs = null, pa_educationLevel = null, paEl = null,\n pa_mainActivity = null, paMa = null;\n PersonAttribute phoneNumber = new PersonAttribute();\n PersonAttribute peerEducator = new PersonAttribute();\n PersonAttribute peerEducatorPhoneNumber = new PersonAttribute();\n PersonAttribute contactPerson = new PersonAttribute();\n PersonAttribute contactPersonPhoneNumber = new PersonAttribute();\n\n phoneNumber.setAttributeType(Context.getPersonService()\n .getPersonAttributeTypeByUuid(MoHOrderEntryBridgeConstants.PERSONATTRIBUTE_UUID_PHONENUMBER));\n phoneNumber.setValue(request.getParameter(\"phoneNumber\"));\n peerEducator.setAttributeType(Context.getPersonService()\n .getPersonAttributeTypeByUuid(MoHOrderEntryBridgeConstants.PERSONATTRIBUTE_UUID_PEER_EDUCATOR_NAME));\n peerEducatorPhoneNumber.setAttributeType(Context.getPersonService().getPersonAttributeTypeByUuid(\n MoHOrderEntryBridgeConstants.PERSONATTRIBUTE_UUID_PEER_EDUCATOR_PHONENUMBER));\n peerEducator.setValue(request.getParameter(\"peerEducator\"));\n peerEducatorPhoneNumber.setValue(request.getParameter(\"peerEducatorPhoneNumber\"));\n contactPerson.setAttributeType(Context.getPersonService()\n .getPersonAttributeTypeByUuid(PERSONATTRIBUTE_UUID_CONTACTPERSON_NAME));\n contactPersonPhoneNumber.setAttributeType(Context.getPersonService().getPersonAttributeTypeByUuid(PERSONATTRIBUTE_UUID_CONTACTPERSON_PHONENUMBER));\n contactPerson.setValue(request.getParameter(\"contactPerson\"));\n contactPersonPhoneNumber.setValue(request.getParameter(\"contactPersonPhoneNumber\"));\n\n try {\n if (StringUtils.isNotBlank(phoneNumber.getValue())) {\n setBasicOpenMRSDataProperties(phoneNumber);\n p.addAttribute(phoneNumber);\n }\n if (StringUtils.isNotBlank(peerEducator.getValue())) {\n setBasicOpenMRSDataProperties(peerEducator);\n p.addAttribute(peerEducator);\n }\n if (StringUtils.isNotBlank(peerEducatorPhoneNumber.getValue())) {\n setBasicOpenMRSDataProperties(peerEducatorPhoneNumber);\n p.addAttribute(peerEducatorPhoneNumber);\n }\n if (StringUtils.isNotBlank(contactPerson.getValue())) {\n setBasicOpenMRSDataProperties(contactPerson);\n p.addAttribute(contactPerson);\n }\n if (StringUtils.isNotBlank(contactPersonPhoneNumber.getValue())) {\n setBasicOpenMRSDataProperties(contactPersonPhoneNumber);\n p.addAttribute(contactPersonPhoneNumber);\n }\n\n paCs = p.getAttribute(VCTConfigurationUtil.getCivilStatusAttributeTypeId());\n pa_civilStatus = (paCs == null) ? new PersonAttribute() : paCs;\n\n if (request.getParameter(\"civilStatus\").compareToIgnoreCase(\"0\") != 0) {\n if (null == paCs) {\n pa_civilStatus = new PersonAttribute();\n pa_civilStatus.setAttributeType(\n ps.getPersonAttributeType(VCTConfigurationUtil.getCivilStatusAttributeTypeId()));\n pa_civilStatus.setCreator(Context.getAuthenticatedUser());\n pa_civilStatus.setDateCreated(new Date());\n pa_civilStatus.setValue(request.getParameter(\"civilStatus\"));\n pa_civilStatus.setUuid(UUID.randomUUID().toString());\n\n p.addAttribute(pa_civilStatus);\n } else {\n pa_civilStatus.setValue(request.getParameter(\"civilStatus\"));\n pa_civilStatus.setDateChanged(new Date());\n pa_civilStatus.setChangedBy(Context.getAuthenticatedUser());\n }\n\n }\n\n paEl = p.getAttribute(VCTConfigurationUtil.getEducationLevelAttributeTypeId());\n if (request.getParameter(\"educationLevel\").compareToIgnoreCase(\"0\") != 0) {\n if (paEl == null) {\n pa_educationLevel = new PersonAttribute();\n pa_educationLevel.setAttributeType(\n ps.getPersonAttributeType(VCTConfigurationUtil.getEducationLevelAttributeTypeId()));\n pa_educationLevel.setCreator(Context.getAuthenticatedUser());\n pa_educationLevel.setDateCreated(new Date());\n pa_educationLevel.setValue(request.getParameter(\"educationLevel\"));\n pa_educationLevel.setUuid(UUID.randomUUID().toString());\n\n p.addAttribute(pa_educationLevel);\n } else {\n pa_educationLevel = paEl;\n pa_educationLevel.setValue(request.getParameter(\"educationLevel\"));\n pa_educationLevel.setDateChanged(new Date());\n pa_educationLevel.setChangedBy(Context.getAuthenticatedUser());\n }\n }\n\n paMa = p.getAttribute(VCTConfigurationUtil.getMainActivityAttributeTypeId());\n pa_mainActivity = (null == paMa) ? new PersonAttribute() : paMa;\n\n if (request.getParameter(\"mainActivity\").compareToIgnoreCase(\"0\") != 0) {\n if (paMa == null) {\n pa_mainActivity = new PersonAttribute();\n pa_mainActivity.setAttributeType(\n ps.getPersonAttributeType(VCTConfigurationUtil.getMainActivityAttributeTypeId()));\n pa_mainActivity.setCreator(Context.getAuthenticatedUser());\n pa_mainActivity.setDateCreated(new Date());\n pa_mainActivity.setValue(request.getParameter(\"mainActivity\"));\n pa_mainActivity.setUuid(UUID.randomUUID().toString());\n\n p.addAttribute(pa_mainActivity);\n } else {\n pa_mainActivity.setValue(request.getParameter(\"mainActivity\"));\n pa_mainActivity.setDateChanged(new Date());\n pa_mainActivity.setChangedBy(Context.getAuthenticatedUser());\n }\n }\n } catch (Exception ex) {\n log.error(\">>>>VCT>>REGISTRATION>> Fail to create/update person_attributes : \" + ex.getMessage());\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "c94116d85ba20863d3490a3a1ee8a618", "score": "0.4590336", "text": "public Vector getRelationships() { return relationships; }", "title": "" }, { "docid": "79227e8056d73743981840e716190202", "score": "0.45897502", "text": "@Override\r\n\tpublic void setDirection(Direction d)\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "48aeefc30820e0cee8d943927281d508", "score": "0.45869938", "text": "@Override\r\n\tprotected void createMovementDirections() \r\n\t{\n\t}", "title": "" }, { "docid": "86a179dcc9a2b9fd4d2056782d793b72", "score": "0.45866784", "text": "protected void setPropagationEffectParams() {\n\n\t\tif ((this.site != null) && (this.eqkRupture != null)) {\n\t\t\tdistanceRupParam.setValue(eqkRupture, site);\n\t\t}\n\t}", "title": "" }, { "docid": "86fdac84eacd514fbcbe55edc4f9df3a", "score": "0.45813456", "text": "IDimention getDimention();", "title": "" }, { "docid": "149b88ba0cdd608157a69ab1a5a0f5e1", "score": "0.45747364", "text": "public void mFollowStat_테스트() {\n\t}", "title": "" }, { "docid": "1ef5666a7b540e1209e9052cf8447608", "score": "0.4572534", "text": "private void bougerVersDirection()\n\t{\n\t\tCellule cell = getNextCellule(direction);\n\t\tif(cell!=null && !cell.isRobot()) {\n\t\t\tCellule[][] grille = terrain.getGrille();\n\t\t\tgrille[p.x][p.y].setRobot(false);\n\t\t\tp.x = cell.getX();\n\t\t\tp.y = cell.getY();\n\t\t\tdessin.setCenterX((p.x+1) * pas + (pas / 2));\n\t\t\tdessin.setCenterY((p.y+2) * pas - (pas / 2));\n\t\t\tcell.setRobot(true);\n//\t\t\tif (this.isInRange()) {\n//\t\t\t\tthis.getDessin().setVisible(true);\n//\t\t\t} else {\n//\t\t\t\tthis.getDessin().setVisible(false);\n//\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3ac86d5e8475abe9048b40f20b0d0cdd", "score": "0.4571832", "text": "public abstract void directionSud(final Grille grille);", "title": "" }, { "docid": "9a71065f0faab4072facf92c310fe2b4", "score": "0.45691198", "text": "public double getFollowDistance();", "title": "" }, { "docid": "e6ec74755fa3226a00f3e993e5a6df41", "score": "0.4567293", "text": "public Direction getDirection() {\n return direction;\n }", "title": "" }, { "docid": "e6ec74755fa3226a00f3e993e5a6df41", "score": "0.4567293", "text": "public Direction getDirection() {\n return direction;\n }", "title": "" }, { "docid": "e6ec74755fa3226a00f3e993e5a6df41", "score": "0.4567293", "text": "public Direction getDirection() {\n return direction;\n }", "title": "" }, { "docid": "e6ec74755fa3226a00f3e993e5a6df41", "score": "0.4567293", "text": "public Direction getDirection() {\n return direction;\n }", "title": "" }, { "docid": "562dda7dd8ee22af3e657a8242fe374d", "score": "0.4563352", "text": "float getAttraction_x();", "title": "" }, { "docid": "b0cb65898ac0d49f4ca49b2fde1d48af", "score": "0.45617896", "text": "public int getDirection()\r\n\t{\r\n\t\treturn direction;\r\n\t}", "title": "" }, { "docid": "4c6e758f619a4f409ca0b923d091ef42", "score": "0.45560586", "text": "public ArrayList<Atribut> getAtributes(){\r\n\t\treturn newTable.getPolja();\r\n\t}", "title": "" }, { "docid": "8a2a1b0f47c586618680a042b3579d5b", "score": "0.45558476", "text": "public Map getAttributes() {\n/* 82 */ return this.aci.getAttributes();\n/* */ }", "title": "" }, { "docid": "cfb9ff2f6b0ee078173d8dd9f08760c8", "score": "0.45514718", "text": "public InverseLinksList<IfcDraughtingCalloutRelationship> getIsRelatedFromCallout() {\n return isRelatedFromCallout;\n\n }", "title": "" }, { "docid": "6a2e8f261e1565bc07304be036b579c9", "score": "0.45501438", "text": "public void afficher() {\n\t\tIterator<Personnage> it;\n\t\tit = lt.iterator();\n\t\tSystem.out.println(nom);\n\t\twhile(it.hasNext()) {\n\t\t\tSystem.out.println(it.next().allInfo());\n\t\t}\n\t}", "title": "" }, { "docid": "709fe1ebb089d22088a4dd74d0fe427d", "score": "0.45477915", "text": "Attribute getToAttribute();", "title": "" }, { "docid": "764329c1c74c89008ad5825243849e50", "score": "0.45389345", "text": "RoleFourniRPC getRolefourniserveur();", "title": "" }, { "docid": "b010ca293caba6e8bc9de89394daa1ef", "score": "0.4538189", "text": "public abstract void dilatation(int dist, int ref);", "title": "" }, { "docid": "514c6aac6316ddba6815a47fdf10ffd8", "score": "0.45369112", "text": "public boolean getDirection() { return direction; }", "title": "" }, { "docid": "4206349646d9c657b7ae2c32aa7523fb", "score": "0.45364627", "text": "@Override\n public String toString() {\n return \"<Relation[causalAgent=\" + this.agent + \", like=\" + this.like + \"]>\";\n }", "title": "" }, { "docid": "842ec6c97f67a09fe7704b7d68996079", "score": "0.45308974", "text": "TypeDataTypeAngle getDirectionProvenanceVent();", "title": "" }, { "docid": "3b7a0012e6cb7915ab1797aa48bcc298", "score": "0.45298657", "text": "protected void populateDirectFollowingRelations(CoverabilityGraph coverabilityGraph) {\n\t\tfor (State s : coverabilityGraph.getNodes()) {\r\n\t\t\tSystem.out.println(\"s is : \" + s.toString());\r\n\t\t\tfor (Transition first : TSUtils.getIncomingNonTau(s, new HashSet<Transition>())) {\r\n\t\t\t\tSystem.out.println(\"first is : \" + first.toString());\r\n\t\t\t\tfor (Transition second : TSUtils.getOutgoingNonTau(s, new HashSet<Transition>())) {\r\n\t\t\t\t\tSystem.out.println(\"second is : \" + second.toString());\r\n\t\t\t\t\tallowedDirectFollowingRelations.add(new DirectFollowingRelation(first.getLabel(), second.getLabel()));\r\n\t\t\t\t\t//System.out.println(allowedDirectFollowingRelations.toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(allowedDirectFollowingRelations.toString());\r\n\t}", "title": "" }, { "docid": "3c98374129eb1587d4e3aa0554bf42b0", "score": "0.45291656", "text": "public void verAtributos(){\r\n if(cabeza!=null){\r\n Atributo temp = cabeza;\r\n for(int i = 0;i<size;i++){\r\n System.out.print(temp.obtenerNombre()+\", \");\r\n temp = temp.obtenerSiguiente();\r\n }\r\n }else{\r\n System.out.println(\"No hay atributos\");\r\n }\r\n System.out.println(\"\");\r\n }", "title": "" } ]
4e5caab0dd80fab94bdcdee7c21df42b
Deletes a single row in the historial_movil table.
[ { "docid": "ca8adafdca4ad0f7edf5b9a50bd3dc21", "score": "0.6745733", "text": "public void delete(HistorialMovilPk pk) throws HistorialMovilDaoException;", "title": "" } ]
[ { "docid": "452cd97152c44af17d7335190836529b", "score": "0.6745995", "text": "int deleteByPrimaryKey(String hist_id);", "title": "" }, { "docid": "d3947e25982660dd27303aba4f5a703a", "score": "0.627795", "text": "@Override\n public void delete(Historial historial) {\n }", "title": "" }, { "docid": "d1fb22596a92cb322e029052cdc21f27", "score": "0.60134745", "text": "@DeleteMapping(\"/pl-carro-hists/{id}\")\n @Timed\n public ResponseEntity<Void> deletePlCarroHist(@PathVariable Long id) {\n log.debug(\"REST request to delete PlCarroHist : {}\", id);\n plCarroHistRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "title": "" }, { "docid": "999f55019c8d09db4c03ac8a62f74a29", "score": "0.59997064", "text": "public void delete(int row) {\r\n\t\tCurriculumLogEntry.remove(row);\r\n\t\ttableChanged(new TableModelEvent(this, row, row, TableModelEvent.ALL_COLUMNS, TableModelEvent.DELETE));\r\n\t}", "title": "" }, { "docid": "04a5f57067741ad9ca728d4aa4808f03", "score": "0.58954656", "text": "int deleteByPrimaryKey(HabAppHabitLog record);", "title": "" }, { "docid": "62e3c6c19987c805f2485426ad9905e2", "score": "0.5817971", "text": "public void deleteOne(Movie movie) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, \"title = ?\", new String[] { String.valueOf(movie.getTitle()) });\n db.close();\n }", "title": "" }, { "docid": "b48d3a42ab493116b091ac905e1ec7bd", "score": "0.58083564", "text": "public HistorialMovil findByPrimaryKey(int idHistorialMovil) throws HistorialMovilDaoException;", "title": "" }, { "docid": "c77f02f1da77f14dc9a9f0c30f3283c0", "score": "0.58009034", "text": "void delete() throws HsqlException {\n\n Record.memoryRecords++;\n\n hasChanged = false;\n\n tTable.removeRow(this);\n\n rNext = null;\n rLast = null;\n tTable = null;\n nPrimaryNode = null;\n }", "title": "" }, { "docid": "2c9addb322ded168fe8c37abf54ae5bf", "score": "0.577093", "text": "Trabajador delete(Trabajador p);", "title": "" }, { "docid": "c3c338ad03f9d028db954eee23dae465", "score": "0.5751995", "text": "Integer deleteByHouseId(Integer houseId);", "title": "" }, { "docid": "2b8a4a7e50ec55c0d0df653128f032e5", "score": "0.56665415", "text": "private void deleteDetailSaldo(){\n query = \"DELETE FROM saldo ORDER BY id DESC LIMIT 1\";\n try{\n st.execute(query);\n }catch(SQLException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "09b03d3ec48c534d6b052d3498d418cd", "score": "0.5623673", "text": "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete HistoriaClinica : {}\", id);\n historiaClinicaRepository.delete(id);\n }", "title": "" }, { "docid": "d3bcee2475fe71daded2a2ec2b024702", "score": "0.56051016", "text": "public void deleteLivre(int id);", "title": "" }, { "docid": "756062406a88d97b9a0af7824150925c", "score": "0.558398", "text": "public int deleteOne(Long id);", "title": "" }, { "docid": "bbfad9a23aba65850c5d02ed78cce7b0", "score": "0.5550091", "text": "int deleteByPrimaryKey(Integer operateLogId);", "title": "" }, { "docid": "3e88e37c5a0ec702eb0f5dd348c005e4", "score": "0.5537992", "text": "@Override\n public ILesson removeLesson(ILesson l)\n {\n //First ensure that the lesson is in the database\n getLesson(l.getID());\n\n try(Connection c = connection())\n {\n //Construct and execute the SQL delete statement\n PreparedStatement st = c.prepareStatement(\"DELETE FROM \" + tableName + \" WHERE lessonID = ?\");\n st.setInt(1, l.getID());\n st.executeUpdate();\n\n return l;\n }\n catch(SQLException e)\n {\n throw new HSQLDBException(e);\n }\n }", "title": "" }, { "docid": "76d378d4ec51fc904e6b2bfbf8220311", "score": "0.5537756", "text": "public void deleteMovie(int movieId);", "title": "" }, { "docid": "7da69897290dd7a9a4e4912d51ee0cf4", "score": "0.5533113", "text": "int deleteByPrimaryKey(String logCd);", "title": "" }, { "docid": "e677215ba0d94d2757b3eeefe7cb4a44", "score": "0.5529269", "text": "public void eliminarPieza(Long id);", "title": "" }, { "docid": "e4daef0234e2262e0ed897484f92a7d7", "score": "0.5518603", "text": "@Override\n\tpublic void eliminarHistorialEncomienda(Integer idHistorial)\n\t\t\tthrows Exception {\n\t\thistorialEncomiendaMapper.eliminarHistorialEncomienda(idHistorial); \n\t}", "title": "" }, { "docid": "06a3b7bcd432672ede37a14d8988b228", "score": "0.550971", "text": "private void deleteMemo() {\n // Create database interaction objects\n MemoDbHelper mDbHelper = new MemoDbHelper(this);\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n // Create the where clause, so we delete only the specified row\n // This row id is sent from the previous activity via an intent\n String whereClause = MemoContract.MemoTableEntry._ID + \"=?\";\n String[] selectionArgs = { \"\" + getIntent().getIntExtra(MemoContract.MemoTableEntry._ID, -1) };\n\n // delete the row, returning the number of rows deleted (should be 1 or 0)\n long newRowId = db.delete(MemoContract.MemoTableEntry.TABLE_NAME, whereClause, selectionArgs);\n\n // This is for debugging, can be commented out and/or changed to logging\n if(newRowId > 0) {\n //Toast.makeText(getApplicationContext(), \"Memo deleted: \" + newRowId, Toast.LENGTH_SHORT).show();\n }\n else {\n //Toast.makeText(getApplicationContext(), \"Error with deleting memo\", Toast.LENGTH_SHORT).show();\n Log.v(\"MemoEditActivity\", \"Error with deleting memo\");\n }\n\n }", "title": "" }, { "docid": "788b79d41ac951b2b8358f124b8cd378", "score": "0.55065376", "text": "void deleteById(Long id);", "title": "" }, { "docid": "788b79d41ac951b2b8358f124b8cd378", "score": "0.55065376", "text": "void deleteById(Long id);", "title": "" }, { "docid": "eca3fd6e4223fae5562e584a51127b9c", "score": "0.55054975", "text": "void deleteById(long id);", "title": "" }, { "docid": "d8405d5ebebe6abc0bfb2e43f5ada6bb", "score": "0.5494207", "text": "public void deleteById(Long id);", "title": "" }, { "docid": "e5863f44cc77f9c0b472c9d4c4e5e8ef", "score": "0.5476859", "text": "void eliminar(Long id);", "title": "" }, { "docid": "e5863f44cc77f9c0b472c9d4c4e5e8ef", "score": "0.5476859", "text": "void eliminar(Long id);", "title": "" }, { "docid": "e5863f44cc77f9c0b472c9d4c4e5e8ef", "score": "0.5476859", "text": "void eliminar(Long id);", "title": "" }, { "docid": "b780c16d66bb4b8da63431c311acccc2", "score": "0.54743695", "text": "@Query(\"delete from trophy where id = :id\")\n void delete(long id);", "title": "" }, { "docid": "b23ffae9ee47dcc08fc9a1f24ee796b7", "score": "0.547347", "text": "@Override\r\n\t//删除一条\r\n public void delete(int id) {\n td.delete(id);\r\n\t}", "title": "" }, { "docid": "272253697406eb20c8b428da98e18531", "score": "0.546573", "text": "int deleteByPrimaryKey(Long frequId);", "title": "" }, { "docid": "507b2b42646d14ed2867d01717b86eb3", "score": "0.54630953", "text": "@Override\r\n\tpublic void eliminar(SolicitudMaterial entidad) {\n\t\tISolicitudMaterialRepository.delete(entidad);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9a352d4857eac4cbbd328e0200c44b0b", "score": "0.5462517", "text": "int deleteEducationHistory(int id);", "title": "" }, { "docid": "61f1b03c3d26682bd7e901031b90e202", "score": "0.5455986", "text": "public void excluir(Livro livro) {\n\n\t\tString s = \"delete from livro where id_livro = \" + livro.getId();\n\n\t\ttry {\n\n\t\t\tcon = Conexao.criarConexao();\n\n\t\t\tstm = con.createStatement();\n\n\t\t\t// executa o comando para excluir o livro da tabela\n\n\t\t\tstm.executeUpdate(s);\n\n\t\t}\n\n\t\tcatch (SQLException e) {\n\n\t\t\tSystem.out.println(\"Erro ao tentar excluir na tabela\");\n\n\t\t}\n\n\t\tfinally {\n\n\t\t\tthis.fecha(rs, stm, con);\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "5c1faecd128ca77bbc2f352ffdc96247", "score": "0.54403305", "text": "@Override\n\tpublic void delete(String listNo) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tsession.beginTransaction();\n\t\tString hql = \"DELETE Curriculum WHERE listNo=?\";\n\t\tQuery q = session.createQuery(hql);\n\t\tq.setParameter(0, listNo);\n\t\tq.executeUpdate();\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t}", "title": "" }, { "docid": "9b8909f2dad664fcf0b097a82147012a", "score": "0.5440066", "text": "void delete( Integer id );", "title": "" }, { "docid": "9b8909f2dad664fcf0b097a82147012a", "score": "0.5440066", "text": "void delete( Integer id );", "title": "" }, { "docid": "803c7e599cf6f16dd1178750349ab8e8", "score": "0.54383177", "text": "void delete( Long id );", "title": "" }, { "docid": "efd7a94b4c9a7aacff9a6e513c6f99c8", "score": "0.5436485", "text": "void delete(Movie deleted);", "title": "" }, { "docid": "6aeb3881d78b60d91d60bd2a6b04d797", "score": "0.543527", "text": "public void delete(Long id) {\n log.debug(\"Request to delete HistoricoPrecoCombustivel : {}\", id);\n historicoPrecoCombustivelRepository.deleteById(id);\n }", "title": "" }, { "docid": "8214a0c61f696c3053602808b21dc8ad", "score": "0.54345495", "text": "@Override\n\tpublic Boolean delete(Prestamo prestamo) {\n\t\treturn pdao.delete(prestamo);\n\t}", "title": "" }, { "docid": "3a528ad4cee568ff46864a481ff3e979", "score": "0.54320747", "text": "private void deleteRecord() {\n // get the data object\n FloodReportDataManager dman = FloodReportDataManager.getInstance();\n Map<String, FloodReportData> dataMap = dman.getReportData();\n FloodReportData data = dataMap.get(selectedLid);\n String where = \" where lid ='\" + data.getLid()\n + \"' and flood_event_id = \" + data.getFloodEventId();\n int status = dman.deleteFloodEvent(where);\n if (status == -1) {\n MessageBox mbe = new MessageBox(shell, SWT.OK | SWT.ERROR);\n mbe.setText(\"An Error Occurred\");\n mbe.setMessage(\"ERROR while attempting to delete flood event...\");\n mbe.open();\n } else {\n updateFloodList();\n }\n }", "title": "" }, { "docid": "653cba958c171eae0da091cdc2f3bfcc", "score": "0.5431904", "text": "@Override\n\tpublic int delete(long id) {\n\t\tPreparedStatement ps = null;\n\n\t\tString sql = \" DELETE FROM tbl_score WHERE s_id = ? \";\n\n\t\ttry {\n\t\t\tps = dbConn.prepareCall(sql);\n\t\t\tps.setLong(1, id);\n\t\t\tint ret = ps.executeUpdate();\n\t\t\t\n\t\t\tps.close();\n\t\t\treturn ret;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1cb832dd31b38c5ba5287c840390b2f8", "score": "0.543005", "text": "int deleteWorkHistory(int id);", "title": "" }, { "docid": "5766ca5ac1f34d161f4c74bff5fcdd4b", "score": "0.54288745", "text": "@Override\n\tpublic int deleteEntry(long rowID_) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "2fb1dc36a9b08f5cc497dc29d2f0225e", "score": "0.54259384", "text": "public int EliminarSalaHorario(int idCronoDelete) {\n int filasAfectadas = 0;\n try {\n Connection conexion = DriverManager.getConnection(CADENA, USER, PASS);\n PreparedStatement ps = conexion.prepareStatement(\"delete from salasHorarios where idSalaHorario = ?\");\n ps.setInt(1, idCronoDelete);\n filasAfectadas = ps.executeUpdate();\n\n ps.execute();\n ps.close();\n conexion.close();\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n return filasAfectadas;\n }", "title": "" }, { "docid": "b4ffa6355e6dca3c2eade4de16363f6c", "score": "0.5423824", "text": "public void delete(Thermistance t) {\n\t\t\n\t}", "title": "" }, { "docid": "d988cf83d9b394ba2644d0ffef8d03bb", "score": "0.5419678", "text": "public void delete(long id);", "title": "" }, { "docid": "d988cf83d9b394ba2644d0ffef8d03bb", "score": "0.5419678", "text": "public void delete(long id);", "title": "" }, { "docid": "1f7f7fdc029d4c3eb61dee2f0df6e55c", "score": "0.54131275", "text": "@Writer\n int deleteByPrimaryKey(Integer detailId);", "title": "" }, { "docid": "e703cc5b1a6c7053471691f3011f4c25", "score": "0.5410971", "text": "public void delete(Long id);", "title": "" }, { "docid": "e703cc5b1a6c7053471691f3011f4c25", "score": "0.5410971", "text": "public void delete(Long id);", "title": "" }, { "docid": "e703cc5b1a6c7053471691f3011f4c25", "score": "0.5410971", "text": "public void delete(Long id);", "title": "" }, { "docid": "e703cc5b1a6c7053471691f3011f4c25", "score": "0.5410971", "text": "public void delete(Long id);", "title": "" }, { "docid": "e703cc5b1a6c7053471691f3011f4c25", "score": "0.5410971", "text": "public void delete(Long id);", "title": "" }, { "docid": "b9a2a301e496e457fe665cd27ed86fef", "score": "0.5409842", "text": "@Override\n\tpublic void delete(int id) {\n\t\ttrainDao.delete(id);\n\t}", "title": "" }, { "docid": "961c9a640d1ac1d045407e920d03055c", "score": "0.54082876", "text": "public void deleteMovie(Movie movie) {\n String query = \"DELETE from Movie WHERE movieName = ?\";\n try (Connection connection = databaseConnector.getConnection()) {\n PreparedStatement preparedStatement = connection.prepareStatement(query);\n preparedStatement.setString(1, movie.getMovieName());\n preparedStatement.execute();\n } catch (SQLException e) {\n //TODO: give user the warning\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "76556f315f47188d8bf0a617364ebc7b", "score": "0.5404171", "text": "public void deleteIncomeItem(String id){\n database.delete(\"incometable\",\"oid = \" + id ,null);\n }", "title": "" }, { "docid": "66ce735933925110d6f7ab8f71f96cae", "score": "0.539968", "text": "Integer deleteHouseDiary(Integer id);", "title": "" }, { "docid": "96802b47de09512fdb9d6821637e57cb", "score": "0.5398047", "text": "public void deleteRecord(int id);", "title": "" }, { "docid": "6679967873e2c6cc171d689f1adb040d", "score": "0.5396566", "text": "private void deletePengeluaran(){\n query = \"DELETE FROM pengeluaran ORDER BY id_pengeluaran DESC LIMIT 1\";\n try{\n st.execute(query);\n }catch(SQLException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "9c8434c072a296f6fd77109aceb88f54", "score": "0.5392577", "text": "public void removeRow(int linha) {\n this.list.remove(linha);\n this.fireTableRowsDeleted(linha, linha);\n }", "title": "" }, { "docid": "681e8934ecabc49e8641c176a9a61216", "score": "0.53809685", "text": "public void deleteRow() {\n\r\n\t}", "title": "" }, { "docid": "10e3599cc01fa48ba4d39b8de616ed88", "score": "0.53749573", "text": "public void deleteHistoryByUserId(double userId) throws SQLException {\n Statement stmt = connection.createStatement();\r\n String sql1 = \"delete from istoric where id_utilizator =\" + userId;\r\n stmt.executeUpdate(sql1);\r\n }", "title": "" }, { "docid": "282b493a727ea3682f8e8bd7bb0b1c80", "score": "0.5374617", "text": "public void deleteVillage(Village village){\n\n SQLiteDatabase db = getWritableDatabase();\n db.execSQL(\"DELETE FROM \" + TABLE_VILLAGE + \";\");\n Log.d(TAG, \"Row Deleted in TABLE_VILLAGE\");\n }", "title": "" }, { "docid": "60afa03bf4a5993018b590ad0dad11a0", "score": "0.537461", "text": "public void delete(int fahrtId);", "title": "" }, { "docid": "a0a3a427a587258e11c5ce2b6483ef04", "score": "0.5369264", "text": "public void eliminar(Respuesta respuesta) throws IWDaoException;", "title": "" }, { "docid": "12f8e2e0cb66b7e0383a9f808d42ff59", "score": "0.53671986", "text": "public void removeItem(int row) {\n\t\tdbManager.executeUpdate(\"DELETE FROM el_real_proyecto.Eventos WHERE \" +\n\t\t\t\t\"(Eventos.ID='\"+ eventArray.get(row).getId() +\"' && Eventos.Nombre='\"+ eventArray.get(row).getNombre() +\"')\");\n\t\t\n\t\teventArray.remove(row);\n\t\t\n\t\tfireTableDataChanged();\n\t}", "title": "" }, { "docid": "c015c60f95d6ba5f3e329b8dfa4e2d59", "score": "0.5366145", "text": "public long eliminarSalonPorId (PersistenceManager pm, String idSalon)\n\t{\n Query q = pm.newQuery(SQL, \"DELETE FROM \" + pp.SALONES + \" WHERE id = ?\");\n q.setParameters(idSalon);\n return (long) q.executeUnique(); \n\t}", "title": "" }, { "docid": "3cacb9c4a22055d2fb14489c7e44c297", "score": "0.53651875", "text": "@Override\n\tpublic boolean delete(Motorista obj) throws SQLException {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" }, { "docid": "8fe046818857c6fdee7b9d203ef4ab19", "score": "0.5362288", "text": "void delete(Long id);", "title": "" } ]
41f92c8c7893808596c3a23cc50ea36e
Get the PoItemBean with the registered id.
[ { "docid": "9b21c3fde57bfa27b7d456baa397d6b1", "score": "0.6481099", "text": "public PoItems findById(String id) {\n try {\n createConnection();\n ResultSet rs = this.getStmt().executeQuery(this.getAllQuery() + \" where id='\" + id + \"';\");\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getErrorCode() + \":\" + e.getMessage());\n return new PoItems();\n }\n }", "title": "" } ]
[ { "docid": "17ab023e4626feef4363a816d209b28e", "score": "0.6857009", "text": "public MenuItemBean getItemById(long id);", "title": "" }, { "docid": "ceafa1b328e0d1454d0de68e8ae41978", "score": "0.6697228", "text": "public static ProductBean getItemWithId(int id) throws ClassNotFoundException, SQLException {\n\t\tConnection c = ConnectionUtility.getConnection();\r\n\t\tPreparedStatement ps = c.prepareStatement(\"Select * from product where id= ? \");\r\n\t\tps.setInt(1,id);\r\n\t\tResultSet rs = ps.executeQuery();\r\n\t\t ProductBean p=null;\r\n\t\t while(rs.next()){\r\n\t\t\t p=new ProductBean(rs.getInt(1),rs.getString(2),rs.getInt(3),rs.getString(4),rs.getString(5));\r\n\t\t\t return p;\r\n\t\t\t \r\n\t\t }\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6c1351846cac997c873eb8ddc166c785", "score": "0.63231117", "text": "public static FoodBean getFoodBean(int itemID) throws SQLException {\n\t\tString searchQuery = \"select * from fooditems where fooditemid ='\" + itemID + \"'\";\n\t\tcurrentCon = ConnectionManager.getConnection();\n\t\tstmt = currentCon.createStatement();\n\t\trs = stmt.executeQuery(searchQuery);\n\t\tFoodBean bean = new FoodBean();\n\t\twhile (rs.next()) {\n\t\t\tbean.setItemName(rs.getString(\"itemname\"));\n\t\t\tbean.setItemDescription(rs.getString(\"itemdescription\"));\n\t\t\tbean.setCalories(rs.getInt(\"calories\"));\n\t\t\tbean.setType(rs.getString(\"type\"));\n\t\t\tbean.setServingSize(rs.getString(\"servingsize\"));\n\t\t}\n\t\treturn bean;\n\n\t}", "title": "" }, { "docid": "b5565dc55b30d91ad423350d36ae67bf", "score": "0.61157274", "text": "@Override\n public TbItem getItemById(long itemId) {\n\n TbItemExample example = new TbItemExample();\n //添加查询条件\n TbItemExample.Criteria criteria = example.createCriteria();\n criteria.andIdEqualTo(itemId);\n List<TbItem> tbItems = itemMapper.selectByExample(example);\n if(tbItems != null && tbItems.size() > 0){\n return tbItems.get(0);\n }\n return null;\n }", "title": "" }, { "docid": "f4f92db5f9e4570cc3444775666b6f51", "score": "0.61098796", "text": "public Item getItemById(int id) {\n Session session = sessionFactory.openSession();\n Item item = session.get(Item.class, id);\n session.close();\n return item;\n }", "title": "" }, { "docid": "b717e1c78660150940cac2b9f11b66ba", "score": "0.6081457", "text": "@Override\r\n\tpublic DataBean get(int id) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4d815a581e0947bf711b2c0705d8d4f0", "score": "0.6047268", "text": "public T getObject() throws PersistenceException, NoSuchIdentifierException {\n T rtnObj = getObjectInKey(ObjectEnum.SINGLE_KEY.value(), ObjectEnum.DEFAULT_ID.value());\n if(rtnObj != null) {\n return (rtnObj);\n }\n throw new NoSuchIdentifierException(\"Unable to get bean. It may not have been created\");\n }", "title": "" }, { "docid": "06a232e10fbf1c6dc81e550553385304", "score": "0.59864837", "text": "public ItemModel getItem(Integer id);", "title": "" }, { "docid": "20f49e80a63c74e63e6ee42be2156ca5", "score": "0.59647906", "text": "public Item getItem(Integer id) {\n\t\treturn entityManager.find(Item.class, id);\n\t}", "title": "" }, { "docid": "9c36e5da629e872af59af9553907a07f", "score": "0.59562975", "text": "public WorkflowComponentInstancePersistenceItem get(Integer id) {\r\n return (WorkflowComponentInstancePersistenceItem)get(WorkflowComponentInstancePersistenceItem.class, id);\r\n }", "title": "" }, { "docid": "85049c8c966a503c12fc026c91d32a4e", "score": "0.59461164", "text": "public UserBean findByID(Long id) {\n\t\treturn userBeanDao.findByID(id);\r\n\t}", "title": "" }, { "docid": "732669169d90c050ccd38ae2aa11aff0", "score": "0.5879449", "text": "public UserPojo getById(int id){ \r\n\t\tUserPojo e=(UserPojo)template.get(UserPojo.class,id); \r\n\t return e; \r\n\t}", "title": "" }, { "docid": "bdc5bef7a1db64ec58e18286c4a9d7ee", "score": "0.5864642", "text": "public Item item(int id);", "title": "" }, { "docid": "acf66855a98b2fdc22a095c7310cee36", "score": "0.5860622", "text": "@Override\n @Transactional\n public E getPojoByPrimaryKey( Serializable id ) {\n return this.em.find( this.classToCast, id );\n }", "title": "" }, { "docid": "38d8a357939622ac5c3d21414a3111bf", "score": "0.5845952", "text": "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn workTongzhiBeans.get(arg0);\n\t}", "title": "" }, { "docid": "412e8b924a87c885fba5cc365211161d", "score": "0.58329815", "text": "@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _suburItemLocalService.getBeanIdentifier();\n\t}", "title": "" }, { "docid": "aafca6b49fab5414f918c19c2780ddb0", "score": "0.5818483", "text": "@Override\n\tpublic UserBean getById(Long Id) {\n\t\treturn dao.getById(Id);\n\t}", "title": "" }, { "docid": "91b6782576feb77376bab802e519f5d1", "score": "0.5806375", "text": "public Object getBean() throws PersistenceException;", "title": "" }, { "docid": "5d98e4761a144d189cbf38116917b3c7", "score": "0.57988966", "text": "Item findItemById(long id);", "title": "" }, { "docid": "c30e61a8f05977cc7e588354e7b5910b", "score": "0.5772525", "text": "public wodepinglunBean selectByPrimaryKey(Integer id) {\n wodepinglunBean key = new wodepinglunBean();\n key.setId(id);\n wodepinglunBean record = (wodepinglunBean) getSqlMapClientTemplate().queryForObject(\"wodepinglun.ibatorgenerated_selectByPrimaryKey\", key);\n return record;\n }", "title": "" }, { "docid": "10f287d0844ee8a9d36d3740955b69e9", "score": "0.5756097", "text": "public Item getItem(int id) {\r\n\t\tItem retItem = null;\r\n\t\tboolean found = false;\r\n\t\tint i = 0;\r\n\t\twhile (i < items.size() && !found) {\r\n\t\t\tif (items.get(i).getId() == id) {\r\n\t\t\t\tretItem = items.get(i);\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn retItem;\r\n\t}", "title": "" }, { "docid": "49d1b0ca1cffb96d1637def0b3939041", "score": "0.5746563", "text": "@Override\n\tpublic T getById(int id) {\n\t\treturn super.get(oriClass, id);\n\t}", "title": "" }, { "docid": "0a818f9938f4a05c903a642f97a69603", "score": "0.573794", "text": "AuctionItem findItem(Object id);", "title": "" }, { "docid": "95cb906b85582c84f51885c9c59c5cc4", "score": "0.57084525", "text": "public Object getById(Integer id) {\n\t\treturn bookDao.getById(id);\n\t}", "title": "" }, { "docid": "e5b11f58b01b358be26a9eb2b6b00f3e", "score": "0.57061875", "text": "@Override\n\tpublic Item getItemById(Long id) {\n\t\treturn itemRepository.findById(id).orElseThrow(() -> new ResourceNotFoundException(\"Item Id:\" + id));\n\t}", "title": "" }, { "docid": "eeece3d9f4da08fb95f253b3b16d9677", "score": "0.5680402", "text": "@Override\n public BookBean getBook(int id) throws SQLException {\n Connection connection = getConnection(sqlitePath);\n\n PreparedStatement ps = connection.prepareStatement(ID_QUERY_BOOK);\n ps.setInt(1, id);\n ResultSet set = ps.executeQuery();\n BookBean book = new BookBean(\n id,\n set.getString(\"full_title\"),\n set.getString(\"isbn\"),\n set.getString(\"publisher\"),\n set.getString(\"author\"),\n set.getInt(\"publish_year\")\n );\n return book;\n }", "title": "" }, { "docid": "37a50660ca83c6e1ecbd1b0ff7e9b724", "score": "0.56679714", "text": "@Override\n\tpublic ReceiveMoneyBill get(String id) {\n\t\treturn database.get(id);\n\t}", "title": "" }, { "docid": "e7769e92115f65ffee77ce1dba517dc1", "score": "0.5663114", "text": "public WorkflowComponentInstancePersistenceItem find(Integer id) {\r\n return (WorkflowComponentInstancePersistenceItem)find(WorkflowComponentInstancePersistenceItem.class, id);\r\n }", "title": "" }, { "docid": "0bdf7d588e800ec7bbc8015b353bd54c", "score": "0.5642849", "text": "@Override\n\tpublic OrderItem getOrderItemByID(long id) {\n\t\tOrderItem item = (OrderItem) getSession().get(OrderItem.class, id);\n\t\treturn item;\n\t}", "title": "" }, { "docid": "6798bf73595148c87493269dc1241431", "score": "0.56416357", "text": "Item getDetails(String id);", "title": "" }, { "docid": "42ede7c3a5baca6a06bedba0dd4f9dfb", "score": "0.56319827", "text": "public Item getItem(int itemId) {\r\n\t\tLOGGER.debug(\" inside getitem, itemId : \" + itemId);\r\n\t\treturn dao.getItem(itemId);\r\n\t}", "title": "" }, { "docid": "06613a33d4db36a277e123f90f391469", "score": "0.5611375", "text": "@Override\n\t\tpublic TalkBean getItem(int position) {\n\t\t\treturn talkbeanlist.get(position);\n\t\t}", "title": "" }, { "docid": "36041e96a73df6c5e2fc8440da0232a6", "score": "0.5606595", "text": "public Item getItem(String itemId){\n return (Item) hashOperations.get(HASH_KEY,itemId);\n }", "title": "" }, { "docid": "2e0629ff5cc80fce3bf7d49f019333e0", "score": "0.55999625", "text": "@Override\r\n\tpublic DogBean getDogBeanById(Long id) {\n\t\treturn (DogBean) hibernateTemplate.get(DogBean.class, id);\r\n\t}", "title": "" }, { "docid": "94016f10ee3731953b886283697c22e0", "score": "0.5598794", "text": "@Override\n\tpublic BusinessBean getBusinessById(Long id) {\n\t\treturn businessMapper.getBusinessById(id);\n\t}", "title": "" }, { "docid": "710606feb5ec800e24eb52c319844165", "score": "0.5591972", "text": "public RoomBean getRoomBean(WorkorderBean pObject) throws SQLException\n {\n RoomBean other = RoomManager.getInstance().createRoomBean();\n other.setRoomid(pObject.getRoomid());\n return RoomManager.getInstance().loadUniqueUsingTemplate(other);\n }", "title": "" }, { "docid": "efc296a2eda3b61eaf162908a758982e", "score": "0.5575398", "text": "StockItemDTO findOne(Long id);", "title": "" }, { "docid": "63b574f86b72b4236c4c9e1268f46395", "score": "0.5562999", "text": "@Transactional(readOnly = true)\n public Optional<BizItemInfoResDTO> findOne(Long id) {\n log.debug(\"Request to get BizItemInfoRes : {}\", id);\n return bizItemInfoResRepository.findById(id)\n .map(bizItemInfoResMapper::toDto);\n }", "title": "" }, { "docid": "c49e5d0df7da14d1a6ee06a48f260884", "score": "0.555956", "text": "@Override\n\tpublic Item selectByPrimaryKey(Integer id) {\n\t\treturn itemMapper.selectByPrimaryKey(id);\n\t}", "title": "" }, { "docid": "effa97b5f7cf71a1cb2c701642b1b3fc", "score": "0.5555653", "text": "public Object getObjectById(Object obj, Serializable id);", "title": "" }, { "docid": "e20722b6901671bb2cf7b47dd3985568", "score": "0.5551234", "text": "public Product getById(String id) {\n\t\treturn items.get(id);\n\t}", "title": "" }, { "docid": "de1123145fabdca24ac30950189d7a40", "score": "0.5547372", "text": "ItemTemplate getById(int id);", "title": "" }, { "docid": "8ca0dd6c79d8ec0fac4fbed4618fd98a", "score": "0.55446756", "text": "@Override\n public ItemResponse findById(Long id) {\n return itemJpaRepository.findUsingId(id);\n }", "title": "" }, { "docid": "f4d30d7db97c5e285655679b369b13a9", "score": "0.5536195", "text": "@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }", "title": "" }, { "docid": "f4d30d7db97c5e285655679b369b13a9", "score": "0.5536195", "text": "@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }", "title": "" }, { "docid": "f4d30d7db97c5e285655679b369b13a9", "score": "0.5536195", "text": "@Override\n public String getBeanIdentifier() {\n return _beanIdentifier;\n }", "title": "" }, { "docid": "210c76c670f664e153d395bb03779517", "score": "0.5526809", "text": "public Long getItemID() { return itemID; }", "title": "" }, { "docid": "5459b0f5327b5410e3e4696d07166635", "score": "0.5521988", "text": "WxMsgItem selectByPrimaryKey(Long id);", "title": "" }, { "docid": "542c9caa9477d74d6446c431f9dcc08a", "score": "0.5520332", "text": "public Item loadItemById(Integer itemId) {\n return itemDao.read(itemId, Item.class);\n }", "title": "" }, { "docid": "d8a3ede205627ca23af58ecd0abc8310", "score": "0.5517889", "text": "public Object getBean()\r\n {\r\n return bean_;\r\n }", "title": "" }, { "docid": "af6426564b0fe5e0eace4fa65dbf6377", "score": "0.55038446", "text": "public java.lang.String getBeanIdentifier();", "title": "" }, { "docid": "af6426564b0fe5e0eace4fa65dbf6377", "score": "0.55038446", "text": "public java.lang.String getBeanIdentifier();", "title": "" }, { "docid": "af6426564b0fe5e0eace4fa65dbf6377", "score": "0.55038446", "text": "public java.lang.String getBeanIdentifier();", "title": "" }, { "docid": "af6426564b0fe5e0eace4fa65dbf6377", "score": "0.55038446", "text": "public java.lang.String getBeanIdentifier();", "title": "" }, { "docid": "af6426564b0fe5e0eace4fa65dbf6377", "score": "0.55038446", "text": "public java.lang.String getBeanIdentifier();", "title": "" }, { "docid": "fcd20b11472ce71749f6bad34756dcf3", "score": "0.5499612", "text": "ArrayList<RecordMsg> getItem(int id) {\n return items.get(id);\n }", "title": "" }, { "docid": "25833b28617cfe04cce34c775a54cb84", "score": "0.54994917", "text": "@Override\n\t\tpublic BlackBean getItem(int position) {\n\t\t\treturn mBlackBeans.get(position);\n\t\t}", "title": "" }, { "docid": "809ac18000cd0d4fe2880ec26878b606", "score": "0.5490144", "text": "public Emp get(int id) {\n return new Emp();\n }", "title": "" }, { "docid": "c4741bb780ce85cf3094496e7e9224c8", "score": "0.5487313", "text": "@Override\n public Shipper getShipper(int theId) {\n Session currentSession = sessionFactory.getCurrentSession();\n\n // now retrieve/read from database using the primary key\n Shipper theShipper = currentSession.get(Shipper.class, theId);\n\n return theShipper;\n }", "title": "" }, { "docid": "2bffffef590d75ccf3ba4633b1bf27ad", "score": "0.5484296", "text": "Object getBean(String name) throws BeansException;", "title": "" }, { "docid": "2e3274b471a5372b2421d0fbbde8bcf6", "score": "0.54797983", "text": "@Override\n\tpublic PB getById(String maPhongBan) {\n\t\treturn this.phongBanDao.getById(maPhongBan);\n\t}", "title": "" }, { "docid": "74382e589debd726898ad6b817c0f441", "score": "0.545707", "text": "public CalendarItem getById (String ID);", "title": "" }, { "docid": "973cb392d6d72957625a0300ff318274", "score": "0.54568386", "text": "public Object getItem(int position) {\n\t\treturn mBeans.get(position);\n\t}", "title": "" }, { "docid": "c406b812a8df6378f75aa87fc25762f1", "score": "0.5451416", "text": "@Override\n public EmpBean getProduct(int pid) {\n EmpBean eBean = null;\n try {\n Connection con = DBconnection.getConnection();\n if (con == null) {\n return eBean;\n }\n String sql = \"select * from mbuydata where pid='\" + pid + \"'\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while (rs.next()) {\n eBean = new EmpBean();\n eBean.setPid(rs.getInt(\"pid\"));\n eBean.setMemo(rs.getString(\"memo\"));\n\n eBean.setCost(rs.getString(\"cost\"));\n eBean.setSupplier(rs.getString(\"supplier\"));\n eBean.setBuydate(rs.getDate(\"buydate\").toString());\n eBean.setSuplrwrnty(rs.getString(\"suplrwrnty\"));\n eBean.setPrdtlife(rs.getString(\"prdtlife\"));\n }\n st.close();\n con.close();\n } catch (SQLException ex) {\n\n ex.printStackTrace();\n }\n return eBean;\n }", "title": "" }, { "docid": "6daa6a7ba0c822a2414fd848cb72f7be", "score": "0.54438335", "text": "protected IManagerBean getManagerBean() {\r\n\t\ttry {\r\n\t\t\tif (this.bean == null) {\r\n\t\t\t\tthis.bean = BeanManager.getManagerBean(ItemAttachment.class);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn this.bean;\r\n\t}", "title": "" }, { "docid": "1e8bb06e71948580765c50324dcde107", "score": "0.5442362", "text": "@Override\n\tpublic CommandItem getCommandItemById(UUID item_id) {\n\t\treturn this.getHibernateTemplate().get(CommandItem.class, item_id);\n\t}", "title": "" }, { "docid": "334c79340daf9a396f65db3e169a9a64", "score": "0.5438278", "text": "public <T> T getBean(String name);", "title": "" }, { "docid": "334c79340daf9a396f65db3e169a9a64", "score": "0.5438278", "text": "public <T> T getBean(String name);", "title": "" }, { "docid": "40529031a129da2a9ed657ad3304695a", "score": "0.54339916", "text": "public Item getItem() {\n String what = getString(getColumnIndex(BorrowDbSchema.Itemtable.Cols.WHAT));\n String colour = getString(getColumnIndex(BorrowDbSchema.Itemtable.Cols.COLOUR));\n\n Item item = new Item(what, colour);\n\n return item;\n\n }", "title": "" }, { "docid": "59719b3c4646f836df6dbe6768b13dcd", "score": "0.5421137", "text": "@Override\n\tpublic String getBeanIdentifier() {\n\t\treturn _beanIdentifier;\n\t}", "title": "" }, { "docid": "a882217af474ccc189b835c2af9b14aa", "score": "0.5415681", "text": "public <T extends Serializable> T getBean(String key) {\n if (TextUtils.isEmpty(key)) {\n throw new NullPointerException(\"没有找到与\"+key+\"匹配的键\");\n }\n String objectBase64 = getString(key);\n Log.i(\"xxx\", \"getBean: \" + objectBase64);\n //Read byte\n byte[] base64 = Base64.decode(objectBase64.getBytes(),URL_SAFE);\n\n //Encapsulated into byte stream\n ByteArrayInputStream bais = new ByteArrayInputStream(base64);\n ObjectInputStream bis = null;\n try {\n //Re encapsulation\n bis = new ObjectInputStream(bais);\n try {\n return (T) bis.readObject();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n bais.close();\n if (bis != null) {\n bis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n// Log.i(\"xxx\", \"getBean\" );\n }\n }\n return null;\n }", "title": "" }, { "docid": "c439a7b97474fd36bf59073caab84623", "score": "0.5413442", "text": "public FeedItem findById(Integer id)\r\n {\r\n return feedItemDao.findById(id);\r\n }", "title": "" }, { "docid": "a7974edf43d8a22042a38dc3f1339728", "score": "0.5400669", "text": "protected Item findById(String id) {\n Item result = null;\n for (Item item : this.items) {\n if (item != null && item.getId().equals(id)) {\n result = item;\n break;\n }\n }\n return result;\n }", "title": "" }, { "docid": "cd70642319da777cce50c524a11eb0dd", "score": "0.5399166", "text": "public BrandBean getBrandById(int id)\r\n{\r\n\tString sql = \"select * from brand where id=?\";\r\n\treturn template.queryForObject(sql, new Object[]{id}, new BeanPropertyRowMapper<BrandBean>(BrandBean.class));\r\n\t\r\n}", "title": "" }, { "docid": "a539119d16052edb96508fabda2f1833", "score": "0.5394928", "text": "@RemoteMethod\r\n\tpublic InstanceP findById(int id) {\r\n\t\ttry {\r\n\t\t\tInstanceP instance = InstanceP.findInstanceP(id);\r\n\t\t\tinstance.setProduct(\"\"+instance.getAsset().getProductCatalog().getId());\r\n\t\t\treturn instance;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e);//e.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "514c25ebb0a69a5f2c5c3f8ee2723296", "score": "0.53948987", "text": "ICpItem getProperty(final String id);", "title": "" }, { "docid": "365277cb174fb9d8b8a87ad87cc3cb77", "score": "0.53861946", "text": "@Override\n\tpublic MemberPO getMember(String id) throws RemoteException {\n\t\treturn membersDao.getMember(id);\n\t}", "title": "" }, { "docid": "2b774663b2df3549cdd4949f004726cd", "score": "0.5382481", "text": "public UserObject getUserObject(int id) {\r\n\t\tUserObject item = null;\r\n\r\n\t\t// lay du lieu\r\n\t\tResultSet rs = this.u.getUser(id);\r\n\t\tif (rs != null) {\r\n\t\t\ttry {\r\n\t\t\t\tif (rs.next()) {\r\n\t\t\t\t\titem = new UserObject();\r\n\t\t\t\t\titem.setUser_id(rs.getInt(\"user_id\"));\r\n\t\t\t\t\titem.setUser_name(rs.getString(\"user_name\"));\r\n\t\t\t\t\titem.setUser_pass(rs.getString(\"user_pass\"));\r\n\t\t\t\t\titem.setUser_fullname(rs.getString(\"user_fullname\"));\r\n\t\t\t\t\titem.setUser_address(rs.getString(\"user_address\"));\r\n\t\t\t\t\titem.setUser_email(rs.getString(\"user_email\"));\r\n\t\t\t\t\titem.setUser_homephone(rs.getString(\"user_homephone\"));\r\n\t\t\t\t\titem.setUser_birthday(rs.getString(\"user_birthday\"));\r\n\r\n\t\t\t\t}\r\n\t\t\t\trs.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn item;\r\n\t}", "title": "" }, { "docid": "baf037ea75dcfa7ba8239484a1c5980c", "score": "0.5373629", "text": "@SuppressWarnings(\"rawtypes\")\n\tabstract protected BeanItem getItemBIC();", "title": "" }, { "docid": "d9889309d8d1824026e0b168539d9ff6", "score": "0.53707093", "text": "public static Item findById(Integer id, SessionFactory sf) {\n Session session = sf.openSession();\n session.beginTransaction();\n Item result = session.get(Item.class, id);\n session.getTransaction().commit();\n session.close();\n return result;\n }", "title": "" }, { "docid": "4b4687ffcf0d6ef05cd0913bfcddcc36", "score": "0.5368779", "text": "public itemBean() {\r\n this.itemDao = new ItemDAO();\r\n this.tarefaDao = new TarefaDAO();\r\n }", "title": "" }, { "docid": "a81e55859d82023d3eb7223aef466013", "score": "0.5364928", "text": "@Override\r\n\tpublic VO getOneItem(int idx) {\n\t\treturn template.selectOne(\"getOneMsg\", idx);\r\n\t}", "title": "" }, { "docid": "0ac4f551a7a812c07b6727da35d5c255", "score": "0.5347684", "text": "@Override\n public Purchase findById(int id) {\n conn = DbConnection.getInstance();\n String sql = \"SELECT Id, Buyer_User_Id FROM myshopmf.Purchase WHERE myshopmf.Purchase.Id = '\" + id + \"';\";\n DbOperationExecutor dbOperationExecutor = new DbOperationExecutor();\n\n IDbOperation dbOp = new ReadOperation(sql);\n rs = dbOperationExecutor.executeOperation(dbOp);\n\n try {\n rs.next();\n if (rs.getRow()==1) {\n purchase = new Purchase();\n purchase.setId(rs.getInt(\"Id\"));\n purchase.setBuyerId(rs.getInt(\"Buyer_User_Id\"));\n return purchase;\n }\n } catch (SQLException e) {\n\n System.out.println(\"SQLException: \" + e.getMessage());\n System.out.println(\"SQLState: \" + e.getSQLState());\n System.out.println(\"VendorError: \" + e.getErrorCode());\n } catch (NullPointerException e) {\n\n System.out.println(\"Resultset: \" + e.getMessage());\n } finally {\n conn.close();\n }\n return null;\n }", "title": "" }, { "docid": "5d2f35ff079ff68ee6baffe6d9b4ee4b", "score": "0.5338548", "text": "EJBObject getEJBObjectForPrimaryKey(Object pkey);", "title": "" }, { "docid": "d2bc2be6e4df6f4998199bf960b9bc09", "score": "0.53375", "text": "public static Object getBean(String beanId) throws Exception {\n\t\t\n\t\t\n\t\treturn SingletonApplicationContext.getInstance()\n\t\t.getApplicationContext().getBean(beanId);\n\n\t}", "title": "" }, { "docid": "b34c69bc160ff1fc9445e95ca9208388", "score": "0.53337353", "text": "public Item findById(String id) {\n Item result = null;\n for (Item x : this.items) {\n if (x != null && x.getId().equals(id)) {\n result = x;\n break;\n }\n }\n return result;\n }", "title": "" }, { "docid": "951aea7526112e0795ddda385895530b", "score": "0.53121376", "text": "public Object getById(Long id) {\n\t\treturn getById(id);\n\t}", "title": "" }, { "docid": "3cd62d7e99347297bbb0aa0c47ab4a81", "score": "0.5308171", "text": "UserPO selectByPrimaryKey(Long id);", "title": "" }, { "docid": "e8911f419656add94270ca5d5b3cbaae", "score": "0.53019917", "text": "CartItem selectByPrimaryKey(Long id);", "title": "" }, { "docid": "daed75e6ebd2396bd302d65f8298f675", "score": "0.529694", "text": "@Override\r\n\tpublic ProduceType get(int id) {\r\n\t\treturn sessionFactory.getCurrentSession().get(ProduceType.class, Integer.valueOf(id));\r\n\t}", "title": "" }, { "docid": "c91b7e23dd59418d52a9641d31bac656", "score": "0.5288789", "text": "public Object getItem();", "title": "" }, { "docid": "cf2aaa12ea35d9b21583b6ed842f5511", "score": "0.528847", "text": "public T findById(Serializable id) {\n\t\tlog.debug(\"getting \"+cls.getName()+\" instance with id: \" + id);\n try {\n T instance = (T) getSession().get(cls, id);\n return instance;\n } catch (RuntimeException re) {\n log.error(\"get failed\", re);\n throw re;\n }\n\t}", "title": "" }, { "docid": "273a5f3b6ebee339c599299b02e0658e", "score": "0.5287266", "text": "@Override\n public BloodBank getWithId(int id) {\n return get( () -> dal().findById( id ) );\n }", "title": "" }, { "docid": "db6048cece470bcd1be8483a894772ff", "score": "0.5285905", "text": "@Override\r\n\tpublic T getById(int id) {\n\t\tSystem.out.println(clazz);\r\n\t\treturn getSession().get(clazz, id);\r\n\t}", "title": "" }, { "docid": "45a41a594a6529182508d4671def72fc", "score": "0.52850586", "text": "@Override\r\n\tpublic Product get(int id) {\n\r\n\t\ttry {\r\n\t\t\treturn sessionFactory\r\n\t\t\t\t\t.getCurrentSession()\r\n\t\t\t\t\t.get(Product.class,Integer.valueOf(id));\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ca3172e0885b014da18e2e986dd1c251", "score": "0.5284701", "text": "public Item findById(String id) {\n Item result = null;\n for (Item item : items) {\n if ((item != null) && (item.getId().equals(id))) {\n result = item;\n break;\n }\n }\n return result;\n }", "title": "" }, { "docid": "258752c89f7b397cb38297e5714f943b", "score": "0.5274563", "text": "Base get(int id);", "title": "" }, { "docid": "38996f41b663d21bc96d7a5db2fe12ba", "score": "0.52679676", "text": "public int getItemID()\n {\n return itemID;\n }", "title": "" }, { "docid": "cac296541d1fc294df398c1aa95e6e92", "score": "0.526785", "text": "private Element getMappingBindingItem(String id) {\n NodeList allEl = ((Element)mapping.getFirstChild()).getElementsByTagNameNS(StandardNamespaceContext.BINDINGS_NAMESPACE, ELEMENT_NAME_BI);\n for(int i=0,imax=allEl.getLength();i<imax;i++) {\n Element el = (Element)allEl.item(i);\n if(id.equals((el).getAttribute(\"id\"))) {\n return el;\n }\n }\n return null;\n }", "title": "" }, { "docid": "da8e075a2bdeeb844f1ba52f762af891", "score": "0.5264087", "text": "@Override\n\tpublic Item selectByPrimaryKey(Long itemId) {\n\t\treturn ItemMapper.selectByPrimaryKey(itemId);\n\t}", "title": "" } ]